allyhub 0.15.2 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/commands/add.js +1 -1
  3. package/dist/commands/cloud-tools.js +1 -1
  4. package/dist/commands/dev.js +6 -2
  5. package/dist/commands/doctor.js +3 -3
  6. package/dist/commands/frames/doc.js +1 -1
  7. package/dist/commands/inspect/common.js +3 -3
  8. package/dist/commands/inspect/facts.js +2 -2
  9. package/dist/commands/inspect/index.js +1 -1
  10. package/dist/commands/inspect/layout.js +1 -1
  11. package/dist/commands/inspect/uses.js +3 -0
  12. package/dist/commands/mail.js +6 -6
  13. package/dist/commands/render.js +1 -1
  14. package/dist/main.js +8 -8
  15. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-text.js +2 -2
  16. package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
  17. package/dist/node_modules/@allyhub/audio/dist/index.js +1 -1
  18. package/dist/node_modules/@allyhub/audio/dist/place.js +2 -0
  19. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  20. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  21. package/dist/node_modules/@allyhub/build/dist/content.d.ts +7 -0
  22. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +2 -2
  23. package/dist/node_modules/@allyhub/build/dist/imports.d.ts +17 -0
  24. package/dist/node_modules/@allyhub/build/dist/imports.js +2 -0
  25. package/dist/node_modules/@allyhub/build/dist/index.d.ts +3 -2
  26. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  27. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +1 -1
  28. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
  29. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +19 -3
  30. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  31. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +27 -6
  32. package/dist/node_modules/@allyhub/build/dist/uses.js +1 -1
  33. package/dist/node_modules/@allyhub/build/dist/work.d.ts +9 -1
  34. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  35. package/dist/node_modules/@allyhub/build/package.json +1 -1
  36. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  37. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +2 -2
  38. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  39. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  40. package/dist/node_modules/@allyhub/check/package.json +1 -1
  41. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  42. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +12 -3
  43. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  44. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +1 -1
  45. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  46. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  47. package/dist/node_modules/@allyhub/components/package.json +1 -1
  48. package/dist/node_modules/@allyhub/dev-server/dist/deletion.js +2 -0
  49. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  50. package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +1 -1
  51. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  52. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  53. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  54. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -2
  55. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  56. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  57. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  58. package/dist/node_modules/@allyhub/doc/dist/html.js +40 -40
  59. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  60. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  61. package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
  62. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  63. package/dist/node_modules/@allyhub/doc/dist/write.js +26 -26
  64. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  65. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
  66. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
  67. package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
  68. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  69. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  70. package/dist/node_modules/@allyhub/export/package.json +1 -1
  71. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  72. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  73. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  74. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +15 -3
  75. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  76. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  77. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +70 -11
  78. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  79. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +15 -4
  80. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  81. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +4 -0
  82. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  83. package/dist/node_modules/@allyhub/i18n/dist/index.js +1 -1
  84. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  85. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +1 -1
  86. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  87. package/dist/node_modules/@allyhub/image-extension/dist/tools.js +1 -1
  88. package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +1 -1
  89. package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
  90. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +3 -3
  91. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  92. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  93. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  94. package/dist/node_modules/@allyhub/image-runtime/dist/load.js +2 -2
  95. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  96. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  97. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  98. package/dist/node_modules/@allyhub/linkedin-extension/package.json +3 -1
  99. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +1 -1
  100. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  101. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  102. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  103. package/dist/node_modules/@allyhub/media/package.json +1 -1
  104. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  105. package/dist/node_modules/@allyhub/model/package.json +1 -1
  106. package/dist/node_modules/@allyhub/office-extension/LICENSE +241 -0
  107. package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
  108. package/dist/node_modules/@allyhub/office-extension/markup/csv/data/leads.csv +5 -0
  109. package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +19 -0
  110. package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
  111. package/dist/node_modules/@allyhub/office-extension/markup/document/briefs/launch.docx +0 -0
  112. package/dist/node_modules/@allyhub/office-extension/markup/document/markup.json +11 -0
  113. package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
  114. package/dist/node_modules/@allyhub/office-extension/markup/presentation/decks/pitch.pptx +0 -0
  115. package/dist/node_modules/@allyhub/office-extension/markup/presentation/markup.json +11 -0
  116. package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
  117. package/dist/node_modules/@allyhub/office-extension/markup/workbook/data/plans.xlsx +0 -0
  118. package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +10 -0
  119. package/dist/node_modules/@allyhub/office-extension/package.json +124 -0
  120. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  121. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +15 -0
  122. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +1 -0
  123. package/dist/node_modules/@allyhub/piece/dist/page/index.js +1 -1
  124. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +9 -0
  125. package/dist/node_modules/@allyhub/piece/dist/page/runtimes.js +2 -0
  126. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +53 -10
  127. package/dist/node_modules/@allyhub/piece/dist/source.js +1 -1
  128. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  129. package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
  130. package/dist/node_modules/@allyhub/project/dist/part-keys.js +1 -1
  131. package/dist/node_modules/@allyhub/project/package.json +1 -1
  132. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +10 -11
  133. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  134. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +7 -0
  135. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  136. package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +9 -0
  137. package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
  138. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +2 -0
  139. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  140. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +77 -0
  141. package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +2 -0
  142. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +39 -9
  143. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  144. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +15 -15
  145. package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +441 -5
  146. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  147. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -2
  148. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +4 -1
  149. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  150. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +8 -0
  151. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  152. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +5 -5
  153. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +45 -0
  154. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  155. package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +134 -0
  156. package/dist/node_modules/@allyhub/protocol/dist/paywall.js +2 -0
  157. package/dist/node_modules/@allyhub/protocol/dist/place.js +1 -1
  158. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +3 -3
  159. package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +47 -0
  160. package/dist/node_modules/@allyhub/protocol/dist/purposes.js +2 -0
  161. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  162. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +52 -5
  163. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  164. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +34 -0
  165. package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +2 -0
  166. package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +1 -0
  167. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +21 -52
  168. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  169. package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +264 -0
  170. package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +2 -0
  171. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +18 -0
  172. package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +2 -0
  173. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +97 -0
  174. package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +2 -0
  175. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +3 -2
  176. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  177. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +26 -20
  178. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  179. package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +71 -0
  180. package/dist/node_modules/@allyhub/protocol/dist/turns.js +2 -0
  181. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  182. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  183. package/dist/node_modules/@allyhub/render/package.json +1 -1
  184. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  185. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  186. package/dist/node_modules/@allyhub/runtime/dist/film.js +1 -1
  187. package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
  188. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  189. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  190. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  191. package/dist/node_modules/@allyhub/scaffold/dist/index.js +4 -4
  192. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  193. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  194. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  195. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  196. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  197. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  198. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  199. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.js +1 -1
  200. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  201. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/logical.js +1 -1
  202. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  203. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  204. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  205. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  206. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  207. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  208. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  209. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  210. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  211. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +1 -1
  212. package/dist/node_modules/@allyhub/sheet-extension/package.json +3 -3
  213. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  214. package/dist/node_modules/@allyhub/slides-core/dist/api.js +1 -1
  215. package/dist/node_modules/@allyhub/slides-core/dist/components.js +1 -1
  216. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  217. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  218. package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -1
  219. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
  220. package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +1 -1
  221. package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +2 -2
  222. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +1 -1
  223. package/dist/node_modules/@allyhub/slides-extension/package.json +2 -2
  224. package/dist/node_modules/@allyhub/slides-pptx/dist/audio-icon.js +1 -1
  225. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  226. package/dist/node_modules/@allyhub/slides-pptx/package.json +5 -1
  227. package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
  228. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  229. package/dist/node_modules/@allyhub/slides-runtime/dist/item.js +2 -0
  230. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  231. package/dist/node_modules/@allyhub/slides-runtime/dist/slide-css.js +20 -0
  232. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  233. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  234. package/dist/node_modules/@allyhub/stage-page/dist/install.js +1 -1
  235. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +1 -1
  236. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
  237. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  238. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +20 -20
  239. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  240. package/dist/node_modules/@allyhub/telemetry/dist/doc.js +17 -2
  241. package/dist/node_modules/@allyhub/telemetry/dist/level.js +2 -2
  242. package/dist/node_modules/@allyhub/telemetry/dist/levels.js +2 -0
  243. package/dist/node_modules/@allyhub/telemetry/dist/scrub.js +1 -1
  244. package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
  245. package/dist/node_modules/@allyhub/text-extension/markup/markup.json +1 -1
  246. package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
  247. package/dist/node_modules/@allyhub/text-extension/markup-file/archive/assets.zip +0 -0
  248. package/dist/node_modules/@allyhub/text-extension/markup-file/markup.json +10 -0
  249. package/dist/node_modules/@allyhub/text-extension/package.json +35 -1
  250. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  251. package/dist/node_modules/@allyhub/video-extension/dist/build.js +1 -1
  252. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +3 -3
  253. package/dist/node_modules/@allyhub/video-extension/package.json +2 -2
  254. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  255. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  256. package/dist/node_modules/@allyhub/website/package.json +1 -1
  257. package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
  258. package/dist/node_modules/@allyhub/x-extension/package.json +3 -1
  259. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +1 -1
  260. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  261. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  262. package/dist/package.json +13 -12
  263. package/dist/project.js +1 -1
  264. package/dist/telemetry.js +3 -3
  265. package/dist/text/console-text.js +2 -2
  266. package/dist/works.js +1 -1
  267. package/editor-web/assets/{abnfDiagram-WEYOIA3C-9z0ZEYUq.js → abnfDiagram-WEYOIA3C-CHNpVSPv.js} +1 -1
  268. package/editor-web/assets/{architecture-WOLXFQ4H-ELMO_PA6.js → architecture-WOLXFQ4H-gPsJqQwV.js} +1 -1
  269. package/editor-web/assets/{architectureDiagram-ZHVYKT53-C0yuCWU3.js → architectureDiagram-ZHVYKT53-CEIDcC6r.js} +1 -1
  270. package/editor-web/assets/arrow-down-B8VUPCGi.js +1 -0
  271. package/editor-web/assets/arrow-up-Ds4juY8X.js +1 -0
  272. package/editor-web/assets/article-BHTjq0_Y.js +3 -0
  273. package/editor-web/assets/article-DfELjJ2o.js +7 -0
  274. package/editor-web/assets/{audio-lines-1s1eRs4Q.js → audio-lines-PZj77e7t.js} +1 -1
  275. package/editor-web/assets/bar-button-J9vbfzTx.js +1 -0
  276. package/editor-web/assets/{blockDiagram-RJAE7QA3-vi6JOg4o.js → blockDiagram-RJAE7QA3-CUzEGVet.js} +4 -4
  277. package/editor-web/assets/browser-C1XuTMlp.js +1 -0
  278. package/editor-web/assets/{c4Diagram-XDPPPE54-Agf_H8uS.js → c4Diagram-XDPPPE54-CB94NR9s.js} +1 -1
  279. package/editor-web/assets/calc-worker-BdHh5LXM.js +45 -0
  280. package/editor-web/assets/channel-DCDCx5Es.js +1 -0
  281. package/editor-web/assets/chart-amT4lgX3.js +2 -0
  282. package/editor-web/assets/chart-file-CfbWK9l1.js +1 -0
  283. package/editor-web/assets/{chart-no-axes-column-CJmeYOSo.js → chart-no-axes-column-Be0lFcGF.js} +1 -1
  284. package/editor-web/assets/{chunk-2E7WHVMD-XalaZaha.js → chunk-2E7WHVMD-DFYo_Boi.js} +1 -1
  285. package/editor-web/assets/{chunk-4EMNKR2T-DUlRZkCS.js → chunk-4EMNKR2T-CLLjmweX.js} +1 -1
  286. package/editor-web/assets/{chunk-55XCU76K-DTa7whGr.js → chunk-55XCU76K-CkwQ_3m1.js} +1 -1
  287. package/editor-web/assets/{chunk-7S6XSTFO-85zCPzj0.js → chunk-7S6XSTFO-V-AvHpAB.js} +1 -1
  288. package/editor-web/assets/{chunk-AQDTSKZB-CWBseIyh.js → chunk-AQDTSKZB-PjHyYpb8.js} +1 -1
  289. package/editor-web/assets/chunk-DSNLSHJZ-QaczBS3J.js +127 -0
  290. package/editor-web/assets/{chunk-HAGFOTED-DFWda2Rk.js → chunk-HAGFOTED-aLaQB5Xu.js} +1 -1
  291. package/editor-web/assets/{chunk-HNE4Q36P-aXibFitC.js → chunk-HNE4Q36P-De3ftDQR.js} +1 -1
  292. package/editor-web/assets/{chunk-NQOKRVIF-CtJUuFdN.js → chunk-NQOKRVIF-CrhVQyvP.js} +17 -17
  293. package/editor-web/assets/{chunk-UHW7PFBP-B6QKSKWE.js → chunk-UHW7PFBP-BFmZ5ZLn.js} +1 -1
  294. package/editor-web/assets/{chunk-VQ5W62QI-CF6Al55P.js → chunk-VQ5W62QI-CzppUHLA.js} +1 -1
  295. package/editor-web/assets/{chunk-WQQL4CDK-w2TKLkyw.js → chunk-WQQL4CDK-BrAU7V6v.js} +1 -1
  296. package/editor-web/assets/{chunk-YZO67HFG-DVGOATM3.js → chunk-YZO67HFG-BSiF71qj.js} +1 -1
  297. package/editor-web/assets/{chunk-ZAUX2LTX-Cq7MMjDP.js → chunk-ZAUX2LTX-BJc4r5b1.js} +1 -1
  298. package/editor-web/assets/{chunk-ZCHMQSOR-GMW_lBh4.js → chunk-ZCHMQSOR-CkGTuehB.js} +1 -1
  299. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-C7AK5Bkj.js → classDiagram-v2-4MYWR3UA-Byxc7J88.js} +7 -7
  300. package/editor-web/assets/code-CD-CbJG9.js +1 -0
  301. package/editor-web/assets/collaborator-BU4qU7O3.js +1 -0
  302. package/editor-web/assets/{copy-DvOiv9Ra.js → copy-CuJSs0nI.js} +1 -1
  303. package/editor-web/assets/{createLucideIcon-REX213UO.js → createLucideIcon-lm_6n8YT.js} +1 -1
  304. package/editor-web/assets/csv-Bwre9FdI.js +11 -0
  305. package/editor-web/assets/{cynefin-EF2NZ3EQ-ZnDieQsN.js → cynefin-EF2NZ3EQ-BSxkVbdf.js} +1 -1
  306. package/editor-web/assets/{cynefinDiagram-WF24UDRP-BrukKIBF.js → cynefinDiagram-WF24UDRP-IkCgARNs.js} +1 -1
  307. package/editor-web/assets/{dagre-NK4GIZVX-DfO0S2p_.js → dagre-NK4GIZVX-9PgeH6nY.js} +1 -1
  308. package/editor-web/assets/deck-tTzKONci.js +1 -0
  309. package/editor-web/assets/{diagram-CBK3MWTC-D43RLesi.js → diagram-CBK3MWTC-DRzeg3Ds.js} +1 -1
  310. package/editor-web/assets/{diagram-I5XIIV2D-bA1B1QQG.js → diagram-I5XIIV2D-B_zeKMN6.js} +1 -1
  311. package/editor-web/assets/{diagram-ODIL2UCW-DAdXBD2K.js → diagram-ODIL2UCW-FFm0O8SN.js} +1 -1
  312. package/editor-web/assets/{diagram-PFBEJUXE-C_KyEaws.js → diagram-PFBEJUXE-DrtCT8OA.js} +1 -1
  313. package/editor-web/assets/{diagram-RJA3I4VV-oXTtENF7.js → diagram-RJA3I4VV-DtxJ3V0q.js} +1 -1
  314. package/editor-web/assets/{diagram-TYUNFSNR-Czupe6mO.js → diagram-TYUNFSNR-DmxF_8H_.js} +16 -16
  315. package/editor-web/assets/dist-BEpzsYn_.js +6 -0
  316. package/editor-web/assets/dist-BUD4ywMB.js +18 -0
  317. package/editor-web/assets/{dist-BrGYx10E.js → dist-Bd8IxQPP.js} +1 -1
  318. package/editor-web/assets/dist-C21CkR7Z.js +531 -0
  319. package/editor-web/assets/dist-C56mWAec.js +5 -0
  320. package/editor-web/assets/dist-CAb3W9_P.js +43 -0
  321. package/editor-web/assets/dist-CEknsRDd.js +24 -0
  322. package/editor-web/assets/dist-CbZAznNW.js +19 -0
  323. package/editor-web/assets/{dist-2lNSE-G_.js → dist-D3C6FyrO.js} +1 -1
  324. package/editor-web/assets/dist-DDzjbKIg.js +4 -0
  325. package/editor-web/assets/dist-DaEbElXI.js +3 -0
  326. package/editor-web/assets/dist-Dr3o4vee.js +1 -0
  327. package/editor-web/assets/{dist-BtRMClDw.js → dist-DruvDNQe.js} +1 -1
  328. package/editor-web/assets/dist-JLyDtl9X.js +1 -0
  329. package/editor-web/assets/dist-PBbWAsrV.js +17 -0
  330. package/editor-web/assets/dist-ZZlQa66J.js +1 -0
  331. package/editor-web/assets/dist-bQKpw3Zz.js +16 -0
  332. package/editor-web/assets/dist-d4dayaWE.js +17 -0
  333. package/editor-web/assets/docx-draw-9Q_fArBC.js +4 -0
  334. package/editor-web/assets/docx-preview-pcg9ioe3.js +21 -0
  335. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-BOhNZmtp.js → ebnfDiagram-V4P3TTPT-DSX1Aoty.js} +1 -1
  336. package/editor-web/assets/{elk-QONTBCTQ-DoZH3OoE.js → elk-QONTBCTQ-C7gy9q56.js} +1 -1
  337. package/editor-web/assets/{erDiagram-KYQIGQAA-Bv0KDJi4.js → erDiagram-KYQIGQAA-CKx_HoY4.js} +2 -2
  338. package/editor-web/assets/esm-BZb5QMQf.js +21 -0
  339. package/editor-web/assets/{eventmodeling-K75KTNOO-C-_xzqfj.js → eventmodeling-K75KTNOO-DL4HvSrd.js} +1 -1
  340. package/editor-web/assets/{file-exclamation-point-C_fX4fpI.js → file-exclamation-point-_L3ElCJ5.js} +1 -1
  341. package/editor-web/assets/file-question-mark-DlIjUK37.js +1 -0
  342. package/editor-web/assets/flowDiagram-IUGLLWBU-BUnRtJ8q.js +1 -0
  343. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CAuJlaZX.js → ganttDiagram-R7GPNTJY-N-AP4slN.js} +1 -1
  344. package/editor-web/assets/{gitGraph-VSP46ZUC-Dx2xLi5C.js → gitGraph-VSP46ZUC-BKRGJKWm.js} +1 -1
  345. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DHsk_UOT.js → gitGraphDiagram-PDYL7XHY-ClwL7w2_.js} +1 -1
  346. package/editor-web/assets/{group-pebHQTdP.js → group-BdrTp7gi.js} +1 -1
  347. package/editor-web/assets/hint-rlht0uxG.js +1 -0
  348. package/editor-web/assets/index-BedbINE5.css +2 -0
  349. package/editor-web/assets/index-DG2nHq4D.js +28 -0
  350. package/editor-web/assets/{info-OHQRW6UA-CnKQHx5m.js → info-OHQRW6UA-DpcY8t23.js} +1 -1
  351. package/editor-web/assets/{infoDiagram-MVDRKAX5-ibAVFw_2.js → infoDiagram-MVDRKAX5-ChtmtWni.js} +1 -1
  352. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-C1OCHt3y.js → ishikawaDiagram-HPEHV2GE-BZNTuG_F.js} +1 -1
  353. package/editor-web/assets/iso-ahTwmFwH.js +56 -0
  354. package/editor-web/assets/{italic-CtlNOXN9.js → italic-zw4_eUNF.js} +1 -1
  355. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BDdqMOM1.js → journeyDiagram-BOSHW7O7-C3uVmZbL.js} +1 -1
  356. package/editor-web/assets/{kanban-definition-FNSA4HC5-CSAS_zGn.js → kanban-definition-FNSA4HC5-puEhftGG.js} +4 -4
  357. package/editor-web/assets/{link-CW2KxKT_.js → link-DopSU3aa.js} +1 -1
  358. package/editor-web/assets/{mermaid-parser.core-DTLyYXbn.js → mermaid-parser.core-Bw8re-WE.js} +3 -3
  359. package/editor-web/assets/mermaid.core-Cc2GIqBr.js +44 -0
  360. package/editor-web/assets/{mindmap-definition-6OY57UG3-DSWHcglH.js → mindmap-definition-6OY57UG3-C6MUl_S_.js} +3 -3
  361. package/editor-web/assets/minus-CbPnUIOy.js +1 -0
  362. package/editor-web/assets/{packet-JDAUHWVQ-_k1BF29s.js → packet-JDAUHWVQ-C75RnvC5.js} +1 -1
  363. package/editor-web/assets/{pegDiagram-ECIUJNBX-B22YyWAa.js → pegDiagram-ECIUJNBX-ChjmsdV4.js} +1 -1
  364. package/editor-web/assets/{pie-XZMESJXO-CSwV32hj.js → pie-XZMESJXO-BaKxJQpj.js} +1 -1
  365. package/editor-web/assets/{pieDiagram-GNMPY74T-rSFNeWnq.js → pieDiagram-GNMPY74T-CT2ez8pr.js} +1 -1
  366. package/editor-web/assets/progress-CwKcXARv.js +6 -0
  367. package/editor-web/assets/props-form-D5oKHfpk.js +1 -0
  368. package/editor-web/assets/purify.es-B9ve_eFf.js +3 -0
  369. package/editor-web/assets/{quadrantDiagram-D57K4MC3-Xrntfg4j.js → quadrantDiagram-D57K4MC3-BJItlTfk.js} +1 -1
  370. package/editor-web/assets/{radar-ABXABTNO-Dwq5qiNw.js → radar-ABXABTNO-DnLzBlTo.js} +1 -1
  371. package/editor-web/assets/{railroad-I3PHUGI6-sIUGWcZh.js → railroad-I3PHUGI6-D5hj6Yv3.js} +1 -1
  372. package/editor-web/assets/{railroad-abnf-LNEFI6M7-1rWlT9BX.js → railroad-abnf-LNEFI6M7-DUZlZoPu.js} +1 -1
  373. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DWdkzEHc.js → railroad-ebnf-DWYD2UWJ-CDyyDC6d.js} +1 -1
  374. package/editor-web/assets/{railroad-peg-JR7BVNR7-CME0JBbV.js → railroad-peg-JR7BVNR7-CC3ImNnT.js} +1 -1
  375. package/editor-web/assets/{railroadDiagram-Y72NRBL7-Ch4BpP22.js → railroadDiagram-Y72NRBL7-Bjw-8Se5.js} +1 -1
  376. package/editor-web/assets/{react-Bk7NnOLX.js → react-Edyoga_4.js} +1 -1
  377. package/editor-web/assets/{requirementDiagram-EQYSW5RA-CgE-x3wN.js → requirementDiagram-EQYSW5RA-CDFnuEIO.js} +1 -1
  378. package/editor-web/assets/row-C_svyL8o.js +1 -0
  379. package/editor-web/assets/{sankeyDiagram-SY24JHO5-DBf4G6n3.js → sankeyDiagram-SY24JHO5-CQPVLY1w.js} +1 -1
  380. package/editor-web/assets/schemas-moE_A7Nj.js +1 -0
  381. package/editor-web/assets/{scissors-BURkYWPv.js → scissors-B_xOiUhd.js} +1 -1
  382. package/editor-web/assets/{search-jKDvFIEU.js → search-Ba2BbT6T.js} +1 -1
  383. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-Bz07CoUS.js → sequenceDiagram-BLEHNHQU-BQzuLmBX.js} +1 -1
  384. package/editor-web/assets/{session-CUCSWPTE.js → session-s1I85rox.js} +1 -1
  385. package/editor-web/assets/{sigma-CY2Chbro.js → sigma-DSUsJhMn.js} +1 -1
  386. package/editor-web/assets/slides-oQ_C0SVJ.js +1 -0
  387. package/editor-web/assets/snapshots-BPJKywuN.js +1 -0
  388. package/editor-web/assets/{sound-DUCxe9eC.js → sound-bTlco_K3.js} +1 -1
  389. package/editor-web/assets/split-7CVjIkSU.js +3 -0
  390. package/editor-web/assets/square-arrow-out-up-right-DF5dvsSp.js +1 -0
  391. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DuqAmDPP.js → stateDiagram-v2-A6IESKWZ-DOuageUf.js} +7 -7
  392. package/editor-web/assets/{sticky-note-C5qUDHhC.js → sticky-note-BdkIu5_D.js} +1 -1
  393. package/editor-web/assets/{strikethrough-DP-7tMz0.js → strikethrough-BwXWi4zg.js} +1 -1
  394. package/editor-web/assets/surface-DtCjIlrq.js +1 -0
  395. package/editor-web/assets/svg-CWIBMIQ9.js +1 -0
  396. package/editor-web/assets/swatch-DhztHwPU.js +1 -0
  397. package/editor-web/assets/{swimlanes-B3ENRKFQ-C7sOL6rB.js → swimlanes-B3ENRKFQ-CXKkok7X.js} +1 -1
  398. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-C3Car2M0.js +8 -0
  399. package/editor-web/assets/switch-8MU4Nfxe.js +1 -0
  400. package/editor-web/assets/{syntax-DSsHrzWF.js → syntax-CU_WPKxt.js} +1 -1
  401. package/editor-web/assets/{table-CTjNpE4W.js → table-DRbddzx0.js} +1 -1
  402. package/editor-web/assets/tabs-CiF1N-pL.js +1 -0
  403. package/editor-web/assets/tag-CIfWT8B_.js +1 -0
  404. package/editor-web/assets/text-align-start-Cic2-TLh.js +1 -0
  405. package/editor-web/assets/textarea-D7TnPwv1.js +1 -0
  406. package/editor-web/assets/{timeline-definition-JXYKGLGB-CaLYz9mc.js → timeline-definition-JXYKGLGB-DgAjAeZp.js} +3 -3
  407. package/editor-web/assets/{treeView-D4JQ5SDB-D1P1Kyxc.js → treeView-D4JQ5SDB-C0Xvnhck.js} +1 -1
  408. package/editor-web/assets/{treemap-SAJKECNS-2YaFL53t.js → treemap-SAJKECNS-aXfKAeSX.js} +1 -1
  409. package/editor-web/assets/{undo-2-DUGGyBdX.js → undo-2-C47jrRp5.js} +1 -1
  410. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-uYdbUhUS.js → usecaseDiagram-WPOLBNNX-CvUlBa-L.js} +1 -1
  411. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-DHepmX4t.js → vennDiagram-Q3Y3IDCW-qMJ1iCxs.js} +3 -3
  412. package/editor-web/assets/{video-Xl-OaXRc.js → video-DQrjo1TI.js} +1 -1
  413. package/editor-web/assets/{wardley-7MLQ67FV-Dx0MOPV1.js → wardley-7MLQ67FV-DEdnH0by.js} +1 -1
  414. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BX8ElwDW.js → wardleyDiagram-IVAIDKWA-Bt-B2hQ5.js} +1 -1
  415. package/editor-web/assets/{whole-word-6DliXke2.js → whole-word-D3ZAtnkw.js} +1 -1
  416. package/editor-web/assets/{words-B2FXYyeZ.js → words-0Ww2RyT4.js} +1 -1
  417. package/editor-web/assets/{words-DFIhHhHF.js → words-XlXG79Ur.js} +1 -1
  418. package/editor-web/assets/workbook-FSSUiIp9.js +45 -0
  419. package/editor-web/assets/x-DlhyIKuu.js +41 -0
  420. package/editor-web/assets/{xychartDiagram-4URNHDU4-DoWQRJUS.js → xychartDiagram-4URNHDU4-DV4bSzTb.js} +1 -1
  421. package/editor-web/assets/{zoom-in-C4lxmIDE.js → zoom-in-PgsC94hP.js} +1 -1
  422. package/editor-web/index.html +8 -6
  423. package/package.json +2 -2
  424. package/editor-web/assets/arrow-down-DzZjFrBL.js +0 -1
  425. package/editor-web/assets/arrow-up-hdmh9LVD.js +0 -1
  426. package/editor-web/assets/article-DHFgHYjv.js +0 -3
  427. package/editor-web/assets/article-Dt9id9Y9.js +0 -7
  428. package/editor-web/assets/button-BVQH7zxz.js +0 -41
  429. package/editor-web/assets/calc-worker-jImBXoeb.js +0 -45
  430. package/editor-web/assets/channel-Dkg198L0.js +0 -1
  431. package/editor-web/assets/chart-BC3kUUDD.js +0 -2
  432. package/editor-web/assets/chunk-DSNLSHJZ-BFnyvrWg.js +0 -129
  433. package/editor-web/assets/code-BID_OoRp.js +0 -1
  434. package/editor-web/assets/collaborator-2qfw-8OJ.js +0 -1
  435. package/editor-web/assets/dist-5HNrQ9AU.js +0 -45
  436. package/editor-web/assets/dist-BPecIPz6.js +0 -530
  437. package/editor-web/assets/dist-BXJKASX4.js +0 -24
  438. package/editor-web/assets/dist-BeDRTqQ8.js +0 -38
  439. package/editor-web/assets/dist-BlL-4sl3.js +0 -43
  440. package/editor-web/assets/dist-BuqBg8k8.js +0 -1
  441. package/editor-web/assets/dist-BwW08gSh.js +0 -1
  442. package/editor-web/assets/dist-C30Thvb3.js +0 -1
  443. package/editor-web/assets/dist-Cj5AmpVb.js +0 -5
  444. package/editor-web/assets/dist-CjjnDOa8.js +0 -3
  445. package/editor-web/assets/dist-D7ur8721.js +0 -6
  446. package/editor-web/assets/dist-DOHhp09C.js +0 -4
  447. package/editor-web/assets/dist-LhFEYZza.js +0 -16
  448. package/editor-web/assets/flowDiagram-IUGLLWBU-C7ZmHJZW.js +0 -1
  449. package/editor-web/assets/hint-mQB8slJ2.js +0 -1
  450. package/editor-web/assets/index-BGAXezRR.js +0 -28
  451. package/editor-web/assets/index-Br4a-QEv.css +0 -2
  452. package/editor-web/assets/mermaid.core-B8478wZ1.js +0 -44
  453. package/editor-web/assets/minus-D1tgAHbU.js +0 -1
  454. package/editor-web/assets/progress-udl4pNsP.js +0 -6
  455. package/editor-web/assets/props-form-B6mYjTgZ.js +0 -1
  456. package/editor-web/assets/row-dgHEAE7h.js +0 -1
  457. package/editor-web/assets/schemas-B89k2jEC.js +0 -1
  458. package/editor-web/assets/slides-BdaWgL_N.js +0 -1
  459. package/editor-web/assets/snapshots-CTS2iez5.js +0 -56
  460. package/editor-web/assets/split-mDSkdQkd.js +0 -3
  461. package/editor-web/assets/surface-D9qJjJQL.js +0 -1
  462. package/editor-web/assets/svg-nJtFNJ-7.js +0 -1
  463. package/editor-web/assets/swatch-S8YuBYyj.js +0 -1
  464. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CQ2aWYP-.js +0 -8
  465. package/editor-web/assets/switch-D5kPl2jO.js +0 -1
  466. package/editor-web/assets/tabs-C0AHyuE5.js +0 -1
  467. package/editor-web/assets/textarea-mzr9Kfuf.js +0 -1
