allyhub 0.8.0 → 0.9.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 (1569) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/NOTICE +122 -42
  3. package/client.d.ts +1 -1
  4. package/dist/command.js +1 -1
  5. package/dist/commands/add.js +4 -4
  6. package/dist/commands/check.js +1 -1
  7. package/dist/commands/cloud-tools.js +13 -7
  8. package/dist/commands/cloud.js +1 -1
  9. package/dist/commands/contributed.js +2 -0
  10. package/dist/commands/dev.js +2 -2
  11. package/dist/commands/doctor.js +4 -4
  12. package/dist/commands/extensions.js +3 -0
  13. package/dist/commands/frames/common.js +1 -1
  14. package/dist/commands/frames/compare.js +1 -1
  15. package/dist/commands/frames/cuts.js +1 -1
  16. package/dist/commands/frames/doc.js +1 -1
  17. package/dist/commands/frames/overlay.js +2 -0
  18. package/dist/commands/frames/piece.js +1 -1
  19. package/dist/commands/frames/sheet.js +1 -1
  20. package/dist/commands/frames.js +9 -9
  21. package/dist/commands/index.js +1 -1
  22. package/dist/commands/inspect/combos.js +2 -2
  23. package/dist/commands/inspect/common.js +2 -2
  24. package/dist/commands/inspect/facts.js +3 -3
  25. package/dist/commands/inspect/index.js +1 -1
  26. package/dist/commands/inspect/layout.js +1 -1
  27. package/dist/commands/inspect/views.js +2 -0
  28. package/dist/commands/mail.js +9 -0
  29. package/dist/commands/render.js +2 -2
  30. package/dist/fields.js +1 -1
  31. package/dist/help.js +4 -4
  32. package/dist/main.js +4 -4
  33. package/dist/media.js +1 -1
  34. package/dist/node_modules/@allyhub/3d-extension/LICENSE +241 -0
  35. package/dist/node_modules/@allyhub/3d-extension/dist/build-plugins.js +2 -0
  36. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +2 -0
  37. package/dist/node_modules/@allyhub/3d-extension/dist/cli/index.js +2 -0
  38. package/dist/node_modules/@allyhub/3d-extension/dist/cli/lookup.js +2 -0
  39. package/dist/node_modules/@allyhub/3d-extension/dist/cli/model.js +3 -0
  40. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-input.js +2 -0
  41. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery.js +7 -0
  42. package/dist/node_modules/@allyhub/3d-extension/dist/project-tools.js +2 -0
  43. package/dist/node_modules/@allyhub/3d-extension/dist/read-view.js +2 -0
  44. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +2 -0
  45. package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +2 -0
  46. package/dist/node_modules/@allyhub/3d-extension/dist/title.js +2 -0
  47. package/dist/node_modules/@allyhub/3d-extension/dist/tools.js +2 -0
  48. package/dist/node_modules/@allyhub/3d-extension/dist/tree.js +2 -0
  49. package/dist/node_modules/@allyhub/3d-extension/dist/workspace.js +2 -0
  50. package/dist/node_modules/@allyhub/3d-extension/package.json +295 -0
  51. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  52. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  53. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  54. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +24 -0
  55. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +61 -0
  56. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +51 -0
  57. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +13 -0
  58. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +35 -0
  59. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +19 -0
  60. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +10 -0
  61. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +35 -0
  62. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +74 -0
  63. package/dist/node_modules/@allyhub/browser/dist/page.js +1 -1
  64. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +26 -0
  65. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  66. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +91 -0
  67. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +2 -0
  68. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +84 -0
  69. package/dist/node_modules/@allyhub/build/dist/cli-command.js +2 -0
  70. package/dist/node_modules/@allyhub/build/dist/content.d.ts +12 -24
  71. package/dist/node_modules/@allyhub/build/dist/content.js +1 -2
  72. package/dist/node_modules/@allyhub/build/dist/data.d.ts +2 -4
  73. package/dist/node_modules/@allyhub/build/dist/data.js +2 -2
  74. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +44 -0
  75. package/dist/node_modules/@allyhub/build/dist/evaluate.js +2 -0
  76. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +35 -0
  77. package/dist/node_modules/@allyhub/build/dist/file-check.js +2 -0
  78. package/dist/node_modules/@allyhub/build/dist/files.js +1 -1
  79. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +29 -0
  80. package/dist/node_modules/@allyhub/build/dist/generated.js +2 -0
  81. package/dist/node_modules/@allyhub/build/dist/index.d.ts +23 -9
  82. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  83. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +119 -0
  84. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +2 -0
  85. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +507 -0
  86. package/dist/node_modules/@allyhub/build/dist/kind-build.js +2 -0
  87. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +2 -1
  88. package/dist/node_modules/@allyhub/build/dist/matrix.js +1 -1
  89. package/dist/node_modules/@allyhub/build/dist/media.d.ts +1 -1
  90. package/dist/node_modules/@allyhub/build/dist/media.js +1 -1
  91. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +27 -15
  92. package/dist/node_modules/@allyhub/build/dist/messages.js +2 -2
  93. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +16 -19
  94. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +2 -4
  95. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +1 -1
  96. package/dist/node_modules/@allyhub/build/dist/meta.js +1 -1
  97. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +1 -1
  98. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +1 -1
  99. package/dist/node_modules/@allyhub/build/dist/move-refs.js +1 -1
  100. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +16 -8
  101. package/dist/node_modules/@allyhub/build/dist/plugin.js +8 -9
  102. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +58 -35
  103. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  104. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +19 -0
  105. package/dist/node_modules/@allyhub/build/dist/project-root.js +2 -0
  106. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +116 -0
  107. package/dist/node_modules/@allyhub/build/dist/project-tool.js +2 -0
  108. package/dist/node_modules/@allyhub/build/dist/references.d.ts +1 -1
  109. package/dist/node_modules/@allyhub/build/dist/references.js +1 -1
  110. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +7 -12
  111. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  112. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +73 -0
  113. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +2 -26
  114. package/dist/node_modules/@allyhub/build/dist/takes.js +1 -2
  115. package/dist/node_modules/@allyhub/build/dist/types.d.ts +1 -1
  116. package/dist/node_modules/@allyhub/build/dist/types.js +1 -1
  117. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +23 -0
  118. package/dist/node_modules/@allyhub/build/dist/uses.js +2 -0
  119. package/dist/node_modules/@allyhub/build/dist/version.d.ts +56 -0
  120. package/dist/node_modules/@allyhub/build/dist/version.js +2 -0
  121. package/dist/node_modules/@allyhub/build/dist/work.d.ts +30 -0
  122. package/dist/node_modules/@allyhub/build/dist/work.js +4 -0
  123. package/dist/node_modules/@allyhub/build/package.json +1 -1
  124. package/dist/node_modules/@allyhub/canvas-extension/LICENSE +241 -0
  125. package/dist/node_modules/@allyhub/canvas-extension/dist/check.js +2 -0
  126. package/dist/node_modules/@allyhub/canvas-extension/dist/inspect.js +4 -0
  127. package/dist/node_modules/@allyhub/canvas-extension/package.json +106 -0
  128. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +27 -0
  129. package/dist/node_modules/@allyhub/canvas-model/LICENSE +241 -0
  130. package/dist/node_modules/@allyhub/canvas-model/dist/canvas.js +8 -0
  131. package/dist/node_modules/@allyhub/canvas-model/dist/check.js +3 -0
  132. package/dist/node_modules/@allyhub/canvas-model/dist/edit.js +2 -0
  133. package/dist/node_modules/@allyhub/canvas-model/dist/index.js +2 -0
  134. package/dist/node_modules/@allyhub/canvas-model/dist/merge.js +2 -0
  135. package/dist/node_modules/@allyhub/canvas-model/package.json +14 -0
  136. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  137. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  138. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  139. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  140. package/dist/node_modules/@allyhub/check/dist/cache.js +1 -1
  141. package/dist/node_modules/@allyhub/check/dist/check.js +2 -3
  142. package/dist/node_modules/@allyhub/check/dist/index.js +1 -1
  143. package/dist/node_modules/@allyhub/check/package.json +1 -1
  144. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +29 -0
  145. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +91 -0
  146. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  147. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +12 -0
  148. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +43 -0
  149. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  150. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +25 -0
  151. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +76 -0
  152. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
  153. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +24 -0
  154. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  155. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +43 -0
  156. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +19 -0
  157. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  158. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +18 -0
  159. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +22 -0
  160. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +16 -0
  161. package/dist/node_modules/@allyhub/cloud/dist/mail.js +2 -0
  162. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +11 -0
  163. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +42 -0
  164. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +2 -0
  165. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +40 -0
  166. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +20 -0
  167. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +20 -0
  168. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  169. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +58 -0
  170. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +22 -0
  171. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  172. package/dist/node_modules/@allyhub/components/package.json +1 -1
  173. package/dist/node_modules/@allyhub/components/r/callout.json +2 -4
  174. package/dist/node_modules/@allyhub/components/r/caption-line.json +1 -3
  175. package/dist/node_modules/@allyhub/components/r/caption-subtitle.json +1 -3
  176. package/dist/node_modules/@allyhub/components/r/caption-word.json +1 -3
  177. package/dist/node_modules/@allyhub/components/r/chart.json +2 -4
  178. package/dist/node_modules/@allyhub/components/r/code-panel.json +2 -4
  179. package/dist/node_modules/@allyhub/components/r/connector.json +19 -0
  180. package/dist/node_modules/@allyhub/components/r/screen-demo.json +2 -4
  181. package/dist/node_modules/@allyhub/components/registry.json +6 -0
  182. package/dist/node_modules/@allyhub/components/src/callout.ts +80 -4
  183. package/dist/node_modules/@allyhub/components/src/chart.ts +14 -6
  184. package/dist/node_modules/@allyhub/components/src/code-panel.ts +10 -5
  185. package/dist/node_modules/@allyhub/components/src/connector.ts +295 -0
  186. package/dist/node_modules/@allyhub/components/src/index.ts +6 -0
  187. package/dist/node_modules/@allyhub/components/src/screen-demo.ts +47 -25
  188. package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
  189. package/dist/node_modules/@allyhub/dev-server/dist/card.js +1 -1
  190. package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
  191. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  192. package/dist/node_modules/@allyhub/dev-server/dist/kinds.js +2 -0
  193. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  194. package/dist/node_modules/@allyhub/dev-server/dist/presence.js +2 -0
  195. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  196. package/dist/node_modules/@allyhub/dev-server/dist/reach.js +1 -1
  197. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  198. package/dist/node_modules/@allyhub/dev-server/dist/routes.js +2 -0
  199. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  200. package/dist/node_modules/@allyhub/dev-server/dist/texts.js +4 -0
  201. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  202. package/dist/node_modules/@allyhub/dev-server/dist/tree.js +1 -1
  203. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  204. package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
  205. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +2 -2
  206. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  207. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  208. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  209. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  210. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  211. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  212. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  213. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  214. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  215. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  216. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  217. package/dist/node_modules/@allyhub/doc/dist/captions.js +2 -0
  218. package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
  219. package/dist/node_modules/@allyhub/doc/dist/cite.js +2 -0
  220. package/dist/node_modules/@allyhub/doc/dist/component.js +1 -1
  221. package/dist/node_modules/@allyhub/doc/dist/covers.js +61 -0
  222. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  223. package/dist/node_modules/@allyhub/doc/dist/html.js +243 -56
  224. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  225. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  226. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  227. package/dist/node_modules/@allyhub/doc/dist/page.js +2 -0
  228. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  229. package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
  230. package/dist/node_modules/@allyhub/doc/dist/table.js +2 -0
  231. package/dist/node_modules/@allyhub/doc/dist/write.js +33 -28
  232. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  233. package/dist/node_modules/@allyhub/doc-extension/LICENSE +241 -0
  234. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +3 -0
  235. package/dist/node_modules/@allyhub/doc-extension/dist/cli/cover.js +4 -0
  236. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +2 -0
  237. package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +2 -0
  238. package/dist/node_modules/@allyhub/doc-extension/dist/cli/pictures.js +2 -0
  239. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +2 -0
  240. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +3 -0
  241. package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +2 -0
  242. package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +2 -0
  243. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +2 -0
  244. package/dist/node_modules/@allyhub/doc-extension/package.json +187 -0
  245. package/dist/node_modules/@allyhub/doc-print/LICENSE +241 -0
  246. package/dist/node_modules/@allyhub/doc-print/dist/facts.js +2 -0
  247. package/dist/node_modules/@allyhub/doc-print/dist/fonts.js +4 -0
  248. package/dist/node_modules/@allyhub/doc-print/dist/index.js +2 -0
  249. package/dist/node_modules/@allyhub/doc-print/dist/layout.js +116 -0
  250. package/dist/node_modules/@allyhub/doc-print/dist/pages.js +77 -0
  251. package/dist/node_modules/@allyhub/doc-print/dist/print.js +68 -0
  252. package/dist/node_modules/@allyhub/doc-print/package.json +13 -0
  253. package/dist/node_modules/@allyhub/export/dist/batch.js +1 -1
  254. package/dist/node_modules/@allyhub/export/dist/export.js +1 -6
  255. package/dist/node_modules/@allyhub/export/dist/index.js +1 -1
  256. package/dist/node_modules/@allyhub/export/dist/names.js +1 -1
  257. package/dist/node_modules/@allyhub/export/dist/processors.js +2 -0
  258. package/dist/node_modules/@allyhub/export/package.json +1 -1
  259. package/dist/node_modules/@allyhub/extension-api/LICENSE +241 -0
  260. package/dist/node_modules/@allyhub/extension-api/dist/api.js +2 -0
  261. package/dist/node_modules/@allyhub/extension-api/dist/index.js +2 -0
  262. package/dist/node_modules/@allyhub/extension-api/dist/lifecycle.js +2 -0
  263. package/dist/node_modules/@allyhub/extension-api/package.json +14 -0
  264. package/dist/node_modules/@allyhub/extension-host/LICENSE +241 -0
  265. package/dist/node_modules/@allyhub/extension-host/dist/host.js +2 -0
  266. package/dist/node_modules/@allyhub/extension-host/dist/index.js +2 -0
  267. package/dist/node_modules/@allyhub/extension-host/dist/node.js +3 -0
  268. package/dist/node_modules/@allyhub/extension-host/dist/points.js +2 -0
  269. package/dist/node_modules/@allyhub/extension-host/dist/shell.js +2 -0
  270. package/dist/node_modules/@allyhub/extension-host/package.json +22 -0
  271. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  272. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  273. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  274. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  275. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  276. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  277. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  278. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +20 -82
  279. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  280. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +96 -8
  281. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  282. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  283. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  284. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  285. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  286. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  287. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  288. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  289. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  290. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  291. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  292. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  293. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  294. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  295. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  296. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +46 -42
  297. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  298. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  299. package/dist/node_modules/@allyhub/i18n/LICENSE +241 -0
  300. package/dist/node_modules/@allyhub/i18n/dist/index.js +2 -0
  301. package/dist/node_modules/@allyhub/i18n/package.json +13 -0
  302. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  303. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  304. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  305. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  306. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  307. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  308. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  309. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  310. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  311. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  312. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  313. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  314. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  315. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  316. package/dist/node_modules/@allyhub/image-extension/LICENSE +241 -0
  317. package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +2 -0
  318. package/dist/node_modules/@allyhub/image-extension/dist/build.js +2 -0
  319. package/dist/node_modules/@allyhub/image-extension/dist/check.js +2 -0
  320. package/dist/node_modules/@allyhub/image-extension/dist/cli.js +3 -0
  321. package/dist/node_modules/@allyhub/image-extension/dist/evaluate.js +2 -0
  322. package/dist/node_modules/@allyhub/image-extension/dist/export.js +2 -0
  323. package/dist/node_modules/@allyhub/image-extension/dist/facts.js +2 -0
  324. package/dist/node_modules/@allyhub/image-extension/dist/project-tools.js +2 -0
  325. package/dist/node_modules/@allyhub/image-extension/dist/sources.js +2 -0
  326. package/dist/node_modules/@allyhub/image-extension/dist/stage.js +2 -0
  327. package/dist/node_modules/@allyhub/image-extension/dist/tools.js +2 -0
  328. package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +2 -0
  329. package/dist/node_modules/@allyhub/image-extension/package.json +276 -0
  330. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +44 -0
  331. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  332. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  333. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  334. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  335. package/dist/node_modules/@allyhub/image-psd/LICENSE +241 -0
  336. package/dist/node_modules/@allyhub/image-psd/dist/index.js +2 -0
  337. package/dist/node_modules/@allyhub/image-psd/dist/map.js +2 -0
  338. package/dist/node_modules/@allyhub/image-psd/dist/pixels.js +2 -0
  339. package/dist/node_modules/@allyhub/image-psd/dist/read.js +18 -0
  340. package/dist/node_modules/@allyhub/image-psd/dist/write.js +2 -0
  341. package/dist/node_modules/@allyhub/image-psd/package.json +14 -0
  342. package/dist/node_modules/@allyhub/image-render/LICENSE +241 -0
  343. package/dist/node_modules/@allyhub/image-render/dist/webp.js +2 -0
  344. package/dist/node_modules/@allyhub/image-render/package.json +14 -0
  345. package/dist/node_modules/@allyhub/image-runtime/LICENSE +241 -0
  346. package/dist/node_modules/@allyhub/image-runtime/dist/board.js +2 -0
  347. package/dist/node_modules/@allyhub/image-runtime/dist/index.js +2 -0
  348. package/dist/node_modules/@allyhub/image-runtime/dist/layers.js +2 -0
  349. package/dist/node_modules/@allyhub/image-runtime/dist/load.js +3 -0
  350. package/dist/node_modules/@allyhub/image-runtime/dist/overset.js +2 -0
  351. package/dist/node_modules/@allyhub/image-runtime/dist/psd.js +2 -0
  352. package/dist/node_modules/@allyhub/image-runtime/package.json +18 -0
  353. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  354. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  355. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  356. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  357. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  358. package/dist/node_modules/@allyhub/image-sdk/dist/fit.js +2 -0
  359. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  360. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  361. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  362. package/dist/node_modules/@allyhub/image-sdk/dist/messages.js +2 -0
  363. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  364. package/dist/node_modules/@allyhub/image-sdk/dist/props.js +2 -0
  365. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  366. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  367. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  368. package/dist/node_modules/@allyhub/image-sdk/dist/text.js +2 -0
  369. package/dist/node_modules/@allyhub/image-sdk/dist/written.js +2 -0
  370. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  371. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +3 -0
  372. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +139 -0
  373. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +41 -0
  374. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  375. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  376. package/dist/node_modules/@allyhub/measure/dist/compare.js +1 -1
  377. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  378. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  379. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  380. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  381. package/dist/node_modules/@allyhub/measure/dist/index.js +1 -1
  382. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  383. package/dist/node_modules/@allyhub/media/NOTICE +1 -42
  384. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +25 -0
  385. package/dist/node_modules/@allyhub/media/dist/analysis.js +2 -0
  386. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +2 -0
  387. package/dist/node_modules/@allyhub/media/dist/audio.js +1 -1
  388. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +2 -2
  389. package/dist/node_modules/@allyhub/media/dist/index.d.ts +5 -21
  390. package/dist/node_modules/@allyhub/media/dist/index.js +1 -1
  391. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +2 -12
  392. package/dist/node_modules/@allyhub/media/dist/tools.js +1 -1
  393. package/dist/node_modules/@allyhub/media/dist/video.js +1 -1
  394. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +2 -2
  395. package/dist/node_modules/@allyhub/media/package.json +1 -1
  396. package/dist/node_modules/@allyhub/media-extension/LICENSE +241 -0
  397. package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +2 -0
  398. package/dist/node_modules/@allyhub/media-extension/dist/analyses/matte.js +2 -0
  399. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +2 -0
  400. package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +2 -0
  401. package/dist/node_modules/@allyhub/media-extension/dist/cloud.js +2 -0
  402. package/dist/node_modules/@allyhub/media-extension/dist/index.js +2 -0
  403. package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +2 -0
  404. package/dist/node_modules/@allyhub/media-extension/dist/vision/boxes.js +2 -0
  405. package/dist/node_modules/@allyhub/media-extension/dist/vision/common.js +2 -0
  406. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +2 -0
  407. package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -0
  408. package/dist/node_modules/@allyhub/media-extension/dist/vision/matte.js +2 -0
  409. package/dist/node_modules/@allyhub/media-extension/dist/vision/mattes.js +2 -0
  410. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +2 -0
  411. package/dist/node_modules/@allyhub/media-extension/package.json +62 -0
  412. package/dist/node_modules/@allyhub/model/dist/data.d.ts +7 -2
  413. package/dist/node_modules/@allyhub/model/dist/data.js +1 -1
  414. package/dist/node_modules/@allyhub/model/package.json +1 -1
  415. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  416. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  417. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  418. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  419. package/dist/node_modules/@allyhub/piece/dist/anchors.d.ts +156 -0
  420. package/dist/node_modules/@allyhub/piece/dist/component.js +2 -0
  421. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  422. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  423. package/dist/node_modules/@allyhub/piece/dist/contrast.d.ts +98 -0
  424. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +114 -0
  425. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  426. package/dist/node_modules/@allyhub/piece/dist/formats.d.ts +149 -0
  427. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  428. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  429. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  430. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  431. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  432. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  433. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  434. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  435. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +421 -0
  436. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  437. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +66 -0
  438. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +256 -0
  439. package/dist/node_modules/@allyhub/piece/dist/media.js +2 -0
  440. package/dist/node_modules/@allyhub/piece/dist/messages.d.ts +94 -0
  441. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  442. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  443. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  444. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  445. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  446. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  447. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  448. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  449. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  450. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  451. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  452. package/dist/node_modules/@allyhub/piece/dist/script.d.ts +81 -0
  453. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  454. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  455. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +285 -0
  456. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  457. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  458. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  459. package/dist/node_modules/@allyhub/piece/dist/voice.d.ts +156 -0
  460. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  461. package/dist/node_modules/@allyhub/project/dist/component-stills.js +11 -1
  462. package/dist/node_modules/@allyhub/project/dist/console.js +1 -1
  463. package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
  464. package/dist/node_modules/@allyhub/project/dist/index.js +1 -1
  465. package/dist/node_modules/@allyhub/project/dist/ledger.js +1 -1
  466. package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
  467. package/dist/node_modules/@allyhub/project/dist/page.js +2 -2
  468. package/dist/node_modules/@allyhub/project/dist/part-keys.js +2 -0
  469. package/dist/node_modules/@allyhub/project/dist/part-measure.js +2 -0
  470. package/dist/node_modules/@allyhub/project/dist/part-pool.js +2 -0
  471. package/dist/node_modules/@allyhub/project/dist/session.js +1 -1
  472. package/dist/node_modules/@allyhub/project/dist/stills.js +1 -1
  473. package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
  474. package/dist/node_modules/@allyhub/project/package.json +1 -1
  475. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +139 -0
  476. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  477. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  478. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  479. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  480. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  481. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +2 -0
  482. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  483. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +232 -132
  484. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  485. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  486. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  487. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +22 -9
  488. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  489. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  490. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  491. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +5 -0
  492. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  493. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  494. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  495. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  496. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +273 -0
  497. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  498. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +26 -0
  499. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  500. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  501. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  502. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  503. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  504. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  505. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  506. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  507. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  508. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  509. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  510. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  511. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  512. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  513. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  514. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  515. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  516. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  517. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  518. package/dist/node_modules/@allyhub/render/dist/capture.js +1 -1
  519. package/dist/node_modules/@allyhub/render/dist/composite.js +1 -1
  520. package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
  521. package/dist/node_modules/@allyhub/render/dist/exports.js +2 -2
  522. package/dist/node_modules/@allyhub/render/dist/ffmpeg.js +3 -3
  523. package/dist/node_modules/@allyhub/render/dist/footage.js +1 -1
  524. package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
  525. package/dist/node_modules/@allyhub/render/dist/junction.js +1 -1
  526. package/dist/node_modules/@allyhub/render/dist/parts.js +1 -1
  527. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  528. package/dist/node_modules/@allyhub/render/dist/post.js +1 -1
  529. package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
  530. package/dist/node_modules/@allyhub/render/dist/sound.js +1 -1
  531. package/dist/node_modules/@allyhub/render/dist/tools.js +1 -1
  532. package/dist/node_modules/@allyhub/render/dist/version.js +2 -0
  533. package/dist/node_modules/@allyhub/render/package.json +1 -5
  534. package/dist/node_modules/@allyhub/runtime/dist/captions.js +1 -1
  535. package/dist/node_modules/@allyhub/runtime/dist/clock.js +1 -1
  536. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  537. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  538. package/dist/node_modules/@allyhub/runtime/dist/facade.js +1 -1
  539. package/dist/node_modules/@allyhub/runtime/dist/film.js +2 -0
  540. package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
  541. package/dist/node_modules/@allyhub/runtime/dist/frame.js +1 -1
  542. package/dist/node_modules/@allyhub/runtime/dist/index.js +1 -1
  543. package/dist/node_modules/@allyhub/runtime/dist/measure.js +2 -2
  544. package/dist/node_modules/@allyhub/runtime/dist/output.js +1 -1
  545. package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
  546. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  547. package/dist/node_modules/@allyhub/runtime/dist/sound.js +1 -1
  548. package/dist/node_modules/@allyhub/runtime/dist/speech.js +1 -1
  549. package/dist/node_modules/@allyhub/runtime/dist/stage-kit.js +1 -1
  550. package/dist/node_modules/@allyhub/runtime/dist/takes.js +1 -1
  551. package/dist/node_modules/@allyhub/runtime/package.json +1 -5
  552. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  553. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  554. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  555. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  556. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  557. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  558. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  559. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  560. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  561. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  562. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  563. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  564. package/dist/node_modules/@allyhub/scaffold/dist/index.js +6 -5
  565. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  566. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  567. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  568. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  569. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +2 -3
  570. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +14 -7
  571. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +4 -4
  572. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +314 -0
  573. package/dist/node_modules/@allyhub/scenery-host/dist/fact.js +2 -0
  574. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +1 -0
  575. package/dist/node_modules/@allyhub/scenery-host/dist/index.js +1 -1
  576. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +2 -2
  577. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
  578. package/dist/node_modules/@allyhub/scenery-host/dist/layer/queries.d.ts +1 -1
  579. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
  580. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
  581. package/dist/node_modules/@allyhub/scenery-host/dist/layer/state.d.ts +1 -1
  582. package/dist/node_modules/@allyhub/scenery-host/dist/layer/types.d.ts +2 -2
  583. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.d.ts +3 -3
  584. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +1 -1
  585. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +1 -1
  586. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +42 -0
  587. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.js +4 -0
  588. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +6 -0
  589. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.js +2 -0
  590. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +70 -0
  591. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.js +12 -0
  592. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +49 -0
  593. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +73 -0
  594. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.js +3 -0
  595. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +18 -0
  596. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.js +2 -0
  597. package/dist/node_modules/@allyhub/scenery-host/package.json +5 -1
  598. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  599. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  600. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  601. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  602. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  603. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  604. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  605. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  606. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  607. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  608. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  609. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  610. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  611. package/dist/node_modules/@allyhub/sheet-extension/LICENSE +241 -0
  612. package/dist/node_modules/@allyhub/sheet-extension/dist/build-plugins.js +2 -0
  613. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +2 -0
  614. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/index.js +2 -0
  615. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +2 -0
  616. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +8 -0
  617. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +2 -0
  618. package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +3 -0
  619. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +7 -0
  620. package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +3 -0
  621. package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +2 -0
  622. package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +2 -0
  623. package/dist/node_modules/@allyhub/sheet-extension/dist/workspace.js +2 -0
  624. package/dist/node_modules/@allyhub/sheet-extension/package.json +209 -0
  625. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  626. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  627. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  628. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  629. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  630. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  631. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  632. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  633. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  634. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  635. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  636. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  637. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  638. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  639. package/dist/node_modules/@allyhub/slides-extension/LICENSE +241 -0
  640. package/dist/node_modules/@allyhub/slides-extension/dist/build-plugins.js +2 -0
  641. package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -0
  642. package/dist/node_modules/@allyhub/slides-extension/dist/check.js +2 -0
  643. package/dist/node_modules/@allyhub/slides-extension/dist/cli/index.js +2 -0
  644. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +3 -0
  645. package/dist/node_modules/@allyhub/slides-extension/dist/deck-info.js +2 -0
  646. package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +2 -0
  647. package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +3 -0
  648. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +2 -0
  649. package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +2 -0
  650. package/dist/node_modules/@allyhub/slides-extension/dist/read-view.js +2 -0
  651. package/dist/node_modules/@allyhub/slides-extension/dist/stage.js +2 -0
  652. package/dist/node_modules/@allyhub/slides-extension/dist/tools.js +2 -0
  653. package/dist/node_modules/@allyhub/slides-extension/dist/workspace.js +2 -0
  654. package/dist/node_modules/@allyhub/slides-extension/package.json +246 -0
  655. package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
  656. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  657. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
  658. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  659. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +1 -1
  660. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  661. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  662. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  663. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  664. package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
  665. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  666. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  667. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  668. package/dist/node_modules/@allyhub/stage/dist/build-process.js +2 -2
  669. package/dist/node_modules/@allyhub/stage/dist/build-worker.js +1 -1
  670. package/dist/node_modules/@allyhub/stage/dist/identity.js +1 -1
  671. package/dist/node_modules/@allyhub/stage/dist/index.js +1 -1
  672. package/dist/node_modules/@allyhub/stage/dist/page.js +2 -2
  673. package/dist/node_modules/@allyhub/stage/dist/server.js +1 -1
  674. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  675. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  676. package/dist/node_modules/@allyhub/stage-page/dist/install.js +2 -0
  677. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
  678. package/dist/node_modules/@allyhub/stage-page/dist/stage-module.js +2 -0
  679. package/dist/node_modules/@allyhub/stage-page/package.json +5 -1
  680. package/dist/node_modules/@allyhub/stage-runtime/LICENSE +241 -0
  681. package/dist/node_modules/@allyhub/stage-runtime/dist/index.js +2 -0
  682. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +80 -0
  683. package/dist/node_modules/@allyhub/stage-runtime/dist/use.js +2 -0
  684. package/dist/node_modules/@allyhub/stage-runtime/package.json +17 -0
  685. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  686. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  687. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  688. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  689. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  690. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  691. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  692. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  693. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  694. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  695. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  696. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  697. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  698. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  699. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  700. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  701. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  702. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  703. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  704. package/dist/node_modules/@allyhub/video-extension/LICENSE +241 -0
  705. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +2 -0
  706. package/dist/node_modules/@allyhub/video-extension/dist/build.js +2 -0
  707. package/dist/node_modules/@allyhub/video-extension/dist/cli/audio-text.js +6 -0
  708. package/dist/node_modules/@allyhub/video-extension/dist/cli/audio.js +4 -0
  709. package/dist/node_modules/@allyhub/video-extension/dist/cli/cloud.js +2 -0
  710. package/dist/node_modules/@allyhub/video-extension/dist/cli/draw.js +2 -0
  711. package/dist/node_modules/@allyhub/video-extension/dist/cli/index.js +2 -0
  712. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +5 -0
  713. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference.js +2 -0
  714. package/dist/node_modules/@allyhub/video-extension/dist/cli/voice.js +3 -0
  715. package/dist/node_modules/@allyhub/video-extension/dist/cli/words-text.js +6 -0
  716. package/dist/node_modules/@allyhub/video-extension/dist/cli/words.js +2 -0
  717. package/dist/node_modules/@allyhub/video-extension/dist/evaluate.js +2 -0
  718. package/dist/node_modules/@allyhub/video-extension/dist/export.js +2 -0
  719. package/dist/node_modules/@allyhub/video-extension/dist/inspect/common.js +2 -0
  720. package/dist/node_modules/@allyhub/video-extension/dist/inspect/contrast.js +2 -0
  721. package/dist/node_modules/@allyhub/video-extension/dist/inspect/fidelity.js +2 -0
  722. package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +2 -0
  723. package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +2 -0
  724. package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +4 -0
  725. package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline-text.js +2 -0
  726. package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline.js +3 -0
  727. package/dist/node_modules/@allyhub/video-extension/dist/project-tools.js +2 -0
  728. package/dist/node_modules/@allyhub/video-extension/dist/read-view.js +2 -0
  729. package/dist/node_modules/@allyhub/video-extension/dist/sources.js +2 -0
  730. package/dist/node_modules/@allyhub/video-extension/dist/stage-routes.js +2 -0
  731. package/dist/node_modules/@allyhub/video-extension/dist/stage.js +2 -0
  732. package/dist/node_modules/@allyhub/video-extension/dist/tools.js +2 -0
  733. package/dist/node_modules/@allyhub/video-extension/dist/workspace.js +2 -0
  734. package/dist/node_modules/@allyhub/video-extension/package.json +454 -0
  735. package/dist/node_modules/@allyhub/video-measure/LICENSE +241 -0
  736. package/dist/node_modules/@allyhub/video-measure/dist/check.js +3 -0
  737. package/dist/node_modules/@allyhub/video-measure/dist/cuts.js +2 -0
  738. package/dist/node_modules/@allyhub/video-measure/dist/facts.js +2 -0
  739. package/dist/node_modules/@allyhub/video-measure/dist/generated.js +2 -0
  740. package/dist/node_modules/@allyhub/video-measure/dist/graphics.js +2 -0
  741. package/dist/node_modules/@allyhub/video-measure/dist/index.js +2 -0
  742. package/dist/node_modules/@allyhub/video-measure/dist/page.js +2 -0
  743. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +3 -0
  744. package/dist/node_modules/@allyhub/video-measure/dist/recording-report.js +2 -0
  745. package/dist/node_modules/@allyhub/video-measure/dist/reference/piece.js +2 -0
  746. package/dist/node_modules/@allyhub/video-measure/dist/reference/sets.js +2 -0
  747. package/dist/node_modules/@allyhub/video-measure/dist/reference/text.js +2 -0
  748. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +2 -0
  749. package/dist/node_modules/@allyhub/video-measure/dist/says.js +2 -0
  750. package/dist/node_modules/@allyhub/video-measure/dist/sound-report.js +2 -0
  751. package/dist/node_modules/@allyhub/video-measure/dist/stretch.js +2 -0
  752. package/dist/node_modules/@allyhub/video-measure/dist/version.js +2 -0
  753. package/dist/node_modules/@allyhub/video-measure/dist/words.js +3 -0
  754. package/dist/node_modules/@allyhub/video-measure/package.json +13 -0
  755. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  756. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  757. package/dist/node_modules/@allyhub/video-sdk/dist/anim.js +2 -0
  758. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  759. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  760. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  761. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  762. package/dist/node_modules/@allyhub/video-sdk/dist/noise.js +2 -0
  763. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  764. package/dist/node_modules/@allyhub/video-sdk/dist/paths.js +2 -0
  765. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  766. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  767. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  768. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  769. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  770. package/dist/node_modules/@allyhub/website/dist/publish.js +2 -2
  771. package/dist/node_modules/@allyhub/website/dist/website.js +3 -3
  772. package/dist/node_modules/@allyhub/website/package.json +1 -1
  773. package/dist/node_modules/@allyhub/website-extension/LICENSE +241 -0
  774. package/dist/node_modules/@allyhub/website-extension/dist/build.js +2 -0
  775. package/dist/node_modules/@allyhub/website-extension/dist/cli/index.js +2 -0
  776. package/dist/node_modules/@allyhub/website-extension/dist/cli/site.js +4 -0
  777. package/dist/node_modules/@allyhub/website-extension/dist/hosting.js +2 -0
  778. package/dist/node_modules/@allyhub/website-extension/dist/preview.js +6 -0
  779. package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +2 -0
  780. package/dist/node_modules/@allyhub/website-extension/dist/tools.js +2 -0
  781. package/dist/node_modules/@allyhub/website-extension/package.json +152 -0
  782. package/dist/node_modules/@allyhub/x-extension/LICENSE +241 -0
  783. package/dist/node_modules/@allyhub/x-extension/dist/article-build.js +4 -0
  784. package/dist/node_modules/@allyhub/x-extension/dist/article-kind.js +2 -0
  785. package/dist/node_modules/@allyhub/x-extension/dist/build-plugins.js +2 -0
  786. package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -0
  787. package/dist/node_modules/@allyhub/x-extension/dist/config.js +2 -0
  788. package/dist/node_modules/@allyhub/x-extension/dist/media.js +2 -0
  789. package/dist/node_modules/@allyhub/x-extension/dist/stage-module.js +67 -0
  790. package/dist/node_modules/@allyhub/x-extension/dist/stage.js +2 -0
  791. package/dist/node_modules/@allyhub/x-extension/dist/workspace.js +2 -0
  792. package/dist/node_modules/@allyhub/x-extension/package.json +277 -0
  793. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +67 -0
  794. package/dist/node_modules/@allyhub/x-model/LICENSE +241 -0
  795. package/dist/node_modules/@allyhub/x-model/dist/article-check.js +5 -0
  796. package/dist/node_modules/@allyhub/x-model/dist/article.js +3 -0
  797. package/dist/node_modules/@allyhub/x-model/dist/check.js +2 -0
  798. package/dist/node_modules/@allyhub/x-model/dist/content-state.js +2 -0
  799. package/dist/node_modules/@allyhub/x-model/dist/count.js +2 -0
  800. package/dist/node_modules/@allyhub/x-model/dist/edit.js +3 -0
  801. package/dist/node_modules/@allyhub/x-model/dist/index.js +2 -0
  802. package/dist/node_modules/@allyhub/x-model/dist/limits.js +2 -0
  803. package/dist/node_modules/@allyhub/x-model/dist/post.js +2 -0
  804. package/dist/node_modules/@allyhub/x-model/dist/requests.js +2 -0
  805. package/dist/node_modules/@allyhub/x-model/package.json +14 -0
  806. package/dist/node_modules/@allyhub/x-view/LICENSE +241 -0
  807. package/dist/node_modules/@allyhub/x-view/dist/article.js +2 -0
  808. package/dist/node_modules/@allyhub/x-view/dist/index.js +2 -0
  809. package/dist/node_modules/@allyhub/x-view/dist/post.js +3 -0
  810. package/dist/node_modules/@allyhub/x-view/dist/stage.js +2 -0
  811. package/dist/node_modules/@allyhub/x-view/dist/text.js +2 -0
  812. package/dist/node_modules/@allyhub/x-view/package.json +21 -0
  813. package/dist/node_modules/@allyhub/x-view/src/style.css +709 -0
  814. package/dist/package.json +16 -0
  815. package/dist/parameters.js +1 -1
  816. package/dist/presence.js +2 -0
  817. package/dist/project.js +1 -1
  818. package/dist/sdk-docs.js +1 -1
  819. package/dist/text/batch-text.js +1 -1
  820. package/dist/text/console-text.js +1 -1
  821. package/dist/text/facts-text.js +5 -5
  822. package/dist/text/format.js +2 -2
  823. package/dist/text/index.js +1 -1
  824. package/dist/tool-options.js +1 -1
  825. package/dist/version.js +1 -1
  826. package/dist/works.js +1 -1
  827. package/editor-web/assets/abnfDiagram-WEYOIA3C-CN5PiJYY.js +1 -0
  828. package/editor-web/assets/alt-BOVao_9S.js +4 -0
  829. package/editor-web/assets/architecture-WOLXFQ4H-BnvZtQYk.js +1 -0
  830. package/editor-web/assets/architectureDiagram-ZHVYKT53-tkcEcFQ8.js +36 -0
  831. package/editor-web/assets/arrow-up-DTP2yVSU.js +1 -0
  832. package/editor-web/assets/article-B6YCzhj8.js +73 -0
  833. package/editor-web/assets/audio-lines-Ti8-m7H2.js +1 -0
  834. package/editor-web/assets/blockDiagram-RJAE7QA3-DhqEIpie.js +140 -0
  835. package/editor-web/assets/c4Diagram-XDPPPE54-Bg9G95tl.js +38 -0
  836. package/editor-web/assets/caladea-latin-400-italic-BXgumMrY.woff +0 -0
  837. package/editor-web/assets/caladea-latin-400-italic-LV4kG-PE.woff2 +0 -0
  838. package/editor-web/assets/caladea-latin-400-normal-BdRVtv9R.woff +0 -0
  839. package/editor-web/assets/caladea-latin-400-normal-CEHWF4nY.woff2 +0 -0
  840. package/editor-web/assets/caladea-latin-700-italic-ChDjCuPY.woff +0 -0
  841. package/editor-web/assets/caladea-latin-700-italic-DswTWW_F.woff2 +0 -0
  842. package/editor-web/assets/caladea-latin-700-normal-0s3Ufwiy.woff +0 -0
  843. package/editor-web/assets/caladea-latin-700-normal-Emkxzyyt.woff2 +0 -0
  844. package/editor-web/assets/caladea-latin-ext-400-italic-DaI5RAJ1.woff2 +0 -0
  845. package/editor-web/assets/caladea-latin-ext-400-italic-Ddrq60cI.woff +0 -0
  846. package/editor-web/assets/caladea-latin-ext-400-normal-BjxrNPcj.woff +0 -0
  847. package/editor-web/assets/caladea-latin-ext-400-normal-CyFL0oLC.woff2 +0 -0
  848. package/editor-web/assets/caladea-latin-ext-700-italic-BPwR0tp-.woff +0 -0
  849. package/editor-web/assets/caladea-latin-ext-700-italic-DKIXMnVd.woff2 +0 -0
  850. package/editor-web/assets/caladea-latin-ext-700-normal-jPPxbA1-.woff2 +0 -0
  851. package/editor-web/assets/caladea-latin-ext-700-normal-sbmkuTql.woff +0 -0
  852. package/editor-web/assets/calc-worker-B5-fDWnb.js +45 -0
  853. package/editor-web/assets/carlito-cyrillic-400-italic-BBq3u1wn.woff2 +0 -0
  854. package/editor-web/assets/carlito-cyrillic-400-italic-DkiFjkCS.woff +0 -0
  855. package/editor-web/assets/carlito-cyrillic-400-normal-BtG3bBmV.woff +0 -0
  856. package/editor-web/assets/carlito-cyrillic-400-normal-Bzv-FGbj.woff2 +0 -0
  857. package/editor-web/assets/carlito-cyrillic-700-italic-BWpxjWJ1.woff2 +0 -0
  858. package/editor-web/assets/carlito-cyrillic-700-italic-CkpLb3ak.woff +0 -0
  859. package/editor-web/assets/carlito-cyrillic-700-normal-Cj42L3Bs.woff2 +0 -0
  860. package/editor-web/assets/carlito-cyrillic-700-normal-bxg6f20d.woff +0 -0
  861. package/editor-web/assets/carlito-cyrillic-ext-400-italic-BiZjW1hk.woff2 +0 -0
  862. package/editor-web/assets/carlito-cyrillic-ext-400-italic-DcD3cPwb.woff +0 -0
  863. package/editor-web/assets/carlito-cyrillic-ext-400-normal-DYs6OoL4.woff2 +0 -0
  864. package/editor-web/assets/carlito-cyrillic-ext-400-normal-UzWcrHdi.woff +0 -0
  865. package/editor-web/assets/carlito-cyrillic-ext-700-italic-ClXPMqhh.woff2 +0 -0
  866. package/editor-web/assets/carlito-cyrillic-ext-700-italic-DoehkTRC.woff +0 -0
  867. package/editor-web/assets/carlito-cyrillic-ext-700-normal-BAPhAm-q.woff2 +0 -0
  868. package/editor-web/assets/carlito-cyrillic-ext-700-normal-C5O8kkCQ.woff +0 -0
  869. package/editor-web/assets/carlito-greek-400-italic-C1DqF7JR.woff2 +0 -0
  870. package/editor-web/assets/carlito-greek-400-italic-Cnl_RiK8.woff +0 -0
  871. package/editor-web/assets/carlito-greek-400-normal-Cv5gcxdy.woff2 +0 -0
  872. package/editor-web/assets/carlito-greek-400-normal-aOjZpsFX.woff +0 -0
  873. package/editor-web/assets/carlito-greek-700-italic-DfpwTZ8N.woff +0 -0
  874. package/editor-web/assets/carlito-greek-700-italic-VWqy950O.woff2 +0 -0
  875. package/editor-web/assets/carlito-greek-700-normal-B-Y_qvTa.woff +0 -0
  876. package/editor-web/assets/carlito-greek-700-normal-BXGaow7Z.woff2 +0 -0
  877. package/editor-web/assets/carlito-greek-ext-400-italic-BUNDIZnl.woff +0 -0
  878. package/editor-web/assets/carlito-greek-ext-400-italic-o-WxseCy.woff2 +0 -0
  879. package/editor-web/assets/carlito-greek-ext-400-normal-DnfnTswf.woff2 +0 -0
  880. package/editor-web/assets/carlito-greek-ext-400-normal-m-eDGcsW.woff +0 -0
  881. package/editor-web/assets/carlito-greek-ext-700-italic-DD0r8DLp.woff +0 -0
  882. package/editor-web/assets/carlito-greek-ext-700-italic-DiO5Rxw8.woff2 +0 -0
  883. package/editor-web/assets/carlito-greek-ext-700-normal-BGl1PQht.woff +0 -0
  884. package/editor-web/assets/carlito-greek-ext-700-normal-COKnZ-5a.woff2 +0 -0
  885. package/editor-web/assets/carlito-latin-400-italic-BiMes9J5.woff2 +0 -0
  886. package/editor-web/assets/carlito-latin-400-italic-DcRV6skQ.woff +0 -0
  887. package/editor-web/assets/carlito-latin-400-normal-R-CeALMm.woff2 +0 -0
  888. package/editor-web/assets/carlito-latin-400-normal-jEGHVXAP.woff +0 -0
  889. package/editor-web/assets/carlito-latin-700-italic-BkeTGILl.woff +0 -0
  890. package/editor-web/assets/carlito-latin-700-italic-Ckstd88m.woff2 +0 -0
  891. package/editor-web/assets/carlito-latin-700-normal-CjG3MLqY.woff +0 -0
  892. package/editor-web/assets/carlito-latin-700-normal-DQ6DOkPk.woff2 +0 -0
  893. package/editor-web/assets/carlito-latin-ext-400-italic-B7I2MSBC.woff +0 -0
  894. package/editor-web/assets/carlito-latin-ext-400-italic-CqQQuoTt.woff2 +0 -0
  895. package/editor-web/assets/carlito-latin-ext-400-normal-D112-ed2.woff +0 -0
  896. package/editor-web/assets/carlito-latin-ext-400-normal-DPZWia0-.woff2 +0 -0
  897. package/editor-web/assets/carlito-latin-ext-700-italic-BvVMpuZ3.woff2 +0 -0
  898. package/editor-web/assets/carlito-latin-ext-700-italic-Cocp2sK5.woff +0 -0
  899. package/editor-web/assets/carlito-latin-ext-700-normal-9QIvu-gI.woff +0 -0
  900. package/editor-web/assets/carlito-latin-ext-700-normal-D2WO8ap1.woff2 +0 -0
  901. package/editor-web/assets/carlito-vietnamese-400-italic-Dpe35oQb.woff +0 -0
  902. package/editor-web/assets/carlito-vietnamese-400-italic-vBbFSHZk.woff2 +0 -0
  903. package/editor-web/assets/carlito-vietnamese-400-normal-BA1ASEPx.woff2 +0 -0
  904. package/editor-web/assets/carlito-vietnamese-400-normal-D0HL2cT_.woff +0 -0
  905. package/editor-web/assets/carlito-vietnamese-700-italic-rWsihy0W.woff +0 -0
  906. package/editor-web/assets/carlito-vietnamese-700-italic-tiFMON_I.woff2 +0 -0
  907. package/editor-web/assets/carlito-vietnamese-700-normal-DIEsMQO6.woff +0 -0
  908. package/editor-web/assets/carlito-vietnamese-700-normal-gG8ns3Xg.woff2 +0 -0
  909. package/editor-web/assets/channel-C26aBI4o.js +1 -0
  910. package/editor-web/assets/chart-BOnxneyw.js +1 -0
  911. package/editor-web/assets/choice-O5nwc2N0.js +1 -0
  912. package/editor-web/assets/chunk-2E7WHVMD-C8Ve9lAa.js +88 -0
  913. package/editor-web/assets/chunk-4EMNKR2T-BDWwPUnT.js +1 -0
  914. package/editor-web/assets/chunk-55XCU76K-BQiNPKgx.js +1 -0
  915. package/editor-web/assets/chunk-7S6XSTFO-QoEt-6jf.js +2 -0
  916. package/editor-web/assets/chunk-AQDTSKZB-BeuwIv0-.js +72 -0
  917. package/editor-web/assets/chunk-DSNLSHJZ-BHW7sLAz.js +129 -0
  918. package/editor-web/assets/chunk-HAGFOTED-bbGED0hu.js +62 -0
  919. package/editor-web/assets/chunk-HNE4Q36P-FltWp8yo.js +1 -0
  920. package/editor-web/assets/chunk-NQOKRVIF-NeQzr6kH.js +213 -0
  921. package/editor-web/assets/chunk-UHW7PFBP-eA4-WUhn.js +1 -0
  922. package/editor-web/assets/chunk-VQ5W62QI-BPPv325z.js +1 -0
  923. package/editor-web/assets/chunk-WQQL4CDK-DOCIz7Te.js +10 -0
  924. package/editor-web/assets/chunk-YZO67HFG-Dc_ihQJi.js +1 -0
  925. package/editor-web/assets/chunk-ZAUX2LTX-CoqwCPSm.js +1 -0
  926. package/editor-web/assets/chunk-ZCHMQSOR-CZUQPkJx.js +2 -0
  927. package/editor-web/assets/classDiagram-v2-4MYWR3UA-DUh9c50k.js +217 -0
  928. package/editor-web/assets/collaborator-BJU5qwHd.js +1 -0
  929. package/editor-web/assets/cousine-cyrillic-400-normal-D7Mp9hmd.woff +0 -0
  930. package/editor-web/assets/cousine-cyrillic-400-normal-DaHhUWxZ.woff2 +0 -0
  931. package/editor-web/assets/cousine-cyrillic-700-normal-BEGCXyFC.woff +0 -0
  932. package/editor-web/assets/cousine-cyrillic-700-normal-BkkUdX_g.woff2 +0 -0
  933. package/editor-web/assets/cousine-cyrillic-ext-400-normal-CfRZlfI3.woff +0 -0
  934. package/editor-web/assets/cousine-cyrillic-ext-400-normal-DHXCUfGT.woff2 +0 -0
  935. package/editor-web/assets/cousine-cyrillic-ext-700-normal-C15KMCf5.woff2 +0 -0
  936. package/editor-web/assets/cousine-cyrillic-ext-700-normal-DhfE94aH.woff +0 -0
  937. package/editor-web/assets/cousine-greek-400-normal-CWPwwPBl.woff +0 -0
  938. package/editor-web/assets/cousine-greek-400-normal-D28eY3d7.woff2 +0 -0
  939. package/editor-web/assets/cousine-greek-700-normal-DsTT0TsI.woff2 +0 -0
  940. package/editor-web/assets/cousine-greek-700-normal-rpH_OJFi.woff +0 -0
  941. package/editor-web/assets/cousine-greek-ext-400-normal-n0k5mInY.woff +0 -0
  942. package/editor-web/assets/cousine-greek-ext-400-normal-qdX5ZLbv.woff2 +0 -0
  943. package/editor-web/assets/cousine-greek-ext-700-normal-CSy642Ya.woff +0 -0
  944. package/editor-web/assets/cousine-greek-ext-700-normal-DgHq_I2n.woff2 +0 -0
  945. package/editor-web/assets/cousine-hebrew-400-normal-COyK3YUR.woff2 +0 -0
  946. package/editor-web/assets/cousine-hebrew-400-normal-oCiNOOyc.woff +0 -0
  947. package/editor-web/assets/cousine-hebrew-700-normal-BCE0G3Nu.woff2 +0 -0
  948. package/editor-web/assets/cousine-hebrew-700-normal-Bf9jZ0p9.woff +0 -0
  949. package/editor-web/assets/cousine-latin-400-normal-BhCTjpdJ.woff2 +0 -0
  950. package/editor-web/assets/cousine-latin-400-normal-D0CzircV.woff +0 -0
  951. package/editor-web/assets/cousine-latin-700-normal-BO_dhHEP.woff +0 -0
  952. package/editor-web/assets/cousine-latin-700-normal-CwJ0o97b.woff2 +0 -0
  953. package/editor-web/assets/cousine-latin-ext-400-normal-B_NP9zZK.woff +0 -0
  954. package/editor-web/assets/cousine-latin-ext-400-normal-CGywThDL.woff2 +0 -0
  955. package/editor-web/assets/cousine-latin-ext-700-normal-DWTrZAet.woff2 +0 -0
  956. package/editor-web/assets/cousine-latin-ext-700-normal-NvcoPDWO.woff +0 -0
  957. package/editor-web/assets/cousine-vietnamese-400-normal-B4JqDdoh.woff2 +0 -0
  958. package/editor-web/assets/cousine-vietnamese-400-normal-Bfsm3lEf.woff +0 -0
  959. package/editor-web/assets/cousine-vietnamese-700-normal-B4DXCoMM.woff +0 -0
  960. package/editor-web/assets/cousine-vietnamese-700-normal-DLBKC3PH.woff2 +0 -0
  961. package/editor-web/assets/createLucideIcon-B3B95oX5.js +1 -0
  962. package/editor-web/assets/cynefin-EF2NZ3EQ-DUTZiog0.js +1 -0
  963. package/editor-web/assets/cynefinDiagram-WF24UDRP-oAjpfbrU.js +62 -0
  964. package/editor-web/assets/dagre-NK4GIZVX-BrKvKCvb.js +4 -0
  965. package/editor-web/assets/diagram-CBK3MWTC-GekVRnmm.js +24 -0
  966. package/editor-web/assets/diagram-I5XIIV2D-CDd1VFRT.js +24 -0
  967. package/editor-web/assets/diagram-ODIL2UCW-535RISTn.js +30 -0
  968. package/editor-web/assets/diagram-PFBEJUXE-MXzzKCGG.js +3 -0
  969. package/editor-web/assets/diagram-RJA3I4VV-vKVwkQxY.js +41 -0
  970. package/editor-web/assets/diagram-TYUNFSNR-UwGAiQLx.js +200 -0
  971. package/editor-web/assets/dist-9ymlIMhr.js +1 -0
  972. package/editor-web/assets/dist-C6NqUEG4.js +16 -0
  973. package/editor-web/assets/dist-C9UGmCG9.js +6 -0
  974. package/editor-web/assets/dist-CAk5bjBm.js +1 -0
  975. package/editor-web/assets/dist-CKyfo5RM.js +340 -0
  976. package/editor-web/assets/dist-CRaWqNwq.js +37 -0
  977. package/editor-web/assets/dist-CwIBc7HQ.js +1 -0
  978. package/editor-web/assets/dist-DXRmkezB.js +38 -0
  979. package/editor-web/assets/dist-EKK5i0dG.js +219 -0
  980. package/editor-web/assets/dist-YW8hS4IM.js +9 -0
  981. package/editor-web/assets/dist-hHJlpLWo.js +5 -0
  982. package/editor-web/assets/dist-oYKcwWUj.js +4 -0
  983. package/editor-web/assets/dist-shKo7XVN.js +2 -0
  984. package/editor-web/assets/dist-wrKxBrVu.js +24 -0
  985. package/editor-web/assets/ebnfDiagram-V4P3TTPT-73yGokYa.js +1 -0
  986. package/editor-web/assets/elk-QONTBCTQ-BW6V9y6a.js +27 -0
  987. package/editor-web/assets/erDiagram-KYQIGQAA-BPqIJ22h.js +99 -0
  988. package/editor-web/assets/eventmodeling-K75KTNOO-_VZ8jvuy.js +1 -0
  989. package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +1 -0
  990. package/editor-web/assets/ganttDiagram-R7GPNTJY-DZ157JN2.js +292 -0
  991. package/editor-web/assets/gitGraph-VSP46ZUC-fmcNL9bq.js +1 -0
  992. package/editor-web/assets/gitGraphDiagram-PDYL7XHY-DiZDyksR.js +106 -0
  993. package/editor-web/assets/hint-_AQWCDMj.js +1 -0
  994. package/editor-web/assets/index-BsstP-cI.js +28 -0
  995. package/editor-web/assets/index-DQRcmxBO.css +2 -0
  996. package/editor-web/assets/info-OHQRW6UA-V06620kN.js +1 -0
  997. package/editor-web/assets/infoDiagram-MVDRKAX5-CbIgheWX.js +2 -0
  998. package/editor-web/assets/ishikawaDiagram-HPEHV2GE-D5oJQPkG.js +70 -0
  999. package/editor-web/assets/italic-CDhZKo_q.js +1 -0
  1000. package/editor-web/assets/journeyDiagram-BOSHW7O7-BZEv6JI4.js +139 -0
  1001. package/editor-web/assets/jsx-runtime-DePvh3-m.js +1 -0
  1002. package/editor-web/assets/kanban-definition-FNSA4HC5-CLG1R8y_.js +89 -0
  1003. package/editor-web/assets/layout-SWqqA0yV.js +1 -0
  1004. package/editor-web/assets/mermaid-parser.core-DxDwXM7z.js +7 -0
  1005. package/editor-web/assets/mermaid.core-tU55ZwVG.js +44 -0
  1006. package/editor-web/assets/mindmap-definition-6OY57UG3-CYf4zzAh.js +98 -0
  1007. package/editor-web/assets/minus-Cgmm6ncD.js +1 -0
  1008. package/editor-web/assets/packet-JDAUHWVQ-DsHeKYNL.js +1 -0
  1009. package/editor-web/assets/pegDiagram-ECIUJNBX-CQyh6TTa.js +1 -0
  1010. package/editor-web/assets/picture-B-I4V_JT.js +1 -0
  1011. package/editor-web/assets/pie-XZMESJXO-3vCIvpNB.js +1 -0
  1012. package/editor-web/assets/pieDiagram-GNMPY74T-DF5yGBLn.js +39 -0
  1013. package/editor-web/assets/progress-0B_TVsPi.js +6 -0
  1014. package/editor-web/assets/quadrantDiagram-D57K4MC3-B7pxlDYP.js +7 -0
  1015. package/editor-web/assets/radar-ABXABTNO-cpEA41mL.js +1 -0
  1016. package/editor-web/assets/railroad-I3PHUGI6-BLyy5R2c.js +1 -0
  1017. package/editor-web/assets/railroad-abnf-LNEFI6M7-Y-oyol19.js +1 -0
  1018. package/editor-web/assets/railroad-ebnf-DWYD2UWJ-o58wHZsr.js +1 -0
  1019. package/editor-web/assets/railroad-peg-JR7BVNR7-CcD3PXZ8.js +1 -0
  1020. package/editor-web/assets/railroadDiagram-Y72NRBL7-BuCC4eyy.js +1 -0
  1021. package/editor-web/assets/react-BP46yLMB.js +1 -0
  1022. package/editor-web/assets/react-pgBZqVxJ.js +96 -0
  1023. package/editor-web/assets/read-view-DnCFmJFo.js +1 -0
  1024. package/editor-web/assets/read-view-uW5LmuBT.js +1 -0
  1025. package/editor-web/assets/read-view-v3cx-9XM.js +1 -0
  1026. package/editor-web/assets/repeat-2-C5PCbNsg.js +1 -0
  1027. package/editor-web/assets/requirementDiagram-EQYSW5RA-Dp-JFGn4.js +84 -0
  1028. package/editor-web/assets/sankeyDiagram-SY24JHO5-rYuCqEvw.js +40 -0
  1029. package/editor-web/assets/schemas-Ewwjtbf4.js +1 -0
  1030. package/editor-web/assets/sequenceDiagram-BLEHNHQU-DryW8x6d.js +169 -0
  1031. package/editor-web/assets/session-DiI9KYRI.js +1 -0
  1032. package/editor-web/assets/slides-CCwgBcGH.js +1 -0
  1033. package/editor-web/assets/sound-CqryteNl.js +1 -0
  1034. package/editor-web/assets/stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js +291 -0
  1035. package/editor-web/assets/strikethrough-DJckA35o.js +1 -0
  1036. package/editor-web/assets/svg-BjM9RazX.js +1 -0
  1037. package/editor-web/assets/swatch-DL3HqIjW.js +1 -0
  1038. package/editor-web/assets/swimlanes-B3ENRKFQ-BiRRhhbd.js +1 -0
  1039. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +8 -0
  1040. package/editor-web/assets/switch-DltnKqN-.js +1 -0
  1041. package/editor-web/assets/syntax-C0iPON60.js +18 -0
  1042. package/editor-web/assets/syntax-CC6QYhCz.js +1 -0
  1043. package/editor-web/assets/tabs-C-re0Kxn.js +1 -0
  1044. package/editor-web/assets/textarea-BGtPqZdB.js +105 -0
  1045. package/editor-web/assets/timeline-definition-JXYKGLGB-D-Q5ZtDF.js +120 -0
  1046. package/editor-web/assets/tinos-cyrillic-400-italic-CUXT6ECP.woff +0 -0
  1047. package/editor-web/assets/tinos-cyrillic-400-italic-D26KjN84.woff2 +0 -0
  1048. package/editor-web/assets/tinos-cyrillic-400-normal-BInRL8Bn.woff +0 -0
  1049. package/editor-web/assets/tinos-cyrillic-400-normal-kS2dpklR.woff2 +0 -0
  1050. package/editor-web/assets/tinos-cyrillic-700-italic-CUFPRiVR.woff2 +0 -0
  1051. package/editor-web/assets/tinos-cyrillic-700-italic-DU6-gZzV.woff +0 -0
  1052. package/editor-web/assets/tinos-cyrillic-700-normal-DGklj3DM.woff2 +0 -0
  1053. package/editor-web/assets/tinos-cyrillic-700-normal-HYhic5tl.woff +0 -0
  1054. package/editor-web/assets/tinos-cyrillic-ext-400-italic-Bz6A2Xew.woff2 +0 -0
  1055. package/editor-web/assets/tinos-cyrillic-ext-400-italic-CgiySoL2.woff +0 -0
  1056. package/editor-web/assets/tinos-cyrillic-ext-400-normal-DdITlKdb.woff2 +0 -0
  1057. package/editor-web/assets/tinos-cyrillic-ext-400-normal-l41d2z3M.woff +0 -0
  1058. package/editor-web/assets/tinos-cyrillic-ext-700-italic-BQu9kgBz.woff +0 -0
  1059. package/editor-web/assets/tinos-cyrillic-ext-700-italic-Ceua-rFl.woff2 +0 -0
  1060. package/editor-web/assets/tinos-cyrillic-ext-700-normal-CE86bzrR.woff2 +0 -0
  1061. package/editor-web/assets/tinos-cyrillic-ext-700-normal-yBtNmQaZ.woff +0 -0
  1062. package/editor-web/assets/tinos-greek-400-italic-CITkaQD8.woff2 +0 -0
  1063. package/editor-web/assets/tinos-greek-400-italic-Dc-Zjc_Z.woff +0 -0
  1064. package/editor-web/assets/tinos-greek-400-normal-BKmklotr.woff2 +0 -0
  1065. package/editor-web/assets/tinos-greek-400-normal-D6DCdDEC.woff +0 -0
  1066. package/editor-web/assets/tinos-greek-700-italic-C474ACqK.woff2 +0 -0
  1067. package/editor-web/assets/tinos-greek-700-italic-VKIu6SKO.woff +0 -0
  1068. package/editor-web/assets/tinos-greek-700-normal-CAsZoNo7.woff +0 -0
  1069. package/editor-web/assets/tinos-greek-700-normal-DZiY5218.woff2 +0 -0
  1070. package/editor-web/assets/tinos-greek-ext-400-italic-C7FWsVQN.woff +0 -0
  1071. package/editor-web/assets/tinos-greek-ext-400-italic-QOcg_kQA.woff2 +0 -0
  1072. package/editor-web/assets/tinos-greek-ext-400-normal-1tgngtmV.woff2 +0 -0
  1073. package/editor-web/assets/tinos-greek-ext-400-normal-BY5Lx0CY.woff +0 -0
  1074. package/editor-web/assets/tinos-greek-ext-700-italic-2QV0uNor.woff2 +0 -0
  1075. package/editor-web/assets/tinos-greek-ext-700-italic-zoEBc9cL.woff +0 -0
  1076. package/editor-web/assets/tinos-greek-ext-700-normal-Bu9AJavU.woff +0 -0
  1077. package/editor-web/assets/tinos-greek-ext-700-normal-nVGGTb9r.woff2 +0 -0
  1078. package/editor-web/assets/tinos-hebrew-400-italic-Cp89YzKh.woff2 +0 -0
  1079. package/editor-web/assets/tinos-hebrew-400-italic-k5xAEjEk.woff +0 -0
  1080. package/editor-web/assets/tinos-hebrew-400-normal-B17QmYDt.woff2 +0 -0
  1081. package/editor-web/assets/tinos-hebrew-400-normal-DhGqnHb1.woff +0 -0
  1082. package/editor-web/assets/tinos-hebrew-700-italic-BSdnwE5c.woff2 +0 -0
  1083. package/editor-web/assets/tinos-hebrew-700-italic-DuNrcWBH.woff +0 -0
  1084. package/editor-web/assets/tinos-hebrew-700-normal-B737la7J.woff +0 -0
  1085. package/editor-web/assets/tinos-hebrew-700-normal-BNVAlJ0i.woff2 +0 -0
  1086. package/editor-web/assets/tinos-latin-400-italic-BYAl0kbZ.woff2 +0 -0
  1087. package/editor-web/assets/tinos-latin-400-italic-HcuZF3H0.woff +0 -0
  1088. package/editor-web/assets/tinos-latin-400-normal-B05awSIM.woff +0 -0
  1089. package/editor-web/assets/tinos-latin-400-normal-rilFpyjL.woff2 +0 -0
  1090. package/editor-web/assets/tinos-latin-700-italic-M0H2aQ0O.woff +0 -0
  1091. package/editor-web/assets/tinos-latin-700-italic-vJg8Axdx.woff2 +0 -0
  1092. package/editor-web/assets/tinos-latin-700-normal-CjcRkLdR.woff +0 -0
  1093. package/editor-web/assets/tinos-latin-700-normal-qGf2y18O.woff2 +0 -0
  1094. package/editor-web/assets/tinos-latin-ext-400-italic-DKtLLJa2.woff +0 -0
  1095. package/editor-web/assets/tinos-latin-ext-400-italic-WsHooD3r.woff2 +0 -0
  1096. package/editor-web/assets/tinos-latin-ext-400-normal-BUQPNqi9.woff +0 -0
  1097. package/editor-web/assets/tinos-latin-ext-400-normal-C68eX7xt.woff2 +0 -0
  1098. package/editor-web/assets/tinos-latin-ext-700-italic-BtLLKPsV.woff2 +0 -0
  1099. package/editor-web/assets/tinos-latin-ext-700-italic-Gmi35kWa.woff +0 -0
  1100. package/editor-web/assets/tinos-latin-ext-700-normal-CesJqEpY.woff2 +0 -0
  1101. package/editor-web/assets/tinos-latin-ext-700-normal-nLvPiDAe.woff +0 -0
  1102. package/editor-web/assets/tinos-vietnamese-400-italic-BJdaJnTX.woff2 +0 -0
  1103. package/editor-web/assets/tinos-vietnamese-400-italic-C0nreyLC.woff +0 -0
  1104. package/editor-web/assets/tinos-vietnamese-400-normal-BYl6xqrz.woff +0 -0
  1105. package/editor-web/assets/tinos-vietnamese-400-normal-CrJeqB3M.woff2 +0 -0
  1106. package/editor-web/assets/tinos-vietnamese-700-italic-BPJuDXkI.woff2 +0 -0
  1107. package/editor-web/assets/tinos-vietnamese-700-italic-Dl6iR3hy.woff +0 -0
  1108. package/editor-web/assets/tinos-vietnamese-700-normal-CmLX0U_H.woff2 +0 -0
  1109. package/editor-web/assets/tinos-vietnamese-700-normal-bKCZ5S7w.woff +0 -0
  1110. package/editor-web/assets/trash-2-Bjj6cWzP.js +1 -0
  1111. package/editor-web/assets/treeView-D4JQ5SDB-B6DDatXq.js +1 -0
  1112. package/editor-web/assets/treemap-SAJKECNS-D7j5ZhiI.js +1 -0
  1113. package/editor-web/assets/undo-2-yOSG766T.js +1 -0
  1114. package/editor-web/assets/usecaseDiagram-WPOLBNNX-tkrdKUJB.js +328 -0
  1115. package/editor-web/assets/vennDiagram-Q3Y3IDCW-Ch4XbSnD.js +34 -0
  1116. package/editor-web/assets/video-DXFiCNGc.js +1 -0
  1117. package/editor-web/assets/wardley-7MLQ67FV-Bynt7qNQ.js +1 -0
  1118. package/editor-web/assets/wardleyDiagram-IVAIDKWA-DRuSgm_L.js +78 -0
  1119. package/editor-web/assets/xychartDiagram-4URNHDU4-DctpvfkL.js +7 -0
  1120. package/editor-web/index.html +7 -3
  1121. package/package.json +21 -5
  1122. package/dist/audio-text.js +0 -6
  1123. package/dist/cloud-hearing.js +0 -2
  1124. package/dist/commands/audio.js +0 -4
  1125. package/dist/commands/inspect/contrast.js +0 -2
  1126. package/dist/commands/inspect/fidelity.js +0 -2
  1127. package/dist/commands/inspect/joins.js +0 -2
  1128. package/dist/commands/inspect/motion.js +0 -4
  1129. package/dist/commands/inspect/sheet.js +0 -3
  1130. package/dist/commands/inspect/timeline.js +0 -3
  1131. package/dist/commands/model.js +0 -3
  1132. package/dist/commands/reference-text.js +0 -5
  1133. package/dist/commands/reference.js +0 -2
  1134. package/dist/commands/scenery-input.js +0 -2
  1135. package/dist/commands/scenery.js +0 -7
  1136. package/dist/commands/sheet.js +0 -8
  1137. package/dist/commands/site.js +0 -4
  1138. package/dist/commands/slides.js +0 -3
  1139. package/dist/commands/voice.js +0 -3
  1140. package/dist/commands/words-text.js +0 -6
  1141. package/dist/commands/words.js +0 -2
  1142. package/dist/node_modules/@allyhub/build/dist/sheet-code.d.ts +0 -34
  1143. package/dist/node_modules/@allyhub/build/dist/sheet-code.js +0 -2
  1144. package/dist/node_modules/@allyhub/chart/dist/chart-file.d.ts +0 -11
  1145. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +0 -33
  1146. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +0 -206
  1147. package/dist/node_modules/@allyhub/chart/dist/embedded.d.ts +0 -15
  1148. package/dist/node_modules/@allyhub/chart/dist/index.d.ts +0 -6
  1149. package/dist/node_modules/@allyhub/chart/dist/svg.d.ts +0 -22
  1150. package/dist/node_modules/@allyhub/check/dist/generated.js +0 -2
  1151. package/dist/node_modules/@allyhub/check/dist/plans.js +0 -3
  1152. package/dist/node_modules/@allyhub/check/dist/scenery.js +0 -2
  1153. package/dist/node_modules/@allyhub/doc/dist/chart.d.ts +0 -65
  1154. package/dist/node_modules/@allyhub/doc/dist/color.d.ts +0 -6
  1155. package/dist/node_modules/@allyhub/doc/dist/columns.d.ts +0 -6
  1156. package/dist/node_modules/@allyhub/doc/dist/component.d.ts +0 -27
  1157. package/dist/node_modules/@allyhub/doc/dist/docx.d.ts +0 -39
  1158. package/dist/node_modules/@allyhub/doc/dist/html.d.ts +0 -49
  1159. package/dist/node_modules/@allyhub/doc/dist/index.d.ts +0 -13
  1160. package/dist/node_modules/@allyhub/doc/dist/markdown.d.ts +0 -13
  1161. package/dist/node_modules/@allyhub/doc/dist/math.d.ts +0 -11
  1162. package/dist/node_modules/@allyhub/doc/dist/model.d.ts +0 -280
  1163. package/dist/node_modules/@allyhub/doc/dist/paper.d.ts +0 -39
  1164. package/dist/node_modules/@allyhub/doc/dist/parse.d.ts +0 -24
  1165. package/dist/node_modules/@allyhub/doc/dist/patch.d.ts +0 -8
  1166. package/dist/node_modules/@allyhub/doc/dist/title.d.ts +0 -23
  1167. package/dist/node_modules/@allyhub/doc/dist/write.d.ts +0 -18
  1168. package/dist/node_modules/@allyhub/export/dist/deck-pptx.js +0 -2
  1169. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  1170. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  1171. package/dist/node_modules/@allyhub/measure/dist/contrast.js +0 -2
  1172. package/dist/node_modules/@allyhub/measure/dist/cuts.js +0 -2
  1173. package/dist/node_modules/@allyhub/measure/dist/facts.js +0 -2
  1174. package/dist/node_modules/@allyhub/measure/dist/fidelity.js +0 -3
  1175. package/dist/node_modules/@allyhub/measure/dist/overlay.js +0 -2
  1176. package/dist/node_modules/@allyhub/measure/dist/recording-report.js +0 -2
  1177. package/dist/node_modules/@allyhub/measure/dist/reference/piece.js +0 -2
  1178. package/dist/node_modules/@allyhub/measure/dist/reference/sets.js +0 -2
  1179. package/dist/node_modules/@allyhub/measure/dist/reference/text.js +0 -2
  1180. package/dist/node_modules/@allyhub/measure/dist/reference/video.js +0 -2
  1181. package/dist/node_modules/@allyhub/measure/dist/sound-report.js +0 -2
  1182. package/dist/node_modules/@allyhub/media/dist/asr/hear.d.ts +0 -41
  1183. package/dist/node_modules/@allyhub/media/dist/asr/hear.js +0 -2
  1184. package/dist/node_modules/@allyhub/media/dist/asr/languages.d.ts +0 -9
  1185. package/dist/node_modules/@allyhub/media/dist/asr/languages.js +0 -2
  1186. package/dist/node_modules/@allyhub/media/dist/asr/parakeet.d.ts +0 -54
  1187. package/dist/node_modules/@allyhub/media/dist/asr/parakeet.js +0 -7
  1188. package/dist/node_modules/@allyhub/media/dist/asr/protocol.d.ts +0 -20
  1189. package/dist/node_modules/@allyhub/media/dist/asr/protocol.js +0 -2
  1190. package/dist/node_modules/@allyhub/media/dist/asr/transcribe.d.ts +0 -50
  1191. package/dist/node_modules/@allyhub/media/dist/asr/transcribe.js +0 -2
  1192. package/dist/node_modules/@allyhub/media/dist/asr/windows.d.ts +0 -34
  1193. package/dist/node_modules/@allyhub/media/dist/asr/windows.js +0 -2
  1194. package/dist/node_modules/@allyhub/media/dist/asr/words.d.ts +0 -7
  1195. package/dist/node_modules/@allyhub/media/dist/asr/words.js +0 -2
  1196. package/dist/node_modules/@allyhub/media/dist/asr/worker.d.ts +0 -2
  1197. package/dist/node_modules/@allyhub/media/dist/asr/worker.js +0 -4
  1198. package/dist/node_modules/@allyhub/media/dist/local.d.ts +0 -39
  1199. package/dist/node_modules/@allyhub/media/dist/local.js +0 -2
  1200. package/dist/node_modules/@allyhub/media/dist/ocr/lines.d.ts +0 -36
  1201. package/dist/node_modules/@allyhub/media/dist/ocr/lines.js +0 -2
  1202. package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.d.ts +0 -62
  1203. package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.js +0 -2
  1204. package/dist/node_modules/@allyhub/media/dist/ocr/text.d.ts +0 -36
  1205. package/dist/node_modules/@allyhub/media/dist/ocr/text.js +0 -4
  1206. package/dist/node_modules/@allyhub/media/dist/ocr/worker.d.ts +0 -2
  1207. package/dist/node_modules/@allyhub/media/dist/ocr/worker.js +0 -5
  1208. package/dist/node_modules/@allyhub/media/dist/vision/common.d.ts +0 -32
  1209. package/dist/node_modules/@allyhub/media/dist/vision/common.js +0 -2
  1210. package/dist/node_modules/@allyhub/media/dist/vision/faces.d.ts +0 -18
  1211. package/dist/node_modules/@allyhub/media/dist/vision/faces.js +0 -2
  1212. package/dist/node_modules/@allyhub/media/dist/vision/index-media.d.ts +0 -48
  1213. package/dist/node_modules/@allyhub/media/dist/vision/index-media.js +0 -3
  1214. package/dist/node_modules/@allyhub/media/dist/vision/matte.d.ts +0 -16
  1215. package/dist/node_modules/@allyhub/media/dist/vision/matte.js +0 -2
  1216. package/dist/node_modules/@allyhub/media/dist/vision/mattes.d.ts +0 -109
  1217. package/dist/node_modules/@allyhub/media/dist/vision/mattes.js +0 -2
  1218. package/dist/node_modules/@allyhub/media/dist/vision/models.d.ts +0 -16
  1219. package/dist/node_modules/@allyhub/media/dist/vision/models.js +0 -2
  1220. package/dist/node_modules/@allyhub/media/dist/vision/protocol.d.ts +0 -51
  1221. package/dist/node_modules/@allyhub/media/dist/vision/protocol.js +0 -2
  1222. package/dist/node_modules/@allyhub/media/dist/vision/run.d.ts +0 -12
  1223. package/dist/node_modules/@allyhub/media/dist/vision/run.js +0 -4
  1224. package/dist/node_modules/@allyhub/media/dist/vision/runtime.d.ts +0 -16
  1225. package/dist/node_modules/@allyhub/media/dist/vision/runtime.js +0 -8
  1226. package/dist/node_modules/@allyhub/media/dist/vision/status.d.ts +0 -24
  1227. package/dist/node_modules/@allyhub/media/dist/vision/status.js +0 -2
  1228. package/dist/node_modules/@allyhub/media/dist/vision/track.d.ts +0 -54
  1229. package/dist/node_modules/@allyhub/media/dist/vision/track.js +0 -2
  1230. package/dist/node_modules/@allyhub/media/dist/vision/worker.d.ts +0 -2
  1231. package/dist/node_modules/@allyhub/media/dist/vision/worker.js +0 -5
  1232. package/dist/node_modules/@allyhub/media/dist/vision/yunet.d.ts +0 -35
  1233. package/dist/node_modules/@allyhub/media/dist/vision/yunet.js +0 -2
  1234. package/dist/node_modules/@allyhub/media/dist/worker-process.d.ts +0 -3
  1235. package/dist/node_modules/@allyhub/media/dist/worker-process.js +0 -2
  1236. package/dist/node_modules/@allyhub/ooxml/dist/brightness.d.ts +0 -31
  1237. package/dist/node_modules/@allyhub/ooxml/dist/color.d.ts +0 -33
  1238. package/dist/node_modules/@allyhub/ooxml/dist/enums.d.ts +0 -13
  1239. package/dist/node_modules/@allyhub/ooxml/dist/ext.d.ts +0 -79
  1240. package/dist/node_modules/@allyhub/ooxml/dist/generated/enums.d.ts +0 -132
  1241. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +0 -28
  1242. package/dist/node_modules/@allyhub/ooxml/dist/generated/spec.d.ts +0 -4708
  1243. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +0 -57
  1244. package/dist/node_modules/@allyhub/ooxml/dist/index.d.ts +0 -10
  1245. package/dist/node_modules/@allyhub/ooxml/dist/mce.d.ts +0 -12
  1246. package/dist/node_modules/@allyhub/ooxml/dist/node.d.ts +0 -111
  1247. package/dist/node_modules/@allyhub/ooxml/dist/ns.d.ts +0 -45
  1248. package/dist/node_modules/@allyhub/ooxml/dist/opc.d.ts +0 -48
  1249. package/dist/node_modules/@allyhub/ooxml/dist/report.d.ts +0 -45
  1250. package/dist/node_modules/@allyhub/ooxml/dist/xml.d.ts +0 -28
  1251. package/dist/node_modules/@allyhub/project/dist/deck-keys.js +0 -2
  1252. package/dist/node_modules/@allyhub/project/dist/deck-measure.js +0 -2
  1253. package/dist/node_modules/@allyhub/project/dist/deck-pool.js +0 -2
  1254. package/dist/node_modules/@allyhub/project/dist/says.js +0 -2
  1255. package/dist/node_modules/@allyhub/project/dist/scenery.js +0 -2
  1256. package/dist/node_modules/@allyhub/project/dist/stretch.js +0 -2
  1257. package/dist/node_modules/@allyhub/render/dist/doc/fonts.js +0 -4
  1258. package/dist/node_modules/@allyhub/render/dist/doc/index.js +0 -2
  1259. package/dist/node_modules/@allyhub/render/dist/doc/pages.js +0 -32
  1260. package/dist/node_modules/@allyhub/render/dist/doc/print.js +0 -41
  1261. package/dist/node_modules/@allyhub/render/dist/webp.js +0 -2
  1262. package/dist/node_modules/@allyhub/runtime/dist/console.js +0 -2
  1263. package/dist/node_modules/@allyhub/runtime/dist/env.js +0 -2
  1264. package/dist/node_modules/@allyhub/runtime/dist/errors.js +0 -2
  1265. package/dist/node_modules/@allyhub/runtime/dist/inspect.js +0 -3
  1266. package/dist/node_modules/@allyhub/runtime/dist/mix-plan.js +0 -2
  1267. package/dist/node_modules/@allyhub/runtime/dist/reads.js +0 -2
  1268. package/dist/node_modules/@allyhub/runtime/dist/stage.js +0 -2
  1269. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  1270. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  1271. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  1272. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  1273. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  1274. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  1275. package/dist/node_modules/@allyhub/sheet/dist/address.d.ts +0 -32
  1276. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.d.ts +0 -23
  1277. package/dist/node_modules/@allyhub/sheet/dist/api/charts.d.ts +0 -204
  1278. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +0 -19
  1279. package/dist/node_modules/@allyhub/sheet/dist/api/hint.d.ts +0 -3
  1280. package/dist/node_modules/@allyhub/sheet/dist/api/index.d.ts +0 -8
  1281. package/dist/node_modules/@allyhub/sheet/dist/api/page.d.ts +0 -83
  1282. package/dist/node_modules/@allyhub/sheet/dist/api/rectangles.d.ts +0 -4
  1283. package/dist/node_modules/@allyhub/sheet/dist/api/rules.d.ts +0 -170
  1284. package/dist/node_modules/@allyhub/sheet/dist/api/styles.d.ts +0 -117
  1285. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +0 -362
  1286. package/dist/node_modules/@allyhub/sheet/dist/arrange.d.ts +0 -68
  1287. package/dist/node_modules/@allyhub/sheet/dist/calc/analyse.d.ts +0 -27
  1288. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.d.ts +0 -23
  1289. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +0 -199
  1290. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/aggregate.d.ts +0 -2
  1291. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/convert.d.ts +0 -4
  1292. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +0 -15
  1293. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/database.d.ts +0 -2
  1294. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.d.ts +0 -2
  1295. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +0 -95
  1296. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/delimiters.d.ts +0 -16
  1297. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/distributions.d.ts +0 -2
  1298. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.d.ts +0 -19
  1299. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/finance.d.ts +0 -2
  1300. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/index.d.ts +0 -17
  1301. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.d.ts +0 -2
  1302. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.d.ts +0 -2
  1303. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/logical.d.ts +0 -2
  1304. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.d.ts +0 -2
  1305. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.d.ts +0 -2
  1306. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/modern.d.ts +0 -2
  1307. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/special.d.ts +0 -29
  1308. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.d.ts +0 -2
  1309. package/dist/node_modules/@allyhub/sheet/dist/calc/graph.d.ts +0 -38
  1310. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +0 -19
  1311. package/dist/node_modules/@allyhub/sheet/dist/calc/remote.d.ts +0 -49
  1312. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +0 -82
  1313. package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +0 -55
  1314. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +0 -52
  1315. package/dist/node_modules/@allyhub/sheet/dist/check.d.ts +0 -15
  1316. package/dist/node_modules/@allyhub/sheet/dist/diff.d.ts +0 -79
  1317. package/dist/node_modules/@allyhub/sheet/dist/edit.d.ts +0 -154
  1318. package/dist/node_modules/@allyhub/sheet/dist/export.d.ts +0 -32
  1319. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +0 -19
  1320. package/dist/node_modules/@allyhub/sheet/dist/files.d.ts +0 -24
  1321. package/dist/node_modules/@allyhub/sheet/dist/fill.d.ts +0 -30
  1322. package/dist/node_modules/@allyhub/sheet/dist/filter.d.ts +0 -29
  1323. package/dist/node_modules/@allyhub/sheet/dist/format.d.ts +0 -15
  1324. package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +0 -113
  1325. package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +0 -6
  1326. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.d.ts +0 -4
  1327. package/dist/node_modules/@allyhub/sheet/dist/formula/print.d.ts +0 -6
  1328. package/dist/node_modules/@allyhub/sheet/dist/formula/rewrite.d.ts +0 -65
  1329. package/dist/node_modules/@allyhub/sheet/dist/formula/walk.d.ts +0 -6
  1330. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +0 -46
  1331. package/dist/node_modules/@allyhub/sheet/dist/html.d.ts +0 -82
  1332. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +0 -11
  1333. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +0 -42
  1334. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +0 -25
  1335. package/dist/node_modules/@allyhub/sheet/dist/paginate.d.ts +0 -98
  1336. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +0 -4
  1337. package/dist/node_modules/@allyhub/sheet/dist/profile.d.ts +0 -30
  1338. package/dist/node_modules/@allyhub/sheet/dist/rules.d.ts +0 -56
  1339. package/dist/node_modules/@allyhub/sheet/dist/scenario.d.ts +0 -42
  1340. package/dist/node_modules/@allyhub/sheet/dist/series.d.ts +0 -10
  1341. package/dist/node_modules/@allyhub/sheet/dist/sort.d.ts +0 -24
  1342. package/dist/node_modules/@allyhub/sheet/dist/structure.d.ts +0 -38
  1343. package/dist/node_modules/@allyhub/sheet/dist/table-style.d.ts +0 -32
  1344. package/dist/node_modules/@allyhub/sheet/dist/table-styles.d.ts +0 -3
  1345. package/dist/node_modules/@allyhub/sheet/dist/validate.d.ts +0 -26
  1346. package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +0 -67
  1347. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +0 -324
  1348. package/dist/node_modules/@allyhub/sheet/dist/write.d.ts +0 -5
  1349. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +0 -53
  1350. package/dist/node_modules/@allyhub/sheet/dist/xlsx/colors.d.ts +0 -19
  1351. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.d.ts +0 -31
  1352. package/dist/node_modules/@allyhub/sheet/dist/xlsx/functions.d.ts +0 -15
  1353. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +0 -49
  1354. package/dist/node_modules/@allyhub/sheet/dist/xlsx/index.d.ts +0 -5
  1355. package/dist/node_modules/@allyhub/sheet/dist/xlsx/numfmt.d.ts +0 -8
  1356. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +0 -159
  1357. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +0 -23
  1358. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +0 -25
  1359. package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.d.ts +0 -3
  1360. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +0 -23
  1361. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +0 -28
  1362. package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.d.ts +0 -40
  1363. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +0 -129
  1364. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +0 -730
  1365. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.d.ts +0 -18
  1366. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +0 -202
  1367. package/dist/node_modules/@allyhub/slides-core/dist/check.d.ts +0 -7
  1368. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +0 -33
  1369. package/dist/node_modules/@allyhub/slides-core/dist/components.d.ts +0 -31
  1370. package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +0 -329
  1371. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +0 -131
  1372. package/dist/node_modules/@allyhub/slides-core/dist/identity.d.ts +0 -17
  1373. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +0 -25
  1374. package/dist/node_modules/@allyhub/slides-core/dist/lang.d.ts +0 -6
  1375. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +0 -34
  1376. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +0 -58
  1377. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +0 -293
  1378. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +0 -84
  1379. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +0 -6
  1380. package/dist/node_modules/@allyhub/slides-core/dist/placeholders.d.ts +0 -7
  1381. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +0 -202
  1382. package/dist/node_modules/@allyhub/slides-core/dist/script.d.ts +0 -45
  1383. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +0 -61
  1384. package/dist/node_modules/@allyhub/slides-core/dist/strict.d.ts +0 -7
  1385. package/dist/node_modules/@allyhub/slides-core/dist/theme.d.ts +0 -72
  1386. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +0 -62
  1387. package/dist/node_modules/@allyhub/slides-core/dist/values.d.ts +0 -7
  1388. package/dist/node_modules/@allyhub/stage/dist/bakes.js +0 -4
  1389. package/dist/node_modules/@allyhub/stage/dist/graphics.js +0 -2
  1390. package/dist/node_modules/@allyhub/stage/dist/scenery-page.js +0 -12
  1391. package/dist/node_modules/@allyhub/stage/dist/scenery.js +0 -2
  1392. package/dist/node_modules/@allyhub/stage-page/dist/runtime/runtime.js +0 -79
  1393. package/dist/node_modules/@allyhub/video-core/dist/anchors.d.ts +0 -164
  1394. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +0 -148
  1395. package/dist/node_modules/@allyhub/video-core/dist/backdrop.d.ts +0 -87
  1396. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +0 -122
  1397. package/dist/node_modules/@allyhub/video-core/dist/component.js +0 -2
  1398. package/dist/node_modules/@allyhub/video-core/dist/contrast.d.ts +0 -98
  1399. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +0 -77
  1400. package/dist/node_modules/@allyhub/video-core/dist/edit.d.ts +0 -77
  1401. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +0 -163
  1402. package/dist/node_modules/@allyhub/video-core/dist/export.d.ts +0 -97
  1403. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  1404. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +0 -1179
  1405. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +0 -168
  1406. package/dist/node_modules/@allyhub/video-core/dist/formats.d.ts +0 -205
  1407. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  1408. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  1409. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +0 -41
  1410. package/dist/node_modules/@allyhub/video-core/dist/look.d.ts +0 -66
  1411. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +0 -563
  1412. package/dist/node_modules/@allyhub/video-core/dist/media.d.ts +0 -226
  1413. package/dist/node_modules/@allyhub/video-core/dist/media.js +0 -2
  1414. package/dist/node_modules/@allyhub/video-core/dist/messages.d.ts +0 -88
  1415. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +0 -56
  1416. package/dist/node_modules/@allyhub/video-core/dist/music.d.ts +0 -111
  1417. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +0 -1154
  1418. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +0 -37
  1419. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  1420. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  1421. package/dist/node_modules/@allyhub/video-core/dist/render-types.d.ts +0 -49
  1422. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +0 -350
  1423. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +0 -180
  1424. package/dist/node_modules/@allyhub/video-core/dist/script.d.ts +0 -76
  1425. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  1426. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +0 -214
  1427. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +0 -72
  1428. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  1429. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +0 -83
  1430. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +0 -631
  1431. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +0 -88
  1432. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +0 -288
  1433. package/dist/node_modules/@allyhub/video-core/dist/transition.d.ts +0 -300
  1434. package/dist/node_modules/@allyhub/video-core/dist/voice.d.ts +0 -175
  1435. package/dist/text/timeline-text.js +0 -2
  1436. package/editor-web/assets/abnfDiagram-WEYOIA3C-B9SmmTJt.js +0 -1
  1437. package/editor-web/assets/architecture-WOLXFQ4H-m-T100yu.js +0 -1
  1438. package/editor-web/assets/architectureDiagram-ZHVYKT53-B5nwfRgH.js +0 -36
  1439. package/editor-web/assets/blockDiagram-RJAE7QA3-ClawtW7w.js +0 -140
  1440. package/editor-web/assets/c4Diagram-XDPPPE54-CFHQpxmY.js +0 -38
  1441. package/editor-web/assets/calc-worker-BTNuOUVJ.js +0 -158
  1442. package/editor-web/assets/channel-hhT2g1yB.js +0 -1
  1443. package/editor-web/assets/choice-BJc3Tv5F.js +0 -10
  1444. package/editor-web/assets/chunk-2E7WHVMD-CoQrt8De.js +0 -88
  1445. package/editor-web/assets/chunk-4EMNKR2T-Iy5ZP2hH.js +0 -1
  1446. package/editor-web/assets/chunk-55XCU76K-DsS8sEfz.js +0 -1
  1447. package/editor-web/assets/chunk-7S6XSTFO-Co220fFP.js +0 -2
  1448. package/editor-web/assets/chunk-AQDTSKZB-JIGZAIpF.js +0 -72
  1449. package/editor-web/assets/chunk-DSNLSHJZ-Ror_NzZx.js +0 -129
  1450. package/editor-web/assets/chunk-HAGFOTED-C07qbJaC.js +0 -62
  1451. package/editor-web/assets/chunk-HNE4Q36P-CM3bprQy.js +0 -1
  1452. package/editor-web/assets/chunk-NQOKRVIF-ipM1cuU7.js +0 -213
  1453. package/editor-web/assets/chunk-UHW7PFBP-CA8McMqW.js +0 -1
  1454. package/editor-web/assets/chunk-VQ5W62QI-DEDvdgPj.js +0 -1
  1455. package/editor-web/assets/chunk-WQQL4CDK-h5ZO7LF7.js +0 -10
  1456. package/editor-web/assets/chunk-YZO67HFG-yC3xdjnt.js +0 -1
  1457. package/editor-web/assets/chunk-ZAUX2LTX-3rRCWRvD.js +0 -1
  1458. package/editor-web/assets/chunk-ZCHMQSOR-DK_PLi39.js +0 -2
  1459. package/editor-web/assets/classDiagram-v2-4MYWR3UA-B9pB-HTm.js +0 -217
  1460. package/editor-web/assets/cynefin-EF2NZ3EQ-CSd3PDdQ.js +0 -1
  1461. package/editor-web/assets/cynefinDiagram-WF24UDRP-BBCequ3T.js +0 -62
  1462. package/editor-web/assets/dagre-NK4GIZVX-C7ZOWX5t.js +0 -4
  1463. package/editor-web/assets/diagram-CBK3MWTC-CQVvlSNo.js +0 -24
  1464. package/editor-web/assets/diagram-I5XIIV2D-BCkke5x3.js +0 -24
  1465. package/editor-web/assets/diagram-ODIL2UCW-DDWQXIlX.js +0 -30
  1466. package/editor-web/assets/diagram-PFBEJUXE-C31QlFzr.js +0 -3
  1467. package/editor-web/assets/diagram-RJA3I4VV-DUXAFmI_.js +0 -41
  1468. package/editor-web/assets/diagram-TYUNFSNR-BCxuoEs9.js +0 -200
  1469. package/editor-web/assets/dist-BRuoygB7.js +0 -2
  1470. package/editor-web/assets/dist-CK42vCmN.js +0 -550
  1471. package/editor-web/assets/dist-C_buDsM-.js +0 -36
  1472. package/editor-web/assets/dist-DNcXHhzn.js +0 -37
  1473. package/editor-web/assets/dist-HxiPpGXi.js +0 -10
  1474. package/editor-web/assets/dist-PF3VMsK7.js +0 -1
  1475. package/editor-web/assets/ebnfDiagram-V4P3TTPT-Drbe1R2R.js +0 -1
  1476. package/editor-web/assets/elk-QONTBCTQ-Bqwuc5U-.js +0 -27
  1477. package/editor-web/assets/erDiagram-KYQIGQAA-lUcyPgf3.js +0 -99
  1478. package/editor-web/assets/eventmodeling-K75KTNOO-BfxFVok7.js +0 -1
  1479. package/editor-web/assets/flowDiagram-IUGLLWBU-FJVml4lT.js +0 -1
  1480. package/editor-web/assets/ganttDiagram-R7GPNTJY-AYc1JnE_.js +0 -292
  1481. package/editor-web/assets/gitGraph-VSP46ZUC-Z_2ysYZF.js +0 -1
  1482. package/editor-web/assets/gitGraphDiagram-PDYL7XHY-CB2O1LZ6.js +0 -106
  1483. package/editor-web/assets/hint-BwGc32IE.js +0 -1
  1484. package/editor-web/assets/index-BQKSbBSy.js +0 -69
  1485. package/editor-web/assets/index-CfD80QPx.css +0 -2
  1486. package/editor-web/assets/info-OHQRW6UA-BPePkERU.js +0 -1
  1487. package/editor-web/assets/infoDiagram-MVDRKAX5-CNluCREj.js +0 -2
  1488. package/editor-web/assets/ishikawaDiagram-HPEHV2GE-DIBDBol9.js +0 -70
  1489. package/editor-web/assets/journeyDiagram-BOSHW7O7-C4Hc63C8.js +0 -139
  1490. package/editor-web/assets/kanban-definition-FNSA4HC5-BShCYR9Q.js +0 -89
  1491. package/editor-web/assets/mermaid-parser.core-KGVt2icR.js +0 -7
  1492. package/editor-web/assets/mermaid.core-CVH2hRmI.js +0 -44
  1493. package/editor-web/assets/mindmap-definition-6OY57UG3-C1mo9OeK.js +0 -98
  1494. package/editor-web/assets/packet-JDAUHWVQ-B7YpYnvD.js +0 -1
  1495. package/editor-web/assets/pegDiagram-ECIUJNBX-Es99bVEq.js +0 -1
  1496. package/editor-web/assets/pie-XZMESJXO-xTUp8UcP.js +0 -1
  1497. package/editor-web/assets/pieDiagram-GNMPY74T-CD91pLk4.js +0 -39
  1498. package/editor-web/assets/quadrantDiagram-D57K4MC3-CSnvxc94.js +0 -7
  1499. package/editor-web/assets/radar-ABXABTNO-Dj-t0L18.js +0 -1
  1500. package/editor-web/assets/railroad-I3PHUGI6-BK32uCwU.js +0 -1
  1501. package/editor-web/assets/railroad-abnf-LNEFI6M7-D5R8k6d0.js +0 -1
  1502. package/editor-web/assets/railroad-ebnf-DWYD2UWJ-Crm1KEAC.js +0 -1
  1503. package/editor-web/assets/railroad-peg-JR7BVNR7-BILXac49.js +0 -1
  1504. package/editor-web/assets/railroadDiagram-Y72NRBL7-CevyjvbY.js +0 -1
  1505. package/editor-web/assets/react-BSSSHUyV.js +0 -101
  1506. package/editor-web/assets/requirementDiagram-EQYSW5RA-B5N8Q9VV.js +0 -84
  1507. package/editor-web/assets/sankeyDiagram-SY24JHO5-bCTsxF1A.js +0 -40
  1508. package/editor-web/assets/sequenceDiagram-BLEHNHQU-M37m0sEI.js +0 -169
  1509. package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BDIn7XwV.js +0 -291
  1510. package/editor-web/assets/svg-BiObwMnL.js +0 -1
  1511. package/editor-web/assets/swatch-CwskGSEY.js +0 -105
  1512. package/editor-web/assets/swimlanes-B3ENRKFQ-DIU1TlDI.js +0 -1
  1513. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DPM008dB.js +0 -8
  1514. package/editor-web/assets/tabs-uHwPMprC.js +0 -1
  1515. package/editor-web/assets/timeline-definition-JXYKGLGB-C0x4clqy.js +0 -120
  1516. package/editor-web/assets/treeView-D4JQ5SDB-C9lm0KTt.js +0 -1
  1517. package/editor-web/assets/treemap-SAJKECNS-BMH4lQc7.js +0 -1
  1518. package/editor-web/assets/usecaseDiagram-WPOLBNNX-BhltpBsJ.js +0 -328
  1519. package/editor-web/assets/vennDiagram-Q3Y3IDCW-D3qN9Kpt.js +0 -34
  1520. package/editor-web/assets/wardley-7MLQ67FV-C4k02DvU.js +0 -1
  1521. package/editor-web/assets/wardleyDiagram-IVAIDKWA-dhpBDNqg.js +0 -78
  1522. package/editor-web/assets/xychartDiagram-4URNHDU4-0yEarQ-o.js +0 -7
  1523. /package/dist/{commands → node_modules/@allyhub/3d-extension/dist/cli}/scenery-text.js +0 -0
  1524. /package/dist/node_modules/@allyhub/{check/dist/result.js → build/dist/stage-route.js} +0 -0
  1525. /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/drawn.js +0 -0
  1526. /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/pdf.js +0 -0
  1527. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  1528. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  1529. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/contrast.js +0 -0
  1530. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/fonts.js +0 -0
  1531. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/guards.js +0 -0
  1532. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/pictures.js +0 -0
  1533. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/styles.js +0 -0
  1534. /package/dist/node_modules/@allyhub/{runtime/dist/bridge.js → image-extension/dist/page.js} +0 -0
  1535. /package/dist/node_modules/@allyhub/{render → image-render}/dist/pdf.js +0 -0
  1536. /package/dist/node_modules/@allyhub/{render → image-render}/dist/png.js +0 -0
  1537. /package/dist/node_modules/@allyhub/{render → measure}/dist/image.js +0 -0
  1538. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  1539. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  1540. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  1541. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  1542. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  1543. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  1544. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  1545. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  1546. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  1547. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  1548. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  1549. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  1550. /package/dist/node_modules/@allyhub/{runtime/dist → piece/dist/page}/locate.js +0 -0
  1551. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  1552. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  1553. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  1554. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  1555. /package/dist/node_modules/@allyhub/{stage/dist/scenery-solve.js → scenery-host/dist/stage/solve.js} +0 -0
  1556. /package/dist/node_modules/@allyhub/{export → slides-extension}/dist/deck-fonts.js +0 -0
  1557. /package/dist/node_modules/@allyhub/{dev-server/dist/fonts.js → slides-extension/dist/font-faces.js} +0 -0
  1558. /package/dist/node_modules/@allyhub/{dev-server → video-extension}/dist/sound.js +0 -0
  1559. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/cut-sheet.js +0 -0
  1560. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/flat.js +0 -0
  1561. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/loop.js +0 -0
  1562. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/compare.js +0 -0
  1563. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/folder.js +0 -0
  1564. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/interpret.js +0 -0
  1565. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/sections.js +0 -0
  1566. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/seams.js +0 -0
  1567. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/sound-measures.js +0 -0
  1568. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/still.js +0 -0
  1569. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/version-voice.js +0 -0
