allyhub 0.2.0 → 0.4.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 (653) hide show
  1. package/dist/cli-version.js +2 -0
  2. package/dist/commands/add.js +5 -5
  3. package/dist/commands/auth.js +4 -4
  4. package/dist/commands/cloud-tools.js +9 -10
  5. package/dist/commands/dev.js +2 -2
  6. package/dist/commands/doctor.js +4 -4
  7. package/dist/commands/frames/piece.js +1 -1
  8. package/dist/commands/frames.js +6 -6
  9. package/dist/commands/index.js +1 -1
  10. package/dist/commands/inspect/contrast.js +1 -1
  11. package/dist/commands/inspect/layout.js +1 -1
  12. package/dist/commands/model.js +1 -1
  13. package/dist/commands/orgs.js +2 -2
  14. package/dist/commands/render.js +2 -2
  15. package/dist/commands/sheet.js +2 -2
  16. package/dist/commands/skills.js +3 -3
  17. package/dist/commands/slides.js +3 -0
  18. package/dist/main.js +7 -7
  19. package/dist/text/facts-text.js +5 -5
  20. package/dist/text/format.js +2 -2
  21. package/dist/works.js +1 -1
  22. package/editor-web/assets/browser-B31cR_c2.js +105 -0
  23. package/editor-web/assets/dist-6TNEuNMX.js +4 -0
  24. package/editor-web/assets/dist-Cm2TIjW5.js +2 -0
  25. package/editor-web/assets/dist-Cpt0p8bX.js +6 -0
  26. package/editor-web/assets/dist-D2GccKEJ.js +1 -0
  27. package/editor-web/assets/dist-Z0zvYXmu.js +233 -0
  28. package/editor-web/assets/dist-fs4ONrUV.js +32 -0
  29. package/editor-web/assets/index-CAcsAZ9u.js +70 -0
  30. package/editor-web/assets/index-DlcJckhO.css +2 -0
  31. package/editor-web/assets/list-D2v7U8K8.js +1 -0
  32. package/editor-web/assets/react-D0RmGe2w.js +101 -0
  33. package/editor-web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  34. package/editor-web/assets/text-align-start-B3k2cx5f.js +1 -0
  35. package/editor-web/assets/undo-2-Ecr7-Obc.js +1 -0
  36. package/editor-web/index.html +4 -4
  37. package/node_modules/@allyhub-next/audio/package.json +1 -1
  38. package/node_modules/@allyhub-next/browser/package.json +1 -1
  39. package/node_modules/@allyhub-next/build/dist/data.js +1 -1
  40. package/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +10 -0
  41. package/node_modules/@allyhub-next/build/dist/meta-worker.js +2 -2
  42. package/node_modules/@allyhub-next/build/dist/model-info.js +2 -1
  43. package/node_modules/@allyhub-next/build/dist/plugin.d.ts +2 -0
  44. package/node_modules/@allyhub-next/build/dist/plugin.js +9 -8
  45. package/node_modules/@allyhub-next/build/dist/prepare.d.ts +13 -1
  46. package/node_modules/@allyhub-next/build/dist/prepare.js +2 -2
  47. package/node_modules/@allyhub-next/build/dist/scan.d.ts +1 -1
  48. package/node_modules/@allyhub-next/build/dist/scan.js +1 -1
  49. package/node_modules/@allyhub-next/build/dist/types.js +3 -3
  50. package/node_modules/@allyhub-next/build/package.json +1 -1
  51. package/node_modules/@allyhub-next/check/dist/check.js +3 -3
  52. package/node_modules/@allyhub-next/check/dist/generated.d.ts +1 -1
  53. package/node_modules/@allyhub-next/check/package.json +1 -1
  54. package/node_modules/@allyhub-next/cloud/dist/index.js +1 -1
  55. package/node_modules/@allyhub-next/cloud/dist/signin.js +2 -2
  56. package/node_modules/@allyhub-next/cloud/dist/token.js +1 -1
  57. package/node_modules/@allyhub-next/cloud/package.json +1 -1
  58. package/node_modules/@allyhub-next/components/package.json +1 -1
  59. package/node_modules/@allyhub-next/dev-server/dist/card.d.ts +2 -11
  60. package/node_modules/@allyhub-next/dev-server/dist/card.js +1 -1
  61. package/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +2 -2
  62. package/node_modules/@allyhub-next/dev-server/dist/exports.js +1 -1
  63. package/node_modules/@allyhub-next/dev-server/dist/index.d.ts +1 -1
  64. package/node_modules/@allyhub-next/dev-server/dist/index.js +1 -1
  65. package/node_modules/@allyhub-next/dev-server/dist/live.d.ts +3 -0
  66. package/node_modules/@allyhub-next/dev-server/dist/live.js +1 -1
  67. package/node_modules/@allyhub-next/dev-server/dist/project.d.ts +3 -0
  68. package/node_modules/@allyhub-next/dev-server/dist/project.js +1 -1
  69. package/node_modules/@allyhub-next/dev-server/dist/reveal.d.ts +6 -0
  70. package/node_modules/@allyhub-next/dev-server/dist/reveal.js +2 -0
  71. package/node_modules/@allyhub-next/dev-server/dist/server.js +1 -1
  72. package/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +2 -0
  73. package/node_modules/@allyhub-next/dev-server/dist/stage.js +22 -2
  74. package/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +2 -0
  75. package/node_modules/@allyhub-next/dev-server/dist/tools.js +1 -1
  76. package/node_modules/@allyhub-next/dev-server/package.json +1 -1
  77. package/node_modules/@allyhub-next/doc/dist/docx.d.ts +28 -0
  78. package/node_modules/@allyhub-next/doc/dist/docx.js +4 -0
  79. package/node_modules/@allyhub-next/doc/dist/html.d.ts +3 -0
  80. package/node_modules/@allyhub-next/doc/dist/html.js +1 -1
  81. package/node_modules/@allyhub-next/doc/package.json +5 -1
  82. package/node_modules/@allyhub-next/export/dist/deck-fonts.d.ts +24 -0
  83. package/node_modules/@allyhub-next/export/dist/deck-fonts.js +2 -0
  84. package/node_modules/@allyhub-next/export/dist/deck-pptx.d.ts +12 -0
  85. package/node_modules/@allyhub-next/export/dist/deck-pptx.js +2 -0
  86. package/node_modules/@allyhub-next/export/dist/export.d.ts +17 -5
  87. package/node_modules/@allyhub-next/export/dist/export.js +2 -2
  88. package/node_modules/@allyhub-next/export/dist/index.d.ts +1 -0
  89. package/node_modules/@allyhub-next/export/dist/index.js +1 -1
  90. package/node_modules/@allyhub-next/export/dist/names.d.ts +11 -6
  91. package/node_modules/@allyhub-next/export/dist/names.js +1 -1
  92. package/node_modules/@allyhub-next/export/package.json +1 -1
  93. package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +22 -0
  94. package/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
  95. package/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1494 -0
  96. package/node_modules/@allyhub-next/formats/dist/data/slides.js +2 -0
  97. package/node_modules/@allyhub-next/formats/dist/index.d.ts +2 -0
  98. package/node_modules/@allyhub-next/formats/dist/index.js +1 -1
  99. package/node_modules/@allyhub-next/formats/dist/items.d.ts +26 -0
  100. package/node_modules/@allyhub-next/formats/dist/items.js +1 -1
  101. package/node_modules/@allyhub-next/formats/dist/layout.d.ts +2 -0
  102. package/node_modules/@allyhub-next/formats/dist/layout.js +1 -1
  103. package/node_modules/@allyhub-next/formats/dist/note-shape.d.ts +39 -0
  104. package/node_modules/@allyhub-next/formats/dist/note-shape.js +2 -0
  105. package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +418 -0
  106. package/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
  107. package/node_modules/@allyhub-next/formats/package.json +1 -1
  108. package/node_modules/@allyhub-next/measure/dist/index.d.ts +1 -1
  109. package/node_modules/@allyhub-next/measure/dist/index.js +1 -1
  110. package/node_modules/@allyhub-next/measure/dist/overlay.d.ts +14 -1
  111. package/node_modules/@allyhub-next/measure/dist/overlay.js +1 -1
  112. package/node_modules/@allyhub-next/measure/package.json +1 -1
  113. package/node_modules/@allyhub-next/media/dist/asr/parakeet.d.ts +1 -4
  114. package/node_modules/@allyhub-next/media/dist/asr/parakeet.js +4 -4
  115. package/node_modules/@allyhub-next/media/dist/asr/transcribe.d.ts +1 -1
  116. package/node_modules/@allyhub-next/media/dist/asr/transcribe.js +1 -1
  117. package/node_modules/@allyhub-next/media/dist/grid.d.ts +3 -3
  118. package/node_modules/@allyhub-next/media/dist/grid.js +5 -5
  119. package/node_modules/@allyhub-next/media/dist/local.d.ts +3 -0
  120. package/node_modules/@allyhub-next/media/dist/local.js +1 -1
  121. package/node_modules/@allyhub-next/media/dist/ocr/tesseract.d.ts +8 -2
  122. package/node_modules/@allyhub-next/media/dist/ocr/tesseract.js +1 -1
  123. package/node_modules/@allyhub-next/media/dist/ocr/text.js +3 -3
  124. package/node_modules/@allyhub-next/media/dist/ocr/worker.js +1 -1
  125. package/node_modules/@allyhub-next/media/dist/sheet.js +3 -3
  126. package/node_modules/@allyhub-next/media/dist/tools.d.ts +11 -1
  127. package/node_modules/@allyhub-next/media/dist/tools.js +1 -1
  128. package/node_modules/@allyhub-next/media/dist/vision/faces.js +1 -1
  129. package/node_modules/@allyhub-next/media/dist/vision/matte.js +1 -1
  130. package/node_modules/@allyhub-next/media/dist/vision/runtime.d.ts +1 -1
  131. package/node_modules/@allyhub-next/media/dist/vision/runtime.js +2 -2
  132. package/node_modules/@allyhub-next/media/dist/worker-process.d.ts +1 -1
  133. package/node_modules/@allyhub-next/media/dist/worker-process.js +1 -1
  134. package/node_modules/@allyhub-next/media/package.json +1 -1
  135. package/node_modules/@allyhub-next/model/dist/build-job.d.ts +2 -0
  136. package/node_modules/@allyhub-next/model/dist/build-worker.js +1 -1
  137. package/node_modules/@allyhub-next/model/dist/build.d.ts +10 -0
  138. package/node_modules/@allyhub-next/model/dist/build.js +2 -1
  139. package/node_modules/@allyhub-next/model/dist/report.d.ts +1 -1
  140. package/node_modules/@allyhub-next/model/package.json +1 -1
  141. package/node_modules/@allyhub-next/project/dist/digest.d.ts +1 -3
  142. package/node_modules/@allyhub-next/project/dist/digest.js +1 -1
  143. package/node_modules/@allyhub-next/project/dist/page.d.ts +0 -5
  144. package/node_modules/@allyhub-next/project/dist/page.js +2 -2
  145. package/node_modules/@allyhub-next/project/dist/session.js +1 -1
  146. package/node_modules/@allyhub-next/project/package.json +1 -1
  147. package/node_modules/@allyhub-next/protocol/dist/app.d.ts +1 -62
  148. package/node_modules/@allyhub-next/protocol/dist/app.js +1 -1
  149. package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +17 -17
  150. package/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
  151. package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +1 -5
  152. package/node_modules/@allyhub-next/protocol/dist/cli.js +1 -1
  153. package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +13 -26
  154. package/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
  155. package/node_modules/@allyhub-next/protocol/dist/index.d.ts +1 -0
  156. package/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
  157. package/node_modules/@allyhub-next/protocol/dist/notes.d.ts +163 -0
  158. package/node_modules/@allyhub-next/protocol/dist/notes.js +2 -0
  159. package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +4 -2
  160. package/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
  161. package/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
  162. package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +3 -0
  163. package/node_modules/@allyhub-next/protocol/dist/runtimes.js +1 -1
  164. package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +38 -0
  165. package/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
  166. package/node_modules/@allyhub-next/protocol/package.json +1 -1
  167. package/node_modules/@allyhub-next/registry/dist/registry.js +1 -1
  168. package/node_modules/@allyhub-next/registry/package.json +1 -1
  169. package/node_modules/@allyhub-next/render/dist/doc/index.d.ts +1 -1
  170. package/node_modules/@allyhub-next/render/dist/doc/index.js +1 -1
  171. package/node_modules/@allyhub-next/render/dist/doc/print.d.ts +11 -0
  172. package/node_modules/@allyhub-next/render/dist/doc/print.js +17 -1
  173. package/node_modules/@allyhub-next/render/dist/exports.d.ts +29 -4
  174. package/node_modules/@allyhub-next/render/dist/exports.js +2 -2
  175. package/node_modules/@allyhub-next/render/dist/page.d.ts +11 -1
  176. package/node_modules/@allyhub-next/render/dist/render.d.ts +2 -0
  177. package/node_modules/@allyhub-next/render/dist/render.js +2 -2
  178. package/node_modules/@allyhub-next/render/package.json +1 -1
  179. package/node_modules/@allyhub-next/runtime/LICENSE +241 -0
  180. package/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +13 -3
  181. package/node_modules/@allyhub-next/runtime/dist/clock.js +1 -1
  182. package/node_modules/@allyhub-next/runtime/dist/env.js +1 -1
  183. package/node_modules/@allyhub-next/runtime/dist/facade.js +1 -1
  184. package/node_modules/@allyhub-next/runtime/dist/footage.js +1 -1
  185. package/node_modules/@allyhub-next/runtime/dist/frame.js +1 -1
  186. package/node_modules/@allyhub-next/runtime/dist/index.d.ts +2 -0
  187. package/node_modules/@allyhub-next/runtime/dist/index.js +1 -1
  188. package/node_modules/@allyhub-next/runtime/dist/locate.d.ts +11 -0
  189. package/node_modules/@allyhub-next/runtime/dist/locate.js +2 -0
  190. package/node_modules/@allyhub-next/runtime/dist/measure.d.ts +2 -1
  191. package/node_modules/@allyhub-next/runtime/dist/measure.js +1 -1
  192. package/node_modules/@allyhub-next/runtime/dist/music.js +1 -1
  193. package/node_modules/@allyhub-next/runtime/dist/output.js +1 -1
  194. package/node_modules/@allyhub-next/runtime/dist/piece.d.ts +5 -9
  195. package/node_modules/@allyhub-next/runtime/dist/piece.js +2 -2
  196. package/node_modules/@allyhub-next/runtime/dist/player/player.js +1 -1
  197. package/node_modules/@allyhub-next/runtime/dist/reads.d.ts +2 -0
  198. package/node_modules/@allyhub-next/runtime/dist/reads.js +1 -1
  199. package/node_modules/@allyhub-next/runtime/dist/sound.js +1 -1
  200. package/node_modules/@allyhub-next/runtime/dist/stage-kit.d.ts +12 -0
  201. package/node_modules/@allyhub-next/runtime/dist/stage-kit.js +2 -0
  202. package/node_modules/@allyhub-next/runtime/package.json +5 -6
  203. package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +5 -1
  204. package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +1 -0
  205. package/node_modules/@allyhub-next/runtimes/dist/index.js +1 -1
  206. package/node_modules/@allyhub-next/runtimes/dist/node-program.d.ts +3 -0
  207. package/node_modules/@allyhub-next/runtimes/dist/node-program.js +2 -0
  208. package/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +65 -0
  209. package/node_modules/@allyhub-next/runtimes/dist/packages.js +4 -0
  210. package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +2 -2
  211. package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
  212. package/node_modules/@allyhub-next/runtimes/dist/unpack.js +1 -1
  213. package/node_modules/@allyhub-next/runtimes/package.json +5 -1
  214. package/node_modules/@allyhub-next/runtimes/pins/docx/package-lock.json +67 -0
  215. package/node_modules/@allyhub-next/runtimes/pins/docx/package.json +9 -0
  216. package/node_modules/@allyhub-next/runtimes/pins/exceljs/package-lock.json +2533 -0
  217. package/node_modules/@allyhub-next/runtimes/pins/exceljs/package.json +8 -0
  218. package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package-lock.json +753 -0
  219. package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package.json +14 -0
  220. package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package-lock.json +950 -0
  221. package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package.json +8 -0
  222. package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +227 -0
  223. package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +8 -0
  224. package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +105 -0
  225. package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +8 -0
  226. package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +128 -0
  227. package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package.json +9 -0
  228. package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +5 -24
  229. package/node_modules/@allyhub-next/scaffold/dist/index.js +5 -5
  230. package/node_modules/@allyhub-next/scaffold/package.json +1 -1
  231. package/node_modules/@allyhub-next/scenery/package.json +1 -1
  232. package/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +3 -2
  233. package/node_modules/@allyhub-next/scenery-host/dist/bundle.js +3 -3
  234. package/node_modules/@allyhub-next/scenery-host/dist/model-stage.d.ts +32 -0
  235. package/node_modules/@allyhub-next/scenery-host/dist/model-stage.js +3 -0
  236. package/node_modules/@allyhub-next/scenery-host/dist/viewer.d.ts +11 -0
  237. package/node_modules/@allyhub-next/scenery-host/dist/viewer.js +1 -1
  238. package/node_modules/@allyhub-next/scenery-host/package.json +1 -1
  239. package/node_modules/@allyhub-next/sheet/package.json +1 -1
  240. package/node_modules/@allyhub-next/site/dist/media.js +2 -2
  241. package/node_modules/@allyhub-next/site/package.json +1 -1
  242. package/node_modules/@allyhub-next/slides-core/LICENSE +241 -0
  243. package/node_modules/@allyhub-next/slides-core/dist/animation.d.ts +129 -0
  244. package/node_modules/@allyhub-next/slides-core/dist/animation.js +2 -0
  245. package/node_modules/@allyhub-next/slides-core/dist/api.d.ts +649 -0
  246. package/node_modules/@allyhub-next/slides-core/dist/api.js +4 -0
  247. package/node_modules/@allyhub-next/slides-core/dist/capabilities.d.ts +18 -0
  248. package/node_modules/@allyhub-next/slides-core/dist/capabilities.js +2 -0
  249. package/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +165 -0
  250. package/node_modules/@allyhub-next/slides-core/dist/chart-api.js +2 -0
  251. package/node_modules/@allyhub-next/slides-core/dist/chart-file.d.ts +11 -0
  252. package/node_modules/@allyhub-next/slides-core/dist/chart-file.js +2 -0
  253. package/node_modules/@allyhub-next/slides-core/dist/chart.d.ts +184 -0
  254. package/node_modules/@allyhub-next/slides-core/dist/chart.js +2 -0
  255. package/node_modules/@allyhub-next/slides-core/dist/check.d.ts +7 -0
  256. package/node_modules/@allyhub-next/slides-core/dist/check.js +2 -0
  257. package/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +146 -0
  258. package/node_modules/@allyhub-next/slides-core/dist/enums.js +2 -0
  259. package/node_modules/@allyhub-next/slides-core/dist/file.d.ts +109 -0
  260. package/node_modules/@allyhub-next/slides-core/dist/file.js +4 -0
  261. package/node_modules/@allyhub-next/slides-core/dist/index.d.ts +21 -0
  262. package/node_modules/@allyhub-next/slides-core/dist/index.js +2 -0
  263. package/node_modules/@allyhub-next/slides-core/dist/measure.d.ts +34 -0
  264. package/node_modules/@allyhub-next/slides-core/dist/measure.js +2 -0
  265. package/node_modules/@allyhub-next/slides-core/dist/model.d.ts +278 -0
  266. package/node_modules/@allyhub-next/slides-core/dist/model.js +2 -0
  267. package/node_modules/@allyhub-next/slides-core/dist/office.d.ts +58 -0
  268. package/node_modules/@allyhub-next/slides-core/dist/office.js +2 -0
  269. package/node_modules/@allyhub-next/slides-core/dist/path.d.ts +6 -0
  270. package/node_modules/@allyhub-next/slides-core/dist/path.js +2 -0
  271. package/node_modules/@allyhub-next/slides-core/dist/placeholders.d.ts +7 -0
  272. package/node_modules/@allyhub-next/slides-core/dist/placeholders.js +2 -0
  273. package/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +181 -0
  274. package/node_modules/@allyhub-next/slides-core/dist/resolve.js +2 -0
  275. package/node_modules/@allyhub-next/slides-core/dist/script.d.ts +43 -0
  276. package/node_modules/@allyhub-next/slides-core/dist/script.js +3 -0
  277. package/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +63 -0
  278. package/node_modules/@allyhub-next/slides-core/dist/stage.js +2 -0
  279. package/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +23 -0
  280. package/node_modules/@allyhub-next/slides-core/dist/strict.js +2 -0
  281. package/node_modules/@allyhub-next/slides-core/dist/theme.d.ts +72 -0
  282. package/node_modules/@allyhub-next/slides-core/dist/theme.js +2 -0
  283. package/node_modules/@allyhub-next/slides-core/dist/units.d.ts +35 -0
  284. package/node_modules/@allyhub-next/slides-core/dist/units.js +2 -0
  285. package/node_modules/@allyhub-next/slides-core/package.json +14 -0
  286. package/node_modules/@allyhub-next/slides-pptx/LICENSE +241 -0
  287. package/node_modules/@allyhub-next/slides-pptx/dist/charts.d.ts +6 -0
  288. package/node_modules/@allyhub-next/slides-pptx/dist/charts.js +2 -0
  289. package/node_modules/@allyhub-next/slides-pptx/dist/fonts.d.ts +45 -0
  290. package/node_modules/@allyhub-next/slides-pptx/dist/fonts.js +2 -0
  291. package/node_modules/@allyhub-next/slides-pptx/dist/import.d.ts +18 -0
  292. package/node_modules/@allyhub-next/slides-pptx/dist/import.js +3 -0
  293. package/node_modules/@allyhub-next/slides-pptx/dist/index.d.ts +5 -0
  294. package/node_modules/@allyhub-next/slides-pptx/dist/index.js +2 -0
  295. package/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +55 -0
  296. package/node_modules/@allyhub-next/slides-pptx/dist/read.js +4 -0
  297. package/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +67 -0
  298. package/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +2 -0
  299. package/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +21 -0
  300. package/node_modules/@allyhub-next/slides-pptx/dist/text.js +2 -0
  301. package/node_modules/@allyhub-next/slides-pptx/dist/theme.d.ts +4 -0
  302. package/node_modules/@allyhub-next/slides-pptx/dist/theme.js +2 -0
  303. package/node_modules/@allyhub-next/slides-pptx/dist/timing.d.ts +32 -0
  304. package/node_modules/@allyhub-next/slides-pptx/dist/timing.js +2 -0
  305. package/node_modules/@allyhub-next/slides-pptx/dist/write.d.ts +32 -0
  306. package/node_modules/@allyhub-next/slides-pptx/dist/write.js +3 -0
  307. package/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +26 -0
  308. package/node_modules/@allyhub-next/slides-pptx/dist/xml.js +3 -0
  309. package/node_modules/@allyhub-next/slides-pptx/package.json +14 -0
  310. package/node_modules/@allyhub-next/slides-runtime/LICENSE +241 -0
  311. package/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +40 -0
  312. package/node_modules/@allyhub-next/slides-runtime/dist/draw.js +3 -0
  313. package/node_modules/@allyhub-next/slides-runtime/dist/edit.d.ts +4 -0
  314. package/node_modules/@allyhub-next/slides-runtime/dist/edit.js +2 -0
  315. package/node_modules/@allyhub-next/slides-runtime/dist/index.d.ts +4 -0
  316. package/node_modules/@allyhub-next/slides-runtime/dist/index.js +2 -0
  317. package/node_modules/@allyhub-next/slides-runtime/dist/ink.d.ts +10 -0
  318. package/node_modules/@allyhub-next/slides-runtime/dist/ink.js +2 -0
  319. package/node_modules/@allyhub-next/slides-runtime/dist/load.d.ts +6 -0
  320. package/node_modules/@allyhub-next/slides-runtime/dist/load.js +6 -0
  321. package/node_modules/@allyhub-next/slides-runtime/package.json +14 -0
  322. package/node_modules/@allyhub-next/stage/dist/graphics.js +1 -1
  323. package/node_modules/@allyhub-next/stage/dist/identity.js +1 -1
  324. package/node_modules/@allyhub-next/stage/dist/page.d.ts +9 -0
  325. package/node_modules/@allyhub-next/stage/dist/page.js +12 -2
  326. package/node_modules/@allyhub-next/stage/dist/server.js +1 -1
  327. package/node_modules/@allyhub-next/stage/package.json +1 -1
  328. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/400-italic.css +79 -0
  329. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/400.css +79 -0
  330. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/700-italic.css +79 -0
  331. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/700.css +79 -0
  332. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/LICENSE +93 -0
  333. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/arial.css +316 -0
  334. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-400-italic.woff2 +0 -0
  335. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-400-normal.woff2 +0 -0
  336. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-700-italic.woff2 +0 -0
  337. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-700-normal.woff2 +0 -0
  338. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-400-italic.woff2 +0 -0
  339. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-400-normal.woff2 +0 -0
  340. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-700-italic.woff2 +0 -0
  341. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-cyrillic-ext-700-normal.woff2 +0 -0
  342. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-400-italic.woff2 +0 -0
  343. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-400-normal.woff2 +0 -0
  344. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-700-italic.woff2 +0 -0
  345. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-700-normal.woff2 +0 -0
  346. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-ext-400-italic.woff2 +0 -0
  347. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-ext-400-normal.woff2 +0 -0
  348. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-ext-700-italic.woff2 +0 -0
  349. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-greek-ext-700-normal.woff2 +0 -0
  350. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-hebrew-400-italic.woff2 +0 -0
  351. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-hebrew-400-normal.woff2 +0 -0
  352. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-hebrew-700-italic.woff2 +0 -0
  353. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-hebrew-700-normal.woff2 +0 -0
  354. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-400-italic.woff2 +0 -0
  355. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-400-normal.woff2 +0 -0
  356. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-700-italic.woff2 +0 -0
  357. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-700-normal.woff2 +0 -0
  358. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-ext-400-italic.woff2 +0 -0
  359. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-ext-400-normal.woff2 +0 -0
  360. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-ext-700-italic.woff2 +0 -0
  361. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-latin-ext-700-normal.woff2 +0 -0
  362. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-vietnamese-400-italic.woff2 +0 -0
  363. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-vietnamese-400-normal.woff2 +0 -0
  364. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-vietnamese-700-italic.woff2 +0 -0
  365. package/node_modules/@allyhub-next/stage-page/dist/fonts/arimo/files/arimo-vietnamese-700-normal.woff2 +0 -0
  366. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/400-italic.css +69 -0
  367. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/400.css +69 -0
  368. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/700-italic.css +69 -0
  369. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/700.css +69 -0
  370. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/LICENSE +93 -0
  371. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/calibri.css +276 -0
  372. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-400-italic.woff2 +0 -0
  373. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-400-normal.woff2 +0 -0
  374. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-700-italic.woff2 +0 -0
  375. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-700-normal.woff2 +0 -0
  376. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-400-italic.woff2 +0 -0
  377. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-400-normal.woff2 +0 -0
  378. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-700-italic.woff2 +0 -0
  379. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-cyrillic-ext-700-normal.woff2 +0 -0
  380. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-400-italic.woff2 +0 -0
  381. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-400-normal.woff2 +0 -0
  382. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-700-italic.woff2 +0 -0
  383. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-700-normal.woff2 +0 -0
  384. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-ext-400-italic.woff2 +0 -0
  385. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-ext-400-normal.woff2 +0 -0
  386. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-ext-700-italic.woff2 +0 -0
  387. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-greek-ext-700-normal.woff2 +0 -0
  388. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-400-italic.woff2 +0 -0
  389. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-400-normal.woff2 +0 -0
  390. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-700-italic.woff2 +0 -0
  391. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-700-normal.woff2 +0 -0
  392. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-ext-400-italic.woff2 +0 -0
  393. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-ext-400-normal.woff2 +0 -0
  394. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-ext-700-italic.woff2 +0 -0
  395. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-latin-ext-700-normal.woff2 +0 -0
  396. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-vietnamese-400-italic.woff2 +0 -0
  397. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-vietnamese-400-normal.woff2 +0 -0
  398. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-vietnamese-700-italic.woff2 +0 -0
  399. package/node_modules/@allyhub-next/stage-page/dist/fonts/carlito/files/carlito-vietnamese-700-normal.woff2 +0 -0
  400. package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/400.css +1 -1
  401. package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/700.css +1 -1
  402. package/node_modules/@allyhub-next/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +2018 -0
  403. package/node_modules/@allyhub-next/stage-page/dist/host.js +21 -0
  404. package/node_modules/@allyhub-next/stage-page/dist/page.js +79 -0
  405. package/node_modules/@allyhub-next/stage-page/package.json +14 -0
  406. package/node_modules/@allyhub-next/video-core/dist/export.d.ts +6 -5
  407. package/node_modules/@allyhub-next/video-core/dist/export.js +1 -1
  408. package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +173 -4
  409. package/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
  410. package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +6 -13
  411. package/node_modules/@allyhub-next/video-core/dist/formats.js +1 -1
  412. package/node_modules/@allyhub-next/video-core/dist/index.d.ts +0 -1
  413. package/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
  414. package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +83 -0
  415. package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +8 -9
  416. package/node_modules/@allyhub-next/video-core/dist/piece.js +1 -1
  417. package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +9 -1
  418. package/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
  419. package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +0 -2
  420. package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +4 -0
  421. package/node_modules/@allyhub-next/video-core/dist/script.d.ts +8 -0
  422. package/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
  423. package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +34 -1
  424. package/node_modules/@allyhub-next/video-core/package.json +1 -1
  425. package/package.json +48 -41
  426. package/dist/commands/mcp-app.js +0 -3
  427. package/dist/commands/mcp-docs.js +0 -2
  428. package/dist/commands/mcp.js +0 -2
  429. package/editor-app/view.html +0 -128
  430. package/editor-web/assets/chevron-left-D1vfOP5S.js +0 -1
  431. package/editor-web/assets/chevron-up-BMNXDEBs.js +0 -1
  432. package/editor-web/assets/dist-B4VKfY-H.js +0 -136
  433. package/editor-web/assets/dist-BIEloJVS.js +0 -8
  434. package/editor-web/assets/dist-BcInw4os.js +0 -232
  435. package/editor-web/assets/dist-Coblfc3T.js +0 -1
  436. package/editor-web/assets/floating-ui.react-dom-DSyn5TRd.js +0 -1
  437. package/editor-web/assets/index-BSFR4plz.css +0 -2
  438. package/editor-web/assets/index-Dc8FX_sp.js +0 -56
  439. package/editor-web/assets/react-Bo429Bov.js +0 -61
  440. package/editor-web/assets/undo-2-CWgOKQ3L.js +0 -1
  441. package/node_modules/@allyhub-next/runtime/dist/host.js +0 -21
  442. package/node_modules/@allyhub-next/runtime/dist/page.js +0 -72
  443. package/node_modules/@allyhub-next/runtime/dist/paged.d.ts +0 -16
  444. package/node_modules/@allyhub-next/runtime/dist/paged.js +0 -2
  445. package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +0 -37
  446. package/node_modules/@allyhub-next/video-core/dist/slides.js +0 -2
  447. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-color-emoji/LICENSE +0 -0
  448. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-color-emoji/emoji.css +0 -0
  449. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-color-emoji/files/noto-color-emoji-emoji-400-normal.woff2 +0 -0
  450. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/LICENSE +0 -0
  451. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-100-400-normal.woff2 +0 -0
  452. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-100-700-normal.woff2 +0 -0
  453. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-101-400-normal.woff2 +0 -0
  454. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-101-700-normal.woff2 +0 -0
  455. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-102-400-normal.woff2 +0 -0
  456. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-102-700-normal.woff2 +0 -0
  457. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-103-400-normal.woff2 +0 -0
  458. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-103-700-normal.woff2 +0 -0
  459. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-104-400-normal.woff2 +0 -0
  460. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-104-700-normal.woff2 +0 -0
  461. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-105-400-normal.woff2 +0 -0
  462. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-105-700-normal.woff2 +0 -0
  463. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-106-400-normal.woff2 +0 -0
  464. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-106-700-normal.woff2 +0 -0
  465. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-107-400-normal.woff2 +0 -0
  466. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-107-700-normal.woff2 +0 -0
  467. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-108-400-normal.woff2 +0 -0
  468. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-108-700-normal.woff2 +0 -0
  469. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-109-400-normal.woff2 +0 -0
  470. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-109-700-normal.woff2 +0 -0
  471. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-110-400-normal.woff2 +0 -0
  472. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-110-700-normal.woff2 +0 -0
  473. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-111-400-normal.woff2 +0 -0
  474. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-111-700-normal.woff2 +0 -0
  475. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-112-400-normal.woff2 +0 -0
  476. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-112-700-normal.woff2 +0 -0
  477. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-113-400-normal.woff2 +0 -0
  478. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-113-700-normal.woff2 +0 -0
  479. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-114-400-normal.woff2 +0 -0
  480. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-114-700-normal.woff2 +0 -0
  481. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-115-400-normal.woff2 +0 -0
  482. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-115-700-normal.woff2 +0 -0
  483. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-116-400-normal.woff2 +0 -0
  484. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-116-700-normal.woff2 +0 -0
  485. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-117-400-normal.woff2 +0 -0
  486. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-117-700-normal.woff2 +0 -0
  487. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-118-400-normal.woff2 +0 -0
  488. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-118-700-normal.woff2 +0 -0
  489. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-119-400-normal.woff2 +0 -0
  490. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-119-700-normal.woff2 +0 -0
  491. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-21-400-normal.woff2 +0 -0
  492. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-21-700-normal.woff2 +0 -0
  493. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-22-400-normal.woff2 +0 -0
  494. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-22-700-normal.woff2 +0 -0
  495. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-23-400-normal.woff2 +0 -0
  496. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-23-700-normal.woff2 +0 -0
  497. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-24-400-normal.woff2 +0 -0
  498. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-24-700-normal.woff2 +0 -0
  499. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-25-400-normal.woff2 +0 -0
  500. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-25-700-normal.woff2 +0 -0
  501. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-26-400-normal.woff2 +0 -0
  502. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-26-700-normal.woff2 +0 -0
  503. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-27-400-normal.woff2 +0 -0
  504. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-27-700-normal.woff2 +0 -0
  505. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-28-400-normal.woff2 +0 -0
  506. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-28-700-normal.woff2 +0 -0
  507. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-29-400-normal.woff2 +0 -0
  508. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-29-700-normal.woff2 +0 -0
  509. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-30-400-normal.woff2 +0 -0
  510. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-30-700-normal.woff2 +0 -0
  511. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-31-400-normal.woff2 +0 -0
  512. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-31-700-normal.woff2 +0 -0
  513. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-32-400-normal.woff2 +0 -0
  514. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-32-700-normal.woff2 +0 -0
  515. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-33-400-normal.woff2 +0 -0
  516. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-33-700-normal.woff2 +0 -0
  517. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-34-400-normal.woff2 +0 -0
  518. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-34-700-normal.woff2 +0 -0
  519. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-35-400-normal.woff2 +0 -0
  520. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-35-700-normal.woff2 +0 -0
  521. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-36-400-normal.woff2 +0 -0
  522. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-36-700-normal.woff2 +0 -0
  523. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-37-400-normal.woff2 +0 -0
  524. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-37-700-normal.woff2 +0 -0
  525. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-38-400-normal.woff2 +0 -0
  526. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-38-700-normal.woff2 +0 -0
  527. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-39-400-normal.woff2 +0 -0
  528. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-39-700-normal.woff2 +0 -0
  529. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-4-400-normal.woff2 +0 -0
  530. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-4-700-normal.woff2 +0 -0
  531. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-40-400-normal.woff2 +0 -0
  532. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-40-700-normal.woff2 +0 -0
  533. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-41-400-normal.woff2 +0 -0
  534. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-41-700-normal.woff2 +0 -0
  535. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-42-400-normal.woff2 +0 -0
  536. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-42-700-normal.woff2 +0 -0
  537. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-43-400-normal.woff2 +0 -0
  538. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-43-700-normal.woff2 +0 -0
  539. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-44-400-normal.woff2 +0 -0
  540. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-44-700-normal.woff2 +0 -0
  541. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-45-400-normal.woff2 +0 -0
  542. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-45-700-normal.woff2 +0 -0
  543. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-46-400-normal.woff2 +0 -0
  544. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-46-700-normal.woff2 +0 -0
  545. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-47-400-normal.woff2 +0 -0
  546. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-47-700-normal.woff2 +0 -0
  547. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-48-400-normal.woff2 +0 -0
  548. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-48-700-normal.woff2 +0 -0
  549. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-49-400-normal.woff2 +0 -0
  550. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-49-700-normal.woff2 +0 -0
  551. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-5-400-normal.woff2 +0 -0
  552. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-5-700-normal.woff2 +0 -0
  553. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-50-400-normal.woff2 +0 -0
  554. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-50-700-normal.woff2 +0 -0
  555. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-51-400-normal.woff2 +0 -0
  556. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-51-700-normal.woff2 +0 -0
  557. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-52-400-normal.woff2 +0 -0
  558. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-52-700-normal.woff2 +0 -0
  559. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-53-400-normal.woff2 +0 -0
  560. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-53-700-normal.woff2 +0 -0
  561. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-54-400-normal.woff2 +0 -0
  562. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-54-700-normal.woff2 +0 -0
  563. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-55-400-normal.woff2 +0 -0
  564. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-55-700-normal.woff2 +0 -0
  565. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-56-400-normal.woff2 +0 -0
  566. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-56-700-normal.woff2 +0 -0
  567. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-57-400-normal.woff2 +0 -0
  568. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-57-700-normal.woff2 +0 -0
  569. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-58-400-normal.woff2 +0 -0
  570. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-58-700-normal.woff2 +0 -0
  571. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-59-400-normal.woff2 +0 -0
  572. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-59-700-normal.woff2 +0 -0
  573. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-6-400-normal.woff2 +0 -0
  574. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-6-700-normal.woff2 +0 -0
  575. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-60-400-normal.woff2 +0 -0
  576. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-60-700-normal.woff2 +0 -0
  577. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-61-400-normal.woff2 +0 -0
  578. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-61-700-normal.woff2 +0 -0
  579. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-62-400-normal.woff2 +0 -0
  580. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-62-700-normal.woff2 +0 -0
  581. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-63-400-normal.woff2 +0 -0
  582. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-63-700-normal.woff2 +0 -0
  583. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-64-400-normal.woff2 +0 -0
  584. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-64-700-normal.woff2 +0 -0
  585. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-65-400-normal.woff2 +0 -0
  586. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-65-700-normal.woff2 +0 -0
  587. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-66-400-normal.woff2 +0 -0
  588. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-66-700-normal.woff2 +0 -0
  589. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-67-400-normal.woff2 +0 -0
  590. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-67-700-normal.woff2 +0 -0
  591. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-68-400-normal.woff2 +0 -0
  592. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-68-700-normal.woff2 +0 -0
  593. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-69-400-normal.woff2 +0 -0
  594. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-69-700-normal.woff2 +0 -0
  595. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-70-400-normal.woff2 +0 -0
  596. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-70-700-normal.woff2 +0 -0
  597. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-71-400-normal.woff2 +0 -0
  598. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-71-700-normal.woff2 +0 -0
  599. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-72-400-normal.woff2 +0 -0
  600. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-72-700-normal.woff2 +0 -0
  601. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-73-400-normal.woff2 +0 -0
  602. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-73-700-normal.woff2 +0 -0
  603. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-74-400-normal.woff2 +0 -0
  604. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-74-700-normal.woff2 +0 -0
  605. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-75-400-normal.woff2 +0 -0
  606. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-75-700-normal.woff2 +0 -0
  607. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-76-400-normal.woff2 +0 -0
  608. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-76-700-normal.woff2 +0 -0
  609. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-77-400-normal.woff2 +0 -0
  610. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-77-700-normal.woff2 +0 -0
  611. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-78-400-normal.woff2 +0 -0
  612. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-78-700-normal.woff2 +0 -0
  613. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-79-400-normal.woff2 +0 -0
  614. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-79-700-normal.woff2 +0 -0
  615. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-80-400-normal.woff2 +0 -0
  616. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-80-700-normal.woff2 +0 -0
  617. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-81-400-normal.woff2 +0 -0
  618. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-81-700-normal.woff2 +0 -0
  619. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-82-400-normal.woff2 +0 -0
  620. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-82-700-normal.woff2 +0 -0
  621. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-83-400-normal.woff2 +0 -0
  622. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-83-700-normal.woff2 +0 -0
  623. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-84-400-normal.woff2 +0 -0
  624. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-84-700-normal.woff2 +0 -0
  625. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-85-400-normal.woff2 +0 -0
  626. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-85-700-normal.woff2 +0 -0
  627. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-86-400-normal.woff2 +0 -0
  628. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-86-700-normal.woff2 +0 -0
  629. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-87-400-normal.woff2 +0 -0
  630. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-87-700-normal.woff2 +0 -0
  631. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-88-400-normal.woff2 +0 -0
  632. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-88-700-normal.woff2 +0 -0
  633. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-89-400-normal.woff2 +0 -0
  634. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-89-700-normal.woff2 +0 -0
  635. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-90-400-normal.woff2 +0 -0
  636. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-90-700-normal.woff2 +0 -0
  637. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-91-400-normal.woff2 +0 -0
  638. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-91-700-normal.woff2 +0 -0
  639. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-97-400-normal.woff2 +0 -0
  640. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-97-700-normal.woff2 +0 -0
  641. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-98-400-normal.woff2 +0 -0
  642. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-98-700-normal.woff2 +0 -0
  643. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-99-400-normal.woff2 +0 -0
  644. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-99-700-normal.woff2 +0 -0
  645. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-cyrillic-400-normal.woff2 +0 -0
  646. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-cyrillic-700-normal.woff2 +0 -0
  647. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-400-normal.woff2 +0 -0
  648. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-700-normal.woff2 +0 -0
  649. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-ext-400-normal.woff2 +0 -0
  650. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-latin-ext-700-normal.woff2 +0 -0
  651. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-vietnamese-400-normal.woff2 +0 -0
  652. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/fonts/noto-sans-sc/files/noto-sans-sc-vietnamese-700-normal.woff2 +0 -0
  653. /package/node_modules/@allyhub-next/{runtime → stage-page}/dist/host.d.ts +0 -0