@@ -0,0 +1,6 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{a as t,c as n,i as r,o as i,s as a,t as o,y as s}from"./react-Edyoga_4.js";import{$ as c,B as l,G as u,H as d,J as f,K as p,Q as m,U as h,V as g,W as _,X as v,Y as y,Z as b,a as x,et as S,ft as C,gt as w,ht as T,i as ee,it as E,jt as D,mt as O,n as te,nt as k,o as A,ot as j,q as ne,r as re,rt as M,s as ie,st as ae,t as oe,ut as N,yt as se,z as ce}from"./x-DlhyIKuu.js";import{o as le,w as ue}from"./snapshots-BPJKywuN.js";import{t as de}from"./jsx-runtime-DePvh3-m.js";import{B as fe,C as pe,D as me,E as he,F as ge,G as _e,H as ve,I as ye,L as be,M as xe,N as Se,P as Ce,R as we,T as P,U as Te,V as Ee,W as De,a as Oe,c as ke,f as Ae,i as je,j as Me,k as Ne,l as Pe,m as Fe,o as Ie,s as Le,t as F,u as Re,v as ze,z as Be}from"./bar-button-J9vbfzTx.js";import{n as Ve,t as He}from"./progress-CwKcXARv.js";import{t as I}from"./createLucideIcon-lm_6n8YT.js";import{A as L}from"./index-DG2nHq4D.js";var R=e(s(),1),z=de(),Ue=Object.defineProperty,B=(e,t)=>Ue(e,`name`,{value:t,configurable:!0}),We=`Checkbox`,[Ge,Ke]=ae(We),[qe,Je]=Ge(We);function Ye(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=E({prop:n,defaultProp:i??!1,onChange:c,caller:We}),[m,h]=R.useState(null),[g,_]=R.useState(null),v=R.useRef(!1),[y,b]=R.useReducer(e=>e+1,0),x=!m||!!o||!!m.closest(`form`),S={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:v,userInteractionCount:y,onUserInteraction:b,required:l,defaultChecked:!V(i)&&i,isFormControl:x,bubbleInput:g,setBubbleInput:_};return(0,z.jsx)(qe,{scope:t,...S,children:rt(d)?d(S):r})}B(Ye,`CheckboxProvider`);var Xe=`CheckboxTrigger`,Ze=R.forwardRef(B(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i){let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,onUserInteraction:p,isFormControl:m,bubbleInput:h}=Je(Xe,e),g=O(i,u),_=R.useRef(c);return R.useEffect(()=>{let e=a?.form;if(e){let t=B(()=>d(_.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,z.jsx)(N.button,{type:`button`,role:`checkbox`,"aria-checked":V(c)?`mixed`:c,"aria-required":l,"data-state":it(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:g,onKeyDown:j(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:j(n,e=>{p(),d(e=>V(e)?!0:!e),h&&m&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})},`CheckboxTrigger`)),Qe=R.forwardRef(B(function(e,t){let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,z.jsx)(Ye,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Ze,{...d,ref:t,__scopeCheckbox:n}),e&&(0,z.jsx)(nt,{__scopeCheckbox:n})]})})},`Checkbox`)),$e=`CheckboxIndicator`,et=R.forwardRef(B(function(e,t){let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Je($e,n);return(0,z.jsx)(M,{present:r||V(a.checked)||a.checked===!0,children:(0,z.jsx)(N.span,{"data-state":it(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})},`CheckboxIndicator`)),tt=`CheckboxBubbleInput`,nt=R.forwardRef(B(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:i,hasConsumerStoppedPropagationRef:a,userInteractionCount:o,checked:s,defaultChecked:c,required:l,disabled:u,name:d,value:f,form:p,bubbleInput:m,setBubbleInput:h}=Je(tt,e),g=O(r,h),_=ce(i),v=R.useRef(!1),y=R.useRef(s),b=R.useRef(o);R.useEffect(()=>{let e=m;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=o!==b.current;b.current=o;let i=y.current!==s;y.current=s;let c=!(r&&a.current);if(i&&n){v.current=!r;let t=new Event(`click`,{bubbles:c});e.indeterminate=V(s),n.call(e,!V(s)&&s),e.dispatchEvent(t),v.current=!1}},[m,s,a,o]);let x=R.useRef(!V(s)&&s);return(0,z.jsx)(N.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:c??x.current,required:l,disabled:u,name:d,value:f,form:p,...n,tabIndex:-1,ref:g,onClick:j(t,e=>{v.current&&e.stopPropagation()}),style:{...n.style,..._,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`CheckboxBubbleInput`));function rt(e){return typeof e==`function`}B(rt,`isFunction`);function V(e){return e===`indeterminate`}B(V,`isIndeterminate`);function it(e){return V(e)?`indeterminate`:e?`checked`:`unchecked`}B(it,`getState`);var at=Object.defineProperty,H=(e,t)=>at(e,`name`,{value:t,configurable:!0}),ot=`ContextMenu`,[st,ct]=ae(ot,[Ee]),U=Ee(),[lt,ut]=st(ot),dt=H(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=R.useRef(!1),[c,l]=E({prop:i,defaultProp:!1,onChange:r,caller:ot}),u=U(t);return(0,z.jsx)(lt,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,z.jsx)(xe,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})},`ContextMenu`),ft=`ContextMenuTrigger`,pt=R.forwardRef(H(function(e,t){let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=ut(ft,n),o=U(n),[s,c]=R.useState({x:0,y:0}),l=R.useMemo(()=>({current:{getBoundingClientRect:H(()=>DOMRect.fromRect({width:0,height:0,...s}),`getBoundingClientRect`)}}),[s]),u=R.useRef(0),d=R.useCallback(()=>window.clearTimeout(u.current),[]),f=H(e=>{a.hasInteractedRef.current=!0,c({x:e.clientX,y:e.clientY}),a.onOpenChange(!0)},`handleOpen`);return R.useEffect(()=>d,[d]),R.useEffect(()=>void(r&&d()),[r,d]),(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Se,{...o,virtualRef:l}),(0,z.jsx)(N.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:j(e.onContextMenu,e=>{d(),f(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:j(e.onPointerDown,Ct(e=>{d(),a.open&&a.onOpenChange(!1),u.current=window.setTimeout(()=>f(e),700)})),onPointerMove:r?e.onPointerMove:j(e.onPointerMove,Ct(d)),onPointerCancel:r?e.onPointerCancel:j(e.onPointerCancel,Ct(d)),onPointerUp:r?e.onPointerUp:j(e.onPointerUp,Ct(d))})]})},`ContextMenuTrigger`)),mt=H(e=>{let{__scopeContextMenu:t,...n}=e,r=U(t);return(0,z.jsx)(ye,{...r,...n})},`ContextMenuPortal`),ht=`ContextMenuContent`,gt=R.forwardRef(H(function(e,t){let{__scopeContextMenu:n,...r}=e,i=ut(ht,n),a=U(n),o=R.useRef(!1);return(0,z.jsx)(Ce,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuContent`)),_t=R.forwardRef(H(function(e,t){let{__scopeContextMenu:n,...r}=e,i=U(n);return(0,z.jsx)(ge,{...i,...r,ref:t})},`ContextMenuItem`)),vt=R.forwardRef(H(function(e,t){let{__scopeContextMenu:n,...r}=e,i=U(n);return(0,z.jsx)(be,{...i,...r,ref:t})},`ContextMenuSeparator`)),yt=`ContextMenuSub`,bt=H(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=U(t),[s,c]=E({prop:i,defaultProp:a??!1,onChange:r,caller:yt});return(0,z.jsx)(we,{...o,open:s,onOpenChange:c,children:n})},`ContextMenuSub`),xt=R.forwardRef(H(function(e,t){let{__scopeContextMenu:n,...r}=e,i=U(n);return(0,z.jsx)(fe,{...i,...r,ref:t})},`ContextMenuSubTrigger`)),St=R.forwardRef(H(function(e,t){let{__scopeContextMenu:n,...r}=e,i=U(n);return(0,z.jsx)(Be,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuSubContent`));function Ct(e){return t=>t.pointerType===`mouse`?void 0:e(t)}H(Ct,`whenTouchOrPen`);var wt=Object.defineProperty,W=(e,t)=>wt(e,`name`,{value:t,configurable:!0}),Tt=`Popover`,[Et,Dt]=ae(Tt,[ie]),Ot=ie(),[kt,G]=Et(Tt),At=W(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Ot(t),c=R.useRef(null),[l,u]=R.useState(!1),[d,f]=R.useState(0),[p,m]=R.useState(0),[h,g]=E({prop:r,defaultProp:i??!1,onChange:a,caller:Tt});return(0,z.jsx)(re,{...s,children:(0,z.jsx)(kt,{scope:t,contentId:k(),titleId:k(),descriptionId:k(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,triggerRef:c,open:h,onOpenChange:g,onOpenToggle:R.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:l,onCustomAnchorAdd:R.useCallback(()=>u(!0),[]),onCustomAnchorRemove:R.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),jt=`PopoverAnchor`,Mt=R.forwardRef(W(function(e,t){let{__scopePopover:n,...r}=e,i=G(jt,n),a=Ot(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return R.useEffect(()=>(o(),()=>s()),[o,s]),(0,z.jsx)(ee,{...a,...r,ref:t})},`PopoverAnchor`)),Nt=`PopoverTrigger`,Pt=R.forwardRef(W(function(e,t){let{__scopePopover:n,...r}=e,i=G(Nt,n),a=Ot(n),o=O(t,i.triggerRef),s=(0,z.jsx)(N.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Gt(i.open),...r,ref:o,onClick:j(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,z.jsx)(ee,{asChild:!0,...a,children:s})},`PopoverTrigger`)),Ft=`PopoverPortal`,[It,Lt]=Et(Ft,{forceMount:void 0}),Rt=W(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=G(Ft,t);return(0,z.jsx)(It,{scope:t,forceMount:n,children:(0,z.jsx)(M,{present:n||a.open,children:(0,z.jsx)(y,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),K=`PopoverContent`,zt=R.forwardRef(W(function(e,t){let n=Lt(K,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=G(K,e.__scopePopover);return(0,z.jsx)(M,{present:r||a.open,children:a.modal?(0,z.jsx)(Vt,{...i,ref:t}):(0,z.jsx)(Ht,{...i,ref:t})})},`PopoverContent`)),Bt=C(`PopoverContent.RemoveScroll`),Vt=R.forwardRef(W(function(e,t){let n=G(K,e.__scopePopover),r=R.useRef(null),i=O(t,r),a=R.useRef(!1),{nodes:o,registry:s}=c();return R.useEffect(()=>{let e=r.current;if(e)return p(e)},[]),(0,z.jsx)(ne,{as:Bt,allowPinchZoom:!0,shards:R.useMemo(()=>[r,...o.map(e=>({current:e}))],[r,o]),children:(0,z.jsx)(Ut,{...e,ref:i,branchNodes:o,branchRegistry:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:j(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),Ht=R.forwardRef(W(function(e,t){let n=G(K,e.__scopePopover),r=R.useRef(!1),i=R.useRef(!1);return(0,z.jsx)(Ut,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),Ut=R.forwardRef(W(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,"aria-describedby":d,branchNodes:p,branchRegistry:h,...g}=e,_=G(K,n),y=Ot(n),[x,C]=R.useState(null),w=O(t,C);return m(x),f(),(0,z.jsx)(b,{registry:h,children:(0,z.jsx)(v,{asChild:!0,loop:!0,trapped:r,branches:p,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,z.jsx)(S,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>_.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,z.jsx)(A,{"data-state":Gt(_.open),role:`dialog`,id:_.contentId,"aria-labelledby":_.titlePresent?_.titleId:void 0,"aria-describedby":_.descriptionPresent?Kt(d,_.descriptionId):d,...y,...g,ref:w,style:{...g.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})})},`PopoverContentImpl`)),Wt=R.forwardRef(W(function(e,t){let{__scopePopover:n,...r}=e,i=Ot(n);return(0,z.jsx)(x,{...i,...r,ref:t})},`PopoverArrow`));function Gt(e){return e?`open`:`closed`}W(Gt,`getState`);function Kt(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}W(Kt,`concatAriaDescribedby`);var qt=Object.defineProperty,Jt=(e,t)=>qt(e,`name`,{value:t,configurable:!0}),Yt=`Toggle`,Xt=R.forwardRef(Jt(function(e,t){let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[o,s]=E({prop:n,onChange:i,defaultProp:r??!1,caller:Yt});return(0,z.jsx)(N.button,{type:`button`,"aria-pressed":o,"data-state":o?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:j(e.onClick,()=>{e.disabled||s(!o)})})},`Toggle`)),Zt=Object.defineProperty,q=(e,t)=>Zt(e,`name`,{value:t,configurable:!0}),J=`ToggleGroup`,Y={Single:`single`,Multiple:`multiple`},[Qt,$t]=ae(J,[De]),en=De(),tn=R.forwardRef(q(function(e,t){let{type:n,...r}=e;if(n===Y.Single)return(0,z.jsx)(an,{role:`radiogroup`,...r,ref:t});if(n===Y.Multiple)return(0,z.jsx)(on,{role:`toolbar`,...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${J}\``)},`ToggleGroup`)),[nn,rn]=Qt(J),an=R.forwardRef(q(function(e,t){let{value:n,defaultValue:r,onValueChange:i=q(()=>{},`onValueChange`),...a}=e,[o,s]=E({prop:n,defaultProp:r??``,onChange:i,caller:J});return(0,z.jsx)(nn,{scope:e.__scopeToggleGroup,type:Y.Single,value:R.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:R.useCallback(()=>s(``),[s]),children:(0,z.jsx)(ln,{...a,ref:t})})},`ToggleGroupImplSingle`)),on=R.forwardRef(q(function(e,t){let{value:n,defaultValue:r,onValueChange:i=q(()=>{},`onValueChange`),...a}=e,[o,s]=E({prop:n,defaultProp:r??[],onChange:i,caller:J}),c=R.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=R.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,z.jsx)(nn,{scope:e.__scopeToggleGroup,type:Y.Multiple,value:o,onItemActivate:c,onItemDeactivate:l,children:(0,z.jsx)(ln,{...a,ref:t})})},`ToggleGroupImplMultiple`)),[sn,cn]=Qt(J),ln=R.forwardRef(q(function(e,t){let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...c}=e,l=en(n),u=_e(o),d={dir:u,...c};return(0,z.jsx)(sn,{scope:n,rovingFocus:i,disabled:r,children:i?(0,z.jsx)(ve,{asChild:!0,...l,orientation:a,dir:u,loop:s,children:(0,z.jsx)(N.div,{...d,ref:t})}):(0,z.jsx)(N.div,{...d,ref:t})})},`ToggleGroupImpl`)),un=`ToggleGroupItem`,dn=R.forwardRef(q(function(e,t){let n=rn(un,e.__scopeToggleGroup),r=cn(un,e.__scopeToggleGroup),i=en(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=R.useRef(null);return r.rovingFocus?(0,z.jsx)(Te,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,z.jsx)(fn,{...s,ref:t})}):(0,z.jsx)(fn,{...s,ref:t})},`ToggleGroupItem`)),fn=R.forwardRef(q(function(e,t){let{__scopeToggleGroup:n,value:r,...i}=e,a=rn(un,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0},s=a.type===Y.Single?o:void 0;return(0,z.jsx)(Xt,{...s,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})},`ToggleGroupItemImpl`)),pn=I(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),mn=I(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),hn=I(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),gn=I(`file-archive`,[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]),_n=I(`file-box`,[[`path`,{d:`M14.5 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.8`,key:`1kchwa`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M11.7 14.2 7 17l-4.7-2.8`,key:`1yk8tc`}],[`path`,{d:`M3 13.1a2 2 0 0 0-.999 1.76v3.24a2 2 0 0 0 .969 1.78L6 21.7a2 2 0 0 0 2.03.01L11 19.9a2 2 0 0 0 1-1.76V14.9a2 2 0 0 0-.97-1.78L8 11.3a2 2 0 0 0-2.03-.01z`,key:`19flxy`}],[`path`,{d:`M7 17v5`,key:`1yj1jh`}]]),vn=I(`file-braces`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),yn=I(`file-chart-column`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 18v-1`,key:`zg0ygc`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`M16 18v-3`,key:`j5jt4h`}]]),bn=I(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),xn=I(`file-image`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`10`,cy:`12`,r:`2`,key:`737tya`}],[`path`,{d:`m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22`,key:`wt3hpn`}]]),Sn=I(`file-pen-line`,[[`path`,{d:`M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z`,key:`ukzhwg`}],[`path`,{d:`M14.487 7.858A1 1 0 0 1 14 7V2`,key:`1klhew`}],[`path`,{d:`M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516`,key:`rxaxab`}],[`path`,{d:`M8 18h1`,key:`13wk12`}]]),Cn=I(`file-output`,[[`path`,{d:`M4.226 20.925A2 2 0 0 0 6 22h12a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v3.127`,key:`wfxp4w`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 11-3 3`,key:`1dgrs4`}],[`path`,{d:`m5 17-3-3h10`,key:`1mvvaf`}]]),wn=I(`file-play`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z`,key:`1tzo1f`}]]),Tn=I(`file-spreadsheet`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]),En=I(`file-stack`,[[`path`,{d:`M11 21a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1`,key:`likhh7`}],[`path`,{d:`M16 16a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1`,key:`17ky3x`}],[`path`,{d:`M21 6a2 2 0 0 0-.586-1.414l-2-2A2 2 0 0 0 17 2h-3a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1z`,key:`1hyeo0`}]]),Dn=I(`file-type`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M11 18h2`,key:`12mj7e`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5`,key:`qbrxap`}]]),On=I(`file-video-camera`,[[`path`,{d:`M4 12V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2`,key:`jrl274`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m10 17.843 3.033-1.755a.64.64 0 0 1 .967.56v4.704a.65.65 0 0 1-.967.56L10 20.157`,key:`17aeo9`}],[`rect`,{width:`7`,height:`6`,x:`3`,y:`16`,rx:`1`,key:`s27ndx`}]]),kn=I(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),X=I(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),An=I(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),jn=I(`share`,[[`path`,{d:`M12 2v13`,key:`1km8f5`}],[`path`,{d:`m16 6-4-4-4 4`,key:`13yo43`}],[`path`,{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`,key:`1b2hhj`}]]),Z=se({en:{saved:{saved:`Saved`,saving:`Saving…`,unsaved:`Not saved yet`,error:`Not saved`},agentDoing:{editing:e=>`${e} is editing`,looking:e=>`${e} is looking`},follow:e=>`Follow ${e}`,unfollow:e=>`Stop following ${e}`,markUp:`Mark up`,markUpHint:`Mark up what is on show, and AI makes the changes`,moreTools:`More`,download:`Download`,share:`Share`,ready:`Ready`,failed:`Download failed`,format:`Format`,versions:`Languages`,include:`Include`,onShow:`On show`,all:e=>`All ${String(e)} languages`,choose:`Choose…`,chosen:e=>`${String(e)} chosen`,back:`Back`,checking:`Checking…`,blocked:e=>e===1?`1 must-fix problem stops the download`:`${String(e)} must-fix problems stop the download`,queued:`Waiting`,queuedAhead:e=>`Waiting, ${String(e)} ahead`,preparing:e=>`Preparing ${String(e)}%`,cancel:`Cancel`,retry:`Try again`,failedHelp:e=>`Try again, or ask ${e} what went wrong.`,partial:`Some files could not be made.`,nVersions:e=>`${String(e)} versions`,show:`Show in folder`,notStarted:`The download did not start`,option:{pptx:{label:`Slides`,values:{native:`Editable`,picture:`Pictures`}},steps:{label:`Each animation step`},scale:{label:`Size`}},type:{mov:`MOV (ProRes)`,srt:`Captions`,cover:`Cover image`,pptx:`PowerPoint`,zip:`ZIP (each board as a PNG)`}},"zh-cn":{saved:{saved:`已保存`,saving:`正在保存…`,unsaved:`尚未保存`,error:`没能保存`},agentDoing:{editing:e=>`${e} 正在编辑`,looking:e=>`${e} 正在查看`},follow:e=>`跟随 ${e}`,unfollow:e=>`停止跟随 ${e}`,markUp:`批改`,markUpHint:`在画面上批改,AI 照着改`,moreTools:`更多`,download:`下载`,share:`分享`,ready:`已就绪`,failed:`下载失败`,format:`格式`,versions:`语言`,include:`附带`,onShow:`当前`,all:e=>`全部 ${String(e)} 种语言`,choose:`选择…`,chosen:e=>`已选 ${String(e)} 个`,back:`返回`,checking:`检查中…`,blocked:e=>`有 ${String(e)} 个必修问题,暂时不能下载`,queued:`排队中`,queuedAhead:e=>`排队中,前面还有 ${String(e)} 个`,preparing:e=>`正在准备 ${String(e)}%`,cancel:`取消`,retry:`重试`,failedHelp:e=>`请重试,或让 ${e} 看看哪里出了问题。`,partial:`部分文件没能生成。`,nVersions:e=>`${String(e)} 个版本`,show:`在文件夹中显示`,notStarted:`无法开始下载`,option:{pptx:{label:`幻灯片`,values:{native:`可编辑`,picture:`图片`}},steps:{label:`每个动画步骤`},scale:{label:`尺寸`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`封面图`,pptx:`PowerPoint`,zip:`ZIP(每个画板一张 PNG)`}},"zh-tw":{saved:{saved:`已儲存`,saving:`正在儲存…`,unsaved:`尚未儲存`,error:`沒能儲存`},agentDoing:{editing:e=>`${e} 正在編輯`,looking:e=>`${e} 正在查看`},follow:e=>`跟隨 ${e}`,unfollow:e=>`停止跟隨 ${e}`,markUp:`批改`,markUpHint:`在畫面上批改,AI 照著改`,moreTools:`更多`,download:`下載`,share:`分享`,ready:`已就緒`,failed:`下載失敗`,format:`格式`,versions:`語言`,include:`附帶`,onShow:`目前`,all:e=>`全部 ${String(e)} 種語言`,choose:`選擇…`,chosen:e=>`已選 ${String(e)} 個`,back:`返回`,checking:`檢查中…`,blocked:e=>`有 ${String(e)} 個必須修正的問題,暫時無法下載`,queued:`排隊中`,queuedAhead:e=>`排隊中,前面還有 ${String(e)} 個`,preparing:e=>`正在準備 ${String(e)}%`,cancel:`取消`,retry:`重試`,failedHelp:e=>`請重試,或讓 ${e} 看看哪裡出了問題。`,partial:`部分檔案沒能產生。`,nVersions:e=>`${String(e)} 個版本`,show:`在資料夾中顯示`,notStarted:`無法開始下載`,option:{pptx:{label:`投影片`,values:{native:`可編輯`,picture:`圖片`}},steps:{label:`每個動畫步驟`},scale:{label:`尺寸`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`封面圖`,pptx:`PowerPoint`,zip:`ZIP(每個畫板一張 PNG)`}},ja:{saved:{saved:`保存済み`,saving:`保存中…`,unsaved:`未保存`,error:`保存できませんでした`},agentDoing:{editing:e=>`${e}が編集中`,looking:e=>`${e}が表示中`},follow:e=>`${e}をフォロー`,unfollow:e=>`${e}のフォローをやめる`,markUp:`赤入れ`,markUpHint:`画面に赤を入れると、AI が直します`,moreTools:`その他`,download:`ダウンロード`,share:`共有`,ready:`準備完了`,failed:`ダウンロードに失敗`,format:`形式`,versions:`言語`,include:`追加`,onShow:`表示中`,all:e=>`全 ${String(e)} 言語`,choose:`選択…`,chosen:e=>`${String(e)} 件選択`,back:`戻る`,checking:`チェック中…`,blocked:e=>`要修正の問題が ${String(e)} 件あるためダウンロードできません`,queued:`待機中`,queuedAhead:e=>`待機中、前に ${String(e)} 件`,preparing:e=>`準備中 ${String(e)}%`,cancel:`キャンセル`,retry:`再試行`,failedHelp:e=>`もう一度試すか、${e} に原因を確認してください。`,partial:`一部のファイルを作成できませんでした。`,nVersions:e=>`${String(e)} 個のバージョン`,show:`フォルダに表示`,notStarted:`ダウンロードを開始できませんでした`,option:{pptx:{label:`スライド`,values:{native:`編集可能`,picture:`画像`}},steps:{label:`アニメーションの各ステップ`},scale:{label:`サイズ`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`カバー画像`,pptx:`PowerPoint`,zip:`ZIP(各ボードを PNG で)`}},ko:{saved:{saved:`저장됨`,saving:`저장 중…`,unsaved:`아직 저장되지 않음`,error:`저장되지 않음`},agentDoing:{editing:e=>`${e} 편집 중`,looking:e=>`${e} 보는 중`},follow:e=>`${e} 따라가기`,unfollow:e=>`${e} 따라가기 중지`,markUp:`첨삭`,markUpHint:`화면에 첨삭하면 AI가 고쳐 줍니다`,moreTools:`더보기`,download:`다운로드`,share:`공유`,ready:`준비됨`,failed:`다운로드 실패`,format:`형식`,versions:`언어`,include:`포함`,onShow:`현재`,all:e=>`${String(e)}개 언어 모두`,choose:`선택…`,chosen:e=>`${String(e)}개 선택`,back:`뒤로`,checking:`확인 중…`,blocked:e=>`수정이 필요한 문제 ${String(e)}개 때문에 다운로드할 수 없습니다`,queued:`대기 중`,queuedAhead:e=>`대기 중, 앞에 ${String(e)}개`,preparing:e=>`준비 중 ${String(e)}%`,cancel:`취소`,retry:`다시 시도`,failedHelp:e=>`다시 시도하거나 ${e}에게 원인을 물어보세요.`,partial:`일부 파일을 만들지 못했습니다.`,nVersions:e=>`버전 ${String(e)}개`,show:`폴더에서 보기`,notStarted:`다운로드를 시작하지 못했습니다`,option:{pptx:{label:`슬라이드`,values:{native:`편집 가능`,picture:`이미지`}},steps:{label:`애니메이션 단계별로`},scale:{label:`크기`}},type:{mov:`MOV (ProRes)`,srt:`자막`,cover:`표지 이미지`,pptx:`PowerPoint`,zip:`ZIP (보드마다 PNG)`}},es:{saved:{saved:`Guardado`,saving:`Guardando…`,unsaved:`Aún sin guardar`,error:`No guardado`},agentDoing:{editing:e=>`${e} está editando`,looking:e=>`${e} está mirando`},follow:e=>`Seguir a ${e}`,unfollow:e=>`Dejar de seguir a ${e}`,markUp:`Corregir`,markUpHint:`Corrige lo que ves y la IA hace los cambios`,moreTools:`Más`,download:`Descargar`,share:`Compartir`,ready:`Listo`,failed:`Error al descargar`,format:`Formato`,versions:`Idiomas`,include:`Incluir`,onShow:`Actual`,all:e=>`Los ${String(e)} idiomas`,choose:`Elegir…`,chosen:e=>`${String(e)} elegidos`,back:`Atrás`,checking:`Comprobando…`,blocked:e=>`${String(e)} problemas obligatorios impiden la descarga`,queued:`En espera`,queuedAhead:e=>`En espera, ${String(e)} delante`,preparing:e=>`Preparando ${String(e)} %`,cancel:`Cancelar`,retry:`Reintentar`,failedHelp:e=>`Reinténtalo o pregunta a ${e} qué ha fallado.`,partial:`No se pudieron crear algunos archivos.`,nVersions:e=>`${String(e)} versiones`,show:`Mostrar en la carpeta`,notStarted:`La descarga no se inició`,option:{pptx:{label:`Diapositivas`,values:{native:`Editables`,picture:`Imágenes`}},steps:{label:`Cada paso de animación`},scale:{label:`Tamaño`}},type:{mov:`MOV (ProRes)`,srt:`Subtítulos`,cover:`Imagen de portada`,pptx:`PowerPoint`,zip:`ZIP (cada mesa de trabajo en PNG)`}},fr:{saved:{saved:`Enregistré`,saving:`Enregistrement…`,unsaved:`Pas encore enregistré`,error:`Non enregistré`},agentDoing:{editing:e=>`${e} modifie`,looking:e=>`${e} regarde`},follow:e=>`Suivre ${e}`,unfollow:e=>`Ne plus suivre ${e}`,markUp:`Annoter`,markUpHint:`Annotez ce qui est affiché, et l'IA fait les changements`,moreTools:`Plus`,download:`Télécharger`,share:`Partager`,ready:`Prêt`,failed:`Échec du téléchargement`,format:`Format`,versions:`Langues`,include:`Inclure`,onShow:`Affichée`,all:e=>`Les ${String(e)} langues`,choose:`Choisir…`,chosen:e=>`${String(e)} choisies`,back:`Retour`,checking:`Vérification…`,blocked:e=>`${String(e)} problèmes à corriger bloquent le téléchargement`,queued:`En attente`,queuedAhead:e=>`En attente, ${String(e)} avant celui-ci`,preparing:e=>`Préparation ${String(e)}\u00a0%`,cancel:`Annuler`,retry:`Réessayer`,failedHelp:e=>`Réessayez ou demandez à ${e} ce qui n’a pas marché.`,partial:`Certains fichiers n’ont pas pu être créés.`,nVersions:e=>`${String(e)} versions`,show:`Afficher dans le dossier`,notStarted:`Le téléchargement n’a pas démarré`,option:{pptx:{label:`Diapositives`,values:{native:`Modifiables`,picture:`Images`}},steps:{label:`Chaque étape d'animation`},scale:{label:`Taille`}},type:{mov:`MOV (ProRes)`,srt:`Sous-titres`,cover:`Image de couverture`,pptx:`PowerPoint`,zip:`ZIP (chaque plan de travail en PNG)`}},de:{saved:{saved:`Gespeichert`,saving:`Wird gespeichert…`,unsaved:`Noch nicht gespeichert`,error:`Nicht gespeichert`},agentDoing:{editing:e=>`${e} bearbeitet`,looking:e=>`${e} schaut sich um`},follow:e=>`${e} folgen`,unfollow:e=>`${e} nicht mehr folgen`,markUp:`Korrigieren`,markUpHint:`Korrigieren Sie, was zu sehen ist, und die KI setzt es um`,moreTools:`Mehr`,download:`Herunterladen`,share:`Teilen`,ready:`Bereit`,failed:`Download fehlgeschlagen`,format:`Format`,versions:`Sprachen`,include:`Dazu`,onShow:`Aktuell`,all:e=>`Alle ${String(e)} Sprachen`,choose:`Auswählen…`,chosen:e=>`${String(e)} ausgewählt`,back:`Zurück`,checking:`Wird geprüft…`,blocked:e=>`${String(e)} Probleme verhindern den Download`,queued:`Wartet`,queuedAhead:e=>`Wartet, ${String(e)} davor`,preparing:e=>`Wird vorbereitet: ${String(e)} %`,cancel:`Abbrechen`,retry:`Erneut versuchen`,failedHelp:e=>`Versuche es erneut oder frage ${e}, was schiefgelaufen ist.`,partial:`Einige Dateien konnten nicht erstellt werden.`,nVersions:e=>`${String(e)} Versionen`,show:`Im Ordner zeigen`,notStarted:`Der Download wurde nicht gestartet`,option:{pptx:{label:`Folien`,values:{native:`Bearbeitbar`,picture:`Bilder`}},steps:{label:`Jeden Animationsschritt`},scale:{label:`Größe`}},type:{mov:`MOV (ProRes)`,srt:`Untertitel`,cover:`Titelbild`,pptx:`PowerPoint`,zip:`ZIP (jede Zeichenfläche als PNG)`}},pt:{saved:{saved:`Salvo`,saving:`Salvando…`,unsaved:`Ainda não salvo`,error:`Não salvo`},agentDoing:{editing:e=>`${e} está editando`,looking:e=>`${e} está olhando`},follow:e=>`Seguir ${e}`,unfollow:e=>`Parar de seguir ${e}`,markUp:`Corrigir`,markUpHint:`Corrija o que vê e a IA faz as alterações`,moreTools:`Mais`,download:`Baixar`,share:`Compartilhar`,ready:`Pronto`,failed:`Falha ao baixar`,format:`Formato`,versions:`Idiomas`,include:`Incluir`,onShow:`Atual`,all:e=>`Todos os ${String(e)} idiomas`,choose:`Escolher…`,chosen:e=>`${String(e)} escolhidos`,back:`Voltar`,checking:`Verificando…`,blocked:e=>`${String(e)} problemas obrigatórios impedem o download`,queued:`Aguardando`,queuedAhead:e=>`Aguardando, ${String(e)} na frente`,preparing:e=>`Preparando ${String(e)}%`,cancel:`Cancelar`,retry:`Tentar novamente`,failedHelp:e=>`Tente novamente ou pergunte a ${e} o que deu errado.`,partial:`Não foi possível criar alguns arquivos.`,nVersions:e=>`${String(e)} versões`,show:`Mostrar na pasta`,notStarted:`O download não começou`,option:{pptx:{label:`Slides`,values:{native:`Editáveis`,picture:`Imagens`}},steps:{label:`Cada etapa da animação`},scale:{label:`Tamanho`}},type:{mov:`MOV (ProRes)`,srt:`Legendas`,cover:`Imagem de capa`,pptx:`PowerPoint`,zip:`ZIP (cada prancheta em PNG)`}}});function Mn(){let e=a(),t=Z.of(e?.locale);return e=>e.doing===void 0?e.name:t.agentDoing[e.doing](e.name)}function Nn(){let e=a(),n=Mn(),{agent:r,following:i,follow:s,unfollow:c}=t();if(r?.doing===void 0)return null;let l=Z.of(e?.locale);return(0,z.jsxs)(F,{[o]:``,"data-testid":`agent-here`,"data-doing":r.doing,"aria-pressed":i,title:i?l.unfollow(r.name):l.follow(r.name),className:`text-agent-text hover:text-agent-text aria-pressed:text-agent-text`,onClick:()=>{i?c():s()},children:[(0,z.jsx)(`span`,{"aria-hidden":!0,className:T(`size-2 flex-none rounded-full`,i?`bg-agent motion-safe:animate-pulse`:`border-agent border`)}),n(r)]})}function Pn(){let e=i(),{agent:r,following:a,follow:o,unfollow:s}=t(),c=r?.doing,l=r?.name;return(0,R.useEffect)(()=>{e[`agent/here`]({...c===void 0||l===void 0?{}:{agent:{name:l,doing:c}},following:a}).catch(()=>void 0)},[e,c,l,a]),n(`editor/command`,({command:e})=>{e===`follow`?o():e===`unfollow`&&s()}),null}function Fn({checked:e,multiple:t=!1,variant:n=`row`,className:r,children:i,...a}){return(0,z.jsxs)(`button`,{type:`button`,role:t?`checkbox`:`radio`,"aria-checked":e,"data-slot":`choice`,...a,className:T(`text-sm text-ink transition-colors focus-visible:outline focus-visible:-outline-offset-1 focus-visible:outline-pencil disabled:cursor-default disabled:opacity-50`,n===`row`?`flex min-h-8 items-center gap-2.5 rounded-md px-2 py-1 text-left`:`flex flex-col items-center rounded-md border px-2 py-2.5`,e?T(`bg-pencil-wash`,n===`box`&&`border-pencil`):T(`hover:bg-hover active:bg-press`,n===`box`&&`border-rule hover:border-rule-strong`),r),children:[n===`row`&&(0,z.jsx)(`span`,{"aria-hidden":!0,className:T(`flex size-4 flex-none items-center justify-center border text-on-pencil`,t?`rounded-sm`:`rounded-full`,e?t?`border-pencil bg-pencil`:`border-4 border-pencil`:`border-rule-strong`),children:t&&e&&(0,z.jsx)(Me,{className:`size-3`})}),i]})}var Q=16,In=8;function Ln(){return(0,z.jsx)(Wt,{asChild:!0,width:Q,height:In,children:(0,z.jsxs)(`svg`,{viewBox:`0 0 ${String(Q)} ${String(In)}`,"aria-hidden":!0,className:`-mt-px block overflow-visible`,children:[(0,z.jsx)(`path`,{d:`M0 -1 L${String(Q/2)} 7 L${String(Q)} -1 Z`,className:`fill-popover`}),(0,z.jsx)(`path`,{d:`M0 0 L${String(Q/2)} 7 L${String(Q)} 0`,className:`fill-none stroke-border`})]})})}function Rn({className:e,...t}){return(0,z.jsx)(Qe,{"data-slot":`checkbox`,className:T(`peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary`,e),...t,children:(0,z.jsx)(et,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none`,children:(0,z.jsx)(Me,{className:`size-3.5`})})})}function zn({...e}){return(0,z.jsx)(At,{"data-slot":`popover`,...e})}function Bn({...e}){return(0,z.jsx)(Pt,{"data-slot":`popover-trigger`,...e})}function Vn({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,z.jsx)(Rt,{children:(0,z.jsx)(zt,{"data-slot":`popover-content`,align:t,sideOffset:n,className:T(`z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...r})})}function Hn({...e}){return(0,z.jsx)(Mt,{"data-slot":`popover-anchor`,...e})}function Un({...e}){return(0,z.jsx)(l,{"data-slot":`sheet`,...e})}function Wn({...e}){return(0,z.jsx)(_,{"data-slot":`sheet-portal`,...e})}function Gn({className:e,...t}){return(0,z.jsx)(h,{"data-slot":`sheet-overlay`,className:T(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function Kn({className:e,children:t,side:n=`right`,showCloseButton:r=!0,...i}){return(0,z.jsxs)(Wn,{children:[(0,z.jsx)(Gn,{}),(0,z.jsxs)(d,{"data-slot":`sheet-content`,className:T(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,n===`right`&&`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,n===`left`&&`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,n===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,n===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e),...i,children:[t,r&&(0,z.jsxs)(g,{className:`absolute top-2.5 right-2.5 grid size-7 place-items-center rounded-md text-lead ring-offset-background hover:bg-hover hover:text-ink focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus:outline-hidden active:bg-press disabled:pointer-events-none motion-safe:transition-colors [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,z.jsx)(oe,{className:`size-4`}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function qn({className:e,...t}){return(0,z.jsx)(u,{"data-slot":`sheet-title`,className:T(`font-semibold text-foreground`,e),...t})}var Jn=w(`inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground`},size:{default:`h-9 min-w-9 px-2`,sm:`h-8 min-w-8 px-1.5`,lg:`h-10 min-w-10 px-2.5`}},defaultVariants:{variant:`default`,size:`default`}}),Yn=R.createContext({size:`default`,variant:`default`,spacing:0});function Xn({className:e,variant:t,size:n,spacing:r=0,children:i,...a}){return(0,z.jsx)(tn,{"data-slot":`toggle-group`,"data-variant":t,"data-size":n,"data-spacing":r,style:{"--gap":r},className:T(`group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs`,e),...a,children:(0,z.jsx)(Yn.Provider,{value:{variant:t,size:n,spacing:r},children:i})})}function Zn({className:e,children:t,variant:n,size:r,...i}){let a=R.useContext(Yn);return(0,z.jsx)(dn,{"data-slot":`toggle-group-item`,"data-variant":a.variant||n,"data-size":a.size||r,"data-spacing":a.spacing,className:T(Jn({variant:a.variant||n,size:a.size||r}),`w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10`,`data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l`,e),...i,children:t})}function Qn(e){if(e?.mode!==`edit`)return{gives:`nothing`};let t=e.commands!==!0,n=ue(e.item);return n===`formats`?{gives:`formats`,button:t}:n===`file as it is`?{gives:`file as it is`,path:e.item.entry,button:t}:{gives:`nothing`}}function $n(e,t,n){if(!n&&e.state===`done`&&t.has(e.id))return e.files.length===1?e.files[0]:void 0}var er=5;function tr(e,t){let n=new Set;return e.filter(e=>e.item===t&&e.state!==`cancelled`).reverse().filter(e=>{if(e.state!==`done`||e.files.length===0)return!0;let t=[...e.files].sort().join(`
2
+ `);return!n.has(t)&&(n.add(t),!0)}).slice(0,er)}var nr=e=>e.state===`queued`||e.state===`running`;function rr(e,t,n,r={}){let i=(e,t)=>e.length===t.length&&e.every(e=>t.includes(e));return nr(e)&&i(e.versions,t)&&i(e.types,n)&&ir(e.options??{},r)}var ir=(e,t)=>Object.keys({...e,...t}).every(n=>e[n]===t[n]);function ar(e,t,n){return Object.fromEntries(e.flatMap(e=>{let r=n[e.name];return!e.only.includes(t)||r===void 0?[]:e.values?e.values.includes(String(r))?[[e.name,r]]:[]:r===!0?[[e.name,!0]]:[]}))}function or(e,t){return Math.max(0,e.filter(nr).map(e=>e.id).indexOf(t))}function sr(e,t,n,r){if(n.length!==0)return e===`all`?[...n]:e===`some`?n.filter(e=>r.includes(e)):t===void 0?[...n]:[t]}function cr(e,t){let n=e.findLast(nr);if(n)return n.state===`running`?{at:`running`,percent:Math.round(n.progress*100)}:{at:`queued`};let r=e[0];return r===void 0||!t.has(r.id)?{at:`idle`}:r.state===`failed`?{at:`failed`}:{at:`done`}}var lr=e=>e.slice(e.lastIndexOf(`/`)+1);async function ur(e,t){let{url:n}=await e[`files/url`]({path:t}),r=document.createElement(`a`);r.href=n,r.download=lr(t),r.click()}function dr({path:e,className:t}){let n=i(),r=Z.of(a()?.locale);return(0,z.jsxs)(te,{variant:`outline`,size:`sm`,...t===void 0?{}:{className:t},"data-testid":`download-file`,onClick:()=>{ur(n,e).catch(e=>{P.error(r.notStarted,{description:e instanceof Error?e.message:String(e)})})},children:[(0,z.jsx)(mn,{"aria-hidden":!0}),r.download]})}var fr={mp4:`MP4`,gif:`GIF`,png:`PNG`,jpeg:`JPEG`,webp:`WebP`,avif:`AVIF`,pdf:`PDF`,html:`HTML`,zip:`ZIP`,psd:`PSD`,docx:`Word`,md:`Markdown`,xlsx:`Excel`,csv:`CSV`,json:`JSON`,glb:`GLB`},pr=(e,t)=>fr[t]??(t in e.type?e.type[t]:t);function mr(){let e=a(),t=Z.of(e?.locale),n=e?.item.kindInfo.exports?.names,r=e?.locale??`en`;return e=>{let i=n?.[e];return i?.[r]??i?.en??pr(t,e)}}function hr(){let[e,t]=(0,R.useState)(()=>window.matchMedia(`(max-width: 479px)`).matches);return(0,R.useEffect)(()=>{let e=window.matchMedia(`(max-width: 479px)`),n=()=>{t(e.matches)};return e.addEventListener(`change`,n),()=>{e.removeEventListener(`change`,n)}},[]),e}function gr(e,t){let r=i(),[a,o]=(0,R.useState)([]),[s,c]=(0,R.useState)(new Set),[l,u]=(0,R.useState)(!1),d=(0,R.useRef)(new Set),f=(0,R.useRef)(new Map),p=e=>{let n=$n(e,d.current,l);n!==void 0&&(d.current.delete(e.id),ur(r,n).catch(e=>{P.error(t.notStarted,{description:e instanceof Error?e.message:String(e)})}))},m=e=>{d.current.add(e.id),p(f.current.get(e.id)??e)};(0,R.useEffect)(()=>{let e=!0;return L(r,`export/list`,{}).then(t=>{e&&(o(t.jobs),u(t.reveal))},()=>void 0),()=>{e=!1}},[r]),n(`export/changed`,({job:t})=>{o(e=>{let n=e.findIndex(e=>e.id===t.id);return n<0?[...e,t]:e.map((e,r)=>r===n?t:e)}),!nr(t)&&!e&&c(e=>new Set(e).add(t.id)),f.current.set(t.id,t),p(t)});let[h,g]=(0,R.useState)(e);return h!==e&&(g(e),e&&c(new Set)),{all:a,fresh:s,reveals:l,asked:m}}function _r(e,t){let n=i(),r=`item-bar.export.${e}`,[a,o]=(0,R.useState)({type:t.types[0]??``,extras:[],options:{}});return(0,R.useEffect)(()=>{let e=!0;return n[`storage/get`]({key:r}).then(({value:n})=>{let r=n;if(!e||!r)return;let i=t.types.find(e=>e===r.type);i!==void 0&&o({type:i,extras:t.extras.filter(e=>r.extras?.includes(e)),options:r.options??{}})},()=>void 0),()=>{e=!1}},[n,r,t]),[a,e=>{o(e),n[`storage/set`]({key:r,value:e}).catch(()=>void 0)}]}async function vr(e,t,n){n&&await L(e,`export/reveal`,{path:t}).then(()=>!0,()=>!1)||await ur(e,t)}function yr({job:e,versions:t,ahead:n,words:r,reveals:o,onAsked:s}){let c=mr(),l=i(),u=a()?.agent?.name??`AllyHub`,d=Math.round(e.progress*100),f=o?kn:mn,p=o?r.show:r.download,m=e.versions.length===0?void 0:e.versions.length>2?r.nVersions(e.versions.length):e.versions.map(e=>t.find(t=>t.key===e)?.label??e).join(`, `),h=[e.types.map(e=>c(e)).join(`, `),...t.length>1&&m!==void 0?[m]:[]].join(` · `);return(0,z.jsxs)(`div`,{className:`border-t py-2 pr-2 pl-4`,"data-testid":`export-job`,"data-state":e.state,children:[nr(e)&&(0,z.jsxs)(`div`,{className:`pr-2`,children:[(0,z.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`text-dense min-w-0 flex-1 truncate`,children:h}),(0,z.jsx)(`span`,{className:`text-lead text-xs tabular-nums`,children:e.state===`running`?`${String(d)}%`:n>0?r.queuedAhead(n):r.queued}),(0,z.jsx)(F,{icon:!0,"aria-label":r.cancel,title:r.cancel,"data-testid":`export-cancel`,onClick:()=>{L(l,`export/cancel`,{job:e.id}).catch(()=>void 0)},children:(0,z.jsx)(oe,{"aria-hidden":!0})})]}),(0,z.jsx)(He,{value:d,className:`mt-1 h-1`})]}),e.state===`failed`&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,children:[(0,z.jsx)(he,{className:`text-destructive size-3.5 flex-none`,"aria-hidden":!0}),(0,z.jsxs)(`span`,{className:`text-dense text-destructive min-w-0 flex-1 truncate`,children:[r.failed,` · `,h]}),(0,z.jsx)(F,{icon:!0,"aria-label":r.retry,title:r.retry,"data-testid":`export-retry`,onClick:()=>{L(l,`export/start`,{item:e.item,versions:e.versions,types:e.types,...e.options?{options:e.options}:{}}).then(e=>{s(e.job)},e=>{P.error(r.notStarted,{description:e instanceof Error?e.message:String(e)})})},children:(0,z.jsx)(An,{"aria-hidden":!0})})]}),(0,z.jsx)(`p`,{className:`text-lead pr-2 pl-5.5 text-xs`,title:e.error,children:r.failedHelp(u)})]}),e.files.map(e=>(0,z.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,"data-testid":`export-file`,children:[(0,z.jsx)(Me,{className:`text-success size-3.5 flex-none`,"aria-hidden":!0}),(0,z.jsx)(`span`,{className:`text-dense min-w-0 flex-1 truncate`,title:e,children:lr(e)}),(0,z.jsx)(F,{icon:!0,"aria-label":p,title:p,"data-testid":`export-give`,onClick:()=>{vr(l,e,o)},children:(0,z.jsx)(f,{"aria-hidden":!0})})]},e)),e.state===`done`&&e.error!==void 0&&(0,z.jsx)(`p`,{className:`text-lead pr-2 pl-5.5 text-xs`,title:e.error,children:r.partial})]})}function br({versions:e,shown:t,picked:n,onPick:r,onBack:i,words:a}){return(0,z.jsxs)(`div`,{"data-testid":`export-choose`,children:[(0,z.jsxs)(`div`,{className:`flex h-11 items-center gap-1 border-b pr-4 pl-2`,children:[(0,z.jsx)(F,{icon:!0,"aria-label":a.back,title:a.back,onClick:i,children:(0,z.jsx)(pn,{"aria-hidden":!0})}),(0,z.jsx)(`span`,{className:`text-sm font-medium`,children:a.versions}),(0,z.jsxs)(`span`,{className:`text-lead ml-auto text-xs tabular-nums`,children:[n.length,`/`,e.length]})]}),(0,z.jsx)(`ul`,{className:`max-h-64 overflow-y-auto p-2`,children:e.map(e=>(0,z.jsx)(`li`,{children:(0,z.jsxs)(`label`,{className:`pressable flex h-8 items-center gap-2 rounded-md px-2 text-sm`,children:[(0,z.jsx)(Rn,{checked:n.includes(e.key),"data-version":e.key,onCheckedChange:t=>{r(t===!0?[...n,e.key]:n.filter(t=>t!==e.key))}}),(0,z.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),e.key===t&&(0,z.jsx)(`span`,{className:`text-lead text-xs`,children:a.onShow})]})},e.key))})]})}function xr({kind:e,offer:t,item:n,props:r,jobs:a,all:o,words:s,reveals:c,onAsked:l,startRef:u}){let d=mr(),f=i(),p=r.versions??[],m=p.map(e=>e.key),h=p.find(e=>e.key===r.shown)?.label,g=r.unavailable??{},[_,v]=_r(e,t),[y,b]=(0,R.useState)(`shown`),[x,S]=(0,R.useState)(r.shown===void 0?[]:[r.shown]),[C,w]=(0,R.useState)(!1),[ee,E]=(0,R.useState)(!1),D=sr(y,r.shown,m,x),O=D?.length??1,k=[_.type,..._.extras.filter(e=>g[e]===void 0)],A=t.options.filter(e=>e.only.includes(_.type)),j=ar(A,_.type,_.options),ne=A.filter(e=>e.values===void 0),re=(e,t)=>{v({..._,options:{..._.options,[e]:t}})},M=r.check?.waiting===!0,ie=M?0:r.check?.problems(D)??0,ae=a.some(e=>rr(e,D??[],k,j)),oe=async()=>{E(!0);try{l((await L(f,`export/start`,{item:n,...D?{versions:D}:{},types:k,...Object.keys(j).length>0?{options:j}:{}})).job)}catch(e){if(le(e))return;P.error(s.notStarted,{description:e instanceof Error?e.message:String(e)})}finally{E(!1)}},N=(0,z.jsx)(Cr,{label:s.format,types:t.types,chosen:_.type,name:d,onChoose:e=>{v({..._,type:e})}}),se=(0,z.jsx)(te,{ref:u,size:`sm`,disabled:M||ie>0||ee||O===0||ae,"data-testid":`export-start`,onClick:()=>{oe()},children:M?s.checking:s.download});return(0,z.jsxs)(`div`,{className:`overflow-hidden rounded-lg text-sm`,"data-testid":`export-panel`,children:[C?(0,z.jsx)(br,{versions:p,shown:r.shown,picked:x,onPick:S,onBack:()=>{w(!1)},words:s}):(0,z.jsxs)(z.Fragment,{children:[t.types.length>1&&(0,z.jsx)(`div`,{className:`px-4 pt-4`,children:N}),(m.length>1||t.extras.length+A.length>0)&&(0,z.jsxs)(`div`,{className:`grid grid-cols-[max-content_minmax(0,1fr)] items-center gap-x-4 gap-y-3 px-4 pt-4`,children:[A.map(e=>e.values?(0,z.jsxs)(R.Fragment,{children:[(0,z.jsx)(`span`,{className:`text-lead`,children:s.option[e.name]?.label}),(0,z.jsx)(Xn,{type:`single`,variant:`outline`,size:`sm`,className:`w-full`,"aria-label":s.option[e.name]?.label,"data-testid":`export-option-${e.name}`,value:String(_.options[e.name]??e.values[0]),onValueChange:t=>{t!==``&&re(e.name,t)},children:e.values.map(t=>(0,z.jsx)(Zn,{value:t,"data-value":t,className:`flex-1`,children:s.option[e.name]?.values?.[t]??t},t))})]},e.name):null),m.length>1&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`text-lead`,children:s.versions}),(0,z.jsxs)(je,{value:y,onValueChange:e=>{b(e),e===`some`&&w(!0)},children:[(0,z.jsx)(ke,{size:`sm`,"aria-label":s.versions,className:`w-full min-w-0`,"data-testid":`export-scope`,children:(0,z.jsx)(Pe,{})}),(0,z.jsxs)(Oe,{position:`popper`,align:`start`,children:[(0,z.jsx)(Ie,{value:`shown`,children:h??s.onShow}),(0,z.jsx)(Ie,{value:`all`,children:s.all(m.length)}),(0,z.jsx)(Le,{}),(0,z.jsx)(Ie,{value:`some`,onPointerUp:()=>{w(!0)},children:y===`some`?s.chosen(x.length):s.choose})]})]})]}),t.extras.length+ne.length>0&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{className:`text-lead self-start`,children:s.include}),(0,z.jsxs)(`div`,{className:`grid gap-1.5`,"data-testid":`export-include`,children:[ne.map(e=>(0,z.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(Rn,{checked:_.options[e.name]===!0,"data-option":e.name,onCheckedChange:t=>{re(e.name,t===!0)}}),(0,z.jsx)(`span`,{className:`truncate`,children:s.option[e.name]?.label})]},e.name)),t.extras.map(e=>{let t=g[e];return(0,z.jsxs)(`label`,{title:t,className:T(`flex items-center gap-2`,t!==void 0&&`text-lead-soft`),children:[(0,z.jsx)(Rn,{checked:t===void 0&&_.extras.includes(e),disabled:t!==void 0,"data-type":e,onCheckedChange:t=>{v({..._,extras:t===!0?[..._.extras,e]:_.extras.filter(t=>t!==e)})}}),(0,z.jsx)(`span`,{className:`truncate`,children:d(e)})]},e)})]})]})]}),ie>0&&(0,z.jsxs)(`p`,{className:`text-dense text-destructive flex items-start gap-1.5 px-4 pt-3`,"data-testid":`export-blocked`,children:[(0,z.jsx)(he,{className:`mt-0.5 size-3.5 flex-none`,"aria-hidden":!0}),s.blocked(ie)]}),(0,z.jsxs)(`div`,{className:`flex items-center gap-3 p-4`,children:[(0,z.jsx)(`span`,{className:`text-lead min-w-0 flex-1 truncate text-xs`,children:r.facts??(t.types.length===1?d(_.type):void 0)}),se]})]}),a.length>0&&(0,z.jsx)(`div`,{className:`max-h-56 overflow-y-auto`,children:a.map(e=>(0,z.jsx)(yr,{job:e,versions:p,ahead:or(o,e.id),words:s,reveals:c,onAsked:l},e.id))})]})}var Sr={png:xn,jpeg:xn,webp:xn,avif:xn,gif:wn,mp4:On,mov:On,pdf:me,docx:Sn,md:Dn,txt:Dn,html:bn,xlsx:Tn,csv:Tn,json:vn,pptx:yn,zip:gn,psd:En,glb:_n};function Cr(e){let t=(0,R.useRef)(null),n=e.types.length,r=n<=4?n:Math.min(4,Math.ceil(n/2));return(0,z.jsx)(`div`,{ref:t,role:`radiogroup`,"aria-label":e.label,"data-testid":`export-format`,className:`grid gap-2`,style:{gridTemplateColumns:`repeat(${String(r)}, minmax(0, 1fr))`},onKeyDown:r=>{let i=r.key===`ArrowRight`||r.key===`ArrowDown`?1:r.key===`ArrowLeft`||r.key===`ArrowUp`?-1:0;if(i===0)return;r.preventDefault();let a=e.types[(e.types.indexOf(e.chosen)+i+n)%n];a!==void 0&&(e.onChoose(a),t.current?.querySelector(`[data-type="${a}"]`)?.focus())},children:e.types.map(t=>{let n=Sr[t]??Cn,r=e.chosen===t;return(0,z.jsxs)(Fn,{variant:`box`,checked:r,tabIndex:r?0:-1,"data-type":t,title:e.name(t),className:`min-h-16 min-w-0 justify-center gap-1.5 rounded-lg px-1.5 py-2.5`,onClick:()=>{e.onChoose(t)},children:[(0,z.jsx)(n,{"aria-hidden":!0,strokeWidth:1.5,className:T(`size-5`,r?`text-pencil`:`text-lead`)}),(0,z.jsx)(`span`,{className:`line-clamp-2 w-full text-center text-xs leading-tight text-balance break-words`,children:e.name(t)})]},t)})})}function wr(e){let t=/Mac|iPhone|iPad/u.test(navigator.userAgent),n=e.target;return e.code===`KeyE`&&(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.shiftKey&&!e.altKey&&!(n instanceof HTMLElement&&(n.isContentEditable||n.tagName===`INPUT`||n.tagName===`TEXTAREA`))}function Tr(e){let t=Qn(a());return t.gives===`nothing`?null:t.gives===`file as it is`?(0,z.jsx)(Er,{path:t.path,hosted:!t.button}):(0,z.jsx)(Dr,{...e})}function Er({path:e,hosted:t}){let r=i(),o=Z.of(a()?.locale),s=()=>{ur(r,e).catch(e=>{P.error(o.notStarted,{description:e instanceof Error?e.message:String(e)})})};n(`editor/command`,({command:e,open:t})=>{e===`export`&&t!==!1&&s()});let c=(0,R.useEffectEvent)(e=>{wr(e)&&(e.preventDefault(),s())});return(0,R.useEffect)(()=>(window.addEventListener(`keydown`,c),()=>{window.removeEventListener(`keydown`,c)}),[]),(0,R.useEffect)(()=>{t&&r[`export/state`]({at:`idle`,open:!1}).catch(()=>void 0)},[r,t]),t?null:(0,z.jsxs)(F,{"data-testid":`export`,"data-state":`idle`,"aria-label":o.download,title:o.download,onClick:s,children:[(0,z.jsx)(mn,{"aria-hidden":!0}),(0,z.jsx)(`span`,{className:`@max-lg/item:hidden`,children:o.download})]})}function Dr(e){let t=i(),r=a(),o=r?.commands===!0,s=r?.item.kind,c=r?.item.kindInfo.exports,l=r?.item.id,u=Z.of(r?.locale),d=hr(),f=(0,R.useRef)(null),[p,m]=(0,R.useState)(!1),{all:h,fresh:g,reveals:_,asked:v}=gr(p,u);n(`editor/command`,({command:e,open:t})=>{e===`export`&&m(e=>t??!e)}),(0,R.useEffect)(()=>{let e=e=>{wr(e)&&(e.preventDefault(),m(e=>!e))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[]),(0,R.useEffect)(()=>{if(!p||d)return;let e=()=>{m(!1)};return window.addEventListener(`blur`,e),()=>{window.removeEventListener(`blur`,e)}},[p,d]);let y=c!==void 0,b=l===void 0?[]:tr(h,l),x=cr(b,g),S=x.at===`running`?x.percent:void 0;if((0,R.useEffect)(()=>{o&&y&&t[`export/state`]({at:x.at,...S===void 0?{}:{percent:S},open:p}).catch(()=>void 0)},[t,o,y,x.at,S,p]),s===void 0||l===void 0||c===void 0)return null;let C=x.at===`running`?`${String(x.percent)}%`:x.at===`queued`?u.queued:x.at===`done`?u.ready:x.at===`failed`?u.failed:u.download,w=(0,z.jsxs)(F,{"data-testid":`export`,"data-state":x.at,"aria-pressed":p,"aria-label":x.at===`running`?u.preparing(x.percent):C,title:C,onClick:()=>{d&&m(!0)},children:[x.at===`running`&&(0,z.jsx)(Ve,{value:x.percent/100}),x.at===`queued`&&(0,z.jsx)(Ve,{value:0}),x.at===`done`&&(0,z.jsx)(Me,{className:`text-success`,"aria-hidden":!0}),x.at===`failed`&&(0,z.jsx)(he,{className:`text-destructive`,"aria-hidden":!0}),x.at===`idle`&&(0,z.jsx)(mn,{"aria-hidden":!0}),(0,z.jsx)(`span`,{className:`@max-lg/item:hidden`,children:C})]}),T=(0,z.jsx)(xr,{kind:s,offer:c,item:l,props:e,jobs:b,all:h,words:u,reveals:_,onAsked:v,startRef:f});return d?(0,z.jsxs)(z.Fragment,{children:[!o&&w,(0,z.jsx)(Un,{open:p,onOpenChange:m,children:(0,z.jsxs)(Kn,{side:`bottom`,showCloseButton:!1,className:`gap-0 rounded-t-lg`,children:[(0,z.jsx)(qn,{className:`sr-only`,children:u.download}),T]})})]}):(0,z.jsxs)(zn,{open:p,onOpenChange:m,children:[o?(0,z.jsx)(Hn,{className:`pointer-events-none fixed top-0 right-2 size-0`}):(0,z.jsx)(Bn,{asChild:!0,children:w}),(0,z.jsxs)(Vn,{align:`end`,sideOffset:o?4:8,className:`w-88 p-0`,onOpenAutoFocus:e=>{f.current&&!f.current.disabled&&(e.preventDefault(),f.current.focus())},children:[!o&&(0,z.jsx)(Ln,{}),T]})]})}function Or({...e}){return(0,z.jsx)(dt,{"data-slot":`context-menu`,...e})}function kr({...e}){return(0,z.jsx)(pt,{"data-slot":`context-menu-trigger`,...e})}function Ar({...e}){return(0,z.jsx)(bt,{"data-slot":`context-menu-sub`,...e})}function jr({className:e,inset:t,children:n,...r}){return(0,z.jsxs)(xt,{"data-slot":`context-menu-sub-trigger`,"data-inset":t,className:T(`flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground`,e),...r,children:[n,(0,z.jsx)(Ne,{className:`ml-auto`})]})}function Mr({className:e,...t}){return(0,z.jsx)(St,{"data-slot":`context-menu-sub-content`,className:T(`z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...t})}var Nr=R.createContext(null),Pr=4;function Fr(e){let t=R.useRef(!1);return R.useEffect(()=>{let n=e?.ownerDocument??document,r=0,i=e=>{r+=Math.abs(e.movementX)+Math.abs(e.movementY),r>=Pr&&(t.current=!0,n.removeEventListener(`pointermove`,i,!0))};return n.addEventListener(`pointermove`,i,!0),()=>{n.removeEventListener(`pointermove`,i,!0)}},[e]),t}function Ir(e){let t=Fr(e.container);return(0,z.jsx)(Nr,{value:t,children:e.children})}function Lr(e){let t=R.useContext(Nr);return n=>{e?.(n),t&&!t.current&&n.preventDefault()}}function Rr({className:e,container:t,children:n,...r}){return(0,z.jsx)(mt,{container:t,children:(0,z.jsx)(gt,{"data-slot":`context-menu-content`,className:T(`z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...r,children:(0,z.jsx)(Ir,{container:t,children:n})})})}function zr({className:e,inset:t,variant:n=`default`,onPointerUp:r,...i}){let a=Lr(r);return(0,z.jsx)(_t,{onPointerUp:a,"data-slot":`context-menu-item`,"data-inset":t,"data-variant":n,className:T(`relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!`,e),...i})}function Br({className:e,...t}){return(0,z.jsx)(vt,{"data-slot":`context-menu-separator`,className:T(`-mx-1 my-1 h-px bg-border`,e),...t})}function Vr({className:e,...t}){return(0,z.jsx)(`span`,{"data-slot":`context-menu-shortcut`,className:T(`ml-auto text-xs tracking-widest text-muted-foreground`,e),...t})}var Hr=150,Ur=e=>{if(!(e.currentTarget instanceof Element))return;let t=e.currentTarget.getBoundingClientRect();return{x:t.x,y:t.y,width:t.width,height:t.height}},Wr=(e,t,n=!0)=>{let r=Ur(t);setTimeout(()=>{e.begin(r,n)},Hr)};function $(){let e=i(),t=a();if(t?.notes!==!0)return;let n=Z.of(t.locale);return{label:n.markUp,hint:n.markUpHint,begin:(t,n)=>{e[`note/begin`]({...t?{from:t}:{},...n===!0?{selection:n}:{}}).catch(()=>void 0)}}}function Gr(){let e=$();return e?(0,z.jsxs)(F,{title:e.hint,"data-testid":`mark-up`,className:`text-ink`,onClick:t=>{e.begin(Ur(t))},children:[(0,z.jsx)(X,{"aria-hidden":!0}),e.label]}):null}function Kr(e){let t=$();return t?(0,z.jsx)(`div`,{role:`toolbar`,"aria-label":t.label,"data-note-chrome":``,"data-testid":`mark-up-bar`,className:`border-rule bg-sheet shadow-overlay flex items-center rounded-lg border p-0.5 ${e.className??``}`,style:e.style,onPointerDown:e=>{e.stopPropagation()},children:(0,z.jsxs)(F,{title:t.hint,"data-testid":`mark-up-selected`,className:`text-ink`,onClick:e=>{t.begin(Ur(e),!0)},children:[(0,z.jsx)(X,{"aria-hidden":!0}),t.label]})}):null}function qr({selection:e=!0}={}){let t=$();return t?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(ze,{}),(0,z.jsxs)(Fe,{title:t.hint,"data-testid":`mark-up-item`,onSelect:n=>{Wr(t,n,e)},children:[(0,z.jsx)(X,{className:`size-3.5`,"aria-hidden":!0}),t.label]})]}):null}function Jr(){let e=$();return e?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Br,{}),(0,z.jsxs)(zr,{title:e.hint,"data-testid":`mark-up-item`,onSelect:t=>{Wr(e,t)},children:[(0,z.jsx)(X,{className:`size-3.5`,"aria-hidden":!0}),e.label]})]}):null}var Yr=e=>e instanceof Element&&e.closest(`input, textarea`)!==null;function Xr(){let e=$(),t=e!==void 0,[n,r]=(0,R.useState)();return(0,R.useEffect)(()=>{if(!t)return;let e=e=>{e.defaultPrevented||Yr(e.target)||(e.preventDefault(),r({x:e.clientX,y:e.clientY}))};return document.addEventListener(`contextmenu`,e),()=>{document.removeEventListener(`contextmenu`,e)}},[t]),!e||!n?null:(0,z.jsxs)(Re,{open:!0,onOpenChange:e=>{e||r(void 0)},children:[(0,z.jsx)(pe,{asChild:!0,children:(0,z.jsx)(`span`,{style:{position:`fixed`,left:n.x,top:n.y,width:0,height:0}})}),(0,z.jsx)(Ae,{align:`start`,className:`text-xs`,children:(0,z.jsxs)(Fe,{title:e.hint,"data-testid":`mark-up-item`,onSelect:t=>{Wr(e,t)},children:[(0,z.jsx)(X,{className:`size-3.5`,"aria-hidden":!0}),e.label]})})]})}function Zr(){let e=a();return e?.share===!0&&e.mode===`edit`&&e.item.kindInfo.share===!0}function Qr(){let e=i(),t=a();if(!Zr())return null;let n=Z.of(t?.locale);return(0,z.jsxs)(F,{"data-testid":`share`,"aria-label":n.share,title:n.share,onClick:()=>{e[`share/begin`]({}).catch(()=>void 0)},children:[(0,z.jsx)(jn,{"aria-hidden":!0}),(0,z.jsx)(`span`,{className:`@max-lg/item:hidden`,children:n.share})]})}var $r=800;function ei(e){let t=e?.state===`saving`||e?.state===`unsaved`,[n,r]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{if(!t)return;let e=setTimeout(()=>{r(!0)},$r);return()=>{clearTimeout(e),r(!1)}},[t]),e!==void 0&&e.state!==`saved`&&(!t||n)}function ti({saved:e,words:t}){return(0,z.jsx)(`span`,{"data-testid":`save-state`,"data-state":e.state,title:e.message,className:T(`px-1 text-xs`,e.state===`error`?`text-destructive`:`text-lead`),children:t.saved[e.state]})}function ni({start:e,saved:t,exports:n}){let i=a(),o=Zr(),s=Z.of(i?.locale),c=ei(t),l=r()?.doing!==void 0;if(i?.mode!==`edit`)return e?(0,z.jsx)(`div`,{className:`bg-background flex min-h-9 flex-none items-center gap-1 border-b px-1 font-sans text-sm`,"data-testid":`item-bar`,children:e}):null;if(i.commands===!0)return(0,z.jsxs)(z.Fragment,{children:[e?(0,z.jsx)(`div`,{className:`bg-background @container/item flex min-h-9 flex-none items-center gap-1 border-b px-1 font-sans text-sm`,"data-testid":`item-bar`,children:e}):null,(0,z.jsx)(Pn,{}),(0,z.jsx)(Tr,{...n}),(0,z.jsx)(Xr,{})]});let u=Qn(i).gives!==`nothing`;return!e&&!c&&!u&&!o&&!l?(0,z.jsx)(Xr,{}):(0,z.jsxs)(`div`,{className:`bg-background @container/item flex min-h-9 flex-none items-center gap-1 border-b px-1 font-sans text-sm`,"data-testid":`item-bar`,children:[e,(0,z.jsxs)(`div`,{className:`ml-auto flex flex-none items-center gap-1`,children:[(0,z.jsx)(Nn,{}),t&&c&&(0,z.jsx)(ti,{saved:t,words:s}),(0,z.jsx)(Gr,{}),(0,z.jsx)(Tr,{...n}),(0,z.jsx)(Qr,{})]}),(0,z.jsx)(Xr,{})]})}var ri=e(D(),1),ii=`group-data-[compact]/bar:hidden`,ai=32,oi={compact:!1,out:[],firsts:[],order:{}},si=(0,R.createContext)(null),ci=(e,t)=>e.compact===t.compact&&e.out.join(`
3
+ `)===t.out.join(`
4
+ `)&&e.firsts.join(`
5
+ `)===t.firsts.join(`
6
+ `)&&JSON.stringify(e.order)===JSON.stringify(t.order);function li({children:e,id:t,priority:n=0,keep:r=!1,ruled:i=!0}){let a=(0,R.useContext)(si),o=(0,R.useId)(),s=t??o,c=a?.fit.firsts.includes(s)??!1,l=a?.touch;(0,R.useLayoutEffect)(()=>(l?.(),l),[l]);let u=(0,z.jsx)(`span`,{className:T(`relative flex h-8 flex-none items-center gap-0.5`,!c&&`pl-2`,!c&&i&&`before:bg-rule before:absolute before:top-2 before:bottom-2 before:left-0.75 before:w-px`),children:e});if(!a)return u;let d=a.fit.out.includes(s);return(0,z.jsx)(`span`,{"data-group":s,"data-priority":n,"data-keep":r?``:void 0,className:d?`hidden`:`flex flex-none`,children:d?a.panel?(0,ri.createPortal)((0,z.jsx)(`span`,{"data-group":s,"data-away":``,className:`flex flex-none`,style:{order:a.fit.order[s]??0},children:u}),a.panel):null:u})}function ui({testid:e,className:t,children:n,...r}){let i=a(),o=Z.of(i?.locale),s=(0,R.useRef)(null),[c,l]=(0,R.useState)(null),u=(0,R.useRef)(new Map),[d,f]=(0,R.useState)(oi),[p,m]=(0,R.useState)(!1),[h,g]=(0,R.useState)(0),_=(0,R.useCallback)(()=>{g(e=>e+1)},[]),v=(0,R.useRef)(null);return(0,R.useLayoutEffect)(()=>{let e=new ResizeObserver(()=>{g(e=>e+1)});return v.current=e,s.current&&e.observe(s.current),()=>{e.disconnect(),v.current=null}},[]),(0,R.useLayoutEffect)(()=>{let e=s.current;if(!e)return;let t=[],n=new Set,r=!0;for(let i of e.querySelectorAll(`[data-group]:not([data-away]), [data-spacer]`)){if(i.dataset.spacer!==void 0){r=!0;continue}let e=i.dataset.group??``;if(t.push({key:e,priority:Number(i.dataset.priority??0),keep:i.dataset.keep!==void 0,at:t.length}),d.out.includes(e))continue;r&&n.add(e),r=!1,v.current?.observe(i);let a=i.getBoundingClientRect().width;a>0&&u.current.set(`${String(d.compact)}:${e}`,a)}for(let e of c?.querySelectorAll(`[data-away]`)??[]){let t=e.getBoundingClientRect().width;t>0&&u.current.set(`${String(d.compact)}:${e.dataset.group??``}`,t)}let i=e.clientWidth,a=(e,t)=>u.current.get(`${String(e)}:${t.key}`),o=e=>t.every(t=>a(e,t)!==void 0),l=e=>t.reduce((t,n)=>t+(a(e,n)??0),0),h=!1,g=[];if(!o(!1)||l(!1)<=i)h=!1;else if(!o(!0)||l(!0)<=i)h=!0;else{h=!0;let e=t.filter(e=>!e.keep).sort((e,t)=>e.priority-t.priority||t.at-e.at),n=new Set,r=l(!0)+ai;for(let t of e){if(r<=i)break;n.add(t.key),r-=a(!0,t)??0}g=t.filter(e=>n.has(e.key)).map(e=>e.key)}let _={compact:h,out:g,firsts:[...n],order:Object.fromEntries(t.map(e=>[e.key,e.at]))};ci(_,d)||f(_),g.length===0&&p&&m(!1)},[d,p,h,c,n]),(0,z.jsx)(si.Provider,{value:{fit:d,panel:p?c:null,touch:_},children:(0,z.jsxs)(`div`,{...r,ref:s,role:r.role??`toolbar`,"data-testid":e,"data-compact":d.compact?``:void 0,className:T(`group/bar relative flex h-8 min-w-0 flex-1 items-center overflow-hidden`,t),children:[n,d.out.length>0?(0,z.jsxs)(zn,{open:p,onOpenChange:m,children:[(0,z.jsx)(Bn,{asChild:!0,children:(0,z.jsx)(F,{icon:!0,className:`ml-auto flex-none`,"aria-label":o.moreTools,title:o.moreTools,"data-testid":`${e}-more`,onMouseDown:e=>{e.preventDefault()},children:(0,z.jsx)(hn,{})})}),(0,z.jsx)(Vn,{align:`end`,collisionPadding:8,role:`toolbar`,"aria-label":o.moreTools,"data-testid":`${e}-panel`,"data-compact":d.compact?``:void 0,onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{e.preventDefault()},onInteractOutside:e=>{let t=e.target;t instanceof Element&&t.closest(`[data-radix-popper-content-wrapper]`)&&e.preventDefault()},className:`group/bar w-auto max-w-[calc(100vw-1rem)] overflow-hidden p-1`,children:(0,z.jsx)(`div`,{ref:l,className:`-ml-2 flex flex-wrap items-center`})})]}):null]})})}export{Rn as C,X as D,An as E,Bn as S,Mn as T,kr as _,Kr as a,Hn as b,$ as c,zr as d,Br as f,jr as g,Mr as h,ni as i,Or as l,Ar as m,li as n,Jr as o,Vr as p,ui as r,qr as s,ii as t,Rr as u,dr as v,Fn as w,Vn as x,zn as y};