@hiai-gg/docsmint 2.2.4 → 2.2.5

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 (259) hide show
  1. package/README.md +10 -8
  2. package/dist/backend/index.js +59962 -40726
  3. package/dist/frontend/CategoryDialog-CtBDBrmR.js +603 -0
  4. package/dist/frontend/ConfirmDialog-B7rUgX7M.js +219 -0
  5. package/dist/frontend/CreateSnapshotDialog-bUKdc0Zb.js +219 -0
  6. package/dist/frontend/DatePicker-CKTDDpVx.js +291 -0
  7. package/dist/frontend/DeleteDialog-D28HGxN7.js +175 -0
  8. package/dist/frontend/FolderNode-CVd22MJS.js +291 -0
  9. package/dist/frontend/FolderTreeSelector-DObSptCD.js +102 -0
  10. package/dist/frontend/HiAiEditor--V0-gKwv.js +3266 -0
  11. package/dist/frontend/HiaiDocsExtensionProvider-B1bCAtpa.js +13 -0
  12. package/dist/frontend/{Icon-CiHcxcpv.js → Icon-DNapb_KY.js} +3 -2
  13. package/dist/frontend/SettingsDialog-CN-PrNpM.js +979 -0
  14. package/dist/frontend/ShareDialog-UO_6vvoT.js +272 -0
  15. package/dist/frontend/Sidebar-CAxrqTAQ.js +2169 -0
  16. package/dist/frontend/TagCreateDialog-BdWu4bPX.js +268 -0
  17. package/dist/frontend/{action_cancel-BdsWzQKU.js → action_cancel-DxbRD-bG.js} +1 -1
  18. package/dist/frontend/{action_close-CVhfLPRQ.js → action_close-Ct6lVumm.js} +1 -1
  19. package/dist/frontend/{action_create-ByaroO1_.js → action_create-DKOlnVyX.js} +1 -1
  20. package/dist/frontend/{action_delete-SRloglWY.js → action_delete-DRb7fBnB.js} +1 -1
  21. package/dist/frontend/{action_go_to-DO1bicF-.js → action_go_to-D0fF5t1d.js} +1 -1
  22. package/dist/frontend/{action_loading-iQ0KsN6i.js → action_loading-YGvDyzYG.js} +1 -1
  23. package/dist/frontend/{action_save-DeqrZQwV.js → action_save-BHYTeFmm.js} +1 -1
  24. package/dist/frontend/api/categories.js +1 -1
  25. package/dist/frontend/api/settings.js +1 -1
  26. package/dist/frontend/api/tags.js +1 -1
  27. package/dist/frontend/app-shell.js +177 -176
  28. package/dist/frontend/{auth-client-Dx7d9Tzo.js → auth-client-DahfoSYo.js} +297 -277
  29. package/dist/frontend/{bundle-mjs-clTO1WW-.js → bundle-mjs-654jE5XN.js} +397 -300
  30. package/dist/frontend/{camera-DsdOPOcD.js → camera-C6JuKKhr.js} +9 -8
  31. package/dist/frontend/{categories-CusvHb5Y.js → categories-CUfKlgrs.js} +1 -1
  32. package/dist/frontend/{categories_update_error-Cn8DBBHv.js → categories_update_error-BrLD-j9s.js} +1 -1
  33. package/dist/frontend/check-B_e1XqT2.js +25 -0
  34. package/dist/frontend/chevron-down-BsnN2mp2.js +25 -0
  35. package/dist/frontend/circle-check-CJH5zxd9.js +29 -0
  36. package/dist/frontend/clock-CU0gCiiM.js +29 -0
  37. package/dist/frontend/collaboration.js +113 -113
  38. package/dist/frontend/components/category-dialog.js +1 -1
  39. package/dist/frontend/components/create-snapshot-dialog.js +1 -1
  40. package/dist/frontend/components/delete-dialog.js +1 -1
  41. package/dist/frontend/components/editor/compact-editor.js +5 -4
  42. package/dist/frontend/components/editor/document-editor.js +1 -1
  43. package/dist/frontend/components/editor/document-title.js +3 -2
  44. package/dist/frontend/components/editor/docx-serializer.js +8359 -12358
  45. package/dist/frontend/components/editor/extensions.js +1 -1
  46. package/dist/frontend/components/editor/markdown-toggle.js +33 -32
  47. package/dist/frontend/components/editor/markdown.js +1 -1
  48. package/dist/frontend/components/folder-node.js +1 -1
  49. package/dist/frontend/components/folder-tree-selector.js +1 -1
  50. package/dist/frontend/components/save-as-dialog.js +168 -167
  51. package/dist/frontend/components/settings.js +1 -1
  52. package/dist/frontend/components/share-dialog.js +1 -1
  53. package/dist/frontend/components/sidebar.js +1 -1
  54. package/dist/frontend/components/tag-create-dialog.js +1 -1
  55. package/dist/frontend/components/version-history.js +252 -251
  56. package/dist/frontend/{copy-Bag46YaR.js → copy-DYNRCHgk.js} +9 -8
  57. package/dist/frontend/dashboard.js +1301 -1300
  58. package/dist/frontend/db-yN0Vve_2.js +4296 -0
  59. package/dist/frontend/{dialog-C0Bpok1d.js → dialog-Dqp04jso.js} +11 -10
  60. package/dist/frontend/dist-4xBCgXNT.js +40 -0
  61. package/dist/frontend/{dist-DjId3RKL.js → dist-BaAULhmK.js} +3 -9
  62. package/dist/frontend/dist-C1oIyJLI.js +302 -0
  63. package/dist/frontend/dndzone-CWg1kmdZ.js +1483 -0
  64. package/dist/frontend/{doc_title_label-BOuZzvqv.js → doc_title_label-BPlghiRM.js} +1 -1
  65. package/dist/frontend/{doc_title_placeholder-ZxpdWWEn.js → doc_title_placeholder-D-LfSoC5.js} +1 -1
  66. package/dist/frontend/dropdown-menu-HePwCxoQ.js +1429 -0
  67. package/dist/frontend/{editorExtensions-DbiFj4tn.js → editorExtensions-QKIFSqEG.js} +9 -9
  68. package/dist/frontend/{editor_markdown_placeholder-BztIY9Ci.js → editor_markdown_placeholder-BXRPm7JG.js} +1 -1
  69. package/dist/frontend/{ellipsis-vertical-Oymsv1R4.js → ellipsis-vertical-CR25MyeP.js} +9 -8
  70. package/dist/frontend/{error_dismiss-C651ZdWI.js → error_dismiss-Ckia7GQe.js} +1 -1
  71. package/dist/frontend/{error_generic-BlWqOE-a.js → error_generic-gyQMdET_.js} +1 -1
  72. package/dist/frontend/extension.js +1 -1
  73. package/dist/frontend/{folder-BpmB_sAy.js → folder-BpA690ie.js} +4 -3
  74. package/dist/frontend/{folders_rename-Cxbg5GIw.js → folders_rename-BHa_gSXw.js} +1 -1
  75. package/dist/frontend/frontend.css +1 -1
  76. package/dist/frontend/i18n.js +29 -29
  77. package/dist/frontend/{identity-B7HeOzDJ.js → identity-ndFYB8Nt.js} +1 -1
  78. package/dist/frontend/{input-CbeB9220.js → input-Cv3qF4J3.js} +9 -8
  79. package/dist/frontend/label-DXjefKfF.js +30 -0
  80. package/dist/frontend/{lib-CITdCbKa.js → lib-DJthN0w9.js} +7108 -5196
  81. package/dist/frontend/loader-circle-CvWX1HHL.js +25 -0
  82. package/dist/frontend/{markdown-6E9TWC6V.js → markdown-CksQVQ6a.js} +2 -2
  83. package/dist/frontend/offline/identity.js +1 -1
  84. package/dist/frontend/popper-layer-force-mount-DS--Cvfo.js +3493 -0
  85. package/dist/frontend/rolldown-runtime-DKYsOz5J.js +19 -0
  86. package/dist/frontend/{rotate-ccw-DAUX7np7.js → rotate-ccw-Box7QP5X.js} +9 -8
  87. package/dist/frontend/{runtime-CGUiMzK6.js → runtime-CJv8UGYl.js} +1 -4
  88. package/dist/frontend/{schemas-YXxhj5o8.js → schemas-BYbeR0Ky.js} +11 -11
  89. package/dist/frontend/{scroll_to_top_aria-lJc2RSx_.js → scroll_to_top_aria-CP7_oyCo.js} +1 -1
  90. package/dist/frontend/search.js +650 -649
  91. package/dist/frontend/{search_title-BETwQYJq.js → search_title-C2aOzN_J.js} +1 -1
  92. package/dist/frontend/select-value-DAMTi0zc.js +1473 -0
  93. package/dist/frontend/{settings-DyePuqjp.js → settings-DTsCVJEi.js} +1 -1
  94. package/dist/frontend/{share-context-C2xyVP9M.js → share-context-CtRMIIhL.js} +15 -14
  95. package/dist/frontend/{share_copied-BuAnmpbz.js → share_copied-BHb_9sOo.js} +1 -1
  96. package/dist/frontend/{share_toggle_password-LEYUeHWr.js → share_toggle_password-DjCMq4Eq.js} +1 -1
  97. package/dist/frontend/shared-document.js +49 -48
  98. package/dist/frontend/{sidebar_uncategorized-C5PGOflV.js → sidebar_uncategorized-BJSB_sc9.js} +1 -1
  99. package/dist/frontend/{sort_relevance-DpCVLby_.js → sort_relevance-CXuNTq6L.js} +1 -1
  100. package/dist/frontend/{tag-Wdfe0rKU.js → tag-BPOFgBQw.js} +4 -3
  101. package/dist/frontend/tag-store.svelte-DyqQNx7H.js +28 -0
  102. package/dist/frontend/{tags-DlDVothf.js → tags-DwilrkrM.js} +1 -1
  103. package/dist/frontend/{tags_load_error-BINNpPPV.js → tags_load_error-BOyuQEGc.js} +1 -1
  104. package/dist/frontend/{tags_new-Dw0Uy43-.js → tags_new-CGF3Hi1j.js} +1 -1
  105. package/dist/frontend/textarea-DDdgNvnf.js +23 -0
  106. package/dist/frontend/theme.js +1 -1
  107. package/dist/frontend/{theme.svelte-BiXvrqwh.js → theme.svelte-Dx01qWc3.js} +2 -2
  108. package/dist/frontend/{theme_system-YIfa_2Xt.js → theme_system-Bt9ItDgj.js} +1 -1
  109. package/dist/frontend/utils/dndzone.js +1 -1
  110. package/dist/frontend/{utils-CnAmIMwr.js → utils-BQMesoNf.js} +1 -1
  111. package/dist/frontend/utils-BavN35Bw.js +6 -0
  112. package/dist/frontend/utils.js +1 -1
  113. package/dist/frontend/{version_create_snapshot-D8xjbuCq.js → version_create_snapshot-BvoOuUeh.js} +1 -1
  114. package/dist/frontend/{version_restored_from-DYFFSuQj.js → version_restored_from-BIEEKFbx.js} +1 -1
  115. package/dist/frontend/{version_snapshot_label_placeholder-BhKq1NQ7.js → version_snapshot_label_placeholder-h9r2_0u3.js} +1 -1
  116. package/dist/frontend/{weekday_we-BxbzNVWR.js → weekday_we-DsuVW6rh.js} +1 -1
  117. package/dist/frontend/x-hIpDH7DU.js +25 -0
  118. package/dist/frontend/{yjs-BbwnvxgY.js → yjs--VgxqIlB.js} +607 -628
  119. package/dist/frontend-ssr/api/categories.js +1 -1
  120. package/dist/frontend-ssr/api/settings.js +1 -1
  121. package/dist/frontend-ssr/api/tags.js +1 -1
  122. package/dist/frontend-ssr/app-shell.js +11 -11
  123. package/dist/frontend-ssr/assets/{CategoryDialog-2CCX508O.js → CategoryDialog-DRItbO_9.js} +13 -13
  124. package/dist/frontend-ssr/assets/{ConfirmDialog-Cc6lcY1N.js → ConfirmDialog-B0NXRrel.js} +8 -8
  125. package/dist/frontend-ssr/assets/{CreateSnapshotDialog-BB8fXF9W.js → CreateSnapshotDialog-nj8PjuON.js} +7 -7
  126. package/dist/frontend-ssr/assets/{DatePicker-CfzKzipR.js → DatePicker-CdUKLPtP.js} +8 -8
  127. package/dist/frontend-ssr/assets/{DeleteDialog-DRU4UgOW.js → DeleteDialog-B83NoxAg.js} +3 -3
  128. package/dist/frontend-ssr/assets/{FolderNode-CyOrLJ2Y.js → FolderNode-CSeC3051.js} +10 -10
  129. package/dist/frontend-ssr/assets/{FolderTreeSelector-D0reTdFS.js → FolderTreeSelector-Dh-ViJPU.js} +4 -4
  130. package/dist/frontend-ssr/assets/{HiAiEditor-BQGlGd3z.js → HiAiEditor-DB2PjHm9.js} +41 -41
  131. package/dist/frontend-ssr/assets/{Icon-CrIRbT5O.js → Icon-CBEeswQ2.js} +4 -4
  132. package/dist/frontend-ssr/assets/{SettingsDialog-BpHY3IMb.js → SettingsDialog-kc3O9PXG.js} +21 -21
  133. package/dist/frontend-ssr/assets/{ShareDialog-CY40nWZJ.js → ShareDialog-Dmrj55QP.js} +4 -4
  134. package/dist/frontend-ssr/assets/{Sidebar-dTp4DyW4.js → Sidebar-CDQcIuyv.js} +45 -45
  135. package/dist/frontend-ssr/assets/{TagCreateDialog-C2tpdEuj.js → TagCreateDialog-CP-yYfpQ.js} +11 -11
  136. package/dist/frontend-ssr/assets/{action_cancel-CsBbxW0m.js → action_cancel-B8i5P3wt.js} +1 -1
  137. package/dist/frontend-ssr/assets/{action_close-lFKBqBwg.js → action_close-DPgIB-cY.js} +1 -1
  138. package/dist/frontend-ssr/assets/{action_create-BV4ZOcQW.js → action_create-DAlNPFeN.js} +1 -1
  139. package/dist/frontend-ssr/assets/{action_delete-CNmRhKQP.js → action_delete-C6lsQCtY.js} +1 -1
  140. package/dist/frontend-ssr/assets/{action_go_to-tN5I26xM.js → action_go_to-C6tegi-k.js} +1 -1
  141. package/dist/frontend-ssr/assets/{action_save-YCfMiKb4.js → action_save-BQCej1sh.js} +1 -1
  142. package/dist/frontend-ssr/assets/{auth-client-BnnnJDAb.js → auth-client-CwXGsJIQ.js} +44 -38
  143. package/dist/frontend-ssr/assets/{camera-OYNSMvMd.js → camera-kjjsHmQu.js} +2 -2
  144. package/dist/frontend-ssr/assets/{categories_update_error-Bfx5vtvt.js → categories_update_error-Kq8q_FJp.js} +1 -1
  145. package/dist/frontend-ssr/assets/{chevron-down-DB6YsSbQ.js → chevron-down-DPc-Owbl.js} +2 -2
  146. package/dist/frontend-ssr/assets/{chevron-right-DOt2uY6b.js → chevron-right-C-jY4mqk.js} +2 -2
  147. package/dist/frontend-ssr/assets/{circle-check-DQhTm9YR.js → circle-check-CnueRXrc.js} +2 -2
  148. package/dist/frontend-ssr/assets/{clock-B08dVWtf.js → clock-CoRtIDhT.js} +2 -2
  149. package/dist/frontend-ssr/assets/{copy-2jsznHar.js → copy-CDNZIGVg.js} +2 -2
  150. package/dist/frontend-ssr/assets/{db-BEKLU5Fc.js → db-NhMsSg1f.js} +1 -1
  151. package/dist/frontend-ssr/assets/{dialog-C6U-DqLr.js → dialog-B09MN2S-.js} +9 -9
  152. package/dist/frontend-ssr/assets/{dist-DqXTz_zE.js → dist-D4MAfF0i.js} +13 -13
  153. package/dist/frontend-ssr/assets/{dist-ip9bPdma.js → dist-cDG_u5EF.js} +8 -8
  154. package/dist/frontend-ssr/assets/{dndzone-C7KnICM0.js → dndzone-DyM8UtoT.js} +378 -216
  155. package/dist/frontend-ssr/assets/{doc_title_label-CE_l-Gum.js → doc_title_label-BqCuH3eY.js} +1 -1
  156. package/dist/frontend-ssr/assets/{doc_title_placeholder-7_i7PtG6.js → doc_title_placeholder-C3tGSpRB.js} +1 -1
  157. package/dist/frontend-ssr/assets/dropdown-menu-C9H45F9X.js +1721 -0
  158. package/dist/frontend-ssr/assets/{editor_markdown_placeholder-CAeLJjFT.js → editor_markdown_placeholder-Cxa5uq87.js} +1 -1
  159. package/dist/frontend-ssr/assets/{editor_toolbar_undo-CVCfQIS1.js → editor_toolbar_undo-D-gLz88j.js} +1 -1
  160. package/dist/frontend-ssr/assets/{ellipsis-vertical-IFHt2NM1.js → ellipsis-vertical-oBvMj3Jm.js} +2 -2
  161. package/dist/frontend-ssr/assets/{error_generic-BB80i0Vk.js → error_generic-BSoVZ_4p.js} +1 -1
  162. package/dist/frontend-ssr/assets/{folder-CXa1_bm5.js → folder-Ptjeaody.js} +2 -2
  163. package/dist/frontend-ssr/assets/{folders_rename-ydbfwQlj.js → folders_rename-DBtQcf2R.js} +1 -1
  164. package/dist/frontend-ssr/assets/{identity-DTz1SQwC.js → identity-CigCqYEA.js} +1 -1
  165. package/dist/frontend-ssr/assets/{input-Bxw9sFF0.js → input-Cc45dG_S.js} +2 -2
  166. package/dist/frontend-ssr/assets/{label-CMWedjs6.js → label-C1_J2397.js} +2 -2
  167. package/dist/frontend-ssr/assets/{loader-circle-zbKj9Qb-.js → loader-circle-CK3McH5n.js} +2 -2
  168. package/dist/frontend-ssr/assets/{markdown-BmIhDQp7.js → markdown-WQsa_gay.js} +1 -1
  169. package/dist/frontend-ssr/assets/{popper-layer-force-mount-CSHZsG2E.js → popper-layer-force-mount-CGKwdZaZ.js} +1448 -2402
  170. package/dist/frontend-ssr/assets/{rotate-ccw-B7SaTFWf.js → rotate-ccw-B1lCxJ5d.js} +2 -2
  171. package/dist/frontend-ssr/assets/{runtime-BX6-jTn_.js → runtime-CoxALrm1.js} +2 -28
  172. package/dist/frontend-ssr/assets/{scroll_to_top_aria-CAYSiGHO.js → scroll_to_top_aria-CmLwsPln.js} +1 -1
  173. package/dist/frontend-ssr/assets/{search_title-C7NVXXq3.js → search_title-CZIl0wkq.js} +1 -1
  174. package/dist/frontend-ssr/assets/{search_toggle_filters-Bq_YVD8s.js → search_toggle_filters-BG-CRM9G.js} +1 -1
  175. package/dist/frontend-ssr/assets/{select-value-TgslfiUB.js → select-value-BeUHHkLq.js} +157 -66
  176. package/dist/frontend-ssr/assets/{settings-B1MA_FjO.js → settings-BqyemuQv.js} +1 -1
  177. package/dist/frontend-ssr/assets/{share-context-RVh8AExX.js → share-context-BM1sUnlP.js} +15 -15
  178. package/dist/frontend-ssr/assets/{share_copied-CrwEwkb3.js → share_copied-BVGtm9Ud.js} +1 -1
  179. package/dist/frontend-ssr/assets/{share_toggle_password-Co56z0Ha.js → share_toggle_password-z0gwy0TG.js} +1 -1
  180. package/dist/frontend-ssr/assets/{sidebar_uncategorized-COWdmZ3d.js → sidebar_uncategorized-rpbsgLVr.js} +1 -1
  181. package/dist/frontend-ssr/assets/{tag-BGhtDKpP.js → tag-D_ZqINN3.js} +3 -3
  182. package/dist/frontend-ssr/assets/{tags_load_error-DW4FbHvr.js → tags_load_error-DvhlyMMY.js} +1 -1
  183. package/dist/frontend-ssr/assets/{tags_new-Dr3ByMPZ.js → tags_new-DStxzBII.js} +1 -1
  184. package/dist/frontend-ssr/assets/{textarea-Bz5Tz4rw.js → textarea-S9uzw6je.js} +2 -2
  185. package/dist/frontend-ssr/assets/{theme.svelte-CdHah46l.js → theme.svelte-CqAzqvik.js} +2 -2
  186. package/dist/frontend-ssr/assets/{theme_system-E97FASeq.js → theme_system-DjbsL0RQ.js} +1 -1
  187. package/dist/frontend-ssr/assets/{utils-DF6CmRDX.js → utils-DF93j6z-.js} +1 -1
  188. package/dist/frontend-ssr/assets/{version_create_snapshot-DeeYB7bb.js → version_create_snapshot-SwYsTZ56.js} +1 -1
  189. package/dist/frontend-ssr/assets/{version_restored_from-CTt2LM4A.js → version_restored_from-pYBnudye.js} +1 -1
  190. package/dist/frontend-ssr/assets/{version_snapshot_label_placeholder-BbGD9YuN.js → version_snapshot_label_placeholder-DtDnHip8.js} +1 -1
  191. package/dist/frontend-ssr/assets/{weekday_we-BzGQ-iFc.js → weekday_we-CV1TMROW.js} +1 -1
  192. package/dist/frontend-ssr/components/category-dialog.js +1 -1
  193. package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
  194. package/dist/frontend-ssr/components/delete-dialog.js +1 -1
  195. package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
  196. package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
  197. package/dist/frontend-ssr/components/editor/document-title.js +2 -2
  198. package/dist/frontend-ssr/components/editor/extensions.js +1 -1
  199. package/dist/frontend-ssr/components/editor/markdown-toggle.js +3 -3
  200. package/dist/frontend-ssr/components/editor/markdown.js +1 -1
  201. package/dist/frontend-ssr/components/folder-node.js +1 -1
  202. package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
  203. package/dist/frontend-ssr/components/save-as-dialog.js +10 -10
  204. package/dist/frontend-ssr/components/settings.js +1 -1
  205. package/dist/frontend-ssr/components/share-dialog.js +1 -1
  206. package/dist/frontend-ssr/components/sidebar.js +1 -1
  207. package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
  208. package/dist/frontend-ssr/components/version-history.js +17 -17
  209. package/dist/frontend-ssr/dashboard.js +61 -158
  210. package/dist/frontend-ssr/extension.js +1 -1
  211. package/dist/frontend-ssr/i18n.js +31 -31
  212. package/dist/frontend-ssr/offline/identity.js +1 -1
  213. package/dist/frontend-ssr/search.js +13 -13
  214. package/dist/frontend-ssr/shared-document.js +1 -1
  215. package/dist/frontend-ssr/theme.js +1 -1
  216. package/dist/frontend-ssr/utils/dndzone.js +1 -1
  217. package/dist/lifecycle-runtime.js +17768 -11203
  218. package/dist/mcp-cli.js +1 -1
  219. package/dist/mcp-server.js +1 -1
  220. package/package.json +13 -13
  221. package/packages/cli/src/index.ts +1 -1
  222. package/server.json +2 -2
  223. package/dist/frontend/CategoryDialog-CVJi5PJu.js +0 -602
  224. package/dist/frontend/ConfirmDialog-0JwB8mKN.js +0 -218
  225. package/dist/frontend/CreateSnapshotDialog-BLrtuYs5.js +0 -218
  226. package/dist/frontend/DatePicker-BwSb8TRv.js +0 -326
  227. package/dist/frontend/DeleteDialog-s7Dr6bXg.js +0 -174
  228. package/dist/frontend/FolderNode-Ds0LDfK3.js +0 -290
  229. package/dist/frontend/FolderTreeSelector-BR3lYmPU.js +0 -101
  230. package/dist/frontend/HiAiEditor-BHz46Iqd.js +0 -3078
  231. package/dist/frontend/HiaiDocsExtensionProvider-A2nGddUR.js +0 -12
  232. package/dist/frontend/SettingsDialog-BvS74JZu.js +0 -978
  233. package/dist/frontend/ShareDialog-Bo50h_Oe.js +0 -271
  234. package/dist/frontend/Sidebar-DerKtpWB.js +0 -2168
  235. package/dist/frontend/TagCreateDialog-DhKfsfv3.js +0 -267
  236. package/dist/frontend/check-DiMZRkKS.js +0 -24
  237. package/dist/frontend/chevron-down-CxFrMFDJ.js +0 -24
  238. package/dist/frontend/circle-check-B4F_qgPx.js +0 -28
  239. package/dist/frontend/clock-dcpueRk-.js +0 -28
  240. package/dist/frontend/db-B1ZV452J.js +0 -3792
  241. package/dist/frontend/dist-BlcV_BOY.js +0 -39
  242. package/dist/frontend/dist-Dl9qg10h.js +0 -301
  243. package/dist/frontend/dndzone-B9jA0yIS.js +0 -1372
  244. package/dist/frontend/dropdown-menu-B3nk2aM-.js +0 -482
  245. package/dist/frontend/label-CfBWf3gI.js +0 -29
  246. package/dist/frontend/loader-circle-skKwfRCB.js +0 -24
  247. package/dist/frontend/popper-layer-force-mount-BG0eyrCk.js +0 -4255
  248. package/dist/frontend/rolldown-runtime-CwxnZyOB.js +0 -22
  249. package/dist/frontend/select-value-BY5Hw6Rl.js +0 -1412
  250. package/dist/frontend/tag-store.svelte-C9VYWqLQ.js +0 -28
  251. package/dist/frontend/textarea-D6emvAwM.js +0 -22
  252. package/dist/frontend/utils-DH0uqK40.js +0 -6
  253. package/dist/frontend/x-CBUgPygC.js +0 -24
  254. package/dist/frontend-ssr/assets/dropdown-menu-BS5fcN9l.js +0 -446
  255. package/dist/frontend-ssr/assets/{HiaiDocsExtensionProvider-D6cGL-9s.js → HiaiDocsExtensionProvider-BdfQP817.js} +1 -1
  256. package/dist/frontend-ssr/assets/{categories-bBPviKjl.js → categories-CMmudpEk.js} +1 -1
  257. package/dist/frontend-ssr/assets/{editorExtensions-2O7O2Nhv.js → editorExtensions-DOPTTKUS.js} +2 -2
  258. package/dist/frontend-ssr/assets/{tag-store.svelte-CUUgAaDD.js → tag-store.svelte-Djpf1W0n.js} +1 -1
  259. package/dist/frontend-ssr/assets/{tags-C7u-LBsl.js → tags-GQOEtqET.js} +1 -1
