allyhub 0.9.0 → 0.11.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 (582) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/commands/auth.js +4 -4
  3. package/dist/commands/cloud-tools.js +11 -11
  4. package/dist/commands/dev.js +2 -2
  5. package/dist/commands/frames/compare.js +2 -2
  6. package/dist/commands/frames/piece.js +1 -1
  7. package/dist/commands/frames/report.js +2 -0
  8. package/dist/commands/frames.js +11 -9
  9. package/dist/commands/index.js +1 -1
  10. package/dist/commands/inspect/common.js +4 -2
  11. package/dist/commands/inspect/facts.js +3 -3
  12. package/dist/commands/inspect/layout.js +1 -1
  13. package/dist/commands/orgs.js +2 -2
  14. package/dist/commands/render.js +2 -2
  15. package/dist/help.js +4 -4
  16. package/dist/main.js +8 -7
  17. package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +1 -1
  18. package/dist/node_modules/@allyhub/3d-extension/package.json +34 -2
  19. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  20. package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +29 -0
  21. package/dist/node_modules/@allyhub/browser/dist/emoji.js +57 -0
  22. package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +18 -0
  23. package/dist/node_modules/@allyhub/browser/dist/picture.js +2 -0
  24. package/dist/node_modules/@allyhub/browser/package.json +9 -1
  25. package/dist/node_modules/@allyhub/build/dist/index.d.ts +1 -0
  26. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  27. package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +7 -0
  28. package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +9 -0
  29. package/dist/node_modules/@allyhub/build/dist/made-notes.js +2 -0
  30. package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +17 -0
  31. package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +7 -0
  32. package/dist/node_modules/@allyhub/build/package.json +1 -1
  33. package/dist/node_modules/@allyhub/canvas-extension/package.json +2 -1
  34. package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +4 -24
  35. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  36. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  37. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  38. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  39. package/dist/node_modules/@allyhub/check/package.json +1 -1
  40. package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +10 -0
  41. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  42. package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +9 -0
  43. package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
  44. package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +4 -4
  45. package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
  46. package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
  47. package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
  48. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  49. package/dist/node_modules/@allyhub/components/package.json +1 -1
  50. package/dist/node_modules/@allyhub/components/r/callout.json +1 -1
  51. package/dist/node_modules/@allyhub/components/src/callout.ts +98 -13
  52. package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
  53. package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
  54. package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +2 -0
  55. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  56. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +2 -0
  57. package/dist/node_modules/@allyhub/dev-server/dist/ports.js +2 -0
  58. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  59. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  60. package/dist/node_modules/@allyhub/dev-server/dist/respond.js +2 -0
  61. package/dist/node_modules/@allyhub/dev-server/dist/reveal.js +1 -1
  62. package/dist/node_modules/@allyhub/dev-server/dist/routes.js +1 -1
  63. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  64. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  65. package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
  66. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  67. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +7 -0
  68. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  69. package/dist/node_modules/@allyhub/doc/dist/captions.js +1 -1
  70. package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
  71. package/dist/node_modules/@allyhub/doc/dist/html.js +51 -92
  72. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  73. package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
  74. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  75. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  76. package/dist/node_modules/@allyhub/doc/dist/write.js +22 -22
  77. package/dist/node_modules/@allyhub/doc/package.json +1 -1
  78. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  79. package/dist/node_modules/@allyhub/doc-extension/package.json +19 -6
  80. package/dist/node_modules/@allyhub/doc-print/dist/pages.js +5 -5
  81. package/dist/node_modules/@allyhub/doc-print/dist/print.js +10 -10
  82. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  83. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  84. package/dist/node_modules/@allyhub/export/package.json +1 -1
  85. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  86. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  87. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  88. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  89. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +87 -1
  90. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  91. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +89 -0
  92. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  93. package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +20 -0
  94. package/dist/node_modules/@allyhub/formats/dist/note-shape.js +1 -1
  95. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +50 -0
  96. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  97. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  98. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  99. package/dist/node_modules/@allyhub/image-extension/dist/export.js +4 -1
  100. package/dist/node_modules/@allyhub/image-extension/package.json +16 -6
  101. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +7 -39
  102. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  103. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  104. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  105. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  106. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  107. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  108. package/dist/node_modules/@allyhub/linkedin-extension/LICENSE +241 -0
  109. package/dist/node_modules/@allyhub/linkedin-extension/dist/article-build.js +2 -0
  110. package/dist/node_modules/@allyhub/linkedin-extension/dist/article-kind.js +2 -0
  111. package/dist/node_modules/@allyhub/linkedin-extension/dist/build-plugins.js +2 -0
  112. package/dist/node_modules/@allyhub/linkedin-extension/dist/build.js +5 -0
  113. package/dist/node_modules/@allyhub/linkedin-extension/dist/media.js +2 -0
  114. package/dist/node_modules/@allyhub/linkedin-extension/dist/stage-module.js +82 -0
  115. package/dist/node_modules/@allyhub/linkedin-extension/dist/stage.js +2 -0
  116. package/dist/node_modules/@allyhub/linkedin-extension/dist/workspace.js +2 -0
  117. package/dist/node_modules/@allyhub/linkedin-extension/package.json +287 -0
  118. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +12 -0
  119. package/dist/node_modules/@allyhub/linkedin-model/LICENSE +241 -0
  120. package/dist/node_modules/@allyhub/linkedin-model/dist/article-check.js +5 -0
  121. package/dist/node_modules/@allyhub/linkedin-model/dist/article.js +3 -0
  122. package/dist/node_modules/@allyhub/linkedin-model/dist/check.js +2 -0
  123. package/dist/node_modules/@allyhub/linkedin-model/dist/count.js +3 -0
  124. package/dist/node_modules/@allyhub/linkedin-model/dist/edit.js +3 -0
  125. package/dist/node_modules/@allyhub/linkedin-model/dist/html.js +19 -0
  126. package/dist/node_modules/@allyhub/linkedin-model/dist/index.js +2 -0
  127. package/dist/node_modules/@allyhub/linkedin-model/dist/limits.js +2 -0
  128. package/dist/node_modules/@allyhub/linkedin-model/dist/little.js +2 -0
  129. package/dist/node_modules/@allyhub/linkedin-model/dist/post.js +2 -0
  130. package/dist/node_modules/@allyhub/linkedin-model/dist/requests.js +2 -0
  131. package/dist/node_modules/@allyhub/linkedin-model/package.json +14 -0
  132. package/dist/node_modules/@allyhub/linkedin-view/LICENSE +241 -0
  133. package/dist/node_modules/@allyhub/linkedin-view/dist/article.js +2 -0
  134. package/dist/node_modules/@allyhub/linkedin-view/dist/fold.js +3 -0
  135. package/dist/node_modules/@allyhub/linkedin-view/dist/index.js +2 -0
  136. package/dist/node_modules/@allyhub/linkedin-view/dist/post.js +2 -0
  137. package/dist/node_modules/@allyhub/linkedin-view/dist/stage.js +2 -0
  138. package/dist/node_modules/@allyhub/linkedin-view/dist/text.js +2 -0
  139. package/dist/node_modules/@allyhub/linkedin-view/package.json +21 -0
  140. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +600 -0
  141. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  142. package/dist/node_modules/@allyhub/media/package.json +1 -1
  143. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
  144. package/dist/node_modules/@allyhub/media-extension/package.json +7 -4
  145. package/dist/node_modules/@allyhub/model/package.json +1 -1
  146. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  147. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  148. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +2 -0
  149. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +16 -0
  150. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +1 -1
  151. package/dist/node_modules/@allyhub/piece/dist/page/index.js +1 -1
  152. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +14 -1
  153. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
  154. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +18 -0
  155. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  156. package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
  157. package/dist/node_modules/@allyhub/project/package.json +1 -1
  158. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +140 -0
  159. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  160. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  161. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  162. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +157 -0
  163. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  164. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +10 -2
  165. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  166. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +101 -186
  167. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  168. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +1 -0
  169. package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
  170. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +92 -94
  171. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  172. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +17 -0
  173. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  174. package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +7 -0
  175. package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
  176. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +15 -3
  177. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  178. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  179. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  180. package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
  181. package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
  182. package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
  183. package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
  184. package/dist/node_modules/@allyhub/render/package.json +1 -1
  185. package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
  186. package/dist/node_modules/@allyhub/report-extension/dist/build.js +2 -0
  187. package/dist/node_modules/@allyhub/report-extension/dist/check.js +3 -0
  188. package/dist/node_modules/@allyhub/report-extension/dist/cli/find.js +2 -0
  189. package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +5 -0
  190. package/dist/node_modules/@allyhub/report-extension/dist/cli/picture.js +2 -0
  191. package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
  192. package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
  193. package/dist/node_modules/@allyhub/report-extension/dist/page.js +21 -0
  194. package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +21 -0
  195. package/dist/node_modules/@allyhub/report-extension/dist/styles.js +5 -0
  196. package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
  197. package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
  198. package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
  199. package/dist/node_modules/@allyhub/report-extension/package.json +182 -0
  200. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +132 -0
  201. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.css +105 -0
  202. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +17 -0
  203. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/tokens.js +38 -0
  204. package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
  205. package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
  206. package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
  207. package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
  208. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  209. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  210. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  211. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  212. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  213. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  214. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  215. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  216. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  217. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  218. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
  219. package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
  220. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +4 -3
  221. package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
  222. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
  223. package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
  224. package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
  225. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
  226. package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
  227. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +6 -0
  228. package/dist/node_modules/@allyhub/scenery-host/dist/viewer.js +1 -1
  229. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  230. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  231. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  232. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  233. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  234. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  235. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  236. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  237. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  238. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  239. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  240. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  241. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  242. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  243. package/dist/node_modules/@allyhub/sheet/dist/export.js +2 -4
  244. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  245. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  246. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  247. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  248. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  249. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  250. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  251. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  252. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  253. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  254. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  255. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  257. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  258. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  259. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  261. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  262. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -6
  263. package/dist/node_modules/@allyhub/sheet-extension/package.json +24 -9
  264. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  265. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  266. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  267. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  268. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  269. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +1 -1
  270. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  271. package/dist/node_modules/@allyhub/slides-extension/dist/export.js +1 -1
  272. package/dist/node_modules/@allyhub/slides-extension/package.json +22 -16
  273. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +2 -2
  274. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
  275. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  276. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  277. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  278. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  279. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  280. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  281. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
  282. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  283. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  284. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
  285. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  286. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  287. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
  288. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
  289. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
  290. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
  291. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
  292. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
  293. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
  294. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
  295. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
  296. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
  297. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
  298. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
  299. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
  300. package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
  301. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
  302. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
  303. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
  304. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
  305. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
  306. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
  307. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
  308. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
  309. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
  310. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
  311. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
  312. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
  313. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
  314. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
  315. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
  316. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
  317. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
  318. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
  319. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
  320. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
  321. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
  322. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
  323. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
  324. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
  325. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
  326. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
  327. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
  328. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
  329. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
  330. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
  331. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
  332. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
  333. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
  334. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
  335. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
  336. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
  337. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
  338. package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
  339. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
  340. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
  341. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
  342. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
  343. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
  344. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
  345. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
  346. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
  347. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
  348. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
  349. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
  350. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
  351. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
  352. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
  353. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
  354. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
  355. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
  356. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
  357. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
  358. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
  359. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
  360. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
  361. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
  362. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
  363. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
  364. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
  365. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
  366. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
  367. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
  368. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
  369. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
  370. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
  371. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
  372. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
  373. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
  374. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
  375. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
  376. package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
  377. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  378. package/dist/node_modules/@allyhub/stage-page/dist/install.js +1 -1
  379. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
  380. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +1 -1
  381. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  382. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +18 -18
  383. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  384. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  385. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  386. package/dist/node_modules/@allyhub/video-extension/dist/export.js +1 -1
  387. package/dist/node_modules/@allyhub/video-extension/package.json +17 -4
  388. package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
  389. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  390. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +1 -1
  391. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  392. package/dist/node_modules/@allyhub/website/package.json +1 -1
  393. package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
  394. package/dist/node_modules/@allyhub/website-extension/dist/preview.js +5 -5
  395. package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +24 -1
  396. package/dist/node_modules/@allyhub/website-extension/dist/tools.js +1 -1
  397. package/dist/node_modules/@allyhub/website-extension/package.json +49 -2
  398. package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -3
  399. package/dist/node_modules/@allyhub/x-extension/package.json +43 -15
  400. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +7 -62
  401. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  402. package/dist/node_modules/@allyhub/x-view/dist/article.js +1 -1
  403. package/dist/node_modules/@allyhub/x-view/dist/index.js +1 -1
  404. package/dist/node_modules/@allyhub/x-view/dist/post.js +2 -2
  405. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  406. package/dist/package.json +12 -10
  407. package/dist/text/facts-text.js +5 -5
  408. package/dist/text/index.js +1 -1
  409. package/dist/text/long-text.js +4 -0
  410. package/dist/works.js +1 -1
  411. package/editor-web/assets/{abnfDiagram-WEYOIA3C-CN5PiJYY.js → abnfDiagram-WEYOIA3C-BKmMA6gn.js} +1 -1
  412. package/editor-web/assets/{architecture-WOLXFQ4H-BnvZtQYk.js → architecture-WOLXFQ4H-BEFBgb4k.js} +1 -1
  413. package/editor-web/assets/{architectureDiagram-ZHVYKT53-tkcEcFQ8.js → architectureDiagram-ZHVYKT53-_u5YfCjY.js} +1 -1
  414. package/editor-web/assets/{arrow-up-DTP2yVSU.js → arrow-up-B5rJbBv0.js} +1 -1
  415. package/editor-web/assets/article-BUmD3xtR.js +8 -0
  416. package/editor-web/assets/article-DNioBb3p.js +7 -0
  417. package/editor-web/assets/{audio-lines-Ti8-m7H2.js → audio-lines-CzuzsGjI.js} +1 -1
  418. package/editor-web/assets/{blockDiagram-RJAE7QA3-DhqEIpie.js → blockDiagram-RJAE7QA3-DybfaO3Z.js} +1 -1
  419. package/editor-web/assets/bookmark-Dsd3kHJJ.js +1 -0
  420. package/editor-web/assets/button-eGxLxbv9.js +41 -0
  421. package/editor-web/assets/{c4Diagram-XDPPPE54-Bg9G95tl.js → c4Diagram-XDPPPE54-BfqLHB5i.js} +1 -1
  422. package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
  423. package/editor-web/assets/channel-TNPgFDrw.js +1 -0
  424. package/editor-web/assets/chart-C37xvZT2.js +1 -0
  425. package/editor-web/assets/chart-no-axes-column-BVkeF_Mr.js +1 -0
  426. package/editor-web/assets/{chunk-2E7WHVMD-C8Ve9lAa.js → chunk-2E7WHVMD-BVp1I_d0.js} +1 -1
  427. package/editor-web/assets/{chunk-4EMNKR2T-BDWwPUnT.js → chunk-4EMNKR2T-CTdgWEMr.js} +1 -1
  428. package/editor-web/assets/{chunk-55XCU76K-BQiNPKgx.js → chunk-55XCU76K-7pnsxeaP.js} +1 -1
  429. package/editor-web/assets/{chunk-7S6XSTFO-QoEt-6jf.js → chunk-7S6XSTFO-Dc0Dvkq7.js} +1 -1
  430. package/editor-web/assets/{chunk-AQDTSKZB-BeuwIv0-.js → chunk-AQDTSKZB-VAILIsfx.js} +1 -1
  431. package/editor-web/assets/{chunk-DSNLSHJZ-BHW7sLAz.js → chunk-DSNLSHJZ-CUDx1Rv5.js} +1 -1
  432. package/editor-web/assets/{chunk-HAGFOTED-bbGED0hu.js → chunk-HAGFOTED-DAoEe-dJ.js} +1 -1
  433. package/editor-web/assets/{chunk-HNE4Q36P-FltWp8yo.js → chunk-HNE4Q36P-g0akya12.js} +1 -1
  434. package/editor-web/assets/{chunk-NQOKRVIF-NeQzr6kH.js → chunk-NQOKRVIF-hTGjzXdJ.js} +1 -1
  435. package/editor-web/assets/{chunk-UHW7PFBP-eA4-WUhn.js → chunk-UHW7PFBP-BgLV8BIJ.js} +1 -1
  436. package/editor-web/assets/{chunk-VQ5W62QI-BPPv325z.js → chunk-VQ5W62QI-Bw19OOSD.js} +1 -1
  437. package/editor-web/assets/{chunk-WQQL4CDK-DOCIz7Te.js → chunk-WQQL4CDK-CMST9dyE.js} +1 -1
  438. package/editor-web/assets/{chunk-YZO67HFG-Dc_ihQJi.js → chunk-YZO67HFG-Bbpu36XF.js} +1 -1
  439. package/editor-web/assets/{chunk-ZAUX2LTX-CoqwCPSm.js → chunk-ZAUX2LTX-C48Ri0Gs.js} +1 -1
  440. package/editor-web/assets/{chunk-ZCHMQSOR-CZUQPkJx.js → chunk-ZCHMQSOR-DN1g01Oe.js} +1 -1
  441. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-DUh9c50k.js → classDiagram-v2-4MYWR3UA-U6jbPr2d.js} +1 -1
  442. package/editor-web/assets/collaborator-B1u2td9m.js +1 -0
  443. package/editor-web/assets/createLucideIcon-GFZ_fxLc.js +1 -0
  444. package/editor-web/assets/{cynefin-EF2NZ3EQ-DUTZiog0.js → cynefin-EF2NZ3EQ-gzkai_7-.js} +1 -1
  445. package/editor-web/assets/{cynefinDiagram-WF24UDRP-oAjpfbrU.js → cynefinDiagram-WF24UDRP-DtSekSr6.js} +1 -1
  446. package/editor-web/assets/{dagre-NK4GIZVX-BrKvKCvb.js → dagre-NK4GIZVX-CiUwYVT6.js} +1 -1
  447. package/editor-web/assets/{diagram-CBK3MWTC-GekVRnmm.js → diagram-CBK3MWTC-r9XHCV-k.js} +1 -1
  448. package/editor-web/assets/{diagram-I5XIIV2D-CDd1VFRT.js → diagram-I5XIIV2D-DxVsDZ34.js} +1 -1
  449. package/editor-web/assets/{diagram-ODIL2UCW-535RISTn.js → diagram-ODIL2UCW-B0eNQoHV.js} +1 -1
  450. package/editor-web/assets/{diagram-PFBEJUXE-MXzzKCGG.js → diagram-PFBEJUXE-C7f2MfJT.js} +1 -1
  451. package/editor-web/assets/{diagram-RJA3I4VV-vKVwkQxY.js → diagram-RJA3I4VV-CSXcnvct.js} +1 -1
  452. package/editor-web/assets/{diagram-TYUNFSNR-UwGAiQLx.js → diagram-TYUNFSNR-DXzOD_ii.js} +1 -1
  453. package/editor-web/assets/dist-BGRwhCQO.js +1 -0
  454. package/editor-web/assets/{dist-9ymlIMhr.js → dist-BW4X7BrF.js} +1 -1
  455. package/editor-web/assets/dist-BgDRE85b.js +2 -0
  456. package/editor-web/assets/dist-Blq5nJnU.js +24 -0
  457. package/editor-web/assets/dist-BuWaZ3Y4.js +274 -0
  458. package/editor-web/assets/dist-C1emZ9wX.js +37 -0
  459. package/editor-web/assets/dist-CC7OeU1e.js +6 -0
  460. package/editor-web/assets/dist-CX-fiPSn.js +38 -0
  461. package/editor-web/assets/dist-C_VvG-_9.js +5 -0
  462. package/editor-web/assets/dist-Ce7HrBxv.js +3 -0
  463. package/editor-web/assets/dist-D2k6w-_a.js +1 -0
  464. package/editor-web/assets/dist-DDv_SbKw.js +84 -0
  465. package/editor-web/assets/dist-DEoEO4zs.js +1 -0
  466. package/editor-web/assets/dist-DlDxxPIP.js +16 -0
  467. package/editor-web/assets/dist-Gz6NDS0J.js +4 -0
  468. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-73yGokYa.js → ebnfDiagram-V4P3TTPT-Cs4YRvDD.js} +1 -1
  469. package/editor-web/assets/{elk-QONTBCTQ-BW6V9y6a.js → elk-QONTBCTQ-Bh3LZ9WI.js} +1 -1
  470. package/editor-web/assets/{erDiagram-KYQIGQAA-BPqIJ22h.js → erDiagram-KYQIGQAA-C4vYTYXp.js} +1 -1
  471. package/editor-web/assets/{eventmodeling-K75KTNOO-_VZ8jvuy.js → eventmodeling-K75KTNOO-BN1kkHWS.js} +1 -1
  472. package/editor-web/assets/flowDiagram-IUGLLWBU-B04NGsyi.js +1 -0
  473. package/editor-web/assets/{ganttDiagram-R7GPNTJY-DZ157JN2.js → ganttDiagram-R7GPNTJY-CA1LkkC5.js} +1 -1
  474. package/editor-web/assets/{gitGraph-VSP46ZUC-fmcNL9bq.js → gitGraph-VSP46ZUC-Dy5tA7dG.js} +1 -1
  475. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DiZDyksR.js → gitGraphDiagram-PDYL7XHY-hJIB8EkH.js} +1 -1
  476. package/editor-web/assets/hint-B8JpEypy.js +1 -0
  477. package/editor-web/assets/index-CgB5osVc.js +28 -0
  478. package/editor-web/assets/index-Daytem9N.css +2 -0
  479. package/editor-web/assets/{info-OHQRW6UA-V06620kN.js → info-OHQRW6UA-DvzSf7rQ.js} +1 -1
  480. package/editor-web/assets/{infoDiagram-MVDRKAX5-CbIgheWX.js → infoDiagram-MVDRKAX5-BjIMm4Af.js} +1 -1
  481. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-D5oJQPkG.js → ishikawaDiagram-HPEHV2GE-Bpz71S40.js} +1 -1
  482. package/editor-web/assets/{italic-CDhZKo_q.js → italic-D10w8n6C.js} +1 -1
  483. package/editor-web/assets/{journeyDiagram-BOSHW7O7-BZEv6JI4.js → journeyDiagram-BOSHW7O7-DAB-pZjD.js} +1 -1
  484. package/editor-web/assets/{kanban-definition-FNSA4HC5-CLG1R8y_.js → kanban-definition-FNSA4HC5-cYeyh3P6.js} +1 -1
  485. package/editor-web/assets/katex-5Z2zF-9g.js +257 -0
  486. package/editor-web/assets/link-BC5xK1-1.js +1 -0
  487. package/editor-web/assets/{mermaid-parser.core-DxDwXM7z.js → mermaid-parser.core-req5LE0X.js} +3 -3
  488. package/editor-web/assets/{mermaid.core-tU55ZwVG.js → mermaid.core-zFwZug4C.js} +4 -4
  489. package/editor-web/assets/{mindmap-definition-6OY57UG3-CYf4zzAh.js → mindmap-definition-6OY57UG3-TStWb7DG.js} +1 -1
  490. package/editor-web/assets/minus-DaWs5i8B.js +1 -0
  491. package/editor-web/assets/{packet-JDAUHWVQ-DsHeKYNL.js → packet-JDAUHWVQ-smFhVKcB.js} +1 -1
  492. package/editor-web/assets/palette-BIOudGkm.js +1 -0
  493. package/editor-web/assets/{pegDiagram-ECIUJNBX-CQyh6TTa.js → pegDiagram-ECIUJNBX-DvSNRv0-.js} +1 -1
  494. package/editor-web/assets/{pie-XZMESJXO-3vCIvpNB.js → pie-XZMESJXO-qjaGsBZG.js} +1 -1
  495. package/editor-web/assets/{pieDiagram-GNMPY74T-DF5yGBLn.js → pieDiagram-GNMPY74T-Dd9P-Pdc.js} +1 -1
  496. package/editor-web/assets/play-CrMmPghG.js +1 -0
  497. package/editor-web/assets/progress-DE4C5_3x.js +6 -0
  498. package/editor-web/assets/props-form-CsmDBqzy.js +1 -0
  499. package/editor-web/assets/{quadrantDiagram-D57K4MC3-B7pxlDYP.js → quadrantDiagram-D57K4MC3-h2IIKUUA.js} +1 -1
  500. package/editor-web/assets/{radar-ABXABTNO-cpEA41mL.js → radar-ABXABTNO-DlVrSA1d.js} +1 -1
  501. package/editor-web/assets/{railroad-I3PHUGI6-BLyy5R2c.js → railroad-I3PHUGI6-nFbuLAtc.js} +1 -1
  502. package/editor-web/assets/{railroad-abnf-LNEFI6M7-Y-oyol19.js → railroad-abnf-LNEFI6M7-Daj8h2iV.js} +1 -1
  503. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-o58wHZsr.js → railroad-ebnf-DWYD2UWJ-eYJyl5PH.js} +1 -1
  504. package/editor-web/assets/{railroad-peg-JR7BVNR7-CcD3PXZ8.js → railroad-peg-JR7BVNR7-BTRhKZQq.js} +1 -1
  505. package/editor-web/assets/{railroadDiagram-Y72NRBL7-BuCC4eyy.js → railroadDiagram-Y72NRBL7-CeLGUjdp.js} +1 -1
  506. package/editor-web/assets/react-WA6wlt8S.js +1 -0
  507. package/editor-web/assets/{repeat-2-C5PCbNsg.js → repeat-2-VQP1EVOZ.js} +1 -1
  508. package/editor-web/assets/{requirementDiagram-EQYSW5RA-Dp-JFGn4.js → requirementDiagram-EQYSW5RA-Dmk9XRM5.js} +1 -1
  509. package/editor-web/assets/row-BRlEWRrK.js +1 -0
  510. package/editor-web/assets/{sankeyDiagram-SY24JHO5-rYuCqEvw.js → sankeyDiagram-SY24JHO5-Yn4zlrAM.js} +1 -1
  511. package/editor-web/assets/schemas-VikZYZIK.js +1 -0
  512. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DryW8x6d.js → sequenceDiagram-BLEHNHQU-BTRnp_PW.js} +1 -1
  513. package/editor-web/assets/session-Do9AqS38.js +1 -0
  514. package/editor-web/assets/slides-diTEQ3C5.js +1 -0
  515. package/editor-web/assets/snapshots-BUGlKQIB.js +56 -0
  516. package/editor-web/assets/sound-Bj3o9_Fa.js +1 -0
  517. package/editor-web/assets/split-CNU1RHcX.js +3 -0
  518. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js → stateDiagram-v2-A6IESKWZ-kstrRKv2.js} +1 -1
  519. package/editor-web/assets/{strikethrough-DJckA35o.js → strikethrough-CfXx6IYH.js} +1 -1
  520. package/editor-web/assets/{svg-BjM9RazX.js → svg-Cx50MpxK.js} +1 -1
  521. package/editor-web/assets/swatch-WeJD41aW.js +1 -0
  522. package/editor-web/assets/{swimlanes-B3ENRKFQ-BiRRhhbd.js → swimlanes-B3ENRKFQ-DaZsZkeP.js} +1 -1
  523. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CBZAujYY.js +8 -0
  524. package/editor-web/assets/switch-N0G_sbqt.js +1 -0
  525. package/editor-web/assets/syntax-BVsgRJ4I.js +66 -0
  526. package/editor-web/assets/syntax-oWsKBWFw.js +1 -0
  527. package/editor-web/assets/table-B6hVZAMi.js +1 -0
  528. package/editor-web/assets/tabs-DIFDqj-l.js +1 -0
  529. package/editor-web/assets/{textarea-BGtPqZdB.js → textarea-tEWvBY9p.js} +1 -1
  530. package/editor-web/assets/{timeline-definition-JXYKGLGB-D-Q5ZtDF.js → timeline-definition-JXYKGLGB-CLCvY-Yf.js} +1 -1
  531. package/editor-web/assets/{trash-2-Bjj6cWzP.js → trash-2-BP6nqpg2.js} +1 -1
  532. package/editor-web/assets/{treeView-D4JQ5SDB-B6DDatXq.js → treeView-D4JQ5SDB-BmN0gwdC.js} +1 -1
  533. package/editor-web/assets/{treemap-SAJKECNS-D7j5ZhiI.js → treemap-SAJKECNS-DN29G_E_.js} +1 -1
  534. package/editor-web/assets/{undo-2-yOSG766T.js → undo-2-CHR0nvWL.js} +1 -1
  535. package/editor-web/assets/{usecaseDiagram-WPOLBNNX-tkrdKUJB.js → usecaseDiagram-WPOLBNNX-DTRS54cB.js} +1 -1
  536. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-Ch4XbSnD.js → vennDiagram-Q3Y3IDCW-DAAc11Hx.js} +1 -1
  537. package/editor-web/assets/video-BlvmR8BK.js +1 -0
  538. package/editor-web/assets/{wardley-7MLQ67FV-Bynt7qNQ.js → wardley-7MLQ67FV-B-UYkmdB.js} +1 -1
  539. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DRuSgm_L.js → wardleyDiagram-IVAIDKWA-BmbwCaky.js} +1 -1
  540. package/editor-web/assets/words-D_4T9Adq.js +3 -0
  541. package/editor-web/assets/words-WgdEQdYP.js +2 -0
  542. package/editor-web/assets/{xychartDiagram-4URNHDU4-DctpvfkL.js → xychartDiagram-4URNHDU4-ChAfAq1U.js} +1 -1
  543. package/editor-web/index.html +6 -5
  544. package/package.json +8 -2
  545. package/editor-web/assets/alt-BOVao_9S.js +0 -4
  546. package/editor-web/assets/article-B6YCzhj8.js +0 -73
  547. package/editor-web/assets/calc-worker-B5-fDWnb.js +0 -45
  548. package/editor-web/assets/channel-C26aBI4o.js +0 -1
  549. package/editor-web/assets/chart-BOnxneyw.js +0 -1
  550. package/editor-web/assets/choice-O5nwc2N0.js +0 -1
  551. package/editor-web/assets/collaborator-BJU5qwHd.js +0 -1
  552. package/editor-web/assets/createLucideIcon-B3B95oX5.js +0 -1
  553. package/editor-web/assets/dist-C6NqUEG4.js +0 -16
  554. package/editor-web/assets/dist-C9UGmCG9.js +0 -6
  555. package/editor-web/assets/dist-CAk5bjBm.js +0 -1
  556. package/editor-web/assets/dist-CKyfo5RM.js +0 -340
  557. package/editor-web/assets/dist-CRaWqNwq.js +0 -37
  558. package/editor-web/assets/dist-CwIBc7HQ.js +0 -1
  559. package/editor-web/assets/dist-DXRmkezB.js +0 -38
  560. package/editor-web/assets/dist-EKK5i0dG.js +0 -219
  561. package/editor-web/assets/dist-hHJlpLWo.js +0 -5
  562. package/editor-web/assets/dist-oYKcwWUj.js +0 -4
  563. package/editor-web/assets/dist-shKo7XVN.js +0 -2
  564. package/editor-web/assets/dist-wrKxBrVu.js +0 -24
  565. package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +0 -1
  566. package/editor-web/assets/hint-_AQWCDMj.js +0 -1
  567. package/editor-web/assets/index-BsstP-cI.js +0 -28
  568. package/editor-web/assets/index-DQRcmxBO.css +0 -2
  569. package/editor-web/assets/minus-Cgmm6ncD.js +0 -1
  570. package/editor-web/assets/progress-0B_TVsPi.js +0 -6
  571. package/editor-web/assets/react-BP46yLMB.js +0 -1
  572. package/editor-web/assets/react-pgBZqVxJ.js +0 -96
  573. package/editor-web/assets/schemas-Ewwjtbf4.js +0 -1
  574. package/editor-web/assets/session-DiI9KYRI.js +0 -1
  575. package/editor-web/assets/slides-CCwgBcGH.js +0 -1
  576. package/editor-web/assets/sound-CqryteNl.js +0 -1
  577. package/editor-web/assets/swatch-DL3HqIjW.js +0 -1
  578. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +0 -8
  579. package/editor-web/assets/switch-DltnKqN-.js +0 -1
  580. package/editor-web/assets/syntax-CC6QYhCz.js +0 -1
  581. package/editor-web/assets/tabs-C-re0Kxn.js +0 -1
  582. package/editor-web/assets/video-DXFiCNGc.js +0 -1
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{jsx as e,Fragment as h,jsxs as t}from"react/jsx-runtime";import m from"highlight.js/lib/common";import f from"katex";import{Copy as x}from"lucide-react";import{markdownShown as k,mediaKind as v}from"@allyhub/x-model";import{Actions as N,PLACEHOLDER as u,clock as g}from"./post.js";import{runsOf as w,shownLink as p}from"./text.js";function y({text:n}){return e(h,{children:w(n).map((a,i)=>a.link===!0?e("span",{className:"ak-x-a-link",children:a.text},i):a.text)})}export function Equation({tex:n}){const a=f.renderToString(n,{displayMode:!0,output:"mathml",throwOnError:!1});return e("div",{className:"ak-x-a-math",dangerouslySetInnerHTML:{__html:a}})}export function CodeBlock({code:n,lang:a}){const r=a!==void 0&&m.getLanguage(a)!==void 0?m.highlight(n,{language:a,ignoreIllegals:!0}).value:void 0;return t("div",{className:"ak-x-a-code",children:[t("div",{className:"ak-x-a-code-bar",children:[e("span",{children:a??""}),e(x,{"aria-hidden":"true"})]}),r===void 0?e("pre",{children:n}):e("pre",{dangerouslySetInnerHTML:{__html:r}})]})}export function MarkdownBlock({markdown:n}){const a=k(n);if(a.type==="table"){const[i,...r]=a.rows;return t("table",{className:"ak-x-a-table",children:[i===void 0?null:e("thead",{children:e("tr",{children:i.map((d,l)=>e("th",{children:d},l))})}),e("tbody",{children:r.map((d,l)=>e("tr",{children:d.map((s,o)=>e("td",{children:s},o))},l))})]})}return a.type==="code"?e(CodeBlock,{code:a.code,lang:a.lang}):e("pre",{children:a.text})}export function LinkCard({url:n}){let a=n;try{a=new URL(n).host.replace(/^www\./u,"")}catch{}return t("div",{className:"ak-x-a-linkcard",children:[t("div",{className:"ak-x-a-linkcard-box",children:[e("span",{className:"ak-x-a-linkcard-host",children:a}),e("span",{className:"ak-x-a-linkcard-url",children:p(n)})]}),t("div",{className:"ak-x-a-from",children:["From ",a]})]})}function L({file:n,src:a,alt:i,measure:r}){const d=v(n.split("#")[0]?.split(".").pop()??"");if(a===void 0)return e("div",{className:"ak-x-made",children:n});if(d==="video"){const l=r?.width,s=r?.height,o=l!==void 0&&s!==void 0&&s>0?Math.max(l/s,1):16/9;return t("div",{className:"ak-x-a-video",style:{aspectRatio:String(o)},children:[e("video",{src:`${a}#t=0.1`,muted:!0,playsInline:!0,preload:"auto"}),e("span",{className:"ak-x-play","aria-hidden":"true"}),r?.seconds===void 0?null:e("div",{className:"ak-x-labels",children:e("span",{className:"ak-x-label ak-x-clock",children:g(r.seconds)})})]})}return t("div",{className:"ak-x-a-picture",children:[e("img",{src:a,alt:i??"","data-gif":d==="gif"?"":void 0}),d==="gif"?e("div",{className:"ak-x-labels",children:e("span",{className:"ak-x-label",children:"GIF"})}):null]})}function _({run:n}){let a=n.link===void 0?e(y,{text:n.text}):n.text;return n.strike===!0&&(a=e("s",{children:a})),n.italic===!0&&(a=e("em",{children:a})),n.bold===!0&&(a=e("strong",{children:a})),n.link!==void 0&&(a=e("span",{className:"ak-x-a-link",children:a})),a}const c=({runs:n})=>e(h,{children:n.map((a,i)=>e(_,{run:a},i))});export function ArticleBlockView({block:n,source:a,measure:i}){switch(n.type){case"paragraph":return e("p",{dir:"auto",children:n.runs.length===0?e("br",{}):e(c,{runs:n.runs})});case"h1":return e("h1",{dir:"auto",children:e(c,{runs:n.runs})});case"h2":return e("h2",{dir:"auto",children:e(c,{runs:n.runs})});case"quote":return e("blockquote",{dir:"auto",children:e(c,{runs:n.runs})});case"ul":case"ol":{const r=n.type==="ul"?"ul":"ol";return e(r,{children:n.items.map((d,l)=>e("li",{dir:"auto",children:e(c,{runs:d})},l))})}case"image":return t("figure",{children:[e(L,{file:n.file,src:a(n.file),alt:n.alt,measure:i?.(n.file)}),n.caption===void 0?null:e("figcaption",{dir:"auto",children:n.caption})]});case"post":return e("div",{className:"ak-x-a-post",children:p(n.url)});case"link":return e(LinkCard,{url:n.url});case"divider":return e("hr",{});case"latex":return e(Equation,{tex:n.tex});case"markdown":return e(MarkdownBlock,{markdown:n.markdown})}}function A(){return t("div",{className:"ak-x-a-by",children:[e("div",{className:"ak-x-avatar","aria-hidden":"true",children:u.name.slice(0,1)}),t("div",{className:"ak-x-a-who",children:[e("span",{className:"ak-x-name",children:u.name}),t("span",{className:"ak-x-handle",children:["@",u.handle]})]})]})}export function ArticleBody({article:n,source:a,measure:i}){return e("div",{className:"ak-x-a-body",children:n.blocks.map((r,d)=>e(ArticleBlockView,{block:r,source:a,measure:i},d))})}export function ArticleView({article:n,source:a,measure:i}){const r=n.cover===void 0?void 0:a(n.cover.file);return t("article",{className:"ak-x-article",children:[e(A,{}),n.cover===void 0?null:e("div",{className:"ak-x-a-cover",children:r===void 0?e("div",{className:"ak-x-made",children:n.cover.file}):e("img",{src:r,alt:n.cover.alt??""})}),e("h1",{className:"ak-x-a-title",dir:"auto",children:n.title}),e(N,{}),e(ArticleBody,{article:n,source:a,measure:i})]})}
2
+ import{jsx as e,Fragment as h,jsxs as t}from"react/jsx-runtime";import{useContext as x}from"react";import m from"highlight.js/lib/common";import k from"katex";import{Copy as v}from"lucide-react";import{markdownShown as N,mediaKind as g}from"@allyhub/x-model";import{Actions as w,PLACEHOLDER as u,VideoElement as y,clock as L}from"./post.js";import{runsOf as _,shownLink as p}from"./text.js";function A({text:n}){return e(h,{children:_(n).map((a,i)=>a.link===!0?e("span",{className:"ak-x-a-link",children:a.text},i):a.text)})}export function Equation({tex:n}){const a=k.renderToString(n,{displayMode:!0,output:"mathml",throwOnError:!1});return e("div",{className:"ak-x-a-math",dangerouslySetInnerHTML:{__html:a}})}export function CodeBlock({code:n,lang:a}){const r=a!==void 0&&m.getLanguage(a)!==void 0?m.highlight(n,{language:a,ignoreIllegals:!0}).value:void 0;return t("div",{className:"ak-x-a-code",children:[t("div",{className:"ak-x-a-code-bar",children:[e("span",{children:a??""}),e(v,{"aria-hidden":"true"})]}),r===void 0?e("pre",{children:n}):e("pre",{dangerouslySetInnerHTML:{__html:r}})]})}export function MarkdownBlock({markdown:n}){const a=N(n);if(a.type==="table"){const[i,...r]=a.rows;return t("table",{className:"ak-x-a-table",children:[i===void 0?null:e("thead",{children:e("tr",{children:i.map((d,l)=>e("th",{children:d},l))})}),e("tbody",{children:r.map((d,l)=>e("tr",{children:d.map((o,s)=>e("td",{children:o},s))},l))})]})}return a.type==="code"?e(CodeBlock,{code:a.code,lang:a.lang}):e("pre",{children:a.text})}export function LinkCard({url:n}){let a=n;try{a=new URL(n).host.replace(/^www\./u,"")}catch{}return t("div",{className:"ak-x-a-linkcard",children:[t("div",{className:"ak-x-a-linkcard-box",children:[e("span",{className:"ak-x-a-linkcard-host",children:a}),e("span",{className:"ak-x-a-linkcard-url",children:p(n)})]}),t("div",{className:"ak-x-a-from",children:["From ",a]})]})}function M({file:n,src:a,alt:i,measure:r}){const d=x(y),l=g(n.split("#")[0]?.split(".").pop()??"");if(a===void 0)return e("div",{className:"ak-x-made",children:n});if(l==="video"){const o=r?.width,s=r?.height,f=o!==void 0&&s!==void 0&&s>0?Math.max(o/s,1):16/9;return t("div",{className:"ak-x-a-video",style:{aspectRatio:String(f)},children:[d({src:`${a}#t=0.1`,muted:!0,playsInline:!0,preload:"auto"},n),e("span",{className:"ak-x-play","aria-hidden":"true"}),r?.seconds===void 0?null:e("div",{className:"ak-x-labels",children:e("span",{className:"ak-x-label ak-x-clock",children:L(r.seconds)})})]})}return t("div",{className:"ak-x-a-picture",children:[e("img",{src:a,alt:i??"","data-gif":l==="gif"?"":void 0}),l==="gif"?e("div",{className:"ak-x-labels",children:e("span",{className:"ak-x-label",children:"GIF"})}):null]})}function j({run:n}){let a=n.link===void 0?e(A,{text:n.text}):n.text;return n.strike===!0&&(a=e("s",{children:a})),n.italic===!0&&(a=e("em",{children:a})),n.bold===!0&&(a=e("strong",{children:a})),n.link!==void 0&&(a=e("span",{className:"ak-x-a-link",children:a})),a}const c=({runs:n})=>e(h,{children:n.map((a,i)=>e(j,{run:a},i))});export function ArticleBlockView({block:n,source:a,measure:i}){switch(n.type){case"paragraph":return e("p",{dir:"auto",children:n.runs.length===0?e("br",{}):e(c,{runs:n.runs})});case"h1":return e("h1",{dir:"auto",children:e(c,{runs:n.runs})});case"h2":return e("h2",{dir:"auto",children:e(c,{runs:n.runs})});case"quote":return e("blockquote",{dir:"auto",children:e(c,{runs:n.runs})});case"ul":case"ol":{const r=n.type==="ul"?"ul":"ol";return e(r,{children:n.items.map((d,l)=>e("li",{dir:"auto",children:e(c,{runs:d})},l))})}case"image":return t("figure",{children:[e(M,{file:n.file,src:a(n.file),alt:n.alt,measure:i?.(n.file)}),n.caption===void 0?null:e("figcaption",{dir:"auto",children:n.caption})]});case"post":return e("div",{className:"ak-x-a-post",children:p(n.url)});case"link":return e(LinkCard,{url:n.url});case"divider":return e("hr",{});case"latex":return e(Equation,{tex:n.tex});case"markdown":return e(MarkdownBlock,{markdown:n.markdown})}}function B(){return t("div",{className:"ak-x-a-by",children:[e("div",{className:"ak-x-avatar","aria-hidden":"true",children:u.name.slice(0,1)}),t("div",{className:"ak-x-a-who",children:[e("span",{className:"ak-x-name",children:u.name}),t("span",{className:"ak-x-handle",children:["@",u.handle]})]})]})}export function ArticleBody({article:n,source:a,measure:i}){return e("div",{className:"ak-x-a-body",children:n.blocks.map((r,d)=>e(ArticleBlockView,{block:r,source:a,measure:i},d))})}export function ArticleView({article:n,source:a,measure:i}){const r=n.cover===void 0?void 0:a(n.cover.file);return t("article",{className:"ak-x-article",children:[e(B,{}),n.cover===void 0?null:e("div",{className:"ak-x-a-cover",children:r===void 0?e("div",{className:"ak-x-made",children:n.cover.file}):e("img",{src:r,alt:n.cover.alt??""})}),e("h1",{className:"ak-x-a-title",dir:"auto",children:n.title}),e(w,{}),e(ArticleBody,{article:n,source:a,measure:i})]})}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{Actions,FOLD,MediaGrid,PLACEHOLDER,Post,PostText,Quote,TIMELINE_WIDTH,Thread,clock,folded}from"./post.js";export{ArticleBlockView,ArticleBody,ArticleView,CodeBlock,Equation,LinkCard,MarkdownBlock}from"./article.js";export{runsOf,shownLink}from"./text.js";
2
+ export{Actions,FOLD,MediaGrid,PLACEHOLDER,Post,PostText,Quote,TIMELINE_WIDTH,Thread,VideoElement,clock,folded}from"./post.js";export{ArticleBlockView,ArticleBody,ArticleView,CodeBlock,Equation,LinkCard,MarkdownBlock}from"./article.js";export{runsOf,shownLink}from"./text.js";
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{jsx as n,jsxs as l,Fragment as c}from"react/jsx-runtime";import{Bookmark as o,ChartNoAxesColumn as u,Heart as h,MessageCircle as x,Repeat2 as f,Share as m}from"lucide-react";import{runsOf as k}from"./text.js";export function Actions(){return l("div",{className:"ak-x-actions","aria-hidden":"true",children:[n(x,{}),n(f,{}),n(h,{}),n(u,{}),l("span",{className:"ak-x-actions-end",children:[n(o,{}),n(m,{})]})]})}export const FOLD=280;export function folded(e){const d=Array.from(e);if(d.length<=FOLD)return;const a=d.slice(0,FOLD),t=d[FOLD]??"";if(!/\s/u.test(t)){const i=a.findLastIndex(r=>/\s/u.test(r));i>0&&(a.length=i)}return a.join("").trimEnd()}export const TIMELINE_WIDTH=598,PLACEHOLDER={name:"AllyHub",handle:"allyhub"};export function clock(e){const d=Math.round(e),a=Math.floor(d/3600),t=Math.floor(d%3600/60),i=r=>String(r).padStart(2,"0");return a>0?`${String(a)}:${i(t)}:${i(d%60)}`:`${String(t)}:${i(d%60)}`}function p({m:e}){const d=e.width!==void 0&&e.height!==void 0&&e.height>0?{aspectRatio:`${String(e.width)} / ${String(e.height)}`}:void 0;return l("div",{className:"ak-x-video",style:d,children:[e.src===void 0?null:n("video",{src:`${e.src}#t=0.1`,muted:!0,playsInline:!0,preload:"auto"}),n("span",{className:"ak-x-play","aria-hidden":"true"})]})}function N({m:e,slot:d,alt:a}){const t=e.kind==="gif"?"GIF":e.kind==="video"&&e.seconds!==void 0?clock(e.seconds):void 0,i=a??(e.alt===void 0||e.alt===""?null:n("span",{className:"ak-x-label",children:"ALT"}));return l("div",{className:"ak-x-medium",children:[e.kind==="made"||e.src===void 0?n("div",{className:"ak-x-made",children:e.label}):e.kind==="video"?n(p,{m:e}):n("img",{src:e.src,alt:e.alt??"","data-gif":e.kind==="gif"?"":void 0}),t===void 0&&i===null?null:l("div",{className:"ak-x-labels",children:[t===void 0?null:n("span",{className:e.kind==="video"?"ak-x-label ak-x-clock":"ak-x-label",children:t}),i]}),d]})}export function Quote({id:e}){return l("div",{className:"ak-x-quote",children:["x.com/i/status/",e]})}export function MediaGrid({media:e,onMedium:d,onAlt:a}){return e.length===0?null:n("div",{className:"ak-x-media","data-count":Math.min(e.length,4),children:e.slice(0,4).map((t,i)=>n(N,{m:t,slot:d?.(i),alt:a?.(i)},i))})}export function PostText({text:e,whole:d=!1}){return l("div",{className:"ak-x-text",dir:"auto","aria-hidden":d?!0:void 0,children:[k(e,!d).map((a,t)=>a.link===!0?n("span",{className:"ak-x-link",children:a.text},t):a.text),d&&e.endsWith(`
3
- `)?"​":null]})}export function Post({post:e,joined:d=!1,slots:a={},published:t=!1}){const i=t?folded(e.text):void 0;return l("article",{className:"ak-x-post","data-joined":d?"":void 0,children:[l("div",{className:"ak-x-side",children:[n("div",{className:"ak-x-avatar","aria-hidden":"true",children:PLACEHOLDER.name.slice(0,1)}),d?n("div",{className:"ak-x-thread-line"}):null]}),l("div",{className:"ak-x-body",children:[l("header",{className:"ak-x-head",children:[n("span",{className:"ak-x-name",children:PLACEHOLDER.name}),l("span",{className:"ak-x-handle",children:["@",PLACEHOLDER.handle]}),a.aside===void 0?null:n("span",{className:"ak-x-aside",children:a.aside})]}),a.text??(e.text===""?null:i===void 0?n(PostText,{text:e.text}):l(c,{children:[n(PostText,{text:i}),n("div",{className:"ak-x-more",children:"Show more"})]})),n(MediaGrid,{media:e.media,onMedium:a.onMedium,onAlt:a.onAlt}),a.poll??(e.poll?n("div",{className:"ak-x-poll",children:e.poll.options.map((r,s)=>n("div",{className:"ak-x-option",dir:"auto",children:r},s))}):null),e.quote===void 0?null:n(Quote,{id:e.quote}),t?n(Actions,{}):null,a.after]})]})}export function Thread({posts:e}){return n("div",{className:"ak-x-thread",children:e.map((d,a)=>n(Post,{post:d,joined:a<e.length-1},a))})}
2
+ import{jsx as n,jsxs as l,Fragment as c}from"react/jsx-runtime";import{createContext as o,useContext as u}from"react";import{Bookmark as h,ChartNoAxesColumn as x,Heart as f,MessageCircle as m,Repeat2 as k,Share as p}from"lucide-react";import{runsOf as N}from"./text.js";export const VideoElement=o(e=>n("video",{...e}));export function Actions(){return l("div",{className:"ak-x-actions","aria-hidden":"true",children:[n(m,{}),n(k,{}),n(f,{}),n(x,{}),l("span",{className:"ak-x-actions-end",children:[n(h,{}),n(p,{})]})]})}export const FOLD=280;export function folded(e){const t=Array.from(e);if(t.length<=FOLD)return;const a=t.slice(0,FOLD),d=t[FOLD]??"";if(!/\s/u.test(d)){const i=a.findLastIndex(r=>/\s/u.test(r));i>0&&(a.length=i)}return a.join("").trimEnd()}export const TIMELINE_WIDTH=598,PLACEHOLDER={name:"AllyHub",handle:"allyhub"};export function clock(e){const t=Math.round(e),a=Math.floor(t/3600),d=Math.floor(t%3600/60),i=r=>String(r).padStart(2,"0");return a>0?`${String(a)}:${i(d)}:${i(t%60)}`:`${String(d)}:${i(t%60)}`}function v({m:e}){const t=u(VideoElement),a=e.width!==void 0&&e.height!==void 0&&e.height>0?{aspectRatio:`${String(e.width)} / ${String(e.height)}`}:void 0;return l("div",{className:"ak-x-video",style:a,children:[e.src===void 0?null:t({src:`${e.src}#t=0.1`,muted:!0,playsInline:!0,preload:"auto"},e.file),n("span",{className:"ak-x-play","aria-hidden":"true"})]})}function g({m:e,slot:t,alt:a}){const d=e.kind==="gif"?"GIF":e.kind==="video"&&e.seconds!==void 0?clock(e.seconds):void 0,i=a??(e.alt===void 0||e.alt===""?null:n("span",{className:"ak-x-label",children:"ALT"}));return l("div",{className:"ak-x-medium",children:[e.kind==="made"||e.src===void 0?n("div",{className:"ak-x-made",children:e.label}):e.kind==="video"?n(v,{m:e}):n("img",{src:e.src,alt:e.alt??"","data-gif":e.kind==="gif"?"":void 0}),d===void 0&&i===null?null:l("div",{className:"ak-x-labels",children:[d===void 0?null:n("span",{className:e.kind==="video"?"ak-x-label ak-x-clock":"ak-x-label",children:d}),i]}),t]})}export function Quote({id:e}){return l("div",{className:"ak-x-quote",children:["x.com/i/status/",e]})}export function MediaGrid({media:e,onMedium:t,onAlt:a}){return e.length===0?null:n("div",{className:"ak-x-media","data-count":Math.min(e.length,4),children:e.slice(0,4).map((d,i)=>n(g,{m:d,slot:t?.(i),alt:a?.(i)},i))})}export function PostText({text:e,whole:t=!1}){return l("div",{className:"ak-x-text",dir:"auto","aria-hidden":t?!0:void 0,children:[N(e,!t).map((a,d)=>a.link===!0?n("span",{className:"ak-x-link",children:a.text},d):a.text),t&&e.endsWith(`
3
+ `)?"​":null]})}export function Post({post:e,joined:t=!1,slots:a={},published:d=!1}){const i=d?folded(e.text):void 0;return l("article",{className:"ak-x-post","data-joined":t?"":void 0,children:[l("div",{className:"ak-x-side",children:[n("div",{className:"ak-x-avatar","aria-hidden":"true",children:PLACEHOLDER.name.slice(0,1)}),t?n("div",{className:"ak-x-thread-line"}):null]}),l("div",{className:"ak-x-body",children:[l("header",{className:"ak-x-head",children:[n("span",{className:"ak-x-name",children:PLACEHOLDER.name}),l("span",{className:"ak-x-handle",children:["@",PLACEHOLDER.handle]}),a.aside===void 0?null:n("span",{className:"ak-x-aside",children:a.aside})]}),a.text??(e.text===""?null:i===void 0?n(PostText,{text:e.text}):l(c,{children:[n(PostText,{text:i}),n("div",{className:"ak-x-more",children:"Show more"})]})),n(MediaGrid,{media:e.media,onMedium:a.onMedium,onAlt:a.onAlt}),a.poll??(e.poll?n("div",{className:"ak-x-poll",children:e.poll.options.map((r,s)=>n("div",{className:"ak-x-option",dir:"auto",children:r},s))}):null),e.quote===void 0?null:n(Quote,{id:e.quote}),d?n(Actions,{}):null,a.after]})]})}export function Thread({posts:e}){return n("div",{className:"ak-x-thread",children:e.map((t,a)=>n(Post,{post:t,joined:a<e.length-1},a))})}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub/x-view",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
package/dist/package.json CHANGED
@@ -2,15 +2,17 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@allyhub/3d-extension": "0.9.0",
6
- "@allyhub/canvas-extension": "0.9.0",
7
- "@allyhub/doc-extension": "0.9.0",
8
- "@allyhub/image-extension": "0.9.0",
9
- "@allyhub/media-extension": "0.9.0",
10
- "@allyhub/sheet-extension": "0.9.0",
11
- "@allyhub/slides-extension": "0.9.0",
12
- "@allyhub/video-extension": "0.9.0",
13
- "@allyhub/website-extension": "0.9.0",
14
- "@allyhub/x-extension": "0.9.0"
5
+ "@allyhub/3d-extension": "0.11.0",
6
+ "@allyhub/canvas-extension": "0.11.0",
7
+ "@allyhub/doc-extension": "0.11.0",
8
+ "@allyhub/image-extension": "0.11.0",
9
+ "@allyhub/linkedin-extension": "0.11.0",
10
+ "@allyhub/media-extension": "0.11.0",
11
+ "@allyhub/report-extension": "0.11.0",
12
+ "@allyhub/sheet-extension": "0.11.0",
13
+ "@allyhub/slides-extension": "0.11.0",
14
+ "@allyhub/video-extension": "0.11.0",
15
+ "@allyhub/website-extension": "0.11.0",
16
+ "@allyhub/x-extension": "0.11.0"
15
17
  }
