quasar 2.14.4 → 2.14.6

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 (361) hide show
  1. package/dist/api/AddressbarColor.json +1 -22
  2. package/dist/api/AppFullscreen.json +1 -78
  3. package/dist/api/AppVisibility.json +1 -15
  4. package/dist/api/BottomSheet.json +1 -264
  5. package/dist/api/Brand.json +1 -49
  6. package/dist/api/ClosePopup.json +1 -21
  7. package/dist/api/Cookies.json +1 -190
  8. package/dist/api/Dark.json +1 -63
  9. package/dist/api/Dialog.json +1 -479
  10. package/dist/api/Intersection.json +1 -204
  11. package/dist/api/Lang.json +1 -18
  12. package/dist/api/Loading.json +1 -317
  13. package/dist/api/LoadingBar.json +1 -62
  14. package/dist/api/LocalStorage.json +1 -187
  15. package/dist/api/Meta.json +1 -6
  16. package/dist/api/Morph.json +1 -188
  17. package/dist/api/Mutation.json +1 -122
  18. package/dist/api/Notify.json +1 -697
  19. package/dist/api/Platform.json +1 -238
  20. package/dist/api/QAjaxBar.json +1 -117
  21. package/dist/api/QAvatar.json +1 -76
  22. package/dist/api/QBadge.json +1 -82
  23. package/dist/api/QBanner.json +1 -44
  24. package/dist/api/QBar.json +1 -28
  25. package/dist/api/QBreadcrumbs.json +1 -82
  26. package/dist/api/QBreadcrumbsEl.json +1 -162
  27. package/dist/api/QBtn.json +1 -354
  28. package/dist/api/QBtnDropdown.json +1 -560
  29. package/dist/api/QBtnGroup.json +1 -59
  30. package/dist/api/QBtnToggle.json +1 -263
  31. package/dist/api/QCard.json +1 -51
  32. package/dist/api/QCardActions.json +1 -34
  33. package/dist/api/QCardSection.json +1 -31
  34. package/dist/api/QCarousel.json +1 -421
  35. package/dist/api/QCarouselControl.json +1 -41
  36. package/dist/api/QCarouselSlide.json +1 -44
  37. package/dist/api/QChatMessage.json +1 -128
  38. package/dist/api/QCheckbox.json +1 -211
  39. package/dist/api/QChip.json +1 -232
  40. package/dist/api/QCircularProgress.json +1 -145
  41. package/dist/api/QColor.json +1 -150
  42. package/dist/api/QDate.json +1 -637
  43. package/dist/api/QDialog.json +1 -259
  44. package/dist/api/QDrawer.json +1 -272
  45. package/dist/api/QEditor.json +1 -485
  46. package/dist/api/QExpansionItem.json +1 -434
  47. package/dist/api/QFab.json +1 -352
  48. package/dist/api/QFabAction.json +1 -241
  49. package/dist/api/QField.json +1 -448
  50. package/dist/api/QFile.json +1 -643
  51. package/dist/api/QFooter.json +1 -60
  52. package/dist/api/QForm.json +1 -112
  53. package/dist/api/QFormChildMixin.json +1 -24
  54. package/dist/api/QHeader.json +1 -67
  55. package/dist/api/QIcon.json +1 -69
  56. package/dist/api/QImg.json +1 -279
  57. package/dist/api/QInfiniteScroll.json +1 -116
  58. package/dist/api/QInnerLoading.json +1 -117
  59. package/dist/api/QInput.json +1 -521
  60. package/dist/api/QIntersection.json +1 -112
  61. package/dist/api/QItem.json +1 -203
  62. package/dist/api/QItemLabel.json +1 -36
  63. package/dist/api/QItemSection.json +1 -38
  64. package/dist/api/QKnob.json +1 -197
  65. package/dist/api/QLayout.json +1 -100
  66. package/dist/api/QLinearProgress.json +1 -113
  67. package/dist/api/QList.json +1 -58
  68. package/dist/api/QMarkupTable.json +1 -64
  69. package/dist/api/QMenu.json +1 -337
  70. package/dist/api/QNoSsr.json +1 -38
  71. package/dist/api/QOptionGroup.json +1 -242
  72. package/dist/api/QPage.json +1 -42
  73. package/dist/api/QPageContainer.json +1 -11
  74. package/dist/api/QPageScroller.json +1 -68
  75. package/dist/api/QPageSticky.json +1 -44
  76. package/dist/api/QPagination.json +1 -376
  77. package/dist/api/QParallax.json +1 -74
  78. package/dist/api/QPopupEdit.json +1 -335
  79. package/dist/api/QPopupProxy.json +1 -168
  80. package/dist/api/QPullToRefresh.json +1 -91
  81. package/dist/api/QRadio.json +1 -163
  82. package/dist/api/QRange.json +1 -789
  83. package/dist/api/QRating.json +1 -186
  84. package/dist/api/QResizeObserver.json +1 -56
  85. package/dist/api/QResponsive.json +1 -26
  86. package/dist/api/QRouteTab.json +1 -225
  87. package/dist/api/QScrollArea.json +1 -354
  88. package/dist/api/QScrollObserver.json +1 -140
  89. package/dist/api/QSelect.json +1 -1387
  90. package/dist/api/QSeparator.json +1 -72
  91. package/dist/api/QSkeleton.json +1 -127
  92. package/dist/api/QSlideItem.json +1 -219
  93. package/dist/api/QSlideTransition.json +1 -33
  94. package/dist/api/QSlider.json +1 -687
  95. package/dist/api/QSpace.json +1 -6
  96. package/dist/api/QSpinner.json +1 -37
  97. package/dist/api/QSpinnerAudio.json +1 -30
  98. package/dist/api/QSpinnerBall.json +1 -30
  99. package/dist/api/QSpinnerBars.json +1 -30
  100. package/dist/api/QSpinnerBox.json +1 -30
  101. package/dist/api/QSpinnerClock.json +1 -30
  102. package/dist/api/QSpinnerComment.json +1 -30
  103. package/dist/api/QSpinnerCube.json +1 -30
  104. package/dist/api/QSpinnerDots.json +1 -30
  105. package/dist/api/QSpinnerFacebook.json +1 -30
  106. package/dist/api/QSpinnerGears.json +1 -30
  107. package/dist/api/QSpinnerGrid.json +1 -30
  108. package/dist/api/QSpinnerHearts.json +1 -30
  109. package/dist/api/QSpinnerHourglass.json +1 -30
  110. package/dist/api/QSpinnerInfinity.json +1 -30
  111. package/dist/api/QSpinnerIos.json +1 -30
  112. package/dist/api/QSpinnerOrbit.json +1 -30
  113. package/dist/api/QSpinnerOval.json +1 -30
  114. package/dist/api/QSpinnerPie.json +1 -30
  115. package/dist/api/QSpinnerPuff.json +1 -30
  116. package/dist/api/QSpinnerRadio.json +1 -30
  117. package/dist/api/QSpinnerRings.json +1 -30
  118. package/dist/api/QSpinnerTail.json +1 -30
  119. package/dist/api/QSplitter.json +1 -146
  120. package/dist/api/QStep.json +1 -167
  121. package/dist/api/QStepper.json +1 -340
  122. package/dist/api/QStepperNavigation.json +1 -11
  123. package/dist/api/QTab.json +1 -113
  124. package/dist/api/QTabPanel.json +1 -39
  125. package/dist/api/QTabPanels.json +1 -203
  126. package/dist/api/QTable.json +1 -2799
  127. package/dist/api/QTabs.json +1 -179
  128. package/dist/api/QTd.json +1 -31
  129. package/dist/api/QTh.json +1 -26
  130. package/dist/api/QTime.json +1 -317
  131. package/dist/api/QTimeline.json +1 -57
  132. package/dist/api/QTimelineEntry.json +1 -105
  133. package/dist/api/QToggle.json +1 -230
  134. package/dist/api/QToolbar.json +1 -18
  135. package/dist/api/QToolbarTitle.json +1 -18
  136. package/dist/api/QTooltip.json +1 -282
  137. package/dist/api/QTr.json +1 -26
  138. package/dist/api/QTree.json +1 -599
  139. package/dist/api/QUploader.json +1 -665
  140. package/dist/api/QUploaderAddTrigger.json +1 -6
  141. package/dist/api/QVideo.json +1 -83
  142. package/dist/api/QVirtualScroll.json +1 -260
  143. package/dist/api/Ripple.json +1 -115
  144. package/dist/api/Screen.json +1 -190
  145. package/dist/api/Scroll.json +1 -28
  146. package/dist/api/ScrollFire.json +1 -24
  147. package/dist/api/SessionStorage.json +1 -187
  148. package/dist/api/TouchHold.json +1 -81
  149. package/dist/api/TouchPan.json +1 -178
  150. package/dist/api/TouchRepeat.json +1 -142
  151. package/dist/api/TouchSwipe.json +1 -113
  152. package/dist/icon-set/bootstrap-icons.umd.prod.js +3 -2
  153. package/dist/icon-set/eva-icons.umd.prod.js +3 -2
  154. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +3 -2
  155. package/dist/icon-set/fontawesome-v5.umd.prod.js +3 -2
  156. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +3 -2
  157. package/dist/icon-set/fontawesome-v6.umd.prod.js +3 -2
  158. package/dist/icon-set/ionicons-v4.umd.prod.js +3 -2
  159. package/dist/icon-set/line-awesome.umd.prod.js +3 -2
  160. package/dist/icon-set/material-icons-outlined.umd.prod.js +3 -2
  161. package/dist/icon-set/material-icons-round.umd.prod.js +3 -2
  162. package/dist/icon-set/material-icons-sharp.umd.prod.js +3 -2
  163. package/dist/icon-set/material-icons.umd.prod.js +3 -2
  164. package/dist/icon-set/material-symbols-outlined.umd.prod.js +3 -2
  165. package/dist/icon-set/material-symbols-rounded.umd.prod.js +3 -2
  166. package/dist/icon-set/material-symbols-sharp.umd.prod.js +3 -2
  167. package/dist/icon-set/mdi-v3.umd.prod.js +3 -2
  168. package/dist/icon-set/mdi-v4.umd.prod.js +3 -2
  169. package/dist/icon-set/mdi-v5.umd.prod.js +3 -2
  170. package/dist/icon-set/mdi-v6.umd.prod.js +3 -2
  171. package/dist/icon-set/mdi-v7.umd.prod.js +3 -2
  172. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +3 -2
  173. package/dist/icon-set/svg-eva-icons.umd.prod.js +3 -2
  174. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +3 -2
  175. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +3 -2
  176. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +3 -2
  177. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +3 -2
  178. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +3 -2
  179. package/dist/icon-set/svg-line-awesome.umd.prod.js +3 -2
  180. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +3 -2
  181. package/dist/icon-set/svg-material-icons-round.umd.prod.js +3 -2
  182. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +3 -2
  183. package/dist/icon-set/svg-material-icons.umd.prod.js +3 -2
  184. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +3 -2
  185. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +3 -2
  186. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +3 -2
  187. package/dist/icon-set/svg-mdi-v6.umd.prod.js +3 -2
  188. package/dist/icon-set/svg-mdi-v7.umd.prod.js +3 -2
  189. package/dist/icon-set/svg-themify.umd.prod.js +3 -2
  190. package/dist/icon-set/themify.umd.prod.js +3 -2
  191. package/dist/lang/ar-TN.umd.prod.js +3 -2
  192. package/dist/lang/ar.umd.prod.js +3 -2
  193. package/dist/lang/az-Latn.umd.prod.js +3 -2
  194. package/dist/lang/bg.umd.prod.js +3 -2
  195. package/dist/lang/bn.umd.prod.js +3 -2
  196. package/dist/lang/ca.umd.prod.js +3 -2
  197. package/dist/lang/cs.umd.prod.js +3 -2
  198. package/dist/lang/da.umd.prod.js +3 -2
  199. package/dist/lang/de-CH.umd.prod.js +3 -2
  200. package/dist/lang/de-DE.umd.prod.js +3 -2
  201. package/dist/lang/de.umd.prod.js +3 -2
  202. package/dist/lang/el.umd.prod.js +3 -2
  203. package/dist/lang/en-GB.umd.prod.js +3 -2
  204. package/dist/lang/en-US.umd.prod.js +3 -2
  205. package/dist/lang/eo.umd.prod.js +3 -2
  206. package/dist/lang/es.umd.prod.js +3 -2
  207. package/dist/lang/et.umd.prod.js +3 -2
  208. package/dist/lang/eu.umd.prod.js +3 -2
  209. package/dist/lang/fa-IR.umd.prod.js +3 -2
  210. package/dist/lang/fa.umd.prod.js +3 -2
  211. package/dist/lang/fi.umd.prod.js +3 -2
  212. package/dist/lang/fr.umd.prod.js +3 -2
  213. package/dist/lang/gn.umd.prod.js +3 -2
  214. package/dist/lang/he.umd.prod.js +3 -2
  215. package/dist/lang/hi.umd.prod.js +3 -2
  216. package/dist/lang/hr.umd.prod.js +3 -2
  217. package/dist/lang/hu.umd.prod.js +3 -2
  218. package/dist/lang/id.umd.prod.js +3 -2
  219. package/dist/lang/is.umd.prod.js +3 -2
  220. package/dist/lang/it.umd.prod.js +3 -2
  221. package/dist/lang/ja.umd.prod.js +3 -2
  222. package/dist/lang/kk.umd.prod.js +3 -2
  223. package/dist/lang/km.umd.prod.js +3 -2
  224. package/dist/lang/ko-KR.umd.prod.js +3 -2
  225. package/dist/lang/kur-CKB.umd.prod.js +3 -2
  226. package/dist/lang/lt.umd.prod.js +3 -2
  227. package/dist/lang/lu.umd.prod.js +3 -2
  228. package/dist/lang/lv.umd.prod.js +3 -2
  229. package/dist/lang/mk.umd.prod.js +3 -2
  230. package/dist/lang/ml.umd.prod.js +3 -2
  231. package/dist/lang/mm.umd.prod.js +3 -2
  232. package/dist/lang/ms.umd.prod.js +3 -2
  233. package/dist/lang/my.umd.prod.js +3 -2
  234. package/dist/lang/nb-NO.umd.prod.js +3 -2
  235. package/dist/lang/nl.umd.prod.js +3 -2
  236. package/dist/lang/pl.umd.prod.js +3 -2
  237. package/dist/lang/pt-BR.umd.prod.js +3 -2
  238. package/dist/lang/pt.umd.prod.js +3 -2
  239. package/dist/lang/ro.umd.prod.js +3 -2
  240. package/dist/lang/ru.umd.prod.js +3 -2
  241. package/dist/lang/sk.umd.prod.js +3 -2
  242. package/dist/lang/sl.umd.prod.js +3 -2
  243. package/dist/lang/sm.umd.prod.js +3 -2
  244. package/dist/lang/sr-CYR.umd.prod.js +3 -2
  245. package/dist/lang/sr.umd.prod.js +3 -2
  246. package/dist/lang/sv.umd.prod.js +3 -2
  247. package/dist/lang/ta.umd.prod.js +3 -2
  248. package/dist/lang/th.umd.prod.js +3 -2
  249. package/dist/lang/tl.umd.prod.js +7 -0
  250. package/dist/lang/tr.umd.prod.js +3 -2
  251. package/dist/lang/ug.umd.prod.js +3 -2
  252. package/dist/lang/uk.umd.prod.js +3 -2
  253. package/dist/lang/uz-Cyrl.umd.prod.js +3 -2
  254. package/dist/lang/uz-Latn.umd.prod.js +3 -2
  255. package/dist/lang/vi.umd.prod.js +3 -2
  256. package/dist/lang/zh-CN.umd.prod.js +3 -2
  257. package/dist/lang/zh-TW.umd.prod.js +3 -2
  258. package/dist/quasar.cjs.prod.js +123 -2
  259. package/dist/quasar.css +25 -30
  260. package/dist/quasar.esm.js +16930 -26278
  261. package/dist/quasar.esm.prod.js +123 -2
  262. package/dist/quasar.prod.css +1 -1
  263. package/dist/quasar.rtl.css +31 -50
  264. package/dist/quasar.rtl.prod.css +1 -1
  265. package/dist/quasar.sass +18 -25
  266. package/dist/quasar.umd.js +16733 -26521
  267. package/dist/quasar.umd.prod.js +123 -2
  268. package/dist/transforms/api-list.json +1 -153
  269. package/dist/transforms/auto-import.json +1 -267
  270. package/dist/transforms/import-map.json +1 -181
  271. package/dist/transforms/loader-asset-urls.json +1 -60
  272. package/dist/types/api/dialog.d.ts +1 -1
  273. package/dist/types/api/qinput.d.ts +1 -1
  274. package/dist/types/api/qtable.d.ts +1 -1
  275. package/dist/types/api/qtree.d.ts +1 -1
  276. package/dist/types/api/quploader.d.ts +1 -1
  277. package/dist/types/api/validation.d.ts +1 -1
  278. package/dist/types/api/web-storage.d.ts +6 -6
  279. package/dist/types/feature-flag.d.ts +1 -1
  280. package/dist/types/globals.d.ts +22 -15
  281. package/dist/types/index.d.ts +45 -36
  282. package/dist/types/lang.d.ts +3 -3
  283. package/dist/types/plugin.d.ts +3 -1
  284. package/dist/types/ts-helpers.d.ts +3 -3
  285. package/dist/types/utils/colors.d.ts +1 -1
  286. package/dist/types/utils/date.d.ts +10 -10
  287. package/dist/types/utils/dom.d.ts +1 -1
  288. package/dist/types/utils/run-sequential-promises.d.ts +12 -12
  289. package/dist/types/utils/scroll.d.ts +5 -5
  290. package/dist/types/utils.d.ts +15 -13
  291. package/dist/vetur/quasar-attributes.json +1 -5890
  292. package/dist/vetur/quasar-tags.json +1 -2084
  293. package/dist/web-types/web-types.json +1 -19595
  294. package/lang/index.json +1 -266
  295. package/lang/tl.js +98 -0
  296. package/lang/tl.mjs +93 -0
  297. package/package.json +18 -22
  298. package/src/body.js +6 -14
  299. package/src/components/ajax-bar/QAjaxBar.js +1 -1
  300. package/src/components/breadcrumbs/QBreadcrumbs.js +1 -1
  301. package/src/components/btn/QBtn.js +6 -6
  302. package/src/components/btn-dropdown/QBtnDropdown.json +1 -1
  303. package/src/components/card/QCard.sass +17 -24
  304. package/src/components/checkbox/use-checkbox.js +1 -1
  305. package/src/components/chip/QChip.js +1 -1
  306. package/src/components/color/QColor.js +4 -4
  307. package/src/components/date/QDate.js +1 -1
  308. package/src/components/dialog/__tests__/DialogWrapper.vue +33 -0
  309. package/src/components/dialog/__tests__/QDialog.cy.js +450 -36
  310. package/src/components/drawer/QDrawer.js +1 -1
  311. package/src/components/drawer/QDrawer.json +1 -1
  312. package/src/components/file/QFile.js +2 -2
  313. package/src/components/footer/QFooter.js +2 -2
  314. package/src/components/form/QForm.js +3 -3
  315. package/src/components/header/QHeader.js +1 -1
  316. package/src/components/img/QImg.js +47 -39
  317. package/src/components/img/QImg.json +9 -0
  318. package/src/components/inner-loading/QInnerLoading.js +1 -1
  319. package/src/components/inner-loading/QInnerLoading.sass +1 -0
  320. package/src/components/input/use-mask.js +3 -3
  321. package/src/components/menu/QMenu.json +1 -1
  322. package/src/components/no-ssr/QNoSsr.js +4 -4
  323. package/src/components/page-sticky/use-page-sticky.js +4 -4
  324. package/src/components/popup-edit/QPopupEdit.js +1 -1
  325. package/src/components/resize-observer/QResizeObserver.js +1 -0
  326. package/src/components/scroll-area/QScrollArea.js +1 -1
  327. package/src/components/select/QSelect.js +9 -9
  328. package/src/components/table/QTd.js +1 -1
  329. package/src/components/table/QTh.js +1 -1
  330. package/src/components/tabs/QTabs.js +3 -3
  331. package/src/components/time/QTime.js +3 -3
  332. package/src/components/tooltip/QTooltip.js +4 -2
  333. package/src/components/tooltip/QTooltip.json +6 -0
  334. package/src/components/tree/QTree.js +1 -1
  335. package/src/components/uploader/uploader-core.js +2 -2
  336. package/src/components/uploader/xhr-uploader-plugin.js +1 -1
  337. package/src/components/virtual-scroll/use-virtual-scroll.js +3 -3
  338. package/src/composables/private/__tests__/use-model-toggle.cy.js +43 -3
  339. package/src/composables/private/use-anchor.js +1 -1
  340. package/src/composables/private/use-key-composition.js +1 -1
  341. package/src/composables/private/use-panel.js +1 -1
  342. package/src/composables/private/use-portal.js +1 -1
  343. package/src/composables/private/use-router-link.js +1 -1
  344. package/src/directives/TouchPan.js +1 -1
  345. package/src/history.js +1 -1
  346. package/src/index.umd.js +5 -1
  347. package/src/lang.js +1 -1
  348. package/src/plugins/BottomSheet.json +1 -1
  349. package/src/plugins/Cookies.js +1 -1
  350. package/src/plugins/Dark.js +1 -1
  351. package/src/plugins/Loading.js +1 -1
  352. package/src/plugins/LoadingBar.js +1 -1
  353. package/src/plugins/Notify.js +4 -4
  354. package/src/plugins/Platform.js +111 -93
  355. package/src/plugins/Screen.js +1 -1
  356. package/src/utils/event.js +1 -1
  357. package/src/utils/frame-debounce.js +1 -1
  358. package/src/utils/morph.js +1 -1
  359. package/src/utils/private/click-outside.js +1 -1
  360. package/src/utils/private/escape-key.js +1 -1
  361. package/src/utils/private/focusout.js +1 -1
@@ -1,6 +1,127 @@
1
1
  /*!
2
- * Quasar Framework v2.14.4
2
+ * Quasar Framework v2.14.6
3
3
  * (c) 2015-present Razvan Stoenescu
4
4
  * Released under the MIT License.
5
5
  */
6
- (function(e,t){"object"===typeof exports&&"undefined"!==typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define(["vue"],t):(e="undefined"!==typeof globalThis?globalThis:e||self,e.Quasar=t(e.Vue))})(this,function(e){"use strict";function t(e,t,o,n){return Object.defineProperty(e,t,{get:o,set:n,enumerable:!0}),e}function o(e,o){for(const n in o)t(e,n,o[n]);return e}const n=e.ref(!1);let a;function l(e,t){const o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[2]||o[4]||"0",versionNumber:o[4]||o[2]||"0",platform:t[0]||""}}function i(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}const r="ontouchstart"in window||window.navigator.maxTouchPoints>0;function s(e){a={is:{...e}},delete e.mac,delete e.desktop;const t=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(e,{mobile:!0,ios:!0,platform:t,[t]:!0})}function u(e){const t=e.toLowerCase(),o=i(t),n=l(t,o),a={};n.browser&&(a[n.browser]=!0,a.version=n.version,a.versionNumber=parseInt(n.versionNumber,10)),n.platform&&(a[n.platform]=!0);const u=a.android||a.ios||a.bb||a.blackberry||a.ipad||a.iphone||a.ipod||a.kindle||a.playbook||a.silk||a["windows phone"];return!0===u||t.indexOf("mobile")>-1?(a.mobile=!0,a.edga||a.edgios?(a.edge=!0,n.browser="edge"):a.crios?(a.chrome=!0,n.browser="chrome"):a.fxios&&(a.firefox=!0,n.browser="firefox")):a.desktop=!0,(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]),(a.chrome||a.opr||a.safari||a.vivaldi||!0===a.mobile&&!0!==a.ios&&!0!==u)&&(a.webkit=!0),a.edg&&(n.browser="edgechromium",a.edgeChromium=!0),(a.safari&&a.blackberry||a.bb)&&(n.browser="blackberry",a.blackberry=!0),a.safari&&a.playbook&&(n.browser="playbook",a.playbook=!0),a.opr&&(n.browser="opera",a.opera=!0),a.safari&&a.android&&(n.browser="android",a.android=!0),a.safari&&a.kindle&&(n.browser="kindle",a.kindle=!0),a.safari&&a.silk&&(n.browser="silk",a.silk=!0),a.vivaldi&&(n.browser="vivaldi",a.vivaldi=!0),a.name=n.browser,a.platform=n.platform,t.indexOf("electron")>-1?a.electron=!0:document.location.href.indexOf("-extension://")>-1?a.bex=!0:(void 0!==window.Capacitor?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):void 0===window._cordovaNative&&void 0===window.cordova||(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),!0===r&&!0===a.mac&&(!0===a.desktop&&!0===a.safari||!0===a.nativeMobile&&!0!==a.android&&!0!==a.ios&&!0!==a.ipad)&&s(a)),a}const c=navigator.userAgent||navigator.vendor||window.opera,d={has:{touch:!1,webStorage:!1},within:{iframe:!1}},v={userAgent:c,is:u(c),has:{touch:r},within:{iframe:window.self!==window.top}},p={install(t){const{$q:o}=t;!0===n.value?(t.onSSRHydrated.push(()=>{Object.assign(o.platform,v),n.value=!1,a=void 0}),o.platform=e.reactive(this)):o.platform=this}};{let e;t(v.has,"webStorage",()=>{if(void 0!==e)return e;try{if(window.localStorage)return e=!0,!0}catch(e){}return e=!1,!1}),!0===v.is.ios&&window.navigator.vendor.toLowerCase().indexOf("apple"),!0===n.value?Object.assign(p,v,a,d):Object.assign(p,v)}var m=(o,n)=>{const a=e.reactive(o);for(const e in o)t(n,e,()=>a[e],t=>{a[e]=t});return n};const f={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(f,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch(e){}function h(){}function g(e){return 0===e.button}function b(e){return 1===e.button}function y(e){return 2===e.button}function w(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function x(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let o=e.target;while(o){if(t.push(o),"HTML"===o.tagName)return t.push(document),t.push(window),t;o=o.parentElement}}const _=40,S=800;function k(e){let t=e.deltaX,o=e.deltaY;if((t||o)&&e.deltaMode){const n=1===e.deltaMode?_:S;t*=n,o*=n}return e.shiftKey&&!t&&([o,t]=[t,o]),{x:t,y:o}}function C(e){e.stopPropagation()}function q(e){!1!==e.cancelable&&e.preventDefault()}function $(e){!1!==e.cancelable&&e.preventDefault(),e.stopPropagation()}function M(e,t){if(void 0===e||!0===t&&!0===e.__dragPrevented)return;const o=!0===t?e=>{e.__dragPrevented=!0,e.addEventListener("dragstart",q,f.notPassiveCapture)}:e=>{delete e.__dragPrevented,e.removeEventListener("dragstart",q,f.notPassiveCapture)};e.querySelectorAll("a, img").forEach(o)}function T(e,t,o){const n=`__q_${t}_evt`;e[n]=void 0!==e[n]?e[n].concat(o):o,o.forEach(t=>{t[0].addEventListener(t[1],e[t[2]],f[t[3]])})}function B(e,t){const o=`__q_${t}_evt`;void 0!==e[o]&&(e[o].forEach(t=>{t[0].removeEventListener(t[1],e[t[2]],f[t[3]])}),e[o]=void 0)}var A={listenOpts:f,leftClick:g,middleClick:b,rightClick:y,position:w,getEventPath:x,getMouseWheelDistance:k,stop:C,prevent:q,stopAndPrevent:$,preventDraggable:M};function L(e,t=250,o){let n=null;function a(){const a=arguments,l=()=>{n=null,!0!==o&&e.apply(this,a)};null!==n?clearTimeout(n):!0===o&&e.apply(this,a),n=setTimeout(l,t)}return a.cancel=(()=>{null!==n&&clearTimeout(n)}),a}const O=["sm","md","lg","xl"],{passive:V}=f;var z=m({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:h,setDebounce:h,install({$q:e,onSSRHydrated:t}){if(e.screen=this,!0===this.__installed)return void(void 0!==e.config.screen&&(!1===e.config.screen.bodyClasses?document.body.classList.remove(`screen--${this.name}`):this.__update(!0)));const{visualViewport:o}=window,a=o||window,l=document.scrollingElement||document.documentElement,i=void 0===o||!0===v.is.mobile?()=>[Math.max(window.innerWidth,l.clientWidth),Math.max(window.innerHeight,l.clientHeight)]:()=>[o.width*o.scale+window.innerWidth-l.clientWidth,o.height*o.scale+window.innerHeight-l.clientHeight],r=void 0!==e.config.screen&&!0===e.config.screen.bodyClasses;this.__update=(e=>{const[t,o]=i();if(o!==this.height&&(this.height=o),t!==this.width)this.width=t;else if(!0!==e)return;let n=this.sizes;this.gt.xs=t>=n.sm,this.gt.sm=t>=n.md,this.gt.md=t>=n.lg,this.gt.lg=t>=n.xl,this.lt.sm=t<n.sm,this.lt.md=t<n.md,this.lt.lg=t<n.lg,this.lt.xl=t<n.xl,this.xs=this.lt.sm,this.sm=!0===this.gt.xs&&!0===this.lt.md,this.md=!0===this.gt.sm&&!0===this.lt.lg,this.lg=!0===this.gt.md&&!0===this.lt.xl,this.xl=this.gt.lg,n=(!0===this.xs?"xs":!0===this.sm&&"sm")||!0===this.md&&"md"||!0===this.lg&&"lg"||"xl",n!==this.name&&(!0===r&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${n}`)),this.name=n)});let s,u={},c=16;this.setSizes=(e=>{O.forEach(t=>{void 0!==e[t]&&(u[t]=e[t])})}),this.setDebounce=(e=>{c=e});const d=()=>{const e=getComputedStyle(document.body);e.getPropertyValue("--q-size-sm")&&O.forEach(t=>{this.sizes[t]=parseInt(e.getPropertyValue(`--q-size-${t}`),10)}),this.setSizes=(e=>{O.forEach(t=>{e[t]&&(this.sizes[t]=e[t])}),this.__update(!0)}),this.setDebounce=(e=>{void 0!==s&&a.removeEventListener("resize",s,V),s=e>0?L(this.__update,e):this.__update,a.addEventListener("resize",s,V)}),this.setDebounce(c),0!==Object.keys(u).length?(this.setSizes(u),u=void 0):this.__update(),!0===r&&"xs"===this.name&&document.body.classList.add("screen--xs")};!0===n.value?t.push(d):d()}});const E=m({isActive:!1,mode:!1},{__media:void 0,set(e){E.mode=e,"auto"===e?(void 0===E.__media&&(E.__media=window.matchMedia("(prefers-color-scheme: dark)"),E.__updateMedia=(()=>{E.set("auto")}),E.__media.addListener(E.__updateMedia)),e=E.__media.matches):void 0!==E.__media&&(E.__media.removeListener(E.__updateMedia),E.__media=void 0),E.isActive=!0===e,document.body.classList.remove(`body--${!0===e?"light":"dark"}`),document.body.classList.add(`body--${!0===e?"dark":"light"}`)},toggle(){E.set(!1===E.isActive)},install({$q:e,ssrContext:t}){const{dark:o}=e.config;e.dark=this,!0!==this.__installed&&this.set(void 0!==o&&o)}}),P=()=>!0;function F(e){return"string"===typeof e&&""!==e&&"/"!==e&&"#/"!==e}function I(e){return!0===e.startsWith("#")&&(e=e.substring(1)),!1===e.startsWith("/")&&(e="/"+e),!0===e.endsWith("/")&&(e=e.substring(0,e.length-1)),"#"+e}function R(e){if(!1===e.backButtonExit)return()=>!1;if("*"===e.backButtonExit)return P;const t=["#/"];return!0===Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(F).map(I)),()=>t.includes(window.location.hash)}var N={__history:[],add:h,remove:h,install({$q:e}){if(!0===this.__installed)return;const{cordova:t,capacitor:o}=v.is;if(!0!==t&&!0!==o)return;const n=e.config[!0===t?"cordova":"capacitor"];if(void 0!==n&&!1===n.backButton)return;if(!0===o&&(void 0===window.Capacitor||void 0===window.Capacitor.Plugins.App))return;this.add=(e=>{void 0===e.condition&&(e.condition=P),this.__history.push(e)}),this.remove=(e=>{const t=this.__history.indexOf(e);t>=0&&this.__history.splice(t,1)});const a=R(Object.assign({backButtonExit:!0},n)),l=()=>{if(this.__history.length){const e=this.__history[this.__history.length-1];!0===e.condition()&&(this.__history.pop(),e.handler())}else!0===a()?navigator.app.exitApp():window.history.back()};!0===t?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",l,!1)}):window.Capacitor.Plugins.App.addListener("backButton",l)}},D={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>1===e?"1 record selected.":(0===e?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,o)=>e+"-"+t+" of "+o,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}};function j(){const e=!0===Array.isArray(navigator.languages)&&0!==navigator.languages.length?navigator.languages[0]:navigator.language;if("string"===typeof e)return e.split(/[-_]/).map((e,t)=>0===t?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase()).join("-")}const H=m({__langPack:{}},{getLocale:j,set(e=D,t){const o={...e,rtl:!0===e.rtl,getLocale:j};if(o.set=H.set,void 0===H.__langConfig||!0!==H.__langConfig.noHtmlAttrs){const e=document.documentElement;e.setAttribute("dir",!0===o.rtl?"rtl":"ltr"),e.setAttribute("lang",o.isoName)}Object.assign(H.__langPack,o),H.props=o,H.isoName=o.isoName,H.nativeName=o.nativeName},install({$q:e,lang:t,ssrContext:o}){e.lang=H.__langPack,H.__langConfig=e.config.lang,!0===this.__installed?void 0!==t&&this.set(t):this.set(t||D)}});function Q(e,t,o=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if("string"!==typeof t)throw new TypeError("Expected a string as value");if(!(o instanceof Element))throw new TypeError("Expected a DOM element");o.style.setProperty(`--q-${e}`,t)}let U=!1;function W(e){U=!0===e.isComposing}function K(e){return!0===U||e!==Object(e)||!0===e.isComposing||!0===e.qKeyEvent}function Y(e,t){return!0!==K(e)&&[].concat(t).includes(e.keyCode)}function X(e){return!0===e.ios?"ios":!0===e.android?"android":void 0}function Z({is:e,has:t,within:o},n){const a=[!0===e.desktop?"desktop":"mobile",`${!1===t.touch?"no-":""}touch`];if(!0===e.mobile){const t=X(e);void 0!==t&&a.push("platform-"+t)}if(!0===e.nativeMobile){const t=e.nativeMobileWrapper;a.push(t),a.push("native-mobile"),!0!==e.ios||void 0!==n[t]&&!1===n[t].iosStatusBarPadding||a.push("q-ios-padding")}else!0===e.electron?a.push("electron"):!0===e.bex&&a.push("bex");return!0===o.iframe&&a.push("within-iframe"),a}function G(){const{is:e}=v,t=document.body.className,o=new Set(t.replace(/ {2}/g," ").split(" "));if(void 0!==a)o.delete("desktop"),o.add("platform-ios"),o.add("mobile");else if(!0!==e.nativeMobile&&!0!==e.electron&&!0!==e.bex)if(!0===e.desktop)o.delete("mobile"),o.delete("platform-ios"),o.delete("platform-android"),o.add("desktop");else if(!0===e.mobile){o.delete("desktop"),o.add("mobile");const t=X(e);void 0!==t?(o.add(`platform-${t}`),o.delete(`platform-${"ios"===t?"android":"ios"}`)):(o.delete("platform-ios"),o.delete("platform-android"))}!0===v.has.touch&&(o.delete("no-touch"),o.add("touch")),!0===v.within.iframe&&o.add("within-iframe");const n=Array.from(o).join(" ");t!==n&&(document.body.className=n)}function J(e){for(const t in e)Q(t,e[t])}var ee={install(e){if(!0!==this.__installed){if(!0===n.value)G();else{const{$q:t}=e;void 0!==t.config.brand&&J(t.config.brand);const o=Z(v,t.config);document.body.classList.add.apply(document.body.classList,o)}!0===v.is.ios&&document.body.addEventListener("touchstart",h),window.addEventListener("keydown",W,!0)}}},te={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}};const oe=m({iconMapFn:null,__icons:{}},{set(e,t){const o={...e,rtl:!0===e.rtl};o.set=oe.set,Object.assign(oe.__icons,o)},install({$q:e,iconSet:o,ssrContext:n}){void 0!==e.config.iconMapFn&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,t(e,"iconMapFn",()=>this.iconMapFn,e=>{this.iconMapFn=e}),!0===this.__installed?void 0!==o&&this.set(o):this.set(o||te)}}),ne="_q_",ae="_q_t_",le="_q_s_",ie="_q_l_",re="_q_pc_",se="_q_f_",ue="_q_fo_",ce="_q_tabs_",de="_q_u_",ve=()=>{},pe={};let me=!1;function fe(){me=!0}function he(e,t){if(e===t)return!0;if(null!==e&&null!==t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let o,n;if(e.constructor===Array){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(!0!==he(e[n],t[n]))return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let o=e.entries();n=o.next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=o.next()}o=e.entries(),n=o.next();while(!0!==n.done){if(!0!==he(n.value[1],t.get(n.value[0])))return!1;n=o.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const o=e.entries();n=o.next();while(!0!==n.done){if(!0!==t.has(n.value[0]))return!1;n=o.next()}return!0}if(null!=e.buffer&&e.buffer.constructor===ArrayBuffer){if(o=e.length,o!==t.length)return!1;for(n=o;0!==n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const a=Object.keys(e).filter(t=>void 0!==e[t]);if(o=a.length,o!==Object.keys(t).filter(e=>void 0!==t[e]).length)return!1;for(n=o;0!==n--;){const o=a[n];if(!0!==he(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function ge(e){return null!==e&&"object"===typeof e&&!0!==Array.isArray(e)}function be(e){return"[object Date]"===Object.prototype.toString.call(e)}function ye(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function we(e){return"number"===typeof e&&isFinite(e)}var xe={deepEqual:he,object:ge,date:be,regexp:ye,number:we};const _e=[p,ee,E,z,N,H,oe];function Se(t,o){const n=e.createApp(t);n.config.globalProperties=o.config.globalProperties;const{reload:a,...l}=o._context;return Object.assign(n._context,l),n}function ke(e,t){t.forEach(t=>{t.install(e),t.__installed=!0})}function Ce(e,t,o){e.config.globalProperties.$q=o.$q,e.provide(ne,o.$q),ke(o,_e),void 0!==t.components&&Object.values(t.components).forEach(t=>{!0===ge(t)&&void 0!==t.name&&e.component(t.name,t)}),void 0!==t.directives&&Object.values(t.directives).forEach(t=>{!0===ge(t)&&void 0!==t.name&&e.directive(t.name,t)}),void 0!==t.plugins&&ke(o,Object.values(t.plugins).filter(e=>"function"===typeof e.install&&!1===_e.includes(e))),!0===n.value&&(o.$q.onSSRHydrated=(()=>{o.onSSRHydrated.forEach(e=>{e()}),o.$q.onSSRHydrated=(()=>{})}))}var qe=function(e,t={}){const o={version:"2.14.4"};!1===me?(void 0!==t.config&&Object.assign(pe,t.config),o.config={...pe},fe()):o.config=t.config||{},Ce(e,t,{parentApp:e,$q:o,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})};const $e=t=>e.markRaw(e.defineComponent(t)),Me=t=>e.markRaw(t),Te=["B","KB","MB","GB","TB","PB"];function Be(e){let t=0;while(parseInt(e,10)>=1024&&t<Te.length-1)e/=1024,++t;return`${e.toFixed(1)}${Te[t]}`}function Ae(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Le(e,t,o){return o<=t?t:Math.min(o,Math.max(t,e))}function Oe(e,t,o){if(o<=t)return t;const n=o-t+1;let a=t+(e-t)%n;return a<t&&(a=n+a),0===a?0:a}function Ve(e,t=2,o="0"){if(void 0===e||null===e)return e;const n=""+e;return n.length>=t?n:new Array(t-n.length+1).join(o)+n}var ze={humanStorageSize:Be,capitalize:Ae,between:Le,normalizeToInterval:Oe,pad:Ve};const Ee=XMLHttpRequest,Pe=Ee.prototype.open,Fe=["top","right","bottom","left"];let Ie=[],Re=0;function Ne({p:e,pos:t,active:o,horiz:n,reverse:a,dir:l}){let i=1,r=1;return!0===n?(!0===a&&(i=-1),"bottom"===t&&(r=-1),{transform:`translate3d(${i*(e-100)}%,${o?0:-200*r}%,0)`}):(!0===a&&(r=-1),"right"===t&&(i=-1),{transform:`translate3d(${o?0:l*i*-200}%,${r*(e-100)}%,0)`})}function De(e,t){return"number"!==typeof t&&(t=e<25?3*Math.random()+3:e<65?3*Math.random():e<85?2*Math.random():e<99?.6:0),Le(e+t,0,100)}function je(e){Re++,Ie.push(e),Re>1||(Ee.prototype.open=function(e,t){const o=[],n=()=>{Ie.forEach(e=>{null!==e.hijackFilter.value&&!0!==e.hijackFilter.value(t)||(e.start(),o.push(e.stop))})},a=()=>{o.forEach(e=>{e()})};this.addEventListener("loadstart",n,{once:!0}),this.addEventListener("loadend",a,{once:!0}),Pe.apply(this,arguments)})}function He(e){Ie=Ie.filter(t=>t.start!==e),Re=Math.max(0,Re-1),0===Re&&(Ee.prototype.open=Pe)}var Qe=$e({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:e=>Fe.includes(e)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean,hijackFilter:Function},emits:["start","stop"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),a=e.ref(0),l=e.ref(!1),i=e.ref(!0);let r,s=0,u=null;const c=e.computed(()=>`q-loading-bar q-loading-bar--${t.position}`+(void 0!==t.color?` bg-${t.color}`:"")+(!0===i.value?"":" no-transition")),d=e.computed(()=>"top"===t.position||"bottom"===t.position),v=e.computed(()=>!0===d.value?"height":"width"),p=e.computed(()=>{const e=l.value,o=Ne({p:a.value,pos:t.position,active:e,horiz:d.value,reverse:!0===n.$q.lang.rtl&&["top","bottom"].includes(t.position)?!1===t.reverse:t.reverse,dir:!0===n.$q.lang.rtl?-1:1});return o[v.value]=t.size,o.opacity=e?1:0,o}),m=e.computed(()=>!0===l.value?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a.value}:{"aria-hidden":"true"});function f(e=300){const t=r;return r=Math.max(0,e)||0,s++,s>1?(0===t&&e>0?b():null!==u&&t>0&&e<=0&&(clearTimeout(u),u=null),s):(null!==u&&clearTimeout(u),o("start"),a.value=0,u=setTimeout(()=>{u=null,i.value=!0,e>0&&b()},!0===l._value?500:1),!0!==l._value&&(l.value=!0,i.value=!1),s)}function h(e){return s>0&&(a.value=De(a.value,e)),s}function g(){if(s=Math.max(0,s-1),s>0)return s;null!==u&&(clearTimeout(u),u=null),o("stop");const e=()=>{i.value=!0,a.value=100,u=setTimeout(()=>{u=null,l.value=!1},1e3)};return 0===a.value?u=setTimeout(e,1):e(),s}function b(){a.value<100&&(u=setTimeout(()=>{u=null,h(),b()},r))}let y;return e.onMounted(()=>{!0!==t.skipHijack&&(y=!0,je({start:f,stop:g,hijackFilter:e.computed(()=>t.hijackFilter||null)}))}),e.onBeforeUnmount(()=>{null!==u&&clearTimeout(u),!0===y&&He(f)}),Object.assign(n,{start:f,stop:g,increment:h}),()=>e.h("div",{class:c.value,style:p.value,...m.value})}});const Ue={xs:18,sm:24,md:32,lg:38,xl:46},We={size:String};function Ke(t,o=Ue){return e.computed(()=>void 0!==t.size?{fontSize:t.size in o?`${o[t.size]}px`:t.size}:null)}function Ye(e,t){return void 0!==e&&e()||t}function Xe(e,t){if(void 0!==e){const t=e();if(void 0!==t&&null!==t)return t.slice()}return t}function Ze(e,t){return void 0!==e?t.concat(e()):t}function Ge(e,t){return void 0===e?t:void 0!==t?t.concat(e()):e()}function Je(t,o,n,a,l,i){o.key=a+l;const r=e.h(t,o,n);return!0===l?e.withDirectives(r,i()):r}const et="0 0 24 24",tt=e=>e,ot=e=>`ionicons ${e}`,nt={"mdi-":e=>`mdi ${e}`,"icon-":tt,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":ot,"ion-ios":ot,"ion-logo":ot,"iconfont ":tt,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},at={o_:"-outlined",r_:"-round",s_:"-sharp"},lt={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},it=new RegExp("^("+Object.keys(nt).join("|")+")"),rt=new RegExp("^("+Object.keys(at).join("|")+")"),st=new RegExp("^("+Object.keys(lt).join("|")+")"),ut=/^[Mm]\s?[-+]?\.?\d/,ct=/^img:/,dt=/^svguse:/,vt=/^ion-/,pt=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var mt=$e({name:"QIcon",props:{...We,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=Ke(t),l=e.computed(()=>"q-icon"+(!0===t.left?" on-left":"")+(!0===t.right?" on-right":"")+(void 0!==t.color?` text-${t.color}`:"")),i=e.computed(()=>{let o,a=t.name;if("none"===a||!a)return{none:!0};if(null!==n.iconMapFn){const e=n.iconMapFn(a);if(void 0!==e){if(void 0===e.icon)return{cls:e.cls,content:void 0!==e.content?e.content:" "};if(a=e.icon,"none"===a||!a)return{none:!0}}}if(!0===ut.test(a)){const[t,o=et]=a.split("|");return{svg:!0,viewBox:o,nodes:t.split("&&").map(t=>{const[o,n,a]=t.split("@@");return e.h("path",{style:n,d:o,transform:a})})}}if(!0===ct.test(a))return{img:!0,src:a.substring(4)};if(!0===dt.test(a)){const[e,t=et]=a.split("|");return{svguse:!0,src:e.substring(7),viewBox:t}}let l=" ";const i=a.match(it);if(null!==i)o=nt[i[1]](a);else if(!0===pt.test(a))o=a;else if(!0===vt.test(a))o=`ionicons ion-${!0===n.platform.is.ios?"ios":"md"}${a.substring(3)}`;else if(!0===st.test(a)){o="notranslate material-symbols";const e=a.match(st);null!==e&&(a=a.substring(6),o+=lt[e[1]]),l=a}else{o="notranslate material-icons";const e=a.match(rt);null!==e&&(a=a.substring(2),o+=at[e[1]]),l=a}return{cls:o,content:l}});return()=>{const n={class:l.value,style:a.value,"aria-hidden":"true",role:"presentation"};return!0===i.value.none?e.h(t.tag,n,Ye(o.default)):!0===i.value.img?e.h(t.tag,n,Ze(o.default,[e.h("img",{src:i.value.src})])):!0===i.value.svg?e.h(t.tag,n,Ze(o.default,[e.h("svg",{viewBox:i.value.viewBox||"0 0 24 24"},i.value.nodes)])):!0===i.value.svguse?e.h(t.tag,n,Ze(o.default,[e.h("svg",{viewBox:i.value.viewBox},[e.h("use",{"xlink:href":i.value.src})])])):(void 0!==i.value.cls&&(n.class+=" "+i.value.cls),e.h(t.tag,n,Ze(o.default,[i.value.content])))}}}),ft=$e({name:"QAvatar",props:{...We,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(t,{slots:o}){const n=Ke(t),a=e.computed(()=>"q-avatar"+(t.color?` bg-${t.color}`:"")+(t.textColor?` text-${t.textColor} q-chip--colored`:"")+(!0===t.square?" q-avatar--square":!0===t.rounded?" rounded-borders":"")),l=e.computed(()=>t.fontSize?{fontSize:t.fontSize}:null);return()=>{const i=void 0!==t.icon?[e.h(mt,{name:t.icon})]:void 0;return e.h("div",{class:a.value,style:n.value},[e.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:l.value},Ge(o.default,i))])}}});const ht=["top","middle","bottom"];var gt=$e({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>ht.includes(e)}},setup(t,{slots:o}){const n=e.computed(()=>{return void 0!==t.align?{verticalAlign:t.align}:null}),a=e.computed(()=>{const e=!0===t.outline&&t.color||t.textColor;return"q-badge flex inline items-center no-wrap"+` q-badge--${!0===t.multiLine?"multi":"single"}-line`+(!0===t.outline?" q-badge--outline":void 0!==t.color?` bg-${t.color}`:"")+(void 0!==e?` text-${e}`:"")+(!0===t.floating?" q-badge--floating":"")+(!0===t.rounded?" q-badge--rounded":"")+(!0===t.transparent?" q-badge--transparent":"")});return()=>e.h("div",{class:a.value,style:n.value,role:"status","aria-label":t.label},Ze(o.default,void 0!==t.label?[t.label]:[]))}});const bt={dark:{type:Boolean,default:null}};function yt(t,o){return e.computed(()=>null===t.dark?o.dark.isActive:t.dark)}var wt=$e({name:"QBanner",props:{...bt,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=yt(t,n),l=e.computed(()=>"q-banner row items-center"+(!0===t.dense?" q-banner--dense":"")+(!0===a.value?" q-banner--dark q-dark":"")+(!0===t.rounded?" rounded-borders":"")),i=e.computed(()=>"q-banner__actions row items-center justify-end"+` col-${!0===t.inlineActions?"auto":"all"}`);return()=>{const n=[e.h("div",{class:"q-banner__avatar col-auto row items-center self-start"},Ye(o.avatar)),e.h("div",{class:"q-banner__content col text-body2"},Ye(o.default))],a=Ye(o.action);return void 0!==a&&n.push(e.h("div",{class:i.value},a)),e.h("div",{class:l.value+(!1===t.inlineActions&&void 0!==a?" q-banner--top-padding":""),role:"alert"},n)}}}),xt=$e({name:"QBar",props:{...bt,dense:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=yt(t,n),l=e.computed(()=>"q-bar row no-wrap items-center"+` q-bar--${!0===t.dense?"dense":"standard"} `+` q-bar--${!0===a.value?"dark":"light"}`);return()=>e.h("div",{class:l.value,role:"toolbar"},Ye(o.default))}});const _t={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},St=Object.keys(_t),kt={align:{type:String,validator:e=>St.includes(e)}};function Ct(t){return e.computed(()=>{const e=void 0===t.align?!0===t.vertical?"stretch":"left":t.align;return`${!0===t.vertical?"items":"justify"}-${_t[e]}`})}function qt(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;while(Object(t)===t){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function $t(e,t){"symbol"===typeof t.type?!0===Array.isArray(t.children)&&t.children.forEach(t=>{$t(e,t)}):e.add(t)}function Mt(e){const t=new Set;return e.forEach(e=>{$t(t,e)}),Array.from(t)}function Tt(e){return void 0!==e.appContext.config.globalProperties.$router}function Bt(e){return!0===e.isUnmounted||!0===e.isDeactivated}const At=["",!0];var Lt=$e({name:"QBreadcrumbs",props:{...kt,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(t,{slots:o}){const n=Ct(t),a=e.computed(()=>`flex items-center ${n.value}${"none"===t.gutter?"":` q-gutter-${t.gutter}`}`),l=e.computed(()=>t.separatorColor?` text-${t.separatorColor}`:""),i=e.computed(()=>` text-${t.activeColor}`);return()=>{const n=Mt(Ye(o.default));if(0===n.length)return;let r=1;const s=[],u=n.filter(e=>void 0!==e.type&&"QBreadcrumbsEl"===e.type.name).length,c=void 0!==o.separator?o.separator:()=>t.separator;return n.forEach(t=>{if(void 0!==t.type&&"QBreadcrumbsEl"===t.type.name){const o=r<u,n=null!==t.props&&At.includes(t.props.disable),a=(!0===o?"":" q-breadcrumbs--last")+(!0!==n&&!0===o?i.value:"");r++,s.push(e.h("div",{class:`flex items-center${a}`},[t])),!0===o&&s.push(e.h("div",{class:"q-breadcrumbs__separator"+l.value},c()))}else s.push(t)}),e.h("div",{class:"q-breadcrumbs"},[e.h("div",{class:a.value},s)])}}});function Ot(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function Vt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zt(e,t){for(const o in t){const n=t[o],a=e[o];if("string"===typeof n){if(n!==a)return!1}else if(!1===Array.isArray(a)||a.length!==n.length||n.some((e,t)=>e!==a[t]))return!1}return!0}function Et(e,t){return!0===Array.isArray(t)?e.length===t.length&&e.every((e,o)=>e===t[o]):1===e.length&&e[0]===t}function Pt(e,t){return!0===Array.isArray(e)?Et(e,t):!0===Array.isArray(t)?Et(t,e):e===t}function Ft(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!1===Pt(e[o],t[o]))return!1;return!0}const It={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function Rt({fallbackTag:t,useDisableForRouterLinkProps:o=!0}={}){const n=e.getCurrentInstance(),{props:a,proxy:l,emit:i}=n,r=Tt(n),s=e.computed(()=>!0!==a.disable&&void 0!==a.href),u=!0===o?e.computed(()=>!0===r&&!0!==a.disable&&!0!==s.value&&void 0!==a.to&&null!==a.to&&""!==a.to):e.computed(()=>!0===r&&!0!==s.value&&void 0!==a.to&&null!==a.to&&""!==a.to),c=e.computed(()=>!0===u.value?y(a.to):null),d=e.computed(()=>null!==c.value),v=e.computed(()=>!0===s.value||!0===d.value),p=e.computed(()=>"a"===a.type||!0===v.value?"a":a.tag||t||"div"),m=e.computed(()=>!0===s.value?{href:a.href,target:a.target}:!0===d.value?{href:c.value.href,target:a.target}:{}),f=e.computed(()=>{if(!1===d.value)return-1;const{matched:e}=c.value,{length:t}=e,o=e[t-1];if(void 0===o)return-1;const n=l.$route.matched;if(0===n.length)return-1;const a=n.findIndex(Vt.bind(null,o));if(a>-1)return a;const i=Ot(e[t-2]);return t>1&&Ot(o)===i&&n[n.length-1].path!==i?n.findIndex(Vt.bind(null,e[t-2])):a}),h=e.computed(()=>!0===d.value&&-1!==f.value&&zt(l.$route.params,c.value.params)),g=e.computed(()=>!0===h.value&&f.value===l.$route.matched.length-1&&Ft(l.$route.params,c.value.params)),b=e.computed(()=>!0===d.value?!0===g.value?` ${a.exactActiveClass} ${a.activeClass}`:!0===a.exact?"":!0===h.value?` ${a.activeClass}`:"":"");function y(e){try{return l.$router.resolve(e)}catch(e){}return null}function w(e,{returnRouterError:t,to:o=a.to,replace:n=a.replace}={}){if(!0===a.disable)return e.preventDefault(),Promise.resolve(!1);if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||void 0!==e.button&&0!==e.button||"_blank"===a.target)return Promise.resolve(!1);e.preventDefault();const i=l.$router[!0===n?"replace":"push"](o);return!0===t?i:i.then(()=>{}).catch(()=>{})}function x(e){if(!0===d.value){const t=t=>w(e,t);i("click",e,t),!0!==e.defaultPrevented&&t()}else i("click",e)}return{hasRouterLink:d,hasHrefLink:s,hasLink:v,linkTag:p,resolvedLink:c,linkIsActive:h,linkIsExactActive:g,linkClass:b,linkAttrs:m,getLink:y,navigateToRouterLink:w,navigateOnClick:x}}var Nt=$e({name:"QBreadcrumbsEl",props:{...It,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(t,{slots:o}){const{linkTag:n,linkAttrs:a,linkClass:l,navigateOnClick:i}=Rt(),r=e.computed(()=>{return{class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(!0!==t.disable?"q-link--focusable"+l.value:"q-breadcrumbs__el--disable"),...a.value,onClick:i}}),s=e.computed(()=>"q-breadcrumbs__el-icon"+(void 0!==t.label?" q-breadcrumbs__el-icon--with-label":""));return()=>{const a=[];return void 0!==t.icon&&a.push(e.h(mt,{class:s.value,name:t.icon})),void 0!==t.label&&a.push(t.label),e.h(n.value,{...r.value},Ze(o.default,a))}}});const Dt={size:{type:[Number,String],default:"1em"},color:String};function jt(t){return{cSize:e.computed(()=>t.size in Ue?`${Ue[t.size]}px`:t.size),classes:e.computed(()=>"q-spinner"+(t.color?` text-${t.color}`:""))}}var Ht=$e({name:"QSpinner",props:{...Dt,thickness:{type:Number,default:5}},setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value+" q-spinner-mat",width:o.value,height:o.value,viewBox:"25 25 50 50"},[e.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":t.thickness,"stroke-miterlimit":"10"})])}});function Qt(e){if(e===window)return{top:0,left:0};const{top:t,left:o}=e.getBoundingClientRect();return{top:t,left:o}}function Ut(e,t){return window.getComputedStyle(e).getPropertyValue(t)}function Wt(e){return e===window?window.innerHeight:e.getBoundingClientRect().height}function Kt(e){return e===window?window.innerWidth:e.getBoundingClientRect().width}function Yt(e,t){const o=e.style;for(const n in t)o[n]=t[n]}function Xt(e,t){e.forEach(e=>Yt(e,t))}function Zt(e){if("function"===typeof e)return"loading"!==document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)}function Gt(t){if(void 0===t||null===t)return;if("string"===typeof t)try{return document.querySelector(t)||void 0}catch(e){return}const o=e.unref(t);return o?o.$el||o:void 0}function Jt(e,t){if(void 0===e||null===e||!0===e.contains(t))return!0;for(let o=e.nextElementSibling;null!==o;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}var eo={offset:Qt,style:Ut,height:Wt,width:Kt,css:Yt,cssBatch:Xt,ready:Zt};function to(e,t=250){let o,n=!1;return function(){return!1===n&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function oo(e,t,o,n){!0===o.modifiers.stop&&C(e);const a=o.modifiers.color;let l=o.modifiers.center;l=!0===l||!0===n;const i=document.createElement("span"),r=document.createElement("span"),s=w(e),{left:u,top:c,width:d,height:v}=t.getBoundingClientRect(),p=Math.sqrt(d*d+v*v),m=p/2,f=`${(d-p)/2}px`,h=l?f:`${s.left-u-m}px`,g=`${(v-p)/2}px`,b=l?g:`${s.top-c-m}px`;r.className="q-ripple__inner",Yt(r,{height:`${p}px`,width:`${p}px`,transform:`translate3d(${h},${b},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${a?" text-"+a:""}`,i.setAttribute("dir","ltr"),i.appendChild(r),t.appendChild(i);const y=()=>{i.remove(),clearTimeout(x)};o.abort.push(y);let x=setTimeout(()=>{r.classList.add("q-ripple__inner--enter"),r.style.transform=`translate3d(${f},${g},0) scale3d(1,1,1)`,r.style.opacity=.2,x=setTimeout(()=>{r.classList.remove("q-ripple__inner--enter"),r.classList.add("q-ripple__inner--leave"),r.style.opacity=0,x=setTimeout(()=>{i.remove(),o.abort.splice(o.abort.indexOf(y),1)},275)},250)},50)}function no(e,{modifiers:t,value:o,arg:n}){const a=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:!0===a.early,stop:!0===a.stop,center:!0===a.center,color:a.color||n,keyCodes:[].concat(a.keyCodes||13)}}var ao=Me({name:"ripple",beforeMount(e,t){const o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(!1===o.ripple)return;const n={cfg:o,enabled:!1!==t.value,modifiers:{},abort:[],start(t){!0===n.enabled&&!0!==t.qSkipRipple&&t.type===(!0===n.modifiers.early?"pointerdown":"click")&&oo(t,e,n,!0===t.qKeyEvent)},keystart:to(t=>{!0===n.enabled&&!0!==t.qSkipRipple&&!0===Y(t,n.modifiers.keyCodes)&&t.type===`key${!0===n.modifiers.early?"down":"up"}`&&oo(t,e,n,!0)},300)};no(n,t),e.__qripple=n,T(n,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const o=e.__qripple;void 0!==o&&(o.enabled=!1!==t.value,!0===o.enabled&&Object(t.value)===t.value&&no(o,t))}},beforeUnmount(e){const t=e.__qripple;void 0!==t&&(t.abort.forEach(e=>{e()}),B(t,"main"),delete e._qripple)}});const lo={none:0,xs:4,sm:8,md:16,lg:24,xl:32},io={xs:8,sm:10,md:14,lg:20,xl:24},ro=["button","submit","reset"],so=/[^\s]\/[^\s]/,uo=["flat","outline","push","unelevated"],co=(e,t)=>{return!0===e.flat?"flat":!0===e.outline?"outline":!0===e.push?"push":!0===e.unelevated?"unelevated":t},vo=e=>{const t=co(e);return void 0!==t?{[t]:!0}:{}},po={...We,...It,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...uo.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,round:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...kt.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function mo(t){const o=Ke(t,io),n=Ct(t),{hasRouterLink:a,hasLink:l,linkTag:i,linkAttrs:r,navigateOnClick:s}=Rt({fallbackTag:"button"}),u=e.computed(()=>{const e=!1===t.fab&&!1===t.fabMini?o.value:{};return void 0!==t.padding?Object.assign({},e,{padding:t.padding.split(/\s+/).map(e=>e in lo?lo[e]+"px":e).join(" "),minWidth:"0",minHeight:"0"}):e}),c=e.computed(()=>!0===t.rounded||!0===t.fab||!0===t.fabMini),d=e.computed(()=>!0!==t.disable&&!0!==t.loading),v=e.computed(()=>!0===d.value?t.tabindex||0:-1),p=e.computed(()=>co(t,"standard")),m=e.computed(()=>{const e={tabindex:v.value};return!0===l.value?Object.assign(e,r.value):!0===ro.includes(t.type)&&(e.type=t.type),"a"===i.value?(!0===t.disable?e["aria-disabled"]="true":void 0===e.href&&(e.role="button"),!0!==a.value&&!0===so.test(t.type)&&(e.type=t.type)):!0===t.disable&&(e.disabled="",e["aria-disabled"]="true"),!0===t.loading&&void 0!==t.percentage&&Object.assign(e,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t.percentage}),e}),f=e.computed(()=>{let e;void 0!==t.color?e=!0===t.flat||!0===t.outline?`text-${t.textColor||t.color}`:`bg-${t.color} text-${t.textColor||"white"}`:t.textColor&&(e=`text-${t.textColor}`);const o=!0===t.round?"round":`rectangle${!0===c.value?" q-btn--rounded":!0===t.square?" q-btn--square":""}`;return`q-btn--${p.value} q-btn--${o}`+(void 0!==e?" "+e:"")+(!0===d.value?" q-btn--actionable q-focusable q-hoverable":!0===t.disable?" disabled":"")+(!0===t.fab?" q-btn--fab":!0===t.fabMini?" q-btn--fab-mini":"")+(!0===t.noCaps?" q-btn--no-uppercase":"")+(!0===t.dense?" q-btn--dense":"")+(!0===t.stretch?" no-border-radius self-stretch":"")+(!0===t.glossy?" glossy":"")+(t.square?" q-btn--square":"")}),h=e.computed(()=>n.value+(!0===t.stack?" column":" row")+(!0===t.noWrap?" no-wrap text-no-wrap":"")+(!0===t.loading?" q-btn__content--hidden":""));return{classes:f,style:u,innerClasses:h,attributes:m,hasLink:l,linkTag:i,navigateOnClick:s,isActionable:d}}const{passiveCapture:fo}=f;let ho=null,go=null,bo=null;var yo=$e({name:"QBtn",props:{...po,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{classes:l,style:i,innerClasses:r,attributes:s,hasLink:u,linkTag:c,navigateOnClick:d,isActionable:v}=mo(t),p=e.ref(null),m=e.ref(null);let f,h=null,g=null;const b=e.computed(()=>void 0!==t.label&&null!==t.label&&""!==t.label),y=e.computed(()=>!0!==t.disable&&!1!==t.ripple&&{keyCodes:!0===u.value?[13,32]:[13],...!0===t.ripple?{}:t.ripple}),w=e.computed(()=>({center:t.round})),x=e.computed(()=>{const e=Math.max(0,Math.min(100,t.percentage));return e>0?{transition:"transform 0.6s",transform:`translateX(${e-100}%)`}:{}}),_=e.computed(()=>{if(!0===t.loading)return{onMousedown:O,onTouchstart:O,onClick:O,onKeydown:O,onKeyup:O};if(!0===v.value){const e={onClick:k,onKeydown:M,onMousedown:B};if(!0===a.$q.platform.has.touch){const o=void 0!==t.onTouchstart?"":"Passive";e[`onTouchstart${o}`]=T}return e}return{onClick:$}}),S=e.computed(()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+l.value,style:i.value,...s.value,..._.value}));function k(e){if(null!==p.value){if(void 0!==e){if(!0===e.defaultPrevented)return;const o=document.activeElement;if("submit"===t.type&&o!==document.body&&!1===p.value.contains(o)&&!1===o.contains(p.value)){p.value.focus();const e=()=>{document.removeEventListener("keydown",$,!0),document.removeEventListener("keyup",e,fo),null!==p.value&&p.value.removeEventListener("blur",e,fo)};document.addEventListener("keydown",$,!0),document.addEventListener("keyup",e,fo),p.value.addEventListener("blur",e,fo)}}d(e)}}function M(e){null!==p.value&&(n("keydown",e),!0===Y(e,[13,32])&&go!==p.value&&(null!==go&&L(),!0!==e.defaultPrevented&&(p.value.focus(),go=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",A,!0),p.value.addEventListener("blur",A,fo)),$(e)))}function T(e){null!==p.value&&(n("touchstart",e),!0!==e.defaultPrevented&&(ho!==p.value&&(null!==ho&&L(),ho=p.value,h=e.target,h.addEventListener("touchcancel",A,fo),h.addEventListener("touchend",A,fo)),f=!0,null!==g&&clearTimeout(g),g=setTimeout(()=>{g=null,f=!1},200)))}function B(e){null!==p.value&&(e.qSkipRipple=!0===f,n("mousedown",e),!0!==e.defaultPrevented&&bo!==p.value&&(null!==bo&&L(),bo=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",A,fo)))}function A(e){if(null!==p.value&&(void 0===e||"blur"!==e.type||document.activeElement!==p.value)){if(void 0!==e&&"keyup"===e.type){if(go===p.value&&!0===Y(e,[13,32])){const t=new MouseEvent("click",e);t.qKeyEvent=!0,!0===e.defaultPrevented&&q(t),!0===e.cancelBubble&&C(t),p.value.dispatchEvent(t),$(e),e.qKeyEvent=!0}n("keyup",e)}L()}}function L(e){const t=m.value;!0===e||ho!==p.value&&bo!==p.value||null===t||t===document.activeElement||(t.setAttribute("tabindex",-1),t.focus()),ho===p.value&&(null!==h&&(h.removeEventListener("touchcancel",A,fo),h.removeEventListener("touchend",A,fo)),ho=h=null),bo===p.value&&(document.removeEventListener("mouseup",A,fo),bo=null),go===p.value&&(document.removeEventListener("keyup",A,!0),null!==p.value&&p.value.removeEventListener("blur",A,fo),go=null),null!==p.value&&p.value.classList.remove("q-btn--active")}function O(e){$(e),e.qSkipRipple=!0}return e.onBeforeUnmount(()=>{L(!0)}),Object.assign(a,{click:k}),()=>{let n=[];void 0!==t.icon&&n.push(e.h(mt,{name:t.icon,left:!0!==t.stack&&!0===b.value,role:"img","aria-hidden":"true"})),!0===b.value&&n.push(e.h("span",{class:"block"},[t.label])),n=Ze(o.default,n),void 0!==t.iconRight&&!1===t.round&&n.push(e.h(mt,{name:t.iconRight,right:!0!==t.stack&&!0===b.value,role:"img","aria-hidden":"true"}));const a=[e.h("span",{class:"q-focus-helper",ref:m})];return!0===t.loading&&void 0!==t.percentage&&a.push(e.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(!0===t.darkPercentage?" q-btn__progress--dark":"")},[e.h("span",{class:"q-btn__progress-indicator fit block",style:x.value})])),a.push(e.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+r.value},n)),null!==t.loading&&a.push(e.h(e.Transition,{name:"q-transition--fade"},()=>!0===t.loading?[e.h("span",{key:"loading",class:"absolute-full flex flex-center"},void 0!==o.loading?o.loading():[e.h(Ht)])]:null)),e.withDirectives(e.h(c.value,S.value,a),[[ao,y.value,void 0,w.value]])}}}),wo=$e({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(t,{slots:o}){const n=e.computed(()=>{const e=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(e=>!0===t[e]).map(e=>`q-btn-group--${e}`).join(" ");return`q-btn-group row no-wrap${0!==e.length?" "+e:""}`+(!0===t.spread?" q-btn-group--spread":" inline")});return()=>e.h("div",{class:n.value},Ye(o.default))}});function xo(){if(void 0!==window.getSelection){const e=window.getSelection();void 0!==e.empty?e.empty():void 0!==e.removeAllRanges&&(e.removeAllRanges(),!0!==p.is.mobile&&e.addRange(document.createRange()))}else void 0!==document.selection&&document.selection.empty()}const _o={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function So({showing:t,avoidEmit:o,configureAnchorEl:n}){const{props:a,proxy:l,emit:i}=e.getCurrentInstance(),r=e.ref(null);let s=null;function u(e){return null!==r.value&&(void 0===e||void 0===e.touches||e.touches.length<=1)}const c={};function d(){B(c,"anchor")}function v(e){r.value=e;while(r.value.classList.contains("q-anchor--skip"))r.value=r.value.parentNode;n()}function p(){if(!1===a.target||""===a.target||null===l.$el.parentNode)r.value=null;else if(!0===a.target)v(l.$el.parentNode);else{let e=a.target;if("string"===typeof a.target)try{e=document.querySelector(a.target)}catch(t){e=void 0}void 0!==e&&null!==e?(r.value=e.$el||e,n()):(r.value=null,console.error(`Anchor: target "${a.target}" not found`))}}return void 0===n&&(Object.assign(c,{hide(e){l.hide(e)},toggle(e){l.toggle(e),e.qAnchorHandled=!0},toggleKey(e){!0===Y(e,13)&&c.toggle(e)},contextClick(t){l.hide(t),q(t),e.nextTick(()=>{l.show(t),t.qAnchorHandled=!0})},prevent:q,mobileTouch(e){if(c.mobileCleanup(e),!0!==u(e))return;l.hide(e),r.value.classList.add("non-selectable");const t=e.target;T(c,"anchor",[[t,"touchmove","mobileCleanup","passive"],[t,"touchend","mobileCleanup","passive"],[t,"touchcancel","mobileCleanup","passive"],[r.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,l.show(e),e.qAnchorHandled=!0},300)},mobileCleanup(e){r.value.classList.remove("non-selectable"),null!==s&&(clearTimeout(s),s=null),!0===t.value&&void 0!==e&&xo()}}),n=function(e=a.contextMenu){if(!0===a.noParentEvent||null===r.value)return;let t;t=!0===e?!0===l.$q.platform.is.mobile?[[r.value,"touchstart","mobileTouch","passive"]]:[[r.value,"mousedown","hide","passive"],[r.value,"contextmenu","contextClick","notPassive"]]:[[r.value,"click","toggle","passive"],[r.value,"keyup","toggleKey","passive"]],T(c,"anchor",t)}),e.watch(()=>a.contextMenu,e=>{null!==r.value&&(d(),n(e))}),e.watch(()=>a.target,()=>{null!==r.value&&d(),p()}),e.watch(()=>a.noParentEvent,e=>{null!==r.value&&(!0===e?d():n())}),e.onMounted(()=>{p(),!0!==o&&!0===a.modelValue&&null===r.value&&i("update:modelValue",!1)}),e.onBeforeUnmount(()=>{null!==s&&clearTimeout(s),d()}),{anchorEl:r,canShow:u,anchorEvents:c}}function ko(t,o){const n=e.ref(null);let a;function l(e,t){const o=`${void 0!==t?"add":"remove"}EventListener`,n=void 0!==t?t:a;e!==window&&e[o]("scroll",n,f.passive),window[o]("scroll",n,f.passive),a=t}function i(){null!==n.value&&(l(n.value),n.value=null)}const r=e.watch(()=>t.noParentEvent,()=>{null!==n.value&&(i(),o())});return e.onBeforeUnmount(r),{localScrollTarget:n,unconfigureScrollTarget:i,changeScrollEvent:l}}const Co={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},qo=["beforeShow","show","beforeHide","hide"];function $o({showing:t,canShow:o,hideOnRouteChange:n,handleShow:a,handleHide:l,processOnMount:i}){const r=e.getCurrentInstance(),{props:s,emit:u,proxy:c}=r;let d;function v(e){!0===t.value?f(e):p(e)}function p(t){if(!0===s.disable||void 0!==t&&!0===t.qAnchorHandled||void 0!==o&&!0!==o(t))return;const n=void 0!==s["onUpdate:modelValue"];!0===n&&(u("update:modelValue",!0),d=t,e.nextTick(()=>{d===t&&(d=void 0)})),null!==s.modelValue&&!1!==n||m(t)}function m(e){!0!==t.value&&(t.value=!0,u("beforeShow",e),void 0!==a?a(e):u("show",e))}function f(t){if(!0===s.disable)return;const o=void 0!==s["onUpdate:modelValue"];!0===o&&(u("update:modelValue",!1),d=t,e.nextTick(()=>{d===t&&(d=void 0)})),null!==s.modelValue&&!1!==o||h(t)}function h(e){!1!==t.value&&(t.value=!1,u("beforeHide",e),void 0!==l?l(e):u("hide",e))}function g(e){if(!0===s.disable&&!0===e)void 0!==s["onUpdate:modelValue"]&&u("update:modelValue",!1);else if(!0===e!==t.value){const t=!0===e?m:h;t(d)}}e.watch(()=>s.modelValue,g),void 0!==n&&!0===Tt(r)&&e.watch(()=>c.$route.fullPath,()=>{!0===n.value&&!0===t.value&&f()}),!0===i&&e.onMounted(()=>{g(s.modelValue)});const b={show:p,hide:f,toggle:v};return Object.assign(c,b),b}let Mo=[],To=[];function Bo(e){To=To.filter(t=>t!==e)}function Ao(e){Bo(e),To.push(e)}function Lo(e){Bo(e),0===To.length&&0!==Mo.length&&(Mo[Mo.length-1](),Mo=[])}function Oo(e){0===To.length?e():Mo.push(e)}function Vo(e){Mo=Mo.filter(t=>t!==e)}const zo=[],Eo=[];let Po=1,Fo=document.body;function Io(e,t){const o=document.createElement("div");if(o.id=void 0!==t?`q-portal--${t}--${Po++}`:e,void 0!==pe.globalNodes){const e=pe.globalNodes.class;void 0!==e&&(o.className=e)}return Fo.appendChild(o),zo.push(o),Eo.push(t),o}function Ro(e){const t=zo.indexOf(e);zo.splice(t,1),Eo.splice(t,1),e.remove()}function No(e){if(e===Fo)return;if(Fo=e,Fo===document.body||Eo.reduce((e,t)=>"dialog"===t?e+1:e,0)<2)return void zo.forEach(e=>{!1===e.contains(Fo)&&Fo.appendChild(e)});const t=Eo.lastIndexOf("dialog");for(let o=0;o<zo.length;o++){const e=zo[o];o!==t&&"dialog"===Eo[o]||!1!==e.contains(Fo)||Fo.appendChild(e)}}const Do=[];function jo(e){return Do.find(t=>null!==t.contentEl&&t.contentEl.contains(e))}function Ho(e,t){do{if("QMenu"===e.$options.name){if(e.hide(t),!0===e.$props.separateClosePopup)return qt(e)}else if(!0===e.__qPortal){const o=qt(e);return void 0!==o&&"QPopupProxy"===o.$options.name?(e.hide(t),o):e}e=qt(e)}while(void 0!==e&&null!==e)}function Qo(e,t,o){while(0!==o&&void 0!==e&&null!==e){if(!0===e.__qPortal){if(o--,"QMenu"===e.$options.name){e=Ho(e,t);continue}e.hide(t)}e=qt(e)}}function Uo(e){e=e.parent;while(void 0!==e&&null!==e){if("QGlobalDialog"===e.type.name)return!0;if("QDialog"===e.type.name||"QMenu"===e.type.name)return!1;e=e.parent}return!1}function Wo(o,n,a,l){const i=e.ref(!1),r=e.ref(!1);let s=null;const u={},c="dialog"===l&&Uo(o);function d(e){if(!0===e)return Lo(u),void(r.value=!0);r.value=!1,!1===i.value&&(!1===c&&null===s&&(s=Io(!1,l)),i.value=!0,Do.push(o.proxy),Ao(u))}function v(e){if(r.value=!1,!0!==e)return;Lo(u),i.value=!1;const t=Do.indexOf(o.proxy);-1!==t&&Do.splice(t,1),null!==s&&(Ro(s),s=null)}return e.onUnmounted(()=>{v(!0)}),o.proxy.__qPortal=!0,t(o.proxy,"contentEl",()=>n.value),{showPortal:d,hidePortal:v,portalIsActive:i,portalIsAccessible:r,renderPortal:()=>!0===c?a():!0===i.value?[e.h(e.Teleport,{to:s},a())]:void 0}}const Ko={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Yo(t,o=(()=>{}),n=(()=>{})){return{transitionProps:e.computed(()=>{const e=`q-transition--${t.transitionShow||o()}`,a=`q-transition--${t.transitionHide||n()}`;return{appear:!0,enterFromClass:`${e}-enter-from`,enterActiveClass:`${e}-enter-active`,enterToClass:`${e}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}}),transitionStyle:e.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`)}}function Xo(){let t;const o=e.getCurrentInstance();function n(){t=void 0}return e.onDeactivated(n),e.onBeforeUnmount(n),{removeTick:n,registerTick(n){t=n,e.nextTick(()=>{t===n&&(!1===Bt(o)&&t(),t=void 0)})}}}function Zo(){let t=null;const o=e.getCurrentInstance();function n(){null!==t&&(clearTimeout(t),t=null)}return e.onDeactivated(n),e.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(e,a){n(),!1===Bt(o)&&(t=setTimeout(e,a))}}}const Go=[null,document,document.body,document.scrollingElement,document.documentElement];function Jo(e,t){let o=Gt(t);if(void 0===o){if(void 0===e||null===e)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return Go.includes(o)?window:o}function en(e){return(e===window?document.body:e).scrollHeight}function tn(e){return(e===window?document.body:e).scrollWidth}function on(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function nn(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function an(e,t,o=0){const n=void 0===arguments[3]?performance.now():arguments[3],a=on(e);o<=0?a!==t&&rn(e,t):requestAnimationFrame(l=>{const i=l-n,r=a+(t-a)/Math.max(i,o)*i;rn(e,r),r!==t&&an(e,t,o-i,l)})}function ln(e,t,o=0){const n=void 0===arguments[3]?performance.now():arguments[3],a=nn(e);o<=0?a!==t&&sn(e,t):requestAnimationFrame(l=>{const i=l-n,r=a+(t-a)/Math.max(i,o)*i;sn(e,r),r!==t&&ln(e,t,o-i,l)})}function rn(e,t){e!==window?e.scrollTop=t:window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t)}function sn(e,t){e!==window?e.scrollLeft=t:window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)}function un(e,t,o){o?an(e,t,o):rn(e,t)}function cn(e,t,o){o?ln(e,t,o):sn(e,t)}let dn;function vn(){if(void 0!==dn)return dn;const e=document.createElement("p"),t=document.createElement("div");Yt(e,{width:"100%",height:"200px"}),Yt(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const o=e.offsetWidth;t.style.overflow="scroll";let n=e.offsetWidth;return o===n&&(n=t.clientWidth),t.remove(),dn=o-n,dn}function pn(e,t=!0){return!(!e||e.nodeType!==Node.ELEMENT_NODE)&&(t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"])))}var mn={getScrollTarget:Jo,getScrollHeight:en,getScrollWidth:tn,getVerticalScrollPosition:on,getHorizontalScrollPosition:nn,animVerticalScrollTo:an,animHorizontalScrollTo:ln,setVerticalScrollPosition:un,setHorizontalScrollPosition:cn,getScrollbarWidth:vn,hasScrollbar:pn};const fn=[];let hn;function gn(e){hn=27===e.keyCode}function bn(){!0===hn&&(hn=!1)}function yn(e){!0===hn&&(hn=!1,!0===Y(e,27)&&fn[fn.length-1](e))}function wn(e){window[e]("keydown",gn),window[e]("blur",bn),window[e]("keyup",yn),hn=!1}function xn(e){!0===v.is.desktop&&(fn.push(e),1===fn.length&&wn("addEventListener"))}function _n(e){const t=fn.indexOf(e);t>-1&&(fn.splice(t,1),0===fn.length&&wn("removeEventListener"))}const Sn=[];function kn(e){Sn[Sn.length-1](e)}function Cn(e){!0===v.is.desktop&&(Sn.push(e),1===Sn.length&&document.body.addEventListener("focusin",kn))}function qn(e){const t=Sn.indexOf(e);t>-1&&(Sn.splice(t,1),0===Sn.length&&document.body.removeEventListener("focusin",kn))}const{notPassiveCapture:$n}=f,Mn=[];function Tn(e){const t=e.target;if(void 0===t||8===t.nodeType||!0===t.classList.contains("no-pointer-events"))return;let o=Do.length-1;while(o>=0){const e=Do[o].$;if("QTooltip"!==e.type.name){if("QDialog"!==e.type.name)break;if(!0!==e.props.seamless)return;o--}else o--}for(let n=Mn.length-1;n>=0;n--){const o=Mn[n];if(null!==o.anchorEl.value&&!1!==o.anchorEl.value.contains(t)||t!==document.body&&(null===o.innerRef.value||!1!==o.innerRef.value.contains(t)))return;e.qClickOutside=!0,o.onClickOutside(e)}}function Bn(e){Mn.push(e),1===Mn.length&&(document.addEventListener("mousedown",Tn,$n),document.addEventListener("touchstart",Tn,$n))}function An(e){const t=Mn.findIndex(t=>t===e);t>-1&&(Mn.splice(t,1),0===Mn.length&&(document.removeEventListener("mousedown",Tn,$n),document.removeEventListener("touchstart",Tn,$n)))}let Ln,On;function Vn(e){const t=e.split(" ");return 2===t.length&&(!0!==["top","center","bottom"].includes(t[0])?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):!0===["left","middle","right","start","end"].includes(t[1])||(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1))}function zn(e){return!e||2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1])}const En={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};function Pn(e,t){const o=e.split(" ");return{vertical:o[0],horizontal:En[`${o[1]}#${!0===t?"rtl":"ltr"}`]}}function Fn(e,t){let{top:o,left:n,right:a,bottom:l,width:i,height:r}=e.getBoundingClientRect();return void 0!==t&&(o-=t[1],n-=t[0],l+=t[1],a+=t[0],i+=t[0],r+=t[1]),{top:o,bottom:l,height:r,left:n,right:a,width:i,middle:n+(a-n)/2,center:o+(l-o)/2}}function In(e,t,o){let{top:n,left:a}=e.getBoundingClientRect();return n+=t.top,a+=t.left,void 0!==o&&(n+=o[1],a+=o[0]),{top:n,bottom:n+1,height:1,left:a,right:a+1,width:1,middle:a,center:n}}function Rn(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Nn(e,t,o,n){return{top:e[o.vertical]-t[n.vertical],left:e[o.horizontal]-t[n.horizontal]}}function Dn(e,t=0){if(null===e.targetEl||null===e.anchorEl||t>5)return;if(0===e.targetEl.offsetHeight||0===e.targetEl.offsetWidth)return void setTimeout(()=>{Dn(e,t+1)},10);const{targetEl:o,offset:n,anchorEl:a,anchorOrigin:l,selfOrigin:i,absoluteOffset:r,fit:s,cover:u,maxHeight:c,maxWidth:d}=e;if(!0===v.is.ios&&void 0!==window.visualViewport){const e=document.body.style,{offsetLeft:t,offsetTop:o}=window.visualViewport;t!==Ln&&(e.setProperty("--q-pe-left",t+"px"),Ln=t),o!==On&&(e.setProperty("--q-pe-top",o+"px"),On=o)}const{scrollLeft:p,scrollTop:m}=o,f=void 0===r?Fn(a,!0===u?[0,0]:n):In(a,r,n);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:d||"100vw",maxHeight:c||"100vh",visibility:"visible"});const{offsetWidth:h,offsetHeight:g}=o,{elWidth:b,elHeight:y}=!0===s||!0===u?{elWidth:Math.max(f.width,h),elHeight:!0===u?Math.max(f.height,g):g}:{elWidth:h,elHeight:g};let w={maxWidth:d,maxHeight:c};!0!==s&&!0!==u||(w.minWidth=f.width+"px",!0===u&&(w.minHeight=f.height+"px")),Object.assign(o.style,w);const x=Rn(b,y);let _=Nn(f,x,l,i);if(void 0===r||void 0===n)jn(_,f,x,l,i);else{const{top:e,left:t}=_;jn(_,f,x,l,i);let o=!1;if(_.top!==e){o=!0;const e=2*n[1];f.center=f.top-=e,f.bottom-=e+2}if(_.left!==t){o=!0;const e=2*n[0];f.middle=f.left-=e,f.right-=e+2}!0===o&&(_=Nn(f,x,l,i),jn(_,f,x,l,i))}w={top:_.top+"px",left:_.left+"px"},void 0!==_.maxHeight&&(w.maxHeight=_.maxHeight+"px",f.height>_.maxHeight&&(w.minHeight=w.maxHeight)),void 0!==_.maxWidth&&(w.maxWidth=_.maxWidth+"px",f.width>_.maxWidth&&(w.minWidth=w.maxWidth)),Object.assign(o.style,w),o.scrollTop!==m&&(o.scrollTop=m),o.scrollLeft!==p&&(o.scrollLeft=p)}function jn(e,t,o,n,a){const l=o.bottom,i=o.right,r=vn(),s=window.innerHeight-r,u=document.body.clientWidth;if(e.top<0||e.top+l>s)if("center"===a.vertical)e.top=t[n.vertical]>s/2?Math.max(0,s-l):0,e.maxHeight=Math.min(l,s);else if(t[n.vertical]>s/2){const o=Math.min(s,"center"===n.vertical?t.center:n.vertical===a.vertical?t.bottom:t.top);e.maxHeight=Math.min(l,o),e.top=Math.max(0,o-l)}else e.top=Math.max(0,"center"===n.vertical?t.center:n.vertical===a.vertical?t.top:t.bottom),e.maxHeight=Math.min(l,s-e.top);if(e.left<0||e.left+i>u)if(e.maxWidth=Math.min(i,u),"middle"===a.horizontal)e.left=t[n.horizontal]>u/2?Math.max(0,u-i):0;else if(t[n.horizontal]>u/2){const o=Math.min(u,"middle"===n.horizontal?t.middle:n.horizontal===a.horizontal?t.right:t.left);e.maxWidth=Math.min(i,o),e.left=Math.max(0,o-e.maxWidth)}else e.left=Math.max(0,"middle"===n.horizontal?t.middle:n.horizontal===a.horizontal?t.left:t.right),e.maxWidth=Math.min(i,u-e.left)}["left","middle","right"].forEach(e=>{En[`${e}#ltr`]=e,En[`${e}#rtl`]=e});var Hn=$e({name:"QMenu",inheritAttrs:!1,props:{..._o,...Co,...bt,...Ko,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Vn},self:{type:String,validator:Vn},offset:{type:Array,validator:zn},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...qo,"click","escapeKey"],setup(t,{slots:o,emit:n,attrs:a}){let l,i,r,s=null;const u=e.getCurrentInstance(),{proxy:c}=u,{$q:d}=c,v=e.ref(null),p=e.ref(!1),m=e.computed(()=>!0!==t.persistent&&!0!==t.noRouteDismiss),f=yt(t,d),{registerTick:h,removeTick:g}=Xo(),{registerTimeout:b}=Zo(),{transitionProps:y,transitionStyle:x}=Yo(t),{localScrollTarget:_,changeScrollEvent:S,unconfigureScrollTarget:k}=ko(t,D),{anchorEl:C,canShow:q}=So({showing:p}),{hide:M}=$o({showing:p,canShow:q,handleShow:I,handleHide:R,hideOnRouteChange:m,processOnMount:!0}),{showPortal:T,hidePortal:B,renderPortal:A}=Wo(u,v,W,"menu"),L={anchorEl:C,innerRef:v,onClickOutside(e){if(!0!==t.persistent&&!0===p.value)return M(e),("touchstart"===e.type||e.target.classList.contains("q-dialog__backdrop"))&&$(e),!0}},O=e.computed(()=>Pn(t.anchor||(!0===t.cover?"center middle":"bottom start"),d.lang.rtl)),V=e.computed(()=>!0===t.cover?O.value:Pn(t.self||"top start",d.lang.rtl)),z=e.computed(()=>(!0===t.square?" q-menu--square":"")+(!0===f.value?" q-menu--dark q-dark":"")),E=e.computed(()=>!0===t.autoClose?{onClick:j}:{}),P=e.computed(()=>!0===p.value&&!0!==t.persistent);function F(){Oo(()=>{let e=v.value;e&&!0!==e.contains(document.activeElement)&&(e=e.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||e.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||e.querySelector("[autofocus], [data-autofocus]")||e,e.focus({preventScroll:!0}))})}function I(o){if(s=!1===t.noRefocus?document.activeElement:null,Cn(H),T(),D(),l=void 0,void 0!==o&&(t.touchPosition||t.contextMenu)){const e=w(o);if(void 0!==e.left){const{top:t,left:o}=C.value.getBoundingClientRect();l={left:e.left-o,top:e.top-t}}}void 0===i&&(i=e.watch(()=>d.screen.width+"|"+d.screen.height+"|"+t.self+"|"+t.anchor+"|"+d.lang.rtl,U)),!0!==t.noFocus&&document.activeElement.blur(),h(()=>{U(),!0!==t.noFocus&&F()}),b(()=>{!0===d.platform.is.ios&&(r=t.autoClose,v.value.click()),U(),T(!0),n("show",o)},t.transitionDuration)}function R(e){g(),B(),N(!0),null===s||void 0!==e&&!0===e.qClickOutside||(((e&&0===e.type.indexOf("key")?s.closest('[tabindex]:not([tabindex^="-"])'):void 0)||s).focus(),s=null),b(()=>{B(!0),n("hide",e)},t.transitionDuration)}function N(e){l=void 0,void 0!==i&&(i(),i=void 0),!0!==e&&!0!==p.value||(qn(H),k(),An(L),_n(Q)),!0!==e&&(s=null)}function D(){null===C.value&&void 0===t.scrollTarget||(_.value=Jo(C.value,t.scrollTarget),S(_.value,U))}function j(e){!0!==r?(Ho(c,e),n("click",e)):r=!1}function H(e){!0===P.value&&!0!==t.noFocus&&!0!==Jt(v.value,e.target)&&F()}function Q(e){n("escapeKey"),M(e)}function U(){Dn({targetEl:v.value,offset:t.offset,anchorEl:C.value,anchorOrigin:O.value,selfOrigin:V.value,absoluteOffset:l,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function W(){return e.h(e.Transition,y.value,()=>!0===p.value?e.h("div",{role:"menu",...a,ref:v,tabindex:-1,class:["q-menu q-position-engine scroll"+z.value,a.class],style:[a.style,x.value],...E.value},Ye(o.default)):null)}return e.watch(P,e=>{!0===e?(xn(Q),Bn(L)):(_n(Q),An(L))}),e.onBeforeUnmount(N),Object.assign(c,{focus:F,updatePosition:U}),A}});let Qn,Un=0;const Wn=new Array(256);for(let lf=0;lf<256;lf++)Wn[lf]=(lf+256).toString(16).substring(1);const Kn=(()=>{const e="undefined"!==typeof crypto?crypto:"undefined"!==typeof window?window.crypto||window.msCrypto:void 0;if(void 0!==e){if(void 0!==e.randomBytes)return e.randomBytes;if(void 0!==e.getRandomValues)return t=>{const o=new Uint8Array(t);return e.getRandomValues(o),o}}return e=>{const t=[];for(let o=e;o>0;o--)t.push(Math.floor(256*Math.random()));return t}})(),Yn=4096;function Xn(){(void 0===Qn||Un+16>Yn)&&(Un=0,Qn=Kn(Yn));const e=Array.prototype.slice.call(Qn,Un,Un+=16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,Wn[e[0]]+Wn[e[1]]+Wn[e[2]]+Wn[e[3]]+"-"+Wn[e[4]]+Wn[e[5]]+"-"+Wn[e[6]]+Wn[e[7]]+"-"+Wn[e[8]]+Wn[e[9]]+"-"+Wn[e[10]]+Wn[e[11]]+Wn[e[12]]+Wn[e[13]]+Wn[e[14]]+Wn[e[15]]}function Zn(e,t){return void 0===e?!0===t?`f_${Xn()}`:void 0:e}function Gn(t,o=!0){if(!0===n.value){const n=e.ref(t);return!0===o&&void 0===t&&e.onMounted(()=>{n.value=`f_${Xn()}`}),n}return e.ref(Zn(t,o))}const Jn=Object.keys(po),ea=e=>Jn.reduce((t,o)=>{const n=e[o];return void 0!==n&&(t[o]=n),t},{});var ta=$e({name:"QBtnDropdown",props:{...po,...Ko,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),l=e.ref(t.modelValue),i=e.ref(null),r=Gn(),s=e.computed(()=>{const e={"aria-expanded":!0===l.value?"true":"false","aria-haspopup":"true","aria-controls":r.value,"aria-label":t.toggleAriaLabel||a.$q.lang.label[!0===l.value?"collapse":"expand"](t.label)};return(!0===t.disable||!1===t.split&&!0===t.disableMainBtn||!0===t.disableDropdown)&&(e["aria-disabled"]="true"),e}),u=e.computed(()=>"q-btn-dropdown__arrow"+(!0===l.value&&!1===t.noIconAnimation?" rotate-180":"")+(!1===t.split?" q-btn-dropdown__arrow-container":"")),c=e.computed(()=>vo(t)),d=e.computed(()=>ea(t));function v(e){l.value=!0,n("beforeShow",e)}function p(e){n("show",e),n("update:modelValue",!0)}function m(e){l.value=!1,n("beforeHide",e)}function f(e){n("hide",e),n("update:modelValue",!1)}function h(e){n("click",e)}function g(e){C(e),w(),n("click",e)}function b(e){null!==i.value&&i.value.toggle(e)}function y(e){null!==i.value&&i.value.show(e)}function w(e){null!==i.value&&i.value.hide(e)}return e.watch(()=>t.modelValue,e=>{null!==i.value&&i.value[e?"show":"hide"]()}),e.watch(()=>t.split,w),Object.assign(a,{show:y,hide:w,toggle:b}),e.onMounted(()=>{!0===t.modelValue&&y()}),()=>{const n=[e.h(mt,{class:u.value,name:t.dropdownIcon||a.$q.iconSet.arrow.dropdown})];return!0!==t.disableDropdown&&n.push(e.h(Hn,{ref:i,id:r.value,class:t.contentClass,style:t.contentStyle,cover:t.cover,fit:!0,persistent:t.persistent,noRouteDismiss:t.noRouteDismiss,autoClose:t.autoClose,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,separateClosePopup:!0,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,onBeforeShow:v,onShow:p,onBeforeHide:m,onHide:f},o.default)),!1===t.split?e.h(yo,{class:"q-btn-dropdown q-btn-dropdown--simple",...d.value,...s.value,disable:!0===t.disable||!0===t.disableMainBtn,noWrap:!0,round:!1,onClick:h},{default:()=>Ye(o.label,[]).concat(n),loading:o.loading}):e.h(wo,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:t.rounded,square:t.square,...c.value,glossy:t.glossy,stretch:t.stretch},()=>[e.h(yo,{class:"q-btn-dropdown--current",...d.value,disable:!0===t.disable||!0===t.disableMainBtn,noWrap:!0,round:!1,onClick:g},{default:o.label,loading:o.loading}),e.h(yo,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...s.value,...c.value,disable:!0===t.disable||!0===t.disableDropdown,rounded:t.rounded,color:t.color,textColor:t.textColor,dense:t.dense,size:t.size,padding:t.padding,ripple:t.ripple},()=>n)])}}});const oa={name:String};function na(t){return e.computed(()=>({type:"hidden",name:t.name,value:t.modelValue}))}function aa(t={}){return(o,n,a)=>{o[n](e.h("input",{class:"hidden"+(a||""),...t.value}))}}function la(t){return e.computed(()=>t.name||t.for)}var ia=$e({name:"QBtnToggle",props:{...oa,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every(e=>("label"in e||"icon"in e||"slot"in e)&&"value"in e)},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","clear","click"],setup(t,{slots:o,emit:n}){const a=e.computed(()=>void 0!==t.options.find(e=>e.value===t.modelValue)),l=e.computed(()=>({type:"hidden",name:t.name,value:t.modelValue})),i=aa(l),r=e.computed(()=>vo(t)),s=e.computed(()=>({rounded:t.rounded,dense:t.dense,...r.value})),u=e.computed(()=>t.options.map((e,o)=>{const{attrs:n,value:a,slot:l,...i}=e;return{slot:l,props:{key:o,"aria-pressed":a===t.modelValue?"true":"false",...n,...i,...s.value,disable:!0===t.disable||!0===i.disable,color:a===t.modelValue?d(i,"toggleColor"):d(i,"color"),textColor:a===t.modelValue?d(i,"toggleTextColor"):d(i,"textColor"),noCaps:!0===d(i,"noCaps"),noWrap:!0===d(i,"noWrap"),size:d(i,"size"),padding:d(i,"padding"),ripple:d(i,"ripple"),stack:!0===d(i,"stack"),stretch:!0===d(i,"stretch"),onClick(t){c(a,e,t)}}}}));function c(e,o,a){!0!==t.readonly&&(t.modelValue===e?!0===t.clearable&&(n("update:modelValue",null,null),n("clear")):n("update:modelValue",e,o),n("click",a))}function d(e,o){return void 0===e[o]?t[o]:e[o]}function v(){const n=u.value.map(t=>{return e.h(yo,t.props,void 0!==t.slot?o[t.slot]:void 0)});return void 0!==t.name&&!0!==t.disable&&!0===a.value&&i(n,"push"),Ze(o.default,n)}return()=>e.h(wo,{class:"q-btn-toggle",...r.value,rounded:t.rounded,stretch:t.stretch,glossy:t.glossy,spread:t.spread},v)}}),ra=$e({name:"QCard",props:{...bt,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=yt(t,n),l=e.computed(()=>"q-card"+(!0===a.value?" q-card--dark q-dark":"")+(!0===t.bordered?" q-card--bordered":"")+(!0===t.square?" q-card--square no-border-radius":"")+(!0===t.flat?" q-card--flat no-shadow":""));return()=>e.h(t.tag,{class:l.value},Ye(o.default))}}),sa=$e({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-card__section"+` q-card__section--${!0===t.horizontal?"horiz row no-wrap":"vert"}`);return()=>e.h(t.tag,{class:n.value},Ye(o.default))}}),ua=$e({name:"QCardActions",props:{...kt,vertical:Boolean},setup(t,{slots:o}){const n=Ct(t),a=e.computed(()=>`q-card__actions ${n.value}`+` q-card__actions--${!0===t.vertical?"vert column":"horiz row"}`);return()=>e.h("div",{class:a.value},Ye(o.default))}});const ca={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},da=Object.keys(ca);function va(e){const t={};for(const o of da)!0===e[o]&&(t[o]=!0);return 0===Object.keys(t).length?ca:(!0===t.horizontal?t.left=t.right=!0:!0===t.left&&!0===t.right&&(t.horizontal=!0),!0===t.vertical?t.up=t.down=!0:!0===t.up&&!0===t.down&&(t.vertical=!0),!0===t.horizontal&&!0===t.vertical&&(t.all=!0),t)}ca.all=!0;const pa=["INPUT","TEXTAREA"];function ma(e,t){return void 0===t.event&&void 0!==e.target&&!0!==e.target.draggable&&"function"===typeof t.handler&&!1===pa.includes(e.target.nodeName.toUpperCase())&&(void 0===e.qClonedBy||-1===e.qClonedBy.indexOf(t.uid))}function fa(e){const t=[.06,6,50];return"string"===typeof e&&e.length&&e.split(":").forEach((e,o)=>{const n=parseFloat(e);n&&(t[o]=n)}),t}var ha=Me({name:"touch-swipe",beforeMount(e,{value:t,arg:o,modifiers:n}){if(!0!==n.mouse&&!0!==v.has.touch)return;const a=!0===n.mouseCapture?"Capture":"",l={handler:t,sensitivity:fa(o),direction:va(n),noop:h,mouseStart(e){ma(e,l)&&g(e)&&(T(l,"temp",[[document,"mousemove","move",`notPassive${a}`],[document,"mouseup","end","notPassiveCapture"]]),l.start(e,!0))},touchStart(e){if(ma(e,l)){const t=e.target;T(l,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),l.start(e)}},start(t,o){!0===v.is.firefox&&M(e,!0);const n=w(t);l.event={x:n.left,y:n.top,time:Date.now(),mouse:!0===o,dir:!1}},move(e){if(void 0===l.event)return;if(!1!==l.event.dir)return void $(e);const t=Date.now()-l.event.time;if(0===t)return;const o=w(e),n=o.left-l.event.x,a=Math.abs(n),i=o.top-l.event.y,r=Math.abs(i);if(!0!==l.event.mouse){if(a<l.sensitivity[1]&&r<l.sensitivity[1])return void l.end(e)}else{if(""!==window.getSelection().toString())return void l.end(e);if(a<l.sensitivity[2]&&r<l.sensitivity[2])return}const s=a/t,u=r/t;!0===l.direction.vertical&&a<r&&a<100&&u>l.sensitivity[0]&&(l.event.dir=i<0?"up":"down"),!0===l.direction.horizontal&&a>r&&r<100&&s>l.sensitivity[0]&&(l.event.dir=n<0?"left":"right"),!0===l.direction.up&&a<r&&i<0&&a<100&&u>l.sensitivity[0]&&(l.event.dir="up"),!0===l.direction.down&&a<r&&i>0&&a<100&&u>l.sensitivity[0]&&(l.event.dir="down"),!0===l.direction.left&&a>r&&n<0&&r<100&&s>l.sensitivity[0]&&(l.event.dir="left"),!0===l.direction.right&&a>r&&n>0&&r<100&&s>l.sensitivity[0]&&(l.event.dir="right"),!1!==l.event.dir?($(e),!0===l.event.mouse&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),xo(),l.styleCleanup=(e=>{l.styleCleanup=void 0,document.body.classList.remove("non-selectable");const t=()=>{document.body.classList.remove("no-pointer-events--children")};!0===e?setTimeout(t,50):t()})),l.handler({evt:e,touch:!0!==l.event.mouse,mouse:l.event.mouse,direction:l.event.dir,duration:t,distance:{x:a,y:r}})):l.end(e)},end(t){void 0!==l.event&&(B(l,"temp"),!0===v.is.firefox&&M(e,!1),void 0!==l.styleCleanup&&l.styleCleanup(!0),void 0!==t&&!1!==l.event.dir&&$(t),l.event=void 0)}};if(e.__qtouchswipe=l,!0===n.mouse){const t=!0===n.mouseCapture||!0===n.mousecapture?"Capture":"";T(l,"main",[[e,"mousedown","mouseStart",`passive${t}`]])}!0===v.has.touch&&T(l,"main",[[e,"touchstart","touchStart",`passive${!0===n.capture?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchswipe;void 0!==o&&(t.oldValue!==t.value&&("function"!==typeof t.value&&o.end(),o.handler=t.value),o.direction=va(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;void 0!==t&&(B(t,"main"),B(t,"temp"),!0===v.is.firefox&&M(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchswipe)}});function ga(){const e=new Map;return{getCache:function(t,o){return void 0===e[t]?e[t]=o:e[t]},getCacheWithFn:function(t,o){return void 0===e[t]?e[t]=o():e[t]}}}const ba={name:{required:!0},disable:Boolean},ya={setup(t,{slots:o}){return()=>e.h("div",{class:"q-panel scroll",role:"tabpanel"},Ye(o.default))}},wa={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},xa=["update:modelValue","beforeTransition","transition"];function _a(){const{props:t,emit:o,proxy:n}=e.getCurrentInstance(),{getCacheWithFn:a}=ga();let l,i;const r=e.ref(null),s=e.ref(null);function u(e){const o=!0===t.vertical?"up":"left";k((!0===n.$q.lang.rtl?-1:1)*(e.direction===o?1:-1))}const c=e.computed(()=>{return[[ha,u,void 0,{horizontal:!0!==t.vertical,vertical:t.vertical,mouse:!0}]]}),d=e.computed(()=>t.transitionPrev||`slide-${!0===t.vertical?"down":"right"}`),v=e.computed(()=>t.transitionNext||`slide-${!0===t.vertical?"up":"left"}`),p=e.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`),m=e.computed(()=>"string"===typeof t.modelValue||"number"===typeof t.modelValue?t.modelValue:String(t.modelValue)),f=e.computed(()=>({include:t.keepAliveInclude,exclude:t.keepAliveExclude,max:t.keepAliveMax})),h=e.computed(()=>void 0!==t.keepAliveInclude||void 0!==t.keepAliveExclude);function g(){k(1)}function b(){k(-1)}function y(e){o("update:modelValue",e)}function w(e){return void 0!==e&&null!==e&&""!==e}function x(e){return l.findIndex(t=>{return t.props.name===e&&""!==t.props.disable&&!0!==t.props.disable})}function _(){return l.filter(e=>{return""!==e.props.disable&&!0!==e.props.disable})}function S(e){const o=0!==e&&!0===t.animated&&-1!==r.value?"q-transition--"+(-1===e?d.value:v.value):null;s.value!==o&&(s.value=o)}function k(e,n=r.value){let a=n+e;while(a>-1&&a<l.length){const t=l[a];if(void 0!==t&&""!==t.props.disable&&!0!==t.props.disable)return S(e),i=!0,o("update:modelValue",t.props.name),void setTimeout(()=>{i=!1});a+=e}!0===t.infinite&&0!==l.length&&-1!==n&&n!==l.length&&k(e,-1===e?l.length:-1)}function C(){const e=x(t.modelValue);return r.value!==e&&(r.value=e),!0}function q(){const o=!0===w(t.modelValue)&&C()&&l[r.value];return!0===t.keepAlive?[e.h(e.KeepAlive,f.value,[e.h(!0===h.value?a(m.value,()=>({...ya,name:m.value})):ya,{key:m.value,style:p.value},()=>o)])]:[e.h("div",{class:"q-panel scroll",style:p.value,key:m.value,role:"tabpanel"},[o])]}function $(){if(0!==l.length)return!0===t.animated?[e.h(e.Transition,{name:s.value},q)]:q()}function M(e){return l=Mt(Ye(e.default,[])).filter(e=>null!==e.props&&void 0===e.props.slot&&!0===w(e.props.name)),l.length}function T(){return l}return e.watch(()=>t.modelValue,(t,n)=>{const a=!0===w(t)?x(t):-1;!0!==i&&S(-1===a?0:a<x(n)?-1:1),r.value!==a&&(r.value=a,o("beforeTransition",t,n),e.nextTick(()=>{o("transition",t,n)}))}),Object.assign(n,{next:g,previous:b,goTo:y}),{panelIndex:r,panelDirectives:c,updatePanelsList:M,updatePanelIndex:C,getPanelContent:$,getEnabledPanels:_,getPanels:T,isValidPanelName:w,keepAliveProps:f,needsUniqueKeepAliveWrapper:h,goToPanelByOffset:k,goToPanel:y,nextPanel:g,previousPanel:b}}let Sa=0;const ka={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Ca=["update:fullscreen","fullscreen"];function qa(){const t=e.getCurrentInstance(),{props:o,emit:n,proxy:a}=t;let l,i,r;const s=e.ref(!1);function u(){!0===s.value?d():c()}function c(){!0!==s.value&&(s.value=!0,r=a.$el.parentNode,r.replaceChild(i,a.$el),document.body.appendChild(a.$el),Sa++,1===Sa&&document.body.classList.add("q-body--fullscreen-mixin"),l={handler:d},N.add(l))}function d(){!0===s.value&&(void 0!==l&&(N.remove(l),l=void 0),r.replaceChild(a.$el,i),s.value=!1,Sa=Math.max(0,Sa-1),0===Sa&&(document.body.classList.remove("q-body--fullscreen-mixin"),void 0!==a.$el.scrollIntoView&&setTimeout(()=>{a.$el.scrollIntoView()})))}return!0===Tt(t)&&e.watch(()=>a.$route.fullPath,()=>{!0!==o.noRouteFullscreenExit&&d()}),e.watch(()=>o.fullscreen,e=>{s.value!==e&&u()}),e.watch(s,e=>{n("update:fullscreen",e),n("fullscreen",e)}),e.onBeforeMount(()=>{i=document.createElement("span")}),e.onMounted(()=>{!0===o.fullscreen&&c()}),e.onBeforeUnmount(d),Object.assign(a,{toggleFullscreen:u,setFullscreen:c,exitFullscreen:d}),{inFullscreen:s,toggleFullscreen:u}}const $a=["top","right","bottom","left"],Ma=["regular","flat","outline","push","unelevated"];var Ta=$e({name:"QCarousel",props:{...bt,...wa,...ka,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:e=>Ma.includes(e),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:e=>$a.includes(e)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...Ca,...xa],setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=yt(t,n);let l,i=null;const{updatePanelsList:r,getPanelContent:s,panelDirectives:u,goToPanel:c,previousPanel:d,nextPanel:v,getEnabledPanels:p,panelIndex:m}=_a(),{inFullscreen:f}=qa(),h=e.computed(()=>!0!==f.value&&void 0!==t.height?{height:t.height}:{}),g=e.computed(()=>!0===t.vertical?"vertical":"horizontal"),b=e.computed(()=>`q-carousel q-panel-parent q-carousel--with${!0===t.padding?"":"out"}-padding`+(!0===f.value?" fullscreen":"")+(!0===a.value?" q-carousel--dark q-dark":"")+(!0===t.arrows?` q-carousel--arrows-${g.value}`:"")+(!0===t.navigation?` q-carousel--navigation-${_.value}`:"")),y=e.computed(()=>{const e=[t.prevIcon||n.iconSet.carousel[!0===t.vertical?"up":"left"],t.nextIcon||n.iconSet.carousel[!0===t.vertical?"down":"right"]];return!1===t.vertical&&!0===n.lang.rtl?e.reverse():e}),w=e.computed(()=>t.navigationIcon||n.iconSet.carousel.navigationIcon),x=e.computed(()=>t.navigationActiveIcon||w.value),_=e.computed(()=>t.navigationPosition||(!0===t.vertical?"right":"bottom")),S=e.computed(()=>({color:t.controlColor,textColor:t.controlTextColor,round:!0,[t.controlType]:!0,dense:!0}));function k(){const e=!0===we(t.autoplay)?Math.abs(t.autoplay):5e3;null!==i&&clearTimeout(i),i=setTimeout(()=>{i=null,e>=0?v():d()},e)}function C(o,n){return e.h("div",{class:"q-carousel__control q-carousel__navigation no-wrap absolute flex"+` q-carousel__navigation--${o} q-carousel__navigation--${_.value}`+(void 0!==t.controlColor?` text-${t.controlColor}`:"")},[e.h("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},p().map(n))])}function q(){const n=[];if(!0===t.navigation){const t=void 0!==o["navigation-icon"]?o["navigation-icon"]:t=>e.h(yo,{key:"nav"+t.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${!0===t.active?"":"in"}active`,...t.btnProps,onClick:t.onClick}),a=l-1;n.push(C("buttons",(e,o)=>{const n=e.props.name,l=m.value===o;return t({index:o,maxIndex:a,name:n,active:l,btnProps:{icon:!0===l?x.value:w.value,size:"sm",...S.value},onClick:()=>{c(n)}})}))}else if(!0===t.thumbnails){const o=void 0!==t.controlColor?` text-${t.controlColor}`:"";n.push(C("thumbnails",n=>{const a=n.props;return e.h("img",{key:"tmb#"+a.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${a.name===t.modelValue?"":"in"}active`+o,src:a.imgSrc||a["img-src"],onClick:()=>{c(a.name)}})}))}return!0===t.arrows&&m.value>=0&&((!0===t.infinite||m.value>0)&&n.push(e.h("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${g.value} absolute flex flex-center`},[e.h(yo,{icon:y.value[0],...S.value,onClick:d})])),(!0===t.infinite||m.value<l-1)&&n.push(e.h("div",{key:"next",class:"q-carousel__control q-carousel__arrow q-carousel__next-arrow"+` q-carousel__next-arrow--${g.value} absolute flex flex-center`},[e.h(yo,{icon:y.value[1],...S.value,onClick:v})]))),Ze(o.control,n)}return e.watch(()=>t.modelValue,()=>{t.autoplay&&k()}),e.watch(()=>t.autoplay,e=>{e?k():null!==i&&(clearTimeout(i),i=null)}),e.onMounted(()=>{t.autoplay&&k()}),e.onBeforeUnmount(()=>{null!==i&&clearTimeout(i)}),()=>{return l=r(o),e.h("div",{class:b.value,style:h.value},[Je("div",{class:"q-carousel__slides-container"},s(),"sl-cont",t.swipeable,()=>u.value)].concat(q()))}}}),Ba=$e({name:"QCarouselSlide",props:{...ba,imgSrc:String},setup(t,{slots:o}){const n=e.computed(()=>t.imgSrc?{backgroundImage:`url("${t.imgSrc}")`}:{});return()=>e.h("div",{class:"q-carousel__slide",style:n.value},Ye(o.default))}}),Aa=$e({name:"QCarouselControl",props:{position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,default:()=>[18,18],validator:e=>2===e.length}},setup(t,{slots:o}){const n=e.computed(()=>`q-carousel__control absolute absolute-${t.position}`),a=e.computed(()=>({margin:`${t.offset[1]}px ${t.offset[0]}px`}));return()=>e.h("div",{class:n.value,style:a.value},Ye(o.default))}}),La=$e({name:"QChatMessage",props:{sent:Boolean,label:String,bgColor:String,textColor:String,name:String,avatar:String,text:Array,stamp:String,size:String,labelHtml:Boolean,nameHtml:Boolean,textHtml:Boolean,stampHtml:Boolean},setup(t,{slots:o}){const n=e.computed(()=>!0===t.sent?"sent":"received"),a=e.computed(()=>`q-message-text-content q-message-text-content--${n.value}`+(void 0!==t.textColor?` text-${t.textColor}`:"")),l=e.computed(()=>`q-message-text q-message-text--${n.value}`+(void 0!==t.bgColor?` text-${t.bgColor}`:"")),i=e.computed(()=>"q-message-container row items-end no-wrap"+(!0===t.sent?" reverse":"")),r=e.computed(()=>void 0!==t.size?`col-${t.size}`:""),s=e.computed(()=>({msg:!0===t.textHtml?"innerHTML":"textContent",stamp:!0===t.stampHtml?"innerHTML":"textContent",name:!0===t.nameHtml?"innerHTML":"textContent",label:!0===t.labelHtml?"innerHTML":"textContent"}));function u(n){return void 0!==o.stamp?[n,e.h("div",{class:"q-message-stamp"},o.stamp())]:t.stamp?[n,e.h("div",{class:"q-message-stamp",[s.value.stamp]:t.stamp})]:[n]}function c(t,o){const n=!0===o?t.length>1?e=>e:t=>e.h("div",[t]):t=>e.h("div",{[s.value.msg]:t});return t.map((t,o)=>e.h("div",{key:o,class:l.value},[e.h("div",{class:a.value},u(n(t)))]))}return()=>{const a=[];void 0!==o.avatar?a.push(o.avatar()):void 0!==t.avatar&&a.push(e.h("img",{class:`q-message-avatar q-message-avatar--${n.value}`,src:t.avatar,"aria-hidden":"true"}));const l=[];void 0!==o.name?l.push(e.h("div",{class:`q-message-name q-message-name--${n.value}`},o.name())):void 0!==t.name&&l.push(e.h("div",{class:`q-message-name q-message-name--${n.value}`,[s.value.name]:t.name})),void 0!==o.default?l.push(c(Mt(o.default()),!0)):void 0!==t.text&&l.push(c(t.text)),a.push(e.h("div",{class:r.value},l));const u=[];return void 0!==o.label?u.push(e.h("div",{class:"q-message-label"},o.label())):void 0!==t.label&&u.push(e.h("div",{class:"q-message-label",[s.value.label]:t.label})),u.push(e.h("div",{class:i.value},a)),e.h("div",{class:`q-message q-message-${n.value}`},u)}}});function Oa(t,o){const n=e.ref(null),a=e.computed(()=>{return!0===t.disable?null:e.h("span",{ref:n,class:"no-outline",tabindex:-1})});function l(e){const t=o.value;void 0!==e&&0===e.type.indexOf("key")?null!==t&&document.activeElement!==t&&!0===t.contains(document.activeElement)&&t.focus():null!==n.value&&(void 0===e||null!==t&&!0===t.contains(e.target))&&n.value.focus()}return{refocusTargetEl:a,refocusTarget:l}}var Va={xs:30,sm:35,md:40,lg:50,xl:60};const za={...bt,...We,...oa,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>"tf"===e||"ft"===e},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Ea=["update:modelValue"];function Pa(t,o){const{props:n,slots:a,emit:l,proxy:i}=e.getCurrentInstance(),{$q:r}=i,s=yt(n,r),u=e.ref(null),{refocusTargetEl:c,refocusTarget:d}=Oa(n,u),v=Ke(n,Va),p=e.computed(()=>void 0!==n.val&&Array.isArray(n.modelValue)),m=e.computed(()=>{const t=e.toRaw(n.val);return!0===p.value?n.modelValue.findIndex(o=>e.toRaw(o)===t):-1}),f=e.computed(()=>!0===p.value?m.value>-1:e.toRaw(n.modelValue)===e.toRaw(n.trueValue)),h=e.computed(()=>!0===p.value?-1===m.value:e.toRaw(n.modelValue)===e.toRaw(n.falseValue)),g=e.computed(()=>!1===f.value&&!1===h.value),b=e.computed(()=>!0===n.disable?-1:n.tabindex||0),y=e.computed(()=>`q-${t} cursor-pointer no-outline row inline no-wrap items-center`+(!0===n.disable?" disabled":"")+(!0===s.value?` q-${t}--dark`:"")+(!0===n.dense?` q-${t}--dense`:"")+(!0===n.leftLabel?" reverse":"")),w=e.computed(()=>{const e=!0===f.value?"truthy":!0===h.value?"falsy":"indet",o=void 0===n.color||!0!==n.keepColor&&("toggle"===t?!0!==f.value:!0===h.value)?"":` text-${n.color}`;return`q-${t}__inner relative-position non-selectable q-${t}__inner--${e}${o}`}),x=e.computed(()=>{const e={type:"checkbox"};return void 0!==n.name&&Object.assign(e,{".checked":f.value,"^checked":!0===f.value?"checked":void 0,name:n.name,value:!0===p.value?n.val:n.trueValue}),e}),_=aa(x),S=e.computed(()=>{const e={tabindex:b.value,role:"toggle"===t?"switch":"checkbox","aria-label":n.label,"aria-checked":!0===g.value?"mixed":!0===f.value?"true":"false"};return!0===n.disable&&(e["aria-disabled"]="true"),e});function k(e){void 0!==e&&($(e),d(e)),!0!==n.disable&&l("update:modelValue",C(),e)}function C(){if(!0===p.value){if(!0===f.value){const e=n.modelValue.slice();return e.splice(m.value,1),e}return n.modelValue.concat([n.val])}if(!0===f.value){if("ft"!==n.toggleOrder||!1===n.toggleIndeterminate)return n.falseValue}else{if(!0!==h.value)return"ft"!==n.toggleOrder?n.trueValue:n.falseValue;if("ft"===n.toggleOrder||!1===n.toggleIndeterminate)return n.trueValue}return n.indeterminateValue}function q(e){13!==e.keyCode&&32!==e.keyCode||$(e)}function M(e){13!==e.keyCode&&32!==e.keyCode||k(e)}const T=o(f,g);return Object.assign(i,{toggle:k}),()=>{const o=T();!0!==n.disable&&_(o,"unshift",` q-${t}__native absolute q-ma-none q-pa-none`);const l=[e.h("div",{class:w.value,style:v.value,"aria-hidden":"true"},o)];null!==c.value&&l.push(c.value);const i=void 0!==n.label?Ze(a.default,[n.label]):Ye(a.default);return void 0!==i&&l.push(e.h("div",{class:`q-${t}__label q-anchor--skip`},i)),e.h("div",{ref:u,class:y.value,...S.value,onClick:k,onKeydown:q,onKeyup:M},l)}}const Fa=e.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[e.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[e.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),e.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]);var Ia=$e({name:"QCheckbox",props:za,emits:Ea,setup(t){function o(o,n){const a=e.computed(()=>(!0===o.value?t.checkedIcon:!0===n.value?t.indeterminateIcon:t.uncheckedIcon)||null);return()=>null!==a.value?[e.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[e.h(mt,{class:"q-checkbox__icon",name:a.value})])]:[Fa]}return Pa("checkbox",o)}});const Ra={xs:8,sm:10,md:14,lg:20,xl:24};var Na=$e({name:"QChip",props:{...bt,...We,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=yt(t,a),i=Ke(t,Ra),r=e.computed(()=>!0===t.selected||void 0!==t.icon),s=e.computed(()=>!0===t.selected?t.iconSelected||a.iconSet.chip.selected:t.icon),u=e.computed(()=>t.iconRemove||a.iconSet.chip.remove),c=e.computed(()=>!1===t.disable&&(!0===t.clickable||null!==t.selected)),d=e.computed(()=>{const e=!0===t.outline&&t.color||t.textColor;return"q-chip row inline no-wrap items-center"+(!1===t.outline&&void 0!==t.color?` bg-${t.color}`:"")+(e?` text-${e} q-chip--colored`:"")+(!0===t.disable?" disabled":"")+(!0===t.dense?" q-chip--dense":"")+(!0===t.outline?" q-chip--outline":"")+(!0===t.selected?" q-chip--selected":"")+(!0===c.value?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(!0===t.square?" q-chip--square":"")+(!0===l.value?" q-chip--dark q-dark":"")}),v=e.computed(()=>{const e=!0===t.disable?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0},o={...e,role:"button","aria-hidden":"false","aria-label":t.removeAriaLabel||a.lang.label.remove};return{chip:e,remove:o}});function p(e){13===e.keyCode&&m(e)}function m(e){t.disable||(n("update:selected",!t.selected),n("click",e))}function f(e){void 0!==e.keyCode&&13!==e.keyCode||($(e),!1===t.disable&&(n("update:modelValue",!1),n("remove")))}function h(){const n=[];!0===c.value&&n.push(e.h("div",{class:"q-focus-helper"})),!0===r.value&&n.push(e.h(mt,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const a=void 0!==t.label?[e.h("div",{class:"ellipsis"},[t.label])]:void 0;return n.push(e.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Ge(o.default,a))),t.iconRight&&n.push(e.h(mt,{class:"q-chip__icon q-chip__icon--right",name:t.iconRight})),!0===t.removable&&n.push(e.h(mt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:u.value,...v.value.remove,onClick:f,onKeyup:f})),n}return()=>{if(!1===t.modelValue)return;const e={class:d.value,style:i.value};return!0===c.value&&Object.assign(e,v.value.chip,{onClick:m,onKeyup:p}),Je("div",e,h(),"ripple",!1!==t.ripple&&!0!==t.disable,()=>[[ao,t.ripple]])}}});const Da={...We,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,rounded:Boolean,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean},ja=50,Ha=2*ja,Qa=Ha*Math.PI,Ua=Math.round(1e3*Qa)/1e3;var Wa=$e({name:"QCircularProgress",props:{...Da,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=Ke(t),l=e.computed(()=>{const e=(!0===n.lang.rtl?-1:1)*t.angle;return{transform:t.reverse!==(!0===n.lang.rtl)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-e}deg)`:`rotate3d(0, 0, 1, ${e-90}deg)`}}),i=e.computed(()=>!0!==t.instantFeedback&&!0!==t.indeterminate?{transition:`stroke-dashoffset ${t.animationSpeed}ms ease 0s, stroke ${t.animationSpeed}ms ease`}:""),r=e.computed(()=>Ha/(1-t.thickness/2)),s=e.computed(()=>`${r.value/2} ${r.value/2} ${r.value} ${r.value}`),u=e.computed(()=>Le(t.value,t.min,t.max)),c=e.computed(()=>t.max-t.min),d=e.computed(()=>t.thickness/2*r.value),v=e.computed(()=>{const e=(t.max-u.value)/c.value,o=!0===t.rounded&&u.value<t.max&&e<.25?d.value/2*(1-e/.25):0;return Qa*e+o});function p({thickness:t,offset:o,color:n,cls:a,rounded:l}){return e.h("circle",{class:"q-circular-progress__"+a+(void 0!==n?` text-${n}`:""),style:i.value,fill:"transparent",stroke:"currentColor","stroke-width":t,"stroke-dasharray":Ua,"stroke-dashoffset":o,"stroke-linecap":l,cx:r.value,cy:r.value,r:ja})}return()=>{const n=[];void 0!==t.centerColor&&"transparent"!==t.centerColor&&n.push(e.h("circle",{class:`q-circular-progress__center text-${t.centerColor}`,fill:"currentColor",r:ja-d.value/2,cx:r.value,cy:r.value})),void 0!==t.trackColor&&"transparent"!==t.trackColor&&n.push(p({cls:"track",thickness:d.value,offset:0,color:t.trackColor})),n.push(p({cls:"circle",thickness:d.value,offset:v.value,color:t.color,rounded:!0===t.rounded?"round":void 0}));const i=[e.h("svg",{class:"q-circular-progress__svg",style:l.value,viewBox:s.value,"aria-hidden":"true"},n)];return!0===t.showValue&&i.push(e.h("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:t.fontSize}},void 0!==o.default?o.default():[e.h("div",u.value)])),e.h("div",{class:`q-circular-progress q-circular-progress--${!0===t.indeterminate?"in":""}determinate`,style:a.value,role:"progressbar","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":!0===t.indeterminate?void 0:u.value},Ge(o.internal,i))}}});function Ka(e,t,o){const n=w(e);let a,l=n.left-t.event.x,i=n.top-t.event.y,r=Math.abs(l),s=Math.abs(i);const u=t.direction;!0===u.horizontal&&!0!==u.vertical?a=l<0?"left":"right":!0!==u.horizontal&&!0===u.vertical?a=i<0?"up":"down":!0===u.up&&i<0?(a="up",r>s&&(!0===u.left&&l<0?a="left":!0===u.right&&l>0&&(a="right"))):!0===u.down&&i>0?(a="down",r>s&&(!0===u.left&&l<0?a="left":!0===u.right&&l>0&&(a="right"))):!0===u.left&&l<0?(a="left",r<s&&(!0===u.up&&i<0?a="up":!0===u.down&&i>0&&(a="down"))):!0===u.right&&l>0&&(a="right",r<s&&(!0===u.up&&i<0?a="up":!0===u.down&&i>0&&(a="down")));let c=!1;if(void 0===a&&!1===o){if(!0===t.event.isFirst||void 0===t.event.lastDir)return{};a=t.event.lastDir,c=!0,"left"===a||"right"===a?(n.left-=l,r=0,l=0):(n.top-=i,s=0,i=0)}return{synthetic:c,payload:{evt:e,touch:!0!==t.event.mouse,mouse:!0===t.event.mouse,position:n,direction:a,isFirst:t.event.isFirst,isFinal:!0===o,duration:Date.now()-t.event.time,distance:{x:r,y:s},offset:{x:l,y:i},delta:{x:n.left-t.event.lastX,y:n.top-t.event.lastY}}}}let Ya=0;var Xa=Me({name:"touch-pan",beforeMount(e,{value:t,modifiers:o}){if(!0!==o.mouse&&!0!==v.has.touch)return;function n(e,t){!0===o.mouse&&!0===t?$(e):(!0===o.stop&&C(e),!0===o.prevent&&q(e))}const a={uid:"qvtp_"+Ya++,handler:t,modifiers:o,direction:va(o),noop:h,mouseStart(e){ma(e,a)&&g(e)&&(T(a,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),a.start(e,!0))},touchStart(e){if(ma(e,a)){const t=e.target;T(a,"temp",[[t,"touchmove","move","notPassiveCapture"],[t,"touchcancel","end","passiveCapture"],[t,"touchend","end","passiveCapture"]]),a.start(e)}},start(t,n){if(!0===v.is.firefox&&M(e,!0),a.lastEvt=t,!0===n||!0===o.stop){if(!0!==a.direction.all&&(!0!==n||!0!==a.modifiers.mouseAllDir&&!0!==a.modifiers.mousealldir)){const e=t.type.indexOf("mouse")>-1?new MouseEvent(t.type,t):new TouchEvent(t.type,t);!0===t.defaultPrevented&&q(e),!0===t.cancelBubble&&C(e),Object.assign(e,{qKeyEvent:t.qKeyEvent,qClickOutside:t.qClickOutside,qAnchorHandled:t.qAnchorHandled,qClonedBy:void 0===t.qClonedBy?[a.uid]:t.qClonedBy.concat(a.uid)}),a.initialEvent={target:t.target,event:e}}C(t)}const{left:l,top:i}=w(t);a.event={x:l,y:i,time:Date.now(),mouse:!0===n,detected:!1,isFirst:!0,isFinal:!1,lastX:l,lastY:i}},move(e){if(void 0===a.event)return;const t=w(e),l=t.left-a.event.x,i=t.top-a.event.y;if(0===l&&0===i)return;a.lastEvt=e;const r=!0===a.event.mouse,s=()=>{let t;n(e,r),!0!==o.preserveCursor&&!0!==o.preservecursor&&(t=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),!0===r&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),xo(),a.styleCleanup=(e=>{if(a.styleCleanup=void 0,void 0!==t&&(document.documentElement.style.cursor=t),document.body.classList.remove("non-selectable"),!0===r){const t=()=>{document.body.classList.remove("no-pointer-events--children")};void 0!==e?setTimeout(()=>{t(),e()},50):t()}else void 0!==e&&e()})};if(!0===a.event.detected){!0!==a.event.isFirst&&n(e,a.event.mouse);const{payload:t,synthetic:o}=Ka(e,a,!1);return void(void 0!==t&&(!1===a.handler(t)?a.end(e):(void 0===a.styleCleanup&&!0===a.event.isFirst&&s(),a.event.lastX=t.position.left,a.event.lastY=t.position.top,a.event.lastDir=!0===o?void 0:t.direction,a.event.isFirst=!1)))}if(!0===a.direction.all||!0===r&&(!0===a.modifiers.mouseAllDir||!0===a.modifiers.mousealldir))return s(),a.event.detected=!0,void a.move(e);const u=Math.abs(l),c=Math.abs(i);u!==c&&(!0===a.direction.horizontal&&u>c||!0===a.direction.vertical&&u<c||!0===a.direction.up&&u<c&&i<0||!0===a.direction.down&&u<c&&i>0||!0===a.direction.left&&u>c&&l<0||!0===a.direction.right&&u>c&&l>0?(a.event.detected=!0,a.move(e)):a.end(e,!0))},end(t,o){if(void 0!==a.event){if(B(a,"temp"),!0===v.is.firefox&&M(e,!1),!0===o)void 0!==a.styleCleanup&&a.styleCleanup(),!0!==a.event.detected&&void 0!==a.initialEvent&&a.initialEvent.target.dispatchEvent(a.initialEvent.event);else if(!0===a.event.detected){!0===a.event.isFirst&&a.handler(Ka(void 0===t?a.lastEvt:t,a).payload);const{payload:e}=Ka(void 0===t?a.lastEvt:t,a,!0),o=()=>{a.handler(e)};void 0!==a.styleCleanup?a.styleCleanup(o):o()}a.event=void 0,a.initialEvent=void 0,a.lastEvt=void 0}}};if(e.__qtouchpan=a,!0===o.mouse){const t=!0===o.mouseCapture||!0===o.mousecapture?"Capture":"";T(a,"main",[[e,"mousedown","mouseStart",`passive${t}`]])}!0===v.has.touch&&T(a,"main",[[e,"touchstart","touchStart",`passive${!0===o.capture?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchpan;void 0!==o&&(t.oldValue!==t.value&&("function"!==typeof value&&o.end(),o.handler=t.value),o.direction=va(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;void 0!==t&&(void 0!==t.event&&t.end(),B(t,"main"),B(t,"temp"),!0===v.is.firefox&&M(e,!1),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchpan)}});const Za="q-slider__marker-labels",Ga=e=>({value:e}),Ja=({marker:t})=>e.h("div",{key:t.value,style:t.style,class:t.classes},t.label),el=[34,37,40,33,39,38],tl={...bt,...oa,min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,hideSelection:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},ol=["pan","update:modelValue","change"];function nl({updateValue:t,updatePosition:o,getDragging:n,formAttrs:a}){const{props:l,emit:i,slots:r,proxy:{$q:s}}=e.getCurrentInstance(),u=yt(l,s),c=aa(a),d=e.ref(!1),v=e.ref(!1),p=e.ref(!1),m=e.ref(!1),f=e.computed(()=>!0===l.vertical?"--v":"--h"),h=e.computed(()=>"-"+(!0===l.switchLabelSide?"switched":"standard")),g=e.computed(()=>!0===l.vertical?!0===l.reverse:l.reverse!==(!0===s.lang.rtl)),b=e.computed(()=>!0===isNaN(l.innerMin)||l.innerMin<l.min?l.min:l.innerMin),y=e.computed(()=>!0===isNaN(l.innerMax)||l.innerMax>l.max?l.max:l.innerMax),x=e.computed(()=>!0!==l.disable&&!0!==l.readonly&&b.value<y.value),_=e.computed(()=>{if(0===l.step)return e=>e;const e=(String(l.step).trim().split(".")[1]||"").length;return t=>parseFloat(t.toFixed(e))}),S=e.computed(()=>0===l.step?1:l.step),k=e.computed(()=>!0===x.value?l.tabindex||0:-1),C=e.computed(()=>l.max-l.min),q=e.computed(()=>y.value-b.value),$=e.computed(()=>Y(b.value)),M=e.computed(()=>Y(y.value)),T=e.computed(()=>!0===l.vertical?!0===g.value?"bottom":"top":!0===g.value?"right":"left"),B=e.computed(()=>!0===l.vertical?"height":"width"),A=e.computed(()=>!0===l.vertical?"width":"height"),L=e.computed(()=>!0===l.vertical?"vertical":"horizontal"),O=e.computed(()=>{const e={role:"slider","aria-valuemin":b.value,"aria-valuemax":y.value,"aria-orientation":L.value,"data-step":l.step};return!0===l.disable?e["aria-disabled"]="true":!0===l.readonly&&(e["aria-readonly"]="true"),e}),V=e.computed(()=>`q-slider q-slider${f.value} q-slider--${!0===d.value?"":"in"}active inline no-wrap `+(!0===l.vertical?"row":"column")+(!0===l.disable?" disabled":" q-slider--enabled"+(!0===x.value?" q-slider--editable":""))+("both"===p.value?" q-slider--focus":"")+(l.label||!0===l.labelAlways?" q-slider--label":"")+(!0===l.labelAlways?" q-slider--label-always":"")+(!0===u.value?" q-slider--dark":"")+(!0===l.dense?" q-slider--dense q-slider--dense"+f.value:""));function z(e){const t="q-slider__"+e;return`${t} ${t}${f.value} ${t}${f.value}${h.value}`}function E(e){const t="q-slider__"+e;return`${t} ${t}${f.value}`}const P=e.computed(()=>{const e=l.selectionColor||l.color;return"q-slider__selection absolute"+(void 0!==e?` text-${e}`:"")}),F=e.computed(()=>E("markers")+" absolute overflow-hidden"),I=e.computed(()=>E("track-container")),R=e.computed(()=>z("pin")),N=e.computed(()=>z("label")),D=e.computed(()=>z("text-container")),j=e.computed(()=>z("marker-labels-container")+(void 0!==l.markerLabelsClass?` ${l.markerLabelsClass}`:"")),H=e.computed(()=>"q-slider__track relative-position no-outline"+(void 0!==l.trackColor?` bg-${l.trackColor}`:"")),Q=e.computed(()=>{const e={[A.value]:l.trackSize};return void 0!==l.trackImg&&(e.backgroundImage=`url(${l.trackImg}) !important`),e}),U=e.computed(()=>"q-slider__inner absolute"+(void 0!==l.innerTrackColor?` bg-${l.innerTrackColor}`:"")),W=e.computed(()=>{const e=M.value-$.value,t={[T.value]:`${100*$.value}%`,[B.value]:0===e?"2px":`${100*e}%`};return void 0!==l.innerTrackImg&&(t.backgroundImage=`url(${l.innerTrackImg}) !important`),t});function K(e){const{min:t,max:o,step:n}=l;let a=t+e*(o-t);if(n>0){const e=(a-b.value)%n;a+=(Math.abs(e)>=n/2?(e<0?-1:1)*n:0)-e}return a=_.value(a),Le(a,b.value,y.value)}function Y(e){return 0===C.value?0:(e-l.min)/C.value}function X(e,t){const o=w(e),n=!0===l.vertical?Le((o.top-t.top)/t.height,0,1):Le((o.left-t.left)/t.width,0,1);return Le(!0===g.value?1-n:n,$.value,M.value)}const Z=e.computed(()=>!0===we(l.markers)?l.markers:S.value),G=e.computed(()=>{const e=[],t=Z.value,o=l.max;let n=l.min;do{e.push(n),n+=t}while(n<o);return e.push(o),e}),J=e.computed(()=>{const e=` ${Za}${f.value}-`;return Za+`${e}${!0===l.switchMarkerLabelsSide?"switched":"standard"}`+`${e}${!0===g.value?"rtl":"ltr"}`}),ee=e.computed(()=>{return!1===l.markerLabels?null:ne(l.markerLabels).map((e,t)=>({index:t,value:e.value,label:e.label||e.value,classes:J.value+(void 0!==e.classes?" "+e.classes:""),style:{...ae(e.value),...e.style||{}}}))}),te=e.computed(()=>({markerList:ee.value,markerMap:le.value,classes:J.value,getStyle:ae})),oe=e.computed(()=>{const e=0===q.value?"2px":100*Z.value/q.value;return{...W.value,backgroundSize:!0===l.vertical?`2px ${e}%`:`${e}% 2px`}});function ne(e){if(!1===e)return null;if(!0===e)return G.value.map(Ga);if("function"===typeof e)return G.value.map(t=>{const o=e(t);return!0===ge(o)?{...o,value:t}:{value:t,label:o}});const t=({value:e})=>e>=l.min&&e<=l.max;return!0===Array.isArray(e)?e.map(e=>!0===ge(e)?e:{value:e}).filter(t):Object.keys(e).map(t=>{const o=e[t],n=Number(t);return!0===ge(o)?{...o,value:n}:{value:n,label:o}}).filter(t)}function ae(e){return{[T.value]:`${100*(e-l.min)/C.value}%`}}const le=e.computed(()=>{if(!1===l.markerLabels)return null;const e={};return ee.value.forEach(t=>{e[t.value]=t}),e});function ie(){if(void 0!==r["marker-label-group"])return r["marker-label-group"](te.value);const e=r["marker-label"]||Ja;return ee.value.map(t=>e({marker:t,...te.value}))}const re=e.computed(()=>{return[[Xa,se,void 0,{[L.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]});function se(e){!0===e.isFinal?(void 0!==m.value&&(o(e.evt),!0===e.touch&&t(!0),m.value=void 0,i("pan","end")),d.value=!1,p.value=!1):!0===e.isFirst?(m.value=n(e.evt),o(e.evt),t(),d.value=!0,i("pan","start")):(o(e.evt),t())}function ue(){p.value=!1}function ce(e){o(e,n(e)),t(),v.value=!0,d.value=!0,document.addEventListener("mouseup",de,!0)}function de(){v.value=!1,d.value=!1,t(!0),ue(),document.removeEventListener("mouseup",de,!0)}function ve(e){o(e,n(e)),t(!0)}function pe(e){el.includes(e.keyCode)&&t(!0)}function me(e){if(!0===l.vertical)return null;const t=s.lang.rtl!==l.reverse?1-e:e;return{transform:`translateX(calc(${2*t-1} * ${l.thumbSize} / 2 + ${50-100*t}%))`}}function fe(t){const o=e.computed(()=>!1!==v.value||p.value!==t.focusValue&&"both"!==p.value?"":" q-slider--focus"),n=e.computed(()=>`q-slider__thumb q-slider__thumb${f.value} q-slider__thumb${f.value}-${!0===g.value?"rtl":"ltr"} absolute non-selectable`+o.value+(void 0!==t.thumbColor.value?` text-${t.thumbColor.value}`:"")),a=e.computed(()=>({width:l.thumbSize,height:l.thumbSize,[T.value]:`${100*t.ratio.value}%`,zIndex:p.value===t.focusValue?2:void 0})),i=e.computed(()=>void 0!==t.labelColor.value?` text-${t.labelColor.value}`:""),r=e.computed(()=>me(t.ratio.value)),s=e.computed(()=>"q-slider__text"+(void 0!==t.labelTextColor.value?` text-${t.labelTextColor.value}`:""));return()=>{const o=[e.h("svg",{class:"q-slider__thumb-shape absolute-full",viewBox:"0 0 20 20","aria-hidden":"true"},[e.h("path",{d:l.thumbPath})]),e.h("div",{class:"q-slider__focus-ring fit"})];return!0!==l.label&&!0!==l.labelAlways||(o.push(e.h("div",{class:R.value+" absolute fit no-pointer-events"+i.value},[e.h("div",{class:N.value,style:{minWidth:l.thumbSize}},[e.h("div",{class:D.value,style:r.value},[e.h("span",{class:s.value},t.label.value)])])])),void 0!==l.name&&!0!==l.disable&&c(o,"push")),e.h("div",{class:n.value,style:a.value,...t.getNodeData()},o)}}function he(t,o,n,a){const i=[];"transparent"!==l.innerTrackColor&&i.push(e.h("div",{key:"inner",class:U.value,style:W.value})),"transparent"!==l.selectionColor&&i.push(e.h("div",{key:"selection",class:P.value,style:t.value})),!1!==l.markers&&i.push(e.h("div",{key:"marker",class:F.value,style:oe.value})),a(i);const r=[Je("div",{key:"trackC",class:I.value,tabindex:o.value,...n.value},[e.h("div",{class:H.value,style:Q.value},i)],"slide",x.value,()=>re.value)];if(!1!==l.markerLabels){const t=!0===l.switchMarkerLabelsSide?"unshift":"push";r[t](e.h("div",{key:"markerL",class:j.value},ie()))}return r}return e.onBeforeUnmount(()=>{document.removeEventListener("mouseup",de,!0)}),{state:{active:d,focus:p,preventFocus:v,dragging:m,editable:x,classes:V,tabindex:k,attributes:O,roundValueFn:_,keyStep:S,trackLen:C,innerMin:b,innerMinRatio:$,innerMax:y,innerMaxRatio:M,positionProp:T,sizeProp:B,isReversed:g},methods:{onActivate:ce,onMobileClick:ve,onBlur:ue,onKeyup:pe,getContent:he,getThumbRenderFn:fe,convertRatioToModel:K,convertModelToRatio:Y,getDraggingRatio:X}}}const al=()=>({});var ll=$e({name:"QSlider",props:{...tl,modelValue:{required:!0,default:null,validator:e=>"number"===typeof e||null===e},labelValue:[String,Number]},emits:ol,setup(t,{emit:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),{state:a,methods:l}=nl({updateValue:f,updatePosition:g,getDragging:h,formAttrs:na(t)}),i=e.ref(null),r=e.ref(0),s=e.ref(0);function u(){s.value=null===t.modelValue?a.innerMin.value:Le(t.modelValue,a.innerMin.value,a.innerMax.value)}e.watch(()=>`${t.modelValue}|${a.innerMin.value}|${a.innerMax.value}`,u),u();const c=e.computed(()=>l.convertModelToRatio(s.value)),d=e.computed(()=>!0===a.active.value?r.value:c.value),v=e.computed(()=>{const e={[a.positionProp.value]:`${100*a.innerMinRatio.value}%`,[a.sizeProp.value]:`${100*(d.value-a.innerMinRatio.value)}%`};return void 0!==t.selectionImg&&(e.backgroundImage=`url(${t.selectionImg}) !important`),e}),p=l.getThumbRenderFn({focusValue:!0,getNodeData:al,ratio:d,label:e.computed(()=>void 0!==t.labelValue?t.labelValue:s.value),thumbColor:e.computed(()=>t.thumbColor||t.color),labelColor:e.computed(()=>t.labelColor),labelTextColor:e.computed(()=>t.labelTextColor)}),m=e.computed(()=>{return!0!==a.editable.value?{}:!0===n.platform.is.mobile?{onClick:l.onMobileClick}:{onMousedown:l.onActivate,onFocus:b,onBlur:l.onBlur,onKeydown:y,onKeyup:l.onKeyup}});function f(e){s.value!==t.modelValue&&o("update:modelValue",s.value),!0===e&&o("change",s.value)}function h(){return i.value.getBoundingClientRect()}function g(e,o=a.dragging.value){const n=l.getDraggingRatio(e,o);s.value=l.convertRatioToModel(n),r.value=!0!==t.snap||0===t.step?n:l.convertModelToRatio(s.value)}function b(){a.focus.value=!0}function y(e){if(!el.includes(e.keyCode))return;$(e);const o=([34,33].includes(e.keyCode)?10:1)*a.keyStep.value,n=([34,37,40].includes(e.keyCode)?-1:1)*(!0===a.isReversed.value?-1:1)*(!0===t.vertical?-1:1)*o;s.value=Le(a.roundValueFn.value(s.value+n),a.innerMin.value,a.innerMax.value),f()}return()=>{const o=l.getContent(v,a.tabindex,m,e=>{e.push(p())});return e.h("div",{ref:i,class:a.classes.value+(null===t.modelValue?" q-slider--no-value":""),...a.attributes.value,"aria-valuenow":t.modelValue},o)}}});function il(){const t=e.ref(!n.value);return!1===t.value&&e.onMounted(()=>{t.value=!0}),t}const rl="undefined"!==typeof ResizeObserver,sl=!0===rl?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"};var ul=$e({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(t,{emit:o}){let n,a=null,l={width:-1,height:-1};function i(e){!0===e||0===t.debounce||"0"===t.debounce?r():null===a&&(a=setTimeout(r,t.debounce))}function r(){if(null!==a&&(clearTimeout(a),a=null),n){const{offsetWidth:e,offsetHeight:t}=n;e===l.width&&t===l.height||(l={width:e,height:t},o("resize",l))}}const{proxy:s}=e.getCurrentInstance();if(s.trigger=i,!0===rl){let t;const o=a=>{n=s.$el.parentNode,n?(t=new ResizeObserver(i),t.observe(n),r()):!0!==a&&e.nextTick(()=>{o(!0)})};return e.onMounted(()=>{o()}),e.onBeforeUnmount(()=>{null!==a&&clearTimeout(a),void 0!==t&&(void 0!==t.disconnect?t.disconnect():n&&t.unobserve(n))}),h}{const t=il();let o;function u(){null!==a&&(clearTimeout(a),a=null),void 0!==o&&(void 0!==o.removeEventListener&&o.removeEventListener("resize",i,f.passive),o=void 0)}function c(){u(),n&&n.contentDocument&&(o=n.contentDocument.defaultView,o.addEventListener("resize",i,f.passive),r())}return e.onMounted(()=>{e.nextTick(()=>{n=s.$el,n&&c()})}),e.onBeforeUnmount(u),()=>{if(!0===t.value)return e.h("object",{style:sl.style,tabindex:-1,type:"text/html",data:sl.url,"aria-hidden":"true",onLoad:c})}}}});let cl=!1;{const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,cl=e.scrollLeft>=0,e.remove()}function dl(e,t,o){const n=!0===o?["left","right"]:["top","bottom"];return`absolute-${!0===t?n[0]:n[1]}${e?` text-${e}`:""}`}const vl=["left","center","right","justify"];var pl=$e({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>vl.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,{registerTick:i}=Xo(),{registerTick:r}=Xo(),{registerTick:s}=Xo(),{registerTimeout:u,removeTimeout:c}=Zo(),{registerTimeout:d,removeTimeout:v}=Zo(),p=e.ref(null),m=e.ref(null),f=e.ref(t.modelValue),h=e.ref(!1),g=e.ref(!0),b=e.ref(!1),y=e.ref(!1),w=[],x=e.ref(0),_=e.ref(!1);let S,k=null,C=null;const q=e.computed(()=>({activeClass:t.activeClass,activeColor:t.activeColor,activeBgColor:t.activeBgColor,indicatorClass:dl(t.indicatorColor,t.switchIndicator,t.vertical),narrowIndicator:t.narrowIndicator,inlineLabel:t.inlineLabel,noCaps:t.noCaps})),$=e.computed(()=>{const e=x.value,t=f.value;for(let o=0;o<e;o++)if(w[o].name.value===t)return!0;return!1}),M=e.computed(()=>{const e=!0===h.value?"left":!0===y.value?"justify":t.align;return`q-tabs__content--align-${e}`}),T=e.computed(()=>"q-tabs row no-wrap items-center"+` q-tabs--${!0===h.value?"":"not-"}scrollable`+` q-tabs--${!0===t.vertical?"vertical":"horizontal"}`+` q-tabs__arrows--${!0===t.outsideArrows?"outside":"inside"}`+` q-tabs--mobile-with${!0===t.mobileArrows?"":"out"}-arrows`+(!0===t.dense?" q-tabs--dense":"")+(!0===t.shrink?" col-shrink":"")+(!0===t.stretch?" self-stretch":"")),B=e.computed(()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+M.value+(void 0!==t.contentClass?` ${t.contentClass}`:"")),A=e.computed(()=>!0===t.vertical?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),L=e.computed(()=>!0!==t.vertical&&!0===l.lang.rtl),O=e.computed(()=>!1===cl&&!0===L.value);function V({name:e,setCurrent:o,skipEmit:a}){f.value!==e&&(!0!==a&&void 0!==t["onUpdate:modelValue"]&&n("update:modelValue",e),!0!==o&&void 0!==t["onUpdate:modelValue"]||(P(f.value,e),f.value=e))}function z(){i(()=>{E({width:p.value.offsetWidth,height:p.value.offsetHeight})})}function E(e){if(void 0===A.value||null===m.value)return;const o=e[A.value.container],n=Math.min(m.value[A.value.scroll],Array.prototype.reduce.call(m.value.children,(e,t)=>e+(t[A.value.content]||0),0)),a=o>0&&n>o;h.value=a,!0===a&&r(I),y.value=o<parseInt(t.breakpoint,10)}function P(e,o){const n=void 0!==e&&null!==e&&""!==e?w.find(t=>t.name.value===e):null,a=void 0!==o&&null!==o&&""!==o?w.find(e=>e.name.value===o):null;if(n&&a){const e=n.tabIndicatorRef.value,o=a.tabIndicatorRef.value;null!==k&&(clearTimeout(k),k=null),e.style.transition="none",e.style.transform="none",o.style.transition="none",o.style.transform="none";const l=e.getBoundingClientRect(),i=o.getBoundingClientRect();o.style.transform=!0===t.vertical?`translate3d(0,${l.top-i.top}px,0) scale3d(1,${i.height?l.height/i.height:1},1)`:`translate3d(${l.left-i.left}px,0,0) scale3d(${i.width?l.width/i.width:1},1,1)`,s(()=>{k=setTimeout(()=>{k=null,o.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",o.style.transform="none"},70)})}a&&!0===h.value&&F(a.rootRef.value)}function F(e){const{left:o,width:n,top:a,height:l}=m.value.getBoundingClientRect(),i=e.getBoundingClientRect();let r=!0===t.vertical?i.top-a:i.left-o;if(r<0)return m.value[!0===t.vertical?"scrollTop":"scrollLeft"]+=Math.floor(r),void I();r+=!0===t.vertical?i.height-l:i.width-n,r>0&&(m.value[!0===t.vertical?"scrollTop":"scrollLeft"]+=Math.ceil(r),I())}function I(){const e=m.value;if(null===e)return;const o=e.getBoundingClientRect(),n=!0===t.vertical?e.scrollTop:Math.abs(e.scrollLeft);!0===L.value?(g.value=Math.ceil(n+o.width)<e.scrollWidth-1,b.value=n>0):(g.value=n>0,b.value=!0===t.vertical?Math.ceil(n+o.height)<e.scrollHeight:Math.ceil(n+o.width)<e.scrollWidth)}function R(e){null!==C&&clearInterval(C),C=setInterval(()=>{!0===U(e)&&j()},5)}function N(){R(!0===O.value?Number.MAX_SAFE_INTEGER:0)}function D(){R(!0===O.value?0:Number.MAX_SAFE_INTEGER)}function j(){null!==C&&(clearInterval(C),C=null)}function H(e,o){const n=Array.prototype.filter.call(m.value.children,e=>e===o||e.matches&&!0===e.matches(".q-tab.q-focusable")),a=n.length;if(0===a)return;if(36===e)return F(n[0]),n[0].focus(),!0;if(35===e)return F(n[a-1]),n[a-1].focus(),!0;const l=e===(!0===t.vertical?38:37),i=e===(!0===t.vertical?40:39),r=!0===l?-1:!0===i?1:void 0;if(void 0!==r){const e=!0===L.value?-1:1,t=n.indexOf(o)+r*e;return t>=0&&t<a&&(F(n[t]),n[t].focus({preventScroll:!0})),!0}}e.watch(L,I),e.watch(()=>t.modelValue,e=>{V({name:e,setCurrent:!0,skipEmit:!0})}),e.watch(()=>t.outsideArrows,z);const Q=e.computed(()=>!0===O.value?{get:e=>Math.abs(e.scrollLeft),set:(e,t)=>{e.scrollLeft=-t}}:!0===t.vertical?{get:e=>e.scrollTop,set:(e,t)=>{e.scrollTop=t}}:{get:e=>e.scrollLeft,set:(e,t)=>{e.scrollLeft=t}});function U(e){const t=m.value,{get:o,set:n}=Q.value;let a=!1,l=o(t);const i=e<l?-1:1;return l+=5*i,l<0?(a=!0,l=0):(-1===i&&l<=e||1===i&&l>=e)&&(a=!0,l=e),n(t,l),I(),a}function W(e,t){for(const o in e)if(e[o]!==t[o])return!1;return!0}function K(){let e=null,t={matchedLen:0,queryDiff:9999,hrefLen:0};const o=w.filter(e=>void 0!==e.routeData&&!0===e.routeData.hasRouterLink.value),{hash:n,query:l}=a.$route,i=Object.keys(l).length;for(const a of o){const o=!0===a.routeData.exact.value;if(!0!==a.routeData[!0===o?"linkIsExactActive":"linkIsActive"].value)continue;const{hash:r,query:s,matched:u,href:c}=a.routeData.resolvedLink.value,d=Object.keys(s).length;if(!0===o){if(r!==n)continue;if(d!==i||!1===W(l,s))continue;e=a.name.value;break}if(""!==r&&r!==n)continue;if(0!==d&&!1===W(s,l))continue;const v={matchedLen:u.length,queryDiff:i-d,hrefLen:c.length-r.length};if(v.matchedLen>t.matchedLen)e=a.name.value,t=v;else if(v.matchedLen===t.matchedLen){if(v.queryDiff<t.queryDiff)e=a.name.value,t=v;else if(v.queryDiff!==t.queryDiff)continue;v.hrefLen>t.hrefLen&&(e=a.name.value,t=v)}}null===e&&!0===w.some(e=>void 0===e.routeData&&e.name.value===f.value)||V({name:e,setCurrent:!0})}function Y(e){if(c(),!0!==_.value&&null!==p.value&&e.target&&"function"===typeof e.target.closest){const t=e.target.closest(".q-tab");t&&!0===p.value.contains(t)&&(_.value=!0,!0===h.value&&F(t))}}function X(){u(()=>{_.value=!1},30)}function Z(){!1===te.avoidRouteWatcher?d(K):v()}function G(){if(void 0===S){const t=e.watch(()=>a.$route.fullPath,Z);S=(()=>{t(),S=void 0})}}function J(e){w.push(e),x.value++,z(),void 0===e.routeData||void 0===a.$route?d(()=>{if(!0===h.value){const e=f.value,t=void 0!==e&&null!==e&&""!==e?w.find(t=>t.name.value===e):null;t&&F(t.rootRef.value)}}):(G(),!0===e.routeData.hasRouterLink.value&&Z())}function ee(e){w.splice(w.indexOf(e),1),x.value--,z(),void 0!==S&&void 0!==e.routeData&&(!0===w.every(e=>void 0===e.routeData)&&S(),Z())}const te={currentModel:f,tabProps:q,hasFocus:_,hasActiveTab:$,registerTab:J,unregisterTab:ee,verifyRouteModel:Z,updateModel:V,onKbdNavigate:H,avoidRouteWatcher:!1};function oe(){null!==k&&clearTimeout(k),j(),void 0!==S&&S()}let ne;return e.provide(ce,te),e.onBeforeUnmount(oe),e.onDeactivated(()=>{ne=void 0!==S,oe()}),e.onActivated(()=>{!0===ne&&G(),z()}),()=>{return e.h("div",{ref:p,class:T.value,role:"tablist",onFocusin:Y,onFocusout:X},[e.h(ul,{onResize:E}),e.h("div",{ref:m,class:B.value,onScroll:I},Ye(o.default)),e.h(mt,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(!0===g.value?"":" q-tabs__arrow--faded"),name:t.leftIcon||l.iconSet.tabs[!0===t.vertical?"up":"left"],onMousedownPassive:N,onTouchstartPassive:N,onMouseupPassive:j,onMouseleavePassive:j,onTouchendPassive:j}),e.h(mt,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(!0===b.value?"":" q-tabs__arrow--faded"),name:t.rightIcon||l.iconSet.tabs[!0===t.vertical?"down":"right"],onMousedownPassive:D,onTouchstartPassive:D,onMouseupPassive:j,onMouseleavePassive:j,onTouchendPassive:j})])}}});let ml=0;const fl=["click","keydown"],hl={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${ml++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function gl(t,o,n,a){const l=e.inject(ce,ve);if(l===ve)return console.error("QTab/QRouteTab component needs to be child of QTabs"),ve;const{proxy:i}=e.getCurrentInstance(),r=e.ref(null),s=e.ref(null),u=e.ref(null),c=e.computed(()=>!0!==t.disable&&!1!==t.ripple&&Object.assign({keyCodes:[13,32],early:!0},!0===t.ripple?{}:t.ripple)),d=e.computed(()=>l.currentModel.value===t.name),v=e.computed(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(!0===d.value?" q-tab--active"+(l.tabProps.value.activeClass?" "+l.tabProps.value.activeClass:"")+(l.tabProps.value.activeColor?` text-${l.tabProps.value.activeColor}`:"")+(l.tabProps.value.activeBgColor?` bg-${l.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(t.icon&&t.label&&!1===l.tabProps.value.inlineLabel?" q-tab--full":"")+(!0===t.noCaps||!0===l.tabProps.value.noCaps?" q-tab--no-caps":"")+(!0===t.disable?" disabled":" q-focusable q-hoverable cursor-pointer")+(void 0!==a?a.linkClass.value:"")),p=e.computed(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(!0===l.tabProps.value.inlineLabel?"row no-wrap q-tab__content--inline":"column")+(void 0!==t.contentClass?` ${t.contentClass}`:"")),m=e.computed(()=>!0===t.disable||!0===l.hasFocus.value||!1===d.value&&!0===l.hasActiveTab.value?-1:t.tabindex||0);function f(e,o){if(!0!==o&&null!==r.value&&r.value.focus(),!0!==t.disable){if(void 0===a)return l.updateModel({name:t.name}),void n("click",e);if(!0===a.hasRouterLink.value){const o=(o={})=>{let n;const i=void 0===o.to||!0===he(o.to,t.to)?l.avoidRouteWatcher=Xn():null;return a.navigateToRouterLink(e,{...o,returnRouterError:!0}).catch(e=>{n=e}).then(e=>{if(i===l.avoidRouteWatcher&&(l.avoidRouteWatcher=!1,void 0===n&&(void 0===e||void 0!==e.message&&!0===e.message.startsWith("Avoided redundant navigation"))&&l.updateModel({name:t.name})),!0===o.returnRouterError)return void 0!==n?Promise.reject(n):e})};return n("click",e,o),void(!0!==e.defaultPrevented&&o())}n("click",e)}else void 0!==a&&!0===a.hasRouterLink.value&&$(e)}function h(e){Y(e,[13,32])?f(e,!0):!0!==K(e)&&e.keyCode>=35&&e.keyCode<=40&&!0!==e.altKey&&!0!==e.metaKey&&!0===l.onKbdNavigate(e.keyCode,i.$el)&&$(e),n("keydown",e)}function g(){const n=l.tabProps.value.narrowIndicator,a=[],i=e.h("div",{ref:u,class:["q-tab__indicator",l.tabProps.value.indicatorClass]});void 0!==t.icon&&a.push(e.h(mt,{class:"q-tab__icon",name:t.icon})),void 0!==t.label&&a.push(e.h("div",{class:"q-tab__label"},t.label)),!1!==t.alert&&a.push(void 0!==t.alertIcon?e.h(mt,{class:"q-tab__alert-icon",color:!0!==t.alert?t.alert:void 0,name:t.alertIcon}):e.h("div",{class:"q-tab__alert"+(!0!==t.alert?` text-${t.alert}`:"")})),!0===n&&a.push(i);const s=[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:r}),e.h("div",{class:p.value},Ze(o.default,a))];return!1===n&&s.push(i),s}const b={name:e.computed(()=>t.name),rootRef:s,tabIndicatorRef:u,routeData:a};function y(o,n){const a={ref:s,class:v.value,tabindex:m.value,role:"tab","aria-selected":!0===d.value?"true":"false","aria-disabled":!0===t.disable?"true":void 0,onClick:f,onKeydown:h,...n};return e.withDirectives(e.h(o,a,g()),[[ao,c.value]])}return e.onBeforeUnmount(()=>{l.unregisterTab(b)}),e.onMounted(()=>{l.registerTab(b)}),{renderTab:y,$tabs:l}}var bl=$e({name:"QTab",props:hl,emits:fl,setup(e,{slots:t,emit:o}){const{renderTab:n}=gl(e,t,o);return()=>n("div")}}),yl=$e({name:"QTabPanels",props:{...wa,...bt},emits:xa,setup(t,{slots:o}){const n=e.getCurrentInstance(),a=yt(t,n.proxy.$q),{updatePanelsList:l,getPanelContent:i,panelDirectives:r}=_a(),s=e.computed(()=>"q-tab-panels q-panel-parent"+(!0===a.value?" q-tab-panels--dark q-dark":""));return()=>{return l(o),Je("div",{class:s.value},i(),"pan",t.swipeable,()=>r.value)}}}),wl=$e({name:"QTabPanel",props:ba,setup(t,{slots:o}){return()=>e.h("div",{class:"q-tab-panel",role:"tabpanel"},Ye(o.default))}});const xl=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,_l=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Sl=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,kl=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Cl=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,ql={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>xl.test(e),hexaColor:e=>_l.test(e),hexOrHexaColor:e=>Sl.test(e),rgbColor:e=>kl.test(e),rgbaColor:e=>Cl.test(e),rgbOrRgbaColor:e=>kl.test(e)||Cl.test(e),hexOrRgbColor:e=>xl.test(e)||kl.test(e),hexaOrRgbaColor:e=>_l.test(e)||Cl.test(e),anyColor:e=>Sl.test(e)||kl.test(e)||Cl.test(e)};var $l={testPattern:ql};const Ml=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function Tl({r:e,g:t,b:o,a:n}){const a=void 0!==n;if(e=Math.round(e),t=Math.round(t),o=Math.round(o),e>255||t>255||o>255||a&&n>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return n=a?(256|Math.round(255*n/100)).toString(16).slice(1):"","#"+(o|t<<8|e<<16|1<<24).toString(16).slice(1)+n}function Bl({r:e,g:t,b:o,a:n}){return`rgb${void 0!==n?"a":""}(${e},${t},${o}${void 0!==n?","+n/100:""})`}function Al(e){if("string"!==typeof e)throw new TypeError("Expected a string");e=e.replace(/^#/,""),3===e.length?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:4===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((255&t)/2.55)}:{r:t>>16,g:t>>8&255,b:255&t}}function Ll({h:e,s:t,v:o,a:n}){let a,l,i;t/=100,o/=100,e/=360;const r=Math.floor(6*e),s=6*e-r,u=o*(1-t),c=o*(1-s*t),d=o*(1-(1-s)*t);switch(r%6){case 0:a=o,l=d,i=u;break;case 1:a=c,l=o,i=u;break;case 2:a=u,l=o,i=d;break;case 3:a=u,l=c,i=o;break;case 4:a=d,l=u,i=o;break;case 5:a=o,l=u,i=c;break}return{r:Math.round(255*a),g:Math.round(255*l),b:Math.round(255*i),a:n}}function Ol({r:e,g:t,b:o,a:n}){const a=Math.max(e,t,o),l=Math.min(e,t,o),i=a-l,r=0===a?0:i/a,s=a/255;let u;switch(a){case l:u=0;break;case e:u=t-o+i*(t<o?6:0),u/=6*i;break;case t:u=o-e+2*i,u/=6*i;break;case o:u=e-t+4*i,u/=6*i;break}return{h:Math.round(360*u),s:Math.round(100*r),v:Math.round(100*s),a:n}}function Vl(e){if("string"!==typeof e)throw new TypeError("Expected a string");const t=e.replace(/ /g,""),o=Ml.exec(t);if(null===o)return Al(t);const n={r:Math.min(255,parseInt(o[2],10)),g:Math.min(255,parseInt(o[3],10)),b:Math.min(255,parseInt(o[4],10))};if(o[1]){const e=parseFloat(o[5]);n.a=100*Math.min(1,!0===isNaN(e)?1:e)}return n}function zl(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if("number"!==typeof t)throw new TypeError("Expected a numeric percent");const o=Vl(e),n=t<0?0:255,a=Math.abs(t)/100,l=o.r,i=o.g,r=o.b;return"#"+(16777216+65536*(Math.round((n-l)*a)+l)+256*(Math.round((n-i)*a)+i)+(Math.round((n-r)*a)+r)).toString(16).slice(1)}function El(e){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const t="string"===typeof e?Vl(e):e,o=t.r/255,n=t.g/255,a=t.b/255,l=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),i=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),r=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4);return.2126*l+.7152*i+.0722*r}function Pl(e){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b} object as color");const t="string"===typeof e?Vl(e):e;return(299*t.r+587*t.g+114*t.b)/1e3}function Fl(e,t){if("string"!==typeof e&&(!e||void 0===e.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as fgColor");if("string"!==typeof t&&(!t||void 0===t.r))throw new TypeError("Expected a string or a {r, g, b[, a]} object as bgColor");const o="string"===typeof e?Vl(e):e,n=o.r/255,a=o.g/255,l=o.b/255,i=void 0!==o.a?o.a/100:1,r="string"===typeof t?Vl(t):t,s=r.r/255,u=r.g/255,c=r.b/255,d=void 0!==r.a?r.a/100:1,v=i+d*(1-i),p=Math.round((n*i+s*d*(1-i))/v*255),m=Math.round((a*i+u*d*(1-i))/v*255),f=Math.round((l*i+c*d*(1-i))/v*255),h={r:p,g:m,b:f,a:Math.round(100*v)};return"string"===typeof e?Tl(h):h}function Il(e,t){if("string"!==typeof e)throw new TypeError("Expected a string as color");if(void 0===t||t<-1||t>1)throw new TypeError("Expected offset to be between -1 and 1");const{r:o,g:n,b:a,a:l}=Vl(e),i=void 0!==l?l/100:0;return Tl({r:o,g:n,b:a,a:Math.round(100*Math.min(1,Math.max(0,i+t)))})}function Rl(e){if("string"!==typeof e)throw new TypeError("Expected a string as color");const t=document.createElement("div");t.className=`text-${e} invisible fixed no-pointer-events`,document.body.appendChild(t);const o=getComputedStyle(t).getPropertyValue("color");return t.remove(),Tl(Vl(o))}var Nl={rgbToHex:Tl,hexToRgb:Al,hsvToRgb:Ll,rgbToHsv:Ol,textToRgb:Vl,lighten:zl,luminosity:El,brightness:Pl,blend:Fl,changeAlpha:Il,getPaletteColor:Rl};const Dl=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],jl="M5 5 h10 v10 h-10 v-10 z",Hl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==";var Ql=$e({name:"QColor",props:{...bt,...oa,modelValue:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:e=>["spectrum","tune","palette"].includes(e)},formatModel:{type:String,default:"auto",validator:e=>["auto","hex","rgb","hexa","rgba"].includes(e)},palette:Array,noHeader:Boolean,noHeaderTabs:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},emits:["update:modelValue","change"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=yt(t,a),{getCache:i}=ga(),r=e.ref(null),s=e.ref(null),u=e.computed(()=>"auto"===t.formatModel?null:t.formatModel.indexOf("hex")>-1),c=e.computed(()=>"auto"===t.formatModel?null:t.formatModel.indexOf("a")>-1),d=e.ref("auto"===t.formatModel?void 0===t.modelValue||null===t.modelValue||""===t.modelValue||t.modelValue.startsWith("#")?"hex":"rgb":t.formatModel.startsWith("hex")?"hex":"rgb"),v=e.ref(t.defaultView),p=e.ref(B(t.modelValue||t.defaultValue)),m=e.computed(()=>!0!==t.disable&&!0!==t.readonly),f=e.computed(()=>void 0===t.modelValue||null===t.modelValue||""===t.modelValue||t.modelValue.startsWith("#")),h=e.computed(()=>null!==u.value?u.value:f.value),g=e.computed(()=>({type:"hidden",name:t.name,value:p.value[!0===h.value?"hex":"rgb"]})),b=aa(g),y=e.computed(()=>null!==c.value?c.value:void 0!==p.value.a),w=e.computed(()=>({backgroundColor:p.value.rgb||"#000"})),x=e.computed(()=>{const e=void 0!==p.value.a&&p.value.a<65||El(p.value)>.4;return"q-color-picker__header-content"+` q-color-picker__header-content--${e?"light":"dark"}`}),_=e.computed(()=>({background:`hsl(${p.value.h},100%,50%)`})),S=e.computed(()=>({top:`${100-p.value.v}%`,[!0===a.lang.rtl?"right":"left"]:`${p.value.s}%`})),k=e.computed(()=>void 0!==t.palette&&0!==t.palette.length?t.palette:Dl),q=e.computed(()=>"q-color-picker"+(!0===t.bordered?" q-color-picker--bordered":"")+(!0===t.square?" q-color-picker--square no-border-radius":"")+(!0===t.flat?" q-color-picker--flat no-shadow":"")+(!0===t.disable?" disabled":"")+(!0===l.value?" q-color-picker--dark q-dark":"")),$=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:{}),M=e.computed(()=>{return[[Xa,E,void 0,{prevent:!0,stop:!0,mouse:!0}]]});function T(e,t){p.value.hex=Tl(e),p.value.rgb=Bl(e),p.value.r=e.r,p.value.g=e.g,p.value.b=e.b,p.value.a=e.a;const n=p.value[!0===h.value?"hex":"rgb"];o("update:modelValue",n),!0===t&&o("change",n)}function B(e){const o=void 0!==c.value?c.value:"auto"===t.formatModel?null:t.formatModel.indexOf("a")>-1;if("string"!==typeof e||0===e.length||!0!==ql.anyColor(e.replace(/ /g,"")))return{h:0,s:0,v:0,r:0,g:0,b:0,a:!0===o?100:void 0,hex:void 0,rgb:void 0};const n=Vl(e);return!0===o&&void 0===n.a&&(n.a=100),n.hex=Tl(n),n.rgb=Bl(n),Object.assign(n,Ol(n))}function A(e,t,o){const n=r.value;if(null===n)return;const l=n.clientWidth,i=n.clientHeight,s=n.getBoundingClientRect();let u=Math.min(l,Math.max(0,e-s.left));!0===a.lang.rtl&&(u=l-u);const c=Math.min(i,Math.max(0,t-s.top)),d=Math.round(100*u/l),v=Math.round(100*Math.max(0,Math.min(1,-c/i+1))),m=Ll({h:p.value.h,s:d,v:v,a:!0===y.value?p.value.a:void 0});p.value.s=d,p.value.v=v,T(m,o)}function L(e,t){const o=Math.round(e),n=Ll({h:o,s:p.value.s,v:p.value.v,a:!0===y.value?p.value.a:void 0});p.value.h=o,T(n,t)}function O(t,o,a,l,i){if(void 0!==l&&C(l),!/^[0-9]+$/.test(t))return void(!0===i&&n.$forceUpdate());const r=Math.floor(Number(t));if(r<0||r>a)return void(!0===i&&n.$forceUpdate());const s={r:"r"===o?r:p.value.r,g:"g"===o?r:p.value.g,b:"b"===o?r:p.value.b,a:!0===y.value?"a"===o?r:p.value.a:void 0};if("a"!==o){const e=Ol(s);p.value.h=e.h,p.value.s=e.s,p.value.v=e.v}if(T(s,i),void 0!==l&&!0!==i&&void 0!==l.target.selectionEnd){const t=l.target.selectionEnd;e.nextTick(()=>{l.target.setSelectionRange(t,t)})}}function V(t,o){let n;const a=t.target.value;if(C(t),"hex"===d.value){if(a.length!==(!0===y.value?9:7)||!/^#[0-9A-Fa-f]+$/.test(a))return!0;n=Al(a)}else{let e;if(!a.endsWith(")"))return!0;if(!0!==y.value&&a.startsWith("rgb(")){if(e=a.substring(4,a.length-1).split(",").map(e=>parseInt(e,10)),3!==e.length||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(a))return!0}else{if(!0!==y.value||!a.startsWith("rgba("))return!0;{if(e=a.substring(5,a.length-1).split(","),4!==e.length||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(a))return!0;for(let o=0;o<3;o++){const t=parseInt(e[o],10);if(t<0||t>255)return!0;e[o]=t}const t=parseFloat(e[3]);if(t<0||t>1)return!0;e[3]=t}}if(e[0]<0||e[0]>255||e[1]<0||e[1]>255||e[2]<0||e[2]>255||!0===y.value&&(e[3]<0||e[3]>1))return!0;n={r:e[0],g:e[1],b:e[2],a:!0===y.value?100*e[3]:void 0}}const l=Ol(n);if(p.value.h=l.h,p.value.s=l.s,p.value.v=l.v,T(n,o),!0!==o){const o=t.target.selectionEnd;e.nextTick(()=>{t.target.setSelectionRange(o,o)})}}function z(e){const t=B(e),o={r:t.r,g:t.g,b:t.b,a:t.a};void 0===o.a&&(o.a=p.value.a),p.value.h=t.h,p.value.s=t.s,p.value.v=t.v,T(o,!0)}function E(e){e.isFinal?A(e.position.left,e.position.top,!0):P(e)}e.watch(()=>t.modelValue,e=>{const o=B(e||t.defaultValue);o.hex!==p.value.hex&&(p.value=o)}),e.watch(()=>t.defaultValue,e=>{if(!t.modelValue&&e){const t=B(e);t.hex!==p.value.hex&&(p.value=t)}});const P=to(e=>{A(e.position.left,e.position.top)},20);function F(e){A(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset,!0)}function I(e){A(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset)}function R(e){null!==s.value&&(s.value.$el.style.opacity=e?1:0)}function N(){const o=[];return!0!==t.noHeaderTabs&&o.push(e.h(pl,{class:"q-color-picker__header-tabs",modelValue:d.value,dense:!0,align:"justify",...i("topVTab",{"onUpdate:modelValue":e=>{d.value=e}})},()=>[e.h(bl,{label:"HEX"+(!0===y.value?"A":""),name:"hex",ripple:!1}),e.h(bl,{label:"RGB"+(!0===y.value?"A":""),name:"rgb",ripple:!1})])),o.push(e.h("div",{class:"q-color-picker__header-banner row flex-center no-wrap"},[e.h("input",{class:"fit",value:p.value[d.value],...!0!==m.value?{readonly:!0}:{},...i("topIn",{onInput:e=>{R(!0===V(e))},onChange:C,onBlur:e=>{!0===V(e,!0)&&n.$forceUpdate(),R(!1)}})}),e.h(mt,{ref:s,class:"q-color-picker__error-icon absolute no-pointer-events",name:a.iconSet.type.negative})])),e.h("div",{class:"q-color-picker__header relative-position overflow-hidden"},[e.h("div",{class:"q-color-picker__header-bg absolute-full"}),e.h("div",{class:x.value,style:w.value},o)])}function D(){return e.h(yl,{modelValue:v.value,animated:!0},()=>[e.h(wl,{class:"q-color-picker__spectrum-tab overflow-hidden",name:"spectrum"},H),e.h(wl,{class:"q-pa-md q-color-picker__tune-tab",name:"tune"},Q),e.h(wl,{class:"q-color-picker__palette-tab",name:"palette"},U)])}function j(){return e.h("div",{class:"q-color-picker__footer relative-position overflow-hidden"},[e.h(pl,{class:"absolute-full",modelValue:v.value,dense:!0,align:"justify",...i("ftIn",{"onUpdate:modelValue":e=>{v.value=e}})},()=>[e.h(bl,{icon:a.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}),e.h(bl,{icon:a.iconSet.colorPicker.tune,name:"tune",ripple:!1}),e.h(bl,{icon:a.iconSet.colorPicker.palette,name:"palette",ripple:!1})])])}function H(){const t={ref:r,class:"q-color-picker__spectrum non-selectable relative-position cursor-pointer"+(!0!==m.value?" readonly":""),style:_.value,...!0===m.value?{onClick:F,onMousedown:I}:{}},o=[e.h("div",{style:{paddingBottom:"100%"}}),e.h("div",{class:"q-color-picker__spectrum-white absolute-full"}),e.h("div",{class:"q-color-picker__spectrum-black absolute-full"}),e.h("div",{class:"absolute",style:S.value},[void 0!==p.value.hex?e.h("div",{class:"q-color-picker__spectrum-circle"}):null])],n=[e.h(ll,{class:"q-color-picker__hue non-selectable",modelValue:p.value.h,min:0,max:360,trackSize:"8px",innerTrackColor:"transparent",selectionColor:"transparent",readonly:!0!==m.value,thumbPath:jl,"onUpdate:modelValue":L,...i("lazyhue",{onChange:e=>L(e,!0)})})];return!0===y.value&&n.push(e.h(ll,{class:"q-color-picker__alpha non-selectable",modelValue:p.value.a,min:0,max:100,trackSize:"8px",trackColor:"white",innerTrackColor:"transparent",selectionColor:"transparent",trackImg:Hl,readonly:!0!==m.value,hideSelection:!0,thumbPath:jl,...i("alphaSlide",{"onUpdate:modelValue":e=>O(e,"a",100),onChange:e=>O(e,"a",100,void 0,!0)})})),[Je("div",t,o,"spec",m.value,()=>M.value),e.h("div",{class:"q-color-picker__sliders"},n)]}function Q(){return[e.h("div",{class:"row items-center no-wrap"},[e.h("div","R"),e.h(ll,{modelValue:p.value.r,min:0,max:255,color:"red",dark:l.value,readonly:!0!==m.value,...i("rSlide",{"onUpdate:modelValue":e=>O(e,"r",255),onChange:e=>O(e,"r",255,void 0,!0)})}),e.h("input",{value:p.value.r,maxlength:3,readonly:!0!==m.value,onChange:C,...i("rIn",{onInput:e=>O(e.target.value,"r",255,e),onBlur:e=>O(e.target.value,"r",255,e,!0)})})]),e.h("div",{class:"row items-center no-wrap"},[e.h("div","G"),e.h(ll,{modelValue:p.value.g,min:0,max:255,color:"green",dark:l.value,readonly:!0!==m.value,...i("gSlide",{"onUpdate:modelValue":e=>O(e,"g",255),onChange:e=>O(e,"g",255,void 0,!0)})}),e.h("input",{value:p.value.g,maxlength:3,readonly:!0!==m.value,onChange:C,...i("gIn",{onInput:e=>O(e.target.value,"g",255,e),onBlur:e=>O(e.target.value,"g",255,e,!0)})})]),e.h("div",{class:"row items-center no-wrap"},[e.h("div","B"),e.h(ll,{modelValue:p.value.b,min:0,max:255,color:"blue",readonly:!0!==m.value,dark:l.value,...i("bSlide",{"onUpdate:modelValue":e=>O(e,"b",255),onChange:e=>O(e,"b",255,void 0,!0)})}),e.h("input",{value:p.value.b,maxlength:3,readonly:!0!==m.value,onChange:C,...i("bIn",{onInput:e=>O(e.target.value,"b",255,e),onBlur:e=>O(e.target.value,"b",255,e,!0)})})]),!0===y.value?e.h("div",{class:"row items-center no-wrap"},[e.h("div","A"),e.h(ll,{modelValue:p.value.a,color:"grey",readonly:!0!==m.value,dark:l.value,...i("aSlide",{"onUpdate:modelValue":e=>O(e,"a",100),onChange:e=>O(e,"a",100,void 0,!0)})}),e.h("input",{value:p.value.a,maxlength:3,readonly:!0!==m.value,onChange:C,...i("aIn",{onInput:e=>O(e.target.value,"a",100,e),onBlur:e=>O(e.target.value,"a",100,e,!0)})})]):null]}function U(){const t=t=>e.h("div",{class:"q-color-picker__cube col-auto",style:{backgroundColor:t},...!0===m.value?i("palette#"+t,{onClick:()=>{z(t)}}):{}});return[e.h("div",{class:"row items-center q-color-picker__palette-rows"+(!0===m.value?" q-color-picker__palette-rows--editable":"")},k.value.map(t))]}return()=>{const o=[D()];return void 0!==t.name&&!0!==t.disable&&b(o,"push"),!0!==t.noHeader&&o.unshift(N()),!0!==t.noFooter&&o.push(j()),e.h("div",{class:q.value,...$.value},o)}}});const Ul=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function Wl(e,t,o){return"[object Date]"===Object.prototype.toString.call(e)&&(o=e.getDate(),t=e.getMonth()+1,e=e.getFullYear()),ei(ti(e,t,o))}function Kl(e,t,o){return oi(Jl(e,t,o))}function Yl(e){return 0===Zl(e)}function Xl(e,t){return t<=6?31:t<=11?30:Yl(e)?30:29}function Zl(e){const t=Ul.length;let o,n,a,l,i,r=Ul[0];if(e<r||e>=Ul[t-1])throw new Error("Invalid Jalaali year "+e);for(i=1;i<t;i+=1){if(o=Ul[i],n=o-r,e<o)break;r=o}return l=e-r,n-l<6&&(l=l-n+33*ni(n+4,33)),a=ai(ai(l+1,33)-1,4),-1===a&&(a=4),a}function Gl(e,t){const o=Ul.length,n=e+621;let a,l,i,r,s,u=-14,c=Ul[0];if(e<c||e>=Ul[o-1])throw new Error("Invalid Jalaali year "+e);for(s=1;s<o;s+=1){if(a=Ul[s],l=a-c,e<a)break;u=u+8*ni(l,33)+ni(ai(l,33),4),c=a}r=e-c,u=u+8*ni(r,33)+ni(ai(r,33)+3,4),4===ai(l,33)&&l-r===4&&(u+=1);const d=ni(n,4)-ni(3*(ni(n,100)+1),4)-150,v=20+u-d;return t||(l-r<6&&(r=r-l+33*ni(l+4,33)),i=ai(ai(r+1,33)-1,4),-1===i&&(i=4)),{leap:i,gy:n,march:v}}function Jl(e,t,o){const n=Gl(e,!0);return ti(n.gy,3,n.march)+31*(t-1)-ni(t,7)*(t-7)+o-1}function ei(e){const t=oi(e).gy;let o,n,a,l=t-621;const i=Gl(l,!1),r=ti(t,3,i.march);if(a=e-r,a>=0){if(a<=185)return n=1+ni(a,31),o=ai(a,31)+1,{jy:l,jm:n,jd:o};a-=186}else l-=1,a+=179,1===i.leap&&(a+=1);return n=7+ni(a,30),o=ai(a,30)+1,{jy:l,jm:n,jd:o}}function ti(e,t,o){let n=ni(1461*(e+ni(t-8,6)+100100),4)+ni(153*ai(t+9,12)+2,5)+o-34840408;return n=n-ni(3*ni(e+100100+ni(t-8,6),100),4)+752,n}function oi(e){let t=4*e+139361631;t=t+4*ni(3*ni(4*e+183187720,146097),4)-3908;const o=5*ni(ai(t,1461),4)+308,n=ni(ai(o,153),5)+1,a=ai(ni(o,153),12)+1,l=ni(t,1461)-100100+ni(8-a,6);return{gy:l,gm:a,gd:n}}function ni(e,t){return~~(e/t)}function ai(e,t){return e-~~(e/t)*t}const li=["gregorian","persian"],ii={modelValue:{required:!0},mask:{type:String},locale:Object,calendar:{type:String,validator:e=>li.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},ri=["update:modelValue"];function si(e){return e.year+"/"+Ve(e.month)+"/"+Ve(e.day)}function ui(t,o){const n=e.computed(()=>{return!0!==t.disable&&!0!==t.readonly}),a=e.computed(()=>{return!0===n.value?0:-1}),l=e.computed(()=>{const e=[];return void 0!==t.color&&e.push(`bg-${t.color}`),void 0!==t.textColor&&e.push(`text-${t.textColor}`),e.join(" ")});function i(){return void 0!==t.locale?{...o.lang.date,...t.locale}:o.lang.date}function r(e){const o=new Date,n=!0===e?null:0;if("persian"===t.calendar){const e=Wl(o);return{year:e.jy,month:e.jm,day:e.jd}}return{year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate(),hour:n,minute:n,second:n,millisecond:n}}return{editable:n,tabindex:a,headerClass:l,getLocale:i,getCurrentDate:r}}const ci=864e5,di=36e5,vi=6e4,pi="YYYY-MM-DDTHH:mm:ss.SSSZ",mi=/\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,fi=/(\[[^\]]*\])|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,hi={};function gi(e,t){const o="("+t.days.join("|")+")",n=e+o;if(void 0!==hi[n])return hi[n];const a="("+t.daysShort.join("|")+")",l="("+t.months.join("|")+")",i="("+t.monthsShort.join("|")+")",r={};let s=0;const u=e.replace(fi,e=>{switch(s++,e){case"YY":return r.YY=s,"(-?\\d{1,2})";case"YYYY":return r.YYYY=s,"(-?\\d{1,4})";case"M":return r.M=s,"(\\d{1,2})";case"MM":return r.M=s,"(\\d{2})";case"MMM":return r.MMM=s,i;case"MMMM":return r.MMMM=s,l;case"D":return r.D=s,"(\\d{1,2})";case"Do":return r.D=s++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return r.D=s,"(\\d{2})";case"H":return r.H=s,"(\\d{1,2})";case"HH":return r.H=s,"(\\d{2})";case"h":return r.h=s,"(\\d{1,2})";case"hh":return r.h=s,"(\\d{2})";case"m":return r.m=s,"(\\d{1,2})";case"mm":return r.m=s,"(\\d{2})";case"s":return r.s=s,"(\\d{1,2})";case"ss":return r.s=s,"(\\d{2})";case"S":return r.S=s,"(\\d{1})";case"SS":return r.S=s,"(\\d{2})";case"SSS":return r.S=s,"(\\d{3})";case"A":return r.A=s,"(AM|PM)";case"a":return r.a=s,"(am|pm)";case"aa":return r.aa=s,"(a\\.m\\.|p\\.m\\.)";case"ddd":return a;case"dddd":return o;case"Q":case"d":case"E":return"(\\d{1})";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"w":return"(\\d{1,2})";case"ww":return"(\\d{2})";case"Z":return r.Z=s,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return r.ZZ=s,"(Z|[+-]\\d{2}\\d{2})";case"X":return r.X=s,"(-?\\d+)";case"x":return r.x=s,"(-?\\d{4,})";default:return s--,"["===e[0]&&(e=e.substring(1,e.length-1)),e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),c={map:r,regex:new RegExp("^"+u)};return hi[n]=c,c}function bi(e,t){return void 0!==e?e:void 0!==t?t.date:D.date}function yi(e,t=""){const o=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),l=n%60;return o+Ve(a)+t+Ve(l)}function wi(e,t,o){let n=e.getFullYear(),a=e.getMonth();const l=e.getDate();return void 0!==t.year&&(n+=o*t.year,delete t.year),void 0!==t.month&&(a+=o*t.month,delete t.month),e.setDate(1),e.setMonth(2),e.setFullYear(n),e.setMonth(a),e.setDate(Math.min(l,Ui(e))),void 0!==t.date&&(e.setDate(e.getDate()+o*t.date),delete t.date),e}function xi(e,t,o){const n=void 0!==t.year?t.year:e[`get${o}FullYear`](),a=void 0!==t.month?t.month-1:e[`get${o}Month`](),l=new Date(n,a+1,0).getDate(),i=Math.min(l,void 0!==t.date?t.date:e[`get${o}Date`]());return e[`set${o}Date`](1),e[`set${o}Month`](2),e[`set${o}FullYear`](n),e[`set${o}Month`](a),e[`set${o}Date`](i),delete t.year,delete t.month,delete t.date,e}function _i(e,t,o){const n=Si(t),a=new Date(e),l=void 0!==n.year||void 0!==n.month||void 0!==n.date?wi(a,n,o):a;for(const i in n){const e=Ae(i);l[`set${e}`](l[`get${e}`]()+o*n[i])}return l}function Si(e){const t={...e};return void 0!==e.years&&(t.year=e.years,delete t.years),void 0!==e.months&&(t.month=e.months,delete t.months),void 0!==e.days&&(t.date=e.days,delete t.days),void 0!==e.day&&(t.date=e.day,delete t.day),void 0!==e.hour&&(t.hours=e.hour,delete t.hour),void 0!==e.minute&&(t.minutes=e.minute,delete t.minute),void 0!==e.second&&(t.seconds=e.second,delete t.second),void 0!==e.millisecond&&(t.milliseconds=e.millisecond,delete t.millisecond),t}function ki(e,t,o){const n=Si(t),a=!0===o?"UTC":"",l=new Date(e),i=void 0!==n.year||void 0!==n.month||void 0!==n.date?xi(l,n,a):l;for(const r in n){const e=r.charAt(0).toUpperCase()+r.slice(1);i[`set${a}${e}`](n[r])}return i}function Ci(e,t,o){const n=qi(e,t,o),a=new Date(n.year,null===n.month?null:n.month-1,null===n.day?1:n.day,n.hour,n.minute,n.second,n.millisecond),l=a.getTimezoneOffset();return null===n.timezoneOffset||n.timezoneOffset===l?a:_i(a,{minutes:n.timezoneOffset-l},1)}function qi(e,t,o,n,a){const l={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(void 0!==a&&Object.assign(l,a),void 0===e||null===e||""===e||"string"!==typeof e)return l;void 0===t&&(t=pi);const i=bi(o,H.props),r=i.months,s=i.monthsShort,{regex:u,map:c}=gi(t,i),d=e.match(u);if(null===d)return l;let v="";if(void 0!==c.X||void 0!==c.x){const e=parseInt(d[void 0!==c.X?c.X:c.x],10);if(!0===isNaN(e)||e<0)return l;const t=new Date(e*(void 0!==c.X?1e3:1));l.year=t.getFullYear(),l.month=t.getMonth()+1,l.day=t.getDate(),l.hour=t.getHours(),l.minute=t.getMinutes(),l.second=t.getSeconds(),l.millisecond=t.getMilliseconds()}else{if(void 0!==c.YYYY)l.year=parseInt(d[c.YYYY],10);else if(void 0!==c.YY){const e=parseInt(d[c.YY],10);l.year=e<0?e:2e3+e}if(void 0!==c.M){if(l.month=parseInt(d[c.M],10),l.month<1||l.month>12)return l}else void 0!==c.MMM?l.month=s.indexOf(d[c.MMM])+1:void 0!==c.MMMM&&(l.month=r.indexOf(d[c.MMMM])+1);if(void 0!==c.D){if(l.day=parseInt(d[c.D],10),null===l.year||null===l.month||l.day<1)return l;const e="persian"!==n?new Date(l.year,l.month,0).getDate():Xl(l.year,l.month);if(l.day>e)return l}void 0!==c.H?l.hour=parseInt(d[c.H],10)%24:void 0!==c.h&&(l.hour=parseInt(d[c.h],10)%12,(c.A&&"PM"===d[c.A]||c.a&&"pm"===d[c.a]||c.aa&&"p.m."===d[c.aa])&&(l.hour+=12),l.hour=l.hour%24),void 0!==c.m&&(l.minute=parseInt(d[c.m],10)%60),void 0!==c.s&&(l.second=parseInt(d[c.s],10)%60),void 0!==c.S&&(l.millisecond=parseInt(d[c.S],10)*10**(3-d[c.S].length)),void 0===c.Z&&void 0===c.ZZ||(v=void 0!==c.Z?d[c.Z].replace(":",""):d[c.ZZ],l.timezoneOffset=("+"===v[0]?-1:1)*(60*v.slice(1,3)+1*v.slice(3,5)))}return l.dateHash=Ve(l.year,6)+"/"+Ve(l.month)+"/"+Ve(l.day),l.timeHash=Ve(l.hour)+":"+Ve(l.minute)+":"+Ve(l.second)+v,l}function $i(e){return"number"===typeof e||!1===isNaN(Date.parse(e))}function Mi(e,t){return ki(new Date,e,t)}function Ti(e){const t=new Date(e).getDay();return 0===t?7:t}function Bi(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);const o=new Date(t.getFullYear(),0,4);o.setDate(o.getDate()-(o.getDay()+6)%7+3);const n=t.getTimezoneOffset()-o.getTimezoneOffset();t.setHours(t.getHours()-n);const a=(t-o)/(7*ci);return 1+Math.floor(a)}function Ai(e){return 1e4*e.getFullYear()+100*e.getMonth()+e.getDate()}function Li(e,t){const o=new Date(e);return!0===t?Ai(o):o.getTime()}function Oi(e,t,o,n={}){const a=Li(t,n.onlyDate),l=Li(o,n.onlyDate),i=Li(e,n.onlyDate);return(i>a||!0===n.inclusiveFrom&&i===a)&&(i<l||!0===n.inclusiveTo&&i===l)}function Vi(e,t){return _i(e,t,1)}function zi(e,t){return _i(e,t,-1)}function Ei(e,t,o){const n=new Date(e),a=`set${!0===o?"UTC":""}`;switch(t){case"year":case"years":n[`${a}Month`](0);case"month":case"months":n[`${a}Date`](1);case"day":case"days":case"date":n[`${a}Hours`](0);case"hour":case"hours":n[`${a}Minutes`](0);case"minute":case"minutes":n[`${a}Seconds`](0);case"second":case"seconds":n[`${a}Milliseconds`](0)}return n}function Pi(e,t,o){const n=new Date(e),a=`set${!0===o?"UTC":""}`;switch(t){case"year":case"years":n[`${a}Month`](11);case"month":case"months":n[`${a}Date`](Ui(n));case"day":case"days":case"date":n[`${a}Hours`](23);case"hour":case"hours":n[`${a}Minutes`](59);case"minute":case"minutes":n[`${a}Seconds`](59);case"second":case"seconds":n[`${a}Milliseconds`](999)}return n}function Fi(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(e=>{t=Math.max(t,new Date(e))}),t}function Ii(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(e=>{t=Math.min(t,new Date(e))}),t}function Ri(e,t,o){return(e.getTime()-e.getTimezoneOffset()*vi-(t.getTime()-t.getTimezoneOffset()*vi))/o}function Ni(e,t,o="days"){const n=new Date(e),a=new Date(t);switch(o){case"years":case"year":return n.getFullYear()-a.getFullYear();case"months":case"month":return 12*(n.getFullYear()-a.getFullYear())+n.getMonth()-a.getMonth();case"days":case"day":case"date":return Ri(Ei(n,"day"),Ei(a,"day"),ci);case"hours":case"hour":return Ri(Ei(n,"hour"),Ei(a,"hour"),di);case"minutes":case"minute":return Ri(Ei(n,"minute"),Ei(a,"minute"),vi);case"seconds":case"second":return Ri(Ei(n,"second"),Ei(a,"second"),1e3)}}function Di(e){return Ni(e,Ei(e,"year"),"days")+1}function ji(e){return!0===be(e)?"date":"number"===typeof e?"number":"string"}function Hi(e,t,o){const n=new Date(e);if(t){const e=new Date(t);if(n<e)return e}if(o){const e=new Date(o);if(n>e)return e}return n}function Qi(e,t,o){const n=new Date(e),a=new Date(t);if(void 0===o)return n.getTime()===a.getTime();switch(o){case"second":case"seconds":if(n.getSeconds()!==a.getSeconds())return!1;case"minute":case"minutes":if(n.getMinutes()!==a.getMinutes())return!1;case"hour":case"hours":if(n.getHours()!==a.getHours())return!1;case"day":case"days":case"date":if(n.getDate()!==a.getDate())return!1;case"month":case"months":if(n.getMonth()!==a.getMonth())return!1;case"year":case"years":if(n.getFullYear()!==a.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${o}`)}return!0}function Ui(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function Wi(e){if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`}return`${e}th`}const Ki={YY(e,t,o){const n=this.YYYY(e,t,o)%100;return n>=0?Ve(n):"-"+Ve(Math.abs(n))},YYYY(e,t,o){return void 0!==o&&null!==o?o:e.getFullYear()},M(e){return e.getMonth()+1},MM(e){return Ve(e.getMonth()+1)},MMM(e,t){return t.monthsShort[e.getMonth()]},MMMM(e,t){return t.months[e.getMonth()]},Q(e){return Math.ceil((e.getMonth()+1)/3)},Qo(e){return Wi(this.Q(e))},D(e){return e.getDate()},Do(e){return Wi(e.getDate())},DD(e){return Ve(e.getDate())},DDD(e){return Di(e)},DDDD(e){return Ve(Di(e),3)},d(e){return e.getDay()},dd(e,t){return this.dddd(e,t).slice(0,2)},ddd(e,t){return t.daysShort[e.getDay()]},dddd(e,t){return t.days[e.getDay()]},E(e){return e.getDay()||7},w(e){return Bi(e)},ww(e){return Ve(Bi(e))},H(e){return e.getHours()},HH(e){return Ve(e.getHours())},h(e){const t=e.getHours();return 0===t?12:t>12?t%12:t},hh(e){return Ve(this.h(e))},m(e){return e.getMinutes()},mm(e){return Ve(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return Ve(e.getSeconds())},S(e){return Math.floor(e.getMilliseconds()/100)},SS(e){return Ve(Math.floor(e.getMilliseconds()/10))},SSS(e){return Ve(e.getMilliseconds(),3)},A(e){return this.H(e)<12?"AM":"PM"},a(e){return this.H(e)<12?"am":"pm"},aa(e){return this.H(e)<12?"a.m.":"p.m."},Z(e,t,o,n){const a=void 0===n||null===n?e.getTimezoneOffset():n;return yi(a,":")},ZZ(e,t,o,n){const a=void 0===n||null===n?e.getTimezoneOffset():n;return yi(a)},X(e){return Math.floor(e.getTime()/1e3)},x(e){return e.getTime()}};function Yi(e,t,o,n,a){if(0!==e&&!e||e===1/0||e===-1/0)return;const l=new Date(e);if(isNaN(l))return;void 0===t&&(t=pi);const i=bi(o,H.props);return t.replace(mi,(e,t)=>e in Ki?Ki[e](l,i,n,a):void 0===t?e:t.split("\\]").join("]"))}function Xi(e){return!0===be(e)?new Date(e.getTime()):e}var Zi={isValid:$i,extractDate:Ci,buildDate:Mi,getDayOfWeek:Ti,getWeekOfYear:Bi,isBetweenDates:Oi,addToDate:Vi,subtractFromDate:zi,adjustDate:ki,startOfDate:Ei,endOfDate:Pi,getMaxDate:Fi,getMinDate:Ii,getDateDiff:Ni,getDayOfYear:Di,inferDateFormat:ji,getDateBetween:Hi,isSameDate:Qi,daysInMonth:Ui,formatDate:Yi,clone:Xi};const Gi=20,Ji=["Calendar","Years","Months"],er=e=>Ji.includes(e),tr=e=>/^-?[\d]+\/[0-1]\d$/.test(e),or=" — ";function nr(e){return e.year+"/"+Ve(e.month)}var ar=$e({name:"QDate",props:{...ii,...oa,...bt,multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:tr},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:tr},navigationMaxYearMonth:{type:String,validator:tr},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:er}},emits:[...ri,"rangeStart","rangeEnd","navigation"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=yt(t,l),{getCache:r}=ga(),{tabindex:s,headerClass:u,getLocale:c,getCurrentDate:d}=ui(t,l);let v;const p=na(t),m=aa(p),f=e.ref(null),h=e.ref(de()),g=e.ref(c()),b=e.computed(()=>de()),y=e.computed(()=>c()),w=e.computed(()=>d()),x=e.ref(pe(h.value,g.value)),_=e.ref(t.defaultView),S=!0===l.lang.rtl?"right":"left",k=e.ref(S.value),C=e.ref(S.value),q=x.value.year,$=e.ref(q-q%Gi-(q<0?Gi:0)),M=e.ref(null),T=e.computed(()=>{const e=!0===t.landscape?"landscape":"portrait";return`q-date q-date--${e} q-date--${e}-${!0===t.minimal?"minimal":"standard"}`+(!0===i.value?" q-date--dark q-dark":"")+(!0===t.bordered?" q-date--bordered":"")+(!0===t.square?" q-date--square no-border-radius":"")+(!0===t.flat?" q-date--flat no-shadow":"")+(!0===t.disable?" disabled":!0===t.readonly?" q-date--readonly":"")}),B=e.computed(()=>{return t.color||"primary"}),A=e.computed(()=>{return t.textColor||"white"}),L=e.computed(()=>!0===t.emitImmediately&&!0!==t.multiple&&!0!==t.range),O=e.computed(()=>!0===Array.isArray(t.modelValue)?t.modelValue:null!==t.modelValue&&void 0!==t.modelValue?[t.modelValue]:[]),V=e.computed(()=>O.value.filter(e=>"string"===typeof e).map(e=>ve(e,h.value,g.value)).filter(e=>null!==e.dateHash&&null!==e.day&&null!==e.month&&null!==e.year)),z=e.computed(()=>{const e=e=>ve(e,h.value,g.value);return O.value.filter(e=>!0===ge(e)&&void 0!==e.from&&void 0!==e.to).map(t=>({from:e(t.from),to:e(t.to)})).filter(e=>null!==e.from.dateHash&&null!==e.to.dateHash&&e.from.dateHash<e.to.dateHash)}),E=e.computed(()=>"persian"!==t.calendar?e=>new Date(e.year,e.month-1,e.day):e=>{const t=Kl(e.year,e.month,e.day);return new Date(t.gy,t.gm-1,t.gd)}),P=e.computed(()=>"persian"===t.calendar?si:(e,t,o)=>Yi(new Date(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond),void 0===t?h.value:t,void 0===o?g.value:o,e.year,e.timezoneOffset)),F=e.computed(()=>V.value.length+z.value.reduce((e,t)=>e+1+Ni(E.value(t.to),E.value(t.from)),0)),I=e.computed(()=>{if(void 0!==t.title&&null!==t.title&&0!==t.title.length)return t.title;if(null!==M.value){const e=M.value.init,t=E.value(e);return g.value.daysShort[t.getDay()]+", "+g.value.monthsShort[e.month-1]+" "+e.day+or+"?"}if(0===F.value)return or;if(F.value>1)return`${F.value} ${g.value.pluralDay}`;const e=V.value[0],o=E.value(e);return!0===isNaN(o.valueOf())?or:void 0!==g.value.headerTitle?g.value.headerTitle(o,e):g.value.daysShort[o.getDay()]+", "+g.value.monthsShort[e.month-1]+" "+e.day}),R=e.computed(()=>{const e=V.value.concat(z.value.map(e=>e.from)).sort((e,t)=>e.year-t.year||e.month-t.month);return e[0]}),N=e.computed(()=>{const e=V.value.concat(z.value.map(e=>e.to)).sort((e,t)=>t.year-e.year||t.month-e.month);return e[0]}),D=e.computed(()=>{if(void 0!==t.subtitle&&null!==t.subtitle&&0!==t.subtitle.length)return t.subtitle;if(0===F.value)return or;if(F.value>1){const e=R.value,t=N.value,o=g.value.monthsShort;return o[e.month-1]+(e.year!==t.year?" "+e.year+or+o[t.month-1]+" ":e.month!==t.month?or+o[t.month-1]:"")+" "+t.year}return V.value[0].year}),j=e.computed(()=>{const e=[l.iconSet.datetime.arrowLeft,l.iconSet.datetime.arrowRight];return!0===l.lang.rtl?e.reverse():e}),H=e.computed(()=>void 0!==t.firstDayOfWeek?Number(t.firstDayOfWeek):g.value.firstDayOfWeek),Q=e.computed(()=>{const e=g.value.daysShort,t=H.value;return t>0?e.slice(t,7).concat(e.slice(0,t)):e}),U=e.computed(()=>{const e=x.value;return"persian"!==t.calendar?new Date(e.year,e.month,0).getDate():Xl(e.year,e.month)}),W=e.computed(()=>"function"===typeof t.eventColor?t.eventColor:()=>t.eventColor),K=e.computed(()=>{if(void 0===t.navigationMinYearMonth)return null;const e=t.navigationMinYearMonth.split("/");return{year:parseInt(e[0],10),month:parseInt(e[1],10)}}),Y=e.computed(()=>{if(void 0===t.navigationMaxYearMonth)return null;const e=t.navigationMaxYearMonth.split("/");return{year:parseInt(e[0],10),month:parseInt(e[1],10)}}),X=e.computed(()=>{const e={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return null!==K.value&&K.value.year>=x.value.year&&(e.year.prev=!1,K.value.year===x.value.year&&K.value.month>=x.value.month&&(e.month.prev=!1)),null!==Y.value&&Y.value.year<=x.value.year&&(e.year.next=!1,Y.value.year===x.value.year&&Y.value.month<=x.value.month&&(e.month.next=!1)),e}),Z=e.computed(()=>{const e={};return V.value.forEach(t=>{const o=nr(t);void 0===e[o]&&(e[o]=[]),e[o].push(t.day)}),e}),G=e.computed(()=>{const e={};return z.value.forEach(t=>{const o=nr(t.from),n=nr(t.to);if(void 0===e[o]&&(e[o]=[]),e[o].push({from:t.from.day,to:o===n?t.to.day:void 0,range:t}),o<n){let o;const{year:a,month:l}=t.from,i=l<12?{year:a,month:l+1}:{year:a+1,month:1};while((o=nr(i))<=n)void 0===e[o]&&(e[o]=[]),e[o].push({from:void 0,to:o===n?t.to.day:void 0,range:t}),i.month++,i.month>12&&(i.year++,i.month=1)}}),e}),J=e.computed(()=>{if(null===M.value)return;const{init:e,initHash:t,final:o,finalHash:n}=M.value,[a,l]=t<=n?[e,o]:[o,e],i=nr(a),r=nr(l);if(i!==ee.value&&r!==ee.value)return;const s={};return i===ee.value?(s.from=a.day,s.includeFrom=!0):s.from=1,r===ee.value?(s.to=l.day,s.includeTo=!0):s.to=U.value,s}),ee=e.computed(()=>nr(x.value)),te=e.computed(()=>{const e={};if(void 0===t.options){for(let t=1;t<=U.value;t++)e[t]=!0;return e}const o="function"===typeof t.options?t.options:e=>t.options.includes(e);for(let t=1;t<=U.value;t++){const n=ee.value+"/"+Ve(t);e[t]=o(n)}return e}),oe=e.computed(()=>{const e={};if(void 0===t.events)for(let t=1;t<=U.value;t++)e[t]=!1;else{const o="function"===typeof t.events?t.events:e=>t.events.includes(e);for(let t=1;t<=U.value;t++){const n=ee.value+"/"+Ve(t);e[t]=!0===o(n)&&W.value(n)}}return e}),ne=e.computed(()=>{let e,o;const{year:n,month:a}=x.value;if("persian"!==t.calendar)e=new Date(n,a-1,1),o=new Date(n,a-1,0).getDate();else{const t=Kl(n,a,1);e=new Date(t.gy,t.gm-1,t.gd);let l=a-1,i=n;0===l&&(l=12,i--),o=Xl(i,l)}return{days:e.getDay()-H.value-1,endDay:o}}),ae=e.computed(()=>{const e=[],{days:t,endDay:o}=ne.value,n=t<0?t+7:t;if(n<6)for(let i=o-n;i<=o;i++)e.push({i:i,fill:!0});const a=e.length;for(let i=1;i<=U.value;i++){const t={i:i,event:oe.value[i],classes:[]};!0===te.value[i]&&(t.in=!0,t.flat=!0),e.push(t)}if(void 0!==Z.value[ee.value]&&Z.value[ee.value].forEach(t=>{const o=a+t-1;Object.assign(e[o],{selected:!0,unelevated:!0,flat:!1,color:B.value,textColor:A.value})}),void 0!==G.value[ee.value]&&G.value[ee.value].forEach(t=>{if(void 0!==t.from){const o=a+t.from-1,n=a+(t.to||U.value)-1;for(let a=o;a<=n;a++)Object.assign(e[a],{range:t.range,unelevated:!0,color:B.value,textColor:A.value});Object.assign(e[o],{rangeFrom:!0,flat:!1}),void 0!==t.to&&Object.assign(e[n],{rangeTo:!0,flat:!1})}else if(void 0!==t.to){const o=a+t.to-1;for(let n=a;n<=o;n++)Object.assign(e[n],{range:t.range,unelevated:!0,color:B.value,textColor:A.value});Object.assign(e[o],{flat:!1,rangeTo:!0})}else{const o=a+U.value-1;for(let n=a;n<=o;n++)Object.assign(e[n],{range:t.range,unelevated:!0,color:B.value,textColor:A.value})}}),void 0!==J.value){const t=a+J.value.from-1,o=a+J.value.to-1;for(let n=t;n<=o;n++)e[n].color=B.value,e[n].editRange=!0;!0===J.value.includeFrom&&(e[t].editRangeFrom=!0),!0===J.value.includeTo&&(e[o].editRangeTo=!0)}x.value.year===w.value.year&&x.value.month===w.value.month&&(e[a+w.value.day-1].today=!0);const l=e.length%7;if(l>0){const t=7-l;for(let o=1;o<=t;o++)e.push({i:o,fill:!0})}return e.forEach(e=>{let t="q-date__calendar-item ";!0===e.fill?t+="q-date__calendar-item--fill":(t+=`q-date__calendar-item--${!0===e.in?"in":"out"}`,void 0!==e.range&&(t+=` q-date__range${!0===e.rangeTo?"-to":!0===e.rangeFrom?"-from":""}`),!0===e.editRange&&(t+=` q-date__edit-range${!0===e.editRangeFrom?"-from":""}${!0===e.editRangeTo?"-to":""}`),void 0===e.range&&!0!==e.editRange||(t+=` text-${e.color}`)),e.classes=t}),e}),le=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:{});function ie(){const{year:e,month:t,day:o}=w.value,n={...x.value,year:e,month:t,day:o},a=Z.value[nr(n)];void 0!==a&&!1!==a.includes(n.day)||$e(n),ue(n.year,n.month)}function re(e){!0===er(e)&&(_.value=e)}function se(e,t){if(["month","year"].includes(e)){const o="month"===e?fe:he;o(!0===t?-1:1)}}function ue(e,t){_.value="Calendar",_e(e,t)}function ce(e,o){if(!1===t.range||!e)return void(M.value=null);const n=Object.assign({...x.value},e),a=void 0!==o?Object.assign({...x.value},o):n;M.value={init:n,initHash:si(n),final:a,finalHash:si(a)},ue(n.year,n.month)}function de(){return"persian"===t.calendar?"YYYY/MM/DD":t.mask}function ve(e,o,n){return qi(e,o,n,t.calendar,{hour:0,minute:0,second:0,millisecond:0})}function pe(e,o){const n=!0===Array.isArray(t.modelValue)?t.modelValue:t.modelValue?[t.modelValue]:[];if(0===n.length)return me();const a=n[n.length-1],l=ve(void 0!==a.from?a.from:a,e,o);return null===l.dateHash?me():l}function me(){let e,o;if(void 0!==t.defaultYearMonth){const n=t.defaultYearMonth.split("/");e=parseInt(n[0],10),o=parseInt(n[1],10)}else{const t=void 0!==w.value?w.value:d();e=t.year,o=t.month}return{year:e,month:o,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:e+"/"+Ve(o)+"/01"}}function fe(e){let t=x.value.year,o=Number(x.value.month)+e;13===o?(o=1,t++):0===o&&(o=12,t--),_e(t,o),!0===L.value&&ke("month")}function he(e){const t=Number(x.value.year)+e;_e(t,x.value.month),!0===L.value&&ke("year")}function be(e){_e(e,x.value.month),_.value="Years"===t.defaultView?"Months":"Calendar",!0===L.value&&ke("year")}function ye(e){_e(x.value.year,e),_.value="Calendar",!0===L.value&&ke("month")}function we(e,t){const o=Z.value[t],n=void 0!==o&&!0===o.includes(e.day)?Me:$e;n(e)}function xe(e){return{year:e.year,month:e.month,day:e.day}}function _e(t,o,n){if(null!==K.value&&t<=K.value.year&&((o<K.value.month||t<K.value.year)&&(o=K.value.month),t=K.value.year),null!==Y.value&&t>=Y.value.year&&((o>Y.value.month||t>Y.value.year)&&(o=Y.value.month),t=Y.value.year),void 0!==n){const{hour:e,minute:t,second:o,millisecond:a,timezoneOffset:l,timeHash:i}=n;Object.assign(x.value,{hour:e,minute:t,second:o,millisecond:a,timezoneOffset:l,timeHash:i})}const a=t+"/"+Ve(o)+"/01";a!==x.value.dateHash&&(k.value=x.value.dateHash<a===(!0!==l.lang.rtl)?"left":"right",t!==x.value.year&&(C.value=k.value),e.nextTick(()=>{$.value=t-t%Gi-(t<0?Gi:0),Object.assign(x.value,{year:t,month:o,day:1,dateHash:a})}))}function Se(e,o,a){const l=null!==e&&1===e.length&&!1===t.multiple?e[0]:e;v=l;const{reason:i,details:r}=Ce(o,a);n("update:modelValue",l,i,r)}function ke(o){const a=void 0!==V.value[0]&&null!==V.value[0].dateHash?{...V.value[0]}:{...x.value};e.nextTick(()=>{a.year=x.value.year,a.month=x.value.month;const e="persian"!==t.calendar?new Date(a.year,a.month,0).getDate():Xl(a.year,a.month);a.day=Math.min(Math.max(1,a.day),e);const l=qe(a);v=l;const{details:i}=Ce("",a);n("update:modelValue",l,o,i)})}function Ce(e,t){return void 0!==t.from?{reason:`${e}-range`,details:{...xe(t.target),from:xe(t.from),to:xe(t.to)}}:{reason:`${e}-day`,details:xe(t)}}function qe(e,t,o){return void 0!==e.from?{from:P.value(e.from,t,o),to:P.value(e.to,t,o)}:P.value(e,t,o)}function $e(e){let o;if(!0===t.multiple)if(void 0!==e.from){const t=si(e.from),n=si(e.to),a=V.value.filter(e=>e.dateHash<t||e.dateHash>n),l=z.value.filter(({from:e,to:o})=>o.dateHash<t||e.dateHash>n);o=a.concat(l).concat(e).map(e=>qe(e))}else{const t=O.value.slice();t.push(qe(e)),o=t}else o=qe(e);Se(o,"add",e)}function Me(e){if(!0===t.noUnset)return;let o=null;if(!0===t.multiple&&!0===Array.isArray(t.modelValue)){const n=qe(e);o=void 0!==e.from?t.modelValue.filter(e=>void 0===e.from||e.from!==n.from&&e.to!==n.to):t.modelValue.filter(e=>e!==n),0===o.length&&(o=null)}Se(o,"remove",e)}function Te(e,o,a){const l=V.value.concat(z.value).map(t=>qe(t,e,o)).filter(e=>{return void 0!==e.from?null!==e.from.dateHash&&null!==e.to.dateHash:null!==e.dateHash});n("update:modelValue",(!0===t.multiple?l:l[0])||null,a)}function Be(){if(!0!==t.minimal)return e.h("div",{class:"q-date__header "+u.value},[e.h("div",{class:"relative-position"},[e.h(e.Transition,{name:"q-transition--fade"},()=>e.h("div",{key:"h-yr-"+D.value,class:"q-date__header-subtitle q-date__header-link "+("Years"===_.value?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...r("vY",{onClick(){_.value="Years"},onKeyup(e){13===e.keyCode&&(_.value="Years")}})},[D.value]))]),e.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[e.h("div",{class:"relative-position col"},[e.h(e.Transition,{name:"q-transition--fade"},()=>e.h("div",{key:"h-sub"+I.value,class:"q-date__header-title-label q-date__header-link "+("Calendar"===_.value?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...r("vC",{onClick(){_.value="Calendar"},onKeyup(e){13===e.keyCode&&(_.value="Calendar")}})},[I.value]))]),!0===t.todayBtn?e.h(yo,{class:"q-date__header-today self-start",icon:l.iconSet.datetime.today,flat:!0,size:"sm",round:!0,tabindex:s.value,onClick:ie}):null])])}function Ae({label:t,type:o,key:n,dir:a,goTo:l,boundaries:i,cls:u}){return[e.h("div",{class:"row items-center q-date__arrow"},[e.h(yo,{round:!0,dense:!0,size:"sm",flat:!0,icon:j.value[0],tabindex:s.value,disable:!1===i.prev,...r("go-#"+o,{onClick(){l(-1)}})})]),e.h("div",{class:"relative-position overflow-hidden flex flex-center"+u},[e.h(e.Transition,{name:"q-transition--jump-"+a},()=>e.h("div",{key:n},[e.h(yo,{flat:!0,dense:!0,noCaps:!0,label:t,tabindex:s.value,...r("view#"+o,{onClick:()=>{_.value=o}})})]))]),e.h("div",{class:"row items-center q-date__arrow"},[e.h(yo,{round:!0,dense:!0,size:"sm",flat:!0,icon:j.value[1],tabindex:s.value,disable:!1===i.next,...r("go+#"+o,{onClick(){l(1)}})})])]}e.watch(()=>t.modelValue,e=>{if(v===e)v=0;else{const e=pe(h.value,g.value);_e(e.year,e.month,e)}}),e.watch(_,()=>{null!==f.value&&!0===a.$el.contains(document.activeElement)&&f.value.focus()}),e.watch(()=>x.value.year+"|"+x.value.month,()=>{n("navigation",{year:x.value.year,month:x.value.month})}),e.watch(b,e=>{Te(e,g.value,"mask"),h.value=e}),e.watch(y,e=>{Te(h.value,e,"locale"),g.value=e});const Le={Calendar:()=>[e.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[e.h("div",{class:"q-date__navigation row items-center no-wrap"},Ae({label:g.value.months[x.value.month-1],type:"Months",key:x.value.month,dir:k.value,goTo:fe,boundaries:X.value.month,cls:" col"}).concat(Ae({label:x.value.year,type:"Years",key:x.value.year,dir:C.value,goTo:he,boundaries:X.value.year,cls:""}))),e.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},Q.value.map(t=>e.h("div",{class:"q-date__calendar-item"},[e.h("div",t)]))),e.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[e.h(e.Transition,{name:"q-transition--slide-"+k.value},()=>e.h("div",{key:ee.value,class:"q-date__calendar-days fit"},ae.value.map(t=>e.h("div",{class:t.classes},[!0===t.in?e.h(yo,{class:!0===t.today?"q-date__today":"",dense:!0,flat:t.flat,unelevated:t.unelevated,color:t.color,textColor:t.textColor,label:t.i,tabindex:s.value,...r("day#"+t.i,{onClick:()=>{Oe(t.i)},onMouseover:()=>{ze(t.i)}})},!1!==t.event?()=>e.h("div",{class:"q-date__event bg-"+t.event}):null):e.h("div",""+t.i)]))))])])],Months(){const o=x.value.year===w.value.year,n=e=>{return null!==K.value&&x.value.year===K.value.year&&K.value.month>e||null!==Y.value&&x.value.year===Y.value.year&&Y.value.month<e},a=g.value.monthsShort.map((t,a)=>{const l=x.value.month===a+1;return e.h("div",{class:"q-date__months-item flex flex-center"},[e.h(yo,{class:!0===o&&w.value.month===a+1?"q-date__today":null,flat:!0!==l,label:t,unelevated:l,color:!0===l?B.value:null,textColor:!0===l?A.value:null,tabindex:s.value,disable:n(a+1),...r("month#"+a,{onClick:()=>{ye(a+1)}})})])});return!0===t.yearsInMonthView&&a.unshift(e.h("div",{class:"row no-wrap full-width"},[Ae({label:x.value.year,type:"Years",key:x.value.year,dir:C.value,goTo:he,boundaries:X.value.year,cls:" col"})])),e.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},a)},Years(){const t=$.value,o=t+Gi,n=[],a=e=>{return null!==K.value&&K.value.year>e||null!==Y.value&&Y.value.year<e};for(let l=t;l<=o;l++){const t=x.value.year===l;n.push(e.h("div",{class:"q-date__years-item flex flex-center"},[e.h(yo,{key:"yr"+l,class:w.value.year===l?"q-date__today":null,flat:!t,label:l,dense:!0,unelevated:t,color:!0===t?B.value:null,textColor:!0===t?A.value:null,tabindex:s.value,disable:a(l),...r("yr#"+l,{onClick:()=>{be(l)}})})]))}return e.h("div",{class:"q-date__view q-date__years flex flex-center"},[e.h("div",{class:"col-auto"},[e.h(yo,{round:!0,dense:!0,flat:!0,icon:j.value[0],tabindex:s.value,disable:a(t),...r("y-",{onClick:()=>{$.value-=Gi}})})]),e.h("div",{class:"q-date__years-content col self-stretch row items-center"},n),e.h("div",{class:"col-auto"},[e.h(yo,{round:!0,dense:!0,flat:!0,icon:j.value[1],tabindex:s.value,disable:a(o),...r("y+",{onClick:()=>{$.value+=Gi}})})])])}};function Oe(e){const o={...x.value,day:e};if(!1!==t.range)if(null===M.value){const a=ae.value.find(t=>!0!==t.fill&&t.i===e);if(!0!==t.noUnset&&void 0!==a.range)return void Me({target:o,from:a.range.from,to:a.range.to});if(!0===a.selected)return void Me(o);const l=si(o);M.value={init:o,initHash:l,final:o,finalHash:l},n("rangeStart",xe(o))}else{const e=M.value.initHash,t=si(o),a=e<=t?{from:M.value.init,to:o}:{from:o,to:M.value.init};M.value=null,$e(e===t?o:{target:o,...a}),n("rangeEnd",{from:xe(a.from),to:xe(a.to)})}else we(o,ee.value)}function ze(e){if(null!==M.value){const t={...x.value,day:e};Object.assign(M.value,{final:t,finalHash:si(t)})}}return Object.assign(a,{setToday:ie,setView:re,offsetCalendar:se,setCalendarTo:ue,setEditingRange:ce}),()=>{const n=[e.h("div",{class:"q-date__content col relative-position"},[e.h(e.Transition,{name:"q-transition--fade"},Le[_.value])])],a=Ye(o.default);return void 0!==a&&n.push(e.h("div",{class:"q-date__actions"},a)),void 0!==t.name&&!0!==t.disable&&m(n,"push"),e.h("div",{class:T.value,...le.value},[Be(),e.h("div",{ref:f,class:"q-date__main col column",tabindex:-1},n)])}}});function lr(t,o,n){let a;function l(){void 0!==a&&(N.remove(a),a=void 0)}return e.onBeforeUnmount(()=>{!0===t.value&&l()}),{removeFromHistory:l,addToHistory(){a={condition:()=>!0===n.value,handler:o},N.add(a)}}}let ir,rr,sr,ur,cr,dr,vr=0,pr=!1,mr=null;function fr(e){hr(e)&&$(e)}function hr(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=x(e),o=e.shiftKey&&!e.deltaX,n=!o&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=o||n?e.deltaY:e.deltaX;for(let l=0;l<t.length;l++){const e=t[l];if(pn(e,n))return n?a<0&&0===e.scrollTop||a>0&&e.scrollTop+e.clientHeight===e.scrollHeight:a<0&&0===e.scrollLeft||a>0&&e.scrollLeft+e.clientWidth===e.scrollWidth}return!0}function gr(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function br(e){!0!==pr&&(pr=!0,requestAnimationFrame(()=>{pr=!1;const{height:t}=e.target,{clientHeight:o,scrollTop:n}=document.scrollingElement;void 0!==sr&&t===window.innerHeight||(sr=o-t,document.scrollingElement.scrollTop=n),n>sr&&(document.scrollingElement.scrollTop-=Math.ceil((n-sr)/8))}))}function yr(e){const t=document.body,o=void 0!==window.visualViewport;if("add"===e){const{overflowY:e,overflowX:n}=window.getComputedStyle(t);ir=nn(window),rr=on(window),ur=t.style.left,cr=t.style.top,dr=window.location.href,t.style.left=`-${ir}px`,t.style.top=`-${rr}px`,"hidden"!==n&&("scroll"===n||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),"hidden"!==e&&("scroll"===e||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,!0===v.is.ios&&(!0===o?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",br,f.passiveCapture),window.visualViewport.addEventListener("scroll",br,f.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",gr,f.passiveCapture))}!0===v.is.desktop&&!0===v.is.mac&&window[`${e}EventListener`]("wheel",fr,f.notPassive),"remove"===e&&(!0===v.is.ios&&(!0===o?(window.visualViewport.removeEventListener("resize",br,f.passiveCapture),window.visualViewport.removeEventListener("scroll",br,f.passiveCapture)):window.removeEventListener("scroll",gr,f.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=ur,t.style.top=cr,window.location.href===dr&&window.scrollTo(ir,rr),sr=void 0)}function wr(e){let t="add";if(!0===e){if(vr++,null!==mr)return clearTimeout(mr),void(mr=null);if(vr>1)return}else{if(0===vr)return;if(vr--,vr>0)return;if(t="remove",!0===v.is.ios&&!0===v.is.nativeMobile)return null!==mr&&clearTimeout(mr),void(mr=setTimeout(()=>{yr(t),mr=null},100))}yr(t)}function xr(){let e;return{preventBodyScroll(t){t===e||void 0===e&&!0!==t||(e=t,wr(t))}}}let _r=0;const Sr={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},kr={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};var Cr=$e({name:"QDialog",inheritAttrs:!1,props:{...Co,...Ko,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:e=>"standard"===e||["top","bottom","left","right"].includes(e)}},emits:[...qo,"shake","click","escapeKey"],setup(t,{slots:o,emit:n,attrs:a}){const l=e.getCurrentInstance(),i=e.ref(null),r=e.ref(!1),s=e.ref(!1);let u,c,d=null,v=null;const p=e.computed(()=>!0!==t.persistent&&!0!==t.noRouteDismiss&&!0!==t.seamless),{preventBodyScroll:m}=xr(),{registerTimeout:f}=Zo(),{registerTick:h,removeTick:g}=Xo(),{transitionProps:b,transitionStyle:y}=Yo(t,()=>kr[t.position][0],()=>kr[t.position][1]),{showPortal:w,hidePortal:x,portalIsAccessible:_,renderPortal:S}=Wo(l,i,N,"dialog"),{hide:k}=$o({showing:r,hideOnRouteChange:p,handleShow:A,handleHide:L,processOnMount:!0}),{addToHistory:C,removeFromHistory:q}=lr(r,k,p),$=e.computed(()=>"q-dialog__inner flex no-pointer-events"+` q-dialog__inner--${!0===t.maximized?"maximized":"minimized"}`+` q-dialog__inner--${t.position} ${Sr[t.position]}`+(!0===s.value?" q-dialog__inner--animating":"")+(!0===t.fullWidth?" q-dialog__inner--fullwidth":"")+(!0===t.fullHeight?" q-dialog__inner--fullheight":"")+(!0===t.square?" q-dialog__inner--square":"")),M=e.computed(()=>!0===r.value&&!0!==t.seamless),T=e.computed(()=>!0===t.autoClose?{onClick:F}:{}),B=e.computed(()=>["q-dialog fullscreen no-pointer-events "+`q-dialog--${!0===M.value?"modal":"seamless"}`,a.class]);function A(e){C(),v=!1===t.noRefocus&&null!==document.activeElement?document.activeElement:null,P(t.maximized),w(),s.value=!0,!0!==t.noFocus?(null!==document.activeElement&&document.activeElement.blur(),h(O)):g(),f(()=>{if(!0===l.proxy.$q.platform.is.ios){if(!0!==t.seamless&&document.activeElement){const{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:o}=window,n=void 0!==window.visualViewport?window.visualViewport.height:o;e>0&&t>n/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-n,t>=o?1/0:Math.ceil(document.scrollingElement.scrollTop+t-n/2))),document.activeElement.scrollIntoView()}c=!0,i.value.click(),c=!1}w(!0),s.value=!1,n("show",e)},t.transitionDuration)}function L(e){g(),q(),E(!0),s.value=!0,x(),null!==v&&(((e&&0===e.type.indexOf("key")?v.closest('[tabindex]:not([tabindex^="-"])'):void 0)||v).focus(),v=null),f(()=>{x(!0),s.value=!1,n("hide",e)},t.transitionDuration)}function O(e){Oo(()=>{let t=i.value;null!==t&&!0!==t.contains(document.activeElement)&&(t=(""!==e?t.querySelector(e):null)||t.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||t.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||t.querySelector("[autofocus], [data-autofocus]")||t,t.focus({preventScroll:!0}))})}function V(e){e&&"function"===typeof e.focus?e.focus({preventScroll:!0}):O(),n("shake");const t=i.value;null!==t&&(t.classList.remove("q-animate--scale"),t.classList.add("q-animate--scale"),null!==d&&clearTimeout(d),d=setTimeout(()=>{d=null,null!==i.value&&(t.classList.remove("q-animate--scale"),O())},170))}function z(){!0!==t.seamless&&(!0===t.persistent||!0===t.noEscDismiss?!0!==t.maximized&&!0!==t.noShake&&V():(n("escapeKey"),k()))}function E(e){null!==d&&(clearTimeout(d),d=null),!0!==e&&!0!==r.value||(P(!1),!0!==t.seamless&&(m(!1),qn(R),_n(z))),!0!==e&&(v=null)}function P(e){!0===e?!0!==u&&(_r<1&&document.body.classList.add("q-body--dialog"),_r++,u=!0):!0===u&&(_r<2&&document.body.classList.remove("q-body--dialog"),_r--,u=!1)}function F(e){!0!==c&&(k(e),n("click",e))}function I(e){!0!==t.persistent&&!0!==t.noBackdropDismiss?k(e):!0!==t.noShake&&V()}function R(e){!0!==t.allowFocusOutside&&!0===_.value&&!0!==Jt(i.value,e.target)&&O('[tabindex]:not([tabindex="-1"])')}function N(){return e.h("div",{role:"dialog","aria-modal":!0===M.value?"true":"false",...a,class:B.value},[e.h(e.Transition,{name:"q-transition--fade",appear:!0},()=>!0===M.value?e.h("div",{class:"q-dialog__backdrop fixed-full",style:y.value,"aria-hidden":"true",tabindex:-1,onClick:I}):null),e.h(e.Transition,b.value,()=>!0===r.value?e.h("div",{ref:i,class:$.value,style:y.value,tabindex:-1,...T.value},Ye(o.default)):null)])}return e.watch(()=>t.maximized,e=>{!0===r.value&&P(e)}),e.watch(M,e=>{m(e),!0===e?(Cn(R),xn(z)):(qn(R),_n(z))}),Object.assign(l.proxy,{focus:O,shake:V,__updateRefocusTarget(e){v=e||null}}),e.onBeforeUnmount(E),S}});const qr=150;var $r=$e({name:"QDrawer",inheritAttrs:!1,props:{...Co,...bt,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...qo,"onLayout","miniState"],setup(t,{slots:o,emit:n,attrs:a}){const l=e.getCurrentInstance(),{proxy:{$q:i}}=l,r=yt(t,i),{preventBodyScroll:s}=xr(),{registerTimeout:u,removeTimeout:c}=Zo(),d=e.inject(ie,ve);if(d===ve)return console.error("QDrawer needs to be child of QLayout"),ve;let v,p,m=null;const f=e.ref("mobile"===t.behavior||"desktop"!==t.behavior&&d.totalWidth.value<=t.breakpoint),h=e.computed(()=>!0===t.mini&&!0!==f.value),g=e.computed(()=>!0===h.value?t.miniWidth:t.width),b=e.ref(!0===t.showIfAbove&&!1===f.value||!0===t.modelValue),y=e.computed(()=>!0!==t.persistent&&(!0===f.value||!0===P.value));function w(e,t){if(k(),!1!==e&&d.animate(),X(0),!0===f.value){const e=d.instances[O.value];void 0!==e&&!0===e.belowBreakpoint&&e.hide(!1),Z(1),!0!==d.isContainer.value&&s(!0)}else Z(0),!1!==e&&G(!1);u(()=>{!1!==e&&G(!0),!0!==t&&n("show",e)},qr)}function x(e,t){C(),!1!==e&&d.animate(),Z(0),X(M.value*g.value),oe(),!0!==t?u(()=>{n("hide",e)},qr):c()}const{show:_,hide:S}=$o({showing:b,hideOnRouteChange:y,handleShow:w,handleHide:x}),{addToHistory:k,removeFromHistory:C}=lr(b,S,y),q={belowBreakpoint:f,hide:S},$=e.computed(()=>"right"===t.side),M=e.computed(()=>(!0===i.lang.rtl?-1:1)*(!0===$.value?1:-1)),T=e.ref(0),B=e.ref(!1),A=e.ref(!1),L=e.ref(g.value*M.value),O=e.computed(()=>!0===$.value?"left":"right"),V=e.computed(()=>!0===b.value&&!1===f.value&&!1===t.overlay?!0===t.miniToOverlay?t.miniWidth:g.value:0),z=e.computed(()=>!0===t.overlay||!0===t.miniToOverlay||d.view.value.indexOf($.value?"R":"L")>-1||!0===i.platform.is.ios&&!0===d.isContainer.value),E=e.computed(()=>!1===t.overlay&&!0===b.value&&!1===f.value),P=e.computed(()=>!0===t.overlay&&!0===b.value&&!1===f.value),F=e.computed(()=>"fullscreen q-drawer__backdrop"+(!1===b.value&&!1===B.value?" hidden":"")),I=e.computed(()=>({backgroundColor:`rgba(0,0,0,${.4*T.value})`})),R=e.computed(()=>!0===$.value?"r"===d.rows.value.top[2]:"l"===d.rows.value.top[0]),N=e.computed(()=>!0===$.value?"r"===d.rows.value.bottom[2]:"l"===d.rows.value.bottom[0]),D=e.computed(()=>{const e={};return!0===d.header.space&&!1===R.value&&(!0===z.value?e.top=`${d.header.offset}px`:!0===d.header.space&&(e.top=`${d.header.size}px`)),!0===d.footer.space&&!1===N.value&&(!0===z.value?e.bottom=`${d.footer.offset}px`:!0===d.footer.space&&(e.bottom=`${d.footer.size}px`)),e}),j=e.computed(()=>{const e={width:`${g.value}px`,transform:`translateX(${L.value}px)`};return!0===f.value?e:Object.assign(e,D.value)}),H=e.computed(()=>"q-drawer__content fit "+(!0!==d.isContainer.value?"scroll":"overflow-auto")),Q=e.computed(()=>`q-drawer q-drawer--${t.side}`+(!0===A.value?" q-drawer--mini-animate":"")+(!0===t.bordered?" q-drawer--bordered":"")+(!0===r.value?" q-drawer--dark q-dark":"")+(!0===B.value?" no-transition":!0===b.value?"":" q-layout--prevent-focus")+(!0===f.value?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${!0===h.value?"mini":"standard"}`+(!0===z.value||!0!==E.value?" fixed":"")+(!0===t.overlay||!0===t.miniToOverlay?" q-drawer--on-top":"")+(!0===R.value?" q-drawer--top-padding":""))),U=e.computed(()=>{const e=!0===i.lang.rtl?t.side:O.value;return[[Xa,ee,void 0,{[e]:!0,mouse:!0}]]}),W=e.computed(()=>{const e=!0===i.lang.rtl?O.value:t.side;return[[Xa,te,void 0,{[e]:!0,mouse:!0}]]}),K=e.computed(()=>{const e=!0===i.lang.rtl?O.value:t.side;return[[Xa,te,void 0,{[e]:!0,mouse:!0,mouseAllDir:!0}]]});function Y(){ae(f,"mobile"===t.behavior||"desktop"!==t.behavior&&d.totalWidth.value<=t.breakpoint)}function X(t){void 0===t?e.nextTick(()=>{t=!0===b.value?0:g.value,X(M.value*t)}):(!0!==d.isContainer.value||!0!==$.value||!0!==f.value&&Math.abs(t)!==g.value||(t+=M.value*d.scrollbarWidth.value),L.value=t)}function Z(e){T.value=e}function G(e){const t=!0===e?"remove":!0!==d.isContainer.value?"add":"";""!==t&&document.body.classList[t]("q-body--drawer-toggle")}function J(){null!==m&&clearTimeout(m),l.proxy&&l.proxy.$el&&l.proxy.$el.classList.add("q-drawer--mini-animate"),A.value=!0,m=setTimeout(()=>{m=null,A.value=!1,l&&l.proxy&&l.proxy.$el&&l.proxy.$el.classList.remove("q-drawer--mini-animate")},150)}function ee(e){if(!1!==b.value)return;const t=g.value,o=Le(e.distance.x,0,t);if(!0===e.isFinal){const e=o>=Math.min(75,t);return!0===e?_():(d.animate(),Z(0),X(M.value*t)),void(B.value=!1)}X((!0===i.lang.rtl?!0!==$.value:$.value)?Math.max(t-o,0):Math.min(0,o-t)),Z(Le(o/t,0,1)),!0===e.isFirst&&(B.value=!0)}function te(e){if(!0!==b.value)return;const o=g.value,n=e.direction===t.side,a=(!0===i.lang.rtl?!0!==n:n)?Le(e.distance.x,0,o):0;if(!0===e.isFinal){const e=Math.abs(a)<Math.min(75,o);return!0===e?(d.animate(),Z(1),X(0)):S(),void(B.value=!1)}X(M.value*a),Z(Le(1-a/o,0,1)),!0===e.isFirst&&(B.value=!0)}function oe(){s(!1),G(!0)}function ne(e,o){d.update(t.side,e,o)}function ae(e,t){e.value!==t&&(e.value=t)}function le(e,o){ne("size",!0===e?t.miniWidth:o)}return e.watch(f,e=>{!0===e?(v=b.value,!0===b.value&&S(!1)):!1===t.overlay&&"mobile"!==t.behavior&&!1!==v&&(!0===b.value?(X(0),Z(0),oe()):_(!1))}),e.watch(()=>t.side,(e,t)=>{d.instances[t]===q&&(d.instances[t]=void 0,d[t].space=!1,d[t].offset=0),d.instances[e]=q,d[e].size=g.value,d[e].space=E.value,d[e].offset=V.value}),e.watch(d.totalWidth,()=>{!0!==d.isContainer.value&&!0===document.qScrollPrevented||Y()}),e.watch(()=>t.behavior+t.breakpoint,Y),e.watch(d.isContainer,e=>{!0===b.value&&s(!0!==e),!0===e&&Y()}),e.watch(d.scrollbarWidth,()=>{X(!0===b.value?0:void 0)}),e.watch(V,e=>{ne("offset",e)}),e.watch(E,e=>{n("onLayout",e),ne("space",e)}),e.watch($,()=>{X()}),e.watch(g,e=>{X(),le(t.miniToOverlay,e)}),e.watch(()=>t.miniToOverlay,e=>{le(e,g.value)}),e.watch(()=>i.lang.rtl,()=>{X()}),e.watch(()=>t.mini,()=>{t.noMiniAnimation||!0===t.modelValue&&(J(),d.animate())}),e.watch(h,e=>{n("miniState",e)}),d.instances[t.side]=q,le(t.miniToOverlay,g.value),ne("space",E.value),ne("offset",V.value),!0===t.showIfAbove&&!0!==t.modelValue&&!0===b.value&&void 0!==t["onUpdate:modelValue"]&&n("update:modelValue",!0),e.onMounted(()=>{n("onLayout",E.value),n("miniState",h.value),v=!0===t.showIfAbove;const o=()=>{const e=!0===b.value?w:x;e(!1,!0)};0===d.totalWidth.value?p=e.watch(d.totalWidth,()=>{p(),p=void 0,!1===b.value&&!0===t.showIfAbove&&!1===f.value?_(!1):o()}):e.nextTick(o)}),e.onBeforeUnmount(()=>{void 0!==p&&p(),null!==m&&(clearTimeout(m),m=null),!0===b.value&&oe(),d.instances[t.side]===q&&(d.instances[t.side]=void 0,ne("size",0),ne("offset",0),ne("space",!1))}),()=>{const n=[];!0===f.value&&(!1===t.noSwipeOpen&&n.push(e.withDirectives(e.h("div",{key:"open",class:`q-drawer__opener fixed-${t.side}`,"aria-hidden":"true"}),U.value)),n.push(Je("div",{ref:"backdrop",class:F.value,style:I.value,"aria-hidden":"true",onClick:S},void 0,"backdrop",!0!==t.noSwipeBackdrop&&!0===b.value,()=>K.value)));const l=!0===h.value&&void 0!==o.mini,i=[e.h("div",{...a,key:""+l,class:[H.value,a.class]},!0===l?o.mini():Ye(o.default))];return!0===t.elevated&&!0===b.value&&i.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(Je("aside",{ref:"content",class:Q.value,style:j.value},i,"contentclose",!0!==t.noSwipeClose&&!0===f.value,()=>W.value)),e.h("div",{class:"q-drawer-container"},n)}}});function Mr(e,t){if(t&&e===t)return null;const o=e.nodeName.toLowerCase();if(!0===["div","li","ul","ol","blockquote"].includes(o))return e;const n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,a=n.display;return"block"===a||"table"===a?e:Mr(e.parentNode)}function Tr(e,t,o){return!(!e||e===document.body)&&(!0===o&&e===t||(t===document?document.body:t).contains(e.parentNode))}function Br(e,t,o){if(o||(o=document.createRange(),o.selectNode(e),o.setStart(e,0)),0===t.count)o.setEnd(e,t.count);else if(t.count>0)if(e.nodeType===Node.TEXT_NODE)e.textContent.length<t.count?t.count-=e.textContent.length:(o.setEnd(e,t.count),t.count=0);else for(let n=0;0!==t.count&&n<e.childNodes.length;n++)o=Br(e.childNodes[n],t,o);return o}const Ar=/^https?:\/\//;class Lr{constructor(e,t){this.el=e,this.eVm=t,this._range=null}get selection(){if(this.el){const e=document.getSelection();if(Tr(e.anchorNode,this.el,!0)&&Tr(e.focusNode,this.el,!0))return e}return null}get hasSelection(){return null!==this.selection&&0!==this.selection.toString().length}get range(){const e=this.selection;return null!==e&&e.rangeCount?e.getRangeAt(0):this._range}get parent(){const e=this.range;if(null!==e){const t=e.startContainer;return t.nodeType===document.ELEMENT_NODE?t:t.parentNode}return null}get blockParent(){const e=this.parent;return null!==e?Mr(e,this.el):null}save(e=this.range){null!==e&&(this._range=e)}restore(e=this._range){const t=document.createRange(),o=document.getSelection();null!==e?(t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),o.removeAllRanges(),o.addRange(t)):(o.selectAllChildren(this.el),o.collapseToEnd())}savePosition(){let e,t=-1;const o=document.getSelection(),n=this.el.parentNode;if(o.focusNode&&Tr(o.focusNode,n)){e=o.focusNode,t=o.focusOffset;while(e&&e!==n)e!==this.el&&e.previousSibling?(e=e.previousSibling,t+=e.textContent.length):e=e.parentNode}this.savedPos=t}restorePosition(e=0){if(this.savedPos>0&&this.savedPos<e){const e=window.getSelection(),t=Br(this.el,{count:this.savedPos});t&&(t.collapse(!1),e.removeAllRanges(),e.addRange(t))}}hasParent(e,t){const o=t?this.parent:this.blockParent;return null!==o&&o.nodeName.toLowerCase()===e.toLowerCase()}hasParents(e,t,o=this.parent){return null!==o&&(!0===e.includes(o.nodeName.toLowerCase())||!0===t&&this.hasParents(e,t,o.parentNode))}is(e,t){if(null===this.selection)return!1;switch(e){case"formatBlock":return"DIV"===t&&this.parent===this.el||this.hasParent(t,"PRE"===t);case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(e)===t;case"fontName":const o=document.queryCommandValue(e);return o===`"${t}"`||o===t;case"fullscreen":return this.eVm.inFullscreen.value;case"viewsource":return this.eVm.isViewingSource.value;case void 0:return!1;default:const n=document.queryCommandState(e);return void 0!==t?n===t:n}}getParentAttribute(e){return null!==this.parent?this.parent.getAttribute(e):null}can(e){return"outdent"===e?this.hasParents(["blockquote","li"],!0):"indent"===e?this.hasParents(["li"],!0):"link"===e?null!==this.selection||this.is("link"):void 0}apply(e,t,o=h){if("formatBlock"===e)["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"].includes(t)&&this.is(e,t)&&(e="outdent",t=null),"PRE"===t&&this.is(e,"PRE")&&(t="P");else{if("print"===e){o();const e=window.open();return e.document.write(`\n <!doctype html>\n <html>\n <head>\n <title>Print - ${document.title}</title>\n </head>\n <body>\n <div>${this.el.innerHTML}</div>\n </body>\n </html>\n `),e.print(),void e.close()}if("link"===e){const e=this.getParentAttribute("href");if(null===e){const e=this.selectWord(this.selection),t=e?e.toString():"";if(!t.length&&(!this.range||!this.range.cloneContents().querySelector("img")))return;this.eVm.editLinkUrl.value=Ar.test(t)?t:"https://",document.execCommand("createLink",!1,this.eVm.editLinkUrl.value),this.save(e.getRangeAt(0))}else this.eVm.editLinkUrl.value=e,this.range.selectNodeContents(this.parent),this.save();return}if("fullscreen"===e)return this.eVm.toggleFullscreen(),void o();if("viewsource"===e)return this.eVm.isViewingSource.value=!1===this.eVm.isViewingSource.value,this.eVm.setContent(this.eVm.props.modelValue),void o()}document.execCommand(e,!1,t),o()}selectWord(e){if(null===e||!0!==e.isCollapsed||void 0===e.modify)return e;const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);const o=t.collapsed?["backward","forward"]:["forward","backward"];t.detach();const n=e.focusNode,a=e.focusOffset;return e.collapse(e.anchorNode,e.anchorOffset),e.modify("move",o[0],"character"),e.modify("move",o[1],"word"),e.extend(n,a),e.modify("extend",o[1],"character"),e.modify("extend",o[0],"word"),e}}var Or=$e({name:"QTooltip",inheritAttrs:!1,props:{..._o,...Co,...Ko,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Vn},self:{type:String,default:"top middle",validator:Vn},offset:{type:Array,default:()=>[14,14],validator:zn},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0}},emits:[...qo],setup(t,{slots:o,emit:n,attrs:a}){let l,i;const r=e.getCurrentInstance(),{proxy:{$q:s}}=r,u=e.ref(null),c=e.ref(!1),d=e.computed(()=>Pn(t.anchor,s.lang.rtl)),v=e.computed(()=>Pn(t.self,s.lang.rtl)),p=e.computed(()=>!0!==t.persistent),{registerTick:m,removeTick:f}=Xo(),{registerTimeout:h}=Zo(),{transitionProps:g,transitionStyle:b}=Yo(t),{localScrollTarget:y,changeScrollEvent:w,unconfigureScrollTarget:x}=ko(t,R),{anchorEl:_,canShow:S,anchorEvents:k}=So({showing:c,configureAnchorEl:I}),{show:C,hide:q}=$o({showing:c,canShow:S,handleShow:O,handleHide:V,hideOnRouteChange:p,processOnMount:!0});Object.assign(k,{delayShow:P,delayHide:F});const{showPortal:M,hidePortal:A,renderPortal:L}=Wo(r,u,D,"tooltip");if(!0===s.platform.is.mobile){const o={anchorEl:_,innerRef:u,onClickOutside(e){return q(e),e.target.classList.contains("q-dialog__backdrop")&&$(e),!0}},n=e.computed(()=>null===t.modelValue&&!0!==t.persistent&&!0===c.value);e.watch(n,e=>{const t=!0===e?Bn:An;t(o)}),e.onBeforeUnmount(()=>{An(o)})}function O(o){M(),m(()=>{i=new MutationObserver(()=>E()),i.observe(u.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),E(),R()}),void 0===l&&(l=e.watch(()=>s.screen.width+"|"+s.screen.height+"|"+t.self+"|"+t.anchor+"|"+s.lang.rtl,E)),h(()=>{M(!0),n("show",o)},t.transitionDuration)}function V(e){f(),A(),z(),h(()=>{A(!0),n("hide",e)},t.transitionDuration)}function z(){void 0!==i&&(i.disconnect(),i=void 0),void 0!==l&&(l(),l=void 0),x(),B(k,"tooltipTemp")}function E(){Dn({targetEl:u.value,offset:t.offset,anchorEl:_.value,anchorOrigin:d.value,selfOrigin:v.value,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function P(e){if(!0===s.platform.is.mobile){xo(),document.body.classList.add("non-selectable");const e=_.value,t=["touchmove","touchcancel","touchend","click"].map(t=>[e,t,"delayHide","passiveCapture"]);T(k,"tooltipTemp",t)}h(()=>{C(e)},t.delay)}function F(e){!0===s.platform.is.mobile&&(B(k,"tooltipTemp"),xo(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),h(()=>{q(e)},t.hideDelay)}function I(){if(!0===t.noParentEvent||null===_.value)return;const e=!0===s.platform.is.mobile?[[_.value,"touchstart","delayShow","passive"]]:[[_.value,"mouseenter","delayShow","passive"],[_.value,"mouseleave","delayHide","passive"]];T(k,"anchor",e)}function R(){if(null!==_.value||void 0!==t.scrollTarget){y.value=Jo(_.value,t.scrollTarget);const e=!0===t.noParentEvent?E:q;w(y.value,e)}}function N(){return!0===c.value?e.h("div",{...a,ref:u,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",a.class],style:[a.style,b.value],role:"tooltip"},Ye(o.default)):null}function D(){return e.h(e.Transition,g.value,N)}return e.onBeforeUnmount(z),Object.assign(r.proxy,{updatePosition:E}),L}}),Vr=$e({name:"QItem",props:{...bt,...It,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=yt(t,a),{hasLink:i,linkAttrs:r,linkClass:s,linkTag:u,navigateOnClick:c}=Rt(),d=e.ref(null),v=e.ref(null),p=e.computed(()=>!0===t.clickable||!0===i.value||"label"===t.tag),m=e.computed(()=>!0!==t.disable&&!0===p.value),f=e.computed(()=>"q-item q-item-type row no-wrap"+(!0===t.dense?" q-item--dense":"")+(!0===l.value?" q-item--dark":"")+(!0===i.value&&null===t.active?s.value:!0===t.active?` q-item--active${void 0!==t.activeClass?` ${t.activeClass}`:""}`:"")+(!0===t.disable?" disabled":"")+(!0===m.value?" q-item--clickable q-link cursor-pointer "+(!0===t.manualFocus?"q-manual-focusable":"q-focusable q-hoverable")+(!0===t.focused?" q-manual-focusable--focused":""):"")),h=e.computed(()=>{if(void 0===t.insetLevel)return null;const e=!0===a.lang.rtl?"Right":"Left";return{["padding"+e]:16+56*t.insetLevel+"px"}});function g(e){!0===m.value&&(null!==v.value&&(!0!==e.qKeyEvent&&document.activeElement===d.value?v.value.focus():document.activeElement===v.value&&d.value.focus()),c(e))}function b(e){if(!0===m.value&&!0===Y(e,[13,32])){$(e),e.qKeyEvent=!0;const t=new MouseEvent("click",e);t.qKeyEvent=!0,d.value.dispatchEvent(t)}n("keyup",e)}function y(){const t=Xe(o.default,[]);return!0===m.value&&t.unshift(e.h("div",{class:"q-focus-helper",tabindex:-1,ref:v})),t}return()=>{const o={ref:d,class:f.value,style:h.value,role:"listitem",onClick:g,onKeyup:b};return!0===m.value?(o.tabindex=t.tabindex||"0",Object.assign(o,r.value)):!0===p.value&&(o["aria-disabled"]="true"),e.h(u.value,o,y())}}}),zr=$e({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-item__section column"+` q-item__section--${!0===t.avatar||!0===t.side||!0===t.thumbnail?"side":"main"}`+(!0===t.top?" q-item__section--top justify-start":" justify-center")+(!0===t.avatar?" q-item__section--avatar":"")+(!0===t.thumbnail?" q-item__section--thumbnail":"")+(!0===t.noWrap?" q-item__section--nowrap":""));return()=>e.h("div",{class:n.value},Ye(o.default))}});function Er(e,t,o){t.handler?t.handler(e,o,o.caret):o.runCmd(t.cmd,t.param)}function Pr(t){return e.h("div",{class:"q-editor__toolbar-group"},t)}function Fr(t,o,n,a=!1){const l=a||"toggle"===o.type&&(o.toggled?o.toggled(t):o.cmd&&t.caret.is(o.cmd,o.param)),i=[];if(o.tip&&t.$q.platform.is.desktop){const t=o.key?e.h("div",[e.h("small",`(CTRL + ${String.fromCharCode(o.key)})`)]):null;i.push(e.h(Or,{delay:1e3},()=>[e.h("div",{innerHTML:o.tip}),t]))}return e.h(yo,{...t.buttonProps.value,icon:null!==o.icon?o.icon:void 0,color:l?o.toggleColor||t.props.toolbarToggleColor:o.color||t.props.toolbarColor,textColor:l&&!t.props.toolbarPush?null:o.textColor||t.props.toolbarTextColor,label:o.label,disable:!!o.disable&&("function"!==typeof o.disable||o.disable(t)),size:"sm",onClick(e){n&&n(),Er(e,o,t)}},()=>i)}function Ir(t,o){const n="only-icons"===o.list;let a,l,i=o.label,r=null!==o.icon?o.icon:void 0;function s(){c.component.proxy.hide()}if(n)l=o.options.map(e=>{const o=void 0===e.type&&t.caret.is(e.cmd,e.param);return o&&(i=e.tip,r=null!==e.icon?e.icon:void 0),Fr(t,e,s,o)}),a=t.toolbarBackgroundClass.value,l=[Pr(l)];else{const n=void 0!==t.props.toolbarToggleColor?`text-${t.props.toolbarToggleColor}`:null,u=void 0!==t.props.toolbarTextColor?`text-${t.props.toolbarTextColor}`:null,c="no-icons"===o.list;l=o.options.map(o=>{const a=!!o.disable&&o.disable(t),l=void 0===o.type&&t.caret.is(o.cmd,o.param);l&&(i=o.tip,r=null!==o.icon?o.icon:void 0);const d=o.htmlTip;return e.h(Vr,{active:l,activeClass:n,clickable:!0,disable:a,dense:!0,onClick(e){s(),null!==t.contentRef.value&&t.contentRef.value.focus(),t.caret.restore(),Er(e,o,t)}},()=>[!0===c?null:e.h(zr,{class:l?n:u,side:!0},()=>e.h(mt,{name:null!==o.icon?o.icon:void 0})),e.h(zr,d?()=>e.h("div",{class:"text-no-wrap",innerHTML:o.htmlTip}):o.tip?()=>e.h("div",{class:"text-no-wrap"},o.tip):void 0)])}),a=[t.toolbarBackgroundClass.value,u]}const u=o.highlight&&i!==o.label,c=e.h(ta,{...t.buttonProps.value,noCaps:!0,noWrap:!0,color:u?t.props.toolbarToggleColor:t.props.toolbarColor,textColor:u&&!t.props.toolbarPush?null:t.props.toolbarTextColor,label:o.fixedLabel?o.label:i,icon:o.fixedIcon?null!==o.icon?o.icon:void 0:r,contentClass:a,onShow:e=>t.emit("dropdownShow",e),onHide:e=>t.emit("dropdownHide",e),onBeforeShow:e=>t.emit("dropdownBeforeShow",e),onBeforeHide:e=>t.emit("dropdownBeforeHide",e)},()=>l);return c}function Rr(e){if(e.caret)return e.buttons.value.filter(t=>{return!e.isViewingSource.value||t.find(e=>"viewsource"===e.cmd)}).map(t=>Pr(t.map(t=>{return(!e.isViewingSource.value||"viewsource"===t.cmd)&&("slot"===t.type?Ye(e.slots[t.slot]):"dropdown"===t.type?Ir(e,t):Fr(e,t))})))}function Nr(e,t,o,n={}){const a=Object.keys(n);if(0===a.length)return{};const l={default_font:{cmd:"fontName",param:e,icon:o,tip:t}};return a.forEach(e=>{const t=n[e];l[e]={cmd:"fontName",param:t,icon:o,tip:t,htmlTip:`<font face="${t}">${t}</font>`}}),l}function Dr(t){if(t.caret){const o=t.props.toolbarColor||t.props.toolbarTextColor;let n=t.editLinkUrl.value;const a=()=>{t.caret.restore(),n!==t.editLinkUrl.value&&document.execCommand("createLink",!1,""===n?" ":n),t.editLinkUrl.value=null};return[e.h("div",{class:`q-mx-xs text-${o}`},`${t.$q.lang.editor.url}: `),e.h("input",{key:"qedt_btm_input",class:"col q-editor__link-input",value:n,onInput:e=>{C(e),n=e.target.value},onKeydown:e=>{if(!0!==K(e))switch(e.keyCode){case 13:return q(e),a();case 27:q(e),t.caret.restore(),t.editLinkUrl.value&&"https://"!==t.editLinkUrl.value||document.execCommand("unlink"),t.editLinkUrl.value=null;break}}}),Pr([e.h(yo,{key:"qedt_btm_rem",tabindex:-1,...t.buttonProps.value,label:t.$q.lang.label.remove,noCaps:!0,onClick:()=>{t.caret.restore(),document.execCommand("unlink"),t.editLinkUrl.value=null}}),e.h(yo,{key:"qedt_btm_upd",...t.buttonProps.value,label:t.$q.lang.label.update,noCaps:!0,onClick:a})])]}}const jr=/^on[A-Z]/;function Hr(t,o){const n={listeners:e.ref({}),attributes:e.ref({})};function a(){const e={},a={};for(const o in t)"class"!==o&&"style"!==o&&!1===jr.test(o)&&(e[o]=t[o]);for(const t in o.props)!0===jr.test(t)&&(a[t]=o.props[t]);n.attributes.value=e,n.listeners.value=a}return e.onBeforeUpdate(a),a(),n}const Qr=Object.prototype.toString,Ur=Object.prototype.hasOwnProperty,Wr=new Set(["Boolean","Number","String","Function","Array","Date","RegExp"].map(e=>"[object "+e+"]"));function Kr(e){if(e!==Object(e)||!0===Wr.has(Qr.call(e)))return!1;if(e.constructor&&!1===Ur.call(e,"constructor")&&!1===Ur.call(e.constructor.prototype,"isPrototypeOf"))return!1;let t;for(t in e);return void 0===t||Ur.call(e,t)}function Yr(){let e,t,o,n,a,l,i=arguments[0]||{},r=1,s=!1;const u=arguments.length;for("boolean"===typeof i&&(s=i,i=arguments[1]||{},r=2),Object(i)!==i&&"function"!==typeof i&&(i={}),u===r&&(i=this,r--);r<u;r++)if(null!==(e=arguments[r]))for(t in e)o=i[t],n=e[t],i!==n&&(!0===s&&n&&((a=Array.isArray(n))||!0===Kr(n))?(l=!0===a?!0===Array.isArray(o)?o:[]:!0===Kr(o)?o:{},i[t]=Yr(s,l,n)):void 0!==n&&(i[t]=n));return i}var Xr=$e({name:"QEditor",props:{...bt,...ka,modelValue:{type:String,required:!0},readonly:Boolean,disable:Boolean,minHeight:{type:String,default:"10rem"},maxHeight:String,height:String,definitions:Object,fonts:Object,placeholder:String,toolbar:{type:Array,validator:e=>0===e.length||e.every(e=>e.length),default(){return[["left","center","right","justify"],["bold","italic","underline","strike"],["undo","redo"]]}},toolbarColor:String,toolbarBg:String,toolbarTextColor:String,toolbarToggleColor:{type:String,default:"primary"},toolbarOutline:Boolean,toolbarPush:Boolean,toolbarRounded:Boolean,paragraphTag:{type:String,validator:e=>["div","p"].includes(e),default:"div"},contentStyle:Object,contentClass:[Object,Array,String],square:Boolean,flat:Boolean,dense:Boolean},emits:[...Ca,"update:modelValue","keydown","click","mouseup","keyup","touchend","focus","blur","dropdownShow","dropdownHide","dropdownBeforeShow","dropdownBeforeHide","linkShow","linkHide"],setup(t,{slots:o,emit:n,attrs:a}){const{proxy:l,vnode:i}=e.getCurrentInstance(),{$q:r}=l,s=yt(t,r),{inFullscreen:u,toggleFullscreen:c}=qa(),d=Hr(a,i),v=e.ref(null),p=e.ref(null),m=e.ref(null),f=e.ref(!1),h=e.computed(()=>!t.readonly&&!t.disable);let g,b,y=t.modelValue;document.execCommand("defaultParagraphSeparator",!1,t.paragraphTag),g=window.getComputedStyle(document.body).fontFamily;const w=e.computed(()=>t.toolbarBg?` bg-${t.toolbarBg}`:""),x=e.computed(()=>{const e=!0!==t.toolbarOutline&&!0!==t.toolbarPush;return{type:"a",flat:e,noWrap:!0,outline:t.toolbarOutline,push:t.toolbarPush,rounded:t.toolbarRounded,dense:!0,color:t.toolbarColor,disable:!h.value,size:"sm"}}),_=e.computed(()=>{const e=r.lang.editor,o=r.iconSet.editor;return{bold:{cmd:"bold",icon:o.bold,tip:e.bold,key:66},italic:{cmd:"italic",icon:o.italic,tip:e.italic,key:73},strike:{cmd:"strikeThrough",icon:o.strikethrough,tip:e.strikethrough,key:83},underline:{cmd:"underline",icon:o.underline,tip:e.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:o.unorderedList,tip:e.unorderedList},ordered:{cmd:"insertOrderedList",icon:o.orderedList,tip:e.orderedList},subscript:{cmd:"subscript",icon:o.subscript,tip:e.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:o.superscript,tip:e.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",disable:e=>e.caret&&!e.caret.can("link"),icon:o.hyperlink,tip:e.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:o.toggleFullscreen,tip:e.toggleFullscreen,key:70},viewsource:{cmd:"viewsource",icon:o.viewSource,tip:e.viewSource},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:o.quote,tip:e.quote,key:81},left:{cmd:"justifyLeft",icon:o.left,tip:e.left},center:{cmd:"justifyCenter",icon:o.center,tip:e.center},right:{cmd:"justifyRight",icon:o.right,tip:e.right},justify:{cmd:"justifyFull",icon:o.justify,tip:e.justify},print:{type:"no-state",cmd:"print",icon:o.print,tip:e.print,key:80},outdent:{type:"no-state",disable:e=>e.caret&&!e.caret.can("outdent"),cmd:"outdent",icon:o.outdent,tip:e.outdent},indent:{type:"no-state",disable:e=>e.caret&&!e.caret.can("indent"),cmd:"indent",icon:o.indent,tip:e.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:o.removeFormat,tip:e.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:o.hr,tip:e.hr},undo:{type:"no-state",cmd:"undo",icon:o.undo,tip:e.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:o.redo,tip:e.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:o.heading1||o.heading,tip:e.heading1,htmlTip:`<h1 class="q-ma-none">${e.heading1}</h1>`},h2:{cmd:"formatBlock",param:"H2",icon:o.heading2||o.heading,tip:e.heading2,htmlTip:`<h2 class="q-ma-none">${e.heading2}</h2>`},h3:{cmd:"formatBlock",param:"H3",icon:o.heading3||o.heading,tip:e.heading3,htmlTip:`<h3 class="q-ma-none">${e.heading3}</h3>`},h4:{cmd:"formatBlock",param:"H4",icon:o.heading4||o.heading,tip:e.heading4,htmlTip:`<h4 class="q-ma-none">${e.heading4}</h4>`},h5:{cmd:"formatBlock",param:"H5",icon:o.heading5||o.heading,tip:e.heading5,htmlTip:`<h5 class="q-ma-none">${e.heading5}</h5>`},h6:{cmd:"formatBlock",param:"H6",icon:o.heading6||o.heading,tip:e.heading6,htmlTip:`<h6 class="q-ma-none">${e.heading6}</h6>`},p:{cmd:"formatBlock",param:t.paragraphTag,icon:o.heading,tip:e.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:o.code,htmlTip:`<code>${e.code}</code>`},"size-1":{cmd:"fontSize",param:"1",icon:o.size1||o.size,tip:e.size1,htmlTip:`<font size="1">${e.size1}</font>`},"size-2":{cmd:"fontSize",param:"2",icon:o.size2||o.size,tip:e.size2,htmlTip:`<font size="2">${e.size2}</font>`},"size-3":{cmd:"fontSize",param:"3",icon:o.size3||o.size,tip:e.size3,htmlTip:`<font size="3">${e.size3}</font>`},"size-4":{cmd:"fontSize",param:"4",icon:o.size4||o.size,tip:e.size4,htmlTip:`<font size="4">${e.size4}</font>`},"size-5":{cmd:"fontSize",param:"5",icon:o.size5||o.size,tip:e.size5,htmlTip:`<font size="5">${e.size5}</font>`},"size-6":{cmd:"fontSize",param:"6",icon:o.size6||o.size,tip:e.size6,htmlTip:`<font size="6">${e.size6}</font>`},"size-7":{cmd:"fontSize",param:"7",icon:o.size7||o.size,tip:e.size7,htmlTip:`<font size="7">${e.size7}</font>`}}}),S=e.computed(()=>{const e=t.definitions||{},o=t.definitions||t.fonts?Yr(!0,{},_.value,e,Nr(g,r.lang.editor.defaultFont,r.iconSet.editor.font,t.fonts)):_.value;return t.toolbar.map(t=>t.map(t=>{if(t.options)return{type:"dropdown",icon:t.icon,label:t.label,size:"sm",dense:!0,fixedLabel:t.fixedLabel,fixedIcon:t.fixedIcon,highlight:t.highlight,list:t.list,options:t.options.map(e=>o[e])};const n=o[t];return n?"no-state"===n.type||e[t]&&(void 0===n.cmd||_.value[n.cmd]&&"no-state"===_.value[n.cmd].type)?n:Object.assign({type:"toggle"},n):{type:"slot",slot:t}}))}),k={$q:r,props:t,slots:o,emit:n,inFullscreen:u,toggleFullscreen:c,runCmd:D,isViewingSource:f,editLinkUrl:m,toolbarBackgroundClass:w,buttonProps:x,contentRef:p,buttons:S,setContent:N};e.watch(()=>t.modelValue,e=>{y!==e&&(y=e,N(e,!0))}),e.watch(m,e=>{n(`link${e?"Show":"Hide"}`)});const C=e.computed(()=>t.toolbar&&0!==t.toolbar.length),q=e.computed(()=>{const e={},t=t=>{t.key&&(e[t.key]={cmd:t.cmd,param:t.param})};return S.value.forEach(e=>{e.forEach(e=>{e.options?e.options.forEach(t):t(e)})}),e}),M=e.computed(()=>u.value?t.contentStyle:[{minHeight:t.minHeight,height:t.height,maxHeight:t.maxHeight},t.contentStyle]),T=e.computed(()=>`q-editor q-editor--${!0===f.value?"source":"default"}`+(!0===t.disable?" disabled":"")+(!0===u.value?" fullscreen column":"")+(!0===t.square?" q-editor--square no-border-radius":"")+(!0===t.flat?" q-editor--flat":"")+(!0===t.dense?" q-editor--dense":"")+(!0===s.value?" q-editor--dark q-dark":"")),B=e.computed(()=>[t.contentClass,"q-editor__content",{col:u.value,"overflow-auto":u.value||t.maxHeight}]),A=e.computed(()=>!0===t.disable?{"aria-disabled":"true"}:{});function L(){if(null!==p.value){const e=`inner${!0===f.value?"Text":"HTML"}`,o=p.value[e];o!==t.modelValue&&(y=o,n("update:modelValue",o))}}function O(e){if(n("keydown",e),!0!==e.ctrlKey||!0===K(e))return void j();const t=e.keyCode,o=q.value[t];if(void 0!==o){const{cmd:t,param:n}=o;$(e),D(t,n,!1)}}function V(e){j(),n("click",e)}function z(e){if(null!==p.value){const{scrollTop:e,scrollHeight:t}=p.value;b=t-e}k.caret.save(),n("blur",e)}function E(t){e.nextTick(()=>{null!==p.value&&void 0!==b&&(p.value.scrollTop=p.value.scrollHeight-b)}),n("focus",t)}function P(e){const t=v.value;if(null!==t&&!0===t.contains(e.target)&&(null===e.relatedTarget||!0!==t.contains(e.relatedTarget))){const e=`inner${!0===f.value?"Text":"HTML"}`;k.caret.restorePosition(p.value[e].length),j()}}function F(e){const t=v.value;null===t||!0!==t.contains(e.target)||null!==e.relatedTarget&&!0===t.contains(e.relatedTarget)||(k.caret.savePosition(),j())}function I(){b=void 0}function R(e){k.caret.save()}function N(e,t){if(null!==p.value){!0===t&&k.caret.savePosition();const o=`inner${!0===f.value?"Text":"HTML"}`;p.value[o]=e,!0===t&&(k.caret.restorePosition(p.value[o].length),j())}}function D(e,t,o=!0){H(),k.caret.restore(),k.caret.apply(e,t,()=>{H(),k.caret.save(),o&&j()})}function j(){setTimeout(()=>{m.value=null,l.$forceUpdate()},1)}function H(){Oo(()=>{null!==p.value&&p.value.focus({preventScroll:!0})})}function Q(){return p.value}return e.onMounted(()=>{k.caret=l.caret=new Lr(p.value,k),N(t.modelValue),j(),document.addEventListener("selectionchange",R)}),e.onBeforeUnmount(()=>{document.removeEventListener("selectionchange",R)}),Object.assign(l,{runCmd:D,refreshToolbar:j,focus:H,getContentEl:Q}),()=>{let o;if(C.value){const t=[e.h("div",{key:"qedt_top",class:"q-editor__toolbar row no-wrap scroll-x"+w.value},Rr(k))];null!==m.value&&t.push(e.h("div",{key:"qedt_btm",class:"q-editor__toolbar row no-wrap items-center scroll-x"+w.value},Dr(k))),o=e.h("div",{key:"toolbar_ctainer",class:"q-editor__toolbars-container"},t)}return e.h("div",{ref:v,class:T.value,style:{height:!0===u.value?"100%":null},...A.value,onFocusin:P,onFocusout:F},[o,e.h("div",{ref:p,style:M.value,class:B.value,contenteditable:h.value,placeholder:t.placeholder,...{},...d.listeners.value,onInput:L,onKeydown:O,onClick:V,onBlur:z,onFocus:E,onMousedown:I,onTouchstartPassive:I})])}}}),Zr=$e({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(t,{slots:o}){const n=e.computed(()=>parseInt(t.lines,10)),a=e.computed(()=>"q-item__label"+(!0===t.overline?" q-item__label--overline text-overline":"")+(!0===t.caption?" q-item__label--caption text-caption":"")+(!0===t.header?" q-item__label--header":"")+(1===n.value?" ellipsis":"")),l=e.computed(()=>{return void 0!==t.lines&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null});return()=>e.h("div",{style:l.value,class:a.value},Ye(o.default))}}),Gr=$e({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(t,{slots:o,emit:n}){let a,l,i,r,s=!1,u=null,c=null;function d(){a&&a(),a=null,s=!1,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null),void 0!==l&&l.removeEventListener("transitionend",i),i=null}function v(e,o,n){void 0!==o&&(e.style.height=`${o}px`),e.style.transition=`height ${t.duration}ms cubic-bezier(.25, .8, .50, 1)`,s=!0,a=n}function p(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,d(),t!==r&&n(t)}function m(e,o){let n=0;l=e,!0===s?(d(),n=e.offsetHeight===e.scrollHeight?0:void 0):(r="hide",e.style.overflowY="hidden"),v(e,n,o),u=setTimeout(()=>{u=null,e.style.height=`${e.scrollHeight}px`,i=(t=>{c=null,Object(t)===t&&t.target!==e||p(e,"show")}),e.addEventListener("transitionend",i),c=setTimeout(i,1.1*t.duration)},100)}function f(e,o){let n;l=e,!0===s?d():(r="show",e.style.overflowY="hidden",n=e.scrollHeight),v(e,n,o),u=setTimeout(()=>{u=null,e.style.height=0,i=(t=>{c=null,Object(t)===t&&t.target!==e||p(e,"hide")}),e.addEventListener("transitionend",i),c=setTimeout(i,1.1*t.duration)},100)}return e.onBeforeUnmount(()=>{!0===s&&d()}),()=>e.h(e.Transition,{css:!1,appear:t.appear,onEnter:m,onLeave:f},o.default)}});const Jr={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},es={xs:2,sm:4,md:8,lg:16,xl:24};var ts=$e({name:"QSeparator",props:{...bt,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(t){const o=e.getCurrentInstance(),n=yt(t,o.proxy.$q),a=e.computed(()=>!0===t.vertical?"vertical":"horizontal"),l=e.computed(()=>` q-separator--${a.value}`),i=e.computed(()=>!1!==t.inset?`${l.value}-${Jr[t.inset]}`:""),r=e.computed(()=>`q-separator${l.value}${i.value}`+(void 0!==t.color?` bg-${t.color}`:"")+(!0===n.value?" q-separator--dark":"")),s=e.computed(()=>{const e={};if(void 0!==t.size&&(e[!0===t.vertical?"width":"height"]=t.size),!1!==t.spaced){const o=!0===t.spaced?`${es.md}px`:t.spaced in es?`${es[t.spaced]}px`:t.spaced,n=!0===t.vertical?["Left","Right"]:["Top","Bottom"];e[`margin${n[0]}`]=e[`margin${n[1]}`]=o}return e});return()=>e.h("hr",{class:r.value,style:s.value,"aria-orientation":a.value})}});const os=e.shallowReactive({}),ns=Object.keys(It);var as=$e({name:"QExpansionItem",props:{...It,...Co,...bt,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...qo,"click","afterShow","afterHide"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=yt(t,a),i=e.ref(null!==t.modelValue?t.modelValue:t.defaultOpened),r=e.ref(null),s=Gn(),{show:u,hide:c,toggle:d}=$o({showing:i});let v,p;const m=e.computed(()=>"q-expansion-item q-item-type"+` q-expansion-item--${!0===i.value?"expanded":"collapsed"}`+` q-expansion-item--${!0===t.popup?"popup":"standard"}`),f=e.computed(()=>{if(void 0===t.contentInsetLevel)return null;const e=!0===a.lang.rtl?"Right":"Left";return{["padding"+e]:56*t.contentInsetLevel+"px"}}),h=e.computed(()=>!0!==t.disable&&(void 0!==t.href||void 0!==t.to&&null!==t.to&&""!==t.to)),g=e.computed(()=>{const e={};return ns.forEach(o=>{e[o]=t[o]}),e}),b=e.computed(()=>!0===h.value||!0!==t.expandIconToggle),y=e.computed(()=>void 0!==t.expandedIcon&&!0===i.value?t.expandedIcon:t.expandIcon||a.iconSet.expansionItem[!0===t.denseToggle?"denseIcon":"icon"]),w=e.computed(()=>!0!==t.disable&&(!0===h.value||!0===t.expandIconToggle)),x=e.computed(()=>({expanded:!0===i.value,detailsId:t.targetUid,toggle:d,show:u,hide:c})),_=e.computed(()=>{const e=void 0!==t.toggleAriaLabel?t.toggleAriaLabel:a.lang.label[!0===i.value?"collapse":"expand"](t.label);return{role:"button","aria-expanded":!0===i.value?"true":"false","aria-controls":s.value,"aria-label":e}});function S(e){!0!==h.value&&d(e),n("click",e)}function k(e){13===e.keyCode&&C(e,!0)}function C(e,t){!0!==t&&null!==r.value&&r.value.focus(),d(e),$(e)}function q(){n("afterShow")}function M(){n("afterHide")}function T(){void 0===v&&(v=Xn()),!0===i.value&&(os[t.group]=v);const o=e.watch(i,e=>{!0===e?os[t.group]=v:os[t.group]===v&&delete os[t.group]}),n=e.watch(()=>os[t.group],(e,t)=>{t===v&&void 0!==e&&e!==v&&c()});p=(()=>{o(),n(),os[t.group]===v&&delete os[t.group],p=void 0})}function B(){const o={class:["q-focusable relative-position cursor-pointer"+`${!0===t.denseToggle&&!0===t.switchToggleSide?" items-end":""}`,t.expandIconClass],side:!0!==t.switchToggleSide,avatar:t.switchToggleSide},n=[e.h(mt,{class:"q-expansion-item__toggle-icon"+(void 0===t.expandedIcon&&!0===i.value?" q-expansion-item__toggle-icon--rotated":""),name:y.value})];return!0===w.value&&(Object.assign(o,{tabindex:0,..._.value,onClick:C,onKeyup:k}),n.unshift(e.h("div",{ref:r,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),e.h(zr,o,()=>n)}function A(){let n;return void 0!==o.header?n=[].concat(o.header(x.value)):(n=[e.h(zr,()=>[e.h(Zr,{lines:t.labelLines},()=>t.label||""),t.caption?e.h(Zr,{lines:t.captionLines,caption:!0},()=>t.caption):null])],t.icon&&n[!0===t.switchToggleSide?"push":"unshift"](e.h(zr,{side:!0===t.switchToggleSide,avatar:!0!==t.switchToggleSide},()=>e.h(mt,{name:t.icon})))),!0!==t.disable&&!0!==t.hideExpandIcon&&n[!0===t.switchToggleSide?"unshift":"push"](B()),n}function L(){const o={ref:"item",style:t.headerStyle,class:t.headerClass,dark:l.value,disable:t.disable,dense:t.dense,insetLevel:t.headerInsetLevel};return!0===b.value&&(o.clickable=!0,o.onClick=S,Object.assign(o,!0===h.value?g.value:_.value)),e.h(Vr,o,A)}function O(){return e.withDirectives(e.h("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:f.value,id:s.value},Ye(o.default)),[[e.vShow,i.value]])}function V(){const o=[L(),e.h(Gr,{duration:t.duration,onShow:q,onHide:M},O)];return!0===t.expandSeparator&&o.push(e.h(ts,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:l.value}),e.h(ts,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:l.value})),o}return e.watch(()=>t.group,e=>{void 0!==p&&p(),void 0!==e&&T()}),void 0!==t.group&&T(),e.onBeforeUnmount(()=>{void 0!==p&&p()}),()=>e.h("div",{class:m.value},[e.h("div",{class:"q-expansion-item__container relative-position"},V())])}});const ls=["top","right","bottom","left"],is={type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:e=>ls.includes(e)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]};function rs(t,o){return{formClass:e.computed(()=>`q-fab--form-${!0===t.square?"square":"rounded"}`),stacked:e.computed(()=>!1===t.externalLabel&&["top","bottom"].includes(t.labelPosition)),labelProps:e.computed(()=>{if(!0===t.externalLabel){const e=null===t.hideLabel?!1===o.value:t.hideLabel;return{action:"push",data:{class:[t.labelClass,"q-fab__label q-tooltip--style q-fab__label--external"+` q-fab__label--external-${t.labelPosition}`+(!0===e?" q-fab__label--external-hidden":"")],style:t.labelStyle}}}return{action:["left","top"].includes(t.labelPosition)?"unshift":"push",data:{class:[t.labelClass,`q-fab__label q-fab__label--internal q-fab__label--internal-${t.labelPosition}`+(!0===t.hideLabel?" q-fab__label--internal-hidden":"")],style:t.labelStyle}}})}}const ss=["up","right","down","left"],us=["left","center","right"];var cs=$e({name:"QFab",props:{...is,...Co,icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{default:null},direction:{type:String,default:"right",validator:e=>ss.includes(e)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:e=>us.includes(e)}},emits:qo,setup(t,{slots:o}){const n=e.ref(null),a=e.ref(!0===t.modelValue),l=Gn(),{proxy:{$q:i}}=e.getCurrentInstance(),{formClass:r,labelProps:s}=rs(t,a),u=e.computed(()=>!0!==t.persistent),{hide:c,toggle:d}=$o({showing:a,hideOnRouteChange:u}),v=e.computed(()=>({opened:a.value})),p=e.computed(()=>"q-fab z-fab row inline justify-center"+` q-fab--align-${t.verticalActionsAlign} ${r.value}`+(!0===a.value?" q-fab--opened":" q-fab--closed")),m=e.computed(()=>"q-fab__actions flex no-wrap inline"+` q-fab__actions--${t.direction}`+` q-fab__actions--${!0===a.value?"opened":"closed"}`),f=e.computed(()=>{const e={id:l.value,role:"menu"};return!0!==a.value&&(e["aria-hidden"]="true"),e}),h=e.computed(()=>"q-fab__icon-holder "+` q-fab__icon-holder--${!0===a.value?"opened":"closed"}`);function g(n,a){const l=o[n],r=`q-fab__${n} absolute-full`;return void 0===l?e.h(mt,{class:r,name:t[a]||i.iconSet.fab[a]}):e.h("div",{class:r},l(v.value))}function b(){const n=[];return!0!==t.hideIcon&&n.push(e.h("div",{class:h.value},[g("icon","icon"),g("active-icon","activeIcon")])),""===t.label&&void 0===o.label||n[s.value.action](e.h("div",s.value.data,void 0!==o.label?o.label(v.value):[t.label])),Ze(o.tooltip,n)}return e.provide(se,{showing:a,onChildClick(e){c(e),null!==n.value&&n.value.$el.focus()}}),()=>e.h("div",{class:p.value},[e.h(yo,{ref:n,class:r.value,...t,noWrap:!0,stack:t.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0,"aria-expanded":!0===a.value?"true":"false","aria-haspopup":"true","aria-controls":l.value,onClick:d},b),e.h("div",{class:m.value,...f.value},Ye(o.default))])}});const ds={start:"self-end",center:"self-center",end:"self-start"},vs=Object.keys(ds);var ps=$e({name:"QFabAction",props:{...is,icon:{type:String,default:""},anchor:{type:String,validator:e=>vs.includes(e)},to:[String,Object],replace:Boolean},emits:["click"],setup(t,{slots:o,emit:n}){const a=e.inject(se,()=>({showing:{value:!0},onChildClick:h})),{formClass:l,labelProps:i}=rs(t,a.showing),r=e.computed(()=>{const e=ds[t.anchor];return l.value+(void 0!==e?` ${e}`:"")}),s=e.computed(()=>!0===t.disable||!0!==a.showing.value);function u(e){a.onChildClick(e),n("click",e)}function c(){const n=[];return void 0!==o.icon?n.push(o.icon()):""!==t.icon&&n.push(e.h(mt,{name:t.icon})),""===t.label&&void 0===o.label||n[i.value.action](e.h("div",i.value.data,void 0!==o.label?o.label():[t.label])),Ze(o.default,n)}const d=e.getCurrentInstance();return Object.assign(d.proxy,{click:u}),()=>e.h(yo,{class:r.value,...t,noWrap:!0,stack:t.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:s.value,onClick:u},c)}});function ms({validate:t,resetValidation:o,requiresQForm:n}){const a=e.inject(ue,!1);if(!1!==a){const{props:n,proxy:l}=e.getCurrentInstance();Object.assign(l,{validate:t,resetValidation:o}),e.watch(()=>n.disable,e=>{!0===e?("function"===typeof o&&o(),a.unbindComponent(l)):a.bindComponent(l)}),e.onMounted(()=>{!0!==n.disable&&a.bindComponent(l)}),e.onBeforeUnmount(()=>{!0!==n.disable&&a.unbindComponent(l)})}else!0===n&&console.error("Parent QForm not found on useFormChild()!")}const fs=[!0,!1,"ondemand"],hs={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>fs.includes(e)}};function gs(o,n){const{props:a,proxy:l}=e.getCurrentInstance(),i=e.ref(!1),r=e.ref(null),s=e.ref(!1);ms({validate:g,resetValidation:h});let u,c=0;const d=e.computed(()=>void 0!==a.rules&&null!==a.rules&&0!==a.rules.length),v=e.computed(()=>!0!==a.disable&&!0===d.value&&!1===n.value),p=e.computed(()=>!0===a.error||!0===i.value),m=e.computed(()=>"string"===typeof a.errorMessage&&0!==a.errorMessage.length?a.errorMessage:r.value);function f(){"ondemand"!==a.lazyRules&&!0===v.value&&!0===s.value&&b()}function h(){c++,n.value=!1,s.value=!1,i.value=!1,r.value=null,b.cancel()}function g(e=a.modelValue){if(!0===a.disable||!1===d.value)return!0;const t=++c,o=!0!==n.value?()=>{s.value=!0}:()=>{},l=(e,t)=>{!0===e&&o(),i.value=e,r.value=t||null,n.value=!1},u=[];for(let n=0;n<a.rules.length;n++){const t=a.rules[n];let o;if("function"===typeof t?o=t(e,ql):"string"===typeof t&&void 0!==ql[t]&&(o=ql[t](e)),!1===o||"string"===typeof o)return l(!0,o),!1;!0!==o&&void 0!==o&&u.push(o)}return 0===u.length?(l(!1),!0):(n.value=!0,Promise.all(u).then(e=>{if(void 0===e||!1===Array.isArray(e)||0===e.length)return t===c&&l(!1),!0;const o=e.find(e=>!1===e||"string"===typeof e);return t===c&&l(void 0!==o,o),void 0===o},e=>{return t===c&&(console.error(e),l(!0)),!1}))}e.watch(()=>a.modelValue,()=>{s.value=!0,!0===v.value&&!1===a.lazyRules&&b()}),e.watch(()=>a.reactiveRules,t=>{!0===t?void 0===u&&(u=e.watch(()=>a.rules,f,{immediate:!0,deep:!0})):void 0!==u&&(u(),u=void 0)},{immediate:!0}),e.watch(()=>a.lazyRules,f),e.watch(o,e=>{!0===e?s.value=!0:!0===v.value&&"ondemand"!==a.lazyRules&&b()});const b=L(g,0);return e.onBeforeUnmount(()=>{void 0!==u&&u(),b.cancel()}),Object.assign(l,{resetValidation:h,validate:g}),t(l,"hasError",()=>p.value),{isDirtyModel:s,hasRules:d,hasError:p,errorMessage:m,validate:g,resetValidation:h}}function bs(e){return void 0!==e&&null!==e&&0!==(""+e).length}const ys={...bt,...hs,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},ws=["update:modelValue","clear","focus","blur","popupShow","popupHide"];function xs({requiredForAttr:t=!0,tagProp:o}={}){const{props:n,attrs:a,proxy:l,vnode:i}=e.getCurrentInstance(),r=yt(n,l.$q),s=Gn(n.for,t);return{requiredForAttr:t,tag:!0===o?e.computed(()=>n.tag):{value:"label"},isDark:r,editable:e.computed(()=>!0!==n.disable&&!0!==n.readonly),innerLoading:e.ref(!1),focused:e.ref(!1),hasPopupOpen:!1,splitAttrs:Hr(a,i),targetUid:s,rootRef:e.ref(null),targetRef:e.ref(null),controlRef:e.ref(null)}}function _s(t){const{props:o,emit:n,slots:a,attrs:l,proxy:i}=e.getCurrentInstance(),{$q:r}=i;let s=null;void 0===t.hasValue&&(t.hasValue=e.computed(()=>bs(o.modelValue))),void 0===t.emitValue&&(t.emitValue=(e=>{n("update:modelValue",e)})),void 0===t.controlEvents&&(t.controlEvents={onFocusin:M,onFocusout:T}),Object.assign(t,{clearValue:B,onControlFocusin:M,onControlFocusout:T,focus:k}),void 0===t.computedCounter&&(t.computedCounter=e.computed(()=>{if(!1!==o.counter){const e="string"===typeof o.modelValue||"number"===typeof o.modelValue?(""+o.modelValue).length:!0===Array.isArray(o.modelValue)?o.modelValue.length:0,t=void 0!==o.maxlength?o.maxlength:o.maxValues;return e+(void 0!==t?" / "+t:"")}}));const{isDirtyModel:u,hasRules:c,hasError:d,errorMessage:v,resetValidation:p}=gs(t.focused,t.innerLoading),m=void 0!==t.floatingLabel?e.computed(()=>!0===o.stackLabel||!0===t.focused.value||!0===t.floatingLabel.value):e.computed(()=>!0===o.stackLabel||!0===t.focused.value||!0===t.hasValue.value),f=e.computed(()=>!0===o.bottomSlots||void 0!==o.hint||!0===c.value||!0===o.counter||null!==o.error),h=e.computed(()=>{return!0===o.filled?"filled":!0===o.outlined?"outlined":!0===o.borderless?"borderless":o.standout?"standout":"standard"}),g=e.computed(()=>`q-field row no-wrap items-start q-field--${h.value}`+(void 0!==t.fieldClass?` ${t.fieldClass.value}`:"")+(!0===o.rounded?" q-field--rounded":"")+(!0===o.square?" q-field--square":"")+(!0===m.value?" q-field--float":"")+(!0===y.value?" q-field--labeled":"")+(!0===o.dense?" q-field--dense":"")+(!0===o.itemAligned?" q-field--item-aligned q-item-type":"")+(!0===t.isDark.value?" q-field--dark":"")+(void 0===t.getControl?" q-field--auto-height":"")+(!0===t.focused.value?" q-field--focused":"")+(!0===d.value?" q-field--error":"")+(!0===d.value||!0===t.focused.value?" q-field--highlighted":"")+(!0!==o.hideBottomSpace&&!0===f.value?" q-field--with-bottom":"")+(!0===o.disable?" q-field--disabled":!0===o.readonly?" q-field--readonly":"")),b=e.computed(()=>"q-field__control relative-position row no-wrap"+(void 0!==o.bgColor?` bg-${o.bgColor}`:"")+(!0===d.value?" text-negative":"string"===typeof o.standout&&0!==o.standout.length&&!0===t.focused.value?` ${o.standout}`:void 0!==o.color?` text-${o.color}`:"")),y=e.computed(()=>!0===o.labelSlot||void 0!==o.label),w=e.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(void 0!==o.labelColor&&!0!==d.value?` text-${o.labelColor}`:"")),x=e.computed(()=>({id:t.targetUid.value,editable:t.editable.value,focused:t.focused.value,floatingLabel:m.value,modelValue:o.modelValue,emitValue:t.emitValue})),_=e.computed(()=>{const e={};return t.targetUid.value&&(e.for=t.targetUid.value),!0===o.disable&&(e["aria-disabled"]="true"),e});function S(){const e=document.activeElement;let o=void 0!==t.targetRef&&t.targetRef.value;!o||null!==e&&e.id===t.targetUid.value||(!0===o.hasAttribute("tabindex")||(o=o.querySelector("[tabindex]")),o&&o!==e&&o.focus({preventScroll:!0}))}function k(){Oo(S)}function C(){Vo(S);const e=document.activeElement;null!==e&&t.rootRef.value.contains(e)&&e.blur()}function M(e){null!==s&&(clearTimeout(s),s=null),!0===t.editable.value&&!1===t.focused.value&&(t.focused.value=!0,n("focus",e))}function T(e,o){null!==s&&clearTimeout(s),s=setTimeout(()=>{s=null,(!0!==document.hasFocus()||!0!==t.hasPopupOpen&&void 0!==t.controlRef&&null!==t.controlRef.value&&!1===t.controlRef.value.contains(document.activeElement))&&(!0===t.focused.value&&(t.focused.value=!1,n("blur",e)),void 0!==o&&o())})}function B(a){if($(a),!0!==r.platform.is.mobile){const e=void 0!==t.targetRef&&t.targetRef.value||t.rootRef.value;e.focus()}else!0===t.rootRef.value.contains(document.activeElement)&&document.activeElement.blur();"file"===o.type&&(t.inputRef.value.value=null),n("update:modelValue",null),n("clear",o.modelValue),e.nextTick(()=>{const e=u.value;p(),u.value=e})}function A(){const n=[];return void 0!==a.prepend&&n.push(e.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:q},a.prepend())),n.push(e.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},L())),!0===d.value&&!1===o.noErrorIcon&&n.push(V("error",[e.h(mt,{name:r.iconSet.field.error,color:"negative"})])),!0===o.loading||!0===t.innerLoading.value?n.push(V("inner-loading-append",void 0!==a.loading?a.loading():[e.h(Ht,{color:o.color})])):!0===o.clearable&&!0===t.hasValue.value&&!0===t.editable.value&&n.push(V("inner-clearable-append",[e.h(mt,{class:"q-field__focusable-action",tag:"button",name:o.clearIcon||r.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:B})])),void 0!==a.append&&n.push(e.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:q},a.append())),void 0!==t.getInnerAppend&&n.push(V("inner-append",t.getInnerAppend())),void 0!==t.getControlChild&&n.push(t.getControlChild()),n}function L(){const n=[];return void 0!==o.prefix&&null!==o.prefix&&n.push(e.h("div",{class:"q-field__prefix no-pointer-events row items-center"},o.prefix)),void 0!==t.getShadowControl&&!0===t.hasShadow.value&&n.push(t.getShadowControl()),void 0!==t.getControl?n.push(t.getControl()):void 0!==a.rawControl?n.push(a.rawControl()):void 0!==a.control&&n.push(e.h("div",{ref:t.targetRef,class:"q-field__native row",tabindex:-1,...t.splitAttrs.attributes.value,"data-autofocus":!0===o.autofocus||void 0},a.control(x.value))),!0===y.value&&n.push(e.h("div",{class:w.value},Ye(a.label,o.label))),void 0!==o.suffix&&null!==o.suffix&&n.push(e.h("div",{class:"q-field__suffix no-pointer-events row items-center"},o.suffix)),n.concat(Ye(a.default))}function O(){let n,l;!0===d.value?null!==v.value?(n=[e.h("div",{role:"alert"},v.value)],l=`q--slot-error-${v.value}`):(n=Ye(a.error),l="q--slot-error"):!0===o.hideHint&&!0!==t.focused.value||(void 0!==o.hint?(n=[e.h("div",o.hint)],l=`q--slot-hint-${o.hint}`):(n=Ye(a.hint),l="q--slot-hint"));const i=!0===o.counter||void 0!==a.counter;if(!0===o.hideBottomSpace&&!1===i&&void 0===n)return;const r=e.h("div",{key:l,class:"q-field__messages col"},n);return e.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(!0!==o.hideBottomSpace?"animated":"stale"),onClick:q},[!0===o.hideBottomSpace?r:e.h(e.Transition,{name:"q-transition--field-message"},()=>r),!0===i?e.h("div",{class:"q-field__counter"},void 0!==a.counter?a.counter():t.computedCounter.value):null])}function V(t,o){return null===o?null:e.h("div",{key:t,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},o)}e.watch(()=>o.for,e=>{t.targetUid.value=Zn(e,t.requiredForAttr)});let z=!1;return e.onDeactivated(()=>{z=!0}),e.onActivated(()=>{!0===z&&!0===o.autofocus&&i.focus()}),!0===o.autofocus&&e.onMounted(()=>{i.focus()}),e.onBeforeUnmount(()=>{null!==s&&clearTimeout(s)}),Object.assign(i,{focus:k,blur:C}),function(){const n=void 0===t.getControl&&void 0===a.control?{...t.splitAttrs.attributes.value,"data-autofocus":!0===o.autofocus||void 0,..._.value}:_.value;return e.h(t.tag.value,{ref:t.rootRef,class:[g.value,l.class],style:l.style,...n},[void 0!==a.before?e.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:q},a.before()):null,e.h("div",{class:"q-field__inner relative-position col self-stretch"},[e.h("div",{ref:t.controlRef,class:b.value,tabindex:-1,...t.controlEvents},A()),!0===f.value?O():null]),void 0!==a.after?e.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:q},a.after()):null])}}var Ss=$e({name:"QField",inheritAttrs:!1,props:{...ys,tag:{type:String,default:"label"}},emits:ws,setup(){return _s(xs({requiredForAttr:!1,tagProp:!0}))}});function ks(e,t,o,n){const a=[];return e.forEach(e=>{!0===n(e)?a.push(e):t.push({failedPropValidation:o,file:e})}),a}function Cs(e){e&&e.dataTransfer&&(e.dataTransfer.dropEffect="copy"),$(e)}const qs={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},$s=["rejected"];function Ms({editable:t,dnd:o,getFileInput:n,addFilesToQueue:a}){const{props:l,emit:i,proxy:r}=e.getCurrentInstance(),s=e.ref(null),u=e.computed(()=>void 0!==l.accept?l.accept.split(",").map(e=>{return e=e.trim(),"*"===e?"*/":(e.endsWith("/*")&&(e=e.slice(0,e.length-1)),e.toUpperCase())}):null),c=e.computed(()=>parseInt(l.maxFiles,10)),d=e.computed(()=>parseInt(l.maxTotalSize,10));function p(e){if(t.value)if(e!==Object(e)&&(e={target:null}),null!==e.target&&!0===e.target.matches('input[type="file"]'))0===e.clientX&&0===e.clientY&&C(e);else{const t=n();t&&t!==e.target&&t.click(e)}}function m(e){t.value&&e&&a(null,e)}function f(e,t,o,n){let a=Array.from(t||e.target.files);const r=[],s=()=>{0!==r.length&&i("rejected",r)};if(void 0!==l.accept&&-1===u.value.indexOf("*/")&&(a=ks(a,r,"accept",e=>{return u.value.some(t=>e.type.toUpperCase().startsWith(t)||e.name.toUpperCase().endsWith(t))}),0===a.length))return s();if(void 0!==l.maxFileSize){const e=parseInt(l.maxFileSize,10);if(a=ks(a,r,"max-file-size",t=>{return t.size<=e}),0===a.length)return s()}if(!0!==l.multiple&&0!==a.length&&(a=[a[0]]),a.forEach(e=>{e.__key=e.webkitRelativePath+e.lastModified+e.name+e.size}),!0===n){const e=o.map(e=>e.__key);a=ks(a,r,"duplicate",t=>{return!1===e.includes(t.__key)})}if(0===a.length)return s();if(void 0!==l.maxTotalSize){let e=!0===n?o.reduce((e,t)=>e+t.size,0):0;if(a=ks(a,r,"max-total-size",t=>{return e+=t.size,e<=d.value}),0===a.length)return s()}if("function"===typeof l.filter){const e=l.filter(a);a=ks(a,r,"filter",t=>{return e.includes(t)})}if(void 0!==l.maxFiles){let e=!0===n?o.length:0;if(a=ks(a,r,"max-files",()=>{return e++,e<=c.value}),0===a.length)return s()}return s(),0!==a.length?a:void 0}function h(e){Cs(e),!0!==o.value&&(o.value=!0)}function g(e){$(e);const t=null!==e.relatedTarget||!0!==v.is.safari?e.relatedTarget!==s.value:!1===document.elementsFromPoint(e.clientX,e.clientY).includes(s.value);!0===t&&(o.value=!1)}function b(e){Cs(e);const t=e.dataTransfer.files;0!==t.length&&a(null,t),o.value=!1}function y(t){if(!0===o.value)return e.h("div",{ref:s,class:`q-${t}__dnd absolute-full`,onDragenter:Cs,onDragover:Cs,onDragleave:g,onDrop:b})}return Object.assign(r,{pickFiles:p,addFiles:m}),{pickFiles:p,addFiles:m,onDragover:h,onDragleave:g,processFiles:f,getDndNode:y,maxFilesNumber:c,maxTotalSizeNumber:d}}function Ts(t,o){function n(){const e=t.modelValue;try{const t="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(e)===e&&("length"in e?Array.from(e):[e]).forEach(e=>{t.items.add(e)}),{files:t.files}}catch(e){return{files:void 0}}}return!0===o?e.computed(()=>{if("file"===t.type)return n()}):e.computed(n)}var Bs=$e({name:"QFile",inheritAttrs:!1,props:{...ys,...oa,...qs,modelValue:[File,FileList,Array],append:Boolean,useChips:Boolean,displayValue:[String,Number],tabindex:{type:[String,Number],default:0},counterLabel:Function,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...ws,...$s],setup(o,{slots:n,emit:a,attrs:l}){const{proxy:i}=e.getCurrentInstance(),r=xs(),s=e.ref(null),u=e.ref(!1),c=la(o),{pickFiles:d,onDragover:v,onDragleave:p,processFiles:m,getDndNode:f}=Ms({editable:r.editable,dnd:u,getFileInput:A,addFilesToQueue:L}),h=Ts(o),g=e.computed(()=>Object(o.modelValue)===o.modelValue?"length"in o.modelValue?Array.from(o.modelValue):[o.modelValue]:[]),b=e.computed(()=>bs(g.value)),y=e.computed(()=>g.value.map(e=>e.name).join(", ")),w=e.computed(()=>Be(g.value.reduce((e,t)=>e+t.size,0))),x=e.computed(()=>({totalSize:w.value,filesNumber:g.value.length,maxFiles:o.maxFiles})),_=e.computed(()=>({tabindex:-1,type:"file",title:"",accept:o.accept,capture:o.capture,name:c.value,...l,id:r.targetUid.value,disabled:!0!==r.editable.value})),S=e.computed(()=>"q-file q-field--auto-height"+(!0===u.value?" q-file--dnd":"")),k=e.computed(()=>!0===o.multiple&&!0===o.append);function C(e){const t=g.value.slice();t.splice(e,1),M(t)}function $(e){const t=g.value.indexOf(e);t>-1&&C(t)}function M(e){a("update:modelValue",!0===o.multiple?e:e[0])}function T(e){13===e.keyCode&&q(e)}function B(e){13!==e.keyCode&&32!==e.keyCode||d(e)}function A(){return s.value}function L(e,t){const n=m(e,t,g.value,k.value),a=A();void 0!==a&&null!==a&&(a.value=""),void 0!==n&&((!0===o.multiple?o.modelValue&&n.every(e=>g.value.includes(e)):o.modelValue===n[0])||M(!0===k.value?g.value.concat(n):n))}function O(){return[e.h("input",{class:[o.inputClass,"q-file__filler"],style:o.inputStyle})]}function V(){if(void 0!==n.file)return 0===g.value.length?O():g.value.map((e,t)=>n.file({index:t,file:e,ref:this}));if(void 0!==n.selected)return 0===g.value.length?O():n.selected({files:g.value,ref:this});if(!0===o.useChips)return 0===g.value.length?O():g.value.map((t,n)=>e.h(Na,{key:"file-"+n,removable:r.editable.value,dense:!0,textColor:o.color,tabindex:o.tabindex,onRemove:()=>{C(n)}},()=>e.h("span",{class:"ellipsis",textContent:t.name})));const t=void 0!==o.displayValue?o.displayValue:y.value;return 0!==t.length?[e.h("div",{class:o.inputClass,style:o.inputStyle,textContent:t})]:O()}function z(){const t={ref:s,..._.value,...h.value,class:"q-field__input fit absolute-full cursor-pointer",onChange:L};return!0===o.multiple&&(t.multiple=!0),e.h("input",t)}return Object.assign(r,{fieldClass:S,emitValue:M,hasValue:b,inputRef:s,innerValue:g,floatingLabel:e.computed(()=>!0===b.value||bs(o.displayValue)),computedCounter:e.computed(()=>{if(void 0!==o.counterLabel)return o.counterLabel(x.value);const e=o.maxFiles;return`${g.value.length}${void 0!==e?" / "+e:""} (${w.value})`}),getControlChild:()=>f("file"),getControl:()=>{const t={ref:r.targetRef,class:"q-field__native row items-center cursor-pointer",tabindex:o.tabindex};return!0===r.editable.value&&Object.assign(t,{onDragover:v,onDragleave:p,onKeydown:T,onKeyup:B}),e.h("div",t,[z()].concat(V()))}}),Object.assign(i,{removeAtIndex:C,removeFile:$,getNativeElement:()=>s.value}),t(i,"nativeEl",()=>s.value),_s(r)}}),As=$e({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(t,{slots:o,emit:a}){const{proxy:{$q:l}}=e.getCurrentInstance(),i=e.inject(ie,ve);if(i===ve)return console.error("QFooter needs to be child of QLayout"),ve;const r=e.ref(parseInt(t.heightHint,10)),s=e.ref(!0),u=e.ref(!0===n.value||!0===i.isContainer.value?0:window.innerHeight),c=e.computed(()=>!0===t.reveal||i.view.value.indexOf("F")>-1||l.platform.is.ios&&!0===i.isContainer.value),d=e.computed(()=>!0===i.isContainer.value?i.containerHeight.value:u.value),v=e.computed(()=>{if(!0!==t.modelValue)return 0;if(!0===c.value)return!0===s.value?r.value:0;const e=i.scroll.value.position+d.value+r.value-i.height.value;return e>0?e:0}),p=e.computed(()=>!0!==t.modelValue||!0===c.value&&!0!==s.value),m=e.computed(()=>!0===t.modelValue&&!0===p.value&&!0===t.reveal),f=e.computed(()=>"q-footer q-layout__section--marginal "+(!0===c.value?"fixed":"absolute")+"-bottom"+(!0===t.bordered?" q-footer--bordered":"")+(!0===p.value?" q-footer--hidden":"")+(!0!==t.modelValue?" q-layout--prevent-focus"+(!0!==c.value?" hidden":""):"")),h=e.computed(()=>{const e=i.rows.value.bottom,t={};return"l"===e[0]&&!0===i.left.space&&(t[!0===l.lang.rtl?"right":"left"]=`${i.left.size}px`),"r"===e[2]&&!0===i.right.space&&(t[!0===l.lang.rtl?"left":"right"]=`${i.right.size}px`),t});function g(e,t){i.update("footer",e,t)}function b(e,t){e.value!==t&&(e.value=t)}function y({height:e}){b(r,e),g("size",e)}function w(){if(!0!==t.reveal)return;const{direction:e,position:o,inflectionPoint:n}=i.scroll.value;b(s,"up"===e||o-n<100||i.height.value-d.value-o-r.value<300)}function x(e){!0===m.value&&b(s,!0),a("focusin",e)}e.watch(()=>t.modelValue,e=>{g("space",e),b(s,!0),i.animate()}),e.watch(v,e=>{g("offset",e)}),e.watch(()=>t.reveal,e=>{!1===e&&b(s,t.modelValue)}),e.watch(s,e=>{i.animate(),a("reveal",e)}),e.watch([r,i.scroll,i.height],w),e.watch(()=>l.screen.height,e=>{!0!==i.isContainer.value&&b(u,e)});const _={};return i.instances.footer=_,!0===t.modelValue&&g("size",r.value),g("space",t.modelValue),g("offset",v.value),e.onBeforeUnmount(()=>{i.instances.footer===_&&(i.instances.footer=void 0,g("size",0),g("offset",0),g("space",!1))}),()=>{const n=Ze(o.default,[e.h(ul,{debounce:0,onResize:y})]);return!0===t.elevated&&n.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),e.h("footer",{class:f.value,style:h.value,onFocusin:x},n)}}}),Ls=$e({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),l=e.ref(null);let i=0;const r=[];function s(e){const o="boolean"===typeof e?e:!0!==t.noErrorFocus,a=++i,l=(e,t)=>{n("validation"+(!0===e?"Success":"Error"),t)},s=e=>{const t=e.validate();return"function"===typeof t.then?t.then(t=>({valid:t,comp:e}),t=>({valid:!1,comp:e,err:t})):Promise.resolve({valid:t,comp:e})},u=!0===t.greedy?Promise.all(r.map(s)).then(e=>e.filter(e=>!0!==e.valid)):r.reduce((e,t)=>e.then(()=>{return s(t).then(e=>{if(!1===e.valid)return Promise.reject(e)})}),Promise.resolve()).catch(e=>[e]);return u.then(e=>{if(void 0===e||0===e.length)return a===i&&l(!0),!0;if(a===i){const{comp:t,err:n}=e[0];if(void 0!==n&&console.error(n),l(!1,t),!0===o){const t=e.find(({comp:e})=>"function"===typeof e.focus&&!1===Bt(e.$));void 0!==t&&t.comp.focus()}}return!1})}function u(){i++,r.forEach(e=>{"function"===typeof e.resetValidation&&e.resetValidation()})}function c(e){void 0!==e&&$(e);const o=i+1;s().then(a=>{o===i&&!0===a&&(void 0!==t.onSubmit?n("submit",e):void 0!==e&&void 0!==e.target&&"function"===typeof e.target.submit&&e.target.submit())})}function d(o){void 0!==o&&$(o),n("reset"),e.nextTick(()=>{u(),!0===t.autofocus&&!0!==t.noResetFocus&&v()})}function v(){Oo(()=>{if(null===l.value)return;const e=l.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||l.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||l.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(l.value.querySelectorAll("[tabindex]"),e=>e.tabIndex>-1);null!==e&&void 0!==e&&e.focus({preventScroll:!0})})}e.provide(ue,{bindComponent(e){r.push(e)},unbindComponent(e){const t=r.indexOf(e);t>-1&&r.splice(t,1)}});let p=!1;return e.onDeactivated(()=>{p=!0}),e.onActivated(()=>{!0===p&&!0===t.autofocus&&v()}),e.onMounted(()=>{!0===t.autofocus&&v()}),Object.assign(a.proxy,{validate:s,resetValidation:u,submit:c,reset:d,focus:v,getValidationComponents:()=>r}),()=>e.h("form",{class:"q-form",ref:l,onSubmit:c,onReset:d},Ye(o.default))}}),Os={inject:{[ue]:{default:h}},watch:{disable(e){const t=this.$.provides[ue];void 0!==t&&(!0===e?(this.resetValidation(),t.unbindComponent(this)):t.bindComponent(this))}},methods:{validate(){},resetValidation(){}},mounted(){const e=this.$.provides[ue];void 0!==e&&!0!==this.disable&&e.bindComponent(this)},beforeUnmount(){const e=this.$.provides[ue];void 0!==e&&!0!==this.disable&&e.unbindComponent(this)}},Vs=$e({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=e.inject(ie,ve);if(l===ve)return console.error("QHeader needs to be child of QLayout"),ve;const i=e.ref(parseInt(t.heightHint,10)),r=e.ref(!0),s=e.computed(()=>!0===t.reveal||l.view.value.indexOf("H")>-1||a.platform.is.ios&&!0===l.isContainer.value),u=e.computed(()=>{if(!0!==t.modelValue)return 0;if(!0===s.value)return!0===r.value?i.value:0;const e=i.value-l.scroll.value.position;return e>0?e:0}),c=e.computed(()=>!0!==t.modelValue||!0===s.value&&!0!==r.value),d=e.computed(()=>!0===t.modelValue&&!0===c.value&&!0===t.reveal),v=e.computed(()=>"q-header q-layout__section--marginal "+(!0===s.value?"fixed":"absolute")+"-top"+(!0===t.bordered?" q-header--bordered":"")+(!0===c.value?" q-header--hidden":"")+(!0!==t.modelValue?" q-layout--prevent-focus":"")),p=e.computed(()=>{const e=l.rows.value.top,t={};return"l"===e[0]&&!0===l.left.space&&(t[!0===a.lang.rtl?"right":"left"]=`${l.left.size}px`),"r"===e[2]&&!0===l.right.space&&(t[!0===a.lang.rtl?"left":"right"]=`${l.right.size}px`),t});function m(e,t){l.update("header",e,t)}function f(e,t){e.value!==t&&(e.value=t)}function h({height:e}){f(i,e),m("size",e)}function g(e){!0===d.value&&f(r,!0),n("focusin",e)}e.watch(()=>t.modelValue,e=>{m("space",e),f(r,!0),l.animate()}),e.watch(u,e=>{m("offset",e)}),e.watch(()=>t.reveal,e=>{!1===e&&f(r,t.modelValue)}),e.watch(r,e=>{l.animate(),n("reveal",e)}),e.watch(l.scroll,e=>{!0===t.reveal&&f(r,"up"===e.direction||e.position<=t.revealOffset||e.position-e.inflectionPoint<100)});const b={};return l.instances.header=b,!0===t.modelValue&&m("size",i.value),m("space",t.modelValue),m("offset",u.value),e.onBeforeUnmount(()=>{l.instances.header===b&&(l.instances.header=void 0,m("size",0),m("offset",0),m("space",!1))}),()=>{const n=Xe(o.default,[]);return!0===t.elevated&&n.push(e.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),n.push(e.h(ul,{debounce:0,onResize:h})),e.h("header",{class:v.value,style:p.value,onFocusin:g},n)}}});const zs={ratio:[String,Number]};function Es(t,o){return e.computed(()=>{const e=Number(t.ratio||(void 0!==o?o.value:void 0));return!0!==isNaN(e)&&e>0?{paddingBottom:`${100/e}%`}:null})}const Ps=16/9;var Fs=$e({name:"QImg",props:{...zs,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:Ps},placeholderSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(t,{slots:o,emit:n}){const a=e.ref(t.initialRatio),l=Es(t,a);let i=null,r=!1;const s=[e.ref(null),e.ref(g())],u=e.ref(0),c=e.ref(!1),d=e.ref(!1),v=e.computed(()=>`q-img q-img--${!0===t.noNativeMenu?"no-":""}menu`),p=e.computed(()=>({width:t.width,height:t.height})),m=e.computed(()=>`q-img__image ${void 0!==t.imgClass?t.imgClass+" ":""}`+`q-img__image--with${!0===t.noTransition?"out":""}-transition`),f=e.computed(()=>({...t.imgStyle,objectFit:t.fit,objectPosition:t.position}));function h(){return t.src||t.srcset||t.sizes?{src:t.src,srcset:t.srcset,sizes:t.sizes}:null}function g(){return void 0!==t.placeholderSrc?{src:t.placeholderSrc}:null}function b(e){null!==i&&(clearTimeout(i),i=null),d.value=!1,null===e?(c.value=!1,s[1^u.value].value=g()):c.value=!0,s[u.value].value=e}function y({target:e}){!0!==r&&(null!==i&&(clearTimeout(i),i=null),a.value=0===e.naturalHeight?.5:e.naturalWidth/e.naturalHeight,w(e,1))}function w(e,t){!0!==r&&1e3!==t&&(!0===e.complete?x(e):i=setTimeout(()=>{i=null,w(e,t+1)},50))}function x(e){!0!==r&&(u.value=1^u.value,s[u.value].value=null,c.value=!1,d.value=!1,n("load",e.currentSrc||e.src))}function _(e){null!==i&&(clearTimeout(i),i=null),c.value=!1,d.value=!0,s[u.value].value=null,s[1^u.value].value=g(),n("error",e)}function S(o){const n=s[o].value,a={key:"img_"+o,class:m.value,style:f.value,alt:t.alt,crossorigin:t.crossorigin,decoding:t.decoding,referrerpolicy:t.referrerpolicy,height:t.height,width:t.width,loading:t.loading,fetchpriority:t.fetchpriority,"aria-hidden":"true",draggable:t.draggable,...n};return u.value===o?(a.class+=" q-img__image--waiting",Object.assign(a,{onLoad:y,onError:_})):a.class+=" q-img__image--loaded",e.h("div",{class:"q-img__container absolute-full",key:"img"+o},e.h("img",a))}function k(){return!0!==c.value?e.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},Ye(o[!0===d.value?"error":"default"])):e.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},void 0!==o.loading?o.loading():!0===t.noSpinner?void 0:[e.h(Ht,{color:t.spinnerColor,size:t.spinnerSize})])}return e.watch(()=>h(),b),b(h()),e.onBeforeUnmount(()=>{r=!0,null!==i&&(clearTimeout(i),i=null)}),()=>{const o=[];return null!==l.value&&o.push(e.h("div",{key:"filler",style:l.value})),!0!==d.value&&(null!==s[0].value&&o.push(S(0)),null!==s[1].value&&o.push(S(1))),o.push(e.h(e.Transition,{name:"q-transition--fade"},k)),e.h("div",{class:v.value,style:p.value,role:"img","aria-label":t.alt},o)}}});const{passive:Is}=f;var Rs=$e({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:{default:void 0},initialIndex:Number,disable:Boolean,reverse:Boolean},emits:["load"],setup(t,{slots:o,emit:n}){const a=e.ref(!1),l=e.ref(!0),i=e.ref(null),r=e.ref(null);let s,u,c=t.initialIndex||0;const d=e.computed(()=>"q-infinite-scroll__loading"+(!0===a.value?"":" invisible"));function v(){if(!0===t.disable||!0===a.value||!1===l.value)return;const e=en(s),o=on(s),n=Wt(s);!1===t.reverse?Math.round(o+n+t.offset)>=Math.round(e)&&p():Math.round(o)<=t.offset&&p()}function p(){if(!0===t.disable||!0===a.value||!1===l.value)return;c++,a.value=!0;const o=en(s);n("load",c,n=>{!0===l.value&&(a.value=!1,e.nextTick(()=>{if(!0===t.reverse){const e=en(s),t=on(s),n=e-o;un(s,t+n)}!0===n?h():i.value&&i.value.closest("body")&&u()}))})}function m(){c=0}function f(){!1===l.value&&(l.value=!0,s.addEventListener("scroll",u,Is)),v()}function h(){!0===l.value&&(l.value=!1,a.value=!1,s.removeEventListener("scroll",u,Is),void 0!==u&&void 0!==u.cancel&&u.cancel())}function g(){if(s&&!0===l.value&&s.removeEventListener("scroll",u,Is),s=Jo(i.value,t.scrollTarget),!0===l.value){if(s.addEventListener("scroll",u,Is),!0===t.reverse){const e=en(s),t=Wt(s);un(s,e-t)}v()}}function b(e){c=e}function y(e){e=parseInt(e,10);const t=u;u=e<=0?v:L(v,!0===isNaN(e)?100:e),s&&!0===l.value&&(void 0!==t&&s.removeEventListener("scroll",t,Is),s.addEventListener("scroll",u,Is))}function w(t){if(!0===x.value){if(null===r.value)return void(!0!==t&&e.nextTick(()=>{w(!0)}));const o=`${!0===a.value?"un":""}pauseAnimations`;Array.from(r.value.getElementsByTagName("svg")).forEach(e=>{e[o]()})}}const x=e.computed(()=>!0!==t.disable&&!0===l.value);e.watch([a,x],()=>{w()}),e.watch(()=>t.disable,e=>{!0===e?h():f()}),e.watch(()=>t.reverse,()=>{!1===a.value&&!0===l.value&&v()}),e.watch(()=>t.scrollTarget,g),e.watch(()=>t.debounce,y);let _=!1;e.onActivated(()=>{!1!==_&&s&&un(s,_)}),e.onDeactivated(()=>{_=!!s&&on(s)}),e.onBeforeUnmount(()=>{!0===l.value&&s.removeEventListener("scroll",u,Is)}),e.onMounted(()=>{y(t.debounce),g(),!1===a.value&&w()});const S=e.getCurrentInstance();return Object.assign(S.proxy,{poll:()=>{void 0!==u&&u()},trigger:p,stop:h,reset:m,resume:f,setIndex:b,updateScrollTarget:g}),()=>{const n=Xe(o.default,[]);return!0===x.value&&n[!1===t.reverse?"push":"unshift"](e.h("div",{ref:r,class:d.value},Ye(o.loading))),e.h("div",{class:"q-infinite-scroll",ref:i},n)}}}),Ns=$e({name:"QInnerLoading",props:{...bt,...Ko,showing:Boolean,color:String,size:{type:[String,Number],default:42},label:String,labelClass:String,labelStyle:[String,Array,Object]},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=yt(t,n.proxy.$q),{transitionProps:l,transitionStyle:i}=Yo(t),r=e.computed(()=>"q-inner-loading absolute-full column flex-center"+(!0===a.value?" q-inner-loading--dark":"")),s=e.computed(()=>"q-inner-loading__label"+(void 0!==t.labelClass?` ${t.labelClass}`:""));function u(){const o=[e.h(Ht,{size:t.size,color:t.color})];return void 0!==t.label&&o.push(e.h("div",{class:s.value,style:t.labelStyle},[t.label])),o}function c(){return!0===t.showing?e.h("div",{class:r.value,style:i.value},void 0!==o.default?o.default():u()):null}return()=>e.h(e.Transition,l.value,c)}});const Ds={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},js={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},Hs=Object.keys(js);Hs.forEach(e=>{js[e].regex=new RegExp(js[e].pattern)});const Qs=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Hs.join("")+"])|(.)","g"),Us=/[.*+?^${}()|[\]\\]/g,Ws=String.fromCharCode(1),Ks={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Ys(t,o,n,a){let l,i,r,s,u,c;const d=e.ref(null),v=e.ref(m());function p(){return!0===t.autogrow||["textarea","text","search","url","tel","password"].includes(t.type)}function m(){if(h(),!0===d.value){const e=_(k(t.modelValue));return!1!==t.fillMask?C(e):e}return t.modelValue}function f(e){if(e<l.length)return l.slice(-e);let t="",o=l;const n=o.indexOf(Ws);if(n>-1){for(let n=e-o.length;n>0;n--)t+=Ws;o=o.slice(0,n)+t+o.slice(n)}return o}function h(){if(d.value=void 0!==t.mask&&0!==t.mask.length&&p(),!1===d.value)return s=void 0,l="",void(i="");const e=void 0===Ds[t.mask]?t.mask:Ds[t.mask],o="string"===typeof t.fillMask&&0!==t.fillMask.length?t.fillMask.slice(0,1):"_",n=o.replace(Us,"\\$&"),a=[],u=[],c=[];let v=!0===t.reverseFillMask,m="",f="";e.replace(Qs,(e,t,o,n,l)=>{if(void 0!==n){const e=js[n];c.push(e),f=e.negate,!0===v&&(u.push("(?:"+f+"+)?("+e.pattern+"+)?(?:"+f+"+)?("+e.pattern+"+)?"),v=!1),u.push("(?:"+f+"+)?("+e.pattern+")?")}else if(void 0!==o)m="\\"+("\\"===o?"":o),c.push(o),a.push("([^"+m+"]+)?"+m+"?");else{const e=void 0!==t?t:l;m="\\"===e?"\\\\\\\\":e.replace(Us,"\\\\$&"),c.push(e),a.push("([^"+m+"]+)?"+m+"?")}});const h=new RegExp("^"+a.join("")+"("+(""===m?".":"[^"+m+"]")+"+)?"+(""===m?"":"["+m+"]*")+"$"),g=u.length-1,b=u.map((e,o)=>{return 0===o&&!0===t.reverseFillMask?new RegExp("^"+n+"*"+e):o===g?new RegExp("^"+e+"("+(""===f?".":f)+"+)?"+(!0===t.reverseFillMask?"$":n+"*")):new RegExp("^"+e)});r=c,s=(e=>{const o=h.exec(!0===t.reverseFillMask?e:e.slice(0,c.length+1));null!==o&&(e=o.slice(1).join(""));const n=[],a=b.length;for(let t=0,l=e;t<a;t++){const e=b[t].exec(l);if(null===e)break;l=l.slice(e.shift().length),n.push(...e)}return 0!==n.length?n.join(""):e}),l=c.map(e=>"string"===typeof e?e:Ws).join(""),i=l.split(Ws).join(o)}function g(o,r,s){const c=a.value,d=c.selectionEnd,p=c.value.length-d,m=k(o);!0===r&&h();const f=_(m),g=!1!==t.fillMask?C(f):f,b=v.value!==g;c.value!==g&&(c.value=g),!0===b&&(v.value=g),document.activeElement===c&&e.nextTick(()=>{if(g!==i)if("insertFromPaste"!==s||!0===t.reverseFillMask)if(["deleteContentBackward","deleteContentForward"].indexOf(s)>-1){const e=!0===t.reverseFillMask?0===d?g.length>f.length?1:0:Math.max(0,g.length-(g===i?0:Math.min(f.length,p)+1))+1:d;c.setSelectionRange(e,e,"forward")}else if(!0===t.reverseFillMask)if(!0===b){const e=Math.max(0,g.length-(g===i?0:Math.min(f.length,p+1)));1===e&&1===d?c.setSelectionRange(e,e,"forward"):y.rightReverse(c,e)}else{const e=g.length-p;c.setSelectionRange(e,e,"backward")}else if(!0===b){const e=Math.max(0,l.indexOf(Ws),Math.min(f.length,d)-1);y.right(c,e)}else{const e=d-1;y.right(c,e)}else{const e=c.selectionEnd;let t=d-1;for(let o=u;o<=t&&o<e;o++)l[o]!==Ws&&t++;y.right(c,t)}else{const e=!0===t.reverseFillMask?i.length:0;c.setSelectionRange(e,e,"forward")}});const w=!0===t.unmaskedValue?k(g):g;String(t.modelValue)===w||null===t.modelValue&&""===w||n(w,!0)}function b(e,t,o){const n=_(k(e.value));t=Math.max(0,l.indexOf(Ws),Math.min(n.length,t)),u=t,e.setSelectionRange(t,o,"forward")}e.watch(()=>t.type+t.autogrow,h),e.watch(()=>t.mask,e=>{if(void 0!==e)g(v.value,!0);else{const e=k(v.value);h(),t.modelValue!==e&&o("update:modelValue",e)}}),e.watch(()=>t.fillMask+t.reverseFillMask,()=>{!0===d.value&&g(v.value,!0)}),e.watch(()=>t.unmaskedValue,()=>{!0===d.value&&g(v.value)});const y={left(e,t){const o=-1===l.slice(t-1).indexOf(Ws);let n=Math.max(0,t-1);for(;n>=0;n--)if(l[n]===Ws){t=n,!0===o&&t++;break}if(n<0&&void 0!==l[t]&&l[t]!==Ws)return y.right(e,0);t>=0&&e.setSelectionRange(t,t,"backward")},right(e,t){const o=e.value.length;let n=Math.min(o,t+1);for(;n<=o;n++){if(l[n]===Ws){t=n;break}l[n-1]===Ws&&(t=n)}if(n>o&&void 0!==l[t-1]&&l[t-1]!==Ws)return y.left(e,o);e.setSelectionRange(t,t,"forward")},leftReverse(e,t){const o=f(e.value.length);let n=Math.max(0,t-1);for(;n>=0;n--){if(o[n-1]===Ws){t=n;break}if(o[n]===Ws&&(t=n,0===n))break}if(n<0&&void 0!==o[t]&&o[t]!==Ws)return y.rightReverse(e,0);t>=0&&e.setSelectionRange(t,t,"backward")},rightReverse(e,t){const o=e.value.length,n=f(o),a=-1===n.slice(0,t+1).indexOf(Ws);let l=Math.min(o,t+1);for(;l<=o;l++)if(n[l-1]===Ws){t=l,t>0&&!0===a&&t--;break}if(l>o&&void 0!==n[t-1]&&n[t-1]!==Ws)return y.leftReverse(e,o);e.setSelectionRange(t,t,"forward")}};function w(e){o("click",e),c=void 0}function x(e){if(o("keydown",e),!0===K(e)||!0===e.altKey)return;const n=a.value,l=n.selectionStart,i=n.selectionEnd;if(e.shiftKey||(c=void 0),37===e.keyCode||39===e.keyCode){e.shiftKey&&void 0===c&&(c="forward"===n.selectionDirection?l:i);const o=y[(39===e.keyCode?"right":"left")+(!0===t.reverseFillMask?"Reverse":"")];if(e.preventDefault(),o(n,c===l?i:l),e.shiftKey){const e=n.selectionStart;n.setSelectionRange(Math.min(c,e),Math.max(c,e),"forward")}}else 8===e.keyCode&&!0!==t.reverseFillMask&&l===i?(y.left(n,l),n.setSelectionRange(n.selectionStart,i,"backward")):46===e.keyCode&&!0===t.reverseFillMask&&l===i&&(y.rightReverse(n,i),n.setSelectionRange(l,n.selectionEnd,"forward"))}function _(e){if(void 0===e||null===e||""===e)return"";if(!0===t.reverseFillMask)return S(e);const o=r;let n=0,a="";for(let t=0;t<o.length;t++){const l=e[n],i=o[t];if("string"===typeof i)a+=i,l===i&&n++;else{if(void 0===l||!i.regex.test(l))return a;a+=void 0!==i.transform?i.transform(l):l,n++}}return a}function S(e){const t=r,o=l.indexOf(Ws);let n=e.length-1,a="";for(let l=t.length-1;l>=0&&n>-1;l--){const i=t[l];let r=e[n];if("string"===typeof i)a=i+a,r===i&&n--;else{if(void 0===r||!i.regex.test(r))return a;do{a=(void 0!==i.transform?i.transform(r):r)+a,n--,r=e[n]}while(o===l&&void 0!==r&&i.regex.test(r))}}return a}function k(e){return"string"!==typeof e||void 0===s?"number"===typeof e?s(""+e):e:s(e)}function C(e){return i.length-e.length<=0?e:!0===t.reverseFillMask&&0!==e.length?i.slice(0,-e.length)+e:e+i.slice(e.length)}return{innerValue:v,hasMask:d,moveCursorForPaste:b,updateMaskValue:g,onMaskedKeydown:x,onMaskedClick:w}}const Xs=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Zs=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,Gs=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Js=/[a-z0-9_ -]$/i;function eu(e){return function(t){if("compositionend"===t.type||"change"===t.type){if(!0!==t.target.qComposing)return;t.target.qComposing=!1,e(t)}else if("compositionupdate"===t.type&&!0!==t.target.qComposing&&"string"===typeof t.data){const e=!0===v.is.firefox?!1===Js.test(t.data):!0===Xs.test(t.data)||!0===Zs.test(t.data)||!0===Gs.test(t.data);!0===e&&(t.target.qComposing=!0)}}}var tu=$e({name:"QInput",inheritAttrs:!1,props:{...ys,...Ks,...oa,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...ws,"paste","change","keydown","click","animationend"],setup(o,{emit:n,attrs:a}){const{proxy:l}=e.getCurrentInstance(),{$q:i}=l,r={};let s,u,c,d=NaN,v=null;const p=e.ref(null),m=la(o),{innerValue:f,hasMask:h,moveCursorForPaste:g,updateMaskValue:b,onMaskedKeydown:y,onMaskedClick:w}=Ys(o,n,z,p),x=Ts(o,!0),_=e.computed(()=>bs(f.value)),S=eu(O),k=xs(),q=e.computed(()=>"textarea"===o.type||!0===o.autogrow),$=e.computed(()=>!0===q.value||["text","search","url","tel","password"].includes(o.type)),M=e.computed(()=>{const e={...k.splitAttrs.listeners.value,onInput:O,onPaste:L,onChange:P,onBlur:F,onFocus:C};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=S,!0===h.value&&(e.onKeydown=y,e.onClick=w),!0===o.autogrow&&(e.onAnimationend=V),e}),T=e.computed(()=>{const e={tabindex:0,"data-autofocus":!0===o.autofocus||void 0,rows:"textarea"===o.type?6:void 0,"aria-label":o.label,name:m.value,...k.splitAttrs.attributes.value,id:k.targetUid.value,maxlength:o.maxlength,disabled:!0===o.disable,readonly:!0===o.readonly};return!1===q.value&&(e.type=o.type),!0===o.autogrow&&(e.rows=1),e});function B(){Oo(()=>{const e=document.activeElement;null===p.value||p.value===e||null!==e&&e.id===k.targetUid.value||p.value.focus({preventScroll:!0})})}function A(){null!==p.value&&p.value.select()}function L(e){if(!0===h.value&&!0!==o.reverseFillMask){const t=e.target;g(t,t.selectionStart,t.selectionEnd)}n("paste",e)}function O(t){if(!t||!t.target)return;if("file"===o.type)return void n("update:modelValue",t.target.files);const a=t.target.value;if(!0!==t.target.qComposing){if(!0===h.value)b(a,!1,t.inputType);else if(z(a),!0===$.value&&t.target===document.activeElement){const{selectionStart:o,selectionEnd:n}=t.target;void 0!==o&&void 0!==n&&e.nextTick(()=>{t.target===document.activeElement&&0===a.indexOf(t.target.value)&&t.target.setSelectionRange(o,n)})}!0===o.autogrow&&E()}else r.value=a}function V(e){n("animationend",e),E()}function z(t,a){c=(()=>{v=null,"number"!==o.type&&!0===r.hasOwnProperty("value")&&delete r.value,o.modelValue!==t&&d!==t&&(d=t,!0===a&&(u=!0),n("update:modelValue",t),e.nextTick(()=>{d===t&&(d=NaN)})),c=void 0}),"number"===o.type&&(s=!0,r.value=t),void 0!==o.debounce?(null!==v&&clearTimeout(v),r.value=t,v=setTimeout(c,o.debounce)):c()}function E(){requestAnimationFrame(()=>{const e=p.value;if(null!==e){const t=e.parentNode.style,{scrollTop:o}=e,{overflowY:n,maxHeight:a}=!0===i.platform.is.firefox?{}:window.getComputedStyle(e),l=void 0!==n&&"scroll"!==n;!0===l&&(e.style.overflowY="hidden"),t.marginBottom=e.scrollHeight-1+"px",e.style.height="1px",e.style.height=e.scrollHeight+"px",!0===l&&(e.style.overflowY=parseInt(a,10)<e.scrollHeight?"auto":"hidden"),t.marginBottom="",e.scrollTop=o}})}function P(e){S(e),null!==v&&(clearTimeout(v),v=null),void 0!==c&&c(),n("change",e.target.value)}function F(e){void 0!==e&&C(e),null!==v&&(clearTimeout(v),v=null),void 0!==c&&c(),s=!1,u=!1,delete r.value,"file"!==o.type&&setTimeout(()=>{null!==p.value&&(p.value.value=void 0!==f.value?f.value:"")})}function I(){return!0===r.hasOwnProperty("value")?r.value:void 0!==f.value?f.value:""}e.watch(()=>o.type,()=>{p.value&&(p.value.value=o.modelValue)}),e.watch(()=>o.modelValue,t=>{if(!0===h.value){if(!0===u&&(u=!1,String(t)===d))return;b(t)}else f.value!==t&&(f.value=t,"number"===o.type&&!0===r.hasOwnProperty("value")&&(!0===s?s=!1:delete r.value));!0===o.autogrow&&e.nextTick(E)}),e.watch(()=>o.autogrow,t=>{!0===t?e.nextTick(E):null!==p.value&&a.rows>0&&(p.value.style.height="auto")}),e.watch(()=>o.dense,()=>{!0===o.autogrow&&e.nextTick(E)}),e.onBeforeUnmount(()=>{F()}),e.onMounted(()=>{!0===o.autogrow&&E()}),Object.assign(k,{innerValue:f,fieldClass:e.computed(()=>`q-${!0===q.value?"textarea":"input"}`+(!0===o.autogrow?" q-textarea--autogrow":"")),hasShadow:e.computed(()=>"file"!==o.type&&"string"===typeof o.shadowText&&0!==o.shadowText.length),inputRef:p,emitValue:z,hasValue:_,floatingLabel:e.computed(()=>!0===_.value&&("number"!==o.type||!1===isNaN(f.value))||bs(o.displayValue)),getControl:()=>{return e.h(!0===q.value?"textarea":"input",{ref:p,class:["q-field__native q-placeholder",o.inputClass],style:o.inputStyle,...T.value,...M.value,..."file"!==o.type?{value:I()}:x.value})},getShadowControl:()=>{return e.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(!0===q.value?"":" text-no-wrap")},[e.h("span",{class:"invisible"},I()),e.h("span",o.shadowText)])}});const R=_s(k);return Object.assign(l,{focus:B,select:A,getNativeElement:()=>p.value}),t(l,"nativeEl",()=>p.value),R}});const ou={threshold:0,root:null,rootMargin:"0px"};function nu(e,t,o){let n,a,l;"function"===typeof o?(n=o,a=ou,l=void 0===t.cfg):(n=o.handler,a=Object.assign({},ou,o.cfg),l=void 0===t.cfg||!1===he(t.cfg,a)),t.handler!==n&&(t.handler=n),!0===l&&(t.cfg=a,void 0!==t.observer&&t.observer.unobserve(e),t.observer=new IntersectionObserver(([o])=>{if("function"===typeof t.handler){if(null===o.rootBounds&&!0===document.body.contains(e))return t.observer.unobserve(e),void t.observer.observe(e);const n=t.handler(o,t.observer);(!1===n||!0===t.once&&!0===o.isIntersecting)&&au(e)}},a),t.observer.observe(e))}function au(e){const t=e.__qvisible;void 0!==t&&(void 0!==t.observer&&t.observer.unobserve(e),delete e.__qvisible)}var lu=Me({name:"intersection",mounted(e,{modifiers:t,value:o}){const n={once:!0===t.once};nu(e,n,o),e.__qvisible=n},updated(e,t){const o=e.__qvisible;void 0!==o&&nu(e,o,t.value)},beforeUnmount:au}),iu=$e({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(t,{slots:o,emit:a}){const l=e.ref(!0===n.value&&t.ssrPrerender),i=e.computed(()=>void 0!==t.root||void 0!==t.margin||void 0!==t.threshold?{handler:c,cfg:{root:t.root,rootMargin:t.margin,threshold:t.threshold}}:c),r=e.computed(()=>!0!==t.disable&&(!0!==n.value||!0!==t.once||!0!==t.ssrPrerender)),s=e.computed(()=>{return[[lu,i.value,void 0,{once:t.once}]]}),u=e.computed(()=>`--q-transition-duration: ${t.transitionDuration}ms`);function c(e){l.value!==e.isIntersecting&&(l.value=e.isIntersecting,void 0!==t.onVisibility&&a("visibility",l.value))}function d(){return!0===l.value?[e.h("div",{key:"content",style:u.value},Ye(o.default))]:void 0!==o.hidden?[e.h("div",{key:"hidden",style:u.value},o.hidden())]:void 0}return()=>{const o=t.transition?[e.h(e.Transition,{name:"q-transition--"+t.transition},d)]:d();return Je(t.tag,{class:"q-intersection"},o,"main",r.value,()=>s.value)}}}),ru=$e({name:"QList",props:{...bt,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=yt(t,n.proxy.$q),l=e.computed(()=>"q-list"+(!0===t.bordered?" q-list--bordered":"")+(!0===t.dense?" q-list--dense":"")+(!0===t.separator?" q-list--separator":"")+(!0===a.value?" q-list--dark":"")+(!0===t.padding?" q-list--padding":""));return()=>e.h(t.tag,{class:l.value},Ye(o.default))}});const su=[34,37,40,33,39,38],uu=Object.keys(Da);var cu=$e({name:"QKnob",props:{...oa,...Da,modelValue:{type:Number,required:!0},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},tabindex:{type:[Number,String],default:0},disable:Boolean,readonly:Boolean},emits:["update:modelValue","change","dragValue"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref(t.modelValue),r=e.ref(!1),s=e.computed(()=>!0===isNaN(t.innerMin)||t.innerMin<t.min?t.min:t.innerMin),u=e.computed(()=>!0===isNaN(t.innerMax)||t.innerMax>t.max?t.max:t.innerMax);let c;function d(){i.value=null===t.modelValue?s.value:Le(t.modelValue,s.value,u.value),B(!0)}e.watch(()=>`${t.modelValue}|${s.value}|${u.value}`,d),d();const v=e.computed(()=>!1===t.disable&&!1===t.readonly),p=e.computed(()=>"q-knob non-selectable"+(!0===v.value?" q-knob--editable":!0===t.disable?" disabled":"")),m=e.computed(()=>(String(t.step).trim().split(".")[1]||"").length),f=e.computed(()=>0===t.step?1:t.step),h=e.computed(()=>!0===t.instantFeedback||!0===r.value),g=!0===l.platform.is.mobile?e.computed(()=>!0===v.value?{onClick:C}:{}):e.computed(()=>!0===v.value?{onMousedown:k,onClick:C,onKeydown:q,onKeyup:T}:{}),b=e.computed(()=>!0===v.value?{tabindex:t.tabindex}:{[`aria-${!0===t.disable?"disabled":"readonly"}`]:"true"}),y=e.computed(()=>{const e={};return uu.forEach(o=>{e[o]=t[o]}),e});function x(e){e.isFinal?(M(e.evt,!0),r.value=!1):e.isFirst?(S(),r.value=!0,M(e.evt)):M(e.evt)}const _=e.computed(()=>{return[[Xa,x,void 0,{prevent:!0,stop:!0,mouse:!0}]]});function S(){const{top:e,left:t,width:o,height:n}=a.$el.getBoundingClientRect();c={top:e+n/2,left:t+o/2}}function k(e){S(),M(e)}function C(e){S(),M(e,!0)}function q(e){if(!su.includes(e.keyCode))return;$(e);const t=([34,33].includes(e.keyCode)?10:1)*f.value,o=[34,37,40].includes(e.keyCode)?-t:t;i.value=Le(parseFloat((i.value+o).toFixed(m.value)),s.value,u.value),B()}function M(e,o){const a=w(e),r=Math.abs(a.top-c.top),d=Math.sqrt(r**2+Math.abs(a.left-c.left)**2);let v=Math.asin(r/d)*(180/Math.PI);v=a.top<c.top?c.left<a.left?90-v:270+v:c.left<a.left?v+90:270-v,!0===l.lang.rtl?v=Oe(-v-t.angle,0,360):t.angle&&(v=Oe(v-t.angle,0,360)),!0===t.reverse&&(v=360-v);let p=t.min+v/360*(t.max-t.min);if(0!==f.value){const e=p%f.value;p=p-e+(Math.abs(e)>=f.value/2?(e<0?-1:1)*f.value:0),p=parseFloat(p.toFixed(m.value))}p=Le(p,s.value,u.value),n("dragValue",p),i.value!==p&&(i.value=p),B(o)}function T(e){su.includes(e.keyCode)&&B(!0)}function B(e){t.modelValue!==i.value&&n("update:modelValue",i.value),!0===e&&n("change",i.value)}const A=na(t);function L(){return e.h("input",A.value)}return()=>{const e={class:p.value,role:"slider","aria-valuemin":s.value,"aria-valuemax":u.value,"aria-valuenow":t.modelValue,...b.value,...y.value,value:i.value,instantFeedback:h.value,...g.value},n={default:o.default};return!0===v.value&&void 0!==t.name&&(n.internal=L),Je(Wa,e,n,"knob",v.value,()=>_.value)}}});const{passive:du}=f,vu=["both","horizontal","vertical"];var pu=$e({name:"QScrollObserver",props:{axis:{type:String,validator:e=>vu.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(t,{emit:o}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let a,l,i=null;function r(){null!==i&&i();const e=Math.max(0,on(a)),l=nn(a),r={top:e-n.position.top,left:l-n.position.left};if("vertical"===t.axis&&0===r.top||"horizontal"===t.axis&&0===r.left)return;const s=Math.abs(r.top)>=Math.abs(r.left)?r.top<0?"up":"down":r.left<0?"left":"right";n.position={top:e,left:l},n.directionChanged=n.direction!==s,n.delta=r,!0===n.directionChanged&&(n.direction=s,n.inflectionPoint=n.position),o("scroll",{...n})}function s(){a=Jo(l,t.scrollTarget),a.addEventListener("scroll",c,du),c(!0)}function u(){void 0!==a&&(a.removeEventListener("scroll",c,du),a=void 0)}function c(e){if(!0===e||0===t.debounce||"0"===t.debounce)r();else if(null===i){const[e,o]=t.debounce?[setTimeout(r,t.debounce),clearTimeout]:[requestAnimationFrame(r),cancelAnimationFrame];i=(()=>{o(e),i=null})}}e.watch(()=>t.scrollTarget,()=>{u(),s()});const{proxy:d}=e.getCurrentInstance();return e.watch(()=>d.$q.lang.rtl,r),e.onMounted(()=>{l=d.$el.parentNode,s()}),e.onBeforeUnmount(()=>{null!==i&&i(),u()}),Object.assign(d,{trigger:c,getPosition:()=>n}),h}}),mu=$e({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(t,{slots:o,emit:a}){const{proxy:{$q:l}}=e.getCurrentInstance(),i=e.ref(null),r=e.ref(l.screen.height),s=e.ref(!0===t.container?0:l.screen.width),u=e.ref({position:0,direction:"down",inflectionPoint:0}),c=e.ref(0),d=e.ref(!0===n.value?0:vn()),v=e.computed(()=>"q-layout q-layout--"+(!0===t.container?"containerized":"standard")),p=e.computed(()=>!1===t.container?{minHeight:l.screen.height+"px"}:null),m=e.computed(()=>0!==d.value?{[!0===l.lang.rtl?"left":"right"]:`${d.value}px`}:null),f=e.computed(()=>0!==d.value?{[!0===l.lang.rtl?"right":"left"]:0,[!0===l.lang.rtl?"left":"right"]:`-${d.value}px`,width:`calc(100% + ${d.value}px)`}:null);function h(e){if(!0===t.container||!0!==document.qScrollPrevented){const o={position:e.position.top,direction:e.direction,directionChanged:e.directionChanged,inflectionPoint:e.inflectionPoint.top,delta:e.delta.top};u.value=o,void 0!==t.onScroll&&a("scroll",o)}}function g(e){const{height:o,width:n}=e;let l=!1;r.value!==o&&(l=!0,r.value=o,void 0!==t.onScrollHeight&&a("scrollHeight",o),y()),s.value!==n&&(l=!0,s.value=n),!0===l&&void 0!==t.onResize&&a("resize",e)}function b({height:e}){c.value!==e&&(c.value=e,y())}function y(){if(!0===t.container){const e=r.value>c.value?vn():0;d.value!==e&&(d.value=e)}}let w=null;const x={instances:{},view:e.computed(()=>t.view),isContainer:e.computed(()=>t.container),rootRef:i,height:r,containerHeight:c,scrollbarWidth:d,totalWidth:e.computed(()=>s.value+d.value),rows:e.computed(()=>{const e=t.view.toLowerCase().split(" ");return{top:e[0].split(""),middle:e[1].split(""),bottom:e[2].split("")}}),header:e.reactive({size:0,offset:0,space:!1}),right:e.reactive({size:300,offset:0,space:!1}),footer:e.reactive({size:0,offset:0,space:!1}),left:e.reactive({size:300,offset:0,space:!1}),scroll:u,animate(){null!==w?clearTimeout(w):document.body.classList.add("q-body--layout-animate"),w=setTimeout(()=>{w=null,document.body.classList.remove("q-body--layout-animate")},155)},update(e,t,o){x[e][t]=o}};if(e.provide(ie,x),vn()>0){let o=null;const n=document.body;function _(){o=null,n.classList.remove("hide-scrollbar")}function S(){if(null===o){if(n.scrollHeight>l.screen.height)return;n.classList.add("hide-scrollbar")}else clearTimeout(o);o=setTimeout(_,300)}function k(e){null!==o&&"remove"===e&&(clearTimeout(o),_()),window[`${e}EventListener`]("resize",S)}e.watch(()=>!0!==t.container?"add":"remove",k),!0!==t.container&&k("add"),e.onUnmounted(()=>{k("remove")})}return()=>{const n=Ze(o.default,[e.h(pu,{onScroll:h}),e.h(ul,{onResize:g})]),a=e.h("div",{class:v.value,style:p.value,ref:!0===t.container?void 0:i,tabindex:-1},n);return!0===t.container?e.h("div",{class:"q-layout-container overflow-hidden",ref:i},[e.h(ul,{onResize:b}),e.h("div",{class:"absolute-full",style:m.value},[e.h("div",{class:"scroll",style:f.value},[a])])]):a}}});const fu=["horizontal","vertical","cell","none"];var hu=$e({name:"QMarkupTable",props:{...bt,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>fu.includes(e)}},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=yt(t,n.proxy.$q),l=e.computed(()=>"q-markup-table q-table__container q-table__card"+` q-table--${t.separator}-separator`+(!0===a.value?" q-table--dark q-table__card--dark q-dark":"")+(!0===t.dense?" q-table--dense":"")+(!0===t.flat?" q-table--flat":"")+(!0===t.bordered?" q-table--bordered":"")+(!0===t.square?" q-table--square":"")+(!1===t.wrapCells?" q-table--no-wrap":""));return()=>e.h("div",{class:l.value},[e.h("table",{class:"q-table"},Ye(o.default))])}}),gu=$e({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(t,{slots:o}){const n=il();return()=>{const a={};if(!0===n.value){const n=Ye(o.default);return void 0===n?n:n.length>1?e.h(t.tag,a,n):n[0]}a.class="q-no-ssr-placeholder";const l=Ye(o.placeholder);return void 0!==l?l.length>1?e.h(t.tag,a,l):l[0]:void 0!==t.placeholder?e.h(t.tag,a,t.placeholder):void 0}}});const bu=e.h("svg",{key:"svg",class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24"},[e.h("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),e.h("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]);var yu=$e({name:"QRadio",props:{...bt,...We,...oa,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),l=yt(t,a.$q),i=Ke(t,Va),r=e.ref(null),{refocusTargetEl:s,refocusTarget:u}=Oa(t,r),c=e.computed(()=>e.toRaw(t.modelValue)===e.toRaw(t.val)),d=e.computed(()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(!0===t.disable?" disabled":"")+(!0===l.value?" q-radio--dark":"")+(!0===t.dense?" q-radio--dense":"")+(!0===t.leftLabel?" reverse":"")),v=e.computed(()=>{const e=void 0===t.color||!0!==t.keepColor&&!0!==c.value?"":` text-${t.color}`;return"q-radio__inner relative-position "+`q-radio__inner--${!0===c.value?"truthy":"falsy"}${e}`}),p=e.computed(()=>(!0===c.value?t.checkedIcon:t.uncheckedIcon)||null),m=e.computed(()=>!0===t.disable?-1:t.tabindex||0),f=e.computed(()=>{const e={type:"radio"};return void 0!==t.name&&Object.assign(e,{".checked":!0===c.value,"^checked":!0===c.value?"checked":void 0,name:t.name,value:t.val}),e}),h=aa(f);function g(e){void 0!==e&&($(e),u(e)),!0!==t.disable&&!0!==c.value&&n("update:modelValue",t.val,e)}function b(e){13!==e.keyCode&&32!==e.keyCode||$(e)}function y(e){13!==e.keyCode&&32!==e.keyCode||g(e)}return Object.assign(a,{set:g}),()=>{const n=null!==p.value?[e.h("div",{key:"icon",class:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[e.h(mt,{class:"q-radio__icon",name:p.value})])]:[bu];!0!==t.disable&&h(n,"unshift"," q-radio__native q-ma-none q-pa-none");const a=[e.h("div",{class:v.value,style:i.value,"aria-hidden":"true"},n)];null!==s.value&&a.push(s.value);const l=void 0!==t.label?Ze(o.default,[t.label]):Ye(o.default);return void 0!==l&&a.push(e.h("div",{class:"q-radio__label q-anchor--skip"},l)),e.h("div",{ref:r,class:d.value,tabindex:m.value,role:"radio","aria-label":t.label,"aria-checked":!0===c.value?"true":"false","aria-disabled":!0===t.disable?"true":void 0,onClick:g,onKeydown:b,onKeyup:y},a)}}}),wu=$e({name:"QToggle",props:{...za,icon:String,iconColor:String},emits:Ea,setup(t){function o(o,n){const a=e.computed(()=>(!0===o.value?t.checkedIcon:!0===n.value?t.indeterminateIcon:t.uncheckedIcon)||t.icon),l=e.computed(()=>!0===o.value?t.iconColor:null);return()=>[e.h("div",{class:"q-toggle__track"}),e.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},void 0!==a.value?[e.h(mt,{name:a.value,color:l.value})]:void 0)]}return Pa("toggle",o)}});const xu={radio:yu,checkbox:Ia,toggle:wu},_u=Object.keys(xu);var Su=$e({name:"QOptionGroup",props:{...bt,modelValue:{required:!0},options:{type:Array,validator:e=>e.every(e=>"value"in e&&"label"in e)},name:String,type:{default:"radio",validator:e=>_u.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(t,{emit:o,slots:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=Array.isArray(t.modelValue);"radio"===t.type?!0===l&&console.error("q-option-group: model should not be array"):!1===l&&console.error("q-option-group: model should be array in your case");const i=yt(t,a),r=e.computed(()=>xu[t.type]),s=e.computed(()=>"q-option-group q-gutter-x-sm"+(!0===t.inline?" q-option-group--inline":"")),u=e.computed(()=>{const e={role:"group"};return"radio"===t.type&&(e.role="radiogroup",!0===t.disable&&(e["aria-disabled"]="true")),e});function c(e){o("update:modelValue",e)}return()=>e.h("div",{class:s.value,...u.value},t.options.map((o,a)=>{const l=void 0!==n["label-"+a]?()=>n["label-"+a](o):void 0!==n.label?()=>n.label(o):void 0;return e.h("div",[e.h(r.value,{modelValue:t.modelValue,val:o.value,name:void 0===o.name?t.name:o.name,disable:t.disable||o.disable,label:void 0===l?o.label:null,leftLabel:void 0===o.leftLabel?t.leftLabel:o.leftLabel,color:void 0===o.color?t.color:o.color,checkedIcon:o.checkedIcon,uncheckedIcon:o.uncheckedIcon,dark:o.dark||i.value,size:void 0===o.size?t.size:o.size,dense:t.dense,keepColor:void 0===o.keepColor?t.keepColor:o.keepColor,"onUpdate:modelValue":c},l)])}))}}),ku=$e({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.inject(ie,ve);if(a===ve)return console.error("QPage needs to be a deep child of QLayout"),ve;const l=e.inject(re,ve);if(l===ve)return console.error("QPage needs to be child of QPageContainer"),ve;const i=e.computed(()=>{const e=(!0===a.header.space?a.header.size:0)+(!0===a.footer.space?a.footer.size:0);if("function"===typeof t.styleFn){const o=!0===a.isContainer.value?a.containerHeight.value:n.screen.height;return t.styleFn(e,o)}return{minHeight:!0===a.isContainer.value?a.containerHeight.value-e+"px":0===n.screen.height?0!==e?`calc(100vh - ${e}px)`:"100vh":n.screen.height-e+"px"}}),r=e.computed(()=>`q-page${!0===t.padding?" q-layout-padding":""}`);return()=>e.h("main",{class:r.value,style:i.value},Ye(o.default))}}),Cu=$e({name:"QPageContainer",setup(t,{slots:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.inject(ie,ve);if(a===ve)return console.error("QPageContainer needs to be child of QLayout"),ve;e.provide(re,!0);const l=e.computed(()=>{const e={};return!0===a.header.space&&(e.paddingTop=`${a.header.size}px`),!0===a.right.space&&(e[`padding${!0===n.lang.rtl?"Left":"Right"}`]=`${a.right.size}px`),!0===a.footer.space&&(e.paddingBottom=`${a.footer.size}px`),!0===a.left.space&&(e[`padding${!0===n.lang.rtl?"Right":"Left"}`]=`${a.left.size}px`),e});return()=>e.h("div",{class:"q-page-container",style:l.value},Ye(o.default))}});const qu={position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,validator:e=>2===e.length},expand:Boolean};function $u(){const{props:t,proxy:{$q:o}}=e.getCurrentInstance(),n=e.inject(ie,ve);if(n===ve)return console.error("QPageSticky needs to be child of QLayout"),ve;const a=e.computed(()=>{const e=t.position;return{top:e.indexOf("top")>-1,right:e.indexOf("right")>-1,bottom:e.indexOf("bottom")>-1,left:e.indexOf("left")>-1,vertical:"top"===e||"bottom"===e,horizontal:"left"===e||"right"===e}}),l=e.computed(()=>n.header.offset),i=e.computed(()=>n.right.offset),r=e.computed(()=>n.footer.offset),s=e.computed(()=>n.left.offset),u=e.computed(()=>{let e=0,n=0;const u=a.value,c=!0===o.lang.rtl?-1:1;!0===u.top&&0!==l.value?n=`${l.value}px`:!0===u.bottom&&0!==r.value&&(n=`${-r.value}px`),!0===u.left&&0!==s.value?e=`${c*s.value}px`:!0===u.right&&0!==i.value&&(e=`${-c*i.value}px`);const d={transform:`translate(${e}, ${n})`};return t.offset&&(d.margin=`${t.offset[1]}px ${t.offset[0]}px`),!0===u.vertical?(0!==s.value&&(d[!0===o.lang.rtl?"right":"left"]=`${s.value}px`),0!==i.value&&(d[!0===o.lang.rtl?"left":"right"]=`${i.value}px`)):!0===u.horizontal&&(0!==l.value&&(d.top=`${l.value}px`),0!==r.value&&(d.bottom=`${r.value}px`)),d}),c=e.computed(()=>`q-page-sticky row flex-center fixed-${t.position}`+` q-page-sticky--${!0===t.expand?"expand":"shrink"}`);function d(o){const n=Ye(o.default);return e.h("div",{class:c.value,style:u.value},!0===t.expand?n:[e.h("div",n)])}return{$layout:n,getStickyContent:d}}var Mu=$e({name:"QPageScroller",props:{...qu,scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{default:()=>[18,18]}},emits:["click"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),{$layout:l,getStickyContent:i}=$u(),r=e.ref(null);let s;const u=e.computed(()=>l.height.value-(!0===l.isContainer.value?l.containerHeight.value:a.screen.height));function c(){return!0===t.reverse?u.value-l.scroll.value.position>t.scrollOffset:l.scroll.value.position>t.scrollOffset}const d=e.ref(c());function v(){const e=c();d.value!==e&&(d.value=e)}function p(){!0===t.reverse?void 0===s&&(s=e.watch(u,v)):m()}function m(){void 0!==s&&(s(),s=void 0)}function f(e){const o=Jo(!0===l.isContainer.value?r.value:l.rootRef.value);un(o,!0===t.reverse?l.height.value:0,t.duration),n("click",e)}function h(){return!0===d.value?e.h("div",{ref:r,class:"q-page-scroller",onClick:f},i(o)):null}return e.watch(l.scroll,v),e.watch(()=>t.reverse,p),p(),e.onBeforeUnmount(m),()=>e.h(e.Transition,{name:"q-transition--fade"},h)}}),Tu=$e({name:"QPageSticky",props:qu,setup(e,{slots:t}){const{getStickyContent:o}=$u();return()=>o(t)}});function Bu(e,t){return[!0,!1].includes(e)?e:t}var Au=$e({name:"QPagination",props:{...bt,modelValue:{type:Number,required:!0},min:{type:[Number,String],default:1},max:{type:[Number,String],required:!0},maxPages:{type:[Number,String],default:0,validator:e=>("string"===typeof e?parseInt(e,10):e)>=0},inputStyle:[Array,String,Object],inputClass:[Array,String,Object],size:String,disable:Boolean,input:Boolean,iconPrev:String,iconNext:String,iconFirst:String,iconLast:String,toFn:Function,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,color:{type:String,default:"primary"},textColor:String,activeDesign:{type:String,default:"",values:e=>""===e||uo.includes(e)},activeColor:String,activeTextColor:String,gutter:String,padding:{type:String,default:"3px 2px"}},emits:["update:modelValue"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=yt(t,a),i=e.computed(()=>parseInt(t.min,10)),r=e.computed(()=>parseInt(t.max,10)),s=e.computed(()=>parseInt(t.maxPages,10)),u=e.computed(()=>f.value+" / "+r.value),c=e.computed(()=>Bu(t.boundaryLinks,t.input)),d=e.computed(()=>Bu(t.boundaryNumbers,!t.input)),v=e.computed(()=>Bu(t.directionLinks,t.input)),p=e.computed(()=>Bu(t.ellipses,!t.input)),m=e.ref(null),f=e.computed({get:()=>t.modelValue,set:e=>{if(e=parseInt(e,10),t.disable||isNaN(e))return;const n=Le(e,i.value,r.value);t.modelValue!==n&&o("update:modelValue",n)}});e.watch(()=>`${i.value}|${r.value}`,()=>{f.value=t.modelValue});const h=e.computed(()=>"q-pagination row no-wrap items-center"+(!0===t.disable?" disabled":"")),g=e.computed(()=>t.gutter in lo?`${lo[t.gutter]}px`:t.gutter||null),b=e.computed(()=>null!==g.value?`--q-pagination-gutter-parent:-${g.value};--q-pagination-gutter-child:${g.value}`:null),y=e.computed(()=>{const e=[t.iconFirst||a.iconSet.pagination.first,t.iconPrev||a.iconSet.pagination.prev,t.iconNext||a.iconSet.pagination.next,t.iconLast||a.iconSet.pagination.last];return!0===a.lang.rtl?e.reverse():e}),w=e.computed(()=>({"aria-disabled":!0===t.disable?"true":"false",role:"navigation"})),x=e.computed(()=>co(t,"flat")),_=e.computed(()=>({[x.value]:!0,round:t.round,rounded:t.rounded,padding:t.padding,color:t.color,textColor:t.textColor,size:t.size,ripple:null===t.ripple||t.ripple})),S=e.computed(()=>{const e={[x.value]:!1};return""!==t.activeDesign&&(e[t.activeDesign]=!0),e}),k=e.computed(()=>({...S.value,color:t.activeColor||t.color,textColor:t.activeTextColor||t.textColor})),C=e.computed(()=>{let e=Math.max(s.value,1+(p.value?2:0)+(d.value?2:0));const o={pgFrom:i.value,pgTo:r.value,ellipsesStart:!1,ellipsesEnd:!1,boundaryStart:!1,boundaryEnd:!1,marginalStyle:{minWidth:`${Math.max(2,String(r.value).length)}em`}};return s.value&&e<r.value-i.value+1&&(e=1+2*Math.floor(e/2),o.pgFrom=Math.max(i.value,Math.min(r.value-e+1,t.modelValue-Math.floor(e/2))),o.pgTo=Math.min(r.value,o.pgFrom+e-1),d.value&&(o.boundaryStart=!0,o.pgFrom++),p.value&&o.pgFrom>i.value+(d.value?1:0)&&(o.ellipsesStart=!0,o.pgFrom++),d.value&&(o.boundaryEnd=!0,o.pgTo--),p.value&&o.pgTo<r.value-(d.value?1:0)&&(o.ellipsesEnd=!0,o.pgTo--)),o});function q(e){f.value=e}function $(e){f.value=f.value+e}const M=e.computed(()=>{function e(){f.value=m.value,m.value=null}return{"onUpdate:modelValue":e=>{m.value=e},onKeyup:t=>{!0===Y(t,13)&&e()},onBlur:e}});function T(o,n,a){const l={"aria-label":n,"aria-current":"false",..._.value,...o};return!0===a&&Object.assign(l,{"aria-current":"true",...k.value}),void 0!==n&&(void 0!==t.toFn?l.to=t.toFn(n):l.onClick=(()=>{q(n)})),e.h(yo,l)}return Object.assign(n,{set:q,setByOffset:$}),()=>{const o=[],n=[];let a;if(!0===c.value&&(o.push(T({key:"bls",disable:t.disable||t.modelValue<=i.value,icon:y.value[0]},i.value)),n.unshift(T({key:"ble",disable:t.disable||t.modelValue>=r.value,icon:y.value[3]},r.value))),!0===v.value&&(o.push(T({key:"bdp",disable:t.disable||t.modelValue<=i.value,icon:y.value[1]},t.modelValue-1)),n.unshift(T({key:"bdn",disable:t.disable||t.modelValue>=r.value,icon:y.value[2]},t.modelValue+1))),!0!==t.input){a=[];const{pgFrom:e,pgTo:l,marginalStyle:s}=C.value;if(!0===C.value.boundaryStart){const e=i.value===t.modelValue;o.push(T({key:"bns",style:s,disable:t.disable,label:i.value},i.value,e))}if(!0===C.value.boundaryEnd){const e=r.value===t.modelValue;n.unshift(T({key:"bne",style:s,disable:t.disable,label:r.value},r.value,e))}!0===C.value.ellipsesStart&&o.push(T({key:"bes",style:s,disable:t.disable,label:"…",ripple:!1},e-1)),!0===C.value.ellipsesEnd&&n.unshift(T({key:"bee",style:s,disable:t.disable,label:"…",ripple:!1},l+1));for(let o=e;o<=l;o++)a.push(T({key:`bpg${o}`,style:s,disable:t.disable,label:o},o,o===t.modelValue))}return e.h("div",{class:h.value,...w.value},[e.h("div",{class:"q-pagination__content row no-wrap items-center",style:b.value},[...o,!0===t.input?e.h(tu,{class:"inline",style:{width:`${u.value.length/1.5}em`},type:"number",dense:!0,value:m.value,disable:t.disable,dark:l.value,borderless:!0,inputClass:t.inputClass,inputStyle:t.inputStyle,placeholder:u.value,min:i.value,max:r.value,...M.value}):e.h("div",{class:"q-pagination__middle row justify-center"},a),...n])])}}});function Lu(e){let t,o,n=!1;function a(){o=arguments,!0!==n&&(n=!0,t=requestAnimationFrame(()=>{e.apply(this,o),o=void 0,n=!1}))}return a.cancel=(()=>{window.cancelAnimationFrame(t),n=!1}),a}const{passive:Ou}=f;var Vu=$e({name:"QParallax",props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:e=>e>=0&&e<=1},scrollTarget:{default:void 0},onScroll:Function},setup(t,{slots:o,emit:n}){const a=e.ref(0),l=e.ref(null),i=e.ref(null),r=e.ref(null);let s,u,c,d,v,p;e.watch(()=>t.height,()=>{!0===s&&f()}),e.watch(()=>t.scrollTarget,()=>{!0===s&&(y(),b())});let m=e=>{a.value=e,void 0!==t.onScroll&&n("scroll",e)};function f(){let e,o,n;p===window?(e=0,n=o=window.innerHeight):(e=Qt(p).top,o=Wt(p),n=e+o);const a=Qt(l.value).top,i=a+t.height;if(void 0!==v||i>e&&a<n){const e=(n-a)/(t.height+o);h((c-t.height)*e*t.speed),m(e)}}let h=e=>{u.style.transform=`translate3d(-50%,${Math.round(e)}px,0)`};function g(){c=u.naturalHeight||u.videoHeight||Wt(u),!0===s&&f()}function b(){s=!0,p=Jo(l.value,t.scrollTarget),p.addEventListener("scroll",f,Ou),window.addEventListener("resize",d,Ou),f()}function y(){!0===s&&(s=!1,p.removeEventListener("scroll",f,Ou),window.removeEventListener("resize",d,Ou),p=void 0,h.cancel(),m.cancel(),d.cancel())}return e.onMounted(()=>{h=Lu(h),m=Lu(m),d=Lu(g),u=void 0!==o.media?i.value.children[0]:r.value,u.onload=u.onloadstart=u.loadedmetadata=g,g(),u.style.display="initial",void 0!==window.IntersectionObserver?(v=new IntersectionObserver(e=>{const t=!0===e[0].isIntersecting?b:y;t()}),v.observe(l.value)):b()}),e.onBeforeUnmount(()=>{y(),void 0!==v&&v.disconnect(),u.onload=u.onloadstart=u.loadedmetadata=null}),()=>{return e.h("div",{ref:l,class:"q-parallax",style:{height:`${t.height}px`}},[e.h("div",{ref:i,class:"q-parallax__media absolute-full"},void 0!==o.media?o.media():[e.h("img",{ref:r,src:t.src})]),e.h("div",{class:"q-parallax__content absolute-full column flex-center"},void 0!==o.content?o.content({percentScrolled:a.value}):Ye(o.default))])}}});function zu(e,t=new WeakMap){if(Object(e)!==e)return e;if(t.has(e))return t.get(e);const o=e instanceof Date?new Date(e):e instanceof RegExp?new RegExp(e.source,e.flags):e instanceof Set?new Set:e instanceof Map?new Map:"function"!==typeof e.constructor?Object.create(null):void 0!==e.prototype&&"function"===typeof e.prototype.constructor?e:new e.constructor;if("function"===typeof e.constructor&&"function"===typeof e.valueOf){const o=e.valueOf();if(Object(o)!==o){const n=new e.constructor(o);return t.set(e,n),n}}return t.set(e,o),e instanceof Set?e.forEach(e=>{o.add(zu(e,t))}):e instanceof Map&&e.forEach((e,n)=>{o.set(n,zu(e,t))}),Object.assign(o,...Object.keys(e).map(o=>({[o]:zu(e[o],t)})))}var Eu=$e({name:"QPopupEdit",props:{modelValue:{required:!0},title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:()=>!0},autoSave:Boolean,cover:{type:Boolean,default:!0},disable:Boolean},emits:["update:modelValue","save","cancel","beforeShow","show","beforeHide","hide"],setup(o,{slots:n,emit:a}){const{proxy:l}=e.getCurrentInstance(),{$q:i}=l,r=e.ref(null),s=e.ref(""),u=e.ref("");let c=!1;const d=e.computed(()=>{return t({initialValue:s.value,validate:o.validate,set:v,cancel:p,updatePosition:m},"value",()=>u.value,e=>{u.value=e})});function v(){!1!==o.validate(u.value)&&(!0===f()&&(a("save",u.value,s.value),a("update:modelValue",u.value)),h())}function p(){!0===f()&&a("cancel",u.value,s.value),h()}function m(){e.nextTick(()=>{r.value.updatePosition()})}function f(){return!1===he(u.value,s.value)}function h(){c=!0,r.value.hide()}function g(){c=!1,s.value=zu(o.modelValue),u.value=zu(o.modelValue),a("beforeShow")}function b(){a("show")}function y(){!1===c&&!0===f()&&(!0===o.autoSave&&!0===o.validate(u.value)?(a("save",u.value,s.value),a("update:modelValue",u.value)):a("cancel",u.value,s.value)),a("beforeHide")}function w(){a("hide")}function x(){const t=void 0!==n.default?[].concat(n.default(d.value)):[];return o.title&&t.unshift(e.h("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},o.title)),!0===o.buttons&&t.push(e.h("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[e.h(yo,{flat:!0,color:o.color,label:o.labelCancel||i.lang.label.cancel,onClick:p}),e.h(yo,{flat:!0,color:o.color,label:o.labelSet||i.lang.label.set,onClick:v})])),t}return Object.assign(l,{set:v,cancel:p,show(e){null!==r.value&&r.value.show(e)},hide(e){null!==r.value&&r.value.hide(e)},updatePosition:m}),()=>{if(!0!==o.disable)return e.h(Hn,{ref:r,class:"q-popup-edit",cover:o.cover,onBeforeShow:g,onShow:b,onBeforeHide:y,onHide:w,onEscapeKey:p},x)}}}),Pu=$e({name:"QPopupProxy",props:{..._o,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(o,{slots:n,emit:a,attrs:l}){const{proxy:i}=e.getCurrentInstance(),{$q:r}=i,s=e.ref(!1),u=e.ref(null),c=e.computed(()=>parseInt(o.breakpoint,10)),{canShow:d}=So({showing:s});function v(){return r.screen.width<c.value||r.screen.height<c.value?"dialog":"menu"}const p=e.ref(v()),m=e.computed(()=>"menu"===p.value?{maxHeight:"99vh"}:{});function f(e){s.value=!0,a("show",e)}function h(e){s.value=!1,p.value=v(),a("hide",e)}return e.watch(()=>v(),e=>{!0!==s.value&&(p.value=e)}),Object.assign(i,{show(e){!0===d(e)&&u.value.show(e)},hide(e){u.value.hide(e)},toggle(e){u.value.toggle(e)}}),t(i,"currentComponent",()=>({type:p.value,ref:u.value})),()=>{const t={ref:u,...m.value,...l,onShow:f,onHide:h};let a;return"dialog"===p.value?a=Cr:(a=Hn,Object.assign(t,{target:o.target,contextMenu:o.contextMenu,noParentEvent:!0,separateClosePopup:!0})),e.h(a,t,n.default)}}});const Fu={xs:2,sm:4,md:6,lg:10,xl:14};function Iu(e,t,o){return{transform:!0===t?`translateX(${!0===o.lang.rtl?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var Ru=$e({name:"QLinearProgress",props:{...bt,...We,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(t,{slots:o}){const{proxy:n}=e.getCurrentInstance(),a=yt(t,n.$q),l=Ke(t,Fu),i=e.computed(()=>!0===t.indeterminate||!0===t.query),r=e.computed(()=>t.reverse!==t.query),s=e.computed(()=>({...null!==l.value?l.value:{},"--q-linear-progress-speed":`${t.animationSpeed}ms`})),u=e.computed(()=>"q-linear-progress"+(void 0!==t.color?` text-${t.color}`:"")+(!0===t.reverse||!0===t.query?" q-linear-progress--reverse":"")+(!0===t.rounded?" rounded-borders":"")),c=e.computed(()=>Iu(void 0!==t.buffer?t.buffer:1,r.value,n.$q)),d=e.computed(()=>`with${!0===t.instantFeedback?"out":""}-transition`),v=e.computed(()=>"q-linear-progress__track absolute-full"+` q-linear-progress__track--${d.value}`+` q-linear-progress__track--${!0===a.value?"dark":"light"}`+(void 0!==t.trackColor?` bg-${t.trackColor}`:"")),p=e.computed(()=>Iu(!0===i.value?1:t.value,r.value,n.$q)),m=e.computed(()=>"q-linear-progress__model absolute-full"+` q-linear-progress__model--${d.value}`+` q-linear-progress__model--${!0===i.value?"in":""}determinate`),f=e.computed(()=>({width:`${100*t.value}%`})),h=e.computed(()=>`q-linear-progress__stripe absolute-${!0===t.reverse?"right":"left"}`+` q-linear-progress__stripe--${d.value}`);return()=>{const n=[e.h("div",{class:v.value,style:c.value}),e.h("div",{class:m.value,style:p.value})];return!0===t.stripe&&!1===i.value&&n.push(e.h("div",{class:h.value,style:f.value})),e.h("div",{class:u.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":!0===t.indeterminate?void 0:t.value},Ze(o.default,n))}}});const Nu=40,Du=20;var ju=$e({name:"QPullToRefresh",props:{color:String,bgColor:String,icon:String,noMouse:Boolean,disable:Boolean,scrollTarget:{default:void 0}},emits:["refresh"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref("pull"),r=e.ref(0),s=e.ref(!1),u=e.ref(-Nu),c=e.ref(!1),d=e.ref({}),v=e.computed(()=>({opacity:r.value,transform:`translateY(${u.value}px) rotate(${360*r.value}deg)`})),p=e.computed(()=>"q-pull-to-refresh__puller row flex-center"+(!0===c.value?" q-pull-to-refresh__puller--animating":"")+(void 0!==t.bgColor?` bg-${t.bgColor}`:""));function m(e){if(!0===e.isFinal)return void(!0===s.value&&(s.value=!1,"pulled"===i.value?(i.value="refreshing",x({pos:Du}),g()):"pull"===i.value&&x({pos:-Nu,ratio:0})));if(!0===c.value||"refreshing"===i.value)return!1;if(!0===e.isFirst){if(0!==on(y)||"down"!==e.direction)return!0===s.value&&(s.value=!1,i.value="pull",x({pos:-Nu,ratio:0})),!1;s.value=!0;const{top:t,left:o}=b.getBoundingClientRect();d.value={top:t+"px",left:o+"px",width:window.getComputedStyle(b).getPropertyValue("width")}}q(e.evt);const t=Math.min(140,Math.max(0,e.distance.y));u.value=t-Nu,r.value=Le(t/(Du+Nu),0,1);const o=u.value>Du?"pulled":"pull";i.value!==o&&(i.value=o)}const f=e.computed(()=>{const e={down:!0};return!0!==t.noMouse&&(e.mouse=!0),[[Xa,m,void 0,e]]}),h=e.computed(()=>`q-pull-to-refresh__content${!0===s.value?" no-pointer-events":""}`);function g(){n("refresh",()=>{x({pos:-Nu,ratio:0},()=>{i.value="pull"})})}let b,y,w=null;function x({pos:e,ratio:t},o){c.value=!0,u.value=e,void 0!==t&&(r.value=t),null!==w&&clearTimeout(w),w=setTimeout(()=>{w=null,c.value=!1,o&&o()},300)}function _(){y=Jo(b,t.scrollTarget)}return e.watch(()=>t.scrollTarget,_),e.onMounted(()=>{b=a.$el,_()}),e.onBeforeUnmount(()=>{null!==w&&clearTimeout(w)}),Object.assign(a,{trigger:g,updateScrollTarget:_}),()=>{const n=[e.h("div",{class:h.value},Ye(o.default)),e.h("div",{class:"q-pull-to-refresh__puller-container fixed row flex-center no-pointer-events z-top",style:d.value},[e.h("div",{class:p.value,style:v.value},["refreshing"!==i.value?e.h(mt,{name:t.icon||l.iconSet.pullToRefresh.icon,color:t.color,size:"32px"}):e.h(Ht,{size:"24px",color:t.color})])])];return Je("div",{class:"q-pull-to-refresh"},n,"main",!1===t.disable,()=>f.value)}}});const Hu={MIN:0,RANGE:1,MAX:2};var Qu=$e({name:"QRange",props:{...tl,modelValue:{type:Object,default:()=>({min:null,max:null}),validator:e=>"min"in e&&"max"in e},dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number],leftThumbColor:String,rightThumbColor:String},emits:ol,setup(t,{emit:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),{state:a,methods:l}=nl({updateValue:C,updatePosition:M,getDragging:q,formAttrs:e.computed(()=>({type:"hidden",name:t.name,value:`${t.modelValue.min}|${t.modelValue.max}`}))}),i=e.ref(null),r=e.ref(0),s=e.ref(0),u=e.ref({min:0,max:0});function c(){u.value.min=null===t.modelValue.min?a.innerMin.value:Le(t.modelValue.min,a.innerMin.value,a.innerMax.value),u.value.max=null===t.modelValue.max?a.innerMax.value:Le(t.modelValue.max,a.innerMin.value,a.innerMax.value)}e.watch(()=>`${t.modelValue.min}|${t.modelValue.max}|${a.innerMin.value}|${a.innerMax.value}`,c),c();const d=e.computed(()=>l.convertModelToRatio(u.value.min)),v=e.computed(()=>l.convertModelToRatio(u.value.max)),p=e.computed(()=>!0===a.active.value?r.value:d.value),m=e.computed(()=>!0===a.active.value?s.value:v.value),f=e.computed(()=>{const e={[a.positionProp.value]:`${100*p.value}%`,[a.sizeProp.value]:`${100*(m.value-p.value)}%`};return void 0!==t.selectionImg&&(e.backgroundImage=`url(${t.selectionImg}) !important`),e}),h=e.computed(()=>{if(!0!==a.editable.value)return{};if(!0===n.platform.is.mobile)return{onClick:l.onMobileClick};const e={onMousedown:l.onActivate};return!0!==t.dragRange&&!0!==t.dragOnlyRange||Object.assign(e,{onFocus:()=>{a.focus.value="both"},onBlur:l.onBlur,onKeydown:T,onKeyup:l.onKeyup}),e});function g(e){return!0!==n.platform.is.mobile&&!0===a.editable.value&&!0!==t.dragOnlyRange?{onFocus:()=>{a.focus.value=e},onBlur:l.onBlur,onKeydown:T,onKeyup:l.onKeyup}:{}}const b=e.computed(()=>!0!==t.dragOnlyRange?a.tabindex.value:null),y=e.computed(()=>!0===n.platform.is.mobile||!t.dragRange&&!0!==t.dragOnlyRange?null:a.tabindex.value),w=e.ref(null),x=e.computed(()=>g("min")),_=l.getThumbRenderFn({focusValue:"min",getNodeData:()=>({ref:w,key:"tmin",...x.value,tabindex:b.value}),ratio:p,label:e.computed(()=>void 0!==t.leftLabelValue?t.leftLabelValue:u.value.min),thumbColor:e.computed(()=>t.leftThumbColor||t.thumbColor||t.color),labelColor:e.computed(()=>t.leftLabelColor||t.labelColor),labelTextColor:e.computed(()=>t.leftLabelTextColor||t.labelTextColor)}),S=e.computed(()=>g("max")),k=l.getThumbRenderFn({focusValue:"max",getNodeData:()=>({...S.value,key:"tmax",tabindex:b.value}),ratio:m,label:e.computed(()=>void 0!==t.rightLabelValue?t.rightLabelValue:u.value.max),thumbColor:e.computed(()=>t.rightThumbColor||t.thumbColor||t.color),labelColor:e.computed(()=>t.rightLabelColor||t.labelColor),labelTextColor:e.computed(()=>t.rightLabelTextColor||t.labelTextColor)});function C(e){u.value.min===t.modelValue.min&&u.value.max===t.modelValue.max||o("update:modelValue",{...u.value}),!0===e&&o("change",{...u.value})}function q(e){const{left:o,top:n,width:a,height:r}=i.value.getBoundingClientRect(),s=!0===t.dragOnlyRange?0:!0===t.vertical?w.value.offsetHeight/(2*r):w.value.offsetWidth/(2*a),c={left:o,top:n,width:a,height:r,valueMin:u.value.min,valueMax:u.value.max,ratioMin:d.value,ratioMax:v.value},p=l.getDraggingRatio(e,c);return!0!==t.dragOnlyRange&&p<c.ratioMin+s?c.type=Hu.MIN:!0===t.dragOnlyRange||p<c.ratioMax-s?!0===t.dragRange||!0===t.dragOnlyRange?(c.type=Hu.RANGE,Object.assign(c,{offsetRatio:p,offsetModel:l.convertRatioToModel(p),rangeValue:c.valueMax-c.valueMin,rangeRatio:c.ratioMax-c.ratioMin})):c.type=c.ratioMax-p<p-c.ratioMin?Hu.MAX:Hu.MIN:c.type=Hu.MAX,c}function M(e,o=a.dragging.value){let n;const i=l.getDraggingRatio(e,o),c=l.convertRatioToModel(i);switch(o.type){case Hu.MIN:i<=o.ratioMax?(n={minR:i,maxR:o.ratioMax,min:c,max:o.valueMax},a.focus.value="min"):(n={minR:o.ratioMax,maxR:i,min:o.valueMax,max:c},a.focus.value="max");break;case Hu.MAX:i>=o.ratioMin?(n={minR:o.ratioMin,maxR:i,min:o.valueMin,max:c},a.focus.value="max"):(n={minR:i,maxR:o.ratioMin,min:c,max:o.valueMin},a.focus.value="min");break;case Hu.RANGE:const e=i-o.offsetRatio,t=Le(o.ratioMin+e,a.innerMinRatio.value,a.innerMaxRatio.value-o.rangeRatio),l=c-o.offsetModel,r=Le(o.valueMin+l,a.innerMin.value,a.innerMax.value-o.rangeValue);n={minR:t,maxR:t+o.rangeRatio,min:a.roundValueFn.value(r),max:a.roundValueFn.value(r+o.rangeValue)},a.focus.value="both";break}u.value=null===u.value.min||null===u.value.max?{min:n.min||t.min,max:n.max||t.max}:{min:n.min,max:n.max},!0!==t.snap||0===t.step?(r.value=n.minR,s.value=n.maxR):(r.value=l.convertModelToRatio(u.value.min),s.value=l.convertModelToRatio(u.value.max))}function T(e){if(!el.includes(e.keyCode))return;$(e);const o=([34,33].includes(e.keyCode)?10:1)*a.keyStep.value,n=([34,37,40].includes(e.keyCode)?-1:1)*(!0===a.isReversed.value?-1:1)*(!0===t.vertical?-1:1)*o;if("both"===a.focus.value){const e=u.value.max-u.value.min,t=Le(a.roundValueFn.value(u.value.min+n),a.innerMin.value,a.innerMax.value-e);u.value={min:t,max:a.roundValueFn.value(t+e)}}else{if(!1===a.focus.value)return;{const e=a.focus.value;u.value={...u.value,[e]:Le(a.roundValueFn.value(u.value[e]+n),"min"===e?a.innerMin.value:u.value.min,"max"===e?a.innerMax.value:u.value.max)}}}C()}return()=>{const o=l.getContent(f,y,h,e=>{e.push(_(),k())});return e.h("div",{ref:i,class:"q-range "+a.classes.value+(null===t.modelValue.min||null===t.modelValue.max?" q-slider--no-value":""),...a.attributes.value,"aria-valuenow":t.modelValue.min+"|"+t.modelValue.max},o)}}}),Uu=$e({name:"QRating",props:{...We,...oa,modelValue:{type:Number,required:!0},max:{type:[String,Number],default:5},icon:[String,Array],iconHalf:[String,Array],iconSelected:[String,Array],iconAriaLabel:[String,Array],color:[String,Array],colorHalf:[String,Array],colorSelected:[String,Array],noReset:Boolean,noDimming:Boolean,readonly:Boolean,disable:Boolean},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=Ke(t),i=na(t),r=aa(i),s=e.ref(0);let u={};const c=e.computed(()=>!0!==t.readonly&&!0!==t.disable),d=e.computed(()=>"q-rating row inline items-center"+` q-rating--${!0===c.value?"":"non-"}editable`+(!0===t.noDimming?" q-rating--no-dimming":"")+(!0===t.disable?" disabled":"")+(void 0!==t.color&&!1===Array.isArray(t.color)?` text-${t.color}`:"")),v=e.computed(()=>{const e=!0===Array.isArray(t.icon)?t.icon.length:0,o=!0===Array.isArray(t.iconSelected)?t.iconSelected.length:0,n=!0===Array.isArray(t.iconHalf)?t.iconHalf.length:0,a=!0===Array.isArray(t.color)?t.color.length:0,l=!0===Array.isArray(t.colorSelected)?t.colorSelected.length:0,i=!0===Array.isArray(t.colorHalf)?t.colorHalf.length:0;return{iconLen:e,icon:e>0?t.icon[e-1]:t.icon,selIconLen:o,selIcon:o>0?t.iconSelected[o-1]:t.iconSelected,halfIconLen:n,halfIcon:n>0?t.iconHalf[o-1]:t.iconHalf,colorLen:a,color:a>0?t.color[a-1]:t.color,selColorLen:l,selColor:l>0?t.colorSelected[l-1]:t.colorSelected,halfColorLen:i,halfColor:i>0?t.colorHalf[i-1]:t.colorHalf}}),p=e.computed(()=>{if("string"===typeof t.iconAriaLabel){const e=0!==t.iconAriaLabel.length?`${t.iconAriaLabel} `:"";return t=>`${e}${t}`}if(!0===Array.isArray(t.iconAriaLabel)){const e=t.iconAriaLabel.length;if(e>0)return o=>t.iconAriaLabel[Math.min(o,e)-1]}return(e,t)=>`${t} ${e}`}),m=e.computed(()=>{const e=[],o=v.value,n=Math.ceil(t.modelValue),l=!0===c.value?0:null,i=void 0===t.iconHalf||n===t.modelValue?-1:n;for(let r=1;r<=t.max;r++){const u=0===s.value&&t.modelValue>=r||s.value>0&&s.value>=r,c=i===r&&s.value<r,d=s.value>0&&(!0===c?n:t.modelValue)>=r&&s.value<r,v=!0===c?r<=o.halfColorLen?t.colorHalf[r-1]:o.halfColor:void 0!==o.selColor&&!0===u?r<=o.selColorLen?t.colorSelected[r-1]:o.selColor:r<=o.colorLen?t.color[r-1]:o.color,m=(!0===c?r<=o.halfIconLen?t.iconHalf[r-1]:o.halfIcon:void 0===o.selIcon||!0!==u&&!0!==d?r<=o.iconLen?t.icon[r-1]:o.icon:r<=o.selIconLen?t.iconSelected[r-1]:o.selIcon)||a.iconSet.rating.icon;e.push({name:(!0===c?r<=o.halfIconLen?t.iconHalf[r-1]:o.halfIcon:void 0===o.selIcon||!0!==u&&!0!==d?r<=o.iconLen?t.icon[r-1]:o.icon:r<=o.selIconLen?t.iconSelected[r-1]:o.selIcon)||a.iconSet.rating.icon,attrs:{tabindex:l,role:"radio","aria-checked":t.modelValue===r?"true":"false","aria-label":p.value(r,m)},iconClass:"q-rating__icon"+(!0===u||!0===c?" q-rating__icon--active":"")+(!0===d?" q-rating__icon--exselected":"")+(s.value===r?" q-rating__icon--hovered":"")+(void 0!==v?` text-${v}`:"")})}return e}),f=e.computed(()=>{const e={role:"radiogroup"};return!0===t.disable&&(e["aria-disabled"]="true"),!0===t.readonly&&(e["aria-readonly"]="true"),e});function h(e){if(!0===c.value){const o=Le(parseInt(e,10),1,parseInt(t.max,10)),a=!0!==t.noReset&&t.modelValue===o?0:o;a!==t.modelValue&&n("update:modelValue",a),s.value=0}}function g(e){!0===c.value&&(s.value=e)}function b(e,t){switch(e.keyCode){case 13:case 32:return h(t),$(e);case 37:case 40:return u[`rt${t-1}`]&&u[`rt${t-1}`].focus(),$(e);case 39:case 38:return u[`rt${t+1}`]&&u[`rt${t+1}`].focus(),$(e)}}function y(){s.value=0}return e.onBeforeUpdate(()=>{u={}}),()=>{const n=[];return m.value.forEach(({iconClass:t,name:a,attrs:l},i)=>{const r=i+1;n.push(e.h("div",{key:r,ref:e=>{u[`rt${r}`]=e},class:"q-rating__icon-container flex flex-center",...l,onClick(){h(r)},onMouseover(){g(r)},onMouseout:y,onFocus(){g(r)},onBlur:y,onKeyup(e){b(e,r)}},Ze(o[`tip-${r}`],[e.h(mt,{class:t,name:a})])))}),void 0!==t.name&&!0!==t.disable&&r(n,"push"),e.h("div",{class:d.value,style:l.value,...f.value},n)}}}),Wu=$e({name:"QResponsive",props:zs,setup(t,{slots:o}){const n=Es(t);return()=>e.h("div",{class:"q-responsive"},[e.h("div",{class:"q-responsive__filler overflow-hidden"},[e.h("div",{style:n.value})]),e.h("div",{class:"q-responsive__content absolute-full fit"},Ye(o.default))])}});const Ku=["vertical","horizontal"],Yu={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},Xu={prevent:!0,mouse:!0,mouseAllDir:!0},Zu=e=>e>=250?50:Math.ceil(e/5);var Gu=$e({name:"QScrollArea",props:{...bt,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(t,{slots:o,emit:n}){const a=e.ref(!1),l=e.ref(!1),i=e.ref(!1),r={vertical:e.ref(0),horizontal:e.ref(0)},s={vertical:{ref:e.ref(null),position:e.ref(0),size:e.ref(0)},horizontal:{ref:e.ref(null),position:e.ref(0),size:e.ref(0)}},{proxy:u}=e.getCurrentInstance(),c=yt(t,u.$q);let d,v=null;const p=e.ref(null),m=e.computed(()=>"q-scrollarea"+(!0===c.value?" q-scrollarea--dark":""));s.vertical.percentage=e.computed(()=>{const e=s.vertical.size.value-r.vertical.value;if(e<=0)return 0;const t=Le(s.vertical.position.value/e,0,1);return Math.round(1e4*t)/1e4}),s.vertical.thumbHidden=e.computed(()=>!0!==(null===t.visible?i.value:t.visible)&&!1===a.value&&!1===l.value||s.vertical.size.value<=r.vertical.value+1),s.vertical.thumbStart=e.computed(()=>s.vertical.percentage.value*(r.vertical.value-s.vertical.thumbSize.value)),s.vertical.thumbSize=e.computed(()=>Math.round(Le(r.vertical.value*r.vertical.value/s.vertical.size.value,Zu(r.vertical.value),r.vertical.value))),s.vertical.style=e.computed(()=>{return{...t.thumbStyle,...t.verticalThumbStyle,top:`${s.vertical.thumbStart.value}px`,height:`${s.vertical.thumbSize.value}px`}}),s.vertical.thumbClass=e.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(!0===s.vertical.thumbHidden.value?" q-scrollarea__thumb--invisible":"")),s.vertical.barClass=e.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(!0===s.vertical.thumbHidden.value?" q-scrollarea__bar--invisible":"")),s.horizontal.percentage=e.computed(()=>{const e=s.horizontal.size.value-r.horizontal.value;if(e<=0)return 0;const t=Le(Math.abs(s.horizontal.position.value)/e,0,1);return Math.round(1e4*t)/1e4}),s.horizontal.thumbHidden=e.computed(()=>!0!==(null===t.visible?i.value:t.visible)&&!1===a.value&&!1===l.value||s.horizontal.size.value<=r.horizontal.value+1),s.horizontal.thumbStart=e.computed(()=>s.horizontal.percentage.value*(r.horizontal.value-s.horizontal.thumbSize.value)),s.horizontal.thumbSize=e.computed(()=>Math.round(Le(r.horizontal.value*r.horizontal.value/s.horizontal.size.value,Zu(r.horizontal.value),r.horizontal.value))),s.horizontal.style=e.computed(()=>{return{...t.thumbStyle,...t.horizontalThumbStyle,[!0===u.$q.lang.rtl?"right":"left"]:`${s.horizontal.thumbStart.value}px`,width:`${s.horizontal.thumbSize.value}px`}}),s.horizontal.thumbClass=e.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(!0===s.horizontal.thumbHidden.value?" q-scrollarea__thumb--invisible":"")),s.horizontal.barClass=e.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(!0===s.horizontal.thumbHidden.value?" q-scrollarea__bar--invisible":""));const f=e.computed(()=>!0===s.vertical.thumbHidden.value&&!0===s.horizontal.thumbHidden.value?t.contentStyle:t.contentActiveStyle),h=[[Xa,e=>{k(e,"vertical")},void 0,{vertical:!0,...Xu}]],g=[[Xa,e=>{k(e,"horizontal")},void 0,{horizontal:!0,...Xu}]];function b(){const e={};return Ku.forEach(t=>{const o=s[t];e[t+"Position"]=o.position.value,e[t+"Percentage"]=o.percentage.value,e[t+"Size"]=o.size.value,e[t+"ContainerSize"]=r[t].value}),e}const y=L(()=>{const e=b();e.ref=u,n("scroll",e)},0);function w(e,t,o){if(!1===Ku.includes(e))return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");const n="vertical"===e?un:cn;n(p.value,t,o)}function x({height:e,width:t}){let o=!1;r.vertical.value!==e&&(r.vertical.value=e,o=!0),r.horizontal.value!==t&&(r.horizontal.value=t,o=!0),!0===o&&M()}function _({position:e}){let t=!1;s.vertical.position.value!==e.top&&(s.vertical.position.value=e.top,t=!0),s.horizontal.position.value!==e.left&&(s.horizontal.position.value=e.left,t=!0),!0===t&&M()}function S({height:e,width:t}){s.horizontal.size.value!==t&&(s.horizontal.size.value=t,M()),s.vertical.size.value!==e&&(s.vertical.size.value=e,M())}function k(e,t){const o=s[t];if(!0===e.isFirst){if(!0===o.thumbHidden.value)return;d=o.position.value,l.value=!0}else if(!0!==l.value)return;!0===e.isFinal&&(l.value=!1);const n=Yu[t],a=r[t].value,i=(o.size.value-a)/(a-o.thumbSize.value),u=e.distance[n.dist],c=d+(e.direction===n.dir?1:-1)*u*i;T(c,t)}function C(e,t){const o=s[t];if(!0!==o.thumbHidden.value){const n=e[Yu[t].offset];if(n<o.thumbStart.value||n>o.thumbStart.value+o.thumbSize.value){const e=n-o.thumbSize.value/2;T(e/r[t].value*o.size.value,t)}null!==o.ref.value&&o.ref.value.dispatchEvent(new MouseEvent(e.type,e))}}function q(e){C(e,"vertical")}function $(e){C(e,"horizontal")}function M(){a.value=!0,null!==v&&clearTimeout(v),v=setTimeout(()=>{v=null,a.value=!1},t.delay),void 0!==t.onScroll&&y()}function T(e,t){p.value[Yu[t].scroll]=e}let B=null;function A(){null!==B&&clearTimeout(B),B=setTimeout(()=>{B=null,i.value=!0},u.$q.platform.is.ios?50:0)}function O(){null!==B&&(clearTimeout(B),B=null),i.value=!1}let V=null;return e.watch(()=>u.$q.lang.rtl,e=>{null!==p.value&&cn(p.value,Math.abs(s.horizontal.position.value)*(!0===e?-1:1))}),e.onDeactivated(()=>{V={top:s.vertical.position.value,left:s.horizontal.position.value}}),e.onActivated(()=>{if(null===V)return;const e=p.value;null!==e&&(cn(e,V.left),un(e,V.top))}),e.onBeforeUnmount(y.cancel),Object.assign(u,{getScrollTarget:()=>p.value,getScroll:b,getScrollPosition:()=>({top:s.vertical.position.value,left:s.horizontal.position.value}),getScrollPercentage:()=>({top:s.vertical.percentage.value,left:s.horizontal.percentage.value}),setScrollPosition:w,setScrollPercentage(e,t,o){w(e,t*(s[e].size.value-r[e].value)*("horizontal"===e&&!0===u.$q.lang.rtl?-1:1),o)}}),()=>{return e.h("div",{class:m.value,onMouseenter:A,onMouseleave:O},[e.h("div",{ref:p,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:void 0!==t.tabindex?t.tabindex:void 0},[e.h("div",{class:"q-scrollarea__content absolute",style:f.value},Ze(o.default,[e.h(ul,{debounce:0,onResize:S})])),e.h(pu,{axis:"both",onScroll:_})]),e.h(ul,{debounce:0,onResize:x}),e.h("div",{class:s.vertical.barClass.value,style:[t.barStyle,t.verticalBarStyle],"aria-hidden":"true",onMousedown:q}),e.h("div",{class:s.horizontal.barClass.value,style:[t.barStyle,t.horizontalBarStyle],"aria-hidden":"true",onMousedown:$}),e.withDirectives(e.h("div",{ref:s.vertical.ref,class:s.vertical.thumbClass.value,style:s.vertical.style.value,"aria-hidden":"true"}),h),e.withDirectives(e.h("div",{ref:s.horizontal.ref,class:s.horizontal.thumbClass.value,style:s.horizontal.style.value,"aria-hidden":"true"}),g)])}}});const Ju=1e3,ec=["start","center","end","start-force","center-force","end-force"],tc=Array.prototype.filter,oc=void 0===window.getComputedStyle(document.body).overflowAnchor?h:function(e,t){null!==e&&(void 0!==e._qOverflowAnimationFrame&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(null===e)return;e._qOverflowAnimationFrame=void 0;const o=e.children||[];tc.call(o,e=>e.dataset&&void 0!==e.dataset.qVsAnchor).forEach(e=>{delete e.dataset.qVsAnchor});const n=o[t];n&&n.dataset&&(n.dataset.qVsAnchor="")}))};function nc(e,t){return e+t}function ac(e,t,o,n,a,l,i,r){const s=e===window?document.scrollingElement||document.documentElement:e,u=!0===a?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-i-r,scrollMaxSize:0,offsetStart:-i,offsetEnd:-r};if(!0===a?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=s.scrollLeft,c.scrollViewSize+=s.clientWidth),c.scrollMaxSize=s.scrollWidth,!0===l&&(c.scrollStart=(!0===cl?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=s.scrollTop,c.scrollViewSize+=s.clientHeight),c.scrollMaxSize=s.scrollHeight),null!==o)for(let d=o.previousElementSibling;null!==d;d=d.previousElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetStart+=d[u]);if(null!==n)for(let d=n.nextElementSibling;null!==d;d=d.nextElementSibling)!1===d.classList.contains("q-virtual-scroll--skip")&&(c.offsetEnd+=d[u]);if(t!==e){const o=s.getBoundingClientRect(),n=t.getBoundingClientRect();!0===a?(c.offsetStart+=n.left-o.left,c.offsetEnd-=n.width):(c.offsetStart+=n.top-o.top,c.offsetEnd-=n.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function lc(e,t,o,n){"end"===t&&(t=(e===window?document.body:e)[!0===o?"scrollWidth":"scrollHeight"]),e===window?!0===o?(!0===n&&(t=(!0===cl?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):!0===o?(!0===n&&(t=(!0===cl?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function ic(e,t,o,n){if(o>=n)return 0;const a=t.length,l=Math.floor(o/Ju),i=Math.floor((n-1)/Ju)+1;let r=e.slice(l,i).reduce(nc,0);return o%Ju!==0&&(r-=t.slice(l*Ju,o).reduce(nc,0)),n%Ju!==0&&n!==a&&(r-=t.slice(n,i*Ju).reduce(nc,0)),r}const rc={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},sc=Object.keys(rc),uc={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...rc};function cc({virtualScrollLength:t,getVirtualScrollTarget:o,getVirtualScrollEl:n,virtualScrollItemSizeComputed:a}){const l=e.getCurrentInstance(),{props:i,emit:r,proxy:s}=l,{$q:u}=s;let c,d,v,p,m=[];const f=e.ref(0),h=e.ref(0),g=e.ref({}),b=e.ref(null),y=e.ref(null),w=e.ref(null),x=e.ref({from:0,to:0}),_=e.computed(()=>void 0!==i.tableColspan?i.tableColspan:100);void 0===a&&(a=e.computed(()=>i.virtualScrollItemSize));const S=e.computed(()=>a.value+";"+i.virtualScrollHorizontal),k=e.computed(()=>S.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);function C(){O(d,!0)}function q(e){O(void 0===e?d:e)}function $(e,a){const l=o();if(void 0===l||null===l||8===l.nodeType)return;const r=ac(l,n(),b.value,y.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);v!==r.scrollViewSize&&V(r.scrollViewSize),T(l,r,Math.min(t.value-1,Math.max(0,parseInt(e,10)||0)),0,ec.indexOf(a)>-1?a:d>-1&&e>d?"end":"start")}function M(){const e=o();if(void 0===e||null===e||8===e.nodeType)return;const a=ac(e,n(),b.value,y.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),l=t.value-1,r=a.scrollMaxSize-a.offsetStart-a.offsetEnd-h.value;if(c===a.scrollStart)return;if(a.scrollMaxSize<=0)return void T(e,a,0,0);v!==a.scrollViewSize&&V(a.scrollViewSize),B(x.value.from);const s=Math.floor(a.scrollMaxSize-Math.max(a.scrollViewSize,a.offsetEnd)-Math.min(p[l],a.scrollViewSize/2));if(s>0&&Math.ceil(a.scrollStart)>=s)return void T(e,a,l,a.scrollMaxSize-a.offsetEnd-m.reduce(nc,0));let d=0,g=a.scrollStart-a.offsetStart,w=g;if(g<=r&&g+a.scrollViewSize>=f.value)g-=f.value,d=x.value.from,w=g;else for(let t=0;g>=m[t]&&d<l;t++)g-=m[t],d+=Ju;while(g>0&&d<l)g-=p[d],g>-a.scrollViewSize?(d++,w=g):w=p[d]+g;T(e,a,d,w)}function T(e,o,n,a,l){const r="string"===typeof l&&l.indexOf("-force")>-1,s=!0===r?l.replace("-force",""):l,d=void 0!==s?s:"start";let v=Math.max(0,n-g.value[d]),b=v+g.value.total;b>t.value&&(b=t.value,v=Math.max(0,b-g.value.total)),c=o.scrollStart;const y=v!==x.value.from||b!==x.value.to;if(!1===y&&void 0===s)return void E(n);const{activeElement:_}=document,S=w.value;!0===y&&null!==S&&S!==_&&!0===S.contains(_)&&(S.addEventListener("focusout",A),setTimeout(()=>{null!==S&&S.removeEventListener("focusout",A)})),oc(S,n-v);const k=void 0!==s?p.slice(v,n).reduce(nc,0):0;if(!0===y){const e=b>=x.value.from&&v<=x.value.to?x.value.to:b;x.value={from:v,to:e},f.value=ic(m,p,0,v),h.value=ic(m,p,b,t.value),requestAnimationFrame(()=>{x.value.to!==b&&c===o.scrollStart&&(x.value={from:x.value.from,to:b},h.value=ic(m,p,b,t.value))})}requestAnimationFrame(()=>{if(c!==o.scrollStart)return;!0===y&&B(v);const t=p.slice(v,n).reduce(nc,0),l=t+o.offsetStart+f.value,d=l+p[n];let m=l+a;if(void 0!==s){const e=t-k,a=o.scrollStart+e;m=!0!==r&&a<l&&d<a+o.scrollViewSize?a:"end"===s?d-o.scrollViewSize:l-("start"===s?0:Math.round((o.scrollViewSize-p[n])/2))}c=m,lc(e,m,i.virtualScrollHorizontal,u.lang.rtl),E(n)})}function B(e){const t=w.value;if(t){const o=tc.call(t.children,e=>e.classList&&!1===e.classList.contains("q-virtual-scroll--skip")),n=o.length,a=!0===i.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight;let l,r,s=e;for(let e=0;e<n;){l=a(o[e]),e++;while(e<n&&!0===o[e].classList.contains("q-virtual-scroll--with-prev"))l+=a(o[e]),e++;r=l-p[s],0!==r&&(p[s]+=r,m[Math.floor(s/Ju)]+=r),s++}}}function A(){null!==w.value&&void 0!==w.value&&w.value.focus()}function O(o,n){const l=1*a.value;!0!==n&&!1!==Array.isArray(p)||(p=[]);const i=p.length;p.length=t.value;for(let e=t.value-1;e>=i;e--)p[e]=l;const r=Math.floor((t.value-1)/Ju);m=[];for(let e=0;e<=r;e++){let o=0;const n=Math.min((e+1)*Ju,t.value);for(let t=e*Ju;t<n;t++)o+=p[t];m.push(o)}d=-1,c=void 0,f.value=ic(m,p,0,x.value.from),h.value=ic(m,p,x.value.to,t.value),o>=0?(B(x.value.from),e.nextTick(()=>{$(o)})):P()}function V(e){if(void 0===e&&"undefined"!==typeof window){const t=o();void 0!==t&&null!==t&&8!==t.nodeType&&(e=ac(t,n(),b.value,y.value,i.virtualScrollHorizontal,u.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}v=e;const t=parseFloat(i.virtualScrollSliceRatioBefore)||0,l=parseFloat(i.virtualScrollSliceRatioAfter)||0,r=1+t+l,s=void 0===e||e<=0?1:Math.ceil(e/a.value),c=Math.max(1,s,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/r));g.value={total:Math.ceil(c*r),start:Math.ceil(c*t),center:Math.ceil(c*(.5+t)),end:Math.ceil(c*(1+t)),view:s}}function z(t,o){const n=!0===i.virtualScrollHorizontal?"width":"height",l={["--q-virtual-scroll-item-"+n]:a.value+"px"};return["tbody"===t?e.h(t,{class:"q-virtual-scroll__padding",key:"before",ref:b},[e.h("tr",[e.h("td",{style:{[n]:`${f.value}px`,...l},colspan:_.value})])]):e.h(t,{class:"q-virtual-scroll__padding",key:"before",ref:b,style:{[n]:`${f.value}px`,...l}}),e.h(t,{class:"q-virtual-scroll__content",key:"content",ref:w,tabindex:-1},o.flat()),"tbody"===t?e.h(t,{class:"q-virtual-scroll__padding",key:"after",ref:y},[e.h("tr",[e.h("td",{style:{[n]:`${h.value}px`,...l},colspan:_.value})])]):e.h(t,{class:"q-virtual-scroll__padding",key:"after",ref:y,style:{[n]:`${h.value}px`,...l}})]}function E(e){d!==e&&(void 0!==i.onVirtualScroll&&r("virtualScroll",{index:e,from:x.value.from,to:x.value.to-1,direction:e<d?"decrease":"increase",ref:s}),d=e)}e.watch(k,()=>{V()}),e.watch(S,C),V();const P=L(M,!0===u.platform.is.ios?120:35);e.onBeforeMount(()=>{V()});let F=!1;return e.onDeactivated(()=>{F=!0}),e.onActivated(()=>{if(!0!==F)return;const e=o();void 0!==c&&void 0!==e&&null!==e&&8!==e.nodeType?lc(e,c,i.virtualScrollHorizontal,u.lang.rtl):$(d)}),e.onBeforeUnmount(()=>{P.cancel()}),Object.assign(s,{scrollTo:$,reset:C,refresh:q}),{virtualScrollSliceRange:x,virtualScrollSliceSizeComputed:g,setVirtualScrollSize:V,onVirtualScrollEvt:P,localResetVirtualScroll:O,padVirtualScroll:z,scrollTo:$,reset:C,refresh:q}}const dc=e=>["add","add-unique","toggle"].includes(e),vc=".*+?^${}()|[]\\",pc=Object.keys(ys);var mc=$e({name:"QSelect",inheritAttrs:!1,props:{...uc,...oa,...ys,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:dc},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...ws,"add","remove","inputValue","newValue","keyup","keypress","keydown","filterAbort"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=e.ref(!1),r=e.ref(!1),s=e.ref(-1),u=e.ref(""),c=e.ref(!1),d=e.ref(!1);let v,p,m,f,h,g,b,y=null,w=null,x=null;const _=e.ref(null),S=e.ref(null),k=e.ref(null),M=e.ref(null),T=e.ref(null),B=la(t),A=eu(Ee),L=e.computed(()=>Array.isArray(t.options)?t.options.length:0),O=e.computed(()=>void 0===t.virtualScrollItemSize?!0===t.optionsDense?24:48:t.virtualScrollItemSize),{virtualScrollSliceRange:V,virtualScrollSliceSizeComputed:z,localResetVirtualScroll:E,padVirtualScroll:P,onVirtualScrollEvt:F,scrollTo:I,setVirtualScrollSize:R}=cc({virtualScrollLength:L,getVirtualScrollTarget:Ae,getVirtualScrollEl:Be,virtualScrollItemSizeComputed:O}),N=xs(),D=e.computed(()=>{const e=!0===t.mapOptions&&!0!==t.multiple,o=void 0===t.modelValue||null===t.modelValue&&!0!==e?[]:!0===t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue];if(!0===t.mapOptions&&!0===Array.isArray(t.options)){const n=!0===t.mapOptions&&void 0!==v?v:[],a=o.map(e=>_e(e,n));return null===t.modelValue&&!0===e?a.filter(e=>null!==e):a}return o}),j=e.computed(()=>{const e={};return pc.forEach(o=>{const n=t[o];void 0!==n&&(e[o]=n)}),e}),H=e.computed(()=>null===t.optionsDark?N.isDark.value:t.optionsDark),Q=e.computed(()=>bs(D.value)),U=e.computed(()=>{let e="q-field__input q-placeholder col";return!0===t.hideSelected||0===D.value.length?[e,t.inputClass]:(e+=" q-field__input--padding",void 0===t.inputClass?e:[e,t.inputClass])}),W=e.computed(()=>(!0===t.virtualScrollHorizontal?"q-virtual-scroll--horizontal":"")+(t.popupContentClass?" "+t.popupContentClass:"")),X=e.computed(()=>0===L.value),Z=e.computed(()=>D.value.map(e=>ce.value(e)).join(", ")),G=e.computed(()=>void 0!==t.displayValue?t.displayValue:Z.value),J=e.computed(()=>!0===t.optionsHtml?()=>!0:e=>void 0!==e&&null!==e&&!0===e.html),ee=e.computed(()=>!0===t.displayValueHtml||void 0===t.displayValue&&(!0===t.optionsHtml||D.value.some(J.value))),te=e.computed(()=>!0===N.focused.value?t.tabindex:-1),oe=e.computed(()=>{const e={tabindex:t.tabindex,role:"combobox","aria-label":t.label,"aria-readonly":!0===t.readonly?"true":"false","aria-autocomplete":!0===t.useInput?"list":"none","aria-expanded":!0===i.value?"true":"false","aria-controls":`${N.targetUid.value}_lb`};return s.value>=0&&(e["aria-activedescendant"]=`${N.targetUid.value}_${s.value}`),e}),ne=e.computed(()=>({id:`${N.targetUid.value}_lb`,role:"listbox","aria-multiselectable":!0===t.multiple?"true":"false"})),ae=e.computed(()=>{return D.value.map((e,t)=>({index:t,opt:e,html:J.value(e),selected:!0,removeAtIndex:ge,toggleOption:ye,tabindex:te.value}))}),le=e.computed(()=>{if(0===L.value)return[];const{from:e,to:o}=V.value;return t.options.slice(e,o).map((o,n)=>{const a=!0===de.value(o),r=!0===ke(o),u=e+n,c={clickable:!0,active:r,activeClass:se.value,manualFocus:!0,focused:!1,disable:a,tabindex:-1,dense:t.optionsDense,dark:H.value,role:"option","aria-selected":!0===r?"true":"false",id:`${N.targetUid.value}_${u}`,onClick:()=>{ye(o)}};return!0!==a&&(s.value===u&&(c.focused=!0),!0===l.platform.is.desktop&&(c.onMousemove=(()=>{!0===i.value&&we(u)}))),{index:u,opt:o,html:J.value(o),label:ce.value(o),selected:c.active,focused:c.focused,toggleOption:ye,setOptionIndex:we,itemProps:c}})}),ie=e.computed(()=>void 0!==t.dropdownIcon?t.dropdownIcon:l.iconSet.arrow.dropdown),re=e.computed(()=>!1===t.optionsCover&&!0!==t.outlined&&!0!==t.standout&&!0!==t.borderless&&!0!==t.rounded),se=e.computed(()=>void 0!==t.optionsSelectedClass?t.optionsSelectedClass:void 0!==t.color?`text-${t.color}`:""),ue=e.computed(()=>Se(t.optionValue,"value")),ce=e.computed(()=>Se(t.optionLabel,"label")),de=e.computed(()=>Se(t.optionDisable,"disable")),ve=e.computed(()=>D.value.map(e=>ue.value(e))),pe=e.computed(()=>{const e={onInput:Ee,onChange:A,onKeydown:Te,onKeyup:$e,onKeypress:Me,onFocus:Ce,onClick(e){!0===p&&C(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=A,e});function me(e){return!0===t.emitValue?ue.value(e):e}function fe(e){if(e>-1&&e<D.value.length)if(!0===t.multiple){const o=t.modelValue.slice();n("remove",{index:e,value:o.splice(e,1)[0]}),n("update:modelValue",o)}else n("update:modelValue",null)}function ge(e){fe(e),N.focus()}function be(e,o){const a=me(e);if(!0!==t.multiple)return!0===t.fillInput&&Fe(ce.value(e),!0,!0),void n("update:modelValue",a);if(0===D.value.length)return n("add",{index:0,value:a}),void n("update:modelValue",!0===t.multiple?[a]:a);if(!0===o&&!0===ke(e))return;if(void 0!==t.maxValues&&t.modelValue.length>=t.maxValues)return;const l=t.modelValue.slice();n("add",{index:l.length,value:a}),l.push(a),n("update:modelValue",l)}function ye(e,o){if(!0!==N.editable.value||void 0===e||!0===de.value(e))return;const a=ue.value(e);if(!0!==t.multiple)return!0!==o&&(Fe(!0===t.fillInput?ce.value(e):"",!0,!0),Ge()),null!==S.value&&S.value.focus(),void(0!==D.value.length&&!0===he(ue.value(D.value[0]),a)||n("update:modelValue",!0===t.emitValue?a:e));if((!0!==p||!0===c.value)&&N.focus(),Ce(),0===D.value.length){const o=!0===t.emitValue?a:e;return n("add",{index:0,value:o}),void n("update:modelValue",!0===t.multiple?[o]:o)}const l=t.modelValue.slice(),i=ve.value.findIndex(e=>he(e,a));if(i>-1)n("remove",{index:i,value:l.splice(i,1)[0]});else{if(void 0!==t.maxValues&&l.length>=t.maxValues)return;const o=!0===t.emitValue?a:e;n("add",{index:l.length,value:o}),l.push(o)}n("update:modelValue",l)}function we(e){if(!0!==l.platform.is.desktop)return;const t=e>-1&&e<L.value?e:-1;s.value!==t&&(s.value=t)}function xe(e=1,o){if(!0===i.value){let n=s.value;do{n=Oe(n+e,-1,L.value-1)}while(-1!==n&&n!==s.value&&!0===de.value(t.options[n]));s.value!==n&&(we(n),I(n),!0!==o&&!0===t.useInput&&!0===t.fillInput&&Pe(n>=0?ce.value(t.options[n]):f,!0))}}function _e(e,o){const n=t=>he(ue.value(t),e);return t.options.find(n)||o.find(n)||e}function Se(e,t){const o=void 0!==e?e:t;return"function"===typeof o?o:e=>null!==e&&"object"===typeof e&&o in e?e[o]:e}function ke(e){const t=ue.value(e);return void 0!==ve.value.find(e=>he(e,t))}function Ce(e){!0===t.useInput&&null!==S.value&&(void 0===e||S.value===e.target&&e.target.value===Z.value)&&S.value.select()}function qe(e){!0===Y(e,27)&&!0===i.value&&(C(e),Ge(),Je()),n("keyup",e)}function $e(e){const{value:o}=e.target;if(void 0===e.keyCode)if(e.target.value="",null!==y&&(clearTimeout(y),y=null),null!==w&&(clearTimeout(w),w=null),Je(),"string"===typeof o&&0!==o.length){const e=o.toLocaleLowerCase(),n=o=>{const n=t.options.find(t=>o.value(t).toLocaleLowerCase()===e);return void 0!==n&&(-1===D.value.indexOf(n)?ye(n):Ge(),!0)},a=e=>{!0!==n(ue)&&!0!==n(ce)&&!0!==e&&Ie(o,!0,()=>a(!0))};a()}else N.clearValue(e);else qe(e)}function Me(e){n("keypress",e)}function Te(o){if(n("keydown",o),!0===K(o))return;const a=0!==u.value.length&&(void 0!==t.newValueMode||void 0!==t.onNewValue),l=!0!==o.shiftKey&&!0!==t.multiple&&(s.value>-1||!0===a);if(27===o.keyCode)return void q(o);if(9===o.keyCode&&!1===l)return void Ye();if(void 0===o.target||o.target.id!==N.targetUid.value||!0!==N.editable.value)return;if(40===o.keyCode&&!0!==N.innerLoading.value&&!1===i.value)return $(o),void Xe();if(8===o.keyCode&&(!0===t.useChips||!0===t.clearable)&&!0!==t.hideSelected&&0===u.value.length)return void(!0===t.multiple&&!0===Array.isArray(t.modelValue)?fe(t.modelValue.length-1):!0!==t.multiple&&null!==t.modelValue&&n("update:modelValue",null));35!==o.keyCode&&36!==o.keyCode||"string"===typeof u.value&&0!==u.value.length||($(o),s.value=-1,xe(36===o.keyCode?1:-1,t.multiple)),33!==o.keyCode&&34!==o.keyCode||void 0===z.value||($(o),s.value=Math.max(-1,Math.min(L.value,s.value+(33===o.keyCode?-1:1)*z.value.view)),xe(33===o.keyCode?1:-1,t.multiple)),38!==o.keyCode&&40!==o.keyCode||($(o),xe(38===o.keyCode?-1:1,t.multiple));const r=L.value;if((void 0===g||b<Date.now())&&(g=""),r>0&&!0!==t.useInput&&void 0!==o.key&&1===o.key.length&&!1===o.altKey&&!1===o.ctrlKey&&!1===o.metaKey&&(32!==o.keyCode||0!==g.length)){!0!==i.value&&Xe(o);const n=o.key.toLocaleLowerCase(),a=1===g.length&&g[0]===n;b=Date.now()+1500,!1===a&&($(o),g+=n);const l=new RegExp("^"+g.split("").map(e=>vc.indexOf(e)>-1?"\\"+e:e).join(".*"),"i");let u=s.value;if(!0===a||u<0||!0!==l.test(ce.value(t.options[u])))do{u=Oe(u+1,-1,r-1)}while(u!==s.value&&(!0===de.value(t.options[u])||!0!==l.test(ce.value(t.options[u]))));s.value!==u&&e.nextTick(()=>{we(u),I(u),u>=0&&!0===t.useInput&&!0===t.fillInput&&Pe(ce.value(t.options[u]),!0)})}else if(13===o.keyCode||32===o.keyCode&&!0!==t.useInput&&""===g||9===o.keyCode&&!1!==l)if(9!==o.keyCode&&$(o),s.value>-1&&s.value<r)ye(t.options[s.value]);else{if(!0===a){const e=(e,o)=>{if(o){if(!0!==dc(o))return}else o=t.newValueMode;if(Fe("",!0!==t.multiple,!0),void 0===e||null===e)return;const n="toggle"===o?ye:be;n(e,"add-unique"===o),!0!==t.multiple&&(null!==S.value&&S.value.focus(),Ge())};if(void 0!==t.onNewValue?n("newValue",u.value,e):e(u.value),!0!==t.multiple)return}!0===i.value?Ye():!0!==N.innerLoading.value&&Xe()}}function Be(){return!0===p?T.value:null!==k.value&&null!==k.value.contentEl?k.value.contentEl:void 0}function Ae(){return Be()}function Le(){return!0===t.hideSelected?[]:void 0!==o["selected-item"]?ae.value.map(e=>o["selected-item"](e)).slice():void 0!==o.selected?[].concat(o.selected()):!0===t.useChips?ae.value.map((o,n)=>e.h(Na,{key:"option-"+n,removable:!0===N.editable.value&&!0!==de.value(o.opt),dense:!0,textColor:t.color,tabindex:te.value,onRemove(){o.removeAtIndex(n)}},()=>e.h("span",{class:"ellipsis",[!0===o.html?"innerHTML":"textContent"]:ce.value(o.opt)}))):[e.h("span",{[!0===ee.value?"innerHTML":"textContent"]:G.value})]}function Ve(){if(!0===X.value)return void 0!==o["no-option"]?o["no-option"]({inputValue:u.value}):void 0;const t=void 0!==o.option?o.option:t=>{return e.h(Vr,{key:t.index,...t.itemProps},()=>{return e.h(zr,()=>e.h(Zr,()=>e.h("span",{[!0===t.html?"innerHTML":"textContent"]:t.label})))})};let n=P("div",le.value.map(t));return void 0!==o["before-options"]&&(n=o["before-options"]().concat(n)),Ze(o["after-options"],n)}function ze(o,n){const a=!0===n?{...oe.value,...N.splitAttrs.attributes.value}:void 0,l={ref:!0===n?S:void 0,key:"i_t",class:U.value,style:t.inputStyle,value:void 0!==u.value?u.value:"",type:"search",...a,id:!0===n?N.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":!0===o||!0===t.autofocus||void 0,disabled:!0===t.disable,readonly:!0===t.readonly,...pe.value};return!0!==o&&!0===p&&(!0===Array.isArray(l.class)?l.class=[...l.class,"no-pointer-events"]:l.class+=" no-pointer-events"),e.h("input",l)}function Ee(e){null!==y&&(clearTimeout(y),y=null),null!==w&&(clearTimeout(w),w=null),e&&e.target&&!0===e.target.qComposing||(Pe(e.target.value||""),m=!0,f=u.value,!0===N.focused.value||!0===p&&!0!==c.value||N.focus(),void 0!==t.onFilter&&(y=setTimeout(()=>{y=null,Ie(u.value)},t.inputDebounce)))}function Pe(e,o){u.value!==e&&(u.value=e,!0===o||0===t.inputDebounce||"0"===t.inputDebounce?n("inputValue",e):w=setTimeout(()=>{w=null,n("inputValue",e)},t.inputDebounce))}function Fe(e,o,n){m=!0!==n,!0===t.useInput&&(Pe(e,!0),!0!==o&&!0===n||(f=e),!0!==o&&Ie(e))}function Ie(o,l,r){if(void 0===t.onFilter||!0!==l&&!0!==N.focused.value)return;!0===N.innerLoading.value?n("filterAbort"):(N.innerLoading.value=!0,d.value=!0),""!==o&&!0!==t.multiple&&0!==D.value.length&&!0!==m&&o===ce.value(D.value[0])&&(o="");const s=setTimeout(()=>{!0===i.value&&(i.value=!1)},10);null!==x&&clearTimeout(x),x=s,n("filter",o,(t,o)=>{!0!==l&&!0!==N.focused.value||x!==s||(clearTimeout(x),"function"===typeof t&&t(),d.value=!1,e.nextTick(()=>{N.innerLoading.value=!1,!0===N.editable.value&&(!0===l?!0===i.value&&Ge():!0===i.value?et(!0):i.value=!0),"function"===typeof o&&e.nextTick(()=>{o(a)}),"function"===typeof r&&e.nextTick(()=>{r(a)})}))},()=>{!0===N.focused.value&&x===s&&(clearTimeout(x),N.innerLoading.value=!1,d.value=!1),!0===i.value&&(i.value=!1)})}function Re(){return e.h(Hn,{ref:k,class:W.value,style:t.popupContentStyle,modelValue:i.value,fit:!0!==t.menuShrink,cover:!0===t.optionsCover&&!0!==X.value&&!0!==t.useInput,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:H.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:re.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...ne.value,onScrollPassive:F,onBeforeShow:nt,onBeforeHide:Ne,onShow:De},Ve)}function Ne(e){at(e),Ye()}function De(){R()}function je(e){C(e),null!==S.value&&S.value.focus(),c.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function He(t){C(t),e.nextTick(()=>{c.value=!1})}function Qe(){const n=[e.h(Ss,{class:`col-auto ${N.fieldClass.value}`,...j.value,for:N.targetUid.value,dark:H.value,square:!0,loading:d.value,itemAligned:!1,filled:!0,stackLabel:0!==u.value.length,...N.splitAttrs.listeners.value,onFocus:je,onBlur:He},{...o,rawControl:()=>N.getControl(!0),before:void 0,after:void 0})];return!0===i.value&&n.push(e.h("div",{ref:T,class:W.value+" scroll",style:t.popupContentStyle,...ne.value,onClick:q,onScrollPassive:F},Ve())),e.h(Cr,{ref:M,modelValue:r.value,position:!0===t.useInput?"top":void 0,transitionShow:h,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,onBeforeShow:nt,onBeforeHide:Ue,onHide:We,onShow:Ke},()=>e.h("div",{class:"q-select__dialog"+(!0===H.value?" q-select__dialog--dark q-dark":"")+(!0===c.value?" q-select__dialog--focused":"")},n))}function Ue(e){at(e),null!==M.value&&M.value.__updateRefocusTarget(N.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),N.focused.value=!1}function We(e){Ge(),!1===N.focused.value&&n("blur",e),Je()}function Ke(){const e=document.activeElement;null!==e&&e.id===N.targetUid.value||null===S.value||S.value===e||S.value.focus(),R()}function Ye(){!0!==r.value&&(s.value=-1,!0===i.value&&(i.value=!1),!1===N.focused.value&&(null!==x&&(clearTimeout(x),x=null),!0===N.innerLoading.value&&(n("filterAbort"),N.innerLoading.value=!1,d.value=!1)))}function Xe(n){!0===N.editable.value&&(!0===p?(N.onControlFocusin(n),r.value=!0,e.nextTick(()=>{N.focus()})):N.focus(),void 0!==t.onFilter?Ie(u.value):!0===X.value&&void 0===o["no-option"]||(i.value=!0))}function Ge(){r.value=!1,Ye()}function Je(){!0===t.useInput&&Fe(!0!==t.multiple&&!0===t.fillInput&&0!==D.value.length&&ce.value(D.value[0])||"",!0,!0)}function et(e){let o=-1;if(!0===e){if(0!==D.value.length){const e=ue.value(D.value[0]);o=t.options.findIndex(t=>he(ue.value(t),e))}E(o)}we(o)}function tt(t,o){!0===i.value&&!1===N.innerLoading.value&&(E(-1,!0),e.nextTick(()=>{!0===i.value&&!1===N.innerLoading.value&&(t>o?E():et(!0))}))}function ot(){!1===r.value&&null!==k.value&&k.value.updatePosition()}function nt(e){void 0!==e&&C(e),n("popupShow",e),N.hasPopupOpen=!0,N.onControlFocusin(e)}function at(e){void 0!==e&&C(e),n("popupHide",e),N.hasPopupOpen=!1,N.onControlFocusout(e)}function lt(){p=(!0===l.platform.is.mobile||"dialog"===t.behavior)&&("menu"!==t.behavior&&(!0!==t.useInput||(void 0!==o["no-option"]||void 0!==t.onFilter||!1===X.value))),h=!0===l.platform.is.ios&&!0===p&&!0===t.useInput?"fade":t.transitionShow}return e.watch(D,e=>{v=e,!0===t.useInput&&!0===t.fillInput&&!0!==t.multiple&&!0!==N.innerLoading.value&&(!0!==r.value&&!0!==i.value||!0!==Q.value)&&(!0!==m&&Je(),!0!==r.value&&!0!==i.value||Ie(""))},{immediate:!0}),e.watch(()=>t.fillInput,Je),e.watch(i,et),e.watch(L,tt),e.onBeforeUpdate(lt),e.onUpdated(ot),lt(),e.onBeforeUnmount(()=>{null!==y&&clearTimeout(y),null!==w&&clearTimeout(w)}),Object.assign(a,{showPopup:Xe,hidePopup:Ge,removeAtIndex:fe,add:be,toggleOption:ye,getOptionIndex:()=>s.value,setOptionIndex:we,moveOptionSelection:xe,filter:Ie,updateMenuPosition:ot,updateInputValue:Fe,isOptionSelected:ke,getEmittingOptionValue:me,isOptionDisabled:(...e)=>!0===de.value.apply(null,e),getOptionValue:(...e)=>ue.value.apply(null,e),getOptionLabel:(...e)=>ce.value.apply(null,e)}),Object.assign(N,{innerValue:D,fieldClass:e.computed(()=>`q-select q-field--auto-height q-select--with${!0!==t.useInput?"out":""}-input`+` q-select--with${!0!==t.useChips?"out":""}-chips`+` q-select--${!0===t.multiple?"multiple":"single"}`),inputRef:_,targetRef:S,hasValue:Q,showPopup:Xe,floatingLabel:e.computed(()=>!0!==t.hideSelected&&!0===Q.value||"number"===typeof u.value||0!==u.value.length||bs(t.displayValue)),getControlChild:()=>{if(!1!==N.editable.value&&(!0===r.value||!0!==X.value||void 0!==o["no-option"]))return!0===p?Qe():Re();!0===N.hasPopupOpen&&(N.hasPopupOpen=!1)},controlEvents:{onFocusin(e){N.onControlFocusin(e)},onFocusout(e){N.onControlFocusout(e,()=>{Je(),Ye()})},onClick(e){if(q(e),!0!==p&&!0===i.value)return Ye(),void(null!==S.value&&S.value.focus());Xe(e)}},getControl:o=>{const n=Le(),a=!0===o||!0!==r.value||!0!==p;if(!0===t.useInput)n.push(ze(o,a));else if(!0===N.editable.value){const l=!0===a?oe.value:void 0;n.push(e.h("input",{ref:!0===a?S:void 0,key:"d_t",class:"q-select__focus-target",id:!0===a?N.targetUid.value:void 0,value:G.value,readonly:!0,"data-autofocus":!0===o||!0===t.autofocus||void 0,...l,onKeydown:Te,onKeyup:qe,onKeypress:Me})),!0===a&&"string"===typeof t.autocomplete&&0!==t.autocomplete.length&&n.push(e.h("input",{class:"q-select__autocomplete-input",autocomplete:t.autocomplete,tabindex:-1,onKeyup:$e}))}if(void 0!==B.value&&!0!==t.disable&&0!==ve.value.length){const o=ve.value.map(t=>e.h("option",{value:t,selected:!0}));n.push(e.h("select",{class:"hidden",name:B.value,multiple:t.multiple},o))}const l=!0===t.useInput||!0!==a?void 0:N.splitAttrs.attributes.value;return e.h("div",{class:"q-field__native row items-center",...l,...N.splitAttrs.listeners.value},n)},getInnerAppend:()=>!0!==t.loading&&!0!==d.value&&!0!==t.hideDropdownIcon?[e.h(mt,{class:"q-select__dropdown-icon"+(!0===i.value?" rotate-180":""),name:ie.value})]:null}),_s(N)}});const fc=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],hc=["wave","pulse","pulse-x","pulse-y","fade","blink","none"];var gc=$e({name:"QSkeleton",props:{...bt,tag:{type:String,default:"div"},type:{type:String,validator:e=>fc.includes(e),default:"rect"},animation:{type:String,validator:e=>hc.includes(e),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=yt(t,n.proxy.$q),l=e.computed(()=>{const e=void 0!==t.size?[t.size,t.size]:[t.width,t.height];return{"--q-skeleton-speed":`${t.animationSpeed}ms`,width:e[0],height:e[1]}}),i=e.computed(()=>`q-skeleton q-skeleton--${!0===a.value?"dark":"light"} q-skeleton--type-${t.type}`+("none"!==t.animation?` q-skeleton--anim q-skeleton--anim-${t.animation}`:"")+(!0===t.square?" q-skeleton--square":"")+(!0===t.bordered?" q-skeleton--bordered":""));return()=>e.h(t.tag,{class:i.value,style:l.value},Ye(o.default))}});const bc=[["left","center","start","width"],["right","center","end","width"],["top","start","center","height"],["bottom","end","center","height"]];var yc=$e({name:"QSlideItem",props:{...bt,leftColor:String,rightColor:String,topColor:String,bottomColor:String,onSlide:Function},emits:["action","top","right","bottom","left"],setup(t,{slots:o,emit:n}){const{proxy:a}=e.getCurrentInstance(),{$q:l}=a,i=yt(t,l),{getCacheWithFn:r}=ga(),s=e.ref(null);let u=null,c={},d={},v={};const p=e.computed(()=>!0===l.lang.rtl?{left:"right",right:"left"}:{left:"left",right:"right"}),m=e.computed(()=>"q-slide-item q-item-type overflow-hidden"+(!0===i.value?" q-slide-item--dark q-dark":""));function f(){s.value.style.transform="translate(0,0)"}function h(e,o,a){void 0!==t.onSlide&&n("slide",{side:e,ratio:o,isReset:a})}function g(e){const t=s.value;if(e.isFirst)c={dir:null,size:{left:0,right:0,top:0,bottom:0},scale:0},t.classList.add("no-transition"),bc.forEach(e=>{if(void 0!==o[e[0]]){const t=v[e[0]];t.style.transform="scale(1)",c.size[e[0]]=t.getBoundingClientRect()[e[3]]}}),c.axis="up"===e.direction||"down"===e.direction?"Y":"X";else{if(e.isFinal)return t.classList.remove("no-transition"),void(1===c.scale?(t.style.transform=`translate${c.axis}(${100*c.dir}%)`,null!==u&&clearTimeout(u),u=setTimeout(()=>{u=null,n(c.showing,{reset:f}),n("action",{side:c.showing,reset:f})},230)):(t.style.transform="translate(0,0)",h(c.showing,0,!0)));e.direction="X"===c.axis?e.offset.x<0?"left":"right":e.offset.y<0?"up":"down"}if(void 0===o.left&&e.direction===p.value.right||void 0===o.right&&e.direction===p.value.left||void 0===o.top&&"down"===e.direction||void 0===o.bottom&&"up"===e.direction)return void(t.style.transform="translate(0,0)");let a,l,i;"X"===c.axis?(l="left"===e.direction?-1:1,a=1===l?p.value.left:p.value.right,i=e.distance.x):(l="up"===e.direction?-2:2,a=2===l?"top":"bottom",i=e.distance.y),null!==c.dir&&Math.abs(l)!==Math.abs(c.dir)||(c.dir!==l&&(["left","right","top","bottom"].forEach(e=>{d[e]&&(d[e].style.visibility=a===e?"visible":"hidden")}),c.showing=a,c.dir=l),c.scale=Math.max(0,Math.min(1,(i-40)/c.size[a])),t.style.transform=`translate${c.axis}(${i*l/Math.abs(l)}px)`,v[a].style.transform=`scale(${c.scale})`,h(a,c.scale,!1))}return e.onBeforeUpdate(()=>{d={},v={}}),e.onBeforeUnmount(()=>{null!==u&&clearTimeout(u)}),Object.assign(a,{reset:f}),()=>{const n=[],a={left:void 0!==o[p.value.right],right:void 0!==o[p.value.left],up:void 0!==o.bottom,down:void 0!==o.top},l=Object.keys(a).filter(e=>!0===a[e]);bc.forEach(a=>{const l=a[0];void 0!==o[l]&&n.push(e.h("div",{key:l,ref:e=>{d[l]=e},class:`q-slide-item__${l} absolute-full row no-wrap items-${a[1]} justify-${a[2]}`+(void 0!==t[l+"Color"]?` bg-${t[l+"Color"]}`:"")},[e.h("div",{ref:e=>{v[l]=e}},o[l]())]))});const i=e.h("div",{key:`${0===l.length?"only-":""} content`,ref:s,class:"q-slide-item__content"},Ye(o.default));return 0===l.length?n.push(i):n.push(e.withDirectives(i,r("dir#"+l.join(""),()=>{const e={prevent:!0,stop:!0,mouse:!0};return l.forEach(t=>{e[t]=!0}),[[Xa,g,void 0,e]]}))),e.h("div",{class:m.value},n)}}});const wc=e.h("div",{class:"q-space"});var xc=$e({name:"QSpace",setup(){return()=>wc}});const _c=[e.h("g",{transform:"matrix(1 0 0 -1 0 80)"},[e.h("rect",{width:"10",height:"20",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"4.3s",values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"15",width:"10",height:"80",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"2s",values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"30",width:"10",height:"50",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"1.4s",values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"45",width:"10",height:"30",rx:"3"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"2s",values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"})])])];var Sc=$e({name:"QSpinnerAudio",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg"},_c)}});const kc=[e.h("g",{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"},[e.h("circle",{cx:"5",cy:"50",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",begin:"0s",dur:"2.2s",values:"5;27;49;5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"27",cy:"5",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",from:"5",to:"5",values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",begin:"0s",dur:"2.2s",from:"27",to:"27",values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"49",cy:"50",r:"5"},[e.h("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"cx",from:"49",to:"49",begin:"0s",dur:"2.2s",values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"})])])];var Cc=$e({name:"QSpinnerBall",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg"},kc)}});const qc=[e.h("rect",{y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"60",width:"15",height:"140",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.h("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[e.h("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])];var $c=$e({name:"QSpinnerBars",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg"},qc)}});const Mc=[e.h("rect",{x:"25",y:"25",width:"50",height:"50",fill:"none","stroke-width":"4",stroke:"currentColor"},[e.h("animateTransform",{id:"spinnerBox",attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",dur:"0.5s",begin:"rectBox.end"})]),e.h("rect",{x:"27",y:"27",width:"46",height:"50",fill:"currentColor"},[e.h("animate",{id:"rectBox",attributeName:"height",begin:"0s;spinnerBox.end",dur:"1.3s",from:"50",to:"0",fill:"freeze"})])];var Tc=$e({name:"QSpinnerBox",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Mc)}});const Bc=[e.h("circle",{cx:"50",cy:"50",r:"48",fill:"none","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor"}),e.h("line",{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"85",y2:"50.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2s",repeatCount:"indefinite"})]),e.h("line",{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"49.5",y2:"74"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"15s",repeatCount:"indefinite"})])];var Ac=$e({name:"QSpinnerClock",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Bc)}});const Lc=[e.h("rect",{x:"0",y:"0",width:"100",height:"100",fill:"none"}),e.h("path",{d:"M78,19H22c-6.6,0-12,5.4-12,12v31c0,6.6,5.4,12,12,12h37.2c0.4,3,1.8,5.6,3.7,7.6c2.4,2.5,5.1,4.1,9.1,4 c-1.4-2.1-2-7.2-2-10.3c0-0.4,0-0.8,0-1.3h8c6.6,0,12-5.4,12-12V31C90,24.4,84.6,19,78,19z",fill:"currentColor"}),e.h("circle",{cx:"30",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;1;1",keyTimes:"0;0.2;1",dur:"1s",repeatCount:"indefinite"})]),e.h("circle",{cx:"50",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.2;0.4;1",dur:"1s",repeatCount:"indefinite"})]),e.h("circle",{cx:"70",cy:"47",r:"5",fill:"#fff"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.4;0.6;1",dur:"1s",repeatCount:"indefinite"})])];var Oc=$e({name:"QSpinnerComment",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Lc)}});const Vc=[e.h("rect",{x:"0",y:"0",width:"100",height:"100",fill:"none"}),e.h("g",{transform:"translate(25 25)"},[e.h("rect",{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.9"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(75 25)"},[e.h("rect",{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.8"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.1s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(25 75)"},[e.h("rect",{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.7"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.3s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),e.h("g",{transform:"translate(75 75)"},[e.h("rect",{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.6"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.2s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])])];var zc=$e({name:"QSpinnerCube",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Vc)}});const Ec=[e.h("circle",{cx:"15",cy:"15",r:"15"},[e.h("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"60",cy:"15",r:"9","fill-opacity":".3"},[e.h("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:".5",to:".5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"105",cy:"15",r:"15"},[e.h("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})])];var Pc=$e({name:"QSpinnerDots",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg"},Ec)}});const Fc=[e.h("g",{transform:"translate(20 50)"},[e.h("rect",{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.6"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])]),e.h("g",{transform:"translate(50 50)"},[e.h("rect",{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.8"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.1s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])]),e.h("g",{transform:"translate(80 50)"},[e.h("rect",{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.9"},[e.h("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.2s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])])];var Ic=$e({name:"QSpinnerFacebook",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},Fc)}});const Rc=[e.h("g",{transform:"translate(-20,-20)"},[e.h("path",{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"90 50 50",to:"0 50 50",dur:"1s",repeatCount:"indefinite"})])]),e.h("g",{transform:"translate(20,20) rotate(15 50 50)"},[e.h("path",{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"90 50 50",dur:"1s",repeatCount:"indefinite"})])])];var Nc=$e({name:"QSpinnerGears",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Rc)}});const Dc=[e.h("circle",{cx:"12.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"12.5",cy:"52.5",r:"12.5","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"52.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"12.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"52.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"12.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"52.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"92.5",cy:"92.5",r:"12.5"},[e.h("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})])];var jc=$e({name:"QSpinnerGrid",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg"},Dc)}});const Hc=[e.h("path",{d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.716-6.002 11.47-7.65 17.304-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("path",{d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.593-2.32 17.308 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z","fill-opacity":".5"},[e.h("animate",{attributeName:"fill-opacity",begin:"0.7s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})]),e.h("path",{d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"})];var Qc=$e({name:"QSpinnerHearts",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,fill:"currentColor",width:o.value,height:o.value,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg"},Hc)}});const Uc=[e.h("g",[e.h("path",{fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"10",d:"M58.4,51.7c-0.9-0.9-1.4-2-1.4-2.3s0.5-0.4,1.4-1.4 C70.8,43.8,79.8,30.5,80,15.5H70H30H20c0.2,15,9.2,28.1,21.6,32.3c0.9,0.9,1.4,1.2,1.4,1.5s-0.5,1.6-1.4,2.5 C29.2,56.1,20.2,69.5,20,85.5h10h40h10C79.8,69.5,70.8,55.9,58.4,51.7z"}),e.h("clipPath",{id:"uil-hourglass-clip1"},[e.h("rect",{x:"15",y:"20",width:"70",height:"25"},[e.h("animate",{attributeName:"height",from:"25",to:"0",dur:"1s",repeatCount:"indefinite",values:"25;0;0",keyTimes:"0;0.5;1"}),e.h("animate",{attributeName:"y",from:"20",to:"45",dur:"1s",repeatCount:"indefinite",values:"20;45;45",keyTimes:"0;0.5;1"})])]),e.h("clipPath",{id:"uil-hourglass-clip2"},[e.h("rect",{x:"15",y:"55",width:"70",height:"25"},[e.h("animate",{attributeName:"height",from:"0",to:"25",dur:"1s",repeatCount:"indefinite",values:"0;25;25",keyTimes:"0;0.5;1"}),e.h("animate",{attributeName:"y",from:"80",to:"55",dur:"1s",repeatCount:"indefinite",values:"80;55;55",keyTimes:"0;0.5;1"})])]),e.h("path",{d:"M29,23c3.1,11.4,11.3,19.5,21,19.5S67.9,34.4,71,23H29z","clip-path":"url(#uil-hourglass-clip1)",fill:"currentColor"}),e.h("path",{d:"M71.6,78c-3-11.6-11.5-20-21.5-20s-18.5,8.4-21.5,20H71.6z","clip-path":"url(#uil-hourglass-clip2)",fill:"currentColor"}),e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",repeatCount:"indefinite",dur:"1s",values:"0 50 50;0 50 50;180 50 50",keyTimes:"0;0.7;1"})])];var Wc=$e({name:"QSpinnerHourglass",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Uc)}});const Kc=[e.h("path",{d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",fill:"none",stroke:"currentColor","stroke-width":"8","stroke-dasharray":"10.691205342610678 10.691205342610678","stroke-dashoffset":"0"},[e.h("animate",{attributeName:"stroke-dashoffset",from:"0",to:"21.382410685221355",begin:"0",dur:"2s",repeatCount:"indefinite",fill:"freeze"})])];var Yc=$e({name:"QSpinnerInfinity",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Kc)}});const Xc=[e.h("g",{"stroke-width":"4","stroke-linecap":"round"},[e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(180)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(210)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(240)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(270)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(300)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(330)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(0)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(30)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(60)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(90)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(120)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85",repeatCount:"indefinite"})]),e.h("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(150)"},[e.h("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"})])])];var Zc=$e({name:"QSpinnerIos",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64"},Xc)}});const Gc=[e.h("circle",{cx:"50",cy:"50",r:"44",fill:"none","stroke-width":"4","stroke-opacity":".5",stroke:"currentColor"}),e.h("circle",{cx:"8",cy:"54",r:"6",fill:"currentColor","stroke-width":"3",stroke:"currentColor"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 48",to:"360 50 52",dur:"2s",repeatCount:"indefinite"})])];var Jc=$e({name:"QSpinnerOrbit",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Gc)}});const ed=[e.h("g",{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"},[e.h("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),e.h("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])];var td=$e({name:"QSpinnerOval",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},ed)}});const od=[e.h("path",{d:"M0 50A50 50 0 0 1 50 0L50 50L0 50",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"0.8s",repeatCount:"indefinite"})]),e.h("path",{d:"M50 0A50 50 0 0 1 100 50L50 50L50 0",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"1.6s",repeatCount:"indefinite"})]),e.h("path",{d:"M100 50A50 50 0 0 1 50 100L50 50L100 50",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2.4s",repeatCount:"indefinite"})]),e.h("path",{d:"M50 100A50 50 0 0 1 0 50L50 50L50 100",fill:"currentColor",opacity:"0.5"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"3.2s",repeatCount:"indefinite"})])];var nd=$e({name:"QSpinnerPie",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},od)}});const ad=[e.h("g",{fill:"none","fill-rule":"evenodd","stroke-width":"2"},[e.h("circle",{cx:"22",cy:"22",r:"1"},[e.h("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"1"},[e.h("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})])])];var ld=$e({name:"QSpinnerPuff",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg"},ad)}});const id=[e.h("g",{transform:"scale(0.55)"},[e.h("circle",{cx:"30",cy:"150",r:"30",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})]),e.h("path",{d:"M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.1",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})]),e.h("path",{d:"M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z",fill:"currentColor"},[e.h("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.2",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})])])];var rd=$e({name:"QSpinnerRadio",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},id)}});const sd=[e.h("g",{fill:"none","fill-rule":"evenodd",transform:"translate(1 1)","stroke-width":"2"},[e.h("circle",{cx:"22",cy:"22",r:"6"},[e.h("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"6"},[e.h("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),e.h("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]),e.h("circle",{cx:"22",cy:"22",r:"8"},[e.h("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})])])];var ud=$e({name:"QSpinnerRings",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,stroke:"currentColor",width:o.value,height:o.value,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"},sd)}});const cd=[e.h("defs",[e.h("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},[e.h("stop",{"stop-color":"currentColor","stop-opacity":"0",offset:"0%"}),e.h("stop",{"stop-color":"currentColor","stop-opacity":".631",offset:"63.146%"}),e.h("stop",{"stop-color":"currentColor",offset:"100%"})])]),e.h("g",{transform:"translate(1 1)",fill:"none","fill-rule":"evenodd"},[e.h("path",{d:"M36 18c0-9.94-8.06-18-18-18",stroke:"url(#a)","stroke-width":"2"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})]),e.h("circle",{fill:"currentColor",cx:"36",cy:"18",r:"1"},[e.h("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})])])];var dd=$e({name:"QSpinnerTail",props:Dt,setup(t){const{cSize:o,classes:n}=jt(t);return()=>e.h("svg",{class:n.value,width:o.value,height:o.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},cd)}}),vd=$e({name:"QSplitter",props:{...bt,modelValue:{type:Number,required:!0},reverse:Boolean,unit:{type:String,default:"%",validator:e=>["%","px"].includes(e)},limits:{type:Array,validator:e=>{return 2===e.length&&("number"===typeof e[0]&&"number"===typeof e[1]&&(e[0]>=0&&e[0]<=e[1]))}},emitImmediately:Boolean,horizontal:Boolean,disable:Boolean,beforeClass:[Array,String,Object],afterClass:[Array,String,Object],separatorClass:[Array,String,Object],separatorStyle:[Array,String,Object]},emits:["update:modelValue"],setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=yt(t,a),i=e.ref(null),r={before:e.ref(null),after:e.ref(null)},s=e.computed(()=>"q-splitter no-wrap "+`${!0===t.horizontal?"q-splitter--horizontal column":"q-splitter--vertical row"}`+` q-splitter--${!0===t.disable?"disabled":"workable"}`+(!0===l.value?" q-splitter--dark":"")),u=e.computed(()=>!0===t.horizontal?"height":"width"),c=e.computed(()=>!0!==t.reverse?"before":"after"),d=e.computed(()=>void 0!==t.limits?t.limits:"%"===t.unit?[10,90]:[50,1/0]);function v(e){return("%"===t.unit?e:Math.round(e))+t.unit}const p=e.computed(()=>({[c.value]:{[u.value]:v(t.modelValue)}}));let m,f,h,g,b;function y(e){if(!0===e.isFirst){const e=i.value.getBoundingClientRect()[u.value];return m=!0===t.horizontal?"up":"left",f="%"===t.unit?100:e,h=Math.min(f,d.value[1],Math.max(d.value[0],t.modelValue)),g=(!0!==t.reverse?1:-1)*(!0===t.horizontal?1:!0===a.lang.rtl?-1:1)*("%"===t.unit?0===e?0:100/e:1),void i.value.classList.add("q-splitter--active")}if(!0===e.isFinal)return b!==t.modelValue&&n("update:modelValue",b),void i.value.classList.remove("q-splitter--active");const o=h+g*(e.direction===m?-1:1)*e.distance[!0===t.horizontal?"y":"x"];b=Math.min(f,d.value[1],Math.max(d.value[0],o)),r[c.value].value.style[u.value]=v(b),!0===t.emitImmediately&&t.modelValue!==b&&n("update:modelValue",b)}const w=e.computed(()=>{return[[Xa,y,void 0,{[!0===t.horizontal?"vertical":"horizontal"]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]});function x(e,t){e<t[0]?n("update:modelValue",t[0]):e>t[1]&&n("update:modelValue",t[1])}return e.watch(()=>t.modelValue,e=>{x(e,d.value)}),e.watch(()=>t.limits,()=>{e.nextTick(()=>{x(t.modelValue,d.value)})}),()=>{const n=[e.h("div",{ref:r.before,class:["q-splitter__panel q-splitter__before"+(!0===t.reverse?" col":""),t.beforeClass],style:p.value.before},Ye(o.before)),e.h("div",{class:["q-splitter__separator",t.separatorClass],style:t.separatorStyle,"aria-disabled":!0===t.disable?"true":void 0},[Je("div",{class:"q-splitter__separator-area absolute-full"},Ye(o.separator),"sep",!0!==t.disable,()=>w.value)]),e.h("div",{ref:r.after,class:["q-splitter__panel q-splitter__after"+(!0===t.reverse?"":" col"),t.afterClass],style:p.value.after},Ye(o.after))];return e.h("div",{class:s.value,ref:i},Ze(o.default,n))}}}),pd=$e({name:"StepHeader",props:{stepper:{},step:{},goToPanel:Function},setup(t,{attrs:o}){const{proxy:{$q:n}}=e.getCurrentInstance(),a=e.ref(null),l=e.computed(()=>t.stepper.modelValue===t.step.name),i=e.computed(()=>{const e=t.step.disable;return!0===e||""===e}),r=e.computed(()=>{const e=t.step.error;return!0===e||""===e}),s=e.computed(()=>{const e=t.step.done;return!1===i.value&&(!0===e||""===e)}),u=e.computed(()=>{const e=t.step.headerNav,o=!0===e||""===e||void 0===e;return!1===i.value&&t.stepper.headerNav&&o}),c=e.computed(()=>{return t.step.prefix&&(!1===l.value||"none"===t.stepper.activeIcon)&&(!1===r.value||"none"===t.stepper.errorIcon)&&(!1===s.value||"none"===t.stepper.doneIcon)}),d=e.computed(()=>{const e=t.step.icon||t.stepper.inactiveIcon;if(!0===l.value){const o=t.step.activeIcon||t.stepper.activeIcon;return"none"===o?e:o||n.iconSet.stepper.active}if(!0===r.value){const o=t.step.errorIcon||t.stepper.errorIcon;return"none"===o?e:o||n.iconSet.stepper.error}if(!1===i.value&&!0===s.value){const o=t.step.doneIcon||t.stepper.doneIcon;return"none"===o?e:o||n.iconSet.stepper.done}return e}),v=e.computed(()=>{const e=!0===r.value?t.step.errorColor||t.stepper.errorColor:void 0;if(!0===l.value){const o=t.step.activeColor||t.stepper.activeColor||t.step.color;return void 0!==o?o:e}return void 0!==e?e:!1===i.value&&!0===s.value?t.step.doneColor||t.stepper.doneColor||t.step.color||t.stepper.inactiveColor:t.step.color||t.stepper.inactiveColor}),p=e.computed(()=>{return"q-stepper__tab col-grow flex items-center no-wrap relative-position"+(void 0!==v.value?` text-${v.value}`:"")+(!0===r.value?" q-stepper__tab--error q-stepper__tab--error-with-"+(!0===c.value?"prefix":"icon"):"")+(!0===l.value?" q-stepper__tab--active":"")+(!0===s.value?" q-stepper__tab--done":"")+(!0===u.value?" q-stepper__tab--navigation q-focusable q-hoverable":"")+(!0===i.value?" q-stepper__tab--disabled":"")}),m=e.computed(()=>!0===t.stepper.headerNav&&u.value);function f(){null!==a.value&&a.value.focus(),!1===l.value&&t.goToPanel(t.step.name)}function h(e){13===e.keyCode&&!1===l.value&&t.goToPanel(t.step.name)}return()=>{const n={class:p.value};!0===u.value&&(n.onClick=f,n.onKeyup=h,Object.assign(n,!0===i.value?{tabindex:-1,"aria-disabled":"true"}:{tabindex:o.tabindex||0}));const l=[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:a}),e.h("div",{class:"q-stepper__dot row flex-center q-stepper__line relative-position"},[e.h("span",{class:"row flex-center"},[!0===c.value?t.step.prefix:e.h(mt,{name:d.value})])])];if(void 0!==t.step.title&&null!==t.step.title){const o=[e.h("div",{class:"q-stepper__title"},t.step.title)];void 0!==t.step.caption&&null!==t.step.caption&&o.push(e.h("div",{class:"q-stepper__caption"},t.step.caption)),l.push(e.h("div",{class:"q-stepper__label q-stepper__line relative-position"},o))}return e.withDirectives(e.h("div",n,l),[[ao,m.value]])}}});function md(t){return e.h("div",{class:"q-stepper__step-content"},[e.h("div",{class:"q-stepper__step-inner"},Ye(t.default))])}const fd={setup(e,{slots:t}){return()=>md(t)}};var hd=$e({name:"QStep",props:{...ba,icon:String,color:String,title:{type:String,required:!0},caption:String,prefix:[String,Number],doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String,headerNav:{type:Boolean,default:!0},done:Boolean,error:Boolean,onScroll:[Function,Array]},setup(t,{slots:o,emit:n}){const{proxy:{$q:a}}=e.getCurrentInstance(),l=e.inject(le,ve);if(l===ve)return console.error("QStep needs to be a child of QStepper"),ve;const{getCacheWithFn:i}=ga(),r=e.ref(null),s=e.computed(()=>l.value.modelValue===t.name),u=e.computed(()=>!0!==a.platform.is.ios&&!0===a.platform.is.chrome||!0!==s.value||!0!==l.value.vertical?{}:{onScroll(e){const{target:o}=e;o.scrollTop>0&&(o.scrollTop=0),void 0!==t.onScroll&&n("scroll",e)}}),c=e.computed(()=>"string"===typeof t.name||"number"===typeof t.name?t.name:String(t.name));function d(){const t=l.value.vertical;return!0===t&&!0===l.value.keepAlive?e.h(e.KeepAlive,l.value.keepAliveProps.value,!0===s.value?[e.h(!0===l.value.needsUniqueKeepAliveWrapper.value?i(c.value,()=>({...fd,name:c.value})):fd,{key:c.value},o.default)]:void 0):!0!==t||!0===s.value?md(o):void 0}return()=>e.h("div",{ref:r,class:"q-stepper__step",role:"tabpanel",...u.value},!0===l.value.vertical?[e.h(pd,{stepper:l.value,step:t,goToPanel:l.value.goToPanel}),!0===l.value.animated?e.h(Gr,d):d()]:[d()])}});const gd=/(-\w)/g;function bd(e){const t={};for(const o in e){const n=o.replace(gd,e=>e[1].toUpperCase());t[n]=e[o]}return t}var yd=$e({name:"QStepper",props:{...bt,...wa,flat:Boolean,bordered:Boolean,alternativeLabels:Boolean,headerNav:Boolean,contracted:Boolean,headerClass:String,inactiveColor:String,inactiveIcon:String,doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String},emits:xa,setup(t,{slots:o}){const n=e.getCurrentInstance(),a=yt(t,n.proxy.$q),{updatePanelsList:l,isValidPanelName:i,updatePanelIndex:r,getPanelContent:s,getPanels:u,panelDirectives:c,goToPanel:d,keepAliveProps:v,needsUniqueKeepAliveWrapper:p}=_a();e.provide(le,e.computed(()=>({goToPanel:d,keepAliveProps:v,needsUniqueKeepAliveWrapper:p,...t})));const m=e.computed(()=>`q-stepper q-stepper--${!0===t.vertical?"vertical":"horizontal"}`+(!0===t.flat?" q-stepper--flat":"")+(!0===t.bordered?" q-stepper--bordered":"")+(!0===a.value?" q-stepper--dark q-dark":"")),f=e.computed(()=>"q-stepper__header row items-stretch justify-between"+` q-stepper__header--${!0===t.alternativeLabels?"alternative":"standard"}-labels`+(!1===t.flat||!0===t.bordered?" q-stepper__header--border":"")+(!0===t.contracted?" q-stepper__header--contracted":"")+(void 0!==t.headerClass?` ${t.headerClass}`:""));function h(){const n=Ye(o.message,[]);if(!0===t.vertical){i(t.modelValue)&&r();const a=e.h("div",{class:"q-stepper__content"},Ye(o.default));return void 0===n?[a]:n.concat(a)}return[e.h("div",{class:f.value},u().map(o=>{const n=bd(o.props);return e.h(pd,{key:n.name,stepper:t,step:n,goToPanel:d})})),n,Je("div",{class:"q-stepper__content q-panel-parent"},s(),"cont",t.swipeable,()=>c.value)]}return()=>{return l(o),e.h("div",{class:m.value},Ze(o.navigation,h()))}}}),wd=$e({name:"QStepperNavigation",setup(t,{slots:o}){return()=>e.h("div",{class:"q-stepper__nav"},Ye(o.default))}}),xd=$e({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),{proxy:{$q:l}}=a,i=e=>{n("click",e)};return()=>{if(void 0===t.props)return e.h("th",{class:!0===t.autoWidth?"q-table--col-auto-width":"",onClick:i},Ye(o.default));let n,r;const s=a.vnode.key;if(s){if(n=t.props.colsMap[s],void 0===n)return}else n=t.props.col;if(!0===n.sortable){const t="right"===n.align?"unshift":"push";r=Xe(o.default,[]),r[t](e.h(mt,{class:n.__iconClass,name:l.iconSet.table.arrowUp}))}else r=Ye(o.default);const u={class:n.__thClass+(!0===t.autoWidth?" q-table--col-auto-width":""),style:n.headerStyle,onClick:e=>{!0===n.sortable&&t.props.sort(n),i(e)}};return e.h("th",u,r)}}});function _d(t,o){return e.h("div",t,[e.h("table",{class:"q-table"},o)])}const Sd={list:ru,table:hu},kd=["list","table","__qtable"];var Cd=$e({name:"QVirtualScroll",props:{...uc,type:{type:String,default:"list",validator:e=>kd.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},setup(t,{slots:o,attrs:n}){let a;const l=e.ref(null),i=e.computed(()=>t.itemsSize>=0&&void 0!==t.itemsFn?parseInt(t.itemsSize,10):Array.isArray(t.items)?t.items.length:0),{virtualScrollSliceRange:r,localResetVirtualScroll:s,padVirtualScroll:u,onVirtualScrollEvt:c}=cc({virtualScrollLength:i,getVirtualScrollTarget:h,getVirtualScrollEl:m}),d=e.computed(()=>{if(0===i.value)return[];const e=(e,t)=>({index:r.value.from+t,item:e});return void 0===t.itemsFn?t.items.slice(r.value.from,r.value.to).map(e):t.itemsFn(r.value.from,r.value.to-r.value.from).map(e)}),v=e.computed(()=>"q-virtual-scroll q-virtual-scroll"+(!0===t.virtualScrollHorizontal?"--horizontal":"--vertical")+(void 0!==t.scrollTarget?"":" scroll")),p=e.computed(()=>void 0!==t.scrollTarget?{}:{tabindex:0});function m(){return l.value.$el||l.value}function h(){return a}function g(){a=Jo(m(),t.scrollTarget),a.addEventListener("scroll",c,f.passive)}function b(){void 0!==a&&(a.removeEventListener("scroll",c,f.passive),a=void 0)}function y(){let e=u("list"===t.type?"div":"tbody",d.value.map(o.default));return void 0!==o.before&&(e=o.before().concat(e)),Ze(o.after,e)}return e.watch(i,()=>{s()}),e.watch(()=>t.scrollTarget,()=>{b(),g()}),e.onBeforeMount(()=>{s()}),e.onMounted(()=>{g()}),e.onActivated(()=>{g()}),e.onDeactivated(()=>{b()}),e.onBeforeUnmount(()=>{b()}),()=>{if(void 0!==o.default)return"__qtable"===t.type?_d({ref:l,class:"q-table__middle "+v.value},y()):e.h(Sd[t.type],{...n,ref:l,class:[n.class,v.value],...p.value},y);console.error("QVirtualScroll: default scoped slot is required for rendering")}}});function qd(e,t){return new Date(e)-new Date(t)}const $d={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>"ad"===e||"da"===e,default:"ad"}};function Md(t,o,n,a){const l=e.computed(()=>{const{sortBy:e}=o.value;return e&&n.value.find(t=>t.name===e)||null}),i=e.computed(()=>void 0!==t.sortMethod?t.sortMethod:(e,t,o)=>{const a=n.value.find(e=>e.name===t);if(void 0===a||void 0===a.field)return e;const l=!0===o?-1:1,i="function"===typeof a.field?e=>a.field(e):e=>e[a.field];return e.sort((e,t)=>{let o=i(e),n=i(t);return void 0!==a.rawSort?a.rawSort(o,n,e,t)*l:null===o||void 0===o?-1*l:null===n||void 0===n?1*l:void 0!==a.sort?a.sort(o,n,e,t)*l:!0===we(o)&&!0===we(n)?(o-n)*l:!0===be(o)&&!0===be(n)?qd(o,n)*l:"boolean"===typeof o&&"boolean"===typeof n?(o-n)*l:([o,n]=[o,n].map(e=>(e+"").toLocaleString().toLowerCase()),o<n?-1*l:o===n?0:l)})});function r(e){let l=t.columnSortOrder;if(!0===ge(e))e.sortOrder&&(l=e.sortOrder),e=e.name;else{const t=n.value.find(t=>t.name===e);void 0!==t&&t.sortOrder&&(l=t.sortOrder)}let{sortBy:i,descending:r}=o.value;i!==e?(i=e,r="da"===l):!0===t.binaryStateSort?r=!r:!0===r?"ad"===l?i=null:r=!1:"ad"===l?r=!0:i=null,a({sortBy:i,descending:r,page:1})}return{columnToSort:l,computedSortMethod:i,sort:r}}const Td={filter:[String,Object],filterMethod:Function};function Bd(t,o){const n=e.computed(()=>void 0!==t.filterMethod?t.filterMethod:(e,t,o,n)=>{const a=t?t.toLowerCase():"";return e.filter(e=>o.some(t=>{const o=n(t,e)+"",l="undefined"===o||"null"===o?"":o.toLowerCase();return-1!==l.indexOf(a)}))});return e.watch(()=>t.filter,()=>{e.nextTick(()=>{o({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function Ad(e,t){for(const o in t)if(t[o]!==e[o])return!1;return!0}function Ld(e){return e.page<1&&(e.page=1),void 0!==e.rowsPerPage&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}const Od={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function Vd(t,o){const{props:n,emit:a}=t,l=e.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:0!==n.rowsPerPageOptions.length?n.rowsPerPageOptions[0]:5},n.pagination)),i=e.computed(()=>{const e=void 0!==n["onUpdate:pagination"]?{...l.value,...n.pagination}:l.value;return Ld(e)}),r=e.computed(()=>void 0!==i.value.rowsNumber);function s(e){u({pagination:e,filter:n.filter})}function u(t={}){e.nextTick(()=>{a("request",{pagination:t.pagination||i.value,filter:t.filter||n.filter,getCellValue:o})})}function c(e,t){const o=Ld({...i.value,...e});!0!==Ad(i.value,o)?!0!==r.value?void 0!==n.pagination&&void 0!==n["onUpdate:pagination"]?a("update:pagination",o):l.value=o:s(o):!0===r.value&&!0===t&&s(o)}return{innerPagination:l,computedPagination:i,isServerSide:r,requestServerInteraction:u,setPagination:c}}function zd(t,o,n,a,l,i){const{props:r,emit:s,proxy:{$q:u}}=t,c=e.computed(()=>!0===a.value?n.value.rowsNumber||0:i.value),d=e.computed(()=>{const{page:e,rowsPerPage:t}=n.value;return(e-1)*t}),v=e.computed(()=>{const{page:e,rowsPerPage:t}=n.value;return e*t}),p=e.computed(()=>1===n.value.page),m=e.computed(()=>0===n.value.rowsPerPage?1:Math.max(1,Math.ceil(c.value/n.value.rowsPerPage))),f=e.computed(()=>0===v.value||n.value.page>=m.value),h=e.computed(()=>{const e=r.rowsPerPageOptions.includes(o.value.rowsPerPage)?r.rowsPerPageOptions:[o.value.rowsPerPage].concat(r.rowsPerPageOptions);return e.map(e=>({label:0===e?u.lang.table.allRows:""+e,value:e}))});function g(){l({page:1})}function b(){const{page:e}=n.value;e>1&&l({page:e-1})}function y(){const{page:e,rowsPerPage:t}=n.value;v.value>0&&e*t<c.value&&l({page:e+1})}function w(){l({page:m.value})}return e.watch(m,(e,t)=>{if(e===t)return;const o=n.value.page;e&&!o?l({page:1}):e<o&&l({page:e})}),void 0!==r["onUpdate:pagination"]&&s("update:pagination",{...n.value}),{firstRowIndex:d,lastRowIndex:v,isFirstPage:p,isLastPage:f,pagesNumber:m,computedRowsPerPageOptions:h,computedRowsNumber:c,firstPage:g,prevPage:b,nextPage:y,lastPage:w}}const Ed={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},Pd=["update:selected","selection"];function Fd(t,o,n,a){const l=e.computed(()=>{const e={};return t.selected.map(a.value).forEach(t=>{e[t]=!0}),e}),i=e.computed(()=>{return"none"!==t.selection}),r=e.computed(()=>{return"single"===t.selection}),s=e.computed(()=>{return"multiple"===t.selection}),u=e.computed(()=>0!==n.value.length&&n.value.every(e=>!0===l.value[a.value(e)])),c=e.computed(()=>!0!==u.value&&n.value.some(e=>!0===l.value[a.value(e)])),d=e.computed(()=>t.selected.length);function v(e){return!0===l.value[e]}function p(){o("update:selected",[])}function m(e,n,l,i){o("selection",{rows:n,added:l,keys:e,evt:i});const s=!0===r.value?!0===l?n:[]:!0===l?t.selected.concat(n):t.selected.filter(t=>!1===e.includes(a.value(t)));o("update:selected",s)}return{hasSelectionMode:i,singleSelection:r,multipleSelection:s,allRowsSelected:u,someRowsSelected:c,rowsSelectedNumber:d,isRowSelected:v,clearSelection:p,updateSelection:m}}function Id(e){return Array.isArray(e)?e.slice():[]}const Rd={expanded:Array},Nd=["update:expanded"];function Dd(t,o){const n=e.ref(Id(t.expanded));function a(e){return n.value.includes(e)}function l(e){void 0!==t.expanded?o("update:expanded",e):n.value=e}function i(e,t){const o=n.value.slice(),a=o.indexOf(e);!0===t?-1===a&&(o.push(e),l(o)):-1!==a&&(o.splice(a,1),l(o))}return e.watch(()=>t.expanded,e=>{n.value=Id(e)}),{isRowExpanded:a,setExpanded:l,updateExpanded:i}}const jd={visibleColumns:Array};function Hd(t,o,n){const a=e.computed(()=>{if(void 0!==t.columns)return t.columns;const e=t.rows[0];return void 0!==e?Object.keys(e).map(t=>({name:t,label:t.toUpperCase(),field:t,align:we(e[t])?"right":"left",sortable:!0})):[]}),l=e.computed(()=>{const{sortBy:e,descending:n}=o.value,l=void 0!==t.visibleColumns?a.value.filter(e=>!0===e.required||!0===t.visibleColumns.includes(e.name)):a.value;return l.map(t=>{const o=t.align||"right",a=`text-${o}`;return{...t,align:o,__iconClass:`q-table__sort-icon q-table__sort-icon--${o}`,__thClass:a+(void 0!==t.headerClasses?" "+t.headerClasses:"")+(!0===t.sortable?" sortable":"")+(t.name===e?` sorted ${!0===n?"sort-desc":""}`:""),__tdStyle:void 0!==t.style?"function"!==typeof t.style?()=>t.style:t.style:()=>null,__tdClass:void 0!==t.classes?"function"!==typeof t.classes?()=>a+" "+t.classes:e=>a+" "+t.classes(e):()=>a}})}),i=e.computed(()=>{const e={};return l.value.forEach(t=>{e[t.name]=t}),e}),r=e.computed(()=>{return void 0!==t.tableColspan?t.tableColspan:l.value.length+(!0===n.value?1:0)});return{colList:a,computedCols:l,computedColsMap:i,computedColspan:r}}const Qd="q-table__bottom row items-center",Ud={};sc.forEach(e=>{Ud[e]={}});var Wd=$e({name:"QTable",props:{rows:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{default:void 0},...Ud,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...bt,...ka,...jd,...Td,...Od,...Rd,...Ed,...$d},emits:["request","virtualScroll",...Ca,...Nd,...Pd],setup(n,{slots:a,emit:l}){const i=e.getCurrentInstance(),{proxy:{$q:r}}=i,s=yt(n,r),{inFullscreen:u,toggleFullscreen:c}=qa(),d=e.computed(()=>"function"===typeof n.rowKey?n.rowKey:e=>e[n.rowKey]),v=e.ref(null),p=e.ref(null),m=e.computed(()=>!0!==n.grid&&!0===n.virtualScroll),f=e.computed(()=>" q-table__card"+(!0===s.value?" q-table__card--dark q-dark":"")+(!0===n.square?" q-table--square":"")+(!0===n.flat?" q-table--flat":"")+(!0===n.bordered?" q-table--bordered":"")),h=e.computed(()=>`q-table__container q-table--${n.separator}-separator column no-wrap`+(!0===n.grid?" q-table--grid":f.value)+(!0===s.value?" q-table--dark":"")+(!0===n.dense?" q-table--dense":"")+(!1===n.wrapCells?" q-table--no-wrap":"")+(!0===u.value?" fullscreen scroll":"")),g=e.computed(()=>h.value+(!0===n.loading?" q-table--loading":""));e.watch(()=>n.tableStyle+n.tableClass+n.tableHeaderStyle+n.tableHeaderClass+h.value,()=>{!0===m.value&&null!==p.value&&p.value.reset()});const{innerPagination:b,computedPagination:y,isServerSide:w,requestServerInteraction:x,setPagination:_}=Vd(i,he),{computedFilterMethod:S}=Bd(n,_),{isRowExpanded:k,setExpanded:C,updateExpanded:q}=Dd(n,l),$=e.computed(()=>{let e=n.rows;if(!0===w.value||0===e.length)return e;const{sortBy:t,descending:o}=y.value;return n.filter&&(e=S.value(e,n.filter,R.value,he)),null!==j.value&&(e=H.value(n.rows===e?e.slice():e,t,o)),e}),M=e.computed(()=>$.value.length),T=e.computed(()=>{let e=$.value;if(!0===w.value)return e;const{rowsPerPage:t}=y.value;return 0!==t&&(0===U.value&&n.rows!==e?e.length>W.value&&(e=e.slice(0,W.value)):e=e.slice(U.value,W.value)),e}),{hasSelectionMode:B,singleSelection:A,multipleSelection:L,allRowsSelected:O,someRowsSelected:V,rowsSelectedNumber:z,isRowSelected:E,clearSelection:P,updateSelection:F}=Fd(n,l,T,d),{colList:I,computedCols:R,computedColsMap:N,computedColspan:D}=Hd(n,y,B),{columnToSort:j,computedSortMethod:H,sort:Q}=Md(n,y,I,_),{firstRowIndex:U,lastRowIndex:W,isFirstPage:K,isLastPage:Y,pagesNumber:X,computedRowsPerPageOptions:Z,computedRowsNumber:G,firstPage:J,prevPage:ee,nextPage:te,lastPage:oe}=zd(i,b,y,w,_,M),ne=e.computed(()=>0===T.value.length),ae=e.computed(()=>{const e={};return sc.forEach(t=>{e[t]=n[t]}),void 0===e.virtualScrollItemSize&&(e.virtualScrollItemSize=!0===n.dense?28:48),e});function le(){!0===m.value&&p.value.reset()}function ie(){if(!0===n.grid)return Te();const t=!0!==n.hideHeader?we:null;if(!0===m.value){const o=a["top-row"],l=a["bottom-row"],i={default:e=>ce(e.item,a.body,e.index)};if(void 0!==o){const n=e.h("tbody",o({cols:R.value}));i.before=null===t?()=>n:()=>[t()].concat(n)}else null!==t&&(i.before=t);return void 0!==l&&(i.after=(()=>e.h("tbody",l({cols:R.value})))),e.h(Cd,{ref:p,class:n.tableClass,style:n.tableStyle,...ae.value,scrollTarget:n.virtualScrollTarget,items:T.value,type:"__qtable",tableColspan:D.value,onVirtualScroll:se},i)}const o=[de()];return null!==t&&o.unshift(t()),_d({class:["q-table__middle scroll",n.tableClass],style:n.tableStyle},o)}function re(e,t){if(null!==p.value)return void p.value.scrollTo(e,t);e=parseInt(e,10);const o=v.value.querySelector(`tbody tr:nth-of-type(${e+1})`);if(null!==o){const t=v.value.querySelector(".q-table__middle.scroll"),a=o.offsetTop-n.virtualScrollStickySizeStart,i=a<t.scrollTop?"decrease":"increase";t.scrollTop=a,l("virtualScroll",{index:e,from:0,to:b.value.rowsPerPage-1,direction:i})}}function se(e){l("virtualScroll",e)}function ue(){return[e.h(Ru,{class:"q-table__linear-progress",color:n.color,dark:s.value,indeterminate:!0,trackColor:"transparent"})]}function ce(t,o,i){const r=d.value(t),u=E(r);if(void 0!==o)return o(ve({key:r,row:t,pageIndex:i,__trClass:u?"selected":""}));const c=a["body-cell"],v=R.value.map(o=>{const n=a[`body-cell-${o.name}`],l=void 0!==n?n:c;return void 0!==l?l(pe({key:r,row:t,pageIndex:i,col:o})):e.h("td",{class:o.__tdClass(t),style:o.__tdStyle(t)},he(o,t))});if(!0===B.value){const o=a["body-selection"],l=void 0!==o?o(me({key:r,row:t,pageIndex:i})):[e.h(Ia,{modelValue:u,color:n.color,dark:s.value,dense:n.dense,"onUpdate:modelValue":(e,o)=>{F([r],[t],e,o)}})];v.unshift(e.h("td",{class:"q-table--col-auto-width"},l))}const p={key:r,class:{selected:u}};return void 0!==n.onRowClick&&(p.class["cursor-pointer"]=!0,p.onClick=(e=>{l("RowClick",e,t,i)})),void 0!==n.onRowDblclick&&(p.class["cursor-pointer"]=!0,p.onDblclick=(e=>{l("RowDblclick",e,t,i)})),void 0!==n.onRowContextmenu&&(p.class["cursor-pointer"]=!0,p.onContextmenu=(e=>{l("RowContextmenu",e,t,i)})),e.h("tr",p,v)}function de(){const t=a.body,o=a["top-row"],n=a["bottom-row"];let l=T.value.map((e,o)=>ce(e,t,o));return void 0!==o&&(l=o({cols:R.value}).concat(l)),void 0!==n&&(l=l.concat(n({cols:R.value}))),e.h("tbody",l)}function ve(e){return fe(e),e.cols=e.cols.map(o=>t({...o},"value",()=>he(o,e.row))),e}function pe(e){return fe(e),t(e,"value",()=>he(e.col,e.row)),e}function me(e){return fe(e),e}function fe(e){Object.assign(e,{cols:R.value,colsMap:N.value,sort:Q,rowIndex:U.value+e.pageIndex,color:n.color,dark:s.value,dense:n.dense}),!0===B.value&&t(e,"selected",()=>E(e.key),(t,o)=>{F([e.key],[e.row],t,o)}),t(e,"expand",()=>k(e.key),t=>{q(e.key,t)})}function he(e,t){const o="function"===typeof e.field?e.field(t):t[e.field];return void 0!==e.format?e.format(o,t):o}const ge=e.computed(()=>({pagination:y.value,pagesNumber:X.value,isFirstPage:K.value,isLastPage:Y.value,firstPage:J,prevPage:ee,nextPage:te,lastPage:oe,inFullscreen:u.value,toggleFullscreen:c}));function be(){const t=a.top,o=a["top-left"],l=a["top-right"],i=a["top-selection"],r=!0===B.value&&void 0!==i&&z.value>0,s="q-table__top relative-position row items-center";if(void 0!==t)return e.h("div",{class:s},[t(ge.value)]);let u;return!0===r?u=i(ge.value).slice():(u=[],void 0!==o?u.push(e.h("div",{class:"q-table__control"},[o(ge.value)])):n.title&&u.push(e.h("div",{class:"q-table__control"},[e.h("div",{class:["q-table__title",n.titleClass]},n.title)]))),void 0!==l&&(u.push(e.h("div",{class:"q-table__separator col"})),u.push(e.h("div",{class:"q-table__control"},[l(ge.value)]))),0!==u.length?e.h("div",{class:s},u):void 0}const ye=e.computed(()=>!0===V.value?null:O.value);function we(){const t=xe();return!0===n.loading&&void 0===a.loading&&t.push(e.h("tr",{class:"q-table__progress"},[e.h("th",{class:"relative-position",colspan:D.value},ue())])),e.h("thead",t)}function xe(){const t=a.header,o=a["header-cell"];if(void 0!==t)return t(_e({header:!0})).slice();const l=R.value.map(t=>{const n=a[`header-cell-${t.name}`],l=void 0!==n?n:o,i=_e({col:t});return void 0!==l?l(i):e.h(xd,{key:t.name,props:i},()=>t.label)});if(!0===A.value&&!0!==n.grid)l.unshift(e.h("th",{class:"q-table--col-auto-width"}," "));else if(!0===L.value){const t=a["header-selection"],o=void 0!==t?t(_e({})):[e.h(Ia,{color:n.color,modelValue:ye.value,dark:s.value,dense:n.dense,"onUpdate:modelValue":Se})];l.unshift(e.h("th",{class:"q-table--col-auto-width"},o))}return[e.h("tr",{class:n.tableHeaderClass,style:n.tableHeaderStyle},l)]}function _e(e){return Object.assign(e,{cols:R.value,sort:Q,colsMap:N.value,color:n.color,dark:s.value,dense:n.dense}),!0===L.value&&t(e,"selected",()=>ye.value,Se),e}function Se(e){!0===V.value&&(e=!1),F(T.value.map(d.value),T.value,e)}const ke=e.computed(()=>{const e=[n.iconFirstPage||r.iconSet.table.firstPage,n.iconPrevPage||r.iconSet.table.prevPage,n.iconNextPage||r.iconSet.table.nextPage,n.iconLastPage||r.iconSet.table.lastPage];return!0===r.lang.rtl?e.reverse():e});function Ce(){if(!0===n.hideBottom)return;if(!0===ne.value){if(!0===n.hideNoData)return;const t=!0===n.loading?n.loadingLabel||r.lang.table.loading:n.filter?n.noResultsLabel||r.lang.table.noResults:n.noDataLabel||r.lang.table.noData,o=a["no-data"],l=void 0!==o?[o({message:t,icon:r.iconSet.table.warning,filter:n.filter})]:[e.h(mt,{class:"q-table__bottom-nodata-icon",name:r.iconSet.table.warning}),t];return e.h("div",{class:Qd+" q-table__bottom--nodata"},l)}const t=a.bottom;if(void 0!==t)return e.h("div",{class:Qd},[t(ge.value)]);const o=!0!==n.hideSelectedBanner&&!0===B.value&&z.value>0?[e.h("div",{class:"q-table__control"},[e.h("div",[(n.selectedRowsLabel||r.lang.table.selectedRecords)(z.value)])])]:[];return!0!==n.hidePagination?e.h("div",{class:Qd+" justify-end"},$e(o)):0!==o.length?e.h("div",{class:Qd},o):void 0}function qe(e){_({page:1,rowsPerPage:e.value})}function $e(t){let o;const{rowsPerPage:l}=y.value,i=n.paginationLabel||r.lang.table.pagination,u=a.pagination,c=n.rowsPerPageOptions.length>1;if(t.push(e.h("div",{class:"q-table__separator col"})),!0===c&&t.push(e.h("div",{class:"q-table__control"},[e.h("span",{class:"q-table__bottom-item"},[n.rowsPerPageLabel||r.lang.table.recordsPerPage]),e.h(mc,{class:"q-table__select inline q-table__bottom-item",color:n.color,modelValue:l,options:Z.value,displayValue:0===l?r.lang.table.allRows:l,dark:s.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":qe})])),void 0!==u)o=u(ge.value);else if(o=[e.h("span",0!==l?{class:"q-table__bottom-item"}:{},[l?i(U.value+1,Math.min(W.value,G.value),G.value):i(1,M.value,G.value)])],0!==l&&X.value>1){const t={color:n.color,round:!0,dense:!0,flat:!0};!0===n.dense&&(t.size="sm"),X.value>2&&o.push(e.h(yo,{key:"pgFirst",...t,icon:ke.value[0],disable:K.value,onClick:J})),o.push(e.h(yo,{key:"pgPrev",...t,icon:ke.value[1],disable:K.value,onClick:ee}),e.h(yo,{key:"pgNext",...t,icon:ke.value[2],disable:Y.value,onClick:te})),X.value>2&&o.push(e.h(yo,{key:"pgLast",...t,icon:ke.value[3],disable:Y.value,onClick:oe}))}return t.push(e.h("div",{class:"q-table__control"},o)),t}function Me(){const t=!0===n.gridHeader?[e.h("table",{class:"q-table"},[we()])]:!0===n.loading&&void 0===a.loading?ue():void 0;return e.h("div",{class:"q-table__middle"},t)}function Te(){const t=void 0!==a.item?a.item:t=>{const o=t.cols.map(t=>e.h("div",{class:"q-table__grid-item-row"},[e.h("div",{class:"q-table__grid-item-title"},[t.label]),e.h("div",{class:"q-table__grid-item-value"},[t.value])]));if(!0===B.value){const l=a["body-selection"],i=void 0!==l?l(t):[e.h(Ia,{modelValue:t.selected,color:n.color,dark:s.value,dense:n.dense,"onUpdate:modelValue":(e,o)=>{F([t.key],[t.row],e,o)}})];o.unshift(e.h("div",{class:"q-table__grid-item-row"},i),e.h(ts,{dark:s.value}))}const i={class:["q-table__grid-item-card"+f.value,n.cardClass],style:n.cardStyle};return void 0===n.onRowClick&&void 0===n.onRowDblclick||(i.class[0]+=" cursor-pointer",void 0!==n.onRowClick&&(i.onClick=(e=>{l("RowClick",e,t.row,t.pageIndex)})),void 0!==n.onRowDblclick&&(i.onDblclick=(e=>{l("RowDblclick",e,t.row,t.pageIndex)}))),e.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(!0===t.selected?" q-table__grid-item--selected":"")},[e.h("div",i,o)])};return e.h("div",{class:["q-table__grid-content row",n.cardContainerClass],style:n.cardContainerStyle},T.value.map((e,o)=>{return t(ve({key:d.value(e),row:e,pageIndex:o}))}))}return Object.assign(i.proxy,{requestServerInteraction:x,setPagination:_,firstPage:J,prevPage:ee,nextPage:te,lastPage:oe,isRowSelected:E,clearSelection:P,isRowExpanded:k,setExpanded:C,sort:Q,resetVirtualScroll:le,scrollTo:re,getCellValue:he}),o(i.proxy,{filteredSortedRows:()=>$.value,computedRows:()=>T.value,computedRowsNumber:()=>G.value}),()=>{const t=[be()],o={ref:v,class:g.value};return!0===n.grid?t.push(Me()):Object.assign(o,{class:[o.class,n.cardClass],style:n.cardStyle}),t.push(ie(),Ce()),!0===n.loading&&void 0!==a.loading&&t.push(a.loading()),e.h("div",o,t)}}}),Kd=$e({name:"QTr",props:{props:Object,noHover:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-tr"+(void 0===t.props||!0===t.props.header?"":" "+t.props.__trClass)+(!0===t.noHover?" q-tr--no-hover":""));return()=>e.h("tr",{class:n.value},Ye(o.default))}}),Yd=$e({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=e.computed(()=>"q-td"+(!0===t.autoWidth?" q-table--col-auto-width":"")+(!0===t.noHover?" q-td--no-hover":"")+" ");return()=>{if(void 0===t.props)return e.h("td",{class:a.value},Ye(o.default));const l=n.vnode.key,i=(void 0!==t.props.colsMap?t.props.colsMap[l]:null)||t.props.col;if(void 0===i)return;const{row:r}=t.props;return e.h("td",{class:a.value+i.__tdClass(r),style:i.__tdStyle(r)},Ye(o.default))}}}),Xd=$e({name:"QRouteTab",props:{...It,...hl},emits:fl,setup(t,{slots:o,emit:n}){const a=Rt({useDisableForRouterLinkProps:!1}),{renderTab:l,$tabs:i}=gl(t,o,n,{exact:e.computed(()=>t.exact),...a});return e.watch(()=>`${t.name} | ${t.exact} | ${(a.resolvedLink.value||{}).href}`,()=>{i.verifyRouteModel()}),()=>l(a.linkTag.value,a.linkAttrs.value)}});function Zd(e,t){if(null!==e.hour){if(null===e.minute)return"minute";if(!0===t&&null===e.second)return"second"}return"hour"}function Gd(){const e=new Date;return{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}}var Jd=$e({name:"QTime",props:{...bt,...oa,...ii,mask:{default:null},format24h:{type:Boolean,default:null},defaultDate:{type:String,validator:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e)},options:Function,hourOptions:Array,minuteOptions:Array,secondOptions:Array,withSeconds:Boolean,nowBtn:Boolean},emits:ri,setup(t,{slots:o,emit:n}){const a=e.getCurrentInstance(),{$q:l}=a.proxy,i=yt(t,l),{tabindex:r,headerClass:s,getLocale:u,getCurrentDate:c}=ui(t,l),d=na(t),v=aa(d);let p,m;const f=e.ref(null),h=e.computed(()=>j()),g=e.computed(()=>u()),b=e.computed(()=>H()),y=qi(t.modelValue,h.value,g.value,t.calendar,b.value),x=e.ref(Zd(y)),_=e.ref(y),S=e.ref(null===y.hour||y.hour<12),k=e.computed(()=>`q-time q-time--${!0===t.landscape?"landscape":"portrait"}`+(!0===i.value?" q-time--dark q-dark":"")+(!0===t.disable?" disabled":!0===t.readonly?" q-time--readonly":"")+(!0===t.bordered?" q-time--bordered":"")+(!0===t.square?" q-time--square no-border-radius":"")+(!0===t.flat?" q-time--flat no-shadow":"")),C=e.computed(()=>{const e=_.value;return{hour:null===e.hour?"--":!0===q.value?Ve(e.hour):String(!0===S.value?0===e.hour?12:e.hour:e.hour>12?e.hour-12:e.hour),minute:null===e.minute?"--":Ve(e.minute),second:null===e.second?"--":Ve(e.second)}}),q=e.computed(()=>null!==t.format24h?t.format24h:l.lang.date.format24h),$=e.computed(()=>{const e="hour"===x.value,t=!0===e?12:60,o=_.value[x.value],n=Math.round(o*(360/t))-180;let a=`rotate(${n}deg) translateX(-50%)`;return!0===e&&!0===q.value&&_.value.hour>=12&&(a+=" scale(.7)"),{transform:a}}),M=e.computed(()=>null!==_.value.hour),T=e.computed(()=>!0===M.value&&null!==_.value.minute),B=e.computed(()=>void 0!==t.hourOptions?e=>t.hourOptions.includes(e):void 0!==t.options?e=>t.options(e,null,null):null),A=e.computed(()=>void 0!==t.minuteOptions?e=>t.minuteOptions.includes(e):void 0!==t.options?e=>t.options(_.value.hour,e,null):null),L=e.computed(()=>void 0!==t.secondOptions?e=>t.secondOptions.includes(e):void 0!==t.options?e=>t.options(_.value.hour,_.value.minute,e):null),O=e.computed(()=>{if(null===B.value)return null;const e=R(0,11,B.value),t=R(12,11,B.value);return{am:e,pm:t,values:e.values.concat(t.values)}}),V=e.computed(()=>null!==A.value?R(0,59,A.value):null),z=e.computed(()=>null!==L.value?R(0,59,L.value):null),E=e.computed(()=>{switch(x.value){case"hour":return O.value;case"minute":return V.value;case"second":return z.value}}),P=e.computed(()=>{let e,t,o=0,n=1;const a=null!==E.value?E.value.values:void 0;"hour"===x.value?!0===q.value?(e=0,t=23):(e=0,t=11,!1===S.value&&(o=12)):(e=0,t=55,n=5);const l=[];for(let i=e,r=e;i<=t;i+=n,r++){const e=i+o,t=void 0!==a&&!1===a.includes(e),n="hour"===x.value&&0===i?!0===q.value?"00":"12":i;l.push({val:e,index:r,disable:t,label:n})}return l}),F=e.computed(()=>{return[[Xa,W,void 0,{stop:!0,prevent:!0,mouse:!0}]]});function I(){const e={...c(),...Gd()};ve(e),Object.assign(_.value,e),x.value="hour"}function R(e,t,o){const n=Array.apply(null,{length:t+1}).map((t,n)=>{const a=n+e;return{index:a,val:!0===o(a)}}).filter(e=>!0===e.val).map(e=>e.index);return{min:n[0],max:n[n.length-1],values:n,threshold:t+1}}function N(e,t,o){const n=Math.abs(e-t);return Math.min(n,o-n)}function D(e,{min:t,max:o,values:n,threshold:a}){if(e===t)return t;if(e<t||e>o)return N(e,t,a)<=N(e,o,a)?t:o;const l=n.findIndex(t=>e<=t),i=n[l-1],r=n[l];return e-i<=r-e?i:r}function j(){return"persian"!==t.calendar&&null!==t.mask?t.mask:`HH:mm${!0===t.withSeconds?":ss":""}`}function H(){if("string"!==typeof t.defaultDate){const e=c(!0);return e.dateHash=si(e),e}return qi(t.defaultDate,"YYYY/MM/DD",void 0,t.calendar)}function Q(){return!0===Bt(a)||null!==E.value&&(0===E.value.values.length||"hour"===x.value&&!0!==q.value&&0===O.value[!0===S.value?"am":"pm"].values.length)}function U(){const e=f.value,{top:t,left:o,width:n}=e.getBoundingClientRect(),a=n/2;return{top:t+a,left:o+a,dist:.7*a}}function W(e){if(!0!==Q()){if(!0===e.isFirst)return p=U(),void(m=Y(e.evt,p));m=Y(e.evt,p,m),!0===e.isFinal&&(p=!1,m=null,K())}}function K(){"hour"===x.value?x.value="minute":t.withSeconds&&"minute"===x.value&&(x.value="second")}function Y(e,t,o){const n=w(e),a=Math.abs(n.top-t.top),l=Math.sqrt(Math.pow(Math.abs(n.top-t.top),2)+Math.pow(Math.abs(n.left-t.left),2));let i,r=Math.asin(a/l)*(180/Math.PI);if(r=n.top<t.top?t.left<n.left?90-r:270+r:t.left<n.left?r+90:270-r,"hour"===x.value){if(i=r/30,null!==O.value){const e=!0!==q.value?!0===S.value:0!==O.value.am.values.length&&0!==O.value.pm.values.length?l>=t.dist:0!==O.value.am.values.length;i=D(i+(!0===e?0:12),O.value[!0===e?"am":"pm"])}else i=Math.round(i),!0===q.value?l<t.dist?i<12&&(i+=12):12===i&&(i=0):!0===S.value&&12===i?i=0:!1===S.value&&12!==i&&(i+=12);!0===q.value&&(S.value=i<12)}else i=Math.round(r/6)%60,"minute"===x.value&&null!==V.value?i=D(i,V.value):"second"===x.value&&null!==z.value&&(i=D(i,z.value));return o!==i&&re[x.value](i),i}e.watch(()=>t.modelValue,e=>{const o=qi(e,h.value,g.value,t.calendar,b.value);o.dateHash===_.value.dateHash&&o.timeHash===_.value.timeHash||(_.value=o,null===o.hour?x.value="hour":S.value=o.hour<12)}),e.watch([h,g],()=>{e.nextTick(()=>{ve()})});const X={hour(){x.value="hour"},minute(){x.value="minute"},second(){x.value="second"}};function Z(e){13===e.keyCode&&se()}function G(e){13===e.keyCode&&ue()}function J(e){!0!==Q()&&(!0!==l.platform.is.desktop&&Y(e,U()),K())}function ee(e){!0!==Q()&&Y(e,U())}function te(e){if(13===e.keyCode)x.value="hour";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==O.value){const e=!0===q.value?O.value.values:O.value[!0===S.value?"am":"pm"].values;if(0===e.length)return;if(null===_.value.hour)ae(e[0]);else{const o=(e.length+e.indexOf(_.value.hour)+t)%e.length;ae(e[o])}}else{const e=!0===q.value?24:12,o=!0!==q.value&&!1===S.value?12:0,n=null===_.value.hour?-t:_.value.hour;ae(o+(24+n+t)%e)}}}function oe(e){if(13===e.keyCode)x.value="minute";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==V.value){const e=V.value.values;if(0===e.length)return;if(null===_.value.minute)le(e[0]);else{const o=(e.length+e.indexOf(_.value.minute)+t)%e.length;le(e[o])}}else{const e=null===_.value.minute?-t:_.value.minute;le((60+e+t)%60)}}}function ne(e){if(13===e.keyCode)x.value="second";else if([37,39].includes(e.keyCode)){const t=37===e.keyCode?-1:1;if(null!==z.value){const e=z.value.values;if(0===e.length)return;if(null===_.value.seconds)ie(e[0]);else{const o=(e.length+e.indexOf(_.value.second)+t)%e.length;ie(e[o])}}else{const e=null===_.value.second?-t:_.value.second;ie((60+e+t)%60)}}}function ae(e){_.value.hour!==e&&(_.value.hour=e,de())}function le(e){_.value.minute!==e&&(_.value.minute=e,de())}function ie(e){_.value.second!==e&&(_.value.second=e,de())}const re={hour:ae,minute:le,second:ie};function se(){!1===S.value&&(S.value=!0,null!==_.value.hour&&(_.value.hour-=12,de()))}function ue(){!0===S.value&&(S.value=!1,null!==_.value.hour&&(_.value.hour+=12,de()))}function ce(e){const o=t.modelValue;x.value!==e&&void 0!==o&&null!==o&&""!==o&&"string"!==typeof o&&(x.value=e)}function de(){return null!==B.value&&!0!==B.value(_.value.hour)?(_.value=qi(),void ce("hour")):null!==A.value&&!0!==A.value(_.value.minute)?(_.value.minute=null,_.value.second=null,void ce("minute")):!0===t.withSeconds&&null!==L.value&&!0!==L.value(_.value.second)?(_.value.second=null,void ce("second")):void(null===_.value.hour||null===_.value.minute||!0===t.withSeconds&&null===_.value.second||ve())}function ve(e){const o=Object.assign({..._.value},e),a="persian"===t.calendar?Ve(o.hour)+":"+Ve(o.minute)+(!0===t.withSeconds?":"+Ve(o.second):""):Yi(new Date(o.year,null===o.month?null:o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond),h.value,g.value,o.year,o.timezoneOffset);o.changed=a!==t.modelValue,n("update:modelValue",a,o)}function pe(){const o=[e.h("div",{class:"q-time__link "+("hour"===x.value?"q-time__link--active":"cursor-pointer"),tabindex:r.value,onClick:X.hour,onKeyup:te},C.value.hour),e.h("div",":"),e.h("div",!0===M.value?{class:"q-time__link "+("minute"===x.value?"q-time__link--active":"cursor-pointer"),tabindex:r.value,onKeyup:oe,onClick:X.minute}:{class:"q-time__link"},C.value.minute)];!0===t.withSeconds&&o.push(e.h("div",":"),e.h("div",!0===T.value?{class:"q-time__link "+("second"===x.value?"q-time__link--active":"cursor-pointer"),tabindex:r.value,onKeyup:ne,onClick:X.second}:{class:"q-time__link"},C.value.second));const n=[e.h("div",{class:"q-time__header-label row items-center no-wrap",dir:"ltr"},o)];return!1===q.value&&n.push(e.h("div",{class:"q-time__header-ampm column items-between no-wrap"},[e.h("div",{class:"q-time__link "+(!0===S.value?"q-time__link--active":"cursor-pointer"),tabindex:r.value,onClick:se,onKeyup:Z},"AM"),e.h("div",{class:"q-time__link "+(!0!==S.value?"q-time__link--active":"cursor-pointer"),tabindex:r.value,onClick:ue,onKeyup:G},"PM")])),e.h("div",{class:"q-time__header flex flex-center no-wrap "+s.value},n)}function me(){const o=_.value[x.value];return e.h("div",{class:"q-time__content col relative-position"},[e.h(e.Transition,{name:"q-transition--scale"},()=>e.h("div",{key:"clock"+x.value,class:"q-time__container-parent absolute-full"},[e.h("div",{ref:f,class:"q-time__container-child fit overflow-hidden"},[e.withDirectives(e.h("div",{class:"q-time__clock cursor-pointer non-selectable",onClick:J,onMousedown:ee},[e.h("div",{class:"q-time__clock-circle fit"},[e.h("div",{class:"q-time__clock-pointer"+(null===_.value[x.value]?" hidden":void 0!==t.color?` text-${t.color}`:""),style:$.value}),P.value.map(t=>e.h("div",{class:`q-time__clock-position row flex-center q-time__clock-pos-${t.index}`+(t.val===o?" q-time__clock-position--active "+s.value:!0===t.disable?" q-time__clock-position--disable":"")},[e.h("span",t.label)]))])]),F.value)])])),!0===t.nowBtn?e.h(yo,{class:"q-time__now-button absolute",icon:l.iconSet.datetime.now,unelevated:!0,size:"sm",round:!0,color:t.color,textColor:t.textColor,tabindex:r.value,onClick:I}):null])}return a.proxy.setNow=I,()=>{const n=[me()],a=Ye(o.default);return void 0!==a&&n.push(e.h("div",{class:"q-time__actions"},a)),void 0!==t.name&&!0!==t.disable&&v(n,"push"),e.h("div",{class:k.value,tabindex:-1},[pe(),e.h("div",{class:"q-time__main col overflow-auto"},n)])}}}),ev=$e({name:"QTimeline",props:{...bt,color:{type:String,default:"primary"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},layout:{type:String,default:"dense",validator:e=>["dense","comfortable","loose"].includes(e)}},setup(t,{slots:o}){const n=e.getCurrentInstance(),a=yt(t,n.proxy.$q);e.provide(ae,t);const l=e.computed(()=>`q-timeline q-timeline--${t.layout} q-timeline--${t.layout}--${t.side}`+(!0===a.value?" q-timeline--dark":""));return()=>e.h("ul",{class:l.value},Ye(o.default))}}),tv=$e({name:"QTimelineEntry",props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},setup(t,{slots:o}){const n=e.inject(ae,ve);if(n===ve)return console.error("QTimelineEntry needs to be child of QTimeline"),ve;const a=e.computed(()=>`q-timeline__entry q-timeline__entry--${t.side}`+(void 0!==t.icon||void 0!==t.avatar?" q-timeline__entry--icon":"")),l=e.computed(()=>`q-timeline__dot text-${t.color||n.color}`),i=e.computed(()=>"comfortable"===n.layout&&"left"===n.side);return()=>{const n=Xe(o.default,[]);if(void 0!==t.body&&n.unshift(t.body),!0===t.heading){const o=[e.h("div"),e.h("div"),e.h(t.tag,{class:"q-timeline__heading-title"},n)];return e.h("div",{class:"q-timeline__heading"},!0===i.value?o.reverse():o)}let r;void 0!==t.icon?r=[e.h(mt,{class:"row items-center justify-center",name:t.icon})]:void 0!==t.avatar&&(r=[e.h("img",{class:"q-timeline__dot-img",src:t.avatar})]);const s=[e.h("div",{class:"q-timeline__subtitle"},[e.h("span",{},Ye(o.subtitle,[t.subtitle]))]),e.h("div",{class:l.value},r),e.h("div",{class:"q-timeline__content"},[e.h("h6",{class:"q-timeline__title"},Ye(o.title,[t.title]))].concat(n))];return e.h("li",{class:a.value},!0===i.value?s.reverse():s)}}}),ov=$e({name:"QToolbar",props:{inset:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-toolbar row no-wrap items-center"+(!0===t.inset?" q-toolbar--inset":""));return()=>e.h("div",{class:n.value,role:"toolbar"},Ye(o.default))}}),nv=$e({name:"QToolbarTitle",props:{shrink:Boolean},setup(t,{slots:o}){const n=e.computed(()=>"q-toolbar__title ellipsis"+(!0===t.shrink?" col-shrink":""));return()=>e.h("div",{class:n.value},Ye(o.default))}});const av=["none","strict","leaf","leaf-filtered"];var lv=$e({name:"QTree",props:{...bt,nodes:{type:Array,required:!0},nodeKey:{type:String,required:!0},labelKey:{type:String,default:"label"},childrenKey:{type:String,default:"children"},dense:Boolean,color:String,controlColor:String,textColor:String,selectedColor:String,icon:String,tickStrategy:{type:String,default:"none",validator:e=>av.includes(e)},ticked:Array,expanded:Array,selected:{},noSelectionUnset:Boolean,defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:Function,duration:Number,noConnectors:Boolean,noTransition:Boolean,noNodesLabel:String,noResultsLabel:String},emits:["update:expanded","update:ticked","update:selected","lazyLoad","afterShow","afterHide"],setup(o,{slots:n,emit:a}){const{proxy:l}=e.getCurrentInstance(),{$q:i}=l,r=yt(o,i),s=e.ref({}),u=e.ref(o.ticked||[]),c=e.ref(o.expanded||[]);let d={};e.onBeforeUpdate(()=>{d={}});const v=e.computed(()=>`q-tree q-tree--${!0===o.dense?"dense":"standard"}`+(!0===o.noConnectors?" q-tree--no-connectors":"")+(!0===r.value?" q-tree--dark":"")+(void 0!==o.color?` text-${o.color}`:"")),p=e.computed(()=>void 0!==o.selected),m=e.computed(()=>o.icon||i.iconSet.tree.icon),f=e.computed(()=>o.controlColor||o.color),h=e.computed(()=>void 0!==o.textColor?` text-${o.textColor}`:""),g=e.computed(()=>{const e=o.selectedColor||o.color;return e?` text-${e}`:""}),b=e.computed(()=>void 0!==o.filterMethod?o.filterMethod:(e,t)=>{const n=t.toLowerCase();return e[o.labelKey]&&e[o.labelKey].toLowerCase().indexOf(n)>-1}),y=e.computed(()=>{const e={},t=(n,a)=>{const l=n.tickStrategy||(a?a.tickStrategy:o.tickStrategy),i=n[o.nodeKey],r=n[o.childrenKey]&&Array.isArray(n[o.childrenKey])&&0!==n[o.childrenKey].length,d=!0!==n.disabled&&!0===p.value&&!1!==n.selectable,v=!0!==n.disabled&&!1!==n.expandable,m="none"!==l,f="strict"===l,h="leaf-filtered"===l,g="leaf"===l||"leaf-filtered"===l;let y=!0!==n.disabled&&!1!==n.tickable;!0===g&&!0===y&&a&&!0!==a.tickable&&(y=!1);let w=n.lazy;!0===w&&void 0!==s.value[i]&&!0===Array.isArray(n[o.childrenKey])&&(w=s.value[i]);const x={key:i,parent:a,isParent:r,lazy:w,disabled:n.disabled,link:!0!==n.disabled&&(!0===d||!0===v&&(!0===r||!0===w)),children:[],matchesFilter:!o.filter||b.value(n,o.filter),selected:i===o.selected&&!0===d,selectable:d,expanded:!0===r&&c.value.includes(i),expandable:v,noTick:!0===n.noTick||!0!==f&&w&&"loaded"!==w,tickable:y,tickStrategy:l,hasTicking:m,strictTicking:f,leafFilteredTicking:h,leafTicking:g,ticked:!0===f?u.value.includes(i):!0!==r&&u.value.includes(i)};if(e[i]=x,!0===r&&(x.children=n[o.childrenKey].map(e=>t(e,x)),o.filter&&(!0!==x.matchesFilter?x.matchesFilter=x.children.some(e=>e.matchesFilter):!0!==x.noTick&&!0!==x.disabled&&!0===x.tickable&&!0===h&&!0===x.children.every(e=>!0!==e.matchesFilter||!0===e.noTick||!0!==e.tickable)&&(x.tickable=!1)),!0===x.matchesFilter&&(!0!==x.noTick&&!0!==f&&!0===x.children.every(e=>e.noTick)&&(x.noTick=!0),g))){if(x.ticked=!1,x.indeterminate=x.children.some(e=>!0===e.indeterminate),x.tickable=!0===x.tickable&&x.children.some(e=>e.tickable),!0!==x.indeterminate){const e=x.children.reduce((e,t)=>!0===t.ticked?e+1:e,0);e===x.children.length?x.ticked=!0:e>0&&(x.indeterminate=!0)}!0===x.indeterminate&&(x.indeterminateNextState=x.children.every(e=>!0!==e.tickable||!0!==e.ticked))}return x};return o.nodes.forEach(e=>t(e,null)),e});function w(e){const t=[].reduce,n=(a,l)=>{return a||!l?a:!0===Array.isArray(l)?t.call(Object(l),n,a):l[o.nodeKey]===e?l:l[o.childrenKey]?n(null,l[o.childrenKey]):void 0};return n(null,o.nodes)}function x(){return u.value.map(e=>w(e))}function _(){return c.value.map(e=>w(e))}function S(e){return!(!e||!y.value[e])&&y.value[e].expanded}function k(){void 0!==o.expanded?a("update:expanded",[]):c.value=[]}function C(){const e=[],t=n=>{n[o.childrenKey]&&0!==n[o.childrenKey].length&&!1!==n.expandable&&!0!==n.disabled&&(e.push(n[o.nodeKey]),n[o.childrenKey].forEach(t))};o.nodes.forEach(t),void 0!==o.expanded?a("update:expanded",e):c.value=e}function q(t,n,l=w(t),i=y.value[t]){if(i.lazy&&"loaded"!==i.lazy){if("loading"===i.lazy)return;s.value[t]="loading",!0!==Array.isArray(l[o.childrenKey])&&(l[o.childrenKey]=[]),a("lazyLoad",{node:l,key:t,done:n=>{s.value[t]="loaded",l[o.childrenKey]=!0===Array.isArray(n)?n:[],e.nextTick(()=>{const e=y.value[t];e&&!0===e.isParent&&M(t,!0)})},fail:()=>{delete s.value[t],0===l[o.childrenKey].length&&delete l[o.childrenKey]}})}else!0===i.isParent&&!0===i.expandable&&M(t,n)}function M(e,t){let n=c.value;const l=void 0!==o.expanded;if(!0===l&&(n=n.slice()),t){if(o.accordion&&y.value[e]){const t=[];y.value[e].parent?y.value[e].parent.children.forEach(o=>{o.key!==e&&!0===o.expandable&&t.push(o.key)}):o.nodes.forEach(n=>{const a=n[o.nodeKey];a!==e&&t.push(a)}),0!==t.length&&(n=n.filter(e=>!1===t.includes(e)))}n=n.concat([e]).filter((e,t,o)=>o.indexOf(e)===t)}else n=n.filter(t=>t!==e);!0===l?a("update:expanded",n):c.value=n}function T(e){return!(!e||!y.value[e])&&y.value[e].ticked}function B(e,t){let n=u.value;const l=void 0!==o.ticked;!0===l&&(n=n.slice()),n=t?n.concat(e).filter((e,t,o)=>o.indexOf(e)===t):n.filter(t=>!1===e.includes(t)),!0===l&&a("update:ticked",n)}function A(e,n,a){const i={tree:l,node:e,key:a,color:o.color,dark:r.value};return t(i,"expanded",()=>{return n.expanded},e=>{e!==n.expanded&&q(a,e)}),t(i,"ticked",()=>{return n.ticked},e=>{e!==n.ticked&&B([a],e)}),i}function L(e){return(o.filter?e.filter(e=>y.value[e[o.nodeKey]].matchesFilter):e).map(e=>E(e))}function O(t){if(void 0!==t.icon)return e.h(mt,{class:"q-tree__icon q-mr-sm",name:t.icon,color:t.iconColor});const o=t.img||t.avatar;return o?e.h("img",{class:`q-tree__${t.img?"img":"avatar"} q-mr-sm`,src:o}):void 0}function V(){a("afterShow")}function z(){a("afterHide")}function E(t){const a=t[o.nodeKey],l=y.value[a],i=t.header&&n[`header-${t.header}`]||n["default-header"],s=!0===l.isParent?L(t[o.childrenKey]):[],u=0!==s.length||l.lazy&&"loaded"!==l.lazy;let c=t.body&&n[`body-${t.body}`]||n["default-body"];const v=void 0!==i||void 0!==c?A(t,l,a):null;return void 0!==c&&(c=e.h("div",{class:"q-tree__node-body relative-position"},[e.h("div",{class:h.value},[c(v)])])),e.h("div",{key:a,class:"q-tree__node relative-position"+` q-tree__node--${!0===u?"parent":"child"}`},[e.h("div",{class:"q-tree__node-header relative-position row no-wrap items-center"+(!0===l.link?" q-tree__node--link q-hoverable q-focusable":"")+(!0===l.selected?" q-tree__node--selected":"")+(!0===l.disabled?" q-tree__node--disabled":""),tabindex:!0===l.link?0:-1,ariaExpanded:s.length>0?l.expanded:null,role:"treeitem",onClick:e=>{F(t,l,e)},onKeypress(e){!0!==K(e)&&(13===e.keyCode?F(t,l,e,!0):32===e.keyCode&&I(t,l,e,!0))}},[e.h("div",{class:"q-focus-helper",tabindex:-1,ref:e=>{d[l.key]=e}}),"loading"===l.lazy?e.h(Ht,{class:"q-tree__spinner",color:f.value}):!0===u?e.h(mt,{class:"q-tree__arrow"+(!0===l.expanded?" q-tree__arrow--rotate":""),name:m.value,onClick(e){I(t,l,e)}}):null,!0===l.hasTicking&&!0!==l.noTick?e.h(Ia,{class:"q-tree__tickbox",modelValue:!0===l.indeterminate?null:l.ticked,color:f.value,dark:r.value,dense:!0,keepColor:!0,disable:!0!==l.tickable,onKeydown:$,"onUpdate:modelValue":e=>{R(l,e)}}):null,e.h("div",{class:"q-tree__node-header-content col row no-wrap items-center"+(!0===l.selected?g.value:h.value)},[i?i(v):[O(t),e.h("div",t[o.labelKey])]])]),!0===u?!0===o.noTransition?!0===l.expanded?e.h("div",{class:"q-tree__node-collapsible"+h.value,key:`${a}__q`},[c,e.h("div",{class:"q-tree__children"+(!0===l.disabled?" q-tree__node--disabled":""),role:"group"},s)]):null:e.h(Gr,{duration:o.duration,onShow:V,onHide:z},()=>e.withDirectives(e.h("div",{class:"q-tree__node-collapsible"+h.value,key:`${a}__q`},[c,e.h("div",{class:"q-tree__children"+(!0===l.disabled?" q-tree__node--disabled":""),role:"group"},s)]),[[e.vShow,l.expanded]])):c])}function P(e){const t=d[e];t&&t.focus()}function F(e,t,n,l){!0!==l&&!1!==t.selectable&&P(t.key),p.value&&t.selectable?!1===o.noSelectionUnset?a("update:selected",t.key!==o.selected?t.key:null):t.key!==o.selected&&a("update:selected",void 0===t.key?null:t.key):I(e,t,n,l),"function"===typeof e.handler&&e.handler(e)}function I(e,t,o,n){void 0!==o&&$(o),!0!==n&&!1!==t.selectable&&P(t.key),q(t.key,!t.expanded,e,t)}function R(e,t){if(!0===e.indeterminate&&(t=e.indeterminateNextState),e.strictTicking)B([e.key],t);else if(e.leafTicking){const o=[],n=e=>{e.isParent?(!0!==t&&!0!==e.noTick&&!0===e.tickable&&o.push(e.key),!0===e.leafTicking&&e.children.forEach(n)):!0===e.noTick||!0!==e.tickable||!0===e.leafFilteredTicking&&!0!==e.matchesFilter||o.push(e.key)};n(e),B(o,t)}}return e.watch(()=>o.ticked,e=>{u.value=e}),e.watch(()=>o.expanded,e=>{c.value=e}),!0===o.defaultExpandAll&&C(),Object.assign(l,{getNodeByKey:w,getTickedNodes:x,getExpandedNodes:_,isExpanded:S,collapseAll:k,expandAll:C,setExpanded:q,isTicked:T,setTicked:B}),()=>{const t=L(o.nodes);return e.h("div",{class:v.value,role:"tree"},0===t.length?o.filter?o.noResultsLabel||i.lang.tree.noResults:o.noNodesLabel||i.lang.tree.noNodes:t)}}});function iv(e){return(100*e).toFixed(2)+"%"}const rv={...bt,...qs,label:String,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,noThumbnails:Boolean,autoUpload:Boolean,hideUploadBtn:Boolean,disable:Boolean,readonly:Boolean},sv=[...$s,"start","finish","added","removed"];function uv(n,a){const l=e.getCurrentInstance(),{props:i,slots:r,emit:s,proxy:u}=l,{$q:c}=u,d=yt(i,c);function v(e,t,o){if(e.__status=t,"idle"===t)return e.__uploaded=0,e.__progress=0,e.__sizeLabel=Be(e.size),void(e.__progressLabel="0.00%");"failed"!==t?(e.__uploaded="uploaded"===t?e.size:o,e.__progress="uploaded"===t?1:Math.min(.9999,e.__uploaded/e.size),e.__progressLabel=iv(e.__progress),u.$forceUpdate()):u.$forceUpdate()}const p=e.computed(()=>!0!==i.disable&&!0!==i.readonly),m=e.ref(!1),f=e.ref(null),h=e.ref(null),g={files:e.ref([]),queuedFiles:e.ref([]),uploadedFiles:e.ref([]),uploadedSize:e.ref(0),updateFileStatus:v,isAlive:()=>!1===Bt(l)},{pickFiles:b,addFiles:y,onDragover:w,onDragleave:x,processFiles:_,getDndNode:S,maxFilesNumber:k,maxTotalSizeNumber:q}=Ms({editable:p,dnd:m,getFileInput:N,addFilesToQueue:D});Object.assign(g,n({props:i,slots:r,emit:s,helpers:g,exposeApi:e=>{Object.assign(g,e)}})),void 0===g.isBusy&&(g.isBusy=e.ref(!1));const $=e.ref(0),M=e.computed(()=>0===$.value?0:g.uploadedSize.value/$.value),T=e.computed(()=>iv(M.value)),B=e.computed(()=>Be($.value)),A=e.computed(()=>!0===p.value&&!0!==g.isUploading.value&&(!0===i.multiple||0===g.queuedFiles.value.length)&&(void 0===i.maxFiles||g.files.value.length<k.value)&&(void 0===i.maxTotalSize||$.value<q.value)),L=e.computed(()=>!0===p.value&&!0!==g.isBusy.value&&!0!==g.isUploading.value&&0!==g.queuedFiles.value.length);e.provide(de,Q);const O=e.computed(()=>"q-uploader column no-wrap"+(!0===d.value?" q-uploader--dark q-dark":"")+(!0===i.bordered?" q-uploader--bordered":"")+(!0===i.square?" q-uploader--square no-border-radius":"")+(!0===i.flat?" q-uploader--flat no-shadow":"")+(!0===i.disable?" disabled q-uploader--disable":"")+(!0===m.value?" q-uploader--dnd":"")),V=e.computed(()=>"q-uploader__header"+(void 0!==i.color?` bg-${i.color}`:"")+(void 0!==i.textColor?` text-${i.textColor}`:""));function z(){!1===i.disable&&(g.abort(),g.uploadedSize.value=0,$.value=0,R(),g.files.value=[],g.queuedFiles.value=[],g.uploadedFiles.value=[])}function E(){!1===i.disable&&F(["uploaded"],()=>{g.uploadedFiles.value=[]})}function P(){F(["idle","failed"],({size:e})=>{$.value-=e,g.queuedFiles.value=[]})}function F(e,t){if(!0===i.disable)return;const o={files:[],size:0},n=g.files.value.filter(t=>{return-1===e.indexOf(t.__status)||(o.size+=t.size,o.files.push(t),void 0!==t.__img&&window.URL.revokeObjectURL(t.__img.src),!1)});0!==o.files.length&&(g.files.value=n,t(o),s("removed",o.files))}function I(e){i.disable||("uploaded"===e.__status?g.uploadedFiles.value=g.uploadedFiles.value.filter(t=>t.__key!==e.__key):"uploading"===e.__status?e.__abort():$.value-=e.size,g.files.value=g.files.value.filter(t=>{return t.__key!==e.__key||(void 0!==t.__img&&window.URL.revokeObjectURL(t.__img.src),!1)}),g.queuedFiles.value=g.queuedFiles.value.filter(t=>t.__key!==e.__key),s("removed",[e]))}function R(){g.files.value.forEach(e=>{void 0!==e.__img&&window.URL.revokeObjectURL(e.__img.src)})}function N(){return h.value||f.value.getElementsByClassName("q-uploader__input")[0]}function D(e,t){const o=_(e,t,g.files.value,!0),n=N();void 0!==n&&null!==n&&(n.value=""),void 0!==o&&(o.forEach(e=>{if(g.updateFileStatus(e,"idle"),$.value+=e.size,!0!==i.noThumbnails&&e.type.toUpperCase().startsWith("IMAGE")){const t=new Image;t.src=window.URL.createObjectURL(e),e.__img=t}}),g.files.value=g.files.value.concat(o),g.queuedFiles.value=g.queuedFiles.value.concat(o),s("added",o),!0===i.autoUpload&&g.upload())}function j(){!0===L.value&&g.upload()}function H(t,o,n){if(!0===t){const t={type:"a",key:o,icon:c.iconSet.uploader[o],flat:!0,dense:!0};let a=void 0;return"add"===o?(t.onClick=b,a=Q):t.onClick=n,e.h(yo,t,a)}}function Q(){return e.h("input",{ref:h,class:"q-uploader__input overflow-hidden absolute-full",tabindex:-1,type:"file",title:"",accept:i.accept,multiple:!0===i.multiple?"multiple":void 0,capture:i.capture,onMousedown:C,onClick:b,onChange:D})}function U(){return void 0!==r.header?r.header(K):[e.h("div",{class:"q-uploader__header-content column"},[e.h("div",{class:"flex flex-center no-wrap q-gutter-xs"},[H(0!==g.queuedFiles.value.length,"removeQueue",P),H(0!==g.uploadedFiles.value.length,"removeUploaded",E),!0===g.isUploading.value?e.h(Ht,{class:"q-uploader__spinner"}):null,e.h("div",{class:"col column justify-center"},[void 0!==i.label?e.h("div",{class:"q-uploader__title"},[i.label]):null,e.h("div",{class:"q-uploader__subtitle"},[B.value+" / "+T.value])]),H(A.value,"add"),H(!1===i.hideUploadBtn&&!0===L.value,"upload",g.upload),H(g.isUploading.value,"clear",g.abort)])])]}function W(){return void 0!==r.list?r.list(K):g.files.value.map(t=>e.h("div",{key:t.__key,class:"q-uploader__file relative-position"+(!0!==i.noThumbnails&&void 0!==t.__img?" q-uploader__file--img":"")+("failed"===t.__status?" q-uploader__file--failed":"uploaded"===t.__status?" q-uploader__file--uploaded":""),style:!0!==i.noThumbnails&&void 0!==t.__img?{backgroundImage:'url("'+t.__img.src+'")'}:null},[e.h("div",{class:"q-uploader__file-header row flex-center no-wrap"},["failed"===t.__status?e.h(mt,{class:"q-uploader__file-status",name:c.iconSet.type.negative,color:"negative"}):null,e.h("div",{class:"q-uploader__file-header-content col"},[e.h("div",{class:"q-uploader__title"},[t.name]),e.h("div",{class:"q-uploader__subtitle row items-center no-wrap"},[t.__sizeLabel+" / "+t.__progressLabel])]),"uploading"===t.__status?e.h(Wa,{value:t.__progress,min:0,max:1,indeterminate:0===t.__progress}):e.h(yo,{round:!0,dense:!0,flat:!0,icon:c.iconSet.uploader["uploaded"===t.__status?"done":"clear"],onClick:()=>{I(t)}})])]))}e.watch(g.isUploading,(e,t)=>{!1===t&&!0===e?s("start"):!0===t&&!1===e&&s("finish")}),e.onBeforeUnmount(()=>{!0===g.isUploading.value&&g.abort(),0!==g.files.value.length&&R()});const K={};for(const o in g)!0===e.isRef(g[o])?t(K,o,()=>g[o].value):K[o]=g[o];return Object.assign(K,{upload:j,reset:z,removeUploadedFiles:E,removeQueuedFiles:P,removeFile:I,pickFiles:b,addFiles:y}),o(K,{canAddFiles:()=>A.value,canUpload:()=>L.value,uploadSizeLabel:()=>B.value,uploadProgressLabel:()=>T.value}),a({...g,upload:j,reset:z,removeUploadedFiles:E,removeQueuedFiles:P,removeFile:I,pickFiles:b,addFiles:y,canAddFiles:A,canUpload:L,uploadSizeLabel:B,uploadProgressLabel:T}),()=>{const t=[e.h("div",{class:V.value},U()),e.h("div",{class:"q-uploader__list scroll"},W()),S("uploader")];!0===g.isBusy.value&&t.push(e.h("div",{class:"q-uploader__overlay absolute-full flex flex-center"},[e.h(Ht)]));const o={ref:f,class:O.value};return!0===A.value&&Object.assign(o,{onDragover:w,onDragleave:x}),e.h("div",o,t)}}const cv=()=>!0;function dv(e){const t={};return e.forEach(e=>{t[e]=cv}),t}const vv=dv(sv);var pv=({name:e,props:t,emits:o,injectPlugin:n})=>$e({name:e,props:{...rv,...t},emits:!0===ge(o)?{...vv,...o}:[...sv,...o],setup(e,{expose:t}){return uv(n,t)}});function mv(e){return"function"===typeof e?e:()=>e}const fv={url:[Function,String],method:{type:[Function,String],default:"POST"},fieldName:{type:[Function,String],default:()=>{return e=>e.name}},headers:[Function,Array],formFields:[Function,Array],withCredentials:[Function,Boolean],sendRaw:[Function,Boolean],batch:[Function,Boolean],factory:Function},hv=["factoryFailed","uploaded","failed","uploading"];function gv({props:t,emit:o,helpers:n}){const a=e.ref([]),l=e.ref([]),i=e.ref(0),r=e.computed(()=>({url:mv(t.url),method:mv(t.method),headers:mv(t.headers),formFields:mv(t.formFields),fieldName:mv(t.fieldName),withCredentials:mv(t.withCredentials),sendRaw:mv(t.sendRaw),batch:mv(t.batch)})),s=e.computed(()=>i.value>0),u=e.computed(()=>0!==l.value.length);let c;function d(){a.value.forEach(e=>{e.abort()}),0!==l.value.length&&(c=!0)}function v(){const e=n.queuedFiles.value.slice(0);n.queuedFiles.value=[],r.value.batch(e)?p(e):e.forEach(e=>{p([e])})}function p(e){if(i.value++,"function"!==typeof t.factory)return void m(e,{});const a=t.factory(e);if(a)if("function"===typeof a.catch&&"function"===typeof a.then){l.value.push(a);const t=t=>{!0===n.isAlive()&&(l.value=l.value.filter(e=>e!==a),0===l.value.length&&(c=!1),n.queuedFiles.value=n.queuedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"failed")}),o("factoryFailed",t,e),i.value--)};a.then(o=>{!0===c?t(new Error("Aborted")):!0===n.isAlive()&&(l.value=l.value.filter(e=>e!==a),m(e,o))}).catch(t)}else m(e,a||{});else o("factoryFailed",new Error("QUploader: factory() does not return properly"),e),i.value--}function m(e,t){const l=new FormData,s=new XMLHttpRequest,u=(e,o)=>{return void 0!==t[e]?mv(t[e])(o):r.value[e](o)},c=u("url",e);if(!c)return console.error("q-uploader: invalid or no URL specified"),void i.value--;const d=u("formFields",e);void 0!==d&&d.forEach(e=>{l.append(e.name,e.value)});let v,p=0,m=0,f=0,h=0;s.upload.addEventListener("progress",t=>{if(!0===v)return;const o=Math.min(h,t.loaded);n.uploadedSize.value+=o-f,f=o;let a=f-m;for(let l=p;a>0&&l<e.length;l++){const t=e[l],o=a>t.size;if(!o)return void n.updateFileStatus(t,"uploading",a);a-=t.size,p++,m+=t.size,n.updateFileStatus(t,"uploading",t.size)}},!1),s.onreadystatechange=(()=>{s.readyState<4||(s.status&&s.status<400?(n.uploadedFiles.value=n.uploadedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"uploaded")}),o("uploaded",{files:e,xhr:s})):(v=!0,n.uploadedSize.value-=f,n.queuedFiles.value=n.queuedFiles.value.concat(e),e.forEach(e=>{n.updateFileStatus(e,"failed")}),o("failed",{files:e,xhr:s})),i.value--,a.value=a.value.filter(e=>e!==s))}),s.open(u("method",e),c),!0===u("withCredentials",e)&&(s.withCredentials=!0);const g=u("headers",e);void 0!==g&&g.forEach(e=>{s.setRequestHeader(e.name,e.value)});const b=u("sendRaw",e);e.forEach(e=>{n.updateFileStatus(e,"uploading",0),!0!==b&&l.append(u("fieldName",e),e,e.name),e.xhr=s,e.__abort=(()=>{s.abort()}),h+=e.size}),o("uploading",{files:e,xhr:s}),a.value.push(s),!0===b?s.send(new Blob(e)):s.send(l)}return{isUploading:s,isBusy:u,abort:d,upload:v}}var bv={name:"QUploader",props:fv,emits:hv,injectPlugin:gv},yv=pv(bv),wv=$e({name:"QUploaderAddTrigger",setup(){const t=e.inject(de,ve);return t===ve&&console.error("QUploaderAddTrigger needs to be child of QUploader"),t}}),xv=$e({name:"QVideo",props:{...zs,src:{type:String,required:!0},title:String,fetchpriority:{type:String,default:"auto"},loading:{type:String,default:"eager"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin"}},setup(t){const o=Es(t),n=e.computed(()=>"q-video"+(void 0!==t.ratio?" q-video--responsive":""));return()=>e.h("div",{class:n.value,style:o.value},[e.h("iframe",{src:t.src,title:t.title,fetchpriority:t.fetchpriority,loading:t.loading,referrerpolicy:t.referrerpolicy,frameborder:"0",allowfullscreen:!0})])}}),_v=Object.freeze({__proto__:null,QAjaxBar:Qe,QAvatar:ft,QBadge:gt,QBanner:wt,QBar:xt,QBreadcrumbs:Lt,QBreadcrumbsEl:Nt,QBtn:yo,QBtnDropdown:ta,QBtnGroup:wo,QBtnToggle:ia,QCard:ra,QCardSection:sa,QCardActions:ua,QCarousel:Ta,QCarouselSlide:Ba,QCarouselControl:Aa,QChatMessage:La,QCheckbox:Ia,QChip:Na,QCircularProgress:Wa,QColor:Ql,QDate:ar,QDialog:Cr,QDrawer:$r,QEditor:Xr,QExpansionItem:as,QFab:cs,QFabAction:ps,QField:Ss,QFile:Bs,QFooter:As,QForm:Ls,QFormChildMixin:Os,QHeader:Vs,QIcon:mt,QImg:Fs,QInfiniteScroll:Rs,QInnerLoading:Ns,QInput:tu,QIntersection:iu,QList:ru,QItem:Vr,QItemSection:zr,QItemLabel:Zr,QKnob:cu,QLayout:mu,QMarkupTable:hu,QMenu:Hn,QNoSsr:gu,QOptionGroup:Su,QPage:ku,QPageContainer:Cu,QPageScroller:Mu,QPageSticky:Tu,QPagination:Au,QParallax:Vu,QPopupEdit:Eu,QPopupProxy:Pu,QLinearProgress:Ru,QPullToRefresh:ju,QRadio:yu,QRange:Qu,QRating:Uu,QResizeObserver:ul,QResponsive:Wu,QScrollArea:Gu,QScrollObserver:pu,QSelect:mc,QSeparator:ts,QSkeleton:gc,QSlideItem:yc,QSlideTransition:Gr,QSlider:ll,QSpace:xc,QSpinner:Ht,QSpinnerAudio:Sc,QSpinnerBall:Cc,QSpinnerBars:$c,QSpinnerBox:Tc,QSpinnerClock:Ac,QSpinnerComment:Oc,QSpinnerCube:zc,QSpinnerDots:Pc,QSpinnerFacebook:Ic,QSpinnerGears:Nc,QSpinnerGrid:jc,QSpinnerHearts:Qc,QSpinnerHourglass:Wc,QSpinnerInfinity:Yc,QSpinnerIos:Zc,QSpinnerOrbit:Jc,QSpinnerOval:td,QSpinnerPie:nd,QSpinnerPuff:ld,QSpinnerRadio:rd,QSpinnerRings:ud,QSpinnerTail:dd,QSplitter:vd,QStep:hd,QStepper:yd,QStepperNavigation:wd,QTabPanels:yl,QTabPanel:wl,QTable:Wd,QTh:xd,QTr:Kd,QTd:Yd,QTabs:pl,QTab:bl,QRouteTab:Xd,QTime:Jd,QTimeline:ev,QTimelineEntry:tv,QToggle:wu,QToolbar:ov,QToolbarTitle:nv,QTooltip:Or,QTree:lv,QUploader:yv,QUploaderAddTrigger:wv,QVideo:xv,QVirtualScroll:Cd});function Sv(e){if(!1===e)return 0;if(!0===e||void 0===e)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}var kv=Me({name:"close-popup",beforeMount(e,{value:t}){const o={depth:Sv(t),handler(t){0!==o.depth&&setTimeout(()=>{const n=jo(e);void 0!==n&&Qo(n,t,o.depth)})},handlerKey(e){!0===Y(e,13)&&o.handler(e)}};e.__qclosepopup=o,e.addEventListener("click",o.handler),e.addEventListener("keyup",o.handlerKey)},updated(e,{value:t,oldValue:o}){t!==o&&(e.__qclosepopup.depth=Sv(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}});let Cv=0,qv=void 0;function $v(e,t){void 0===qv&&(qv=document.createElement("div"),qv.style.cssText="position: absolute; left: 0; top: 0",document.body.appendChild(qv));const o=e.getBoundingClientRect(),n=qv.getBoundingClientRect(),{marginLeft:a,marginRight:l,marginTop:i,marginBottom:r}=window.getComputedStyle(e),s=parseInt(a,10)+parseInt(l,10),u=parseInt(i,10)+parseInt(r,10);return{left:o.left-n.left,top:o.top-n.top,width:o.right-o.left,height:o.bottom-o.top,widthM:o.right-o.left+(!0===t?0:s),heightM:o.bottom-o.top+(!0===t?0:u),marginH:!0===t?s:0,marginV:!0===t?u:0}}function Mv(e){return{width:e.scrollWidth,height:e.scrollHeight}}const Tv=["Top","Right","Bottom","Left"],Bv=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],Av=/-block|-inline|block-|inline-/,Lv=/(-block|-inline|block-|inline-).*:/;function Ov(e,t){const o=window.getComputedStyle(e),n={};for(let a=0;a<t.length;a++){const e=t[a];if(""===o[e])if("cssText"===e){const t=o.length;let a="";for(let e=0;e<t;e++)!0!==Av.test(o[e])&&(a+=o[e]+": "+o[o[e]]+"; ");n[e]=a}else if(["borderWidth","borderStyle","borderColor"].indexOf(e)>-1){const t=e.replace("border","");let a="";for(let e=0;e<Tv.length;e++){const n="border"+Tv[e]+t;a+=o[n]+" "}n[e]=a}else if("borderRadius"===e){let t="",a="";for(let e=0;e<Bv.length;e++){const n=o[Bv[e]].split(" ");t+=n[0]+" ",a+=(void 0===n[1]?n[0]:n[1])+" "}n[e]=t+"/ "+a}else n[e]=o[e];else n[e]="cssText"===e?o[e].split(";").filter(e=>!0!==Lv.test(e)).join(";"):o[e]}return n}const Vv=["absolute","fixed","relative","sticky"];function zv(e){let t=e,o=0;while(null!==t&&t!==document){const{position:n,zIndex:a}=window.getComputedStyle(t),l=Number(a);l>o&&(t===e||!0===Vv.includes(n))&&(o=l),t=t.parentNode}return o}function Ev(e){return{from:e.from,to:void 0!==e.to?e.to:e.from}}function Pv(e){return"number"===typeof e?e={duration:e}:"function"===typeof e&&(e={onEnd:e}),{...e,waitFor:void 0===e.waitFor?0:e.waitFor,duration:!0===isNaN(e.duration)?300:parseInt(e.duration,10),easing:"string"===typeof e.easing&&0!==e.easing.length?e.easing:"ease-in-out",delay:!0===isNaN(e.delay)?0:parseInt(e.delay,10),fill:"string"===typeof e.fill&&0!==e.fill.length?e.fill:"none",resize:!0===e.resize,useCSS:!0===e.useCSS||!0===e.usecss,hideFromClone:!0===e.hideFromClone||!0===e.hidefromclone,keepToClone:!0===e.keepToClone||!0===e.keeptoclone,tween:!0===e.tween,tweenFromOpacity:!0===isNaN(e.tweenFromOpacity)?.6:parseFloat(e.tweenFromOpacity),tweenToOpacity:!0===isNaN(e.tweenToOpacity)?.5:parseFloat(e.tweenToOpacity)}}function Fv(e){const t=typeof e;return"function"===t?e():"string"===t?document.querySelector(e):e}function Iv(e){return e&&e.ownerDocument===document&&null!==e.parentNode}function Rv(e){let t=()=>!1,o=!1,n=!0;const a=Ev(e),l=Pv(e),i=Fv(a.from);if(!0!==Iv(i))return t;"function"===typeof i.qMorphCancel&&i.qMorphCancel();let r=void 0,s=void 0,u=void 0,c=void 0;const d=i.parentNode,v=i.nextElementSibling,p=$v(i,l.resize),{width:m,height:f}=Mv(d),{borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,backgroundColor:w,transform:x,position:_,cssText:S}=Ov(i,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),k=i.classList.toString(),C=i.style.cssText,q=i.cloneNode(!0),$=!0===l.tween?i.cloneNode(!0):void 0;void 0!==$&&($.className=$.classList.toString().split(" ").filter(e=>!1===/^bg-/.test(e)).join(" ")),!0===l.hideFromClone&&q.classList.add("q-morph--internal"),q.setAttribute("aria-hidden","true"),q.style.transition="none",q.style.animation="none",q.style.pointerEvents="none",d.insertBefore(q,v),i.qMorphCancel=(()=>{o=!0,q.remove(),void 0!==$&&$.remove(),!0===l.hideFromClone&&q.classList.remove("q-morph--internal"),i.qMorphCancel=void 0});const M=()=>{const e=Fv(a.to);if(!0===o||!0!==Iv(e))return void("function"===typeof i.qMorphCancel&&i.qMorphCancel());i!==e&&"function"===typeof e.qMorphCancel&&e.qMorphCancel(),!0!==l.keepToClone&&e.classList.add("q-morph--internal"),q.classList.add("q-morph--internal");const{width:v,height:M}=Mv(d),{width:T,height:B}=Mv(e.parentNode);!0!==l.hideFromClone&&q.classList.remove("q-morph--internal"),e.qMorphCancel=(()=>{o=!0,q.remove(),void 0!==$&&$.remove(),!0===l.hideFromClone&&q.classList.remove("q-morph--internal"),!0!==l.keepToClone&&e.classList.remove("q-morph--internal"),i.qMorphCancel=void 0,e.qMorphCancel=void 0});const A=()=>{if(!0===o)return void("function"===typeof e.qMorphCancel&&e.qMorphCancel());!0!==l.hideFromClone&&(q.classList.add("q-morph--internal"),q.innerHTML="",q.style.left=0,q.style.right="unset",q.style.top=0,q.style.bottom="unset",q.style.transform="none"),!0!==l.keepToClone&&e.classList.remove("q-morph--internal");const a=e.parentNode,{width:A,height:L}=Mv(a),O=e.cloneNode(l.keepToClone);O.setAttribute("aria-hidden","true"),!0!==l.keepToClone&&(O.style.left=0,O.style.right="unset",O.style.top=0,O.style.bottom="unset",O.style.transform="none",O.style.pointerEvents="none"),O.classList.add("q-morph--internal");const V=e===i&&d===a?q:e.nextElementSibling;a.insertBefore(O,V);const{borderWidth:z,borderStyle:E,borderColor:P,borderRadius:F,backgroundColor:I,transform:R,position:N,cssText:D}=Ov(e,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),j=e.classList.toString(),H=e.style.cssText;e.style.cssText=D,e.style.transform="none",e.style.animation="none",e.style.transition="none",e.className=j.split(" ").filter(e=>!1===/^bg-/.test(e)).join(" ");const Q=$v(e,l.resize),U=p.left-Q.left,W=p.top-Q.top,K=p.width/(Q.width>0?Q.width:10),Y=p.height/(Q.height>0?Q.height:100),X=m-v,Z=f-M,G=A-T,J=L-B,ee=Math.max(p.widthM,X),te=Math.max(p.heightM,Z),oe=Math.max(Q.widthM,G),ne=Math.max(Q.heightM,J),ae=i===e&&!1===["absolute","fixed"].includes(N)&&!1===["absolute","fixed"].includes(_);let le="fixed"===N,ie=a;while(!0!==le&&ie!==document)le="fixed"===window.getComputedStyle(ie).position,ie=ie.parentNode;if(!0!==l.hideFromClone&&(q.style.display="block",q.style.flex="0 0 auto",q.style.opacity=0,q.style.minWidth="unset",q.style.maxWidth="unset",q.style.minHeight="unset",q.style.maxHeight="unset",q.classList.remove("q-morph--internal")),!0!==l.keepToClone&&(O.style.display="block",O.style.flex="0 0 auto",O.style.opacity=0,O.style.minWidth="unset",O.style.maxWidth="unset",O.style.minHeight="unset",O.style.maxHeight="unset"),O.classList.remove("q-morph--internal"),"string"===typeof l.classes&&(e.className+=" "+l.classes),"string"===typeof l.style)e.style.cssText+=" "+l.style;else if(!0===ge(l.style))for(const t in l.style)e.style[t]=l.style[t];const re=zv(q),se=zv(e),ue=!0===le?document.documentElement:{scrollLeft:0,scrollTop:0};e.style.position=!0===le?"fixed":"absolute",e.style.left=`${Q.left-ue.scrollLeft}px`,e.style.right="unset",e.style.top=`${Q.top-ue.scrollTop}px`,e.style.margin=0,!0===l.resize&&(e.style.minWidth="unset",e.style.maxWidth="unset",e.style.minHeight="unset",e.style.maxHeight="unset",e.style.overflow="hidden",e.style.overflowX="hidden",e.style.overflowY="hidden"),document.body.appendChild(e),void 0!==$&&($.style.cssText=S,$.style.transform="none",$.style.animation="none",$.style.transition="none",$.style.position=e.style.position,$.style.left=`${p.left-ue.scrollLeft}px`,$.style.right="unset",$.style.top=`${p.top-ue.scrollTop}px`,$.style.margin=0,$.style.pointerEvents="none",!0===l.resize&&($.style.minWidth="unset",$.style.maxWidth="unset",$.style.minHeight="unset",$.style.maxHeight="unset",$.style.overflow="hidden",$.style.overflowX="hidden",$.style.overflowY="hidden"),document.body.appendChild($));const ce=o=>{i===e&&!0!==n?(e.style.cssText=C,e.className=k):(e.style.cssText=H,e.className=j),O.parentNode===a&&a.insertBefore(e,O),q.remove(),O.remove(),void 0!==$&&$.remove(),t=(()=>!1),i.qMorphCancel=void 0,e.qMorphCancel=void 0,"function"===typeof l.onEnd&&l.onEnd(!0===n?"to":"from",!0===o)};if(!0!==l.useCSS&&"function"===typeof e.animate){const a=!0===l.resize?{transform:`translate(${U}px, ${W}px)`,width:`${ee}px`,height:`${te}px`}:{transform:`translate(${U}px, ${W}px) scale(${K}, ${Y})`},d=!0===l.resize?{width:`${oe}px`,height:`${ne}px`}:{},v=!0===l.resize?{width:`${ee}px`,height:`${te}px`}:{},m=!0===l.resize?{transform:`translate(${-1*U}px, ${-1*W}px)`,width:`${oe}px`,height:`${ne}px`}:{transform:`translate(${-1*U}px, ${-1*W}px) scale(${1/K}, ${1/Y})`},f=void 0!==$?{opacity:l.tweenToOpacity}:{backgroundColor:w},_=void 0!==$?{opacity:1}:{backgroundColor:I};c=e.animate([{margin:0,borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,zIndex:re,transformOrigin:"0 0",...a,...f},{margin:0,borderWidth:z,borderStyle:E,borderColor:P,borderRadius:F,zIndex:se,transformOrigin:"0 0",transform:R,...d,..._}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),s=void 0===$?void 0:$.animate([{opacity:l.tweenFromOpacity,margin:0,borderWidth:h,borderStyle:g,borderColor:b,borderRadius:y,zIndex:re,transformOrigin:"0 0",transform:x,...v},{opacity:0,margin:0,borderWidth:z,borderStyle:E,borderColor:P,borderRadius:F,zIndex:se,transformOrigin:"0 0",...m}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),r=!0===l.hideFromClone||!0===ae?void 0:q.animate([{margin:`${Z<0?Z/2:0}px ${X<0?X/2:0}px`,width:`${ee+p.marginH}px`,height:`${te+p.marginV}px`},{margin:0,width:0,height:0}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),u=!0===l.keepToClone?void 0:O.animate([!0===ae?{margin:`${Z<0?Z/2:0}px ${X<0?X/2:0}px`,width:`${ee+p.marginH}px`,height:`${te+p.marginV}px`}:{margin:0,width:0,height:0},{margin:`${J<0?J/2:0}px ${G<0?G/2:0}px`,width:`${oe+Q.marginH}px`,height:`${ne+Q.marginV}px`}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay});const S=e=>{void 0!==r&&r.cancel(),void 0!==s&&s.cancel(),void 0!==u&&u.cancel(),c.cancel(),c.removeEventListener("finish",S),c.removeEventListener("cancel",S),ce(e),r=void 0,s=void 0,u=void 0,c=void 0};i.qMorphCancel=(()=>{i.qMorphCancel=void 0,o=!0,S()}),e.qMorphCancel=(()=>{e.qMorphCancel=void 0,o=!0,S()}),c.addEventListener("finish",S),c.addEventListener("cancel",S),t=(e=>{return!0!==o&&void 0!==c&&(!0===e?(S(!0),!0):(n=!0!==n,void 0!==r&&r.reverse(),void 0!==s&&s.reverse(),void 0!==u&&u.reverse(),c.reverse(),!0))})}else{const a=`q-morph-anim-${++Cv}`,r=document.createElement("style"),s=!0===l.resize?`\n transform: translate(${U}px, ${W}px);\n width: ${ee}px;\n height: ${te}px;\n `:`transform: translate(${U}px, ${W}px) scale(${K}, ${Y});`,u=!0===l.resize?`\n width: ${oe}px;\n height: ${ne}px;\n `:"",c=!0===l.resize?`\n width: ${ee}px;\n height: ${te}px;\n `:"",d=!0===l.resize?`\n transform: translate(${-1*U}px, ${-1*W}px);\n width: ${oe}px;\n height: ${ne}px;\n `:`transform: translate(${-1*U}px, ${-1*W}px) scale(${1/K}, ${1/Y});`,v=void 0!==$?`opacity: ${l.tweenToOpacity};`:`background-color: ${w};`,m=void 0!==$?"opacity: 1;":`background-color: ${I};`,f=void 0===$?"":`\n @keyframes ${a}-from-tween {\n 0% {\n opacity: ${l.tweenFromOpacity};\n margin: 0;\n border-width: ${h};\n border-style: ${g};\n border-color: ${b};\n border-radius: ${y};\n z-index: ${re};\n transform-origin: 0 0;\n transform: ${x};\n ${c}\n }\n\n 100% {\n opacity: 0;\n margin: 0;\n border-width: ${z};\n border-style: ${E};\n border-color: ${P};\n border-radius: ${F};\n z-index: ${se};\n transform-origin: 0 0;\n ${d}\n }\n }\n `,_=!0===l.hideFromClone||!0===ae?"":`\n @keyframes ${a}-from {\n 0% {\n margin: ${Z<0?Z/2:0}px ${X<0?X/2:0}px;\n width: ${ee+p.marginH}px;\n height: ${te+p.marginV}px;\n }\n\n 100% {\n margin: 0;\n width: 0;\n height: 0;\n }\n }\n `,S=!0===ae?`\n margin: ${Z<0?Z/2:0}px ${X<0?X/2:0}px;\n width: ${ee+p.marginH}px;\n height: ${te+p.marginV}px;\n `:"\n margin: 0;\n width: 0;\n height: 0;\n ",k=!0===l.keepToClone?"":`\n @keyframes ${a}-to {\n 0% {\n ${S}\n }\n\n 100% {\n margin: ${J<0?J/2:0}px ${G<0?G/2:0}px;\n width: ${oe+Q.marginH}px;\n height: ${ne+Q.marginV}px;\n }\n }\n `;r.innerHTML=`\n @keyframes ${a} {\n 0% {\n margin: 0;\n border-width: ${h};\n border-style: ${g};\n border-color: ${b};\n border-radius: ${y};\n background-color: ${w};\n z-index: ${re};\n transform-origin: 0 0;\n ${s}\n ${v}\n }\n\n 100% {\n margin: 0;\n border-width: ${z};\n border-style: ${E};\n border-color: ${P};\n border-radius: ${F};\n background-color: ${I};\n z-index: ${se};\n transform-origin: 0 0;\n transform: ${R};\n ${u}\n ${m}\n }\n }\n\n ${_}\n\n ${f}\n\n ${k}\n `,document.head.appendChild(r);let C="normal";q.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${C} ${l.fill} ${a}-from`,void 0!==$&&($.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${C} ${l.fill} ${a}-from-tween`),O.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${C} ${l.fill} ${a}-to`,e.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${C} ${l.fill} ${a}`;const M=t=>{t===Object(t)&&t.animationName!==a||(e.removeEventListener("animationend",M),e.removeEventListener("animationcancel",M),ce(),r.remove())};i.qMorphCancel=(()=>{i.qMorphCancel=void 0,o=!0,M()}),e.qMorphCancel=(()=>{e.qMorphCancel=void 0,o=!0,M()}),e.addEventListener("animationend",M),e.addEventListener("animationcancel",M),t=(t=>{return!!(!0!==o&&e&&q&&O)&&(!0===t?(M(),!0):(n=!0!==n,C="normal"===C?"reverse":"normal",q.style.animationDirection=C,$.style.animationDirection=C,O.style.animationDirection=C,e.style.animationDirection=C,!0))})}};if(l.waitFor>0||"transitionend"===l.waitFor||l.waitFor===Object(l.waitFor)&&"function"===typeof l.waitFor.then){const t=l.waitFor>0?new Promise(e=>setTimeout(e,l.waitFor)):"transitionend"===l.waitFor?new Promise(t=>{const o=()=>{null!==n&&(clearTimeout(n),n=null),e&&(e.removeEventListener("transitionend",o),e.removeEventListener("transitioncancel",o)),t()};let n=setTimeout(o,400);e.addEventListener("transitionend",o),e.addEventListener("transitioncancel",o)}):l.waitFor;t.then(A).catch(()=>{"function"===typeof e.qMorphCancel&&e.qMorphCancel()})}else A()};return"function"===typeof e.onToggle&&e.onToggle(),requestAnimationFrame(M),e=>t(e)}const Nv={},Dv=["duration","delay","easing","fill","classes","style","duration","resize","useCSS","hideFromClone","keepToClone","tween","tweenFromOpacity","tweenToOpacity","waitFor","onEnd"],jv=["resize","useCSS","hideFromClone","keepToClone","tween"];function Hv(e,t){e.clsAction!==t&&(e.clsAction=t,e.el.classList[t]("q-morph--invisible"))}function Qv(e){if(!0===e.animating||e.queue.length<2)return;const[t,o]=e.queue;e.animating=!0,t.animating=!0,o.animating=!0,Hv(t,"remove"),Hv(o,"remove");const n=Rv({from:t.el,to:o.el,onToggle(){Hv(t,"add"),Hv(o,"remove")},...o.opts,onEnd(n,a){void 0!==o.opts.onEnd&&o.opts.onEnd(n,a),!0!==a&&(t.animating=!1,o.animating=!1,e.animating=!1,e.cancel=void 0,e.queue.shift(),Qv(e))}});e.cancel=(()=>{n(!0),e.cancel=void 0})}function Uv(e,t){const o=t.opts;jv.forEach(t=>{o[t]=!0===e[t]})}function Wv(e,t){const o="string"===typeof e&&0!==e.length?e.split(":"):[];t.name=o[0],t.group=o[1],Object.assign(t.opts,{duration:!0===isNaN(o[2])?300:parseFloat(o[2]),waitFor:o[3]})}function Kv(e,t){void 0!==e.group&&(t.group=e.group),void 0!==e.name&&(t.name=e.name);const o=t.opts;Dv.forEach(t=>{void 0!==e[t]&&(o[t]=e[t])})}function Yv(e,t){if(t.name!==e)!1===t.animating&&Hv(t,"add");else{const o=Nv[t.group];void 0===o?(Nv[t.group]={name:t.group,model:e,queue:[t],animating:!1},Hv(t,"remove")):o.model!==e&&(o.model=e,o.queue.push(t),!1===o.animating&&2===o.queue.length&&Qv(o))}}function Xv(e,t){let o;Object(t)===t?(o=""+t.model,Kv(t,e),Uv(t,e)):o=""+t,o!==e.model?(e.model=o,Yv(o,e)):!1===e.animating&&void 0!==e.clsAction&&e.el.classList[e.clsAction]("q-morph--invisible")}var Zv=Me({name:"morph",mounted(e,t){const o={el:e,animating:!1,opts:{}};Uv(t.modifiers,o),Wv(t.arg,o),Xv(o,t.value),e.__qmorph=o},updated(e,t){Xv(e.__qmorph,t.value)},beforeUnmount(e){const t=e.__qmorph,o=Nv[t.group];if(void 0!==o){const e=o.queue.indexOf(t);-1!==e&&(o.queue=o.queue.filter(e=>e!==t),0===o.queue.length&&(void 0!==o.cancel&&o.cancel(),delete Nv[t.group]))}"add"===t.clsAction&&e.classList.remove("q-morph--invisible"),delete e.__qmorph}});const Gv={childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0};function Jv(e,t,o){t.handler=o,void 0!==t.observer&&t.observer.disconnect(),t.observer=new MutationObserver(o=>{if("function"===typeof t.handler){const n=t.handler(o);!1!==n&&!0!==t.once||ep(e)}}),t.observer.observe(e,t.opts)}function ep(e){const t=e.__qmutation;void 0!==t&&(void 0!==t.observer&&t.observer.disconnect(),delete e.__qmutation)}var tp=Me({name:"mutation",mounted(e,{modifiers:{once:t,...o},value:n}){const a={once:t,opts:0===Object.keys(o).length?Gv:o};Jv(e,a,n),e.__qmutation=a},updated(e,{oldValue:t,value:o}){const n=e.__qmutation;void 0!==n&&t!==o&&Jv(e,n,o)},beforeUnmount:ep});const{passive:op}=f;function np(e,{value:t,oldValue:o}){"function"===typeof t?(e.handler=t,"function"!==typeof o&&(e.scrollTarget.addEventListener("scroll",e.scroll,op),e.scroll())):e.scrollTarget.removeEventListener("scroll",e.scroll,op)}var ap=Me({name:"scroll-fire",mounted(e,t){const o={scrollTarget:Jo(e),scroll:L(()=>{let t,n;o.scrollTarget===window?(n=e.getBoundingClientRect().bottom,t=window.innerHeight):(n=Qt(e).top+Wt(e),t=Qt(o.scrollTarget).top+Wt(o.scrollTarget)),n>0&&n<t&&(o.scrollTarget.removeEventListener("scroll",o.scroll,op),o.handler(e))},25)};np(o,t),e.__qscrollfire=o},updated(e,t){t.value!==t.oldValue&&np(e.__qscrollfire,t)},beforeUnmount(e){const t=e.__qscrollfire;t.scrollTarget.removeEventListener("scroll",t.scroll,op),t.scroll.cancel(),delete e.__qscrollfire}});function lp(e,{value:t,oldValue:o}){"function"===typeof t?(e.handler=t,"function"!==typeof o&&e.scrollTarget.addEventListener("scroll",e.scroll,f.passive)):e.scrollTarget.removeEventListener("scroll",e.scroll,f.passive)}var ip=Me({name:"scroll",mounted(e,t){const o={scrollTarget:Jo(e),scroll(){o.handler(on(o.scrollTarget),nn(o.scrollTarget))}};lp(o,t),e.__qscroll=o},updated(e,t){void 0!==e.__qscroll&&t.oldValue!==t.value&&lp(e.__qscroll,t)},beforeUnmount(e){const t=e.__qscroll;t.scrollTarget.removeEventListener("scroll",t.scroll,f.passive),delete e.__qscroll}}),rp=Me({name:"touch-hold",beforeMount(e,t){const{modifiers:o}=t;if(!0!==o.mouse&&!0!==v.has.touch)return;const n={handler:t.value,noop:h,mouseStart(e){"function"===typeof n.handler&&!0===g(e)&&(T(n,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),n.start(e,!0))},touchStart(e){if(void 0!==e.target&&"function"===typeof n.handler){const t=e.target;T(n,"temp",[[t,"touchmove","move","passiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),n.start(e)}},start(e,t){n.origin=w(e);const o=Date.now();!0===v.is.mobile&&(document.body.classList.add("non-selectable"),xo(),n.styleCleanup=(e=>{n.styleCleanup=void 0;const t=()=>{document.body.classList.remove("non-selectable")};!0===e?(xo(),setTimeout(t,10)):t()})),n.triggered=!1,n.sensitivity=!0===t?n.mouseSensitivity:n.touchSensitivity,n.timer=setTimeout(()=>{n.timer=void 0,xo(),n.triggered=!0,n.handler({evt:e,touch:!0!==t,mouse:!0===t,position:n.origin,duration:Date.now()-o})},n.duration)},move(e){const{top:t,left:o}=w(e);void 0!==n.timer&&(Math.abs(o-n.origin.left)>=n.sensitivity||Math.abs(t-n.origin.top)>=n.sensitivity)&&(clearTimeout(n.timer),n.timer=void 0)},end(e){B(n,"temp"),void 0!==n.styleCleanup&&n.styleCleanup(n.triggered),!0===n.triggered?void 0!==e&&$(e):void 0!==n.timer&&(clearTimeout(n.timer),n.timer=void 0)}},a=[600,5,7];if("string"===typeof t.arg&&0!==t.arg.length&&t.arg.split(":").forEach((e,t)=>{const o=parseInt(e,10);o&&(a[t]=o)}),[n.duration,n.touchSensitivity,n.mouseSensitivity]=a,e.__qtouchhold=n,!0===o.mouse){const t=!0===o.mouseCapture||!0===o.mousecapture?"Capture":"";T(n,"main",[[e,"mousedown","mouseStart",`passive${t}`]])}!0===v.has.touch&&T(n,"main",[[e,"touchstart","touchStart",`passive${!0===o.capture?"Capture":""}`],[e,"touchend","noop","notPassiveCapture"]])},updated(e,t){const o=e.__qtouchhold;void 0!==o&&t.oldValue!==t.value&&("function"!==typeof t.value&&o.end(),o.handler=t.value)},beforeUnmount(e){const t=e.__qtouchhold;void 0!==t&&(B(t,"main"),B(t,"temp"),void 0!==t.timer&&clearTimeout(t.timer),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchhold)}});const sp={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},up=new RegExp(`^([\\d+]+|${Object.keys(sp).join("|")})$`,"i");function cp(e,t){const{top:o,left:n}=w(e);return Math.abs(n-t.left)>=7||Math.abs(o-t.top)>=7}var dp=Me({name:"touch-repeat",beforeMount(e,{modifiers:t,value:o,arg:n}){const a=Object.keys(t).reduce((e,t)=>{if(!0===up.test(t)){const o=isNaN(parseInt(t,10))?sp[t.toLowerCase()]:parseInt(t,10);o>=0&&e.push(o)}return e},[]);if(!0!==t.mouse&&!0!==v.has.touch&&0===a.length)return;const l="string"===typeof n&&0!==n.length?n.split(":").map(e=>parseInt(e,10)):[0,600,300],i=l.length-1,r={keyboard:a,handler:o,noop:h,mouseStart(e){void 0===r.event&&"function"===typeof r.handler&&!0===g(e)&&(T(r,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),r.start(e,!0))},keyboardStart(t){if("function"===typeof r.handler&&!0===Y(t,a)){if((0===l[0]||void 0!==r.event)&&($(t),e.focus(),void 0!==r.event))return;T(r,"temp",[[document,"keyup","end","notPassiveCapture"],[document,"click","end","notPassiveCapture"]]),r.start(t,!1,!0)}},touchStart(e){if(void 0!==e.target&&"function"===typeof r.handler){const t=e.target;T(r,"temp",[[t,"touchmove","move","passiveCapture"],[t,"touchcancel","end","notPassiveCapture"],[t,"touchend","end","notPassiveCapture"]]),r.start(e)}},start(e,t,o){function n(e){r.styleCleanup=void 0,document.documentElement.style.cursor="";const t=()=>{document.body.classList.remove("non-selectable")};!0===e?(xo(),setTimeout(t,10)):t()}!0!==o&&(r.origin=w(e)),!0===v.is.mobile&&(document.body.classList.add("non-selectable"),xo(),r.styleCleanup=n),r.event={touch:!0!==t&&!0!==o,mouse:!0===t,keyboard:!0===o,startTime:Date.now(),repeatCount:0};const a=()=>{if(r.timer=void 0,void 0===r.event)return;0===r.event.repeatCount&&(r.event.evt=e,!0===o?r.event.keyCode=e.keyCode:r.event.position=w(e),!0!==v.is.mobile&&(document.documentElement.style.cursor="pointer",document.body.classList.add("non-selectable"),xo(),r.styleCleanup=n)),r.event.duration=Date.now()-r.event.startTime,r.event.repeatCount+=1,r.handler(r.event);const t=i<r.event.repeatCount?i:r.event.repeatCount;r.timer=setTimeout(a,l[t])};0===l[0]?a():r.timer=setTimeout(a,l[0])},move(e){void 0!==r.event&&void 0!==r.timer&&!0===cp(e,r.origin)&&(clearTimeout(r.timer),r.timer=void 0)},end(e){void 0!==r.event&&(void 0!==r.styleCleanup&&r.styleCleanup(!0),void 0!==e&&r.event.repeatCount>0&&$(e),B(r,"temp"),void 0!==r.timer&&(clearTimeout(r.timer),r.timer=void 0),r.event=void 0)}};if(e.__qtouchrepeat=r,!0===t.mouse){const o=!0===t.mouseCapture||!0===t.mousecapture?"Capture":"";T(r,"main",[[e,"mousedown","mouseStart",`passive${o}`]])}if(!0===v.has.touch&&T(r,"main",[[e,"touchstart","touchStart",`passive${!0===t.capture?"Capture":""}`],[e,"touchend","noop","passiveCapture"]]),0!==a.length){const o=!0===t.keyCapture||!0===t.keycapture?"Capture":"";T(r,"main",[[e,"keydown","keyboardStart",`notPassive${o}`]])}},updated(e,{oldValue:t,value:o}){const n=e.__qtouchrepeat;void 0!==n&&t!==o&&("function"!==typeof o&&n.end(),n.handler=o)},beforeUnmount(e){const t=e.__qtouchrepeat;void 0!==t&&(void 0!==t.timer&&clearTimeout(t.timer),B(t,"main"),B(t,"temp"),void 0!==t.styleCleanup&&t.styleCleanup(),delete e.__qtouchrepeat)}}),vp=Object.freeze({__proto__:null,ClosePopup:kv,Intersection:lu,Morph:Zv,Mutation:tp,Ripple:ao,ScrollFire:ap,Scroll:ip,TouchHold:rp,TouchPan:Xa,TouchRepeat:dp,TouchSwipe:ha});function pp(e,t=document.body){if("string"!==typeof e)throw new TypeError("Expected a string as propName");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue(`--q-${e}`).trim()||null}let mp;function fp(){return v.is.winphone?"msapplication-navbutton-color":v.is.safari?"apple-mobile-web-app-status-bar-style":"theme-color"}function hp(e){const t=document.getElementsByTagName("META");for(const o in t)if(t[o].name===e)return t[o]}function gp(e){void 0===mp&&(mp=fp());let t=hp(mp);const o=void 0===t;o&&(t=document.createElement("meta"),t.setAttribute("name",mp)),t.setAttribute("content",e),o&&document.head.appendChild(t)}var bp={set:!0!==v.is.mobile||!0!==v.is.nativeMobile&&!0!==v.is.winphone&&!0!==v.is.safari&&!0!==v.is.webkit&&!0!==v.is.vivaldi?h:e=>{const t=e||pp("primary");!0===v.is.nativeMobile&&window.StatusBar?window.StatusBar.backgroundColorByHexString(t):gp(t)},install({$q:e}){e.addressbarColor=this,e.config.addressbarColor&&this.set(e.config.addressbarColor)}};const yp={};function wp(e){Object.assign(Cp,{request:e,exit:e,toggle:e})}function xp(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||null}function _p(){const e=Cp.activeEl=!1===Cp.isActive?null:xp();No(null===e||e===document.documentElement?document.body:e)}function Sp(){Cp.isActive=!1===Cp.isActive,_p()}function kp(e,t){try{const o=e[t]();return void 0===o?Promise.resolve():o}catch(e){return Promise.reject(e)}}const Cp=m({isActive:!1,activeEl:null},{isCapable:!1,install({$q:e}){e.fullscreen=this}});yp.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find(e=>void 0!==document.documentElement[e]),Cp.isCapable=void 0!==yp.request,!1===Cp.isCapable?wp(()=>Promise.reject("Not capable")):(Object.assign(Cp,{request(e){const t=e||document.documentElement,{activeEl:o}=Cp;if(t===o)return Promise.resolve();const n=null!==o&&!0===t.contains(o)?Cp.exit():Promise.resolve();return n.finally(()=>kp(t,yp.request))},exit(){return!0===Cp.isActive?kp(document,yp.exit):Promise.resolve()},toggle(e){return!0===Cp.isActive?Cp.exit():Cp.request(e)}}),yp.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find(e=>document[e]),Cp.isActive=Boolean(xp()),!0===Cp.isActive&&_p(),["onfullscreenchange","onmsfullscreenchange","onwebkitfullscreenchange"].forEach(e=>{document[e]=Sp}));const qp=m({appVisible:!0},{install({$q:e}){t(e,"appVisible",()=>this.appVisible)}});{let e,t;if("undefined"!==typeof document.hidden?(e="hidden",t="visibilitychange"):"undefined"!==typeof document.msHidden?(e="msHidden",t="msvisibilitychange"):"undefined"!==typeof document.webkitHidden&&(e="webkitHidden",t="webkitvisibilitychange"),t&&"undefined"!==typeof document[e]){const o=()=>{qp.appVisible=!document[e]};document.addEventListener(t,o,!1)}}var $p=$e({name:"BottomSheetPlugin",props:{...bt,title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),a=yt(t,n.$q),l=e.ref(null);function i(){l.value.show()}function r(){l.value.hide()}function s(e){o("ok",e),r()}function u(){o("hide")}function c(){return t.actions.map(t=>{const o=t.avatar||t.img;return void 0===t.label?e.h(ts,{class:"col-all",dark:a.value}):e.h("div",{class:["q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",t.class],style:t.style,tabindex:0,role:"listitem",onClick(){s(t)},onKeyup(e){13===e.keyCode&&s(t)}},[e.h("div",{class:"q-focus-helper"}),t.icon?e.h(mt,{name:t.icon,color:t.color}):o?e.h("img",{class:t.avatar?"q-bottom-sheet__avatar":"",src:o}):e.h("div",{class:"q-bottom-sheet__empty-icon"}),e.h("div",t.label)])})}function d(){return t.actions.map(t=>{const o=t.avatar||t.img;return void 0===t.label?e.h(ts,{spaced:!0,dark:a.value}):e.h(Vr,{class:["q-bottom-sheet__item",t.classes],style:t.style,tabindex:0,clickable:!0,dark:a.value,onClick(){s(t)}},()=>[e.h(zr,{avatar:!0},()=>t.icon?e.h(mt,{name:t.icon,color:t.color}):o?e.h("img",{class:t.avatar?"q-bottom-sheet__avatar":"",src:o}):null),e.h(zr,()=>t.label)])})}function v(){const o=[];return t.title&&o.push(e.h(sa,{class:"q-dialog__title"},()=>t.title)),t.message&&o.push(e.h(sa,{class:"q-dialog__message"},()=>t.message)),o.push(!0===t.grid?e.h("div",{class:"row items-stretch justify-start",role:"list"},c()):e.h("div",{role:"list"},d())),o}function p(){return[e.h(ra,{class:[`q-bottom-sheet q-bottom-sheet--${!0===t.grid?"grid":"list"}`+(!0===a.value?" q-bottom-sheet--dark q-dark":""),t.cardClass],style:t.cardStyle},v)]}return Object.assign(n,{show:i,hide:r}),()=>e.h(Cr,{ref:l,position:"bottom",onHide:u},p)}});function Mp(e,t){for(const o in t)"spinner"!==o&&Object(t[o])===t[o]?(e[o]=Object(e[o])!==e[o]?{}:{...e[o]},Mp(e[o],t[o])):e[o]=t[o]}function Tp(t,o,n){return a=>{let l,i;const r=!0===o&&void 0!==a.component;if(!0===r){const{component:e,componentProps:t}=a;l="string"===typeof e?n.component(e):e,i=t||{}}else{const{class:e,style:o,...n}=a;l=t,i=n,void 0!==e&&(n.cardClass=e),void 0!==o&&(n.cardStyle=o)}let s,u=!1;const c=e.ref(null),d=Io(!1,"dialog"),v=e=>{if(null!==c.value&&void 0!==c.value[e])return void c.value[e]();const t=s.$.subTree;if(t&&t.component){if(t.component.proxy&&t.component.proxy[e])return void t.component.proxy[e]();if(t.component.subTree&&t.component.subTree.component&&t.component.subTree.component.proxy&&t.component.subTree.component.proxy[e])return void t.component.subTree.component.proxy[e]()}console.error("[Quasar] Incorrectly defined Dialog component")},p=[],m=[],f={onOk(e){return p.push(e),f},onCancel(e){return m.push(e),f},onDismiss(e){return p.push(e),m.push(e),f},hide(){return v("hide"),f},update(e){if(null!==s){if(!0===r)Object.assign(i,e);else{const{class:t,style:o,...n}=e;void 0!==t&&(n.cardClass=t),void 0!==o&&(n.cardStyle=o),Mp(i,n)}s.$forceUpdate()}return f}},h=e=>{u=!0,p.forEach(t=>{t(e)})},g=()=>{b.unmount(d),Ro(d),b=null,s=null,!0!==u&&m.forEach(e=>{e()})};let b=Se({name:"QGlobalDialog",setup:()=>()=>e.h(l,{...i,ref:c,onOk:h,onHide:g,onVnodeMounted(...t){"function"===typeof i.onVnodeMounted&&i.onVnodeMounted(...t),e.nextTick(()=>v("show"))}})},n);return s=b.mount(d),f}}var Bp={install({$q:e,parentApp:t}){e.bottomSheet=Tp($p,!1,t),!0!==this.__installed&&(this.create=e.bottomSheet)}};function Ap(e){return encodeURIComponent(e)}function Lp(e){return decodeURIComponent(e)}function Op(e){return Ap(e===Object(e)?JSON.stringify(e):""+e)}function Vp(e){if(""===e)return e;0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e=Lp(e.replace(/\+/g," "));try{const t=JSON.parse(e);t!==Object(t)&&!0!==Array.isArray(t)||(e=t)}catch(e){}return e}function zp(e){const t=new Date;return t.setMilliseconds(t.getMilliseconds()+e),t.toUTCString()}function Ep(e){let t=0;const o=e.match(/(\d+)d/),n=e.match(/(\d+)h/),a=e.match(/(\d+)m/),l=e.match(/(\d+)s/);return o&&(t+=864e5*o[1]),n&&(t+=36e5*n[1]),a&&(t+=6e4*a[1]),l&&(t+=1e3*l[1]),0===t?e:zp(t)}function Pp(e,t,o={},n){let a,l;void 0!==o.expires&&("[object Date]"===Object.prototype.toString.call(o.expires)?a=o.expires.toUTCString():"string"===typeof o.expires?a=Ep(o.expires):(l=parseFloat(o.expires),a=!1===isNaN(l)?zp(864e5*l):o.expires));const i=`${Ap(e)}=${Op(t)}`,r=[i,void 0!==a?"; Expires="+a:"",o.path?"; Path="+o.path:"",o.domain?"; Domain="+o.domain:"",o.sameSite?"; SameSite="+o.sameSite:"",o.httpOnly?"; HttpOnly":"",o.secure?"; Secure":"",o.other?"; "+o.other:""].join("");if(n){n.req.qCookies?n.req.qCookies.push(r):n.req.qCookies=[r],n.res.setHeader("Set-Cookie",n.req.qCookies);let t=n.req.headers.cookie||"";if(void 0!==a&&l<0){const o=Fp(e,n);void 0!==o&&(t=t.replace(`${e}=${o}; `,"").replace(`; ${e}=${o}`,"").replace(`${e}=${o}`,""))}else t=t?`${i}; ${t}`:r;n.req.headers.cookie=t}else document.cookie=r}function Fp(e,t){const o=t?t.req.headers:document,n=o.cookie?o.cookie.split("; "):[],a=n.length;let l,i,r,s=e?null:{},u=0;for(;u<a;u++)if(l=n[u].split("="),i=Lp(l.shift()),r=l.join("="),e){if(e===i){s=Vp(r);break}}else s[i]=r;return s}function Ip(e,t,o){Pp(e,"",{expires:-1,...t},o)}function Rp(e,t){return null!==Fp(e,t)}function Np(e){return{get:t=>Fp(t,e),set:(t,o,n)=>Pp(t,o,n,e),has:t=>Rp(t,e),remove:(t,o)=>Ip(t,o,e),getAll:()=>Fp(null,e)}}const Dp={install({$q:e,ssrContext:t}){e.cookies=this}};Object.assign(Dp,Np());var jp=$e({name:"DialogPlugin",props:{...bt,title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:e=>["ok","cancel","none"].includes(e)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(t,{emit:o}){const{proxy:n}=e.getCurrentInstance(),{$q:a}=n,l=yt(t,a),i=e.ref(null),r=e.ref(void 0!==t.prompt?t.prompt.model:void 0!==t.options?t.options.model:void 0),s=e.computed(()=>"q-dialog-plugin"+(!0===l.value?" q-dialog-plugin--dark q-dark":"")+(!1!==t.progress?" q-dialog-plugin--progress":"")),u=e.computed(()=>t.color||(!0===l.value?"amber":"primary")),c=e.computed(()=>!1===t.progress?null:!0===ge(t.progress)?{component:t.progress.spinner||Ht,props:{color:t.progress.color||u.value}}:{component:Ht,props:{color:u.value}}),d=e.computed(()=>void 0!==t.prompt||void 0!==t.options),v=e.computed(()=>{if(!0!==d.value)return{};const{model:e,isValid:o,items:n,...a}=void 0!==t.prompt?t.prompt:t.options;return a}),p=e.computed(()=>!0===ge(t.ok)?a.lang.label.ok:!0===t.ok?a.lang.label.ok:t.ok),m=e.computed(()=>!0===ge(t.cancel)?a.lang.label.cancel:!0===t.cancel?a.lang.label.cancel:t.cancel),f=e.computed(()=>{return void 0!==t.prompt?void 0!==t.prompt.isValid&&!0!==t.prompt.isValid(r.value):void 0!==t.options&&(void 0!==t.options.isValid&&!0!==t.options.isValid(r.value))}),h=e.computed(()=>({color:u.value,label:p.value,ripple:!1,disable:f.value,...!0===ge(t.ok)?t.ok:{flat:!0},"data-autofocus":"ok"===t.focus&&!0!==d.value||void 0,onClick:w})),g=e.computed(()=>({color:u.value,label:m.value,ripple:!1,...!0===ge(t.cancel)?t.cancel:{flat:!0},"data-autofocus":"cancel"===t.focus&&!0!==d.value||void 0,onClick:x}));function b(){i.value.show()}function y(){i.value.hide()}function w(){o("ok",e.toRaw(r.value)),y()}function x(){y()}function _(){o("hide")}function S(e){r.value=e}function k(e){!0!==f.value&&"textarea"!==t.prompt.type&&!0===Y(e,13)&&w()}function C(o,n){return!0===t.html?e.h(sa,{class:o,innerHTML:n}):e.h(sa,{class:o},()=>n)}function q(){return[e.h(tu,{color:u.value,dense:!0,autofocus:!0,dark:l.value,...v.value,modelValue:r.value,"onUpdate:modelValue":S,onKeyup:k})]}function $(){return[e.h(Su,{color:u.value,options:t.options.items,dark:l.value,...v.value,modelValue:r.value,"onUpdate:modelValue":S})]}function M(){const o=[];return t.cancel&&o.push(e.h(yo,g.value)),t.ok&&o.push(e.h(yo,h.value)),e.h(ua,{class:!0===t.stackButtons?"items-end":"",vertical:t.stackButtons,align:"right"},()=>o)}function T(){const o=[];return t.title&&o.push(C("q-dialog__title",t.title)),!1!==t.progress&&o.push(e.h(sa,{class:"q-dialog__progress"},()=>e.h(c.value.component,c.value.props))),t.message&&o.push(C("q-dialog__message",t.message)),void 0!==t.prompt?o.push(e.h(sa,{class:"scroll q-dialog-plugin__form"},q)):void 0!==t.options&&o.push(e.h(ts,{dark:l.value}),e.h(sa,{class:"scroll q-dialog-plugin__form"},$),e.h(ts,{dark:l.value})),(t.ok||t.cancel)&&o.push(M()),o}function B(){return[e.h(ra,{class:[s.value,t.cardClass],style:t.cardStyle,dark:l.value},T)]}return e.watch(()=>t.prompt&&t.prompt.model,S),e.watch(()=>t.options&&t.options.model,S),Object.assign(n,{show:b,hide:y}),()=>e.h(Cr,{ref:i,onHide:_},B)}}),Hp={install({$q:e,parentApp:t}){e.dialog=Tp(jp,!0,t),!0!==this.__installed&&(this.create=e.dialog)}};const Qp=e.ref(null),Up=m({isActive:!1},{start:h,stop:h,increment:h,setDefaults:h,install({$q:t,parentApp:o}){if(t.loadingBar=this,!0===this.__installed)return void(void 0!==t.config.loadingBar&&this.setDefaults(t.config.loadingBar));const n=e.ref(void 0!==t.config.loadingBar?{...t.config.loadingBar}:{});function a(){Up.isActive=!0}function l(){Up.isActive=!1}const i=Io("q-loading-bar");Se({name:"LoadingBar",devtools:{hide:!0},setup:()=>()=>e.h(Qe,{...n.value,onStart:a,onStop:l,ref:Qp})},o).mount(i),Object.assign(this,{start(e){Qp.value.start(e)},stop(){Qp.value.stop()},increment(){Qp.value.increment.apply(null,arguments)},setDefaults(e){!0===ge(e)&&Object.assign(n.value,e)}})}});let Wp,Kp,Yp=0,Xp=null,Zp={},Gp={};const Jp={group:"__default_quasar_group__",delay:0,message:!1,html:!1,spinnerSize:80,spinnerColor:"",messageColor:"",backgroundColor:"",boxClass:"",spinner:Ht,customClass:""},em={...Jp};function tm(e){if(e&&void 0!==e.group&&void 0!==Gp[e.group])return Object.assign(Gp[e.group],e);const t=!0===ge(e)&&!0===e.ignoreDefaults?{...Jp,...e}:{...em,...e};return Gp[t.group]=t,t}const om=m({isActive:!1},{show(t){Zp=tm(t);const{group:o}=Zp;return om.isActive=!0,void 0!==Wp?(Zp.uid=Yp,Kp.$forceUpdate()):(Zp.uid=++Yp,null!==Xp&&clearTimeout(Xp),Xp=setTimeout(()=>{Xp=null;const t=Io("q-loading");Wp=Se({name:"QLoading",setup(){function o(){!0!==om.isActive&&void 0!==Wp&&(wr(!1),Wp.unmount(t),Ro(t),Wp=void 0,Kp=void 0)}function n(){if(!0!==om.isActive)return null;const t=[e.h(Zp.spinner,{class:"q-loading__spinner",color:Zp.spinnerColor,size:Zp.spinnerSize})];return Zp.message&&t.push(e.h("div",{class:"q-loading__message"+(Zp.messageColor?` text-${Zp.messageColor}`:""),[!0===Zp.html?"innerHTML":"textContent"]:Zp.message})),e.h("div",{class:"q-loading fullscreen flex flex-center z-max "+Zp.customClass.trim(),key:Zp.uid},[e.h("div",{class:"q-loading__backdrop"+(Zp.backgroundColor?` bg-${Zp.backgroundColor}`:"")}),e.h("div",{class:"q-loading__box column items-center "+Zp.boxClass},t)])}return e.onMounted(()=>{wr(!0)}),()=>e.h(e.Transition,{name:"q-transition--fade",appear:!0,onAfterLeave:o},n)}},om.__parentApp),Kp=Wp.mount(t)},Zp.delay)),e=>{void 0!==e&&Object(e)===e?om.show({...e,group:o}):om.hide(o)}},hide(e){if(!0===om.isActive){if(void 0===e)Gp={};else{if(void 0===Gp[e])return;{delete Gp[e];const t=Object.keys(Gp);if(0!==t.length){const e=t[t.length-1];return void om.show({group:e})}}}null!==Xp&&(clearTimeout(Xp),Xp=null),om.isActive=!1}},setDefaults(e){!0===ge(e)&&Object.assign(em,e)},install({$q:e,parentApp:t}){e.loading=this,om.__parentApp=t,void 0!==e.config.loading&&this.setDefaults(e.config.loading)}});let nm,am=null;const lm=[];function im(e){e.title&&(e.title=e.titleTemplate?e.titleTemplate(e.title):e.title,delete e.titleTemplate),[["meta","content"],["link","href"]].forEach(t=>{const o=e[t[0]],n=t[1];for(const e in o){const t=o[e];t.template&&(1===Object.keys(t).length?delete o[e]:(t[n]=t.template(t[n]||""),delete t.template))}})}function rm(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const o in e)if(e[o]!==t[o])return!0}function sm(e){return!1===["class","style"].includes(e)}function um(e){return!1===["lang","dir"].includes(e)}function cm(e,t){const o={},n={};return void 0===e?{add:t,remove:n}:(e.title!==t.title&&(o.title=t.title),["meta","link","script","htmlAttr","bodyAttr"].forEach(a=>{const l=e[a],i=t[a];if(n[a]=[],void 0!==l&&null!==l){o[a]={};for(const e in l)!1===i.hasOwnProperty(e)&&n[a].push(e);for(const e in i)!1===l.hasOwnProperty(e)?o[a][e]=i[e]:!0===rm(l[e],i[e])&&(n[a].push(e),o[a][e]=i[e])}else o[a]=i}),{add:o,remove:n})}function dm({add:e,remove:t}){e.title&&(document.title=e.title),0!==Object.keys(t).length&&(["meta","link","script"].forEach(e=>{t[e].forEach(t=>{document.head.querySelector(`${e}[data-qmeta="${t}"]`).remove()})}),t.htmlAttr.filter(um).forEach(e=>{document.documentElement.removeAttribute(e)}),t.bodyAttr.filter(sm).forEach(e=>{document.body.removeAttribute(e)})),["meta","link","script"].forEach(t=>{const o=e[t];for(const e in o){const n=document.createElement(t);for(const t in o[e])"innerHTML"!==t&&n.setAttribute(t,o[e][t]);n.setAttribute("data-qmeta",e),"script"===t&&(n.innerHTML=o[e].innerHTML||""),document.head.appendChild(n)}}),Object.keys(e.htmlAttr).filter(um).forEach(t=>{document.documentElement.setAttribute(t,e.htmlAttr[t]||"")}),Object.keys(e.bodyAttr).filter(sm).forEach(t=>{document.body.setAttribute(t,e.bodyAttr[t]||"")})}function vm(){am=null;const e={title:"",titleTemplate:null,meta:{},link:{},script:{},htmlAttr:{},bodyAttr:{}};for(let t=0;t<lm.length;t++){const{active:o,val:n}=lm[t];!0===o&&Yr(!0,e,n)}im(e),dm(cm(nm,e)),nm=e}function pm(){null!==am&&clearTimeout(am),am=setTimeout(vm,50)}var mm={install(e){!0!==this.__installed&&!0===n.value&&(nm=window.__Q_META__,document.getElementById("qmeta-init").remove())}};let fm=0;const hm={},gm={},bm={},ym={},wm=/^\s*$/,xm=[],_m=[void 0,null,!0,!1,""],Sm=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],km=["top-left","top-right","bottom-left","bottom-right"],Cm={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function qm(t,o,n){if(!t)return Tm("parameter required");let a;const l={textColor:"white"};if(!0!==t.ignoreDefaults&&Object.assign(l,hm),!1===ge(t)&&(l.type&&Object.assign(l,Cm[l.type]),t={message:t}),Object.assign(l,Cm[t.type||l.type],t),"function"===typeof l.icon&&(l.icon=l.icon(o)),l.spinner?(!0===l.spinner&&(l.spinner=Ht),l.spinner=e.markRaw(l.spinner)):l.spinner=!1,l.meta={hasMedia:Boolean(!1!==l.spinner||l.icon||l.avatar),hasText:Mm(l.message)||Mm(l.caption)},l.position){if(!1===Sm.includes(l.position))return Tm("wrong position",t)}else l.position="bottom";if(!0===_m.includes(l.timeout))l.timeout=5e3;else{const e=Number(l.timeout);if(isNaN(e)||e<0)return Tm("wrong timeout",t);l.timeout=Number.isFinite(e)?e:0}0===l.timeout?l.progress=!1:!0===l.progress&&(l.meta.progressClass="q-notification__progress"+(l.progressClass?` ${l.progressClass}`:""),l.meta.progressStyle={animationDuration:`${l.timeout+1e3}ms`});const i=(!0===Array.isArray(t.actions)?t.actions:[]).concat(!0!==t.ignoreDefaults&&!0===Array.isArray(hm.actions)?hm.actions:[]).concat(void 0!==Cm[t.type]&&!0===Array.isArray(Cm[t.type].actions)?Cm[t.type].actions:[]),{closeBtn:r}=l;if(r&&i.push({label:"string"===typeof r?r:o.lang.label.close}),l.actions=i.map(({handler:e,noDismiss:t,...o})=>({flat:!0,...o,onClick:"function"===typeof e?()=>{e(),!0!==t&&s()}:()=>{s()}})),void 0===l.multiLine&&(l.multiLine=l.actions.length>1),Object.assign(l.meta,{class:"q-notification row items-stretch"+` q-notification--${!0===l.multiLine?"multi-line":"standard"}`+(void 0!==l.color?` bg-${l.color}`:"")+(void 0!==l.textColor?` text-${l.textColor}`:"")+(void 0!==l.classes?` ${l.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(!0===l.multiLine?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(!0===l.multiLine?"":" col"),leftClass:!0===l.meta.hasText?"additional":"single",attrs:{role:"alert",...l.attrs}}),!1===l.group?(l.group=void 0,l.meta.group=void 0):(void 0!==l.group&&!0!==l.group||(l.group=[l.message,l.caption,l.multiline].concat(l.actions.map(e=>`${e.label}*${e.icon}`)).join("|")),l.meta.group=l.group+"|"+l.position),0===l.actions.length?l.actions=void 0:l.meta.actionsClass="q-notification__actions row items-center "+(!0===l.multiLine?"justify-end":"col-auto")+(!0===l.meta.hasMedia?" q-notification__actions--with-media":""),void 0!==n){n.notif.meta.timer&&(clearTimeout(n.notif.meta.timer),n.notif.meta.timer=void 0),l.meta.uid=n.notif.meta.uid;const e=bm[l.position].value.indexOf(n.notif);bm[l.position].value[e]=l}else{const e=gm[l.meta.group];if(void 0===e){if(l.meta.uid=fm++,l.meta.badge=1,-1!==["left","right","center"].indexOf(l.position))bm[l.position].value.splice(Math.floor(bm[l.position].value.length/2),0,l);else{const e=l.position.indexOf("top")>-1?"unshift":"push";bm[l.position].value[e](l)}void 0!==l.group&&(gm[l.meta.group]=l)}else{if(e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0),void 0!==l.badgePosition){if(!1===km.includes(l.badgePosition))return Tm("wrong badgePosition",t)}else l.badgePosition=`top-${l.position.indexOf("left")>-1?"right":"left"}`;l.meta.uid=e.meta.uid,l.meta.badge=e.meta.badge+1,l.meta.badgeClass=`q-notification__badge q-notification__badge--${l.badgePosition}`+(void 0!==l.badgeColor?` bg-${l.badgeColor}`:"")+(void 0!==l.badgeTextColor?` text-${l.badgeTextColor}`:"")+(l.badgeClass?` ${l.badgeClass}`:"");const o=bm[l.position].value.indexOf(e);bm[l.position].value[o]=gm[l.meta.group]=l}}const s=()=>{$m(l),a=void 0};return l.timeout>0&&(l.meta.timer=setTimeout(()=>{l.meta.timer=void 0,s()},l.timeout+1e3)),void 0!==l.group?e=>{void 0!==e?Tm("trying to update a grouped one which is forbidden",t):s()}:(a={dismiss:s,config:t,notif:l},void 0===n?e=>{if(void 0!==a)if(void 0===e)a.dismiss();else{const t=Object.assign({},a.config,e,{group:!1,position:l.position});qm(t,o,a)}}:void Object.assign(n,a))}function $m(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);const t=bm[e.position].value.indexOf(e);if(-1!==t){void 0!==e.group&&delete gm[e.meta.group];const o=xm[""+e.meta.uid];if(o){const{width:e,height:t}=getComputedStyle(o);o.style.left=`${o.offsetLeft}px`,o.style.width=e,o.style.height=t}bm[e.position].value.splice(t,1),"function"===typeof e.onDismiss&&e.onDismiss()}}function Mm(e){return void 0!==e&&null!==e&&!0!==wm.test(e)}function Tm(e,t){return console.error(`Notify: ${e}`,t),!1}function Bm(){return $e({name:"QNotifications",devtools:{hide:!0},setup(){return()=>e.h("div",{class:"q-notifications"},Sm.map(t=>{return e.h(e.TransitionGroup,{key:t,class:ym[t],tag:"div",name:`q-notification--${t}`},()=>bm[t].value.map(t=>{const o=t.meta,n=[];if(!0===o.hasMedia&&(!1!==t.spinner?n.push(e.h(t.spinner,{class:"q-notification__spinner q-notification__spinner--"+o.leftClass,color:t.spinnerColor,size:t.spinnerSize})):t.icon?n.push(e.h(mt,{class:"q-notification__icon q-notification__icon--"+o.leftClass,name:t.icon,color:t.iconColor,size:t.iconSize,role:"img"})):t.avatar&&n.push(e.h(ft,{class:"q-notification__avatar q-notification__avatar--"+o.leftClass},()=>e.h("img",{src:t.avatar,"aria-hidden":"true"})))),!0===o.hasText){let o;const a={class:"q-notification__message col"};if(!0===t.html)a.innerHTML=t.caption?`<div>${t.message}</div><div class="q-notification__caption">${t.caption}</div>`:t.message;else{const n=[t.message];o=t.caption?[e.h("div",n),e.h("div",{class:"q-notification__caption"},[t.caption])]:n}n.push(e.h("div",a,o))}const a=[e.h("div",{class:o.contentClass},n)];return!0===t.progress&&a.push(e.h("div",{key:`${o.uid}|p|${o.badge}`,class:o.progressClass,style:o.progressStyle})),void 0!==t.actions&&a.push(e.h("div",{class:o.actionsClass},t.actions.map(t=>e.h(yo,t)))),o.badge>1&&a.push(e.h("div",{key:`${o.uid}|${o.badge}`,class:t.meta.badgeClass,style:t.badgeStyle},[o.badge])),e.h("div",{ref:e=>{xm[""+o.uid]=e},key:o.uid,class:o.class,...o.attrs},[e.h("div",{class:o.wrapperClass},a)])}))}))}})}var Am={setDefaults(e){!0===ge(e)&&Object.assign(hm,e)},registerType(e,t){!0===ge(t)&&(Cm[e]=t)},install({$q:t,parentApp:o}){if(t.notify=this.create=(e=>qm(e,t)),t.notify.setDefaults=this.setDefaults,t.notify.registerType=this.registerType,void 0!==t.config.notify&&this.setDefaults(t.config.notify),!0!==this.__installed){Sm.forEach(t=>{bm[t]=e.ref([]);const o=!0===["left","center","right"].includes(t)?"center":t.indexOf("top")>-1?"top":"bottom",n=t.indexOf("left")>-1?"start":t.indexOf("right")>-1?"end":"center",a=["left","right"].includes(t)?`items-${"left"===t?"start":"end"} justify-center`:"center"===t?"flex-center":`items-${n}`;ym[t]=`q-notifications__list q-notifications__list--${o} fixed column no-wrap ${a}`});const t=Io("q-notify");Se(Bm(),o).mount(t)}}};function Lm(e){return!0===be(e)?"__q_date|"+e.toUTCString():!0===ye(e)?"__q_expr|"+e.source:"number"===typeof e?"__q_numb|"+e:"boolean"===typeof e?"__q_bool|"+(e?"1":"0"):"string"===typeof e?"__q_strn|"+e:"function"===typeof e?"__q_strn|"+e.toString():e===Object(e)?"__q_objt|"+JSON.stringify(e):e}function Om(e){const t=e.length;if(t<9)return e;const o=e.substring(0,8),n=e.substring(9);switch(o){case"__q_date":return new Date(n);case"__q_expr":return new RegExp(n);case"__q_numb":return Number(n);case"__q_bool":return Boolean("1"===n);case"__q_strn":return""+n;case"__q_objt":return JSON.parse(n);default:return e}}function Vm(){const e=()=>null;return{has:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:h,remove:h,clear:h,isEmpty:()=>!0}}function zm(e){const t=window[e+"Storage"],o=e=>{const o=t.getItem(e);return o?Om(o):null};return{has:e=>null!==t.getItem(e),getLength:()=>t.length,getItem:o,getIndex:e=>{return e<t.length?o(t.key(e)):null},getKey:e=>{return e<t.length?t.key(e):null},getAll:()=>{let e;const n={},a=t.length;for(let l=0;l<a;l++)e=t.key(l),n[e]=o(e);return n},getAllKeys:()=>{const e=[],o=t.length;for(let n=0;n<o;n++)e.push(t.key(n));return e},set:(e,o)=>{t.setItem(e,Lm(o))},remove:e=>{t.removeItem(e)},clear:()=>{t.clear()},isEmpty:()=>0===t.length}}const Em=!1===v.has.webStorage?Vm():zm("local"),Pm={install({$q:e}){e.localStorage=Em}};Object.assign(Pm,Em);const Fm=!1===v.has.webStorage?Vm():zm("session"),Im={install({$q:e}){e.sessionStorage=Fm}};Object.assign(Im,Fm);var Rm=Object.freeze({__proto__:null,AddressbarColor:bp,AppFullscreen:Cp,AppVisibility:qp,BottomSheet:Bp,Cookies:Dp,Dark:E,Dialog:Hp,LoadingBar:Up,Loading:om,Meta:mm,Notify:Am,Platform:p,Screen:z,LocalStorage:Pm,SessionStorage:Im});function Nm(e){const t=document.createElement("textarea");t.value=e,t.contentEditable="true",t.style.position="fixed";const o=()=>{};Cn(o),document.body.appendChild(t),t.focus(),t.select();const n=document.execCommand("copy");return t.remove(),qn(o),n}function Dm(e){return void 0!==navigator.clipboard?navigator.clipboard.writeText(e):new Promise((t,o)=>{const n=Nm(e);n?t(!0):o(n)})}var jm=e=>{const t={activated(){this.__qMeta.active=!0,pm()},deactivated(){this.__qMeta.active=!1,pm()},unmounted(){lm.splice(lm.indexOf(this.__qMeta),1),pm(),this.__qMeta=void 0}};return"function"===typeof e?Object.assign(t,{computed:{__qMetaOptions(){return e.call(this)||{}}},watch:{__qMetaOptions(e){this.__qMeta.val=e,!0===this.__qMeta.active&&pm()}},created(){this.__qMeta={active:!0,val:this.__qMetaOptions},lm.push(this.__qMeta),pm()}}):t.created=function(){this.__qMeta={active:!0,val:e},lm.push(this.__qMeta),pm()},t};class Hm{constructor(){this.__stack={}}on(e,t,o){return(this.__stack[e]||(this.__stack[e]=[])).push({fn:t,ctx:o}),this}once(e,t,o){const n=(...a)=>{this.off(e,n),t.apply(o,a)};return n.__callback=t,this.on(e,n,o)}emit(e){const t=this.__stack[e];if(void 0!==t){const e=[].slice.call(arguments,1);t.forEach(t=>{t.fn.apply(t.ctx,e)})}return this}off(e,t){const o=this.__stack[e];if(void 0===o)return this;if(void 0===t)return delete this.__stack[e],this;const n=o.filter(e=>e.fn!==t&&e.fn.__callback!==t);return 0!==n.length?this.__stack[e]=n:delete this.__stack[e],this}}function Qm(e){setTimeout(()=>{window.URL.revokeObjectURL(e.href)},1e4),e.remove()}function Um(e,t,o={}){const{mimeType:n,byteOrderMark:a,encoding:l}="string"===typeof o?{mimeType:o}:o,i=void 0!==l?new TextEncoder(l).encode([t]):t,r=void 0!==a?[a,i]:[i],s=new Blob(r,{type:n||"application/octet-stream"}),u=document.createElement("a");u.href=window.URL.createObjectURL(s),u.setAttribute("download",e),"undefined"===typeof u.download&&u.setAttribute("target","_blank"),u.classList.add("hidden"),u.style.position="fixed",document.body.appendChild(u);try{return u.click(),Qm(u),!0}catch(e){return Qm(u),e}}function Wm(e){const t=Object.assign({noopener:!0},e),o=[];for(const n in t){const e=t[n];!0===e?o.push(n):(we(e)||"string"===typeof e&&""!==e)&&o.push(n+"="+e)}return o.join(",")}function Km(e,t,o){let n=window.open;if(!0===p.is.cordova)if(void 0!==cordova&&void 0!==cordova.InAppBrowser&&void 0!==cordova.InAppBrowser.open)n=cordova.InAppBrowser.open;else if(void 0!==navigator&&void 0!==navigator.app)return navigator.app.loadUrl(e,{openExternal:!0});const a=n(e,"_blank",Wm(o));if(a)return p.is.desktop&&a.focus(),a;t&&t()}var Ym=(e,t,o)=>{if(!0!==p.is.ios||void 0===window.SafariViewController)return Km(e,t,o);window.SafariViewController.isAvailable(n=>{n?window.SafariViewController.show({url:e},h,t):Km(e,t,o)})};function Xm(e){const t=Array.isArray(e);if(!0===t){const o=e.length;return{isList:t,totalJobs:o,resultAggregator:Array(o).fill(null)}}const o=Object.keys(e),n={};return o.forEach(e=>{n[e]=null}),{isList:t,totalJobs:o.length,resultAggregator:n,resultKeys:o}}function Zm(e,{threadsNumber:t=1,abortOnFail:o=!0}={}){let n=-1,a=!1;const{isList:l,totalJobs:i,resultAggregator:r,resultKeys:s}=Xm(e),u=()=>new Promise((t,u)=>{function c(){const d=++n;if(!0===a||d>=i)return void t();const v=!0===l?d:s[d];e[v](r).then(e=>{!0!==a?(r[v]={key:v,status:"fulfilled",value:e},setTimeout(c)):t()}).catch(e=>{if(!0===a)return void t();const n={key:v,status:"rejected",reason:e};if(r[v]=n,!0===o)return a=!0,void u({...n,resultAggregator:r});setTimeout(c)})}c()}),c=Array(t).fill(u());return Promise.all(c).then(()=>r)}var Gm=Object.freeze({__proto__:null,clone:zu,colors:Nl,copyToClipboard:Dm,createMetaMixin:jm,createUploaderComponent:pv,date:Zi,debounce:L,dom:eo,EventBus:Hm,event:A,exportFile:Um,extend:Yr,format:ze,frameDebounce:Lu,getCssVar:pp,noop:h,is:xe,morph:Rv,openURL:Ym,patterns:$l,runSequentialPromises:Zm,scroll:mn,setCssVar:Q,throttle:to,uid:Xn});function Jm(){const{emit:t,proxy:o}=e.getCurrentInstance(),n=e.ref(null);function a(){n.value.show()}function l(){n.value.hide()}function i(e){t("ok",e),l()}function r(){t("hide")}return Object.assign(o,{show:a,hide:l}),{dialogRef:n,onDialogHide:r,onDialogOK:i,onDialogCancel:l}}const ef=["ok","hide"];function tf(t){{const o={active:!0};if("function"===typeof t){const n=e.computed(t);o.val=n.value,e.watch(n,e=>{o.val=e,!0===o.active&&pm()})}else o.val=t;lm.push(o),pm(),e.onActivated(()=>{o.active=!0,pm()}),e.onDeactivated(()=>{o.active=!1,pm()}),e.onUnmounted(()=>{lm.splice(lm.indexOf(o),1),pm()})}}function of(){return e.inject(ne)}Jm.emits=ef,Jm.emitsObject=dv(ef);var nf=Object.freeze({__proto__:null,useDialogPluginComponent:Jm,useFormChild:ms,useMeta:tf,useQuasar:of}),af={version:"2.14.4",install(e,t){qe(e,{components:_v,directives:vp,plugins:Rm,...t})},lang:H,iconSet:oe,..._v,...vp,...Rm,...nf,...Gm};return af});
6
+
7
+ (()=>{var uv=Object.create;var pl=Object.defineProperty;var sv=Object.getOwnPropertyDescriptor;var cv=Object.getOwnPropertyNames;var dv=Object.getPrototypeOf,fv=Object.prototype.hasOwnProperty;var qu=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Nr=(e,t)=>{for(var o in t)pl(e,o,{get:t[o],enumerable:!0})},mv=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of cv(t))!fv.call(e,n)&&n!==o&&pl(e,n,{get:()=>t[n],enumerable:!(r=sv(t,n))||r.enumerable});return e};var Tu=(e,t,o)=>(o=e!=null?uv(dv(e)):{},mv(t||!e||!e.__esModule?pl(o,"default",{value:e,enumerable:!0}):o,e));var Nu=qu((B0,Iu)=>{Iu.exports={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days"},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,o)=>e+"-"+t+" of "+o,columns:"Columns"},editor:{url:"URL",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",underline:"Underline",unorderedList:"Unordered List",orderedList:"Ordered List",subscript:"Subscript",superscript:"Superscript",hyperlink:"Hyperlink",toggleFullscreen:"Toggle Fullscreen",quote:"Quote",left:"Left align",center:"Center align",right:"Right align",justify:"Justify align",print:"Print",outdent:"Decrease indentation",indent:"Increase indentation",removeFormat:"Remove formatting",formatting:"Formatting",fontSize:"Font Size",align:"Align",hr:"Insert Horizontal Rule",undo:"Undo",redo:"Redo",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",heading4:"Heading 4",heading5:"Heading 5",heading6:"Heading 6",paragraph:"Paragraph",code:"Code",size1:"Very small",size2:"A bit small",size3:"Normal",size4:"Medium-large",size5:"Big",size6:"Very big",size7:"Maximum",defaultFont:"Default Font",viewSource:"View Source"},tree:{noNodes:"No nodes available",noResults:"No matching nodes found"}}});var Yu=qu((Q0,Wu)=>{Wu.exports={name:"material-icons",type:{positive:"check_circle",negative:"warning",info:"info",warning:"priority_high"},arrow:{up:"arrow_upward",right:"arrow_forward",down:"arrow_downward",left:"arrow_back",dropdown:"arrow_drop_down"},chevron:{left:"chevron_left",right:"chevron_right"},colorPicker:{spectrum:"gradient",tune:"tune",palette:"style"},pullToRefresh:{icon:"refresh"},carousel:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down",navigationIcon:"lens"},chip:{remove:"cancel",selected:"check"},datetime:{arrowLeft:"chevron_left",arrowRight:"chevron_right",now:"access_time",today:"today"},editor:{bold:"format_bold",italic:"format_italic",strikethrough:"strikethrough_s",underline:"format_underlined",unorderedList:"format_list_bulleted",orderedList:"format_list_numbered",subscript:"vertical_align_bottom",superscript:"vertical_align_top",hyperlink:"link",toggleFullscreen:"fullscreen",quote:"format_quote",left:"format_align_left",center:"format_align_center",right:"format_align_right",justify:"format_align_justify",print:"print",outdent:"format_indent_decrease",indent:"format_indent_increase",removeFormat:"format_clear",formatting:"text_format",fontSize:"format_size",align:"format_align_left",hr:"remove",undo:"undo",redo:"redo",heading:"format_size",code:"code",size:"format_size",font:"font_download",viewSource:"code"},expansionItem:{icon:"keyboard_arrow_down",denseIcon:"arrow_drop_down"},fab:{icon:"add",activeIcon:"close"},field:{clear:"cancel",error:"error"},pagination:{first:"first_page",prev:"keyboard_arrow_left",next:"keyboard_arrow_right",last:"last_page"},rating:{icon:"grade"},stepper:{done:"check",active:"edit",error:"warning"},tabs:{left:"chevron_left",right:"chevron_right",up:"keyboard_arrow_up",down:"keyboard_arrow_down"},table:{arrowUp:"arrow_upward",warning:"warning",firstPage:"first_page",prevPage:"chevron_left",nextPage:"chevron_right",lastPage:"last_page"},tree:{icon:"play_arrow"},uploader:{done:"done",clear:"clear",add:"add_box",upload:"cloud_upload",removeQueue:"clear_all",removeUploaded:"done_all"}}});var{h:a,ref:T,computed:s,watch:j,isRef:Mu,toRaw:so,unref:Ru,reactive:jo,shallowReactive:Pu,nextTick:Ae,onActivated:Ht,onDeactivated:Bt,onBeforeMount:Nn,onMounted:je,onBeforeUnmount:ye,onUnmounted:Hn,onBeforeUpdate:ko,onUpdated:Au,inject:ht,provide:Qt,getCurrentInstance:U,markRaw:Hr,Transition:lt,TransitionGroup:$u,KeepAlive:pi,Teleport:Eu,useSSRContext:m0,withDirectives:$t,vShow:bi,defineComponent:Bu,createApp:Fu}=window.Vue;function st(e,t,o,r){return Object.defineProperty(e,t,{get:o,set:r,enumerable:!0}),e}function yi(e,t){for(let o in t)st(e,o,t[o]);return e}var kt=T(!1),bl;function vv(e,t){let o=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:o[5]||o[3]||o[1]||"",version:o[2]||o[4]||"0",versionNumber:o[4]||o[2]||"0",platform:t[0]||""}}function gv(e){return/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[]}var Vu="ontouchstart"in window||window.navigator.maxTouchPoints>0;function hv(e){let t=e.toLowerCase(),o=gv(t),r=vv(t,o),n={};r.browser&&(n[r.browser]=!0,n.version=r.version,n.versionNumber=parseInt(r.versionNumber,10)),r.platform&&(n[r.platform]=!0);let i=n.android||n.ios||n.bb||n.blackberry||n.ipad||n.iphone||n.ipod||n.kindle||n.playbook||n.silk||n["windows phone"];if(i===!0||t.indexOf("mobile")!==-1?n.mobile=!0:n.desktop=!0,n["windows phone"]&&(n.winphone=!0,delete n["windows phone"]),n.edga||n.edgios?(n.edge=!0,r.browser="edge"):n.crios?(n.chrome=!0,r.browser="chrome"):n.fxios?(n.firefox=!0,r.browser="firefox"):(n.ipod||n.ipad||n.iphone)&&(n.ios=!0),n.vivaldi&&(r.browser="vivaldi",n.vivaldi=!0),(n.chrome||n.opr||n.safari||n.vivaldi||n.mobile===!0&&n.ios!==!0&&i!==!0)&&(n.webkit=!0),n.edg?(r.browser="edgechromium",n.edgeChromium=!0):n.opr&&(r.browser="opera",n.opera=!0),n.safari&&(n.blackberry||n.bb?(r.browser="blackberry",n.blackberry=!0):n.playbook?(r.browser="playbook",n.playbook=!0):n.android?(r.browser="android",n.android=!0):n.kindle?(r.browser="kindle",n.kindle=!0):n.silk&&(r.browser="silk",n.silk=!0)),n.name=r.browser,n.platform=r.platform,t.indexOf("electron")!==-1)n.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)n.bex=!0;else{if(window.Capacitor!==void 0?(n.capacitor=!0,n.nativeMobile=!0,n.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(n.cordova=!0,n.nativeMobile=!0,n.nativeMobileWrapper="cordova"),kt.value===!0&&(bl={is:{...n}}),Vu===!0&&n.mac===!0&&(n.desktop===!0&&n.safari===!0||n.nativeMobile===!0&&n.android!==!0&&n.ios!==!0&&n.ipad!==!0)){delete n.mac,delete n.desktop;let l=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(n,{mobile:!0,ios:!0,platform:l,[l]:!0})}n.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete n.desktop,n.mobile=!0)}return n}var Lu=navigator.userAgent||navigator.vendor||window.opera,pv={has:{touch:!1,webStorage:!1},within:{iframe:!1}},Me={userAgent:Lu,is:hv(Lu),has:{touch:Vu},within:{iframe:window.self!==window.top}},yl={install(e){let{$q:t}=e;kt.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,Me),kt.value=!1}),t.platform=jo(this)):t.platform=this}};{let e;st(Me.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(yl,Me),kt.value===!0&&(Object.assign(yl,bl,pv),bl=null)}var qo=yl;var jt=(e,t)=>{let o=jo(e);for(let r in e)st(t,r,()=>o[r],n=>{o[r]=n});return t};var Je={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{let e=Object.defineProperty({},"passive",{get(){Object.assign(Je,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Ye(){}function Uo(e){return e.button===0}function bv(e){return e.button===1}function yv(e){return e.button===2}function xt(e){return e.touches&&e.touches[0]?e=e.touches[0]:e.changedTouches&&e.changedTouches[0]?e=e.changedTouches[0]:e.targetTouches&&e.targetTouches[0]&&(e=e.targetTouches[0]),{top:e.clientY,left:e.clientX}}function Sl(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();let t=[],o=e.target;for(;o;){if(t.push(o),o.tagName==="HTML")return t.push(document),t.push(window),t;o=o.parentElement}}var Sv=40,xv=800;function _v(e){let t=e.deltaX,o=e.deltaY;if((t||o)&&e.deltaMode){let r=e.deltaMode===1?Sv:xv;t*=r,o*=r}return e.shiftKey&&!t&&([o,t]=[t,o]),{x:t,y:o}}function rt(e){e.stopPropagation()}function ft(e){e.cancelable!==!1&&e.preventDefault()}function qe(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Ko(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;let o=t===!0?r=>{r.__dragPrevented=!0,r.addEventListener("dragstart",ft,Je.notPassiveCapture)}:r=>{delete r.__dragPrevented,r.removeEventListener("dragstart",ft,Je.notPassiveCapture)};e.querySelectorAll("a, img").forEach(o)}function dt(e,t,o){let r=`__q_${t}_evt`;e[r]=e[r]!==void 0?e[r].concat(o):o,o.forEach(n=>{n[0].addEventListener(n[1],e[n[2]],Je[n[3]])})}function qt(e,t){let o=`__q_${t}_evt`;e[o]!==void 0&&(e[o].forEach(r=>{r[0].removeEventListener(r[1],e[r[2]],Je[r[3]])}),e[o]=void 0)}var Du={listenOpts:Je,leftClick:Uo,middleClick:bv,rightClick:yv,position:xt,getEventPath:Sl,getMouseWheelDistance:_v,stop:rt,prevent:ft,stopAndPrevent:qe,preventDraggable:Ko};function Xt(e,t=250,o){let r=null;function n(){let i=arguments,l=()=>{r=null,o!==!0&&e.apply(this,i)};r!==null?clearTimeout(r):o===!0&&e.apply(this,i),r=setTimeout(l,t)}return n.cancel=()=>{r!==null&&clearTimeout(r)},n}var xl=["sm","md","lg","xl"],{passive:zu}=Je,Si=jt({width:0,height:0,name:"xs",sizes:{sm:600,md:1024,lg:1440,xl:1920},lt:{sm:!0,md:!0,lg:!0,xl:!0},gt:{xs:!1,sm:!1,md:!1,lg:!1},xs:!0,sm:!1,md:!1,lg:!1,xl:!1},{setSizes:Ye,setDebounce:Ye,install({$q:e,onSSRHydrated:t}){if(e.screen=this,this.__installed===!0){e.config.screen!==void 0&&(e.config.screen.bodyClasses===!1?document.body.classList.remove(`screen--${this.name}`):this.__update(!0));return}let{visualViewport:o}=window,r=o||window,n=document.scrollingElement||document.documentElement,i=o===void 0||Me.is.mobile===!0?()=>[Math.max(window.innerWidth,n.clientWidth),Math.max(window.innerHeight,n.clientHeight)]:()=>[o.width*o.scale+window.innerWidth-n.clientWidth,o.height*o.scale+window.innerHeight-n.clientHeight],l=e.config.screen!==void 0&&e.config.screen.bodyClasses===!0;this.__update=g=>{let[v,m]=i();if(m!==this.height&&(this.height=m),v!==this.width)this.width=v;else if(g!==!0)return;let h=this.sizes;this.gt.xs=v>=h.sm,this.gt.sm=v>=h.md,this.gt.md=v>=h.lg,this.gt.lg=v>=h.xl,this.lt.sm=v<h.sm,this.lt.md=v<h.md,this.lt.lg=v<h.lg,this.lt.xl=v<h.xl,this.xs=this.lt.sm,this.sm=this.gt.xs===!0&&this.lt.md===!0,this.md=this.gt.sm===!0&&this.lt.lg===!0,this.lg=this.gt.md===!0&&this.lt.xl===!0,this.xl=this.gt.lg,h=this.xs===!0&&"xs"||this.sm===!0&&"sm"||this.md===!0&&"md"||this.lg===!0&&"lg"||"xl",h!==this.name&&(l===!0&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${h}`)),this.name=h)};let u,d={},f=16;this.setSizes=g=>{xl.forEach(v=>{g[v]!==void 0&&(d[v]=g[v])})},this.setDebounce=g=>{f=g};let c=()=>{let g=getComputedStyle(document.body);g.getPropertyValue("--q-size-sm")&&xl.forEach(v=>{this.sizes[v]=parseInt(g.getPropertyValue(`--q-size-${v}`),10)}),this.setSizes=v=>{xl.forEach(m=>{v[m]&&(this.sizes[m]=v[m])}),this.__update(!0)},this.setDebounce=v=>{u!==void 0&&r.removeEventListener("resize",u,zu),u=v>0?Xt(this.__update,v):this.__update,r.addEventListener("resize",u,zu)},this.setDebounce(f),Object.keys(d).length!==0?(this.setSizes(d),d=void 0):this.__update(),l===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};kt.value===!0?t.push(c):c()}});var Ut=jt({isActive:!1,mode:!1},{__media:void 0,set(e){Ut.mode=e,e==="auto"?(Ut.__media===void 0&&(Ut.__media=window.matchMedia("(prefers-color-scheme: dark)"),Ut.__updateMedia=()=>{Ut.set("auto")},Ut.__media.addListener(Ut.__updateMedia)),e=Ut.__media.matches):Ut.__media!==void 0&&(Ut.__media.removeListener(Ut.__updateMedia),Ut.__media=void 0),Ut.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){Ut.set(Ut.isActive===!1)},install({$q:e,ssrContext:t}){let{dark:o}=e.config;e.dark=this,this.__installed!==!0&&this.set(o!==void 0?o:!1)}}),xi=Ut;var Ou=()=>!0;function Cv(e){return typeof e=="string"&&e!==""&&e!=="/"&&e!=="#/"}function wv(e){return e.startsWith("#")===!0&&(e=e.substring(1)),e.startsWith("/")===!1&&(e="/"+e),e.endsWith("/")===!0&&(e=e.substring(0,e.length-1)),"#"+e}function kv(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit==="*")return Ou;let t=["#/"];return Array.isArray(e.backButtonExit)===!0&&t.push(...e.backButtonExit.filter(Cv).map(wv)),()=>t.includes(window.location.hash)}var tn={__history:[],add:Ye,remove:Ye,install({$q:e}){if(this.__installed===!0)return;let{cordova:t,capacitor:o}=Me.is;if(t!==!0&&o!==!0)return;let r=e.config[t===!0?"cordova":"capacitor"];if(r!==void 0&&r.backButton===!1||o===!0&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=l=>{l.condition===void 0&&(l.condition=Ou),this.__history.push(l)},this.remove=l=>{let u=this.__history.indexOf(l);u>=0&&this.__history.splice(u,1)};let n=kv(Object.assign({backButtonExit:!0},r)),i=()=>{if(this.__history.length){let l=this.__history[this.__history.length-1];l.condition()===!0&&(this.__history.pop(),l.handler())}else n()===!0?navigator.app.exitApp():window.history.back()};t===!0?document.addEventListener("deviceready",()=>{document.addEventListener("backbutton",i,!1)}):window.Capacitor.Plugins.App.addListener("backButton",i)}};var Qr=Tu(Nu());function Hu(){let e=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((t,o)=>o===0?t.toLowerCase():o>1||t.length<4?t.toUpperCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("-")}var To=jt({__langPack:{}},{getLocale:Hu,set(e=Qr.default,t){let o={...e,rtl:e.rtl===!0,getLocale:Hu};if(o.set=To.set,To.__langConfig===void 0||To.__langConfig.noHtmlAttrs!==!0){let r=document.documentElement;r.setAttribute("dir",o.rtl===!0?"rtl":"ltr"),r.setAttribute("lang",o.isoName)}Object.assign(To.__langPack,o),To.props=o,To.isoName=o.isoName,To.nativeName=o.nativeName},install({$q:e,lang:t,ssrContext:o}){e.lang=To.__langPack,To.__langConfig=e.config.lang,this.__installed===!0?t!==void 0&&this.set(t):this.set(t||Qr.default)}}),xn=To;function jr(e,t,o=document.body){if(typeof e!="string")throw new TypeError("Expected a string as propName");if(typeof t!="string")throw new TypeError("Expected a string as value");if(!(o instanceof Element))throw new TypeError("Expected a DOM element");o.style.setProperty(`--q-${e}`,t)}var Qu=!1;function ju(e){Qu=e.isComposing===!0}function no(e){return Qu===!0||e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Tt(e,t){return no(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Uu(e){if(e.ios===!0)return"ios";if(e.android===!0)return"android"}function qv({is:e,has:t,within:o},r){let n=[e.desktop===!0?"desktop":"mobile",`${t.touch===!1?"no-":""}touch`];if(e.mobile===!0){let i=Uu(e);i!==void 0&&n.push("platform-"+i)}if(e.nativeMobile===!0){let i=e.nativeMobileWrapper;n.push(i),n.push("native-mobile"),e.ios===!0&&(r[i]===void 0||r[i].iosStatusBarPadding!==!1)&&n.push("q-ios-padding")}else e.electron===!0?n.push("electron"):e.bex===!0&&n.push("bex");return o.iframe===!0&&n.push("within-iframe"),n}function Tv(){let{is:e}=Me,t=document.body.className,o=new Set(t.replace(/ {2}/g," ").split(" "));if(e.nativeMobile!==!0&&e.electron!==!0&&e.bex!==!0){if(e.desktop===!0)o.delete("mobile"),o.delete("platform-ios"),o.delete("platform-android"),o.add("desktop");else if(e.mobile===!0){o.delete("desktop"),o.add("mobile"),o.delete("platform-ios"),o.delete("platform-android");let n=Uu(e);n!==void 0&&o.add(`platform-${n}`)}}Me.has.touch===!0&&(o.delete("no-touch"),o.add("touch")),Me.within.iframe===!0&&o.add("within-iframe");let r=Array.from(o).join(" ");t!==r&&(document.body.className=r)}function Mv(e){for(let t in e)jr(t,e[t])}var Ku={install(e){if(this.__installed!==!0){if(kt.value===!0)Tv();else{let{$q:t}=e;t.config.brand!==void 0&&Mv(t.config.brand);let o=qv(Me,t.config);document.body.classList.add.apply(document.body.classList,o)}Me.is.ios===!0&&document.body.addEventListener("touchstart",Ye),window.addEventListener("keydown",ju,!0)}}};var Xu=Tu(Yu()),_l=jt({iconMapFn:null,__icons:{}},{set(e,t){let o={...e,rtl:e.rtl===!0};o.set=_l.set,Object.assign(_l.__icons,o)},install({$q:e,iconSet:t,ssrContext:o}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__icons,st(e,"iconMapFn",()=>this.iconMapFn,r=>{this.iconMapFn=r}),this.__installed===!0?t!==void 0&&this.set(t):this.set(t||Xu.default)}}),_i=_l;var Ci="_q_",wi="_q_t_",ki="_q_s_",Gt="_q_l_",qi="_q_pc_",Ti="_q_f_",Wo="_q_fo_",Mi="_q_tabs_",Ri="_q_u_",Ze=()=>{};var Qn={},Cl=!1;function Gu(){Cl=!0}function Kt(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let o,r;if(e.constructor===Array){if(o=e.length,o!==t.length)return!1;for(r=o;r--!==0;)if(Kt(e[r],t[r])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let i=e.entries();for(r=i.next();r.done!==!0;){if(t.has(r.value[0])!==!0)return!1;r=i.next()}for(i=e.entries(),r=i.next();r.done!==!0;){if(Kt(r.value[1],t.get(r.value[0]))!==!0)return!1;r=i.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;let i=e.entries();for(r=i.next();r.done!==!0;){if(t.has(r.value[0])!==!0)return!1;r=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(o=e.length,o!==t.length)return!1;for(r=o;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();let n=Object.keys(e).filter(i=>e[i]!==void 0);if(o=n.length,o!==Object.keys(t).filter(i=>t[i]!==void 0).length)return!1;for(r=o;r--!==0;){let i=n[r];if(Kt(e[i],t[i])!==!0)return!1}return!0}return e!==e&&t!==t}function ct(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}function Yo(e){return Object.prototype.toString.call(e)==="[object Date]"}function wl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function co(e){return typeof e=="number"&&isFinite(e)}var Zu={deepEqual:Kt,object:ct,date:Yo,regexp:wl,number:co};var Ju=[qo,Ku,xi,Si,tn,xn,_i];function on(e,t){let o=Fu(e);o.config.globalProperties=t.config.globalProperties;let{reload:r,...n}=t._context;return Object.assign(o._context,n),o}function es(e,t){t.forEach(o=>{o.install(e),o.__installed=!0})}function Rv(e,t,o){e.config.globalProperties.$q=o.$q,e.provide(Ci,o.$q),es(o,Ju),t.components!==void 0&&Object.values(t.components).forEach(r=>{ct(r)===!0&&r.name!==void 0&&e.component(r.name,r)}),t.directives!==void 0&&Object.values(t.directives).forEach(r=>{ct(r)===!0&&r.name!==void 0&&e.directive(r.name,r)}),t.plugins!==void 0&&es(o,Object.values(t.plugins).filter(r=>typeof r.install=="function"&&Ju.includes(r)===!1)),kt.value===!0&&(o.$q.onSSRHydrated=()=>{o.onSSRHydrated.forEach(r=>{r()}),o.$q.onSSRHydrated=()=>{}})}var ts=function(e,t={}){let o={version:"2.14.6"};Cl===!1?(t.config!==void 0&&Object.assign(Qn,t.config),o.config={...Qn},Gu()):o.config=t.config||{},Rv(e,t,{parentApp:e,$q:o,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})};var el={};Nr(el,{QAjaxBar:()=>Ai,QAvatar:()=>Ei,QBadge:()=>ds,QBanner:()=>fs,QBar:()=>ms,QBreadcrumbs:()=>hs,QBreadcrumbsEl:()=>Ss,QBtn:()=>Oe,QBtnDropdown:()=>ji,QBtnGroup:()=>tr,QBtnToggle:()=>zs,QCard:()=>hr,QCardActions:()=>Ui,QCardSection:()=>bo,QCarousel:()=>Is,QCarouselControl:()=>Hs,QCarouselSlide:()=>Ns,QChatMessage:()=>Qs,QCheckbox:()=>Do,QChip:()=>qr,QCircularProgress:()=>Tr,QColor:()=>oc,QDate:()=>hc,QDialog:()=>Io,QDrawer:()=>wc,QEditor:()=>Bc,QExpansionItem:()=>Fc,QFab:()=>Lc,QFabAction:()=>Dc,QField:()=>ka,QFile:()=>Ic,QFooter:()=>Nc,QForm:()=>Hc,QFormChildMixin:()=>Qc,QHeader:()=>jc,QIcon:()=>Re,QImg:()=>Uc,QInfiniteScroll:()=>Kc,QInnerLoading:()=>Wc,QInput:()=>Br,QIntersection:()=>nd,QItem:()=>No,QItemLabel:()=>Ln,QItemSection:()=>oo,QKnob:()=>id,QLayout:()=>ld,QLinearProgress:()=>Ha,QList:()=>Ba,QMarkupTable:()=>Fa,QMenu:()=>Fo,QNoSsr:()=>ud,QOptionGroup:()=>Da,QPage:()=>cd,QPageContainer:()=>dd,QPageScroller:()=>fd,QPageSticky:()=>md,QPagination:()=>vd,QParallax:()=>gd,QPopupEdit:()=>hd,QPopupProxy:()=>pd,QPullToRefresh:()=>yd,QRadio:()=>La,QRange:()=>Sd,QRating:()=>xd,QResizeObserver:()=>to,QResponsive:()=>_d,QRouteTab:()=>$f,QScrollArea:()=>qd,QScrollObserver:()=>Fr,QSelect:()=>Ua,QSeparator:()=>io,QSkeleton:()=>Ad,QSlideItem:()=>Ed,QSlideTransition:()=>gn,QSlider:()=>Go,QSpace:()=>Bd,QSpinner:()=>Ct,QSpinnerAudio:()=>Fd,QSpinnerBall:()=>Ld,QSpinnerBars:()=>Vd,QSpinnerBox:()=>Dd,QSpinnerClock:()=>zd,QSpinnerComment:()=>Od,QSpinnerCube:()=>Id,QSpinnerDots:()=>Nd,QSpinnerFacebook:()=>Hd,QSpinnerGears:()=>Qd,QSpinnerGrid:()=>jd,QSpinnerHearts:()=>Ud,QSpinnerHourglass:()=>Kd,QSpinnerInfinity:()=>Wd,QSpinnerIos:()=>Yd,QSpinnerOrbit:()=>Xd,QSpinnerOval:()=>Gd,QSpinnerPie:()=>Zd,QSpinnerPuff:()=>Jd,QSpinnerRadio:()=>ef,QSpinnerRings:()=>tf,QSpinnerTail:()=>of,QSplitter:()=>nf,QStep:()=>lf,QStepper:()=>uf,QStepperNavigation:()=>sf,QTab:()=>cn,QTabPanel:()=>Mr,QTabPanels:()=>aa,QTable:()=>Rf,QTabs:()=>ni,QTd:()=>Af,QTh:()=>Wa,QTime:()=>Ef,QTimeline:()=>Bf,QTimelineEntry:()=>Ff,QToggle:()=>Va,QToolbar:()=>Lf,QToolbarTitle:()=>Vf,QTooltip:()=>Sa,QTr:()=>Pf,QTree:()=>Df,QUploader:()=>Hf,QUploaderAddTrigger:()=>Qf,QVideo:()=>jf,QVirtualScroll:()=>Xa});var A=e=>Hr(Bu(e)),Pt=e=>Hr(e);var os=["B","KB","MB","GB","TB","PB"];function jn(e){let t=0;for(;parseInt(e,10)>=1024&&t<os.length-1;)e/=1024,++t;return`${e.toFixed(1)}${os[t]}`}function kl(e){return e.charAt(0).toUpperCase()+e.slice(1)}function tt(e,t,o){return o<=t?t:Math.min(o,Math.max(t,e))}function _n(e,t,o){if(o<=t)return t;let r=o-t+1,n=t+(e-t)%r;return n<t&&(n=r+n),n===0?0:n}function ot(e,t=2,o="0"){if(e==null)return e;let r=""+e;return r.length>=t?r:new Array(t-r.length+1).join(o)+r}var ns={humanStorageSize:jn,capitalize:kl,between:tt,normalizeToInterval:_n,pad:ot};var ql=XMLHttpRequest,rs=ql.prototype.open,Pv=["top","right","bottom","left"],Pi=[],Ur=0;function Av({p:e,pos:t,active:o,horiz:r,reverse:n,dir:i}){let l=1,u=1;return r===!0?(n===!0&&(l=-1),t==="bottom"&&(u=-1),{transform:`translate3d(${l*(e-100)}%,${o?0:u*-200}%,0)`}):(n===!0&&(u=-1),t==="right"&&(l=-1),{transform:`translate3d(${o?0:i*l*-200}%,${u*(e-100)}%,0)`})}function $v(e,t){return typeof t!="number"&&(e<25?t=Math.random()*3+3:e<65?t=Math.random()*3:e<85?t=Math.random()*2:e<99?t=.6:t=0),tt(e+t,0,100)}function Ev(e){Ur++,Pi.push(e),!(Ur>1)&&(ql.prototype.open=function(t,o){let r=[],n=()=>{Pi.forEach(l=>{(l.hijackFilter.value===null||l.hijackFilter.value(o)===!0)&&(l.start(),r.push(l.stop))})},i=()=>{r.forEach(l=>{l()})};this.addEventListener("loadstart",n,{once:!0}),this.addEventListener("loadend",i,{once:!0}),rs.apply(this,arguments)})}function Bv(e){Pi=Pi.filter(t=>t.start!==e),Ur=Math.max(0,Ur-1),Ur===0&&(ql.prototype.open=rs)}var Ai=A({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:e=>Pv.includes(e)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean,hijackFilter:Function},emits:["start","stop"],setup(e,{emit:t}){let{proxy:o}=U(),r=T(0),n=T(!1),i=T(!0),l=0,u=null,d,f=s(()=>`q-loading-bar q-loading-bar--${e.position}`+(e.color!==void 0?` bg-${e.color}`:"")+(i.value===!0?"":" no-transition")),c=s(()=>e.position==="top"||e.position==="bottom"),g=s(()=>c.value===!0?"height":"width"),v=s(()=>{let b=n.value,p=Av({p:r.value,pos:e.position,active:b,horiz:c.value,reverse:o.$q.lang.rtl===!0&&["top","bottom"].includes(e.position)?e.reverse===!1:e.reverse,dir:o.$q.lang.rtl===!0?-1:1});return p[g.value]=e.size,p.opacity=b?1:0,p}),m=s(()=>n.value===!0?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":r.value}:{"aria-hidden":"true"});function h(b=300){let p=d;return d=Math.max(0,b)||0,l++,l>1?(p===0&&b>0?q():u!==null&&p>0&&b<=0&&(clearTimeout(u),u=null),l):(u!==null&&clearTimeout(u),t("start"),r.value=0,u=setTimeout(()=>{u=null,i.value=!0,b>0&&q()},n._value===!0?500:1),n._value!==!0&&(n.value=!0,i.value=!1),l)}function C(b){return l>0&&(r.value=$v(r.value,b)),l}function y(){if(l=Math.max(0,l-1),l>0)return l;u!==null&&(clearTimeout(u),u=null),t("stop");let b=()=>{i.value=!0,r.value=100,u=setTimeout(()=>{u=null,n.value=!1},1e3)};return r.value===0?u=setTimeout(b,1):b(),l}function q(){r.value<100&&(u=setTimeout(()=>{u=null,C(),q()},d))}let S;return je(()=>{e.skipHijack!==!0&&(S=!0,Ev({start:h,stop:y,hijackFilter:s(()=>e.hijackFilter||null)}))}),ye(()=>{u!==null&&clearTimeout(u),S===!0&&Bv(h)}),Object.assign(o,{start:h,stop:y,increment:C}),()=>a("div",{class:f.value,style:v.value,...m.value})}});var $i={xs:18,sm:24,md:32,lg:38,xl:46},Lt={size:String};function Vt(e,t=$i){return s(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function ie(e,t){return e!==void 0&&e()||t}function Mo(e,t){if(e!==void 0){let o=e();if(o!=null)return o.slice()}return t}function Xe(e,t){return e!==void 0?t.concat(e()):t}function Un(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function Mt(e,t,o,r,n,i){t.key=r+n;let l=a(e,t,o);return n===!0?$t(l,i()):l}var is="0 0 24 24",as=e=>e,Tl=e=>`ionicons ${e}`,us={"mdi-":e=>`mdi ${e}`,"icon-":as,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Tl,"ion-ios":Tl,"ion-logo":Tl,"iconfont ":as,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},ss={o_:"-outlined",r_:"-round",s_:"-sharp"},cs={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Fv=new RegExp("^("+Object.keys(us).join("|")+")"),Lv=new RegExp("^("+Object.keys(ss).join("|")+")"),ls=new RegExp("^("+Object.keys(cs).join("|")+")"),Vv=/^[Mm]\s?[-+]?\.?\d/,Dv=/^img:/,zv=/^svguse:/,Ov=/^ion-/,Iv=/^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,Re=A({name:"QIcon",props:{...Lt,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){let{proxy:{$q:o}}=U(),r=Vt(e),n=s(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),i=s(()=>{let l,u=e.name;if(u==="none"||!u)return{none:!0};if(o.iconMapFn!==null){let c=o.iconMapFn(u);if(c!==void 0)if(c.icon!==void 0){if(u=c.icon,u==="none"||!u)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(Vv.test(u)===!0){let[c,g=is]=u.split("|");return{svg:!0,viewBox:g,nodes:c.split("&&").map(v=>{let[m,h,C]=v.split("@@");return a("path",{style:h,d:m,transform:C})})}}if(Dv.test(u)===!0)return{img:!0,src:u.substring(4)};if(zv.test(u)===!0){let[c,g=is]=u.split("|");return{svguse:!0,src:c.substring(7),viewBox:g}}let d=" ",f=u.match(Fv);if(f!==null)l=us[f[1]](u);else if(Iv.test(u)===!0)l=u;else if(Ov.test(u)===!0)l=`ionicons ion-${o.platform.is.ios===!0?"ios":"md"}${u.substring(3)}`;else if(ls.test(u)===!0){l="notranslate material-symbols";let c=u.match(ls);c!==null&&(u=u.substring(6),l+=cs[c[1]]),d=u}else{l="notranslate material-icons";let c=u.match(Lv);c!==null&&(u=u.substring(2),l+=ss[c[1]]),d=u}return{cls:l,content:d}});return()=>{let l={class:n.value,style:r.value,"aria-hidden":"true",role:"presentation"};return i.value.none===!0?a(e.tag,l,ie(t.default)):i.value.img===!0?a(e.tag,l,Xe(t.default,[a("img",{src:i.value.src})])):i.value.svg===!0?a(e.tag,l,Xe(t.default,[a("svg",{viewBox:i.value.viewBox||"0 0 24 24"},i.value.nodes)])):i.value.svguse===!0?a(e.tag,l,Xe(t.default,[a("svg",{viewBox:i.value.viewBox},[a("use",{"xlink:href":i.value.src})])])):(i.value.cls!==void 0&&(l.class+=" "+i.value.cls),a(e.tag,l,Xe(t.default,[i.value.content])))}}});var Ei=A({name:"QAvatar",props:{...Lt,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){let o=Vt(e),r=s(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),n=s(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{let i=e.icon!==void 0?[a(Re,{name:e.icon})]:void 0;return a("div",{class:r.value,style:o.value},[a("div",{class:"q-avatar__content row flex-center overflow-hidden",style:n.value},Un(t.default,i))])}}});var Nv=["top","middle","bottom"],ds=A({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>Nv.includes(e)}},setup(e,{slots:t}){let o=s(()=>e.align!==void 0?{verticalAlign:e.align}:null),r=s(()=>{let n=e.outline===!0&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${e.multiLine===!0?"multi":"single"}-line`+(e.outline===!0?" q-badge--outline":e.color!==void 0?` bg-${e.color}`:"")+(n!==void 0?` text-${n}`:"")+(e.floating===!0?" q-badge--floating":"")+(e.rounded===!0?" q-badge--rounded":"")+(e.transparent===!0?" q-badge--transparent":"")});return()=>a("div",{class:r.value,style:o.value,role:"status","aria-label":e.label},Xe(t.default,e.label!==void 0?[e.label]:[]))}});var Ce={dark:{type:Boolean,default:null}};function we(e,t){return s(()=>e.dark===null?t.dark.isActive:e.dark)}var fs=A({name:"QBanner",props:{...Ce,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){let{proxy:{$q:o}}=U(),r=we(e,o),n=s(()=>"q-banner row items-center"+(e.dense===!0?" q-banner--dense":"")+(r.value===!0?" q-banner--dark q-dark":"")+(e.rounded===!0?" rounded-borders":"")),i=s(()=>`q-banner__actions row items-center justify-end col-${e.inlineActions===!0?"auto":"all"}`);return()=>{let l=[a("div",{class:"q-banner__avatar col-auto row items-center self-start"},ie(t.avatar)),a("div",{class:"q-banner__content col text-body2"},ie(t.default))],u=ie(t.action);return u!==void 0&&l.push(a("div",{class:i.value},u)),a("div",{class:n.value+(e.inlineActions===!1&&u!==void 0?" q-banner--top-padding":""),role:"alert"},l)}}});var ms=A({name:"QBar",props:{...Ce,dense:Boolean},setup(e,{slots:t}){let{proxy:{$q:o}}=U(),r=we(e,o),n=s(()=>`q-bar row no-wrap items-center q-bar--${e.dense===!0?"dense":"standard"} q-bar--${r.value===!0?"dark":"light"}`);return()=>a("div",{class:n.value,role:"toolbar"},ie(t.default))}});var vs={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},Hv=Object.keys(vs),Kn={align:{type:String,validator:e=>Hv.includes(e)}};function Wn(e){return s(()=>{let t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${vs[t]}`})}function Kr(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function gs(e,t){typeof t.type=="symbol"?Array.isArray(t.children)===!0&&t.children.forEach(o=>{gs(e,o)}):e.add(t)}function Yn(e){let t=new Set;return e.forEach(o=>{gs(t,o)}),Array.from(t)}function Xn(e){return e.appContext.config.globalProperties.$router!==void 0}function Zt(e){return e.isUnmounted===!0||e.isDeactivated===!0}var Qv=["",!0],hs=A({name:"QBreadcrumbs",props:{...Kn,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:e=>["none","xs","sm","md","lg","xl"].includes(e),default:"sm"}},setup(e,{slots:t}){let o=Wn(e),r=s(()=>`flex items-center ${o.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),n=s(()=>e.separatorColor?` text-${e.separatorColor}`:""),i=s(()=>` text-${e.activeColor}`);return()=>{let l=Yn(ie(t.default));if(l.length===0)return;let u=1,d=[],f=l.filter(g=>g.type!==void 0&&g.type.name==="QBreadcrumbsEl").length,c=t.separator!==void 0?t.separator:()=>e.separator;return l.forEach(g=>{if(g.type!==void 0&&g.type.name==="QBreadcrumbsEl"){let v=u<f,m=g.props!==null&&Qv.includes(g.props.disable),h=(v===!0?"":" q-breadcrumbs--last")+(m!==!0&&v===!0?i.value:"");u++,d.push(a("div",{class:`flex items-center${h}`},[g])),v===!0&&d.push(a("div",{class:"q-breadcrumbs__separator"+n.value},c()))}else d.push(g)}),a("div",{class:"q-breadcrumbs"},[a("div",{class:r.value},d)])}}});function ps(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function bs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jv(e,t){for(let o in t){let r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(Array.isArray(n)===!1||n.length!==r.length||r.some((i,l)=>i!==n[l]))return!1}return!0}function ys(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function Uv(e,t){return Array.isArray(e)===!0?ys(e,t):Array.isArray(t)===!0?ys(t,e):e===t}function Kv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let o in e)if(Uv(e[o],t[o])===!1)return!1;return!0}var po={to:[String,Object],replace:Boolean,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"},href:String,target:String,disable:Boolean};function nn({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){let o=U(),{props:r,proxy:n,emit:i}=o,l=Xn(o),u=s(()=>r.disable!==!0&&r.href!==void 0),d=t===!0?s(()=>l===!0&&r.disable!==!0&&u.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""):s(()=>l===!0&&u.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""),f=s(()=>d.value===!0?S(r.to):null),c=s(()=>f.value!==null),g=s(()=>u.value===!0||c.value===!0),v=s(()=>r.type==="a"||g.value===!0?"a":r.tag||e||"div"),m=s(()=>u.value===!0?{href:r.href,target:r.target}:c.value===!0?{href:f.value.href,target:r.target}:{}),h=s(()=>{if(c.value===!1)return-1;let{matched:k}=f.value,{length:$}=k,F=k[$-1];if(F===void 0)return-1;let D=n.$route.matched;if(D.length===0)return-1;let L=D.findIndex(bs.bind(null,F));if(L!==-1)return L;let B=ps(k[$-2]);return $>1&&ps(F)===B&&D[D.length-1].path!==B?D.findIndex(bs.bind(null,k[$-2])):L}),C=s(()=>c.value===!0&&h.value!==-1&&jv(n.$route.params,f.value.params)),y=s(()=>C.value===!0&&h.value===n.$route.matched.length-1&&Kv(n.$route.params,f.value.params)),q=s(()=>c.value===!0?y.value===!0?` ${r.exactActiveClass} ${r.activeClass}`:r.exact===!0?"":C.value===!0?` ${r.activeClass}`:"":"");function S(k){try{return n.$router.resolve(k)}catch{}return null}function b(k,{returnRouterError:$,to:F=r.to,replace:D=r.replace}={}){if(r.disable===!0)return k.preventDefault(),Promise.resolve(!1);if(k.metaKey||k.altKey||k.ctrlKey||k.shiftKey||k.button!==void 0&&k.button!==0||r.target==="_blank")return Promise.resolve(!1);k.preventDefault();let L=n.$router[D===!0?"replace":"push"](F);return $===!0?L:L.then(()=>{}).catch(()=>{})}function p(k){if(c.value===!0){let $=F=>b(k,F);i("click",k,$),k.defaultPrevented!==!0&&$()}else i("click",k)}return{hasRouterLink:c,hasHrefLink:u,hasLink:g,linkTag:v,resolvedLink:f,linkIsActive:C,linkIsExactActive:y,linkClass:q,linkAttrs:m,getLink:S,navigateToRouterLink:b,navigateOnClick:p}}var Ss=A({name:"QBreadcrumbsEl",props:{...po,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:t}){let{linkTag:o,linkAttrs:r,linkClass:n,navigateOnClick:i}=nn(),l=s(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(e.disable!==!0?"q-link--focusable"+n.value:"q-breadcrumbs__el--disable"),...r.value,onClick:i})),u=s(()=>"q-breadcrumbs__el-icon"+(e.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{let d=[];return e.icon!==void 0&&d.push(a(Re,{class:u.value,name:e.icon})),e.label!==void 0&&d.push(e.label),a(o.value,{...l.value},Xe(t.default,d))}}});var Qe={size:{type:[Number,String],default:"1em"},color:String};function Ne(e){return{cSize:s(()=>e.size in $i?`${$i[e.size]}px`:e.size),classes:s(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}var Ct=A({name:"QSpinner",props:{...Qe,thickness:{type:Number,default:5}},setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[a("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function Cn(e){if(e===window)return{top:0,left:0};let{top:t,left:o}=e.getBoundingClientRect();return{top:t,left:o}}function Wv(e,t){return window.getComputedStyle(e).getPropertyValue(t)}function Ro(e){return e===window?window.innerHeight:e.getBoundingClientRect().height}function Yv(e){return e===window?window.innerWidth:e.getBoundingClientRect().width}function wn(e,t){let o=e.style;for(let r in t)o[r]=t[r]}function Xv(e,t){e.forEach(o=>wn(o,t))}function Gv(e){if(typeof e=="function"){if(document.readyState!=="loading")return e();document.addEventListener("DOMContentLoaded",e,!1)}}function xs(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}let t=Ru(e);if(t)return t.$el||t}function Bi(e,t){if(e==null||e.contains(t)===!0)return!0;for(let o=e.nextElementSibling;o!==null;o=o.nextElementSibling)if(o.contains(t))return!0;return!1}var _s={offset:Cn,style:Wv,height:Ro,width:Yv,css:wn,cssBatch:Xv,ready:Gv};function Gn(e,t=250){let o=!1,r;return function(){return o===!1&&(o=!0,setTimeout(()=>{o=!1},t),r=e.apply(this,arguments)),r}}function Cs(e,t,o,r){o.modifiers.stop===!0&&rt(e);let n=o.modifiers.color,i=o.modifiers.center;i=i===!0||r===!0;let l=document.createElement("span"),u=document.createElement("span"),d=xt(e),{left:f,top:c,width:g,height:v}=t.getBoundingClientRect(),m=Math.sqrt(g*g+v*v),h=m/2,C=`${(g-m)/2}px`,y=i?C:`${d.left-f-h}px`,q=`${(v-m)/2}px`,S=i?q:`${d.top-c-h}px`;u.className="q-ripple__inner",wn(u,{height:`${m}px`,width:`${m}px`,transform:`translate3d(${y},${S},0) scale3d(.2,.2,1)`,opacity:0}),l.className=`q-ripple${n?" text-"+n:""}`,l.setAttribute("dir","ltr"),l.appendChild(u),t.appendChild(l);let b=()=>{l.remove(),clearTimeout(p)};o.abort.push(b);let p=setTimeout(()=>{u.classList.add("q-ripple__inner--enter"),u.style.transform=`translate3d(${C},${q},0) scale3d(1,1,1)`,u.style.opacity=.2,p=setTimeout(()=>{u.classList.remove("q-ripple__inner--enter"),u.classList.add("q-ripple__inner--leave"),u.style.opacity=0,p=setTimeout(()=>{l.remove(),o.abort.splice(o.abort.indexOf(b),1)},275)},250)},50)}function ws(e,{modifiers:t,value:o,arg:r}){let n=Object.assign({},e.cfg.ripple,t,o);e.modifiers={early:n.early===!0,stop:n.stop===!0,center:n.center===!0,color:n.color||r,keyCodes:[].concat(n.keyCodes||13)}}var Po=Pt({name:"ripple",beforeMount(e,t){let o=t.instance.$.appContext.config.globalProperties.$q.config||{};if(o.ripple===!1)return;let r={cfg:o,enabled:t.value!==!1,modifiers:{},abort:[],start(n){r.enabled===!0&&n.qSkipRipple!==!0&&n.type===(r.modifiers.early===!0?"pointerdown":"click")&&Cs(n,e,r,n.qKeyEvent===!0)},keystart:Gn(n=>{r.enabled===!0&&n.qSkipRipple!==!0&&Tt(n,r.modifiers.keyCodes)===!0&&n.type===`key${r.modifiers.early===!0?"down":"up"}`&&Cs(n,e,r,!0)},300)};ws(r,t),e.__qripple=r,dt(r,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){let o=e.__qripple;o!==void 0&&(o.enabled=t.value!==!1,o.enabled===!0&&Object(t.value)===t.value&&ws(o,t))}},beforeUnmount(e){let t=e.__qripple;t!==void 0&&(t.abort.forEach(o=>{o()}),qt(t,"main"),delete e._qripple)}});var Wr={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Zv={xs:8,sm:10,md:14,lg:20,xl:24},Jv=["button","submit","reset"],eg=/[^\s]\/[^\s]/,Ml=["flat","outline","push","unelevated"],Fi=(e,t)=>e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t,Li=e=>{let t=Fi(e);return t!==void 0?{[t]:!0}:{}},Yr={...Lt,...po,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Ml.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,round:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Kn.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean};function ks(e){let t=Vt(e,Zv),o=Wn(e),{hasRouterLink:r,hasLink:n,linkTag:i,linkAttrs:l,navigateOnClick:u}=nn({fallbackTag:"button"}),d=s(()=>{let y=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},y,{padding:e.padding.split(/\s+/).map(q=>q in Wr?Wr[q]+"px":q).join(" "),minWidth:"0",minHeight:"0"}):y}),f=s(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=s(()=>e.disable!==!0&&e.loading!==!0),g=s(()=>c.value===!0?e.tabindex||0:-1),v=s(()=>Fi(e,"standard")),m=s(()=>{let y={tabindex:g.value};return n.value===!0?Object.assign(y,l.value):Jv.includes(e.type)===!0&&(y.type=e.type),i.value==="a"?(e.disable===!0?y["aria-disabled"]="true":y.href===void 0&&(y.role="button"),r.value!==!0&&eg.test(e.type)===!0&&(y.type=e.type)):e.disable===!0&&(y.disabled="",y["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(y,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),y}),h=s(()=>{let y;e.color!==void 0?e.flat===!0||e.outline===!0?y=`text-${e.textColor||e.color}`:y=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(y=`text-${e.textColor}`);let q=e.round===!0?"round":`rectangle${f.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${v.value} q-btn--${q}`+(y!==void 0?" "+y:"")+(c.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),C=s(()=>o.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:h,style:d,innerClasses:C,attributes:m,hasLink:n,linkTag:i,navigateOnClick:u,isActionable:c}}var{passiveCapture:fo}=Je,Zn=null,Jn=null,er=null,Oe=A({name:"QBtn",props:{...Yr,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:o}){let{proxy:r}=U(),{classes:n,style:i,innerClasses:l,attributes:u,hasLink:d,linkTag:f,navigateOnClick:c,isActionable:g}=ks(e),v=T(null),m=T(null),h=null,C,y=null,q=s(()=>e.label!==void 0&&e.label!==null&&e.label!==""),S=s(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:d.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),b=s(()=>({center:e.round})),p=s(()=>{let R=Math.max(0,Math.min(100,e.percentage));return R>0?{transition:"transform 0.6s",transform:`translateX(${R-100}%)`}:{}}),k=s(()=>{if(e.loading===!0)return{onMousedown:_,onTouchstart:_,onClick:_,onKeydown:_,onKeyup:_};if(g.value===!0){let R={onClick:F,onKeydown:D,onMousedown:B};if(r.$q.platform.has.touch===!0){let N=e.onTouchstart!==void 0?"":"Passive";R[`onTouchstart${N}`]=L}return R}return{onClick:qe}}),$=s(()=>({ref:v,class:"q-btn q-btn-item non-selectable no-outline "+n.value,style:i.value,...u.value,...k.value}));function F(R){if(v.value!==null){if(R!==void 0){if(R.defaultPrevented===!0)return;let N=document.activeElement;if(e.type==="submit"&&N!==document.body&&v.value.contains(N)===!1&&N.contains(v.value)===!1){v.value.focus();let X=()=>{document.removeEventListener("keydown",qe,!0),document.removeEventListener("keyup",X,fo),v.value!==null&&v.value.removeEventListener("blur",X,fo)};document.addEventListener("keydown",qe,!0),document.addEventListener("keyup",X,fo),v.value.addEventListener("blur",X,fo)}}c(R)}}function D(R){v.value!==null&&(o("keydown",R),Tt(R,[13,32])===!0&&Jn!==v.value&&(Jn!==null&&E(),R.defaultPrevented!==!0&&(v.value.focus(),Jn=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("keyup",V,!0),v.value.addEventListener("blur",V,fo)),qe(R)))}function L(R){v.value!==null&&(o("touchstart",R),R.defaultPrevented!==!0&&(Zn!==v.value&&(Zn!==null&&E(),Zn=v.value,h=R.target,h.addEventListener("touchcancel",V,fo),h.addEventListener("touchend",V,fo)),C=!0,y!==null&&clearTimeout(y),y=setTimeout(()=>{y=null,C=!1},200)))}function B(R){v.value!==null&&(R.qSkipRipple=C===!0,o("mousedown",R),R.defaultPrevented!==!0&&er!==v.value&&(er!==null&&E(),er=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("mouseup",V,fo)))}function V(R){if(v.value!==null&&!(R!==void 0&&R.type==="blur"&&document.activeElement===v.value)){if(R!==void 0&&R.type==="keyup"){if(Jn===v.value&&Tt(R,[13,32])===!0){let N=new MouseEvent("click",R);N.qKeyEvent=!0,R.defaultPrevented===!0&&ft(N),R.cancelBubble===!0&&rt(N),v.value.dispatchEvent(N),qe(R),R.qKeyEvent=!0}o("keyup",R)}E()}}function E(R){let N=m.value;R!==!0&&(Zn===v.value||er===v.value)&&N!==null&&N!==document.activeElement&&(N.setAttribute("tabindex",-1),N.focus()),Zn===v.value&&(h!==null&&(h.removeEventListener("touchcancel",V,fo),h.removeEventListener("touchend",V,fo)),Zn=h=null),er===v.value&&(document.removeEventListener("mouseup",V,fo),er=null),Jn===v.value&&(document.removeEventListener("keyup",V,!0),v.value!==null&&v.value.removeEventListener("blur",V,fo),Jn=null),v.value!==null&&v.value.classList.remove("q-btn--active")}function _(R){qe(R),R.qSkipRipple=!0}return ye(()=>{E(!0)}),Object.assign(r,{click:F}),()=>{let R=[];e.icon!==void 0&&R.push(a(Re,{name:e.icon,left:e.stack!==!0&&q.value===!0,role:"img","aria-hidden":"true"})),q.value===!0&&R.push(a("span",{class:"block"},[e.label])),R=Xe(t.default,R),e.iconRight!==void 0&&e.round===!1&&R.push(a(Re,{name:e.iconRight,right:e.stack!==!0&&q.value===!0,role:"img","aria-hidden":"true"}));let N=[a("span",{class:"q-focus-helper",ref:m})];return e.loading===!0&&e.percentage!==void 0&&N.push(a("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[a("span",{class:"q-btn__progress-indicator fit block",style:p.value})])),N.push(a("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+l.value},R)),e.loading!==null&&N.push(a(lt,{name:"q-transition--fade"},()=>e.loading===!0?[a("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[a(Ct)])]:null)),$t(a(f.value,$.value,N),[[Po,S.value,void 0,b.value]])}}});var tr=A({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:t}){let o=s(()=>{let r=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(n=>e[n]===!0).map(n=>`q-btn-group--${n}`).join(" ");return`q-btn-group row no-wrap${r.length!==0?" "+r:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>a("div",{class:o.value},ie(t.default))}});function Ot(){if(window.getSelection!==void 0){let e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),qo.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}var or={target:{default:!0},noParentEvent:Boolean,contextMenu:Boolean};function nr({showing:e,avoidEmit:t,configureAnchorEl:o}){let{props:r,proxy:n,emit:i}=U(),l=T(null),u=null;function d(m){return l.value===null?!1:m===void 0||m.touches===void 0||m.touches.length<=1}let f={};o===void 0&&(Object.assign(f,{hide(m){n.hide(m)},toggle(m){n.toggle(m),m.qAnchorHandled=!0},toggleKey(m){Tt(m,13)===!0&&f.toggle(m)},contextClick(m){n.hide(m),ft(m),Ae(()=>{n.show(m),m.qAnchorHandled=!0})},prevent:ft,mobileTouch(m){if(f.mobileCleanup(m),d(m)!==!0)return;n.hide(m),l.value.classList.add("non-selectable");let h=m.target;dt(f,"anchor",[[h,"touchmove","mobileCleanup","passive"],[h,"touchend","mobileCleanup","passive"],[h,"touchcancel","mobileCleanup","passive"],[l.value,"contextmenu","prevent","notPassive"]]),u=setTimeout(()=>{u=null,n.show(m),m.qAnchorHandled=!0},300)},mobileCleanup(m){l.value.classList.remove("non-selectable"),u!==null&&(clearTimeout(u),u=null),e.value===!0&&m!==void 0&&Ot()}}),o=function(m=r.contextMenu){if(r.noParentEvent===!0||l.value===null)return;let h;m===!0?n.$q.platform.is.mobile===!0?h=[[l.value,"touchstart","mobileTouch","passive"]]:h=[[l.value,"mousedown","hide","passive"],[l.value,"contextmenu","contextClick","notPassive"]]:h=[[l.value,"click","toggle","passive"],[l.value,"keyup","toggleKey","passive"]],dt(f,"anchor",h)});function c(){qt(f,"anchor")}function g(m){for(l.value=m;l.value.classList.contains("q-anchor--skip");)l.value=l.value.parentNode;o()}function v(){if(r.target===!1||r.target===""||n.$el.parentNode===null)l.value=null;else if(r.target===!0)g(n.$el.parentNode);else{let m=r.target;if(typeof r.target=="string")try{m=document.querySelector(r.target)}catch{m=void 0}m!=null?(l.value=m.$el||m,o()):(l.value=null,console.error(`Anchor: target "${r.target}" not found`))}}return j(()=>r.contextMenu,m=>{l.value!==null&&(c(),o(m))}),j(()=>r.target,()=>{l.value!==null&&c(),v()}),j(()=>r.noParentEvent,m=>{l.value!==null&&(m===!0?c():o())}),je(()=>{v(),t!==!0&&r.modelValue===!0&&l.value===null&&i("update:modelValue",!1)}),ye(()=>{u!==null&&clearTimeout(u),c()}),{anchorEl:l,canShow:d,anchorEvents:f}}function Vi(e,t){let o=T(null),r;function n(u,d){let f=`${d!==void 0?"add":"remove"}EventListener`,c=d!==void 0?d:r;u!==window&&u[f]("scroll",c,Je.passive),window[f]("scroll",c,Je.passive),r=d}function i(){o.value!==null&&(n(o.value),o.value=null)}let l=j(()=>e.noParentEvent,()=>{o.value!==null&&(i(),t())});return ye(l),{localScrollTarget:o,unconfigureScrollTarget:i,changeScrollEvent:n}}var mo={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},vo=["beforeShow","show","beforeHide","hide"];function go({showing:e,canShow:t,hideOnRouteChange:o,handleShow:r,handleHide:n,processOnMount:i}){let l=U(),{props:u,emit:d,proxy:f}=l,c;function g(S){e.value===!0?h(S):v(S)}function v(S){if(u.disable===!0||S!==void 0&&S.qAnchorHandled===!0||t!==void 0&&t(S)!==!0)return;let b=u["onUpdate:modelValue"]!==void 0;b===!0&&(d("update:modelValue",!0),c=S,Ae(()=>{c===S&&(c=void 0)})),(u.modelValue===null||b===!1)&&m(S)}function m(S){e.value!==!0&&(e.value=!0,d("beforeShow",S),r!==void 0?r(S):d("show",S))}function h(S){if(u.disable===!0)return;let b=u["onUpdate:modelValue"]!==void 0;b===!0&&(d("update:modelValue",!1),c=S,Ae(()=>{c===S&&(c=void 0)})),(u.modelValue===null||b===!1)&&C(S)}function C(S){e.value!==!1&&(e.value=!1,d("beforeHide",S),n!==void 0?n(S):d("hide",S))}function y(S){u.disable===!0&&S===!0?u["onUpdate:modelValue"]!==void 0&&d("update:modelValue",!1):S===!0!==e.value&&(S===!0?m:C)(c)}j(()=>u.modelValue,y),o!==void 0&&Xn(l)===!0&&j(()=>f.$route.fullPath,()=>{o.value===!0&&e.value===!0&&h()}),i===!0&&je(()=>{y(u.modelValue)});let q={show:v,hide:h,toggle:g};return Object.assign(f,q),q}var kn=[],Xr=[];function qs(e){Xr=Xr.filter(t=>t!==e)}function Ts(e){qs(e),Xr.push(e)}function Rl(e){qs(e),Xr.length===0&&kn.length!==0&&(kn[kn.length-1](),kn=[])}function ho(e){Xr.length===0?e():kn.push(e)}function Ms(e){kn=kn.filter(t=>t!==e)}var rr=[],Gr=[],tg=1,rn=document.body;function Ao(e,t){let o=document.createElement("div");if(o.id=t!==void 0?`q-portal--${t}--${tg++}`:e,Qn.globalNodes!==void 0){let r=Qn.globalNodes.class;r!==void 0&&(o.className=r)}return rn.appendChild(o),rr.push(o),Gr.push(t),o}function ir(e){let t=rr.indexOf(e);rr.splice(t,1),Gr.splice(t,1),e.remove()}function Rs(e){if(e===rn)return;if(rn=e,rn===document.body||Gr.reduce((o,r)=>r==="dialog"?o+1:o,0)<2){rr.forEach(o=>{o.contains(rn)===!1&&rn.appendChild(o)});return}let t=Gr.lastIndexOf("dialog");for(let o=0;o<rr.length;o++){let r=rr[o];(o===t||Gr[o]!=="dialog")&&r.contains(rn)===!1&&rn.appendChild(r)}}var an=[];function Ps(e){return an.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function Pl(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return Kr(e)}else if(e.__qPortal===!0){let o=Kr(e);return o!==void 0&&o.$options.name==="QPopupProxy"?(e.hide(t),o):e}e=Kr(e)}while(e!=null)}function As(e,t,o){for(;o!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(o--,e.$options.name==="QMenu"){e=Pl(e,t);continue}e.hide(t)}e=Kr(e)}}function og(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function ar(e,t,o,r){let n=T(!1),i=T(!1),l=null,u={},d=r==="dialog"&&og(e);function f(g){if(g===!0){Rl(u),i.value=!0;return}i.value=!1,n.value===!1&&(d===!1&&l===null&&(l=Ao(!1,r)),n.value=!0,an.push(e.proxy),Ts(u))}function c(g){if(i.value=!1,g!==!0)return;Rl(u),n.value=!1;let v=an.indexOf(e.proxy);v!==-1&&an.splice(v,1),l!==null&&(ir(l),l=null)}return Hn(()=>{c(!0)}),e.proxy.__qPortal=!0,st(e.proxy,"contentEl",()=>t.value),{showPortal:f,hidePortal:c,portalIsActive:n,portalIsAccessible:i,renderPortal:()=>d===!0?o():n.value===!0?[a(Eu,{to:l},o())]:void 0}}var $o={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function ln(e,t=()=>{},o=()=>{}){return{transitionProps:s(()=>{let r=`q-transition--${e.transitionShow||t()}`,n=`q-transition--${e.transitionHide||o()}`;return{appear:!0,enterFromClass:`${r}-enter-from`,enterActiveClass:`${r}-enter-active`,enterToClass:`${r}-enter-to`,leaveFromClass:`${n}-leave-from`,leaveActiveClass:`${n}-leave-active`,leaveToClass:`${n}-leave-to`}}),transitionStyle:s(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Eo(){let e,t=U();function o(){e=void 0}return Bt(o),ye(o),{removeTick:o,registerTick(r){e=r,Ae(()=>{e===r&&(Zt(t)===!1&&e(),e=void 0)})}}}function Jt(){let e=null,t=U();function o(){e!==null&&(clearTimeout(e),e=null)}return Bt(o),ye(o),{removeTimeout:o,registerTimeout(r,n){o(e),Zt(t)===!1&&(e=setTimeout(r,n))}}}var ng=[null,document,document.body,document.scrollingElement,document.documentElement];function Et(e,t){let o=xs(t);if(o===void 0){if(e==null)return window;o=e.closest(".scroll,.scroll-y,.overflow-auto")}return ng.includes(o)?window:o}function lr(e){return(e===window?document.body:e).scrollHeight}function rg(e){return(e===window?document.body:e).scrollWidth}function eo(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function un(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function El(e,t,o=0){let r=arguments[3]===void 0?performance.now():arguments[3],n=eo(e);if(o<=0){n!==t&&Al(e,t);return}requestAnimationFrame(i=>{let l=i-r,u=n+(t-n)/Math.max(l,o)*l;Al(e,u),u!==t&&El(e,t,o-l,i)})}function Bl(e,t,o=0){let r=arguments[3]===void 0?performance.now():arguments[3],n=un(e);if(o<=0){n!==t&&$l(e,t);return}requestAnimationFrame(i=>{let l=i-r,u=n+(t-n)/Math.max(l,o)*l;$l(e,u),u!==t&&Bl(e,t,o-l,i)})}function Al(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function $l(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function Bo(e,t,o){if(o){El(e,t,o);return}Al(e,t)}function Zr(e,t,o){if(o){Bl(e,t,o);return}$l(e,t)}var Di;function qn(){if(Di!==void 0)return Di;let e=document.createElement("p"),t=document.createElement("div");wn(e,{width:"100%",height:"200px"}),wn(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);let o=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return o===r&&(r=t.clientWidth),t.remove(),Di=o-r,Di}function Fl(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}var $s={getScrollTarget:Et,getScrollHeight:lr,getScrollWidth:rg,getVerticalScrollPosition:eo,getHorizontalScrollPosition:un,animVerticalScrollTo:El,animHorizontalScrollTo:Bl,setVerticalScrollPosition:Bo,setHorizontalScrollPosition:Zr,getScrollbarWidth:qn,hasScrollbar:Fl};var Tn=[],ur;function ig(e){ur=e.keyCode===27}function ag(){ur===!0&&(ur=!1)}function lg(e){ur===!0&&(ur=!1,Tt(e,27)===!0&&Tn[Tn.length-1](e))}function Es(e){window[e]("keydown",ig),window[e]("blur",ag),window[e]("keyup",lg),ur=!1}function zi(e){Me.is.desktop===!0&&(Tn.push(e),Tn.length===1&&Es("addEventListener"))}function sr(e){let t=Tn.indexOf(e);t!==-1&&(Tn.splice(t,1),Tn.length===0&&Es("removeEventListener"))}var Mn=[];function Bs(e){Mn[Mn.length-1](e)}function cr(e){Me.is.desktop===!0&&(Mn.push(e),Mn.length===1&&document.body.addEventListener("focusin",Bs))}function Rn(e){let t=Mn.indexOf(e);t!==-1&&(Mn.splice(t,1),Mn.length===0&&document.body.removeEventListener("focusin",Bs))}var dr=null,{notPassiveCapture:Oi}=Je,Pn=[];function Ii(e){dr!==null&&(clearTimeout(dr),dr=null);let t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let o=an.length-1;for(;o>=0;){let r=an[o].$;if(r.type.name==="QTooltip"){o--;continue}if(r.type.name!=="QDialog")break;if(r.props.seamless!==!0)return;o--}for(let r=Pn.length-1;r>=0;r--){let n=Pn[r];if((n.anchorEl.value===null||n.anchorEl.value.contains(t)===!1)&&(t===document.body||n.innerRef.value!==null&&n.innerRef.value.contains(t)===!1))e.qClickOutside=!0,n.onClickOutside(e);else return}}function Ni(e){Pn.push(e),Pn.length===1&&(document.addEventListener("mousedown",Ii,Oi),document.addEventListener("touchstart",Ii,Oi))}function fr(e){let t=Pn.findIndex(o=>o===e);t!==-1&&(Pn.splice(t,1),Pn.length===0&&(dr!==null&&(clearTimeout(dr),dr=null),document.removeEventListener("mousedown",Ii,Oi),document.removeEventListener("touchstart",Ii,Oi)))}var Fs,Ls;function mr(e){let t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Hi(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}var Vl={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Vl[`${e}#ltr`]=e,Vl[`${e}#rtl`]=e});function vr(e,t){let o=e.split(" ");return{vertical:o[0],horizontal:Vl[`${o[1]}#${t===!0?"rtl":"ltr"}`]}}function ug(e,t){let{top:o,left:r,right:n,bottom:i,width:l,height:u}=e.getBoundingClientRect();return t!==void 0&&(o-=t[1],r-=t[0],i+=t[1],n+=t[0],l+=t[0],u+=t[1]),{top:o,bottom:i,height:u,left:r,right:n,width:l,middle:r+(n-r)/2,center:o+(i-o)/2}}function sg(e,t,o){let{top:r,left:n}=e.getBoundingClientRect();return r+=t.top,n+=t.left,o!==void 0&&(r+=o[1],n+=o[0]),{top:r,bottom:r+1,height:1,left:n,right:n+1,width:1,middle:n,center:r}}function cg(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Vs(e,t,o,r){return{top:e[o.vertical]-t[r.vertical],left:e[o.horizontal]-t[r.horizontal]}}function Jr(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Jr(e,t+1)},10);return}let{targetEl:o,offset:r,anchorEl:n,anchorOrigin:i,selfOrigin:l,absoluteOffset:u,fit:d,cover:f,maxHeight:c,maxWidth:g}=e;if(Me.is.ios===!0&&window.visualViewport!==void 0){let $=document.body.style,{offsetLeft:F,offsetTop:D}=window.visualViewport;F!==Fs&&($.setProperty("--q-pe-left",F+"px"),Fs=F),D!==Ls&&($.setProperty("--q-pe-top",D+"px"),Ls=D)}let{scrollLeft:v,scrollTop:m}=o,h=u===void 0?ug(n,f===!0?[0,0]:r):sg(n,u,r);Object.assign(o.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:g||"100vw",maxHeight:c||"100vh",visibility:"visible"});let{offsetWidth:C,offsetHeight:y}=o,{elWidth:q,elHeight:S}=d===!0||f===!0?{elWidth:Math.max(h.width,C),elHeight:f===!0?Math.max(h.height,y):y}:{elWidth:C,elHeight:y},b={maxWidth:g,maxHeight:c};(d===!0||f===!0)&&(b.minWidth=h.width+"px",f===!0&&(b.minHeight=h.height+"px")),Object.assign(o.style,b);let p=cg(q,S),k=Vs(h,p,i,l);if(u===void 0||r===void 0)Ll(k,h,p,i,l);else{let{top:$,left:F}=k;Ll(k,h,p,i,l);let D=!1;if(k.top!==$){D=!0;let L=2*r[1];h.center=h.top-=L,h.bottom-=L+2}if(k.left!==F){D=!0;let L=2*r[0];h.middle=h.left-=L,h.right-=L+2}D===!0&&(k=Vs(h,p,i,l),Ll(k,h,p,i,l))}b={top:k.top+"px",left:k.left+"px"},k.maxHeight!==void 0&&(b.maxHeight=k.maxHeight+"px",h.height>k.maxHeight&&(b.minHeight=b.maxHeight)),k.maxWidth!==void 0&&(b.maxWidth=k.maxWidth+"px",h.width>k.maxWidth&&(b.minWidth=b.maxWidth)),Object.assign(o.style,b),o.scrollTop!==m&&(o.scrollTop=m),o.scrollLeft!==v&&(o.scrollLeft=v)}function Ll(e,t,o,r,n){let i=o.bottom,l=o.right,u=qn(),d=window.innerHeight-u,f=document.body.clientWidth;if(e.top<0||e.top+i>d)if(n.vertical==="center")e.top=t[r.vertical]>d/2?Math.max(0,d-i):0,e.maxHeight=Math.min(i,d);else if(t[r.vertical]>d/2){let c=Math.min(d,r.vertical==="center"?t.center:r.vertical===n.vertical?t.bottom:t.top);e.maxHeight=Math.min(i,c),e.top=Math.max(0,c-i)}else e.top=Math.max(0,r.vertical==="center"?t.center:r.vertical===n.vertical?t.top:t.bottom),e.maxHeight=Math.min(i,d-e.top);if(e.left<0||e.left+l>f)if(e.maxWidth=Math.min(l,f),n.horizontal==="middle")e.left=t[r.horizontal]>f/2?Math.max(0,f-l):0;else if(t[r.horizontal]>f/2){let c=Math.min(f,r.horizontal==="middle"?t.middle:r.horizontal===n.horizontal?t.right:t.left);e.maxWidth=Math.min(l,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,r.horizontal==="middle"?t.middle:r.horizontal===n.horizontal?t.left:t.right),e.maxWidth=Math.min(l,f-e.left)}var Fo=A({name:"QMenu",inheritAttrs:!1,props:{...or,...mo,...Ce,...$o,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:mr},self:{type:String,validator:mr},offset:{type:Array,validator:Hi},scrollTarget:{default:void 0},touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...vo,"click","escapeKey"],setup(e,{slots:t,emit:o,attrs:r}){let n=null,i,l,u,d=U(),{proxy:f}=d,{$q:c}=f,g=T(null),v=T(!1),m=s(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),h=we(e,c),{registerTick:C,removeTick:y}=Eo(),{registerTimeout:q}=Jt(),{transitionProps:S,transitionStyle:b}=ln(e),{localScrollTarget:p,changeScrollEvent:k,unconfigureScrollTarget:$}=Vi(e,W),{anchorEl:F,canShow:D}=nr({showing:v}),{hide:L}=go({showing:v,canShow:D,handleShow:de,handleHide:O,hideOnRouteChange:m,processOnMount:!0}),{showPortal:B,hidePortal:V,renderPortal:E}=ar(d,g,K,"menu"),_={anchorEl:F,innerRef:g,onClickOutside(x){if(e.persistent!==!0&&v.value===!0)return L(x),(x.type==="touchstart"||x.target.classList.contains("q-dialog__backdrop"))&&qe(x),!0}},R=s(()=>vr(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),N=s(()=>e.cover===!0?R.value:vr(e.self||"top start",c.lang.rtl)),X=s(()=>(e.square===!0?" q-menu--square":"")+(h.value===!0?" q-menu--dark q-dark":"")),M=s(()=>e.autoClose===!0?{onClick:H}:{}),Q=s(()=>v.value===!0&&e.persistent!==!0);j(Q,x=>{x===!0?(zi(Y),Ni(_)):(sr(Y),fr(_))});function J(){ho(()=>{let x=g.value;x&&x.contains(document.activeElement)!==!0&&(x=x.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||x.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||x.querySelector("[autofocus], [data-autofocus]")||x,x.focus({preventScroll:!0}))})}function de(x){if(n=e.noRefocus===!1?document.activeElement:null,cr(ee),B(),W(),i=void 0,x!==void 0&&(e.touchPosition||e.contextMenu)){let G=xt(x);if(G.left!==void 0){let{top:ae,left:fe}=F.value.getBoundingClientRect();i={left:G.left-fe,top:G.top-ae}}}l===void 0&&(l=j(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,ue)),e.noFocus!==!0&&document.activeElement.blur(),C(()=>{ue(),e.noFocus!==!0&&J()}),q(()=>{c.platform.is.ios===!0&&(u=e.autoClose,g.value.click()),ue(),B(!0),o("show",x)},e.transitionDuration)}function O(x){y(),V(),w(!0),n!==null&&(x===void 0||x.qClickOutside!==!0)&&(((x&&x.type.indexOf("key")===0?n.closest('[tabindex]:not([tabindex^="-"])'):void 0)||n).focus(),n=null),q(()=>{V(!0),o("hide",x)},e.transitionDuration)}function w(x){i=void 0,l!==void 0&&(l(),l=void 0),(x===!0||v.value===!0)&&(Rn(ee),$(),fr(_),sr(Y)),x!==!0&&(n=null)}function W(){(F.value!==null||e.scrollTarget!==void 0)&&(p.value=Et(F.value,e.scrollTarget),k(p.value,ue))}function H(x){u!==!0?(Pl(f,x),o("click",x)):u=!1}function ee(x){Q.value===!0&&e.noFocus!==!0&&Bi(g.value,x.target)!==!0&&J()}function Y(x){o("escapeKey"),L(x)}function ue(){Jr({targetEl:g.value,offset:e.offset,anchorEl:F.value,anchorOrigin:R.value,selfOrigin:N.value,absoluteOffset:i,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function K(){return a(lt,S.value,()=>v.value===!0?a("div",{role:"menu",...r,ref:g,tabindex:-1,class:["q-menu q-position-engine scroll"+X.value,r.class],style:[r.style,b.value],...M.value},ie(t.default)):null)}return ye(w),Object.assign(f,{focus:J,updatePosition:ue}),E}});var Dl,Qi=0,It=new Array(256);for(let e=0;e<256;e++)It[e]=(e+256).toString(16).substring(1);var dg=(()=>{let e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{let o=new Uint8Array(t);return e.getRandomValues(o),o}}return t=>{let o=[];for(let r=t;r>0;r--)o.push(Math.floor(Math.random()*256));return o}})(),Ds=4096;function Xo(){(Dl===void 0||Qi+16>Ds)&&(Qi=0,Dl=dg(Ds));let e=Array.prototype.slice.call(Dl,Qi,Qi+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,It[e[0]]+It[e[1]]+It[e[2]]+It[e[3]]+"-"+It[e[4]]+It[e[5]]+"-"+It[e[6]]+It[e[7]]+"-"+It[e[8]]+It[e[9]]+"-"+It[e[10]]+It[e[11]]+It[e[12]]+It[e[13]]+It[e[14]]+It[e[15]]}function zl(e,t){return e===void 0?t===!0?`f_${Xo()}`:void 0:e}function sn(e,t=!0){if(kt.value===!0){let o=T(e);return t===!0&&e===void 0&&je(()=>{o.value=`f_${Xo()}`}),o}return T(zl(e,t))}var fg=Object.keys(Yr),mg=e=>fg.reduce((t,o)=>{let r=e[o];return r!==void 0&&(t[o]=r),t},{}),ji=A({name:"QBtnDropdown",props:{...Yr,...$o,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:o}){let{proxy:r}=U(),n=T(e.modelValue),i=T(null),l=sn(),u=s(()=>{let p={"aria-expanded":n.value===!0?"true":"false","aria-haspopup":"true","aria-controls":l.value,"aria-label":e.toggleAriaLabel||r.$q.lang.label[n.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(p["aria-disabled"]="true"),p}),d=s(()=>"q-btn-dropdown__arrow"+(n.value===!0&&e.noIconAnimation===!1?" rotate-180":"")+(e.split===!1?" q-btn-dropdown__arrow-container":"")),f=s(()=>Li(e)),c=s(()=>mg(e));j(()=>e.modelValue,p=>{i.value!==null&&i.value[p?"show":"hide"]()}),j(()=>e.split,b);function g(p){n.value=!0,o("beforeShow",p)}function v(p){o("show",p),o("update:modelValue",!0)}function m(p){n.value=!1,o("beforeHide",p)}function h(p){o("hide",p),o("update:modelValue",!1)}function C(p){o("click",p)}function y(p){rt(p),b(),o("click",p)}function q(p){i.value!==null&&i.value.toggle(p)}function S(p){i.value!==null&&i.value.show(p)}function b(p){i.value!==null&&i.value.hide(p)}return Object.assign(r,{show:S,hide:b,toggle:q}),je(()=>{e.modelValue===!0&&S()}),()=>{let p=[a(Re,{class:d.value,name:e.dropdownIcon||r.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&p.push(a(Fo,{ref:i,id:l.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:g,onShow:v,onBeforeHide:m,onHide:h},t.default)),e.split===!1?a(Oe,{class:"q-btn-dropdown q-btn-dropdown--simple",...c.value,...u.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:C},{default:()=>ie(t.label,[]).concat(p),loading:t.loading}):a(tr,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...f.value,glossy:e.glossy,stretch:e.stretch},()=>[a(Oe,{class:"q-btn-dropdown--current",...c.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:y},{default:t.label,loading:t.loading}),a(Oe,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...u.value,...f.value,disable:e.disable===!0||e.disableDropdown===!0,rounded:e.rounded,color:e.color,textColor:e.textColor,dense:e.dense,size:e.size,padding:e.padding,ripple:e.ripple},()=>p)])}}});var wt={name:String};function Lo(e){return s(()=>({type:"hidden",name:e.name,value:e.modelValue}))}function Wt(e={}){return(t,o,r)=>{t[o](a("input",{class:"hidden"+(r||""),...e.value}))}}function gr(e){return s(()=>e.name||e.for)}var zs=A({name:"QBtnToggle",props:{...wt,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every(t=>("label"in t||"icon"in t||"slot"in t)&&"value"in t)},color:String,textColor:String,toggleColor:{type:String,default:"primary"},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","clear","click"],setup(e,{slots:t,emit:o}){let r=s(()=>e.options.find(v=>v.value===e.modelValue)!==void 0),n=s(()=>({type:"hidden",name:e.name,value:e.modelValue})),i=Wt(n),l=s(()=>Li(e)),u=s(()=>({rounded:e.rounded,dense:e.dense,...l.value})),d=s(()=>e.options.map((v,m)=>{let{attrs:h,value:C,slot:y,...q}=v;return{slot:y,props:{key:m,"aria-pressed":C===e.modelValue?"true":"false",...h,...q,...u.value,disable:e.disable===!0||q.disable===!0,color:C===e.modelValue?c(q,"toggleColor"):c(q,"color"),textColor:C===e.modelValue?c(q,"toggleTextColor"):c(q,"textColor"),noCaps:c(q,"noCaps")===!0,noWrap:c(q,"noWrap")===!0,size:c(q,"size"),padding:c(q,"padding"),ripple:c(q,"ripple"),stack:c(q,"stack")===!0,stretch:c(q,"stretch")===!0,onClick(S){f(C,v,S)}}}}));function f(v,m,h){e.readonly!==!0&&(e.modelValue===v?e.clearable===!0&&(o("update:modelValue",null,null),o("clear")):o("update:modelValue",v,m),o("click",h))}function c(v,m){return v[m]===void 0?e[m]:v[m]}function g(){let v=d.value.map(m=>a(Oe,m.props,m.slot!==void 0?t[m.slot]:void 0));return e.name!==void 0&&e.disable!==!0&&r.value===!0&&i(v,"push"),Xe(t.default,v)}return()=>a(tr,{class:"q-btn-toggle",...l.value,rounded:e.rounded,stretch:e.stretch,glossy:e.glossy,spread:e.spread},g)}});var hr=A({name:"QCard",props:{...Ce,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){let{proxy:{$q:o}}=U(),r=we(e,o),n=s(()=>"q-card"+(r.value===!0?" q-card--dark q-dark":"")+(e.bordered===!0?" q-card--bordered":"")+(e.square===!0?" q-card--square no-border-radius":"")+(e.flat===!0?" q-card--flat no-shadow":""));return()=>a(e.tag,{class:n.value},ie(t.default))}});var bo=A({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){let o=s(()=>`q-card__section q-card__section--${e.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>a(e.tag,{class:o.value},ie(t.default))}});var Ui=A({name:"QCardActions",props:{...Kn,vertical:Boolean},setup(e,{slots:t}){let o=Wn(e),r=s(()=>`q-card__actions ${o.value} q-card__actions--${e.vertical===!0?"vert column":"horiz row"}`);return()=>a("div",{class:r.value},ie(t.default))}});var Ol={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},vg=Object.keys(Ol);Ol.all=!0;function pr(e){let t={};for(let o of vg)e[o]===!0&&(t[o]=!0);return Object.keys(t).length===0?Ol:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}var gg=["INPUT","TEXTAREA"];function br(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&gg.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function hg(e){let t=[.06,6,50];return typeof e=="string"&&e.length&&e.split(":").forEach((o,r)=>{let n=parseFloat(o);n&&(t[r]=n)}),t}var Ki=Pt({name:"touch-swipe",beforeMount(e,{value:t,arg:o,modifiers:r}){if(r.mouse!==!0&&Me.has.touch!==!0)return;let n=r.mouseCapture===!0?"Capture":"",i={handler:t,sensitivity:hg(o),direction:pr(r),noop:Ye,mouseStart(l){br(l,i)&&Uo(l)&&(dt(i,"temp",[[document,"mousemove","move",`notPassive${n}`],[document,"mouseup","end","notPassiveCapture"]]),i.start(l,!0))},touchStart(l){if(br(l,i)){let u=l.target;dt(i,"temp",[[u,"touchmove","move","notPassiveCapture"],[u,"touchcancel","end","notPassiveCapture"],[u,"touchend","end","notPassiveCapture"]]),i.start(l)}},start(l,u){Me.is.firefox===!0&&Ko(e,!0);let d=xt(l);i.event={x:d.left,y:d.top,time:Date.now(),mouse:u===!0,dir:!1}},move(l){if(i.event===void 0)return;if(i.event.dir!==!1){qe(l);return}let u=Date.now()-i.event.time;if(u===0)return;let d=xt(l),f=d.left-i.event.x,c=Math.abs(f),g=d.top-i.event.y,v=Math.abs(g);if(i.event.mouse!==!0){if(c<i.sensitivity[1]&&v<i.sensitivity[1]){i.end(l);return}}else if(window.getSelection().toString()!==""){i.end(l);return}else if(c<i.sensitivity[2]&&v<i.sensitivity[2])return;let m=c/u,h=v/u;i.direction.vertical===!0&&c<v&&c<100&&h>i.sensitivity[0]&&(i.event.dir=g<0?"up":"down"),i.direction.horizontal===!0&&c>v&&v<100&&m>i.sensitivity[0]&&(i.event.dir=f<0?"left":"right"),i.direction.up===!0&&c<v&&g<0&&c<100&&h>i.sensitivity[0]&&(i.event.dir="up"),i.direction.down===!0&&c<v&&g>0&&c<100&&h>i.sensitivity[0]&&(i.event.dir="down"),i.direction.left===!0&&c>v&&f<0&&v<100&&m>i.sensitivity[0]&&(i.event.dir="left"),i.direction.right===!0&&c>v&&f>0&&v<100&&m>i.sensitivity[0]&&(i.event.dir="right"),i.event.dir!==!1?(qe(l),i.event.mouse===!0&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Ot(),i.styleCleanup=C=>{i.styleCleanup=void 0,document.body.classList.remove("non-selectable");let y=()=>{document.body.classList.remove("no-pointer-events--children")};C===!0?setTimeout(y,50):y()}),i.handler({evt:l,touch:i.event.mouse!==!0,mouse:i.event.mouse,direction:i.event.dir,duration:u,distance:{x:c,y:v}})):i.end(l)},end(l){i.event!==void 0&&(qt(i,"temp"),Me.is.firefox===!0&&Ko(e,!1),i.styleCleanup!==void 0&&i.styleCleanup(!0),l!==void 0&&i.event.dir!==!1&&qe(l),i.event=void 0)}};if(e.__qtouchswipe=i,r.mouse===!0){let l=r.mouseCapture===!0||r.mousecapture===!0?"Capture":"";dt(i,"main",[[e,"mousedown","mouseStart",`passive${l}`]])}Me.has.touch===!0&&dt(i,"main",[[e,"touchstart","touchStart",`passive${r.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){let o=e.__qtouchswipe;o!==void 0&&(t.oldValue!==t.value&&(typeof t.value!="function"&&o.end(),o.handler=t.value),o.direction=pr(t.modifiers))},beforeUnmount(e){let t=e.__qtouchswipe;t!==void 0&&(qt(t,"main"),qt(t,"temp"),Me.is.firefox===!0&&Ko(e,!1),t.styleCleanup!==void 0&&t.styleCleanup(),delete e.__qtouchswipe)}});function Vo(){let e=new Map;return{getCache:function(t,o){return e[t]===void 0?e[t]=o:e[t]},getCacheWithFn:function(t,o){return e[t]===void 0?e[t]=o():e[t]}}}var yr={name:{required:!0},disable:Boolean},Os={setup(e,{slots:t}){return()=>a("div",{class:"q-panel scroll",role:"tabpanel"},ie(t.default))}},Sr={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},xr=["update:modelValue","beforeTransition","transition"];function _r(){let{props:e,emit:t,proxy:o}=U(),{getCacheWithFn:r}=Vo(),n,i,l=T(null),u=T(null);function d(_){let R=e.vertical===!0?"up":"left";F((o.$q.lang.rtl===!0?-1:1)*(_.direction===R?1:-1))}let f=s(()=>[[Ki,d,void 0,{horizontal:e.vertical!==!0,vertical:e.vertical,mouse:!0}]]),c=s(()=>e.transitionPrev||`slide-${e.vertical===!0?"down":"right"}`),g=s(()=>e.transitionNext||`slide-${e.vertical===!0?"up":"left"}`),v=s(()=>`--q-transition-duration: ${e.transitionDuration}ms`),m=s(()=>typeof e.modelValue=="string"||typeof e.modelValue=="number"?e.modelValue:String(e.modelValue)),h=s(()=>({include:e.keepAliveInclude,exclude:e.keepAliveExclude,max:e.keepAliveMax})),C=s(()=>e.keepAliveInclude!==void 0||e.keepAliveExclude!==void 0);j(()=>e.modelValue,(_,R)=>{let N=b(_)===!0?p(_):-1;i!==!0&&$(N===-1?0:N<p(R)?-1:1),l.value!==N&&(l.value=N,t("beforeTransition",_,R),Ae(()=>{t("transition",_,R)}))});function y(){F(1)}function q(){F(-1)}function S(_){t("update:modelValue",_)}function b(_){return _!=null&&_!==""}function p(_){return n.findIndex(R=>R.props.name===_&&R.props.disable!==""&&R.props.disable!==!0)}function k(){return n.filter(_=>_.props.disable!==""&&_.props.disable!==!0)}function $(_){let R=_!==0&&e.animated===!0&&l.value!==-1?"q-transition--"+(_===-1?c.value:g.value):null;u.value!==R&&(u.value=R)}function F(_,R=l.value){let N=R+_;for(;N!==-1&&N<n.length;){let X=n[N];if(X!==void 0&&X.props.disable!==""&&X.props.disable!==!0){$(_),i=!0,t("update:modelValue",X.props.name),setTimeout(()=>{i=!1});return}N+=_}e.infinite===!0&&n.length!==0&&R!==-1&&R!==n.length&&F(_,_===-1?n.length:-1)}function D(){let _=p(e.modelValue);return l.value!==_&&(l.value=_),!0}function L(){let _=b(e.modelValue)===!0&&D()&&n[l.value];return e.keepAlive===!0?[a(pi,h.value,[a(C.value===!0?r(m.value,()=>({...Os,name:m.value})):Os,{key:m.value,style:v.value},()=>_)])]:[a("div",{class:"q-panel scroll",style:v.value,key:m.value,role:"tabpanel"},[_])]}function B(){if(n.length!==0)return e.animated===!0?[a(lt,{name:u.value},L)]:L()}function V(_){return n=Yn(ie(_.default,[])).filter(R=>R.props!==null&&R.props.slot===void 0&&b(R.props.name)===!0),n.length}function E(){return n}return Object.assign(o,{next:y,previous:q,goTo:S}),{panelIndex:l,panelDirectives:f,updatePanelsList:V,updatePanelIndex:D,getPanelContent:B,getEnabledPanels:k,getPanels:E,isValidPanelName:b,keepAliveProps:h,needsUniqueKeepAliveWrapper:C,goToPanelByOffset:F,goToPanel:S,nextPanel:y,previousPanel:q}}var ei=0,Cr={fullscreen:Boolean,noRouteFullscreenExit:Boolean},wr=["update:fullscreen","fullscreen"];function kr(){let e=U(),{props:t,emit:o,proxy:r}=e,n,i,l,u=T(!1);Xn(e)===!0&&j(()=>r.$route.fullPath,()=>{t.noRouteFullscreenExit!==!0&&c()}),j(()=>t.fullscreen,g=>{u.value!==g&&d()}),j(u,g=>{o("update:fullscreen",g),o("fullscreen",g)});function d(){u.value===!0?c():f()}function f(){u.value!==!0&&(u.value=!0,l=r.$el.parentNode,l.replaceChild(i,r.$el),document.body.appendChild(r.$el),ei++,ei===1&&document.body.classList.add("q-body--fullscreen-mixin"),n={handler:c},tn.add(n))}function c(){u.value===!0&&(n!==void 0&&(tn.remove(n),n=void 0),l.replaceChild(r.$el,i),u.value=!1,ei=Math.max(0,ei-1),ei===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),r.$el.scrollIntoView!==void 0&&setTimeout(()=>{r.$el.scrollIntoView()})))}return Nn(()=>{i=document.createElement("span")}),je(()=>{t.fullscreen===!0&&f()}),ye(c),Object.assign(r,{toggleFullscreen:d,setFullscreen:f,exitFullscreen:c}),{inFullscreen:u,toggleFullscreen:d}}var pg=["top","right","bottom","left"],bg=["regular","flat","outline","push","unelevated"],Is=A({name:"QCarousel",props:{...Ce,...Sr,...Cr,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:e=>bg.includes(e),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:e=>pg.includes(e)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...wr,...xr],setup(e,{slots:t}){let{proxy:{$q:o}}=U(),r=we(e,o),n=null,i,{updatePanelsList:l,getPanelContent:u,panelDirectives:d,goToPanel:f,previousPanel:c,nextPanel:g,getEnabledPanels:v,panelIndex:m}=_r(),{inFullscreen:h}=kr(),C=s(()=>h.value!==!0&&e.height!==void 0?{height:e.height}:{}),y=s(()=>e.vertical===!0?"vertical":"horizontal"),q=s(()=>`q-carousel q-panel-parent q-carousel--with${e.padding===!0?"":"out"}-padding`+(h.value===!0?" fullscreen":"")+(r.value===!0?" q-carousel--dark q-dark":"")+(e.arrows===!0?` q-carousel--arrows-${y.value}`:"")+(e.navigation===!0?` q-carousel--navigation-${k.value}`:"")),S=s(()=>{let B=[e.prevIcon||o.iconSet.carousel[e.vertical===!0?"up":"left"],e.nextIcon||o.iconSet.carousel[e.vertical===!0?"down":"right"]];return e.vertical===!1&&o.lang.rtl===!0?B.reverse():B}),b=s(()=>e.navigationIcon||o.iconSet.carousel.navigationIcon),p=s(()=>e.navigationActiveIcon||b.value),k=s(()=>e.navigationPosition||(e.vertical===!0?"right":"bottom")),$=s(()=>({color:e.controlColor,textColor:e.controlTextColor,round:!0,[e.controlType]:!0,dense:!0}));j(()=>e.modelValue,()=>{e.autoplay&&F()}),j(()=>e.autoplay,B=>{B?F():n!==null&&(clearTimeout(n),n=null)});function F(){let B=co(e.autoplay)===!0?Math.abs(e.autoplay):5e3;n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,B>=0?g():c()},B)}je(()=>{e.autoplay&&F()}),ye(()=>{n!==null&&clearTimeout(n)});function D(B,V){return a("div",{class:`q-carousel__control q-carousel__navigation no-wrap absolute flex q-carousel__navigation--${B} q-carousel__navigation--${k.value}`+(e.controlColor!==void 0?` text-${e.controlColor}`:"")},[a("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},v().map(V))])}function L(){let B=[];if(e.navigation===!0){let V=t["navigation-icon"]!==void 0?t["navigation-icon"]:_=>a(Oe,{key:"nav"+_.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${_.active===!0?"":"in"}active`,..._.btnProps,onClick:_.onClick}),E=i-1;B.push(D("buttons",(_,R)=>{let N=_.props.name,X=m.value===R;return V({index:R,maxIndex:E,name:N,active:X,btnProps:{icon:X===!0?p.value:b.value,size:"sm",...$.value},onClick:()=>{f(N)}})}))}else if(e.thumbnails===!0){let V=e.controlColor!==void 0?` text-${e.controlColor}`:"";B.push(D("thumbnails",E=>{let _=E.props;return a("img",{key:"tmb#"+_.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${_.name===e.modelValue?"":"in"}active`+V,src:_.imgSrc||_["img-src"],onClick:()=>{f(_.name)}})}))}return e.arrows===!0&&m.value>=0&&((e.infinite===!0||m.value>0)&&B.push(a("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${y.value} absolute flex flex-center`},[a(Oe,{icon:S.value[0],...$.value,onClick:c})])),(e.infinite===!0||m.value<i-1)&&B.push(a("div",{key:"next",class:`q-carousel__control q-carousel__arrow q-carousel__next-arrow q-carousel__next-arrow--${y.value} absolute flex flex-center`},[a(Oe,{icon:S.value[1],...$.value,onClick:g})]))),Xe(t.control,B)}return()=>(i=l(t),a("div",{class:q.value,style:C.value},[Mt("div",{class:"q-carousel__slides-container"},u(),"sl-cont",e.swipeable,()=>d.value)].concat(L())))}});var Ns=A({name:"QCarouselSlide",props:{...yr,imgSrc:String},setup(e,{slots:t}){let o=s(()=>e.imgSrc?{backgroundImage:`url("${e.imgSrc}")`}:{});return()=>a("div",{class:"q-carousel__slide",style:o.value},ie(t.default))}});var Hs=A({name:"QCarouselControl",props:{position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,default:()=>[18,18],validator:e=>e.length===2}},setup(e,{slots:t}){let o=s(()=>`q-carousel__control absolute absolute-${e.position}`),r=s(()=>({margin:`${e.offset[1]}px ${e.offset[0]}px`}));return()=>a("div",{class:o.value,style:r.value},ie(t.default))}});var Qs=A({name:"QChatMessage",props:{sent:Boolean,label:String,bgColor:String,textColor:String,name:String,avatar:String,text:Array,stamp:String,size:String,labelHtml:Boolean,nameHtml:Boolean,textHtml:Boolean,stampHtml:Boolean},setup(e,{slots:t}){let o=s(()=>e.sent===!0?"sent":"received"),r=s(()=>`q-message-text-content q-message-text-content--${o.value}`+(e.textColor!==void 0?` text-${e.textColor}`:"")),n=s(()=>`q-message-text q-message-text--${o.value}`+(e.bgColor!==void 0?` text-${e.bgColor}`:"")),i=s(()=>"q-message-container row items-end no-wrap"+(e.sent===!0?" reverse":"")),l=s(()=>e.size!==void 0?`col-${e.size}`:""),u=s(()=>({msg:e.textHtml===!0?"innerHTML":"textContent",stamp:e.stampHtml===!0?"innerHTML":"textContent",name:e.nameHtml===!0?"innerHTML":"textContent",label:e.labelHtml===!0?"innerHTML":"textContent"}));function d(c){return t.stamp!==void 0?[c,a("div",{class:"q-message-stamp"},t.stamp())]:e.stamp?[c,a("div",{class:"q-message-stamp",[u.value.stamp]:e.stamp})]:[c]}function f(c,g){let v=g===!0?c.length>1?m=>m:m=>a("div",[m]):m=>a("div",{[u.value.msg]:m});return c.map((m,h)=>a("div",{key:h,class:n.value},[a("div",{class:r.value},d(v(m)))]))}return()=>{let c=[];t.avatar!==void 0?c.push(t.avatar()):e.avatar!==void 0&&c.push(a("img",{class:`q-message-avatar q-message-avatar--${o.value}`,src:e.avatar,"aria-hidden":"true"}));let g=[];t.name!==void 0?g.push(a("div",{class:`q-message-name q-message-name--${o.value}`},t.name())):e.name!==void 0&&g.push(a("div",{class:`q-message-name q-message-name--${o.value}`,[u.value.name]:e.name})),t.default!==void 0?g.push(f(Yn(t.default()),!0)):e.text!==void 0&&g.push(f(e.text)),c.push(a("div",{class:l.value},g));let v=[];return t.label!==void 0?v.push(a("div",{class:"q-message-label"},t.label())):e.label!==void 0&&v.push(a("div",{class:"q-message-label",[u.value.label]:e.label})),v.push(a("div",{class:i.value},c)),a("div",{class:`q-message q-message-${o.value}`},v)}}});function Wi(e,t){let o=T(null),r=s(()=>e.disable===!0?null:a("span",{ref:o,class:"no-outline",tabindex:-1}));function n(i){let l=t.value;i!==void 0&&i.type.indexOf("key")===0?l!==null&&document.activeElement!==l&&l.contains(document.activeElement)===!0&&l.focus():o.value!==null&&(i===void 0||l!==null&&l.contains(i.target)===!0)&&o.value.focus()}return{refocusTargetEl:r,refocusTarget:n}}var Yi={xs:30,sm:35,md:40,lg:50,xl:60};var Xi={...Ce,...Lt,...wt,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},Gi=["update:modelValue"];function Zi(e,t){let{props:o,slots:r,emit:n,proxy:i}=U(),{$q:l}=i,u=we(o,l),d=T(null),{refocusTargetEl:f,refocusTarget:c}=Wi(o,d),g=Vt(o,Yi),v=s(()=>o.val!==void 0&&Array.isArray(o.modelValue)),m=s(()=>{let E=so(o.val);return v.value===!0?o.modelValue.findIndex(_=>so(_)===E):-1}),h=s(()=>v.value===!0?m.value!==-1:so(o.modelValue)===so(o.trueValue)),C=s(()=>v.value===!0?m.value===-1:so(o.modelValue)===so(o.falseValue)),y=s(()=>h.value===!1&&C.value===!1),q=s(()=>o.disable===!0?-1:o.tabindex||0),S=s(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(o.disable===!0?" disabled":"")+(u.value===!0?` q-${e}--dark`:"")+(o.dense===!0?` q-${e}--dense`:"")+(o.leftLabel===!0?" reverse":"")),b=s(()=>{let E=h.value===!0?"truthy":C.value===!0?"falsy":"indet",_=o.color!==void 0&&(o.keepColor===!0||(e==="toggle"?h.value===!0:C.value!==!0))?` text-${o.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${E}${_}`}),p=s(()=>{let E={type:"checkbox"};return o.name!==void 0&&Object.assign(E,{".checked":h.value,"^checked":h.value===!0?"checked":void 0,name:o.name,value:v.value===!0?o.val:o.trueValue}),E}),k=Wt(p),$=s(()=>{let E={tabindex:q.value,role:e==="toggle"?"switch":"checkbox","aria-label":o.label,"aria-checked":y.value===!0?"mixed":h.value===!0?"true":"false"};return o.disable===!0&&(E["aria-disabled"]="true"),E});function F(E){E!==void 0&&(qe(E),c(E)),o.disable!==!0&&n("update:modelValue",D(),E)}function D(){if(v.value===!0){if(h.value===!0){let E=o.modelValue.slice();return E.splice(m.value,1),E}return o.modelValue.concat([o.val])}if(h.value===!0){if(o.toggleOrder!=="ft"||o.toggleIndeterminate===!1)return o.falseValue}else if(C.value===!0){if(o.toggleOrder==="ft"||o.toggleIndeterminate===!1)return o.trueValue}else return o.toggleOrder!=="ft"?o.trueValue:o.falseValue;return o.indeterminateValue}function L(E){(E.keyCode===13||E.keyCode===32)&&qe(E)}function B(E){(E.keyCode===13||E.keyCode===32)&&F(E)}let V=t(h,y);return Object.assign(i,{toggle:F}),()=>{let E=V();o.disable!==!0&&k(E,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);let _=[a("div",{class:b.value,style:g.value,"aria-hidden":"true"},E)];f.value!==null&&_.push(f.value);let R=o.label!==void 0?Xe(r.default,[o.label]):ie(r.default);return R!==void 0&&_.push(a("div",{class:`q-${e}__label q-anchor--skip`},R)),a("div",{ref:d,class:S.value,...$.value,onClick:F,onKeydown:L,onKeyup:B},_)}}var yg=a("div",{key:"svg",class:"q-checkbox__bg absolute"},[a("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[a("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),a("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),Do=A({name:"QCheckbox",props:Xi,emits:Gi,setup(e){function t(o,r){let n=s(()=>(o.value===!0?e.checkedIcon:r.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>n.value!==null?[a("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[a(Re,{class:"q-checkbox__icon",name:n.value})])]:[yg]}return Zi("checkbox",t)}});var Sg={xs:8,sm:10,md:14,lg:20,xl:24},qr=A({name:"QChip",props:{...Ce,...Lt,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:o}){let{proxy:{$q:r}}=U(),n=we(e,r),i=Vt(e,Sg),l=s(()=>e.selected===!0||e.icon!==void 0),u=s(()=>e.selected===!0?e.iconSelected||r.iconSet.chip.selected:e.icon),d=s(()=>e.iconRemove||r.iconSet.chip.remove),f=s(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),c=s(()=>{let y=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(y?` text-${y} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(f.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(n.value===!0?" q-chip--dark q-dark":"")}),g=s(()=>{let y=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},q={...y,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||r.lang.label.remove};return{chip:y,remove:q}});function v(y){y.keyCode===13&&m(y)}function m(y){e.disable||(o("update:selected",!e.selected),o("click",y))}function h(y){(y.keyCode===void 0||y.keyCode===13)&&(qe(y),e.disable===!1&&(o("update:modelValue",!1),o("remove")))}function C(){let y=[];f.value===!0&&y.push(a("div",{class:"q-focus-helper"})),l.value===!0&&y.push(a(Re,{class:"q-chip__icon q-chip__icon--left",name:u.value}));let q=e.label!==void 0?[a("div",{class:"ellipsis"},[e.label])]:void 0;return y.push(a("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},Un(t.default,q))),e.iconRight&&y.push(a(Re,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&y.push(a(Re,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:d.value,...g.value.remove,onClick:h,onKeyup:h})),y}return()=>{if(e.modelValue===!1)return;let y={class:c.value,style:i.value};return f.value===!0&&Object.assign(y,g.value.chip,{onClick:m,onKeyup:v}),Mt("div",y,C(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[Po,e.ripple]])}}});var ti={...Lt,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,rounded:Boolean,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean};var Il=50,js=2*Il,Us=js*Math.PI,xg=Math.round(Us*1e3)/1e3,Tr=A({name:"QCircularProgress",props:{...ti,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:t}){let{proxy:{$q:o}}=U(),r=Vt(e),n=s(()=>{let m=(o.lang.rtl===!0?-1:1)*e.angle;return{transform:e.reverse!==(o.lang.rtl===!0)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-m}deg)`:`rotate3d(0, 0, 1, ${m-90}deg)`}}),i=s(()=>e.instantFeedback!==!0&&e.indeterminate!==!0?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:""),l=s(()=>js/(1-e.thickness/2)),u=s(()=>`${l.value/2} ${l.value/2} ${l.value} ${l.value}`),d=s(()=>tt(e.value,e.min,e.max)),f=s(()=>e.max-e.min),c=s(()=>e.thickness/2*l.value),g=s(()=>{let m=(e.max-d.value)/f.value,h=e.rounded===!0&&d.value<e.max&&m<.25?c.value/2*(1-m/.25):0;return Us*m+h});function v({thickness:m,offset:h,color:C,cls:y,rounded:q}){return a("circle",{class:"q-circular-progress__"+y+(C!==void 0?` text-${C}`:""),style:i.value,fill:"transparent",stroke:"currentColor","stroke-width":m,"stroke-dasharray":xg,"stroke-dashoffset":h,"stroke-linecap":q,cx:l.value,cy:l.value,r:Il})}return()=>{let m=[];e.centerColor!==void 0&&e.centerColor!=="transparent"&&m.push(a("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:Il-c.value/2,cx:l.value,cy:l.value})),e.trackColor!==void 0&&e.trackColor!=="transparent"&&m.push(v({cls:"track",thickness:c.value,offset:0,color:e.trackColor})),m.push(v({cls:"circle",thickness:c.value,offset:g.value,color:e.color,rounded:e.rounded===!0?"round":void 0}));let h=[a("svg",{class:"q-circular-progress__svg",style:n.value,viewBox:u.value,"aria-hidden":"true"},m)];return e.showValue===!0&&h.push(a("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},t.default!==void 0?t.default():[a("div",d.value)])),a("div",{class:`q-circular-progress q-circular-progress--${e.indeterminate===!0?"in":""}determinate`,style:r.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.indeterminate===!0?void 0:d.value},Un(t.internal,h))}}});function Nl(e,t,o){let r=xt(e),n,i=r.left-t.event.x,l=r.top-t.event.y,u=Math.abs(i),d=Math.abs(l),f=t.direction;f.horizontal===!0&&f.vertical!==!0?n=i<0?"left":"right":f.horizontal!==!0&&f.vertical===!0?n=l<0?"up":"down":f.up===!0&&l<0?(n="up",u>d&&(f.left===!0&&i<0?n="left":f.right===!0&&i>0&&(n="right"))):f.down===!0&&l>0?(n="down",u>d&&(f.left===!0&&i<0?n="left":f.right===!0&&i>0&&(n="right"))):f.left===!0&&i<0?(n="left",u<d&&(f.up===!0&&l<0?n="up":f.down===!0&&l>0&&(n="down"))):f.right===!0&&i>0&&(n="right",u<d&&(f.up===!0&&l<0?n="up":f.down===!0&&l>0&&(n="down")));let c=!1;if(n===void 0&&o===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};n=t.event.lastDir,c=!0,n==="left"||n==="right"?(r.left-=i,u=0,i=0):(r.top-=l,d=0,l=0)}return{synthetic:c,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:r,direction:n,isFirst:t.event.isFirst,isFinal:o===!0,duration:Date.now()-t.event.time,distance:{x:u,y:d},offset:{x:i,y:l},delta:{x:r.left-t.event.lastX,y:r.top-t.event.lastY}}}}var _g=0,Rt=Pt({name:"touch-pan",beforeMount(e,{value:t,modifiers:o}){if(o.mouse!==!0&&Me.has.touch!==!0)return;function r(i,l){o.mouse===!0&&l===!0?qe(i):(o.stop===!0&&rt(i),o.prevent===!0&&ft(i))}let n={uid:"qvtp_"+_g++,handler:t,modifiers:o,direction:pr(o),noop:Ye,mouseStart(i){br(i,n)&&Uo(i)&&(dt(n,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),n.start(i,!0))},touchStart(i){if(br(i,n)){let l=i.target;dt(n,"temp",[[l,"touchmove","move","notPassiveCapture"],[l,"touchcancel","end","passiveCapture"],[l,"touchend","end","passiveCapture"]]),n.start(i)}},start(i,l){if(Me.is.firefox===!0&&Ko(e,!0),n.lastEvt=i,l===!0||o.stop===!0){if(n.direction.all!==!0&&(l!==!0||n.modifiers.mouseAllDir!==!0&&n.modifiers.mousealldir!==!0)){let f=i.type.indexOf("mouse")!==-1?new MouseEvent(i.type,i):new TouchEvent(i.type,i);i.defaultPrevented===!0&&ft(f),i.cancelBubble===!0&&rt(f),Object.assign(f,{qKeyEvent:i.qKeyEvent,qClickOutside:i.qClickOutside,qAnchorHandled:i.qAnchorHandled,qClonedBy:i.qClonedBy===void 0?[n.uid]:i.qClonedBy.concat(n.uid)}),n.initialEvent={target:i.target,event:f}}rt(i)}let{left:u,top:d}=xt(i);n.event={x:u,y:d,time:Date.now(),mouse:l===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:u,lastY:d}},move(i){if(n.event===void 0)return;let l=xt(i),u=l.left-n.event.x,d=l.top-n.event.y;if(u===0&&d===0)return;n.lastEvt=i;let f=n.event.mouse===!0,c=()=>{r(i,f);let m;o.preserveCursor!==!0&&o.preservecursor!==!0&&(m=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),f===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Ot(),n.styleCleanup=h=>{if(n.styleCleanup=void 0,m!==void 0&&(document.documentElement.style.cursor=m),document.body.classList.remove("non-selectable"),f===!0){let C=()=>{document.body.classList.remove("no-pointer-events--children")};h!==void 0?setTimeout(()=>{C(),h()},50):C()}else h!==void 0&&h()}};if(n.event.detected===!0){n.event.isFirst!==!0&&r(i,n.event.mouse);let{payload:m,synthetic:h}=Nl(i,n,!1);m!==void 0&&(n.handler(m)===!1?n.end(i):(n.styleCleanup===void 0&&n.event.isFirst===!0&&c(),n.event.lastX=m.position.left,n.event.lastY=m.position.top,n.event.lastDir=h===!0?void 0:m.direction,n.event.isFirst=!1));return}if(n.direction.all===!0||f===!0&&(n.modifiers.mouseAllDir===!0||n.modifiers.mousealldir===!0)){c(),n.event.detected=!0,n.move(i);return}let g=Math.abs(u),v=Math.abs(d);g!==v&&(n.direction.horizontal===!0&&g>v||n.direction.vertical===!0&&g<v||n.direction.up===!0&&g<v&&d<0||n.direction.down===!0&&g<v&&d>0||n.direction.left===!0&&g>v&&u<0||n.direction.right===!0&&g>v&&u>0?(n.event.detected=!0,n.move(i)):n.end(i,!0))},end(i,l){if(n.event!==void 0){if(qt(n,"temp"),Me.is.firefox===!0&&Ko(e,!1),l===!0)n.styleCleanup!==void 0&&n.styleCleanup(),n.event.detected!==!0&&n.initialEvent!==void 0&&n.initialEvent.target.dispatchEvent(n.initialEvent.event);else if(n.event.detected===!0){n.event.isFirst===!0&&n.handler(Nl(i===void 0?n.lastEvt:i,n).payload);let{payload:u}=Nl(i===void 0?n.lastEvt:i,n,!0),d=()=>{n.handler(u)};n.styleCleanup!==void 0?n.styleCleanup(d):d()}n.event=void 0,n.initialEvent=void 0,n.lastEvt=void 0}}};if(e.__qtouchpan=n,o.mouse===!0){let i=o.mouseCapture===!0||o.mousecapture===!0?"Capture":"";dt(n,"main",[[e,"mousedown","mouseStart",`passive${i}`]])}Me.has.touch===!0&&dt(n,"main",[[e,"touchstart","touchStart",`passive${o.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){let o=e.__qtouchpan;o!==void 0&&(t.oldValue!==t.value&&(typeof value!="function"&&o.end(),o.handler=t.value),o.direction=pr(t.modifiers))},beforeUnmount(e){let t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),qt(t,"main"),qt(t,"temp"),Me.is.firefox===!0&&Ko(e,!1),t.styleCleanup!==void 0&&t.styleCleanup(),delete e.__qtouchpan)}});var Ks="q-slider__marker-labels",Cg=e=>({value:e}),wg=({marker:e})=>a("div",{key:e.value,style:e.style,class:e.classes},e.label),oi=[34,37,40,33,39,38],Ji={...Ce,...wt,min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,hideSelection:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},ea=["pan","update:modelValue","change"];function ta({updateValue:e,updatePosition:t,getDragging:o,formAttrs:r}){let{props:n,emit:i,slots:l,proxy:{$q:u}}=U(),d=we(n,u),f=Wt(r),c=T(!1),g=T(!1),v=T(!1),m=T(!1),h=s(()=>n.vertical===!0?"--v":"--h"),C=s(()=>"-"+(n.switchLabelSide===!0?"switched":"standard")),y=s(()=>n.vertical===!0?n.reverse===!0:n.reverse!==(u.lang.rtl===!0)),q=s(()=>isNaN(n.innerMin)===!0||n.innerMin<n.min?n.min:n.innerMin),S=s(()=>isNaN(n.innerMax)===!0||n.innerMax>n.max?n.max:n.innerMax),b=s(()=>n.disable!==!0&&n.readonly!==!0&&q.value<S.value),p=s(()=>{if(n.step===0)return le=>le;let Z=(String(n.step).trim().split(".")[1]||"").length;return le=>parseFloat(le.toFixed(Z))}),k=s(()=>n.step===0?1:n.step),$=s(()=>b.value===!0?n.tabindex||0:-1),F=s(()=>n.max-n.min),D=s(()=>S.value-q.value),L=s(()=>ae(q.value)),B=s(()=>ae(S.value)),V=s(()=>n.vertical===!0?y.value===!0?"bottom":"top":y.value===!0?"right":"left"),E=s(()=>n.vertical===!0?"height":"width"),_=s(()=>n.vertical===!0?"width":"height"),R=s(()=>n.vertical===!0?"vertical":"horizontal"),N=s(()=>{let Z={role:"slider","aria-valuemin":q.value,"aria-valuemax":S.value,"aria-orientation":R.value,"data-step":n.step};return n.disable===!0?Z["aria-disabled"]="true":n.readonly===!0&&(Z["aria-readonly"]="true"),Z}),X=s(()=>`q-slider q-slider${h.value} q-slider--${c.value===!0?"":"in"}active inline no-wrap `+(n.vertical===!0?"row":"column")+(n.disable===!0?" disabled":" q-slider--enabled"+(b.value===!0?" q-slider--editable":""))+(v.value==="both"?" q-slider--focus":"")+(n.label||n.labelAlways===!0?" q-slider--label":"")+(n.labelAlways===!0?" q-slider--label-always":"")+(d.value===!0?" q-slider--dark":"")+(n.dense===!0?" q-slider--dense q-slider--dense"+h.value:""));function M(Z){let le="q-slider__"+Z;return`${le} ${le}${h.value} ${le}${h.value}${C.value}`}function Q(Z){let le="q-slider__"+Z;return`${le} ${le}${h.value}`}let J=s(()=>{let Z=n.selectionColor||n.color;return"q-slider__selection absolute"+(Z!==void 0?` text-${Z}`:"")}),de=s(()=>Q("markers")+" absolute overflow-hidden"),O=s(()=>Q("track-container")),w=s(()=>M("pin")),W=s(()=>M("label")),H=s(()=>M("text-container")),ee=s(()=>M("marker-labels-container")+(n.markerLabelsClass!==void 0?` ${n.markerLabelsClass}`:"")),Y=s(()=>"q-slider__track relative-position no-outline"+(n.trackColor!==void 0?` bg-${n.trackColor}`:"")),ue=s(()=>{let Z={[_.value]:n.trackSize};return n.trackImg!==void 0&&(Z.backgroundImage=`url(${n.trackImg}) !important`),Z}),K=s(()=>"q-slider__inner absolute"+(n.innerTrackColor!==void 0?` bg-${n.innerTrackColor}`:"")),x=s(()=>{let Z=B.value-L.value,le={[V.value]:`${100*L.value}%`,[E.value]:Z===0?"2px":`${100*Z}%`};return n.innerTrackImg!==void 0&&(le.backgroundImage=`url(${n.innerTrackImg}) !important`),le});function G(Z){let{min:le,max:Pe,step:He}=n,ke=le+Z*(Pe-le);if(He>0){let et=(ke-q.value)%He;ke+=(Math.abs(et)>=He/2?(et<0?-1:1)*He:0)-et}return ke=p.value(ke),tt(ke,q.value,S.value)}function ae(Z){return F.value===0?0:(Z-n.min)/F.value}function fe(Z,le){let Pe=xt(Z),He=n.vertical===!0?tt((Pe.top-le.top)/le.height,0,1):tt((Pe.left-le.left)/le.width,0,1);return tt(y.value===!0?1-He:He,L.value,B.value)}let Se=s(()=>co(n.markers)===!0?n.markers:k.value),me=s(()=>{let Z=[],le=Se.value,Pe=n.max,He=n.min;do Z.push(He),He+=le;while(He<Pe);return Z.push(Pe),Z}),ze=s(()=>{let Z=` ${Ks}${h.value}-`;return Ks+`${Z}${n.switchMarkerLabelsSide===!0?"switched":"standard"}${Z}${y.value===!0?"rtl":"ltr"}`}),Be=s(()=>n.markerLabels===!1?null:it(n.markerLabels).map((Z,le)=>({index:le,value:Z.value,label:Z.label||Z.value,classes:ze.value+(Z.classes!==void 0?" "+Z.classes:""),style:{...Ke(Z.value),...Z.style||{}}}))),xe=s(()=>({markerList:Be.value,markerMap:ce.value,classes:ze.value,getStyle:Ke})),Ie=s(()=>{let Z=D.value===0?"2px":100*Se.value/D.value;return{...x.value,backgroundSize:n.vertical===!0?`2px ${Z}%`:`${Z}% 2px`}});function it(Z){if(Z===!1)return null;if(Z===!0)return me.value.map(Cg);if(typeof Z=="function")return me.value.map(Pe=>{let He=Z(Pe);return ct(He)===!0?{...He,value:Pe}:{value:Pe,label:He}});let le=({value:Pe})=>Pe>=n.min&&Pe<=n.max;return Array.isArray(Z)===!0?Z.map(Pe=>ct(Pe)===!0?Pe:{value:Pe}).filter(le):Object.keys(Z).map(Pe=>{let He=Z[Pe],ke=Number(Pe);return ct(He)===!0?{...He,value:ke}:{value:ke,label:He}}).filter(le)}function Ke(Z){return{[V.value]:`${100*(Z-n.min)/F.value}%`}}let ce=s(()=>{if(n.markerLabels===!1)return null;let Z={};return Be.value.forEach(le=>{Z[le.value]=le}),Z});function ve(){if(l["marker-label-group"]!==void 0)return l["marker-label-group"](xe.value);let Z=l["marker-label"]||wg;return Be.value.map(le=>Z({marker:le,...xe.value}))}let te=s(()=>[[Rt,pe,void 0,{[R.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]);function pe(Z){Z.isFinal===!0?(m.value!==void 0&&(t(Z.evt),Z.touch===!0&&e(!0),m.value=void 0,i("pan","end")),c.value=!1,v.value=!1):Z.isFirst===!0?(m.value=o(Z.evt),t(Z.evt),e(),c.value=!0,i("pan","start")):(t(Z.evt),e())}function Fe(){v.value=!1}function Ve(Z){t(Z,o(Z)),e(),g.value=!0,c.value=!0,document.addEventListener("mouseup",Le,!0)}function Le(){g.value=!1,c.value=!1,e(!0),Fe(),document.removeEventListener("mouseup",Le,!0)}function at(Z){t(Z,o(Z)),e(!0)}function mt(Z){oi.includes(Z.keyCode)&&e(!0)}function vt(Z){if(n.vertical===!0)return null;let le=u.lang.rtl!==n.reverse?1-Z:Z;return{transform:`translateX(calc(${2*le-1} * ${n.thumbSize} / 2 + ${50-100*le}%))`}}function ne(Z){let le=s(()=>g.value===!1&&(v.value===Z.focusValue||v.value==="both")?" q-slider--focus":""),Pe=s(()=>`q-slider__thumb q-slider__thumb${h.value} q-slider__thumb${h.value}-${y.value===!0?"rtl":"ltr"} absolute non-selectable`+le.value+(Z.thumbColor.value!==void 0?` text-${Z.thumbColor.value}`:"")),He=s(()=>({width:n.thumbSize,height:n.thumbSize,[V.value]:`${100*Z.ratio.value}%`,zIndex:v.value===Z.focusValue?2:void 0})),ke=s(()=>Z.labelColor.value!==void 0?` text-${Z.labelColor.value}`:""),et=s(()=>vt(Z.ratio.value)),pt=s(()=>"q-slider__text"+(Z.labelTextColor.value!==void 0?` text-${Z.labelTextColor.value}`:""));return()=>{let yt=[a("svg",{class:"q-slider__thumb-shape absolute-full",viewBox:"0 0 20 20","aria-hidden":"true"},[a("path",{d:n.thumbPath})]),a("div",{class:"q-slider__focus-ring fit"})];return(n.label===!0||n.labelAlways===!0)&&(yt.push(a("div",{class:w.value+" absolute fit no-pointer-events"+ke.value},[a("div",{class:W.value,style:{minWidth:n.thumbSize}},[a("div",{class:H.value,style:et.value},[a("span",{class:pt.value},Z.label.value)])])])),n.name!==void 0&&n.disable!==!0&&f(yt,"push")),a("div",{class:Pe.value,style:He.value,...Z.getNodeData()},yt)}}function se(Z,le,Pe,He){let ke=[];n.innerTrackColor!=="transparent"&&ke.push(a("div",{key:"inner",class:K.value,style:x.value})),n.selectionColor!=="transparent"&&ke.push(a("div",{key:"selection",class:J.value,style:Z.value})),n.markers!==!1&&ke.push(a("div",{key:"marker",class:de.value,style:Ie.value})),He(ke);let et=[Mt("div",{key:"trackC",class:O.value,tabindex:le.value,...Pe.value},[a("div",{class:Y.value,style:ue.value},ke)],"slide",b.value,()=>te.value)];if(n.markerLabels!==!1){let pt=n.switchMarkerLabelsSide===!0?"unshift":"push";et[pt](a("div",{key:"markerL",class:ee.value},ve()))}return et}return ye(()=>{document.removeEventListener("mouseup",Le,!0)}),{state:{active:c,focus:v,preventFocus:g,dragging:m,editable:b,classes:X,tabindex:$,attributes:N,roundValueFn:p,keyStep:k,trackLen:F,innerMin:q,innerMinRatio:L,innerMax:S,innerMaxRatio:B,positionProp:V,sizeProp:E,isReversed:y},methods:{onActivate:Ve,onMobileClick:at,onBlur:Fe,onKeyup:mt,getContent:se,getThumbRenderFn:ne,convertRatioToModel:G,convertModelToRatio:ae,getDraggingRatio:fe}}}var kg=()=>({}),Go=A({name:"QSlider",props:{...Ji,modelValue:{required:!0,default:null,validator:e=>typeof e=="number"||e===null},labelValue:[String,Number]},emits:ea,setup(e,{emit:t}){let{proxy:{$q:o}}=U(),{state:r,methods:n}=ta({updateValue:h,updatePosition:y,getDragging:C,formAttrs:Lo(e)}),i=T(null),l=T(0),u=T(0);function d(){u.value=e.modelValue===null?r.innerMin.value:tt(e.modelValue,r.innerMin.value,r.innerMax.value)}j(()=>`${e.modelValue}|${r.innerMin.value}|${r.innerMax.value}`,d),d();let f=s(()=>n.convertModelToRatio(u.value)),c=s(()=>r.active.value===!0?l.value:f.value),g=s(()=>{let b={[r.positionProp.value]:`${100*r.innerMinRatio.value}%`,[r.sizeProp.value]:`${100*(c.value-r.innerMinRatio.value)}%`};return e.selectionImg!==void 0&&(b.backgroundImage=`url(${e.selectionImg}) !important`),b}),v=n.getThumbRenderFn({focusValue:!0,getNodeData:kg,ratio:c,label:s(()=>e.labelValue!==void 0?e.labelValue:u.value),thumbColor:s(()=>e.thumbColor||e.color),labelColor:s(()=>e.labelColor),labelTextColor:s(()=>e.labelTextColor)}),m=s(()=>r.editable.value!==!0?{}:o.platform.is.mobile===!0?{onClick:n.onMobileClick}:{onMousedown:n.onActivate,onFocus:q,onBlur:n.onBlur,onKeydown:S,onKeyup:n.onKeyup});function h(b){u.value!==e.modelValue&&t("update:modelValue",u.value),b===!0&&t("change",u.value)}function C(){return i.value.getBoundingClientRect()}function y(b,p=r.dragging.value){let k=n.getDraggingRatio(b,p);u.value=n.convertRatioToModel(k),l.value=e.snap!==!0||e.step===0?k:n.convertModelToRatio(u.value)}function q(){r.focus.value=!0}function S(b){if(!oi.includes(b.keyCode))return;qe(b);let p=([34,33].includes(b.keyCode)?10:1)*r.keyStep.value,k=([34,37,40].includes(b.keyCode)?-1:1)*(r.isReversed.value===!0?-1:1)*(e.vertical===!0?-1:1)*p;u.value=tt(r.roundValueFn.value(u.value+k),r.innerMin.value,r.innerMax.value),h()}return()=>{let b=n.getContent(g,r.tabindex,m,p=>{p.push(v())});return a("div",{ref:i,class:r.classes.value+(e.modelValue===null?" q-slider--no-value":""),...r.attributes.value,"aria-valuenow":e.modelValue},b)}}});function oa(){let e=T(!kt.value);return e.value===!1&&je(()=>{e.value=!0}),e}var Ys=typeof ResizeObserver<"u",Ws=Ys===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},to=A({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let o=null,r,n={width:-1,height:-1};function i(d){d===!0||e.debounce===0||e.debounce==="0"?l():o===null&&(o=setTimeout(l,e.debounce))}function l(){if(o!==null&&(clearTimeout(o),o=null),r){let{offsetWidth:d,offsetHeight:f}=r;(d!==n.width||f!==n.height)&&(n={width:d,height:f},t("resize",n))}}let{proxy:u}=U();if(u.trigger=i,Ys===!0){let d,f=c=>{r=u.$el.parentNode,r?(d=new ResizeObserver(i),d.observe(r),l()):c!==!0&&Ae(()=>{f(!0)})};return je(()=>{f()}),ye(()=>{o!==null&&clearTimeout(o),d!==void 0&&(d.disconnect!==void 0?d.disconnect():r&&d.unobserve(r))}),Ye}else{let c=function(){o!==null&&(clearTimeout(o),o=null),f!==void 0&&(f.removeEventListener!==void 0&&f.removeEventListener("resize",i,Je.passive),f=void 0)},g=function(){c(),r&&r.contentDocument&&(f=r.contentDocument.defaultView,f.addEventListener("resize",i,Je.passive),l())},d=oa(),f;return je(()=>{Ae(()=>{r=u.$el,r&&g()})}),ye(c),()=>{if(d.value===!0)return a("object",{class:"q--avoid-card-border",style:Ws.style,tabindex:-1,type:"text/html",data:Ws.url,"aria-hidden":"true",onLoad:g})}}}});var An=!1;{let e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});let t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,An=e.scrollLeft>=0,e.remove()}function qg(e,t,o){let r=o===!0?["left","right"]:["top","bottom"];return`absolute-${t===!0?r[0]:r[1]}${e?` text-${e}`:""}`}var Tg=["left","center","right","justify"],ni=A({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>Tg.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(e,{slots:t,emit:o}){let{proxy:r}=U(),{$q:n}=r,{registerTick:i}=Eo(),{registerTick:l}=Eo(),{registerTick:u}=Eo(),{registerTimeout:d,removeTimeout:f}=Jt(),{registerTimeout:c,removeTimeout:g}=Jt(),v=T(null),m=T(null),h=T(e.modelValue),C=T(!1),y=T(!0),q=T(!1),S=T(!1),b=[],p=T(0),k=T(!1),$=null,F=null,D,L=s(()=>({activeClass:e.activeClass,activeColor:e.activeColor,activeBgColor:e.activeBgColor,indicatorClass:qg(e.indicatorColor,e.switchIndicator,e.vertical),narrowIndicator:e.narrowIndicator,inlineLabel:e.inlineLabel,noCaps:e.noCaps})),B=s(()=>{let ce=p.value,ve=h.value;for(let te=0;te<ce;te++)if(b[te].name.value===ve)return!0;return!1}),V=s(()=>`q-tabs__content--align-${C.value===!0?"left":S.value===!0?"justify":e.align}`),E=s(()=>`q-tabs row no-wrap items-center q-tabs--${C.value===!0?"":"not-"}scrollable q-tabs--${e.vertical===!0?"vertical":"horizontal"} q-tabs__arrows--${e.outsideArrows===!0?"outside":"inside"} q-tabs--mobile-with${e.mobileArrows===!0?"":"out"}-arrows`+(e.dense===!0?" q-tabs--dense":"")+(e.shrink===!0?" col-shrink":"")+(e.stretch===!0?" self-stretch":"")),_=s(()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+V.value+(e.contentClass!==void 0?` ${e.contentClass}`:"")),R=s(()=>e.vertical===!0?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),N=s(()=>e.vertical!==!0&&n.lang.rtl===!0),X=s(()=>An===!1&&N.value===!0);j(N,w),j(()=>e.modelValue,ce=>{M({name:ce,setCurrent:!0,skipEmit:!0})}),j(()=>e.outsideArrows,Q);function M({name:ce,setCurrent:ve,skipEmit:te}){h.value!==ce&&(te!==!0&&e["onUpdate:modelValue"]!==void 0&&o("update:modelValue",ce),(ve===!0||e["onUpdate:modelValue"]===void 0)&&(de(h.value,ce),h.value=ce))}function Q(){i(()=>{J({width:v.value.offsetWidth,height:v.value.offsetHeight})})}function J(ce){if(R.value===void 0||m.value===null)return;let ve=ce[R.value.container],te=Math.min(m.value[R.value.scroll],Array.prototype.reduce.call(m.value.children,(Fe,Ve)=>Fe+(Ve[R.value.content]||0),0)),pe=ve>0&&te>ve;C.value=pe,pe===!0&&l(w),S.value=ve<parseInt(e.breakpoint,10)}function de(ce,ve){let te=ce!=null&&ce!==""?b.find(Fe=>Fe.name.value===ce):null,pe=ve!=null&&ve!==""?b.find(Fe=>Fe.name.value===ve):null;if(te&&pe){let Fe=te.tabIndicatorRef.value,Ve=pe.tabIndicatorRef.value;$!==null&&(clearTimeout($),$=null),Fe.style.transition="none",Fe.style.transform="none",Ve.style.transition="none",Ve.style.transform="none";let Le=Fe.getBoundingClientRect(),at=Ve.getBoundingClientRect();Ve.style.transform=e.vertical===!0?`translate3d(0,${Le.top-at.top}px,0) scale3d(1,${at.height?Le.height/at.height:1},1)`:`translate3d(${Le.left-at.left}px,0,0) scale3d(${at.width?Le.width/at.width:1},1,1)`,u(()=>{$=setTimeout(()=>{$=null,Ve.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",Ve.style.transform="none"},70)})}pe&&C.value===!0&&O(pe.rootRef.value)}function O(ce){let{left:ve,width:te,top:pe,height:Fe}=m.value.getBoundingClientRect(),Ve=ce.getBoundingClientRect(),Le=e.vertical===!0?Ve.top-pe:Ve.left-ve;if(Le<0){m.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.floor(Le),w();return}Le+=e.vertical===!0?Ve.height-Fe:Ve.width-te,Le>0&&(m.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.ceil(Le),w())}function w(){let ce=m.value;if(ce===null)return;let ve=ce.getBoundingClientRect(),te=e.vertical===!0?ce.scrollTop:Math.abs(ce.scrollLeft);N.value===!0?(y.value=Math.ceil(te+ve.width)<ce.scrollWidth-1,q.value=te>0):(y.value=te>0,q.value=e.vertical===!0?Math.ceil(te+ve.height)<ce.scrollHeight:Math.ceil(te+ve.width)<ce.scrollWidth)}function W(ce){F!==null&&clearInterval(F),F=setInterval(()=>{x(ce)===!0&&Y()},5)}function H(){W(X.value===!0?Number.MAX_SAFE_INTEGER:0)}function ee(){W(X.value===!0?0:Number.MAX_SAFE_INTEGER)}function Y(){F!==null&&(clearInterval(F),F=null)}function ue(ce,ve){let te=Array.prototype.filter.call(m.value.children,at=>at===ve||at.matches&&at.matches(".q-tab.q-focusable")===!0),pe=te.length;if(pe===0)return;if(ce===36)return O(te[0]),te[0].focus(),!0;if(ce===35)return O(te[pe-1]),te[pe-1].focus(),!0;let Fe=ce===(e.vertical===!0?38:37),Ve=ce===(e.vertical===!0?40:39),Le=Fe===!0?-1:Ve===!0?1:void 0;if(Le!==void 0){let at=N.value===!0?-1:1,mt=te.indexOf(ve)+Le*at;return mt>=0&&mt<pe&&(O(te[mt]),te[mt].focus({preventScroll:!0})),!0}}let K=s(()=>X.value===!0?{get:ce=>Math.abs(ce.scrollLeft),set:(ce,ve)=>{ce.scrollLeft=-ve}}:e.vertical===!0?{get:ce=>ce.scrollTop,set:(ce,ve)=>{ce.scrollTop=ve}}:{get:ce=>ce.scrollLeft,set:(ce,ve)=>{ce.scrollLeft=ve}});function x(ce){let ve=m.value,{get:te,set:pe}=K.value,Fe=!1,Ve=te(ve),Le=ce<Ve?-1:1;return Ve+=Le*5,Ve<0?(Fe=!0,Ve=0):(Le===-1&&Ve<=ce||Le===1&&Ve>=ce)&&(Fe=!0,Ve=ce),pe(ve,Ve),w(),Fe}function G(ce,ve){for(let te in ce)if(ce[te]!==ve[te])return!1;return!0}function ae(){let ce=null,ve={matchedLen:0,queryDiff:9999,hrefLen:0},te=b.filter(Le=>Le.routeData!==void 0&&Le.routeData.hasRouterLink.value===!0),{hash:pe,query:Fe}=r.$route,Ve=Object.keys(Fe).length;for(let Le of te){let at=Le.routeData.exact.value===!0;if(Le.routeData[at===!0?"linkIsExactActive":"linkIsActive"].value!==!0)continue;let{hash:mt,query:vt,matched:ne,href:se}=Le.routeData.resolvedLink.value,Z=Object.keys(vt).length;if(at===!0){if(mt!==pe||Z!==Ve||G(Fe,vt)===!1)continue;ce=Le.name.value;break}if(mt!==""&&mt!==pe||Z!==0&&G(vt,Fe)===!1)continue;let le={matchedLen:ne.length,queryDiff:Ve-Z,hrefLen:se.length-mt.length};if(le.matchedLen>ve.matchedLen){ce=Le.name.value,ve=le;continue}else if(le.matchedLen!==ve.matchedLen)continue;if(le.queryDiff<ve.queryDiff)ce=Le.name.value,ve=le;else if(le.queryDiff!==ve.queryDiff)continue;le.hrefLen>ve.hrefLen&&(ce=Le.name.value,ve=le)}ce===null&&b.some(Le=>Le.routeData===void 0&&Le.name.value===h.value)===!0||M({name:ce,setCurrent:!0})}function fe(ce){if(f(),k.value!==!0&&v.value!==null&&ce.target&&typeof ce.target.closest=="function"){let ve=ce.target.closest(".q-tab");ve&&v.value.contains(ve)===!0&&(k.value=!0,C.value===!0&&O(ve))}}function Se(){d(()=>{k.value=!1},30)}function me(){Ie.avoidRouteWatcher===!1?c(ae):g()}function ze(){if(D===void 0){let ce=j(()=>r.$route.fullPath,me);D=()=>{ce(),D=void 0}}}function Be(ce){b.push(ce),p.value++,Q(),ce.routeData===void 0||r.$route===void 0?c(()=>{if(C.value===!0){let ve=h.value,te=ve!=null&&ve!==""?b.find(pe=>pe.name.value===ve):null;te&&O(te.rootRef.value)}}):(ze(),ce.routeData.hasRouterLink.value===!0&&me())}function xe(ce){b.splice(b.indexOf(ce),1),p.value--,Q(),D!==void 0&&ce.routeData!==void 0&&(b.every(ve=>ve.routeData===void 0)===!0&&D(),me())}let Ie={currentModel:h,tabProps:L,hasFocus:k,hasActiveTab:B,registerTab:Be,unregisterTab:xe,verifyRouteModel:me,updateModel:M,onKbdNavigate:ue,avoidRouteWatcher:!1};Qt(Mi,Ie);function it(){$!==null&&clearTimeout($),Y(),D!==void 0&&D()}let Ke;return ye(it),Bt(()=>{Ke=D!==void 0,it()}),Ht(()=>{Ke===!0&&ze(),Q()}),()=>a("div",{ref:v,class:E.value,role:"tablist",onFocusin:fe,onFocusout:Se},[a(to,{onResize:J}),a("div",{ref:m,class:_.value,onScroll:w},ie(t.default)),a(Re,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(y.value===!0?"":" q-tabs__arrow--faded"),name:e.leftIcon||n.iconSet.tabs[e.vertical===!0?"up":"left"],onMousedownPassive:H,onTouchstartPassive:H,onMouseupPassive:Y,onMouseleavePassive:Y,onTouchendPassive:Y}),a(Re,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(q.value===!0?"":" q-tabs__arrow--faded"),name:e.rightIcon||n.iconSet.tabs[e.vertical===!0?"down":"right"],onMousedownPassive:ee,onTouchstartPassive:ee,onMouseupPassive:Y,onMouseleavePassive:Y,onTouchendPassive:Y})])}});var Mg=0,na=["click","keydown"],ra={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${Mg++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function ia(e,t,o,r){let n=ht(Mi,Ze);if(n===Ze)return console.error("QTab/QRouteTab component needs to be child of QTabs"),Ze;let{proxy:i}=U(),l=T(null),u=T(null),d=T(null),f=s(()=>e.disable===!0||e.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},e.ripple===!0?{}:e.ripple)),c=s(()=>n.currentModel.value===e.name),g=s(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(c.value===!0?" q-tab--active"+(n.tabProps.value.activeClass?" "+n.tabProps.value.activeClass:"")+(n.tabProps.value.activeColor?` text-${n.tabProps.value.activeColor}`:"")+(n.tabProps.value.activeBgColor?` bg-${n.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(e.icon&&e.label&&n.tabProps.value.inlineLabel===!1?" q-tab--full":"")+(e.noCaps===!0||n.tabProps.value.noCaps===!0?" q-tab--no-caps":"")+(e.disable===!0?" disabled":" q-focusable q-hoverable cursor-pointer")+(r!==void 0?r.linkClass.value:"")),v=s(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(n.tabProps.value.inlineLabel===!0?"row no-wrap q-tab__content--inline":"column")+(e.contentClass!==void 0?` ${e.contentClass}`:"")),m=s(()=>e.disable===!0||n.hasFocus.value===!0||c.value===!1&&n.hasActiveTab.value===!0?-1:e.tabindex||0);function h(b,p){if(p!==!0&&l.value!==null&&l.value.focus(),e.disable===!0){r!==void 0&&r.hasRouterLink.value===!0&&qe(b);return}if(r===void 0){n.updateModel({name:e.name}),o("click",b);return}if(r.hasRouterLink.value===!0){let k=($={})=>{let F,D=$.to===void 0||Kt($.to,e.to)===!0?n.avoidRouteWatcher=Xo():null;return r.navigateToRouterLink(b,{...$,returnRouterError:!0}).catch(L=>{F=L}).then(L=>{if(D===n.avoidRouteWatcher&&(n.avoidRouteWatcher=!1,F===void 0&&(L===void 0||L.message!==void 0&&L.message.startsWith("Avoided redundant navigation")===!0)&&n.updateModel({name:e.name})),$.returnRouterError===!0)return F!==void 0?Promise.reject(F):L})};o("click",b,k),b.defaultPrevented!==!0&&k();return}o("click",b)}function C(b){Tt(b,[13,32])?h(b,!0):no(b)!==!0&&b.keyCode>=35&&b.keyCode<=40&&b.altKey!==!0&&b.metaKey!==!0&&n.onKbdNavigate(b.keyCode,i.$el)===!0&&qe(b),o("keydown",b)}function y(){let b=n.tabProps.value.narrowIndicator,p=[],k=a("div",{ref:d,class:["q-tab__indicator",n.tabProps.value.indicatorClass]});e.icon!==void 0&&p.push(a(Re,{class:"q-tab__icon",name:e.icon})),e.label!==void 0&&p.push(a("div",{class:"q-tab__label"},e.label)),e.alert!==!1&&p.push(e.alertIcon!==void 0?a(Re,{class:"q-tab__alert-icon",color:e.alert!==!0?e.alert:void 0,name:e.alertIcon}):a("div",{class:"q-tab__alert"+(e.alert!==!0?` text-${e.alert}`:"")})),b===!0&&p.push(k);let $=[a("div",{class:"q-focus-helper",tabindex:-1,ref:l}),a("div",{class:v.value},Xe(t.default,p))];return b===!1&&$.push(k),$}let q={name:s(()=>e.name),rootRef:u,tabIndicatorRef:d,routeData:r};ye(()=>{n.unregisterTab(q)}),je(()=>{n.registerTab(q)});function S(b,p){let k={ref:u,class:g.value,tabindex:m.value,role:"tab","aria-selected":c.value===!0?"true":"false","aria-disabled":e.disable===!0?"true":void 0,onClick:h,onKeydown:C,...p};return $t(a(b,k,y()),[[Po,f.value]])}return{renderTab:S,$tabs:n}}var cn=A({name:"QTab",props:ra,emits:na,setup(e,{slots:t,emit:o}){let{renderTab:r}=ia(e,t,o);return()=>r("div")}});var aa=A({name:"QTabPanels",props:{...Sr,...Ce},emits:xr,setup(e,{slots:t}){let o=U(),r=we(e,o.proxy.$q),{updatePanelsList:n,getPanelContent:i,panelDirectives:l}=_r(),u=s(()=>"q-tab-panels q-panel-parent"+(r.value===!0?" q-tab-panels--dark q-dark":""));return()=>(n(t),Mt("div",{class:u.value},i(),"pan",e.swipeable,()=>l.value))}});var Mr=A({name:"QTabPanel",props:yr,setup(e,{slots:t}){return()=>a("div",{class:"q-tab-panel",role:"tabpanel"},ie(t.default))}});var Xs=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Gs=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Zs=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,la=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,ua=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,$n={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>Xs.test(e),hexaColor:e=>Gs.test(e),hexOrHexaColor:e=>Zs.test(e),rgbColor:e=>la.test(e),rgbaColor:e=>ua.test(e),rgbOrRgbaColor:e=>la.test(e)||ua.test(e),hexOrRgbColor:e=>Xs.test(e)||la.test(e),hexaOrRgbaColor:e=>Gs.test(e)||ua.test(e),anyColor:e=>Zs.test(e)||la.test(e)||ua.test(e)},Js={testPattern:$n};var Rg=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function En({r:e,g:t,b:o,a:r}){let n=r!==void 0;if(e=Math.round(e),t=Math.round(t),o=Math.round(o),e>255||t>255||o>255||n&&r>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return r=n?(Math.round(255*r/100)|256).toString(16).slice(1):"","#"+(o|t<<8|e<<16|1<<24).toString(16).slice(1)+r}function Hl({r:e,g:t,b:o,a:r}){return`rgb${r!==void 0?"a":""}(${e},${t},${o}${r!==void 0?","+r/100:""})`}function sa(e){if(typeof e!="string")throw new TypeError("Expected a string");e=e.replace(/^#/,""),e.length===3?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e.length===4&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);let t=parseInt(e,16);return e.length>6?{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:Math.round((t&255)/2.55)}:{r:t>>16,g:t>>8&255,b:t&255}}function ca({h:e,s:t,v:o,a:r}){let n,i,l;t=t/100,o=o/100,e=e/360;let u=Math.floor(e*6),d=e*6-u,f=o*(1-t),c=o*(1-d*t),g=o*(1-(1-d)*t);switch(u%6){case 0:n=o,i=g,l=f;break;case 1:n=c,i=o,l=f;break;case 2:n=f,i=o,l=g;break;case 3:n=f,i=c,l=o;break;case 4:n=g,i=f,l=o;break;case 5:n=o,i=f,l=c;break}return{r:Math.round(n*255),g:Math.round(i*255),b:Math.round(l*255),a:r}}function ri({r:e,g:t,b:o,a:r}){let n=Math.max(e,t,o),i=Math.min(e,t,o),l=n-i,u=n===0?0:l/n,d=n/255,f;switch(n){case i:f=0;break;case e:f=t-o+l*(t<o?6:0),f/=6*l;break;case t:f=o-e+l*2,f/=6*l;break;case o:f=e-t+l*4,f/=6*l;break}return{h:Math.round(f*360),s:Math.round(u*100),v:Math.round(d*100),a:r}}function zo(e){if(typeof e!="string")throw new TypeError("Expected a string");let t=e.replace(/ /g,""),o=Rg.exec(t);if(o===null)return sa(t);let r={r:Math.min(255,parseInt(o[2],10)),g:Math.min(255,parseInt(o[3],10)),b:Math.min(255,parseInt(o[4],10))};if(o[1]){let n=parseFloat(o[5]);r.a=Math.min(1,isNaN(n)===!0?1:n)*100}return r}function Pg(e,t){if(typeof e!="string")throw new TypeError("Expected a string as color");if(typeof t!="number")throw new TypeError("Expected a numeric percent");let o=zo(e),r=t<0?0:255,n=Math.abs(t)/100,i=o.r,l=o.g,u=o.b;return"#"+(16777216+(Math.round((r-i)*n)+i)*65536+(Math.round((r-l)*n)+l)*256+(Math.round((r-u)*n)+u)).toString(16).slice(1)}function Ql(e){if(typeof e!="string"&&(!e||e.r===void 0))throw new TypeError("Expected a string or a {r, g, b} object as color");let t=typeof e=="string"?zo(e):e,o=t.r/255,r=t.g/255,n=t.b/255,i=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),l=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4),u=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4);return .2126*i+.7152*l+.0722*u}function Ag(e){if(typeof e!="string"&&(!e||e.r===void 0))throw new TypeError("Expected a string or a {r, g, b} object as color");let t=typeof e=="string"?zo(e):e;return(t.r*299+t.g*587+t.b*114)/1e3}function $g(e,t){if(typeof e!="string"&&(!e||e.r===void 0))throw new TypeError("Expected a string or a {r, g, b[, a]} object as fgColor");if(typeof t!="string"&&(!t||t.r===void 0))throw new TypeError("Expected a string or a {r, g, b[, a]} object as bgColor");let o=typeof e=="string"?zo(e):e,r=o.r/255,n=o.g/255,i=o.b/255,l=o.a!==void 0?o.a/100:1,u=typeof t=="string"?zo(t):t,d=u.r/255,f=u.g/255,c=u.b/255,g=u.a!==void 0?u.a/100:1,v=l+g*(1-l),m=Math.round((r*l+d*g*(1-l))/v*255),h=Math.round((n*l+f*g*(1-l))/v*255),C=Math.round((i*l+c*g*(1-l))/v*255),y={r:m,g:h,b:C,a:Math.round(v*100)};return typeof e=="string"?En(y):y}function Eg(e,t){if(typeof e!="string")throw new TypeError("Expected a string as color");if(t===void 0||t<-1||t>1)throw new TypeError("Expected offset to be between -1 and 1");let{r:o,g:r,b:n,a:i}=zo(e),l=i!==void 0?i/100:0;return En({r:o,g:r,b:n,a:Math.round(Math.min(1,Math.max(0,l+t))*100)})}function Bg(e){if(typeof e!="string")throw new TypeError("Expected a string as color");let t=document.createElement("div");t.className=`text-${e} invisible fixed no-pointer-events`,document.body.appendChild(t);let o=getComputedStyle(t).getPropertyValue("color");return t.remove(),En(zo(o))}var ec={rgbToHex:En,hexToRgb:sa,hsvToRgb:ca,rgbToHsv:ri,textToRgb:zo,lighten:Pg,luminosity:Ql,brightness:Ag,blend:$g,changeAlpha:Eg,getPaletteColor:Bg};var Fg=["rgb(255,204,204)","rgb(255,230,204)","rgb(255,255,204)","rgb(204,255,204)","rgb(204,255,230)","rgb(204,255,255)","rgb(204,230,255)","rgb(204,204,255)","rgb(230,204,255)","rgb(255,204,255)","rgb(255,153,153)","rgb(255,204,153)","rgb(255,255,153)","rgb(153,255,153)","rgb(153,255,204)","rgb(153,255,255)","rgb(153,204,255)","rgb(153,153,255)","rgb(204,153,255)","rgb(255,153,255)","rgb(255,102,102)","rgb(255,179,102)","rgb(255,255,102)","rgb(102,255,102)","rgb(102,255,179)","rgb(102,255,255)","rgb(102,179,255)","rgb(102,102,255)","rgb(179,102,255)","rgb(255,102,255)","rgb(255,51,51)","rgb(255,153,51)","rgb(255,255,51)","rgb(51,255,51)","rgb(51,255,153)","rgb(51,255,255)","rgb(51,153,255)","rgb(51,51,255)","rgb(153,51,255)","rgb(255,51,255)","rgb(255,0,0)","rgb(255,128,0)","rgb(255,255,0)","rgb(0,255,0)","rgb(0,255,128)","rgb(0,255,255)","rgb(0,128,255)","rgb(0,0,255)","rgb(128,0,255)","rgb(255,0,255)","rgb(245,0,0)","rgb(245,123,0)","rgb(245,245,0)","rgb(0,245,0)","rgb(0,245,123)","rgb(0,245,245)","rgb(0,123,245)","rgb(0,0,245)","rgb(123,0,245)","rgb(245,0,245)","rgb(214,0,0)","rgb(214,108,0)","rgb(214,214,0)","rgb(0,214,0)","rgb(0,214,108)","rgb(0,214,214)","rgb(0,108,214)","rgb(0,0,214)","rgb(108,0,214)","rgb(214,0,214)","rgb(163,0,0)","rgb(163,82,0)","rgb(163,163,0)","rgb(0,163,0)","rgb(0,163,82)","rgb(0,163,163)","rgb(0,82,163)","rgb(0,0,163)","rgb(82,0,163)","rgb(163,0,163)","rgb(92,0,0)","rgb(92,46,0)","rgb(92,92,0)","rgb(0,92,0)","rgb(0,92,46)","rgb(0,92,92)","rgb(0,46,92)","rgb(0,0,92)","rgb(46,0,92)","rgb(92,0,92)","rgb(255,255,255)","rgb(205,205,205)","rgb(178,178,178)","rgb(153,153,153)","rgb(127,127,127)","rgb(102,102,102)","rgb(76,76,76)","rgb(51,51,51)","rgb(25,25,25)","rgb(0,0,0)"],tc="M5 5 h10 v10 h-10 v-10 z",Lg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==",oc=A({name:"QColor",props:{...Ce,...wt,modelValue:String,defaultValue:String,defaultView:{type:String,default:"spectrum",validator:e=>["spectrum","tune","palette"].includes(e)},formatModel:{type:String,default:"auto",validator:e=>["auto","hex","rgb","hexa","rgba"].includes(e)},palette:Array,noHeader:Boolean,noHeaderTabs:Boolean,noFooter:Boolean,square:Boolean,flat:Boolean,bordered:Boolean,disable:Boolean,readonly:Boolean},emits:["update:modelValue","change"],setup(e,{emit:t}){let{proxy:o}=U(),{$q:r}=o,n=we(e,r),{getCache:i}=Vo(),l=T(null),u=T(null),d=s(()=>e.formatModel==="auto"?null:e.formatModel.indexOf("hex")!==-1),f=s(()=>e.formatModel==="auto"?null:e.formatModel.indexOf("a")!==-1),c=T(e.formatModel==="auto"?e.modelValue===void 0||e.modelValue===null||e.modelValue===""||e.modelValue.startsWith("#")?"hex":"rgb":e.formatModel.startsWith("hex")?"hex":"rgb"),g=T(e.defaultView),v=T(E(e.modelValue||e.defaultValue)),m=s(()=>e.disable!==!0&&e.readonly!==!0),h=s(()=>e.modelValue===void 0||e.modelValue===null||e.modelValue===""||e.modelValue.startsWith("#")),C=s(()=>d.value!==null?d.value:h.value),y=s(()=>({type:"hidden",name:e.name,value:v.value[C.value===!0?"hex":"rgb"]})),q=Wt(y),S=s(()=>f.value!==null?f.value:v.value.a!==void 0),b=s(()=>({backgroundColor:v.value.rgb||"#000"})),p=s(()=>`q-color-picker__header-content q-color-picker__header-content--${(v.value.a!==void 0&&v.value.a<65?!0:Ql(v.value)>.4)?"light":"dark"}`),k=s(()=>({background:`hsl(${v.value.h},100%,50%)`})),$=s(()=>({top:`${100-v.value.v}%`,[r.lang.rtl===!0?"right":"left"]:`${v.value.s}%`})),F=s(()=>e.palette!==void 0&&e.palette.length!==0?e.palette:Fg),D=s(()=>"q-color-picker"+(e.bordered===!0?" q-color-picker--bordered":"")+(e.square===!0?" q-color-picker--square no-border-radius":"")+(e.flat===!0?" q-color-picker--flat no-shadow":"")+(e.disable===!0?" disabled":"")+(n.value===!0?" q-color-picker--dark q-dark":"")),L=s(()=>e.disable===!0?{"aria-disabled":"true"}:{}),B=s(()=>[[Rt,Q,void 0,{prevent:!0,stop:!0,mouse:!0}]]);j(()=>e.modelValue,x=>{let G=E(x||e.defaultValue);G.hex!==v.value.hex&&(v.value=G)}),j(()=>e.defaultValue,x=>{if(!e.modelValue&&x){let G=E(x);G.hex!==v.value.hex&&(v.value=G)}});function V(x,G){v.value.hex=En(x),v.value.rgb=Hl(x),v.value.r=x.r,v.value.g=x.g,v.value.b=x.b,v.value.a=x.a;let ae=v.value[C.value===!0?"hex":"rgb"];t("update:modelValue",ae),G===!0&&t("change",ae)}function E(x){let G=f.value!==void 0?f.value:e.formatModel==="auto"?null:e.formatModel.indexOf("a")!==-1;if(typeof x!="string"||x.length===0||$n.anyColor(x.replace(/ /g,""))!==!0)return{h:0,s:0,v:0,r:0,g:0,b:0,a:G===!0?100:void 0,hex:void 0,rgb:void 0};let ae=zo(x);return G===!0&&ae.a===void 0&&(ae.a=100),ae.hex=En(ae),ae.rgb=Hl(ae),Object.assign(ae,ri(ae))}function _(x,G,ae){let fe=l.value;if(fe===null)return;let Se=fe.clientWidth,me=fe.clientHeight,ze=fe.getBoundingClientRect(),Be=Math.min(Se,Math.max(0,x-ze.left));r.lang.rtl===!0&&(Be=Se-Be);let xe=Math.min(me,Math.max(0,G-ze.top)),Ie=Math.round(100*Be/Se),it=Math.round(100*Math.max(0,Math.min(1,-(xe/me)+1))),Ke=ca({h:v.value.h,s:Ie,v:it,a:S.value===!0?v.value.a:void 0});v.value.s=Ie,v.value.v=it,V(Ke,ae)}function R(x,G){let ae=Math.round(x),fe=ca({h:ae,s:v.value.s,v:v.value.v,a:S.value===!0?v.value.a:void 0});v.value.h=ae,V(fe,G)}function N(x,G,ae,fe,Se){if(fe!==void 0&&rt(fe),!/^[0-9]+$/.test(x)){Se===!0&&o.$forceUpdate();return}let me=Math.floor(Number(x));if(me<0||me>ae){Se===!0&&o.$forceUpdate();return}let ze={r:G==="r"?me:v.value.r,g:G==="g"?me:v.value.g,b:G==="b"?me:v.value.b,a:S.value===!0?G==="a"?me:v.value.a:void 0};if(G!=="a"){let Be=ri(ze);v.value.h=Be.h,v.value.s=Be.s,v.value.v=Be.v}if(V(ze,Se),fe!==void 0&&Se!==!0&&fe.target.selectionEnd!==void 0){let Be=fe.target.selectionEnd;Ae(()=>{fe.target.setSelectionRange(Be,Be)})}}function X(x,G){let ae,fe=x.target.value;if(rt(x),c.value==="hex"){if(fe.length!==(S.value===!0?9:7)||!/^#[0-9A-Fa-f]+$/.test(fe))return!0;ae=sa(fe)}else{let me;if(fe.endsWith(")"))if(S.value!==!0&&fe.startsWith("rgb(")){if(me=fe.substring(4,fe.length-1).split(",").map(ze=>parseInt(ze,10)),me.length!==3||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(fe))return!0}else if(S.value===!0&&fe.startsWith("rgba(")){if(me=fe.substring(5,fe.length-1).split(","),me.length!==4||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(fe))return!0;for(let Be=0;Be<3;Be++){let xe=parseInt(me[Be],10);if(xe<0||xe>255)return!0;me[Be]=xe}let ze=parseFloat(me[3]);if(ze<0||ze>1)return!0;me[3]=ze}else return!0;else return!0;if(me[0]<0||me[0]>255||me[1]<0||me[1]>255||me[2]<0||me[2]>255||S.value===!0&&(me[3]<0||me[3]>1))return!0;ae={r:me[0],g:me[1],b:me[2],a:S.value===!0?me[3]*100:void 0}}let Se=ri(ae);if(v.value.h=Se.h,v.value.s=Se.s,v.value.v=Se.v,V(ae,G),G!==!0){let me=x.target.selectionEnd;Ae(()=>{x.target.setSelectionRange(me,me)})}}function M(x){let G=E(x),ae={r:G.r,g:G.g,b:G.b,a:G.a};ae.a===void 0&&(ae.a=v.value.a),v.value.h=G.h,v.value.s=G.s,v.value.v=G.v,V(ae,!0)}function Q(x){x.isFinal?_(x.position.left,x.position.top,!0):J(x)}let J=Gn(x=>{_(x.position.left,x.position.top)},20);function de(x){_(x.pageX-window.pageXOffset,x.pageY-window.pageYOffset,!0)}function O(x){_(x.pageX-window.pageXOffset,x.pageY-window.pageYOffset)}function w(x){u.value!==null&&(u.value.$el.style.opacity=x?1:0)}function W(){let x=[];return e.noHeaderTabs!==!0&&x.push(a(ni,{class:"q-color-picker__header-tabs",modelValue:c.value,dense:!0,align:"justify",...i("topVTab",{"onUpdate:modelValue":G=>{c.value=G}})},()=>[a(cn,{label:"HEX"+(S.value===!0?"A":""),name:"hex",ripple:!1}),a(cn,{label:"RGB"+(S.value===!0?"A":""),name:"rgb",ripple:!1})])),x.push(a("div",{class:"q-color-picker__header-banner row flex-center no-wrap"},[a("input",{class:"fit",value:v.value[c.value],...m.value!==!0?{readonly:!0}:{},...i("topIn",{onInput:G=>{w(X(G)===!0)},onChange:rt,onBlur:G=>{X(G,!0)===!0&&o.$forceUpdate(),w(!1)}})}),a(Re,{ref:u,class:"q-color-picker__error-icon absolute no-pointer-events",name:r.iconSet.type.negative})])),a("div",{class:"q-color-picker__header relative-position overflow-hidden"},[a("div",{class:"q-color-picker__header-bg absolute-full"}),a("div",{class:p.value,style:b.value},x)])}function H(){return a(aa,{modelValue:g.value,animated:!0},()=>[a(Mr,{class:"q-color-picker__spectrum-tab overflow-hidden",name:"spectrum"},Y),a(Mr,{class:"q-pa-md q-color-picker__tune-tab",name:"tune"},ue),a(Mr,{class:"q-color-picker__palette-tab",name:"palette"},K)])}function ee(){return a("div",{class:"q-color-picker__footer relative-position overflow-hidden"},[a(ni,{class:"absolute-full",modelValue:g.value,dense:!0,align:"justify",...i("ftIn",{"onUpdate:modelValue":x=>{g.value=x}})},()=>[a(cn,{icon:r.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}),a(cn,{icon:r.iconSet.colorPicker.tune,name:"tune",ripple:!1}),a(cn,{icon:r.iconSet.colorPicker.palette,name:"palette",ripple:!1})])])}function Y(){let x={ref:l,class:"q-color-picker__spectrum non-selectable relative-position cursor-pointer"+(m.value!==!0?" readonly":""),style:k.value,...m.value===!0?{onClick:de,onMousedown:O}:{}},G=[a("div",{style:{paddingBottom:"100%"}}),a("div",{class:"q-color-picker__spectrum-white absolute-full"}),a("div",{class:"q-color-picker__spectrum-black absolute-full"}),a("div",{class:"absolute",style:$.value},[v.value.hex!==void 0?a("div",{class:"q-color-picker__spectrum-circle"}):null])],ae=[a(Go,{class:"q-color-picker__hue non-selectable",modelValue:v.value.h,min:0,max:360,trackSize:"8px",innerTrackColor:"transparent",selectionColor:"transparent",readonly:m.value!==!0,thumbPath:tc,"onUpdate:modelValue":R,...i("lazyhue",{onChange:fe=>R(fe,!0)})})];return S.value===!0&&ae.push(a(Go,{class:"q-color-picker__alpha non-selectable",modelValue:v.value.a,min:0,max:100,trackSize:"8px",trackColor:"white",innerTrackColor:"transparent",selectionColor:"transparent",trackImg:Lg,readonly:m.value!==!0,hideSelection:!0,thumbPath:tc,...i("alphaSlide",{"onUpdate:modelValue":fe=>N(fe,"a",100),onChange:fe=>N(fe,"a",100,void 0,!0)})})),[Mt("div",x,G,"spec",m.value,()=>B.value),a("div",{class:"q-color-picker__sliders"},ae)]}function ue(){return[a("div",{class:"row items-center no-wrap"},[a("div","R"),a(Go,{modelValue:v.value.r,min:0,max:255,color:"red",dark:n.value,readonly:m.value!==!0,...i("rSlide",{"onUpdate:modelValue":x=>N(x,"r",255),onChange:x=>N(x,"r",255,void 0,!0)})}),a("input",{value:v.value.r,maxlength:3,readonly:m.value!==!0,onChange:rt,...i("rIn",{onInput:x=>N(x.target.value,"r",255,x),onBlur:x=>N(x.target.value,"r",255,x,!0)})})]),a("div",{class:"row items-center no-wrap"},[a("div","G"),a(Go,{modelValue:v.value.g,min:0,max:255,color:"green",dark:n.value,readonly:m.value!==!0,...i("gSlide",{"onUpdate:modelValue":x=>N(x,"g",255),onChange:x=>N(x,"g",255,void 0,!0)})}),a("input",{value:v.value.g,maxlength:3,readonly:m.value!==!0,onChange:rt,...i("gIn",{onInput:x=>N(x.target.value,"g",255,x),onBlur:x=>N(x.target.value,"g",255,x,!0)})})]),a("div",{class:"row items-center no-wrap"},[a("div","B"),a(Go,{modelValue:v.value.b,min:0,max:255,color:"blue",readonly:m.value!==!0,dark:n.value,...i("bSlide",{"onUpdate:modelValue":x=>N(x,"b",255),onChange:x=>N(x,"b",255,void 0,!0)})}),a("input",{value:v.value.b,maxlength:3,readonly:m.value!==!0,onChange:rt,...i("bIn",{onInput:x=>N(x.target.value,"b",255,x),onBlur:x=>N(x.target.value,"b",255,x,!0)})})]),S.value===!0?a("div",{class:"row items-center no-wrap"},[a("div","A"),a(Go,{modelValue:v.value.a,color:"grey",readonly:m.value!==!0,dark:n.value,...i("aSlide",{"onUpdate:modelValue":x=>N(x,"a",100),onChange:x=>N(x,"a",100,void 0,!0)})}),a("input",{value:v.value.a,maxlength:3,readonly:m.value!==!0,onChange:rt,...i("aIn",{onInput:x=>N(x.target.value,"a",100,x),onBlur:x=>N(x.target.value,"a",100,x,!0)})})]):null]}function K(){let x=G=>a("div",{class:"q-color-picker__cube col-auto",style:{backgroundColor:G},...m.value===!0?i("palette#"+G,{onClick:()=>{M(G)}}):{}});return[a("div",{class:"row items-center q-color-picker__palette-rows"+(m.value===!0?" q-color-picker__palette-rows--editable":"")},F.value.map(x))]}return()=>{let x=[H()];return e.name!==void 0&&e.disable!==!0&&q(x,"push"),e.noHeader!==!0&&x.unshift(W()),e.noFooter!==!0&&x.push(ee()),a("div",{class:D.value,...L.value},x)}}});var dn=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function nc(e,t,o){return Object.prototype.toString.call(e)==="[object Date]"&&(o=e.getDate(),t=e.getMonth()+1,e=e.getFullYear()),Og(Ul(e,t,o))}function jl(e,t,o){return ic(zg(e,t,o))}function Vg(e){return Dg(e)===0}function Rr(e,t){return t<=6?31:t<=11||Vg(e)?30:29}function Dg(e){let t=dn.length,o=dn[0],r,n,i,l,u;if(e<o||e>=dn[t-1])throw new Error("Invalid Jalaali year "+e);for(u=1;u<t&&(r=dn[u],n=r-o,!(e<r));u+=1)o=r;return l=e-o,n-l<6&&(l=l-n+_t(n+4,33)*33),i=ro(ro(l+1,33)-1,4),i===-1&&(i=4),i}function rc(e,t){let o=dn.length,r=e+621,n=-14,i=dn[0],l,u,d,f,c;if(e<i||e>=dn[o-1])throw new Error("Invalid Jalaali year "+e);for(c=1;c<o&&(l=dn[c],u=l-i,!(e<l));c+=1)n=n+_t(u,33)*8+_t(ro(u,33),4),i=l;f=e-i,n=n+_t(f,33)*8+_t(ro(f,33)+3,4),ro(u,33)===4&&u-f===4&&(n+=1);let g=_t(r,4)-_t((_t(r,100)+1)*3,4)-150,v=20+n-g;return t||(u-f<6&&(f=f-u+_t(u+4,33)*33),d=ro(ro(f+1,33)-1,4),d===-1&&(d=4)),{leap:d,gy:r,march:v}}function zg(e,t,o){let r=rc(e,!0);return Ul(r.gy,3,r.march)+(t-1)*31-_t(t,7)*(t-7)+o-1}function Og(e){let t=ic(e).gy,o=t-621,r,n,i,l=rc(o,!1),u=Ul(t,3,l.march);if(i=e-u,i>=0){if(i<=185)return n=1+_t(i,31),r=ro(i,31)+1,{jy:o,jm:n,jd:r};i-=186}else o-=1,i+=179,l.leap===1&&(i+=1);return n=7+_t(i,30),r=ro(i,30)+1,{jy:o,jm:n,jd:r}}function Ul(e,t,o){let r=_t((e+_t(t-8,6)+100100)*1461,4)+_t(153*ro(t+9,12)+2,5)+o-34840408;return r=r-_t(_t(e+100100+_t(t-8,6),100)*3,4)+752,r}function ic(e){let t=4*e+139361631;t=t+_t(_t(4*e+183187720,146097)*3,4)*4-3908;let o=_t(ro(t,1461),4)*5+308,r=_t(ro(o,153),5)+1,n=ro(_t(o,153),12)+1;return{gy:_t(t,1461)-100100+_t(8-n,6),gm:n,gd:r}}function _t(e,t){return~~(e/t)}function ro(e,t){return e-~~(e/t)*t}var Ig=["gregorian","persian"],da={modelValue:{required:!0},mask:{type:String},locale:Object,calendar:{type:String,validator:e=>Ig.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},fa=["update:modelValue"];function yo(e){return e.year+"/"+ot(e.month)+"/"+ot(e.day)}function ma(e,t){let o=s(()=>e.disable!==!0&&e.readonly!==!0),r=s(()=>o.value===!0?0:-1),n=s(()=>{let u=[];return e.color!==void 0&&u.push(`bg-${e.color}`),e.textColor!==void 0&&u.push(`text-${e.textColor}`),u.join(" ")});function i(){return e.locale!==void 0?{...t.lang.date,...e.locale}:t.lang.date}function l(u){let d=new Date,f=u===!0?null:0;if(e.calendar==="persian"){let c=nc(d);return{year:c.jy,month:c.jm,day:c.jd}}return{year:d.getFullYear(),month:d.getMonth()+1,day:d.getDate(),hour:f,minute:f,second:f,millisecond:f}}return{editable:o,tabindex:r,headerClass:n,getLocale:i,getCurrentDate:l}}var sc=864e5,Ng=36e5,Yl=6e4,cc="YYYY-MM-DDTHH:mm:ss.SSSZ",Hg=/\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g,Qg=/(\[[^\]]*\])|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g,Kl={};function jg(e,t){let o="("+t.days.join("|")+")",r=e+o;if(Kl[r]!==void 0)return Kl[r];let n="("+t.daysShort.join("|")+")",i="("+t.months.join("|")+")",l="("+t.monthsShort.join("|")+")",u={},d=0,f=e.replace(Qg,g=>{switch(d++,g){case"YY":return u.YY=d,"(-?\\d{1,2})";case"YYYY":return u.YYYY=d,"(-?\\d{1,4})";case"M":return u.M=d,"(\\d{1,2})";case"MM":return u.M=d,"(\\d{2})";case"MMM":return u.MMM=d,l;case"MMMM":return u.MMMM=d,i;case"D":return u.D=d,"(\\d{1,2})";case"Do":return u.D=d++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return u.D=d,"(\\d{2})";case"H":return u.H=d,"(\\d{1,2})";case"HH":return u.H=d,"(\\d{2})";case"h":return u.h=d,"(\\d{1,2})";case"hh":return u.h=d,"(\\d{2})";case"m":return u.m=d,"(\\d{1,2})";case"mm":return u.m=d,"(\\d{2})";case"s":return u.s=d,"(\\d{1,2})";case"ss":return u.s=d,"(\\d{2})";case"S":return u.S=d,"(\\d{1})";case"SS":return u.S=d,"(\\d{2})";case"SSS":return u.S=d,"(\\d{3})";case"A":return u.A=d,"(AM|PM)";case"a":return u.a=d,"(am|pm)";case"aa":return u.aa=d,"(a\\.m\\.|p\\.m\\.)";case"ddd":return n;case"dddd":return o;case"Q":case"d":case"E":return"(\\d{1})";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"w":return"(\\d{1,2})";case"ww":return"(\\d{2})";case"Z":return u.Z=d,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return u.ZZ=d,"(Z|[+-]\\d{2}\\d{2})";case"X":return u.X=d,"(-?\\d+)";case"x":return u.x=d,"(-?\\d{4,})";default:return d--,g[0]==="["&&(g=g.substring(1,g.length-1)),g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),c={map:u,regex:new RegExp("^"+f)};return Kl[r]=c,c}function dc(e,t){return e!==void 0?e:t!==void 0?t.date:Qr.default.date}function ac(e,t=""){let o=e>0?"-":"+",r=Math.abs(e),n=Math.floor(r/60),i=r%60;return o+ot(n)+t+ot(i)}function Ug(e,t,o){let r=e.getFullYear(),n=e.getMonth(),i=e.getDate();return t.year!==void 0&&(r+=o*t.year,delete t.year),t.month!==void 0&&(n+=o*t.month,delete t.month),e.setDate(1),e.setMonth(2),e.setFullYear(r),e.setMonth(n),e.setDate(Math.min(i,Jl(e))),t.date!==void 0&&(e.setDate(e.getDate()+o*t.date),delete t.date),e}function Kg(e,t,o){let r=t.year!==void 0?t.year:e[`get${o}FullYear`](),n=t.month!==void 0?t.month-1:e[`get${o}Month`](),i=new Date(r,n+1,0).getDate(),l=Math.min(i,t.date!==void 0?t.date:e[`get${o}Date`]());return e[`set${o}Date`](1),e[`set${o}Month`](2),e[`set${o}FullYear`](r),e[`set${o}Month`](n),e[`set${o}Date`](l),delete t.year,delete t.month,delete t.date,e}function Zl(e,t,o){let r=fc(t),n=new Date(e),i=r.year!==void 0||r.month!==void 0||r.date!==void 0?Ug(n,r,o):n;for(let l in r){let u=kl(l);i[`set${u}`](i[`get${u}`]()+o*r[l])}return i}function fc(e){let t={...e};return e.years!==void 0&&(t.year=e.years,delete t.years),e.months!==void 0&&(t.month=e.months,delete t.months),e.days!==void 0&&(t.date=e.days,delete t.days),e.day!==void 0&&(t.date=e.day,delete t.day),e.hour!==void 0&&(t.hours=e.hour,delete t.hour),e.minute!==void 0&&(t.minutes=e.minute,delete t.minute),e.second!==void 0&&(t.seconds=e.second,delete t.second),e.millisecond!==void 0&&(t.milliseconds=e.millisecond,delete t.millisecond),t}function mc(e,t,o){let r=fc(t),n=o===!0?"UTC":"",i=new Date(e),l=r.year!==void 0||r.month!==void 0||r.date!==void 0?Kg(i,r,n):i;for(let u in r){let d=u.charAt(0).toUpperCase()+u.slice(1);l[`set${n}${d}`](r[u])}return l}function Wg(e,t,o){let r=fn(e,t,o),n=new Date(r.year,r.month===null?null:r.month-1,r.day===null?1:r.day,r.hour,r.minute,r.second,r.millisecond),i=n.getTimezoneOffset();return r.timezoneOffset===null||r.timezoneOffset===i?n:Zl(n,{minutes:r.timezoneOffset-i},1)}function fn(e,t,o,r,n){let i={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(n!==void 0&&Object.assign(i,n),e==null||e===""||typeof e!="string")return i;t===void 0&&(t=cc);let l=dc(o,xn.props),u=l.months,d=l.monthsShort,{regex:f,map:c}=jg(t,l),g=e.match(f);if(g===null)return i;let v="";if(c.X!==void 0||c.x!==void 0){let m=parseInt(g[c.X!==void 0?c.X:c.x],10);if(isNaN(m)===!0||m<0)return i;let h=new Date(m*(c.X!==void 0?1e3:1));i.year=h.getFullYear(),i.month=h.getMonth()+1,i.day=h.getDate(),i.hour=h.getHours(),i.minute=h.getMinutes(),i.second=h.getSeconds(),i.millisecond=h.getMilliseconds()}else{if(c.YYYY!==void 0)i.year=parseInt(g[c.YYYY],10);else if(c.YY!==void 0){let m=parseInt(g[c.YY],10);i.year=m<0?m:2e3+m}if(c.M!==void 0){if(i.month=parseInt(g[c.M],10),i.month<1||i.month>12)return i}else c.MMM!==void 0?i.month=d.indexOf(g[c.MMM])+1:c.MMMM!==void 0&&(i.month=u.indexOf(g[c.MMMM])+1);if(c.D!==void 0){if(i.day=parseInt(g[c.D],10),i.year===null||i.month===null||i.day<1)return i;let m=r!=="persian"?new Date(i.year,i.month,0).getDate():Rr(i.year,i.month);if(i.day>m)return i}c.H!==void 0?i.hour=parseInt(g[c.H],10)%24:c.h!==void 0&&(i.hour=parseInt(g[c.h],10)%12,(c.A&&g[c.A]==="PM"||c.a&&g[c.a]==="pm"||c.aa&&g[c.aa]==="p.m.")&&(i.hour+=12),i.hour=i.hour%24),c.m!==void 0&&(i.minute=parseInt(g[c.m],10)%60),c.s!==void 0&&(i.second=parseInt(g[c.s],10)%60),c.S!==void 0&&(i.millisecond=parseInt(g[c.S],10)*10**(3-g[c.S].length)),(c.Z!==void 0||c.ZZ!==void 0)&&(v=c.Z!==void 0?g[c.Z].replace(":",""):g[c.ZZ],i.timezoneOffset=(v[0]==="+"?-1:1)*(60*v.slice(1,3)+1*v.slice(3,5)))}return i.dateHash=ot(i.year,6)+"/"+ot(i.month)+"/"+ot(i.day),i.timeHash=ot(i.hour)+":"+ot(i.minute)+":"+ot(i.second)+v,i}function Yg(e){return typeof e=="number"?!0:isNaN(Date.parse(e))===!1}function Xg(e,t){return mc(new Date,e,t)}function Gg(e){let t=new Date(e).getDay();return t===0?7:t}function Xl(e){let t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);let o=new Date(t.getFullYear(),0,4);o.setDate(o.getDate()-(o.getDay()+6)%7+3);let r=t.getTimezoneOffset()-o.getTimezoneOffset();t.setHours(t.getHours()-r);let n=(t-o)/(sc*7);return 1+Math.floor(n)}function Zg(e){return e.getFullYear()*1e4+e.getMonth()*100+e.getDate()}function Wl(e,t){let o=new Date(e);return t===!0?Zg(o):o.getTime()}function Jg(e,t,o,r={}){let n=Wl(t,r.onlyDate),i=Wl(o,r.onlyDate),l=Wl(e,r.onlyDate);return(l>n||r.inclusiveFrom===!0&&l===n)&&(l<i||r.inclusiveTo===!0&&l===i)}function eh(e,t){return Zl(e,t,1)}function th(e,t){return Zl(e,t,-1)}function Oo(e,t,o){let r=new Date(e),n=`set${o===!0?"UTC":""}`;switch(t){case"year":case"years":r[`${n}Month`](0);case"month":case"months":r[`${n}Date`](1);case"day":case"days":case"date":r[`${n}Hours`](0);case"hour":case"hours":r[`${n}Minutes`](0);case"minute":case"minutes":r[`${n}Seconds`](0);case"second":case"seconds":r[`${n}Milliseconds`](0)}return r}function oh(e,t,o){let r=new Date(e),n=`set${o===!0?"UTC":""}`;switch(t){case"year":case"years":r[`${n}Month`](11);case"month":case"months":r[`${n}Date`](Jl(r));case"day":case"days":case"date":r[`${n}Hours`](23);case"hour":case"hours":r[`${n}Minutes`](59);case"minute":case"minutes":r[`${n}Seconds`](59);case"second":case"seconds":r[`${n}Milliseconds`](999)}return r}function nh(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(o=>{t=Math.max(t,new Date(o))}),t}function rh(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(o=>{t=Math.min(t,new Date(o))}),t}function va(e,t,o){return(e.getTime()-e.getTimezoneOffset()*Yl-(t.getTime()-t.getTimezoneOffset()*Yl))/o}function ga(e,t,o="days"){let r=new Date(e),n=new Date(t);switch(o){case"years":case"year":return r.getFullYear()-n.getFullYear();case"months":case"month":return(r.getFullYear()-n.getFullYear())*12+r.getMonth()-n.getMonth();case"days":case"day":case"date":return va(Oo(r,"day"),Oo(n,"day"),sc);case"hours":case"hour":return va(Oo(r,"hour"),Oo(n,"hour"),Ng);case"minutes":case"minute":return va(Oo(r,"minute"),Oo(n,"minute"),Yl);case"seconds":case"second":return va(Oo(r,"second"),Oo(n,"second"),1e3)}}function Gl(e){return ga(e,Oo(e,"year"),"days")+1}function ih(e){return Yo(e)===!0?"date":typeof e=="number"?"number":"string"}function ah(e,t,o){let r=new Date(e);if(t){let n=new Date(t);if(r<n)return n}if(o){let n=new Date(o);if(r>n)return n}return r}function lh(e,t,o){let r=new Date(e),n=new Date(t);if(o===void 0)return r.getTime()===n.getTime();switch(o){case"second":case"seconds":if(r.getSeconds()!==n.getSeconds())return!1;case"minute":case"minutes":if(r.getMinutes()!==n.getMinutes())return!1;case"hour":case"hours":if(r.getHours()!==n.getHours())return!1;case"day":case"days":case"date":if(r.getDate()!==n.getDate())return!1;case"month":case"months":if(r.getMonth()!==n.getMonth())return!1;case"year":case"years":if(r.getFullYear()!==n.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${o}`)}return!0}function Jl(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function lc(e){if(e>=11&&e<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`}return`${e}th`}var uc={YY(e,t,o){let r=this.YYYY(e,t,o)%100;return r>=0?ot(r):"-"+ot(Math.abs(r))},YYYY(e,t,o){return o??e.getFullYear()},M(e){return e.getMonth()+1},MM(e){return ot(e.getMonth()+1)},MMM(e,t){return t.monthsShort[e.getMonth()]},MMMM(e,t){return t.months[e.getMonth()]},Q(e){return Math.ceil((e.getMonth()+1)/3)},Qo(e){return lc(this.Q(e))},D(e){return e.getDate()},Do(e){return lc(e.getDate())},DD(e){return ot(e.getDate())},DDD(e){return Gl(e)},DDDD(e){return ot(Gl(e),3)},d(e){return e.getDay()},dd(e,t){return this.dddd(e,t).slice(0,2)},ddd(e,t){return t.daysShort[e.getDay()]},dddd(e,t){return t.days[e.getDay()]},E(e){return e.getDay()||7},w(e){return Xl(e)},ww(e){return ot(Xl(e))},H(e){return e.getHours()},HH(e){return ot(e.getHours())},h(e){let t=e.getHours();return t===0?12:t>12?t%12:t},hh(e){return ot(this.h(e))},m(e){return e.getMinutes()},mm(e){return ot(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return ot(e.getSeconds())},S(e){return Math.floor(e.getMilliseconds()/100)},SS(e){return ot(Math.floor(e.getMilliseconds()/10))},SSS(e){return ot(e.getMilliseconds(),3)},A(e){return this.H(e)<12?"AM":"PM"},a(e){return this.H(e)<12?"am":"pm"},aa(e){return this.H(e)<12?"a.m.":"p.m."},Z(e,t,o,r){let n=r??e.getTimezoneOffset();return ac(n,":")},ZZ(e,t,o,r){let n=r??e.getTimezoneOffset();return ac(n)},X(e){return Math.floor(e.getTime()/1e3)},x(e){return e.getTime()}};function ii(e,t,o,r,n){if(e!==0&&!e||e===1/0||e===-1/0)return;let i=new Date(e);if(isNaN(i))return;t===void 0&&(t=cc);let l=dc(o,xn.props);return t.replace(Hg,(u,d)=>u in uc?uc[u](i,l,r,n):d===void 0?u:d.split("\\]").join("]"))}function uh(e){return Yo(e)===!0?new Date(e.getTime()):e}var vc={isValid:Yg,extractDate:Wg,buildDate:Xg,getDayOfWeek:Gg,getWeekOfYear:Xl,isBetweenDates:Jg,addToDate:eh,subtractFromDate:th,adjustDate:mc,startOfDate:Oo,endOfDate:oh,getMaxDate:nh,getMinDate:rh,getDateDiff:ga,getDayOfYear:Gl,inferDateFormat:ih,getDateBetween:ah,isSameDate:lh,daysInMonth:Jl,formatDate:ii,clone:uh};var Bn=20,sh=["Calendar","Years","Months"],gc=e=>sh.includes(e),eu=e=>/^-?[\d]+\/[0-1]\d$/.test(e),Pr=" \u2014 ";function mn(e){return e.year+"/"+ot(e.month)}var hc=A({name:"QDate",props:{...da,...wt,...Ce,multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:eu},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:eu},navigationMaxYearMonth:{type:String,validator:eu},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:gc}},emits:[...fa,"rangeStart","rangeEnd","navigation"],setup(e,{slots:t,emit:o}){let{proxy:r}=U(),{$q:n}=r,i=we(e,n),{getCache:l}=Vo(),{tabindex:u,headerClass:d,getLocale:f,getCurrentDate:c}=ma(e,n),g,v=Lo(e),m=Wt(v),h=T(null),C=T(at()),y=T(f()),q=s(()=>at()),S=s(()=>f()),b=s(()=>c()),p=T(vt(C.value,y.value)),k=T(e.defaultView),$=n.lang.rtl===!0?"right":"left",F=T($.value),D=T($.value),L=p.value.year,B=T(L-L%Bn-(L<0?Bn:0)),V=T(null),E=s(()=>{let P=e.landscape===!0?"landscape":"portrait";return`q-date q-date--${P} q-date--${P}-${e.minimal===!0?"minimal":"standard"}`+(i.value===!0?" q-date--dark q-dark":"")+(e.bordered===!0?" q-date--bordered":"")+(e.square===!0?" q-date--square no-border-radius":"")+(e.flat===!0?" q-date--flat no-shadow":"")+(e.disable===!0?" disabled":e.readonly===!0?" q-date--readonly":"")}),_=s(()=>e.color||"primary"),R=s(()=>e.textColor||"white"),N=s(()=>e.emitImmediately===!0&&e.multiple!==!0&&e.range!==!0),X=s(()=>Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue!==null&&e.modelValue!==void 0?[e.modelValue]:[]),M=s(()=>X.value.filter(P=>typeof P=="string").map(P=>mt(P,C.value,y.value)).filter(P=>P.dateHash!==null&&P.day!==null&&P.month!==null&&P.year!==null)),Q=s(()=>{let P=I=>mt(I,C.value,y.value);return X.value.filter(I=>ct(I)===!0&&I.from!==void 0&&I.to!==void 0).map(I=>({from:P(I.from),to:P(I.to)})).filter(I=>I.from.dateHash!==null&&I.to.dateHash!==null&&I.from.dateHash<I.to.dateHash)}),J=s(()=>e.calendar!=="persian"?P=>new Date(P.year,P.month-1,P.day):P=>{let I=jl(P.year,P.month,P.day);return new Date(I.gy,I.gm-1,I.gd)}),de=s(()=>e.calendar==="persian"?yo:(P,I,oe)=>ii(new Date(P.year,P.month-1,P.day,P.hour,P.minute,P.second,P.millisecond),I===void 0?C.value:I,oe===void 0?y.value:oe,P.year,P.timezoneOffset)),O=s(()=>M.value.length+Q.value.reduce((P,I)=>P+1+ga(J.value(I.to),J.value(I.from)),0)),w=s(()=>{if(e.title!==void 0&&e.title!==null&&e.title.length!==0)return e.title;if(V.value!==null){let oe=V.value.init,ge=J.value(oe);return y.value.daysShort[ge.getDay()]+", "+y.value.monthsShort[oe.month-1]+" "+oe.day+Pr+"?"}if(O.value===0)return Pr;if(O.value>1)return`${O.value} ${y.value.pluralDay}`;let P=M.value[0],I=J.value(P);return isNaN(I.valueOf())===!0?Pr:y.value.headerTitle!==void 0?y.value.headerTitle(I,P):y.value.daysShort[I.getDay()]+", "+y.value.monthsShort[P.month-1]+" "+P.day}),W=s(()=>M.value.concat(Q.value.map(I=>I.from)).sort((I,oe)=>I.year-oe.year||I.month-oe.month)[0]),H=s(()=>M.value.concat(Q.value.map(I=>I.to)).sort((I,oe)=>oe.year-I.year||oe.month-I.month)[0]),ee=s(()=>{if(e.subtitle!==void 0&&e.subtitle!==null&&e.subtitle.length!==0)return e.subtitle;if(O.value===0)return Pr;if(O.value>1){let P=W.value,I=H.value,oe=y.value.monthsShort;return oe[P.month-1]+(P.year!==I.year?" "+P.year+Pr+oe[I.month-1]+" ":P.month!==I.month?Pr+oe[I.month-1]:"")+" "+I.year}return M.value[0].year}),Y=s(()=>{let P=[n.iconSet.datetime.arrowLeft,n.iconSet.datetime.arrowRight];return n.lang.rtl===!0?P.reverse():P}),ue=s(()=>e.firstDayOfWeek!==void 0?Number(e.firstDayOfWeek):y.value.firstDayOfWeek),K=s(()=>{let P=y.value.daysShort,I=ue.value;return I>0?P.slice(I,7).concat(P.slice(0,I)):P}),x=s(()=>{let P=p.value;return e.calendar!=="persian"?new Date(P.year,P.month,0).getDate():Rr(P.year,P.month)}),G=s(()=>typeof e.eventColor=="function"?e.eventColor:()=>e.eventColor),ae=s(()=>{if(e.navigationMinYearMonth===void 0)return null;let P=e.navigationMinYearMonth.split("/");return{year:parseInt(P[0],10),month:parseInt(P[1],10)}}),fe=s(()=>{if(e.navigationMaxYearMonth===void 0)return null;let P=e.navigationMaxYearMonth.split("/");return{year:parseInt(P[0],10),month:parseInt(P[1],10)}}),Se=s(()=>{let P={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return ae.value!==null&&ae.value.year>=p.value.year&&(P.year.prev=!1,ae.value.year===p.value.year&&ae.value.month>=p.value.month&&(P.month.prev=!1)),fe.value!==null&&fe.value.year<=p.value.year&&(P.year.next=!1,fe.value.year===p.value.year&&fe.value.month<=p.value.month&&(P.month.next=!1)),P}),me=s(()=>{let P={};return M.value.forEach(I=>{let oe=mn(I);P[oe]===void 0&&(P[oe]=[]),P[oe].push(I.day)}),P}),ze=s(()=>{let P={};return Q.value.forEach(I=>{let oe=mn(I.from),ge=mn(I.to);if(P[oe]===void 0&&(P[oe]=[]),P[oe].push({from:I.from.day,to:oe===ge?I.to.day:void 0,range:I}),oe<ge){let he,{year:nt,month:Ee}=I.from,Ge=Ee<12?{year:nt,month:Ee+1}:{year:nt+1,month:1};for(;(he=mn(Ge))<=ge;)P[he]===void 0&&(P[he]=[]),P[he].push({from:void 0,to:he===ge?I.to.day:void 0,range:I}),Ge.month++,Ge.month>12&&(Ge.year++,Ge.month=1)}}),P}),Be=s(()=>{if(V.value===null)return;let{init:P,initHash:I,final:oe,finalHash:ge}=V.value,[he,nt]=I<=ge?[P,oe]:[oe,P],Ee=mn(he),Ge=mn(nt);if(Ee!==xe.value&&Ge!==xe.value)return;let ut={};return Ee===xe.value?(ut.from=he.day,ut.includeFrom=!0):ut.from=1,Ge===xe.value?(ut.to=nt.day,ut.includeTo=!0):ut.to=x.value,ut}),xe=s(()=>mn(p.value)),Ie=s(()=>{let P={};if(e.options===void 0){for(let oe=1;oe<=x.value;oe++)P[oe]=!0;return P}let I=typeof e.options=="function"?e.options:oe=>e.options.includes(oe);for(let oe=1;oe<=x.value;oe++){let ge=xe.value+"/"+ot(oe);P[oe]=I(ge)}return P}),it=s(()=>{let P={};if(e.events===void 0)for(let I=1;I<=x.value;I++)P[I]=!1;else{let I=typeof e.events=="function"?e.events:oe=>e.events.includes(oe);for(let oe=1;oe<=x.value;oe++){let ge=xe.value+"/"+ot(oe);P[oe]=I(ge)===!0&&G.value(ge)}}return P}),Ke=s(()=>{let P,I,{year:oe,month:ge}=p.value;if(e.calendar!=="persian")P=new Date(oe,ge-1,1),I=new Date(oe,ge-1,0).getDate();else{let he=jl(oe,ge,1);P=new Date(he.gy,he.gm-1,he.gd);let nt=ge-1,Ee=oe;nt===0&&(nt=12,Ee--),I=Rr(Ee,nt)}return{days:P.getDay()-ue.value-1,endDay:I}}),ce=s(()=>{let P=[],{days:I,endDay:oe}=Ke.value,ge=I<0?I+7:I;if(ge<6)for(let Ee=oe-ge;Ee<=oe;Ee++)P.push({i:Ee,fill:!0});let he=P.length;for(let Ee=1;Ee<=x.value;Ee++){let Ge={i:Ee,event:it.value[Ee],classes:[]};Ie.value[Ee]===!0&&(Ge.in=!0,Ge.flat=!0),P.push(Ge)}if(me.value[xe.value]!==void 0&&me.value[xe.value].forEach(Ee=>{let Ge=he+Ee-1;Object.assign(P[Ge],{selected:!0,unelevated:!0,flat:!1,color:_.value,textColor:R.value})}),ze.value[xe.value]!==void 0&&ze.value[xe.value].forEach(Ee=>{if(Ee.from!==void 0){let Ge=he+Ee.from-1,ut=he+(Ee.to||x.value)-1;for(let uo=Ge;uo<=ut;uo++)Object.assign(P[uo],{range:Ee.range,unelevated:!0,color:_.value,textColor:R.value});Object.assign(P[Ge],{rangeFrom:!0,flat:!1}),Ee.to!==void 0&&Object.assign(P[ut],{rangeTo:!0,flat:!1})}else if(Ee.to!==void 0){let Ge=he+Ee.to-1;for(let ut=he;ut<=Ge;ut++)Object.assign(P[ut],{range:Ee.range,unelevated:!0,color:_.value,textColor:R.value});Object.assign(P[Ge],{flat:!1,rangeTo:!0})}else{let Ge=he+x.value-1;for(let ut=he;ut<=Ge;ut++)Object.assign(P[ut],{range:Ee.range,unelevated:!0,color:_.value,textColor:R.value})}}),Be.value!==void 0){let Ee=he+Be.value.from-1,Ge=he+Be.value.to-1;for(let ut=Ee;ut<=Ge;ut++)P[ut].color=_.value,P[ut].editRange=!0;Be.value.includeFrom===!0&&(P[Ee].editRangeFrom=!0),Be.value.includeTo===!0&&(P[Ge].editRangeTo=!0)}p.value.year===b.value.year&&p.value.month===b.value.month&&(P[he+b.value.day-1].today=!0);let nt=P.length%7;if(nt>0){let Ee=7-nt;for(let Ge=1;Ge<=Ee;Ge++)P.push({i:Ge,fill:!0})}return P.forEach(Ee=>{let Ge="q-date__calendar-item ";Ee.fill===!0?Ge+="q-date__calendar-item--fill":(Ge+=`q-date__calendar-item--${Ee.in===!0?"in":"out"}`,Ee.range!==void 0&&(Ge+=` q-date__range${Ee.rangeTo===!0?"-to":Ee.rangeFrom===!0?"-from":""}`),Ee.editRange===!0&&(Ge+=` q-date__edit-range${Ee.editRangeFrom===!0?"-from":""}${Ee.editRangeTo===!0?"-to":""}`),(Ee.range!==void 0||Ee.editRange===!0)&&(Ge+=` text-${Ee.color}`)),Ee.classes=Ge}),P}),ve=s(()=>e.disable===!0?{"aria-disabled":"true"}:{});j(()=>e.modelValue,P=>{if(g===P)g=0;else{let I=vt(C.value,y.value);et(I.year,I.month,I)}}),j(k,()=>{h.value!==null&&r.$el.contains(document.activeElement)===!0&&h.value.focus()}),j(()=>p.value.year+"|"+p.value.month,()=>{o("navigation",{year:p.value.year,month:p.value.month})}),j(q,P=>{re(P,y.value,"mask"),C.value=P}),j(S,P=>{re(C.value,P,"locale"),y.value=P});function te(){let{year:P,month:I,day:oe}=b.value,ge={...p.value,year:P,month:I,day:oe},he=me.value[mn(ge)];(he===void 0||he.includes(ge.day)===!1)&&Qo(ge),Ve(ge.year,ge.month)}function pe(P){gc(P)===!0&&(k.value=P)}function Fe(P,I){["month","year"].includes(P)&&(P==="month"?se:Z)(I===!0?-1:1)}function Ve(P,I){k.value="Calendar",et(P,I)}function Le(P,I){if(e.range===!1||!P){V.value=null;return}let oe=Object.assign({...p.value},P),ge=I!==void 0?Object.assign({...p.value},I):oe;V.value={init:oe,initHash:yo(oe),final:ge,finalHash:yo(ge)},Ve(oe.year,oe.month)}function at(){return e.calendar==="persian"?"YYYY/MM/DD":e.mask}function mt(P,I,oe){return fn(P,I,oe,e.calendar,{hour:0,minute:0,second:0,millisecond:0})}function vt(P,I){let oe=Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue?[e.modelValue]:[];if(oe.length===0)return ne();let ge=oe[oe.length-1],he=mt(ge.from!==void 0?ge.from:ge,P,I);return he.dateHash===null?ne():he}function ne(){let P,I;if(e.defaultYearMonth!==void 0){let oe=e.defaultYearMonth.split("/");P=parseInt(oe[0],10),I=parseInt(oe[1],10)}else{let oe=b.value!==void 0?b.value:c();P=oe.year,I=oe.month}return{year:P,month:I,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:P+"/"+ot(I)+"/01"}}function se(P){let I=p.value.year,oe=Number(p.value.month)+P;oe===13?(oe=1,I++):oe===0&&(oe=12,I--),et(I,oe),N.value===!0&&yt("month")}function Z(P){let I=Number(p.value.year)+P;et(I,p.value.month),N.value===!0&&yt("year")}function le(P){et(P,p.value.month),k.value=e.defaultView==="Years"?"Months":"Calendar",N.value===!0&&yt("year")}function Pe(P){et(p.value.year,P),k.value="Calendar",N.value===!0&&yt("month")}function He(P,I){let oe=me.value[I];(oe!==void 0&&oe.includes(P.day)===!0?wo:Qo)(P)}function ke(P){return{year:P.year,month:P.month,day:P.day}}function et(P,I,oe){if(ae.value!==null&&P<=ae.value.year&&((I<ae.value.month||P<ae.value.year)&&(I=ae.value.month),P=ae.value.year),fe.value!==null&&P>=fe.value.year&&((I>fe.value.month||P>fe.value.year)&&(I=fe.value.month),P=fe.value.year),oe!==void 0){let{hour:he,minute:nt,second:Ee,millisecond:Ge,timezoneOffset:ut,timeHash:uo}=oe;Object.assign(p.value,{hour:he,minute:nt,second:Ee,millisecond:Ge,timezoneOffset:ut,timeHash:uo})}let ge=P+"/"+ot(I)+"/01";ge!==p.value.dateHash&&(F.value=p.value.dateHash<ge==(n.lang.rtl!==!0)?"left":"right",P!==p.value.year&&(D.value=F.value),Ae(()=>{B.value=P-P%Bn-(P<0?Bn:0),Object.assign(p.value,{year:P,month:I,day:1,dateHash:ge})}))}function pt(P,I,oe){let ge=P!==null&&P.length===1&&e.multiple===!1?P[0]:P;g=ge;let{reason:he,details:nt}=Yt(I,oe);o("update:modelValue",ge,he,nt)}function yt(P){let I=M.value[0]!==void 0&&M.value[0].dateHash!==null?{...M.value[0]}:{...p.value};Ae(()=>{I.year=p.value.year,I.month=p.value.month;let oe=e.calendar!=="persian"?new Date(I.year,I.month,0).getDate():Rr(I.year,I.month);I.day=Math.min(Math.max(1,I.day),oe);let ge=lo(I);g=ge;let{details:he}=Yt("",I);o("update:modelValue",ge,P,he)})}function Yt(P,I){return I.from!==void 0?{reason:`${P}-range`,details:{...ke(I.target),from:ke(I.from),to:ke(I.to)}}:{reason:`${P}-day`,details:ke(I)}}function lo(P,I,oe){return P.from!==void 0?{from:de.value(P.from,I,oe),to:de.value(P.to,I,oe)}:de.value(P,I,oe)}function Qo(P){let I;if(e.multiple===!0)if(P.from!==void 0){let oe=yo(P.from),ge=yo(P.to),he=M.value.filter(Ee=>Ee.dateHash<oe||Ee.dateHash>ge),nt=Q.value.filter(({from:Ee,to:Ge})=>Ge.dateHash<oe||Ee.dateHash>ge);I=he.concat(nt).concat(P).map(Ee=>lo(Ee))}else{let oe=X.value.slice();oe.push(lo(P)),I=oe}else I=lo(P);pt(I,"add",P)}function wo(P){if(e.noUnset===!0)return;let I=null;if(e.multiple===!0&&Array.isArray(e.modelValue)===!0){let oe=lo(P);P.from!==void 0?I=e.modelValue.filter(ge=>ge.from!==void 0?ge.from!==oe.from&&ge.to!==oe.to:!0):I=e.modelValue.filter(ge=>ge!==oe),I.length===0&&(I=null)}pt(I,"remove",P)}function re(P,I,oe){let ge=M.value.concat(Q.value).map(he=>lo(he,P,I)).filter(he=>he.from!==void 0?he.from.dateHash!==null&&he.to.dateHash!==null:he.dateHash!==null);o("update:modelValue",(e.multiple===!0?ge:ge[0])||null,oe)}function be(){if(e.minimal!==!0)return a("div",{class:"q-date__header "+d.value},[a("div",{class:"relative-position"},[a(lt,{name:"q-transition--fade"},()=>a("div",{key:"h-yr-"+ee.value,class:"q-date__header-subtitle q-date__header-link "+(k.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:u.value,...l("vY",{onClick(){k.value="Years"},onKeyup(P){P.keyCode===13&&(k.value="Years")}})},[ee.value]))]),a("div",{class:"q-date__header-title relative-position flex no-wrap"},[a("div",{class:"relative-position col"},[a(lt,{name:"q-transition--fade"},()=>a("div",{key:"h-sub"+w.value,class:"q-date__header-title-label q-date__header-link "+(k.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:u.value,...l("vC",{onClick(){k.value="Calendar"},onKeyup(P){P.keyCode===13&&(k.value="Calendar")}})},[w.value]))]),e.todayBtn===!0?a(Oe,{class:"q-date__header-today self-start",icon:n.iconSet.datetime.today,flat:!0,size:"sm",round:!0,tabindex:u.value,onClick:te}):null])])}function $e({label:P,type:I,key:oe,dir:ge,goTo:he,boundaries:nt,cls:Ee}){return[a("div",{class:"row items-center q-date__arrow"},[a(Oe,{round:!0,dense:!0,size:"sm",flat:!0,icon:Y.value[0],tabindex:u.value,disable:nt.prev===!1,...l("go-#"+I,{onClick(){he(-1)}})})]),a("div",{class:"relative-position overflow-hidden flex flex-center"+Ee},[a(lt,{name:"q-transition--jump-"+ge},()=>a("div",{key:oe},[a(Oe,{flat:!0,dense:!0,noCaps:!0,label:P,tabindex:u.value,...l("view#"+I,{onClick:()=>{k.value=I}})})]))]),a("div",{class:"row items-center q-date__arrow"},[a(Oe,{round:!0,dense:!0,size:"sm",flat:!0,icon:Y.value[1],tabindex:u.value,disable:nt.next===!1,...l("go+#"+I,{onClick(){he(1)}})})])]}let De={Calendar:()=>[a("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[a("div",{class:"q-date__navigation row items-center no-wrap"},$e({label:y.value.months[p.value.month-1],type:"Months",key:p.value.month,dir:F.value,goTo:se,boundaries:Se.value.month,cls:" col"}).concat($e({label:p.value.year,type:"Years",key:p.value.year,dir:D.value,goTo:Z,boundaries:Se.value.year,cls:""}))),a("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},K.value.map(P=>a("div",{class:"q-date__calendar-item"},[a("div",P)]))),a("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[a(lt,{name:"q-transition--slide-"+F.value},()=>a("div",{key:xe.value,class:"q-date__calendar-days fit"},ce.value.map(P=>a("div",{class:P.classes},[P.in===!0?a(Oe,{class:P.today===!0?"q-date__today":"",dense:!0,flat:P.flat,unelevated:P.unelevated,color:P.color,textColor:P.textColor,label:P.i,tabindex:u.value,...l("day#"+P.i,{onClick:()=>{Ue(P.i)},onMouseover:()=>{St(P.i)}})},P.event!==!1?()=>a("div",{class:"q-date__event bg-"+P.event}):null):a("div",""+P.i)]))))])])],Months(){let P=p.value.year===b.value.year,I=ge=>ae.value!==null&&p.value.year===ae.value.year&&ae.value.month>ge||fe.value!==null&&p.value.year===fe.value.year&&fe.value.month<ge,oe=y.value.monthsShort.map((ge,he)=>{let nt=p.value.month===he+1;return a("div",{class:"q-date__months-item flex flex-center"},[a(Oe,{class:P===!0&&b.value.month===he+1?"q-date__today":null,flat:nt!==!0,label:ge,unelevated:nt,color:nt===!0?_.value:null,textColor:nt===!0?R.value:null,tabindex:u.value,disable:I(he+1),...l("month#"+he,{onClick:()=>{Pe(he+1)}})})])});return e.yearsInMonthView===!0&&oe.unshift(a("div",{class:"row no-wrap full-width"},[$e({label:p.value.year,type:"Years",key:p.value.year,dir:D.value,goTo:Z,boundaries:Se.value.year,cls:" col"})])),a("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},oe)},Years(){let P=B.value,I=P+Bn,oe=[],ge=he=>ae.value!==null&&ae.value.year>he||fe.value!==null&&fe.value.year<he;for(let he=P;he<=I;he++){let nt=p.value.year===he;oe.push(a("div",{class:"q-date__years-item flex flex-center"},[a(Oe,{key:"yr"+he,class:b.value.year===he?"q-date__today":null,flat:!nt,label:he,dense:!0,unelevated:nt,color:nt===!0?_.value:null,textColor:nt===!0?R.value:null,tabindex:u.value,disable:ge(he),...l("yr#"+he,{onClick:()=>{le(he)}})})]))}return a("div",{class:"q-date__view q-date__years flex flex-center"},[a("div",{class:"col-auto"},[a(Oe,{round:!0,dense:!0,flat:!0,icon:Y.value[0],tabindex:u.value,disable:ge(P),...l("y-",{onClick:()=>{B.value-=Bn}})})]),a("div",{class:"q-date__years-content col self-stretch row items-center"},oe),a("div",{class:"col-auto"},[a(Oe,{round:!0,dense:!0,flat:!0,icon:Y.value[1],tabindex:u.value,disable:ge(I),...l("y+",{onClick:()=>{B.value+=Bn}})})])])}};function Ue(P){let I={...p.value,day:P};if(e.range===!1){He(I,xe.value);return}if(V.value===null){let oe=ce.value.find(he=>he.fill!==!0&&he.i===P);if(e.noUnset!==!0&&oe.range!==void 0){wo({target:I,from:oe.range.from,to:oe.range.to});return}if(oe.selected===!0){wo(I);return}let ge=yo(I);V.value={init:I,initHash:ge,final:I,finalHash:ge},o("rangeStart",ke(I))}else{let oe=V.value.initHash,ge=yo(I),he=oe<=ge?{from:V.value.init,to:I}:{from:I,to:V.value.init};V.value=null,Qo(oe===ge?I:{target:I,...he}),o("rangeEnd",{from:ke(he.from),to:ke(he.to)})}}function St(P){if(V.value!==null){let I={...p.value,day:P};Object.assign(V.value,{final:I,finalHash:yo(I)})}}return Object.assign(r,{setToday:te,setView:pe,offsetCalendar:Fe,setCalendarTo:Ve,setEditingRange:Le}),()=>{let P=[a("div",{class:"q-date__content col relative-position"},[a(lt,{name:"q-transition--fade"},De[k.value])])],I=ie(t.default);return I!==void 0&&P.push(a("div",{class:"q-date__actions"},I)),e.name!==void 0&&e.disable!==!0&&m(P,"push"),a("div",{class:E.value,...ve.value},[be(),a("div",{ref:h,class:"q-date__main col column",tabindex:-1},P)])}}});function ha(e,t,o){let r;function n(){r!==void 0&&(tn.remove(r),r=void 0)}return ye(()=>{e.value===!0&&n()}),{removeFromHistory:n,addToHistory(){r={condition:()=>o.value===!0,handler:t},tn.add(r)}}}var ai=0,tu,ou,li,nu=!1,pc,bc,yc,Fn=null;function ch(e){dh(e)&&qe(e)}function dh(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;let t=Sl(e),o=e.shiftKey&&!e.deltaX,r=!o&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),n=o||r?e.deltaY:e.deltaX;for(let i=0;i<t.length;i++){let l=t[i];if(Fl(l,r))return r?n<0&&l.scrollTop===0?!0:n>0&&l.scrollTop+l.clientHeight===l.scrollHeight:n<0&&l.scrollLeft===0?!0:n>0&&l.scrollLeft+l.clientWidth===l.scrollWidth}return!0}function Sc(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function pa(e){nu!==!0&&(nu=!0,requestAnimationFrame(()=>{nu=!1;let{height:t}=e.target,{clientHeight:o,scrollTop:r}=document.scrollingElement;(li===void 0||t!==window.innerHeight)&&(li=o-t,document.scrollingElement.scrollTop=r),r>li&&(document.scrollingElement.scrollTop-=Math.ceil((r-li)/8))}))}function xc(e){let t=document.body,o=window.visualViewport!==void 0;if(e==="add"){let{overflowY:r,overflowX:n}=window.getComputedStyle(t);tu=un(window),ou=eo(window),pc=t.style.left,bc=t.style.top,yc=window.location.href,t.style.left=`-${tu}px`,t.style.top=`-${ou}px`,n!=="hidden"&&(n==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),r!=="hidden"&&(r==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,Me.is.ios===!0&&(o===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",pa,Je.passiveCapture),window.visualViewport.addEventListener("scroll",pa,Je.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Sc,Je.passiveCapture))}Me.is.desktop===!0&&Me.is.mac===!0&&window[`${e}EventListener`]("wheel",ch,Je.notPassive),e==="remove"&&(Me.is.ios===!0&&(o===!0?(window.visualViewport.removeEventListener("resize",pa,Je.passiveCapture),window.visualViewport.removeEventListener("scroll",pa,Je.passiveCapture)):window.removeEventListener("scroll",Sc,Je.passiveCapture)),t.classList.remove("q-body--prevent-scroll"),t.classList.remove("q-body--force-scrollbar-x"),t.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,t.style.left=pc,t.style.top=bc,window.location.href===yc&&window.scrollTo(tu,ou),li=void 0)}function ui(e){let t="add";if(e===!0){if(ai++,Fn!==null){clearTimeout(Fn),Fn=null;return}if(ai>1)return}else{if(ai===0||(ai--,ai>0))return;if(t="remove",Me.is.ios===!0&&Me.is.nativeMobile===!0){Fn!==null&&clearTimeout(Fn),Fn=setTimeout(()=>{xc(t),Fn=null},100);return}}xc(t)}function ba(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,ui(t))}}}var ya=0,fh={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},_c={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Io=A({name:"QDialog",inheritAttrs:!1,props:{...mo,...$o,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,position:{type:String,default:"standard",validator:e=>e==="standard"||["top","bottom","left","right"].includes(e)}},emits:[...vo,"shake","click","escapeKey"],setup(e,{slots:t,emit:o,attrs:r}){let n=U(),i=T(null),l=T(!1),u=T(!1),d=null,f=null,c,g,v=s(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:m}=ba(),{registerTimeout:h}=Jt(),{registerTick:C,removeTick:y}=Eo(),{transitionProps:q,transitionStyle:S}=ln(e,()=>_c[e.position][0],()=>_c[e.position][1]),{showPortal:b,hidePortal:p,portalIsAccessible:k,renderPortal:$}=ar(n,i,H,"dialog"),{hide:F}=go({showing:l,hideOnRouteChange:v,handleShow:R,handleHide:N,processOnMount:!0}),{addToHistory:D,removeFromHistory:L}=ha(l,F,v),B=s(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${fh[e.position]}`+(u.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),V=s(()=>l.value===!0&&e.seamless!==!0),E=s(()=>e.autoClose===!0?{onClick:O}:{}),_=s(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${V.value===!0?"modal":"seamless"}`,r.class]);j(()=>e.maximized,ee=>{l.value===!0&&de(ee)}),j(V,ee=>{m(ee),ee===!0?(cr(W),zi(Q)):(Rn(W),sr(Q))});function R(ee){D(),f=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,de(e.maximized),b(),u.value=!0,e.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),C(X)):y(),h(()=>{if(n.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){let{top:Y,bottom:ue}=document.activeElement.getBoundingClientRect(),{innerHeight:K}=window,x=window.visualViewport!==void 0?window.visualViewport.height:K;Y>0&&ue>x/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-x,ue>=K?1/0:Math.ceil(document.scrollingElement.scrollTop+ue-x/2))),document.activeElement.scrollIntoView()}g=!0,i.value.click(),g=!1}b(!0),u.value=!1,o("show",ee)},e.transitionDuration)}function N(ee){y(),L(),J(!0),u.value=!0,p(),f!==null&&(((ee&&ee.type.indexOf("key")===0?f.closest('[tabindex]:not([tabindex^="-"])'):void 0)||f).focus(),f=null),h(()=>{p(!0),u.value=!1,o("hide",ee)},e.transitionDuration)}function X(ee){ho(()=>{let Y=i.value;Y===null||Y.contains(document.activeElement)===!0||(Y=(ee!==""?Y.querySelector(ee):null)||Y.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Y.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Y.querySelector("[autofocus], [data-autofocus]")||Y,Y.focus({preventScroll:!0}))})}function M(ee){ee&&typeof ee.focus=="function"?ee.focus({preventScroll:!0}):X(),o("shake");let Y=i.value;Y!==null&&(Y.classList.remove("q-animate--scale"),Y.classList.add("q-animate--scale"),d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,i.value!==null&&(Y.classList.remove("q-animate--scale"),X())},170))}function Q(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&M():(o("escapeKey"),F()))}function J(ee){d!==null&&(clearTimeout(d),d=null),(ee===!0||l.value===!0)&&(de(!1),e.seamless!==!0&&(m(!1),Rn(W),sr(Q))),ee!==!0&&(f=null)}function de(ee){ee===!0?c!==!0&&(ya<1&&document.body.classList.add("q-body--dialog"),ya++,c=!0):c===!0&&(ya<2&&document.body.classList.remove("q-body--dialog"),ya--,c=!1)}function O(ee){g!==!0&&(F(ee),o("click",ee))}function w(ee){e.persistent!==!0&&e.noBackdropDismiss!==!0?F(ee):e.noShake!==!0&&M()}function W(ee){e.allowFocusOutside!==!0&&k.value===!0&&Bi(i.value,ee.target)!==!0&&X('[tabindex]:not([tabindex="-1"])')}Object.assign(n.proxy,{focus:X,shake:M,__updateRefocusTarget(ee){f=ee||null}}),ye(J);function H(){return a("div",{role:"dialog","aria-modal":V.value===!0?"true":"false",...r,class:_.value},[a(lt,{name:"q-transition--fade",appear:!0},()=>V.value===!0?a("div",{class:"q-dialog__backdrop fixed-full",style:S.value,"aria-hidden":"true",tabindex:-1,onClick:w}):null),a(lt,q.value,()=>l.value===!0?a("div",{ref:i,class:B.value,style:S.value,tabindex:-1,...E.value},ie(t.default)):null)])}return $}});var Cc=150,wc=A({name:"QDrawer",inheritAttrs:!1,props:{...mo,...Ce,side:{type:String,default:"left",validator:e=>["left","right"].includes(e)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:e=>["default","desktop","mobile"].includes(e),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...vo,"onLayout","miniState"],setup(e,{slots:t,emit:o,attrs:r}){let n=U(),{proxy:{$q:i}}=n,l=we(e,i),{preventBodyScroll:u}=ba(),{registerTimeout:d,removeTimeout:f}=Jt(),c=ht(Gt,Ze);if(c===Ze)return console.error("QDrawer needs to be child of QLayout"),Ze;let g,v=null,m,h=T(e.behavior==="mobile"||e.behavior!=="desktop"&&c.totalWidth.value<=e.breakpoint),C=s(()=>e.mini===!0&&h.value!==!0),y=s(()=>C.value===!0?e.miniWidth:e.width),q=T(e.showIfAbove===!0&&h.value===!1?!0:e.modelValue===!0),S=s(()=>e.persistent!==!0&&(h.value===!0||de.value===!0));function b(te,pe){if(F(),te!==!1&&c.animate(),Se(0),h.value===!0){let Fe=c.instances[X.value];Fe!==void 0&&Fe.belowBreakpoint===!0&&Fe.hide(!1),me(1),c.isContainer.value!==!0&&u(!0)}else me(0),te!==!1&&ze(!1);d(()=>{te!==!1&&ze(!0),pe!==!0&&o("show",te)},Cc)}function p(te,pe){D(),te!==!1&&c.animate(),me(0),Se(V.value*y.value),it(),pe!==!0?d(()=>{o("hide",te)},Cc):f()}let{show:k,hide:$}=go({showing:q,hideOnRouteChange:S,handleShow:b,handleHide:p}),{addToHistory:F,removeFromHistory:D}=ha(q,$,S),L={belowBreakpoint:h,hide:$},B=s(()=>e.side==="right"),V=s(()=>(i.lang.rtl===!0?-1:1)*(B.value===!0?1:-1)),E=T(0),_=T(!1),R=T(!1),N=T(y.value*V.value),X=s(()=>B.value===!0?"left":"right"),M=s(()=>q.value===!0&&h.value===!1&&e.overlay===!1?e.miniToOverlay===!0?e.miniWidth:y.value:0),Q=s(()=>e.overlay===!0||e.miniToOverlay===!0||c.view.value.indexOf(B.value?"R":"L")!==-1||i.platform.is.ios===!0&&c.isContainer.value===!0),J=s(()=>e.overlay===!1&&q.value===!0&&h.value===!1),de=s(()=>e.overlay===!0&&q.value===!0&&h.value===!1),O=s(()=>"fullscreen q-drawer__backdrop"+(q.value===!1&&_.value===!1?" hidden":"")),w=s(()=>({backgroundColor:`rgba(0,0,0,${E.value*.4})`})),W=s(()=>B.value===!0?c.rows.value.top[2]==="r":c.rows.value.top[0]==="l"),H=s(()=>B.value===!0?c.rows.value.bottom[2]==="r":c.rows.value.bottom[0]==="l"),ee=s(()=>{let te={};return c.header.space===!0&&W.value===!1&&(Q.value===!0?te.top=`${c.header.offset}px`:c.header.space===!0&&(te.top=`${c.header.size}px`)),c.footer.space===!0&&H.value===!1&&(Q.value===!0?te.bottom=`${c.footer.offset}px`:c.footer.space===!0&&(te.bottom=`${c.footer.size}px`)),te}),Y=s(()=>{let te={width:`${y.value}px`,transform:`translateX(${N.value}px)`};return h.value===!0?te:Object.assign(te,ee.value)}),ue=s(()=>"q-drawer__content fit "+(c.isContainer.value!==!0?"scroll":"overflow-auto")),K=s(()=>`q-drawer q-drawer--${e.side}`+(R.value===!0?" q-drawer--mini-animate":"")+(e.bordered===!0?" q-drawer--bordered":"")+(l.value===!0?" q-drawer--dark q-dark":"")+(_.value===!0?" no-transition":q.value===!0?"":" q-layout--prevent-focus")+(h.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${C.value===!0?"mini":"standard"}`+(Q.value===!0||J.value!==!0?" fixed":"")+(e.overlay===!0||e.miniToOverlay===!0?" q-drawer--on-top":"")+(W.value===!0?" q-drawer--top-padding":""))),x=s(()=>{let te=i.lang.rtl===!0?e.side:X.value;return[[Rt,xe,void 0,{[te]:!0,mouse:!0}]]}),G=s(()=>{let te=i.lang.rtl===!0?X.value:e.side;return[[Rt,Ie,void 0,{[te]:!0,mouse:!0}]]}),ae=s(()=>{let te=i.lang.rtl===!0?X.value:e.side;return[[Rt,Ie,void 0,{[te]:!0,mouse:!0,mouseAllDir:!0}]]});function fe(){ce(h,e.behavior==="mobile"||e.behavior!=="desktop"&&c.totalWidth.value<=e.breakpoint)}j(h,te=>{te===!0?(g=q.value,q.value===!0&&$(!1)):e.overlay===!1&&e.behavior!=="mobile"&&g!==!1&&(q.value===!0?(Se(0),me(0),it()):k(!1))}),j(()=>e.side,(te,pe)=>{c.instances[pe]===L&&(c.instances[pe]=void 0,c[pe].space=!1,c[pe].offset=0),c.instances[te]=L,c[te].size=y.value,c[te].space=J.value,c[te].offset=M.value}),j(c.totalWidth,()=>{(c.isContainer.value===!0||document.qScrollPrevented!==!0)&&fe()}),j(()=>e.behavior+e.breakpoint,fe),j(c.isContainer,te=>{q.value===!0&&u(te!==!0),te===!0&&fe()}),j(c.scrollbarWidth,()=>{Se(q.value===!0?0:void 0)}),j(M,te=>{Ke("offset",te)}),j(J,te=>{o("onLayout",te),Ke("space",te)}),j(B,()=>{Se()}),j(y,te=>{Se(),ve(e.miniToOverlay,te)}),j(()=>e.miniToOverlay,te=>{ve(te,y.value)}),j(()=>i.lang.rtl,()=>{Se()}),j(()=>e.mini,()=>{e.noMiniAnimation||e.modelValue===!0&&(Be(),c.animate())}),j(C,te=>{o("miniState",te)});function Se(te){te===void 0?Ae(()=>{te=q.value===!0?0:y.value,Se(V.value*te)}):(c.isContainer.value===!0&&B.value===!0&&(h.value===!0||Math.abs(te)===y.value)&&(te+=V.value*c.scrollbarWidth.value),N.value=te)}function me(te){E.value=te}function ze(te){let pe=te===!0?"remove":c.isContainer.value!==!0?"add":"";pe!==""&&document.body.classList[pe]("q-body--drawer-toggle")}function Be(){v!==null&&clearTimeout(v),n.proxy&&n.proxy.$el&&n.proxy.$el.classList.add("q-drawer--mini-animate"),R.value=!0,v=setTimeout(()=>{v=null,R.value=!1,n&&n.proxy&&n.proxy.$el&&n.proxy.$el.classList.remove("q-drawer--mini-animate")},150)}function xe(te){if(q.value!==!1)return;let pe=y.value,Fe=tt(te.distance.x,0,pe);if(te.isFinal===!0){Fe>=Math.min(75,pe)===!0?k():(c.animate(),me(0),Se(V.value*pe)),_.value=!1;return}Se((i.lang.rtl===!0?B.value!==!0:B.value)?Math.max(pe-Fe,0):Math.min(0,Fe-pe)),me(tt(Fe/pe,0,1)),te.isFirst===!0&&(_.value=!0)}function Ie(te){if(q.value!==!0)return;let pe=y.value,Fe=te.direction===e.side,Ve=(i.lang.rtl===!0?Fe!==!0:Fe)?tt(te.distance.x,0,pe):0;if(te.isFinal===!0){Math.abs(Ve)<Math.min(75,pe)===!0?(c.animate(),me(1),Se(0)):$(),_.value=!1;return}Se(V.value*Ve),me(tt(1-Ve/pe,0,1)),te.isFirst===!0&&(_.value=!0)}function it(){u(!1),ze(!0)}function Ke(te,pe){c.update(e.side,te,pe)}function ce(te,pe){te.value!==pe&&(te.value=pe)}function ve(te,pe){Ke("size",te===!0?e.miniWidth:pe)}return c.instances[e.side]=L,ve(e.miniToOverlay,y.value),Ke("space",J.value),Ke("offset",M.value),e.showIfAbove===!0&&e.modelValue!==!0&&q.value===!0&&e["onUpdate:modelValue"]!==void 0&&o("update:modelValue",!0),je(()=>{o("onLayout",J.value),o("miniState",C.value),g=e.showIfAbove===!0;let te=()=>{(q.value===!0?b:p)(!1,!0)};if(c.totalWidth.value!==0){Ae(te);return}m=j(c.totalWidth,()=>{m(),m=void 0,q.value===!1&&e.showIfAbove===!0&&h.value===!1?k(!1):te()})}),ye(()=>{m!==void 0&&m(),v!==null&&(clearTimeout(v),v=null),q.value===!0&&it(),c.instances[e.side]===L&&(c.instances[e.side]=void 0,Ke("size",0),Ke("offset",0),Ke("space",!1))}),()=>{let te=[];h.value===!0&&(e.noSwipeOpen===!1&&te.push($t(a("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),x.value)),te.push(Mt("div",{ref:"backdrop",class:O.value,style:w.value,"aria-hidden":"true",onClick:$},void 0,"backdrop",e.noSwipeBackdrop!==!0&&q.value===!0,()=>ae.value)));let pe=C.value===!0&&t.mini!==void 0,Fe=[a("div",{...r,key:""+pe,class:[ue.value,r.class]},pe===!0?t.mini():ie(t.default))];return e.elevated===!0&&q.value===!0&&Fe.push(a("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),te.push(Mt("aside",{ref:"content",class:K.value,style:Y.value},Fe,"contentclose",e.noSwipeClose!==!0&&h.value===!0,()=>G.value)),a("div",{class:"q-drawer-container"},te)}}});function kc(e,t){if(t&&e===t)return null;let o=e.nodeName.toLowerCase();if(["div","li","ul","ol","blockquote"].includes(o)===!0)return e;let r=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,n=r.display;return n==="block"||n==="table"?e:kc(e.parentNode)}function ru(e,t,o){return!e||e===document.body?!1:o===!0&&e===t||(t===document?document.body:t).contains(e.parentNode)}function qc(e,t,o){if(o||(o=document.createRange(),o.selectNode(e),o.setStart(e,0)),t.count===0)o.setEnd(e,t.count);else if(t.count>0)if(e.nodeType===Node.TEXT_NODE)e.textContent.length<t.count?t.count-=e.textContent.length:(o.setEnd(e,t.count),t.count=0);else for(let r=0;t.count!==0&&r<e.childNodes.length;r++)o=qc(e.childNodes[r],t,o);return o}var mh=/^https?:\/\//,si=class{constructor(t,o){this.el=t,this.eVm=o,this._range=null}get selection(){if(this.el){let t=document.getSelection();if(ru(t.anchorNode,this.el,!0)&&ru(t.focusNode,this.el,!0))return t}return null}get hasSelection(){return this.selection!==null?this.selection.toString().length!==0:!1}get range(){let t=this.selection;return t!==null&&t.rangeCount?t.getRangeAt(0):this._range}get parent(){let t=this.range;if(t!==null){let o=t.startContainer;return o.nodeType===document.ELEMENT_NODE?o:o.parentNode}return null}get blockParent(){let t=this.parent;return t!==null?kc(t,this.el):null}save(t=this.range){t!==null&&(this._range=t)}restore(t=this._range){let o=document.createRange(),r=document.getSelection();t!==null?(o.setStart(t.startContainer,t.startOffset),o.setEnd(t.endContainer,t.endOffset),r.removeAllRanges(),r.addRange(o)):(r.selectAllChildren(this.el),r.collapseToEnd())}savePosition(){let t=-1,o,r=document.getSelection(),n=this.el.parentNode;if(r.focusNode&&ru(r.focusNode,n))for(o=r.focusNode,t=r.focusOffset;o&&o!==n;)o!==this.el&&o.previousSibling?(o=o.previousSibling,t+=o.textContent.length):o=o.parentNode;this.savedPos=t}restorePosition(t=0){if(this.savedPos>0&&this.savedPos<t){let o=window.getSelection(),r=qc(this.el,{count:this.savedPos});r&&(r.collapse(!1),o.removeAllRanges(),o.addRange(r))}}hasParent(t,o){let r=o?this.parent:this.blockParent;return r!==null?r.nodeName.toLowerCase()===t.toLowerCase():!1}hasParents(t,o,r=this.parent){return r===null?!1:t.includes(r.nodeName.toLowerCase())===!0?!0:o===!0?this.hasParents(t,o,r.parentNode):!1}is(t,o){if(this.selection===null)return!1;switch(t){case"formatBlock":return o==="DIV"&&this.parent===this.el||this.hasParent(o,o==="PRE");case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(t)===o;case"fontName":let r=document.queryCommandValue(t);return r===`"${o}"`||r===o;case"fullscreen":return this.eVm.inFullscreen.value;case"viewsource":return this.eVm.isViewingSource.value;case void 0:return!1;default:let n=document.queryCommandState(t);return o!==void 0?n===o:n}}getParentAttribute(t){return this.parent!==null?this.parent.getAttribute(t):null}can(t){if(t==="outdent")return this.hasParents(["blockquote","li"],!0);if(t==="indent")return this.hasParents(["li"],!0);if(t==="link")return this.selection!==null||this.is("link")}apply(t,o,r=Ye){if(t==="formatBlock")["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"].includes(o)&&this.is(t,o)&&(t="outdent",o=null),o==="PRE"&&this.is(t,"PRE")&&(o="P");else if(t==="print"){r();let n=window.open();n.document.write(`
8
+ <!doctype html>
9
+ <html>
10
+ <head>
11
+ <title>Print - ${document.title}</title>
12
+ </head>
13
+ <body>
14
+ <div>${this.el.innerHTML}</div>
15
+ </body>
16
+ </html>
17
+ `),n.print(),n.close();return}else if(t==="link"){let n=this.getParentAttribute("href");if(n===null){let i=this.selectWord(this.selection),l=i?i.toString():"";if(!l.length&&(!this.range||!this.range.cloneContents().querySelector("img")))return;this.eVm.editLinkUrl.value=mh.test(l)?l:"https://",document.execCommand("createLink",!1,this.eVm.editLinkUrl.value),this.save(i.getRangeAt(0))}else this.eVm.editLinkUrl.value=n,this.range.selectNodeContents(this.parent),this.save();return}else if(t==="fullscreen"){this.eVm.toggleFullscreen(),r();return}else if(t==="viewsource"){this.eVm.isViewingSource.value=this.eVm.isViewingSource.value===!1,this.eVm.setContent(this.eVm.props.modelValue),r();return}document.execCommand(t,!1,o),r()}selectWord(t){if(t===null||t.isCollapsed!==!0||t.modify===void 0)return t;let o=document.createRange();o.setStart(t.anchorNode,t.anchorOffset),o.setEnd(t.focusNode,t.focusOffset);let r=o.collapsed?["backward","forward"]:["forward","backward"];o.detach();let n=t.focusNode,i=t.focusOffset;return t.collapse(t.anchorNode,t.anchorOffset),t.modify("move",r[0],"character"),t.modify("move",r[1],"word"),t.extend(n,i),t.modify("extend",r[1],"character"),t.modify("extend",r[0],"word"),t}};var Sa=A({name:"QTooltip",inheritAttrs:!1,props:{...or,...mo,...$o,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{default:"jump-down"},transitionHide:{default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:mr},self:{type:String,default:"top middle",validator:mr},offset:{type:Array,default:()=>[14,14],validator:Hi},scrollTarget:{default:void 0},delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...vo],setup(e,{slots:t,emit:o,attrs:r}){let n,i,l=U(),{proxy:{$q:u}}=l,d=T(null),f=T(!1),c=s(()=>vr(e.anchor,u.lang.rtl)),g=s(()=>vr(e.self,u.lang.rtl)),v=s(()=>e.persistent!==!0),{registerTick:m,removeTick:h}=Eo(),{registerTimeout:C}=Jt(),{transitionProps:y,transitionStyle:q}=ln(e),{localScrollTarget:S,changeScrollEvent:b,unconfigureScrollTarget:p}=Vi(e,de),{anchorEl:k,canShow:$,anchorEvents:F}=nr({showing:f,configureAnchorEl:J}),{show:D,hide:L}=go({showing:f,canShow:$,handleShow:_,handleHide:R,hideOnRouteChange:v,processOnMount:!0});Object.assign(F,{delayShow:M,delayHide:Q});let{showPortal:B,hidePortal:V,renderPortal:E}=ar(l,d,w,"tooltip");if(u.platform.is.mobile===!0){let W={anchorEl:k,innerRef:d,onClickOutside(ee){return L(ee),ee.target.classList.contains("q-dialog__backdrop")&&qe(ee),!0}},H=s(()=>e.modelValue===null&&e.persistent!==!0&&f.value===!0);j(H,ee=>{(ee===!0?Ni:fr)(W)}),ye(()=>{fr(W)})}function _(W){B(),m(()=>{i=new MutationObserver(()=>X()),i.observe(d.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),X(),de()}),n===void 0&&(n=j(()=>u.screen.width+"|"+u.screen.height+"|"+e.self+"|"+e.anchor+"|"+u.lang.rtl,X)),C(()=>{B(!0),o("show",W)},e.transitionDuration)}function R(W){h(),V(),N(),C(()=>{V(!0),o("hide",W)},e.transitionDuration)}function N(){i!==void 0&&(i.disconnect(),i=void 0),n!==void 0&&(n(),n=void 0),p(),qt(F,"tooltipTemp")}function X(){Jr({targetEl:d.value,offset:e.offset,anchorEl:k.value,anchorOrigin:c.value,selfOrigin:g.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function M(W){if(u.platform.is.mobile===!0){Ot(),document.body.classList.add("non-selectable");let H=k.value,ee=["touchmove","touchcancel","touchend","click"].map(Y=>[H,Y,"delayHide","passiveCapture"]);dt(F,"tooltipTemp",ee)}C(()=>{D(W)},e.delay)}function Q(W){u.platform.is.mobile===!0&&(qt(F,"tooltipTemp"),Ot(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),C(()=>{L(W)},e.hideDelay)}function J(){if(e.noParentEvent===!0||k.value===null)return;let W=u.platform.is.mobile===!0?[[k.value,"touchstart","delayShow","passive"]]:[[k.value,"mouseenter","delayShow","passive"],[k.value,"mouseleave","delayHide","passive"]];dt(F,"anchor",W)}function de(){if(k.value!==null||e.scrollTarget!==void 0){S.value=Et(k.value,e.scrollTarget);let W=e.noParentEvent===!0?X:L;b(S.value,W)}}function O(){return f.value===!0?a("div",{...r,ref:d,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",r.class],style:[r.style,q.value],role:"tooltip"},ie(t.default)):null}function w(){return a(lt,y.value,O)}return ye(N),Object.assign(l.proxy,{updatePosition:X}),E}});var No=A({name:"QItem",props:{...Ce,...po,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:o}){let{proxy:{$q:r}}=U(),n=we(e,r),{hasLink:i,linkAttrs:l,linkClass:u,linkTag:d,navigateOnClick:f}=nn(),c=T(null),g=T(null),v=s(()=>e.clickable===!0||i.value===!0||e.tag==="label"),m=s(()=>e.disable!==!0&&v.value===!0),h=s(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(n.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?u.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(m.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),C=s(()=>e.insetLevel===void 0?null:{["padding"+(r.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function y(b){m.value===!0&&(g.value!==null&&(b.qKeyEvent!==!0&&document.activeElement===c.value?g.value.focus():document.activeElement===g.value&&c.value.focus()),f(b))}function q(b){if(m.value===!0&&Tt(b,[13,32])===!0){qe(b),b.qKeyEvent=!0;let p=new MouseEvent("click",b);p.qKeyEvent=!0,c.value.dispatchEvent(p)}o("keyup",b)}function S(){let b=Mo(t.default,[]);return m.value===!0&&b.unshift(a("div",{class:"q-focus-helper",tabindex:-1,ref:g})),b}return()=>{let b={ref:c,class:h.value,style:C.value,role:"listitem",onClick:y,onKeyup:q};return m.value===!0?(b.tabindex=e.tabindex||"0",Object.assign(b,l.value)):v.value===!0&&(b["aria-disabled"]="true"),a(d.value,b,S())}}});var oo=A({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){let o=s(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>a("div",{class:o.value},ie(t.default))}});function Tc(e,t,o){t.handler?t.handler(e,o,o.caret):o.runCmd(t.cmd,t.param)}function iu(e){return a("div",{class:"q-editor__toolbar-group"},e)}function Mc(e,t,o,r=!1){let n=r||(t.type==="toggle"?t.toggled?t.toggled(e):t.cmd&&e.caret.is(t.cmd,t.param):!1),i=[];if(t.tip&&e.$q.platform.is.desktop){let l=t.key?a("div",[a("small",`(CTRL + ${String.fromCharCode(t.key)})`)]):null;i.push(a(Sa,{delay:1e3},()=>[a("div",{innerHTML:t.tip}),l]))}return a(Oe,{...e.buttonProps.value,icon:t.icon!==null?t.icon:void 0,color:n?t.toggleColor||e.props.toolbarToggleColor:t.color||e.props.toolbarColor,textColor:n&&!e.props.toolbarPush?null:t.textColor||e.props.toolbarTextColor,label:t.label,disable:t.disable?typeof t.disable=="function"?t.disable(e):!0:!1,size:"sm",onClick(l){o&&o(),Tc(l,t,e)}},()=>i)}function vh(e,t){let o=t.list==="only-icons",r=t.label,n=t.icon!==null?t.icon:void 0,i,l;function u(){f.component.proxy.hide()}if(o)l=t.options.map(c=>{let g=c.type===void 0?e.caret.is(c.cmd,c.param):!1;return g&&(r=c.tip,n=c.icon!==null?c.icon:void 0),Mc(e,c,u,g)}),i=e.toolbarBackgroundClass.value,l=[iu(l)];else{let c=e.props.toolbarToggleColor!==void 0?`text-${e.props.toolbarToggleColor}`:null,g=e.props.toolbarTextColor!==void 0?`text-${e.props.toolbarTextColor}`:null,v=t.list==="no-icons";l=t.options.map(m=>{let h=m.disable?m.disable(e):!1,C=m.type===void 0?e.caret.is(m.cmd,m.param):!1;C&&(r=m.tip,n=m.icon!==null?m.icon:void 0);let y=m.htmlTip;return a(No,{active:C,activeClass:c,clickable:!0,disable:h,dense:!0,onClick(q){u(),e.contentRef.value!==null&&e.contentRef.value.focus(),e.caret.restore(),Tc(q,m,e)}},()=>[v===!0?null:a(oo,{class:C?c:g,side:!0},()=>a(Re,{name:m.icon!==null?m.icon:void 0})),a(oo,y?()=>a("div",{class:"text-no-wrap",innerHTML:m.htmlTip}):m.tip?()=>a("div",{class:"text-no-wrap"},m.tip):void 0)])}),i=[e.toolbarBackgroundClass.value,g]}let d=t.highlight&&r!==t.label,f=a(ji,{...e.buttonProps.value,noCaps:!0,noWrap:!0,color:d?e.props.toolbarToggleColor:e.props.toolbarColor,textColor:d&&!e.props.toolbarPush?null:e.props.toolbarTextColor,label:t.fixedLabel?t.label:r,icon:t.fixedIcon?t.icon!==null?t.icon:void 0:n,contentClass:i,onShow:c=>e.emit("dropdownShow",c),onHide:c=>e.emit("dropdownHide",c),onBeforeShow:c=>e.emit("dropdownBeforeShow",c),onBeforeHide:c=>e.emit("dropdownBeforeHide",c)},()=>l);return f}function Rc(e){if(e.caret)return e.buttons.value.filter(t=>!e.isViewingSource.value||t.find(o=>o.cmd==="viewsource")).map(t=>iu(t.map(o=>e.isViewingSource.value&&o.cmd!=="viewsource"?!1:o.type==="slot"?ie(e.slots[o.slot]):o.type==="dropdown"?vh(e,o):Mc(e,o))))}function Pc(e,t,o,r={}){let n=Object.keys(r);if(n.length===0)return{};let i={default_font:{cmd:"fontName",param:e,icon:o,tip:t}};return n.forEach(l=>{let u=r[l];i[l]={cmd:"fontName",param:u,icon:o,tip:u,htmlTip:`<font face="${u}">${u}</font>`}}),i}function Ac(e){if(e.caret){let t=e.props.toolbarColor||e.props.toolbarTextColor,o=e.editLinkUrl.value,r=()=>{e.caret.restore(),o!==e.editLinkUrl.value&&document.execCommand("createLink",!1,o===""?" ":o),e.editLinkUrl.value=null};return[a("div",{class:`q-mx-xs text-${t}`},`${e.$q.lang.editor.url}: `),a("input",{key:"qedt_btm_input",class:"col q-editor__link-input",value:o,onInput:n=>{rt(n),o=n.target.value},onKeydown:n=>{if(no(n)!==!0)switch(n.keyCode){case 13:return ft(n),r();case 27:ft(n),e.caret.restore(),(!e.editLinkUrl.value||e.editLinkUrl.value==="https://")&&document.execCommand("unlink"),e.editLinkUrl.value=null;break}}}),iu([a(Oe,{key:"qedt_btm_rem",tabindex:-1,...e.buttonProps.value,label:e.$q.lang.label.remove,noCaps:!0,onClick:()=>{e.caret.restore(),document.execCommand("unlink"),e.editLinkUrl.value=null}}),a(Oe,{key:"qedt_btm_upd",...e.buttonProps.value,label:e.$q.lang.label.update,noCaps:!0,onClick:r})])]}}var $c=/^on[A-Z]/;function xa(e,t){let o={listeners:T({}),attributes:T({})};function r(){let n={},i={};for(let l in e)l!=="class"&&l!=="style"&&$c.test(l)===!1&&(n[l]=e[l]);for(let l in t.props)$c.test(l)===!0&&(i[l]=t.props[l]);o.attributes.value=n,o.listeners.value=i}return ko(r),r(),o}var gh=Object.prototype.toString,au=Object.prototype.hasOwnProperty,hh=new Set(["Boolean","Number","String","Function","Array","Date","RegExp"].map(e=>"[object "+e+"]"));function Ec(e){if(e!==Object(e)||hh.has(gh.call(e))===!0||e.constructor&&au.call(e,"constructor")===!1&&au.call(e.constructor.prototype,"isPrototypeOf")===!1)return!1;let t;for(t in e);return t===void 0||au.call(e,t)}function vn(){let e,t,o,r,n,i,l=arguments[0]||{},u=1,d=!1,f=arguments.length;for(typeof l=="boolean"&&(d=l,l=arguments[1]||{},u=2),Object(l)!==l&&typeof l!="function"&&(l={}),f===u&&(l=this,u--);u<f;u++)if((e=arguments[u])!==null)for(t in e)o=l[t],r=e[t],l!==r&&(d===!0&&r&&((n=Array.isArray(r))||Ec(r)===!0)?(n===!0?i=Array.isArray(o)===!0?o:[]:i=Ec(o)===!0?o:{},l[t]=vn(d,i,r)):r!==void 0&&(l[t]=r));return l}var Bc=A({name:"QEditor",props:{...Ce,...Cr,modelValue:{type:String,required:!0},readonly:Boolean,disable:Boolean,minHeight:{type:String,default:"10rem"},maxHeight:String,height:String,definitions:Object,fonts:Object,placeholder:String,toolbar:{type:Array,validator:e=>e.length===0||e.every(t=>t.length),default(){return[["left","center","right","justify"],["bold","italic","underline","strike"],["undo","redo"]]}},toolbarColor:String,toolbarBg:String,toolbarTextColor:String,toolbarToggleColor:{type:String,default:"primary"},toolbarOutline:Boolean,toolbarPush:Boolean,toolbarRounded:Boolean,paragraphTag:{type:String,validator:e=>["div","p"].includes(e),default:"div"},contentStyle:Object,contentClass:[Object,Array,String],square:Boolean,flat:Boolean,dense:Boolean},emits:[...wr,"update:modelValue","keydown","click","mouseup","keyup","touchend","focus","blur","dropdownShow","dropdownHide","dropdownBeforeShow","dropdownBeforeHide","linkShow","linkHide"],setup(e,{slots:t,emit:o,attrs:r}){let{proxy:n,vnode:i}=U(),{$q:l}=n,u=we(e,l),{inFullscreen:d,toggleFullscreen:f}=kr(),c=xa(r,i),g=T(null),v=T(null),m=T(null),h=T(!1),C=s(()=>!e.readonly&&!e.disable),y,q,S=e.modelValue;document.execCommand("defaultParagraphSeparator",!1,e.paragraphTag),y=window.getComputedStyle(document.body).fontFamily;let b=s(()=>e.toolbarBg?` bg-${e.toolbarBg}`:""),p=s(()=>({type:"a",flat:e.toolbarOutline!==!0&&e.toolbarPush!==!0,noWrap:!0,outline:e.toolbarOutline,push:e.toolbarPush,rounded:e.toolbarRounded,dense:!0,color:e.toolbarColor,disable:!C.value,size:"sm"})),k=s(()=>{let K=l.lang.editor,x=l.iconSet.editor;return{bold:{cmd:"bold",icon:x.bold,tip:K.bold,key:66},italic:{cmd:"italic",icon:x.italic,tip:K.italic,key:73},strike:{cmd:"strikeThrough",icon:x.strikethrough,tip:K.strikethrough,key:83},underline:{cmd:"underline",icon:x.underline,tip:K.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:x.unorderedList,tip:K.unorderedList},ordered:{cmd:"insertOrderedList",icon:x.orderedList,tip:K.orderedList},subscript:{cmd:"subscript",icon:x.subscript,tip:K.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:x.superscript,tip:K.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",disable:G=>G.caret&&!G.caret.can("link"),icon:x.hyperlink,tip:K.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:x.toggleFullscreen,tip:K.toggleFullscreen,key:70},viewsource:{cmd:"viewsource",icon:x.viewSource,tip:K.viewSource},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:x.quote,tip:K.quote,key:81},left:{cmd:"justifyLeft",icon:x.left,tip:K.left},center:{cmd:"justifyCenter",icon:x.center,tip:K.center},right:{cmd:"justifyRight",icon:x.right,tip:K.right},justify:{cmd:"justifyFull",icon:x.justify,tip:K.justify},print:{type:"no-state",cmd:"print",icon:x.print,tip:K.print,key:80},outdent:{type:"no-state",disable:G=>G.caret&&!G.caret.can("outdent"),cmd:"outdent",icon:x.outdent,tip:K.outdent},indent:{type:"no-state",disable:G=>G.caret&&!G.caret.can("indent"),cmd:"indent",icon:x.indent,tip:K.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:x.removeFormat,tip:K.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:x.hr,tip:K.hr},undo:{type:"no-state",cmd:"undo",icon:x.undo,tip:K.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:x.redo,tip:K.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:x.heading1||x.heading,tip:K.heading1,htmlTip:`<h1 class="q-ma-none">${K.heading1}</h1>`},h2:{cmd:"formatBlock",param:"H2",icon:x.heading2||x.heading,tip:K.heading2,htmlTip:`<h2 class="q-ma-none">${K.heading2}</h2>`},h3:{cmd:"formatBlock",param:"H3",icon:x.heading3||x.heading,tip:K.heading3,htmlTip:`<h3 class="q-ma-none">${K.heading3}</h3>`},h4:{cmd:"formatBlock",param:"H4",icon:x.heading4||x.heading,tip:K.heading4,htmlTip:`<h4 class="q-ma-none">${K.heading4}</h4>`},h5:{cmd:"formatBlock",param:"H5",icon:x.heading5||x.heading,tip:K.heading5,htmlTip:`<h5 class="q-ma-none">${K.heading5}</h5>`},h6:{cmd:"formatBlock",param:"H6",icon:x.heading6||x.heading,tip:K.heading6,htmlTip:`<h6 class="q-ma-none">${K.heading6}</h6>`},p:{cmd:"formatBlock",param:e.paragraphTag,icon:x.heading,tip:K.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:x.code,htmlTip:`<code>${K.code}</code>`},"size-1":{cmd:"fontSize",param:"1",icon:x.size1||x.size,tip:K.size1,htmlTip:`<font size="1">${K.size1}</font>`},"size-2":{cmd:"fontSize",param:"2",icon:x.size2||x.size,tip:K.size2,htmlTip:`<font size="2">${K.size2}</font>`},"size-3":{cmd:"fontSize",param:"3",icon:x.size3||x.size,tip:K.size3,htmlTip:`<font size="3">${K.size3}</font>`},"size-4":{cmd:"fontSize",param:"4",icon:x.size4||x.size,tip:K.size4,htmlTip:`<font size="4">${K.size4}</font>`},"size-5":{cmd:"fontSize",param:"5",icon:x.size5||x.size,tip:K.size5,htmlTip:`<font size="5">${K.size5}</font>`},"size-6":{cmd:"fontSize",param:"6",icon:x.size6||x.size,tip:K.size6,htmlTip:`<font size="6">${K.size6}</font>`},"size-7":{cmd:"fontSize",param:"7",icon:x.size7||x.size,tip:K.size7,htmlTip:`<font size="7">${K.size7}</font>`}}}),$=s(()=>{let K=e.definitions||{},x=e.definitions||e.fonts?vn(!0,{},k.value,K,Pc(y,l.lang.editor.defaultFont,l.iconSet.editor.font,e.fonts)):k.value;return e.toolbar.map(G=>G.map(ae=>{if(ae.options)return{type:"dropdown",icon:ae.icon,label:ae.label,size:"sm",dense:!0,fixedLabel:ae.fixedLabel,fixedIcon:ae.fixedIcon,highlight:ae.highlight,list:ae.list,options:ae.options.map(Se=>x[Se])};let fe=x[ae];return fe?fe.type==="no-state"||K[ae]&&(fe.cmd===void 0||k.value[fe.cmd]&&k.value[fe.cmd].type==="no-state")?fe:Object.assign({type:"toggle"},fe):{type:"slot",slot:ae}}))}),F={$q:l,props:e,slots:t,emit:o,inFullscreen:d,toggleFullscreen:f,runCmd:H,isViewingSource:h,editLinkUrl:m,toolbarBackgroundClass:b,buttonProps:p,contentRef:v,buttons:$,setContent:W};j(()=>e.modelValue,K=>{S!==K&&(S=K,W(K,!0))}),j(m,K=>{o(`link${K?"Show":"Hide"}`)});let D=s(()=>e.toolbar&&e.toolbar.length!==0),L=s(()=>{let K={},x=G=>{G.key&&(K[G.key]={cmd:G.cmd,param:G.param})};return $.value.forEach(G=>{G.forEach(ae=>{ae.options?ae.options.forEach(x):x(ae)})}),K}),B=s(()=>d.value?e.contentStyle:[{minHeight:e.minHeight,height:e.height,maxHeight:e.maxHeight},e.contentStyle]),V=s(()=>`q-editor q-editor--${h.value===!0?"source":"default"}`+(e.disable===!0?" disabled":"")+(d.value===!0?" fullscreen column":"")+(e.square===!0?" q-editor--square no-border-radius":"")+(e.flat===!0?" q-editor--flat":"")+(e.dense===!0?" q-editor--dense":"")+(u.value===!0?" q-editor--dark q-dark":"")),E=s(()=>[e.contentClass,"q-editor__content",{col:d.value,"overflow-auto":d.value||e.maxHeight}]),_=s(()=>e.disable===!0?{"aria-disabled":"true"}:{});function R(){if(v.value!==null){let K=`inner${h.value===!0?"Text":"HTML"}`,x=v.value[K];x!==e.modelValue&&(S=x,o("update:modelValue",x))}}function N(K){if(o("keydown",K),K.ctrlKey!==!0||no(K)===!0){ee();return}let x=K.keyCode,G=L.value[x];if(G!==void 0){let{cmd:ae,param:fe}=G;qe(K),H(ae,fe,!1)}}function X(K){ee(),o("click",K)}function M(K){if(v.value!==null){let{scrollTop:x,scrollHeight:G}=v.value;q=G-x}F.caret.save(),o("blur",K)}function Q(K){Ae(()=>{v.value!==null&&q!==void 0&&(v.value.scrollTop=v.value.scrollHeight-q)}),o("focus",K)}function J(K){let x=g.value;if(x!==null&&x.contains(K.target)===!0&&(K.relatedTarget===null||x.contains(K.relatedTarget)!==!0)){let G=`inner${h.value===!0?"Text":"HTML"}`;F.caret.restorePosition(v.value[G].length),ee()}}function de(K){let x=g.value;x!==null&&x.contains(K.target)===!0&&(K.relatedTarget===null||x.contains(K.relatedTarget)!==!0)&&(F.caret.savePosition(),ee())}function O(){q=void 0}function w(K){F.caret.save()}function W(K,x){if(v.value!==null){x===!0&&F.caret.savePosition();let G=`inner${h.value===!0?"Text":"HTML"}`;v.value[G]=K,x===!0&&(F.caret.restorePosition(v.value[G].length),ee())}}function H(K,x,G=!0){Y(),F.caret.restore(),F.caret.apply(K,x,()=>{Y(),F.caret.save(),G&&ee()})}function ee(){setTimeout(()=>{m.value=null,n.$forceUpdate()},1)}function Y(){ho(()=>{v.value!==null&&v.value.focus({preventScroll:!0})})}function ue(){return v.value}return je(()=>{F.caret=n.caret=new si(v.value,F),W(e.modelValue),ee(),document.addEventListener("selectionchange",w)}),ye(()=>{document.removeEventListener("selectionchange",w)}),Object.assign(n,{runCmd:H,refreshToolbar:ee,focus:Y,getContentEl:ue}),()=>{let K;if(D.value){let x=[a("div",{key:"qedt_top",class:"q-editor__toolbar row no-wrap scroll-x"+b.value},Rc(F))];m.value!==null&&x.push(a("div",{key:"qedt_btm",class:"q-editor__toolbar row no-wrap items-center scroll-x"+b.value},Ac(F))),K=a("div",{key:"toolbar_ctainer",class:"q-editor__toolbars-container"},x)}return a("div",{ref:g,class:V.value,style:{height:d.value===!0?"100%":null},..._.value,onFocusin:J,onFocusout:de},[K,a("div",{ref:v,style:B.value,class:E.value,contenteditable:C.value,placeholder:e.placeholder,...c.listeners.value,onInput:R,onKeydown:N,onClick:X,onBlur:M,onFocus:Q,onMousedown:O,onTouchstartPassive:O})])}}});var Ln=A({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){let o=s(()=>parseInt(e.lines,10)),r=s(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(o.value===1?" ellipsis":"")),n=s(()=>e.lines!==void 0&&o.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":o.value}:null);return()=>a("div",{style:n.value,class:r.value},ie(t.default))}});var gn=A({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(e,{slots:t,emit:o}){let r=!1,n,i,l=null,u=null,d,f;function c(){n&&n(),n=null,r=!1,l!==null&&(clearTimeout(l),l=null),u!==null&&(clearTimeout(u),u=null),i!==void 0&&i.removeEventListener("transitionend",d),d=null}function g(C,y,q){y!==void 0&&(C.style.height=`${y}px`),C.style.transition=`height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`,r=!0,n=q}function v(C,y){C.style.overflowY=null,C.style.height=null,C.style.transition=null,c(),y!==f&&o(y)}function m(C,y){let q=0;i=C,r===!0?(c(),q=C.offsetHeight===C.scrollHeight?0:void 0):(f="hide",C.style.overflowY="hidden"),g(C,q,y),l=setTimeout(()=>{l=null,C.style.height=`${C.scrollHeight}px`,d=S=>{u=null,(Object(S)!==S||S.target===C)&&v(C,"show")},C.addEventListener("transitionend",d),u=setTimeout(d,e.duration*1.1)},100)}function h(C,y){let q;i=C,r===!0?c():(f="show",C.style.overflowY="hidden",q=C.scrollHeight),g(C,q,y),l=setTimeout(()=>{l=null,C.style.height=0,d=S=>{u=null,(Object(S)!==S||S.target===C)&&v(C,"hide")},C.addEventListener("transitionend",d),u=setTimeout(d,e.duration*1.1)},100)}return ye(()=>{r===!0&&c()}),()=>a(lt,{css:!1,appear:e.appear,onEnter:m,onLeave:h},t.default)}});var ph={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},lu={xs:2,sm:4,md:8,lg:16,xl:24},io=A({name:"QSeparator",props:{...Ce,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){let t=U(),o=we(e,t.proxy.$q),r=s(()=>e.vertical===!0?"vertical":"horizontal"),n=s(()=>` q-separator--${r.value}`),i=s(()=>e.inset!==!1?`${n.value}-${ph[e.inset]}`:""),l=s(()=>`q-separator${n.value}${i.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(o.value===!0?" q-separator--dark":"")),u=s(()=>{let d={};if(e.size!==void 0&&(d[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){let f=e.spaced===!0?`${lu.md}px`:e.spaced in lu?`${lu[e.spaced]}px`:e.spaced,c=e.vertical===!0?["Left","Right"]:["Top","Bottom"];d[`margin${c[0]}`]=d[`margin${c[1]}`]=f}return d});return()=>a("hr",{class:l.value,style:u.value,"aria-orientation":r.value})}});var Vn=Pu({}),bh=Object.keys(po),Fc=A({name:"QExpansionItem",props:{...po,...mo,...Ce,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:Number,headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...vo,"click","afterShow","afterHide"],setup(e,{slots:t,emit:o}){let{proxy:{$q:r}}=U(),n=we(e,r),i=T(e.modelValue!==null?e.modelValue:e.defaultOpened),l=T(null),u=sn(),{show:d,hide:f,toggle:c}=go({showing:i}),g,v,m=s(()=>`q-expansion-item q-item-type q-expansion-item--${i.value===!0?"expanded":"collapsed"} q-expansion-item--${e.popup===!0?"popup":"standard"}`),h=s(()=>e.contentInsetLevel===void 0?null:{["padding"+(r.lang.rtl===!0?"Right":"Left")]:e.contentInsetLevel*56+"px"}),C=s(()=>e.disable!==!0&&(e.href!==void 0||e.to!==void 0&&e.to!==null&&e.to!=="")),y=s(()=>{let M={};return bh.forEach(Q=>{M[Q]=e[Q]}),M}),q=s(()=>C.value===!0||e.expandIconToggle!==!0),S=s(()=>e.expandedIcon!==void 0&&i.value===!0?e.expandedIcon:e.expandIcon||r.iconSet.expansionItem[e.denseToggle===!0?"denseIcon":"icon"]),b=s(()=>e.disable!==!0&&(C.value===!0||e.expandIconToggle===!0)),p=s(()=>({expanded:i.value===!0,detailsId:e.targetUid,toggle:c,show:d,hide:f})),k=s(()=>{let M=e.toggleAriaLabel!==void 0?e.toggleAriaLabel:r.lang.label[i.value===!0?"collapse":"expand"](e.label);return{role:"button","aria-expanded":i.value===!0?"true":"false","aria-controls":u.value,"aria-label":M}});j(()=>e.group,M=>{v!==void 0&&v(),M!==void 0&&V()});function $(M){C.value!==!0&&c(M),o("click",M)}function F(M){M.keyCode===13&&D(M,!0)}function D(M,Q){Q!==!0&&l.value!==null&&l.value.focus(),c(M),qe(M)}function L(){o("afterShow")}function B(){o("afterHide")}function V(){g===void 0&&(g=Xo()),i.value===!0&&(Vn[e.group]=g);let M=j(i,J=>{J===!0?Vn[e.group]=g:Vn[e.group]===g&&delete Vn[e.group]}),Q=j(()=>Vn[e.group],(J,de)=>{de===g&&J!==void 0&&J!==g&&f()});v=()=>{M(),Q(),Vn[e.group]===g&&delete Vn[e.group],v=void 0}}function E(){let M={class:[`q-focusable relative-position cursor-pointer${e.denseToggle===!0&&e.switchToggleSide===!0?" items-end":""}`,e.expandIconClass],side:e.switchToggleSide!==!0,avatar:e.switchToggleSide},Q=[a(Re,{class:"q-expansion-item__toggle-icon"+(e.expandedIcon===void 0&&i.value===!0?" q-expansion-item__toggle-icon--rotated":""),name:S.value})];return b.value===!0&&(Object.assign(M,{tabindex:0,...k.value,onClick:D,onKeyup:F}),Q.unshift(a("div",{ref:l,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),a(oo,M,()=>Q)}function _(){let M;return t.header!==void 0?M=[].concat(t.header(p.value)):(M=[a(oo,()=>[a(Ln,{lines:e.labelLines},()=>e.label||""),e.caption?a(Ln,{lines:e.captionLines,caption:!0},()=>e.caption):null])],e.icon&&M[e.switchToggleSide===!0?"push":"unshift"](a(oo,{side:e.switchToggleSide===!0,avatar:e.switchToggleSide!==!0},()=>a(Re,{name:e.icon})))),e.disable!==!0&&e.hideExpandIcon!==!0&&M[e.switchToggleSide===!0?"unshift":"push"](E()),M}function R(){let M={ref:"item",style:e.headerStyle,class:e.headerClass,dark:n.value,disable:e.disable,dense:e.dense,insetLevel:e.headerInsetLevel};return q.value===!0&&(M.clickable=!0,M.onClick=$,Object.assign(M,C.value===!0?y.value:k.value)),a(No,M,_)}function N(){return $t(a("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:h.value,id:u.value},ie(t.default)),[[bi,i.value]])}function X(){let M=[R(),a(gn,{duration:e.duration,onShow:L,onHide:B},N)];return e.expandSeparator===!0&&M.push(a(io,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:n.value}),a(io,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:n.value})),M}return e.group!==void 0&&V(),ye(()=>{v!==void 0&&v()}),()=>a("div",{class:m.value},[a("div",{class:"q-expansion-item__container relative-position"},X())])}});var yh=["top","right","bottom","left"],_a={type:{type:String,default:"a"},outline:Boolean,push:Boolean,flat:Boolean,unelevated:Boolean,color:String,textColor:String,glossy:Boolean,square:Boolean,padding:String,label:{type:[String,Number],default:""},labelPosition:{type:String,default:"right",validator:e=>yh.includes(e)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]};function Ca(e,t){return{formClass:s(()=>`q-fab--form-${e.square===!0?"square":"rounded"}`),stacked:s(()=>e.externalLabel===!1&&["top","bottom"].includes(e.labelPosition)),labelProps:s(()=>{if(e.externalLabel===!0){let o=e.hideLabel===null?t.value===!1:e.hideLabel;return{action:"push",data:{class:[e.labelClass,`q-fab__label q-tooltip--style q-fab__label--external q-fab__label--external-${e.labelPosition}`+(o===!0?" q-fab__label--external-hidden":"")],style:e.labelStyle}}}return{action:["left","top"].includes(e.labelPosition)?"unshift":"push",data:{class:[e.labelClass,`q-fab__label q-fab__label--internal q-fab__label--internal-${e.labelPosition}`+(e.hideLabel===!0?" q-fab__label--internal-hidden":"")],style:e.labelStyle}}})}}var Sh=["up","right","down","left"],xh=["left","center","right"],Lc=A({name:"QFab",props:{..._a,...mo,icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{default:null},direction:{type:String,default:"right",validator:e=>Sh.includes(e)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:e=>xh.includes(e)}},emits:vo,setup(e,{slots:t}){let o=T(null),r=T(e.modelValue===!0),n=sn(),{proxy:{$q:i}}=U(),{formClass:l,labelProps:u}=Ca(e,r),d=s(()=>e.persistent!==!0),{hide:f,toggle:c}=go({showing:r,hideOnRouteChange:d}),g=s(()=>({opened:r.value})),v=s(()=>`q-fab z-fab row inline justify-center q-fab--align-${e.verticalActionsAlign} ${l.value}`+(r.value===!0?" q-fab--opened":" q-fab--closed")),m=s(()=>`q-fab__actions flex no-wrap inline q-fab__actions--${e.direction} q-fab__actions--${r.value===!0?"opened":"closed"}`),h=s(()=>{let S={id:n.value,role:"menu"};return r.value!==!0&&(S["aria-hidden"]="true"),S}),C=s(()=>`q-fab__icon-holder q-fab__icon-holder--${r.value===!0?"opened":"closed"}`);function y(S,b){let p=t[S],k=`q-fab__${S} absolute-full`;return p===void 0?a(Re,{class:k,name:e[b]||i.iconSet.fab[b]}):a("div",{class:k},p(g.value))}function q(){let S=[];return e.hideIcon!==!0&&S.push(a("div",{class:C.value},[y("icon","icon"),y("active-icon","activeIcon")])),(e.label!==""||t.label!==void 0)&&S[u.value.action](a("div",u.value.data,t.label!==void 0?t.label(g.value):[e.label])),Xe(t.tooltip,S)}return Qt(Ti,{showing:r,onChildClick(S){f(S),o.value!==null&&o.value.$el.focus()}}),()=>a("div",{class:v.value},[a(Oe,{ref:o,class:l.value,...e,noWrap:!0,stack:e.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0,"aria-expanded":r.value===!0?"true":"false","aria-haspopup":"true","aria-controls":n.value,onClick:c},q),a("div",{class:m.value,...h.value},ie(t.default))])}});var Vc={start:"self-end",center:"self-center",end:"self-start"},_h=Object.keys(Vc),Dc=A({name:"QFabAction",props:{..._a,icon:{type:String,default:""},anchor:{type:String,validator:e=>_h.includes(e)},to:[String,Object],replace:Boolean},emits:["click"],setup(e,{slots:t,emit:o}){let r=ht(Ti,()=>({showing:{value:!0},onChildClick:Ye})),{formClass:n,labelProps:i}=Ca(e,r.showing),l=s(()=>{let g=Vc[e.anchor];return n.value+(g!==void 0?` ${g}`:"")}),u=s(()=>e.disable===!0||r.showing.value!==!0);function d(g){r.onChildClick(g),o("click",g)}function f(){let g=[];return t.icon!==void 0?g.push(t.icon()):e.icon!==""&&g.push(a(Re,{name:e.icon})),(e.label!==""||t.label!==void 0)&&g[i.value.action](a("div",i.value.data,t.label!==void 0?t.label():[e.label])),Xe(t.default,g)}let c=U();return Object.assign(c.proxy,{click:d}),()=>a(Oe,{class:l.value,...e,noWrap:!0,stack:e.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:u.value,onClick:d},f)}});function wa({validate:e,resetValidation:t,requiresQForm:o}){let r=ht(Wo,!1);if(r!==!1){let{props:n,proxy:i}=U();Object.assign(i,{validate:e,resetValidation:t}),j(()=>n.disable,l=>{l===!0?(typeof t=="function"&&t(),r.unbindComponent(i)):r.bindComponent(i)}),je(()=>{n.disable!==!0&&r.bindComponent(i)}),ye(()=>{n.disable!==!0&&r.unbindComponent(i)})}else o===!0&&console.error("Parent QForm not found on useFormChild()!")}var Ch=[!0,!1,"ondemand"],zc={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>Ch.includes(e)}};function Oc(e,t){let{props:o,proxy:r}=U(),n=T(!1),i=T(null),l=T(!1);wa({validate:C,resetValidation:h});let u=0,d,f=s(()=>o.rules!==void 0&&o.rules!==null&&o.rules.length!==0),c=s(()=>o.disable!==!0&&f.value===!0&&t.value===!1),g=s(()=>o.error===!0||n.value===!0),v=s(()=>typeof o.errorMessage=="string"&&o.errorMessage.length!==0?o.errorMessage:i.value);j(()=>o.modelValue,()=>{l.value=!0,c.value===!0&&o.lazyRules===!1&&y()});function m(){o.lazyRules!=="ondemand"&&c.value===!0&&l.value===!0&&y()}j(()=>o.reactiveRules,q=>{q===!0?d===void 0&&(d=j(()=>o.rules,m,{immediate:!0,deep:!0})):d!==void 0&&(d(),d=void 0)},{immediate:!0}),j(()=>o.lazyRules,m),j(e,q=>{q===!0?l.value=!0:c.value===!0&&o.lazyRules!=="ondemand"&&y()});function h(){u++,t.value=!1,l.value=!1,n.value=!1,i.value=null,y.cancel()}function C(q=o.modelValue){if(o.disable===!0||f.value===!1)return!0;let S=++u,b=t.value!==!0?()=>{l.value=!0}:()=>{},p=($,F)=>{$===!0&&b(),n.value=$,i.value=F||null,t.value=!1},k=[];for(let $=0;$<o.rules.length;$++){let F=o.rules[$],D;if(typeof F=="function"?D=F(q,$n):typeof F=="string"&&$n[F]!==void 0&&(D=$n[F](q)),D===!1||typeof D=="string")return p(!0,D),!1;D!==!0&&D!==void 0&&k.push(D)}return k.length===0?(p(!1),!0):(t.value=!0,Promise.all(k).then($=>{if($===void 0||Array.isArray($)===!1||$.length===0)return S===u&&p(!1),!0;let F=$.find(D=>D===!1||typeof D=="string");return S===u&&p(F!==void 0,F),F===void 0},$=>(S===u&&(console.error($),p(!0)),!1)))}let y=Xt(C,0);return ye(()=>{d!==void 0&&d(),y.cancel()}),Object.assign(r,{resetValidation:h,validate:C}),st(r,"hasError",()=>g.value),{isDirtyModel:l,hasRules:f,hasError:g,errorMessage:v,validate:C,resetValidation:h}}function Ho(e){return e!=null&&(""+e).length!==0}var Zo={...Ce,...zc,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String,maxlength:[Number,String]},hn=["update:modelValue","clear","focus","blur","popupShow","popupHide"];function pn({requiredForAttr:e=!0,tagProp:t}={}){let{props:o,attrs:r,proxy:n,vnode:i}=U(),l=we(o,n.$q),u=sn(o.for,e);return{requiredForAttr:e,tag:t===!0?s(()=>o.tag):{value:"label"},isDark:l,editable:s(()=>o.disable!==!0&&o.readonly!==!0),innerLoading:T(!1),focused:T(!1),hasPopupOpen:!1,splitAttrs:xa(r,i),targetUid:u,rootRef:T(null),targetRef:T(null),controlRef:T(null)}}function bn(e){let{props:t,emit:o,slots:r,attrs:n,proxy:i}=U(),{$q:l}=i,u=null;e.hasValue===void 0&&(e.hasValue=s(()=>Ho(t.modelValue))),e.emitValue===void 0&&(e.emitValue=M=>{o("update:modelValue",M)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:L,onFocusout:B}),Object.assign(e,{clearValue:V,onControlFocusin:L,onControlFocusout:B,focus:F}),e.computedCounter===void 0&&(e.computedCounter=s(()=>{if(t.counter!==!1){let M=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,Q=t.maxlength!==void 0?t.maxlength:t.maxValues;return M+(Q!==void 0?" / "+Q:"")}}));let{isDirtyModel:d,hasRules:f,hasError:c,errorMessage:g,resetValidation:v}=Oc(e.focused,e.innerLoading),m=e.floatingLabel!==void 0?s(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):s(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),h=s(()=>t.bottomSlots===!0||t.hint!==void 0||f.value===!0||t.counter===!0||t.error!==null),C=s(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),y=s(()=>`q-field row no-wrap items-start q-field--${C.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(m.value===!0?" q-field--float":"")+(S.value===!0?" q-field--labeled":"")+(t.dense===!0?" q-field--dense":"")+(t.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(c.value===!0?" q-field--error":"")+(c.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&h.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),q=s(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(c.value===!0?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value===!0?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),S=s(()=>t.labelSlot===!0||t.label!==void 0),b=s(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&c.value!==!0?` text-${t.labelColor}`:"")),p=s(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:m.value,modelValue:t.modelValue,emitValue:e.emitValue})),k=s(()=>{let M={};return e.targetUid.value&&(M.for=e.targetUid.value),t.disable===!0&&(M["aria-disabled"]="true"),M});j(()=>t.for,M=>{e.targetUid.value=zl(M,e.requiredForAttr)});function $(){let M=document.activeElement,Q=e.targetRef!==void 0&&e.targetRef.value;Q&&(M===null||M.id!==e.targetUid.value)&&(Q.hasAttribute("tabindex")===!0||(Q=Q.querySelector("[tabindex]")),Q&&Q!==M&&Q.focus({preventScroll:!0}))}function F(){ho($)}function D(){Ms($);let M=document.activeElement;M!==null&&e.rootRef.value.contains(M)&&M.blur()}function L(M){u!==null&&(clearTimeout(u),u=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,o("focus",M))}function B(M,Q){u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,o("blur",M)),Q!==void 0&&Q())})}function V(M){qe(M),l.platform.is.mobile!==!0?(e.targetRef!==void 0&&e.targetRef.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),o("update:modelValue",null),o("clear",t.modelValue),Ae(()=>{let Q=d.value;v(),d.value=Q})}function E(){let M=[];return r.prepend!==void 0&&M.push(a("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:ft},r.prepend())),M.push(a("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},_())),c.value===!0&&t.noErrorIcon===!1&&M.push(N("error",[a(Re,{name:l.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?M.push(N("inner-loading-append",r.loading!==void 0?r.loading():[a(Ct,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&M.push(N("inner-clearable-append",[a(Re,{class:"q-field__focusable-action",tag:"button",name:t.clearIcon||l.iconSet.field.clear,tabindex:0,type:"button","aria-hidden":null,role:null,onClick:V})])),r.append!==void 0&&M.push(a("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:ft},r.append())),e.getInnerAppend!==void 0&&M.push(N("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&M.push(e.getControlChild()),M}function _(){let M=[];return t.prefix!==void 0&&t.prefix!==null&&M.push(a("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&M.push(e.getShadowControl()),e.getControl!==void 0?M.push(e.getControl()):r.rawControl!==void 0?M.push(r.rawControl()):r.control!==void 0&&M.push(a("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},r.control(p.value))),S.value===!0&&M.push(a("div",{class:b.value},ie(r.label,t.label))),t.suffix!==void 0&&t.suffix!==null&&M.push(a("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),M.concat(ie(r.default))}function R(){let M,Q;c.value===!0?g.value!==null?(M=[a("div",{role:"alert"},g.value)],Q=`q--slot-error-${g.value}`):(M=ie(r.error),Q="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(M=[a("div",t.hint)],Q=`q--slot-hint-${t.hint}`):(M=ie(r.hint),Q="q--slot-hint"));let J=t.counter===!0||r.counter!==void 0;if(t.hideBottomSpace===!0&&J===!1&&M===void 0)return;let de=a("div",{key:Q,class:"q-field__messages col"},M);return a("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:ft},[t.hideBottomSpace===!0?de:a(lt,{name:"q-transition--field-message"},()=>de),J===!0?a("div",{class:"q-field__counter"},r.counter!==void 0?r.counter():e.computedCounter.value):null])}function N(M,Q){return Q===null?null:a("div",{key:M,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},Q)}let X=!1;return Bt(()=>{X=!0}),Ht(()=>{X===!0&&t.autofocus===!0&&i.focus()}),t.autofocus===!0&&je(()=>{i.focus()}),ye(()=>{u!==null&&clearTimeout(u)}),Object.assign(i,{focus:F,blur:D}),function(){let Q=e.getControl===void 0&&r.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...k.value}:k.value;return a(e.tag.value,{ref:e.rootRef,class:[y.value,n.class],style:n.style,...Q},[r.before!==void 0?a("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:ft},r.before()):null,a("div",{class:"q-field__inner relative-position col self-stretch"},[a("div",{ref:e.controlRef,class:q.value,tabindex:-1,...e.controlEvents},E()),h.value===!0?R():null]),r.after!==void 0?a("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:ft},r.after()):null])}}var ka=A({name:"QField",inheritAttrs:!1,props:{...Zo,tag:{type:String,default:"label"}},emits:hn,setup(){return bn(pn({requiredForAttr:!1,tagProp:!0}))}});function Ar(e,t,o,r){let n=[];return e.forEach(i=>{r(i)===!0?n.push(i):t.push({failedPropValidation:o,file:i})}),n}function qa(e){e&&e.dataTransfer&&(e.dataTransfer.dropEffect="copy"),qe(e)}var Ta={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},Ma=["rejected"];function Ra({editable:e,dnd:t,getFileInput:o,addFilesToQueue:r}){let{props:n,emit:i,proxy:l}=U(),u=T(null),d=s(()=>n.accept!==void 0?n.accept.split(",").map(S=>(S=S.trim(),S==="*"?"*/":(S.endsWith("/*")&&(S=S.slice(0,S.length-1)),S.toUpperCase()))):null),f=s(()=>parseInt(n.maxFiles,10)),c=s(()=>parseInt(n.maxTotalSize,10));function g(S){if(e.value)if(S!==Object(S)&&(S={target:null}),S.target!==null&&S.target.matches('input[type="file"]')===!0)S.clientX===0&&S.clientY===0&&rt(S);else{let b=o();b&&b!==S.target&&b.click(S)}}function v(S){e.value&&S&&r(null,S)}function m(S,b,p,k){let $=Array.from(b||S.target.files),F=[],D=()=>{F.length!==0&&i("rejected",F)};if(n.accept!==void 0&&d.value.indexOf("*/")===-1&&($=Ar($,F,"accept",L=>d.value.some(B=>L.type.toUpperCase().startsWith(B)||L.name.toUpperCase().endsWith(B))),$.length===0))return D();if(n.maxFileSize!==void 0){let L=parseInt(n.maxFileSize,10);if($=Ar($,F,"max-file-size",B=>B.size<=L),$.length===0)return D()}if(n.multiple!==!0&&$.length!==0&&($=[$[0]]),$.forEach(L=>{L.__key=L.webkitRelativePath+L.lastModified+L.name+L.size}),k===!0){let L=p.map(B=>B.__key);$=Ar($,F,"duplicate",B=>L.includes(B.__key)===!1)}if($.length===0)return D();if(n.maxTotalSize!==void 0){let L=k===!0?p.reduce((B,V)=>B+V.size,0):0;if($=Ar($,F,"max-total-size",B=>(L+=B.size,L<=c.value)),$.length===0)return D()}if(typeof n.filter=="function"){let L=n.filter($);$=Ar($,F,"filter",B=>L.includes(B))}if(n.maxFiles!==void 0){let L=k===!0?p.length:0;if($=Ar($,F,"max-files",()=>(L++,L<=f.value)),$.length===0)return D()}if(D(),$.length!==0)return $}function h(S){qa(S),t.value!==!0&&(t.value=!0)}function C(S){qe(S),(S.relatedTarget!==null||Me.is.safari!==!0?S.relatedTarget!==u.value:document.elementsFromPoint(S.clientX,S.clientY).includes(u.value)===!1)===!0&&(t.value=!1)}function y(S){qa(S);let b=S.dataTransfer.files;b.length!==0&&r(null,b),t.value=!1}function q(S){if(t.value===!0)return a("div",{ref:u,class:`q-${S}__dnd absolute-full`,onDragenter:qa,onDragover:qa,onDragleave:C,onDrop:y})}return Object.assign(l,{pickFiles:g,addFiles:v}),{pickFiles:g,addFiles:v,onDragover:h,onDragleave:C,processFiles:m,getDndNode:q,maxFilesNumber:f,maxTotalSizeNumber:c}}function Pa(e,t){function o(){let r=e.modelValue;try{let n="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(r)===r&&("length"in r?Array.from(r):[r]).forEach(i=>{n.items.add(i)}),{files:n.files}}catch{return{files:void 0}}}return t===!0?s(()=>{if(e.type==="file")return o()}):s(o)}var Ic=A({name:"QFile",inheritAttrs:!1,props:{...Zo,...wt,...Ta,modelValue:[File,FileList,Array],append:Boolean,useChips:Boolean,displayValue:[String,Number],tabindex:{type:[String,Number],default:0},counterLabel:Function,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...hn,...Ma],setup(e,{slots:t,emit:o,attrs:r}){let{proxy:n}=U(),i=pn(),l=T(null),u=T(!1),d=gr(e),{pickFiles:f,onDragover:c,onDragleave:g,processFiles:v,getDndNode:m}=Ra({editable:i.editable,dnd:u,getFileInput:E,addFilesToQueue:_}),h=Pa(e),C=s(()=>Object(e.modelValue)===e.modelValue?"length"in e.modelValue?Array.from(e.modelValue):[e.modelValue]:[]),y=s(()=>Ho(C.value)),q=s(()=>C.value.map(M=>M.name).join(", ")),S=s(()=>jn(C.value.reduce((M,Q)=>M+Q.size,0))),b=s(()=>({totalSize:S.value,filesNumber:C.value.length,maxFiles:e.maxFiles})),p=s(()=>({tabindex:-1,type:"file",title:"",accept:e.accept,capture:e.capture,name:d.value,...r,id:i.targetUid.value,disabled:i.editable.value!==!0})),k=s(()=>"q-file q-field--auto-height"+(u.value===!0?" q-file--dnd":"")),$=s(()=>e.multiple===!0&&e.append===!0);function F(M){let Q=C.value.slice();Q.splice(M,1),L(Q)}function D(M){let Q=C.value.indexOf(M);Q!==-1&&F(Q)}function L(M){o("update:modelValue",e.multiple===!0?M:M[0])}function B(M){M.keyCode===13&&ft(M)}function V(M){(M.keyCode===13||M.keyCode===32)&&f(M)}function E(){return l.value}function _(M,Q){let J=v(M,Q,C.value,$.value),de=E();de!=null&&(de.value=""),J!==void 0&&((e.multiple===!0?e.modelValue&&J.every(O=>C.value.includes(O)):e.modelValue===J[0])||L($.value===!0?C.value.concat(J):J))}function R(){return[a("input",{class:[e.inputClass,"q-file__filler"],style:e.inputStyle})]}function N(){if(t.file!==void 0)return C.value.length===0?R():C.value.map((Q,J)=>t.file({index:J,file:Q,ref:this}));if(t.selected!==void 0)return C.value.length===0?R():t.selected({files:C.value,ref:this});if(e.useChips===!0)return C.value.length===0?R():C.value.map((Q,J)=>a(qr,{key:"file-"+J,removable:i.editable.value,dense:!0,textColor:e.color,tabindex:e.tabindex,onRemove:()=>{F(J)}},()=>a("span",{class:"ellipsis",textContent:Q.name})));let M=e.displayValue!==void 0?e.displayValue:q.value;return M.length!==0?[a("div",{class:e.inputClass,style:e.inputStyle,textContent:M})]:R()}function X(){let M={ref:l,...p.value,...h.value,class:"q-field__input fit absolute-full cursor-pointer",onChange:_};return e.multiple===!0&&(M.multiple=!0),a("input",M)}return Object.assign(i,{fieldClass:k,emitValue:L,hasValue:y,inputRef:l,innerValue:C,floatingLabel:s(()=>y.value===!0||Ho(e.displayValue)),computedCounter:s(()=>{if(e.counterLabel!==void 0)return e.counterLabel(b.value);let M=e.maxFiles;return`${C.value.length}${M!==void 0?" / "+M:""} (${S.value})`}),getControlChild:()=>m("file"),getControl:()=>{let M={ref:i.targetRef,class:"q-field__native row items-center cursor-pointer",tabindex:e.tabindex};return i.editable.value===!0&&Object.assign(M,{onDragover:c,onDragleave:g,onKeydown:B,onKeyup:V}),a("div",M,[X()].concat(N()))}}),Object.assign(n,{removeAtIndex:F,removeFile:D,getNativeElement:()=>l.value}),st(n,"nativeEl",()=>l.value),bn(i)}});var Nc=A({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:o}){let{proxy:{$q:r}}=U(),n=ht(Gt,Ze);if(n===Ze)return console.error("QFooter needs to be child of QLayout"),Ze;let i=T(parseInt(e.heightHint,10)),l=T(!0),u=T(kt.value===!0||n.isContainer.value===!0?0:window.innerHeight),d=s(()=>e.reveal===!0||n.view.value.indexOf("F")!==-1||r.platform.is.ios&&n.isContainer.value===!0),f=s(()=>n.isContainer.value===!0?n.containerHeight.value:u.value),c=s(()=>{if(e.modelValue!==!0)return 0;if(d.value===!0)return l.value===!0?i.value:0;let k=n.scroll.value.position+f.value+i.value-n.height.value;return k>0?k:0}),g=s(()=>e.modelValue!==!0||d.value===!0&&l.value!==!0),v=s(()=>e.modelValue===!0&&g.value===!0&&e.reveal===!0),m=s(()=>"q-footer q-layout__section--marginal "+(d.value===!0?"fixed":"absolute")+"-bottom"+(e.bordered===!0?" q-footer--bordered":"")+(g.value===!0?" q-footer--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus"+(d.value!==!0?" hidden":""):"")),h=s(()=>{let k=n.rows.value.bottom,$={};return k[0]==="l"&&n.left.space===!0&&($[r.lang.rtl===!0?"right":"left"]=`${n.left.size}px`),k[2]==="r"&&n.right.space===!0&&($[r.lang.rtl===!0?"left":"right"]=`${n.right.size}px`),$});function C(k,$){n.update("footer",k,$)}function y(k,$){k.value!==$&&(k.value=$)}function q({height:k}){y(i,k),C("size",k)}function S(){if(e.reveal!==!0)return;let{direction:k,position:$,inflectionPoint:F}=n.scroll.value;y(l,k==="up"||$-F<100||n.height.value-f.value-$-i.value<300)}function b(k){v.value===!0&&y(l,!0),o("focusin",k)}j(()=>e.modelValue,k=>{C("space",k),y(l,!0),n.animate()}),j(c,k=>{C("offset",k)}),j(()=>e.reveal,k=>{k===!1&&y(l,e.modelValue)}),j(l,k=>{n.animate(),o("reveal",k)}),j([i,n.scroll,n.height],S),j(()=>r.screen.height,k=>{n.isContainer.value!==!0&&y(u,k)});let p={};return n.instances.footer=p,e.modelValue===!0&&C("size",i.value),C("space",e.modelValue),C("offset",c.value),ye(()=>{n.instances.footer===p&&(n.instances.footer=void 0,C("size",0),C("offset",0),C("space",!1))}),()=>{let k=Xe(t.default,[a(to,{debounce:0,onResize:q})]);return e.elevated===!0&&k.push(a("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),a("footer",{class:m.value,style:h.value,onFocusin:b},k)}}});var Hc=A({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(e,{slots:t,emit:o}){let r=U(),n=T(null),i=0,l=[];function u(m){let h=typeof m=="boolean"?m:e.noErrorFocus!==!0,C=++i,y=(b,p)=>{o("validation"+(b===!0?"Success":"Error"),p)},q=b=>{let p=b.validate();return typeof p.then=="function"?p.then(k=>({valid:k,comp:b}),k=>({valid:!1,comp:b,err:k})):Promise.resolve({valid:p,comp:b})};return(e.greedy===!0?Promise.all(l.map(q)).then(b=>b.filter(p=>p.valid!==!0)):l.reduce((b,p)=>b.then(()=>q(p).then(k=>{if(k.valid===!1)return Promise.reject(k)})),Promise.resolve()).catch(b=>[b])).then(b=>{if(b===void 0||b.length===0)return C===i&&y(!0),!0;if(C===i){let{comp:p,err:k}=b[0];if(k!==void 0&&console.error(k),y(!1,p),h===!0){let $=b.find(({comp:F})=>typeof F.focus=="function"&&Zt(F.$)===!1);$!==void 0&&$.comp.focus()}}return!1})}function d(){i++,l.forEach(m=>{typeof m.resetValidation=="function"&&m.resetValidation()})}function f(m){m!==void 0&&qe(m);let h=i+1;u().then(C=>{h===i&&C===!0&&(e.onSubmit!==void 0?o("submit",m):m!==void 0&&m.target!==void 0&&typeof m.target.submit=="function"&&m.target.submit())})}function c(m){m!==void 0&&qe(m),o("reset"),Ae(()=>{d(),e.autofocus===!0&&e.noResetFocus!==!0&&g()})}function g(){ho(()=>{if(n.value===null)return;let m=n.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||n.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||n.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(n.value.querySelectorAll("[tabindex]"),h=>h.tabIndex!==-1);m?.focus({preventScroll:!0})})}Qt(Wo,{bindComponent(m){l.push(m)},unbindComponent(m){let h=l.indexOf(m);h!==-1&&l.splice(h,1)}});let v=!1;return Bt(()=>{v=!0}),Ht(()=>{v===!0&&e.autofocus===!0&&g()}),je(()=>{e.autofocus===!0&&g()}),Object.assign(r.proxy,{validate:u,resetValidation:d,submit:f,reset:c,focus:g,getValidationComponents:()=>l}),()=>a("form",{class:"q-form",ref:n,onSubmit:f,onReset:c},ie(t.default))}});var Qc={inject:{[Wo]:{default:Ye}},watch:{disable(e){let t=this.$.provides[Wo];t!==void 0&&(e===!0?(this.resetValidation(),t.unbindComponent(this)):t.bindComponent(this))}},methods:{validate(){},resetValidation(){}},mounted(){let e=this.$.provides[Wo];e!==void 0&&this.disable!==!0&&e.bindComponent(this)},beforeUnmount(){let e=this.$.provides[Wo];e!==void 0&&this.disable!==!0&&e.unbindComponent(this)}};var jc=A({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:o}){let{proxy:{$q:r}}=U(),n=ht(Gt,Ze);if(n===Ze)return console.error("QHeader needs to be child of QLayout"),Ze;let i=T(parseInt(e.heightHint,10)),l=T(!0),u=s(()=>e.reveal===!0||n.view.value.indexOf("H")!==-1||r.platform.is.ios&&n.isContainer.value===!0),d=s(()=>{if(e.modelValue!==!0)return 0;if(u.value===!0)return l.value===!0?i.value:0;let S=i.value-n.scroll.value.position;return S>0?S:0}),f=s(()=>e.modelValue!==!0||u.value===!0&&l.value!==!0),c=s(()=>e.modelValue===!0&&f.value===!0&&e.reveal===!0),g=s(()=>"q-header q-layout__section--marginal "+(u.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(f.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),v=s(()=>{let S=n.rows.value.top,b={};return S[0]==="l"&&n.left.space===!0&&(b[r.lang.rtl===!0?"right":"left"]=`${n.left.size}px`),S[2]==="r"&&n.right.space===!0&&(b[r.lang.rtl===!0?"left":"right"]=`${n.right.size}px`),b});function m(S,b){n.update("header",S,b)}function h(S,b){S.value!==b&&(S.value=b)}function C({height:S}){h(i,S),m("size",S)}function y(S){c.value===!0&&h(l,!0),o("focusin",S)}j(()=>e.modelValue,S=>{m("space",S),h(l,!0),n.animate()}),j(d,S=>{m("offset",S)}),j(()=>e.reveal,S=>{S===!1&&h(l,e.modelValue)}),j(l,S=>{n.animate(),o("reveal",S)}),j(n.scroll,S=>{e.reveal===!0&&h(l,S.direction==="up"||S.position<=e.revealOffset||S.position-S.inflectionPoint<100)});let q={};return n.instances.header=q,e.modelValue===!0&&m("size",i.value),m("space",e.modelValue),m("offset",d.value),ye(()=>{n.instances.header===q&&(n.instances.header=void 0,m("size",0),m("offset",0),m("space",!1))}),()=>{let S=Mo(t.default,[]);return e.elevated===!0&&S.push(a("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),S.push(a(to,{debounce:0,onResize:C})),a("header",{class:g.value,style:v.value,onFocusin:y},S)}}});var $r={ratio:[String,Number]};function Er(e,t){return s(()=>{let o=Number(e.ratio||(t!==void 0?t.value:void 0));return isNaN(o)!==!0&&o>0?{paddingBottom:`${100/o}%`}:null})}var wh=16/9,Uc=A({name:"QImg",props:{...$r,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:wh},placeholderSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(e,{slots:t,emit:o}){let r=T(e.initialRatio),n=Er(e,r),i=U(),{registerTimeout:l,removeTimeout:u}=Jt(),{registerTimeout:d,removeTimeout:f}=Jt(),c=[T(null),T(k())],g=T(0),v=T(!1),m=T(!1),h=s(()=>`q-img q-img--${e.noNativeMenu===!0?"no-":""}menu`),C=s(()=>({width:e.width,height:e.height})),y=s(()=>`q-img__image ${e.imgClass!==void 0?e.imgClass+" ":""}q-img__image--with${e.noTransition===!0?"out":""}-transition`),q=s(()=>({...e.imgStyle,objectFit:e.fit,objectPosition:e.position}));j(()=>p(),$);function S(){if(f(),e.loadingShowDelay===0){v.value=!0;return}d(()=>{v.value=!0},e.loadingShowDelay)}function b(){f(),v.value=!1}function p(){return e.src||e.srcset||e.sizes?{src:e.src,srcset:e.srcset,sizes:e.sizes}:null}function k(){return e.placeholderSrc!==void 0?{src:e.placeholderSrc}:null}function $(_){u(),m.value=!1,_===null?(b(),c[g.value^1].value=k()):S(),c[g.value].value=_}function F({target:_}){Zt(i)===!1&&(u(),r.value=_.naturalHeight===0?.5:_.naturalWidth/_.naturalHeight,D(_,1))}function D(_,R){R===1e3||Zt(i)===!0||(_.complete===!0?L(_):l(()=>{D(_,R+1)},50))}function L(_){Zt(i)!==!0&&(g.value=g.value^1,c[g.value].value=null,b(),m.value=!1,o("load",_.currentSrc||_.src))}function B(_){u(),b(),m.value=!0,c[g.value].value=null,c[g.value^1].value=k(),o("error",_)}function V(_){let R=c[_].value,N={key:"img_"+_,class:y.value,style:q.value,alt:e.alt,crossorigin:e.crossorigin,decoding:e.decoding,referrerpolicy:e.referrerpolicy,height:e.height,width:e.width,loading:e.loading,fetchpriority:e.fetchpriority,"aria-hidden":"true",draggable:e.draggable,...R};return g.value===_?(N.class+=" q-img__image--waiting",Object.assign(N,{onLoad:F,onError:B})):N.class+=" q-img__image--loaded",a("div",{class:"q-img__container absolute-full",key:"img"+_},a("img",N))}function E(){return v.value===!1?a("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},ie(t[m.value===!0?"error":"default"])):a("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},t.loading!==void 0?t.loading():e.noSpinner===!0?void 0:[a(Ct,{color:e.spinnerColor,size:e.spinnerSize})])}return $(p()),()=>{let _=[];return n.value!==null&&_.push(a("div",{key:"filler",style:n.value})),m.value!==!0&&(c[0].value!==null&&_.push(V(0)),c[1].value!==null&&_.push(V(1))),_.push(a(lt,{name:"q-transition--fade"},E)),a("div",{class:h.value,style:C.value,role:"img","aria-label":e.alt},_)}}});var{passive:Dn}=Je,Kc=A({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:{default:void 0},initialIndex:Number,disable:Boolean,reverse:Boolean},emits:["load"],setup(e,{slots:t,emit:o}){let r=T(!1),n=T(!0),i=T(null),l=T(null),u=e.initialIndex||0,d,f,c=s(()=>"q-infinite-scroll__loading"+(r.value===!0?"":" invisible"));function g(){if(e.disable===!0||r.value===!0||n.value===!1)return;let F=lr(d),D=eo(d),L=Ro(d);e.reverse===!1?Math.round(D+L+e.offset)>=Math.round(F)&&v():Math.round(D)<=e.offset&&v()}function v(){if(e.disable===!0||r.value===!0||n.value===!1)return;u++,r.value=!0;let F=lr(d);o("load",u,D=>{n.value===!0&&(r.value=!1,Ae(()=>{if(e.reverse===!0){let L=lr(d),B=eo(d),V=L-F;Bo(d,B+V)}D===!0?C():i.value&&i.value.closest("body")&&f()}))})}function m(){u=0}function h(){n.value===!1&&(n.value=!0,d.addEventListener("scroll",f,Dn)),g()}function C(){n.value===!0&&(n.value=!1,r.value=!1,d.removeEventListener("scroll",f,Dn),f!==void 0&&f.cancel!==void 0&&f.cancel())}function y(){if(d&&n.value===!0&&d.removeEventListener("scroll",f,Dn),d=Et(i.value,e.scrollTarget),n.value===!0){if(d.addEventListener("scroll",f,Dn),e.reverse===!0){let F=lr(d),D=Ro(d);Bo(d,F-D)}g()}}function q(F){u=F}function S(F){F=parseInt(F,10);let D=f;f=F<=0?g:Xt(g,isNaN(F)===!0?100:F),d&&n.value===!0&&(D!==void 0&&d.removeEventListener("scroll",D,Dn),d.addEventListener("scroll",f,Dn))}function b(F){if(p.value===!0){if(l.value===null){F!==!0&&Ae(()=>{b(!0)});return}let D=`${r.value===!0?"un":""}pauseAnimations`;Array.from(l.value.getElementsByTagName("svg")).forEach(L=>{L[D]()})}}let p=s(()=>e.disable!==!0&&n.value===!0);j([r,p],()=>{b()}),j(()=>e.disable,F=>{F===!0?C():h()}),j(()=>e.reverse,()=>{r.value===!1&&n.value===!0&&g()}),j(()=>e.scrollTarget,y),j(()=>e.debounce,S);let k=!1;Ht(()=>{k!==!1&&d&&Bo(d,k)}),Bt(()=>{k=d?eo(d):!1}),ye(()=>{n.value===!0&&d.removeEventListener("scroll",f,Dn)}),je(()=>{S(e.debounce),y(),r.value===!1&&b()});let $=U();return Object.assign($.proxy,{poll:()=>{f!==void 0&&f()},trigger:v,stop:C,reset:m,resume:h,setIndex:q,updateScrollTarget:y}),()=>{let F=Mo(t.default,[]);return p.value===!0&&F[e.reverse===!1?"push":"unshift"](a("div",{ref:l,class:c.value},ie(t.loading))),a("div",{class:"q-infinite-scroll",ref:i},F)}}});var Wc=A({name:"QInnerLoading",props:{...Ce,...$o,showing:Boolean,color:String,size:{type:[String,Number],default:42},label:String,labelClass:String,labelStyle:[String,Array,Object]},setup(e,{slots:t}){let o=U(),r=we(e,o.proxy.$q),{transitionProps:n,transitionStyle:i}=ln(e),l=s(()=>"q-inner-loading q--avoid-card-border absolute-full column flex-center"+(r.value===!0?" q-inner-loading--dark":"")),u=s(()=>"q-inner-loading__label"+(e.labelClass!==void 0?` ${e.labelClass}`:""));function d(){let c=[a(Ct,{size:e.size,color:e.color})];return e.label!==void 0&&c.push(a("div",{class:u.value,style:e.labelStyle},[e.label])),c}function f(){return e.showing===!0?a("div",{class:l.value,style:i.value},t.default!==void 0?t.default():d()):null}return()=>a(lt,n.value,f)}});var Yc={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},Aa={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:e=>e.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:e=>e.toLocaleLowerCase()}},Gc=Object.keys(Aa);Gc.forEach(e=>{Aa[e].regex=new RegExp(Aa[e].pattern)});var kh=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+Gc.join("")+"])|(.)","g"),Xc=/[.*+?^${}()|[\]\\]/g,Ft="",Zc={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function Jc(e,t,o,r){let n,i,l,u,d,f,c=T(null),g=T(m());function v(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}j(()=>e.type+e.autogrow,C),j(()=>e.mask,L=>{if(L!==void 0)y(g.value,!0);else{let B=F(g.value);C(),e.modelValue!==B&&t("update:modelValue",B)}}),j(()=>e.fillMask+e.reverseFillMask,()=>{c.value===!0&&y(g.value,!0)}),j(()=>e.unmaskedValue,()=>{c.value===!0&&y(g.value)});function m(){if(C(),c.value===!0){let L=k(F(e.modelValue));return e.fillMask!==!1?D(L):L}return e.modelValue}function h(L){if(L<n.length)return n.slice(-L);let B="",V=n,E=V.indexOf(Ft);if(E!==-1){for(let _=L-V.length;_>0;_--)B+=Ft;V=V.slice(0,E)+B+V.slice(E)}return V}function C(){if(c.value=e.mask!==void 0&&e.mask.length!==0&&v(),c.value===!1){u=void 0,n="",i="";return}let L=Yc[e.mask]===void 0?e.mask:Yc[e.mask],B=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",V=B.replace(Xc,"\\$&"),E=[],_=[],R=[],N=e.reverseFillMask===!0,X="",M="";L.replace(kh,(O,w,W,H,ee)=>{if(H!==void 0){let Y=Aa[H];R.push(Y),M=Y.negate,N===!0&&(_.push("(?:"+M+"+)?("+Y.pattern+"+)?(?:"+M+"+)?("+Y.pattern+"+)?"),N=!1),_.push("(?:"+M+"+)?("+Y.pattern+")?")}else if(W!==void 0)X="\\"+(W==="\\"?"":W),R.push(W),E.push("([^"+X+"]+)?"+X+"?");else{let Y=w!==void 0?w:ee;X=Y==="\\"?"\\\\\\\\":Y.replace(Xc,"\\\\$&"),R.push(Y),E.push("([^"+X+"]+)?"+X+"?")}});let Q=new RegExp("^"+E.join("")+"("+(X===""?".":"[^"+X+"]")+"+)?"+(X===""?"":"["+X+"]*")+"$"),J=_.length-1,de=_.map((O,w)=>w===0&&e.reverseFillMask===!0?new RegExp("^"+V+"*"+O):w===J?new RegExp("^"+O+"("+(M===""?".":M)+"+)?"+(e.reverseFillMask===!0?"$":V+"*")):new RegExp("^"+O));l=R,u=O=>{let w=Q.exec(e.reverseFillMask===!0?O:O.slice(0,R.length+1));w!==null&&(O=w.slice(1).join(""));let W=[],H=de.length;for(let ee=0,Y=O;ee<H;ee++){let ue=de[ee].exec(Y);if(ue===null)break;Y=Y.slice(ue.shift().length),W.push(...ue)}return W.length!==0?W.join(""):O},n=R.map(O=>typeof O=="string"?O:Ft).join(""),i=n.split(Ft).join(B)}function y(L,B,V){let E=r.value,_=E.selectionEnd,R=E.value.length-_,N=F(L);B===!0&&C();let X=k(N),M=e.fillMask!==!1?D(X):X,Q=g.value!==M;E.value!==M&&(E.value=M),Q===!0&&(g.value=M),document.activeElement===E&&Ae(()=>{if(M===i){let de=e.reverseFillMask===!0?i.length:0;E.setSelectionRange(de,de,"forward");return}if(V==="insertFromPaste"&&e.reverseFillMask!==!0){let de=E.selectionEnd,O=_-1;for(let w=d;w<=O&&w<de;w++)n[w]!==Ft&&O++;S.right(E,O);return}if(["deleteContentBackward","deleteContentForward"].indexOf(V)!==-1){let de=e.reverseFillMask===!0?_===0?M.length>X.length?1:0:Math.max(0,M.length-(M===i?0:Math.min(X.length,R)+1))+1:_;E.setSelectionRange(de,de,"forward");return}if(e.reverseFillMask===!0)if(Q===!0){let de=Math.max(0,M.length-(M===i?0:Math.min(X.length,R+1)));de===1&&_===1?E.setSelectionRange(de,de,"forward"):S.rightReverse(E,de)}else{let de=M.length-R;E.setSelectionRange(de,de,"backward")}else if(Q===!0){let de=Math.max(0,n.indexOf(Ft),Math.min(X.length,_)-1);S.right(E,de)}else{let de=_-1;S.right(E,de)}});let J=e.unmaskedValue===!0?F(M):M;String(e.modelValue)!==J&&(e.modelValue!==null||J!=="")&&o(J,!0)}function q(L,B,V){let E=k(F(L.value));B=Math.max(0,n.indexOf(Ft),Math.min(E.length,B)),d=B,L.setSelectionRange(B,V,"forward")}let S={left(L,B){let V=n.slice(B-1).indexOf(Ft)===-1,E=Math.max(0,B-1);for(;E>=0;E--)if(n[E]===Ft){B=E,V===!0&&B++;break}if(E<0&&n[B]!==void 0&&n[B]!==Ft)return S.right(L,0);B>=0&&L.setSelectionRange(B,B,"backward")},right(L,B){let V=L.value.length,E=Math.min(V,B+1);for(;E<=V;E++)if(n[E]===Ft){B=E;break}else n[E-1]===Ft&&(B=E);if(E>V&&n[B-1]!==void 0&&n[B-1]!==Ft)return S.left(L,V);L.setSelectionRange(B,B,"forward")},leftReverse(L,B){let V=h(L.value.length),E=Math.max(0,B-1);for(;E>=0;E--)if(V[E-1]===Ft){B=E;break}else if(V[E]===Ft&&(B=E,E===0))break;if(E<0&&V[B]!==void 0&&V[B]!==Ft)return S.rightReverse(L,0);B>=0&&L.setSelectionRange(B,B,"backward")},rightReverse(L,B){let V=L.value.length,E=h(V),_=E.slice(0,B+1).indexOf(Ft)===-1,R=Math.min(V,B+1);for(;R<=V;R++)if(E[R-1]===Ft){B=R,B>0&&_===!0&&B--;break}if(R>V&&E[B-1]!==void 0&&E[B-1]!==Ft)return S.leftReverse(L,V);L.setSelectionRange(B,B,"forward")}};function b(L){t("click",L),f=void 0}function p(L){if(t("keydown",L),no(L)===!0||L.altKey===!0)return;let B=r.value,V=B.selectionStart,E=B.selectionEnd;if(L.shiftKey||(f=void 0),L.keyCode===37||L.keyCode===39){L.shiftKey&&f===void 0&&(f=B.selectionDirection==="forward"?V:E);let _=S[(L.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(L.preventDefault(),_(B,f===V?E:V),L.shiftKey){let R=B.selectionStart;B.setSelectionRange(Math.min(f,R),Math.max(f,R),"forward")}}else L.keyCode===8&&e.reverseFillMask!==!0&&V===E?(S.left(B,V),B.setSelectionRange(B.selectionStart,E,"backward")):L.keyCode===46&&e.reverseFillMask===!0&&V===E&&(S.rightReverse(B,E),B.setSelectionRange(V,B.selectionEnd,"forward"))}function k(L){if(L==null||L==="")return"";if(e.reverseFillMask===!0)return $(L);let B=l,V=0,E="";for(let _=0;_<B.length;_++){let R=L[V],N=B[_];if(typeof N=="string")E+=N,R===N&&V++;else if(R!==void 0&&N.regex.test(R))E+=N.transform!==void 0?N.transform(R):R,V++;else return E}return E}function $(L){let B=l,V=n.indexOf(Ft),E=L.length-1,_="";for(let R=B.length-1;R>=0&&E!==-1;R--){let N=B[R],X=L[E];if(typeof N=="string")_=N+_,X===N&&E--;else if(X!==void 0&&N.regex.test(X))do _=(N.transform!==void 0?N.transform(X):X)+_,E--,X=L[E];while(V===R&&X!==void 0&&N.regex.test(X));else return _}return _}function F(L){return typeof L!="string"||u===void 0?typeof L=="number"?u(""+L):L:u(L)}function D(L){return i.length-L.length<=0?L:e.reverseFillMask===!0&&L.length!==0?i.slice(0,-L.length)+L:L+i.slice(L.length)}return{innerValue:g,hasMask:c,moveCursorForPaste:q,updateMaskValue:y,onMaskedKeydown:p,onMaskedClick:b}}var qh=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,Th=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,Mh=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,Rh=/[a-z0-9_ -]$/i;function $a(e){return function(o){if(o.type==="compositionend"||o.type==="change"){if(o.target.qComposing!==!0)return;o.target.qComposing=!1,e(o)}else o.type==="compositionupdate"&&o.target.qComposing!==!0&&typeof o.data=="string"&&(Me.is.firefox===!0?Rh.test(o.data)===!1:qh.test(o.data)===!0||Th.test(o.data)===!0||Mh.test(o.data)===!0)===!0&&(o.target.qComposing=!0)}}var Br=A({name:"QInput",inheritAttrs:!1,props:{...Zo,...Zc,...wt,modelValue:{required:!1},shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...hn,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:o}){let{proxy:r}=U(),{$q:n}=r,i={},l=NaN,u,d,f=null,c,g=T(null),v=gr(e),{innerValue:m,hasMask:h,moveCursorForPaste:C,updateMaskValue:y,onMaskedKeydown:q,onMaskedClick:S}=Jc(e,t,X,g),b=Pa(e,!0),p=s(()=>Ho(m.value)),k=$a(R),$=pn(),F=s(()=>e.type==="textarea"||e.autogrow===!0),D=s(()=>F.value===!0||["text","search","url","tel","password"].includes(e.type)),L=s(()=>{let w={...$.splitAttrs.listeners.value,onInput:R,onPaste:_,onChange:Q,onBlur:J,onFocus:rt};return w.onCompositionstart=w.onCompositionupdate=w.onCompositionend=k,h.value===!0&&(w.onKeydown=q,w.onClick=S),e.autogrow===!0&&(w.onAnimationend=N),w}),B=s(()=>{let w={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:v.value,...$.splitAttrs.attributes.value,id:$.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return F.value===!1&&(w.type=e.type),e.autogrow===!0&&(w.rows=1),w});j(()=>e.type,()=>{g.value&&(g.value.value=e.modelValue)}),j(()=>e.modelValue,w=>{if(h.value===!0){if(d===!0&&(d=!1,String(w)===l))return;y(w)}else m.value!==w&&(m.value=w,e.type==="number"&&i.hasOwnProperty("value")===!0&&(u===!0?u=!1:delete i.value));e.autogrow===!0&&Ae(M)}),j(()=>e.autogrow,w=>{w===!0?Ae(M):g.value!==null&&o.rows>0&&(g.value.style.height="auto")}),j(()=>e.dense,()=>{e.autogrow===!0&&Ae(M)});function V(){ho(()=>{let w=document.activeElement;g.value!==null&&g.value!==w&&(w===null||w.id!==$.targetUid.value)&&g.value.focus({preventScroll:!0})})}function E(){g.value!==null&&g.value.select()}function _(w){if(h.value===!0&&e.reverseFillMask!==!0){let W=w.target;C(W,W.selectionStart,W.selectionEnd)}t("paste",w)}function R(w){if(!w||!w.target)return;if(e.type==="file"){t("update:modelValue",w.target.files);return}let W=w.target.value;if(w.target.qComposing===!0){i.value=W;return}if(h.value===!0)y(W,!1,w.inputType);else if(X(W),D.value===!0&&w.target===document.activeElement){let{selectionStart:H,selectionEnd:ee}=w.target;H!==void 0&&ee!==void 0&&Ae(()=>{w.target===document.activeElement&&W.indexOf(w.target.value)===0&&w.target.setSelectionRange(H,ee)})}e.autogrow===!0&&M()}function N(w){t("animationend",w),M()}function X(w,W){c=()=>{f=null,e.type!=="number"&&i.hasOwnProperty("value")===!0&&delete i.value,e.modelValue!==w&&l!==w&&(l=w,W===!0&&(d=!0),t("update:modelValue",w),Ae(()=>{l===w&&(l=NaN)})),c=void 0},e.type==="number"&&(u=!0,i.value=w),e.debounce!==void 0?(f!==null&&clearTimeout(f),i.value=w,f=setTimeout(c,e.debounce)):c()}function M(){requestAnimationFrame(()=>{let w=g.value;if(w!==null){let W=w.parentNode.style,{scrollTop:H}=w,{overflowY:ee,maxHeight:Y}=n.platform.is.firefox===!0?{}:window.getComputedStyle(w),ue=ee!==void 0&&ee!=="scroll";ue===!0&&(w.style.overflowY="hidden"),W.marginBottom=w.scrollHeight-1+"px",w.style.height="1px",w.style.height=w.scrollHeight+"px",ue===!0&&(w.style.overflowY=parseInt(Y,10)<w.scrollHeight?"auto":"hidden"),W.marginBottom="",w.scrollTop=H}})}function Q(w){k(w),f!==null&&(clearTimeout(f),f=null),c!==void 0&&c(),t("change",w.target.value)}function J(w){w!==void 0&&rt(w),f!==null&&(clearTimeout(f),f=null),c!==void 0&&c(),u=!1,d=!1,delete i.value,e.type!=="file"&&setTimeout(()=>{g.value!==null&&(g.value.value=m.value!==void 0?m.value:"")})}function de(){return i.hasOwnProperty("value")===!0?i.value:m.value!==void 0?m.value:""}ye(()=>{J()}),je(()=>{e.autogrow===!0&&M()}),Object.assign($,{innerValue:m,fieldClass:s(()=>`q-${F.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:s(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:g,emitValue:X,hasValue:p,floatingLabel:s(()=>p.value===!0&&(e.type!=="number"||isNaN(m.value)===!1)||Ho(e.displayValue)),getControl:()=>a(F.value===!0?"textarea":"input",{ref:g,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...B.value,...L.value,...e.type!=="file"?{value:de()}:b.value}),getShadowControl:()=>a("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(F.value===!0?"":" text-no-wrap")},[a("span",{class:"invisible"},de()),a("span",e.shadowText)])});let O=bn($);return Object.assign(r,{focus:V,select:E,getNativeElement:()=>g.value}),st(r,"nativeEl",()=>g.value),O}});var ed={threshold:0,root:null,rootMargin:"0px"};function td(e,t,o){let r,n,i;typeof o=="function"?(r=o,n=ed,i=t.cfg===void 0):(r=o.handler,n=Object.assign({},ed,o.cfg),i=t.cfg===void 0||Kt(t.cfg,n)===!1),t.handler!==r&&(t.handler=r),i===!0&&(t.cfg=n,t.observer!==void 0&&t.observer.unobserve(e),t.observer=new IntersectionObserver(([l])=>{if(typeof t.handler=="function"){if(l.rootBounds===null&&document.body.contains(e)===!0){t.observer.unobserve(e),t.observer.observe(e);return}(t.handler(l,t.observer)===!1||t.once===!0&&l.isIntersecting===!0)&&od(e)}},n),t.observer.observe(e))}function od(e){let t=e.__qvisible;t!==void 0&&(t.observer!==void 0&&t.observer.unobserve(e),delete e.__qvisible)}var Ea=Pt({name:"intersection",mounted(e,{modifiers:t,value:o}){let r={once:t.once===!0};td(e,r,o),e.__qvisible=r},updated(e,t){let o=e.__qvisible;o!==void 0&&td(e,o,t.value)},beforeUnmount:od});var nd=A({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(e,{slots:t,emit:o}){let r=T(kt.value===!0?e.ssrPrerender:!1),n=s(()=>e.root!==void 0||e.margin!==void 0||e.threshold!==void 0?{handler:d,cfg:{root:e.root,rootMargin:e.margin,threshold:e.threshold}}:d),i=s(()=>e.disable!==!0&&(kt.value!==!0||e.once!==!0||e.ssrPrerender!==!0)),l=s(()=>[[Ea,n.value,void 0,{once:e.once}]]),u=s(()=>`--q-transition-duration: ${e.transitionDuration}ms`);function d(c){r.value!==c.isIntersecting&&(r.value=c.isIntersecting,e.onVisibility!==void 0&&o("visibility",r.value))}function f(){if(r.value===!0)return[a("div",{key:"content",style:u.value},ie(t.default))];if(t.hidden!==void 0)return[a("div",{key:"hidden",style:u.value},t.hidden())]}return()=>{let c=e.transition?[a(lt,{name:"q-transition--"+e.transition},f)]:f();return Mt(e.tag,{class:"q-intersection"},c,"main",i.value,()=>l.value)}}});var Ba=A({name:"QList",props:{...Ce,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){let o=U(),r=we(e,o.proxy.$q),n=s(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(r.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>a(e.tag,{class:n.value},ie(t.default))}});var rd=[34,37,40,33,39,38],Ph=Object.keys(ti),id=A({name:"QKnob",props:{...wt,...ti,modelValue:{type:Number,required:!0},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},tabindex:{type:[Number,String],default:0},disable:Boolean,readonly:Boolean},emits:["update:modelValue","change","dragValue"],setup(e,{slots:t,emit:o}){let{proxy:r}=U(),{$q:n}=r,i=T(e.modelValue),l=T(!1),u=s(()=>isNaN(e.innerMin)===!0||e.innerMin<e.min?e.min:e.innerMin),d=s(()=>isNaN(e.innerMax)===!0||e.innerMax>e.max?e.max:e.innerMax),f;function c(){i.value=e.modelValue===null?u.value:tt(e.modelValue,u.value,d.value),V(!0)}j(()=>`${e.modelValue}|${u.value}|${d.value}`,c),c();let g=s(()=>e.disable===!1&&e.readonly===!1),v=s(()=>"q-knob non-selectable"+(g.value===!0?" q-knob--editable":e.disable===!0?" disabled":"")),m=s(()=>(String(e.step).trim().split(".")[1]||"").length),h=s(()=>e.step===0?1:e.step),C=s(()=>e.instantFeedback===!0||l.value===!0),y=n.platform.is.mobile===!0?s(()=>g.value===!0?{onClick:F}:{}):s(()=>g.value===!0?{onMousedown:$,onClick:F,onKeydown:D,onKeyup:B}:{}),q=s(()=>g.value===!0?{tabindex:e.tabindex}:{[`aria-${e.disable===!0?"disabled":"readonly"}`]:"true"}),S=s(()=>{let R={};return Ph.forEach(N=>{R[N]=e[N]}),R});function b(R){R.isFinal?(L(R.evt,!0),l.value=!1):(R.isFirst&&(k(),l.value=!0),L(R.evt))}let p=s(()=>[[Rt,b,void 0,{prevent:!0,stop:!0,mouse:!0}]]);function k(){let{top:R,left:N,width:X,height:M}=r.$el.getBoundingClientRect();f={top:R+M/2,left:N+X/2}}function $(R){k(),L(R)}function F(R){k(),L(R,!0)}function D(R){if(!rd.includes(R.keyCode))return;qe(R);let N=([34,33].includes(R.keyCode)?10:1)*h.value,X=[34,37,40].includes(R.keyCode)?-N:N;i.value=tt(parseFloat((i.value+X).toFixed(m.value)),u.value,d.value),V()}function L(R,N){let X=xt(R),M=Math.abs(X.top-f.top),Q=Math.sqrt(M**2+Math.abs(X.left-f.left)**2),J=Math.asin(M/Q)*(180/Math.PI);X.top<f.top?J=f.left<X.left?90-J:270+J:J=f.left<X.left?J+90:270-J,n.lang.rtl===!0?J=_n(-J-e.angle,0,360):e.angle&&(J=_n(J-e.angle,0,360)),e.reverse===!0&&(J=360-J);let de=e.min+J/360*(e.max-e.min);if(h.value!==0){let O=de%h.value;de=de-O+(Math.abs(O)>=h.value/2?(O<0?-1:1)*h.value:0),de=parseFloat(de.toFixed(m.value))}de=tt(de,u.value,d.value),o("dragValue",de),i.value!==de&&(i.value=de),V(N)}function B(R){rd.includes(R.keyCode)&&V(!0)}function V(R){e.modelValue!==i.value&&o("update:modelValue",i.value),R===!0&&o("change",i.value)}let E=Lo(e);function _(){return a("input",E.value)}return()=>{let R={class:v.value,role:"slider","aria-valuemin":u.value,"aria-valuemax":d.value,"aria-valuenow":e.modelValue,...q.value,...S.value,value:i.value,instantFeedback:C.value,...y.value},N={default:t.default};return g.value===!0&&e.name!==void 0&&(N.internal=_),Mt(Tr,R,N,"knob",g.value,()=>p.value)}}});var{passive:ad}=Je,Ah=["both","horizontal","vertical"],Fr=A({name:"QScrollObserver",props:{axis:{type:String,validator:e=>Ah.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:{default:void 0}},emits:["scroll"],setup(e,{emit:t}){let o={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}},r=null,n,i;j(()=>e.scrollTarget,()=>{d(),u()});function l(){r!==null&&r();let g=Math.max(0,eo(n)),v=un(n),m={top:g-o.position.top,left:v-o.position.left};if(e.axis==="vertical"&&m.top===0||e.axis==="horizontal"&&m.left===0)return;let h=Math.abs(m.top)>=Math.abs(m.left)?m.top<0?"up":"down":m.left<0?"left":"right";o.position={top:g,left:v},o.directionChanged=o.direction!==h,o.delta=m,o.directionChanged===!0&&(o.direction=h,o.inflectionPoint=o.position),t("scroll",{...o})}function u(){n=Et(i,e.scrollTarget),n.addEventListener("scroll",f,ad),f(!0)}function d(){n!==void 0&&(n.removeEventListener("scroll",f,ad),n=void 0)}function f(g){if(g===!0||e.debounce===0||e.debounce==="0")l();else if(r===null){let[v,m]=e.debounce?[setTimeout(l,e.debounce),clearTimeout]:[requestAnimationFrame(l),cancelAnimationFrame];r=()=>{m(v),r=null}}}let{proxy:c}=U();return j(()=>c.$q.lang.rtl,l),je(()=>{i=c.$el.parentNode,u()}),ye(()=>{r!==null&&r(),d()}),Object.assign(c,{trigger:f,getPosition:()=>o}),Ye}});var ld=A({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:o}){let{proxy:{$q:r}}=U(),n=T(null),i=T(r.screen.height),l=T(e.container===!0?0:r.screen.width),u=T({position:0,direction:"down",inflectionPoint:0}),d=T(0),f=T(kt.value===!0?0:qn()),c=s(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),g=s(()=>e.container===!1?{minHeight:r.screen.height+"px"}:null),v=s(()=>f.value!==0?{[r.lang.rtl===!0?"left":"right"]:`${f.value}px`}:null),m=s(()=>f.value!==0?{[r.lang.rtl===!0?"right":"left"]:0,[r.lang.rtl===!0?"left":"right"]:`-${f.value}px`,width:`calc(100% + ${f.value}px)`}:null);function h(p){if(e.container===!0||document.qScrollPrevented!==!0){let k={position:p.position.top,direction:p.direction,directionChanged:p.directionChanged,inflectionPoint:p.inflectionPoint.top,delta:p.delta.top};u.value=k,e.onScroll!==void 0&&o("scroll",k)}}function C(p){let{height:k,width:$}=p,F=!1;i.value!==k&&(F=!0,i.value=k,e.onScrollHeight!==void 0&&o("scrollHeight",k),q()),l.value!==$&&(F=!0,l.value=$),F===!0&&e.onResize!==void 0&&o("resize",p)}function y({height:p}){d.value!==p&&(d.value=p,q())}function q(){if(e.container===!0){let p=i.value>d.value?qn():0;f.value!==p&&(f.value=p)}}let S=null,b={instances:{},view:s(()=>e.view),isContainer:s(()=>e.container),rootRef:n,height:i,containerHeight:d,scrollbarWidth:f,totalWidth:s(()=>l.value+f.value),rows:s(()=>{let p=e.view.toLowerCase().split(" ");return{top:p[0].split(""),middle:p[1].split(""),bottom:p[2].split("")}}),header:jo({size:0,offset:0,space:!1}),right:jo({size:300,offset:0,space:!1}),footer:jo({size:0,offset:0,space:!1}),left:jo({size:300,offset:0,space:!1}),scroll:u,animate(){S!==null?clearTimeout(S):document.body.classList.add("q-body--layout-animate"),S=setTimeout(()=>{S=null,document.body.classList.remove("q-body--layout-animate")},155)},update(p,k,$){b[p][k]=$}};if(Qt(Gt,b),qn()>0){let $=function(){p=null,k.classList.remove("hide-scrollbar")},F=function(){if(p===null){if(k.scrollHeight>r.screen.height)return;k.classList.add("hide-scrollbar")}else clearTimeout(p);p=setTimeout($,300)},D=function(L){p!==null&&L==="remove"&&(clearTimeout(p),$()),window[`${L}EventListener`]("resize",F)},p=null,k=document.body;j(()=>e.container!==!0?"add":"remove",D),e.container!==!0&&D("add"),Hn(()=>{D("remove")})}return()=>{let p=Xe(t.default,[a(Fr,{onScroll:h}),a(to,{onResize:C})]),k=a("div",{class:c.value,style:g.value,ref:e.container===!0?void 0:n,tabindex:-1},p);return e.container===!0?a("div",{class:"q-layout-container overflow-hidden",ref:n},[a(to,{onResize:y}),a("div",{class:"absolute-full",style:v.value},[a("div",{class:"scroll",style:m.value},[k])])]):k}}});var $h=["horizontal","vertical","cell","none"],Fa=A({name:"QMarkupTable",props:{...Ce,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>$h.includes(e)}},setup(e,{slots:t}){let o=U(),r=we(e,o.proxy.$q),n=s(()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(r.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(e.dense===!0?" q-table--dense":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")+(e.square===!0?" q-table--square":"")+(e.wrapCells===!1?" q-table--no-wrap":""));return()=>a("div",{class:n.value},[a("table",{class:"q-table"},ie(t.default))])}});var ud=A({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(e,{slots:t}){let o=oa();return()=>{if(o.value===!0){let i=ie(t.default);return i===void 0?i:i.length>1?a(e.tag,{},i):i[0]}let r={class:"q-no-ssr-placeholder"},n=ie(t.placeholder);if(n!==void 0)return n.length>1?a(e.tag,r,n):n[0];if(e.placeholder!==void 0)return a(e.tag,r,e.placeholder)}}});var Eh=a("svg",{key:"svg",class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24"},[a("path",{d:"M12,22a10,10 0 0 1 -10,-10a10,10 0 0 1 10,-10a10,10 0 0 1 10,10a10,10 0 0 1 -10,10m0,-22a12,12 0 0 0 -12,12a12,12 0 0 0 12,12a12,12 0 0 0 12,-12a12,12 0 0 0 -12,-12"}),a("path",{class:"q-radio__check",d:"M12,6a6,6 0 0 0 -6,6a6,6 0 0 0 6,6a6,6 0 0 0 6,-6a6,6 0 0 0 -6,-6"})]),La=A({name:"QRadio",props:{...Ce,...Lt,...wt,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(e,{slots:t,emit:o}){let{proxy:r}=U(),n=we(e,r.$q),i=Vt(e,Yi),l=T(null),{refocusTargetEl:u,refocusTarget:d}=Wi(e,l),f=s(()=>so(e.modelValue)===so(e.val)),c=s(()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(e.disable===!0?" disabled":"")+(n.value===!0?" q-radio--dark":"")+(e.dense===!0?" q-radio--dense":"")+(e.leftLabel===!0?" reverse":"")),g=s(()=>{let b=e.color!==void 0&&(e.keepColor===!0||f.value===!0)?` text-${e.color}`:"";return`q-radio__inner relative-position q-radio__inner--${f.value===!0?"truthy":"falsy"}${b}`}),v=s(()=>(f.value===!0?e.checkedIcon:e.uncheckedIcon)||null),m=s(()=>e.disable===!0?-1:e.tabindex||0),h=s(()=>{let b={type:"radio"};return e.name!==void 0&&Object.assign(b,{".checked":f.value===!0,"^checked":f.value===!0?"checked":void 0,name:e.name,value:e.val}),b}),C=Wt(h);function y(b){b!==void 0&&(qe(b),d(b)),e.disable!==!0&&f.value!==!0&&o("update:modelValue",e.val,b)}function q(b){(b.keyCode===13||b.keyCode===32)&&qe(b)}function S(b){(b.keyCode===13||b.keyCode===32)&&y(b)}return Object.assign(r,{set:y}),()=>{let b=v.value!==null?[a("div",{key:"icon",class:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[a(Re,{class:"q-radio__icon",name:v.value})])]:[Eh];e.disable!==!0&&C(b,"unshift"," q-radio__native q-ma-none q-pa-none");let p=[a("div",{class:g.value,style:i.value,"aria-hidden":"true"},b)];u.value!==null&&p.push(u.value);let k=e.label!==void 0?Xe(t.default,[e.label]):ie(t.default);return k!==void 0&&p.push(a("div",{class:"q-radio__label q-anchor--skip"},k)),a("div",{ref:l,class:c.value,tabindex:m.value,role:"radio","aria-label":e.label,"aria-checked":f.value===!0?"true":"false","aria-disabled":e.disable===!0?"true":void 0,onClick:y,onKeydown:q,onKeyup:S},p)}}});var Va=A({name:"QToggle",props:{...Xi,icon:String,iconColor:String},emits:Gi,setup(e){function t(o,r){let n=s(()=>(o.value===!0?e.checkedIcon:r.value===!0?e.indeterminateIcon:e.uncheckedIcon)||e.icon),i=s(()=>o.value===!0?e.iconColor:null);return()=>[a("div",{class:"q-toggle__track"}),a("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},n.value!==void 0?[a(Re,{name:n.value,color:i.value})]:void 0)]}return Zi("toggle",t)}});var sd={radio:La,checkbox:Do,toggle:Va},Bh=Object.keys(sd),Da=A({name:"QOptionGroup",props:{...Ce,modelValue:{required:!0},options:{type:Array,validator:e=>e.every(t=>"value"in t&&"label"in t)},name:String,type:{default:"radio",validator:e=>Bh.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{emit:t,slots:o}){let{proxy:{$q:r}}=U(),n=Array.isArray(e.modelValue);e.type==="radio"?n===!0&&console.error("q-option-group: model should not be array"):n===!1&&console.error("q-option-group: model should be array in your case");let i=we(e,r),l=s(()=>sd[e.type]),u=s(()=>"q-option-group q-gutter-x-sm"+(e.inline===!0?" q-option-group--inline":"")),d=s(()=>{let c={role:"group"};return e.type==="radio"&&(c.role="radiogroup",e.disable===!0&&(c["aria-disabled"]="true")),c});function f(c){t("update:modelValue",c)}return()=>a("div",{class:u.value,...d.value},e.options.map((c,g)=>{let v=o["label-"+g]!==void 0?()=>o["label-"+g](c):o.label!==void 0?()=>o.label(c):void 0;return a("div",[a(l.value,{modelValue:e.modelValue,val:c.value,name:c.name===void 0?e.name:c.name,disable:e.disable||c.disable,label:v===void 0?c.label:null,leftLabel:c.leftLabel===void 0?e.leftLabel:c.leftLabel,color:c.color===void 0?e.color:c.color,checkedIcon:c.checkedIcon,uncheckedIcon:c.uncheckedIcon,dark:c.dark||i.value,size:c.size===void 0?e.size:c.size,dense:e.dense,keepColor:c.keepColor===void 0?e.keepColor:c.keepColor,"onUpdate:modelValue":f},v)])}))}});var cd=A({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){let{proxy:{$q:o}}=U(),r=ht(Gt,Ze);if(r===Ze)return console.error("QPage needs to be a deep child of QLayout"),Ze;if(ht(qi,Ze)===Ze)return console.error("QPage needs to be child of QPageContainer"),Ze;let i=s(()=>{let u=(r.header.space===!0?r.header.size:0)+(r.footer.space===!0?r.footer.size:0);if(typeof e.styleFn=="function"){let d=r.isContainer.value===!0?r.containerHeight.value:o.screen.height;return e.styleFn(u,d)}return{minHeight:r.isContainer.value===!0?r.containerHeight.value-u+"px":o.screen.height===0?u!==0?`calc(100vh - ${u}px)`:"100vh":o.screen.height-u+"px"}}),l=s(()=>`q-page${e.padding===!0?" q-layout-padding":""}`);return()=>a("main",{class:l.value,style:i.value},ie(t.default))}});var dd=A({name:"QPageContainer",setup(e,{slots:t}){let{proxy:{$q:o}}=U(),r=ht(Gt,Ze);if(r===Ze)return console.error("QPageContainer needs to be child of QLayout"),Ze;Qt(qi,!0);let n=s(()=>{let i={};return r.header.space===!0&&(i.paddingTop=`${r.header.size}px`),r.right.space===!0&&(i[`padding${o.lang.rtl===!0?"Left":"Right"}`]=`${r.right.size}px`),r.footer.space===!0&&(i.paddingBottom=`${r.footer.size}px`),r.left.space===!0&&(i[`padding${o.lang.rtl===!0?"Right":"Left"}`]=`${r.left.size}px`),i});return()=>a("div",{class:"q-page-container",style:n.value},ie(t.default))}});var za={position:{type:String,default:"bottom-right",validator:e=>["top-right","top-left","bottom-right","bottom-left","top","right","bottom","left"].includes(e)},offset:{type:Array,validator:e=>e.length===2},expand:Boolean};function Oa(){let{props:e,proxy:{$q:t}}=U(),o=ht(Gt,Ze);if(o===Ze)return console.error("QPageSticky needs to be child of QLayout"),Ze;let r=s(()=>{let g=e.position;return{top:g.indexOf("top")!==-1,right:g.indexOf("right")!==-1,bottom:g.indexOf("bottom")!==-1,left:g.indexOf("left")!==-1,vertical:g==="top"||g==="bottom",horizontal:g==="left"||g==="right"}}),n=s(()=>o.header.offset),i=s(()=>o.right.offset),l=s(()=>o.footer.offset),u=s(()=>o.left.offset),d=s(()=>{let g=0,v=0,m=r.value,h=t.lang.rtl===!0?-1:1;m.top===!0&&n.value!==0?v=`${n.value}px`:m.bottom===!0&&l.value!==0&&(v=`${-l.value}px`),m.left===!0&&u.value!==0?g=`${h*u.value}px`:m.right===!0&&i.value!==0&&(g=`${-h*i.value}px`);let C={transform:`translate(${g}, ${v})`};return e.offset&&(C.margin=`${e.offset[1]}px ${e.offset[0]}px`),m.vertical===!0?(u.value!==0&&(C[t.lang.rtl===!0?"right":"left"]=`${u.value}px`),i.value!==0&&(C[t.lang.rtl===!0?"left":"right"]=`${i.value}px`)):m.horizontal===!0&&(n.value!==0&&(C.top=`${n.value}px`),l.value!==0&&(C.bottom=`${l.value}px`)),C}),f=s(()=>`q-page-sticky row flex-center fixed-${e.position} q-page-sticky--${e.expand===!0?"expand":"shrink"}`);function c(g){let v=ie(g.default);return a("div",{class:f.value,style:d.value},e.expand===!0?v:[a("div",v)])}return{$layout:o,getStickyContent:c}}var fd=A({name:"QPageScroller",props:{...za,scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{default:()=>[18,18]}},emits:["click"],setup(e,{slots:t,emit:o}){let{proxy:{$q:r}}=U(),{$layout:n,getStickyContent:i}=Oa(),l=T(null),u,d=s(()=>n.height.value-(n.isContainer.value===!0?n.containerHeight.value:r.screen.height));function f(){return e.reverse===!0?d.value-n.scroll.value.position>e.scrollOffset:n.scroll.value.position>e.scrollOffset}let c=T(f());function g(){let y=f();c.value!==y&&(c.value=y)}function v(){e.reverse===!0?u===void 0&&(u=j(d,g)):m()}j(n.scroll,g),j(()=>e.reverse,v);function m(){u!==void 0&&(u(),u=void 0)}function h(y){let q=Et(n.isContainer.value===!0?l.value:n.rootRef.value);Bo(q,e.reverse===!0?n.height.value:0,e.duration),o("click",y)}function C(){return c.value===!0?a("div",{ref:l,class:"q-page-scroller",onClick:h},i(t)):null}return v(),ye(m),()=>a(lt,{name:"q-transition--fade"},C)}});var md=A({name:"QPageSticky",props:za,setup(e,{slots:t}){let{getStickyContent:o}=Oa();return()=>o(t)}});function Ia(e,t){return[!0,!1].includes(e)?e:t}var vd=A({name:"QPagination",props:{...Ce,modelValue:{type:Number,required:!0},min:{type:[Number,String],default:1},max:{type:[Number,String],required:!0},maxPages:{type:[Number,String],default:0,validator:e=>(typeof e=="string"?parseInt(e,10):e)>=0},inputStyle:[Array,String,Object],inputClass:[Array,String,Object],size:String,disable:Boolean,input:Boolean,iconPrev:String,iconNext:String,iconFirst:String,iconLast:String,toFn:Function,boundaryLinks:{type:Boolean,default:null},boundaryNumbers:{type:Boolean,default:null},directionLinks:{type:Boolean,default:null},ellipses:{type:Boolean,default:null},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,color:{type:String,default:"primary"},textColor:String,activeDesign:{type:String,default:"",values:e=>e===""||Ml.includes(e)},activeColor:String,activeTextColor:String,gutter:String,padding:{type:String,default:"3px 2px"}},emits:["update:modelValue"],setup(e,{emit:t}){let{proxy:o}=U(),{$q:r}=o,n=we(e,r),i=s(()=>parseInt(e.min,10)),l=s(()=>parseInt(e.max,10)),u=s(()=>parseInt(e.maxPages,10)),d=s(()=>h.value+" / "+l.value),f=s(()=>Ia(e.boundaryLinks,e.input)),c=s(()=>Ia(e.boundaryNumbers,!e.input)),g=s(()=>Ia(e.directionLinks,e.input)),v=s(()=>Ia(e.ellipses,!e.input)),m=T(null),h=s({get:()=>e.modelValue,set:_=>{if(_=parseInt(_,10),e.disable||isNaN(_))return;let R=tt(_,i.value,l.value);e.modelValue!==R&&t("update:modelValue",R)}});j(()=>`${i.value}|${l.value}`,()=>{h.value=e.modelValue});let C=s(()=>"q-pagination row no-wrap items-center"+(e.disable===!0?" disabled":"")),y=s(()=>e.gutter in Wr?`${Wr[e.gutter]}px`:e.gutter||null),q=s(()=>y.value!==null?`--q-pagination-gutter-parent:-${y.value};--q-pagination-gutter-child:${y.value}`:null),S=s(()=>{let _=[e.iconFirst||r.iconSet.pagination.first,e.iconPrev||r.iconSet.pagination.prev,e.iconNext||r.iconSet.pagination.next,e.iconLast||r.iconSet.pagination.last];return r.lang.rtl===!0?_.reverse():_}),b=s(()=>({"aria-disabled":e.disable===!0?"true":"false",role:"navigation"})),p=s(()=>Fi(e,"flat")),k=s(()=>({[p.value]:!0,round:e.round,rounded:e.rounded,padding:e.padding,color:e.color,textColor:e.textColor,size:e.size,ripple:e.ripple!==null?e.ripple:!0})),$=s(()=>{let _={[p.value]:!1};return e.activeDesign!==""&&(_[e.activeDesign]=!0),_}),F=s(()=>({...$.value,color:e.activeColor||e.color,textColor:e.activeTextColor||e.textColor})),D=s(()=>{let _=Math.max(u.value,1+(v.value?2:0)+(c.value?2:0)),R={pgFrom:i.value,pgTo:l.value,ellipsesStart:!1,ellipsesEnd:!1,boundaryStart:!1,boundaryEnd:!1,marginalStyle:{minWidth:`${Math.max(2,String(l.value).length)}em`}};return u.value&&_<l.value-i.value+1&&(_=1+Math.floor(_/2)*2,R.pgFrom=Math.max(i.value,Math.min(l.value-_+1,e.modelValue-Math.floor(_/2))),R.pgTo=Math.min(l.value,R.pgFrom+_-1),c.value&&(R.boundaryStart=!0,R.pgFrom++),v.value&&R.pgFrom>i.value+(c.value?1:0)&&(R.ellipsesStart=!0,R.pgFrom++),c.value&&(R.boundaryEnd=!0,R.pgTo--),v.value&&R.pgTo<l.value-(c.value?1:0)&&(R.ellipsesEnd=!0,R.pgTo--)),R});function L(_){h.value=_}function B(_){h.value=h.value+_}let V=s(()=>{function _(){h.value=m.value,m.value=null}return{"onUpdate:modelValue":R=>{m.value=R},onKeyup:R=>{Tt(R,13)===!0&&_()},onBlur:_}});function E(_,R,N){let X={"aria-label":R,"aria-current":"false",...k.value,..._};return N===!0&&Object.assign(X,{"aria-current":"true",...F.value}),R!==void 0&&(e.toFn!==void 0?X.to=e.toFn(R):X.onClick=()=>{L(R)}),a(Oe,X)}return Object.assign(o,{set:L,setByOffset:B}),()=>{let _=[],R=[],N;if(f.value===!0&&(_.push(E({key:"bls",disable:e.disable||e.modelValue<=i.value,icon:S.value[0]},i.value)),R.unshift(E({key:"ble",disable:e.disable||e.modelValue>=l.value,icon:S.value[3]},l.value))),g.value===!0&&(_.push(E({key:"bdp",disable:e.disable||e.modelValue<=i.value,icon:S.value[1]},e.modelValue-1)),R.unshift(E({key:"bdn",disable:e.disable||e.modelValue>=l.value,icon:S.value[2]},e.modelValue+1))),e.input!==!0){N=[];let{pgFrom:X,pgTo:M,marginalStyle:Q}=D.value;if(D.value.boundaryStart===!0){let J=i.value===e.modelValue;_.push(E({key:"bns",style:Q,disable:e.disable,label:i.value},i.value,J))}if(D.value.boundaryEnd===!0){let J=l.value===e.modelValue;R.unshift(E({key:"bne",style:Q,disable:e.disable,label:l.value},l.value,J))}D.value.ellipsesStart===!0&&_.push(E({key:"bes",style:Q,disable:e.disable,label:"\u2026",ripple:!1},X-1)),D.value.ellipsesEnd===!0&&R.unshift(E({key:"bee",style:Q,disable:e.disable,label:"\u2026",ripple:!1},M+1));for(let J=X;J<=M;J++)N.push(E({key:`bpg${J}`,style:Q,disable:e.disable,label:J},J,J===e.modelValue))}return a("div",{class:C.value,...b.value},[a("div",{class:"q-pagination__content row no-wrap items-center",style:q.value},[..._,e.input===!0?a(Br,{class:"inline",style:{width:`${d.value.length/1.5}em`},type:"number",dense:!0,value:m.value,disable:e.disable,dark:n.value,borderless:!0,inputClass:e.inputClass,inputStyle:e.inputStyle,placeholder:d.value,min:i.value,max:l.value,...V.value}):a("div",{class:"q-pagination__middle row justify-center"},N),...R])])}}});function Lr(e){let t=!1,o,r;function n(){r=arguments,t!==!0&&(t=!0,o=requestAnimationFrame(()=>{e.apply(this,r),r=void 0,t=!1}))}return n.cancel=()=>{window.cancelAnimationFrame(o),t=!1},n}var{passive:Na}=Je,gd=A({name:"QParallax",props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:e=>e>=0&&e<=1},scrollTarget:{default:void 0},onScroll:Function},setup(e,{slots:t,emit:o}){let r=T(0),n=T(null),i=T(null),l=T(null),u,d,f,c,g,v;j(()=>e.height,()=>{u===!0&&h()}),j(()=>e.scrollTarget,()=>{u===!0&&(S(),q())});let m=b=>{r.value=b,e.onScroll!==void 0&&o("scroll",b)};function h(){let b,p,k;v===window?(b=0,k=p=window.innerHeight):(b=Cn(v).top,p=Ro(v),k=b+p);let $=Cn(n.value).top,F=$+e.height;if(g!==void 0||F>b&&$<k){let D=(k-$)/(e.height+p);C((f-e.height)*D*e.speed),m(D)}}let C=b=>{d.style.transform=`translate3d(-50%,${Math.round(b)}px,0)`};function y(){f=d.naturalHeight||d.videoHeight||Ro(d),u===!0&&h()}function q(){u=!0,v=Et(n.value,e.scrollTarget),v.addEventListener("scroll",h,Na),window.addEventListener("resize",c,Na),h()}function S(){u===!0&&(u=!1,v.removeEventListener("scroll",h,Na),window.removeEventListener("resize",c,Na),v=void 0,C.cancel(),m.cancel(),c.cancel())}return je(()=>{C=Lr(C),m=Lr(m),c=Lr(y),d=t.media!==void 0?i.value.children[0]:l.value,d.onload=d.onloadstart=d.loadedmetadata=y,y(),d.style.display="initial",window.IntersectionObserver!==void 0?(g=new IntersectionObserver(b=>{(b[0].isIntersecting===!0?q:S)()}),g.observe(n.value)):q()}),ye(()=>{S(),g!==void 0&&g.disconnect(),d.onload=d.onloadstart=d.loadedmetadata=null}),()=>a("div",{ref:n,class:"q-parallax",style:{height:`${e.height}px`}},[a("div",{ref:i,class:"q-parallax__media absolute-full"},t.media!==void 0?t.media():[a("img",{ref:l,src:e.src})]),a("div",{class:"q-parallax__content absolute-full column flex-center"},t.content!==void 0?t.content({percentScrolled:r.value}):ie(t.default))])}});function Jo(e,t=new WeakMap){if(Object(e)!==e)return e;if(t.has(e))return t.get(e);let o=e instanceof Date?new Date(e):e instanceof RegExp?new RegExp(e.source,e.flags):e instanceof Set?new Set:e instanceof Map?new Map:typeof e.constructor!="function"?Object.create(null):e.prototype!==void 0&&typeof e.prototype.constructor=="function"?e:new e.constructor;if(typeof e.constructor=="function"&&typeof e.valueOf=="function"){let r=e.valueOf();if(Object(r)!==r){let n=new e.constructor(r);return t.set(e,n),n}}return t.set(e,o),e instanceof Set?e.forEach(r=>{o.add(Jo(r,t))}):e instanceof Map&&e.forEach((r,n)=>{o.set(n,Jo(r,t))}),Object.assign(o,...Object.keys(e).map(r=>({[r]:Jo(e[r],t)})))}var hd=A({name:"QPopupEdit",props:{modelValue:{required:!0},title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:()=>!0},autoSave:Boolean,cover:{type:Boolean,default:!0},disable:Boolean},emits:["update:modelValue","save","cancel","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:o}){let{proxy:r}=U(),{$q:n}=r,i=T(null),l=T(""),u=T(""),d=!1,f=s(()=>st({initialValue:l.value,validate:e.validate,set:c,cancel:g,updatePosition:v},"value",()=>u.value,p=>{u.value=p}));function c(){e.validate(u.value)!==!1&&(m()===!0&&(o("save",u.value,l.value),o("update:modelValue",u.value)),h())}function g(){m()===!0&&o("cancel",u.value,l.value),h()}function v(){Ae(()=>{i.value.updatePosition()})}function m(){return Kt(u.value,l.value)===!1}function h(){d=!0,i.value.hide()}function C(){d=!1,l.value=Jo(e.modelValue),u.value=Jo(e.modelValue),o("beforeShow")}function y(){o("show")}function q(){d===!1&&m()===!0&&(e.autoSave===!0&&e.validate(u.value)===!0?(o("save",u.value,l.value),o("update:modelValue",u.value)):o("cancel",u.value,l.value)),o("beforeHide")}function S(){o("hide")}function b(){let p=t.default!==void 0?[].concat(t.default(f.value)):[];return e.title&&p.unshift(a("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},e.title)),e.buttons===!0&&p.push(a("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[a(Oe,{flat:!0,color:e.color,label:e.labelCancel||n.lang.label.cancel,onClick:g}),a(Oe,{flat:!0,color:e.color,label:e.labelSet||n.lang.label.set,onClick:c})])),p}return Object.assign(r,{set:c,cancel:g,show(p){i.value!==null&&i.value.show(p)},hide(p){i.value!==null&&i.value.hide(p)},updatePosition:v}),()=>{if(e.disable!==!0)return a(Fo,{ref:i,class:"q-popup-edit",cover:e.cover,onBeforeShow:C,onShow:y,onBeforeHide:q,onHide:S,onEscapeKey:g},b)}}});var pd=A({name:"QPopupProxy",props:{...or,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:t,emit:o,attrs:r}){let{proxy:n}=U(),{$q:i}=n,l=T(!1),u=T(null),d=s(()=>parseInt(e.breakpoint,10)),{canShow:f}=nr({showing:l});function c(){return i.screen.width<d.value||i.screen.height<d.value?"dialog":"menu"}let g=T(c()),v=s(()=>g.value==="menu"?{maxHeight:"99vh"}:{});j(()=>c(),C=>{l.value!==!0&&(g.value=C)});function m(C){l.value=!0,o("show",C)}function h(C){l.value=!1,g.value=c(),o("hide",C)}return Object.assign(n,{show(C){f(C)===!0&&u.value.show(C)},hide(C){u.value.hide(C)},toggle(C){u.value.toggle(C)}}),st(n,"currentComponent",()=>({type:g.value,ref:u.value})),()=>{let C={ref:u,...v.value,...r,onShow:m,onHide:h},y;return g.value==="dialog"?y=Io:(y=Fo,Object.assign(C,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),a(y,C,t.default)}}});var Fh={xs:2,sm:4,md:6,lg:10,xl:14};function bd(e,t,o){return{transform:t===!0?`translateX(${o.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var Ha=A({name:"QLinearProgress",props:{...Ce,...Lt,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){let{proxy:o}=U(),r=we(e,o.$q),n=Vt(e,Fh),i=s(()=>e.indeterminate===!0||e.query===!0),l=s(()=>e.reverse!==e.query),u=s(()=>({...n.value!==null?n.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),d=s(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),f=s(()=>bd(e.buffer!==void 0?e.buffer:1,l.value,o.$q)),c=s(()=>`with${e.instantFeedback===!0?"out":""}-transition`),g=s(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${c.value} q-linear-progress__track--${r.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),v=s(()=>bd(i.value===!0?1:e.value,l.value,o.$q)),m=s(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${c.value} q-linear-progress__model--${i.value===!0?"in":""}determinate`),h=s(()=>({width:`${e.value*100}%`})),C=s(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${c.value}`);return()=>{let y=[a("div",{class:g.value,style:f.value}),a("div",{class:m.value,style:v.value})];return e.stripe===!0&&i.value===!1&&y.push(a("div",{class:C.value,style:h.value})),a("div",{class:d.value,style:u.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},Xe(t.default,y))}}});var Vr=40,uu=20,yd=A({name:"QPullToRefresh",props:{color:String,bgColor:String,icon:String,noMouse:Boolean,disable:Boolean,scrollTarget:{default:void 0}},emits:["refresh"],setup(e,{slots:t,emit:o}){let{proxy:r}=U(),{$q:n}=r,i=T("pull"),l=T(0),u=T(!1),d=T(-Vr),f=T(!1),c=T({}),g=s(()=>({opacity:l.value,transform:`translateY(${d.value}px) rotate(${l.value*360}deg)`})),v=s(()=>"q-pull-to-refresh__puller row flex-center"+(f.value===!0?" q-pull-to-refresh__puller--animating":"")+(e.bgColor!==void 0?` bg-${e.bgColor}`:""));function m($){if($.isFinal===!0){u.value===!0&&(u.value=!1,i.value==="pulled"?(i.value="refreshing",p({pos:uu}),y()):i.value==="pull"&&p({pos:-Vr,ratio:0}));return}if(f.value===!0||i.value==="refreshing")return!1;if($.isFirst===!0){if(eo(S)!==0||$.direction!=="down")return u.value===!0&&(u.value=!1,i.value="pull",p({pos:-Vr,ratio:0})),!1;u.value=!0;let{top:L,left:B}=q.getBoundingClientRect();c.value={top:L+"px",left:B+"px",width:window.getComputedStyle(q).getPropertyValue("width")}}ft($.evt);let F=Math.min(140,Math.max(0,$.distance.y));d.value=F-Vr,l.value=tt(F/(uu+Vr),0,1);let D=d.value>uu?"pulled":"pull";i.value!==D&&(i.value=D)}let h=s(()=>{let $={down:!0};return e.noMouse!==!0&&($.mouse=!0),[[Rt,m,void 0,$]]}),C=s(()=>`q-pull-to-refresh__content${u.value===!0?" no-pointer-events":""}`);function y(){o("refresh",()=>{p({pos:-Vr,ratio:0},()=>{i.value="pull"})})}let q,S,b=null;function p({pos:$,ratio:F},D){f.value=!0,d.value=$,F!==void 0&&(l.value=F),b!==null&&clearTimeout(b),b=setTimeout(()=>{b=null,f.value=!1,D&&D()},300)}function k(){S=Et(q,e.scrollTarget)}return j(()=>e.scrollTarget,k),je(()=>{q=r.$el,k()}),ye(()=>{b!==null&&clearTimeout(b)}),Object.assign(r,{trigger:y,updateScrollTarget:k}),()=>{let $=[a("div",{class:C.value},ie(t.default)),a("div",{class:"q-pull-to-refresh__puller-container fixed row flex-center no-pointer-events z-top",style:c.value},[a("div",{class:v.value,style:g.value},[i.value!=="refreshing"?a(Re,{name:e.icon||n.iconSet.pullToRefresh.icon,color:e.color,size:"32px"}):a(Ct,{size:"24px",color:e.color})])])];return Mt("div",{class:"q-pull-to-refresh"},$,"main",e.disable===!1,()=>h.value)}}});var yn={MIN:0,RANGE:1,MAX:2},Sd=A({name:"QRange",props:{...Ji,modelValue:{type:Object,default:()=>({min:null,max:null}),validator:e=>"min"in e&&"max"in e},dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number],leftThumbColor:String,rightThumbColor:String},emits:ea,setup(e,{emit:t}){let{proxy:{$q:o}}=U(),{state:r,methods:n}=ta({updateValue:D,updatePosition:B,getDragging:L,formAttrs:s(()=>({type:"hidden",name:e.name,value:`${e.modelValue.min}|${e.modelValue.max}`}))}),i=T(null),l=T(0),u=T(0),d=T({min:0,max:0});function f(){d.value.min=e.modelValue.min===null?r.innerMin.value:tt(e.modelValue.min,r.innerMin.value,r.innerMax.value),d.value.max=e.modelValue.max===null?r.innerMax.value:tt(e.modelValue.max,r.innerMin.value,r.innerMax.value)}j(()=>`${e.modelValue.min}|${e.modelValue.max}|${r.innerMin.value}|${r.innerMax.value}`,f),f();let c=s(()=>n.convertModelToRatio(d.value.min)),g=s(()=>n.convertModelToRatio(d.value.max)),v=s(()=>r.active.value===!0?l.value:c.value),m=s(()=>r.active.value===!0?u.value:g.value),h=s(()=>{let E={[r.positionProp.value]:`${100*v.value}%`,[r.sizeProp.value]:`${100*(m.value-v.value)}%`};return e.selectionImg!==void 0&&(E.backgroundImage=`url(${e.selectionImg}) !important`),E}),C=s(()=>{if(r.editable.value!==!0)return{};if(o.platform.is.mobile===!0)return{onClick:n.onMobileClick};let E={onMousedown:n.onActivate};return(e.dragRange===!0||e.dragOnlyRange===!0)&&Object.assign(E,{onFocus:()=>{r.focus.value="both"},onBlur:n.onBlur,onKeydown:V,onKeyup:n.onKeyup}),E});function y(E){return o.platform.is.mobile!==!0&&r.editable.value===!0&&e.dragOnlyRange!==!0?{onFocus:()=>{r.focus.value=E},onBlur:n.onBlur,onKeydown:V,onKeyup:n.onKeyup}:{}}let q=s(()=>e.dragOnlyRange!==!0?r.tabindex.value:null),S=s(()=>o.platform.is.mobile!==!0&&(e.dragRange||e.dragOnlyRange===!0)?r.tabindex.value:null),b=T(null),p=s(()=>y("min")),k=n.getThumbRenderFn({focusValue:"min",getNodeData:()=>({ref:b,key:"tmin",...p.value,tabindex:q.value}),ratio:v,label:s(()=>e.leftLabelValue!==void 0?e.leftLabelValue:d.value.min),thumbColor:s(()=>e.leftThumbColor||e.thumbColor||e.color),labelColor:s(()=>e.leftLabelColor||e.labelColor),labelTextColor:s(()=>e.leftLabelTextColor||e.labelTextColor)}),$=s(()=>y("max")),F=n.getThumbRenderFn({focusValue:"max",getNodeData:()=>({...$.value,key:"tmax",tabindex:q.value}),ratio:m,label:s(()=>e.rightLabelValue!==void 0?e.rightLabelValue:d.value.max),thumbColor:s(()=>e.rightThumbColor||e.thumbColor||e.color),labelColor:s(()=>e.rightLabelColor||e.labelColor),labelTextColor:s(()=>e.rightLabelTextColor||e.labelTextColor)});function D(E){(d.value.min!==e.modelValue.min||d.value.max!==e.modelValue.max)&&t("update:modelValue",{...d.value}),E===!0&&t("change",{...d.value})}function L(E){let{left:_,top:R,width:N,height:X}=i.value.getBoundingClientRect(),M=e.dragOnlyRange===!0?0:e.vertical===!0?b.value.offsetHeight/(2*X):b.value.offsetWidth/(2*N),Q={left:_,top:R,width:N,height:X,valueMin:d.value.min,valueMax:d.value.max,ratioMin:c.value,ratioMax:g.value},J=n.getDraggingRatio(E,Q);return e.dragOnlyRange!==!0&&J<Q.ratioMin+M?Q.type=yn.MIN:e.dragOnlyRange===!0||J<Q.ratioMax-M?e.dragRange===!0||e.dragOnlyRange===!0?(Q.type=yn.RANGE,Object.assign(Q,{offsetRatio:J,offsetModel:n.convertRatioToModel(J),rangeValue:Q.valueMax-Q.valueMin,rangeRatio:Q.ratioMax-Q.ratioMin})):Q.type=Q.ratioMax-J<J-Q.ratioMin?yn.MAX:yn.MIN:Q.type=yn.MAX,Q}function B(E,_=r.dragging.value){let R,N=n.getDraggingRatio(E,_),X=n.convertRatioToModel(N);switch(_.type){case yn.MIN:N<=_.ratioMax?(R={minR:N,maxR:_.ratioMax,min:X,max:_.valueMax},r.focus.value="min"):(R={minR:_.ratioMax,maxR:N,min:_.valueMax,max:X},r.focus.value="max");break;case yn.MAX:N>=_.ratioMin?(R={minR:_.ratioMin,maxR:N,min:_.valueMin,max:X},r.focus.value="max"):(R={minR:N,maxR:_.ratioMin,min:X,max:_.valueMin},r.focus.value="min");break;case yn.RANGE:let M=N-_.offsetRatio,Q=tt(_.ratioMin+M,r.innerMinRatio.value,r.innerMaxRatio.value-_.rangeRatio),J=X-_.offsetModel,de=tt(_.valueMin+J,r.innerMin.value,r.innerMax.value-_.rangeValue);R={minR:Q,maxR:Q+_.rangeRatio,min:r.roundValueFn.value(de),max:r.roundValueFn.value(de+_.rangeValue)},r.focus.value="both";break}d.value=d.value.min===null||d.value.max===null?{min:R.min||e.min,max:R.max||e.max}:{min:R.min,max:R.max},e.snap!==!0||e.step===0?(l.value=R.minR,u.value=R.maxR):(l.value=n.convertModelToRatio(d.value.min),u.value=n.convertModelToRatio(d.value.max))}function V(E){if(!oi.includes(E.keyCode))return;qe(E);let _=([34,33].includes(E.keyCode)?10:1)*r.keyStep.value,R=([34,37,40].includes(E.keyCode)?-1:1)*(r.isReversed.value===!0?-1:1)*(e.vertical===!0?-1:1)*_;if(r.focus.value==="both"){let N=d.value.max-d.value.min,X=tt(r.roundValueFn.value(d.value.min+R),r.innerMin.value,r.innerMax.value-N);d.value={min:X,max:r.roundValueFn.value(X+N)}}else{if(r.focus.value===!1)return;{let N=r.focus.value;d.value={...d.value,[N]:tt(r.roundValueFn.value(d.value[N]+R),N==="min"?r.innerMin.value:d.value.min,N==="max"?r.innerMax.value:d.value.max)}}}D()}return()=>{let E=n.getContent(h,S,C,_=>{_.push(k(),F())});return a("div",{ref:i,class:"q-range "+r.classes.value+(e.modelValue.min===null||e.modelValue.max===null?" q-slider--no-value":""),...r.attributes.value,"aria-valuenow":e.modelValue.min+"|"+e.modelValue.max},E)}}});var xd=A({name:"QRating",props:{...Lt,...wt,modelValue:{type:Number,required:!0},max:{type:[String,Number],default:5},icon:[String,Array],iconHalf:[String,Array],iconSelected:[String,Array],iconAriaLabel:[String,Array],color:[String,Array],colorHalf:[String,Array],colorSelected:[String,Array],noReset:Boolean,noDimming:Boolean,readonly:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{slots:t,emit:o}){let{proxy:{$q:r}}=U(),n=Vt(e),i=Lo(e),l=Wt(i),u=T(0),d={},f=s(()=>e.readonly!==!0&&e.disable!==!0),c=s(()=>`q-rating row inline items-center q-rating--${f.value===!0?"":"non-"}editable`+(e.noDimming===!0?" q-rating--no-dimming":"")+(e.disable===!0?" disabled":"")+(e.color!==void 0&&Array.isArray(e.color)===!1?` text-${e.color}`:"")),g=s(()=>{let b=Array.isArray(e.icon)===!0?e.icon.length:0,p=Array.isArray(e.iconSelected)===!0?e.iconSelected.length:0,k=Array.isArray(e.iconHalf)===!0?e.iconHalf.length:0,$=Array.isArray(e.color)===!0?e.color.length:0,F=Array.isArray(e.colorSelected)===!0?e.colorSelected.length:0,D=Array.isArray(e.colorHalf)===!0?e.colorHalf.length:0;return{iconLen:b,icon:b>0?e.icon[b-1]:e.icon,selIconLen:p,selIcon:p>0?e.iconSelected[p-1]:e.iconSelected,halfIconLen:k,halfIcon:k>0?e.iconHalf[p-1]:e.iconHalf,colorLen:$,color:$>0?e.color[$-1]:e.color,selColorLen:F,selColor:F>0?e.colorSelected[F-1]:e.colorSelected,halfColorLen:D,halfColor:D>0?e.colorHalf[D-1]:e.colorHalf}}),v=s(()=>{if(typeof e.iconAriaLabel=="string"){let b=e.iconAriaLabel.length!==0?`${e.iconAriaLabel} `:"";return p=>`${b}${p}`}if(Array.isArray(e.iconAriaLabel)===!0){let b=e.iconAriaLabel.length;if(b>0)return p=>e.iconAriaLabel[Math.min(p,b)-1]}return(b,p)=>`${p} ${b}`}),m=s(()=>{let b=[],p=g.value,k=Math.ceil(e.modelValue),$=f.value===!0?0:null,F=e.iconHalf===void 0||k===e.modelValue?-1:k;for(let D=1;D<=e.max;D++){let L=u.value===0&&e.modelValue>=D||u.value>0&&u.value>=D,B=F===D&&u.value<D,V=u.value>0&&(B===!0?k:e.modelValue)>=D&&u.value<D,E=B===!0?D<=p.halfColorLen?e.colorHalf[D-1]:p.halfColor:p.selColor!==void 0&&L===!0?D<=p.selColorLen?e.colorSelected[D-1]:p.selColor:D<=p.colorLen?e.color[D-1]:p.color,_=(B===!0?D<=p.halfIconLen?e.iconHalf[D-1]:p.halfIcon:p.selIcon!==void 0&&(L===!0||V===!0)?D<=p.selIconLen?e.iconSelected[D-1]:p.selIcon:D<=p.iconLen?e.icon[D-1]:p.icon)||r.iconSet.rating.icon;b.push({name:(B===!0?D<=p.halfIconLen?e.iconHalf[D-1]:p.halfIcon:p.selIcon!==void 0&&(L===!0||V===!0)?D<=p.selIconLen?e.iconSelected[D-1]:p.selIcon:D<=p.iconLen?e.icon[D-1]:p.icon)||r.iconSet.rating.icon,attrs:{tabindex:$,role:"radio","aria-checked":e.modelValue===D?"true":"false","aria-label":v.value(D,_)},iconClass:"q-rating__icon"+(L===!0||B===!0?" q-rating__icon--active":"")+(V===!0?" q-rating__icon--exselected":"")+(u.value===D?" q-rating__icon--hovered":"")+(E!==void 0?` text-${E}`:"")})}return b}),h=s(()=>{let b={role:"radiogroup"};return e.disable===!0&&(b["aria-disabled"]="true"),e.readonly===!0&&(b["aria-readonly"]="true"),b});function C(b){if(f.value===!0){let p=tt(parseInt(b,10),1,parseInt(e.max,10)),k=e.noReset!==!0&&e.modelValue===p?0:p;k!==e.modelValue&&o("update:modelValue",k),u.value=0}}function y(b){f.value===!0&&(u.value=b)}function q(b,p){switch(b.keyCode){case 13:case 32:return C(p),qe(b);case 37:case 40:return d[`rt${p-1}`]&&d[`rt${p-1}`].focus(),qe(b);case 39:case 38:return d[`rt${p+1}`]&&d[`rt${p+1}`].focus(),qe(b)}}function S(){u.value=0}return ko(()=>{d={}}),()=>{let b=[];return m.value.forEach(({iconClass:p,name:k,attrs:$},F)=>{let D=F+1;b.push(a("div",{key:D,ref:L=>{d[`rt${D}`]=L},class:"q-rating__icon-container flex flex-center",...$,onClick(){C(D)},onMouseover(){y(D)},onMouseout:S,onFocus(){y(D)},onBlur:S,onKeyup(L){q(L,D)}},Xe(t[`tip-${D}`],[a(Re,{class:p,name:k})])))}),e.name!==void 0&&e.disable!==!0&&l(b,"push"),a("div",{class:c.value,style:n.value,...h.value},b)}}});var _d=A({name:"QResponsive",props:$r,setup(e,{slots:t}){let o=Er(e);return()=>a("div",{class:"q-responsive"},[a("div",{class:"q-responsive__filler overflow-hidden"},[a("div",{style:o.value})]),a("div",{class:"q-responsive__content absolute-full fit"},ie(t.default))])}});var Cd=["vertical","horizontal"],su={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},wd={prevent:!0,mouse:!0,mouseAllDir:!0},kd=e=>e>=250?50:Math.ceil(e/5),qd=A({name:"QScrollArea",props:{...Ce,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(e,{slots:t,emit:o}){let r=T(!1),n=T(!1),i=T(!1),l={vertical:T(0),horizontal:T(0)},u={vertical:{ref:T(null),position:T(0),size:T(0)},horizontal:{ref:T(null),position:T(0),size:T(0)}},{proxy:d}=U(),f=we(e,d.$q),c=null,g,v=T(null),m=s(()=>"q-scrollarea"+(f.value===!0?" q-scrollarea--dark":""));u.vertical.percentage=s(()=>{let M=u.vertical.size.value-l.vertical.value;if(M<=0)return 0;let Q=tt(u.vertical.position.value/M,0,1);return Math.round(Q*1e4)/1e4}),u.vertical.thumbHidden=s(()=>(e.visible===null?i.value:e.visible)!==!0&&r.value===!1&&n.value===!1||u.vertical.size.value<=l.vertical.value+1),u.vertical.thumbStart=s(()=>u.vertical.percentage.value*(l.vertical.value-u.vertical.thumbSize.value)),u.vertical.thumbSize=s(()=>Math.round(tt(l.vertical.value*l.vertical.value/u.vertical.size.value,kd(l.vertical.value),l.vertical.value))),u.vertical.style=s(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${u.vertical.thumbStart.value}px`,height:`${u.vertical.thumbSize.value}px`})),u.vertical.thumbClass=s(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.vertical.barClass=s(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(u.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),u.horizontal.percentage=s(()=>{let M=u.horizontal.size.value-l.horizontal.value;if(M<=0)return 0;let Q=tt(Math.abs(u.horizontal.position.value)/M,0,1);return Math.round(Q*1e4)/1e4}),u.horizontal.thumbHidden=s(()=>(e.visible===null?i.value:e.visible)!==!0&&r.value===!1&&n.value===!1||u.horizontal.size.value<=l.horizontal.value+1),u.horizontal.thumbStart=s(()=>u.horizontal.percentage.value*(l.horizontal.value-u.horizontal.thumbSize.value)),u.horizontal.thumbSize=s(()=>Math.round(tt(l.horizontal.value*l.horizontal.value/u.horizontal.size.value,kd(l.horizontal.value),l.horizontal.value))),u.horizontal.style=s(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[d.$q.lang.rtl===!0?"right":"left"]:`${u.horizontal.thumbStart.value}px`,width:`${u.horizontal.thumbSize.value}px`})),u.horizontal.thumbClass=s(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),u.horizontal.barClass=s(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(u.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));let h=s(()=>u.vertical.thumbHidden.value===!0&&u.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle),C=[[Rt,M=>{F(M,"vertical")},void 0,{vertical:!0,...wd}]],y=[[Rt,M=>{F(M,"horizontal")},void 0,{horizontal:!0,...wd}]];function q(){let M={};return Cd.forEach(Q=>{let J=u[Q];M[Q+"Position"]=J.position.value,M[Q+"Percentage"]=J.percentage.value,M[Q+"Size"]=J.size.value,M[Q+"ContainerSize"]=l[Q].value}),M}let S=Xt(()=>{let M=q();M.ref=d,o("scroll",M)},0);function b(M,Q,J){if(Cd.includes(M)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(M==="vertical"?Bo:Zr)(v.value,Q,J)}function p({height:M,width:Q}){let J=!1;l.vertical.value!==M&&(l.vertical.value=M,J=!0),l.horizontal.value!==Q&&(l.horizontal.value=Q,J=!0),J===!0&&V()}function k({position:M}){let Q=!1;u.vertical.position.value!==M.top&&(u.vertical.position.value=M.top,Q=!0),u.horizontal.position.value!==M.left&&(u.horizontal.position.value=M.left,Q=!0),Q===!0&&V()}function $({height:M,width:Q}){u.horizontal.size.value!==Q&&(u.horizontal.size.value=Q,V()),u.vertical.size.value!==M&&(u.vertical.size.value=M,V())}function F(M,Q){let J=u[Q];if(M.isFirst===!0){if(J.thumbHidden.value===!0)return;g=J.position.value,n.value=!0}else if(n.value!==!0)return;M.isFinal===!0&&(n.value=!1);let de=su[Q],O=l[Q].value,w=(J.size.value-O)/(O-J.thumbSize.value),W=M.distance[de.dist],H=g+(M.direction===de.dir?1:-1)*W*w;E(H,Q)}function D(M,Q){let J=u[Q];if(J.thumbHidden.value!==!0){let de=M[su[Q].offset];if(de<J.thumbStart.value||de>J.thumbStart.value+J.thumbSize.value){let O=de-J.thumbSize.value/2;E(O/l[Q].value*J.size.value,Q)}J.ref.value!==null&&J.ref.value.dispatchEvent(new MouseEvent(M.type,M))}}function L(M){D(M,"vertical")}function B(M){D(M,"horizontal")}function V(){r.value=!0,c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,r.value=!1},e.delay),e.onScroll!==void 0&&S()}function E(M,Q){v.value[su[Q].scroll]=M}let _=null;function R(){_!==null&&clearTimeout(_),_=setTimeout(()=>{_=null,i.value=!0},d.$q.platform.is.ios?50:0)}function N(){_!==null&&(clearTimeout(_),_=null),i.value=!1}let X=null;return j(()=>d.$q.lang.rtl,M=>{v.value!==null&&Zr(v.value,Math.abs(u.horizontal.position.value)*(M===!0?-1:1))}),Bt(()=>{X={top:u.vertical.position.value,left:u.horizontal.position.value}}),Ht(()=>{if(X===null)return;let M=v.value;M!==null&&(Zr(M,X.left),Bo(M,X.top))}),ye(S.cancel),Object.assign(d,{getScrollTarget:()=>v.value,getScroll:q,getScrollPosition:()=>({top:u.vertical.position.value,left:u.horizontal.position.value}),getScrollPercentage:()=>({top:u.vertical.percentage.value,left:u.horizontal.percentage.value}),setScrollPosition:b,setScrollPercentage(M,Q,J){b(M,Q*(u[M].size.value-l[M].value)*(M==="horizontal"&&d.$q.lang.rtl===!0?-1:1),J)}}),()=>a("div",{class:m.value,onMouseenter:R,onMouseleave:N},[a("div",{ref:v,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[a("div",{class:"q-scrollarea__content absolute",style:h.value},Xe(t.default,[a(to,{debounce:0,onResize:$})])),a(Fr,{axis:"both",onScroll:k})]),a(to,{debounce:0,onResize:p}),a("div",{class:u.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:L}),a("div",{class:u.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:B}),$t(a("div",{ref:u.vertical.ref,class:u.vertical.thumbClass.value,style:u.vertical.style.value,"aria-hidden":"true"}),C),$t(a("div",{ref:u.horizontal.ref,class:u.horizontal.thumbClass.value,style:u.horizontal.style.value,"aria-hidden":"true"}),y)])}});var So=1e3,Lh=["start","center","end","start-force","center-force","end-force"],Md=Array.prototype.filter,Vh=window.getComputedStyle(document.body).overflowAnchor===void 0?Ye:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;let o=e.children||[];Md.call(o,n=>n.dataset&&n.dataset.qVsAnchor!==void 0).forEach(n=>{delete n.dataset.qVsAnchor});let r=o[t];r&&r.dataset&&(r.dataset.qVsAnchor="")}))};function Dr(e,t){return e+t}function cu(e,t,o,r,n,i,l,u){let d=e===window?document.scrollingElement||document.documentElement:e,f=n===!0?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-l-u,scrollMaxSize:0,offsetStart:-l,offsetEnd:-u};if(n===!0?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=d.scrollLeft,c.scrollViewSize+=d.clientWidth),c.scrollMaxSize=d.scrollWidth,i===!0&&(c.scrollStart=(An===!0?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=d.scrollTop,c.scrollViewSize+=d.clientHeight),c.scrollMaxSize=d.scrollHeight),o!==null)for(let g=o.previousElementSibling;g!==null;g=g.previousElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(c.offsetStart+=g[f]);if(r!==null)for(let g=r.nextElementSibling;g!==null;g=g.nextElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(c.offsetEnd+=g[f]);if(t!==e){let g=d.getBoundingClientRect(),v=t.getBoundingClientRect();n===!0?(c.offsetStart+=v.left-g.left,c.offsetEnd-=v.width):(c.offsetStart+=v.top-g.top,c.offsetEnd-=v.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function Td(e,t,o,r){t==="end"&&(t=(e===window?document.body:e)[o===!0?"scrollWidth":"scrollHeight"]),e===window?o===!0?(r===!0&&(t=(An===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):o===!0?(r===!0&&(t=(An===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function ci(e,t,o,r){if(o>=r)return 0;let n=t.length,i=Math.floor(o/So),l=Math.floor((r-1)/So)+1,u=e.slice(i,l).reduce(Dr,0);return o%So!==0&&(u-=t.slice(i*So,o).reduce(Dr,0)),r%So!==0&&r!==n&&(u-=t.slice(r,l*So).reduce(Dr,0)),u}var Rd={virtualScrollSliceSize:{type:[Number,String],default:null},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},du=Object.keys(Rd),Qa={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Rd};function ja({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:o,virtualScrollItemSizeComputed:r}){let n=U(),{props:i,emit:l,proxy:u}=n,{$q:d}=u,f,c,g,v=[],m,h=T(0),C=T(0),y=T({}),q=T(null),S=T(null),b=T(null),p=T({from:0,to:0}),k=s(()=>i.tableColspan!==void 0?i.tableColspan:100);r===void 0&&(r=s(()=>i.virtualScrollItemSize));let $=s(()=>r.value+";"+i.virtualScrollHorizontal),F=s(()=>$.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);j(F,()=>{X()}),j($,D);function D(){N(c,!0)}function L(O){N(O===void 0?c:O)}function B(O,w){let W=t();if(W==null||W.nodeType===8)return;let H=cu(W,o(),q.value,S.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);g!==H.scrollViewSize&&X(H.scrollViewSize),E(W,H,Math.min(e.value-1,Math.max(0,parseInt(O,10)||0)),0,Lh.indexOf(w)!==-1?w:c!==-1&&O>c?"end":"start")}function V(){let O=t();if(O==null||O.nodeType===8)return;let w=cu(O,o(),q.value,S.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),W=e.value-1,H=w.scrollMaxSize-w.offsetStart-w.offsetEnd-C.value;if(f===w.scrollStart)return;if(w.scrollMaxSize<=0){E(O,w,0,0);return}g!==w.scrollViewSize&&X(w.scrollViewSize),_(p.value.from);let ee=Math.floor(w.scrollMaxSize-Math.max(w.scrollViewSize,w.offsetEnd)-Math.min(m[W],w.scrollViewSize/2));if(ee>0&&Math.ceil(w.scrollStart)>=ee){E(O,w,W,w.scrollMaxSize-w.offsetEnd-v.reduce(Dr,0));return}let Y=0,ue=w.scrollStart-w.offsetStart,K=ue;if(ue<=H&&ue+w.scrollViewSize>=h.value)ue-=h.value,Y=p.value.from,K=ue;else for(let x=0;ue>=v[x]&&Y<W;x++)ue-=v[x],Y+=So;for(;ue>0&&Y<W;)ue-=m[Y],ue>-w.scrollViewSize?(Y++,K=ue):K=m[Y]+ue;E(O,w,Y,K)}function E(O,w,W,H,ee){let Y=typeof ee=="string"&&ee.indexOf("-force")!==-1,ue=Y===!0?ee.replace("-force",""):ee,K=ue!==void 0?ue:"start",x=Math.max(0,W-y.value[K]),G=x+y.value.total;G>e.value&&(G=e.value,x=Math.max(0,G-y.value.total)),f=w.scrollStart;let ae=x!==p.value.from||G!==p.value.to;if(ae===!1&&ue===void 0){Q(W);return}let{activeElement:fe}=document,Se=b.value;ae===!0&&Se!==null&&Se!==fe&&Se.contains(fe)===!0&&(Se.addEventListener("focusout",R),setTimeout(()=>{Se!==null&&Se.removeEventListener("focusout",R)})),Vh(Se,W-x);let me=ue!==void 0?m.slice(x,W).reduce(Dr,0):0;if(ae===!0){let ze=G>=p.value.from&&x<=p.value.to?p.value.to:G;p.value={from:x,to:ze},h.value=ci(v,m,0,x),C.value=ci(v,m,G,e.value),requestAnimationFrame(()=>{p.value.to!==G&&f===w.scrollStart&&(p.value={from:p.value.from,to:G},C.value=ci(v,m,G,e.value))})}requestAnimationFrame(()=>{if(f!==w.scrollStart)return;ae===!0&&_(x);let ze=m.slice(x,W).reduce(Dr,0),Be=ze+w.offsetStart+h.value,xe=Be+m[W],Ie=Be+H;if(ue!==void 0){let it=ze-me,Ke=w.scrollStart+it;Ie=Y!==!0&&Ke<Be&&xe<Ke+w.scrollViewSize?Ke:ue==="end"?xe-w.scrollViewSize:Be-(ue==="start"?0:Math.round((w.scrollViewSize-m[W])/2))}f=Ie,Td(O,Ie,i.virtualScrollHorizontal,d.lang.rtl),Q(W)})}function _(O){let w=b.value;if(w){let W=Md.call(w.children,x=>x.classList&&x.classList.contains("q-virtual-scroll--skip")===!1),H=W.length,ee=i.virtualScrollHorizontal===!0?x=>x.getBoundingClientRect().width:x=>x.offsetHeight,Y=O,ue,K;for(let x=0;x<H;){for(ue=ee(W[x]),x++;x<H&&W[x].classList.contains("q-virtual-scroll--with-prev")===!0;)ue+=ee(W[x]),x++;K=ue-m[Y],K!==0&&(m[Y]+=K,v[Math.floor(Y/So)]+=K),Y++}}}function R(){b.value!==null&&b.value!==void 0&&b.value.focus()}function N(O,w){let W=1*r.value;(w===!0||Array.isArray(m)===!1)&&(m=[]);let H=m.length;m.length=e.value;for(let Y=e.value-1;Y>=H;Y--)m[Y]=W;let ee=Math.floor((e.value-1)/So);v=[];for(let Y=0;Y<=ee;Y++){let ue=0,K=Math.min((Y+1)*So,e.value);for(let x=Y*So;x<K;x++)ue+=m[x];v.push(ue)}c=-1,f=void 0,h.value=ci(v,m,0,p.value.from),C.value=ci(v,m,p.value.to,e.value),O>=0?(_(p.value.from),Ae(()=>{B(O)})):J()}function X(O){if(O===void 0&&typeof window<"u"){let ue=t();ue!=null&&ue.nodeType!==8&&(O=cu(ue,o(),q.value,S.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}g=O;let w=parseFloat(i.virtualScrollSliceRatioBefore)||0,W=parseFloat(i.virtualScrollSliceRatioAfter)||0,H=1+w+W,ee=O===void 0||O<=0?1:Math.ceil(O/r.value),Y=Math.max(1,ee,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/H));y.value={total:Math.ceil(Y*H),start:Math.ceil(Y*w),center:Math.ceil(Y*(.5+w)),end:Math.ceil(Y*(1+w)),view:ee}}function M(O,w){let W=i.virtualScrollHorizontal===!0?"width":"height",H={["--q-virtual-scroll-item-"+W]:r.value+"px"};return[O==="tbody"?a(O,{class:"q-virtual-scroll__padding",key:"before",ref:q},[a("tr",[a("td",{style:{[W]:`${h.value}px`,...H},colspan:k.value})])]):a(O,{class:"q-virtual-scroll__padding",key:"before",ref:q,style:{[W]:`${h.value}px`,...H}}),a(O,{class:"q-virtual-scroll__content",key:"content",ref:b,tabindex:-1},w.flat()),O==="tbody"?a(O,{class:"q-virtual-scroll__padding",key:"after",ref:S},[a("tr",[a("td",{style:{[W]:`${C.value}px`,...H},colspan:k.value})])]):a(O,{class:"q-virtual-scroll__padding",key:"after",ref:S,style:{[W]:`${C.value}px`,...H}})]}function Q(O){c!==O&&(i.onVirtualScroll!==void 0&&l("virtualScroll",{index:O,from:p.value.from,to:p.value.to-1,direction:O<c?"decrease":"increase",ref:u}),c=O)}X();let J=Xt(V,d.platform.is.ios===!0?120:35);Nn(()=>{X()});let de=!1;return Bt(()=>{de=!0}),Ht(()=>{if(de!==!0)return;let O=t();f!==void 0&&O!==void 0&&O!==null&&O.nodeType!==8?Td(O,f,i.virtualScrollHorizontal,d.lang.rtl):B(c)}),ye(()=>{J.cancel()}),Object.assign(u,{scrollTo:B,reset:D,refresh:L}),{virtualScrollSliceRange:p,virtualScrollSliceSizeComputed:y,setVirtualScrollSize:X,onVirtualScrollEvt:J,localResetVirtualScroll:N,padVirtualScroll:M,scrollTo:B,reset:D,refresh:L}}var Pd=e=>["add","add-unique","toggle"].includes(e),Dh=".*+?^${}()|[]\\",zh=Object.keys(Zo),Ua=A({name:"QSelect",inheritAttrs:!1,props:{...Qa,...wt,...Zo,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Pd},mapOptions:Boolean,emitValue:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:String,transitionHide:String,transitionDuration:[String,Number],behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:{type:[Number,String],default:void 0},onNewValue:Function,onFilter:Function},emits:[...hn,"add","remove","inputValue","newValue","keyup","keypress","keydown","filterAbort"],setup(e,{slots:t,emit:o}){let{proxy:r}=U(),{$q:n}=r,i=T(!1),l=T(!1),u=T(-1),d=T(""),f=T(!1),c=T(!1),g=null,v=null,m,h,C,y=null,q,S,b,p,k=T(null),$=T(null),F=T(null),D=T(null),L=T(null),B=gr(e),V=$a(be),E=s(()=>Array.isArray(e.options)?e.options.length:0),_=s(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:R,virtualScrollSliceSizeComputed:N,localResetVirtualScroll:X,padVirtualScroll:M,onVirtualScrollEvt:Q,scrollTo:J,setVirtualScrollSize:de}=ja({virtualScrollLength:E,getVirtualScrollTarget:lo,getVirtualScrollEl:Yt,virtualScrollItemSizeComputed:_}),O=pn(),w=s(()=>{let z=e.mapOptions===!0&&e.multiple!==!0,Te=e.modelValue!==void 0&&(e.modelValue!==null||z===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){let _e=e.mapOptions===!0&&m!==void 0?m:[],We=Te.map(bt=>Z(bt,_e));return e.modelValue===null&&z===!0?We.filter(bt=>bt!==null):We}return Te}),W=s(()=>{let z={};return zh.forEach(Te=>{let _e=e[Te];_e!==void 0&&(z[Te]=_e)}),z}),H=s(()=>e.optionsDark===null?O.isDark.value:e.optionsDark),ee=s(()=>Ho(w.value)),Y=s(()=>{let z="q-field__input q-placeholder col";return e.hideSelected===!0||w.value.length===0?[z,e.inputClass]:(z+=" q-field__input--padding",e.inputClass===void 0?z:[z,e.inputClass])}),ue=s(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),K=s(()=>E.value===0),x=s(()=>w.value.map(z=>ve.value(z)).join(", ")),G=s(()=>e.displayValue!==void 0?e.displayValue:x.value),ae=s(()=>e.optionsHtml===!0?()=>!0:z=>z!=null&&z.html===!0),fe=s(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||w.value.some(ae.value))),Se=s(()=>O.focused.value===!0?e.tabindex:-1),me=s(()=>{let z={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":i.value===!0?"true":"false","aria-controls":`${O.targetUid.value}_lb`};return u.value>=0&&(z["aria-activedescendant"]=`${O.targetUid.value}_${u.value}`),z}),ze=s(()=>({id:`${O.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Be=s(()=>w.value.map((z,Te)=>({index:Te,opt:z,html:ae.value(z),selected:!0,removeAtIndex:at,toggleOption:vt,tabindex:Se.value}))),xe=s(()=>{if(E.value===0)return[];let{from:z,to:Te}=R.value;return e.options.slice(z,Te).map((_e,We)=>{let bt=te.value(_e)===!0,gt=Pe(_e)===!0,zt=z+We,At={clickable:!0,active:gt,activeClass:Ke.value,manualFocus:!0,focused:!1,disable:bt,tabindex:-1,dense:e.optionsDense,dark:H.value,role:"option","aria-selected":gt===!0?"true":"false",id:`${O.targetUid.value}_${zt}`,onClick:()=>{vt(_e)}};return bt!==!0&&(u.value===zt&&(At.focused=!0),n.platform.is.desktop===!0&&(At.onMousemove=()=>{i.value===!0&&ne(zt)})),{index:zt,opt:_e,html:ae.value(_e),label:ve.value(_e),selected:At.active,focused:At.focused,toggleOption:vt,setOptionIndex:ne,itemProps:At}})}),Ie=s(()=>e.dropdownIcon!==void 0?e.dropdownIcon:n.iconSet.arrow.dropdown),it=s(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),Ke=s(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),ce=s(()=>le(e.optionValue,"value")),ve=s(()=>le(e.optionLabel,"label")),te=s(()=>le(e.optionDisable,"disable")),pe=s(()=>w.value.map(z=>ce.value(z))),Fe=s(()=>{let z={onInput:be,onChange:V,onKeydown:yt,onKeyup:et,onKeypress:pt,onFocus:He,onClick(Te){h===!0&&rt(Te)}};return z.onCompositionstart=z.onCompositionupdate=z.onCompositionend=V,z});j(w,z=>{m=z,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&O.innerLoading.value!==!0&&(l.value!==!0&&i.value!==!0||ee.value!==!0)&&(C!==!0&&In(),(l.value===!0||i.value===!0)&&Ue(""))},{immediate:!0}),j(()=>e.fillInput,In),j(i,gl),j(E,lv);function Ve(z){return e.emitValue===!0?ce.value(z):z}function Le(z){if(z!==-1&&z<w.value.length)if(e.multiple===!0){let Te=e.modelValue.slice();o("remove",{index:z,value:Te.splice(z,1)[0]}),o("update:modelValue",Te)}else o("update:modelValue",null)}function at(z){Le(z),O.focus()}function mt(z,Te){let _e=Ve(z);if(e.multiple!==!0){e.fillInput===!0&&De(ve.value(z),!0,!0),o("update:modelValue",_e);return}if(w.value.length===0){o("add",{index:0,value:_e}),o("update:modelValue",e.multiple===!0?[_e]:_e);return}if(Te===!0&&Pe(z)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;let We=e.modelValue.slice();o("add",{index:We.length,value:_e}),We.push(_e),o("update:modelValue",We)}function vt(z,Te){if(O.editable.value!==!0||z===void 0||te.value(z)===!0)return;let _e=ce.value(z);if(e.multiple!==!0){Te!==!0&&(De(e.fillInput===!0?ve.value(z):"",!0,!0),Sn()),$.value!==null&&$.value.focus(),(w.value.length===0||Kt(ce.value(w.value[0]),_e)!==!0)&&o("update:modelValue",e.emitValue===!0?_e:z);return}if((h!==!0||f.value===!0)&&O.focus(),He(),w.value.length===0){let gt=e.emitValue===!0?_e:z;o("add",{index:0,value:gt}),o("update:modelValue",e.multiple===!0?[gt]:gt);return}let We=e.modelValue.slice(),bt=pe.value.findIndex(gt=>Kt(gt,_e));if(bt!==-1)o("remove",{index:bt,value:We.splice(bt,1)[0]});else{if(e.maxValues!==void 0&&We.length>=e.maxValues)return;let gt=e.emitValue===!0?_e:z;o("add",{index:We.length,value:gt}),We.push(gt)}o("update:modelValue",We)}function ne(z){if(n.platform.is.desktop!==!0)return;let Te=z!==-1&&z<E.value?z:-1;u.value!==Te&&(u.value=Te)}function se(z=1,Te){if(i.value===!0){let _e=u.value;do _e=_n(_e+z,-1,E.value-1);while(_e!==-1&&_e!==u.value&&te.value(e.options[_e])===!0);u.value!==_e&&(ne(_e),J(_e),Te!==!0&&e.useInput===!0&&e.fillInput===!0&&$e(_e>=0?ve.value(e.options[_e]):q,!0))}}function Z(z,Te){let _e=We=>Kt(ce.value(We),z);return e.options.find(_e)||Te.find(_e)||z}function le(z,Te){let _e=z!==void 0?z:Te;return typeof _e=="function"?_e:We=>We!==null&&typeof We=="object"&&_e in We?We[_e]:We}function Pe(z){let Te=ce.value(z);return pe.value.find(_e=>Kt(_e,Te))!==void 0}function He(z){e.useInput===!0&&$.value!==null&&(z===void 0||$.value===z.target&&z.target.value===x.value)&&$.value.select()}function ke(z){Tt(z,27)===!0&&i.value===!0&&(rt(z),Sn(),In()),o("keyup",z)}function et(z){let{value:Te}=z.target;if(z.keyCode!==void 0){ke(z);return}if(z.target.value="",g!==null&&(clearTimeout(g),g=null),v!==null&&(clearTimeout(v),v=null),In(),typeof Te=="string"&&Te.length!==0){let _e=Te.toLocaleLowerCase(),We=gt=>{let zt=e.options.find(At=>gt.value(At).toLocaleLowerCase()===_e);return zt===void 0?!1:(w.value.indexOf(zt)===-1?vt(zt):Sn(),!0)},bt=gt=>{We(ce)!==!0&&(We(ve)===!0||gt===!0||Ue(Te,!0,()=>bt(!0)))};bt()}else O.clearValue(z)}function pt(z){o("keypress",z)}function yt(z){if(o("keydown",z),no(z)===!0)return;let Te=d.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),_e=z.shiftKey!==!0&&e.multiple!==!0&&(u.value!==-1||Te===!0);if(z.keyCode===27){ft(z);return}if(z.keyCode===9&&_e===!1){ut();return}if(z.target===void 0||z.target.id!==O.targetUid.value||O.editable.value!==!0)return;if(z.keyCode===40&&O.innerLoading.value!==!0&&i.value===!1){qe(z),uo();return}if(z.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&d.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?Le(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&o("update:modelValue",null);return}(z.keyCode===35||z.keyCode===36)&&(typeof d.value!="string"||d.value.length===0)&&(qe(z),u.value=-1,se(z.keyCode===36?1:-1,e.multiple)),(z.keyCode===33||z.keyCode===34)&&N.value!==void 0&&(qe(z),u.value=Math.max(-1,Math.min(E.value,u.value+(z.keyCode===33?-1:1)*N.value.view)),se(z.keyCode===33?1:-1,e.multiple)),(z.keyCode===38||z.keyCode===40)&&(qe(z),se(z.keyCode===38?-1:1,e.multiple));let We=E.value;if((b===void 0||p<Date.now())&&(b=""),We>0&&e.useInput!==!0&&z.key!==void 0&&z.key.length===1&&z.altKey===!1&&z.ctrlKey===!1&&z.metaKey===!1&&(z.keyCode!==32||b.length!==0)){i.value!==!0&&uo(z);let bt=z.key.toLocaleLowerCase(),gt=b.length===1&&b[0]===bt;p=Date.now()+1500,gt===!1&&(qe(z),b+=bt);let zt=new RegExp("^"+b.split("").map(hl=>Dh.indexOf(hl)!==-1?"\\"+hl:hl).join(".*"),"i"),At=u.value;if(gt===!0||At<0||zt.test(ve.value(e.options[At]))!==!0)do At=_n(At+1,-1,We-1);while(At!==u.value&&(te.value(e.options[At])===!0||zt.test(ve.value(e.options[At]))!==!0));u.value!==At&&Ae(()=>{ne(At),J(At),At>=0&&e.useInput===!0&&e.fillInput===!0&&$e(ve.value(e.options[At]),!0)});return}if(!(z.keyCode!==13&&(z.keyCode!==32||e.useInput===!0||b!=="")&&(z.keyCode!==9||_e===!1))){if(z.keyCode!==9&&qe(z),u.value!==-1&&u.value<We){vt(e.options[u.value]);return}if(Te===!0){let bt=(gt,zt)=>{if(zt){if(Pd(zt)!==!0)return}else zt=e.newValueMode;if(De("",e.multiple!==!0,!0),gt==null)return;(zt==="toggle"?vt:mt)(gt,zt==="add-unique"),e.multiple!==!0&&($.value!==null&&$.value.focus(),Sn())};if(e.onNewValue!==void 0?o("newValue",d.value,bt):bt(d.value),e.multiple!==!0)return}i.value===!0?ut():O.innerLoading.value!==!0&&uo()}}function Yt(){return h===!0?L.value:F.value!==null&&F.value.contentEl!==null?F.value.contentEl:void 0}function lo(){return Yt()}function Qo(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?Be.value.map(z=>t["selected-item"](z)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?Be.value.map((z,Te)=>a(qr,{key:"option-"+Te,removable:O.editable.value===!0&&te.value(z.opt)!==!0,dense:!0,textColor:e.color,tabindex:Se.value,onRemove(){z.removeAtIndex(Te)}},()=>a("span",{class:"ellipsis",[z.html===!0?"innerHTML":"textContent"]:ve.value(z.opt)}))):[a("span",{[fe.value===!0?"innerHTML":"textContent"]:G.value})]}function wo(){if(K.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:d.value}):void 0;let z=t.option!==void 0?t.option:_e=>a(No,{key:_e.index,..._e.itemProps},()=>a(oo,()=>a(Ln,()=>a("span",{[_e.html===!0?"innerHTML":"textContent"]:_e.label})))),Te=M("div",xe.value.map(z));return t["before-options"]!==void 0&&(Te=t["before-options"]().concat(Te)),Xe(t["after-options"],Te)}function re(z,Te){let _e=Te===!0?{...me.value,...O.splitAttrs.attributes.value}:void 0,We={ref:Te===!0?$:void 0,key:"i_t",class:Y.value,style:e.inputStyle,value:d.value!==void 0?d.value:"",type:"search",..._e,id:Te===!0?O.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":z===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...Fe.value};return z!==!0&&h===!0&&(Array.isArray(We.class)===!0?We.class=[...We.class,"no-pointer-events"]:We.class+=" no-pointer-events"),a("input",We)}function be(z){g!==null&&(clearTimeout(g),g=null),v!==null&&(clearTimeout(v),v=null),!(z&&z.target&&z.target.qComposing===!0)&&($e(z.target.value||""),C=!0,q=d.value,O.focused.value!==!0&&(h!==!0||f.value===!0)&&O.focus(),e.onFilter!==void 0&&(g=setTimeout(()=>{g=null,Ue(d.value)},e.inputDebounce)))}function $e(z,Te){d.value!==z&&(d.value=z,Te===!0||e.inputDebounce===0||e.inputDebounce==="0"?o("inputValue",z):v=setTimeout(()=>{v=null,o("inputValue",z)},e.inputDebounce))}function De(z,Te,_e){C=_e!==!0,e.useInput===!0&&($e(z,!0),(Te===!0||_e!==!0)&&(q=z),Te!==!0&&Ue(z))}function Ue(z,Te,_e){if(e.onFilter===void 0||Te!==!0&&O.focused.value!==!0)return;O.innerLoading.value===!0?o("filterAbort"):(O.innerLoading.value=!0,c.value=!0),z!==""&&e.multiple!==!0&&w.value.length!==0&&C!==!0&&z===ve.value(w.value[0])&&(z="");let We=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);y!==null&&clearTimeout(y),y=We,o("filter",z,(bt,gt)=>{(Te===!0||O.focused.value===!0)&&y===We&&(clearTimeout(y),typeof bt=="function"&&bt(),c.value=!1,Ae(()=>{O.innerLoading.value=!1,O.editable.value===!0&&(Te===!0?i.value===!0&&Sn():i.value===!0?gl(!0):i.value=!0),typeof gt=="function"&&Ae(()=>{gt(r)}),typeof _e=="function"&&Ae(()=>{_e(r)})}))},()=>{O.focused.value===!0&&y===We&&(clearTimeout(y),O.innerLoading.value=!1,c.value=!1),i.value===!0&&(i.value=!1)})}function St(){return a(Fo,{ref:F,class:ue.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&K.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:H.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,square:it.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...ze.value,onScrollPassive:Q,onBeforeShow:Cu,onBeforeHide:P,onShow:I},wo)}function P(z){wu(z),ut()}function I(){de()}function oe(z){rt(z),$.value!==null&&$.value.focus(),f.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function ge(z){rt(z),Ae(()=>{f.value=!1})}function he(){let z=[a(ka,{class:`col-auto ${O.fieldClass.value}`,...W.value,for:O.targetUid.value,dark:H.value,square:!0,loading:c.value,itemAligned:!1,filled:!0,stackLabel:d.value.length!==0,...O.splitAttrs.listeners.value,onFocus:oe,onBlur:ge},{...t,rawControl:()=>O.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&z.push(a("div",{ref:L,class:ue.value+" scroll",style:e.popupContentStyle,...ze.value,onClick:ft,onScrollPassive:Q},wo())),a(Io,{ref:D,modelValue:l.value,position:e.useInput===!0?"top":void 0,transitionShow:S,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:Cu,onBeforeHide:nt,onHide:Ee,onShow:Ge},()=>a("div",{class:"q-select__dialog"+(H.value===!0?" q-select__dialog--dark q-dark":"")+(f.value===!0?" q-select__dialog--focused":"")},z))}function nt(z){wu(z),D.value!==null&&D.value.__updateRefocusTarget(O.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),O.focused.value=!1}function Ee(z){Sn(),O.focused.value===!1&&o("blur",z),In()}function Ge(){let z=document.activeElement;(z===null||z.id!==O.targetUid.value)&&$.value!==null&&$.value!==z&&$.value.focus(),de()}function ut(){l.value!==!0&&(u.value=-1,i.value===!0&&(i.value=!1),O.focused.value===!1&&(y!==null&&(clearTimeout(y),y=null),O.innerLoading.value===!0&&(o("filterAbort"),O.innerLoading.value=!1,c.value=!1)))}function uo(z){O.editable.value===!0&&(h===!0?(O.onControlFocusin(z),l.value=!0,Ae(()=>{O.focus()})):O.focus(),e.onFilter!==void 0?Ue(d.value):(K.value!==!0||t["no-option"]!==void 0)&&(i.value=!0))}function Sn(){l.value=!1,ut()}function In(){e.useInput===!0&&De(e.multiple!==!0&&e.fillInput===!0&&w.value.length!==0&&ve.value(w.value[0])||"",!0,!0)}function gl(z){let Te=-1;if(z===!0){if(w.value.length!==0){let _e=ce.value(w.value[0]);Te=e.options.findIndex(We=>Kt(ce.value(We),_e))}X(Te)}ne(Te)}function lv(z,Te){i.value===!0&&O.innerLoading.value===!1&&(X(-1,!0),Ae(()=>{i.value===!0&&O.innerLoading.value===!1&&(z>Te?X():gl(!0))}))}function _u(){l.value===!1&&F.value!==null&&F.value.updatePosition()}function Cu(z){z!==void 0&&rt(z),o("popupShow",z),O.hasPopupOpen=!0,O.onControlFocusin(z)}function wu(z){z!==void 0&&rt(z),o("popupHide",z),O.hasPopupOpen=!1,O.onControlFocusout(z)}function ku(){h=n.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||K.value===!1:!0),S=n.platform.is.ios===!0&&h===!0&&e.useInput===!0?"fade":e.transitionShow}return ko(ku),Au(_u),ku(),ye(()=>{g!==null&&clearTimeout(g),v!==null&&clearTimeout(v)}),Object.assign(r,{showPopup:uo,hidePopup:Sn,removeAtIndex:Le,add:mt,toggleOption:vt,getOptionIndex:()=>u.value,setOptionIndex:ne,moveOptionSelection:se,filter:Ue,updateMenuPosition:_u,updateInputValue:De,isOptionSelected:Pe,getEmittingOptionValue:Ve,isOptionDisabled:(...z)=>te.value.apply(null,z)===!0,getOptionValue:(...z)=>ce.value.apply(null,z),getOptionLabel:(...z)=>ve.value.apply(null,z)}),Object.assign(O,{innerValue:w,fieldClass:s(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:k,targetRef:$,hasValue:ee,showPopup:uo,floatingLabel:s(()=>e.hideSelected!==!0&&ee.value===!0||typeof d.value=="number"||d.value.length!==0||Ho(e.displayValue)),getControlChild:()=>{if(O.editable.value!==!1&&(l.value===!0||K.value!==!0||t["no-option"]!==void 0))return h===!0?he():St();O.hasPopupOpen===!0&&(O.hasPopupOpen=!1)},controlEvents:{onFocusin(z){O.onControlFocusin(z)},onFocusout(z){O.onControlFocusout(z,()=>{In(),ut()})},onClick(z){if(ft(z),h!==!0&&i.value===!0){ut(),$.value!==null&&$.value.focus();return}uo(z)}},getControl:z=>{let Te=Qo(),_e=z===!0||l.value!==!0||h!==!0;if(e.useInput===!0)Te.push(re(z,_e));else if(O.editable.value===!0){let bt=_e===!0?me.value:void 0;Te.push(a("input",{ref:_e===!0?$:void 0,key:"d_t",class:"q-select__focus-target",id:_e===!0?O.targetUid.value:void 0,value:G.value,readonly:!0,"data-autofocus":z===!0||e.autofocus===!0||void 0,...bt,onKeydown:yt,onKeyup:ke,onKeypress:pt})),_e===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&Te.push(a("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:et}))}if(B.value!==void 0&&e.disable!==!0&&pe.value.length!==0){let bt=pe.value.map(gt=>a("option",{value:gt,selected:!0}));Te.push(a("select",{class:"hidden",name:B.value,multiple:e.multiple},bt))}let We=e.useInput===!0||_e!==!0?void 0:O.splitAttrs.attributes.value;return a("div",{class:"q-field__native row items-center",...We,...O.splitAttrs.listeners.value},Te)},getInnerAppend:()=>e.loading!==!0&&c.value!==!0&&e.hideDropdownIcon!==!0?[a(Re,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:Ie.value})]:null}),bn(O)}});var Oh=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Ih=["wave","pulse","pulse-x","pulse-y","fade","blink","none"],Ad=A({name:"QSkeleton",props:{...Ce,tag:{type:String,default:"div"},type:{type:String,validator:e=>Oh.includes(e),default:"rect"},animation:{type:String,validator:e=>Ih.includes(e),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(e,{slots:t}){let o=U(),r=we(e,o.proxy.$q),n=s(()=>{let l=e.size!==void 0?[e.size,e.size]:[e.width,e.height];return{"--q-skeleton-speed":`${e.animationSpeed}ms`,width:l[0],height:l[1]}}),i=s(()=>`q-skeleton q-skeleton--${r.value===!0?"dark":"light"} q-skeleton--type-${e.type}`+(e.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${e.animation}`:"")+(e.square===!0?" q-skeleton--square":"")+(e.bordered===!0?" q-skeleton--bordered":""));return()=>a(e.tag,{class:i.value,style:n.value},ie(t.default))}});var $d=[["left","center","start","width"],["right","center","end","width"],["top","start","center","height"],["bottom","end","center","height"]],Ed=A({name:"QSlideItem",props:{...Ce,leftColor:String,rightColor:String,topColor:String,bottomColor:String,onSlide:Function},emits:["action","top","right","bottom","left"],setup(e,{slots:t,emit:o}){let{proxy:r}=U(),{$q:n}=r,i=we(e,n),{getCacheWithFn:l}=Vo(),u=T(null),d=null,f={},c={},g={},v=s(()=>n.lang.rtl===!0?{left:"right",right:"left"}:{left:"left",right:"right"}),m=s(()=>"q-slide-item q-item-type overflow-hidden"+(i.value===!0?" q-slide-item--dark q-dark":""));function h(){u.value.style.transform="translate(0,0)"}function C(q,S,b){e.onSlide!==void 0&&o("slide",{side:q,ratio:S,isReset:b})}function y(q){let S=u.value;if(q.isFirst)f={dir:null,size:{left:0,right:0,top:0,bottom:0},scale:0},S.classList.add("no-transition"),$d.forEach($=>{if(t[$[0]]!==void 0){let F=g[$[0]];F.style.transform="scale(1)",f.size[$[0]]=F.getBoundingClientRect()[$[3]]}}),f.axis=q.direction==="up"||q.direction==="down"?"Y":"X";else if(q.isFinal){S.classList.remove("no-transition"),f.scale===1?(S.style.transform=`translate${f.axis}(${f.dir*100}%)`,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,o(f.showing,{reset:h}),o("action",{side:f.showing,reset:h})},230)):(S.style.transform="translate(0,0)",C(f.showing,0,!0));return}else q.direction=f.axis==="X"?q.offset.x<0?"left":"right":q.offset.y<0?"up":"down";if(t.left===void 0&&q.direction===v.value.right||t.right===void 0&&q.direction===v.value.left||t.top===void 0&&q.direction==="down"||t.bottom===void 0&&q.direction==="up"){S.style.transform="translate(0,0)";return}let b,p,k;f.axis==="X"?(p=q.direction==="left"?-1:1,b=p===1?v.value.left:v.value.right,k=q.distance.x):(p=q.direction==="up"?-2:2,b=p===2?"top":"bottom",k=q.distance.y),!(f.dir!==null&&Math.abs(p)!==Math.abs(f.dir))&&(f.dir!==p&&(["left","right","top","bottom"].forEach($=>{c[$]&&(c[$].style.visibility=b===$?"visible":"hidden")}),f.showing=b,f.dir=p),f.scale=Math.max(0,Math.min(1,(k-40)/f.size[b])),S.style.transform=`translate${f.axis}(${k*p/Math.abs(p)}px)`,g[b].style.transform=`scale(${f.scale})`,C(b,f.scale,!1))}return ko(()=>{c={},g={}}),ye(()=>{d!==null&&clearTimeout(d)}),Object.assign(r,{reset:h}),()=>{let q=[],S={left:t[v.value.right]!==void 0,right:t[v.value.left]!==void 0,up:t.bottom!==void 0,down:t.top!==void 0},b=Object.keys(S).filter(k=>S[k]===!0);$d.forEach(k=>{let $=k[0];t[$]!==void 0&&q.push(a("div",{key:$,ref:F=>{c[$]=F},class:`q-slide-item__${$} absolute-full row no-wrap items-${k[1]} justify-${k[2]}`+(e[$+"Color"]!==void 0?` bg-${e[$+"Color"]}`:"")},[a("div",{ref:F=>{g[$]=F}},t[$]())]))});let p=a("div",{key:`${b.length===0?"only-":""} content`,ref:u,class:"q-slide-item__content"},ie(t.default));return b.length===0?q.push(p):q.push($t(p,l("dir#"+b.join(""),()=>{let k={prevent:!0,stop:!0,mouse:!0};return b.forEach($=>{k[$]=!0}),[[Rt,y,void 0,k]]}))),a("div",{class:m.value},q)}}});var Nh=a("div",{class:"q-space"}),Bd=A({name:"QSpace",setup(){return()=>Nh}});var Hh=[a("g",{transform:"matrix(1 0 0 -1 0 80)"},[a("rect",{width:"10",height:"20",rx:"3"},[a("animate",{attributeName:"height",begin:"0s",dur:"4.3s",values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"})]),a("rect",{x:"15",width:"10",height:"80",rx:"3"},[a("animate",{attributeName:"height",begin:"0s",dur:"2s",values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"})]),a("rect",{x:"30",width:"10",height:"50",rx:"3"},[a("animate",{attributeName:"height",begin:"0s",dur:"1.4s",values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"})]),a("rect",{x:"45",width:"10",height:"30",rx:"3"},[a("animate",{attributeName:"height",begin:"0s",dur:"2s",values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"})])])],Fd=A({name:"QSpinnerAudio",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg"},Hh)}});var Qh=[a("g",{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"},[a("circle",{cx:"5",cy:"50",r:"5"},[a("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"cx",begin:"0s",dur:"2.2s",values:"5;27;49;5",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"27",cy:"5",r:"5"},[a("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",from:"5",to:"5",values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"cx",begin:"0s",dur:"2.2s",from:"27",to:"27",values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"49",cy:"50",r:"5"},[a("animate",{attributeName:"cy",begin:"0s",dur:"2.2s",values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"cx",from:"49",to:"49",begin:"0s",dur:"2.2s",values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"})])])],Ld=A({name:"QSpinnerBall",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg"},Qh)}});var jh=[a("rect",{y:"10",width:"15",height:"120",rx:"6"},[a("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),a("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[a("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),a("rect",{x:"60",width:"15",height:"140",rx:"6"},[a("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),a("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[a("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),a("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[a("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])],Vd=A({name:"QSpinnerBars",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg"},jh)}});var Uh=[a("rect",{x:"25",y:"25",width:"50",height:"50",fill:"none","stroke-width":"4",stroke:"currentColor"},[a("animateTransform",{id:"spinnerBox",attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",dur:"0.5s",begin:"rectBox.end"})]),a("rect",{x:"27",y:"27",width:"46",height:"50",fill:"currentColor"},[a("animate",{id:"rectBox",attributeName:"height",begin:"0s;spinnerBox.end",dur:"1.3s",from:"50",to:"0",fill:"freeze"})])],Dd=A({name:"QSpinnerBox",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Uh)}});var Kh=[a("circle",{cx:"50",cy:"50",r:"48",fill:"none","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor"}),a("line",{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"85",y2:"50.5"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2s",repeatCount:"indefinite"})]),a("line",{"stroke-linecap":"round","stroke-width":"4","stroke-miterlimit":"10",stroke:"currentColor",x1:"50",y1:"50",x2:"49.5",y2:"74"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"15s",repeatCount:"indefinite"})])],zd=A({name:"QSpinnerClock",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Kh)}});var Wh=[a("rect",{x:"0",y:"0",width:"100",height:"100",fill:"none"}),a("path",{d:"M78,19H22c-6.6,0-12,5.4-12,12v31c0,6.6,5.4,12,12,12h37.2c0.4,3,1.8,5.6,3.7,7.6c2.4,2.5,5.1,4.1,9.1,4 c-1.4-2.1-2-7.2-2-10.3c0-0.4,0-0.8,0-1.3h8c6.6,0,12-5.4,12-12V31C90,24.4,84.6,19,78,19z",fill:"currentColor"}),a("circle",{cx:"30",cy:"47",r:"5",fill:"#fff"},[a("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;1;1",keyTimes:"0;0.2;1",dur:"1s",repeatCount:"indefinite"})]),a("circle",{cx:"50",cy:"47",r:"5",fill:"#fff"},[a("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.2;0.4;1",dur:"1s",repeatCount:"indefinite"})]),a("circle",{cx:"70",cy:"47",r:"5",fill:"#fff"},[a("animate",{attributeName:"opacity",from:"0",to:"1",values:"0;0;1;1",keyTimes:"0;0.4;0.6;1",dur:"1s",repeatCount:"indefinite"})])],Od=A({name:"QSpinnerComment",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Wh)}});var Yh=[a("rect",{x:"0",y:"0",width:"100",height:"100",fill:"none"}),a("g",{transform:"translate(25 25)"},[a("rect",{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.9"},[a("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),a("g",{transform:"translate(75 25)"},[a("rect",{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.8"},[a("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.1s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),a("g",{transform:"translate(25 75)"},[a("rect",{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.7"},[a("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.3s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])]),a("g",{transform:"translate(75 75)"},[a("rect",{x:"-20",y:"-20",width:"40",height:"40",fill:"currentColor",opacity:"0.6"},[a("animateTransform",{attributeName:"transform",type:"scale",from:"1.5",to:"1",repeatCount:"indefinite",begin:"0.2s",dur:"1s",calcMode:"spline",keySplines:"0.2 0.8 0.2 0.8",keyTimes:"0;1"})])])],Id=A({name:"QSpinnerCube",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Yh)}});var Xh=[a("circle",{cx:"15",cy:"15",r:"15"},[a("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"60",cy:"15",r:"9","fill-opacity":".3"},[a("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"fill-opacity",from:".5",to:".5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"105",cy:"15",r:"15"},[a("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})])],Nd=A({name:"QSpinnerDots",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg"},Xh)}});var Gh=[a("g",{transform:"translate(20 50)"},[a("rect",{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.6"},[a("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])]),a("g",{transform:"translate(50 50)"},[a("rect",{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.8"},[a("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.1s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])]),a("g",{transform:"translate(80 50)"},[a("rect",{x:"-10",y:"-30",width:"20",height:"60",fill:"currentColor",opacity:"0.9"},[a("animateTransform",{attributeName:"transform",type:"scale",from:"2",to:"1",begin:"0.2s",repeatCount:"indefinite",dur:"1s",calcMode:"spline",keySplines:"0.1 0.9 0.4 1",keyTimes:"0;1",values:"2;1"})])])],Hd=A({name:"QSpinnerFacebook",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},Gh)}});var Zh=[a("g",{transform:"translate(-20,-20)"},[a("path",{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"90 50 50",to:"0 50 50",dur:"1s",repeatCount:"indefinite"})])]),a("g",{transform:"translate(20,20) rotate(15 50 50)"},[a("path",{d:"M79.9,52.6C80,51.8,80,50.9,80,50s0-1.8-0.1-2.6l-5.1-0.4c-0.3-2.4-0.9-4.6-1.8-6.7l4.2-2.9c-0.7-1.6-1.6-3.1-2.6-4.5 L70,35c-1.4-1.9-3.1-3.5-4.9-4.9l2.2-4.6c-1.4-1-2.9-1.9-4.5-2.6L59.8,27c-2.1-0.9-4.4-1.5-6.7-1.8l-0.4-5.1C51.8,20,50.9,20,50,20 s-1.8,0-2.6,0.1l-0.4,5.1c-2.4,0.3-4.6,0.9-6.7,1.8l-2.9-4.1c-1.6,0.7-3.1,1.6-4.5,2.6l2.1,4.6c-1.9,1.4-3.5,3.1-5,4.9l-4.5-2.1 c-1,1.4-1.9,2.9-2.6,4.5l4.1,2.9c-0.9,2.1-1.5,4.4-1.8,6.8l-5,0.4C20,48.2,20,49.1,20,50s0,1.8,0.1,2.6l5,0.4 c0.3,2.4,0.9,4.7,1.8,6.8l-4.1,2.9c0.7,1.6,1.6,3.1,2.6,4.5l4.5-2.1c1.4,1.9,3.1,3.5,5,4.9l-2.1,4.6c1.4,1,2.9,1.9,4.5,2.6l2.9-4.1 c2.1,0.9,4.4,1.5,6.7,1.8l0.4,5.1C48.2,80,49.1,80,50,80s1.8,0,2.6-0.1l0.4-5.1c2.3-0.3,4.6-0.9,6.7-1.8l2.9,4.2 c1.6-0.7,3.1-1.6,4.5-2.6L65,69.9c1.9-1.4,3.5-3,4.9-4.9l4.6,2.2c1-1.4,1.9-2.9,2.6-4.5L73,59.8c0.9-2.1,1.5-4.4,1.8-6.7L79.9,52.6 z M50,65c-8.3,0-15-6.7-15-15c0-8.3,6.7-15,15-15s15,6.7,15,15C65,58.3,58.3,65,50,65z",fill:"currentColor"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"90 50 50",dur:"1s",repeatCount:"indefinite"})])])],Qd=A({name:"QSpinnerGears",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},Zh)}});var Jh=[a("circle",{cx:"12.5",cy:"12.5",r:"12.5"},[a("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"12.5",cy:"52.5",r:"12.5","fill-opacity":".5"},[a("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"52.5",cy:"12.5",r:"12.5"},[a("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"52.5",cy:"52.5",r:"12.5"},[a("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"92.5",cy:"12.5",r:"12.5"},[a("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"92.5",cy:"52.5",r:"12.5"},[a("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"12.5",cy:"92.5",r:"12.5"},[a("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"52.5",cy:"92.5",r:"12.5"},[a("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"92.5",cy:"92.5",r:"12.5"},[a("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})])],jd=A({name:"QSpinnerGrid",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg"},Jh)}});var ep=[a("path",{d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.716-6.002 11.47-7.65 17.304-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z","fill-opacity":".5"},[a("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})]),a("path",{d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.593-2.32 17.308 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z","fill-opacity":".5"},[a("animate",{attributeName:"fill-opacity",begin:"0.7s",dur:"1.4s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})]),a("path",{d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"})],Ud=A({name:"QSpinnerHearts",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg"},ep)}});var tp=[a("g",[a("path",{fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"10",d:"M58.4,51.7c-0.9-0.9-1.4-2-1.4-2.3s0.5-0.4,1.4-1.4 C70.8,43.8,79.8,30.5,80,15.5H70H30H20c0.2,15,9.2,28.1,21.6,32.3c0.9,0.9,1.4,1.2,1.4,1.5s-0.5,1.6-1.4,2.5 C29.2,56.1,20.2,69.5,20,85.5h10h40h10C79.8,69.5,70.8,55.9,58.4,51.7z"}),a("clipPath",{id:"uil-hourglass-clip1"},[a("rect",{x:"15",y:"20",width:"70",height:"25"},[a("animate",{attributeName:"height",from:"25",to:"0",dur:"1s",repeatCount:"indefinite",values:"25;0;0",keyTimes:"0;0.5;1"}),a("animate",{attributeName:"y",from:"20",to:"45",dur:"1s",repeatCount:"indefinite",values:"20;45;45",keyTimes:"0;0.5;1"})])]),a("clipPath",{id:"uil-hourglass-clip2"},[a("rect",{x:"15",y:"55",width:"70",height:"25"},[a("animate",{attributeName:"height",from:"0",to:"25",dur:"1s",repeatCount:"indefinite",values:"0;25;25",keyTimes:"0;0.5;1"}),a("animate",{attributeName:"y",from:"80",to:"55",dur:"1s",repeatCount:"indefinite",values:"80;55;55",keyTimes:"0;0.5;1"})])]),a("path",{d:"M29,23c3.1,11.4,11.3,19.5,21,19.5S67.9,34.4,71,23H29z","clip-path":"url(#uil-hourglass-clip1)",fill:"currentColor"}),a("path",{d:"M71.6,78c-3-11.6-11.5-20-21.5-20s-18.5,8.4-21.5,20H71.6z","clip-path":"url(#uil-hourglass-clip2)",fill:"currentColor"}),a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"180 50 50",repeatCount:"indefinite",dur:"1s",values:"0 50 50;0 50 50;180 50 50",keyTimes:"0;0.7;1"})])],Kd=A({name:"QSpinnerHourglass",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},tp)}});var op=[a("path",{d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",fill:"none",stroke:"currentColor","stroke-width":"8","stroke-dasharray":"10.691205342610678 10.691205342610678","stroke-dashoffset":"0"},[a("animate",{attributeName:"stroke-dashoffset",from:"0",to:"21.382410685221355",begin:"0",dur:"2s",repeatCount:"indefinite",fill:"freeze"})])],Wd=A({name:"QSpinnerInfinity",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},op)}});var np=[a("g",{"stroke-width":"4","stroke-linecap":"round"},[a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(180)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"})]),a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(210)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0",repeatCount:"indefinite"})]),a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(240)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1",repeatCount:"indefinite"})]),a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(270)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15",repeatCount:"indefinite"})]),a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(300)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25",repeatCount:"indefinite"})]),a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(330)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35",repeatCount:"indefinite"})]),a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(0)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45",repeatCount:"indefinite"})]),a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(30)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55",repeatCount:"indefinite"})]),a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(60)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65",repeatCount:"indefinite"})]),a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(90)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7",repeatCount:"indefinite"})]),a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(120)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85",repeatCount:"indefinite"})]),a("line",{y1:"17",y2:"29",transform:"translate(32,32) rotate(150)"},[a("animate",{attributeName:"stroke-opacity",dur:"750ms",values:"1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1",repeatCount:"indefinite"})])])],Yd=A({name:"QSpinnerIos",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64"},np)}});var rp=[a("circle",{cx:"50",cy:"50",r:"44",fill:"none","stroke-width":"4","stroke-opacity":".5",stroke:"currentColor"}),a("circle",{cx:"8",cy:"54",r:"6",fill:"currentColor","stroke-width":"3",stroke:"currentColor"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 48",to:"360 50 52",dur:"2s",repeatCount:"indefinite"})])],Xd=A({name:"QSpinnerOrbit",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},rp)}});var ip=[a("g",{transform:"translate(1 1)","stroke-width":"2",fill:"none","fill-rule":"evenodd"},[a("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),a("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],Gd=A({name:"QSpinnerOval",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},ip)}});var ap=[a("path",{d:"M0 50A50 50 0 0 1 50 0L50 50L0 50",fill:"currentColor",opacity:"0.5"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"0.8s",repeatCount:"indefinite"})]),a("path",{d:"M50 0A50 50 0 0 1 100 50L50 50L50 0",fill:"currentColor",opacity:"0.5"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"1.6s",repeatCount:"indefinite"})]),a("path",{d:"M100 50A50 50 0 0 1 50 100L50 50L100 50",fill:"currentColor",opacity:"0.5"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"2.4s",repeatCount:"indefinite"})]),a("path",{d:"M50 100A50 50 0 0 1 0 50L50 50L50 100",fill:"currentColor",opacity:"0.5"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"3.2s",repeatCount:"indefinite"})])],Zd=A({name:"QSpinnerPie",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},ap)}});var lp=[a("g",{fill:"none","fill-rule":"evenodd","stroke-width":"2"},[a("circle",{cx:"22",cy:"22",r:"1"},[a("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),a("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]),a("circle",{cx:"22",cy:"22",r:"1"},[a("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),a("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})])])],Jd=A({name:"QSpinnerPuff",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg"},lp)}});var up=[a("g",{transform:"scale(0.55)"},[a("circle",{cx:"30",cy:"150",r:"30",fill:"currentColor"},[a("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})]),a("path",{d:"M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z",fill:"currentColor"},[a("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.1",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})]),a("path",{d:"M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z",fill:"currentColor"},[a("animate",{attributeName:"opacity",from:"0",to:"1",dur:"1s",begin:"0.2",repeatCount:"indefinite",keyTimes:"0;0.5;1",values:"0;1;1"})])])],ef=A({name:"QSpinnerRadio",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg"},up)}});var sp=[a("g",{fill:"none","fill-rule":"evenodd",transform:"translate(1 1)","stroke-width":"2"},[a("circle",{cx:"22",cy:"22",r:"6"},[a("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"22",cy:"22",r:"6"},[a("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),a("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]),a("circle",{cx:"22",cy:"22",r:"8"},[a("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})])])],tf=A({name:"QSpinnerRings",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"},sp)}});var cp=[a("defs",[a("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a"},[a("stop",{"stop-color":"currentColor","stop-opacity":"0",offset:"0%"}),a("stop",{"stop-color":"currentColor","stop-opacity":".631",offset:"63.146%"}),a("stop",{"stop-color":"currentColor",offset:"100%"})])]),a("g",{transform:"translate(1 1)",fill:"none","fill-rule":"evenodd"},[a("path",{d:"M36 18c0-9.94-8.06-18-18-18",stroke:"url(#a)","stroke-width":"2"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})]),a("circle",{fill:"currentColor",cx:"36",cy:"18",r:"1"},[a("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})])])],of=A({name:"QSpinnerTail",props:Qe,setup(e){let{cSize:t,classes:o}=Ne(e);return()=>a("svg",{class:o.value,width:t.value,height:t.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg"},cp)}});var nf=A({name:"QSplitter",props:{...Ce,modelValue:{type:Number,required:!0},reverse:Boolean,unit:{type:String,default:"%",validator:e=>["%","px"].includes(e)},limits:{type:Array,validator:e=>e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"?!1:e[0]>=0&&e[0]<=e[1]},emitImmediately:Boolean,horizontal:Boolean,disable:Boolean,beforeClass:[Array,String,Object],afterClass:[Array,String,Object],separatorClass:[Array,String,Object],separatorStyle:[Array,String,Object]},emits:["update:modelValue"],setup(e,{slots:t,emit:o}){let{proxy:{$q:r}}=U(),n=we(e,r),i=T(null),l={before:T(null),after:T(null)},u=s(()=>`q-splitter no-wrap ${e.horizontal===!0?"q-splitter--horizontal column":"q-splitter--vertical row"} q-splitter--${e.disable===!0?"disabled":"workable"}`+(n.value===!0?" q-splitter--dark":"")),d=s(()=>e.horizontal===!0?"height":"width"),f=s(()=>e.reverse!==!0?"before":"after"),c=s(()=>e.limits!==void 0?e.limits:e.unit==="%"?[10,90]:[50,1/0]);function g(k){return(e.unit==="%"?k:Math.round(k))+e.unit}let v=s(()=>({[f.value]:{[d.value]:g(e.modelValue)}})),m,h,C,y,q;function S(k){if(k.isFirst===!0){let F=i.value.getBoundingClientRect()[d.value];m=e.horizontal===!0?"up":"left",h=e.unit==="%"?100:F,C=Math.min(h,c.value[1],Math.max(c.value[0],e.modelValue)),y=(e.reverse!==!0?1:-1)*(e.horizontal===!0?1:r.lang.rtl===!0?-1:1)*(e.unit==="%"?F===0?0:100/F:1),i.value.classList.add("q-splitter--active");return}if(k.isFinal===!0){q!==e.modelValue&&o("update:modelValue",q),i.value.classList.remove("q-splitter--active");return}let $=C+y*(k.direction===m?-1:1)*k.distance[e.horizontal===!0?"y":"x"];q=Math.min(h,c.value[1],Math.max(c.value[0],$)),l[f.value].value.style[d.value]=g(q),e.emitImmediately===!0&&e.modelValue!==q&&o("update:modelValue",q)}let b=s(()=>[[Rt,S,void 0,{[e.horizontal===!0?"vertical":"horizontal"]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]);function p(k,$){k<$[0]?o("update:modelValue",$[0]):k>$[1]&&o("update:modelValue",$[1])}return j(()=>e.modelValue,k=>{p(k,c.value)}),j(()=>e.limits,()=>{Ae(()=>{p(e.modelValue,c.value)})}),()=>{let k=[a("div",{ref:l.before,class:["q-splitter__panel q-splitter__before"+(e.reverse===!0?" col":""),e.beforeClass],style:v.value.before},ie(t.before)),a("div",{class:["q-splitter__separator",e.separatorClass],style:e.separatorStyle,"aria-disabled":e.disable===!0?"true":void 0},[Mt("div",{class:"q-splitter__separator-area absolute-full"},ie(t.separator),"sep",e.disable!==!0,()=>b.value)]),a("div",{ref:l.after,class:["q-splitter__panel q-splitter__after"+(e.reverse===!0?"":" col"),e.afterClass],style:v.value.after},ie(t.after))];return a("div",{class:u.value,ref:i},Xe(t.default,k))}}});var Ka=A({name:"StepHeader",props:{stepper:{},step:{},goToPanel:Function},setup(e,{attrs:t}){let{proxy:{$q:o}}=U(),r=T(null),n=s(()=>e.stepper.modelValue===e.step.name),i=s(()=>{let y=e.step.disable;return y===!0||y===""}),l=s(()=>{let y=e.step.error;return y===!0||y===""}),u=s(()=>{let y=e.step.done;return i.value===!1&&(y===!0||y==="")}),d=s(()=>{let y=e.step.headerNav,q=y===!0||y===""||y===void 0;return i.value===!1&&e.stepper.headerNav&&q}),f=s(()=>e.step.prefix&&(n.value===!1||e.stepper.activeIcon==="none")&&(l.value===!1||e.stepper.errorIcon==="none")&&(u.value===!1||e.stepper.doneIcon==="none")),c=s(()=>{let y=e.step.icon||e.stepper.inactiveIcon;if(n.value===!0){let q=e.step.activeIcon||e.stepper.activeIcon;return q==="none"?y:q||o.iconSet.stepper.active}if(l.value===!0){let q=e.step.errorIcon||e.stepper.errorIcon;return q==="none"?y:q||o.iconSet.stepper.error}if(i.value===!1&&u.value===!0){let q=e.step.doneIcon||e.stepper.doneIcon;return q==="none"?y:q||o.iconSet.stepper.done}return y}),g=s(()=>{let y=l.value===!0?e.step.errorColor||e.stepper.errorColor:void 0;if(n.value===!0){let q=e.step.activeColor||e.stepper.activeColor||e.step.color;return q!==void 0?q:y}return y!==void 0?y:i.value===!1&&u.value===!0?e.step.doneColor||e.stepper.doneColor||e.step.color||e.stepper.inactiveColor:e.step.color||e.stepper.inactiveColor}),v=s(()=>"q-stepper__tab col-grow flex items-center no-wrap relative-position"+(g.value!==void 0?` text-${g.value}`:"")+(l.value===!0?" q-stepper__tab--error q-stepper__tab--error-with-"+(f.value===!0?"prefix":"icon"):"")+(n.value===!0?" q-stepper__tab--active":"")+(u.value===!0?" q-stepper__tab--done":"")+(d.value===!0?" q-stepper__tab--navigation q-focusable q-hoverable":"")+(i.value===!0?" q-stepper__tab--disabled":"")),m=s(()=>e.stepper.headerNav!==!0?!1:d.value);function h(){r.value!==null&&r.value.focus(),n.value===!1&&e.goToPanel(e.step.name)}function C(y){y.keyCode===13&&n.value===!1&&e.goToPanel(e.step.name)}return()=>{let y={class:v.value};d.value===!0&&(y.onClick=h,y.onKeyup=C,Object.assign(y,i.value===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0}));let q=[a("div",{class:"q-focus-helper",tabindex:-1,ref:r}),a("div",{class:"q-stepper__dot row flex-center q-stepper__line relative-position"},[a("span",{class:"row flex-center"},[f.value===!0?e.step.prefix:a(Re,{name:c.value})])])];if(e.step.title!==void 0&&e.step.title!==null){let S=[a("div",{class:"q-stepper__title"},e.step.title)];e.step.caption!==void 0&&e.step.caption!==null&&S.push(a("div",{class:"q-stepper__caption"},e.step.caption)),q.push(a("div",{class:"q-stepper__label q-stepper__line relative-position"},S))}return $t(a("div",y,q),[[Po,m.value]])}}});function af(e){return a("div",{class:"q-stepper__step-content"},[a("div",{class:"q-stepper__step-inner"},ie(e.default))])}var rf={setup(e,{slots:t}){return()=>af(t)}},lf=A({name:"QStep",props:{...yr,icon:String,color:String,title:{type:String,required:!0},caption:String,prefix:[String,Number],doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String,headerNav:{type:Boolean,default:!0},done:Boolean,error:Boolean,onScroll:[Function,Array]},setup(e,{slots:t,emit:o}){let{proxy:{$q:r}}=U(),n=ht(ki,Ze);if(n===Ze)return console.error("QStep needs to be a child of QStepper"),Ze;let{getCacheWithFn:i}=Vo(),l=T(null),u=s(()=>n.value.modelValue===e.name),d=s(()=>r.platform.is.ios!==!0&&r.platform.is.chrome===!0||u.value!==!0||n.value.vertical!==!0?{}:{onScroll(g){let{target:v}=g;v.scrollTop>0&&(v.scrollTop=0),e.onScroll!==void 0&&o("scroll",g)}}),f=s(()=>typeof e.name=="string"||typeof e.name=="number"?e.name:String(e.name));function c(){let g=n.value.vertical;return g===!0&&n.value.keepAlive===!0?a(pi,n.value.keepAliveProps.value,u.value===!0?[a(n.value.needsUniqueKeepAliveWrapper.value===!0?i(f.value,()=>({...rf,name:f.value})):rf,{key:f.value},t.default)]:void 0):g!==!0||u.value===!0?af(t):void 0}return()=>a("div",{ref:l,class:"q-stepper__step",role:"tabpanel",...d.value},n.value.vertical===!0?[a(Ka,{stepper:n.value,step:e,goToPanel:n.value.goToPanel}),n.value.animated===!0?a(gn,c):c()]:[c()])}});var dp=/(-\w)/g;function fp(e){let t={};for(let o in e){let r=o.replace(dp,n=>n[1].toUpperCase());t[r]=e[o]}return t}var uf=A({name:"QStepper",props:{...Ce,...Sr,flat:Boolean,bordered:Boolean,alternativeLabels:Boolean,headerNav:Boolean,contracted:Boolean,headerClass:String,inactiveColor:String,inactiveIcon:String,doneIcon:String,doneColor:String,activeIcon:String,activeColor:String,errorIcon:String,errorColor:String},emits:xr,setup(e,{slots:t}){let o=U(),r=we(e,o.proxy.$q),{updatePanelsList:n,isValidPanelName:i,updatePanelIndex:l,getPanelContent:u,getPanels:d,panelDirectives:f,goToPanel:c,keepAliveProps:g,needsUniqueKeepAliveWrapper:v}=_r();Qt(ki,s(()=>({goToPanel:c,keepAliveProps:g,needsUniqueKeepAliveWrapper:v,...e})));let m=s(()=>`q-stepper q-stepper--${e.vertical===!0?"vertical":"horizontal"}`+(e.flat===!0?" q-stepper--flat":"")+(e.bordered===!0?" q-stepper--bordered":"")+(r.value===!0?" q-stepper--dark q-dark":"")),h=s(()=>`q-stepper__header row items-stretch justify-between q-stepper__header--${e.alternativeLabels===!0?"alternative":"standard"}-labels`+(e.flat===!1||e.bordered===!0?" q-stepper__header--border":"")+(e.contracted===!0?" q-stepper__header--contracted":"")+(e.headerClass!==void 0?` ${e.headerClass}`:""));function C(){let y=ie(t.message,[]);if(e.vertical===!0){i(e.modelValue)&&l();let q=a("div",{class:"q-stepper__content"},ie(t.default));return y===void 0?[q]:y.concat(q)}return[a("div",{class:h.value},d().map(q=>{let S=fp(q.props);return a(Ka,{key:S.name,stepper:e,step:S,goToPanel:c})})),y,Mt("div",{class:"q-stepper__content q-panel-parent"},u(),"cont",e.swipeable,()=>f.value)]}return()=>(n(t),a("div",{class:m.value},Xe(t.navigation,C())))}});var sf=A({name:"QStepperNavigation",setup(e,{slots:t}){return()=>a("div",{class:"q-stepper__nav"},ie(t.default))}});var Wa=A({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:o}){let r=U(),{proxy:{$q:n}}=r,i=l=>{o("click",l)};return()=>{if(e.props===void 0)return a("th",{class:e.autoWidth===!0?"q-table--col-auto-width":"",onClick:i},ie(t.default));let l,u,d=r.vnode.key;if(d){if(l=e.props.colsMap[d],l===void 0)return}else l=e.props.col;if(l.sortable===!0){let c=l.align==="right"?"unshift":"push";u=Mo(t.default,[]),u[c](a(Re,{class:l.__iconClass,name:n.iconSet.table.arrowUp}))}else u=ie(t.default);let f={class:l.__thClass+(e.autoWidth===!0?" q-table--col-auto-width":""),style:l.headerStyle,onClick:c=>{l.sortable===!0&&e.props.sort(l),i(c)}};return a("th",f,u)}}});function Ya(e,t){return a("div",e,[a("table",{class:"q-table"},t)])}var mp={list:Ba,table:Fa},vp=["list","table","__qtable"],Xa=A({name:"QVirtualScroll",props:{...Qa,type:{type:String,default:"list",validator:e=>vp.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:{default:void 0}},setup(e,{slots:t,attrs:o}){let r,n=T(null),i=s(()=>e.itemsSize>=0&&e.itemsFn!==void 0?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0),{virtualScrollSliceRange:l,localResetVirtualScroll:u,padVirtualScroll:d,onVirtualScrollEvt:f}=ja({virtualScrollLength:i,getVirtualScrollTarget:h,getVirtualScrollEl:m}),c=s(()=>{if(i.value===0)return[];let S=(b,p)=>({index:l.value.from+p,item:b});return e.itemsFn===void 0?e.items.slice(l.value.from,l.value.to).map(S):e.itemsFn(l.value.from,l.value.to-l.value.from).map(S)}),g=s(()=>"q-virtual-scroll q-virtual-scroll"+(e.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(e.scrollTarget!==void 0?"":" scroll")),v=s(()=>e.scrollTarget!==void 0?{}:{tabindex:0});j(i,()=>{u()}),j(()=>e.scrollTarget,()=>{y(),C()});function m(){return n.value.$el||n.value}function h(){return r}function C(){r=Et(m(),e.scrollTarget),r.addEventListener("scroll",f,Je.passive)}function y(){r!==void 0&&(r.removeEventListener("scroll",f,Je.passive),r=void 0)}function q(){let S=d(e.type==="list"?"div":"tbody",c.value.map(t.default));return t.before!==void 0&&(S=t.before().concat(S)),Xe(t.after,S)}return Nn(()=>{u()}),je(()=>{C()}),Ht(()=>{C()}),Bt(()=>{y()}),ye(()=>{y()}),()=>{if(t.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return e.type==="__qtable"?Ya({ref:n,class:"q-table__middle "+g.value},q()):a(mp[e.type],{...o,ref:n,class:[o.class,g.value],...v.value},q)}}});function cf(e,t){return new Date(e)-new Date(t)}var df={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>e==="ad"||e==="da",default:"ad"}};function ff(e,t,o,r){let n=s(()=>{let{sortBy:u}=t.value;return u&&o.value.find(d=>d.name===u)||null}),i=s(()=>e.sortMethod!==void 0?e.sortMethod:(u,d,f)=>{let c=o.value.find(m=>m.name===d);if(c===void 0||c.field===void 0)return u;let g=f===!0?-1:1,v=typeof c.field=="function"?m=>c.field(m):m=>m[c.field];return u.sort((m,h)=>{let C=v(m),y=v(h);return c.rawSort!==void 0?c.rawSort(C,y,m,h)*g:C==null?-1*g:y==null?1*g:c.sort!==void 0?c.sort(C,y,m,h)*g:co(C)===!0&&co(y)===!0?(C-y)*g:Yo(C)===!0&&Yo(y)===!0?cf(C,y)*g:typeof C=="boolean"&&typeof y=="boolean"?(C-y)*g:([C,y]=[C,y].map(q=>(q+"").toLocaleString().toLowerCase()),C<y?-1*g:C===y?0:g)})});function l(u){let d=e.columnSortOrder;if(ct(u)===!0)u.sortOrder&&(d=u.sortOrder),u=u.name;else{let g=o.value.find(v=>v.name===u);g!==void 0&&g.sortOrder&&(d=g.sortOrder)}let{sortBy:f,descending:c}=t.value;f!==u?(f=u,c=d==="da"):e.binaryStateSort===!0?c=!c:c===!0?d==="ad"?f=null:c=!1:d==="ad"?c=!0:f=null,r({sortBy:f,descending:c,page:1})}return{columnToSort:n,computedSortMethod:i,sort:l}}var mf={filter:[String,Object],filterMethod:Function};function vf(e,t){let o=s(()=>e.filterMethod!==void 0?e.filterMethod:(r,n,i,l)=>{let u=n?n.toLowerCase():"";return r.filter(d=>i.some(f=>{let c=l(f,d)+"";return(c==="undefined"||c==="null"?"":c.toLowerCase()).indexOf(u)!==-1}))});return j(()=>e.filter,()=>{Ae(()=>{t({page:1},!0)})},{deep:!0}),{computedFilterMethod:o}}function gp(e,t){for(let o in t)if(t[o]!==e[o])return!1;return!0}function gf(e){return e.page<1&&(e.page=1),e.rowsPerPage!==void 0&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}var hf={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function pf(e,t){let{props:o,emit:r}=e,n=T(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:o.rowsPerPageOptions.length!==0?o.rowsPerPageOptions[0]:5},o.pagination)),i=s(()=>{let c=o["onUpdate:pagination"]!==void 0?{...n.value,...o.pagination}:n.value;return gf(c)}),l=s(()=>i.value.rowsNumber!==void 0);function u(c){d({pagination:c,filter:o.filter})}function d(c={}){Ae(()=>{r("request",{pagination:c.pagination||i.value,filter:c.filter||o.filter,getCellValue:t})})}function f(c,g){let v=gf({...i.value,...c});if(gp(i.value,v)===!0){l.value===!0&&g===!0&&u(v);return}if(l.value===!0){u(v);return}o.pagination!==void 0&&o["onUpdate:pagination"]!==void 0?r("update:pagination",v):n.value=v}return{innerPagination:n,computedPagination:i,isServerSide:l,requestServerInteraction:d,setPagination:f}}function bf(e,t,o,r,n,i){let{props:l,emit:u,proxy:{$q:d}}=e,f=s(()=>r.value===!0?o.value.rowsNumber||0:i.value),c=s(()=>{let{page:p,rowsPerPage:k}=o.value;return(p-1)*k}),g=s(()=>{let{page:p,rowsPerPage:k}=o.value;return p*k}),v=s(()=>o.value.page===1),m=s(()=>o.value.rowsPerPage===0?1:Math.max(1,Math.ceil(f.value/o.value.rowsPerPage))),h=s(()=>g.value===0?!0:o.value.page>=m.value),C=s(()=>(l.rowsPerPageOptions.includes(t.value.rowsPerPage)?l.rowsPerPageOptions:[t.value.rowsPerPage].concat(l.rowsPerPageOptions)).map(k=>({label:k===0?d.lang.table.allRows:""+k,value:k})));j(m,(p,k)=>{if(p===k)return;let $=o.value.page;p&&!$?n({page:1}):p<$&&n({page:p})});function y(){n({page:1})}function q(){let{page:p}=o.value;p>1&&n({page:p-1})}function S(){let{page:p,rowsPerPage:k}=o.value;g.value>0&&p*k<f.value&&n({page:p+1})}function b(){n({page:m.value})}return l["onUpdate:pagination"]!==void 0&&u("update:pagination",{...o.value}),{firstRowIndex:c,lastRowIndex:g,isFirstPage:v,isLastPage:h,pagesNumber:m,computedRowsPerPageOptions:C,computedRowsNumber:f,firstPage:y,prevPage:q,nextPage:S,lastPage:b}}var yf={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},Sf=["update:selected","selection"];function xf(e,t,o,r){let n=s(()=>{let h={};return e.selected.map(r.value).forEach(C=>{h[C]=!0}),h}),i=s(()=>e.selection!=="none"),l=s(()=>e.selection==="single"),u=s(()=>e.selection==="multiple"),d=s(()=>o.value.length!==0&&o.value.every(h=>n.value[r.value(h)]===!0)),f=s(()=>d.value!==!0&&o.value.some(h=>n.value[r.value(h)]===!0)),c=s(()=>e.selected.length);function g(h){return n.value[h]===!0}function v(){t("update:selected",[])}function m(h,C,y,q){t("selection",{rows:C,added:y,keys:h,evt:q});let S=l.value===!0?y===!0?C:[]:y===!0?e.selected.concat(C):e.selected.filter(b=>h.includes(r.value(b))===!1);t("update:selected",S)}return{hasSelectionMode:i,singleSelection:l,multipleSelection:u,allRowsSelected:d,someRowsSelected:f,rowsSelectedNumber:c,isRowSelected:g,clearSelection:v,updateSelection:m}}function _f(e){return Array.isArray(e)?e.slice():[]}var Cf={expanded:Array},wf=["update:expanded"];function kf(e,t){let o=T(_f(e.expanded));j(()=>e.expanded,l=>{o.value=_f(l)});function r(l){return o.value.includes(l)}function n(l){e.expanded!==void 0?t("update:expanded",l):o.value=l}function i(l,u){let d=o.value.slice(),f=d.indexOf(l);u===!0?f===-1&&(d.push(l),n(d)):f!==-1&&(d.splice(f,1),n(d))}return{isRowExpanded:r,setExpanded:n,updateExpanded:i}}var qf={visibleColumns:Array};function Tf(e,t,o){let r=s(()=>{if(e.columns!==void 0)return e.columns;let u=e.rows[0];return u!==void 0?Object.keys(u).map(d=>({name:d,label:d.toUpperCase(),field:d,align:co(u[d])?"right":"left",sortable:!0})):[]}),n=s(()=>{let{sortBy:u,descending:d}=t.value;return(e.visibleColumns!==void 0?r.value.filter(c=>c.required===!0||e.visibleColumns.includes(c.name)===!0):r.value).map(c=>{let g=c.align||"right",v=`text-${g}`;return{...c,align:g,__iconClass:`q-table__sort-icon q-table__sort-icon--${g}`,__thClass:v+(c.headerClasses!==void 0?" "+c.headerClasses:"")+(c.sortable===!0?" sortable":"")+(c.name===u?` sorted ${d===!0?"sort-desc":""}`:""),__tdStyle:c.style!==void 0?typeof c.style!="function"?()=>c.style:c.style:()=>null,__tdClass:c.classes!==void 0?typeof c.classes!="function"?()=>v+" "+c.classes:m=>v+" "+c.classes(m):()=>v}})}),i=s(()=>{let u={};return n.value.forEach(d=>{u[d.name]=d}),u}),l=s(()=>e.tableColspan!==void 0?e.tableColspan:n.value.length+(o.value===!0?1:0));return{colList:r,computedCols:n,computedColsMap:i,computedColspan:l}}var Ga="q-table__bottom row items-center",Mf={};du.forEach(e=>{Mf[e]={}});var Rf=A({name:"QTable",props:{rows:{type:Array,default:()=>[]},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{default:void 0},...Mf,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...Ce,...Cr,...qf,...mf,...hf,...Cf,...yf,...df},emits:["request","virtualScroll",...wr,...wf,...Sf],setup(e,{slots:t,emit:o}){let r=U(),{proxy:{$q:n}}=r,i=we(e,n),{inFullscreen:l,toggleFullscreen:u}=kr(),d=s(()=>typeof e.rowKey=="function"?e.rowKey:re=>re[e.rowKey]),f=T(null),c=T(null),g=s(()=>e.grid!==!0&&e.virtualScroll===!0),v=s(()=>" q-table__card"+(i.value===!0?" q-table__card--dark q-dark":"")+(e.square===!0?" q-table--square":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")),m=s(()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(e.grid===!0?" q-table--grid":v.value)+(i.value===!0?" q-table--dark":"")+(e.dense===!0?" q-table--dense":"")+(e.wrapCells===!1?" q-table--no-wrap":"")+(l.value===!0?" fullscreen scroll":"")),h=s(()=>m.value+(e.loading===!0?" q-table--loading":""));j(()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+m.value,()=>{g.value===!0&&c.value!==null&&c.value.reset()});let{innerPagination:C,computedPagination:y,isServerSide:q,requestServerInteraction:S,setPagination:b}=pf(r,ne),{computedFilterMethod:p}=vf(e,b),{isRowExpanded:k,setExpanded:$,updateExpanded:F}=kf(e,o),D=s(()=>{let re=e.rows;if(q.value===!0||re.length===0)return re;let{sortBy:be,descending:$e}=y.value;return e.filter&&(re=p.value(re,e.filter,O.value,ne)),H.value!==null&&(re=ee.value(e.rows===re?re.slice():re,be,$e)),re}),L=s(()=>D.value.length),B=s(()=>{let re=D.value;if(q.value===!0)return re;let{rowsPerPage:be}=y.value;return be!==0&&(ue.value===0&&e.rows!==re?re.length>K.value&&(re=re.slice(0,K.value)):re=re.slice(ue.value,K.value)),re}),{hasSelectionMode:V,singleSelection:E,multipleSelection:_,allRowsSelected:R,someRowsSelected:N,rowsSelectedNumber:X,isRowSelected:M,clearSelection:Q,updateSelection:J}=xf(e,o,B,d),{colList:de,computedCols:O,computedColsMap:w,computedColspan:W}=Tf(e,y,V),{columnToSort:H,computedSortMethod:ee,sort:Y}=ff(e,y,de,b),{firstRowIndex:ue,lastRowIndex:K,isFirstPage:x,isLastPage:G,pagesNumber:ae,computedRowsPerPageOptions:fe,computedRowsNumber:Se,firstPage:me,prevPage:ze,nextPage:Be,lastPage:xe}=bf(r,C,y,q,b,L),Ie=s(()=>B.value.length===0),it=s(()=>{let re={};return du.forEach(be=>{re[be]=e[be]}),re.virtualScrollItemSize===void 0&&(re.virtualScrollItemSize=e.dense===!0?28:48),re});function Ke(){g.value===!0&&c.value.reset()}function ce(){if(e.grid===!0)return wo();let re=e.hideHeader!==!0?Pe:null;if(g.value===!0){let $e=t["top-row"],De=t["bottom-row"],Ue={default:St=>Fe(St.item,t.body,St.index)};if($e!==void 0){let St=a("tbody",$e({cols:O.value}));Ue.before=re===null?()=>St:()=>[re()].concat(St)}else re!==null&&(Ue.before=re);return De!==void 0&&(Ue.after=()=>a("tbody",De({cols:O.value}))),a(Xa,{ref:c,class:e.tableClass,style:e.tableStyle,...it.value,scrollTarget:e.virtualScrollTarget,items:B.value,type:"__qtable",tableColspan:W.value,onVirtualScroll:te},Ue)}let be=[Ve()];return re!==null&&be.unshift(re()),Ya({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},be)}function ve(re,be){if(c.value!==null){c.value.scrollTo(re,be);return}re=parseInt(re,10);let $e=f.value.querySelector(`tbody tr:nth-of-type(${re+1})`);if($e!==null){let De=f.value.querySelector(".q-table__middle.scroll"),Ue=$e.offsetTop-e.virtualScrollStickySizeStart,St=Ue<De.scrollTop?"decrease":"increase";De.scrollTop=Ue,o("virtualScroll",{index:re,from:0,to:C.value.rowsPerPage-1,direction:St})}}function te(re){o("virtualScroll",re)}function pe(){return[a(Ha,{class:"q-table__linear-progress",color:e.color,dark:i.value,indeterminate:!0,trackColor:"transparent"})]}function Fe(re,be,$e){let De=d.value(re),Ue=M(De);if(be!==void 0)return be(Le({key:De,row:re,pageIndex:$e,__trClass:Ue?"selected":""}));let St=t["body-cell"],P=O.value.map(oe=>{let ge=t[`body-cell-${oe.name}`],he=ge!==void 0?ge:St;return he!==void 0?he(at({key:De,row:re,pageIndex:$e,col:oe})):a("td",{class:oe.__tdClass(re),style:oe.__tdStyle(re)},ne(oe,re))});if(V.value===!0){let oe=t["body-selection"],ge=oe!==void 0?oe(mt({key:De,row:re,pageIndex:$e})):[a(Do,{modelValue:Ue,color:e.color,dark:i.value,dense:e.dense,"onUpdate:modelValue":(he,nt)=>{J([De],[re],he,nt)}})];P.unshift(a("td",{class:"q-table--col-auto-width"},ge))}let I={key:De,class:{selected:Ue}};return e.onRowClick!==void 0&&(I.class["cursor-pointer"]=!0,I.onClick=oe=>{o("RowClick",oe,re,$e)}),e.onRowDblclick!==void 0&&(I.class["cursor-pointer"]=!0,I.onDblclick=oe=>{o("RowDblclick",oe,re,$e)}),e.onRowContextmenu!==void 0&&(I.class["cursor-pointer"]=!0,I.onContextmenu=oe=>{o("RowContextmenu",oe,re,$e)}),a("tr",I,P)}function Ve(){let re=t.body,be=t["top-row"],$e=t["bottom-row"],De=B.value.map((Ue,St)=>Fe(Ue,re,St));return be!==void 0&&(De=be({cols:O.value}).concat(De)),$e!==void 0&&(De=De.concat($e({cols:O.value}))),a("tbody",De)}function Le(re){return vt(re),re.cols=re.cols.map(be=>st({...be},"value",()=>ne(be,re.row))),re}function at(re){return vt(re),st(re,"value",()=>ne(re.col,re.row)),re}function mt(re){return vt(re),re}function vt(re){Object.assign(re,{cols:O.value,colsMap:w.value,sort:Y,rowIndex:ue.value+re.pageIndex,color:e.color,dark:i.value,dense:e.dense}),V.value===!0&&st(re,"selected",()=>M(re.key),(be,$e)=>{J([re.key],[re.row],be,$e)}),st(re,"expand",()=>k(re.key),be=>{F(re.key,be)})}function ne(re,be){let $e=typeof re.field=="function"?re.field(be):be[re.field];return re.format!==void 0?re.format($e,be):$e}let se=s(()=>({pagination:y.value,pagesNumber:ae.value,isFirstPage:x.value,isLastPage:G.value,firstPage:me,prevPage:ze,nextPage:Be,lastPage:xe,inFullscreen:l.value,toggleFullscreen:u}));function Z(){let re=t.top,be=t["top-left"],$e=t["top-right"],De=t["top-selection"],Ue=V.value===!0&&De!==void 0&&X.value>0,St="q-table__top relative-position row items-center";if(re!==void 0)return a("div",{class:St},[re(se.value)]);let P;if(Ue===!0?P=De(se.value).slice():(P=[],be!==void 0?P.push(a("div",{class:"q-table__control"},[be(se.value)])):e.title&&P.push(a("div",{class:"q-table__control"},[a("div",{class:["q-table__title",e.titleClass]},e.title)]))),$e!==void 0&&(P.push(a("div",{class:"q-table__separator col"})),P.push(a("div",{class:"q-table__control"},[$e(se.value)]))),P.length!==0)return a("div",{class:St},P)}let le=s(()=>N.value===!0?null:R.value);function Pe(){let re=He();return e.loading===!0&&t.loading===void 0&&re.push(a("tr",{class:"q-table__progress"},[a("th",{class:"relative-position",colspan:W.value},pe())])),a("thead",re)}function He(){let re=t.header,be=t["header-cell"];if(re!==void 0)return re(ke({header:!0})).slice();let $e=O.value.map(De=>{let Ue=t[`header-cell-${De.name}`],St=Ue!==void 0?Ue:be,P=ke({col:De});return St!==void 0?St(P):a(Wa,{key:De.name,props:P},()=>De.label)});if(E.value===!0&&e.grid!==!0)$e.unshift(a("th",{class:"q-table--col-auto-width"}," "));else if(_.value===!0){let De=t["header-selection"],Ue=De!==void 0?De(ke({})):[a(Do,{color:e.color,modelValue:le.value,dark:i.value,dense:e.dense,"onUpdate:modelValue":et})];$e.unshift(a("th",{class:"q-table--col-auto-width"},Ue))}return[a("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},$e)]}function ke(re){return Object.assign(re,{cols:O.value,sort:Y,colsMap:w.value,color:e.color,dark:i.value,dense:e.dense}),_.value===!0&&st(re,"selected",()=>le.value,et),re}function et(re){N.value===!0&&(re=!1),J(B.value.map(d.value),B.value,re)}let pt=s(()=>{let re=[e.iconFirstPage||n.iconSet.table.firstPage,e.iconPrevPage||n.iconSet.table.prevPage,e.iconNextPage||n.iconSet.table.nextPage,e.iconLastPage||n.iconSet.table.lastPage];return n.lang.rtl===!0?re.reverse():re});function yt(){if(e.hideBottom===!0)return;if(Ie.value===!0){if(e.hideNoData===!0)return;let $e=e.loading===!0?e.loadingLabel||n.lang.table.loading:e.filter?e.noResultsLabel||n.lang.table.noResults:e.noDataLabel||n.lang.table.noData,De=t["no-data"],Ue=De!==void 0?[De({message:$e,icon:n.iconSet.table.warning,filter:e.filter})]:[a(Re,{class:"q-table__bottom-nodata-icon",name:n.iconSet.table.warning}),$e];return a("div",{class:Ga+" q-table__bottom--nodata"},Ue)}let re=t.bottom;if(re!==void 0)return a("div",{class:Ga},[re(se.value)]);let be=e.hideSelectedBanner!==!0&&V.value===!0&&X.value>0?[a("div",{class:"q-table__control"},[a("div",[(e.selectedRowsLabel||n.lang.table.selectedRecords)(X.value)])])]:[];if(e.hidePagination!==!0)return a("div",{class:Ga+" justify-end"},lo(be));if(be.length!==0)return a("div",{class:Ga},be)}function Yt(re){b({page:1,rowsPerPage:re.value})}function lo(re){let be,{rowsPerPage:$e}=y.value,De=e.paginationLabel||n.lang.table.pagination,Ue=t.pagination,St=e.rowsPerPageOptions.length>1;if(re.push(a("div",{class:"q-table__separator col"})),St===!0&&re.push(a("div",{class:"q-table__control"},[a("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||n.lang.table.recordsPerPage]),a(Ua,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:$e,options:fe.value,displayValue:$e===0?n.lang.table.allRows:$e,dark:i.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Yt})])),Ue!==void 0)be=Ue(se.value);else if(be=[a("span",$e!==0?{class:"q-table__bottom-item"}:{},[$e?De(ue.value+1,Math.min(K.value,Se.value),Se.value):De(1,L.value,Se.value)])],$e!==0&&ae.value>1){let P={color:e.color,round:!0,dense:!0,flat:!0};e.dense===!0&&(P.size="sm"),ae.value>2&&be.push(a(Oe,{key:"pgFirst",...P,icon:pt.value[0],disable:x.value,onClick:me})),be.push(a(Oe,{key:"pgPrev",...P,icon:pt.value[1],disable:x.value,onClick:ze}),a(Oe,{key:"pgNext",...P,icon:pt.value[2],disable:G.value,onClick:Be})),ae.value>2&&be.push(a(Oe,{key:"pgLast",...P,icon:pt.value[3],disable:G.value,onClick:xe}))}return re.push(a("div",{class:"q-table__control"},be)),re}function Qo(){let re=e.gridHeader===!0?[a("table",{class:"q-table"},[Pe(a)])]:e.loading===!0&&t.loading===void 0?pe(a):void 0;return a("div",{class:"q-table__middle"},re)}function wo(){let re=t.item!==void 0?t.item:be=>{let $e=be.cols.map(Ue=>a("div",{class:"q-table__grid-item-row"},[a("div",{class:"q-table__grid-item-title"},[Ue.label]),a("div",{class:"q-table__grid-item-value"},[Ue.value])]));if(V.value===!0){let Ue=t["body-selection"],St=Ue!==void 0?Ue(be):[a(Do,{modelValue:be.selected,color:e.color,dark:i.value,dense:e.dense,"onUpdate:modelValue":(P,I)=>{J([be.key],[be.row],P,I)}})];$e.unshift(a("div",{class:"q-table__grid-item-row"},St),a(io,{dark:i.value}))}let De={class:["q-table__grid-item-card"+v.value,e.cardClass],style:e.cardStyle};return(e.onRowClick!==void 0||e.onRowDblclick!==void 0)&&(De.class[0]+=" cursor-pointer",e.onRowClick!==void 0&&(De.onClick=Ue=>{o("RowClick",Ue,be.row,be.pageIndex)}),e.onRowDblclick!==void 0&&(De.onDblclick=Ue=>{o("RowDblclick",Ue,be.row,be.pageIndex)})),a("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(be.selected===!0?" q-table__grid-item--selected":"")},[a("div",De,$e)])};return a("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},B.value.map((be,$e)=>re(Le({key:d.value(be),row:be,pageIndex:$e}))))}return Object.assign(r.proxy,{requestServerInteraction:S,setPagination:b,firstPage:me,prevPage:ze,nextPage:Be,lastPage:xe,isRowSelected:M,clearSelection:Q,isRowExpanded:k,setExpanded:$,sort:Y,resetVirtualScroll:Ke,scrollTo:ve,getCellValue:ne}),yi(r.proxy,{filteredSortedRows:()=>D.value,computedRows:()=>B.value,computedRowsNumber:()=>Se.value}),()=>{let re=[Z()],be={ref:f,class:h.value};return e.grid===!0?re.push(Qo()):Object.assign(be,{class:[be.class,e.cardClass],style:e.cardStyle}),re.push(ce(),yt()),e.loading===!0&&t.loading!==void 0&&re.push(t.loading()),a("div",be,re)}}});var Pf=A({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){let o=s(()=>"q-tr"+(e.props===void 0||e.props.header===!0?"":" "+e.props.__trClass)+(e.noHover===!0?" q-tr--no-hover":""));return()=>a("tr",{class:o.value},ie(t.default))}});var Af=A({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){let o=U(),r=s(()=>"q-td"+(e.autoWidth===!0?" q-table--col-auto-width":"")+(e.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(e.props===void 0)return a("td",{class:r.value},ie(t.default));let n=o.vnode.key,i=(e.props.colsMap!==void 0?e.props.colsMap[n]:null)||e.props.col;if(i===void 0)return;let{row:l}=e.props;return a("td",{class:r.value+i.__tdClass(l),style:i.__tdStyle(l)},ie(t.default))}}});var $f=A({name:"QRouteTab",props:{...po,...ra},emits:na,setup(e,{slots:t,emit:o}){let r=nn({useDisableForRouterLinkProps:!1}),{renderTab:n,$tabs:i}=ia(e,t,o,{exact:s(()=>e.exact),...r});return j(()=>`${e.name} | ${e.exact} | ${(r.resolvedLink.value||{}).href}`,()=>{i.verifyRouteModel()}),()=>n(r.linkTag.value,r.linkAttrs.value)}});function hp(e,t){if(e.hour!==null){if(e.minute===null)return"minute";if(t===!0&&e.second===null)return"second"}return"hour"}function pp(){let e=new Date;return{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}}var Ef=A({name:"QTime",props:{...Ce,...wt,...da,mask:{default:null},format24h:{type:Boolean,default:null},defaultDate:{type:String,validator:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e)},options:Function,hourOptions:Array,minuteOptions:Array,secondOptions:Array,withSeconds:Boolean,nowBtn:Boolean},emits:fa,setup(e,{slots:t,emit:o}){let r=U(),{$q:n}=r.proxy,i=we(e,n),{tabindex:l,headerClass:u,getLocale:d,getCurrentDate:f}=ma(e,n),c=Lo(e),g=Wt(c),v,m,h=T(null),C=s(()=>ee()),y=s(()=>d()),q=s(()=>Y()),S=fn(e.modelValue,C.value,y.value,e.calendar,q.value),b=T(hp(S)),p=T(S),k=T(S.hour===null||S.hour<12),$=s(()=>`q-time q-time--${e.landscape===!0?"landscape":"portrait"}`+(i.value===!0?" q-time--dark q-dark":"")+(e.disable===!0?" disabled":e.readonly===!0?" q-time--readonly":"")+(e.bordered===!0?" q-time--bordered":"")+(e.square===!0?" q-time--square no-border-radius":"")+(e.flat===!0?" q-time--flat no-shadow":"")),F=s(()=>{let ne=p.value;return{hour:ne.hour===null?"--":D.value===!0?ot(ne.hour):String(k.value===!0?ne.hour===0?12:ne.hour:ne.hour>12?ne.hour-12:ne.hour),minute:ne.minute===null?"--":ot(ne.minute),second:ne.second===null?"--":ot(ne.second)}}),D=s(()=>e.format24h!==null?e.format24h:n.lang.date.format24h),L=s(()=>{let ne=b.value==="hour",se=ne===!0?12:60,Z=p.value[b.value],Pe=`rotate(${Math.round(Z*(360/se))-180}deg) translateX(-50%)`;return ne===!0&&D.value===!0&&p.value.hour>=12&&(Pe+=" scale(.7)"),{transform:Pe}}),B=s(()=>p.value.hour!==null),V=s(()=>B.value===!0&&p.value.minute!==null),E=s(()=>e.hourOptions!==void 0?ne=>e.hourOptions.includes(ne):e.options!==void 0?ne=>e.options(ne,null,null):null),_=s(()=>e.minuteOptions!==void 0?ne=>e.minuteOptions.includes(ne):e.options!==void 0?ne=>e.options(p.value.hour,ne,null):null),R=s(()=>e.secondOptions!==void 0?ne=>e.secondOptions.includes(ne):e.options!==void 0?ne=>e.options(p.value.hour,p.value.minute,ne):null),N=s(()=>{if(E.value===null)return null;let ne=w(0,11,E.value),se=w(12,11,E.value);return{am:ne,pm:se,values:ne.values.concat(se.values)}}),X=s(()=>_.value!==null?w(0,59,_.value):null),M=s(()=>R.value!==null?w(0,59,R.value):null),Q=s(()=>{switch(b.value){case"hour":return N.value;case"minute":return X.value;case"second":return M.value}}),J=s(()=>{let ne,se,Z=0,le=1,Pe=Q.value!==null?Q.value.values:void 0;b.value==="hour"?D.value===!0?(ne=0,se=23):(ne=0,se=11,k.value===!1&&(Z=12)):(ne=0,se=55,le=5);let He=[];for(let ke=ne,et=ne;ke<=se;ke+=le,et++){let pt=ke+Z,yt=Pe!==void 0&&Pe.includes(pt)===!1,Yt=b.value==="hour"&&ke===0?D.value===!0?"00":"12":ke;He.push({val:pt,index:et,disable:yt,label:Yt})}return He}),de=s(()=>[[Rt,x,void 0,{stop:!0,prevent:!0,mouse:!0}]]);j(()=>e.modelValue,ne=>{let se=fn(ne,C.value,y.value,e.calendar,q.value);(se.dateHash!==p.value.dateHash||se.timeHash!==p.value.timeHash)&&(p.value=se,se.hour===null?b.value="hour":k.value=se.hour<12)}),j([C,y],()=>{Ae(()=>{at()})});function O(){let ne={...f(),...pp()};at(ne),Object.assign(p.value,ne),b.value="hour"}function w(ne,se,Z){let le=Array.apply(null,{length:se+1}).map((Pe,He)=>{let ke=He+ne;return{index:ke,val:Z(ke)===!0}}).filter(Pe=>Pe.val===!0).map(Pe=>Pe.index);return{min:le[0],max:le[le.length-1],values:le,threshold:se+1}}function W(ne,se,Z){let le=Math.abs(ne-se);return Math.min(le,Z-le)}function H(ne,{min:se,max:Z,values:le,threshold:Pe}){if(ne===se)return se;if(ne<se||ne>Z)return W(ne,se,Pe)<=W(ne,Z,Pe)?se:Z;let He=le.findIndex(pt=>ne<=pt),ke=le[He-1],et=le[He];return ne-ke<=et-ne?ke:et}function ee(){return e.calendar!=="persian"&&e.mask!==null?e.mask:`HH:mm${e.withSeconds===!0?":ss":""}`}function Y(){if(typeof e.defaultDate!="string"){let ne=f(!0);return ne.dateHash=yo(ne),ne}return fn(e.defaultDate,"YYYY/MM/DD",void 0,e.calendar)}function ue(){return Zt(r)===!0||Q.value!==null&&(Q.value.values.length===0||b.value==="hour"&&D.value!==!0&&N.value[k.value===!0?"am":"pm"].values.length===0)}function K(){let ne=h.value,{top:se,left:Z,width:le}=ne.getBoundingClientRect(),Pe=le/2;return{top:se+Pe,left:Z+Pe,dist:Pe*.7}}function x(ne){if(ue()!==!0){if(ne.isFirst===!0){v=K(),m=ae(ne.evt,v);return}m=ae(ne.evt,v,m),ne.isFinal===!0&&(v=!1,m=null,G())}}function G(){b.value==="hour"?b.value="minute":e.withSeconds&&b.value==="minute"&&(b.value="second")}function ae(ne,se,Z){let le=xt(ne),Pe=Math.abs(le.top-se.top),He=Math.sqrt(Math.pow(Math.abs(le.top-se.top),2)+Math.pow(Math.abs(le.left-se.left),2)),ke,et=Math.asin(Pe/He)*(180/Math.PI);if(le.top<se.top?et=se.left<le.left?90-et:270+et:et=se.left<le.left?et+90:270-et,b.value==="hour"){if(ke=et/30,N.value!==null){let pt=D.value!==!0?k.value===!0:N.value.am.values.length!==0&&N.value.pm.values.length!==0?He>=se.dist:N.value.am.values.length!==0;ke=H(ke+(pt===!0?0:12),N.value[pt===!0?"am":"pm"])}else ke=Math.round(ke),D.value===!0?He<se.dist?ke<12&&(ke+=12):ke===12&&(ke=0):k.value===!0&&ke===12?ke=0:k.value===!1&&ke!==12&&(ke+=12);D.value===!0&&(k.value=ke<12)}else ke=Math.round(et/6)%60,b.value==="minute"&&X.value!==null?ke=H(ke,X.value):b.value==="second"&&M.value!==null&&(ke=H(ke,M.value));return Z!==ke&&te[b.value](ke),ke}let fe={hour(){b.value="hour"},minute(){b.value="minute"},second(){b.value="second"}};function Se(ne){ne.keyCode===13&&pe()}function me(ne){ne.keyCode===13&&Fe()}function ze(ne){ue()!==!0&&(n.platform.is.desktop!==!0&&ae(ne,K()),G())}function Be(ne){ue()!==!0&&ae(ne,K())}function xe(ne){if(ne.keyCode===13)b.value="hour";else if([37,39].includes(ne.keyCode)){let se=ne.keyCode===37?-1:1;if(N.value!==null){let Z=D.value===!0?N.value.values:N.value[k.value===!0?"am":"pm"].values;if(Z.length===0)return;if(p.value.hour===null)Ke(Z[0]);else{let le=(Z.length+Z.indexOf(p.value.hour)+se)%Z.length;Ke(Z[le])}}else{let Z=D.value===!0?24:12,le=D.value!==!0&&k.value===!1?12:0,Pe=p.value.hour===null?-se:p.value.hour;Ke(le+(24+Pe+se)%Z)}}}function Ie(ne){if(ne.keyCode===13)b.value="minute";else if([37,39].includes(ne.keyCode)){let se=ne.keyCode===37?-1:1;if(X.value!==null){let Z=X.value.values;if(Z.length===0)return;if(p.value.minute===null)ce(Z[0]);else{let le=(Z.length+Z.indexOf(p.value.minute)+se)%Z.length;ce(Z[le])}}else{let Z=p.value.minute===null?-se:p.value.minute;ce((60+Z+se)%60)}}}function it(ne){if(ne.keyCode===13)b.value="second";else if([37,39].includes(ne.keyCode)){let se=ne.keyCode===37?-1:1;if(M.value!==null){let Z=M.value.values;if(Z.length===0)return;if(p.value.seconds===null)ve(Z[0]);else{let le=(Z.length+Z.indexOf(p.value.second)+se)%Z.length;ve(Z[le])}}else{let Z=p.value.second===null?-se:p.value.second;ve((60+Z+se)%60)}}}function Ke(ne){p.value.hour!==ne&&(p.value.hour=ne,Le())}function ce(ne){p.value.minute!==ne&&(p.value.minute=ne,Le())}function ve(ne){p.value.second!==ne&&(p.value.second=ne,Le())}let te={hour:Ke,minute:ce,second:ve};function pe(){k.value===!1&&(k.value=!0,p.value.hour!==null&&(p.value.hour-=12,Le()))}function Fe(){k.value===!0&&(k.value=!1,p.value.hour!==null&&(p.value.hour+=12,Le()))}function Ve(ne){let se=e.modelValue;b.value!==ne&&se!==void 0&&se!==null&&se!==""&&typeof se!="string"&&(b.value=ne)}function Le(){if(E.value!==null&&E.value(p.value.hour)!==!0){p.value=fn(),Ve("hour");return}if(_.value!==null&&_.value(p.value.minute)!==!0){p.value.minute=null,p.value.second=null,Ve("minute");return}if(e.withSeconds===!0&&R.value!==null&&R.value(p.value.second)!==!0){p.value.second=null,Ve("second");return}p.value.hour===null||p.value.minute===null||e.withSeconds===!0&&p.value.second===null||at()}function at(ne){let se=Object.assign({...p.value},ne),Z=e.calendar==="persian"?ot(se.hour)+":"+ot(se.minute)+(e.withSeconds===!0?":"+ot(se.second):""):ii(new Date(se.year,se.month===null?null:se.month-1,se.day,se.hour,se.minute,se.second,se.millisecond),C.value,y.value,se.year,se.timezoneOffset);se.changed=Z!==e.modelValue,o("update:modelValue",Z,se)}function mt(){let ne=[a("div",{class:"q-time__link "+(b.value==="hour"?"q-time__link--active":"cursor-pointer"),tabindex:l.value,onClick:fe.hour,onKeyup:xe},F.value.hour),a("div",":"),a("div",B.value===!0?{class:"q-time__link "+(b.value==="minute"?"q-time__link--active":"cursor-pointer"),tabindex:l.value,onKeyup:Ie,onClick:fe.minute}:{class:"q-time__link"},F.value.minute)];e.withSeconds===!0&&ne.push(a("div",":"),a("div",V.value===!0?{class:"q-time__link "+(b.value==="second"?"q-time__link--active":"cursor-pointer"),tabindex:l.value,onKeyup:it,onClick:fe.second}:{class:"q-time__link"},F.value.second));let se=[a("div",{class:"q-time__header-label row items-center no-wrap",dir:"ltr"},ne)];return D.value===!1&&se.push(a("div",{class:"q-time__header-ampm column items-between no-wrap"},[a("div",{class:"q-time__link "+(k.value===!0?"q-time__link--active":"cursor-pointer"),tabindex:l.value,onClick:pe,onKeyup:Se},"AM"),a("div",{class:"q-time__link "+(k.value!==!0?"q-time__link--active":"cursor-pointer"),tabindex:l.value,onClick:Fe,onKeyup:me},"PM")])),a("div",{class:"q-time__header flex flex-center no-wrap "+u.value},se)}function vt(){let ne=p.value[b.value];return a("div",{class:"q-time__content col relative-position"},[a(lt,{name:"q-transition--scale"},()=>a("div",{key:"clock"+b.value,class:"q-time__container-parent absolute-full"},[a("div",{ref:h,class:"q-time__container-child fit overflow-hidden"},[$t(a("div",{class:"q-time__clock cursor-pointer non-selectable",onClick:ze,onMousedown:Be},[a("div",{class:"q-time__clock-circle fit"},[a("div",{class:"q-time__clock-pointer"+(p.value[b.value]===null?" hidden":e.color!==void 0?` text-${e.color}`:""),style:L.value}),J.value.map(se=>a("div",{class:`q-time__clock-position row flex-center q-time__clock-pos-${se.index}`+(se.val===ne?" q-time__clock-position--active "+u.value:se.disable===!0?" q-time__clock-position--disable":"")},[a("span",se.label)]))])]),de.value)])])),e.nowBtn===!0?a(Oe,{class:"q-time__now-button absolute",icon:n.iconSet.datetime.now,unelevated:!0,size:"sm",round:!0,color:e.color,textColor:e.textColor,tabindex:l.value,onClick:O}):null])}return r.proxy.setNow=O,()=>{let ne=[vt()],se=ie(t.default);return se!==void 0&&ne.push(a("div",{class:"q-time__actions"},se)),e.name!==void 0&&e.disable!==!0&&g(ne,"push"),a("div",{class:$.value,tabindex:-1},[mt(),a("div",{class:"q-time__main col overflow-auto"},ne)])}}});var Bf=A({name:"QTimeline",props:{...Ce,color:{type:String,default:"primary"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},layout:{type:String,default:"dense",validator:e=>["dense","comfortable","loose"].includes(e)}},setup(e,{slots:t}){let o=U(),r=we(e,o.proxy.$q);Qt(wi,e);let n=s(()=>`q-timeline q-timeline--${e.layout} q-timeline--${e.layout}--${e.side}`+(r.value===!0?" q-timeline--dark":""));return()=>a("ul",{class:n.value},ie(t.default))}});var Ff=A({name:"QTimelineEntry",props:{heading:Boolean,tag:{type:String,default:"h3"},side:{type:String,default:"right",validator:e=>["left","right"].includes(e)},icon:String,avatar:String,color:String,title:String,subtitle:String,body:String},setup(e,{slots:t}){let o=ht(wi,Ze);if(o===Ze)return console.error("QTimelineEntry needs to be child of QTimeline"),Ze;let r=s(()=>`q-timeline__entry q-timeline__entry--${e.side}`+(e.icon!==void 0||e.avatar!==void 0?" q-timeline__entry--icon":"")),n=s(()=>`q-timeline__dot text-${e.color||o.color}`),i=s(()=>o.layout==="comfortable"&&o.side==="left");return()=>{let l=Mo(t.default,[]);if(e.body!==void 0&&l.unshift(e.body),e.heading===!0){let f=[a("div"),a("div"),a(e.tag,{class:"q-timeline__heading-title"},l)];return a("div",{class:"q-timeline__heading"},i.value===!0?f.reverse():f)}let u;e.icon!==void 0?u=[a(Re,{class:"row items-center justify-center",name:e.icon})]:e.avatar!==void 0&&(u=[a("img",{class:"q-timeline__dot-img",src:e.avatar})]);let d=[a("div",{class:"q-timeline__subtitle"},[a("span",{},ie(t.subtitle,[e.subtitle]))]),a("div",{class:n.value},u),a("div",{class:"q-timeline__content"},[a("h6",{class:"q-timeline__title"},ie(t.title,[e.title]))].concat(l))];return a("li",{class:r.value},i.value===!0?d.reverse():d)}}});var Lf=A({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){let o=s(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>a("div",{class:o.value,role:"toolbar"},ie(t.default))}});var Vf=A({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){let o=s(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>a("div",{class:o.value},ie(t.default))}});var bp=["none","strict","leaf","leaf-filtered"],Df=A({name:"QTree",props:{...Ce,nodes:{type:Array,required:!0},nodeKey:{type:String,required:!0},labelKey:{type:String,default:"label"},childrenKey:{type:String,default:"children"},dense:Boolean,color:String,controlColor:String,textColor:String,selectedColor:String,icon:String,tickStrategy:{type:String,default:"none",validator:e=>bp.includes(e)},ticked:Array,expanded:Array,selected:{},noSelectionUnset:Boolean,defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:Function,duration:Number,noConnectors:Boolean,noTransition:Boolean,noNodesLabel:String,noResultsLabel:String},emits:["update:expanded","update:ticked","update:selected","lazyLoad","afterShow","afterHide"],setup(e,{slots:t,emit:o}){let{proxy:r}=U(),{$q:n}=r,i=we(e,n),l=T({}),u=T(e.ticked||[]),d=T(e.expanded||[]),f={};ko(()=>{f={}});let c=s(()=>`q-tree q-tree--${e.dense===!0?"dense":"standard"}`+(e.noConnectors===!0?" q-tree--no-connectors":"")+(i.value===!0?" q-tree--dark":"")+(e.color!==void 0?` text-${e.color}`:"")),g=s(()=>e.selected!==void 0),v=s(()=>e.icon||n.iconSet.tree.icon),m=s(()=>e.controlColor||e.color),h=s(()=>e.textColor!==void 0?` text-${e.textColor}`:""),C=s(()=>{let w=e.selectedColor||e.color;return w?` text-${w}`:""}),y=s(()=>e.filterMethod!==void 0?e.filterMethod:(w,W)=>{let H=W.toLowerCase();return w[e.labelKey]&&w[e.labelKey].toLowerCase().indexOf(H)!==-1}),q=s(()=>{let w={},W=(H,ee)=>{let Y=H.tickStrategy||(ee?ee.tickStrategy:e.tickStrategy),ue=H[e.nodeKey],K=H[e.childrenKey]&&Array.isArray(H[e.childrenKey])&&H[e.childrenKey].length!==0,x=H.disabled!==!0&&g.value===!0&&H.selectable!==!1,G=H.disabled!==!0&&H.expandable!==!1,ae=Y!=="none",fe=Y==="strict",Se=Y==="leaf-filtered",me=Y==="leaf"||Y==="leaf-filtered",ze=H.disabled!==!0&&H.tickable!==!1;me===!0&&ze===!0&&ee&&ee.tickable!==!0&&(ze=!1);let Be=H.lazy;Be===!0&&l.value[ue]!==void 0&&Array.isArray(H[e.childrenKey])===!0&&(Be=l.value[ue]);let xe={key:ue,parent:ee,isParent:K,lazy:Be,disabled:H.disabled,link:H.disabled!==!0&&(x===!0||G===!0&&(K===!0||Be===!0)),children:[],matchesFilter:e.filter?y.value(H,e.filter):!0,selected:ue===e.selected&&x===!0,selectable:x,expanded:K===!0?d.value.includes(ue):!1,expandable:G,noTick:H.noTick===!0||fe!==!0&&Be&&Be!=="loaded",tickable:ze,tickStrategy:Y,hasTicking:ae,strictTicking:fe,leafFilteredTicking:Se,leafTicking:me,ticked:fe===!0?u.value.includes(ue):K===!0?!1:u.value.includes(ue)};if(w[ue]=xe,K===!0&&(xe.children=H[e.childrenKey].map(Ie=>W(Ie,xe)),e.filter&&(xe.matchesFilter!==!0?xe.matchesFilter=xe.children.some(Ie=>Ie.matchesFilter):xe.noTick!==!0&&xe.disabled!==!0&&xe.tickable===!0&&Se===!0&&xe.children.every(Ie=>Ie.matchesFilter!==!0||Ie.noTick===!0||Ie.tickable!==!0)===!0&&(xe.tickable=!1)),xe.matchesFilter===!0&&(xe.noTick!==!0&&fe!==!0&&xe.children.every(Ie=>Ie.noTick)===!0&&(xe.noTick=!0),me))){if(xe.ticked=!1,xe.indeterminate=xe.children.some(Ie=>Ie.indeterminate===!0),xe.tickable=xe.tickable===!0&&xe.children.some(Ie=>Ie.tickable),xe.indeterminate!==!0){let Ie=xe.children.reduce((it,Ke)=>Ke.ticked===!0?it+1:it,0);Ie===xe.children.length?xe.ticked=!0:Ie>0&&(xe.indeterminate=!0)}xe.indeterminate===!0&&(xe.indeterminateNextState=xe.children.every(Ie=>Ie.tickable!==!0||Ie.ticked!==!0))}return xe};return e.nodes.forEach(H=>W(H,null)),w});j(()=>e.ticked,w=>{u.value=w}),j(()=>e.expanded,w=>{d.value=w});function S(w){let W=[].reduce,H=(ee,Y)=>{if(ee||!Y)return ee;if(Array.isArray(Y)===!0)return W.call(Object(Y),H,ee);if(Y[e.nodeKey]===w)return Y;if(Y[e.childrenKey])return H(null,Y[e.childrenKey])};return H(null,e.nodes)}function b(){return u.value.map(w=>S(w))}function p(){return d.value.map(w=>S(w))}function k(w){return w&&q.value[w]?q.value[w].expanded:!1}function $(){e.expanded!==void 0?o("update:expanded",[]):d.value=[]}function F(){let w=[],W=H=>{H[e.childrenKey]&&H[e.childrenKey].length!==0&&H.expandable!==!1&&H.disabled!==!0&&(w.push(H[e.nodeKey]),H[e.childrenKey].forEach(W))};e.nodes.forEach(W),e.expanded!==void 0?o("update:expanded",w):d.value=w}function D(w,W,H=S(w),ee=q.value[w]){if(ee.lazy&&ee.lazy!=="loaded"){if(ee.lazy==="loading")return;l.value[w]="loading",Array.isArray(H[e.childrenKey])!==!0&&(H[e.childrenKey]=[]),o("lazyLoad",{node:H,key:w,done:Y=>{l.value[w]="loaded",H[e.childrenKey]=Array.isArray(Y)===!0?Y:[],Ae(()=>{let ue=q.value[w];ue&&ue.isParent===!0&&L(w,!0)})},fail:()=>{delete l.value[w],H[e.childrenKey].length===0&&delete H[e.childrenKey]}})}else ee.isParent===!0&&ee.expandable===!0&&L(w,W)}function L(w,W){let H=d.value,ee=e.expanded!==void 0;if(ee===!0&&(H=H.slice()),W){if(e.accordion&&q.value[w]){let Y=[];q.value[w].parent?q.value[w].parent.children.forEach(ue=>{ue.key!==w&&ue.expandable===!0&&Y.push(ue.key)}):e.nodes.forEach(ue=>{let K=ue[e.nodeKey];K!==w&&Y.push(K)}),Y.length!==0&&(H=H.filter(ue=>Y.includes(ue)===!1))}H=H.concat([w]).filter((Y,ue,K)=>K.indexOf(Y)===ue)}else H=H.filter(Y=>Y!==w);ee===!0?o("update:expanded",H):d.value=H}function B(w){return w&&q.value[w]?q.value[w].ticked:!1}function V(w,W){let H=u.value,ee=e.ticked!==void 0;ee===!0&&(H=H.slice()),W?H=H.concat(w).filter((Y,ue,K)=>K.indexOf(Y)===ue):H=H.filter(Y=>w.includes(Y)===!1),ee===!0&&o("update:ticked",H)}function E(w,W,H){let ee={tree:r,node:w,key:H,color:e.color,dark:i.value};return st(ee,"expanded",()=>W.expanded,Y=>{Y!==W.expanded&&D(H,Y)}),st(ee,"ticked",()=>W.ticked,Y=>{Y!==W.ticked&&V([H],Y)}),ee}function _(w){return(e.filter?w.filter(W=>q.value[W[e.nodeKey]].matchesFilter):w).map(W=>M(W))}function R(w){if(w.icon!==void 0)return a(Re,{class:"q-tree__icon q-mr-sm",name:w.icon,color:w.iconColor});let W=w.img||w.avatar;if(W)return a("img",{class:`q-tree__${w.img?"img":"avatar"} q-mr-sm`,src:W})}function N(){o("afterShow")}function X(){o("afterHide")}function M(w){let W=w[e.nodeKey],H=q.value[W],ee=w.header&&t[`header-${w.header}`]||t["default-header"],Y=H.isParent===!0?_(w[e.childrenKey]):[],ue=Y.length!==0||H.lazy&&H.lazy!=="loaded",K=w.body&&t[`body-${w.body}`]||t["default-body"],x=ee!==void 0||K!==void 0?E(w,H,W):null;return K!==void 0&&(K=a("div",{class:"q-tree__node-body relative-position"},[a("div",{class:h.value},[K(x)])])),a("div",{key:W,class:`q-tree__node relative-position q-tree__node--${ue===!0?"parent":"child"}`},[a("div",{class:"q-tree__node-header relative-position row no-wrap items-center"+(H.link===!0?" q-tree__node--link q-hoverable q-focusable":"")+(H.selected===!0?" q-tree__node--selected":"")+(H.disabled===!0?" q-tree__node--disabled":""),tabindex:H.link===!0?0:-1,ariaExpanded:Y.length>0?H.expanded:null,role:"treeitem",onClick:G=>{J(w,H,G)},onKeypress(G){no(G)!==!0&&(G.keyCode===13?J(w,H,G,!0):G.keyCode===32&&de(w,H,G,!0))}},[a("div",{class:"q-focus-helper",tabindex:-1,ref:G=>{f[H.key]=G}}),H.lazy==="loading"?a(Ct,{class:"q-tree__spinner",color:m.value}):ue===!0?a(Re,{class:"q-tree__arrow"+(H.expanded===!0?" q-tree__arrow--rotate":""),name:v.value,onClick(G){de(w,H,G)}}):null,H.hasTicking===!0&&H.noTick!==!0?a(Do,{class:"q-tree__tickbox",modelValue:H.indeterminate===!0?null:H.ticked,color:m.value,dark:i.value,dense:!0,keepColor:!0,disable:H.tickable!==!0,onKeydown:qe,"onUpdate:modelValue":G=>{O(H,G)}}):null,a("div",{class:"q-tree__node-header-content col row no-wrap items-center"+(H.selected===!0?C.value:h.value)},[ee?ee(x):[R(w),a("div",w[e.labelKey])]])]),ue===!0?e.noTransition===!0?H.expanded===!0?a("div",{class:"q-tree__node-collapsible"+h.value,key:`${W}__q`},[K,a("div",{class:"q-tree__children"+(H.disabled===!0?" q-tree__node--disabled":""),role:"group"},Y)]):null:a(gn,{duration:e.duration,onShow:N,onHide:X},()=>$t(a("div",{class:"q-tree__node-collapsible"+h.value,key:`${W}__q`},[K,a("div",{class:"q-tree__children"+(H.disabled===!0?" q-tree__node--disabled":""),role:"group"},Y)]),[[bi,H.expanded]])):K])}function Q(w){let W=f[w];W&&W.focus()}function J(w,W,H,ee){ee!==!0&&W.selectable!==!1&&Q(W.key),g.value&&W.selectable?e.noSelectionUnset===!1?o("update:selected",W.key!==e.selected?W.key:null):W.key!==e.selected&&o("update:selected",W.key===void 0?null:W.key):de(w,W,H,ee),typeof w.handler=="function"&&w.handler(w)}function de(w,W,H,ee){H!==void 0&&qe(H),ee!==!0&&W.selectable!==!1&&Q(W.key),D(W.key,!W.expanded,w,W)}function O(w,W){if(w.indeterminate===!0&&(W=w.indeterminateNextState),w.strictTicking)V([w.key],W);else if(w.leafTicking){let H=[],ee=Y=>{Y.isParent?(W!==!0&&Y.noTick!==!0&&Y.tickable===!0&&H.push(Y.key),Y.leafTicking===!0&&Y.children.forEach(ee)):Y.noTick!==!0&&Y.tickable===!0&&(Y.leafFilteredTicking!==!0||Y.matchesFilter===!0)&&H.push(Y.key)};ee(w),V(H,W)}}return e.defaultExpandAll===!0&&F(),Object.assign(r,{getNodeByKey:S,getTickedNodes:b,getExpandedNodes:p,isExpanded:k,collapseAll:$,expandAll:F,setExpanded:D,isTicked:B,setTicked:V}),()=>{let w=_(e.nodes);return a("div",{class:c.value,role:"tree"},w.length===0?e.filter?e.noResultsLabel||n.lang.tree.noResults:e.noNodesLabel||n.lang.tree.noNodes:w)}}});function zf(e){return(e*100).toFixed(2)+"%"}var Of={...Ce,...Ta,label:String,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,noThumbnails:Boolean,autoUpload:Boolean,hideUploadBtn:Boolean,disable:Boolean,readonly:Boolean},fu=[...Ma,"start","finish","added","removed"];function If(e,t){let o=U(),{props:r,slots:n,emit:i,proxy:l}=o,{$q:u}=l,d=we(r,u);function f(x,G,ae){if(x.__status=G,G==="idle"){x.__uploaded=0,x.__progress=0,x.__sizeLabel=jn(x.size),x.__progressLabel="0.00%";return}if(G==="failed"){l.$forceUpdate();return}x.__uploaded=G==="uploaded"?x.size:ae,x.__progress=G==="uploaded"?1:Math.min(.9999,x.__uploaded/x.size),x.__progressLabel=zf(x.__progress),l.$forceUpdate()}let c=s(()=>r.disable!==!0&&r.readonly!==!0),g=T(!1),v=T(null),m=T(null),h={files:T([]),queuedFiles:T([]),uploadedFiles:T([]),uploadedSize:T(0),updateFileStatus:f,isAlive:()=>Zt(o)===!1},{pickFiles:C,addFiles:y,onDragover:q,onDragleave:S,processFiles:b,getDndNode:p,maxFilesNumber:k,maxTotalSizeNumber:$}=Ra({editable:c,dnd:g,getFileInput:O,addFilesToQueue:w});Object.assign(h,e({props:r,slots:n,emit:i,helpers:h,exposeApi:x=>{Object.assign(h,x)}})),h.isBusy===void 0&&(h.isBusy=T(!1));let F=T(0),D=s(()=>F.value===0?0:h.uploadedSize.value/F.value),L=s(()=>zf(D.value)),B=s(()=>jn(F.value)),V=s(()=>c.value===!0&&h.isUploading.value!==!0&&(r.multiple===!0||h.queuedFiles.value.length===0)&&(r.maxFiles===void 0||h.files.value.length<k.value)&&(r.maxTotalSize===void 0||F.value<$.value)),E=s(()=>c.value===!0&&h.isBusy.value!==!0&&h.isUploading.value!==!0&&h.queuedFiles.value.length!==0);Qt(Ri,ee);let _=s(()=>"q-uploader column no-wrap"+(d.value===!0?" q-uploader--dark q-dark":"")+(r.bordered===!0?" q-uploader--bordered":"")+(r.square===!0?" q-uploader--square no-border-radius":"")+(r.flat===!0?" q-uploader--flat no-shadow":"")+(r.disable===!0?" disabled q-uploader--disable":"")+(g.value===!0?" q-uploader--dnd":"")),R=s(()=>"q-uploader__header"+(r.color!==void 0?` bg-${r.color}`:"")+(r.textColor!==void 0?` text-${r.textColor}`:""));j(h.isUploading,(x,G)=>{G===!1&&x===!0?i("start"):G===!0&&x===!1&&i("finish")});function N(){r.disable===!1&&(h.abort(),h.uploadedSize.value=0,F.value=0,de(),h.files.value=[],h.queuedFiles.value=[],h.uploadedFiles.value=[])}function X(){r.disable===!1&&Q(["uploaded"],()=>{h.uploadedFiles.value=[]})}function M(){Q(["idle","failed"],({size:x})=>{F.value-=x,h.queuedFiles.value=[]})}function Q(x,G){if(r.disable===!0)return;let ae={files:[],size:0},fe=h.files.value.filter(Se=>x.indexOf(Se.__status)===-1?!0:(ae.size+=Se.size,ae.files.push(Se),Se.__img!==void 0&&window.URL.revokeObjectURL(Se.__img.src),!1));ae.files.length!==0&&(h.files.value=fe,G(ae),i("removed",ae.files))}function J(x){r.disable||(x.__status==="uploaded"?h.uploadedFiles.value=h.uploadedFiles.value.filter(G=>G.__key!==x.__key):x.__status==="uploading"?x.__abort():F.value-=x.size,h.files.value=h.files.value.filter(G=>G.__key!==x.__key?!0:(G.__img!==void 0&&window.URL.revokeObjectURL(G.__img.src),!1)),h.queuedFiles.value=h.queuedFiles.value.filter(G=>G.__key!==x.__key),i("removed",[x]))}function de(){h.files.value.forEach(x=>{x.__img!==void 0&&window.URL.revokeObjectURL(x.__img.src)})}function O(){return m.value||v.value.getElementsByClassName("q-uploader__input")[0]}function w(x,G){let ae=b(x,G,h.files.value,!0),fe=O();fe!=null&&(fe.value=""),ae!==void 0&&(ae.forEach(Se=>{if(h.updateFileStatus(Se,"idle"),F.value+=Se.size,r.noThumbnails!==!0&&Se.type.toUpperCase().startsWith("IMAGE")){let me=new Image;me.src=window.URL.createObjectURL(Se),Se.__img=me}}),h.files.value=h.files.value.concat(ae),h.queuedFiles.value=h.queuedFiles.value.concat(ae),i("added",ae),r.autoUpload===!0&&h.upload())}function W(){E.value===!0&&h.upload()}function H(x,G,ae){if(x===!0){let fe={type:"a",key:G,icon:u.iconSet.uploader[G],flat:!0,dense:!0},Se;return G==="add"?(fe.onClick=C,Se=ee):fe.onClick=ae,a(Oe,fe,Se)}}function ee(){return a("input",{ref:m,class:"q-uploader__input overflow-hidden absolute-full",tabindex:-1,type:"file",title:"",accept:r.accept,multiple:r.multiple===!0?"multiple":void 0,capture:r.capture,onMousedown:rt,onClick:C,onChange:w})}function Y(){return n.header!==void 0?n.header(K):[a("div",{class:"q-uploader__header-content column"},[a("div",{class:"flex flex-center no-wrap q-gutter-xs"},[H(h.queuedFiles.value.length!==0,"removeQueue",M),H(h.uploadedFiles.value.length!==0,"removeUploaded",X),h.isUploading.value===!0?a(Ct,{class:"q-uploader__spinner"}):null,a("div",{class:"col column justify-center"},[r.label!==void 0?a("div",{class:"q-uploader__title"},[r.label]):null,a("div",{class:"q-uploader__subtitle"},[B.value+" / "+L.value])]),H(V.value,"add"),H(r.hideUploadBtn===!1&&E.value===!0,"upload",h.upload),H(h.isUploading.value,"clear",h.abort)])])]}function ue(){return n.list!==void 0?n.list(K):h.files.value.map(x=>a("div",{key:x.__key,class:"q-uploader__file relative-position"+(r.noThumbnails!==!0&&x.__img!==void 0?" q-uploader__file--img":"")+(x.__status==="failed"?" q-uploader__file--failed":x.__status==="uploaded"?" q-uploader__file--uploaded":""),style:r.noThumbnails!==!0&&x.__img!==void 0?{backgroundImage:'url("'+x.__img.src+'")'}:null},[a("div",{class:"q-uploader__file-header row flex-center no-wrap"},[x.__status==="failed"?a(Re,{class:"q-uploader__file-status",name:u.iconSet.type.negative,color:"negative"}):null,a("div",{class:"q-uploader__file-header-content col"},[a("div",{class:"q-uploader__title"},[x.name]),a("div",{class:"q-uploader__subtitle row items-center no-wrap"},[x.__sizeLabel+" / "+x.__progressLabel])]),x.__status==="uploading"?a(Tr,{value:x.__progress,min:0,max:1,indeterminate:x.__progress===0}):a(Oe,{round:!0,dense:!0,flat:!0,icon:u.iconSet.uploader[x.__status==="uploaded"?"done":"clear"],onClick:()=>{J(x)}})])]))}ye(()=>{h.isUploading.value===!0&&h.abort(),h.files.value.length!==0&&de()});let K={};for(let x in h)Mu(h[x])===!0?st(K,x,()=>h[x].value):K[x]=h[x];return Object.assign(K,{upload:W,reset:N,removeUploadedFiles:X,removeQueuedFiles:M,removeFile:J,pickFiles:C,addFiles:y}),yi(K,{canAddFiles:()=>V.value,canUpload:()=>E.value,uploadSizeLabel:()=>B.value,uploadProgressLabel:()=>L.value}),t({...h,upload:W,reset:N,removeUploadedFiles:X,removeQueuedFiles:M,removeFile:J,pickFiles:C,addFiles:y,canAddFiles:V,canUpload:E,uploadSizeLabel:B,uploadProgressLabel:L}),()=>{let x=[a("div",{class:R.value},Y()),a("div",{class:"q-uploader__list scroll"},ue()),p("uploader")];h.isBusy.value===!0&&x.push(a("div",{class:"q-uploader__overlay absolute-full flex flex-center"},[a(Ct)]));let G={ref:v,class:_.value};return V.value===!0&&Object.assign(G,{onDragover:q,onDragleave:S}),a("div",G,x)}}var yp=()=>!0;function Za(e){let t={};return e.forEach(o=>{t[o]=yp}),t}var Sp=Za(fu),Ja=({name:e,props:t,emits:o,injectPlugin:r})=>A({name:e,props:{...Of,...t},emits:ct(o)===!0?{...Sp,...o}:[...fu,...o],setup(n,{expose:i}){return If(r,i)}});function en(e){return typeof e=="function"?e:()=>e}var xp={url:[Function,String],method:{type:[Function,String],default:"POST"},fieldName:{type:[Function,String],default:()=>e=>e.name},headers:[Function,Array],formFields:[Function,Array],withCredentials:[Function,Boolean],sendRaw:[Function,Boolean],batch:[Function,Boolean],factory:Function},_p=["factoryFailed","uploaded","failed","uploading"];function Cp({props:e,emit:t,helpers:o}){let r=T([]),n=T([]),i=T(0),l=s(()=>({url:en(e.url),method:en(e.method),headers:en(e.headers),formFields:en(e.formFields),fieldName:en(e.fieldName),withCredentials:en(e.withCredentials),sendRaw:en(e.sendRaw),batch:en(e.batch)})),u=s(()=>i.value>0),d=s(()=>n.value.length!==0),f;function c(){r.value.forEach(h=>{h.abort()}),n.value.length!==0&&(f=!0)}function g(){let h=o.queuedFiles.value.slice(0);o.queuedFiles.value=[],l.value.batch(h)?v(h):h.forEach(C=>{v([C])})}function v(h){if(i.value++,typeof e.factory!="function"){m(h,{});return}let C=e.factory(h);if(!C)t("factoryFailed",new Error("QUploader: factory() does not return properly"),h),i.value--;else if(typeof C.catch=="function"&&typeof C.then=="function"){n.value.push(C);let y=q=>{o.isAlive()===!0&&(n.value=n.value.filter(S=>S!==C),n.value.length===0&&(f=!1),o.queuedFiles.value=o.queuedFiles.value.concat(h),h.forEach(S=>{o.updateFileStatus(S,"failed")}),t("factoryFailed",q,h),i.value--)};C.then(q=>{f===!0?y(new Error("Aborted")):o.isAlive()===!0&&(n.value=n.value.filter(S=>S!==C),m(h,q))}).catch(y)}else m(h,C||{})}function m(h,C){let y=new FormData,q=new XMLHttpRequest,S=(E,_)=>C[E]!==void 0?en(C[E])(_):l.value[E](_),b=S("url",h);if(!b){console.error("q-uploader: invalid or no URL specified"),i.value--;return}let p=S("formFields",h);p!==void 0&&p.forEach(E=>{y.append(E.name,E.value)});let k=0,$=0,F=0,D=0,L;q.upload.addEventListener("progress",E=>{if(L===!0)return;let _=Math.min(D,E.loaded);o.uploadedSize.value+=_-F,F=_;let R=F-$;for(let N=k;R>0&&N<h.length;N++){let X=h[N];if(R>X.size)R-=X.size,k++,$+=X.size,o.updateFileStatus(X,"uploading",X.size);else{o.updateFileStatus(X,"uploading",R);return}}},!1),q.onreadystatechange=()=>{q.readyState<4||(q.status&&q.status<400?(o.uploadedFiles.value=o.uploadedFiles.value.concat(h),h.forEach(E=>{o.updateFileStatus(E,"uploaded")}),t("uploaded",{files:h,xhr:q})):(L=!0,o.uploadedSize.value-=F,o.queuedFiles.value=o.queuedFiles.value.concat(h),h.forEach(E=>{o.updateFileStatus(E,"failed")}),t("failed",{files:h,xhr:q})),i.value--,r.value=r.value.filter(E=>E!==q))},q.open(S("method",h),b),S("withCredentials",h)===!0&&(q.withCredentials=!0);let B=S("headers",h);B!==void 0&&B.forEach(E=>{q.setRequestHeader(E.name,E.value)});let V=S("sendRaw",h);h.forEach(E=>{o.updateFileStatus(E,"uploading",0),V!==!0&&y.append(S("fieldName",E),E,E.name),E.xhr=q,E.__abort=()=>{q.abort()},D+=E.size}),t("uploading",{files:h,xhr:q}),r.value.push(q),V===!0?q.send(new Blob(h)):q.send(y)}return{isUploading:u,isBusy:d,abort:c,upload:g}}var Nf={name:"QUploader",props:xp,emits:_p,injectPlugin:Cp};var Hf=Ja(Nf);var Qf=A({name:"QUploaderAddTrigger",setup(){let e=ht(Ri,Ze);return e===Ze&&console.error("QUploaderAddTrigger needs to be child of QUploader"),e}});var jf=A({name:"QVideo",props:{...$r,src:{type:String,required:!0},title:String,fetchpriority:{type:String,default:"auto"},loading:{type:String,default:"eager"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin"}},setup(e){let t=Er(e),o=s(()=>"q-video"+(e.ratio!==void 0?" q-video--responsive":""));return()=>a("div",{class:o.value,style:t.value},[a("iframe",{src:e.src,title:e.title,fetchpriority:e.fetchpriority,loading:e.loading,referrerpolicy:e.referrerpolicy,frameborder:"0",allowfullscreen:!0})])}});var rl={};Nr(rl,{ClosePopup:()=>Kf,Intersection:()=>Ea,Morph:()=>rm,Mutation:()=>lm,Ripple:()=>Po,Scroll:()=>dm,ScrollFire:()=>sm,TouchHold:()=>fm,TouchPan:()=>Rt,TouchRepeat:()=>vm,TouchSwipe:()=>Ki});function Uf(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;let t=parseInt(e,10);return isNaN(t)?0:t}var Kf=Pt({name:"close-popup",beforeMount(e,{value:t}){let o={depth:Uf(t),handler(r){o.depth!==0&&setTimeout(()=>{let n=Ps(e);n!==void 0&&As(n,r,o.depth)})},handlerKey(r){Tt(r,13)===!0&&o.handler(r)}};e.__qclosepopup=o,e.addEventListener("click",o.handler),e.addEventListener("keyup",o.handlerKey)},updated(e,{value:t,oldValue:o}){t!==o&&(e.__qclosepopup.depth=Uf(t))},beforeUnmount(e){let t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}});var wp=0,di;function Wf(e,t){di===void 0&&(di=document.createElement("div"),di.style.cssText="position: absolute; left: 0; top: 0",document.body.appendChild(di));let o=e.getBoundingClientRect(),r=di.getBoundingClientRect(),{marginLeft:n,marginRight:i,marginTop:l,marginBottom:u}=window.getComputedStyle(e),d=parseInt(n,10)+parseInt(i,10),f=parseInt(l,10)+parseInt(u,10);return{left:o.left-r.left,top:o.top-r.top,width:o.right-o.left,height:o.bottom-o.top,widthM:o.right-o.left+(t===!0?0:d),heightM:o.bottom-o.top+(t===!0?0:f),marginH:t===!0?d:0,marginV:t===!0?f:0}}function tl(e){return{width:e.scrollWidth,height:e.scrollHeight}}var Yf=["Top","Right","Bottom","Left"],Xf=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],kp=/-block|-inline|block-|inline-/,qp=/(-block|-inline|block-|inline-).*:/;function Gf(e,t){let o=window.getComputedStyle(e),r={};for(let n=0;n<t.length;n++){let i=t[n];if(o[i]==="")if(i==="cssText"){let l=o.length,u="";for(let d=0;d<l;d++)kp.test(o[d])!==!0&&(u+=o[d]+": "+o[o[d]]+"; ");r[i]=u}else if(["borderWidth","borderStyle","borderColor"].indexOf(i)!==-1){let l=i.replace("border",""),u="";for(let d=0;d<Yf.length;d++){let f="border"+Yf[d]+l;u+=o[f]+" "}r[i]=u}else if(i==="borderRadius"){let l="",u="";for(let d=0;d<Xf.length;d++){let f=o[Xf[d]].split(" ");l+=f[0]+" ",u+=(f[1]===void 0?f[0]:f[1])+" "}r[i]=l+"/ "+u}else r[i]=o[i];else i==="cssText"?r[i]=o[i].split(";").filter(l=>qp.test(l)!==!0).join(";"):r[i]=o[i]}return r}var Tp=["absolute","fixed","relative","sticky"];function Zf(e){let t=e,o=0;for(;t!==null&&t!==document;){let{position:r,zIndex:n}=window.getComputedStyle(t),i=Number(n);i>o&&(t===e||Tp.includes(r)===!0)&&(o=i),t=t.parentNode}return o}function Mp(e){return{from:e.from,to:e.to!==void 0?e.to:e.from}}function Rp(e){return typeof e=="number"?e={duration:e}:typeof e=="function"&&(e={onEnd:e}),{...e,waitFor:e.waitFor===void 0?0:e.waitFor,duration:isNaN(e.duration)===!0?300:parseInt(e.duration,10),easing:typeof e.easing=="string"&&e.easing.length!==0?e.easing:"ease-in-out",delay:isNaN(e.delay)===!0?0:parseInt(e.delay,10),fill:typeof e.fill=="string"&&e.fill.length!==0?e.fill:"none",resize:e.resize===!0,useCSS:e.useCSS===!0||e.usecss===!0,hideFromClone:e.hideFromClone===!0||e.hidefromclone===!0,keepToClone:e.keepToClone===!0||e.keeptoclone===!0,tween:e.tween===!0,tweenFromOpacity:isNaN(e.tweenFromOpacity)===!0?.6:parseFloat(e.tweenFromOpacity),tweenToOpacity:isNaN(e.tweenToOpacity)===!0?.5:parseFloat(e.tweenToOpacity)}}function Jf(e){let t=typeof e;return t==="function"?e():t==="string"?document.querySelector(e):e}function em(e){return e&&e.ownerDocument===document&&e.parentNode!==null}function fi(e){let t=()=>!1,o=!1,r=!0,n=Mp(e),i=Rp(e),l=Jf(n.from);if(em(l)!==!0)return t;typeof l.qMorphCancel=="function"&&l.qMorphCancel();let u,d,f,c,g=l.parentNode,v=l.nextElementSibling,m=Wf(l,i.resize),{width:h,height:C}=tl(g),{borderWidth:y,borderStyle:q,borderColor:S,borderRadius:b,backgroundColor:p,transform:k,position:$,cssText:F}=Gf(l,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),D=l.classList.toString(),L=l.style.cssText,B=l.cloneNode(!0),V=i.tween===!0?l.cloneNode(!0):void 0;V!==void 0&&(V.className=V.classList.toString().split(" ").filter(_=>/^bg-/.test(_)===!1).join(" ")),i.hideFromClone===!0&&B.classList.add("q-morph--internal"),B.setAttribute("aria-hidden","true"),B.style.transition="none",B.style.animation="none",B.style.pointerEvents="none",g.insertBefore(B,v),l.qMorphCancel=()=>{o=!0,B.remove(),V!==void 0&&V.remove(),i.hideFromClone===!0&&B.classList.remove("q-morph--internal"),l.qMorphCancel=void 0};let E=()=>{let _=Jf(n.to);if(o===!0||em(_)!==!0){typeof l.qMorphCancel=="function"&&l.qMorphCancel();return}l!==_&&typeof _.qMorphCancel=="function"&&_.qMorphCancel(),i.keepToClone!==!0&&_.classList.add("q-morph--internal"),B.classList.add("q-morph--internal");let{width:R,height:N}=tl(g),{width:X,height:M}=tl(_.parentNode);i.hideFromClone!==!0&&B.classList.remove("q-morph--internal"),_.qMorphCancel=()=>{o=!0,B.remove(),V!==void 0&&V.remove(),i.hideFromClone===!0&&B.classList.remove("q-morph--internal"),i.keepToClone!==!0&&_.classList.remove("q-morph--internal"),l.qMorphCancel=void 0,_.qMorphCancel=void 0};let Q=()=>{if(o===!0){typeof _.qMorphCancel=="function"&&_.qMorphCancel();return}i.hideFromClone!==!0&&(B.classList.add("q-morph--internal"),B.innerHTML="",B.style.left=0,B.style.right="unset",B.style.top=0,B.style.bottom="unset",B.style.transform="none"),i.keepToClone!==!0&&_.classList.remove("q-morph--internal");let J=_.parentNode,{width:de,height:O}=tl(J),w=_.cloneNode(i.keepToClone);w.setAttribute("aria-hidden","true"),i.keepToClone!==!0&&(w.style.left=0,w.style.right="unset",w.style.top=0,w.style.bottom="unset",w.style.transform="none",w.style.pointerEvents="none"),w.classList.add("q-morph--internal");let W=_===l&&g===J?B:_.nextElementSibling;J.insertBefore(w,W);let{borderWidth:H,borderStyle:ee,borderColor:Y,borderRadius:ue,backgroundColor:K,transform:x,position:G,cssText:ae}=Gf(_,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),fe=_.classList.toString(),Se=_.style.cssText;_.style.cssText=ae,_.style.transform="none",_.style.animation="none",_.style.transition="none",_.className=fe.split(" ").filter(le=>/^bg-/.test(le)===!1).join(" ");let me=Wf(_,i.resize),ze=m.left-me.left,Be=m.top-me.top,xe=m.width/(me.width>0?me.width:10),Ie=m.height/(me.height>0?me.height:100),it=h-R,Ke=C-N,ce=de-X,ve=O-M,te=Math.max(m.widthM,it),pe=Math.max(m.heightM,Ke),Fe=Math.max(me.widthM,ce),Ve=Math.max(me.heightM,ve),Le=l===_&&["absolute","fixed"].includes(G)===!1&&["absolute","fixed"].includes($)===!1,at=G==="fixed",mt=J;for(;at!==!0&&mt!==document;)at=window.getComputedStyle(mt).position==="fixed",mt=mt.parentNode;if(i.hideFromClone!==!0&&(B.style.display="block",B.style.flex="0 0 auto",B.style.opacity=0,B.style.minWidth="unset",B.style.maxWidth="unset",B.style.minHeight="unset",B.style.maxHeight="unset",B.classList.remove("q-morph--internal")),i.keepToClone!==!0&&(w.style.display="block",w.style.flex="0 0 auto",w.style.opacity=0,w.style.minWidth="unset",w.style.maxWidth="unset",w.style.minHeight="unset",w.style.maxHeight="unset"),w.classList.remove("q-morph--internal"),typeof i.classes=="string"&&(_.className+=" "+i.classes),typeof i.style=="string")_.style.cssText+=" "+i.style;else if(ct(i.style)===!0)for(let le in i.style)_.style[le]=i.style[le];let vt=Zf(B),ne=Zf(_),se=at===!0?document.documentElement:{scrollLeft:0,scrollTop:0};_.style.position=at===!0?"fixed":"absolute",_.style.left=`${me.left-se.scrollLeft}px`,_.style.right="unset",_.style.top=`${me.top-se.scrollTop}px`,_.style.margin=0,i.resize===!0&&(_.style.minWidth="unset",_.style.maxWidth="unset",_.style.minHeight="unset",_.style.maxHeight="unset",_.style.overflow="hidden",_.style.overflowX="hidden",_.style.overflowY="hidden"),document.body.appendChild(_),V!==void 0&&(V.style.cssText=F,V.style.transform="none",V.style.animation="none",V.style.transition="none",V.style.position=_.style.position,V.style.left=`${m.left-se.scrollLeft}px`,V.style.right="unset",V.style.top=`${m.top-se.scrollTop}px`,V.style.margin=0,V.style.pointerEvents="none",i.resize===!0&&(V.style.minWidth="unset",V.style.maxWidth="unset",V.style.minHeight="unset",V.style.maxHeight="unset",V.style.overflow="hidden",V.style.overflowX="hidden",V.style.overflowY="hidden"),document.body.appendChild(V));let Z=le=>{l===_&&r!==!0?(_.style.cssText=L,_.className=D):(_.style.cssText=Se,_.className=fe),w.parentNode===J&&J.insertBefore(_,w),B.remove(),w.remove(),V!==void 0&&V.remove(),t=()=>!1,l.qMorphCancel=void 0,_.qMorphCancel=void 0,typeof i.onEnd=="function"&&i.onEnd(r===!0?"to":"from",le===!0)};if(i.useCSS!==!0&&typeof _.animate=="function"){let le=i.resize===!0?{transform:`translate(${ze}px, ${Be}px)`,width:`${te}px`,height:`${pe}px`}:{transform:`translate(${ze}px, ${Be}px) scale(${xe}, ${Ie})`},Pe=i.resize===!0?{width:`${Fe}px`,height:`${Ve}px`}:{},He=i.resize===!0?{width:`${te}px`,height:`${pe}px`}:{},ke=i.resize===!0?{transform:`translate(${-1*ze}px, ${-1*Be}px)`,width:`${Fe}px`,height:`${Ve}px`}:{transform:`translate(${-1*ze}px, ${-1*Be}px) scale(${1/xe}, ${1/Ie})`},et=V!==void 0?{opacity:i.tweenToOpacity}:{backgroundColor:p},pt=V!==void 0?{opacity:1}:{backgroundColor:K};c=_.animate([{margin:0,borderWidth:y,borderStyle:q,borderColor:S,borderRadius:b,zIndex:vt,transformOrigin:"0 0",...le,...et},{margin:0,borderWidth:H,borderStyle:ee,borderColor:Y,borderRadius:ue,zIndex:ne,transformOrigin:"0 0",transform:x,...Pe,...pt}],{duration:i.duration,easing:i.easing,fill:i.fill,delay:i.delay}),d=V===void 0?void 0:V.animate([{opacity:i.tweenFromOpacity,margin:0,borderWidth:y,borderStyle:q,borderColor:S,borderRadius:b,zIndex:vt,transformOrigin:"0 0",transform:k,...He},{opacity:0,margin:0,borderWidth:H,borderStyle:ee,borderColor:Y,borderRadius:ue,zIndex:ne,transformOrigin:"0 0",...ke}],{duration:i.duration,easing:i.easing,fill:i.fill,delay:i.delay}),u=i.hideFromClone===!0||Le===!0?void 0:B.animate([{margin:`${Ke<0?Ke/2:0}px ${it<0?it/2:0}px`,width:`${te+m.marginH}px`,height:`${pe+m.marginV}px`},{margin:0,width:0,height:0}],{duration:i.duration,easing:i.easing,fill:i.fill,delay:i.delay}),f=i.keepToClone===!0?void 0:w.animate([Le===!0?{margin:`${Ke<0?Ke/2:0}px ${it<0?it/2:0}px`,width:`${te+m.marginH}px`,height:`${pe+m.marginV}px`}:{margin:0,width:0,height:0},{margin:`${ve<0?ve/2:0}px ${ce<0?ce/2:0}px`,width:`${Fe+me.marginH}px`,height:`${Ve+me.marginV}px`}],{duration:i.duration,easing:i.easing,fill:i.fill,delay:i.delay});let yt=Yt=>{u!==void 0&&u.cancel(),d!==void 0&&d.cancel(),f!==void 0&&f.cancel(),c.cancel(),c.removeEventListener("finish",yt),c.removeEventListener("cancel",yt),Z(Yt),u=void 0,d=void 0,f=void 0,c=void 0};l.qMorphCancel=()=>{l.qMorphCancel=void 0,o=!0,yt()},_.qMorphCancel=()=>{_.qMorphCancel=void 0,o=!0,yt()},c.addEventListener("finish",yt),c.addEventListener("cancel",yt),t=Yt=>o===!0||c===void 0?!1:Yt===!0?(yt(!0),!0):(r=r!==!0,u!==void 0&&u.reverse(),d!==void 0&&d.reverse(),f!==void 0&&f.reverse(),c.reverse(),!0)}else{let le=`q-morph-anim-${++wp}`,Pe=document.createElement("style"),He=i.resize===!0?`
18
+ transform: translate(${ze}px, ${Be}px);
19
+ width: ${te}px;
20
+ height: ${pe}px;
21
+ `:`transform: translate(${ze}px, ${Be}px) scale(${xe}, ${Ie});`,ke=i.resize===!0?`
22
+ width: ${Fe}px;
23
+ height: ${Ve}px;
24
+ `:"",et=i.resize===!0?`
25
+ width: ${te}px;
26
+ height: ${pe}px;
27
+ `:"",pt=i.resize===!0?`
28
+ transform: translate(${-1*ze}px, ${-1*Be}px);
29
+ width: ${Fe}px;
30
+ height: ${Ve}px;
31
+ `:`transform: translate(${-1*ze}px, ${-1*Be}px) scale(${1/xe}, ${1/Ie});`,yt=V!==void 0?`opacity: ${i.tweenToOpacity};`:`background-color: ${p};`,Yt=V!==void 0?"opacity: 1;":`background-color: ${K};`,lo=V===void 0?"":`
32
+ @keyframes ${le}-from-tween {
33
+ 0% {
34
+ opacity: ${i.tweenFromOpacity};
35
+ margin: 0;
36
+ border-width: ${y};
37
+ border-style: ${q};
38
+ border-color: ${S};
39
+ border-radius: ${b};
40
+ z-index: ${vt};
41
+ transform-origin: 0 0;
42
+ transform: ${k};
43
+ ${et}
44
+ }
45
+
46
+ 100% {
47
+ opacity: 0;
48
+ margin: 0;
49
+ border-width: ${H};
50
+ border-style: ${ee};
51
+ border-color: ${Y};
52
+ border-radius: ${ue};
53
+ z-index: ${ne};
54
+ transform-origin: 0 0;
55
+ ${pt}
56
+ }
57
+ }
58
+ `,Qo=i.hideFromClone===!0||Le===!0?"":`
59
+ @keyframes ${le}-from {
60
+ 0% {
61
+ margin: ${Ke<0?Ke/2:0}px ${it<0?it/2:0}px;
62
+ width: ${te+m.marginH}px;
63
+ height: ${pe+m.marginV}px;
64
+ }
65
+
66
+ 100% {
67
+ margin: 0;
68
+ width: 0;
69
+ height: 0;
70
+ }
71
+ }
72
+ `,wo=Le===!0?`
73
+ margin: ${Ke<0?Ke/2:0}px ${it<0?it/2:0}px;
74
+ width: ${te+m.marginH}px;
75
+ height: ${pe+m.marginV}px;
76
+ `:`
77
+ margin: 0;
78
+ width: 0;
79
+ height: 0;
80
+ `,re=i.keepToClone===!0?"":`
81
+ @keyframes ${le}-to {
82
+ 0% {
83
+ ${wo}
84
+ }
85
+
86
+ 100% {
87
+ margin: ${ve<0?ve/2:0}px ${ce<0?ce/2:0}px;
88
+ width: ${Fe+me.marginH}px;
89
+ height: ${Ve+me.marginV}px;
90
+ }
91
+ }
92
+ `;Pe.innerHTML=`
93
+ @keyframes ${le} {
94
+ 0% {
95
+ margin: 0;
96
+ border-width: ${y};
97
+ border-style: ${q};
98
+ border-color: ${S};
99
+ border-radius: ${b};
100
+ background-color: ${p};
101
+ z-index: ${vt};
102
+ transform-origin: 0 0;
103
+ ${He}
104
+ ${yt}
105
+ }
106
+
107
+ 100% {
108
+ margin: 0;
109
+ border-width: ${H};
110
+ border-style: ${ee};
111
+ border-color: ${Y};
112
+ border-radius: ${ue};
113
+ background-color: ${K};
114
+ z-index: ${ne};
115
+ transform-origin: 0 0;
116
+ transform: ${x};
117
+ ${ke}
118
+ ${Yt}
119
+ }
120
+ }
121
+
122
+ ${Qo}
123
+
124
+ ${lo}
125
+
126
+ ${re}
127
+ `,document.head.appendChild(Pe);let be="normal";B.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${be} ${i.fill} ${le}-from`,V!==void 0&&(V.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${be} ${i.fill} ${le}-from-tween`),w.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${be} ${i.fill} ${le}-to`,_.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${be} ${i.fill} ${le}`;let $e=De=>{De===Object(De)&&De.animationName!==le||(_.removeEventListener("animationend",$e),_.removeEventListener("animationcancel",$e),Z(),Pe.remove())};l.qMorphCancel=()=>{l.qMorphCancel=void 0,o=!0,$e()},_.qMorphCancel=()=>{_.qMorphCancel=void 0,o=!0,$e()},_.addEventListener("animationend",$e),_.addEventListener("animationcancel",$e),t=De=>o===!0||!_||!B||!w?!1:De===!0?($e(),!0):(r=r!==!0,be=be==="normal"?"reverse":"normal",B.style.animationDirection=be,V.style.animationDirection=be,w.style.animationDirection=be,_.style.animationDirection=be,!0)}};i.waitFor>0||i.waitFor==="transitionend"||i.waitFor===Object(i.waitFor)&&typeof i.waitFor.then=="function"?(i.waitFor>0?new Promise(de=>setTimeout(de,i.waitFor)):i.waitFor==="transitionend"?new Promise(de=>{let O=()=>{w!==null&&(clearTimeout(w),w=null),_&&(_.removeEventListener("transitionend",O),_.removeEventListener("transitioncancel",O)),de()},w=setTimeout(O,400);_.addEventListener("transitionend",O),_.addEventListener("transitioncancel",O)}):i.waitFor).then(Q).catch(()=>{typeof _.qMorphCancel=="function"&&_.qMorphCancel()}):Q()};return typeof e.onToggle=="function"&&e.onToggle(),requestAnimationFrame(E),_=>t(_)}var ol={},Pp=["duration","delay","easing","fill","classes","style","duration","resize","useCSS","hideFromClone","keepToClone","tween","tweenFromOpacity","tweenToOpacity","waitFor","onEnd"],Ap=["resize","useCSS","hideFromClone","keepToClone","tween"];function zr(e,t){e.clsAction!==t&&(e.clsAction=t,e.el.classList[t]("q-morph--invisible"))}function om(e){if(e.animating===!0||e.queue.length<2)return;let[t,o]=e.queue;e.animating=!0,t.animating=!0,o.animating=!0,zr(t,"remove"),zr(o,"remove");let r=fi({from:t.el,to:o.el,onToggle(){zr(t,"add"),zr(o,"remove")},...o.opts,onEnd(n,i){o.opts.onEnd!==void 0&&o.opts.onEnd(n,i),i!==!0&&(t.animating=!1,o.animating=!1,e.animating=!1,e.cancel=void 0,e.queue.shift(),om(e))}});e.cancel=()=>{r(!0),e.cancel=void 0}}function nm(e,t){let o=t.opts;Ap.forEach(r=>{o[r]=e[r]===!0})}function $p(e,t){let o=typeof e=="string"&&e.length!==0?e.split(":"):[];t.name=o[0],t.group=o[1],Object.assign(t.opts,{duration:isNaN(o[2])===!0?300:parseFloat(o[2]),waitFor:o[3]})}function Ep(e,t){e.group!==void 0&&(t.group=e.group),e.name!==void 0&&(t.name=e.name);let o=t.opts;Pp.forEach(r=>{e[r]!==void 0&&(o[r]=e[r])})}function Bp(e,t){if(t.name===e){let o=ol[t.group];o===void 0?(ol[t.group]={name:t.group,model:e,queue:[t],animating:!1},zr(t,"remove")):o.model!==e&&(o.model=e,o.queue.push(t),o.animating===!1&&o.queue.length===2&&om(o));return}t.animating===!1&&zr(t,"add")}function tm(e,t){let o;Object(t)===t?(o=""+t.model,Ep(t,e),nm(t,e)):o=""+t,o!==e.model?(e.model=o,Bp(o,e)):e.animating===!1&&e.clsAction!==void 0&&e.el.classList[e.clsAction]("q-morph--invisible")}var rm=Pt({name:"morph",mounted(e,t){let o={el:e,animating:!1,opts:{}};nm(t.modifiers,o),$p(t.arg,o),tm(o,t.value),e.__qmorph=o},updated(e,t){tm(e.__qmorph,t.value)},beforeUnmount(e){let t=e.__qmorph,o=ol[t.group];o!==void 0&&o.queue.indexOf(t)!==-1&&(o.queue=o.queue.filter(n=>n!==t),o.queue.length===0&&(o.cancel!==void 0&&o.cancel(),delete ol[t.group])),t.clsAction==="add"&&e.classList.remove("q-morph--invisible"),delete e.__qmorph}});var Fp={childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0};function im(e,t,o){t.handler=o,t.observer!==void 0&&t.observer.disconnect(),t.observer=new MutationObserver(r=>{typeof t.handler=="function"&&(t.handler(r)===!1||t.once===!0)&&am(e)}),t.observer.observe(e,t.opts)}function am(e){let t=e.__qmutation;t!==void 0&&(t.observer!==void 0&&t.observer.disconnect(),delete e.__qmutation)}var lm=Pt({name:"mutation",mounted(e,{modifiers:{once:t,...o},value:r}){let n={once:t,opts:Object.keys(o).length===0?Fp:o};im(e,n,r),e.__qmutation=n},updated(e,{oldValue:t,value:o}){let r=e.__qmutation;r!==void 0&&t!==o&&im(e,r,o)},beforeUnmount:am});var{passive:nl}=Je;function um(e,{value:t,oldValue:o}){if(typeof t!="function"){e.scrollTarget.removeEventListener("scroll",e.scroll,nl);return}e.handler=t,typeof o!="function"&&(e.scrollTarget.addEventListener("scroll",e.scroll,nl),e.scroll())}var sm=Pt({name:"scroll-fire",mounted(e,t){let o={scrollTarget:Et(e),scroll:Xt(()=>{let r,n;o.scrollTarget===window?(n=e.getBoundingClientRect().bottom,r=window.innerHeight):(n=Cn(e).top+Ro(e),r=Cn(o.scrollTarget).top+Ro(o.scrollTarget)),n>0&&n<r&&(o.scrollTarget.removeEventListener("scroll",o.scroll,nl),o.handler(e))},25)};um(o,t),e.__qscrollfire=o},updated(e,t){t.value!==t.oldValue&&um(e.__qscrollfire,t)},beforeUnmount(e){let t=e.__qscrollfire;t.scrollTarget.removeEventListener("scroll",t.scroll,nl),t.scroll.cancel(),delete e.__qscrollfire}});function cm(e,{value:t,oldValue:o}){if(typeof t!="function"){e.scrollTarget.removeEventListener("scroll",e.scroll,Je.passive);return}e.handler=t,typeof o!="function"&&e.scrollTarget.addEventListener("scroll",e.scroll,Je.passive)}var dm=Pt({name:"scroll",mounted(e,t){let o={scrollTarget:Et(e),scroll(){o.handler(eo(o.scrollTarget),un(o.scrollTarget))}};cm(o,t),e.__qscroll=o},updated(e,t){e.__qscroll!==void 0&&t.oldValue!==t.value&&cm(e.__qscroll,t)},beforeUnmount(e){let t=e.__qscroll;t.scrollTarget.removeEventListener("scroll",t.scroll,Je.passive),delete e.__qscroll}});var fm=Pt({name:"touch-hold",beforeMount(e,t){let{modifiers:o}=t;if(o.mouse!==!0&&Me.has.touch!==!0)return;let r={handler:t.value,noop:Ye,mouseStart(i){typeof r.handler=="function"&&Uo(i)===!0&&(dt(r,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),r.start(i,!0))},touchStart(i){if(i.target!==void 0&&typeof r.handler=="function"){let l=i.target;dt(r,"temp",[[l,"touchmove","move","passiveCapture"],[l,"touchcancel","end","notPassiveCapture"],[l,"touchend","end","notPassiveCapture"]]),r.start(i)}},start(i,l){r.origin=xt(i);let u=Date.now();Me.is.mobile===!0&&(document.body.classList.add("non-selectable"),Ot(),r.styleCleanup=d=>{r.styleCleanup=void 0;let f=()=>{document.body.classList.remove("non-selectable")};d===!0?(Ot(),setTimeout(f,10)):f()}),r.triggered=!1,r.sensitivity=l===!0?r.mouseSensitivity:r.touchSensitivity,r.timer=setTimeout(()=>{r.timer=void 0,Ot(),r.triggered=!0,r.handler({evt:i,touch:l!==!0,mouse:l===!0,position:r.origin,duration:Date.now()-u})},r.duration)},move(i){let{top:l,left:u}=xt(i);r.timer!==void 0&&(Math.abs(u-r.origin.left)>=r.sensitivity||Math.abs(l-r.origin.top)>=r.sensitivity)&&(clearTimeout(r.timer),r.timer=void 0)},end(i){qt(r,"temp"),r.styleCleanup!==void 0&&r.styleCleanup(r.triggered),r.triggered===!0?i!==void 0&&qe(i):r.timer!==void 0&&(clearTimeout(r.timer),r.timer=void 0)}},n=[600,5,7];if(typeof t.arg=="string"&&t.arg.length!==0&&t.arg.split(":").forEach((i,l)=>{let u=parseInt(i,10);u&&(n[l]=u)}),[r.duration,r.touchSensitivity,r.mouseSensitivity]=n,e.__qtouchhold=r,o.mouse===!0){let i=o.mouseCapture===!0||o.mousecapture===!0?"Capture":"";dt(r,"main",[[e,"mousedown","mouseStart",`passive${i}`]])}Me.has.touch===!0&&dt(r,"main",[[e,"touchstart","touchStart",`passive${o.capture===!0?"Capture":""}`],[e,"touchend","noop","notPassiveCapture"]])},updated(e,t){let o=e.__qtouchhold;o!==void 0&&t.oldValue!==t.value&&(typeof t.value!="function"&&o.end(),o.handler=t.value)},beforeUnmount(e){let t=e.__qtouchhold;t!==void 0&&(qt(t,"main"),qt(t,"temp"),t.timer!==void 0&&clearTimeout(t.timer),t.styleCleanup!==void 0&&t.styleCleanup(),delete e.__qtouchhold)}});var mm={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Lp=new RegExp(`^([\\d+]+|${Object.keys(mm).join("|")})$`,"i");function Vp(e,t){let{top:o,left:r}=xt(e);return Math.abs(r-t.left)>=7||Math.abs(o-t.top)>=7}var vm=Pt({name:"touch-repeat",beforeMount(e,{modifiers:t,value:o,arg:r}){let n=Object.keys(t).reduce((d,f)=>{if(Lp.test(f)===!0){let c=isNaN(parseInt(f,10))?mm[f.toLowerCase()]:parseInt(f,10);c>=0&&d.push(c)}return d},[]);if(t.mouse!==!0&&Me.has.touch!==!0&&n.length===0)return;let i=typeof r=="string"&&r.length!==0?r.split(":").map(d=>parseInt(d,10)):[0,600,300],l=i.length-1,u={keyboard:n,handler:o,noop:Ye,mouseStart(d){u.event===void 0&&typeof u.handler=="function"&&Uo(d)===!0&&(dt(u,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),u.start(d,!0))},keyboardStart(d){if(typeof u.handler=="function"&&Tt(d,n)===!0){if((i[0]===0||u.event!==void 0)&&(qe(d),e.focus(),u.event!==void 0))return;dt(u,"temp",[[document,"keyup","end","notPassiveCapture"],[document,"click","end","notPassiveCapture"]]),u.start(d,!1,!0)}},touchStart(d){if(d.target!==void 0&&typeof u.handler=="function"){let f=d.target;dt(u,"temp",[[f,"touchmove","move","passiveCapture"],[f,"touchcancel","end","notPassiveCapture"],[f,"touchend","end","notPassiveCapture"]]),u.start(d)}},start(d,f,c){c!==!0&&(u.origin=xt(d));function g(m){u.styleCleanup=void 0,document.documentElement.style.cursor="";let h=()=>{document.body.classList.remove("non-selectable")};m===!0?(Ot(),setTimeout(h,10)):h()}Me.is.mobile===!0&&(document.body.classList.add("non-selectable"),Ot(),u.styleCleanup=g),u.event={touch:f!==!0&&c!==!0,mouse:f===!0,keyboard:c===!0,startTime:Date.now(),repeatCount:0};let v=()=>{if(u.timer=void 0,u.event===void 0)return;u.event.repeatCount===0&&(u.event.evt=d,c===!0?u.event.keyCode=d.keyCode:u.event.position=xt(d),Me.is.mobile!==!0&&(document.documentElement.style.cursor="pointer",document.body.classList.add("non-selectable"),Ot(),u.styleCleanup=g)),u.event.duration=Date.now()-u.event.startTime,u.event.repeatCount+=1,u.handler(u.event);let m=l<u.event.repeatCount?l:u.event.repeatCount;u.timer=setTimeout(v,i[m])};i[0]===0?v():u.timer=setTimeout(v,i[0])},move(d){u.event!==void 0&&u.timer!==void 0&&Vp(d,u.origin)===!0&&(clearTimeout(u.timer),u.timer=void 0)},end(d){u.event!==void 0&&(u.styleCleanup!==void 0&&u.styleCleanup(!0),d!==void 0&&u.event.repeatCount>0&&qe(d),qt(u,"temp"),u.timer!==void 0&&(clearTimeout(u.timer),u.timer=void 0),u.event=void 0)}};if(e.__qtouchrepeat=u,t.mouse===!0){let d=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";dt(u,"main",[[e,"mousedown","mouseStart",`passive${d}`]])}if(Me.has.touch===!0&&dt(u,"main",[[e,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[e,"touchend","noop","passiveCapture"]]),n.length!==0){let d=t.keyCapture===!0||t.keycapture===!0?"Capture":"";dt(u,"main",[[e,"keydown","keyboardStart",`notPassive${d}`]])}},updated(e,{oldValue:t,value:o}){let r=e.__qtouchrepeat;r!==void 0&&t!==o&&(typeof o!="function"&&r.end(),r.handler=o)},beforeUnmount(e){let t=e.__qtouchrepeat;t!==void 0&&(t.timer!==void 0&&clearTimeout(t.timer),qt(t,"main"),qt(t,"temp"),t.styleCleanup!==void 0&&t.styleCleanup(),delete e.__qtouchrepeat)}});var vl={};Nr(vl,{AddressbarColor:()=>gm,AppFullscreen:()=>ym,AppVisibility:()=>xm,BottomSheet:()=>wm,Cookies:()=>Pm,Dark:()=>xi,Dialog:()=>$m,Loading:()=>Vm,LoadingBar:()=>Em,LocalStorage:()=>Wm,Meta:()=>Om,Notify:()=>jm,Platform:()=>qo,Screen:()=>Si,SessionStorage:()=>Gm});function mi(e,t=document.body){if(typeof e!="string")throw new TypeError("Expected a string as propName");if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue(`--q-${e}`).trim()||null}var il;function Dp(){return Me.is.winphone?"msapplication-navbutton-color":Me.is.safari?"apple-mobile-web-app-status-bar-style":"theme-color"}function zp(e){let t=document.getElementsByTagName("META");for(let o in t)if(t[o].name===e)return t[o]}function Op(e){il===void 0&&(il=Dp());let t=zp(il),o=t===void 0;o&&(t=document.createElement("meta"),t.setAttribute("name",il)),t.setAttribute("content",e),o&&document.head.appendChild(t)}var gm={set:Me.is.mobile===!0&&(Me.is.nativeMobile===!0||Me.is.winphone===!0||Me.is.safari===!0||Me.is.webkit===!0||Me.is.vivaldi===!0)?e=>{let t=e||mi("primary");Me.is.nativeMobile===!0&&window.StatusBar?window.StatusBar.backgroundColorByHexString(t):Op(t)}:Ye,install({$q:e}){e.addressbarColor=this,e.config.addressbarColor&&this.set(e.config.addressbarColor)}};var vi={};function Ip(e){Object.assign(Nt,{request:e,exit:e,toggle:e})}function pm(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||null}function bm(){let e=Nt.activeEl=Nt.isActive===!1?null:pm();Rs(e===null||e===document.documentElement?document.body:e)}function Np(){Nt.isActive=Nt.isActive===!1,bm()}function hm(e,t){try{let o=e[t]();return o===void 0?Promise.resolve():o}catch(o){return Promise.reject(o)}}var Nt=jt({isActive:!1,activeEl:null},{isCapable:!1,install({$q:e}){e.fullscreen=this}});vi.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find(e=>document.documentElement[e]!==void 0),Nt.isCapable=vi.request!==void 0,Nt.isCapable===!1?Ip(()=>Promise.reject("Not capable")):(Object.assign(Nt,{request(e){let t=e||document.documentElement,{activeEl:o}=Nt;return t===o?Promise.resolve():(o!==null&&t.contains(o)===!0?Nt.exit():Promise.resolve()).finally(()=>hm(t,vi.request))},exit(){return Nt.isActive===!0?hm(document,vi.exit):Promise.resolve()},toggle(e){return Nt.isActive===!0?Nt.exit():Nt.request(e)}}),vi.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find(e=>document[e]),Nt.isActive=!!pm(),Nt.isActive===!0&&bm(),["onfullscreenchange","onmsfullscreenchange","onwebkitfullscreenchange"].forEach(e=>{document[e]=Np}));var ym=Nt;var Sm=jt({appVisible:!0},{install({$q:e}){st(e,"appVisible",()=>this.appVisible)}});{let e,t;if(typeof document.hidden<"u"?(e="hidden",t="visibilitychange"):typeof document.msHidden<"u"?(e="msHidden",t="msvisibilitychange"):typeof document.webkitHidden<"u"&&(e="webkitHidden",t="webkitvisibilitychange"),t&&typeof document[e]<"u"){let o=()=>{Sm.appVisible=!document[e]};document.addEventListener(t,o,!1)}}var xm=Sm;var _m=A({name:"BottomSheetPlugin",props:{...Ce,title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(e,{emit:t}){let{proxy:o}=U(),r=we(e,o.$q),n=T(null);function i(){n.value.show()}function l(){n.value.hide()}function u(m){t("ok",m),l()}function d(){t("hide")}function f(){return e.actions.map(m=>{let h=m.avatar||m.img;return m.label===void 0?a(io,{class:"col-all",dark:r.value}):a("div",{class:["q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",m.class],style:m.style,tabindex:0,role:"listitem",onClick(){u(m)},onKeyup(C){C.keyCode===13&&u(m)}},[a("div",{class:"q-focus-helper"}),m.icon?a(Re,{name:m.icon,color:m.color}):h?a("img",{class:m.avatar?"q-bottom-sheet__avatar":"",src:h}):a("div",{class:"q-bottom-sheet__empty-icon"}),a("div",m.label)])})}function c(){return e.actions.map(m=>{let h=m.avatar||m.img;return m.label===void 0?a(io,{spaced:!0,dark:r.value}):a(No,{class:["q-bottom-sheet__item",m.classes],style:m.style,tabindex:0,clickable:!0,dark:r.value,onClick(){u(m)}},()=>[a(oo,{avatar:!0},()=>m.icon?a(Re,{name:m.icon,color:m.color}):h?a("img",{class:m.avatar?"q-bottom-sheet__avatar":"",src:h}):null),a(oo,()=>m.label)])})}function g(){let m=[];return e.title&&m.push(a(bo,{class:"q-dialog__title"},()=>e.title)),e.message&&m.push(a(bo,{class:"q-dialog__message"},()=>e.message)),m.push(e.grid===!0?a("div",{class:"row items-stretch justify-start",role:"list"},f()):a("div",{role:"list"},c())),m}function v(){return[a(hr,{class:[`q-bottom-sheet q-bottom-sheet--${e.grid===!0?"grid":"list"}`+(r.value===!0?" q-bottom-sheet--dark q-dark":""),e.cardClass],style:e.cardStyle},g)]}return Object.assign(o,{show:i,hide:l}),()=>a(Io,{ref:n,position:"bottom",onHide:d},v)}});function Cm(e,t){for(let o in t)o!=="spinner"&&Object(t[o])===t[o]?(e[o]=Object(e[o])!==e[o]?{}:{...e[o]},Cm(e[o],t[o])):e[o]=t[o]}function al(e,t,o){return r=>{let n,i,l=t===!0&&r.component!==void 0;if(l===!0){let{component:S,componentProps:b}=r;n=typeof S=="string"?o.component(S):S,i=b||{}}else{let{class:S,style:b,...p}=r;n=e,i=p,S!==void 0&&(p.cardClass=S),b!==void 0&&(p.cardStyle=b)}let u,d=!1,f=T(null),c=Ao(!1,"dialog"),g=S=>{if(f.value!==null&&f.value[S]!==void 0){f.value[S]();return}let b=u.$.subTree;if(b&&b.component){if(b.component.proxy&&b.component.proxy[S]){b.component.proxy[S]();return}if(b.component.subTree&&b.component.subTree.component&&b.component.subTree.component.proxy&&b.component.subTree.component.proxy[S]){b.component.subTree.component.proxy[S]();return}}console.error("[Quasar] Incorrectly defined Dialog component")},v=[],m=[],h={onOk(S){return v.push(S),h},onCancel(S){return m.push(S),h},onDismiss(S){return v.push(S),m.push(S),h},hide(){return g("hide"),h},update(S){if(u!==null){if(l===!0)Object.assign(i,S);else{let{class:b,style:p,...k}=S;b!==void 0&&(k.cardClass=b),p!==void 0&&(k.cardStyle=p),Cm(i,k)}u.$forceUpdate()}return h}},C=S=>{d=!0,v.forEach(b=>{b(S)})},y=()=>{q.unmount(c),ir(c),q=null,u=null,d!==!0&&m.forEach(S=>{S()})},q=on({name:"QGlobalDialog",setup:()=>()=>a(n,{...i,ref:f,onOk:C,onHide:y,onVnodeMounted(...S){typeof i.onVnodeMounted=="function"&&i.onVnodeMounted(...S),Ae(()=>g("show"))}})},o);return u=q.mount(c),h}}var wm={install({$q:e,parentApp:t}){e.bottomSheet=al(_m,!1,t),this.__installed!==!0&&(this.create=e.bottomSheet)}};function km(e){return encodeURIComponent(e)}function qm(e){return decodeURIComponent(e)}function Hp(e){return km(e===Object(e)?JSON.stringify(e):""+e)}function Qp(e){if(e==="")return e;e.indexOf('"')===0&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e=qm(e.replace(/\+/g," "));try{let t=JSON.parse(e);(t===Object(t)||Array.isArray(t)===!0)&&(e=t)}catch{}return e}function Tm(e){let t=new Date;return t.setMilliseconds(t.getMilliseconds()+e),t.toUTCString()}function jp(e){let t=0,o=e.match(/(\d+)d/),r=e.match(/(\d+)h/),n=e.match(/(\d+)m/),i=e.match(/(\d+)s/);return o&&(t+=o[1]*864e5),r&&(t+=r[1]*36e5),n&&(t+=n[1]*6e4),i&&(t+=i[1]*1e3),t===0?e:Tm(t)}function Mm(e,t,o={},r){let n,i;o.expires!==void 0&&(Object.prototype.toString.call(o.expires)==="[object Date]"?n=o.expires.toUTCString():typeof o.expires=="string"?n=jp(o.expires):(i=parseFloat(o.expires),n=isNaN(i)===!1?Tm(i*864e5):o.expires));let l=`${km(e)}=${Hp(t)}`,u=[l,n!==void 0?"; Expires="+n:"",o.path?"; Path="+o.path:"",o.domain?"; Domain="+o.domain:"",o.sameSite?"; SameSite="+o.sameSite:"",o.httpOnly?"; HttpOnly":"",o.secure?"; Secure":"",o.other?"; "+o.other:""].join("");if(r){r.req.qCookies?r.req.qCookies.push(u):r.req.qCookies=[u],r.res.setHeader("Set-Cookie",r.req.qCookies);let d=r.req.headers.cookie||"";if(n!==void 0&&i<0){let f=ll(e,r);f!==void 0&&(d=d.replace(`${e}=${f}; `,"").replace(`; ${e}=${f}`,"").replace(`${e}=${f}`,""))}else d=d?`${l}; ${d}`:u;r.req.headers.cookie=d}else document.cookie=u}function ll(e,t){let o=t?t.req.headers:document,r=o.cookie?o.cookie.split("; "):[],n=r.length,i=e?null:{},l=0,u,d,f;for(;l<n;l++)if(u=r[l].split("="),d=qm(u.shift()),f=u.join("="),!e)i[d]=f;else if(e===d){i=Qp(f);break}return i}function Up(e,t,o){Mm(e,"",{expires:-1,...t},o)}function Kp(e,t){return ll(e,t)!==null}function Wp(e){return{get:t=>ll(t,e),set:(t,o,r)=>Mm(t,o,r,e),has:t=>Kp(t,e),remove:(t,o)=>Up(t,o,e),getAll:()=>ll(null,e)}}var Rm={install({$q:e,ssrContext:t}){e.cookies=this}};Object.assign(Rm,Wp());var Pm=Rm;var Am=A({name:"DialogPlugin",props:{...Ce,title:String,message:String,prompt:Object,options:Object,progress:[Boolean,Object],html:Boolean,ok:{type:[String,Object,Boolean],default:!0},cancel:[String,Object,Boolean],focus:{type:String,default:"ok",validator:e=>["ok","cancel","none"].includes(e)},stackButtons:Boolean,color:String,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(e,{emit:t}){let{proxy:o}=U(),{$q:r}=o,n=we(e,r),i=T(null),l=T(e.prompt!==void 0?e.prompt.model:e.options!==void 0?e.options.model:void 0),u=s(()=>"q-dialog-plugin"+(n.value===!0?" q-dialog-plugin--dark q-dark":"")+(e.progress!==!1?" q-dialog-plugin--progress":"")),d=s(()=>e.color||(n.value===!0?"amber":"primary")),f=s(()=>e.progress===!1?null:ct(e.progress)===!0?{component:e.progress.spinner||Ct,props:{color:e.progress.color||d.value}}:{component:Ct,props:{color:d.value}}),c=s(()=>e.prompt!==void 0||e.options!==void 0),g=s(()=>{if(c.value!==!0)return{};let{model:R,isValid:N,items:X,...M}=e.prompt!==void 0?e.prompt:e.options;return M}),v=s(()=>ct(e.ok)===!0||e.ok===!0?r.lang.label.ok:e.ok),m=s(()=>ct(e.cancel)===!0||e.cancel===!0?r.lang.label.cancel:e.cancel),h=s(()=>e.prompt!==void 0?e.prompt.isValid!==void 0&&e.prompt.isValid(l.value)!==!0:e.options!==void 0?e.options.isValid!==void 0&&e.options.isValid(l.value)!==!0:!1),C=s(()=>({color:d.value,label:v.value,ripple:!1,disable:h.value,...ct(e.ok)===!0?e.ok:{flat:!0},"data-autofocus":e.focus==="ok"&&c.value!==!0||void 0,onClick:b})),y=s(()=>({color:d.value,label:m.value,ripple:!1,...ct(e.cancel)===!0?e.cancel:{flat:!0},"data-autofocus":e.focus==="cancel"&&c.value!==!0||void 0,onClick:p}));j(()=>e.prompt&&e.prompt.model,$),j(()=>e.options&&e.options.model,$);function q(){i.value.show()}function S(){i.value.hide()}function b(){t("ok",so(l.value)),S()}function p(){S()}function k(){t("hide")}function $(R){l.value=R}function F(R){h.value!==!0&&e.prompt.type!=="textarea"&&Tt(R,13)===!0&&b()}function D(R,N){return e.html===!0?a(bo,{class:R,innerHTML:N}):a(bo,{class:R},()=>N)}function L(){return[a(Br,{color:d.value,dense:!0,autofocus:!0,dark:n.value,...g.value,modelValue:l.value,"onUpdate:modelValue":$,onKeyup:F})]}function B(){return[a(Da,{color:d.value,options:e.options.items,dark:n.value,...g.value,modelValue:l.value,"onUpdate:modelValue":$})]}function V(){let R=[];return e.cancel&&R.push(a(Oe,y.value)),e.ok&&R.push(a(Oe,C.value)),a(Ui,{class:e.stackButtons===!0?"items-end":"",vertical:e.stackButtons,align:"right"},()=>R)}function E(){let R=[];return e.title&&R.push(D("q-dialog__title",e.title)),e.progress!==!1&&R.push(a(bo,{class:"q-dialog__progress"},()=>a(f.value.component,f.value.props))),e.message&&R.push(D("q-dialog__message",e.message)),e.prompt!==void 0?R.push(a(bo,{class:"scroll q-dialog-plugin__form"},L)):e.options!==void 0&&R.push(a(io,{dark:n.value}),a(bo,{class:"scroll q-dialog-plugin__form"},B),a(io,{dark:n.value})),(e.ok||e.cancel)&&R.push(V()),R}function _(){return[a(hr,{class:[u.value,e.cardClass],style:e.cardStyle,dark:n.value},E)]}return Object.assign(o,{show:q,hide:S}),()=>a(Io,{ref:i,onHide:k},_)}});var $m={install({$q:e,parentApp:t}){e.dialog=al(Am,!0,t),this.__installed!==!0&&(this.create=e.dialog)}};var ul=T(null),mu=jt({isActive:!1},{start:Ye,stop:Ye,increment:Ye,setDefaults:Ye,install({$q:e,parentApp:t}){if(e.loadingBar=this,this.__installed===!0){e.config.loadingBar!==void 0&&this.setDefaults(e.config.loadingBar);return}let o=T(e.config.loadingBar!==void 0?{...e.config.loadingBar}:{});function r(){mu.isActive=!0}function n(){mu.isActive=!1}let i=Ao("q-loading-bar");on({name:"LoadingBar",devtools:{hide:!0},setup:()=>()=>a(Ai,{...o.value,onStart:r,onStop:n,ref:ul})},t).mount(i),Object.assign(this,{start(l){ul.value.start(l)},stop(){ul.value.stop()},increment(){ul.value.increment.apply(null,arguments)},setDefaults(l){ct(l)===!0&&Object.assign(o.value,l)}})}}),Em=mu;var Or,vu,Bm=0,zn=null,Dt={},On={},Fm={group:"__default_quasar_group__",delay:0,message:!1,html:!1,spinnerSize:80,spinnerColor:"",messageColor:"",backgroundColor:"",boxClass:"",spinner:Ct,customClass:""},Lm={...Fm};function Yp(e){if(e&&e.group!==void 0&&On[e.group]!==void 0)return Object.assign(On[e.group],e);let t=ct(e)===!0&&e.ignoreDefaults===!0?{...Fm,...e}:{...Lm,...e};return On[t.group]=t,t}var xo=jt({isActive:!1},{show(e){Dt=Yp(e);let{group:t}=Dt;return xo.isActive=!0,Or!==void 0?(Dt.uid=Bm,vu.$forceUpdate()):(Dt.uid=++Bm,zn!==null&&clearTimeout(zn),zn=setTimeout(()=>{zn=null;let o=Ao("q-loading");Or=on({name:"QLoading",setup(){je(()=>{ui(!0)});function r(){xo.isActive!==!0&&Or!==void 0&&(ui(!1),Or.unmount(o),ir(o),Or=void 0,vu=void 0)}function n(){if(xo.isActive!==!0)return null;let i=[a(Dt.spinner,{class:"q-loading__spinner",color:Dt.spinnerColor,size:Dt.spinnerSize})];return Dt.message&&i.push(a("div",{class:"q-loading__message"+(Dt.messageColor?` text-${Dt.messageColor}`:""),[Dt.html===!0?"innerHTML":"textContent"]:Dt.message})),a("div",{class:"q-loading fullscreen flex flex-center z-max "+Dt.customClass.trim(),key:Dt.uid},[a("div",{class:"q-loading__backdrop"+(Dt.backgroundColor?` bg-${Dt.backgroundColor}`:"")}),a("div",{class:"q-loading__box column items-center "+Dt.boxClass},i)])}return()=>a(lt,{name:"q-transition--fade",appear:!0,onAfterLeave:r},n)}},xo.__parentApp),vu=Or.mount(o)},Dt.delay)),o=>{if(o===void 0||Object(o)!==o){xo.hide(t);return}xo.show({...o,group:t})}},hide(e){if(xo.isActive===!0){if(e===void 0)On={};else{if(On[e]===void 0)return;{delete On[e];let t=Object.keys(On);if(t.length!==0){let o=t[t.length-1];xo.show({group:o});return}}}zn!==null&&(clearTimeout(zn),zn=null),xo.isActive=!1}},setDefaults(e){ct(e)===!0&&Object.assign(Lm,e)},install({$q:e,parentApp:t}){e.loading=this,xo.__parentApp=t,e.config.loading!==void 0&&this.setDefaults(e.config.loading)}}),Vm=xo;var sl=null,gu,_o=[];function Xp(e){e.title&&(e.title=e.titleTemplate?e.titleTemplate(e.title):e.title,delete e.titleTemplate),[["meta","content"],["link","href"]].forEach(t=>{let o=e[t[0]],r=t[1];for(let n in o){let i=o[n];i.template&&(Object.keys(i).length===1?delete o[n]:(i[r]=i.template(i[r]||""),delete i.template))}})}function Gp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let o in e)if(e[o]!==t[o])return!0}function Dm(e){return["class","style"].includes(e)===!1}function zm(e){return["lang","dir"].includes(e)===!1}function Zp(e,t){let o={},r={};return e===void 0?{add:t,remove:r}:(e.title!==t.title&&(o.title=t.title),["meta","link","script","htmlAttr","bodyAttr"].forEach(n=>{let i=e[n],l=t[n];if(r[n]=[],i==null){o[n]=l;return}o[n]={};for(let u in i)l.hasOwnProperty(u)===!1&&r[n].push(u);for(let u in l)i.hasOwnProperty(u)===!1?o[n][u]=l[u]:Gp(i[u],l[u])===!0&&(r[n].push(u),o[n][u]=l[u])}),{add:o,remove:r})}function Jp({add:e,remove:t}){e.title&&(document.title=e.title),Object.keys(t).length!==0&&(["meta","link","script"].forEach(o=>{t[o].forEach(r=>{document.head.querySelector(`${o}[data-qmeta="${r}"]`).remove()})}),t.htmlAttr.filter(zm).forEach(o=>{document.documentElement.removeAttribute(o)}),t.bodyAttr.filter(Dm).forEach(o=>{document.body.removeAttribute(o)})),["meta","link","script"].forEach(o=>{let r=e[o];for(let n in r){let i=document.createElement(o);for(let l in r[n])l!=="innerHTML"&&i.setAttribute(l,r[n][l]);i.setAttribute("data-qmeta",n),o==="script"&&(i.innerHTML=r[n].innerHTML||""),document.head.appendChild(i)}}),Object.keys(e.htmlAttr).filter(zm).forEach(o=>{document.documentElement.setAttribute(o,e.htmlAttr[o]||"")}),Object.keys(e.bodyAttr).filter(Dm).forEach(o=>{document.body.setAttribute(o,e.bodyAttr[o]||"")})}function e0(){sl=null;let e={title:"",titleTemplate:null,meta:{},link:{},script:{},htmlAttr:{},bodyAttr:{}};for(let t=0;t<_o.length;t++){let{active:o,val:r}=_o[t];o===!0&&vn(!0,e,r)}Xp(e),Jp(Zp(gu,e)),gu=e}function ao(){sl!==null&&clearTimeout(sl),sl=setTimeout(e0,50)}var Om={install(e){this.__installed!==!0&&kt.value===!0&&(gu=window.__Q_META__,document.getElementById("qmeta-init").remove())}};var t0=0,cl={},dl={},Co={},Nm={},o0=/^\s*$/,Hm=[],n0=[void 0,null,!0,!1,""],hu=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],r0=["top-left","top-right","bottom-left","bottom-right"],Ir={positive:{icon:e=>e.iconSet.type.positive,color:"positive"},negative:{icon:e=>e.iconSet.type.negative,color:"negative"},warning:{icon:e=>e.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:e=>e.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function Qm(e,t,o){if(!e)return gi("parameter required");let r,n={textColor:"white"};if(e.ignoreDefaults!==!0&&Object.assign(n,cl),ct(e)===!1&&(n.type&&Object.assign(n,Ir[n.type]),e={message:e}),Object.assign(n,Ir[e.type||n.type],e),typeof n.icon=="function"&&(n.icon=n.icon(t)),n.spinner?(n.spinner===!0&&(n.spinner=Ct),n.spinner=Hr(n.spinner)):n.spinner=!1,n.meta={hasMedia:!!(n.spinner!==!1||n.icon||n.avatar),hasText:Im(n.message)||Im(n.caption)},n.position){if(hu.includes(n.position)===!1)return gi("wrong position",e)}else n.position="bottom";if(n0.includes(n.timeout)===!0)n.timeout=5e3;else{let d=Number(n.timeout);if(isNaN(d)||d<0)return gi("wrong timeout",e);n.timeout=Number.isFinite(d)?d:0}n.timeout===0?n.progress=!1:n.progress===!0&&(n.meta.progressClass="q-notification__progress"+(n.progressClass?` ${n.progressClass}`:""),n.meta.progressStyle={animationDuration:`${n.timeout+1e3}ms`});let i=(Array.isArray(e.actions)===!0?e.actions:[]).concat(e.ignoreDefaults!==!0&&Array.isArray(cl.actions)===!0?cl.actions:[]).concat(Ir[e.type]!==void 0&&Array.isArray(Ir[e.type].actions)===!0?Ir[e.type].actions:[]),{closeBtn:l}=n;if(l&&i.push({label:typeof l=="string"?l:t.lang.label.close}),n.actions=i.map(({handler:d,noDismiss:f,...c})=>({flat:!0,...c,onClick:typeof d=="function"?()=>{d(),f!==!0&&u()}:()=>{u()}})),n.multiLine===void 0&&(n.multiLine=n.actions.length>1),Object.assign(n.meta,{class:`q-notification row items-stretch q-notification--${n.multiLine===!0?"multi-line":"standard"}`+(n.color!==void 0?` bg-${n.color}`:"")+(n.textColor!==void 0?` text-${n.textColor}`:"")+(n.classes!==void 0?` ${n.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(n.multiLine===!0?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(n.multiLine===!0?"":" col"),leftClass:n.meta.hasText===!0?"additional":"single",attrs:{role:"alert",...n.attrs}}),n.group===!1?(n.group=void 0,n.meta.group=void 0):((n.group===void 0||n.group===!0)&&(n.group=[n.message,n.caption,n.multiline].concat(n.actions.map(d=>`${d.label}*${d.icon}`)).join("|")),n.meta.group=n.group+"|"+n.position),n.actions.length===0?n.actions=void 0:n.meta.actionsClass="q-notification__actions row items-center "+(n.multiLine===!0?"justify-end":"col-auto")+(n.meta.hasMedia===!0?" q-notification__actions--with-media":""),o!==void 0){o.notif.meta.timer&&(clearTimeout(o.notif.meta.timer),o.notif.meta.timer=void 0),n.meta.uid=o.notif.meta.uid;let d=Co[n.position].value.indexOf(o.notif);Co[n.position].value[d]=n}else{let d=dl[n.meta.group];if(d===void 0){if(n.meta.uid=t0++,n.meta.badge=1,["left","right","center"].indexOf(n.position)!==-1)Co[n.position].value.splice(Math.floor(Co[n.position].value.length/2),0,n);else{let f=n.position.indexOf("top")!==-1?"unshift":"push";Co[n.position].value[f](n)}n.group!==void 0&&(dl[n.meta.group]=n)}else{if(d.meta.timer&&(clearTimeout(d.meta.timer),d.meta.timer=void 0),n.badgePosition!==void 0){if(r0.includes(n.badgePosition)===!1)return gi("wrong badgePosition",e)}else n.badgePosition=`top-${n.position.indexOf("left")!==-1?"right":"left"}`;n.meta.uid=d.meta.uid,n.meta.badge=d.meta.badge+1,n.meta.badgeClass=`q-notification__badge q-notification__badge--${n.badgePosition}`+(n.badgeColor!==void 0?` bg-${n.badgeColor}`:"")+(n.badgeTextColor!==void 0?` text-${n.badgeTextColor}`:"")+(n.badgeClass?` ${n.badgeClass}`:"");let f=Co[n.position].value.indexOf(d);Co[n.position].value[f]=dl[n.meta.group]=n}}let u=()=>{i0(n),r=void 0};if(n.timeout>0&&(n.meta.timer=setTimeout(()=>{n.meta.timer=void 0,u()},n.timeout+1e3)),n.group!==void 0)return d=>{d!==void 0?gi("trying to update a grouped one which is forbidden",e):u()};if(r={dismiss:u,config:e,notif:n},o!==void 0){Object.assign(o,r);return}return d=>{if(r!==void 0)if(d===void 0)r.dismiss();else{let f=Object.assign({},r.config,d,{group:!1,position:n.position});Qm(f,t,r)}}}function i0(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);let t=Co[e.position].value.indexOf(e);if(t!==-1){e.group!==void 0&&delete dl[e.meta.group];let o=Hm[""+e.meta.uid];if(o){let{width:r,height:n}=getComputedStyle(o);o.style.left=`${o.offsetLeft}px`,o.style.width=r,o.style.height=n}Co[e.position].value.splice(t,1),typeof e.onDismiss=="function"&&e.onDismiss()}}function Im(e){return e!=null&&o0.test(e)!==!0}function gi(e,t){return console.error(`Notify: ${e}`,t),!1}function a0(){return A({name:"QNotifications",devtools:{hide:!0},setup(){return()=>a("div",{class:"q-notifications"},hu.map(e=>a($u,{key:e,class:Nm[e],tag:"div",name:`q-notification--${e}`},()=>Co[e].value.map(t=>{let o=t.meta,r=[];if(o.hasMedia===!0&&(t.spinner!==!1?r.push(a(t.spinner,{class:"q-notification__spinner q-notification__spinner--"+o.leftClass,color:t.spinnerColor,size:t.spinnerSize})):t.icon?r.push(a(Re,{class:"q-notification__icon q-notification__icon--"+o.leftClass,name:t.icon,color:t.iconColor,size:t.iconSize,role:"img"})):t.avatar&&r.push(a(Ei,{class:"q-notification__avatar q-notification__avatar--"+o.leftClass},()=>a("img",{src:t.avatar,"aria-hidden":"true"})))),o.hasText===!0){let i,l={class:"q-notification__message col"};if(t.html===!0)l.innerHTML=t.caption?`<div>${t.message}</div><div class="q-notification__caption">${t.caption}</div>`:t.message;else{let u=[t.message];i=t.caption?[a("div",u),a("div",{class:"q-notification__caption"},[t.caption])]:u}r.push(a("div",l,i))}let n=[a("div",{class:o.contentClass},r)];return t.progress===!0&&n.push(a("div",{key:`${o.uid}|p|${o.badge}`,class:o.progressClass,style:o.progressStyle})),t.actions!==void 0&&n.push(a("div",{class:o.actionsClass},t.actions.map(i=>a(Oe,i)))),o.badge>1&&n.push(a("div",{key:`${o.uid}|${o.badge}`,class:t.meta.badgeClass,style:t.badgeStyle},[o.badge])),a("div",{ref:i=>{Hm[""+o.uid]=i},key:o.uid,class:o.class,...o.attrs},[a("div",{class:o.wrapperClass},n)])}))))}})}var jm={setDefaults(e){ct(e)===!0&&Object.assign(cl,e)},registerType(e,t){ct(t)===!0&&(Ir[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create=o=>Qm(o,e),e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,e.config.notify!==void 0&&this.setDefaults(e.config.notify),this.__installed!==!0){hu.forEach(r=>{Co[r]=T([]);let n=["left","center","right"].includes(r)===!0?"center":r.indexOf("top")!==-1?"top":"bottom",i=r.indexOf("left")!==-1?"start":r.indexOf("right")!==-1?"end":"center",l=["left","right"].includes(r)?`items-${r==="left"?"start":"end"} justify-center`:r==="center"?"flex-center":`items-${i}`;Nm[r]=`q-notifications__list q-notifications__list--${n} fixed column no-wrap ${l}`});let o=Ao("q-notify");on(a0(),t).mount(o)}}};function l0(e){return Yo(e)===!0?"__q_date|"+e.toUTCString():wl(e)===!0?"__q_expr|"+e.source:typeof e=="number"?"__q_numb|"+e:typeof e=="boolean"?"__q_bool|"+(e?"1":"0"):typeof e=="string"?"__q_strn|"+e:typeof e=="function"?"__q_strn|"+e.toString():e===Object(e)?"__q_objt|"+JSON.stringify(e):e}function u0(e){if(e.length<9)return e;let o=e.substring(0,8),r=e.substring(9);switch(o){case"__q_date":return new Date(r);case"__q_expr":return new RegExp(r);case"__q_numb":return Number(r);case"__q_bool":return r==="1";case"__q_strn":return""+r;case"__q_objt":return JSON.parse(r);default:return e}}function fl(){let e=()=>null;return{has:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:Ye,remove:Ye,clear:Ye,isEmpty:()=>!0}}function ml(e){let t=window[e+"Storage"],o=r=>{let n=t.getItem(r);return n?u0(n):null};return{has:r=>t.getItem(r)!==null,getLength:()=>t.length,getItem:o,getIndex:r=>r<t.length?o(t.key(r)):null,getKey:r=>r<t.length?t.key(r):null,getAll:()=>{let r,n={},i=t.length;for(let l=0;l<i;l++)r=t.key(l),n[r]=o(r);return n},getAllKeys:()=>{let r=[],n=t.length;for(let i=0;i<n;i++)r.push(t.key(i));return r},set:(r,n)=>{t.setItem(r,l0(n))},remove:r=>{t.removeItem(r)},clear:()=>{t.clear()},isEmpty:()=>t.length===0}}var Um=Me.has.webStorage===!1?fl():ml("local"),Km={install({$q:e}){e.localStorage=Um}};Object.assign(Km,Um);var Wm=Km;var Ym=Me.has.webStorage===!1?fl():ml("session"),Xm={install({$q:e}){e.sessionStorage=Ym}};Object.assign(Xm,Ym);var Gm=Xm;var bu={};Nr(bu,{EventBus:()=>hi,clone:()=>Jo,colors:()=>ec,copyToClipboard:()=>Zm,createMetaMixin:()=>Jm,createUploaderComponent:()=>Ja,date:()=>vc,debounce:()=>Xt,dom:()=>_s,event:()=>Du,exportFile:()=>tv,extend:()=>vn,format:()=>ns,frameDebounce:()=>Lr,getCssVar:()=>mi,is:()=>Zu,morph:()=>fi,noop:()=>Ye,openURL:()=>nv,patterns:()=>Js,runSequentialPromises:()=>pu,scroll:()=>$s,setCssVar:()=>jr,throttle:()=>Gn,uid:()=>Xo});function s0(e){let t=document.createElement("textarea");t.value=e,t.contentEditable="true",t.style.position="fixed";let o=()=>{};cr(o),document.body.appendChild(t),t.focus(),t.select();let r=document.execCommand("copy");return t.remove(),Rn(o),r}function Zm(e){return navigator.clipboard!==void 0?navigator.clipboard.writeText(e):new Promise((t,o)=>{let r=s0(e);r?t(!0):o(r)})}var Jm=e=>{let t={activated(){this.__qMeta.active=!0,ao()},deactivated(){this.__qMeta.active=!1,ao()},unmounted(){_o.splice(_o.indexOf(this.__qMeta),1),ao(),this.__qMeta=void 0}};return typeof e=="function"?Object.assign(t,{computed:{__qMetaOptions(){return e.call(this)||{}}},watch:{__qMetaOptions(o){this.__qMeta.val=o,this.__qMeta.active===!0&&ao()}},created(){this.__qMeta={active:!0,val:this.__qMetaOptions},_o.push(this.__qMeta),ao()}}):t.created=function(){this.__qMeta={active:!0,val:e},_o.push(this.__qMeta),ao()},t};var hi=class{constructor(){this.__stack={}}on(t,o,r){return(this.__stack[t]||(this.__stack[t]=[])).push({fn:o,ctx:r}),this}once(t,o,r){let n=(...i)=>{this.off(t,n),o.apply(r,i)};return n.__callback=o,this.on(t,n,r)}emit(t){let o=this.__stack[t];if(o!==void 0){let r=[].slice.call(arguments,1);o.forEach(n=>{n.fn.apply(n.ctx,r)})}return this}off(t,o){let r=this.__stack[t];if(r===void 0)return this;if(o===void 0)return delete this.__stack[t],this;let n=r.filter(i=>i.fn!==o&&i.fn.__callback!==o);return n.length!==0?this.__stack[t]=n:delete this.__stack[t],this}};function ev(e){setTimeout(()=>{window.URL.revokeObjectURL(e.href)},1e4),e.remove()}function tv(e,t,o={}){let{mimeType:r,byteOrderMark:n,encoding:i}=typeof o=="string"?{mimeType:o}:o,l=i!==void 0?new TextEncoder(i).encode([t]):t,u=n!==void 0?[n,l]:[l],d=new Blob(u,{type:r||"application/octet-stream"}),f=document.createElement("a");f.href=window.URL.createObjectURL(d),f.setAttribute("download",e),typeof f.download>"u"&&f.setAttribute("target","_blank"),f.classList.add("hidden"),f.style.position="fixed",document.body.appendChild(f);try{return f.click(),ev(f),!0}catch(c){return ev(f),c}}function c0(e){let t=Object.assign({noopener:!0},e),o=[];for(let r in t){let n=t[r];n===!0?o.push(r):(co(n)||typeof n=="string"&&n!=="")&&o.push(r+"="+n)}return o.join(",")}function ov(e,t,o){let r=window.open;if(qo.is.cordova===!0){if(cordova!==void 0&&cordova.InAppBrowser!==void 0&&cordova.InAppBrowser.open!==void 0)r=cordova.InAppBrowser.open;else if(navigator!==void 0&&navigator.app!==void 0)return navigator.app.loadUrl(e,{openExternal:!0})}let n=r(e,"_blank",c0(o));if(n)return qo.is.desktop&&n.focus(),n;t&&t()}var nv=(e,t,o)=>{if(qo.is.ios===!0&&window.SafariViewController!==void 0){window.SafariViewController.isAvailable(r=>{r?window.SafariViewController.show({url:e},Ye,t):ov(e,t,o)});return}return ov(e,t,o)};function d0(e){let t=Array.isArray(e);if(t===!0){let n=e.length;return{isList:t,totalJobs:n,resultAggregator:Array(n).fill(null)}}let o=Object.keys(e),r={};return o.forEach(n=>{r[n]=null}),{isList:t,totalJobs:o.length,resultAggregator:r,resultKeys:o}}function pu(e,{threadsNumber:t=1,abortOnFail:o=!0}={}){let r=-1,n=!1,{isList:i,totalJobs:l,resultAggregator:u,resultKeys:d}=d0(e),f=()=>new Promise((g,v)=>{function m(){let h=++r;if(n===!0||h>=l){g();return}let C=i===!0?h:d[h];e[C](u).then(y=>{if(n===!0){g();return}u[C]={key:C,status:"fulfilled",value:y},setTimeout(m)}).catch(y=>{if(n===!0){g();return}let q={key:C,status:"rejected",reason:y};if(u[C]=q,o===!0){n=!0,v({...q,resultAggregator:u});return}setTimeout(m)})}m()}),c=Array(t).fill(f());return Promise.all(c).then(()=>u)}var xu={};Nr(xu,{useDialogPluginComponent:()=>iv,useFormChild:()=>wa,useMeta:()=>av,useQuasar:()=>Su});function yu(){let{emit:e,proxy:t}=U(),o=T(null);function r(){o.value.show()}function n(){o.value.hide()}function i(u){e("ok",u),n()}function l(){e("hide")}return Object.assign(t,{show:r,hide:n}),{dialogRef:o,onDialogHide:l,onDialogOK:i,onDialogCancel:n}}var rv=["ok","hide"];yu.emits=rv;yu.emitsObject=Za(rv);var iv=yu;function av(e){{let t={active:!0};if(typeof e=="function"){let o=s(e);t.val=o.value,j(o,r=>{t.val=r,t.active===!0&&ao()})}else t.val=e;_o.push(t),ao(),Ht(()=>{t.active=!0,ao()}),Bt(()=>{t.active=!1,ao()}),Hn(()=>{_o.splice(_o.indexOf(t),1),ao()})}}function Su(){return ht(Ci)}window.Vue===void 0&&console.error("[ Quasar ] Vue is required to run. Please add a script tag for it before loading Quasar.");window.Quasar={version:"2.14.6",install(e,t){ts(e,{components:el,directives:rl,plugins:vl,...t})},lang:xn,iconSet:_i,...el,...rl,...vl,...xu,...bu};})();