@@ -0,0 +1,1429 @@
1
+ import { t as e } from "./utils-BavN35Bw.js";
2
+ import { $ as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, J as l, K as u, M as d, N as f, O as p, P as m, Q as h, R as g, S as _, U as v, X as y, Y as b, Z as x, _ as ee, at as S, b as te, ct as C, dt as w, et as T, ft as ne, g as re, h as E, ht as D, i as ie, it as O, j as ae, k, lt as oe, m as se, mt as ce, n as le, o as A, p as ue, pt as de, r as fe, rt as j, s as pe, st as me, t as he, tt as M, ut as N, v as P, w as F, y as I } from "./popper-layer-force-mount-DS--Cvfo.js";
3
+ import "svelte/internal/init-operations";
4
+ import "svelte/internal/disclose-version";
5
+ import * as L from "svelte/internal/client";
6
+ import { on as R } from "svelte/events";
7
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/box/box.svelte.js
8
+ function z(e) {
9
+ let t = L.state(L.proxy(e));
10
+ return {
11
+ [C]: !0,
12
+ [ce]: !0,
13
+ get current() {
14
+ return L.get(t);
15
+ },
16
+ set current(e) {
17
+ L.set(t, e, !0);
18
+ }
19
+ };
20
+ }
21
+ z.from = N, z.with = w, z.flatten = oe, z.readonly = D, z.isBox = ne, z.isWritableBox = de;
22
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/locale.js
23
+ function ge(e) {
24
+ return window.getComputedStyle(e).getPropertyValue("direction");
25
+ }
26
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/get-directional-keys.js
27
+ var _e = [
28
+ d,
29
+ v,
30
+ n
31
+ ], ve = [
32
+ o,
33
+ c,
34
+ "End"
35
+ ];
36
+ [..._e, ...ve];
37
+ function ye(e = "ltr", t = "horizontal") {
38
+ return {
39
+ horizontal: e === "rtl" ? f : m,
40
+ vertical: d
41
+ }[t];
42
+ }
43
+ function be(e = "ltr", t = "horizontal") {
44
+ return {
45
+ horizontal: e === "rtl" ? m : f,
46
+ vertical: o
47
+ }[t];
48
+ }
49
+ function xe(e = "ltr", t = "horizontal") {
50
+ return ["ltr", "rtl"].includes(e) || (e = "ltr"), ["horizontal", "vertical"].includes(t) || (t = "horizontal"), {
51
+ nextKey: ye(e, t),
52
+ prevKey: be(e, t)
53
+ };
54
+ }
55
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/css-escape.js
56
+ function Se(e) {
57
+ if (typeof CSS < "u" && typeof CSS.escape == "function") return CSS.escape(e);
58
+ let t = e.length, n = -1, r, i = "", a = e.charCodeAt(0);
59
+ if (t === 1 && a === 45) return "\\" + e;
60
+ for (; ++n < t;) r = e.charCodeAt(n), i += r === 0 ? "�" : r >= 1 && r <= 31 || r === 127 || n === 0 && r >= 48 && r <= 57 || n === 1 && r >= 48 && r <= 57 && a === 45 ? "\\" + r.toString(16) + " " : r >= 128 || r === 45 || r === 95 || r >= 48 && r <= 57 || r >= 65 && r <= 90 || r >= 97 && r <= 122 ? e.charAt(n) : "\\" + e.charAt(n);
61
+ return i;
62
+ }
63
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/roving-focus-group.js
64
+ var Ce = class {
65
+ #e;
66
+ #t = z(null);
67
+ constructor(e) {
68
+ this.#e = e;
69
+ }
70
+ getCandidateNodes() {
71
+ if (!this.#e.rootNode.current) return [];
72
+ if (this.#e.candidateSelector) {
73
+ let e = Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector));
74
+ return this.#n(this.#e.rootNode.current, e);
75
+ }
76
+ if (this.#e.candidateAttr) {
77
+ let e = Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`));
78
+ return this.#n(this.#e.rootNode.current, e);
79
+ }
80
+ return [];
81
+ }
82
+ #n(e, t) {
83
+ let n = this.#e.rootAttr;
84
+ if (!n) return t;
85
+ let r = `[${n}]`;
86
+ return t.filter((t) => t.closest(r) === e);
87
+ }
88
+ focusFirstCandidate() {
89
+ let e = this.getCandidateNodes();
90
+ e.length && e[0]?.focus();
91
+ }
92
+ handleKeydown(e, t, r = !1) {
93
+ let i = this.#e.rootNode.current;
94
+ if (!i || !e) return;
95
+ let a = this.getCandidateNodes();
96
+ if (!a.length) return;
97
+ let s = a.indexOf(e), { nextKey: c, prevKey: l } = xe(ge(i), this.#e.orientation.current), u = this.#e.loop.current, p = {
98
+ [c]: s + 1,
99
+ [l]: s - 1,
100
+ [n]: 0,
101
+ End: a.length - 1
102
+ };
103
+ if (r) {
104
+ let e = c === "ArrowDown" ? m : d, t = l === "ArrowUp" ? f : o;
105
+ p[e] = s + 1, p[t] = s - 1;
106
+ }
107
+ let h = p[t.key];
108
+ if (h === void 0) return;
109
+ t.preventDefault(), h < 0 && u ? h = a.length - 1 : h === a.length && u && (h = 0);
110
+ let g = a[h];
111
+ if (g) return g.focus(), this.#t.current = g.id, this.#e.onCandidateFocus?.(g), g;
112
+ }
113
+ getTabIndex(e) {
114
+ let t = this.getCandidateNodes(), n = this.#t.current !== null;
115
+ return e && !n && t[0] === e ? (this.#t.current = e.id, 0) : e?.id === this.#t.current ? 0 : -1;
116
+ }
117
+ setCurrentTabStopId(e) {
118
+ this.#t.current = e;
119
+ }
120
+ focusCurrentTabStop() {
121
+ let e = this.#t.current;
122
+ if (!e) return;
123
+ let t = this.#e.rootNode.current?.querySelector(`#${Se(e)}`);
124
+ t && k(t) && t.focus();
125
+ }
126
+ }, B = [g, " "], we = [
127
+ d,
128
+ v,
129
+ n
130
+ ], V = [
131
+ o,
132
+ c,
133
+ "End"
134
+ ], Te = [...we, ...V];
135
+ [...B], [...B];
136
+ function H(e) {
137
+ return e.pointerType === "mouse";
138
+ }
139
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/focus.js
140
+ function Ee(e, { select: n = !1 } = {}) {
141
+ if (!e || !e.focus) return;
142
+ let r = t(e);
143
+ if (r.activeElement === e) return;
144
+ let i = r.activeElement;
145
+ e.focus({ preventScroll: !0 }), e !== i && ae(e) && n && e.select();
146
+ }
147
+ function De(e, { select: t = !1 } = {}, n) {
148
+ let r = n();
149
+ for (let i of e) if (Ee(i, { select: t }), n() !== r) return !0;
150
+ }
151
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/is-using-keyboard/is-using-keyboard.svelte.js
152
+ var U = L.state(!1), Oe = class e {
153
+ static _refs = 0;
154
+ static _cleanup;
155
+ constructor() {
156
+ L.user_effect(() => (e._refs === 0 && (e._cleanup = L.effect_root(() => {
157
+ let e = [], t = (e) => {
158
+ L.set(U, !1);
159
+ };
160
+ return e.push(R(document, "pointerdown", t, { capture: !0 }), R(document, "keydown", (e) => {
161
+ L.set(U, !0);
162
+ }, { capture: !0 })), L.user_effect(() => {
163
+ if (L.get(U)) return R(document, "pointermove", t, { capture: !0 });
164
+ }), me(...e);
165
+ })), e._refs++, () => {
166
+ e._refs--, e._refs === 0 && (L.set(U, !1), e._cleanup?.());
167
+ }));
168
+ }
169
+ get current() {
170
+ return L.get(U);
171
+ }
172
+ set current(e) {
173
+ L.set(U, e, !0);
174
+ }
175
+ };
176
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/tabbable.js
177
+ function W() {
178
+ return {
179
+ getShadowRoot: !0,
180
+ displayCheck: typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
181
+ };
182
+ }
183
+ function ke(e, n) {
184
+ if (!E(e, W())) return Ae(e, n);
185
+ let r = t(e), i = re(r.body, W());
186
+ n === "prev" && i.reverse();
187
+ let a = i.indexOf(e);
188
+ return a === -1 ? r.body : i.slice(a + 1)[0];
189
+ }
190
+ function Ae(e, n) {
191
+ let r = t(e);
192
+ if (!se(e, W())) return r.body;
193
+ let i = ue(r.body, W());
194
+ n === "prev" && i.reverse();
195
+ let a = i.indexOf(e);
196
+ return a === -1 ? r.body : i.slice(a + 1).find((e) => E(e, W())) ?? r.body;
197
+ }
198
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/menu/menu.svelte.js
199
+ var G = new O("Menu.Root"), K = new O("Menu.Root | Menu.Sub"), q = new O("Menu.Content");
200
+ new O("Menu.Group | Menu.RadioGroup"), new O("Menu.RadioGroup"), new O("Menu.CheckboxGroup");
201
+ var je = new ee("bitsmenuopen", {
202
+ bubbles: !1,
203
+ cancelable: !0
204
+ }), Me = l({
205
+ component: "menu",
206
+ parts: [
207
+ "trigger",
208
+ "content",
209
+ "sub-trigger",
210
+ "item",
211
+ "group",
212
+ "group-heading",
213
+ "checkbox-group",
214
+ "checkbox-item",
215
+ "radio-group",
216
+ "radio-item",
217
+ "separator",
218
+ "sub-content",
219
+ "arrow"
220
+ ]
221
+ }), Ne = 100, Pe = 1, Fe = class {
222
+ #e;
223
+ #t = null;
224
+ #n = null;
225
+ #r = !1;
226
+ #i = null;
227
+ #a = null;
228
+ #o = null;
229
+ #s = null;
230
+ #c = null;
231
+ constructor(e) {
232
+ this.#e = e, j([
233
+ e.triggerNode,
234
+ e.contentNode,
235
+ e.enabled
236
+ ], ([e, t, n]) => {
237
+ if (this.#y(), !e || !t || !n) return;
238
+ let r = (e) => {
239
+ H(e) && (this.#s = {
240
+ x: e.clientX,
241
+ y: e.clientY
242
+ }, this.#r || this.#p(e, "content"));
243
+ }, a = (e) => {
244
+ H(e) && this.#m(e, "content");
245
+ }, o = (e) => {
246
+ H(e) && (this.#r || this.#p(e, "trigger"));
247
+ }, s = (e) => {
248
+ if (H(e)) {
249
+ if (i(e.relatedTarget)) {
250
+ let n = this.#e.subContentSelector(), r = e.relatedTarget.closest(n);
251
+ if (r && r !== t && r.id && t.querySelector(`[aria-controls="${r.id}"]`)) return;
252
+ }
253
+ this.#m(e, "trigger");
254
+ }
255
+ }, c = (e) => {
256
+ H(e) && this.#g();
257
+ }, l = (e) => {
258
+ H(e) && this.#g();
259
+ };
260
+ return e.addEventListener("pointermove", r), e.addEventListener("pointerleave", a), e.addEventListener("pointerenter", c), t.addEventListener("pointermove", o), t.addEventListener("pointerleave", s), t.addEventListener("pointerenter", l), () => {
261
+ e.removeEventListener("pointermove", r), e.removeEventListener("pointerleave", a), e.removeEventListener("pointerenter", c), t.removeEventListener("pointermove", o), t.removeEventListener("pointerleave", s), t.removeEventListener("pointerenter", l), this.#y();
262
+ };
263
+ }), M(() => {
264
+ this.#y();
265
+ });
266
+ }
267
+ #l() {
268
+ let e = this.#e.parentContentNode();
269
+ return e ? e.getBoundingClientRect() : this.#e.triggerNode()?.getBoundingClientRect() ?? null;
270
+ }
271
+ #u(e, t) {
272
+ let n = this.#e.triggerNode(), r = this.#e.contentNode();
273
+ if (!n || !r) return null;
274
+ let i = n.getBoundingClientRect(), a = r.getBoundingClientRect(), o = Le(i, a), s, c, l;
275
+ return t === "content" ? (s = this.#r ? this.#a ?? e : e, c = a) : (s = this.#s ?? e, c = this.#l() ?? i, l = a), this.#a = s, {
276
+ corridor: Re(i, a, o),
277
+ intent: ze(s, c, o, t, l),
278
+ targetRect: c,
279
+ side: o
280
+ };
281
+ }
282
+ #d(e, t, n) {
283
+ return J(e, t) || J(e, n);
284
+ }
285
+ #f(e, t) {
286
+ let n = X(e, t);
287
+ return this.#c !== null && n > this.#c - Pe ? !1 : (this.#c = n, !0);
288
+ }
289
+ #p(e, t) {
290
+ let n = {
291
+ x: e.clientX,
292
+ y: e.clientY
293
+ };
294
+ this.#u(n, t) && (this.#i = t, this.#o = n);
295
+ }
296
+ #m(e, t) {
297
+ if (!this.#e.enabled()) return;
298
+ let n = this.#e.triggerNode(), r = this.#e.contentNode();
299
+ if (!n || !r) return;
300
+ let a = e.relatedTarget;
301
+ if (i(a) && (t === "content" && r.contains(a) || t === "trigger" && n.contains(a))) return;
302
+ let o = {
303
+ x: e.clientX,
304
+ y: e.clientY
305
+ }, s = this.#u(o, t);
306
+ s && (!Y(o, s.targetRect) && !this.#d(o, s.corridor, s.intent) ? this.#E() : (this.#r = !0, this.#i = t, this.#o = o, this.#c = X(o, s.targetRect), this.#e.setIsPointerInTransit(!0), this.#S(), this.#w()));
307
+ }
308
+ #h = null;
309
+ #g() {
310
+ if (!this.#r) return;
311
+ let e = this.#i === "trigger";
312
+ this.#C(), this.#T(), this.#r = !1, this.#E(), e ? (this.#_(), this.#h = setTimeout(() => {
313
+ this.#h = null, this.#e.setIsPointerInTransit(!1);
314
+ }, 100)) : this.#e.setIsPointerInTransit(!1);
315
+ }
316
+ #_() {
317
+ this.#h !== null && (clearTimeout(this.#h), this.#h = null);
318
+ }
319
+ #v() {
320
+ let e = this.#o;
321
+ this.#C(), this.#T(), this.#_(), this.#r = !1, this.#e.setIsPointerInTransit(!1), this.#E(), this.#e.onIntentExit(e);
322
+ }
323
+ #y() {
324
+ this.#C(), this.#T(), this.#_(), this.#r && this.#e.setIsPointerInTransit(!1), this.#r = !1, this.#i = null, this.#a = null, this.#o = null, this.#s = null, this.#c = null;
325
+ }
326
+ #b(e) {
327
+ let t = this.#e.contentNode();
328
+ if (!t) return !1;
329
+ let n = t.ownerDocument.elementFromPoint(e.x, e.y);
330
+ if (!n) return !1;
331
+ let r = this.#e.subContentSelector(), i = n.closest(r);
332
+ return !i || i === t ? !1 : i.id ? !!t.querySelector(`[aria-controls="${i.id}"]`) : !1;
333
+ }
334
+ #x = (e) => {
335
+ if (!this.#r || !this.#i || !H(e)) return;
336
+ let t = this.#e.triggerNode(), n = this.#e.contentNode();
337
+ if (!t || !n) {
338
+ this.#v();
339
+ return;
340
+ }
341
+ let r = {
342
+ x: e.clientX,
343
+ y: e.clientY
344
+ };
345
+ this.#o = r;
346
+ let i = t.getBoundingClientRect(), a = n.getBoundingClientRect();
347
+ if (this.#i === "content" && Y(r, a) || this.#i === "trigger" && Ie(r, i, 4)) {
348
+ this.#g();
349
+ return;
350
+ }
351
+ if (this.#b(r)) {
352
+ this.#w();
353
+ return;
354
+ }
355
+ let o = this.#u(r, this.#i);
356
+ o && this.#d(r, o.corridor, o.intent) ? this.#f(r, o.targetRect) && this.#w() : this.#v();
357
+ };
358
+ #S() {
359
+ if (this.#t) return;
360
+ let e = t(this.#e.triggerNode() ?? this.#e.contentNode());
361
+ e && (e.addEventListener("pointermove", this.#x, !0), this.#t = () => {
362
+ e.removeEventListener("pointermove", this.#x, !0), this.#t = null;
363
+ });
364
+ }
365
+ #C() {
366
+ this.#t?.();
367
+ }
368
+ #w() {
369
+ this.#T(), this.#n = setTimeout(() => {
370
+ this.#n = null, this.#r && this.#v();
371
+ }, Ne);
372
+ }
373
+ #T() {
374
+ this.#n !== null && (clearTimeout(this.#n), this.#n = null);
375
+ }
376
+ #E() {
377
+ this.#i = null, this.#a = null, this.#o = null, this.#c = null;
378
+ }
379
+ };
380
+ function J(e, t) {
381
+ let { x: n, y: r } = e, i = !1;
382
+ for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
383
+ let o = t[e].x, s = t[e].y, c = t[a].x, l = t[a].y;
384
+ s > r != l > r && n < (c - o) * (r - s) / (l - s) + o && (i = !i);
385
+ }
386
+ return i;
387
+ }
388
+ function Y(e, t) {
389
+ return e.x >= t.left && e.x <= t.right && e.y >= t.top && e.y <= t.bottom;
390
+ }
391
+ function Ie(e, t, n) {
392
+ return e.x >= t.left + n && e.x <= t.right - n && e.y >= t.top + n && e.y <= t.bottom - n;
393
+ }
394
+ function X(e, t) {
395
+ let n = Math.max(t.left - e.x, 0, e.x - t.right), r = Math.max(t.top - e.y, 0, e.y - t.bottom);
396
+ return Math.hypot(n, r);
397
+ }
398
+ function Le(e, t) {
399
+ let n = e.left + e.width / 2, r = e.top + e.height / 2, i = t.left + t.width / 2, a = t.top + t.height / 2, o = i - n, s = a - r;
400
+ return Math.abs(o) > Math.abs(s) ? o > 0 ? "right" : "left" : s > 0 ? "bottom" : "top";
401
+ }
402
+ function Re(e, t, n) {
403
+ switch (n) {
404
+ case "top": return [
405
+ {
406
+ x: Math.min(e.left, t.left) - 2,
407
+ y: e.top
408
+ },
409
+ {
410
+ x: Math.min(e.left, t.left) - 2,
411
+ y: t.bottom
412
+ },
413
+ {
414
+ x: Math.max(e.right, t.right) + 2,
415
+ y: t.bottom
416
+ },
417
+ {
418
+ x: Math.max(e.right, t.right) + 2,
419
+ y: e.top
420
+ }
421
+ ];
422
+ case "bottom": return [
423
+ {
424
+ x: Math.min(e.left, t.left) - 2,
425
+ y: e.bottom
426
+ },
427
+ {
428
+ x: Math.min(e.left, t.left) - 2,
429
+ y: t.top
430
+ },
431
+ {
432
+ x: Math.max(e.right, t.right) + 2,
433
+ y: t.top
434
+ },
435
+ {
436
+ x: Math.max(e.right, t.right) + 2,
437
+ y: e.bottom
438
+ }
439
+ ];
440
+ case "left": return [
441
+ {
442
+ x: e.left,
443
+ y: Math.min(e.top, t.top) - 2
444
+ },
445
+ {
446
+ x: t.right,
447
+ y: Math.min(e.top, t.top) - 2
448
+ },
449
+ {
450
+ x: t.right,
451
+ y: Math.max(e.bottom, t.bottom) + 2
452
+ },
453
+ {
454
+ x: e.left,
455
+ y: Math.max(e.bottom, t.bottom) + 2
456
+ }
457
+ ];
458
+ case "right": return [
459
+ {
460
+ x: e.right,
461
+ y: Math.min(e.top, t.top) - 2
462
+ },
463
+ {
464
+ x: t.left,
465
+ y: Math.min(e.top, t.top) - 2
466
+ },
467
+ {
468
+ x: t.left,
469
+ y: Math.max(e.bottom, t.bottom) + 2
470
+ },
471
+ {
472
+ x: e.right,
473
+ y: Math.max(e.bottom, t.bottom) + 2
474
+ }
475
+ ];
476
+ }
477
+ }
478
+ function ze(e, t, n, r, i) {
479
+ let a = r === "trigger" ? Be(n) : n, o = i ? Math.min(t.top, i.top) - 8 : t.top - 8, s = i ? Math.max(t.bottom, i.bottom) + 8 : t.bottom + 8, c = i ? Math.min(t.left, i.left) - 8 : t.left - 8, l = i ? Math.max(t.right, i.right) + 8 : t.right + 8;
480
+ switch (a) {
481
+ case "right": return [
482
+ e,
483
+ {
484
+ x: t.left,
485
+ y: o
486
+ },
487
+ {
488
+ x: t.left,
489
+ y: s
490
+ }
491
+ ];
492
+ case "left": return [
493
+ e,
494
+ {
495
+ x: t.right,
496
+ y: o
497
+ },
498
+ {
499
+ x: t.right,
500
+ y: s
501
+ }
502
+ ];
503
+ case "bottom": return [
504
+ e,
505
+ {
506
+ x: c,
507
+ y: t.top
508
+ },
509
+ {
510
+ x: l,
511
+ y: t.top
512
+ }
513
+ ];
514
+ case "top": return [
515
+ e,
516
+ {
517
+ x: c,
518
+ y: t.bottom
519
+ },
520
+ {
521
+ x: l,
522
+ y: t.bottom
523
+ }
524
+ ];
525
+ }
526
+ }
527
+ function Be(e) {
528
+ switch (e) {
529
+ case "top": return "bottom";
530
+ case "bottom": return "top";
531
+ case "left": return "right";
532
+ case "right": return "left";
533
+ }
534
+ }
535
+ var Ve = class e {
536
+ static create(t) {
537
+ let n = new e(t);
538
+ return G.set(n);
539
+ }
540
+ opts;
541
+ isUsingKeyboard = new Oe();
542
+ #e = L.state(!1);
543
+ get ignoreCloseAutoFocus() {
544
+ return L.get(this.#e);
545
+ }
546
+ set ignoreCloseAutoFocus(e) {
547
+ L.set(this.#e, e, !0);
548
+ }
549
+ #t = L.state(!1);
550
+ get isPointerInTransit() {
551
+ return L.get(this.#t);
552
+ }
553
+ set isPointerInTransit(e) {
554
+ L.set(this.#t, e, !0);
555
+ }
556
+ constructor(e) {
557
+ this.opts = e;
558
+ }
559
+ getBitsAttr = (e) => Me.getAttr(e, this.opts.variant.current);
560
+ }, He = class e {
561
+ static create(t, n) {
562
+ return K.set(new e(t, n, null));
563
+ }
564
+ opts;
565
+ root;
566
+ parentMenu;
567
+ #e = L.state(w(() => ""));
568
+ get contentId() {
569
+ return L.get(this.#e);
570
+ }
571
+ set contentId(e) {
572
+ L.set(this.#e, e);
573
+ }
574
+ #t = L.state(null);
575
+ get contentNode() {
576
+ return L.get(this.#t);
577
+ }
578
+ set contentNode(e) {
579
+ L.set(this.#t, e, !0);
580
+ }
581
+ contentPresence;
582
+ #n = L.state(null);
583
+ get triggerNode() {
584
+ return L.get(this.#n);
585
+ }
586
+ set triggerNode(e) {
587
+ L.set(this.#n, e, !0);
588
+ }
589
+ constructor(e, t, n) {
590
+ this.opts = e, this.root = t, this.parentMenu = n, this.contentPresence = new F({
591
+ ref: w(() => this.contentNode),
592
+ open: this.opts.open,
593
+ onComplete: () => {
594
+ this.opts.onOpenChangeComplete.current(this.opts.open.current);
595
+ },
596
+ shouldSkipExitAnimation: () => this.root.opts.variant.current !== "menubar" || this.parentMenu !== null ? !1 : this.root.opts.shouldSkipExitAnimation?.() ?? !1
597
+ }), n && j(() => n.opts.open.current, () => {
598
+ n.opts.open.current || (this.opts.open.current = !1);
599
+ });
600
+ }
601
+ toggleOpen() {
602
+ this.opts.open.current = !this.opts.open.current;
603
+ }
604
+ onOpen() {
605
+ this.opts.open.current = !0;
606
+ }
607
+ onClose() {
608
+ this.opts.open.current = !1;
609
+ }
610
+ }, Ue = class e {
611
+ static create(t) {
612
+ return q.set(new e(t, K.get()));
613
+ }
614
+ opts;
615
+ parentMenu;
616
+ rovingFocusGroup;
617
+ domContext;
618
+ attachment;
619
+ #e = L.state("");
620
+ get search() {
621
+ return L.get(this.#e);
622
+ }
623
+ set search(e) {
624
+ L.set(this.#e, e, !0);
625
+ }
626
+ #t = 0;
627
+ #n;
628
+ #r = L.state(!1);
629
+ get mounted() {
630
+ return L.get(this.#r);
631
+ }
632
+ set mounted(e) {
633
+ L.set(this.#r, e, !0);
634
+ }
635
+ pressedItem = null;
636
+ #i;
637
+ constructor(e, t) {
638
+ this.opts = e, this.parentMenu = t, this.domContext = new h(e.ref), this.attachment = x(this.opts.ref, (e) => {
639
+ this.parentMenu.contentNode !== e && (this.parentMenu.contentNode = e);
640
+ }), t.contentId = e.id, this.#i = e.isSub ?? !1, this.onkeydown = this.onkeydown.bind(this), this.onblur = this.onblur.bind(this), this.onfocus = this.onfocus.bind(this), this.handleInteractOutside = this.handleInteractOutside.bind(this), new Fe({
641
+ contentNode: () => this.parentMenu.contentNode,
642
+ triggerNode: () => this.parentMenu.triggerNode,
643
+ parentContentNode: () => this.parentMenu.parentMenu?.contentNode ?? null,
644
+ subContentSelector: () => `[${this.parentMenu.root.getBitsAttr("sub-content")}]`,
645
+ enabled: () => this.parentMenu.opts.open.current && !!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),
646
+ onIntentExit: (e) => {
647
+ this.parentMenu.opts.open.current = !1, this.#s(e);
648
+ },
649
+ setIsPointerInTransit: (e) => {
650
+ this.parentMenu.root.isPointerInTransit = e;
651
+ }
652
+ }), this.#n = new ie({
653
+ getActiveElement: () => this.domContext.getActiveElement(),
654
+ getWindow: () => this.domContext.getWindow()
655
+ }).handleTypeaheadSearch, this.rovingFocusGroup = new Ce({
656
+ rootNode: w(() => this.parentMenu.contentNode),
657
+ candidateAttr: this.parentMenu.root.getBitsAttr("item"),
658
+ loop: this.opts.loop,
659
+ orientation: w(() => "vertical")
660
+ }), j(() => this.parentMenu.contentNode, (e) => e ? je.listen(e, () => {
661
+ T(() => {
662
+ this.parentMenu.root.isUsingKeyboard.current && this.rovingFocusGroup.focusFirstCandidate();
663
+ });
664
+ }) : void 0), L.user_effect(() => {
665
+ this.parentMenu.opts.open.current || (this.domContext.getWindow().clearTimeout(this.#t), this.clearPressedItem());
666
+ });
667
+ }
668
+ #a() {
669
+ let e = this.parentMenu.contentNode;
670
+ return e ? Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)) : [];
671
+ }
672
+ #o() {
673
+ return this.parentMenu.root.isPointerInTransit;
674
+ }
675
+ #s(e) {
676
+ if (!e) return;
677
+ let t = this.parentMenu.parentMenu?.contentNode;
678
+ if (!t) return;
679
+ let n = this.domContext.getDocument().elementFromPoint(e.x, e.y);
680
+ if (!i(n)) return;
681
+ let r = n.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);
682
+ r && t.contains(r) && r !== this.parentMenu.triggerNode && r.dispatchEvent(new PointerEvent("pointermove", {
683
+ bubbles: !0,
684
+ cancelable: !0,
685
+ pointerType: "mouse",
686
+ clientX: e.x,
687
+ clientY: e.y
688
+ }));
689
+ }
690
+ onCloseAutoFocus = (e) => {
691
+ this.opts.onCloseAutoFocus.current?.(e), e.defaultPrevented || this.#i || (this.parentMenu.root.ignoreCloseAutoFocus ? e.preventDefault() : this.parentMenu.triggerNode && E(this.parentMenu.triggerNode) && (e.preventDefault(), this.parentMenu.triggerNode.focus()));
692
+ };
693
+ handleTabKeyDown(e) {
694
+ let t = this.parentMenu;
695
+ for (; t.parentMenu !== null;) t = t.parentMenu;
696
+ if (!t.triggerNode) return;
697
+ e.preventDefault();
698
+ let n = ke(t.triggerNode, e.shiftKey ? "prev" : "next");
699
+ n ? (this.parentMenu.root.ignoreCloseAutoFocus = !0, t.onClose(), T(() => {
700
+ n.focus(), T(() => {
701
+ this.parentMenu.root.ignoreCloseAutoFocus = !1;
702
+ });
703
+ })) : this.domContext.getDocument().body.focus();
704
+ }
705
+ onkeydown(e) {
706
+ if (e.defaultPrevented) return;
707
+ if (e.key === "Tab") {
708
+ this.handleTabKeyDown(e);
709
+ return;
710
+ }
711
+ let t = e.target, n = e.currentTarget;
712
+ if (!k(t) || !k(n)) return;
713
+ let r = t.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id === this.parentMenu.contentId.current, i = e.ctrlKey || e.altKey || e.metaKey, a = e.key.length === 1;
714
+ if (this.rovingFocusGroup.handleKeydown(t, e) || e.code === "Space") return;
715
+ let o = this.#a();
716
+ r && !i && a && this.#n(e.key, o), e.target?.id === this.parentMenu.contentId.current && Te.includes(e.key) && (e.preventDefault(), V.includes(e.key) && o.reverse(), De(o, { select: !1 }, () => this.domContext.getActiveElement()));
717
+ }
718
+ onblur(e) {
719
+ i(e.currentTarget) && i(e.target) && (e.currentTarget.contains?.(e.target) || (this.domContext.getWindow().clearTimeout(this.#t), this.search = ""));
720
+ }
721
+ onfocus(e) {
722
+ this.parentMenu.root.isUsingKeyboard.current && T(() => this.rovingFocusGroup.focusFirstCandidate());
723
+ }
724
+ onItemEnter() {
725
+ return this.#o();
726
+ }
727
+ onItemLeave(e) {
728
+ e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")) || this.#o() || this.parentMenu.root.isUsingKeyboard.current || this.parentMenu.opts.open.current && (this.parentMenu.contentNode?.focus({ preventScroll: !0 }), this.rovingFocusGroup.setCurrentTabStopId(""));
729
+ }
730
+ onTriggerLeave() {
731
+ return !!this.#o();
732
+ }
733
+ handleInteractOutside(e) {
734
+ p(e.target) && (I(e, this.parentMenu.triggerNode) ? e.preventDefault() : (this.parentMenu.root.ignoreCloseAutoFocus = !0, T(() => {
735
+ this.parentMenu.root.ignoreCloseAutoFocus = !1;
736
+ })));
737
+ }
738
+ clearPressedItem = () => {
739
+ this.pressedItem = null;
740
+ };
741
+ get shouldRender() {
742
+ return this.parentMenu.contentPresence.shouldRender;
743
+ }
744
+ #c = L.derived(() => ({ open: this.parentMenu.opts.open.current }));
745
+ get snippetProps() {
746
+ return L.get(this.#c);
747
+ }
748
+ set snippetProps(e) {
749
+ L.set(this.#c, e);
750
+ }
751
+ #l = L.derived(() => ({
752
+ id: this.opts.id.current,
753
+ role: "menu",
754
+ "aria-orientation": "vertical",
755
+ [this.parentMenu.root.getBitsAttr("content")]: "",
756
+ "data-state": b(this.parentMenu.opts.open.current),
757
+ ...y(this.parentMenu.contentPresence.transitionStatus),
758
+ onkeydown: this.onkeydown,
759
+ onblur: this.onblur,
760
+ onfocus: this.onfocus,
761
+ onpointerdowncapture: this.clearPressedItem,
762
+ dir: this.parentMenu.root.opts.dir.current,
763
+ style: {
764
+ pointerEvents: "auto",
765
+ contain: "layout style"
766
+ },
767
+ ...this.attachment
768
+ }));
769
+ get props() {
770
+ return L.get(this.#l);
771
+ }
772
+ set props(e) {
773
+ L.set(this.#l, e);
774
+ }
775
+ popperProps = { onCloseAutoFocus: (e) => this.onCloseAutoFocus(e) };
776
+ }, We = class {
777
+ opts;
778
+ content;
779
+ attachment;
780
+ #e = L.state(!1);
781
+ constructor(e, t) {
782
+ this.opts = e, this.content = t, this.attachment = x(this.opts.ref), this.onpointermove = this.onpointermove.bind(this), this.onpointerleave = this.onpointerleave.bind(this), this.onfocus = this.onfocus.bind(this), this.onblur = this.onblur.bind(this);
783
+ }
784
+ onpointermove(e) {
785
+ if (!e.defaultPrevented && H(e)) {
786
+ if (this.opts.disabled.current) this.content.onItemLeave(e);
787
+ else {
788
+ if (this.content.onItemEnter()) return;
789
+ let t = e.currentTarget;
790
+ if (!k(t)) return;
791
+ t.focus({ preventScroll: !0 });
792
+ }
793
+ }
794
+ }
795
+ onpointerleave(e) {
796
+ e.defaultPrevented || H(e) && this.content.onItemLeave(e);
797
+ }
798
+ onfocus(e) {
799
+ T(() => {
800
+ e.defaultPrevented || this.opts.disabled.current || L.set(this.#e, !0);
801
+ });
802
+ }
803
+ onblur(e) {
804
+ T(() => {
805
+ e.defaultPrevented || L.set(this.#e, !1);
806
+ });
807
+ }
808
+ #t = L.derived(() => ({
809
+ id: this.opts.id.current,
810
+ tabindex: -1,
811
+ role: "menuitem",
812
+ "aria-disabled": u(this.opts.disabled.current),
813
+ "data-disabled": s(this.opts.disabled.current),
814
+ "data-highlighted": L.get(this.#e) ? "" : void 0,
815
+ [this.content.parentMenu.root.getBitsAttr("item")]: "",
816
+ onpointermove: this.onpointermove,
817
+ onpointerleave: this.onpointerleave,
818
+ onfocus: this.onfocus,
819
+ onblur: this.onblur,
820
+ ...this.attachment
821
+ }));
822
+ get props() {
823
+ return L.get(this.#t);
824
+ }
825
+ set props(e) {
826
+ L.set(this.#t, e);
827
+ }
828
+ }, Ge = class e {
829
+ static create(t) {
830
+ let n = new We(t, q.get());
831
+ return new e(t, n);
832
+ }
833
+ opts;
834
+ item;
835
+ root;
836
+ constructor(e, t) {
837
+ this.opts = e, this.item = t, this.root = t.content.parentMenu.root, this.onkeydown = this.onkeydown.bind(this), this.onclick = this.onclick.bind(this), this.onpointerdown = this.onpointerdown.bind(this), this.onpointerup = this.onpointerup.bind(this);
838
+ }
839
+ #e() {
840
+ if (this.item.opts.disabled.current) return;
841
+ let e = new CustomEvent("menuitemselect", {
842
+ bubbles: !0,
843
+ cancelable: !0
844
+ });
845
+ this.opts.onSelect.current(e), e.defaultPrevented ? this.item.content.parentMenu.root.isUsingKeyboard.current = !1 : this.opts.closeOnSelect.current && this.item.content.parentMenu.root.opts.onClose();
846
+ }
847
+ onkeydown(e) {
848
+ let t = this.item.content.search !== "";
849
+ if (!(this.item.opts.disabled.current || t && e.key === " ") && B.includes(e.key)) {
850
+ if (!k(e.currentTarget)) return;
851
+ e.currentTarget.click(), e.preventDefault();
852
+ }
853
+ }
854
+ onclick(e) {
855
+ this.item.opts.disabled.current || this.#e();
856
+ }
857
+ onpointerup(e) {
858
+ let t = this.item.content, n = t.pressedItem;
859
+ if (t.pressedItem = null, e.defaultPrevented || n?.item === this) return;
860
+ let r = n && Math.hypot(e.clientX - n.x, e.clientY - n.y) < 4 ? n.item.item.opts.ref.current : e.currentTarget;
861
+ k(r) && r.click();
862
+ }
863
+ onpointerdown(e) {
864
+ this.item.content.pressedItem = {
865
+ item: this,
866
+ x: e.clientX,
867
+ y: e.clientY
868
+ };
869
+ }
870
+ #t = L.derived(() => S(this.item.props, {
871
+ onclick: this.onclick,
872
+ onpointerdown: this.onpointerdown,
873
+ onpointerup: this.onpointerup,
874
+ onkeydown: this.onkeydown
875
+ }));
876
+ get props() {
877
+ return L.get(this.#t);
878
+ }
879
+ set props(e) {
880
+ L.set(this.#t, e);
881
+ }
882
+ }, Ke = class e {
883
+ static create(t) {
884
+ return new e(t, G.get());
885
+ }
886
+ opts;
887
+ root;
888
+ attachment;
889
+ constructor(e, t) {
890
+ this.opts = e, this.root = t, this.attachment = x(this.opts.ref);
891
+ }
892
+ #e = L.derived(() => ({
893
+ id: this.opts.id.current,
894
+ role: "separator",
895
+ [this.root.getBitsAttr("separator")]: "",
896
+ ...this.attachment
897
+ }));
898
+ get props() {
899
+ return L.get(this.#e);
900
+ }
901
+ set props(e) {
902
+ L.set(this.#e, e);
903
+ }
904
+ }, qe = class e {
905
+ static create(t) {
906
+ return new e(t, K.get());
907
+ }
908
+ opts;
909
+ parentMenu;
910
+ attachment;
911
+ constructor(e, t) {
912
+ this.opts = e, this.parentMenu = t, this.attachment = x(this.opts.ref, (e) => this.parentMenu.triggerNode = e);
913
+ }
914
+ onclick = (e) => {
915
+ this.opts.disabled.current || e.detail !== 0 || (this.parentMenu.toggleOpen(), e.preventDefault());
916
+ };
917
+ onpointerdown = (e) => {
918
+ if (!(this.opts.disabled.current || a(this.opts.ref.current))) {
919
+ if (e.pointerType === "touch") return e.preventDefault();
920
+ e.button === 0 && e.ctrlKey === !1 && (this.parentMenu.toggleOpen(), this.parentMenu.opts.open.current || e.preventDefault());
921
+ }
922
+ };
923
+ onpointerup = (e) => {
924
+ this.opts.disabled.current || a(this.opts.ref.current) || e.pointerType === "touch" && (e.preventDefault(), this.parentMenu.toggleOpen());
925
+ };
926
+ onkeydown = (e) => {
927
+ this.opts.disabled.current || (e.key === " " || e.key === "Enter" ? (this.parentMenu.toggleOpen(), e.preventDefault()) : e.key === "ArrowDown" && (this.parentMenu.onOpen(), e.preventDefault()));
928
+ };
929
+ #e = L.derived(() => {
930
+ if (this.parentMenu.opts.open.current && this.parentMenu.contentId.current) return this.parentMenu.contentId.current;
931
+ });
932
+ #t = L.derived(() => ({
933
+ id: this.opts.id.current,
934
+ disabled: this.opts.disabled.current,
935
+ "aria-haspopup": "menu",
936
+ "aria-expanded": u(this.parentMenu.opts.open.current),
937
+ "aria-controls": L.get(this.#e),
938
+ "data-disabled": s(this.opts.disabled.current),
939
+ "data-state": b(this.parentMenu.opts.open.current),
940
+ [this.parentMenu.root.getBitsAttr("trigger")]: "",
941
+ onclick: this.onclick,
942
+ onpointerdown: this.onpointerdown,
943
+ onpointerup: this.onpointerup,
944
+ onkeydown: this.onkeydown,
945
+ ...this.attachment
946
+ }));
947
+ get props() {
948
+ return L.get(this.#t);
949
+ }
950
+ set props(e) {
951
+ L.set(this.#t, e);
952
+ }
953
+ }, Je = /* @__PURE__ */ new Set([
954
+ "$$slots",
955
+ "$$events",
956
+ "$$legacy",
957
+ "child",
958
+ "children",
959
+ "ref",
960
+ "id",
961
+ "disabled",
962
+ "onSelect",
963
+ "closeOnSelect"
964
+ ]), Ye = L.from_html("<div><!></div>");
965
+ function Xe(e, t) {
966
+ let n = L.props_id();
967
+ L.push(t, !0);
968
+ let i = L.prop(t, "ref", 15, null), a = L.prop(t, "id", 19, () => _(n)), o = L.prop(t, "disabled", 3, !1), s = L.prop(t, "onSelect", 3, r), c = L.prop(t, "closeOnSelect", 3, !0), l = L.rest_props(t, Je), u = Ge.create({
969
+ id: w(() => a()),
970
+ disabled: w(() => o()),
971
+ onSelect: w(() => s()),
972
+ ref: w(() => i(), (e) => i(e)),
973
+ closeOnSelect: w(() => c())
974
+ }), d = L.derived(() => S(l, u.props));
975
+ var f = L.comment(), p = L.first_child(f), m = (e) => {
976
+ var n = L.comment(), r = L.first_child(n);
977
+ L.snippet(r, () => t.child, () => ({ props: L.get(d) })), L.append(e, n);
978
+ }, h = (e) => {
979
+ var n = Ye();
980
+ L.attribute_effect(n, () => ({ ...L.get(d) }));
981
+ var r = L.child(n);
982
+ L.snippet(r, () => t.children ?? L.noop), L.reset(n), L.append(e, n);
983
+ };
984
+ L.if(p, (e) => {
985
+ t.child ? e(m) : e(h, -1);
986
+ }), L.append(e, f), L.pop();
987
+ }
988
+ L.from_html("<div><!></div>");
989
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/menu/components/menu-group.svelte
990
+ var Ze = /* @__PURE__ */ new Set([
991
+ "$$slots",
992
+ "$$events",
993
+ "$$legacy",
994
+ "ref",
995
+ "id",
996
+ "child",
997
+ "children"
998
+ ]), Qe = L.from_html("<div><!></div>");
999
+ function $e(e, t) {
1000
+ let n = L.props_id();
1001
+ L.push(t, !0);
1002
+ let r = L.prop(t, "ref", 15, null), i = L.prop(t, "id", 19, () => _(n)), a = L.rest_props(t, Ze), o = Ke.create({
1003
+ id: w(() => i()),
1004
+ ref: w(() => r(), (e) => r(e))
1005
+ }), s = L.derived(() => S(a, o.props));
1006
+ var c = L.comment(), l = L.first_child(c), u = (e) => {
1007
+ var n = L.comment(), r = L.first_child(n);
1008
+ L.snippet(r, () => t.child, () => ({ props: L.get(s) })), L.append(e, n);
1009
+ }, d = (e) => {
1010
+ var n = Qe();
1011
+ L.attribute_effect(n, () => ({ ...L.get(s) }));
1012
+ var r = L.child(n);
1013
+ L.snippet(r, () => t.children ?? L.noop), L.reset(n), L.append(e, n);
1014
+ };
1015
+ L.if(l, (e) => {
1016
+ t.child ? e(u) : e(d, -1);
1017
+ }), L.append(e, c), L.pop();
1018
+ }
1019
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/menu/components/menu.svelte
1020
+ function et(e, t) {
1021
+ L.push(t, !0);
1022
+ let n = L.prop(t, "open", 15, !1), i = L.prop(t, "onOpenChange", 3, r), a = L.prop(t, "onOpenChangeComplete", 3, r), o = L.prop(t, "_internal_variant", 3, "dropdown-menu"), s = L.prop(t, "_internal_should_skip_exit_animation", 3, void 0), c = Ve.create({
1023
+ variant: w(() => o()),
1024
+ dir: te(() => t.dir),
1025
+ onClose: () => {
1026
+ n(!1), i()(!1);
1027
+ },
1028
+ shouldSkipExitAnimation: () => s()?.() ?? !1
1029
+ });
1030
+ He.create({
1031
+ open: w(() => n(), (e) => {
1032
+ n(e), i()(e);
1033
+ }),
1034
+ onOpenChangeComplete: w(() => a())
1035
+ }, c), pe(e, {
1036
+ children: (e, n) => {
1037
+ var r = L.comment(), i = L.first_child(r);
1038
+ L.snippet(i, () => t.children ?? L.noop), L.append(e, r);
1039
+ },
1040
+ $$slots: { default: !0 }
1041
+ }), L.pop();
1042
+ }
1043
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/dropdown-menu/components/dropdown-menu-content.svelte
1044
+ var tt = /* @__PURE__ */ new Set([
1045
+ "$$slots",
1046
+ "$$events",
1047
+ "$$legacy",
1048
+ "id",
1049
+ "child",
1050
+ "children",
1051
+ "ref",
1052
+ "loop",
1053
+ "onInteractOutside",
1054
+ "onEscapeKeydown",
1055
+ "onCloseAutoFocus",
1056
+ "forceMount",
1057
+ "trapFocus",
1058
+ "style"
1059
+ ]), Z = L.from_html("<div><div><!></div></div>");
1060
+ function nt(e, t) {
1061
+ let n = L.props_id();
1062
+ L.push(t, !0);
1063
+ let i = L.prop(t, "id", 19, () => _(n)), a = L.prop(t, "ref", 15, null), o = L.prop(t, "loop", 3, !0), s = L.prop(t, "onInteractOutside", 3, r), c = L.prop(t, "onEscapeKeydown", 3, r), l = L.prop(t, "onCloseAutoFocus", 3, r), u = L.prop(t, "forceMount", 3, !1), d = L.prop(t, "trapFocus", 3, !1), f = L.rest_props(t, tt), p = Ue.create({
1064
+ id: w(() => i()),
1065
+ loop: w(() => o()),
1066
+ ref: w(() => a(), (e) => a(e)),
1067
+ onCloseAutoFocus: w(() => l())
1068
+ }), m = L.derived(() => S(f, p.props));
1069
+ function h(e) {
1070
+ if (p.handleInteractOutside(e), !e.defaultPrevented && (s()(e), !e.defaultPrevented)) {
1071
+ if (e.target && e.target instanceof Element) {
1072
+ let t = `[${p.parentMenu.root.getBitsAttr("sub-content")}]`;
1073
+ if (P(e, t)) return;
1074
+ }
1075
+ p.parentMenu.onClose();
1076
+ }
1077
+ }
1078
+ function g(e) {
1079
+ c()(e), e.defaultPrevented || p.parentMenu.onClose();
1080
+ }
1081
+ var v = L.comment(), y = L.first_child(v), b = (e) => {
1082
+ he(e, L.spread_props(() => L.get(m), () => p.popperProps, {
1083
+ get ref() {
1084
+ return p.opts.ref;
1085
+ },
1086
+ get enabled() {
1087
+ return p.parentMenu.opts.open.current;
1088
+ },
1089
+ onInteractOutside: h,
1090
+ onEscapeKeydown: g,
1091
+ get trapFocus() {
1092
+ return d();
1093
+ },
1094
+ get loop() {
1095
+ return o();
1096
+ },
1097
+ forceMount: !0,
1098
+ get id() {
1099
+ return i();
1100
+ },
1101
+ get shouldRender() {
1102
+ return p.shouldRender;
1103
+ },
1104
+ popper: (e, n) => {
1105
+ let r = () => (n?.()).props, i = () => (n?.()).wrapperProps, a = L.derived(() => S(r(), { style: A("dropdown-menu") }, { style: t.style }));
1106
+ var o = L.comment(), s = L.first_child(o), c = (e) => {
1107
+ var n = L.comment(), r = L.first_child(n);
1108
+ {
1109
+ let e = L.derived(() => ({
1110
+ props: L.get(a),
1111
+ wrapperProps: i(),
1112
+ ...p.snippetProps
1113
+ }));
1114
+ L.snippet(r, () => t.child, () => L.get(e));
1115
+ }
1116
+ L.append(e, n);
1117
+ }, l = (e) => {
1118
+ var n = Z();
1119
+ L.attribute_effect(n, () => ({ ...i() }));
1120
+ var r = L.child(n);
1121
+ L.attribute_effect(r, () => ({ ...L.get(a) }));
1122
+ var o = L.child(r);
1123
+ L.snippet(o, () => t.children ?? L.noop), L.reset(r), L.reset(n), L.append(e, n);
1124
+ };
1125
+ L.if(s, (e) => {
1126
+ t.child ? e(c) : e(l, -1);
1127
+ }), L.append(e, o);
1128
+ },
1129
+ $$slots: { popper: !0 }
1130
+ }));
1131
+ }, x = (e) => {
1132
+ le(e, L.spread_props(() => L.get(m), () => p.popperProps, {
1133
+ get ref() {
1134
+ return p.opts.ref;
1135
+ },
1136
+ get open() {
1137
+ return p.parentMenu.opts.open.current;
1138
+ },
1139
+ onInteractOutside: h,
1140
+ onEscapeKeydown: g,
1141
+ get trapFocus() {
1142
+ return d();
1143
+ },
1144
+ get loop() {
1145
+ return o();
1146
+ },
1147
+ forceMount: !1,
1148
+ get id() {
1149
+ return i();
1150
+ },
1151
+ get shouldRender() {
1152
+ return p.shouldRender;
1153
+ },
1154
+ popper: (e, n) => {
1155
+ let r = () => (n?.()).props, i = () => (n?.()).wrapperProps, a = L.derived(() => S(r(), { style: A("dropdown-menu") }, { style: t.style }));
1156
+ var o = L.comment(), s = L.first_child(o), c = (e) => {
1157
+ var n = L.comment(), r = L.first_child(n);
1158
+ {
1159
+ let e = L.derived(() => ({
1160
+ props: L.get(a),
1161
+ wrapperProps: i(),
1162
+ ...p.snippetProps
1163
+ }));
1164
+ L.snippet(r, () => t.child, () => L.get(e));
1165
+ }
1166
+ L.append(e, n);
1167
+ }, l = (e) => {
1168
+ var n = Z();
1169
+ L.attribute_effect(n, () => ({ ...i() }));
1170
+ var r = L.child(n);
1171
+ L.attribute_effect(r, () => ({ ...L.get(a) }));
1172
+ var o = L.child(r);
1173
+ L.snippet(o, () => t.children ?? L.noop), L.reset(r), L.reset(n), L.append(e, n);
1174
+ };
1175
+ L.if(s, (e) => {
1176
+ t.child ? e(c) : e(l, -1);
1177
+ }), L.append(e, o);
1178
+ },
1179
+ $$slots: { popper: !0 }
1180
+ }));
1181
+ };
1182
+ L.if(y, (e) => {
1183
+ u() ? e(b) : u() || e(x, 1);
1184
+ }), L.append(e, v), L.pop();
1185
+ }
1186
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/menu/components/menu-trigger.svelte
1187
+ var Q = /* @__PURE__ */ new Set([
1188
+ "$$slots",
1189
+ "$$events",
1190
+ "$$legacy",
1191
+ "id",
1192
+ "ref",
1193
+ "child",
1194
+ "children",
1195
+ "disabled",
1196
+ "type"
1197
+ ]), rt = L.from_html("<button><!></button>");
1198
+ function $(e, t) {
1199
+ let n = L.props_id();
1200
+ L.push(t, !0);
1201
+ let r = L.prop(t, "id", 19, () => _(n)), i = L.prop(t, "ref", 15, null), a = L.prop(t, "disabled", 3, !1), o = L.prop(t, "type", 3, "button"), s = L.rest_props(t, Q), c = qe.create({
1202
+ id: w(() => r()),
1203
+ disabled: w(() => a() ?? !1),
1204
+ ref: w(() => i(), (e) => i(e))
1205
+ }), l = L.derived(() => S(s, c.props, { type: o() }));
1206
+ fe(e, {
1207
+ get id() {
1208
+ return r();
1209
+ },
1210
+ get ref() {
1211
+ return c.opts.ref;
1212
+ },
1213
+ children: (e, n) => {
1214
+ var r = L.comment(), i = L.first_child(r), a = (e) => {
1215
+ var n = L.comment(), r = L.first_child(n);
1216
+ L.snippet(r, () => t.child, () => ({ props: L.get(l) })), L.append(e, n);
1217
+ }, o = (e) => {
1218
+ var n = rt();
1219
+ L.attribute_effect(n, () => ({ ...L.get(l) }));
1220
+ var r = L.child(n);
1221
+ L.snippet(r, () => t.children ?? L.noop), L.reset(n), L.append(e, n);
1222
+ };
1223
+ L.if(i, (e) => {
1224
+ t.child ? e(a) : e(o, -1);
1225
+ }), L.append(e, r);
1226
+ },
1227
+ $$slots: { default: !0 }
1228
+ }), L.pop();
1229
+ }
1230
+ // ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu.svelte
1231
+ var it = /* @__PURE__ */ new Set([
1232
+ "$$slots",
1233
+ "$$events",
1234
+ "$$legacy",
1235
+ "children"
1236
+ ]);
1237
+ function at(e, t) {
1238
+ let n = L.rest_props(t, it);
1239
+ var r = L.comment(), i = L.first_child(r);
1240
+ L.component(i, () => et, (e, r) => {
1241
+ r(e, L.spread_props(() => n, {
1242
+ children: (e, n) => {
1243
+ var r = L.comment(), i = L.first_child(r), a = (e) => {
1244
+ var n = L.comment(), r = L.first_child(n);
1245
+ L.snippet(r, () => t.children), L.append(e, n);
1246
+ };
1247
+ L.if(i, (e) => {
1248
+ t.children && e(a);
1249
+ }), L.append(e, r);
1250
+ },
1251
+ $$slots: { default: !0 }
1252
+ }));
1253
+ }), L.append(e, r);
1254
+ }
1255
+ // ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte
1256
+ var ot = /* @__PURE__ */ new Set([
1257
+ "$$slots",
1258
+ "$$events",
1259
+ "$$legacy",
1260
+ "ref",
1261
+ "class",
1262
+ "sideOffset",
1263
+ "children"
1264
+ ]);
1265
+ function st(t, n) {
1266
+ L.push(n, !0);
1267
+ let r = L.prop(n, "ref", 15, null), i = L.prop(n, "sideOffset", 3, 4), a = L.rest_props(n, ot);
1268
+ var o = L.comment(), s = L.first_child(o);
1269
+ {
1270
+ let t = L.derived(() => e("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", n.class));
1271
+ L.component(s, () => nt, (e, o) => {
1272
+ o(e, L.spread_props({
1273
+ get sideOffset() {
1274
+ return i();
1275
+ },
1276
+ get class() {
1277
+ return L.get(t);
1278
+ }
1279
+ }, () => a, {
1280
+ get ref() {
1281
+ return r();
1282
+ },
1283
+ set ref(e) {
1284
+ r(e);
1285
+ },
1286
+ children: (e, t) => {
1287
+ var r = L.comment(), i = L.first_child(r), a = (e) => {
1288
+ var t = L.comment(), r = L.first_child(t);
1289
+ L.snippet(r, () => n.children), L.append(e, t);
1290
+ };
1291
+ L.if(i, (e) => {
1292
+ n.children && e(a);
1293
+ }), L.append(e, r);
1294
+ },
1295
+ $$slots: { default: !0 }
1296
+ }));
1297
+ });
1298
+ }
1299
+ L.append(t, o), L.pop();
1300
+ }
1301
+ // ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte
1302
+ var ct = /* @__PURE__ */ new Set([
1303
+ "$$slots",
1304
+ "$$events",
1305
+ "$$legacy",
1306
+ "ref",
1307
+ "class",
1308
+ "inset",
1309
+ "children"
1310
+ ]);
1311
+ function lt(t, n) {
1312
+ L.push(n, !0);
1313
+ let r = L.prop(n, "ref", 15, null), i = L.rest_props(n, ct);
1314
+ var a = L.comment(), o = L.first_child(a);
1315
+ {
1316
+ let t = L.derived(() => e("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0", n.inset && "pl-8", n.class));
1317
+ L.component(o, () => Xe, (e, a) => {
1318
+ a(e, L.spread_props({ get class() {
1319
+ return L.get(t);
1320
+ } }, () => i, {
1321
+ get ref() {
1322
+ return r();
1323
+ },
1324
+ set ref(e) {
1325
+ r(e);
1326
+ },
1327
+ children: (e, t) => {
1328
+ var r = L.comment(), i = L.first_child(r), a = (e) => {
1329
+ var t = L.comment(), r = L.first_child(t);
1330
+ L.snippet(r, () => n.children), L.append(e, t);
1331
+ };
1332
+ L.if(i, (e) => {
1333
+ n.children && e(a);
1334
+ }), L.append(e, r);
1335
+ },
1336
+ $$slots: { default: !0 }
1337
+ }));
1338
+ });
1339
+ }
1340
+ L.append(t, a), L.pop();
1341
+ }
1342
+ // ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte
1343
+ var ut = /* @__PURE__ */ new Set([
1344
+ "$$slots",
1345
+ "$$events",
1346
+ "$$legacy",
1347
+ "ref",
1348
+ "class"
1349
+ ]);
1350
+ function dt(t, n) {
1351
+ L.push(n, !0);
1352
+ let r = L.prop(n, "ref", 15, null), i = L.rest_props(n, ut);
1353
+ var a = L.comment(), o = L.first_child(a);
1354
+ {
1355
+ let t = L.derived(() => e("-mx-1 my-1 h-px bg-muted", n.class));
1356
+ L.component(o, () => $e, (e, n) => {
1357
+ n(e, L.spread_props({ get class() {
1358
+ return L.get(t);
1359
+ } }, () => i, {
1360
+ get ref() {
1361
+ return r();
1362
+ },
1363
+ set ref(e) {
1364
+ r(e);
1365
+ }
1366
+ }));
1367
+ });
1368
+ }
1369
+ L.append(t, a), L.pop();
1370
+ }
1371
+ // ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte
1372
+ var ft = /* @__PURE__ */ new Set([
1373
+ "$$slots",
1374
+ "$$events",
1375
+ "$$legacy",
1376
+ "ref",
1377
+ "child",
1378
+ "children"
1379
+ ]);
1380
+ function pt(e, t) {
1381
+ L.push(t, !0);
1382
+ let n = L.prop(t, "ref", 15, null), r = L.rest_props(t, ft);
1383
+ var i = L.comment(), a = L.first_child(i), o = (e) => {
1384
+ let i = (e, n = L.noop) => {
1385
+ var r = L.comment(), i = L.first_child(r);
1386
+ L.snippet(i, () => t.child ?? L.noop, n), L.append(e, r);
1387
+ };
1388
+ var a = L.comment(), o = L.first_child(a);
1389
+ L.component(o, () => $, (e, t) => {
1390
+ t(e, L.spread_props(() => r, {
1391
+ get child() {
1392
+ return i;
1393
+ },
1394
+ get ref() {
1395
+ return n();
1396
+ },
1397
+ set ref(e) {
1398
+ n(e);
1399
+ }
1400
+ }));
1401
+ }), L.append(e, a);
1402
+ }, s = (e) => {
1403
+ var i = L.comment(), a = L.first_child(i);
1404
+ L.component(a, () => $, (e, i) => {
1405
+ i(e, L.spread_props(() => r, {
1406
+ get ref() {
1407
+ return n();
1408
+ },
1409
+ set ref(e) {
1410
+ n(e);
1411
+ },
1412
+ children: (e, n) => {
1413
+ var r = L.comment(), i = L.first_child(r), a = (e) => {
1414
+ var n = L.comment(), r = L.first_child(n);
1415
+ L.snippet(r, () => t.children), L.append(e, n);
1416
+ };
1417
+ L.if(i, (e) => {
1418
+ t.children && e(a);
1419
+ }), L.append(e, r);
1420
+ },
1421
+ $$slots: { default: !0 }
1422
+ }));
1423
+ }), L.append(e, i);
1424
+ };
1425
+ L.if(a, (e) => {
1426
+ t.child ? e(o) : e(s, -1);
1427
+ }), L.append(e, i), L.pop();
1428
+ }
1429
+ export { at as a, st as i, dt as n, lt as r, pt as t };