@scalar/agent-chat 0.2.1 → 0.2.3

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 (256) hide show
  1. package/dist/App.vue.d.ts +6 -1
  2. package/dist/App.vue.d.ts.map +1 -1
  3. package/dist/Chat.vue.d.ts.map +1 -1
  4. package/dist/Tooltip-Cm82QgNj.js +575 -0
  5. package/dist/__vite-optional-peer-dep_stream-markdown_markstream-vue_false-sdjmOmXd.js +5 -0
  6. package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue_false-HdL4xm5U.js +5 -0
  7. package/dist/__vite-optional-peer-dep_vue-i18n_markstream-vue_false-B9Pwe5kz.js +5 -0
  8. package/dist/_basePickBy-hHD8tMGb.js +151 -0
  9. package/dist/_baseUniq-DTF1wuF6.js +614 -0
  10. package/dist/arc-Dw2RQerU.js +83 -0
  11. package/dist/architecture-U656AL7Q-B00Z9eXr.js +36 -0
  12. package/dist/architectureDiagram-VXUJARFQ-BtOffFaM.js +4662 -0
  13. package/dist/blockDiagram-VD42YOAC-BUqFMMQe.js +2261 -0
  14. package/dist/c4Diagram-YG6GDRKO-NrM1YcpG.js +1579 -0
  15. package/dist/channel-105myCGU.js +5 -0
  16. package/dist/chunk-4BX2VUAB-TAxJli7C.js +8 -0
  17. package/dist/chunk-55IACEB6-VXFJ4bz5.js +8 -0
  18. package/dist/chunk-B4BG7PRW-CZDQpfj5.js +1375 -0
  19. package/dist/chunk-DI55MBZ5-D3l7TA-E.js +1370 -0
  20. package/dist/chunk-FMBD7UC4-BMXFm8I3.js +19 -0
  21. package/dist/chunk-QN33PNHL-BOUpbpWp.js +19 -0
  22. package/dist/chunk-QZHKN3VN-C-TEEx05.js +15 -0
  23. package/dist/chunk-TZMSLE5B-BUiROKNR.js +64 -0
  24. package/dist/classDiagram-2ON5EDUG-HQET4ybK.js +16 -0
  25. package/dist/classDiagram-v2-WZHVMYZB-HQET4ybK.js +16 -0
  26. package/dist/clone-CIIO71O9.js +8 -0
  27. package/dist/components/ApprovalSection.vue.d.ts.map +1 -1
  28. package/dist/components/PaymentSection.vue.d.ts +9 -0
  29. package/dist/components/PaymentSection.vue.d.ts.map +1 -0
  30. package/dist/components/RequestPreview.vue.d.ts.map +1 -1
  31. package/dist/components/ResponseBody/ResponseBody.vue.d.ts +1 -1
  32. package/dist/components/ResponseBody/ResponseBodyPreview.vue.d.ts +1 -1
  33. package/dist/cose-bilkent-S5V4N54A-CMsF4n-5.js +2609 -0
  34. package/dist/cytoscape.esm-DfdJODL8.js +18735 -0
  35. package/dist/dagre-6UL2VRFP-DqzdQ6Qg.js +444 -0
  36. package/dist/defaultLocale-BEa-49Qz.js +171 -0
  37. package/dist/diagram-PSM6KHXK-1xyGntw2.js +531 -0
  38. package/dist/diagram-QEK2KX5R-DdZdlAm1.js +217 -0
  39. package/dist/diagram-S2PKOQOG-C80Eo2jp.js +142 -0
  40. package/dist/erDiagram-Q2GNP2WA-DFVRrMXT.js +841 -0
  41. package/dist/flowDiagram-NV44I4VS-D9QK_qqB.js +1620 -0
  42. package/dist/ganttDiagram-LVOFAZNH-Bo1NTkeQ.js +2506 -0
  43. package/dist/gitGraph-F6HP7TQM-C5hdgcgO.js +27 -0
  44. package/dist/gitGraphDiagram-NY62KEGX-BZqnqZh6.js +699 -0
  45. package/dist/graph-Dth4IhEK.js +247 -0
  46. package/dist/helpers.d.ts +1 -1
  47. package/dist/hooks/useSearch.d.ts.map +1 -1
  48. package/dist/index-BOvT43H8.js +111780 -0
  49. package/dist/index.d.ts +1 -1
  50. package/dist/index.js +2 -3
  51. package/dist/index2-B36B-gt0.js +69 -0
  52. package/dist/index3-CtIyYUnG.js +70 -0
  53. package/dist/index4-Dzz91Ao2.js +537 -0
  54. package/dist/index5-Bmz0gMSP.js +590 -0
  55. package/dist/index6-DMB3qTSV.js +196 -0
  56. package/dist/info-NVLQJR56-azt5obk5.js +27 -0
  57. package/dist/infoDiagram-ER5ION4S-DD4Jtctm.js +24 -0
  58. package/dist/infographic_markstream-vue_false-BfsmcXxk.js +5 -0
  59. package/dist/init-DjUOC4st.js +16 -0
  60. package/dist/journeyDiagram-XKPGCS4Q-CXL6UO0r.js +834 -0
  61. package/dist/kanban-definition-3W4ZIXB7-B57do5Wg.js +719 -0
  62. package/dist/katex-SsTUIUTC.js +11688 -0
  63. package/dist/layout-7TCY8eA2.js +1332 -0
  64. package/dist/linear-DSm5i91N.js +625 -0
  65. package/dist/mermaid-parser.core-CUQWpAMM.js +12746 -0
  66. package/dist/mermaid.core-QjuzH7xx.js +14164 -0
  67. package/dist/mhchem-XHl7cef5.js +2306 -0
  68. package/dist/mindmap-definition-VGOIOE7T-DAQyGNAM.js +784 -0
  69. package/dist/ordinal-DfAQgscy.js +61 -0
  70. package/dist/package.json +2 -2
  71. package/dist/packet-BFZMPI3H-CixuxAEA.js +27 -0
  72. package/dist/pie-7BOR55EZ-D3cgnzR1.js +32 -0
  73. package/dist/pieDiagram-ADFJNKIX-BqxgYwrL.js +161 -0
  74. package/dist/quadrantDiagram-AYHSOK5B-CQ4v-9Hh.js +1022 -0
  75. package/dist/radar-NHE76QYJ-DhV0Od_M.js +27 -0
  76. package/dist/registry/add-documents-to-store.d.ts +3 -2
  77. package/dist/registry/add-documents-to-store.d.ts.map +1 -1
  78. package/dist/requirementDiagram-UZGBJVZJ-ncWNAgFi.js +850 -0
  79. package/dist/safeRaf-I3a3-dyJ.js +10 -0
  80. package/dist/sankeyDiagram-TZEHDZUN-yCR2_cH5.js +810 -0
  81. package/dist/sequenceDiagram-WL72ISMW-DZ7wqFyd.js +2511 -0
  82. package/dist/state/state.d.ts +7 -3
  83. package/dist/state/state.d.ts.map +1 -1
  84. package/dist/stateDiagram-FKZM4ZOC-Dra68Tzi.js +263 -0
  85. package/dist/stateDiagram-v2-4FDKWEC3-CARbPECD.js +16 -0
  86. package/dist/style.css +1 -12713
  87. package/dist/timeline-definition-IT6M3QCI-DEbG9QIM.js +795 -0
  88. package/dist/treemap-KMMF4GRG-CQbPsyWe.js +81 -0
  89. package/dist/views/Chat/Chat.vue.d.ts.map +1 -1
  90. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts +1 -1
  91. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.d.ts.map +1 -1
  92. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.d.ts +1 -1
  93. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.d.ts +1 -1
  94. package/dist/views/PromptForm.vue.d.ts.map +1 -1
  95. package/dist/views/Start.vue.d.ts.map +1 -1
  96. package/dist/xychartDiagram-PRI3JC2R-C94Pu8hL.js +1340 -0
  97. package/package.json +1 -1
  98. package/dist/App.vue.js +0 -29
  99. package/dist/App.vue.js.map +0 -1
  100. package/dist/App.vue2.js +0 -5
  101. package/dist/App.vue2.js.map +0 -1
  102. package/dist/Chat.vue.js +0 -55
  103. package/dist/Chat.vue.js.map +0 -1
  104. package/dist/Chat.vue2.js +0 -5
  105. package/dist/Chat.vue2.js.map +0 -1
  106. package/dist/_virtual/_plugin-vue_export-helper.js +0 -11
  107. package/dist/_virtual/_plugin-vue_export-helper.js.map +0 -1
  108. package/dist/components/ApprovalSection.vue.js +0 -8
  109. package/dist/components/ApprovalSection.vue.js.map +0 -1
  110. package/dist/components/ApprovalSection.vue2.js +0 -47
  111. package/dist/components/ApprovalSection.vue2.js.map +0 -1
  112. package/dist/components/AutosendPaused.vue.js +0 -15
  113. package/dist/components/AutosendPaused.vue.js.map +0 -1
  114. package/dist/components/ContextItem.vue.js +0 -8
  115. package/dist/components/ContextItem.vue.js.map +0 -1
  116. package/dist/components/ContextItem.vue2.js +0 -22
  117. package/dist/components/ContextItem.vue2.js.map +0 -1
  118. package/dist/components/Endpoint.vue.js +0 -8
  119. package/dist/components/Endpoint.vue.js.map +0 -1
  120. package/dist/components/Endpoint.vue2.js +0 -98
  121. package/dist/components/Endpoint.vue2.js.map +0 -1
  122. package/dist/components/ErrorMessage.vue.js +0 -8
  123. package/dist/components/ErrorMessage.vue.js.map +0 -1
  124. package/dist/components/ErrorMessage.vue2.js +0 -28
  125. package/dist/components/ErrorMessage.vue2.js.map +0 -1
  126. package/dist/components/LoadingMiniOpenAPIDoc.vue.js +0 -16
  127. package/dist/components/LoadingMiniOpenAPIDoc.vue.js.map +0 -1
  128. package/dist/components/LoadingOpenAPISpecsSummary.vue.js +0 -16
  129. package/dist/components/LoadingOpenAPISpecsSummary.vue.js.map +0 -1
  130. package/dist/components/Logo.vue.js +0 -25
  131. package/dist/components/Logo.vue.js.map +0 -1
  132. package/dist/components/RequestApproved.vue.js +0 -15
  133. package/dist/components/RequestApproved.vue.js.map +0 -1
  134. package/dist/components/RequestFailed.vue.js +0 -26
  135. package/dist/components/RequestFailed.vue.js.map +0 -1
  136. package/dist/components/RequestPreview.vue.js +0 -9
  137. package/dist/components/RequestPreview.vue.js.map +0 -1
  138. package/dist/components/RequestPreview.vue2.js +0 -150
  139. package/dist/components/RequestPreview.vue2.js.map +0 -1
  140. package/dist/components/RequestRejected.vue.js +0 -24
  141. package/dist/components/RequestRejected.vue.js.map +0 -1
  142. package/dist/components/RequestSuccess.vue.js +0 -15
  143. package/dist/components/RequestSuccess.vue.js.map +0 -1
  144. package/dist/components/ResponseBody/ResponseBody.vue.js +0 -45
  145. package/dist/components/ResponseBody/ResponseBody.vue.js.map +0 -1
  146. package/dist/components/ResponseBody/ResponseBody.vue2.js +0 -5
  147. package/dist/components/ResponseBody/ResponseBody.vue2.js.map +0 -1
  148. package/dist/components/ResponseBody/ResponseBodyInfo.vue.js +0 -17
  149. package/dist/components/ResponseBody/ResponseBodyInfo.vue.js.map +0 -1
  150. package/dist/components/ResponseBody/ResponseBodyPreview.vue.js +0 -8
  151. package/dist/components/ResponseBody/ResponseBodyPreview.vue.js.map +0 -1
  152. package/dist/components/ResponseBody/ResponseBodyPreview.vue2.js +0 -73
  153. package/dist/components/ResponseBody/ResponseBodyPreview.vue2.js.map +0 -1
  154. package/dist/components/ResponseBody/ResponseBodyRaw.vue.js +0 -23
  155. package/dist/components/ResponseBody/ResponseBodyRaw.vue.js.map +0 -1
  156. package/dist/components/ResponseBody/ResponseBodyRaw.vue2.js +0 -5
  157. package/dist/components/ResponseBody/ResponseBodyRaw.vue2.js.map +0 -1
  158. package/dist/components/ResponseBody/ResponseBodyToggle.vue.js +0 -30
  159. package/dist/components/ResponseBody/ResponseBodyToggle.vue.js.map +0 -1
  160. package/dist/components/ResponseBody/ResponseBodyToggle.vue2.js +0 -5
  161. package/dist/components/ResponseBody/ResponseBodyToggle.vue2.js.map +0 -1
  162. package/dist/components/ResponseBody/helpers/media-types.js +0 -134
  163. package/dist/components/ResponseBody/helpers/media-types.js.map +0 -1
  164. package/dist/components/ResponseBody/helpers/process-response-body.js +0 -63
  165. package/dist/components/ResponseBody/helpers/process-response-body.js.map +0 -1
  166. package/dist/components/SearchPopover.vue.js +0 -8
  167. package/dist/components/SearchPopover.vue.js.map +0 -1
  168. package/dist/components/SearchPopover.vue2.js +0 -78
  169. package/dist/components/SearchPopover.vue2.js.map +0 -1
  170. package/dist/components/SendingRequest.vue.js +0 -26
  171. package/dist/components/SendingRequest.vue.js.map +0 -1
  172. package/dist/components/Suggestion.vue.js +0 -8
  173. package/dist/components/Suggestion.vue.js.map +0 -1
  174. package/dist/components/Suggestion.vue2.js +0 -28
  175. package/dist/components/Suggestion.vue2.js.map +0 -1
  176. package/dist/components/TestRequestButton.vue.js +0 -8
  177. package/dist/components/TestRequestButton.vue.js.map +0 -1
  178. package/dist/components/TestRequestButton.vue2.js +0 -37
  179. package/dist/components/TestRequestButton.vue2.js.map +0 -1
  180. package/dist/helpers.js +0 -201
  181. package/dist/helpers.js.map +0 -1
  182. package/dist/hooks/useChatApprovals.js +0 -25
  183. package/dist/hooks/useChatApprovals.js.map +0 -1
  184. package/dist/hooks/useChatOperationBlocks.js +0 -29
  185. package/dist/hooks/useChatOperationBlocks.js.map +0 -1
  186. package/dist/hooks/useChatScroll.js +0 -22
  187. package/dist/hooks/useChatScroll.js.map +0 -1
  188. package/dist/hooks/useSearch.js +0 -36
  189. package/dist/hooks/useSearch.js.map +0 -1
  190. package/dist/index.js.map +0 -1
  191. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js +0 -12
  192. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js.map +0 -1
  193. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js +0 -67
  194. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js.map +0 -1
  195. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js +0 -25
  196. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js.map +0 -1
  197. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js +0 -64
  198. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js.map +0 -1
  199. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js +0 -8
  200. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js.map +0 -1
  201. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js +0 -181
  202. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js.map +0 -1
  203. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js +0 -85
  204. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js.map +0 -1
  205. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js +0 -9
  206. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js.map +0 -1
  207. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/mini/schemas.js +0 -61
  208. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/mini/schemas.js.map +0 -1
  209. package/dist/registry/add-documents-to-store.js +0 -42
  210. package/dist/registry/add-documents-to-store.js.map +0 -1
  211. package/dist/state/state.js +0 -112
  212. package/dist/state/state.js.map +0 -1
  213. package/dist/views/Chat/Chat.vue.js +0 -8
  214. package/dist/views/Chat/Chat.vue.js.map +0 -1
  215. package/dist/views/Chat/Chat.vue2.js +0 -84
  216. package/dist/views/Chat/Chat.vue2.js.map +0 -1
  217. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.js +0 -8
  218. package/dist/views/Chat/Messages/ExecuteRequestTool.vue.js.map +0 -1
  219. package/dist/views/Chat/Messages/ExecuteRequestTool.vue2.js +0 -39
  220. package/dist/views/Chat/Messages/ExecuteRequestTool.vue2.js.map +0 -1
  221. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.js +0 -8
  222. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue.js.map +0 -1
  223. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js +0 -65
  224. package/dist/views/Chat/Messages/GetMiniOpenAPIDocTool.vue2.js.map +0 -1
  225. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.js +0 -32
  226. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue.js.map +0 -1
  227. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue2.js +0 -5
  228. package/dist/views/Chat/Messages/GetOpenAPISpecsSummary.vue2.js.map +0 -1
  229. package/dist/views/Chat/Messages/Text.vue.js +0 -21
  230. package/dist/views/Chat/Messages/Text.vue.js.map +0 -1
  231. package/dist/views/Chat/Messages/Text.vue2.js +0 -5
  232. package/dist/views/Chat/Messages/Text.vue2.js.map +0 -1
  233. package/dist/views/Layout.vue.js +0 -8
  234. package/dist/views/Layout.vue.js.map +0 -1
  235. package/dist/views/Layout.vue2.js +0 -28
  236. package/dist/views/Layout.vue2.js.map +0 -1
  237. package/dist/views/PromptForm.vue.js +0 -8
  238. package/dist/views/PromptForm.vue.js.map +0 -1
  239. package/dist/views/PromptForm.vue2.js +0 -182
  240. package/dist/views/PromptForm.vue2.js.map +0 -1
  241. package/dist/views/Settings/Auth.vue.js +0 -66
  242. package/dist/views/Settings/Auth.vue.js.map +0 -1
  243. package/dist/views/Settings/Auth.vue2.js +0 -5
  244. package/dist/views/Settings/Auth.vue2.js.map +0 -1
  245. package/dist/views/Settings/DocSettings.vue.js +0 -8
  246. package/dist/views/Settings/DocSettings.vue.js.map +0 -1
  247. package/dist/views/Settings/DocSettings.vue2.js +0 -50
  248. package/dist/views/Settings/DocSettings.vue2.js.map +0 -1
  249. package/dist/views/Settings/Settings.vue.js +0 -9
  250. package/dist/views/Settings/Settings.vue.js.map +0 -1
  251. package/dist/views/Settings/Settings.vue2.js +0 -78
  252. package/dist/views/Settings/Settings.vue2.js.map +0 -1
  253. package/dist/views/Start.vue.js +0 -8
  254. package/dist/views/Start.vue.js.map +0 -1
  255. package/dist/views/Start.vue2.js +0 -56
  256. package/dist/views/Start.vue2.js.map +0 -1
