@hiai-gg/docsmint 2.2.3 → 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 +60080 -40793
  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,3493 @@
1
+ import { n as e } from "./bundle-mjs-654jE5XN.js";
2
+ import "svelte/internal/init-operations";
3
+ import "svelte/internal/disclose-version";
4
+ import * as t from "svelte/internal/client";
5
+ import { getContext as n, hasContext as r, onMount as i, setContext as a, tick as o, untrack as s } from "svelte";
6
+ import { on as c } from "svelte/events";
7
+ import { SvelteMap as l, createSubscriber as u } from "svelte/reactivity";
8
+ import { createAttachmentKey as d } from "svelte/attachments";
9
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/is.js
10
+ function f(e) {
11
+ return typeof e == "function";
12
+ }
13
+ function p(e) {
14
+ return typeof e == "object" && !!e;
15
+ }
16
+ var m = [
17
+ "string",
18
+ "number",
19
+ "bigint",
20
+ "boolean"
21
+ ];
22
+ function h(e) {
23
+ return e == null || m.includes(typeof e) ? !0 : Array.isArray(e) ? e.every((e) => h(e)) : typeof e == "object" && Object.getPrototypeOf(e) === Object.prototype;
24
+ }
25
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/box/box-extras.svelte.js
26
+ var g = Symbol("box"), _ = Symbol("is-writable");
27
+ function v(e, n) {
28
+ let r = t.derived(e);
29
+ return n ? {
30
+ [g]: !0,
31
+ [_]: !0,
32
+ get current() {
33
+ return t.get(r);
34
+ },
35
+ set current(e) {
36
+ n(e);
37
+ }
38
+ } : {
39
+ [g]: !0,
40
+ get current() {
41
+ return e();
42
+ }
43
+ };
44
+ }
45
+ function y(e) {
46
+ return p(e) && g in e;
47
+ }
48
+ function b(e) {
49
+ return y(e) && _ in e;
50
+ }
51
+ function x(e) {
52
+ return y(e) ? e : f(e) ? v(e) : w(e);
53
+ }
54
+ function S(e) {
55
+ return Object.entries(e).reduce((e, [t, n]) => y(n) ? (b(n) ? Object.defineProperty(e, t, {
56
+ get() {
57
+ return n.current;
58
+ },
59
+ set(e) {
60
+ n.current = e;
61
+ }
62
+ }) : Object.defineProperty(e, t, { get() {
63
+ return n.current;
64
+ } }), e) : Object.assign(e, { [t]: n }), {});
65
+ }
66
+ function C(e) {
67
+ return b(e) ? {
68
+ [g]: !0,
69
+ get current() {
70
+ return e.current;
71
+ }
72
+ } : e;
73
+ }
74
+ function w(e) {
75
+ let n = t.state(t.proxy(e));
76
+ return {
77
+ [g]: !0,
78
+ [_]: !0,
79
+ get current() {
80
+ return t.get(n);
81
+ },
82
+ set current(e) {
83
+ t.set(n, e, !0);
84
+ }
85
+ };
86
+ }
87
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/compose-handlers.js
88
+ function T(...e) {
89
+ return function(t) {
90
+ for (let n of e) if (n) {
91
+ if (t.defaultPrevented) return;
92
+ typeof n == "function" ? n.call(this, t) : n.current?.call(this, t);
93
+ }
94
+ };
95
+ }
96
+ // ../node_modules/.bun/inline-style-parser@0.2.7/node_modules/inline-style-parser/esm/index.mjs
97
+ var E = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, ee = /\n/g, D = /^\s*/, O = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, te = /^:\s*/, ne = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, re = /^[;\s]*/, ie = /^\s+|\s+$/g, ae = "\n", oe = "/", se = "*", k = "", ce = "comment", le = "declaration";
98
+ function ue(e, t) {
99
+ if (typeof e != "string") throw TypeError("First argument must be a string");
100
+ if (!e) return [];
101
+ t ||= {};
102
+ var n = 1, r = 1;
103
+ function i(e) {
104
+ var t = e.match(ee);
105
+ t && (n += t.length);
106
+ var i = e.lastIndexOf(ae);
107
+ r = ~i ? e.length - i : r + e.length;
108
+ }
109
+ function a() {
110
+ var e = {
111
+ line: n,
112
+ column: r
113
+ };
114
+ return function(t) {
115
+ return t.position = new o(e), l(), t;
116
+ };
117
+ }
118
+ function o(e) {
119
+ this.start = e, this.end = {
120
+ line: n,
121
+ column: r
122
+ }, this.source = t.source;
123
+ }
124
+ o.prototype.content = e;
125
+ function s(i) {
126
+ var a = /* @__PURE__ */ Error(t.source + ":" + n + ":" + r + ": " + i);
127
+ if (a.reason = i, a.filename = t.source, a.line = n, a.column = r, a.source = e, !t.silent) throw a;
128
+ }
129
+ function c(t) {
130
+ var n = t.exec(e);
131
+ if (n) {
132
+ var r = n[0];
133
+ return i(r), e = e.slice(r.length), n;
134
+ }
135
+ }
136
+ function l() {
137
+ c(D);
138
+ }
139
+ function u(e) {
140
+ var t;
141
+ for (e ||= []; t = d();) t !== !1 && e.push(t);
142
+ return e;
143
+ }
144
+ function d() {
145
+ var t = a();
146
+ if (oe == e.charAt(0) && se == e.charAt(1)) {
147
+ for (var n = 2; k != e.charAt(n) && (se != e.charAt(n) || oe != e.charAt(n + 1));) ++n;
148
+ if (n += 2, k === e.charAt(n - 1)) return s("End of comment missing");
149
+ var o = e.slice(2, n - 2);
150
+ return r += 2, i(o), e = e.slice(n), r += 2, t({
151
+ type: ce,
152
+ comment: o
153
+ });
154
+ }
155
+ }
156
+ function f() {
157
+ var e = a(), t = c(O);
158
+ if (t) {
159
+ if (d(), !c(te)) return s("property missing ':'");
160
+ var n = c(ne), r = e({
161
+ type: le,
162
+ property: de(t[0].replace(E, k)),
163
+ value: n ? de(n[0].replace(E, k)) : k
164
+ });
165
+ return c(re), r;
166
+ }
167
+ }
168
+ function p() {
169
+ var e = [];
170
+ u(e);
171
+ for (var t; t = f();) t !== !1 && (e.push(t), u(e));
172
+ return e;
173
+ }
174
+ return l(), p();
175
+ }
176
+ function de(e) {
177
+ return e ? e.replace(ie, k) : k;
178
+ }
179
+ // ../node_modules/.bun/style-to-object@1.0.14/node_modules/style-to-object/esm/index.mjs
180
+ function fe(e, t) {
181
+ let n = null;
182
+ if (!e || typeof e != "string") return n;
183
+ let r = ue(e), i = typeof t == "function";
184
+ return r.forEach((e) => {
185
+ if (e.type !== "declaration") return;
186
+ let { property: r, value: a } = e;
187
+ i ? t(r, a, e) : a && (n ||= {}, n[r] = a);
188
+ }), n;
189
+ }
190
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/strings.js
191
+ var pe = /\d/, me = [
192
+ "-",
193
+ "_",
194
+ "/",
195
+ "."
196
+ ];
197
+ function he(e = "") {
198
+ if (!pe.test(e)) return e !== e.toLowerCase();
199
+ }
200
+ function ge(e) {
201
+ let t = [], n = "", r, i;
202
+ for (let a of e) {
203
+ let e = me.includes(a);
204
+ if (e === !0) {
205
+ t.push(n), n = "", r = void 0;
206
+ continue;
207
+ }
208
+ let o = he(a);
209
+ if (i === !1) {
210
+ if (r === !1 && o === !0) {
211
+ t.push(n), n = a, r = o;
212
+ continue;
213
+ }
214
+ if (r === !0 && o === !1 && n.length > 1) {
215
+ let e = n.at(-1);
216
+ t.push(n.slice(0, Math.max(0, n.length - 1))), n = e + a, r = o;
217
+ continue;
218
+ }
219
+ }
220
+ n += a, r = o, i = e;
221
+ }
222
+ return t.push(n), t;
223
+ }
224
+ function _e(e) {
225
+ return e ? ge(e).map((e) => ye(e)).join("") : "";
226
+ }
227
+ function ve(e) {
228
+ return be(_e(e || ""));
229
+ }
230
+ function ye(e) {
231
+ return e ? e[0].toUpperCase() + e.slice(1) : "";
232
+ }
233
+ function be(e) {
234
+ return e ? e[0].toLowerCase() + e.slice(1) : "";
235
+ }
236
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/css-to-style-obj.js
237
+ var xe = 1e3, Se = /* @__PURE__ */ new Map();
238
+ function Ce(e) {
239
+ let t = Se.get(e);
240
+ return t === void 0 && (t = e.startsWith("-moz-") || e.startsWith("-webkit-") || e.startsWith("-ms-") || e.startsWith("-o-") ? _e(e) : e.startsWith("--") ? e : ve(e), Se.size >= xe && Se.clear(), Se.set(e, t)), t;
241
+ }
242
+ var we = /["'\\{}]|\/\*/, Te = /^[-\w]+$/;
243
+ function Ee(e) {
244
+ if (we.test(e)) return null;
245
+ let t = [], n = 0, r = 0, i = -1;
246
+ for (let a = 0; a <= e.length; a++) {
247
+ let o = a < e.length ? e.charCodeAt(a) : 59;
248
+ if (o === 40) n++;
249
+ else if (o === 41) {
250
+ if (--n < 0) return null;
251
+ } else if (o === 58) i < 0 && (i = a);
252
+ else if (o === 59) {
253
+ if (n !== 0) return null;
254
+ let o = e.slice(r, a);
255
+ if (i < 0) {
256
+ if (o.trim() || t.length === 0) return null;
257
+ } else {
258
+ let n = e.slice(r, i).trim(), o = e.slice(i + 1, a).trim();
259
+ if (!Te.test(n) || !o) return null;
260
+ t.push(n, o);
261
+ }
262
+ r = a + 1, i = -1;
263
+ }
264
+ }
265
+ return t;
266
+ }
267
+ function De(e, t) {
268
+ let n = Ee(t);
269
+ if (n) for (let t = 0; t < n.length; t += 2) e[Ce(n[t])] = n[t + 1];
270
+ else fe(t, (t, n) => {
271
+ e[Ce(t)] = n;
272
+ });
273
+ }
274
+ function Oe(e) {
275
+ if (!e) return {};
276
+ let t = {};
277
+ return De(t, e), t;
278
+ }
279
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/execute-callbacks.js
280
+ function ke(...e) {
281
+ return (...t) => {
282
+ for (let n of e) typeof n == "function" && n(...t);
283
+ };
284
+ }
285
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/style-to-css.js
286
+ function Ae(e, t) {
287
+ let n = RegExp(e, "g");
288
+ return (e) => {
289
+ if (typeof e != "string") throw TypeError(`expected an argument of type string, but got ${typeof e}`);
290
+ return e.match(n) ? e.replace(n, t) : e;
291
+ };
292
+ }
293
+ var je = Ae(/[A-Z]/, (e) => `-${e.toLowerCase()}`), Me = /* @__PURE__ */ new Map();
294
+ function Ne(e) {
295
+ let t = Me.get(e);
296
+ return t === void 0 && (t = je(e), Me.size >= 1e3 && Me.clear(), Me.set(e, t)), t;
297
+ }
298
+ function Pe(e) {
299
+ if (!e || typeof e != "object" || Array.isArray(e)) throw TypeError(`expected an argument of type object, but got ${typeof e}`);
300
+ let t = "";
301
+ for (let n of Object.keys(e)) {
302
+ let r = e[n];
303
+ r != null && r !== "" && (t += `${t ? "\n" : ""}${Ne(n)}: ${r};`);
304
+ }
305
+ return t;
306
+ }
307
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/style.js
308
+ function Fe(e = {}) {
309
+ return Pe(e).replace("\n", " ");
310
+ }
311
+ var Ie = new Set(/* @__PURE__ */ "onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel".split("."));
312
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/merge-props.js
313
+ function Le(e) {
314
+ return Ie.has(e);
315
+ }
316
+ function Re(...t) {
317
+ let n = { ...t[0] };
318
+ for (let r = 1; r < t.length; r++) {
319
+ let i = t[r];
320
+ if (i) {
321
+ for (let t of Object.keys(i)) {
322
+ let r = n[t], a = i[t], o = typeof r == "function", s = typeof a == "function";
323
+ if (o && s && Le(t)) n[t] = T(r, a);
324
+ else if (o && s) n[t] = ke(r, a);
325
+ else if (t === "class") {
326
+ let i = h(r), o = h(a);
327
+ i && o ? n[t] = e(r, a) : i ? n[t] = e(r) : o && (n[t] = e(a));
328
+ } else if (t === "style") {
329
+ let e = typeof r == "object", i = typeof a == "object", o = typeof r == "string", s = typeof a == "string";
330
+ if (e && i) n[t] = {
331
+ ...r,
332
+ ...a
333
+ };
334
+ else if (e && s) {
335
+ let e = Oe(a);
336
+ n[t] = {
337
+ ...r,
338
+ ...e
339
+ };
340
+ } else if (o && i) n[t] = {
341
+ ...Oe(r),
342
+ ...a
343
+ };
344
+ else if (o && s) {
345
+ let e = Oe(r), i = Oe(a);
346
+ n[t] = {
347
+ ...e,
348
+ ...i
349
+ };
350
+ } else e ? n[t] = r : i ? n[t] = a : o ? n[t] = r : s && (n[t] = a);
351
+ } else n[t] = a === void 0 ? r : a;
352
+ }
353
+ for (let e of Object.getOwnPropertySymbols(i)) {
354
+ let t = n[e], r = i[e];
355
+ n[e] = r === void 0 ? t : r;
356
+ }
357
+ }
358
+ }
359
+ return typeof n.style == "object" && (n.style = Fe(n.style).replaceAll("\n", " ")), n.hidden === !1 && (n.hidden = void 0, delete n.hidden), n.disabled === !1 && (n.disabled = void 0, delete n.disabled), n;
360
+ }
361
+ // ../node_modules/.bun/runed@0.35.1+294fabd43ca01d33/node_modules/runed/dist/internal/configurable-globals.js
362
+ var ze = typeof window < "u" ? window : void 0;
363
+ typeof window < "u" && window.document, typeof window < "u" && window.navigator, typeof window < "u" && window.location;
364
+ // ../node_modules/.bun/runed@0.35.1+294fabd43ca01d33/node_modules/runed/dist/internal/utils/dom.js
365
+ function Be(e) {
366
+ let t = e.activeElement;
367
+ for (; t?.shadowRoot;) {
368
+ let e = t.shadowRoot.activeElement;
369
+ if (e === t) break;
370
+ t = e;
371
+ }
372
+ return t;
373
+ }
374
+ new class {
375
+ #e;
376
+ #t;
377
+ constructor(e = {}) {
378
+ let { window: t = ze, document: n = t?.document } = e;
379
+ t !== void 0 && (this.#e = n, this.#t = u((e) => {
380
+ let n = c(t, "focusin", e), r = c(t, "focusout", e);
381
+ return () => {
382
+ n(), r();
383
+ };
384
+ }));
385
+ }
386
+ get current() {
387
+ return this.#t?.(), this.#e ? Be(this.#e) : null;
388
+ }
389
+ }();
390
+ // ../node_modules/.bun/runed@0.35.1+294fabd43ca01d33/node_modules/runed/dist/internal/utils/is.js
391
+ function Ve(e) {
392
+ return typeof e == "function";
393
+ }
394
+ // ../node_modules/.bun/runed@0.35.1+294fabd43ca01d33/node_modules/runed/dist/utilities/context/context.js
395
+ var He = class {
396
+ #e;
397
+ #t;
398
+ constructor(e) {
399
+ this.#e = e, this.#t = Symbol(e);
400
+ }
401
+ get key() {
402
+ return this.#t;
403
+ }
404
+ exists() {
405
+ return r(this.#t);
406
+ }
407
+ get() {
408
+ let e = n(this.#t);
409
+ if (e === void 0) throw Error(`Context "${this.#e}" not found`);
410
+ return e;
411
+ }
412
+ getOr(e) {
413
+ let t = n(this.#t);
414
+ return t === void 0 ? e : t;
415
+ }
416
+ set(e) {
417
+ return a(this.#t, e);
418
+ }
419
+ };
420
+ // ../node_modules/.bun/runed@0.35.1+294fabd43ca01d33/node_modules/runed/dist/utilities/watch/watch.svelte.js
421
+ function Ue(e, n) {
422
+ switch (e) {
423
+ case "post":
424
+ t.user_effect(n);
425
+ break;
426
+ case "pre": t.user_pre_effect(n);
427
+ }
428
+ }
429
+ function We(e, t, n, r = {}) {
430
+ let { lazy: i = !1 } = r, a = !i, o = Array.isArray(e) ? [] : void 0;
431
+ Ue(t, () => {
432
+ let t = Array.isArray(e) ? e.map((e) => e()) : e();
433
+ if (!a) {
434
+ a = !0, o = t;
435
+ return;
436
+ }
437
+ let r = s(() => n(t, o));
438
+ return o = t, r;
439
+ });
440
+ }
441
+ function A(e, t, n) {
442
+ We(e, "post", t, n);
443
+ }
444
+ A.pre = function(e, t, n) {
445
+ We(e, "pre", t, n);
446
+ };
447
+ // ../node_modules/.bun/runed@0.35.1+294fabd43ca01d33/node_modules/runed/dist/internal/utils/get.js
448
+ function Ge(e) {
449
+ return Ve(e) ? e() : e;
450
+ }
451
+ // ../node_modules/.bun/runed@0.35.1+294fabd43ca01d33/node_modules/runed/dist/utilities/element-size/element-size.svelte.js
452
+ var Ke = class {
453
+ #e = {
454
+ width: 0,
455
+ height: 0
456
+ };
457
+ #t = !1;
458
+ #n;
459
+ #r;
460
+ #i;
461
+ #a = t.derived(() => (t.get(this.#s)?.(), this.getSize().width));
462
+ #o = t.derived(() => (t.get(this.#s)?.(), this.getSize().height));
463
+ #s = t.derived(() => {
464
+ let e = Ge(this.#r);
465
+ if (e) return u((t) => {
466
+ if (!this.#i) return;
467
+ let n = new this.#i.ResizeObserver((e) => {
468
+ this.#t = !0;
469
+ for (let t of e) {
470
+ let e = this.#n.box === "content-box" ? t.contentBoxSize : t.borderBoxSize, n = Array.isArray(e) ? e : [e];
471
+ this.#e.width = n.reduce((e, t) => Math.max(e, t.inlineSize), 0), this.#e.height = n.reduce((e, t) => Math.max(e, t.blockSize), 0);
472
+ }
473
+ t();
474
+ });
475
+ return n.observe(e), () => {
476
+ this.#t = !1, n.disconnect();
477
+ };
478
+ });
479
+ });
480
+ constructor(e, t = { box: "border-box" }) {
481
+ this.#i = t.window ?? ze, this.#n = t, this.#r = e, this.#e = {
482
+ width: 0,
483
+ height: 0
484
+ };
485
+ }
486
+ calculateSize() {
487
+ let e = Ge(this.#r);
488
+ if (!e || !this.#i) return;
489
+ let t = e.offsetWidth, n = e.offsetHeight;
490
+ if (this.#n.box === "border-box") return {
491
+ width: t,
492
+ height: n
493
+ };
494
+ let r = this.#i.getComputedStyle(e), i = parseFloat(r.paddingLeft) + parseFloat(r.paddingRight), a = parseFloat(r.paddingTop) + parseFloat(r.paddingBottom), o = parseFloat(r.borderLeftWidth) + parseFloat(r.borderRightWidth), s = parseFloat(r.borderTopWidth) + parseFloat(r.borderBottomWidth);
495
+ return {
496
+ width: t - i - o,
497
+ height: n - a - s
498
+ };
499
+ }
500
+ getSize() {
501
+ return this.#t ? this.#e : this.calculateSize() ?? this.#e;
502
+ }
503
+ get current() {
504
+ return t.get(this.#s)?.(), this.getSize();
505
+ }
506
+ get width() {
507
+ return t.get(this.#a);
508
+ }
509
+ get height() {
510
+ return t.get(this.#o);
511
+ }
512
+ }, qe = class {
513
+ #e = () => void 0;
514
+ #t = t.derived(() => this.#e());
515
+ constructor(e, t) {
516
+ let n;
517
+ t !== void 0 && (n = t), this.#e = () => {
518
+ try {
519
+ return n;
520
+ } finally {
521
+ n = e();
522
+ }
523
+ };
524
+ }
525
+ get current() {
526
+ return t.get(this.#t);
527
+ }
528
+ };
529
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/on-destroy-effect.svelte.js
530
+ function j(e) {
531
+ t.user_effect(() => () => {
532
+ e();
533
+ });
534
+ }
535
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/after-tick.js
536
+ function Je(e) {
537
+ o().then(e);
538
+ }
539
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/dom.js
540
+ var Ye = 1, Xe = 9, Ze = 11;
541
+ function Qe(e) {
542
+ return p(e) && e.nodeType === Ye && typeof e.nodeName == "string";
543
+ }
544
+ function $e(e) {
545
+ return p(e) && e.nodeType === Xe;
546
+ }
547
+ function et(e) {
548
+ return p(e) && e.constructor?.name === "VisualViewport";
549
+ }
550
+ function tt(e) {
551
+ return p(e) && e.nodeType !== void 0;
552
+ }
553
+ function nt(e) {
554
+ return tt(e) && e.nodeType === Ze && "host" in e;
555
+ }
556
+ function rt(e, t) {
557
+ if (!e || !t || !Qe(e) || !Qe(t)) return !1;
558
+ let n = t.getRootNode?.();
559
+ if (e === t || e.contains(t)) return !0;
560
+ if (n && nt(n)) {
561
+ let n = t;
562
+ for (; n;) {
563
+ if (e === n) return !0;
564
+ n = n.parentNode || n.host;
565
+ }
566
+ }
567
+ return !1;
568
+ }
569
+ function it(e) {
570
+ return $e(e) ? e : et(e) ? e.document : e?.ownerDocument ?? document;
571
+ }
572
+ function at(e) {
573
+ return nt(e) ? at(e.host) : $e(e) ? e.defaultView ?? window : Qe(e) ? e.ownerDocument?.defaultView ?? window : window;
574
+ }
575
+ function ot(e) {
576
+ let t = e.activeElement;
577
+ for (; t?.shadowRoot;) {
578
+ let e = t.shadowRoot.activeElement;
579
+ if (e === t) break;
580
+ t = e;
581
+ }
582
+ return t;
583
+ }
584
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/dom-context.svelte.js
585
+ var st = class {
586
+ element;
587
+ #e = t.derived(() => this.element.current ? this.element.current.getRootNode() ?? document : document);
588
+ get root() {
589
+ return t.get(this.#e);
590
+ }
591
+ set root(e) {
592
+ t.set(this.#e, e);
593
+ }
594
+ constructor(e) {
595
+ this.element = typeof e == "function" ? v(e) : e;
596
+ }
597
+ getDocument = () => it(this.root);
598
+ getWindow = () => this.getDocument().defaultView ?? window;
599
+ getActiveElement = () => ot(this.root);
600
+ isActiveElement = (e) => e === this.getActiveElement();
601
+ getElementById(e) {
602
+ return this.root.getElementById(e);
603
+ }
604
+ querySelector = (e) => this.root ? this.root.querySelector(e) : null;
605
+ querySelectorAll = (e) => this.root ? this.root.querySelectorAll(e) : [];
606
+ setTimeout = (e, t) => this.getWindow().setTimeout(e, t);
607
+ clearTimeout = (e) => this.getWindow().clearTimeout(e);
608
+ };
609
+ // ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/attach-ref.js
610
+ function ct(e, t) {
611
+ return { [d()]: (n) => y(e) ? (e.current = n, s(() => t?.(n)), () => {
612
+ "isConnected" in n && n.isConnected || (e.current = null, t?.(null));
613
+ }) : (e(n), s(() => t?.(n)), () => {
614
+ "isConnected" in n && n.isConnected || (e(null), t?.(null));
615
+ }) };
616
+ }
617
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/attrs.js
618
+ function lt(e) {
619
+ return e ? "true" : "false";
620
+ }
621
+ function ut(e) {
622
+ return e ? "" : void 0;
623
+ }
624
+ function dt(e) {
625
+ return e ? !0 : void 0;
626
+ }
627
+ function ft(e) {
628
+ return e ? "open" : "closed";
629
+ }
630
+ function pt(e) {
631
+ return e === "starting" ? { "data-starting-style": "" } : e === "ending" ? { "data-ending-style": "" } : {};
632
+ }
633
+ var mt = class {
634
+ #e;
635
+ #t;
636
+ attrs;
637
+ constructor(e) {
638
+ this.#e = e.getVariant ? e.getVariant() : null, this.#t = this.#e ? `data-${this.#e}-` : `data-${e.component}-`, this.getAttr = this.getAttr.bind(this), this.selector = this.selector.bind(this), this.attrs = Object.fromEntries(e.parts.map((e) => [e, this.getAttr(e)]));
639
+ }
640
+ getAttr(e, t) {
641
+ return t ? `data-${t}-${e}` : `${this.#t}${e}`;
642
+ }
643
+ selector(e, t) {
644
+ return `[${this.getAttr(e, t)}]`;
645
+ }
646
+ };
647
+ function ht(e) {
648
+ let t = new mt(e);
649
+ return {
650
+ ...t.attrs,
651
+ selector: t.selector,
652
+ getAttr: t.getAttr
653
+ };
654
+ }
655
+ var gt = "ArrowDown", _t = "ArrowLeft", vt = "ArrowRight", yt = "ArrowUp", bt = "CapsLock", xt = "Control", St = "Enter", Ct = "Escape", wt = "Home", Tt = "Meta", Et = "PageDown", Dt = "PageUp", Ot = "Shift", kt = typeof document < "u", At = jt();
656
+ function jt() {
657
+ return kt && window?.navigator?.userAgent && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || window?.navigator?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
658
+ }
659
+ function Mt(e) {
660
+ return e instanceof HTMLElement;
661
+ }
662
+ function Nt(e) {
663
+ return e instanceof Element;
664
+ }
665
+ function Pt(e) {
666
+ return e instanceof Element || e instanceof SVGElement;
667
+ }
668
+ function Ft(e) {
669
+ return e?.matches(":disabled") ?? !1;
670
+ }
671
+ function It(e) {
672
+ return e !== null;
673
+ }
674
+ function Lt(e) {
675
+ return e instanceof HTMLInputElement && "select" in e;
676
+ }
677
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/animations-complete.js
678
+ var Rt = class {
679
+ #e;
680
+ #t = null;
681
+ #n = null;
682
+ #r = 0;
683
+ constructor(e) {
684
+ this.#e = e, j(() => this.#i());
685
+ }
686
+ #i() {
687
+ this.#t !== null && (window.cancelAnimationFrame(this.#t), this.#t = null), this.#n?.disconnect(), this.#n = null, this.#r++;
688
+ }
689
+ run(e) {
690
+ this.#i();
691
+ let t = this.#r, n = () => {
692
+ t === this.#r && this.#a(e);
693
+ }, r = () => {
694
+ if (t !== this.#r) return;
695
+ let i = this.#e.ref.current;
696
+ if (!i) return;
697
+ if (typeof i.getAnimations != "function") {
698
+ this.#a(e);
699
+ return;
700
+ }
701
+ let a = i.getAnimations();
702
+ a.length === 0 ? n() : Promise.all(a.map((e) => e.finished)).then(() => {
703
+ n();
704
+ }).catch(() => {
705
+ t === this.#r && (i.getAnimations().some((e) => e.pending || e.playState !== "finished") ? r() : n());
706
+ });
707
+ }, i = () => {
708
+ this.#t = window.requestAnimationFrame(() => {
709
+ this.#t = null, r();
710
+ });
711
+ };
712
+ this.#e.afterTick.current ? this.#t = window.requestAnimationFrame(() => {
713
+ this.#t = null;
714
+ let e = "data-starting-style", n = this.#e.ref.current;
715
+ n && (n.hasAttribute(e) ? (this.#n = new MutationObserver(() => {
716
+ t === this.#r && (n.hasAttribute(e) || (this.#n?.disconnect(), this.#n = null, i()));
717
+ }), this.#n.observe(n, {
718
+ attributes: !0,
719
+ attributeFilter: [e]
720
+ })) : i());
721
+ }) : i();
722
+ }
723
+ #a(e) {
724
+ let t = this.#r, n = () => {
725
+ t === this.#r && e();
726
+ };
727
+ this.#e.afterTick.current ? Je(n) : n();
728
+ }
729
+ }, zt = class {
730
+ #e;
731
+ #t;
732
+ #n;
733
+ #r = t.state(!1);
734
+ #i = t.state(void 0);
735
+ #a = !1;
736
+ #o = null;
737
+ constructor(e) {
738
+ this.#e = e, t.set(this.#r, e.open.current, !0), this.#t = e.enabled ?? !0, this.#n = new Rt({
739
+ ref: this.#e.ref,
740
+ afterTick: this.#e.open
741
+ }), j(() => this.#s()), A(() => this.#e.open.current, (e) => {
742
+ !this.#a && (this.#a = !0, e === t.get(this.#r)) || (this.#s(), !e && this.#e.shouldSkipExitAnimation?.() ? (t.set(this.#r, !1), t.set(this.#i, void 0), this.#e.onComplete?.()) : (e && t.set(this.#r, !0), t.set(this.#i, e ? "starting" : "ending", !0), e && (this.#o = window.requestAnimationFrame(() => {
743
+ this.#o = null, this.#e.open.current && t.set(this.#i, void 0);
744
+ })), this.#t ? this.#n.run(() => {
745
+ e === this.#e.open.current && (this.#e.open.current || t.set(this.#r, !1), t.set(this.#i, void 0), this.#e.onComplete?.());
746
+ }) : (e || t.set(this.#r, !1), t.set(this.#i, void 0), this.#e.onComplete?.())));
747
+ });
748
+ }
749
+ get shouldRender() {
750
+ return t.get(this.#r);
751
+ }
752
+ get transitionStatus() {
753
+ return t.get(this.#i);
754
+ }
755
+ #s() {
756
+ this.#o !== null && (window.cancelAnimationFrame(this.#o), this.#o = null);
757
+ }
758
+ };
759
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/noop.js
760
+ function M() {}
761
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/create-id.js
762
+ function Bt(e, t) {
763
+ return t === void 0 ? `bits-${e}` : `bits-${e}-${t}`;
764
+ }
765
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/config/bits-config.js
766
+ var Vt = new He("BitsConfig");
767
+ function Ht() {
768
+ let e = new Ut(null, {});
769
+ return Vt.getOr(e).opts;
770
+ }
771
+ var Ut = class {
772
+ opts;
773
+ constructor(e, t) {
774
+ let n = Wt(e, t);
775
+ this.opts = {
776
+ dir: n((e) => e.dir),
777
+ defaultPortalTo: n((e) => e.defaultPortalTo),
778
+ defaultLocale: n((e) => e.defaultLocale)
779
+ };
780
+ }
781
+ };
782
+ function Wt(e, t) {
783
+ return (n) => v(() => {
784
+ let r = n(t)?.current;
785
+ if (r !== void 0) return r;
786
+ if (e !== null) return n(e.opts)?.current;
787
+ });
788
+ }
789
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/config/prop-resolvers.js
790
+ function Gt(e, t) {
791
+ return (n) => {
792
+ let r = Ht();
793
+ return v(() => {
794
+ let i = n();
795
+ if (i !== void 0) return i;
796
+ let a = e(r).current;
797
+ return a === void 0 ? t : a;
798
+ });
799
+ };
800
+ }
801
+ var Kt = Gt((e) => e.defaultPortalTo, "body"), qt = Gt((e) => e.dir, "ltr"), Jt = class {
802
+ eventName;
803
+ options;
804
+ constructor(e, t = {
805
+ bubbles: !0,
806
+ cancelable: !0
807
+ }) {
808
+ this.eventName = e, this.options = t;
809
+ }
810
+ createEvent(e) {
811
+ return new CustomEvent(this.eventName, {
812
+ ...this.options,
813
+ detail: e
814
+ });
815
+ }
816
+ dispatch(e, t) {
817
+ let n = this.createEvent(t);
818
+ return e.dispatchEvent(n), n;
819
+ }
820
+ listen(e, t, n) {
821
+ return c(e, this.eventName, (e) => {
822
+ t(e);
823
+ }, n);
824
+ }
825
+ }, Yt = /* @__PURE__ */ new WeakMap();
826
+ function Xt(e, t = e.composedPath()) {
827
+ Yt.set(e, t);
828
+ }
829
+ function Zt(e) {
830
+ return Yt.get(e) ?? e.composedPath();
831
+ }
832
+ function Qt(e, t) {
833
+ return t ? Pt(e.target) && t.contains(e.target) || Zt(e).includes(t) : !1;
834
+ }
835
+ function $t(e, t) {
836
+ for (let n of Zt(e)) if (Pt(n) && n.matches(t)) return n;
837
+ return Pt(e.target) ? e.target.closest(t) : null;
838
+ }
839
+ function en(e, t) {
840
+ Xt(t, Zt(e));
841
+ }
842
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/debounce.js
843
+ function tn(e, t = 500) {
844
+ let n = null, r = null, i = (...e) => {
845
+ i.destroy(), r = e, n = setTimeout(i.flush, t);
846
+ };
847
+ return i.flush = () => {
848
+ if (r === null) return;
849
+ let t = r;
850
+ i.destroy(), e(...t);
851
+ }, i.destroy = () => {
852
+ n !== null && (clearTimeout(n), n = null), r = null;
853
+ }, i;
854
+ }
855
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/elements.js
856
+ function nn(e, t) {
857
+ return e === t || e.contains(t);
858
+ }
859
+ function rn(e) {
860
+ return e?.ownerDocument ?? document;
861
+ }
862
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/dom.js
863
+ function an(e, t) {
864
+ let { clientX: n, clientY: r } = e, i = t.getBoundingClientRect();
865
+ return n < i.left || n > i.right || r < i.top || r > i.bottom;
866
+ }
867
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/menu/context-menu-attributes.js
868
+ var on = "data-context-menu-trigger", sn = "data-context-menu-content";
869
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/dismissible-layer/use-dismissable-layer.svelte.js
870
+ globalThis.bitsDismissableLayers ??= /* @__PURE__ */ new Map();
871
+ var cn = class e {
872
+ static create(t) {
873
+ return new e(t);
874
+ }
875
+ opts;
876
+ #e = M;
877
+ #t = () => !1;
878
+ #n = null;
879
+ #r = w("close");
880
+ #i = { pointerdown: !1 };
881
+ #a = !1;
882
+ #o = null;
883
+ #s = !1;
884
+ #c = void 0;
885
+ #l = M;
886
+ #u = M;
887
+ #d = !1;
888
+ constructor(e) {
889
+ this.opts = e, t.user_pre_effect(() => {
890
+ this.#r.current = e.interactOutsideBehavior.current, this.#e = e.onInteractOutside.current, this.#l = e.onFocusOutside.current, this.#t = e.isValidEvent.current, this.#n = e.ref.current;
891
+ });
892
+ let n = M, r = null, i = () => {
893
+ r = null, this.#x(), globalThis.bitsDismissableLayers.delete(this), this.#g.destroy(), this.#u(), n();
894
+ };
895
+ A([() => this.opts.enabled.current, () => this.opts.ref.current], ([e, t]) => {
896
+ let a = e ? t : null;
897
+ r !== a && (i(), a && (r = a, this.#c = rn(a), globalThis.bitsDismissableLayers.set(this, this.#r), n = this.#p()));
898
+ }), j(() => {
899
+ this.#d = !0, i();
900
+ });
901
+ }
902
+ #f = (e) => {
903
+ e.defaultPrevented || this.#d || !this.#n || Je(() => {
904
+ this.#d || this.#n && !this.#b(e.target) && e.target && !this.#s && this.#l?.(e);
905
+ });
906
+ };
907
+ #p() {
908
+ let e = this.#c, t = (e) => {
909
+ s(() => {
910
+ this.#g.flush(), this.#_(e), this.#y(e);
911
+ });
912
+ }, n = (e) => {
913
+ e.cancelBubble || e !== this.#o || (this.#v(e), e.pointerType === "touch" ? (this.#g.destroy(), this.#h(e)) : this.#g(e));
914
+ };
915
+ return e.addEventListener("pointerdown", t, !0), e.addEventListener("pointerdown", n), ke(() => e.removeEventListener("pointerdown", t, !0), () => e.removeEventListener("pointerdown", n), c(e, "focusin", this.#f));
916
+ }
917
+ #m = (e) => {
918
+ let t = e;
919
+ t.defaultPrevented && (t = fn(e)), this.#e(e);
920
+ };
921
+ #h = (e) => {
922
+ if (!this.#n) {
923
+ this.#u();
924
+ return;
925
+ }
926
+ let t = this.#t(e, this.#n) || dn(e, this.#n);
927
+ if (!this.#a || this.#S() || !t) {
928
+ this.#u();
929
+ return;
930
+ }
931
+ let n = e;
932
+ if (n.defaultPrevented && (n = fn(n)), this.#r.current !== "close" && this.#r.current !== "defer-otherwise-close") this.#u();
933
+ else if (e.pointerType === "touch") {
934
+ this.#u();
935
+ let e = null, t = M, n = (e) => {
936
+ t(), this.#m(e);
937
+ };
938
+ t = ke(c(this.#c, "click", n, { once: !0 }), c(this.#c, "click", (t) => {
939
+ Xt(t), e = setTimeout(() => n(t), 0);
940
+ }, {
941
+ once: !0,
942
+ capture: !0
943
+ }), () => {
944
+ e !== null && clearTimeout(e), e = null;
945
+ }), this.#u = t;
946
+ } else this.#e(n);
947
+ };
948
+ #g = tn(this.#h, 10);
949
+ #_ = (e) => {
950
+ this.#i[e.type] = !0;
951
+ };
952
+ #v = (e) => {
953
+ this.#i[e.type] = !1;
954
+ };
955
+ #y = (e) => {
956
+ this.#o = e, Xt(e), this.#n && (this.#a = un(this));
957
+ };
958
+ #b = (e) => this.#n ? nn(this.#n, e) : !1;
959
+ #x = () => {
960
+ for (let e in this.#i) this.#i[e] = !1;
961
+ this.#a = !1, this.#o = null;
962
+ };
963
+ #S() {
964
+ return Object.values(this.#i).some(Boolean);
965
+ }
966
+ #C = () => {
967
+ this.#s = !0;
968
+ };
969
+ #w = () => {
970
+ this.#s = !1;
971
+ };
972
+ props = {
973
+ onfocuscapture: this.#C,
974
+ onblurcapture: this.#w
975
+ };
976
+ };
977
+ function ln(e = [...globalThis.bitsDismissableLayers]) {
978
+ return e.findLast(([e, { current: t }]) => t === "close" || t === "ignore");
979
+ }
980
+ function un(e) {
981
+ let t = [...globalThis.bitsDismissableLayers], n = ln(t);
982
+ if (n) return n[0] === e;
983
+ let [r] = t[0];
984
+ return r === e;
985
+ }
986
+ function dn(e, t) {
987
+ let n = e.target;
988
+ if (!Pt(n)) return !1;
989
+ let r = !!$t(e, `[${on}]`), i = !!t.closest(`[${sn}]`);
990
+ return "button" in e && e.button > 0 && !r ? !1 : "button" in e && e.button === 0 && r && i ? !0 : r && i ? !1 : rn(n).documentElement.contains(n) && !Qt(e, t) && an(e, t);
991
+ }
992
+ function fn(e) {
993
+ let t = e.currentTarget, n = e.target, r;
994
+ r = e instanceof PointerEvent ? new PointerEvent(e.type, e) : new PointerEvent("pointerdown", e);
995
+ let i = !1, a = new Proxy(r, { get: (r, a) => {
996
+ if (a === "currentTarget") return t;
997
+ if (a === "target") return n;
998
+ if (a === "preventDefault") return () => {
999
+ i = !0, typeof r.preventDefault == "function" && r.preventDefault();
1000
+ };
1001
+ if (a === "defaultPrevented") return i;
1002
+ if (a in r) {
1003
+ let e = r[a];
1004
+ return typeof e == "function" ? e.bind(r) : e;
1005
+ }
1006
+ let o = e[a];
1007
+ return typeof o == "function" ? o.bind(e) : o;
1008
+ } });
1009
+ return en(e, a), a;
1010
+ }
1011
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/dismissible-layer/dismissible-layer.svelte
1012
+ function pn(e, n) {
1013
+ t.push(n, !0);
1014
+ let r = t.prop(n, "interactOutsideBehavior", 3, "close"), i = t.prop(n, "onInteractOutside", 3, M), a = t.prop(n, "onFocusOutside", 3, M), o = t.prop(n, "isValidEvent", 3, () => !1), c = cn.create({
1015
+ id: v(() => n.id),
1016
+ interactOutsideBehavior: v(() => r()),
1017
+ onInteractOutside: v(() => i()),
1018
+ enabled: v(() => n.enabled),
1019
+ onFocusOutside: v(() => a()),
1020
+ isValidEvent: v(() => o()),
1021
+ ref: s(() => n.ref)
1022
+ });
1023
+ var l = t.comment(), u = t.first_child(l);
1024
+ t.snippet(u, () => n.children ?? t.noop, () => ({ props: c.props })), t.append(e, l), t.pop();
1025
+ }
1026
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/escape-layer/use-escape-layer.svelte.js
1027
+ globalThis.bitsEscapeLayers ??= /* @__PURE__ */ new Map();
1028
+ var mn = class e {
1029
+ static create(t) {
1030
+ return new e(t);
1031
+ }
1032
+ opts;
1033
+ domContext;
1034
+ constructor(e) {
1035
+ this.opts = e, this.domContext = new st(this.opts.ref);
1036
+ let t = M;
1037
+ A(() => e.enabled.current, (n) => (n && (globalThis.bitsEscapeLayers.set(this, e.escapeKeydownBehavior), t = this.#e()), () => {
1038
+ t(), globalThis.bitsEscapeLayers.delete(this);
1039
+ }));
1040
+ }
1041
+ #e = () => c(this.domContext.getDocument(), "keydown", this.#t, { passive: !1 });
1042
+ #t = (e) => {
1043
+ if (e.key !== "Escape" || !hn(this)) return;
1044
+ let t = new KeyboardEvent(e.type, e);
1045
+ e.preventDefault();
1046
+ let n = this.opts.escapeKeydownBehavior.current;
1047
+ (n === "close" || n === "defer-otherwise-close") && this.opts.onEscapeKeydown.current(t);
1048
+ };
1049
+ };
1050
+ function hn(e) {
1051
+ let t = [...globalThis.bitsEscapeLayers], n = t.findLast(([e, { current: t }]) => t === "close" || t === "ignore");
1052
+ if (n) return n[0] === e;
1053
+ let [r] = t[0];
1054
+ return r === e;
1055
+ }
1056
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/escape-layer/escape-layer.svelte
1057
+ function gn(e, n) {
1058
+ t.push(n, !0);
1059
+ let r = t.prop(n, "escapeKeydownBehavior", 3, "close"), i = t.prop(n, "onEscapeKeydown", 3, M);
1060
+ mn.create({
1061
+ escapeKeydownBehavior: v(() => r()),
1062
+ onEscapeKeydown: v(() => i()),
1063
+ enabled: v(() => n.enabled),
1064
+ ref: s(() => n.ref)
1065
+ });
1066
+ var a = t.comment(), o = t.first_child(a);
1067
+ t.snippet(o, () => n.children ?? t.noop), t.append(e, a), t.pop();
1068
+ }
1069
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope-manager.js
1070
+ var _n = class e {
1071
+ static instance;
1072
+ #e = w([]);
1073
+ #t = /* @__PURE__ */ new WeakMap();
1074
+ #n = /* @__PURE__ */ new WeakMap();
1075
+ static getInstance() {
1076
+ return this.instance ||= new e(), this.instance;
1077
+ }
1078
+ register(e) {
1079
+ let t = this.getActive();
1080
+ t && t !== e && t.pause();
1081
+ let n = ot(document);
1082
+ n && n !== document.body && this.#n.set(e, n), this.#e.current = this.#e.current.filter((t) => t !== e), this.#e.current.unshift(e), e.resume();
1083
+ }
1084
+ unregister(e) {
1085
+ this.#e.current = this.#e.current.filter((t) => t !== e);
1086
+ let t = this.getActive();
1087
+ t && t.resume();
1088
+ }
1089
+ getActive() {
1090
+ return this.#e.current[0];
1091
+ }
1092
+ setFocusMemory(e, t) {
1093
+ this.#t.set(e, t);
1094
+ }
1095
+ getFocusMemory(e) {
1096
+ return this.#t.get(e);
1097
+ }
1098
+ isActiveScope(e) {
1099
+ return this.getActive() === e;
1100
+ }
1101
+ setPreFocusMemory(e, t) {
1102
+ this.#n.set(e, t);
1103
+ }
1104
+ getPreFocusMemory(e) {
1105
+ return this.#n.get(e);
1106
+ }
1107
+ clearPreFocusMemory(e) {
1108
+ this.#n.delete(e);
1109
+ }
1110
+ }, vn = [
1111
+ "input:not([inert]):not([inert] *)",
1112
+ "select:not([inert]):not([inert] *)",
1113
+ "textarea:not([inert]):not([inert] *)",
1114
+ "a[href]:not([inert]):not([inert] *)",
1115
+ "area[href]:not([inert]):not([inert] *)",
1116
+ "button:not([inert]):not([inert] *)",
1117
+ "[tabindex]:not(slot):not([inert]):not([inert] *)",
1118
+ "audio[controls]:not([inert]):not([inert] *)",
1119
+ "video[controls]:not([inert]):not([inert] *)",
1120
+ "[contenteditable]:not([contenteditable=\"false\"]):not([inert]):not([inert] *)",
1121
+ "details>summary:first-of-type:not([inert]):not([inert] *)",
1122
+ "details:not([inert]):not([inert] *)"
1123
+ ], yn = /* #__PURE__ */ vn.join(","), bn = typeof Element > "u", N = bn ? function() {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, xn = !bn && Element.prototype.getRootNode ? function(e) {
1124
+ return e == null || e.getRootNode == null ? void 0 : e.getRootNode();
1125
+ } : function(e) {
1126
+ return e?.ownerDocument;
1127
+ }, Sn = function(e, t) {
1128
+ t === void 0 && (t = !0);
1129
+ var n = e == null || e.getAttribute == null ? void 0 : e.getAttribute("inert");
1130
+ return n === "" || n === "true" || t && e && (typeof e.closest == "function" ? e.closest("[inert]") : Sn(e.parentNode));
1131
+ }, Cn = function(e) {
1132
+ var t, n = e == null || e.getAttribute == null || (t = e.getAttribute("contenteditable")) == null ? void 0 : t.toLowerCase();
1133
+ return n === "" || n === "true" || n === "plaintext-only";
1134
+ }, wn = function(e, t, n) {
1135
+ if (Sn(e)) return [];
1136
+ var r = Array.prototype.slice.apply(e.querySelectorAll(yn));
1137
+ return t && N.call(e, yn) && r.unshift(e), r = r.filter(n), r;
1138
+ }, Tn = function(e, t, n) {
1139
+ for (var r = [], i = Array.from(e); i.length;) {
1140
+ var a = i.shift();
1141
+ if (!Sn(a, !1)) {
1142
+ if (a.tagName === "SLOT") {
1143
+ var o = a.assignedElements(), s = Tn(o.length ? o : a.children, !0, n);
1144
+ n.flatten ? r.push.apply(r, s) : r.push({
1145
+ scopeParent: a,
1146
+ candidates: s
1147
+ });
1148
+ } else {
1149
+ N.call(a, yn) && n.filter(a) && (t || !e.includes(a)) && r.push(a);
1150
+ var c = a.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(a), l = !Sn(c, !1) && (!n.shadowRootFilter || n.shadowRootFilter(a));
1151
+ if (c && l) {
1152
+ var u = Tn(c === !0 ? a.children : c.children, !0, n);
1153
+ n.flatten ? r.push.apply(r, u) : r.push({
1154
+ scopeParent: a,
1155
+ candidates: u
1156
+ });
1157
+ } else i.unshift.apply(i, a.children);
1158
+ }
1159
+ }
1160
+ }
1161
+ return r;
1162
+ }, En = function(e) {
1163
+ return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
1164
+ }, Dn = function(e) {
1165
+ if (!e) throw Error("No node provided");
1166
+ return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || Cn(e)) && !En(e) ? 0 : e.tabIndex;
1167
+ }, On = function(e, t) {
1168
+ var n = Dn(e);
1169
+ return n < 0 && t && !En(e) ? 0 : n;
1170
+ }, kn = function(e, t) {
1171
+ return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
1172
+ }, An = function(e) {
1173
+ return e.tagName === "INPUT";
1174
+ }, jn = function(e) {
1175
+ return An(e) && e.type === "hidden";
1176
+ }, Mn = function(e) {
1177
+ return e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(e) {
1178
+ return e.tagName === "SUMMARY";
1179
+ });
1180
+ }, Nn = function(e, t) {
1181
+ for (var n = 0; n < e.length; n++) if (e[n].checked && e[n].form === t) return e[n];
1182
+ }, Pn = function(e) {
1183
+ if (!e.name) return !0;
1184
+ var t = e.form || xn(e), n = function(e) {
1185
+ return t.querySelectorAll("input[type=\"radio\"][name=\"" + e + "\"]");
1186
+ }, r;
1187
+ if (typeof window < "u" && window.CSS !== void 0 && typeof window.CSS.escape == "function") r = n(window.CSS.escape(e.name));
1188
+ else try {
1189
+ r = n(e.name);
1190
+ } catch (e) {
1191
+ return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", e.message), !1;
1192
+ }
1193
+ var i = Nn(r, e.form);
1194
+ return !i || i === e;
1195
+ }, Fn = function(e) {
1196
+ return An(e) && e.type === "radio";
1197
+ }, In = function(e) {
1198
+ return Fn(e) && !Pn(e);
1199
+ }, Ln = function(e) {
1200
+ var t = e.getBoundingClientRect(), n = t.width, r = t.height;
1201
+ return n === 0 && r === 0;
1202
+ }, Rn = function(e, t) {
1203
+ var n = t.displayCheck, r = t.getShadowRoot;
1204
+ if (n === "full-native" && "checkVisibility" in e) return !e.checkVisibility({
1205
+ checkOpacity: !1,
1206
+ opacityProperty: !1,
1207
+ contentVisibilityAuto: !0,
1208
+ visibilityProperty: !0,
1209
+ checkVisibilityCSS: !0
1210
+ });
1211
+ var i = getComputedStyle(e).visibility;
1212
+ if (i === "hidden" || i === "collapse") return !0;
1213
+ var a = N.call(e, "details>summary:first-of-type") ? e.parentElement : e;
1214
+ if (N.call(a, "details:not([open]) *")) return !0;
1215
+ if (!n || n === "full" || n === "full-native" || n === "legacy-full") {
1216
+ if (typeof r == "function") {
1217
+ for (var o = e; e;) {
1218
+ var s = e.parentElement, c = xn(e);
1219
+ if (s && !s.shadowRoot && r(s) === !0) return Ln(e);
1220
+ e = e.assignedSlot ? e.assignedSlot : !s && c !== e.ownerDocument ? c.host : s;
1221
+ }
1222
+ e = o;
1223
+ }
1224
+ if (e.isConnected) return !e.getClientRects().length;
1225
+ if (n !== "legacy-full") return !0;
1226
+ } else if (n === "non-zero-area") return Ln(e);
1227
+ return !1;
1228
+ }, zn = function(e) {
1229
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)) for (var t = e.parentElement; t;) {
1230
+ if (t.tagName === "FIELDSET" && t.disabled) {
1231
+ for (var n = 0; n < t.children.length; n++) {
1232
+ var r = t.children.item(n);
1233
+ if (r.tagName === "LEGEND") return N.call(t, "fieldset[disabled] *") ? !0 : !r.contains(e);
1234
+ }
1235
+ return !0;
1236
+ }
1237
+ t = t.parentElement;
1238
+ }
1239
+ return !1;
1240
+ }, Bn = function(e, t) {
1241
+ return !(t.disabled || jn(t) || Rn(t, e) || Mn(t) || zn(t));
1242
+ }, Vn = function(e, t) {
1243
+ return !(In(t) || Dn(t) < 0 || !Bn(e, t));
1244
+ }, Hn = function(e) {
1245
+ var t = parseInt(e.getAttribute("tabindex"), 10);
1246
+ return !!(isNaN(t) || t >= 0);
1247
+ }, Un = function(e) {
1248
+ var t = [], n = [];
1249
+ return e.forEach(function(e, r) {
1250
+ var i = !!e.scopeParent, a = i ? e.scopeParent : e, o = On(a, i), s = i ? Un(e.candidates) : a;
1251
+ o === 0 ? i ? t.push.apply(t, s) : t.push(a) : n.push({
1252
+ documentOrder: r,
1253
+ tabIndex: o,
1254
+ item: e,
1255
+ isScope: i,
1256
+ content: s
1257
+ });
1258
+ }), n.sort(kn).reduce(function(e, t) {
1259
+ return t.isScope ? e.push.apply(e, t.content) : e.push(t.content), e;
1260
+ }, []).concat(t);
1261
+ }, Wn = function(e, t) {
1262
+ return t ||= {}, Un(t.getShadowRoot ? Tn([e], t.includeContainer, {
1263
+ filter: Vn.bind(null, t),
1264
+ flatten: !1,
1265
+ getShadowRoot: t.getShadowRoot,
1266
+ shadowRootFilter: Hn
1267
+ }) : wn(e, t.includeContainer, Vn.bind(null, t)));
1268
+ }, Gn = function(e, t) {
1269
+ return t ||= {}, t.getShadowRoot ? Tn([e], t.includeContainer, {
1270
+ filter: Bn.bind(null, t),
1271
+ flatten: !0,
1272
+ getShadowRoot: t.getShadowRoot
1273
+ }) : wn(e, t.includeContainer, Bn.bind(null, t));
1274
+ }, Kn = function(e, t) {
1275
+ if (t ||= {}, !e) throw Error("No node provided");
1276
+ return N.call(e, yn) !== !1 && Vn(t, e);
1277
+ }, qn = /* #__PURE__ */ vn.concat("iframe:not([inert]):not([inert] *)").join(","), Jn = function(e, t) {
1278
+ if (t ||= {}, !e) throw Error("No node provided");
1279
+ return N.call(e, qn) !== !1 && Bn(t, e);
1280
+ };
1281
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope.svelte.js
1282
+ function Yn(e, t) {
1283
+ let n = t.getRootNode();
1284
+ for (; e;) {
1285
+ let t = e.getRootNode();
1286
+ if (t === n) return e;
1287
+ e = t !== e && "host" in t ? t.host : null;
1288
+ }
1289
+ return null;
1290
+ }
1291
+ var Xn = class e {
1292
+ #e = !1;
1293
+ #t = null;
1294
+ #n = _n.getInstance();
1295
+ #r = [];
1296
+ #i;
1297
+ constructor(e) {
1298
+ this.#i = e;
1299
+ }
1300
+ get paused() {
1301
+ return this.#e;
1302
+ }
1303
+ pause() {
1304
+ this.#e = !0;
1305
+ }
1306
+ resume() {
1307
+ this.#e = !1;
1308
+ }
1309
+ #a() {
1310
+ for (let e of this.#r) e();
1311
+ this.#r = [];
1312
+ }
1313
+ mount(e) {
1314
+ this.#t !== e && (this.#t && this.unmount(), this.#t = e, this.#n.register(this), this.#c(), this.#o());
1315
+ }
1316
+ unmount() {
1317
+ this.#t &&= (this.#a(), this.#s(), this.#n.unregister(this), this.#n.clearPreFocusMemory(this), null);
1318
+ }
1319
+ #o() {
1320
+ if (!this.#t) return;
1321
+ let e = new CustomEvent("focusScope.onOpenAutoFocus", {
1322
+ bubbles: !1,
1323
+ cancelable: !0
1324
+ });
1325
+ this.#i.onOpenAutoFocus.current(e), e.defaultPrevented || requestAnimationFrame(() => {
1326
+ if (!this.#t || this.#e || !this.#n.isActiveScope(this) || this.#t.contains(Yn(ot(this.#t.ownerDocument), this.#t))) return;
1327
+ let e = this.#u();
1328
+ e ? (e.focus({ preventScroll: !0 }), this.#n.setFocusMemory(this, e)) : this.#t.focus({ preventScroll: !0 });
1329
+ });
1330
+ }
1331
+ #s() {
1332
+ let e = new CustomEvent("focusScope.onCloseAutoFocus", {
1333
+ bubbles: !1,
1334
+ cancelable: !0
1335
+ });
1336
+ if (this.#i.onCloseAutoFocus.current?.(e), !e.defaultPrevented) {
1337
+ let e = this.#n.getPreFocusMemory(this);
1338
+ if (e && e.isConnected) try {
1339
+ e.focus({ preventScroll: !0 });
1340
+ } catch {
1341
+ document.body.focus();
1342
+ }
1343
+ }
1344
+ }
1345
+ #c() {
1346
+ if (!this.#t || !this.#i.trap.current) return;
1347
+ let e = this.#t, t = e.ownerDocument;
1348
+ this.#r.push(c(t, "focusin", (t) => {
1349
+ if (this.#e || !this.#n.isActiveScope(this)) return;
1350
+ let n = Yn(t.composedPath()[0], e);
1351
+ if (n !== null && e.contains(n)) this.#n.setFocusMemory(this, n);
1352
+ else {
1353
+ let n = this.#n.getFocusMemory(this);
1354
+ if (n && e.contains(n) && Jn(n)) t.preventDefault(), n.focus({ preventScroll: !0 });
1355
+ else {
1356
+ let t = this.#u(), n = this.#d()[0];
1357
+ (t || n || e).focus({ preventScroll: !0 });
1358
+ }
1359
+ }
1360
+ }, { capture: !0 }), c(e, "keydown", (e) => {
1361
+ if (!this.#i.loop || this.#e || e.key !== "Tab" || !this.#n.isActiveScope(this)) return;
1362
+ let n = this.#l();
1363
+ if (n.length === 0) return;
1364
+ let r = n[0], i = n[n.length - 1];
1365
+ !e.shiftKey && ot(t) === i ? (e.preventDefault(), r.focus()) : e.shiftKey && ot(t) === r && (e.preventDefault(), i.focus());
1366
+ }));
1367
+ let n = new MutationObserver(() => {
1368
+ let t = this.#n.getFocusMemory(this);
1369
+ if (t && !e.contains(t)) {
1370
+ let t = this.#u(), n = this.#d()[0], r = t || n;
1371
+ r ? (r.focus({ preventScroll: !0 }), this.#n.setFocusMemory(this, r)) : e.focus({ preventScroll: !0 });
1372
+ }
1373
+ });
1374
+ n.observe(e, {
1375
+ childList: !0,
1376
+ subtree: !0
1377
+ }), this.#r.push(() => n.disconnect());
1378
+ }
1379
+ #l() {
1380
+ return this.#t ? Wn(this.#t, {
1381
+ includeContainer: !1,
1382
+ getShadowRoot: !0
1383
+ }) : [];
1384
+ }
1385
+ #u() {
1386
+ return this.#l()[0] || null;
1387
+ }
1388
+ #d() {
1389
+ return this.#t ? Gn(this.#t, {
1390
+ includeContainer: !1,
1391
+ getShadowRoot: !0
1392
+ }) : [];
1393
+ }
1394
+ static use(t) {
1395
+ let n = null;
1396
+ return A([() => t.ref.current, () => t.enabled.current], ([r, i]) => {
1397
+ r && i ? (n ||= new e(t), n.mount(r)) : n &&= (n.unmount(), null);
1398
+ }), j(() => {
1399
+ n?.unmount();
1400
+ }), { get props() {
1401
+ return { tabindex: -1 };
1402
+ } };
1403
+ }
1404
+ };
1405
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope.svelte
1406
+ function Zn(e, n) {
1407
+ t.push(n, !0);
1408
+ let r = t.prop(n, "enabled", 3, !1), i = t.prop(n, "trapFocus", 3, !1), a = t.prop(n, "loop", 3, !1), o = t.prop(n, "onCloseAutoFocus", 3, M), c = t.prop(n, "onOpenAutoFocus", 3, M), l = Xn.use({
1409
+ enabled: v(() => r()),
1410
+ trap: v(() => i()),
1411
+ loop: s(() => a()),
1412
+ onCloseAutoFocus: v(() => o()),
1413
+ onOpenAutoFocus: v(() => c()),
1414
+ ref: s(() => n.ref)
1415
+ });
1416
+ var u = t.comment(), d = t.first_child(u);
1417
+ t.snippet(d, () => n.focusScope ?? t.noop, () => ({ props: l.props })), t.append(e, u), t.pop();
1418
+ }
1419
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/text-selection-layer/use-text-selection-layer.svelte.js
1420
+ var Qn = () => {};
1421
+ globalThis.bitsTextSelectionLayers ??= /* @__PURE__ */ new Map();
1422
+ var $n = class e {
1423
+ static create(t) {
1424
+ return new e(t);
1425
+ }
1426
+ opts;
1427
+ domContext;
1428
+ #e = M;
1429
+ #t = !1;
1430
+ #n = Qn;
1431
+ #r = Qn;
1432
+ constructor(e) {
1433
+ this.opts = e, this.domContext = new st(e.ref);
1434
+ let t = M;
1435
+ A(() => [
1436
+ this.opts.enabled.current,
1437
+ this.opts.onPointerDown.current,
1438
+ this.opts.onPointerUp.current
1439
+ ], ([e, n, r]) => (this.#t = e, this.#n = n, this.#r = r, e && (globalThis.bitsTextSelectionLayers.set(this, this.opts.enabled), t(), t = this.#i()), () => {
1440
+ this.#t = !1, t(), this.#s(), globalThis.bitsTextSelectionLayers.delete(this);
1441
+ }));
1442
+ }
1443
+ #i() {
1444
+ return ke(c(this.domContext.getDocument(), "pointerdown", this.#o), c(this.domContext.getDocument(), "pointerup", this.#a));
1445
+ }
1446
+ #a = (e) => {
1447
+ this.#s(), e.defaultPrevented || this.#r(e);
1448
+ };
1449
+ #o = (e) => {
1450
+ if (!this.#t) return;
1451
+ this.#s();
1452
+ let t = this.opts.ref.current, n = e.target;
1453
+ Mt(t) && Mt(n) && rr(this) && rt(t, n) && (this.#n(e), e.defaultPrevented || (this.#e = tr(t, this.domContext.getDocument().body)));
1454
+ };
1455
+ #s = () => {
1456
+ this.#e(), this.#e = M;
1457
+ };
1458
+ }, er = (e) => e.style.userSelect || e.style.webkitUserSelect;
1459
+ function tr(e, t) {
1460
+ let n = er(t), r = er(e);
1461
+ return nr(t, "none"), nr(e, "text"), () => {
1462
+ nr(t, n), nr(e, r);
1463
+ };
1464
+ }
1465
+ function nr(e, t) {
1466
+ e.style.userSelect = t, e.style.webkitUserSelect = t;
1467
+ }
1468
+ function rr(e) {
1469
+ let t = [...globalThis.bitsTextSelectionLayers];
1470
+ if (!t.length) return !1;
1471
+ let n = t.at(-1);
1472
+ return n ? n[0] === e : !1;
1473
+ }
1474
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/text-selection-layer/text-selection-layer.svelte
1475
+ function ir(e, n) {
1476
+ t.push(n, !0);
1477
+ let r = t.prop(n, "preventOverflowTextSelection", 3, !0), i = t.prop(n, "onPointerDown", 3, M), a = t.prop(n, "onPointerUp", 3, M);
1478
+ $n.create({
1479
+ id: v(() => n.id),
1480
+ onPointerDown: v(() => i()),
1481
+ onPointerUp: v(() => a()),
1482
+ enabled: v(() => n.enabled && r()),
1483
+ ref: s(() => n.ref)
1484
+ });
1485
+ var o = t.comment(), c = t.first_child(o);
1486
+ t.snippet(c, () => n.children ?? t.noop), t.append(e, o), t.pop();
1487
+ }
1488
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/use-id.js
1489
+ globalThis.bitsIdCounter ??= { current: 0 };
1490
+ function ar(e = "bits") {
1491
+ return globalThis.bitsIdCounter.current++, `${e}-${globalThis.bitsIdCounter.current}`;
1492
+ }
1493
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/shared-state.svelte.js
1494
+ var or = class {
1495
+ #e;
1496
+ #t = 0;
1497
+ #n = t.state();
1498
+ #r;
1499
+ constructor(e) {
1500
+ this.#e = e;
1501
+ }
1502
+ #i() {
1503
+ --this.#t, this.#r && this.#t <= 0 && (this.#r(), t.set(this.#n, void 0), this.#r = void 0);
1504
+ }
1505
+ get(...e) {
1506
+ return this.#t += 1, t.get(this.#n) === void 0 && (this.#r = t.effect_root(() => {
1507
+ t.set(this.#n, this.#e(...e), !0);
1508
+ })), t.user_effect(() => () => {
1509
+ this.#i();
1510
+ }), t.get(this.#n);
1511
+ }
1512
+ }, sr = new l(), cr = /* @__PURE__ */ new Map(), lr = [
1513
+ "padding-right",
1514
+ "margin-right",
1515
+ "overflow",
1516
+ "overflow-x",
1517
+ "overflow-y",
1518
+ "pointer-events",
1519
+ "--scrollbar-width"
1520
+ ], ur = null, dr = !1, P = /* @__PURE__ */ new Set(), fr = null, pr = null, mr = !1;
1521
+ function F(e, t, n) {
1522
+ e.setProperty(t, n), P.add(t), t === "overflow" && (P.add("overflow-x"), P.add("overflow-y"));
1523
+ }
1524
+ var hr = v(() => {
1525
+ for (let e of sr.values()) if (e) return !0;
1526
+ return !1;
1527
+ }), gr = v(() => {
1528
+ for (let [e, t] of sr) if (t && (cr.get(e)?.() ?? !0)) return !0;
1529
+ return !1;
1530
+ }), _r = null, vr = new or(() => {
1531
+ function e(e, t) {
1532
+ let n = ur?.get(t);
1533
+ n?.value ? e.body.style.setProperty(t, n.value, n.priority) : e.body.style.removeProperty(t);
1534
+ }
1535
+ function t(t) {
1536
+ for (let n of lr) P.has(n) && e(t, n);
1537
+ !dr && t.body.style.length === 0 && t.body.removeAttribute("style"), ur = null, P.clear(), At && fr?.();
1538
+ }
1539
+ function n(t) {
1540
+ P.delete("pointer-events") && e(t, "pointer-events");
1541
+ }
1542
+ function r() {
1543
+ pr !== null && (window.clearTimeout(pr), pr = null);
1544
+ }
1545
+ function i(e, t) {
1546
+ r(), mr = !0, _r = Date.now();
1547
+ let n = _r, i = () => {
1548
+ pr = null, _r === n && (br(sr) ? mr = !1 : (mr = !1, t()));
1549
+ }, a = e === null ? 24 : e;
1550
+ pr = window.setTimeout(i, a);
1551
+ }
1552
+ function a() {
1553
+ if (ur === null && sr.size === 0 && !mr) {
1554
+ dr = document.body.hasAttribute("style"), ur = /* @__PURE__ */ new Map();
1555
+ for (let e of lr) ur.set(e, {
1556
+ value: document.body.style.getPropertyValue(e),
1557
+ priority: document.body.style.getPropertyPriority(e)
1558
+ });
1559
+ }
1560
+ }
1561
+ return A(() => hr.current, () => {
1562
+ if (!hr.current) return;
1563
+ a(), mr = !1;
1564
+ let e = getComputedStyle(document.documentElement), t = getComputedStyle(document.body), n = e.scrollbarGutter?.includes("stable") || t.scrollbarGutter?.includes("stable"), r = window.innerWidth - document.documentElement.clientWidth, i = {
1565
+ padding: Number.parseInt(t.paddingRight ?? "0", 10) + r,
1566
+ margin: Number.parseInt(t.marginRight ?? "0", 10)
1567
+ };
1568
+ r > 0 && !n && (F(document.body.style, "padding-right", `${i.padding}px`), F(document.body.style, "margin-right", `${i.margin}px`), F(document.body.style, "--scrollbar-width", `${r}px`)), F(document.body.style, "overflow", "hidden"), At && (fr = c(document, "touchmove", (e) => {
1569
+ e.target === document.documentElement && (e.touches.length > 1 || e.preventDefault());
1570
+ }, { passive: !1 })), Je(() => {
1571
+ gr.current && F(document.body.style, "pointer-events", "none"), F(document.body.style, "overflow", "hidden");
1572
+ });
1573
+ }), A(() => gr.current, () => {
1574
+ hr.current && Je(() => {
1575
+ hr.current && (gr.current ? F(document.body.style, "pointer-events", "none") : n(document));
1576
+ });
1577
+ }, { lazy: !0 }), j(() => () => {
1578
+ fr?.();
1579
+ }), {
1580
+ get lockMap() {
1581
+ return sr;
1582
+ },
1583
+ resetBodyStyle: t,
1584
+ restorePointerEvents: n,
1585
+ scheduleCleanupIfNoNewLocks: i,
1586
+ cancelPendingCleanup: r,
1587
+ ensureInitialStyleCaptured: a
1588
+ };
1589
+ }), yr = class {
1590
+ #e = ar();
1591
+ #t;
1592
+ #n = () => null;
1593
+ #r;
1594
+ locked;
1595
+ constructor(e, t = () => null, n = () => !0) {
1596
+ this.#t = e, this.#n = t, this.#r = vr.get(), this.#r && (this.#r.cancelPendingCleanup(), this.#r.ensureInitialStyleCaptured(), cr.set(this.#e, n), this.#r.lockMap.set(this.#e, this.#t ?? !1), this.locked = v(() => this.#r.lockMap.get(this.#e) ?? !1, (e) => this.#r.lockMap.set(this.#e, e)), j(() => {
1597
+ if (this.#r.lockMap.delete(this.#e), cr.delete(this.#e), br(this.#r.lockMap)) return;
1598
+ let e = this.#n(), t = document;
1599
+ this.#r.restorePointerEvents(t), this.#r.scheduleCleanupIfNoNewLocks(e, () => {
1600
+ this.#r.resetBodyStyle(t);
1601
+ });
1602
+ }));
1603
+ }
1604
+ };
1605
+ function br(e) {
1606
+ for (let [t, n] of e) if (n) return !0;
1607
+ return !1;
1608
+ }
1609
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/scroll-lock/scroll-lock.svelte
1610
+ function xr(e, n) {
1611
+ t.push(n, !0);
1612
+ let r = t.prop(n, "preventScroll", 3, !0), i = t.prop(n, "restoreScrollDelay", 3, null), a = t.prop(n, "blockPointer", 3, () => !0);
1613
+ s(() => {
1614
+ r() && new yr(r(), () => i(), a());
1615
+ }), t.pop();
1616
+ }
1617
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/arrays.js
1618
+ function Sr(e, t, n = !0) {
1619
+ if (!(e.length === 0 || t < 0 || t >= e.length)) return e.length === 1 && t === 0 ? e[0] : t === e.length - 1 ? n ? e[0] : void 0 : e[t + 1];
1620
+ }
1621
+ function Cr(e, t, n = !0) {
1622
+ if (!(e.length === 0 || t < 0 || t >= e.length)) return e.length === 1 && t === 0 ? e[0] : t === 0 ? n ? e[e.length - 1] : void 0 : e[t - 1];
1623
+ }
1624
+ function wr(e, t, n, r = !0) {
1625
+ if (e.length === 0 || t < 0 || t >= e.length) return;
1626
+ let i = t + n;
1627
+ return i = r ? (i % e.length + e.length) % e.length : Math.max(0, Math.min(i, e.length - 1)), e[i];
1628
+ }
1629
+ function Tr(e, t, n, r = !0) {
1630
+ if (e.length === 0 || t < 0 || t >= e.length) return;
1631
+ let i = t - n;
1632
+ return i = r ? (i % e.length + e.length) % e.length : Math.max(0, Math.min(i, e.length - 1)), e[i];
1633
+ }
1634
+ function Er(e, t, n) {
1635
+ let r = t.toLowerCase();
1636
+ if (r.endsWith(" ")) {
1637
+ let i = r.slice(0, -1);
1638
+ if (e.filter((e) => e.toLowerCase().startsWith(i)).length <= 1) return Er(e, i, n);
1639
+ let a = n?.toLowerCase();
1640
+ if (a && a.startsWith(i) && a.charAt(i.length) === " " && t.trim() === i) return n;
1641
+ let o = e.filter((e) => e.toLowerCase().startsWith(r));
1642
+ if (o.length > 0) {
1643
+ let t = n ? e.indexOf(n) : -1;
1644
+ return Dr(o, Math.max(t, 0)).find((e) => e !== n) || n;
1645
+ }
1646
+ }
1647
+ let i = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, a = i.toLowerCase(), o = n ? e.indexOf(n) : -1, s = Dr(e, Math.max(o, 0));
1648
+ i.length === 1 && (s = s.filter((e) => e !== n));
1649
+ let c = s.find((e) => e?.toLowerCase().startsWith(a));
1650
+ return c === n ? void 0 : c;
1651
+ }
1652
+ function Dr(e, t) {
1653
+ return e.map((n, r) => e[(t + r) % e.length]);
1654
+ }
1655
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/floating-layer/floating-root.svelte.js
1656
+ var Or = new He("Floating.Root"), kr = new He("Floating.Root"), Ar = class e {
1657
+ static create(t = !1) {
1658
+ return t ? kr.set(new e()) : Or.set(new e());
1659
+ }
1660
+ anchorNode = w(null);
1661
+ customAnchorNode = w(null);
1662
+ triggerNode = w(null);
1663
+ constructor() {
1664
+ t.user_effect(() => {
1665
+ this.customAnchorNode.current ? typeof this.customAnchorNode.current == "string" ? this.anchorNode.current = document.querySelector(this.customAnchorNode.current) : this.anchorNode.current = this.customAnchorNode.current : this.anchorNode.current = this.triggerNode.current;
1666
+ });
1667
+ }
1668
+ }, jr = class e {
1669
+ static create(t, n = !1) {
1670
+ return n ? new e(t, kr.get()) : new e(t, Or.get());
1671
+ }
1672
+ opts;
1673
+ root;
1674
+ constructor(e, t) {
1675
+ this.opts = e, this.root = t, t.triggerNode = e.virtualEl && e.virtualEl.current ? x(e.virtualEl.current) : e.ref;
1676
+ }
1677
+ };
1678
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer.svelte
1679
+ function Mr(e, n) {
1680
+ t.push(n, !0);
1681
+ let r = t.prop(n, "tooltip", 3, !1);
1682
+ Ar.create(s(() => r()));
1683
+ var i = t.comment(), a = t.first_child(i);
1684
+ t.snippet(a, () => n.children ?? t.noop), t.append(e, i), t.pop();
1685
+ }
1686
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/floating-svelte/floating-utils.svelte.js
1687
+ function I(e) {
1688
+ return typeof e == "function" ? e() : e;
1689
+ }
1690
+ function Nr(e) {
1691
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1692
+ }
1693
+ function Pr(e, t) {
1694
+ let n = Nr(e);
1695
+ return Math.round(t * n) / n;
1696
+ }
1697
+ function Fr(e) {
1698
+ return {
1699
+ [`--bits-${e}-content-transform-origin`]: "var(--bits-floating-transform-origin)",
1700
+ [`--bits-${e}-content-available-width`]: "var(--bits-floating-available-width)",
1701
+ [`--bits-${e}-content-available-height`]: "var(--bits-floating-available-height)",
1702
+ [`--bits-${e}-anchor-width`]: "var(--bits-floating-anchor-width)",
1703
+ [`--bits-${e}-anchor-height`]: "var(--bits-floating-anchor-height)"
1704
+ };
1705
+ }
1706
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/box-auto-reset.svelte.js
1707
+ var Ir = {
1708
+ afterMs: 1e4,
1709
+ onChange: M
1710
+ };
1711
+ function Lr(e, n) {
1712
+ let { afterMs: r, onChange: i, getWindow: a } = {
1713
+ ...Ir,
1714
+ ...n
1715
+ }, o = null, s = t.state(t.proxy(e));
1716
+ function c() {
1717
+ return a().setTimeout(() => {
1718
+ t.set(s, e, !0), i?.(e);
1719
+ }, r);
1720
+ }
1721
+ return t.user_effect(() => () => {
1722
+ o && a().clearTimeout(o);
1723
+ }), v(() => t.get(s), (e) => {
1724
+ t.set(s, e, !0), i?.(e), o && a().clearTimeout(o), o = c();
1725
+ });
1726
+ }
1727
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/dom-typeahead.svelte.js
1728
+ var Rr = class {
1729
+ #e;
1730
+ #t;
1731
+ #n = t.derived(() => this.#e.onMatch ? this.#e.onMatch : (e) => e.focus());
1732
+ #r = t.derived(() => this.#e.getCurrentItem ? this.#e.getCurrentItem : this.#e.getActiveElement);
1733
+ constructor(e) {
1734
+ this.#e = e, this.#t = Lr("", {
1735
+ afterMs: 1e3,
1736
+ getWindow: e.getWindow
1737
+ }), this.handleTypeaheadSearch = this.handleTypeaheadSearch.bind(this), this.resetTypeahead = this.resetTypeahead.bind(this);
1738
+ }
1739
+ handleTypeaheadSearch(e, n) {
1740
+ if (!n.length) return;
1741
+ this.#t.current = this.#t.current + e;
1742
+ let r = t.get(this.#r)(), i = n.find((e) => e === r)?.textContent?.trim() ?? "", a = Er(n.map((e) => e.textContent?.trim() ?? ""), this.#t.current, i), o = n.find((e) => e.textContent?.trim() === a);
1743
+ return o && t.get(this.#n)(o), o;
1744
+ }
1745
+ resetTypeahead() {
1746
+ this.#t.current = "";
1747
+ }
1748
+ get search() {
1749
+ return this.#t.current;
1750
+ }
1751
+ };
1752
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-anchor.svelte
1753
+ function zr(e, n) {
1754
+ t.push(n, !0);
1755
+ let r = t.prop(n, "tooltip", 3, !1);
1756
+ jr.create({
1757
+ id: v(() => n.id),
1758
+ virtualEl: v(() => n.virtualEl),
1759
+ ref: s(() => n.ref)
1760
+ }, s(() => r()));
1761
+ var i = t.comment(), a = t.first_child(i);
1762
+ t.snippet(a, () => n.children ?? t.noop), t.append(e, i), t.pop();
1763
+ }
1764
+ // ../node_modules/.bun/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
1765
+ var Br = [
1766
+ "top",
1767
+ "right",
1768
+ "bottom",
1769
+ "left"
1770
+ ], L = Math.min, R = Math.max, Vr = Math.round, Hr = Math.floor, z = (e) => ({
1771
+ x: e,
1772
+ y: e
1773
+ }), Ur = {
1774
+ left: "right",
1775
+ right: "left",
1776
+ bottom: "top",
1777
+ top: "bottom"
1778
+ };
1779
+ function Wr(e, t, n) {
1780
+ return R(e, L(t, n));
1781
+ }
1782
+ function B(e, t) {
1783
+ return typeof e == "function" ? e(t) : e;
1784
+ }
1785
+ function V(e) {
1786
+ return e.split("-")[0];
1787
+ }
1788
+ function H(e) {
1789
+ return e.split("-")[1];
1790
+ }
1791
+ function Gr(e) {
1792
+ return e === "x" ? "y" : "x";
1793
+ }
1794
+ function Kr(e) {
1795
+ return e === "y" ? "height" : "width";
1796
+ }
1797
+ function U(e) {
1798
+ let t = e[0];
1799
+ return t === "t" || t === "b" ? "y" : "x";
1800
+ }
1801
+ function qr(e) {
1802
+ return Gr(U(e));
1803
+ }
1804
+ function Jr(e, t, n) {
1805
+ n === void 0 && (n = !1);
1806
+ let r = H(e), i = qr(e), a = Kr(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1807
+ return t.reference[a] > t.floating[a] && (o = ri(o)), [o, ri(o)];
1808
+ }
1809
+ function Yr(e) {
1810
+ let t = ri(e);
1811
+ return [
1812
+ Xr(e),
1813
+ t,
1814
+ Xr(t)
1815
+ ];
1816
+ }
1817
+ function Xr(e) {
1818
+ return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
1819
+ }
1820
+ var Zr = ["left", "right"], Qr = ["right", "left"], $r = ["top", "bottom"], ei = ["bottom", "top"];
1821
+ function ti(e, t, n) {
1822
+ switch (e) {
1823
+ case "top":
1824
+ case "bottom": return n ? t ? Qr : Zr : t ? Zr : Qr;
1825
+ case "left":
1826
+ case "right": return t ? $r : ei;
1827
+ default: return [];
1828
+ }
1829
+ }
1830
+ function ni(e, t, n, r) {
1831
+ let i = H(e), a = ti(V(e), n === "start", r);
1832
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Xr)))), a;
1833
+ }
1834
+ function ri(e) {
1835
+ let t = V(e);
1836
+ return Ur[t] + e.slice(t.length);
1837
+ }
1838
+ function ii(e) {
1839
+ return {
1840
+ top: e.top ?? 0,
1841
+ right: e.right ?? 0,
1842
+ bottom: e.bottom ?? 0,
1843
+ left: e.left ?? 0
1844
+ };
1845
+ }
1846
+ function ai(e) {
1847
+ return typeof e == "number" ? {
1848
+ top: e,
1849
+ right: e,
1850
+ bottom: e,
1851
+ left: e
1852
+ } : ii(e);
1853
+ }
1854
+ function oi(e) {
1855
+ let { x: t, y: n, width: r, height: i } = e;
1856
+ return {
1857
+ width: r,
1858
+ height: i,
1859
+ top: n,
1860
+ left: t,
1861
+ right: t + r,
1862
+ bottom: n + i,
1863
+ x: t,
1864
+ y: n
1865
+ };
1866
+ }
1867
+ // ../node_modules/.bun/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
1868
+ function si(e, t, n) {
1869
+ let { reference: r, floating: i } = e, a = U(t), o = qr(t), s = Kr(o), c = V(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
1870
+ switch (c) {
1871
+ case "top":
1872
+ p = {
1873
+ x: u,
1874
+ y: r.y - i.height
1875
+ };
1876
+ break;
1877
+ case "bottom":
1878
+ p = {
1879
+ x: u,
1880
+ y: r.y + r.height
1881
+ };
1882
+ break;
1883
+ case "right":
1884
+ p = {
1885
+ x: r.x + r.width,
1886
+ y: d
1887
+ };
1888
+ break;
1889
+ case "left":
1890
+ p = {
1891
+ x: r.x - i.width,
1892
+ y: d
1893
+ };
1894
+ break;
1895
+ default: p = {
1896
+ x: r.x,
1897
+ y: r.y
1898
+ };
1899
+ }
1900
+ let m = H(t);
1901
+ return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
1902
+ }
1903
+ async function ci(e, t) {
1904
+ t === void 0 && (t = {});
1905
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = B(t, e), p = ai(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = oi(await i.getClippingRect({
1906
+ element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
1907
+ boundary: c,
1908
+ rootBoundary: l,
1909
+ strategy: s
1910
+ })), g = u === "floating" ? {
1911
+ x: n,
1912
+ y: r,
1913
+ width: a.floating.width,
1914
+ height: a.floating.height
1915
+ } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
1916
+ x: 1,
1917
+ y: 1
1918
+ }, y = oi(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1919
+ elements: o,
1920
+ rect: g,
1921
+ offsetParent: _,
1922
+ strategy: s
1923
+ }) : g);
1924
+ return {
1925
+ top: (h.top - y.top + p.top) / v.y,
1926
+ bottom: (y.bottom - h.bottom + p.bottom) / v.y,
1927
+ left: (h.left - y.left + p.left) / v.x,
1928
+ right: (y.right - h.right + p.right) / v.x
1929
+ };
1930
+ }
1931
+ var li = 50, ui = async (e, t, n) => {
1932
+ let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
1933
+ ...o,
1934
+ detectOverflow: ci
1935
+ }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
1936
+ reference: e,
1937
+ floating: t,
1938
+ strategy: i
1939
+ }), { x: u, y: d } = si(l, r, c), f = r, p = 0, m = {};
1940
+ for (let n = 0; n < a.length; n++) {
1941
+ let h = a[n];
1942
+ if (!h) continue;
1943
+ let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
1944
+ x: u,
1945
+ y: d,
1946
+ initialPlacement: r,
1947
+ placement: f,
1948
+ strategy: i,
1949
+ middlewareData: m,
1950
+ rects: l,
1951
+ platform: s,
1952
+ elements: {
1953
+ reference: e,
1954
+ floating: t
1955
+ }
1956
+ });
1957
+ u = v ?? u, d = y ?? d, m[g] = {
1958
+ ...m[g],
1959
+ ...b
1960
+ }, x && p < li && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
1961
+ reference: e,
1962
+ floating: t,
1963
+ strategy: i
1964
+ }) : x.rects), {x: u, y: d} = si(l, f, c)), n = -1);
1965
+ }
1966
+ return {
1967
+ x: u,
1968
+ y: d,
1969
+ placement: f,
1970
+ strategy: i,
1971
+ middlewareData: m
1972
+ };
1973
+ }, di = (e) => ({
1974
+ name: "arrow",
1975
+ options: e,
1976
+ async fn(t) {
1977
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = B(e, t) || {};
1978
+ if (l == null) return {};
1979
+ let d = ai(u), f = {
1980
+ x: n,
1981
+ y: r
1982
+ }, p = qr(i), m = Kr(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
1983
+ C && await (o.isElement == null ? void 0 : o.isElement(S)) || (C = s.floating[y] || a.floating[m]);
1984
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = L(d[_], T), ee = L(d[v], T), D = C - h[m] - ee, O = C / 2 - h[m] / 2 + w, te = Wr(E, O, D), ne = !c.arrow && H(i) != null && O !== te && a.reference[m] / 2 - (O < E ? E : ee) - h[m] / 2 < 0, re = ne ? O < E ? O - E : O - D : 0;
1985
+ return {
1986
+ [p]: f[p] + re,
1987
+ data: {
1988
+ [p]: te,
1989
+ centerOffset: O - te - re,
1990
+ ...ne && { alignmentOffset: re }
1991
+ },
1992
+ reset: ne
1993
+ };
1994
+ }
1995
+ }), fi = function(e) {
1996
+ return e === void 0 && (e = {}), {
1997
+ name: "flip",
1998
+ options: e,
1999
+ async fn(t) {
2000
+ var n;
2001
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = B(e, t);
2002
+ if ((n = i.arrow) != null && n.alignmentOffset) return {};
2003
+ let g = V(r), _ = U(o), v = V(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [ri(o)] : Yr(o)), x = p !== "none";
2004
+ !d && x && b.push(...ni(o, m, p, y));
2005
+ let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
2006
+ if (l && w.push(C[g]), u) {
2007
+ let e = Jr(r, a, y);
2008
+ w.push(C[e[0]], C[e[1]]);
2009
+ }
2010
+ if (T = [...T, {
2011
+ placement: r,
2012
+ overflows: w
2013
+ }], !w.every((e) => e <= 0)) {
2014
+ let e = (i.flip?.index || 0) + 1, t = S[e];
2015
+ if (t && (u !== "alignment" || _ === U(t) || T.every((e) => U(e.placement) !== _ || e.overflows[0] > 0))) return {
2016
+ data: {
2017
+ index: e,
2018
+ overflows: T
2019
+ },
2020
+ reset: { placement: t }
2021
+ };
2022
+ let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
2023
+ if (!n) switch (f) {
2024
+ case "bestFit": {
2025
+ let e = T.filter((e) => {
2026
+ if (x) {
2027
+ let t = U(e.placement);
2028
+ return t === _ || t === "y";
2029
+ }
2030
+ return !0;
2031
+ }).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
2032
+ e && (n = e);
2033
+ break;
2034
+ }
2035
+ case "initialPlacement": n = o;
2036
+ }
2037
+ if (r !== n) return { reset: { placement: n } };
2038
+ }
2039
+ return {};
2040
+ }
2041
+ };
2042
+ };
2043
+ function pi(e, t) {
2044
+ return {
2045
+ top: e.top - t.height,
2046
+ right: e.right - t.width,
2047
+ bottom: e.bottom - t.height,
2048
+ left: e.left - t.width
2049
+ };
2050
+ }
2051
+ function mi(e) {
2052
+ return Br.some((t) => e[t] >= 0);
2053
+ }
2054
+ var hi = function(e) {
2055
+ return e === void 0 && (e = {}), {
2056
+ name: "hide",
2057
+ options: e,
2058
+ async fn(t) {
2059
+ let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = B(e, t);
2060
+ switch (i) {
2061
+ case "referenceHidden": {
2062
+ let e = pi(await r.detectOverflow(t, {
2063
+ ...a,
2064
+ elementContext: "reference"
2065
+ }), n.reference);
2066
+ return { data: {
2067
+ referenceHiddenOffsets: e,
2068
+ referenceHidden: mi(e)
2069
+ } };
2070
+ }
2071
+ case "escaped": {
2072
+ let e = pi(await r.detectOverflow(t, {
2073
+ ...a,
2074
+ altBoundary: !0
2075
+ }), n.floating);
2076
+ return { data: {
2077
+ escapedOffsets: e,
2078
+ escaped: mi(e)
2079
+ } };
2080
+ }
2081
+ default: return {};
2082
+ }
2083
+ }
2084
+ };
2085
+ }, gi = /*#__PURE__*/ new Set(["left", "top"]);
2086
+ async function _i(e, t) {
2087
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = V(n), s = H(n), c = U(n) === "y", l = gi.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = B(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
2088
+ mainAxis: d,
2089
+ crossAxis: 0,
2090
+ alignmentAxis: null
2091
+ } : {
2092
+ mainAxis: d.mainAxis || 0,
2093
+ crossAxis: d.crossAxis || 0,
2094
+ alignmentAxis: d.alignmentAxis
2095
+ };
2096
+ return s && typeof m == "number" && (p = s === "end" ? m * -1 : m), c ? {
2097
+ x: p * u,
2098
+ y: f * l
2099
+ } : {
2100
+ x: f * l,
2101
+ y: p * u
2102
+ };
2103
+ }
2104
+ var vi = function(e) {
2105
+ return e === void 0 && (e = 0), {
2106
+ name: "offset",
2107
+ options: e,
2108
+ async fn(t) {
2109
+ var n;
2110
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await _i(t, e);
2111
+ return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
2112
+ x: r + s.x,
2113
+ y: i + s.y,
2114
+ data: {
2115
+ ...s,
2116
+ placement: a
2117
+ }
2118
+ };
2119
+ }
2120
+ };
2121
+ }, yi = function(e) {
2122
+ return e === void 0 && (e = {}), {
2123
+ name: "shift",
2124
+ options: e,
2125
+ async fn(t) {
2126
+ let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: o = !0, crossAxis: s = !1, limiter: c = { fn: (e) => {
2127
+ let { x: t, y: n } = e;
2128
+ return {
2129
+ x: t,
2130
+ y: n
2131
+ };
2132
+ } }, ...l } = B(e, t), u = {
2133
+ x: n,
2134
+ y: r
2135
+ }, d = await a.detectOverflow(t, l), f = U(i), p = Gr(f), m = u[p], h = u[f], g = (e, t) => Wr(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
2136
+ o && (m = g(p, m)), s && (h = g(f, h));
2137
+ let _ = c.fn({
2138
+ ...t,
2139
+ [p]: m,
2140
+ [f]: h
2141
+ });
2142
+ return {
2143
+ ..._,
2144
+ data: {
2145
+ x: _.x - n,
2146
+ y: _.y - r,
2147
+ enabled: {
2148
+ [p]: o,
2149
+ [f]: s
2150
+ }
2151
+ }
2152
+ };
2153
+ }
2154
+ };
2155
+ }, bi = function(e) {
2156
+ return e === void 0 && (e = {}), {
2157
+ options: e,
2158
+ fn(t) {
2159
+ let { x: n, y: r, placement: i, rects: a, middlewareData: o } = t, { offset: s = 0, mainAxis: c = !0, crossAxis: l = !0 } = B(e, t), u = {
2160
+ x: n,
2161
+ y: r
2162
+ }, d = U(i), f = Gr(d), p = u[f], m = u[d], h = B(s, t), g = typeof h == "number" ? {
2163
+ mainAxis: h,
2164
+ crossAxis: 0
2165
+ } : {
2166
+ mainAxis: h.mainAxis ?? 0,
2167
+ crossAxis: h.crossAxis ?? 0
2168
+ };
2169
+ if (c) {
2170
+ let e = f === "y" ? "height" : "width", t = a.reference[f] - a.floating[e] + g.mainAxis, n = a.reference[f] + a.reference[e] - g.mainAxis;
2171
+ p < t ? p = t : p > n && (p = n);
2172
+ }
2173
+ if (l) {
2174
+ let e = f === "y" ? "width" : "height", t = gi.has(V(i)), n = a.reference[d] - a.floating[e] + (t && o.offset?.[d] || 0) + (t ? 0 : g.crossAxis), r = a.reference[d] + a.reference[e] + (t ? 0 : o.offset?.[d] || 0) - (t ? g.crossAxis : 0);
2175
+ m < n ? m = n : m > r && (m = r);
2176
+ }
2177
+ return {
2178
+ [f]: p,
2179
+ [d]: m
2180
+ };
2181
+ }
2182
+ };
2183
+ }, xi = function(e) {
2184
+ return e === void 0 && (e = {}), {
2185
+ name: "size",
2186
+ options: e,
2187
+ async fn(t) {
2188
+ let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = B(e, t), c = await i.detectOverflow(t, s), l = V(n), u = H(n), d = U(n) === "y", { width: f, height: p } = r.floating, m, h;
2189
+ l === "top" || l === "bottom" ? (m = l, h = u === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (h = l, m = u === "end" ? "top" : "bottom");
2190
+ let g = p - c.top - c.bottom, _ = f - c.left - c.right, v = L(p - c[m], g), y = L(f - c[h], _), b = t.middlewareData.shift, x = !b, S = v, C = y;
2191
+ b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 * R(c.left, c.right) : S = p - 2 * R(c.top, c.bottom)), await o({
2192
+ ...t,
2193
+ availableWidth: C,
2194
+ availableHeight: S
2195
+ });
2196
+ let w = await i.getDimensions(a.floating);
2197
+ return f !== w.width || p !== w.height ? { reset: { rects: !0 } } : {};
2198
+ }
2199
+ };
2200
+ };
2201
+ // ../node_modules/.bun/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
2202
+ function Si() {
2203
+ return typeof window < "u";
2204
+ }
2205
+ function W(e) {
2206
+ return Ci(e) ? (e.nodeName || "").toLowerCase() : "#document";
2207
+ }
2208
+ function G(e) {
2209
+ var t;
2210
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
2211
+ }
2212
+ function K(e) {
2213
+ return ((Ci(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
2214
+ }
2215
+ function Ci(e) {
2216
+ return Si() ? e instanceof Node || e instanceof G(e).Node : !1;
2217
+ }
2218
+ function q(e) {
2219
+ return Si() ? e instanceof Element || e instanceof G(e).Element : !1;
2220
+ }
2221
+ function J(e) {
2222
+ return Si() ? e instanceof HTMLElement || e instanceof G(e).HTMLElement : !1;
2223
+ }
2224
+ function wi(e) {
2225
+ return !Si() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
2226
+ }
2227
+ function Ti(e) {
2228
+ let { overflow: t, overflowX: n, overflowY: r, display: i } = X(e);
2229
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
2230
+ }
2231
+ function Ei(e) {
2232
+ return /^(table|td|th)$/.test(W(e));
2233
+ }
2234
+ function Di(e) {
2235
+ try {
2236
+ if (e.matches(":popover-open")) return !0;
2237
+ } catch {}
2238
+ try {
2239
+ return e.matches(":modal");
2240
+ } catch {
2241
+ return !1;
2242
+ }
2243
+ }
2244
+ var Oi = /transform|translate|scale|rotate|perspective|filter/, ki = /paint|layout|strict|content/, Y = (e) => !!e && e !== "none", Ai;
2245
+ function ji(e) {
2246
+ let t = q(e) ? X(e) : e;
2247
+ return Y(t.transform) || Y(t.translate) || Y(t.scale) || Y(t.rotate) || Y(t.perspective) || !Ni() && (Y(t.backdropFilter) || Y(t.filter)) || Oi.test(t.willChange || "") || ki.test(t.contain || "");
2248
+ }
2249
+ function Mi(e) {
2250
+ let t = Z(e);
2251
+ for (; J(t) && !Pi(t);) {
2252
+ if (ji(t)) return t;
2253
+ if (Di(t)) return null;
2254
+ t = Z(t);
2255
+ }
2256
+ return null;
2257
+ }
2258
+ function Ni() {
2259
+ return Ai ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Ai;
2260
+ }
2261
+ function Pi(e) {
2262
+ return /^(html|body|#document)$/.test(W(e));
2263
+ }
2264
+ function X(e) {
2265
+ return G(e).getComputedStyle(e);
2266
+ }
2267
+ function Fi(e) {
2268
+ return q(e) ? {
2269
+ scrollLeft: e.scrollLeft,
2270
+ scrollTop: e.scrollTop
2271
+ } : {
2272
+ scrollLeft: e.scrollX,
2273
+ scrollTop: e.scrollY
2274
+ };
2275
+ }
2276
+ function Z(e) {
2277
+ if (W(e) === "html") return e;
2278
+ let t = e.assignedSlot || e.parentNode || wi(e) && e.host || K(e);
2279
+ return wi(t) ? t.host : t;
2280
+ }
2281
+ function Ii(e) {
2282
+ let t = Z(e);
2283
+ return Pi(t) ? (e.ownerDocument || e).body : J(t) && Ti(t) ? t : Ii(t);
2284
+ }
2285
+ function Li(e, t, n) {
2286
+ t === void 0 && (t = []), n === void 0 && (n = !0);
2287
+ let r = Ii(e), i = r === e.ownerDocument?.body, a = G(r);
2288
+ if (i) {
2289
+ let e = Ri(a);
2290
+ return t.concat(a, a.visualViewport || [], Ti(r) ? r : [], e && n ? Li(e) : []);
2291
+ }
2292
+ return t.concat(r, Li(r, [], n));
2293
+ }
2294
+ function Ri(e) {
2295
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2296
+ }
2297
+ // ../node_modules/.bun/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
2298
+ function zi(e) {
2299
+ let t = X(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = J(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Vr(n) !== a || Vr(r) !== o;
2300
+ return s && (n = a, r = o), {
2301
+ width: n,
2302
+ height: r,
2303
+ $: s
2304
+ };
2305
+ }
2306
+ function Bi(e) {
2307
+ return q(e) ? e : e.contextElement;
2308
+ }
2309
+ function Q(e) {
2310
+ let t = Bi(e);
2311
+ if (!J(t)) return z(1);
2312
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = zi(t), o = (a ? Vr(n.width) : n.width) / r, s = (a ? Vr(n.height) : n.height) / i;
2313
+ return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
2314
+ x: o,
2315
+ y: s
2316
+ };
2317
+ }
2318
+ var Vi = /*#__PURE__*/ z(0);
2319
+ function Hi(e) {
2320
+ let t = G(e);
2321
+ return !Ni() || !t.visualViewport ? Vi : {
2322
+ x: t.visualViewport.offsetLeft,
2323
+ y: t.visualViewport.offsetTop
2324
+ };
2325
+ }
2326
+ function Ui(e, t, n) {
2327
+ return t === void 0 && (t = !1), !!n && t && n === G(e);
2328
+ }
2329
+ function $(e, t, n, r) {
2330
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
2331
+ let i = e.getBoundingClientRect(), a = Bi(e), o = z(1);
2332
+ t && (r ? q(r) && (o = Q(r)) : o = Q(e));
2333
+ let s = Ui(a, n, r) ? Hi(a) : z(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
2334
+ if (a && r) {
2335
+ let e = G(a), t = q(r) ? G(r) : r, n = e, i = Ri(n);
2336
+ for (; i && t !== n;) {
2337
+ let e = Q(i), t = i.getBoundingClientRect(), r = X(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
2338
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = G(i), i = Ri(n);
2339
+ }
2340
+ }
2341
+ return oi({
2342
+ width: u,
2343
+ height: d,
2344
+ x: c,
2345
+ y: l
2346
+ });
2347
+ }
2348
+ function Wi(e, t) {
2349
+ let n = Fi(e).scrollLeft;
2350
+ return t ? t.left + n : $(K(e)).left + n;
2351
+ }
2352
+ function Gi(e, t) {
2353
+ let n = e.getBoundingClientRect();
2354
+ return {
2355
+ x: n.left + t.scrollLeft - Wi(e, n),
2356
+ y: n.top + t.scrollTop
2357
+ };
2358
+ }
2359
+ function Ki(e) {
2360
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = K(r), s = t ? Di(t.floating) : !1;
2361
+ if (r === o || s && a) return n;
2362
+ let c = {
2363
+ scrollLeft: 0,
2364
+ scrollTop: 0
2365
+ }, l = z(1), u = z(0), d = J(r);
2366
+ if ((d || !a) && ((W(r) !== "body" || Ti(o)) && (c = Fi(r)), d)) {
2367
+ let e = $(r);
2368
+ l = Q(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
2369
+ }
2370
+ let f = o && !d && !a ? Gi(o, c) : z(0);
2371
+ return {
2372
+ width: n.width * l.x,
2373
+ height: n.height * l.y,
2374
+ x: n.x * l.x - c.scrollLeft * l.x + u.x + f.x,
2375
+ y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
2376
+ };
2377
+ }
2378
+ function qi(e) {
2379
+ return e.getClientRects ? Array.from(e.getClientRects()) : [];
2380
+ }
2381
+ function Ji(e) {
2382
+ let t = Fi(e), n = e.ownerDocument.body, r = R(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = R(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Wi(e), o = -t.scrollTop;
2383
+ return X(n).direction === "rtl" && (a += R(e.clientWidth, n.clientWidth) - r), {
2384
+ width: r,
2385
+ height: i,
2386
+ x: a,
2387
+ y: o
2388
+ };
2389
+ }
2390
+ var Yi = 25;
2391
+ function Xi(e, t, n) {
2392
+ n === void 0 && (n = "viewport");
2393
+ let r = n === "layoutViewport", i = G(e), a = K(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
2394
+ if (o) {
2395
+ let e = !Ni() || t === "fixed";
2396
+ r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
2397
+ }
2398
+ if (Wi(a) <= 0) {
2399
+ let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
2400
+ o <= Yi && (s -= o);
2401
+ }
2402
+ return {
2403
+ width: s,
2404
+ height: c,
2405
+ x: l,
2406
+ y: u
2407
+ };
2408
+ }
2409
+ function Zi(e, t) {
2410
+ let n = $(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Q(e);
2411
+ return {
2412
+ width: e.clientWidth * a.x,
2413
+ height: e.clientHeight * a.y,
2414
+ x: i * a.x,
2415
+ y: r * a.y
2416
+ };
2417
+ }
2418
+ function Qi(e, t, n) {
2419
+ let r;
2420
+ if (t === "viewport" || t === "layoutViewport") r = Xi(e, n, t);
2421
+ else if (t === "document") r = Ji(K(e));
2422
+ else if (q(t)) r = Zi(t, n);
2423
+ else {
2424
+ let n = Hi(e);
2425
+ r = {
2426
+ x: t.x - n.x,
2427
+ y: t.y - n.y,
2428
+ width: t.width,
2429
+ height: t.height
2430
+ };
2431
+ }
2432
+ return oi(r);
2433
+ }
2434
+ function $i(e, t) {
2435
+ let n = t.get(e);
2436
+ if (n) return n;
2437
+ let r = Li(e, [], !1).filter((e) => q(e) && W(e) !== "body"), i = null, a = X(e).position === "fixed", o = a ? Z(e) : e;
2438
+ for (; q(o) && !Pi(o);) {
2439
+ let e = X(o), t = ji(o), n = i ? i.position : a ? "fixed" : "";
2440
+ !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = Z(o);
2441
+ }
2442
+ return t.set(e, r), r;
2443
+ }
2444
+ function ea(e) {
2445
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Di(t) ? [] : $i(t, this._c) : [].concat(n), r], o = Qi(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
2446
+ for (let e = 1; e < a.length; e++) {
2447
+ let n = Qi(t, a[e], i);
2448
+ s = R(n.top, s), c = L(n.right, c), l = L(n.bottom, l), u = R(n.left, u);
2449
+ }
2450
+ return {
2451
+ width: c - u,
2452
+ height: l - s,
2453
+ x: u,
2454
+ y: s
2455
+ };
2456
+ }
2457
+ function ta(e) {
2458
+ let { width: t, height: n } = zi(e);
2459
+ return {
2460
+ width: t,
2461
+ height: n
2462
+ };
2463
+ }
2464
+ function na(e, t, n) {
2465
+ let r = J(t), i = K(t), a = n === "fixed", o = $(e, !0, a, t), s = {
2466
+ scrollLeft: 0,
2467
+ scrollTop: 0
2468
+ }, c = z(0);
2469
+ if ((r || !a) && ((W(t) !== "body" || Ti(i)) && (s = Fi(t)), r)) {
2470
+ let e = $(t, !0, a, t);
2471
+ c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
2472
+ }
2473
+ !r && i && (c.x = Wi(i));
2474
+ let l = i && !r && !a ? Gi(i, s) : z(0);
2475
+ return {
2476
+ x: o.left + s.scrollLeft - c.x - l.x,
2477
+ y: o.top + s.scrollTop - c.y - l.y,
2478
+ width: o.width,
2479
+ height: o.height
2480
+ };
2481
+ }
2482
+ function ra(e) {
2483
+ return X(e).position === "static";
2484
+ }
2485
+ function ia(e, t) {
2486
+ if (!J(e) || X(e).position === "fixed") return null;
2487
+ if (t) return t(e);
2488
+ let n = e.offsetParent;
2489
+ return K(e) === n && (n = n.ownerDocument.body), n;
2490
+ }
2491
+ function aa(e, t) {
2492
+ let n = G(e);
2493
+ if (Di(e)) return n;
2494
+ if (!J(e)) {
2495
+ let t = Z(e);
2496
+ for (; t && !Pi(t);) {
2497
+ if (q(t) && !ra(t)) return t;
2498
+ t = Z(t);
2499
+ }
2500
+ return n;
2501
+ }
2502
+ let r = ia(e, t);
2503
+ for (; r && Ei(r) && ra(r);) r = ia(r, t);
2504
+ return r && Pi(r) && ra(r) && !ji(r) ? n : r || Mi(e) || n;
2505
+ }
2506
+ var oa = async function(e) {
2507
+ let t = this.getOffsetParent || aa, n = await (0, this.getDimensions)(e.floating);
2508
+ return {
2509
+ reference: na(e.reference, await t(e.floating), e.strategy),
2510
+ floating: {
2511
+ x: 0,
2512
+ y: 0,
2513
+ width: n.width,
2514
+ height: n.height
2515
+ }
2516
+ };
2517
+ };
2518
+ function sa(e) {
2519
+ return X(e).direction === "rtl";
2520
+ }
2521
+ var ca = {
2522
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ki,
2523
+ getDocumentElement: K,
2524
+ getClippingRect: ea,
2525
+ getOffsetParent: aa,
2526
+ getElementRects: oa,
2527
+ getClientRects: qi,
2528
+ getDimensions: ta,
2529
+ getScale: Q,
2530
+ isElement: q,
2531
+ isRTL: sa
2532
+ };
2533
+ function la(e, t) {
2534
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2535
+ }
2536
+ function ua(e, t, n) {
2537
+ let r = null, i, a = K(e);
2538
+ function o() {
2539
+ var e;
2540
+ clearTimeout(i), (e = r) == null || e.disconnect(), r = null;
2541
+ }
2542
+ function s(n, c) {
2543
+ n === void 0 && (n = !1), c === void 0 && (c = 1), o();
2544
+ let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
2545
+ if (n || t(), !f || !p) return;
2546
+ let m = Hr(d), h = Hr(a.clientWidth - (u + f)), g = Hr(a.clientHeight - (d + p)), _ = Hr(u), v = {
2547
+ rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
2548
+ threshold: R(0, L(1, c)) || 1
2549
+ }, y = !0;
2550
+ function b(t) {
2551
+ let n = t[0].intersectionRatio;
2552
+ if (!la(l, e.getBoundingClientRect())) return s();
2553
+ if (n !== c) {
2554
+ if (!y) return s();
2555
+ n ? s(!1, n) : i = setTimeout(() => {
2556
+ s(!1, 1e-7);
2557
+ }, 1e3);
2558
+ }
2559
+ y = !1;
2560
+ }
2561
+ try {
2562
+ r = new IntersectionObserver(b, {
2563
+ ...v,
2564
+ root: a.ownerDocument
2565
+ });
2566
+ } catch {
2567
+ r = new IntersectionObserver(b, v);
2568
+ }
2569
+ r.observe(e);
2570
+ }
2571
+ let c = G(e), l = () => s(n);
2572
+ return c.addEventListener("resize", l), s(!0), () => {
2573
+ c.removeEventListener("resize", l), o();
2574
+ };
2575
+ }
2576
+ function da(e, t, n, r) {
2577
+ r === void 0 && (r = {});
2578
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Bi(e), u = i || a ? [...l ? Li(l) : [], ...t ? Li(t) : []] : [];
2579
+ u.forEach((e) => {
2580
+ i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
2581
+ });
2582
+ let d = l && s ? ua(l, n, a) : null, f = -1, p = null;
2583
+ o && (p = new ResizeObserver((e) => {
2584
+ let [r] = e;
2585
+ r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
2586
+ var e;
2587
+ (e = p) == null || e.observe(t);
2588
+ })), n();
2589
+ }), l && !c && p.observe(l), t && p.observe(t));
2590
+ let m, h = c ? $(e) : null;
2591
+ c && g();
2592
+ function g() {
2593
+ let t = $(e);
2594
+ h && !la(h, t) && n(), h = t, m = requestAnimationFrame(g);
2595
+ }
2596
+ return n(), () => {
2597
+ var e;
2598
+ u.forEach((e) => {
2599
+ i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
2600
+ }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
2601
+ };
2602
+ }
2603
+ var fa = vi, pa = yi, ma = fi, ha = xi, ga = hi, _a = di, va = bi, ya = (e, t, n) => {
2604
+ let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
2605
+ ...ca,
2606
+ ...i.platform,
2607
+ _c: r
2608
+ };
2609
+ return ui(e, t, {
2610
+ ...i,
2611
+ platform: a
2612
+ });
2613
+ };
2614
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/floating-svelte/use-floating.svelte.js
2615
+ function ba(e) {
2616
+ let n = e.whileElementsMounted, r = t.derived(() => I(e.open) ?? !0), i = t.derived(() => I(e.middleware)), a = t.derived(() => I(e.transform) ?? !0), o = t.derived(() => I(e.placement) ?? "bottom"), s = t.derived(() => I(e.strategy) ?? "absolute"), c = t.derived(() => I(e.sideOffset) ?? 0), l = t.derived(() => I(e.alignOffset) ?? 0), u = e.reference, d;
2617
+ t.user_pre_effect(() => {
2618
+ d = {
2619
+ middleware: t.get(i),
2620
+ placement: t.get(o),
2621
+ strategy: t.get(s),
2622
+ open: t.get(r),
2623
+ sideOffset: t.get(c),
2624
+ alignOffset: t.get(l)
2625
+ };
2626
+ });
2627
+ let f = t.state(0), p = t.state(0), m = w(null), h = t.state(t.proxy(t.get(s))), g = t.state(t.proxy(t.get(o))), _ = t.state(t.proxy({})), v = t.state(!1), y = !1, b = 0, x = !1, S = t.derived(() => {
2628
+ let e = m.current ? Pr(m.current, t.get(f)) : t.get(f), n = m.current ? Pr(m.current, t.get(p)) : t.get(p);
2629
+ return t.get(a) ? {
2630
+ position: t.get(h),
2631
+ left: "0",
2632
+ top: "0",
2633
+ transform: `translate(${e}px, ${n}px)`,
2634
+ ...m.current && Nr(m.current) >= 1.5 && { willChange: "transform" }
2635
+ } : {
2636
+ position: t.get(h),
2637
+ left: `${e}px`,
2638
+ top: `${n}px`
2639
+ };
2640
+ }), C;
2641
+ function T() {
2642
+ if (x || u.current === null || m.current === null) return;
2643
+ let e = u.current, n = m.current, r = ++b;
2644
+ ya(e, n, {
2645
+ middleware: d.middleware,
2646
+ placement: d.placement,
2647
+ strategy: d.strategy
2648
+ }).then((i) => {
2649
+ if (r === b && u.current === e && m.current === n) {
2650
+ if (xa(e)) t.set(_, {
2651
+ ...t.get(_),
2652
+ hide: {
2653
+ ...t.get(_).hide,
2654
+ referenceHidden: !0
2655
+ }
2656
+ }, !0);
2657
+ else {
2658
+ if (!d.open && t.get(f) !== 0 && t.get(p) !== 0) {
2659
+ let e = Math.max(Math.abs(d.sideOffset), Math.abs(d.alignOffset), 15);
2660
+ if (i.x <= e && i.y <= e) return;
2661
+ }
2662
+ t.set(f, i.x, !0), t.set(p, i.y, !0), t.set(h, i.strategy, !0), t.set(g, i.placement, !0), t.set(_, i.middlewareData, !0), t.set(v, !0);
2663
+ }
2664
+ }
2665
+ });
2666
+ }
2667
+ function E() {
2668
+ typeof C == "function" && (C(), C = void 0), b++;
2669
+ }
2670
+ function ee() {
2671
+ E(), n === void 0 ? (D(), T()) : t.get(r) && u.current !== null && m.current !== null && (D(), C = n(u.current, m.current, T));
2672
+ }
2673
+ function D() {
2674
+ return [
2675
+ t.get(i),
2676
+ t.get(o),
2677
+ t.get(s)
2678
+ ];
2679
+ }
2680
+ function O() {
2681
+ !t.get(r) && m.current === null && t.set(v, !1);
2682
+ }
2683
+ function te() {
2684
+ return [
2685
+ t.get(i),
2686
+ t.get(o),
2687
+ t.get(s),
2688
+ t.get(c),
2689
+ t.get(l),
2690
+ t.get(r)
2691
+ ];
2692
+ }
2693
+ return t.user_effect(() => {
2694
+ n === void 0 && t.get(r) && (D(), T());
2695
+ }), t.user_effect(ee), t.user_effect(() => {
2696
+ n !== void 0 && (te(), t.get(r) && t.get(v) ? y ? T() : y = !0 : y = !1);
2697
+ }), t.user_effect(O), t.user_effect(() => () => {
2698
+ x = !0, E();
2699
+ }), {
2700
+ floating: m,
2701
+ reference: u,
2702
+ get strategy() {
2703
+ return t.get(h);
2704
+ },
2705
+ get placement() {
2706
+ return t.get(g);
2707
+ },
2708
+ get middlewareData() {
2709
+ return t.get(_);
2710
+ },
2711
+ get isPositioned() {
2712
+ return t.get(v);
2713
+ },
2714
+ get floatingStyles() {
2715
+ return t.get(S);
2716
+ },
2717
+ get update() {
2718
+ return T;
2719
+ }
2720
+ };
2721
+ }
2722
+ function xa(e) {
2723
+ return e instanceof Element ? !e.isConnected || e instanceof HTMLElement && e.hidden ? !0 : e.getClientRects().length === 0 : !1;
2724
+ }
2725
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js
2726
+ var Sa = {
2727
+ top: "bottom",
2728
+ right: "left",
2729
+ bottom: "top",
2730
+ left: "right"
2731
+ }, Ca = new He("Floating.Content"), wa = class e {
2732
+ static create(t, n = !1) {
2733
+ return n ? Ca.set(new e(t, kr.get())) : Ca.set(new e(t, Or.get()));
2734
+ }
2735
+ opts;
2736
+ root;
2737
+ contentRef = w(null);
2738
+ wrapperRef = w(null);
2739
+ arrowRef = w(null);
2740
+ contentAttachment = ct(this.contentRef);
2741
+ wrapperAttachment = ct(this.wrapperRef);
2742
+ arrowAttachment = ct(this.arrowRef);
2743
+ arrowId = w(ar());
2744
+ #e = t.derived(() => {
2745
+ if (typeof this.opts.style == "string") return Oe(this.opts.style);
2746
+ if (!this.opts.style) return {};
2747
+ });
2748
+ #t = void 0;
2749
+ #n = new Ke(() => this.arrowRef.current ?? void 0);
2750
+ #r = t.derived(() => this.#n?.width ?? 0);
2751
+ #i = t.derived(() => this.#n?.height ?? 0);
2752
+ #a = t.derived(() => this.opts.side?.current + (this.opts.align.current === "center" ? "" : `-${this.opts.align.current}`));
2753
+ #o = t.derived(() => (Array.isArray(this.opts.collisionBoundary.current) ? this.opts.collisionBoundary.current : [this.opts.collisionBoundary.current]).filter(It));
2754
+ #s = t.derived(() => t.get(this.#o).length > 0);
2755
+ get hasExplicitBoundaries() {
2756
+ return t.get(this.#s);
2757
+ }
2758
+ set hasExplicitBoundaries(e) {
2759
+ t.set(this.#s, e);
2760
+ }
2761
+ #c = t.derived(() => ({
2762
+ padding: this.opts.collisionPadding.current,
2763
+ boundary: t.get(this.#o),
2764
+ altBoundary: this.hasExplicitBoundaries
2765
+ }));
2766
+ get detectOverflowOptions() {
2767
+ return t.get(this.#c);
2768
+ }
2769
+ set detectOverflowOptions(e) {
2770
+ t.set(this.#c, e);
2771
+ }
2772
+ #l = t.state(void 0);
2773
+ #u = t.state(void 0);
2774
+ #d = t.state(void 0);
2775
+ #f = t.state(void 0);
2776
+ #p = t.derived(() => [
2777
+ fa({
2778
+ mainAxis: this.opts.sideOffset.current + t.get(this.#i),
2779
+ alignmentAxis: this.opts.alignOffset.current
2780
+ }),
2781
+ this.opts.avoidCollisions.current && pa({
2782
+ mainAxis: !0,
2783
+ crossAxis: !1,
2784
+ limiter: this.opts.sticky.current === "partial" ? va() : void 0,
2785
+ ...this.detectOverflowOptions
2786
+ }),
2787
+ this.opts.avoidCollisions.current && ma({ ...this.detectOverflowOptions }),
2788
+ ha({
2789
+ ...this.detectOverflowOptions,
2790
+ apply: ({ rects: e, availableWidth: n, availableHeight: r }) => {
2791
+ let { width: i, height: a } = e.reference;
2792
+ t.set(this.#l, n, !0), t.set(this.#u, r, !0), t.set(this.#d, i, !0), t.set(this.#f, a, !0);
2793
+ }
2794
+ }),
2795
+ this.arrowRef.current && _a({
2796
+ element: this.arrowRef.current,
2797
+ padding: this.opts.arrowPadding.current
2798
+ }),
2799
+ Ta({
2800
+ arrowWidth: t.get(this.#r),
2801
+ arrowHeight: t.get(this.#i)
2802
+ }),
2803
+ this.opts.hideWhenDetached.current && ga({
2804
+ strategy: "referenceHidden",
2805
+ ...this.detectOverflowOptions
2806
+ }),
2807
+ this.opts.hideWhenDetached.current && !this.hasExplicitBoundaries && {
2808
+ ...ga({
2809
+ strategy: "referenceHidden",
2810
+ boundary: "clippingAncestors"
2811
+ }),
2812
+ name: "hideClipping"
2813
+ }
2814
+ ].filter(Boolean));
2815
+ get middleware() {
2816
+ return t.get(this.#p);
2817
+ }
2818
+ set middleware(e) {
2819
+ t.set(this.#p, e);
2820
+ }
2821
+ floating;
2822
+ #m = t.derived(() => Da(this.floating.placement));
2823
+ get placedSide() {
2824
+ return t.get(this.#m);
2825
+ }
2826
+ set placedSide(e) {
2827
+ t.set(this.#m, e);
2828
+ }
2829
+ #h = t.derived(() => Oa(this.floating.placement));
2830
+ get placedAlign() {
2831
+ return t.get(this.#h);
2832
+ }
2833
+ set placedAlign(e) {
2834
+ t.set(this.#h, e);
2835
+ }
2836
+ #g = t.derived(() => this.floating.middlewareData.arrow?.x ?? 0);
2837
+ get arrowX() {
2838
+ return t.get(this.#g);
2839
+ }
2840
+ set arrowX(e) {
2841
+ t.set(this.#g, e);
2842
+ }
2843
+ #_ = t.derived(() => this.floating.middlewareData.arrow?.y ?? 0);
2844
+ get arrowY() {
2845
+ return t.get(this.#_);
2846
+ }
2847
+ set arrowY(e) {
2848
+ t.set(this.#_, e);
2849
+ }
2850
+ #v = t.derived(() => this.floating.middlewareData.arrow?.centerOffset !== 0);
2851
+ get cannotCenterArrow() {
2852
+ return t.get(this.#v);
2853
+ }
2854
+ set cannotCenterArrow(e) {
2855
+ t.set(this.#v, e);
2856
+ }
2857
+ #y = t.state("auto");
2858
+ get contentZIndex() {
2859
+ return t.get(this.#y);
2860
+ }
2861
+ set contentZIndex(e) {
2862
+ t.set(this.#y, e, !0);
2863
+ }
2864
+ #b = t.derived(() => Sa[this.placedSide]);
2865
+ get arrowBaseSide() {
2866
+ return t.get(this.#b);
2867
+ }
2868
+ set arrowBaseSide(e) {
2869
+ t.set(this.#b, e);
2870
+ }
2871
+ #x = t.derived(() => ({
2872
+ id: this.opts.wrapperId.current,
2873
+ "data-bits-floating-content-wrapper": "",
2874
+ style: {
2875
+ ...this.floating.floatingStyles,
2876
+ transform: this.floating.isPositioned ? this.floating.floatingStyles.transform : "translate(0, -200%)",
2877
+ minWidth: "max-content",
2878
+ zIndex: this.contentZIndex,
2879
+ "--bits-floating-transform-origin": `${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,
2880
+ "--bits-floating-available-width": `${t.get(this.#l)}px`,
2881
+ "--bits-floating-available-height": `${t.get(this.#u)}px`,
2882
+ "--bits-floating-anchor-width": `${t.get(this.#d)}px`,
2883
+ "--bits-floating-anchor-height": `${t.get(this.#f)}px`,
2884
+ ...(this.floating.middlewareData.hide?.referenceHidden || this.floating.middlewareData.hideClipping?.referenceHidden) && {
2885
+ visibility: "hidden",
2886
+ "pointer-events": "none"
2887
+ },
2888
+ ...t.get(this.#e)
2889
+ },
2890
+ dir: this.opts.dir.current,
2891
+ ...this.wrapperAttachment
2892
+ }));
2893
+ get wrapperProps() {
2894
+ return t.get(this.#x);
2895
+ }
2896
+ set wrapperProps(e) {
2897
+ t.set(this.#x, e);
2898
+ }
2899
+ #S = t.derived(() => ({
2900
+ "data-side": this.placedSide,
2901
+ "data-align": this.placedAlign,
2902
+ style: Fe({ ...t.get(this.#e) }),
2903
+ ...this.contentAttachment
2904
+ }));
2905
+ get props() {
2906
+ return t.get(this.#S);
2907
+ }
2908
+ set props(e) {
2909
+ t.set(this.#S, e);
2910
+ }
2911
+ #C = t.derived(() => ({
2912
+ position: "absolute",
2913
+ left: this.arrowX ? `${this.arrowX}px` : void 0,
2914
+ top: this.arrowY ? `${this.arrowY}px` : void 0,
2915
+ [this.arrowBaseSide]: 0,
2916
+ "transform-origin": {
2917
+ top: "",
2918
+ right: "0 0",
2919
+ bottom: "center 0",
2920
+ left: "100% 0"
2921
+ }[this.placedSide],
2922
+ transform: {
2923
+ top: "translateY(100%)",
2924
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
2925
+ bottom: "rotate(180deg)",
2926
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
2927
+ }[this.placedSide],
2928
+ visibility: this.cannotCenterArrow ? "hidden" : void 0
2929
+ }));
2930
+ get arrowStyle() {
2931
+ return t.get(this.#C);
2932
+ }
2933
+ set arrowStyle(e) {
2934
+ t.set(this.#C, e);
2935
+ }
2936
+ constructor(e, n) {
2937
+ this.opts = e, this.root = n, this.#t = e.updatePositionStrategy, e.customAnchor && (this.root.customAnchorNode.current = e.customAnchor.current), A(() => e.customAnchor.current, (e) => {
2938
+ this.root.customAnchorNode.current = e;
2939
+ }), this.floating = ba({
2940
+ strategy: () => this.opts.strategy.current,
2941
+ placement: () => t.get(this.#a),
2942
+ middleware: () => this.middleware,
2943
+ reference: this.root.anchorNode,
2944
+ whileElementsMounted: (...e) => da(...e, { animationFrame: this.#t?.current === "always" }),
2945
+ open: () => this.opts.enabled.current,
2946
+ sideOffset: () => this.opts.sideOffset.current,
2947
+ alignOffset: () => this.opts.alignOffset.current
2948
+ }), t.user_effect(() => {
2949
+ this.floating.isPositioned && this.opts.onPlaced?.current();
2950
+ }), A([() => this.contentRef.current, () => this.opts.enabled.current], ([e, t]) => {
2951
+ if (!e || !t) return;
2952
+ let n = at(e), r = n.requestAnimationFrame(() => {
2953
+ if (this.contentRef.current !== e || !this.opts.enabled.current) return;
2954
+ let t = n.getComputedStyle(e).zIndex;
2955
+ t !== this.contentZIndex && (this.contentZIndex = t);
2956
+ });
2957
+ return () => {
2958
+ n.cancelAnimationFrame(r);
2959
+ };
2960
+ }), t.user_effect(() => {
2961
+ this.floating.floating.current = this.wrapperRef.current;
2962
+ });
2963
+ }
2964
+ };
2965
+ function Ta(e) {
2966
+ return {
2967
+ name: "transformOrigin",
2968
+ options: e,
2969
+ fn(t) {
2970
+ let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = Ea(n), u = {
2971
+ start: "0%",
2972
+ center: "50%",
2973
+ end: "100%"
2974
+ }[l], d = (i.arrow?.x ?? 0) + o / 2, f = (i.arrow?.y ?? 0) + s / 2, p = "", m = "";
2975
+ return c === "bottom" ? (p = a ? u : `${d}px`, m = `${-s}px`) : c === "top" ? (p = a ? u : `${d}px`, m = `${r.floating.height + s}px`) : c === "right" ? (p = `${-s}px`, m = a ? u : `${f}px`) : c === "left" && (p = `${r.floating.width + s}px`, m = a ? u : `${f}px`), { data: {
2976
+ x: p,
2977
+ y: m
2978
+ } };
2979
+ }
2980
+ };
2981
+ }
2982
+ function Ea(e) {
2983
+ let [t, n = "center"] = e.split("-");
2984
+ return [t, n];
2985
+ }
2986
+ function Da(e) {
2987
+ return Ea(e)[0];
2988
+ }
2989
+ function Oa(e) {
2990
+ return Ea(e)[1];
2991
+ }
2992
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte
2993
+ function ka(e, n) {
2994
+ let r = t.props_id();
2995
+ t.push(n, !0);
2996
+ let i = t.prop(n, "side", 3, "bottom"), a = t.prop(n, "sideOffset", 3, 0), o = t.prop(n, "align", 3, "center"), c = t.prop(n, "alignOffset", 3, 0), l = t.prop(n, "arrowPadding", 3, 0), u = t.prop(n, "avoidCollisions", 3, !0), d = t.prop(n, "collisionBoundary", 19, () => []), f = t.prop(n, "collisionPadding", 3, 0), p = t.prop(n, "hideWhenDetached", 3, !1), m = t.prop(n, "onPlaced", 3, () => {}), h = t.prop(n, "sticky", 3, "partial"), g = t.prop(n, "updatePositionStrategy", 3, "optimized"), _ = t.prop(n, "strategy", 3, "fixed"), y = t.prop(n, "style", 19, () => ({})), b = t.prop(n, "wrapperId", 19, () => Bt(r)), x = t.prop(n, "customAnchor", 3, null), S = t.prop(n, "tooltip", 3, !1), C = wa.create({
2997
+ side: v(() => i()),
2998
+ sideOffset: v(() => a()),
2999
+ align: v(() => o()),
3000
+ alignOffset: v(() => c()),
3001
+ id: v(() => n.id),
3002
+ arrowPadding: v(() => l()),
3003
+ avoidCollisions: v(() => u()),
3004
+ collisionBoundary: v(() => d()),
3005
+ collisionPadding: v(() => f()),
3006
+ hideWhenDetached: v(() => p()),
3007
+ onPlaced: v(() => m()),
3008
+ sticky: v(() => h()),
3009
+ updatePositionStrategy: v(() => g()),
3010
+ strategy: v(() => _()),
3011
+ dir: qt(() => n.dir),
3012
+ style: v(() => y()),
3013
+ enabled: v(() => n.enabled),
3014
+ wrapperId: v(() => b()),
3015
+ customAnchor: v(() => x())
3016
+ }, s(() => S())), w = t.derived(() => Re(C.wrapperProps, { style: { pointerEvents: "auto" } }));
3017
+ var T = t.comment(), E = t.first_child(T);
3018
+ t.snippet(E, () => n.content ?? t.noop, () => ({
3019
+ props: C.props,
3020
+ wrapperProps: t.get(w)
3021
+ })), t.append(e, T), t.pop();
3022
+ }
3023
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content-static.svelte
3024
+ function Aa(e, n) {
3025
+ t.push(n, !0), i(() => {
3026
+ n.onPlaced?.();
3027
+ });
3028
+ var r = t.comment(), a = t.first_child(r);
3029
+ t.snippet(a, () => n.content ?? t.noop, () => ({
3030
+ props: {},
3031
+ wrapperProps: {}
3032
+ })), t.append(e, r), t.pop();
3033
+ }
3034
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-content.svelte
3035
+ var ja = /* @__PURE__ */ new Set([
3036
+ "$$slots",
3037
+ "$$events",
3038
+ "$$legacy",
3039
+ "content",
3040
+ "isStatic",
3041
+ "onPlaced"
3042
+ ]);
3043
+ function Ma(e, n) {
3044
+ let r = t.prop(n, "isStatic", 3, !1), i = t.rest_props(n, ja);
3045
+ var a = t.comment(), o = t.first_child(a), s = (e) => {
3046
+ Aa(e, {
3047
+ get content() {
3048
+ return n.content;
3049
+ },
3050
+ get onPlaced() {
3051
+ return n.onPlaced;
3052
+ }
3053
+ });
3054
+ }, c = (e) => {
3055
+ ka(e, t.spread_props({
3056
+ get content() {
3057
+ return n.content;
3058
+ },
3059
+ get onPlaced() {
3060
+ return n.onPlaced;
3061
+ }
3062
+ }, () => i));
3063
+ };
3064
+ t.if(o, (e) => {
3065
+ r() ? e(s) : e(c, -1);
3066
+ }), t.append(e, a);
3067
+ }
3068
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-inner.svelte
3069
+ var Na = /* @__PURE__ */ new Set(/* @__PURE__ */ "$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled.forceMount.ref.tooltip.contentPointerEvents".split(".")), Pa = t.from_html("<!> <!>", 1);
3070
+ function Fa(e, n) {
3071
+ t.push(n, !0);
3072
+ let r = t.prop(n, "interactOutsideBehavior", 3, "close"), i = t.prop(n, "trapFocus", 3, !0), a = t.prop(n, "isValidEvent", 3, () => !1), o = t.prop(n, "customAnchor", 3, null), s = t.prop(n, "isStatic", 3, !1), c = t.prop(n, "tooltip", 3, !1), l = t.prop(n, "contentPointerEvents", 3, "auto"), u = t.rest_props(n, Na), d = t.derived(() => n.preventScroll ?? !0), f = t.derived(() => n.strategy ?? (t.get(d) ? "fixed" : "absolute"));
3073
+ Ma(e, {
3074
+ get isStatic() {
3075
+ return s();
3076
+ },
3077
+ get id() {
3078
+ return n.id;
3079
+ },
3080
+ get side() {
3081
+ return n.side;
3082
+ },
3083
+ get sideOffset() {
3084
+ return n.sideOffset;
3085
+ },
3086
+ get align() {
3087
+ return n.align;
3088
+ },
3089
+ get alignOffset() {
3090
+ return n.alignOffset;
3091
+ },
3092
+ get arrowPadding() {
3093
+ return n.arrowPadding;
3094
+ },
3095
+ get avoidCollisions() {
3096
+ return n.avoidCollisions;
3097
+ },
3098
+ get collisionBoundary() {
3099
+ return n.collisionBoundary;
3100
+ },
3101
+ get collisionPadding() {
3102
+ return n.collisionPadding;
3103
+ },
3104
+ get sticky() {
3105
+ return n.sticky;
3106
+ },
3107
+ get hideWhenDetached() {
3108
+ return n.hideWhenDetached;
3109
+ },
3110
+ get updatePositionStrategy() {
3111
+ return n.updatePositionStrategy;
3112
+ },
3113
+ get strategy() {
3114
+ return t.get(f);
3115
+ },
3116
+ get dir() {
3117
+ return n.dir;
3118
+ },
3119
+ get wrapperId() {
3120
+ return n.wrapperId;
3121
+ },
3122
+ get style() {
3123
+ return n.style;
3124
+ },
3125
+ get onPlaced() {
3126
+ return n.onPlaced;
3127
+ },
3128
+ get customAnchor() {
3129
+ return o();
3130
+ },
3131
+ get enabled() {
3132
+ return n.enabled;
3133
+ },
3134
+ get tooltip() {
3135
+ return c();
3136
+ },
3137
+ content: (e, o) => {
3138
+ let s = () => (o?.()).props, c = () => (o?.()).wrapperProps;
3139
+ var f = Pa(), p = t.first_child(f), m = (e) => {
3140
+ xr(e, { get preventScroll() {
3141
+ return t.get(d);
3142
+ } });
3143
+ }, h = (e) => {
3144
+ xr(e, { get preventScroll() {
3145
+ return t.get(d);
3146
+ } });
3147
+ };
3148
+ t.if(p, (e) => {
3149
+ n.forceMount && n.enabled ? e(m) : n.forceMount || e(h, 1);
3150
+ }), Zn(t.sibling(p, 2), {
3151
+ get onOpenAutoFocus() {
3152
+ return n.onOpenAutoFocus;
3153
+ },
3154
+ get onCloseAutoFocus() {
3155
+ return n.onCloseAutoFocus;
3156
+ },
3157
+ get loop() {
3158
+ return n.loop;
3159
+ },
3160
+ get enabled() {
3161
+ return n.enabled;
3162
+ },
3163
+ get trapFocus() {
3164
+ return i();
3165
+ },
3166
+ get forceMount() {
3167
+ return n.forceMount;
3168
+ },
3169
+ get ref() {
3170
+ return n.ref;
3171
+ },
3172
+ focusScope: (e, i) => {
3173
+ let o = () => (i?.()).props;
3174
+ gn(e, {
3175
+ get onEscapeKeydown() {
3176
+ return n.onEscapeKeydown;
3177
+ },
3178
+ get escapeKeydownBehavior() {
3179
+ return n.escapeKeydownBehavior;
3180
+ },
3181
+ get enabled() {
3182
+ return n.enabled;
3183
+ },
3184
+ get ref() {
3185
+ return n.ref;
3186
+ },
3187
+ children: (e, i) => {
3188
+ pn(e, {
3189
+ get id() {
3190
+ return n.id;
3191
+ },
3192
+ get onInteractOutside() {
3193
+ return n.onInteractOutside;
3194
+ },
3195
+ get onFocusOutside() {
3196
+ return n.onFocusOutside;
3197
+ },
3198
+ get interactOutsideBehavior() {
3199
+ return r();
3200
+ },
3201
+ get isValidEvent() {
3202
+ return a();
3203
+ },
3204
+ get enabled() {
3205
+ return n.enabled;
3206
+ },
3207
+ get ref() {
3208
+ return n.ref;
3209
+ },
3210
+ children: (e, r) => {
3211
+ let i = () => (r?.()).props;
3212
+ ir(e, {
3213
+ get id() {
3214
+ return n.id;
3215
+ },
3216
+ get preventOverflowTextSelection() {
3217
+ return n.preventOverflowTextSelection;
3218
+ },
3219
+ get onPointerDown() {
3220
+ return n.onPointerDown;
3221
+ },
3222
+ get onPointerUp() {
3223
+ return n.onPointerUp;
3224
+ },
3225
+ get enabled() {
3226
+ return n.enabled;
3227
+ },
3228
+ get ref() {
3229
+ return n.ref;
3230
+ },
3231
+ children: (e, r) => {
3232
+ var a = t.comment(), d = t.first_child(a);
3233
+ {
3234
+ let e = t.derived(() => ({
3235
+ props: Re(u, s(), i(), o(), {
3236
+ id: n.id,
3237
+ style: { pointerEvents: l() }
3238
+ }),
3239
+ wrapperProps: c()
3240
+ }));
3241
+ t.snippet(d, () => n.popper ?? t.noop, () => t.get(e));
3242
+ }
3243
+ t.append(e, a);
3244
+ },
3245
+ $$slots: { default: !0 }
3246
+ });
3247
+ },
3248
+ $$slots: { default: !0 }
3249
+ });
3250
+ },
3251
+ $$slots: { default: !0 }
3252
+ });
3253
+ },
3254
+ $$slots: { focusScope: !0 }
3255
+ }), t.append(e, f);
3256
+ },
3257
+ $$slots: { content: !0 }
3258
+ }), t.pop();
3259
+ }
3260
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer.svelte
3261
+ var Ia = /* @__PURE__ */ new Set(/* @__PURE__ */ "$$slots.$$events.$$legacy.popper.open.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.ref.shouldRender".split("."));
3262
+ function La(e, n) {
3263
+ let r = t.prop(n, "interactOutsideBehavior", 3, "close"), i = t.prop(n, "trapFocus", 3, !0), a = t.prop(n, "isValidEvent", 3, () => !1), o = t.prop(n, "customAnchor", 3, null), s = t.prop(n, "isStatic", 3, !1), c = t.rest_props(n, Ia);
3264
+ var l = t.comment(), u = t.first_child(l), d = (e) => {
3265
+ Fa(e, t.spread_props({
3266
+ get popper() {
3267
+ return n.popper;
3268
+ },
3269
+ get onEscapeKeydown() {
3270
+ return n.onEscapeKeydown;
3271
+ },
3272
+ get escapeKeydownBehavior() {
3273
+ return n.escapeKeydownBehavior;
3274
+ },
3275
+ get preventOverflowTextSelection() {
3276
+ return n.preventOverflowTextSelection;
3277
+ },
3278
+ get id() {
3279
+ return n.id;
3280
+ },
3281
+ get onPointerDown() {
3282
+ return n.onPointerDown;
3283
+ },
3284
+ get onPointerUp() {
3285
+ return n.onPointerUp;
3286
+ },
3287
+ get side() {
3288
+ return n.side;
3289
+ },
3290
+ get sideOffset() {
3291
+ return n.sideOffset;
3292
+ },
3293
+ get align() {
3294
+ return n.align;
3295
+ },
3296
+ get alignOffset() {
3297
+ return n.alignOffset;
3298
+ },
3299
+ get arrowPadding() {
3300
+ return n.arrowPadding;
3301
+ },
3302
+ get avoidCollisions() {
3303
+ return n.avoidCollisions;
3304
+ },
3305
+ get collisionBoundary() {
3306
+ return n.collisionBoundary;
3307
+ },
3308
+ get collisionPadding() {
3309
+ return n.collisionPadding;
3310
+ },
3311
+ get sticky() {
3312
+ return n.sticky;
3313
+ },
3314
+ get hideWhenDetached() {
3315
+ return n.hideWhenDetached;
3316
+ },
3317
+ get updatePositionStrategy() {
3318
+ return n.updatePositionStrategy;
3319
+ },
3320
+ get strategy() {
3321
+ return n.strategy;
3322
+ },
3323
+ get dir() {
3324
+ return n.dir;
3325
+ },
3326
+ get preventScroll() {
3327
+ return n.preventScroll;
3328
+ },
3329
+ get wrapperId() {
3330
+ return n.wrapperId;
3331
+ },
3332
+ get style() {
3333
+ return n.style;
3334
+ },
3335
+ get onPlaced() {
3336
+ return n.onPlaced;
3337
+ },
3338
+ get customAnchor() {
3339
+ return o();
3340
+ },
3341
+ get isStatic() {
3342
+ return s();
3343
+ },
3344
+ get enabled() {
3345
+ return n.open;
3346
+ },
3347
+ get onInteractOutside() {
3348
+ return n.onInteractOutside;
3349
+ },
3350
+ get onCloseAutoFocus() {
3351
+ return n.onCloseAutoFocus;
3352
+ },
3353
+ get onOpenAutoFocus() {
3354
+ return n.onOpenAutoFocus;
3355
+ },
3356
+ get interactOutsideBehavior() {
3357
+ return r();
3358
+ },
3359
+ get loop() {
3360
+ return n.loop;
3361
+ },
3362
+ get trapFocus() {
3363
+ return i();
3364
+ },
3365
+ get isValidEvent() {
3366
+ return a();
3367
+ },
3368
+ get onFocusOutside() {
3369
+ return n.onFocusOutside;
3370
+ },
3371
+ forceMount: !1,
3372
+ get ref() {
3373
+ return n.ref;
3374
+ }
3375
+ }, () => c));
3376
+ };
3377
+ t.if(u, (e) => {
3378
+ n.shouldRender && e(d);
3379
+ }), t.append(e, l);
3380
+ }
3381
+ // ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-force-mount.svelte
3382
+ var Ra = /* @__PURE__ */ new Set(/* @__PURE__ */ "$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled".split("."));
3383
+ function za(e, n) {
3384
+ let r = t.prop(n, "interactOutsideBehavior", 3, "close"), i = t.prop(n, "trapFocus", 3, !0), a = t.prop(n, "isValidEvent", 3, () => !1), o = t.prop(n, "customAnchor", 3, null), s = t.prop(n, "isStatic", 3, !1), c = t.rest_props(n, Ra);
3385
+ Fa(e, t.spread_props({
3386
+ get popper() {
3387
+ return n.popper;
3388
+ },
3389
+ get onEscapeKeydown() {
3390
+ return n.onEscapeKeydown;
3391
+ },
3392
+ get escapeKeydownBehavior() {
3393
+ return n.escapeKeydownBehavior;
3394
+ },
3395
+ get preventOverflowTextSelection() {
3396
+ return n.preventOverflowTextSelection;
3397
+ },
3398
+ get id() {
3399
+ return n.id;
3400
+ },
3401
+ get onPointerDown() {
3402
+ return n.onPointerDown;
3403
+ },
3404
+ get onPointerUp() {
3405
+ return n.onPointerUp;
3406
+ },
3407
+ get side() {
3408
+ return n.side;
3409
+ },
3410
+ get sideOffset() {
3411
+ return n.sideOffset;
3412
+ },
3413
+ get align() {
3414
+ return n.align;
3415
+ },
3416
+ get alignOffset() {
3417
+ return n.alignOffset;
3418
+ },
3419
+ get arrowPadding() {
3420
+ return n.arrowPadding;
3421
+ },
3422
+ get avoidCollisions() {
3423
+ return n.avoidCollisions;
3424
+ },
3425
+ get collisionBoundary() {
3426
+ return n.collisionBoundary;
3427
+ },
3428
+ get collisionPadding() {
3429
+ return n.collisionPadding;
3430
+ },
3431
+ get sticky() {
3432
+ return n.sticky;
3433
+ },
3434
+ get hideWhenDetached() {
3435
+ return n.hideWhenDetached;
3436
+ },
3437
+ get updatePositionStrategy() {
3438
+ return n.updatePositionStrategy;
3439
+ },
3440
+ get strategy() {
3441
+ return n.strategy;
3442
+ },
3443
+ get dir() {
3444
+ return n.dir;
3445
+ },
3446
+ get preventScroll() {
3447
+ return n.preventScroll;
3448
+ },
3449
+ get wrapperId() {
3450
+ return n.wrapperId;
3451
+ },
3452
+ get style() {
3453
+ return n.style;
3454
+ },
3455
+ get onPlaced() {
3456
+ return n.onPlaced;
3457
+ },
3458
+ get customAnchor() {
3459
+ return o();
3460
+ },
3461
+ get isStatic() {
3462
+ return s();
3463
+ },
3464
+ get enabled() {
3465
+ return n.enabled;
3466
+ },
3467
+ get onInteractOutside() {
3468
+ return n.onInteractOutside;
3469
+ },
3470
+ get onCloseAutoFocus() {
3471
+ return n.onCloseAutoFocus;
3472
+ },
3473
+ get onOpenAutoFocus() {
3474
+ return n.onOpenAutoFocus;
3475
+ },
3476
+ get interactOutsideBehavior() {
3477
+ return r();
3478
+ },
3479
+ get loop() {
3480
+ return n.loop;
3481
+ },
3482
+ get trapFocus() {
3483
+ return i();
3484
+ },
3485
+ get isValidEvent() {
3486
+ return a();
3487
+ },
3488
+ get onFocusOutside() {
3489
+ return n.onFocusOutside;
3490
+ }
3491
+ }, () => c, { forceMount: !0 }));
3492
+ }
3493
+ export { it as $, At as A, wt as B, M as C, Nt as D, Ft as E, yt as F, ut as G, Et as H, bt as I, ht as J, lt as K, xt as L, gt as M, _t as N, Pt as O, vt as P, st as Q, St as R, Bt as S, kt as T, Dt as U, Tt as V, Ot as W, pt as X, ft as Y, ct as Z, Jt as _, Lr as a, Re as at, qt as b, Tr as c, g as ct, Sr as d, v as dt, Je as et, Cr as f, y as ft, Wn as g, Kn as h, C as ht, Rr as i, He as it, Lt as j, Mt as k, wr as l, S as lt, Jn as m, _ as mt, La as n, qe as nt, Fr as o, Fe as ot, Gn as p, b as pt, dt as q, zr as r, A as rt, Mr as s, ke as st, za as t, j as tt, Er as u, x as ut, $t as v, zt as w, Kt as x, Qt as y, Ct as z };