16
18
  }
@@ -1,6 +1,6 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{comboKey as H}from"@allyhub/piece";import{builtInExtensions as J,factKindsOf as U}from"../commands/extensions.js";import{plural as h}from"./plural.js";const E=n=>`"${n.length>40?`${n.slice(0,40)}…`:n}"`,p=n=>`[${n.join(",")}]`,f=n=>`${String(Math.round(n*100))}%`,v=n=>`${(n*100).toFixed(1)}%`,j=n=>`${String(Math.round(n*1e4)/100)}%`,$=n=>n.toFixed(2),x=n=>`${n.layer}${n.z==="behind-person"?" (behind)":n.z==="overlay"?" (overlay)":""} ${E(n.text)} ${p(n.box)}${n.opacity===void 0?"":` at ${f(n.opacity)} opacity`}`,I=n=>x({...n,box:n.ink??n.box});function K(n){return n.output===void 0?n.piece:[n.piece,n.combo?H(n.combo):void 0,n.format].filter(e=>e!==void 0&&e!=="").join(" · ")}function T(n,e,t){const a=L(n,e.start),s=n.t===void 0?0:n.t-e.start;return{line:`${e.layer} ${a(e.start)}–${a(e.end)} s: ${t}`,alike:{what:`${e.layer}: ${t}`,span:[e.start+s,e.end+s]}}}const F=n=>`${n.sheet===void 0?"":`${n.sheet}!`}${n.cell??""}`;function D(n){switch(n.kind){case"sheet-error":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:e.origin?1:0,line:`${F(e)} ${e.code}${e.formula===void 0?"":` ${e.formula}`}${e.origin?", starts here":", read from another"}`}}case"sheet-number":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:e.numbers.length,line:`${F(e)}${e.cells>1?` and ${String(e.cells-1)} more`:""} ${e.formula}: ${e.numbers.map(t=>`${String(t.value)} (${t.in})`).join(", ")}`}}case"sheet-unlike":{const e=n.data;return{key:`${e.sheet}!${e.cell}:${e.along}`,value:e.run,line:`${F(e)} ${e.holds}, its ${e.along} ${e.neighbour} (${String(e.run)} alike)`}}case"sheet-exception":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${F(e)} ${e.table}[${e.column}] holds ${JSON.stringify(e.text)}`}}case"sheet-unused":{const e=n.data;return{key:`${e.what}:${e.sheet??""}!${e.name}`,value:1,line:`${e.what} ${e.sheet===void 0?"":`${e.sheet}!`}${e.name}${e.value===void 0?"":` ${e.value}`}`}}case"sheet-invalid":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${F(e)} ${JSON.stringify(e.value)} under the ${e.rule} validation on ${e.range}`}}case"sheet-typed":{const e=n.data;return{key:`${e.sheet}!${e.cell}:${String(e.value)}`,value:1,line:`${F(e)} ${String(e.value)}, in neither its code nor its data`}}case"sheet-ordinary":{const e=n.data;return{key:e.sheet,value:1,line:`${e.sheet}: its code makes it and the workbook file holds it; the workbook file's stands`}}case"text-speaker":{const e=n.data,t=[e.face?`covers ${f(e.face.ofFace)} of the face ${p(e.face.box)} (${f(e.face.ofText)} of the text's box)`:"",e.person?`${f(e.person.ofText)} of the text's box over the person (${e.person.file})`:""].filter(Boolean);return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(e.face?.ofFace??0,e.person?.ofText??0),line:`${x(e.text)}: ${t.join("; ")}`}}case"text-off-frame":{const e=n.data;return{key:`${e.text.layer}|${e.text.text}`,value:e.share,line:`${x({...e.text,box:e.glyphs})}: ${j(e.share)} of its glyphs outside the ${String(e.frame[0])}×${String(e.frame[1])} frame (${String(e.outside)} px), ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")}`}}case"text-contrast":{const e=n.data,t=`${String(e.size)} px, weight ${String(e.weight)}${e.shadow?", a shadow":""}${e.stroke?", a stroke":""}`,a=e.footage?`; footage under it, not drawn here: ${e.footage.join(", ")}`:"";if("missing"in e)return{key:`${e.text.layer}|${e.text.text}`,value:0,line:`${x(e.text)}: not measured (${e.missing}: ${e.why}; ${t})${a}`};const s=r=>`${r.toFixed(2)}:1`;return{key:`${e.text.layer}|${e.text.text}`,value:1/Math.max(1,e.ratio.min),line:`${x(e.text)}: ${s(e.ratio.min)} lowest, ${s(e.ratio.low)} at the ${String(e.options.percentile)}th percentile, ${s(e.ratio.median)} median; ${e.fill.join(", ")} over ${e.background.median} (median; ${e.background.atMin} at the lowest), ${t}${e.under?` (its outline counted behind it; under the outline ${s(e.under.ratio.min)} lowest, ${s(e.under.ratio.median)} median, over ${e.under.background.median})`:""}, ${String(e.pixels)} px${e.picture==="final"?", final picture":""}${a}`}}case"text-covered":{const e=n.data,t=e.covered;return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(...e.edges.map(a=>a.px)),line:`${x(e.text)}: ${e.edges.map(a=>`${String(a.px)} px into the ${a.side}`).join(", ")} (covered: top ${String(t.top)}, bottom ${String(t.bottom)}, left ${String(t.left)}, right ${String(t.right)})`}}case"text-overlap":{const e=n.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.layer}|${e.b.text}`,value:e.share,line:`${x(e.a)} × ${x(e.b)}: ${f(e.share)} of the smaller box`}}case"text-overlap-own":{const e=n.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.text}`,value:e.share,line:`${I(e.a)} × ${I(e.b)}: ${f(e.share)} of the smaller glyph box`}}case"text-outside":{const e=n.data;return{key:`${e.text.layer}|${e.text.text}|${p(e.container.box)}`,value:Math.max(...e.edges.map(t=>t.px)),line:`${I(e.text)}: ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")} of the box ${p(e.container.box)} (${e.container.paint.join(", ")})`}}case"text-time":{const e=n.data,t=e.seconds>0?`${(e.words/e.seconds).toFixed(1)} words/s`:"never whole",a=e.spans.map(([s,r])=>`${$(s)}–${$(r)}`).join(", ");return{key:`${e.text.layer}|${e.text.text}|${p(e.text.box)}`,value:e.seconds>0?e.words/e.seconds:e.words,line:`${x(e.text)}: ${h(e.words,"word")} (${String(e.chars)} characters) whole for ${$(e.seconds)} s${a?` (${a} s)`:""}, ${t}; on screen ${$(e.onScreen)} s${e.size?`; ${String(e.size.px)} px, ${String(e.size.phone)} pt on a ${String(e.options.phone[0])}-point phone${e.size.lowercase?`, lowercase ${String(e.size.lowercase.px)} px, ${String(e.size.lowercase.phone)} pt`:""}`:""}`}}case"speech-on-screen":{const e=n.data;return{key:n.part??"",value:e.words-e.shown,line:`${String(e.shown)} of ${h(e.words,"word")} said show as text${e.unshown.length>0?`; not shown: ${e.unshown.slice(0,12).join(" ")}`:""}`}}case"words-on-screen":{const e=n.data,t=e.steps.map(a=>`${$(a.t)} s ${String(a.words)}`);return{key:n.part??"",value:e.words,line:`at most ${h(e.words,"word")} (${String(e.chars)} characters) whole at once, in ${h(e.texts,"text")}, ${$(e.from)}–${$(e.until)} s; from each change on: ${t.join(", ")}`}}case"graphic-picture-scale":{const e=n.data;return{key:`${e.source}|${n.part??""}`,value:e.scale,line:`${e.source} (${String(e.natural[0])}×${String(e.natural[1])}) in ${e.layer}: drawn ${String(e.drawn[0])}×${String(e.drawn[1])}, ${String(e.scale)}× at its largest`}}case"footage-scale":{const e=n.data,t=e.shown[0]===e.source[0]&&e.shown[1]===e.source[1]?"":`, ${String(e.shown[0])}×${String(e.shown[1])} of it shown`,{min:a,max:s}=e,r=a.scale===s.scale?`${String(s.scale)}× throughout (${s.from.join(", ")})`:`${String(a.scale)}×–${String(s.scale)}× (smallest at ${$(a.t)} s: ${a.from.join(", ")}; largest at ${$(s.t)} s: ${s.from.join(", ")})`;return{key:`${e.file}|${n.part??""}`,value:s.scale,line:`${e.file} (${String(e.source[0])}×${String(e.source[1])}${t}): ${r}`}}case"free-bands":{const e=n.data,t=r=>r.length===0?"none":r.map(([o,m])=>`${String(o)}–${String(m)}`).join(", "),a=r=>r.length===0?"none":r.map(o=>`${String(o.y[0])}–${String(o.y[1])} (${String(o.height)} px)`).join(", "),s=(r,o)=>"missing"in o?` ${r}: not measured (no ${o.missing==="face-track"?"face track":"person matte"} for ${o.files.join(", ")} in the media index)`:` ${r}${o.speaker===void 0?"":` (face ${String(o.speaker)})`}, seen at ${String(o.seen)} of ${String(e.moments.length)} moments: rows ${t(o.rows)}; free ${a(o.bands)}`;return{key:"bands",value:e.bands.reduce((r,o)=>r+o.height,0),line:[`inside the covered edges: rows ${String(e.content.y[0])}–${String(e.content.y[1])}, columns ${String(e.content.x[0])}–${String(e.content.x[1])}, ${String(e.moments.length)} moments ${$(e.moments[0]??0)}–${$(e.moments.at(-1)??0)} s; free of everything measured: ${a(e.bands)}`,s("face box",e.face),s("person matte",e.person)].join(`
3
- `)}}case"flat-frames":{const e=n.data;return{key:String(e.start),value:e.frames,line:`${String(e.frames)}${e.longer?" or more":""} frames of flat ${e.shade} (luma ${String(e.luma)}) to ${$(e.end)} s (flat: luminance deviation at most ${String(e.options.maxStd)}; runs of ${String(e.options.minFrames)} frames or more, more than ${String(e.options.sameLuma)} levels from the picture around)`}}case"still-picture":{const e=n.data,t=e.footage?`; footage not compared: ${e.footage.map(a=>`${a.file} ${$(a.start)}–${$(a.end)} s`).join(", ")}`:"";return{key:String(e.start),value:e.seconds,line:`${$(e.seconds)} s still, ${$(e.start)}–${$(e.end)} s${e.toEnd?" (to the last frame)":""}, through ${e.parts.join(", ")}: at most ${j(e.change)} of the picture changed from its start (mean ${String(e.mean)} of 255), ${j(e.drift.change)} at its end${t}`}}case"cut-seam":{const e=n.data,t=r=>`${r.turn===void 0?"":`turns ${String(r.turn)}°, `}${String(r.speed[0])} → ${String(r.speed[1])} px/s`,a=e.transition?`, a ${e.transition.type} ${$(e.transition.start)}–${$(e.transition.end)} s between`:"",s=[`${e.before.part} → ${e.after.part}${a}: the largest moving thing ${t(e.change.lead)}; everything moving ${t(e.change.overall)}${e.change.picture?`; the picture ${t(e.change.picture)}`:""}`,R("before",e.before),R("after",e.after),...e.carriers.slice(0,C).map(r=>` named alike: ${r.name} ${p(r.before)} → ${p(r.after)}, ${String(r.distance)} px apart, size ×${String(r.size)}, ${String(r.speed[0])} → ${String(r.speed[1])} px/s`),...e.carriers.length>C?[` and ${String(e.carriers.length-C)} more named alike (every one in --json)`]:[]];return{key:String(e.at),value:Math.abs(e.change.lead.turn??0),line:s.join(`
4
- `)}}case"flash":{const e=n.data,t=a=>`${j(a.share)} (mean ${String(a.mean)})`;return{key:String(e.start),value:e.foreign.share,line:`${h(e.frames,"frame")} ${$(e.start)}–${$(e.end)} s${e.join===void 0?"":` (the join at ${$(e.join)} s)`}${e.transition?` in a ${e.transition.type} from ${e.transition.from} to ${e.transition.to}`:""}: ${t(e.foreign)} of its pixels outside what the frames beside it span; against the frame before ${t(e.before)}, the frame after ${t(e.after)}, those two against each other ${t(e.across)}${e.own?`; on its own side of the cut (${e.own.side} it), against the next frame of its shot ${t(e.own.step)}, while that shot changes ${t(e.own.usual)} a frame`:""}`}}case"music-length":{const e=n.data;return{key:e.file,value:e.without,line:`${e.file}: ${e.music.toFixed(1)} s of music${e.from===void 0?"":` (from ${e.from.toFixed(1)} s in)`}${e.loop?", looped":""}, ${e.video.toFixed(1)} s of video${e.without>0?`, the last ${e.without.toFixed(1)} s without music`:""}${e.estimated?" (put together from its parts)":""}`}}case"join-loudness":{const e=n.data,t=e.estimated?" (put together from its parts)":"";return"missing"in e?{key:`${e.before}|${e.after}`,value:0,line:`${e.before} → ${e.after}: not measured (${e.missing}: ${e.why})${t}`}:{key:`${e.before}|${e.after}`,value:Math.abs(e.difference),line:`${e.before} → ${e.after}: ${e.beforeLufs.toFixed(1)} → ${e.afterLufs.toFixed(1)} LUFS (${e.difference>0?"+":""}${e.difference.toFixed(1)} LU)${t}`}}case"matrix-coverage":{const e=n.data;return{key:"matrix",value:e.candidates.filter(a=>a.combos.length===0).length,line:[`${e.choice==="combos"?"named in matrix.combos":e.pick===void 0?"every combo asked for":`pick ${String(e.pick)}`}; ${e.possible===void 0?"possible not counted":`${String(e.possible)} possible`}, ${String(e.chosen)} chosen`,...e.candidates.map(a=>` ${a.slot}=${a.candidate}: ${a.combos.length>0?a.combos.join(", "):"in no combo"}`)].join(`
5
- `)}}case"generated":{const e=n.data,t=a=>a.start===void 0?"":a.end===void 0||a.end===a.start?` at ${$(a.start)} s`:` ${$(a.start)}–${$(a.end)} s`;return{key:"generated",value:e.files.length,line:[`${h(e.files.length,"generated file")}${e.duration===void 0?"":` in ${e.duration.toFixed(1)} s of video`}${e.estimated?" (put together from its parts)":""}`,...e.files.map(a=>` ${a.file} (${[a.kind,a.tool,a.model,a.license,a.at].filter(Boolean).join(", ")}${a.mismatch?"; its record is another file's":""})${a.seconds===void 0?"":`, ${a.seconds.toFixed(1)} s`}: ${a.uses.map(s=>`${s.as}${s.part?` in ${s.part}`:""}${t(s)}`).join("; ")}`)].join(`
6
- `)}}case"gen-mismatch":{const e=n.data;return{key:e.file,value:1,line:e.why==="sha256"?`${e.file}: ${e.record} records sha256 ${e.recorded.slice(0,12)}…, the file's is ${e.actual.slice(0,12)}… (the record was moved without its file, or the file changed)`:`${e.file}: ${e.record} cannot be read (${e.error})`}}case"graphics-under-footage":{const e=n.data;return{key:e.layers.map(t=>t.component).join("+"),value:e.covered,line:`${e.layers.map(t=>`${t.component} ${$(t.start)}–${$(t.end)} s`).join(", ")} under ${e.footage.map(t=>`${t.file} ${p(t.box)} (${f(t.frame)} of the frame, ${$(t.start)}–${$(t.end)} s)`).join(", ")}`}}case"fallback":{const e=n.data,t={"face-track":"no face track",face:`no face ${String(e.face??"")} in the face track`,"person-matte":"no person matte","own-footage":"no footage of the part's own take",tempo:"no tempo (no bpm given, none measured)"}[e.missing],a={reframe:"the reframe",speaker:"the layer's speaker","behind-person":"a layer behind the person",background:"the footage's background",snap:"music.snap","music-play":"the music's beats and bars (music.play, music.loop)","music-end":"music.end"}[e.for],s={centred:"drawn centred","in-front":"drawn in front",unprocessed:"the footage shown as it is","not-snapped":"parts without speech keep their own length","played-once":"the file played once","film-end":"the music ends with the film"}[e.fallback];return{key:`${e.file??""}|${e.missing}|${String(e.face??"")}`,value:1,line:`${e.file?`${e.file}: `:""}${t} for ${a}; ${s}`}}case"scenery-contact":{const e=n.data,t=e.missing?[`not measured: ${e.missing}`]:e.crossing?[`crossing along ${S(e.curve??0)}`,e.depth!==void 0?`at least ${S(e.depth)} deep`:"",e.lift!==void 0?P(e.a,e.b,e.lift,"up"):"",e.volume!==void 0?`sharing ${e.volume.toExponential(3)} m³`:e.volumeMissing?`volume not measured: ${e.volumeMissing}`:""]:e.within?[`${e.within==="a in b"?e.a:e.b} inside the other`,e.depth!==void 0?`at least ${S(e.depth)} deep`:""]:[e.area!==void 0?`touching, sharing ${e.area.toFixed(4)} m²`:`${S(e.gap??0)} apart`];return{key:`${e.layer}|${e.a}|${e.b}`,value:e.depth??e.curve??0,...T(n,e,`${e.a} and ${e.b}: ${t.filter(Boolean).join("; ")}`)}}case"scenery-support":{const e=n.data,t=e.gap===null?"nothing below":e.gap<0?`sunk ${S(-e.gap)}`:`${S(e.gap)} above`;return{key:`${e.layer}|${e.object}`,value:Math.abs(e.gap??0),...T(n,e,`${e.object}: ${t}${e.on.length?` ${e.on.join(", ")}`:""}; ${f(e.footprintShare)} of its footprint in contact${e.margin!==void 0?`; centre of mass ${S(Math.abs(e.margin))} ${e.margin>=0?"inside":"outside"} the contact`:""}${e.nothingBelow?`; nothing below in ${String(e.nothingBelow)} columns`:""}`)}}case"scenery-bake":{const e=n.data,t=e.laid?`bake laid (made on ${e.bakedOn??e.renderer})`:`drawn unbaked: no bake for its scene (digest ${e.digest}, on ${e.renderer} or the CPU); ${e.elsewhere?.length?`one was made only on ${e.elsewhere.join(", ")}, which this renderer does not lay`:e.stale?"it was baked before, so the scene changed since":"it was never baked"}; ${e.command??"allyhub scenery bake"} makes it`;return{key:`${e.layer}|${e.digest}`,value:e.laid?0:1,...T(n,e,t)}}case"mesh-health":{const e=n.data,t=[e.closed?"closed":"open",e.openEdges?`${String(e.openEdges)} open edges`:"",e.nonManifoldEdges?`${String(e.nonManifoldEdges)} non-manifold edges`:"",e.degenerate?`${String(e.degenerate)} triangles without area`:"",e.selfIntersections?`${String(e.selfIntersections)} self-intersecting pairs`:""].filter(Boolean);return{key:`${e.layer}|${e.object}`,value:e.openEdges+e.nonManifoldEdges+e.degenerate+(e.selfIntersections??0),...T(n,e,`${e.object}: ${t.join(", ")}`)}}case"camera-clearance":{const e=n.data,t=L(n,e.start),a=[e.nearest?`nearest surface ${e.nearest.object} ${S(e.nearest.distance)} at ${t(e.nearest.t)} s`:"",...e.inside.map(s=>`inside ${s.object}${s.closed?"":" (open: a vote)"} from ${t(s.from)} to ${t(s.to)} s`),...e.nearCut.map(s=>`near plane cuts ${s.object} from ${t(s.from)} to ${t(s.to)} s`)].filter(Boolean);return{key:`${e.layer}|${String(e.start)}`,value:e.inside.length+e.nearCut.length,line:`${e.layer} ${t(e.start)}–${t(e.end)} s: ${a.join("; ")}`}}case"camera-motion":{const e=n.data,t=e.peaks,a=L(n,e.start),s=(r,o)=>`${r.peak.toFixed(2)} ${o} at ${a(r.at)} s`;return{key:`${e.layer}|${String(e.start)}`,value:t.speed.peak,line:`${e.layer} ${a(e.start)}–${a(e.end)} s: ${S(e.length)} travelled; speed ${s(t.speed,"m/s")}, truck ${s(t.truck,"m/s")}, pedestal ${s(t.pedestal,"m/s")}, dolly ${s(t.dolly,"m/s")}, pan ${s(t.pan,"°/s")}, tilt ${s(t.tilt,"°/s")}, roll ${s(t.roll,"°/s")}, zoom ${s(t.zoom,"stops/s")}, view turning ${s(t.turn,"°/s")}, acceleration ${s(t.acceleration,"m/s²")}, jerk ${s(t.jerk,"m/s³")}; smoothness ${e.smoothness===null?"not measured":e.smoothness.toFixed(2)}; largest step ${S(e.step.distance)} and ${e.step.angle.toFixed(2)}° at ${a(e.step.at)} s${e.cuts?.length?`; ${h(e.cuts.length,"cut")} at ${e.cuts.map(r=>`${a(r)} s`).join(", ")} (not measured across)`:""} (${String(e.fps)} samples a second)`}}case"scenery-screen":{const e=n.data,t=L(n,e.start),a=(o,m,g=1)=>o?`${(o.least*g).toFixed(2)}${m} at ${t(o.leastAt)} s to ${(o.most*g).toFixed(2)}${m} at ${t(o.mostAt)} s`:"not shown",s=e.shown.length===0?"never on the frame":`on the frame ${e.shown.map(o=>`${t(o.from)}–${t(o.to)} s`).join(", ")}`,r=e.hidden?.by.map(o=>`${o.object} ${String(Math.round(o.share*100))}%`).join(", ");return{key:`${e.layer} ${e.screen}|${String(e.start)}`,value:e.scale?.least??0,line:`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) ${t(e.start)}–${t(e.end)} s: ${s}; share of the box ${a(e.share,"%",100)}; scale ${a(e.scale,"×")} frame px per content px; angle ${a(e.angle,"°")}; hidden ${a(e.hidden,"%",100)}${r?` (at the most by ${r})`:""}${e.blur?`; blur ${a(e.blur," px")} (the circle of confusion across it)`:""}${e.moire?`; moiré ${a(e.moire,"%",100)} deep${e.moire.period!==void 0?`, bands ${e.moire.period.toFixed(1)} px apart at the deepest`:""}`:""}${e.drawn?e.drawn.in==="scenery"?`; drawn in the scenery at ${String(e.drawn.scale)} of the frame's pixels each way`:"; drawn over the scenery":""}${e.text?`; smallest text ${String(e.text.size)} px, ${String(e.text.onFrame[0])}–${String(e.text.onFrame[1])} px on the frame as drawn`:""}${e.stretches?.length&&e.shown.length>0?`; between cues (scenery s → its s): ${e.stretches.map(o=>`${o.from.toFixed(2)}–${o.to.toFixed(2)} → ${o.video[0].toFixed(2)}–${o.video[1].toFixed(2)} at ${o.speed.toFixed(2)}×`).join(", ")}`:""}`}}case"scenery-screen-fidelity":{const e=n.data,t=L(n,e.start),a=`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) at ${t(e.at)} s`,s=`${e.layer} ${e.screen}|${String(e.start)}|${String(e.at)}`;if(e.missing!==void 0||!e.deltaE)return{key:s,value:0,line:`${a}: not compared: ${e.missing??"no numbers"}`};const r=e.elements??[],o=(e.regions??[]).map(i=>{const c=i.elements.flatMap(l=>{const d=r[l];return d?[`${d.kind} ${d.name} ${p(d.box)}`]:[]});return`${p(i.box)} ${v(i.share)} (ΔE ${i.meanDeltaE.toFixed(1)} mean, ${i.maxDeltaE.toFixed(1)} most)${c.length>0?` over ${c.join(", ")}`:""}`}),m=new Map;for(const i of r)m.set(i.kind,(m.get(i.kind)??0)+1);const g=e.texture;return{key:s,value:e.share??0,line:`${a}: ${v(e.share??0)} of its pixels differ from its element drawn flat by more than ΔE ${String(e.tolerance)} (ΔE ${e.deltaE.mean.toFixed(2)} mean, ${e.deltaE.p95.toFixed(2)} at the 95th percentile, ${e.deltaE.max.toFixed(1)} most)${g?`; its texture ${String(g.of[0])}×${String(g.of[1])} px for an element of ${String(g.element[0])}×${String(g.element[1])}, compared at its level ${String(g.level)} (${String(g.size[0])}×${String(g.size[1])})`:""}${o.length>0?`; most in ${o.join("; ")}`:""}${m.size>0?`; in its content, of what the scenery's picture can draw otherwise: ${[...m].map(([i,c])=>`${String(c)} ${i}`).join(", ")}`:""} (boxes in content px)`}}case"text-overflow":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:Math.max(...e.edges.map(t=>t.pt)),line:`${e.shape} ${E(e.text)} ${p(e.box)} pt: its glyphs ${p(e.glyphs)} ${e.edges.map(t=>`${String(t.pt)} pt past the ${t.side}`).join(", ")}; ${String(e.past)} of ${h(e.lines,"line")} past it${e.scale===void 0?"":`, shrunk to ${f(e.scale)}`}`}}case"text-off-slide":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:e.share,line:`${e.shape} ${E(e.text)}: its glyphs ${p(e.glyphs)} pt ${e.edges.map(t=>`${String(t.pt)} pt past the slide's ${t.side} edge`).join(", ")}, ${v(e.share)} of them outside`}}case"shape-off-slide":{const e=n.data;return{key:e.shape,value:e.share,line:`${e.shape} ${p(e.box)} pt: ${e.edges.map(t=>`${String(t.pt)} pt past the ${t.side}`).join(", ")}, ${v(e.share)} of it outside the slide`}}case"shape-overlap":{const e=n.data;return{key:`${e.a}|${e.b}`,value:e.share,line:`${e.a} and ${e.b}: ${String(e.area)} pt² both cover, ${v(e.share)} of the smaller`}}case"near-alignment":{const e=n.data,t=e.line==="centre-x"?"horizontal centres":e.line==="centre-y"?"vertical centres":`${e.line} edges`,a=r=>r==="glyphs"?", its glyphs":"",s=e.align.x===void 0?`y ${String(e.align.y)}`:`x ${String(e.align.x)}`;return{key:`${e.a}|${e.b}|${e.line}`,value:e.gap,line:`${e.a} and ${e.b==="slide"?"the slide":e.b}: ${t} ${String(e.gap)} pt apart (${e.a} at ${String(e.at.a)}${a(e.by.a)}, ${e.b==="slide"?"the slide's":e.b} at ${String(e.at.b)}${a(e.by.b)}); ${e.align.shape} at ${s} aligns them`}}case"placement-drift":{const e=n.data;return{key:`${e.layout}|${e.shape}`,value:e.places.length,line:`${e.shape} on "${e.layout}": ${e.places.map(t=>`${p(t.frame)} pt on ${t.slides.join(", ")}`).join("; ")}`}}case"type-in-use":{const e=n.data;return{key:"type",value:e.type.length,line:`${h(e.type.length,"size")}, the smallest ${String(e.smallest)} pt: ${e.type.map(t=>`${String(t.size)} pt weight ${String(t.weight)} on ${h(t.slides,"slide")} (${h(t.shapes,"shape")})`).join("; ")}`}}case"read-size":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:1/Math.max(.1,e.screen?.arcmin??e.size),line:`${e.shape} ${E(e.text)}: ${String(e.size)} pt${e.xHeight===void 0?"":`, x ${String(e.xHeight)} pt`}${e.screen?`; ${e.screen.by==="x"?"its lowercase x":"its characters"} ${String(e.screen.mm)} mm on the screen, ${String(e.screen.arcmin)} arcmin from the farthest seat`:""}; ${String(e.phone)} pt on the phone`}}case"words-on-slide":{const e=n.data;return{key:"words",value:e.words,line:`${h(e.words,"word")}, ${h(e.lines,"line")}, ${h(e.texts,"text")}`}}case"picture-resolution":{const e=n.data;return{key:e.shape,value:e.scale,line:`${e.shape} ${p(e.box)} pt: ${String(e.shown[0])}×${String(e.shown[1])} of its ${String(e.source[0])}×${String(e.source[1])} px drawn ${String(e.scale)}× (${String(e.ppi)} ppi on the slide)${Math.abs(e.stretch)>.005?`, stretched ${v(e.stretch)}`:""}`}}case"chart-data":{const e=n.data,t=e.low===void 0||e.high===void 0?"no numbers":`${String(e.low)} to ${String(e.high)}`;return{key:e.shape,value:e.series,line:`${e.shape}: ${e.type}, ${String(e.categories)} categories, ${String(e.series)} series, ${t}; ${e.source===void 0?"its numbers are written in the deck":`from ${e.source}`}`}}case"table-grown":{const e=n.data;return{key:e.shape,value:e.drawn-e.set,line:`${e.shape}: ${String(e.drawn)} pt tall, set ${String(e.set)} pt; ${e.rows.map(t=>`row ${String(t.row+1)} ${String(t.set)} → ${String(t.drawn)} pt`).join(", ")}`}}case"shape-hidden":{const e=n.data;return{key:`${e.shape}|${e.by??""}`,value:1,line:e.by===void 0?`${e.shape}: no step of the slide shows it`:`${e.shape}: covered whole by ${e.by}`}}case"deck-fonts":{const e=n.data,t=e.fonts.filter(a=>!a.standard);return{key:"fonts",value:t.length,line:`${e.fonts.map(a=>`${a.name} (${a.where}${a.standard?"":", not standard"})`).join(", ")}${t.length>0?`: ${t.map(a=>a.name).join(", ")} goes in the file when the project has its font files (render says what could not); an app that does not read a file's fonts replaces it`:""}`}}case"page-fill":{const e=n.data;return{key:`p${String(e.page)}`,value:e.foot,line:`page ${String(e.page)}${e.landscape?" (on its side)":""}: ${h(e.lines,"line")}, ${h(e.blocks,"block")}, ${String(e.used)} mm of its text area used, ${String(e.foot)} mm left at its foot (${f(e.share)})${e.next===void 0?"":`; the next page starts with line ${String(e.next.line)} ${e.next.block}${e.next.words===""?"":` "${e.next.words}"`}, ${String(e.next.height)} mm high`}`}}case"page-split":{const e=n.data,t=e.lines??e.rows??[];return{key:`L${String(e.line)}`,value:e.pages.length,line:`line ${String(e.line)} ${e.block} "${e.words}": pages ${e.pages.join(", ")}, ${e.rows===void 0?"lines":"rows"} ${t.join(" + ")}${e.head===void 0?"":e.head?", its head set again on each page":", no head set again"}${e.last===void 0?"":`; its last line ${h(e.last.chars,"character")}, ${f(e.last.share)} of the column`}`}}case"page-heading":{const e=n.data;return{key:`L${String(e.line)}`,value:-e.after,line:`line ${String(e.line)} h${String(e.level)} "${e.words}": page ${String(e.page)}, ${String(e.below)} mm above its foot, ${h(e.after,"line")} after it on the page`}}case"page-short-line":{const e=n.data;return{key:`L${String(e.line)}`,value:-e.chars,line:`line ${String(e.line)} "${e.words}": page ${String(e.page)}, its last line ${h(e.chars,"letter")}, ${f(e.share)} of the column`}}case"page-overflow":{const e=n.data;return{key:`L${String(e.line)}`,value:e.past,line:`line ${String(e.line)} ${e.block} "${e.words}" (page ${e.pages.join(", ")}): ${String(e.past)} mm past the column${e.cut>0?`, ${String(e.cut)} mm past the paper's edge, which is cut`:""}`}}case"page-kinsoku":{const e=n.data;return{key:`L${String(e.line)}|${String(e.page)}|${e.at}|${e.char}`,value:1,line:`line ${String(e.line)} "${e.words}": a line on page ${String(e.page)} ${e.at==="start"?"starts":"ends"} with ${e.char}`}}case"page-figure":{const e=n.data;return{key:`L${String(e.line)}`,value:1,line:`line ${String(e.line)} ${e.label}${e.id===void 0?"":` (#${e.id})`}: page ${String(e.page)}; ${e.referenced.length===0?"no link names it":`named on page ${e.referenced.join(", ")}`}`}}case"page-picture":{const e=n.data;return{key:`L${String(e.line)}`,value:e.scale,line:`line ${String(e.line)} a ${e.block} drawn at ${String(Math.round(e.scale*100))}% of its size, ${String(e.width)} mm wide${e.text===void 0?"":`: its words ${String(e.text)} pt`}${e.crossings===void 0?"":`; its lines cross ${String(e.crossings)} time${e.crossings===1?"":"s"}`}`}}case"page-grid":{const e=n.data;return{key:"grid",value:1,line:`${String(e.chars.median)} characters to a full line (${String(e.chars.min)}–${String(e.chars.max)}), ${String(e.lines.median)} lines of paragraphs to a page (${String(e.lines.max)} at most)${e.grid===void 0?"":`; its front matter's grid ${String(e.grid.chars)} × ${String(e.grid.lines)}`}`}}case"page-contents":{const e=n.data;return{key:"contents",value:e.passes,line:`printed ${h(e.passes,"time")} for its contents' page numbers, ${e.settled?"which hold":"which did not hold: a number may be a page off"}; ${h(e.headings,"heading")}`}}case"cut-in-word":{const e=n.data;return{key:`${e.source}|${e.side}|${String(e.at)}`,value:Math.min(e.at-e.wordStart,e.wordEnd-e.at),line:`${e.source}: the stretch's ${e.side} at ${$(e.at)} s cuts "${e.word}" (${$(e.wordStart)}–${$(e.wordEnd)} s)`}}default:return}}function L(n,e){const t=n.t===void 0?0:n.t-e;return a=>(a+t).toFixed(2)}function P(n,e,t,a){const[s,r]=t.b<t.a?[[e,t.b],[n,t.a]]:[[n,t.a],[e,t.b]];return`moving ${s[0]} ${S(s[1])} ${a} (${r[0]} ${S(r[1])}) clears them`}const S=n=>Math.abs(n)<.1?`${(n*1e3).toFixed(1)} mm`:`${n.toFixed(3)} m`,C=5;function R(n,e){const t=s=>`${String(s.speed)} px/s${s.angle===void 0?"":` at ${String(s.angle)}°`}`,a=e.list.map(s=>`${s.layer} ${s.what}${s.name?` (${s.name})`:""} ${p(s.box)} ${t(s)}${s.scale!==0?`, size ${s.scale>0?"+":""}${String(Math.round(s.scale*100))}%/s`:""}`);return` ${n} (${e.part} ${$(e.from)}–${$(e.to)} s): ${String(e.moving)} of ${h(e.things,"thing")} moving${e.overall?`, together ${t(e.overall)}`:""}${e.picture?`; the picture ${t(e.picture)} (difference ${String(e.picture.still)} → ${String(e.picture.match)} after the shift)`:""}${a.length>0?`: ${a.join("; ")}`:""}`}function W(n,e){const t=n.data.text;if(typeof t!="object"||t===null||!("layer"in t))return;const a=t,s=`${x(a)}: `;if(e.startsWith(s))return{layer:a.layer,text:a.text,what:e.slice(s.length)}}const N=3,B=8;function q(n,e=!1){const t=new Map;for(const i of n){const c=D(i);if(c===void 0)continue;const l=`${i.part??""}|${c.key}`,d=t.get(l);if(!d){const u=W(i,c.line);t.set(l,{part:i.part,...i.output==="slides"?{slide:!0}:{},first:i.t,last:i.t,count:1,worst:c.value,line:c.line,...u?{text:u}:{},...c.alike?{alike:c.alike}:{}});continue}if(d.count++,i.t!==void 0&&(d.first=Math.min(d.first??i.t,i.t),d.last=Math.max(d.last??i.t,i.t)),c.value>d.worst){d.worst=c.value,d.line=c.line,c.alike&&(d.alike=c.alike);const u=W(i,c.line);u?d.text=u:delete d.text}}const a=[...t.values()],s=new Map;if(!e)for(const i of a){if(!i.text)continue;const c=`${i.text.layer}|${i.text.what}`;s.set(c,[...s.get(c)??[],i])}const r=new Map;if(!e)for(const i of a){if(!i.alike||i.count>1)continue;const c=i.alike.what;r.set(c,[...r.get(c)??[],i])}const o=[],m=new Set;for(const i of a){if(m.has(i))continue;const c=i.alike?r.get(i.alike.what):void 0;if(c&&c.length>1&&i.alike){for(const y of c)m.add(y);const w=Math.min(...c.map(y=>y.alike?.span[0]??0)),O=Math.max(...c.map(y=>y.alike?.span[1]??0)),A=c.flatMap(y=>y.part?[y.part]:[]),G=A.length>B?`${A.slice(0,B).join(", ")} and ${String(A.length-B)} more`:A.join(", ");o.push(` ${$(w)}–${$(O)} s, the same in ${String(c.length)} parts (${G}): ${i.alike.what} (--all lists each)`);continue}const l=i.text?s.get(`${i.text.layer}|${i.text.what}`):void 0;if(!l||l.length<2||!i.text){o.push(g(i));continue}for(const w of l)m.add(w);const d=l.flatMap(w=>[w.first,w.last].filter(O=>O!==void 0)),u=[...new Set(l.flatMap(w=>w.part?[w.part]:[]))],b=Math.min(...d),k=Math.max(...d),M=d.length===0?"":b===k?`${$(b)} s `:`${$(b)}–${$(k)} s `,z=l.slice(0,N).map(w=>E(w.text?.text??"")),_=l.length>N?` and ${String(l.length-N)} more`:"";o.push(` ${M}${u.length>0?`${u.length===1?u[0]??"":`${String(u.length)} parts`}: `:""}${i.text.layer}: ${String(l.length)} texts, each ${i.text.what}: ${z.join(", ")}${_} (--all lists each)`)}return o;function g(i){return` ${i.first===void 0||i.slide?"":i.count===1||i.first===i.last?`${$(i.first)} s `:`${$(i.first)}–${$(i.last??i.first)} s (${String(i.count)} moments, the most shown) `}${i.part?`${i.part}: `:""}${i.line}`}}function X(n){const e=n[0];if(e?.kind==="still-picture"){const a=e.data.options;return`; a frame every ${String(a.every)} s, ${String(a.width)} px wide, still while ${j(a.change)} or less of its pixels moved more than ${String(a.noise)} levels from the stretch's first; ${a.minSeconds>0?`${String(a.minSeconds)} s or longer`:"every stretch"}`}if(e?.kind==="text-contrast"){const a=e.data.options;return`; WCAG 2.1 ratios over the pixels behind each line's glyphs, the ${String(a.percentile)}th percentile, captured at ${String(a.scale)}× the frame's pixels, blocks at ${f(a.opacity)} opacity or more. For reference, WCAG AA asks 4.5:1 (3:1 for large text, 24 px or 18.66 px bold, in CSS pixels), AAA 7:1 (4.5:1)`}if(e?.kind==="cut-seam"){const a=e.data.options;return`; velocities over ${String(a.frames)} frames each side, at rest under ${String(a.rest)} px/s; ${a.top>0?`the ${String(a.top)} largest things listed each side, moving ones first`:"every thing listed"}; 0° is rightward, 90° downward, ±180° leftward`}if(e?.kind==="flash"){const a=e.data.options;return`; each frame against the frames beside it, ${String(a.width)} px wide, a pixel outside their span by more than ${String(a.noise)} levels, from ${j(a.change)} of the pixels; runs of up to ${h(a.frames,"frame")}; beside a cut, only past ${String(a.usual)}× its shot's usual change a frame`}if(e?.kind==="near-alignment"){const a=e.data.options;return`; lines more than ${String(a.aligned)} pt and up to ${String(a.within)} pt apart`}if(e?.kind==="page-heading")return`; listed when fewer than ${h(e.data.options.lines,"line")} follow it on its page (--heading-lines; --all lists every one)`;if(e?.kind==="page-short-line")return`; listed at ${h(e.data.options.chars,"letter")} or fewer (--short-line; --all lists every one)`;if(e?.kind==="placement-drift")return`; places more than ${String(e.data.options.drift)} pt apart`;if(e?.kind==="read-size"){const{room:a,phone:s}=e.data.options;return`${a?`; a screen ${String(a.screen)} m wide, the farthest seat ${String(a.distance)} m away`:""}; a ${String(s[0])}×${String(s[1])} pt phone`}if(e?.kind!=="text-time"&&e?.kind!=="words-on-screen")return"";const t=e.data.options;return`; whole: every text node at ${f(t.opacity)} opacity or more with ${f(t.shown)} or more of its glyphs showing, each part looked at every ${String(t.every)} s`}const Q=20;export function formatFacts(n,e={}){const t=[],a=U(J()),s=new Map;for(const r of n){const o=K(r);s.set(o,[...s.get(o)??[],r])}for(const[r,o]of s){const m=l=>{const d=o.find(u=>u.kind===l);return d!==void 0&&D(d)!==void 0},g=[...new Set(o.map(l=>l.kind))].filter(l=>!a.some(d=>d.kind===l)||!m(l)),i=[...a.filter(l=>!g.includes(l.kind)),...g.map(l=>({kind:l,about:a.find(d=>d.kind===l)?.about??l}))],c=i.map(({kind:l})=>[l,o.filter(d=>d.kind===l).length]).filter(([,l])=>l>0).map(([l,d])=>`${l} ${String(d)}`);t.push(`${r}: ${c.join(", ")}`);for(const{kind:l,about:d}of i){const u=o.filter(z=>z.kind===l);if(u.length===0)continue;if(g.includes(l)){t.push(` ${d}${d===l?"":` (${l})`}:`,...u.map(z=>` ${JSON.stringify(z.data)}`));continue}const b=u,k=q(b,e.all===!0),M=e.all===!0||!l.startsWith("sheet-")?k:k.slice(0,Q);t.push(` ${d} (${l})${X(b)}:`,...M,...k.length>M.length?[` … ${String(k.length-M.length)} more (--all)`]:[])}}return t}export const textOnScreen=n=>`${x(n)}${n.fonts?` in ${n.fonts.join(", ")}`:""}`;
2
+ import{comboKey as H}from"@allyhub/piece";import{builtInExtensions as J,factKindsOf as U}from"../commands/extensions.js";import{plural as c}from"./plural.js";const L=n=>{const e=n.replace(/\s+/gu," ");return`"${e.length>40?`${e.slice(0,40)}…`:e}"`},f=n=>`[${n.join(",")}]`,S=n=>`${String(Math.round(n*100))}%`,F=n=>`${(n*100).toFixed(1)}%`,M=n=>`${String(Math.round(n*1e4)/100)}%`,$=n=>n.toFixed(2),x=n=>`${n.layer}${n.z==="behind-person"?" (behind)":n.z==="overlay"?" (overlay)":""} ${L(n.text)} ${f(n.box)}${n.opacity===void 0?"":` at ${S(n.opacity)} opacity`}`,C=n=>x({...n,box:n.ink??n.box});function K(n){return n.output===void 0?n.piece:[n.piece,n.combo?H(n.combo):void 0,n.format].filter(e=>e!==void 0&&e!=="").join(" · ")}function T(n,e,t){const a=A(n,e.start),s=n.t===void 0?0:n.t-e.start;return{line:`${e.layer} ${a(e.start)}–${a(e.end)} s: ${t}`,alike:{what:`${e.layer}: ${t}`,span:[e.start+s,e.end+s]}}}const z=n=>`${n.sheet===void 0?"":`${n.sheet}!`}${n.cell??""}`;function R(n){switch(n.kind){case"sheet-error":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:e.origin?1:0,line:`${z(e)} ${e.code}${e.formula===void 0?"":` ${e.formula}`}${e.origin?", starts here":", read from another"}`}}case"sheet-number":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:e.numbers.length,line:`${z(e)}${e.cells>1?` and ${String(e.cells-1)} more`:""} ${e.formula}: ${e.numbers.map(t=>`${String(t.value)} (${t.in})`).join(", ")}`}}case"sheet-unlike":{const e=n.data;return{key:`${e.sheet}!${e.cell}:${e.along}`,value:e.run,line:`${z(e)} ${e.holds}, its ${e.along} ${e.neighbour} (${String(e.run)} alike)`}}case"sheet-exception":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${z(e)} ${e.table}[${e.column}] holds ${JSON.stringify(e.text)}`}}case"sheet-unused":{const e=n.data;return{key:`${e.what}:${e.sheet??""}!${e.name}`,value:1,line:`${e.what} ${e.sheet===void 0?"":`${e.sheet}!`}${e.name}${e.value===void 0?"":` ${e.value}`}`}}case"sheet-invalid":{const e=n.data;return{key:`${e.sheet}!${e.cell}`,value:1,line:`${z(e)} ${JSON.stringify(e.value)} under the ${e.rule} validation on ${e.range}`}}case"sheet-typed":{const e=n.data;return{key:`${e.sheet}!${e.cell}:${String(e.value)}`,value:1,line:`${z(e)} ${String(e.value)}, in neither its code nor its data`}}case"sheet-ordinary":{const e=n.data;return{key:e.sheet,value:1,line:`${e.sheet}: its code makes it and the workbook file holds it; the workbook file's stands`}}case"sheet-iteration":{const e=n.data;return{key:"iteration",value:e.iterations,line:`iterative calculation: ${String(e.iterations)} of at most ${String(e.max_iterations)} rounds over ${String(e.cells)} cells; the last moved a value by ${e.change===null?"a change of kind":String(e.change)} (it stops under ${String(e.max_change)})`}}case"text-speaker":{const e=n.data,t=[e.face?`covers ${S(e.face.ofFace)} of the face ${f(e.face.box)} (${S(e.face.ofText)} of the text's box)`:"",e.person?`${S(e.person.ofText)} of the text's box over the person (${e.person.file})`:""].filter(Boolean);return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(e.face?.ofFace??0,e.person?.ofText??0),line:`${x(e.text)}: ${t.join("; ")}`}}case"text-off-frame":{const e=n.data;return{key:`${e.text.layer}|${e.text.text}`,value:e.share,line:`${x({...e.text,box:e.glyphs})}: ${M(e.share)} of its glyphs outside the ${String(e.frame[0])}×${String(e.frame[1])} frame (${String(e.outside)} px), ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")}`}}case"text-contrast":{const e=n.data,t=`${String(e.size)} px, weight ${String(e.weight)}${e.shadow?", a shadow":""}${e.stroke?", a stroke":""}`,a=e.footage?`; footage under it, not drawn here: ${e.footage.join(", ")}`:"";if("missing"in e)return{key:`${e.text.layer}|${e.text.text}`,value:0,line:`${x(e.text)}: not measured (${e.missing}: ${e.why}; ${t})${a}`};const s=o=>`${o.toFixed(2)}:1`;return{key:`${e.text.layer}|${e.text.text}`,value:1/Math.max(1,e.ratio.min),line:`${x(e.text)}: ${s(e.ratio.min)} lowest, ${s(e.ratio.low)} at the ${String(e.options.percentile)}th percentile, ${s(e.ratio.median)} median; ${e.fill.join(", ")} over ${e.background.median} (median; ${e.background.atMin} at the lowest), ${t}${e.under?` (its outline counted behind it; under the outline ${s(e.under.ratio.min)} lowest, ${s(e.under.ratio.median)} median, over ${e.under.background.median})`:""}, ${String(e.pixels)} px${e.picture==="final"?", final picture":""}${a}`}}case"text-covered":{const e=n.data,t=e.covered;return{key:`${e.text.layer}|${e.text.text}`,value:Math.max(...e.edges.map(a=>a.px)),line:`${x(e.text)}: ${e.edges.map(a=>`${String(a.px)} px into the ${a.side}`).join(", ")} (covered: top ${String(t.top)}, bottom ${String(t.bottom)}, left ${String(t.left)}, right ${String(t.right)})`}}case"text-overlap":{const e=n.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.layer}|${e.b.text}`,value:e.share,line:`${x(e.a)} × ${x(e.b)}: ${S(e.share)} of the smaller box`}}case"text-overlap-own":{const e=n.data;return{key:`${e.a.layer}|${e.a.text}|${e.b.text}`,value:e.share,line:`${C(e.a)} × ${C(e.b)}: ${S(e.share)} of the smaller glyph box`}}case"text-outside":{const e=n.data;return{key:`${e.text.layer}|${e.text.text}|${f(e.container.box)}`,value:Math.max(...e.edges.map(t=>t.px)),line:`${C(e.text)}: ${e.edges.map(t=>`${String(t.px)} px past the ${t.side}`).join(", ")} of the box ${f(e.container.box)} (${e.container.paint.join(", ")})`}}case"text-time":{const e=n.data,t=e.seconds>0?`${(e.words/e.seconds).toFixed(1)} words/s`:"never whole",a=e.spans.map(([s,o])=>`${$(s)}–${$(o)}`).join(", ");return{key:`${e.text.layer}|${e.text.text}|${f(e.text.box)}`,value:e.seconds>0?e.words/e.seconds:e.words,line:`${x(e.text)}: ${c(e.words,"word")} (${String(e.chars)} characters) whole for ${$(e.seconds)} s${a?` (${a} s)`:""}, ${t}; on screen ${$(e.onScreen)} s${e.size?`; ${String(e.size.px)} px, ${String(e.size.phone)} pt on a ${String(e.options.phone[0])}-point phone${e.size.lowercase?`, lowercase ${String(e.size.lowercase.px)} px, ${String(e.size.lowercase.phone)} pt`:""}`:""}`}}case"speech-on-screen":{const e=n.data;return{key:n.part??"",value:e.words-e.shown,line:`${String(e.shown)} of ${c(e.words,"word")} said show as text${e.unshown.length>0?`; not shown: ${e.unshown.slice(0,12).join(" ")}`:""}`}}case"words-on-screen":{const e=n.data,t=e.steps.map(a=>`${$(a.t)} s ${String(a.words)}`);return{key:n.part??"",value:e.words,line:`at most ${c(e.words,"word")} (${String(e.chars)} characters) whole at once, in ${c(e.texts,"text")}, ${$(e.from)}–${$(e.until)} s; from each change on: ${t.join(", ")}`}}case"graphic-picture-scale":{const e=n.data;return{key:`${e.source}|${n.part??""}`,value:e.scale,line:`${e.source} (${String(e.natural[0])}×${String(e.natural[1])}) in ${e.layer}: drawn ${String(e.drawn[0])}×${String(e.drawn[1])}, ${String(e.scale)}× at its largest`}}case"footage-scale":{const e=n.data,t=e.shown[0]===e.source[0]&&e.shown[1]===e.source[1]?"":`, ${String(e.shown[0])}×${String(e.shown[1])} of it shown`,{min:a,max:s}=e,o=a.scale===s.scale?`${String(s.scale)}× throughout (${s.from.join(", ")})`:`${String(a.scale)}×–${String(s.scale)}× (smallest at ${$(a.t)} s: ${a.from.join(", ")}; largest at ${$(s.t)} s: ${s.from.join(", ")})`;return{key:`${e.file}|${n.part??""}`,value:s.scale,line:`${e.file} (${String(e.source[0])}×${String(e.source[1])}${t}): ${o}`}}case"free-bands":{const e=n.data,t=o=>o.length===0?"none":o.map(([r,u])=>`${String(r)}–${String(u)}`).join(", "),a=o=>o.length===0?"none":o.map(r=>`${String(r.y[0])}–${String(r.y[1])} (${String(r.height)} px)`).join(", "),s=(o,r)=>"missing"in r?` ${o}: not measured (no ${r.missing==="face-track"?"face track":"person matte"} for ${r.files.join(", ")} in the media index)`:` ${o}${r.speaker===void 0?"":` (face ${String(r.speaker)})`}, seen at ${String(r.seen)} of ${String(e.moments.length)} moments: rows ${t(r.rows)}; free ${a(r.bands)}`;return{key:"bands",value:e.bands.reduce((o,r)=>o+r.height,0),line:[`inside the covered edges: rows ${String(e.content.y[0])}–${String(e.content.y[1])}, columns ${String(e.content.x[0])}–${String(e.content.x[1])}, ${String(e.moments.length)} moments ${$(e.moments[0]??0)}–${$(e.moments.at(-1)??0)} s; free of everything measured: ${a(e.bands)}`,s("face box",e.face),s("person matte",e.person)].join(`
3
+ `)}}case"flat-frames":{const e=n.data;return{key:String(e.start),value:e.frames,line:`${String(e.frames)}${e.longer?" or more":""} frames of flat ${e.shade} (luma ${String(e.luma)}) to ${$(e.end)} s (flat: luminance deviation at most ${String(e.options.maxStd)}; runs of ${String(e.options.minFrames)} frames or more, more than ${String(e.options.sameLuma)} levels from the picture around)`}}case"still-picture":{const e=n.data,t=e.footage?`; footage not compared: ${e.footage.map(a=>`${a.file} ${$(a.start)}–${$(a.end)} s`).join(", ")}`:"";return{key:String(e.start),value:e.seconds,line:`${$(e.seconds)} s still, ${$(e.start)}–${$(e.end)} s${e.toEnd?" (to the last frame)":""}, through ${e.parts.join(", ")}: at most ${M(e.change)} of the picture changed from its start (mean ${String(e.mean)} of 255), ${M(e.drift.change)} at its end${t}`}}case"cut-seam":{const e=n.data,t=o=>`${o.turn===void 0?"":`turns ${String(o.turn)}°, `}${String(o.speed[0])} → ${String(o.speed[1])} px/s`,a=e.transition?`, a ${e.transition.type} ${$(e.transition.start)}–${$(e.transition.end)} s between`:"",s=[`${e.before.part} → ${e.after.part}${a}: the largest moving thing ${t(e.change.lead)}; everything moving ${t(e.change.overall)}${e.change.picture?`; the picture ${t(e.change.picture)}`:""}`,W("before",e.before),W("after",e.after),...e.carriers.slice(0,B).map(o=>` named alike: ${o.name} ${f(o.before)} → ${f(o.after)}, ${String(o.distance)} px apart, size ×${String(o.size)}, ${String(o.speed[0])} → ${String(o.speed[1])} px/s`),...e.carriers.length>B?[` and ${String(e.carriers.length-B)} more named alike (every one in --json)`]:[]];return{key:String(e.at),value:Math.abs(e.change.lead.turn??0),line:s.join(`
4
+ `)}}case"flash":{const e=n.data,t=a=>`${M(a.share)} (mean ${String(a.mean)})`;return{key:String(e.start),value:e.foreign.share,line:`${c(e.frames,"frame")} ${$(e.start)}–${$(e.end)} s${e.join===void 0?"":` (the join at ${$(e.join)} s)`}${e.transition?` in a ${e.transition.type} from ${e.transition.from} to ${e.transition.to}`:""}: ${t(e.foreign)} of its pixels outside what the frames beside it span; against the frame before ${t(e.before)}, the frame after ${t(e.after)}, those two against each other ${t(e.across)}${e.own?`; on its own side of the cut (${e.own.side} it), against the next frame of its shot ${t(e.own.step)}, while that shot changes ${t(e.own.usual)} a frame`:""}`}}case"music-length":{const e=n.data;return{key:e.file,value:e.without,line:`${e.file}: ${e.music.toFixed(1)} s of music${e.from===void 0?"":` (from ${e.from.toFixed(1)} s in)`}${e.loop?", looped":""}, ${e.video.toFixed(1)} s of video${e.without>0?`, the last ${e.without.toFixed(1)} s without music`:""}${e.estimated?" (put together from its parts)":""}`}}case"join-loudness":{const e=n.data,t=e.estimated?" (put together from its parts)":"";return"missing"in e?{key:`${e.before}|${e.after}`,value:0,line:`${e.before} → ${e.after}: not measured (${e.missing}: ${e.why})${t}`}:{key:`${e.before}|${e.after}`,value:Math.abs(e.difference),line:`${e.before} → ${e.after}: ${e.beforeLufs.toFixed(1)} → ${e.afterLufs.toFixed(1)} LUFS (${e.difference>0?"+":""}${e.difference.toFixed(1)} LU)${t}`}}case"matrix-coverage":{const e=n.data;return{key:"matrix",value:e.candidates.filter(a=>a.combos.length===0).length,line:[`${e.choice==="combos"?"named in matrix.combos":e.pick===void 0?"every combo asked for":`pick ${String(e.pick)}`}; ${e.possible===void 0?"possible not counted":`${String(e.possible)} possible`}, ${String(e.chosen)} chosen`,...e.candidates.map(a=>` ${a.slot}=${a.candidate}: ${a.combos.length>0?a.combos.join(", "):"in no combo"}`)].join(`
5
+ `)}}case"generated":{const e=n.data,t=a=>a.start===void 0?"":a.end===void 0||a.end===a.start?` at ${$(a.start)} s`:` ${$(a.start)}–${$(a.end)} s`;return{key:"generated",value:e.files.length,line:[`${c(e.files.length,"generated file")}${e.duration===void 0?"":` in ${e.duration.toFixed(1)} s of video`}${e.estimated?" (put together from its parts)":""}`,...e.files.map(a=>` ${a.file} (${[a.kind,a.tool,a.model,a.license,a.at].filter(Boolean).join(", ")}${a.mismatch?"; its record is another file's":""})${a.seconds===void 0?"":`, ${a.seconds.toFixed(1)} s`}: ${a.uses.map(s=>`${s.as}${s.part?` in ${s.part}`:""}${t(s)}`).join("; ")}`)].join(`
6
+ `)}}case"gen-mismatch":{const e=n.data;return{key:e.file,value:1,line:e.why==="sha256"?`${e.file}: ${e.record} records sha256 ${e.recorded.slice(0,12)}…, the file's is ${e.actual.slice(0,12)}… (the record was moved without its file, or the file changed)`:`${e.file}: ${e.record} cannot be read (${e.error})`}}case"graphics-under-footage":{const e=n.data;return{key:e.layers.map(t=>t.component).join("+"),value:e.covered,line:`${e.layers.map(t=>`${t.component} ${$(t.start)}–${$(t.end)} s`).join(", ")} under ${e.footage.map(t=>`${t.file} ${f(t.box)} (${S(t.frame)} of the frame, ${$(t.start)}–${$(t.end)} s)`).join(", ")}`}}case"fallback":{const e=n.data,t={"face-track":"no face track",face:`no face ${String(e.face??"")} in the face track`,"person-matte":"no person matte","own-footage":"no footage of the part's own take",tempo:"no tempo (no bpm given, none measured)"}[e.missing],a={reframe:"the reframe",speaker:"the layer's speaker","behind-person":"a layer behind the person",background:"the footage's background",snap:"music.snap","music-play":"the music's beats and bars (music.play, music.loop)","music-end":"music.end"}[e.for],s={centred:"drawn centred","in-front":"drawn in front",unprocessed:"the footage shown as it is","not-snapped":"parts without speech keep their own length","played-once":"the file played once","film-end":"the music ends with the film"}[e.fallback];return{key:`${e.file??""}|${e.missing}|${String(e.face??"")}`,value:1,line:`${e.file?`${e.file}: `:""}${t} for ${a}; ${s}`}}case"scenery-contact":{const e=n.data,t=e.missing?[`not measured: ${e.missing}`]:e.crossing?[`crossing along ${y(e.curve??0)}`,e.depth!==void 0?`at least ${y(e.depth)} deep`:"",e.lift!==void 0?P(e.a,e.b,e.lift,"up"):"",e.volume!==void 0?`sharing ${e.volume.toExponential(3)} m³`:e.volumeMissing?`volume not measured: ${e.volumeMissing}`:""]:e.within?[`${e.within==="a in b"?e.a:e.b} inside the other`,e.depth!==void 0?`at least ${y(e.depth)} deep`:""]:[e.area!==void 0?`touching, sharing ${e.area.toFixed(4)} m²`:`${y(e.gap??0)} apart`];return{key:`${e.layer}|${e.a}|${e.b}`,value:e.depth??e.curve??0,...T(n,e,`${e.a} and ${e.b}: ${t.filter(Boolean).join("; ")}`)}}case"scenery-support":{const e=n.data,t=e.gap===null?"nothing below":e.gap<0?`sunk ${y(-e.gap)}`:`${y(e.gap)} above`;return{key:`${e.layer}|${e.object}`,value:Math.abs(e.gap??0),...T(n,e,`${e.object}: ${t}${e.on.length?` ${e.on.join(", ")}`:""}; ${S(e.footprintShare)} of its footprint in contact${e.margin!==void 0?`; centre of mass ${y(Math.abs(e.margin))} ${e.margin>=0?"inside":"outside"} the contact`:""}${e.nothingBelow?`; nothing below in ${String(e.nothingBelow)} columns`:""}`)}}case"scenery-bake":{const e=n.data,t=e.laid?`bake laid (made on ${e.bakedOn??e.renderer})`:`drawn unbaked: no bake for its scene (digest ${e.digest}, on ${e.renderer} or the CPU); ${e.elsewhere?.length?`one was made only on ${e.elsewhere.join(", ")}, which this renderer does not lay`:e.stale?"it was baked before, so the scene changed since":"it was never baked"}; ${e.command??"allyhub scenery bake"} makes it`;return{key:`${e.layer}|${e.digest}`,value:e.laid?0:1,...T(n,e,t)}}case"mesh-health":{const e=n.data,t=[e.closed?"closed":"open",e.openEdges?`${String(e.openEdges)} open edges`:"",e.nonManifoldEdges?`${String(e.nonManifoldEdges)} non-manifold edges`:"",e.degenerate?`${String(e.degenerate)} triangles without area`:"",e.selfIntersections?`${String(e.selfIntersections)} self-intersecting pairs`:""].filter(Boolean);return{key:`${e.layer}|${e.object}`,value:e.openEdges+e.nonManifoldEdges+e.degenerate+(e.selfIntersections??0),...T(n,e,`${e.object}: ${t.join(", ")}`)}}case"camera-clearance":{const e=n.data,t=A(n,e.start),a=[e.nearest?`nearest surface ${e.nearest.object} ${y(e.nearest.distance)} at ${t(e.nearest.t)} s`:"",...e.inside.map(s=>`inside ${s.object}${s.closed?"":" (open: a vote)"} from ${t(s.from)} to ${t(s.to)} s`),...e.nearCut.map(s=>`near plane cuts ${s.object} from ${t(s.from)} to ${t(s.to)} s`)].filter(Boolean);return{key:`${e.layer}|${String(e.start)}`,value:e.inside.length+e.nearCut.length,line:`${e.layer} ${t(e.start)}–${t(e.end)} s: ${a.join("; ")}`}}case"camera-motion":{const e=n.data,t=e.peaks,a=A(n,e.start),s=(o,r)=>`${o.peak.toFixed(2)} ${r} at ${a(o.at)} s`;return{key:`${e.layer}|${String(e.start)}`,value:t.speed.peak,line:`${e.layer} ${a(e.start)}–${a(e.end)} s: ${y(e.length)} travelled; speed ${s(t.speed,"m/s")}, truck ${s(t.truck,"m/s")}, pedestal ${s(t.pedestal,"m/s")}, dolly ${s(t.dolly,"m/s")}, pan ${s(t.pan,"°/s")}, tilt ${s(t.tilt,"°/s")}, roll ${s(t.roll,"°/s")}, zoom ${s(t.zoom,"stops/s")}, view turning ${s(t.turn,"°/s")}, acceleration ${s(t.acceleration,"m/s²")}, jerk ${s(t.jerk,"m/s³")}; smoothness ${e.smoothness===null?"not measured":e.smoothness.toFixed(2)}; largest step ${y(e.step.distance)} and ${e.step.angle.toFixed(2)}° at ${a(e.step.at)} s${e.cuts?.length?`; ${c(e.cuts.length,"cut")} at ${e.cuts.map(o=>`${a(o)} s`).join(", ")} (not measured across)`:""} (${String(e.fps)} samples a second)`}}case"scenery-screen":{const e=n.data,t=A(n,e.start),a=(r,u,g=1)=>r?`${(r.least*g).toFixed(2)}${u} at ${t(r.leastAt)} s to ${(r.most*g).toFixed(2)}${u} at ${t(r.mostAt)} s`:e.shown.length>0?"not measured (a corner behind the camera)":"not shown",s=e.shown.length===0?"never on the frame":`on the frame ${e.shown.map(r=>`${t(r.from)}–${t(r.to)} s`).join(", ")}`,o=e.hidden?.by.map(r=>`${r.object} ${String(Math.round(r.share*100))}%`).join(", ");return{key:`${e.layer} ${e.screen}|${String(e.start)}`,value:e.scale?.least??0,line:`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) ${t(e.start)}–${t(e.end)} s: ${s}; share of the box ${a(e.share,"%",100)}; scale ${e.scale?`${a(e.scale,"×")} frame px per content px`:a(void 0,"")}; angle ${a(e.angle,"°")}; hidden ${a(e.hidden,"%",100)}${o?` (at the most by ${o})`:""}${e.blur?`; blur ${a(e.blur," px")} (the circle of confusion across it)`:""}${e.moire?`; moiré ${a(e.moire,"%",100)} deep${e.moire.period!==void 0?`, bands ${e.moire.period.toFixed(1)} px apart at the deepest`:""}`:""}${e.drawn?e.drawn.in==="scenery"?`; drawn in the scenery at ${String(e.drawn.scale)} of the frame's pixels each way`:"; drawn over the scenery":""}${e.text?`; smallest text ${String(e.text.size)} px, ${String(e.text.onFrame[0])}–${String(e.text.onFrame[1])} px on the frame as drawn`:""}${e.stretches?.length&&e.shown.length>0?`; between cues (scenery s → its s): ${e.stretches.map(r=>`${r.from.toFixed(2)}–${r.to.toFixed(2)} → ${r.video[0].toFixed(2)}–${r.video[1].toFixed(2)} at ${r.speed.toFixed(2)}×`).join(", ")}`:""}`}}case"scenery-screen-fidelity":{const e=n.data,t=A(n,e.start),a=`${e.layer} ${e.screen} (${String(e.size[0])}×${String(e.size[1])}) at ${t(e.at)} s`,s=`${e.layer} ${e.screen}|${String(e.start)}|${String(e.at)}`;if(e.missing!==void 0||!e.deltaE)return{key:s,value:0,line:`${a}: not compared: ${e.missing??"no numbers"}`};const o=e.elements??[],r=(e.regions??[]).map(i=>{const l=i.elements.flatMap(m=>{const h=o[m];return h?[`${h.kind} ${h.name} ${f(h.box)}`]:[]});return`${f(i.box)} ${F(i.share)} (ΔE ${i.meanDeltaE.toFixed(1)} mean, ${i.maxDeltaE.toFixed(1)} most)${l.length>0?` over ${l.join(", ")}`:""}`}),u=new Map;for(const i of o)u.set(i.kind,(u.get(i.kind)??0)+1);const g=e.texture;return{key:s,value:e.share??0,line:`${a}: ${F(e.share??0)} of its pixels differ from its element drawn flat by more than ΔE ${String(e.tolerance)} (ΔE ${e.deltaE.mean.toFixed(2)} mean, ${e.deltaE.p95.toFixed(2)} at the 95th percentile, ${e.deltaE.max.toFixed(1)} most)${g?`; its texture ${String(g.of[0])}×${String(g.of[1])} px for an element of ${String(g.element[0])}×${String(g.element[1])}, compared at its level ${String(g.level)} (${String(g.size[0])}×${String(g.size[1])})`:""}${r.length>0?`; most in ${r.join("; ")}`:""}${u.size>0?`; in its content, of what the scenery's picture can draw otherwise: ${[...u].map(([i,l])=>`${String(l)} ${i}`).join(", ")}`:""} (boxes in content px)`}}case"text-overflow":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:Math.max(...e.edges.map(t=>t.pt)),line:`${e.shape} ${L(e.text)} ${f(e.box)} pt: its glyphs ${f(e.glyphs)} ${e.edges.map(t=>`${String(t.pt)} pt past the ${t.side}`).join(", ")}; ${String(e.past)} of ${c(e.lines,"line")} past it${e.scale===void 0?"":`, shrunk to ${S(e.scale)}`}`}}case"text-off-slide":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:e.share,line:`${e.shape} ${L(e.text)}: its glyphs ${f(e.glyphs)} pt ${e.edges.map(t=>`${String(t.pt)} pt past the slide's ${t.side} edge`).join(", ")}, ${F(e.share)} of them outside`}}case"shape-off-slide":{const e=n.data;return{key:e.shape,value:e.share,line:`${e.shape} ${f(e.box)} pt: ${e.edges.map(t=>`${String(t.pt)} pt past the ${t.side}`).join(", ")}, ${F(e.share)} of it outside the slide`}}case"shape-overlap":{const e=n.data;return{key:`${e.a}|${e.b}`,value:e.share,line:`${e.a} and ${e.b}: ${String(e.area)} pt² both cover, ${F(e.share)} of the smaller`}}case"near-alignment":{const e=n.data,t=e.line==="centre-x"?"horizontal centres":e.line==="centre-y"?"vertical centres":`${e.line} edges`,a=o=>o==="glyphs"?", its glyphs":"",s=e.align.x===void 0?`y ${String(e.align.y)}`:`x ${String(e.align.x)}`;return{key:`${e.a}|${e.b}|${e.line}`,value:e.gap,line:`${e.a} and ${e.b==="slide"?"the slide":e.b}: ${t} ${String(e.gap)} pt apart (${e.a} at ${String(e.at.a)}${a(e.by.a)}, ${e.b==="slide"?"the slide's":e.b} at ${String(e.at.b)}${a(e.by.b)}); ${e.align.shape} at ${s} aligns them`}}case"placement-drift":{const e=n.data;return{key:`${e.layout}|${e.shape}`,value:e.places.length,line:`${e.shape} on "${e.layout}": ${e.places.map(t=>`${f(t.frame)} pt on ${t.slides.join(", ")}`).join("; ")}`}}case"type-in-use":{const e=n.data;return{key:"type",value:e.type.length,line:`${c(e.type.length,"size")}, the smallest ${String(e.smallest)} pt: ${e.type.map(t=>`${String(t.size)} pt weight ${String(t.weight)} on ${c(t.slides,"slide")} (${c(t.shapes,"shape")})`).join("; ")}`}}case"read-size":{const e=n.data;return{key:`${e.shape}|${e.text}`,value:1/Math.max(.1,e.screen?.arcmin??e.size),line:`${e.shape} ${L(e.text)}: ${String(e.size)} pt${e.xHeight===void 0?"":`, x ${String(e.xHeight)} pt`}${e.screen?`; ${e.screen.by==="x"?"its lowercase x":"its characters"} ${String(e.screen.mm)} mm on the screen, ${String(e.screen.arcmin)} arcmin from the farthest seat`:""}; ${String(e.phone)} pt on the phone`}}case"words-on-slide":{const e=n.data;return{key:"words",value:e.words,line:`${c(e.words,"word")}, ${c(e.lines,"line")}, ${c(e.texts,"text")}`}}case"picture-resolution":{const e=n.data;return{key:e.shape,value:e.scale,line:`${e.shape} ${f(e.box)} pt: ${String(e.shown[0])}×${String(e.shown[1])} of its ${String(e.source[0])}×${String(e.source[1])} px drawn ${String(e.scale)}× (${String(e.ppi)} ppi on the slide)${Math.abs(e.stretch)>.005?`, stretched ${F(e.stretch)}`:""}`}}case"chart-data":{const e=n.data,t=e.low===void 0||e.high===void 0?"no numbers":`${String(e.low)} to ${String(e.high)}`;return{key:e.shape,value:e.series,line:`${e.shape}: ${e.type}, ${String(e.categories)} categories, ${String(e.series)} series, ${t}; ${e.source===void 0?"its numbers are written in the deck":`from ${e.source}`}`}}case"line-ends":{const e=n.data,t=r=>r.glued!==void 0?`glued to ${r.glued}`:r.near===void 0?`at (${String(r.at[0])}, ${String(r.at[1])}), no shape near`:(r.by??0)===0?`on ${r.near}`:`${String(r.by)} pt from ${r.near}`,a=r=>`${t(r)}${r.head==="none"?"":` (${r.head} head)`}`,[s,o]=e.ends;return{key:e.shape,value:Math.max(...e.ends.map(r=>r.by??0)),line:`${e.shape}: ${s?a(s):""} → ${o?a(o):""}`}}case"table-grown":{const e=n.data;return{key:e.shape,value:e.drawn-e.set,line:`${e.shape}: ${String(e.drawn)} pt tall, set ${String(e.set)} pt; ${e.rows.map(t=>`row ${String(t.row+1)} ${String(t.set)} → ${String(t.drawn)} pt`).join(", ")}`}}case"shape-hidden":{const e=n.data;return{key:`${e.shape}|${e.by??""}`,value:1,line:e.by===void 0?`${e.shape}: no step of the slide shows it`:`${e.shape}: covered whole by ${e.by}`}}case"deck-fonts":{const e=n.data,t=e.fonts.filter(a=>!a.standard);return{key:"fonts",value:t.length,line:`${e.fonts.map(a=>`${a.name} (${a.where}${a.standard?"":", not standard"})`).join(", ")}${t.length>0?`: ${t.map(a=>a.name).join(", ")} goes in the file when the project has its font files (render says what could not); an app that does not read a file's fonts replaces it`:""}`}}case"page-fill":{const e=n.data;return{key:`p${String(e.page)}`,value:e.foot,line:`page ${String(e.page)}${e.landscape?" (on its side)":""}: ${c(e.lines,"line")}, ${c(e.blocks,"block")}, ${String(e.used)} mm of its text area used, ${String(e.foot)} mm left at its foot (${S(e.share)})${e.next===void 0?"":`; the next page starts with line ${String(e.next.line)} ${e.next.block}${e.next.words===""?"":` "${e.next.words}"`}, ${String(e.next.height)} mm high`}`}}case"page-split":{const e=n.data,t=e.lines??e.rows??[];return{key:`L${String(e.line)}`,value:e.pages.length,line:`line ${String(e.line)} ${e.block} "${e.words}": pages ${e.pages.join(", ")}, ${e.rows===void 0?"lines":"rows"} ${t.join(" + ")}${e.head===void 0?"":e.head?", its head set again on each page":", no head set again"}${e.last===void 0?"":`; its last line ${c(e.last.chars,"character")}, ${S(e.last.share)} of the column`}`}}case"page-heading":{const e=n.data;return{key:`L${String(e.line)}`,value:-e.after,line:`line ${String(e.line)} h${String(e.level)} "${e.words}": page ${String(e.page)}, ${String(e.below)} mm above its foot, ${c(e.after,"line")} after it on the page`}}case"page-short-line":{const e=n.data;return{key:`L${String(e.line)}`,value:-e.chars,line:`line ${String(e.line)} "${e.words}": page ${String(e.page)}, its last line ${c(e.chars,"letter")}, ${S(e.share)} of the column`}}case"page-overflow":{const e=n.data;return{key:`L${String(e.line)}`,value:e.past,line:`line ${String(e.line)} ${e.block} "${e.words}" (page ${e.pages.join(", ")}): ${String(e.past)} mm past the column${e.cut>0?`, ${String(e.cut)} mm past the paper's edge, which is cut`:""}`}}case"page-kinsoku":{const e=n.data;return{key:`L${String(e.line)}|${String(e.page)}|${e.at}|${e.char}`,value:1,line:`line ${String(e.line)} "${e.words}": a line on page ${String(e.page)} ${e.at==="start"?"starts":"ends"} with ${e.char}`}}case"page-figure":{const e=n.data;return{key:`L${String(e.line)}`,value:1,line:`line ${String(e.line)} ${e.label}${e.id===void 0?"":` (#${e.id})`}: page ${String(e.page)}; ${e.referenced.length===0?"no link names it":`named on page ${e.referenced.join(", ")}`}`}}case"page-picture":{const e=n.data;return{key:`L${String(e.line)}`,value:e.scale,line:`line ${String(e.line)} a ${e.block} drawn at ${String(Math.round(e.scale*100))}% of its size, ${String(e.width)} mm wide${e.text===void 0?"":`: its words ${String(e.text)} pt`}${e.crossings===void 0?"":`; its lines cross ${String(e.crossings)} time${e.crossings===1?"":"s"}`}`}}case"page-grid":{const e=n.data;return{key:"grid",value:1,line:`${String(e.chars.median)} characters to a full line (${String(e.chars.min)}–${String(e.chars.max)}), ${String(e.lines.median)} lines of paragraphs to a page (${String(e.lines.max)} at most)${e.grid===void 0?"":`; its front matter's grid ${String(e.grid.chars)} × ${String(e.grid.lines)}`}`}}case"page-contents":{const e=n.data;return{key:"contents",value:e.passes,line:`printed ${c(e.passes,"time")} for its contents' page numbers, ${e.settled?"which hold":"which did not hold: a number may be a page off"}; ${c(e.headings,"heading")}`}}case"cut-in-word":{const e=n.data;return{key:`${e.source}|${e.side}|${String(e.at)}`,value:Math.min(e.at-e.wordStart,e.wordEnd-e.at),line:`${e.source}: the stretch's ${e.side} at ${$(e.at)} s cuts "${e.word}" (${$(e.wordStart)}–${$(e.wordEnd)} s)`}}default:return}}function A(n,e){const t=n.t===void 0?0:n.t-e;return a=>(a+t).toFixed(2)}function P(n,e,t,a){const[s,o]=t.b<t.a?[[e,t.b],[n,t.a]]:[[n,t.a],[e,t.b]];return`moving ${s[0]} ${y(s[1])} ${a} (${o[0]} ${y(o[1])}) clears them`}const y=n=>Math.abs(n)<.1?`${(n*1e3).toFixed(1)} mm`:`${n.toFixed(3)} m`,B=5;function W(n,e){const t=s=>`${String(s.speed)} px/s${s.angle===void 0?"":` at ${String(s.angle)}°`}`,a=e.list.map(s=>`${s.layer} ${s.what}${s.name?` (${s.name})`:""} ${f(s.box)} ${t(s)}${s.scale!==0?`, size ${s.scale>0?"+":""}${String(Math.round(s.scale*100))}%/s`:""}`);return` ${n} (${e.part} ${$(e.from)}–${$(e.to)} s): ${String(e.moving)} of ${c(e.things,"thing")} moving${e.overall?`, together ${t(e.overall)}`:""}${e.picture?`; the picture ${t(e.picture)} (difference ${String(e.picture.still)} → ${String(e.picture.match)} after the shift)`:""}${a.length>0?`: ${a.join("; ")}`:""}`}function G(n,e){const t=n.data.text;if(typeof t!="object"||t===null||!("layer"in t))return;const a=t,s=`${x(a)}: `;if(e.startsWith(s))return{layer:a.layer,text:a.text,what:e.slice(s.length)}}const D=3,_=8;function V(n,e=!1){const t=new Map;for(const i of n){const l=R(i);if(l===void 0)continue;const m=`${i.part??""}|${l.key}`,h=t.get(m);if(!h){const d=G(i,l.line);t.set(m,{part:i.part,...i.output==="slides"?{slide:!0}:{},first:i.t,last:i.t,count:1,worst:l.value,line:l.line,...d?{text:d}:{},...l.alike?{alike:l.alike}:{}});continue}if(h.count++,i.t!==void 0&&(h.first=Math.min(h.first??i.t,i.t),h.last=Math.max(h.last??i.t,i.t)),l.value>h.worst){h.worst=l.value,h.line=l.line,l.alike&&(h.alike=l.alike);const d=G(i,l.line);d?h.text=d:delete h.text}}const a=[...t.values()].sort((i,l)=>l.worst-i.worst),s=new Map;if(!e)for(const i of a){if(!i.text)continue;const l=`${i.text.layer}|${i.text.what}`;s.set(l,[...s.get(l)??[],i])}const o=new Map;if(!e)for(const i of a){if(!i.alike||i.count>1)continue;const l=i.alike.what;o.set(l,[...o.get(l)??[],i])}const r=[],u=new Set;for(const i of a){if(u.has(i))continue;const l=i.alike?o.get(i.alike.what):void 0;if(l&&l.length>1&&i.alike){for(const v of l)u.add(v);const w=Math.min(...l.map(v=>v.alike?.span[0]??0)),b=Math.max(...l.map(v=>v.alike?.span[1]??0)),j=l.flatMap(v=>v.part?[v.part]:[]),N=j.length>_?`${j.slice(0,_).join(", ")} and ${String(j.length-_)} more`:j.join(", ");r.push(` ${$(w)}–${$(b)} s, the same in ${String(l.length)} parts (${N}): ${i.alike.what} (--all lists each)`);continue}const m=i.text?s.get(`${i.text.layer}|${i.text.what}`):void 0;if(!m||m.length<2||!i.text){r.push(g(i));continue}for(const w of m)u.add(w);const h=m.flatMap(w=>[w.first,w.last].filter(b=>b!==void 0)),d=[...new Set(m.flatMap(w=>w.part?[w.part]:[]))],p=Math.min(...h),k=Math.max(...h),O=h.length===0?"":p===k?`${$(p)} s `:`${$(p)}–${$(k)} s `,E=m.slice(0,D).map(w=>L(w.text?.text??"")),I=m.length>D?` and ${String(m.length-D)} more`:"";r.push(` ${O}${d.length>0?`${d.length===1?d[0]??"":`${String(d.length)} parts`}: `:""}${i.text.layer}: ${String(m.length)} texts, each ${i.text.what}: ${E.join(", ")}${I} (--all lists each)`)}return r;function g(i){return` ${i.first===void 0||i.slide?"":i.count===1||i.first===i.last?`${$(i.first)} s `:`${$(i.first)}–${$(i.last??i.first)} s (${String(i.count)} moments, the most shown) `}${i.part?`${i.part}: `:""}${i.line}`}}function q(n){const e=n[0];if(e?.kind==="still-picture"){const a=e.data.options;return`; a frame every ${String(a.every)} s, ${String(a.width)} px wide, still while ${M(a.change)} or less of its pixels moved more than ${String(a.noise)} levels from the stretch's first; ${a.minSeconds>0?`${String(a.minSeconds)} s or longer`:"every stretch"}`}if(e?.kind==="text-contrast"){const a=e.data.options;return`; WCAG 2.1 ratios over the pixels behind each line's glyphs, the ${String(a.percentile)}th percentile, captured at ${String(a.scale)}× the frame's pixels, blocks at ${S(a.opacity)} opacity or more. For reference, WCAG AA asks 4.5:1 (3:1 for large text, 24 px or 18.66 px bold, in CSS pixels), AAA 7:1 (4.5:1)`}if(e?.kind==="cut-seam"){const a=e.data.options;return`; velocities over ${String(a.frames)} frames each side, at rest under ${String(a.rest)} px/s; ${a.top>0?`the ${String(a.top)} largest things listed each side, moving ones first`:"every thing listed"}; 0° is rightward, 90° downward, ±180° leftward`}if(e?.kind==="flash"){const a=e.data.options;return`; each frame against the frames beside it, ${String(a.width)} px wide, a pixel outside their span by more than ${String(a.noise)} levels, from ${M(a.change)} of the pixels; runs of up to ${c(a.frames,"frame")}; beside a cut, only past ${String(a.usual)}× its shot's usual change a frame`}if(e?.kind==="near-alignment"){const a=e.data.options;return`; lines more than ${String(a.aligned)} pt and up to ${String(a.within)} pt apart`}if(e?.kind==="page-heading")return`; listed when fewer than ${c(e.data.options.lines,"line")} follow it on its page (--heading-lines; --all lists every one)`;if(e?.kind==="page-short-line")return`; listed at ${c(e.data.options.chars,"letter")} or fewer (--short-line; --all lists every one)`;if(e?.kind==="placement-drift")return`; places more than ${String(e.data.options.drift)} pt apart`;if(e?.kind==="read-size"){const{room:a,phone:s}=e.data.options;return`${a?`; a screen ${String(a.screen)} m wide, the farthest seat ${String(a.distance)} m away`:""}; a ${String(s[0])}×${String(s[1])} pt phone`}if(e?.kind!=="text-time"&&e?.kind!=="words-on-screen")return"";const t=e.data.options;return`; whole: every text node at ${S(t.opacity)} opacity or more with ${S(t.shown)} or more of its glyphs showing, each part looked at every ${String(t.every)} s`}const X=3,Q=20;export function formatFacts(n,e={}){const t=[],a=U(J()),s=new Set(n.map(u=>u.kind)).size>1,o=s?X:Q,r=new Map;for(const u of n){const g=K(u);r.set(g,[...r.get(g)??[],u])}for(const[u,g]of r){const i=d=>{const p=g.find(k=>k.kind===d);return p!==void 0&&R(p)!==void 0},l=[...new Set(g.map(d=>d.kind))].filter(d=>!a.some(p=>p.kind===d)||!i(d)),m=[...a.filter(d=>!l.includes(d.kind)),...l.map(d=>({kind:d,about:a.find(p=>p.kind===d)?.about??d}))],h=m.map(({kind:d})=>[d,g.filter(p=>p.kind===d).length]).filter(([,d])=>d>0).map(([d,p])=>`${d} ${String(p)}`);t.push(`${u}: ${h.join(", ")}`);for(const{kind:d,about:p}of m){const k=g.filter(b=>b.kind===d);if(k.length===0)continue;if(l.includes(d)){const b=e.all===!0?k:k.slice(0,o),j=k.length-b.length;t.push(` ${p}${p===d?"":` (${d})`}:`,...b.map(N=>` ${JSON.stringify(N.data)}`),...j>0?[` … ${String(j)} more (${s?`--kind ${d}`:"--all"})`]:[]);continue}const O=k,E=V(O,e.all===!0),I=e.all===!0?E:E.slice(0,o),w=E.length-I.length;t.push(` ${p} (${d})${q(O)}:`,...I,...w>0?[` … ${String(w)} more (${s?`--kind ${d}`:"--all"})`]:[])}}return t}export const textOnScreen=n=>`${x(n)}${n.fonts?` in ${n.fonts.join(", ")}`:""}`;
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{formatCheck,formatCounts,formatProblem,formatReading,formatStats}from"./format.js";export{formatFacts,textOnScreen}from"./facts-text.js";export{formatBatches}from"./batch-text.js";export{consolePlace,formatConsole}from"./console-text.js";export{plural}from"./plural.js";
2
+ export{formatCheck,formatCounts,formatProblem,formatReading,formatStats}from"./format.js";export{formatFacts,textOnScreen}from"./facts-text.js";export{formatBatches}from"./batch-text.js";export{consolePlace,formatConsole}from"./console-text.js";export{plural}from"./plural.js";export{cutLong,LONG_TEXT}from"./long-text.js";
@@ -0,0 +1,4 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export const LONG_TEXT={lines:1e3,head:800,tail:100};export function cutLong(n,t){const e=n.split(`
3
+ `);if(e.length<=LONG_TEXT.lines)return;const i=e.length-LONG_TEXT.head-LONG_TEXT.tail;return[...e.slice(0,LONG_TEXT.head),`… ${String(i)} lines more, of ${String(e.length)}; the whole text: ${t}`,...e.slice(-LONG_TEXT.tail)].join(`
4
+ `)}
package/dist/works.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect motion","inspect still","inspect contrast","inspect seams","inspect flash","inspect loop","inspect combos","audio","add search","add","dev","render"],docs:["video.md","layers.md","speech.md","sound.md","batches.md","scenery.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","render"],docs:["footage.md","speech.md"]},{name:"decks",title:"Making a deck",commands:["slides capabilities","slides import","check","frames","inspect layout","inspect contrast","dev","render"],docs:["slides.md","layers.md"]},{name:"docs",title:"Writing a doc",commands:["doc cover list","doc cover set","check","frames","inspect pages","dev","render"],docs:["docs.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet capabilities","sheet import","sheet calc","sheet trace","sheet diff","inspect sheet","sheet","frames","check","dev","render"],docs:["sheets.md"]},{name:"images",title:"Making an image: boards of Photoshop's layers, a PSD in and out",commands:["image import","check","frames","inspect layout","inspect contrast","dev","render"],docs:["image.md","pictures.md"]},{name:"websites",title:"Making a website: any web project, with its website JSON listed in allyhub.yaml",commands:["check","render","frames web","frames compare"],docs:["websites.md"]},{name:"canvases",title:"Laying a project's work out on a canvas, with notes and edges",commands:["inspect canvas","check","dev"]},{name:"generating",title:"Making media with AI models",commands:["<work>","<work> <tool>","upload"],cloud:{works:["ai-media"]}},{name:"researching",title:"Researching a market online",commands:["<work>","<work> <tool>","frames web"],cloud:{}},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["add search","add","scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add"],docs:["modeling.md","scenery.md"]},{name:"mailbox",title:"An address of your own: signing up to a site, its codes and links, mail people send you and your answers",commands:["mail addresses","mail alias","mail wait","mail search","mail read","mail send","mail reply"]},{name:"setup",title:"This computer, the account and AllyHub's skills",commands:["skills","skills show","auth login","auth status","orgs list","doctor","doctor extensions"]}];export function withJoined(e,a){const n=a.filter(s=>s.work===e.name&&!e.commands.includes(s.name)).map(s=>s.name);return n.length===0?e:{...e,commands:[...e.commands,...n]}}export const workNamed=e=>WORKS.find(a=>a.name===e);export function cloudNouns(e,a){if(e.cloud===void 0)return[];const n=new Set(WORKS.flatMap(t=>t.cloud?.works??[])),s=e.cloud.works;return a.filter(t=>t.work!==!1&&(s===void 0?!n.has(t.name):s.includes(t.name)))}export function workTitle(e,a){if(e.cloud===void 0)return e.title;if(a===void 0)return`${e.title} (the cloud catalog could not be read)`;const n=cloudNouns(e,a);return n.length===0?`${e.title}: no cloud tools yet`:`${e.title}: ${n.map(s=>s.name).join(", ")}`}
2
+ export const WORKS=[{name:"video",title:"Making a video (one piece, or a batch of ads in combos)",commands:["check","frames","inspect","inspect layout","inspect timeline","inspect motion","inspect still","inspect contrast","inspect seams","inspect flash","inspect loop","inspect combos","audio","add search","add","dev","render"],docs:["video.md","layers.md","speech.md","sound.md","batches.md","scenery.md"]},{name:"footage",title:"Cutting recorded footage: a talking head, an interview",commands:["words","words edits","align","frames cuts","audio recording","render"],docs:["footage.md","speech.md"]},{name:"decks",title:"Making a deck",commands:["slides capabilities","slides import","check","frames","frames compare","inspect layout","inspect contrast","dev","render"],docs:["slides.md","layers.md"]},{name:"docs",title:"Writing a doc",commands:["doc cover list","doc cover set","check","frames","inspect pages","dev","render"],docs:["docs.md"]},{name:"sheets",title:"Making a sheet",commands:["sheet capabilities","sheet import","sheet calc","sheet trace","sheet diff","inspect sheet","sheet","frames","check","dev","render"],docs:["sheets.md"]},{name:"images",title:"Making an image: boards of Photoshop's layers, a PSD in and out",commands:["image import","check","frames","inspect layout","inspect contrast","dev","render"],docs:["image.md","pictures.md"]},{name:"reports",title:"Making a report: a page written freely in HTML, read on a screen and sent as a link",commands:["report style list","report style show","report style use","check","frames","dev","render"],docs:["reports.md"]},{name:"websites",title:"Making a website: any web project, with its website JSON listed in allyhub.yaml",commands:["check","render","frames web","frames compare"],docs:["websites.md"]},{name:"canvases",title:"Laying a project's work out on a canvas, with notes and edges",commands:["inspect canvas","check","dev"],docs:["canvas.md"]},{name:"x",title:"Writing for X: a post, a thread, a long post or an article",commands:["check","inspect","frames","dev","render"],docs:["x.md"]},{name:"linkedin",title:"Writing for LinkedIn: a post, a carousel or an article",commands:["check","inspect","frames","dev","render"],docs:["linkedin.md"]},{name:"generating",title:"Making media with AI models",commands:["<work>","<work> <tool>","upload"],cloud:{works:["ai-media"]}},{name:"researching",title:"Researching a market online",commands:["<work>","<work> <tool>","frames web"],cloud:{}},{name:"references",title:"Studying reference videos, and a piece against them",commands:["reference","reference compare","reference set","frames","frames compare","words","audio","align"]},{name:"3d",title:"Building a 3D scenery and its cameras",commands:["add search","add","scenery","scenery view","scenery map","scenery see","scenery measure","scenery motion","scenery solve","scenery bake","inspect fidelity","dev"],docs:["scenery.md"]},{name:"modeling",title:"Modelling a prop in code, or adding one from a library",commands:["add search","add"],docs:["modeling.md","scenery.md"]},{name:"mailbox",title:"An address of your own: signing up to a site, its codes and links, mail people send you and your answers",commands:["mail addresses","mail alias","mail wait","mail search","mail read","mail send","mail reply"]},{name:"setup",title:"This computer, the account and AllyHub's skills",commands:["skills","skills show","auth login","auth status","orgs list","orgs use","doctor","doctor extensions"]}];export function withJoined(e,a){const n=a.filter(s=>s.work===e.name&&!e.commands.includes(s.name)).map(s=>s.name);return n.length===0?e:{...e,commands:[...e.commands,...n]}}export const workNamed=e=>WORKS.find(a=>a.name===e);export function cloudNouns(e,a){if(e.cloud===void 0)return[];const n=new Set(WORKS.flatMap(t=>t.cloud?.works??[])),s=e.cloud.works;return a.filter(t=>t.work!==!1&&(s===void 0?!n.has(t.name):s.includes(t.name)))}export function workTitle(e,a){if(e.cloud===void 0)return e.title;if(a===void 0)return`${e.title} (the cloud catalog could not be read)`;const n=cloudNouns(e,a);return n.length===0?`${e.title}: no cloud tools yet`:`${e.title}: ${n.map(s=>s.name).join(", ")}`}
@@ -1 +1 @@
1
- import{m as e,t}from"./mermaid-parser.core-DxDwXM7z.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as r}from"./d3-selection-COWvaQNI.js";import"./chunk-DSNLSHJZ-BHW7sLAz.js";import{n as i,r as a,t as o}from"./chunk-2E7WHVMD-C8Ve9lAa.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-tU55ZwVG.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
1
+ import{m as e,t}from"./mermaid-parser.core-req5LE0X.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as r}from"./d3-selection-COWvaQNI.js";import"./chunk-DSNLSHJZ-CUDx1Rv5.js";import{n as i,r as a,t as o}from"./chunk-2E7WHVMD-BVp1I_d0.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-zFwZug4C.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
@@ -1 +1 @@
1
- import"./chunk-NGNAAXSQ-Bw6tHVuc.js";export{M as createArchitectureServices}from"./mermaid-parser.core-DxDwXM7z.js";
1
+ import"./chunk-NGNAAXSQ-Bw6tHVuc.js";export{M as createArchitectureServices}from"./mermaid-parser.core-req5LE0X.js";