package/dist/App.vue.d.ts CHANGED
@@ -1,9 +1,14 @@
1
1
  import './index.css';
2
- import { type RegistryDocument } from './state/state.js';
2
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
3
+ import { type WorkspaceEventBus } from '@scalar/workspace-store/events';
4
+ import { type RegistryDocument } from './state/state';
3
5
  type __VLS_Props = {
6
+ eventBus: WorkspaceEventBus;
7
+ workspaceStore: WorkspaceStore;
4
8
  registryDocuments: [RegistryDocument, ...RegistryDocument[]];
5
9
  registryUrl: string;
6
10
  baseUrl: string;
11
+ getAccessToken: () => string;
7
12
  };
8
13
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
14
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":"AA+BA,OAAO,aAAa,CAAA;AAKpB,OAAO,EAAe,KAAK,gBAAgB,EAAgB,MAAM,eAAe,CAAA;AAEhF,KAAK,WAAW,GAAG;IACjB,iBAAiB,EAAE,CAAC,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAA;IAC5D,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAC;;AAiDF,wBAEG"}
1
+ {"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":"AA+CA,OAAO,aAAa,CAAA;AAIpB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAGvE,OAAO,EAAe,KAAK,gBAAgB,EAAgB,MAAM,eAAe,CAAA;AAEhF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,CAAC,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAA;IAC5D,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,cAAc,EAAE,MAAM,MAAM,CAAA;CAC7B,CAAC;;AA2DF,wBAEG"}
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.vue.d.ts","sourceRoot":"","sources":["../src/Chat.vue"],"names":[],"mappings":";AA2LA,wBACG"}
1
+ {"version":3,"file":"Chat.vue.d.ts","sourceRoot":"","sources":["../src/Chat.vue"],"names":[],"mappings":";AAqGA,wBACG"}
@@ -0,0 +1,575 @@
1
+ import { defineComponent as Zt, computed as te, ref as xt, createBlock as ee, watch as St, onBeforeUnmount as ne, openBlock as oe, Teleport as re, createElementVNode as At, createVNode as ie, Transition as le, withCtx as ce, withDirectives as se, normalizeClass as ae, normalizeStyle as fe, toDisplayString as ue, vShow as de, nextTick as lt } from "vue";
2
+ import { J as pe } from "./index-BOvT43H8.js";
3
+ var he = Object.defineProperty, me = Object.defineProperties, ye = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Nt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable, kt = (t, e, n) => e in t ? he(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, H = (t, e) => {
4
+ for (var n in e || (e = {})) Nt.call(e, n) && kt(t, n, e[n]);
5
+ if (at) for (var n of at(e)) zt.call(e, n) && kt(t, n, e[n]);
6
+ return t;
7
+ }, K = (t, e) => me(t, ye(e)), jt = (t, e) => {
8
+ var n = {};
9
+ for (var o in t) Nt.call(t, o) && e.indexOf(o) < 0 && (n[o] = t[o]);
10
+ if (t != null && at) for (var o of at(t)) e.indexOf(o) < 0 && zt.call(t, o) && (n[o] = t[o]);
11
+ return n;
12
+ }, $ = (t, e, n) => new Promise((o, r) => {
13
+ var i = (c) => {
14
+ try {
15
+ l(n.next(c));
16
+ } catch (a) {
17
+ r(a);
18
+ }
19
+ }, s = (c) => {
20
+ try {
21
+ l(n.throw(c));
22
+ } catch (a) {
23
+ r(a);
24
+ }
25
+ }, l = (c) => c.done ? o(c.value) : Promise.resolve(c.value).then(i, s);
26
+ l((n = n.apply(t, e)).next());
27
+ });
28
+ const ft = Math.min, Q = Math.max, ut = Math.round, ct = Math.floor, X = (t) => ({ x: t, y: t }), ge = { left: "right", right: "left", bottom: "top", top: "bottom" }, ve = { start: "end", end: "start" };
29
+ function Ot(t, e, n) {
30
+ return Q(t, ft(e, n));
31
+ }
32
+ function yt(t, e) {
33
+ return typeof t == "function" ? t(e) : t;
34
+ }
35
+ function U(t) {
36
+ return t.split("-")[0];
37
+ }
38
+ function dt(t) {
39
+ return t.split("-")[1];
40
+ }
41
+ function _t(t) {
42
+ return t === "x" ? "y" : "x";
43
+ }
44
+ function $t(t) {
45
+ return t === "y" ? "height" : "width";
46
+ }
47
+ const xe = /* @__PURE__ */ new Set(["top", "bottom"]);
48
+ function q(t) {
49
+ return xe.has(U(t)) ? "y" : "x";
50
+ }
51
+ function Xt(t) {
52
+ return _t(q(t));
53
+ }
54
+ function wt(t) {
55
+ return t.replace(/start|end/g, (e) => ve[e]);
56
+ }
57
+ const Dt = ["left", "right"], Ct = ["right", "left"], we = ["top", "bottom"], be = ["bottom", "top"];
58
+ function st(t) {
59
+ return t.replace(/left|right|bottom|top/g, (e) => ge[e]);
60
+ }
61
+ function pt(t) {
62
+ const { x: e, y: n, width: o, height: r } = t;
63
+ return { width: o, height: r, top: n, left: e, right: e + o, bottom: n + r, x: e, y: n };
64
+ }
65
+ function Pt(t, e, n) {
66
+ let { reference: o, floating: r } = t;
67
+ const i = q(e), s = Xt(e), l = $t(s), c = U(e), a = i === "y", p = o.x + o.width / 2 - r.width / 2, h = o.y + o.height / 2 - r.height / 2, y = o[l] / 2 - r[l] / 2;
68
+ let d;
69
+ switch (c) {
70
+ case "top":
71
+ d = { x: p, y: o.y - r.height };
72
+ break;
73
+ case "bottom":
74
+ d = { x: p, y: o.y + o.height };
75
+ break;
76
+ case "right":
77
+ d = { x: o.x + o.width, y: h };
78
+ break;
79
+ case "left":
80
+ d = { x: o.x - r.width, y: h };
81
+ break;
82
+ default:
83
+ d = { x: o.x, y: o.y };
84
+ }
85
+ switch (dt(e)) {
86
+ case "start":
87
+ d[s] -= y * (n && a ? -1 : 1);
88
+ break;
89
+ case "end":
90
+ d[s] += y * (n && a ? -1 : 1);
91
+ }
92
+ return d;
93
+ }
94
+ function Yt(t, e) {
95
+ return $(this, null, function* () {
96
+ var n;
97
+ e === void 0 && (e = {});
98
+ const { x: o, y: r, platform: i, rects: s, elements: l, strategy: c } = t, { boundary: a = "clippingAncestors", rootBoundary: p = "viewport", elementContext: h = "floating", altBoundary: y = !1, padding: d = 0 } = yt(e, t), f = (function(S) {
99
+ return typeof S != "number" ? (function(k) {
100
+ return H({ top: 0, right: 0, bottom: 0, left: 0 }, k);
101
+ })(S) : { top: S, right: S, bottom: S, left: S };
102
+ })(d), m = l[y ? h === "floating" ? "reference" : "floating" : h], u = pt(yield i.getClippingRect({ element: (n = yield i.isElement == null ? void 0 : i.isElement(m)) == null || n ? m : m.contextElement || (yield i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)), boundary: a, rootBoundary: p, strategy: c })), g = h === "floating" ? { x: o, y: r, width: s.floating.width, height: s.floating.height } : s.reference, R = yield i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating), E = (yield i.isElement == null ? void 0 : i.isElement(R)) && (yield i.getScale == null ? void 0 : i.getScale(R)) || { x: 1, y: 1 }, A = pt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? yield i.convertOffsetParentRelativeRectToViewportRelativeRect({ elements: l, rect: g, offsetParent: R, strategy: c }) : g);
103
+ return { top: (u.top - A.top + f.top) / E.y, bottom: (A.bottom - u.bottom + f.bottom) / E.y, left: (u.left - A.left + f.left) / E.x, right: (A.right - u.right + f.right) / E.x };
104
+ });
105
+ }
106
+ const Re = /* @__PURE__ */ new Set(["left", "top"]);
107
+ function gt() {
108
+ return typeof window < "u";
109
+ }
110
+ function nt(t) {
111
+ return It(t) ? (t.nodeName || "").toLowerCase() : "#document";
112
+ }
113
+ function B(t) {
114
+ var e;
115
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
116
+ }
117
+ function Y(t) {
118
+ var e;
119
+ return (e = (It(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
120
+ }
121
+ function It(t) {
122
+ return !!gt() && (t instanceof Node || t instanceof B(t).Node);
123
+ }
124
+ function N(t) {
125
+ return !!gt() && (t instanceof Element || t instanceof B(t).Element);
126
+ }
127
+ function I(t) {
128
+ return !!gt() && (t instanceof HTMLElement || t instanceof B(t).HTMLElement);
129
+ }
130
+ function Mt(t) {
131
+ return !(!gt() || typeof ShadowRoot > "u") && (t instanceof ShadowRoot || t instanceof B(t).ShadowRoot);
132
+ }
133
+ const Ee = /* @__PURE__ */ new Set(["inline", "contents"]);
134
+ function ot(t) {
135
+ const { overflow: e, overflowX: n, overflowY: o, display: r } = z(t);
136
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Ee.has(r);
137
+ }
138
+ const Te = /* @__PURE__ */ new Set(["table", "td", "th"]);
139
+ function Le(t) {
140
+ return Te.has(nt(t));
141
+ }
142
+ const Se = [":popover-open", ":modal"];
143
+ function ht(t) {
144
+ return Se.some((e) => {
145
+ try {
146
+ return t.matches(e);
147
+ } catch {
148
+ return !1;
149
+ }
150
+ });
151
+ }
152
+ const Ae = ["transform", "translate", "scale", "rotate", "perspective"], ke = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Oe = ["paint", "layout", "strict", "content"];
153
+ function Rt(t) {
154
+ const e = Tt(), n = N(t) ? z(t) : t;
155
+ return Ae.some((o) => !!n[o] && n[o] !== "none") || !!n.containerType && n.containerType !== "normal" || !e && !!n.backdropFilter && n.backdropFilter !== "none" || !e && !!n.filter && n.filter !== "none" || ke.some((o) => (n.willChange || "").includes(o)) || Oe.some((o) => (n.contain || "").includes(o));
156
+ }
157
+ function Tt() {
158
+ return !(typeof CSS > "u" || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
159
+ }
160
+ const De = /* @__PURE__ */ new Set(["html", "body", "#document"]);
161
+ function tt(t) {
162
+ return De.has(nt(t));
163
+ }
164
+ function z(t) {
165
+ return B(t).getComputedStyle(t);
166
+ }
167
+ function vt(t) {
168
+ return N(t) ? { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop } : { scrollLeft: t.scrollX, scrollTop: t.scrollY };
169
+ }
170
+ function J(t) {
171
+ if (nt(t) === "html") return t;
172
+ const e = t.assignedSlot || t.parentNode || Mt(t) && t.host || Y(t);
173
+ return Mt(e) ? e.host : e;
174
+ }
175
+ function qt(t) {
176
+ const e = J(t);
177
+ return tt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : I(e) && ot(e) ? e : qt(e);
178
+ }
179
+ function rt(t, e, n) {
180
+ var o;
181
+ e === void 0 && (e = []), n === void 0 && (n = !0);
182
+ const r = qt(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = B(r);
183
+ if (i) {
184
+ const l = Et(s);
185
+ return e.concat(s, s.visualViewport || [], ot(r) ? r : [], l && n ? rt(l) : []);
186
+ }
187
+ return e.concat(r, rt(r, [], n));
188
+ }
189
+ function Et(t) {
190
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
191
+ }
192
+ function Jt(t) {
193
+ const e = z(t);
194
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
195
+ const r = I(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, l = ut(n) !== i || ut(o) !== s;
196
+ return l && (n = i, o = s), { width: n, height: o, $: l };
197
+ }
198
+ function Lt(t) {
199
+ return N(t) ? t : t.contextElement;
200
+ }
201
+ function et(t) {
202
+ const e = Lt(t);
203
+ if (!I(e)) return X(1);
204
+ const n = e.getBoundingClientRect(), { width: o, height: r, $: i } = Jt(e);
205
+ let s = (i ? ut(n.width) : n.width) / o, l = (i ? ut(n.height) : n.height) / r;
206
+ return s && Number.isFinite(s) || (s = 1), l && Number.isFinite(l) || (l = 1), { x: s, y: l };
207
+ }
208
+ const Ce = /* @__PURE__ */ X(0);
209
+ function Gt(t) {
210
+ const e = B(t);
211
+ return Tt() && e.visualViewport ? { x: e.visualViewport.offsetLeft, y: e.visualViewport.offsetTop } : Ce;
212
+ }
213
+ function Z(t, e, n, o) {
214
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
215
+ const r = t.getBoundingClientRect(), i = Lt(t);
216
+ let s = X(1);
217
+ e && (o ? N(o) && (s = et(o)) : s = et(t));
218
+ const l = (function(y, d, f) {
219
+ return d === void 0 && (d = !1), !(!f || d && f !== B(y)) && d;
220
+ })(i, n, o) ? Gt(i) : X(0);
221
+ let c = (r.left + l.x) / s.x, a = (r.top + l.y) / s.y, p = r.width / s.x, h = r.height / s.y;
222
+ if (i) {
223
+ const y = B(i), d = o && N(o) ? B(o) : o;
224
+ let f = y, m = Et(f);
225
+ for (; m && o && d !== f; ) {
226
+ const u = et(m), g = m.getBoundingClientRect(), R = z(m), E = g.left + (m.clientLeft + parseFloat(R.paddingLeft)) * u.x, A = g.top + (m.clientTop + parseFloat(R.paddingTop)) * u.y;
227
+ c *= u.x, a *= u.y, p *= u.x, h *= u.y, c += E, a += A, f = B(m), m = Et(f);
228
+ }
229
+ }
230
+ return pt({ width: p, height: h, x: c, y: a });
231
+ }
232
+ function mt(t, e) {
233
+ const n = vt(t).scrollLeft;
234
+ return e ? e.left + n : Z(Y(t)).left + n;
235
+ }
236
+ function Kt(t, e) {
237
+ const n = t.getBoundingClientRect();
238
+ return { x: n.left + e.scrollLeft - mt(t, n), y: n.top + e.scrollTop };
239
+ }
240
+ const Pe = /* @__PURE__ */ new Set(["absolute", "fixed"]);
241
+ function Bt(t, e, n) {
242
+ let o;
243
+ if (e === "viewport") o = (function(r, i) {
244
+ const s = B(r), l = Y(r), c = s.visualViewport;
245
+ let a = l.clientWidth, p = l.clientHeight, h = 0, y = 0;
246
+ if (c) {
247
+ a = c.width, p = c.height;
248
+ const f = Tt();
249
+ (!f || f && i === "fixed") && (h = c.offsetLeft, y = c.offsetTop);
250
+ }
251
+ const d = mt(l);
252
+ if (d <= 0) {
253
+ const f = l.ownerDocument, m = f.body, u = getComputedStyle(m), g = f.compatMode === "CSS1Compat" && parseFloat(u.marginLeft) + parseFloat(u.marginRight) || 0, R = Math.abs(l.clientWidth - m.clientWidth - g);
254
+ R <= 25 && (a -= R);
255
+ } else d <= 25 && (a += d);
256
+ return { width: a, height: p, x: h, y };
257
+ })(t, n);
258
+ else if (e === "document") o = (function(r) {
259
+ const i = Y(r), s = vt(r), l = r.ownerDocument.body, c = Q(i.scrollWidth, i.clientWidth, l.scrollWidth, l.clientWidth), a = Q(i.scrollHeight, i.clientHeight, l.scrollHeight, l.clientHeight);
260
+ let p = -s.scrollLeft + mt(r);
261
+ const h = -s.scrollTop;
262
+ return z(l).direction === "rtl" && (p += Q(i.clientWidth, l.clientWidth) - c), { width: c, height: a, x: p, y: h };
263
+ })(Y(t));
264
+ else if (N(e)) o = (function(r, i) {
265
+ const s = Z(r, !0, i === "fixed"), l = s.top + r.clientTop, c = s.left + r.clientLeft, a = I(r) ? et(r) : X(1);
266
+ return { width: r.clientWidth * a.x, height: r.clientHeight * a.y, x: c * a.x, y: l * a.y };
267
+ })(e, n);
268
+ else {
269
+ const r = Gt(t);
270
+ o = { x: e.x - r.x, y: e.y - r.y, width: e.width, height: e.height };
271
+ }
272
+ return pt(o);
273
+ }
274
+ function Qt(t, e) {
275
+ const n = J(t);
276
+ return !(n === e || !N(n) || tt(n)) && (z(n).position === "fixed" || Qt(n, e));
277
+ }
278
+ function Me(t, e, n) {
279
+ const o = I(e), r = Y(e), i = n === "fixed", s = Z(t, !0, i, e);
280
+ let l = { scrollLeft: 0, scrollTop: 0 };
281
+ const c = X(0);
282
+ function a() {
283
+ c.x = mt(r);
284
+ }
285
+ if (o || !o && !i) if ((nt(e) !== "body" || ot(r)) && (l = vt(e)), o) {
286
+ const h = Z(e, !0, i, e);
287
+ c.x = h.x + e.clientLeft, c.y = h.y + e.clientTop;
288
+ } else r && a();
289
+ i && !o && r && a();
290
+ const p = !r || o || i ? X(0) : Kt(r, l);
291
+ return { x: s.left + l.scrollLeft - c.x - p.x, y: s.top + l.scrollTop - c.y - p.y, width: s.width, height: s.height };
292
+ }
293
+ function bt(t) {
294
+ return z(t).position === "static";
295
+ }
296
+ function Ft(t, e) {
297
+ if (!I(t) || z(t).position === "fixed") return null;
298
+ if (e) return e(t);
299
+ let n = t.offsetParent;
300
+ return Y(t) === n && (n = n.ownerDocument.body), n;
301
+ }
302
+ function Wt(t, e) {
303
+ const n = B(t);
304
+ if (ht(t)) return n;
305
+ if (!I(t)) {
306
+ let r = J(t);
307
+ for (; r && !tt(r); ) {
308
+ if (N(r) && !bt(r)) return r;
309
+ r = J(r);
310
+ }
311
+ return n;
312
+ }
313
+ let o = Ft(t, e);
314
+ for (; o && Le(o) && bt(o); ) o = Ft(o, e);
315
+ return o && tt(o) && bt(o) && !Rt(o) ? n : o || (function(r) {
316
+ let i = J(r);
317
+ for (; I(i) && !tt(i); ) {
318
+ if (Rt(i)) return i;
319
+ if (ht(i)) return null;
320
+ i = J(i);
321
+ }
322
+ return null;
323
+ })(t) || n;
324
+ }
325
+ const Be = { convertOffsetParentRelativeRectToViewportRelativeRect: function(t) {
326
+ let { elements: e, rect: n, offsetParent: o, strategy: r } = t;
327
+ const i = r === "fixed", s = Y(o), l = !!e && ht(e.floating);
328
+ if (o === s || l && i) return n;
329
+ let c = { scrollLeft: 0, scrollTop: 0 }, a = X(1);
330
+ const p = X(0), h = I(o);
331
+ if ((h || !h && !i) && ((nt(o) !== "body" || ot(s)) && (c = vt(o)), I(o))) {
332
+ const d = Z(o);
333
+ a = et(o), p.x = d.x + o.clientLeft, p.y = d.y + o.clientTop;
334
+ }
335
+ const y = !s || h || i ? X(0) : Kt(s, c);
336
+ return { width: n.width * a.x, height: n.height * a.y, x: n.x * a.x - c.scrollLeft * a.x + p.x + y.x, y: n.y * a.y - c.scrollTop * a.y + p.y + y.y };
337
+ }, getDocumentElement: Y, getClippingRect: function(t) {
338
+ let { element: e, boundary: n, rootBoundary: o, strategy: r } = t;
339
+ const i = [...n === "clippingAncestors" ? ht(e) ? [] : (function(c, a) {
340
+ const p = a.get(c);
341
+ if (p) return p;
342
+ let h = rt(c, [], !1).filter((m) => N(m) && nt(m) !== "body"), y = null;
343
+ const d = z(c).position === "fixed";
344
+ let f = d ? J(c) : c;
345
+ for (; N(f) && !tt(f); ) {
346
+ const m = z(f), u = Rt(f);
347
+ u || m.position !== "fixed" || (y = null), (d ? !u && !y : !u && m.position === "static" && y && Pe.has(y.position) || ot(f) && !u && Qt(c, f)) ? h = h.filter((g) => g !== f) : y = m, f = J(f);
348
+ }
349
+ return a.set(c, h), h;
350
+ })(e, this._c) : [].concat(n), o], s = i[0], l = i.reduce((c, a) => {
351
+ const p = Bt(e, a, r);
352
+ return c.top = Q(p.top, c.top), c.right = ft(p.right, c.right), c.bottom = ft(p.bottom, c.bottom), c.left = Q(p.left, c.left), c;
353
+ }, Bt(e, s, r));
354
+ return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
355
+ }, getOffsetParent: Wt, getElementRects: function(t) {
356
+ return $(this, null, function* () {
357
+ const e = this.getOffsetParent || Wt, n = this.getDimensions, o = yield n(t.floating);
358
+ return { reference: Me(t.reference, yield e(t.floating), t.strategy), floating: { x: 0, y: 0, width: o.width, height: o.height } };
359
+ });
360
+ }, getClientRects: function(t) {
361
+ return Array.from(t.getClientRects());
362
+ }, getDimensions: function(t) {
363
+ const { width: e, height: n } = Jt(t);
364
+ return { width: e, height: n };
365
+ }, getScale: et, isElement: N, isRTL: function(t) {
366
+ return z(t).direction === "rtl";
367
+ } };
368
+ function Vt(t, e) {
369
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
370
+ }
371
+ function Ht(t, e, n, o) {
372
+ o === void 0 && (o = {});
373
+ const { ancestorScroll: r = !0, ancestorResize: i = !0, elementResize: s = typeof ResizeObserver == "function", layoutShift: l = typeof IntersectionObserver == "function", animationFrame: c = !1 } = o, a = Lt(t), p = r || i ? [...a ? rt(a) : [], ...rt(e)] : [];
374
+ p.forEach((u) => {
375
+ r && u.addEventListener("scroll", n, { passive: !0 }), i && u.addEventListener("resize", n);
376
+ });
377
+ const h = a && l ? (function(u, g) {
378
+ let R, E = null;
379
+ const A = Y(u);
380
+ function S() {
381
+ var k;
382
+ clearTimeout(R), (k = E) == null || k.disconnect(), E = null;
383
+ }
384
+ return (function k(F, O) {
385
+ F === void 0 && (F = !1), O === void 0 && (O = 1), S();
386
+ const W = u.getBoundingClientRect(), { left: D, top: C, width: j, height: M } = W;
387
+ if (F || g(), !j || !M) return;
388
+ const P = { rootMargin: -ct(C) + "px " + -ct(A.clientWidth - (D + j)) + "px " + -ct(A.clientHeight - (C + M)) + "px " + -ct(D) + "px", threshold: Q(0, ft(1, O)) || 1 };
389
+ let x = !0;
390
+ function L(w) {
391
+ const v = w[0].intersectionRatio;
392
+ if (v !== O) {
393
+ if (!x) return k();
394
+ v ? k(!1, v) : R = setTimeout(() => {
395
+ k(!1, 1e-7);
396
+ }, 1e3);
397
+ }
398
+ v !== 1 || Vt(W, u.getBoundingClientRect()) || k(), x = !1;
399
+ }
400
+ try {
401
+ E = new IntersectionObserver(L, K(H({}, P), { root: A.ownerDocument }));
402
+ } catch {
403
+ E = new IntersectionObserver(L, P);
404
+ }
405
+ E.observe(u);
406
+ })(!0), S;
407
+ })(a, n) : null;
408
+ let y, d = -1, f = null;
409
+ s && (f = new ResizeObserver((u) => {
410
+ let [g] = u;
411
+ g && g.target === a && f && (f.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
412
+ var R;
413
+ (R = f) == null || R.observe(e);
414
+ })), n();
415
+ }), a && !c && f.observe(a), f.observe(e));
416
+ let m = c ? Z(t) : null;
417
+ return c && (function u() {
418
+ const g = Z(t);
419
+ m && !Vt(m, g) && n(), m = g, y = requestAnimationFrame(u);
420
+ })(), n(), () => {
421
+ var u;
422
+ p.forEach((g) => {
423
+ r && g.removeEventListener("scroll", n), i && g.removeEventListener("resize", n);
424
+ }), h?.(), (u = f) == null || u.disconnect(), f = null, c && cancelAnimationFrame(y);
425
+ };
426
+ }
427
+ const Fe = function(t) {
428
+ return t === void 0 && (t = {}), { name: "shift", options: t, fn(e) {
429
+ return $(this, null, function* () {
430
+ const { x: n, y: o, placement: r } = e, i = yt(t, e), { mainAxis: s = !0, crossAxis: l = !1, limiter: c = { fn: (g) => {
431
+ let { x: R, y: E } = g;
432
+ return { x: R, y: E };
433
+ } } } = i, a = jt(i, ["mainAxis", "crossAxis", "limiter"]), p = { x: n, y: o }, h = yield Yt(e, a), y = q(U(r)), d = _t(y);
434
+ let f = p[d], m = p[y];
435
+ if (s) {
436
+ const g = d === "y" ? "bottom" : "right";
437
+ f = Ot(f + h[d === "y" ? "top" : "left"], f, f - h[g]);
438
+ }
439
+ if (l) {
440
+ const g = y === "y" ? "bottom" : "right";
441
+ m = Ot(m + h[y === "y" ? "top" : "left"], m, m - h[g]);
442
+ }
443
+ const u = c.fn(K(H({}, e), { [d]: f, [y]: m }));
444
+ return K(H({}, u), { data: { x: u.x - n, y: u.y - o, enabled: { [d]: s, [y]: l } } });
445
+ });
446
+ } };
447
+ }, We = function(t) {
448
+ return t === void 0 && (t = {}), { name: "flip", options: t, fn(e) {
449
+ return $(this, null, function* () {
450
+ var n, o;
451
+ const { placement: r, middlewareData: i, rects: s, initialPlacement: l, platform: c, elements: a } = e, p = yt(t, e), { mainAxis: h = !0, crossAxis: y = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: u = !0 } = p, g = jt(p, ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"]);
452
+ if ((n = i.arrow) != null && n.alignmentOffset) return {};
453
+ const R = U(r), E = q(l), A = U(l) === l, S = yield c.isRTL == null ? void 0 : c.isRTL(a.floating), k = d || (A || !u ? [st(l)] : (function(x) {
454
+ const L = st(x);
455
+ return [wt(x), L, wt(L)];
456
+ })(l)), F = m !== "none";
457
+ !d && F && k.push(...(function(x, L, w, v) {
458
+ const T = dt(x);
459
+ let b = (function(_, V, it) {
460
+ switch (_) {
461
+ case "top":
462
+ case "bottom":
463
+ return it ? V ? Ct : Dt : V ? Dt : Ct;
464
+ case "left":
465
+ case "right":
466
+ return V ? we : be;
467
+ default:
468
+ return [];
469
+ }
470
+ })(U(x), w === "start", v);
471
+ return T && (b = b.map((_) => _ + "-" + T), L && (b = b.concat(b.map(wt)))), b;
472
+ })(l, u, m, S));
473
+ const O = [l, ...k], W = yield Yt(e, g), D = [];
474
+ let C = ((o = i.flip) == null ? void 0 : o.overflows) || [];
475
+ if (h && D.push(W[R]), y) {
476
+ const x = (function(L, w, v) {
477
+ v === void 0 && (v = !1);
478
+ const T = dt(L), b = Xt(L), _ = $t(b);
479
+ let V = b === "x" ? T === (v ? "end" : "start") ? "right" : "left" : T === "start" ? "bottom" : "top";
480
+ return w.reference[_] > w.floating[_] && (V = st(V)), [V, st(V)];
481
+ })(r, s, S);
482
+ D.push(W[x[0]], W[x[1]]);
483
+ }
484
+ if (C = [...C, { placement: r, overflows: D }], !D.every((x) => x <= 0)) {
485
+ var j, M;
486
+ const x = (((j = i.flip) == null ? void 0 : j.index) || 0) + 1, L = O[x];
487
+ if (L && (y !== "alignment" || E === q(L) || C.every((v) => q(v.placement) !== E || v.overflows[0] > 0))) return { data: { index: x, overflows: C }, reset: { placement: L } };
488
+ let w = (M = C.filter((v) => v.overflows[0] <= 0).sort((v, T) => v.overflows[1] - T.overflows[1])[0]) == null ? void 0 : M.placement;
489
+ if (!w) switch (f) {
490
+ case "bestFit": {
491
+ var P;
492
+ const v = (P = C.filter((T) => {
493
+ if (F) {
494
+ const b = q(T.placement);
495
+ return b === E || b === "y";
496
+ }
497
+ return !0;
498
+ }).map((T) => [T.placement, T.overflows.filter((b) => b > 0).reduce((b, _) => b + _, 0)]).sort((T, b) => T[1] - b[1])[0]) == null ? void 0 : P[0];
499
+ v && (w = v);
500
+ break;
501
+ }
502
+ case "initialPlacement":
503
+ w = l;
504
+ }
505
+ if (r !== w) return { reset: { placement: w } };
506
+ }
507
+ return {};
508
+ });
509
+ } };
510
+ }, Ve = { class: "markstream-vue" }, He = ["id"], je = /* @__PURE__ */ pe(/* @__PURE__ */ Zt({ __name: "Tooltip", props: { visible: { type: Boolean }, anchorEl: {}, content: {}, placement: {}, offset: {}, originX: {}, originY: {}, id: {}, isDark: { type: [Boolean, null] } }, setup(t) {
511
+ const e = t, n = te(() => {
512
+ if (e.isDark !== void 0 && e.isDark !== null) return !!e.isDark;
513
+ if (typeof document < "u") try {
514
+ if (document.documentElement.classList.contains("dark") || window?.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) return !0;
515
+ } catch {
516
+ }
517
+ return !1;
518
+ }), o = xt(null), r = xt({ transform: "translate3d(0px, 0px, 0px)", left: "0px", top: "0px" }), i = xt(!1);
519
+ let s = null;
520
+ function l() {
521
+ return $(this, null, function* () {
522
+ var c, a;
523
+ if (!e.anchorEl || !o.value) return;
524
+ const p = [(d = (c = e.offset) != null ? c : 8, d === void 0 && (d = 0), { name: "offset", options: d, fn(f) {
525
+ return $(this, null, function* () {
526
+ var m, u;
527
+ const { x: g, y: R, placement: E, middlewareData: A } = f, S = yield (function(k, F) {
528
+ return $(this, null, function* () {
529
+ const { placement: O, platform: W, elements: D } = k, C = yield W.isRTL == null ? void 0 : W.isRTL(D.floating), j = U(O), M = dt(O), P = q(O) === "y", x = Re.has(j) ? -1 : 1, L = C && P ? -1 : 1, w = yt(F, k);
530
+ let { mainAxis: v, crossAxis: T, alignmentAxis: b } = typeof w == "number" ? { mainAxis: w, crossAxis: 0, alignmentAxis: null } : { mainAxis: w.mainAxis || 0, crossAxis: w.crossAxis || 0, alignmentAxis: w.alignmentAxis };
531
+ return M && typeof b == "number" && (T = M === "end" ? -1 * b : b), P ? { x: T * L, y: v * x } : { x: v * x, y: T * L };
532
+ });
533
+ })(f, d);
534
+ return E === ((m = A.offset) == null ? void 0 : m.placement) && (u = A.arrow) != null && u.alignmentOffset ? {} : { x: g + S.x, y: R + S.y, data: K(H({}, S), { placement: E }) };
535
+ });
536
+ } }), We(), Fe({ padding: 8 })], { x: h, y } = yield ((f, m, u) => {
537
+ const g = /* @__PURE__ */ new Map(), R = H({ platform: Be }, u), E = K(H({}, R.platform), { _c: g });
538
+ return ((A, S, k) => $(null, null, function* () {
539
+ const { placement: F = "bottom", strategy: O = "absolute", middleware: W = [], platform: D } = k, C = W.filter(Boolean), j = yield D.isRTL == null ? void 0 : D.isRTL(S);
540
+ let M = yield D.getElementRects({ reference: A, floating: S, strategy: O }), { x: P, y: x } = Pt(M, F, j), L = F, w = {}, v = 0;
541
+ for (let T = 0; T < C.length; T++) {
542
+ const { name: b, fn: _ } = C[T], { x: V, y: it, data: Ut, reset: G } = yield _({ x: P, y: x, initialPlacement: F, placement: L, strategy: O, middlewareData: w, rects: M, platform: D, elements: { reference: A, floating: S } });
543
+ P = V ?? P, x = it ?? x, w = K(H({}, w), { [b]: H(H({}, w[b]), Ut) }), G && v <= 50 && (v++, typeof G == "object" && (G.placement && (L = G.placement), G.rects && (M = G.rects === !0 ? yield D.getElementRects({ reference: A, floating: S, strategy: O }) : G.rects), { x: P, y: x } = Pt(M, L, j)), T = -1);
544
+ }
545
+ return { x: P, y: x, placement: L, strategy: O, middlewareData: w };
546
+ }))(f, m, K(H({}, R), { platform: E }));
547
+ })(e.anchorEl, o.value, { placement: (a = e.placement) != null ? a : "top", middleware: p, strategy: "fixed" });
548
+ var d;
549
+ r.value.transform = `translate3d(${Math.round(h)}px, ${Math.round(y)}px, 0)`, r.value.left = "0px", r.value.top = "0px";
550
+ });
551
+ }
552
+ return St(() => e.visible, (c) => $(null, null, function* () {
553
+ if (c) if (i.value = !1, yield lt(), e.anchorEl && o.value) try {
554
+ const a = e.anchorEl.getBoundingClientRect();
555
+ yield l();
556
+ const p = r.value.transform;
557
+ if (e.originX != null && e.originY != null) {
558
+ const h = Math.abs(Number(e.originX) - a.left), y = Math.abs(Number(e.originY) - a.top);
559
+ Math.hypot(h, y) > 120 ? (r.value.transform = `translate3d(${Math.round(e.originX)}px, ${Math.round(e.originY)}px, 0)`, yield lt(), i.value = !0, yield lt(), r.value.transform = p) : i.value = !0;
560
+ } else i.value = !0;
561
+ s = Ht(e.anchorEl, o.value, l);
562
+ } catch {
563
+ yield l(), i.value = !0, s = Ht(e.anchorEl, o.value, l);
564
+ }
565
+ else i.value = !0;
566
+ else i.value = !1, s && (s(), s = null);
567
+ })), St([() => e.anchorEl, () => e.placement, () => e.content], () => $(null, null, function* () {
568
+ e.visible && e.anchorEl && o.value && (yield lt(), yield l());
569
+ })), ne(() => {
570
+ s && s();
571
+ }), (c, a) => (oe(), ee(re, { to: "body" }, [At("div", Ve, [ie(le, { name: "tooltip", appear: "" }, { default: ce(() => [se(At("div", { id: e.id, ref_key: "tooltip", ref: o, style: fe({ position: "fixed", left: r.value.left, top: r.value.top, transform: r.value.transform }), class: ae(["z-[9999] inline-block text-base py-2 px-3 rounded-md shadow-md whitespace-nowrap pointer-events-none tooltip-element border", [n.value ? "bg-gray-900 text-white border-gray-700 border is-dark" : "bg-white text-gray-900 border-gray-200 border"]]), role: "tooltip" }, ue(t.content), 15, He), [[de, t.visible && i.value]])]), _: 1 })])]));
572
+ } }), [["__scopeId", "data-v-d524cc01"]]);
573
+ export {
574
+ je as default
575
+ };
@@ -0,0 +1,5 @@
1
+ const e = {};
2
+ throw new Error('Could not resolve "stream-markdown" imported by "markstream-vue".');
3
+ export {
4
+ e as default
5
+ };
@@ -0,0 +1,5 @@
1
+ const e = {};
2
+ throw new Error('Could not resolve "stream-monaco" imported by "markstream-vue".');
3
+ export {
4
+ e as default
5
+ };
@@ -0,0 +1,5 @@
1
+ const e = {};
2
+ throw new Error('Could not resolve "vue-i18n" imported by "markstream-vue".');
3
+ export {
4
+ e as default
5
+ };