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,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export{SceneryCallError,SceneryStage,sceneryBuildDir}from"./page.js";export{viewerBundle}from"./view.js";export{BAKE_INDEX,bakeReportFile,bakeStatus,bakesOnDisk,keepBake,readBakeIndex}from"./bakes.js";export{solveSceneryCamera,solvedPicture}from"./solve.js";export{bakeFact,fidelityOf,sceneryCuts,sceneryLayerFacts,screenFidelity,withBakes}from"./version.js";
@@ -0,0 +1,70 @@
1
+ import { type Browser, type Page } from "@allyhub/browser";
2
+ import type { BakeReport } from "@allyhub/scenery";
3
+ import type { MediaInfo } from "@allyhub/piece";
4
+ import type { Answer, SceneryCommands } from "../commands.js";
5
+ import type { SceneryFailure } from "../errors.js";
6
+ /** How long a bake may take: as long as its samples, bounces and density ask, up to half a day. */
7
+ export declare const BAKE_TIMEOUT_MS: number;
8
+ /** Methods of a scenery's commands a host calls by name. */
9
+ type Command = Exclude<keyof SceneryCommands, "page">;
10
+ export interface SceneryStageOptions {
11
+ browser: Browser;
12
+ root: string;
13
+ /** The scenery module, a project path (room/scenery.ts). */
14
+ file: string;
15
+ /** The build folder this bundle goes into. */
16
+ buildDir: string;
17
+ /** The project's media the scenery may load, by path. */
18
+ media: Readonly<Record<string, MediaInfo>>;
19
+ /** The project's declared packages. */
20
+ dependencies: ReadonlySet<string>;
21
+ /** The page's size, which commands that draw take theirs from. */
22
+ width?: number;
23
+ height?: number;
24
+ /** Leave the scenery unbaked even when there is a bake for it (to bake it). */
25
+ unbaked?: boolean;
26
+ }
27
+ /**
28
+ * What a scenery's page failed at: its kind, the rule it is said under,
29
+ * and, when a move or the scenery's update asked the time of a reference
30
+ * that has none, that reference (give it a time).
31
+ */
32
+ export declare class SceneryCallError extends Error {
33
+ readonly kind: SceneryFailure;
34
+ readonly rule: string;
35
+ readonly needsTime: string | undefined;
36
+ constructor(kind: SceneryFailure, message: string, needsTime?: string);
37
+ }
38
+ export declare class SceneryStage {
39
+ readonly page: Page;
40
+ private readonly server;
41
+ private constructor();
42
+ static open(options: SceneryStageOptions): Promise<SceneryStage>;
43
+ /** Calls one of the scenery's commands, with JSON arguments. */
44
+ call<M extends Command>(method: M, ...args: Parameters<SceneryCommands[M]>): Promise<Awaited<ReturnType<SceneryCommands[M]>>>;
45
+ private callWithin;
46
+ /** A command's value, or a SceneryCallError with what failed. */
47
+ value<T>(answer: Answer<T> | Promise<Answer<T>>): Promise<T>;
48
+ /**
49
+ * Bakes the scenery's light on this page's renderer: the report and the
50
+ * bake file's bytes (keepBake writes them). The stage must be opened
51
+ * unbaked.
52
+ */
53
+ bake(): Promise<{
54
+ report: BakeReport;
55
+ bytes: Uint8Array;
56
+ }>;
57
+ /**
58
+ * A project's scenery item on a page of its own: its files' media and
59
+ * its declared packages read from the project, its bundle in the
60
+ * project's build folder.
61
+ */
62
+ static ofProject(options: Omit<SceneryStageOptions, "buildDir" | "media" | "dependencies"> & {
63
+ buildDir?: string;
64
+ }): Promise<SceneryStage>;
65
+ close(): Promise<void>;
66
+ }
67
+ /** Where a scenery's bundle goes in a project's build folder. */
68
+ export declare const sceneryBuildDir: (root: string) => string;
69
+ export {};
70
+ //# sourceMappingURL=page.d.ts.map
@@ -0,0 +1,12 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{readFile as b}from"node:fs/promises";import{join as d}from"node:path";import{PACKAGE_FILE as k}from"@allyhub/formats";import{openPage as g,startServer as S}from"@allyhub/browser";import{allyhubPlugin as v,listFiles as E,loadUserVite as D,readMedia as O}from"@allyhub/build";import{BAKE_DIR as $,ruleOf as x}from"../allyhub.js";import{SCENERY_STAGE as N,bundleScenery as U,lentPackages as A,sceneryHref as C}from"../bundle.js";import{bakesOnDisk as P}from"./bakes.js";export const BAKE_TIMEOUT_MS=720*6e4;export class SceneryCallError extends Error{kind;rule;needsTime;constructor(e,t,a){super(t),this.name="SceneryCallError",this.kind=e,this.rule=x(e),this.needsTime=a}}const T=new Set(["build","renderer","file","camera","name"]),h=r=>new SceneryCallError(r.kind!==void 0&&T.has(r.kind)?r.kind:"build",r.message??"",r.needsTime),y="/scenery.html";export class SceneryStage{page;server;constructor(e,t){this.page=e,this.server=t}static async open(e){const{root:t,file:a,buildDir:n}=e,i=await D(t),o=await U({root:t,file:a,outDir:n,dependencies:e.dependencies,plugins:[v({root:t,media:e.media,dependencies:e.dependencies,lent:A()})],...i?{user:i}:{}}),c=s=>`/scenery/${C(s)}`,p={module:a,decoders:c(o.decoders),seed:a,manifoldWasm:c(o.manifoldWasm),xatlasWasm:c(o.xatlasWasm),...e.unbaked?{unbaked:!0}:{}},u=e.unbaked?[]:[...await P(t)],f=`<!doctype html><html><head><meta charset="utf-8"><style>html,body{margin:0;background:#000}</style></head><body><script type="module">
3
+ try {
4
+ const m = await import(${JSON.stringify(c(o.module))});
5
+ const bakes = new Set(${JSON.stringify(u)});
6
+ const bakeUrl = (d, r) => (bakes.has(d + "." + r) ? "/bakes/" + d + "." + r + ".bin" : undefined);
7
+ const opened = await m.openScenery(m.scenery, { ...${JSON.stringify(p)}, assetUrl: (p) => "/media/" + p.replace(/^\\/+/, "").split("/").map(encodeURIComponent).join("/"), bakeUrl });
8
+ window.scenery = opened;
9
+ } catch (e) {
10
+ window.scenery = { ok: false, kind: "build", message: String((e && e.stack) || e) };
11
+ }
12
+ <\/script></body></html>`,l=await S([{at:y,body:f,type:"text/html; charset=utf-8"},{at:"/scenery/",dir:d(n,N)},{at:"/media/",dir:t,only:new Set(Object.keys(e.media))},{at:"/bakes/",dir:d(t,$),only:new Set(u.map(s=>`${s}.bin`))}]),m=await g(e.browser,{width:e.width??1280,height:e.height??720,allow:l.allow}),w=new SceneryStage(m,l);try{await m.goto(`${l.origin}${y}`);const s=await m.evaluate("new Promise((ok) => { const w = () => (window.scenery ? ok(window.scenery.ok ? { ok: true } : window.scenery) : setTimeout(w, 20)); w(); })",{timeoutMs:12e4});if(!s.ok)throw h(s)}catch(s){throw await w.close(),s}return w}call(e,...t){return this.callWithin(3e5,e,...t)}callWithin(e,t,...a){const n=a.map(i=>JSON.stringify(i)).join(", ");return this.page.evaluate(`window.scenery.value.${t}(${n})`,{timeoutMs:e})}async value(e){const t=await e;if(!t.ok)throw h(t);return t.value}async bake(){const e=await this.value(this.callWithin(BAKE_TIMEOUT_MS,"bake")),t=[],a=4<<20;for(let n=0;n<e.bytes;n+=a)t.push(Buffer.from(await this.value(this.call("bakeChunk",n,a)),"base64"));return{report:e,bytes:new Uint8Array(Buffer.concat(t))}}static async ofProject(e){const t=await E(e.root);return SceneryStage.open({...e,buildDir:e.buildDir??sceneryBuildDir(e.root),media:await O(e.root,t),dependencies:await W(e.root)})}async close(){await this.page.close(),await this.server.close()}}async function W(r){try{const e=JSON.parse(await b(d(r,k),"utf8"));return new Set(["dependencies","devDependencies","peerDependencies","optionalDependencies"].flatMap(t=>Object.keys(e[t]??{})))}catch{return new Set}}export const sceneryBuildDir=r=>d(r,".allyhub/cache/build-scenery");
@@ -0,0 +1,49 @@
1
+ import { type Browser } from "@allyhub/browser";
2
+ import { type CameraState, type LensFrame, type SolveParam, type SolveResult } from "@allyhub/scenery";
3
+ import type { SceneryStage } from "./page.js";
4
+ /** A point of the scenery as a correspondence names it: metres, an object's box centre, or a place on a screen's face (shares of its content from its top left). */
5
+ export type SolveRef = readonly [number, number, number] | {
6
+ object: string;
7
+ } | {
8
+ screen: string;
9
+ uv: readonly [number, number];
10
+ };
11
+ export interface Correspondences {
12
+ points?: readonly {
13
+ name?: string | undefined;
14
+ where: SolveRef;
15
+ px: readonly [number, number];
16
+ weight?: number | undefined;
17
+ }[];
18
+ lines?: readonly {
19
+ name?: string | undefined;
20
+ from: SolveRef;
21
+ to: SolveRef;
22
+ px: readonly [number, number];
23
+ weight?: number | undefined;
24
+ }[];
25
+ }
26
+ export interface SceneryCameraSolve {
27
+ /** The picture's size, px: the frame the pixels were measured on. */
28
+ frame: readonly [number, number];
29
+ /** Scenery time the scenery is posed at for named points, s. */
30
+ t: number;
31
+ times?: Readonly<Record<string, number>>;
32
+ lens?: number;
33
+ lensFrame?: LensFrame;
34
+ free?: readonly SolveParam[];
35
+ /** A camera to start from (one of the scenery's, as its info gives it). */
36
+ from?: CameraState;
37
+ }
38
+ /** Solves the camera of a picture from correspondences with a scenery on its page. */
39
+ export declare function solveSceneryCamera(stage: SceneryStage, c: Correspondences, o: SceneryCameraSolve): Promise<SolveResult>;
40
+ /**
41
+ * The scenery drawn from a solved camera, the measured pixels as yellow
42
+ * rings and where the camera puts them as red dots joined to them: a WebP.
43
+ */
44
+ export declare function solvedPicture(stage: SceneryStage, browser: Browser, camera: CameraState, r: SolveResult, o: {
45
+ frame: readonly [number, number];
46
+ t: number;
47
+ times?: Readonly<Record<string, number>>;
48
+ }): Promise<Buffer>;
49
+ //# sourceMappingURL=solve.d.ts.map
@@ -0,0 +1,73 @@
1
+ import type { Fact } from "@allyhub/diagnostics";
2
+ import { type Img } from "@allyhub/measure";
3
+ import type { VersionPage } from "@allyhub/build";
4
+ import { type SceneryFact, type SceneryFactData } from "../fact.js";
5
+ import { type FidelityOptions } from "../fidelity.js";
6
+ import { type BakeIndex } from "./bakes.js";
7
+ /** A version page on a clock of parts, each with its still (a video's). */
8
+ export type FilmClockPage = VersionPage & {
9
+ readonly timeline: {
10
+ readonly fps: number;
11
+ readonly parts: readonly {
12
+ readonly still: number;
13
+ }[];
14
+ };
15
+ };
16
+ type Data = SceneryFactData["scenery-screen-fidelity"];
17
+ /**
18
+ * Compares the flat capture with the texture's level: the numbers of the
19
+ * fact, regions in content px with the listed elements that meet them, and
20
+ * the two side by side with where they differ (the element drawn flat,
21
+ * the texture, the difference over the element).
22
+ */
23
+ export declare function fidelityOf(flat: Img, level: Img, size: readonly [number, number], elements: NonNullable<Data["elements"]>, o: FidelityOptions): {
24
+ data: Pick<Data, "deltaE" | "channels" | "share" | "regions">;
25
+ side: Img;
26
+ };
27
+ /** Where a comparison is made and what else it gives. */
28
+ export interface FidelityRun {
29
+ /**
30
+ * Film seconds to compare at: every one inside a scenery layer's window.
31
+ * Default: each layer once, at its part's still, else its middle.
32
+ */
33
+ at?: readonly number[];
34
+ /**
35
+ * Gets each comparison's picture (the element flat, the texture, where
36
+ * they differ) with its fact; says where it put it.
37
+ */
38
+ sheet?: (picture: Img, f: SceneryFact) => Promise<string>;
39
+ }
40
+ /**
41
+ * Each screen drawn in the scenery of the page's scenery layers, compared
42
+ * with its own element at one moment of its layer, as facts. A screen that
43
+ * cannot be compared (a browser without HTML-in-Canvas draws it over the
44
+ * scenery; its picture never copied) has its fact with why.
45
+ */
46
+ export declare function screenFidelity(page: FilmClockPage, options?: Partial<FidelityOptions>, run?: FidelityRun): Promise<{
47
+ facts: SceneryFact[];
48
+ sheets: string[];
49
+ }>;
50
+ type BakeData = SceneryFactData["scenery-bake"];
51
+ /**
52
+ * A scenery layer's bake as the page found it, with what the project's bake
53
+ * index says: baked before for another scene (out of date) or never, and the
54
+ * command that makes it. Undefined for a scenery that neither says how to
55
+ * bake it, nor has a bake laid, nor was ever baked: nothing to say.
56
+ */
57
+ export declare function bakeFact(data: BakeData, index: BakeIndex): BakeData | undefined;
58
+ /**
59
+ * The facts with each scenery-bake fact as the project's bake index says it
60
+ * now: what the page measured is kept with the check's results, and the
61
+ * index changes without the version changing (a bake of another scene).
62
+ */
63
+ export declare function withBakes(facts: readonly Fact[], root: string): Promise<Fact[]>;
64
+ /** What the page's scenery layers measure: their facts, with this version's place. */
65
+ export declare function sceneryLayerFacts(page: Pick<VersionPage, "ask" | "target">): Promise<Fact[]>;
66
+ /** The page's scenery layers' camera cuts, on the film's clock. */
67
+ export declare function sceneryCuts(page: Pick<FilmClockPage, "ask" | "timeline">): Promise<{
68
+ layer: string;
69
+ part?: string;
70
+ t: number;
71
+ }[]>;
72
+ export {};
73
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1,3 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{compareImages as U,cropImage as O,readPng as $}from"@allyhub/measure";import{BAKE_CPU as P}from"@allyhub/scenery";import{sceneryFact as A}from"../fact.js";import{FIDELITY_DEFAULTS as S,shrinkLinear as _}from"../fidelity.js";import{readBakeIndex as C}from"./bakes.js";const y=e=>Math.round(e*1e3)/1e3,M=e=>Math.round(e*10)/10,T=(e,n,t)=>e[0]-t<n[0]+n[2]&&n[0]<e[0]+e[2]+t&&e[1]-t<n[1]+n[3]&&n[1]<e[1]+e[3]+t;export function fidelityOf(e,n,t,i,s){const l=_(e,n.width,n.height),{result:a,side:d}=U(l,n,{tolerance:s.tolerance,background:s.backdrop,gap:s.gap,shift:0,resize:"stretch"}),m=t[0]/n.width,p=t[1]/n.height;return{side:d,data:{deltaE:a.deltaE,channels:{r:y(a.channels.r.mean),g:y(a.channels.g.mean),b:y(a.channels.b.mean),alpha:y(a.channels.alpha.mean)},share:a.pixels>0?y(a.differing/a.pixels):0,regions:a.regions.slice(0,s.regions).map(f=>{const x=[M(f.box[0]*m),M(f.box[1]*p),M(f.box[2]*m),M(f.box[3]*p)];return{box:x,share:a.pixels>0?y(f.pixels/a.pixels):0,meanDeltaE:f.meanDeltaE,maxDeltaE:f.maxDeltaE,elements:i.flatMap((j,k)=>T(x,j.box,Math.max(m,p))?[k]:[])}})}}}async function B(e,n,t){return(await e.ask(n,t)).find(s=>s.answer!==null)?.answer}export async function screenFidelity(e,n={},t={}){const i={...S,...n},s=t.at??e.timeline.parts.map(o=>o.still),l=(await e.ask("scenery.fidelity",{times:s,...t.at===void 0?{}:{every:!0}})).flatMap(o=>o.answer),a=[],d=[];if(l.length===0)return{facts:a,sheets:d};const{piece:m,output:p,combo:f,format:x}=e.target,j=`rgb(${i.backdrop.join(", ")})`;let k;try{for(const o of l){const D={piece:m,output:p,combo:f,format:x,...o.part===void 0?{}:{part:o.part},t:Math.round((o.partStart+o.start)*1e6)/1e6};for(const h of o.screens){const F={layer:o.layer,start:o.start,end:o.end,screen:h.mesh,at:o.at,size:h.size,tolerance:i.tolerance,backdrop:[...i.backdrop]},b=w=>{a.push(A("scenery-screen-fidelity",D,{...F,missing:w}))};if(h.missing!==void 0){b(h.missing);continue}k!==o.t&&(await e.seek(o.t),k=o.t);let c,r,u;try{if(c=await B(e,"scenery.fidelity.read",{id:o.id,mesh:h.mesh,most:i.width}),typeof c=="object"&&c!==null&&(r=await B(e,"scenery.fidelity.lift",{id:o.id,mesh:h.mesh,backdrop:j}),typeof r=="object"&&r!==null))try{u=await e.grab(r.box)}finally{await e.ask("scenery.fidelity.restore",void 0)}}catch(w){b(`it could not be compared: ${(w instanceof Error?w.message:String(w)).split(`
3
+ `)[0]??""}`);continue}if(typeof c!="object"||c===null){b(c??"its scenery layer did not answer");continue}if(typeof r!="object"||r===null||!u){b(typeof r=="string"?r:"its element could not be laid flat");continue}const I={width:c.width,height:c.height,data:new Uint8Array(Buffer.from(c.data,"base64"))},g=$(u.png),E=u.x===r.box[0]&&u.y===r.box[1]&&g.width===r.box[2]&&g.height===r.box[3]?g:O(g,[r.box[0]-u.x,r.box[1]-u.y,r.box[2],r.box[3]]);if(!E){b("its element, laid flat, was not in the capture");continue}const L=fidelityOf(E,I,h.size,r.elements,i),z=A("scenery-screen-fidelity",D,{...F,texture:{level:c.level,size:[c.width,c.height],of:c.size,element:r.element},flat:[E.width,E.height],...L.data,...r.elements.length>0?{elements:r.elements}:{}});a.push(z),t.sheet&&d.push(await t.sheet(L.side,z))}}}finally{await e.ask("scenery.fidelity.restore",void 0).catch(()=>[])}return{facts:a,sheets:d}}export function bakeFact(e,n){const t={...e};if(delete t.baked,delete t.stale,delete t.elsewhere,delete t.command,t.laid)return t;const i=t.file===void 0?{}:n[t.file]??{},s=Object.keys(i).length>0;if(!t.asked&&!s)return;const l=Object.entries(i).filter(([d,m])=>m===t.digest&&d!==t.renderer).map(([d])=>d),a=t.renderer===P?"ALLYHUB_GPU=0 ":"";return{...t,baked:i,stale:s&&l.length===0,...l.length>0?{elsewhere:l}:{},command:`${a}allyhub scenery bake ${t.file??"<scenery module>"}`}}export async function withBakes(e,n){if(!e.some(s=>s.kind==="scenery-bake"))return[...e];const t=await C(n),i=[];for(const s of e)if(s.kind!=="scenery-bake")i.push(s);else{const l=bakeFact(s.data,t);l&&i.push({...s,data:l})}return i}export async function sceneryLayerFacts(e){const{piece:n,output:t,combo:i,format:s}=e.target;return(await e.ask("scenery.facts",void 0)).flatMap(a=>a.answer.map(d=>({piece:n,output:t,combo:i,format:s,...d})))}export async function sceneryCuts(e){return(await e.ask("scenery.cuts",{fps:e.timeline.fps})).flatMap(t=>t.answer)}
@@ -0,0 +1,18 @@
1
+ import { type SceneryBundle } from "../bundle.js";
2
+ /** A scenery bundled for its viewer, with the media its bundle may load. */
3
+ export interface SceneryBuilt {
4
+ bundle: SceneryBundle;
5
+ /** The project's media files, by project path. */
6
+ media: string[];
7
+ }
8
+ /**
9
+ * The scenery module `file` (a project path) bundled for its viewer into
10
+ * `outDir`; or, given `entry`, the module it writes for the file (a 3D
11
+ * model shown alone, in a scenery written for it).
12
+ */
13
+ export declare function viewerBundle(o: {
14
+ root: string;
15
+ file: string;
16
+ outDir: string;
17
+ }, entry?: () => Promise<string>): Promise<SceneryBuilt>;
18
+ //# sourceMappingURL=view.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{allyhubPlugin as c,dependenciesOf as d,listFiles as r,loadUserVite as u,readMedia as f}from"@allyhub/build";import{bundleScenery as w,lentPackages as m}from"../bundle.js";export async function viewerBundle(i,t){const{root:e,outDir:l}=i,o=await r(e),n=await f(e,o),a=await d(e),s=await u(e);return{bundle:await w({root:e,file:t?await t():i.file,outDir:l,dependencies:a,plugins:[c({root:e,media:n,dependencies:a,lent:m()})],...s?{user:s}:{}}),media:Object.keys(n)}}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/scenery-host",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -22,6 +22,10 @@
22
22
  "./bundle": {
23
23
  "types": "./dist/bundle.d.ts",
24
24
  "default": "./dist/bundle.js"
25
+ },
26
+ "./stage": {
27
+ "types": "./dist/stage/index.d.ts",
28
+ "default": "./dist/stage/index.js"
25
29
  }