@@ -0,0 +1,3 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{drawnEdges as a,drawnNodes as u,idOf as r,readCanvas as l}from"./canvas.js";export const CANVAS_RULES={format:"AK-C001",duplicate:"AK-C002",missingFile:"AK-C003",missingNode:"AK-C004"};export function lineOfId(n,t){const d=`"id":${JSON.stringify(t)}`,i=`"id": ${JSON.stringify(t)}`,s=n.split(`
3
+ `).findIndex(e=>e.includes(d)||e.includes(i));return s<0?void 0:s+1}export function checkCanvas(n,t){const{canvas:d,problems:i}=l(n),o=i.map(s=>{const e=s.id===void 0?void 0:lineOfId(n,s.id);return{code:CANVAS_RULES.format,message:s.message,...e===void 0?{}:{line:e}}});return o.push(...g(d,n),...m(d,n,t)),o}function g(n,t){const d=new Map;for(const i of[...n.nodes,...n.edges]){const o=r(i);o!==void 0&&d.set(o,(d.get(o)??0)+1)}return[...d].flatMap(([i,o])=>{if(o<2)return[];const s=lineOfId(t,i);return[{code:CANVAS_RULES.duplicate,message:`The id ${i} is given to ${String(o)} entries: every node and edge has an id of its own.`,...s===void 0?{}:{line:s}}]})}function m(n,t,d){const i=[],o=u(n),s=new Set(n.nodes.flatMap(e=>r(e)??[]));for(const e of o){if(e.type!=="file")continue;const f=lineOfId(t,e.id),c=f===void 0?{}:{line:f};e.file===void 0||e.file===""?i.push({code:CANVAS_RULES.missingFile,message:`The file node ${e.id} names no file.`,...c}):d(e.file)||i.push({code:CANVAS_RULES.missingFile,message:`The file node ${e.id} points at ${e.file}, which the project has not: a path is from the project's folder.`,...c})}for(const e of a(n))for(const f of[e.fromNode,e.toNode])if(!s.has(f)){const c=lineOfId(t,e.id);i.push({code:CANVAS_RULES.missingNode,message:`The edge ${e.id} goes ${f===e.fromNode?"from":"to"} ${f}, which is no node of the canvas.`,...c===void 0?{}:{line:c}})}return i}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{idOf as a}from"./canvas.js";function g(e,s,t){const o=[...e];for(const c of t==="after"?s:[...s].reverse()){const f=t==="after"?c.after:c.before,i=o.findIndex(u=>a(u)===c.id);f===void 0?i>=0&&o.splice(i,1):i>=0?o[i]=f:o.splice(Math.min(c.index,o.length),0,f)}return o}export function applyChange(e,s,t){return{...e,nodes:g(e.nodes,s.nodes,t),edges:g(e.edges,s.edges,t)}}export function changeBetween(e,s){const t=(o,c)=>{const f=[],i=new Map;o.forEach((n,r)=>{const d=a(n);d!==void 0&&i.set(d,{raw:n,index:r})});const u=new Set;c.forEach((n,r)=>{const d=a(n);if(d===void 0)return;u.add(d);const p=i.get(d);p?JSON.stringify(p.raw)!==JSON.stringify(n)&&f.push({id:d,before:p.raw,after:n,index:r}):f.push({id:d,after:n,index:r})});for(const[n,r]of i)u.has(n)||f.push({id:n,before:r.raw,index:r.index});return f};return{nodes:t(e.nodes,s.nodes),edges:t(e.edges,s.edges)}}export const isEmpty=e=>e.nodes.length===0&&e.edges.length===0;
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export*from"./canvas.js";export*from"./merge.js";export*from"./edit.js";export*from"./check.js";
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{idOf as g,withFields as S}from"./canvas.js";const p=(t,n)=>JSON.stringify(t)===JSON.stringify(n);function a(t,n,d){if(p(n,t))return d;if(p(d,t))return n;if(n===void 0||d===void 0)return n??d;if(t===void 0)return n;const c=[...new Set([...Object.keys(n),...Object.keys(t)])].filter(o=>!p(n[o],t[o]));return S(d,Object.fromEntries(c.map(o=>[o,n[o]])))}function O(t,n,d){const c=i=>{const e=new Map;for(const f of i){const r=g(f);r!==void 0&&!e.has(r)&&e.set(r,f)}return e},o=c(t),l=c(n),w=c(d),s=[],u=new Set;for(const i of d){const e=g(i);if(e===void 0){s.push(i);continue}if(u.has(e))continue;u.add(e);const f=a(o.get(e),l.get(e),i);f&&s.push(f)}let m;for(const i of n){const e=g(i);if(e!==void 0){if(!u.has(e)){u.add(e);const f=a(o.get(e),i,w.get(e));if(f){const r=m===void 0?-1:s.findIndex(y=>g(y)===m);s.splice(r+1,0,f)}}s.some(f=>g(f)===e)&&(m=e)}}return s}export function mergeCanvas(t,n,d){const c=a(t.top,n.top,d.top)??{};return{nodes:O(t.nodes,n.nodes,d.nodes),edges:O(t.edges,n.edges,d.edges),top:c}}
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "@allyhub/canvas-model",
3
+ "version": "0.9.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ }
10
+ },
11
+ "sideEffects": false,
12
+ "private": true,
13
+ "license": "SEE LICENSE IN LICENSE.md"
14
+ }
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{colorOfFile as j}from"@allyhub/formats";import{isScatter as O,labelPositionsOf as v}from"./chart.js";const l=e=>j(e)??"dk1";function S(e,n){if(n.startsWith("/"))return n.slice(1);const o=e===""?[]:e.split("/");for(const s of n.split("/"))s===""||s==="."||(s===".."?o.pop():o.push(s));return o.join("/")}const w=e=>e&&{...e.min===void 0?{}:{minimum_scale:e.min},...e.max===void 0?{}:{maximum_scale:e.max},...e.major===void 0?{}:{major_unit:e.major},...e.gridlines===void 0?{}:{has_major_gridlines:e.gridlines},...e.visible===void 0?{}:{visible:e.visible},...e.format===void 0?{}:{number_format:e.format},...e.reverse===void 0?{}:{reverse_order:e.reverse},...e.gridline_color===void 0?{}:{gridline_color:l(e.gridline_color)},...e.line_color===void 0?{}:{line_color:l(e.line_color)}},F=e=>{if(!(e===void 0||e===!1))return e===!0?{show_value:!0}:{...e.value===void 0?{}:{show_value:e.value},...e.percentage===void 0?{}:{show_percentage:e.percentage},...e.category===void 0?{}:{show_category_name:e.category},...e.series===void 0?{}:{show_series_name:e.series},...e.format===void 0?{}:{number_format:e.format},...e.position===void 0?{}:{position:e.position},...e.size===void 0?{}:{size:e.size},...e.color===void 0?{}:{color:l(e.color)}}};function $(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e==null)return null;if(typeof e!="string")return;const n=e.trim();if(n==="")return null;const o=Number(n);return Number.isFinite(o)?o:void 0}export function chartOfFile(e,n){const o=F(e.labels),s=O(e.type);let u,m;const g=r=>({...r.color===void 0?{}:{color:l(r.color)},...r.format===void 0?{}:{number_format:r.format},...r.smooth===void 0?{}:{smooth:r.smooth},...r.line_width===void 0?{}:{line_width:r.line_width},...r.marker_size===void 0?{}:{marker_size:r.marker_size}});if(e.data!==void 0){let r;try{r=n.rows(e.data)}catch(t){n.problem(`${e.data} cannot be read: ${t instanceof Error?t.message:String(t)}`);return}if(!Array.isArray(r)||r.length===0){n.problem(`${e.data} holds no rows.`);return}const i=r,a=e.categories;if(typeof a!="string"){n.problem("with data, categories names its column.");return}const _=Object.keys(i[0]??{}),y=[a,...e.series.map(t=>typeof t=="string"?t:t.name)].filter(t=>!_.includes(t));if(y.length>0){n.problem(`${e.data} has no column ${y.join(", ")} (it has ${_.join(", ")}).`);return}u=i.map(t=>{const d=t[a];return typeof d=="string"||typeof d=="number"?String(d):""}),m=e.series.map(t=>{const d=typeof t=="string"?t:t.name,x=i.map((c,z)=>{const b=$(c[d]);return b===void 0?(n.problem(`${String(e.data)} row ${String(z+1)}: ${JSON.stringify(c[d])} in ${d} is not a number.`),null):b});return{name:d,values:x,...s?{x:i.map(c=>$(c[a])??null)}:{},...typeof t=="string"?{}:g(t)}})}else{if(typeof e.categories=="string"){n.problem("categories names a column, and there is no data to read.");return}if(e.categories===void 0&&!s){n.problem(`a ${e.type} chart has categories.`);return}u=e.categories??[];const r=[];for(const i of e.series){if(typeof i=="string"||!i.values){const a=typeof i=="string"?i:i.name;n.problem(`series ${a} has no values, and there is no data to read.`);return}if(s){if(i.x?.length!==i.values.length){n.problem(`series ${i.name} has an x for each of its values.`);return}}else i.values.length!==u.length&&n.problem(`series ${i.name} has ${String(i.values.length)} values for ${String(u.length)} categories.`);r.push({name:i.name,values:i.values,...s&&i.x?{x:i.x}:{},...g(i)})}m=r}const f=o?.position;f!==void 0&&!v(e.type).includes(f)&&n.problem(`a ${e.type} chart has no label position ${f}, which PowerPoint would repair (it has ${v(e.type).join(", ")||"none"}).`);const p=w(e.value_axis),h=w(e.category_axis);return{type:e.type,categories:u,series:m,...n.title===void 0?{}:{title:n.title},...e.legend===void 0?{}:{legend:e.legend},...o?{labels:o}:{},...e.gap_width===void 0?{}:{gap_width:e.gap_width},...e.overlap===void 0?{}:{overlap:e.overlap},...e.vary_by_categories===void 0?{}:{vary_by_categories:e.vary_by_categories},...e.hole_size===void 0?{}:{hole_size:e.hole_size},...p?{value_axis:p}:{},...h?{category_axis:h}:{},...e.size===void 0?{}:{font_size:e.size},...e.title_size===void 0?{}:{title_size:e.title_size},...e.color===void 0?{}:{font_color:l(e.color)},...e.data===void 0?{}:{source:S(n.base,e.data)}}}
2
+ import{colorOfFile as j}from"@allyhub/formats";import{isScatter as O,labelPositionsOf as v}from"./chart.js";const u=e=>j(e)??"dk1";function S(e,n){if(n.startsWith("/"))return n.slice(1);const o=e===""?[]:e.split("/");for(const s of n.split("/"))s===""||s==="."||(s===".."?o.pop():o.push(s));return o.join("/")}const w=e=>e&&{...e.min===void 0?{}:{minimum_scale:e.min},...e.max===void 0?{}:{maximum_scale:e.max},...e.major===void 0?{}:{major_unit:e.major},...e.gridlines===void 0?{}:{has_major_gridlines:e.gridlines},...e.visible===void 0?{}:{visible:e.visible},...e.format===void 0?{}:{number_format:e.format},...e.reverse===void 0?{}:{reverse_order:e.reverse},...e.gridline_color===void 0?{}:{gridline_color:u(e.gridline_color)},...e.line_color===void 0?{}:{line_color:u(e.line_color)}},F=e=>{if(!(e===void 0||e===!1))return e===!0?{show_value:!0}:{...e.value===void 0?{}:{show_value:e.value},...e.percentage===void 0?{}:{show_percentage:e.percentage},...e.category===void 0?{}:{show_category_name:e.category},...e.series===void 0?{}:{show_series_name:e.series},...e.format===void 0?{}:{number_format:e.format},...e.position===void 0?{}:{position:e.position},...e.size===void 0?{}:{size:e.size},...e.color===void 0?{}:{color:u(e.color)}}};function $(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e==null)return null;if(typeof e!="string")return;const n=e.trim();if(n==="")return null;const o=Number(n);return Number.isFinite(o)?o:void 0}export function chartOfFile(e,n){const o=F(e.labels),s=O(e.type);let l,m;const g=r=>({...r.color===void 0?{}:{color:u(r.color)},...r.format===void 0?{}:{number_format:r.format},...r.smooth===void 0?{}:{smooth:r.smooth},...r.line_width===void 0?{}:{line_width:r.line_width},...r.marker_size===void 0?{}:{marker_size:r.marker_size}});if(e.data!==void 0){let r;try{r=n.rows(e.data)}catch(t){n.problem(`${e.data} cannot be read: ${t instanceof Error?t.message:String(t)}`);return}if(!Array.isArray(r)||r.length===0){n.problem(`${e.data} holds no rows.`);return}const i=r,d=e.categories;if(typeof d!="string"){n.problem("with data, categories names its column.");return}const h=Object.keys(i[0]??{}),y=[d,...e.series.map(t=>typeof t=="string"?t:t.name)].filter(t=>!h.includes(t));if(y.length>0){n.problem(`${e.data} has no column ${y.join(", ")} (it has ${h.join(", ")}).`);return}l=i.map(t=>{const a=t[d];return typeof a=="string"||typeof a=="number"?String(a):""}),m=e.series.map(t=>{const a=typeof t=="string"?t:t.name,x=i.map((c,z)=>{const b=$(c[a]);return b===void 0?(n.problem(`${String(e.data)} row ${String(z+1)}: ${JSON.stringify(c[a])} in ${a} is not a number.`),null):b});return{name:a,values:x,...s?{x:i.map(c=>$(c[d])??null)}:{},...typeof t=="string"?{}:g(t)}})}else{if(typeof e.categories=="string"){n.problem("categories names a column, and there is no data to read.");return}if(e.categories===void 0&&!s){n.problem(`a ${e.type} chart has categories.`);return}l=e.categories??[];const r=[];for(const i of e.series){if(typeof i=="string"||!i.values){const d=typeof i=="string"?i:i.name;n.problem(`series ${d} has no values, and there is no data to read.`);return}if(s){if(i.x?.length!==i.values.length){n.problem(`series ${i.name} has an x for each of its values.`);return}}else i.values.length!==l.length&&n.problem(`series ${i.name} has ${String(i.values.length)} values for ${String(l.length)} categories.`);r.push({name:i.name,values:i.values,...s&&i.x?{x:i.x}:{},...g(i)})}m=r}const f=o?.position;f!==void 0&&!v(e.type).includes(f)&&n.problem(`a ${e.type} chart has no label position ${f}, which PowerPoint would repair (it has ${v(e.type).join(", ")||"none"}).`);const p=w(e.value_axis),_=w(e.category_axis);return{type:e.type,categories:l,series:m,...n.title===void 0?{}:{title:n.title},...e.legend===void 0?{}:{legend:e.legend},...o?{labels:o}:{},...e.gap_width===void 0?{}:{gap_width:e.gap_width},...e.overlap===void 0?{}:{overlap:e.overlap},...e.vary_by_categories===void 0?{}:{vary_by_categories:e.vary_by_categories},...e.category_colors===void 0?{}:{category_colors:e.category_colors.map(u)},...e.hole_size===void 0?{}:{hole_size:e.hole_size},...p?{value_axis:p}:{},..._?{category_axis:_}:{},...e.size===void 0?{}:{font_size:e.size},...e.title_size===void 0?{}:{title_size:e.title_size},...e.color===void 0?{}:{font_color:u(e.color)},...e.data===void 0?{}:{source:S(n.base,e.data)}}}
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{lumOf as X}from"@allyhub/ooxml/brightness";import{accentOf as j,CHART_DEFAULTS as d,chartDrawing as D,groupingOf as z,hasLines as E,hasMarkers as N,isArea as R,isBar as C,isHorizontal as T,isLine as P,isRound as h,isScatter as k,labelPositionOf as U,variesOf as w}from"./chart.js";const V="http://schemas.openxmlformats.org/drawingml/2006/chart",B="http://schemas.openxmlformats.org/drawingml/2006/main",W="http://schemas.openxmlformats.org/officeDocument/2006/relationships",H=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3
- `,y="2118791784",x="2140495176",Z={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},q=e=>{const n=e.charCodeAt(0);return n<32&&n!==9&&n!==10&&n!==13||n===65534||n===65535},l=e=>Array.from(e,n=>q(n)?"":Z[n]??n).join("");function r(e,n={},...c){const o=Object.entries(n).filter(([,s])=>s!==void 0).map(([s,i])=>` ${s}="${l(typeof i=="boolean"?i?"1":"0":String(i))}"`).join(""),a=c.join("");return a===""?`<${e}${o}/>`:`<${e}${o}>${a}</${e}>`}const K=e=>{if(typeof e=="string")return r("a:schemeClr",{val:e});if("rgb"in e)return r("a:srgbClr",{val:e.rgb.replace("#","").toUpperCase()});const{lumMod:n,lumOff:c}=X(e.brightness);return r("a:schemeClr",{val:e.theme_color},t("a:lumMod",n),...c===void 0?[]:[t("a:lumOff",c)])},p=e=>e===null?r("a:noFill"):r("a:solidFill",{},K(e)),t=(e,n)=>r(e,{val:typeof n=="boolean"?n?1:0:n}),m=(e,n)=>r("a:ln",n===void 0?{}:{w:Math.round(n*12700)},p(e)),F=(e,n)=>r("c:txPr",{},r("a:bodyPr"),r("a:lstStyle"),r("a:p",{},r("a:pPr",{},r("a:defRPr",e===void 0?{}:{sz:Math.round(e*100)},n===void 0?"":p(n))),r("a:endParaRPr",{lang:"en-US"}))),S=e=>r("c:strCache",{},t("c:ptCount",e.length),...e.map((n,c)=>r("c:pt",{idx:c},`<c:v>${l(n)}</c:v>`))),A=(e,n)=>r("c:numCache",{},`<c:formatCode>${l(e??"General")}</c:formatCode>`,t("c:ptCount",n.length),...n.flatMap((c,o)=>c===null?[]:[r("c:pt",{idx:o},`<c:v>${String(c)}</c:v>`)])),Y=(e,n)=>r("c:tx",{},n===void 0?`<c:v>${l(e.name)}</c:v>`:r("c:strRef",{},`<c:f>${l(n)}</c:f>`,S([e.name]))),J=(e,n)=>n===void 0?"":r("c:xVal",{},r("c:numRef",{},`<c:f>${l(n)}</c:f>`,A("General",e.x??[])));function Q(e,n,c,o){const a=n.color??j(c),s=h(e.type),i=k(e.type),u=P(e.type)||i,g=N(e.type),I=u?r("c:spPr",{},E(e.type)?m(a,n.line_width??d.lineWidth):r("a:ln",{w:19050},p(null))):r("c:spPr",{},p(a),s?m("lt1",1):""),_=o.categories;return r("c:ser",{},t("c:idx",c),t("c:order",c),Y(n,o.name(c)),I,C(e.type)?t("c:invertIfNegative",!1):"",u?r("c:marker",{},t("c:symbol",g?"circle":"none"),g?t("c:size",n.marker_size??d.marker):"",g?r("c:spPr",{},p(a),m(a)):""):"",...w(e)&&!u&&!R(e.type)?e.categories.map((v,f)=>r("c:dPt",{},t("c:idx",f),C(e.type)?t("c:invertIfNegative",!1):"",t("c:bubble3D",!1),r("c:spPr",{},p(e.category_colors?.[f]??j(f)),s?m("lt1",1):""))):[],i?J(n,o.x?.(c)):_===void 0?"":r("c:cat",{},o.numeric===!0?r("c:numRef",{},`<c:f>${l(_)}</c:f>`,A("General",e.categories.map(v=>{const f=Number(v);return v===""||!Number.isFinite(f)?null:f}))):r("c:strRef",{},`<c:f>${l(_)}</c:f>`,S(e.categories))),r(i?"c:yVal":"c:val",{},r("c:numRef",{},`<c:f>${l(o.values(c))}</c:f>`,A(n.number_format,n.values))),u?t("c:smooth",n.smooth===!0||e.type==="scatter-smooth"):"")}function b(e){const n=e.labels;if(!n)return"";const c=n.show_percentage===!0,o=U(e);return r("c:dLbls",{},n.number_format===void 0?"":r("c:numFmt",{formatCode:n.number_format,sourceLinked:0}),n.size===void 0&&n.color===void 0&&!h(e.type)?"":F(n.size,n.color??(h(e.type)?"lt1":void 0)),o===void 0?"":t("c:dLblPos",o),t("c:showLegendKey",!1),t("c:showVal",n.show_value??!c),t("c:showCatName",n.show_category_name===!0),t("c:showSerName",n.show_series_name===!0),t("c:showPercent",c),t("c:showBubbleSize",!1))}function ee(e,n){const c=e.series.map((s,i)=>Q(e,s,i,n)).join(""),o=z(e.type),a=t("c:axId",y)+t("c:axId",x);if(h(e.type)){const s=e.type==="pie";return r(s?"c:pieChart":"c:doughnutChart",{},t("c:varyColors",w(e)),c,b(e),t("c:firstSliceAng",0),s?"":t("c:holeSize",e.hole_size??50))}if(k(e.type))return r("c:scatterChart",{},t("c:scatterStyle","lineMarker"),t("c:varyColors",!1),c,b(e),a);if(C(e.type)){const s=o!=="clustered";return r("c:barChart",{},t("c:barDir",T(e.type)?"bar":"col"),t("c:grouping",o),t("c:varyColors",w(e)),c,b(e),t("c:gapWidth",e.gap_width??150),e.overlap!==void 0||s?t("c:overlap",e.overlap??100):"",a)}return r(P(e.type)?"c:lineChart":"c:areaChart",{},t("c:grouping",o),t("c:varyColors",!1),c,b(e),P(e.type)?t("c:marker",!0):"",a)}const L=e=>r("c:scaling",{},t("c:orientation",e.reverse_order===!0?"maxMin":"minMax"),e.maximum_scale===void 0?"":t("c:max",e.maximum_scale),e.minimum_scale===void 0?"":t("c:min",e.minimum_scale)),O=e=>r("c:spPr",{},m(e.line_color??{rgb:d.axisLine},d.gridWidth)),M=e=>e.has_major_gridlines===!0?r("c:majorGridlines",{},r("c:spPr",{},m(e.gridline_color??{rgb:d.gridline},d.gridWidth))):"",G=(e,n)=>r("c:rich",{},r("a:bodyPr"),r("a:lstStyle"),r("a:p",{},r("a:pPr",{},r("a:defRPr",{sz:n,b:0})),r("a:r",{},r("a:rPr",{lang:"en-US",sz:n,b:0}),`<a:t>${l(e)}</a:t>`))),$=(e,n)=>e===void 0||e===""?"":r("c:title",{},r("c:tx",{},G(e,n)),t("c:overlay",!1));function te(e){if(h(e.type))return"";const n=k(e.type),c=T(e.type),o=e.category_axis??{},a={has_major_gridlines:!0,...e.value_axis},s=z(e.type)==="percentStacked",i=a.number_format??(s?"0%":e.series[0]?.number_format??"General"),u=Math.round((e.font_size??d.fontSize)*100);return(n?r("c:valAx",{},t("c:axId",y),L(o),t("c:delete",o.visible===!1),t("c:axPos","b"),M(o),$(o.title,u),r("c:numFmt",{formatCode:o.number_format??"General",sourceLinked:o.number_format===void 0?1:0}),t("c:majorTickMark","none"),t("c:minorTickMark","none"),t("c:tickLblPos","nextTo"),O(o),t("c:crossAx",x),t("c:crosses","autoZero"),t("c:crossBetween","midCat"),o.major_unit===void 0?"":t("c:majorUnit",o.major_unit)):r("c:catAx",{},t("c:axId",y),L(o),t("c:delete",o.visible===!1),t("c:axPos",c?"l":"b"),M(o),$(o.title,u),r("c:numFmt",{formatCode:"General",sourceLinked:0}),t("c:majorTickMark","none"),t("c:minorTickMark","none"),t("c:tickLblPos","nextTo"),O(o),t("c:crossAx",x),t("c:crosses","autoZero"),t("c:auto",!0),t("c:lblAlgn","ctr"),t("c:lblOffset",100),t("c:noMultiLvlLbl",!1)))+r("c:valAx",{},t("c:axId",x),L(a),t("c:delete",a.visible===!1),t("c:axPos",c?"b":"l"),M(a),$(a.title,u),r("c:numFmt",{formatCode:i,sourceLinked:a.number_format===void 0&&!s?1:0}),t("c:majorTickMark","none"),t("c:minorTickMark","none"),t("c:tickLblPos","nextTo"),r("c:spPr",{},m(null)),t("c:crossAx",y),t("c:crosses","autoZero"),t("c:crossBetween",R(e.type)||n?"midCat":"between"),a.major_unit===void 0?"":t("c:majorUnit",a.major_unit))}const ne={bottom:"b",top:"t",left:"l",right:"r"};function re(e,n){const c=n.width,o=n.height,{plot:a}=D(e,c,o),s=i=>Number(i.toFixed(5));return r("c:layout",{},r("c:manualLayout",{},t("c:layoutTarget","inner"),t("c:xMode","edge"),t("c:yMode","edge"),t("c:x",s(a.x/c)),t("c:y",s(a.y/o)),t("c:w",s(a.width/c)),t("c:h",s(a.height/o))))}export function chartSpaceXml(e,n){const c=e.title!==void 0&&e.title!==""?e.title:void 0,o=e.font_size??d.fontSize,a=Math.round((e.title_size??o*d.titleScale)*100);return H+r("c:chartSpace",{"xmlns:c":V,"xmlns:a":B,"xmlns:r":W},t("c:date1904",!1),t("c:roundedCorners",!1),r("c:chart",{},c===void 0?"":r("c:title",{},r("c:tx",{},n.titleRef===void 0?G(c,a):r("c:strRef",{},`<c:f>${l(n.titleRef)}</c:f>`,S([c]))),t("c:overlay",!1)),t("c:autoTitleDeleted",c===void 0),r("c:plotArea",{},n.frame?re(e,n.frame):r("c:layout"),ee(e,n.refs),te(e)),e.legend===void 0?"":r("c:legend",{},t("c:legendPos",ne[e.legend]),t("c:overlay",e.legend_overlay===!0)),t("c:plotVisOnly",n.plotVisible??!0),t("c:dispBlanksAs","gap")),n.frameless===!0?r("c:spPr",{},r("a:noFill"),r("a:ln",{},r("a:noFill"))):"",F(o,e.font_color??"dk1"),n.tail??"")}
2
+ import{lumOf as X}from"@allyhub/ooxml/brightness";import{accentOf as j,CHART_DEFAULTS as d,chartDrawing as D,groupingOf as z,hasLines as E,hasMarkers as U,isArea as R,isBar as C,isHorizontal as T,isLine as P,isRound as h,isScatter as k,labelPositionOf as V,variesOf as w}from"./chart.js";const B="http://schemas.openxmlformats.org/drawingml/2006/chart",W="http://schemas.openxmlformats.org/drawingml/2006/main",H="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Z=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3
+ `,y="2118791784",x="2140495176",q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},K=e=>{const n=e.charCodeAt(0);return n<32&&n!==9&&n!==10&&n!==13||n===65534||n===65535},l=e=>Array.from(e,n=>K(n)?"":q[n]??n).join("");function r(e,n={},...c){const o=Object.entries(n).filter(([,s])=>s!==void 0).map(([s,i])=>` ${s}="${l(typeof i=="boolean"?i?"1":"0":String(i))}"`).join(""),a=c.join("");return a===""?`<${e}${o}/>`:`<${e}${o}>${a}</${e}>`}const Y=e=>{if(typeof e=="string")return r("a:schemeClr",{val:e});if("rgb"in e)return r("a:srgbClr",{val:e.rgb.replace("#","").toUpperCase()});const{lumMod:n,lumOff:c}=X(e.brightness);return r("a:schemeClr",{val:e.theme_color},t("a:lumMod",n),...c===void 0?[]:[t("a:lumOff",c)])},p=e=>e===null?r("a:noFill"):r("a:solidFill",{},Y(e)),t=(e,n)=>r(e,{val:typeof n=="boolean"?n?1:0:n}),m=(e,n)=>r("a:ln",n===void 0?{}:{w:Math.round(n*12700)},p(e)),F=(e,n)=>r("c:txPr",{},r("a:bodyPr"),r("a:lstStyle"),r("a:p",{},r("a:pPr",{},r("a:defRPr",e===void 0?{}:{sz:Math.round(e*100)},n===void 0?"":p(n))),r("a:endParaRPr",{lang:"en-US"}))),S=e=>r("c:strCache",{},t("c:ptCount",e.length),...e.map((n,c)=>r("c:pt",{idx:c},`<c:v>${l(n)}</c:v>`))),A=(e,n)=>r("c:numCache",{},`<c:formatCode>${l(e??"General")}</c:formatCode>`,t("c:ptCount",n.length),...n.flatMap((c,o)=>c===null?[]:[r("c:pt",{idx:o},`<c:v>${String(c)}</c:v>`)])),J=(e,n)=>r("c:tx",{},n===void 0?`<c:v>${l(e.name)}</c:v>`:r("c:strRef",{},`<c:f>${l(n)}</c:f>`,S([e.name]))),Q=(e,n)=>n===void 0?"":r("c:xVal",{},r("c:numRef",{},`<c:f>${l(n)}</c:f>`,A("General",e.x??[])));function ee(e,n,c,o){const a=n.color??j(c),s=h(e.type),i=k(e.type),u=P(e.type)||i,g=U(e.type),N=u?r("c:spPr",{},E(e.type)?m(a,n.line_width??d.lineWidth):r("a:ln",{w:19050},p(null))):r("c:spPr",{},p(a),s?m("lt1",1):""),_=o.categories;return r("c:ser",{},t("c:idx",c),t("c:order",c),J(n,o.name(c)),N,C(e.type)?t("c:invertIfNegative",!1):"",u?r("c:marker",{},t("c:symbol",g?"circle":"none"),g?t("c:size",n.marker_size??d.marker):"",g?r("c:spPr",{},p(a),m(a)):""):"",...w(e)&&!u&&!R(e.type)?e.categories.map((v,f)=>r("c:dPt",{},t("c:idx",f),C(e.type)?t("c:invertIfNegative",!1):"",t("c:bubble3D",!1),r("c:spPr",{},p(e.category_colors?.[f]??j(f)),s?m("lt1",1):""))):[],i?Q(n,o.x?.(c)):_===void 0?"":r("c:cat",{},o.numeric===!0?r("c:numRef",{},`<c:f>${l(_)}</c:f>`,A("General",e.categories.map(v=>{const f=Number(v);return v===""||!Number.isFinite(f)?null:f}))):r("c:strRef",{},`<c:f>${l(_)}</c:f>`,S(e.categories))),r(i?"c:yVal":"c:val",{},r("c:numRef",{},`<c:f>${l(o.values(c))}</c:f>`,A(n.number_format,n.values))),u?t("c:smooth",n.smooth===!0||e.type==="scatter-smooth"):"")}function b(e){const n=e.labels;if(!n)return"";const c=n.show_percentage===!0,o=V(e);return r("c:dLbls",{},n.number_format===void 0?"":r("c:numFmt",{formatCode:n.number_format,sourceLinked:0}),n.size===void 0&&n.color===void 0&&!h(e.type)?"":F(n.size,n.color??(h(e.type)?"lt1":void 0)),o===void 0?"":t("c:dLblPos",o),t("c:showLegendKey",!1),t("c:showVal",n.show_value??!c),t("c:showCatName",n.show_category_name===!0),t("c:showSerName",n.show_series_name===!0),t("c:showPercent",c),t("c:showBubbleSize",!1))}function te(e,n){const c=e.series.map((s,i)=>ee(e,s,i,n)).join(""),o=z(e.type),a=t("c:axId",y)+t("c:axId",x);if(h(e.type)){const s=e.type==="pie";return r(s?"c:pieChart":"c:doughnutChart",{},t("c:varyColors",w(e)),c,b(e),t("c:firstSliceAng",0),s?"":t("c:holeSize",e.hole_size??50))}if(k(e.type))return r("c:scatterChart",{},t("c:scatterStyle","lineMarker"),t("c:varyColors",!1),c,b(e),a);if(C(e.type)){const s=o!=="clustered";return r("c:barChart",{},t("c:barDir",T(e.type)?"bar":"col"),t("c:grouping",o),t("c:varyColors",w(e)),c,b(e),t("c:gapWidth",e.gap_width??150),e.overlap!==void 0||s?t("c:overlap",e.overlap??100):"",a)}return r(P(e.type)?"c:lineChart":"c:areaChart",{},t("c:grouping",o),t("c:varyColors",!1),c,b(e),P(e.type)?t("c:marker",!0):"",a)}const L=e=>r("c:scaling",{},t("c:orientation",e.reverse_order===!0?"maxMin":"minMax"),e.maximum_scale===void 0?"":t("c:max",e.maximum_scale),e.minimum_scale===void 0?"":t("c:min",e.minimum_scale)),O=e=>r("c:spPr",{},m(e.line_color??{rgb:d.axisLine},d.gridWidth)),M=e=>e.has_major_gridlines===!0?r("c:majorGridlines",{},r("c:spPr",{},m(e.gridline_color??{rgb:d.gridline},d.gridWidth))):"",I=(e,n)=>r("c:rich",{},r("a:bodyPr"),r("a:lstStyle"),r("a:p",{},r("a:pPr",{},r("a:defRPr",{sz:n,b:0})),r("a:r",{},r("a:rPr",{lang:"en-US",sz:n,b:0}),`<a:t>${l(e)}</a:t>`))),$=(e,n)=>e===void 0||e===""?"":r("c:title",{},r("c:tx",{},I(e,n)),t("c:overlay",!1));function ne(e){if(h(e.type))return"";const n=k(e.type),c=T(e.type),o=e.category_axis??{},a={has_major_gridlines:!0,...e.value_axis},s=z(e.type)==="percentStacked",i=a.number_format??(s?"0%":e.series[0]?.number_format??"General"),u=Math.round((e.font_size??d.fontSize)*100);return(n?r("c:valAx",{},t("c:axId",y),L(o),t("c:delete",o.visible===!1),t("c:axPos","b"),M(o),$(o.title,u),r("c:numFmt",{formatCode:o.number_format??"General",sourceLinked:o.number_format===void 0?1:0}),t("c:majorTickMark","none"),t("c:minorTickMark","none"),t("c:tickLblPos","nextTo"),O(o),t("c:crossAx",x),t("c:crosses","autoZero"),t("c:crossBetween","midCat"),o.major_unit===void 0?"":t("c:majorUnit",o.major_unit)):r("c:catAx",{},t("c:axId",y),L(o),t("c:delete",o.visible===!1),t("c:axPos",c?"l":"b"),M(o),$(o.title,u),r("c:numFmt",{formatCode:"General",sourceLinked:0}),t("c:majorTickMark","none"),t("c:minorTickMark","none"),t("c:tickLblPos","nextTo"),O(o),t("c:crossAx",x),t("c:crosses","autoZero"),t("c:auto",!0),t("c:lblAlgn","ctr"),t("c:lblOffset",100),t("c:noMultiLvlLbl",!1)))+r("c:valAx",{},t("c:axId",x),L(a),t("c:delete",a.visible===!1),t("c:axPos",c?"b":"l"),M(a),$(a.title,u),r("c:numFmt",{formatCode:i,sourceLinked:a.number_format===void 0&&!s?1:0}),t("c:majorTickMark","none"),t("c:minorTickMark","none"),t("c:tickLblPos","nextTo"),r("c:spPr",{},m(null)),t("c:crossAx",y),t("c:crosses","autoZero"),t("c:crossBetween",R(e.type)||n?"midCat":"between"),a.major_unit===void 0?"":t("c:majorUnit",a.major_unit))}const re={bottom:"b",top:"t",left:"l",right:"r"};function oe(e,n){const c=n.width,o=n.height,{plot:a}=D(e,c,o),s=i=>Number(i.toFixed(5));return r("c:layout",{},r("c:manualLayout",{},t("c:layoutTarget","inner"),t("c:xMode","edge"),t("c:yMode","edge"),t("c:x",s(a.x/c)),t("c:y",s(a.y/o)),t("c:w",s(a.width/c)),t("c:h",s(a.height/o))))}const G=r("c:spPr",{},r("a:noFill"),r("a:ln",{},r("a:noFill")));export function chartSpaceXml(e,n){const c=e.title!==void 0&&e.title!==""?e.title:void 0,o=e.font_size??d.fontSize,a=Math.round((e.title_size??o*d.titleScale)*100);return Z+r("c:chartSpace",{"xmlns:c":B,"xmlns:a":W,"xmlns:r":H},t("c:date1904",!1),t("c:roundedCorners",!1),r("c:chart",{},c===void 0?"":r("c:title",{},r("c:tx",{},n.titleRef===void 0?I(c,a):r("c:strRef",{},`<c:f>${l(n.titleRef)}</c:f>`,S([c]))),t("c:overlay",!1)),t("c:autoTitleDeleted",c===void 0),r("c:plotArea",{},n.frame?oe(e,n.frame):r("c:layout"),te(e,n.refs),ne(e),n.frameless===!0?G:""),e.legend===void 0?"":r("c:legend",{},t("c:legendPos",re[e.legend]),t("c:overlay",e.legend_overlay===!0)),t("c:plotVisOnly",n.plotVisible??!0),t("c:dispBlanksAs","gap")),n.frameless===!0?G:"",F(o,e.font_color??"dk1"),n.tail??"")}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{format as Ct,isValidFormat as Lt}from"numfmt";import{brightened as jt}from"@allyhub/ooxml/brightness";export const themeColor=(t,s=0)=>s===0?t:{theme_color:t,brightness:s},themeColorOf=t=>typeof t=="string"?t:"theme_color"in t?t.theme_color:void 0;export function colorRgb(t,s){return typeof t=="string"?s[t]:"rgb"in t?t.rgb:jt(s[t.theme_color],t.brightness)}export const CHART_DEFAULTS={fontSize:12,titleScale:1.2,gapWidth:150,holeSize:50,margin:6,gridline:"#D9D9D9",axisLine:"#BFBFBF",letter:.55,lineWidth:2.25,gridWidth:.75,marker:5};const wt=["accent1","accent2","accent3","accent4","accent5","accent6"];export const accentOf=t=>wt[t%wt.length]??"accent1",isBar=t=>t.startsWith("column")||t.startsWith("bar"),isHorizontal=t=>t.startsWith("bar"),isLine=t=>t.startsWith("line"),isArea=t=>t.startsWith("area"),isRound=t=>t==="pie"||t==="doughnut",isScatter=t=>t.startsWith("scatter"),hasLines=t=>!isScatter(t)||t!=="scatter",hasMarkers=t=>t==="line-markers"||t==="scatter"||t==="scatter-lines",groupingOf=t=>t.endsWith("-100")?"percentStacked":t.endsWith("-stacked")?"stacked":isBar(t)?"clustered":"standard";export function labelPositionsOf(t){return isArea(t)||t==="doughnut"?[]:t==="pie"?["bestFit","outEnd","inEnd","ctr"]:isLine(t)||isScatter(t)?["t","b","l","r","ctr"]:groupingOf(t)==="clustered"?["outEnd","inEnd","ctr","inBase"]:["inEnd","ctr","inBase"]}export function labelPositionOf(t){const s=labelPositionsOf(t.type),l=t.labels?.position;if(l!==void 0&&s.includes(l))return l;if(s.length!==0)return t.type==="pie"?"ctr":isLine(t.type)||isScatter(t.type)?"t":groupingOf(t.type)==="clustered"?"outEnd":"ctr"}export const variesOf=t=>t.vary_by_categories??isRound(t.type);export function formatValue(t,s="General"){return s==="General"||!Lt(s)?String(Number(t.toPrecision(10))):Ct(s,t)}const Ft=[1,2,5,10];export function chartScale(t,s,l,r,e={}){const h=t>0&&(s-t)/s<.16666666666666666?t:Math.min(t,0),a=s<=0&&t<0?0:s,o=e.minimum_scale??h,j=e.maximum_scale??a,b=j>o?j-o:1,F=Math.max(1,Math.floor(l/r)),w=b/F,P=10**Math.floor(Math.log10(w)),O=e.major_unit??(Ft.find(E=>E*P>=w)??10)*P,B=(E,C)=>Number((C(Number((E/O).toFixed(9)))*O).toPrecision(12)),Z=a>0?a+b*.05:a===h?b:a,g=e.maximum_scale??B(Z,Math.ceil),R=h<0?h-b*.05:h,W=e.minimum_scale??B(R,Math.floor),N=[],x=Math.round((g-W)/O);for(let E=0;E<=x;E++)N.push(Number((W+E*O).toPrecision(12)));return{min:W,max:g,major:O,ticks:N}}const it=(t,s)=>{let l=0;for(const r of t)l+=(r.codePointAt(0)??0)>11903?1:CHART_DEFAULTS.letter;return l*s},m=t=>String(Number(t.toFixed(3)));function $t(t){const s=l=>t[Math.max(0,Math.min(t.length-1,l))]??[0,0];return t.map(([l,r],e)=>{if(e===0)return`M${m(l)} ${m(r)}`;const[h,a]=s(e-2),[o,j]=s(e-1),[b,F]=s(e+1),w=`${m(o+(l-h)/6)} ${m(j+(r-a)/6)}`,P=`${m(l-(b-o)/6)} ${m(r-(F-j)/6)}`;return`C${w} ${P} ${m(l)} ${m(r)}`}).join(" ")}const lt=t=>t.map(([s,l],r)=>`${r===0?"M":"L"}${m(s)} ${m(l)}`).join(" ");function Ot(t,s,l,r,e,h){const a=(F,w)=>`${m(t+F*Math.sin(w))} ${m(s-F*Math.cos(w))}`,o=h-e>=Math.PI*2?e+Math.PI*2-1e-4:h,j=o-e>Math.PI?1:0,b=`M${a(l,e)} A${m(l)} ${m(l)} 0 ${String(j)} 1 ${a(l,o)}`;return r<=0?`${b} L${m(t)} ${m(s)} Z`:`${b} L${a(r,o)} A${m(r)} ${m(r)} 0 ${String(j)} 0 ${a(r,e)} Z`}function vt(t,s,l,r){const e=r*1.5;return s!==void 0&&s!==""&&(t.bottom-=e),l!==void 0&&l!==""&&(t.left+=e),{x:t.left-e/2,y:t.bottom+e/2}}function kt(t,s,l,r,e,h,a){r!==void 0&&r!==""&&t.words.push({x:s.x+s.width/2,y:l.y,text:r,size:h,anchor:"middle",color:a}),e!==void 0&&e!==""&&t.words.push({x:l.x,y:s.y+s.height/2,text:e,size:h,anchor:"middle",color:a,rotate:-90})}const ht=(t,s,l,r,e)=>{const h=t.labels;if(!h)return"";const a=isRound(t.type),o=[];return h.show_series_name&&o.push(r.name),h.show_category_name&&o.push(e),(h.show_value??!(h.show_percentage??!1))&&o.push(formatValue(s,h.number_format??r.number_format)),h.show_percentage&&a&&o.push(formatValue(l,h.number_format??"0%")),o.join(", ")};function Bt(t,s,l,r,e){const h=CHART_DEFAULTS,a=t.category_axis??{},o=t.value_axis??{},j=vt(l,a.title,o.title,r),b=t.series.map(c=>c.values.flatMap(($,H)=>{const I=c.x?.[H]??(c.x?null:H+1);return I===null||$===null?[]:[[I,$]]})),F=b.flat().map(c=>c[0]),w=b.flat().map(c=>c[1]),P=c=>c.length>0?Math.min(...c):0,O=c=>c.length>0?Math.max(...c):1,B=o.number_format??t.series[0]?.number_format??"General",Z=a.number_format??"General",g=r*.5,R=chartScale(P(w),O(w),l.bottom-l.top,r*2.4,o),W=o.visible===!1?0:Math.max(0,...R.ticks.map(c=>it(formatValue(c,B),r)))+g,N=a.visible===!1?0:r*1.2+g,x={x:l.left+W,y:l.top,width:l.right-l.left-W,height:l.bottom-l.top-N};s.plot=x,kt(s,x,j,a.title,o.title,r,e);const E=chartScale(P(F),O(F),x.width,r*5,a),C=chartScale(P(w),O(w),x.height,r*2.4,o),z=c=>x.x+(Math.min(E.max,Math.max(E.min,c))-E.min)/(E.max-E.min)*x.width,D=c=>x.y+x.height-(Math.min(C.max,Math.max(C.min,c))-C.min)/(C.max-C.min)*x.height;for(const c of C.ticks){const $=D(c);(o.has_major_gridlines??!0)&&s.grid.push({d:`M${m(x.x)} ${m($)} H${m(x.x+x.width)}`,color:o.gridline_color??{rgb:h.gridline},width:h.gridWidth}),o.visible!==!1&&s.words.push({x:x.x-g,y:$,text:formatValue(c,B),size:r,anchor:"end",color:e})}for(const c of E.ticks){const $=z(c);a.has_major_gridlines===!0&&s.grid.push({d:`M${m($)} ${m(x.y)} V${m(x.y+x.height)}`,color:a.gridline_color??{rgb:h.gridline},width:h.gridWidth}),a.visible!==!1&&s.words.push({x:$,y:x.y+x.height+g+r*.6,text:formatValue(c,Z),size:r,anchor:"middle",color:e})}s.axes.push({d:`M${m(x.x)} ${m(D(Math.max(C.min,Math.min(C.max,0))))} H${m(x.x+x.width)}`,color:a.line_color??{rgb:h.axisLine},width:h.gridWidth}),t.series.forEach((c,$)=>{const H=c.color??accentOf($),I=(b[$]??[]).map(([U,Y])=>[z(U),D(Y)]);if(I.length!==0&&(hasLines(t.type)&&s.lines.push({d:t.type==="scatter-smooth"||c.smooth===!0?$t(I):lt(I),color:H,width:c.line_width??h.lineWidth,series:$}),hasMarkers(t.type)))for(const[U,Y]of I)s.dots.push({x:U,y:Y,r:(c.marker_size??h.marker)/2,color:H})})}export function chartDrawing(t,s,l){const r=CHART_DEFAULTS,e=t.font_size??r.fontSize,h=t.font_color??"dk1",a={grid:[],shapes:[],boxes:[],lines:[],axes:[],dots:[],keys:[],words:[],plot:{x:0,y:0,width:0,height:0}},o={left:r.margin,top:r.margin,right:s-r.margin,bottom:l-r.margin};if(t.title!==void 0&&t.title!==""){const n=t.title_size??e*r.titleScale;a.words.push({x:s/2,y:o.top+n*.7,text:t.title,size:n,anchor:"middle",color:h}),o.top+=n*1.6}const j=isRound(t.type),b=variesOf(t),F=(n,d)=>b?t.category_colors?.[d]??accentOf(d):t.series[n]?.color??accentOf(n);if(t.legend!==void 0){const n=b?t.categories:t.series.map(p=>p.name),d=e*.6,f=e*.4,i=e*1.5,y=n.map(p=>d+f+it(p,e)),S=(p,M,_)=>{a.keys.push({x:M,y:_-d/2,width:d,height:d,color:b?t.category_colors?.[p]??accentOf(p):t.series[p]?.color??accentOf(p),series:b?0:p,category:b?p:0}),a.words.push({x:M+d+f,y:_,text:n[p]??"",size:e,anchor:"start",color:h})};if(t.legend==="top"||t.legend==="bottom"){const p=y.reduce((A,v)=>A+v,0)+e*(n.length-1),M=t.legend==="top"?o.top+i/2:o.bottom-i/2;let _=(s-p)/2;n.forEach((A,v)=>{S(v,_,M),_+=(y[v]??0)+e}),t.legend_overlay!==!0&&(t.legend==="top"?o.top+=i:o.bottom-=i)}else{const p=Math.max(0,...y),M=t.legend==="left"?o.left:o.right-p,_=(o.top+o.bottom-i*n.length)/2+i/2;n.forEach((A,v)=>{S(v,M,_+v*i)}),t.legend_overlay!==!0&&(t.legend==="left"?o.left+=p+e:o.right-=p+e)}}const w=t.labels,P=w?.size??e,O=w?.color??h,B=(n,d,f,i,y=O)=>{f!==""&&a.words.push({x:n,y:d,text:f,size:P,anchor:i,color:y})};if(j){const n=t.series[0],d=(n?.values??[]).map(_=>Math.max(0,_??0)),f=d.reduce((_,A)=>_+A,0),i=Math.max(0,Math.min(o.right-o.left,o.bottom-o.top)/2),y=(o.left+o.right)/2,S=(o.top+o.bottom)/2,p=t.type==="doughnut"?i*((t.hole_size??r.holeSize)/100):0;a.plot={x:y-i,y:S-i,width:i*2,height:i*2};let M=0;return d.forEach((_,A)=>{const v=f>0?_/f:0,V=M+v*Math.PI*2;if(v>0){a.shapes.push({d:Ot(y,S,i,p,M,V),color:"lt1",width:1,fill:F(0,A),series:0,category:A});const L=(M+V)/2,k=p>0?(i+p)/2:labelPositionOf(t)==="inEnd"?i*.85:i*.6;n&&B(y+k*Math.sin(L),S-k*Math.cos(L),ht(t,_,v,n,t.categories[A]??""),"middle",w?.color??"lt1")}M=V}),a}if(isScatter(t.type))return Bt(t,a,o,e,h),a;const Z=Math.max(1,t.categories.length),g=isHorizontal(t.type),R=groupingOf(t.type),W=R!=="clustered"&&R!=="standard",N=R==="percentStacked",x=t.series.map(n=>t.categories.map((d,f)=>n.values[f]??null)),E=t.categories.map((n,d)=>x.reduce((f,i)=>f+Math.abs(i[d]??0),0)),C=(n,d)=>{const f=x[n]?.[d];if(f==null)return null;const i=E[d]??0;return N?i>0?f/i:0:f};let z=0,D=0;if(t.categories.forEach((n,d)=>{let f=0,i=0;t.series.forEach((y,S)=>{const p=C(S,d)??0;W?p>=0?f+=p:i+=p:(f=Math.max(f,p),i=Math.min(i,p))}),D=Math.max(D,f),z=Math.min(z,i)}),!W){const n=x.flat().filter(d=>d!==null);n.length>0&&Math.min(...n)>0&&(z=Math.min(...n))}N&&(D=1,z=Math.min(z,0));const c=t.value_axis??{},$=t.category_axis??{},H=c.number_format??(N?"0%":t.series[0]?.number_format??"General"),I=g?o.right-o.left:o.bottom-o.top,U=g?e*5:e*2.4,Y=chartScale(z,D,I,U,{...c,...N?{maximum_scale:c.maximum_scale??1}:{}}),Wt=c.visible===!1?[]:Y.ticks.map(n=>formatValue(n,H)),Et=Math.max(0,...Wt.map(n=>it(n,e))),ot=$.visible!==!1,dt=ot?Math.max(0,...t.categories.map(n=>it(n,e))):0,T=e*.5,mt=g?c.title:$.title,ft=g?$.title:c.title,St=vt(o,mt,ft,e),u=g?{x:o.left+(ot?dt+T:0),y:o.top,width:0,height:o.bottom-o.top-(c.visible===!1?0:e*1.2+T)}:{x:o.left+(c.visible===!1?0:Et+T),y:o.top,width:0,height:o.bottom-o.top-(ot?e*1.2+T:0)};u.width=o.right-u.x,a.plot=u,kt(a,u,St,mt,ft,e,h);const G=chartScale(z,D,g?u.width:u.height,U,{...c,...N?{maximum_scale:c.maximum_scale??1}:{}}),ut=n=>(Math.min(G.max,Math.max(G.min,n))-G.min)/(G.max-G.min)*(g?u.width:u.height),q=n=>g?u.x+ut(n):u.y+u.height-ut(n),pt=isArea(t.type),gt=$.reverse_order===!0,xt=g?!gt:gt,at=(g?u.height:u.width)/Z,yt=pt?(g?u.height:u.width)/Math.max(1,Z-1):at,ct=n=>{const d=pt?n*yt:(n+.5)*at,f=g?u.height:u.width,i=xt?f-d:d;return(g?u.y:u.x)+i},Mt=q(Math.max(G.min,Math.min(G.max,0)));for(const n of G.ticks){const d=q(n);(c.has_major_gridlines??!0)&&a.grid.push({d:g?`M${m(d)} ${m(u.y)} V${m(u.y+u.height)}`:`M${m(u.x)} ${m(d)} H${m(u.x+u.width)}`,color:c.gridline_color??{rgb:r.gridline},width:r.gridWidth}),c.visible!==!1&&a.words.push(g?{x:d,y:u.y+u.height+T+e*.6,text:formatValue(n,H),size:e,anchor:"middle",color:h}:{x:u.x-T,y:d,text:formatValue(n,H),size:e,anchor:"end",color:h})}if(a.axes.push({d:g?`M${m(Mt)} ${m(u.y)} V${m(u.y+u.height)}`:`M${m(u.x)} ${m(Mt)} H${m(u.x+u.width)}`,color:$.line_color??{rgb:r.axisLine},width:r.gridWidth}),ot){const n=g?e*1.3:dt+e,d=Math.max(1,Math.ceil(n/Math.max(1,yt)));t.categories.forEach((f,i)=>{if(i%d!==0)return;const y=ct(i);a.words.push(g?{x:u.x-T,y,text:f,size:e,anchor:"end",color:h}:{x:y,y:u.y+u.height+T+e*.6,text:f,size:e,anchor:"middle",color:h})})}if(isBar(t.type)){const n=(t.gap_width??r.gapWidth)/100,d=W?1:t.series.length,f=W?1:(t.overlap??0)/100,i=at/(Math.max(1,d-(d-1)*f)+n),y=i*(1-f),S=i+y*(d-1);t.categories.forEach((p,M)=>{const _=ct(M);let A=0,v=0;t.series.forEach((V,L)=>{const k=C(L,M);if(k===null)return;const nt=W?k>=0?A:v:0,tt=nt+k;W&&(k>=0?A=tt:v=tt);const J=q(nt),K=q(tt),st=(W?_-i/2:_-S/2+L*y)+(g&&xt&&!W?S-i-2*L*y:0),Pt=g?{x:Math.min(J,K),y:st,width:Math.abs(K-J),height:i}:{x:st,y:Math.min(J,K),width:i,height:Math.abs(K-J)};if(a.boxes.push({...Pt,color:F(L,M),series:L,category:M}),!w)return;const _t=ht(t,x[L]?.[M]??0,0,V,t.categories[M]??""),rt=labelPositionOf(t),Q=P*.8,At=k>=0?1:-1,bt=(et,X)=>rt==="ctr"?(et+X)/2:rt==="inBase"?et+(X>et?Q:-Q):rt==="inEnd"?X-(X>et?Q:-Q):X+(X>=et?Q:-Q);g?B(bt(J,K),st+i/2,_t,rt==="outEnd"?At>0?"start":"end":"middle"):B(st+i/2,bt(J,K),_t,"middle")})})}else{const n=t.categories.map(()=>0),d=t.series.map((f,i)=>{const y=[],S=[];return t.categories.forEach((p,M)=>{const _=C(i,M);if(_===null)return;const A=W?n[M]??0:0,v=A+_;W&&(n[M]=v);const V=ct(M),L=k=>g?[q(k),V]:[V,q(k)];if(y.push(L(v)),S.push(L(A)),isLine(t.type)&&w){const k=labelPositionOf(t),[nt,tt]=L(v);B(nt+(k==="r"?P:k==="l"?-P:0),tt+(k==="t"?-P:k==="b"?P:0),ht(t,x[i]?.[M]??0,0,f,t.categories[M]??""),k==="r"?"start":k==="l"?"end":"middle")}}),{series:f,s:i,points:y,base:S}});for(const{series:f,s:i,points:y,base:S}of d){const p=f.color??accentOf(i);if(isArea(t.type)&&y.length>0)a.shapes.push({d:`${lt([...y,...[...S].reverse()])} Z`,color:p,width:0,fill:p,series:i});else if(y.length>0&&(a.lines.push({d:f.smooth===!0?$t(y):lt(y),color:p,width:f.line_width??r.lineWidth,series:i}),hasMarkers(t.type)))for(const[M,_]of y)a.dots.push({x:M,y:_,r:(f.marker_size??r.marker)/2,color:p})}a.shapes.reverse()}return a}
2
+ import{format as Ct,isValidFormat as Lt}from"numfmt";import{brightened as jt}from"@allyhub/ooxml/brightness";export const themeColor=(t,s=0)=>s===0?t:{theme_color:t,brightness:s},themeColorOf=t=>typeof t=="string"?t:"theme_color"in t?t.theme_color:void 0;export function colorRgb(t,s){return typeof t=="string"?s[t]:"rgb"in t?t.rgb:jt(s[t.theme_color],t.brightness)}export const CHART_DEFAULTS={fontSize:12,titleScale:1.2,gapWidth:150,holeSize:50,margin:6,gridline:"#D9D9D9",axisLine:"#BFBFBF",letter:.55,lineWidth:2.25,gridWidth:.75,marker:5};const vt=["accent1","accent2","accent3","accent4","accent5","accent6"];export const accentOf=t=>vt[t%vt.length]??"accent1",isBar=t=>t.startsWith("column")||t.startsWith("bar"),isHorizontal=t=>t.startsWith("bar"),isLine=t=>t.startsWith("line"),isArea=t=>t.startsWith("area"),isRound=t=>t==="pie"||t==="doughnut",isScatter=t=>t.startsWith("scatter"),hasLines=t=>!isScatter(t)||t!=="scatter",hasMarkers=t=>t==="line-markers"||t==="scatter"||t==="scatter-lines",groupingOf=t=>t.endsWith("-100")?"percentStacked":t.endsWith("-stacked")?"stacked":isBar(t)?"clustered":"standard";export function labelPositionsOf(t){return isArea(t)||t==="doughnut"?[]:t==="pie"?["bestFit","outEnd","inEnd","ctr"]:isLine(t)||isScatter(t)?["t","b","l","r","ctr"]:groupingOf(t)==="clustered"?["outEnd","inEnd","ctr","inBase"]:["inEnd","ctr","inBase"]}export function labelPositionOf(t){const s=labelPositionsOf(t.type),l=t.labels?.position;if(l!==void 0&&s.includes(l))return l;if(s.length!==0)return t.type==="pie"?"ctr":isLine(t.type)||isScatter(t.type)?"t":groupingOf(t.type)==="clustered"?"outEnd":"ctr"}export const variesOf=t=>t.vary_by_categories??isRound(t.type);export function formatValue(t,s="General"){return s==="General"||!Lt(s)?String(Number(t.toPrecision(10))):Ct(s,t)}const Ft=[1,2,5,10];export function chartScale(t,s,l,r,e={}){const h=t>0&&(s-t)/s<.16666666666666666?t:Math.min(t,0),a=s<=0&&t<0?0:s,o=e.minimum_scale??h,j=e.maximum_scale??a,b=j>o?j-o:1,F=Math.max(1,Math.floor(l/r)),w=b/F,P=10**Math.floor(Math.log10(w)),O=e.major_unit??(Ft.find(E=>E*P>=w)??10)*P,B=(E,C)=>Number((C(Number((E/O).toFixed(9)))*O).toPrecision(12)),Z=a>0?a+b*.05:a===h?b:a,g=e.maximum_scale??B(Z,Math.ceil),R=h<0?h-b*.05:h,W=e.minimum_scale??B(R,Math.floor),N=[],x=Math.round((g-W)/O);for(let E=0;E<=x;E++)N.push(Number((W+E*O).toPrecision(12)));return{min:W,max:g,major:O,ticks:N}}const it=(t,s)=>{let l=0;for(const r of t)l+=(r.codePointAt(0)??0)>11903?1:CHART_DEFAULTS.letter;return l*s},m=t=>String(Number(t.toFixed(3)));function kt(t){const s=l=>t[Math.max(0,Math.min(t.length-1,l))]??[0,0];return t.map(([l,r],e)=>{if(e===0)return`M${m(l)} ${m(r)}`;const[h,a]=s(e-2),[o,j]=s(e-1),[b,F]=s(e+1),w=`${m(o+(l-h)/6)} ${m(j+(r-a)/6)}`,P=`${m(l-(b-o)/6)} ${m(r-(F-j)/6)}`;return`C${w} ${P} ${m(l)} ${m(r)}`}).join(" ")}const lt=t=>t.map(([s,l],r)=>`${r===0?"M":"L"}${m(s)} ${m(l)}`).join(" ");function Ot(t,s,l,r,e,h){const a=(F,w)=>`${m(t+F*Math.sin(w))} ${m(s-F*Math.cos(w))}`,o=h-e>=Math.PI*2?e+Math.PI*2-1e-4:h,j=o-e>Math.PI?1:0,b=`M${a(l,e)} A${m(l)} ${m(l)} 0 ${String(j)} 1 ${a(l,o)}`;return r<=0?`${b} L${m(t)} ${m(s)} Z`:`${b} L${a(r,o)} A${m(r)} ${m(r)} 0 ${String(j)} 0 ${a(r,e)} Z`}function Wt(t,s,l,r){const e=r*1.5;return s!==void 0&&s!==""&&(t.bottom-=e),l!==void 0&&l!==""&&(t.left+=e),{x:t.left-e/2,y:t.bottom+e/2}}function Et(t,s,l,r,e,h,a){r!==void 0&&r!==""&&t.words.push({x:s.x+s.width/2,y:l.y,text:r,size:h,anchor:"middle",color:a}),e!==void 0&&e!==""&&t.words.push({x:l.x,y:s.y+s.height/2,text:e,size:h,anchor:"middle",color:a,rotate:-90})}const ht=(t,s,l,r,e)=>{const h=t.labels;if(!h)return"";const a=isRound(t.type),o=[];return h.show_series_name&&o.push(r.name),h.show_category_name&&o.push(e),(h.show_value??!(h.show_percentage??!1))&&o.push(formatValue(s,h.number_format??r.number_format)),h.show_percentage&&a&&o.push(formatValue(l,h.number_format??"0%")),o.join(", ")};function Bt(t,s,l,r,e){const h=CHART_DEFAULTS,a=t.category_axis??{},o=t.value_axis??{},j=Wt(l,a.title,o.title,r),b=t.series.map(c=>c.values.flatMap(($,H)=>{const I=c.x?.[H]??(c.x?null:H+1);return I===null||$===null?[]:[[I,$]]})),F=b.flat().map(c=>c[0]),w=b.flat().map(c=>c[1]),P=c=>c.length>0?Math.min(...c):0,O=c=>c.length>0?Math.max(...c):1,B=o.number_format??t.series[0]?.number_format??"General",Z=a.number_format??"General",g=r*.5,R=chartScale(P(w),O(w),l.bottom-l.top,r*2.4,o),W=o.visible===!1?0:Math.max(0,...R.ticks.map(c=>it(formatValue(c,B),r)))+g,N=a.visible===!1?0:r*1.2+g,x={x:l.left+W,y:l.top,width:l.right-l.left-W,height:l.bottom-l.top-N};s.plot=x,Et(s,x,j,a.title,o.title,r,e);const E=chartScale(P(F),O(F),x.width,r*5,a),C=chartScale(P(w),O(w),x.height,r*2.4,o),z=c=>x.x+(Math.min(E.max,Math.max(E.min,c))-E.min)/(E.max-E.min)*x.width,D=c=>x.y+x.height-(Math.min(C.max,Math.max(C.min,c))-C.min)/(C.max-C.min)*x.height;for(const c of C.ticks){const $=D(c);(o.has_major_gridlines??!0)&&s.grid.push({d:`M${m(x.x)} ${m($)} H${m(x.x+x.width)}`,color:o.gridline_color??{rgb:h.gridline},width:h.gridWidth}),o.visible!==!1&&s.words.push({x:x.x-g,y:$,text:formatValue(c,B),size:r,anchor:"end",color:e})}for(const c of E.ticks){const $=z(c);a.has_major_gridlines===!0&&s.grid.push({d:`M${m($)} ${m(x.y)} V${m(x.y+x.height)}`,color:a.gridline_color??{rgb:h.gridline},width:h.gridWidth}),a.visible!==!1&&s.words.push({x:$,y:x.y+x.height+g+r*.6,text:formatValue(c,Z),size:r,anchor:"middle",color:e})}s.axes.push({d:`M${m(x.x)} ${m(D(Math.max(C.min,Math.min(C.max,0))))} H${m(x.x+x.width)}`,color:a.line_color??{rgb:h.axisLine},width:h.gridWidth}),t.series.forEach((c,$)=>{const H=c.color??accentOf($),I=(b[$]??[]).map(([U,Y])=>[z(U),D(Y)]);if(I.length!==0&&(hasLines(t.type)&&s.lines.push({d:t.type==="scatter-smooth"||c.smooth===!0?kt(I):lt(I),color:H,width:c.line_width??h.lineWidth,series:$}),hasMarkers(t.type)))for(const[U,Y]of I)s.dots.push({x:U,y:Y,r:(c.marker_size??h.marker)/2,color:H})})}export function chartDrawing(t,s,l){const r=CHART_DEFAULTS,e=t.font_size??r.fontSize,h=t.font_color??"dk1",a={grid:[],shapes:[],boxes:[],lines:[],axes:[],dots:[],keys:[],words:[],plot:{x:0,y:0,width:0,height:0}},o={left:r.margin,top:r.margin,right:s-r.margin,bottom:l-r.margin};if(t.title!==void 0&&t.title!==""){const n=t.title_size??e*r.titleScale;a.words.push({x:s/2,y:o.top+n*.7,text:t.title,size:n,anchor:"middle",color:h}),o.top+=n*1.6}const j=isRound(t.type),b=variesOf(t),F=(n,d)=>b?t.category_colors?.[d]??accentOf(d):t.series[n]?.color??accentOf(n);if(t.legend!==void 0){const n=b?t.categories:t.series.map(p=>p.name),d=e*.6,f=e*.4,i=e*1.5,y=n.map(p=>d+f+it(p,e)),S=(p,M,_)=>{a.keys.push({x:M,y:_-d/2,width:d,height:d,color:b?t.category_colors?.[p]??accentOf(p):t.series[p]?.color??accentOf(p),series:b?0:p,category:b?p:0}),a.words.push({x:M+d+f,y:_,text:n[p]??"",size:e,anchor:"start",color:h})};if(t.legend==="top"||t.legend==="bottom"){const p=y.reduce((A,v)=>A+v,0)+e*(n.length-1),M=t.legend==="top"?o.top+i/2:o.bottom-i/2;let _=(s-p)/2;n.forEach((A,v)=>{S(v,_,M),_+=(y[v]??0)+e}),t.legend_overlay!==!0&&(t.legend==="top"?o.top+=i:o.bottom-=i)}else{const p=Math.max(0,...y),M=t.legend==="left"?o.left:o.right-p,_=(o.top+o.bottom-i*n.length)/2+i/2;n.forEach((A,v)=>{S(v,M,_+v*i)}),t.legend_overlay!==!0&&(t.legend==="left"?o.left+=p+e:o.right-=p+e)}}const w=t.labels,P=w?.size??e,O=w?.color??h,B=(n,d,f,i,y=O)=>{f!==""&&a.words.push({x:n,y:d,text:f,size:P,anchor:i,color:y})};if(j){const n=t.series[0],d=(n?.values??[]).map(_=>Math.max(0,_??0)),f=d.reduce((_,A)=>_+A,0),i=Math.max(0,Math.min(o.right-o.left,o.bottom-o.top)/2),y=(o.left+o.right)/2,S=(o.top+o.bottom)/2,p=t.type==="doughnut"?i*((t.hole_size??r.holeSize)/100):0;a.plot={x:y-i,y:S-i,width:i*2,height:i*2};let M=0;return d.forEach((_,A)=>{const v=f>0?_/f:0,V=M+v*Math.PI*2;if(v>0){a.shapes.push({d:Ot(y,S,i,p,M,V),color:"lt1",width:1,fill:F(0,A),series:0,category:A});const L=(M+V)/2,k=p>0?(i+p)/2:labelPositionOf(t)==="inEnd"?i*.85:i*.6;n&&B(y+k*Math.sin(L),S-k*Math.cos(L),ht(t,_,v,n,t.categories[A]??""),"middle",w?.color??"lt1")}M=V}),a}if(isScatter(t.type))return Bt(t,a,o,e,h),a;const Z=Math.max(1,t.categories.length),g=isHorizontal(t.type),R=groupingOf(t.type),W=R!=="clustered"&&R!=="standard",N=R==="percentStacked",x=t.series.map(n=>t.categories.map((d,f)=>n.values[f]??null)),E=t.categories.map((n,d)=>x.reduce((f,i)=>f+Math.abs(i[d]??0),0)),C=(n,d)=>{const f=x[n]?.[d];if(f==null)return null;const i=E[d]??0;return N?i>0?f/i:0:f};let z=0,D=0;if(t.categories.forEach((n,d)=>{let f=0,i=0;t.series.forEach((y,S)=>{const p=C(S,d)??0;W?p>=0?f+=p:i+=p:(f=Math.max(f,p),i=Math.min(i,p))}),D=Math.max(D,f),z=Math.min(z,i)}),!W){const n=x.flat().filter(d=>d!==null);n.length>0&&Math.min(...n)>0&&(z=Math.min(...n))}N&&(D=1,z=Math.min(z,0));const c=t.value_axis??{},$=t.category_axis??{},H=c.number_format??(N?"0%":t.series[0]?.number_format??"General"),I=g?o.right-o.left:o.bottom-o.top,U=g?e*5:e*2.4,Y=chartScale(z,D,I,U,{...c,...N?{maximum_scale:c.maximum_scale??1}:{}}),dt=c.visible===!1?[]:Y.ticks.map(n=>formatValue(n,H)),mt=Math.max(0,...dt.map(n=>it(n,e))),ot=$.visible!==!1,ft=ot?Math.max(0,...t.categories.map(n=>it(n,e))):0,T=e*.5,ut=g?c.title:$.title,pt=g?$.title:c.title,St=Wt(o,ut,pt,e),u=g?{x:o.left+(ot?ft+T:0),y:o.top,width:0,height:o.bottom-o.top-(c.visible===!1?0:e*1.2+T)}:{x:o.left+(c.visible===!1?0:mt+T),y:o.top,width:0,height:o.bottom-o.top-(ot?e*1.2+T:0)};u.width=o.right-u.x-(g&&dt.length>0?mt/2:0),a.plot=u,Et(a,u,St,ut,pt,e,h);const G=chartScale(z,D,g?u.width:u.height,U,{...c,...N?{maximum_scale:c.maximum_scale??1}:{}}),gt=n=>(Math.min(G.max,Math.max(G.min,n))-G.min)/(G.max-G.min)*(g?u.width:u.height),q=n=>g?u.x+gt(n):u.y+u.height-gt(n),xt=isArea(t.type),yt=$.reverse_order===!0,Mt=g?!yt:yt,at=(g?u.height:u.width)/Z,_t=xt?(g?u.height:u.width)/Math.max(1,Z-1):at,ct=n=>{const d=xt?n*_t:(n+.5)*at,f=g?u.height:u.width,i=Mt?f-d:d;return(g?u.y:u.x)+i},bt=q(Math.max(G.min,Math.min(G.max,0)));for(const n of G.ticks){const d=q(n);(c.has_major_gridlines??!0)&&a.grid.push({d:g?`M${m(d)} ${m(u.y)} V${m(u.y+u.height)}`:`M${m(u.x)} ${m(d)} H${m(u.x+u.width)}`,color:c.gridline_color??{rgb:r.gridline},width:r.gridWidth}),c.visible!==!1&&a.words.push(g?{x:d,y:u.y+u.height+T+e*.6,text:formatValue(n,H),size:e,anchor:"middle",color:h}:{x:u.x-T,y:d,text:formatValue(n,H),size:e,anchor:"end",color:h})}if(a.axes.push({d:g?`M${m(bt)} ${m(u.y)} V${m(u.y+u.height)}`:`M${m(u.x)} ${m(bt)} H${m(u.x+u.width)}`,color:$.line_color??{rgb:r.axisLine},width:r.gridWidth}),ot){const n=g?e*1.3:ft+e,d=Math.max(1,Math.ceil(n/Math.max(1,_t)));t.categories.forEach((f,i)=>{if(i%d!==0)return;const y=ct(i);a.words.push(g?{x:u.x-T,y,text:f,size:e,anchor:"end",color:h}:{x:y,y:u.y+u.height+T+e*.6,text:f,size:e,anchor:"middle",color:h})})}if(isBar(t.type)){const n=(t.gap_width??r.gapWidth)/100,d=W?1:t.series.length,f=W?1:(t.overlap??0)/100,i=at/(Math.max(1,d-(d-1)*f)+n),y=i*(1-f),S=i+y*(d-1);t.categories.forEach((p,M)=>{const _=ct(M);let A=0,v=0;t.series.forEach((V,L)=>{const k=C(L,M);if(k===null)return;const nt=W?k>=0?A:v:0,tt=nt+k;W&&(k>=0?A=tt:v=tt);const J=q(nt),K=q(tt),st=(W?_-i/2:_-S/2+L*y)+(g&&Mt&&!W?S-i-2*L*y:0),Pt=g?{x:Math.min(J,K),y:st,width:Math.abs(K-J),height:i}:{x:st,y:Math.min(J,K),width:i,height:Math.abs(K-J)};if(a.boxes.push({...Pt,color:F(L,M),series:L,category:M}),!w)return;const wt=ht(t,x[L]?.[M]??0,0,V,t.categories[M]??""),rt=labelPositionOf(t),Q=P*.8,At=k>=0?1:-1,$t=(et,X)=>rt==="ctr"?(et+X)/2:rt==="inBase"?et+(X>et?Q:-Q):rt==="inEnd"?X-(X>et?Q:-Q):X+(X>=et?Q:-Q);g?B($t(J,K),st+i/2,wt,rt==="outEnd"?At>0?"start":"end":"middle"):B(st+i/2,$t(J,K),wt,"middle")})})}else{const n=t.categories.map(()=>0),d=t.series.map((f,i)=>{const y=[],S=[];return t.categories.forEach((p,M)=>{const _=C(i,M);if(_===null)return;const A=W?n[M]??0:0,v=A+_;W&&(n[M]=v);const V=ct(M),L=k=>g?[q(k),V]:[V,q(k)];if(y.push(L(v)),S.push(L(A)),isLine(t.type)&&w){const k=labelPositionOf(t),[nt,tt]=L(v);B(nt+(k==="r"?P:k==="l"?-P:0),tt+(k==="t"?-P:k==="b"?P:0),ht(t,x[i]?.[M]??0,0,f,t.categories[M]??""),k==="r"?"start":k==="l"?"end":"middle")}}),{series:f,s:i,points:y,base:S}});for(const{series:f,s:i,points:y,base:S}of d){const p=f.color??accentOf(i);if(isArea(t.type)&&y.length>0)a.shapes.push({d:`${lt([...y,...[...S].reverse()])} Z`,color:p,width:0,fill:p,series:i});else if(y.length>0&&(a.lines.push({d:f.smooth===!0?kt(y):lt(y),color:p,width:f.line_width??r.lineWidth,series:i}),hasMarkers(t.type)))for(const[M,_]of y)a.dots.push({x:M,y:_,r:(f.marker_size??r.marker)/2,color:p})}a.shapes.reverse()}return a}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/chart",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{createHash as h}from"node:crypto";import{mkdir as d,readdir as w,readFile as l}from"node:fs/promises";import{dirname as c,join as a,relative as y,sep as b}from"node:path";import{fileURLToPath as u}from"node:url";import j from"write-file-atomic";import{CACHE_DIR as v}from"@allyhub/formats";const f=6;async function m(r){const t=[];for(const e of await w(r,{withFileTypes:!0}).catch(()=>[])){const o=a(r,e.name);e.isDirectory()?t.push(...await m(o)):e.isFile()&&/\.(js|mjs|json)$/.test(e.name)&&t.push(o)}return t.sort()}let p;function g(){return p??=(async()=>{const r=h("sha256"),t=[c(u(import.meta.url)),c(u(import.meta.resolve("@allyhub/build"))),c(u(import.meta.resolve("@allyhub/video-core"))),c(u(import.meta.resolve("@allyhub/stage")))];for(const e of t)for(const o of await m(e))r.update(`${y(e,o).split(b).join("/")}\0`),r.update(await l(o));return r.digest("hex")})(),p}export async function checkerId(r){return h("sha256").update(JSON.stringify([f,await g(),r.runtimeSha,r.samples,...r.gpu===!0?["gpu"]:[],...process.env.ALLYHUB_HTML_IN_CANVAS==="0"?["no html-in-canvas"]:[],...r.consoleLimit===void 0?[]:[`console:${String(r.consoleLimit)}`]])).digest("hex")}export const cacheKey=(r,t,e,o)=>`${r}\0${t}\0${e}\0${o}`;export class OutputCache{dir;checker;before;now=new Map;constructor(t,e,o){this.dir=t,this.checker=e,this.before=o}static async open(t,e){const o=a(t,v);let n={};try{const i=JSON.parse(await l(a(o,"outputs.json"),"utf8"));i.version===f&&i.checker===e&&(n=i.outputs)}catch{}return new OutputCache(o,e,n)}get(t){return Object.hasOwn(this.before,t)?this.before[t]:void 0}set(t,e){this.now.set(t,e)}async save(t){const e={};for(const[i,s]of Object.entries(this.before))t.has(i.split("\0")[0]??"")&&(e[i]=s);for(const[i,s]of this.now)e[i]=s;const o={version:f,checker:this.checker,outputs:Object.fromEntries(Object.entries(e).sort((i,s)=>i[0]<s[0]?-1:1))};await d(this.dir,{recursive:!0});const n=a(this.dir,"outputs.json");await j(n,JSON.stringify(o))}}
2
+ import{createHash as d}from"node:crypto";import{mkdir as p,readdir as w,readFile as l}from"node:fs/promises";import{dirname as c,join as u,relative as y,sep as b}from"node:path";import{fileURLToPath as a}from"node:url";import k from"write-file-atomic";import{kindBuildOf as g}from"@allyhub/build";import{CACHE_DIR as j}from"@allyhub/formats";const f=6;async function h(s){const t=[];for(const e of await w(s,{withFileTypes:!0}).catch(()=>[])){const i=u(s,e.name);e.isDirectory()?t.push(...await h(i)):e.isFile()&&/\.(js|mjs|json)$/.test(e.name)&&t.push(i)}return t.sort()}const m=new Map;async function v(s){const t=new Set;for(const e of s){if(e.build===void 0)continue;const i=await g(e)?.catch(()=>{});if(!i)continue;const r=o=>c(o.includes("://")?a(o):o);t.add(r(e.build));for(const o of i.checks??[])t.add(r(o))}return[...t].sort()}function O(s){const t=JSON.stringify(s.map(i=>i.build??null));let e=m.get(t);return e??=(async()=>{const i=d("sha256"),r=[c(a(import.meta.url)),c(a(import.meta.resolve("@allyhub/build"))),c(a(import.meta.resolve("@allyhub/piece"))),c(a(import.meta.resolve("@allyhub/diagnostics"))),c(a(import.meta.resolve("@allyhub/stage"))),...await v(s)];for(const o of r)for(const n of await h(o))i.update(`${y(o,n).split(b).join("/")}\0`),i.update(await l(n));return i.digest("hex")})(),m.set(t,e),e}export async function checkerId(s){return d("sha256").update(JSON.stringify([f,await O(s.kinds),s.runtimeSha,s.samples,...s.gpu===!0?["gpu"]:[],...process.env.ALLYHUB_HTML_IN_CANVAS==="0"?["no html-in-canvas"]:[],...s.consoleLimit===void 0?[]:[`console:${String(s.consoleLimit)}`]])).digest("hex")}export const cacheKey=(s,t,e,i)=>`${s}\0${t}\0${e}\0${i}`;export class OutputCache{dir;checker;before;now=new Map;constructor(t,e,i){this.dir=t,this.checker=e,this.before=i}static async open(t,e){const i=u(t,j);let r={};try{const o=JSON.parse(await l(u(i,"outputs.json"),"utf8"));o.version===f&&o.checker===e&&(r=o.outputs)}catch{}return new OutputCache(i,e,r)}get(t){return Object.hasOwn(this.before,t)?this.before[t]:void 0}set(t,e){this.now.set(t,e)}async save(t){const e={};for(const[o,n]of Object.entries(this.before))t.has(o.split("\0")[0]??"")&&(e[o]=n);for(const[o,n]of this.now)e[o]=n;const i={version:f,checker:this.checker,outputs:Object.fromEntries(Object.entries(e).sort((o,n)=>o[0]<n[0]?-1:1))};await p(this.dir,{recursive:!0});const r=u(this.dir,"outputs.json");await k(r,JSON.stringify(i))}}
@@ -1,4 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{deckFacts as ge,STANDARD_FONTS as we}from"@allyhub/slides-core";import{createHash as te}from"node:crypto";import{join as se}from"node:path";import{uniformInt as oe}from"pure-rand/distribution/uniformInt";import{xoroshiro128plus as xe}from"pure-rand/generator/xoroshiro128plus";import{CACHE_DIR as be}from"@allyhub/formats";import{buildModule as ye}from"@allyhub/model/build";import{ffmpegOf as $e,ffmpegRuns as ke,postPlaces as Se,postProblems as Me,readPng as ne}from"@allyhub/render";import{comboIdOf as G,comboKey as N,comboMatches as ve,countLevels as Fe,coverCombos as Pe,cutThroughout as ie,pieceNamed as re,problem as I,CONSOLE_LIMIT as Le}from"@allyhub/video-core";import{OutputCache as De,cacheKey as Ae,checkerId as Ce}from"./cache.js";import{consoleOf as Ee,baseDigest as _e,outputDigest as ae,dedupe as ce,StuckError as me,CheckSession as Ke,runtimeDigest as Te,extraCombos as Ie,measureDeck as Oe}from"@allyhub/project";import{matrixFacts as je,measuredFacts as Re,screenFidelity as Be,flatFrames as He,cutSeams as Ne,flashFrames as ze,stillPicture as Ge}from"@allyhub/measure";import{generatedFact as Ue,generatedPagedFact as Ye,mismatchFacts as qe}from"./generated.js";import{StretchLoudness as fe,estimatePlan as Je,loadedPlan as Qe,planProblems as Ve}from"./plans.js";import{sceneryLayerFacts as We,withBakes as Xe}from"./scenery.js";export function checkStats(s,t,o,e=0){const i=t.length;return{loaded:t,reused:o,outputs:{total:s,checked:i,reused:Math.max(0,s-i-e),covered:e}}}const Ze=new Set(["text-time","words-on-screen","speech-on-screen","text-covered","flat-frames","still-picture"]);export const plural=(s,t)=>`${String(s)} ${t}${s===1?"":"s"}`;const de=s=>xe(te("sha256").update(s).digest().readInt32BE(0));export function samplesFor(s,t,o,e){const i=new Set(s.slice(0,e)),a=de(o),m=Math.floor(t*30);for(let f=0;i.size<Math.min(e,m)&&f<e*20;f++)i.add(oe(a,0,m-1)/30);return[...i]}export function shuffled(s,t){const o=[...s],e=de(t);for(let i=o.length-1;i>0;i--){const a=oe(e,0,i),m=o[i],f=o[a];m===void 0||f===void 0||(o[i]=f,o[a]=m)}return o}export const RASTER_NOISE=3,RASTER_SPECKS=8;export function frameDifference(s,t){const o=ne(s),e=ne(t);if(o.width!==e.width||o.height!==e.height)return{max:255,pixels:Math.max(o.width*o.height,1)};let i=0,a=0;for(let m=0;m<o.data.length;m+=4){let f=0;for(let d=0;d<4;d++)f=Math.max(f,Math.abs((o.data[m+d]??0)-(e.data[m+d]??0)));f>RASTER_NOISE&&a++,f>i&&(i=f)}return{max:i,pixels:a}}export const CUT_RECHECK={most:48,every:2};export async function recheckCuts(s,t,o,e){const i=ie(t);if(i.length===0)return t;const a=CUT_RECHECK.every/o,m=new Set;for(const d of i){const r=e.find(w=>w.key===d.part);if(!r)continue;const l=t.moments.filter(w=>w.part===d.part).map(w=>w.t).sort((w,P)=>w-P),h=d.moments[0]??d.t,g=d.moments.at(-1)??d.t,F=Math.max(r.start,l.filter(w=>w<h).at(-1)??r.start),O=Math.min(r.end-1/o,l.find(w=>w>g)??r.end),C=Math.min(CUT_RECHECK.most,Math.floor((O-F)/a)+1),R=C>1?(O-F)/(C-1):0;for(let w=0;w<C;w++){const P=Math.round((F+R*w)*o)/o;l.includes(P)||m.add(P)}}if(m.size===0)return t;const f=await s.measure([...m].sort((d,r)=>d-r));return{...t,moments:[...t.moments,...f.moments].sort((d,r)=>d.t-r.t)}}export function deckFontProblems(s,t){const o=new Set(we);return(s.deck?.fonts??[]).filter(e=>e.drawn===!1).map(e=>I("AK-L006",o.has(e.name)?`"${e.name}" (the deck's ${e.where==="theme"?"theme":"text"}) is not a font the stage has: its text is drawn in another font here, though every PowerPoint, Keynote and Google Slides has it. Bring its files (a stylesheet in allyhub.config.ts \`fonts\`) to draw it here.`:`"${e.name}" (the deck's ${e.where==="theme"?"theme":"text"}) has no file in the project: its text is drawn in another font here, and the PowerPoint file cannot carry it, so it shows another font wherever it is opened. Bring its files (a @fontsource package's stylesheet, or one in assets/fonts, in allyhub.config.ts \`fonts\`), or name a font the stage has.`,{piece:t.piece,output:t.output,combo:t.combo,format:t.format}))}export function offFrameProblems(s,t){const o=e=>`${e.toFixed(2)} s`;return ie(s).map(e=>{const i=e.moments[0]??0,a=e.moments.at(-1)??i,m=e.moments.length===1?`at ${o(i)}, the one moment measured that shows it`:`at all ${String(e.moments.length)} moments measured that show it (${i.toFixed(2)}–${o(a)})`,f=e.worst.edges.map(h=>`${String(h.px)} pixels past the ${h.side} edge`).join(" and "),d=`"${e.text.text.length>40?`${e.text.text.slice(0,40)}…`:e.text.text}"`,r={piece:t.piece,output:t.output,combo:t.combo,format:t.format,part:e.part},l=s.deck;if(l){const h=g=>Math.round(g/l.pxPerPt*10)/10;return I("AK-L002",`Text goes off the slide: the slide's edge cuts ${d} of ${e.text.layer} on slide ${e.part} at every build that shows it; its letters reach ${e.worst.edges.map(g=>`${String(h(g.px))} pt past the ${g.side} edge`).join(" and ")} (${String(Math.round(e.worst.share*100))}% of them outside). Move or size its shape inside the slide, or give it less text. allyhub inspect --kind text-off-slide has it.`,{...r,level:"error"})}return I("AK-L002",`Text goes off the frame: the frame cuts ${d} ${m}; its letters reach ${f} at ${t.format} (${String(Math.round(e.worst.share*100))}% of them outside). Move it inside the frame or make it smaller (fitText in a component); text that is part of a picture the frame crops on purpose (a mocked interface) goes inside an element with data-ak-picture. allyhub inspect --kind text-off-frame has each moment.`,{...r,t:e.t,where:{bbox:e.worst.glyphs}})})}const le=s=>te("sha256").update(s).digest("hex");export async function determinism(s,t,o){const e=s.timeline,i=samplesFor(e.parts.map(r=>r.still),e.duration,t,o),a=new Map;for(const r of[...i].sort((l,h)=>l-h))a.set(r,await s.shot(r));const m=[];let f=0;for(const r of shuffled(i,`${t}:shuffle`)){const l=a.get(r),h=await s.shot(r);if(!l||le(h)===le(l))continue;const g=frameDifference(l,h);g.pixels>RASTER_SPECKS&&(m.push(r),f=Math.max(f,g.max))}if(m.length===0)return[];m.sort((r,l)=>r-l);const d=[...new Set(m.flatMap(r=>e.parts.filter(l=>r>=l.start&&r<l.end).map(l=>l.key)))];return[I("AK-D002",`${plural(m.length,"moment")} drew differently in order and out of order (${m.map(r=>`${r.toFixed(2)}s`).join(", ")}; pixels differ by up to ${String(f)} levels). render must depend only on t, not on state left by an earlier frame.`,{piece:s.target.piece,output:s.target.output,combo:s.target.combo,format:s.target.format,t:m[0]??0,...d.length===1&&d[0]?{part:d[0]}:{}})]}export function summarize(s){const t=Fe(s);return{status:t.errors>0?"failed":t.warnings>0?"warnings":"passed",...t}}function et(s,t){const o=a=>[a.piece??"",a.output??"",a.combo?N(a.combo):"",a.format??"",a.part??"",a.where?.file??"",String(a.where?.line??0).padStart(6,"0"),a.code].join("\0"),e=o(s),i=o(t);return e<i?-1:e>i?1:0}class tt{spent=new Map;on=process.env.ALLYHUB_CHECK_TIMINGS==="1";async time(t,o){if(!this.on)return o();const e=performance.now();try{return await o()}finally{this.spent.set(t,(this.spent.get(t)??0)+(performance.now()-e)/1e3)}}report(){if(!this.on)return;const t=[...this.spent].sort((o,e)=>e[1]-o[1]);process.stderr.write(`Check timings (s): ${t.map(([o,e])=>`${o} ${e.toFixed(2)}`).join(", ")}
3
- `)}}function st(s){const t=s.options,o=t.post,e=typeof o=="object"&&o!==null?o.filter:void 0;return{transparent:t.transparent===!0,deliverable:t.deliverable!==!1,...typeof t.maxDuration=="number"?{maxDuration:t.maxDuration}:{},...typeof e=="string"?{post:e}:{}}}async function ot(s){let t;try{t=await $e(s===void 0?{}:{ffmpeg:s})}catch(o){return{missing:`the pinned ffmpeg could not be had: ${(o instanceof Error?o.message:String(o)).split(`
4
- `)[0]??""}`}}return await ke(t)?{ffmpeg:t}:{missing:`${t} does not run`}}export async function runCheck(s){const t=new tt,o=s.session??await t.time("prepare (discover, metadata, bundle)",()=>Ke.open({root:s.dir,...s.buildDir===void 0?{}:{buildDir:s.buildDir},...s.gpu===void 0?{}:{gpu:s.gpu},...s.consoleLimit===void 0?{}:{consoleLimit:s.consoleLimit}}));try{const e=o.prepared,i=s.samples??12,a=o.consoleLimit,m=await Te(),f=await De.open(e.root,await Ce({runtimeSha:m,samples:i,gpu:o.gpu,...a===Le?{}:{consoleLimit:a}}));let d;const r=()=>d??=ot(s.ffmpeg),l=[],h=[...e.problems],g=[],F=[],O=[],C=[];let R=0,w=0;const P=[];let L;const ue=e.pieces.filter(n=>s.piece===void 0||re({id:n.id,path:n.place},s.piece));for(const n of ue){if(!e.bundle?.chunks.entries[n.id.replaceAll("/","__")])continue;const M=st(n),E=n.kind,j=n.format,Y=await _e(e,n,m);g.push(...je(n));const q=new Set,B=[...n.combos.filter(p=>!s.combos?.length||s.combos.some(u=>ve(p,u,G(n.matrix,p)))),...Ie(n,s.combos)],pe=new Set(n.matrix?Pe(n.matrix.space,n.dims,B):B.keys()),_=[],J=p=>{O.push(p);for(const u of p.reads?.media??[])q.add(u.path);p.timeline&&_.push({...p,timeline:p.timeline})};let z=!1;const he=(p,u,K)=>{if(s.fresh===!0)return;const c=f.get(p),$=c?.result.reads,D=c?.result.timeline;return!c||!$||!D||K&&!c.sampled||c.factless===!0&&s.facts!==!1?void 0:ae(e,Y,n,u,$)===c.digest?c:void 0};for(const[p,u]of B.entries()){const K=G(n.matrix,u),c={piece:n.id,output:E,combo:u,format:j},$=N(u);if(F.push({...c,...K?{id:K}:{},key:$}),!pe.has(p)){w++;continue}const D=n.kind==="video"&&!z,A=Ae(n.id,E,$,j),b=he(A,u,D);if(b){R++,b.sampled&&(z=!0),h.push(...b.problems),g.push(...b.facts),l.push({version:c,log:b.console}),J({...b.result,digest:b.digest}),f.set(A,b);continue}C.push(`${n.id}/${E}/${$}/${j}`);const x=await t.time("load (mount, stills)",()=>o.open(n,c));try{const k=x.summary,T=[],v=[...k?.facts??[]];let Q=!1;try{if(k){const S=k.timeline;try{const y=await t.time("layout measure",()=>n.kind==="slides"?Oe(o,n,x,{fresh:s.fresh===!0}):x.measure());if(T.push(...offFrameProblems(y.deck?y:await t.time("recheck cut text",()=>recheckCuts(x,y,S.fps,S.parts)),c)),T.push(...deckFontProblems(y,c)),y.deck)v.push(...ge(y.deck,{width:y.width,height:y.height},{piece:c.piece,output:c.output,combo:c.combo,format:c.format}));else{const ee=await r();v.push(...await t.time("layout facts",()=>Re(y,S,c,{root:e.root,media:e.media,ffmpeg:"ffmpeg"in ee?ee.ffmpeg:"ffmpeg"},S.profile?.label)))}}catch(y){if(y instanceof me)throw y}s.facts!==!1&&v.push(...await t.time("scenery facts",()=>We(x)))}k&&D&&(z=!0,Q=!0,T.push(...await t.time("determinism",()=>determinism(x,`${n.id}:${E}:${j}`,i))),s.facts!==!1&&!M.transparent&&v.push(...await t.time("flat frames",()=>He(x))),s.facts!==!1&&v.push(...await t.time("still picture",()=>Ge(x))),s.facts!==!1&&(v.push(...await t.time("cut seams",()=>Ne(x))),M.transparent||v.push(...await t.time("flash",()=>ze(x))))),k&&s.facts!==!1&&v.push(...(await t.time("scenery screen fidelity",()=>Be(x))).facts)}catch(S){if(!(S instanceof me))throw S;S.kept||T.push(I("AK-P003",S.message,{piece:c.piece,output:c.output,combo:c.combo,format:c.format}))}T.push(...await x.problems());const V=ce(T);h.push(...V);const W=M.deliverable?v:v.filter(S=>!Ze.has(S.kind));g.push(...W);const X=await x.console();l.push({version:c,log:X});const H=k?ae(e,Y,n,u,k.reads):void 0,Z={...c,...k?{timeline:k.timeline,reads:k.reads,text:k.text}:{}};J({...Z,...H?{digest:H}:{}}),H&&f.set(A,{digest:H,result:Z,problems:V,facts:W,sampled:Q,...s.facts===!1?{factless:!0}:{},console:X})}finally{await x.close()}}if(n.kind==="video"){const p=Se(M.post,_.map(u=>u.timeline));if(p.length>0){const u=await r();"ffmpeg"in u&&h.push(...await t.time("post chains",()=>Me(p,{piece:n.id,output:E},u.ffmpeg)))}}if(n.kind!=="video")for(const p of _){const u=Ye(p,e.media);u&&g.push(u)}else for(const p of B){const u=G(n.matrix,p),K=N(p),c=_.find(b=>N(b.combo)===K),$=c?Qe(c,u):Je(n,p,u,E,j,_);if(!$)continue;if(P.push($),n.matrix&&L===void 0){const b=await r();if("ffmpeg"in b){const x=new fe(e.root,b.ffmpeg);await x.open(),L=x}else L={missing:"ffmpeg",why:`${b.missing} (set ALLYHUB_FFMPEG to an ffmpeg, or let the runtime manager fetch its pinned one)`}}const D=await t.time("plans (loudness, music)",()=>Ve($,{...M.maxDuration===void 0?{}:{maxDuration:M.maxDuration},fps:c?.timeline.fps??_[0]?.timeline.fps??30,media:e.media,local:b=>o.mediaPath(b),...n.matrix&&L?{loudness:L}:{}}));h.push(...D.problems),g.push(...D.facts);const A=Ue($,e.media);A&&g.push(A)}g.push(...qe({piece:n.id},q,e.media))}for(const n of e.items)if(n.kind==="model"&&!(s.piece!==void 0&&!re({id:n.dir,path:n.dir},s.piece)))try{await t.time("models",()=>ye(se(e.root,n.entry),{root:e.root,cache:se(e.root,be,"model"),log:()=>{}}))}catch(M){h.push(I("AK-B010",`${n.entry} does not build: ${M instanceof Error?M.message:String(M)}`,{piece:n.dir,where:{file:n.entry}}))}L instanceof fe&&await L.save(),await f.save(new Set(e.pieces.map(n=>n.id)));const U=ce(h).sort(et);return t.report(),{targets:F,check:summarize(U),problems:U,facts:await Xe(g,e.root),results:O,plans:P,stats:checkStats(F.length,C,R,w),console:Ee(a,l)}}finally{s.session||await o.close()}}
2
+ import{itemFiles as Me,listsFile as Ce,within as Le}from"@allyhub/formats";import{createHash as ae}from"node:crypto";import{uniformInt as fe}from"pure-rand/distribution/uniformInt";import{xoroshiro128plus as Pe}from"pure-rand/generator/xoroshiro128plus";import{fileProblems as Ie,listedFileProblems as ve,inTime as de,itemKindBuild as N}from"@allyhub/build";import{readPng as me}from"@allyhub/measure";import{countLevels as De,problem as ue}from"@allyhub/diagnostics";import{comboIdOf as j,comboKey as le,comboMatches as Ee,coverCombos as Fe,pieceNamed as B,CONSOLE_LIMIT as Oe}from"@allyhub/piece";import{OutputCache as Ke,cacheKey as _e,checkerId as Ae}from"./cache.js";import{consoleOf as Te,baseDigest as Ne,outputDigest as pe,dedupe as he,StuckError as we,CheckSession as je,runtimeDigest as Be,extraCombos as He,measureParts as Re,kindsNeeded as ze}from"@allyhub/project";export function checkStats(e,s,i,t=0){const o=s.length;return{loaded:s,reused:i,outputs:{total:e,checked:o,reused:Math.max(0,e-o-t),covered:t}}}export const plural=(e,s)=>`${String(e)} ${s}${e===1?"":"s"}`;const be=e=>Pe(ae("sha256").update(e).digest().readInt32BE(0));export function samplesFor(e,s,i,t){const o=new Set(e.slice(0,t)),r=be(i),c=Math.floor(s*30);for(let a=0;o.size<Math.min(t,c)&&a<t*20;a++)o.add(fe(r,0,c-1)/30);return[...o]}export function shuffled(e,s){const i=[...e],t=be(s);for(let o=i.length-1;o>0;o--){const r=fe(t,0,o),c=i[o],a=i[r];c===void 0||a===void 0||(i[o]=a,i[r]=c)}return i}export const RASTER_NOISE=3,RASTER_SPECKS=8;export function frameDifference(e,s){const i=me(e),t=me(s);if(i.width!==t.width||i.height!==t.height)return{max:255,pixels:Math.max(i.width*i.height,1)};let o=0,r=0;for(let c=0;c<i.data.length;c+=4){let a=0;for(let p=0;p<4;p++)a=Math.max(a,Math.abs((i.data[c+p]??0)-(t.data[c+p]??0)));a>RASTER_NOISE&&r++,a>o&&(o=a)}return{max:o,pixels:r}}const ge=e=>ae("sha256").update(e).digest("hex");export async function determinism(e,s,i){const t=e.timeline,o=samplesFor(t.parts.map(f=>f.still),t.duration,s,i),r=new Map;for(const f of[...o].sort((m,k)=>m-k))r.set(f,await e.shot(f));const c=[];let a=0;for(const f of shuffled(o,`${s}:shuffle`)){const m=r.get(f),k=await e.shot(f);if(!m||ge(k)===ge(m))continue;const S=frameDifference(m,k);S.pixels>RASTER_SPECKS&&(c.push(f),a=Math.max(a,S.max))}if(c.length===0)return[];c.sort((f,m)=>f-m);const p=[...new Set(c.flatMap(f=>t.parts.filter(m=>f>=m.start&&f<m.end).map(m=>m.key)))];return[ue("AK-D002",`${plural(c.length,"moment")} drew differently in order and out of order (${c.map(f=>`${f.toFixed(2)}s`).join(", ")}; pixels differ by up to ${String(a)} levels). render must depend only on t, not on state left by an earlier frame.`,{piece:e.target.piece,output:e.target.output,combo:e.target.combo,format:e.target.format,t:c[0]??0,...p.length===1&&p[0]?{part:p[0]}:{}})]}function Ge(e,s){const i=e.piece===void 0?void 0:s.pieces.find(o=>o.id===e.piece)?.place??e.piece,t=e.where?.file;return s.items.filter(o=>o.id===i||t!==void 0&&Ce(Me(o),t))}export function askedProblems(e,s){return e.problems.filter(i=>{if(s===void 0)return!0;const t=Ge(i,e);return t.length===0||t.some(o=>B({id:o.id,path:o.entry},s))})}export function summarize(e){const s=De(e);return{status:s.errors>0?"failed":s.warnings>0?"warnings":"passed",...s}}function Ue(e,s){const i=r=>[r.piece??"",r.output??"",r.combo?le(r.combo):"",r.format??"",r.part??"",r.where?.file??"",String(r.where?.line??0).padStart(6,"0"),r.code].join("\0"),t=i(e),o=i(s);return t<o?-1:t>o?1:0}class Ye{spent=new Map;on=process.env.ALLYHUB_CHECK_TIMINGS==="1";async time(s,i){if(!this.on)return i();const t=performance.now();try{return await i()}finally{this.spent.set(s,(this.spent.get(s)??0)+(performance.now()-t)/1e3)}}report(){if(!this.on)return;const s=[...this.spent].sort((i,t)=>t[1]-i[1]);process.stderr.write(`Check timings (s): ${s.map(([i,t])=>`${i} ${t.toFixed(2)}`).join(", ")}
3
+ `)}}async function qe(e){const s=[],i=new Set;for(const t of e){const o=await N(e,{kind:t.id});!o?.layers||i.has(o)||(i.add(o),s.push(o.layers))}return s}export async function runCheck(e){const s=new Ye,i=e.session??await s.time("prepare (discover, metadata, bundle)",()=>je.open({root:e.dir,kinds:ze(e.kinds),...e.buildDir===void 0?{}:{buildDir:e.buildDir},...e.gpu===void 0?{}:{gpu:e.gpu},...e.consoleLimit===void 0?{}:{consoleLimit:e.consoleLimit}}));try{const t=i.prepared,o=e.samples??12,r=i.consoleLimit,c=await Be(),a=await Ke.open(t.root,await Ae({kinds:t.kinds,runtimeSha:c,samples:o,gpu:i.gpu,...r===Oe?{}:{consoleLimit:r}})),p=e.facts!==!1,f=await qe(t.kinds),m=[],k=[...askedProblems(t,e.piece),...e.files===void 0?[]:await Ie(t.root,t.files.filter(n=>e.piece===void 0||Le(n,e.piece.replace(/^\.\//u,"").replace(/\/+$/u,""))),t.items,e.files),...e.files===void 0||e.piece!==void 0?[]:await ve(t.root,t.files,t.kinds,e.files)];let S=[];const K=[],H=[],R=[];let z=0,G=0;const U=[],ke=t.pieces.filter(n=>e.piece===void 0||B({id:n.id,path:n.place},e.piece));for(const n of ke){if(!t.bundle?.chunks.entries[n.id.replaceAll("/","__")])continue;const w=n.kind,M=n.format,q=await Ne(t,n,c),J=async y=>{const $={problems:[],facts:[]},W=new Set,v=[...n.combos.filter(u=>!e.combos?.length||e.combos.some(h=>Ee(u,h,j(n.matrix,u)))),...He(n,e.combos)],Se=new Set(n.matrix?Fe(n.matrix.space,n.dims,v):v.keys()),X=[],Z=u=>{H.push(u);for(const h of u.reads?.media??[])W.add(h.path);u.timeline&&X.push({...u,timeline:u.timeline})};let T=!1;const $e=(u,h,D)=>{if(e.fresh===!0)return;const d=a.get(u),C=d?.result.reads,E=d?.result.timeline;return!d||!C||!E||D&&!d.sampled||d.factless===!0&&p?void 0:pe(t,q,n,h,C)===d.digest?d:void 0};for(const[u,h]of v.entries()){const D=j(n.matrix,h),d={piece:n.id,output:w,combo:h,format:M},C=le(h);if(K.push({...d,...D?{id:D}:{},key:C}),!Se.has(u)){G++;continue}const E=de(n,t.kinds)&&!T,F=_e(n.id,w,C,M),x=$e(F,h,E);if(x){z++,x.sampled&&(T=!0),$.problems.push(...x.problems),$.facts.push(...x.facts),m.push({version:d,log:x.console}),Z({...x.result,digest:x.digest}),a.set(F,x);continue}R.push(`${n.id}/${w}/${C}/${M}`);const b=await s.time("load (mount, stills)",()=>i.open(n,d));try{const g=b.summary,L=[],P=[...g?.facts??[]],ee={problems:L,facts:P},te={target:d,layout:()=>s.time("layout measure",()=>de(n,t.kinds)?b.measure():Re(i,n,b,{fresh:e.fresh===!0}))};let ne=!1;try{if(g){try{await y.layout?.(b,ee,te)}catch(l){if(l instanceof we)throw l}if(p)for(const l of f){const I=l.facts?.bind(l);I&&P.push(...await s.time("layers' facts",()=>I(b)))}}if(g&&E&&(T=!0,ne=!0,L.push(...await s.time("determinism",()=>determinism(b,`${n.id}:${w}:${M}`,o))),await y.timing?.(b,ee,te)),g&&p)for(const l of f){const I=l.readBack?.bind(l);I&&P.push(...await s.time("layers read back",()=>I(b)))}}catch(l){if(!(l instanceof we))throw l;l.kept||L.push(ue("AK-P003",l.message,{piece:d.piece,output:d.output,combo:d.combo,format:d.format}))}L.push(...await b.problems());const ie=he(L);$.problems.push(...ie);const se=y.keep?.bind(y),oe=se?P.filter(l=>se(l)):P;$.facts.push(...oe);const re=await b.console();m.push({version:d,log:re});const O=g?pe(t,q,n,h,g.reads):void 0,ce={...d,...g?{timeline:g.timeline,reads:g.reads}:{}};Z({...ce,...O?{digest:O}:{}}),O&&a.set(F,{digest:O,result:ce,problems:ie,facts:oe,sampled:ne,...p?{}:{factless:!0},console:re})}finally{await b.close()}}return{...$,loaded:X,combos:v.map(u=>{const h=j(n.matrix,u);return{combo:u,...h===void 0?{}:{id:h}}}),media:W}},Q=await N(t.kinds,n),xe={root:t.root,piece:n,prepared:t,facts:p,...e.ffmpeg===void 0?{}:{ffmpeg:e.ffmpeg},mediaPath:y=>i.mediaPath(y),time:(y,$)=>s.time(y,$),versions:J},V=Q?.checkPiece?.bind(Q),A=V?await V(xe):await J({});k.push(...A.problems),S.push(...A.facts),U.push(...A.wholes??[])}for(const n of t.items){const w=await N(t.kinds,n);if(!w?.check||e.piece!==void 0&&!B({id:n.id,path:n.entry},e.piece))continue;const M=w.check.bind(w);k.push(...await s.time("items' own checks",()=>M(n,{root:t.root})))}await a.save(new Set(t.pieces.map(n=>n.id)));const Y=he(k).sort(Ue);for(const n of f){const w=n.current?.bind(n);w&&(S=await w(S,{root:t.root}))}s.report();const ye=new Set(t.pieces.map(n=>n.place)),_={};for(const n of t.items)ye.has(n.id)||(_[n.kind]=(_[n.kind]??0)+1);return{targets:K,items:_,check:summarize(Y),problems:Y,facts:S,results:H,wholes:U,stats:checkStats(K.length,R,z,G),console:Te(r,m)}}finally{e.session||await i.close()}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{CUT_RECHECK,RASTER_NOISE,RASTER_SPECKS,checkStats,determinism,frameDifference,offFrameProblems,recheckCuts,runCheck,samplesFor,shuffled,summarize}from"./check.js";export{OutputCache,cacheKey,checkerId}from"./cache.js";export{BAKE_INDEX,bakeFact,readBakeIndex,sceneryLayerFacts,withBakes}from"./scenery.js";export{StretchLoudness,estimatePlan,loadedPlan,planProblems}from"./plans.js";export{generatedFact,generatedPagedFact,mismatchFacts,secondsOf}from"./generated.js";
2
+ export{RASTER_NOISE,askedProblems,RASTER_SPECKS,checkStats,determinism,frameDifference,runCheck,samplesFor,shuffled,summarize}from"./check.js";export{OutputCache,cacheKey,checkerId}from"./cache.js";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/check",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -0,0 +1,29 @@
1
+ import type { Cloud } from "./client.js";
2
+ /** A blob to put: its digest, size and type, and where its bytes are. */
3
+ export interface BlobSource {
4
+ sha256: string;
5
+ size: number;
6
+ type: string;
7
+ /** An absolute file, or the bytes themselves. */
8
+ file?: string;
9
+ bytes?: Uint8Array;
10
+ }
11
+ export declare class BlobStore {
12
+ private readonly cloud;
13
+ /** The API's address that answers what the store lacks. */
14
+ private readonly path;
15
+ /** Where the digests the organization holds are kept between runs; none, for this run alone. */
16
+ private readonly file;
17
+ private known;
18
+ constructor(cloud: Cloud, o: {
19
+ path: string;
20
+ file?: string;
21
+ });
22
+ private load;
23
+ private save;
24
+ /** Forgets that these are held (the API said they are missing). */
25
+ forget(digests: Iterable<string>): Promise<void>;
26
+ /** Puts what the organization lacks of these; how many were sent. */
27
+ put(blobs: readonly BlobSource[]): Promise<number>;
28
+ }
29
+ //# sourceMappingURL=blobs.d.ts.map
@@ -0,0 +1,91 @@
1
+ import { type ToolCall } from "@allyhub/protocol";
2
+ import type { Cloud } from "./client.js";
3
+ import { CloudError } from "./errors.js";
4
+ export interface CallResult {
5
+ tool: string;
6
+ output: Record<string, unknown>;
7
+ /** The whole output, in a file of its own (none when nothing was called). */
8
+ outputFile?: string;
9
+ credits?: number;
10
+ file?: string;
11
+ /** The file's record, beside it. */
12
+ gen?: string;
13
+ /** More files the output names deeper in it (a cut-out's matte, a picture's layers), each by its allyFilePath, downloaded beside the file. */
14
+ more?: Record<string, string>;
15
+ /** A voice's word times, beside its sound. */
16
+ words?: string;
17
+ /** Nothing was called: the named file was made by this tool from this input. */
18
+ kept?: {
19
+ at: string;
20
+ };
21
+ /** The named file was made from another input: made again over it. */
22
+ replaced?: true;
23
+ }
24
+ export interface RunningJob {
25
+ tool: string;
26
+ /** The call's id: --resume waits for it. */
27
+ jobId: string;
28
+ status: "running";
29
+ /** Seconds since it was made. */
30
+ elapsedSeconds?: number;
31
+ /** The named file it makes: the same call to it waits for this one. */
32
+ file?: string;
33
+ }
34
+ export interface CallOptions {
35
+ /** The folder a file it makes goes into, under the name the tool gave it. */
36
+ outDir: string;
37
+ /** The folder the whole output goes into; default `outDir`. */
38
+ outputDir?: string;
39
+ /** The file's path instead (without an extension, it takes the result's). */
40
+ file?: string;
41
+ /** Call even when the named file was made from this input, and replace a file without a record. */
42
+ force?: boolean;
43
+ /** Wait for a long tool (default); false returns its job at once. */
44
+ wait?: boolean;
45
+ /** Seconds to wait before giving up (the job is kept); default WAIT_SECONDS. */
46
+ timeoutSeconds?: number;
47
+ /** The first and the most seconds before a failed read is tried again; default RETRY_SECONDS. */
48
+ retrySeconds?: {
49
+ least: number;
50
+ most: number;
51
+ };
52
+ /** The folder uploaded files' paths are written from in a record. */
53
+ base: string;
54
+ /** A working call, each time it is read while it is waited for. */
55
+ onRunning?: (call: ToolCall) => void;
56
+ /** A read of a call that failed and is tried again in so many seconds. */
57
+ onRetry?: (call: string, error: CloudError, seconds: number) => void;
58
+ signal?: AbortSignal;
59
+ }
60
+ /** How long a call waits for a long tool before giving up; its job is kept to resume. */
61
+ export declare const WAIT_SECONDS = 900;
62
+ /** The least and the most seconds between reads of a working call: the call says when within them. */
63
+ export declare const POLL_SECONDS: {
64
+ readonly least: 1;
65
+ readonly most: 60;
66
+ };
67
+ /** The first and the most seconds before a failed read of a call is tried again: doubled each time, within the wait. */
68
+ export declare const RETRY_SECONDS: {
69
+ readonly least: 1;
70
+ readonly most: 30;
71
+ };
72
+ /** The seconds a read of a call may take before it is tried again. */
73
+ export declare const READ_SECONDS = 120;
74
+ /** A call's words for a file's name: what its input says, as far as a name holds. */
75
+ export declare function inputSlug(input: Readonly<Record<string, unknown>>): string;
76
+ /**
77
+ * Calls a tool. A file it makes is downloaded into `outDir`, or to `file`
78
+ * with its record beside it; a named file already made by this tool from
79
+ * this input is kept and nothing is called (`force` calls anyway); one
80
+ * made from another input, or without a record, is not overwritten
81
+ * without `force`. A call to a named file that this computer's same call
82
+ * is already making waits for that one: it is not made again.
83
+ */
84
+ export declare function callTool(cloud: Cloud, name: string, input: Readonly<Record<string, unknown>>, opts: CallOptions & {
85
+ jobId?: string;
86
+ }): Promise<CallResult | RunningJob>;
87
+ /** Resumes a long tool's job this computer started (of `tool`, when named), and waits for it. */
88
+ export declare function resumeJob(cloud: Cloud, jobId: string, opts: Omit<CallOptions, "outDir" | "file" | "force" | "wait"> & {
89
+ tool?: string;
90
+ }): Promise<CallResult | RunningJob>;
91
+ //# sourceMappingURL=call.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{mkdir as $,readdir as W,readFile as A,rm as B,writeFile as j}from"node:fs/promises";import{basename as T,dirname as k,extname as C,join as m}from"node:path";import{EXIT as w,FileContentResponseSchema as z,ToolCallSchema as J,callPath as G,fileContentPath as U,parseAllyFilePath as Z,toolCallsPath as K}from"@allyhub/protocol";import{genFileFor as _}from"@allyhub/formats";import{CloudError as d}from"./errors.js";import{genRecord as P,inputHash as X,namedFile as Y,readGen as q,toolWords as Q,writeGen as R,writeWords as V}from"./records.js";import{withKnownUploads as tt}from"./uploads.js";export const WAIT_SECONDS=900,POLL_SECONDS={least:1,most:60},RETRY_SECONDS={least:1,most:30},READ_SECONDS=120;const et=new Set([408,429,500,502,503,504]),at=t=>t instanceof d&&(t.code==="network"||t.status!==void 0&&et.has(t.status));function nt(t){return Object.values(t).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>typeof e=="string").join("-").replace(/^https?:\/\//u,"").replace(/[^\p{L}\p{N}._]+/gu,"-").replace(/^-+|-+$/gu,"").slice(0,40).replace(/-+$/u,"")}async function it(t,e,i,a,o){await $(t,{recursive:!0});const r=a.replace(/[^A-Za-z0-9_-]/gu,"_").slice(0,8),s=[e,nt(i),r].filter(Boolean).join("-"),c=m(t,`${s}.output.json`);return await j(c,`${JSON.stringify(o,null,2)}
3
- `),c}async function ot(t,e){const i=C(t)===""?`${t}.json`:t;return await $(k(i),{recursive:!0}),await j(i,`${JSON.stringify(e,null,2)}
4
- `),i}const N=t=>m(t.config.cacheDir,"jobs"),D=(t,e)=>m(N(t),`${e.replace(/[^A-Za-z0-9_-]/gu,"_")}.json`);async function rt(t,e,i){await $(k(D(t,e)),{recursive:!0}),await j(D(t,e),`${JSON.stringify(i,null,2)}
5
- `)}const O=(t,e)=>B(D(t,e),{force:!0});async function st(t,e,i){const a=await W(N(t)).catch(()=>[]);for(const o of a.filter(r=>r.endsWith(".json")).sort()){const r=await A(m(N(t),o),"utf8").then(s=>JSON.parse(s)).catch(()=>{});if(r?.jobId!==void 0&&r.file===e&&r.inputHash===i)return r.jobId}}async function lt(t,e){try{return JSON.parse(await A(D(t,e),"utf8"))}catch{throw new d("unknown-job",`No job ${e} was started on this computer.`,{exit:w.notFound,hint:"Call the tool again: that is a new call."})}}async function ut(t,e,i,a,o){const{url:r}=z.parse(await t.json(U(e,"attachment"),{signal:v(o)}));let s;try{const l=await t.config.fetch(r,o?{signal:o}:{});if(!l.ok)throw new d("download-failed",`Downloading ${i} answered ${String(l.status)}.`,{exit:w.platform,status:l.status});s=Buffer.from(await l.arrayBuffer())}catch(l){throw l instanceof d||o?.aborted===!0?l:new d("network",`Downloading ${i} failed: ${l instanceof Error?l.message:String(l)}`,{exit:w.platform,cause:l})}const c="dir"in a?m(a.dir,T(i)):C(a.file)?a.file:`${a.file}${C(i)}`;return await $(k(c),{recursive:!0}),await j(c,s),c}const v=t=>t?AbortSignal.any([t,AbortSignal.timeout(READ_SECONDS*1e3)]):AbortSignal.timeout(READ_SECONDS*1e3),H=(t,e)=>new Promise((i,a)=>{const o=setTimeout(i,t*1e3);e?.addEventListener("abort",()=>{clearTimeout(o),a(e.reason instanceof Error?e.reason:new Error("Stopped."))},{once:!0})});export async function callTool(t,e,i,a){const o=a.file,r=await tt(t,i,a.base),s=X(e,r);let c=a.jobId,l=!1;if(o!==void 0&&c===void 0){c=await st(t,o,s);const f=c===void 0?await Y(o):void 0,u=f?await q(f):void 0;if(a.force===!0)l=u!==void 0;else{if(f&&!u)throw new d("file-exists",`${f} is there, without a record (${T(_(f))}) saying a tool call made it.`,{exit:w.conflict,hint:"Choose another --file, or pass --force to replace it."});if(f&&u){if(u.tool===e&&u.inputHash===s)return{tool:e,output:typeof u.output?.allyFilePath=="string"?u.output:JSON.parse(await A(f,"utf8")),file:f,gen:_(f),kept:{at:u.at}};throw new d("file-exists",`${f} was made by ${u.tool??"another tool"} from another input on ${u.at}.`,{exit:w.conflict,hint:"Choose another --file to keep it, or pass --force to make it again over it (charged again)."})}}}const y=Date.now()+(a.timeoutSeconds??WAIT_SECONDS)*1e3,b=a.signal;let n=c===void 0?J.parse(await t.json(K(e),{method:"POST",body:{input:i},...b?{signal:b}:{}})):await I(t,c,y,a);n.status==="working"&&c===void 0&&await rt(t,n.id,{jobId:n.id,tool:e,input:{...i},inputHash:s,outDir:a.outDir,...o===void 0?{}:{file:o}});const L=()=>({tool:e,jobId:n.id,status:"running",elapsedSeconds:(Date.now()-Date.parse(n.createdAt))/1e3,...o===void 0?{}:{file:o}});for(;n.status==="working";){if(a.wait===!1||Date.now()>y)return L();a.onRunning?.(n),await H(Math.min(Math.max((n.pollAfterMs??0)/1e3,POLL_SECONDS.least),POLL_SECONDS.most),b),n=await I(t,n.id,y,a)}if(n.status==="failed")throw await O(t,n.id),new d(`tool-${(n.error?.kind??"failed").replaceAll("_","-")}`,n.error?.message??"The tool failed.",{exit:n.error?.kind==="input"?w.usage:w.platform,hint:n.error?.kind==="input"||n.error?.kind==="not_found"?"A failed call is not charged. Change the input and call again.":"A failed call is not charged. Call it again; a supplier's failure often passes."});if(n.status!=="completed")throw new d("tool-state",`The call ${n.id} is ${n.status}, a state this version of allyhub does not know.`,{exit:w.platform,hint:"Update allyhub in the project (npm install allyhub@latest) and call it again."});const h=typeof n.output=="object"&&n.output!==null?n.output:{value:n.output},E=h.allyFilePath,S=typeof E=="string"?Z(E):void 0,g=!S&&o!==void 0?await ot(o,h):void 0,p={tool:e,output:h,outputFile:g??await it(a.outputDir??a.outDir,e,i,n.id,h),...n.credits===void 0?{}:{credits:n.credits}};if(S){const f=n.id,u=await M(f,()=>ut(t,S.id,S.name,o!==void 0?{file:o}:{dir:a.outDir},b),y,a);p.file=u,p.gen=await R(u,await P(u,{tool:e,input:r,output:h,credits:n.credits}));const F=Q(h),x=h.durationSeconds;F&&(p.words=await V(u,F,typeof x=="number"&&x>=0?x:void 0)),l&&(p.replaced=!0)}else g!==void 0&&(p.file=g,p.gen=await R(g,await P(g,{tool:e,input:r,output:h,credits:n.credits})),l&&(p.replaced=!0));return await O(t,n.id),p}async function I(t,e,i,a){try{return await M(e,async()=>J.parse(await t.json(G(e),{signal:v(a.signal)})),i,a)}catch(o){throw o instanceof d&&o.status===404&&await O(t,e),o}}async function M(t,e,i,a){const o=a.retrySeconds??RETRY_SECONDS;for(let r=o.least;;)try{return await e()}catch(s){if(!at(s)||a.signal?.aborted===!0)throw s;if(Date.now()+r*1e3>i)throw new d(s.code,s.message,{exit:s.exit,...s.status===void 0?{}:{status:s.status},hint:`Call ${t} goes on at AllyHub, charged once when it works: --resume ${t} waits for it again (so does the same call to the same --file).`,cause:s});a.onRetry?.(t,s,r),await H(r,a.signal),r=Math.min(r*2,o.most)}}export async function resumeJob(t,e,i){const a=await lt(t,e);if(i.tool!==void 0&&i.tool!==a.tool)throw new d("wrong-job",`Job ${e} is ${a.tool}'s, not ${i.tool}'s.`,{exit:w.usage,hint:`Resume it with ${a.tool}.`});return await callTool(t,a.tool,a.input,{...i,outDir:a.outDir,...a.file===void 0?{}:{file:a.file},jobId:e})}
2
+ import{mkdir as A,readdir as X,readFile as E,rm as Y,writeFile as D}from"node:fs/promises";import{basename as $,dirname as k,extname as S,join as j}from"node:path";import{EXIT as p,FileContentResponseSchema as q,ToolCallSchema as _,callPath as Q,fileContentPath as V,parseAllyFilePath as I,toolCallsPath as tt}from"@allyhub/protocol";import{genFileFor as H}from"@allyhub/formats";import{CloudError as d}from"./errors.js";import{genRecord as M,inputHash as et,namedFile as nt,readGen as it,toolWords as at,writeGen as L,writeWords as ot}from"./records.js";import{withKnownUploads as rt}from"./uploads.js";export const WAIT_SECONDS=900,POLL_SECONDS={least:1,most:60},RETRY_SECONDS={least:1,most:30},READ_SECONDS=120;const st=new Set([408,429,500,502,503,504]),lt=t=>t instanceof d&&(t.code==="network"||t.status!==void 0&&st.has(t.status));function ut(t){if(!/^https?:\/\//iu.test(t))return t;let e;try{e=new URL(t)}catch{return t}if(e.search==="")return t.replace(/^https?:\/\//iu,"");const i=/filename\*?=(?:UTF-8'')?"?([^";]+)/iu.exec(e.searchParams.get("response-content-disposition")??"")?.[1];return i===void 0?void 0:decodeURIComponent(i)}export function inputSlug(t){return Object.values(t).flatMap(e=>Array.isArray(e)?e:[e]).filter(e=>typeof e=="string").flatMap(e=>ut(e)??[]).join("-").replace(/[^\p{L}\p{N}._]+/gu,"-").replace(/^-+|-+$/gu,"").slice(0,40).replace(/-+$/u,"")}const U=t=>t.replace(/[^A-Za-z0-9_-]/gu,"_").slice(0,8),W=(t,e)=>{const i=S(t);return`${$(t,i)}-${U(e)}${i}`};async function ft(t,e,i,n,o){await A(t,{recursive:!0});const s=[e,inputSlug(i),U(n)].filter(Boolean).join("-"),r=j(t,`${s}.output.json`);return await D(r,`${JSON.stringify(o,null,2)}
3
+ `),r}async function ct(t,e){const i=S(t)===""?`${t}.json`:t;return await A(k(i),{recursive:!0}),await D(i,`${JSON.stringify(e,null,2)}
4
+ `),i}const T=t=>j(t.config.cacheDir,"jobs"),C=(t,e)=>j(T(t),`${e.replace(/[^A-Za-z0-9_-]/gu,"_")}.json`);async function dt(t,e,i){await A(k(C(t,e)),{recursive:!0}),await D(C(t,e),`${JSON.stringify(i,null,2)}
5
+ `)}const P=(t,e)=>Y(C(t,e),{force:!0});async function wt(t,e,i){const n=await X(T(t)).catch(()=>[]);for(const o of n.filter(s=>s.endsWith(".json")).sort()){const s=await E(j(T(t),o),"utf8").then(r=>JSON.parse(r)).catch(()=>{});if(s?.jobId!==void 0&&s.file===e&&s.inputHash===i)return s.jobId}}async function ht(t,e){try{return JSON.parse(await E(C(t,e),"utf8"))}catch{throw new d("unknown-job",`No job ${e} was started on this computer.`,{exit:p.notFound,hint:"Call the tool again: that is a new call."})}}async function B(t,e,i,n,o){const{url:s}=q.parse(await t.json(V(e,"attachment"),{signal:v(o)}));let r;try{const f=await t.config.fetch(s,o?{signal:o}:{});if(!f.ok)throw new d("download-failed",`Downloading ${i} answered ${String(f.status)}.`,{exit:p.platform,status:f.status});r=Buffer.from(await f.arrayBuffer())}catch(f){throw f instanceof d||o?.aborted===!0?f:new d("network",`Downloading ${i} failed: ${f instanceof Error?f.message:String(f)}`,{exit:p.platform,cause:f})}const w="dir"in n?j(n.dir,$(n.name??i)):S(n.file)?n.file:`${n.file}${S(i)}`;return await A(k(w),{recursive:!0}),await D(w,r),w}const v=t=>t?AbortSignal.any([t,AbortSignal.timeout(READ_SECONDS*1e3)]):AbortSignal.timeout(READ_SECONDS*1e3),z=(t,e)=>new Promise((i,n)=>{const o=setTimeout(i,t*1e3);e?.addEventListener("abort",()=>{clearTimeout(o),n(e.reason instanceof Error?e.reason:new Error("Stopped."))},{once:!0})});export async function callTool(t,e,i,n){const o=n.file,s=await rt(t,i,n.base),r=et(e,s);let w=n.jobId,f=!1;if(o!==void 0&&w===void 0){w=await wt(t,o,r);const u=w===void 0?await nt(o):void 0,l=u?await it(u):void 0;if(n.force===!0)f=l!==void 0;else{if(u&&!l)throw new d("file-exists",`${u} is there, without a record (${$(H(u))}) saying a tool call made it.`,{exit:p.conflict,hint:"Choose another --file, or pass --force to replace it."});if(u&&l){if(l.tool===e&&l.inputHash===r)return{tool:e,output:typeof l.output?.allyFilePath=="string"?l.output:JSON.parse(await E(u,"utf8")),file:u,gen:H(u),kept:{at:l.at}};throw new d("file-exists",`${u} was made by ${l.tool??"another tool"} from another input on ${l.at}.`,{exit:p.conflict,hint:"Choose another --file to keep it, or pass --force to make it again over it (charged again)."})}}}const m=Date.now()+(n.timeoutSeconds??WAIT_SECONDS)*1e3,g=n.signal;let a=w===void 0?_.parse(await t.json(tt(e),{method:"POST",body:{input:i},...g?{signal:g}:{}})):await G(t,w,m,n);a.status==="working"&&w===void 0&&await dt(t,a.id,{jobId:a.id,tool:e,input:{...i},inputHash:r,outDir:n.outDir,...o===void 0?{}:{file:o}});const Z=()=>({tool:e,jobId:a.id,status:"running",elapsedSeconds:(Date.now()-Date.parse(a.createdAt))/1e3,...o===void 0?{}:{file:o}});for(;a.status==="working";){if(n.wait===!1||Date.now()>m)return Z();n.onRunning?.(a),await z(Math.min(Math.max((a.pollAfterMs??0)/1e3,POLL_SECONDS.least),POLL_SECONDS.most),g),a=await G(t,a.id,m,n)}if(a.status==="failed")throw await P(t,a.id),new d(`tool-${(a.error?.kind??"failed").replaceAll("_","-")}`,a.error?.message??"The tool failed.",{exit:a.error?.kind==="input"?p.usage:p.platform,hint:a.error?.kind==="input"||a.error?.kind==="not_found"?"A failed call is not charged. Change the input and call again.":a.error?.kind==="unavailable"?"A failed call is not charged. Calling it again will not help until AllyHub sets it up.":"A failed call is not charged. Call it again; a supplier's failure often passes."});if(a.status!=="completed")throw new d("tool-state",`The call ${a.id} is ${a.status}, a state this version of allyhub does not know.`,{exit:p.platform,hint:"Update allyhub in the project (npm install allyhub@latest) and call it again."});const h=typeof a.output=="object"&&a.output!==null?a.output:{value:a.output},R=h.allyFilePath,y=typeof R=="string"?I(R):void 0,b=!y&&o!==void 0?await ct(o,h):void 0,c={tool:e,output:h,outputFile:b??await ft(n.outputDir??n.outDir,e,i,a.id,h),...a.credits===void 0?{}:{credits:a.credits}};if(y){const u=a.id,l=await J(u,()=>B(t,y.id,y.name,o!==void 0?{file:o}:{dir:n.outDir,name:W(y.name,u)},g),m,n);c.file=l,c.gen=await L(l,await M(l,{tool:e,input:s,output:h,credits:a.credits}));const x=at(h),N=h.durationSeconds;x&&(c.words=await ot(l,x,typeof N=="number"&&N>=0?N:void 0)),f&&(c.replaced=!0)}else b!==void 0&&(c.file=b,c.gen=await L(b,await M(b,{tool:e,input:s,output:h,credits:a.credits})),f&&(c.replaced=!0));const O={},K=c.file===void 0?n.outDir:k(c.file),F=c.file;for(const u of pt(h)){const l=I(u);if(!l)continue;const x=F===void 0?W(l.name,a.id):`${$(F,S(F))}.${$(l.name)}`;O[u]=await J(a.id,()=>B(t,l.id,l.name,{dir:K,name:x},g),m,n)}return Object.keys(O).length>0&&(c.more=O),await P(t,a.id),c}function pt(t){const e=[],i=(n,o)=>{if(Array.isArray(n))for(const s of n)i(s,!1);else if(typeof n=="object"&&n!==null)for(const[s,r]of Object.entries(n))s==="allyFilePath"&&!o&&typeof r=="string"?e.push(r):i(r,!1)};return i(t,!0),e}async function G(t,e,i,n){try{return await J(e,async()=>_.parse(await t.json(Q(e),{signal:v(n.signal)})),i,n)}catch(o){throw o instanceof d&&o.status===404&&await P(t,e),o}}async function J(t,e,i,n){const o=n.retrySeconds??RETRY_SECONDS;for(let s=o.least;;)try{return await e()}catch(r){if(!lt(r)||n.signal?.aborted===!0)throw r;if(Date.now()+s*1e3>i)throw new d(r.code,r.message,{exit:r.exit,...r.status===void 0?{}:{status:r.status},hint:`Call ${t} goes on at AllyHub, charged once when it works: --resume ${t} waits for it again (so does the same call to the same --file).`,cause:r});n.onRetry?.(t,r,s),await z(s,n.signal),s=Math.min(s*2,o.most)}}export async function resumeJob(t,e,i){const n=await ht(t,e);if(i.tool!==void 0&&i.tool!==n.tool)throw new d("wrong-job",`Job ${e} is ${n.tool}'s, not ${i.tool}'s.`,{exit:p.usage,hint:`Resume it with ${n.tool}.`});return await callTool(t,n.tool,n.input,{...i,outDir:n.outDir,...n.file===void 0?{}:{file:n.file},jobId:e})}
@@ -0,0 +1,12 @@
1
+ import { type Catalog, type CatalogTool, type CatalogWork } from "@allyhub/protocol";
2
+ import type { Cloud } from "./client.js";
3
+ export type { Catalog, CatalogTool, CatalogWork };
4
+ /** How long the kept catalog is used before it is asked for again. */
5
+ export declare const CATALOG_CACHE_SECONDS = 3600;
6
+ /** The catalog: the kept one while it is fresh, else asked for again (`refresh` asks at once). */
7
+ export declare function loadCatalog(cloud: Cloud, opts?: {
8
+ refresh?: boolean;
9
+ }): Promise<Catalog>;
10
+ /** A tool by its name, the catalog asked for again when the kept one lacks it. */
11
+ export declare function findTool(cloud: Cloud, name: string): Promise<CatalogTool>;
12
+ //# sourceMappingURL=catalog.d.ts.map
@@ -0,0 +1,43 @@
1
+ import type { CloudConfig } from "./config.js";
2
+ export interface Key {
3
+ key: string;
4
+ source: "env" | "oauth";
5
+ /** The organization it acts in: the one it signed in to, sent as ORGANIZATION_HEADER. */
6
+ organization?: string;
7
+ /** The account it is, the same across tokens: what a cache is kept by. */
8
+ account: string;
9
+ /** When it stops working (ISO 8601); a key from the environment does not say. */
10
+ expiresAt?: string;
11
+ }
12
+ /** Removes anything key-shaped from text that may reach the screen. */
13
+ export declare function scrub(text: string, key?: string): string;
14
+ export declare class Cloud {
15
+ readonly config: CloudConfig;
16
+ constructor(config: CloudConfig);
17
+ get url(): string;
18
+ /**
19
+ * The key to use, or undefined when this computer is not signed in;
20
+ * `refused` is a sign-in's access token AllyHub refused, renewed.
21
+ */
22
+ key(o?: {
23
+ refused?: string;
24
+ }): Promise<Key | undefined>;
25
+ /** The key, or "not signed in". */
26
+ requireKey(): Promise<Key>;
27
+ /**
28
+ * Fetch with this computer's key, asked for on every request (a
29
+ * connection to the catalog outlives a token), and once again when it
30
+ * is refused: a sign-in's token is then renewed (AllyHub may have
31
+ * changed the key it signs with, or failed to check it) and the request
32
+ * sent again, when its body can be sent twice.
33
+ */
34
+ readonly keyedFetch: typeof fetch;
35
+ /** JSON on the API (GET, or a change with a body or none), with the key unless `auth: false`. */
36
+ json(path: string, opts?: {
37
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
38
+ body?: unknown;
39
+ auth?: boolean;
40
+ signal?: AbortSignal;
41
+ }): Promise<unknown>;
42
+ }
43
+ //# sourceMappingURL=client.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{createHash as l}from"node:crypto";import{EXIT as r,ORGANIZATION_HEADER as y}from"@allyhub/protocol";import{accessOf as g,SignedOut as p}from"./credentials.js";import{CloudError as s,notSignedIn as f,unreachable as h}from"./errors.js";export function scrub(c,e){let t=c.replace(/(authorization)\s*[:=]\s*[^\r\n]+/giu,"$1: <redacted>");return t=t.replace(/\bahk_[A-Za-z0-9_-]+/gu,"<api-key>"),t=t.replace(/\beyJ[\w-]+\.[\w-]+\.[\w-]+/gu,"<token>"),e&&(t=t.split(e).join("<key>")),t}export class Cloud{config;constructor(e){this.config=e}get url(){return this.config.url}async key(){const e=this.config.apiKey;if(e)return{key:e,source:"env",account:l("sha256").update(e).digest("hex")};try{const t=await g(this.config);if(!t)return;const o=t.credentials.account.organization?.id;return{key:t.token,source:"oauth",account:t.credentials.account.id,expiresAt:t.expiresAt,...o===void 0?{}:{organization:o}}}catch(t){if(t instanceof p)return;throw h(this.url,t)}}async requireKey(){const e=await this.key();if(!e)throw f();return e}keyedFetch=async(e,t)=>{const o=n=>{const a=new Headers(t?.headers);return a.set("authorization",`Bearer ${n.key}`),n.organization!==void 0&&a.set(y,n.organization),this.config.fetch(e,{...t,headers:a})},i=await this.requireKey();return o(i)};async json(e,t={}){const o=t.auth!==!1,i=o?(await this.requireKey()).key:void 0;let n;try{n=await(o?this.keyedFetch:this.config.fetch)(`${this.url}${e}`,{redirect:"error",signal:t.signal??AbortSignal.timeout(3e4),method:t.method??"GET",headers:{accept:"application/json",...t.body===void 0?{}:{"content-type":"application/json"}},...t.body===void 0?{}:{body:JSON.stringify(t.body)}})}catch(u){throw u instanceof s?u:h(this.url,u)}const a=await n.text(),d=n.ok?void 0:m(a,n.status,i);if(d&&n.status!==401)throw d;if(n.status===403)throw new s("forbidden","This AllyHub account does not have access to this operation.",{exit:r.auth,status:403});if(n.status===401)throw f(o?"This computer's AllyHub sign-in is not valid any more.":void 0);if(!n.ok)throw new s("api-error",`${this.url}${e} answered ${String(n.status)}: ${scrub(a.slice(0,300),i)}`,{exit:n.status>=500?r.platform:r.usage,status:n.status});try{return JSON.parse(a)}catch{throw new s("api-error",`${this.url}${e} did not answer JSON.`,{exit:r.platform,status:n.status})}}}const w={bad_input:r.usage,insufficient_credits:r.auth,limit_reached:r.auth,forbidden:r.auth,not_found:r.notFound,conflict:r.conflict,worked_elsewhere:r.conflict};function m(c,e,t){let o;try{o=JSON.parse(c)}catch{return}const i=o?.error;if(typeof i?.code!="string"||typeof i.message!="string")return;const n=typeof i.hint=="string"?i.hint:i.code==="insufficient_credits"?"Add credits to the AllyHub account.":void 0;return new s(i.code.replaceAll("_","-"),scrub(i.message,t),{exit:w[i.code]??r.platform,status:e,...n===void 0?{}:{hint:n},...typeof i.data=="object"&&i.data!==null?{data:i.data}:{}})}
2
+ import{createHash as l}from"node:crypto";import{EXIT as a,ORGANIZATION_HEADER as y}from"@allyhub/protocol";import{accessOf as g,SignedOut as w}from"./credentials.js";import{CloudError as u,notSignedIn as f,unreachable as h}from"./errors.js";export function scrub(d,i){let e=d.replace(/(authorization)\s*[:=]\s*[^\r\n]+/giu,"$1: <redacted>");return e=e.replace(/\bahk_[A-Za-z0-9_-]+/gu,"<api-key>"),e=e.replace(/\beyJ[\w-]+\.[\w-]+\.[\w-]+/gu,"<token>"),i&&(e=e.split(i).join("<key>")),e}export class Cloud{config;constructor(i){this.config=i}get url(){return this.config.url}async key(i={}){const e=this.config.apiKey;if(e)return{key:e,source:"env",account:l("sha256").update(e).digest("hex")};try{const r=await g(this.config,i);if(!r)return;const t=r.credentials.account.organization?.id;return{key:r.token,source:"oauth",account:r.credentials.account.id,expiresAt:r.expiresAt,...t===void 0?{}:{organization:t}}}catch(r){if(r instanceof w)return;throw h(this.url,r)}}async requireKey(){const i=await this.key();if(!i)throw f();return i}keyedFetch=async(i,e)=>{const r=c=>{const o=new Headers(e?.headers);return o.set("authorization",`Bearer ${c.key}`),c.organization!==void 0&&o.set(y,c.organization),this.config.fetch(i,{...e,headers:o})},t=await this.requireKey(),n=await r(t);if(n.status!==401||t.source!=="oauth"||e?.body instanceof ReadableStream||i instanceof Request)return n;const s=await this.key({refused:t.key});return s===void 0?n:(await n.body?.cancel(),r(s))};async json(i,e={}){const r=e.auth!==!1,t=r?(await this.requireKey()).key:void 0;let n;try{n=await(r?this.keyedFetch:this.config.fetch)(`${this.url}${i}`,{redirect:"error",signal:e.signal??AbortSignal.timeout(3e4),method:e.method??"GET",headers:{accept:"application/json",...e.body===void 0?{}:{"content-type":"application/json"}},...e.body===void 0?{}:{body:JSON.stringify(e.body)}})}catch(o){throw o instanceof u?o:h(this.url,o)}const s=await n.text(),c=n.ok?void 0:b(s,n.status,t);if(c&&n.status!==401)throw c;if(n.status===403)throw new u("forbidden","This AllyHub account does not have access to this operation.",{exit:a.auth,status:403});if(n.status===401)throw f(r?"This computer's AllyHub sign-in is not valid any more.":void 0);if(!n.ok)throw new u("api-error",`${this.url}${i} answered ${String(n.status)}: ${scrub(s.slice(0,300),t)}`,{exit:n.status>=500?a.platform:a.usage,status:n.status});try{return JSON.parse(s)}catch{throw new u("api-error",`${this.url}${i} did not answer JSON.`,{exit:a.platform,status:n.status})}}}const p={bad_input:a.usage,insufficient_credits:a.auth,limit_reached:a.auth,forbidden:a.auth,not_found:a.notFound,conflict:a.conflict,worked_elsewhere:a.conflict};function b(d,i,e){let r;try{r=JSON.parse(d)}catch{return}const t=r?.error;if(typeof t?.code!="string"||typeof t.message!="string")return;const n=typeof t.hint=="string"?t.hint:t.code==="insufficient_credits"?"Add credits to the AllyHub account.":void 0;return new u(t.code.replaceAll("_","-"),scrub(t.message,e),{exit:p[t.code]??a.platform,status:i,...n===void 0?{}:{hint:n},...typeof t.data=="object"&&t.data!==null?{data:t.data}:{}})}