@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
@@ -1,1372 +0,0 @@
1
- // ../node_modules/.bun/svelte-dnd-action@0.9.79+5d720e49779a0e36/node_modules/svelte-dnd-action/dist/index.mjs
2
- function e(e, t) {
3
- var n = Object.keys(e);
4
- if (Object.getOwnPropertySymbols) {
5
- var r = Object.getOwnPropertySymbols(e);
6
- t && (r = r.filter(function(t) {
7
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
8
- })), n.push.apply(n, r);
9
- }
10
- return n;
11
- }
12
- function t(t) {
13
- for (var n = 1; n < arguments.length; n++) {
14
- var i = arguments[n] == null ? {} : arguments[n];
15
- n % 2 ? e(Object(i), !0).forEach(function(e) {
16
- r(t, e, i[e]);
17
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : e(Object(i)).forEach(function(e) {
18
- Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e));
19
- });
20
- }
21
- return t;
22
- }
23
- function n(e) {
24
- "@babel/helpers - typeof";
25
- return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
26
- return typeof e;
27
- } : function(e) {
28
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
29
- }, n(e);
30
- }
31
- function r(e, t, n) {
32
- return t in e ? Object.defineProperty(e, t, {
33
- value: n,
34
- enumerable: !0,
35
- configurable: !0,
36
- writable: !0
37
- }) : e[t] = n, e;
38
- }
39
- function i(e, t) {
40
- if (e == null) return {};
41
- for (var n = {}, r = Object.keys(e), i, a = 0; a < r.length; a++) i = r[a], t.indexOf(i) >= 0 || (n[i] = e[i]);
42
- return n;
43
- }
44
- function a(e, t) {
45
- if (e == null) return {};
46
- var n = i(e, t), r, a;
47
- if (Object.getOwnPropertySymbols) {
48
- var o = Object.getOwnPropertySymbols(e);
49
- for (a = 0; a < o.length; a++) r = o[a], t.indexOf(r) >= 0 || Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
50
- }
51
- return n;
52
- }
53
- function o(e, t) {
54
- return l(e) || d(e, t) || f(e, t) || h();
55
- }
56
- function s(e) {
57
- return c(e) || u(e) || f(e) || m();
58
- }
59
- function c(e) {
60
- if (Array.isArray(e)) return p(e);
61
- }
62
- function l(e) {
63
- if (Array.isArray(e)) return e;
64
- }
65
- function u(e) {
66
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
67
- }
68
- function d(e, t) {
69
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
70
- if (n != null) {
71
- var r = [], i = !0, a = !1, o, s;
72
- try {
73
- for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0);
74
- } catch (e) {
75
- a = !0, s = e;
76
- } finally {
77
- try {
78
- !i && n.return != null && n.return();
79
- } finally {
80
- if (a) throw s;
81
- }
82
- }
83
- return r;
84
- }
85
- }
86
- function f(e, t) {
87
- if (e) {
88
- if (typeof e == "string") return p(e, t);
89
- var n = Object.prototype.toString.call(e).slice(8, -1);
90
- if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
91
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return p(e, t);
92
- }
93
- }
94
- function p(e, t) {
95
- (t == null || t > e.length) && (t = e.length);
96
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
97
- return r;
98
- }
99
- function m() {
100
- throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
101
- }
102
- function h() {
103
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
104
- }
105
- function g(e, t) {
106
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
107
- if (!n) {
108
- if (Array.isArray(e) || (n = f(e)) || t && e && typeof e.length == "number") {
109
- n && (e = n);
110
- var r = 0, i = function() {};
111
- return {
112
- s: i,
113
- n: function() {
114
- return r >= e.length ? { done: !0 } : {
115
- done: !1,
116
- value: e[r++]
117
- };
118
- },
119
- e: function(e) {
120
- throw e;
121
- },
122
- f: i
123
- };
124
- }
125
- throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
126
- }
127
- var a = !0, o = !1, s;
128
- return {
129
- s: function() {
130
- n = n.call(e);
131
- },
132
- n: function() {
133
- var e = n.next();
134
- return a = e.done, e;
135
- },
136
- e: function(e) {
137
- o = !0, s = e;
138
- },
139
- f: function() {
140
- try {
141
- !a && n.return != null && n.return();
142
- } finally {
143
- if (o) throw s;
144
- }
145
- }
146
- };
147
- }
148
- function _(e, t, n) {
149
- e.dispatchEvent(new CustomEvent("finalize", { detail: {
150
- items: t,
151
- info: n
152
- } }));
153
- }
154
- function v(e, t, n) {
155
- e.dispatchEvent(new CustomEvent("consider", { detail: {
156
- items: t,
157
- info: n
158
- } }));
159
- }
160
- var y = "draggedEntered", b = "draggedLeft", x = "draggedOverIndex", S = "draggedLeftDocument", C = {
161
- LEFT_FOR_ANOTHER: "leftForAnother",
162
- OUTSIDE_OF_ANY: "outsideOfAny"
163
- };
164
- function ee(e, t, n) {
165
- e.dispatchEvent(new CustomEvent(y, { detail: {
166
- indexObj: t,
167
- draggedEl: n
168
- } }));
169
- }
170
- function te(e, t, n) {
171
- e.dispatchEvent(new CustomEvent(b, { detail: {
172
- draggedEl: t,
173
- type: C.LEFT_FOR_ANOTHER,
174
- theOtherDz: n
175
- } }));
176
- }
177
- function ne(e, t) {
178
- e.dispatchEvent(new CustomEvent(b, { detail: {
179
- draggedEl: t,
180
- type: C.OUTSIDE_OF_ANY
181
- } }));
182
- }
183
- function re(e, t, n) {
184
- e.dispatchEvent(new CustomEvent(x, { detail: {
185
- indexObj: t,
186
- draggedEl: n
187
- } }));
188
- }
189
- function ie(e) {
190
- window.dispatchEvent(new CustomEvent(S, { detail: { draggedEl: e } }));
191
- }
192
- var w = {
193
- DRAG_STARTED: "dragStarted",
194
- DRAGGED_ENTERED: y,
195
- DRAGGED_ENTERED_ANOTHER: "dragEnteredAnother",
196
- DRAGGED_OVER_INDEX: x,
197
- DRAGGED_LEFT: b,
198
- DRAGGED_LEFT_ALL: "draggedLeftAll",
199
- DROPPED_INTO_ZONE: "droppedIntoZone",
200
- DROPPED_INTO_ANOTHER: "droppedIntoAnother",
201
- DROPPED_OUTSIDE_OF_ANY: "droppedOutsideOfAny",
202
- DRAG_STOPPED: "dragStopped"
203
- }, T = {
204
- POINTER: "pointer",
205
- KEYBOARD: "keyboard"
206
- }, ae = {
207
- space: [" "],
208
- enter: ["Enter"],
209
- space_or_enter: [" ", "Enter"]
210
- }, oe = "space_or_enter", se = {
211
- space: "space-bar",
212
- enter: "enter",
213
- space_or_enter: "space-bar or enter"
214
- }, E = "isDndShadowItem", ce = "data-is-dnd-shadow-item-internal", D = "data-is-dnd-shadow-item-hint", O = "id:dnd-shadow-placeholder-0000", le = "dnd-action-dragged-el", k = "id", ue = 0;
215
- function de() {
216
- ue++;
217
- }
218
- function fe() {
219
- if (ue === 0) throw Error("Bug! trying to decrement when there are no dropzones");
220
- ue--;
221
- }
222
- var pe = typeof window > "u";
223
- function me(e) {
224
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n, r = t ? Ce(e) : e.getBoundingClientRect(), i = getComputedStyle(e), a = i.transform;
225
- if (a) {
226
- var o, s, c, l;
227
- if (a.startsWith("matrix3d(")) n = a.slice(9, -1).split(/, /), o = +n[0], s = +n[5], c = +n[12], l = +n[13];
228
- else if (a.startsWith("matrix(")) n = a.slice(7, -1).split(/, /), o = +n[0], s = +n[3], c = +n[4], l = +n[5];
229
- else return r;
230
- var u = i.transformOrigin, d = r.left - c - (1 - o) * parseFloat(u), f = r.top - l - (1 - s) * parseFloat(u.slice(u.indexOf(" ") + 1)), p = o ? r.width / o : e.offsetWidth, m = s ? r.height / s : e.offsetHeight;
231
- return {
232
- x: d,
233
- y: f,
234
- width: p,
235
- height: m,
236
- top: f,
237
- right: d + p,
238
- bottom: f + m,
239
- left: d
240
- };
241
- }
242
- return r;
243
- }
244
- function he(e) {
245
- var t = me(e);
246
- return {
247
- top: t.top + window.scrollY,
248
- bottom: t.bottom + window.scrollY,
249
- left: t.left + window.scrollX,
250
- right: t.right + window.scrollX
251
- };
252
- }
253
- function ge(e) {
254
- var t = e.getBoundingClientRect();
255
- return {
256
- top: t.top + window.scrollY,
257
- bottom: t.bottom + window.scrollY,
258
- left: t.left + window.scrollX,
259
- right: t.right + window.scrollX
260
- };
261
- }
262
- function _e(e) {
263
- return {
264
- x: (e.left + e.right) / 2,
265
- y: (e.top + e.bottom) / 2
266
- };
267
- }
268
- function ve(e, t) {
269
- return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
270
- }
271
- function ye(e, t) {
272
- return e.y <= t.bottom && e.y >= t.top && e.x >= t.left && e.x <= t.right;
273
- }
274
- function be(e) {
275
- return _e(ge(e));
276
- }
277
- function xe(e, t) {
278
- return ve(e, be(t));
279
- }
280
- function Se(e) {
281
- var t = ge(e);
282
- return t.right < 0 || t.left > document.documentElement.scrollWidth || t.bottom < 0 || t.top > document.documentElement.scrollHeight;
283
- }
284
- function Ce(e) {
285
- for (var t = e.getBoundingClientRect(), n = {
286
- top: t.top,
287
- bottom: t.bottom,
288
- left: t.left,
289
- right: t.right
290
- }, r = !1, i = !1, a = e.parentElement; a && a !== document.body;) {
291
- var o = window.getComputedStyle(a), s = o.overflowY, c = o.overflowX, l = s === "scroll" || s === "auto", u = c === "scroll" || c === "auto";
292
- if (l || u) {
293
- var d = a.getBoundingClientRect();
294
- if (l) {
295
- var f = Math.max(n.top, d.top), p = Math.min(n.bottom, d.bottom);
296
- (f !== n.top || p !== n.bottom) && (r = !0), n.top = f, n.bottom = p;
297
- }
298
- if (u) {
299
- var m = Math.max(n.left, d.left), h = Math.min(n.right, d.right);
300
- (m !== n.left || h !== n.right) && (i = !0), n.left = m, n.right = h;
301
- }
302
- }
303
- a = a.parentElement;
304
- }
305
- return r || i ? {
306
- top: n.top,
307
- bottom: n.bottom,
308
- left: n.left,
309
- right: n.right,
310
- width: Math.max(0, n.right - n.left),
311
- height: Math.max(0, n.bottom - n.top)
312
- } : {
313
- top: t.top,
314
- bottom: t.bottom,
315
- left: t.left,
316
- right: t.right,
317
- width: Math.max(0, t.right - t.left),
318
- height: Math.max(0, t.bottom - t.top)
319
- };
320
- }
321
- var we;
322
- function Te() {
323
- we = /* @__PURE__ */ new Map();
324
- }
325
- Te();
326
- function Ee(e) {
327
- var t = Array.from(e.children).findIndex(function(e) {
328
- return e.getAttribute(ce);
329
- });
330
- if (t >= 0) return we.has(e) || we.set(e, /* @__PURE__ */ new Map()), we.get(e).set(t, he(e.children[t])), t;
331
- }
332
- function De(e, t) {
333
- if (!ye(e, he(t))) return null;
334
- var n = t.children;
335
- if (n.length === 0) return {
336
- index: 0,
337
- isProximityBased: !0
338
- };
339
- for (var r = Ee(t), i = 0; i < n.length; i++) if (ye(e, he(n[i]))) {
340
- var a = we.has(t) && we.get(t).get(i);
341
- return a && !ye(e, a) ? {
342
- index: r,
343
- isProximityBased: !1
344
- } : {
345
- index: i,
346
- isProximityBased: !1
347
- };
348
- }
349
- for (var o = Number.MAX_VALUE, s = void 0, c = 0; c < n.length; c++) {
350
- var l = xe(e, n[c]);
351
- l < o && (o = l, s = c);
352
- }
353
- if (n.length > 0) {
354
- var u = n.length, d = n[u - 1].cloneNode(!1);
355
- d.style.visibility = "hidden", d.style.pointerEvents = "none", t.appendChild(d), xe(e, d) < o && (s = u), t.removeChild(d);
356
- }
357
- return {
358
- index: s,
359
- isProximityBased: !0
360
- };
361
- }
362
- function Oe(e) {
363
- return JSON.stringify(e, null, 2);
364
- }
365
- function ke(e) {
366
- if (!e) throw Error("cannot get depth of a falsy node");
367
- return Ae(e, 0);
368
- }
369
- function Ae(e) {
370
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
371
- return e.parentElement ? Ae(e.parentElement, t + 1) : t - 1;
372
- }
373
- function je(e, t) {
374
- if (Object.keys(e).length !== Object.keys(t).length) return !1;
375
- for (var n in e) if (!{}.hasOwnProperty.call(t, n) || t[n] !== e[n]) return !1;
376
- return !0;
377
- }
378
- function Me(e, t) {
379
- if (e.length !== t.length) return !1;
380
- for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
381
- return !0;
382
- }
383
- var Ne = 200, Pe = 10, Fe;
384
- function Ie(e, t) {
385
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ne, r = arguments.length > 3 ? arguments[3] : void 0, i = arguments.length > 4 ? arguments[4] : void 0, a, o, s = !1, c, l = Array.from(t).sort(function(e, t) {
386
- return ke(t) - ke(e);
387
- });
388
- function u() {
389
- var t = i(), d = r.multiScrollIfNeeded();
390
- if (!d && c && Math.abs(c.x - t.x) < Pe && Math.abs(c.y - t.y) < Pe) Fe = window.setTimeout(u, n);
391
- else if (Se(e)) ie(e);
392
- else {
393
- c = t;
394
- var f = !1, p = g(l), m;
395
- try {
396
- for (p.s(); !(m = p.n()).done;) {
397
- var h = m.value;
398
- d && Te();
399
- var _ = De(t, h);
400
- if (_ !== null) {
401
- var v = _.index;
402
- f = !0, h === a ? v !== o && (re(h, _, e), o = v) : (a && te(a, e, h), ee(h, _, e), a = h);
403
- break;
404
- }
405
- }
406
- } catch (e) {
407
- p.e(e);
408
- } finally {
409
- p.f();
410
- }
411
- !f && s && a ? (ne(a, e), a = void 0, o = void 0, s = !1) : s = !0, Fe = window.setTimeout(u, n);
412
- }
413
- }
414
- u();
415
- }
416
- function Le() {
417
- clearTimeout(Fe), Te();
418
- }
419
- var Re = 30;
420
- function ze() {
421
- var e;
422
- function t() {
423
- e = {
424
- directionObj: void 0,
425
- stepPx: 0
426
- };
427
- }
428
- t();
429
- function n(t) {
430
- var r = e, i = r.directionObj, a = r.stepPx;
431
- i && (t.scrollBy(i.x * a, i.y * a), window.requestAnimationFrame(function() {
432
- return n(t);
433
- }));
434
- }
435
- function r(e) {
436
- return Re - e;
437
- }
438
- function i(i, a) {
439
- if (!a) return !1;
440
- var o = Be(i, a), s = !!e.directionObj;
441
- if (o === null) return s && t(), !1;
442
- var c = !1, l = !1;
443
- return a.scrollHeight > a.clientHeight && (o.bottom < Re ? (c = !0, e.directionObj = {
444
- x: 0,
445
- y: 1
446
- }, e.stepPx = r(o.bottom)) : o.top < Re && (c = !0, e.directionObj = {
447
- x: 0,
448
- y: -1
449
- }, e.stepPx = r(o.top)), !s && c) || a.scrollWidth > a.clientWidth && (o.right < Re ? (l = !0, e.directionObj = {
450
- x: 1,
451
- y: 0
452
- }, e.stepPx = r(o.right)) : o.left < Re && (l = !0, e.directionObj = {
453
- x: -1,
454
- y: 0
455
- }, e.stepPx = r(o.left)), !s && l) ? (n(a), !0) : (t(), !1);
456
- }
457
- return {
458
- scrollIfNeeded: i,
459
- resetScrolling: t
460
- };
461
- }
462
- function Be(e, t) {
463
- var n = t === document.scrollingElement ? {
464
- top: 0,
465
- bottom: window.innerHeight,
466
- left: 0,
467
- right: window.innerWidth
468
- } : t.getBoundingClientRect();
469
- return ye(e, n) ? {
470
- top: e.y - n.top,
471
- bottom: n.bottom - e.y,
472
- left: e.x - n.left,
473
- right: n.right - e.x
474
- } : null;
475
- }
476
- function Ve() {
477
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 ? arguments[1] : void 0, n = Ue(e), r = Array.from(n).sort(function(e, t) {
478
- return ke(t) - ke(e);
479
- }), i = ze(), a = i.scrollIfNeeded, o = i.resetScrolling;
480
- function s() {
481
- var e = t();
482
- if (!e || !r) return !1;
483
- for (var n = r.filter(function(t) {
484
- return ye(e, t.getBoundingClientRect()) || t === document.scrollingElement;
485
- }), i = 0; i < n.length; i++) if (a(e, n[i])) return !0;
486
- return !1;
487
- }
488
- return {
489
- multiScrollIfNeeded: n.size > 0 ? s : function() {
490
- return !1;
491
- },
492
- destroy: function() {
493
- return o();
494
- }
495
- };
496
- }
497
- function He(e) {
498
- if (!e) return [];
499
- for (var t = [], n = e; n;) window.getComputedStyle(n).overflow.split(" ").some(function(e) {
500
- return e.includes("auto") || e.includes("scroll");
501
- }) && t.push(n), n = n.parentElement;
502
- return t;
503
- }
504
- function Ue(e) {
505
- var t = /* @__PURE__ */ new Set(), n = g(e), r;
506
- try {
507
- for (n.s(); !(r = n.n()).done;) {
508
- var i = r.value;
509
- He(i).forEach(function(e) {
510
- return t.add(e);
511
- });
512
- }
513
- } catch (e) {
514
- n.e(e);
515
- } finally {
516
- n.f();
517
- }
518
- return (document.scrollingElement.scrollHeight > document.scrollingElement.clientHeight || document.scrollingElement.scrollWidth > document.scrollingElement.clientHeight) && t.add(document.scrollingElement), t;
519
- }
520
- function We(e) {
521
- var t = e.cloneNode(!0), n = [], r = e.tagName === "SELECT", i = r ? [e] : s(e.querySelectorAll("select")), a = g(i), o;
522
- try {
523
- for (a.s(); !(o = a.n()).done;) {
524
- var c = o.value;
525
- n.push(c.value);
526
- }
527
- } catch (e) {
528
- a.e(e);
529
- } finally {
530
- a.f();
531
- }
532
- if (i.length > 0) for (var l = r ? [t] : s(t.querySelectorAll("select")), u = 0; u < l.length; u++) {
533
- var d = l[u], f = n[u], p = d.querySelector(`option[value="${f}"`);
534
- p && p.setAttribute("selected", !0);
535
- }
536
- var m = e.tagName === "CANVAS", h = m ? [e] : s(e.querySelectorAll("canvas"));
537
- if (h.length > 0) for (var _ = m ? [t] : s(t.querySelectorAll("canvas")), v = 0; v < _.length; v++) {
538
- var y = h[v], b = _[v];
539
- b.width = y.width, b.height = y.height, y.width > 0 && y.height > 0 && b.getContext("2d").drawImage(y, 0, 0);
540
- }
541
- return t;
542
- }
543
- var Ge = Object.freeze({ USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT: "USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT" }), Ke = r({}, Ge.USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT, !1);
544
- function qe(e) {
545
- if (!Ge[e]) throw Error(`Can't get non existing feature flag ${e}! Supported flags: ${Object.keys(Ge)}`);
546
- return Ke[e];
547
- }
548
- var Je = .2;
549
- function A(e) {
550
- return `${e} ${Je}s ease`;
551
- }
552
- function Ye(e) {
553
- var t = e.style.transitionProperty.split(",").map(function(e) {
554
- return e.trim();
555
- });
556
- t.includes("all") || (t.includes("width") || (e.style.transition += `, ${A("width")}`), t.includes("height") || (e.style.transition += `, ${A("height")}`));
557
- }
558
- function Xe(e, t) {
559
- var n = e.getBoundingClientRect(), r = We(e);
560
- $e(e, r), r.id = le, r.style.position = "fixed";
561
- var i = n.top, a = n.left;
562
- if (r.style.top = `${i}px`, r.style.left = `${a}px`, t) {
563
- var o = _e(n);
564
- i -= o.y - t.y, a -= o.x - t.x, window.setTimeout(function() {
565
- r.style.top = `${i}px`, r.style.left = `${a}px`;
566
- }, 0);
567
- }
568
- return r.style.margin = "0", r.style.boxSizing = "border-box", r.style.height = `${n.height}px`, r.style.width = `${n.width}px`, r.style.transition = `${A("top")}, ${A("left")}, ${A("background-color")}, ${A("opacity")}, ${A("color")} `, window.setTimeout(function() {
569
- return Ye(r);
570
- }, 0), r.style.zIndex = "9999", r.style.cursor = "grabbing", r;
571
- }
572
- function Ze(e) {
573
- e.style.cursor = "grab";
574
- }
575
- function Qe(e, t, n, r) {
576
- Ye(e), $e(t, e);
577
- var i = t.getBoundingClientRect(), a = e.getBoundingClientRect(), o = window.getComputedStyle(e), s = parseFloat(o.left), c = parseFloat(o.top), l = i.width - a.width, u = i.height - a.height;
578
- if (l || u) {
579
- var d = {
580
- left: a.width ? (n - a.left) / a.width : 0,
581
- top: a.height ? (r - a.top) / a.height : 0
582
- };
583
- qe(Ge.USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT) || (e.style.height = `${i.height}px`, e.style.width = `${i.width}px`), e.style.left = `${s - d.left * l}px`, e.style.top = `${c - d.top * u}px`;
584
- }
585
- }
586
- function $e(e, t) {
587
- var n = window.getComputedStyle(e);
588
- Array.from(n).filter(function(e) {
589
- return e.startsWith("background") || e.startsWith("padding") || e.startsWith("font") || e.startsWith("text") || e.startsWith("align") || e.startsWith("justify") || e.startsWith("display") || e.startsWith("flex") || e.startsWith("border") || e === "opacity" || e === "color" || e === "list-style-type" || qe(Ge.USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT) && (e === "width" || e === "height");
590
- }).forEach(function(e) {
591
- return t.style.setProperty(e, n.getPropertyValue(e), n.getPropertyPriority(e));
592
- });
593
- }
594
- function et(e, t) {
595
- e.draggable = !1, e.ondragstart = function() {
596
- return !1;
597
- }, t ? (e.style.userSelect = "", e.style.WebkitUserSelect = "", e.style.cursor = "") : (e.style.userSelect = "none", e.style.WebkitUserSelect = "none", e.style.cursor = "grab");
598
- }
599
- function tt(e) {
600
- e.style.display = "none", e.style.position = "fixed", e.style.zIndex = "-5";
601
- }
602
- function nt(e) {
603
- e.style.visibility = "hidden", e.setAttribute(ce, "true");
604
- }
605
- function rt(e) {
606
- e.style.visibility = "", e.removeAttribute(ce);
607
- }
608
- function it(e) {
609
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function() {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() {
610
- return [];
611
- };
612
- e.forEach(function(e) {
613
- var r = t(e);
614
- Object.keys(r).forEach(function(t) {
615
- e.style[t] = r[t];
616
- }), n(e).forEach(function(t) {
617
- return e.classList.add(t);
618
- });
619
- });
620
- }
621
- function at(e) {
622
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function() {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() {
623
- return [];
624
- };
625
- e.forEach(function(e) {
626
- var r = t(e);
627
- Object.keys(r).forEach(function(t) {
628
- e.style[t] = "";
629
- }), n(e).forEach(function(t) {
630
- return e.classList.contains(t) && e.classList.remove(t);
631
- });
632
- });
633
- }
634
- function ot(e) {
635
- var t = e.style.minHeight;
636
- e.style.minHeight = window.getComputedStyle(e).getPropertyValue("height");
637
- var n = e.style.minWidth;
638
- return e.style.minWidth = window.getComputedStyle(e).getPropertyValue("width"), function() {
639
- e.style.minHeight = t, e.style.minWidth = n;
640
- };
641
- }
642
- var st = "--any--", ct = 100, lt = 20, ut = 3, dt = 80, ft = { outline: "rgba(255, 255, 102, 0.7) solid 2px" }, pt = "data-is-dnd-original-dragged-item", j, M, N, mt, P, ht, F, I, L, R, z = !1, gt = !1, _t, vt = !1, yt = [], bt, B, xt = !1, St = !1, V, H = /* @__PURE__ */ new Set(), U = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map(), Ct = /* @__PURE__ */ new WeakMap();
643
- function wt(e, t) {
644
- U.has(t) || U.set(t, /* @__PURE__ */ new Set()), U.get(t).has(e) || (U.get(t).add(e), de());
645
- }
646
- function Tt(e, t) {
647
- var n = U.get(t);
648
- n && n.delete(e) && (fe(), n.size === 0 && U.delete(t));
649
- }
650
- function Et() {
651
- var e = U.get(mt);
652
- if (e && e.size !== 0) {
653
- H.size > 0 && Dt(), H = new Set(e);
654
- var t = g(H), n;
655
- try {
656
- for (t.s(); !(n = t.n()).done;) {
657
- var r = n.value;
658
- r.addEventListener(y, At), r.addEventListener(b, jt), r.addEventListener(x, Mt);
659
- }
660
- } catch (e) {
661
- t.e(e);
662
- } finally {
663
- t.f();
664
- }
665
- window.addEventListener(S, Pt);
666
- var i = Math.max.apply(Math, s(Array.from(H).map(function(e) {
667
- return W.get(e).dropAnimationDurationMs;
668
- }))), a = i === 0 ? lt : Math.max(i, ct);
669
- bt = Ve(H, function() {
670
- return R;
671
- });
672
- var o = St ? function() {
673
- return {
674
- x: R.x + window.scrollX,
675
- y: R.y + window.scrollY
676
- };
677
- } : function() {
678
- return be(M);
679
- };
680
- Ie(M, H, a * 1.07, bt, o);
681
- }
682
- }
683
- function Dt() {
684
- var e = g(H), t;
685
- try {
686
- for (e.s(); !(t = e.n()).done;) {
687
- var n = t.value;
688
- n.removeEventListener(y, At), n.removeEventListener(b, jt), n.removeEventListener(x, Mt);
689
- }
690
- } catch (t) {
691
- e.e(t);
692
- } finally {
693
- e.f();
694
- }
695
- H = /* @__PURE__ */ new Set(), window.removeEventListener(S, Pt), bt &&= (bt.destroy(), void 0), Le();
696
- }
697
- function Ot(e) {
698
- return e.findIndex(function(e) {
699
- return !!e[E];
700
- });
701
- }
702
- function kt(e) {
703
- var n;
704
- return t(t({}, e), {}, (n = {}, r(n, E, !0), r(n, k, O), n));
705
- }
706
- function At(e) {
707
- var t = W.get(e.currentTarget), n = t.items;
708
- if (!(t.dropFromOthersDisabled && e.currentTarget !== P)) {
709
- if (vt = !1, n = n.filter(function(e) {
710
- return e[k] !== F[k] && e[k] !== "id:dnd-shadow-placeholder-0000";
711
- }), P !== e.currentTarget) {
712
- var r = W.get(P).items.filter(function(e) {
713
- return !e[E];
714
- });
715
- v(P, r, {
716
- trigger: w.DRAGGED_ENTERED_ANOTHER,
717
- id: N[k],
718
- source: T.POINTER
719
- });
720
- }
721
- var i = e.detail.indexObj.index;
722
- I = e.currentTarget, n.splice(i, 0, F), v(e.currentTarget, n, {
723
- trigger: w.DRAGGED_ENTERED,
724
- id: N[k],
725
- source: T.POINTER
726
- });
727
- }
728
- }
729
- function jt(e) {
730
- if (z) {
731
- var t = W.get(e.currentTarget), n = t.items;
732
- if (!(t.dropFromOthersDisabled && e.currentTarget !== P && e.currentTarget !== I)) {
733
- var r = s(n), i = Ot(r);
734
- i !== -1 && r.splice(i, 1);
735
- var a = I;
736
- I = void 0;
737
- var o = e.detail, c = o.type, l = o.theOtherDz;
738
- if (c === C.OUTSIDE_OF_ANY || c === C.LEFT_FOR_ANOTHER && l !== P && W.get(l).dropFromOthersDisabled) {
739
- vt = !0, I = P;
740
- var u = a === P ? r : s(W.get(P).items);
741
- u.splice(ht, 0, F), v(P, u, {
742
- trigger: w.DRAGGED_LEFT_ALL,
743
- id: N[k],
744
- source: T.POINTER
745
- });
746
- }
747
- v(e.currentTarget, r, {
748
- trigger: w.DRAGGED_LEFT,
749
- id: N[k],
750
- source: T.POINTER
751
- });
752
- }
753
- }
754
- }
755
- function Mt(e) {
756
- var t = W.get(e.currentTarget), n = t.items;
757
- if (!(t.dropFromOthersDisabled && e.currentTarget !== P)) {
758
- var r = s(n);
759
- vt = !1;
760
- var i = e.detail.indexObj.index, a = Ot(r);
761
- a !== -1 && r.splice(a, 1), r.splice(i, 0, F), v(e.currentTarget, r, {
762
- trigger: w.DRAGGED_OVER_INDEX,
763
- id: N[k],
764
- source: T.POINTER
765
- });
766
- }
767
- }
768
- function Nt(e) {
769
- e.preventDefault();
770
- var t = e.touches ? e.touches[0] : e;
771
- R = {
772
- x: t.clientX,
773
- y: t.clientY
774
- }, M.style.transform = `translate3d(${R.x - L.x}px, ${R.y - L.y}px, 0)`;
775
- }
776
- function Pt() {
777
- gt = !0, window.removeEventListener("mousemove", Nt), window.removeEventListener("touchmove", Nt), window.removeEventListener("mouseup", Pt), window.removeEventListener("touchend", Pt), Dt(), Ze(M), I ||= P;
778
- var e = W.get(I), t = e.items, n = e.type;
779
- at(U.get(n), function(e) {
780
- return W.get(e).dropTargetStyle;
781
- }, function(e) {
782
- return W.get(e).dropTargetClasses;
783
- });
784
- var r = Ot(t);
785
- r === -1 && I === P && (r = ht), t = t.map(function(e) {
786
- return e.isDndShadowItem ? N : e;
787
- });
788
- function i() {
789
- Dt(), _t(), _(I, t, {
790
- trigger: vt ? w.DROPPED_OUTSIDE_OF_ANY : w.DROPPED_INTO_ZONE,
791
- id: N[k],
792
- source: T.POINTER
793
- }), I !== P && _(P, W.get(P).items, {
794
- trigger: w.DROPPED_INTO_ANOTHER,
795
- id: N[k],
796
- source: T.POINTER
797
- });
798
- var e = Array.from(I.children).find(function(e) {
799
- return e.getAttribute(ce);
800
- });
801
- e && rt(e), Lt();
802
- }
803
- W.get(I).dropAnimationDisabled ? i() : Ft(r, i);
804
- }
805
- function Ft(e, t) {
806
- var n = me(e > -1 ? I.children[e] : I, !1), r = {
807
- x: n.left - parseFloat(M.style.left),
808
- y: n.top - parseFloat(M.style.top)
809
- }, i = W.get(I).dropAnimationDurationMs, a = `transform ${i}ms ease`;
810
- M.style.transition = M.style.transition ? M.style.transition + "," + a : a, M.style.transform = `translate3d(${r.x}px, ${r.y}px, 0)`, window.setTimeout(t, i);
811
- }
812
- function It(e, t) {
813
- var n = {
814
- dz: e,
815
- destroy: t
816
- };
817
- yt.push(n), window.requestAnimationFrame(function() {
818
- yt.includes(n) && (tt(e), document.body.appendChild(e));
819
- });
820
- }
821
- function Lt() {
822
- M && M.remove && M.remove(), j && j.remove && j.remove(), M = void 0, j = void 0, N = void 0, mt = void 0, P = void 0, ht = void 0, F = void 0, I = void 0, L = void 0, R = void 0, z = !1, gt = !1, _t = void 0, vt = !1, B && clearTimeout(B), B = void 0, xt = !1, St = !1, V = void 0, yt.length && (yt.forEach(function(e) {
823
- var t = e.dz, n = e.destroy;
824
- n(), t.remove();
825
- }), yt = []);
826
- }
827
- function Rt(e, n) {
828
- var r = !1, i = !1, a = {
829
- items: void 0,
830
- type: void 0,
831
- flipDurationMs: 0,
832
- dragDisabled: !1,
833
- morphDisabled: !1,
834
- dropFromOthersDisabled: !1,
835
- dropTargetStyle: ft,
836
- dropTargetClasses: [],
837
- transformDraggedElement: function() {},
838
- centreDraggedOnCursor: !1,
839
- useCursorForDetection: !1,
840
- dropAnimationDisabled: !1,
841
- delayTouchStartMs: 0
842
- }, o = /* @__PURE__ */ new Map();
843
- function c() {
844
- window.addEventListener("mousemove", f, { passive: !1 }), window.addEventListener("touchmove", f, {
845
- passive: !1,
846
- capture: !1
847
- }), window.addEventListener("mouseup", d, { passive: !1 }), window.addEventListener("touchend", d, { passive: !1 });
848
- }
849
- function l() {
850
- window.removeEventListener("mousemove", f), window.removeEventListener("touchmove", f), window.removeEventListener("mouseup", d), window.removeEventListener("touchend", d), B && (clearTimeout(B), B = void 0, xt = !1);
851
- }
852
- function u() {
853
- V === e && (l(), V = void 0, j = void 0, L = void 0, R = void 0);
854
- }
855
- function d(t) {
856
- if (V === e && (u(), t.type === "touchend")) {
857
- var n = new Event("click", {
858
- bubbles: !0,
859
- cancelable: !0
860
- });
861
- t.target.dispatchEvent(n);
862
- }
863
- }
864
- function f(t) {
865
- if (!(i || V !== e)) {
866
- var n = !!t.touches, r = n ? t.touches[0] : t;
867
- n && a.delayTouchStartMs > 0 && !xt ? (R = {
868
- x: r.clientX,
869
- y: r.clientY
870
- }, (Math.abs(R.x - L.x) >= ut || Math.abs(R.y - L.y) >= ut) && (B &&= (clearTimeout(B), void 0), d(t))) : (t.preventDefault(), R = {
871
- x: r.clientX,
872
- y: r.clientY
873
- }, (Math.abs(R.x - L.x) >= ut || Math.abs(R.y - L.y) >= ut) && m());
874
- }
875
- }
876
- function p(n) {
877
- if ((n.target === n.currentTarget || n.target.value === void 0 && !n.target.isContentEditable) && !n.button && !(i || z || V)) {
878
- var r = !!n.touches, o = r && a.delayTouchStartMs > 0;
879
- o || n.preventDefault(), n.stopPropagation(), V = e;
880
- var s = r ? n.touches[0] : n;
881
- if (L = {
882
- x: s.clientX,
883
- y: s.clientY
884
- }, R = t({}, L), j = n.currentTarget, o) {
885
- var l = j;
886
- xt = !1, B = window.setTimeout(function() {
887
- i || V !== e || j !== l || (xt = !0, m());
888
- }, a.delayTouchStartMs);
889
- }
890
- c();
891
- }
892
- }
893
- function m() {
894
- var t;
895
- if (i || V !== e || z || !((t = j) != null && t.parentElement)) {
896
- u();
897
- return;
898
- }
899
- l(), V = void 0, z = !0;
900
- var n = o.get(j);
901
- ht = n, P = j.parentElement;
902
- var r = P.closest("dialog") || P.closest("[popover]") || P.getRootNode(), c = r.body || r, d = a.items, f = a.type, p = a.centreDraggedOnCursor, m = a.useCursorForDetection, h = s(d);
903
- N = h[n], mt = f, F = kt(N), St = m, M = Xe(j, p && R), c.appendChild(M);
904
- function g() {
905
- M && !gt && (j.parentElement ? window.requestAnimationFrame(g) : (j.setAttribute(pt, !0), c.appendChild(j), Et(), tt(j), F[k] = N[k], M.focus()));
906
- }
907
- window.requestAnimationFrame(g), it(Array.from(U.get(a.type)).filter(function(e) {
908
- return e === P || !W.get(e).dropFromOthersDisabled;
909
- }), function(e) {
910
- return W.get(e).dropTargetStyle;
911
- }, function(e) {
912
- return W.get(e).dropTargetClasses;
913
- }), h.splice(n, 1, F), _t = ot(P), v(P, h, {
914
- trigger: w.DRAG_STARTED,
915
- id: N[k],
916
- source: T.POINTER
917
- }), window.addEventListener("mousemove", Nt, { passive: !1 }), window.addEventListener("touchmove", Nt, {
918
- passive: !1,
919
- capture: !1
920
- }), window.addEventListener("mouseup", Pt, { passive: !1 }), window.addEventListener("touchend", Pt, { passive: !1 });
921
- }
922
- function h(t) {
923
- var n = t.items, i = n === void 0 ? void 0 : n, c = t.flipDurationMs, l = c === void 0 ? 0 : c, u = t.type, d = u === void 0 ? st : u, f = t.dragDisabled, m = f !== void 0 && f, h = t.morphDisabled, g = h !== void 0 && h, _ = t.dropFromOthersDisabled, v = _ !== void 0 && _, y = t.dropTargetStyle, b = y === void 0 ? ft : y, x = t.dropTargetClasses, S = x === void 0 ? [] : x, C = t.transformDraggedElement, ee = C === void 0 ? function() {} : C, te = t.centreDraggedOnCursor, ne = te !== void 0 && te, re = t.useCursorForDetection, ie = re !== void 0 && re, w = t.dropAnimationDisabled, T = w !== void 0 && w, ae = t.delayTouchStart, oe = ae !== void 0 && ae;
924
- a.dropAnimationDurationMs = l;
925
- var se = 0;
926
- oe === !0 ? se = dt : typeof oe == "number" && isFinite(oe) && oe >= 0 && (se = oe), a.delayTouchStartMs = se, a.type && d !== a.type && Tt(e, a.type), a.type = d, a.items = s(i), a.dragDisabled = m, a.morphDisabled = g, a.transformDraggedElement = ee, a.centreDraggedOnCursor = ne, a.useCursorForDetection = ie, a.dropAnimationDisabled = T, !r || !z || gt || je(b, a.dropTargetStyle) && Me(S, a.dropTargetClasses) || (at([e], function() {
927
- return a.dropTargetStyle;
928
- }, function() {
929
- return S;
930
- }), it([e], function() {
931
- return b;
932
- }, function() {
933
- return S;
934
- })), a.dropTargetStyle = b, a.dropTargetClasses = s(S);
935
- function E(e, t) {
936
- return W.get(e) ? W.get(e)[t] : a[t];
937
- }
938
- r && z && a.dropFromOthersDisabled !== v && (v ? at([e], function(e) {
939
- return E(e, "dropTargetStyle");
940
- }, function(e) {
941
- return E(e, "dropTargetClasses");
942
- }) : it([e], function(e) {
943
- return E(e, "dropTargetStyle");
944
- }, function(e) {
945
- return E(e, "dropTargetClasses");
946
- })), a.dropFromOthersDisabled = v, W.set(e, a), wt(e, d);
947
- for (var ce = z ? Ot(a.items) : -1, D = 0; D < e.children.length; D++) {
948
- var O = e.children[D];
949
- et(O, m), D === ce ? (g || Qe(M, O, R.x, R.y), a.transformDraggedElement(M, N, D), nt(O)) : (O.removeEventListener("mousedown", Ct.get(O)), O.removeEventListener("touchstart", Ct.get(O)), m || (O.addEventListener("mousedown", p), O.addEventListener("touchstart", p), Ct.set(O, p)), o.set(O, D), r ||= !0);
950
- }
951
- }
952
- return h(n), {
953
- update: function(e) {
954
- h(e);
955
- },
956
- destroy: function() {
957
- if (i) return;
958
- i = !0, u();
959
- var t = g(e.children), n;
960
- try {
961
- for (t.s(); !(n = t.n()).done;) {
962
- var r = n.value;
963
- r.removeEventListener("mousedown", Ct.get(r)), r.removeEventListener("touchstart", Ct.get(r));
964
- }
965
- } catch (e) {
966
- t.e(e);
967
- } finally {
968
- t.f();
969
- }
970
- function a() {
971
- var t = W.get(e);
972
- t && (Tt(e, t.type), W.delete(e));
973
- }
974
- z && !e.closest(`[${pt}]`) ? It(e, a) : a();
975
- }
976
- };
977
- }
978
- var zt, Bt = {
979
- DND_ZONE_ACTIVE: "dnd-zone-active",
980
- DND_ZONE_DRAG_DISABLED: "dnd-zone-drag-disabled"
981
- }, Vt = (zt = {}, r(zt, Bt.DND_ZONE_ACTIVE, "zoneActiveInstruction"), r(zt, Bt.DND_ZONE_DRAG_DISABLED, "zoneDragDisabledInstruction"), zt), Ht = {
982
- dragStarted: function(e) {
983
- var t = e.itemLabel, n = e.zoneLabel, r = e.canMoveBetweenZones;
984
- return `Started dragging item ${t}. Use the arrow keys to move it within its list ${n}` + (r ? ", or tab to another list in order to move the item into it" : "");
985
- },
986
- movedToPosition: function(e) {
987
- var t = e.itemLabel, n = e.zoneLabel;
988
- return `Moved item ${t} to position ${e.position} in the list ${n}`;
989
- },
990
- movedToZoneEnd: function(e) {
991
- return `Moved item ${e.itemLabel} to the end of the list ${e.zoneLabel}`;
992
- },
993
- movedToZoneStart: function(e) {
994
- return `Moved item ${e.itemLabel} to the beginning of the list ${e.zoneLabel}`;
995
- },
996
- dropped: function(e) {
997
- return `Stopped dragging item ${e.itemLabel}`;
998
- },
999
- zoneActiveInstruction: function(e) {
1000
- return `Tab to one the items and press ${se[e.keyboardDragTrigger]} to start dragging it`;
1001
- },
1002
- zoneDragDisabledInstruction: "This is a disabled drag and drop list"
1003
- }, Ut = t({}, Ht), Wt = { keyboardDragTrigger: oe }, Gt = "dnd-action-aria-alert", G;
1004
- function Kt() {
1005
- G || (G = document.createElement("div"), (function() {
1006
- G.id = Gt, G.style.position = "fixed", G.style.bottom = "0", G.style.left = "0", G.style.zIndex = "-5", G.style.opacity = "0", G.style.height = "0", G.style.width = "0", G.setAttribute("role", "alert");
1007
- })(), document.body.prepend(G), Object.entries(Vt).forEach(function(e) {
1008
- var t = o(e, 2), n = t[0], r = t[1];
1009
- return document.body.prepend(Yt(n, $t(r, Wt)));
1010
- }));
1011
- }
1012
- function qt() {
1013
- return pe ? null : (document.readyState === "complete" ? Kt() : window.addEventListener("DOMContentLoaded", Kt), t({}, Bt));
1014
- }
1015
- function Jt() {
1016
- !pe && G && (Object.keys(Vt).forEach(function(e) {
1017
- return document.getElementById(e)?.remove();
1018
- }), G.remove(), G = void 0);
1019
- }
1020
- function Yt(e, t) {
1021
- var n = document.createElement("div");
1022
- return n.id = e, Xt(n, t), n.style.display = "none", n.style.position = "fixed", n.style.zIndex = "-5", n;
1023
- }
1024
- function Xt(e, t) {
1025
- e.replaceChildren();
1026
- var n = document.createElement("p");
1027
- n.textContent = t, e.appendChild(n);
1028
- }
1029
- function Zt(e) {
1030
- if (!pe) {
1031
- G || Kt(), G.innerHTML = "";
1032
- var t = document.createTextNode(e);
1033
- G.appendChild(t), G.style.display = "none", G.style.display = "inline";
1034
- }
1035
- }
1036
- function Qt(e, t, n) {
1037
- var r = e[t];
1038
- return typeof r == "function" ? r(n) : r;
1039
- }
1040
- function $t(e, t) {
1041
- try {
1042
- return Qt(Ut, e, t);
1043
- } catch {
1044
- try {
1045
- return Qt(Ht, e, t);
1046
- } catch {
1047
- return "";
1048
- }
1049
- }
1050
- }
1051
- function en(e, t) {
1052
- Zt($t(e, t));
1053
- }
1054
- var tn = oe;
1055
- function nn(e) {
1056
- return ae[tn].includes(e);
1057
- }
1058
- var rn = "--any--", an = { outline: "rgba(255, 255, 102, 0.7) solid 2px" }, K = !1, on, q, J = "", Y, X, Z = "", sn = /* @__PURE__ */ new WeakSet(), cn = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map(), dn;
1059
- function fn(e, t) {
1060
- $.size === 0 && (dn = qt(), window.addEventListener("keydown", mn), window.addEventListener("click", hn)), $.has(t) || $.set(t, /* @__PURE__ */ new Set()), $.get(t).has(e) || ($.get(t).add(e), de());
1061
- }
1062
- function pn(e, t) {
1063
- K && q === e && xn();
1064
- var n = $.get(t);
1065
- n && n.delete(e) && (fe(), n.size === 0 && $.delete(t), $.size === 0 && (window.removeEventListener("keydown", mn), window.removeEventListener("click", hn), dn = void 0, Jt()));
1066
- }
1067
- function mn(e) {
1068
- K && e.key === "Escape" && xn();
1069
- }
1070
- function hn() {
1071
- K && (sn.has(document.activeElement) || xn());
1072
- }
1073
- function gn(e, t) {
1074
- return e === q || Y.contains(e) || t.dropFromOthersDisabled || t.type !== on ? -1 : 0;
1075
- }
1076
- function _n() {
1077
- Q.forEach(function(e, t) {
1078
- t.tabIndex = gn(t, e);
1079
- });
1080
- }
1081
- function vn() {
1082
- var e = Q.get(q);
1083
- return e != null && e.items.some(function(e) {
1084
- return e[k] === X;
1085
- }) ? !0 : (xn(), !1);
1086
- }
1087
- function yn(e) {
1088
- if (K) {
1089
- var t = e.currentTarget;
1090
- if (t !== q && vn()) {
1091
- J = t.getAttribute("aria-label") || "";
1092
- var n = Q.get(q).items, r = n.find(function(e) {
1093
- return e[k] === X;
1094
- }), i = n.indexOf(r), a = n.splice(i, 1)[0], o = Q.get(t), s = o.items, c = o.autoAriaDisabled;
1095
- t.getBoundingClientRect().top < q.getBoundingClientRect().top || t.getBoundingClientRect().left < q.getBoundingClientRect().left ? (s.push(a), c || en("movedToZoneEnd", {
1096
- itemLabel: Z,
1097
- zoneLabel: J,
1098
- position: s.length,
1099
- count: s.length
1100
- })) : (s.unshift(a), c || en("movedToZoneStart", {
1101
- itemLabel: Z,
1102
- zoneLabel: J,
1103
- position: 1,
1104
- count: s.length
1105
- }));
1106
- var l = q, u = X;
1107
- q = t, _(l, n, {
1108
- trigger: w.DROPPED_INTO_ANOTHER,
1109
- id: u,
1110
- source: T.KEYBOARD
1111
- }), Q.has(t) && _(t, s, {
1112
- trigger: w.DROPPED_INTO_ZONE,
1113
- id: u,
1114
- source: T.KEYBOARD
1115
- });
1116
- }
1117
- }
1118
- }
1119
- function bn() {
1120
- un.forEach(function(e, t) {
1121
- var n = e.update;
1122
- return n(Q.get(t));
1123
- });
1124
- }
1125
- function xn() {
1126
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
1127
- if (K && q) {
1128
- var t = q, n = Q.get(t), r = X, i = on;
1129
- if (n) {
1130
- if (!n.autoAriaDisabled) {
1131
- var a = n.items, o = a.findIndex(function(e) {
1132
- return e[k] === r;
1133
- });
1134
- en("dropped", {
1135
- itemLabel: Z,
1136
- zoneLabel: J,
1137
- position: (o < 0 ? 0 : o) + 1,
1138
- count: a.length
1139
- });
1140
- }
1141
- sn.has(document.activeElement) && document.activeElement.blur(), Y = null, X = null, Z = "", on = null, q = null, J = "", K = !1, e && v(t, n.items, {
1142
- trigger: w.DRAG_STOPPED,
1143
- id: r,
1144
- source: T.KEYBOARD
1145
- });
1146
- var s = $.get(i);
1147
- s && at(s, function(e) {
1148
- return Q.get(e).dropTargetStyle;
1149
- }, function(e) {
1150
- return Q.get(e).dropTargetClasses;
1151
- }), bn();
1152
- }
1153
- }
1154
- }
1155
- function Sn(e, t) {
1156
- var n = !1, r = {
1157
- items: void 0,
1158
- type: void 0,
1159
- dragDisabled: !1,
1160
- zoneTabIndex: 0,
1161
- zoneItemTabIndex: 0,
1162
- dropFromOthersDisabled: !1,
1163
- dropTargetStyle: an,
1164
- dropTargetClasses: [],
1165
- autoAriaDisabled: !1
1166
- };
1167
- function i(e, t, n) {
1168
- e.length <= 1 || e.splice(n, 1, e.splice(t, 1, e[n])[0]);
1169
- }
1170
- function a(t) {
1171
- switch (t.key) {
1172
- case "Enter":
1173
- case " ":
1174
- if (!nn(t.key) || (t.target.disabled !== void 0 || t.target.href || t.target.isContentEditable) && !sn.has(t.target)) return;
1175
- t.preventDefault(), t.stopPropagation(), K ? xn() : o(t);
1176
- break;
1177
- case "ArrowDown":
1178
- case "ArrowRight":
1179
- if (!K) return;
1180
- t.preventDefault(), t.stopPropagation();
1181
- var n = Q.get(e).items, a = Array.from(e.children), s = a.indexOf(t.currentTarget);
1182
- s < a.length - 1 && (r.autoAriaDisabled || en("movedToPosition", {
1183
- itemLabel: Z,
1184
- zoneLabel: J,
1185
- position: s + 2,
1186
- count: n.length
1187
- }), i(n, s, s + 1), _(e, n, {
1188
- trigger: w.DROPPED_INTO_ZONE,
1189
- id: X,
1190
- source: T.KEYBOARD
1191
- }));
1192
- break;
1193
- case "ArrowUp":
1194
- case "ArrowLeft":
1195
- if (!K) return;
1196
- t.preventDefault(), t.stopPropagation();
1197
- var c = Q.get(e).items, l = Array.from(e.children).indexOf(t.currentTarget);
1198
- l > 0 && (r.autoAriaDisabled || en("movedToPosition", {
1199
- itemLabel: Z,
1200
- zoneLabel: J,
1201
- position: l,
1202
- count: c.length
1203
- }), i(c, l, l - 1), _(e, c, {
1204
- trigger: w.DROPPED_INTO_ZONE,
1205
- id: X,
1206
- source: T.KEYBOARD
1207
- }));
1208
- }
1209
- }
1210
- function o(t) {
1211
- l(t.currentTarget), q = e, J = e.getAttribute("aria-label") || "", on = r.type, K = !0;
1212
- var n = Array.from($.get(r.type)).filter(function(e) {
1213
- return e === q || !Q.get(e).dropFromOthersDisabled;
1214
- });
1215
- if (it(n, function(e) {
1216
- return Q.get(e).dropTargetStyle;
1217
- }, function(e) {
1218
- return Q.get(e).dropTargetClasses;
1219
- }), !r.autoAriaDisabled) {
1220
- var i = Q.get(e).items, a = i.findIndex(function(e) {
1221
- return e[k] === X;
1222
- });
1223
- en("dragStarted", {
1224
- itemLabel: Z,
1225
- zoneLabel: J,
1226
- position: (a < 0 ? 0 : a) + 1,
1227
- count: i.length,
1228
- canMoveBetweenZones: n.length > 1
1229
- });
1230
- }
1231
- v(e, Q.get(e).items, {
1232
- trigger: w.DRAG_STARTED,
1233
- id: X,
1234
- source: T.KEYBOARD
1235
- }), bn();
1236
- }
1237
- function c(e) {
1238
- K && e.currentTarget !== Y && (e.stopPropagation(), xn(!1), o(e));
1239
- }
1240
- function l(t) {
1241
- var n = Q.get(e).items, i = Array.from(e.children), a = i.indexOf(t);
1242
- Y = t, Y.tabIndex = r.zoneItemTabIndex, X = n[a][k], Z = i[a].getAttribute("aria-label") || "";
1243
- }
1244
- function u(t) {
1245
- var n = t.items, i = n === void 0 ? [] : n, o = t.type, l = o === void 0 ? rn : o, u = t.dragDisabled, d = u !== void 0 && u, f = t.zoneTabIndex, p = f === void 0 ? 0 : f, m = t.zoneItemTabIndex, h = m === void 0 ? 0 : m, g = t.dropFromOthersDisabled, _ = g !== void 0 && g, v = t.dropTargetStyle, y = v === void 0 ? an : v, b = t.dropTargetClasses, x = b === void 0 ? [] : b, S = t.autoAriaDisabled, C = S !== void 0 && S;
1246
- r.items = s(i), r.dragDisabled = d, r.dropFromOthersDisabled = _, r.zoneTabIndex = p, r.zoneItemTabIndex = h, r.dropTargetStyle = y, r.dropTargetClasses = x, r.autoAriaDisabled = C, r.type && l !== r.type && pn(e, r.type), r.type = l, fn(e, l), C || (e.setAttribute("role", "list"), e.setAttribute("aria-describedby", d ? dn.DND_ZONE_DRAG_DISABLED : dn.DND_ZONE_ACTIVE)), Q.set(e, r);
1247
- var ee = !1;
1248
- K ? (ee = r.type === on && r.items.some(function(e) {
1249
- return e[k] === X;
1250
- }) && e !== q, ee && (q = e, J = e.getAttribute("aria-label") || ""), e.tabIndex = gn(e, r)) : e.tabIndex = r.zoneTabIndex, e.addEventListener("focus", yn);
1251
- for (var te = function(t) {
1252
- var n = e.children[t];
1253
- sn.add(n), n.tabIndex = K ? -1 : r.zoneItemTabIndex, C || n.setAttribute("role", "listitem"), n.removeEventListener("keydown", cn.get(n)), n.removeEventListener("click", ln.get(n)), d || (n.addEventListener("keydown", a), cn.set(n, a), n.addEventListener("click", c), ln.set(n, c)), K && r.type === on && r.items[t]?.[k] === X && (Y = n, Y.tabIndex = r.zoneItemTabIndex, n.focus());
1254
- }, ne = 0; ne < e.children.length; ne++) te(ne);
1255
- ee && _n();
1256
- }
1257
- u(t);
1258
- var d = {
1259
- update: function(e) {
1260
- u(e);
1261
- },
1262
- destroy: function() {
1263
- if (!n) {
1264
- n = !0, e.removeEventListener("focus", yn);
1265
- var t = g(e.children), i;
1266
- try {
1267
- for (t.s(); !(i = t.n()).done;) {
1268
- var a = i.value;
1269
- a.removeEventListener("keydown", cn.get(a)), a.removeEventListener("click", ln.get(a));
1270
- }
1271
- } catch (e) {
1272
- t.e(e);
1273
- } finally {
1274
- t.f();
1275
- }
1276
- pn(e, r.type), Q.delete(e), un.delete(e);
1277
- }
1278
- }
1279
- };
1280
- return un.set(e, d), d;
1281
- }
1282
- var Cn = [
1283
- "items",
1284
- "flipDurationMs",
1285
- "type",
1286
- "dragDisabled",
1287
- "morphDisabled",
1288
- "dropFromOthersDisabled",
1289
- "zoneTabIndex",
1290
- "zoneItemTabIndex",
1291
- "dropTargetStyle",
1292
- "dropTargetClasses",
1293
- "transformDraggedElement",
1294
- "autoAriaDisabled",
1295
- "centreDraggedOnCursor",
1296
- "useCursorForDetection",
1297
- "delayTouchStart",
1298
- "dropAnimationDisabled"
1299
- ];
1300
- function wn(e, t) {
1301
- if (Tn(e)) return {
1302
- update: function() {},
1303
- destroy: function() {}
1304
- };
1305
- En(t);
1306
- var n = Rt(e, t), r = Sn(e, t);
1307
- return {
1308
- update: function(e) {
1309
- En(e), n.update(e), r.update(e);
1310
- },
1311
- destroy: function() {
1312
- n.destroy(), r.destroy();
1313
- }
1314
- };
1315
- }
1316
- function Tn(e) {
1317
- return !!e.closest(`[${D}="true"]`);
1318
- }
1319
- function En(e) {
1320
- var t = e.items;
1321
- e.flipDurationMs, e.type, e.dragDisabled, e.morphDisabled, e.dropFromOthersDisabled;
1322
- var r = e.zoneTabIndex, i = e.zoneItemTabIndex;
1323
- e.dropTargetStyle;
1324
- var o = e.dropTargetClasses;
1325
- e.transformDraggedElement, e.autoAriaDisabled, e.centreDraggedOnCursor, e.useCursorForDetection;
1326
- var s = e.delayTouchStart;
1327
- e.dropAnimationDisabled;
1328
- var c = a(e, Cn);
1329
- if (Object.keys(c).length > 0 && console.warn("dndzone will ignore unknown options", c), !t) throw Error("no 'items' key provided to dndzone");
1330
- var l = t.find(function(e) {
1331
- return !{}.hasOwnProperty.call(e, k);
1332
- });
1333
- if (l) throw Error(`missing '${k}' property for item ${Oe(l)}`);
1334
- if (o && !Array.isArray(o)) throw Error(`dropTargetClasses should be an array but instead it is a ${n(o)}, ${Oe(o)}`);
1335
- if (r && !Dn(r)) throw Error(`zoneTabIndex should be a number but instead it is a ${n(r)}, ${Oe(r)}`);
1336
- if (i && !Dn(i)) throw Error(`zoneItemTabIndex should be a number but instead it is a ${n(i)}, ${Oe(i)}`);
1337
- if (s !== void 0 && s !== !1 && s !== !0 && !(typeof s == "number" && isFinite(s) && s >= 0)) throw Error(`delayTouchStart should be a boolean (true/false) or a non-negative number but instead it is a ${n(s)}, ${Oe(s)}`);
1338
- }
1339
- function Dn(e) {
1340
- return !isNaN(e) && function(e) {
1341
- return (e | 0) === e;
1342
- }(parseFloat(e));
1343
- }
1344
- // src/lib/utils/dndzone.ts
1345
- var On = 320;
1346
- function kn(e, t) {
1347
- let n = {
1348
- delayTouchStart: On,
1349
- ...t
1350
- }, r = !!n.delayTouchStart, i = (e) => {
1351
- r && !e.isTrusted && !(e instanceof MouseEvent) && (e.preventDefault(), e.stopImmediatePropagation());
1352
- };
1353
- e.addEventListener("click", i, !0);
1354
- let a = null, o = null, s = !1, c = !1, l = () => {
1355
- c || (c = !0, (typeof queueMicrotask == "function" ? queueMicrotask : (e) => Promise.resolve().then(e))(u));
1356
- }, u = () => {
1357
- s || (a = wn(e, n), o &&= (a.update(o), null));
1358
- };
1359
- return l(), {
1360
- update(e) {
1361
- let t = {
1362
- delayTouchStart: On,
1363
- ...e
1364
- };
1365
- r = !!t.delayTouchStart, a ? a.update(t) : (o = t, l());
1366
- },
1367
- destroy() {
1368
- e.removeEventListener("click", i, !0), a ? (a.destroy(), a = null) : s = !0;
1369
- }
1370
- };
1371
- }
1372
- export { w as a, T as i, le as n, E as r, kn as t };