26
30
  },
27
31
  "private": true,
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{publicNames as n}from"@allyhub/formats";import{FUNCTIONS as h}from"../calc/functions/index.js";import{AreaChart as d,BarChart as p,DataLabelList as m,DoughnutChart as c,GraphicalProperties as w,Legend as f,LineChart as u,LineProperties as y,Marker as g,NumericAxis as b,PieChart as k,Reference as _,ScatterChart as x,Scaling as C,Series as A,TextAxis as S}from"./charts.js";import{AutoFilter as v,ConditionalFormattingList as D,DataValidation as P,DataValidationList as F,DifferentialStyle as L,Rule as T}from"./rules.js";import{Alignment as R,Border as I,Color as N,Font as E,PatternFill as V,Side as B}from"./styles.js";import{Cell as W,ColumnDimension as j,DefinedName as G,DefinedNameDict as H,RowDimension as M,Table as O,TableList as U,Workbook as z,Worksheet as q}from"./workbook.js";import{Comment as X,HeaderFooter as J,HeaderFooterPart as K,Image as Q,PageMargins as Y,PageSetup as Z,SheetProtection as $}from"./page.js";const a={Series:{title:"A series' name in words, openpyxl's SeriesFactory argument, kept here as a field."},Workbook:{open:"Workbook.open(dir): a workbook's folder read (load_workbook(dir) is the same).",block_cells:"How many typed cells together go in a CSV file of their own: 100 unless set.",title:"The workbook's title, sheet.yaml's.",check:"wb.check(): what allyhub check would say of the workbook as it stands: a list of { file, line, message }."},Cell:{computed:"What the cell computes to, the workbook as it stands, saved or not."},Table:{key:"The column that lines rows up when two hands' changes merge."},DataValidation:{multiple:"A list's cell may hold several of its values, joined by separator: an .xlsx keeps them as text.",separator:"What joins a cell's choices: a comma and a space unless set."},PageSetup:{fitToWidth:"Pages wide; setting it or fitToHeight fits the sheet, with no pageSetUpPr to set."},ColumnDimension:{files:"Its cells name files, from the sheet's folder: true, or { separator, height }."}},ee=["add_data","set_categories","append","title","legend","width","height","style","anchor","series","dataLabels","x_axis","y_axis"],te={BarChart:["type","grouping","overlap","gapWidth","varyColors"],LineChart:["grouping"],AreaChart:["grouping"],PieChart:["varyColors"],DoughnutChart:["holeSize"],ScatterChart:[]},oe={Workbook:z.prototype,Worksheet:q.prototype,Cell:W.prototype,Font:E.prototype,PatternFill:V.prototype,Border:I.prototype,Side:B.prototype,Alignment:R.prototype,Color:N.prototype,Table:O.prototype,TableList:U.prototype,DefinedName:G.prototype,DefinedNameDict:H.prototype,ColumnDimension:j.prototype,RowDimension:M.prototype,ConditionalFormattingList:D.prototype,Rule:T.prototype,DifferentialStyle:L.prototype,DataValidation:P.prototype,DataValidationList:F.prototype,AutoFilter:v.prototype,BarChart:p.prototype,LineChart:u.prototype,AreaChart:d.prototype,PieChart:k.prototype,DoughnutChart:c.prototype,ScatterChart:x.prototype,Reference:_.prototype,Series:A.prototype,Legend:f.prototype,Scaling:C.prototype,TextAxis:S.prototype,NumericAxis:b.prototype,DataLabelList:m.prototype,Marker:g.prototype,GraphicalProperties:w.prototype,LineProperties:y.prototype,PageSetup:Z.prototype,PageMargins:Y.prototype,_HeaderFooterItem:J.prototype,_HeaderFooterPart:K.prototype,SheetProtection:$.prototype,Comment:X.prototype,Image:Q.prototype},r=["title","scaling","majorUnit","number_format","delete","majorGridlines"],ae={_HeaderFooterItem:["left","center","right"],Comment:["text","author"],Image:["path","width","height","anchor"],Workbook:["worksheets","defined_names","data_only","path","title","block_cells"],Cell:["row","column"],Worksheet:["min_row","min_column"],Font:["name","size","bold","italic","underline","strike","color"],PatternFill:["fill_type","fgColor","bgColor"],Border:["left","right","top","bottom"],Side:["style","color"],Alignment:["horizontal","vertical","wrap_text","shrink_to_fit","indent","text_rotation"],Color:["rgb"],Table:["displayName","ref","key","autoFilter"],DefinedName:["name","attr_text"],ColumnDimension:["index"],RowDimension:["index"],Rule:["type","operator","formula","stopIfTrue","rank","percent","bottom","aboveAverage","equalAverage","text","dxf"],DifferentialStyle:["font","fill","border"],DataValidation:["type","formula1","formula2","operator","allow_blank","showDropDown","showErrorMessage","showInputMessage","errorStyle","errorTitle","error","promptTitle","prompt","sqref"],DataValidationList:["dataValidation"],AutoFilter:["ref"],...Object.fromEntries(Object.entries(te).map(([e,t])=>[e,[...ee.filter(o=>!(/^(?:Pie|Doughnut)/u.test(e)&&o.endsWith("_axis"))),...t]])),Reference:["worksheet","min_col","min_row","max_col","max_row"],Series:["val","xVal","title","smooth","marker","graphicalProperties"],Legend:["position"],Scaling:["min","max","orientation"],TextAxis:r.filter(e=>e!=="majorUnit"),NumericAxis:r,DataLabelList:["showVal","showPercent","showCatName","showSerName","dLblPos"],Marker:["symbol","size"],GraphicalProperties:["solidFill","noFill","line"],LineProperties:["width","solidFill","noFill"]};export const HELPERS=["CellIsRule","ColorScaleRule","DataBarRule","FormulaRule","IconSetRule","column_index_from_string","coordinate_to_tuple","get_column_letter","range_boundaries"];const re=()=>{const e={};for(const[t,o]of Object.entries(oe)){const i=a[t]??{};e[t]=[...n(o),...ae[t]??[]].filter(l=>!Object.hasOwn(i,l)).sort()}return e},s=e=>[...h.values()].filter(t=>t.from===e).map(t=>t.name).sort();export const CAPABILITIES={reference:{library:"openpyxl",version:"3.1.5",docs:"https://openpyxl.readthedocs.io/"},holds:re(),functions:HELPERS,differs:["A workbook is a folder, not a file: load_workbook(dir) reads sheet.yaml and its CSV files, wb.save(dir) writes them, and only what changed is written. This API does not read or write .xlsx: allyhub sheet import and allyhub render --type xlsx do.","A keyword argument of openpyxl's is a field of an object: new Font({ bold: true }), new Table({ displayName, ref }), new DefinedName(name, { attr_text }). Classes are made with new.","A name openpyxl has that is not held throws where it is used, naming what the class holds. ws['A1'], ws['A1:B2'], ws['A'], ws[1], wb['Sheet'], ws.tables['t'], wb.defined_names['n'], ws.column_dimensions['A'] and ws.row_dimensions[1] are held; in TypeScript ws['A1'] is typed as a Cell, so write ws['A1'].value = v (ws['A1'] = v works at run time), and wb.get_sheet_by_name(name) is typed where wb[name] is not.","Rows and columns count from 1, as openpyxl's. iter_rows, rows, columns and values give arrays, not generators.","A colour is #RRGGBB; RRGGBB and AARRGGBB are taken, the alpha left out. Theme colours are not held.","cell.value of a date is a Date (read in UTC), a formula's its text, and with load_workbook(dir, { data_only: true }) what it computes to, which openpyxl reads from a file's cache and this computes.","column_dimensions' width is Excel's unit and row_dimensions' height points, as openpyxl's; the file holds pixels.","ws.merged_cells is an array of each merged range's text.","A table's rows are its CSV file, so ws.add_table(new Table({ displayName, ref })) moves the cells of ref there; its header row names its columns. A column whose every row has one formula, moved, is written as a calculated column.","A run of cells with one formula, moved, is written as one range key, and at least wb.block_cells typed cells together in a CSV file of their own (a block).","ws.title = 'New' renames the sheet in every formula, which openpyxl leaves to you.","ws.insert_rows, delete_rows, insert_cols and delete_cols rewrite every formula of the workbook as Excel does (a reference moves, a range grows or shrinks, one to what went is #REF!), move tables, blocks, merges and looks, and take rows and columns in or out of a table's CSV file. openpyxl moves cells and leaves formulas as they were. A table's header row is not deleted unless all of the table is.","A string that reads as another value (=, 12%, 2026-01-01) stays text, as openpyxl's does: its cell is written with a leading ' unless it starts with =, which makes it a formula.","A DataValidation refuses what breaks it and shows its prompt unless showErrorMessage or showInputMessage is false, as Excel's dialog starts: openpyxl's leave both off. A list's cell keeps its blank unless allow_blank is false.","ws.auto_filter.ref and add_filter_column say what a filter keeps, and the rows it leaves out are worked out from that, never written: a file made by openpyxl hides nothing until Excel reapplies it. A table has its own, table.autoFilter. add_sort_condition is not held: sorting is the rows of the files in order.","A chart reads its cells live, whatever else is in the file: there is no cache to refresh. chart.add_data and set_categories, and Series, take a Reference or a formula's text for a table's column or a spill, as add_data('orders[total]', { title: 'Total' }) or set_categories('orders[month]'), since a Reference cannot name one.","Series is made with new Series(values, { xvalues, title, title_from_data }); openpyxl's is the SeriesFactory function.","A chart's width and height are centimetres, as openpyxl's; the file holds pixels, and anchor a cell: ws.add_chart(chart, 'E2').","A LineChart's grouping is standard; a stacked area is an AreaChart. Chart styles are kept but draw nothing, as sheet.yaml has no place for them: chart.style is only read.","ws._charts lists a sheet's charts, those read from sheet.yaml among them, as the classes above.","In a rule, a fill's bgColor paints, or its fgColor where it has none. A rule's font holds bold, italic, underline, strike and a colour; alignment and number formats in a rule are not held.","workbook((wb, { data }) => { … }), the default export of an item's sheet.ts, makes sheets with these classes, on a workbook of its own that starts with none. They are made again from the code wherever the workbook is read, never saved: wb.save throws there."],adds:a,formulas:{own:s("allyhub"),formulajs:s("formulajs")}};
2
+ import{publicNames as n}from"@allyhub/formats";import{FUNCTIONS as h}from"../calc/functions/index.js";import{AreaChart as p,BarChart as d,DataLabelList as m,DoughnutChart as c,GraphicalProperties as w,Legend as f,LineChart as u,LineProperties as y,Marker as g,NumericAxis as b,PieChart as k,Reference as _,ScatterChart as x,Scaling as C,Series as A,TextAxis as S}from"./charts.js";import{AutoFilter as v,ConditionalFormattingList as D,DataValidation as L,DataValidationList as P,DifferentialStyle as F,Rule as T}from"./rules.js";import{Alignment as R,Border as I,Color as N,Font as E,PatternFill as V,Side as B}from"./styles.js";import{Cell as W,ColumnDimension as j,DefinedName as M,DefinedNameDict as G,RowDimension as H,Table as O,TableList as U,Workbook as z,Worksheet as q}from"./workbook.js";import{Comment as X,HeaderFooter as Y,HeaderFooterPart as J,Image as K,PageMargins as Q,PageSetup as Z,SheetProtection as $}from"./page.js";const a={Series:{title:"A series' name in words, openpyxl's SeriesFactory argument, kept here as a field."},Workbook:{open:"Workbook.open(path): a workbook read, by its file or a folder's sheet.yaml (load_workbook(path) is the same).",block_cells:"How many typed cells together go in a CSV file of their own: 100 unless set.",title:"The workbook's title, sheet.yaml's.",check:"wb.check(): what allyhub check would say of the workbook as it stands: a list of { file, line, message }."},Cell:{computed:"What the cell computes to, the workbook as it stands, saved or not."},Table:{key:"The column that lines rows up when two hands' changes merge."},DataValidation:{multiple:"A list's cell may hold several of its values, joined by separator: an .xlsx keeps them as text.",separator:"What joins a cell's choices: a comma and a space unless set."},PageSetup:{fitToWidth:"Pages wide; setting it or fitToHeight fits the sheet, with no pageSetUpPr to set."},ColumnDimension:{files:"Its cells name files, from the sheet's folder: true, or { separator, height }."}},ee=["add_data","set_categories","append","title","legend","width","height","style","anchor","series","dataLabels","x_axis","y_axis"],te={BarChart:["type","grouping","overlap","gapWidth","varyColors"],LineChart:["grouping"],AreaChart:["grouping"],PieChart:["varyColors"],DoughnutChart:["holeSize"],ScatterChart:[]},oe={Workbook:z.prototype,Worksheet:q.prototype,Cell:W.prototype,Font:E.prototype,PatternFill:V.prototype,Border:I.prototype,Side:B.prototype,Alignment:R.prototype,Color:N.prototype,Table:O.prototype,TableList:U.prototype,DefinedName:M.prototype,DefinedNameDict:G.prototype,ColumnDimension:j.prototype,RowDimension:H.prototype,ConditionalFormattingList:D.prototype,Rule:T.prototype,DifferentialStyle:F.prototype,DataValidation:L.prototype,DataValidationList:P.prototype,AutoFilter:v.prototype,BarChart:d.prototype,LineChart:u.prototype,AreaChart:p.prototype,PieChart:k.prototype,DoughnutChart:c.prototype,ScatterChart:x.prototype,Reference:_.prototype,Series:A.prototype,Legend:f.prototype,Scaling:C.prototype,TextAxis:S.prototype,NumericAxis:b.prototype,DataLabelList:m.prototype,Marker:g.prototype,GraphicalProperties:w.prototype,LineProperties:y.prototype,PageSetup:Z.prototype,PageMargins:Q.prototype,_HeaderFooterItem:Y.prototype,_HeaderFooterPart:J.prototype,SheetProtection:$.prototype,Comment:X.prototype,Image:K.prototype},r=["title","scaling","majorUnit","number_format","delete","majorGridlines"],ae={_HeaderFooterItem:["left","center","right"],Comment:["text","author"],Image:["path","width","height","anchor"],Workbook:["worksheets","defined_names","data_only","path","title","block_cells"],Cell:["row","column"],Worksheet:["min_row","min_column"],Font:["name","size","bold","italic","underline","strike","color"],PatternFill:["fill_type","fgColor","bgColor"],Border:["left","right","top","bottom"],Side:["style","color"],Alignment:["horizontal","vertical","wrap_text","shrink_to_fit","indent","text_rotation"],Color:["rgb"],Table:["displayName","ref","key","autoFilter"],DefinedName:["name","attr_text"],ColumnDimension:["index"],RowDimension:["index"],Rule:["type","operator","formula","stopIfTrue","rank","percent","bottom","aboveAverage","equalAverage","text","dxf"],DifferentialStyle:["font","fill","border"],DataValidation:["type","formula1","formula2","operator","allow_blank","showDropDown","showErrorMessage","showInputMessage","errorStyle","errorTitle","error","promptTitle","prompt","sqref"],DataValidationList:["dataValidation"],AutoFilter:["ref"],...Object.fromEntries(Object.entries(te).map(([e,t])=>[e,[...ee.filter(o=>!(/^(?:Pie|Doughnut)/u.test(e)&&o.endsWith("_axis"))),...t]])),Reference:["worksheet","min_col","min_row","max_col","max_row"],Series:["val","xVal","title","smooth","marker","graphicalProperties"],Legend:["position"],Scaling:["min","max","orientation"],TextAxis:r.filter(e=>e!=="majorUnit"),NumericAxis:r,DataLabelList:["showVal","showPercent","showCatName","showSerName","dLblPos"],Marker:["symbol","size"],GraphicalProperties:["solidFill","noFill","line"],LineProperties:["width","solidFill","noFill"]};export const HELPERS=["CellIsRule","ColorScaleRule","DataBarRule","FormulaRule","IconSetRule","column_index_from_string","coordinate_to_tuple","get_column_letter","range_boundaries"];const re=()=>{const e={};for(const[t,o]of Object.entries(oe)){const i=a[t]??{};e[t]=[...n(o),...ae[t]??[]].filter(l=>!Object.hasOwn(i,l)).sort()}return e},s=e=>[...h.values()].filter(t=>t.from===e).map(t=>t.name).sort();export const CAPABILITIES={reference:{library:"openpyxl",version:"3.1.5",docs:"https://openpyxl.readthedocs.io/"},holds:re(),functions:HELPERS,differs:["A workbook is a YAML file and the CSV files beside it: load_workbook(path) reads them, by the file or a folder's sheet.yaml, wb.save(path) writes them, and only what changed is written. This API does not read or write .xlsx: allyhub sheet import and allyhub render --type xlsx do.","A keyword argument of openpyxl's is a field of an object: new Font({ bold: true }), new Table({ displayName, ref }), new DefinedName(name, { attr_text }). Classes are made with new.","A name openpyxl has that is not held throws where it is used, naming what the class holds. ws['A1'], ws['A1:B2'], ws['A'], ws[1], wb['Sheet'], ws.tables['t'], wb.defined_names['n'], ws.column_dimensions['A'] and ws.row_dimensions[1] are held; in TypeScript ws['A1'] is typed as a Cell, so write ws['A1'].value = v (ws['A1'] = v works at run time), and wb.get_sheet_by_name(name) is typed where wb[name] is not.","Rows and columns count from 1, as openpyxl's. iter_rows, rows, columns and values give arrays, not generators.","A colour is #RRGGBB; RRGGBB and AARRGGBB are taken, the alpha left out. Theme colours are not held.","cell.value of a date is a Date (read in UTC), a formula's its text, and with load_workbook(path, { data_only: true }) what it computes to, which openpyxl reads from a file's cache and this computes.","column_dimensions' width is Excel's unit and row_dimensions' height points, as openpyxl's; the file holds pixels.","ws.merged_cells is an array of each merged range's text.","A table's rows are its CSV file, so ws.add_table(new Table({ displayName, ref })) moves the cells of ref there; its header row names its columns. A column whose every row has one formula, moved, is written as a calculated column.","A run of cells with one formula, moved, is written as one range key, and at least wb.block_cells typed cells together in a CSV file of their own (a block).","ws.title = 'New' renames the sheet in every formula, which openpyxl leaves to you.","ws.insert_rows, delete_rows, insert_cols and delete_cols rewrite every formula of the workbook as Excel does (a reference moves, a range grows or shrinks, one to what went is #REF!), move tables, blocks, merges and looks, and take rows and columns in or out of a table's CSV file. openpyxl moves cells and leaves formulas as they were. A table's header row is not deleted unless all of the table is.","A string that reads as another value (=, 12%, 2026-01-01) stays text, as openpyxl's does: its cell is written with a leading ' unless it starts with =, which makes it a formula.","A DataValidation refuses what breaks it and shows its prompt unless showErrorMessage or showInputMessage is false, as Excel's dialog starts: openpyxl's leave both off. A list's cell keeps its blank unless allow_blank is false.","ws.auto_filter.ref and add_filter_column say what a filter keeps, and the rows it leaves out are worked out from that, never written: a file made by openpyxl hides nothing until Excel reapplies it. A table has its own, table.autoFilter. add_sort_condition is not held: sorting is the rows of the files in order.","A chart reads its cells live, whatever else is in the file: there is no cache to refresh. chart.add_data and set_categories, and Series, take a Reference or a formula's text for a table's column or a spill, as add_data('orders[total]', { title: 'Total' }) or set_categories('orders[month]'), since a Reference cannot name one.","Series is made with new Series(values, { xvalues, title, title_from_data }); openpyxl's is the SeriesFactory function.","A chart's width and height are centimetres, as openpyxl's; the file holds pixels, and anchor a cell: ws.add_chart(chart, 'E2').","A LineChart's grouping is standard; a stacked area is an AreaChart. Chart styles are kept but draw nothing, as sheet.yaml has no place for them: chart.style is only read.","ws._charts lists a sheet's charts, those read from sheet.yaml among them, as the classes above.","In a rule, a fill's bgColor paints, or its fgColor where it has none. A rule's font holds bold, italic, underline, strike and a colour; alignment and number formats in a rule are not held.","workbook((wb, { data }) => { … }), the default export of the code a sheet's file names (code: ./forecast.ts), makes sheets with these classes, on a workbook of its own that starts with none. They are made again from the code wherever the workbook is read, never saved: wb.save throws there."],adds:a,formulas:{own:s("allyhub"),formulajs:s("formulajs")}};
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{Workbook as n}from"./workbook.js";export const WORKBOOK_BRAND="__allyhubWorkbook";export function isSheetCode(o){return typeof o=="object"&&o!==null&&WORKBOOK_BRAND in o}export function workbook(o){if(typeof o!="function")throw new TypeError("An item's sheet.ts exports one function: export default workbook((wb, { data }) => { … }).");return{[WORKBOOK_BRAND]:!0,generate:e=>{const t=new n;if(t.worksheets=[],t._making=!0,o(t,e)instanceof Promise)throw new TypeError("sheet.ts's function waits for nothing: it is not async, as it has no network and reads with data().");return t._generated()}}}
2
+ import{Workbook as r}from"./workbook.js";export const WORKBOOK_BRAND="__allyhubWorkbook";export function isSheetCode(o){return typeof o=="object"&&o!==null&&WORKBOOK_BRAND in o}export function workbook(o){if(typeof o!="function")throw new TypeError("A sheet's code exports one function: export default workbook((wb, { data }) => { … }).");return{[WORKBOOK_BRAND]:!0,generate:e=>{const t=new r;if(t.worksheets=[],t._making=!0,o(t,e)instanceof Promise)throw new TypeError("A sheet's code waits for nothing: it is not async, as it has no network and reads with data().");return t._generated()}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{SHEET_DATA as G,SHEET_FILE as P,strict as g}from"@allyhub/formats";import{Comment as z,HeaderFooter as A,PageMargins as V,PageSetup as Y,SheetProtection as q}from"./page.js";import{columnIndex as E,columnLetter as L,cellName as C,contains as N,rangeName as x,readAddress as y,readArea as k}from"../address.js";import{Calc as Q}from"../calc/engine.js";import{checkWorkbook as X}from"../check.js";import{readCsv as Z,writeCsv as ee}from"../csv.js";import{GENERATED as te}from"../generated.js";import{moveFormula as se,relativeKey as ne}from"../formula/move.js";import{parseFormula as F}from"../formula/parse.js";import{printFormula as B}from"../formula/print.js";import{rewriteFormula as oe}from"../formula/rewrite.js";import{isDateCode as S}from"../format.js";import{patchCsv as re}from"../patch.js";import{CellError as W,dateOfSerial as ie,isoOfSerial as le,readTyped as M,serialOfDate as ae,writeTyped as he}from"../values.js";import{FormulaCell as fe,readWorkbook as I,validName as H}from"../workbook.js";import{restructure as _e,tableShape as ce}from"../structure.js";import{patchYaml as ue}from"../write.js";import{anchorOf as de,chartOfSpec as me}from"./charts.js";import{HINT as w}from"./hint.js";import{rectangles as T}from"./rectangles.js";import{AutoFilter as K,ConditionalFormattingList as pe,DataValidationList as we,validationOf as ge,validationSpec as ke}from"./rules.js";import{alignmentLook as ye,alignmentOf as be,borderLook as ve,borderOf as xe,fillLook as Ee,fillOf as Se,fontLook as $e,fontOf as Ce}from"./styles.js";const J=()=>process.getBuiltinModule("node:fs"),$=(...l)=>process.getBuiltinModule("node:path").join(...l);export const BLOCK_CELLS=100;const Te=l=>Math.round(l*7+5),Oe=l=>(l-5)/7,Le=l=>l*4/3,Ne=l=>l*3/4;function Fe(l,e){const t={},s=l,n=e;for(const o of new Set([...Object.keys(s),...Object.keys(n)])){const r=n[o];JSON.stringify(r??!1)!==JSON.stringify(s[o]??!1)&&(t[o]=r??!1)}return t}const m=l=>Object.keys(l).length===0,b=(l,e)=>{if(!Number.isInteger(l)||l<1)throw new RangeError(`A ${e} is a whole number from 1: ${String(l)}.`);return l},j=(l,e)=>Object.fromEntries(Object.entries(l).filter(([t])=>t!==e));export class Cell{row;column;_ws;_value;_formula=void 0;_look;_changed=!1;_styled=!1;_fresh=!1;constructor(e,t,s){this._ws=e,this.row=t,this.column=s;const n=t-1,o=s-1,r=e._model?.at(n,o);return this._value=null,r instanceof fe?this._formula=r.text:r!==void 0&&(this._value=r),this._look=e._model?.lookAt(n,o)??{},this._fresh=r===void 0,g(this,"Cell",w)}get parent(){return this._ws}get coordinate(){return C({row:this.row-1,col:this.column-1})}get column_letter(){return L(this.column-1)}get col_idx(){return this.column}get value(){return this._ws.parent.data_only?this.computed:this._formula!==void 0?this._formula:this._shown(this._value)}set value(e){if(e===void 0)throw new TypeError(`${this.coordinate}: a value is not undefined.`);if(this._formula=void 0,this._changed=!0,this._ws.parent._pending=!0,e instanceof Date){if(Number.isNaN(e.getTime()))throw new TypeError(`${this.coordinate}: the date is not valid.`);this._value=ae(e),S(this._look.format)||(this._look={...this._look,format:Number.isInteger(this._value)?"yyyy-mm-dd":"yyyy-mm-dd hh:mm"});return}if(typeof e=="string"&&e.length>1&&e.startsWith("=")){this._formula=e,this._value=null;return}this._value=e}_shown(e){return typeof e=="number"&&S(this._look.format)?ie(e)??e:e instanceof W?e.code:e}get computed(){const{calc:e,model:t}=this._ws.parent._computed(),s=t.sheet(this._ws.title);return s?this._shown(e.value(s,this.row-1,this.column-1)):null}get data_type(){if(this._formula!==void 0)return"f";const e=this._value;return e===null?"n":typeof e=="number"?S(this._look.format)?"d":"n":typeof e=="boolean"?"b":e instanceof W?"e":"s"}get is_date(){return this.data_type==="d"}get hyperlink(){return this._ws._links[this.coordinate]}set hyperlink(e){e===void 0?Reflect.deleteProperty(this._ws._links,this.coordinate):this._ws._links[this.coordinate]=e,this._ws._changed()}get comment(){const e=this._ws._notes[this.coordinate];if(e!==void 0)return typeof e=="string"?new z(e):new z(e.text,e.author)}set comment(e){e===void 0?Reflect.deleteProperty(this._ws._notes,this.coordinate):this._ws._notes[this.coordinate]=e._file(),this._ws._changed()}get number_format(){return this._look.format??"General"}set number_format(e){this._setLook({format:e})}_setLook(e){this._look={...this._look,...e},this._styled=!0,this._ws.parent._pending=!0}get font(){return Ce(this._look)}set font(e){this._setLook($e(e))}get fill(){return Se(this._look)}set fill(e){this._setLook(Ee(e))}get border(){return xe(this._look)}set border(e){this._setLook(ve(e))}get alignment(){return be(this._look)}set alignment(e){this._setLook(ye(e))}get has_style(){return!m(this._look)}offset(e=0,t=0){return this._ws.cell(this.row+e,this.column+t)}}export class ColumnDimension{index;_width;_hidden;_files;_level;_ws;constructor(e,t){this._ws=e,this.index=t;const s=e._spec()?.columns?.[t];return this._level=s?.level,this._width=s?.width,this._hidden=s?.hidden,this._files=s?.files,g(this,"ColumnDimension",w)}get outlineLevel(){return this._level}set outlineLevel(e){this._level=e,this._ws._dimensions=!0}get files(){return this._files}set files(e){this._files=e,this._ws._dimensions=!0}get width(){return this._width===void 0?void 0:Oe(this._width)}set width(e){this._width=e===void 0?void 0:Te(e),this._ws._dimensions=!0}get hidden(){return this._hidden??!1}set hidden(e){this._hidden=e,this._ws._dimensions=!0}}export class RowDimension{index;_height;_hidden;_level;_ws;constructor(e,t){this._ws=e,this.index=t;const s=e._spec()?.rows?.[String(t)];return this._level=s?.level,this._height=s?.height,this._hidden=s?.hidden,g(this,"RowDimension",w)}get outlineLevel(){return this._level}set outlineLevel(e){this._level=e,this._ws._dimensions=!0}get height(){return this._height===void 0?void 0:Ne(this._height)}set height(e){this._height=e===void 0?void 0:Le(e),this._ws._dimensions=!0}get hidden(){return this._hidden??!1}set hidden(e){this._hidden=e,this._ws._dimensions=!0}}export class Table{displayName;ref;key;_spec;autoFilter;constructor(e){for(const t of Object.keys(e))if(!["displayName","ref","key"].includes(t))throw new TypeError(`Table takes displayName, ref and key; it has no ${t}. ${w}`);if(!H(e.displayName))throw new TypeError(`${e.displayName} cannot be a table's name.`);if(!k(e.ref))throw new TypeError(`${e.ref} is not a range.`);return this.displayName=e.displayName,this.ref=e.ref,this.key=e.key,this.autoFilter=new K(e.ref,()=>{}),g(this,"Table",w)}get name(){return this.displayName}}export class TableList{_items=new Map;constructor(){return g(this,"TableList",w,{key:e=>this._items.get(e)})}add(e){this._items.set(e.name,e)}get(e){return this._items.get(e)}keys(){return[...this._items.keys()]}values(){return[...this._items.values()]}items(){return[...this._items.entries()]}pop(e){const t=this._items.get(e);return this._items.delete(e),t}}export class DefinedName{name;attr_text;constructor(e,t){if(!H(e))throw new TypeError(`${e} cannot be a name.`);return this.name=e,this.attr_text=t.attr_text.replace(/^=/u,""),g(this,"DefinedName",w)}get value(){return this.attr_text}set value(e){this.attr_text=e.replace(/^=/u,"")}}export class DefinedNameDict{_items=new Map;constructor(){return g(this,"DefinedNameDict",w,{key:e=>this._items.get(e),setKey:(e,t)=>t instanceof DefinedName?(this._items.set(e,t),!0):!1})}add(e){this._items.set(e.name,e)}get(e){return this._items.get(e)}keys(){return[...this._items.keys()]}values(){return[...this._items.values()]}items(){return[...this._items.entries()]}pop(e){const t=this._items.get(e);return this._items.delete(e),t}}const v=l=>{if(l._formula!==void 0)return l._formula;const e=l._value;return typeof e=="number"&&S(l._look.format)?le(e):he(e)};function U(l){if(l._formula!==void 0)return l._formula;const e=l._value;return e===null?null:typeof e=="number"&&!S(l._look.format)||typeof e=="boolean"?e:v(l)}const Me=l=>l.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/gu,"")||"rows";export class Worksheet{_parent;_title;_was;_model;_cells=new Map;_columns=new Map;_rows=new Map;_tables=new TableList;_freeze;_merges=[];_state="visible";_dimensions=!1;_lastRow=0;_rules=[];_validations=[];_filter;_charts=[];_print={};_links={};_notes={};_pictures=[];_protect=!1;constructor(e,t,s){if(this._parent=e,this._title=t,this._filter=new K(void 0,()=>{this._parent._pending=!0}),s){this._model=s,this._was=t,this._freeze=s.spec.freeze,this._heldPage(s.spec),this._merges=[...s.spec.merges??[]],this._state=s.spec.hidden===!0?"hidden":"visible",this._lastRow=(s.used?.bottom??-1)+1,this._heldRules(s.spec);for(const n of s.tables){const o=new Table({displayName:n.name,ref:x(n.area),...n.spec.key===void 0?{}:{key:n.spec.key}});o._spec=n.spec;const{filter:r}=n.spec;if(r)for(const[a,f]of Object.entries(r.columns)){const c=n.column(a);c&&o.autoFilter._columns.set(c.index,f)}this._tables.add(o)}}return g(this,"Worksheet",w,{index:n=>this._rowCells(n),key:n=>this._at(n),setKey:(n,o)=>{const r=y(n);return r?(this.cell(r.row+1,r.col+1).value=o,!0):!1}})}_spec(){return this._parent._file.sheets.find(e=>e.name===(this._was??this._title))}_heldRules(e){this._rules=[...e?.conditional??[]],this._validations=(e?.validations??[]).map(ge),this._charts=(e?.charts??[]).map(me),this._filter.ref=e?.filter?.range,this._filter._columns.clear();const t=e?.filter?k(e.filter.range):void 0;for(const[s,n]of Object.entries(e?.filter?.columns??{})){const o=E(s);t&&o!==void 0&&this._filter._columns.set(o-t.left,n)}}_at(e){const t=y(e);if(t)return this.cell(t.row+1,t.col+1);const s=k(e);if(s)return this._area(s);const n=E(e);if(n!==void 0){const o=[];for(let r=1;r<=this.max_row;r++)o.push(this.cell(r,n+1));return o}}_rowCells(e){const t=[];for(let s=1;s<=this.max_column;s++)t.push(this.cell(e,s));return t}_area(e){const t=[];for(let s=e.top;s<=e.bottom;s++){const n=[];for(let o=e.left;o<=e.right;o++)n.push(this.cell(s+1,o+1));t.push(n)}return t}get parent(){return this._parent}get title(){return this._title}set title(e){const t=this._title;e!==t&&this._parent._renameSheet(this,t,e)}get sheet_state(){return this._state}set sheet_state(e){this._state=e}cell(e,t,s){if(e<1||t<1)throw new RangeError(`Row and column values must be at least 1: ${String(e)}, ${String(t)}.`);const n=(e-1)*16384+t-1;let o=this._cells.get(n);return o||(o=new Cell(this,e,t),this._cells.set(n,o)),s!==void 0&&(o.value=s),e>this._lastRow&&(this._lastRow=e),o}append(e){const t=this._lastRow+1,s=(n,o)=>{o!=null&&this.cell(t,n,o)};if(Array.isArray(e))e.forEach((n,o)=>{s(o+1,n)});else for(const[n,o]of Object.entries(e)){const r=/^\d+$/u.test(n)?Number(n)-1:E(n);if(r===void 0)throw new TypeError(`${n} is not a column.`);s(r+1,o)}this._lastRow=t}get max_row(){return Math.max(1,this._lastRow)}get max_column(){let e=this._model?.columnsUsed??0;for(const t of this._cells.values())(t._value!==null||t._formula!==void 0)&&t.column>e&&(e=t.column);return Math.max(1,e)}min_row=1;min_column=1;get dimensions(){return x({top:0,left:0,bottom:this.max_row-1,right:this.max_column-1})}iter_rows(e={}){const t=this._area({top:(e.min_row??1)-1,left:(e.min_col??1)-1,bottom:(e.max_row??this.max_row)-1,right:(e.max_col??this.max_column)-1});return e.values_only===!0?t.map(s=>s.map(n=>n.value)):t}iter_cols(e={}){const t=this.iter_rows(e);return(t[0]??[]).map((n,o)=>t.map(r=>r[o]))}get rows(){return this.iter_rows()}get columns(){return this.iter_cols()}get values(){return this.iter_rows({values_only:!0})}insert_rows(e,t=1){this._parent._restructure({op:"insert-rows",sheet:this._title,at:b(e,"row")-1,count:b(t,"amount")})}delete_rows(e,t=1){this._parent._restructure({op:"delete-rows",sheet:this._title,at:b(e,"row")-1,count:b(t,"amount")})}insert_cols(e,t=1){this._parent._restructure({op:"insert-columns",sheet:this._title,at:b(e,"column")-1,count:b(t,"amount")})}delete_cols(e,t=1){this._parent._restructure({op:"delete-columns",sheet:this._title,at:b(e,"column")-1,count:b(t,"amount")})}merge_cells(e){if(!k(e))throw new TypeError(`${e} is not a range.`);this._merges.includes(e)||this._merges.push(e),this._parent._pending=!0}unmerge_cells(e){this._merges=this._merges.filter(t=>t!==e),this._parent._pending=!0}get merged_cells(){return[...this._merges]}get freeze_panes(){return this._freeze}set freeze_panes(e){const t=e instanceof Cell?e.coordinate:e;if(t!==void 0&&!y(t))throw new TypeError(`${t} is not a cell.`);this._freeze=t,this._parent._pending=!0}get column_dimensions(){return new Proxy({},{get:(e,t)=>{if(typeof t!="string")return;const s=t.toUpperCase();if(E(s)===void 0)throw new TypeError(`${t} is not a column.`);let n=this._columns.get(s);return n||(n=new ColumnDimension(this,s),this._columns.set(s,n)),n}})}get row_dimensions(){return new Proxy({},{get:(e,t)=>{if(typeof t!="string"||!/^[1-9]\d*$/u.test(t))throw new TypeError(`${String(t)} is not a row.`);const s=Number(t);let n=this._rows.get(s);return n||(n=new RowDimension(this,s),this._rows.set(s,n)),n}})}get tables(){return this._tables}get conditional_formatting(){return new pe(this._rules,()=>{this._parent._pending=!0})}get data_validations(){return new we(this._validations,()=>{this._parent._pending=!0})}add_data_validation(e){this._validations.push(e),this._parent._pending=!0}get auto_filter(){return this._filter}_changed(){this._parent._pending=!0}_heldPage(e){this._print=structuredClone(e?.print??{}),this._links={...e?.links},this._notes={...e?.notes},this._pictures=[...e?.pictures??[]],this._protect=e?.protect===!0}get page_setup(){return new Y(this)}get page_margins(){return new V(this)}get oddHeader(){return new A(this,"header")}get oddFooter(){return new A(this,"footer")}get protection(){return new q(()=>this._protect,e=>{this._protect=e,this._changed()})}get print_area(){return this._print.area}set print_area(e){if(e===void 0)delete this._print.area;else if(k(e))this._print.area=e;else throw new TypeError(`${e} is not a range.`);this._changed()}get print_title_rows(){return this._print.title_rows}set print_title_rows(e){e===void 0?delete this._print.title_rows:this._print.title_rows=e,this._changed()}get print_title_cols(){return this._print.title_cols}set print_title_cols(e){e===void 0?delete this._print.title_cols:this._print.title_cols=e,this._changed()}add_image(e,t){const s=t??e.anchor??"A1";if(!y(s))throw new TypeError(`${s} is not a cell.`);this._pictures.push({file:e.path,at:s,...e.width===void 0?{}:{width:e.width},...e.height===void 0?{}:{height:e.height}}),this._changed()}add_chart(e,t){e.anchor=de(t)??e.anchor,this._charts.push(e),this._parent._pending=!0}add_table(e){if(this._parent._tableNamed(e.name))throw new Error(`There is already a table named ${e.name}.`);this._tables.add(e),this._parent._pending=!0}}export class Workbook{worksheets=[];defined_names=new DefinedNameDict;data_only;title;path;block_cells=BLOCK_CELLS;_file={sheets:[]};_text="";_disk={text:"",csv:new Map};_csv=new Map;_model;_names=new Map;_active=0;_pending=!1;_making=!1;_calc=void 0;constructor(e={}){this.data_only=e.data_only??!1;const t=g(this,"Workbook",w,{key:s=>this.worksheets.find(n=>n.title===s),index:s=>this.worksheets[s]});return t.worksheets=[new Worksheet(t,"Sheet")],t}static open(e,t={}){const s=new Workbook(t);return s.path=e,s._read(e),s}_read(e){const{readFileSync:t}=J(),s=t($(e,P),"utf8"),n=new Map,o=r=>{try{const a=t($(e,r),"utf8");return n.set(r,a),a}catch{return}};this._load(s,o);for(const[r,a]of n)this._keepCsv(r,a);this._disk={text:s,csv:n}}_keepCsv(e,t){const s=Z(t);this._csv.set(e,{parsed:s,rows:s.records.map(n=>n.end===n.start?[]:[...n.fields])})}_load(e,t){const{workbook:s,problems:n}=I({text:e,read:t});if(!s)throw new Error(`sheet.yaml cannot be opened: ${n.map(o=>o.message).join("; ")}`);this._text=e,this._file=structuredClone(s.file),this._model=s,this.title=s.title,this.worksheets=s.sheets.map(o=>new Worksheet(this,o.name,o));for(const o of s.names.values()){if(o.source.path?.[0]!=="names")continue;const r=o.formula?o.formula.text:o.value??null;this._names.set(o.name,r),this.defined_names.add(new DefinedName(o.name,{attr_text:String(r)}))}}get active(){const e=this.worksheets[this._active]??this.worksheets[0];if(!e)throw new Error("The workbook has no sheets.");return e}set active(e){this._active=this.worksheets.indexOf(e)}get sheetnames(){return this.worksheets.map(e=>e.title)}get_sheet_by_name(e){return this.worksheets.find(t=>t.title===e)}index(e){return this.worksheets.indexOf(e)}create_sheet(e,t){let s=e??"Sheet";for(let o=1;this.worksheets.some(r=>r.title===s);o++)s=`${e??"Sheet"}${String(o)}`;const n=new Worksheet(this,s);return this.worksheets.splice(t??this.worksheets.length,0,n),this._pending=!0,n}remove(e){this.worksheets=this.worksheets.filter(t=>t!==e),this._pending=!0}move_sheet(e,t=0){const s=this.worksheets.indexOf(e);this.worksheets.splice(s,1),this.worksheets.splice(s+t,0,e),this._pending=!0}_tableNamed(e){for(const t of this.worksheets){const s=t._tables.get(e);if(s)return s}}_renameSheet(e,t,s){if(this.worksheets.some(o=>o!==e&&o.title===s))throw new Error(`There is already a sheet named ${s}.`);this._apply(),this._rewrite({op:"rename-sheet",from:t,to:s}),e._title=s,e._was=s;const n=this._file.sheets.find(o=>o.name===t);n&&(n.name=s),this._apply()}_restructure(e){this._apply();const t=_e({file:this._file,rows:new Map([...this._csv].map(([n,o])=>[n,o.rows]))},e);if(t.refused!==void 0)throw new Error(t.refused==="table-header"?"A table's header row is not deleted: delete the table's rows, or all of it.":"That sheet is not there.");this._file=t.file;for(const[n,o]of t.rows){const r=this._csv.get(n);r&&(r.rows=o.map(a=>[...a]))}for(const n of this.worksheets){const o=this._file.sheets.find(r=>r.name===n._title);n._cells.clear(),n._columns.clear(),n._rows.clear(),n._merges=[...o?.merges??[]],n._freeze=o?.freeze,n._heldPage(o),n._heldRules(o)}const s=this._build();this._rebase(s.text,s.files);for(const n of this.worksheets){const o=this._model?.sheet(n._title);if(o){n._lastRow=(o.used?.bottom??-1)+1;for(const r of o.tables){const a=n._tables.get(r.name);a&&(a.ref=x(r.area))}}}}_rewrite(e){const t=(n,o)=>{const r=F(n);if(!r.ok)return n;const a=oe(r.node,e,o);return a===r.node?n:B(a)},{_file:s}=this;if(s.names){for(const[n,o]of Object.entries(s.names))if(typeof o=="string"&&o.startsWith("=")){const r=t(o,s.sheets[0]?.name??"");s.names[n]=r,this._names.set(n,r);const a=this.defined_names.get(n);a&&(a.attr_text=r.slice(1))}}for(const n of s.checks??[])n.formula=t(n.formula,s.sheets[0]?.name??"");for(const n of s.sheets){for(const[o,r]of Object.entries(n.cells??{}))typeof r=="string"&&r.startsWith("=")?n.cells[o]=t(r,n.name):r!==null&&typeof r=="object"&&r.formula!==void 0&&(r.formula=t(r.formula,n.name));for(const o of n.tables??[]){for(const r of Object.values(o.columns??{}))r.formula!==void 0&&(r.formula=t(r.formula,n.name));this._rewriteCsv(o.rows,n.name,t)}for(const o of n.blocks??[])this._rewriteCsv(o.rows,n.name,t)}}_rewriteCsv(e,t,s){const n=this._csv.get(e);n&&(n.rows=n.rows.map(o=>o.map(r=>M(r).formula!==void 0?s(r,t):r)))}_sheetEntry(e){const t=e._was??e._title;let s=this._file.sheets.find(n=>n.name===t);return s||(s={name:e._title},this._file.sheets.push(s)),s.name=e._title,s}_dataPath(e){const t=`${G}/${Me(e)}`;let s=`${t}.csv`;const n=o=>this._csv.has(o)||this._file.sheets.some(r=>r.tables?.some(a=>a.rows===o)??r.blocks?.some(a=>a.rows===o));for(let o=2;n(s);o++)s=`${t}-${String(o)}.csv`;return s}_writeNewTable(e,t,s){const n=k(s.ref);if(!n)throw new Error(`${s.ref} is not a range.`);const o=[];for(let i=n.left;i<=n.right;i++){const h=e.cell(n.top+1,i+1).value;if(h===null||h==="")throw new Error(`Table ${s.name}'s header has no name at ${C({row:n.top,col:i})}.`);o.push(String(h))}const r={},a=[];o.forEach((i,h)=>{const _=n.left+h,d=this._columnFormula(e,n,_);d===void 0?a.push(h):r[i]={formula:d};const p=this._columnFormat(e,n,_);p!==void 0&&(r[i]={...r[i],format:p})}),this._columnsStyled(e,n);const f=[a.map(i=>o[i]??"")];for(let i=n.top+1;i<=n.bottom;i++)f.push(a.map(h=>v(e.cell(i+1,n.left+h+1))));t.cells&&(t.cells=Object.fromEntries(Object.entries(t.cells).filter(([i])=>{const h=y(i);return!h||!N(n,h.row,h.col)})));const c=this._dataPath(s.name);this._csv.set(c,{parsed:void 0,rows:f});const u={name:s.name,at:C({row:n.top,col:n.left}),rows:c,...s.key===void 0?{}:{key:s.key},...m(r)?{}:{columns:r}};(t.tables??=[]).push(u),s._spec=u}_columnsStyled(e,t){for(let s=t.left;s<=t.right;s++)for(let n=t.top+1;n<=t.bottom;n++){const o=e.cell(n+1,s+1),{format:r,...a}=this._ownLook(o);r!==void 0&&m(a)&&(o._styled=!1)}}_columnFormula(e,t,s){if(t.bottom<=t.top)return;const n=e.cell(t.top+2,s+1),o=R(n);if(o!==void 0){for(let r=t.top+2;r<=t.bottom;r++)if(R(e.cell(r+1,s+1))!==o)return;return n._formula}}_columnFormat(e,t,s){if(t.bottom<=t.top)return;const n=r=>this._ownLook(e.cell(r+1,s+1)).format,o=n(t.top+1);for(let r=t.top+2;r<=t.bottom;r++)if(n(r)!==o)return;return o}_held(e){const t=this._csv.get(e);if(!t)throw new Error(`${e} was not read.`);return t}_setCsvCell(e,t,s,n){const{rows:o}=this._held(e);for(;o.length<=t;)o.push([]);const r=o[t];if(r){for(;r.length<=s;)r.push("");r[s]=n}}_recordOf(e,t){let s=0;for(let n=0;n<t;){if(s+=1,s>=e.length)return s+t-n-1;e[s]?.length!==0&&(n+=1)}return s}_writeTableCell(e,t,s){const n=this._held(e.rows),o=n.rows[0]??[],r=s.column-1-t.left,a=this._recordOf(n.rows,s.row-1-t.top),f=Object.keys(e.columns??{}).filter(_=>!o.some(d=>d.trim().toLowerCase()===_.toLowerCase())),u=[...o.map(_=>_.trim()),...f][r];if(u===void 0)return;if(a===0){r<o.length&&(o[r]=v(s));return}const i=e.columns?.[u]?.formula;if(i!==void 0){const _=this._movedColumn(i,t,s);if(s._formula===_){const d=o.findIndex(p=>p.trim()===u);d>=0&&this._setCsvCell(e.rows,a,d,"");return}}let h=o.findIndex(_=>_.trim()===u);h<0&&(h=o.length,this._setCsvCell(e.rows,0,h,u)),this._setCsvCell(e.rows,a,h,v(s))}_movedColumn(e,t,s){const n=F(e);if(!n.ok)return e;const o=s.row-1-(t.top+1);return o===0?e:B(se(n.node,o,0))}_apply(){this.title===void 0?delete this._file.title:this._file.title=this.title;const e=new Set(this.worksheets.map(s=>s._was??s._title));this._file.sheets=this._file.sheets.filter(s=>e.has(s.name));for(const s of this.worksheets)this._applySheet(s);this._file.sheets=this.worksheets.map(s=>this._sheetEntry(s)),this._applyNames();const t=this._build();this._rebase(t.text,t.files)}_applyNames(){const e={};for(const t of this.defined_names.values()){const s=M(t.attr_text),n=this._names.get(t.name);e[t.name]=n!==void 0&&String(n).replace(/^=/u,"")===t.attr_text?n:typeof s.value=="number"||typeof s.value=="boolean"?s.value:/^"[^"]*"$/u.test(t.attr_text)?t.attr_text.slice(1,-1):`=${t.attr_text}`}m(e)?delete this._file.names:this._file.names=e}_applySheet(e){const t=this._sheetEntry(e);e._freeze===void 0?delete t.freeze:t.freeze=e._freeze,m(e._print)?delete t.print:t.print=e._print,m(e._links)?delete t.links:t.links=e._links,m(e._notes)?delete t.notes:t.notes=e._notes,e._pictures.length===0?delete t.pictures:t.pictures=e._pictures,e._protect?t.protect=!0:delete t.protect,e._merges.length===0?delete t.merges:t.merges=[...e._merges],e._state==="hidden"?t.hidden=!0:delete t.hidden,e._rules.length===0?delete t.conditional:t.conditional=[...e._rules],e._validations.length===0?delete t.validations:t.validations=e._validations.map(ke),e._charts.length===0?delete t.charts:t.charts=e._charts.map(n=>n._spec(e._title)),this._applyFilter(e,t);const s=new Set(t.tables?.map(n=>n.name.toLowerCase()));for(const n of e._tables.values())s.has(n.name.toLowerCase())||this._writeNewTable(e,t,n);this._applyTableFilters(e,t),this._applyCells(e,t),this._applyDimensions(e,t),t.cells&&m(t.cells)&&delete t.cells,t.columns&&m(t.columns)&&delete t.columns,t.rows&&m(t.rows)&&delete t.rows,t.format?.length===0&&delete t.format,t.tables?.length===0&&delete t.tables,t.blocks?.length===0&&delete t.blocks}_applyFilter(e,t){const{ref:s,_columns:n}=e._filter;if(s===void 0){delete t.filter;return}const o=k(s);if(!o)throw new TypeError(`${s} is not a range.`);const r={};for(const[a,f]of n)r[L(o.left+a)]=f;t.filter={range:s,...m(r)?{}:{columns:r}}}_applyTableFilters(e,t){for(const s of t.tables??[]){const n=e._tables.get(s.name);if(!n||n.autoFilter._columns.size===0)continue;const o=this._csv.get(s.rows)?.rows??[],r=ce(s,o)?.names??[],a={};for(const[f,c]of n.autoFilter._columns){const u=r[f];if(u===void 0)throw new RangeError(`Table ${s.name} has no column at ${String(f)}.`);a[u]=c}s.filter={columns:a}}}_applyDimensions(e,t){if(e._dimensions){for(const[s,n]of e._columns){const o={...t.columns?.[s]};n._width===void 0?delete o.width:o.width=n._width,n._hidden===void 0?delete o.hidden:o.hidden=n._hidden,n._files===void 0?delete o.files:o.files=n._files,n._level===void 0?delete o.level:o.level=n._level;const r=j(t.columns??{},s);t.columns=m(o)?r:{...r,[s]:o}}for(const[s,n]of e._rows){const o={...t.rows?.[String(s)]};n._height===void 0?delete o.height:o.height=n._height,n._hidden===void 0?delete o.hidden:o.hidden=n._hidden,n._level===void 0?delete o.level:o.level=n._level;const r=j(t.rows??{},String(s));t.rows=m(o)?r:{...r,[String(s)]:o}}e._dimensions=!1}}_applyCells(e,t){const s=(t.tables??[]).flatMap(r=>{const a=y(r.at),f=e._tables.get(r.name),c=f?k(f.ref):void 0;return a&&c?[{entry:r,area:c}]:[]}),n=(t.blocks??[]).flatMap(r=>{const a=e._model?.blocks.find(f=>f.file===r.rows);return a?[{entry:r,area:a.area}]:[]}),o=[];for(const r of e._cells.values()){if(!r._changed&&!r._styled)continue;const a=r.row-1,f=r.column-1,c=s.find(i=>N(i.area,a,f)),u=n.find(i=>N(i.area,a,f));c?(r._changed&&this._writeTableCell(c.entry,c.area,r),r._styled&&this._styleByFormat(t,r)):u?(r._changed&&this._setCsvCell(u.entry.rows,a-u.area.top,f-u.area.left,v(r)),r._styled&&this._styleByFormat(t,r)):r._fresh&&!e._model?.keys.has(a*16384+f)?o.push(r):this._writeLoose(e,t,r),r._changed=!1,r._styled=!1}this._consolidate(e,t,o),je(t)}_styleByFormat(e,t){(e.format??=[]).push({range:t.coordinate,...this._ownLook(t)})}_ownLook(e){const t=e._ws._model?.lookAt(e.row-1,e.column-1)??{},s=Fe(t,e._look);return s.format!==void 0&&e._formula===void 0&&M(v(e)).format===s.format&&delete s.format,s}_writeLoose(e,t,s){const n=s.coordinate,o=t.cells??={},r=U(s),a=this._ownLook(s),f=o[n],u={...f!==null&&typeof f=="object"?Object.fromEntries(Object.entries(f).filter(([_])=>_!=="value"&&_!=="formula"&&_!=="name")):{},...a},i=f!==null&&typeof f=="object"&&f.name!==void 0?{name:f.name}:{},h=e._model?.at(s.row-1,s.column-1)!==void 0;if(r===null&&m(u)&&!h){t.cells=j(o,n);return}o[n]=m(u)&&m(i)?r:{...typeof r=="string"&&r.startsWith("=")?{formula:r}:r===null?{}:{value:r},...i,...u}}_consolidate(e,t,s){const n=s.filter(i=>i._value!==null||i._formula!==void 0),o=new Map;for(const i of s){const h=this._ownLook(i);if(m(h))continue;const _=JSON.stringify(h),d=o.get(_);d?d.push(i):o.set(_,[i])}const r=new Map(n.map(i=>[`${String(i.row)}:${String(i.column)}`,i])),a=i=>r.get(`${String(i.row+1)}:${String(i.col+1)}`)??e.cell(i.row+1,i.col+1),f=new Map,c=[];for(const i of n){const h={row:i.row-1,col:i.column-1},_=i._formula===void 0?void 0:R(i);if(_===void 0){c.push(h);continue}const d=f.get(_);d?d.push(h):f.set(_,[h])}const u=t.cells??={};for(const i of f.values())for(const h of T(i))u[x(h)]=a({row:h.top,col:h.left})._formula??null;for(const i of T(c))if((i.bottom-i.top+1)*(i.right-i.left+1)>=this.block_cells){const _=[];for(let p=i.top;p<=i.bottom;p++){const D=[];for(let O=i.left;O<=i.right;O++)D.push(v(a({row:p,col:O})));_.push(D)}const d=this._dataPath(e._title);this._csv.set(d,{parsed:void 0,rows:_}),(t.blocks??=[]).push({at:C({row:i.top,col:i.left}),rows:d})}else for(let _=i.top;_<=i.bottom;_++)for(let d=i.left;d<=i.right;d++){const p=a({row:_,col:d});u[p.coordinate]=U(p)}for(const i of o.values()){const[h]=i;if(!h)continue;const _=this._ownLook(h),d=i.map(p=>({row:p.row-1,col:p.column-1}));for(const p of T(d))(t.format??=[]).push({range:x(p),..._})}}_build(){const e=new Map;for(const[t,s]of this._csv)e.set(t,s.parsed?re(s.parsed,s.rows):ee(s.rows));return{text:ue(this._text,this._file),files:e}}_rebase(e,t){const{workbook:s,problems:n}=I({text:e,read:o=>t.get(o)});if(!s)throw new Error(`The workbook is not one: ${n.map(o=>o.message).join("; ")}`);this._text=e,this._file=structuredClone(s.file),this._model=s;for(const[o,r]of t)this._keepCsv(o,r);this._calc=void 0,this._pending=!1;for(const o of this.worksheets){o._was=o._title;const r=s.sheet(o._title);r&&(o._model=r);for(const a of o._cells.values())a._fresh=r?.at(a.row-1,a.column-1)===void 0}this._names=new Map;for(const o of s.names.values())o.source.path?.[0]==="names"&&this._names.set(o.name,o.formula?o.formula.text:o.value??null)}_computed(){const e=[...this.defined_names.values()];if((this._pending||e.length!==this._names.size||e.some(t=>String(this._names.get(t.name)).replace(/^=/u,"")!==t.attr_text))&&this._apply(),!this._calc){const t=this._model;if(!t)throw new Error("The workbook has no sheets.");this._calc={calc:new Q(t).calculate(),model:t}}return this._calc}check(){this._apply();const{text:e,files:t}=this._build();return X({text:e,read:s=>t.get(s)}).problems}_generated(){if(this.worksheets.length===0)return this._applyNames(),{sheets:[],csv:{},...this._file.names?{names:this._file.names}:{}};this._apply();const e=structuredClone(this._file.sheets),t=n=>`${te}${n}`;for(const n of e){for(const o of n.tables??[])o.rows=t(o.rows);for(const o of n.blocks??[])o.rows=t(o.rows)}const s={};for(const[n,o]of this._build().files)s[t(n)]=o;return{sheets:e,csv:s,...this._file.names?{names:this._file.names}:{}}}save(e){if(this._making)throw new Error("sheet.ts makes sheets and saves nothing: what it adds to wb is what it makes.");const t=e??this.path;if(t===void 0)throw new TypeError("A new workbook is saved to a folder: wb.save('finance/budget').");if(this.worksheets.length===0)throw new Error("A workbook has at least one sheet.");const{text:s,csv:n}=this._disk;this._apply();const o=new Set(this._file.sheets.flatMap(i=>[...(i.tables??[]).map(h=>h.rows),...(i.blocks??[]).map(h=>h.rows)])),r=[...this._csv.keys()].filter(i=>!o.has(i));for(const i of r)this._csv.delete(i);const{mkdirSync:a,rmSync:f,writeFileSync:c}=J(),u=process.getBuiltinModule("node:path");a(t,{recursive:!0}),(this._text!==s||e!==void 0)&&c($(t,P),this._text);for(const[i,h]of this._csv){const _=h.parsed?.source??"";if(e===void 0&&n.get(i)===_)continue;const d=$(t,i);a(u.dirname(d),{recursive:!0}),c(d,_)}if(e===void 0||t===this.path)for(const i of r)f($(t,i),{force:!0});this._disk={text:this._text,csv:new Map([...this._csv].map(([i,h])=>[i,h.parsed?.source??""]))},this.path=t}}function R(l){if(l._formula===void 0)return;const e=F(l._formula);if(e.ok)return ne(e.node,l.row-1,l.column-1)}function je(l){const e=l.format;if(!e||e.length<2)return;const t=[],s=new Map;for(const n of e){const{range:o,...r}=n,a=y(o);if(!a){t.push(n);continue}const f=JSON.stringify(r),c=s.get(f);c?c.places.push(a):s.set(f,{look:r,places:[a]})}for(const{look:n,places:o}of s.values())for(const r of T(o))t.push({range:x(r),...n});l.format=t}export function load_workbook(l,e={}){return Workbook.open(l,e)}export const get_column_letter=l=>L(l-1);export function column_index_from_string(l){const e=E(l);if(e===void 0)throw new TypeError(`${l} is not a column.`);return e+1}export function coordinate_to_tuple(l){const e=y(l);if(!e)throw new TypeError(`${l} is not a cell.`);return[e.row+1,e.col+1]}export function range_boundaries(l){const e=k(l);if(!e)throw new TypeError(`${l} is not a range.`);return[e.left+1,e.top+1,e.right+1,e.bottom+1]}
2
+ import{strict as g}from"@allyhub/formats";import{Comment as z,HeaderFooter as A,PageMargins as G,PageSetup as V,SheetProtection as Y}from"./page.js";import{columnIndex as C,columnLetter as N,cellName as E,contains as F,rangeName as x,readAddress as y,readArea as k}from"../address.js";import{Calc as q}from"../calc/engine.js";import{checkWorkbook as Q}from"../check.js";import{readCsv as X,writeCsv as Z}from"@allyhub/formats";import{GENERATED as ee}from"../generated.js";import"@allyhub/formats";import{moveFormula as te,relativeKey as se}from"../formula/move.js";import{parseFormula as M}from"../formula/parse.js";import{printFormula as B}from"../formula/print.js";import{rewriteFormula as ne}from"../formula/rewrite.js";import{isDateCode as S}from"../format.js";import{patchCsv as oe}from"../patch.js";import{CellError as W,dateOfSerial as ie,isoOfSerial as re,readTyped as j,serialOfDate as le,writeTyped as ae}from"../values.js";import{FormulaCell as he,readWorkbook as I,validName as K}from"../workbook.js";import{restructure as fe,tableShape as ce}from"../structure.js";import{patchYaml as _e}from"../write.js";import{anchorOf as ue,chartOfSpec as de}from"./charts.js";import{HINT as w}from"./hint.js";import{rectangles as T}from"./rectangles.js";import{AutoFilter as J,ConditionalFormattingList as me,DataValidationList as pe,validationOf as we,validationSpec as ge}from"./rules.js";import{alignmentLook as ke,alignmentOf as ye,borderLook as be,borderOf as ve,fillLook as xe,fillOf as $e,fontLook as Ce,fontOf as Se}from"./styles.js";const R=()=>process.getBuiltinModule("node:fs"),O=(...l)=>process.getBuiltinModule("node:path").join(...l);function H(l){if(!/\.ya?ml$/iu.test(l))throw new TypeError(`${l} is not a sheet's file: a workbook is its YAML file, wb.save('finance/budget.yaml'), load_workbook('finance/budget.yaml').`);return l}export const BLOCK_CELLS=100;const Ee=l=>Math.round(l*7+5),Te=l=>(l-5)/7,Oe=l=>l*4/3,Le=l=>l*3/4;function Ne(l,e){const t={},s=l,n=e;for(const o of new Set([...Object.keys(s),...Object.keys(n)])){const i=n[o];JSON.stringify(i??!1)!==JSON.stringify(s[o]??!1)&&(t[o]=i??!1)}return t}const p=l=>Object.keys(l).length===0,b=(l,e)=>{if(!Number.isInteger(l)||l<1)throw new RangeError(`A ${e} is a whole number from 1: ${String(l)}.`);return l},D=(l,e)=>Object.fromEntries(Object.entries(l).filter(([t])=>t!==e));export class Cell{row;column;_ws;_value;_formula=void 0;_look;_changed=!1;_styled=!1;_fresh=!1;constructor(e,t,s){this._ws=e,this.row=t,this.column=s;const n=t-1,o=s-1,i=e._model?.at(n,o);return this._value=null,i instanceof he?this._formula=i.text:i!==void 0&&(this._value=i),this._look=e._model?.lookAt(n,o)??{},this._fresh=i===void 0,g(this,"Cell",w)}get parent(){return this._ws}get coordinate(){return E({row:this.row-1,col:this.column-1})}get column_letter(){return N(this.column-1)}get col_idx(){return this.column}get value(){return this._ws.parent.data_only?this.computed:this._formula!==void 0?this._formula:this._shown(this._value)}set value(e){if(e===void 0)throw new TypeError(`${this.coordinate}: a value is not undefined.`);if(this._formula=void 0,this._changed=!0,this._ws.parent._pending=!0,e instanceof Date){if(Number.isNaN(e.getTime()))throw new TypeError(`${this.coordinate}: the date is not valid.`);this._value=le(e),S(this._look.format)||(this._look={...this._look,format:Number.isInteger(this._value)?"yyyy-mm-dd":"yyyy-mm-dd hh:mm"});return}if(typeof e=="string"&&e.length>1&&e.startsWith("=")){this._formula=e,this._value=null;return}this._value=e}_shown(e){return typeof e=="number"&&S(this._look.format)?ie(e)??e:e instanceof W?e.code:e}get computed(){const{calc:e,model:t}=this._ws.parent._computed(),s=t.sheet(this._ws.title);return s?this._shown(e.value(s,this.row-1,this.column-1)):null}get data_type(){if(this._formula!==void 0)return"f";const e=this._value;return e===null?"n":typeof e=="number"?S(this._look.format)?"d":"n":typeof e=="boolean"?"b":e instanceof W?"e":"s"}get is_date(){return this.data_type==="d"}get hyperlink(){return this._ws._links[this.coordinate]}set hyperlink(e){e===void 0?Reflect.deleteProperty(this._ws._links,this.coordinate):this._ws._links[this.coordinate]=e,this._ws._changed()}get comment(){const e=this._ws._notes[this.coordinate];if(e!==void 0)return typeof e=="string"?new z(e):new z(e.text,e.author)}set comment(e){e===void 0?Reflect.deleteProperty(this._ws._notes,this.coordinate):this._ws._notes[this.coordinate]=e._file(),this._ws._changed()}get number_format(){return this._look.format??"General"}set number_format(e){this._setLook({format:e})}_setLook(e){this._look={...this._look,...e},this._styled=!0,this._ws.parent._pending=!0}get font(){return Se(this._look)}set font(e){this._setLook(Ce(e))}get fill(){return $e(this._look)}set fill(e){this._setLook(xe(e))}get border(){return ve(this._look)}set border(e){this._setLook(be(e))}get alignment(){return ye(this._look)}set alignment(e){this._setLook(ke(e))}get has_style(){return!p(this._look)}offset(e=0,t=0){return this._ws.cell(this.row+e,this.column+t)}}export class ColumnDimension{index;_width;_hidden;_files;_level;_ws;constructor(e,t){this._ws=e,this.index=t;const s=e._spec()?.columns?.[t];return this._level=s?.level,this._width=s?.width,this._hidden=s?.hidden,this._files=s?.files,g(this,"ColumnDimension",w)}get outlineLevel(){return this._level}set outlineLevel(e){this._level=e,this._ws._dimensions=!0}get files(){return this._files}set files(e){this._files=e,this._ws._dimensions=!0}get width(){return this._width===void 0?void 0:Te(this._width)}set width(e){this._width=e===void 0?void 0:Ee(e),this._ws._dimensions=!0}get hidden(){return this._hidden??!1}set hidden(e){this._hidden=e,this._ws._dimensions=!0}}export class RowDimension{index;_height;_hidden;_level;_ws;constructor(e,t){this._ws=e,this.index=t;const s=e._spec()?.rows?.[String(t)];return this._level=s?.level,this._height=s?.height,this._hidden=s?.hidden,g(this,"RowDimension",w)}get outlineLevel(){return this._level}set outlineLevel(e){this._level=e,this._ws._dimensions=!0}get height(){return this._height===void 0?void 0:Le(this._height)}set height(e){this._height=e===void 0?void 0:Oe(e),this._ws._dimensions=!0}get hidden(){return this._hidden??!1}set hidden(e){this._hidden=e,this._ws._dimensions=!0}}export class Table{displayName;ref;key;_spec;autoFilter;constructor(e){for(const t of Object.keys(e))if(!["displayName","ref","key"].includes(t))throw new TypeError(`Table takes displayName, ref and key; it has no ${t}. ${w}`);if(!K(e.displayName))throw new TypeError(`${e.displayName} cannot be a table's name.`);if(!k(e.ref))throw new TypeError(`${e.ref} is not a range.`);return this.displayName=e.displayName,this.ref=e.ref,this.key=e.key,this.autoFilter=new J(e.ref,()=>{}),g(this,"Table",w)}get name(){return this.displayName}}export class TableList{_items=new Map;constructor(){return g(this,"TableList",w,{key:e=>this._items.get(e)})}add(e){this._items.set(e.name,e)}get(e){return this._items.get(e)}keys(){return[...this._items.keys()]}values(){return[...this._items.values()]}items(){return[...this._items.entries()]}pop(e){const t=this._items.get(e);return this._items.delete(e),t}}export class DefinedName{name;attr_text;constructor(e,t){if(!K(e))throw new TypeError(`${e} cannot be a name.`);return this.name=e,this.attr_text=t.attr_text.replace(/^=/u,""),g(this,"DefinedName",w)}get value(){return this.attr_text}set value(e){this.attr_text=e.replace(/^=/u,"")}}export class DefinedNameDict{_items=new Map;constructor(){return g(this,"DefinedNameDict",w,{key:e=>this._items.get(e),setKey:(e,t)=>t instanceof DefinedName?(this._items.set(e,t),!0):!1})}add(e){this._items.set(e.name,e)}get(e){return this._items.get(e)}keys(){return[...this._items.keys()]}values(){return[...this._items.values()]}items(){return[...this._items.entries()]}pop(e){const t=this._items.get(e);return this._items.delete(e),t}}const v=l=>{if(l._formula!==void 0)return l._formula;const e=l._value;return typeof e=="number"&&S(l._look.format)?re(e):ae(e)};function U(l){if(l._formula!==void 0)return l._formula;const e=l._value;return e===null?null:typeof e=="number"&&!S(l._look.format)||typeof e=="boolean"?e:v(l)}const Fe=l=>l.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-+|-+$/gu,"")||"rows";export class Worksheet{_parent;_title;_was;_model;_cells=new Map;_columns=new Map;_rows=new Map;_tables=new TableList;_freeze;_merges=[];_state="visible";_dimensions=!1;_lastRow=0;_rules=[];_validations=[];_filter;_charts=[];_print={};_links={};_notes={};_pictures=[];_protect=!1;constructor(e,t,s){if(this._parent=e,this._title=t,this._filter=new J(void 0,()=>{this._parent._pending=!0}),s){this._model=s,this._was=t,this._freeze=s.spec.freeze,this._heldPage(s.spec),this._merges=[...s.spec.merges??[]],this._state=s.spec.hidden===!0?"hidden":"visible",this._lastRow=(s.used?.bottom??-1)+1,this._heldRules(s.spec);for(const n of s.tables){const o=new Table({displayName:n.name,ref:x(n.area),...n.spec.key===void 0?{}:{key:n.spec.key}});o._spec=n.spec;const{filter:i}=n.spec;if(i)for(const[a,h]of Object.entries(i.columns)){const d=n.column(a);d&&o.autoFilter._columns.set(d.index,h)}this._tables.add(o)}}return g(this,"Worksheet",w,{index:n=>this._rowCells(n),key:n=>this._at(n),setKey:(n,o)=>{const i=y(n);return i?(this.cell(i.row+1,i.col+1).value=o,!0):!1}})}_spec(){return this._parent._file.sheets.find(e=>e.name===(this._was??this._title))}_heldRules(e){this._rules=[...e?.conditional??[]],this._validations=(e?.validations??[]).map(we),this._charts=(e?.charts??[]).map(de),this._filter.ref=e?.filter?.range,this._filter._columns.clear();const t=e?.filter?k(e.filter.range):void 0;for(const[s,n]of Object.entries(e?.filter?.columns??{})){const o=C(s);t&&o!==void 0&&this._filter._columns.set(o-t.left,n)}}_at(e){const t=y(e);if(t)return this.cell(t.row+1,t.col+1);const s=k(e);if(s)return this._area(s);const n=C(e);if(n!==void 0){const o=[];for(let i=1;i<=this.max_row;i++)o.push(this.cell(i,n+1));return o}}_rowCells(e){const t=[];for(let s=1;s<=this.max_column;s++)t.push(this.cell(e,s));return t}_area(e){const t=[];for(let s=e.top;s<=e.bottom;s++){const n=[];for(let o=e.left;o<=e.right;o++)n.push(this.cell(s+1,o+1));t.push(n)}return t}get parent(){return this._parent}get title(){return this._title}set title(e){const t=this._title;e!==t&&this._parent._renameSheet(this,t,e)}get sheet_state(){return this._state}set sheet_state(e){this._state=e}cell(e,t,s){if(e<1||t<1)throw new RangeError(`Row and column values must be at least 1: ${String(e)}, ${String(t)}.`);const n=(e-1)*16384+t-1;let o=this._cells.get(n);return o||(o=new Cell(this,e,t),this._cells.set(n,o)),s!==void 0&&(o.value=s),e>this._lastRow&&(this._lastRow=e),o}append(e){const t=this._lastRow+1,s=(n,o)=>{o!=null&&this.cell(t,n,o)};if(Array.isArray(e))e.forEach((n,o)=>{s(o+1,n)});else for(const[n,o]of Object.entries(e)){const i=/^\d+$/u.test(n)?Number(n)-1:C(n);if(i===void 0)throw new TypeError(`${n} is not a column.`);s(i+1,o)}this._lastRow=t}get max_row(){return Math.max(1,this._lastRow)}get max_column(){let e=this._model?.columnsUsed??0;for(const t of this._cells.values())(t._value!==null||t._formula!==void 0)&&t.column>e&&(e=t.column);return Math.max(1,e)}min_row=1;min_column=1;get dimensions(){return x({top:0,left:0,bottom:this.max_row-1,right:this.max_column-1})}iter_rows(e={}){const t=this._area({top:(e.min_row??1)-1,left:(e.min_col??1)-1,bottom:(e.max_row??this.max_row)-1,right:(e.max_col??this.max_column)-1});return e.values_only===!0?t.map(s=>s.map(n=>n.value)):t}iter_cols(e={}){const t=this.iter_rows(e);return(t[0]??[]).map((n,o)=>t.map(i=>i[o]))}get rows(){return this.iter_rows()}get columns(){return this.iter_cols()}get values(){return this.iter_rows({values_only:!0})}insert_rows(e,t=1){this._parent._restructure({op:"insert-rows",sheet:this._title,at:b(e,"row")-1,count:b(t,"amount")})}delete_rows(e,t=1){this._parent._restructure({op:"delete-rows",sheet:this._title,at:b(e,"row")-1,count:b(t,"amount")})}insert_cols(e,t=1){this._parent._restructure({op:"insert-columns",sheet:this._title,at:b(e,"column")-1,count:b(t,"amount")})}delete_cols(e,t=1){this._parent._restructure({op:"delete-columns",sheet:this._title,at:b(e,"column")-1,count:b(t,"amount")})}merge_cells(e){if(!k(e))throw new TypeError(`${e} is not a range.`);this._merges.includes(e)||this._merges.push(e),this._parent._pending=!0}unmerge_cells(e){this._merges=this._merges.filter(t=>t!==e),this._parent._pending=!0}get merged_cells(){return[...this._merges]}get freeze_panes(){return this._freeze}set freeze_panes(e){const t=e instanceof Cell?e.coordinate:e;if(t!==void 0&&!y(t))throw new TypeError(`${t} is not a cell.`);this._freeze=t,this._parent._pending=!0}get column_dimensions(){return new Proxy({},{get:(e,t)=>{if(typeof t!="string")return;const s=t.toUpperCase();if(C(s)===void 0)throw new TypeError(`${t} is not a column.`);let n=this._columns.get(s);return n||(n=new ColumnDimension(this,s),this._columns.set(s,n)),n}})}get row_dimensions(){return new Proxy({},{get:(e,t)=>{if(typeof t!="string"||!/^[1-9]\d*$/u.test(t))throw new TypeError(`${String(t)} is not a row.`);const s=Number(t);let n=this._rows.get(s);return n||(n=new RowDimension(this,s),this._rows.set(s,n)),n}})}get tables(){return this._tables}get conditional_formatting(){return new me(this._rules,()=>{this._parent._pending=!0})}get data_validations(){return new pe(this._validations,()=>{this._parent._pending=!0})}add_data_validation(e){this._validations.push(e),this._parent._pending=!0}get auto_filter(){return this._filter}_changed(){this._parent._pending=!0}_heldPage(e){this._print=structuredClone(e?.print??{}),this._links={...e?.links},this._notes={...e?.notes},this._pictures=[...e?.pictures??[]],this._protect=e?.protect===!0}get page_setup(){return new V(this)}get page_margins(){return new G(this)}get oddHeader(){return new A(this,"header")}get oddFooter(){return new A(this,"footer")}get protection(){return new Y(()=>this._protect,e=>{this._protect=e,this._changed()})}get print_area(){return this._print.area}set print_area(e){if(e===void 0)delete this._print.area;else if(k(e))this._print.area=e;else throw new TypeError(`${e} is not a range.`);this._changed()}get print_title_rows(){return this._print.title_rows}set print_title_rows(e){e===void 0?delete this._print.title_rows:this._print.title_rows=e,this._changed()}get print_title_cols(){return this._print.title_cols}set print_title_cols(e){e===void 0?delete this._print.title_cols:this._print.title_cols=e,this._changed()}add_image(e,t){const s=t??e.anchor??"A1";if(!y(s))throw new TypeError(`${s} is not a cell.`);this._pictures.push({file:e.path,at:s,...e.width===void 0?{}:{width:e.width},...e.height===void 0?{}:{height:e.height}}),this._changed()}add_chart(e,t){e.anchor=ue(t)??e.anchor,this._charts.push(e),this._parent._pending=!0}add_table(e){if(this._parent._tableNamed(e.name))throw new Error(`There is already a table named ${e.name}.`);this._tables.add(e),this._parent._pending=!0}}export class Workbook{worksheets=[];defined_names=new DefinedNameDict;data_only;title;path;block_cells=BLOCK_CELLS;_file={sheets:[]};_text="";_disk={text:"",csv:new Map};_csv=new Map;_model;_names=new Map;_active=0;_pending=!1;_making=!1;_calc=void 0;constructor(e={}){this.data_only=e.data_only??!1;const t=g(this,"Workbook",w,{key:s=>this.worksheets.find(n=>n.title===s),index:s=>this.worksheets[s]});return t.worksheets=[new Worksheet(t,"Sheet")],t}static open(e,t={}){const s=new Workbook(t);return s.path=H(e),s._read(s.path),s}_read(e){const{readFileSync:t}=R(),s=t(e,"utf8"),n=process.getBuiltinModule("node:path").dirname(e),o=new Map,i=a=>{try{const h=t(O(n,a),"utf8");return o.set(a,h),h}catch{return}};this._load(s,i);for(const[a,h]of o)this._keepCsv(a,h);this._disk={text:s,csv:o}}_keepCsv(e,t){const s=X(t);this._csv.set(e,{parsed:s,rows:s.records.map(n=>n.end===n.start?[]:[...n.fields])})}_load(e,t){const{workbook:s,problems:n}=I({text:e,read:t});if(!s)throw new Error(`The workbook cannot be opened: ${n.map(o=>o.message).join("; ")}`);this._text=e,this._file=structuredClone(s.file),this._model=s,this.title=s.title,this.worksheets=s.sheets.map(o=>new Worksheet(this,o.name,o));for(const o of s.names.values()){if(o.source.path?.[0]!=="names")continue;const i=o.formula?o.formula.text:o.value??null;this._names.set(o.name,i),this.defined_names.add(new DefinedName(o.name,{attr_text:String(i)}))}}get active(){const e=this.worksheets[this._active]??this.worksheets[0];if(!e)throw new Error("The workbook has no sheets.");return e}set active(e){this._active=this.worksheets.indexOf(e)}get sheetnames(){return this.worksheets.map(e=>e.title)}get_sheet_by_name(e){return this.worksheets.find(t=>t.title===e)}index(e){return this.worksheets.indexOf(e)}create_sheet(e,t){let s=e??"Sheet";for(let o=1;this.worksheets.some(i=>i.title===s);o++)s=`${e??"Sheet"}${String(o)}`;const n=new Worksheet(this,s);return this.worksheets.splice(t??this.worksheets.length,0,n),this._pending=!0,n}remove(e){this.worksheets=this.worksheets.filter(t=>t!==e),this._pending=!0}move_sheet(e,t=0){const s=this.worksheets.indexOf(e);this.worksheets.splice(s,1),this.worksheets.splice(s+t,0,e),this._pending=!0}_tableNamed(e){for(const t of this.worksheets){const s=t._tables.get(e);if(s)return s}}_renameSheet(e,t,s){if(this.worksheets.some(o=>o!==e&&o.title===s))throw new Error(`There is already a sheet named ${s}.`);this._apply(),this._rewrite({op:"rename-sheet",from:t,to:s}),e._title=s,e._was=s;const n=this._file.sheets.find(o=>o.name===t);n&&(n.name=s),this._apply()}_restructure(e){this._apply();const t=fe({file:this._file,rows:new Map([...this._csv].map(([n,o])=>[n,o.rows]))},e);if(t.refused!==void 0)throw new Error(t.refused==="table-header"?"A table's header row is not deleted: delete the table's rows, or all of it.":"That sheet is not there.");this._file=t.file;for(const[n,o]of t.rows){const i=this._csv.get(n);i&&(i.rows=o.map(a=>[...a]))}for(const n of this.worksheets){const o=this._file.sheets.find(i=>i.name===n._title);n._cells.clear(),n._columns.clear(),n._rows.clear(),n._merges=[...o?.merges??[]],n._freeze=o?.freeze,n._heldPage(o),n._heldRules(o)}const s=this._build();this._rebase(s.text,s.files);for(const n of this.worksheets){const o=this._model?.sheet(n._title);if(o){n._lastRow=(o.used?.bottom??-1)+1;for(const i of o.tables){const a=n._tables.get(i.name);a&&(a.ref=x(i.area))}}}}_rewrite(e){const t=(n,o)=>{const i=M(n);if(!i.ok)return n;const a=ne(i.node,e,o);return a===i.node?n:B(a)},{_file:s}=this;if(s.names){for(const[n,o]of Object.entries(s.names))if(typeof o=="string"&&o.startsWith("=")){const i=t(o,s.sheets[0]?.name??"");s.names[n]=i,this._names.set(n,i);const a=this.defined_names.get(n);a&&(a.attr_text=i.slice(1))}}for(const n of s.checks??[])n.formula=t(n.formula,s.sheets[0]?.name??"");for(const n of s.sheets){for(const[o,i]of Object.entries(n.cells??{}))typeof i=="string"&&i.startsWith("=")?n.cells[o]=t(i,n.name):i!==null&&typeof i=="object"&&i.formula!==void 0&&(i.formula=t(i.formula,n.name));for(const o of n.tables??[]){for(const i of Object.values(o.columns??{}))i.formula!==void 0&&(i.formula=t(i.formula,n.name));this._rewriteCsv(o.rows,n.name,t)}for(const o of n.blocks??[])this._rewriteCsv(o.rows,n.name,t)}}_rewriteCsv(e,t,s){const n=this._csv.get(e);n&&(n.rows=n.rows.map(o=>o.map(i=>j(i).formula!==void 0?s(i,t):i)))}_sheetEntry(e){const t=e._was??e._title;let s=this._file.sheets.find(n=>n.name===t);return s||(s={name:e._title},this._file.sheets.push(s)),s.name=e._title,s}_dataPath(e){const t=Fe(e);let s=`${t}.csv`;const n=this.path===void 0?void 0:process.getBuiltinModule("node:path").dirname(this.path),o=i=>this._csv.has(i)||this._file.sheets.some(a=>a.tables?.some(h=>h.rows===i)??a.blocks?.some(h=>h.rows===i))||n!==void 0&&R().existsSync(O(n,i));for(let i=2;o(s);i++)s=`${t}-${String(i)}.csv`;return s}_writeNewTable(e,t,s){const n=k(s.ref);if(!n)throw new Error(`${s.ref} is not a range.`);const o=[];for(let r=n.left;r<=n.right;r++){const c=e.cell(n.top+1,r+1).value;if(c===null||c==="")throw new Error(`Table ${s.name}'s header has no name at ${E({row:n.top,col:r})}.`);o.push(String(c))}const i={},a=[];o.forEach((r,c)=>{const f=n.left+c,_=this._columnFormula(e,n,f);_===void 0?a.push(c):i[r]={formula:_};const m=this._columnFormat(e,n,f);m!==void 0&&(i[r]={...i[r],format:m})}),this._columnsStyled(e,n);const h=[a.map(r=>o[r]??"")];for(let r=n.top+1;r<=n.bottom;r++)h.push(a.map(c=>v(e.cell(r+1,n.left+c+1))));t.cells&&(t.cells=Object.fromEntries(Object.entries(t.cells).filter(([r])=>{const c=y(r);return!c||!F(n,c.row,c.col)})));const d=this._dataPath(s.name);this._csv.set(d,{parsed:void 0,rows:h});const u={name:s.name,at:E({row:n.top,col:n.left}),rows:d,...s.key===void 0?{}:{key:s.key},...p(i)?{}:{columns:i}};(t.tables??=[]).push(u),s._spec=u}_columnsStyled(e,t){for(let s=t.left;s<=t.right;s++)for(let n=t.top+1;n<=t.bottom;n++){const o=e.cell(n+1,s+1),{format:i,...a}=this._ownLook(o);i!==void 0&&p(a)&&(o._styled=!1)}}_columnFormula(e,t,s){if(t.bottom<=t.top)return;const n=e.cell(t.top+2,s+1),o=P(n);if(o!==void 0){for(let i=t.top+2;i<=t.bottom;i++)if(P(e.cell(i+1,s+1))!==o)return;return n._formula}}_columnFormat(e,t,s){if(t.bottom<=t.top)return;const n=i=>this._ownLook(e.cell(i+1,s+1)).format,o=n(t.top+1);for(let i=t.top+2;i<=t.bottom;i++)if(n(i)!==o)return;return o}_held(e){const t=this._csv.get(e);if(!t)throw new Error(`${e} was not read.`);return t}_setCsvCell(e,t,s,n){const{rows:o}=this._held(e);for(;o.length<=t;)o.push([]);const i=o[t];if(i){for(;i.length<=s;)i.push("");i[s]=n}}_recordOf(e,t){let s=0;for(let n=0;n<t;){if(s+=1,s>=e.length)return s+t-n-1;e[s]?.length!==0&&(n+=1)}return s}_writeTableCell(e,t,s){const n=this._held(e.rows),o=n.rows[0]??[],i=s.column-1-t.left,a=this._recordOf(n.rows,s.row-1-t.top),h=Object.keys(e.columns??{}).filter(f=>!o.some(_=>_.trim().toLowerCase()===f.toLowerCase())),u=[...o.map(f=>f.trim()),...h][i];if(u===void 0)return;if(a===0){i<o.length&&(o[i]=v(s));return}const r=e.columns?.[u]?.formula;if(r!==void 0){const f=this._movedColumn(r,t,s);if(s._formula===f){const _=o.findIndex(m=>m.trim()===u);_>=0&&this._setCsvCell(e.rows,a,_,"");return}}let c=o.findIndex(f=>f.trim()===u);c<0&&(c=o.length,this._setCsvCell(e.rows,0,c,u)),this._setCsvCell(e.rows,a,c,v(s))}_movedColumn(e,t,s){const n=M(e);if(!n.ok)return e;const o=s.row-1-(t.top+1);return o===0?e:B(te(n.node,o,0))}_apply(){this.title===void 0?delete this._file.title:this._file.title=this.title;const e=new Set(this.worksheets.map(s=>s._was??s._title));this._file.sheets=this._file.sheets.filter(s=>e.has(s.name));for(const s of this.worksheets)this._applySheet(s);this._file.sheets=this.worksheets.map(s=>this._sheetEntry(s)),this._applyNames();const t=this._build();this._rebase(t.text,t.files)}_applyNames(){const e={};for(const t of this.defined_names.values()){const s=j(t.attr_text),n=this._names.get(t.name);e[t.name]=n!==void 0&&String(n).replace(/^=/u,"")===t.attr_text?n:typeof s.value=="number"||typeof s.value=="boolean"?s.value:/^"[^"]*"$/u.test(t.attr_text)?t.attr_text.slice(1,-1):`=${t.attr_text}`}p(e)?delete this._file.names:this._file.names=e}_applySheet(e){const t=this._sheetEntry(e);e._freeze===void 0?delete t.freeze:t.freeze=e._freeze,p(e._print)?delete t.print:t.print=e._print,p(e._links)?delete t.links:t.links=e._links,p(e._notes)?delete t.notes:t.notes=e._notes,e._pictures.length===0?delete t.pictures:t.pictures=e._pictures,e._protect?t.protect=!0:delete t.protect,e._merges.length===0?delete t.merges:t.merges=[...e._merges],e._state==="hidden"?t.hidden=!0:delete t.hidden,e._rules.length===0?delete t.conditional:t.conditional=[...e._rules],e._validations.length===0?delete t.validations:t.validations=e._validations.map(ge),e._charts.length===0?delete t.charts:t.charts=e._charts.map(n=>n._spec(e._title)),this._applyFilter(e,t);const s=new Set(t.tables?.map(n=>n.name.toLowerCase()));for(const n of e._tables.values())s.has(n.name.toLowerCase())||this._writeNewTable(e,t,n);this._applyTableFilters(e,t),this._applyCells(e,t),this._applyDimensions(e,t),t.cells&&p(t.cells)&&delete t.cells,t.columns&&p(t.columns)&&delete t.columns,t.rows&&p(t.rows)&&delete t.rows,t.format?.length===0&&delete t.format,t.tables?.length===0&&delete t.tables,t.blocks?.length===0&&delete t.blocks}_applyFilter(e,t){const{ref:s,_columns:n}=e._filter;if(s===void 0){delete t.filter;return}const o=k(s);if(!o)throw new TypeError(`${s} is not a range.`);const i={};for(const[a,h]of n)i[N(o.left+a)]=h;t.filter={range:s,...p(i)?{}:{columns:i}}}_applyTableFilters(e,t){for(const s of t.tables??[]){const n=e._tables.get(s.name);if(!n||n.autoFilter._columns.size===0)continue;const o=this._csv.get(s.rows)?.rows??[],i=ce(s,o)?.names??[],a={};for(const[h,d]of n.autoFilter._columns){const u=i[h];if(u===void 0)throw new RangeError(`Table ${s.name} has no column at ${String(h)}.`);a[u]=d}s.filter={columns:a}}}_applyDimensions(e,t){if(e._dimensions){for(const[s,n]of e._columns){const o={...t.columns?.[s]};n._width===void 0?delete o.width:o.width=n._width,n._hidden===void 0?delete o.hidden:o.hidden=n._hidden,n._files===void 0?delete o.files:o.files=n._files,n._level===void 0?delete o.level:o.level=n._level;const i=D(t.columns??{},s);t.columns=p(o)?i:{...i,[s]:o}}for(const[s,n]of e._rows){const o={...t.rows?.[String(s)]};n._height===void 0?delete o.height:o.height=n._height,n._hidden===void 0?delete o.hidden:o.hidden=n._hidden,n._level===void 0?delete o.level:o.level=n._level;const i=D(t.rows??{},String(s));t.rows=p(o)?i:{...i,[String(s)]:o}}e._dimensions=!1}}_applyCells(e,t){const s=(t.tables??[]).flatMap(i=>{const a=y(i.at),h=e._tables.get(i.name),d=h?k(h.ref):void 0;return a&&d?[{entry:i,area:d}]:[]}),n=(t.blocks??[]).flatMap(i=>{const a=e._model?.blocks.find(h=>h.file===i.rows);return a?[{entry:i,area:a.area}]:[]}),o=[];for(const i of e._cells.values()){if(!i._changed&&!i._styled)continue;const a=i.row-1,h=i.column-1,d=s.find(r=>F(r.area,a,h)),u=n.find(r=>F(r.area,a,h));d?(i._changed&&this._writeTableCell(d.entry,d.area,i),i._styled&&this._styleByFormat(t,i)):u?(i._changed&&this._setCsvCell(u.entry.rows,a-u.area.top,h-u.area.left,v(i)),i._styled&&this._styleByFormat(t,i)):i._fresh&&!e._model?.keys.has(a*16384+h)?o.push(i):this._writeLoose(e,t,i),i._changed=!1,i._styled=!1}this._consolidate(e,t,o),Me(t)}_styleByFormat(e,t){(e.format??=[]).push({range:t.coordinate,...this._ownLook(t)})}_ownLook(e){const t=e._ws._model?.lookAt(e.row-1,e.column-1)??{},s=Ne(t,e._look);return s.format!==void 0&&e._formula===void 0&&j(v(e)).format===s.format&&delete s.format,s}_writeLoose(e,t,s){const n=s.coordinate,o=t.cells??={},i=U(s),a=this._ownLook(s),h=o[n],u={...h!==null&&typeof h=="object"?Object.fromEntries(Object.entries(h).filter(([f])=>f!=="value"&&f!=="formula"&&f!=="name")):{},...a},r=h!==null&&typeof h=="object"&&h.name!==void 0?{name:h.name}:{},c=e._model?.at(s.row-1,s.column-1)!==void 0;if(i===null&&p(u)&&!c){t.cells=D(o,n);return}o[n]=p(u)&&p(r)?i:{...typeof i=="string"&&i.startsWith("=")?{formula:i}:i===null?{}:{value:i},...r,...u}}_consolidate(e,t,s){const n=s.filter(r=>r._value!==null||r._formula!==void 0),o=new Map;for(const r of s){const c=this._ownLook(r);if(p(c))continue;const f=JSON.stringify(c),_=o.get(f);_?_.push(r):o.set(f,[r])}const i=new Map(n.map(r=>[`${String(r.row)}:${String(r.column)}`,r])),a=r=>i.get(`${String(r.row+1)}:${String(r.col+1)}`)??e.cell(r.row+1,r.col+1),h=new Map,d=[];for(const r of n){const c={row:r.row-1,col:r.column-1},f=r._formula===void 0?void 0:P(r);if(f===void 0){d.push(c);continue}const _=h.get(f);_?_.push(c):h.set(f,[c])}const u=t.cells??={};for(const r of h.values())for(const c of T(r))u[x(c)]=a({row:c.top,col:c.left})._formula??null;for(const r of T(d))if((r.bottom-r.top+1)*(r.right-r.left+1)>=this.block_cells){const f=[];for(let m=r.top;m<=r.bottom;m++){const $=[];for(let L=r.left;L<=r.right;L++)$.push(v(a({row:m,col:L})));f.push($)}const _=this._dataPath(e._title);this._csv.set(_,{parsed:void 0,rows:f}),(t.blocks??=[]).push({at:E({row:r.top,col:r.left}),rows:_})}else for(let f=r.top;f<=r.bottom;f++)for(let _=r.left;_<=r.right;_++){const m=a({row:f,col:_});u[m.coordinate]=U(m)}for(const r of o.values()){const[c]=r;if(!c)continue;const f=this._ownLook(c),_=r.map(m=>({row:m.row-1,col:m.column-1}));for(const m of T(_))(t.format??=[]).push({range:x(m),...f})}}_build(){const e=new Map;for(const[t,s]of this._csv)e.set(t,s.parsed?oe(s.parsed,s.rows):Z(s.rows));return{text:_e(this._text,this._file),files:e}}_rebase(e,t){const{workbook:s,problems:n}=I({text:e,read:o=>t.get(o)});if(!s)throw new Error(`The workbook is not one: ${n.map(o=>o.message).join("; ")}`);this._text=e,this._file=structuredClone(s.file),this._model=s;for(const[o,i]of t)this._keepCsv(o,i);this._calc=void 0,this._pending=!1;for(const o of this.worksheets){o._was=o._title;const i=s.sheet(o._title);i&&(o._model=i);for(const a of o._cells.values())a._fresh=i?.at(a.row-1,a.column-1)===void 0}this._names=new Map;for(const o of s.names.values())o.source.path?.[0]==="names"&&this._names.set(o.name,o.formula?o.formula.text:o.value??null)}_computed(){const e=[...this.defined_names.values()];if((this._pending||e.length!==this._names.size||e.some(t=>String(this._names.get(t.name)).replace(/^=/u,"")!==t.attr_text))&&this._apply(),!this._calc){const t=this._model;if(!t)throw new Error("The workbook has no sheets.");this._calc={calc:new q(t).calculate(),model:t}}return this._calc}check(){this._apply();const{text:e,files:t}=this._build();return Q({text:e,read:s=>t.get(s)}).problems}_generated(){if(this.worksheets.length===0)return this._applyNames(),{sheets:[],csv:{},...this._file.names?{names:this._file.names}:{}};this._apply();const e=structuredClone(this._file.sheets),t=n=>`${ee}${n}`;for(const n of e){for(const o of n.tables??[])o.rows=t(o.rows);for(const o of n.blocks??[])o.rows=t(o.rows)}const s={};for(const[n,o]of this._build().files)s[t(n)]=o;return{sheets:e,csv:s,...this._file.names?{names:this._file.names}:{}}}save(e){if(this._making)throw new Error("A sheet's code makes sheets and saves nothing: what it adds to wb is what it makes.");const t=e===void 0?this.path:H(e);if(t===void 0)throw new TypeError("A new workbook is saved to a file: wb.save('finance/budget.yaml').");if(this.worksheets.length===0)throw new Error("A workbook has at least one sheet.");const{text:s,csv:n}=this._disk;this._apply();const o=new Set(this._file.sheets.flatMap(f=>[...(f.tables??[]).map(_=>_.rows),...(f.blocks??[]).map(_=>_.rows)])),i=[...this._csv.keys()].filter(f=>!o.has(f));for(const f of i)this._csv.delete(f);const{mkdirSync:a,rmSync:h,writeFileSync:d}=R(),u=process.getBuiltinModule("node:path"),r=u.dirname(t),c=e===void 0||t===this.path;a(r,{recursive:!0}),(this._text!==s||!c)&&d(t,this._text);for(const[f,_]of this._csv){const m=_.parsed?.source??"";if(c&&n.get(f)===m)continue;const $=O(r,f);a(u.dirname($),{recursive:!0}),d($,m)}if(c)for(const f of i)h(O(r,f),{force:!0});this._disk={text:this._text,csv:new Map([...this._csv].map(([f,_])=>[f,_.parsed?.source??""]))},this.path=t}}function P(l){if(l._formula===void 0)return;const e=M(l._formula);if(e.ok)return se(e.node,l.row-1,l.column-1)}function Me(l){const e=l.format;if(!e||e.length<2)return;const t=[],s=new Map;for(const n of e){const{range:o,...i}=n,a=y(o);if(!a){t.push(n);continue}const h=JSON.stringify(i),d=s.get(h);d?d.places.push(a):s.set(h,{look:i,places:[a]})}for(const{look:n,places:o}of s.values())for(const i of T(o))t.push({range:x(i),...n});l.format=t}export function load_workbook(l,e={}){return Workbook.open(l,e)}export const get_column_letter=l=>N(l-1);export function column_index_from_string(l){const e=C(l);if(e===void 0)throw new TypeError(`${l} is not a column.`);return e+1}export function coordinate_to_tuple(l){const e=y(l);if(!e)throw new TypeError(`${l} is not a cell.`);return[e.row+1,e.col+1]}export function range_boundaries(l){const e=k(l);if(!e)throw new TypeError(`${l} is not a range.`);return[e.left+1,e.top+1,e.right+1,e.bottom+1]}
@@ -1,5 +1,5 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{writeCsv as S}from"./csv.js";import{isDateCode as k,shownValue as b}from"./format.js";import{CellError as w,dateOf as j}from"./values.js";const y=t=>(t.split(";")[0]??"").replace(/"[^"]*"|\\.|_.|\*./gu,"").replace(/\[(?![hms]+\])[^\]]*\]/giu,""),h=new Map;function _(t){if(t===void 0)return;if(h.has(t))return h.get(t);let n;if(k(t)){const r=y(t).toLowerCase(),o=/\[(h+|m+|s+)\]/u.test(r),e=[...r.matchAll(/\[?([ydhms])\1*\]?|am\/pm|a\/p/gu)].map(c=>c[0]);let s=!1,i=!1,u=!1;for(const[c,a]of e.entries()){const f=a.replace(/[[\]]/gu,"")[0];if(f==="y"||f==="d")s=!0;else if(f==="h"||a.includes("/"))i=!0;else if(f==="s")i=!0,u=!0;else if(f==="m"){const l=e[c-1]?.replace(/[[\]]/gu,"")[0],m=e[c+1]?.replace(/[[\]]/gu,"")[0];a.startsWith("[")||l==="h"||m==="s"?i=!0:s=!0}}o?n={kind:"duration",seconds:u}:s&&i?n={kind:"datetime",seconds:u}:i?n={kind:"time",seconds:u}:s&&(n={kind:"date",seconds:!1})}return h.set(t,n),n}const $=864e5,A=2958465,d=(t,n=2)=>String(t).padStart(n,"0");export const excelNumber=t=>t===0?0:Number(t.toPrecision(15));function x(t,n,r=2){const o=Math.floor(t/1e3),e=t%1e3;let s=`${d(Math.floor(o/3600),r)}:${d(Math.floor(o/60)%60)}`;return(n||o%60!==0||e!==0)&&(s+=`:${d(o%60)}`),e!==0&&(s+=`.${d(e,3).replace(/0+$/u,"")}`),s}function T(t){const n=t<0?"-":"";let r=Math.abs(t);const o=Math.floor(r/36e5);r-=o*36e5;const e=Math.floor(r/6e4);r-=e*6e4;const s=[o>0?`${String(o)}H`:"",e>0?`${String(e)}M`:"",r>0?`${String(r/1e3)}S`:""].join("");return`${n}PT${s||"0S"}`}function M(t,n,r){const o=Math.round(t*$);if(n.kind==="duration")return r==="json"?T(o):`${o<0?"-":""}${x(Math.abs(o),n.seconds,1)}`;if(t<0||t>=A+1)return;const e=Math.floor(o/$),s=x(o-e*$,n.seconds||r==="json");if(e===0||n.kind==="time")return s;if(e===60)return;const{year:i,month:u,day:c}=j(e),a=`${d(i,4)}-${d(u)}-${d(c)}`;return n.kind==="date"?a:`${a}${r==="json"?"T":" "}${s}`}export function csvText(t,n,r="data"){if(t===null)return"";if(r==="shown")return b(t,n);if(typeof t=="boolean")return t?"TRUE":"FALSE";if(t instanceof w)return t.code;if(typeof t=="string")return t;const o=_(n);return(o&&M(t,o,"csv"))??String(excelNumber(t))}export function dataValue(t,n,r="data"){if(t===null)return null;if(r==="shown")return b(t,n);if(t instanceof w)return t.code;if(typeof t!="number")return t;const o=_(n);return(o&&M(t,o,"json"))??excelNumber(t)}const p=(t,n,r)=>t.lookAt(n,r).format;function g(t,n){const r=t.used;if(!r)return[];const o=[];for(let e=0;e<=r.bottom;e++){const s=[];for(let i=0;i<=r.right;i++)s.push(n(e,i));o.push(s)}return o}export function csvOf(t,n,r={}){const o=g(n,(e,s)=>csvText(t.value(n,e,s),p(n,e,s),r.values));return S(o,{delimiter:",",newline:`\r
2
+ import{writeCsv as S}from"@allyhub/formats";import{isDateCode as k,shownValue as b}from"./format.js";import{CellError as w,dateOf as j}from"./values.js";const y=t=>(t.split(";")[0]??"").replace(/"[^"]*"|\\.|_.|\*./gu,"").replace(/\[(?![hms]+\])[^\]]*\]/giu,""),h=new Map;function _(t){if(t===void 0)return;if(h.has(t))return h.get(t);let n;if(k(t)){const r=y(t).toLowerCase(),o=/\[(h+|m+|s+)\]/u.test(r),e=[...r.matchAll(/\[?([ydhms])\1*\]?|am\/pm|a\/p/gu)].map(c=>c[0]);let s=!1,i=!1,u=!1;for(const[c,a]of e.entries()){const f=a.replace(/[[\]]/gu,"")[0];if(f==="y"||f==="d")s=!0;else if(f==="h"||a.includes("/"))i=!0;else if(f==="s")i=!0,u=!0;else if(f==="m"){const l=e[c-1]?.replace(/[[\]]/gu,"")[0],m=e[c+1]?.replace(/[[\]]/gu,"")[0];a.startsWith("[")||l==="h"||m==="s"?i=!0:s=!0}}o?n={kind:"duration",seconds:u}:s&&i?n={kind:"datetime",seconds:u}:i?n={kind:"time",seconds:u}:s&&(n={kind:"date",seconds:!1})}return h.set(t,n),n}const $=864e5,A=2958465,d=(t,n=2)=>String(t).padStart(n,"0");export const excelNumber=t=>t===0?0:Number(t.toPrecision(15));function x(t,n,r=2){const o=Math.floor(t/1e3),e=t%1e3;let s=`${d(Math.floor(o/3600),r)}:${d(Math.floor(o/60)%60)}`;return(n||o%60!==0||e!==0)&&(s+=`:${d(o%60)}`),e!==0&&(s+=`.${d(e,3).replace(/0+$/u,"")}`),s}function T(t){const n=t<0?"-":"";let r=Math.abs(t);const o=Math.floor(r/36e5);r-=o*36e5;const e=Math.floor(r/6e4);r-=e*6e4;const s=[o>0?`${String(o)}H`:"",e>0?`${String(e)}M`:"",r>0?`${String(r/1e3)}S`:""].join("");return`${n}PT${s||"0S"}`}function M(t,n,r){const o=Math.round(t*$);if(n.kind==="duration")return r==="json"?T(o):`${o<0?"-":""}${x(Math.abs(o),n.seconds,1)}`;if(t<0||t>=A+1)return;const e=Math.floor(o/$),s=x(o-e*$,n.seconds||r==="json");if(e===0||n.kind==="time")return s;if(e===60)return;const{year:i,month:u,day:c}=j(e),a=`${d(i,4)}-${d(u)}-${d(c)}`;return n.kind==="date"?a:`${a}${r==="json"?"T":" "}${s}`}export function csvText(t,n,r="data"){if(t===null)return"";if(r==="shown")return b(t,n);if(typeof t=="boolean")return t?"TRUE":"FALSE";if(t instanceof w)return t.code;if(typeof t=="string")return t;const o=_(n);return(o&&M(t,o,"csv"))??String(excelNumber(t))}export function dataValue(t,n,r="data"){if(t===null)return null;if(r==="shown")return b(t,n);if(t instanceof w)return t.code;if(typeof t!="number")return t;const o=_(n);return(o&&M(t,o,"json"))??excelNumber(t)}const p=(t,n,r)=>t.lookAt(n,r).format;function g(t,n){const r=t.used;if(!r)return[];const o=[];for(let e=0;e<=r.bottom;e++){const s=[];for(let i=0;i<=r.right;i++)s.push(n(e,i));o.push(s)}return o}export function csvOf(t,n,r={}){const o=g(n,(e,s)=>csvText(t.value(n,e,s),p(n,e,s),r.values));return S(o,{delimiter:",",newline:`\r
3
3
  `,bom:r.bom??!0,finalNewline:!0})}const E=t=>t.replaceAll("|","\\|").replace(/\r?\n/gu,"<br>");export function markdownOf(t,n,r={}){const o=r.values??"shown",e=[],s=g(n,(f,l)=>{const m=t.value(n,f,l);return f>0&&m!==null&&(e[l]=(e[l]??!0)&&typeof m=="number"),csvText(m,p(n,f,l),o)}),[i,...u]=s;if(!i)return"";const c=f=>`| ${f.map(E).join(" | ")} |`,a=i.map((f,l)=>e[l]===!0?"---:":"---");return`${[c(i),`| ${a.join(" | ")} |`,...u.map(c)].join(`
4
4
  `)}
5
5
  `}export function tableRows(t,n,r={}){const{sheet:o,at:e}=n,s=[];for(let i=0;i<n.rows;i++){const u={};for(const c of n.columns){const a=e.row+1+i,f=e.col+c.index;u[c.name]=dataValue(t.value(o,a,f),p(o,a,f),r.values)}s.push(u)}return s}export function jsonOf(t,n={}){const{wb:r}=t,o={};for(const e of r.sheets){const s={};for(const i of e.tables)s[i.name]=tableRows(t,i,n);o[e.name]={rows:g(e,(i,u)=>dataValue(t.value(e,i,u),p(e,i,u),n.values)),...e.tables.length>0?{tables:s}:{}}}return{...r.title===void 0?{}:{title:r.title},sheets:o}}
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readDataFile as c}from"@allyhub/formats";import{LineCounter as p,isMap as m,isScalar as f,parseDocument as d,visit as g}from"yaml";export const ENTRY="sheet.yaml";export function dataFilesOf(i){const{file:t}=readSheetFile(i);return[...new Set(t?.sheets.flatMap(s=>[...(s.tables??[]).map(n=>n.rows),...(s.blocks??[]).map(n=>n.rows)])??[])]}function h(i){const t=[];return g(i,{Map(s,n){if(!m(n))return;const a=new Set;for(const o of n.items){const e=f(o.key)?String(o.key.value):void 0;if(e!==void 0)if(a.has(e)){const r=f(o.key)?o.key.range?.[0]??0:0;t.push({at:r,key:e})}else a.add(e)}}}),t}export function readSheetFile(i){const t=new p,s=d(i,{lineCounter:t,uniqueKeys:!1}),n=e=>{for(let r=e.length;r>=0;r--){const u=s.getIn(e.slice(0,r),!0)?.range?.[0];if(u!==void 0)return t.linePos(u).line}},a=h(s);if(s.errors.length>0||a.length>0)return{problems:[...s.errors.map(e=>({file:ENTRY,line:t.linePos(e.pos[0]).line,message:`not YAML: ${e.message.split(`
2
+ import{readDataFile as c}from"@allyhub/formats";import{LineCounter as p,isMap as d,isScalar as f,parseDocument as m,visit as h}from"yaml";export const ENTRY="sheet.yaml",CODE="sheet.ts",codeOf=i=>readSheetFile(i).file?.code;export function dataFilesOf(i){const{file:t}=readSheetFile(i);return[...new Set(t?.sheets.flatMap(s=>[...(s.tables??[]).map(n=>n.rows),...(s.blocks??[]).map(n=>n.rows)])??[])]}function g(i){const t=[];return h(i,{Map(s,n){if(!d(n))return;const a=new Set;for(const o of n.items){const e=f(o.key)?String(o.key.value):void 0;if(e!==void 0)if(a.has(e)){const r=f(o.key)?o.key.range?.[0]??0:0;t.push({at:r,key:e})}else a.add(e)}}}),t}export function readSheetFile(i){const t=new p,s=m(i,{lineCounter:t,uniqueKeys:!1}),n=e=>{for(let r=e.length;r>=0;r--){const u=s.getIn(e.slice(0,r),!0)?.range?.[0];if(u!==void 0)return t.linePos(u).line}},a=g(s);if(s.errors.length>0||a.length>0)return{problems:[...s.errors.map(e=>({file:ENTRY,line:t.linePos(e.pos[0]).line,message:`not YAML: ${e.message.split(`
3
3
  `)[0]??""}`})),...a.map(e=>({file:ENTRY,line:t.linePos(e.at).line,message:`not YAML: Map keys must be unique (${e.key})`}))],lineOf:n};const o=c("sheet",s.toJS()??{});return o.ok?{file:o.value,problems:[],lineOf:n}:{problems:o.problems.map(e=>{const r=n(e.path===""?[]:e.path.split(".").map(l=>/^\d+$/u.test(l)?Number(l):l));return{file:ENTRY,...r===void 0?{}:{line:r},message:`${e.path===""?"":`${e.path}: `}${e.message}`}}),lineOf:n}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{SHEET_CODE as v,SHEET_DATA as w}from"@allyhub/formats";import{readCsv as d}from"./csv.js";export const GENERATED=`${v}/`;const l=e=>e.toLowerCase();export function withGenerated(e,n){const a=e.sheets.length;if(!n)return{file:e,own:a,names:new Set,ordinary:[]};const m=new Set(e.sheets.map(s=>l(s.name))),t=n.sheets.filter(s=>!m.has(l(s.name))),c=n.sheets.filter(s=>m.has(l(s.name))).map(s=>s.name),f=new Set(Object.keys(e.names??{}).map(l)),r=Object.entries(n.names??{}).filter(([s])=>!f.has(l(s)));return{file:{...e,sheets:[...e.sheets,...t],...r.length===0?{}:{names:{...e.names,...Object.fromEntries(r)}}},own:a,names:new Set(r.map(([s])=>s)),ordinary:c}}const b=e=>[...(e.tables??[]).map(n=>n.rows),...(e.blocks??[]).map(n=>n.rows)],E=e=>e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-|-$/gu,"");export function ordinarySheet(e,n,a,m=()=>!1){const t=n.sheets.find(o=>l(o.name)===l(a));if(!t)return{rows:new Map,cells:[],whole:!1,refused:"no-sheet"};const c=new Map,f=new Map;for(const o of b(t)){const p=n.csv[o];if(p===void 0)continue;const h=E(`${t.name} ${o.split("/").pop()??""}`).replace(/-csv$/u,"");let u=`${w}/${h}.csv`;for(let i=2;m(u)||c.has(u);i++)u=`${w}/${h}-${String(i)}.csv`;f.set(o,u),c.set(u,d(p).records.map(i=>i.end===i.start?[]:i.fields))}const r=o=>f.get(o)??o,s=structuredClone(t);for(const o of s.tables??[])o.rows=r(o.rows);for(const o of s.blocks??[])o.rows=r(o.rows);return{file:{...e.file,sheets:[...e.file.sheets,s]},rows:c,cells:[],whole:!0}}export function typedNumbers(e,n){const a=[],m=t=>typeof t=="number"?t:t!==null&&typeof t=="object"?t.value:void 0;for(const t of e){for(const[c,f]of Object.entries(t.cells??{})){const r=m(f);typeof r=="number"&&a.push({sheet:t.name,cell:c,value:r})}for(const c of b(t))d(n[c]??"").records.forEach(f=>{for(const r of f.fields){const s=Number(r);r.trim()!==""&&Number.isFinite(s)&&a.push({sheet:t.name,file:c,value:s})}})}return a}
2
+ import"@allyhub/formats";import{readCsv as w}from"@allyhub/formats";import{CODE as b}from"./file.js";export const GENERATED=`${b}/`;const l=e=>e.toLowerCase();export function withGenerated(e,n){const a=e.sheets.length;if(!n)return{file:e,own:a,names:new Set,ordinary:[]};const m=new Set(e.sheets.map(s=>l(s.name))),t=n.sheets.filter(s=>!m.has(l(s.name))),c=n.sheets.filter(s=>m.has(l(s.name))).map(s=>s.name),f=new Set(Object.keys(e.names??{}).map(l)),r=Object.entries(n.names??{}).filter(([s])=>!f.has(l(s)));return{file:{...e,sheets:[...e.sheets,...t],...r.length===0?{}:{names:{...e.names,...Object.fromEntries(r)}}},own:a,names:new Set(r.map(([s])=>s)),ordinary:c}}const d=e=>[...(e.tables??[]).map(n=>n.rows),...(e.blocks??[]).map(n=>n.rows)],v=e=>e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu,"-").replace(/^-|-$/gu,"");export function ordinarySheet(e,n,a,m=()=>!1){const t=n.sheets.find(o=>l(o.name)===l(a));if(!t)return{rows:new Map,cells:[],whole:!1,refused:"no-sheet"};const c=new Map,f=new Map;for(const o of d(t)){const u=n.csv[o];if(u===void 0)continue;const h=v(`${t.name} ${o.split("/").pop()??""}`).replace(/-csv$/u,"");let p=`${h}.csv`;for(let i=2;m(p)||c.has(p);i++)p=`${h}-${String(i)}.csv`;f.set(o,p),c.set(p,w(u).records.map(i=>i.end===i.start?[]:i.fields))}const r=o=>f.get(o)??o,s=structuredClone(t);for(const o of s.tables??[])o.rows=r(o.rows);for(const o of s.blocks??[])o.rows=r(o.rows);return{file:{...e.file,sheets:[...e.file.sheets,s]},rows:c,cells:[],whole:!0}}export function typedNumbers(e,n){const a=[],m=t=>typeof t=="number"?t:t!==null&&typeof t=="object"?t.value:void 0;for(const t of e){for(const[c,f]of Object.entries(t.cells??{})){const r=m(f);typeof r=="number"&&a.push({sheet:t.name,cell:c,value:r})}for(const c of d(t))w(n[c]??"").records.forEach(f=>{for(const r of f.fields){const s=Number(r);r.trim()!==""&&Number.isFinite(s)&&a.push({sheet:t.name,file:c,value:s})}})}return a}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{readCsv as m,writeCsv as c}from"./csv.js";import{validName as p}from"./workbook.js";import{writeYaml as w}from"./write.js";const f=r=>{const e=r.replace(/[^\p{L}\p{N}_]+/gu,"_").replace(/^_+|_+$/gu,"");return p(e)?e:`t_${e||"rows"}`};export function importRows(r,e,n){const t=m(e,n),o=t.problems[0];if(o)throw new Error(`line ${String(o.line)}: ${o.message}`);const s=t.records.map(i=>i.fields);if(s.length===0)throw new Error("the file holds no rows");const a=f(r),l=`data/${a.toLowerCase()}.csv`;return{text:w({title:r,sheets:[{name:"Sheet1",freeze:"A2",tables:[{name:a,at:"A1",rows:l}]}]}),path:l,csv:n===","&&t.dialect.finalNewline?e:c(s),rows:s.length-1}}
2
+ import{readCsv as p,writeCsv as w}from"@allyhub/formats";import{validName as f}from"./workbook.js";import{writeYaml as h}from"./write.js";const g=r=>{const e=r.replace(/[^\p{L}\p{N}_]+/gu,"_").replace(/^_+|_+$/gu,"");return f(e)?e:`t_${e||"rows"}`};export function importRows(r,e,a,c=()=>!1){const s=p(e,a),n=s.problems[0];if(n)throw new Error(`line ${String(n.line)}: ${n.message}`);const l=s.records.map(o=>o.fields);if(l.length===0)throw new Error("the file holds no rows");const i=g(r),m=i.toLowerCase();let t=`${m}.csv`;for(let o=2;c(t);o++)t=`${m}-${String(o)}.csv`;return{text:h({title:r,sheets:[{name:"Sheet1",freeze:"A2",tables:[{name:i,at:"A1",rows:t}]}]}),path:t,csv:a===","&&s.dialect.finalNewline?e:w(l),rows:l.length-1}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export*from"./address.js";export{DEFAULT_DIALECT,csvField,csvRecord,csvRows,fromTsv,readCsv,toTsv,writeCsv}from"./csv.js";export{patchCsv}from"./patch.js";export*from"./values.js";export*from"./workbook.js";export*from"./calc/remote.js";export*from"./calc/server.js";export{dataFilesOf,readSheetFile}from"./file.js";export{GENERATED,ordinarySheet,typedNumbers,withGenerated}from"./generated.js";export{applyScenario,cellOfName,scenarioNames,scenariosByCell}from"./scenario.js";export{fileCells,hasFiles,isPicture,pictureHeight,pictureSize}from"./files.js";export*from"./formula/ast.js";export{parseFormula}from"./formula/parse.js";export{printFormula,sheetPrefix}from"./formula/print.js";export{moveFormula}from"./formula/move.js";export{rewriteFormula}from"./formula/rewrite.js";export{Calc,seededRandom}from"./calc/engine.js";export{analyse}from"./calc/analyse.js";export{FUNCTIONS}from"./calc/functions/index.js";export{Reference}from"./calc/types.js";export{checkWorkbook,placeName}from"./check.js";export{csvOf,csvText,dataValue,excelNumber,jsonOf,markdownOf,tableRows}from"./export.js";export{generalForms,generalText,isDateCode,shownColor,shownValue}from"./format.js";export{DEFAULT_COLUMN_WIDTH,DEFAULT_ROW_HEIGHT,headerFooterHtml,sheetHtml,SheetPrint}from"./html.js";export{PAPERS,PRINT_DEFAULTS,paginate}from"./paginate.js";export{DEFAULT_TABLE_STYLE,tableStyleLook,tableStyleOf}from"./table-style.js";export{PROFILE_TOP,profileTable}from"./profile.js";export{importRows}from"./import.js";export{patchYaml,writeYaml}from"./write.js";export*from"./edit.js";export*from"./arrange.js";export{NO_LOOK,autoFill,copyLooks,fillDownTo,moveCells,pasteLooks}from"./fill.js";export{seriesAfter}from"./series.js";export{compareForSort,hasHeader,sortCells,sortedOrder,sortedRows}from"./sort.js";export{filterChoices,filteredRows,regionAround}from"./filter.js";export{Rules,colorBetween,compareValues,holds,iconShape}from"./rules.js";export{choicesIn,invalidCells,joinChoices,listValues,separatorOf,valid}from"./validate.js";export{freeColumn,restructure,tableShape,uniqueColumn,withColumnsUpTo}from"./structure.js";export{SHEET_CHART_DEFAULTS,chartAfter,chartDataRange,chartDef,chartOfRange,chartPlace,chartSize,chartSvg,readDataRange}from"./chart.js";export{INSPECT_DEFAULTS,SHEET_FACT_KINDS,inspectWorkbook}from"./inspect.js";export{DIFF_DEFAULTS,diffWorkbooks}from"./diff.js";
2
+ export*from"./address.js";export{patchCsv}from"./patch.js";export*from"./values.js";export*from"./workbook.js";export*from"./calc/remote.js";export*from"./calc/server.js";export{CODE as SHEET_CODE,ENTRY as SHEET_ENTRY,codeOf,dataFilesOf,readSheetFile}from"./file.js";export{GENERATED,ordinarySheet,typedNumbers,withGenerated}from"./generated.js";export{applyScenario,cellOfName,scenarioNames,scenariosByCell}from"./scenario.js";export{fileCells,hasFiles,isPicture,pictureHeight,pictureSize}from"./files.js";export*from"./formula/ast.js";export{parseFormula}from"./formula/parse.js";export{printFormula,sheetPrefix}from"./formula/print.js";export{moveFormula}from"./formula/move.js";export{rewriteFormula}from"./formula/rewrite.js";export{Calc,seededRandom}from"./calc/engine.js";export{analyse}from"./calc/analyse.js";export{FUNCTIONS}from"./calc/functions/index.js";export{Reference}from"./calc/types.js";export{checkWorkbook,placeName}from"./check.js";export{csvOf,csvText,dataValue,excelNumber,jsonOf,markdownOf,tableRows}from"./export.js";export{generalForms,generalText,isDateCode,shownColor,shownValue}from"./format.js";export{DEFAULT_COLUMN_WIDTH,DEFAULT_ROW_HEIGHT,headerFooterHtml,sheetHtml,SheetPrint}from"./html.js";export{PAPERS,PRINT_DEFAULTS,paginate}from"./paginate.js";export{DEFAULT_TABLE_STYLE,tableStyleLook,tableStyleOf}from"./table-style.js";export{PROFILE_TOP,profileTable}from"./profile.js";export{importRows}from"./import.js";export{patchYaml,writeYaml}from"./write.js";export*from"./edit.js";export*from"./arrange.js";export{NO_LOOK,autoFill,copyLooks,fillDownTo,moveCells,pasteLooks}from"./fill.js";export{seriesAfter}from"./series.js";export{compareForSort,hasHeader,sortCells,sortedOrder,sortedRows}from"./sort.js";export{filterChoices,filteredRows,regionAround}from"./filter.js";export{Rules,colorBetween,compareValues,holds,iconShape}from"./rules.js";export{choicesIn,invalidCells,joinChoices,listValues,separatorOf,valid}from"./validate.js";export{freeColumn,restructure,tableShape,uniqueColumn,withColumnsUpTo}from"./structure.js";export{SHEET_CHART_DEFAULTS,chartAfter,chartDataRange,chartDef,chartOfRange,chartPlace,chartSize,chartSvg,readDataRange}from"./chart.js";export{INSPECT_DEFAULTS,SHEET_FACT_KINDS,inspectWorkbook}from"./inspect.js";export{DIFF_DEFAULTS,diffWorkbooks}from"./diff.js";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{csvRecord as y}from"./csv.js";const k=(c,t)=>{if(c.length===0)return"";const n=[];for(let o=0;o<t;o++)n.push(c[o]??"");return n.join("\0")},b=(c,t)=>k(c.end===c.start?[]:c.fields,t);export function patchCsv(c,t){const{dialect:n,records:o,source:u}=c,a=t.reduce((e,l)=>Math.max(e,l.length),0);if(t.length===0)return n.bom?"\uFEFF":"";const g=new Map;for(const e of o)g.set(e.fields,e);const h=new Set,i=new Array(t.length);t.forEach((e,l)=>{const s=g.get(e);s&&!h.has(s)&&(h.add(s),i[l]=u.slice(s.start,s.end))});let r;t.forEach((e,l)=>{if(i[l]!==void 0)return;if(!r){r=new Map;for(const f of o){if(h.has(f)||f.fields.length>a)continue;const m=b(f,a),p=r.get(m);p?p.push(f):r.set(m,[f])}}const s=r.get(k(e,a))?.shift();if(s){i[l]=u.slice(s.start,s.end);return}const d=[...e];for(;d.length<a;)d.push("");i[l]=e.length===0?"":y(d,n.delimiter)});const w=n.finalNewline||i[i.length-1]==="";return`${n.bom?"\uFEFF":""}${i.join(n.newline)}${w?n.newline:""}`}
2
+ import{csvRecord as y}from"@allyhub/formats";const k=(c,t)=>{if(c.length===0)return"";const n=[];for(let o=0;o<t;o++)n.push(c[o]??"");return n.join("\0")},b=(c,t)=>k(c.end===c.start?[]:c.fields,t);export function patchCsv(c,t){const{dialect:n,records:o,source:u}=c,a=t.reduce((e,l)=>Math.max(e,l.length),0);if(t.length===0)return n.bom?"\uFEFF":"";const g=new Map;for(const e of o)g.set(e.fields,e);const h=new Set,i=new Array(t.length);t.forEach((e,l)=>{const s=g.get(e);s&&!h.has(s)&&(h.add(s),i[l]=u.slice(s.start,s.end))});let r;t.forEach((e,l)=>{if(i[l]!==void 0)return;if(!r){r=new Map;for(const f of o){if(h.has(f)||f.fields.length>a)continue;const m=b(f,a),p=r.get(m);p?p.push(f):r.set(m,[f])}}const s=r.get(k(e,a))?.shift();if(s){i[l]=u.slice(s.start,s.end);return}const d=[...e];for(;d.length<a;)d.push("");i[l]=e.length===0?"":y(d,n.delimiter)});const w=n.finalNewline||i[i.length-1]==="";return`${n.bom?"\uFEFF":""}${i.join(n.newline)}${w?n.newline:""}`}
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export{Alignment,AreaChart,AutoFilter,BLOCK_CELLS,BarChart,Comment,Image,PageMargins,PageSetup,Border,CAPABILITIES,Cell,CellIsRule,ChartBase,Color,ColorScaleRule,ColumnDimension,ConditionalFormattingList,DataBarRule,DataLabelList,DataValidation,DataValidationList,DefinedName,DefinedNameDict,DifferentialStyle,DoughnutChart,Font,FormulaRule,GraphicalProperties,IconSetRule,Legend,LineChart,LineProperties,Marker,NumericAxis,PatternFill,PieChart,Reference,RowDimension,Rule,Scaling,ScatterChart,Series,Side,Table,TableList,TextAxis,Workbook,Worksheet,column_index_from_string,coordinate_to_tuple,get_column_letter,load_workbook,range_boundaries,workbook}from"./api/index.js";