@tequila99/githuman 0.2.3 → 0.3.0

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 (246) hide show
  1. package/README.md +26 -0
  2. package/dist/cli/commands/export.js +2 -1
  3. package/dist/cli/server-runtime.js +13 -1
  4. package/dist/cli/startup-message.js +3 -2
  5. package/dist/server/adapters/agents/event-mapper.js +140 -0
  6. package/dist/server/app.js +21 -12
  7. package/dist/server/config/agents.js +141 -0
  8. package/dist/server/errors/agents.js +12 -0
  9. package/dist/server/errors/comments.js +2 -0
  10. package/dist/server/errors/export.js +2 -0
  11. package/dist/server/errors/http.js +4 -0
  12. package/dist/server/errors/reviews.js +3 -0
  13. package/dist/server/hooks/agents/local-origin.js +33 -0
  14. package/dist/server/repositories/review.repo.js +1 -3
  15. package/dist/server/routes/agent.js +135 -0
  16. package/dist/server/routes/comments.js +17 -67
  17. package/dist/server/routes/diff.js +5 -6
  18. package/dist/server/routes/events.js +6 -1
  19. package/dist/server/routes/export.js +6 -15
  20. package/dist/server/routes/git.js +12 -21
  21. package/dist/server/routes/reviews.js +11 -43
  22. package/dist/server/services/agent/agent-session.js +497 -0
  23. package/dist/server/services/agent/context-builder.js +137 -0
  24. package/dist/server/services/agent/file-index.js +58 -0
  25. package/dist/server/services/agent/session-registry.js +100 -0
  26. package/dist/server/services/comment.service.js +1 -2
  27. package/dist/server/services/diff.service.js +2 -1
  28. package/dist/server/services/export.service.js +1 -2
  29. package/dist/server/services/git.service.js +6 -7
  30. package/dist/server/services/review.service.js +3 -3
  31. package/dist/server/utils/executable.js +26 -0
  32. package/dist/server/utils/file-name.js +6 -0
  33. package/dist/server/utils/sse.js +11 -0
  34. package/dist/server/utils/text.js +29 -0
  35. package/dist/shared/agents/chat-names.js +17 -0
  36. package/dist/shared/agents/constants.js +6 -0
  37. package/dist/shared/agents/context-format.js +17 -0
  38. package/dist/shared/agents/file-search.js +48 -0
  39. package/dist/shared/agents/schemas.js +51 -0
  40. package/dist/shared/agents/types.js +11 -0
  41. package/dist/shared/app/types.js +1 -0
  42. package/dist/shared/comments/types.js +1 -0
  43. package/dist/shared/diff/types.js +4 -0
  44. package/dist/shared/{types.js → events/types.js} +0 -3
  45. package/dist/shared/git/types.js +1 -0
  46. package/dist/shared/http/types.js +1 -0
  47. package/dist/shared/network/loopback.js +4 -0
  48. package/dist/shared/reviews/types.js +1 -0
  49. package/dist/shared/utils/error-message.js +3 -0
  50. package/dist/shared/utils/guards.js +4 -0
  51. package/dist/web/assets/AppPage-CSb8txs5.js +1 -0
  52. package/dist/web/assets/CreateReviewFabButton-B18DLuH6.js +1 -0
  53. package/dist/web/assets/CreateReviewFabButton-Cufd8hVJ.css +1 -0
  54. package/dist/web/assets/{ErrorNotFound-BuL12Ld8.js → ErrorNotFound-B5uYICL4.js} +1 -1
  55. package/dist/web/assets/IndexPage-B-hkrnvt.css +1 -0
  56. package/dist/web/assets/IndexPage-Cm_ssBeC.js +1 -0
  57. package/dist/web/assets/MainLayout-ChxXEt_Q.css +1 -0
  58. package/dist/web/assets/MainLayout-ClBPF545.js +7 -0
  59. package/dist/web/assets/QBtn-E32fUOKx.js +1 -0
  60. package/dist/web/assets/QItemLabel-Co6oCEUr.js +1 -0
  61. package/dist/web/assets/QMenu-BZ1eK_rS.js +1 -0
  62. package/dist/web/assets/QSelect-D1V4tbDr.js +1 -0
  63. package/dist/web/assets/ReviewDetailPage-BWa3EEkv.css +1 -0
  64. package/dist/web/assets/ReviewDetailPage-Ct0hXwZL.js +1 -0
  65. package/dist/web/assets/ReviewsPage-CbLAU6OM.js +1 -0
  66. package/dist/web/assets/StatusSwitcher-C0k4efwK.js +4 -0
  67. package/dist/web/assets/StatusSwitcher-CZYtI0ID.css +1 -0
  68. package/dist/web/assets/abnfDiagram-O67JEVCF-DkOrqZLn.js +1 -0
  69. package/dist/web/assets/agent-icon-BKoq2a6T.js +17 -0
  70. package/dist/web/assets/agent-icon-BUd-vCRS.css +1 -0
  71. package/dist/web/assets/agent-store-CEQ6MmTC.js +1 -0
  72. package/dist/web/assets/app-info-store-CIqmSeWK.js +1 -0
  73. package/dist/web/assets/arc-BALAYY3f.js +1 -0
  74. package/dist/web/assets/architecture-7GRP2DOG-CTkghkmX.js +1 -0
  75. package/dist/web/assets/architectureDiagram-NJMV4G6O-C-xtrMea.js +36 -0
  76. package/dist/web/assets/array-BifhSqXX.js +1 -0
  77. package/dist/web/assets/blockDiagram-BEXU5L5S-DYo9Os-m.js +140 -0
  78. package/dist/web/assets/c4Diagram-YGBWAQC7-BpSFjUAX.js +38 -0
  79. package/dist/web/assets/channel-f9cE6NV9.js +1 -0
  80. package/dist/web/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  81. package/dist/web/assets/chunk-3FUC2YCW-DtUqbu5K.js +2 -0
  82. package/dist/web/assets/chunk-5DYCD2WN-DeYTIM8k.js +1 -0
  83. package/dist/web/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  84. package/dist/web/assets/chunk-742MDFTN-8BfKAsu6.js +1 -0
  85. package/dist/web/assets/chunk-7INBJB4K-PXK092EZ.js +62 -0
  86. package/dist/web/assets/chunk-7M6MHVWA-Db9reT-V.js +213 -0
  87. package/dist/web/assets/chunk-7PRAP22T-CNFpjNaH.js +1 -0
  88. package/dist/web/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
  89. package/dist/web/assets/chunk-FOHPRMQF-CoA4358r.js +161 -0
  90. package/dist/web/assets/chunk-GTNCS2PH-C5gqOp1W.js +88 -0
  91. package/dist/web/assets/chunk-GWA4HPMP-BquHLG8L.js +1 -0
  92. package/dist/web/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
  93. package/dist/web/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  94. package/dist/web/assets/chunk-MBY4JIJT-DyOEFgCh.js +72 -0
  95. package/dist/web/assets/chunk-NETBCI7D-Bd3ij3-b.js +1 -0
  96. package/dist/web/assets/chunk-O7XYJQB3-DQvIvDe6.js +126 -0
  97. package/dist/web/assets/chunk-UA2S7LBM-BDIHwgCZ.js +1 -0
  98. package/dist/web/assets/chunk-WEXAMYUT-DwQKTsK-.js +1 -0
  99. package/dist/web/assets/chunk-XXDRQBXY-DTdiON6C.js +1 -0
  100. package/dist/web/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  101. package/dist/web/assets/chunk-Z7XXMR3K-CIvnaGnU.js +10 -0
  102. package/dist/web/assets/chunk-ZIGJFQKS-BdT_T5CV.js +2 -0
  103. package/dist/web/assets/classDiagram-v2-NBCMYWYE-BUoclHlO.js +217 -0
  104. package/dist/web/assets/{core-Ruj7F7dx.js → core-B8kUiZoM.js} +1 -1
  105. package/dist/web/assets/cose-bilkent-JH36ORCC-C16eW6pc.js +1 -0
  106. package/dist/web/assets/create-B9ZqyTxV.js +1 -0
  107. package/dist/web/assets/cynefin-OW5HDTMX-1mS7ZeoM.js +1 -0
  108. package/dist/web/assets/cynefinDiagram-VND7K2PF-D1PC4YT4.js +62 -0
  109. package/dist/web/assets/cytoscape.esm-B-1iW2ft.js +321 -0
  110. package/dist/web/assets/dagre-6A5THRUB-amODOP74.js +4 -0
  111. package/dist/web/assets/debounce-CDIE7CV6.js +1 -0
  112. package/dist/web/assets/defaultLocale-BFoDCU3G.js +1 -0
  113. package/dist/web/assets/diagram-22UHCM2B-wUvcsN_B.js +200 -0
  114. package/dist/web/assets/diagram-3UASUU5V-CLiOVs2l.js +24 -0
  115. package/dist/web/assets/diagram-ATOU4E4O-Cs5cFGgz.js +3 -0
  116. package/dist/web/assets/diagram-CDSNMT55-C8Jb-YeE.js +30 -0
  117. package/dist/web/assets/diagram-MLGK6HIB-DA6C9fVB.js +24 -0
  118. package/dist/web/assets/diagram-MPIPVDR6-BOaFKuUi.js +41 -0
  119. package/dist/web/assets/dist-DuFVAX6Y.js +1 -0
  120. package/dist/web/assets/ebnfDiagram-ZINNZB2B-e5jvn-EE.js +1 -0
  121. package/dist/web/assets/elk-276RUBZZ-D7Gcu17D.js +27 -0
  122. package/dist/web/assets/engine-oniguruma-HbxpIAu4.js +1 -0
  123. package/dist/web/assets/erDiagram-OPXOYQCR-Cn1bBUF8.js +99 -0
  124. package/dist/web/assets/event-rR76ioXz.js +1 -0
  125. package/dist/web/assets/eventmodeling-NTZA5JFV-BjGpd42n.js +1 -0
  126. package/dist/web/assets/export-file-Di_2jvjP.js +1 -0
  127. package/dist/web/assets/fira-code-symbols2-400-normal-9X26I2LK.woff2 +0 -0
  128. package/dist/web/assets/fira-code-symbols2-500-normal-B5s_njw3.woff2 +0 -0
  129. package/dist/web/assets/fira-code-symbols2-600-normal-Bu3RnO39.woff2 +0 -0
  130. package/dist/web/assets/flowDiagram-KWPJA3E3-a3N8MVB8.js +1 -0
  131. package/dist/web/assets/ganttDiagram-FUAMR5RP-C3U8jeJB.js +292 -0
  132. package/dist/web/assets/gitGraph-4MIJSDKK-C165DC0H.js +1 -0
  133. package/dist/web/assets/gitGraphDiagram-X574FWY7-CVHdT1OC.js +106 -0
  134. package/dist/web/assets/golos-text-cyrillic-400-normal-BwL4n7Pb.woff +0 -0
  135. package/dist/web/assets/golos-text-cyrillic-400-normal-C7us6pn1.woff2 +0 -0
  136. package/dist/web/assets/golos-text-cyrillic-500-normal-BSLQUuP1.woff2 +0 -0
  137. package/dist/web/assets/golos-text-cyrillic-500-normal-hXinzVVQ.woff +0 -0
  138. package/dist/web/assets/golos-text-cyrillic-ext-400-normal-Bo67NYBq.woff2 +0 -0
  139. package/dist/web/assets/golos-text-cyrillic-ext-400-normal-D592xEk3.woff +0 -0
  140. package/dist/web/assets/golos-text-cyrillic-ext-500-normal-CLsu_eDI.woff2 +0 -0
  141. package/dist/web/assets/golos-text-cyrillic-ext-500-normal-InHNvB7v.woff +0 -0
  142. package/dist/web/assets/golos-text-latin-400-normal-Coi1FYaD.woff2 +0 -0
  143. package/dist/web/assets/golos-text-latin-400-normal-DOuJOmdK.woff +0 -0
  144. package/dist/web/assets/golos-text-latin-500-normal-BQo4s7Kn.woff +0 -0
  145. package/dist/web/assets/golos-text-latin-500-normal-BznAvurO.woff2 +0 -0
  146. package/dist/web/assets/golos-text-latin-ext-400-normal-BXgyX_iE.woff +0 -0
  147. package/dist/web/assets/golos-text-latin-ext-400-normal-BjKcJWKY.woff2 +0 -0
  148. package/dist/web/assets/golos-text-latin-ext-500-normal-9vZPKadr.woff2 +0 -0
  149. package/dist/web/assets/golos-text-latin-ext-500-normal-BmtMVntR.woff +0 -0
  150. package/dist/web/assets/graphlib-DS17s2tU.js +1 -0
  151. package/dist/web/assets/i18n-CyUPETur.js +1 -0
  152. package/dist/web/assets/{index-JAYe_SFI.css → index-C6ArNnKs.css} +1 -1
  153. package/dist/web/assets/index-C_B6Z2lc.js +2 -0
  154. package/dist/web/assets/info-A6RAGUB7-cbWtF3FJ.js +1 -0
  155. package/dist/web/assets/infoDiagram-VRGFBTTK-C_kWn3Ai.js +2 -0
  156. package/dist/web/assets/init-C-OQMol4.js +1 -0
  157. package/dist/web/assets/init-app-DnfYD-0k.js +1 -0
  158. package/dist/web/assets/is-ChHvR1Z-.js +1 -0
  159. package/dist/web/assets/ishikawaDiagram-OU5B5YK6-Xb9cDRr7.js +70 -0
  160. package/dist/web/assets/jetbrains-mono-cyrillic-ext-400-normal-Bh0R7Dhr.woff +0 -0
  161. package/dist/web/assets/jetbrains-mono-cyrillic-ext-400-normal-C_uLvvQ5.woff2 +0 -0
  162. package/dist/web/assets/jetbrains-mono-cyrillic-ext-500-normal-C9ShMxGR.woff2 +0 -0
  163. package/dist/web/assets/jetbrains-mono-cyrillic-ext-500-normal-CEVyPk4Y.woff +0 -0
  164. package/dist/web/assets/jetbrains-mono-cyrillic-ext-600-normal-DVvC-yKp.woff +0 -0
  165. package/dist/web/assets/jetbrains-mono-cyrillic-ext-600-normal-Dj6eZy5f.woff2 +0 -0
  166. package/dist/web/assets/jetbrains-mono-vietnamese-400-normal-ByoDsISC.woff2 +0 -0
  167. package/dist/web/assets/jetbrains-mono-vietnamese-500-normal-BvH7FW2L.woff2 +0 -0
  168. package/dist/web/assets/jetbrains-mono-vietnamese-600-normal-Dtizs43-.woff2 +0 -0
  169. package/dist/web/assets/journeyDiagram-ZHPQQLJL-6eZcefap.js +139 -0
  170. package/dist/web/assets/kanban-definition-PNTS6WVX-D_z_AsKR.js +89 -0
  171. package/dist/web/assets/katex-ZlcWpGUi.js +257 -0
  172. package/dist/web/assets/line-v7JtZ-Za.js +1 -0
  173. package/dist/web/assets/linear-hp1KWmiC.js +1 -0
  174. package/dist/web/assets/mermaid-parser.core-Cwwk5NqO.js +7 -0
  175. package/dist/web/assets/mermaid.core-BjPJhwW0.js +44 -0
  176. package/dist/web/assets/mindmap-definition-NLK3R4M7-lQohhDXq.js +96 -0
  177. package/dist/web/assets/ordinal-BDEzSJ7C.js +1 -0
  178. package/dist/web/assets/packet-AYTQ26CC-DxiGe6nt.js +1 -0
  179. package/dist/web/assets/path-fybaL0A-.js +1 -0
  180. package/dist/web/assets/pegDiagram-GJSIUBJH-XZRpQTLx.js +1 -0
  181. package/dist/web/assets/pie-WAS4IAKB-fxN0O90k.js +1 -0
  182. package/dist/web/assets/pieDiagram-5QR66LMP-M_bBKE-n.js +39 -0
  183. package/dist/web/assets/pinia-0B8sIOgD.js +1 -0
  184. package/dist/web/assets/pinia-DbmXdZbT.js +1 -0
  185. package/dist/web/assets/quadrantDiagram-O4NWA36T-BNxVPrq3.js +7 -0
  186. package/dist/web/assets/radar-RG4KPBEZ-Cd-5aokk.js +1 -0
  187. package/dist/web/assets/railroad-74A4TZTK-BvSKL8Ze.js +1 -0
  188. package/dist/web/assets/railroad-abnf-HS5TGJTU-CB32K25L.js +1 -0
  189. package/dist/web/assets/railroad-ebnf-LZEXJU2U-CqQR3zRl.js +1 -0
  190. package/dist/web/assets/railroad-peg-WCYAUIDC-DRSdB-oL.js +1 -0
  191. package/dist/web/assets/railroadDiagram-XR7U4H2S-D664lPSL.js +1 -0
  192. package/dist/web/assets/requirementDiagram-PLB6GJNP-B_1Dl0-3.js +84 -0
  193. package/dist/web/assets/rough.esm-Dy-Kn_BL.js +1 -0
  194. package/dist/web/assets/runtime-core.esm-bundler-Carm8LUR.js +1 -0
  195. package/dist/web/assets/safe-storage-CWaD6Dq3.js +1 -0
  196. package/dist/web/assets/sankeyDiagram-IPEJSGJF-BvFmMC_F.js +40 -0
  197. package/dist/web/assets/sequenceDiagram-PO4LG4MO-DMK1ey4g.js +169 -0
  198. package/dist/web/assets/single-flight-r8B7stt1.js +1 -0
  199. package/dist/web/assets/sizeCapture-INFHLROL-B0uUizjq.js +1 -0
  200. package/dist/web/assets/src-Cy0hT8a0.js +1 -0
  201. package/dist/web/assets/stateDiagram-v2-GCMORJYK-VVElU-_E.js +291 -0
  202. package/dist/web/assets/swimlanes-2SLR337P-DyfYJvHL.js +1 -0
  203. package/dist/web/assets/swimlanesDiagram-TC7HE7FX-BQ0mK2BI.js +8 -0
  204. package/dist/web/assets/theme-BFceB3b9.js +1 -0
  205. package/dist/web/assets/timeline-definition-EJHVYXUP-DBoRb7uC.js +120 -0
  206. package/dist/web/assets/treeView-Q6P3EWNA-D8AoZg1Y.js +1 -0
  207. package/dist/web/assets/treemap-WGGIJYW6-DhcVtZsu.js +1 -0
  208. package/dist/web/assets/use-app-theme-DxZW-eOR.js +1 -0
  209. package/dist/web/assets/use-panel-width-CY75Fomr.js +1 -0
  210. package/dist/web/assets/usecaseDiagram-POWQR4AR-BCfvWOH4.js +328 -0
  211. package/dist/web/assets/vennDiagram-UO4OBE2U-BIk6-FLo.js +34 -0
  212. package/dist/web/assets/{vue-i18n.runtime-CxBM6QPV.js → vue-i18n.runtime-BQwnBdmC.js} +2 -2
  213. package/dist/web/assets/wardley-WFR3VGLG-BMHH70A3.js +1 -0
  214. package/dist/web/assets/wardleyDiagram-VNRHLVJA-DB-cxlSq.js +78 -0
  215. package/dist/web/assets/xychartDiagram-PMCCYNJV-BejE-3gi.js +7 -0
  216. package/dist/web/index.html +8 -6
  217. package/package.json +12 -3
  218. package/dist/web/assets/AppPage-B9tWPrzn.js +0 -1
  219. package/dist/web/assets/CreateReviewFabButton-BqWdgfEf.css +0 -1
  220. package/dist/web/assets/CreateReviewFabButton-DcXpOlBP.js +0 -1
  221. package/dist/web/assets/IndexPage-CsgdLXZh.css +0 -1
  222. package/dist/web/assets/IndexPage-y9DcUqW9.js +0 -1
  223. package/dist/web/assets/MainLayout-BRPoh8y0.css +0 -1
  224. package/dist/web/assets/MainLayout-fQytypS5.js +0 -1
  225. package/dist/web/assets/Platform-DDGYwfzl.js +0 -1
  226. package/dist/web/assets/QBtn-DGiC5uLo.js +0 -1
  227. package/dist/web/assets/QTooltip-CPN6UvuX.js +0 -1
  228. package/dist/web/assets/ReviewDetailPage-CL6A5zjH.css +0 -1
  229. package/dist/web/assets/ReviewDetailPage-aMMuYtax.js +0 -1
  230. package/dist/web/assets/ReviewsPage-B1CTHU13.js +0 -1
  231. package/dist/web/assets/StatusSwitcher-Bj-XCwSr.js +0 -3
  232. package/dist/web/assets/StatusSwitcher-BydQq1LI.css +0 -1
  233. package/dist/web/assets/app-info-store-Dw8pPU-w.js +0 -1
  234. package/dist/web/assets/client-De34x_P_.js +0 -1
  235. package/dist/web/assets/engine-oniguruma-Bon2Icja.js +0 -1
  236. package/dist/web/assets/event-D0kaqRwq.js +0 -1
  237. package/dist/web/assets/format-Bb6ahGqi.js +0 -1
  238. package/dist/web/assets/i18n-Dw0eMaZf.js +0 -1
  239. package/dist/web/assets/index-i1Dlwasy.js +0 -2
  240. package/dist/web/assets/init-app-CPTVCTFc.js +0 -1
  241. package/dist/web/assets/pinia-ClnoFqXt.js +0 -1
  242. package/dist/web/assets/pinia-jMX0pzvu.js +0 -1
  243. package/dist/web/assets/runtime-core.esm-bundler-Db5Q9Gsb.js +0 -1
  244. package/dist/web/assets/theme-CgDsrcvS.js +0 -1
  245. package/dist/web/assets/use-app-theme-D0Pl-VfI.js +0 -1
  246. package/dist/web/assets/use-server-events-pJWjsMIC.js +0 -1
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MainLayout-ClBPF545.js","assets/agent-icon-BKoq2a6T.js","assets/runtime-core.esm-bundler-Carm8LUR.js","assets/QBtn-E32fUOKx.js","assets/event-rR76ioXz.js","assets/create-B9ZqyTxV.js","assets/debounce-CDIE7CV6.js","assets/vue-i18n.runtime-BQwnBdmC.js","assets/single-flight-r8B7stt1.js","assets/QMenu-BZ1eK_rS.js","assets/is-ChHvR1Z-.js","assets/agent-icon-BUd-vCRS.css","assets/pinia-DbmXdZbT.js","assets/app-info-store-CIqmSeWK.js","assets/agent-store-CEQ6MmTC.js","assets/safe-storage-CWaD6Dq3.js","assets/use-app-theme-DxZW-eOR.js","assets/use-panel-width-CY75Fomr.js","assets/export-file-Di_2jvjP.js","assets/QSelect-D1V4tbDr.js","assets/QItemLabel-Co6oCEUr.js","assets/MainLayout-ChxXEt_Q.css","assets/IndexPage-Cm_ssBeC.js","assets/AppPage-CSb8txs5.js","assets/StatusSwitcher-C0k4efwK.js","assets/StatusSwitcher-CZYtI0ID.css","assets/CreateReviewFabButton-B18DLuH6.js","assets/CreateReviewFabButton-Cufd8hVJ.css","assets/IndexPage-B-hkrnvt.css","assets/ReviewsPage-CbLAU6OM.js","assets/ReviewsPage-Lb74-4L2.css","assets/ReviewDetailPage-Ct0hXwZL.js","assets/ReviewDetailPage-BWa3EEkv.css","assets/ErrorNotFound-B5uYICL4.js","assets/pinia-0B8sIOgD.js","assets/i18n-CyUPETur.js","assets/theme-BFceB3b9.js","assets/init-app-DnfYD-0k.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,A as t,D as n,L as r,N as i,O as a,P as o,T as s,W as c,Z as l,_ as u,et as d,g as f,i as p,j as m,k as h,l as g,nt as _,rt as v,s as y,st as b,tt as x,w as S,x as C,y as w}from"./runtime-core.esm-bundler-Carm8LUR.js";import{A as T,B as E,C as D,D as ee,E as O,F as k,I as A,L as j,R as M,T as N,_ as P,a as te,b as F,d as I,f as L,g as ne,h as re,i as R,m as ie,p as ae,s as z,t as B,w as V,x as H,y as oe,z as se}from"./QBtn-E32fUOKx.js";import{a as U,d as W,i as ce,l as le,s as ue,u as de}from"./event-rR76ioXz.js";import{a as fe,i as pe,o as G,r as K,s as me,t as he}from"./is-ChHvR1Z-.js";import{r as ge,t as q}from"./create-B9ZqyTxV.js";import{t as _e}from"./debounce-CDIE7CV6.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ve=[`sm`,`md`,`lg`,`xl`],{passive:ye}=ce,be=ge({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:U,setDebounce:U,install({$q:e,onSSRHydrated:t}){if(e.screen=this,this.__installed){e.config.screen!==void 0&&(e.config.screen.bodyClasses?this.__update(!0):document.body.classList.remove(`screen--${this.name}`));return}let{visualViewport:n}=window,r=n||window,i=document.scrollingElement||document.documentElement,a=n===void 0||G.is.mobile?()=>[Math.max(window.innerWidth,i.clientWidth),Math.max(window.innerHeight,i.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-i.clientWidth,n.height*n.scale+window.innerHeight-i.clientHeight],o=e.config.screen?.bodyClasses===!0;this.__update=e=>{let[t,n]=a();if(n!==this.height&&(this.height=n),t!==this.width)this.width=t;else if(e!==!0)return;let r=this.sizes;this.gt.xs=t>=r.sm,this.gt.sm=t>=r.md,this.gt.md=t>=r.lg,this.gt.lg=t>=r.xl,this.lt.sm=t<r.sm,this.lt.md=t<r.md,this.lt.lg=t<r.lg,this.lt.xl=t<r.xl,this.xs=this.lt.sm,this.sm=this.gt.xs&&this.lt.md,this.md=this.gt.sm&&this.lt.lg,this.lg=this.gt.md&&this.lt.xl,this.xl=this.gt.lg,r=this.xs&&`xs`||this.sm&&`sm`||this.md&&`md`||this.lg&&`lg`||`xl`,r!==this.name&&(o&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${r}`)),this.name=r)};let s,c={},l=16;this.setSizes=e=>{ve.forEach(t=>{e[t]!==void 0&&(c[t]=e[t])})},this.setDebounce=e=>{l=e};let u=()=>{let e=getComputedStyle(document.body);e.getPropertyValue(`--q-size-sm`)&&ve.forEach(t=>{this.sizes[t]=Number.parseInt(e.getPropertyValue(`--q-size-${t}`),10)}),this.setSizes=e=>{ve.forEach(t=>{e[t]&&(this.sizes[t]=e[t])}),this.__update(!0)},this.setDebounce=e=>{s!==void 0&&r.removeEventListener(`resize`,s,ye),s=e>0?_e(this.__update,e):this.__update,r.addEventListener(`resize`,s,ye)},this.setDebounce(l),Object.keys(c).length===0?this.__update():(this.setSizes(c),c=void 0),o&&this.name===`xs`&&document.body.classList.add(`screen--xs`)};me.value?t.push(u):u()}}),J=ge({isActive:!1,mode:!1},{__media:void 0,set(e){J.mode=e,e===`auto`?(J.__media===void 0&&(J.__media=window.matchMedia(`(prefers-color-scheme: dark)`),J.__updateMedia=()=>{J.set(`auto`)},J.__media.addListener(J.__updateMedia)),e=J.__media.matches):J.__media!==void 0&&(J.__media.removeListener(J.__updateMedia),J.__media=void 0),J.isActive=e===!0,document.body.classList.remove(`body--${e===!0?`light`:`dark`}`),document.body.classList.add(`body--${e===!0?`dark`:`light`}`)},toggle(){J.set(!J.isActive)},install({$q:e,ssrContext:t}){let n=e.config.dark;e.dark=this,this.__installed||this.set(n!==void 0&&n)}});function xe(e,t,n=document.body){if(typeof e!=`string`)throw TypeError(`Expected a string as propName`);if(typeof t!=`string`)throw TypeError(`Expected a string as value`);if(!(n instanceof Element))throw TypeError(`Expected a DOM element`);n.style.setProperty(`--q-${e}`,t)}function Se(e){if(e.ios)return`ios`;if(e.android)return`android`}function Ce({is:e,has:t,within:n},r){let i=[e.desktop?`desktop`:`mobile`,`${t.touch?``:`no-`}touch`];if(e.mobile){let t=Se(e);t!==void 0&&i.push(`platform-`+t)}if(e.nativeMobile){let t=e.nativeMobileWrapper,n=r[t];i.push(t,`native-mobile`),e.ios&&(n===void 0||n.iosStatusBarPadding)?i.push(`q-ios-padding`):e.android&&(n===void 0||n.androidStatusBarPadding!==!1)&&i.push(`q-safe-area-padding`)}else e.electron?i.push(`electron`):e.bex&&i.push(`bex`);return n.iframe&&i.push(`within-iframe`),i}function we(){let{is:e}=G,t=document.body.className,n=new Set(t.replaceAll(/ {2}/g,` `).split(` `));if(!e.nativeMobile&&!e.electron&&!e.bex){if(e.desktop)n.delete(`mobile`),n.delete(`platform-ios`),n.delete(`platform-android`),n.add(`desktop`);else if(e.mobile){n.delete(`desktop`),n.add(`mobile`),n.delete(`platform-ios`),n.delete(`platform-android`);let t=Se(e);t!==void 0&&n.add(`platform-${t}`)}}G.has.touch&&(n.delete(`no-touch`),n.add(`touch`)),G.within.iframe&&n.add(`within-iframe`);let r=[...n].join(` `);t!==r&&(document.body.className=r)}function Te(e){for(let t in e)xe(t,e[t])}var Ee={install(e){if(!this.__installed){if(me.value)we();else{let{$q:t}=e;t.config.brand!==void 0&&Te(t.config.brand),document.body.classList.add(...Ce(G,t.config))}G.is.ios&&document.body.addEventListener(`touchstart`,U),window.addEventListener(`keydown`,A,!0)}}},De=()=>!0;function Oe(e){return typeof e==`string`&&e!==``&&e!==`/`&&e!==`#/`}function ke(e){return e.startsWith(`#`)&&(e=e.slice(1)),e.startsWith(`/`)||(e=`/`+e),e.endsWith(`/`)&&(e=e.slice(0,-1)),`#`+e}function Ae(e){if(e.backButtonExit===!1)return()=>!1;if(e.backButtonExit===`*`)return De;let t=[`#/`];return Array.isArray(e.backButtonExit)&&t.push(...e.backButtonExit.filter(Oe).map(ke)),()=>t.includes(window.location.hash)}var je={__history:[],add:U,remove:U,install({$q:e}){if(this.__installed)return;let{cordova:t,capacitor:n}=G.is;if(!t&&!n)return;let r=e.config[t?`cordova`:`capacitor`];if(r?.backButton===!1||n&&(window.Capacitor===void 0||window.Capacitor.Plugins.App===void 0))return;this.add=e=>{e.condition===void 0&&(e.condition=De),this.__history.push(e)},this.remove=e=>{let t=this.__history.indexOf(e);t!==-1&&this.__history.splice(t,1)};let i=Ae({backButtonExit:!0,...r}),a=()=>{if(this.__history.length!==0){let e=this.__history.at(-1);e.condition()&&(this.__history.pop(),e.handler())}else i()?navigator.app.exitApp():window.history.back()};t?document.addEventListener(`deviceready`,()=>{document.addEventListener(`backbutton`,a,!1)}):window.Capacitor.Plugins.App.addListener(`backButton`,a)}},Me={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`,minimum:`Minimum`,maximum:`Maximum`,range:`Range`,noValue:`No value`,resize:`Resize`,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`,prevMonth:`Previous month`,nextMonth:`Next month`,prevYear:`Previous year`,nextYear:`Next year`,today:`Today`,prevRangeYears:e=>`Previous ${e} years`,nextRangeYears:e=>`Next ${e} years`,hour:`Hour`,minute:`Minute`,second:`Second`,now:`Current time`},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,n)=>e+`–`+t+` of `+n,columns:`Columns`,selectAllRows:`Select all rows`,selectRow:`Select row`},pagination:{label:`Pagination`,first:`First page`,prev:`Previous page`,next:`Next page`,last:`Last page`},carousel:{prevSlide:`Previous slide`,nextSlide:`Next slide`},colorPicker:{spectrum:`Spectrum`,tune:`Tune`,palette:`Palette`,value:`Color value`,hue:`Hue`,alpha:`Opacity`},uploader:{addFiles:`Pick files`,upload:`Upload files`,abort:`Abort upload`,removeQueued:`Remove queued files`,removeUploaded:`Remove uploaded files`,removeFile:`Remove file`},editor:{toolbar:`Editor toolbar`,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 Ne(e){return e.split(/[-_]/).map((e,t)=>t===0?e.toLowerCase():t>1||e.length<4?e.toUpperCase():e[0].toUpperCase()+e.slice(1).toLowerCase())}function Pe(){let e=Array.isArray(navigator.languages)&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e==`string`)return Ne(e).join(`-`)}function Fe(e){try{let{language:t,script:n,region:r}=new Intl.Locale(e).maximize();return{language:t,script:n,region:r}}catch{}}function Ie(e,t){if(typeof e!=`string`||!Array.isArray(t))return;let n=new Map;for(let e of t){if(typeof e!=`string`)continue;let t=e.toLowerCase().replaceAll(`_`,`-`);n.has(t)||n.set(t,e)}if(n.size===0)return;let r=Ne(e),i=[];for(let e=r.length;e>1;e--)i.push(r.slice(0,e).join(`-`));if(r.length>2&&r[1].length===4){let e=[r[0],...r.slice(2)];for(let t=e.length;t>1;t--)i.push(e.slice(0,t).join(`-`))}i.push(r[0]);for(let e of i){let t=n.get(e.toLowerCase());if(t!==void 0)return t}let a=Fe(r.join(`-`));if(a===void 0)return;let o=Fe(a.language).region,s;for(let[e,t]of n){let n=Fe(e);if(n===void 0||n.language!==a.language)continue;let r=(n.script===a.script?4:0)+(n.region===a.region?2:0)+ +(n.region===o),i=e.split(`-`).length;(s===void 0||r>s.score||r===s.score&&i<s.depth)&&(s={tag:t,score:r,depth:i})}return s?.tag}var Le=ge({__qLang:{}},{getLocale:Pe,getClosestIsoName:Ie,set(e=Me,t){let n={...e,rtl:e.rtl===!0,getLocale:Pe,getClosestIsoName:Ie};if(n.set=Le.set,Le.__langConfig===void 0||!Le.__langConfig.noHtmlAttrs){let e=document.documentElement;e.setAttribute(`dir`,n.rtl?`rtl`:`ltr`),e.setAttribute(`lang`,n.isoName)}Object.assign(Le.__qLang,n)},install({$q:e,lang:t,ssrContext:n}){e.lang=Le.__qLang,Le.__langConfig=e.config.lang,this.__installed?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qLang,{get:Reflect.get,ownKeys(e){return Reflect.ownKeys(e).filter(e=>e!==`set`&&e!==`getLocale`&&e!==`getClosestIsoName`)}}),this.set(t||Me))}}),Re={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`}},ze=ge({iconMapFn:null,__qIconSet:{}},{set(e,t){let n={...e};n.set=ze.set,Object.assign(ze.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,W(e,`iconMapFn`,()=>this.iconMapFn,e=>{this.iconMapFn=e}),this.__installed?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get:Reflect.get,ownKeys(e){return Reflect.ownKeys(e).filter(e=>e!==`set`)}}),this.set(t||Re))}}),Be={},Ve=!1;function He(){Ve=!0}var Ue=[fe,Ee,J,be,je,Le,ze];function We(e,t){let n=E(e);n.config.globalProperties=t.config.globalProperties;let{reload:r,...i}=t._context;return Object.assign(n._context,i),n}function Ge(e,t){t.forEach(t=>{t.install(e),t.__installed=!0})}function Ke(e,t,n){e.config.globalProperties.$q=n.$q,e.provide(`_q_`,n.$q),Ge(n,Ue),t.components!==void 0&&Object.values(t.components).forEach(t=>{K(t)&&t.name!==void 0&&e.component(t.name,t)}),t.directives!==void 0&&Object.values(t.directives).forEach(t=>{K(t)&&t.name!==void 0&&e.directive(t.name,t)}),t.plugins!==void 0&&Ge(n,Object.values(t.plugins).filter(e=>typeof e.install==`function`&&!Ue.includes(e))),me.value&&(n.$q.onSSRHydrated=()=>{n.onSSRHydrated.forEach(e=>{e()}),n.$q.onSSRHydrated=()=>{}})}var qe={name:`Quasar`,version:`2.30.1`,install:function(e,t={}){let n={version:`2.30.1`};Ve?n.config=t.config||{}:(t.config!==void 0&&Object.assign(Be,t.config),n.config={...Be},He()),Ke(e,t,{parentApp:e,$q:n,lang:t.lang,iconSet:t.iconSet,onSSRHydrated:[]})},lang:Le,iconSet:ze},Je={};function Ye(e,t){let n=r(`router-view`);return i(),g(n)}var Xe=ee(Je,[[`render`,Ye]]),Ze=e=>e,Qe=Ze,$e=Ze,et=`modulepreload`,tt=function(e){return`/`+e},nt={},Y=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=tt(t,n),t=s(t),t in nt)return;nt[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:et,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},rt=[{path:`/`,component:()=>Y(()=>import(`./MainLayout-ClBPF545.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),children:[{path:``,component:()=>Y(()=>import(`./IndexPage-Cm_ssBeC.js`),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,14,15,17,20,23,24,25,26,27,28]))},{path:`reviews`,component:()=>Y(()=>import(`./ReviewsPage-CbLAU6OM.js`),__vite__mapDeps([29,2,3,4,5,7,12,8,6,9,10,19,20,23,26,27,30]))},{path:`reviews/:id`,component:()=>Y(()=>import(`./ReviewDetailPage-Ct0hXwZL.js`),__vite__mapDeps([31,1,2,3,4,5,6,7,8,9,10,11,12,18,23,24,14,15,25,32]))}]},{path:`/:catchAll(.*)*`,component:()=>Y(()=>import(`./ErrorNotFound-B5uYICL4.js`),__vite__mapDeps([33,2,3,4,5]))}],it=e=>e.startsWith(`/`);function at(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function ot(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&at(e.default)}var X=Object.assign;function st(e,t){let n={};for(let r in t){let i=t[r];n[r]=Z(i)?i.map(e):e(i)}return n}var ct=()=>{},Z=Array.isArray;function lt(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var ut=Symbol(``);function dt(e,t){return X(Error(),{type:e,[ut]:!0},t)}function ft(e,t){return e instanceof Error&&ut in e&&(t==null||!!(e.type&t))}var pt=Symbol(``),mt=Symbol(``),ht=Symbol(``),gt=Symbol(``),_t=Symbol(``);function vt(){return C(ht)}function yt(e){return C(gt)}var bt=typeof document<`u`,xt=/#/g,St=/&/g,Ct=/\//g,wt=/=/g,Tt=/\?/g,Et=/\+/g,Dt=/%5B/g,Ot=/%5D/g,kt=/%5E/g,At=/%60/g,jt=/%7B/g,Mt=/%7C/g,Nt=/%7D/g,Pt=/%20/g;function Ft(e){return e==null?``:encodeURI(``+e).replace(Mt,`|`).replace(Dt,`[`).replace(Ot,`]`)}function It(e){return Ft(e).replace(jt,`{`).replace(Nt,`}`).replace(kt,`^`)}function Lt(e){return Ft(e).replace(Et,`%2B`).replace(Pt,`+`).replace(xt,`%23`).replace(St,`%26`).replace(At,"`").replace(jt,`{`).replace(Nt,`}`).replace(kt,`^`)}function Rt(e){return Lt(e).replace(wt,`%3D`)}function zt(e){return Ft(e).replace(xt,`%23`).replace(Tt,`%3F`)}function Bt(e){return zt(e).replace(Ct,`%2F`)}function Vt(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Ht=/\/$/,Ut=e=>e.replace(Ht,``);function Wt(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Qt(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Vt(o)}}function Gt(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Kt(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function qt(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Jt(t.matched[r],n.matched[i])&&Yt(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Yt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Xt(e[n],t[n]))return!1;return!0}function Xt(e,t){return Z(e)?Zt(e,t):Z(t)?Zt(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Zt(e,t){return Z(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Qt(e,t){if(it(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var $t={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function en(e){if(!e){if(bt){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Ut(e)}var tn=/^[^#]+#/;function nn(e,t){return e.replace(tn,`#`)+t}function rn(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var an=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function on(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=rn(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function sn(e,t){return(history.state?history.state.position-t:-1)+e}var cn=new Map;function ln(e){cn.set(e,an())}function un(e){let t=cn.get(e);return cn.delete(e),t}function dn(e){return typeof e==`string`||e&&typeof e==`object`}function fn(e){return typeof e==`string`||typeof e==`symbol`}function pn(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Et,` `),i=r.indexOf(`=`),a=Vt(i<0?r:r.slice(0,i)),o=i<0?null:Vt(r.slice(i+1));if(a in t){let e=t[a];Z(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function mn(e){let t=``;for(let n in e){let r=e[n];if(n=Rt(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(Z(r)?r.map(e=>e&&Lt(e)):[r&&Lt(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function hn(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Z(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function gn(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function _n(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(dt(4,{from:n,to:t})):e instanceof Error?c(e):dn(e)?c(dt(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function vn(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(at(s)){let c=(s.__vccOpts||s)[t];c&&a.push(_n(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=ot(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&_n(c,n,r,o,e,i)()}))}}}return a}function yn(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Jt(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Jt(e,s))||i.push(s))}return[n,r,i]}var bn=()=>location.protocol+`//`+location.host;function xn(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Kt(n,``)}return Kt(n,e)+r+i}function Sn(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=xn(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(X({},e.state,{scroll:an()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function Cn(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function wn(e){let{history:t,location:n}=window,r={value:xn(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:bn()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,X({},t.state,Cn(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=X({},i.value,t.state,{forward:e,scroll:an()});a(o.current,o,!0),a(e,X({},Cn(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Tn(e){e=en(e);let t=wn(e),n=Sn(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=X({location:``,base:e,go:r,createHref:nn.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function En(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Tn(e)}var Dn={type:0,value:``},On=/[a-zA-Z0-9_]/;function kn(e){if(!e)return[[]];if(e===`/`)return[[Dn]];if(!it(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:On.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var An=`[^/]+?`,jn={sensitive:!1,strict:!1,start:!0,end:!0},Mn=/[.+*?^${}()[\]/\\]/g;function Nn(e,t){let n=X({},jn,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(Mn,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||An;if(u!==An){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(Z(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Z(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Pn(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Fn(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Pn(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(In(r))return 1;if(In(i))return-1}return i.length-r.length}function In(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Ln={strict:!1,end:!0,sensitive:!1};function Rn(e,t,n){let r=X(Nn(kn(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function zn(e,t){let n=[],r=new Map;t=lt(Ln,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Vn(e);s.aliasOf=r&&r.record;let l=lt(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Vn(X({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!it(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Rn(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Un(d)&&o(e.name)),qn(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:ct}function o(e){if(fn(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Gn(e,n);n.splice(t,0,e),e.record.name&&!Un(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw dt(1,{location:e});s=i.record.name,a=X(Bn(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Bn(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw dt(1,{location:e,currentLocation:t});s=i.record.name,a=X({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Wn(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Bn(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Vn(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Hn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Hn(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Un(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Wn(e){return e.reduce((e,t)=>X(e,t.meta),{})}function Gn(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Fn(e,t[i])<0?r=i:n=i+1}let i=Kn(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Kn(e){let t=e;for(;t=t.parent;)if(qn(t)&&Fn(e,t)===0)return t}function qn({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Jn(e){let t=C(ht),n=C(gt),r=y(()=>{let n=b(e.to);return t.resolve(n)}),i=y(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Jt.bind(null,i));if(o>-1)return o;let s=$n(e[t-2]);return t>1&&$n(i)===s&&a[a.length-1].path!==s?a.findIndex(Jt.bind(null,e[t-2])):o}),a=y(()=>i.value>-1&&Qn(n.params,r.value.params)),o=y(()=>i.value>-1&&i.value===n.matched.length-1&&Yt(n.params,r.value.params));function s(n={}){if(Zn(n)){let n=t[b(e.replace)?`replace`:`push`](b(e.to)).catch(ct);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:y(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Yn(e){return e.length===1?e[0]:e}var Xn=f({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Jn,setup(t,{slots:n}){let r=e(Jn(t)),{options:i}=C(ht),a=y(()=>({[er(t.activeClass,i.linkActiveClass,`router-link-active`)]:r.isActive,[er(t.exactActiveClass,i.linkExactActiveClass,`router-link-exact-active`)]:r.isExactActive}));return()=>{let e=n.default&&Yn(n.default(r));return t.custom?e:w(`a`,{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},e)}}});function Zn(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Qn(e,t){for(let n in t){let r=t[n],i=e[n];if(Z(r)){if(!Z(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function $n(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var er=(e,t,n)=>e??t??n,tr=f({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=C(_t),i=y(()=>e.route||r.value),a=C(mt,0),s=y(()=>{let e=b(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),l=y(()=>i.value.matched[s.value]);o(mt,y(()=>s.value+1)),o(pt,l),o(_t,i);let u=d();return c(()=>[u.value,l.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Jt(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=l.value,s=o&&o.components[a];if(!s)return nr(n.default,{Component:s,route:r});let c=o.props[a],d=c?c===!0?r.params:typeof c==`function`?c(r):c:null,f=w(s,X({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:u}));return nr(n.default,{Component:f,route:r})||f}}});function nr(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var rr=tr;function ir(e){let t=zn(e.routes,e),n=e.parseQuery||pn,r=e.stringifyQuery||mn,i=e.history,a=gn(),o=gn(),s=gn(),c=_($t),l=_(0),u=$t;bt&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=st.bind(null,e=>``+e),f=st.bind(null,Bt),p=st.bind(null,Vt);function m(e,n){let r,i;fn(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return l.value++,()=>{a(),l.value++}}function h(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),l.value++)}function g(){t.clearRoutes(),l.value++}function v(){return t.getRoutes().map(e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function C(e,a){if(l.value,typeof e==`string`){a||=e.startsWith(`/`)?$t:c.value;let r=Wt(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return X(r,o,{params:p(o.params),redirectedFrom:void 0,href:s})}a=X({},a||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?$t:c.value));let o;if(e.path!=null)o=X({},e,{path:Wt(n,e.path,a.path).path});else{let t=X({},e.params);for(let e in t)t[e]??delete t[e];o=X({},e,{params:f(t)}),a.params=f(a.params)}let s=t.resolve(o,a),u=e.hash||``;s.params=d(p(s.params));let m=Gt(r,X({},e,{hash:It(u),path:s.path})),h=i.createHref(m);return X({fullPath:m,hash:u,query:r===mn?hn(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function w(e){return typeof e==`string`?Wt(n,e,c.value.path):X({},e)}function T(e,t){if(u!==e)return dt(8,{from:t,to:e})}function E(e){return O(e)}function D(e){return E(X(w(e),{replace:!0}))}function ee(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=w(i):{path:i},i.params={}),X({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function O(e,t){let n=u=C(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,l=ee(n,i);if(l)return O(X(w(l),{state:typeof l==`object`?X({},a,l.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&qt(r,i,n)&&(f=dt(16,{to:d,from:i}),ie(i,i,!0,!1)),(f?Promise.resolve(f):j(d,i)).catch(e=>ft(e)?ft(e,2)?e:R(e):ne(e,d,i)).then(e=>{if(e){if(ft(e,2))return O(X({replace:s},w(e.to),{state:typeof e.to==`object`?X({},a,e.to.state):a,force:o}),t||d)}else e=N(d,i,!0,s,a);return M(d,i,e),e})}function k(e,t){let n=T(e,t);return n?Promise.reject(n):Promise.resolve()}function A(e){let t=B.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function j(e,t){let n,[r,i,s]=yn(e,t);n=vn(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(_n(r,e,t))});let c=k.bind(null,e,t);return n.push(c),H(n).then(()=>{n=[];for(let r of a.list())n.push(_n(r,e,t));return n.push(c),H(n)}).then(()=>{n=vn(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(_n(r,e,t))});return n.push(c),H(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(Z(r.beforeEnter))for(let i of r.beforeEnter)n.push(_n(i,e,t));else n.push(_n(r.beforeEnter,e,t))}return n.push(c),H(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=vn(s,`beforeRouteEnter`,e,t,A),n.push(c),H(n))).then(()=>{n=[];for(let r of o.list())n.push(_n(r,e,t));return n.push(c),H(n)}).catch(e=>ft(e,8)?e:Promise.reject(e))}function M(e,t,n){s.list().forEach(r=>A(()=>r(e,t,n)))}function N(e,t,n,r,a){let o=T(e,t);if(o)return o;let s=t===$t,l=bt?history.state:{};n&&(r||s?i.replace(e.fullPath,X({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,ie(e,t,n,s),R()}let P;function te(){P||=i.listen((e,t,n)=>{if(!V.listening)return;let r=C(e),a=ee(r,V.currentRoute.value);if(a){O(X(a,{replace:!0,force:!0}),r).catch(ct);return}u=r;let o=c.value;bt&&n.delta&&ln(sn(o.fullPath,n.delta)),j(r,o).catch(e=>ft(e,12)?e:ft(e,2)?(O(X(w(e.to),{force:!0}),r).then(e=>{ft(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(ct),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ne(e,r,o))).then(e=>{e||=N(r,o,!1),e&&(n.delta&&!ft(e,8)?i.go(-n.delta,!1):n.type===`pop`&&ft(e,20)&&i.go(-1,!1)),M(r,o,e)}).catch(ct)})}let F=gn(),I=gn(),L;function ne(e,t,n){R(e);let r=I.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function re(){return L&&c.value!==$t?Promise.resolve():new Promise((e,t)=>{F.add([e,t])})}function R(e){return L||(L=!e,te(),F.list().forEach(([t,n])=>e?n(e):t()),F.reset()),e}function ie(t,n,r,i){let{scrollBehavior:a}=e;if(!bt||!a)return Promise.resolve();let o=!r&&un(sn(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return S().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&on(e)).catch(e=>t===c.value&&ne(e,t,n))}let ae=e=>i.go(e),z,B=new Set,V={currentRoute:c,listening:!0,addRoute:m,removeRoute:h,clearRoutes:g,hasRoute:y,getRoutes:v,resolve:C,options:e,push:E,replace:D,go:ae,back:()=>ae(-1),forward:()=>ae(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:I.add,isReady:re,install(e){e.component(`RouterLink`,Xn),e.component(`RouterView`,rr),e.config.globalProperties.$router=V,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>b(c)}),bt&&!z&&c.value===$t&&(z=!0,E(i.location).catch(e=>{}));let t={};for(let e in $t)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(ht,V),e.provide(gt,x(t)),e.provide(_t,c);let n=e.unmount;B.add(e),e.unmount=function(){B.delete(e),B.size<1&&(u=$t,P&&P(),P=null,c.value=$t,z=!1,L=!1),n()}}};function H(e){return e.reduce((e,t)=>e.then(()=>A(t)),Promise.resolve())}return V}var ar=$e(()=>ir({scrollBehavior:()=>({left:0,top:0}),routes:rt,history:En(`/`)}));async function or(e,t){let n=e(Xe);return n.use(qe,t),{app:n,router:l(typeof ar==`function`?await ar({}):ar)}}function sr(e){return he(e)?`__q_date|`+e.getTime():pe(e)?`__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}var cr=/^-?\d+$/;function lr(e){if(e.length<9)return e;let t=e.slice(0,8),n=e.slice(9);switch(t){case`__q_date`:return new Date(cr.test(n)?Number.parseInt(n,10):n);case`__q_expr`:return new RegExp(n);case`__q_numb`:return Number(n);case`__q_bool`:return n===`1`;case`__q_strn`:return String(n);case`__q_objt`:return JSON.parse(n);default:return e}}function ur(){return{has:()=>!1,hasItem:()=>!1,getLength:()=>0,getItem:()=>null,getIndex:()=>null,getKey:()=>null,getAll:()=>({}),getAllKeys:()=>[],set:U,setItem:U,remove:U,removeItem:U,clear:U,isEmpty:()=>!0}}function dr(e){let t=window[e+`Storage`],n=e=>{let n=t.getItem(e);return n?lr(n):null},r=e=>t.getItem(e)!==null,i=(e,n)=>{t.setItem(e,sr(n))},a=e=>{t.removeItem(e)};return{has:r,hasItem:r,getLength:()=>t.length,getItem:n,getIndex:e=>e<t.length?n(t.key(e)):null,getKey:e=>e<t.length?t.key(e):null,getAll:()=>{let e,r={},i=t.length;for(let a=0;a<i;a++)e=t.key(a),r[e]=n(e);return r},getAllKeys:()=>{let e=[],n=t.length;for(let r=0;r<n;r++)e.push(t.key(r));return e},set:i,setItem:i,remove:a,removeItem:a,clear:()=>{t.clear()},isEmpty:()=>t.length===0}}var fr=G.has.webStorage?dr(`local`):ur(),pr={install({$q:e}){e.localStorage=fr},...fr};function mr(e,t,r){let i;function a(){i!==void 0&&(je.remove(i),i=void 0)}return n(()=>{e.value&&a()}),{removeFromHistory:a,addToHistory(){i={condition:()=>r.value,handler:t},je.add(i)}}}function hr(){let e=null,t=u();function r(){e!==null&&(clearTimeout(e),e=null)}return h(r),n(r),{removeTimeout:r,registerTimeout(n,i){r(),N(t)||(e=setTimeout(()=>{e=null,n()},i))}}}function gr(e){let{registerTimeout:t,removeTimeout:n}=hr(),r=null;return h(()=>{r?.()}),{registerTimeout:t,removeTimeout:n,registerTransitionEnd(n){r=()=>{r=null,n()},t(r,e.transitionDuration)}}}function _r(){let e,t=u();function r(){e=void 0}return h(r),n(r),{removeTick:r,registerTick(n){e=n,S(()=>{e===n&&(N(t)||e(),e=void 0)})}}}var vr={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},yr=[`beforeShow`,`show`,`beforeHide`,`hide`];function br({showing:e,canShow:n,canHide:r,hideOnRouteChange:i,handleShow:a,handleHide:o,handleRouteChange:s,processOnMount:l}){let d=u(),{props:f,emit:p,proxy:m}=d,h;function g(t){e.value?y(t):_(t)}function _(e){if(f.disable||e?.qAnchorHandled===!0||n!==void 0&&!n(e))return;let t=f[`onUpdate:modelValue`]!==void 0;t&&(p(`update:modelValue`,!0),h=e,S(()=>{h===e&&(h=void 0)})),(f.modelValue===null||!t)&&v(e)}function v(t){e.value||(e.value=!0,p(`beforeShow`,t),a===void 0?p(`show`,t):a(t))}function y(e){if(f.disable||r!==void 0&&!r(e))return;let t=f[`onUpdate:modelValue`]!==void 0;t&&(p(`update:modelValue`,!1),h=e,S(()=>{h===e&&(h=void 0)})),(f.modelValue===null||!t)&&b(e)}function b(t){e.value&&(e.value=!1,p(`beforeHide`,t),o===void 0?p(`hide`,t):o(t))}function x(t){f.disable&&t?f[`onUpdate:modelValue`]!==void 0&&p(`update:modelValue`,!1):t===!0!==e.value&&(t?v:b)(h)}c(()=>f.modelValue,x),i!==void 0&&V(d)&&c(()=>m.$route.fullPath,()=>{i.value&&e.value&&(s?.(),y())}),l&&t(()=>{x(f.modelValue)});let C={show:_,hide:y,toggle:g};return Object.assign(m,C),C}var xr={transitionShow:{type:String,default:`fade`},transitionHide:{type:String,default:`fade`},transitionDuration:{type:[String,Number],default:300}},Sr=new Map;function Cr(e,t=()=>{},n=()=>{}){return{transitionProps:()=>{let r=e.transitionShow||t(),i=e.transitionHide||n(),a=`${r}|${i}`,o=Sr.get(a);if(o===void 0){Sr.size>200&&Sr.clear();let e=`q-transition--${r}`,t=`q-transition--${i}`;o={appear:!0,enterFromClass:`${e}-enter-from`,enterActiveClass:`${e}-enter-active`,enterToClass:`${e}-enter-to`,leaveFromClass:`${t}-leave-from`,leaveActiveClass:`${t}-leave-active`,leaveToClass:`${t}-leave-to`},Sr.set(a,o)}return o},transitionStyle:()=>`--q-transition-duration: ${e.transitionDuration}ms`}}var wr=[];function Tr(e){return wr.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function Er(e,t){do{if(e.$options.name===`QMenu`){if(e.hide(t),e.$props.separateClosePopup)return D(e)}else if(e.__qPortal){let n=D(e);return n?.$options.name===`QPopupProxy`?(e.hide(t),n):e}e=D(e)}while(e!=null)}function Dr(e,t,n){for(;n!==0&&e!=null;){if(e.__qPortal){if(n--,e.$options.name===`QMenu`){e=Er(e,t);continue}e.hide(t)}e=D(e)}}var Or=[],kr=[];function Ar(e){kr=kr.filter(t=>t!==e)}function jr(e){Ar(e),kr.push(e)}function Mr(e){Ar(e),kr.length===0&&Or.length!==0&&(Or.at(-1)(),Or=[])}function Nr(e){kr.length===0?e():Or.push(e)}function Pr(e){Or=Or.filter(t=>t!==e)}var Fr=[],Ir=[],Lr=1,Rr=document.body;function zr(e,t,n){let r=document.createElement(`div`);if(r.id=t===void 0?e:`q-portal--${t}--${Lr++}`,Be.globalNodes!==void 0){let e=Be.globalNodes.class;e!==void 0&&(r.className=e)}return(n||Rr).append(r),Fr.push(r),Ir.push(t),r}function Br(e){let t=Fr.indexOf(e);t!==-1&&(Fr.splice(t,1),Ir.splice(t,1)),e.remove()}var Vr=q({name:`QPortal`,setup(e,{slots:t}){return()=>t.default()}});function Hr(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 Ur(e){let t=e.parent;for(;t!=null;){if(t.type.name===`QDialog`){let e=t.proxy?.__getAriaModalEl?.();if(e!=null)return e}t=t.parent}return null}function Wr(e,t,r,i){let a=d(!1),o=d(!1),s=null,c={},l=i===`dialog`&&Hr(e),u=i!==`tooltip`,f=!1;function h(t){e.vnode.el?.dispatchEvent(new CustomEvent(t,{bubbles:!0}))}function g(){f&&(f=!1,h(`popup-hide`))}function _(t,n){if(t){Mr(c),o.value=!0;return}if(o.value=!1,!a.value){if(!l&&s===null){let t=i===`menu`?Ur(e):null;s=zr(!1,i,t),t!==null&&s.classList.add(`all-pointer-events`)}a.value=!0,wr.push(e.proxy),jr(c),u&&!n&&(f=!0,h(`popup-show`))}}function v(t){if(o.value=!1,g(),!t)return;Mr(c),a.value=!1;let n=wr.indexOf(e.proxy);n!==-1&&wr.splice(n,1),s!==null&&(Br(s),s=null)}return n(g),m(()=>{v(!0)}),e.proxy.__qPortal=!0,W(e.proxy,`contentEl`,()=>t.value),{showPortal:_,hidePortal:v,portalIsActive:a,portalIsAccessible:o,renderPortal:()=>l?r():a.value?[w(p,{to:s},w(Vr,r))]:void 0}}var Gr=[Element,String,Object],Kr=[null,document,document.body,document.scrollingElement,document.documentElement];function qr(e,t){let n=H(t);if(n!==void 0&&n!==window&&!(n instanceof Element)&&!Kr.includes(n)&&(console.warn(`[Quasar] scroll-target: the specified value is not an Element nor a component with a root element; falling back to auto detection`),n=void 0),n===void 0){if(e==null)return window;n=e.closest(`.scroll,.scroll-y,.overflow-auto`)}return Kr.includes(n)?window:n}function Jr(e){return e===window?window.scrollY:e.scrollTop}function Yr(e){return e===window?window.scrollX:e.scrollLeft}function Xr(e,t,n=0,r){let i=r===void 0?performance.now():r,a=Jr(e);if(n<=0){a!==t&&Qr(e,t);return}requestAnimationFrame(r=>{let o=r-i,s=a+(t-a)/Math.max(o,n)*o;Qr(e,s),s!==t&&Xr(e,t,n-o,r)})}function Zr(e,t,n=0,r){let i=r===void 0?performance.now():r,a=Yr(e);if(n<=0){a!==t&&$r(e,t);return}requestAnimationFrame(r=>{let o=r-i,s=a+(t-a)/Math.max(o,n)*o;$r(e,s),s!==t&&Zr(e,t,n-o,r)})}function Qr(e,t){if(e===window){window.scrollTo(window.scrollX,t);return}e.scrollTop=t}function $r(e,t){if(e===window){window.scrollTo(t,window.scrollY);return}e.scrollLeft=t}function ei(e,t,n){if(n){Xr(e,t,n);return}Qr(e,t)}function ti(e,t,n){if(n){Zr(e,t,n);return}$r(e,t)}var ni;function ri(){if(ni!==void 0)return ni;let e=document.createElement(`p`),t=document.createElement(`div`);F(e,{width:`100%`,height:`200px`}),F(t,{position:`absolute`,top:`0px`,left:`0px`,visibility:`hidden`,width:`200px`,height:`150px`,overflow:`hidden`}),t.append(e),document.body.append(t);let n=e.offsetWidth;t.style.overflow=`scroll`;let r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),ni=n-r,ni}var ii=0,ai,oi,si,ci=!1,li,ui,di=!1,fi,pi=null,mi=new Set;function hi(e){mi.add(e)}function gi(e){mi.delete(e)}function _i(e){ci||(ci=!0,requestAnimationFrame(()=>{ci=!1;let{height:t,scale:n}=e.target;if(Math.abs(n-1)>.01)return;let{clientHeight:r,scrollTop:i}=document.scrollingElement;(si===void 0||t!==window.innerHeight)&&(si=r-t,document.scrollingElement.scrollTop=i),i>si&&(document.scrollingElement.scrollTop-=Math.ceil((i-si)/8))}))}function vi(e){let t=document.body;if(e===`add`){ai=Yr(window),oi=Jr(window),fi=window.location.pathname,di=G.is.ios;let e=[`q-document--prevent-scroll`];di?(li=t.style.left,ui=t.style.top,t.style.left=`-${ai}px`,t.style.top=`-${oi}px`,e.push(`q-document--pin-body`)):(e.push(`q-document--clip-scroll`),window.innerWidth-document.documentElement.clientWidth>0&&e.push(`q-document--reserve-scrollbar`)),document.documentElement.classList.add(...e),document.qScrollPrevented=!0,di&&(window.scrollTo(0,0),window.visualViewport?.addEventListener(`resize`,_i,ce.passiveCapture),window.visualViewport?.addEventListener(`scroll`,_i,ce.passiveCapture),window.scrollTo(0,0))}else di&&(window.visualViewport?.removeEventListener(`resize`,_i,ce.passiveCapture),window.visualViewport?.removeEventListener(`scroll`,_i,ce.passiveCapture)),document.documentElement.classList.remove(`q-document--prevent-scroll`,`q-document--clip-scroll`,`q-document--reserve-scrollbar`,`q-document--pin-body`),document.qScrollPrevented=!1,di&&(t.style.left=li,t.style.top=ui),di&&window.location.pathname===fi&&(Yr(window)!==ai||Jr(window)!==oi)?window.scrollTo(ai,oi):mi.forEach(e=>{e()}),si=void 0}function yi(e){let t=`add`;if(e===!0){if(ii++,pi!==null){clearTimeout(pi),pi=null;return}if(ii>1)return}else{if(ii===0||(ii--,ii>0))return;if(t=`remove`,di&&G.is.nativeMobile){pi!==null&&clearTimeout(pi),pi=setTimeout(()=>{vi(t),pi=null},100);return}}vi(t)}function bi(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t)&&(e=t,yi(t))}}}var xi=[],Si;function Ci(e){e.keyCode===27&&(Si=!0)}function wi(){Si&&=!1}function Ti(e){Si&&k(e,27)&&(Si=!1,xi.at(-1)(e))}function Ei(e){window[e](`keydown`,Ci),window[e](`blur`,wi),window[e](`keyup`,Ti),Si=!1}function Di(e){xi.push(e),xi.length===1&&Ei(`addEventListener`)}function Oi(e){let t=xi.indexOf(e);t!==-1&&(xi.splice(t,1),xi.length===0&&Ei(`removeEventListener`))}var ki=[];function Ai(e){ki.at(-1)(e)}function ji(e){ki.push(e),ki.length===1&&document.body.addEventListener(`focusin`,Ai)}function Mi(e){let t=ki.indexOf(e);t!==-1&&(ki.splice(t,1),ki.length===0&&document.body.removeEventListener(`focusin`,Ai))}var Ni=new Map,Pi=[];function Fi(e){Pi.push(e)}function Ii(e){let t=Pi.indexOf(e);t!==-1&&Pi.splice(t,1)}function Li(e){for(let[t,n]of Ni)if(n.$el.contains(e)===!0)return t}function Ri(e,t,n){if(e==null)return!1;let r=new Set;for(let i=Li(t);i!==void 0&&!r.has(i);i=Li(i)){if(n(e,i)===!0)return!0;r.add(i)}return!1}function zi(e,t){return Ri(e,t,oe)}function Bi(e,t){return e.contains(t)}function Vi(e,t){return Ri(e,t,Bi)}var Hi=0,Ui={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`},Wi={standard:[`scale`,`scale`],top:[`slide-down`,`slide-up`],bottom:[`slide-up`,`slide-down`],right:[`slide-left`,`slide-right`],left:[`slide-right`,`slide-left`]},Gi=q({name:`QDialog`,inheritAttrs:!1,props:{...vr,...xr,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,backdropFilter:String,position:{type:String,default:`standard`,validator:e=>[`standard`,`top`,`bottom`,`left`,`right`].includes(e)}},emits:[...yr,`shake`,`click`,`escapeKey`],setup(e,{slots:t,emit:r,attrs:i}){let a=u(),o=O(),s=_(null),l=_(null),f=d(!1),p=d(!1),m=d(null),h=null,g=null,v=!1,b=!1,x=!1,S=y(()=>!e.persistent&&!e.noRouteDismiss&&!e.seamless),{preventBodyScroll:C}=bi(),{registerTransitionEnd:T}=gr(e),{registerTick:E,removeTick:D}=_r(),{transitionProps:ee,transitionStyle:k}=Cr(e,()=>Wi[e.position][0],()=>Wi[e.position][1]),A=y(()=>k()+(e.backdropFilter===void 0?``:`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`)),{showPortal:j,hidePortal:N,portalIsAccessible:te,renderPortal:F}=Wr(a,l,me,`dialog`),{hide:I}=br({showing:f,hideOnRouteChange:S,handleShow:H,handleHide:se,handleRouteChange:U,processOnMount:!0}),{addToHistory:L,removeFromHistory:ne}=mr(f,I,S),re=y(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized?`maximized`:`minimized`} q-dialog__inner--${e.position} ${Ui[e.position]}`+(p.value?` q-dialog__inner--animating`:``)+(m.value===null?``:` q-dialog__inner--keyboard`)+(e.fullWidth?` q-dialog__inner--fullwidth`:``)+(e.fullHeight?` q-dialog__inner--fullheight`:``)+(e.square?` q-dialog__inner--square`:``)),R=y(()=>f.value&&!e.seamless),ie=y(()=>e.autoClose?{onClick:pe}:{}),ae=y(()=>`q-dialog fullscreen no-pointer-events q-dialog--${R.value?`modal`:`seamless`}`);c(()=>e.maximized,e=>{f.value&&fe(e)}),c(R,e=>{C(e),e?(ji(K),Di(ue)):(Mi(K),Oi(ue))});function z(){let{offsetTop:e,height:t,scale:n}=window.visualViewport,{innerHeight:r}=window;if(Math.abs(n-1)>.01||r-t<1){m.value=null;return}let i=Math.round(e),a=Math.round(r-e-t),o=m.value;(o===null||o.top!==i||o.bottom!==a)&&(m.value={top:i,bottom:a,height:Math.round(t)})}function B(e){let t=e?`addEventListener`:`removeEventListener`;x=e,window.visualViewport?.[t](`resize`,z,ce.passive),window.visualViewport?.[t](`scroll`,z,ce.passive),e&&window.visualViewport!==void 0?z():m.value=null}function V(){let t=m.value;return t===null?k():`${k()};--q-dialog-viewport-height:${t.height}px`+(e.position===`bottom`?``:`;top:${t.top}px`)+(e.position===`top`?``:`;bottom:${t.bottom}px`)}function H(t){L(),g=!e.noRefocus&&document.activeElement!==null?document.activeElement:null,fe(e.maximized),j(),p.value=!0,o.platform.is.ios&&B(!0),e.noFocus?D():(document.activeElement?.blur(),E(W)),T(()=>{if(o.platform.is.ios){if(!e.seamless&&document.activeElement){let{top:e,bottom:t}=document.activeElement.getBoundingClientRect(),{innerHeight:n}=window,r=window.visualViewport?.height??n;e>0&&t>r/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-r,t>=n?1/0:Math.ceil(document.scrollingElement.scrollTop+t-r/2))),document.activeElement.scrollIntoView()}b=!0,l.value.click(),b=!1}j(!0),p.value=!1,r(`show`,t)})}function se(e){if(D(),ne(),de(!0),p.value=!0,N(),g!==null){let t=(e?.type.indexOf(`key`)===0?g.closest(`[tabindex]:not([tabindex^="-"])`):void 0)||g;g=null,Nr(()=>{t.isConnected&&t.focus({preventScroll:!0})})}T(()=>{N(!0),p.value=!1,r(`hide`,e)})}function U(){g=null}function W(e){Nr(()=>{let t=l.value;if(t!==null&&t.contains!==void 0){if(e!==void 0){let n=t.querySelector(e);if(n!==null){n.focus({preventScroll:!0});return}}t.contains(document.activeElement)||(t=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 le(e){e&&typeof e.focus==`function`?e.focus({preventScroll:!0}):W(),r(`shake`);let t=l.value;t!==null&&(t.classList.remove(`q-animate--scale`),t.classList.add(`q-animate--scale`),h!==null&&clearTimeout(h),h=setTimeout(()=>{h=null,l.value!==null&&(t.classList.remove(`q-animate--scale`),W())},170))}function ue(t){e.seamless||(e.persistent||e.noEscDismiss?!e.maximized&&!e.noShake&&le():(r(`escapeKey`),I(t)))}function de(t){h!==null&&(clearTimeout(h),h=null),(t||f.value)&&(fe(!1),x&&B(!1),e.seamless||(C(!1),Mi(K),Oi(ue))),t||(g=null)}function fe(e){e?v||=(Hi<1&&document.body.classList.add(`q-body--dialog`),Hi++,!0):v&&=(Hi<2&&document.body.classList.remove(`q-body--dialog`),Hi--,!1)}function pe(e){b||(I(e),r(`click`,e))}function G(t){t.button===0&&(!e.persistent&&!e.noBackdropDismiss?I(t):e.noShake||le())}function K(t){!e.allowFocusOutside&&te.value&&!oe(l.value,t.target)&&!zi(l.value,t.target)&&W(`[tabindex]:not([tabindex="-1"])`)}Object.assign(a.proxy,{focus:W,shake:le,__updateRefocusTarget(e){g=e||null},__getAriaModalEl:()=>R.value?s.value:null}),n(de);function me(){return w(`div`,{ref:s,role:`dialog`,"aria-modal":R.value?`true`:`false`,...i,class:[ae.value,i.class]},[w(M,{name:`q-transition--fade`,appear:!0},()=>R.value?w(`div`,{class:`q-dialog__backdrop fixed-full`,style:A.value,"aria-hidden":`true`,onMousedown:G}):null),w(M,ee(),()=>f.value?w(`div`,{ref:l,class:re.value,style:V(),tabindex:-1,...ie.value},P(t.default)):null)])}return F}}),Ki={dark:{type:Boolean,default:null}};function qi(e,t){return()=>e.dark===null?t.dark.isActive:e.dark}var Ji=q({name:`QCard`,props:{...Ki,tag:{type:String,default:`div`},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){let n=qi(e,O()),r=y(()=>`q-card`+(n()?` q-card--dark q-dark`:``)+(e.bordered?` q-card--bordered`:``)+(e.square?` q-card--square no-border-radius`:``)+(e.flat?` q-card--flat no-shadow`:``));return()=>w(e.tag,{class:r.value},P(t.default))}}),Yi=q({name:`QCardSection`,props:{tag:{type:String,default:`div`},horizontal:Boolean},setup(e,{slots:t}){let n=y(()=>`q-card__section q-card__section--${e.horizontal?`horiz row no-wrap`:`vert`}`);return()=>w(e.tag,{class:n.value},P(t.default))}}),Xi=q({name:`QCardActions`,props:{...te,vertical:Boolean},setup(e,{slots:t}){let n=R(e),r=y(()=>`q-card__actions ${n()} q-card__actions--${e.vertical?`vert column`:`horiz row`}`);return()=>w(`div`,{class:r.value},P(t.default))}}),Zi={true:`inset`,item:`item-inset`,"item-thumbnail":`item-thumbnail-inset`},Qi={xs:2,sm:4,md:8,lg:16,xl:24},$i=q({name:`QSeparator`,props:{...Ki,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){let t=qi(e,O()),n=y(()=>e.vertical?`vertical`:`horizontal`),r=y(()=>` q-separator--${n.value}`),i=y(()=>e.inset?`${r.value}-${Zi[e.inset]}`:``),a=y(()=>`q-separator${r.value}${i.value}`+(e.color===void 0?``:` bg-${e.color}`)+(t()?` q-separator--dark`:``)),o=y(()=>{let t={};if(e.size!==void 0&&(t[e.vertical?`width`:`height`]=e.size),e.spaced){let n=e.spaced===!0?`${Qi.md}px`:e.spaced in Qi?`${Qi[e.spaced]}px`:e.spaced,r=e.vertical?[`Left`,`Right`]:[`Top`,`Bottom`];t[`margin${r[0]}`]=t[`margin${r[1]}`]=n}return t});return()=>w(`hr`,{class:a.value,style:o.value,"aria-orientation":n.value})}});function ea(){if(typeof crypto>`u`)return()=>{throw Error(`[Quasar uid()] Secure RNG not available. Cannot generate collision-resistant UUID.`)};if(crypto.randomUUID)return()=>crypto.randomUUID();let e=Array.from({length:256},(e,t)=>(t+256).toString(16).slice(1)),t,n;return()=>{(t===void 0||n+16>4096)&&(n=0,t=new Uint8Array(4096),crypto.getRandomValues(t));let r=n;return n+=16,t[r+6]=t[r+6]&15|64,t[r+8]=t[r+8]&63|128,e[t[r]]+e[t[r+1]]+e[t[r+2]]+e[t[r+3]]+`-`+e[t[r+4]]+e[t[r+5]]+`-`+e[t[r+6]]+e[t[r+7]]+`-`+e[t[r+8]]+e[t[r+9]]+`-`+e[t[r+10]]+e[t[r+11]]+e[t[r+12]]+e[t[r+13]]+e[t[r+14]]+e[t[r+15]]}}var ta=ea();function na(e){return e??null}function ra(e,t){return e??(t?`f_${ta()}`:null)}function ia({getValue:e,required:n=!0}={}){if(me.value){let r=d(e===void 0?null:na(e()));return n&&r.value===null&&t(()=>{r.value=`f_${ta()}`}),e!==void 0&&c(e,e=>{r.value=ra(e,n)}),r}return e===void 0?d(`f_${ta()}`):y(()=>ra(e(),n))}function aa(e){if(e.codePointAt(0)!==111||e.codePointAt(1)!==110)return!1;let t=e.codePointAt(2);return t>=65&&t<=90}function oa(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let r of n)if(e[r]!==t[r]||!(r in t))return!0;return!1}function sa(){let e=u(),{attrs:t}=e,n={listeners:d({}),attributes:d({})};function r(){let r={},i={};for(let e in t)e!==`class`&&e!==`style`&&!aa(e)&&(r[e]=t[e]);for(let t in e.vnode.props)aa(t)&&(i[t]=e.vnode.props[t]);oa(r,n.attributes.value)&&(n.attributes.value=r),oa(i,n.listeners.value)&&(n.listeners.value=i)}return a(r),r(),n}function ca({validate:e,resetValidation:r,requiresQForm:i}){let a=C(T,!1);if(a!==!1){let{props:i,proxy:o}=u();Object.assign(o,{validate:e,resetValidation:r}),c(()=>i.disable,e=>{e?(typeof r==`function`&&r(),a.unbindComponent(o)):a.bindComponent(o)}),t(()=>{i.disable||a.bindComponent(o)}),n(()=>{i.disable||a.unbindComponent(o)})}else i&&console.error(`Parent QForm not found on useFormChild()!`)}var la=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,ua=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,da=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,fa=/^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])\)$/,pa=/^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(\.[\d]+)?|1(\.0+)?)\)$/,ma=/^-?[\d]+\/(0[1-9]|1[0-2])\/(0[1-9]|[12]\d|3[01])$/,ha=/^([0-1]?\d|2[0-3]):[0-5]\d$/,ga=/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/,_a=/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/,va=/^(([^<>()[\]\\.,;:\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,}))$/,ya={date:e=>ma.test(e),time:e=>ha.test(e),fulltime:e=>ga.test(e),timeOrFulltime:e=>_a.test(e),email:e=>va.test(e),hexColor:e=>la.test(e),hexaColor:e=>ua.test(e),hexOrHexaColor:e=>da.test(e),rgbColor:e=>fa.test(e),rgbaColor:e=>pa.test(e),rgbOrRgbaColor:e=>fa.test(e)||pa.test(e),hexOrRgbColor:e=>la.test(e)||fa.test(e),hexaOrRgbaColor:e=>ua.test(e)||pa.test(e),anyColor:e=>da.test(e)||fa.test(e)||pa.test(e)},ba=[!0,!1,`ondemand`],xa={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>ba.includes(e)}};function Sa(e,t){let{props:r,proxy:i}=u(),a=d(!1),o=d(null),s=d(!1);ca({validate:S,resetValidation:x});let l=0,f,p=!1,m=!1,h=y(()=>r.rules!==void 0&&r.rules!==null&&r.rules.length!==0),g=y(()=>!r.disable&&h.value&&!t.value),_=y(()=>r.error===!0||a.value),v=y(()=>typeof r.errorMessage==`string`&&r.errorMessage.length!==0?r.errorMessage:o.value);c(()=>r.modelValue,()=>{s.value=!0,g.value&&(r.lazyRules===!1||r.lazyRules===!0&&a.value)&&C()});function b(){r.lazyRules!==`ondemand`&&g.value&&s.value&&C()}c(()=>r.reactiveRules,e=>{e?f===void 0&&(f=c(()=>r.rules,b,{immediate:!0,deep:!0})):f!==void 0&&(f(),f=void 0)},{immediate:!0}),c(()=>r.lazyRules,b),c(e,e=>{e?s.value=!0:r.lazyRules!==`ondemand`&&(g.value?C():!r.disable&&h.value&&t.value&&(m=!0))});function x(){l++,t.value=!1,s.value=!1,a.value=!1,o.value=null,m=!1,C.cancel()}function S(e=r.modelValue){if(r.disable||!h.value)return!0;let n=++l,i=r.modelValue;m=!1;let c=()=>{let e=m;m=!1,!p&&r.modelValue!==i&&g.value&&r.lazyRules!==`ondemand`&&(r.lazyRules===!1||a.value||e)&&C()},u=t.value?()=>{}:()=>{s.value=!0},d=(e,n)=>{e&&u(),a.value=e,o.value=n||null,t.value=!1},f=[];for(let t=0;t<r.rules.length;t++){let n=r.rules[t],i;if(typeof n==`function`?i=n(e,ya):typeof n==`string`&&(ya[n]===void 0?(console.error(`Unknown validation pattern rule: "${n}"`),i=!1):i=ya[n](e)),i===!1||typeof i==`string`)return d(!0,i),!1;i!==!0&&i!==void 0&&f.push(i)}return f.length===0?(d(!1),!0):(t.value=!0,Promise.all(f).then(e=>{if(e===void 0||!Array.isArray(e)||e.length===0)return n===l&&(d(!1),c()),!0;let t=e.find(e=>e===!1||typeof e==`string`);return n===l&&(d(t!==void 0,t),c()),t===void 0},e=>(n===l&&(console.error(e),d(!0),c()),!1)))}let C=_e(S,0);return n(()=>{p=!0,f?.(),C.cancel()}),Object.assign(i,{resetValidation:x,validate:S}),W(i,`hasError`,()=>_.value),{isDirtyModel:s,hasRules:h,hasError:_,errorMessage:v,validate:S,resetValidation:x}}function Ca(e){return e!=null&&String(e).length!==0}var wa={...Ki,...xa,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]},Ta=[`update:modelValue`,`clear`,`focus`,`blur`];function Ea({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){let{props:r}=u(),i=qi(r,O()),a=ia({required:e,getValue:()=>r.for});return{requiredForAttr:e,changeEvent:n,tag:t?{get value(){return r.tag}}:{value:`label`},isDark:i,editable:y(()=>!r.disable&&!r.readonly),innerLoading:d(!1),focused:d(!1),hasPopupOpen:!1,splitAttrs:sa(),targetUid:a,rootRef:_(null),targetRef:_(null),controlRef:_(null)}}var Da={class:`q-field__prepend q-field__marginal row no-wrap items-center`,key:`prepend`,onClick:ue},Oa={class:`q-field__append q-field__marginal row no-wrap items-center`,key:`append`,onClick:ue},ka={class:`q-field__control-container col relative-position row no-wrap q-anchor--skip`},Aa={class:`q-field__prefix no-pointer-events row items-center`},ja={class:`q-field__suffix no-pointer-events row items-center`},Ma={class:`q-field__inner relative-position col self-stretch`},Na={class:`q-field__before q-field__marginal row no-wrap items-center`,onClick:ue},Pa={class:`q-field__after q-field__marginal row no-wrap items-center`,onClick:ue},Fa={name:`q-transition--field-message`},Ia={};function La(e,t){return t===null?null:w(`div`,{key:e,class:`q-field__append q-field__marginal row no-wrap items-center q-anchor--skip`},t)}function Ra(e){let{props:r,emit:i,slots:a,attrs:o,proxy:c}=u(),l=O(),d=null;e.hasValue===void 0&&(e.hasValue=y(()=>Ca(r.modelValue))),e.emitValue===void 0&&(e.emitValue=e=>{i(`update:modelValue`,e)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:F,onFocusout:L,onPopupShow:ne,onPopupHide:re}),Object.assign(e,{clearValue:R,onControlFocusin:F,onControlFocusout:L,focus:N}),e.computedCounter===void 0&&(e.computedCounter=y(()=>{if(r.counter){let e=typeof r.modelValue==`string`||typeof r.modelValue==`number`?String(r.modelValue).length:Array.isArray(r.modelValue)?r.modelValue.length:0,t=r.maxlength===void 0?r.maxValues:r.maxlength;return e+(t===void 0?``:` / `+t)}}));let{isDirtyModel:f,hasRules:p,hasError:m,errorMessage:g,resetValidation:_}=Sa(e.focused,e.innerLoading),v=y(()=>m.value&&e.targetUid.value?`${e.targetUid.value}_error`:void 0);function b(e){if(m.value!==!0)return Ia;let t={"aria-invalid":`true`};return v.value!==void 0&&(!r.hideBottomSpace||r.counter||a.counter!==void 0||g.value!==null||a.error!==void 0)&&(t[`aria-errormessage`]=e?.[`aria-errormessage`]===void 0?v.value:e[`aria-errormessage`],t[`aria-describedby`]=e?.[`aria-describedby`]===void 0?v.value:`${e[`aria-describedby`]} ${v.value}`),t}Object.assign(e,{hasError:m,errorMessage:g,errorMessageId:v,getErrorAriaAttrs:b});let x=e.floatingLabel===void 0?y(()=>r.stackLabel||e.focused.value||e.hasValue.value):y(()=>r.stackLabel||e.focused.value||e.floatingLabel.value),C=y(()=>r.bottomSlots||r.hint!==void 0||p.value||r.counter||r.error!==null),T=y(()=>`q-field row no-wrap items-start q-field--`+(r.filled?`filled`:r.outlined?`outlined`:r.borderless?`borderless`:r.standout?`standout`:`standard`)+(e.fieldClass===void 0?``:` ${e.fieldClass.value}`)+(r.rounded?` q-field--rounded`:``)+(r.square?` q-field--square`:``)+(x.value?` q-field--float`:``)+(D.value?` q-field--labeled`:``)+(r.dense?` q-field--dense`:``)+(r.itemAligned?` q-field--item-aligned q-item-type`:``)+(e.isDark()?` q-field--dark`:``)+(e.getControl===void 0?` q-field--auto-height`:``)+(e.focused.value?` q-field--focused`:``)+(m.value?` q-field--error`:``)+(m.value||e.focused.value?` q-field--highlighted`:``)+(!r.hideBottomSpace&&C.value?` q-field--with-bottom`:``)+(r.disable?` q-field--disabled`:r.readonly?` q-field--readonly`:``)),E=y(()=>`q-field__control relative-position row no-wrap`+(r.bgColor===void 0?``:` bg-${r.bgColor}`)+(m.value?` text-negative`:typeof r.standout==`string`&&r.standout.length!==0&&e.focused.value?` ${r.standout}`:r.color===void 0?``:` text-${r.color}`)),D=y(()=>r.labelSlot||r.label!==void 0),ee=y(()=>`q-field__label no-pointer-events absolute ellipsis`+(r.labelColor!==void 0&&!m.value?` text-${r.labelColor}`:``)),k=y(()=>W({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:x.value,modelValue:r.modelValue,emitValue:e.emitValue,ariaInvalid:m.value===!0?`true`:void 0,ariaDescribedby:v.value,ariaErrormessage:v.value},`field`,()=>e.rootRef.value)),A=y(()=>{let t={};return e.targetUid.value&&(t.for=e.targetUid.value),r.disable&&(t[`aria-disabled`]=`true`),t});function j(){let t=document.activeElement,n=e.targetRef?.value;n&&(t===null||t.id!==e.targetUid.value)&&(n.hasAttribute(`tabindex`)||(n=n.querySelector(`[tabindex]`)),n!==t&&n?.focus({preventScroll:!0}))}function N(){Nr(j)}function te(){Pr(j);let t=document.activeElement;t!==null&&e.rootRef.value.contains(t)&&t.blur()}function F(t){d!==null&&(clearTimeout(d),d=null),e.editable.value&&!e.focused.value&&(e.focused.value=!0,i(`focus`,t))}function L(t,n){d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,!(document.hasFocus()&&(e.hasPopupOpen||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)))&&(e.focused.value&&(e.focused.value=!1,i(`blur`,t)),n?.())},0)}function ne(t){e.hasPopupOpen=!0,F(t)}function re(t){e.hasPopupOpen=!1,L(t)}function R(t){de(t),l.platform.is.mobile?e.rootRef.value.contains(document.activeElement)&&document.activeElement.blur():(e.targetRef?.value||e.rootRef.value).focus(),r.type===`file`&&(e.inputRef.value.value=null),e.onClear?.(),i(`update:modelValue`,null),e.changeEvent&&i(`change`,null),i(`clear`,r.modelValue),S(()=>{let e=f.value;_(),f.value=e})}function ie(e){[13,32].includes(e.keyCode)&&R(e)}function ae(){let t=[];a.prepend!==void 0&&t.push(w(`div`,Da,a.prepend())),t.push(w(`div`,ka,B())),m.value&&!r.noErrorIcon&&t.push(La(`error`,[w(I,{name:l.iconSet.field.error,color:`negative`})]));let n=r.loading||e.innerLoading.value?a.loading===void 0?e.shouldHideLoadingIndicator?.()?null:[w(z,{color:r.color})]:a.loading():null;return n===null?r.clearable&&e.hasValue.value&&e.editable.value&&t.push(La(`inner-clearable-append`,[w(I,{class:`q-field__focusable-action`,name:r.clearIcon||l.iconSet.field.clear,tabindex:0,role:`button`,"aria-hidden":`false`,"aria-label":l.lang.label.clear,onKeyup:ie,onClick:R})])):t.push(La(`inner-loading-append`,n)),a.append!==void 0&&t.push(w(`div`,Oa,a.append())),e.getInnerAppend!==void 0&&t.push(La(`inner-append`,e.getInnerAppend())),e.getControlChild!==void 0&&t.push(e.getControlChild()),t}function B(){let t=[];return r.prefix!==void 0&&r.prefix!==null&&t.push(w(`div`,Aa,r.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value&&t.push(e.getShadowControl()),D.value&&t.push(w(`div`,{class:ee.value},P(a.label,r.label))),e.getControl===void 0?a.rawControl===void 0?a.control!==void 0&&t.push(w(`div`,{ref:e.targetRef,class:`q-field__native row`,tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":r.autofocus||void 0},a.control(k.value))):t.push(a.rawControl()):t.push(e.getControl()),r.suffix!==void 0&&r.suffix!==null&&t.push(w(`div`,ja,r.suffix)),t.concat(P(a.default))}function V(){let t,n;m.value?g.value===null?(t=P(a.error),n=`q--slot-error`):(t=[w(`div`,{role:`alert`},g.value)],n=`q--slot-error-${g.value}`):(!r.hideHint||e.focused.value)&&(r.hint===void 0?(t=P(a.hint),n=`q--slot-hint`):(t=[w(`div`,r.hint)],n=`q--slot-hint-${r.hint}`));let i=r.counter||a.counter!==void 0;if(r.hideBottomSpace&&!i&&t===void 0)return;let o=w(`div`,{key:n,id:m.value===!0?v.value:void 0,class:`q-field__messages col`},t);return w(`div`,{class:`q-field__bottom row items-start q-field__bottom--`+(r.hideBottomSpace?`stale`:`animated`),onClick:ue},[r.hideBottomSpace?o:w(M,Fa,()=>o),i?w(`div`,{class:`q-field__counter`},a.counter===void 0?e.computedCounter.value:a.counter()):null])}let H=!1;return h(()=>{H=!0}),s(()=>{H&&r.autofocus&&c.focus()}),r.autofocus&&t(()=>{c.focus()}),n(()=>{d!==null&&clearTimeout(d)}),Object.assign(c,{focus:N,blur:te}),function(){let t=e.getControl===void 0&&a.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":r.autofocus||void 0,...A.value}:A.value;return w(e.tag.value,{ref:e.rootRef,class:[T.value,o.class],style:o.style,...t},[a.before===void 0?null:w(`div`,Na,a.before()),w(`div`,Ma,[w(`div`,{ref:e.controlRef,class:E.value,tabindex:-1,...e.controlEvents},ae()),C.value?V():null]),a.after===void 0?null:w(`div`,Pa,a.after())])}}var za={date:`####/##/##`,datetime:`####/##/## ##:##`,time:`##:##`,fulltime:`##:##:##`,phone:`(###) ### - ####`,card:`#### #### #### ####`},Ba={"[\\d]":e=>{let t=e.codePointAt(0);return t>47&&t<58},"[a-zA-Z]":e=>{let t=e.codePointAt(0);return t>64&&t<91||t>96&&t<123},"[0-9a-zA-Z]":e=>{let t=e.codePointAt(0);return t>47&&t<58||t>64&&t<91||t>96&&t<123}},{tokenMap:Va,tokenKeys:Ha}=Ua({"#":{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()}});function Ua(e){let t=Object.keys(e),n={};return t.forEach(t=>{let r=e[t],i;if(Object.hasOwn(Ba,r.pattern))i=Ba[r.pattern];else{let e=new RegExp(r.pattern);i=t=>e.test(t)}n[t]={...r,test:i}}),{tokenMap:n,tokenKeys:t}}function Wa(e){return RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+e.join(``)+`])|(.)`,`g`)}var Ga=[`insertText`,`deleteContentBackward`,`deleteContentForward`,`deleteWordBackward`,`deleteWordForward`,`deleteByCut`],Ka=/[.*+?^${}()|[\]\\]/g,qa=Wa(Ha),Q=String.fromCodePoint(1),Ja={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean,maskTokens:Object};function Ya(e,t,n,r,i){let a,o,s,l,u,f,p,m=y(()=>{if(e.maskTokens===void 0||e.maskTokens===null)return{tokenMap:Va,tokenRegexMask:qa};let{tokenMap:t}=Ua(e.maskTokens),n={...Va,...t};return{tokenMap:n,tokenRegexMask:Wa(Object.keys(n))}}),h=d(null),g=d(v());function _(){return e.autogrow||[`textarea`,`text`,`search`,`url`,`tel`,`password`].includes(e.type)}c(()=>e.type+e.autogrow,x),c(()=>e.mask,n=>{if(n!==void 0)T(g.value,!0);else{let n=N(h.value?P(g.value,p):g.value);x(),e.modelValue!==n&&t(`update:modelValue`,n)}}),c(()=>e.fillMask+e.reverseFillMask,()=>{h.value&&T(g.value,!0)}),c(()=>e.unmaskedValue,()=>{h.value&&T(g.value)}),c(()=>e.maskTokens,()=>{h.value&&T(g.value,!0)},{deep:!0});function v(){if(x(),h.value){let t=k(N(e.modelValue));return p=t.length,e.fillMask===!1?t:te(t)}return p=0,e.modelValue}function b(e){if(e<a.length)return a.slice(-e);let t=``,n=a,r=n.indexOf(Q);if(r!==-1){for(let r=e-n.length;r>0;r--)t+=Q;n=n.slice(0,r)+t+n.slice(r)}return n}function x(){if(h.value=e.mask!==void 0&&e.mask.length!==0&&_(),!h.value){l=void 0,a=``,o=``;return}let t=za[e.mask]===void 0?e.mask:za[e.mask],n=typeof e.fillMask==`string`&&e.fillMask.length!==0?e.fillMask.slice(0,1):`_`,r=n.replace(Ka,String.raw`\$&`),i=[],c=[],u=[],d=e.reverseFillMask,f=``,p=``;t.replace(m.value.tokenRegexMask,(e,t,n,r,a)=>{if(r!==void 0){let e=m.value.tokenMap[r];u.push(e),p=e.negate,d&&=(c.push({c:e,overflow:!0}),!1),c.push({c:e});return}if(n!==void 0)f=`\\`+(n===`\\`?``:n),u.push(n);else{let e=t===void 0?a:t;f=e===`\\`?String.raw`\\\\`:e.replace(Ka,String.raw`\\$&`),u.push(e)}i.push(`([^`+f+`]+)?`+f+`?`)});let g=[...new Set(u.filter(e=>typeof e!=`string`).map(({pattern:e})=>e))],v=RegExp(`^`+i.join(``)+`(`+(f===``?`.`:`[^`+f+`]`)+`+)?`+(f===``?``:`[`+f+`]*`)+`$`),y=c.length-1,b=g.length===1?p:`(?:`+g.map(e=>`(?!`+e+`)`).join(``)+String.raw`[\s\S])`,x=({c:e,overflow:t})=>t===!0?`(?:`+b+`+)?(`+e.pattern+`+)?(?:`+b+`+)?(`+e.pattern+`+)?`:`(?:`+b+`+)?(`+e.pattern+`)?`,S=c.map((t,n)=>{let i=x(t);return n===0&&e.reverseFillMask?RegExp(`^`+r+`*`+i):RegExp(n===y?`^`+i+`(`+(p===``?`.`:p)+`+)?`+(e.reverseFillMask?`$`:r+`*`):`^`+i)});s=u,l=t=>{let n=v.exec(e.reverseFillMask?t:t.slice(0,u.length+1));n!==null&&(t=n.slice(1).join(``));let r=[],i=S.length;for(let e=0,n=t;e<i;e++){let t=S[e].exec(n);if(t===null)break;n=n.slice(t.shift().length),r.push(...t)}return r.length===0?t:r.join(``)},a=u.map(e=>typeof e==`string`?e:Q).join(``),o=a.split(Q).join(n)}function C(t,n){let r=t.length,i=e.reverseFillMask?b(r):a,o=e.reverseFillMask?s.length-r:0,c=e.reverseFillMask?0:Math.min(n,r),l=e.reverseFillMask?r-n:r;return e=>{if(i[e]!==Q||e>=c&&e<l)return!1;let n=s[o+e];return n===void 0||typeof n==`string`||n.test(t[e])}}function w(e,t,n){let r=C(e,n),i=0;for(let e=0;e<t;e++)r(e)&&i++;return i}function T(t,s,c){let l=r.value,d=l?.selectionEnd??0,f=l===null?0:l.value.length-d,m=s!==!0&&typeof g.value==`string`&&Ga.includes(c)?M(g.value,p,t,c):N(t),h;s===!0&&l!==null&&a.length!==0&&(h=w(l.value,d,p)),s===!0&&x();let _=k(m,s),v=e.fillMask===!1?_:te(_),y=_.length,b=g.value!==v,C=b||y!==p;p=y;let T=e.fillMask!==!1&&y===0;l!==null&&l.value!==v&&(l.value=v),b&&(g.value=v),l!==null&&document.activeElement===l&&S(()=>{if(T){let t=e.reverseFillMask?o.length:0;l.setSelectionRange(t,t,`forward`);return}if(h!==void 0){let e=0,t=0;for(;e<v.length&&t<h;)t=w(v,e+1,y),e++;l.setSelectionRange(e,e,`forward`);return}if(c===`insertFromPaste`&&!e.reverseFillMask){let e=l.selectionEnd,t=d-1;for(let n=u;n<=t&&n<e;n++)a[n]!==Q&&t++;D.right(l,t);return}if([`deleteContentBackward`,`deleteContentForward`].includes(c)){let t=e.reverseFillMask?d===0?+(v.length>_.length):Math.max(0,v.length-(T?0:Math.min(_.length,f)+1))+1:d;l.setSelectionRange(t,t,`forward`);return}if(e.reverseFillMask){if(C){let e=Math.max(0,v.length-(T?0:Math.min(_.length,f+1)));e===1&&d===1?l.setSelectionRange(e,e,`forward`):D.rightReverse(l,e)}else{let e=v.length-f;l.setSelectionRange(e,e,`backward`)}}else if(C){let e=Math.max(0,a.indexOf(Q),Math.min(_.length,d)-1);D.right(l,e)}else{let e=d-1;D.right(l,e)}});let E=e.unmaskedValue?N(_):v;String(e.modelValue)!==E&&(e.modelValue!==null||E!==``)?n(E,!0):i!==void 0&&i()}function E(e,t,n){let r=k(N(e.value));t=Math.max(0,a.indexOf(Q),Math.min(r.length,t)),u=t,e.setSelectionRange(t,n,`forward`)}let D={left(e,t){let n=!a.slice(t-1).includes(Q),r=Math.max(0,t-1);for(;r>=0;r--)if(a[r]===Q){t=r,n&&t++;break}if(r<0&&a[t]!==void 0&&a[t]!==Q)return D.right(e,0);t>=0&&e.setSelectionRange(t,t,`backward`)},right(e,t){let n=e.value.length,r=Math.min(n,t+1);for(;r<=n;r++)if(a[r]===Q){t=r;break}else a[r-1]===Q&&(t=r);if(r>n&&a[t-1]!==void 0&&a[t-1]!==Q)return D.left(e,n);e.setSelectionRange(t,t,`forward`)},leftReverse(e,t){let n=b(e.value.length),r=Math.max(0,t-1);for(;r>=0;r--)if(n[r-1]===Q){t=r;break}else if(n[r]===Q&&(t=r,r===0))break;if(r<0&&n[t]!==void 0&&n[t]!==Q)return D.rightReverse(e,0);t>=0&&e.setSelectionRange(t,t,`backward`)},rightReverse(e,t){let n=e.value.length,r=b(n),i=!r.slice(0,t+1).includes(Q),a=Math.min(n,t+1);for(;a<=n;a++)if(r[a-1]===Q){t=a,t>0&&i&&t--;break}if(a>n&&r[t-1]!==void 0&&r[t-1]!==Q)return D.leftReverse(e,n);e.setSelectionRange(t,t,`forward`)}};function ee(e){t(`click`,e),f=void 0}function O(n){if(t(`keydown`,n),n.defaultPrevented||n.altKey||j(n))return;let i=r.value,a=i.selectionStart,o=i.selectionEnd;if(n.shiftKey||(f=void 0),n.keyCode===37||n.keyCode===39){n.shiftKey&&f===void 0&&(f=i.selectionDirection===`forward`?a:o);let t=D[(n.keyCode===39?`right`:`left`)+(e.reverseFillMask?`Reverse`:``)];if(n.preventDefault(),t(i,f===a?o:a),n.shiftKey){let e=i.selectionStart;i.setSelectionRange(Math.min(f,e),Math.max(f,e),`forward`)}}else n.keyCode===8&&!e.reverseFillMask&&a===o?(D.left(i,a),i.setSelectionRange(i.selectionStart,o,`backward`)):n.keyCode===46&&e.reverseFillMask&&a===o&&(D.rightReverse(i,o),i.setSelectionRange(a,i.selectionEnd,`forward`))}function k(t,n){if(t==null||t===``)return``;if(e.reverseFillMask)return A(t,n);let r=s,i=0,a=``;for(let e=0;e<r.length;e++){let o=t[i],s=r[e];if(typeof s==`string`)a+=s,n===!0&&o===s&&i++;else if(o!==void 0&&s.test(o))a+=s.transform===void 0?o:s.transform(o),i++;else return a}return a}function A(e,t){let n=s,r=a.indexOf(Q),i=e.length-1,o=``,c=``;for(let a=n.length-1;a>=0&&i!==-1;a--){let s=n[a],l=e[i];if(typeof s==`string`)c=s+c,t===!0&&l===s&&i--;else if(l!==void 0&&s.test(l)){o=c+o,c=``;do o=(s.transform===void 0?l:s.transform(l))+o,i--,l=e[i];while(r===a&&l!==void 0&&s.test(l))}else return o}return o}function M(t,n,r,i){let a=t.length,o=r.length,c=Math.min(a,o),l=0;for(;l<c&&t[l]===r[l];)l++;let u=0;for(;u<c-l&&t[a-1-u]===r[o-1-u];)u++;let d=C(t,n),f=``,p=``;for(let e=0;e<l;e++)d(e)&&(f+=t[e]);for(let e=a-u;e<a;e++)d(e)&&(p+=t[e]);let m=``,h=r.slice(l,o-u);if(h.length!==0){if(e.reverseFillMask)for(let e of h)s.some(t=>typeof t!=`string`&&t.test(e))&&(m+=e);else{let e=s.filter(e=>typeof e!=`string`),t=f.length;for(let n of h)e[t]!==void 0&&e[t].test(n)&&(m+=n,t++)}}else if(!e.reverseFillMask&&l+u<a){let e=!1;for(let t=l;t<a-u;t++)if(d(t)){e=!0;break}e||(i===`deleteContentForward`?p=p.slice(1):f=f.slice(0,-1))}return f+m+p}function N(e){return typeof e!=`string`||l===void 0?typeof e==`number`?l(String(e)):e:l(e)}function P(t,n){return n>=t.length?t:e.reverseFillMask?t.slice(t.length-n):t.slice(0,n)}function te(t){return o.length-t.length<=0?t:e.reverseFillMask&&t.length!==0?o.slice(0,-t.length)+t:t+o.slice(t.length)}return{innerValue:g,hasMask:h,moveCursorForPaste:E,updateMaskValue:T,onMaskedKeydown:O,onMaskedClick:ee}}var Xa={name:String};function Za(e){return(t,n,r)=>{t[n](w(`input`,{class:`hidden`+(r||``),...e===void 0?void 0:e()}))}}function Qa(e){return()=>e.name||e.for}function $a(e,t){function n(){let t=e.modelValue;try{let e=new DataTransfer;return Object(t)===t&&(`length`in t?[...t]:[t]).forEach(t=>{e.items.add(t)}),{files:e.files}}catch{return{files:void 0}}}return y(t?()=>{if(e.type===`file`)return n()}:n)}var eo=/[\u3000-\u303F\u3040-\u309F\u30A0-\u30FF\uFF00-\uFF9F\u4E00-\u9FAF\u3400-\u4DBF]/,to=/[\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,no=/[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/,ro=/[a-z0-9_ -]$/i;function io(e){return function(t){if(t.type===`compositionend`||t.type===`change`){if(!t.target.qComposing)return;t.target.qComposing=!1,e(t)}else t.type===`compositionupdate`&&!t.target.qComposing&&typeof t.data==`string`&&(G.is.firefox?!ro.test(t.data):eo.test(t.data)||to.test(t.data)||no.test(t.data))&&(t.target.qComposing=!0)}}var ao=q({name:`QInput`,inheritAttrs:!1,props:{...wa,...Ja,...Xa,modelValue:[String,Number,FileList],modelModifiers:Object,shadowText:String,type:{type:String,default:`text`},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Ta,`paste`,`change`,`keydown`,`click`,`animationend`],setup(e,{emit:r,attrs:i}){let{proxy:a}=u(),o=O(),s={},l=NaN,d=!1,f=!1,p=null,m,h=_(null),g=Qa(e),{innerValue:v,hasMask:b,moveCursorForPaste:x,updateMaskValue:C,onMaskedKeydown:T,onMaskedClick:E}=Ya(e,r,ae,h,()=>{z(),delete s.value}),D=$a(e,!0),ee=y(()=>Ca(v.value)),k=io(R);function A(e){if(b.value&&e.type===`compositionstart`){e.target.qComposing=!0;return}k(e)}let j=Ea({changeEvent:!0}),M=y(()=>e.type===`textarea`||e.autogrow),N=y(()=>M.value||[`text`,`search`,`url`,`tel`,`password`].includes(e.type)),P=y(()=>{let t={...j.splitAttrs.listeners.value,onInput:R,onPaste:re,onChange:H,onBlur:oe,onFocus:le};return t.onCompositionstart=t.onCompositionupdate=t.onCompositionend=A,b.value&&(t.onKeydown=T,t.onClick=E),e.autogrow&&(t.onAnimationend=ie),t}),te=y(()=>{let t={tabindex:0,"data-autofocus":e.autofocus||void 0,rows:e.type===`textarea`?6:void 0,"aria-label":e.label,name:g(),...j.splitAttrs.attributes.value,id:j.targetUid.value,maxlength:e.maxlength,disabled:e.disable,readonly:e.readonly};return M.value||(t.type=e.type),e.autogrow&&(t.rows=1),t});c(()=>e.type,()=>{h.value&&(h.value.value=e.modelValue)}),c(()=>e.modelValue,t=>{if(m!==void 0&&(z(),d=!1,f=!1,delete s.value),b.value){if(f&&(f=!1,String(t)===l))return;C(t)}else v.value!==t&&(v.value=t,e.type===`number`&&Object.hasOwn(s,`value`)&&(d?d=!1:delete s.value),e.modelModifiers?.trim===!0&&Object.hasOwn(s,`value`)&&(typeof s.value!=`string`||s.value.trim()!==t)&&delete s.value);e.autogrow&&S(V)}),c(()=>e.autogrow,e=>{if(e)S(V);else if(h.value!==null){let{style:e}=h.value;e.overflowY=``,e.height=i.rows>0?`auto`:``}}),c(()=>e.dense,()=>{e.autogrow&&S(V)});function F(){let e=document.activeElement;h.value!==null&&h.value!==e&&(e===null||e.id!==j.targetUid.value)&&h.value.focus({preventScroll:!0})}function I(){Nr(F)}function L(){Pr(F);let e=document.activeElement;e!==null&&j.rootRef.value.contains(e)&&e.blur()}function ne(){h.value?.select()}function re(t){if(b.value&&e.reverseFillMask!==!0){let e=t.target;x(e,e.selectionStart,e.selectionEnd)}r(`paste`,t)}function R(t){if(!t||!t.target)return;if(e.type===`file`){r(`update:modelValue`,t.target.files);return}let n=t.target.value;if(t.target.qComposing){s.value=n;return}if(b.value)C(n,!1,t.inputType);else if(e.modelModifiers?.trim===!0&&(s.value=n),ae(n),N.value&&t.target===document.activeElement){let{selectionStart:e,selectionEnd:r}=t.target;e!==void 0&&r!==void 0&&S(()=>{t.target===document.activeElement&&n.indexOf(t.target.value)===0&&t.target.setSelectionRange(e,r)})}e.autogrow&&V()}function ie(e){r(`animationend`,e),V()}function ae(t,n){m=()=>{p=null,e.type!==`number`&&(e.modelModifiers?.trim!==!0||b.value)&&Object.hasOwn(s,`value`)&&delete s.value,e.modelValue!==t&&l!==t&&(l=t,n===!0&&(f=!0),r(`update:modelValue`,t),S(()=>{l===t&&(l=NaN)})),m=void 0},e.type===`number`&&(d=!0,s.value=t);let i=()=>{b.value?delete s.value:s.value=t};e.modelModifiers?.lazy===!0?i():e.debounce===void 0?m():(p!==null&&clearTimeout(p),i(),p=setTimeout(m,e.debounce))}function z(){p!==null&&(clearTimeout(p),p=null),m=void 0}function B(){z(),d=!1,f=!1,delete s.value}function V(){requestAnimationFrame(()=>{let e=h.value;if(e!==null){let t=e.parentNode.style,{scrollTop:n}=e,{overflowY:r,maxHeight:i}=o.platform.is.firefox?{}:window.getComputedStyle(e),a=r!==void 0&&r!==`scroll`;a&&(e.style.overflowY=`hidden`),t.marginBottom=e.scrollHeight-1+`px`,e.style.height=`1px`,e.style.height=e.scrollHeight+`px`,a&&(e.style.overflowY=Number.parseInt(i,10)<e.scrollHeight?`auto`:`hidden`),t.marginBottom=``,e.scrollTop=n}})}function H(e){A(e),p!==null&&(clearTimeout(p),p=null),m?.(),r(`change`,e.target.value)}function oe(t){t!==void 0&&le(t),p!==null&&(clearTimeout(p),p=null),m?.(),d=!1,f=!1,delete s.value,e.type!==`file`&&setTimeout(()=>{h.value!==null&&(h.value.value=v.value===void 0?``:v.value)},0)}function se(){return Object.hasOwn(s,`value`)?s.value:v.value===void 0?``:v.value}n(()=>{oe()}),t(()=>{e.autogrow&&V()}),Object.assign(j,{innerValue:v,fieldClass:y(()=>`q-${M.value?`textarea`:`input`}`+(e.autogrow?` q-textarea--autogrow`:``)),hasShadow:y(()=>e.type!==`file`&&typeof e.shadowText==`string`&&e.shadowText.length!==0),inputRef:h,emitValue:ae,onClear:B,hasValue:ee,floatingLabel:y(()=>ee.value&&(e.type!==`number`||Number.isFinite(Number(v.value)))||Ca(e.displayValue)),getControl:()=>{let t=te.value;return w(M.value?`textarea`:`input`,{ref:h,class:[`q-field__native q-placeholder`,e.inputClass],style:e.inputStyle,...t,...j.getErrorAriaAttrs(t),...P.value,...e.type===`file`?D.value:{value:se()}})},getShadowControl:()=>w(`div`,{class:`q-field__native q-field__shadow absolute-bottom no-pointer-events`+(M.value?``:` text-no-wrap`)},[w(`span`,{class:`invisible`},se()),w(`span`,e.shadowText)])});let U=Ra(j);return Object.assign(a,{focus:I,blur:L,select:ne,getNativeElement:()=>h.value}),W(a,`nativeEl`,()=>h.value),U}});function oo(e,t){let n=_(null),r=y(()=>e.disable?null:w(`span`,{ref:n,class:`no-outline`,tabindex:-1}));function i(e){let r=t.value;e?.qAvoidFocus!==!0&&r?.getAttribute(`aria-hidden`)!==`true`&&(e?.type.indexOf(`key`)===0?document.activeElement!==r&&r?.contains(document.activeElement)===!0&&r.focus({preventScroll:!0}):n.value!==null&&(e===void 0||r?.contains(e.target)===!0)&&n.value.focus({preventScroll:!0}))}return{refocusTargetEl:r,refocusTarget:i}}var so=L({xs:30,sm:35,md:40,lg:50,xl:60}),co=()=>w(`svg`,{key:`svg`,class:`q-radio__bg absolute non-selectable`,viewBox:`0 0 24 24`},[w(`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`}),w(`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`})]);function lo(e){(e.keyCode===13||e.keyCode===32)&&de(e)}var uo=q({name:`QRadio`,props:{...Ki,...ie,...Xa,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:n}){let{proxy:r}=u(),i=qi(e,O()),a=_(null),{refocusTargetEl:o,refocusTarget:s}=oo(e,a),c=y(()=>v(e.modelValue)===v(e.val)),l=y(()=>`q-radio cursor-pointer no-outline row inline no-wrap items-center`+(e.disable?` disabled`:``)+(i()?` q-radio--dark`:``)+(e.dense?` q-radio--dense`:``)+(e.leftLabel?` reverse`:``)),d=y(()=>{let t=e.color!==void 0&&(e.keepColor||c.value)?` text-${e.color}`:``;return`q-radio__inner relative-position q-radio__inner--${c.value?`truthy`:`falsy`}${t}`}),f=y(()=>(c.value?e.checkedIcon:e.uncheckedIcon)||null),p=y(()=>e.disable?-1:e.tabindex||0),m=Za(()=>{let t={type:`radio`};return e.name!==void 0&&Object.assign(t,{".checked":c.value,"^checked":c.value?`checked`:void 0,name:e.name,value:e.val}),t});function h(t){t!==void 0&&(de(t),s(t)),!e.disable&&!c.value&&n(`update:modelValue`,e.val,t)}function g(e){(e.keyCode===13||e.keyCode===32)&&h(e)}Object.assign(r,{set:h});let b=co();return()=>{let n=f.value===null?[b]:[w(`div`,{key:`icon`,class:`q-radio__icon-container absolute-full flex flex-center no-wrap`},[w(I,{class:`q-radio__icon`,name:f.value})])];e.disable||m(n,`unshift`,` q-radio__native q-ma-none q-pa-none`);let r=[w(`div`,{class:d.value,style:so(e.size),"aria-hidden":`true`},n)];o.value!==null&&r.push(o.value);let i=e.label===void 0?P(t.default):re(t.default,[e.label]);return i!==void 0&&r.push(w(`div`,{class:`q-radio__label q-anchor--skip`},i)),w(`div`,{ref:a,class:l.value,tabindex:p.value,role:`radio`,"aria-label":e.label,"aria-checked":c.value?`true`:`false`,"aria-disabled":e.disable?`true`:void 0,onClick:h,onKeydown:lo,onKeyup:g},r)}}}),fo={...Ki,...ie,...Xa,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]},po=[`update:modelValue`];function mo(e){(e.keyCode===13||e.keyCode===32)&&de(e)}function ho(e,t){let{props:n,slots:r,emit:i,proxy:a}=u(),o=qi(n,O()),s=_(null),{refocusTargetEl:c,refocusTarget:l}=oo(n,s),d=y(()=>n.val!==void 0&&Array.isArray(n.modelValue)),f=y(()=>{let e=v(n.val);return d.value?n.modelValue.findIndex(t=>v(t)===e):-1}),p=y(()=>d.value?f.value!==-1:v(n.modelValue)===v(n.trueValue)),m=y(()=>d.value?f.value===-1:v(n.modelValue)===v(n.falseValue)),h=y(()=>!p.value&&!m.value),g=y(()=>n.disable?-1:n.tabindex||0),b=y(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable?` disabled`:``)+(o()?` q-${e}--dark`:``)+(n.dense?` q-${e}--dense`:``)+(n.leftLabel?` reverse`:``)),x=y(()=>`q-${e}__inner relative-position non-selectable q-${e}__inner--${p.value?`truthy`:m.value?`falsy`:`indet`}${n.color!==void 0&&(n.keepColor||(e===`toggle`?p.value:!m.value))?` text-${n.color}`:``}`),S=Za(()=>{let e={type:`checkbox`};return n.name!==void 0&&Object.assign(e,{".checked":p.value,"^checked":p.value?`checked`:void 0,name:n.name,value:d.value?n.val:n.trueValue}),e}),C=y(()=>{let t={tabindex:g.value,role:e===`toggle`?`switch`:`checkbox`,"aria-label":n.label,"aria-checked":h.value?e===`toggle`?`false`:`mixed`:p.value?`true`:`false`};return n.disable&&(t[`aria-disabled`]=`true`),t});function T(e){e!==void 0&&(de(e),l(e)),n.disable||i(`update:modelValue`,E(),e)}function E(){if(d.value){if(p.value){let e=[...n.modelValue];return e.splice(f.value,1),e}return[...n.modelValue,n.val]}if(p.value){if(n.toggleOrder!==`ft`||!n.toggleIndeterminate)return n.falseValue}else if(m.value){if(n.toggleOrder===`ft`||!n.toggleIndeterminate)return n.trueValue}else return n.toggleOrder===`ft`?n.falseValue:n.trueValue;return n.indeterminateValue}function D(e){(e.keyCode===13||e.keyCode===32)&&T(e)}let ee=t(p,h);return Object.assign(a,{toggle:T}),()=>{let t=ee();n.disable||S(t,`unshift`,` q-${e}__native absolute q-ma-none q-pa-none`);let i=[w(`div`,{class:x.value,style:so(n.size),"aria-hidden":`true`},t)];c.value!==null&&i.push(c.value);let a=n.label===void 0?P(r.default):re(r.default,[n.label]);return a!==void 0&&i.push(w(`div`,{class:`q-${e}__label q-anchor--skip`},a)),w(`div`,{ref:s,class:b.value,...C.value,onClick:T,onKeydown:mo,onKeyup:D},i)}}var go=()=>w(`div`,{key:`svg`,class:`q-checkbox__bg absolute`},[w(`svg`,{class:`q-checkbox__svg fit absolute-full`,viewBox:`0 0 24 24`},[w(`path`,{class:`q-checkbox__truthy`,fill:`none`,d:`M1.73,12.91 8.1,19.28 22.79,4.59`}),w(`path`,{class:`q-checkbox__indet`,d:`M4,14H20V10H4`})])]),_o=q({name:`QCheckbox`,props:fo,emits:po,setup(e){let t=go();function n(n,r){let i=y(()=>(n.value?e.checkedIcon:r.value?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>i.value===null?[t]:[w(`div`,{key:`icon`,class:`q-checkbox__icon-container absolute-full flex flex-center no-wrap`},[w(I,{class:`q-checkbox__icon`,name:i.value})])]}return ho(`checkbox`,n)}}),vo=q({name:`QToggle`,props:{...fo,icon:String,iconColor:String},emits:po,setup(e){function t(t,n){let r=y(()=>(t.value?e.checkedIcon:n.value?e.indeterminateIcon:e.uncheckedIcon)||e.icon),i=y(()=>t.value?e.iconColor:null);return()=>[w(`div`,{class:`q-toggle__track`}),w(`div`,{class:`q-toggle__thumb absolute flex flex-center no-wrap`},r.value===void 0?void 0:[w(I,{name:r.value,color:i.value})])]}return ho(`toggle`,t)}}),yo={radio:uo,checkbox:_o,toggle:vo},bo=Object.keys(yo);function xo(e,t){if(typeof e==`function`)return e;let n=e===void 0?t:e;return e=>e[n]}var So=q({name:`QOptionGroup`,props:{...Ki,modelValue:{required:!0},options:{type:Array,validator:e=>e.every(K),default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],name:String,type:{type:String,default:`radio`,validator:e=>bo.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:[`update:modelValue`],setup(e,{emit:t,slots:n}){let r=O(),i=Array.isArray(e.modelValue);e.type===`radio`?i&&console.error(`q-option-group: model should not be array`):i||console.error(`q-option-group: model should be array in your case`);let a=qi(e,r),o=y(()=>yo[e.type]),s=_(null),c=y(()=>xo(e.optionValue,`value`)),l=y(()=>xo(e.optionLabel,`label`)),u=y(()=>xo(e.optionDisable,`disable`)),d=y(()=>e.options.map(t=>({val:c.value(t),name:t.name===void 0?e.name:t.name,disable:e.disable||u.value(t),leftLabel:t.leftLabel===void 0?e.leftLabel:t.leftLabel,color:t.color===void 0?e.color:t.color,checkedIcon:t.checkedIcon,uncheckedIcon:t.uncheckedIcon,dark:t.dark===void 0?a():t.dark,size:t.size===void 0?e.size:t.size,dense:e.dense,keepColor:t.keepColor===void 0?e.keepColor:t.keepColor}))),f=y(()=>{let t=v(e.modelValue),n=d.value,r=n.findIndex(e=>!e.disable&&v(e.val)===t);return r===-1?n.findIndex(e=>!e.disable):r}),p=y(()=>`q-option-group q-gutter-x-sm`+(e.inline?` q-option-group--inline`:``)),m=y(()=>{let t={role:e.type===`radio`?`radiogroup`:`group`};return e.disable&&(t[`aria-disabled`]=`true`),t});function h(e){t(`update:modelValue`,e)}function g(n){let i=n.keyCode===37||n.keyCode===38?-1:+(n.keyCode===39||n.keyCode===40);if(i===0)return;let a=s.value.getElementsByClassName(`q-radio`),o=Array.prototype.indexOf.call(a,n.target);if(o===-1)return;de(n);let c=(n.keyCode===37||n.keyCode===39)&&r.lang.rtl===!0?-i:i,l=d.value,u=l.length,f=o;do f=(f+c+u)%u;while(f!==o&&l[f].disable);f!==o&&(a[f].focus(),v(l[f].val)!==v(e.modelValue)&&t(`update:modelValue`,l[f].val))}return()=>w(`div`,{ref:s,class:p.value,...m.value,onKeydown:e.type===`radio`?g:void 0},e.options.map((t,r)=>{let i=n[`label-`+r]===void 0?n.label===void 0?void 0:()=>n.label(t):()=>n[`label-`+r](t);return w(`div`,[w(o.value,{label:i===void 0?l.value(t):null,modelValue:e.modelValue,"onUpdate:modelValue":h,...d.value[r],tabindex:e.type===`radio`?r===f.value?0:-1:void 0},i)])}))}}),Co=()=>!0;function wo(e){let t={};return e.forEach(e=>{t[e]=Co}),t}function To(e){return e===void 0?`programmatic`:e.type.indexOf(`key`)===0?`escape`:`backdrop`}function Eo(){let{emit:e,proxy:t}=u(),n=_(null),r=null;function i(){r=null,n.value.show()}function a(){n.value.hide()}function o(t){e(`ok`,t),a()}function s(){r=`cancel`,a()}function c(t){e(`hide`,r===null?To(t):r)}return Object.assign(t,{show:i,hide:a}),{dialogRef:n,onDialogHide:c,onDialogOK:o,onDialogCancel:s}}var Do=[`ok`,`hide`];Eo.emits=Do,Eo.emitsObject=wo(Do);var Oo=q({name:`DialogPluginComponent`,props:{...Ki,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){let t=O(),n=qi(e,t),{dialogRef:r,onDialogHide:i,onDialogOK:a,onDialogCancel:o}=Eo(),s=d(e.prompt===void 0?e.options===void 0?void 0:e.options.model:e.prompt.model),l=y(()=>`q-dialog-plugin`+(n()?` q-dialog-plugin--dark q-dark`:``)+(e.progress===!1?``:` q-dialog-plugin--progress`)),u=y(()=>e.color||(n()?`amber`:`primary`)),f=y(()=>e.progress===!1?null:K(e.progress)?{component:e.progress.spinner||z,props:{color:e.progress.color||u.value}}:{component:z,props:{color:u.value}}),p=y(()=>e.prompt!==void 0||e.options!==void 0),m=y(()=>{if(!p.value)return{};let{model:t,isValid:n,items:r,...i}=e.prompt===void 0?e.options:e.prompt;return i}),h=y(()=>K(e.ok)||e.ok===!0?t.lang.label.ok:e.ok),g=y(()=>K(e.cancel)||e.cancel===!0?t.lang.label.cancel:e.cancel),_=y(()=>e.prompt===void 0?e.options!==void 0&&e.options.isValid!==void 0&&!e.options.isValid(s.value):e.prompt.isValid!==void 0&&!e.prompt.isValid(s.value)),b=y(()=>({color:u.value,label:h.value,ripple:!1,disable:_.value,...K(e.ok)?e.ok:{flat:!0},"data-autofocus":e.focus===`ok`&&!p.value||void 0,onClick:S})),x=y(()=>({color:u.value,label:g.value,ripple:!1,...K(e.cancel)?e.cancel:{flat:!0},"data-autofocus":e.focus===`cancel`&&!p.value||void 0,onClick:o}));c(()=>e.prompt&&e.prompt.model,C),c(()=>e.options&&e.options.model,C);function S(){a(v(s.value))}function C(e){s.value=e}function T(t){!_.value&&e.prompt.type!==`textarea`&&k(t,13)&&S()}function E(t,n){return e.html?w(Yi,{class:t,innerHTML:n}):w(Yi,{class:t},()=>n)}function D(){return[w(ao,{color:u.value,dense:!0,autofocus:!0,dark:n(),...m.value,modelValue:s.value,"onUpdate:modelValue":C,onKeyup:T})]}function ee(){return[w(So,{color:u.value,options:e.options.items,dark:n(),...m.value,modelValue:s.value,"onUpdate:modelValue":C})]}function A(){let t=[];return e.cancel&&t.push(w(B,x.value)),e.ok&&t.push(w(B,b.value)),w(Xi,{class:e.stackButtons?`items-end`:``,vertical:e.stackButtons,align:`right`},()=>t)}function j(){let t=[];return e.title&&t.push(E(`q-dialog__title`,e.title)),e.progress!==!1&&t.push(w(Yi,{class:`q-dialog__progress`},()=>w(f.value.component,f.value.props))),e.message&&t.push(E(`q-dialog__message`,e.message)),e.prompt===void 0?e.options!==void 0&&t.push(w($i,{dark:n()}),w(Yi,{class:`scroll q-dialog-plugin__form`},ee),w($i,{dark:n()})):t.push(w(Yi,{class:`scroll q-dialog-plugin__form`},D)),(e.ok||e.cancel)&&t.push(A()),t}function M(){return[w(Ji,{class:[l.value,e.cardClass],style:e.cardStyle,dark:n()},j)]}return()=>w(Gi,{ref:r,onHide:i},M)}});function ko(e,t){for(let n in t)n!==`spinner`&&Object(t[n])===t[n]&&!Array.isArray(t[n])?(e[n]=Object(e[n])===e[n]?{...e[n]}:{},ko(e[n],t[n])):e[n]=t[n]}function Ao(e,t,n){return r=>{let i,a,o=t&&r.component!==void 0;if(o){let{component:e,componentProps:t}=r;i=typeof e==`string`?n.component(e):e,a=t||{}}else{let{class:t,style:n,...o}=r;i=e,a=o,t!==void 0&&(o.cardClass=t),n!==void 0&&(o.cardStyle=n)}let s,c=!1,l=_(null),u=zr(!1,`dialog`),d=e=>{if(l.value?.[e]!==void 0){l.value[e]();return}let t=s.$.subTree?.component;for(;t;){if(typeof t.proxy?.[e]==`function`){t.proxy[e]();return}t=t.subTree?.component}console.error(`[Quasar] Incorrectly defined Dialog component`)},f=[],p=[],m={onOk(e){return f.push(e),m},onCancel(e){return p.push(e),m},onDismiss(e){return f.push(e),p.push(e),m},hide(){return d(`hide`),m},update(e){if(s!==null){if(o)Object.assign(a,e);else{let{class:t,style:n,...r}=e;t!==void 0&&(r.cardClass=t),n!==void 0&&(r.cardStyle=n),ko(a,r)}s.$forceUpdate()}return m}},h=e=>{c=!0,f.forEach(t=>{t(e)})},g=e=>{v.unmount(u),Br(u),v=null,s=null,c||p.forEach(t=>{t(e)})},v=We({name:`QGlobalDialog`,setup:()=>()=>w(i,{...a,ref:l,onOk:h,onHide:g,onVnodeMounted(...e){typeof a.onVnodeMounted==`function`&&a.onVnodeMounted(...e),S(()=>d(`show`))}})},n);return s=v.mount(u),m}}var jo={install({$q:e,parentApp:t}){e.dialog=this.create=Ao(Oo,!0,t)}},Mo=q({name:`QAvatar`,props:{...ie,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){let n=y(()=>`q-avatar`+(e.color?` bg-${e.color}`:``)+(e.textColor?` text-${e.textColor} q-chip--colored`:``)+(e.square?` q-avatar--square`:e.rounded?` rounded-borders`:``)),r=y(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{let i=e.icon===void 0?void 0:[w(I,{name:e.icon})],a={class:n.value};return e.size!==void 0&&(a.style=ae(e.size)),w(`div`,a,[w(`div`,{class:`q-avatar__content row flex-center overflow-hidden`,style:r.value},ne(t.default,i))])}}}),No=0,Po={},Fo={},$={},Io={},Lo=/^\s*$/,Ro=[],zo=[void 0,null,!0,!1,``],Bo=[`top-left`,`top-right`,`bottom-left`,`bottom-right`,`top`,`bottom`,`left`,`right`,`center`],Vo=[`top-left`,`top-right`,`bottom-left`,`bottom-right`],Ho={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 Uo(e,t,n){if(!e)return Ko(`parameter required`);let r,i={textColor:`white`};if(e.ignoreDefaults||Object.assign(i,Po),K(e)||(i.type&&Object.assign(i,Ho[i.type]),e={message:e}),Object.assign(i,Ho[e.type||i.type],e),typeof i.icon==`function`&&(i.icon=i.icon(t)),i.spinner=i.spinner?i.spinner===!0?z:l(i.spinner):!1,i.meta={hasMedia:!!(i.spinner||i.icon||i.avatar),hasText:Go(i.message)||Go(i.caption)},i.position){if(!Bo.includes(i.position))return Ko(`wrong position`,e)}else i.position=`bottom`;if(zo.includes(i.timeout))i.timeout=5e3;else{let t=Number.parseFloat(i.timeout);if(!Number.isFinite(t)||t<0)return Ko(`wrong timeout`,e);i.timeout=t}i.timeout===0?i.progress=!1:i.progress&&(i.meta.progressClass=`q-notification__progress`+(i.progressClass?` ${i.progressClass}`:``),i.meta.progressStyle={animationDuration:`${i.timeout+1e3}ms`});let a=[...Array.isArray(e.actions)?e.actions:[],...!e.ignoreDefaults&&Array.isArray(Po.actions)?Po.actions:[],...Array.isArray(Ho[e.type]?.actions)?Ho[e.type].actions:[]],{closeBtn:o}=i;if(o&&a.push({label:typeof o==`string`?o:t.lang.label.close}),i.actions=a.map(({handler:e,noDismiss:t,...n})=>({flat:!0,...n,onClick:typeof e==`function`?()=>{e(),t||s()}:()=>{s()}})),i.multiLine===void 0&&(i.multiLine=i.actions.length>1),Object.assign(i.meta,{class:`q-notification row items-stretch q-notification--${i.multiLine?`multi-line`:`standard`}`+(i.color===void 0?``:` bg-${i.color}`)+(i.textColor===void 0?``:` text-${i.textColor}`)+(i.classes===void 0?``:` ${i.classes}`),wrapperClass:`q-notification__wrapper col relative-position border-radius-inherit `+(i.multiLine?`column no-wrap justify-center`:`row items-center`),contentClass:`q-notification__content row items-center`+(i.multiLine?``:` col`),leftClass:i.meta.hasText?`additional`:`single`,attrs:{role:`alert`,...i.attrs}}),i.group===!1?(i.group=void 0,i.meta.group=void 0):((i.group===void 0||i.group===!0)&&(i.group=[i.message,i.caption,i.multiLine,...i.actions.map(e=>`${e.label}*${e.icon}`)].join(`|`)),i.meta.group=i.group+`|`+i.position),i.actions.length===0?i.actions=void 0:i.meta.actionsClass=`q-notification__actions row items-center `+(i.multiLine?`justify-end`:`col-auto`)+(i.meta.hasMedia?` q-notification__actions--with-media`:``),n!==void 0){n.notif.meta.timer&&(clearTimeout(n.notif.meta.timer),n.notif.meta.timer=void 0),i.meta.uid=n.notif.meta.uid;let e=$[i.position].value.indexOf(n.notif);$[i.position].value[e]=i}else{let t=Fo[i.meta.group];if(t===void 0){if(i.meta.uid=No++,i.meta.badge=1,[`left`,`right`,`center`].includes(i.position))$[i.position].value.splice(Math.floor($[i.position].value.length/2),0,i);else{let e=i.position.includes(`top`)?`unshift`:`push`;$[i.position].value[e](i)}i.group!==void 0&&(Fo[i.meta.group]=i)}else{if(t.meta.timer&&(clearTimeout(t.meta.timer),t.meta.timer=void 0),i.badgePosition!==void 0){if(!Vo.includes(i.badgePosition))return Ko(`wrong badgePosition`,e)}else i.badgePosition=`top-${i.position.includes(`left`)?`right`:`left`}`;i.meta.uid=t.meta.uid,i.meta.badge=t.meta.badge+1,i.meta.badgeClass=`q-notification__badge q-notification__badge--${i.badgePosition}`+(i.badgeColor===void 0?``:` bg-${i.badgeColor}`)+(i.badgeTextColor===void 0?``:` text-${i.badgeTextColor}`)+(i.badgeClass?` ${i.badgeClass}`:``);let n=$[i.position].value.indexOf(t);$[i.position].value[n]=Fo[i.meta.group]=i}}let s=()=>{Wo(i),r=void 0};if(i.timeout>0&&(i.meta.timer=setTimeout(()=>{i.meta.timer=void 0,s()},i.timeout+1e3)),i.group!==void 0)return t=>{t===void 0?s():Ko(`trying to update a grouped one which is forbidden`,e)};if(r={dismiss:s,config:e,notif:i},n!==void 0){Object.assign(n,r);return}return e=>{r!==void 0&&(e===void 0?r.dismiss():Uo({...r.config,...e,group:!1,position:i.position},t,r))}}function Wo(e){e.meta.timer&&(clearTimeout(e.meta.timer),e.meta.timer=void 0);let t=$[e.position].value.indexOf(e);if(t!==-1){e.group!==void 0&&delete Fo[e.meta.group];let n=Ro[String(e.meta.uid)];if(n){let{width:e,height:t}=getComputedStyle(n);n.style.left=`${n.offsetLeft}px`,n.style.width=e,n.style.height=t}$[e.position].value.splice(t,1),typeof e.onDismiss==`function`&&e.onDismiss()}}function Go(e){return e!=null&&!Lo.test(e)}function Ko(e,t){return console.error(`Notify: ${e}`,t),!1}function qo(){return q({name:`QNotifications`,devtools:{hide:!0},setup(){return()=>w(`div`,{class:`q-notifications`},Bo.map(e=>w(se,{key:e,class:Io[e],tag:`div`,name:`q-notification--${e}`},()=>$[e].value.map(e=>{let t=e.meta,n=[];if(t.hasMedia&&(e.spinner?n.push(w(e.spinner,{class:`q-notification__spinner q-notification__spinner--`+t.leftClass,color:e.spinnerColor,size:e.spinnerSize})):e.icon?n.push(w(I,{class:`q-notification__icon q-notification__icon--`+t.leftClass,name:e.icon,color:e.iconColor,size:e.iconSize,role:`img`})):e.avatar&&n.push(w(Mo,{class:`q-notification__avatar q-notification__avatar--`+t.leftClass},()=>w(`img`,{src:e.avatar,"aria-hidden":`true`})))),t.hasText){let t,r={class:`q-notification__message col`};if(e.html)r.innerHTML=e.caption?`<div>${e.message}</div><div class="q-notification__caption">${e.caption}</div>`:e.message;else{let n=[e.message];t=e.caption?[w(`div`,n),w(`div`,{class:`q-notification__caption`},[e.caption])]:n}n.push(w(`div`,r,t))}let r=[w(`div`,{class:t.contentClass},n)];return e.progress&&r.push(w(`div`,{key:`${t.uid}|p|${t.badge}`,class:t.progressClass,style:t.progressStyle})),e.actions&&r.push(w(`div`,{class:t.actionsClass},e.actions.map(e=>w(B,e)))),t.badge>1&&r.push(w(`div`,{key:`${t.uid}|${t.badge}`,class:e.meta.badgeClass,style:e.badgeStyle},[t.badge])),w(`div`,{ref:e=>{Ro[String(t.uid)]=e},key:t.uid,class:t.class,...t.attrs},[w(`div`,{class:t.wrapperClass},r)])}))))}})}var Jo={config:{},plugins:{LocalStorage:pr,Dialog:jo,Notify:{setDefaults(e){K(e)&&Object.assign(Po,e)},registerType(e,t){K(t)&&(Ho[e]=t)},install({$q:e,parentApp:t}){if(e.notify=this.create=t=>Uo(t,e),e.notify.setDefaults=this.setDefaults,e.notify.registerType=this.registerType,e.config.notify!==void 0&&this.setDefaults(e.config.notify),!this.__installed){Bo.forEach(e=>{$[e]=d([]);let t=e===`left`||e===`center`||e===`right`?`center`:e.includes(`top`)?`top`:`bottom`,n=e.includes(`left`)?`start`:e.includes(`right`)?`end`:`center`;Io[e]=`q-notifications__list q-notifications__list--${t} fixed column no-wrap ${e===`left`||e===`right`?`items-${e===`left`?`start`:`end`} justify-center`:e===`center`?`flex-center`:`items-${n}`}`});let e=zr(`q-notify`);We(qo(),t).mount(e)}}}}},Yo=`/`;async function Xo({app:e,router:t},n){let r=!1,i=e=>{try{return t.resolve(e).href}catch{}return Object(e)===e?null:e},a=e=>{if(r=!0,typeof e==`string`&&/^https?:\/\//.test(e)){window.location.href=e;return}let t=i(e);t!==null&&(window.location.href=t,window.location.reload())},o=window.location.hash.slice(1)||`/`;for(let i=0;r===!1&&i<n.length;i++)try{await n[i]({app:e,router:t,ssrContext:null,redirect:a,urlPath:o,publicPath:Yo})}catch(e){r||console.error(`[Quasar] boot error:`,e);return}r||(e.use(t),e.mount(`#q-app`))}or(E,Jo).then(e=>{let[t,n]=Promise.allSettled===void 0?[`all`,e=>e.map(e=>e.default)]:[`allSettled`,e=>e.map(e=>{if(e.status===`rejected`){console.error(`[Quasar] boot error:`,e.reason);return}return e.value.default})];return Promise[t]([Y(()=>import(`./pinia-0B8sIOgD.js`),__vite__mapDeps([34,12,2])),Y(()=>import(`./i18n-CyUPETur.js`),__vite__mapDeps([35,7,2])),Y(()=>import(`./theme-BFceB3b9.js`),__vite__mapDeps([36,16,2,15])),Y(()=>import(`./init-app-DnfYD-0k.js`),__vite__mapDeps([37,8,6,13,2,12,14,15]))]).then(t=>{Xo(e,n(t).filter(e=>typeof e==`function`))})});export{pr as $,gi as A,Er as B,Ii as C,Oi as D,Di as E,Gr as F,xr as G,Tr as H,ti as I,vr as J,br as K,ei as L,qr as M,ri as N,bi as O,Jr as P,mr as Q,Wr as R,zi as S,Mi as T,wr as U,Dr as V,Cr as W,gr as X,_r as Y,hr as Z,qi as _,Xa as a,Fi as b,Ta as c,ia as d,yt as et,ta as f,Ji as g,Yi as h,Qa as i,J as it,Yr as j,hi as k,wa as l,Xi as m,ao as n,Y as nt,Ca as o,$i as p,yr as q,io as r,Qe as rt,Ra as s,vo as t,vt as tt,Ea as u,Ki as v,ji as w,Vi as x,Gi as y,Nr as z};
@@ -0,0 +1 @@
1
+ import"./chunk-FOHPRMQF-CoA4358r.js";import{w as e}from"./mermaid-parser.core-Cwwk5NqO.js";export{e as createInfoServices};
@@ -0,0 +1,2 @@
1
+ import{n as e}from"./mermaid-parser.core-Cwwk5NqO.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-Cy0hT8a0.js";import{c as r}from"./chunk-O7XYJQB3-DQvIvDe6.js";import{a as i}from"./mermaid.core-BjPJhwW0.js";var a={parse:t(async t=>{let r=await e(`info`,t);n.debug(r)},`parse`)},o={version:`12.0.0`},s={parser:a,db:{getVersion:t(()=>o.version,`getVersion`)},renderer:{draw:t((e,t,a)=>{n.debug(`rendering info diagram
2
+ `+e);let o=i(t);r(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
@@ -0,0 +1 @@
1
+ function e(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}export{e as t};
@@ -0,0 +1 @@
1
+ import{rt as e}from"./index-C_B6Z2lc.js";import{n as t}from"./single-flight-r8B7stt1.js";import{n,t as r}from"./app-info-store-CIqmSeWK.js";import{t as i}from"./agent-store-CEQ6MmTC.js";function a(e){let t=null,n=!1;return({instanceId:r})=>{if(t===null){t=r;return}n||r===t||(n=!0,e())}}var o=e(()=>{n().fetchInfo(),r().fetchInfo(),i().init(),t(a(()=>window.location.reload()))});export{o as default};
@@ -0,0 +1 @@
1
+ import{$ as e,et as t}from"./runtime-core.esm-bundler-Carm8LUR.js";import{d as n}from"./event-rR76ioXz.js";var r=t(!1),i,a=512;function o(e){return typeof e==`string`?e.slice(0,a).toLowerCase():``}var s=/(?:^|\s)version\/([\w.]+)/,c=/(?:^|\s)applewebkit\/[\w.]+/,l=/(?:^|\s)safari\/[\w.]+/;function u(e){let t=s.exec(e);return t!==null&&c.test(e)&&l.test(e)?{browser:`safari`,version:t[1]}:null}var d=/(edg|edga|edgios)\/([\w.]+)/,f=/(opr)[\/]([\w.]+)/,p=/(vivaldi)[\/]([\w.]+)/,m=/(chrome|crios)[\/]([\w.]+)/,h=/(firefox|fxios)[\/]([\w.]+)/,g=/(webkit)[\/]([\w.]+)/;function _(e,t){let n=d.exec(e)||f.exec(e)||p.exec(e)||m.exec(e);if(n===null){let r=u(e);if(r!==null)return{...r,platform:t[0]||``};n=h.exec(e)||g.exec(e)||[]}return{browser:n[5]||n[3]||n[1]||``,version:n[4]||n[2]||`0`,platform:t[0]||``}}var v=/(ipad)/,y=/(ipod)/,b=/(iphone)/,x=/(android)/,S=/(win)/,C=/(mac)/,w=/(linux)/,T=/(cros)/;function E(e){return v.exec(e)||y.exec(e)||b.exec(e)||x.exec(e)||S.exec(e)||C.exec(e)||w.exec(e)||T.exec(e)||[]}var D=`ontouchstart`in window||window.navigator.maxTouchPoints>0;function O(e){let t=o(e),n=_(t,E(t)),a={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1};n.browser&&(a[n.browser]=!0,a.version=n.version,a.versionNumber=Number.parseInt(n.version,10)),n.platform&&(a[n.platform]=!0);let s=a.android||a.ios||a.ipad||a.iphone||a.ipod;if(s===!0||t.includes(`mobile`)?a.mobile=!0:a.desktop=!0,a.edga||a.edgios||a.edg?(a.edge=!0,n.browser=`edge`):a.crios?(a.chrome=!0,n.browser=`chrome`):a.fxios&&(a.firefox=!0,n.browser=`firefox`),(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a.vivaldi&&=(n.browser=`vivaldi`,!0),(a.chrome||a.opr||a.safari||a.vivaldi||a.mobile&&!a.ios&&!s)&&(a.webkit=!0),a.opr&&(n.browser=`opera`,a.opera=!0),a.name=n.browser,a.platform=n.platform,t.includes(`electron`))a.electron=!0;else if(document.location.href.includes(`-extension://`))a.bex=!0;else{if(window.Capacitor===void 0?(window._cordovaNative!==void 0||window.cordova!==void 0)&&(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper=`cordova`):(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper=`capacitor`),r.value&&(i={is:{...a}}),D&&a.mac&&(a.desktop&&a.safari||a.nativeMobile&&!a.android&&!a.ios&&!a.ipad)){delete a.mac,delete a.desktop;let e=Math.min(window.innerHeight,window.innerWidth)>414?`ipad`:`iphone`;Object.assign(a,{mobile:!0,ios:!0,platform:e,[e]:!0})}!a.mobile&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete a.desktop,a.mobile=!0)}return a}var k=navigator.userAgent,A={has:{touch:!1,webStorage:!1},within:{iframe:!1}},j={userAgent:k,is:O(k),has:{touch:D},within:{iframe:window.self!==window.top}},M={install(t){let{$q:n}=t;r.value?(t.onSSRHydrated.push(()=>{Object.assign(n.platform,j),r.value=!1}),n.platform=e(this)):n.platform=this}};{let e;n(j.has,`webStorage`,()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(M,j),r.value&&(Object.assign(M,i,A),i=null)}function N(e){return e.constructor===ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function P(e,t,n){return typeof e==`function`&&e!==n&&typeof t==`function`&&t!==n}function F(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 n,r;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!F(e[r],t[r]))return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let n=e.entries();for(r=n.next();!r.done;){if(!t.has(r.value[0]))return!1;r=n.next()}for(n=e.entries(),r=n.next();!r.done;){if(!F(r.value[1],t.get(r.value[0])))return!1;r=n.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;let n=e.entries();for(r=n.next();!r.done;){if(!t.has(r.value[0]))return!1;r=n.next()}return!0}if(e.constructor===ArrayBuffer||e.constructor===DataView){if(e.byteLength!==t.byteLength)return!1;e=N(e),t=N(t)}if(ArrayBuffer.isView(e)){if(n=e.length,n!==t.length)return!1;for(r=n;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(P(e.valueOf,t.valueOf,Object.prototype.valueOf))return e.valueOf()===t.valueOf();if(P(e.toString,t.toString,Object.prototype.toString))return e.toString()===t.toString();let i=Object.keys(e).filter(t=>e[t]!==void 0);if(n=i.length,n!==Object.keys(t).filter(e=>t[e]!==void 0).length)return!1;for(r=n;r--!==0;){let n=i[r];if(!F(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function I(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function L(e){return Object.prototype.toString.call(e)===`[object Date]`}function R(e){return Object.prototype.toString.call(e)===`[object RegExp]`}export{M as a,R as i,F as n,j as o,I as r,r as s,L as t};
@@ -0,0 +1,70 @@
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-Cy0hT8a0.js";import{H as t,U as n,a as r,c as i,q as a,s as o,v as s,w as c,x as l,y as u}from"./chunk-O7XYJQB3-DQvIvDe6.js";import{p as d}from"./chunk-ZIGJFQKS-BdT_T5CV.js";import{t as f}from"./rough.esm-Dy-Kn_BL.js";import{a as p}from"./mermaid.core-BjPJhwW0.js";var m=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},t(o,[2,3]),{1:[2,2]},t(o,[2,4]),t(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},t(u,[2,18],{14:[1,21]}),t(u,[2,16]),t(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},t(d,[2,14],{7:f,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(u,[2,15]),t(d,[2,13],{7:f,11:p}),t(m,[2,11]),t(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}}})();function g(){this.yy={}}return e(g,`Parser`),g.prototype=h,h.Parser=g,new g})();m.parser=m;var h=m,g=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{e(this,`IshikawaDB`)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,r()}getRoot(){return this.root}addNode(e,t){let n=o.sanitizeText(t,l());if(!this.root){this.root={text:n,children:[]},this.stack=[{level:0,node:this.root}],a(n);return}this.baseLevel??=e;let r=e-this.baseLevel+1;for(r<=0&&(r=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=r;)this.stack.pop();let i=this.stack[this.stack.length-1].node,s={text:n,children:[]};i.children.push(s),this.stack.push({level:r,node:s})}getAccTitle(){return u()}setAccTitle(e){n(e)}getAccDescription(){return s()}setAccDescription(e){t(e)}getDiagramTitle(){return c()}setDiagramTitle(e){a(e)}},_=14,v=250,y=30,b=60,x=5,S=82*Math.PI/180,C=Math.cos(S),w=Math.sin(S),T=e((e,t,n)=>{let r=e.node().getBBox(),a=r.width+t*2,o=r.height+t*2;i(e,o,a,n),e.attr(`viewBox`,`${r.x-t} ${r.y-t} ${a} ${o}`)},`applyPaddedViewBox`),E=e((e,t,n,r)=>{let i=r.db.getRoot();if(!i)return;let a=l(),{look:o,handDrawnSeed:s,themeVariables:c}=a,u=d(a.fontSize)[0]??_,m=o===`handDrawn`,h=i.children??[],g=a.ishikawa?.diagramPadding??20,y=a.ishikawa?.useMaxWidth??!1,b=p(t),x=b.append(`g`).attr(`class`,`ishikawa`),S=m?f.svg(b.node()):void 0,C=S?{roughSvg:S,seed:s??0,lineColor:c?.lineColor??`#333`,fillColor:c?.mainBkg??`#fff`}:void 0,w=`ishikawa-arrow-${t}`;m||x.append(`defs`).append(`marker`).attr(`id`,w).attr(`viewBox`,`0 0 10 10`).attr(`refX`,0).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 10 0 L 0 5 L 10 10 Z`).attr(`class`,`ishikawa-arrow`);let E=0,k=v,A=m?void 0:L(x,E,k,E,k,`ishikawa-spine`);if(O(x,E,k,i.text,u,C),!h.length){m&&L(x,E,k,E,k,`ishikawa-spine`,C),T(b,g,y);return}E-=20;let j=h.filter((e,t)=>t%2==0),N=h.filter((e,t)=>t%2==1),P=D(j),F=D(N),I=P.total+F.total,R=v,z=v;if(I>0){let e=v*2,t=v*.3;R=Math.max(t,e*(P.total/I)),z=Math.max(t,e*(F.total/I))}let B=u*2;R=Math.max(R,P.max*B),z=Math.max(z,F.max*B),k=Math.max(R,v),A&&A.attr(`y1`,k).attr(`y2`,k),x.select(`.ishikawa-head-group`).attr(`transform`,`translate(0,${k})`);let V=Math.ceil(h.length/2);for(let e=0;e<V;e++){let t=x.append(`g`).attr(`class`,`ishikawa-pair`);for(let[n,r,i]of[[h[e*2],-1,R],[h[e*2+1],1,z]])n&&M(t,n,E,k,r,i,u,C);E=t.selectAll(`text`).nodes().reduce((e,t)=>Math.min(e,t.getBBox().x),1/0)}if(m)L(x,E,k,0,k,`ishikawa-spine`,C);else{A.attr(`x1`,E);let e=`url(#${w})`;x.selectAll(`line.ishikawa-branch, line.ishikawa-sub-branch`).attr(`marker-start`,e)}T(b,g,y)},`draw`),D=e(t=>{let n=e(e=>e.children.reduce((e,t)=>e+1+n(t),0),`countDescendants`);return t.reduce((e,t)=>{let r=n(t);return e.total+=r,e.max=Math.max(e.max,r),e},{total:0,max:0})},`sideStats`),O=e((e,t,n,r,i,a)=>{let o=Math.max(6,Math.floor(110/(i*.6))),s=e.append(`g`).attr(`class`,`ishikawa-head-group`).attr(`transform`,`translate(${t},${n})`),c=F(s,P(r,o),0,0,`ishikawa-head-label`,`start`,i),l=c.node().getBBox(),u=Math.max(60,l.width+6),d=Math.max(40,l.height*2+40),f=`M 0 ${-d/2} L 0 ${d/2} Q ${u*2.4} 0 0 ${-d/2} Z`;if(a){let e=a.roughSvg.path(f,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-head`)}else s.insert(`path`,`:first-child`).attr(`class`,`ishikawa-head`).attr(`d`,f);c.attr(`transform`,`translate(${(u-l.width)/2-l.x+3},${-l.y-l.height/2})`)},`drawHead`),k=e((t,n)=>{let r=[],i=[],a=e((e,t,o)=>{let s=n===-1?[...e].reverse():e;for(let e of s){let n=r.length,s=e.children??[];r.push({depth:o,text:P(e.text,15),parentIndex:t,childCount:s.length}),o%2==0?(i.push(n),s.length&&a(s,n,o+1)):(s.length&&a(s,n,o+1),i.push(n))}},`walk`);return a(t,-1,2),{entries:r,yOrder:i}},`flattenTree`),A=e((e,t,n,r,i,a,o)=>{let s=e.append(`g`).attr(`class`,`ishikawa-label-group`),c=F(s,t,n,r+11*i,`ishikawa-label cause`,`middle`,a).node().getBBox();if(o){let e=o.roughSvg.rectangle(c.x-20,c.y-2,c.width+40,c.height+4,{roughness:1.5,seed:o.seed,fill:o.fillColor,fillStyle:`hachure`,fillWeight:2.5,hachureGap:5,stroke:o.lineColor,strokeWidth:2});s.insert(()=>e,`:first-child`).attr(`class`,`ishikawa-label-box`)}else s.insert(`rect`,`:first-child`).attr(`class`,`ishikawa-label-box`).attr(`x`,c.x-20).attr(`y`,c.y-2).attr(`width`,c.width+40).attr(`height`,c.height+4)},`drawCauseLabel`),j=e((e,t,n,r,i,a)=>{let o=Math.sqrt(r*r+i*i);if(o===0)return;let s=r/o,c=i/o,l=-c*6,u=s*6,d=t,f=n,p=`M ${d} ${f} L ${d-s*6*2+l} ${f-c*6*2+u} L ${d-s*6*2-l} ${f-c*6*2-u} Z`,m=a.roughSvg.path(p,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:`solid`,stroke:a.lineColor,strokeWidth:1});e.append(()=>m)},`drawArrowMarker`),M=e((e,t,n,r,i,a,o,s)=>{let c=t.children??[],l=a*(c.length?1:.2),u=-C*l,d=w*l*i,f=n+u,p=r+d;if(L(e,n,r,f,p,`ishikawa-branch`,s),s&&j(e,n,r,n-f,r-p,s),A(e,t.text,f,p,i,o,s),!c.length)return;let{entries:m,yOrder:h}=k(c,i),g=m.length,_=Array(g);for(let[e,t]of h.entries())_[t]=r+d*((e+1)/(g+1));let v=new Map;v.set(-1,{x0:n,y0:r,x1:f,y1:p,childCount:c.length,childrenDrawn:0});let S=-C,T=w*i,E=i<0?`ishikawa-label up`:`ishikawa-label down`;for(let[t,n]of m.entries()){let r=_[t],i=v.get(n.parentIndex),a=e.append(`g`).attr(`class`,`ishikawa-sub-group`),c=0,l=0,u=0;if(n.depth%2==0){let e=i.y1-i.y0;c=I(i.x0,i.x1,e?(r-i.y0)/e:.5),l=r,u=c-(n.childCount>0?b+n.childCount*x:y),L(a,c,r,u,r,`ishikawa-sub-branch`,s),s&&j(a,c,r,1,0,s),F(a,n.text,u,r,`ishikawa-label align`,`end`,o)}else{let e=i.childrenDrawn++;c=I(i.x0,i.x1,(i.childCount-e)/(i.childCount+1)),l=i.y0,u=c+S*((r-l)/T),L(a,c,l,u,r,`ishikawa-sub-branch`,s),s&&j(a,c,l,c-u,l-r,s),F(a,n.text,u,r,E,`end`,o)}n.childCount>0&&v.set(t,{x0:c,y0:l,x1:u,y1:r,childCount:n.childCount,childrenDrawn:0})}},`drawBranch`),N=e(e=>e.split(/<br\s*\/?>|\n/),`splitLines`),P=e((e,t)=>{if(e.length<=t)return e;let n=[];for(let r of e.split(/\s+/)){let e=n.length-1;e>=0&&n[e].length+1+r.length<=t?n[e]+=` `+r:n.push(r)}return n.join(`
7
+ `)},`wrapText`),F=e((e,t,n,r,i,a,o)=>{let s=N(t),c=o*1.05,l=e.append(`text`).attr(`class`,i).attr(`text-anchor`,a).attr(`x`,n).attr(`y`,r-(s.length-1)*c/2);for(let[e,t]of s.entries())l.append(`tspan`).attr(`x`,n).attr(`dy`,e===0?0:c).text(t);return l},`drawMultilineText`),I=e((e,t,n)=>e+(t-e)*n,`lerp`),L=e((e,t,n,r,i,a,o)=>{if(o){let s=o.roughSvg.line(t,n,r,i,{roughness:1.5,seed:o.seed,stroke:o.lineColor,strokeWidth:2});e.append(()=>s).attr(`class`,a);return}return e.append(`line`).attr(`class`,a).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i)},`drawLine`),R={parser:h,get db(){return new g},renderer:{draw:E},styles:e(e=>`
8
+ .ishikawa .ishikawa-spine,
9
+ .ishikawa .ishikawa-branch,
10
+ .ishikawa .ishikawa-sub-branch {
11
+ stroke: ${e.lineColor};
12
+ stroke-width: 2;
13
+ fill: none;
14
+ }
15
+
16
+ .ishikawa .ishikawa-sub-branch {
17
+ stroke-width: 1;
18
+ }
19
+
20
+ .ishikawa .ishikawa-arrow {
21
+ fill: ${e.lineColor};
22
+ }
23
+
24
+ .ishikawa .ishikawa-head {
25
+ fill: ${e.mainBkg};
26
+ stroke: ${e.lineColor};
27
+ stroke-width: 2;
28
+ }
29
+
30
+ .ishikawa .ishikawa-label-box {
31
+ fill: ${e.mainBkg};
32
+ stroke: ${e.lineColor};
33
+ stroke-width: 2;
34
+ }
35
+
36
+ .ishikawa text {
37
+ font-family: ${e.fontFamily};
38
+ font-size: ${e.fontSize};
39
+ fill: ${e.textColor};
40
+ }
41
+
42
+ .ishikawa .ishikawa-head-label {
43
+ font-weight: 600;
44
+ text-anchor: middle;
45
+ dominant-baseline: middle;
46
+ font-size: 14px;
47
+ }
48
+
49
+ .ishikawa .ishikawa-label {
50
+ text-anchor: end;
51
+ }
52
+
53
+ .ishikawa .ishikawa-label.cause {
54
+ text-anchor: middle;
55
+ dominant-baseline: middle;
56
+ }
57
+
58
+ .ishikawa .ishikawa-label.align {
59
+ text-anchor: end;
60
+ dominant-baseline: middle;
61
+ }
62
+
63
+ .ishikawa .ishikawa-label.up {
64
+ dominant-baseline: baseline;
65
+ }
66
+
67
+ .ishikawa .ishikawa-label.down {
68
+ dominant-baseline: hanging;
69
+ }
70
+ `,`getStyles`)};export{R as diagram};
@@ -0,0 +1,139 @@
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{p as t}from"./src-Cy0hT8a0.js";import{H as n,U as r,a as i,c as a,q as o,v as s,w as c,x as l,y as u}from"./chunk-O7XYJQB3-DQvIvDe6.js";import{t as d}from"./arc-BALAYY3f.js";import{t as f}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{a as p,n as m,o as h,s as g}from"./chunk-GWA4HPMP-BquHLG8L.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,7],{1:[2,1]}),t(n,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},t(n,[2,5]),t(n,[2,6]),t(n,[2,8]),{13:[1,16]},{15:[1,17]},t(n,[2,11]),t(n,[2,12]),{19:[1,18]},t(n,[2,4]),t(n,[2,9]),t(n,[2,10]),t(n,[2,13])],defaultActions:{},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin(`acc_title`),12;case 8:return this.popState(),`acc_title_value`;case 9:return this.begin(`acc_descr`),14;case 10:return this.popState(),`acc_descr_value`;case 11:this.begin(`acc_descr_multiline`);break;case 12:this.popState();break;case 13:return`acc_descr_multiline_value`;case 14:return 17;case 15:return 18;case 16:return 19;case 17:return`:`;case 18:return 6;case 19:return`INVALID`}},`anonymous`),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}}})();function u(){this.yy={}}return e(u,`Parser`),u.prototype=l,l.Parser=u,new u})();_.parser=_;var v=_,y=``,b=[],x=[],S=[],C=e(function(){b.length=0,x.length=0,y=``,S.length=0,i()},`clear`),w=e(function(e){y=e,b.push(e)},`addSection`),T=e(function(){return b},`getSections`),E=e(function(){let e=A(),t=0;for(;!e&&t<100;)e=A(),t++;return x.push(...S),x},`getTasks`),D=e(function(){let e=[];return x.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()},`updateActors`),O=e(function(e,t){let n=t.substr(1).split(`:`),r=0,i=[];n.length===1?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(`,`));let a=i.map(e=>e.trim()),o={section:y,type:y,people:a,task:e,score:r};S.push(o)},`addTask`),k=e(function(e){let t={section:y,type:y,description:e,task:e,classes:[]};x.push(t)},`addTaskOrg`),A=e(function(){let t=e(function(e){return S[e].processed},`compileTask`),n=!0;for(let[e,r]of S.entries())t(e),n&&=r.processed;return n},`compileTasks`),j={getConfig:e(()=>l().journey,`getConfig`),clear:C,setDiagramTitle:o,getDiagramTitle:c,setAccTitle:r,getAccTitle:u,setAccDescription:n,getAccDescription:s,addSection:w,getSections:T,getTasks:E,addTask:O,addTaskOrg:k,getActors:e(function(){return D()},`getActors`)},M=e(e=>`.label {
7
+ font-family: ${e.fontFamily};
8
+ color: ${e.textColor};
9
+ }
10
+ .mouth {
11
+ stroke: #666;
12
+ }
13
+
14
+ line {
15
+ stroke: ${e.textColor}
16
+ }
17
+
18
+ .legend {
19
+ fill: ${e.textColor};
20
+ font-family: ${e.fontFamily};
21
+ }
22
+
23
+ .label text {
24
+ fill: #333;
25
+ }
26
+ .label {
27
+ color: ${e.textColor}
28
+ }
29
+
30
+ .face {
31
+ ${e.faceColor?`fill: ${e.faceColor}`:`fill: #FFF8DC`};
32
+ stroke: #999;
33
+ }
34
+
35
+ .node rect,
36
+ .node circle,
37
+ .node ellipse,
38
+ .node polygon,
39
+ .node path {
40
+ fill: ${e.mainBkg};
41
+ stroke: ${e.nodeBorder};
42
+ stroke-width: 1px;
43
+ }
44
+
45
+ .node .label {
46
+ text-align: center;
47
+ }
48
+ .node.clickable {
49
+ cursor: pointer;
50
+ }
51
+
52
+ .arrowheadPath {
53
+ fill: ${e.arrowheadColor};
54
+ }
55
+
56
+ .edgePaths .path {
57
+ stroke: ${e.lineColor};
58
+ stroke-width: 1.5px;
59
+ }
60
+
61
+ .flowchart-link {
62
+ stroke: ${e.lineColor};
63
+ fill: none;
64
+ }
65
+
66
+ .edgeLabel {
67
+ background-color: ${e.edgeLabelBackground};
68
+ rect {
69
+ opacity: 0.5;
70
+ }
71
+ text-align: center;
72
+ }
73
+
74
+ .cluster rect {
75
+ }
76
+
77
+ .cluster text {
78
+ fill: ${e.titleColor};
79
+ }
80
+
81
+ div.mermaidTooltip {
82
+ position: absolute;
83
+ text-align: center;
84
+ max-width: 200px;
85
+ padding: 2px;
86
+ font-family: ${e.fontFamily};
87
+ font-size: 12px;
88
+ background: ${e.tertiaryColor};
89
+ border: 1px solid ${e.border2};
90
+ border-radius: 2px;
91
+ pointer-events: none;
92
+ z-index: 100;
93
+ }
94
+
95
+ .task-type-0, .section-type-0 {
96
+ ${e.fillType0?`fill: ${e.fillType0}`:``};
97
+ }
98
+ .task-type-1, .section-type-1 {
99
+ ${e.fillType0?`fill: ${e.fillType1}`:``};
100
+ }
101
+ .task-type-2, .section-type-2 {
102
+ ${e.fillType0?`fill: ${e.fillType2}`:``};
103
+ }
104
+ .task-type-3, .section-type-3 {
105
+ ${e.fillType0?`fill: ${e.fillType3}`:``};
106
+ }
107
+ .task-type-4, .section-type-4 {
108
+ ${e.fillType0?`fill: ${e.fillType4}`:``};
109
+ }
110
+ .task-type-5, .section-type-5 {
111
+ ${e.fillType0?`fill: ${e.fillType5}`:``};
112
+ }
113
+ .task-type-6, .section-type-6 {
114
+ ${e.fillType0?`fill: ${e.fillType6}`:``};
115
+ }
116
+ .task-type-7, .section-type-7 {
117
+ ${e.fillType0?`fill: ${e.fillType7}`:``};
118
+ }
119
+
120
+ .actor-0 {
121
+ ${e.actor0?`fill: ${e.actor0}`:``};
122
+ }
123
+ .actor-1 {
124
+ ${e.actor1?`fill: ${e.actor1}`:``};
125
+ }
126
+ .actor-2 {
127
+ ${e.actor2?`fill: ${e.actor2}`:``};
128
+ }
129
+ .actor-3 {
130
+ ${e.actor3?`fill: ${e.actor3}`:``};
131
+ }
132
+ .actor-4 {
133
+ ${e.actor4?`fill: ${e.actor4}`:``};
134
+ }
135
+ .actor-5 {
136
+ ${e.actor5?`fill: ${e.actor5}`:``};
137
+ }
138
+ ${f()}
139
+ `,`getStyles`),N=e(function(e,t){return p(e,t)},`drawRect`),P=e(function(t,n){let r=t.append(`circle`).attr(`cx`,n.cx).attr(`cy`,n.cy).attr(`class`,`face`).attr(`r`,15).attr(`stroke-width`,2).attr(`overflow`,`visible`),i=t.append(`g`);i.append(`circle`).attr(`cx`,n.cx-5).attr(`cy`,n.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`),i.append(`circle`).attr(`cx`,n.cx+5).attr(`cy`,n.cy-5).attr(`r`,1.5).attr(`stroke-width`,2).attr(`fill`,`#666`).attr(`stroke`,`#666`);function a(e){let t=d().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+2)+`)`)}e(a,`smile`);function o(e){let t=d().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(15/2).outerRadius(15/2.2);e.append(`path`).attr(`class`,`mouth`).attr(`d`,t).attr(`transform`,`translate(`+n.cx+`,`+(n.cy+7)+`)`)}e(o,`sad`);function s(e){e.append(`line`).attr(`class`,`mouth`).attr(`stroke`,2).attr(`x1`,n.cx-5).attr(`y1`,n.cy+7).attr(`x2`,n.cx+5).attr(`y2`,n.cy+7).attr(`class`,`mouth`).attr(`stroke-width`,`1px`).attr(`stroke`,`#666`)}return e(s,`ambivalent`),n.score>3?a(i):n.score<3?o(i):s(i),r},`drawFace`),F=e(function(e,t){let n=e.append(`circle`);return n.attr(`cx`,t.cx),n.attr(`cy`,t.cy),n.attr(`class`,`actor-`+t.pos),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`r`,t.r),n.class!==void 0&&n.attr(`class`,n.class),t.title!==void 0&&n.append(`title`).text(t.title),n},`drawCircle`),I=e(function(e,t){return h(e,t)},`drawText`),L=e(function(t,n){function r(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}e(r,`genPoints`);let i=t.append(`polygon`);i.attr(`points`,r(n.x,n.y,50,20,7)),i.attr(`class`,`labelBox`),n.y+=n.labelMargin,n.x+=.5*n.labelMargin,I(t,n)},`drawLabel`),R=e(function(e,t,n){let r=e.append(`g`),i=g();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width*t.taskCount+n.diagramMarginX*(t.taskCount-1),i.height=n.height,i.class=`journey-section section-type-`+t.num,i.rx=3,i.ry=3,N(r,i),H(n)(t.text,r,i.x,i.y,i.width,i.height,{class:`journey-section section-type-`+t.num},n,t.colour)},`drawSection`),z=-1,B=e(function(e,t,n,r){let i=t.x+n.width/2,a=e.append(`g`);z++,a.append(`line`).attr(`id`,r+`-task`+z).attr(`x1`,i).attr(`y1`,t.y).attr(`x2`,i).attr(`y2`,450).attr(`class`,`task-line`).attr(`stroke-width`,`1px`).attr(`stroke-dasharray`,`4 2`).attr(`stroke`,`#666`),P(a,{cx:i,cy:300+(5-t.score)*30,score:t.score});let o=g();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class=`task task-type-`+t.num,o.rx=3,o.ry=3,N(a,o);let s=t.x+14;t.people.forEach(e=>{let n=t.actors[e].color,r={cx:s,cy:t.y,r:7,fill:n,stroke:`#000`,title:e,pos:t.actors[e].position};F(a,r),s+=10}),H(n)(t.task,a,o.x,o.y,o.width,o.height,{class:`task`},n,t.colour)},`drawTask`),V=e(function(e,t){m(e,t)},`drawBackgroundRect`),H=(function(){function t(e,t,n,r,a,o,s,c){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`font-color`,c).style(`text-anchor`,`middle`).text(e),s)}e(t,`byText`);function n(e,t,n,r,a,o,s,c,l){let{taskFontSize:u,taskFontFamily:d}=c,f=e.split(/<br\s*\/?>/gi);for(let e=0;e<f.length;e++){let c=e*u-u*(f.length-1)/2,p=t.append(`text`).attr(`x`,n+a/2).attr(`y`,r).attr(`fill`,l).style(`text-anchor`,`middle`).style(`font-size`,u).style(`font-family`,d);p.append(`tspan`).attr(`x`,n+a/2).attr(`dy`,c).text(f[e]),p.attr(`y`,r+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),i(p,s)}}e(n,`byTspan`);function r(e,t,r,a,o,s,c,l){let u=t.append(`switch`),d=u.append(`foreignObject`).attr(`x`,r).attr(`y`,a).attr(`width`,o).attr(`height`,s).attr(`position`,`fixed`).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).attr(`class`,`label`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),n(e,u,r,a,o,s,c,l),i(d,c)}e(r,`byFo`);function i(e,t){for(let n in t)n in t&&e.attr(n,t[n])}return e(i,`_setTextAttrs`),function(e){return e.textPlacement===`fo`?r:e.textPlacement===`old`?t:n}})(),U={drawRect:N,drawCircle:F,drawSection:R,drawText:I,drawLabel:L,drawTask:B,drawBackgroundRect:V,initGraphics:e(function(e,t){z=-1,e.append(`defs`).append(`marker`).attr(`id`,t+`-arrowhead`).attr(`refX`,5).attr(`refY`,2).attr(`markerWidth`,6).attr(`markerHeight`,4).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0,0 V 4 L6,2 Z`)},`initGraphics`)},W=e(function(e){Object.keys(e).forEach(function(t){J[t]=e[t]})},`setConf`),G={},K=0;function q(e){let t=l().journey,n=t.maxLabelWidth;K=0;let r=60;Object.keys(G).forEach(i=>{let a=G[i].color,o={cx:20,cy:r,r:7,fill:a,stroke:`#000`,pos:G[i].position};U.drawCircle(e,o);let s=e.append(`text`).attr(`visibility`,`hidden`).text(i),c=s.node().getBoundingClientRect().width;s.remove();let l=[];if(c<=n)l=[i];else{let t=i.split(` `),r=``;s=e.append(`text`).attr(`visibility`,`hidden`),t.forEach(e=>{let t=r?`${r} ${e}`:e;if(s.text(t),s.node().getBoundingClientRect().width>n){if(r&&l.push(r),r=e,s.text(e),s.node().getBoundingClientRect().width>n){let t=``;for(let r of e)t+=r,s.text(t+`-`),s.node().getBoundingClientRect().width>n&&(l.push(t.slice(0,-1)+`-`),t=r);r=t}}else r=t}),r&&l.push(r),s.remove()}l.forEach((n,i)=>{let a={x:40,y:r+7+i*20,fill:`#666`,text:n,textMargin:t.boxTextMargin??5},o=U.drawText(e,a).node().getBoundingClientRect().width;o>K&&o>t.leftMargin-o&&(K=o)}),r+=Math.max(20,l.length*20)})}e(q,`drawActorLegend`);var J=l().journey,Y=0,ee=e(function(e,n,r,i){let o=l(),s=o.journey.titleColor,c=o.journey.titleFontSize,u=o.journey.titleFontFamily,d=o.securityLevel,f;d===`sandbox`&&(f=t(`#i`+n));let p=t(d===`sandbox`?f.nodes()[0].contentDocument.body:`body`);X.init();let m=p.select(`#`+n);U.initGraphics(m,n);let h=i.db.getTasks(),g=i.db.getDiagramTitle(),_=i.db.getActors();for(let e in G)delete G[e];let v=0;_.forEach(e=>{G[e]={color:J.actorColours[v%J.actorColours.length],position:v},v++}),q(m),Y=J.leftMargin+K,X.insert(0,0,Y,Object.keys(G).length*50),te(m,h,0,n);let y=X.getBounds();g&&m.append(`text`).text(g).attr(`x`,Y).attr(`font-size`,c).attr(`font-weight`,`bold`).attr(`y`,25).attr(`fill`,s).attr(`font-family`,u);let b=y.stopy-y.starty+2*J.diagramMarginY,x=Y+y.stopx+2*J.diagramMarginX;a(m,b,x,J.useMaxWidth),m.append(`line`).attr(`x1`,Y).attr(`y1`,J.height*4).attr(`x2`,x-Y-4).attr(`y2`,J.height*4).attr(`stroke-width`,4).attr(`stroke`,`black`).attr(`marker-end`,`url(#`+n+`-arrowhead)`);let S=g?70:0;m.attr(`viewBox`,`${y.startx} -25 ${x} ${b+S}`),m.attr(`preserveAspectRatio`,`xMinYMin meet`),m.attr(`height`,b+S+25)},`draw`),X={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:e(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},`init`),updateVal:e(function(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])},`updateVal`),updateBounds:e(function(t,n,r,i){let a=l().journey,o=this,s=0;function c(c){return e(function(e){s++;let l=o.sequenceItems.length-s+1;o.updateVal(e,`starty`,n-l*a.boxMargin,Math.min),o.updateVal(e,`stopy`,i+l*a.boxMargin,Math.max),o.updateVal(X.data,`startx`,t-l*a.boxMargin,Math.min),o.updateVal(X.data,`stopx`,r+l*a.boxMargin,Math.max),c!==`activation`&&(o.updateVal(e,`startx`,t-l*a.boxMargin,Math.min),o.updateVal(e,`stopx`,r+l*a.boxMargin,Math.max),o.updateVal(X.data,`starty`,n-l*a.boxMargin,Math.min),o.updateVal(X.data,`stopy`,i+l*a.boxMargin,Math.max))},`updateItemBounds`)}e(c,`updateFn`),this.sequenceItems.forEach(c())},`updateBounds`),insert:e(function(e,t,n,r){let i=Math.min(e,n),a=Math.max(e,n),o=Math.min(t,r),s=Math.max(t,r);this.updateVal(X.data,`startx`,i,Math.min),this.updateVal(X.data,`starty`,o,Math.min),this.updateVal(X.data,`stopx`,a,Math.max),this.updateVal(X.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),bumpVerticalPos:e(function(e){this.verticalPos+=e,this.data.stopy=this.verticalPos},`bumpVerticalPos`),getVerticalPos:e(function(){return this.verticalPos},`getVerticalPos`),getBounds:e(function(){return this.data},`getBounds`)},Z=J.sectionFills,Q=J.sectionColours,te=e(function(e,t,n,r){let i=l().journey,a=``,o=n+(i.height*2+i.diagramMarginY),s=0,c=`#CCC`,u=`black`,d=0;for(let[n,l]of t.entries()){if(a!==l.section){c=Z[s%Z.length],d=s%Z.length,u=Q[s%Q.length];let r=0,o=l.section;for(let e=n;e<t.length&&t[e].section==o;e++)r+=1;let f={x:n*i.taskMargin+n*i.width+Y,y:50,text:l.section,fill:c,num:d,colour:u,taskCount:r};U.drawSection(e,f,i),a=l.section,s++}let f=l.people.reduce((e,t)=>(G[t]&&(e[t]=G[t]),e),{});l.x=n*i.taskMargin+n*i.width+Y,l.y=o,l.width=i.diagramMarginX,l.height=i.diagramMarginY,l.colour=u,l.fill=c,l.num=d,l.actors=f,U.drawTask(e,l,i,r),X.insert(l.x,l.y,l.x+l.width+i.taskMargin,450)}},`drawTasks`),$={setConf:W,draw:ee},ne={parser:v,db:j,renderer:$,styles:M,init:e(e=>{$.setConf(e.journey),j.clear()},`init`)};export{ne as diagram};