@@ -0,0 +1,241 @@
1
+ AllyHub Software License
2
+
3
+ Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
4
+
5
+ This software (the AllyHub command-line tool, its SDK, runtime and the
6
+ packages they depend on) is proprietary. It is not open source.
7
+
8
+ 1. Permitted use. You may install and run the software, unmodified, to make,
9
+ check, preview and render videos and decks, including for commercial
10
+ purposes. What you make with it is yours.
11
+
12
+ 2. Restrictions. Except as this license permits or applicable law requires,
13
+ you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
14
+ publish or otherwise distribute the software, create derivative works of
15
+ it, or reverse engineer, decompile or disassemble it.
16
+
17
+ 3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
18
+ video) are separate services governed by AllyHub's terms of service.
19
+
20
+ 4. Trademarks. This license grants no right to use the name "AllyHub" or its
21
+ logos.
22
+
23
+ 5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
24
+ KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
26
+ ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
28
+
29
+ 6. Third-party code. Parts of the software are adapted from HyperFrames,
30
+ licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
31
+ remain under that license, reproduced below, and nothing in this license
32
+ limits your rights under it.
33
+
34
+ 7. Starter components. The starter components in the "components" folder,
35
+ which "allyhub add" copies into your workspace, are licensed under the MIT
36
+ License (see components/LICENSE): once copied, you may change, use and
37
+ share them freely.
38
+
39
+ --------------------------------------------------------------------------------
40
+
41
+ Apache License
42
+ Version 2.0, January 2004
43
+ http://www.apache.org/licenses/
44
+
45
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
46
+
47
+ 1. Definitions.
48
+
49
+ "License" shall mean the terms and conditions for use, reproduction,
50
+ and distribution as defined by Sections 1 through 9 of this document.
51
+
52
+ "Licensor" shall mean the copyright owner or entity authorized by
53
+ the copyright owner that is granting the License.
54
+
55
+ "Legal Entity" shall mean the union of the acting entity and all
56
+ other entities that control, are controlled by, or are under common
57
+ control with that entity. For the purposes of this definition,
58
+ "control" means (i) the power, direct or indirect, to cause the
59
+ direction or management of such entity, whether by contract or
60
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
61
+ outstanding shares, or (iii) beneficial ownership of such entity.
62
+
63
+ "You" (or "Your") shall mean an individual or Legal Entity
64
+ exercising permissions granted by this License.
65
+
66
+ "Source" form shall mean the preferred form for making modifications,
67
+ including but not limited to software source code, documentation
68
+ source, and configuration files.
69
+
70
+ "Object" form shall mean any form resulting from mechanical
71
+ transformation or translation of a Source form, including but
72
+ not limited to compiled object code, generated documentation,
73
+ and conversions to other media types.
74
+
75
+ "Work" shall mean the work of authorship, whether in Source or
76
+ Object form, made available under the License, as indicated by a
77
+ copyright notice that is included in or attached to the work
78
+ (an example is provided in the Appendix below).
79
+
80
+ "Derivative Works" shall mean any work, whether in Source or Object
81
+ form, that is based on (or derived from) the Work and for which the
82
+ editorial revisions, annotations, elaborations, or other modifications
83
+ represent, as a whole, an original work of authorship. For the purposes
84
+ of this License, Derivative Works shall not include works that remain
85
+ separable from, or merely link (or bind by name) to the interfaces of,
86
+ the Work and Derivative Works thereof.
87
+
88
+ "Contribution" shall mean any work of authorship, including
89
+ the original version of the Work and any modifications or additions
90
+ to that Work or Derivative Works thereof, that is intentionally
91
+ submitted to Licensor for inclusion in the Work by the copyright owner
92
+ or by an individual or Legal Entity authorized to submit on behalf of
93
+ the copyright owner. For the purposes of this definition, "submitted"
94
+ means any form of electronic, verbal, or written communication sent
95
+ to the Licensor or its representatives, including but not limited to
96
+ communication on electronic mailing lists, source code control systems,
97
+ and issue tracking systems that are managed by, or on behalf of, the
98
+ Licensor for the purpose of discussing and improving the Work, but
99
+ excluding communication that is conspicuously marked or otherwise
100
+ designated in writing by the copyright owner as "Not a Contribution."
101
+
102
+ "Contributor" shall mean Licensor and any individual or Legal Entity
103
+ on behalf of whom a Contribution has been received by Licensor and
104
+ subsequently incorporated within the Work.
105
+
106
+ 2. Grant of Copyright License. Subject to the terms and conditions of
107
+ this License, each Contributor hereby grants to You a perpetual,
108
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
109
+ copyright license to reproduce, prepare Derivative Works of,
110
+ publicly display, publicly perform, sublicense, and distribute the
111
+ Work and such Derivative Works in Source or Object form.
112
+
113
+ 3. Grant of Patent License. Subject to the terms and conditions of
114
+ this License, each Contributor hereby grants to You a perpetual,
115
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
116
+ (except as stated in this section) patent license to make, have made,
117
+ use, offer to sell, sell, import, and otherwise transfer the Work,
118
+ where such license applies only to those patent claims licensable
119
+ by such Contributor that are necessarily infringed by their
120
+ Contribution(s) alone or by combination of their Contribution(s)
121
+ with the Work to which such Contribution(s) was submitted. If You
122
+ institute patent litigation against any entity (including a
123
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
124
+ or a Contribution incorporated within the Work constitutes direct
125
+ or contributory patent infringement, then any patent licenses
126
+ granted to You under this License for that Work shall terminate
127
+ as of the date such litigation is filed.
128
+
129
+ 4. Redistribution. You may reproduce and distribute copies of the
130
+ Work or Derivative Works thereof in any medium, with or without
131
+ modifications, and in Source or Object form, provided that You
132
+ meet the following conditions:
133
+
134
+ (a) You must give any other recipients of the Work or
135
+ Derivative Works a copy of this License; and
136
+
137
+ (b) You must cause any modified files to carry prominent notices
138
+ stating that You changed the files; and
139
+
140
+ (c) You must retain, in the Source form of any Derivative Works
141
+ that You distribute, all copyright, patent, trademark, and
142
+ attribution notices from the Source form of the Work,
143
+ excluding those notices that do not pertain to any part of
144
+ the Derivative Works; and
145
+
146
+ (d) If the Work includes a "NOTICE" text file as part of its
147
+ distribution, then any Derivative Works that You distribute must
148
+ include a readable copy of the attribution notices contained
149
+ within such NOTICE file, excluding those notices that do not
150
+ pertain to any part of the Derivative Works, in at least one
151
+ of the following places: within a NOTICE text file distributed
152
+ as part of the Derivative Works; within the Source form or
153
+ documentation, if provided along with the Derivative Works; or,
154
+ within a display generated by the Derivative Works, if and
155
+ wherever such third-party notices normally appear. The contents
156
+ of the NOTICE file are for informational purposes only and
157
+ do not modify the License. You may add Your own attribution
158
+ notices within Derivative Works that You distribute, alongside
159
+ or as an addendum to the NOTICE text from the Work, provided
160
+ that such additional attribution notices cannot be construed
161
+ as modifying the License.
162
+
163
+ You may add Your own copyright statement to Your modifications and
164
+ may provide additional or different license terms and conditions
165
+ for use, reproduction, or distribution of Your modifications, or
166
+ for any such Derivative Works as a whole, provided Your use,
167
+ reproduction, and distribution of the Work otherwise complies with
168
+ the conditions stated in this License.
169
+
170
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
171
+ any Contribution intentionally submitted for inclusion in the Work
172
+ by You to the Licensor shall be under the terms and conditions of
173
+ this License, without any additional terms or conditions.
174
+ Notwithstanding the above, nothing herein shall supersede or modify
175
+ the terms of any separate license agreement you may have executed
176
+ with Licensor regarding such Contributions.
177
+
178
+ 6. Trademarks. This License does not grant permission to use the trade
179
+ names, trademarks, service marks, or product names of the Licensor,
180
+ except as required for reasonable and customary use in describing the
181
+ origin of the Work and reproducing the content of the NOTICE file.
182
+
183
+ 7. Disclaimer of Warranty. Unless required by applicable law or
184
+ agreed to in writing, Licensor provides the Work (and each
185
+ Contributor provides its Contributions) on an "AS IS" BASIS,
186
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
187
+ implied, including, without limitation, any warranties or conditions
188
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
189
+ PARTICULAR PURPOSE. You are solely responsible for determining the
190
+ appropriateness of using or redistributing the Work and assume any
191
+ risks associated with Your exercise of permissions under this License.
192
+
193
+ 8. Limitation of Liability. In no event and under no legal theory,
194
+ whether in tort (including negligence), contract, or otherwise,
195
+ unless required by applicable law (such as deliberate and grossly
196
+ negligent acts) or agreed to in writing, shall any Contributor be
197
+ liable to You for damages, including any direct, indirect, special,
198
+ incidental, or consequential damages of any character arising as a
199
+ result of this License or out of the use or inability to use the
200
+ Work (including but not limited to damages for loss of goodwill,
201
+ work stoppage, computer failure or malfunction, or any and all
202
+ other commercial damages or losses), even if such Contributor
203
+ has been advised of the possibility of such damages.
204
+
205
+ 9. Accepting Warranty or Additional Liability. While redistributing
206
+ the Work or Derivative Works thereof, You may choose to offer,
207
+ and charge a fee for, acceptance of support, warranty, indemnity,
208
+ or other liability obligations and/or rights consistent with this
209
+ License. However, in accepting such obligations, You may act only
210
+ on Your own behalf and on Your sole responsibility, not on behalf
211
+ of any other Contributor, and only if You agree to indemnify,
212
+ defend, and hold each Contributor harmless for any liability
213
+ incurred by, or claims asserted against, such Contributor by reason
214
+ of your accepting any such warranty or additional liability.
215
+
216
+ END OF TERMS AND CONDITIONS
217
+
218
+ APPENDIX: How to apply the Apache License to your work.
219
+
220
+ To apply the Apache License to your work, attach the following
221
+ boilerplate notice, with the fields enclosed by brackets "[]"
222
+ replaced with your own identifying information. (Don't include
223
+ the brackets!) The text should be enclosed in the appropriate
224
+ comment syntax for the file format. We also recommend that a
225
+ file or class name and description of purpose be included on the
226
+ same "printed page" as the copyright notice for easier
227
+ identification within third-party archives.
228
+
229
+ Copyright [yyyy] [name of copyright owner]
230
+
231
+ Licensed under the Apache License, Version 2.0 (the "License");
232
+ you may not use this file except in compliance with the License.
233
+ You may obtain a copy of the License at
234
+
235
+ http://www.apache.org/licenses/LICENSE-2.0
236
+
237
+ Unless required by applicable law or agreed to in writing, software
238
+ distributed under the License is distributed on an "AS IS" BASIS,
239
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
240
+ See the License for the specific language governing permissions and
241
+ limitations under the License.
@@ -1,5 +1,7 @@
1
+ import type { NoteShape } from "@allyhub-next/formats";
2
+ import type { LocatedLayer } from "./locate.js";
1
3
  import type { MixPlan } from "@allyhub-next/audio";
2
- import type { BuildSource, CaptionLine, CaptionOptions, ConsoleLog, CoverInfo, Fact, LayerAnswer, LayerQueries, LayoutReport, LoadOptions, MediaInfo, PartText, Problem, Reads, TextInk, Timeline, Track, Word } from "@allyhub-next/video-core";
4
+ import type { BuildSource, CaptionLine, CaptionOptions, ConsoleLog, CoverInfo, Fact, LayerAnswer, LayerQueries, LayoutReport, LoadOptions, MediaInfo, PageObjects, PartText, Problem, Reads, TextInk, Timeline, Track, Word } from "@allyhub-next/video-core";
3
5
  import type { SayNeed } from "./speech.js";
4
6
  export type { SayNeed };
5
7
  /** How a moment is drawn: for its picture, or for its layout alone (nothing reads its pixels). */
@@ -32,7 +34,7 @@ export type PartSignature = {
32
34
  };
33
35
  /** One output of one piece in one combo, ready to draw frame by frame. */
34
36
  export interface LoadedOutput {
35
- readonly kind: "video" | "paged";
37
+ readonly kind: "video" | "slides";
36
38
  /** The film's plan; after ready() it has the parts' titles. */
37
39
  readonly timeline: Timeline;
38
40
  /** Fonts and media loaded and decoded; every layer mounted; every still drawn. */
@@ -100,6 +102,12 @@ export interface LoadedOutput {
100
102
  * them against.
101
103
  */
102
104
  inks(t: number): Promise<TextInk[]>;
105
+ /** A deck as it was drawn (@allyhub-next/slides-core's DrawnDeck): what its PowerPoint file is written from. Absent on a video. */
106
+ deck?(): unknown;
107
+ /** A deck's editor's command (@allyhub-next/slides-runtime's DeckEditCommand): a shape drawn at a frame, its text typed in place, what is typed posted back. Absent on a video. */
108
+ edit?(command: unknown, post: (message: unknown) => void): void;
109
+ /** What moment t shows that an editor lets a person point at: placed elements and text blocks with their message keys. */
110
+ objects(t: number): Promise<PageObjects>;
103
111
  /**
104
112
  * What the stage shows after the last seek, as a short string: two
105
113
  * moments with the same signature draw the same pixels, so a render
@@ -137,7 +145,7 @@ export interface LoadedOutput {
137
145
  }
138
146
  /** What a host reads once, after a load and its ready(). */
139
147
  export interface LoadedSummary {
140
- kind: "video" | "paged";
148
+ kind: "video" | "slides";
141
149
  timeline: Timeline;
142
150
  problems: Problem[];
143
151
  facts: Fact[];
@@ -171,6 +179,8 @@ export interface StageBridge {
171
179
  * not to; the page that embeds it drives it with `command`.
172
180
  */
173
181
  play(options: PlayOptions): Promise<PlayControl>;
182
+ /** What a person's mark is on, in shares of the stage. */
183
+ locate(mark: NoteShape): LocatedLayer[];
174
184
  }
175
185
  /** What `play` takes: the player's options but the output and the stage, which are the page's. */
176
186
  export interface PlayOptions {
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{momentOf as E,problem as k,timeParts as M,transitionSpec as O,transitionWindow as S}from"@allyhub-next/video-core";import{messageOf as K}from"./errors.js";const y=f=>Math.round(f*1e6)/1e6;export function timeFilm(f,g,c,p){const{source:u,ledger:h}=f,{fps:m,isPaged:l,dims:D,options:T,format:A}=g,{specs:i,inputs:d}=c,w=p?.snapTo(d),r=M([...d],{fps:m,beat:p?.beat??0,beatPhase:p?.beatPhase??0,...w?{snap:w}:{}});c.videoTakes.forEach((t,e)=>{const n=r.parts[e];!t||!n||(t.shown.start=n.start,t.shown.partStart=n.start)});const b=i.map((t,e)=>{const n=r.parts[e],o=d[e]?.placed??[],s=[...o,...(d[e]?.anchors??[]).filter(a=>!o.some(P=>P.name===a.name))];return{key:t.key,start:n?.start??0,anchors:n?s.map(a=>({name:a.name,at:y(n.start+r.at(e,`@${a.name}`)),...a.end===void 0?{}:{end:y(n.start+r.at(e,`@/${a.name}`))}})):[]}}),$=t=>E({parts:b},t),F=(t,e)=>{try{if(typeof t=="number")return t;if(typeof t=="string")return $(t);const n=i.findIndex(s=>s.key===t.part),o=r.parts[n];if(n<0||!o)throw new Error(`The video has no part ${t.part}; its parts are ${i.map(s=>s.key).join(", ")}.`);return o.start+r.at(n,t.at)}catch(n){h.problems.push(k("AK-T004",`${e}: ${K(n)}`,{where:{file:u.file}}));return}},x=new Map;if(!l){const t=e=>Math.round((e.end-e.start)*m);i.forEach((e,n)=>{const o=r.parts[n-1],s=r.parts[n];if(e.transition===void 0||!o||!s)return;const a=S(O(e.transition),m,t(o),t(s));a.before+a.after>0&&x.set(n,a)})}return{timing:r,duration:r.duration,parts:b,filmAt:$,momentAt:F,windows:x,checkLimit(){const t=l?void 0:D.profile,e=T.maxDuration;t&&r.duration>t.maxDuration+1e-6&&!(e!==void 0&&e<=t.maxDuration)&&h.problems.push(k("AK-F001",`This video lasts ${r.duration.toFixed(1)} s, and ${t.label} (${A}) takes at most ${String(t.maxDuration)} s. Cut ${(r.duration-t.maxDuration).toFixed(1)} s: shorter parts, an edits file on the take, or fewer parts.`,{where:{file:u.file}}))}}}
2
+ import{momentOf as E,problem as x,timeParts as M,transitionSpec as O,transitionWindow as P}from"@allyhub-next/video-core";import{messageOf as S}from"./errors.js";const k=d=>Math.round(d*1e6)/1e6;export function timeFilm(d,y,c,p){const{source:u,ledger:h}=d,{fps:m,dims:g,options:D,format:T}=y,{specs:i,inputs:f}=c,l=p?.snapTo(f),n=M([...f],{fps:m,beat:p?.beat??0,beatPhase:p?.beatPhase??0,...l?{snap:l}:{}});c.videoTakes.forEach((t,e)=>{const r=n.parts[e];!t||!r||(t.shown.start=r.start,t.shown.partStart=r.start)});const w=i.map((t,e)=>{const r=n.parts[e],o=f[e]?.placed??[],s=[...o,...(f[e]?.anchors??[]).filter(a=>!o.some(F=>F.name===a.name))];return{key:t.key,start:r?.start??0,anchors:r?s.map(a=>({name:a.name,at:k(r.start+n.at(e,`@${a.name}`)),...a.end===void 0?{}:{end:k(r.start+n.at(e,`@/${a.name}`))}})):[]}}),b=t=>E({parts:w},t),A=(t,e)=>{try{if(typeof t=="number")return t;if(typeof t=="string")return b(t);const r=i.findIndex(s=>s.key===t.part),o=n.parts[r];if(r<0||!o)throw new Error(`The video has no part ${t.part}; its parts are ${i.map(s=>s.key).join(", ")}.`);return o.start+n.at(r,t.at)}catch(r){h.problems.push(x("AK-T004",`${e}: ${S(r)}`,{where:{file:u.file}}));return}},$=new Map;{const t=e=>Math.round((e.end-e.start)*m);i.forEach((e,r)=>{const o=n.parts[r-1],s=n.parts[r];if(e.transition===void 0||!o||!s)return;const a=P(O(e.transition),m,t(o),t(s));a.before+a.after>0&&$.set(r,a)})}return{timing:n,duration:n.duration,parts:w,filmAt:b,momentAt:A,windows:$,checkLimit(){const t=g.profile,e=D.maxDuration;t&&n.duration>t.maxDuration+1e-6&&!(e!==void 0&&e<=t.maxDuration)&&h.problems.push(x("AK-F001",`This video lasts ${n.duration.toFixed(1)} s, and ${t.label} (${T}) takes at most ${String(t.maxDuration)} s. Cut ${(n.duration-t.maxDuration).toFixed(1)} s: shorter parts, an edits file on the take, or fewer parts.`,{where:{file:u.file}}))}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{entryKind as b}from"@allyhub-next/formats";import{comboKey as y,dimsCombo as x,problem as k,seedKey as g,STRUCTURE as j,validCombo as L}from"@allyhub-next/video-core";import{installConsole as O,resetConsole as C}from"./console.js";import{codeOf as S,LoadFailure as R}from"./errors.js";import{installGuards as E,realNow as l,within as K}from"./guards.js";import{ReadLog as T}from"./reads.js";export const RUN_PROBLEMS=200;export class Ledger{problems=[];facts=[];run=[];times=[];running;loading=!0;doing;waiting=[];ran(e){this.run.length>=RUN_PROBLEMS||this.run.some(i=>i.code===e.code&&i.message===e.message&&i.part===e.part)||this.run.push(e)}async timed(e,i){const a=l();try{return await i()}finally{this.times.push({what:e,ms:l()-a})}}wait(e){const i=this.running;if(!this.loading){this.waiting.push({work:e,who:i});return}const a=this.doing??"a layer",o=l();this.waiting.push({work:e.finally(()=>{this.times.push({what:`the work ${a} waited for (ctx.wait)`,ms:l()-o})}),who:i})}async settle(e){const i=l()+e,a=[];for(;this.waiting.length>0;){const o=this.waiting.splice(0);if((await K(o.map(n=>n.work),i-l())).forEach((n,d)=>{const r=o[d]?.who;if(n===void 0){a.push(`the work ${u(r)} waits for (ctx.wait)`);return}if(n.status==="fulfilled")return;const f=n.reason;this.ran(k(S(n.reason),`${u(r)}: the work it waits for (ctx.wait) failed: ${String(f.message??n.reason)}`,{...r?.part===void 0?{}:{part:r.part},...r?.t===void 0?{}:{t:r.t}}))}),a.length>0)break}return a}}const u=t=>t?.what??"A layer";function v(t,e){const i=t.dims,a=t.matrix?.space;if(L(a,i,t.matrix?.rules??[],e.combo))return;const o=a?`; slots: ${Object.entries(a.slots).map(([s,n])=>`${s}=${n.map(d=>d.name).join("|")}`).join(", ")}${a.declared?`; structures: ${Object.keys(a.structures).join("|")}`:""}; and the matrix's rules`:"";throw new R("bad_combo",`Piece ${t.piece} has no combo ${y(e.combo)} (dimensions: ${Object.entries(i).map(([s,n])=>`${s}=${n.join("|")}`).join(", ")||"none"}${o}).`)}export function createEnv(t,e,i){const a=l();v(t,e);const o={...e.combo},s=o.lang,n=t.locales[0],d=(i?i.def.kind==="paged":b(t.file)==="slides")?"slides":"video",r=`${t.piece}:${d}:${g(o,t.format)}`,f=g(x(t.dims,o),t.format),c=t.matrix?.space,$=new Set(c?[...Object.keys(c.slots),...c.declared?[j]:[]]:[]),w=E();w.setMoment(0,`${r}:load`),i||(O(),C({...e.consoleLimit===void 0?{}:{limit:e.consoleLimit},passThrough:e.purpose==="play"}));const h=new T({lang:s,defaultLang:n,...t.text===void 0?{}:{text:t.text},own:s===void 0?{}:t.messages[s]??{},fallback:n===void 0?{}:t.messages[n]??{},...t.anchors?{anchors:{...s!==void 0&&t.anchors[s]?{own:t.anchors[s]}:{},...n!==void 0&&t.anchors[n]?{fallback:t.anchors[n]}:{}}}:{},media:t.media,file:t.file,...t.data?{data:t.data}:{}});return{source:t,options:e,embed:i,combo:o,lang:s,defaultLang:n,output:d,seedBase:r,partSeed:(m,p)=>`${t.piece}:${d}:${f}:${m}:${String(p)}`,picked:$,space:c,guards:w,log:h,ledger:new Ledger,start:a,mediaOf:(m,p)=>typeof m=="string"?h.asset(m,p):h.mediaAt(m.path)??h.asset(`/${m.path}`)}}
2
+ import{entryKind as b}from"@allyhub-next/formats";import{comboKey as y,dimsCombo as x,problem as k,seedKey as g,STRUCTURE as j,validCombo as L}from"@allyhub-next/video-core";import{installConsole as O,resetConsole as C}from"./console.js";import{codeOf as S,LoadFailure as R}from"./errors.js";import{installGuards as E,realNow as l,within as K}from"./guards.js";import{ReadLog as T}from"./reads.js";export const RUN_PROBLEMS=200;export class Ledger{problems=[];facts=[];run=[];times=[];running;loading=!0;doing;waiting=[];ran(e){this.run.length>=RUN_PROBLEMS||this.run.some(i=>i.code===e.code&&i.message===e.message&&i.part===e.part)||this.run.push(e)}async timed(e,i){const a=l();try{return await i()}finally{this.times.push({what:e,ms:l()-a})}}wait(e){const i=this.running;if(!this.loading){this.waiting.push({work:e,who:i});return}const a=this.doing??"a layer",o=l();this.waiting.push({work:e.finally(()=>{this.times.push({what:`the work ${a} waited for (ctx.wait)`,ms:l()-o})}),who:i})}async settle(e){const i=l()+e,a=[];for(;this.waiting.length>0;){const o=this.waiting.splice(0);if((await K(o.map(n=>n.work),i-l())).forEach((n,d)=>{const r=o[d]?.who;if(n===void 0){a.push(`the work ${u(r)} waits for (ctx.wait)`);return}if(n.status==="fulfilled")return;const f=n.reason;this.ran(k(S(n.reason),`${u(r)}: the work it waits for (ctx.wait) failed: ${String(f.message??n.reason)}`,{...r?.part===void 0?{}:{part:r.part},...r?.t===void 0?{}:{t:r.t}}))}),a.length>0)break}return a}}const u=t=>t?.what??"A layer";function v(t,e){const i=t.dims,a=t.matrix?.space;if(L(a,i,t.matrix?.rules??[],e.combo))return;const o=a?`; slots: ${Object.entries(a.slots).map(([s,n])=>`${s}=${n.map(d=>d.name).join("|")}`).join(", ")}${a.declared?`; structures: ${Object.keys(a.structures).join("|")}`:""}; and the matrix's rules`:"";throw new R("bad_combo",`Piece ${t.piece} has no combo ${y(e.combo)} (dimensions: ${Object.entries(i).map(([s,n])=>`${s}=${n.join("|")}`).join(", ")||"none"}${o}).`)}export function createEnv(t,e,i){const a=l();v(t,e);const o={...e.combo},s=o.lang,n=t.locales[0],d=!i&&b(t.file)==="slides"?"slides":"video",r=`${t.piece}:${d}:${g(o,t.format)}`,f=g(x(t.dims,o),t.format),c=t.matrix?.space,$=new Set(c?[...Object.keys(c.slots),...c.declared?[j]:[]]:[]),p=E();p.setMoment(0,`${r}:load`),i||(O(),C({...e.consoleLimit===void 0?{}:{limit:e.consoleLimit},passThrough:e.purpose==="play"}));const h=new T({lang:s,defaultLang:n,...t.text===void 0?{}:{text:t.text},own:s===void 0?{}:t.messages[s]??{},fallback:n===void 0?{}:t.messages[n]??{},...t.anchors?{anchors:{...s!==void 0&&t.anchors[s]?{own:t.anchors[s]}:{},...n!==void 0&&t.anchors[n]?{fallback:t.anchors[n]}:{}}}:{},media:t.media,file:t.file,...t.data?{data:t.data}:{}});return{source:t,options:e,embed:i,combo:o,lang:s,defaultLang:n,output:d,seedBase:r,partSeed:(m,w)=>`${t.piece}:${d}:${f}:${m}:${String(w)}`,picked:$,space:c,guards:p,log:h,ledger:new Ledger,start:a,mediaOf:(m,w)=>typeof m=="string"?h.asset(m,w):h.mediaAt(m.path)??h.asset(`/${m.path}`)}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{cuesIn as L,dimsCombo as N,joinWords as U,problem as W}from"@allyhub-next/video-core";import{codeOf as B,messageOf as F}from"./errors.js";import{timelineFootage as R}from"./footage.js";import{mixPlan as _}from"./mix-plan.js";function q(o){return JSON.stringify(o,(f,i)=>{if(typeof i=="function")return`fn:${String(i)}`;if(typeof i=="object"&&i!==null&&"sha256"in i&&"path"in i&&"url"in i){const c={...i};return delete c.url,delete c.matteUrl,delete c.denoisedUrl,c}return i})}export function facade(o){const{env:f,piece:i,stage:c,mounted:p,takes:x,captions:k,footage:y}=o,{drawer:u,measurer:m,embedder:z}=o,{source:h,combo:w,log:S,ledger:b}=f,{fps:$,dims:g,format:M,look:A,isPaged:P,prefix:I}=i;let C=!1,v;const K=()=>{if(v)return v;const t={fps:$,width:g.width,height:g.height,...P||!g.profile?{}:{profile:g.profile},duration:o.duration,background:o.background,parts:p.map(r=>r.part.title===void 0&&r.record.title!==void 0?{...r.part,title:r.record.title}:r.part),cues:[...o.cues],...y.placed.length>0?{footage:y.placed.map(R)}:{},...o.transitions.length>0?{transitions:[...o.transitions]}:{},...y.needs().length>0?{index:y.needs()}:{},audio:o.audio};return C&&(v=t),t};return{kind:P?"paged":"video",get timeline(){return K()},async ready(){await u.ready(),C=!0,v=void 0},seek:(t,r)=>u.draw(t,r),words:()=>k.lines.flatMap(t=>[...t.words]),lines:()=>[...k.lines],captionOptions:()=>k.asked??null,measure:t=>m.measure(t),tracks:(t,r)=>m.tracks(t,r),inks:t=>m.inks(t),stuck:()=>u.stuck(),seekLimit:i.seekLimitMs/1e3,setPlaying(t){u.setPlaying(t)},text(){return p.map(t=>{const r=x.results[t.n]??{},n=r.speech,s=r.shown??(n?U(n.words):void 0),e=n?.script??r.say?.text,a=o.notes.get(t.part.key);return{key:t.part.key,onScreen:[...new Set(t.record.onScreen??[])],...a===void 0?{}:{notes:a},...s===void 0?{}:{spoken:s},...e!==void 0&&s!==void 0&&e!==s?{speak:e}:{},...r.speechKey===void 0?{}:{speechKey:r.speechKey}}})},signature:()=>m.signature(),signatureAt:t=>m.signatureAt(t),partSignature:(t,r)=>m.partSignature(t,r),reads(){const t=S.reads(I,p.map(e=>e.part.key)),r=z.loaded.reduce((e,a)=>{const d=a.inner.reads(),O=(l,J)=>[...new Map(l.map(j=>[J(j),j])).values()];return{messages:O([...e.messages,...d.messages],l=>l.key),media:O([...e.media,...d.media],l=>l.path),data:O([...e.data,...d.data],l=>l.path)}},t),n=new Map,s=(e,a)=>{const d=n.get(e)??new Set;d.add(a),n.set(e,d)};for(const e of p)for(const a of e.record.reads.keys())a.startsWith("f:")&&s(a.slice(2),e.part.key);for(const e of p)e.part.speech&&s(e.part.speech.file,e.part.key);for(const e of y.placed)s(e.file,e.part);return{...r,media:r.media.flatMap(e=>{const a=n.get(e.path);return a?.size?[...a].sort().map(d=>({...e,part:d})):[e]})}},says:()=>x.says.map(t=>({...t})),signs(){const t={},r=N(h.dims,w),n=o.background;for(const s of p)t[s.part.key]=JSON.stringify({v:1,piece:h.piece,output:f.output,kind:P?"paged":"video",key:s.part.key,slot:s.part.slot??null,pick:s.part.slot===void 0?null:w[s.part.slot]??null,dims:r,format:M,fps:$,size:[g.width,g.height],frames:Math.round((s.part.end-s.part.start)*$),background:n,look:A,layers:s.layers.map(e=>[e.spec.component,e.spec.z??"front",Math.round(e.start*1e6)/1e6,Math.round(e.end*1e6)/1e6,q(e.props)]),custom:s.layers.some(e=>e.spec.component==="custom"||e.spec.component==="scenery"),words:o.words(s.n),heard:L(k.cues(),s.part.start,s.part.end),planes:s.part.planes.map(e=>e.overlay===!0?"overlay":e.behindPerson===!0),stack:s.layers.map(e=>[e.index,e.plane]),reads:[...s.record.reads.entries()].sort((e,a)=>e[0]<a[0]?-1:e[0]>a[0]?1:0)});return t},mixPlan:()=>_(K(),h.media,{seed:f.seedBase}),problems(){const t=[...b.problems,...z.loaded.flatMap(n=>n.inner.problems().map(s=>({...s,message:`In the video ${n.id}: ${s.message}`}))),...S.problems,...o.timingProblems,...b.run,...c.problems(p),...S.translationProblems()],r=new Set;return t.map(n=>({...n,piece:h.piece,output:f.output,combo:w,format:M})).filter(n=>{const s=`${n.code}|${n.message}|${n.part??""}`;return r.has(s)?!1:(r.add(s),!0)})},facts:()=>b.facts.map(t=>({...t,output:f.output,combo:w,format:M})),covers:()=>u.covers(),drawCover:t=>u.drawCover(t),async ask(t,r){const n=[];for(const s of p)for(const e of s.layers){const a=e.answers.get(t);if(a)try{n.push({part:s.part.key,layer:e.spec.component,index:e.index,answer:await a(r)})}catch(d){b.ran(W(B(d),`${e.spec.component} (layer ${String(e.index+1)}) in part ${s.part.key} failed to answer ${t}: ${F(d)}`,{part:s.part.key}))}}return n},dispose(){u.dispose(),c.dispose()}}}
2
+ import{cuesIn as J,dimsCombo as L,joinWords as N,problem as U}from"@allyhub-next/video-core";import{codeOf as W,messageOf as B}from"./errors.js";import{timelineFootage as F}from"./footage.js";import{mixPlan as R}from"./mix-plan.js";function _(a){return JSON.stringify(a,(m,i)=>{if(typeof i=="function")return`fn:${String(i)}`;if(typeof i=="object"&&i!==null&&"sha256"in i&&"path"in i&&"url"in i){const p={...i};return delete p.url,delete p.matteUrl,delete p.denoisedUrl,p}return i})}export function facade(a){const{env:m,piece:i,stage:p,mounted:c,takes:O,captions:k,footage:g}=a,{drawer:u,measurer:l,embedder:j}=a,{source:h,combo:w,log:b,ledger:S}=m,{fps:$,dims:y,format:M,look:K,prefix:A}=i;let x=!1,v;const z=()=>{if(v)return v;const t={fps:$,width:y.width,height:y.height,...y.profile?{profile:y.profile}:{},duration:a.duration,background:a.background,parts:c.map(r=>r.part.title===void 0&&r.record.title!==void 0?{...r.part,title:r.record.title}:r.part),cues:[...a.cues],...g.placed.length>0?{footage:g.placed.map(F)}:{},...a.transitions.length>0?{transitions:[...a.transitions]}:{},...g.needs().length>0?{index:g.needs()}:{},audio:a.audio};return x&&(v=t),t};return{kind:"video",get timeline(){return z()},async ready(){await u.ready(),x=!0,v=void 0},seek:(t,r)=>u.draw(t,r),words:()=>k.lines.flatMap(t=>[...t.words]),lines:()=>[...k.lines],captionOptions:()=>k.asked??null,measure:t=>l.measure(t),tracks:(t,r)=>l.tracks(t,r),inks:t=>l.inks(t),objects:t=>l.objects(t,r=>b.keysShowing(r)),stuck:()=>u.stuck(),seekLimit:i.seekLimitMs/1e3,setPlaying(t){u.setPlaying(t)},text(){return c.map(t=>{const r=O.results[t.n]??{},n=r.speech,s=r.shown??(n?N(n.words):void 0),e=n?.script??r.say?.text,o=a.notes.get(t.part.key);return{key:t.part.key,onScreen:[...new Set(t.record.onScreen??[])],...o===void 0?{}:{notes:o},...s===void 0?{}:{spoken:s},...e!==void 0&&s!==void 0&&e!==s?{speak:e}:{},...r.speechKey===void 0?{}:{speechKey:r.speechKey}}})},signature:()=>l.signature(),signatureAt:t=>l.signatureAt(t),partSignature:(t,r)=>l.partSignature(t,r),reads(){const t=b.reads(A,c.map(e=>e.part.key)),r=j.loaded.reduce((e,o)=>{const d=o.inner.reads(),P=(f,I)=>[...new Map(f.map(C=>[I(C),C])).values()];return{messages:P([...e.messages,...d.messages],f=>f.key),media:P([...e.media,...d.media],f=>f.path),data:P([...e.data,...d.data],f=>f.path)}},t),n=new Map,s=(e,o)=>{const d=n.get(e)??new Set;d.add(o),n.set(e,d)};for(const e of c)for(const o of e.record.reads.keys())o.startsWith("f:")&&s(o.slice(2),e.part.key);for(const e of c)e.part.speech&&s(e.part.speech.file,e.part.key);for(const e of g.placed)s(e.file,e.part);return{...r,media:r.media.flatMap(e=>{const o=n.get(e.path);return o?.size?[...o].sort().map(d=>({...e,part:d})):[e]})}},says:()=>O.says.map(t=>({...t})),signs(){const t={},r=L(h.dims,w),n=a.background;for(const s of c)t[s.part.key]=JSON.stringify({v:1,piece:h.piece,output:m.output,kind:"video",key:s.part.key,slot:s.part.slot??null,pick:s.part.slot===void 0?null:w[s.part.slot]??null,dims:r,format:M,fps:$,size:[y.width,y.height],frames:Math.round((s.part.end-s.part.start)*$),background:n,look:K,layers:s.layers.map(e=>[e.spec.component,e.spec.z??"front",Math.round(e.start*1e6)/1e6,Math.round(e.end*1e6)/1e6,_(e.props)]),custom:s.layers.some(e=>e.spec.component==="custom"||e.spec.component==="scenery"),words:a.words(s.n),heard:J(k.cues(),s.part.start,s.part.end),planes:s.part.planes.map(e=>e.overlay===!0?"overlay":e.behindPerson===!0),stack:s.layers.map(e=>[e.index,e.plane]),reads:[...s.record.reads.entries()].sort((e,o)=>e[0]<o[0]?-1:e[0]>o[0]?1:0)});return t},mixPlan:()=>R(z(),h.media,{seed:m.seedBase}),problems(){const t=[...S.problems,...j.loaded.flatMap(n=>n.inner.problems().map(s=>({...s,message:`In the video ${n.id}: ${s.message}`}))),...b.problems,...a.timingProblems,...S.run,...p.problems(c),...b.translationProblems()],r=new Set;return t.map(n=>({...n,piece:h.piece,output:m.output,combo:w,format:M})).filter(n=>{const s=`${n.code}|${n.message}|${n.part??""}`;return r.has(s)?!1:(r.add(s),!0)})},facts:()=>S.facts.map(t=>({...t,output:m.output,combo:w,format:M})),covers:()=>u.covers(),drawCover:t=>u.drawCover(t),async ask(t,r){const n=[];for(const s of c)for(const e of s.layers){const o=e.answers.get(t);if(o)try{n.push({part:s.part.key,layer:e.spec.component,index:e.index,answer:await o(r)})}catch(d){S.ran(U(W(d),`${e.spec.component} (layer ${String(e.index+1)}) in part ${s.part.key} failed to answer ${String(t)}: ${B(d)}`,{part:s.part.key}))}}return n},dispose(){u.dispose(),p.dispose()}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{backdropUnit as pe,fact as Ue,faceAt as Ce,faceOnFrame as le,facesOnFrame as Pe,forOrient as me,fromEdited as Fe,hasFace as Oe,keyAt as ke,MATTE_FEATHER as Se,MATTE_SHRINK as Ke,parsePunch as Le,pixelRect as Re,placeFootage as _e,problem as Q,pullbackKeys as je,PULLBACK_DUR as Te,PULLBACK_SCALE as Be,PUNCH_CENTER as ge,PUNCH_SCALE as De,punchKeys as Ne,REFRAME_FALLBACK as Ge,reframePath as ze,reframeWindow as He,sourceAt as Ie,toFrame as V}from"@allyhub-next/video-core";import{isBoxKeys as We}from"./embed.js";import{LoadFailure as Je}from"./errors.js";const Ye=/\.(png|jpe?g|webp)$/i,qe=t=>(t.blur??0)>0||(t.dim??0)>0||(t.desaturate??0)>0||t.color!==void 0||t.image!==void 0,S=t=>Math.round(t*1e3)/1e3;export function footagePlanner(t,be,xe,ye){const{source:U,ledger:K,embed:we}=t,{dims:f,fps:G,isPaged:X}=be,b=[],L=new Map,Z=new Set,z=new Map,R=(e,n)=>{const o=z.get(e)??{file:e};o[n]=!0,z.set(e,o)},_=(e,n)=>{K.facts.push(Ue("fallback",{piece:U.piece,part:e},n))},ve=(e,n,o)=>{const d=pe(f.width,f.height),c=l=>Math.round(l*d*1e3)/1e3;let r;if(e.image!==void 0){if(r=t.mediaOf(e.image,o),r.sha256==="")return;if(r.kind!=="image"||!Ye.test(r.path)){K.problems.push(Q("AK-A003",`The background image ${r.path} of footage() in part ${n} is not a PNG, JPEG or WebP image.`,{part:n,where:{file:U.file}}));return}}let u;if(e.color!==void 0){const l=CSS.supports("color",e.color)?ye(e.color):void 0;if(l===void 0)throw new Error(`footage() background color ${JSON.stringify(e.color)} in part ${n} is not a CSS color.`);u=l.length===9&&l.endsWith("00")?"transparent":l}return{backdrop:{...e.blur?{blur:c(e.blur)}:{},...e.dim?{dim:e.dim}:{},...e.desaturate?{desaturate:e.desaturate}:{},...u===void 0?{}:{color:u},...r?{image:r.path}:{},feather:c(e.feather??Se),shrink:c(e.shrink??Ke)},...r?{imageUrl:r.url}:{}}};return{plan:(e,n,o,d,c,r,u)=>{const l=e.file,x=l===void 0;let a;if(x){if(!o){K.problems.push(Q("AK-A001",`footage() in part ${n.key} names no file, so it shows the part's take, and the part has no take${X?" (pages have no speech)":""}. Give footage a file, or give the part speech: take("./clip.mp4").`,{part:n.key,where:{file:U.file}}));return}a=o.media}else a=t.mediaOf(l,e.base);if(a.sha256==="")return;if(a.kind!=="video"){K.problems.push(Q("AK-A003",x?`footage() in part ${n.key} shows the part's take, and ${a.path} is not a video. Give footage a file, or take a video.`:`The footage ${a.path} in part ${n.key} is not a video (mp4, webm or mov).`,{part:n.key,where:{file:U.file}}));return}const k=V(n.start+c,G),j=V(n.start+r,G);if(j<=k)return;a.faces&&L.set(a.path,a.faces),a.matte===!0&&Z.add(a.path);let C,P;if(x&&o&&d!==void 0){const i=o.ranges??[{from:o.from,to:o.from+o.dur}];if(C=S(Fe(i,k-d)),o.ranges&&o.ranges.length>1){const h=[{at:k,from:C}];let $=0;for(const A of o.ranges){const p=S(d+$);$>0&&p>k+1e-6&&p<j&&h.push({at:p,from:A.from}),$+=A.to-A.from}h.length>1&&(P=h)}}else C=Math.max(0,typeof e.from=="number"?e.from:0);const y=a.width!==void 0&&a.height!==void 0?{width:a.width,height:a.height}:void 0,ee=e.fit??"cover",H=me(e.box,f.orient),te=me(e.crop,f.orient),ne=We(H)?H:void 0,T=ne?.map(i=>({t:V(n.start+Math.min(Math.max(u.at(i.t),c),r),G),box:i.box==="full"?[0,0,f.width,f.height]:Re(i.box,f.width,f.height),...i.ease?{ease:i.ease}:{}})).sort((i,h)=>i.t-h.t),Ae=ne?"full":H??"full",F=T?.[0],M=_e({box:F?[F.box[0]/f.width,F.box[1]/f.height,F.box[2]/f.width,F.box[3]/f.height]:Ae,fit:ee,...te?{crop:te}:{},...y?{source:y}:{},frame:f}),ae=e.shape==="circle"||!e.radius?0:S(Math.min(e.radius*pe(f.width,f.height),M.box[2]/2,M.box[3]/2));let I=M.crop,oe=M.picture,w,W;const re=e.punchIn??[],v=e.pullback===void 0||e.pullback===!1?void 0:e.pullback===!0?{}:e.pullback;if((e.reframe!==void 0||re.length>0||v)&&y){const i=M.box,h=He(y,{w:i[2],h:i[3]}),$=typeof e.reframe=="object"&&"face"in e.reframe?e.reframe:void 0,A=e.reframe==="face"||$!==void 0;A&&!a.faces&&(R(a.path,"faces"),_(n.key,{file:a.path,missing:"face-track",for:"reframe",fallback:"centred"}));const p=a.faces,ce=e.speaker??p?.speaker;p&&e.speaker!==void 0&&!Oe(p,e.speaker)&&_(n.key,{file:a.path,missing:"face",face:e.speaker,for:"speaker",fallback:"centred"});const Me=typeof e.reframe=="object"&&"x"in e.reframe?e.reframe:A?Ge:{x:.5,y:.5},fe={start:k,end:j,from:C,speed:x?1:e.speed??1,...P?{cuts:P}:{}};w=ze({track:A?p:void 0,speaker:ce,faceY:$?.faceY,focus:Me,window:h,source:y,layer:fe});const B=w[0]??{x:0,y:0};I=[B.x,B.y,h.w,h.h],oe=[...i],w.length<=1&&(w=void 0);const D=w,de=(s,g)=>{if(g)return{cx:g.x,cy:g.y};const m=p?Ce(p,Ie(fe,s),ce):void 0;if(!m)return{cx:ge.x,cy:ge.y};const q=D?ke(D.map(O=>({t:O.t,v:O.x})),s):B.x,N=D?ke(D.map(O=>({t:O.t,v:O.y})),s):B.y,Ee=(m[0]+m[2]/2-q)/h.w,$e=(m[1]+m[3]/2-N)/h.h;return{cx:S(Math.min(Math.max(Ee,0),1)),cy:S(Math.min(Math.max($e,0),1))}},Y=[];for(const s of re){const g=typeof s=="object"?{...s,ref:s.at}:{...Le(String(s)),until:void 0},m=u.at(g.ref),q=g.until!==void 0?u.at(g.until):xe.wordEnd(n.key,m),N=n.start+m;Y.push({start:N,end:n.start+Math.max(q,m),scale:g.scale??De,...de(N,typeof s=="object"?s.center:void 0),...typeof s=="object"&&s.in!==void 0?{in:s.in}:{},...typeof s=="object"&&s.out!==void 0?{out:s.out}:{},...typeof s=="object"&&s.ease!==void 0?{ease:s.ease}:{}})}const ue=Y.length>0?Ne(Y):[],he=v?je(k,{scale:v.scale??Be,dur:v.dur??Te,...de(k,v.center),...v.ease?{ease:v.ease}:{}},ue):ue;he.length>0&&(W=he)}x&&u.graphics&&!a.faces&&R(a.path,"faces");let J=!1;u.cutout&&(a.matte===!0?J=!0:(R(a.path,"matte"),_(n.key,{file:a.path,missing:"person-matte",for:"behind-person",fallback:"in-front"})));let E;if(e.background&&qe(e.background)){const i=ve(e.background,n.key,e.base);i&&a.matte===!0?E=i:i&&(R(a.path,"matte"),_(n.key,{file:a.path,missing:"person-matte",for:"background",fallback:"unprocessed"}))}if(we)throw new Je("embedded_footage",`${U.piece}'s part ${n.key} plays ${a.path}: a video shown inside another (a scenery's screen, a part's video take, a footage of a video item) draws its graphic layers only, not footage yet.`);const se=J&&u.person,ie={part:n.key,file:a.path,start:k,end:j,from:C,speed:x?1:e.speed??1,gainDb:e.gainDb??0,audio:!X&&(e.audio??!1)&&a.audio===!0,...x?{take:!0}:{},fit:ee,box:M.box,...I?{crop:I}:{},picture:oe,...P?{cuts:P}:{},...w?{pan:w}:{},...W?{zoom:W}:{},...T&&T.length>1?{boxes:T}:{},...u.over>0?{over:u.over}:{},...J?{cutout:!0}:{},...e.sharpen?{sharpen:e.sharpen}:{},...E?{background:E.backdrop}:{},...E?.imageUrl?{imageUrl:E.imageUrl}:{},...(se||E)&&a.matteUrl?{matteUrl:a.matteUrl}:{},...se?{personOver:!0}:{},...e.shape==="circle"?{shape:"circle"}:{},...ae>0?{radius:ae}:{},...e.speaker===void 0?{}:{speaker:e.speaker},url:a.url,...a.duration===void 0?{}:{duration:a.duration},...y?{source:y}:{}};return b.push(ie),ie},placed:b,needs:()=>[...z.values()],speakerIn:e=>b.some(n=>n.part===e&&(L.has(n.file)||Z.has(n.file))),faceAt(e,n,o){for(let d=b.length-1;d>=0;d--){const c=b[d];if(c?.part!==e||n<c.start||n>=c.end)continue;const r=L.get(c.file);if(!r)continue;const u=o===void 0?le(c,r,n):le(c,r,n,o);if(u)return u}},facesAt(e,n){for(let o=b.length-1;o>=0;o--){const d=b[o];if(d?.part!==e||n<d.start||n>=d.end)continue;const c=L.get(d.file);if(!c)continue;const r=Pe(d,c,n);if(r.length>0)return r}return[]}}}export function timelineFootage(t){return{part:t.part,file:t.file,start:t.start,end:t.end,from:t.from,speed:t.speed,gainDb:t.gainDb,audio:t.audio,...t.take?{take:!0}:{},fit:t.fit,box:t.box,...t.crop?{crop:t.crop}:{},picture:t.picture,...t.cuts?{cuts:t.cuts}:{},...t.pan?{pan:t.pan}:{},...t.zoom?{zoom:t.zoom}:{},...t.boxes?{boxes:t.boxes}:{},...t.over?{over:t.over}:{},...t.cutout?{cutout:!0}:{},...t.sharpen?{sharpen:t.sharpen}:{},...t.background?{background:t.background}:{},...t.shape?{shape:t.shape}:{},...t.radius?{radius:t.radius}:{},...t.speaker===void 0?{}:{speaker:t.speaker}}}
2
+ import{backdropUnit as he,fact as Ue,faceAt as $e,faceOnFrame as pe,facesOnFrame as Ce,forOrient as le,fromEdited as Fe,hasFace as Pe,keyAt as me,MATTE_FEATHER as Oe,MATTE_SHRINK as Se,parsePunch as Ke,pixelRect as Le,placeFootage as Re,problem as Q,pullbackKeys as _e,PULLBACK_DUR as je,PULLBACK_SCALE as Te,PUNCH_CENTER as ke,PUNCH_SCALE as Be,punchKeys as De,REFRAME_FALLBACK as Ne,reframePath as Ge,reframeWindow as ze,sourceAt as He,toFrame as V}from"@allyhub-next/video-core";import{isBoxKeys as Ie}from"./embed.js";import{LoadFailure as We}from"./errors.js";const Je=/\.(png|jpe?g|webp)$/i,Ye=t=>(t.blur??0)>0||(t.dim??0)>0||(t.desaturate??0)>0||t.color!==void 0||t.image!==void 0,S=t=>Math.round(t*1e3)/1e3;export function footagePlanner(t,ge,be,xe){const{source:$,ledger:K,embed:ye}=t,{dims:f,fps:G}=ge,b=[],L=new Map,X=new Set,z=new Map,R=(e,n)=>{const o=z.get(e)??{file:e};o[n]=!0,z.set(e,o)},_=(e,n)=>{K.facts.push(Ue("fallback",{piece:$.piece,part:e},n))},we=(e,n,o)=>{const d=he(f.width,f.height),c=l=>Math.round(l*d*1e3)/1e3;let r;if(e.image!==void 0){if(r=t.mediaOf(e.image,o),r.sha256==="")return;if(r.kind!=="image"||!Je.test(r.path)){K.problems.push(Q("AK-A003",`The background image ${r.path} of footage() in part ${n} is not a PNG, JPEG or WebP image.`,{part:n,where:{file:$.file}}));return}}let u;if(e.color!==void 0){const l=CSS.supports("color",e.color)?xe(e.color):void 0;if(l===void 0)throw new Error(`footage() background color ${JSON.stringify(e.color)} in part ${n} is not a CSS color.`);u=l.length===9&&l.endsWith("00")?"transparent":l}return{backdrop:{...e.blur?{blur:c(e.blur)}:{},...e.dim?{dim:e.dim}:{},...e.desaturate?{desaturate:e.desaturate}:{},...u===void 0?{}:{color:u},...r?{image:r.path}:{},feather:c(e.feather??Oe),shrink:c(e.shrink??Se)},...r?{imageUrl:r.url}:{}}};return{plan:(e,n,o,d,c,r,u)=>{const l=e.file,x=l===void 0;let a;if(x){if(!o){K.problems.push(Q("AK-A001",`footage() in part ${n.key} names no file, so it shows the part's take, and the part has no take. Give footage a file, or give the part speech: take("./clip.mp4").`,{part:n.key,where:{file:$.file}}));return}a=o.media}else a=t.mediaOf(l,e.base);if(a.sha256==="")return;if(a.kind!=="video"){K.problems.push(Q("AK-A003",x?`footage() in part ${n.key} shows the part's take, and ${a.path} is not a video. Give footage a file, or take a video.`:`The footage ${a.path} in part ${n.key} is not a video (mp4, webm or mov).`,{part:n.key,where:{file:$.file}}));return}const k=V(n.start+c,G),j=V(n.start+r,G);if(j<=k)return;a.faces&&L.set(a.path,a.faces),a.matte===!0&&X.add(a.path);let C,F;if(x&&o&&d!==void 0){const i=o.ranges??[{from:o.from,to:o.from+o.dur}];if(C=S(Fe(i,k-d)),o.ranges&&o.ranges.length>1){const h=[{at:k,from:C}];let U=0;for(const v of o.ranges){const p=S(d+U);U>0&&p>k+1e-6&&p<j&&h.push({at:p,from:v.from}),U+=v.to-v.from}h.length>1&&(F=h)}}else C=Math.max(0,typeof e.from=="number"?e.from:0);const y=a.width!==void 0&&a.height!==void 0?{width:a.width,height:a.height}:void 0,Z=e.fit??"cover",H=le(e.box,f.orient),ee=le(e.crop,f.orient),te=Ie(H)?H:void 0,T=te?.map(i=>({t:V(n.start+Math.min(Math.max(u.at(i.t),c),r),G),box:i.box==="full"?[0,0,f.width,f.height]:Le(i.box,f.width,f.height),...i.ease?{ease:i.ease}:{}})).sort((i,h)=>i.t-h.t),Ae=te?"full":H??"full",P=T?.[0],M=Re({box:P?[P.box[0]/f.width,P.box[1]/f.height,P.box[2]/f.width,P.box[3]/f.height]:Ae,fit:Z,...ee?{crop:ee}:{},...y?{source:y}:{},frame:f}),ne=e.shape==="circle"||!e.radius?0:S(Math.min(e.radius*he(f.width,f.height),M.box[2]/2,M.box[3]/2));let I=M.crop,ae=M.picture,w,W;const oe=e.punchIn??[],A=e.pullback===void 0||e.pullback===!1?void 0:e.pullback===!0?{}:e.pullback;if((e.reframe!==void 0||oe.length>0||A)&&y){const i=M.box,h=ze(y,{w:i[2],h:i[3]}),U=typeof e.reframe=="object"&&"face"in e.reframe?e.reframe:void 0,v=e.reframe==="face"||U!==void 0;v&&!a.faces&&(R(a.path,"faces"),_(n.key,{file:a.path,missing:"face-track",for:"reframe",fallback:"centred"}));const p=a.faces,ie=e.speaker??p?.speaker;p&&e.speaker!==void 0&&!Pe(p,e.speaker)&&_(n.key,{file:a.path,missing:"face",face:e.speaker,for:"speaker",fallback:"centred"});const ve=typeof e.reframe=="object"&&"x"in e.reframe?e.reframe:v?Ne:{x:.5,y:.5},ce={start:k,end:j,from:C,speed:x?1:e.speed??1,...F?{cuts:F}:{}};w=Ge({track:v?p:void 0,speaker:ie,faceY:U?.faceY,focus:ve,window:h,source:y,layer:ce});const B=w[0]??{x:0,y:0};I=[B.x,B.y,h.w,h.h],ae=[...i],w.length<=1&&(w=void 0);const D=w,fe=(s,g)=>{if(g)return{cx:g.x,cy:g.y};const m=p?$e(p,He(ce,s),ie):void 0;if(!m)return{cx:ke.x,cy:ke.y};const q=D?me(D.map(O=>({t:O.t,v:O.x})),s):B.x,N=D?me(D.map(O=>({t:O.t,v:O.y})),s):B.y,Me=(m[0]+m[2]/2-q)/h.w,Ee=(m[1]+m[3]/2-N)/h.h;return{cx:S(Math.min(Math.max(Me,0),1)),cy:S(Math.min(Math.max(Ee,0),1))}},Y=[];for(const s of oe){const g=typeof s=="object"?{...s,ref:s.at}:{...Ke(String(s)),until:void 0},m=u.at(g.ref),q=g.until!==void 0?u.at(g.until):be.wordEnd(n.key,m),N=n.start+m;Y.push({start:N,end:n.start+Math.max(q,m),scale:g.scale??Be,...fe(N,typeof s=="object"?s.center:void 0),...typeof s=="object"&&s.in!==void 0?{in:s.in}:{},...typeof s=="object"&&s.out!==void 0?{out:s.out}:{},...typeof s=="object"&&s.ease!==void 0?{ease:s.ease}:{}})}const de=Y.length>0?De(Y):[],ue=A?_e(k,{scale:A.scale??Te,dur:A.dur??je,...fe(k,A.center),...A.ease?{ease:A.ease}:{}},de):de;ue.length>0&&(W=ue)}x&&u.graphics&&!a.faces&&R(a.path,"faces");let J=!1;u.cutout&&(a.matte===!0?J=!0:(R(a.path,"matte"),_(n.key,{file:a.path,missing:"person-matte",for:"behind-person",fallback:"in-front"})));let E;if(e.background&&Ye(e.background)){const i=we(e.background,n.key,e.base);i&&a.matte===!0?E=i:i&&(R(a.path,"matte"),_(n.key,{file:a.path,missing:"person-matte",for:"background",fallback:"unprocessed"}))}if(ye)throw new We("embedded_footage",`${$.piece}'s part ${n.key} plays ${a.path}: a video shown inside another (a scenery's screen, a part's video take, a footage of a video item) draws its graphic layers only, not footage yet.`);const re=J&&u.person,se={part:n.key,file:a.path,start:k,end:j,from:C,speed:x?1:e.speed??1,gainDb:e.gainDb??0,audio:(e.audio??!1)&&a.audio===!0,...x?{take:!0}:{},fit:Z,box:M.box,...I?{crop:I}:{},picture:ae,...F?{cuts:F}:{},...w?{pan:w}:{},...W?{zoom:W}:{},...T&&T.length>1?{boxes:T}:{},...u.over>0?{over:u.over}:{},...J?{cutout:!0}:{},...e.sharpen?{sharpen:e.sharpen}:{},...E?{background:E.backdrop}:{},...E?.imageUrl?{imageUrl:E.imageUrl}:{},...(re||E)&&a.matteUrl?{matteUrl:a.matteUrl}:{},...re?{personOver:!0}:{},...e.shape==="circle"?{shape:"circle"}:{},...ne>0?{radius:ne}:{},...e.speaker===void 0?{}:{speaker:e.speaker},url:a.url,...a.duration===void 0?{}:{duration:a.duration},...y?{source:y}:{}};return b.push(se),se},placed:b,needs:()=>[...z.values()],speakerIn:e=>b.some(n=>n.part===e&&(L.has(n.file)||X.has(n.file))),faceAt(e,n,o){for(let d=b.length-1;d>=0;d--){const c=b[d];if(c?.part!==e||n<c.start||n>=c.end)continue;const r=L.get(c.file);if(!r)continue;const u=o===void 0?pe(c,r,n):pe(c,r,n,o);if(u)return u}},facesAt(e,n){for(let o=b.length-1;o>=0;o--){const d=b[o];if(d?.part!==e||n<d.start||n>=d.end)continue;const c=L.get(d.file);if(!c)continue;const r=Ce(d,c,n);if(r.length>0)return r}return[]}}}export function timelineFootage(t){return{part:t.part,file:t.file,start:t.start,end:t.end,from:t.from,speed:t.speed,gainDb:t.gainDb,audio:t.audio,...t.take?{take:!0}:{},fit:t.fit,box:t.box,...t.crop?{crop:t.crop}:{},picture:t.picture,...t.cuts?{cuts:t.cuts}:{},...t.pan?{pan:t.pan}:{},...t.zoom?{zoom:t.zoom}:{},...t.boxes?{boxes:t.boxes}:{},...t.over?{over:t.over}:{},...t.cutout?{cutout:!0}:{},...t.sharpen?{sharpen:t.sharpen}:{},...t.background?{background:t.background}:{},...t.shape?{shape:t.shape}:{},...t.radius?{radius:t.radius}:{},...t.speaker===void 0?{}:{speaker:t.speaker}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{heldTime as ct,isPartSpec as dt,LOAD_WAITS as H,numericRef as pt,problem as j,toFrame as lt,transitionAt as ft,showLayer as k}from"@allyhub-next/video-core";import{layerNames as mt,resolveTimes as ut,windowOf as yt}from"./compose.js";import{consoleAt as N,consoleParts as wt}from"./console.js";import{codeOf as J,LoadFailure as ht,messageOf as Q}from"./errors.js";import{codePoints as gt,emojiOf as kt,loadFaces as $t,loadTextFonts as X,namedFamilies as Y,propFamilies as St,stringsOf as xt,styleSheetFamilies as Mt}from"./fonts.js";import{realNow as v,within as vt}from"./guards.js";import{inspectFrame as Lt,screenTexts as At}from"./inspect.js";import{partTitles as Ft}from"./titles.js";export const STUCK_WAIT=1e3,newDrawState=()=>({mode:"picture",plane:void 0});export function withLayout(l,L){const g=l.mode;l.mode="layout";try{return L()}finally{l.mode=g}}export const drawnAt=new WeakMap;const bt=l=>Math.max(0,l-.4);export function createDrawer(l){const{env:L,piece:g,stage:m,mounted:h,transitions:Z,clips:O,state:$}=l,{guards:A,log:S,ledger:i,embed:W,options:tt,seedBase:E,partSeed:B}=L,{fps:x,look:M,dims:R,format:et,seekLimitMs:_}=g,V=l.covers,P=l.transitionStage;let F,D=[],I,T,q=!1,U=!1;const nt=n=>`${E}:${String(Math.round(n*x))}`,ot=(n,t,r)=>{const s=n.part,c=($.plane===void 0||t.plane===$.plane)&&r>=t.start&&r<t.end;if(k(t.el,c),!c)return;const u=i.running;i.running={part:s.key,layer:t.spec.component,index:t.index,t:s.start+r,what:`${t.spec.component} (layer ${String(t.index+1)}) in part ${s.key}`},drawnAt.set(t.el,{by:t.spec.component==="custom"?`custom@${g.writtenIn}`:t.spec.component,t:r});try{N({phase:"render",part:s.key,layer:t.spec.component,index:t.index,t:r},()=>{t.spec.render(t.el,r,t.props,t.ctx)})}catch(a){i.ran(j(J(a),`${t.spec.component} (layer ${String(t.index+1)}) in part ${s.key} failed while drawing: ${Q(a)}`,{part:s.key,t:s.start+r}))}finally{i.running=u}},st=(n,t)=>{m.styles&&(m.styles.part=n.part.key),S.tap=(r,s)=>n.record.reads.set(r,s);try{for(const r of n.layers)ot(n,r,t)}finally{m.styles&&(m.styles.part=void 0),S.tap=void 0}},C=n=>{for(const t of D)n.includes(t)||k(t.el,!1);for(const t of n)k(t.el,!0);D=n},K=(n,t,r)=>{const s=ct(n.part,t,x),p=s+r;A.setMoment(p-n.part.start,B(n.part.key,Math.round((s-n.part.start)*x))),k(n.el,!1),n.el.getBoundingClientRect(),k(n.el,!0),st(n,p-n.part.start),A.flushFrames()};async function z(n,t={}){if(U)return;const r=$.mode;$.mode=t.mode??"picture",$.plane=t.plane;try{await at(n,t.offset??0,t.part)}finally{$.mode=r}}async function at(n,t,r){const s=lt(Math.min(Math.max(n,0),l.duration-1/x),x),p=Math.min(Math.max(t,0),(1-1e-6)/x),c=s+p,u=r===void 0?void 0:h.find(d=>d.part.key===r),a=u?void 0:ft(Z,s,x),f=a&&h.find(d=>d.part.key===a.from),w=a&&h.find(d=>d.part.key===a.part);if(a&&f&&w&&P)C([f,w]),F=s<w.part.start?f:w,K(f,s,p),K(w,s,p),P.place(a,f,w,s);else{const d=u??h.find(G=>c>=G.part.start&&c<G.part.end)??h.at(-1);C(d?[d]:[]),F=d,P?.hideVeil(),d?(P?.rest(d),K(d,s,p)):(A.setMoment(c,nt(s)),A.flushFrames())}const e=I===void 0||Math.abs(c-I)>.5;I=c,O.draw(c,e);const o=q?Math.min(_,STUCK_WAIT):_,y=v(),b=await i.settle(o);if(b.push(...(await m.picturesDrawn(o-(v()-y))).map(d=>`the picture ${d} to decode`)),T=void 0,b.length>0){q=!0;const d=F?.part.key;T=`Drawing ${d===void 0?"a moment":`part ${d}`} did not finish in ${String(o/1e3)} s (video({ seekLimit }) sets it): it was still waiting for ${b.join("; ")}. It was not waited for again, so the frame may show the moment before.`,i.ran(j("AK-P003",T,{...d===void 0?{}:{part:d},t:c}))}await Promise.resolve()}async function rt(){const n=[...S.texts].join(" ").slice(0,2e4)||"Aa",t=new Set([M.font.display,M.font.body].flatMap(a=>a.split(",")).map(a=>a.trim()).filter(a=>a.startsWith('"'))),r=[];for(const a of t)for(const f of[400,700])r.push(document.fonts.load(`${String(f)} 40px ${a}`,n).catch(()=>[]));const s=h.flatMap(a=>a.layers.flatMap(f=>xt(f.props))),p=new Set(Y(M.font.emoji)),c=new Set([...[M.font.display,M.font.body,M.font.mono].flatMap(Y),...Mt(),...St(s)].filter(a=>!p.has(a)));r.push($t(c,gt([n,...s])));const u=kt([...S.texts,...s]);u&&r.push(document.fonts.load(`400 40px ${M.font.emoji}`,u).catch(()=>[])),await Promise.all(r),await document.fonts.ready}async function it(){W||wt(h.map(e=>e.part.key)),await i.timed("loading fonts",rt);for(const e of h){k(e.el,!0),A.setMoment(0,B(e.part.key,0)),m.styles&&(m.styles.part=e.part.key),S.tap=(o,y)=>e.record.reads.set(o,y);for(const o of e.layers){k(o.el,!0),i.doing=`${o.spec.component} in part ${e.part.key}`;const y=v();i.running={part:e.part.key,layer:o.spec.component,index:o.index,what:`${o.spec.component} (layer ${String(o.index+1)}) in part ${e.part.key}, mounting`};try{N({phase:"mount",part:e.part.key,layer:o.spec.component,index:o.index},()=>{o.spec.mount(o.el,o.props,o.ctx)}),i.times.push({what:`mounting ${i.doing}`,ms:v()-y})}catch(b){i.ran(j(J(b),`${o.spec.component} (layer ${String(o.index+1)}) in part ${e.part.key} failed while mounting: ${Q(b)}`,{part:e.part.key}))}finally{i.running=void 0}k(o.el,!1)}S.tap=void 0,m.styles&&(m.styles.part=void 0),k(e.el,!1)}F=void 0,D=[];const n=H*_,t=v(),r=await i.settle(n),s=Array.from(m.el.querySelectorAll("img")),p=await vt(s.map(e=>e.decode().then(()=>e.currentSrc||e.src,()=>e.currentSrc||e.src)),n-(v()-t)),c=s.filter((e,o)=>p[o]===void 0).map(e=>`the picture ${e.getAttribute("src")??""} to decode`);r.length+c.length>0&&i.ran(j("AK-P003",`Loading did not finish in ${String(n/1e3)} s (${String(H)} × video({ seekLimit })): it was still waiting for ${[...r,...c].join("; ")}. It was not waited for again.`)),await X(m.el),await document.fonts.ready;const u=new Map;i.doing=void 0;for(const e of h){i.doing=`part ${e.part.key}'s still`,await i.timed(`drawing ${i.doing}`,()=>z(e.part.still,{part:e.part.key}));const o=At(e.el,{screens:!1});e.record.onScreen=o.map(y=>y.text),u.set(e.part.key,o),tt.purpose==="check"&&i.run.push(...Lt({part:e.part.key,t:e.part.still,section:e.el,stage:m.el,format:et,messagesFile:S.file,width:R.width,height:R.height,keysShowing:y=>S.keysShowing(y)}))}const a=Ft(u);for(const e of h){const o=a.get(e.part.key);e.part.title===void 0&&o!==void 0&&(e.record.title=o)}i.doing=void 0,await i.timed("decoding the stage's pictures",()=>m.sweep()),i.loading=!1;const f=v()-L.start,w=g.loadLimitMs;if(f>w&&!W){const e=[...i.times].sort((o,y)=>y.ms-o.ms).slice(0,3).map(o=>`${o.what} ${(o.ms/1e3).toFixed(1)} s`);i.run.push(j("AK-P002",`Loading took ${(f/1e3).toFixed(1)} seconds (the limit is ${String(w/1e3)} seconds; video({ loadLimit }) sets it). The longest: ${e.join("; ")}.`))}}return{state:$,get current(){return F},ready:it,draw:z,forLayout:n=>withLayout($,n),stuck:()=>T,covers:()=>V.map(n=>({key:n.key,layers:mt(n.layers)})),async drawCover(n){const t=V[n];if(!t)throw new ht("no_cover",`There is no cover ${String(n)}.`);C([]),F=void 0,P?.hideVeil();const r=document.createElement("section");r.className="ak-part ak-cover",Object.assign(r.style,{position:"absolute",inset:"0",overflow:"hidden"}),m.el.append(r);const s=t.dur??g.defaults.dur,p=u=>pt(u)??0,c=typeof t.still=="function"?t.still(s):t.still===void 0?bt(s):p(t.still);A.setMoment(c,`${E}:cover:${String(n)}`);for(const[u,a]of t.layers.entries()){if(a.__allyhubLayer==="footage")continue;const[f,w]=yt(a,s,p);if(c<f||c>=w)continue;const e=document.createElement("div");e.className="ak-layer",Object.assign(e.style,{position:"absolute",inset:"0"}),r.append(e);const o=a.times?ut(a.props,a.times,p):a.props,y=l.contexts({dur:s,words:()=>[],at:p,start:f,end:w});N({phase:"cover",part:t.key,layer:a.component,index:u,t:c},()=>{a.mount(e,o,y),a.render(e,c,o,y)})}await X(r),await document.fonts.ready},setPlaying(n){O.setPlaying(n)},dispose(){U=!0,O.dispose()}}}export async function coverParts(l,L){if(l.isPaged||!l.options.covers)return[];const g=await l.options.covers(L);return Array.isArray(g)?g.filter(dt):[]}
2
+ import{heldTime as ct,isPartSpec as dt,LOAD_WAITS as H,numericRef as pt,problem as P,toFrame as lt,transitionAt as ft,showLayer as k}from"@allyhub-next/video-core";import{layerNames as mt,resolveTimes as ut,windowOf as yt}from"./compose.js";import{consoleAt as N,consoleParts as wt}from"./console.js";import{codeOf as J,LoadFailure as ht,messageOf as Q}from"./errors.js";import{codePoints as gt,emojiOf as kt,loadFaces as $t,loadTextFonts as X,namedFamilies as Y,propFamilies as St,stringsOf as xt,styleSheetFamilies as Mt}from"./fonts.js";import{realNow as v,within as vt}from"./guards.js";import{inspectFrame as Lt,screenTexts as At}from"./inspect.js";import{partTitles as Ft}from"./titles.js";export const STUCK_WAIT=1e3,newDrawState=()=>({mode:"picture",plane:void 0});export function withLayout(f,L){const g=f.mode;f.mode="layout";try{return L()}finally{f.mode=g}}export const drawnAt=new WeakMap;const bt=f=>Math.max(0,f-.4);export function createDrawer(f){const{env:L,piece:g,stage:m,mounted:h,transitions:Z,clips:O,state:$}=f,{guards:A,log:S,ledger:i,embed:W,options:tt,seedBase:E,partSeed:B}=L,{fps:x,look:M,dims:R,format:et,seekLimitMs:_}=g,V=f.covers,j=f.transitionStage;let F,D=[],I,T,q=!1,U=!1;const nt=n=>`${E}:${String(Math.round(n*x))}`,ot=(n,t,r)=>{const s=n.part,c=($.plane===void 0||t.plane===$.plane)&&r>=t.start&&r<t.end;if(k(t.el,c),!c)return;const u=i.running;i.running={part:s.key,layer:t.spec.component,index:t.index,t:s.start+r,what:`${t.spec.component} (layer ${String(t.index+1)}) in part ${s.key}`},drawnAt.set(t.el,{by:t.spec.component==="custom"?`custom@${g.writtenIn}`:t.spec.component,t:r});try{N({phase:"render",part:s.key,layer:t.spec.component,index:t.index,t:r},()=>{t.spec.render(t.el,r,t.props,t.ctx)})}catch(a){i.ran(P(J(a),`${t.spec.component} (layer ${String(t.index+1)}) in part ${s.key} failed while drawing: ${Q(a)}`,{part:s.key,t:s.start+r}))}finally{i.running=u}},st=(n,t)=>{m.styles&&(m.styles.part=n.part.key),S.tap=(r,s)=>n.record.reads.set(r,s);try{for(const r of n.layers)ot(n,r,t)}finally{m.styles&&(m.styles.part=void 0),S.tap=void 0}},C=n=>{for(const t of D)n.includes(t)||k(t.el,!1);for(const t of n)k(t.el,!0);D=n},K=(n,t,r)=>{const s=ct(n.part,t,x),p=s+r;A.setMoment(p-n.part.start,B(n.part.key,Math.round((s-n.part.start)*x))),k(n.el,!1),n.el.getBoundingClientRect(),k(n.el,!0),st(n,p-n.part.start),A.flushFrames()};async function z(n,t={}){if(U)return;const r=$.mode;$.mode=t.mode??"picture",$.plane=t.plane;try{await at(n,t.offset??0,t.part)}finally{$.mode=r}}async function at(n,t,r){const s=lt(Math.min(Math.max(n,0),f.duration-1/x),x),p=Math.min(Math.max(t,0),(1-1e-6)/x),c=s+p,u=r===void 0?void 0:h.find(d=>d.part.key===r),a=u?void 0:ft(Z,s,x),l=a&&h.find(d=>d.part.key===a.from),w=a&&h.find(d=>d.part.key===a.part);if(a&&l&&w&&j)C([l,w]),F=s<w.part.start?l:w,K(l,s,p),K(w,s,p),j.place(a,l,w,s);else{const d=u??h.find(G=>c>=G.part.start&&c<G.part.end)??h.at(-1);C(d?[d]:[]),F=d,j?.hideVeil(),d?(j?.rest(d),K(d,s,p)):(A.setMoment(c,nt(s)),A.flushFrames())}const e=I===void 0||Math.abs(c-I)>.5;I=c,O.draw(c,e);const o=q?Math.min(_,STUCK_WAIT):_,y=v(),b=await i.settle(o);if(b.push(...(await m.picturesDrawn(o-(v()-y))).map(d=>`the picture ${d} to decode`)),T=void 0,b.length>0){q=!0;const d=F?.part.key;T=`Drawing ${d===void 0?"a moment":`part ${d}`} did not finish in ${String(o/1e3)} s (video({ seekLimit }) sets it): it was still waiting for ${b.join("; ")}. It was not waited for again, so the frame may show the moment before.`,i.ran(P("AK-P003",T,{...d===void 0?{}:{part:d},t:c}))}await Promise.resolve()}async function rt(){const n=[...S.texts].join(" ").slice(0,2e4)||"Aa",t=new Set([M.font.display,M.font.body].flatMap(a=>a.split(",")).map(a=>a.trim()).filter(a=>a.startsWith('"'))),r=[];for(const a of t)for(const l of[400,700])r.push(document.fonts.load(`${String(l)} 40px ${a}`,n).catch(()=>[]));const s=h.flatMap(a=>a.layers.flatMap(l=>xt(l.props))),p=new Set(Y(M.font.emoji)),c=new Set([...[M.font.display,M.font.body,M.font.mono].flatMap(Y),...Mt(),...St(s)].filter(a=>!p.has(a)));r.push($t(c,gt([n,...s])));const u=kt([...S.texts,...s]);u&&r.push(document.fonts.load(`400 40px ${M.font.emoji}`,u).catch(()=>[])),await Promise.all(r),await document.fonts.ready}async function it(){W||wt(h.map(e=>e.part.key)),await i.timed("loading fonts",rt);for(const e of h){k(e.el,!0),A.setMoment(0,B(e.part.key,0)),m.styles&&(m.styles.part=e.part.key),S.tap=(o,y)=>e.record.reads.set(o,y);for(const o of e.layers){k(o.el,!0),i.doing=`${o.spec.component} in part ${e.part.key}`;const y=v();i.running={part:e.part.key,layer:o.spec.component,index:o.index,what:`${o.spec.component} (layer ${String(o.index+1)}) in part ${e.part.key}, mounting`};try{N({phase:"mount",part:e.part.key,layer:o.spec.component,index:o.index},()=>{o.spec.mount(o.el,o.props,o.ctx)}),i.times.push({what:`mounting ${i.doing}`,ms:v()-y})}catch(b){i.ran(P(J(b),`${o.spec.component} (layer ${String(o.index+1)}) in part ${e.part.key} failed while mounting: ${Q(b)}`,{part:e.part.key}))}finally{i.running=void 0}k(o.el,!1)}S.tap=void 0,m.styles&&(m.styles.part=void 0),k(e.el,!1)}F=void 0,D=[];const n=H*_,t=v(),r=await i.settle(n),s=Array.from(m.el.querySelectorAll("img")),p=await vt(s.map(e=>e.decode().then(()=>e.currentSrc||e.src,()=>e.currentSrc||e.src)),n-(v()-t)),c=s.filter((e,o)=>p[o]===void 0).map(e=>`the picture ${e.getAttribute("src")??""} to decode`);r.length+c.length>0&&i.ran(P("AK-P003",`Loading did not finish in ${String(n/1e3)} s (${String(H)} × video({ seekLimit })): it was still waiting for ${[...r,...c].join("; ")}. It was not waited for again.`)),await X(m.el),await document.fonts.ready;const u=new Map;i.doing=void 0;for(const e of h){i.doing=`part ${e.part.key}'s still`,await i.timed(`drawing ${i.doing}`,()=>z(e.part.still,{part:e.part.key}));const o=At(e.el,{screens:!1});e.record.onScreen=o.map(y=>y.text),u.set(e.part.key,o),tt.purpose==="check"&&i.run.push(...Lt({part:e.part.key,t:e.part.still,section:e.el,stage:m.el,format:et,messagesFile:S.file,width:R.width,height:R.height,keysShowing:y=>S.keysShowing(y)}))}const a=Ft(u);for(const e of h){const o=a.get(e.part.key);e.part.title===void 0&&o!==void 0&&(e.record.title=o)}i.doing=void 0,await i.timed("decoding the stage's pictures",()=>m.sweep()),i.loading=!1;const l=v()-L.start,w=g.loadLimitMs;if(l>w&&!W){const e=[...i.times].sort((o,y)=>y.ms-o.ms).slice(0,3).map(o=>`${o.what} ${(o.ms/1e3).toFixed(1)} s`);i.run.push(P("AK-P002",`Loading took ${(l/1e3).toFixed(1)} seconds (the limit is ${String(w/1e3)} seconds; video({ loadLimit }) sets it). The longest: ${e.join("; ")}.`))}}return{state:$,get current(){return F},ready:it,draw:z,forLayout:n=>withLayout($,n),stuck:()=>T,covers:()=>V.map(n=>({key:n.key,layers:mt(n.layers)})),async drawCover(n){const t=V[n];if(!t)throw new ht("no_cover",`There is no cover ${String(n)}.`);C([]),F=void 0,j?.hideVeil();const r=document.createElement("section");r.className="ak-part ak-cover",Object.assign(r.style,{position:"absolute",inset:"0",overflow:"hidden"}),m.el.append(r);const s=t.dur??g.defaults.dur,p=u=>pt(u)??0,c=typeof t.still=="function"?t.still(s):t.still===void 0?bt(s):p(t.still);A.setMoment(c,`${E}:cover:${String(n)}`);for(const[u,a]of t.layers.entries()){if(a.__allyhubLayer==="footage")continue;const[l,w]=yt(a,s,p);if(c<l||c>=w)continue;const e=document.createElement("div");e.className="ak-layer",Object.assign(e.style,{position:"absolute",inset:"0"}),r.append(e);const o=a.times?ut(a.props,a.times,p):a.props,y=f.contexts({dur:s,words:()=>[],at:p,start:l,end:w});N({phase:"cover",part:t.key,layer:a.component,index:u,t:c},()=>{a.mount(e,o,y),a.render(e,c,o,y)})}await X(r),await document.fonts.ready},setPlaying(n){O.setPlaying(n)},dispose(){U=!0,O.dispose()}}}export async function coverParts(f,L){if(!f.options.covers)return[];const g=await f.options.covers(L);return Array.isArray(g)?g.filter(dt):[]}
@@ -1,4 +1,5 @@
1
1
  export { load } from "./output.js";
2
+ export { consoleLog, installConsole } from "./console.js";
2
3
  export { LoadFailure, codeOf } from "./errors.js";
3
4
  export type { Embed } from "./env.js";
4
5
  export type { DrawMode, DrawOptions, LoadedOutput, LoadedSummary, LoadFailureInfo, PartSignature, SayNeed, StageBridge, } from "./bridge.js";
@@ -9,4 +10,5 @@ export { RUN_PROBLEMS } from "./env.js";
9
10
  export { EPOCH_MS, installGuards, type Guards } from "./guards.js";
10
11
  export { mixPlan, musicPlayed, speechGains, voicePlan, wordsOnFilm, type MixPlanOptions, } from "./mix-plan.js";
11
12
  export { startPlayer, type PlayerCommand, type PlayerEvent, type PlayerOptions, } from "./player/player.js";
13
+ export { locateLayers, type LocatedLayer } from "./locate.js";
12
14
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{load}from"./output.js";export{LoadFailure,codeOf}from"./errors.js";export{planStack}from"./compose.js";export{MEASURE_EVERY,MOMENTS_PER_PART}from"./measure.js";export{STUCK_WAIT}from"./frame.js";export{RUN_PROBLEMS}from"./env.js";export{EPOCH_MS,installGuards}from"./guards.js";export{mixPlan,musicPlayed,speechGains,voicePlan,wordsOnFilm}from"./mix-plan.js";export{startPlayer}from"./player/player.js";
2
+ export{load}from"./output.js";export{consoleLog,installConsole}from"./console.js";export{LoadFailure,codeOf}from"./errors.js";export{planStack}from"./compose.js";export{MEASURE_EVERY,MOMENTS_PER_PART}from"./measure.js";export{STUCK_WAIT}from"./frame.js";export{RUN_PROBLEMS}from"./env.js";export{EPOCH_MS,installGuards}from"./guards.js";export{mixPlan,musicPlayed,speechGains,voicePlan,wordsOnFilm}from"./mix-plan.js";export{startPlayer}from"./player/player.js";export{locateLayers}from"./locate.js";
@@ -0,0 +1,11 @@
1
+ import { type NoteShape } from "@allyhub-next/formats";
2
+ export interface LocatedLayer {
3
+ part: string;
4
+ /** Its component. */
5
+ layer: string;
6
+ /** Its `data-ak` name, when what is under the place has one. */
7
+ name?: string;
8
+ text?: string;
9
+ }
10
+ export declare function locateLayers(root: ParentNode, mark: NoteShape): LocatedLayer[];
11
+ //# sourceMappingURL=locate.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{touches as y}from"@allyhub-next/formats";const f=3,g=120,h=e=>e.width*e.height;function p(e){return[...e.childNodes].filter(n=>n.nodeType===Node.TEXT_NODE).map(n=>n.textContent).join("").trim()}export function locateLayers(e,n){const c=t=>t.width>0&&t.height>0&&y(n,t),s=[],a=[];for(const t of e.querySelectorAll(".ak-layer")){if(!t.checkVisibility({opacityProperty:!0,visibilityProperty:!0})||!c(t.getBoundingClientRect()))continue;const r={part:t.closest(".ak-part")?.dataset.key??"",layer:t.dataset.component??""};let o;for(const i of[t,...t.querySelectorAll("*")]){const d=i.getBoundingClientRect();!c(d)||p(i)===""&&!i.hasAttribute("data-ak")||(!o||h(d)<h(o.getBoundingClientRect()))&&(o=i)}if(!o){a.push(r);continue}const l=o.closest("[data-ak]")?.getAttribute("data-ak"),u=p(o).slice(0,g);s.push({...r,...l?{name:l}:{},...u===""?{}:{text:u}})}return[...s,...a].slice(0,f)}
@@ -1,4 +1,4 @@
1
- import { type LayoutReport, type TextInk, type Track } from "@allyhub-next/video-core";
1
+ import { type LayoutReport, type PageObjects, type TextInk, type Track } from "@allyhub-next/video-core";
2
2
  import type { PartSignature } from "./bridge.js";
3
3
  import type { CaptionTrack } from "./captions.js";
4
4
  import type { Mounted, TextsAt } from "./compose.js";
@@ -23,6 +23,7 @@ export interface Measurer {
23
23
  measure(times?: readonly number[]): Promise<LayoutReport>;
24
24
  tracks(from: number, to: number): Promise<Track[]>;
25
25
  inks(t: number): Promise<TextInk[]>;
26
+ objects(t: number, keys: (text: string) => string[]): Promise<PageObjects>;
26
27
  signature(): string | undefined;
27
28
  signatureAt(t: number): Promise<string | undefined>;
28
29
  partSignature(key: string, times: readonly number[]): Promise<PartSignature>;
@@ -1,3 +1,3 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{cuesIn as Y,footageScale as G,formatInfo as J,measureMoment as K,READ_DEFAULTS as Q,textTime as X,toFrame as D,layerShown as $,showLayer as P}from"@allyhub-next/video-core";import{consoleAt as Z}from"./console.js";import{inkOfBlock as tt}from"./contrast.js";import{drawnAt as et}from"./frame.js";import{drawnFamilies as nt,fontWant as ot,localFamily as st,pageFaces as rt}from"./fonts.js";import{selectorOf as at,textBlocks as q,trackedIn as ct}from"./inspect.js";export const MOMENTS_PER_PART=24,MEASURE_EVERY=1;export function domHash(b){let S=2166136261,v=5381;for(let m=0;m<b.length;m++){const g=b.charCodeAt(m);S=Math.imul(S^g,16777619)>>>0,v=Math.imul(v,33)+g>>>0}return`${S.toString(16)}${v.toString(16)}:${String(b.length)}`}async function W(b){const S=globalThis.crypto?.subtle;if(!S)return`dom:${domHash(b)}`;const v=new Uint8Array(await S.digest("SHA-256",new TextEncoder().encode(b)));let m="";for(const g of v)m+=g.toString(16).padStart(2,"0");return m}export function textReader(b,S,v,m){const{guards:g,partSeed:_}=b,{fps:B,dims:j}=S,d=new WeakMap;return({part:u,el:z},U,M)=>{const A=Math.round(M*B),H=A/B,I=[];for(const h of U){if(H<h.start||H>=h.end)continue;let E=d.get(h);E||(E=new Map,d.set(h,E));let o=E.get(A);if(!o){const r=$(z),n=$(h.el),f=z.style.transform;z.style.transform="",P(z,!0),P(h.el,!0),g.setMoment(H,_(u.key,A));try{Z({phase:"render",part:u.key,layer:h.spec.component,index:h.index,t:H},()=>{m(()=>{h.spec.render(h.el,H,h.props,h.ctx)})}),o=q(h.el,v.el,j.width).map(i=>({layer:h.spec.component,text:i.text,box:i.box}))}catch{o=[]}finally{P(h.el,n),P(z,r),z.style.transform=f,g.setMoment(0,_(u.key,0))}E.set(A,o)}I.push(...o)}return I}}export function measurer(b){const{piece:S,stage:v,drawer:m,mounted:g,duration:_,captions:B,footage:j}=b,{fps:d,dims:u,format:z,isPaged:U}=S,M=v.el,A=(o,r)=>m.draw(o,{mode:"layout",...r===void 0?{}:{part:r}}),H=o=>D(Math.min(Math.max(o,0),_-1/d),d),I=()=>{const o=[];for(const r of g){const{part:n}=r,f=new Set,i=t=>{const s=D(t,d);s>=n.start&&s<n.end&&f.add(s)};i(n.still);for(const t of r.layers)t.end>t.start&&i(n.start+(t.start+t.end)/2);if(r.record.captioned)for(const t of Y(B.cues(),n.start,n.end))i(n.start+(t.start+t.end)/2);if(j?.speakerIn(n.key))for(let t=n.start+.5;t<n.end;t+=1)i(t);for(let t=n.start+MEASURE_EVERY;t<n.end;t+=MEASURE_EVERY)i(t);i(n.end-1/d);let c=[...f].sort((t,s)=>t-s);if(c.length>MOMENTS_PER_PART){const t=c.length/MOMENTS_PER_PART,s=c.at(-1)??0;c=Array.from({length:MOMENTS_PER_PART},(e,y)=>c[Math.floor(y*t)]??0),c[c.length-1]=s}o.push(...c)}return[...new Set(o)].sort((r,n)=>r-n)},h=async()=>{const o=Q,r=[];for(const n of g){const{part:f}=n,i=new Map,c=f.end-1/d;for(let t=0;;t++){const s=D(f.start+t*o.every,d);if(s>c+1e-9)break;await A(s,f.key);const e=m.current;if(e){for(const y of e.layers)if($(y.el))for(const l of q(y.el,M,u.width)){if(l.ink===null||l.viewport)continue;let p=i.get(l.el);p||(p={layer:y.spec.component,z:y.z,samples:[]},i.set(l.el,p)),p.samples.push({t:Math.round(s*1e3)/1e3,text:l.text,box:l.box,opacity:l.opacity,shown:l.shown,size:l.size,...l.xHeight===void 0?{}:{xHeight:l.xHeight}})}}}for(const t of i.values()){const s=X(t.samples,{part:f.key,layer:t.layer,z:t.z,end:f.end,frame:[u.width,u.height]},o);s&&r.push(s)}}return r.sort((n,f)=>n.first-f.first),{options:o,texts:r}},E=()=>{let o="";for(const r of M.children){if(r instanceof HTMLElement&&!$(r))continue;const n="canvas:not([data-ak-sign]), video, iframe, img[src$='.gif' i]";if(r.matches(n)||r.querySelector(n))return;o+=r.outerHTML}return domHash(o)};return{async measure(o){const r=[],n=o?[...o].sort((c,t)=>c-t):I();for(const c of n){const t=H(c),s=g.find(k=>t>=k.part.start&&t<k.part.end);await A(c,s?.part.key);const e=m.current;if(!e)continue;const y=[],l=[],p=[],w=[],x=[],F=rt();e.layers.forEach((k,L)=>{if($(k.el))for(const a of q(k.el,M,u.width)){if(a.ink===null)continue;const T=a.runs[0]?.el,C=T&&nt(ot(getComputedStyle(T)),Array.from(a.text.replace(/\s/gu,"")).map(O=>O.codePointAt(0)??0),F,st);y.push({layer:k.spec.component,z:k.z,text:a.text,box:a.box,...a.viewport?{viewport:!0}:{},...a.opacity<1?{opacity:a.opacity}:{},...a.ink.join()===a.box.join()?{}:{ink:a.ink},...C&&C.length>0?{fonts:C}:{}}),l.push(L),p.push(a.containers),w.push(a.ink),x.push(a.glyphs)}});const R=j?.faceAt(e.part.key,t);r.push(K({t:Math.round(t*1e3)/1e3,part:e.part.key,texts:y,...R?{face:R.map(k=>Math.round(k))}:{},safe:u.safe,width:u.width,height:u.height,owner:l,containers:p,seen:w,glyphs:x}))}const f=(J(z)?.width??u.width)/u.width,i=(j?.placed??[]).flatMap(c=>{const t=G(c,f,d);return t?[t]:[]});return{width:u.width,height:u.height,safe:u.safe,moments:r,footage:i,...o||U?{}:{reading:await h()}}},async tracks(o,r){const n=[],f=Math.max(0,Math.ceil(o*d-1e-6)),i=Math.min(Math.floor(r*d+1e-6),Math.round(_*d)-1),c=()=>M.getBoundingClientRect();for(const t of g){const{part:s}=t,e=Math.max(f,Math.round(s.start*d)),y=Math.min(i,Math.round(s.end*d)-1);if(y<e)continue;const l=new Map;for(let p=e;p<=y;p++){const w=p/d;await A(w,s.key);const x=m.current;if(!x)continue;const F=c(),R=F.width>0?u.width/F.width:1,k=new Map;for(const L of x.layers)if($(L.el))for(const a of ct(L.el)){const T=a.el.getBoundingClientRect();if(T.width<=0||T.height<=0)continue;const C=Math.round((T.left-F.left)*R),O=Math.round((T.top-F.top)*R);if(k.set(a.el,{t:Math.round(w*1e3)/1e3,box:[C,O,Math.round((T.right-F.left)*R)-C,Math.round((T.bottom-F.top)*R)-O],opacity:a.opacity}),!l.has(a.el)){const N={part:s.key,layer:L.spec.component,what:a.what,selector:at(a.el,M),...a.name===void 0?{}:{name:a.name},samples:Array.from({length:p-e},(it,V)=>({t:Math.round((e+V)/d*1e3)/1e3,opacity:0}))};l.set(a.el,N),n.push(N)}}for(const[L,a]of l)a.samples.push(k.get(L)??{t:Math.round(w*1e3)/1e3,opacity:0})}}return n},async inks(o){const r=H(o),n=g.find(s=>r>=s.part.start&&r<s.part.end);await m.draw(o,n?{part:n.part.key}:{});const f=m.current;if(!f)return[];const i=M.getBoundingClientRect(),c=i.width>0?u.width/i.width:1,t=[];for(const s of f.layers)if($(s.el))for(const e of q(s.el,M,u.width))e.ink!==null&&t.push({text:{layer:s.spec.component,z:s.z,text:e.text,box:e.box,...e.viewport?{viewport:!0}:{},...e.opacity<1?{opacity:e.opacity}:{},...e.ink.join()===e.box.join()?{}:{ink:e.ink}},...tt(e,c)});return t},signature:E,async signatureAt(o){return await A(o,void 0),E()},async partSignature(o,r){const n=new Set,f=[],i="video, iframe, img[src$='.gif' i]";for(const c of r){await A(c,o);let t="";const s=[];try{for(const e of M.children){if(e instanceof HTMLElement&&!$(e))continue;const y=e.matches(i)?e:e.querySelector(i);if(y)return{unknown:`a <${y.tagName.toLowerCase()}> at ${c.toFixed(3)} s`};const l=[...e.matches("canvas:not([data-ak-sign])")?[e]:[],...e.querySelectorAll("canvas:not([data-ak-sign])")];for(const p of l){let w=p,x;for(;w&&w!==M&&!x;)x=et.get(w),x||(w=w.parentElement);if(!x||!w)return{unknown:`a canvas outside any layer at ${c.toFixed(3)} s`};$(w)&&(p.setAttribute("data-ak-drawn",`${x.by} at ${String(Math.round(x.t*1e6)/1e6)}`),s.push(p),n.add(x.by))}t+=e.outerHTML}}finally{for(const e of s)e.removeAttribute("data-ak-drawn")}f.push(await W(t))}return{sign:await W(f.join(`
2
+ import{cuesIn as V,footageScale as Y,formatInfo as G,measureMoment as J,READ_DEFAULTS as K,textTime as Q,toFrame as D,layerShown as A,showLayer as U}from"@allyhub-next/video-core";import{consoleAt as X}from"./console.js";import{inkOfBlock as Z}from"./contrast.js";import{drawnAt as tt}from"./frame.js";import{drawnFamilies as et,fontWant as nt,localFamily as ot,pageFaces as st}from"./fonts.js";import{selectorOf as rt,textBlocks as B,trackedIn as at}from"./inspect.js";export const MOMENTS_PER_PART=24,MEASURE_EVERY=1;export function domHash(b){let S=2166136261,v=5381;for(let h=0;h<b.length;h++){const w=b.charCodeAt(h);S=Math.imul(S^w,16777619)>>>0,v=Math.imul(v,33)+w>>>0}return`${S.toString(16)}${v.toString(16)}:${String(b.length)}`}async function N(b){const S=globalThis.crypto?.subtle;if(!S)return`dom:${domHash(b)}`;const v=new Uint8Array(await S.digest("SHA-256",new TextEncoder().encode(b)));let h="";for(const w of v)h+=w.toString(16).padStart(2,"0");return h}export function textReader(b,S,v,h){const{guards:w,partSeed:C}=b,{fps:O,dims:_}=S,p=new WeakMap;return({part:l,el:T},k,E)=>{const $=Math.round(E*O),F=$/O,q=[];for(const d of k){if(F<d.start||F>=d.end)continue;let o=p.get(d);o||(o=new Map,p.set(d,o));let s=o.get($);if(!s){const n=A(T),i=A(d.el),f=T.style.transform;T.style.transform="",U(T,!0),U(d.el,!0),w.setMoment(F,C(l.key,$));try{X({phase:"render",part:l.key,layer:d.spec.component,index:d.index,t:F},()=>{h(()=>{d.spec.render(d.el,F,d.props,d.ctx)})}),s=B(d.el,v.el,_.width).map(a=>({layer:d.spec.component,text:a.text,box:a.box}))}catch{s=[]}finally{U(d.el,i),U(T,n),T.style.transform=f,w.setMoment(0,C(l.key,0))}o.set($,s)}q.push(...s)}return q}}export function measurer(b){const{piece:S,stage:v,drawer:h,mounted:w,duration:C,captions:O,footage:_}=b,{fps:p,dims:l,format:T}=S,k=v.el,E=(o,s)=>h.draw(o,{mode:"layout",...s===void 0?{}:{part:s}}),$=o=>D(Math.min(Math.max(o,0),C-1/p),p),F=()=>{const o=[];for(const s of w){const{part:n}=s,i=new Set,f=t=>{const e=D(t,p);e>=n.start&&e<n.end&&i.add(e)};f(n.still);for(const t of s.layers)t.end>t.start&&f(n.start+(t.start+t.end)/2);if(s.record.captioned)for(const t of V(O.cues(),n.start,n.end))f(n.start+(t.start+t.end)/2);if(_?.speakerIn(n.key))for(let t=n.start+.5;t<n.end;t+=1)f(t);for(let t=n.start+MEASURE_EVERY;t<n.end;t+=MEASURE_EVERY)f(t);f(n.end-1/p);let a=[...i].sort((t,e)=>t-e);if(a.length>MOMENTS_PER_PART){const t=a.length/MOMENTS_PER_PART,e=a.at(-1)??0;a=Array.from({length:MOMENTS_PER_PART},(r,y)=>a[Math.floor(y*t)]??0),a[a.length-1]=e}o.push(...a)}return[...new Set(o)].sort((s,n)=>s-n)},q=async()=>{const o=K,s=[];for(const n of w){const{part:i}=n,f=new Map,a=i.end-1/p;for(let t=0;;t++){const e=D(i.start+t*o.every,p);if(e>a+1e-9)break;await E(e,i.key);const r=h.current;if(r){for(const y of r.layers)if(A(y.el))for(const u of B(y.el,k,l.width)){if(u.ink===null||u.viewport)continue;let m=f.get(u.el);m||(m={layer:y.spec.component,z:y.z,samples:[]},f.set(u.el,m)),m.samples.push({t:Math.round(e*1e3)/1e3,text:u.text,box:u.box,opacity:u.opacity,shown:u.shown,size:u.size,...u.xHeight===void 0?{}:{xHeight:u.xHeight}})}}}for(const t of f.values()){const e=Q(t.samples,{part:i.key,layer:t.layer,z:t.z,end:i.end,frame:[l.width,l.height]},o);e&&s.push(e)}}return s.sort((n,i)=>n.first-i.first),{options:o,texts:s}},d=()=>{let o="";for(const s of k.children){if(s instanceof HTMLElement&&!A(s))continue;const n="canvas:not([data-ak-sign]), video, iframe, img[src$='.gif' i]";if(s.matches(n)||s.querySelector(n))return;o+=s.outerHTML}return domHash(o)};return{async measure(o){const s=[],n=o?[...o].sort((a,t)=>a-t):F();for(const a of n){const t=$(a),e=w.find(M=>t>=M.part.start&&t<M.part.end);await E(a,e?.part.key);const r=h.current;if(!r)continue;const y=[],u=[],m=[],g=[],x=[],H=st();r.layers.forEach((M,L)=>{if(A(M.el))for(const c of B(M.el,k,l.width)){if(c.ink===null)continue;const z=c.runs[0]?.el,j=z&&et(nt(getComputedStyle(z)),Array.from(c.text.replace(/\s/gu,"")).map(P=>P.codePointAt(0)??0),H,ot);y.push({layer:M.spec.component,z:M.z,text:c.text,box:c.box,...c.viewport?{viewport:!0}:{},...c.opacity<1?{opacity:c.opacity}:{},...c.ink.join()===c.box.join()?{}:{ink:c.ink},...j&&j.length>0?{fonts:j}:{}}),u.push(L),m.push(c.containers),g.push(c.ink),x.push(c.glyphs)}});const R=_?.faceAt(r.part.key,t);s.push(J({t:Math.round(t*1e3)/1e3,part:r.part.key,texts:y,...R?{face:R.map(M=>Math.round(M))}:{},safe:l.safe,width:l.width,height:l.height,owner:u,containers:m,seen:g,glyphs:x}))}const i=(G(T)?.width??l.width)/l.width,f=(_?.placed??[]).flatMap(a=>{const t=Y(a,i,p);return t?[t]:[]});return{width:l.width,height:l.height,safe:l.safe,moments:s,footage:f,...o?{}:{reading:await q()}}},async tracks(o,s){const n=[],i=Math.max(0,Math.ceil(o*p-1e-6)),f=Math.min(Math.floor(s*p+1e-6),Math.round(C*p)-1),a=()=>k.getBoundingClientRect();for(const t of w){const{part:e}=t,r=Math.max(i,Math.round(e.start*p)),y=Math.min(f,Math.round(e.end*p)-1);if(y<r)continue;const u=new Map;for(let m=r;m<=y;m++){const g=m/p;await E(g,e.key);const x=h.current;if(!x)continue;const H=a(),R=H.width>0?l.width/H.width:1,M=new Map;for(const L of x.layers)if(A(L.el))for(const c of at(L.el)){const z=c.el.getBoundingClientRect();if(z.width<=0||z.height<=0)continue;const j=Math.round((z.left-H.left)*R),P=Math.round((z.top-H.top)*R);if(M.set(c.el,{t:Math.round(g*1e3)/1e3,box:[j,P,Math.round((z.right-H.left)*R)-j,Math.round((z.bottom-H.top)*R)-P],opacity:c.opacity}),!u.has(c.el)){const I={part:e.key,layer:L.spec.component,what:c.what,selector:rt(c.el,k),...c.name===void 0?{}:{name:c.name},samples:Array.from({length:m-r},(ct,W)=>({t:Math.round((r+W)/p*1e3)/1e3,opacity:0}))};u.set(c.el,I),n.push(I)}}for(const[L,c]of u)c.samples.push(M.get(L)??{t:Math.round(g*1e3)/1e3,opacity:0})}}return n},async inks(o){const s=$(o),n=w.find(e=>s>=e.part.start&&s<e.part.end);await h.draw(o,n?{part:n.part.key}:{});const i=h.current;if(!i)return[];const f=k.getBoundingClientRect(),a=f.width>0?l.width/f.width:1,t=[];for(const e of i.layers)if(A(e.el))for(const r of B(e.el,k,l.width))r.ink!==null&&t.push({text:{layer:e.spec.component,z:e.z,text:r.text,box:r.box,...r.viewport?{viewport:!0}:{},...r.opacity<1?{opacity:r.opacity}:{},...r.ink.join()===r.box.join()?{}:{ink:r.ink}},...Z(r,a)});return t},async objects(o,s){const n=$(o),i=w.find(t=>n>=t.part.start&&n<t.part.end);await h.draw(o,i?{part:i.part.key}:{});const f=h.current,a={t:o,elements:[],texts:[]};if(!f)return a;for(const t of f.layers)if(A(t.el))for(const e of B(t.el,k,l.width))e.ink!==null&&a.texts.push({text:e.text,box:[e.box[0],e.box[1],e.box[2],e.box[3]],size:e.size,keys:s(e.text)});return a},signature:d,async signatureAt(o){return await E(o,void 0),d()},async partSignature(o,s){const n=new Set,i=[],f="video, iframe, img[src$='.gif' i]";for(const a of s){await E(a,o);let t="";const e=[];try{for(const r of k.children){if(r instanceof HTMLElement&&!A(r))continue;const y=r.matches(f)?r:r.querySelector(f);if(y)return{unknown:`a <${y.tagName.toLowerCase()}> at ${a.toFixed(3)} s`};const u=[...r.matches("canvas:not([data-ak-sign])")?[r]:[],...r.querySelectorAll("canvas:not([data-ak-sign])")];for(const m of u){let g=m,x;for(;g&&g!==k&&!x;)x=tt.get(g),x||(g=g.parentElement);if(!x||!g)return{unknown:`a canvas outside any layer at ${a.toFixed(3)} s`};A(g)&&(m.setAttribute("data-ak-drawn",`${x.by} at ${String(Math.round(x.t*1e6)/1e6)}`),e.push(m),n.add(x.by))}t+=r.outerHTML}}finally{for(const r of e)r.removeAttribute("data-ak-drawn")}i.push(await N(t))}return{sign:await N(i.join(`
3
3
  `)),owners:[...n].sort()}}}}
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{beatNear as Y,fact as H,filmBeats as J,MUSIC_DEFAULTS as Z,musicGrid as x,musicSeconds as K,onGrid as Q,placeStretches as G,wholeLoop as ee}from"@allyhub-next/video-core";const l=b=>Math.round(b*1e6)/1e6;export function musicClock(b,q){const{source:L,lang:O,ledger:T}=b,{options:k,isPaged:P}=q,s=k.music===void 0?void 0:typeof k.music=="string"||"path"in k.music?{file:k.music}:k.music,U=s?.file===void 0?void 0:typeof s.file=="string"||"path"in s.file?s.file:O===void 0?void 0:s.file[O],c=U===void 0?void 0:b.mediaOf(U,q.musicBase),e=s??{},h=Math.max(0,e.from??0),w=c?.tempo,u=e.bpm!==void 0?{bpm:e.bpm,source:"given"}:w?{bpm:w.bpm,source:"measured",confidence:w.confidence,beat:w.beat}:void 0,v=()=>c&&c.sha256!==""?{file:c.path}:{},j=!P&&s!==void 0&&e.snap===!0&&!!u,$=j?60/u.bpm:0,R=u?.beat??0,V=$>0?(R-h)%$:0;!P&&s!==void 0&&e.snap===!0&&!u&&T.facts.push(H("fallback",{piece:L.piece},{...v(),missing:"tempo",for:"snap",fallback:"not-snapped"}));const t=x(u,{meter:e.meter,downbeat:e.downbeat}),r=c?.duration,M=e.loop,W=[...e.play??[],...typeof M=="object"?[M]:[]],E=n=>{T.facts.push(H("fallback",{piece:L.piece},{...v(),missing:"tempo",for:n,fallback:n==="music-play"?"played-once":"film-end"}))};!P&&s!==void 0&&!t&&(W.some(n=>Q(n.from)||Q(n.to))&&E("music-play"),(e.end==="bar"||e.end==="beat")&&E("music-end"));const F=n=>{const a=K(n.from,t),d=K(n.to,t);return a===void 0||d===void 0?void 0:{from:a,to:d}},g=typeof M=="object"?F(M):void 0,z=e.play?.map(F),I=(z?.some(n=>n===void 0)??!1)||typeof M=="object"&&g===void 0,N=!I&&(z!==void 0||g!==void 0),C=n=>{if(!(r===void 0||r<=0)){if(I)return G([{from:h,to:r}],void 0,r,n);if(N){const a=z?.flatMap(d=>d?[d]:[])??(g?[{from:h,to:g.to}]:[]);return G(a,g,r,n)}return e.loop===!0?ee(h,r,n,e.seam):G([{from:h,to:r}],void 0,r,n)}},X=n=>{if(s===void 0)return;const a=n.duration,d=(e.gain??[]).flatMap((o,y)=>{const f=n.momentAt(o.at,`music.gain[${String(y)}].at`);return f===void 0?[]:[{t:l(f),db:o.db}]}),A=e.filter!==void 0||e.eq!==void 0||e.compress!==void 0?{...e.filter===void 0?{}:{filter:e.filter},...e.eq===void 0?{}:{eq:e.eq.map((o,y)=>{const{keys:f,...S}=o,p=(f??[]).flatMap((B,D)=>{const _=n.momentAt(B.at,`music.eq[${String(y)}].keys[${String(D)}].at`);return _===void 0?[]:[{...B,at:l(_)}]});return p.length>0?{...S,keys:p}:S})},...e.compress===void 0?{}:{compress:e.compress}}:void 0,m=N?C(a):void 0;let i;if(t&&(e.end==="bar"||e.end==="beat")){const o=C(a),y=o?J(o,t,e.end):[],f=o?.at(-1);if(f&&!e.loop){const p=e.end==="bar"?t.beat*t.meter:t.beat,B=e.end==="bar"?t.downbeat:t.first,D=(f.to-B)/p;Math.abs(D-Math.round(D))<1e-6&&y.push(f.at+f.to-f.from)}const S=[...y].reverse().find(p=>p>1e-6&&p<=a+1e-6);S!==void 0&&(i=l(S))}return{...c&&c.sha256!==""?{file:c.path}:{},from:m?.[0]?.from??h,loop:e.loop===!0||g!==void 0,...u?{tempo:u}:{},snapped:j,...m?{play:m.map(o=>({at:l(o.at),from:l(o.from),to:l(o.to)})),seam:e.seam??Z.seam}:e.seam===void 0?{}:{seam:e.seam},...t?{meter:t.meter,downbeat:l(t.downbeat)}:{},...i===void 0?{}:{until:i},...d.length>0?{gain:d}:{},...A?{shape:A}:{}}};return{music:s,media:c,snapped:j,beat:$,beatPhase:V,grid:t,snapTo(n){if(!j||!t)return;const a=n.reduce((m,i)=>m+(i.speechDur!==void 0?i.lead+i.speechDur+i.tail:i.dur)+2*t.beat,0)+10,d=C(a);if(!d)return;const A=J(d,t);return(m,i)=>Y(A,t.beat,m,i)},plan:n=>X(n)}}export const musicPlan=(b,q)=>b.plan(q);
2
+ import{beatNear as X,fact as _,filmBeats as H,MUSIC_DEFAULTS as Y,musicGrid as Z,musicSeconds as J,onGrid as K,placeStretches as G,wholeLoop as x}from"@allyhub-next/video-core";const l=b=>Math.round(b*1e6)/1e6;export function musicClock(b,q){const{source:L,lang:O,ledger:P}=b,{options:k}=q,s=k.music===void 0?void 0:typeof k.music=="string"||"path"in k.music?{file:k.music}:k.music,T=s?.file===void 0?void 0:typeof s.file=="string"||"path"in s.file?s.file:O===void 0?void 0:s.file[O],c=T===void 0?void 0:b.mediaOf(T,q.musicBase),e=s??{},h=Math.max(0,e.from??0),w=c?.tempo,u=e.bpm!==void 0?{bpm:e.bpm,source:"given"}:w?{bpm:w.bpm,source:"measured",confidence:w.confidence,beat:w.beat}:void 0,U=()=>c&&c.sha256!==""?{file:c.path}:{},j=s!==void 0&&e.snap===!0&&!!u,$=j?60/u.bpm:0,Q=u?.beat??0,R=$>0?(Q-h)%$:0;s!==void 0&&e.snap===!0&&!u&&P.facts.push(_("fallback",{piece:L.piece},{...U(),missing:"tempo",for:"snap",fallback:"not-snapped"}));const t=Z(u,{meter:e.meter,downbeat:e.downbeat}),r=c?.duration,M=e.loop,V=[...e.play??[],...typeof M=="object"?[M]:[]],v=n=>{P.facts.push(_("fallback",{piece:L.piece},{...U(),missing:"tempo",for:n,fallback:n==="music-play"?"played-once":"film-end"}))};s!==void 0&&!t&&(V.some(n=>K(n.from)||K(n.to))&&v("music-play"),(e.end==="bar"||e.end==="beat")&&v("music-end"));const E=n=>{const a=J(n.from,t),d=J(n.to,t);return a===void 0||d===void 0?void 0:{from:a,to:d}},g=typeof M=="object"?E(M):void 0,z=e.play?.map(E),F=(z?.some(n=>n===void 0)??!1)||typeof M=="object"&&g===void 0,I=!F&&(z!==void 0||g!==void 0),C=n=>{if(!(r===void 0||r<=0)){if(F)return G([{from:h,to:r}],void 0,r,n);if(I){const a=z?.flatMap(d=>d?[d]:[])??(g?[{from:h,to:g.to}]:[]);return G(a,g,r,n)}return e.loop===!0?x(h,r,n,e.seam):G([{from:h,to:r}],void 0,r,n)}},W=n=>{if(s===void 0)return;const a=n.duration,d=(e.gain??[]).flatMap((o,y)=>{const f=n.momentAt(o.at,`music.gain[${String(y)}].at`);return f===void 0?[]:[{t:l(f),db:o.db}]}),A=e.filter!==void 0||e.eq!==void 0||e.compress!==void 0?{...e.filter===void 0?{}:{filter:e.filter},...e.eq===void 0?{}:{eq:e.eq.map((o,y)=>{const{keys:f,...S}=o,p=(f??[]).flatMap((B,D)=>{const N=n.momentAt(B.at,`music.eq[${String(y)}].keys[${String(D)}].at`);return N===void 0?[]:[{...B,at:l(N)}]});return p.length>0?{...S,keys:p}:S})},...e.compress===void 0?{}:{compress:e.compress}}:void 0,m=I?C(a):void 0;let i;if(t&&(e.end==="bar"||e.end==="beat")){const o=C(a),y=o?H(o,t,e.end):[],f=o?.at(-1);if(f&&!e.loop){const p=e.end==="bar"?t.beat*t.meter:t.beat,B=e.end==="bar"?t.downbeat:t.first,D=(f.to-B)/p;Math.abs(D-Math.round(D))<1e-6&&y.push(f.at+f.to-f.from)}const S=[...y].reverse().find(p=>p>1e-6&&p<=a+1e-6);S!==void 0&&(i=l(S))}return{...c&&c.sha256!==""?{file:c.path}:{},from:m?.[0]?.from??h,loop:e.loop===!0||g!==void 0,...u?{tempo:u}:{},snapped:j,...m?{play:m.map(o=>({at:l(o.at),from:l(o.from),to:l(o.to)})),seam:e.seam??Y.seam}:e.seam===void 0?{}:{seam:e.seam},...t?{meter:t.meter,downbeat:l(t.downbeat)}:{},...i===void 0?{}:{until:i},...d.length>0?{gain:d}:{},...A?{shape:A}:{}}};return{music:s,media:c,snapped:j,beat:$,beatPhase:R,grid:t,snapTo(n){if(!j||!t)return;const a=n.reduce((m,i)=>m+(i.speechDur!==void 0?i.lead+i.speechDur+i.tail:i.dur)+2*t.beat,0)+10,d=C(a);if(!d)return;const A=H(d,t);return(m,i)=>X(A,t.beat,m,i)},plan:n=>W(n)}}export const musicPlan=(b,q)=>b.plan(q);