allyhub 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/NOTICE +122 -42
- package/client.d.ts +1 -1
- package/dist/command.js +1 -1
- package/dist/commands/add.js +4 -4
- package/dist/commands/auth.js +4 -4
- package/dist/commands/check.js +1 -1
- package/dist/commands/cloud-tools.js +13 -7
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/contributed.js +2 -0
- package/dist/commands/dev.js +2 -2
- package/dist/commands/doctor.js +4 -4
- package/dist/commands/extensions.js +3 -0
- package/dist/commands/frames/common.js +1 -1
- package/dist/commands/frames/compare.js +2 -2
- package/dist/commands/frames/cuts.js +1 -1
- package/dist/commands/frames/doc.js +1 -1
- package/dist/commands/frames/overlay.js +2 -0
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames/sheet.js +1 -1
- package/dist/commands/frames.js +9 -9
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/combos.js +2 -2
- package/dist/commands/inspect/common.js +4 -2
- package/dist/commands/inspect/facts.js +3 -3
- package/dist/commands/inspect/index.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/inspect/views.js +2 -0
- package/dist/commands/mail.js +9 -0
- package/dist/commands/orgs.js +2 -2
- package/dist/commands/render.js +2 -2
- package/dist/fields.js +1 -1
- package/dist/help.js +4 -4
- package/dist/main.js +8 -7
- package/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/3d-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/lookup.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/model.js +3 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-input.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery.js +7 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/read-view.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/title.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/tree.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/package.json +327 -0
- package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +24 -0
- package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +61 -0
- package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +51 -0
- package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +13 -0
- package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +35 -0
- package/dist/node_modules/@allyhub/browser/dist/html.d.ts +19 -0
- package/dist/node_modules/@allyhub/browser/dist/index.d.ts +10 -0
- package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +35 -0
- package/dist/node_modules/@allyhub/browser/dist/page.d.ts +74 -0
- package/dist/node_modules/@allyhub/browser/dist/page.js +1 -1
- package/dist/node_modules/@allyhub/browser/dist/server.d.ts +26 -0
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +91 -0
- package/dist/node_modules/@allyhub/build/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +84 -0
- package/dist/node_modules/@allyhub/build/dist/cli-command.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/content.d.ts +12 -24
- package/dist/node_modules/@allyhub/build/dist/content.js +1 -2
- package/dist/node_modules/@allyhub/build/dist/data.d.ts +2 -4
- package/dist/node_modules/@allyhub/build/dist/data.js +2 -2
- package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +44 -0
- package/dist/node_modules/@allyhub/build/dist/evaluate.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +35 -0
- package/dist/node_modules/@allyhub/build/dist/file-check.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/generated.d.ts +29 -0
- package/dist/node_modules/@allyhub/build/dist/generated.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +23 -9
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +119 -0
- package/dist/node_modules/@allyhub/build/dist/inspect-view.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +507 -0
- package/dist/node_modules/@allyhub/build/dist/kind-build.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +2 -1
- package/dist/node_modules/@allyhub/build/dist/matrix.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/media.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/messages.d.ts +27 -15
- package/dist/node_modules/@allyhub/build/dist/messages.js +2 -2
- package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +16 -19
- package/dist/node_modules/@allyhub/build/dist/meta-worker.js +2 -4
- package/dist/node_modules/@allyhub/build/dist/meta.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/meta.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/move-refs.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +16 -8
- package/dist/node_modules/@allyhub/build/dist/plugin.js +8 -9
- package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +58 -35
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +19 -0
- package/dist/node_modules/@allyhub/build/dist/project-root.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +116 -0
- package/dist/node_modules/@allyhub/build/dist/project-tool.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/references.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/references.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/scan.d.ts +7 -12
- package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +73 -0
- package/dist/node_modules/@allyhub/build/dist/takes.d.ts +2 -26
- package/dist/node_modules/@allyhub/build/dist/takes.js +1 -2
- package/dist/node_modules/@allyhub/build/dist/types.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/types.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/uses.d.ts +23 -0
- package/dist/node_modules/@allyhub/build/dist/uses.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/version.d.ts +56 -0
- package/dist/node_modules/@allyhub/build/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/work.d.ts +30 -0
- package/dist/node_modules/@allyhub/build/dist/work.js +4 -0
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/canvas-extension/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/canvas-extension/dist/inspect.js +4 -0
- package/dist/node_modules/@allyhub/canvas-extension/package.json +107 -0
- package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +7 -0
- package/dist/node_modules/@allyhub/canvas-model/LICENSE +241 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/canvas.js +8 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/check.js +3 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/edit.js +2 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/merge.js +2 -0
- package/dist/node_modules/@allyhub/canvas-model/package.json +14 -0
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/dist/cache.js +1 -1
- package/dist/node_modules/@allyhub/check/dist/check.js +2 -3
- package/dist/node_modules/@allyhub/check/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +29 -0
- package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +91 -0
- package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +12 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +53 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +34 -0
- package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +76 -0
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
- package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +24 -0
- package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +43 -0
- package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +19 -0
- package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +18 -0
- package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +22 -0
- package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +16 -0
- package/dist/node_modules/@allyhub/cloud/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +11 -0
- package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +42 -0
- package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +40 -0
- package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +20 -0
- package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +20 -0
- package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +58 -0
- package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +22 -0
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/components/r/callout.json +2 -4
- package/dist/node_modules/@allyhub/components/r/caption-line.json +1 -3
- package/dist/node_modules/@allyhub/components/r/caption-subtitle.json +1 -3
- package/dist/node_modules/@allyhub/components/r/caption-word.json +1 -3
- package/dist/node_modules/@allyhub/components/r/chart.json +2 -4
- package/dist/node_modules/@allyhub/components/r/code-panel.json +2 -4
- package/dist/node_modules/@allyhub/components/r/connector.json +19 -0
- package/dist/node_modules/@allyhub/components/r/screen-demo.json +2 -4
- package/dist/node_modules/@allyhub/components/registry.json +6 -0
- package/dist/node_modules/@allyhub/components/src/callout.ts +165 -4
- package/dist/node_modules/@allyhub/components/src/chart.ts +14 -6
- package/dist/node_modules/@allyhub/components/src/code-panel.ts +10 -5
- package/dist/node_modules/@allyhub/components/src/connector.ts +295 -0
- package/dist/node_modules/@allyhub/components/src/index.ts +6 -0
- package/dist/node_modules/@allyhub/components/src/screen-demo.ts +47 -25
- package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/card.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/reach.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/routes.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/texts.js +4 -0
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/tree.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/writer.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
- package/dist/node_modules/@allyhub/doc/dist/captions.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/cite.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/covers.js +61 -0
- package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +247 -57
- package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/page.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/table.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/write.js +33 -28
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/build.js +3 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/cover.js +4 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/pictures.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/package.json +202 -0
- package/dist/node_modules/@allyhub/doc-print/LICENSE +241 -0
- package/dist/node_modules/@allyhub/doc-print/dist/facts.js +2 -0
- package/dist/node_modules/@allyhub/doc-print/dist/fonts.js +4 -0
- package/dist/node_modules/@allyhub/doc-print/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/doc-print/dist/layout.js +116 -0
- package/dist/node_modules/@allyhub/doc-print/dist/pages.js +77 -0
- package/dist/node_modules/@allyhub/doc-print/dist/print.js +68 -0
- package/dist/node_modules/@allyhub/doc-print/package.json +13 -0
- package/dist/node_modules/@allyhub/export/dist/batch.js +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +1 -6
- package/dist/node_modules/@allyhub/export/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/export/dist/names.js +1 -1
- package/dist/node_modules/@allyhub/export/dist/processors.js +2 -0
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/LICENSE +241 -0
- package/dist/node_modules/@allyhub/extension-api/dist/api.js +2 -0
- package/dist/node_modules/@allyhub/extension-api/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/extension-api/dist/lifecycle.js +2 -0
- package/dist/node_modules/@allyhub/extension-api/package.json +14 -0
- package/dist/node_modules/@allyhub/extension-host/LICENSE +241 -0
- package/dist/node_modules/@allyhub/extension-host/dist/host.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/dist/node.js +3 -0
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/dist/shell.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/package.json +22 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
- package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
- package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/LICENSE +241 -0
- package/dist/node_modules/@allyhub/i18n/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/i18n/package.json +13 -0
- package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
- package/dist/node_modules/@allyhub/image-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/cli.js +3 -0
- package/dist/node_modules/@allyhub/image-extension/dist/evaluate.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/facts.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/sources.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/package.json +291 -0
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +12 -0
- package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
- package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
- package/dist/node_modules/@allyhub/image-psd/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-psd/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/dist/map.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/dist/pixels.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/dist/read.js +18 -0
- package/dist/node_modules/@allyhub/image-psd/dist/write.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/package.json +14 -0
- package/dist/node_modules/@allyhub/image-render/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-render/dist/webp.js +2 -0
- package/dist/node_modules/@allyhub/image-render/package.json +14 -0
- package/dist/node_modules/@allyhub/image-runtime/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/board.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/layers.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/load.js +3 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/overset.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/psd.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/package.json +18 -0
- package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fit.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/messages.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/props.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/written.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +139 -0
- package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +41 -0
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.js +1 -1
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/measure/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/NOTICE +1 -42
- package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +25 -0
- package/dist/node_modules/@allyhub/media/dist/analysis.js +2 -0
- package/dist/node_modules/@allyhub/media/dist/audio.d.ts +2 -0
- package/dist/node_modules/@allyhub/media/dist/audio.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/errors.d.ts +2 -2
- package/dist/node_modules/@allyhub/media/dist/index.d.ts +5 -21
- package/dist/node_modules/@allyhub/media/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/tools.d.ts +2 -12
- package/dist/node_modules/@allyhub/media/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/video.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +2 -2
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/analyses/matte.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/cloud.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/boxes.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/common.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/matte.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/mattes.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/package.json +65 -0
- package/dist/node_modules/@allyhub/model/dist/data.d.ts +7 -2
- package/dist/node_modules/@allyhub/model/dist/data.js +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
- package/dist/node_modules/@allyhub/piece/dist/anchors.d.ts +156 -0
- package/dist/node_modules/@allyhub/piece/dist/component.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
- package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/contrast.d.ts +98 -0
- package/dist/node_modules/@allyhub/piece/dist/export.d.ts +114 -0
- package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/formats.d.ts +149 -0
- package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
- package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/look.d.ts +66 -0
- package/dist/node_modules/@allyhub/piece/dist/media.d.ts +256 -0
- package/dist/node_modules/@allyhub/piece/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/messages.d.ts +94 -0
- package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/script.d.ts +81 -0
- package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/voice.d.ts +156 -0
- package/dist/node_modules/@allyhub/piece/package.json +18 -0
- package/dist/node_modules/@allyhub/project/dist/component-stills.js +11 -1
- package/dist/node_modules/@allyhub/project/dist/console.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/ledger.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/page.js +2 -2
- package/dist/node_modules/@allyhub/project/dist/part-keys.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/part-measure.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/part-pool.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/session.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/stills.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
- package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +5 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/capture.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/composite.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/exports.js +2 -2
- package/dist/node_modules/@allyhub/render/dist/ffmpeg.js +3 -3
- package/dist/node_modules/@allyhub/render/dist/footage.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/junction.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/parts.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/post.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
- package/dist/node_modules/@allyhub/render/dist/sound.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/render/package.json +1 -5
- package/dist/node_modules/@allyhub/runtime/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/clock.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/facade.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/film.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/measure.js +2 -2
- package/dist/node_modules/@allyhub/runtime/dist/output.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
- package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/sound.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/speech.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/stage-kit.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/takes.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -5
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/dist/index.js +6 -5
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
- package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
- package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +2 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +14 -7
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +4 -4
- package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +314 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +6 -5
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/queries.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/state.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/types.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.d.ts +3 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +42 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.js +4 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +6 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +70 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.js +12 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +49 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +73 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.js +3 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +18 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/package.json +5 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- package/dist/node_modules/@allyhub/sheet/package.json +5 -1
- package/dist/node_modules/@allyhub/sheet-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +8 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +3 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +7 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/package.json +228 -0
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
- package/dist/node_modules/@allyhub/slides-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +3 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-info.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +3 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/read-view.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/package.json +265 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/dist/build-process.js +2 -2
- package/dist/node_modules/@allyhub/stage/dist/build-worker.js +1 -1
- package/dist/node_modules/@allyhub/stage/dist/identity.js +1 -1
- package/dist/node_modules/@allyhub/stage/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/stage/dist/page.js +2 -2
- package/dist/node_modules/@allyhub/stage/dist/server.js +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/install.js +2 -0
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
- package/dist/node_modules/@allyhub/stage-page/dist/stage-module.js +2 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +5 -1
- package/dist/node_modules/@allyhub/stage-runtime/LICENSE +241 -0
- package/dist/node_modules/@allyhub/stage-runtime/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +80 -0
- package/dist/node_modules/@allyhub/stage-runtime/dist/use.js +2 -0
- package/dist/node_modules/@allyhub/stage-runtime/package.json +17 -0
- package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/audio-text.js +6 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/audio.js +4 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/cloud.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/draw.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +5 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/voice.js +3 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/words-text.js +6 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/words.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/evaluate.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/common.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/contrast.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/fidelity.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +4 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline-text.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline.js +3 -0
- package/dist/node_modules/@allyhub/video-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/read-view.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/sources.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/stage-routes.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/package.json +469 -0
- package/dist/node_modules/@allyhub/video-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-measure/dist/check.js +3 -0
- package/dist/node_modules/@allyhub/video-measure/dist/cuts.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/facts.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/generated.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/graphics.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/page.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/plans.js +3 -0
- package/dist/node_modules/@allyhub/video-measure/dist/recording-report.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/sets.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/text.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/says.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/sound-report.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/stretch.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/words.js +3 -0
- package/dist/node_modules/@allyhub/video-measure/package.json +13 -0
- package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/anim.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/noise.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/paths.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/website/dist/publish.js +2 -2
- package/dist/node_modules/@allyhub/website/dist/website.js +3 -3
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/website-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/cli/site.js +4 -0
- package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/hosting.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/preview.js +6 -0
- package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +25 -0
- package/dist/node_modules/@allyhub/website-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/package.json +199 -0
- package/dist/node_modules/@allyhub/x-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/x-extension/dist/article-build.js +4 -0
- package/dist/node_modules/@allyhub/x-extension/dist/article-kind.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -0
- package/dist/node_modules/@allyhub/x-extension/dist/config.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/stage-module.js +67 -0
- package/dist/node_modules/@allyhub/x-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/package.json +307 -0
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +12 -0
- package/dist/node_modules/@allyhub/x-model/LICENSE +241 -0
- package/dist/node_modules/@allyhub/x-model/dist/article-check.js +5 -0
- package/dist/node_modules/@allyhub/x-model/dist/article.js +3 -0
- package/dist/node_modules/@allyhub/x-model/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/content-state.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/count.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/edit.js +3 -0
- package/dist/node_modules/@allyhub/x-model/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/limits.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/post.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/requests.js +2 -0
- package/dist/node_modules/@allyhub/x-model/package.json +14 -0
- package/dist/node_modules/@allyhub/x-view/LICENSE +241 -0
- package/dist/node_modules/@allyhub/x-view/dist/article.js +2 -0
- package/dist/node_modules/@allyhub/x-view/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/x-view/dist/post.js +3 -0
- package/dist/node_modules/@allyhub/x-view/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/x-view/dist/text.js +2 -0
- package/dist/node_modules/@allyhub/x-view/package.json +21 -0
- package/dist/node_modules/@allyhub/x-view/src/style.css +709 -0
- package/dist/package.json +16 -0
- package/dist/parameters.js +1 -1
- package/dist/presence.js +2 -0
- package/dist/project.js +1 -1
- package/dist/sdk-docs.js +1 -1
- package/dist/text/batch-text.js +1 -1
- package/dist/text/console-text.js +1 -1
- package/dist/text/facts-text.js +5 -5
- package/dist/text/format.js +2 -2
- package/dist/text/index.js +1 -1
- package/dist/text/long-text.js +4 -0
- package/dist/tool-options.js +1 -1
- package/dist/version.js +1 -1
- package/dist/works.js +1 -1
- package/editor-web/assets/abnfDiagram-WEYOIA3C-CjAmWsNR.js +1 -0
- package/editor-web/assets/alt-DnBZJzEh.js +4 -0
- package/editor-web/assets/architecture-WOLXFQ4H-DeeKhyhZ.js +1 -0
- package/editor-web/assets/architectureDiagram-ZHVYKT53-b32qTaJg.js +36 -0
- package/editor-web/assets/arrow-up-L4YV_65f.js +1 -0
- package/editor-web/assets/article-DLMjAdbP.js +73 -0
- package/editor-web/assets/audio-lines-BFcM7G2L.js +1 -0
- package/editor-web/assets/blockDiagram-RJAE7QA3-BNbnMNmw.js +140 -0
- package/editor-web/assets/button-Chk675Xu.js +41 -0
- package/editor-web/assets/c4Diagram-XDPPPE54-BEuemvMw.js +38 -0
- package/editor-web/assets/caladea-latin-400-italic-BXgumMrY.woff +0 -0
- package/editor-web/assets/caladea-latin-400-italic-LV4kG-PE.woff2 +0 -0
- package/editor-web/assets/caladea-latin-400-normal-BdRVtv9R.woff +0 -0
- package/editor-web/assets/caladea-latin-400-normal-CEHWF4nY.woff2 +0 -0
- package/editor-web/assets/caladea-latin-700-italic-ChDjCuPY.woff +0 -0
- package/editor-web/assets/caladea-latin-700-italic-DswTWW_F.woff2 +0 -0
- package/editor-web/assets/caladea-latin-700-normal-0s3Ufwiy.woff +0 -0
- package/editor-web/assets/caladea-latin-700-normal-Emkxzyyt.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-400-italic-DaI5RAJ1.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-400-italic-Ddrq60cI.woff +0 -0
- package/editor-web/assets/caladea-latin-ext-400-normal-BjxrNPcj.woff +0 -0
- package/editor-web/assets/caladea-latin-ext-400-normal-CyFL0oLC.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-700-italic-BPwR0tp-.woff +0 -0
- package/editor-web/assets/caladea-latin-ext-700-italic-DKIXMnVd.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-700-normal-jPPxbA1-.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-700-normal-sbmkuTql.woff +0 -0
- package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
- package/editor-web/assets/carlito-cyrillic-400-italic-BBq3u1wn.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-400-italic-DkiFjkCS.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-400-normal-BtG3bBmV.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-400-normal-Bzv-FGbj.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-700-italic-BWpxjWJ1.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-700-italic-CkpLb3ak.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-700-normal-Cj42L3Bs.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-700-normal-bxg6f20d.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-italic-BiZjW1hk.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-italic-DcD3cPwb.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-normal-DYs6OoL4.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-normal-UzWcrHdi.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-italic-ClXPMqhh.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-italic-DoehkTRC.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-normal-BAPhAm-q.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-normal-C5O8kkCQ.woff +0 -0
- package/editor-web/assets/carlito-greek-400-italic-C1DqF7JR.woff2 +0 -0
- package/editor-web/assets/carlito-greek-400-italic-Cnl_RiK8.woff +0 -0
- package/editor-web/assets/carlito-greek-400-normal-Cv5gcxdy.woff2 +0 -0
- package/editor-web/assets/carlito-greek-400-normal-aOjZpsFX.woff +0 -0
- package/editor-web/assets/carlito-greek-700-italic-DfpwTZ8N.woff +0 -0
- package/editor-web/assets/carlito-greek-700-italic-VWqy950O.woff2 +0 -0
- package/editor-web/assets/carlito-greek-700-normal-B-Y_qvTa.woff +0 -0
- package/editor-web/assets/carlito-greek-700-normal-BXGaow7Z.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-400-italic-BUNDIZnl.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-400-italic-o-WxseCy.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-400-normal-DnfnTswf.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-400-normal-m-eDGcsW.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-700-italic-DD0r8DLp.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-700-italic-DiO5Rxw8.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-700-normal-BGl1PQht.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-700-normal-COKnZ-5a.woff2 +0 -0
- package/editor-web/assets/carlito-latin-400-italic-BiMes9J5.woff2 +0 -0
- package/editor-web/assets/carlito-latin-400-italic-DcRV6skQ.woff +0 -0
- package/editor-web/assets/carlito-latin-400-normal-R-CeALMm.woff2 +0 -0
- package/editor-web/assets/carlito-latin-400-normal-jEGHVXAP.woff +0 -0
- package/editor-web/assets/carlito-latin-700-italic-BkeTGILl.woff +0 -0
- package/editor-web/assets/carlito-latin-700-italic-Ckstd88m.woff2 +0 -0
- package/editor-web/assets/carlito-latin-700-normal-CjG3MLqY.woff +0 -0
- package/editor-web/assets/carlito-latin-700-normal-DQ6DOkPk.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-400-italic-B7I2MSBC.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-400-italic-CqQQuoTt.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-400-normal-D112-ed2.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-400-normal-DPZWia0-.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-700-italic-BvVMpuZ3.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-700-italic-Cocp2sK5.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-700-normal-9QIvu-gI.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-700-normal-D2WO8ap1.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-400-italic-Dpe35oQb.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-400-italic-vBbFSHZk.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-400-normal-BA1ASEPx.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-400-normal-D0HL2cT_.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-700-italic-rWsihy0W.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-700-italic-tiFMON_I.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-700-normal-DIEsMQO6.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-700-normal-gG8ns3Xg.woff2 +0 -0
- package/editor-web/assets/channel-EzYq4r0d.js +1 -0
- package/editor-web/assets/chart-Be9Hj5GL.js +1 -0
- package/editor-web/assets/choice-BgmBh4yu.js +1 -0
- package/editor-web/assets/chunk-2E7WHVMD-Zb5nPx_e.js +88 -0
- package/editor-web/assets/chunk-4EMNKR2T-DSEM2reX.js +1 -0
- package/editor-web/assets/chunk-55XCU76K-BOZa_65H.js +1 -0
- package/editor-web/assets/chunk-7S6XSTFO-DeiGeVpB.js +2 -0
- package/editor-web/assets/chunk-AQDTSKZB-fPuQFBJc.js +72 -0
- package/editor-web/assets/chunk-DSNLSHJZ-5vdnoak2.js +129 -0
- package/editor-web/assets/chunk-HAGFOTED-DFF2mZJ1.js +62 -0
- package/editor-web/assets/chunk-HNE4Q36P-g6-ZLbTg.js +1 -0
- package/editor-web/assets/chunk-NQOKRVIF-o3hNcHMJ.js +213 -0
- package/editor-web/assets/chunk-UHW7PFBP-BQiDI9dK.js +1 -0
- package/editor-web/assets/chunk-VQ5W62QI-CJlMXWWz.js +1 -0
- package/editor-web/assets/chunk-WQQL4CDK-pNBU8dXv.js +10 -0
- package/editor-web/assets/chunk-YZO67HFG-2x-BiWd-.js +1 -0
- package/editor-web/assets/chunk-ZAUX2LTX-etFStEM8.js +1 -0
- package/editor-web/assets/chunk-ZCHMQSOR-B3AYRhIY.js +2 -0
- package/editor-web/assets/classDiagram-v2-4MYWR3UA-6y2yX0oq.js +217 -0
- package/editor-web/assets/collaborator-LRd0hELn.js +1 -0
- package/editor-web/assets/cousine-cyrillic-400-normal-D7Mp9hmd.woff +0 -0
- package/editor-web/assets/cousine-cyrillic-400-normal-DaHhUWxZ.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-700-normal-BEGCXyFC.woff +0 -0
- package/editor-web/assets/cousine-cyrillic-700-normal-BkkUdX_g.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-400-normal-CfRZlfI3.woff +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-400-normal-DHXCUfGT.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-700-normal-C15KMCf5.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-700-normal-DhfE94aH.woff +0 -0
- package/editor-web/assets/cousine-greek-400-normal-CWPwwPBl.woff +0 -0
- package/editor-web/assets/cousine-greek-400-normal-D28eY3d7.woff2 +0 -0
- package/editor-web/assets/cousine-greek-700-normal-DsTT0TsI.woff2 +0 -0
- package/editor-web/assets/cousine-greek-700-normal-rpH_OJFi.woff +0 -0
- package/editor-web/assets/cousine-greek-ext-400-normal-n0k5mInY.woff +0 -0
- package/editor-web/assets/cousine-greek-ext-400-normal-qdX5ZLbv.woff2 +0 -0
- package/editor-web/assets/cousine-greek-ext-700-normal-CSy642Ya.woff +0 -0
- package/editor-web/assets/cousine-greek-ext-700-normal-DgHq_I2n.woff2 +0 -0
- package/editor-web/assets/cousine-hebrew-400-normal-COyK3YUR.woff2 +0 -0
- package/editor-web/assets/cousine-hebrew-400-normal-oCiNOOyc.woff +0 -0
- package/editor-web/assets/cousine-hebrew-700-normal-BCE0G3Nu.woff2 +0 -0
- package/editor-web/assets/cousine-hebrew-700-normal-Bf9jZ0p9.woff +0 -0
- package/editor-web/assets/cousine-latin-400-normal-BhCTjpdJ.woff2 +0 -0
- package/editor-web/assets/cousine-latin-400-normal-D0CzircV.woff +0 -0
- package/editor-web/assets/cousine-latin-700-normal-BO_dhHEP.woff +0 -0
- package/editor-web/assets/cousine-latin-700-normal-CwJ0o97b.woff2 +0 -0
- package/editor-web/assets/cousine-latin-ext-400-normal-B_NP9zZK.woff +0 -0
- package/editor-web/assets/cousine-latin-ext-400-normal-CGywThDL.woff2 +0 -0
- package/editor-web/assets/cousine-latin-ext-700-normal-DWTrZAet.woff2 +0 -0
- package/editor-web/assets/cousine-latin-ext-700-normal-NvcoPDWO.woff +0 -0
- package/editor-web/assets/cousine-vietnamese-400-normal-B4JqDdoh.woff2 +0 -0
- package/editor-web/assets/cousine-vietnamese-400-normal-Bfsm3lEf.woff +0 -0
- package/editor-web/assets/cousine-vietnamese-700-normal-B4DXCoMM.woff +0 -0
- package/editor-web/assets/cousine-vietnamese-700-normal-DLBKC3PH.woff2 +0 -0
- package/editor-web/assets/createLucideIcon-CPS-TrJJ.js +1 -0
- package/editor-web/assets/cynefin-EF2NZ3EQ-CX4BTQQe.js +1 -0
- package/editor-web/assets/cynefinDiagram-WF24UDRP-LbDkOTy3.js +62 -0
- package/editor-web/assets/dagre-NK4GIZVX-wCKQk7hi.js +4 -0
- package/editor-web/assets/diagram-CBK3MWTC-a9fofQwk.js +24 -0
- package/editor-web/assets/diagram-I5XIIV2D-UCLZWch5.js +24 -0
- package/editor-web/assets/diagram-ODIL2UCW-CAEe88Lp.js +30 -0
- package/editor-web/assets/diagram-PFBEJUXE-Cp1o45bs.js +3 -0
- package/editor-web/assets/diagram-RJA3I4VV-c6OVxDyq.js +41 -0
- package/editor-web/assets/diagram-TYUNFSNR-BVRWslDM.js +200 -0
- package/editor-web/assets/dist--KKyT5zP.js +340 -0
- package/editor-web/assets/dist-1k0MHB3i.js +1 -0
- package/editor-web/assets/dist-B9KHJqL5.js +4 -0
- package/editor-web/assets/dist-BbJyrhIY.js +1 -0
- package/editor-web/assets/dist-CJXCQxQM.js +37 -0
- package/editor-web/assets/dist-D9xQGwe9.js +5 -0
- package/editor-web/assets/dist-DFiLzbx8.js +219 -0
- package/editor-web/assets/dist-DIPV6xfF.js +2 -0
- package/editor-web/assets/dist-Dp-fQMtx.js +6 -0
- package/editor-web/assets/dist-Duw28VxJ.js +16 -0
- package/editor-web/assets/dist-DwGhfliS.js +1 -0
- package/editor-web/assets/dist-OBE2IIYP.js +24 -0
- package/editor-web/assets/dist-YW8hS4IM.js +9 -0
- package/editor-web/assets/dist-j6ZLVcgf.js +38 -0
- package/editor-web/assets/ebnfDiagram-V4P3TTPT-KdOTJgFu.js +1 -0
- package/editor-web/assets/elk-QONTBCTQ-Cmlrp7qB.js +27 -0
- package/editor-web/assets/erDiagram-KYQIGQAA-CBM7-aQm.js +99 -0
- package/editor-web/assets/eventmodeling-K75KTNOO-CEoJkbuW.js +1 -0
- package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +1 -0
- package/editor-web/assets/ganttDiagram-R7GPNTJY-D4S6ZSYD.js +292 -0
- package/editor-web/assets/gitGraph-VSP46ZUC-BvkL6RSh.js +1 -0
- package/editor-web/assets/gitGraphDiagram-PDYL7XHY-lTGguloH.js +106 -0
- package/editor-web/assets/hint-BimUgJms.js +1 -0
- package/editor-web/assets/index-C-i_iuxN.js +28 -0
- package/editor-web/assets/index-Cxh_Shkm.css +2 -0
- package/editor-web/assets/info-OHQRW6UA-DvKzqNvp.js +1 -0
- package/editor-web/assets/infoDiagram-MVDRKAX5-D7hCpehs.js +2 -0
- package/editor-web/assets/ishikawaDiagram-HPEHV2GE-Bg93sZQe.js +70 -0
- package/editor-web/assets/italic-BQBwRTe8.js +1 -0
- package/editor-web/assets/journeyDiagram-BOSHW7O7-CKm_KONJ.js +139 -0
- package/editor-web/assets/jsx-runtime-DePvh3-m.js +1 -0
- package/editor-web/assets/kanban-definition-FNSA4HC5-BKknnpTR.js +89 -0
- package/editor-web/assets/layout-SWqqA0yV.js +1 -0
- package/editor-web/assets/mermaid-parser.core-BzqkDnqL.js +7 -0
- package/editor-web/assets/mermaid.core-CEpvTOAe.js +44 -0
- package/editor-web/assets/mindmap-definition-6OY57UG3-BJ0qG8Wi.js +98 -0
- package/editor-web/assets/minus-oPj1GxwA.js +1 -0
- package/editor-web/assets/packet-JDAUHWVQ-ew3kvyFm.js +1 -0
- package/editor-web/assets/pegDiagram-ECIUJNBX-DqUS2xit.js +1 -0
- package/editor-web/assets/picture-B-I4V_JT.js +1 -0
- package/editor-web/assets/pie-XZMESJXO-DTIAMPGm.js +1 -0
- package/editor-web/assets/pieDiagram-GNMPY74T-DoKOE02-.js +39 -0
- package/editor-web/assets/progress-CPEbDOoN.js +6 -0
- package/editor-web/assets/quadrantDiagram-D57K4MC3-DauOpYun.js +7 -0
- package/editor-web/assets/radar-ABXABTNO-BvMJXUU-.js +1 -0
- package/editor-web/assets/railroad-I3PHUGI6-D3jdJmhM.js +1 -0
- package/editor-web/assets/railroad-abnf-LNEFI6M7-Dm8ZpmPj.js +1 -0
- package/editor-web/assets/railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js +1 -0
- package/editor-web/assets/railroad-peg-JR7BVNR7-CMrQL_7U.js +1 -0
- package/editor-web/assets/railroadDiagram-Y72NRBL7-y99z0C7i.js +1 -0
- package/editor-web/assets/react-DztDSW4P.js +1 -0
- package/editor-web/assets/read-view-DnCFmJFo.js +1 -0
- package/editor-web/assets/read-view-uW5LmuBT.js +1 -0
- package/editor-web/assets/read-view-v3cx-9XM.js +1 -0
- package/editor-web/assets/repeat-2-DJi4LW5C.js +1 -0
- package/editor-web/assets/requirementDiagram-EQYSW5RA-jMr_uoF6.js +84 -0
- package/editor-web/assets/row-ClBisiBs.js +1 -0
- package/editor-web/assets/sankeyDiagram-SY24JHO5-DcUyx03Q.js +40 -0
- package/editor-web/assets/schemas-68mjUjP5.js +1 -0
- package/editor-web/assets/sequenceDiagram-BLEHNHQU-R4X8wRCd.js +169 -0
- package/editor-web/assets/session-2u9U7koW.js +1 -0
- package/editor-web/assets/slides-BByblSSR.js +1 -0
- package/editor-web/assets/snapshots-C9KV-Y2_.js +56 -0
- package/editor-web/assets/sound-DExlNJbb.js +1 -0
- package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BqvXKbCA.js +291 -0
- package/editor-web/assets/strikethrough-CyUBnGTl.js +1 -0
- package/editor-web/assets/svg-lBRT-uhy.js +1 -0
- package/editor-web/assets/swatch-1c1uVn1z.js +1 -0
- package/editor-web/assets/swimlanes-B3ENRKFQ-hjTXIc6M.js +1 -0
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +8 -0
- package/editor-web/assets/switch-D0K-K8-C.js +1 -0
- package/editor-web/assets/syntax-Bih_jv7W.js +1 -0
- package/editor-web/assets/syntax-C0iPON60.js +18 -0
- package/editor-web/assets/tabs-CxxOnGLR.js +1 -0
- package/editor-web/assets/textarea-Fu93tFO3.js +105 -0
- package/editor-web/assets/timeline-definition-JXYKGLGB-BcSoN4Dq.js +120 -0
- package/editor-web/assets/tinos-cyrillic-400-italic-CUXT6ECP.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-400-italic-D26KjN84.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-400-normal-BInRL8Bn.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-400-normal-kS2dpklR.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-700-italic-CUFPRiVR.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-700-italic-DU6-gZzV.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-700-normal-DGklj3DM.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-700-normal-HYhic5tl.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-italic-Bz6A2Xew.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-italic-CgiySoL2.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-normal-DdITlKdb.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-normal-l41d2z3M.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-italic-BQu9kgBz.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-italic-Ceua-rFl.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-normal-CE86bzrR.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-normal-yBtNmQaZ.woff +0 -0
- package/editor-web/assets/tinos-greek-400-italic-CITkaQD8.woff2 +0 -0
- package/editor-web/assets/tinos-greek-400-italic-Dc-Zjc_Z.woff +0 -0
- package/editor-web/assets/tinos-greek-400-normal-BKmklotr.woff2 +0 -0
- package/editor-web/assets/tinos-greek-400-normal-D6DCdDEC.woff +0 -0
- package/editor-web/assets/tinos-greek-700-italic-C474ACqK.woff2 +0 -0
- package/editor-web/assets/tinos-greek-700-italic-VKIu6SKO.woff +0 -0
- package/editor-web/assets/tinos-greek-700-normal-CAsZoNo7.woff +0 -0
- package/editor-web/assets/tinos-greek-700-normal-DZiY5218.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-400-italic-C7FWsVQN.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-400-italic-QOcg_kQA.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-400-normal-1tgngtmV.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-400-normal-BY5Lx0CY.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-700-italic-2QV0uNor.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-700-italic-zoEBc9cL.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-700-normal-Bu9AJavU.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-700-normal-nVGGTb9r.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-400-italic-Cp89YzKh.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-400-italic-k5xAEjEk.woff +0 -0
- package/editor-web/assets/tinos-hebrew-400-normal-B17QmYDt.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-400-normal-DhGqnHb1.woff +0 -0
- package/editor-web/assets/tinos-hebrew-700-italic-BSdnwE5c.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-700-italic-DuNrcWBH.woff +0 -0
- package/editor-web/assets/tinos-hebrew-700-normal-B737la7J.woff +0 -0
- package/editor-web/assets/tinos-hebrew-700-normal-BNVAlJ0i.woff2 +0 -0
- package/editor-web/assets/tinos-latin-400-italic-BYAl0kbZ.woff2 +0 -0
- package/editor-web/assets/tinos-latin-400-italic-HcuZF3H0.woff +0 -0
- package/editor-web/assets/tinos-latin-400-normal-B05awSIM.woff +0 -0
- package/editor-web/assets/tinos-latin-400-normal-rilFpyjL.woff2 +0 -0
- package/editor-web/assets/tinos-latin-700-italic-M0H2aQ0O.woff +0 -0
- package/editor-web/assets/tinos-latin-700-italic-vJg8Axdx.woff2 +0 -0
- package/editor-web/assets/tinos-latin-700-normal-CjcRkLdR.woff +0 -0
- package/editor-web/assets/tinos-latin-700-normal-qGf2y18O.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-400-italic-DKtLLJa2.woff +0 -0
- package/editor-web/assets/tinos-latin-ext-400-italic-WsHooD3r.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-400-normal-BUQPNqi9.woff +0 -0
- package/editor-web/assets/tinos-latin-ext-400-normal-C68eX7xt.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-700-italic-BtLLKPsV.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-700-italic-Gmi35kWa.woff +0 -0
- package/editor-web/assets/tinos-latin-ext-700-normal-CesJqEpY.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-700-normal-nLvPiDAe.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-400-italic-BJdaJnTX.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-400-italic-C0nreyLC.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-400-normal-BYl6xqrz.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-400-normal-CrJeqB3M.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-700-italic-BPJuDXkI.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-700-italic-Dl6iR3hy.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-700-normal-CmLX0U_H.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-700-normal-bKCZ5S7w.woff +0 -0
- package/editor-web/assets/trash-2-BAKAeziW.js +1 -0
- package/editor-web/assets/treeView-D4JQ5SDB-CsFN2jrc.js +1 -0
- package/editor-web/assets/treemap-SAJKECNS-DP1eqXJ2.js +1 -0
- package/editor-web/assets/undo-2-DQ5CBmki.js +1 -0
- package/editor-web/assets/usecaseDiagram-WPOLBNNX-BGxa0osF.js +328 -0
- package/editor-web/assets/vennDiagram-Q3Y3IDCW-D2XhTF49.js +34 -0
- package/editor-web/assets/video-CDbPX4Cr.js +1 -0
- package/editor-web/assets/wardley-7MLQ67FV-DM3jMAbZ.js +1 -0
- package/editor-web/assets/wardleyDiagram-IVAIDKWA-Bf-DaZEg.js +78 -0
- package/editor-web/assets/xychartDiagram-4URNHDU4-dp-mdcWd.js +7 -0
- package/editor-web/index.html +8 -3
- package/package.json +21 -5
- package/dist/audio-text.js +0 -6
- package/dist/cloud-hearing.js +0 -2
- package/dist/commands/audio.js +0 -4
- package/dist/commands/inspect/contrast.js +0 -2
- package/dist/commands/inspect/fidelity.js +0 -2
- package/dist/commands/inspect/joins.js +0 -2
- package/dist/commands/inspect/motion.js +0 -4
- package/dist/commands/inspect/sheet.js +0 -3
- package/dist/commands/inspect/timeline.js +0 -3
- package/dist/commands/model.js +0 -3
- package/dist/commands/reference-text.js +0 -5
- package/dist/commands/reference.js +0 -2
- package/dist/commands/scenery-input.js +0 -2
- package/dist/commands/scenery.js +0 -7
- package/dist/commands/sheet.js +0 -8
- package/dist/commands/site.js +0 -4
- package/dist/commands/slides.js +0 -3
- package/dist/commands/voice.js +0 -3
- package/dist/commands/words-text.js +0 -6
- package/dist/commands/words.js +0 -2
- package/dist/node_modules/@allyhub/build/dist/sheet-code.d.ts +0 -34
- package/dist/node_modules/@allyhub/build/dist/sheet-code.js +0 -2
- package/dist/node_modules/@allyhub/chart/dist/chart-file.d.ts +0 -11
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +0 -33
- package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +0 -206
- package/dist/node_modules/@allyhub/chart/dist/embedded.d.ts +0 -15
- package/dist/node_modules/@allyhub/chart/dist/index.d.ts +0 -6
- package/dist/node_modules/@allyhub/chart/dist/svg.d.ts +0 -22
- package/dist/node_modules/@allyhub/check/dist/generated.js +0 -2
- package/dist/node_modules/@allyhub/check/dist/plans.js +0 -3
- package/dist/node_modules/@allyhub/check/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub/doc/dist/chart.d.ts +0 -65
- package/dist/node_modules/@allyhub/doc/dist/color.d.ts +0 -6
- package/dist/node_modules/@allyhub/doc/dist/columns.d.ts +0 -6
- package/dist/node_modules/@allyhub/doc/dist/component.d.ts +0 -27
- package/dist/node_modules/@allyhub/doc/dist/docx.d.ts +0 -39
- package/dist/node_modules/@allyhub/doc/dist/html.d.ts +0 -49
- package/dist/node_modules/@allyhub/doc/dist/index.d.ts +0 -13
- package/dist/node_modules/@allyhub/doc/dist/markdown.d.ts +0 -13
- package/dist/node_modules/@allyhub/doc/dist/math.d.ts +0 -11
- package/dist/node_modules/@allyhub/doc/dist/model.d.ts +0 -280
- package/dist/node_modules/@allyhub/doc/dist/paper.d.ts +0 -39
- package/dist/node_modules/@allyhub/doc/dist/parse.d.ts +0 -24
- package/dist/node_modules/@allyhub/doc/dist/patch.d.ts +0 -8
- package/dist/node_modules/@allyhub/doc/dist/title.d.ts +0 -23
- package/dist/node_modules/@allyhub/doc/dist/write.d.ts +0 -18
- package/dist/node_modules/@allyhub/export/dist/deck-pptx.js +0 -2
- package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
- package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/contrast.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/cuts.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/facts.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/fidelity.js +0 -3
- package/dist/node_modules/@allyhub/measure/dist/overlay.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/recording-report.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/piece.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/sets.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/text.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/video.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/sound-report.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/hear.d.ts +0 -41
- package/dist/node_modules/@allyhub/media/dist/asr/hear.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/languages.d.ts +0 -9
- package/dist/node_modules/@allyhub/media/dist/asr/languages.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/parakeet.d.ts +0 -54
- package/dist/node_modules/@allyhub/media/dist/asr/parakeet.js +0 -7
- package/dist/node_modules/@allyhub/media/dist/asr/protocol.d.ts +0 -20
- package/dist/node_modules/@allyhub/media/dist/asr/protocol.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/transcribe.d.ts +0 -50
- package/dist/node_modules/@allyhub/media/dist/asr/transcribe.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/windows.d.ts +0 -34
- package/dist/node_modules/@allyhub/media/dist/asr/windows.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/words.d.ts +0 -7
- package/dist/node_modules/@allyhub/media/dist/asr/words.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/worker.js +0 -4
- package/dist/node_modules/@allyhub/media/dist/local.d.ts +0 -39
- package/dist/node_modules/@allyhub/media/dist/local.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/lines.d.ts +0 -36
- package/dist/node_modules/@allyhub/media/dist/ocr/lines.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.d.ts +0 -62
- package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/text.d.ts +0 -36
- package/dist/node_modules/@allyhub/media/dist/ocr/text.js +0 -4
- package/dist/node_modules/@allyhub/media/dist/ocr/worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/worker.js +0 -5
- package/dist/node_modules/@allyhub/media/dist/vision/common.d.ts +0 -32
- package/dist/node_modules/@allyhub/media/dist/vision/common.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/faces.d.ts +0 -18
- package/dist/node_modules/@allyhub/media/dist/vision/faces.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/index-media.d.ts +0 -48
- package/dist/node_modules/@allyhub/media/dist/vision/index-media.js +0 -3
- package/dist/node_modules/@allyhub/media/dist/vision/matte.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/vision/matte.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/mattes.d.ts +0 -109
- package/dist/node_modules/@allyhub/media/dist/vision/mattes.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/models.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/vision/models.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/protocol.d.ts +0 -51
- package/dist/node_modules/@allyhub/media/dist/vision/protocol.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/run.d.ts +0 -12
- package/dist/node_modules/@allyhub/media/dist/vision/run.js +0 -4
- package/dist/node_modules/@allyhub/media/dist/vision/runtime.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/vision/runtime.js +0 -8
- package/dist/node_modules/@allyhub/media/dist/vision/status.d.ts +0 -24
- package/dist/node_modules/@allyhub/media/dist/vision/status.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/track.d.ts +0 -54
- package/dist/node_modules/@allyhub/media/dist/vision/track.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/worker.js +0 -5
- package/dist/node_modules/@allyhub/media/dist/vision/yunet.d.ts +0 -35
- package/dist/node_modules/@allyhub/media/dist/vision/yunet.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/worker-process.d.ts +0 -3
- package/dist/node_modules/@allyhub/media/dist/worker-process.js +0 -2
- package/dist/node_modules/@allyhub/ooxml/dist/brightness.d.ts +0 -31
- package/dist/node_modules/@allyhub/ooxml/dist/color.d.ts +0 -33
- package/dist/node_modules/@allyhub/ooxml/dist/enums.d.ts +0 -13
- package/dist/node_modules/@allyhub/ooxml/dist/ext.d.ts +0 -79
- package/dist/node_modules/@allyhub/ooxml/dist/generated/enums.d.ts +0 -132
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +0 -28
- package/dist/node_modules/@allyhub/ooxml/dist/generated/spec.d.ts +0 -4708
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +0 -57
- package/dist/node_modules/@allyhub/ooxml/dist/index.d.ts +0 -10
- package/dist/node_modules/@allyhub/ooxml/dist/mce.d.ts +0 -12
- package/dist/node_modules/@allyhub/ooxml/dist/node.d.ts +0 -111
- package/dist/node_modules/@allyhub/ooxml/dist/ns.d.ts +0 -45
- package/dist/node_modules/@allyhub/ooxml/dist/opc.d.ts +0 -48
- package/dist/node_modules/@allyhub/ooxml/dist/report.d.ts +0 -45
- package/dist/node_modules/@allyhub/ooxml/dist/xml.d.ts +0 -28
- package/dist/node_modules/@allyhub/project/dist/deck-keys.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/deck-measure.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/deck-pool.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/says.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/stretch.js +0 -2
- package/dist/node_modules/@allyhub/render/dist/doc/fonts.js +0 -4
- package/dist/node_modules/@allyhub/render/dist/doc/index.js +0 -2
- package/dist/node_modules/@allyhub/render/dist/doc/pages.js +0 -32
- package/dist/node_modules/@allyhub/render/dist/doc/print.js +0 -41
- package/dist/node_modules/@allyhub/render/dist/webp.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/console.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/env.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/errors.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/inspect.js +0 -3
- package/dist/node_modules/@allyhub/runtime/dist/locate.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/mix-plan.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/reads.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/stage.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
- package/dist/node_modules/@allyhub/sheet/dist/address.d.ts +0 -32
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/api/charts.d.ts +0 -204
- package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/api/hint.d.ts +0 -3
- package/dist/node_modules/@allyhub/sheet/dist/api/index.d.ts +0 -8
- package/dist/node_modules/@allyhub/sheet/dist/api/page.d.ts +0 -83
- package/dist/node_modules/@allyhub/sheet/dist/api/rectangles.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/api/rules.d.ts +0 -170
- package/dist/node_modules/@allyhub/sheet/dist/api/styles.d.ts +0 -117
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +0 -362
- package/dist/node_modules/@allyhub/sheet/dist/arrange.d.ts +0 -68
- package/dist/node_modules/@allyhub/sheet/dist/calc/analyse.d.ts +0 -27
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +0 -199
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/aggregate.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/convert.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/database.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +0 -95
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/delimiters.d.ts +0 -16
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/distributions.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/finance.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/index.d.ts +0 -17
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/logical.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/modern.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/special.d.ts +0 -29
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/graph.d.ts +0 -38
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/calc/remote.d.ts +0 -49
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +0 -82
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +0 -55
- package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +0 -52
- package/dist/node_modules/@allyhub/sheet/dist/check.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/diff.d.ts +0 -79
- package/dist/node_modules/@allyhub/sheet/dist/edit.d.ts +0 -154
- package/dist/node_modules/@allyhub/sheet/dist/export.d.ts +0 -32
- package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/files.d.ts +0 -24
- package/dist/node_modules/@allyhub/sheet/dist/fill.d.ts +0 -30
- package/dist/node_modules/@allyhub/sheet/dist/filter.d.ts +0 -29
- package/dist/node_modules/@allyhub/sheet/dist/format.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +0 -113
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +0 -6
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.d.ts +0 -6
- package/dist/node_modules/@allyhub/sheet/dist/formula/rewrite.d.ts +0 -65
- package/dist/node_modules/@allyhub/sheet/dist/formula/walk.d.ts +0 -6
- package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +0 -46
- package/dist/node_modules/@allyhub/sheet/dist/html.d.ts +0 -82
- package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +0 -11
- package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +0 -42
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +0 -25
- package/dist/node_modules/@allyhub/sheet/dist/paginate.d.ts +0 -98
- package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/profile.d.ts +0 -30
- package/dist/node_modules/@allyhub/sheet/dist/rules.d.ts +0 -56
- package/dist/node_modules/@allyhub/sheet/dist/scenario.d.ts +0 -42
- package/dist/node_modules/@allyhub/sheet/dist/series.d.ts +0 -10
- package/dist/node_modules/@allyhub/sheet/dist/sort.d.ts +0 -24
- package/dist/node_modules/@allyhub/sheet/dist/structure.d.ts +0 -38
- package/dist/node_modules/@allyhub/sheet/dist/table-style.d.ts +0 -32
- package/dist/node_modules/@allyhub/sheet/dist/table-styles.d.ts +0 -3
- package/dist/node_modules/@allyhub/sheet/dist/validate.d.ts +0 -26
- package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +0 -67
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +0 -324
- package/dist/node_modules/@allyhub/sheet/dist/write.d.ts +0 -5
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +0 -53
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/colors.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.d.ts +0 -31
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/functions.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +0 -49
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/index.d.ts +0 -5
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/numfmt.d.ts +0 -8
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +0 -159
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +0 -25
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.d.ts +0 -3
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +0 -28
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.d.ts +0 -40
- package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +0 -129
- package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +0 -730
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.d.ts +0 -18
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +0 -202
- package/dist/node_modules/@allyhub/slides-core/dist/check.d.ts +0 -7
- package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +0 -33
- package/dist/node_modules/@allyhub/slides-core/dist/components.d.ts +0 -31
- package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +0 -329
- package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +0 -131
- package/dist/node_modules/@allyhub/slides-core/dist/identity.d.ts +0 -17
- package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +0 -25
- package/dist/node_modules/@allyhub/slides-core/dist/lang.d.ts +0 -6
- package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +0 -34
- package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +0 -58
- package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +0 -293
- package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +0 -84
- package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +0 -6
- package/dist/node_modules/@allyhub/slides-core/dist/placeholders.d.ts +0 -7
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +0 -202
- package/dist/node_modules/@allyhub/slides-core/dist/script.d.ts +0 -45
- package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +0 -61
- package/dist/node_modules/@allyhub/slides-core/dist/strict.d.ts +0 -7
- package/dist/node_modules/@allyhub/slides-core/dist/theme.d.ts +0 -72
- package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +0 -62
- package/dist/node_modules/@allyhub/slides-core/dist/values.d.ts +0 -7
- package/dist/node_modules/@allyhub/stage/dist/bakes.js +0 -4
- package/dist/node_modules/@allyhub/stage/dist/graphics.js +0 -2
- package/dist/node_modules/@allyhub/stage/dist/scenery-page.js +0 -12
- package/dist/node_modules/@allyhub/stage/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/runtime.js +0 -79
- package/dist/node_modules/@allyhub/video-core/dist/anchors.d.ts +0 -164
- package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +0 -148
- package/dist/node_modules/@allyhub/video-core/dist/backdrop.d.ts +0 -87
- package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +0 -122
- package/dist/node_modules/@allyhub/video-core/dist/component.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/contrast.d.ts +0 -98
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +0 -77
- package/dist/node_modules/@allyhub/video-core/dist/edit.d.ts +0 -77
- package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +0 -163
- package/dist/node_modules/@allyhub/video-core/dist/export.d.ts +0 -97
- package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +0 -1179
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +0 -168
- package/dist/node_modules/@allyhub/video-core/dist/formats.d.ts +0 -205
- package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
- package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +0 -41
- package/dist/node_modules/@allyhub/video-core/dist/look.d.ts +0 -66
- package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +0 -563
- package/dist/node_modules/@allyhub/video-core/dist/media.d.ts +0 -226
- package/dist/node_modules/@allyhub/video-core/dist/media.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/messages.d.ts +0 -88
- package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +0 -56
- package/dist/node_modules/@allyhub/video-core/dist/music.d.ts +0 -111
- package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +0 -1154
- package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +0 -37
- package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
- package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/render-types.d.ts +0 -49
- package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +0 -350
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +0 -180
- package/dist/node_modules/@allyhub/video-core/dist/script.d.ts +0 -76
- package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +0 -214
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +0 -72
- package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
- package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +0 -83
- package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +0 -631
- package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +0 -88
- package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +0 -288
- package/dist/node_modules/@allyhub/video-core/dist/transition.d.ts +0 -300
- package/dist/node_modules/@allyhub/video-core/dist/voice.d.ts +0 -175
- package/dist/text/timeline-text.js +0 -2
- package/editor-web/assets/abnfDiagram-WEYOIA3C-B9SmmTJt.js +0 -1
- package/editor-web/assets/architecture-WOLXFQ4H-m-T100yu.js +0 -1
- package/editor-web/assets/architectureDiagram-ZHVYKT53-B5nwfRgH.js +0 -36
- package/editor-web/assets/blockDiagram-RJAE7QA3-ClawtW7w.js +0 -140
- package/editor-web/assets/c4Diagram-XDPPPE54-CFHQpxmY.js +0 -38
- package/editor-web/assets/calc-worker-BTNuOUVJ.js +0 -158
- package/editor-web/assets/channel-hhT2g1yB.js +0 -1
- package/editor-web/assets/choice-BJc3Tv5F.js +0 -10
- package/editor-web/assets/chunk-2E7WHVMD-CoQrt8De.js +0 -88
- package/editor-web/assets/chunk-4EMNKR2T-Iy5ZP2hH.js +0 -1
- package/editor-web/assets/chunk-55XCU76K-DsS8sEfz.js +0 -1
- package/editor-web/assets/chunk-7S6XSTFO-Co220fFP.js +0 -2
- package/editor-web/assets/chunk-AQDTSKZB-JIGZAIpF.js +0 -72
- package/editor-web/assets/chunk-DSNLSHJZ-Ror_NzZx.js +0 -129
- package/editor-web/assets/chunk-HAGFOTED-C07qbJaC.js +0 -62
- package/editor-web/assets/chunk-HNE4Q36P-CM3bprQy.js +0 -1
- package/editor-web/assets/chunk-NQOKRVIF-ipM1cuU7.js +0 -213
- package/editor-web/assets/chunk-UHW7PFBP-CA8McMqW.js +0 -1
- package/editor-web/assets/chunk-VQ5W62QI-DEDvdgPj.js +0 -1
- package/editor-web/assets/chunk-WQQL4CDK-h5ZO7LF7.js +0 -10
- package/editor-web/assets/chunk-YZO67HFG-yC3xdjnt.js +0 -1
- package/editor-web/assets/chunk-ZAUX2LTX-3rRCWRvD.js +0 -1
- package/editor-web/assets/chunk-ZCHMQSOR-DK_PLi39.js +0 -2
- package/editor-web/assets/classDiagram-v2-4MYWR3UA-B9pB-HTm.js +0 -217
- package/editor-web/assets/cynefin-EF2NZ3EQ-CSd3PDdQ.js +0 -1
- package/editor-web/assets/cynefinDiagram-WF24UDRP-BBCequ3T.js +0 -62
- package/editor-web/assets/dagre-NK4GIZVX-C7ZOWX5t.js +0 -4
- package/editor-web/assets/diagram-CBK3MWTC-CQVvlSNo.js +0 -24
- package/editor-web/assets/diagram-I5XIIV2D-BCkke5x3.js +0 -24
- package/editor-web/assets/diagram-ODIL2UCW-DDWQXIlX.js +0 -30
- package/editor-web/assets/diagram-PFBEJUXE-C31QlFzr.js +0 -3
- package/editor-web/assets/diagram-RJA3I4VV-DUXAFmI_.js +0 -41
- package/editor-web/assets/diagram-TYUNFSNR-BCxuoEs9.js +0 -200
- package/editor-web/assets/dist-BRuoygB7.js +0 -2
- package/editor-web/assets/dist-CK42vCmN.js +0 -550
- package/editor-web/assets/dist-C_buDsM-.js +0 -36
- package/editor-web/assets/dist-DNcXHhzn.js +0 -37
- package/editor-web/assets/dist-HxiPpGXi.js +0 -10
- package/editor-web/assets/dist-PF3VMsK7.js +0 -1
- package/editor-web/assets/ebnfDiagram-V4P3TTPT-Drbe1R2R.js +0 -1
- package/editor-web/assets/elk-QONTBCTQ-Bqwuc5U-.js +0 -27
- package/editor-web/assets/erDiagram-KYQIGQAA-lUcyPgf3.js +0 -99
- package/editor-web/assets/eventmodeling-K75KTNOO-BfxFVok7.js +0 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-FJVml4lT.js +0 -1
- package/editor-web/assets/ganttDiagram-R7GPNTJY-AYc1JnE_.js +0 -292
- package/editor-web/assets/gitGraph-VSP46ZUC-Z_2ysYZF.js +0 -1
- package/editor-web/assets/gitGraphDiagram-PDYL7XHY-CB2O1LZ6.js +0 -106
- package/editor-web/assets/hint-BwGc32IE.js +0 -1
- package/editor-web/assets/index-BQKSbBSy.js +0 -69
- package/editor-web/assets/index-CfD80QPx.css +0 -2
- package/editor-web/assets/info-OHQRW6UA-BPePkERU.js +0 -1
- package/editor-web/assets/infoDiagram-MVDRKAX5-CNluCREj.js +0 -2
- package/editor-web/assets/ishikawaDiagram-HPEHV2GE-DIBDBol9.js +0 -70
- package/editor-web/assets/journeyDiagram-BOSHW7O7-C4Hc63C8.js +0 -139
- package/editor-web/assets/kanban-definition-FNSA4HC5-BShCYR9Q.js +0 -89
- package/editor-web/assets/mermaid-parser.core-KGVt2icR.js +0 -7
- package/editor-web/assets/mermaid.core-CVH2hRmI.js +0 -44
- package/editor-web/assets/mindmap-definition-6OY57UG3-C1mo9OeK.js +0 -98
- package/editor-web/assets/packet-JDAUHWVQ-B7YpYnvD.js +0 -1
- package/editor-web/assets/pegDiagram-ECIUJNBX-Es99bVEq.js +0 -1
- package/editor-web/assets/pie-XZMESJXO-xTUp8UcP.js +0 -1
- package/editor-web/assets/pieDiagram-GNMPY74T-CD91pLk4.js +0 -39
- package/editor-web/assets/quadrantDiagram-D57K4MC3-CSnvxc94.js +0 -7
- package/editor-web/assets/radar-ABXABTNO-Dj-t0L18.js +0 -1
- package/editor-web/assets/railroad-I3PHUGI6-BK32uCwU.js +0 -1
- package/editor-web/assets/railroad-abnf-LNEFI6M7-D5R8k6d0.js +0 -1
- package/editor-web/assets/railroad-ebnf-DWYD2UWJ-Crm1KEAC.js +0 -1
- package/editor-web/assets/railroad-peg-JR7BVNR7-BILXac49.js +0 -1
- package/editor-web/assets/railroadDiagram-Y72NRBL7-CevyjvbY.js +0 -1
- package/editor-web/assets/react-BSSSHUyV.js +0 -101
- package/editor-web/assets/requirementDiagram-EQYSW5RA-B5N8Q9VV.js +0 -84
- package/editor-web/assets/sankeyDiagram-SY24JHO5-bCTsxF1A.js +0 -40
- package/editor-web/assets/sequenceDiagram-BLEHNHQU-M37m0sEI.js +0 -169
- package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BDIn7XwV.js +0 -291
- package/editor-web/assets/svg-BiObwMnL.js +0 -1
- package/editor-web/assets/swatch-CwskGSEY.js +0 -105
- package/editor-web/assets/swimlanes-B3ENRKFQ-DIU1TlDI.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DPM008dB.js +0 -8
- package/editor-web/assets/tabs-uHwPMprC.js +0 -1
- package/editor-web/assets/timeline-definition-JXYKGLGB-C0x4clqy.js +0 -120
- package/editor-web/assets/treeView-D4JQ5SDB-C9lm0KTt.js +0 -1
- package/editor-web/assets/treemap-SAJKECNS-BMH4lQc7.js +0 -1
- package/editor-web/assets/usecaseDiagram-WPOLBNNX-BhltpBsJ.js +0 -328
- package/editor-web/assets/vennDiagram-Q3Y3IDCW-D3qN9Kpt.js +0 -34
- package/editor-web/assets/wardley-7MLQ67FV-C4k02DvU.js +0 -1
- package/editor-web/assets/wardleyDiagram-IVAIDKWA-dhpBDNqg.js +0 -78
- package/editor-web/assets/xychartDiagram-4URNHDU4-0yEarQ-o.js +0 -7
- /package/dist/{commands → node_modules/@allyhub/3d-extension/dist/cli}/scenery-text.js +0 -0
- /package/dist/node_modules/@allyhub/{check/dist/result.js → build/dist/stage-route.js} +0 -0
- /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/drawn.js +0 -0
- /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/pdf.js +0 -0
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/fonts.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/guards.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/pictures.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/styles.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime/dist/bridge.js → image-extension/dist/page.js} +0 -0
- /package/dist/node_modules/@allyhub/{render → image-render}/dist/pdf.js +0 -0
- /package/dist/node_modules/@allyhub/{render → image-render}/dist/png.js +0 -0
- /package/dist/node_modules/@allyhub/{render → measure}/dist/image.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
- /package/dist/node_modules/@allyhub/{stage/dist/scenery-solve.js → scenery-host/dist/stage/solve.js} +0 -0
- /package/dist/node_modules/@allyhub/{export → slides-extension}/dist/deck-fonts.js +0 -0
- /package/dist/node_modules/@allyhub/{dev-server/dist/fonts.js → slides-extension/dist/font-faces.js} +0 -0
- /package/dist/node_modules/@allyhub/{dev-server → video-extension}/dist/sound.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/cut-sheet.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/flat.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/loop.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/compare.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/folder.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/interpret.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/sections.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/seams.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/sound-measures.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/still.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/version-voice.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export const CAPTURE_DEFAULTS={bloom:{threshold:.8,radius:24,strength:.35},exposure:{drift:.12,period:6},grain:{amount:.02,size:1.2,shadows:1.8,highlights:.6,chroma:.35,chromaSize:3,static:!1}};const
|
|
2
|
+
export const CAPTURE_DEFAULTS={bloom:{threshold:.8,radius:24,strength:.35},exposure:{drift:.12,period:6},grain:{amount:.02,size:1.2,shadows:1.8,highlights:.6,chroma:.35,chromaSize:3,static:!1}};const C=1/15;export function exposureStops(t,n){return t.drift*(.65*Math.sin(2*Math.PI*n/t.period)+.35*Math.sin(2*Math.PI*n/(t.period*.37)+1.3))}const _=256,M=[[0,1],[.25,.8904],[.4,.7649],[.5,.6804],[.6,.6028],[.75,.5043],[1,.3849],[1.25,.3062],[1.5,.2526],[2,.1865],[2.5,.1482],[3,.1235]];export function blurredNoise(t){if(t<=0)return 1;const n=M[M.length-1]??[3,.1235];if(t>=n[0])return n[1]*n[0]/t;for(let e=1;e<M.length;e++){const[i,x]=M[e]??n,[m,l]=M[e-1]??n;if(t<=i)return l+(x-l)*(t-m)/(i-m)}return n[1]}const k=127,L=2.5;export const GRAIN_MOST=Math.floor(127/3/255*1e3)/1e3;export function grainWeight(t,n){const e=n;return Math.max(0,t.shadows*2*(e-.5)*(e-1)-4*e*(e-1)+t.highlights*2*e*(e-.5))}export function grainAt(t,n){const e=t.amount*255*grainWeight(t,n/255),i=Math.min(n,255-n);return e<=0||i<=0?0:e*i/Math.sqrt(i*i+(L*e)**2)}export function captureProblem(t){const n=(i,x,m)=>i!==void 0&&!(Number.isFinite(i)&&i>=0&&i<=m)?`capture.${x} is from 0 to ${String(m)}, not ${String(i)}`:void 0,e=n(t.bloom?.threshold,"bloom.threshold",.99)??n(t.bloom?.strength,"bloom.strength",1)??n(t.bloom?.radius,"bloom.radius",200)??n(t.aberration,"aberration",20)??n(t.soften,"soften",20)??n(t.vignette,"vignette",.99)??n(t.exposure?.drift,"exposure.drift",2)??n(t.grain?.amount,"grain.amount",GRAIN_MOST)??n(t.grain?.size,"grain.size",8)??n(t.grain?.shadows,"grain.shadows",8)??n(t.grain?.highlights,"grain.highlights",8)??n(t.grain?.chroma,"grain.chroma",4)??n(t.grain?.chromaSize,"grain.chromaSize",16)??n(t.sharpen,"sharpen",5);if(e)return e;if(t.exposure?.period!==void 0&&!(Number.isFinite(t.exposure.period)&&t.exposure.period>0))return`capture.exposure.period is seconds above 0, not ${String(t.exposure.period)}`;if(t.grain?.static!==void 0&&typeof t.grain.static!="boolean")return`capture.grain.static is true or false, not ${String(t.grain.static)}`}export function capturesAnything(t){return t?t.bloom!==void 0&&(t.bloom.strength??CAPTURE_DEFAULTS.bloom.strength)>0||(t.aberration??0)>0||(t.soften??0)>0||(t.vignette??0)>0||t.exposure!==void 0&&(t.exposure.drift??CAPTURE_DEFAULTS.exposure.drift)>0||t.grain!==void 0&&(t.grain.amount??CAPTURE_DEFAULTS.grain.amount)>0||(t.sharpen??0)>0:!1}const o=t=>{const n=Math.round(t*1e6)/1e6;return String(Object.is(n,-0)?0:n)},X=(t,n)=>`clip(128.5+(x-128)*${o(t)}+(y-128)*${o(n)},0,255)`,T=(t,n,e)=>`mod(abs(sin(${t}*${o(n)}+${o(e)})*43758.5453),1)`;export function captureGraph(t,n){const e=n.prefix??"cap",[i,x]=n.size,m=Math.min(i,x)/1080,l=[];let j=0;const s=()=>`${e}${String(j++)}`;let $=n.input,w;if(n.alpha){const r=s(),a=s();w=s(),l.push(`[${$}]split=2[${r}][${a}]`,`[${a}]alphaextract[${w}]`),$=r}const b=r=>{const a=s();l.push(`[${$}]${r}[${a}]`),$=a};if(b("format=gbrp"),t.bloom&&(t.bloom.strength??CAPTURE_DEFAULTS.bloom.strength)>0){const r={...CAPTURE_DEFAULTS.bloom,...t.bloom},a=s(),h=s(),c=s(),g=s(),u=o(r.threshold*255),d=o(1/(1-r.threshold)),p=`max(val-${u},0)*${d}`;l.push(`[${$}]split=2[${a}][${h}]`,`[${h}]lutrgb=r='${p}':g='${p}':b='${p}',gblur=sigma=${o(Math.max(.1,r.radius*m/2))}[${c}]`,`[${a}][${c}]blend=all_mode=screen:all_opacity=${o(r.strength)}[${g}]`),$=g}if((t.aberration??0)>0){const r=(t.aberration??0)*m/2/(Math.hypot(i,x)/2),[a,h,c]=[s(),s(),s()],[g,u]=[s(),s()],d=s();l.push(`[${$}]extractplanes=r+g+b[${a}][${h}][${c}]`,`[${a}]lenscorrection=k1=${o(-r)}:k2=0:i=bilinear[${g}]`,`[${c}]lenscorrection=k1=${o(r)}:k2=0:i=bilinear[${u}]`,`[${h}][${u}][${g}]mergeplanes=0x001020:gbrp[${d}]`),$=d}if((t.soften??0)>0&&b(`gblur=sigma=${o((t.soften??0)*m)}:steps=3`),(t.vignette??0)>0){const r=Math.acos((1-(t.vignette??0))**.25);b(`vignette=angle=${o(r)}:eval=init:dither=0`)}if(t.exposure&&(t.exposure.drift??CAPTURE_DEFAULTS.exposure.drift)>0){const r={...CAPTURE_DEFAULTS.exposure,...t.exposure},a=Math.max(1,Math.round(n.fps*C)),h=`colorchannelmixer@${e}e`,c=[];let g;for(let u=0;u<n.frames;u++){const d=Math.floor((n.first+u)/a)*a,p=(2**(exposureStops(r,d/n.fps)/2.2)).toFixed(5);if(p===g)continue;g=p;const y=u===0?"0":o((u-.5)/n.fps);c.push(`${y} ${h} rr ${p},${h} gg ${p},${h} bb ${p}`)}b(`sendcmd=c='${c.join(";")}',${h}`)}if(t.grain&&(t.grain.amount??CAPTURE_DEFAULTS.grain.amount)>0){const r={...CAPTURE_DEFAULTS.grain,...t.grain},a=r.size*m/2,h=r.chromaSize*m/2,c=r.chroma>0,g=r.amount*255,u=k/Math.sqrt(3),d=Math.sqrt(1+(c?r.chroma*r.chroma:0)),p=g/(u*blurredNoise(a)*d),y=c?g*r.chroma/(u*blurredNoise(h)*d):0,P=r.static?"0":`(n+${String(n.first)})`,z=f=>`crop=w=${String(i)}:h=${String(x)}:x='floor(${String(_)}*${T(P,12.9898+7.31*f,1.7+f)})':y='floor(${String(_)}*${T(P,78.233+3.17*f,4.1+2*f)})'`,q=f=>f>=.1?`gblur=sigma=${o(f)}`:"null",G="loop=loop=-1:size=1:start=0",S=s(),A=s();l.push(`color=c=gray:s=${String(i+_)}x${String(x+_)}:r=${n.rate??o(n.fps)}:d=${o(1/n.fps)},format=gray,geq=lum='128+${o(2*k)}*(mod(abs(sin(X*12.9898+Y*78.233)*43758.5453),1)-0.5)'${c?`,split=2[${S}][${S}c]`:`[${S}]`}`,`[${S}]${q(a)},format=gbrp,${G},${z(0)}[${A}]`);let N=A;if(c){const[f,O,R,U]=[s(),s(),s(),s()];N=s();const E=X(p,y);l.push(`[${S}c]${q(h)},${G},split=3[${f}0][${O}0][${R}0]`,`[${f}0]${z(1)}[${f}]`,`[${O}0]${z(2)}[${O}]`,`[${R}0]${z(3)}[${R}]`,`[${f}][${O}][${R}]mergeplanes=0x001020:gbrp[${U}]`,`[${A}][${U}]lut2=c0='${E}':c1='${E}':c2='${E}'[${N}]`)}const D=`max(0,${o(r.shadows*2)}*(x/255-0.5)*(x/255-1)-4*(x/255)*(x/255-1)+${o(r.highlights*2)}*(x/255)*(x/255-0.5))`,v="min(x,255-x)",I=`clip(x+0.5+(y-128)*${o(c?1:p)}*${D}*${v}/sqrt(${v}*${v}+pow(${o(L*g)}*${D},2)+1e-9),0,255)`,F=s();l.push(`[${$}][${N}]lut2=c0='${I}':c1='${I}':c2='${I}':shortest=1[${F}]`),$=F}if((t.sharpen??0)>0){const r=o(t.sharpen??0);b(`unsharp=5:5:${r}:5:5:${r}`)}if(w){const r=s();l.push(`[${$}][${w}]alphamerge,format=gbrap[${r}]`),$=r}return{filters:l,out:$}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{readFile as G,stat as N}from"node:fs/promises";import{join as b}from"node:path";import{fpsRational as x,indexPath as M}from"@allyhub/
|
|
2
|
+
import{readFile as G,stat as N}from"node:fs/promises";import{join as b}from"node:path";import{fpsRational as x,indexPath as M}from"@allyhub/piece";import{PNG as w}from"pngjs";import{captureGraph as q,capturesAnything as j}from"./capture.js";import{footagePlane as z,layersIn as B,probeSource as E}from"./footage.js";import{rgbaPng as F}from"@allyhub/image-render/png";import{postGraph as P}from"./post.js";import{runFfmpegWith as I,write as T}from"./tools.js";const O=new Map;export function transparentPng(t,a){const n=`${String(t)}x${String(a)}`;let r=O.get(n);if(!r){const e=new w({width:t,height:a});e.data.fill(0),r=w.sync.write(e,{deflateLevel:9}),O.set(n,r)}return r}export function partAt(t,a){return t.parts.find(n=>a>=n.start&&a<n.end)??t.parts.at(-1)}export async function planSources(t,a,n){const r=new Map;for(const e of a.footage??[]){const p=e.background?.image;if(p!==void 0&&!r.has(p)){const h=t.path(p);h&&r.set(p,{path:h,info:{alpha:!1}})}const o=e.cutout===!0||e.background!==void 0,i=r.get(e.file);if(i){o&&!i.matte&&Object.assign(i,await k(t,e.file));continue}const u=t.path(e.file);if(!u)continue;const c=t.media[e.file];r.set(e.file,{path:u,info:await E(u,n),...c?.duration===void 0?{}:{duration:c.duration},...c?.width!==void 0&&c.height!==void 0?{width:c.width,height:c.height}:{},...o?await k(t,e.file):{}})}return r}async function k(t,a){const n=t.media[a]?.sha256;if(!n)return{};const r=t.root,e=b(r,M(n,"matte.mp4"));if(!(await N(e).catch(()=>{}))?.isFile())return{};let p={};try{p=JSON.parse(await G(b(r,M(n,"matte.json")),"utf8"))}catch{}const{width:o,height:i}=p;return{matte:e,...typeof o=="number"&&typeof i=="number"&&o>0&&i>0?{matteSize:{width:o,height:i}}:{}}}export const partPost=t=>t?.post?.filter;export function filterPath(t){return t.includes("'")?void 0:`'${t}'`}export function finishGraph(t,a,n,r=[]){let e=a;if(j(n.capture)&&n.capture){const i=q(n.capture,{input:e,first:n.first,frames:n.frames,fps:n.timeline.fps,rate:x(n.timeline.fps).text,size:[n.timeline.width,n.timeline.height],alpha:n.alpha});t.push(...i.filters),e=i.out}n.post&&(e=P(t,e,n.post,{first:n.first,fps:n.timeline.fps,alpha:n.alpha,prefix:"vpost"}));const p=[];if(n.lut){const i=filterPath(n.lut);i&&p.push(`lut3d=file=${i}`)}if(r.length>0){p.length>0&&(t.push(`[${e}]${p.join(",")}[fin]`),e="fin"),r.forEach((i,u)=>{const c=`fov${String(u)}`;t.push(`[${e}][${i}]overlay=format=auto[${c}]`),e=c}),t.push(`[${e}]${n.tail.length?n.tail.join(","):"null"}[v]`);return}const o=[...p,...n.tail];t.push(`[${e}]${o.length?o.join(","):"null"}[v]`)}export const imagesOf=(t,a,n)=>n?.includes(t)?1:a;export function compositeArgs(t){const a=x(t.timeline.fps),n=t.planes.length>0,r=[],e=[],p=t.planes.filter(l=>t.overlays?.includes(l));if(n){const l=[],s=t.samples;s>1&&l.push("format=gbrap","premultiply=inplace=1",`tmix=frames=${String(s)}`,`select='eq(mod(n,${String(s)}),${String(s-1)})'`,`setpts=N*${String(a.den)}/(${String(a.num)}*TB)`,"unpremultiply=inplace=1");const f=m=>`gp${String(m)}`,[g]=t.planes;if(t.planes.length===1&&g!==void 0){const m=p.includes(g)?[]:l;r.push(`[0:v]${m.length?m.join(","):"null"}[${f(g)}]`),e[g]=f(g)}else{const m=t.planes.map(d=>imagesOf(d,s,t.overlays)),S=m.reduce((d,$)=>d+$,0);r.push(`[0:v]split=${String(t.planes.length)}${t.planes.map((d,$)=>`[gi${String($)}]`).join("")}`);let y=0;t.planes.forEach((d,$)=>{const v=m[$]??s,_=`setpts=N*${String(a.den)}/(${String(a.num*v)}*TB)`,A=p.includes(d)?[]:l;r.push(`[gi${String($)}]select='gte(mod(n,${String(S)}),${String(y)})*lt(mod(n,${String(S)}),${String(y+v)})',${[_,...A].join(",")}[${f(d)}]`),e[d]=f(d),y+=v})}}const o=p.flatMap(l=>{const s=e[l];return e[l]=void 0,s===void 0?[]:[s]}),i=z({timeline:t.timeline,first:t.first,frames:t.frames,sources:t.sources,alpha:t.alpha,firstInput:n?1:0,...n?{graphics:e}:{}});r.push(...i.filters);const u=partPost(t.part),c=u?P(r,i.out,u,{first:t.first,fps:t.timeline.fps,alpha:t.alpha,prefix:"ppost"}):i.out;finishGraph(r,c,t,o);const h=t.planes.reduce((l,s)=>l+imagesOf(s,t.samples,t.overlays),0);return[...n?["-f","image2pipe","-c:v","png","-framerate",`${String(a.num*h)}/${String(a.den)}`,"-i","-"]:[],...i.inputs,"-filter_complex",r.join(";"),"-map","[v]","-frames:v",String(t.frames)]}export function frameAt(t,a){const n=Math.max(1,Math.round(t.duration*t.fps));return Math.min(Math.max(0,Math.floor(a*t.fps+1e-9)),n-1)}export const stillOutput=(t="png")=>t==="jpeg"?["-f","image2pipe","-c:v","mjpeg","-q:v","2"]:t==="webp"?["-c:v","libwebp","-quality","90","-f","webp"]:["-f","image2pipe","-c:v","png"];export async function compositeStill(t){const a=t.frame===void 0?{...t.timeline,footage:[]}:t.timeline,n=t.graphics.length>0?t.planes??[0]:[],r=n.filter(c=>t.overlays?.includes(c)).length,e=Math.max(1,(t.graphics.length-r)/Math.max(1,n.length-r)),p=t.format==="jpeg",o=partAt(t.timeline,(t.frame??0)/t.timeline.fps);if((t.format??"png")==="png"&&n.length<=1&&r===0&&e===1&&!t.post&&!partPost(o)&&!t.lut&&!j(t.capture)&&B(a,t.frame??0,1).length===0)return L(a,t.graphics[0],t.alpha);const i=compositeArgs({timeline:a,first:t.frame??0,frames:1,sources:t.sources,alpha:t.alpha&&!p,planes:n,...t.overlays?{overlays:t.overlays}:{},samples:e,...t.capture?{capture:t.capture}:{},...t.post?{post:t.post}:{},...t.lut?{lut:t.lut}:{},...o?{part:o}:{},tail:[p?"scale=out_color_matrix=bt601:out_range=pc,format=yuvj444p":`format=${t.alpha?"rgba":"rgb24"}`]}),{out:u}=await I(t.ffmpeg,["-v","error",...i,...stillOutput(t.format),"-"],t.graphics.length>0?async c=>{for(const h of t.graphics)await T(c,F(h))}:void 0,!0);if(u.length===0)throw new Error("ffmpeg drew no frame.");return u}function J(t){const a=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i.exec(t);if(!a)return[0,0,0,0];const n=(r,e)=>r===void 0?e:parseInt(r,16);return[n(a[1],0),n(a[2],0),n(a[3],0),n(a[4],255)]}function L(t,a,n){const{width:r,height:e}=t,p=n&&t.background==="transparent",[o,i,u]=J(t.background),c=a?w.sync.read(a):void 0,h=new w({width:r,height:e}),l=h.data,s=c?.width===r&&c.height===e?c.data:void 0;for(let f=0;f<l.length;f+=4){const g=s?s[f+3]??0:0;if(p){l[f]=s?s[f]??0:0,l[f+1]=s?s[f+1]??0:0,l[f+2]=s?s[f+2]??0:0,l[f+3]=g;continue}const m=255-g;l[f]=Math.round(((s?.[f]??0)*g+o*m)/255),l[f+1]=Math.round(((s?.[f+1]??0)*g+i*m)/255),l[f+2]=Math.round(((s?.[f+2]??0)*g+u*m)/255),l[f+3]=255}return w.sync.write(h,p?{}:{colorType:2})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{cpus as
|
|
2
|
+
import{cpus as h}from"node:os";import{RenderError as x}from"./errors.js";export const VIDEO_TYPES=["mp4","mov","webm","gif","png"],SHARE_ENCODE={crf:20,maxKbps:8e3,width:1920,height:1080,fps:30};export function shareKbps(e,r,t){const n=e*r*t/(SHARE_ENCODE.width*SHARE_ENCODE.height*SHARE_ENCODE.fps);return Math.max(1,Math.round(SHARE_ENCODE.maxKbps*n))}export function encodeFor(e,r,t){return e!=="mp4"?r:{...(r.codec??"h264")==="h264"?{crf:SHARE_ENCODE.crf}:{},maxBitrate:shareKbps(t.width,t.height,t.fps),...r}}export function encoderOf(e,r,t,n,c=!1,s){const f=r.bits??8,p=r.chroma??"420";if(r.crf!==void 0&&(!Number.isInteger(r.crf)||r.crf<0||r.crf>63))throw new x("bad-crf",`--crf ${String(r.crf)} is not a whole number from 0 to 63.`);const u=(o,i,m=!1)=>`yuv${m?"a":""}${o}p${i===10?"10le":""}`,a=["-colorspace","bt709","-color_primaries","bt709","-color_trc","bt709","-color_range","tv"];switch(e){case"mp4":{if(r.crf!==void 0&&r.crf>51)throw new x("bad-crf",`--crf ${String(r.crf)} is over 51, the most H.264 and H.265 take.`);const o=u(p,f),i=c&&r.maxBitrate!==void 0&&r.maxBitrate>0,m=String(r.maxBitrate??0),b=String((r.maxBitrate??0)*2),g=i&&s!==void 0?`:vbv-init=${String(Math.round(Math.max(.001,Math.min(1,s))*1e4)/1e4)}`:"";return(r.codec??"h264")==="h265"?{rgb:!1,pixFmt:o,args:["-c:v","libx265","-preset","medium","-crf",String(r.crf??20),"-x265-params",`colorprim=bt709:transfer=bt709:colormatrix=bt709:log-level=error${i?`:vbv-maxrate=${m}:vbv-bufsize=${b}:frame-threads=1:wpp=0${g}`:""}${n===void 0?"":`:keyint=${String(n)}:min-keyint=${String(n)}:scenecut=0:open-gop=0`}`,"-tag:v","hvc1",...a,"-pix_fmt",o]}:{rgb:!1,pixFmt:o,args:["-c:v","libx264","-preset",i?"faster":"medium","-crf",String(r.crf??18),...i?["-maxrate",`${m}k`,"-bufsize",`${b}k`]:[],"-bf","0","-x264-params",`colorprim=bt709:transfer=bt709:colormatrix=bt709${i?`:threads=1${g}`:""}`,...a,"-pix_fmt",o]}}case"mov":{const o=t?"yuva444p10le":"yuv422p10le";return{rgb:!1,pixFmt:o,args:["-c:v","prores_ks","-profile:v",t?"4444":"hq",...t?["-alpha_bits","16"]:[],"-vendor","apl0",...a,"-pix_fmt",o]}}case"webm":{const o=t?"yuva420p":u(p,f);return{rgb:!1,pixFmt:o,args:["-c:v","libvpx-vp9","-crf",String(r.crf??30),"-b:v","0","-row-mt","1","-deadline","good","-cpu-used","2",...t?["-auto-alt-ref","0"]:[],...a,"-pix_fmt",o]}}case"gif":return{rgb:!0,pixFmt:"rgb24",args:[]};case"png":return{rgb:!0,pixFmt:t?"rgba":"rgb24",args:["-c:v","png","-pix_fmt",t?"rgba":"rgb24"]}}}export function gopArgs(e,r,t){const n=String(t);return e==="mp4"&&(r??"h264")==="h264"?["-g",n,"-keyint_min",n,"-sc_threshold","0"]:e==="webm"?["-g",n,"-keyint_min",n]:[]}export const HELD_OUT="vheld";export function twoOutputs(e,r){if(!r)return e;const t=e.indexOf("-filter_complex"),n=e.findIndex((s,f)=>s==="[v]"&&e[f-1]==="-map");if(t<0||n<0)throw new Error("A composite's graph was not one mapped as [v].");const c=[...e];return c[t+1]=`${String(e[t+1])};[v]split=2[vone][${HELD_OUT}]`,c[n]="[vone]",c}export const MAX_WORKERS=32;export function autoWorkers(e){const r=Number(process.env.ALLYHUB_RENDER_WORKERS);return Number.isInteger(r)&&r>0?Math.min(r,MAX_WORKERS):Math.max(1,Math.min(4,h().length-2,Math.floor(e/60)))}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{writeFile as b}from"node:fs/promises";import{createRequire as j}from"node:module";import{
|
|
3
|
-
`)??"";w&&h.addNotes(w)}const x=await c.write({outputType:"nodebuffer"});return
|
|
2
|
+
import{writeFile as b}from"node:fs/promises";import{createRequire as j}from"node:module";import{strFromU8 as P,strToU8 as v,unzipSync as L,zipSync as E}from"fflate";import{paperOf as O}from"@allyhub/piece";import{captionCues as T,subtitleCues as C,toSrt as M,toVtt as U}from"@allyhub/video-core";import{RenderError as A}from"./errors.js";import{finishPdf as I}from"@allyhub/image-render/pdf";import{backgroundStill as N,finalStill as d,footageStill as z}from"./stills.js";export function stillsOf(t,e=!1){const i=[];for(const[a,n]of t.parts.entries()){if(n.hidden===!0)continue;const o=n.title??String(a+1),r=e&&n.steps!==void 0?n.steps:[n.still],s=r.length===1?(n.steps?.length??1)-1:0;r.forEach((c,l)=>{i.push({part:n,step:s+l,at:c,title:r.length>1?`${o} (${String(l+1)})`:o})})}return i}async function g(t,e,i){return await b(t,e),{out:t,units:i,bytes:e.byteLength}}const u=t=>({target:t.target,look:t.look,media:t.media,...t.ffmpeg===void 0?{}:{ffmpeg:t.ffmpeg},...t.ffprobe===void 0?{}:{ffprobe:t.ffprobe}});export async function renderCaptions(t){const{timeline:e}=t.page,i=await t.page.lines();if(i.length===0)throw new A("no-speech",`${t.target.output} of ${t.target.piece} (${t.target.combo.lang??"this combo"}) says nothing with word times, so there are no subtitles to export.`,{hint:'Give parts speech: speech: take("./take.mp4") with its .words.json beside it, or say(s("…")) and allyhub voice.'});const a={lines:i,fps:e.fps},n=t.captions?T(a,t.captions):C(a,await t.page.captionOptions()),o=t.type==="srt"?M(n):U(n);return g(t.out,new TextEncoder().encode(o),n.length)}export async function renderCover(t){const{page:e}=t,i=await e.covers()>0?await N(e.timeline,await e.cover(0),"jpeg",t):await d(e,e.timeline.parts[0]?.still??0,{...u(t),format:"jpeg"});return g(t.out,i,1)}export async function renderPdf(t){const{timeline:e}=t.page,i=e.background,a=[];for(const r of stillsOf(e,t.steps)){const s=await z(t.media,e,r.at,"jpeg",t);a.push({still:r.at,title:r.title,background:s?`url(data:image/jpeg;base64,${s.toString("base64")}) 0 0 / 100% 100% no-repeat`:i})}const n=await t.page.print(a,e.paper??O(t.target.format)),o=await I(n,{...t.title===void 0?{}:{title:t.title},outline:a.map(r=>r.title)});return g(t.out,o,a.length)}export async function renderPng(t){const e=stillsOf(t.page.timeline,t.steps),i=Math.max(2,String(e.length).length),a=t.out.replace(/\.png$/i,""),n=[];let o=0;const r=await t.stills?.(e);for(const[s,c]of e.entries()){const l=e.length===1?t.out:`${a}.${String(s+1).padStart(i,"0")}.png`,f=r?.[s]??await d(t.page,c.at,u(t));await b(l,f),n.push(l),o+=f.byteLength}return{out:n[0]??t.out,units:n.length,bytes:o,files:n}}const B=j(import.meta.url)("pptxgenjs");export async function renderPptx(t){const{timeline:e}=t.page,{width:i,height:a}=e,n=/^([\d.]+)in ([\d.]+)in$/u.exec(e.paper??""),o=13.333/Math.max(i,a),r=n?Number(n[1]):i*o,s=n?Number(n[2]):a*o,c=new B;c.defineLayout({name:"ALLYHUB",width:r,height:s}),c.layout="ALLYHUB";const l=await t.page.text(),f=stillsOf(e,t.steps),y=await t.stills?.(f);for(const[S,m]of f.entries()){const $=y?.[S]??await d(t.page,m.at,u(t)),h=c.addSlide();h.addImage({data:`image/png;base64,${$.toString("base64")}`,x:0,y:0,w:r,h:s});const p=l.find(k=>k.key===m.part.key),w=p?.notes??p?.spoken??p?.onScreen.join(`
|
|
3
|
+
`)??"";w&&h.addNotes(w)}const x=await c.write({outputType:"nodebuffer"});return g(t.out,G(x),f.length)}const D="1980-01-01T00:00:00Z",F=new Date(1980,0,1);function G(t){const e=L(t),i={};for(const[a,n]of Object.entries(e)){const o=a==="docProps/core.xml"?v(P(n).replace(/(<dcterms:(?:created|modified)[^>]*>)[^<]*(<\/dcterms:(?:created|modified)>)/gu,`$1${D}$2`)):n;i[a]=[o,{level:/\.(png|jpe?g|gif)$/u.test(a)?0:6,mtime:F}]}return E(i)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{spawn as m}from"node:child_process";import{EXIT as s}from"@allyhub/protocol";import{RenderError as a}from"./errors.js";import{ffmpegOf as u,runFfmpegWith as
|
|
3
|
-
`)[0]??"";return/ffmpeg version (\S+)/.exec(e)?.[1]??e.trim()}export async function ffmpegVersion(
|
|
4
|
-
`)),e}export const ENCODERS={mp4:"libx264","mp4 --codec h265":"libx265",mov:"prores_ks",webm:"libvpx-vp9","webm sound":"libopus",gif:"gif",png:"png"};export async function ffmpegEncoders(
|
|
2
|
+
import{spawn as m}from"node:child_process";import{EXIT as s}from"@allyhub/protocol";import{VIDEO_TYPES as l}from"./encode.js";import{RenderError as a}from"./errors.js";import{ffmpegOf as u,runFfmpegWith as g}from"./tools.js";export function versionIn(t){const e=t.split(`
|
|
3
|
+
`)[0]??"";return/ffmpeg version (\S+)/.exec(e)?.[1]??e.trim()}export async function ffmpegVersion(t){try{const{out:e}=await g(t,["-version"],void 0,!0);return versionIn(e.toString())}catch{return"unknown"}}export const FFMPEG_PINNED="9.0.2",FFMPEG_MINIMUM="6.0";export function ffmpegRelease(t){const e=/^n?(\d+)\.(\d+)(?:\.(\d+))?/.exec(t);if(e)return[Number(e[1]),Number(e[2]),Number(e[3]??0)]}export function compareReleases(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}export function judgeFfmpeg(t,e){const n=ffmpegRelease(e),o=r=>ffmpegRelease(r)??[0,0,0];return{path:t,version:e,...n?{release:n}:{},old:n!==void 0&&compareReleases(n,o(FFMPEG_MINIMUM))<0,pinned:n!==void 0&&compareReleases(n,o(FFMPEG_PINNED))===0}}function f(){switch(process.platform){case"darwin":return"brew install ffmpeg";case"win32":return"winget install --id Gyan.FFmpeg -e";default:return`sudo apt install ffmpeg where the system's is ${FFMPEG_MINIMUM} or newer (Ubuntu 24.04's is 6.1 and Debian 13's 7.1; Debian 12's 5.1 is too old), or your system's package manager`}}const d=`the static builds of ${FFMPEG_PINNED} AllyHub pins, from https://ffmpeg.martin-riedl.de (for macOS and Linux; Linux's need glibc 2.35 or newer)`;export function ffmpegHint(t){return t?`Install a newer one: ${f()}; or ${d}. Then set ALLYHUB_FFMPEG (and ALLYHUB_FFPROBE) to it, unless it is the one on the PATH.`:`For the same frames, use ${d}: set ALLYHUB_FFMPEG and ALLYHUB_FFPROBE to them.`}export async function findFfmpeg(t){const e=await new Promise(n=>{const o=m(t,["-version"],{stdio:["ignore","pipe","ignore"]});let r="";o.stdout.on("data",i=>r+=i.toString()),o.on("error",()=>{n(void 0)}),o.on("close",i=>{n(i===0?r:void 0)})});if(e!==void 0)return judgeFfmpeg(t,versionIn(e))}const p=new Set;export async function requireFfmpeg(t={}){let e;try{e=await u(t)}catch(r){throw new a("no-ffmpeg",`Rendering video needs ffmpeg, and the pinned build could not be had: ${r instanceof Error?r.message:String(r)}`,{exit:s.platform,hint:`Install it: ${f()}; or ${d}, and set ALLYHUB_FFMPEG (and ALLYHUB_FFPROBE) to them.`})}const n=await findFfmpeg(e);if(!n)throw new a("no-ffmpeg",`The ffmpeg named (${e}) does not run.`,{exit:s.platform,hint:`Install it: ${f()}; or ${d}, and set ALLYHUB_FFMPEG (and ALLYHUB_FFPROBE) to them.`});if(n.old)throw new a("old-ffmpeg",`This ffmpeg is ${n.version} (${e}), and AllyHub needs ${FFMPEG_MINIMUM} or newer: an older one lacks options it uses (ebur128's framelog=quiet came in 6.0).`,{exit:s.platform,hint:ffmpegHint(!0)});const o=`${e}|${n.version}`;return!n.pinned&&!p.has(o)&&(p.add(o),process.stderr.write(`Note: ffmpeg ${n.version} (${e}) is ${n.release?"not":"a build of no release, not"} ${FFMPEG_PINNED}, the release AllyHub is made and tested with: its frames may differ from the frame regression's baselines and from another computer's. ${ffmpegHint(!1)}
|
|
4
|
+
`)),e}export const ENCODERS={mp4:"libx264","mp4 --codec h265":"libx265",mov:"prores_ks",webm:"libvpx-vp9","webm sound":"libopus",gif:"gif",png:"png"};export async function ffmpegEncoders(t){const e=await new Promise(o=>{const r=m(t,["-hide_banner","-encoders"],{stdio:["ignore","pipe","ignore"]});let i="";r.stdout.on("data",c=>i+=c.toString()),r.on("error",()=>{o("")}),r.on("close",()=>{o(i)})}),n=new Set;for(const o of Object.values(ENCODERS))new RegExp(`^\\s*\\S+\\s+${o}\\s`,"m").test(e)&&n.add(o);return n}export async function requireEncoder(t,e,n={}){const o=t==="mp4"&&e==="h265"?"mp4 --codec h265":t,r=ENCODERS[o];if(!r)return;const i=await ffmpegEncoders(await u(n));if(!(i.size===0||i.has(r)))throw new a("no-encoder",`This ffmpeg cannot encode ${o}: it has no ${r} encoder.`,{exit:s.platform,hint:`Install an ffmpeg built with ${r} (${f()} has it), or set ALLYHUB_FFMPEG to one.`})}export async function requireTools(t,e){if(t.some(n=>l.includes(n)||n==="wav")){await requireFfmpeg();for(const n of new Set(t))await requireEncoder(n,e)}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{spawn as St}from"node:child_process";import{stat as Mt}from"node:fs/promises";import{backdropMatrix as wt,blurStep as kt,edgeLevelsExpr as _t,firmLevelsExpr as zt,fpsRational as Et,intersect as ft,keyExpr as ct,matteEdge as Tt,placementAt as xt,simplifyKeys as jt,sourceAt as At,zoomChannel as gt}from"@allyhub/video-core";import{ffprobeOf as Ot}from"./tools.js";const Lt=/^(yuva|rgba|argb|bgra|abgr|gbrap|ya8|ya16|rgba64|bgra64)/,bt=new Map;export function shownOverlay(e,r,s){return`overlay=x='if(${s},${String(e)},W)':y='${String(r)}':eval=frame:format=auto`}export async function probeSource(e,r){const s=await Mt(e),o=`${e}:${String(s.size)}:${String(s.mtimeMs)}`;let i=bt.get(o);return i||(i=qt(e,await Ot({ffprobe:r})),bt.set(o,i)),i}async function qt(e,r){const s=await new Promise(o=>{const i=St(r,["-v","error","-select_streams","v:0","-show_entries","stream=codec_name,pix_fmt:stream_tags=alpha_mode","-of","json",e],{stdio:["ignore","pipe","ignore"]});let a="";i.stdout.on("data",g=>a+=g.toString()),i.on("error",()=>{o("")}),i.on("close",()=>{o(a)})});try{const o=JSON.parse(s).streams?.[0],i=o?.codec_name??"";return(o?.tags?.alpha_mode??o?.tags?.ALPHA_MODE)==="1"&&(i==="vp9"||i==="vp8")?{alpha:!0,decoder:i==="vp9"?"libvpx-vp9":"libvpx"}:{alpha:Lt.test(o?.pix_fmt??"")}}catch{return{alpha:!1}}}export const sec=e=>{const r=(Math.round(e*1e6)/1e6).toFixed(6);return r==="-0.000000"?"0.000000":r};export function ffmpegColor(e,r){const s=/^#([0-9a-f]{6})([0-9a-f]{2})?$/i.exec(e);if(!s?.[1])return r?"black@0":"black";const o=s[2]===void 0?1:parseInt(s[2],16)/255;return o>=1?`0x${s[1]}`:`0x${s[1]}@${o.toFixed(3)}`}const st=.1,mt=.001,Bt=.04,Pt=.1;export function linearExpr(e,r,s=0){const o=g=>{const y=(Math.round(g*1e6)/1e6).toFixed(6).replace(/\.?0+$/,"");return y==="-0"||y===""?"0":y},i=e[0];if(!i)return"0";if(e.every(g=>Math.abs(g.v-i.v)<1e-9))return o(i.v);const a=(g,y)=>{const _=e[g],u=e[y];if(!_||!u)return"0";if(y-g===1){const $=u.t-_.t;return $<=0||Math.abs(u.v-_.v)<1e-9?o(u.v):`(${o(_.v)}+${o(u.v-_.v)}*clip((${r}-${o(_.t-s)})/${o($)},0,1))`}const S=Math.floor((g+y)/2),z=e[S];return`if(lt(${r},${o((z?.t??0)-s)}),${a(g,S)},${a(S,y)})`};return e.length===1?o(i.v):a(0,e.length-1)}export function keyedGeometry(e,r){const{fps:s,width:o,height:i}=r,[,,a,g]=e.picture,y=Math.max(...(e.boxes??[]).map(P=>xt(e,P.t).picture[2]/a),1),_=Math.max(Math.min(y,2*o/a,2*i/g),Math.min(1,o/a,i/g)),u=Math.max(1,Math.round(a*_)),S=Math.max(1,Math.round(g*_)),z=[Math.max(o,u+2),Math.max(i,S+2)],$=Math.max(Math.round(e.start*s),r.first),D=Math.min(Math.round(e.end*s),r.first+r.frames),K=[];let J=[0,0,u,S];for(let P=$;P<=Math.max($,D);P++){const j=xt(e,P/s),[ot,it,$t,H]=j.picture,E=ft(j.picture,j.box)??[j.box[0],j.box[1],1,1],nt=u/$t,pt=S/H,et=(E[0]-ot)*nt,Q=(E[1]-it)*pt,rt=E[2]*nt,ht=E[3]*pt,G=rt/u,n=ht/S,l=E[2]/u,t=E[3]/S;P===$&&(J=[(j.box[0]-E[0])/E[2]*u,(j.box[1]-E[1])/E[3]*S,j.box[2]/E[2]*u,j.box[3]/E[3]*S]),K.push({t:P/s,v:[et+.5*G-.5,Q+.5*n-.5,et+(u-.5)*G-.5,Q+(S-.5)*n-.5,E[0]-.5*l-.5,E[1]-.5*t-.5,E[0]+(z[0]-1.5)*l-.5,E[1]+(z[1]-1.5)*t-.5]})}const V=jt(K,Pt),q=P=>linearExpr(V.map(j=>({t:j.t,v:j.v[P]??0})),r.tv,r.first/s);return{size:[u,S],canvas:z,cut:{x0:q(0),y0:q(1),x1:q(2),y1:q(3)},to:{x0:q(4),y0:q(5),x1:q(6),y1:q(7)},box:J}}export function layersIn(e,r,s){const o=e.fps;return(e.footage??[]).filter(i=>{const a=Math.round(i.start*o),g=Math.round(i.end*o);return g>a&&a<r+s&&g>r})}function yt(e,r,s,o){const i=Math.max(0,Math.round(e)),a=Math.max(0,Math.round(r));return[i,a,Math.max(1,Math.round(e+s)-i),Math.max(1,Math.round(r+o)-a)]}export function footagePlane(e){const{timeline:r,first:s,frames:o,sources:i}=e,a=r.fps,g=Et(a),{width:y,height:_}=r,u=s/a,S=.5/a,z=e.alpha&&r.background==="transparent",$=[`color=c=${ffmpegColor(r.background,z)}:s=${String(y)}x${String(_)}:r=${g.text}:d=${sec((o+1)/a)},format=${z?"gbrap":"gbrp"}[fp0]`],D=[0,0,y,_],K=`((in-1)*${String(g.den)}/${String(g.num)})`,J=new Map,V=[];for(const n of layersIn(r,s,o)){const l=i.get(n.file);if(!l)continue;const t=ft(n.picture,n.box),b=n.boxes?t:t&&ft(t,D);if(!b)continue;const c=Math.max(Math.round(n.start*a),s),d=Math.min(Math.round(n.end*a),s+o),A=(c-s)/a,h=(d-s)/a;let O,f,w,p;if(n.cuts&&n.cuts.length>1){const W=u+A,x=u+h;p=[],n.cuts.forEach((L,Z)=>{const N=n.cuts?.[Z+1]?.at??n.end,U=Math.max(L.at,W);Math.min(N,x)<=U||p?.push({at:L.at,from:L.from,to:L.from+(N-L.at)})}),O=At(n,W),f=Math.max(0,Math.min(...p.map(L=>L.from))-st),w=Math.max(...p.map(L=>L.to))+st,p.length<2&&(p=void 0)}else{const W=x=>n.from+(u+x-n.start)*n.speed;O=W(A),f=Math.max(0,O-st*n.speed),w=Math.max(W(h)+st*n.speed,f+st)}l.duration!==void 0&&(f=Math.min(f,Math.max(0,l.duration-1))),w=Math.max(w,f+st);const T=n.boxes&&n.boxes.length>1?keyedGeometry(n,{first:s,frames:o,fps:a,width:y,height:_,tv:K}):void 0,C={f:n,a:A,b:h,sa:O,lo:f,hi:w,visible:T?[0,0,T.size[0],T.size[1]]:b,...p?{pieces:p}:{},...T?{keyed:T}:{}};V.push(C);const Y=J.get(n.file)??[];Y.push(C),J.set(n.file,Y)}const q=[],P=new Map,j=[],ot=n=>Math.min(n.over??0,e.graphics?.length??0),it=n=>n.cutout===!0&&e.graphics?.[n.over??0]!==void 0,$t=new Set;let H=e.firstInput;const E=n=>`fl${String(V.indexOf(n))}`;for(const[n,l]of J){const t=i.get(n);if(!t)continue;const b=Math.min(...l.map(h=>h.lo)),c=Math.max(...l.map(h=>h.hi)),d=["-ss",sec(b),"-t",sec(c-b)];q.push(...t.info.decoder?["-c:v",t.info.decoder]:[],...d,"-i",t.path);const A=String(H);l.length===1&&l[0]?P.set(l[0],`${A}:v`):($.push(`[${A}:v]split=${String(l.length)}${l.map((h,O)=>`[s${A}_${String(O)}]`).join("")}`),l.forEach((h,O)=>P.set(h,`s${A}_${String(O)}`))),H++;for(const h of l){const O=P.get(h)??"",f=E(h),w=h.f.background;if(w&&t.matte){q.push(...d,"-i",t.matte);const p=String(H);H++;const T=w.image===void 0?void 0:i.get(w.image)?.path;let C;T!==void 0&&(q.push("-i",T),C=String(H),H++);const Y=it(h.f);pt(h,O,f,b,t,w,p,C,Y)||$t.add(h);continue}if(t.matte&&it(h.f)){q.push(...d,"-i",t.matte);const p=String(H);H++,$.push(...nt(h,O,`${f}a`,Q(h,b,t,!1)),`[${f}a]split=2[${f}][${f}p]`);const T=`scale=w=${String(t.width??y)}:h=${String(t.height??_)}:flags=bicubic`;$.push(...nt(h,`${p}:v`,`${f}m`,Q(h,b,t,!0),[T])),$.push(`[${f}p]format=gbrap[${f}q];[${f}q][${f}m]alphamerge[${f}c]`),j.push({label:`${f}c`,over:ot(h.f),...et(h)});continue}$.push(...nt(h,O,f,Q(h,b,t,!1)))}}function nt(n,l,t,b,c=[]){const d=[...c,...b.body];if(!dt(n.f))return[`[${l}]${[...d,...b.place].join(",")}[${t}]`];const A=`${t}k`,h=b.matte?"blend=all_mode=multiply":"alphamerge";return[`[${l}]${d.join(",")}[${t}b]`,`${vt(n.f,n.visible,g.text,a,n.keyed?.box)}[${A}]`,`[${t}b][${A}]${[h,...b.place].join(",")}[${t}]`]}function pt(n,l,t,b,c,d,A,h,O){const f=n.f,[,,w,p]=n.visible,T=Q(n,b,c,!1),C=Q(n,b,c,!0),Y=dt(f),W=F=>`${vt(f,n.visible,g.text,a,n.keyed?.box)}[${F}]`,x=(F,ut)=>`[${F}]${T.place.length>0?["format=gbrap",...T.place].join(","):"null"}[${ut}]`,L=d.color===void 0&&d.image===void 0,Z=L?d.blur??0:0,N=It(d),U=`r=${g.text}:d=${sec((o+1)/a)}`;$.push(`[${l}]${T.body.join(",")}${L?`,split=2[${t}p][${t}s]`:`[${t}p]`}`);const m=c.matteSize?.width??c.width??f.picture[2],v=f.crop?f.crop[2]:c.width??m,M=f.picture[2]/v,k=Tt(d.feather,d.shrink,M*((c.width??m)/m)),B=M>=1&&k.sigma/M>=.5,R=`lut=c0='${zt()}'`,tt=[`scale=w=${String(c.width??y)}:h=${String(c.height??_)}:flags=bicubic`,...B?[R,`gblur=sigma=${I(k.sigma/M)}`]:[],...C.body,...B?[]:[R],...!B&&k.sigma>0?[`gblur=sigma=${I(k.sigma)}`]:[]];$.push(`[${A}:v]${tt.join(",")}${Z>0?`,split=2[${t}e][${t}f]`:`[${t}e]`}`);const at=`lut=c0='${_t(k)}'`;Y?$.push(W(`${t}k`),`[${t}e]${at}[${t}d]`,`[${t}d][${t}k]blend=all_mode=multiply[${t}a]`):$.push(`[${t}e]${at}[${t}a]`),$.push(`[${t}p]format=gbrap[${t}q]`,`[${t}q][${t}a]alphamerge[${t}n]`);let X;if(L&&Z>0){const F=kt(Z),ut=F>1?[`scale=w=${String(Math.max(1,Math.round(w/F)))}:h=${String(Math.max(1,Math.round(p/F)))}:flags=area`]:[];$.push(`[${t}f]${["lut=c0='max(1,255-clip(val*4,0,255))'",...ut].join(",")}[${t}w]`,`[${t}s]${[...ut,"format=gbrap"].join(",")}[${t}t]`,`[${t}t][${t}w]${["alphamerge","format=gbrap16le","premultiply=inplace=1",`gblur=sigma=${I(Z/F)}`,"unpremultiply=inplace=1","format=gbrp",...N?[N]:[],...F>1?[`scale=w=${String(w)}:h=${String(p)}:flags=bicubic`]:[]].join(",")}[${t}g]`),X=`${t}g`}else if(L)$.push(`[${t}s]${N??"null"}[${t}g]`),X=`${t}g`;else if(d.image!==void 0&&h!==void 0)$.push(`[${h}:v]${[`scale=w=${String(w)}:h=${String(p)}:force_original_aspect_ratio=increase:flags=lanczos`,`crop=w=${String(w)}:h=${String(p)}`,"format=gbrp",...d.blur?[`gblur=sigma=${I(d.blur)}`]:[],...N?[N]:[],"setpts=PTS-1000/TB"].join(",")}[${t}i]`,`color=c=black:s=${String(w)}x${String(p)}:${U},format=gbrp[${t}c]`,`[${t}c][${t}i]overlay=format=auto[${t}g]`),X=`${t}g`;else if(d.color!==void 0&&d.color!=="transparent"){const F=ffmpegColor(d.color,!0);$.push(`color=c=${F}:s=${String(w)}x${String(p)}:${U},format=${F.includes("@")?"gbrap":"gbrp"}[${t}g]`),X=`${t}g`}return X!==void 0&&Y&&($.push(W(`${t}m`),`[${X}]format=gbrap[${t}h]`,`[${t}h][${t}m]alphamerge[${t}o]`),X=`${t}o`),O?($.push(x(`${t}n`,`${t}x`)),j.push({label:`${t}x`,over:ot(f),...et(n)}),X===void 0?!1:($.push(x(X,t)),!0)):X===void 0?($.push(x(`${t}n`,t)),!0):($.push(`[${X}][${t}n]overlay=format=auto[${t}l]`,x(`${t}l`,t)),!0)}function et(n){return{x:n.f.boxes?0:n.visible[0],y:n.f.boxes?0:n.visible[1],enable:`between(t,${sec(n.a-S)},${sec(n.b-S)})`}}function Q(n,l,t,b){const{f:c,a:d,sa:A,lo:h,hi:O,visible:f}=n,w=c.speed,p=[`trim=start=${sec(h-l)}:end=${sec(O-l)}`];if(n.pieces){const m=`(${sec(l)}+T)`,v=n.pieces.map(k=>`gte(${sec(l)}+t,${sec(k.from-Bt)})*lt(${sec(l)}+t,${sec(k.to)})`).join("+");p.push(`select='${v}'`);let M=sec(0);for(let k=n.pieces.length-1;k>=0;k--){const B=n.pieces[k];if(!B)continue;const R=B.at-u-mt,tt=`max(${sec(R)},${sec(R-B.from)}+${m})`;M=k===n.pieces.length-1?tt:`if(lt(${m},${sec(B.to)}),${tt},${M})`}p.push(`setpts='(${M})/TB'`)}else{const m=d+(l-A)/w-mt,v=`(${sec(m)}+PTS*TB${w===1?"":`/${String(w)}`})/TB`,M=A<0?`if(eq(N,0),${sec(d-mt)}/TB,${v})`:v;p.push(`setpts='${M}'`)}const[T,C,Y,W]=c.picture,x=f;if(n.keyed){if(c.crop){const[m,v,M,k]=yt(...c.crop);p.push(`crop=w=${String(M)}:h=${String(k)}:x=${String(m)}:y=${String(v)}:exact=1`)}p.push(lt(x[2],x[3]))}else if(c.crop&&c.pan&&c.pan.length>1){const m=c.pan.map(M=>({t:M.t,v:M.x})),v=c.pan.map(M=>({t:M.t,v:M.y}));p.push(`crop=w=${String(Math.round(c.crop[2]))}:h=${String(Math.round(c.crop[3]))}:x='${ct(m,"t",u)}':y='${ct(v,"t",u)}':exact=1`),p.push(lt(x[2],x[3]))}else if(c.crop){const m=c.crop[2]/Y,v=c.crop[3]/W,[M,k,B,R]=yt(c.crop[0]+(x[0]-T)*m,c.crop[1]+(x[1]-C)*v,x[2]*m,x[3]*v);p.push(`crop=w=${String(B)}:h=${String(R)}:x=${String(M)}:y=${String(k)}:exact=1`),p.push(lt(x[2],x[3]))}else p.push(lt(Y,W)),(x[0]!==T||x[1]!==C||x[2]!==Y||x[3]!==W)&&p.push(`crop=w=${String(x[2])}:h=${String(x[3])}:x=${String(x[0]-T)}:y=${String(x[1]-C)}`);!b&&c.sharpen&&p.push(`unsharp=5:5:${(c.sharpen*1.5).toFixed(3)}:5:5:0`);const L=b?"gray":t.info.alpha||c.boxes||dt(c)?"gbrap":"gbrp";if(p.push(`format=${L}`),((c.zoom?.length??0)>0||(c.boxes?.length??0)>1)&&p.push(`fps=${g.text}:start_time=0:round=down`),c.zoom&&c.zoom.length>0){const m=ct(gt(c.zoom,"z"),K,u),v=ct(gt(c.zoom,"cx"),K,u),M=ct(gt(c.zoom,"cy"),K,u),k=`(1-1/(${m}))`,B=`(${v})*W*${k}`,R=`(${M})*H*${k}`,tt=`(${B}+W/(${m}))`,at=`(${R}+H/(${m}))`;p.push(`perspective=x0='${B}':y0='${R}':x1='${tt}':y1='${R}':x2='${B}':y2='${at}':x3='${tt}':y3='${at}':interpolation=cubic:eval=frame:enable='${Wt(c.zoom,u)}'`)}const N=[],U=n.keyed;if(U){const{cut:m,to:v}=U;p.push(`perspective=x0='${m.x0}':y0='${m.y0}':x1='${m.x1}':y1='${m.y0}':x2='${m.x0}':y2='${m.y1}':x3='${m.x1}':y3='${m.y1}':interpolation=cubic:eval=frame`),N.push(`pad=w=${String(U.canvas[0])}:h=${String(U.canvas[1])}:x=1:y=1:color=black@0`,`perspective=x0='${v.x0}':y0='${v.y0}':x1='${v.x1}':y1='${v.y0}':x2='${v.x0}':y2='${v.y1}':x3='${v.x1}':y3='${v.y1}':sense=destination:interpolation=cubic:eval=frame`)}return{body:p,place:N,matte:b}}const rt=e.graphics??[],ht=rt.reduce((n,l,t)=>l===void 0?n:t,-1);let G="fp0";for(let n=0;n<=rt.length;n++){V.forEach((t,b)=>{if($t.has(t)||ot(t.f)!==n)return;const c=`fp${String(b+1)}`,d=et(t);$.push(`[${G}][fl${String(b)}]${shownOverlay(d.x,d.y,d.enable)}[${c}]`),G=c});const l=rt[n];if(l!==void 0){const t=n===ht?"cp":`cg${String(n)}`;$.push(`[${G}][${l}]overlay=format=auto[${t}]`),G=t}j.forEach((t,b)=>{if(t.over!==n)return;const c=`co${String(b)}`;$.push(`[${G}][${t.label}]${shownOverlay(t.x,t.y,t.enable)}[${c}]`),G=c})}return{inputs:q,filters:$,out:G,count:H-e.firstInput,layers:V.map(n=>n.f),cutouts:j.map(n=>({label:n.label,over:n.over}))}}const I=e=>String(Math.round(e*1e4)/1e4);function It(e){if(!e.dim&&!e.desaturate)return;const[r,s,o]=wt(e.desaturate??0,e.dim??0);return`colorchannelmixer=rr=${I(r[0])}:rg=${I(r[1])}:rb=${I(r[2])}:gr=${I(s[0])}:gg=${I(s[1])}:gb=${I(s[2])}:br=${I(o[0])}:bg=${I(o[1])}:bb=${I(o[2])}`}export function insetEllipse(e,r){const s=e.boxes?.[0]?.box??e.box;return{cx:s[0]+s[2]/2-r[0],cy:s[1]+s[3]/2-r[1],rx:s[2]/2,ry:s[3]/2}}const dt=e=>e.shape==="circle"||(e.radius??0)>0;export function roundedBox(e,r){const{cx:s,cy:o,rx:i,ry:a}=insetEllipse(e,r);return{cx:s,cy:o,hw:i,hh:a,r:Math.min(e.radius??0,i,a)}}function vt(e,r,s,o,i){const a=u=>String(Math.round(u*1e3)/1e3),g=e.boxes?.[0]?.box??e.box,y=i?(()=>{const[u,S,z,$]=i,D=Math.min((e.radius??0)*z/g[2],z/2,$/2);return{cx:u+z/2,cy:S+$/2,rx:z/2,ry:$/2,r:D}})():void 0;let _;if(e.shape==="circle"){const{cx:u,cy:S,rx:z,ry:$}=y??insetEllipse(e,r);_=`255*clip((1-${`hypot((X+0.5-${a(u)})/${a(z)},(Y+0.5-${a(S)})/${a($)})`})*${a(Math.min(z,$))}+0.5,0,1)`}else{const{cx:u,cy:S,hw:z,hh:$,r:D}=y?{...y,hw:y.rx,hh:y.ry}:roundedBox(e,r),K=`(abs(X+0.5-${a(u)})-${a(z-D)})`,J=`(abs(Y+0.5-${a(S)})-${a($-D)})`;_=`255*clip(0.5-${`(hypot(max(${K},0),max(${J},0))+min(max(${K},${J}),0)-${a(D)})`},0,1)`}return`color=c=black:s=${String(r[2])}x${String(r[3])}:r=${s}:d=${sec(1/o)},format=gray,geq=lum='${_}',setpts=PTS-1000/TB`}function Wt(e,r){const s=[];let o;return e.forEach((i,a)=>{const g=e[a+1],y=i.z!==1||g!==void 0&&g.z!==1;y&&o===void 0&&(o=i.t),!y&&o!==void 0&&(s.push([o,i.t]),o=void 0)}),o!==void 0&&s.push([o,1/0]),s.length===0?"0":s.map(([i,a])=>a===1/0?`gte(t,${sec(i-r-.05)})`:`between(t,${sec(i-r-.05)},${sec(a-r+.05)})`).join("+")}function lt(e,r){return`scale=w=${String(e)}:h=${String(r)}:flags=lanczos`}
|
|
2
|
+
import{spawn as St}from"node:child_process";import{stat as Mt}from"node:fs/promises";import{fpsRational as wt}from"@allyhub/piece";import{backdropMatrix as kt,blurStep as _t,edgeLevelsExpr as zt,firmLevelsExpr as Et,intersect as ft,keyExpr as ct,matteEdge as Tt,placementAt as xt,simplifyKeys as jt,sourceAt as At,zoomChannel as gt}from"@allyhub/video-core";import{ffprobeOf as Ot}from"./tools.js";const Lt=/^(yuva|rgba|argb|bgra|abgr|gbrap|ya8|ya16|rgba64|bgra64)/,bt=new Map;export function shownOverlay(e,r,s){return`overlay=x='if(${s},${String(e)},W)':y='${String(r)}':eval=frame:format=auto`}export async function probeSource(e,r){const s=await Mt(e),o=`${e}:${String(s.size)}:${String(s.mtimeMs)}`;let i=bt.get(o);return i||(i=qt(e,await Ot({ffprobe:r})),bt.set(o,i)),i}async function qt(e,r){const s=await new Promise(o=>{const i=St(r,["-v","error","-select_streams","v:0","-show_entries","stream=codec_name,pix_fmt:stream_tags=alpha_mode","-of","json",e],{stdio:["ignore","pipe","ignore"]});let a="";i.stdout.on("data",g=>a+=g.toString()),i.on("error",()=>{o("")}),i.on("close",()=>{o(a)})});try{const o=JSON.parse(s).streams?.[0],i=o?.codec_name??"";return(o?.tags?.alpha_mode??o?.tags?.ALPHA_MODE)==="1"&&(i==="vp9"||i==="vp8")?{alpha:!0,decoder:i==="vp9"?"libvpx-vp9":"libvpx"}:{alpha:Lt.test(o?.pix_fmt??"")}}catch{return{alpha:!1}}}export const sec=e=>{const r=(Math.round(e*1e6)/1e6).toFixed(6);return r==="-0.000000"?"0.000000":r};export function ffmpegColor(e,r){const s=/^#([0-9a-f]{6})([0-9a-f]{2})?$/i.exec(e);if(!s?.[1])return r?"black@0":"black";const o=s[2]===void 0?1:parseInt(s[2],16)/255;return o>=1?`0x${s[1]}`:`0x${s[1]}@${o.toFixed(3)}`}const st=.1,mt=.001,Bt=.04,Pt=.1;export function linearExpr(e,r,s=0){const o=g=>{const y=(Math.round(g*1e6)/1e6).toFixed(6).replace(/\.?0+$/,"");return y==="-0"||y===""?"0":y},i=e[0];if(!i)return"0";if(e.every(g=>Math.abs(g.v-i.v)<1e-9))return o(i.v);const a=(g,y)=>{const _=e[g],u=e[y];if(!_||!u)return"0";if(y-g===1){const $=u.t-_.t;return $<=0||Math.abs(u.v-_.v)<1e-9?o(u.v):`(${o(_.v)}+${o(u.v-_.v)}*clip((${r}-${o(_.t-s)})/${o($)},0,1))`}const S=Math.floor((g+y)/2),z=e[S];return`if(lt(${r},${o((z?.t??0)-s)}),${a(g,S)},${a(S,y)})`};return e.length===1?o(i.v):a(0,e.length-1)}export function keyedGeometry(e,r){const{fps:s,width:o,height:i}=r,[,,a,g]=e.picture,y=Math.max(...(e.boxes??[]).map(P=>xt(e,P.t).picture[2]/a),1),_=Math.max(Math.min(y,2*o/a,2*i/g),Math.min(1,o/a,i/g)),u=Math.max(1,Math.round(a*_)),S=Math.max(1,Math.round(g*_)),z=[Math.max(o,u+2),Math.max(i,S+2)],$=Math.max(Math.round(e.start*s),r.first),D=Math.min(Math.round(e.end*s),r.first+r.frames),K=[];let J=[0,0,u,S];for(let P=$;P<=Math.max($,D);P++){const j=xt(e,P/s),[ot,it,$t,H]=j.picture,E=ft(j.picture,j.box)??[j.box[0],j.box[1],1,1],nt=u/$t,pt=S/H,et=(E[0]-ot)*nt,Q=(E[1]-it)*pt,rt=E[2]*nt,ht=E[3]*pt,G=rt/u,n=ht/S,l=E[2]/u,t=E[3]/S;P===$&&(J=[(j.box[0]-E[0])/E[2]*u,(j.box[1]-E[1])/E[3]*S,j.box[2]/E[2]*u,j.box[3]/E[3]*S]),K.push({t:P/s,v:[et+.5*G-.5,Q+.5*n-.5,et+(u-.5)*G-.5,Q+(S-.5)*n-.5,E[0]-.5*l-.5,E[1]-.5*t-.5,E[0]+(z[0]-1.5)*l-.5,E[1]+(z[1]-1.5)*t-.5]})}const V=jt(K,Pt),q=P=>linearExpr(V.map(j=>({t:j.t,v:j.v[P]??0})),r.tv,r.first/s);return{size:[u,S],canvas:z,cut:{x0:q(0),y0:q(1),x1:q(2),y1:q(3)},to:{x0:q(4),y0:q(5),x1:q(6),y1:q(7)},box:J}}export function layersIn(e,r,s){const o=e.fps;return(e.footage??[]).filter(i=>{const a=Math.round(i.start*o),g=Math.round(i.end*o);return g>a&&a<r+s&&g>r})}function yt(e,r,s,o){const i=Math.max(0,Math.round(e)),a=Math.max(0,Math.round(r));return[i,a,Math.max(1,Math.round(e+s)-i),Math.max(1,Math.round(r+o)-a)]}export function footagePlane(e){const{timeline:r,first:s,frames:o,sources:i}=e,a=r.fps,g=wt(a),{width:y,height:_}=r,u=s/a,S=.5/a,z=e.alpha&&r.background==="transparent",$=[`color=c=${ffmpegColor(r.background,z)}:s=${String(y)}x${String(_)}:r=${g.text}:d=${sec((o+1)/a)},format=${z?"gbrap":"gbrp"}[fp0]`],D=[0,0,y,_],K=`((in-1)*${String(g.den)}/${String(g.num)})`,J=new Map,V=[];for(const n of layersIn(r,s,o)){const l=i.get(n.file);if(!l)continue;const t=ft(n.picture,n.box),b=n.boxes?t:t&&ft(t,D);if(!b)continue;const c=Math.max(Math.round(n.start*a),s),d=Math.min(Math.round(n.end*a),s+o),A=(c-s)/a,h=(d-s)/a;let O,f,w,p;if(n.cuts&&n.cuts.length>1){const W=u+A,x=u+h;p=[],n.cuts.forEach((L,Z)=>{const N=n.cuts?.[Z+1]?.at??n.end,U=Math.max(L.at,W);Math.min(N,x)<=U||p?.push({at:L.at,from:L.from,to:L.from+(N-L.at)})}),O=At(n,W),f=Math.max(0,Math.min(...p.map(L=>L.from))-st),w=Math.max(...p.map(L=>L.to))+st,p.length<2&&(p=void 0)}else{const W=x=>n.from+(u+x-n.start)*n.speed;O=W(A),f=Math.max(0,O-st*n.speed),w=Math.max(W(h)+st*n.speed,f+st)}l.duration!==void 0&&(f=Math.min(f,Math.max(0,l.duration-1))),w=Math.max(w,f+st);const T=n.boxes&&n.boxes.length>1?keyedGeometry(n,{first:s,frames:o,fps:a,width:y,height:_,tv:K}):void 0,C={f:n,a:A,b:h,sa:O,lo:f,hi:w,visible:T?[0,0,T.size[0],T.size[1]]:b,...p?{pieces:p}:{},...T?{keyed:T}:{}};V.push(C);const Y=J.get(n.file)??[];Y.push(C),J.set(n.file,Y)}const q=[],P=new Map,j=[],ot=n=>Math.min(n.over??0,e.graphics?.length??0),it=n=>n.cutout===!0&&e.graphics?.[n.over??0]!==void 0,$t=new Set;let H=e.firstInput;const E=n=>`fl${String(V.indexOf(n))}`;for(const[n,l]of J){const t=i.get(n);if(!t)continue;const b=Math.min(...l.map(h=>h.lo)),c=Math.max(...l.map(h=>h.hi)),d=["-ss",sec(b),"-t",sec(c-b)];q.push(...t.info.decoder?["-c:v",t.info.decoder]:[],...d,"-i",t.path);const A=String(H);l.length===1&&l[0]?P.set(l[0],`${A}:v`):($.push(`[${A}:v]split=${String(l.length)}${l.map((h,O)=>`[s${A}_${String(O)}]`).join("")}`),l.forEach((h,O)=>P.set(h,`s${A}_${String(O)}`))),H++;for(const h of l){const O=P.get(h)??"",f=E(h),w=h.f.background;if(w&&t.matte){q.push(...d,"-i",t.matte);const p=String(H);H++;const T=w.image===void 0?void 0:i.get(w.image)?.path;let C;T!==void 0&&(q.push("-i",T),C=String(H),H++);const Y=it(h.f);pt(h,O,f,b,t,w,p,C,Y)||$t.add(h);continue}if(t.matte&&it(h.f)){q.push(...d,"-i",t.matte);const p=String(H);H++,$.push(...nt(h,O,`${f}a`,Q(h,b,t,!1)),`[${f}a]split=2[${f}][${f}p]`);const T=`scale=w=${String(t.width??y)}:h=${String(t.height??_)}:flags=bicubic`;$.push(...nt(h,`${p}:v`,`${f}m`,Q(h,b,t,!0),[T])),$.push(`[${f}p]format=gbrap[${f}q];[${f}q][${f}m]alphamerge[${f}c]`),j.push({label:`${f}c`,over:ot(h.f),...et(h)});continue}$.push(...nt(h,O,f,Q(h,b,t,!1)))}}function nt(n,l,t,b,c=[]){const d=[...c,...b.body];if(!dt(n.f))return[`[${l}]${[...d,...b.place].join(",")}[${t}]`];const A=`${t}k`,h=b.matte?"blend=all_mode=multiply":"alphamerge";return[`[${l}]${d.join(",")}[${t}b]`,`${vt(n.f,n.visible,g.text,a,n.keyed?.box)}[${A}]`,`[${t}b][${A}]${[h,...b.place].join(",")}[${t}]`]}function pt(n,l,t,b,c,d,A,h,O){const f=n.f,[,,w,p]=n.visible,T=Q(n,b,c,!1),C=Q(n,b,c,!0),Y=dt(f),W=F=>`${vt(f,n.visible,g.text,a,n.keyed?.box)}[${F}]`,x=(F,ut)=>`[${F}]${T.place.length>0?["format=gbrap",...T.place].join(","):"null"}[${ut}]`,L=d.color===void 0&&d.image===void 0,Z=L?d.blur??0:0,N=It(d),U=`r=${g.text}:d=${sec((o+1)/a)}`;$.push(`[${l}]${T.body.join(",")}${L?`,split=2[${t}p][${t}s]`:`[${t}p]`}`);const m=c.matteSize?.width??c.width??f.picture[2],v=f.crop?f.crop[2]:c.width??m,M=f.picture[2]/v,k=Tt(d.feather,d.shrink,M*((c.width??m)/m)),B=M>=1&&k.sigma/M>=.5,R=`lut=c0='${Et()}'`,tt=[`scale=w=${String(c.width??y)}:h=${String(c.height??_)}:flags=bicubic`,...B?[R,`gblur=sigma=${I(k.sigma/M)}`]:[],...C.body,...B?[]:[R],...!B&&k.sigma>0?[`gblur=sigma=${I(k.sigma)}`]:[]];$.push(`[${A}:v]${tt.join(",")}${Z>0?`,split=2[${t}e][${t}f]`:`[${t}e]`}`);const at=`lut=c0='${zt(k)}'`;Y?$.push(W(`${t}k`),`[${t}e]${at}[${t}d]`,`[${t}d][${t}k]blend=all_mode=multiply[${t}a]`):$.push(`[${t}e]${at}[${t}a]`),$.push(`[${t}p]format=gbrap[${t}q]`,`[${t}q][${t}a]alphamerge[${t}n]`);let X;if(L&&Z>0){const F=_t(Z),ut=F>1?[`scale=w=${String(Math.max(1,Math.round(w/F)))}:h=${String(Math.max(1,Math.round(p/F)))}:flags=area`]:[];$.push(`[${t}f]${["lut=c0='max(1,255-clip(val*4,0,255))'",...ut].join(",")}[${t}w]`,`[${t}s]${[...ut,"format=gbrap"].join(",")}[${t}t]`,`[${t}t][${t}w]${["alphamerge","format=gbrap16le","premultiply=inplace=1",`gblur=sigma=${I(Z/F)}`,"unpremultiply=inplace=1","format=gbrp",...N?[N]:[],...F>1?[`scale=w=${String(w)}:h=${String(p)}:flags=bicubic`]:[]].join(",")}[${t}g]`),X=`${t}g`}else if(L)$.push(`[${t}s]${N??"null"}[${t}g]`),X=`${t}g`;else if(d.image!==void 0&&h!==void 0)$.push(`[${h}:v]${[`scale=w=${String(w)}:h=${String(p)}:force_original_aspect_ratio=increase:flags=lanczos`,`crop=w=${String(w)}:h=${String(p)}`,"format=gbrp",...d.blur?[`gblur=sigma=${I(d.blur)}`]:[],...N?[N]:[],"setpts=PTS-1000/TB"].join(",")}[${t}i]`,`color=c=black:s=${String(w)}x${String(p)}:${U},format=gbrp[${t}c]`,`[${t}c][${t}i]overlay=format=auto[${t}g]`),X=`${t}g`;else if(d.color!==void 0&&d.color!=="transparent"){const F=ffmpegColor(d.color,!0);$.push(`color=c=${F}:s=${String(w)}x${String(p)}:${U},format=${F.includes("@")?"gbrap":"gbrp"}[${t}g]`),X=`${t}g`}return X!==void 0&&Y&&($.push(W(`${t}m`),`[${X}]format=gbrap[${t}h]`,`[${t}h][${t}m]alphamerge[${t}o]`),X=`${t}o`),O?($.push(x(`${t}n`,`${t}x`)),j.push({label:`${t}x`,over:ot(f),...et(n)}),X===void 0?!1:($.push(x(X,t)),!0)):X===void 0?($.push(x(`${t}n`,t)),!0):($.push(`[${X}][${t}n]overlay=format=auto[${t}l]`,x(`${t}l`,t)),!0)}function et(n){return{x:n.f.boxes?0:n.visible[0],y:n.f.boxes?0:n.visible[1],enable:`between(t,${sec(n.a-S)},${sec(n.b-S)})`}}function Q(n,l,t,b){const{f:c,a:d,sa:A,lo:h,hi:O,visible:f}=n,w=c.speed,p=[`trim=start=${sec(h-l)}:end=${sec(O-l)}`];if(n.pieces){const m=`(${sec(l)}+T)`,v=n.pieces.map(k=>`gte(${sec(l)}+t,${sec(k.from-Bt)})*lt(${sec(l)}+t,${sec(k.to)})`).join("+");p.push(`select='${v}'`);let M=sec(0);for(let k=n.pieces.length-1;k>=0;k--){const B=n.pieces[k];if(!B)continue;const R=B.at-u-mt,tt=`max(${sec(R)},${sec(R-B.from)}+${m})`;M=k===n.pieces.length-1?tt:`if(lt(${m},${sec(B.to)}),${tt},${M})`}p.push(`setpts='(${M})/TB'`)}else{const m=d+(l-A)/w-mt,v=`(${sec(m)}+PTS*TB${w===1?"":`/${String(w)}`})/TB`,M=A<0?`if(eq(N,0),${sec(d-mt)}/TB,${v})`:v;p.push(`setpts='${M}'`)}const[T,C,Y,W]=c.picture,x=f;if(n.keyed){if(c.crop){const[m,v,M,k]=yt(...c.crop);p.push(`crop=w=${String(M)}:h=${String(k)}:x=${String(m)}:y=${String(v)}:exact=1`)}p.push(lt(x[2],x[3]))}else if(c.crop&&c.pan&&c.pan.length>1){const m=c.pan.map(M=>({t:M.t,v:M.x})),v=c.pan.map(M=>({t:M.t,v:M.y}));p.push(`crop=w=${String(Math.round(c.crop[2]))}:h=${String(Math.round(c.crop[3]))}:x='${ct(m,"t",u)}':y='${ct(v,"t",u)}':exact=1`),p.push(lt(x[2],x[3]))}else if(c.crop){const m=c.crop[2]/Y,v=c.crop[3]/W,[M,k,B,R]=yt(c.crop[0]+(x[0]-T)*m,c.crop[1]+(x[1]-C)*v,x[2]*m,x[3]*v);p.push(`crop=w=${String(B)}:h=${String(R)}:x=${String(M)}:y=${String(k)}:exact=1`),p.push(lt(x[2],x[3]))}else p.push(lt(Y,W)),(x[0]!==T||x[1]!==C||x[2]!==Y||x[3]!==W)&&p.push(`crop=w=${String(x[2])}:h=${String(x[3])}:x=${String(x[0]-T)}:y=${String(x[1]-C)}`);!b&&c.sharpen&&p.push(`unsharp=5:5:${(c.sharpen*1.5).toFixed(3)}:5:5:0`);const L=b?"gray":t.info.alpha||c.boxes||dt(c)?"gbrap":"gbrp";if(p.push(`format=${L}`),((c.zoom?.length??0)>0||(c.boxes?.length??0)>1)&&p.push(`fps=${g.text}:start_time=0:round=down`),c.zoom&&c.zoom.length>0){const m=ct(gt(c.zoom,"z"),K,u),v=ct(gt(c.zoom,"cx"),K,u),M=ct(gt(c.zoom,"cy"),K,u),k=`(1-1/(${m}))`,B=`(${v})*W*${k}`,R=`(${M})*H*${k}`,tt=`(${B}+W/(${m}))`,at=`(${R}+H/(${m}))`;p.push(`perspective=x0='${B}':y0='${R}':x1='${tt}':y1='${R}':x2='${B}':y2='${at}':x3='${tt}':y3='${at}':interpolation=cubic:eval=frame:enable='${Wt(c.zoom,u)}'`)}const N=[],U=n.keyed;if(U){const{cut:m,to:v}=U;p.push(`perspective=x0='${m.x0}':y0='${m.y0}':x1='${m.x1}':y1='${m.y0}':x2='${m.x0}':y2='${m.y1}':x3='${m.x1}':y3='${m.y1}':interpolation=cubic:eval=frame`),N.push(`pad=w=${String(U.canvas[0])}:h=${String(U.canvas[1])}:x=1:y=1:color=black@0`,`perspective=x0='${v.x0}':y0='${v.y0}':x1='${v.x1}':y1='${v.y0}':x2='${v.x0}':y2='${v.y1}':x3='${v.x1}':y3='${v.y1}':sense=destination:interpolation=cubic:eval=frame`)}return{body:p,place:N,matte:b}}const rt=e.graphics??[],ht=rt.reduce((n,l,t)=>l===void 0?n:t,-1);let G="fp0";for(let n=0;n<=rt.length;n++){V.forEach((t,b)=>{if($t.has(t)||ot(t.f)!==n)return;const c=`fp${String(b+1)}`,d=et(t);$.push(`[${G}][fl${String(b)}]${shownOverlay(d.x,d.y,d.enable)}[${c}]`),G=c});const l=rt[n];if(l!==void 0){const t=n===ht?"cp":`cg${String(n)}`;$.push(`[${G}][${l}]overlay=format=auto[${t}]`),G=t}j.forEach((t,b)=>{if(t.over!==n)return;const c=`co${String(b)}`;$.push(`[${G}][${t.label}]${shownOverlay(t.x,t.y,t.enable)}[${c}]`),G=c})}return{inputs:q,filters:$,out:G,count:H-e.firstInput,layers:V.map(n=>n.f),cutouts:j.map(n=>({label:n.label,over:n.over}))}}const I=e=>String(Math.round(e*1e4)/1e4);function It(e){if(!e.dim&&!e.desaturate)return;const[r,s,o]=kt(e.desaturate??0,e.dim??0);return`colorchannelmixer=rr=${I(r[0])}:rg=${I(r[1])}:rb=${I(r[2])}:gr=${I(s[0])}:gg=${I(s[1])}:gb=${I(s[2])}:br=${I(o[0])}:bg=${I(o[1])}:bb=${I(o[2])}`}export function insetEllipse(e,r){const s=e.boxes?.[0]?.box??e.box;return{cx:s[0]+s[2]/2-r[0],cy:s[1]+s[3]/2-r[1],rx:s[2]/2,ry:s[3]/2}}const dt=e=>e.shape==="circle"||(e.radius??0)>0;export function roundedBox(e,r){const{cx:s,cy:o,rx:i,ry:a}=insetEllipse(e,r);return{cx:s,cy:o,hw:i,hh:a,r:Math.min(e.radius??0,i,a)}}function vt(e,r,s,o,i){const a=u=>String(Math.round(u*1e3)/1e3),g=e.boxes?.[0]?.box??e.box,y=i?(()=>{const[u,S,z,$]=i,D=Math.min((e.radius??0)*z/g[2],z/2,$/2);return{cx:u+z/2,cy:S+$/2,rx:z/2,ry:$/2,r:D}})():void 0;let _;if(e.shape==="circle"){const{cx:u,cy:S,rx:z,ry:$}=y??insetEllipse(e,r);_=`255*clip((1-${`hypot((X+0.5-${a(u)})/${a(z)},(Y+0.5-${a(S)})/${a($)})`})*${a(Math.min(z,$))}+0.5,0,1)`}else{const{cx:u,cy:S,hw:z,hh:$,r:D}=y?{...y,hw:y.rx,hh:y.ry}:roundedBox(e,r),K=`(abs(X+0.5-${a(u)})-${a(z-D)})`,J=`(abs(Y+0.5-${a(S)})-${a($-D)})`;_=`255*clip(0.5-${`(hypot(max(${K},0),max(${J},0))+min(max(${K},${J}),0)-${a(D)})`},0,1)`}return`color=c=black:s=${String(r[2])}x${String(r[3])}:r=${s}:d=${sec(1/o)},format=gray,geq=lum='${_}',setpts=PTS-1000/TB`}function Wt(e,r){const s=[];let o;return e.forEach((i,a)=>{const g=e[a+1],y=i.z!==1||g!==void 0&&g.z!==1;y&&o===void 0&&(o=i.t),!y&&o!==void 0&&(s.push([o,i.t]),o=void 0)}),o!==void 0&&s.push([o,1/0]),s.length===0?"0":s.map(([i,a])=>a===1/0?`gte(t,${sec(i-r-.05)})`:`between(t,${sec(i-r-.05)},${sec(a-r+.05)})`).join("+")}function lt(e,r){return`scale=w=${String(e)}:h=${String(r)}:flags=lanczos`}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export{RenderError}from"./errors.js";export{ffmpegOf,ffprobeOf,runFfmpegWith,toolsOf,write}from"./tools.js";export{ENCODERS,FFMPEG_MINIMUM,FFMPEG_PINNED,compareReleases,ffmpegEncoders,ffmpegHint,ffmpegRelease,ffmpegVersion,findFfmpeg,judgeFfmpeg,requireEncoder,requireFfmpeg,versionIn}from"./ffmpeg.js";export{renderVideo}from"./render.js";export{MAX_WORKERS,SHARE_ENCODE,VIDEO_TYPES,autoWorkers,encodeFor,shareKbps}from"./encode.js";export{segmentsOf}from"./segments.js";export{masterOf,mixSound}from"./sound.js";export{backgroundStill,finalStill,footageStill,videoFrame}from"./stills.js";export{hasFinalLook,lutFile}from"./look.js";export{compositeArgs,compositeStill,finishGraph,frameAt,partAt,planSources,stillOutput,transparentPng}from"./composite.js";export{ffmpegColor,footagePlane,insetEllipse,keyedGeometry,layersIn,linearExpr,probeSource,roundedBox}from"./footage.js";export{junctionArgs,junctionGroups,junctionStill}from"./junction.js";export{
|
|
2
|
+
export{renderStills}from"./version.js";export{RenderError}from"./errors.js";export{ffmpegOf,ffprobeOf,runFfmpegWith,toolsOf,write}from"./tools.js";export{ENCODERS,FFMPEG_MINIMUM,FFMPEG_PINNED,compareReleases,ffmpegEncoders,ffmpegHint,ffmpegRelease,ffmpegVersion,findFfmpeg,judgeFfmpeg,requireEncoder,requireFfmpeg,requireTools,versionIn}from"./ffmpeg.js";export{renderVideo}from"./render.js";export{MAX_WORKERS,SHARE_ENCODE,VIDEO_TYPES,autoWorkers,encodeFor,shareKbps}from"./encode.js";export{segmentsOf}from"./segments.js";export{masterOf,mixSound,soundOf}from"./sound.js";export{backgroundStill,finalStill,footageStill,videoFrame}from"./stills.js";export{hasFinalLook,lutFile}from"./look.js";export{compositeArgs,compositeStill,finishGraph,frameAt,partAt,planSources,stillOutput,transparentPng}from"./composite.js";export{ffmpegColor,footagePlane,insetEllipse,keyedGeometry,layersIn,linearExpr,probeSource,roundedBox}from"./footage.js";export{junctionArgs,junctionGroups,junctionStill}from"./junction.js";export{CAPTURE_DEFAULTS,GRAIN_MOST,blurredNoise,captureGraph,captureProblem,capturesAnything,exposureStops,grainAt,grainWeight}from"./capture.js";export{postFilterProblem,postGraph,postReadsTime}from"./post.js";export{ffmpegRuns,postPlaces,postProblems,tryPost}from"./post-probe.js";export{CAP_START,breaksCap,capOf,capRun,overCap,packetSizes}from"./cap.js";export{PartCache,closedPart,drawnKey,junctionDigest,partDigest}from"./parts.js";export{MAX_PARTS,PagePool,Slots,drawInOrder,encoderSlots,partsAtOnce,renderSerial}from"./pool.js";export{renderCaptions,renderCover,renderPdf,renderPng,renderPptx}from"./exports.js";export{blankImage,cropImage,grainSize,pasteImage,readPng,resizeImage,writePng}from"@allyhub/measure";export{CLIP_TYPES,clipTypeOf,writeClip}from"./clip.js";export{DELIVERY_LEAD,parseEncode,throughEncode}from"./delivery.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{channelActive as f,channelExpr as
|
|
2
|
+
import{fpsRational as St}from"@allyhub/piece";import{channelActive as f,channelExpr as vt,channelMin as xt,progressExpr as bt,windowFrames as yt,withHandles as wt}from"@allyhub/video-core";import{finishGraph as jt,partPost as qt,stillOutput as _t}from"./composite.js";import{rgbaPng as Ot}from"@allyhub/image-render/png";import{postGraph as At}from"./post.js";import{runFfmpegWith as Et,write as Mt}from"./tools.js";import{ffmpegColor as ct,footagePlane as zt,sec as Tt}from"./footage.js";export function junctionGroups(n,i){const d=[];for(const[g,x]of[["out",n],["in",i]])for(const h of x.planes)d.push({picture:g,plane:h,...x.overlays?.includes(h)?{overlay:!0}:{}});return d}const Bt=/\[([A-Za-z_][A-Za-z0-9_]*)\]/g;function Gt(n,i,d){return{...n,filters:n.filters.map(g=>g.replace(Bt,(x,h)=>d.has(h)?x:`[${i}${h}]`)),out:`${i}${n.out}`,cutouts:n.cutouts.map(g=>({...g,label:`${i}${g.label}`}))}}const P=n=>String(Math.round(n*1e3)/1e3);function Nt(n){const i=/^#[0-9a-f]{6}([0-9a-f]{2})$/i.exec(n);return i?.[1]===void 0?1:parseInt(i[1],16)/255}export function junctionArgs(n){const{timeline:i,transition:d,first:g,frames:x}=n,h=i.fps,y=St(h),{width:p,height:u}=i,C=yt(d,h),at=g-C.first,A=n.samples,b=junctionGroups(n.out,n.in),R=b.length>0,a=[],D=A>1?["format=gbrap","premultiply=inplace=1",`tmix=frames=${String(A)}`,`select='eq(mod(n,${String(A)}),${String(A-1)})'`,`setpts=N*${String(y.den)}/(${String(y.num)}*TB)`,"unpremultiply=inplace=1"]:[],E=new Map,L=t=>`${t.picture}:${String(t.plane)}`,J=t=>t.overlay===!0?1:A,W=b.reduce((t,r)=>t+J(r),0);if(b.length===1&&b[0]){const t=b[0].overlay===!0?[]:D;a.push(`[0:v]${t.length?t.join(","):"null"}[jg0]`),E.set(L(b[0]),"jg0")}else if(b.length>1){a.push(`[0:v]split=${String(b.length)}${b.map((r,e)=>`[ji${String(e)}]`).join("")}`);let t=0;b.forEach((r,e)=>{const o=J(r),s=`setpts=N*${String(y.den)}/(${String(y.num*o)}*TB)`;a.push(`[ji${String(e)}]select='gte(mod(n,${String(W)}),${String(t)})*lt(mod(n,${String(W)}),${String(t+o)})',${[s,...r.overlay===!0?[]:D].join(",")}[jg${String(e)}]`),E.set(L(r),`jg${String(e)}`),t+=o})}const lt=wt(i.footage??[],i.parts,i.transitions,h),Q=[];let U=R?1:0;const V=(t,r,e)=>{const o=t==="out"?"a":"b",s=[];for(const $ of e.planes)e.overlays?.includes($)||(s[$]=E.get(`${t}:${String($)}`));const c=Gt(zt({timeline:{...i,footage:lt.filter($=>$.part===r)},first:g,frames:x,sources:n.sources,alpha:n.alpha,firstInput:U,...e.planes.length>0?{graphics:s}:{}}),o,new Set(E.values()));U+=c.count,Q.push(...c.inputs),a.push(...c.filters);const l=qt(i.parts.find($=>$.key===r));return l?At(a,c.out,l,{first:g,fps:h,alpha:n.alpha,prefix:`${o}post`}):c.out},$t=V("out",d.from,n.out),pt=V("in",d.part,n.in),F=n.alpha&&i.background==="transparent",X=`r=${y.text}:d=${Tt((x+1)/h)}`,K=t=>`floor(${t}*${String(y.num)}/${String(y.den)}+0.5)`,S={overlay:K("t"),geq:K("T"),perspective:"(in-1)"},v=(t,r,e)=>vt(t,r,bt(d.ease,C.frames,e,at));let ut=0;const M=t=>{const r=`jv${String(ut++)}`;return a.push(`color=c=${t?"black@0":ct(i.background,F)}:s=${String(p)}x${String(u)}:${X},format=${t||F?"gbrap":"gbrp"}[${r}]`),r},H=(t,r=1)=>t===void 0?String(Math.round(255*r)):`floor(${P(255*r)}*(${t})+0.5)`,k=(t,r,e)=>{const o=[e];f(r.left,0)&&o.push(`clip(X+1-(${v(r.left,0,S.geq)})*${String(p)},0,1)`),f(r.right,0)&&o.push(`clip((1-(${v(r.right,0,S.geq)}))*${String(p)}-X,0,1)`);const s=[];f(r.top,0)&&s.push(`clip(Y+1-(${v(r.top,0,S.geq)})*${String(u)},0,1)`),f(r.bottom,0)&&s.push(`clip((1-(${v(r.bottom,0,S.geq)}))*${String(u)}-Y,0,1)`);const c=`scale=w=${String(p)}:h=${String(u)}:flags=neighbor`,l=(T,j,q)=>`color=c=black:s=${T}:${X},format=gray,geq=lum='${j}',${c}[${q}]`,$=o.length>1?`${o.join("*")}+0.5`:e;return s.length===0?(a.push(l(`${String(p)}x2`,$,t)),t):(a.push(l(`${String(p)}x2`,$,`${t}x`),l(`2x${String(u)}`,`255*${s.join("*")}+0.5`,`${t}y`),`[${t}x][${t}y]blend=all_mode=multiply[${t}]`),t)},ft=(t,r,e,o)=>e?(a.push(`[${t}]split[${o}s][${o}t]`,`[${o}t]alphaextract[${o}u]`,`[${o}u][${r}]blend=all_mode=multiply[${o}w]`,`[${o}s][${o}w]alphamerge[${o}]`),o):(a.push(`[${t}]format=gbrap[${o}q]`,`[${o}q][${r}]alphamerge[${o}]`),o),I=(t,r,e,o,s=F)=>{let c=r,l=s,$=!s;const T=f(e.left,0)||f(e.right,0)||f(e.top,0)||f(e.bottom,0);(o!==void 0||T)&&(c=ft(c,k(`${t}m`,e,o??"255"),l,`${t}k`),l=!0,$=!1);const j=f(e.x,0)||f(e.y,0),q=f(e.scale,1);if(q){const w=`(${v(e.scale,1,S.perspective)})`,Z=`${t}z`;if(xt(e.scale,1)>=1-1e-9&&!j){const B=`(1-1/${w})`,_=`${P(p/2)}*${B}`,O=`${P(u/2)}*${B}`,G=`(${_}+${String(p)}/${w})`,N=`(${O}+${String(u)}/${w})`;a.push(`[${c}]perspective=x0='${_}':y0='${O}':x1='${G}':y1='${O}':x2='${_}':y2='${N}':x3='${G}':y3='${N}':interpolation=cubic:eval=frame[${Z}]`)}else{const B=(st,dt)=>f(st,0)?`+floor(${String(dt)}*(${v(st,0,S.perspective)})+0.5)`:"",_=`(${P(p/2)}*(1-${w})+1${B(e.x,p)})`,O=`(${P(u/2)}*(1-${w})+1${B(e.y,u)})`,G=`(${_}-${w})`,N=`(${O}-${w})`,ot=`(${_}+${String(p+1)}*${w})`,it=`(${O}+${String(u+1)}*${w})`;a.push(`[${c}]format=gbrap,pad=w=${String(p+2)}:h=${String(u+2)}:x=1:y=1:color=black@0,perspective=x0='${G}':y0='${N}':x1='${ot}':y1='${N}':x2='${G}':y2='${it}':x3='${ot}':y3='${it}':sense=destination:interpolation=cubic:eval=frame,crop=${String(p)}:${String(u)}:1:1[${Z}]`),l=!0,$=!1}c=Z}return{label:c,alpha:l,covers:($||s)&&!j,...j&&!q?{x:`floor(${String(p)}*(${v(e.x,0,S.overlay)})+0.5)`,y:`floor(${String(u)}*(${v(e.y,0,S.overlay)})+0.5)`}:{}}};let gt=0;const z=(t,r)=>{const e=`jo${String(gt++)}`;return a.push(`[${t}][${r.label}]overlay=${r.x===void 0?"":`x='${r.x}':y='${r.y??"0"}':`}format=auto[${e}]`),e},m=d.keys,Y=f(m.in.opacity,1)?v(m.in.opacity,1,S.geq):void 0,tt=(t,r,e,o)=>{if(m.add===!0){const l=H(Y),$=I(`${t}a`,r,m.out,`(255-${l})`,o),T=I(`${t}b`,e,m.in,l,o),j=q=>q.x===void 0?q.label:z(M(!0),q);return a.push(`[${j($)}]format=gbrap,premultiply=inplace=1[${t}pa]`,`[${j(T)}]format=gbrap,premultiply=inplace=1[${t}pb]`,`[${t}pa][${t}pb]blend=all_mode=addition,unpremultiply=inplace=1[${t}x]`),`${t}x`}const s=I(`${t}a`,r,m.out,f(m.out.opacity,1)?H(v(m.out.opacity,1,S.geq)):void 0,o);let c=s.covers?s.label:z(M(o),s);if(m.color&&!o){a.push(`color=c=${ct(m.color.value.slice(0,7),!1)}:s=${String(p)}x${String(u)}:${X},format=gbrap[${t}c]`);const l=k(`${t}cm`,{},H(v(m.color.opacity,0,S.geq),Nt(m.color.value)));a.push(`[${t}c][${l}]alphamerge[${t}cc]`),c=z(c,{label:`${t}cc`,alpha:!0,covers:!1})}return z(c,I(`${t}b`,e,m.in,Y===void 0?void 0:H(Y),o))},ht=tt("j",$t,pt,F),nt=(t,r)=>{const e=(r.overlays??[]).flatMap(s=>{const c=E.get(L({picture:t,plane:s}));return c===void 0?[]:[c]});if(e.length===0)return;let o=M(!0);for(const s of e)o=z(o,{label:s,alpha:!0,covers:!1});return o},rt=nt("out",n.out),et=nt("in",n.in),mt=rt===void 0&&et===void 0?[]:[tt("k",rt??M(!0),et??M(!0),!0)];return jt(a,ht,n,mt),[...R?["-f","image2pipe","-c:v","png","-framerate",`${String(y.num*W)}/${String(y.den)}`,"-i","-"]:[],...Q,"-filter_complex",a.join(";"),"-map","[v]","-frames:v",String(x)]}export async function junctionStill(n){const i=n.format==="jpeg",d=junctionArgs({timeline:n.timeline,transition:n.transition,first:n.frame,frames:1,sources:n.sources,alpha:n.alpha&&!i,out:n.out,in:n.in,samples:n.samples,...n.capture?{capture:n.capture}:{},...n.post?{post:n.post}:{},...n.lut?{lut:n.lut}:{},tail:[i?"scale=out_color_matrix=bt601:out_range=pc,format=yuvj444p":`format=${n.alpha?"rgba":"rgb24"}`]}),{out:g}=await Et(n.ffmpeg,["-v","error",...d,..._t(n.format),"-"],n.graphics.length>0?async x=>{for(const h of n.graphics)await Mt(x,Ot(h))}:void 0,!0);if(g.length===0)throw new Error("ffmpeg drew no frame.");return g}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{stat as p}from"node:fs/promises";import{isAbsolute as a,join as f,relative as u}from"node:path";import{EXIT as h}from"@allyhub/protocol";import{capturesAnything as c}from"./capture.js";import{filterPath as
|
|
2
|
+
import{stat as p}from"node:fs/promises";import{isAbsolute as a,join as f,relative as u}from"node:path";import{EXIT as h}from"@allyhub/protocol";import{capturesAnything as c}from"./capture.js";import{filterPath as l}from"./composite.js";import{RenderError as r}from"./errors.js";import{ffmpegRuns as d,postPlaces as m,postProblems as w}from"./post-probe.js";export function hasFinalLook(t,e){return t.motionBlur!=null||c(t.capture)||t.post?.filter!==void 0||t.post?.lut!==void 0||t.transparent===!0||(e?.parts.some(n=>n.post!==void 0)??!1)}export async function lutFile(t,e){if(e===void 0)return;const n=f(t,e),i=u(t,n);if(i.startsWith("..")||a(i)||a(e))throw new r("bad-lut",`The LUT ${e} is outside the project.`,{hint:"Put the .cube file in the project and name it relative to the piece."});try{await p(n)}catch{throw new r("bad-lut",`There is no LUT file ${e}.`,{exit:h.notFound,hint:"post.lut is a .cube file, named relative to the piece."})}if(l(n)===void 0)throw new r("bad-lut",`The LUT's path ${n} has a ' in it, which ffmpeg cannot take.`,{hint:"Rename the file or its folder."});return n}export const pagePlane=(t,e)=>t.planes.length>1?{plane:e}:{};const s=new WeakSet;export async function reportPost(t,e,n,i){if(!t.report||s.has(t))return;s.add(t);const o=m(n,[t.timeline]);o.length===0||!await d(i)||t.report(await w(o,{piece:e.piece,output:e.output},i))}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{createHash as g}from"node:crypto";import{copyFile as
|
|
2
|
+
import{createHash as g}from"node:crypto";import{copyFile as H,link as J,mkdir as R,readdir as j,readFile as w,rename as E,rm as k,stat as S,utimes as K}from"node:fs/promises";import{dirname as y,join as u,relative as L,sep as P}from"node:path";import{fileURLToPath as b}from"node:url";import{CACHE_DIR as T,partCacheLimit as U}from"@allyhub/formats";import{comboKey as I,indexPath as M}from"@allyhub/piece";import{windowFrames as q}from"@allyhub/video-core";const z="allyhub-part-v1",B="allyhub-part-drawn-v1";let D;async function F(t){const e=[];for(const n of await j(t,{withFileTypes:!0}).catch(()=>[])){const r=u(t,n.name);n.isDirectory()?e.push(...await F(r)):n.isFile()&&/\.(js|mjs|ts)$/.test(n.name)&&e.push(r)}return e.sort()}function O(){return D??=(async()=>{const t=g("sha256"),e=[y(b(import.meta.url)),y(b(import.meta.resolve("@allyhub/video-core"))),y(b(import.meta.resolve("@allyhub/piece")))];for(const n of e)for(const r of await F(n))t.update(`${L(n,r).split(P).join("/")}\0`),t.update(await w(r));return t.digest("hex")})(),D}const p=t=>g("sha256").update(t).digest("hex"),C=new WeakMap;function G(t,e){let n=C.get(e);return n||(n=(async()=>{const r=g("sha256");for(const a of e.files??[]){if(a===e.file)continue;const i=await w(u(t,a)).catch(()=>"");r.update(`${a}\0${p(i)}\0`)}return r.digest("hex")})(),C.set(e,n)),n}function Q(t,e){const n=t.files??[],r=i=>i!==t.file&&n.includes(i);if(e.startsWith("custom@"))return r(e.slice(7));const a=t.components.filter(i=>i.name===e);return a.length>0&&a.every(i=>r(i.file))}export function closedPart(t,e){const n=JSON.parse(e);return n.custom===!0?!1:(n.layers??[]).every(([r])=>t.components.some(a=>a.name===r&&a.file!==t.file))}async function V(t,e){const n=await w(u(t,M(e,"matte.json"))).catch(()=>""),r=await S(u(t,M(e,"matte.mp4"))).catch(()=>{});return p(`${p(n)}\0${String(r?.size??0)}`)}export function drawnKey(t,e){if(!(e===void 0||e.unknown!==void 0)&&t.vendor!==void 0&&e.owners.every(n=>Q(t,n)))return e}export async function partDigest(t){const{code:e,timeline:n,part:r}=t,a=n.fps,i=Math.round(r.start*a),c=s=>Math.round((s-r.start)*1e6)/1e6,m=(n.footage??[]).filter(s=>s.part===r.key),l=await Promise.all(m.map(async s=>{const d=t.media[s.file]?.sha256;return(s.cutout===!0||s.background!==void 0)&&t.media[s.file]?.matte===!0&&d?await V(t.root,d):null})),f=m.map((s,d)=>({sha:t.media[s.file]?.sha256??s.file,s:Math.round(s.start*a)-i,e:Math.round(s.end*a)-i,from:s.from,speed:s.speed,fit:s.fit,box:s.box,crop:s.crop??null,picture:s.picture,cuts:s.cuts?.map(o=>[c(o.at),o.from])??null,pan:s.pan?.map(o=>[c(o.t),o.x,o.y])??null,zoom:s.zoom?.map(o=>[c(o.t),o.z,o.cx,o.cy,o.ease??null])??null,boxes:s.boxes?.map(o=>[c(o.t),o.box,o.ease??null])??null,cutout:s.cutout===!0,...s.over?{over:s.over}:{},shape:s.shape??null,...s.radius?{radius:s.radius}:{},matte:l[d]??null,...s.sharpen?{sharpen:s.sharpen}:{},...s.background?{background:{...s.background,...s.background.image===void 0?{}:{image:t.media[s.background.image]?.sha256??s.background.image}}}:{}})),v=closedPart(e,t.sign),N=t.combo.lang,W=s=>{for(const d of[N,e.messages.locales[0]]){const o=d===void 0?void 0:e.messages.messages[d];if(o&&Object.hasOwn(o,s))return o[s]}return null},x=[...new Set(t.reads.media)].sort().map(s=>[s,t.media[s]?.sha256??null]),$=[...new Set(t.reads.data)].sort().map(s=>[s,e.data[s]?.sha256??null]),h=v?void 0:drawnKey(e,t.drawn),A=v?null:h?{drawn:[B,h.sign,h.owners],vendor:e.vendor??null,media:x,data:$}:{bundle:e.bundle??null,combo:I(t.combo),messages:[...new Set(t.reads.messages)].sort().map(s=>[s,W(s)]),media:x,data:$};return p(JSON.stringify([z,await O(),e.stage,t.ffmpeg,await G(t.root,e),t.sign,f,t.frames,t.encode,t.look,A,...t.trim&&(t.trim.head>0||t.trim.tail>0)?[[t.trim.head,t.trim.tail]]:[],...t.gpu===!0?["gpu"]:[]]))}export async function junctionDigest(t){const e=t.transition,n=q(e,t.fps);return p(JSON.stringify([`${z}-junction`,await O(),t.ffmpeg,t.out,t.in,{type:e.type,ease:e.ease,keys:e.keys,before:n.join-n.first,after:n.first+n.frames-n.join},t.frames,t.encode]))}export class PartCache{dir;limit;making=new Map;hits=0;misses=0;constructor(e,n){this.dir=e,this.limit=n}static open1=new Map;static of(e,n=U()){const r=u(e,T,"parts");let a=PartCache.open1.get(r);return a||(a=new PartCache(r,n),PartCache.open1.set(r,a)),a}path(e,n){return u(this.dir,`${e}.${n}`)}async get(e,n){const r=this.path(e,n);try{const a=new Date;return await K(r,a,a),r}catch{return}}async segment(e,n,r){const a=await this.get(e,n);if(a)return this.hits++,{file:a,cached:!0};const i=`${e}.${n}`,c=this.making.get(i);if(c)return this.hits++,{file:await c,cached:!0};const m=(async()=>{await R(this.dir,{recursive:!0});const l=u(this.dir,`.${e}.${String(process.pid)}.${String(Date.now())}.${n}`);try{await r(l);const f=this.path(e,n);return await E(l,f),await this.evict(f),f}finally{await k(l,{force:!0})}})();this.making.set(i,m);try{const l=await m;return this.misses++,{file:l,cached:!1}}finally{this.making.delete(i)}}async evict(e){const n=[];for(const a of await j(this.dir).catch(()=>[])){if(a.startsWith("."))continue;const i=u(this.dir,a),c=await S(i).catch(()=>{});c?.isFile()&&n.push({path:i,size:c.size,used:c.mtimeMs})}let r=n.reduce((a,i)=>a+i.size,0);if(!(r<=this.limit)){n.sort((a,i)=>a.used-i.used);for(const a of n){if(r<=this.limit*.9)break;a.path!==e&&(await k(a.path,{force:!0}),r-=a.size)}}}}export async function place(t,e){try{await J(t,e)}catch{await H(t,e)}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{spawn as g}from"node:child_process";import{problem as $}from"@allyhub/video-core";import{postGraph as P}from"./post.js";const d=64,m=36,l=30,w=30,u=3,S=new Map;function y(s,e,t,o){const n=[],r=`${String(t)}/(${String(l)}*TB)`;n.push(`color=c=gray:s=${String(d)}x${String(m)}:r=${String(l)}:d=${String((o+1)/l)},format=gbrp,setpts=PTS+${r},geq=r='mod(X*5+Y*3+T*900,256)':g='mod(X*2+T*600,256)':b='mod(Y*7+T*300,256)',setpts=PTS-${r}[src]`);const a=P(n,"src",e,{first:t,fps:l,alpha:!1,prefix:"post"});return n.push(`[${a}]format=rgb24[v]`),new Promise(p=>{const i=g(s,["-v","error","-filter_complex",n.join(";"),"-map","[v]","-frames:v",String(o),"-f","rawvideo","-"],{stdio:["ignore","pipe","pipe"]}),f=[];let h="";i.stdout.on("data",c=>f.push(c)),i.stderr.on("data",c=>{h+=c.toString()}),i.on("error",c=>{p({out:Buffer.alloc(0),err:c.message,code:-1})}),i.on("close",c=>{p({out:Buffer.concat(f),err:h,code:c})})})}function v(s){const e=s.split(`
|
|
2
|
+
import{spawn as g}from"node:child_process";import{problem as $}from"@allyhub/diagnostics";import"@allyhub/video-core";import{postGraph as P}from"./post.js";const d=64,m=36,l=30,w=30,u=3,S=new Map;function y(s,e,t,o){const n=[],r=`${String(t)}/(${String(l)}*TB)`;n.push(`color=c=gray:s=${String(d)}x${String(m)}:r=${String(l)}:d=${String((o+1)/l)},format=gbrp,setpts=PTS+${r},geq=r='mod(X*5+Y*3+T*900,256)':g='mod(X*2+T*600,256)':b='mod(Y*7+T*300,256)',setpts=PTS-${r}[src]`);const a=P(n,"src",e,{first:t,fps:l,alpha:!1,prefix:"post"});return n.push(`[${a}]format=rgb24[v]`),new Promise(p=>{const i=g(s,["-v","error","-filter_complex",n.join(";"),"-map","[v]","-frames:v",String(o),"-f","rawvideo","-"],{stdio:["ignore","pipe","pipe"]}),f=[];let h="";i.stdout.on("data",c=>f.push(c)),i.stderr.on("data",c=>{h+=c.toString()}),i.on("error",c=>{p({out:Buffer.alloc(0),err:c.message,code:-1})}),i.on("close",c=>{p({out:Buffer.concat(f),err:h,code:c})})})}function v(s){const e=s.split(`
|
|
3
3
|
`).map(t=>t.replace(/^\[[^\]]*\]\s*/,"").trim()).filter(t=>t!==""&&!/^Error (?:initializing|while)/i.test(t));return[...new Set(e)].slice(-3).join("; ")||"it failed"}export function tryPost(s,e){const t=`${e}
|
|
4
4
|
${s}`;let o=S.get(t);return o||(o=(async()=>{const n=d*m*3,r=await y(e,s,w,u);if(r.code!==0)return{runs:!1,why:v(r.err)};if(r.out.length!==n*u)return{runs:!1,why:`it gave ${String(r.out.length/n)} frames of ${String(d)}×${String(m)} for ${String(u)}: a post chain keeps the frames' size and count`};const a=await y(e,s,w+u-1,1);return a.code!==0?{runs:!1,why:v(a.err)}:{runs:!0,depends:!r.out.subarray(n*(u-1)).equals(a.out)}})(),S.set(t,o)),o}export function postPlaces(s,e){const t=[];for(const o of e)for(const n of o.parts)n.post&&t.push({chain:n.post.filter,part:n.key});return[...s?[{chain:s}]:[],...t]}const x=new Map;export function ffmpegRuns(s){let e=x.get(s);return e||(e=new Promise(t=>{const o=g(s,["-version"],{stdio:"ignore"});o.on("error",()=>{t(!1)}),o.on("close",n=>{t(n===0)})}),x.set(s,e)),e}export async function postProblems(s,e,t){const o=[],n=new Set;for(const r of s){const a=`${r.part??""}
|
|
5
5
|
${r.chain}`;if(n.has(a))continue;n.add(a);const p=r.part===void 0?"video({ post })'s filter":`part ${r.part}'s post filter`,i={piece:e.piece,output:e.output,...r.part===void 0?{}:{part:r.part}},f=await tryPost(r.chain,t);f.runs?f.depends&&o.push($("AK-D002",`${p} "${r.chain}" draws a moment differently by where a segment starts (its n, a seed drawn anew each frame such as noise's allf=t, or a filter that reads the frames round it): a still is not the render's frame, and it starts over at every part. Use t, the film's time, and capture.grain for grain.`,i)):o.push($("AK-M001",`${p} "${r.chain}" does not run in ffmpeg: ${f.why}.`,i))}return o}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{fpsRational as c}from"@allyhub/
|
|
2
|
+
import{fpsRational as c}from"@allyhub/piece";const m={movie:"reads files",amovie:"reads files",sendcmd:"reads files",asendcmd:"reads files",zmq:"listens on the network",azmq:"listens on the network",subtitles:"reads files",ass:"reads files",frei0r:"loads plugins",lut1d:"reads files (give the LUT as post.lut)",lut3d:"reads files (give the LUT as post.lut)",haldclut:"takes a second input (give the LUT as post.lut)",fps:"changes the frame timing",framerate:"changes the frame timing",minterpolate:"changes the frame timing",setpts:"changes the frame timing",trim:"changes the frame count",select:"changes the frame count",framestep:"changes the frame count",decimate:"changes the frame count",loop:"changes the frame count",reverse:"changes the frame order",tpad:"changes the frame count",scale:"changes the frame size",crop:"changes the frame size",pad:"changes the frame size",transpose:"changes the frame size"};export function postFilterProblem(s){const a=s.replace(/'[^']*'/g,"''").replace(/\\./g,"");if(/[;[\]]/.test(a))return"A post filter is one chain of filters separated by commas: no ; and no [labels]";for(const r of a.split(",")){const t=/^\s*([A-Za-z0-9_]+)/.exec(r)?.[1];if(!t)return`"${r.trim()}" is not a filter`;const n=m[t.toLowerCase()];if(n)return`The filter ${t} cannot be used in post: it ${n}`}if(/(?:^|[:=@])\s*\w*file(?:name)?\s*=/i.test(a))return"A post filter cannot name files (…file= options)"}export function postReadsTime(s){return/(^|[^A-Za-z0-9_])(t|T|n|N|pts|PTS|time|TIME|frame|tb|TB)([^A-Za-z0-9_]|$)/.test(s)}export function postGraph(s,a,r,t){const n=c(t.fps),i=`${String(t.first*n.den)}/(${String(n.num)}*TB)`,o=`format=gbrp,setpts=PTS+${i}`,f=`format=gbrp,setpts=PTS-${i}`,e=t.prefix;return t.alpha?(s.push(`[${a}]format=gbrap,split=2[${e}c][${e}a]`,`[${e}a]alphaextract[${e}m]`,`[${e}c]${o},${r},${f}[${e}g]`,`[${e}g][${e}m]alphamerge,format=gbrap[${e}]`),e):(s.push(`[${a}]${o},${r},${f}[${e}]`),e)}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{copyFile as Ne,mkdir as yt,mkdtemp as kt,readdir as bt,readFile as vt,rename as Pt,rm as re,stat as xt,writeFile as Mt}from"node:fs/promises";import{createHash as $t}from"node:crypto";import{tmpdir as jt}from"node:os";import{join as S}from"node:path";import{EXIT as St}from"@allyhub/protocol";import{ALPHA_TYPES as At,comboKey as _t,fpsRational as Ft,heldTime as Ot,planeAt as Tt}from"@allyhub/video-core";import{CAP_START as Bt,capOf as Et,capRun as qe,overCap as Ct,packetSizes as Ge}from"./cap.js";import{capturesAnything as Dt}from"./capture.js";import{compositeArgs as Rt,planSources as It,transparentPng as Ht}from"./composite.js";import{MAX_WORKERS as Kt,autoWorkers as zt,encodeFor as Wt,encoderOf as Qe,gopArgs as Lt,HELD_OUT as Vt,twoOutputs as Jt}from"./encode.js";import{RenderError as Ut}from"./errors.js";import{ffmpegVersion as Xt}from"./ffmpeg.js";import{junctionArgs as Yt}from"./junction.js";import{lutFile as Nt,pagePlane as qt}from"./look.js";import{PartCache as Gt,closedPart as Qt,drawnKey as Zt,junctionDigest as en,partDigest as tn,place as nn}from"./parts.js";import{PipeFormat as Ze}from"./png.js";import{PagePool as rn,drawInOrder as on,encoderSlots as an,renderSerial as sn}from"./pool.js";import{postReadsTime as et}from"./post.js";import{segmentsOf as cn}from"./segments.js";import{mixSound as fn}from"./sound.js";import{runFfmpegWith as tt,toolsOf as un,write as dn}from"./tools.js";const A=a=>Math.round(performance.now()-a)/1e3,de=async(a,y,w,T)=>{await tt(a,y,w,!1,T)};function ln(a){const y=new Set;return a.filter(w=>{const T=[w.code,w.message,w.piece,w.output,w.combo?_t(w.combo):"",w.format,w.part,w.where?.file,w.where?.line].join("|");return y.has(T)?!1:(y.add(T),!0)})}const nt=a=>$t("sha256").update(a).digest("hex");export async function renderVideo(a){const{ffmpeg:y,ffprobe:w}=await un(a),T={ffmpeg:y,ffprobe:w},{target:Se,media:X}=a,[B]=a.pages;if(!B)throw new Error("renderVideo draws with at least one page.");const d=a.type??"mp4",I=Wt(d,Se.format,a.encode??{},B.timeline),M=a.look,Y=M.transparent===!0&&At.includes(d),Ae=Qe(d,I,Y),oe=await Nt(X.root,M.post?.lut),H=await kt(S(jt(),"allyhub-render-")),L=[...a.pages],_e=[],rt=()=>Promise.all(_e.splice(0).map(q=>q.close?.()??Promise.resolve())),le=[];let N;const V=[],me=performance.now(),h={pages:0,workers:1,concurrency:1,plan:0,parts:0,mix:0,mux:0,total:0,part:[]};try{const q=performance.now(),b=B.timeline,l=b.fps,pe=Ft(l),Fe=Math.round(b.duration*l),we=M.motionBlur,_=we?we.samples:1,he=we?.shutter??.5,Oe=await It(X,b,w),P=d==="gif"||d==="png"?"png":d,ge=d==="webm"?["-fflags","+bitexact"]:[],ot=P!=="png"&&!(d==="mp4"&&I.codec==="h265"),E=cn(b,ot),ae=[];Ae.rgb?ae.push(`format=${Ae.pixFmt}`):ae.push("scale=out_color_matrix=bt709:out_range=tv:flags=neighbor");const G=(e,t=!1,n)=>["-r",pe.text,...Qe(d,I,Y,e,t,n).args,...Lt(d,I.codec,e),...d==="mp4"||d==="mov"?["-video_track_timescale","90000"]:[],...ge],C=d==="mp4"&&I.maxBitrate!==void 0&&I.maxBitrate>0?Et(I.maxBitrate):void 0,at=e=>[...G(e),...C?["over the cap",...G(e,!0)]:[],...ae],Q=a.code,K=P!=="png"&&Q!==void 0&&a.partCache!==!1&&process.env.ALLYHUB_PART_CACHE!=="off"?a.partCache??Gt.of(X.root):void 0,Z=[],Te=new Map;if(K&&Q){const e=await Xt(y),t=oe?nt(await vt(oe)):null,n=B.reads,o={alpha:Y,samples:_,shutter:he,capture:Dt(M.capture)?M.capture??null:null,post:M.post?.filter??null,lut:t},i=r=>{const u=r.post?.filter,g=o.capture!==null||o.post!==null&&et(o.post)||u!==void 0&&et(u);return{...o,...u===void 0?{}:{partPost:u},...g?{at:Math.round(r.start*l)}:{}}},s=Math.round(b.duration*l),k=b.parts.at(-1)?.key,m=new Map,O=r=>{const u=B.signs[r.key];if(u===void 0||Qt(Q,u))return Promise.resolve(void 0);let g=m.get(r.key);if(!g){const j=Math.round(r.start*l),c=r.key===k?s:Math.min(s,Math.round(r.end*l)),f=[];for(let z=j;z<c;z++)for(let R=0;R<_;R++)f.push(z/l+(R>0?R*he/(l*_):0));const Me=performance.now();g=B.partSign(r.key,f).then(z=>(h.signs=Math.round(((h.signs??0)+A(Me))*1e3)/1e3,z)),m.set(r.key,g)}return g},x=async(r,u,g,j)=>{const c=B.signs[r.key];if(c===void 0)return;const f=await O(r);return f&&Te.set(r.key,Zt(Q,f)?"frames":`bundle: ${f.unknown??`a canvas drawn by ${f.owners.join(", ")}, in the piece's own file`}`),tn({root:X.root,code:Q,combo:Se.combo,timeline:b,part:r,sign:c,...f?{drawn:f}:{},media:X.media,reads:n,frames:u,encode:g,look:i(r),ffmpeg:e,...j?{trim:j}:{},...B.gpu===!0?{gpu:!0}:{}})},p=new Map,v=r=>{let u=p.get(r.key);return u||(u=x(r,Math.round(r.end*l)-Math.round(r.start*l),[]),p.set(r.key,u)),u};for(const r of E){const u=at(r.frames);if(!r.junction){Z.push(await x(r.part,r.frames,u,r.trim));continue}const[g,j]=[await v(r.junction.from),await v(r.part)];Z.push(g===void 0||j===void 0?void 0:await en({out:g,in:j,transition:r.junction.transition,fps:l,frames:r.frames,encode:u,ffmpeg:e}))}}const Be=await Promise.all(E.map((e,t)=>{const n=Z[t];return K&&n?K.get(n,P):Promise.resolve(void 0)})),Ee=e=>e>0?e*he/(l*_):0,st=(e,t,n)=>e.junction?Ot(t,n/l,l):n/l,Ce=(e,t,n,o)=>Tt(t.part,t.plane,st(e,t.part,n)+Ee(o)),ye=E.map(e=>{const t=(e.junction?[e.junction.from,e.part]:[e.part]).map(i=>{const s=[];let k=0;return i.planes.forEach((m,O)=>{const x={part:i,plane:O,images:m.overlay===!0?1:_};let p=0;for(let v=e.first;v<e.first+e.frames;v++)for(let r=0;r<x.images;r++)Ce(e,x,v,r)&&p++;p!==0&&(s.push(x),k+=p)}),{part:i,planes:s.map(m=>m.plane),overlays:s.flatMap(m=>i.planes[m.plane]?.overlay===!0?[m.plane]:[]),groups:s,drawn:k,graphics:k>0}}),n=t.flatMap(i=>i.groups),o=n.length===0?_:n.reduce((i,s)=>i+s.images,0);return{pictures:t,groups:n,per:o,graphics:t.some(i=>i.graphics),drawn:t.reduce((i,s)=>i+s.drawn,0),images:e.frames*o}}),De=(e,t,n)=>{let o=n%e.per,i={part:t.part,plane:0,images:_};for(const s of e.groups){if(o<s.images){i=s;break}o-=s.images}return{f:t.first+Math.floor(n/e.per),k:o,group:i}},it=(e,t,n)=>{const o=De(e,t,n);return Ce(t,o.group,o.f,o.k)};let ke=0;ye.forEach((e,t)=>{Be[t]===void 0&&(ke+=e.drawn)}),h.plan=A(q);const Re=a.openPage===void 0?L.length:Math.max(L.length,ke===0?1:Math.min(a.workers??zt(ke),Kt));h.workers=Re;const se=new rn;for(const e of L)se.add(e);const ct=async e=>{const t=[];for(const n of L)for(const o of await n.problems())o.level!=="error"||o.code==="AK-P002"||o.part!==void 0&&!e.has(o.part)||t.push(o);return ln(t)},ft=performance.now(),Ie=a.openPage;for(let e=L.length;Ie&&e<Re;e++){const t=Ie().then(n=>{_e.push(n),L.push(n),se.add(n),h.pages=A(ft)});t.catch(()=>{}),le.push(t)}const ut=sn(),be=a.sound,D=d==="gif"||be===void 0?void 0:S(H,"audio.wav"),He=async()=>{if(D===void 0||be===void 0)return;const e=performance.now(),t=await fn({timeline:b,sound:be,out:D,ffmpeg:y});return h.mix=A(e),t};ut||(N=He(),N.catch(()=>{}));const dt=Ht(b.width,b.height),Ke=ye.reduce((e,t)=>e+t.images,0);let J=0,ze=-1;const ve=()=>{const e=Math.floor(90*J/Ke);e<=ze||(ze=e,a.onProgress?.(.9*J/Ke))},ee=S(H,"frames");P==="png"&&await yt(ee,{recursive:!0});const ie=E.map((e,t)=>S(H,`segment.${String(t).padStart(4,"0")}.${P}`));let We=0,Le=0;const Pe=new AbortController,F=a.signal?AbortSignal.any([Pe.signal,a.signal]):Pe.signal,Ve=an();h.concurrency=Math.max(1,Math.min(Ve.limit,Be.filter(e=>e===void 0).length));const lt=performance.now(),Je=(e,t,n)=>de(y,["-v","error","-y","-i",e,"-map","0:v","-c","copy","-frames:v",String(n),...ge,t]),mt=async(e,t)=>{const n=ye[e];if(!n)return;const o=n.graphics,i=n.images,s={key:t.junction?`${t.junction.from.key}>${t.part.key}`:t.part.key,...t.junction?{junction:!0}:{},frames:t.frames,cached:!1,images:o?i:0,captured:0,reused:0,clear:0,capture:0,ffmpeg:0,waitFrames:0,waitPipe:0,start:0,end:0},k=t.junction?void 0:Te.get(t.part.key);k!==void 0&&(s.keyed=k),h.part[e]=s;const m={captured:0,reused:0},O=new Map,x=c=>{let f=O.get(c);return f||(f=new Map,O.set(c,f)),f},p=P==="png"?S(ee,"frame.%05d.png"):ie[e]??"",v={...M.capture?{capture:M.capture}:{},...M.post?.filter?{post:M.post.filter}:{},...oe?{lut:oe}:{},tail:ae},r=c=>({planes:n.pictures[c]?.planes??[],overlays:n.pictures[c]?.overlays??[]}),u=c=>Ve.run(async()=>{F.throwIfAborted(),s.start=A(me);const f=C?`${c}.held.${P}`:void 0,Me=()=>["-v","error","-y",...Jt(t.junction?Yt({timeline:b,transition:t.junction.transition,first:t.first,frames:t.frames,sources:Oe,alpha:Y,out:r(0),in:r(1),samples:_,...v}):Rt({timeline:b,first:t.first,frames:t.frames,sources:Oe,alpha:Y,planes:n.pictures[0]?.planes??[],overlays:n.pictures[0]?.overlays??[],samples:_,part:t.part,...v}),f!==void 0),...G(t.frames),...P==="png"?["-start_number",String(t.first+1)]:[],c,...f===void 0?[]:["-map",`[${Vt}]`,"-frames:v",String(t.frames),...G(t.frames,!0),f]],z=performance.now();let R=n.drawn<i||n.groups.length>1;for(;;){const $e=new Ze(R);let te=0,W=0;try{await tt(y,Me(),o?async ce=>{await on({count:i,ahead:Math.max(8,se.size*4),draw:ne=>{if(!it(n,t,ne))return s.clear++,W++,Promise.resolve(dt);const{f:je,k:fe,group:ue}=De(n,t,ne);return se.use([e,ne],async wt=>{F.throwIfAborted();const ht=performance.now(),gt=await wt.frame(je/l,{format:"png",alpha:!0,...qt(ue.part,ue.plane),...t.junction?{part:ue.part.key}:{},reuse:x(ue.part.key),stats:m,...fe>0?{offset:Ee(fe)}:{}});return s.capture+=(performance.now()-ht)/1e3,gt})},emit:async ne=>{const je=$e.next(ne),fe=performance.now();await dn(ce,je),s.waitPipe+=(performance.now()-fe)/1e3,J++,te++,ve()},waits:s,signal:F})}:void 0,!1,F);break}catch(ce){if(!(ce instanceof Ze.Mixed)||R)throw f!==void 0&&await re(f,{force:!0}),ce;R=!0}J-=te,s.clear-=W}if(C&&f!==void 0&&(await Ct(c,C,l,T)?(await Pt(f,c),s.held=!0):await re(f,{force:!0})),s.ffmpeg=A(z),o||(J+=i,ve()),o){const $e=new Set(t.junction?[t.junction.from.key,t.part.key]:[t.part.key]),te=await ct($e);if(te.length>0)throw new Ut("draw-failed",`Drawing ${s.key} failed, so it is not rendered: ${te.map(W=>`${W.code} ${W.message}${W.t===void 0?"":` (at ${W.t.toFixed(2)} s)`}`).join("; ")}`,{exit:St.failed,hint:"allyhub frames --at and allyhub inspect layout --at draw that moment; fix what failed and render again."})}}),g=t.keep<t.frames,j=Z[e];if(K&&j){const c=await K.segment(j,P,u);g?await Je(c.file,p,t.keep):await nn(c.file,p),c.cached&&(t.junction?Le++:We++,s.cached=!0,J+=i,ve())}else if(g){const c=S(H,`whole.${String(e).padStart(4,"0")}.${P}`);await u(c),await Je(c,p,t.keep),await re(c,{force:!0})}else await u(p);s.captured=m.captured,s.reused=m.reused,s.end=A(me)},Ue=(await Promise.allSettled(E.map((e,t)=>mt(t,e).catch(n=>{throw Pe.abort(n),n})))).find(e=>e.status==="rejected");if(Ue)throw Ue.reason;await Promise.all(le),h.parts=A(lt);const $=await(N??He()),xe=$?.loudness;a.onProgress?.(.95),F.throwIfAborted();const pt=performance.now();let U;if(d==="png"){const e=a.out.replace(/\.png$/,"");U=[];const t=(await bt(ee)).filter(n=>/^frame\.\d+\.png$/.test(n)).sort();for(const n of t){F.throwIfAborted();const o=`${e}.${n.slice(6)}`;V.push(o),await Ne(S(ee,n),o),U.push(o)}D&&xe&&(V.push(`${e}.wav`),await Ne(D,`${e}.wav`),U.push(`${e}.wav`))}else if(d==="gif")V.push(a.out),await de(y,["-v","error","-y","-framerate",pe.text,"-start_number","1","-i",S(ee,"frame.%05d.png"),"-filter_complex","split[a][b];[a]palettegen=stats_mode=diff[p];[b][p]paletteuse=dither=sierra2_4a","-r",pe.text,"-loop","0",a.out],void 0,F);else{if(C){const n=C.bufferKbps*1e3;let o=Bt*n;for(const[i,s]of ie.entries()){const k=await Ge(s,T);if(!k)continue;const m=qe(k,C,l,o);if(!m.breaks){o=m.end;continue}const O=G(k.length,!0,o/n),x=r=>de(y,["-v","error","-y","-i",s,"-an",...O,r],void 0,F);let p=S(H,`held.${String(i)}.mp4`);const v=Z[i];K&&v?p=(await K.segment(nt(Buffer.from(JSON.stringify(["held across the join",v,O]))),P,x)).file:await x(p),ie[i]=p,h.capped=(h.capped??0)+1,o=qe(await Ge(p,T)??k,C,l,o).end}}const e=S(H,"segments.txt");await Mt(e,ie.map(n=>`file '${n.replace(/'/g,"'\\''")}'
|
|
3
|
-
`).join(""));const t=d==="mov"?["-c:a","pcm_s24le"]:d==="webm"?["-c:a","libopus","-b:a",`${String(a.encode?.audioBitrate??160)}k`]:["-c:a","aac","-b:a",`${String(a.encode?.audioBitrate??192)}k`];V.push(a.out),await de(y,["-v","error","-y","-f","concat","-safe","0","-i",e,...D===void 0?[]:["-i",D],"-map","0:v",...D===void 0?[]:["-map","1:a"],"-c:v","copy",...D===void 0?[]:t,...d==="mp4"||d==="mov"?["-movflags","+faststart"]:[],...ge,a.out],void 0,F)}V.length=0,h.mux=A(pt),a.onProgress?.(1);const
|
|
2
|
+
import{copyFile as Ye,mkdir as yt,mkdtemp as kt,readdir as bt,readFile as vt,rename as Pt,rm as re,stat as xt,writeFile as Mt}from"node:fs/promises";import{createHash as $t}from"node:crypto";import{tmpdir as jt}from"node:os";import{join as S}from"node:path";import{EXIT as St}from"@allyhub/protocol";import{ALPHA_TYPES as At,comboKey as _t,fpsRational as Ft}from"@allyhub/piece";import{heldTime as Ot,planeAt as Tt}from"@allyhub/video-core";import{CAP_START as Bt,capOf as Et,capRun as Ne,overCap as Ct,packetSizes as qe}from"./cap.js";import{capturesAnything as Dt}from"./capture.js";import{compositeArgs as Rt,planSources as It,transparentPng as Ht}from"./composite.js";import{MAX_WORKERS as Kt,autoWorkers as zt,encodeFor as Wt,encoderOf as Ge,gopArgs as Lt,HELD_OUT as Vt,twoOutputs as Jt}from"./encode.js";import{RenderError as Ut}from"./errors.js";import{ffmpegVersion as Xt}from"./ffmpeg.js";import{junctionArgs as Yt}from"./junction.js";import{lutFile as Nt,pagePlane as qt}from"./look.js";import{PartCache as Gt,closedPart as Qt,drawnKey as Zt,junctionDigest as en,partDigest as tn,place as nn}from"./parts.js";import{PipeFormat as Qe}from"@allyhub/image-render/png";import{PagePool as rn,drawInOrder as on,encoderSlots as an,renderSerial as sn}from"./pool.js";import{postReadsTime as Ze}from"./post.js";import{segmentsOf as cn}from"./segments.js";import{mixSound as fn}from"./sound.js";import{runFfmpegWith as et,toolsOf as un,write as dn}from"./tools.js";const A=a=>Math.round(performance.now()-a)/1e3,de=async(a,y,w,T)=>{await et(a,y,w,!1,T)};function ln(a){const y=new Set;return a.filter(w=>{const T=[w.code,w.message,w.piece,w.output,w.combo?_t(w.combo):"",w.format,w.part,w.where?.file,w.where?.line].join("|");return y.has(T)?!1:(y.add(T),!0)})}const tt=a=>$t("sha256").update(a).digest("hex");export async function renderVideo(a){const{ffmpeg:y,ffprobe:w}=await un(a),T={ffmpeg:y,ffprobe:w},{target:nt,media:X}=a,[B]=a.pages;if(!B)throw new Error("renderVideo draws with at least one page.");const d=a.type??"mp4",I=Wt(d,a.encode??{},B.timeline),M=a.look,Y=M.transparent===!0&&At.includes(d),Se=Ge(d,I,Y),oe=await Nt(X.root,M.post?.lut),H=await kt(S(jt(),"allyhub-render-")),L=[...a.pages],Ae=[],rt=()=>Promise.all(Ae.splice(0).map(q=>q.close?.()??Promise.resolve())),le=[];let N;const V=[],me=performance.now(),h={pages:0,workers:1,concurrency:1,plan:0,parts:0,mix:0,mux:0,total:0,part:[]};try{const q=performance.now(),b=B.timeline,l=b.fps,pe=Ft(l),_e=Math.round(b.duration*l),we=M.motionBlur,_=we?we.samples:1,he=we?.shutter??.5,Fe=await It(X,b,w),P=d==="gif"||d==="png"?"png":d,ge=d==="webm"?["-fflags","+bitexact"]:[],ot=P!=="png"&&!(d==="mp4"&&I.codec==="h265"),E=cn(b,ot),ae=[];Se.rgb?ae.push(`format=${Se.pixFmt}`):ae.push("scale=out_color_matrix=bt709:out_range=tv:flags=neighbor");const G=(e,t=!1,n)=>["-r",pe.text,...Ge(d,I,Y,e,t,n).args,...Lt(d,I.codec,e),...d==="mp4"||d==="mov"?["-video_track_timescale","90000"]:[],...ge],C=d==="mp4"&&I.maxBitrate!==void 0&&I.maxBitrate>0?Et(I.maxBitrate):void 0,at=e=>[...G(e),...C?["over the cap",...G(e,!0)]:[],...ae],Q=a.code,K=P!=="png"&&Q!==void 0&&a.partCache!==!1&&process.env.ALLYHUB_PART_CACHE!=="off"?a.partCache??Gt.of(X.root):void 0,Z=[],Oe=new Map;if(K&&Q){const e=await Xt(y),t=oe?tt(await vt(oe)):null,n=B.reads,o={alpha:Y,samples:_,shutter:he,capture:Dt(M.capture)?M.capture??null:null,post:M.post?.filter??null,lut:t},i=r=>{const u=r.post?.filter,g=o.capture!==null||o.post!==null&&Ze(o.post)||u!==void 0&&Ze(u);return{...o,...u===void 0?{}:{partPost:u},...g?{at:Math.round(r.start*l)}:{}}},s=Math.round(b.duration*l),k=b.parts.at(-1)?.key,m=new Map,O=r=>{const u=B.signs[r.key];if(u===void 0||Qt(Q,u))return Promise.resolve(void 0);let g=m.get(r.key);if(!g){const j=Math.round(r.start*l),c=r.key===k?s:Math.min(s,Math.round(r.end*l)),f=[];for(let z=j;z<c;z++)for(let R=0;R<_;R++)f.push(z/l+(R>0?R*he/(l*_):0));const Me=performance.now();g=B.partSign(r.key,f).then(z=>(h.signs=Math.round(((h.signs??0)+A(Me))*1e3)/1e3,z)),m.set(r.key,g)}return g},x=async(r,u,g,j)=>{const c=B.signs[r.key];if(c===void 0)return;const f=await O(r);return f&&Oe.set(r.key,Zt(Q,f)?"frames":`bundle: ${f.unknown??`a canvas drawn by ${f.owners.join(", ")}, in the piece's own file`}`),tn({root:X.root,code:Q,combo:nt.combo,timeline:b,part:r,sign:c,...f?{drawn:f}:{},media:X.media,reads:n,frames:u,encode:g,look:i(r),ffmpeg:e,...j?{trim:j}:{},...B.gpu===!0?{gpu:!0}:{}})},p=new Map,v=r=>{let u=p.get(r.key);return u||(u=x(r,Math.round(r.end*l)-Math.round(r.start*l),[]),p.set(r.key,u)),u};for(const r of E){const u=at(r.frames);if(!r.junction){Z.push(await x(r.part,r.frames,u,r.trim));continue}const[g,j]=[await v(r.junction.from),await v(r.part)];Z.push(g===void 0||j===void 0?void 0:await en({out:g,in:j,transition:r.junction.transition,fps:l,frames:r.frames,encode:u,ffmpeg:e}))}}const Te=await Promise.all(E.map((e,t)=>{const n=Z[t];return K&&n?K.get(n,P):Promise.resolve(void 0)})),Be=e=>e>0?e*he/(l*_):0,st=(e,t,n)=>e.junction?Ot(t,n/l,l):n/l,Ee=(e,t,n,o)=>Tt(t.part,t.plane,st(e,t.part,n)+Be(o)),ye=E.map(e=>{const t=(e.junction?[e.junction.from,e.part]:[e.part]).map(i=>{const s=[];let k=0;return i.planes.forEach((m,O)=>{const x={part:i,plane:O,images:m.overlay===!0?1:_};let p=0;for(let v=e.first;v<e.first+e.frames;v++)for(let r=0;r<x.images;r++)Ee(e,x,v,r)&&p++;p!==0&&(s.push(x),k+=p)}),{part:i,planes:s.map(m=>m.plane),overlays:s.flatMap(m=>i.planes[m.plane]?.overlay===!0?[m.plane]:[]),groups:s,drawn:k,graphics:k>0}}),n=t.flatMap(i=>i.groups),o=n.length===0?_:n.reduce((i,s)=>i+s.images,0);return{pictures:t,groups:n,per:o,graphics:t.some(i=>i.graphics),drawn:t.reduce((i,s)=>i+s.drawn,0),images:e.frames*o}}),Ce=(e,t,n)=>{let o=n%e.per,i={part:t.part,plane:0,images:_};for(const s of e.groups){if(o<s.images){i=s;break}o-=s.images}return{f:t.first+Math.floor(n/e.per),k:o,group:i}},it=(e,t,n)=>{const o=Ce(e,t,n);return Ee(t,o.group,o.f,o.k)};let ke=0;ye.forEach((e,t)=>{Te[t]===void 0&&(ke+=e.drawn)}),h.plan=A(q);const De=a.openPage===void 0?L.length:Math.max(L.length,ke===0?1:Math.min(a.workers??zt(ke),Kt));h.workers=De;const se=new rn;for(const e of L)se.add(e);const ct=async e=>{const t=[];for(const n of L)for(const o of await n.problems())o.level!=="error"||o.code==="AK-P002"||o.part!==void 0&&!e.has(o.part)||t.push(o);return ln(t)},ft=performance.now(),Re=a.openPage;for(let e=L.length;Re&&e<De;e++){const t=Re().then(n=>{Ae.push(n),L.push(n),se.add(n),h.pages=A(ft)});t.catch(()=>{}),le.push(t)}const ut=sn(),be=a.sound,D=d==="gif"||be===void 0?void 0:S(H,"audio.wav"),Ie=async()=>{if(D===void 0||be===void 0)return;const e=performance.now(),t=await fn({timeline:b,sound:be,out:D,ffmpeg:y});return h.mix=A(e),t};ut||(N=Ie(),N.catch(()=>{}));const dt=Ht(b.width,b.height),He=ye.reduce((e,t)=>e+t.images,0);let J=0,Ke=-1;const ve=()=>{const e=Math.floor(90*J/He);e<=Ke||(Ke=e,a.onProgress?.(.9*J/He))},ee=S(H,"frames");P==="png"&&await yt(ee,{recursive:!0});const ie=E.map((e,t)=>S(H,`segment.${String(t).padStart(4,"0")}.${P}`));let ze=0,We=0;const Pe=new AbortController,F=a.signal?AbortSignal.any([Pe.signal,a.signal]):Pe.signal,Le=an();h.concurrency=Math.max(1,Math.min(Le.limit,Te.filter(e=>e===void 0).length));const lt=performance.now(),Ve=(e,t,n)=>de(y,["-v","error","-y","-i",e,"-map","0:v","-c","copy","-frames:v",String(n),...ge,t]),mt=async(e,t)=>{const n=ye[e];if(!n)return;const o=n.graphics,i=n.images,s={key:t.junction?`${t.junction.from.key}>${t.part.key}`:t.part.key,...t.junction?{junction:!0}:{},frames:t.frames,cached:!1,images:o?i:0,captured:0,reused:0,clear:0,capture:0,ffmpeg:0,waitFrames:0,waitPipe:0,start:0,end:0},k=t.junction?void 0:Oe.get(t.part.key);k!==void 0&&(s.keyed=k),h.part[e]=s;const m={captured:0,reused:0},O=new Map,x=c=>{let f=O.get(c);return f||(f=new Map,O.set(c,f)),f},p=P==="png"?S(ee,"frame.%05d.png"):ie[e]??"",v={...M.capture?{capture:M.capture}:{},...M.post?.filter?{post:M.post.filter}:{},...oe?{lut:oe}:{},tail:ae},r=c=>({planes:n.pictures[c]?.planes??[],overlays:n.pictures[c]?.overlays??[]}),u=c=>Le.run(async()=>{F.throwIfAborted(),s.start=A(me);const f=C?`${c}.held.${P}`:void 0,Me=()=>["-v","error","-y",...Jt(t.junction?Yt({timeline:b,transition:t.junction.transition,first:t.first,frames:t.frames,sources:Fe,alpha:Y,out:r(0),in:r(1),samples:_,...v}):Rt({timeline:b,first:t.first,frames:t.frames,sources:Fe,alpha:Y,planes:n.pictures[0]?.planes??[],overlays:n.pictures[0]?.overlays??[],samples:_,part:t.part,...v}),f!==void 0),...G(t.frames),...P==="png"?["-start_number",String(t.first+1)]:[],c,...f===void 0?[]:["-map",`[${Vt}]`,"-frames:v",String(t.frames),...G(t.frames,!0),f]],z=performance.now();let R=n.drawn<i||n.groups.length>1;for(;;){const $e=new Qe(R);let te=0,W=0;try{await et(y,Me(),o?async ce=>{await on({count:i,ahead:Math.max(8,se.size*4),draw:ne=>{if(!it(n,t,ne))return s.clear++,W++,Promise.resolve(dt);const{f:je,k:fe,group:ue}=Ce(n,t,ne);return se.use([e,ne],async wt=>{F.throwIfAborted();const ht=performance.now(),gt=await wt.frame(je/l,{format:"png",alpha:!0,...qt(ue.part,ue.plane),...t.junction?{part:ue.part.key}:{},reuse:x(ue.part.key),stats:m,...fe>0?{offset:Be(fe)}:{}});return s.capture+=(performance.now()-ht)/1e3,gt})},emit:async ne=>{const je=$e.next(ne),fe=performance.now();await dn(ce,je),s.waitPipe+=(performance.now()-fe)/1e3,J++,te++,ve()},waits:s,signal:F})}:void 0,!1,F);break}catch(ce){if(!(ce instanceof Qe.Mixed)||R)throw f!==void 0&&await re(f,{force:!0}),ce;R=!0}J-=te,s.clear-=W}if(C&&f!==void 0&&(await Ct(c,C,l,T)?(await Pt(f,c),s.held=!0):await re(f,{force:!0})),s.ffmpeg=A(z),o||(J+=i,ve()),o){const $e=new Set(t.junction?[t.junction.from.key,t.part.key]:[t.part.key]),te=await ct($e);if(te.length>0)throw new Ut("draw-failed",`Drawing ${s.key} failed, so it is not rendered: ${te.map(W=>`${W.code} ${W.message}${W.t===void 0?"":` (at ${W.t.toFixed(2)} s)`}`).join("; ")}`,{exit:St.failed,hint:"allyhub frames --at and allyhub inspect layout --at draw that moment; fix what failed and render again."})}}),g=t.keep<t.frames,j=Z[e];if(K&&j){const c=await K.segment(j,P,u);g?await Ve(c.file,p,t.keep):await nn(c.file,p),c.cached&&(t.junction?We++:ze++,s.cached=!0,J+=i,ve())}else if(g){const c=S(H,`whole.${String(e).padStart(4,"0")}.${P}`);await u(c),await Ve(c,p,t.keep),await re(c,{force:!0})}else await u(p);s.captured=m.captured,s.reused=m.reused,s.end=A(me)},Je=(await Promise.allSettled(E.map((e,t)=>mt(t,e).catch(n=>{throw Pe.abort(n),n})))).find(e=>e.status==="rejected");if(Je)throw Je.reason;await Promise.all(le),h.parts=A(lt);const $=await(N??Ie()),xe=$?.loudness;a.onProgress?.(.95),F.throwIfAborted();const pt=performance.now();let U;if(d==="png"){const e=a.out.replace(/\.png$/,"");U=[];const t=(await bt(ee)).filter(n=>/^frame\.\d+\.png$/.test(n)).sort();for(const n of t){F.throwIfAborted();const o=`${e}.${n.slice(6)}`;V.push(o),await Ye(S(ee,n),o),U.push(o)}D&&xe&&(V.push(`${e}.wav`),await Ye(D,`${e}.wav`),U.push(`${e}.wav`))}else if(d==="gif")V.push(a.out),await de(y,["-v","error","-y","-framerate",pe.text,"-start_number","1","-i",S(ee,"frame.%05d.png"),"-filter_complex","split[a][b];[a]palettegen=stats_mode=diff[p];[b][p]paletteuse=dither=sierra2_4a","-r",pe.text,"-loop","0",a.out],void 0,F);else{if(C){const n=C.bufferKbps*1e3;let o=Bt*n;for(const[i,s]of ie.entries()){const k=await qe(s,T);if(!k)continue;const m=Ne(k,C,l,o);if(!m.breaks){o=m.end;continue}const O=G(k.length,!0,o/n),x=r=>de(y,["-v","error","-y","-i",s,"-an",...O,r],void 0,F);let p=S(H,`held.${String(i)}.mp4`);const v=Z[i];K&&v?p=(await K.segment(tt(Buffer.from(JSON.stringify(["held across the join",v,O]))),P,x)).file:await x(p),ie[i]=p,h.capped=(h.capped??0)+1,o=Ne(await qe(p,T)??k,C,l,o).end}}const e=S(H,"segments.txt");await Mt(e,ie.map(n=>`file '${n.replace(/'/g,"'\\''")}'
|
|
3
|
+
`).join(""));const t=d==="mov"?["-c:a","pcm_s24le"]:d==="webm"?["-c:a","libopus","-b:a",`${String(a.encode?.audioBitrate??160)}k`]:["-c:a","aac","-b:a",`${String(a.encode?.audioBitrate??192)}k`];V.push(a.out),await de(y,["-v","error","-y","-f","concat","-safe","0","-i",e,...D===void 0?[]:["-i",D],"-map","0:v",...D===void 0?[]:["-map","1:a"],"-c:v","copy",...D===void 0?[]:t,...d==="mp4"||d==="mov"?["-movflags","+faststart"]:[],...ge,a.out],void 0,F)}V.length=0,h.mux=A(pt),a.onProgress?.(1);const Ue=U??[a.out];let Xe=0;for(const e of Ue)Xe+=(await xt(e)).size;return{out:Ue[0]??a.out,frames:_e,duration:_e/l,bytes:Xe,...xe?{loudness:xe}:{},...$?.gainDb!==void 0?{master:{...$.before?{before:$.before}:{},gainDb:$.gainDb,...$.limited===void 0?{}:{limited:$.limited},target:$.target,...$.rounds===void 0?{}:{rounds:$.rounds}}}:{},...U?{files:U}:{},parts:{total:E.filter(e=>!e.junction).length,cached:ze},...E.some(e=>e.junction)?{junctions:{total:E.filter(e=>e.junction).length,cached:We}}:{},timings:{...h,total:A(me),part:h.part.map(e=>({...e,capture:Math.round(e.capture*1e3)/1e3,waitFrames:Math.round(e.waitFrames*1e3)/1e3,waitPipe:Math.round(e.waitPipe*1e3)/1e3}))}}}finally{await Promise.allSettled([...le,...N?[N]:[]]),await rt(),await Promise.all(V.map(q=>re(q,{force:!0}))),await re(H,{recursive:!0,force:!0})}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{resolveMaster as
|
|
2
|
+
import{resolveMaster as d}from"@allyhub/audio";import{fileLoudness as m,master as c,mixToSamples as l}from"@allyhub/audio/node";import{seedKey as x}from"@allyhub/piece";import{mixPlan as y}from"@allyhub/video-core";import{ffmpegOf as h}from"./tools.js";export async function soundOf(f,s,e,n={}){const a={...f.media},r=new Set([...(e.audio.speech??[]).map(o=>o.file),...(e.audio.room??[]).map(o=>o.file),...e.audio.music?.file===void 0?[]:[e.audio.music.file],...(e.footage??[]).filter(o=>o.audio&&o.take!==!0).map(o=>o.file),...e.cues.flatMap(o=>o.file===void 0?[]:[o.file])]);for(const o of r){const u=a[o],i=f.path(o);if(!u||!i)continue;const t=await m(i,n.ffmpeg===void 0?{}:{ffmpeg:n.ffmpeg});t!==void 0&&(a[o]={...u,loudness:t.lufs,...t.by==="level"?{loudnessBy:"level"}:{}})}const p=`${s.piece}:${s.output}:${x(s.combo,s.format)}`;return{plan:y(e,a,{seed:p}),sources:{file:o=>f.path(o)}}}export const masterOf=f=>f.audio.master??d(void 0);export async function mixSound(f){const s=await h(f),{timeline:e,sound:n}=f,a=Math.round(e.duration*e.fps);return c(await l(n.plan,n.sources,{ffmpeg:s}),a/e.fps,f.out,n.master??masterOf(e),{ffmpeg:s})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{
|
|
2
|
+
import{ffmpegOf as n}from"@allyhub/audio/node";import{createRuntimes as t}from"@allyhub/runtimes";export{n as ffmpegOf};let o;export function ffprobeOf(e={}){if(e.ffprobe!==void 0)return Promise.resolve(e.ffprobe);const f=o??t().bin("ffmpeg","ffprobe").catch(r=>{throw o=void 0,r});return o=f,f}export async function toolsOf(e={}){const[f,r]=await Promise.all([n(e),ffprobeOf(e)]);return{ffmpeg:f,ffprobe:r}}export{runFfmpegWith}from"@allyhub/runtimes";export const write=(e,f)=>new Promise(r=>{e.write(f)?r():e.once("drain",r)});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{renderCaptions as o,renderCover as c,renderPdf as d,renderPng as p,renderPptx as i}from"./exports.js";export function renderStills(r,t,s){const{captions:n,...a}=s,e={page:r.graphics(),target:r.target,look:r.look,media:r.media,...a};switch(t){case"srt":case"vtt":return o({...e,type:t,...n?{captions:n}:{}});case"pdf":return d(e);case"pptx":return i(e);case"png":return p(e);case"cover":return c(e)}}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/render",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"default": "./dist/index.js"
|
|
9
|
-
},
|
|
10
|
-
"./doc": {
|
|
11
|
-
"types": "./dist/doc/index.d.ts",
|
|
12
|
-
"default": "./dist/doc/index.js"
|
|
13
9
|
}
|
|
14
10
|
},
|
|
15
11
|
"private": true,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{cuesIn as b,
|
|
2
|
+
import{cuesIn as b,wordCues as v}from"@allyhub/video-core";import{joinWords as c}from"@allyhub/piece";const p=a=>Math.round(a*1e3)/1e3,E=a=>Math.round(a*1e6)/1e6;export function noCaptions(){return{lines:[],asked:void 0,cues:()=>[],partCues:()=>[],partWords:()=>[],wordEnd:(a,i)=>i+.4}}export function captionTrack(a,i,W){const{specs:f,videoTakes:C,results:h}=a,{timing:m}=i,k=f.flatMap((t,s)=>{const e=m.parts[s],n=C[s];if(n&&e)return n.captionWords.length===0?[]:[{part:t.key,shown:n.line.shown||c(n.captionWords),spoken:n.line.spoken||c(n.captionWords),words:n.captionWords.map(o=>({text:o.text,start:p(o.start+e.start),end:p(o.end+e.start)}))}];const r=h[s]?.speech,d=e?.speechAt;if(d===void 0||!r||r.words.length===0)return[];const M=r.words.map(o=>({text:o.text,start:p(o.start+d),end:p(o.end+d)})),u=r.ranges?c(r.words):h[s]?.shown??c(r.words),y=r.ranges?u:r.script??u;return[{part:t.key,shown:u,spoken:y,words:M}]}),l=new Map,x=(t={})=>{const s=JSON.stringify([t.maxChars,t.maxWords,t.keep,t.close]);let e=l.get(s);return e||(e=v(k,{fps:W,...t.maxChars===void 0?{}:{maxChars:t.maxChars},...t.maxWords===void 0?{}:{maxWords:t.maxWords},...t.keep===void 0?{}:{keep:t.keep},...t.close===void 0?{}:{close:t.close}}),l.set(s,e)),e},w=new Map(f.map((t,s)=>[t.key,m.words(s)]));let g;return{lines:k,get asked(){return g},cues:x,partCues(t,s,e){g??=e??{};const n=b(x(e),t,s);return e?.edges!==!0?n:n.map((r,d)=>({...r,...d===0?{start:0}:{},...d===n.length-1?{end:E(s-t)}:{}}))},partWords:t=>w.get(t)??[],wordEnd(t,s){let e;for(const n of w.get(t)??[])(!e||Math.abs(n.start-s)<Math.abs(e.start-s))&&(e=n);return e&&Math.abs(e.start-s)<.05?e.end:s+.4}}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{
|
|
2
|
+
import{problem as A}from"@allyhub/diagnostics";import{momentOf as E,timeParts as M,transitionSpec as O,transitionWindow as P}from"@allyhub/video-core";import{messageOf as x}from"@allyhub/image-draw/errors";const b=p=>Math.round(p*1e6)/1e6;export function timeFilm(p,y,m,c){const{source:$,ledger:g}=p,{fps:d}=y,{specs:i,inputs:f}=m,u=c?.snapTo(f),n=M([...f],{fps:d,beat:c?.beat??0,beatPhase:c?.beatPhase??0,...u?{snap:u}:{}});m.videoTakes.forEach((t,e)=>{const r=n.parts[e];!t||!r||(t.shown.start=r.start,t.shown.partStart=r.start)});const h=i.map((t,e)=>{const r=n.parts[e],a=f[e]?.placed??[],o=[...a,...(f[e]?.anchors??[]).filter(s=>!a.some(T=>T.name===s.name))];return{key:t.key,start:r?.start??0,anchors:r?o.map(s=>({name:s.name,at:b(r.start+n.at(e,`@${s.name}`)),...s.end===void 0?{}:{end:b(r.start+n.at(e,`@/${s.name}`))}})):[]}}),w=t=>E({parts:h},t),k=(t,e)=>{try{if(typeof t=="number")return t;if(typeof t=="string")return w(t);const r=i.findIndex(o=>o.key===t.part),a=n.parts[r];if(r<0||!a)throw new Error(`The video has no part ${t.part}; its parts are ${i.map(o=>o.key).join(", ")}.`);return a.start+n.at(r,t.at)}catch(r){g.problems.push(A("AK-T004",`${e}: ${x(r)}`,{where:{file:$.file}}));return}},l=new Map;{const t=e=>Math.round((e.end-e.start)*d);i.forEach((e,r)=>{const a=n.parts[r-1],o=n.parts[r];if(e.transition===void 0||!a||!o)return;const s=P(O(e.transition),d,t(a),t(o));s.before+s.after>0&&l.set(r,s)})}return{timing:n,duration:n.duration,parts:h,filmAt:w,momentAt:k,windows:l}}
|