allyhub 0.8.0 → 0.10.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 (1719) hide show
  1. package/CHANGELOG.md +19 -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/auth.js +4 -4
  7. package/dist/commands/check.js +1 -1
  8. package/dist/commands/cloud-tools.js +13 -7
  9. package/dist/commands/cloud.js +1 -1
  10. package/dist/commands/contributed.js +2 -0
  11. package/dist/commands/dev.js +2 -2
  12. package/dist/commands/doctor.js +4 -4
  13. package/dist/commands/extensions.js +3 -0
  14. package/dist/commands/frames/common.js +1 -1
  15. package/dist/commands/frames/compare.js +2 -2
  16. package/dist/commands/frames/cuts.js +1 -1
  17. package/dist/commands/frames/doc.js +1 -1
  18. package/dist/commands/frames/overlay.js +2 -0
  19. package/dist/commands/frames/piece.js +1 -1
  20. package/dist/commands/frames/sheet.js +1 -1
  21. package/dist/commands/frames.js +9 -9
  22. package/dist/commands/index.js +1 -1
  23. package/dist/commands/inspect/combos.js +2 -2
  24. package/dist/commands/inspect/common.js +4 -2
  25. package/dist/commands/inspect/facts.js +3 -3
  26. package/dist/commands/inspect/index.js +1 -1
  27. package/dist/commands/inspect/layout.js +1 -1
  28. package/dist/commands/inspect/views.js +2 -0
  29. package/dist/commands/mail.js +9 -0
  30. package/dist/commands/orgs.js +2 -2
  31. package/dist/commands/render.js +2 -2
  32. package/dist/fields.js +1 -1
  33. package/dist/help.js +4 -4
  34. package/dist/main.js +8 -7
  35. package/dist/media.js +1 -1
  36. package/dist/node_modules/@allyhub/3d-extension/LICENSE +241 -0
  37. package/dist/node_modules/@allyhub/3d-extension/dist/build-plugins.js +2 -0
  38. package/dist/node_modules/@allyhub/3d-extension/dist/build.js +2 -0
  39. package/dist/node_modules/@allyhub/3d-extension/dist/cli/index.js +2 -0
  40. package/dist/node_modules/@allyhub/3d-extension/dist/cli/lookup.js +2 -0
  41. package/dist/node_modules/@allyhub/3d-extension/dist/cli/model.js +3 -0
  42. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-input.js +2 -0
  43. package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery.js +7 -0
  44. package/dist/node_modules/@allyhub/3d-extension/dist/project-tools.js +2 -0
  45. package/dist/node_modules/@allyhub/3d-extension/dist/read-view.js +2 -0
  46. package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +2 -0
  47. package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +2 -0
  48. package/dist/node_modules/@allyhub/3d-extension/dist/title.js +2 -0
  49. package/dist/node_modules/@allyhub/3d-extension/dist/tools.js +2 -0
  50. package/dist/node_modules/@allyhub/3d-extension/dist/tree.js +2 -0
  51. package/dist/node_modules/@allyhub/3d-extension/dist/workspace.js +2 -0
  52. package/dist/node_modules/@allyhub/3d-extension/package.json +327 -0
  53. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  54. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  55. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  56. package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +24 -0
  57. package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +61 -0
  58. package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +51 -0
  59. package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +13 -0
  60. package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +35 -0
  61. package/dist/node_modules/@allyhub/browser/dist/html.d.ts +19 -0
  62. package/dist/node_modules/@allyhub/browser/dist/index.d.ts +10 -0
  63. package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +35 -0
  64. package/dist/node_modules/@allyhub/browser/dist/page.d.ts +74 -0
  65. package/dist/node_modules/@allyhub/browser/dist/page.js +1 -1
  66. package/dist/node_modules/@allyhub/browser/dist/server.d.ts +26 -0
  67. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  68. package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +91 -0
  69. package/dist/node_modules/@allyhub/build/dist/build-plugins.js +2 -0
  70. package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +84 -0
  71. package/dist/node_modules/@allyhub/build/dist/cli-command.js +2 -0
  72. package/dist/node_modules/@allyhub/build/dist/content.d.ts +12 -24
  73. package/dist/node_modules/@allyhub/build/dist/content.js +1 -2
  74. package/dist/node_modules/@allyhub/build/dist/data.d.ts +2 -4
  75. package/dist/node_modules/@allyhub/build/dist/data.js +2 -2
  76. package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +44 -0
  77. package/dist/node_modules/@allyhub/build/dist/evaluate.js +2 -0
  78. package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +35 -0
  79. package/dist/node_modules/@allyhub/build/dist/file-check.js +2 -0
  80. package/dist/node_modules/@allyhub/build/dist/files.js +1 -1
  81. package/dist/node_modules/@allyhub/build/dist/generated.d.ts +29 -0
  82. package/dist/node_modules/@allyhub/build/dist/generated.js +2 -0
  83. package/dist/node_modules/@allyhub/build/dist/index.d.ts +23 -9
  84. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  85. package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +119 -0
  86. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +2 -0
  87. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +507 -0
  88. package/dist/node_modules/@allyhub/build/dist/kind-build.js +2 -0
  89. package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +2 -1
  90. package/dist/node_modules/@allyhub/build/dist/matrix.js +1 -1
  91. package/dist/node_modules/@allyhub/build/dist/media.d.ts +1 -1
  92. package/dist/node_modules/@allyhub/build/dist/media.js +1 -1
  93. package/dist/node_modules/@allyhub/build/dist/messages.d.ts +27 -15
  94. package/dist/node_modules/@allyhub/build/dist/messages.js +2 -2
  95. package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +16 -19
  96. package/dist/node_modules/@allyhub/build/dist/meta-worker.js +2 -4
  97. package/dist/node_modules/@allyhub/build/dist/meta.d.ts +1 -1
  98. package/dist/node_modules/@allyhub/build/dist/meta.js +1 -1
  99. package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +1 -1
  100. package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +1 -1
  101. package/dist/node_modules/@allyhub/build/dist/move-refs.js +1 -1
  102. package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +16 -8
  103. package/dist/node_modules/@allyhub/build/dist/plugin.js +8 -9
  104. package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +58 -35
  105. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  106. package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +19 -0
  107. package/dist/node_modules/@allyhub/build/dist/project-root.js +2 -0
  108. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +116 -0
  109. package/dist/node_modules/@allyhub/build/dist/project-tool.js +2 -0
  110. package/dist/node_modules/@allyhub/build/dist/references.d.ts +1 -1
  111. package/dist/node_modules/@allyhub/build/dist/references.js +1 -1
  112. package/dist/node_modules/@allyhub/build/dist/scan.d.ts +7 -12
  113. package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
  114. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +73 -0
  115. package/dist/node_modules/@allyhub/build/dist/takes.d.ts +2 -26
  116. package/dist/node_modules/@allyhub/build/dist/takes.js +1 -2
  117. package/dist/node_modules/@allyhub/build/dist/types.d.ts +1 -1
  118. package/dist/node_modules/@allyhub/build/dist/types.js +1 -1
  119. package/dist/node_modules/@allyhub/build/dist/uses.d.ts +23 -0
  120. package/dist/node_modules/@allyhub/build/dist/uses.js +2 -0
  121. package/dist/node_modules/@allyhub/build/dist/version.d.ts +56 -0
  122. package/dist/node_modules/@allyhub/build/dist/version.js +2 -0
  123. package/dist/node_modules/@allyhub/build/dist/work.d.ts +30 -0
  124. package/dist/node_modules/@allyhub/build/dist/work.js +4 -0
  125. package/dist/node_modules/@allyhub/build/package.json +1 -1
  126. package/dist/node_modules/@allyhub/canvas-extension/LICENSE +241 -0
  127. package/dist/node_modules/@allyhub/canvas-extension/dist/check.js +2 -0
  128. package/dist/node_modules/@allyhub/canvas-extension/dist/inspect.js +4 -0
  129. package/dist/node_modules/@allyhub/canvas-extension/package.json +107 -0
  130. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +7 -0
  131. package/dist/node_modules/@allyhub/canvas-model/LICENSE +241 -0
  132. package/dist/node_modules/@allyhub/canvas-model/dist/canvas.js +8 -0
  133. package/dist/node_modules/@allyhub/canvas-model/dist/check.js +3 -0
  134. package/dist/node_modules/@allyhub/canvas-model/dist/edit.js +2 -0
  135. package/dist/node_modules/@allyhub/canvas-model/dist/index.js +2 -0
  136. package/dist/node_modules/@allyhub/canvas-model/dist/merge.js +2 -0
  137. package/dist/node_modules/@allyhub/canvas-model/package.json +14 -0
  138. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  139. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  140. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  141. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  142. package/dist/node_modules/@allyhub/check/dist/cache.js +1 -1
  143. package/dist/node_modules/@allyhub/check/dist/check.js +2 -3
  144. package/dist/node_modules/@allyhub/check/dist/index.js +1 -1
  145. package/dist/node_modules/@allyhub/check/package.json +1 -1
  146. package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +29 -0
  147. package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +91 -0
  148. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  149. package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +12 -0
  150. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +53 -0
  151. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  152. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +34 -0
  153. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  154. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +76 -0
  155. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
  156. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
  157. package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
  158. package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +24 -0
  159. package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
  160. package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +43 -0
  161. package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +19 -0
  162. package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
  163. package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +18 -0
  164. package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +22 -0
  165. package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +16 -0
  166. package/dist/node_modules/@allyhub/cloud/dist/mail.js +2 -0
  167. package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +11 -0
  168. package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +42 -0
  169. package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +2 -0
  170. package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +40 -0
  171. package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +20 -0
  172. package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +20 -0
  173. package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
  174. package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +58 -0
  175. package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +22 -0
  176. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  177. package/dist/node_modules/@allyhub/components/package.json +1 -1
  178. package/dist/node_modules/@allyhub/components/r/callout.json +2 -4
  179. package/dist/node_modules/@allyhub/components/r/caption-line.json +1 -3
  180. package/dist/node_modules/@allyhub/components/r/caption-subtitle.json +1 -3
  181. package/dist/node_modules/@allyhub/components/r/caption-word.json +1 -3
  182. package/dist/node_modules/@allyhub/components/r/chart.json +2 -4
  183. package/dist/node_modules/@allyhub/components/r/code-panel.json +2 -4
  184. package/dist/node_modules/@allyhub/components/r/connector.json +19 -0
  185. package/dist/node_modules/@allyhub/components/r/screen-demo.json +2 -4
  186. package/dist/node_modules/@allyhub/components/registry.json +6 -0
  187. package/dist/node_modules/@allyhub/components/src/callout.ts +165 -4
  188. package/dist/node_modules/@allyhub/components/src/chart.ts +14 -6
  189. package/dist/node_modules/@allyhub/components/src/code-panel.ts +10 -5
  190. package/dist/node_modules/@allyhub/components/src/connector.ts +295 -0
  191. package/dist/node_modules/@allyhub/components/src/index.ts +6 -0
  192. package/dist/node_modules/@allyhub/components/src/screen-demo.ts +47 -25
  193. package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
  194. package/dist/node_modules/@allyhub/dev-server/dist/card.js +1 -1
  195. package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
  196. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  197. package/dist/node_modules/@allyhub/dev-server/dist/kinds.js +2 -0
  198. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  199. package/dist/node_modules/@allyhub/dev-server/dist/presence.js +2 -0
  200. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  201. package/dist/node_modules/@allyhub/dev-server/dist/reach.js +1 -1
  202. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  203. package/dist/node_modules/@allyhub/dev-server/dist/routes.js +2 -0
  204. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  205. package/dist/node_modules/@allyhub/dev-server/dist/texts.js +4 -0
  206. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  207. package/dist/node_modules/@allyhub/dev-server/dist/tree.js +1 -1
  208. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  209. package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
  210. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +2 -2
  211. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  212. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  213. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  214. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  215. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  216. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  217. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  218. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  219. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  220. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  221. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  222. package/dist/node_modules/@allyhub/doc/dist/captions.js +2 -0
  223. package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
  224. package/dist/node_modules/@allyhub/doc/dist/cite.js +2 -0
  225. package/dist/node_modules/@allyhub/doc/dist/component.js +1 -1
  226. package/dist/node_modules/@allyhub/doc/dist/covers.js +61 -0
  227. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  228. package/dist/node_modules/@allyhub/doc/dist/html.js +247 -57
  229. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  230. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  231. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  232. package/dist/node_modules/@allyhub/doc/dist/page.js +2 -0
  233. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  234. package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
  235. package/dist/node_modules/@allyhub/doc/dist/table.js +2 -0
  236. package/dist/node_modules/@allyhub/doc/dist/write.js +33 -28
  237. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  238. package/dist/node_modules/@allyhub/doc-extension/LICENSE +241 -0
  239. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +3 -0
  240. package/dist/node_modules/@allyhub/doc-extension/dist/cli/cover.js +4 -0
  241. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +2 -0
  242. package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +2 -0
  243. package/dist/node_modules/@allyhub/doc-extension/dist/cli/pictures.js +2 -0
  244. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +2 -0
  245. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +3 -0
  246. package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +2 -0
  247. package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +2 -0
  248. package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +2 -0
  249. package/dist/node_modules/@allyhub/doc-extension/package.json +202 -0
  250. package/dist/node_modules/@allyhub/doc-print/LICENSE +241 -0
  251. package/dist/node_modules/@allyhub/doc-print/dist/facts.js +2 -0
  252. package/dist/node_modules/@allyhub/doc-print/dist/fonts.js +4 -0
  253. package/dist/node_modules/@allyhub/doc-print/dist/index.js +2 -0
  254. package/dist/node_modules/@allyhub/doc-print/dist/layout.js +116 -0
  255. package/dist/node_modules/@allyhub/doc-print/dist/pages.js +77 -0
  256. package/dist/node_modules/@allyhub/doc-print/dist/print.js +68 -0
  257. package/dist/node_modules/@allyhub/doc-print/package.json +13 -0
  258. package/dist/node_modules/@allyhub/export/dist/batch.js +1 -1
  259. package/dist/node_modules/@allyhub/export/dist/export.js +1 -6
  260. package/dist/node_modules/@allyhub/export/dist/index.js +1 -1
  261. package/dist/node_modules/@allyhub/export/dist/names.js +1 -1
  262. package/dist/node_modules/@allyhub/export/dist/processors.js +2 -0
  263. package/dist/node_modules/@allyhub/export/package.json +1 -1
  264. package/dist/node_modules/@allyhub/extension-api/LICENSE +241 -0
  265. package/dist/node_modules/@allyhub/extension-api/dist/api.js +2 -0
  266. package/dist/node_modules/@allyhub/extension-api/dist/index.js +2 -0
  267. package/dist/node_modules/@allyhub/extension-api/dist/lifecycle.js +2 -0
  268. package/dist/node_modules/@allyhub/extension-api/package.json +14 -0
  269. package/dist/node_modules/@allyhub/extension-host/LICENSE +241 -0
  270. package/dist/node_modules/@allyhub/extension-host/dist/host.js +2 -0
  271. package/dist/node_modules/@allyhub/extension-host/dist/index.js +2 -0
  272. package/dist/node_modules/@allyhub/extension-host/dist/node.js +3 -0
  273. package/dist/node_modules/@allyhub/extension-host/dist/points.js +2 -0
  274. package/dist/node_modules/@allyhub/extension-host/dist/shell.js +2 -0
  275. package/dist/node_modules/@allyhub/extension-host/package.json +22 -0
  276. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  277. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  278. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  279. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  280. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  281. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  282. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  283. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
  284. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  285. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
  286. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  287. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  288. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  289. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  290. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  291. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  292. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  293. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  294. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  295. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  296. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  297. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  298. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  299. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  300. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  301. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
  302. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  303. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  304. package/dist/node_modules/@allyhub/i18n/LICENSE +241 -0
  305. package/dist/node_modules/@allyhub/i18n/dist/index.js +2 -0
  306. package/dist/node_modules/@allyhub/i18n/package.json +13 -0
  307. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  308. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  309. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  310. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  311. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  312. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  313. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  314. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  315. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  316. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  317. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  318. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  319. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  320. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  321. package/dist/node_modules/@allyhub/image-extension/LICENSE +241 -0
  322. package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +2 -0
  323. package/dist/node_modules/@allyhub/image-extension/dist/build.js +2 -0
  324. package/dist/node_modules/@allyhub/image-extension/dist/check.js +2 -0
  325. package/dist/node_modules/@allyhub/image-extension/dist/cli.js +3 -0
  326. package/dist/node_modules/@allyhub/image-extension/dist/evaluate.js +2 -0
  327. package/dist/node_modules/@allyhub/image-extension/dist/export.js +2 -0
  328. package/dist/node_modules/@allyhub/image-extension/dist/facts.js +2 -0
  329. package/dist/node_modules/@allyhub/image-extension/dist/project-tools.js +2 -0
  330. package/dist/node_modules/@allyhub/image-extension/dist/sources.js +2 -0
  331. package/dist/node_modules/@allyhub/image-extension/dist/stage.js +2 -0
  332. package/dist/node_modules/@allyhub/image-extension/dist/tools.js +2 -0
  333. package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +2 -0
  334. package/dist/node_modules/@allyhub/image-extension/package.json +291 -0
  335. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +12 -0
  336. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  337. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  338. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  339. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  340. package/dist/node_modules/@allyhub/image-psd/LICENSE +241 -0
  341. package/dist/node_modules/@allyhub/image-psd/dist/index.js +2 -0
  342. package/dist/node_modules/@allyhub/image-psd/dist/map.js +2 -0
  343. package/dist/node_modules/@allyhub/image-psd/dist/pixels.js +2 -0
  344. package/dist/node_modules/@allyhub/image-psd/dist/read.js +18 -0
  345. package/dist/node_modules/@allyhub/image-psd/dist/write.js +2 -0
  346. package/dist/node_modules/@allyhub/image-psd/package.json +14 -0
  347. package/dist/node_modules/@allyhub/image-render/LICENSE +241 -0
  348. package/dist/node_modules/@allyhub/image-render/dist/webp.js +2 -0
  349. package/dist/node_modules/@allyhub/image-render/package.json +14 -0
  350. package/dist/node_modules/@allyhub/image-runtime/LICENSE +241 -0
  351. package/dist/node_modules/@allyhub/image-runtime/dist/board.js +2 -0
  352. package/dist/node_modules/@allyhub/image-runtime/dist/index.js +2 -0
  353. package/dist/node_modules/@allyhub/image-runtime/dist/layers.js +2 -0
  354. package/dist/node_modules/@allyhub/image-runtime/dist/load.js +3 -0
  355. package/dist/node_modules/@allyhub/image-runtime/dist/overset.js +2 -0
  356. package/dist/node_modules/@allyhub/image-runtime/dist/psd.js +2 -0
  357. package/dist/node_modules/@allyhub/image-runtime/package.json +18 -0
  358. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  359. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  360. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  361. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  362. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  363. package/dist/node_modules/@allyhub/image-sdk/dist/fit.js +2 -0
  364. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  365. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  366. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  367. package/dist/node_modules/@allyhub/image-sdk/dist/messages.js +2 -0
  368. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  369. package/dist/node_modules/@allyhub/image-sdk/dist/props.js +2 -0
  370. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  371. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  372. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  373. package/dist/node_modules/@allyhub/image-sdk/dist/text.js +2 -0
  374. package/dist/node_modules/@allyhub/image-sdk/dist/written.js +2 -0
  375. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  376. package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +3 -0
  377. package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +139 -0
  378. package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +41 -0
  379. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  380. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  381. package/dist/node_modules/@allyhub/measure/dist/compare.js +1 -1
  382. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  383. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  384. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  385. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  386. package/dist/node_modules/@allyhub/measure/dist/index.js +1 -1
  387. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  388. package/dist/node_modules/@allyhub/media/NOTICE +1 -42
  389. package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +25 -0
  390. package/dist/node_modules/@allyhub/media/dist/analysis.js +2 -0
  391. package/dist/node_modules/@allyhub/media/dist/audio.d.ts +2 -0
  392. package/dist/node_modules/@allyhub/media/dist/audio.js +1 -1
  393. package/dist/node_modules/@allyhub/media/dist/errors.d.ts +2 -2
  394. package/dist/node_modules/@allyhub/media/dist/index.d.ts +5 -21
  395. package/dist/node_modules/@allyhub/media/dist/index.js +1 -1
  396. package/dist/node_modules/@allyhub/media/dist/tools.d.ts +2 -12
  397. package/dist/node_modules/@allyhub/media/dist/tools.js +1 -1
  398. package/dist/node_modules/@allyhub/media/dist/video.js +1 -1
  399. package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +2 -2
  400. package/dist/node_modules/@allyhub/media/package.json +1 -1
  401. package/dist/node_modules/@allyhub/media-extension/LICENSE +241 -0
  402. package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +2 -0
  403. package/dist/node_modules/@allyhub/media-extension/dist/analyses/matte.js +2 -0
  404. package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +2 -0
  405. package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +2 -0
  406. package/dist/node_modules/@allyhub/media-extension/dist/cloud.js +2 -0
  407. package/dist/node_modules/@allyhub/media-extension/dist/index.js +2 -0
  408. package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +2 -0
  409. package/dist/node_modules/@allyhub/media-extension/dist/vision/boxes.js +2 -0
  410. package/dist/node_modules/@allyhub/media-extension/dist/vision/common.js +2 -0
  411. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +2 -0
  412. package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -0
  413. package/dist/node_modules/@allyhub/media-extension/dist/vision/matte.js +2 -0
  414. package/dist/node_modules/@allyhub/media-extension/dist/vision/mattes.js +2 -0
  415. package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +2 -0
  416. package/dist/node_modules/@allyhub/media-extension/package.json +65 -0
  417. package/dist/node_modules/@allyhub/model/dist/data.d.ts +7 -2
  418. package/dist/node_modules/@allyhub/model/dist/data.js +1 -1
  419. package/dist/node_modules/@allyhub/model/package.json +1 -1
  420. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  421. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  422. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  423. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  424. package/dist/node_modules/@allyhub/piece/dist/anchors.d.ts +156 -0
  425. package/dist/node_modules/@allyhub/piece/dist/component.js +2 -0
  426. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  427. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  428. package/dist/node_modules/@allyhub/piece/dist/contrast.d.ts +98 -0
  429. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +114 -0
  430. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  431. package/dist/node_modules/@allyhub/piece/dist/formats.d.ts +149 -0
  432. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  433. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  434. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  435. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  436. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  437. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  438. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  439. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  440. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
  441. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  442. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +66 -0
  443. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +256 -0
  444. package/dist/node_modules/@allyhub/piece/dist/media.js +2 -0
  445. package/dist/node_modules/@allyhub/piece/dist/messages.d.ts +94 -0
  446. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  447. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  448. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  449. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  450. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  451. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  452. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  453. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  454. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  455. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  456. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  457. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  458. package/dist/node_modules/@allyhub/piece/dist/script.d.ts +81 -0
  459. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  460. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  461. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
  462. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  463. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  464. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  465. package/dist/node_modules/@allyhub/piece/dist/voice.d.ts +156 -0
  466. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  467. package/dist/node_modules/@allyhub/project/dist/component-stills.js +11 -1
  468. package/dist/node_modules/@allyhub/project/dist/console.js +1 -1
  469. package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
  470. package/dist/node_modules/@allyhub/project/dist/index.js +1 -1
  471. package/dist/node_modules/@allyhub/project/dist/ledger.js +1 -1
  472. package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
  473. package/dist/node_modules/@allyhub/project/dist/page.js +2 -2
  474. package/dist/node_modules/@allyhub/project/dist/part-keys.js +2 -0
  475. package/dist/node_modules/@allyhub/project/dist/part-measure.js +2 -0
  476. package/dist/node_modules/@allyhub/project/dist/part-pool.js +2 -0
  477. package/dist/node_modules/@allyhub/project/dist/session.js +1 -1
  478. package/dist/node_modules/@allyhub/project/dist/stills.js +1 -1
  479. package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
  480. package/dist/node_modules/@allyhub/project/package.json +1 -1
  481. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
  482. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  483. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  484. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  485. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  486. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  487. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
  488. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
  489. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  490. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  491. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
  492. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  493. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
  494. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  495. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  496. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  497. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
  498. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  499. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  500. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  501. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
  502. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  503. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  504. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  505. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  506. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
  507. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  508. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
  509. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  510. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  511. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  512. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  513. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  514. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  515. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  516. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  517. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  518. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  519. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  520. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  521. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  522. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  523. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  524. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  525. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  526. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  527. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  528. package/dist/node_modules/@allyhub/render/dist/capture.js +1 -1
  529. package/dist/node_modules/@allyhub/render/dist/composite.js +1 -1
  530. package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
  531. package/dist/node_modules/@allyhub/render/dist/exports.js +2 -2
  532. package/dist/node_modules/@allyhub/render/dist/ffmpeg.js +3 -3
  533. package/dist/node_modules/@allyhub/render/dist/footage.js +1 -1
  534. package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
  535. package/dist/node_modules/@allyhub/render/dist/junction.js +1 -1
  536. package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
  537. package/dist/node_modules/@allyhub/render/dist/parts.js +1 -1
  538. package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
  539. package/dist/node_modules/@allyhub/render/dist/post.js +1 -1
  540. package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
  541. package/dist/node_modules/@allyhub/render/dist/sound.js +1 -1
  542. package/dist/node_modules/@allyhub/render/dist/tools.js +1 -1
  543. package/dist/node_modules/@allyhub/render/dist/version.js +2 -0
  544. package/dist/node_modules/@allyhub/render/package.json +1 -5
  545. package/dist/node_modules/@allyhub/runtime/dist/captions.js +1 -1
  546. package/dist/node_modules/@allyhub/runtime/dist/clock.js +1 -1
  547. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  548. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  549. package/dist/node_modules/@allyhub/runtime/dist/facade.js +1 -1
  550. package/dist/node_modules/@allyhub/runtime/dist/film.js +2 -0
  551. package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
  552. package/dist/node_modules/@allyhub/runtime/dist/frame.js +1 -1
  553. package/dist/node_modules/@allyhub/runtime/dist/index.js +1 -1
  554. package/dist/node_modules/@allyhub/runtime/dist/measure.js +2 -2
  555. package/dist/node_modules/@allyhub/runtime/dist/output.js +1 -1
  556. package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
  557. package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
  558. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  559. package/dist/node_modules/@allyhub/runtime/dist/sound.js +1 -1
  560. package/dist/node_modules/@allyhub/runtime/dist/speech.js +1 -1
  561. package/dist/node_modules/@allyhub/runtime/dist/stage-kit.js +1 -1
  562. package/dist/node_modules/@allyhub/runtime/dist/takes.js +1 -1
  563. package/dist/node_modules/@allyhub/runtime/package.json +1 -5
  564. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  565. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  566. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  567. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  568. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  569. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  570. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  571. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  572. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  573. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  574. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  575. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  576. package/dist/node_modules/@allyhub/scaffold/dist/index.js +6 -5
  577. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  578. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  579. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  580. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  581. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  582. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  583. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  584. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  585. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  586. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  587. package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +2 -3
  588. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +14 -7
  589. package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +4 -4
  590. package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +314 -0
  591. package/dist/node_modules/@allyhub/scenery-host/dist/fact.js +2 -0
  592. package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +1 -0
  593. package/dist/node_modules/@allyhub/scenery-host/dist/index.js +1 -1
  594. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
  595. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
  596. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +6 -5
  597. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
  598. package/dist/node_modules/@allyhub/scenery-host/dist/layer/queries.d.ts +1 -1
  599. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +2 -2
  600. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
  601. package/dist/node_modules/@allyhub/scenery-host/dist/layer/state.d.ts +1 -1
  602. package/dist/node_modules/@allyhub/scenery-host/dist/layer/types.d.ts +2 -2
  603. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.d.ts +3 -3
  604. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
  605. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +1 -1
  606. package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +1 -1
  607. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
  608. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
  609. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +42 -0
  610. package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.js +4 -0
  611. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +6 -0
  612. package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.js +2 -0
  613. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +70 -0
  614. package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.js +12 -0
  615. package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +49 -0
  616. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +73 -0
  617. package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.js +3 -0
  618. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +18 -0
  619. package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.js +2 -0
  620. package/dist/node_modules/@allyhub/scenery-host/package.json +5 -1
  621. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  622. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  623. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  624. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  625. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  626. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  627. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  628. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  629. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  630. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  631. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  632. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  633. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  634. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  635. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  636. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  637. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  638. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  639. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  640. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  641. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  642. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  643. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  644. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  645. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  646. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  647. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  648. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  649. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  650. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  651. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  652. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  653. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  654. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  655. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  656. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  657. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  658. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  659. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  660. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  661. package/dist/node_modules/@allyhub/sheet-extension/LICENSE +241 -0
  662. package/dist/node_modules/@allyhub/sheet-extension/dist/build-plugins.js +2 -0
  663. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +2 -0
  664. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/index.js +2 -0
  665. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +2 -0
  666. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +8 -0
  667. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +2 -0
  668. package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +3 -0
  669. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +7 -0
  670. package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +3 -0
  671. package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +2 -0
  672. package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +2 -0
  673. package/dist/node_modules/@allyhub/sheet-extension/dist/workspace.js +2 -0
  674. package/dist/node_modules/@allyhub/sheet-extension/package.json +228 -0
  675. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  676. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  677. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  678. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  679. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  680. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  681. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  682. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  683. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  684. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  685. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  686. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  687. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  688. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  689. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  690. package/dist/node_modules/@allyhub/slides-extension/LICENSE +241 -0
  691. package/dist/node_modules/@allyhub/slides-extension/dist/build-plugins.js +2 -0
  692. package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -0
  693. package/dist/node_modules/@allyhub/slides-extension/dist/check.js +2 -0
  694. package/dist/node_modules/@allyhub/slides-extension/dist/cli/index.js +2 -0
  695. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +3 -0
  696. package/dist/node_modules/@allyhub/slides-extension/dist/deck-info.js +2 -0
  697. package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +2 -0
  698. package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +3 -0
  699. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +2 -0
  700. package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +2 -0
  701. package/dist/node_modules/@allyhub/slides-extension/dist/read-view.js +2 -0
  702. package/dist/node_modules/@allyhub/slides-extension/dist/stage.js +2 -0
  703. package/dist/node_modules/@allyhub/slides-extension/dist/tools.js +2 -0
  704. package/dist/node_modules/@allyhub/slides-extension/dist/workspace.js +2 -0
  705. package/dist/node_modules/@allyhub/slides-extension/package.json +265 -0
  706. package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
  707. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  708. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
  709. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  710. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +1 -1
  711. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  712. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  713. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  714. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  715. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  716. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  717. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
  718. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  719. package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
  720. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  721. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  722. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  723. package/dist/node_modules/@allyhub/stage/dist/build-process.js +2 -2
  724. package/dist/node_modules/@allyhub/stage/dist/build-worker.js +1 -1
  725. package/dist/node_modules/@allyhub/stage/dist/identity.js +1 -1
  726. package/dist/node_modules/@allyhub/stage/dist/index.js +1 -1
  727. package/dist/node_modules/@allyhub/stage/dist/page.js +2 -2
  728. package/dist/node_modules/@allyhub/stage/dist/server.js +1 -1
  729. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  730. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
  731. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
  732. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
  733. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
  734. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
  735. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
  736. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
  737. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
  738. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
  739. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
  740. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
  741. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
  742. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
  743. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
  744. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
  745. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
  746. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
  747. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
  748. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
  749. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
  750. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
  751. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
  752. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
  753. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
  754. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
  755. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
  756. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
  757. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
  758. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
  759. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
  760. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
  761. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
  762. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
  763. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
  764. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
  765. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
  766. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
  767. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
  768. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
  769. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
  770. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
  771. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
  772. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
  773. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
  774. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
  775. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
  776. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
  777. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
  778. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
  779. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
  780. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
  781. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
  782. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
  783. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
  784. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
  785. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
  786. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
  787. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
  788. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
  789. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
  790. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
  791. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
  792. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
  793. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
  794. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
  795. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
  796. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
  797. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
  798. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
  799. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
  800. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
  801. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
  802. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
  803. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
  804. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
  805. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
  806. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
  807. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
  808. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
  809. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
  810. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
  811. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
  812. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
  813. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
  814. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
  815. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
  816. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
  817. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
  818. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
  819. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
  820. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  821. package/dist/node_modules/@allyhub/stage-page/dist/install.js +2 -0
  822. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
  823. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
  824. package/dist/node_modules/@allyhub/stage-page/dist/stage-module.js +2 -0
  825. package/dist/node_modules/@allyhub/stage-page/package.json +5 -1
  826. package/dist/node_modules/@allyhub/stage-runtime/LICENSE +241 -0
  827. package/dist/node_modules/@allyhub/stage-runtime/dist/index.js +2 -0
  828. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +80 -0
  829. package/dist/node_modules/@allyhub/stage-runtime/dist/use.js +2 -0
  830. package/dist/node_modules/@allyhub/stage-runtime/package.json +17 -0
  831. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  832. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  833. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  834. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  835. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  836. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  837. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  838. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  839. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  840. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  841. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  842. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  843. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  844. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  845. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  846. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  847. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  848. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  849. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  850. package/dist/node_modules/@allyhub/video-extension/LICENSE +241 -0
  851. package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +2 -0
  852. package/dist/node_modules/@allyhub/video-extension/dist/build.js +2 -0
  853. package/dist/node_modules/@allyhub/video-extension/dist/cli/audio-text.js +6 -0
  854. package/dist/node_modules/@allyhub/video-extension/dist/cli/audio.js +4 -0
  855. package/dist/node_modules/@allyhub/video-extension/dist/cli/cloud.js +2 -0
  856. package/dist/node_modules/@allyhub/video-extension/dist/cli/draw.js +2 -0
  857. package/dist/node_modules/@allyhub/video-extension/dist/cli/index.js +2 -0
  858. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +5 -0
  859. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference.js +2 -0
  860. package/dist/node_modules/@allyhub/video-extension/dist/cli/voice.js +3 -0
  861. package/dist/node_modules/@allyhub/video-extension/dist/cli/words-text.js +6 -0
  862. package/dist/node_modules/@allyhub/video-extension/dist/cli/words.js +2 -0
  863. package/dist/node_modules/@allyhub/video-extension/dist/evaluate.js +2 -0
  864. package/dist/node_modules/@allyhub/video-extension/dist/export.js +2 -0
  865. package/dist/node_modules/@allyhub/video-extension/dist/inspect/common.js +2 -0
  866. package/dist/node_modules/@allyhub/video-extension/dist/inspect/contrast.js +2 -0
  867. package/dist/node_modules/@allyhub/video-extension/dist/inspect/fidelity.js +2 -0
  868. package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +2 -0
  869. package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +2 -0
  870. package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +4 -0
  871. package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline-text.js +2 -0
  872. package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline.js +3 -0
  873. package/dist/node_modules/@allyhub/video-extension/dist/project-tools.js +2 -0
  874. package/dist/node_modules/@allyhub/video-extension/dist/read-view.js +2 -0
  875. package/dist/node_modules/@allyhub/video-extension/dist/sources.js +2 -0
  876. package/dist/node_modules/@allyhub/video-extension/dist/stage-routes.js +2 -0
  877. package/dist/node_modules/@allyhub/video-extension/dist/stage.js +2 -0
  878. package/dist/node_modules/@allyhub/video-extension/dist/tools.js +2 -0
  879. package/dist/node_modules/@allyhub/video-extension/dist/workspace.js +2 -0
  880. package/dist/node_modules/@allyhub/video-extension/package.json +469 -0
  881. package/dist/node_modules/@allyhub/video-measure/LICENSE +241 -0
  882. package/dist/node_modules/@allyhub/video-measure/dist/check.js +3 -0
  883. package/dist/node_modules/@allyhub/video-measure/dist/cuts.js +2 -0
  884. package/dist/node_modules/@allyhub/video-measure/dist/facts.js +2 -0
  885. package/dist/node_modules/@allyhub/video-measure/dist/generated.js +2 -0
  886. package/dist/node_modules/@allyhub/video-measure/dist/graphics.js +2 -0
  887. package/dist/node_modules/@allyhub/video-measure/dist/index.js +2 -0
  888. package/dist/node_modules/@allyhub/video-measure/dist/page.js +2 -0
  889. package/dist/node_modules/@allyhub/video-measure/dist/plans.js +3 -0
  890. package/dist/node_modules/@allyhub/video-measure/dist/recording-report.js +2 -0
  891. package/dist/node_modules/@allyhub/video-measure/dist/reference/piece.js +2 -0
  892. package/dist/node_modules/@allyhub/video-measure/dist/reference/sets.js +2 -0
  893. package/dist/node_modules/@allyhub/video-measure/dist/reference/text.js +2 -0
  894. package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +2 -0
  895. package/dist/node_modules/@allyhub/video-measure/dist/says.js +2 -0
  896. package/dist/node_modules/@allyhub/video-measure/dist/sound-report.js +2 -0
  897. package/dist/node_modules/@allyhub/video-measure/dist/stretch.js +2 -0
  898. package/dist/node_modules/@allyhub/video-measure/dist/version.js +2 -0
  899. package/dist/node_modules/@allyhub/video-measure/dist/words.js +3 -0
  900. package/dist/node_modules/@allyhub/video-measure/package.json +13 -0
  901. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  902. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  903. package/dist/node_modules/@allyhub/video-sdk/dist/anim.js +2 -0
  904. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  905. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  906. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  907. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  908. package/dist/node_modules/@allyhub/video-sdk/dist/noise.js +2 -0
  909. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  910. package/dist/node_modules/@allyhub/video-sdk/dist/paths.js +2 -0
  911. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  912. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  913. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  914. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  915. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  916. package/dist/node_modules/@allyhub/website/dist/publish.js +2 -2
  917. package/dist/node_modules/@allyhub/website/dist/website.js +3 -3
  918. package/dist/node_modules/@allyhub/website/package.json +1 -1
  919. package/dist/node_modules/@allyhub/website-extension/LICENSE +241 -0
  920. package/dist/node_modules/@allyhub/website-extension/dist/build.js +2 -0
  921. package/dist/node_modules/@allyhub/website-extension/dist/cli/index.js +2 -0
  922. package/dist/node_modules/@allyhub/website-extension/dist/cli/site.js +4 -0
  923. package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
  924. package/dist/node_modules/@allyhub/website-extension/dist/hosting.js +2 -0
  925. package/dist/node_modules/@allyhub/website-extension/dist/preview.js +6 -0
  926. package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +25 -0
  927. package/dist/node_modules/@allyhub/website-extension/dist/tools.js +2 -0
  928. package/dist/node_modules/@allyhub/website-extension/package.json +199 -0
  929. package/dist/node_modules/@allyhub/x-extension/LICENSE +241 -0
  930. package/dist/node_modules/@allyhub/x-extension/dist/article-build.js +4 -0
  931. package/dist/node_modules/@allyhub/x-extension/dist/article-kind.js +2 -0
  932. package/dist/node_modules/@allyhub/x-extension/dist/build-plugins.js +2 -0
  933. package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -0
  934. package/dist/node_modules/@allyhub/x-extension/dist/config.js +2 -0
  935. package/dist/node_modules/@allyhub/x-extension/dist/media.js +2 -0
  936. package/dist/node_modules/@allyhub/x-extension/dist/stage-module.js +67 -0
  937. package/dist/node_modules/@allyhub/x-extension/dist/stage.js +2 -0
  938. package/dist/node_modules/@allyhub/x-extension/dist/workspace.js +2 -0
  939. package/dist/node_modules/@allyhub/x-extension/package.json +307 -0
  940. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +12 -0
  941. package/dist/node_modules/@allyhub/x-model/LICENSE +241 -0
  942. package/dist/node_modules/@allyhub/x-model/dist/article-check.js +5 -0
  943. package/dist/node_modules/@allyhub/x-model/dist/article.js +3 -0
  944. package/dist/node_modules/@allyhub/x-model/dist/check.js +2 -0
  945. package/dist/node_modules/@allyhub/x-model/dist/content-state.js +2 -0
  946. package/dist/node_modules/@allyhub/x-model/dist/count.js +2 -0
  947. package/dist/node_modules/@allyhub/x-model/dist/edit.js +3 -0
  948. package/dist/node_modules/@allyhub/x-model/dist/index.js +2 -0
  949. package/dist/node_modules/@allyhub/x-model/dist/limits.js +2 -0
  950. package/dist/node_modules/@allyhub/x-model/dist/post.js +2 -0
  951. package/dist/node_modules/@allyhub/x-model/dist/requests.js +2 -0
  952. package/dist/node_modules/@allyhub/x-model/package.json +14 -0
  953. package/dist/node_modules/@allyhub/x-view/LICENSE +241 -0
  954. package/dist/node_modules/@allyhub/x-view/dist/article.js +2 -0
  955. package/dist/node_modules/@allyhub/x-view/dist/index.js +2 -0
  956. package/dist/node_modules/@allyhub/x-view/dist/post.js +3 -0
  957. package/dist/node_modules/@allyhub/x-view/dist/stage.js +2 -0
  958. package/dist/node_modules/@allyhub/x-view/dist/text.js +2 -0
  959. package/dist/node_modules/@allyhub/x-view/package.json +21 -0
  960. package/dist/node_modules/@allyhub/x-view/src/style.css +709 -0
  961. package/dist/package.json +16 -0
  962. package/dist/parameters.js +1 -1
  963. package/dist/presence.js +2 -0
  964. package/dist/project.js +1 -1
  965. package/dist/sdk-docs.js +1 -1
  966. package/dist/text/batch-text.js +1 -1
  967. package/dist/text/console-text.js +1 -1
  968. package/dist/text/facts-text.js +5 -5
  969. package/dist/text/format.js +2 -2
  970. package/dist/text/index.js +1 -1
  971. package/dist/text/long-text.js +4 -0
  972. package/dist/tool-options.js +1 -1
  973. package/dist/version.js +1 -1
  974. package/dist/works.js +1 -1
  975. package/editor-web/assets/abnfDiagram-WEYOIA3C-CjAmWsNR.js +1 -0
  976. package/editor-web/assets/alt-DnBZJzEh.js +4 -0
  977. package/editor-web/assets/architecture-WOLXFQ4H-DeeKhyhZ.js +1 -0
  978. package/editor-web/assets/architectureDiagram-ZHVYKT53-b32qTaJg.js +36 -0
  979. package/editor-web/assets/arrow-up-L4YV_65f.js +1 -0
  980. package/editor-web/assets/article-DLMjAdbP.js +73 -0
  981. package/editor-web/assets/audio-lines-BFcM7G2L.js +1 -0
  982. package/editor-web/assets/blockDiagram-RJAE7QA3-BNbnMNmw.js +140 -0
  983. package/editor-web/assets/button-Chk675Xu.js +41 -0
  984. package/editor-web/assets/c4Diagram-XDPPPE54-BEuemvMw.js +38 -0
  985. package/editor-web/assets/caladea-latin-400-italic-BXgumMrY.woff +0 -0
  986. package/editor-web/assets/caladea-latin-400-italic-LV4kG-PE.woff2 +0 -0
  987. package/editor-web/assets/caladea-latin-400-normal-BdRVtv9R.woff +0 -0
  988. package/editor-web/assets/caladea-latin-400-normal-CEHWF4nY.woff2 +0 -0
  989. package/editor-web/assets/caladea-latin-700-italic-ChDjCuPY.woff +0 -0
  990. package/editor-web/assets/caladea-latin-700-italic-DswTWW_F.woff2 +0 -0
  991. package/editor-web/assets/caladea-latin-700-normal-0s3Ufwiy.woff +0 -0
  992. package/editor-web/assets/caladea-latin-700-normal-Emkxzyyt.woff2 +0 -0
  993. package/editor-web/assets/caladea-latin-ext-400-italic-DaI5RAJ1.woff2 +0 -0
  994. package/editor-web/assets/caladea-latin-ext-400-italic-Ddrq60cI.woff +0 -0
  995. package/editor-web/assets/caladea-latin-ext-400-normal-BjxrNPcj.woff +0 -0
  996. package/editor-web/assets/caladea-latin-ext-400-normal-CyFL0oLC.woff2 +0 -0
  997. package/editor-web/assets/caladea-latin-ext-700-italic-BPwR0tp-.woff +0 -0
  998. package/editor-web/assets/caladea-latin-ext-700-italic-DKIXMnVd.woff2 +0 -0
  999. package/editor-web/assets/caladea-latin-ext-700-normal-jPPxbA1-.woff2 +0 -0
  1000. package/editor-web/assets/caladea-latin-ext-700-normal-sbmkuTql.woff +0 -0
  1001. package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
  1002. package/editor-web/assets/carlito-cyrillic-400-italic-BBq3u1wn.woff2 +0 -0
  1003. package/editor-web/assets/carlito-cyrillic-400-italic-DkiFjkCS.woff +0 -0
  1004. package/editor-web/assets/carlito-cyrillic-400-normal-BtG3bBmV.woff +0 -0
  1005. package/editor-web/assets/carlito-cyrillic-400-normal-Bzv-FGbj.woff2 +0 -0
  1006. package/editor-web/assets/carlito-cyrillic-700-italic-BWpxjWJ1.woff2 +0 -0
  1007. package/editor-web/assets/carlito-cyrillic-700-italic-CkpLb3ak.woff +0 -0
  1008. package/editor-web/assets/carlito-cyrillic-700-normal-Cj42L3Bs.woff2 +0 -0
  1009. package/editor-web/assets/carlito-cyrillic-700-normal-bxg6f20d.woff +0 -0
  1010. package/editor-web/assets/carlito-cyrillic-ext-400-italic-BiZjW1hk.woff2 +0 -0
  1011. package/editor-web/assets/carlito-cyrillic-ext-400-italic-DcD3cPwb.woff +0 -0
  1012. package/editor-web/assets/carlito-cyrillic-ext-400-normal-DYs6OoL4.woff2 +0 -0
  1013. package/editor-web/assets/carlito-cyrillic-ext-400-normal-UzWcrHdi.woff +0 -0
  1014. package/editor-web/assets/carlito-cyrillic-ext-700-italic-ClXPMqhh.woff2 +0 -0
  1015. package/editor-web/assets/carlito-cyrillic-ext-700-italic-DoehkTRC.woff +0 -0
  1016. package/editor-web/assets/carlito-cyrillic-ext-700-normal-BAPhAm-q.woff2 +0 -0
  1017. package/editor-web/assets/carlito-cyrillic-ext-700-normal-C5O8kkCQ.woff +0 -0
  1018. package/editor-web/assets/carlito-greek-400-italic-C1DqF7JR.woff2 +0 -0
  1019. package/editor-web/assets/carlito-greek-400-italic-Cnl_RiK8.woff +0 -0
  1020. package/editor-web/assets/carlito-greek-400-normal-Cv5gcxdy.woff2 +0 -0
  1021. package/editor-web/assets/carlito-greek-400-normal-aOjZpsFX.woff +0 -0
  1022. package/editor-web/assets/carlito-greek-700-italic-DfpwTZ8N.woff +0 -0
  1023. package/editor-web/assets/carlito-greek-700-italic-VWqy950O.woff2 +0 -0
  1024. package/editor-web/assets/carlito-greek-700-normal-B-Y_qvTa.woff +0 -0
  1025. package/editor-web/assets/carlito-greek-700-normal-BXGaow7Z.woff2 +0 -0
  1026. package/editor-web/assets/carlito-greek-ext-400-italic-BUNDIZnl.woff +0 -0
  1027. package/editor-web/assets/carlito-greek-ext-400-italic-o-WxseCy.woff2 +0 -0
  1028. package/editor-web/assets/carlito-greek-ext-400-normal-DnfnTswf.woff2 +0 -0
  1029. package/editor-web/assets/carlito-greek-ext-400-normal-m-eDGcsW.woff +0 -0
  1030. package/editor-web/assets/carlito-greek-ext-700-italic-DD0r8DLp.woff +0 -0
  1031. package/editor-web/assets/carlito-greek-ext-700-italic-DiO5Rxw8.woff2 +0 -0
  1032. package/editor-web/assets/carlito-greek-ext-700-normal-BGl1PQht.woff +0 -0
  1033. package/editor-web/assets/carlito-greek-ext-700-normal-COKnZ-5a.woff2 +0 -0
  1034. package/editor-web/assets/carlito-latin-400-italic-BiMes9J5.woff2 +0 -0
  1035. package/editor-web/assets/carlito-latin-400-italic-DcRV6skQ.woff +0 -0
  1036. package/editor-web/assets/carlito-latin-400-normal-R-CeALMm.woff2 +0 -0
  1037. package/editor-web/assets/carlito-latin-400-normal-jEGHVXAP.woff +0 -0
  1038. package/editor-web/assets/carlito-latin-700-italic-BkeTGILl.woff +0 -0
  1039. package/editor-web/assets/carlito-latin-700-italic-Ckstd88m.woff2 +0 -0
  1040. package/editor-web/assets/carlito-latin-700-normal-CjG3MLqY.woff +0 -0
  1041. package/editor-web/assets/carlito-latin-700-normal-DQ6DOkPk.woff2 +0 -0
  1042. package/editor-web/assets/carlito-latin-ext-400-italic-B7I2MSBC.woff +0 -0
  1043. package/editor-web/assets/carlito-latin-ext-400-italic-CqQQuoTt.woff2 +0 -0
  1044. package/editor-web/assets/carlito-latin-ext-400-normal-D112-ed2.woff +0 -0
  1045. package/editor-web/assets/carlito-latin-ext-400-normal-DPZWia0-.woff2 +0 -0
  1046. package/editor-web/assets/carlito-latin-ext-700-italic-BvVMpuZ3.woff2 +0 -0
  1047. package/editor-web/assets/carlito-latin-ext-700-italic-Cocp2sK5.woff +0 -0
  1048. package/editor-web/assets/carlito-latin-ext-700-normal-9QIvu-gI.woff +0 -0
  1049. package/editor-web/assets/carlito-latin-ext-700-normal-D2WO8ap1.woff2 +0 -0
  1050. package/editor-web/assets/carlito-vietnamese-400-italic-Dpe35oQb.woff +0 -0
  1051. package/editor-web/assets/carlito-vietnamese-400-italic-vBbFSHZk.woff2 +0 -0
  1052. package/editor-web/assets/carlito-vietnamese-400-normal-BA1ASEPx.woff2 +0 -0
  1053. package/editor-web/assets/carlito-vietnamese-400-normal-D0HL2cT_.woff +0 -0
  1054. package/editor-web/assets/carlito-vietnamese-700-italic-rWsihy0W.woff +0 -0
  1055. package/editor-web/assets/carlito-vietnamese-700-italic-tiFMON_I.woff2 +0 -0
  1056. package/editor-web/assets/carlito-vietnamese-700-normal-DIEsMQO6.woff +0 -0
  1057. package/editor-web/assets/carlito-vietnamese-700-normal-gG8ns3Xg.woff2 +0 -0
  1058. package/editor-web/assets/channel-EzYq4r0d.js +1 -0
  1059. package/editor-web/assets/chart-Be9Hj5GL.js +1 -0
  1060. package/editor-web/assets/choice-BgmBh4yu.js +1 -0
  1061. package/editor-web/assets/chunk-2E7WHVMD-Zb5nPx_e.js +88 -0
  1062. package/editor-web/assets/chunk-4EMNKR2T-DSEM2reX.js +1 -0
  1063. package/editor-web/assets/chunk-55XCU76K-BOZa_65H.js +1 -0
  1064. package/editor-web/assets/chunk-7S6XSTFO-DeiGeVpB.js +2 -0
  1065. package/editor-web/assets/chunk-AQDTSKZB-fPuQFBJc.js +72 -0
  1066. package/editor-web/assets/chunk-DSNLSHJZ-5vdnoak2.js +129 -0
  1067. package/editor-web/assets/chunk-HAGFOTED-DFF2mZJ1.js +62 -0
  1068. package/editor-web/assets/chunk-HNE4Q36P-g6-ZLbTg.js +1 -0
  1069. package/editor-web/assets/chunk-NQOKRVIF-o3hNcHMJ.js +213 -0
  1070. package/editor-web/assets/chunk-UHW7PFBP-BQiDI9dK.js +1 -0
  1071. package/editor-web/assets/chunk-VQ5W62QI-CJlMXWWz.js +1 -0
  1072. package/editor-web/assets/chunk-WQQL4CDK-pNBU8dXv.js +10 -0
  1073. package/editor-web/assets/chunk-YZO67HFG-2x-BiWd-.js +1 -0
  1074. package/editor-web/assets/chunk-ZAUX2LTX-etFStEM8.js +1 -0
  1075. package/editor-web/assets/chunk-ZCHMQSOR-B3AYRhIY.js +2 -0
  1076. package/editor-web/assets/classDiagram-v2-4MYWR3UA-6y2yX0oq.js +217 -0
  1077. package/editor-web/assets/collaborator-LRd0hELn.js +1 -0
  1078. package/editor-web/assets/cousine-cyrillic-400-normal-D7Mp9hmd.woff +0 -0
  1079. package/editor-web/assets/cousine-cyrillic-400-normal-DaHhUWxZ.woff2 +0 -0
  1080. package/editor-web/assets/cousine-cyrillic-700-normal-BEGCXyFC.woff +0 -0
  1081. package/editor-web/assets/cousine-cyrillic-700-normal-BkkUdX_g.woff2 +0 -0
  1082. package/editor-web/assets/cousine-cyrillic-ext-400-normal-CfRZlfI3.woff +0 -0
  1083. package/editor-web/assets/cousine-cyrillic-ext-400-normal-DHXCUfGT.woff2 +0 -0
  1084. package/editor-web/assets/cousine-cyrillic-ext-700-normal-C15KMCf5.woff2 +0 -0
  1085. package/editor-web/assets/cousine-cyrillic-ext-700-normal-DhfE94aH.woff +0 -0
  1086. package/editor-web/assets/cousine-greek-400-normal-CWPwwPBl.woff +0 -0
  1087. package/editor-web/assets/cousine-greek-400-normal-D28eY3d7.woff2 +0 -0
  1088. package/editor-web/assets/cousine-greek-700-normal-DsTT0TsI.woff2 +0 -0
  1089. package/editor-web/assets/cousine-greek-700-normal-rpH_OJFi.woff +0 -0
  1090. package/editor-web/assets/cousine-greek-ext-400-normal-n0k5mInY.woff +0 -0
  1091. package/editor-web/assets/cousine-greek-ext-400-normal-qdX5ZLbv.woff2 +0 -0
  1092. package/editor-web/assets/cousine-greek-ext-700-normal-CSy642Ya.woff +0 -0
  1093. package/editor-web/assets/cousine-greek-ext-700-normal-DgHq_I2n.woff2 +0 -0
  1094. package/editor-web/assets/cousine-hebrew-400-normal-COyK3YUR.woff2 +0 -0
  1095. package/editor-web/assets/cousine-hebrew-400-normal-oCiNOOyc.woff +0 -0
  1096. package/editor-web/assets/cousine-hebrew-700-normal-BCE0G3Nu.woff2 +0 -0
  1097. package/editor-web/assets/cousine-hebrew-700-normal-Bf9jZ0p9.woff +0 -0
  1098. package/editor-web/assets/cousine-latin-400-normal-BhCTjpdJ.woff2 +0 -0
  1099. package/editor-web/assets/cousine-latin-400-normal-D0CzircV.woff +0 -0
  1100. package/editor-web/assets/cousine-latin-700-normal-BO_dhHEP.woff +0 -0
  1101. package/editor-web/assets/cousine-latin-700-normal-CwJ0o97b.woff2 +0 -0
  1102. package/editor-web/assets/cousine-latin-ext-400-normal-B_NP9zZK.woff +0 -0
  1103. package/editor-web/assets/cousine-latin-ext-400-normal-CGywThDL.woff2 +0 -0
  1104. package/editor-web/assets/cousine-latin-ext-700-normal-DWTrZAet.woff2 +0 -0
  1105. package/editor-web/assets/cousine-latin-ext-700-normal-NvcoPDWO.woff +0 -0
  1106. package/editor-web/assets/cousine-vietnamese-400-normal-B4JqDdoh.woff2 +0 -0
  1107. package/editor-web/assets/cousine-vietnamese-400-normal-Bfsm3lEf.woff +0 -0
  1108. package/editor-web/assets/cousine-vietnamese-700-normal-B4DXCoMM.woff +0 -0
  1109. package/editor-web/assets/cousine-vietnamese-700-normal-DLBKC3PH.woff2 +0 -0
  1110. package/editor-web/assets/createLucideIcon-CPS-TrJJ.js +1 -0
  1111. package/editor-web/assets/cynefin-EF2NZ3EQ-CX4BTQQe.js +1 -0
  1112. package/editor-web/assets/cynefinDiagram-WF24UDRP-LbDkOTy3.js +62 -0
  1113. package/editor-web/assets/dagre-NK4GIZVX-wCKQk7hi.js +4 -0
  1114. package/editor-web/assets/diagram-CBK3MWTC-a9fofQwk.js +24 -0
  1115. package/editor-web/assets/diagram-I5XIIV2D-UCLZWch5.js +24 -0
  1116. package/editor-web/assets/diagram-ODIL2UCW-CAEe88Lp.js +30 -0
  1117. package/editor-web/assets/diagram-PFBEJUXE-Cp1o45bs.js +3 -0
  1118. package/editor-web/assets/diagram-RJA3I4VV-c6OVxDyq.js +41 -0
  1119. package/editor-web/assets/diagram-TYUNFSNR-BVRWslDM.js +200 -0
  1120. package/editor-web/assets/dist--KKyT5zP.js +340 -0
  1121. package/editor-web/assets/dist-1k0MHB3i.js +1 -0
  1122. package/editor-web/assets/dist-B9KHJqL5.js +4 -0
  1123. package/editor-web/assets/dist-BbJyrhIY.js +1 -0
  1124. package/editor-web/assets/dist-CJXCQxQM.js +37 -0
  1125. package/editor-web/assets/dist-D9xQGwe9.js +5 -0
  1126. package/editor-web/assets/dist-DFiLzbx8.js +219 -0
  1127. package/editor-web/assets/dist-DIPV6xfF.js +2 -0
  1128. package/editor-web/assets/dist-Dp-fQMtx.js +6 -0
  1129. package/editor-web/assets/dist-Duw28VxJ.js +16 -0
  1130. package/editor-web/assets/dist-DwGhfliS.js +1 -0
  1131. package/editor-web/assets/dist-OBE2IIYP.js +24 -0
  1132. package/editor-web/assets/dist-YW8hS4IM.js +9 -0
  1133. package/editor-web/assets/dist-j6ZLVcgf.js +38 -0
  1134. package/editor-web/assets/ebnfDiagram-V4P3TTPT-KdOTJgFu.js +1 -0
  1135. package/editor-web/assets/elk-QONTBCTQ-Cmlrp7qB.js +27 -0
  1136. package/editor-web/assets/erDiagram-KYQIGQAA-CBM7-aQm.js +99 -0
  1137. package/editor-web/assets/eventmodeling-K75KTNOO-CEoJkbuW.js +1 -0
  1138. package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +1 -0
  1139. package/editor-web/assets/ganttDiagram-R7GPNTJY-D4S6ZSYD.js +292 -0
  1140. package/editor-web/assets/gitGraph-VSP46ZUC-BvkL6RSh.js +1 -0
  1141. package/editor-web/assets/gitGraphDiagram-PDYL7XHY-lTGguloH.js +106 -0
  1142. package/editor-web/assets/hint-BimUgJms.js +1 -0
  1143. package/editor-web/assets/index-C-i_iuxN.js +28 -0
  1144. package/editor-web/assets/index-Cxh_Shkm.css +2 -0
  1145. package/editor-web/assets/info-OHQRW6UA-DvKzqNvp.js +1 -0
  1146. package/editor-web/assets/infoDiagram-MVDRKAX5-D7hCpehs.js +2 -0
  1147. package/editor-web/assets/ishikawaDiagram-HPEHV2GE-Bg93sZQe.js +70 -0
  1148. package/editor-web/assets/italic-BQBwRTe8.js +1 -0
  1149. package/editor-web/assets/journeyDiagram-BOSHW7O7-CKm_KONJ.js +139 -0
  1150. package/editor-web/assets/jsx-runtime-DePvh3-m.js +1 -0
  1151. package/editor-web/assets/kanban-definition-FNSA4HC5-BKknnpTR.js +89 -0
  1152. package/editor-web/assets/layout-SWqqA0yV.js +1 -0
  1153. package/editor-web/assets/mermaid-parser.core-BzqkDnqL.js +7 -0
  1154. package/editor-web/assets/mermaid.core-CEpvTOAe.js +44 -0
  1155. package/editor-web/assets/mindmap-definition-6OY57UG3-BJ0qG8Wi.js +98 -0
  1156. package/editor-web/assets/minus-oPj1GxwA.js +1 -0
  1157. package/editor-web/assets/packet-JDAUHWVQ-ew3kvyFm.js +1 -0
  1158. package/editor-web/assets/pegDiagram-ECIUJNBX-DqUS2xit.js +1 -0
  1159. package/editor-web/assets/picture-B-I4V_JT.js +1 -0
  1160. package/editor-web/assets/pie-XZMESJXO-DTIAMPGm.js +1 -0
  1161. package/editor-web/assets/pieDiagram-GNMPY74T-DoKOE02-.js +39 -0
  1162. package/editor-web/assets/progress-CPEbDOoN.js +6 -0
  1163. package/editor-web/assets/quadrantDiagram-D57K4MC3-DauOpYun.js +7 -0
  1164. package/editor-web/assets/radar-ABXABTNO-BvMJXUU-.js +1 -0
  1165. package/editor-web/assets/railroad-I3PHUGI6-D3jdJmhM.js +1 -0
  1166. package/editor-web/assets/railroad-abnf-LNEFI6M7-Dm8ZpmPj.js +1 -0
  1167. package/editor-web/assets/railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js +1 -0
  1168. package/editor-web/assets/railroad-peg-JR7BVNR7-CMrQL_7U.js +1 -0
  1169. package/editor-web/assets/railroadDiagram-Y72NRBL7-y99z0C7i.js +1 -0
  1170. package/editor-web/assets/react-DztDSW4P.js +1 -0
  1171. package/editor-web/assets/read-view-DnCFmJFo.js +1 -0
  1172. package/editor-web/assets/read-view-uW5LmuBT.js +1 -0
  1173. package/editor-web/assets/read-view-v3cx-9XM.js +1 -0
  1174. package/editor-web/assets/repeat-2-DJi4LW5C.js +1 -0
  1175. package/editor-web/assets/requirementDiagram-EQYSW5RA-jMr_uoF6.js +84 -0
  1176. package/editor-web/assets/row-ClBisiBs.js +1 -0
  1177. package/editor-web/assets/sankeyDiagram-SY24JHO5-DcUyx03Q.js +40 -0
  1178. package/editor-web/assets/schemas-68mjUjP5.js +1 -0
  1179. package/editor-web/assets/sequenceDiagram-BLEHNHQU-R4X8wRCd.js +169 -0
  1180. package/editor-web/assets/session-2u9U7koW.js +1 -0
  1181. package/editor-web/assets/slides-BByblSSR.js +1 -0
  1182. package/editor-web/assets/snapshots-C9KV-Y2_.js +56 -0
  1183. package/editor-web/assets/sound-DExlNJbb.js +1 -0
  1184. package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BqvXKbCA.js +291 -0
  1185. package/editor-web/assets/strikethrough-CyUBnGTl.js +1 -0
  1186. package/editor-web/assets/svg-lBRT-uhy.js +1 -0
  1187. package/editor-web/assets/swatch-1c1uVn1z.js +1 -0
  1188. package/editor-web/assets/swimlanes-B3ENRKFQ-hjTXIc6M.js +1 -0
  1189. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +8 -0
  1190. package/editor-web/assets/switch-D0K-K8-C.js +1 -0
  1191. package/editor-web/assets/syntax-Bih_jv7W.js +1 -0
  1192. package/editor-web/assets/syntax-C0iPON60.js +18 -0
  1193. package/editor-web/assets/tabs-CxxOnGLR.js +1 -0
  1194. package/editor-web/assets/textarea-Fu93tFO3.js +105 -0
  1195. package/editor-web/assets/timeline-definition-JXYKGLGB-BcSoN4Dq.js +120 -0
  1196. package/editor-web/assets/tinos-cyrillic-400-italic-CUXT6ECP.woff +0 -0
  1197. package/editor-web/assets/tinos-cyrillic-400-italic-D26KjN84.woff2 +0 -0
  1198. package/editor-web/assets/tinos-cyrillic-400-normal-BInRL8Bn.woff +0 -0
  1199. package/editor-web/assets/tinos-cyrillic-400-normal-kS2dpklR.woff2 +0 -0
  1200. package/editor-web/assets/tinos-cyrillic-700-italic-CUFPRiVR.woff2 +0 -0
  1201. package/editor-web/assets/tinos-cyrillic-700-italic-DU6-gZzV.woff +0 -0
  1202. package/editor-web/assets/tinos-cyrillic-700-normal-DGklj3DM.woff2 +0 -0
  1203. package/editor-web/assets/tinos-cyrillic-700-normal-HYhic5tl.woff +0 -0
  1204. package/editor-web/assets/tinos-cyrillic-ext-400-italic-Bz6A2Xew.woff2 +0 -0
  1205. package/editor-web/assets/tinos-cyrillic-ext-400-italic-CgiySoL2.woff +0 -0
  1206. package/editor-web/assets/tinos-cyrillic-ext-400-normal-DdITlKdb.woff2 +0 -0
  1207. package/editor-web/assets/tinos-cyrillic-ext-400-normal-l41d2z3M.woff +0 -0
  1208. package/editor-web/assets/tinos-cyrillic-ext-700-italic-BQu9kgBz.woff +0 -0
  1209. package/editor-web/assets/tinos-cyrillic-ext-700-italic-Ceua-rFl.woff2 +0 -0
  1210. package/editor-web/assets/tinos-cyrillic-ext-700-normal-CE86bzrR.woff2 +0 -0
  1211. package/editor-web/assets/tinos-cyrillic-ext-700-normal-yBtNmQaZ.woff +0 -0
  1212. package/editor-web/assets/tinos-greek-400-italic-CITkaQD8.woff2 +0 -0
  1213. package/editor-web/assets/tinos-greek-400-italic-Dc-Zjc_Z.woff +0 -0
  1214. package/editor-web/assets/tinos-greek-400-normal-BKmklotr.woff2 +0 -0
  1215. package/editor-web/assets/tinos-greek-400-normal-D6DCdDEC.woff +0 -0
  1216. package/editor-web/assets/tinos-greek-700-italic-C474ACqK.woff2 +0 -0
  1217. package/editor-web/assets/tinos-greek-700-italic-VKIu6SKO.woff +0 -0
  1218. package/editor-web/assets/tinos-greek-700-normal-CAsZoNo7.woff +0 -0
  1219. package/editor-web/assets/tinos-greek-700-normal-DZiY5218.woff2 +0 -0
  1220. package/editor-web/assets/tinos-greek-ext-400-italic-C7FWsVQN.woff +0 -0
  1221. package/editor-web/assets/tinos-greek-ext-400-italic-QOcg_kQA.woff2 +0 -0
  1222. package/editor-web/assets/tinos-greek-ext-400-normal-1tgngtmV.woff2 +0 -0
  1223. package/editor-web/assets/tinos-greek-ext-400-normal-BY5Lx0CY.woff +0 -0
  1224. package/editor-web/assets/tinos-greek-ext-700-italic-2QV0uNor.woff2 +0 -0
  1225. package/editor-web/assets/tinos-greek-ext-700-italic-zoEBc9cL.woff +0 -0
  1226. package/editor-web/assets/tinos-greek-ext-700-normal-Bu9AJavU.woff +0 -0
  1227. package/editor-web/assets/tinos-greek-ext-700-normal-nVGGTb9r.woff2 +0 -0
  1228. package/editor-web/assets/tinos-hebrew-400-italic-Cp89YzKh.woff2 +0 -0
  1229. package/editor-web/assets/tinos-hebrew-400-italic-k5xAEjEk.woff +0 -0
  1230. package/editor-web/assets/tinos-hebrew-400-normal-B17QmYDt.woff2 +0 -0
  1231. package/editor-web/assets/tinos-hebrew-400-normal-DhGqnHb1.woff +0 -0
  1232. package/editor-web/assets/tinos-hebrew-700-italic-BSdnwE5c.woff2 +0 -0
  1233. package/editor-web/assets/tinos-hebrew-700-italic-DuNrcWBH.woff +0 -0
  1234. package/editor-web/assets/tinos-hebrew-700-normal-B737la7J.woff +0 -0
  1235. package/editor-web/assets/tinos-hebrew-700-normal-BNVAlJ0i.woff2 +0 -0
  1236. package/editor-web/assets/tinos-latin-400-italic-BYAl0kbZ.woff2 +0 -0
  1237. package/editor-web/assets/tinos-latin-400-italic-HcuZF3H0.woff +0 -0
  1238. package/editor-web/assets/tinos-latin-400-normal-B05awSIM.woff +0 -0
  1239. package/editor-web/assets/tinos-latin-400-normal-rilFpyjL.woff2 +0 -0
  1240. package/editor-web/assets/tinos-latin-700-italic-M0H2aQ0O.woff +0 -0
  1241. package/editor-web/assets/tinos-latin-700-italic-vJg8Axdx.woff2 +0 -0
  1242. package/editor-web/assets/tinos-latin-700-normal-CjcRkLdR.woff +0 -0
  1243. package/editor-web/assets/tinos-latin-700-normal-qGf2y18O.woff2 +0 -0
  1244. package/editor-web/assets/tinos-latin-ext-400-italic-DKtLLJa2.woff +0 -0
  1245. package/editor-web/assets/tinos-latin-ext-400-italic-WsHooD3r.woff2 +0 -0
  1246. package/editor-web/assets/tinos-latin-ext-400-normal-BUQPNqi9.woff +0 -0
  1247. package/editor-web/assets/tinos-latin-ext-400-normal-C68eX7xt.woff2 +0 -0
  1248. package/editor-web/assets/tinos-latin-ext-700-italic-BtLLKPsV.woff2 +0 -0
  1249. package/editor-web/assets/tinos-latin-ext-700-italic-Gmi35kWa.woff +0 -0
  1250. package/editor-web/assets/tinos-latin-ext-700-normal-CesJqEpY.woff2 +0 -0
  1251. package/editor-web/assets/tinos-latin-ext-700-normal-nLvPiDAe.woff +0 -0
  1252. package/editor-web/assets/tinos-vietnamese-400-italic-BJdaJnTX.woff2 +0 -0
  1253. package/editor-web/assets/tinos-vietnamese-400-italic-C0nreyLC.woff +0 -0
  1254. package/editor-web/assets/tinos-vietnamese-400-normal-BYl6xqrz.woff +0 -0
  1255. package/editor-web/assets/tinos-vietnamese-400-normal-CrJeqB3M.woff2 +0 -0
  1256. package/editor-web/assets/tinos-vietnamese-700-italic-BPJuDXkI.woff2 +0 -0
  1257. package/editor-web/assets/tinos-vietnamese-700-italic-Dl6iR3hy.woff +0 -0
  1258. package/editor-web/assets/tinos-vietnamese-700-normal-CmLX0U_H.woff2 +0 -0
  1259. package/editor-web/assets/tinos-vietnamese-700-normal-bKCZ5S7w.woff +0 -0
  1260. package/editor-web/assets/trash-2-BAKAeziW.js +1 -0
  1261. package/editor-web/assets/treeView-D4JQ5SDB-CsFN2jrc.js +1 -0
  1262. package/editor-web/assets/treemap-SAJKECNS-DP1eqXJ2.js +1 -0
  1263. package/editor-web/assets/undo-2-DQ5CBmki.js +1 -0
  1264. package/editor-web/assets/usecaseDiagram-WPOLBNNX-BGxa0osF.js +328 -0
  1265. package/editor-web/assets/vennDiagram-Q3Y3IDCW-D2XhTF49.js +34 -0
  1266. package/editor-web/assets/video-CDbPX4Cr.js +1 -0
  1267. package/editor-web/assets/wardley-7MLQ67FV-DM3jMAbZ.js +1 -0
  1268. package/editor-web/assets/wardleyDiagram-IVAIDKWA-Bf-DaZEg.js +78 -0
  1269. package/editor-web/assets/xychartDiagram-4URNHDU4-dp-mdcWd.js +7 -0
  1270. package/editor-web/index.html +8 -3
  1271. package/package.json +21 -5
  1272. package/dist/audio-text.js +0 -6
  1273. package/dist/cloud-hearing.js +0 -2
  1274. package/dist/commands/audio.js +0 -4
  1275. package/dist/commands/inspect/contrast.js +0 -2
  1276. package/dist/commands/inspect/fidelity.js +0 -2
  1277. package/dist/commands/inspect/joins.js +0 -2
  1278. package/dist/commands/inspect/motion.js +0 -4
  1279. package/dist/commands/inspect/sheet.js +0 -3
  1280. package/dist/commands/inspect/timeline.js +0 -3
  1281. package/dist/commands/model.js +0 -3
  1282. package/dist/commands/reference-text.js +0 -5
  1283. package/dist/commands/reference.js +0 -2
  1284. package/dist/commands/scenery-input.js +0 -2
  1285. package/dist/commands/scenery.js +0 -7
  1286. package/dist/commands/sheet.js +0 -8
  1287. package/dist/commands/site.js +0 -4
  1288. package/dist/commands/slides.js +0 -3
  1289. package/dist/commands/voice.js +0 -3
  1290. package/dist/commands/words-text.js +0 -6
  1291. package/dist/commands/words.js +0 -2
  1292. package/dist/node_modules/@allyhub/build/dist/sheet-code.d.ts +0 -34
  1293. package/dist/node_modules/@allyhub/build/dist/sheet-code.js +0 -2
  1294. package/dist/node_modules/@allyhub/chart/dist/chart-file.d.ts +0 -11
  1295. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +0 -33
  1296. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +0 -206
  1297. package/dist/node_modules/@allyhub/chart/dist/embedded.d.ts +0 -15
  1298. package/dist/node_modules/@allyhub/chart/dist/index.d.ts +0 -6
  1299. package/dist/node_modules/@allyhub/chart/dist/svg.d.ts +0 -22
  1300. package/dist/node_modules/@allyhub/check/dist/generated.js +0 -2
  1301. package/dist/node_modules/@allyhub/check/dist/plans.js +0 -3
  1302. package/dist/node_modules/@allyhub/check/dist/scenery.js +0 -2
  1303. package/dist/node_modules/@allyhub/doc/dist/chart.d.ts +0 -65
  1304. package/dist/node_modules/@allyhub/doc/dist/color.d.ts +0 -6
  1305. package/dist/node_modules/@allyhub/doc/dist/columns.d.ts +0 -6
  1306. package/dist/node_modules/@allyhub/doc/dist/component.d.ts +0 -27
  1307. package/dist/node_modules/@allyhub/doc/dist/docx.d.ts +0 -39
  1308. package/dist/node_modules/@allyhub/doc/dist/html.d.ts +0 -49
  1309. package/dist/node_modules/@allyhub/doc/dist/index.d.ts +0 -13
  1310. package/dist/node_modules/@allyhub/doc/dist/markdown.d.ts +0 -13
  1311. package/dist/node_modules/@allyhub/doc/dist/math.d.ts +0 -11
  1312. package/dist/node_modules/@allyhub/doc/dist/model.d.ts +0 -280
  1313. package/dist/node_modules/@allyhub/doc/dist/paper.d.ts +0 -39
  1314. package/dist/node_modules/@allyhub/doc/dist/parse.d.ts +0 -24
  1315. package/dist/node_modules/@allyhub/doc/dist/patch.d.ts +0 -8
  1316. package/dist/node_modules/@allyhub/doc/dist/title.d.ts +0 -23
  1317. package/dist/node_modules/@allyhub/doc/dist/write.d.ts +0 -18
  1318. package/dist/node_modules/@allyhub/export/dist/deck-pptx.js +0 -2
  1319. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  1320. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  1321. package/dist/node_modules/@allyhub/measure/dist/contrast.js +0 -2
  1322. package/dist/node_modules/@allyhub/measure/dist/cuts.js +0 -2
  1323. package/dist/node_modules/@allyhub/measure/dist/facts.js +0 -2
  1324. package/dist/node_modules/@allyhub/measure/dist/fidelity.js +0 -3
  1325. package/dist/node_modules/@allyhub/measure/dist/overlay.js +0 -2
  1326. package/dist/node_modules/@allyhub/measure/dist/recording-report.js +0 -2
  1327. package/dist/node_modules/@allyhub/measure/dist/reference/piece.js +0 -2
  1328. package/dist/node_modules/@allyhub/measure/dist/reference/sets.js +0 -2
  1329. package/dist/node_modules/@allyhub/measure/dist/reference/text.js +0 -2
  1330. package/dist/node_modules/@allyhub/measure/dist/reference/video.js +0 -2
  1331. package/dist/node_modules/@allyhub/measure/dist/sound-report.js +0 -2
  1332. package/dist/node_modules/@allyhub/media/dist/asr/hear.d.ts +0 -41
  1333. package/dist/node_modules/@allyhub/media/dist/asr/hear.js +0 -2
  1334. package/dist/node_modules/@allyhub/media/dist/asr/languages.d.ts +0 -9
  1335. package/dist/node_modules/@allyhub/media/dist/asr/languages.js +0 -2
  1336. package/dist/node_modules/@allyhub/media/dist/asr/parakeet.d.ts +0 -54
  1337. package/dist/node_modules/@allyhub/media/dist/asr/parakeet.js +0 -7
  1338. package/dist/node_modules/@allyhub/media/dist/asr/protocol.d.ts +0 -20
  1339. package/dist/node_modules/@allyhub/media/dist/asr/protocol.js +0 -2
  1340. package/dist/node_modules/@allyhub/media/dist/asr/transcribe.d.ts +0 -50
  1341. package/dist/node_modules/@allyhub/media/dist/asr/transcribe.js +0 -2
  1342. package/dist/node_modules/@allyhub/media/dist/asr/windows.d.ts +0 -34
  1343. package/dist/node_modules/@allyhub/media/dist/asr/windows.js +0 -2
  1344. package/dist/node_modules/@allyhub/media/dist/asr/words.d.ts +0 -7
  1345. package/dist/node_modules/@allyhub/media/dist/asr/words.js +0 -2
  1346. package/dist/node_modules/@allyhub/media/dist/asr/worker.d.ts +0 -2
  1347. package/dist/node_modules/@allyhub/media/dist/asr/worker.js +0 -4
  1348. package/dist/node_modules/@allyhub/media/dist/local.d.ts +0 -39
  1349. package/dist/node_modules/@allyhub/media/dist/local.js +0 -2
  1350. package/dist/node_modules/@allyhub/media/dist/ocr/lines.d.ts +0 -36
  1351. package/dist/node_modules/@allyhub/media/dist/ocr/lines.js +0 -2
  1352. package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.d.ts +0 -62
  1353. package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.js +0 -2
  1354. package/dist/node_modules/@allyhub/media/dist/ocr/text.d.ts +0 -36
  1355. package/dist/node_modules/@allyhub/media/dist/ocr/text.js +0 -4
  1356. package/dist/node_modules/@allyhub/media/dist/ocr/worker.d.ts +0 -2
  1357. package/dist/node_modules/@allyhub/media/dist/ocr/worker.js +0 -5
  1358. package/dist/node_modules/@allyhub/media/dist/vision/common.d.ts +0 -32
  1359. package/dist/node_modules/@allyhub/media/dist/vision/common.js +0 -2
  1360. package/dist/node_modules/@allyhub/media/dist/vision/faces.d.ts +0 -18
  1361. package/dist/node_modules/@allyhub/media/dist/vision/faces.js +0 -2
  1362. package/dist/node_modules/@allyhub/media/dist/vision/index-media.d.ts +0 -48
  1363. package/dist/node_modules/@allyhub/media/dist/vision/index-media.js +0 -3
  1364. package/dist/node_modules/@allyhub/media/dist/vision/matte.d.ts +0 -16
  1365. package/dist/node_modules/@allyhub/media/dist/vision/matte.js +0 -2
  1366. package/dist/node_modules/@allyhub/media/dist/vision/mattes.d.ts +0 -109
  1367. package/dist/node_modules/@allyhub/media/dist/vision/mattes.js +0 -2
  1368. package/dist/node_modules/@allyhub/media/dist/vision/models.d.ts +0 -16
  1369. package/dist/node_modules/@allyhub/media/dist/vision/models.js +0 -2
  1370. package/dist/node_modules/@allyhub/media/dist/vision/protocol.d.ts +0 -51
  1371. package/dist/node_modules/@allyhub/media/dist/vision/protocol.js +0 -2
  1372. package/dist/node_modules/@allyhub/media/dist/vision/run.d.ts +0 -12
  1373. package/dist/node_modules/@allyhub/media/dist/vision/run.js +0 -4
  1374. package/dist/node_modules/@allyhub/media/dist/vision/runtime.d.ts +0 -16
  1375. package/dist/node_modules/@allyhub/media/dist/vision/runtime.js +0 -8
  1376. package/dist/node_modules/@allyhub/media/dist/vision/status.d.ts +0 -24
  1377. package/dist/node_modules/@allyhub/media/dist/vision/status.js +0 -2
  1378. package/dist/node_modules/@allyhub/media/dist/vision/track.d.ts +0 -54
  1379. package/dist/node_modules/@allyhub/media/dist/vision/track.js +0 -2
  1380. package/dist/node_modules/@allyhub/media/dist/vision/worker.d.ts +0 -2
  1381. package/dist/node_modules/@allyhub/media/dist/vision/worker.js +0 -5
  1382. package/dist/node_modules/@allyhub/media/dist/vision/yunet.d.ts +0 -35
  1383. package/dist/node_modules/@allyhub/media/dist/vision/yunet.js +0 -2
  1384. package/dist/node_modules/@allyhub/media/dist/worker-process.d.ts +0 -3
  1385. package/dist/node_modules/@allyhub/media/dist/worker-process.js +0 -2
  1386. package/dist/node_modules/@allyhub/ooxml/dist/brightness.d.ts +0 -31
  1387. package/dist/node_modules/@allyhub/ooxml/dist/color.d.ts +0 -33
  1388. package/dist/node_modules/@allyhub/ooxml/dist/enums.d.ts +0 -13
  1389. package/dist/node_modules/@allyhub/ooxml/dist/ext.d.ts +0 -79
  1390. package/dist/node_modules/@allyhub/ooxml/dist/generated/enums.d.ts +0 -132
  1391. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +0 -28
  1392. package/dist/node_modules/@allyhub/ooxml/dist/generated/spec.d.ts +0 -4708
  1393. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +0 -57
  1394. package/dist/node_modules/@allyhub/ooxml/dist/index.d.ts +0 -10
  1395. package/dist/node_modules/@allyhub/ooxml/dist/mce.d.ts +0 -12
  1396. package/dist/node_modules/@allyhub/ooxml/dist/node.d.ts +0 -111
  1397. package/dist/node_modules/@allyhub/ooxml/dist/ns.d.ts +0 -45
  1398. package/dist/node_modules/@allyhub/ooxml/dist/opc.d.ts +0 -48
  1399. package/dist/node_modules/@allyhub/ooxml/dist/report.d.ts +0 -45
  1400. package/dist/node_modules/@allyhub/ooxml/dist/xml.d.ts +0 -28
  1401. package/dist/node_modules/@allyhub/project/dist/deck-keys.js +0 -2
  1402. package/dist/node_modules/@allyhub/project/dist/deck-measure.js +0 -2
  1403. package/dist/node_modules/@allyhub/project/dist/deck-pool.js +0 -2
  1404. package/dist/node_modules/@allyhub/project/dist/says.js +0 -2
  1405. package/dist/node_modules/@allyhub/project/dist/scenery.js +0 -2
  1406. package/dist/node_modules/@allyhub/project/dist/stretch.js +0 -2
  1407. package/dist/node_modules/@allyhub/render/dist/doc/fonts.js +0 -4
  1408. package/dist/node_modules/@allyhub/render/dist/doc/index.js +0 -2
  1409. package/dist/node_modules/@allyhub/render/dist/doc/pages.js +0 -32
  1410. package/dist/node_modules/@allyhub/render/dist/doc/print.js +0 -41
  1411. package/dist/node_modules/@allyhub/render/dist/webp.js +0 -2
  1412. package/dist/node_modules/@allyhub/runtime/dist/console.js +0 -2
  1413. package/dist/node_modules/@allyhub/runtime/dist/env.js +0 -2
  1414. package/dist/node_modules/@allyhub/runtime/dist/errors.js +0 -2
  1415. package/dist/node_modules/@allyhub/runtime/dist/inspect.js +0 -3
  1416. package/dist/node_modules/@allyhub/runtime/dist/locate.js +0 -2
  1417. package/dist/node_modules/@allyhub/runtime/dist/mix-plan.js +0 -2
  1418. package/dist/node_modules/@allyhub/runtime/dist/reads.js +0 -2
  1419. package/dist/node_modules/@allyhub/runtime/dist/stage.js +0 -2
  1420. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  1421. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  1422. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  1423. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  1424. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  1425. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  1426. package/dist/node_modules/@allyhub/sheet/dist/address.d.ts +0 -32
  1427. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.d.ts +0 -23
  1428. package/dist/node_modules/@allyhub/sheet/dist/api/charts.d.ts +0 -204
  1429. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +0 -19
  1430. package/dist/node_modules/@allyhub/sheet/dist/api/hint.d.ts +0 -3
  1431. package/dist/node_modules/@allyhub/sheet/dist/api/index.d.ts +0 -8
  1432. package/dist/node_modules/@allyhub/sheet/dist/api/page.d.ts +0 -83
  1433. package/dist/node_modules/@allyhub/sheet/dist/api/rectangles.d.ts +0 -4
  1434. package/dist/node_modules/@allyhub/sheet/dist/api/rules.d.ts +0 -170
  1435. package/dist/node_modules/@allyhub/sheet/dist/api/styles.d.ts +0 -117
  1436. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +0 -362
  1437. package/dist/node_modules/@allyhub/sheet/dist/arrange.d.ts +0 -68
  1438. package/dist/node_modules/@allyhub/sheet/dist/calc/analyse.d.ts +0 -27
  1439. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.d.ts +0 -23
  1440. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +0 -199
  1441. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/aggregate.d.ts +0 -2
  1442. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/convert.d.ts +0 -4
  1443. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +0 -15
  1444. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/database.d.ts +0 -2
  1445. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.d.ts +0 -2
  1446. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +0 -95
  1447. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/delimiters.d.ts +0 -16
  1448. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/distributions.d.ts +0 -2
  1449. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.d.ts +0 -19
  1450. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/finance.d.ts +0 -2
  1451. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/index.d.ts +0 -17
  1452. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.d.ts +0 -2
  1453. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.d.ts +0 -2
  1454. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/logical.d.ts +0 -2
  1455. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.d.ts +0 -2
  1456. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.d.ts +0 -2
  1457. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/modern.d.ts +0 -2
  1458. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/special.d.ts +0 -29
  1459. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.d.ts +0 -2
  1460. package/dist/node_modules/@allyhub/sheet/dist/calc/graph.d.ts +0 -38
  1461. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +0 -19
  1462. package/dist/node_modules/@allyhub/sheet/dist/calc/remote.d.ts +0 -49
  1463. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +0 -82
  1464. package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +0 -55
  1465. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +0 -52
  1466. package/dist/node_modules/@allyhub/sheet/dist/check.d.ts +0 -15
  1467. package/dist/node_modules/@allyhub/sheet/dist/diff.d.ts +0 -79
  1468. package/dist/node_modules/@allyhub/sheet/dist/edit.d.ts +0 -154
  1469. package/dist/node_modules/@allyhub/sheet/dist/export.d.ts +0 -32
  1470. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +0 -19
  1471. package/dist/node_modules/@allyhub/sheet/dist/files.d.ts +0 -24
  1472. package/dist/node_modules/@allyhub/sheet/dist/fill.d.ts +0 -30
  1473. package/dist/node_modules/@allyhub/sheet/dist/filter.d.ts +0 -29
  1474. package/dist/node_modules/@allyhub/sheet/dist/format.d.ts +0 -15
  1475. package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +0 -113
  1476. package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +0 -6
  1477. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.d.ts +0 -4
  1478. package/dist/node_modules/@allyhub/sheet/dist/formula/print.d.ts +0 -6
  1479. package/dist/node_modules/@allyhub/sheet/dist/formula/rewrite.d.ts +0 -65
  1480. package/dist/node_modules/@allyhub/sheet/dist/formula/walk.d.ts +0 -6
  1481. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +0 -46
  1482. package/dist/node_modules/@allyhub/sheet/dist/html.d.ts +0 -82
  1483. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +0 -11
  1484. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +0 -42
  1485. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +0 -25
  1486. package/dist/node_modules/@allyhub/sheet/dist/paginate.d.ts +0 -98
  1487. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +0 -4
  1488. package/dist/node_modules/@allyhub/sheet/dist/profile.d.ts +0 -30
  1489. package/dist/node_modules/@allyhub/sheet/dist/rules.d.ts +0 -56
  1490. package/dist/node_modules/@allyhub/sheet/dist/scenario.d.ts +0 -42
  1491. package/dist/node_modules/@allyhub/sheet/dist/series.d.ts +0 -10
  1492. package/dist/node_modules/@allyhub/sheet/dist/sort.d.ts +0 -24
  1493. package/dist/node_modules/@allyhub/sheet/dist/structure.d.ts +0 -38
  1494. package/dist/node_modules/@allyhub/sheet/dist/table-style.d.ts +0 -32
  1495. package/dist/node_modules/@allyhub/sheet/dist/table-styles.d.ts +0 -3
  1496. package/dist/node_modules/@allyhub/sheet/dist/validate.d.ts +0 -26
  1497. package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +0 -67
  1498. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +0 -324
  1499. package/dist/node_modules/@allyhub/sheet/dist/write.d.ts +0 -5
  1500. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +0 -53
  1501. package/dist/node_modules/@allyhub/sheet/dist/xlsx/colors.d.ts +0 -19
  1502. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.d.ts +0 -31
  1503. package/dist/node_modules/@allyhub/sheet/dist/xlsx/functions.d.ts +0 -15
  1504. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +0 -49
  1505. package/dist/node_modules/@allyhub/sheet/dist/xlsx/index.d.ts +0 -5
  1506. package/dist/node_modules/@allyhub/sheet/dist/xlsx/numfmt.d.ts +0 -8
  1507. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +0 -159
  1508. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +0 -23
  1509. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +0 -25
  1510. package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.d.ts +0 -3
  1511. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +0 -23
  1512. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +0 -28
  1513. package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.d.ts +0 -40
  1514. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +0 -129
  1515. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +0 -730
  1516. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.d.ts +0 -18
  1517. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +0 -202
  1518. package/dist/node_modules/@allyhub/slides-core/dist/check.d.ts +0 -7
  1519. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +0 -33
  1520. package/dist/node_modules/@allyhub/slides-core/dist/components.d.ts +0 -31
  1521. package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +0 -329
  1522. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +0 -131
  1523. package/dist/node_modules/@allyhub/slides-core/dist/identity.d.ts +0 -17
  1524. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +0 -25
  1525. package/dist/node_modules/@allyhub/slides-core/dist/lang.d.ts +0 -6
  1526. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +0 -34
  1527. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +0 -58
  1528. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +0 -293
  1529. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +0 -84
  1530. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +0 -6
  1531. package/dist/node_modules/@allyhub/slides-core/dist/placeholders.d.ts +0 -7
  1532. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +0 -202
  1533. package/dist/node_modules/@allyhub/slides-core/dist/script.d.ts +0 -45
  1534. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +0 -61
  1535. package/dist/node_modules/@allyhub/slides-core/dist/strict.d.ts +0 -7
  1536. package/dist/node_modules/@allyhub/slides-core/dist/theme.d.ts +0 -72
  1537. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +0 -62
  1538. package/dist/node_modules/@allyhub/slides-core/dist/values.d.ts +0 -7
  1539. package/dist/node_modules/@allyhub/stage/dist/bakes.js +0 -4
  1540. package/dist/node_modules/@allyhub/stage/dist/graphics.js +0 -2
  1541. package/dist/node_modules/@allyhub/stage/dist/scenery-page.js +0 -12
  1542. package/dist/node_modules/@allyhub/stage/dist/scenery.js +0 -2
  1543. package/dist/node_modules/@allyhub/stage-page/dist/runtime/runtime.js +0 -79
  1544. package/dist/node_modules/@allyhub/video-core/dist/anchors.d.ts +0 -164
  1545. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +0 -148
  1546. package/dist/node_modules/@allyhub/video-core/dist/backdrop.d.ts +0 -87
  1547. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +0 -122
  1548. package/dist/node_modules/@allyhub/video-core/dist/component.js +0 -2
  1549. package/dist/node_modules/@allyhub/video-core/dist/contrast.d.ts +0 -98
  1550. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +0 -77
  1551. package/dist/node_modules/@allyhub/video-core/dist/edit.d.ts +0 -77
  1552. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +0 -163
  1553. package/dist/node_modules/@allyhub/video-core/dist/export.d.ts +0 -97
  1554. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  1555. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +0 -1179
  1556. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +0 -168
  1557. package/dist/node_modules/@allyhub/video-core/dist/formats.d.ts +0 -205
  1558. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  1559. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  1560. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +0 -41
  1561. package/dist/node_modules/@allyhub/video-core/dist/look.d.ts +0 -66
  1562. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +0 -563
  1563. package/dist/node_modules/@allyhub/video-core/dist/media.d.ts +0 -226
  1564. package/dist/node_modules/@allyhub/video-core/dist/media.js +0 -2
  1565. package/dist/node_modules/@allyhub/video-core/dist/messages.d.ts +0 -88
  1566. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +0 -56
  1567. package/dist/node_modules/@allyhub/video-core/dist/music.d.ts +0 -111
  1568. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +0 -1154
  1569. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +0 -37
  1570. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  1571. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  1572. package/dist/node_modules/@allyhub/video-core/dist/render-types.d.ts +0 -49
  1573. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +0 -350
  1574. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +0 -180
  1575. package/dist/node_modules/@allyhub/video-core/dist/script.d.ts +0 -76
  1576. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  1577. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +0 -214
  1578. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +0 -72
  1579. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  1580. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +0 -83
  1581. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +0 -631
  1582. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +0 -88
  1583. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +0 -288
  1584. package/dist/node_modules/@allyhub/video-core/dist/transition.d.ts +0 -300
  1585. package/dist/node_modules/@allyhub/video-core/dist/voice.d.ts +0 -175
  1586. package/dist/text/timeline-text.js +0 -2
  1587. package/editor-web/assets/abnfDiagram-WEYOIA3C-B9SmmTJt.js +0 -1
  1588. package/editor-web/assets/architecture-WOLXFQ4H-m-T100yu.js +0 -1
  1589. package/editor-web/assets/architectureDiagram-ZHVYKT53-B5nwfRgH.js +0 -36
  1590. package/editor-web/assets/blockDiagram-RJAE7QA3-ClawtW7w.js +0 -140
  1591. package/editor-web/assets/c4Diagram-XDPPPE54-CFHQpxmY.js +0 -38
  1592. package/editor-web/assets/calc-worker-BTNuOUVJ.js +0 -158
  1593. package/editor-web/assets/channel-hhT2g1yB.js +0 -1
  1594. package/editor-web/assets/choice-BJc3Tv5F.js +0 -10
  1595. package/editor-web/assets/chunk-2E7WHVMD-CoQrt8De.js +0 -88
  1596. package/editor-web/assets/chunk-4EMNKR2T-Iy5ZP2hH.js +0 -1
  1597. package/editor-web/assets/chunk-55XCU76K-DsS8sEfz.js +0 -1
  1598. package/editor-web/assets/chunk-7S6XSTFO-Co220fFP.js +0 -2
  1599. package/editor-web/assets/chunk-AQDTSKZB-JIGZAIpF.js +0 -72
  1600. package/editor-web/assets/chunk-DSNLSHJZ-Ror_NzZx.js +0 -129
  1601. package/editor-web/assets/chunk-HAGFOTED-C07qbJaC.js +0 -62
  1602. package/editor-web/assets/chunk-HNE4Q36P-CM3bprQy.js +0 -1
  1603. package/editor-web/assets/chunk-NQOKRVIF-ipM1cuU7.js +0 -213
  1604. package/editor-web/assets/chunk-UHW7PFBP-CA8McMqW.js +0 -1
  1605. package/editor-web/assets/chunk-VQ5W62QI-DEDvdgPj.js +0 -1
  1606. package/editor-web/assets/chunk-WQQL4CDK-h5ZO7LF7.js +0 -10
  1607. package/editor-web/assets/chunk-YZO67HFG-yC3xdjnt.js +0 -1
  1608. package/editor-web/assets/chunk-ZAUX2LTX-3rRCWRvD.js +0 -1
  1609. package/editor-web/assets/chunk-ZCHMQSOR-DK_PLi39.js +0 -2
  1610. package/editor-web/assets/classDiagram-v2-4MYWR3UA-B9pB-HTm.js +0 -217
  1611. package/editor-web/assets/cynefin-EF2NZ3EQ-CSd3PDdQ.js +0 -1
  1612. package/editor-web/assets/cynefinDiagram-WF24UDRP-BBCequ3T.js +0 -62
  1613. package/editor-web/assets/dagre-NK4GIZVX-C7ZOWX5t.js +0 -4
  1614. package/editor-web/assets/diagram-CBK3MWTC-CQVvlSNo.js +0 -24
  1615. package/editor-web/assets/diagram-I5XIIV2D-BCkke5x3.js +0 -24
  1616. package/editor-web/assets/diagram-ODIL2UCW-DDWQXIlX.js +0 -30
  1617. package/editor-web/assets/diagram-PFBEJUXE-C31QlFzr.js +0 -3
  1618. package/editor-web/assets/diagram-RJA3I4VV-DUXAFmI_.js +0 -41
  1619. package/editor-web/assets/diagram-TYUNFSNR-BCxuoEs9.js +0 -200
  1620. package/editor-web/assets/dist-BRuoygB7.js +0 -2
  1621. package/editor-web/assets/dist-CK42vCmN.js +0 -550
  1622. package/editor-web/assets/dist-C_buDsM-.js +0 -36
  1623. package/editor-web/assets/dist-DNcXHhzn.js +0 -37
  1624. package/editor-web/assets/dist-HxiPpGXi.js +0 -10
  1625. package/editor-web/assets/dist-PF3VMsK7.js +0 -1
  1626. package/editor-web/assets/ebnfDiagram-V4P3TTPT-Drbe1R2R.js +0 -1
  1627. package/editor-web/assets/elk-QONTBCTQ-Bqwuc5U-.js +0 -27
  1628. package/editor-web/assets/erDiagram-KYQIGQAA-lUcyPgf3.js +0 -99
  1629. package/editor-web/assets/eventmodeling-K75KTNOO-BfxFVok7.js +0 -1
  1630. package/editor-web/assets/flowDiagram-IUGLLWBU-FJVml4lT.js +0 -1
  1631. package/editor-web/assets/ganttDiagram-R7GPNTJY-AYc1JnE_.js +0 -292
  1632. package/editor-web/assets/gitGraph-VSP46ZUC-Z_2ysYZF.js +0 -1
  1633. package/editor-web/assets/gitGraphDiagram-PDYL7XHY-CB2O1LZ6.js +0 -106
  1634. package/editor-web/assets/hint-BwGc32IE.js +0 -1
  1635. package/editor-web/assets/index-BQKSbBSy.js +0 -69
  1636. package/editor-web/assets/index-CfD80QPx.css +0 -2
  1637. package/editor-web/assets/info-OHQRW6UA-BPePkERU.js +0 -1
  1638. package/editor-web/assets/infoDiagram-MVDRKAX5-CNluCREj.js +0 -2
  1639. package/editor-web/assets/ishikawaDiagram-HPEHV2GE-DIBDBol9.js +0 -70
  1640. package/editor-web/assets/journeyDiagram-BOSHW7O7-C4Hc63C8.js +0 -139
  1641. package/editor-web/assets/kanban-definition-FNSA4HC5-BShCYR9Q.js +0 -89
  1642. package/editor-web/assets/mermaid-parser.core-KGVt2icR.js +0 -7
  1643. package/editor-web/assets/mermaid.core-CVH2hRmI.js +0 -44
  1644. package/editor-web/assets/mindmap-definition-6OY57UG3-C1mo9OeK.js +0 -98
  1645. package/editor-web/assets/packet-JDAUHWVQ-B7YpYnvD.js +0 -1
  1646. package/editor-web/assets/pegDiagram-ECIUJNBX-Es99bVEq.js +0 -1
  1647. package/editor-web/assets/pie-XZMESJXO-xTUp8UcP.js +0 -1
  1648. package/editor-web/assets/pieDiagram-GNMPY74T-CD91pLk4.js +0 -39
  1649. package/editor-web/assets/quadrantDiagram-D57K4MC3-CSnvxc94.js +0 -7
  1650. package/editor-web/assets/radar-ABXABTNO-Dj-t0L18.js +0 -1
  1651. package/editor-web/assets/railroad-I3PHUGI6-BK32uCwU.js +0 -1
  1652. package/editor-web/assets/railroad-abnf-LNEFI6M7-D5R8k6d0.js +0 -1
  1653. package/editor-web/assets/railroad-ebnf-DWYD2UWJ-Crm1KEAC.js +0 -1
  1654. package/editor-web/assets/railroad-peg-JR7BVNR7-BILXac49.js +0 -1
  1655. package/editor-web/assets/railroadDiagram-Y72NRBL7-CevyjvbY.js +0 -1
  1656. package/editor-web/assets/react-BSSSHUyV.js +0 -101
  1657. package/editor-web/assets/requirementDiagram-EQYSW5RA-B5N8Q9VV.js +0 -84
  1658. package/editor-web/assets/sankeyDiagram-SY24JHO5-bCTsxF1A.js +0 -40
  1659. package/editor-web/assets/sequenceDiagram-BLEHNHQU-M37m0sEI.js +0 -169
  1660. package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BDIn7XwV.js +0 -291
  1661. package/editor-web/assets/svg-BiObwMnL.js +0 -1
  1662. package/editor-web/assets/swatch-CwskGSEY.js +0 -105
  1663. package/editor-web/assets/swimlanes-B3ENRKFQ-DIU1TlDI.js +0 -1
  1664. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DPM008dB.js +0 -8
  1665. package/editor-web/assets/tabs-uHwPMprC.js +0 -1
  1666. package/editor-web/assets/timeline-definition-JXYKGLGB-C0x4clqy.js +0 -120
  1667. package/editor-web/assets/treeView-D4JQ5SDB-C9lm0KTt.js +0 -1
  1668. package/editor-web/assets/treemap-SAJKECNS-BMH4lQc7.js +0 -1
  1669. package/editor-web/assets/usecaseDiagram-WPOLBNNX-BhltpBsJ.js +0 -328
  1670. package/editor-web/assets/vennDiagram-Q3Y3IDCW-D3qN9Kpt.js +0 -34
  1671. package/editor-web/assets/wardley-7MLQ67FV-C4k02DvU.js +0 -1
  1672. package/editor-web/assets/wardleyDiagram-IVAIDKWA-dhpBDNqg.js +0 -78
  1673. package/editor-web/assets/xychartDiagram-4URNHDU4-0yEarQ-o.js +0 -7
  1674. /package/dist/{commands → node_modules/@allyhub/3d-extension/dist/cli}/scenery-text.js +0 -0
  1675. /package/dist/node_modules/@allyhub/{check/dist/result.js → build/dist/stage-route.js} +0 -0
  1676. /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/drawn.js +0 -0
  1677. /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/pdf.js +0 -0
  1678. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  1679. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  1680. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/contrast.js +0 -0
  1681. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/fonts.js +0 -0
  1682. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/guards.js +0 -0
  1683. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/pictures.js +0 -0
  1684. /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/styles.js +0 -0
  1685. /package/dist/node_modules/@allyhub/{runtime/dist/bridge.js → image-extension/dist/page.js} +0 -0
  1686. /package/dist/node_modules/@allyhub/{render → image-render}/dist/pdf.js +0 -0
  1687. /package/dist/node_modules/@allyhub/{render → image-render}/dist/png.js +0 -0
  1688. /package/dist/node_modules/@allyhub/{render → measure}/dist/image.js +0 -0
  1689. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  1690. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  1691. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  1692. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  1693. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  1694. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  1695. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  1696. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  1697. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  1698. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  1699. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  1700. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  1701. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  1702. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  1703. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  1704. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  1705. /package/dist/node_modules/@allyhub/{stage/dist/scenery-solve.js → scenery-host/dist/stage/solve.js} +0 -0
  1706. /package/dist/node_modules/@allyhub/{export → slides-extension}/dist/deck-fonts.js +0 -0
  1707. /package/dist/node_modules/@allyhub/{dev-server/dist/fonts.js → slides-extension/dist/font-faces.js} +0 -0
  1708. /package/dist/node_modules/@allyhub/{dev-server → video-extension}/dist/sound.js +0 -0
  1709. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/cut-sheet.js +0 -0
  1710. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/flat.js +0 -0
  1711. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/loop.js +0 -0
  1712. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/compare.js +0 -0
  1713. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/folder.js +0 -0
  1714. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/interpret.js +0 -0
  1715. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/sections.js +0 -0
  1716. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/seams.js +0 -0
  1717. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/sound-measures.js +0 -0
  1718. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/still.js +0 -0
  1719. /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/version-voice.js +0 -0
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{CellError as a,ERR as w,Matrix as k}from"../../values.js";import{cellName as P,columnLetter as B,MAX_COLUMNS as V,MAX_ROWS as K}from"../../address.js";import{sheetPrefix as q}from"../../formula/print.js";import{parseFormula as G}from"../../formula/parse.js";import{compare as v,toBool as L,toNumber as b,toText as H}from"../coerce.js";import{Missing as O,Reference as x,Union as U}from"../types.js";import{cellsOf as R,lazy as J,raw as E,scalar as Q}from"./define.js";import{indexKeyOf as Y}from"../indexes.js";import{hasWildcard as Z,indexKey as F,wildcard as g}from"./criteria.js";const W=(n,t)=>typeof n==typeof t&&!(n instanceof a)&&n!==null;function C(n){if(n.rows===1)return{length:n.cols,at:t=>n.at(0,t)};if(n.cols===1)return{length:n.rows,at:t=>n.at(t,0)}}function T(n,t,e,o,r,s=0,c=1){const i=typeof n=="string"?n:void 0;if(r&&i!==void 0&&Z(i)){const l=g(i);for(let d=s;d>=0&&d<t.length;d+=c){const m=t.at(d);if(typeof m=="string"&&l(m))return d}return-1}const f=F(n);if(f===void 0)return-1;const u=e.reference;if(u&&t.length>=64&&s===0&&c===1)return o.calc.indexes.of(Y("find",u),[u],()=>{const d=new Map;for(let m=t.length-1;m>=0;m--){const h=F(t.at(m));h!==void 0&&d.set(h,[m])}return d}).get(f)?.[0]??-1;for(let l=s;l>=0&&l<t.length;l+=c)if(F(t.at(l))===f)return l;return-1}function $(n,t,e=!1){let o=0,r=t.length-1,s=-1;for(;o<=r;){const c=o+r>>1;let i=c;for(;i>=o&&!W(t.at(i),n);)i-=1;if(i<o){o=c+1;continue}const f=v(t.at(i),n);(e?f>=0:f<=0)?(s=i,o=c+1):r=i-1}return s}const N=(n,t)=>t.calc.scalar(n??null,t.frame),nn=(n,t,e)=>n===void 0||n instanceof O?e:L(t.calc.scalar(n,t.frame));function X(n){return(t,e)=>{const o=N(t[0],e);if(o instanceof a)return o;const r=R(t[1],e);if(r instanceof a)return r;const s=b(e.calc.scalar(t[2],e.frame));if(s instanceof a)return s;const c=Math.trunc(s);if(c<1)return w.VALUE;if(c>(n?r.cols:r.rows))return w.REF;const i=nn(t[3],e,!0);if(i instanceof a)return i;const f={length:n?r.rows:r.cols,at:d=>n?r.at(d,0):r.at(0,d)},u={rows:n?r.rows:1,cols:n?1:r.cols,at:(d,m)=>r.at(d,m),...r.reference?{reference:new x(r.reference.sheet,r.reference.top,r.reference.left,n?r.reference.bottom:r.reference.top,n?r.reference.left:r.reference.right)}:{}},l=i?$(o,f):T(o,f,u,e,!0);return l<0?w.NA:n?r.at(l,c-1):r.at(c-1,l)}}E("VLOOKUP","vrv?v",X(!0)),E("HLOOKUP","vrv?v",X(!1)),E("MATCH","vr?v",(n,t)=>{const e=N(n[0],t);if(e instanceof a)return e;const o=R(n[1],t);if(o instanceof a)return o;const r=C(o);if(!r)return w.NA;const s=n[2]===void 0||n[2]instanceof O?1:b(t.calc.scalar(n[2],t.frame));if(s instanceof a)return s;const c=s===0?T(e,r,o,t,!0):$(e,r,s<0);return c<0?w.NA:c+1}),E("LOOKUP","vr?r",(n,t)=>{const e=N(n[0],t);if(e instanceof a)return e;const o=R(n[1],t);if(o instanceof a)return o;const r=o.rows>=o.cols,s={length:r?o.rows:o.cols,at:u=>r?o.at(u,0):o.at(0,u)},c=$(e,s);if(c<0)return w.NA;if(n[2]===void 0)return r?o.at(c,o.cols-1):o.at(o.rows-1,c);const i=R(n[2],t);if(i instanceof a)return i;const f=C(i);return f?f.at(c):w.NA});function D(n,t,e,o,r){const s=C(t);if(!s)return-1;const c=r===-1;if(Math.abs(r)===2){const l=$(n,s,r<0);if(l>=0&&v(s.at(l),n)===0)return l;if(o===0)return-1}const f=T(n,s,t,e,o===2,c?s.length-1:0,c?-1:1);if(f>=0||o===0||o===2)return f;let u=-1;for(let l=0;l<s.length;l++){const d=s.at(l);if(!W(d,n))continue;const m=v(d,n),h=u<0||(o<0?v(d,s.at(u))>0:v(d,s.at(u))<0);(o<0?m<0:m>0)&&h&&(u=l)}return u}const _=(n,t,e)=>{const o=(c,i)=>c===void 0||c instanceof O?i:b(e.calc.scalar(c,e.frame)),r=o(n,0);if(r instanceof a)return r;const s=o(t,1);return s instanceof a?s:[r,s]};E("XLOOKUP","vrr?rvv",(n,t)=>{const e=N(n[0],t);if(e instanceof a)return e;const o=R(n[1],t);if(o instanceof a)return o;const r=R(n[2],t);if(r instanceof a)return r;const s=_(n[4],n[5],t);if(s instanceof a)return s;const c=D(e,o,t,s[0],s[1]);if(c<0){const f=n[3];return f===void 0||f instanceof O?w.NA:t.calc.flat(f)}if(o.cols===1){if(r.cols===1)return r.at(c,0);const f=[];for(let u=0;u<r.cols;u++)f.push(r.at(c,u));return new k(1,r.cols,f)}if(r.rows===1)return r.at(0,c);const i=[];for(let f=0;f<r.rows;f++)i.push(r.at(f,c));return new k(r.rows,1,i)}),E("XMATCH","vr?vv",(n,t)=>{const e=N(n[0],t);if(e instanceof a)return e;const o=R(n[1],t);if(o instanceof a)return o;const r=_(n[2],n[3],t);if(r instanceof a)return r;const s=D(e,o,t,r[0],r[1]);return s<0?w.NA:s+1}),E("INDEX","rv?vv",(n,t)=>{let e=n[0];const o=h=>{if(h===void 0||h instanceof O)return 0;const p=b(t.calc.scalar(h,t.frame));return p instanceof a?p:Math.trunc(p)};if(e instanceof U){const h=o(n[3]??1);if(h instanceof a)return h;const p=e.parts[h-1];if(!p)return w.REF;e=p}if(e instanceof a)return e;const r=o(n[1]);if(r instanceof a)return r;const s=o(n[2]);if(s instanceof a)return s;if(r<0||s<0)return w.VALUE;if(e instanceof x){const h=n[2]===void 0&&e.rows===1,p=h?1:r,A=h?r:s;return p>e.rows||A>e.cols?w.REF:new x(e.sheet,p===0?e.top:e.top+p-1,A===0?e.left:e.left+A-1,p===0?e.bottom:e.top+p-1,A===0?e.right:e.left+A-1)}const c=R(e,t);if(c instanceof a)return c;const i=n[2]===void 0&&c.rows===1,f=i?1:r,u=i?r:s===0&&c.cols===1?1:s;if(f>c.rows||u>c.cols)return w.REF;if(f>0&&u>0)return c.at(f-1,u-1);const l=f===0?c.rows:1,d=u===0?c.cols:1,m=[];for(let h=0;h<l;h++)for(let p=0;p<d;p++)m.push(c.at(f===0?h:f-1,u===0?p:u-1));return new k(l,d,m)}),E("OFFSET","rvv?vv",(n,t)=>{const e=n[0];if(e instanceof a)return e;if(!(e instanceof x))return w.VALUE;const o=(M,z)=>{if(M===void 0||M instanceof O)return z;const y=b(t.calc.scalar(M,t.frame));return y instanceof a?y:Math.trunc(y)},r=o(n[1],0),s=o(n[2],0),c=o(n[3],e.rows),i=o(n[4],e.cols);for(const M of[r,s,c,i])if(M instanceof a)return M;const[f,u,l,d]=[r,s,c,i];if(l===0||d===0)return w.REF;const m=e.top+(f??0),h=e.left+(u??0),p=m+(l??1)-1,A=h+(d??1)-1;return Math.min(m,p)<0||Math.min(h,A)<0||Math.max(m,p)>=K||Math.max(h,A)>=V?w.REF:new x(e.sheet,Math.min(m,p),Math.min(h,A),Math.max(m,p),Math.max(h,A))},{volatile:!0});const tn=/^(?:(.*)!)?R(\[-?\d+\]|\d+)?C(\[-?\d+\]|\d+)?(?::R(\[-?\d+\]|\d+)?C(\[-?\d+\]|\d+)?)?$/iu,S=(n,t)=>n===void 0?t:n.startsWith("[")?t+Number(n.slice(1,-1)):Number(n)-1;function en(n,t,e){const o=tn.exec(n.trim());if(!o)return;const[,r,s,c,i,f]=o,u={row:S(s,t),col:S(c,e)};if(u.row<0||u.col<0)return;const l=P(u),d=r===void 0?"":`${r}!`;if(i===void 0&&f===void 0)return`${d}${l}`;const m={row:S(i,t),col:S(f,e)};return m.row<0||m.col<0?void 0:`${d}${l}:${P(m)}`}E("INDIRECT","v?v",(n,t)=>{const e=H(t.calc.scalar(n[0],t.frame));if(e instanceof a)return e;const o=n[1]===void 0?!0:L(t.calc.scalar(n[1],t.frame));if(o instanceof a)return o;const r=o?e:en(e,t.frame.row,t.frame.col);if(r===void 0)return w.REF;const s=G(r);if(!s.ok)return w.REF;const{node:c}=s;if(c.kind!=="ref"&&c.kind!=="structured"&&c.kind!=="name"&&!(c.kind==="binary"&&c.op===":"))return w.REF;const i=t.calc.eval(c,{...t.frame,dr:0,dc:0});return i instanceof x||i instanceof U?i:w.REF},{volatile:!0});const I=(n,t,e)=>{if(n===void 0||n instanceof O)return t+1;if(n instanceof a)return n;if(!(n instanceof x))return w.VALUE;const[o,r]=e(n);if(r<=1)return o+1;const s=Array.from({length:r},(c,i)=>o+i+1);return e===j?new k(r,1,s):new k(1,r,s)},j=n=>[n.top,Math.min(n.rows,n.sheet.lastRow-n.top+1)],rn=n=>[n.left,n.cols];E("ROW","?r",(n,t)=>I(n[0],t.frame.row,j)),E("COLUMN","?r",(n,t)=>I(n[0],t.frame.col,rn)),E("ROWS","r",(n,t)=>{const e=n[0];if(e instanceof x)return e.rows;const o=R(e,t);return o instanceof a?o:o.rows}),E("COLUMNS","r",(n,t)=>{const e=n[0];if(e instanceof x)return e.cols;const o=R(e,t);return o instanceof a?o:o.cols}),E("AREAS","r",n=>{const t=n[0];return t instanceof x?1:t instanceof U?t.parts.length:w.VALUE}),Q("ADDRESS",2,5,(n,t,e,o,r)=>{const s=b(n),c=b(t),i=e==null?1:b(e);for(const M of[s,c,i])if(M instanceof a)return M;const[f,u,l]=[s,c,i];if((f??0)<1||(u??0)<1||(f??0)>K||(u??0)>V)return w.VALUE;const d=o==null?!0:L(o);if(d instanceof a)return d;const m=l===1||l===2,h=l===1||l===3,p=d?`${h?"$":""}${B((u??1)-1)}${m?"$":""}${String(f)}`:`R${m?String(f):`[${String(f)}]`}C${h?String(u):`[${String(u)}]`}`;if(r==null)return p;const A=H(r);return A instanceof a?A:`${q(A)}${p}`}),E("TRANSPOSE","r",(n,t)=>{const e=R(n[0],t);if(e instanceof a)return e;const o=[];for(let r=0;r<e.cols;r++)for(let s=0;s<e.rows;s++)o.push(e.at(s,r));return new k(e.cols,e.rows,o)}),J("SHEET",0,1,(n,t)=>{const e=n[0];if(e===void 0)return t.frame.sheet.index+1;const o=t.calc.eval(e,t.frame);if(o instanceof x)return o.sheet.index+1;const r=t.calc.scalar(o,t.frame);if(typeof r!="string")return w.NA;const s=t.calc.wb.sheet(r);return s?s.index+1:w.NA}),E("SHEETS","?r",(n,t)=>t.calc.wb.sheets.length);
2
+ import{CellError as a,ERR as p,Matrix as k}from"../../values.js";import{cellName as K,columnLetter as g,MAX_COLUMNS as W,MAX_ROWS as L}from"../../address.js";import{sheetPrefix as q}from"../../formula/print.js";import{parseFormula as G}from"../../formula/parse.js";import{compare as v,toBool as U,toNumber as M,toText as H}from"../coerce.js";import{Missing as O,Reference as x,Union as F}from"../types.js";import{cellsOf as R,lazy as J,raw as A,scalar as Q}from"./define.js";import{indexKeyOf as Y}from"../indexes.js";import{hasWildcard as Z,indexKey as C,literalOf as nn,wildcard as tn}from"./criteria.js";const I=(n,t)=>typeof n==typeof t&&!(n instanceof a)&&n!==null;function T(n){if(n.rows===1)return{length:n.cols,at:t=>n.at(0,t)};if(n.cols===1)return{length:n.rows,at:t=>n.at(t,0)}}const P=new WeakMap;function en(n,t){const e=P.get(n);if(e)return e;if(e===void 0){P.set(n,null);return}const o=t();return P.set(n,o),o}function V(n,t,e,o,r,s=0,c=1){const f=typeof n=="string"?n:void 0,i=r&&f!==void 0&&Z(f)?nn(f):f;if(f!==void 0&&i===void 0){const l=tn(f);for(let d=s;d>=0&&d<t.length;d+=c){const h=t.at(d);if(typeof h=="string"&&l(h))return d}return-1}const u=C(i??n);if(u===void 0)return-1;if(t.length>=64&&s===0&&c===1){const l=()=>{const w=new Map;for(let m=t.length-1;m>=0;m--){const E=C(t.at(m));E!==void 0&&w.set(E,[m])}return w},d=e.reference,h=d?o.calc.indexes.ofRepeated(Y("find",d),[d],l):e.array&&en(e.array,l);if(h)return h.get(u)?.[0]??-1}for(let l=s;l>=0&&l<t.length;l+=c)if(C(t.at(l))===u)return l;return-1}function N(n,t,e=!1){let o=0,r=t.length-1,s=-1;for(;o<=r;){const c=o+r>>1;let f=c;for(;f>=o&&!I(t.at(f),n);)f-=1;if(f<o){o=c+1;continue}const i=v(t.at(f),n);(e?i>=0:i<=0)?(s=f,o=c+1):r=f-1}return s}const y=(n,t)=>t.calc.scalar(n??null,t.frame),rn=(n,t,e)=>n===void 0?e:n instanceof O?!1:U(t.calc.scalar(n,t.frame));function X(n){return(t,e)=>{const o=y(t[0],e);if(o instanceof a)return o;const r=R(t[1],e);if(r instanceof a)return r;const s=M(e.calc.scalar(t[2],e.frame));if(s instanceof a)return s;const c=Math.trunc(s);if(c<1)return p.VALUE;if(c>(n?r.cols:r.rows))return p.REF;const f=rn(t[3],e,!0);if(f instanceof a)return f;const i={length:n?r.rows:r.cols,at:d=>n?r.at(d,0):r.at(0,d)},u={rows:n?r.rows:1,cols:n?1:r.cols,at:(d,h)=>r.at(d,h),...r.reference?{reference:new x(r.reference.sheet,r.reference.top,r.reference.left,n?r.reference.bottom:r.reference.top,n?r.reference.left:r.reference.right)}:{}},l=f?N(o,i):V(o,i,u,e,!0);return l<0?p.NA:n?r.at(l,c-1):r.at(c-1,l)}}A("VLOOKUP","vrv?v",X(!0)),A("HLOOKUP","vrv?v",X(!1)),A("MATCH","vr?v",(n,t)=>{const e=y(n[0],t);if(e instanceof a)return e;const o=R(n[1],t);if(o instanceof a)return o;const r=T(o);if(!r)return p.NA;const s=n[2]===void 0?1:n[2]instanceof O?0:M(t.calc.scalar(n[2],t.frame));if(s instanceof a)return s;const c=s===0?V(e,r,o,t,!0):N(e,r,s<0);return c<0?p.NA:c+1}),A("LOOKUP","vr?r",(n,t)=>{const e=y(n[0],t);if(e instanceof a)return e;const o=R(n[1],t);if(o instanceof a)return o;const r=o.rows>=o.cols,s={length:r?o.rows:o.cols,at:u=>r?o.at(u,0):o.at(0,u)},c=N(e,s);if(c<0)return p.NA;if(n[2]===void 0)return r?o.at(c,o.cols-1):o.at(o.rows-1,c);const f=R(n[2],t);if(f instanceof a)return f;const i=T(f);return i?i.at(c):p.NA});function D(n,t,e,o,r){const s=T(t);if(!s)return-1;const c=r===-1;if(Math.abs(r)===2){const l=N(n,s,r<0);if(l>=0&&v(s.at(l),n)===0)return l;if(o===0)return-1}const i=V(n,s,t,e,o===2,c?s.length-1:0,c?-1:1);if(i>=0||o===0||o===2)return i;let u=-1;for(let l=0;l<s.length;l++){const d=s.at(l);if(!I(d,n))continue;const h=v(d,n),w=u<0||(o<0?v(d,s.at(u))>0:v(d,s.at(u))<0);(o<0?h<0:h>0)&&w&&(u=l)}return u}const _=(n,t,e)=>{const o=(c,f)=>c===void 0||c instanceof O?f:M(e.calc.scalar(c,e.frame)),r=o(n,0);if(r instanceof a)return r;const s=o(t,1);return s instanceof a?s:[r,s]};A("XLOOKUP","vrr?rvv",(n,t)=>{const e=y(n[0],t);if(e instanceof a)return e;const o=R(n[1],t);if(o instanceof a)return o;const r=R(n[2],t);if(r instanceof a)return r;const s=_(n[4],n[5],t);if(s instanceof a)return s;const c=D(e,o,t,s[0],s[1]);if(c<0){const i=n[3];return i===void 0||i instanceof O?p.NA:t.calc.flat(i)}if(o.cols===1){if(r.cols===1)return r.at(c,0);const i=[];for(let u=0;u<r.cols;u++)i.push(r.at(c,u));return new k(1,r.cols,i)}if(r.rows===1)return r.at(0,c);const f=[];for(let i=0;i<r.rows;i++)f.push(r.at(i,c));return new k(r.rows,1,f)}),A("XMATCH","vr?vv",(n,t)=>{const e=y(n[0],t);if(e instanceof a)return e;const o=R(n[1],t);if(o instanceof a)return o;const r=_(n[2],n[3],t);if(r instanceof a)return r;const s=D(e,o,t,r[0],r[1]);return s<0?p.NA:s+1}),A("INDEX","rv?vv",(n,t)=>{let e=n[0];const o=w=>{if(w===void 0||w instanceof O)return 0;const m=M(t.calc.scalar(w,t.frame));return m instanceof a?m:Math.trunc(m)};if(e instanceof F){const w=o(n[3]??1);if(w instanceof a)return w;const m=e.parts[w-1];if(!m)return p.REF;e=m}if(e instanceof a)return e;const r=o(n[1]);if(r instanceof a)return r;const s=o(n[2]);if(s instanceof a)return s;if(r<0||s<0)return p.VALUE;if(e instanceof x){const w=n[2]===void 0&&e.rows===1,m=w?1:r,E=w?r:s;return m>e.rows||E>e.cols?p.REF:new x(e.sheet,m===0?e.top:e.top+m-1,E===0?e.left:e.left+E-1,m===0?e.bottom:e.top+m-1,E===0?e.right:e.left+E-1)}const c=R(e,t);if(c instanceof a)return c;const f=n[2]===void 0&&c.rows===1,i=f?1:r,u=f?r:s===0&&c.cols===1?1:s;if(i>c.rows||u>c.cols)return p.REF;if(i>0&&u>0)return c.at(i-1,u-1);const l=i===0?c.rows:1,d=u===0?c.cols:1,h=[];for(let w=0;w<l;w++)for(let m=0;m<d;m++)h.push(c.at(i===0?w:i-1,u===0?m:u-1));return new k(l,d,h)}),A("OFFSET","rvv?vv",(n,t)=>{const e=n[0];if(e instanceof a)return e;if(!(e instanceof x))return p.VALUE;const o=(b,B)=>{if(b===void 0||b instanceof O)return B;const S=M(t.calc.scalar(b,t.frame));return S instanceof a?S:Math.trunc(S)},r=o(n[1],0),s=o(n[2],0),c=o(n[3],e.rows),f=o(n[4],e.cols);for(const b of[r,s,c,f])if(b instanceof a)return b;const[i,u,l,d]=[r,s,c,f];if(l===0||d===0)return p.REF;const h=e.top+(i??0),w=e.left+(u??0),m=h+(l??1)-1,E=w+(d??1)-1;return Math.min(h,m)<0||Math.min(w,E)<0||Math.max(h,m)>=L||Math.max(w,E)>=W?p.REF:new x(e.sheet,Math.min(h,m),Math.min(w,E),Math.max(h,m),Math.max(w,E))},{volatile:!0});const on=/^(?:(.*)!)?R(\[-?\d+\]|\d+)?C(\[-?\d+\]|\d+)?(?::R(\[-?\d+\]|\d+)?C(\[-?\d+\]|\d+)?)?$/iu,$=(n,t)=>n===void 0?t:n.startsWith("[")?t+Number(n.slice(1,-1)):Number(n)-1;function sn(n,t,e){const o=on.exec(n.trim());if(!o)return;const[,r,s,c,f,i]=o,u={row:$(s,t),col:$(c,e)};if(u.row<0||u.col<0)return;const l=K(u),d=r===void 0?"":`${r}!`;if(f===void 0&&i===void 0)return`${d}${l}`;const h={row:$(f,t),col:$(i,e)};return h.row<0||h.col<0?void 0:`${d}${l}:${K(h)}`}A("INDIRECT","v?v",(n,t)=>{const e=H(t.calc.scalar(n[0],t.frame));if(e instanceof a)return e;const o=n[1]===void 0?!0:U(t.calc.scalar(n[1],t.frame));if(o instanceof a)return o;const r=o?e:sn(e,t.frame.row,t.frame.col);if(r===void 0)return p.REF;const s=G(r);if(!s.ok)return p.REF;const{node:c}=s;if(c.kind!=="ref"&&c.kind!=="structured"&&c.kind!=="name"&&!(c.kind==="binary"&&c.op===":"))return p.REF;const f=t.calc.eval(c,{...t.frame,dr:0,dc:0});return f instanceof x||f instanceof F?f:p.REF},{volatile:!0});const j=(n,t,e)=>{if(n===void 0||n instanceof O)return t+1;if(n instanceof a)return n;if(!(n instanceof x))return p.VALUE;const[o,r]=e(n);if(r<=1)return o+1;const s=Array.from({length:r},(c,f)=>o+f+1);return e===z?new k(r,1,s):new k(1,r,s)},z=n=>[n.top,n.bottom===L-1?Math.min(n.rows,n.sheet.lastRow-n.top+1):n.rows],cn=n=>[n.left,n.cols];A("ROW","?r",(n,t)=>j(n[0],t.frame.row,z)),A("COLUMN","?r",(n,t)=>j(n[0],t.frame.col,cn)),A("ROWS","r",(n,t)=>{const e=n[0];if(e instanceof x)return e.rows;const o=R(e,t);return o instanceof a?o:o.rows}),A("COLUMNS","r",(n,t)=>{const e=n[0];if(e instanceof x)return e.cols;const o=R(e,t);return o instanceof a?o:o.cols}),A("AREAS","r",n=>{const t=n[0];return t instanceof x?1:t instanceof F?t.parts.length:p.VALUE}),Q("ADDRESS",2,5,(n,t,e,o,r)=>{const s=M(n),c=M(t),f=e==null?1:M(e);for(const b of[s,c,f])if(b instanceof a)return b;const[i,u,l]=[s,c,f];if((i??0)<1||(u??0)<1||(i??0)>L||(u??0)>W)return p.VALUE;const d=o==null?!0:U(o);if(d instanceof a)return d;const h=l===1||l===2,w=l===1||l===3,m=d?`${w?"$":""}${g((u??1)-1)}${h?"$":""}${String(i)}`:`R${h?String(i):`[${String(i)}]`}C${w?String(u):`[${String(u)}]`}`;if(r==null)return m;const E=H(r);return E instanceof a?E:`${q(E)}${m}`}),A("TRANSPOSE","r",(n,t)=>{const e=R(n[0],t);if(e instanceof a)return e;const o=[];for(let r=0;r<e.cols;r++)for(let s=0;s<e.rows;s++)o.push(e.at(s,r));return new k(e.cols,e.rows,o)}),J("SHEET",0,1,(n,t)=>{const e=n[0];if(e===void 0)return t.frame.sheet.index+1;const o=t.calc.eval(e,t.frame);if(o instanceof x)return o.sheet.index+1;const r=t.calc.scalar(o,t.frame);if(typeof r!="string")return p.NA;const s=t.calc.wb.sheet(r);return s?s.index+1:p.NA}),A("SHEETS","?r",(n,t)=>t.calc.wb.sheets.length);
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{CellError as a,ERR as l,Matrix as R}from"../../values.js";import{toBool as _,toNumber as A}from"../coerce.js";import{Reference as Q,Union as st}from"../types.js";import{FUNCTIONS as ot,alias as O,cellsOf as v,eachRow as ct,number as U,numbersOf as S,raw as N,scalar as T}from"./define.js";import{besselI as it,besselJ as ft,besselK as at,besselY as ut,betaI as q,gammaQ as lt,normalCdf as ht}from"./special.js";const P=2**48;function K(e,r){const[t="0",n="0"]=e.toExponential().split("e");return+`${t}e${String(Number(n)+r)}`}const Mt=e=>Number(e.toPrecision(15));function C(e,r,t){const n=Math.trunc(r),s=Math.abs(Mt(e)),o=K(s,n);if(o>=2**53)return e;const c=K(t(o),-n);return e<0?-c:c}T("ROUND",2,2,U((e=0,r=0)=>C(e,r,t=>Math.floor(t+.5)))),T("ROUNDUP",2,2,U((e=0,r=0)=>C(e,r,Math.ceil))),T("ROUNDDOWN",2,2,U((e=0,r=0)=>C(e,r,Math.floor))),T("MOD",2,2,U((e=0,r=0)=>{if(r===0)return l.DIV0;const t=e%r;return t!==0&&t<0!=r<0?t+r:t})),T("QUOTIENT",2,2,U((e=0,r=0)=>r===0?l.DIV0:Math.trunc(e/r))),T("POWER",2,2,U((e=0,r=0)=>{if(e===0&&r===0)return l.NUM;if(e===0&&r<0)return l.DIV0;const t=e**r;return Number.isFinite(t)?t:l.NUM})),T("LOG",1,2,(e,r)=>{const t=A(e),n=r==null?10:A(r);return t instanceof a?t:n instanceof a?n:t<=0||n<=0?l.NUM:n===1?l.DIV0:n===10?Math.log10(t):n===2?Math.log2(t):Math.log(t)/Math.log(n)});function X(e,r){let[t,n]=[e,r];for(;n!==0;)[t,n]=[n,t%n];return t}function H(e,r){const t=S(e,r);if(t instanceof a)return t;const n=t.map(Math.trunc);return n.some(s=>s<0||s>=2**53)?l.NUM:n}N("GCD","(r)",(e,r)=>{const t=H(e,r);return t instanceof a?t:t.reduce(X,0)}),N("LCM","(r)",(e,r)=>{const t=H(e,r);if(t instanceof a)return t;if(t.includes(0))return 0;const n=t.reduce((s,o)=>s*o/X(s,o),1);return Number.isFinite(n)?n:l.NUM}),T("BASE",2,3,U((e=0,r=0,t=Number.NaN)=>{const n=Math.trunc(e),s=Math.trunc(r),o=Number.isNaN(t)?0:Math.trunc(t);return n<0||n>=2**53||s<2||s>36||o<0||o>255?l.NUM:n.toString(s).toUpperCase().padStart(o,"0")}));const mt="MDCLXVI",Y=[1e3,500,100,50,10,5,1];function Nt(e,r){const t=f=>Y[f]??1,n=f=>mt.charAt(f),s=Y.length-1;let o=e,c="";for(let f=0;f<=s/2;f++){const i=2*f,u=Math.floor(o/t(i));if(u%5===4){const h=u===4?i-1:i-2;let M=i,m=0;for(;m<r&&M<s;)m+=1,t(h)-t(M+1)<=o?M+=1:m=r;c+=n(M)+n(h),o+=t(M)-t(h)}else u>4&&(c+=n(i-1)),c+=n(i).repeat(u%5),o%=t(i)}return c}T("ROMAN",1,2,(e,r)=>{const t=A(e);if(t instanceof a)return t;let n=0;if(typeof r=="boolean")n=r?0:4;else if(r!=null){const o=A(r);if(o instanceof a)return o;n=Math.trunc(o)}const s=Math.trunc(t);return s<0||s>3999||n<0||n>4?l.VALUE:Nt(s,n)});function B(e){return!Number.isInteger(e)||e<0||e>=P?l.NUM:BigInt(e)}for(const[e,r]of[["BITAND",(t,n)=>t&n],["BITOR",(t,n)=>t|n],["BITXOR",(t,n)=>t^n]])T(e,2,2,U((t=0,n=0)=>{const s=B(t),o=B(n);return s instanceof a?s:o instanceof a?o:Number(r(s,o))}));for(const[e,r]of[["BITLSHIFT",1],["BITRSHIFT",-1]])T(e,2,2,U((t=0,n=0)=>{const s=B(t);if(s instanceof a)return s;const o=Math.trunc(n)*r;if(Math.abs(o)>53)return l.NUM;const c=o>=0?s<<BigInt(o):s>>BigInt(-o);return c>=BigInt(P)?l.NUM:Number(c)}));for(const[e,r,t]of[["BESSELJ",ft,!1],["BESSELI",it,!1],["BESSELY",ut,!0],["BESSELK",at,!0]])T(e,2,2,U((n=0,s=0)=>{const o=Math.trunc(s);if(o<0||t&&n<=0)return l.NUM;const c=r(o,n);return Number.isFinite(c)?c:l.NUM}));T("SLN",3,3,U((e=0,r=0,t=0)=>t===0?l.DIV0:(e-r)/t)),N("GEOMEAN","(r)",(e,r)=>{const t=S(e,r);return t instanceof a?t:t.length===0||t.some(n=>n<=0)?l.NUM:Math.exp(t.reduce((n,s)=>n+Math.log(s),0)/t.length)}),N("HARMEAN","(r)",(e,r)=>{const t=S(e,r);return t instanceof a?t:t.length===0||t.some(n=>n<=0)?l.NUM:t.length/t.reduce((n,s)=>n+1/s,0)}),N("KURT","(r)",(e,r)=>{const t=S(e,r);if(t instanceof a)return t;const n=t.length;if(n<4)return l.DIV0;const s=t.reduce((f,i)=>f+i,0)/n,o=t.reduce((f,i)=>f+(i-s)**2,0)/(n-1);if(o===0)return l.DIV0;const c=t.reduce((f,i)=>f+(i-s)**4,0)/o**2;return n*(n+1)/((n-1)*(n-2)*(n-3))*c-3*(n-1)**2/((n-2)*(n-3))});function z(e,r){const t=[];let n;return ct(e,r,(s,o)=>{if(!n){if(s instanceof a)n=s;else if(typeof s=="number")t.push(s);else if(o&&s!==null){const c=A(s);c instanceof a?n=c:t.push(c)}}}),n??t}N("MODE.SNGL","(r)",(e,r)=>{const t=z(e,r);if(t instanceof a)return t;const n=new Map;for(const c of t)n.set(c,(n.get(c)??0)+1);let s,o=1;for(const[c,f]of n)f>o&&(s=c,o=f);return s??l.NA}),O("MODE","MODE.SNGL"),N("MODE.MULT","(r)",(e,r)=>{const t=z(e,r);if(t instanceof a)return t;const n=new Map;for(const c of t)n.set(c,(n.get(c)??0)+1);let s=0;for(const c of n.values())s=Math.max(s,c);if(s<2)return l.NA;const o=[...n].filter(([,c])=>c===s).map(([c])=>c);return new R(o.length,1,o)});function dt(e,r){const t=r*(e.length-1),n=Math.floor(t),s=e[n]??0,o=e[n+1]??s;return s+(t-n)*(o-s)}N("QUARTILE.INC","rv",(e,r)=>{const t=S([e[0]],r);if(t instanceof a)return t;const n=A(r.calc.scalar(e[1],r.frame));if(n instanceof a)return n;const s=Math.trunc(n);return t.length===0||s<0||s>4?l.NUM:dt([...t].sort((o,c)=>o-c),s/4)}),O("QUARTILE","QUARTILE.INC");function W(e,r){const t=A(r.calc.scalar(e[0],r.frame));if(t instanceof a)return t;const n=S([e[1]],r);if(n instanceof a)return n;const s=e[2]===void 0?0:A(r.calc.scalar(e[2],r.frame));if(s instanceof a)return s;const o=n.filter(c=>c===t).length;return o===0?l.NA:{before:n.filter(c=>s===0?c>t:c<t).length,ties:o}}N("RANK.EQ","vr?v",(e,r)=>{const t=W(e,r);return t instanceof a?t:t.before+1}),N("RANK.AVG","vr?v",(e,r)=>{const t=W(e,r);return t instanceof a?t:t.before+(t.ties+1)/2}),O("RANK","RANK.EQ");function L(e,r){const t=v(e,r);if(t instanceof a)return t;const n=[];for(let s=0;s<t.rows;s++){const o=[];for(let c=0;c<t.cols;c++){const f=t.at(s,c);if(f instanceof a)return f;if(typeof f!="number")return l.VALUE;o.push(f)}n.push(o)}return n}const F=e=>new R(e.length,e[0]?.length??0,e.flat());function pt(e,r){const t=r[0]?.length??0;return e.map(n=>Array.from({length:t},(s,o)=>n.reduce((c,f,i)=>c+f*(r[i]?.[o]??0),0)))}N("MMULT","rr",(e,r)=>{const t=L(e[0],r),n=L(e[1],r);return t instanceof a?t:n instanceof a?n:(t[0]?.length??0)!==n.length?l.VALUE:F(pt(t,n))});function V(e){const r=e.length,t=e.map((o,c)=>[...o,...Array.from({length:r},(f,i)=>c===i?1:0)]),n=(o,c)=>t[o]?.[c]??0;let s=1;for(let o=0;o<r;o++){let c=o;for(let i=o+1;i<r;i++)Math.abs(n(i,o))>Math.abs(n(c,o))&&(c=i);if(n(c,o)===0)return{determinant:0};if(c!==o){const[i=[],u=[]]=[t[o],t[c]];t[o]=u,t[c]=i,s=-s}const f=n(o,o);s*=f,t[o]=(t[o]??[]).map(i=>i/f);for(let i=0;i<r;i++){if(i===o)continue;const u=n(i,o),h=t[o]??[];t[i]=(t[i]??[]).map((M,m)=>M-u*(h[m]??0))}}return{determinant:s,inverse:t.map(o=>o.slice(r))}}const Z=e=>e.length>0&&e.every(r=>r.length===e.length);N("MDETERM","r",(e,r)=>{const t=L(e[0],r);return t instanceof a?t:Z(t)?V(t).determinant:l.VALUE}),N("MINVERSE","r",(e,r)=>{const t=L(e[0],r);if(t instanceof a)return t;if(!Z(t))return l.VALUE;const{inverse:n}=V(t);return n?F(n):l.NUM}),T("MUNIT",1,1,U((e=0)=>{const r=Math.trunc(e);return r<1||r>73?l.VALUE:F(Array.from({length:r},(t,n)=>Array.from({length:r},(s,o)=>n===o?1:0)))}));function G(e,r,t){const n=v(e,t),s=v(r,t);if(n instanceof a)return n;if(s instanceof a)return s;if(n.rows*n.cols!==s.rows*s.cols)return l.NA;const o=[],c=[];for(let f=0;f<n.rows;f++)for(let i=0;i<n.cols;i++){const u=n.at(f,i),h=s.rows===n.rows?s.at(f,i):s.at(i,f);if(u instanceof a)return u;if(h instanceof a)return h;typeof u=="number"&&typeof h=="number"&&(o.push(u),c.push(h))}return{xs:o,ys:c}}for(const[e,r]of[["SUMX2MY2",(t,n)=>t*t-n*n],["SUMX2PY2",(t,n)=>t*t+n*n],["SUMXMY2",(t,n)=>(t-n)**2]])N(e,"rr",(t,n)=>{const s=G(t[0],t[1],n);return s instanceof a?s:s.xs.length===0?l.DIV0:s.xs.reduce((o,c,f)=>o+r(c,s.ys[f]??0),0)});N("SERIESSUM","vvvr",(e,r)=>{const[t,n,s]=e.slice(0,3).map(c=>A(r.calc.scalar(c,r.frame)));if(t instanceof a)return t;if(n instanceof a)return n;if(s instanceof a)return s;const o=S([e[3]],r);return o instanceof a?o:o.reduce((c,f,i)=>c+f*(t??0)**((n??0)+i*(s??0)),0)}),N("FREQUENCY","rr",(e,r)=>{const t=S([e[0]],r),n=S([e[1]],r);if(t instanceof a)return t;if(n instanceof a)return n;const s=n.map((c,f)=>({b:c,i:f})).sort((c,f)=>c.b-f.b),o=new Array(n.length+1).fill(0);for(const c of t){const f=s.find(u=>c<=u.b),i=f?f.i:n.length;o[i]=(o[i]??0)+1}return new R(o.length,1,o)}),N("PROB","rrv?v",(e,r)=>{const t=G(e[0],e[1],r);if(t instanceof a)return t;const n=A(r.calc.scalar(e[2],r.frame));if(n instanceof a)return n;const s=e[3]===void 0?n:A(r.calc.scalar(e[3],r.frame));if(s instanceof a)return s;const o=t.ys.reduce((c,f)=>c+f,0);return t.ys.some(c=>c<=0||c>1)||Math.abs(o-1)>1e-12?l.NUM:t.xs.reduce((c,f,i)=>f>=n&&f<=s?c+(t.ys[i]??0):c,0)});const J=e=>e.reduce((r,t)=>r+t,0);function $(e,r,t){const n=r.map(u=>t?[...u,1]:[...u]),s=n[0]?.length??0,o=Array.from({length:s},(u,h)=>Array.from({length:s},(M,m)=>n.reduce((E,g)=>E+(g[h]??0)*(g[m]??0),0))),{inverse:c}=V(o);if(!c)return;const f=Array.from({length:s},(u,h)=>n.reduce((M,m,E)=>M+(m[h]??0)*(e[E]??0),0)),i=c.map(u=>u.reduce((h,M,m)=>h+M*(f[m]??0),0));return t?i:[...i,0]}function j(e,r,t){const n=L(e[0],r);if(n instanceof a)return n;const s=n.length===1,o=n.flat();if(t&&o.some(h=>h<=0))return l.NUM;const c=t?o.map(Math.log):o,f=e[1];if(f===void 0||!x(f))return{ys:c,xs:o.map((h,M)=>[M+1]),byRow:s};const i=L(f,r);if(i instanceof a)return i;const u=i[0]?.length??0;return s?u!==c.length?l.REF:{ys:c,xs:Array.from({length:u},(h,M)=>i.map(m=>m[M]??0)),byRow:s}:i.length!==c.length?l.REF:{ys:c,xs:i,byRow:s}}const x=e=>e instanceof Q||e instanceof R||typeof e=="number",tt=(e,r)=>e===void 0||!x(e)&&typeof e!="boolean"?!0:_(r.calc.scalar(e,r.frame));function nt(e){return(r,t)=>{const n=j(r,t,e);if(n instanceof a)return n;const s=tt(r[3],t);if(s instanceof a)return s;const o=$(n.ys,n.xs,s);if(!o)return l.NUM;const c=r[2];let f=n.xs;if(c!==void 0&&x(c)){const u=L(c,t);if(u instanceof a)return u;const h=n.xs[0]?.length??1,M=u[0]?.length??0;f=n.byRow||h===1&&u.length===1?Array.from({length:M},(m,E)=>u.map(g=>g[E]??0)):u}const i=f.map(u=>{const h=u.reduce((M,m,E)=>M+m*(o[E]??0),0)+(o[u.length]??0);return e?Math.exp(h):h});return n.byRow?new R(1,i.length,i):new R(i.length,1,i)}}N("TREND","r?rrv",nt(!1)),N("GROWTH","r?rrv",nt(!0));function Et(e,r,t,n){const s=r.map(p=>n?[...p,1]:[...p]),o=s[0]?.length??0,{inverse:c}=V(Array.from({length:o},(p,d)=>Array.from({length:o},(b,D)=>s.reduce((rt,k)=>rt+(k[d]??0)*(k[D]??0),0))));if(!c)return;const f=r.map(p=>p.reduce((d,b,D)=>d+b*(t[D]??0),0)+(t[p.length]??0)),i=e.reduce((p,d,b)=>p+(d-(f[b]??0))**2,0),u=n?J(e)/e.length:0,h=e.reduce((p,d)=>p+(d-u)**2,0),M=h-i,m=e.length-o,E=m>0?i/m:0,g=c.map((p,d)=>Math.sqrt(Math.max(0,(p[d]??0)*E))),I=r[0]?.length??0;return{errors:g,r2:h===0?1:M/h,sey:Math.sqrt(E),f:m>0&&i>0?M/I/(i/m):0,df:m,ssreg:M,ssresid:i}}function et(e){return(r,t)=>{const n=j(r,t,e);if(n instanceof a)return n;const s=tt(r[2],t);if(s instanceof a)return s;const o=$(n.ys,n.xs,s);if(!o)return l.NUM;const f=[...o.slice(0,-1).reverse(),o[o.length-1]??0],i=e?f.map(Math.exp):f,u=r[3],h=u===void 0||!gt(u)?!1:_(t.calc.scalar(u,t.frame));if(h instanceof a)return h;if(!h)return new R(1,i.length,i);const M=Et(n.ys,n.xs,o,s);if(!M)return l.NUM;const m=i.length,E=I=>[...I,...new Array(m-I.length).fill(l.NA)],g=s?[...M.errors.slice(0,-1).reverse(),M.errors[M.errors.length-1]??0]:[...[...M.errors].reverse(),l.NA];return new R(5,m,[...i,...g,...E([M.r2,M.sey]),...E([M.f,M.df]),...E([M.ssreg,M.ssresid])])}}const gt=e=>x(e)||typeof e=="boolean";N("LINEST","r?rvv",et(!1)),N("LOGEST","r?rvv",et(!0));const y=e=>J(e)/e.length,w=e=>{const r=y(e);return e.reduce((t,n)=>t+(n-r)**2,0)/(e.length-1)};N("CHISQ.TEST","rr",(e,r)=>{const t=L(e[0],r),n=L(e[1],r);if(t instanceof a)return t;if(n instanceof a)return n;const s=t.length,o=t[0]?.length??0;if(n.length!==s||(n[0]?.length??0)!==o)return l.NA;if(s*o<2)return l.NA;let c=0;for(let i=0;i<s;i++)for(let u=0;u<o;u++){const h=n[i]?.[u]??0;if(h<0)return l.NUM;if(h===0)return l.DIV0;c+=((t[i]?.[u]??0)-h)**2/h}const f=s>1&&o>1?(s-1)*(o-1):s>1?s-1:o-1;return lt(f/2,c/2)}),O("CHITEST","CHISQ.TEST"),N("T.TEST","rrvv",(e,r)=>{const t=A(r.calc.scalar(e[2],r.frame)),n=A(r.calc.scalar(e[3],r.frame));if(t instanceof a)return t;if(n instanceof a)return n;const s=Math.trunc(t),o=Math.trunc(n);if(s!==1&&s!==2||o<1||o>3)return l.NUM;let c,f;if(o===1){const u=G(e[0],e[1],r);if(u instanceof a)return u;const h=u.xs.map((M,m)=>M-(u.ys[m]??0));if(h.length<2)return l.DIV0;c=y(h)/Math.sqrt(w(h)/h.length),f=h.length-1}else{const u=S([e[0]],r),h=S([e[1]],r);if(u instanceof a)return u;if(h instanceof a)return h;if(u.length<2||h.length<2)return l.DIV0;const[M,m,E,g]=[w(u),w(h),u.length,h.length],I=Math.abs(y(u)-y(h));if(o===2){f=E+g-2;const p=((E-1)*M+(g-1)*m)/f;c=I/Math.sqrt(p*(1/E+1/g))}else{const p=M/E,d=m/g;c=I/Math.sqrt(p+d),f=(p+d)**2/(p**2/(E-1)+d**2/(g-1))}}return Number.isFinite(c)?q(f/2,.5,f/(f+c*c))*s/2:l.DIV0}),O("TTEST","T.TEST"),N("F.TEST","rr",(e,r)=>{const t=S([e[0]],r),n=S([e[1]],r);if(t instanceof a)return t;if(n instanceof a)return n;if(t.length<2||n.length<2)return l.DIV0;const[s,o]=[w(t),w(n)];if(s===0||o===0)return l.DIV0;const c=s/o,[f,i]=[t.length-1,n.length-1],u=q(i/2,f/2,i/(f*c+i));return 2*Math.min(u,1-u)}),O("FTEST","F.TEST"),N("Z.TEST","rv?v",(e,r)=>{const t=S([e[0]],r);if(t instanceof a)return t;const n=A(r.calc.scalar(e[1],r.frame));if(n instanceof a)return n;if(t.length===0)return l.NA;const s=e[2]===void 0?t.length<2?l.DIV0:Math.sqrt(w(t)):A(r.calc.scalar(e[2],r.frame));return s instanceof a?s:s===0?l.DIV0:1-ht((y(t)-n)/(s/Math.sqrt(t.length)))}),O("ZTEST","Z.TEST");const At={1:"AVERAGE",2:"COUNT",3:"COUNTA",4:"MAX",5:"MIN",6:"PRODUCT",7:"STDEV.S",8:"STDEV.P",9:"SUM",10:"VAR.S",11:"VAR.P",12:"MEDIAN",13:"MODE.SNGL",14:"LARGE",15:"SMALL",16:"PERCENTILE.INC",17:"QUARTILE.INC",18:"PERCENTILE.EXC",19:"QUARTILE.EXC"};N("AGGREGATE","vv(r)",(e,r)=>{const t=A(r.calc.scalar(e[0],r.frame)),n=A(r.calc.scalar(e[1],r.frame));if(t instanceof a)return t;if(n instanceof a)return n;const s=At[Math.trunc(t)],o=s===void 0?void 0:ot.get(s);if(o===void 0)return l.VALUE;const c=![2,3,6,7].includes(Math.trunc(n)),f=[1,3,5,7].includes(Math.trunc(n)),i=m=>{const E=m instanceof st?m.parts:[m],g=[];for(const p of E)if(p instanceof Q){const d=p;for(let b=d.top;b<=Math.min(d.bottom,d.sheet.lastRow);b++)if(!(f&&(d.sheet.spec.rows?.[String(b+1)]?.hidden===!0||r.calc.filtered(d.sheet).has(b))))for(let D=d.left;D<=d.right;D++)g.push(r.calc.read(d.sheet,b,D))}else{const d=r.calc.flat(p);d instanceof R?g.push(...d.data):g.push(d)}const I=c?g:g.filter(p=>!(p instanceof a));return new R(I.length,1,I)},u=Math.trunc(t)>=14,h=e.slice(2),M=u?[i(h[0]),...h.slice(1)]:h.map(i);return r.calc.applyFunction(o,M,r.frame)}),T("FACT",1,1,U(e=>{if(e<0)return l.NUM;let r=1;for(let t=2;t<=Math.trunc(e);t++)r*=t;return Number.isFinite(r)?r:l.NUM})),T("FACTDOUBLE",1,1,U(e=>{if(e<0)return l.NUM;let r=1;for(let t=Math.trunc(e);t>1;t-=2)r*=t;return Number.isFinite(r)?r:l.NUM})),T("ATAN2",2,2,U((e,r)=>e===0&&r===0?l.DIV0:Math.atan2(r,e)));for(const[e,r]of[["LARGE",!0],["SMALL",!1]])N(e,"rv",(t,n)=>{const s=S([t[0]],n);if(s instanceof a)return s;const o=A(t[1]);if(o instanceof a)return o;const c=Math.ceil(o);return c<1||c>s.length?l.NUM:(s.sort((f,i)=>r?i-f:f-i),s[c-1]??l.NUM)});
2
+ import{CellError as a,ERR as l,Matrix as I}from"../../values.js";import{toBool as Q,toNumber as A}from"../coerce.js";import{Reference as C,Union as ot,pushAll as ct}from"../types.js";import{indexKeyOf as it}from"../indexes.js";import{FUNCTIONS as ft,alias as L,cellsOf as v,eachArg as at,eachRow as ut,number as U,numbersOf as S,raw as d,scalar as T}from"./define.js";import{besselI as lt,besselJ as ht,besselK as mt,besselY as Mt,betaI as q,gammaQ as dt,normalCdf as Nt}from"./special.js";const P=2**48;function K(e,r){const[t="0",n="0"]=e.toExponential().split("e");return+`${t}e${String(Number(n)+r)}`}const pt=e=>Number(e.toPrecision(15));function k(e,r,t){const n=Math.trunc(r),s=Math.abs(pt(e)),o=K(s,n);if(o>=2**53)return e;const c=K(t(o),-n);return e<0?-c:c}T("ROUND",2,2,U((e=0,r=0)=>k(e,r,t=>Math.floor(t+.5)))),T("ROUNDUP",2,2,U((e=0,r=0)=>k(e,r,Math.ceil))),T("ROUNDDOWN",2,2,U((e=0,r=0)=>k(e,r,Math.floor))),T("MOD",2,2,U((e=0,r=0)=>{if(r===0)return l.DIV0;const t=e%r;return t!==0&&t<0!=r<0?t+r:t})),T("QUOTIENT",2,2,U((e=0,r=0)=>r===0?l.DIV0:Math.trunc(e/r))),T("POWER",2,2,U((e=0,r=0)=>{if(e===0&&r===0)return l.NUM;if(e===0&&r<0)return l.DIV0;const t=e**r;return Number.isFinite(t)?t:l.NUM})),T("LOG",1,2,(e,r)=>{const t=A(e),n=r==null?10:A(r);return t instanceof a?t:n instanceof a?n:t<=0||n<=0?l.NUM:n===1?l.DIV0:n===10?Math.log10(t):n===2?Math.log2(t):Math.log(t)/Math.log(n)});function X(e,r){let[t,n]=[e,r];for(;n!==0;)[t,n]=[n,t%n];return t}function H(e,r){const t=S(e,r);if(t instanceof a)return t;const n=t.map(Math.trunc);return n.some(s=>s<0||s>=2**53)?l.NUM:n}d("GCD","(r)",(e,r)=>{const t=H(e,r);return t instanceof a?t:t.reduce(X,0)}),d("LCM","(r)",(e,r)=>{const t=H(e,r);if(t instanceof a)return t;if(t.includes(0))return 0;const n=t.reduce((s,o)=>s*o/X(s,o),1);return Number.isFinite(n)?n:l.NUM}),T("BASE",2,3,U((e=0,r=0,t=Number.NaN)=>{const n=Math.trunc(e),s=Math.trunc(r),o=Number.isNaN(t)?0:Math.trunc(t);return n<0||n>=2**53||s<2||s>36||o<0||o>255?l.NUM:n.toString(s).toUpperCase().padStart(o,"0")}));const gt="MDCLXVI",Y=[1e3,500,100,50,10,5,1];function Et(e,r){const t=f=>Y[f]??1,n=f=>gt.charAt(f),s=Y.length-1;let o=e,c="";for(let f=0;f<=s/2;f++){const i=2*f,u=Math.floor(o/t(i));if(u%5===4){const h=u===4?i-1:i-2;let m=i,M=0;for(;M<r&&m<s;)M+=1,t(h)-t(m+1)<=o?m+=1:M=r;c+=n(m)+n(h),o+=t(m)-t(h)}else u>4&&(c+=n(i-1)),c+=n(i).repeat(u%5),o%=t(i)}return c}T("ROMAN",1,2,(e,r)=>{const t=A(e);if(t instanceof a)return t;let n=0;if(typeof r=="boolean")n=r?0:4;else if(r!=null){const o=A(r);if(o instanceof a)return o;n=Math.trunc(o)}const s=Math.trunc(t);return s<0||s>3999||n<0||n>4?l.VALUE:Et(s,n)});function B(e){return!Number.isInteger(e)||e<0||e>=P?l.NUM:BigInt(e)}for(const[e,r]of[["BITAND",(t,n)=>t&n],["BITOR",(t,n)=>t|n],["BITXOR",(t,n)=>t^n]])T(e,2,2,U((t=0,n=0)=>{const s=B(t),o=B(n);return s instanceof a?s:o instanceof a?o:Number(r(s,o))}));for(const[e,r]of[["BITLSHIFT",1],["BITRSHIFT",-1]])T(e,2,2,U((t=0,n=0)=>{const s=B(t);if(s instanceof a)return s;const o=Math.trunc(n)*r;if(Math.abs(o)>53)return l.NUM;const c=o>=0?s<<BigInt(o):s>>BigInt(-o);return c>=BigInt(P)?l.NUM:Number(c)}));for(const[e,r,t]of[["BESSELJ",ht,!1],["BESSELI",lt,!1],["BESSELY",Mt,!0],["BESSELK",mt,!0]])T(e,2,2,U((n=0,s=0)=>{const o=Math.trunc(s);if(o<0||t&&n<=0)return l.NUM;const c=r(o,n);return Number.isFinite(c)?c:l.NUM}));T("SLN",3,3,U((e=0,r=0,t=0)=>t===0?l.DIV0:(e-r)/t)),d("GEOMEAN","(r)",(e,r)=>{const t=S(e,r);return t instanceof a?t:t.length===0||t.some(n=>n<=0)?l.NUM:Math.exp(t.reduce((n,s)=>n+Math.log(s),0)/t.length)}),d("HARMEAN","(r)",(e,r)=>{const t=S(e,r);return t instanceof a?t:t.length===0||t.some(n=>n<=0)?l.NUM:t.length/t.reduce((n,s)=>n+1/s,0)}),d("KURT","(r)",(e,r)=>{const t=S(e,r);if(t instanceof a)return t;const n=t.length;if(n<4)return l.DIV0;const s=t.reduce((f,i)=>f+i,0)/n,o=t.reduce((f,i)=>f+(i-s)**2,0)/(n-1);if(o===0)return l.DIV0;const c=t.reduce((f,i)=>f+(i-s)**4,0)/o**2;return n*(n+1)/((n-1)*(n-2)*(n-3))*c-3*(n-1)**2/((n-2)*(n-3))});function W(e,r){const t=[];let n;return ut(e,r,(s,o)=>{if(!n){if(s instanceof a)n=s;else if(typeof s=="number")t.push(s);else if(o&&s!==null){const c=A(s);c instanceof a?n=c:t.push(c)}}}),n??t}d("MODE.SNGL","(r)",(e,r)=>{const t=W(e,r);if(t instanceof a)return t;const n=new Map;for(const c of t)n.set(c,(n.get(c)??0)+1);let s,o=1;for(const[c,f]of n)f>o&&(s=c,o=f);return s??l.NA}),L("MODE","MODE.SNGL"),d("MODE.MULT","(r)",(e,r)=>{const t=W(e,r);if(t instanceof a)return t;const n=new Map;for(const c of t)n.set(c,(n.get(c)??0)+1);let s=0;for(const c of n.values())s=Math.max(s,c);if(s<2)return l.NA;const o=[...n].filter(([,c])=>c===s).map(([c])=>c);return new I(o.length,1,o)});function At(e,r){const t=r*(e.length-1),n=Math.floor(t),s=e[n]??0,o=e[n+1]??s;return s+(t-n)*(o-s)}d("QUARTILE.INC","rv",(e,r)=>{const t=S([e[0]],r);if(t instanceof a)return t;const n=A(r.calc.scalar(e[1],r.frame));if(n instanceof a)return n;const s=Math.trunc(n);return t.length===0||s<0||s>4?l.NUM:At([...t].sort((o,c)=>o-c),s/4)}),L("QUARTILE","QUARTILE.INC");function z(e,r){const t=A(r.calc.scalar(e[0],r.frame));if(t instanceof a)return t;const n=S([e[1]],r);if(n instanceof a)return n;const s=e[2]===void 0?0:A(r.calc.scalar(e[2],r.frame));if(s instanceof a)return s;const o=n.filter(c=>c===t).length;return o===0?l.NA:{before:n.filter(c=>s===0?c>t:c<t).length,ties:o}}d("RANK.EQ","vr?v",(e,r)=>{const t=z(e,r);return t instanceof a?t:t.before+1}),d("RANK.AVG","vr?v",(e,r)=>{const t=z(e,r);return t instanceof a?t:t.before+(t.ties+1)/2}),L("RANK","RANK.EQ");function w(e,r){const t=v(e,r);if(t instanceof a)return t;const n=[];for(let s=0;s<t.rows;s++){const o=[];for(let c=0;c<t.cols;c++){const f=t.at(s,c);if(f instanceof a)return f;if(typeof f!="number")return l.VALUE;o.push(f)}n.push(o)}return n}const F=e=>new I(e.length,e[0]?.length??0,e.flat());function Tt(e,r){const t=r[0]?.length??0;return e.map(n=>Array.from({length:t},(s,o)=>n.reduce((c,f,i)=>c+f*(r[i]?.[o]??0),0)))}d("MMULT","rr",(e,r)=>{const t=w(e[0],r),n=w(e[1],r);return t instanceof a?t:n instanceof a?n:(t[0]?.length??0)!==n.length?l.VALUE:F(Tt(t,n))});function x(e){const r=e.length,t=e.map((o,c)=>[...o,...Array.from({length:r},(f,i)=>c===i?1:0)]),n=(o,c)=>t[o]?.[c]??0;let s=1;for(let o=0;o<r;o++){let c=o;for(let i=o+1;i<r;i++)Math.abs(n(i,o))>Math.abs(n(c,o))&&(c=i);if(n(c,o)===0)return{determinant:0};if(c!==o){const[i=[],u=[]]=[t[o],t[c]];t[o]=u,t[c]=i,s=-s}const f=n(o,o);s*=f,t[o]=(t[o]??[]).map(i=>i/f);for(let i=0;i<r;i++){if(i===o)continue;const u=n(i,o),h=t[o]??[];t[i]=(t[i]??[]).map((m,M)=>m-u*(h[M]??0))}}return{determinant:s,inverse:t.map(o=>o.slice(r))}}const Z=e=>e.length>0&&e.every(r=>r.length===e.length);d("MDETERM","r",(e,r)=>{const t=w(e[0],r);return t instanceof a?t:Z(t)?x(t).determinant:l.VALUE}),d("MINVERSE","r",(e,r)=>{const t=w(e[0],r);if(t instanceof a)return t;if(!Z(t))return l.VALUE;const{inverse:n}=x(t);return n?F(n):l.NUM}),T("MUNIT",1,1,U((e=0)=>{const r=Math.trunc(e);return r<1||r>73?l.VALUE:F(Array.from({length:r},(t,n)=>Array.from({length:r},(s,o)=>n===o?1:0)))}));function G(e,r,t){const n=v(e,t),s=v(r,t);if(n instanceof a)return n;if(s instanceof a)return s;if(n.rows*n.cols!==s.rows*s.cols)return l.NA;const o=[],c=[];for(let f=0;f<n.rows;f++)for(let i=0;i<n.cols;i++){const u=n.at(f,i),h=s.rows===n.rows?s.at(f,i):s.at(i,f);if(u instanceof a)return u;if(h instanceof a)return h;typeof u=="number"&&typeof h=="number"&&(o.push(u),c.push(h))}return{xs:o,ys:c}}for(const[e,r]of[["SUMX2MY2",(t,n)=>t*t-n*n],["SUMX2PY2",(t,n)=>t*t+n*n],["SUMXMY2",(t,n)=>(t-n)**2]])d(e,"rr",(t,n)=>{const s=G(t[0],t[1],n);return s instanceof a?s:s.xs.length===0?l.DIV0:s.xs.reduce((o,c,f)=>o+r(c,s.ys[f]??0),0)});d("SERIESSUM","vvvr",(e,r)=>{const[t,n,s]=e.slice(0,3).map(c=>A(r.calc.scalar(c,r.frame)));if(t instanceof a)return t;if(n instanceof a)return n;if(s instanceof a)return s;const o=S([e[3]],r);return o instanceof a?o:o.reduce((c,f,i)=>c+f*(t??0)**((n??0)+i*(s??0)),0)}),d("FREQUENCY","rr",(e,r)=>{const t=S([e[0]],r);if(t instanceof a)return t;const n=[];at([e[1]],r,c=>{typeof c=="number"&&n.push(c)});const s=n.map((c,f)=>({b:c,i:f})).sort((c,f)=>c.b-f.b),o=new Array(n.length+1).fill(0);for(const c of t){let f=0,i=s.length;for(;f<i;){const h=f+i>>1;c<=(s[h]?.b??1/0)?i=h:f=h+1}const u=s[f]?.i??n.length;o[u]=(o[u]??0)+1}return new I(o.length,1,o)}),d("PROB","rrv?v",(e,r)=>{const t=G(e[0],e[1],r);if(t instanceof a)return t;const n=A(r.calc.scalar(e[2],r.frame));if(n instanceof a)return n;const s=e[3]===void 0?n:A(r.calc.scalar(e[3],r.frame));if(s instanceof a)return s;const o=t.ys.reduce((c,f)=>c+f,0);return t.ys.some(c=>c<=0||c>1)||Math.abs(o-1)>1e-12?l.NUM:t.xs.reduce((c,f,i)=>f>=n&&f<=s?c+(t.ys[i]??0):c,0)});const J=e=>e.reduce((r,t)=>r+t,0);function $(e,r,t){const n=r.map(u=>t?[...u,1]:[...u]),s=n[0]?.length??0,o=Array.from({length:s},(u,h)=>Array.from({length:s},(m,M)=>n.reduce((g,E)=>g+(E[h]??0)*(E[M]??0),0))),{inverse:c}=x(o);if(!c)return;const f=Array.from({length:s},(u,h)=>n.reduce((m,M,g)=>m+(M[h]??0)*(e[g]??0),0)),i=c.map(u=>u.reduce((h,m,M)=>h+m*(f[M]??0),0));return t?i:[...i,0]}function j(e,r,t){const n=w(e[0],r);if(n instanceof a)return n;const s=n.length===1,o=n.flat();if(t&&o.some(h=>h<=0))return l.NUM;const c=t?o.map(Math.log):o,f=e[1];if(f===void 0||!V(f))return{ys:c,xs:o.map((h,m)=>[m+1]),byRow:s};const i=w(f,r);if(i instanceof a)return i;const u=i[0]?.length??0;return s?u!==c.length?l.REF:{ys:c,xs:Array.from({length:u},(h,m)=>i.map(M=>M[m]??0)),byRow:s}:i.length!==c.length?l.REF:{ys:c,xs:i,byRow:s}}const V=e=>e instanceof C||e instanceof I||typeof e=="number",tt=(e,r)=>e===void 0||!V(e)&&typeof e!="boolean"?!0:Q(r.calc.scalar(e,r.frame));function nt(e){return(r,t)=>{const n=j(r,t,e);if(n instanceof a)return n;const s=tt(r[3],t);if(s instanceof a)return s;const o=$(n.ys,n.xs,s);if(!o)return l.NUM;const c=r[2];let f=n.xs;if(c!==void 0&&V(c)){const u=w(c,t);if(u instanceof a)return u;const h=n.xs[0]?.length??1,m=u[0]?.length??0;f=n.byRow||h===1&&u.length===1?Array.from({length:m},(M,g)=>u.map(E=>E[g]??0)):u}const i=f.map(u=>{const h=u.reduce((m,M,g)=>m+M*(o[g]??0),0)+(o[u.length]??0);return e?Math.exp(h):h});return n.byRow?new I(1,i.length,i):new I(i.length,1,i)}}d("TREND","r?rrv",nt(!1)),d("GROWTH","r?rrv",nt(!0));function Ut(e,r,t,n){const s=r.map(p=>n?[...p,1]:[...p]),o=s[0]?.length??0,{inverse:c}=x(Array.from({length:o},(p,N)=>Array.from({length:o},(R,y)=>s.reduce((st,_)=>st+(_[N]??0)*(_[y]??0),0))));if(!c)return;const f=r.map(p=>p.reduce((N,R,y)=>N+R*(t[y]??0),0)+(t[p.length]??0)),i=e.reduce((p,N,R)=>p+(N-(f[R]??0))**2,0),u=n?J(e)/e.length:0,h=e.reduce((p,N)=>p+(N-u)**2,0),m=h-i,M=e.length-o,g=M>0?i/M:0,E=c.map((p,N)=>Math.sqrt(Math.max(0,(p[N]??0)*g))),b=r[0]?.length??0;return{errors:E,r2:h===0?1:m/h,sey:Math.sqrt(g),f:M>0&&i>0?m/b/(i/M):0,df:M,ssreg:m,ssresid:i}}function et(e){return(r,t)=>{const n=j(r,t,e);if(n instanceof a)return n;const s=tt(r[2],t);if(s instanceof a)return s;const o=$(n.ys,n.xs,s);if(!o)return l.NUM;const f=[...o.slice(0,-1).reverse(),o[o.length-1]??0],i=e?f.map(Math.exp):f,u=r[3],h=u===void 0||!St(u)?!1:Q(t.calc.scalar(u,t.frame));if(h instanceof a)return h;if(!h)return new I(1,i.length,i);const m=Ut(n.ys,n.xs,o,s);if(!m)return l.NUM;const M=i.length,g=b=>[...b,...new Array(M-b.length).fill(l.NA)],E=s?[...m.errors.slice(0,-1).reverse(),m.errors[m.errors.length-1]??0]:[...[...m.errors].reverse(),l.NA];return new I(5,M,[...i,...E,...g([m.r2,m.sey]),...g([m.f,m.df]),...g([m.ssreg,m.ssresid])])}}const St=e=>V(e)||typeof e=="boolean";d("LINEST","r?rvv",et(!1)),d("LOGEST","r?rvv",et(!0));const D=e=>J(e)/e.length,O=e=>{const r=D(e);return e.reduce((t,n)=>t+(n-r)**2,0)/(e.length-1)};d("CHISQ.TEST","rr",(e,r)=>{const t=w(e[0],r),n=w(e[1],r);if(t instanceof a)return t;if(n instanceof a)return n;const s=t.length,o=t[0]?.length??0;if(n.length!==s||(n[0]?.length??0)!==o)return l.NA;if(s*o<2)return l.NA;let c=0;for(let i=0;i<s;i++)for(let u=0;u<o;u++){const h=n[i]?.[u]??0;if(h<0)return l.NUM;if(h===0)return l.DIV0;c+=((t[i]?.[u]??0)-h)**2/h}const f=s>1&&o>1?(s-1)*(o-1):s>1?s-1:o-1;return dt(f/2,c/2)}),L("CHITEST","CHISQ.TEST"),d("T.TEST","rrvv",(e,r)=>{const t=A(r.calc.scalar(e[2],r.frame)),n=A(r.calc.scalar(e[3],r.frame));if(t instanceof a)return t;if(n instanceof a)return n;const s=Math.trunc(t),o=Math.trunc(n);if(s!==1&&s!==2||o<1||o>3)return l.NUM;let c,f;if(o===1){const u=G(e[0],e[1],r);if(u instanceof a)return u;const h=u.xs.map((m,M)=>m-(u.ys[M]??0));if(h.length<2)return l.DIV0;c=D(h)/Math.sqrt(O(h)/h.length),f=h.length-1}else{const u=S([e[0]],r),h=S([e[1]],r);if(u instanceof a)return u;if(h instanceof a)return h;if(u.length<2||h.length<2)return l.DIV0;const[m,M,g,E]=[O(u),O(h),u.length,h.length],b=Math.abs(D(u)-D(h));if(o===2){f=g+E-2;const p=((g-1)*m+(E-1)*M)/f;c=b/Math.sqrt(p*(1/g+1/E))}else{const p=m/g,N=M/E;c=b/Math.sqrt(p+N),f=(p+N)**2/(p**2/(g-1)+N**2/(E-1))}}return Number.isFinite(c)?q(f/2,.5,f/(f+c*c))*s/2:l.DIV0}),L("TTEST","T.TEST"),d("F.TEST","rr",(e,r)=>{const t=S([e[0]],r),n=S([e[1]],r);if(t instanceof a)return t;if(n instanceof a)return n;if(t.length<2||n.length<2)return l.DIV0;const[s,o]=[O(t),O(n)];if(s===0||o===0)return l.DIV0;const c=s/o,[f,i]=[t.length-1,n.length-1],u=q(i/2,f/2,i/(f*c+i));return 2*Math.min(u,1-u)}),L("FTEST","F.TEST"),d("Z.TEST","rv?v",(e,r)=>{const t=S([e[0]],r);if(t instanceof a)return t;const n=A(r.calc.scalar(e[1],r.frame));if(n instanceof a)return n;if(t.length===0)return l.NA;const s=e[2]===void 0?t.length<2?l.DIV0:Math.sqrt(O(t)):A(r.calc.scalar(e[2],r.frame));return s instanceof a?s:s===0?l.DIV0:1-Nt((D(t)-n)/(s/Math.sqrt(t.length)))}),L("ZTEST","Z.TEST");const It={1:"AVERAGE",2:"COUNT",3:"COUNTA",4:"MAX",5:"MIN",6:"PRODUCT",7:"STDEV.S",8:"STDEV.P",9:"SUM",10:"VAR.S",11:"VAR.P",12:"MEDIAN",13:"MODE.SNGL",14:"LARGE",15:"SMALL",16:"PERCENTILE.INC",17:"QUARTILE.INC",18:"PERCENTILE.EXC",19:"QUARTILE.EXC"};d("AGGREGATE","vv(r)",(e,r)=>{const t=A(r.calc.scalar(e[0],r.frame)),n=A(r.calc.scalar(e[1],r.frame));if(t instanceof a)return t;if(n instanceof a)return n;const s=It[Math.trunc(t)],o=s===void 0?void 0:ft.get(s);if(o===void 0)return l.VALUE;const c=![2,3,6,7].includes(Math.trunc(n)),f=[1,3,5,7].includes(Math.trunc(n)),i=M=>{const g=M instanceof ot?M.parts:[M],E=[];for(const p of g)if(p instanceof C){const N=p;for(let R=N.top;R<=Math.min(N.bottom,N.sheet.lastRow);R++)if(!(f&&(N.sheet.spec.rows?.[String(R+1)]?.hidden===!0||r.calc.filtered(N.sheet).has(R))))for(let y=N.left;y<=N.right;y++)E.push(r.calc.read(N.sheet,R,y))}else{const N=r.calc.flat(p);N instanceof I?ct(E,N.data):E.push(N)}const b=c?E:E.filter(p=>!(p instanceof a));return new I(b.length,1,b)},u=Math.trunc(t)>=14,h=e.slice(2),m=u?[i(h[0]),...h.slice(1)]:h.map(i);return r.calc.applyFunction(o,m,r.frame)}),T("FACT",1,1,U(e=>{if(e<0)return l.NUM;let r=1;for(let t=2;t<=Math.trunc(e);t++)r*=t;return Number.isFinite(r)?r:l.NUM})),T("FACTDOUBLE",1,1,U(e=>{if(e<0)return l.NUM;let r=1;for(let t=Math.trunc(e);t>1;t-=2)r*=t;return Number.isFinite(r)?r:l.NUM})),T("ATAN2",2,2,U((e,r)=>e===0&&r===0?l.DIV0:Math.atan2(r,e)));const rt={largest:new WeakMap,smallest:new WeakMap};function bt(e,r,t){const n=()=>{const f=S([e],t);return f instanceof a?f:f.sort((i,u)=>r?u-i:i-u)};if(e instanceof C)return t.calc.indexes.ofRepeated(it(r?"large":"small",e),[e],()=>{const i=n();return new Map(i instanceof a?[]:[["",i]])})?.get("")??n();if(!(e instanceof I))return n();const s=r?rt.largest:rt.smallest,o=s.get(e);if(o)return o;const c=n();return c instanceof a||s.set(e,o===null?c:null),c}for(const[e,r]of[["LARGE",!0],["SMALL",!1]])d(e,"rv",(t,n)=>{const s=bt(t[0],r,n);if(s instanceof a)return s;const o=A(t[1]);if(o instanceof a)return o;const c=Math.ceil(o);return c<1||c>s.length?l.NUM:s[c-1]??l.NUM});
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{format as $,isValidFormat as D}from"numfmt";import{CellError as i,ERR as l}from"../../values.js";import{numberOfText as N,toBool as b,toNumber as p,toText as u}from"../coerce.js";import{Missing as F}from"../types.js";import{alias as H,cellsOf as S,eachRow as x,many as B,number as I,numberArg as V,raw as C,scalar as f}from"./define.js";import{wildcard as X}from"./criteria.js";import{delimiters as j,eachLetter as k,lowerLetters as G,occurrences as _}from"./delimiters.js";const L=n=>r=>{const t=u(r);return t instanceof i?t:n(t)},T=(n,r)=>{if(n===void 0)return r;const t=p(n);return t instanceof i?t:t<0?l.VALUE:Math.trunc(t)},O=n=>k(n,r=>r.toUpperCase()),y=G;f("LEFT",1,2,(n,r)=>{const t=u(n),e=T(r,1);return t instanceof i?t:e instanceof i?e:t.slice(0,e)}),f("RIGHT",1,2,(n,r)=>{const t=u(n),e=T(r,1);return t instanceof i?t:e instanceof i?e:e===0?"":t.slice(-e)}),f("MID",3,3,(n,r,t)=>{const e=u(n),s=p(r),o=T(t,0);if(e instanceof i)return e;if(s instanceof i)return s;if(o instanceof i)return o;if(s<1)return l.VALUE;const c=Math.trunc(s)-1;return e.slice(c,c+o)}),f("LEN",1,1,L(n=>n.length)),f("LOWER",1,1,L(y)),f("UPPER",1,1,L(O)),f("PROPER",1,1,L(n=>y(n).replace(/(^|[^\p{L}])(\p{L})/gu,(r,t,e)=>`${t}${O(e)}`))),f("TRIM",1,1,L(n=>n.replace(/ +/gu," ").replace(/^ | $/gu,""))),f("CLEAN",1,1,L(n=>n.replace(/[\u0000-\u001f]/gu,""))),f("T",1,1,n=>typeof n=="string"?n:""),f("EXACT",2,2,(n,r)=>{const t=u(n),e=u(r);return t instanceof i?t:e instanceof i?e:t===e}),f("REPT",2,2,(n,r)=>{const t=u(n),e=T(r,0);return t instanceof i?t:e instanceof i?e:t.length*e>32767?l.VALUE:t.repeat(e)}),f("CHAR",1,1,I(n=>{const r=Math.trunc(n);return r<1||r>255?l.VALUE:K(r)})),f("UNICHAR",1,1,I(n=>{const r=Math.trunc(n);return r<1||r>1114111?l.VALUE:String.fromCodePoint(r)})),f("CODE",1,1,L(n=>n===""?l.VALUE:n.charCodeAt(0))),f("UNICODE",1,1,L(n=>n.codePointAt(0)??l.VALUE));const J="€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ";function K(n){return n>=128&&n<160?J.charAt(n-128):String.fromCharCode(n)}C("CONCAT","(r)",(n,r)=>{let t="",e;return x(n,r,s=>{if(e)return;const o=u(s);o instanceof i?e=o:t+=o}),e??t}),f("CONCATENATE",1,B,(...n)=>{let r="";for(const t of n){const e=u(t);if(e instanceof i)return e;r+=e}return r}),C("TEXTJOIN","rv(r)",(n,r)=>{const[t,e,...s]=n,o=S(t??"",r);if(o instanceof i)return o;const c=[];for(let h=0;h<o.rows;h++)for(let A=0;A<o.cols;A++){const m=u(o.at(h,A));if(m instanceof i)return m;c.push(m)}const E=b(r.calc.scalar(e??!0,r.frame));if(E instanceof i)return E;const a=[];let d;if(x(s,r,h=>{if(d)return;const A=u(h);A instanceof i?d=A:(!E||A!=="")&&a.push(A)}),d)return d;let g=a[0]??"";for(let h=1;h<a.length;h++)g+=`${c.length>0?c[(h-1)%c.length]??"":""}${a[h]??""}`;return g}),f("SUBSTITUTE",3,4,(n,r,t,e)=>{const s=u(n),o=u(r),c=u(t);if(s instanceof i)return s;if(o instanceof i)return o;if(c instanceof i)return c;if(o==="")return s;if(e===void 0)return s.split(o).join(c);const E=p(e);if(E instanceof i)return E;if(E<1)return l.VALUE;let a=-1;for(let d=0;d<Math.trunc(E);d++)if(a=s.indexOf(o,a+1),a<0)return s;return`${s.slice(0,a)}${c}${s.slice(a+o.length)}`}),f("REPLACE",4,4,(n,r,t,e)=>{const s=u(n),o=p(r),c=T(t,0),E=u(e);if(s instanceof i)return s;if(o instanceof i)return o;if(c instanceof i)return c;if(E instanceof i)return E;if(o<1)return l.VALUE;const a=Math.trunc(o)-1;return`${s.slice(0,a)}${E}${s.slice(a+c)}`}),f("FIND",2,3,(n,r,t)=>{const e=u(n),s=u(r),o=t===void 0?1:p(t);if(e instanceof i)return e;if(s instanceof i)return s;if(o instanceof i)return o;if(o<1||o>s.length+1)return l.VALUE;const c=s.indexOf(e,Math.trunc(o)-1);return c<0?l.VALUE:c+1}),f("SEARCH",2,3,(n,r,t)=>{const e=u(n),s=u(r),o=t===void 0?1:p(t);if(e instanceof i)return e;if(s instanceof i)return s;if(o instanceof i)return o;if(o<1||o>s.length+1)return l.VALUE;const c=Math.trunc(o)-1,E=X(`${e}*`);for(let a=c;a<=s.length;a++)if(E(s.slice(a)))return a+1;return l.VALUE}),f("VALUE",1,1,n=>typeof n=="number"?n:n==null?0:typeof n!="string"?l.VALUE:N(n)??l.VALUE),f("NUMBERVALUE",1,3,(n,r,t)=>{const e=u(n),s=u(r??"."),o=u(t??",");if(e instanceof i)return e;if(s instanceof i)return s;if(o instanceof i)return o;const c=e.replace(/\s/gu,"").split(o).join("").replace(s,".");if(c==="")return 0;const E=/%*$/u.exec(c)?.[0].length??0,a=Number(c.slice(0,c.length-E));return Number.isNaN(a)?l.VALUE:a/100**E}),f("TEXT",2,2,(n,r)=>{const t=u(r);if(t instanceof i)return t;if(!D(t))return l.VALUE;if(typeof n=="boolean")return n?"TRUE":"FALSE";const e=typeof n=="string"?N(n)??n:n??0;if(e instanceof i)return e;try{return $(t,e)}catch{return l.VALUE}});function v(n,r,t){const e=t?"#,##0":"0",s=r>0?`.${"0".repeat(r)}`:"";return $(`${e}${s}`,n)}const P=(n,r)=>{const t=10**r;return Math.sign(n)*Math.round(Math.abs(n)*t+1e-9)/t};f("FIXED",1,3,(n,r,t)=>{const e=p(n),s=r==null?2:p(r),o=t===void 0?!1:b(t);if(e instanceof i)return e;if(s instanceof i)return s;if(o instanceof i)return o;const c=Math.trunc(s);return v(P(e,c),Math.max(0,c),!o)}),f("DOLLAR",1,2,(n,r)=>{const t=p(n),e=r==null?2:p(r);if(t instanceof i)return t;if(e instanceof i)return e;const s=Math.trunc(e),o=v(Math.abs(P(t,s)),Math.max(0,s),!0);return t<0?`($${o})`:`$${o}`});function W(n,r,t,e,s){const o=_(n,r,e);return t>0?(s&&o.push({at:n.length,length:0}),o[t-1]):(s&&o.unshift({at:0,length:0}),o[o.length+t])}function w(n){return(r,t)=>{const[e,s,o,c,E,a]=r.map(U=>U instanceof F?void 0:U),d=u(e??null),g=j(s,t),h=V(o,1),A=V(c,0),m=V(E,0);if(d instanceof i)return d;if(g instanceof i)return g;if(h instanceof i)return h;if(A instanceof i)return A;if(m instanceof i)return m;const R=Math.trunc(h);if(R===0||Math.abs(R)>Math.max(d.length,1))return l.VALUE;if(g.length>0&&g.every(U=>U===""))return R>0===(n==="before")?"":d;const M=W(d,g,R,A===1,m===1);return M?n==="before"?d.slice(0,M.at):d.slice(M.at+M.length):a===void 0?l.NA:a}}C("TEXTBEFORE","vr?vvvv",w("before")),C("TEXTAFTER","vr?vvvv",w("after")),f("HYPERLINK",1,2,(n,r)=>r===void 0?n??null:r),f("ENCODEURL",1,1,L(n=>encodeURIComponent(n)));for(const n of["LEN","LEFT","RIGHT","MID","FIND","SEARCH","REPLACE"])H(`${n}B`,n);
2
+ import{format as $,isValidFormat as D}from"numfmt";import{CellError as i,ERR as d}from"../../values.js";import{numberOfText as N,toBool as b,toNumber as p,toText as u}from"../coerce.js";import{Missing as F}from"../types.js";import{alias as H,cellsOf as S,eachRow as O,many as B,number as x,numberArg as V,raw as M,scalar as f}from"./define.js";import{literalOf as X,wildcard as j}from"./criteria.js";import{delimiters as k,eachLetter as G,lowerLetters as _,occurrences as J}from"./delimiters.js";const g=n=>r=>{const t=u(r);return t instanceof i?t:n(t)},T=(n,r)=>{if(n===void 0)return r;const t=p(n);return t instanceof i?t:t<0?d.VALUE:Math.trunc(t)},I=n=>G(n,r=>r.toUpperCase()),y=_;f("LEFT",1,2,(n,r)=>{const t=u(n),e=T(r,1);return t instanceof i?t:e instanceof i?e:t.slice(0,e)}),f("RIGHT",1,2,(n,r)=>{const t=u(n),e=T(r,1);return t instanceof i?t:e instanceof i?e:e===0?"":t.slice(-e)}),f("MID",3,3,(n,r,t)=>{const e=u(n),s=p(r),o=T(t,0);if(e instanceof i)return e;if(s instanceof i)return s;if(o instanceof i)return o;if(s<1)return d.VALUE;const c=Math.trunc(s)-1;return e.slice(c,c+o)}),f("LEN",1,1,g(n=>n.length)),f("LOWER",1,1,g(y)),f("UPPER",1,1,g(I)),f("PROPER",1,1,g(n=>y(n).replace(/(^|[^\p{L}])(\p{L})/gu,(r,t,e)=>`${t}${I(e)}`))),f("TRIM",1,1,g(n=>n.replace(/ +/gu," ").replace(/^ | $/gu,""))),f("CLEAN",1,1,g(n=>n.replace(/[\u0000-\u001f]/gu,""))),f("T",1,1,n=>typeof n=="string"?n:""),f("EXACT",2,2,(n,r)=>{const t=u(n),e=u(r);return t instanceof i?t:e instanceof i?e:t===e}),f("REPT",2,2,(n,r)=>{const t=u(n),e=T(r,0);return t instanceof i?t:e instanceof i?e:t.length*e>32767?d.VALUE:t.repeat(e)}),f("CHAR",1,1,x(n=>{const r=Math.trunc(n);return r<1||r>255?d.VALUE:W(r)})),f("UNICHAR",1,1,x(n=>{const r=Math.trunc(n);return r<1||r>1114111?d.VALUE:String.fromCodePoint(r)})),f("CODE",1,1,g(n=>n===""?d.VALUE:n.charCodeAt(0))),f("UNICODE",1,1,g(n=>n.codePointAt(0)??d.VALUE));const K="€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ";function W(n){return n>=128&&n<160?K.charAt(n-128):String.fromCharCode(n)}M("CONCAT","(r)",(n,r)=>{let t="",e;return O(n,r,s=>{if(e)return;const o=u(s);o instanceof i?e=o:t+=o}),e??t}),f("CONCATENATE",1,B,(...n)=>{let r="";for(const t of n){const e=u(t);if(e instanceof i)return e;r+=e}return r}),M("TEXTJOIN","rv(r)",(n,r)=>{const[t,e,...s]=n,o=S(t??"",r);if(o instanceof i)return o;const c=[];for(let h=0;h<o.rows;h++)for(let A=0;A<o.cols;A++){const m=u(o.at(h,A));if(m instanceof i)return m;c.push(m)}const l=b(r.calc.scalar(e??!0,r.frame));if(l instanceof i)return l;const E=[];let a;if(O(s,r,h=>{if(a)return;const A=u(h);A instanceof i?a=A:(!l||A!=="")&&E.push(A)}),a)return a;let L=E[0]??"";for(let h=1;h<E.length;h++)L+=`${c.length>0?c[(h-1)%c.length]??"":""}${E[h]??""}`;return L}),f("SUBSTITUTE",3,4,(n,r,t,e)=>{const s=u(n),o=u(r),c=u(t);if(s instanceof i)return s;if(o instanceof i)return o;if(c instanceof i)return c;if(o==="")return s;if(e===void 0)return s.split(o).join(c);const l=p(e);if(l instanceof i)return l;if(l<1)return d.VALUE;let E=-1;for(let a=0;a<Math.trunc(l);a++)if(E=s.indexOf(o,E+1),E<0)return s;return`${s.slice(0,E)}${c}${s.slice(E+o.length)}`}),f("REPLACE",4,4,(n,r,t,e)=>{const s=u(n),o=p(r),c=T(t,0),l=u(e);if(s instanceof i)return s;if(o instanceof i)return o;if(c instanceof i)return c;if(l instanceof i)return l;if(o<1)return d.VALUE;const E=Math.trunc(o)-1;return`${s.slice(0,E)}${l}${s.slice(E+c)}`}),f("FIND",2,3,(n,r,t)=>{const e=u(n),s=u(r),o=t===void 0?1:p(t);if(e instanceof i)return e;if(s instanceof i)return s;if(o instanceof i)return o;if(o<1||o>s.length+1)return d.VALUE;const c=s.indexOf(e,Math.trunc(o)-1);return c<0?d.VALUE:c+1}),f("SEARCH",2,3,(n,r,t)=>{const e=u(n),s=u(r),o=t===void 0?1:p(t);if(e instanceof i)return e;if(s instanceof i)return s;if(o instanceof i)return o;if(o<1||o>s.length+1)return d.VALUE;const c=Math.trunc(o)-1,l=X(e);if(l!==void 0){const a=s.toLowerCase(),L=l.toLowerCase();if(a.length===s.length&&L.length===l.length){const h=a.indexOf(L,c);return h<0?d.VALUE:h+1}}const E=j(`${e}*`);for(let a=c;a<=s.length;a++)if(E(s.slice(a)))return a+1;return d.VALUE}),f("VALUE",1,1,n=>typeof n=="number"?n:n==null?0:typeof n!="string"?d.VALUE:N(n)??d.VALUE),f("NUMBERVALUE",1,3,(n,r,t)=>{const e=u(n),s=u(r??"."),o=u(t??",");if(e instanceof i)return e;if(s instanceof i)return s;if(o instanceof i)return o;const c=e.replace(/\s/gu,"").split(o).join("").replace(s,".");if(c==="")return 0;const l=/%*$/u.exec(c)?.[0].length??0,E=Number(c.slice(0,c.length-l));return Number.isNaN(E)?d.VALUE:E/100**l}),f("TEXT",2,2,(n,r)=>{const t=u(r);if(t instanceof i)return t;if(!D(t))return d.VALUE;if(typeof n=="boolean")return n?"TRUE":"FALSE";const e=typeof n=="string"?N(n)??n:n??0;if(e instanceof i)return e;try{return $(t,e)}catch{return d.VALUE}});function w(n,r,t){const e=t?"#,##0":"0",s=r>0?`.${"0".repeat(r)}`:"";return $(`${e}${s}`,n)}const v=(n,r)=>{const t=10**r;return Math.sign(n)*Math.round(Math.abs(n)*t+1e-9)/t};f("FIXED",1,3,(n,r,t)=>{const e=p(n),s=r==null?2:p(r),o=t===void 0?!1:b(t);if(e instanceof i)return e;if(s instanceof i)return s;if(o instanceof i)return o;const c=Math.trunc(s);return w(v(e,c),Math.max(0,c),!o)}),f("DOLLAR",1,2,(n,r)=>{const t=p(n),e=r==null?2:p(r);if(t instanceof i)return t;if(e instanceof i)return e;const s=Math.trunc(e),o=w(Math.abs(v(t,s)),Math.max(0,s),!0);return t<0?`($${o})`:`$${o}`});function Y(n,r,t,e,s){const o=J(n,r,e);return t>0?(s&&o.push({at:n.length,length:0}),o[t-1]):(s&&o.unshift({at:0,length:0}),o[o.length+t])}function P(n){return(r,t)=>{const[e,s,o,c,l,E]=r.map(U=>U instanceof F?void 0:U),a=u(e??null),L=k(s,t),h=V(o,1),A=V(c,0),m=V(l,0);if(a instanceof i)return a;if(L instanceof i)return L;if(h instanceof i)return h;if(A instanceof i)return A;if(m instanceof i)return m;const C=Math.trunc(h);if(C===0||Math.abs(C)>Math.max(a.length,1))return d.VALUE;if(L.length>0&&L.every(U=>U===""))return C>0===(n==="before")?"":a;const R=Y(a,L,C,A===1,m===1);return R?n==="before"?a.slice(0,R.at):a.slice(R.at+R.length):E===void 0?d.NA:E}}M("TEXTBEFORE","vr?vvvv",P("before")),M("TEXTAFTER","vr?vvvv",P("after")),f("HYPERLINK",1,2,(n,r)=>r===void 0?n??null:r),f("ENCODEURL",1,1,g(n=>encodeURIComponent(n)));for(const n of["LEN","LEFT","RIGHT","MID","FIND","SEARCH","REPLACE"])H(`${n}B`,n);
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{overlaps as i}from"../address.js";const h=t=>({top:t.top,left:t.left,bottom:t.bottom,right:t.right});export class RangeCache{kept=new Map;of(e,o,a){const s=this.kept.get(e);if(s)return s.value;const r=a();return this.kept.set(e,{over:o.map(p=>({sheet:p.sheet,area:h(p)})),value:r}),r}get(e){return this.kept.get(e)?.value}set(e,o,a){this.kept.set(e,{over:o.map(s=>({sheet:s.sheet,area:h(s)})),value:a})}changed(e,o){if(this.kept.size!==0)for(const[a,s]of this.kept)s.over.some(r=>r.sheet===e&&i(r.area,o))&&this.kept.delete(a)}clear(){this.kept.clear()}}export const indexKeyOf=(t,e)=>`${t}:${e.key}`;
2
+ import{overlaps as n}from"../address.js";const h=s=>({top:s.top,left:s.left,bottom:s.bottom,right:s.right});export class RangeCache{kept=new Map;of(e,a,o){const t=this.kept.get(e);if(t)return t.value;const r=o();return this.kept.set(e,{over:a.map(i=>({sheet:i.sheet,area:h(i)})),value:r}),r}asked=new Set;ofRepeated(e,a,o){const t=this.kept.get(e);if(t)return t.value;if(!this.asked.has(e)){this.asked.add(e);return}return this.asked.delete(e),this.of(e,a,o)}get(e){return this.kept.get(e)?.value}set(e,a,o){this.kept.set(e,{over:a.map(t=>({sheet:t.sheet,area:h(t)})),value:o})}changed(e,a){if(this.kept.size!==0)for(const[o,t]of this.kept)t.over.some(r=>r.sheet===e&&n(r.area,a))&&this.kept.delete(o)}clear(){this.kept.clear(),this.asked.clear()}}export const indexKeyOf=(s,e)=>`${s}:${e.key}`;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export class Reference{sheet;top;left;bottom;right;constructor(t,i,r,e,o){this.sheet=t,this.top=i,this.left=r,this.bottom=e,this.right=o}get rows(){return this.bottom-this.top+1}get cols(){return this.right-this.left+1}get single(){return this.top===this.bottom&&this.left===this.right}get key(){return`${String(this.sheet.index)}!${String(this.top)},${String(this.left)}:${String(this.bottom)},${String(this.right)}`}}export class Union{parts;constructor(t){this.parts=t}}export class Lambda{params;body;frame;named;constructor(t,i,r,e){this.params=t,this.body=i,this.frame=r,this.named=e}}export class Missing{missing=!0}export const MISSING=new Missing;
2
+ export class Reference{sheet;top;left;bottom;right;constructor(t,i,r,e,o){this.sheet=t,this.top=i,this.left=r,this.bottom=e,this.right=o}get rows(){return this.bottom-this.top+1}get cols(){return this.right-this.left+1}get single(){return this.top===this.bottom&&this.left===this.right}get key(){return`${String(this.sheet.index)}!${String(this.top)},${String(this.left)}:${String(this.bottom)},${String(this.right)}`}}export class Union{parts;constructor(t){this.parts=t}}export class Lambda{params;body;frame;named;constructor(t,i,r,e){this.params=t,this.body=i,this.frame=r,this.named=e}}export class Missing{missing=!0}export const MISSING=new Missing;export function pushAll(s,t){for(const i of t)s.push(i)}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{chartSvg as E,isRound as M,isScatter as C}from"@allyhub/chart";import{cellName as L,columnLetter as F,contains as H,rangeName as P,readAddress as U,readArea as I}from"./address.js";import{Reference as N,Union as V}from"./calc/types.js";import{shownValue as W}from"./format.js";import{sheetPrefix as k}from"./formula/print.js";import{CellError as q,Matrix as T}from"./values.js";export const SHEET_CHART_DEFAULTS={width:480,height:288,size:9,titleSize:14,ink:"#595959",pixelsToPoints:.75};function z(e,n,o){const{node:t}=o;if(!t)return[];const i=e.eval(t,{sheet:n,row:0,col:0,dr:0,dc:0}),f=l=>{const a=l.sheet,b=e.filtered(a),m=[],h=Math.min(l.bottom,a.lastRow),p=Math.min(l.right,a.columnsUsed-1);for(let u=l.top;u<=h;u++)if(!(b.has(u)||a.spec.rows?.[String(u+1)]?.hidden===!0))for(let d=l.left;d<=p;d++)a.spec.columns?.[F(d)]?.hidden!==!0&&m.push({value:e.value(a,u,d),sheet:a,row:u,col:d});return m};if(i instanceof N)return f(i);if(i instanceof V)return i.parts.flatMap(f);if(i instanceof T)return i.data.map(l=>({value:l}));const r=e.flat(i);return r instanceof T?r.data.map(l=>({value:l})):[{value:r}]}const O=e=>{if(e.value===null)return"";const n=e.sheet&&e.row!==void 0&&e.col!==void 0?e.sheet.lookAt(e.row,e.col).format:void 0;return W(e.value,n)};function j(e){return typeof e=="number"?Number.isFinite(e)?e:null:e===null||e instanceof q?null:typeof e=="boolean"&&e?1:0}const D=e=>e&&{...e.min===void 0?{}:{minimum_scale:e.min},...e.max===void 0?{}:{maximum_scale:e.max},...e.major===void 0?{}:{major_unit:e.major},...e.gridlines===void 0?{}:{has_major_gridlines:e.gridlines},...e.visible===void 0?{}:{visible:e.visible},...e.format===void 0?{}:{number_format:e.format},...e.reverse===void 0?{}:{reverse_order:e.reverse},...e.title===void 0||e.title===""?{}:{title:e.title}},R=e=>e===void 0?void 0:{rgb:e};function B(e){if(e===void 0||e===!1)return;if(e===!0)return{show_value:!0};const n=typeof e.color=="string"?R(e.color):void 0;return{...e.value===void 0?{}:{show_value:e.value},...e.percentage===void 0?{}:{show_percentage:e.percentage},...e.category===void 0?{}:{show_category_name:e.category},...e.series===void 0?{}:{show_series_name:e.series},...e.format===void 0?{}:{number_format:e.format},...e.position===void 0?{}:{position:e.position},...e.size===void 0?{}:{size:e.size},...n?{color:n}:{}}}const G=e=>{const n=e.find(o=>o.sheet);return n?.sheet&&n.row!==void 0&&n.col!==void 0?n.sheet.lookAt(n.row,n.col).format:void 0};export function chartDef(e,n,o){const{spec:t}=o,i=C(t.type),f=o.categories?z(e,n,o.categories):void 0,r=o.series.map((d,g)=>{const c=t.series[g],w=z(e,n,d.values),x=d.name?z(e,n,d.name)[0]:void 0,A=d.x?z(e,n,d.x):i?f:void 0,v=c.format??G(w),y=R(c.color);return{name:(x?O(x):c.name)??`Series${String(g+1)}`,values:w.map(s=>j(s.value)),...A?{x:A.map(s=>j(s.value))}:{},...v===void 0?{}:{number_format:v},...y?{color:y}:{},...c.smooth===void 0?{}:{smooth:c.smooth},...c.line_width===void 0?{}:{line_width:c.line_width},...c.marker_size===void 0?{}:{marker_size:c.marker_size}}}),l=Math.max(0,...r.map(d=>d.values.length)),a=f?f.map(O):Array.from({length:l},(d,g)=>String(g+1)),b=o.title?z(e,n,o.title)[0]:void 0,m=b?O(b):t.title,h=B(t.labels),p=D(t.value_axis),u=D(t.category_axis);return{type:t.type,categories:a,series:r,...m===void 0||m===""?{}:{title:m},...t.legend===void 0?{}:{legend:t.legend},...h?{labels:h}:{},...t.gap_width===void 0?{}:{gap_width:t.gap_width},...t.overlap===void 0?{}:{overlap:t.overlap},...t.vary_by_categories===void 0?{}:{vary_by_categories:t.vary_by_categories},...t.hole_size===void 0?{}:{hole_size:t.hole_size},...p?{value_axis:p}:{},...u?{category_axis:u}:{},font_size:t.size??SHEET_CHART_DEFAULTS.size,title_size:t.title_size??SHEET_CHART_DEFAULTS.titleSize,font_color:R(t.color)??{rgb:SHEET_CHART_DEFAULTS.ink}}}export const chartSize=e=>({width:e.width??SHEET_CHART_DEFAULTS.width,height:e.height??SHEET_CHART_DEFAULTS.height}),chartSvg=(e,n,o,t={})=>E(e,n,o,{pointsPerPixel:SHEET_CHART_DEFAULTS.pixelsToPoints,...t});export function chartAfter(e,n){const o=i=>i?.startsWith("=")===!0?n(i):i,t=o(e.title);return{...e,...t===void 0?{}:{title:t},...e.categories===void 0?{}:{categories:n(e.categories)},series:e.series.map(i=>{const f=o(i.name);return{...i,values:n(i.values),...i.x===void 0?{}:{x:n(i.x)},...f===void 0?{}:{name:f}}})}}function J(e,n,o,t){if(t){const i=t.data;if(o.top===i.top&&o.bottom===i.bottom&&o.left===o.right){const f=t.columns[o.left-t.at.col];if(f)return`${t.name}[${f.name}]`}}return`${n===e?"":k(n.name)}${P(o)}`}const K=(e,n,o,t)=>typeof e.value(n,o,t)=="number",Q=(e,n,o,t)=>{const i=e.value(n,o,t);if(typeof i=="string")return!0;const f=n.lookAt(o,t).format;return typeof i=="number"&&f!==void 0&&/[ymd]/iu.test(f)};export function chartOfRange(e,n,o,t,i){const f=t.bottom-t.top+1,r=t.right-t.left+1,l=n.tables.find(s=>H(s.area,t.top,t.left)),a=s=>J(o,n,s,l),b=C(i),m=f>1&&Array.from({length:r},(s,_)=>t.left+_).some(s=>!K(e,n,t.top,s)),h=r>1&&(b||Array.from({length:f-(m?1:0)},(s,_)=>_).every(s=>Q(e,n,t.top+(m?1:0)+s,t.left)||e.value(n,t.top+(m?1:0)+s,t.left)===null)),p=t.top+(m?1:0),u=t.left+(h?1:0);if(p>t.bottom||u>t.right)return;const d=!b&&!M(i)&&t.right-u>t.bottom-p,g=[],c=(s,_)=>e.value(n,s,_)===null?void 0:`=${n===o?"":k(n.name)}${L({row:s,col:_})}`,w=d?{first:p,last:t.bottom}:{first:u,last:t.right};for(let s=w.first;s<=w.last;s++){const _=d?{top:s,left:u,bottom:s,right:t.right}:{top:p,left:s,bottom:t.bottom,right:s},$=d?h?c(s,t.left):void 0:m?c(t.top,s):void 0;g.push({values:a(_),...$===void 0?{}:{name:$}})}const x=d?m?{top:t.top,left:u,bottom:t.top,right:t.right}:void 0:h?{top:p,left:t.left,bottom:t.bottom,right:t.left}:void 0,A=g.length>1&&!M(i),v=M(i)?g.slice(0,1):g,y=v.length===1?v[0]?.name:void 0;return{type:i,...x?{categories:a(x)}:{},series:v,...A||M(i)?{legend:"bottom"}:{},...y===void 0?{}:{title:y}}}function S(e,n,o){if(!o?.node)return;const t=e.eval(o.node,{sheet:n,row:0,col:0,dr:0,dc:0});return t instanceof N?{sheet:t.sheet,area:{top:t.top,left:t.left,bottom:Math.min(t.bottom,Math.max(t.top,t.sheet.lastRow)),right:t.right}}:void 0}export function chartDataRange(e,n,o){const t=[S(e,n,o.categories),...o.series.flatMap(r=>[S(e,n,r.values),S(e,n,r.name),S(e,n,r.x)])].filter(r=>r!==void 0),i=t[0];if(!i||t.some(r=>r.sheet!==i.sheet))return;const f={top:Math.min(...t.map(r=>r.area.top)),left:Math.min(...t.map(r=>r.area.left)),bottom:Math.max(...t.map(r=>r.area.bottom)),right:Math.max(...t.map(r=>r.area.right))};return`${i.sheet===n?"":k(i.sheet.name)}${P(f)}`}export function readDataRange(e,n,o){const t=o.lastIndexOf("!"),i=t<0?void 0:o.slice(0,t).replace(/^'|'$/gu,""),f=i===void 0?n:e.wb.sheet(i.replaceAll("''","'")),r=I(o.slice(t+1).replaceAll("$",""));return f&&r?{sheet:f,area:r}:void 0}export function chartPlace(e,n,o){const t=U(e.at)??{row:0,col:0};return{left:o(t.col)+(e.x??0),top:n(t.row)+(e.y??0),...chartSize(e)}}
2
+ import{chartSvg as L,isRound as M,isScatter as P}from"@allyhub/chart";import{cellName as F,columnLetter as H,contains as U,rangeName as T,readAddress as I,readArea as V}from"./address.js";import{Reference as j,Union as W}from"./calc/types.js";import{shownValue as q}from"./format.js";import{sheetPrefix as k}from"./formula/print.js";import{CellError as B,Matrix as D}from"./values.js";export const SHEET_CHART_DEFAULTS={width:480,height:288,size:9,titleSize:14,ink:"#595959",pixelsToPoints:.75};function y(e,n,o){const{node:t}=o;if(!t)return[];const i=e.eval(t,{sheet:n,row:0,col:0,dr:0,dc:0}),d=l=>{const p=l.sheet,b=e.filtered(p),a=[],_=Math.min(l.bottom,p.lastRow),h=Math.min(l.right,p.columnsUsed-1);for(let f=l.top;f<=_;f++)if(!(b.has(f)||p.spec.rows?.[String(f+1)]?.hidden===!0))for(let c=l.left;c<=h;c++)p.spec.columns?.[H(c)]?.hidden!==!0&&a.push({value:e.value(p,f,c),sheet:p,row:f,col:c});return a};if(i instanceof j)return d(i);if(i instanceof W)return i.parts.flatMap(d);if(i instanceof D)return i.data.map(l=>({value:l}));const r=e.flat(i);return r instanceof D?r.data.map(l=>({value:l})):[{value:r}]}const O=e=>{if(e.value===null)return"";const n=e.sheet&&e.row!==void 0&&e.col!==void 0?e.sheet.lookAt(e.row,e.col).format:void 0;return q(e.value,n)};function R(e){return typeof e=="number"?Number.isFinite(e)?e:null:e===null||e instanceof B?null:typeof e=="boolean"&&e?1:0}const C=e=>e&&{...e.min===void 0?{}:{minimum_scale:e.min},...e.max===void 0?{}:{maximum_scale:e.max},...e.major===void 0?{}:{major_unit:e.major},...e.gridlines===void 0?{}:{has_major_gridlines:e.gridlines},...e.visible===void 0?{}:{visible:e.visible},...e.format===void 0?{}:{number_format:e.format},...e.reverse===void 0?{}:{reverse_order:e.reverse},...e.title===void 0||e.title===""?{}:{title:e.title}},N=e=>e===void 0?void 0:{rgb:e};function G(e){if(e===void 0||e===!1)return;if(e===!0)return{show_value:!0};const n=typeof e.color=="string"?N(e.color):void 0;return{...e.value===void 0?{}:{show_value:e.value},...e.percentage===void 0?{}:{show_percentage:e.percentage},...e.category===void 0?{}:{show_category_name:e.category},...e.series===void 0?{}:{show_series_name:e.series},...e.format===void 0?{}:{number_format:e.format},...e.position===void 0?{}:{position:e.position},...e.size===void 0?{}:{size:e.size},...n?{color:n}:{}}}const E=e=>{const n=e.find(o=>o.sheet);return n?.sheet&&n.row!==void 0&&n.col!==void 0?n.sheet.lookAt(n.row,n.col).format:void 0};export function categoryNumbers(e,n,o){if(!o.categories)return;const t=y(e,n,o.categories);return{values:t.map(i=>R(i.value)),format:E(t)}}export function chartDef(e,n,o){const{spec:t}=o,i=P(t.type),d=o.categories?y(e,n,o.categories):void 0,r=o.series.map((m,v)=>{const u=t.series[v],w=y(e,n,m.values),A=m.name?y(e,n,m.name)[0]:void 0,x=m.x?y(e,n,m.x):i?d:void 0,z=u.format??E(w),s=N(u.color);return{name:(A?O(A):u.name)??`Series${String(v+1)}`,values:w.map(g=>R(g.value)),...x?{x:x.map(g=>R(g.value))}:{},...z===void 0?{}:{number_format:z},...s?{color:s}:{},...u.smooth===void 0?{}:{smooth:u.smooth},...u.line_width===void 0?{}:{line_width:u.line_width},...u.marker_size===void 0?{}:{marker_size:u.marker_size},...u.type===void 0?{}:{type:u.type},...u.secondary===!0?{secondary:!0}:{}}}),l=Math.max(0,...r.map(m=>m.values.length)),p=d?d.map(O):Array.from({length:l},(m,v)=>String(v+1)),b=o.title?y(e,n,o.title)[0]:void 0,a=b?O(b):t.title,_=G(t.labels),h=C(t.value_axis),f=C(t.category_axis),c=C(t.secondary_axis);return{type:t.type,categories:p,series:r,...a===void 0||a===""?{}:{title:a},...t.legend===void 0?{}:{legend:t.legend},..._?{labels:_}:{},...t.gap_width===void 0?{}:{gap_width:t.gap_width},...t.overlap===void 0?{}:{overlap:t.overlap},...t.vary_by_categories===void 0?{}:{vary_by_categories:t.vary_by_categories},...t.hole_size===void 0?{}:{hole_size:t.hole_size},...h?{value_axis:h}:{},...f?{category_axis:f}:{},...c?{secondary_axis:c}:{},font_size:t.size??SHEET_CHART_DEFAULTS.size,title_size:t.title_size??SHEET_CHART_DEFAULTS.titleSize,font_color:N(t.color)??{rgb:SHEET_CHART_DEFAULTS.ink}}}export const chartSize=e=>({width:e.width??SHEET_CHART_DEFAULTS.width,height:e.height??SHEET_CHART_DEFAULTS.height}),chartSvg=(e,n,o,t={})=>L(e,n,o,{pointsPerPixel:SHEET_CHART_DEFAULTS.pixelsToPoints,...t});export function chartAfter(e,n){const o=i=>i?.startsWith("=")===!0?n(i):i,t=o(e.title);return{...e,...t===void 0?{}:{title:t},...e.categories===void 0?{}:{categories:n(e.categories)},series:e.series.map(i=>{const d=o(i.name);return{...i,values:n(i.values),...i.x===void 0?{}:{x:n(i.x)},...d===void 0?{}:{name:d}}})}}function J(e,n,o,t){if(t){const i=t.data;if(o.top===i.top&&o.bottom===i.bottom&&o.left===o.right){const d=t.columns[o.left-t.at.col];if(d)return`${t.name}[${d.name}]`}}return`${n===e?"":k(n.name)}${T(o)}`}const K=(e,n,o,t)=>typeof e.value(n,o,t)=="number",Q=(e,n,o,t)=>{const i=e.value(n,o,t);if(typeof i=="string")return!0;const d=n.lookAt(o,t).format;return typeof i=="number"&&d!==void 0&&/[ymd]/iu.test(d)};export function chartOfRange(e,n,o,t,i){const d=t.bottom-t.top+1,r=t.right-t.left+1,l=n.tables.find(s=>U(s.area,t.top,t.left)),p=s=>J(o,n,s,l),b=P(i),a=d>1&&Array.from({length:r},(s,g)=>t.left+g).some(s=>!K(e,n,t.top,s)),_=r>1&&(b||Array.from({length:d-(a?1:0)},(s,g)=>g).every(s=>Q(e,n,t.top+(a?1:0)+s,t.left)||e.value(n,t.top+(a?1:0)+s,t.left)===null)),h=t.top+(a?1:0),f=t.left+(_?1:0);if(h>t.bottom||f>t.right)return;const c=!b&&!M(i)&&t.right-f>t.bottom-h,m=[],v=(s,g)=>e.value(n,s,g)===null?void 0:`=${n===o?"":k(n.name)}${F({row:s,col:g})}`,u=c?{first:h,last:t.bottom}:{first:f,last:t.right};for(let s=u.first;s<=u.last;s++){const g=c?{top:s,left:f,bottom:s,right:t.right}:{top:h,left:s,bottom:t.bottom,right:s},$=c?_?v(s,t.left):void 0:a?v(t.top,s):void 0;m.push({values:p(g),...$===void 0?{}:{name:$}})}const w=c?a?{top:t.top,left:f,bottom:t.top,right:t.right}:void 0:_?{top:h,left:t.left,bottom:t.bottom,right:t.left}:void 0,A=m.length>1&&!M(i),x=M(i)?m.slice(0,1):m,z=x.length===1?x[0]?.name:void 0;return{type:i,...w?{categories:p(w)}:{},series:x,...A||M(i)?{legend:"bottom"}:{},...z===void 0?{}:{title:z}}}function S(e,n,o){if(!o?.node)return;const t=e.eval(o.node,{sheet:n,row:0,col:0,dr:0,dc:0});return t instanceof j?{sheet:t.sheet,area:{top:t.top,left:t.left,bottom:Math.min(t.bottom,Math.max(t.top,t.sheet.lastRow)),right:t.right}}:void 0}export function chartDataRange(e,n,o){const t=[S(e,n,o.categories),...o.series.flatMap(r=>[S(e,n,r.values),S(e,n,r.name),S(e,n,r.x)])].filter(r=>r!==void 0),i=t[0];if(!i||t.some(r=>r.sheet!==i.sheet))return;const d={top:Math.min(...t.map(r=>r.area.top)),left:Math.min(...t.map(r=>r.area.left)),bottom:Math.max(...t.map(r=>r.area.bottom)),right:Math.max(...t.map(r=>r.area.right))};return`${i.sheet===n?"":k(i.sheet.name)}${T(d)}`}export function readDataRange(e,n,o){const t=o.lastIndexOf("!"),i=t<0?void 0:o.slice(0,t).replace(/^'|'$/gu,""),d=i===void 0?n:e.wb.sheet(i.replaceAll("''","'")),r=V(o.slice(t+1).replaceAll("$",""));return d&&r?{sheet:d,area:r}:void 0}export function chartPlace(e,n,o){const t=I(e.at)??{row:0,col:0};return{left:o(t.col)+(e.x??0),top:n(t.row)+(e.y??0),...chartSize(e)}}
@@ -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{MAX_COLUMNS as n,MAX_ROWS as l}from"../address.js";import{mapNode as a}from"./walk.js";function u(o,t,e){if(o.abs||t===0)return o;const r=o.index+t;return r<0||r>=e?void 0:{...o,index:r}}function m(o,t,e){const r=o.col&&u(o.col,e,n),i=o.col2&&u(o.col2,e,n),c=o.row&&u(o.row,t,l),f=o.row2&&u(o.row2,t,l),d=(s,w)=>s!==void 0&&w===void 0;return d(o.col,r)||d(o.col2,i)||d(o.row,c)||d(o.row2,f)?{kind:"error",code:"#REF!",...o.sheet===void 0?{}:{sheet:o.sheet}}:r===o.col&&i===o.col2&&c===o.row&&f===o.row2?o:{...o,...r?{col:r}:{},...i?{col2:i}:{},...c?{row:c}:{},...f?{row2:f}:{}}}export function moveFormula(o,t,e){return t===0&&e===0?o:a(o,r=>r.kind==="ref"?m(r,t,e):r)}export function relativeKey(o,t,e){return JSON.stringify(o,(r,i)=>{const c=i;return(r==="col"||r==="col2"||r==="row"||r==="row2")&&c?.abs===!1?[c.index-(r.startsWith("col")?e:t)]:i})}
2
+ import{MAX_COLUMNS as f,MAX_ROWS as p}from"../address.js";import{mapNode as d}from"./walk.js";function h(t,u,c){if(t.abs||u===0)return t;const r=t.index+u;return r<0||r>=c?void 0:{...t,index:r}}function l(t,u,c){const r=t.col&&h(t.col,c,f),s=t.col2&&h(t.col2,c,f),i=t.row&&h(t.row,u,p),a=t.row2&&h(t.row2,u,p),o=(e,n)=>e!==void 0&&n===void 0;return o(t.col,r)||o(t.col2,s)||o(t.row,i)||o(t.row2,a)?{kind:"error",code:"#REF!",...t.sheet===void 0?{}:{sheet:t.sheet}}:r===t.col&&s===t.col2&&i===t.row&&a===t.row2?t:{...t,...r?{col:r}:{},...s?{col2:s}:{},...i?{row:i}:{},...a?{row2:a}:{}}}export function moveFormula(t,u,c){return u===0&&c===0?t:d(t,r=>r.kind==="ref"?l(r,u,c):r)}export function relativeKey(t,u,c){const r=[],s=e=>e===void 0?"~":JSON.stringify(e),i=(e,n)=>e===void 0?"~":e.abs?`$${String(e.index)}`:`^${String(e.index-n)}`,a=e=>{r.push("(");for(const n of e)o(n);r.push(")")},o=e=>{switch(e.kind){case"number":r.push("n",String(e.value),s(e.raw));return;case"string":r.push("s",s(e.value));return;case"boolean":r.push(e.value?"T":"F");return;case"error":r.push("e",e.code,s(e.sheet));return;case"missing":r.push("m");return;case"ref":r.push(e.range?"R":"r",s(e.sheet),s(e.lastSheet),i(e.col,c),i(e.row,u),i(e.col2,c),i(e.row2,u));return;case"structured":r.push("t",s(e.table),JSON.stringify(e.sections),JSON.stringify(e.columns),e.thisRow?"@":"-");return;case"name":r.push("a",s(e.name),s(e.sheet));return;case"unary":case"postfix":r.push(e.kind==="unary"?"u":"p",e.op),o(e.arg);return;case"paren":r.push("{"),o(e.arg),r.push("}");return;case"binary":r.push("b",JSON.stringify(e.op)),o(e.left),o(e.right);return;case"call":r.push("c",s(e.name),s(e.written)),a(e.args);return;case"invoke":r.push("i"),o(e.callee),a(e.args);return;case"array":r.push("[");for(const n of e.rows)a(n);r.push("]");return}};return o(t),r.join(" ")}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{MAX_COLUMNS as y,MAX_ROWS as l,columnIndex as d}from"../address.js";import{errorOf as v}from"../values.js";import{TABLE_SECTIONS as N}from"./ast.js";class m extends Error{at;constructor(t,s){super(t),this.at=s}}const R=new Set(["=","<>","<","<=",">",">="]),b={"=":1,"<>":1,"<":1,"<=":1,">":1,">=":1,"&":2,"+":3,"-":3,"*":4,"/":4,"^":5},g=i=>i>="0"&&i<="9",p=i=>/[\p{L}_\\]/u.test(i)||i>="\uD800"&&i<="\uDFFF",w=i=>/[\p{L}\p{N}\p{M}_.?\\]/u.test(i)||i>="\uD800"&&i<="\uDFFF",f=(i,t)=>({index:i,abs:t});class C{at=0;s;constructor(t){this.s=t}blanks(){const t=this.at;for(;/\s/u.test(this.s.charAt(this.at));)this.at+=1;return this.at>t}peek(t){return this.s.startsWith(t,this.at)}eat(t){return this.peek(t)?(this.at+=t.length,!0):!1}stop(t,s=this.at){throw new m(t,s)}parse(){this.eat("="),this.blanks(),this.at>=this.s.length&&this.stop("a formula with nothing in it");const t=this.expression(0);return this.blanks(),this.at<this.s.length&&this.stop(`"${this.s.charAt(this.at)}" where an operator should be`),t}operator(){this.blanks();const t=this.s.slice(this.at,this.at+2);if(R.has(t))return t;const s=this.s.charAt(this.at);return b[s]===void 0?void 0:s}expression(t){let s=this.prefix();for(;;){const e=this.operator();if(e===void 0)return s;const n=b[e]??0;if(n<=t)return s;this.at+=e.length,this.blanks();const r=this.expression(n);s={kind:"binary",op:e,left:s,right:r}}}prefix(){this.blanks();for(const t of["-","+","@"])if(this.eat(t))return{kind:"unary",op:t,arg:this.prefix()};return this.postfix()}postfix(){let t=this.references();for(;;){const s=this.at;if(this.blanks(),this.eat("%")){t={kind:"postfix",op:"%",arg:t};continue}if(this.at=s,this.peek("#")&&!A(this.s,this.at)){this.at+=1,t={kind:"postfix",op:"#",arg:t};continue}if(this.peek("(")&&(t.kind==="call"||t.kind==="paren")){const{args:e}=this.call("");t={kind:"invoke",callee:t,args:e};continue}return t}}references(){let t=this.primary();for(;;){if(this.peek(":")){this.at+=1,this.blanks();const e=this.primary();t={kind:"binary",op:":",left:t,right:e};continue}const s=this.at;if(E(t)&&this.blanks()&&this.startsReference()){const e=this.primary();t={kind:"binary",op:" ",left:t,right:e};continue}return this.at=s,t}}startsReference(){const t=this.s.charAt(this.at);return t==="$"||t==="'"||t==="("||t==="["||p(t)}primary(){this.blanks();const t=this.s.charAt(this.at);if(t===""&&this.stop("the formula ends where a value should be"),t==="(")return this.parenthesis();if(t==="{")return this.arrayConstant();if(t==='"')return{kind:"string",value:this.text()};if(g(t)||t==="."){const s=k(this.s,this.at);return s?(this.at=s.end,{kind:"ref",...s.ref}):this.number()}return t==="#"?this.errorLiteral(void 0):t==="["?this.bracket(void 0):t==="$"||t==="'"||p(t)?this.word():this.stop(`"${t}" where a value should be`)}parenthesis(){const t=this.at;this.at+=1;let s=this.expression(0);for(this.blanks();this.eat(",");){const e=this.expression(0);s={kind:"binary",op:",",left:s,right:e},this.blanks()}return this.eat(")")||this.stop("a ( that is never closed",t),{kind:"paren",arg:s}}number(){const t=/^(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/u.exec(this.s.slice(this.at));return t?(this.at+=t[0].length,{kind:"number",value:Number(t[0]),raw:t[0]}):this.stop("a number that is not one")}text(){const t=this.at;this.at+=1;let s="";for(;;){this.at>=this.s.length&&this.stop('a " that is never closed',t);const e=this.s.charAt(this.at);if(e==='"'){if(this.s.charAt(this.at+1)!=='"')return this.at+=1,s;this.at+=1}s+=e,this.at+=1}}errorLiteral(t){const s=A(this.s,this.at);return s===void 0?this.stop("a # that names no error"):(this.at+=s.length,{kind:"error",code:s,...t===void 0?{}:{sheet:t}})}arrayConstant(){const t=this.at;this.at+=1;const s=[[]];for(;;)if(this.blanks(),s[s.length-1]?.push(this.arrayItem()),this.blanks(),!this.eat(",")){if(this.eat(";")){s.push([]);continue}if(this.eat("}"))break;this.stop("a { that is never closed",t)}const e=s[0]?.length;return s.some(n=>n.length!==e)&&this.stop("an array whose rows are not all as long",t),{kind:"array",rows:s}}arrayItem(){const t=this.s.charAt(this.at);if(t==='"')return{kind:"string",value:this.text()};if(t==="#")return this.errorLiteral(void 0);if(t==="-"||t==="+")return this.at+=1,{kind:"unary",op:t,arg:this.number()};if(g(t)||t===".")return this.number();const s=this.name(),e=s.toUpperCase();return e==="TRUE"||e==="FALSE"?{kind:"boolean",value:e==="TRUE"}:this.stop(`${s} in an array: an array holds only constants`)}name(){const t=this.at;for(;this.at<this.s.length&&w(this.s.charAt(this.at));)this.at+=1;return this.s.slice(t,this.at)}quoted(){const t=this.at;this.at+=1;let s="";for(;;){this.at>=this.s.length&&this.stop("a ' that is never closed",t);const e=this.s.charAt(this.at);if(e==="'"){if(this.s.charAt(this.at+1)!=="'")return this.at+=1,s;this.at+=1}s+=e,this.at+=1}}word(){const t=this.sheetPrefix();if(t)return this.afterSheet(t.first,t.last);const s=k(this.s,this.at);if(s)return this.at=s.end,{kind:"ref",...s.ref};const e=x(this.s,this.at);if(e)return this.at=e.end,{kind:"ref",...e.ref};if(this.peek("$"))return this.stop('a "$" that is not part of a reference');const n=this.at,r=this.name();if(r==="")return this.stop(`"${this.s.charAt(n)}" in a name`);if(this.peek("("))return this.call(r);if(this.peek("["))return this.bracket(r);const h=r.toUpperCase();return h==="TRUE"||h==="FALSE"?{kind:"boolean",value:h==="TRUE"}:{kind:"name",name:r}}sheetPrefix(){const t=this.at;if(this.peek("'")){const e=this.quoted();if(!this.eat("!")){this.at=t;return}const n=e.indexOf(":");return n>0?{first:e.slice(0,n),last:e.slice(n+1)}:{first:e}}const s=this.name();if(s!==""&&this.eat("!"))return{first:s};if(s!==""&&this.eat(":")){const e=this.name();if(e!==""&&this.eat("!"))return{first:s,last:e}}this.at=t}afterSheet(t,s){const e={sheet:t,...s===void 0?{}:{lastSheet:s}};if(this.peek("#"))return this.errorLiteral(t);const n=k(this.s,this.at);if(n)return this.at=n.end,{kind:"ref",...e,...n.ref};const r=x(this.s,this.at);if(r)return this.at=r.end,{kind:"ref",...e,...r.ref};const h=this.name();return h===""?this.stop(`nothing after ${t}!`):{kind:"name",name:h,sheet:t}}call(t){const s=this.at;this.at+=1;const e=[];this.blanks();const n=()=>({kind:"call",name:t.toUpperCase(),written:t,args:e});if(this.eat(")"))return n();for(;;)if(this.blanks(),this.peek(",")||this.peek(")")?e.push({kind:"missing"}):e.push(this.expression(0)),this.blanks(),!this.eat(",")){if(this.eat(")"))return n();this.stop(`a ( of ${t.toUpperCase()} that is never closed`,s)}}columnName(){let t="";for(;;){this.at>=this.s.length&&this.stop("a [ that is never closed");const s=this.s.charAt(this.at);if(s==="]")return t;if(s==="["&&this.stop("a [ inside a column's name"),s==="'"){this.at+=1,t+=this.s.charAt(this.at),this.at+=1;continue}t+=s,this.at+=1}}bracket(t){const s=this.at;this.at+=1;const e={kind:"structured",...t===void 0?{}:{table:t},sections:[],columns:[],thisRow:!1};if(this.eat("]"))return e;if(!(this.peek("[")||this.peek("#")||this.peek("@"))){const r=this.columnName();return this.at+=1,t===void 0&&/[!']/u.test(this.s.charAt(this.at))&&this.stop("a formula that reaches into another workbook",s),t===void 0&&p(this.s.charAt(this.at))&&this.stop("a formula that reaches into another workbook",s),e.columns=[r.trim()],e}return this.eat("@")?(e.thisRow=!0,this.eat("]")||(this.peek("[")?this.items(e):e.columns=[this.columnName().trim()],this.eat("]")||this.stop("a [ that is never closed",s)),e):(this.items(e),this.eat("]")||this.stop("a [ that is never closed",s),e)}items(t){for(;;){if(this.blanks(),this.peek("#"))this.section(t);else if(this.eat("["))if(this.peek("#"))this.section(t),this.eat("]")||this.stop("a [ that is never closed");else{const s=this.columnName().trim();this.at+=1,t.columns.push(s),this.eat(":")&&(this.eat("[")||this.stop("a column's name after :"),t.columns.push(this.columnName().trim()),this.at+=1)}else this.stop("a column or a section of a table");if(this.blanks(),!this.eat(","))return}}section(t){const s=this.s.slice(this.at).toLowerCase(),e=N.find(n=>s.startsWith(n.toLowerCase()));e===void 0&&this.stop("a section of a table that is not one"),this.at+=e.length,e==="#This Row"?t.thisRow=!0:t.sections.push(e)}}const E=i=>i.kind==="ref"||i.kind==="name"||i.kind==="structured"||i.kind==="call"||i.kind==="paren"||i.kind==="binary"&&(i.op===":"||i.op===" ");function A(i,t){const s=/^#[A-Za-z0-9_/]+[!?]?/u.exec(i.slice(t));return s?v(s[0])?.code:void 0}const u=(i,t)=>{const s=i.charAt(t);return s!==""&&(w(s)||s==="("||s==="!"||s==="[")};function x(i,t){const s=i.slice(t),e=/^(\$?)([A-Za-z]{1,3}):(\$?)([A-Za-z]{1,3})/u.exec(s);if(e){const a=t+e[0].length,o=d(e[2]??""),c=d(e[4]??"");if(o!==void 0&&c!==void 0&&!u(i,a))return{ref:{col:f(o,e[1]==="$"),col2:f(c,e[3]==="$"),range:!0},end:a}}const n=/^(\$?)([A-Za-z]{1,3})(\$?)([1-9]\d*)/u.exec(s);if(!n)return;const r=$(n),h=t+n[0].length;if(!(!r||u(i,h))){if(i.charAt(h)===":"){const a=/^(\$?)([A-Za-z]{1,3})(\$?)([1-9]\d*)/u.exec(i.slice(h+1));if(a){const o=$(a),c=h+1+a[0].length;if(o&&!u(i,c))return{ref:{...r,col2:o.col,row2:o.row,range:!0},end:c}}}return{ref:{...r,range:!1},end:h}}}function $(i){const t=d(i[2]??""),s=Number(i[4])-1;if(!(t===void 0||t>=y||s>=l))return{col:f(t,i[1]==="$"),row:f(s,i[3]==="$")}}function k(i,t){const s=/^(\$?)([1-9]\d*):(\$?)([1-9]\d*)/u.exec(i.slice(t));if(!s)return;const e=t+s[0].length,n=Number(s[2])-1,r=Number(s[4])-1;if(!(n>=l||r>=l||u(i,e)))return{ref:{row:f(n,s[1]==="$"),row2:f(r,s[3]==="$"),range:!0},end:e}}export function parseFormula(i){try{return{ok:!0,node:new C(i).parse()}}catch(t){if(t instanceof m)return{ok:!1,error:{message:t.message,at:t.at}};throw t}}
2
+ import{MAX_COLUMNS as N,MAX_ROWS as d,columnIndex as p}from"../address.js";import{errorOf as R}from"../values.js";import{TABLE_SECTIONS as C}from"./ast.js";class g extends Error{at;constructor(t,s){super(t),this.at=s}}const E=new Set(["=","<>","<","<=",">",">="]),w={"=":1,"<>":1,"<":1,"<=":1,">":1,">=":1,"&":2,"+":3,"-":3,"*":4,"/":4,"^":5},x=i=>i>="0"&&i<="9",m=i=>/[\p{L}_\\]/u.test(i)||i>="\uD800"&&i<="\uDFFF",A=i=>/[\p{L}\p{N}\p{M}_.?\\]/u.test(i)||i>="\uD800"&&i<="\uDFFF",u=(i,t)=>({index:i,abs:t});function f(i,t){const s={};return t.before&&(s.before=t.before),t.inner&&(s.inner=t.inner),t.after&&(s.after=t.after),Object.keys(s).length===0?i:{...i,space:{...i.space,...s}}}class L{at=0;s;constructor(t){this.s=t}blanks(){return this.space()!==""}space(){const t=this.at;for(;/\s/u.test(this.s.charAt(this.at));)this.at+=1;return this.s.slice(t,this.at)}peek(t){return this.s.startsWith(t,this.at)}eat(t){return this.peek(t)?(this.at+=t.length,!0):!1}stop(t,s=this.at){throw new g(t,s)}parse(){this.eat("="),this.s.slice(this.at).trim()===""&&this.stop("a formula with nothing in it",this.s.length);const t=this.expression(0);return this.blanks(),this.at<this.s.length&&this.stop(`"${this.s.charAt(this.at)}" where an operator should be`),t}operator(){const t=this.at,s=this.space(),e=this.s.slice(this.at,this.at+2),n=this.s.charAt(this.at);return this.at=t,E.has(e)?{op:e,inner:s}:w[n]===void 0?void 0:{op:n,inner:s}}expression(t){let s=this.prefix();for(;;){const e=this.operator();if(e===void 0)return s;const{op:n,inner:r}=e,h=w[n]??0;if(h<=t)return s;this.at+=r.length+n.length;const a=this.expression(h);s=f({kind:"binary",op:n,left:s,right:a},{inner:r})}}prefix(){const t=this.at,s=this.space();for(const e of["-","+","@"])if(this.eat(e))return f({kind:"unary",op:e,arg:this.prefix()},{before:s});return this.at=t,this.postfix()}postfix(){let t=this.references();for(;;){const s=this.at;if(this.blanks(),this.eat("%")){t={kind:"postfix",op:"%",arg:t};continue}if(this.at=s,this.peek("#")&&!$(this.s,this.at)){this.at+=1,t={kind:"postfix",op:"#",arg:t};continue}if(this.peek("(")&&(t.kind==="call"||t.kind==="paren")){const{args:e}=this.call("");t={kind:"invoke",callee:t,args:e};continue}return t}}references(){let t=this.primary();for(;;){if(this.peek(":")){this.at+=1,this.blanks();const e=this.primary();t={kind:"binary",op:":",left:t,right:e};continue}const s=this.at;if(S(t)&&this.blanks()&&this.startsReference()){const e=this.primary();t={kind:"binary",op:" ",left:t,right:e};continue}return this.at=s,t}}startsReference(){const t=this.s.charAt(this.at);return t==="$"||t==="'"||t==="("||t==="["||m(t)}primary(){const t=this.space();return f(this.bare(),{before:t})}bare(){const t=this.s.charAt(this.at);if(t===""&&this.stop("the formula ends where a value should be"),t==="(")return this.parenthesis();if(t==="{")return this.arrayConstant();if(t==='"')return{kind:"string",value:this.text()};if(x(t)||t==="."){const s=k(this.s,this.at);return s?(this.at=s.end,{kind:"ref",...s.ref}):this.number()}return t==="#"?this.errorLiteral(void 0):t==="["?this.bracket(void 0):t==="$"||t==="'"||m(t)?this.word():this.stop(`"${t}" where a value should be`)}parenthesis(){const t=this.at;this.at+=1;let s=this.expression(0),e=this.space();for(;this.eat(",");){const n=this.expression(0);s=f({kind:"binary",op:",",left:s,right:n},{inner:e}),e=this.space()}return this.eat(")")||this.stop("a ( that is never closed",t),f({kind:"paren",arg:s},{inner:e})}number(){const t=/^(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/u.exec(this.s.slice(this.at));return t?(this.at+=t[0].length,{kind:"number",value:Number(t[0]),raw:t[0]}):this.stop("a number that is not one")}text(){const t=this.at;this.at+=1;let s="";for(;;){this.at>=this.s.length&&this.stop('a " that is never closed',t);const e=this.s.charAt(this.at);if(e==='"'){if(this.s.charAt(this.at+1)!=='"')return this.at+=1,s;this.at+=1}s+=e,this.at+=1}}errorLiteral(t){const s=$(this.s,this.at);return s===void 0?this.stop("a # that names no error"):(this.at+=s.length,{kind:"error",code:s,...t===void 0?{}:{sheet:t}})}arrayConstant(){const t=this.at;this.at+=1;const s=[[]];for(;;)if(this.blanks(),s[s.length-1]?.push(this.arrayItem()),this.blanks(),!this.eat(",")){if(this.eat(";")){s.push([]);continue}if(this.eat("}"))break;this.stop("a { that is never closed",t)}const e=s[0]?.length;return s.some(n=>n.length!==e)&&this.stop("an array whose rows are not all as long",t),{kind:"array",rows:s}}arrayItem(){const t=this.s.charAt(this.at);if(t==='"')return{kind:"string",value:this.text()};if(t==="#")return this.errorLiteral(void 0);if(t==="-"||t==="+")return this.at+=1,{kind:"unary",op:t,arg:this.number()};if(x(t)||t===".")return this.number();const s=this.name(),e=s.toUpperCase();return e==="TRUE"||e==="FALSE"?{kind:"boolean",value:e==="TRUE"}:this.stop(`${s} in an array: an array holds only constants`)}name(){const t=this.at;for(;this.at<this.s.length&&A(this.s.charAt(this.at));)this.at+=1;return this.s.slice(t,this.at)}quoted(){const t=this.at;this.at+=1;let s="";for(;;){this.at>=this.s.length&&this.stop("a ' that is never closed",t);const e=this.s.charAt(this.at);if(e==="'"){if(this.s.charAt(this.at+1)!=="'")return this.at+=1,s;this.at+=1}s+=e,this.at+=1}}word(){const t=this.sheetPrefix();if(t)return this.afterSheet(t.first,t.last);const s=k(this.s,this.at);if(s)return this.at=s.end,{kind:"ref",...s.ref};const e=y(this.s,this.at);if(e)return this.at=e.end,{kind:"ref",...e.ref};if(this.peek("$"))return this.stop('a "$" that is not part of a reference');const n=this.at,r=this.name();if(r==="")return this.stop(`"${this.s.charAt(n)}" in a name`);if(this.peek("("))return this.call(r);if(this.peek("["))return this.bracket(r);const h=r.toUpperCase();return h==="TRUE"||h==="FALSE"?{kind:"boolean",value:h==="TRUE"}:{kind:"name",name:r}}sheetPrefix(){const t=this.at;if(this.peek("'")){const e=this.quoted();if(!this.eat("!")){this.at=t;return}const n=e.indexOf(":");return n>0?{first:e.slice(0,n),last:e.slice(n+1)}:{first:e}}const s=this.name();if(s!==""&&this.eat("!"))return{first:s};if(s!==""&&this.eat(":")){const e=this.name();if(e!==""&&this.eat("!"))return{first:s,last:e}}this.at=t}afterSheet(t,s){const e={sheet:t,...s===void 0?{}:{lastSheet:s}};if(this.peek("#"))return this.errorLiteral(t);const n=k(this.s,this.at);if(n)return this.at=n.end,{kind:"ref",...e,...n.ref};const r=y(this.s,this.at);if(r)return this.at=r.end,{kind:"ref",...e,...r.ref};const h=this.name();return h===""?this.stop(`nothing after ${t}!`):{kind:"name",name:h,sheet:t}}call(t){const s=this.at;this.at+=1;const e=[],n=a=>f({kind:"call",name:t.toUpperCase(),written:t,args:e},{inner:a}),r=this.at,h=this.space();if(this.eat(")"))return n(h);for(this.at=r;;){const a=this.at,c=this.space();let o;this.peek(",")||this.peek(")")?o=f({kind:"missing"},{before:c}):(this.at=a,o=this.expression(0));const b=this.space();if(this.eat(",")){e.push(f(o,{after:b}));continue}if(e.push(o),this.eat(")"))return n(b);this.stop(`a ( of ${t.toUpperCase()} that is never closed`,s)}}columnName(){let t="";for(;;){this.at>=this.s.length&&this.stop("a [ that is never closed");const s=this.s.charAt(this.at);if(s==="]")return t;if(s==="["&&this.stop("a [ inside a column's name"),s==="'"){this.at+=1,t+=this.s.charAt(this.at),this.at+=1;continue}t+=s,this.at+=1}}bracket(t){const s=this.at;this.at+=1;const e={kind:"structured",...t===void 0?{}:{table:t},sections:[],columns:[],thisRow:!1};if(this.eat("]"))return e;if(!(this.peek("[")||this.peek("#")||this.peek("@"))){const r=this.columnName();return this.at+=1,t===void 0&&/[!']/u.test(this.s.charAt(this.at))&&this.stop("a formula that reaches into another workbook",s),t===void 0&&m(this.s.charAt(this.at))&&this.stop("a formula that reaches into another workbook",s),e.columns=[r.trim()],e}return this.eat("@")?(e.thisRow=!0,this.eat("]")||(this.peek("[")?this.items(e):e.columns=[this.columnName().trim()],this.eat("]")||this.stop("a [ that is never closed",s)),e):(this.items(e),this.eat("]")||this.stop("a [ that is never closed",s),e)}items(t){for(;;){if(this.blanks(),this.peek("#"))this.section(t);else if(this.eat("["))if(this.peek("#"))this.section(t),this.eat("]")||this.stop("a [ that is never closed");else{const s=this.columnName().trim();this.at+=1,t.columns.push(s),this.eat(":")&&(this.eat("[")||this.stop("a column's name after :"),t.columns.push(this.columnName().trim()),this.at+=1)}else this.stop("a column or a section of a table");if(this.blanks(),!this.eat(","))return}}section(t){const s=this.s.slice(this.at).toLowerCase(),e=C.find(n=>s.startsWith(n.toLowerCase()));e===void 0&&this.stop("a section of a table that is not one"),this.at+=e.length,e==="#This Row"?t.thisRow=!0:t.sections.push(e)}}const S=i=>i.kind==="ref"||i.kind==="name"||i.kind==="structured"||i.kind==="call"||i.kind==="paren"||i.kind==="binary"&&(i.op===":"||i.op===" ");function $(i,t){const s=/^#[A-Za-z0-9_/]+[!?]?/u.exec(i.slice(t));return s?R(s[0])?.code:void 0}const l=(i,t)=>{const s=i.charAt(t);return s!==""&&(A(s)||s==="("||s==="!"||s==="[")};function y(i,t){const s=i.slice(t),e=/^(\$?)([A-Za-z]{1,3}):(\$?)([A-Za-z]{1,3})/u.exec(s);if(e){const a=t+e[0].length,c=p(e[2]??""),o=p(e[4]??"");if(c!==void 0&&o!==void 0&&!l(i,a))return{ref:{col:u(c,e[1]==="$"),col2:u(o,e[3]==="$"),range:!0},end:a}}const n=/^(\$?)([A-Za-z]{1,3})(\$?)([1-9]\d*)/u.exec(s);if(!n)return;const r=v(n),h=t+n[0].length;if(!(!r||l(i,h))){if(i.charAt(h)===":"){const a=/^(\$?)([A-Za-z]{1,3})(\$?)([1-9]\d*)/u.exec(i.slice(h+1));if(a){const c=v(a),o=h+1+a[0].length;if(c&&!l(i,o))return{ref:{...r,col2:c.col,row2:c.row,range:!0},end:o}}}return{ref:{...r,range:!1},end:h}}}function v(i){const t=p(i[2]??""),s=Number(i[4])-1;if(!(t===void 0||t>=N||s>=d))return{col:u(t,i[1]==="$"),row:u(s,i[3]==="$")}}function k(i,t){const s=/^(\$?)([1-9]\d*):(\$?)([1-9]\d*)/u.exec(i.slice(t));if(!s)return;const e=t+s[0].length,n=Number(s[2])-1,r=Number(s[4])-1;if(!(n>=d||r>=d||l(i,e)))return{ref:{row:u(n,s[1]==="$"),row2:u(r,s[3]==="$"),range:!0},end:e}}export function parseFormula(i){try{return{ok:!0,node:new L(i).parse()}}catch(t){if(t instanceof g)return{ok:!1,error:{message:t.message,at:t.at}};throw t}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{columnLetter as l}from"../address.js";const $=e=>`${e.abs?"$":""}${l(e.index)}`,s=e=>`${e.abs?"$":""}${String(e.index+1)}`;export function sheetPrefix(e,r){const t=r===void 0?e:`${e}:${r}`;return/^[\p{L}_][\p{L}\p{N}_.]*$/u.test(e)&&!/^[A-Za-z]{1,3}\d+$/u.test(e)&&!/^(?:TRUE|FALSE)$/iu.test(e)&&(r===void 0||/^[\p{L}_][\p{L}\p{N}_.]*$/u.test(r))?`${t}!`:`'${t.replaceAll("'","''")}'!`}function f(e){const r=e.sheet===void 0?"":sheetPrefix(e.sheet,e.lastSheet);if(e.row===void 0&&e.col&&e.col2)return`${r}${$(e.col)}:${$(e.col2)}`;if(e.col===void 0&&e.row&&e.row2)return`${r}${s(e.row)}:${s(e.row2)}`;if(!e.col||!e.row)return`${r}#REF!`;const t=`${$(e.col)}${s(e.row)}`;return e.col2&&e.row2?`${r}${t}:${$(e.col2)}${s(e.row2)}`:`${r}${t}`}const c=e=>e.replace(/([[\]#'@])/gu,"'$1"),p=e=>/^[\p{L}\p{N}_]+$/u.test(e);function d(e){const r=e.table??"",[t,i]=e.columns,u=e.columns.map(n=>`[${c(n)}]`).join(":");if(e.sections.length===0)return e.thisRow?t===void 0?`${r}[@]`:i!==void 0?`${r}[@${u}]`:`${r}[@${p(t)?c(t):u}]`:t===void 0?r===""?"[]":r:i!==void 0?`${r}[${u}]`:`${r}[${c(t)}]`;if(t===void 0&&e.sections.length===1)return`${r}[${e.sections[0]??""}]`;const a=e.sections.map(n=>`[${n}]`);return u!==""&&a.push(u),`${r}[${a.join(",")}]`}function o(e){switch(e.kind){case"number":return e.raw;case"string":return`"${e.value.replaceAll('"','""')}"`;case"boolean":return e.value?"TRUE":"FALSE";case"error":return`${e.sheet===void 0?"":sheetPrefix(e.sheet)}${e.code}`;case"missing":return"";case"ref":return f(e);case"structured":return d(e);case"name":return`${e.sheet===void 0?"":sheetPrefix(e.sheet)}${e.name}`;case"unary":return`${e.op}${o(e.arg)}`;case"postfix":return`${o(e.arg)}${e.op}`;case"binary":return`${o(e.left)}${e.op}${o(e.right)}`;case"call":return`${e.written}(${e.args.map(o).join(",")})`;case"invoke":return`${o(e.callee)}(${e.args.map(o).join(",")})`;case"array":return`{${e.rows.map(r=>r.map(o).join(",")).join(";")}}`;case"paren":return`(${o(e.arg)})`}}export const printFormula=e=>`=${o(e)}`;
2
+ import{columnLetter as f}from"../address.js";const n=e=>`${e.abs?"$":""}${f(e.index)}`,s=e=>`${e.abs?"$":""}${String(e.index+1)}`;export function sheetPrefix(e,r){const t=r===void 0?e:`${e}:${r}`;return/^[\p{L}_][\p{L}\p{N}_.]*$/u.test(e)&&!/^[A-Za-z]{1,3}\d+$/u.test(e)&&!/^(?:TRUE|FALSE)$/iu.test(e)&&(r===void 0||/^[\p{L}_][\p{L}\p{N}_.]*$/u.test(r))?`${t}!`:`'${t.replaceAll("'","''")}'!`}function l(e){const r=e.sheet===void 0?"":sheetPrefix(e.sheet,e.lastSheet);if(e.row===void 0&&e.col&&e.col2)return`${r}${n(e.col)}:${n(e.col2)}`;if(e.col===void 0&&e.row&&e.row2)return`${r}${s(e.row)}:${s(e.row2)}`;if(!e.col||!e.row)return`${r}#REF!`;const t=`${n(e.col)}${s(e.row)}`;return e.col2&&e.row2?`${r}${t}:${n(e.col2)}${s(e.row2)}`:`${r}${t}`}const i=e=>e.replace(/([[\]#'@])/gu,"'$1"),p=e=>/^[\p{L}\p{N}_]+$/u.test(e);function d(e){const r=e.table??"",[t,u]=e.columns,$=e.columns.map(c=>`[${i(c)}]`).join(":");if(e.sections.length===0)return e.thisRow?t===void 0?`${r}[@]`:u!==void 0?`${r}[@${$}]`:`${r}[@${p(t)?i(t):$}]`:t===void 0?r===""?"[]":r:u!==void 0?`${r}[${$}]`:`${r}[${i(t)}]`;if(t===void 0&&e.sections.length===1)return`${r}[${e.sections[0]??""}]`;const a=e.sections.map(c=>`[${c}]`);return $!==""&&a.push($),`${r}[${a.join(",")}]`}function o(e){const{before:r="",after:t=""}=e.space??{};return`${r}${m(e)}${t}`}function m(e){const r=e.space?.inner??"";switch(e.kind){case"number":return e.raw;case"string":return`"${e.value.replaceAll('"','""')}"`;case"boolean":return e.value?"TRUE":"FALSE";case"error":return`${e.sheet===void 0?"":sheetPrefix(e.sheet)}${e.code}`;case"missing":return"";case"ref":return l(e);case"structured":return d(e);case"name":return`${e.sheet===void 0?"":sheetPrefix(e.sheet)}${e.name}`;case"unary":return`${e.op}${o(e.arg)}`;case"postfix":return`${o(e.arg)}${e.op}`;case"binary":return`${o(e.left)}${r}${e.op}${o(e.right)}`;case"call":return`${e.written}(${e.args.map(o).join(",")}${r})`;case"invoke":return`${o(e.callee)}(${e.args.map(o).join(",")}${r})`;case"array":return`{${e.rows.map(t=>t.map(o).join(",")).join(";")}}`;case"paren":return`(${o(e.arg)}${r})`}}export const printFormula=e=>`=${o(e)}`;
@@ -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{printedFacts,printedLines}from"./printed.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,ITERATION_DEFAULTS,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{cellName as g}from"./address.js";import"./calc/types.js";import{analyse as y}from"./calc/analyse.js";import{dataValue as S}from"./export.js";import{shownValue as x}from"./format.js";import{relativeKey as _}from"./formula/move.js";import{exceptionsOf as C}from"./edit.js";import{invalidCells as F}from"./validate.js";import{CellError as E}from"./values.js";import{FormulaCell as v}from"./workbook.js";export const SHEET_FACT_KINDS=["sheet-error","sheet-number","sheet-unlike","sheet-exception","sheet-unused","sheet-invalid","sheet-typed","sheet-ordinary"],INSPECT_DEFAULTS={plain:[0,1,-1],around:1};function w(o){const s=new Map;for(const t of o.formulas){const n=s.get(t.shared);n?(n.count+=1,(t.row<n.first.row||t.row===n.first.row&&t.col<n.first.col)&&(n.first=t)):s.set(t.shared,{shared:t.shared,first:t,count:1})}return[...s.values()].sort((t,n)=>t.first.row-n.first.row||t.first.col-n.first.col)}function k(o,s,t){switch(o.kind){case"number":t.push({value:o.value,in:s});return;case"unary":o.op==="-"&&o.arg.kind==="number"?t.push({value:-o.arg.value,in:s}):k(o.arg,o.op,t);return;case"postfix":k(o.arg,o.op,t);return;case"paren":k(o.arg,s,t);return;case"binary":k(o.left,o.op,t),k(o.right,o.op,t);return;case"array":for(const n of o.rows)for(const l of n)k(l,"{}",t);return;case"call":for(const n of o.args)k(n,o.name,t);return;case"invoke":k(o.callee,s,t);for(const n of o.args)k(n,"LAMBDA",t);return;default:return}}function N(o,s){const t={error:!1};for(const n of o.precedents(s))if(o.each(n,l=>{l instanceof E&&(t.error=!0)}),t.error)return!1;return!0}const b=new WeakMap;function A(o){const s=b.get(o);if(s!==void 0)return s;const t=o.node?_(o.node,o.row,o.col):o.text;return b.set(o,t),t}const I=(o,s)=>o instanceof v?o.text:x(o,s);function M(o,s,t){const n=[],l=(r,e)=>{if(r<0||e<0)return;const u=o.at(r,e);return u instanceof v?A(u.shared):void 0},c=(r,e,u,i)=>{const f=u==="column"?1:0,a=u==="row"?1:0,h=o.at(r,e);if(h===void 0||h instanceof v&&A(h.shared)===i)return;for(let d=1;d<=s;d++)if(l(r-f*d,e-a*d)!==i||l(r+f*d,e+a*d)!==i)return;if(t.has(r*16384+e))return;let m=s*2;for(let d=s+1;l(r-f*d,e-a*d)===i;d++)m+=1;for(let d=s+1;l(r+f*d,e+a*d)===i;d++)m+=1;const p=o.at(r-f,e-a);n.push({sheet:o.name,cell:g({row:r,col:e}),holds:I(h,o.lookAt(r,e).format),neighbour:p instanceof v?p.text:"",along:u,run:m})};for(const r of o.formulas){const e=A(r.shared);c(r.row+1,r.col,"column",e),c(r.row,r.col+1,"row",e)}return n.sort((r,e)=>T(r.cell,e.cell))}const T=(o,s)=>o.length-s.length||o.localeCompare(s,"en",{numeric:!0});function R(o,s){const t=[],n=(c,r)=>{c&&t.push(...o.readsOfFormula(c,r))};for(const c of s.sheets){for(const r of c.conditions)for(const e of r.formulas)n(e,c);for(const r of c.validations)for(const e of r.formulas)n(e,c);for(const r of c.charts){n(r.title,c),n(r.categories,c);for(const e of r.series)n(e.values,c),n(e.x,c),n(e.name,c)}}const l=s.sheets[0];if(l){for(const c of s.checks)n(c.formula,l);for(const c of s.names.values())n(c.formula,l)}return t}function D(o){const s=new Set,t=n=>{if(n)for(const l of y(o,n).names)s.add(l)};for(const n of o.sheets){for(const{shared:l}of w(n))t(l);for(const l of n.conditions)l.formulas.forEach(t);for(const l of n.validations)l.formulas.forEach(t);for(const l of n.charts){t(l.title),t(l.categories);for(const c of l.series)t(c.values),t(c.x),t(c.name)}}for(const n of o.checks)t(n.formula);return s}function K(o,s,t){const n=[],l=D(s);for(const e of s.names.values())l.has(e.name.toLowerCase())||n.push({what:"name",name:e.name,value:e.formula?.text??x(e.value??null)});const c=R(o,s),r=(e,u,i)=>c.some(f=>f.sheet===e&&u>=f.top&&u<=f.bottom&&i>=f.left&&i<=f.right)||o.readers(e,u,i).length>0;for(const e of s.sheets){for(let u=0;u<e.columnsUsed;u++){const[i,f]=e.span(u,0,Number.MAX_SAFE_INTEGER);for(let a=i;a<=f;a++){const h=e.at(a,u);typeof h=="number"&&(e.tableAt(a,u)||e.blockAt(a,u)||r(e,a,u)||n.push({what:"cell",sheet:e.name,name:g({row:a,col:u}),value:x(h,e.lookAt(a,u).format)}))}}if(t)for(const u of e.tables)for(const i of u.columns){const f=u.at.col+i.index,{top:a,bottom:h}=u.data;let m=!1;for(let p=a;p<=h&&!m;p++)m=r(e,p,f);m||n.push({what:"column",sheet:e.name,name:`${u.name}[${i.name}]`})}}return n}export function inspectWorkbook(o,s={}){const{wb:t}=o,n=new Set(s.plain??INSPECT_DEFAULTS.plain),l=Math.max(1,s.around??INSPECT_DEFAULTS.around),c=s.all===!0,r=[];for(const e of t.sheets){const u=[...e.formulas].sort((f,a)=>f.row-a.row||f.col-a.col);for(const f of u){const{value:a}=f;a instanceof E&&r.push({kind:"sheet-error",data:{sheet:e.name,cell:g(f),code:a.code,formula:f.text,origin:N(o,f)}})}for(let f=0;f<e.columnsUsed;f++){const[a,h]=e.span(f,0,Number.MAX_SAFE_INTEGER);for(let m=a;m<=h;m++){const p=e.at(m,f);p instanceof E&&r.push({kind:"sheet-error",data:{sheet:e.name,cell:g({row:m,col:f}),code:p.code,origin:!0}})}}for(const{shared:f,first:a,count:h}of w(e)){if(!f.node)continue;const m=[];k(f.node,"=",m);const p=c?m:m.filter(d=>!n.has(d.value));p.length>0&&r.push({kind:"sheet-number",data:{sheet:e.name,cell:g(a),cells:h,formula:a.text,numbers:p}})}const i=new Set;for(const f of e.tables)for(const a of C(f))i.add(a.row*16384+a.col),r.push({kind:"sheet-exception",data:{sheet:e.name,table:f.name,column:a.column,cell:g(a),text:a.text}});for(const f of M(e,l,i))r.push({kind:"sheet-unlike",data:f})}for(const e of K(o,t,c))r.push({kind:"sheet-unused",data:e});for(const e of F(t,o))r.push({kind:"sheet-invalid",data:{sheet:e.sheet,cell:g(e),value:S(e.value,void 0),rule:e.type,range:e.range}});for(const e of t.generated?.typed??[])t.sheet(e.sheet)?.generated===!0&&r.push({kind:"sheet-typed",data:e});for(const e of t.ordinary)r.push({kind:"sheet-ordinary",data:{sheet:e}});return r}
2
+ import{cellName as k}from"./address.js";import"./calc/types.js";import{analyse as F}from"./calc/analyse.js";import{ITERATION_DEFAULTS as b}from"./calc/engine.js";import{dataValue as N}from"./export.js";import{shownValue as E}from"./format.js";import{relativeKey as T}from"./formula/move.js";import{exceptionsOf as C}from"./edit.js";import{invalidCells as I}from"./validate.js";import{CellError as _}from"./values.js";import{FormulaCell as v}from"./workbook.js";export const SHEET_FACT_KINDS=["sheet-error","sheet-number","sheet-unlike","sheet-exception","sheet-unused","sheet-invalid","sheet-typed","sheet-ordinary","sheet-iteration"],INSPECT_DEFAULTS={plain:[0,1,-1],around:1};function w(e){const a=new Map;for(const t of e.formulas){const n=a.get(t.shared);n?(n.count+=1,(t.row<n.first.row||t.row===n.first.row&&t.col<n.first.col)&&(n.first=t)):a.set(t.shared,{shared:t.shared,first:t,count:1})}return[...a.values()].sort((t,n)=>t.first.row-n.first.row||t.first.col-n.first.col)}function g(e,a,t){switch(e.kind){case"number":t.push({value:e.value,in:a});return;case"unary":e.op==="-"&&e.arg.kind==="number"?t.push({value:-e.arg.value,in:a}):g(e.arg,e.op,t);return;case"postfix":g(e.arg,e.op,t);return;case"paren":g(e.arg,a,t);return;case"binary":g(e.left,e.op,t),g(e.right,e.op,t);return;case"array":for(const n of e.rows)for(const l of n)g(l,"{}",t);return;case"call":for(const n of e.args)g(n,e.name,t);return;case"invoke":g(e.callee,a,t);for(const n of e.args)g(n,"LAMBDA",t);return;default:return}}function M(e,a){const t={error:!1};for(const n of e.precedents(a))if(e.each(n,l=>{l instanceof _&&(t.error=!0)}),t.error)return!1;return!0}const y=new WeakMap;function A(e){const a=y.get(e);if(a!==void 0)return a;const t=e.node?T(e.node,e.row,e.col):e.text;return y.set(e,t),t}const R=(e,a)=>e instanceof v?e.text:E(e,a);function D(e,a,t){const n=[],l=(r,o)=>{if(r<0||o<0)return;const i=e.at(r,o);return i instanceof v?A(i.shared):void 0},c=(r,o,i,s)=>{const h=i==="column"?1:0,d=i==="row"?1:0,f=e.at(r,o);if(f===void 0||f instanceof v&&A(f.shared)===s)return;for(let m=1;m<=a;m++)if(l(r-h*m,o-d*m)!==s||l(r+h*m,o+d*m)!==s)return;if(t.has(r*16384+o))return;let u=a*2;for(let m=a+1;l(r-h*m,o-d*m)===s;m++)u+=1;for(let m=a+1;l(r+h*m,o+d*m)===s;m++)u+=1;const p=e.at(r-h,o-d);n.push({sheet:e.name,cell:k({row:r,col:o}),holds:R(f,e.lookAt(r,o).format),neighbour:p instanceof v?p.text:"",along:i,run:u})};for(const r of e.formulas){const o=A(r.shared);c(r.row+1,r.col,"column",o),c(r.row,r.col+1,"row",o)}return n.sort((r,o)=>L(r.cell,o.cell))}const L=(e,a)=>e.length-a.length||e.localeCompare(a,"en",{numeric:!0});function U(e,a){const t=[],n=(c,r)=>{c&&t.push(...e.readsOfFormula(c,r))};for(const c of a.sheets){for(const r of c.conditions)for(const o of r.formulas)n(o,c);for(const r of c.validations)for(const o of r.formulas)n(o,c);for(const r of c.charts){n(r.title,c),n(r.categories,c);for(const o of r.series)n(o.values,c),n(o.x,c),n(o.name,c)}}const l=a.sheets[0];if(l){for(const c of a.checks)n(c.formula,l);for(const c of a.names.values())n(c.formula,l)}return t}function K(e){const a=new Set,t=n=>{if(n)for(const l of F(e,n).names)a.add(l)};for(const n of e.sheets){for(const{shared:l}of w(n))t(l);for(const l of n.conditions)l.formulas.forEach(t);for(const l of n.validations)l.formulas.forEach(t);for(const l of n.charts){t(l.title),t(l.categories);for(const c of l.series)t(c.values),t(c.x),t(c.name)}}for(const n of e.checks)t(n.formula);return a}function O(e,a,t){const n=[],l=K(a);for(const o of a.names.values())l.has(o.name.toLowerCase())||n.push({what:"name",name:o.name,value:o.formula?.text??E(o.value??null)});const c=U(e,a),r=(o,i,s)=>c.some(h=>h.sheet===o&&i>=h.top&&i<=h.bottom&&s>=h.left&&s<=h.right)||e.readers(o,i,s).length>0;for(const o of a.sheets){for(let i=0;i<o.columnsUsed;i++){const[s,h]=o.span(i,0,Number.MAX_SAFE_INTEGER);for(let d=s;d<=h;d++){const f=o.at(d,i);typeof f=="number"&&(o.tableAt(d,i)||o.blockAt(d,i)||r(o,d,i)||n.push({what:"cell",sheet:o.name,name:k({row:d,col:i}),value:E(f,o.lookAt(d,i).format)}))}}if(t)for(const i of o.tables)for(const s of i.columns){const h=i.at.col+s.index,{top:d,bottom:f}=i.data;let u=!1;for(let p=d;p<=f&&!u;p++)u=r(o,p,h);u||n.push({what:"column",sheet:o.name,name:`${i.name}[${s.name}]`})}}return n}export function inspectWorkbook(e,a={}){const{wb:t}=e,n=new Set(a.plain??INSPECT_DEFAULTS.plain),l=Math.max(1,a.around??INSPECT_DEFAULTS.around),c=a.all===!0,r=[];for(const s of t.sheets){const h=[...s.formulas].sort((f,u)=>f.row-u.row||f.col-u.col);for(const f of h){const{value:u}=f;u instanceof _&&r.push({kind:"sheet-error",data:{sheet:s.name,cell:k(f),code:u.code,formula:f.text,origin:M(e,f)}})}for(let f=0;f<s.columnsUsed;f++){const[u,p]=s.span(f,0,Number.MAX_SAFE_INTEGER);for(let m=u;m<=p;m++){const x=s.at(m,f);x instanceof _&&r.push({kind:"sheet-error",data:{sheet:s.name,cell:k({row:m,col:f}),code:x.code,origin:!0}})}}for(const{shared:f,first:u,count:p}of w(s)){if(!f.node)continue;const m=[];g(f.node,"=",m);const x=c?m:m.filter(S=>!n.has(S.value));x.length>0&&r.push({kind:"sheet-number",data:{sheet:s.name,cell:k(u),cells:p,formula:u.text,numbers:x}})}const d=new Set;for(const f of s.tables)for(const u of C(f))d.add(u.row*16384+u.col),r.push({kind:"sheet-exception",data:{sheet:s.name,table:f.name,column:u.column,cell:k(u),text:u.text}});for(const f of D(s,l,d))r.push({kind:"sheet-unlike",data:f})}for(const s of O(e,t,c))r.push({kind:"sheet-unused",data:s});for(const s of I(t,e))r.push({kind:"sheet-invalid",data:{sheet:s.sheet,cell:k(s),value:N(s.value,void 0),rule:s.type,range:s.range}});for(const s of t.generated?.typed??[])t.sheet(s.sheet)?.generated===!0&&r.push({kind:"sheet-typed",data:s});for(const s of t.ordinary)r.push({kind:"sheet-ordinary",data:{sheet:s}});const{iterated:o}=e,{iteration:i}=t.file;if(o&&i!==void 0){const s=i===!0?{}:i;r.push({kind:"sheet-iteration",data:{cells:o.cells,iterations:o.iterations,max_iterations:s.max_iterations??b.max_iterations,change:Number.isFinite(o.change)?o.change:null,max_change:s.max_change??b.max_change}})}return r}
@@ -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
+ import{cellName as x}from"./address.js";import{shownValue as A}from"./format.js";import{paginate as j}from"./paginate.js";const y=7,D=5,S=11,E=1e3,d=6,b=(n,r)=>Math.max(0,(n-D)/y)*(S/r);export function printedFacts(n){return j(n).sheets.map(e=>{const{sheet:o}=e,t={sheet:o.name,across:e.across.length,down:e.down.length,scale:e.scale,cut:[],hashed:[],unformatted:[]},i=new Map(e.cols.map((s,u)=>[s,e.widths[u]??0]));for(const s of e.rows)for(const[u,h]of e.cols.entries()){const a=n.value(o,s,h);if(a===null||a===""||o.mergeAt(s,h)!==void 0)continue;const c=o.lookAt(s,h),l=x({row:s,col:h});if(typeof a=="number"&&Math.abs(a)>=E&&(c.format===void 0||c.format==="General")&&t.unformatted.push(l),c.wrap===!0||c.shrink===!0)continue;const $=Array.from(A(a,c.format)).length,w=c.size??S;if(typeof a=="number"){$>b(i.get(h)??0,w)&&t.hashed.push(l);continue}let g=i.get(h)??0;for(let m=u+1;m<e.cols.length;m++){const p=e.cols[m]??0;if(!M(n,o,s,p))break;g+=i.get(p)??0}$>b(g,w)&&t.cut.push(l)}return t})}const M=(n,r,e,o)=>{const t=n.value(r,e,o);return t===null||t===""},f=n=>n.length<=d?n.join(", "):`${n.slice(0,d).join(", ")} and ${String(n.length-d)} more`;export function printedLines(n,r){const e=printedFacts(r),o=[`${n}: as it prints, ${e.map(t=>`${t.sheet} ${String(t.across*t.down)} page${t.across*t.down===1?"":"s"} (${String(t.across)} across, ${String(t.down)} down, at ${String(Math.round(t.scale*100))}%)`).join("; ")}.`];for(const t of e)t.cut.length>0&&o.push(`${n}: ${t.sheet}: ${String(t.cut.length)} cell${t.cut.length===1?"'s":"s'"} text longer than its column and the empty cells after it hold, cut where the next cell starts: ${f(t.cut)}.`),t.hashed.length>0&&o.push(`${n}: ${t.sheet}: ${String(t.hashed.length)} number${t.hashed.length===1?"":"s"} wider than its column, which Excel shows as ####: ${f(t.hashed)}.`),t.unformatted.length>0&&o.push(`${n}: ${t.sheet}: ${String(t.unformatted.length)} number${t.unformatted.length===1?"":"s"} of 1,000 or more with no number format, shown as Excel's General shows them, with no separators (as a year is written): ${f(t.unformatted)}.`);return o}
@@ -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";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export class CellError{static all=new Map;code;constructor(t){this.code=t}static of(t){let n=CellError.all.get(t);return n||(n=new CellError(t),CellError.all.set(t,n)),n}toString(){return this.code}toJSON(){return this.code}}export const ERR={NULL:CellError.of("#NULL!"),DIV0:CellError.of("#DIV/0!"),VALUE:CellError.of("#VALUE!"),REF:CellError.of("#REF!"),NAME:CellError.of("#NAME?"),NUM:CellError.of("#NUM!"),NA:CellError.of("#N/A"),SPILL:CellError.of("#SPILL!"),CALC:CellError.of("#CALC!"),CYCLE:CellError.of("#CYCLE!")};const $=["#NULL!","#DIV/0!","#VALUE!","#REF!","#NAME?","#NUM!","#N/A","#GETTING_DATA","#SPILL!","#CALC!","#CYCLE!"];export function errorOf(e){const t=e.toUpperCase(),n=$.find(r=>r===t);return n===void 0?void 0:CellError.of(n)}export class Matrix{rows;cols;data;constructor(t,n,r){this.rows=t,this.cols=n,this.data=r}at(t,n){return this.data[t*this.cols+n]??null}}const i=864e5,p=25569;function y(e){const t=e+p;return t<61?t-1:t}function M(e){const t=Math.floor(e);if(t!==60)return(t<60?t+1:t)-p}export function serialOf(e,t,n){const r=new Date(Date.UTC(2e3,t-1,1));return r.setUTCFullYear(r.getUTCFullYear()-2e3+e),y(Math.floor(r.getTime()/i))+n-1}export function dateOf(e){const t=M(e);if(t===void 0)return{year:1900,month:2,day:29};if(Math.floor(e)===0)return{year:1900,month:1,day:0};const n=new Date(t*i);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate()}}export function serialOfDate(e){const t=e.getTime(),n=Math.floor(t/i);return y(n)+(t-n*i)/i}export function dateOfSerial(e){const t=M(e);if(t===void 0)return;const n=e-Math.floor(e);return new Date(t*i+Math.round(n*i))}const a=(e,t=2)=>String(e).padStart(t,"0");export function isoOfSerial(e){const{year:t,month:n,day:r}=dateOf(e),s=`${a(t,4)}-${a(n)}-${a(r)}`,o=Math.round((e-Math.floor(e))*86400);if(o===0)return s;const u=o%60;return`${s}T${a(Math.floor(o/3600))}:${a(Math.floor(o/60)%60)}${u===0?"":`:${a(u)}`}`}export function numberText(e){if(e===0)return"0";const t=Number(e.toPrecision(15)),n=Math.floor(Math.log10(Math.abs(t)));if(n>=15||n<-10){const[s="",o="0"]=t.toExponential().split("e"),u=Number(o);return`${s}E${u<0?"-":"+"}${a(Math.abs(u))}`}const r=String(t);return r.includes("e")?t.toFixed(Math.min(20,Math.abs(n)+15)).replace(/0+$/u,""):r}const N=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?$/u,E=/^[+-]?\d{1,3}(?:,\d{3})+(?:\.\d+)?$/u,L=/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$/u,b=e=>/^[+-]?\d+$/u.test(e)&&e.replace(/^[+-]?0*/u,"").length>15;function A(e){const t=L.exec(e);if(!t)return;const[n,r,s]=[Number(t[1]),Number(t[2]),Number(t[3])],o=serialOf(n,r,s),u=dateOf(o);if(u.month!==r||u.day!==s)return;if(t[4]===void 0)return{value:o,format:"yyyy-mm-dd"};const[f,d,m]=[Number(t[4]),Number(t[5]),Number(t[6]??0)];if(f>23||d>59||m>59)return;const c=t[7];let h=0;if(c!==void 0&&c!=="Z"){const l=c.replace(":","");h=(l.startsWith("-")?1:-1)*(Number(l.slice(1,3))*60+Number(l.slice(3,5)))/1440}return{value:o+(f*3600+d*60+m)/86400+h,format:t[6]===void 0?"yyyy-mm-dd hh:mm":"yyyy-mm-dd hh:mm:ss"}}function U(e){const t=/^(\d{1,4}):([0-5]?\d)(?::([0-5]?\d))?(?:\s*([AaPp])[Mm]?)?$/u.exec(e)??/^(\d{1,2})()()\s*([AaPp])[Mm]?$/u.exec(e);if(!t)return;const n=Number(t[1]),r=t[2]===void 0||t[2]===""?0:Number(t[2]),s=t[3]===void 0||t[3]===""?0:Number(t[3]),o=t[4]?.toUpperCase();if(o!==void 0)return n<1||n>12?void 0:{value:((n%12+(o==="P"?12:0))*3600+r*60+s)/86400,format:t[3]?"h:mm:ss AM/PM":"h:mm AM/PM"};const u=(n*3600+r*60+s)/86400;return n>=24?{value:u,format:"[h]:mm:ss"}:{value:u,format:t[3]?"h:mm:ss":"h:mm"}}export function readTyped(e){if(e==="")return{value:null};if(e.startsWith("'"))return{value:e.slice(1)};if(e.length>1&&e.startsWith("="))return{value:null,formula:e};const t=e.trim();if(t==="")return{value:e};const n=t.toUpperCase();if(n==="TRUE")return{value:!0};if(n==="FALSE")return{value:!1};if(N.test(t))return b(t)?{value:e}:{value:Number(t)};if(t.endsWith("%")){const d=t.slice(0,-1).trim();if(N.test(d))return{value:Number(d)/100,format:d.includes(".")?"0.00%":"0%"}}if(E.test(t))return{value:Number(t.replaceAll(",","")),format:t.includes(".")?"#,##0.00":"#,##0"};const r=/^([+-]?)\$(\d[\d,]*(?:\.\d+)?)$/u.exec(t),s=r?.[2]?.replaceAll(",","");if(r&&s!==void 0)return{value:+`${r[1]??""}${s}`,format:t.includes(".")?"$#,##0.00":"$#,##0"};const o=A(t);if(o)return o;const u=U(t);if(u)return u;const f=errorOf(t);return f?{value:f}:{value:e}}export function writeTyped(e){if(e===null)return"";if(typeof e=="number"){const n=String(e);return b(n)?e.toExponential():n}if(typeof e=="boolean")return e?"TRUE":"FALSE";if(e instanceof CellError)return e.code;const t=readTyped(e);return t.value===e&&t.formula===void 0?e:`'${e}`}
2
+ export class CellError{static all=new Map;code;constructor(t){this.code=t}static of(t){let n=CellError.all.get(t);return n||(n=new CellError(t),CellError.all.set(t,n)),n}toString(){return this.code}toJSON(){return this.code}}export const ERR={NULL:CellError.of("#NULL!"),DIV0:CellError.of("#DIV/0!"),VALUE:CellError.of("#VALUE!"),REF:CellError.of("#REF!"),NAME:CellError.of("#NAME?"),NUM:CellError.of("#NUM!"),NA:CellError.of("#N/A"),SPILL:CellError.of("#SPILL!"),CALC:CellError.of("#CALC!"),CYCLE:CellError.of("#CYCLE!")};const $=["#NULL!","#DIV/0!","#VALUE!","#REF!","#NAME?","#NUM!","#N/A","#GETTING_DATA","#SPILL!","#CALC!","#CYCLE!"];export function errorOf(e){const t=e.toUpperCase(),n=$.find(r=>r===t);return n===void 0?void 0:CellError.of(n)}export class Matrix{rows;cols;data;constructor(t,n,r){this.rows=t,this.cols=n,this.data=r}at(t,n){return this.data[t*this.cols+n]??null}}const c=864e5,p=25569;function M(e){const t=e+p;return t<61?t-1:t}function y(e){const t=Math.floor(e);if(t!==60)return(t<60?t+1:t)-p}export function serialOf(e,t,n){const r=new Date(Date.UTC(2e3,t-1,1));return r.setUTCFullYear(r.getUTCFullYear()-2e3+e),M(Math.floor(r.getTime()/c))+n-1}export function dateOf(e){const t=y(e);return t===void 0?{year:1900,month:2,day:29}:Math.floor(e)===0?{year:1900,month:1,day:0}:E(t)}function E(e){const t=e+719468,n=Math.floor(t/146097),r=t-n*146097,u=Math.floor((r-Math.floor(r/1460)+Math.floor(r/36524)-Math.floor(r/146096))/365),o=r-(365*u+Math.floor(u/4)-Math.floor(u/100)),s=Math.floor((5*o+2)/153),f=o-Math.floor((153*s+2)/5)+1,i=s<10?s+3:s-9;return{year:u+n*400+(i<=2?1:0),month:i,day:f}}export function serialOfDate(e){const t=e.getTime(),n=Math.floor(t/c);return M(n)+(t-n*c)/c}export function dateOfSerial(e){const t=y(e);if(t===void 0)return;const n=e-Math.floor(e);return new Date(t*c+Math.round(n*c))}const a=(e,t=2)=>String(e).padStart(t,"0");export function isoOfSerial(e){const{year:t,month:n,day:r}=dateOf(e),u=`${a(t,4)}-${a(n)}-${a(r)}`,o=Math.round((e-Math.floor(e))*86400);if(o===0)return u;const s=o%60;return`${u}T${a(Math.floor(o/3600))}:${a(Math.floor(o/60)%60)}${s===0?"":`:${a(s)}`}`}export function numberText(e){if(e===0)return"0";const t=Number(e.toPrecision(15)),n=Math.floor(Math.log10(Math.abs(t)));if(n>=15||n<-10){const[u="",o="0"]=t.toExponential().split("e"),s=Number(o);return`${u}E${s<0?"-":"+"}${a(Math.abs(s))}`}const r=String(t);return r.includes("e")?t.toFixed(Math.min(20,Math.abs(n)+15)).replace(/0+$/u,""):r}const N=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?$/u,L=/^[+-]?\d{1,3}(?:,\d{3})+(?:\.\d+)?$/u,A=/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$/u,b=e=>/^[+-]?\d+$/u.test(e)&&e.replace(/^[+-]?0*/u,"").length>15;function U(e){const t=A.exec(e);if(!t)return;const[n,r,u]=[Number(t[1]),Number(t[2]),Number(t[3])],o=serialOf(n,r,u),s=dateOf(o);if(s.month!==r||s.day!==u)return;if(t[4]===void 0)return{value:o,format:"yyyy-mm-dd"};const[f,i,m]=[Number(t[4]),Number(t[5]),Number(t[6]??0)];if(f>23||i>59||m>59)return;const d=t[7];let h=0;if(d!==void 0&&d!=="Z"){const l=d.replace(":","");h=(l.startsWith("-")?1:-1)*(Number(l.slice(1,3))*60+Number(l.slice(3,5)))/1440}return{value:o+(f*3600+i*60+m)/86400+h,format:t[6]===void 0?"yyyy-mm-dd hh:mm":"yyyy-mm-dd hh:mm:ss"}}function C(e){const t=/^(\d{1,4}):([0-5]?\d)(?::([0-5]?\d))?(?:\s*([AaPp])[Mm]?)?$/u.exec(e)??/^(\d{1,2})()()\s*([AaPp])[Mm]?$/u.exec(e);if(!t)return;const n=Number(t[1]),r=t[2]===void 0||t[2]===""?0:Number(t[2]),u=t[3]===void 0||t[3]===""?0:Number(t[3]),o=t[4]?.toUpperCase();if(o!==void 0)return n<1||n>12?void 0:{value:((n%12+(o==="P"?12:0))*3600+r*60+u)/86400,format:t[3]?"h:mm:ss AM/PM":"h:mm AM/PM"};const s=(n*3600+r*60+u)/86400;return n>=24?{value:s,format:"[h]:mm:ss"}:{value:s,format:t[3]?"h:mm:ss":"h:mm"}}export function readTyped(e){if(e==="")return{value:null};if(e.startsWith("'"))return{value:e.slice(1)};if(e.length>1&&e.startsWith("="))return{value:null,formula:e};const t=e.trim();if(t==="")return{value:e};const n=t.toUpperCase();if(n==="TRUE")return{value:!0};if(n==="FALSE")return{value:!1};if(N.test(t))return b(t)?{value:e}:{value:Number(t)};if(t.endsWith("%")){const i=t.slice(0,-1).trim();if(N.test(i))return{value:Number(i)/100,format:i.includes(".")?"0.00%":"0%"}}if(L.test(t))return{value:Number(t.replaceAll(",","")),format:t.includes(".")?"#,##0.00":"#,##0"};const r=/^([+-]?)\$(\d[\d,]*(?:\.\d+)?)$/u.exec(t),u=r?.[2]?.replaceAll(",","");if(r&&u!==void 0)return{value:+`${r[1]??""}${u}`,format:t.includes(".")?"$#,##0.00":"$#,##0"};const o=U(t);if(o)return o;const s=C(t);if(s)return s;const f=errorOf(t);return f?{value:f}:{value:e}}export function writeTyped(e){if(e===null)return"";if(typeof e=="number"){const n=String(e);return b(n)?e.toExponential():n}if(typeof e=="boolean")return e?"TRUE":"FALSE";if(e instanceof CellError)return e.code;const t=readTyped(e);return t.value===e&&t.formula===void 0?e:`'${e}`}