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
|
-
import{SHAPE_TYPES as ee}from"@allyhub/ooxml/enums";import{evaluate as te,presetAdjustments as ne}from"@allyhub/ooxml/geometry";import{as as H,parseXml as oe}from"@allyhub/ooxml";import{strFromU8 as ae}from"fflate";import{isConnectorGeometry as ie,pathSteps as re}from"@allyhub/slides-core";import{fillOf as I,lineOf as B,say as b,shadowOf as W,styleOf as V}from"./common.js";import{chartOf as se}from"./chart.js";import{tableOf as ce}from"./table.js";import{BODY_DEFAULTS as de,bodyOf as le}from"./text.js";const Z=new Set(["title","ctrTitle","subTitle","body","pic","media","obj","dt","ftr","sldNum"]),pe=new Set(ee),q={place:e=>e};function z(e){const r=e?.one("a:off"),n=e?.one("a:ext");if(!(!e||!r||!n))return{frame:{left:r.attr("x")??0,top:r.attr("y")??0,width:n.attr("cx")??0,height:n.attr("cy")??0},rotation:e.attrOr("rot")/6e4%360,flip:{h:e.attrOr("flipH"),v:e.attrOr("flipV")}}}function D(e){if(!e)return{};const r=Math.round((e.rotation%360+360)%360*1e3)/1e3;return{frame:{left:Math.round(e.frame.left),top:Math.round(e.frame.top),width:Math.round(e.frame.width),height:Math.round(e.frame.height)},...r===0||r===360?{}:{rotation:r},...e.flip.h||e.flip.v?{flip:{...e.flip.h?{h:!0}:{},...e.flip.v?{v:!0}:{}}}:{}}}function fe(e,r){const n=(i,g)=>e?.one(i)?.attr(g)??0,o=(i,g)=>e?.one(i)?.attr(g)??0,d=o("a:chExt","cx")===0?1:o("a:ext","cx")/o("a:chExt","cx"),t=o("a:chExt","cy")===0?1:o("a:ext","cy")/o("a:chExt","cy"),s=(e?.attrOr("rot")??0)/6e4%360,h=e?.attrOr("flipH")??!1,l=e?.attrOr("flipV")??!1,w=n("a:off","x")+o("a:ext","cx")/2,c=n("a:off","y")+o("a:ext","cy")/2;return i=>{const g=i.frame.width*d,p=i.frame.height*t;let f=n("a:off","x")+(i.frame.left-n("a:chOff","x"))*d+g/2,u=n("a:off","y")+(i.frame.top-n("a:chOff","y"))*t+p/2,a=i.rotation;const y={...i.flip};if(h&&(f=2*w-f,a=-a,y.h=!y.h),l&&(u=2*c-u,a=-a,y.v=!y.v),s!==0){const v=s*Math.PI/180,[S,m]=[f-w,u-c];f=w+S*Math.cos(v)-m*Math.sin(v),u=c+S*Math.sin(v)+m*Math.cos(v),a+=s}return r.place({frame:{left:f-g/2,top:u-p/2,width:g,height:p},rotation:a,flip:y})}}function ue(e,r,n){const o=a=>(a?.all("a:gd")??[]).map(y=>[y.attr("name")??"",y.attr("fmla")??""]),d=o(e.one("a:avLst")),t=o(e.one("a:gdLst"));e.one("a:ahLst")?.skip("a freeform's handles: editing aids"),e.one("a:cxnLst")?.skip("a freeform's connection sites: editing aids"),e.one("a:rect")?.skip("a freeform's text rectangle: its text takes the shape's box");const s=a=>H(a).all("a:pt").flatMap(y=>[String(y.attr("x")??"0"),String(y.attr("y")??"0")]),h={"a:moveTo":"M","a:lnTo":"L","a:quadBezTo":"Q","a:cubicBezTo":"C","a:close":"Z","a:arcTo":"A"},l=(e.one("a:pathLst")?.all("a:path")??[]).map(a=>{const y=a.kids().map(m=>{if(m.use(),m.key==="a:arcTo"){const x=m;return["A",...["wR","hR","stAng","swAng"].map(j=>String(x.attr(j)??"0"))].join(" ")}return[h[m.key]??"Z",...s(m)].join(" ")}),v=a.attr("fill"),S=a.attr("stroke");return a.attr("extrusionOk"),{...a.attr("w")?{w:a.attr("w")}:{},...a.attr("h")?{h:a.attr("h")}:{},...v===void 0||v==="norm"?{}:{fill:v},...S===!1?{stroke:!1}:{},d:y.join(" ")}});if(l.length===0)return;l.some(a=>a.fill!==void 0||a.stroke===!1)&&b(n,"approximated","a:path@fill","a freeform's paths are drawn alike: filled and outlined");const w=l[0]?.w??0,c=l[0]?.h??0,i=w>0&&c>0&&l.every(a=>(a.w??0)===w&&(a.h??0)===c),g=i?w:r&&r.width>0?r.width:w>0?w:1,p=i?c:r&&r.height>0?r.height:c>0?c:1,f=te({av:d,gd:t,paths:l.map(a=>({d:a.d,...a.w?{w:a.w}:{},...a.h?{h:a.h}:{}}))},g,p),u=re(f.paths.map(a=>a.d).join(" "));return u?{w:g,h:p,steps:u}:void 0}function he(e,r,n){const o=new Map((r?.all("a:gd")??[]).map(s=>[s.attr("name")??"",s.attr("fmla")??""]));if(o.size===0)return;const d=ne(e);for(const s of o.keys())d.some(h=>h.name===s)||b(n,"unread","a:gd@name",`${e} has no adjustment ${s}`);return d.map(s=>{const h=o.get(s.name),l=h===void 0?NaN:Number(/^val\s+(-?[\d.]+)$/u.exec(h.trim())?.[1]);return h!==void 0&&Number.isNaN(l)&&b(n,"approximated","a:gd@fmla",`an adjustment by a formula (${h}) is the preset's own`),(Number.isNaN(l)?s.value:l)/1e5})}function E(e,r){const n=e?.attr("name")??"",o=e?.attr("id"),d=e?.attr("descr");e?.attr("hidden")===!0&&b(r,"cannot-hold","p:cNvPr@hidden","a shape hidden on its slide"),e?.attr("title")&&b(r,"cannot-hold","p:cNvPr@title","an alternative text's title");for(const s of["a:hlinkClick","a:hlinkHover"]){const h=e?.one(s);if(h?.attr("action")==="ppaction://media"){h.consume();continue}h&&(b(r,"cannot-hold",s,"a link on a whole shape"),h.consume())}return{name:n,...o===void 0?{}:{id:String(o)},...d?{alt:d}:{}}}export function shapesOf(e,r,n=q){const o=[];if(!e)return o;for(const d of e.kids())switch(d.key){case"p:nvGrpSpPr":case"p:grpSpPr":n===q&&d.consume();break;case"p:sp":o.push(...be(d,r,n));break;case"p:cxnSp":o.push(...we(d,r,n));break;case"p:pic":o.push(...K(d,r,n));break;case"p:graphicFrame":o.push(...ve(d,r,n));break;case"p:grpSp":o.push(...ke(d,r,n));break;case"p:contentPart":d.use(),b(r,"cannot-hold","p:contentPart","ink"),d.consume();break;default:break}return o}const C=(e,r,n)=>{const o=`${e.where} › "${n||"unnamed"}"`;return r.label(o),{...e,where:o}},me=["noGrp","noUngrp","noSelect","noChangeAspect","noEditPoints","noAdjustHandles","noChangeArrowheads","noChangeShapeType","noTextEdit","noCrop","noDrilldown"];function $(e,r){if(!e)return!1;const n=H(e),o=e.key!=="a:graphicFrameLocks",d=n.attr("noMove")===!0,t=n.attr("noResize")===!0,s=o&&n.attr("noRot")===!0;return n.ignore(me,"locks against editing in PowerPoint"),H(e).one("a:extLst")?.skip("a lock's extensions"),d&&t?!0:((d||t||s)&&b(r,"cannot-hold",`${e.key}@${[d&&"noMove",t&&"noResize",s&&"noRot"].filter(Boolean).join(",")}`,"a shape locked against some changes and not others: a deck locks moving, sizing and turning together"),!1)}const ge={};function be(e,r,n){e.use();const o=e.one("p:nvSpPr"),d=o?.one("p:cNvPr"),t=C(r,e,d?.el.attrs.find(P=>P.key==="name")?.value??""),s=E(d,t),h=o?.one("p:cNvSpPr");$(h?.one("a:spLocks"),t)&&(s.locked=!0);const l=h?.attr("txBox")===!0,w=o?.one("p:nvPr");w?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const c=w?.one("p:ph"),i=e.one("p:spPr");i?.ignore(["bwMode"],"a shape's black and white printing mode");const g=z(i?.one("a:xfrm")),p=D(g&&n.place(g)),f=i?.one("a:prstGeom"),u=f?.attr("prst"),a=I(i,t),y=i?.one("a:ln"),v=B(y,t),S=W(i?.one("a:effectLst"),t),m=c||l?{}:V(e.one("p:style"),t);(c||l)&&e.one("p:style")?.skip("a placeholder's or a text box's style: its own properties are what it shows");const x=a?.group?n.fill:a;a?.group&&!n.fill&&b(t,"approximated","a:grpFill","a group's fill outside a group is none");const j=e.one("p:txBody"),G=c!==void 0&&!t.part.includes("/slides/")&&(c.attr("type")??"obj")!=="sldNum",_=j?le(j,c&&!t.part.includes("/slideMasters/")?ge:de,t,G):void 0,M={...s,kind:"autoshape",...p,...x?.fill!==void 0?{fill:x.fill}:x?.gradient?{}:c?{}:l?{fill:null}:m.fill!==void 0?{fill:m.fill}:m.gradient?{}:{fill:null},...(x?.fill_transparency??(x?void 0:m.fill_transparency))===void 0?{}:{fill_transparency:x?.fill_transparency??m.fill_transparency??0},...x?.gradient??(x?void 0:m.gradient)?{gradient:x?.gradient??m.gradient}:{},...S??m.shadow?{shadow:S??m.shadow}:{},...v.line!==void 0?{line:v.line}:c?{}:l?{}:{line:m.line??null},...(v.line_width??(c?void 0:m.line_width))===void 0?{}:{line_width:v.line_width??m.line_width},...(v.line_dash??m.line_dash)===void 0?{}:{line_dash:v.line_dash??m.line_dash},...(v.line_begin??m.line_begin)===void 0?{}:{line_begin:v.line_begin??m.line_begin},...(v.line_end??m.line_end)===void 0?{}:{line_end:v.line_end??m.line_end},...m.text_color===void 0?{}:{text_color:m.text_color},..._?{text:_}:{},...n.group===void 0?{}:{group:n.group}};if(c){const P=c.attr("type")??"obj",F=c.attr("idx")??0;if(c.ignore(["hasCustomPrompt"],"a placeholder's own prompt text"),c.attr("orient")==="vert"&&b(t,"cannot-hold","p:ph@orient","a vertical placeholder"),c.attr("sz"),P==="sldImg"||P==="hdr")return[];const N=Z.has(P)?P:P==="clipArt"||P==="chart"||P==="tbl"||P==="dgm"?"obj":"body";return Z.has(P)||b(t,"approximated","p:ph@type",`a ${P} placeholder is a${N==="obj"?"n object":" body"} placeholder`),u!==void 0&&u!=="rect"?[{...M,kind:"placeholder",placeholder:{type:N,idx:F},geometry:u,...U(u,f?.one("a:avLst"),t)}]:(f?.one("a:avLst"),[{...M,kind:"placeholder",placeholder:{type:N,idx:F}}])}const T=i?.one("a:custGeom"),L=T?ue(T,p.frame,t):void 0;T&&!L&&b(t,"approximated","a:custGeom","a freeform with no outline is a rectangle");const R=u!==void 0&&pe.has(u)?u:"rect";return[{...M,kind:l?"textbox":"autoshape",...L?{path:L}:{geometry:R},...u===void 0||L?{}:U(u,f?.one("a:avLst"),t)}]}const U=(e,r,n)=>{const o=he(e,r,n);return o?{adjustments:o}:{}};function we(e,r,n){e.use();const o=e.one("p:nvCxnSpPr"),d=o?.one("p:cNvPr"),t=C(r,e,d?.el.attrs.find(y=>y.key==="name")?.value??""),s=E(d,t),h=o?.one("p:cNvCxnSpPr");$(h?.one("a:cxnSpLocks"),t)&&(s.locked=!0);for(const y of["a:stCxn","a:endCxn"]){const v=h?.one(y);v&&(b(t,"cannot-hold",y,"a connector's end joined to a shape: it stays where it is"),v.consume())}o?.one("p:nvPr");const l=e.one("p:spPr");l?.ignore(["bwMode"],"a shape's black and white printing mode");const w=z(l?.one("a:xfrm")),c=l?.one("a:prstGeom"),i=c?.attr("prst")??"line",g=U(i,c?.one("a:avLst"),t),p=V(e.one("p:style"),t),f=B(l?.one("a:ln"),t),u=W(l?.one("a:effectLst"),t),a=ie(i);return a||b(t,"approximated","a:prstGeom@prst",`a connector of the ${i} preset is a shape of it with no fill`),[{...s,kind:"autoshape",geometry:i,...g,...D(w&&n.place(w)),...a?{}:{fill:null},line:f.line??p.line??null,...(f.line_width??p.line_width)===void 0?{}:{line_width:f.line_width??p.line_width},...(f.line_dash??p.line_dash)===void 0?{}:{line_dash:f.line_dash??p.line_dash},...(f.line_begin??p.line_begin)===void 0?{}:{line_begin:f.line_begin??p.line_begin},...(f.line_end??p.line_end)===void 0?{}:{line_end:f.line_end??p.line_end},...u??p.shadow?{shadow:u??p.shadow}:{},...n.group===void 0?{}:{group:n.group}}]}function K(e,r,n){e.use();const o=e.one("p:nvPicPr"),d=o?.one("p:cNvPr"),t=C(r,e,d?.el.attrs.find(k=>k.key==="name")?.value??""),s=E(d,t),h=o?.one("p:cNvPicPr");$(h?.one("a:picLocks"),t)&&(s.locked=!0),h?.attr("preferRelativeResize");const l=o?.one("p:nvPr");l?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const w=l?.one("p:ph"),c=l?.one("a:videoFile"),i=l?.choice("a:audioFile","a:wavAudioFile","a:audioCd","a:quickTimeFile"),g=l?.one("p:extLst")?.all("p:ext").flatMap(k=>{const O=k.one("p14:media");return O?[O]:[]})[0],p=t.read.pkg,f=p.rel(t.part,g?.attr("r:embed"))??p.rel(t.part,c?.attr("r:link"));if(g){g.attr("r:link");for(const k of["p14:trim","p14:fade","p14:bmkLst"]){const O=g.one(k);O&&(b(t,"cannot-hold",k,k==="p14:trim"?"a video's trim":k==="p14:fade"?"a video's fade in and out":"a video's bookmarks"),O.consume())}}i&&(b(t,"cannot-hold",i.key,"a sound"),i.consume());const u=e.one("p:blipFill");u?.ignore(["dpi","rotWithShape"],"a picture's resolution and turning with its fill");const a=u?.one("a:blip");a?.ignore(["cstate"],"a picture's compression state");const y=a?.one("a:extLst")?.all("a:ext").flatMap(k=>{const O=k.one("asvg:svgBlip");return k.one("a14:useLocalDpi")?.skip("a picture kept at its own resolution"),O?[O]:[]})[0],v=p.rel(t.part,y?.attr("r:embed"))??p.rel(t.part,a?.attr("r:embed"));a?.attr("r:link")&&b(t,"missing","a:blip@r:link","a picture linked from outside the file");for(const k of a?.kids()??[])k.key!=="a:extLst"&&(k.use(),b(t,"cannot-hold",k.key,"a picture's own effect (transparency, recolouring, brightness)"),k.consume());const m=u?.one("a:srcRect"),x=k=>(m?.attr(k)??0)/1e5,j=m?{left:x("l"),top:x("t"),right:x("r"),bottom:x("b")}:void 0;u?.one("a:stretch")?.consume();const G=u?.one("a:tile");G&&(b(t,"cannot-hold","a:tile","a picture tiled in its frame"),G.consume());const _=e.one("p:spPr");_?.ignore(["bwMode"],"a shape's black and white printing mode");const M=z(_?.one("a:xfrm")),T=_?.one("a:prstGeom"),L=T?.attr("prst");T?.one("a:avLst"),L!==void 0&&L!=="rect"&&b(t,"cannot-hold","a:prstGeom@prst",`a picture cut to a ${L}`);const R=_?.one("a:ln");R&&B(R,t).line&&b(t,"cannot-hold","p:pic/a:ln","a picture's outline");const P=W(_?.one("a:effectLst"),t),F=I(_,t);(F?.fill||F?.gradient)&&b(t,"cannot-hold","p:pic/p:spPr","a fill behind a picture"),e.one("p:style")?.skip("a picture's style");const A=c!==void 0||g!==void 0&&!i,N=A?f:v;if(!N||N.external)return b(t,"missing","p:pic","a picture or a video whose file is not in the file"),[];p.bytes(N.target),A&&(v&&p.bytes(v.target),c?.attr("r:link"));const Y=s.alt!==void 0&&/^[^\s/\\]+\.[A-Za-z0-9]{2,5}$/u.test(s.alt);Y&&d?.ignore(["descr"],"a picture's file name as its description (python-pptx's habit)");const J=s.alt===void 0||Y?{}:{alt:s.alt};return[{name:s.name,...s.id===void 0?{}:{id:s.id},...s.locked?{locked:!0}:{},...J,kind:A?"movie":"picture",...w?{placeholder:{type:w.attr("type")??"pic",idx:w.attr("idx")??0}}:{},...D(M&&n.place(M)),part:N.target,...j&&!A?{crop:j}:{},...P?{shadow:P}:{},...n.group===void 0?{}:{group:n.group}}]}function ve(e,r,n){e.use();const o=e.one("p:nvGraphicFramePr"),d=o?.one("p:cNvPr"),t=C(r,e,d?.el.attrs.find(f=>f.key==="name")?.value??""),s=E(d,t);$(o?.one("p:cNvGraphicFramePr")?.one("a:graphicFrameLocks"),t)&&(s.locked=!0);const h=o?.one("p:nvPr")?.one("p:ph");h&&(b(t,"approximated","p:ph","a table, a chart or an object in a placeholder is the slide's own, its placeholder left empty"),h.consume()),e.ignore(["bwMode"],"a shape's black and white printing mode");const l=z(e.one("p:xfrm")),w=D(l&&n.place(l)),c=e.one("a:graphic")?.one("a:graphicData"),i=c?.attr("uri")??"",g={...s,...w,...n.group===void 0?{}:{group:n.group}};if(i.endsWith("/table")){const f=c?.one("a:tbl");if(f)return[{...g,kind:"table",table:ce(f.use(),t)}]}if(i.endsWith("/chart")){const f=c?.one("c:chart");f?.use();const u=t.read.pkg.rel(t.part,f?.attr("r:id")),a=u?se(u.target,t):"its chart is not in the file";return typeof a=="string"?(b(t,"cannot-hold","c:chart",a),[]):[{...g,kind:"chart",chart:a}]}if(i.endsWith("/diagram"))return b(t,"cannot-hold","dgm:relIds","SmartArt"),c?.consume(),[];const p=c?.one("p:oleObj");if(p){p.use(),b(t,"approximated","p:oleObj",`an embedded ${p.attr("progId")??"object"} is its picture`),p.ignore(["spid","name","showAsIcon","r:id","imgW","imgH","progId"],"an embedded object's program and size"),p.one("p:embed")?.consume(),p.one("p:link")?.consume();const f=p.one("p:pic");if(f){const[a]=K(f,r,n);return a?[{...a,...s,...w,kind:"picture"}]:[]}const u=ye(p.el.attrs.find(a=>a.key==="spid")?.value,t);return u?[{...g,kind:"picture",part:u}]:(b(t,"missing","p:oleObj","an embedded object whose picture is not in the file"),[])}return b(t,"cannot-hold","a:graphicData",i||"a graphic frame"),c?.consume(),[]}const Q="urn:schemas-microsoft-com:vml",X="urn:schemas-microsoft-com:office:office";function ye(e,r){const n=r.read.pkg,o=n.relOfType(r.part,"vmlDrawing")?.target,d=o===void 0?void 0:n.bytes(o);if(o===void 0||!d||e===void 0)return;let t;try{t=oe(ae(d))}catch{return}const s=(i,g,p)=>i.attrs.find(f=>f.uri===g&&f.local===p)?.value,h=i=>[i,...i.children.flatMap(h)],w=h(t).find(i=>i.uri===Q&&(s(i,"","id")===e||s(i,X,"spid")===e))?.children.find(i=>i.uri===Q&&i.local==="imagedata"),c=n.rel(o,w&&s(w,X,"relid"));if(!(!c||c.external||!n.bytes(c.target)))return c.target}function ke(e,r,n){e.use();const o=e.one("p:nvGrpSpPr"),d=o?.one("p:cNvPr"),t=C(r,e,d?.el.attrs.find(g=>g.key==="name")?.value??""),s=E(d,t),h=$(o?.one("p:cNvGrpSpPr")?.one("a:grpSpLocks"),t);o?.one("p:nvPr");const l=e.one("p:grpSpPr");l?.ignore(["bwMode"],"a shape's black and white printing mode");const w=I(l,t),c=l?.one("a:effectLst");c&&(b(t,"cannot-hold","p:grpSpPr/a:effectLst","a group's own effects"),c.consume()),n.group!==void 0&&b(t,"approximated","p:grpSp",`a group in a group is one group, ${n.group}`);const i=shapesOf(e,t,{...w?{fill:w}:n.fill?{fill:n.fill}:{},group:n.group??s.name,place:fe(l?.one("a:xfrm"),n)});return h?i.map(g=>({...g,locked:!0})):i}
|
|
2
|
+
import{SHAPE_TYPES as ee}from"@allyhub/ooxml/enums";import{evaluate as te,presetAdjustments as ne}from"@allyhub/ooxml/geometry";import{as as I,parseXml as oe}from"@allyhub/ooxml";import{strFromU8 as ie}from"fflate";import{isConnectorGeometry as ae,pathSteps as re}from"@allyhub/slides-core";import{fillOf as B,lineOf as W,say as v,shadowOf as U,styleOf as V}from"./common.js";import{chartOf as se}from"./chart.js";import{tableOf as ce}from"./table.js";import{BODY_DEFAULTS as de,bodyOf as le}from"./text.js";const Z=new Set(["title","ctrTitle","subTitle","body","pic","media","obj","dt","ftr","sldNum"]),pe=new Set(ee),q={place:e=>e};function D(e){const a=e?.one("a:off"),n=e?.one("a:ext");if(!(!e||!a||!n))return{frame:{left:a.attr("x")??0,top:a.attr("y")??0,width:n.attr("cx")??0,height:n.attr("cy")??0},rotation:e.attrOr("rot")/6e4%360,flip:{h:e.attrOr("flipH"),v:e.attrOr("flipV")}}}function H(e){if(!e)return{};const a=Math.round((e.rotation%360+360)%360*1e3)/1e3;return{frame:{left:Math.round(e.frame.left),top:Math.round(e.frame.top),width:Math.round(e.frame.width),height:Math.round(e.frame.height)},...a===0||a===360?{}:{rotation:a},...e.flip.h||e.flip.v?{flip:{...e.flip.h?{h:!0}:{},...e.flip.v?{v:!0}:{}}}:{}}}function fe(e,a){const n=(r,u)=>e?.one(r)?.attr(u)??0,o=(r,u)=>e?.one(r)?.attr(u)??0,l=o("a:chExt","cx")===0?1:o("a:ext","cx")/o("a:chExt","cx"),t=o("a:chExt","cy")===0?1:o("a:ext","cy")/o("a:chExt","cy"),s=(e?.attrOr("rot")??0)/6e4%360,m=e?.attrOr("flipH")??!1,f=e?.attrOr("flipV")??!1,g=n("a:off","x")+o("a:ext","cx")/2,c=n("a:off","y")+o("a:ext","cy")/2;return r=>{const u=r.frame.width*l,w=r.frame.height*t;let p=n("a:off","x")+(r.frame.left-n("a:chOff","x"))*l+u/2,d=n("a:off","y")+(r.frame.top-n("a:chOff","y"))*t+w/2,i=r.rotation;const _={...r.flip};if(m&&(p=2*g-p,i=-i,_.h=!_.h),f&&(d=2*c-d,i=-i,_.v=!_.v),s!==0){const b=s*Math.PI/180,[S,h]=[p-g,d-c];p=g+S*Math.cos(b)-h*Math.sin(b),d=c+S*Math.sin(b)+h*Math.cos(b),i+=s}return a.place({frame:{left:p-u/2,top:d-w/2,width:u,height:w},rotation:i,flip:_})}}function ue(e,a,n){const o=i=>(i?.all("a:gd")??[]).map(_=>[_.attr("name")??"",_.attr("fmla")??""]),l=o(e.one("a:avLst")),t=o(e.one("a:gdLst"));e.one("a:ahLst")?.skip("a freeform's handles: editing aids"),e.one("a:cxnLst")?.skip("a freeform's connection sites: editing aids"),e.one("a:rect")?.skip("a freeform's text rectangle: its text takes the shape's box");const s=i=>I(i).all("a:pt").flatMap(_=>[String(_.attr("x")??"0"),String(_.attr("y")??"0")]),m={"a:moveTo":"M","a:lnTo":"L","a:quadBezTo":"Q","a:cubicBezTo":"C","a:close":"Z","a:arcTo":"A"},f=(e.one("a:pathLst")?.all("a:path")??[]).map(i=>{const _=i.kids().map(h=>{if(h.use(),h.key==="a:arcTo"){const P=h;return["A",...["wR","hR","stAng","swAng"].map(k=>String(P.attr(k)??"0"))].join(" ")}return[m[h.key]??"Z",...s(h)].join(" ")}),b=i.attr("fill"),S=i.attr("stroke");return i.attr("extrusionOk"),{...i.attr("w")?{w:i.attr("w")}:{},...i.attr("h")?{h:i.attr("h")}:{},...b===void 0||b==="norm"?{}:{fill:b},...S===!1?{stroke:!1}:{},d:_.join(" ")}});if(f.length===0)return;f.some(i=>i.fill!==void 0||i.stroke===!1)&&v(n,"approximated","a:path@fill","a freeform's paths are drawn alike: filled and outlined");const g=f[0]?.w??0,c=f[0]?.h??0,r=g>0&&c>0&&f.every(i=>(i.w??0)===g&&(i.h??0)===c),u=r?g:a&&a.width>0?a.width:g>0?g:1,w=r?c:a&&a.height>0?a.height:c>0?c:1,p=te({av:l,gd:t,paths:f.map(i=>({d:i.d,...i.w?{w:i.w}:{},...i.h?{h:i.h}:{}}))},u,w),d=re(p.paths.map(i=>i.d).join(" "));return d?{w:u,h:w,steps:d}:void 0}function he(e,a,n){const o=new Map((a?.all("a:gd")??[]).map(s=>[s.attr("name")??"",s.attr("fmla")??""]));if(o.size===0)return;const l=ne(e);for(const s of o.keys())l.some(m=>m.name===s)||v(n,"unread","a:gd@name",`${e} has no adjustment ${s}`);return l.map(s=>{const m=o.get(s.name),f=m===void 0?NaN:Number(/^val\s+(-?[\d.]+)$/u.exec(m.trim())?.[1]);return m!==void 0&&Number.isNaN(f)&&v(n,"approximated","a:gd@fmla",`an adjustment by a formula (${m}) is the preset's own`),(Number.isNaN(f)?s.value:f)/1e5})}function C(e,a){const n=e?.attr("name")??"",o=e?.attr("id"),l=e?.attr("descr");e?.attr("hidden")===!0&&v(a,"cannot-hold","p:cNvPr@hidden","a shape hidden on its slide"),e?.attr("title")&&v(a,"cannot-hold","p:cNvPr@title","an alternative text's title");for(const s of["a:hlinkClick","a:hlinkHover"]){const m=e?.one(s);if(m?.attr("action")==="ppaction://media"){m.consume();continue}m&&(v(a,"cannot-hold",s,"a link on a whole shape"),m.consume())}return{name:n,...o===void 0?{}:{id:String(o)},...l?{alt:l}:{}}}export function shapesOf(e,a,n=q){const o=[];if(!e)return o;for(const l of e.kids())switch(l.key){case"p:nvGrpSpPr":case"p:grpSpPr":n===q&&l.consume();break;case"p:sp":o.push(...be(l,a,n));break;case"p:cxnSp":o.push(...ve(l,a,n));break;case"p:pic":o.push(...K(l,a,n));break;case"p:graphicFrame":o.push(...we(l,a,n));break;case"p:grpSp":o.push(...ye(l,a,n));break;case"p:contentPart":l.use(),v(a,"cannot-hold","p:contentPart","ink"),l.consume();break;default:break}return o}const $=(e,a,n)=>{const o=`${e.where} › "${n||"unnamed"}"`;return a.label(o),{...e,where:o}},me=["noGrp","noUngrp","noSelect","noChangeAspect","noEditPoints","noAdjustHandles","noChangeArrowheads","noChangeShapeType","noTextEdit","noCrop","noDrilldown"];function G(e,a){if(!e)return!1;const n=I(e),o=e.key!=="a:graphicFrameLocks",l=n.attr("noMove")===!0,t=n.attr("noResize")===!0,s=o&&n.attr("noRot")===!0;return n.ignore(me,"locks against editing in PowerPoint"),I(e).one("a:extLst")?.skip("a lock's extensions"),l&&t?!0:((l||t||s)&&v(a,"cannot-hold",`${e.key}@${[l&&"noMove",t&&"noResize",s&&"noRot"].filter(Boolean).join(",")}`,"a shape locked against some changes and not others: a deck locks moving, sizing and turning together"),!1)}const ge={};function be(e,a,n){e.use();const o=e.one("p:nvSpPr"),l=o?.one("p:cNvPr"),t=$(a,e,l?.el.attrs.find(x=>x.key==="name")?.value??""),s=C(l,t),m=o?.one("p:cNvSpPr");G(m?.one("a:spLocks"),t)&&(s.locked=!0);const f=m?.attr("txBox")===!0,g=o?.one("p:nvPr");g?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const c=g?.one("p:ph"),r=e.one("p:spPr");r?.ignore(["bwMode"],"a shape's black and white printing mode");const u=D(r?.one("a:xfrm")),w=H(u&&n.place(u)),p=r?.one("a:prstGeom"),d=p?.attr("prst"),i=B(r,t),_=r?.one("a:ln"),b=W(_,t),S=r?.one("a:effectLst"),h=c||f?{}:V(e.one("p:style"),t),P=S?U(S,t):h.shadow;(c||f)&&e.one("p:style")?.skip("a placeholder's or a text box's style: its own properties are what it shows");const k=i?.group?n.fill:i;i?.group&&!n.fill&&v(t,"approximated","a:grpFill","a group's fill outside a group is none");const L=e.one("p:txBody"),N=c!==void 0&&!t.part.includes("/slides/")&&(c.attr("type")??"obj")!=="sldNum",A=L?le(L,c&&!t.part.includes("/slideMasters/")?ge:de,t,N):void 0,T={...s,kind:"autoshape",...w,...k?.fill!==void 0?{fill:k.fill}:k?.gradient?{}:c?{}:f?{fill:null}:h.fill!==void 0?{fill:h.fill}:h.gradient?{}:{fill:null},...(k?.fill_transparency??(k?void 0:h.fill_transparency))===void 0?{}:{fill_transparency:k?.fill_transparency??h.fill_transparency??0},...k?.gradient??(k?void 0:h.gradient)?{gradient:k?.gradient??h.gradient}:{},...P?{shadow:P}:{},...b.line!==void 0?{line:b.line}:c?{}:f?{}:{line:h.line??null},...(b.line_width??(c?void 0:h.line_width))===void 0?{}:{line_width:b.line_width??h.line_width},...(b.line_dash??h.line_dash)===void 0?{}:{line_dash:b.line_dash??h.line_dash},...(b.line_begin??h.line_begin)===void 0?{}:{line_begin:b.line_begin??h.line_begin},...(b.line_end??h.line_end)===void 0?{}:{line_end:b.line_end??h.line_end},...b.line_begin_size===void 0?{}:{line_begin_size:b.line_begin_size},...b.line_end_size===void 0?{}:{line_end_size:b.line_end_size},...h.text_color===void 0?{}:{text_color:h.text_color},...A?{text:A}:{},...n.group===void 0?{}:{group:n.group}};if(c){const x=c.attr("type")??"obj",z=c.attr("idx")??0;if(c.ignore(["hasCustomPrompt"],"a placeholder's own prompt text"),c.attr("orient")==="vert"&&v(t,"cannot-hold","p:ph@orient","a vertical placeholder"),c.attr("sz"),x==="sldImg"||x==="hdr")return[];const F=Z.has(x)?x:x==="clipArt"||x==="chart"||x==="tbl"||x==="dgm"?"obj":"body";return Z.has(x)||v(t,"approximated","p:ph@type",`a ${x} placeholder is a${F==="obj"?"n object":" body"} placeholder`),d!==void 0&&d!=="rect"?[{...T,kind:"placeholder",placeholder:{type:F,idx:z},geometry:d,...Y(d,p?.one("a:avLst"),t)}]:(p?.one("a:avLst"),[{...T,kind:"placeholder",placeholder:{type:F,idx:z}}])}const j=r?.one("a:custGeom"),M=j?ue(j,w.frame,t):void 0;j&&!M&&v(t,"approximated","a:custGeom","a freeform with no outline is a rectangle");const R=d!==void 0&&pe.has(d)?d:"rect";return[{...T,kind:f?"textbox":"autoshape",...M?{path:M}:{geometry:R},...d===void 0||M?{}:Y(d,p?.one("a:avLst"),t)}]}const Y=(e,a,n)=>{const o=he(e,a,n);return o?{adjustments:o}:{}};function ve(e,a,n){e.use();const o=e.one("p:nvCxnSpPr"),l=o?.one("p:cNvPr"),t=$(a,e,l?.el.attrs.find(S=>S.key==="name")?.value??""),s=C(l,t),m=o?.one("p:cNvCxnSpPr");G(m?.one("a:cxnSpLocks"),t)&&(s.locked=!0);const f={};for(const[S,h]of[["begin","a:stCxn"],["end","a:endCxn"]]){const P=m?.one(h);if(!P)continue;const k=P.attr("id"),L=P.attr("idx");k!==void 0&&L!==void 0&&(f[S]={id:String(k),site:L}),P.consume()}o?.one("p:nvPr");const g=e.one("p:spPr");g?.ignore(["bwMode"],"a shape's black and white printing mode");const c=D(g?.one("a:xfrm")),r=g?.one("a:prstGeom"),u=r?.attr("prst")??"line",w=Y(u,r?.one("a:avLst"),t),p=V(e.one("p:style"),t),d=W(g?.one("a:ln"),t),i=g?.one("a:effectLst"),_=i?U(i,t):p.shadow,b=ae(u);return b||v(t,"approximated","a:prstGeom@prst",`a connector of the ${u} preset is a shape of it with no fill`),[{...s,kind:"autoshape",geometry:u,...w,...H(c&&n.place(c)),...b?{}:{fill:null},line:d.line??p.line??null,...(d.line_width??p.line_width)===void 0?{}:{line_width:d.line_width??p.line_width},...(d.line_dash??p.line_dash)===void 0?{}:{line_dash:d.line_dash??p.line_dash},...(d.line_begin??p.line_begin)===void 0?{}:{line_begin:d.line_begin??p.line_begin},...(d.line_end??p.line_end)===void 0?{}:{line_end:d.line_end??p.line_end},...d.line_begin_size===void 0?{}:{line_begin_size:d.line_begin_size},...d.line_end_size===void 0?{}:{line_end_size:d.line_end_size},..._?{shadow:_}:{},...n.group===void 0?{}:{group:n.group},...f.begin||f.end?{glue:f}:{}}]}function K(e,a,n){e.use();const o=e.one("p:nvPicPr"),l=o?.one("p:cNvPr"),t=$(a,e,l?.el.attrs.find(y=>y.key==="name")?.value??""),s=C(l,t),m=o?.one("p:cNvPicPr");G(m?.one("a:picLocks"),t)&&(s.locked=!0),m?.attr("preferRelativeResize");const f=o?.one("p:nvPr");f?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const g=f?.one("p:ph"),c=f?.one("a:videoFile"),r=f?.choice("a:audioFile","a:wavAudioFile","a:audioCd","a:quickTimeFile"),u=f?.one("p:extLst")?.all("p:ext").flatMap(y=>{const O=y.one("p14:media");return O?[O]:[]})[0],w=t.read.pkg,p=w.rel(t.part,u?.attr("r:embed"))??w.rel(t.part,c?.attr("r:link"));if(u){u.attr("r:link");for(const y of["p14:trim","p14:fade","p14:bmkLst"]){const O=u.one(y);O&&(v(t,"cannot-hold",y,y==="p14:trim"?"a video's trim":y==="p14:fade"?"a video's fade in and out":"a video's bookmarks"),O.consume())}}r&&(v(t,"cannot-hold",r.key,"a sound"),r.consume());const d=e.one("p:blipFill");d?.ignore(["dpi","rotWithShape"],"a picture's resolution and turning with its fill");const i=d?.one("a:blip");i?.ignore(["cstate"],"a picture's compression state");const _=i?.one("a:extLst")?.all("a:ext").flatMap(y=>{const O=y.one("asvg:svgBlip");return y.one("a14:useLocalDpi")?.skip("a picture kept at its own resolution"),O?[O]:[]})[0],b=w.rel(t.part,_?.attr("r:embed"))??w.rel(t.part,i?.attr("r:embed"));i?.attr("r:link")&&v(t,"missing","a:blip@r:link","a picture linked from outside the file");for(const y of i?.kids()??[])y.key!=="a:extLst"&&(y.use(),v(t,"cannot-hold",y.key,"a picture's own effect (transparency, recolouring, brightness)"),y.consume());const h=d?.one("a:srcRect"),P=y=>(h?.attr(y)??0)/1e5,k=h?{left:P("l"),top:P("t"),right:P("r"),bottom:P("b")}:void 0;d?.one("a:stretch")?.consume();const L=d?.one("a:tile");L&&(v(t,"cannot-hold","a:tile","a picture tiled in its frame"),L.consume());const N=e.one("p:spPr");N?.ignore(["bwMode"],"a shape's black and white printing mode");const A=D(N?.one("a:xfrm")),T=N?.one("a:prstGeom"),j=T?.attr("prst");T?.one("a:avLst"),j!==void 0&&j!=="rect"&&v(t,"cannot-hold","a:prstGeom@prst",`a picture cut to a ${j}`);const M=N?.one("a:ln");M&&W(M,t).line&&v(t,"cannot-hold","p:pic/a:ln","a picture's outline");const R=U(N?.one("a:effectLst"),t),x=B(N,t);(x?.fill||x?.gradient)&&v(t,"cannot-hold","p:pic/p:spPr","a fill behind a picture"),e.one("p:style")?.skip("a picture's style");const z=c!==void 0||u!==void 0&&!r,E=z?p:b;if(!E||E.external)return v(t,"missing","p:pic","a picture or a video whose file is not in the file"),[];w.bytes(E.target),z&&(b&&w.bytes(b.target),c?.attr("r:link"));const F=s.alt!==void 0&&/^[^\s/\\]+\.[A-Za-z0-9]{2,5}$/u.test(s.alt);F&&l?.ignore(["descr"],"a picture's file name as its description (python-pptx's habit)");const J=s.alt===void 0||F?{}:{alt:s.alt};return[{name:s.name,...s.id===void 0?{}:{id:s.id},...s.locked?{locked:!0}:{},...J,kind:z?"movie":"picture",...g?{placeholder:{type:g.attr("type")??"pic",idx:g.attr("idx")??0}}:{},...H(A&&n.place(A)),part:E.target,...k&&!z?{crop:k}:{},...R?{shadow:R}:{},...n.group===void 0?{}:{group:n.group}}]}function we(e,a,n){e.use();const o=e.one("p:nvGraphicFramePr"),l=o?.one("p:cNvPr"),t=$(a,e,l?.el.attrs.find(p=>p.key==="name")?.value??""),s=C(l,t);G(o?.one("p:cNvGraphicFramePr")?.one("a:graphicFrameLocks"),t)&&(s.locked=!0);const m=o?.one("p:nvPr")?.one("p:ph");m&&(v(t,"approximated","p:ph","a table, a chart or an object in a placeholder is the slide's own, its placeholder left empty"),m.consume()),e.ignore(["bwMode"],"a shape's black and white printing mode");const f=D(e.one("p:xfrm")),g=H(f&&n.place(f)),c=e.one("a:graphic")?.one("a:graphicData"),r=c?.attr("uri")??"",u={...s,...g,...n.group===void 0?{}:{group:n.group}};if(r.endsWith("/table")){const p=c?.one("a:tbl");if(p)return[{...u,kind:"table",table:ce(p.use(),t)}]}if(r.endsWith("/chart")){const p=c?.one("c:chart");p?.use();const d=t.read.pkg.rel(t.part,p?.attr("r:id")),i=d?se(d.target,t):"its chart is not in the file";return typeof i=="string"?(v(t,"cannot-hold","c:chart",i),[]):[{...u,kind:"chart",chart:i}]}if(r.endsWith("/diagram"))return v(t,"cannot-hold","dgm:relIds","SmartArt"),c?.consume(),[];const w=c?.one("p:oleObj");if(w){w.use(),v(t,"approximated","p:oleObj",`an embedded ${w.attr("progId")??"object"} is its picture`),w.ignore(["spid","name","showAsIcon","r:id","imgW","imgH","progId"],"an embedded object's program and size"),w.one("p:embed")?.consume(),w.one("p:link")?.consume();const p=w.one("p:pic");if(p){const[i]=K(p,a,n);return i?[{...i,...s,...g,kind:"picture"}]:[]}const d=_e(w.el.attrs.find(i=>i.key==="spid")?.value,t);return d?[{...u,kind:"picture",part:d}]:(v(t,"missing","p:oleObj","an embedded object whose picture is not in the file"),[])}return v(t,"cannot-hold","a:graphicData",r||"a graphic frame"),c?.consume(),[]}const Q="urn:schemas-microsoft-com:vml",X="urn:schemas-microsoft-com:office:office";function _e(e,a){const n=a.read.pkg,o=n.relOfType(a.part,"vmlDrawing")?.target,l=o===void 0?void 0:n.bytes(o);if(o===void 0||!l||e===void 0)return;let t;try{t=oe(ie(l))}catch{return}const s=(r,u,w)=>r.attrs.find(p=>p.uri===u&&p.local===w)?.value,m=r=>[r,...r.children.flatMap(m)],g=m(t).find(r=>r.uri===Q&&(s(r,"","id")===e||s(r,X,"spid")===e))?.children.find(r=>r.uri===Q&&r.local==="imagedata"),c=n.rel(o,g&&s(g,X,"relid"));if(!(!c||c.external||!n.bytes(c.target)))return c.target}function ye(e,a,n){e.use();const o=e.one("p:nvGrpSpPr"),l=o?.one("p:cNvPr"),t=$(a,e,l?.el.attrs.find(u=>u.key==="name")?.value??""),s=C(l,t),m=G(o?.one("p:cNvGrpSpPr")?.one("a:grpSpLocks"),t);o?.one("p:nvPr");const f=e.one("p:grpSpPr");f?.ignore(["bwMode"],"a shape's black and white printing mode");const g=B(f,t),c=f?.one("a:effectLst");c&&(v(t,"cannot-hold","p:grpSpPr/a:effectLst","a group's own effects"),c.consume()),n.group!==void 0&&v(t,"approximated","p:grpSp",`a group in a group is one group, ${n.group}`);const r=shapesOf(e,t,{...g?{fill:g}:n.fill?{fill:n.fill}:{},group:n.group??s.name,place:fe(f?.one("a:xfrm"),n)});return m?r.map(u=>({...u,locked:!0})):r}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{NUMBERINGS as _}from"@allyhub/formats";import{colorIn as v}from"@allyhub/ooxml";import{TEXT_INSETS as x}from"@allyhub/slides-core";import{colorAt as w,say as
|
|
2
|
+
import{NUMBERINGS as _}from"@allyhub/formats";import{colorIn as v}from"@allyhub/ooxml";import{TEXT_INSETS as x}from"@allyhub/slides-core";import{colorAt as w,say as i}from"./common.js";export function fontOf(t,a){if(!t)return;const n={},c=t.attr("sz");c!==void 0&&(n.size=c*127);const r=t.attr("b");r!==void 0&&(n.bold=r);const o=t.attr("i");o!==void 0&&(n.italic=o);const f=t.attr("u");f!==void 0&&(n.underline=f!=="none",f!=="none"&&f!=="sng"&&i(a,"approximated","a:rPr@u",`${f} underline is a single line`));const s=t.attr("strike");s!==void 0&&(n.strike=s!=="noStrike",s==="dblStrike"&&i(a,"approximated","a:rPr@strike","a double strike is one line"));const l=t.attr("baseline");l!==void 0&&l!==0&&(n.baseline=l/1e5);const d=t.attr("spc");d!==void 0&&(n.spacing=d*127);const h=t.attr("cap");h!==void 0&&h!=="none"&&i(a,"cannot-hold","a:rPr@cap",`${h} capitals`),t.ignore(["lang","altLang"],"a run's language: a deck's is its script's"),t.ignore(["noProof","dirty","err","smtClean","smtId","bmk"],"spell-check and editing state"),t.ignore(["kern"],"kerning from a size: the stage kerns as the browser does (PowerPoint's own is not measured here)");const p=t.choice("a:solidFill","a:noFill","a:gradFill");if(p?.key==="a:solidFill"){const u=w(p,a,"a:rPr/a:solidFill");u&&(n.color=u.color,u.alpha<1&&i(a,"cannot-hold","a:rPr/a:alpha","text's transparency"))}else p&&(i(a,"cannot-hold",`a:rPr/${p.key}`,p.key==="a:noFill"?"text with no fill":"text filled with a gradient"),p.consume());const m=v(t.one("a:highlight"),a.colors);m&&(n.highlight=m.rgb);const e=t.one("a:latin");if(e){e.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it");const u=e.attr("typeface");u&&(n.name=u)}for(const u of["a:ea","a:cs","a:sym"]){const k=t.one(u);if(!k)continue;k.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it");const P=k.attr("typeface");P&&!P.startsWith("+")&&!a.read.faces.has(P)&&i(a,"cannot-hold",u,`a run's own ${u==="a:ea"?"East Asian":u==="a:cs"?"complex script":"symbol"} face (${P})`)}const g=t.one("a:hlinkClick");if(g){const u=g.attr("action"),k=a.read.pkg.rel(a.part,g.attr("r:id"));k?.external&&(u===void 0||u==="")?n.link=k.target:u!==void 0&&u!==""?i(a,"cannot-hold","a:hlinkClick@action",u):g.attr("r:id")!==""&&i(a,"missing","a:hlinkClick","a link whose target is not in the file"),g.ignore(["tooltip","history","highlightClick","endSnd","tgtFrame","invalidUrl"],"a link's tooltip and browser settings")}t.one("a:uLnTx"),t.one("a:uFillTx");const b=t.one("a:effectLst");return b&&b.el.children.length>0&&(i(a,"cannot-hold","a:rPr/a:effectLst","text effects (shadow, glow)"),b.consume()),Object.keys(n).length>0?n:void 0}function y(t){const a=t?.one("a:spcPct")?.attr("val");if(a!==void 0)return{lines:a/1e5};const n=t?.one("a:spcPts")?.attr("val");if(n!==void 0)return{fixed:n*127}}function A(t){return t.startsWith("alphaLc")?"alphaLcPeriod":t.startsWith("alphaUc")?"alphaUcPeriod":t.startsWith("romanLc")?"romanLcPeriod":t.startsWith("romanUc")?"romanUcPeriod":t==="arabicParenR"||t==="arabicParenBoth"?"arabicParenR":"arabicPeriod"}export function formatOf(t,a){if(!t)return{};const n={},c=t.attr("algn");c==="l"||c==="ctr"||c==="r"||c==="just"?n.alignment=c:c!==void 0&&(n.alignment="just",i(a,"approximated","a:pPr@algn",`${c} is justified`));const r=t.attr("marL");r!==void 0&&(n.margin_left=r);const o=t.attr("indent");o!==void 0&&(n.indent=o);const f=t.attr("marR");f!==void 0&&f!==0&&i(a,"cannot-hold","a:pPr@marR","a paragraph's right margin");const s=y(t.one("a:lnSpc"));s&&(n.line_spacing=s);for(const[e,g]of[["a:spcBef","space_before"],["a:spcAft","space_after"]]){const b=y(t.one(e));b&&"fixed"in b&&(n[g]=b.fixed)}t.has("a:buNone")&&(n.bullet=null);const l=t.one("a:buChar")?.attr("char");l!==void 0&&(n.bullet=l);const d=t.one("a:buFont");if(d){d.ignore(["panose","pitchFamily","charset"],"a font's panose, pitch and character set: its name picks it");const e=d.attr("typeface");e!==void 0&&(n.bullet_font=e)}const h=t.one("a:buAutoNum");if(h){const e=h.attr("type")??"arabicPeriod";_.includes(e)?n.numbered=e:(n.numbered=A(e),i(a,"approximated","a:buAutoNum@type",`${e} is counted as ${n.numbered}`));const g=h.attr("startAt");g!==void 0&&g!==1&&i(a,"cannot-hold","a:buAutoNum@startAt",`a list counted from ${String(g)}`)}for(const e of["a:buClrTx","a:buSzTx","a:buFontTx"])t.one(e);for(const e of["a:buClr","a:buSzPct","a:buSzPts","a:buBlip"]){const g=t.one(e);g&&(i(a,"cannot-hold",e,e==="a:buClr"?"a bullet's own colour":e==="a:buBlip"?"a picture as a bullet":"a bullet's own size"),g.consume())}t.ignore(["eaLnBrk","latinLnBrk","hangingPunct","fontAlgn"],"line-breaking and alignment rules for East Asian text: the stage breaks lines as the browser does"),t.ignore(["defTabSz"],"a default tab stop");const p=t.one("a:tabLst");p&&p.el.children.length>0&&(i(a,"cannot-hold","a:tabLst","tab stops"),p.consume()),t.attr("rtl")===!0&&i(a,"cannot-hold","a:pPr@rtl","a right-to-left paragraph");const m=fontOf(t.one("a:defRPr"),a);m&&(n.font=m);for(const[e,g]of[["a:spcBef","space_before"],["a:spcAft","space_after"]]){const b=t.one(e)?.one("a:spcPct")?.attr("val");b!==void 0&&(m?.size!==void 0?(n[g]=Math.round(b/1e5*m.size*1.2),i(a,"approximated",`${e}/a:spcPct`,"space between paragraphs as a share of a line is points at the level's size")):i(a,"cannot-hold",`${e}/a:spcPct`,"space between paragraphs as a share of a line"))}return n}const L=["a:lvl1pPr","a:lvl2pPr","a:lvl3pPr","a:lvl4pPr","a:lvl5pPr","a:lvl6pPr","a:lvl7pPr","a:lvl8pPr","a:lvl9pPr"];export function levelsOf(t,a){const n=formatOf(t?.one("a:defPPr"),a);return L.map(c=>{const r=t?.one(c);r?.attr("lvl");const o=formatOf(r,a);return Object.keys(n).length===0?o:{...n,...o,...n.font||o.font?{font:{...n.font,...o.font}}:{}}})}export function paragraphsOf(t,a){return(t?.all("a:p")??[]).map(n=>{const c=n.one("a:pPr"),r=[];let o;for(const s of n.kids())if(s.key==="a:r"){const l=s.use(),d=fontOf(l.one("a:rPr"),a);r.push({text:l.one("a:t")?.text()??"",...d?{font:d}:{}})}else if(s.key==="a:br")s.use(),s.one("a:rPr")?.skip("a line break's font"),r.push({text:"\v"});else if(s.key==="a:fld"){const l=s.use();l.attr("id");const d=l.attr("type")??"",h=fontOf(l.one("a:rPr"),a),p=l.one("a:pPr");p&&(p.el.attrs.length>0||p.el.children.length>0)&&i(a,"cannot-hold","a:fld/a:pPr","a field's own paragraph properties");const m=l.one("a:t")?.text()??"";d!=="slidenum"&&i(a,"cannot-hold","a:fld@type",`${d||"a field"}: kept as the text it showed`),r.push({text:m,...h?{font:h}:{},...d==="slidenum"?{field:"slidenum"}:{}})}else s.key==="a:endParaRPr"&&(r.length===0?o=fontOf(s.use(),a):s.skip("the font of a paragraph's end"));const f=formatOf(c,a);return{...f,...o?{font:{...f.font,...o}}:{},runs:r,level:c?.attr("lvl")??0}})}export const BODY_DEFAULTS={vertical_anchor:"t",word_wrap:!0,auto_size:"none",margin_left:x.left,margin_top:x.top,margin_right:x.right,margin_bottom:x.bottom};export function bodyOf(t,a,n,c=!1){const r=t?.one("a:bodyPr");if(c)for(const h of t?.all("a:p")??[])h.skip("a master's or a layout's placeholder's prompt text");const o={...a,levels:levelsOf(t?.one("a:lstStyle"),n),paragraphs:c?[]:paragraphsOf(t,n)},f=r?.attr("anchor");f==="t"||f==="ctr"||f==="b"?o.vertical_anchor=f:f!==void 0&&(o.vertical_anchor="t",i(n,"approximated","a:bodyPr@anchor",`${f} is at the top`));const s=r?.attr("wrap");s!==void 0&&(o.word_wrap=s!=="none");const l=r?.choice("a:normAutofit","a:spAutoFit","a:noAutofit");l?.key==="a:normAutofit"?(o.auto_size="text",l.ignore(["fontScale","lnSpcReduction"],"the share PowerPoint last shrank text to: the stage fits it again")):l?.key==="a:spAutoFit"?o.auto_size="shape":l&&(o.auto_size="none");for(const[h,p]of[["lIns","margin_left"],["tIns","margin_top"],["rIns","margin_right"],["bIns","margin_bottom"]]){const m=r?.attr(h);m!==void 0&&(o[p]=m)}r?.ignore(["forceAA","compatLnSpc"],"rendering hints of a text body");const d=r?.attr("vert");return d!==void 0&&d!=="horz"&&i(n,"cannot-hold","a:bodyPr@vert",`${d} text`),r?.attr("rtlCol")===!0&&i(n,"cannot-hold","a:bodyPr@rtlCol","columns right to left"),o}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{presetAdjustments as k}from"@allyhub/ooxml/geometry";import{NS as
|
|
2
|
+
import{presetAdjustments as k}from"@allyhub/ooxml/geometry";import{NS as o,effects as m,el as n,fill as g,gradientFill as b}from"./xml.js";export const LOCKED={noMove:1,noResize:1,noRot:1};const h=e=>e.locked?LOCKED:{},u=(e,r={})=>n("a:xfrm",{rot:r.rotation===void 0?void 0:Math.round(r.rotation*6e4),flipH:r.flip?.h?1:void 0,flipV:r.flip?.v?1:void 0},n("a:off",{x:e.left,y:e.top}),n("a:ext",{cx:e.width,cy:e.height})),x=(e,r)=>{const i=k(e);return n("a:prstGeom",{prst:e},n("a:avLst",{},...(r??[]).flatMap((a,c)=>{const p=i[c]?.name;return p===void 0?[]:[n("a:gd",{name:p,fmla:`val ${String(Math.round(a*1e5))}`})]})))};function w(e,r){const i=e.steps.every(t=>t.op==="close"?!0:t.op==="curve"?[t.x1,t.y1,t.x2,t.y2,t.x,t.y].every(Number.isInteger):Number.isInteger(t.x)&&Number.isInteger(t.y)),[a,c]=i||!r?[1,1]:[e.w===0?1:r.width/e.w,e.h===0?1:r.height/e.h],p=(t,d)=>n("a:pt",{x:Math.round(t*a),y:Math.round(d*c)}),f=e.steps.map(t=>t.op==="close"?n("a:close"):t.op==="move"?n("a:moveTo",{},p(t.x,t.y)):t.op==="line"?n("a:lnTo",{},p(t.x,t.y)):n("a:cubicBezTo",{},p(t.x1,t.y1),p(t.x2,t.y2),p(t.x,t.y)));return n("a:custGeom",{},n("a:avLst"),n("a:gdLst"),n("a:ahLst"),n("a:cxnLst"),n("a:rect",{l:"l",t:"t",r:"r",b:"b"}),n("a:pathLst",{},n("a:path",{w:Math.round(e.w*a),h:Math.round(e.h*c)},...f)))}const v=e=>e.line===void 0&&e.lineWidth===void 0&&e.lineDash===void 0&&e.lineBegin===void 0&&e.lineEnd===void 0?"":n("a:ln",{w:e.lineWidth},e.line===void 0?"":g(e.line),e.lineDash===void 0?"":n("a:prstDash",{val:e.lineDash}),e.lineBegin===void 0?"":n("a:headEnd",{type:e.lineBegin,...e.lineBeginSize}),e.lineEnd===void 0?"":n("a:tailEnd",{type:e.lineEnd,...e.lineEndSize})),l=(e,r,i)=>n(e,{idx:r},n("a:schemeClr",{val:i})),y={shape:n("p:style",{},l("a:lnRef",1,"accent1"),l("a:fillRef",3,"accent1"),l("a:effectRef",2,"accent1"),l("a:fontRef","minor","lt1")),connector:n("p:style",{},l("a:lnRef",2,"accent1"),l("a:fillRef",0,"accent1"),l("a:effectRef",1,"accent1"),l("a:fontRef","minor","tx1"))},M=e=>n("p:ph",{type:e.type==="obj"?void 0:e.type,idx:e.idx===0?void 0:e.idx,sz:e.sz}),P=(e,r="")=>n("p:nvPr",{},e.placeholder?M(e.placeholder):"",r);export function shapeXml(e){if(e.kind==="table"||e.kind==="chart")return n("p:graphicFrame",{},n("p:nvGraphicFramePr",{},n("p:cNvPr",{id:e.id,name:e.name,descr:e.descr}),n("p:cNvGraphicFramePr",{},n("a:graphicFrameLocks",{noGrp:1,...e.locked?{noMove:1,noResize:1}:{}})),n("p:nvPr")),n("p:xfrm",{},n("a:off",{x:e.frame?.left??0,y:e.frame?.top??0}),n("a:ext",{cx:e.frame?.width??0,cy:e.frame?.height??0})),n("a:graphic",{},n("a:graphicData",{uri:`http://schemas.openxmlformats.org/drawingml/2006/${e.kind}`},e.kind==="table"?e.table??"":n("c:chart",{"xmlns:c":"http://schemas.openxmlformats.org/drawingml/2006/chart","xmlns:r":o.r,"r:id":e.chart??""}))));if(e.kind==="cxn")return n("p:cxnSp",{},n("p:nvCxnSpPr",{},n("p:cNvPr",{id:e.id,name:e.name,descr:e.descr}),n("p:cNvCxnSpPr",{},e.locked?n("a:cxnSpLocks",h(e)):"",e.connect?.begin?n("a:stCxn",e.connect.begin):"",e.connect?.end?n("a:endCxn",e.connect.end):""),n("p:nvPr")),n("p:spPr",{},e.frame?u(e.frame,e):"",x(e.geometry??"line",e.adjustments),v(e),e.shadow===void 0?"":m(e.shadow)),e.style?y[e.style]:"");if(e.kind==="pic"){const i=e.video;return n("p:pic",{},n("p:nvPicPr",{},n("p:cNvPr",{id:e.id,name:e.name,descr:e.descr},i?n("a:hlinkClick",{"r:id":"",action:"ppaction://media"}):""),n("p:cNvPicPr",{},n("a:picLocks",{noChangeAspect:1,...h(e)})),P(e,i?n("a:videoFile",{"r:link":i.link})+n("p:extLst",{},n("p:ext",{uri:"{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}"},n("p14:media",{"xmlns:p14":o.p14,"r:embed":i.media}))):"")),n("p:blipFill",{},n("a:blip",{"r:embed":e.picture?.image}),e.picture?.crop?n("a:srcRect",{l:s(e.picture.crop.left),t:s(e.picture.crop.top),r:s(e.picture.crop.right),b:s(e.picture.crop.bottom)}):"",n("a:stretch",{},n("a:fillRect"))),n("p:spPr",{},e.frame?u(e.frame,e):"",x("rect"),e.shadow===void 0?"":m(e.shadow)))}const r=e.placeholder||e.locked?n("a:spLocks",{...e.placeholder?{noGrp:1}:{},...h(e)}):"";return n("p:sp",{},n("p:nvSpPr",{},n("p:cNvPr",{id:e.id,name:e.name,descr:e.descr}),n("p:cNvSpPr",{txBox:e.textbox?1:void 0},r),P(e)),n("p:spPr",{},e.frame?u(e.frame,e):"",e.path?w(e.path,e.frame):e.geometry?x(e.geometry,e.adjustments):"",e.gradient?b(e.gradient):e.fill===void 0?"":g(e.fill,e.fillTransparency),v(e),e.shadow===void 0?"":m(e.shadow)),e.style?y[e.style]:"",e.text??"")}function S(e,r,i){const a=i.flatMap(d=>d.frame?[d.frame]:[]),c=Math.min(...a.map(d=>d.left)),p=Math.min(...a.map(d=>d.top)),f=Math.max(...a.map(d=>d.left+d.width))-c,t=Math.max(...a.map(d=>d.top+d.height))-p;return n("p:grpSp",{},n("p:nvGrpSpPr",{},n("p:cNvPr",{id:e,name:r}),n("p:cNvGrpSpPr"),n("p:nvPr")),n("p:grpSpPr",{},n("a:xfrm",{},n("a:off",{x:c,y:p}),n("a:ext",{cx:f,cy:t}),n("a:chOff",{x:c,y:p}),n("a:chExt",{cx:f,cy:t}))),...i.map(shapeXml))}export function treeXml(e){const r=[];let i=Math.max(0,...e.map(a=>a.id));for(let a=0;a<e.length;a++){const c=e[a];if(!c)continue;if(c.group===void 0){r.push(shapeXml(c));continue}const p=[c];for(;e[a+1]?.group===c.group;){const f=e[++a];f&&p.push(f)}r.push(S(++i,c.group,p))}return r}const s=e=>e===0?void 0:Math.round(e*1e5);export const NO_PARAGRAPHS=[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{runLang as _}from"@allyhub/slides-core";import{face as h}from"./theme.js";import{centipoints as c,color as y,el as t,esc as m,fill as P}from"./xml.js";const v={t:"t",ctr:"ctr",b:"b"},x={"+mj-lt":"+mj-ea","+mn-lt":"+mn-ea"};export const LINK="link:";export function runProps(e,n,a){const r=n?.color===void 0?"":P(n.color),i=n?.name===void 0?void 0:x[n.name];return t(e,{lang:a,sz:n?.size===void 0?void 0:c(n.size),b:n?.bold,i:n?.italic,u:n?.underline===void 0?void 0:n.underline?"sng":"none",strike:n?.strike===void 0?void 0:n.strike?"sngStrike":"noStrike",baseline:n?.baseline===void 0?void 0:Math.round(n.baseline*1e5),spc:n?.spacing===void 0?void 0:c(n.spacing)},r,n?.highlight===void 0?"":t("a:highlight",{},y({rgb:n.highlight})),n?.name===void 0?"":t("a:latin",{typeface:h(n.name)}),i===void 0?"":t("a:ea",{typeface:i}),n?.link===void 0?"":t("a:hlinkClick",{"r:id":`${LINK}${n.link}`}))}function b(e,n){const a=e.line_spacing;return{attrs:{marL:e.margin_left,indent:e.indent,algn:e.alignment},children:[a===void 0?"":t("a:lnSpc",{},"lines"in a?t("a:spcPct",{val:Math.round(a.lines*1e5)}):t("a:spcPts",{val:c(a.fixed)})),e.space_before===void 0?"":t("a:spcBef",{},t("a:spcPts",{val:c(e.space_before)})),e.space_after===void 0?"":t("a:spcAft",{},t("a:spcPts",{val:c(e.space_after)})),e.bullet_font===void 0?"":t("a:buFont",{typeface:e.bullet_font}),e.numbered!==void 0?t("a:buAutoNum",{type:e.numbered}):e.bullet===void 0?"":e.bullet===null?t("a:buNone"):t("a:buChar",{char:e.bullet}),n&&e.font&&Object.keys(e.font).length>0?runProps("a:defRPr",e.font):""]}}export function listStyle(e,n="a:lstStyle"){const a=e.slice(0,9).flatMap((r,i)=>{const{attrs:l,children:o}=b(r,!0),d=o.join("");return d===""&&Object.values(l).every(u=>u===void 0)?[]:[t(`a:lvl${String(i+1)}pPr`,l,d)]});return t(n,{},...a)}export function levelOf(e){return{alignment:e.alignment,line_spacing:e.line_spacing,space_before:e.space_before,space_after:e.space_after,...e.numbered===void 0?{bullet:e.bullet?e.bullet.char:null}:{numbered:e.numbered},...e.bullet?.font===void 0?{}:{bullet_font:e.bullet.font},margin_left:e.margin_left,indent:e.indent,font:e.font}}export function bodyProps(e,n,a={}){const r=n!==void 0?t("a:normAutofit",{fontScale:Math.round(n*1e5)}):e.auto_size==="text"?t("a:normAutofit"):e.auto_size==="shape"?t("a:spAutoFit"):e.auto_size==="none"?t("a:noAutofit"):"";return t("a:bodyPr",{wrap:e.word_wrap===void 0?void 0:e.word_wrap?"square":"none",lIns:e.margin_left,tIns:e.margin_top,rIns:e.margin_right,bIns:e.margin_bottom,anchor:e.vertical_anchor===void 0?void 0:v[e.vertical_anchor],...a},r)}export const bodyOfStyle=e=>({vertical_anchor:e.vertical_anchor,auto_size:e.auto_size,word_wrap:e.word_wrap,margin_left:e.margins.left,margin_top:e.margins.top,margin_right:e.margins.right,margin_bottom:e.margins.bottom}),bodyUnder=(e,n)=>n?.anchor===void 0?e:{...e,vertical_anchor:n.anchor};const A="{B6F15528-21DE-4FAA-801E-634DDDAF4B2B}";export const SLIDE_NUMBER=[{level:0,runs:[{text:"‹#›",field:"slidenum"}]}];export function paragraph(e,n,a){const r={...e,...a?.paragraph,...a?.levels?.[e.level]};a?.paragraph.bullet!==void 0&&delete r.numbered,(a?.paragraph.bullet!==void 0||a?.paragraph.numbered!==void 0)&&delete r.bullet_font;const{attrs:i,children:l}=b(r,!1),o=t("a:pPr",{...i,lvl:e.level>0?e.level:void 0},...l),d=e.runs.flatMap(s=>s.text.split("\v").flatMap((u,g)=>{const p={...e.font,...a?.font,...s.font},f=runProps("a:rPr",Object.keys(p).length>0?p:void 0,_(u,n));return[...g>0?[t("a:br",{},runProps("a:rPr",void 0,n))]:[],...u===""?[]:[s.field?t("a:fld",{id:A,type:s.field},f,t("a:t",{},m(u))):t("a:r",{},f,t("a:t",{},m(u)))]]}));return t("a:p",{},o==="<a:pPr/>"?"":o,...d,d.length===0?runProps("a:endParaRPr",a?.font,n):"")}export function txBody(e,n,a,r,i,l){const o=r.map(d=>paragraph(d,i,l));return t(e,{},n,a,...o.length>0?o:[t("a:p")])}
|
|
2
|
+
import{runLang as _}from"@allyhub/slides-core";import{face as h}from"./theme.js";import{centipoints as c,color as y,el as t,esc as m,fill as P}from"./xml.js";const v={t:"t",ctr:"ctr",b:"b"},x={"+mj-lt":"+mj-ea","+mn-lt":"+mn-ea"};export const LINK="link:";export function runProps(e,n,a){const r=n?.color===void 0?"":P(n.color),i=n?.name===void 0?void 0:x[n.name];return t(e,{lang:a,sz:n?.size===void 0?void 0:c(n.size),b:n?.bold,i:n?.italic,u:n?.underline===void 0?void 0:n.underline?"sng":"none",strike:n?.strike===void 0?void 0:n.strike?"sngStrike":"noStrike",baseline:n?.baseline===void 0?void 0:Math.round(n.baseline*1e5),spc:n?.spacing===void 0?void 0:c(n.spacing)},r,n?.highlight===void 0?"":t("a:highlight",{},y({rgb:n.highlight})),n?.name===void 0?"":t("a:latin",{typeface:h(n.name)}),i===void 0?"":t("a:ea",{typeface:i}),n?.link===void 0?"":t("a:hlinkClick",{"r:id":`${LINK}${n.link}`}))}function b(e,n){const a=e.line_spacing;return{attrs:{marL:e.margin_left,indent:e.indent,algn:e.alignment},children:[a===void 0?"":t("a:lnSpc",{},"lines"in a?t("a:spcPct",{val:Math.round(a.lines*1e5)}):t("a:spcPts",{val:c(a.fixed)})),e.space_before===void 0?"":t("a:spcBef",{},t("a:spcPts",{val:c(e.space_before)})),e.space_after===void 0?"":t("a:spcAft",{},t("a:spcPts",{val:c(e.space_after)})),e.bullet_font===void 0?"":t("a:buFont",{typeface:e.bullet_font}),e.numbered!==void 0?t("a:buAutoNum",{type:e.numbered}):e.bullet===void 0?"":e.bullet===null?t("a:buNone"):t("a:buChar",{char:e.bullet}),n&&e.font&&Object.keys(e.font).length>0?runProps("a:defRPr",e.font):""]}}export function listStyle(e,n="a:lstStyle"){const a=e.slice(0,9).flatMap((r,i)=>{const{attrs:l,children:o}=b(r,!0),d=o.join("");return d===""&&Object.values(l).every(u=>u===void 0)?[]:[t(`a:lvl${String(i+1)}pPr`,l,d)]});return t(n,{},...a)}export function levelOf(e){return{alignment:e.alignment,line_spacing:e.line_spacing,space_before:e.space_before,space_after:e.space_after,...e.numbered===void 0?{bullet:e.bullet?e.bullet.char:null}:{numbered:e.numbered},...e.bullet?.font===void 0?{}:{bullet_font:e.bullet.font},margin_left:e.margin_left,indent:e.indent,font:e.font}}export function bodyProps(e,n,a={}){const r=n!==void 0?t("a:normAutofit",{fontScale:Math.round(n*1e5)}):e.auto_size==="text"?t("a:normAutofit"):e.auto_size==="shape"?t("a:spAutoFit"):e.auto_size==="none"?t("a:noAutofit"):"";return t("a:bodyPr",{wrap:e.word_wrap===void 0?void 0:e.word_wrap?"square":"none",lIns:e.margin_left,tIns:e.margin_top,rIns:e.margin_right,bIns:e.margin_bottom,anchor:e.vertical_anchor===void 0?void 0:v[e.vertical_anchor],...a},r)}export const bodyOfStyle=e=>({vertical_anchor:e.vertical_anchor,auto_size:e.auto_size,word_wrap:e.word_wrap,margin_left:e.margins.left,margin_top:e.margins.top,margin_right:e.margins.right,margin_bottom:e.margins.bottom}),bodyUnder=(e,n)=>n?.anchor===void 0?e:{...e,vertical_anchor:n.anchor};const A="{B6F15528-21DE-4FAA-801E-634DDDAF4B2B}";export const SLIDE_NUMBER=[{level:0,runs:[{text:"‹#›",field:"slidenum"}]}];export function paragraph(e,n,a){const r={...e,...a?.paragraph,...a?.levels?.[e.level]};a?.paragraph.bullet!==void 0&&delete r.numbered,(a?.paragraph.bullet!==void 0||a?.paragraph.numbered!==void 0)&&delete r.bullet_font;const{attrs:i,children:l}=b(r,!1),o=t("a:pPr",{...i,lvl:e.level>0?e.level:void 0},...l),d=e.runs.flatMap(s=>s.text.split("\v").flatMap((u,g)=>{const p={...e.font,...a?.font,...s.font},f=runProps("a:rPr",Object.keys(p).length>0?p:void 0,_(u,n));return[...g>0?[t("a:br",{},runProps("a:rPr",void 0,n))]:[],...u===""?[]:[s.field?t("a:fld",{id:A,type:s.field},f,t("a:t",{},m(u))):t("a:r",{},f,t("a:t",{},m(u)))]]}));return t("a:p",{},o==="<a:pPr/>"?"":o,...d,d.length===0?runProps("a:endParaRPr",{...e.font,...a?.font},n):"")}export function txBody(e,n,a,r,i,l){const o=r.map(d=>paragraph(d,i,l));return t(e,{},n,a,...o.length>0?o:[t("a:p")])}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{createHash as $e}from"node:crypto";import{zipSync as Le}from"fflate";import{AUTOSHAPE_STYLE as De,colorOfFile as Te,CONNECTOR_STYLE as Ee,isConnectorGeometry as ne,joinPath as me,placeholderFrame as Ie,plainLevels as Oe,Pt as ae}from"@allyhub/slides-core";import{chartBook as Ce,chartXml as Re}from"./charts.js";import{asFace as Be,fontInfo as je,eotOf as Ne}from"./fonts.js";import{NO_PARAGRAPHS as Ae,shapeXml as ce,treeXml as oe}from"./shapes.js";import{bodyOfStyle as Fe,bodyProps as K,bodyUnder as ie,LINK as ze,SLIDE_NUMBER as He,levelOf as fe,listStyle as N,txBody as H}from"./text.js";import{themeXml as he}from"./theme.js";import{timingXml as Ge,transitionXml as Xe}from"./timing.js";import{HEAD as w,PML as I,color as Ue,el as n,esc as We,fill as ue,gradientFill as Je,unesc as Ye}from"./xml.js";const V={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tif:"image/tiff",tiff:"image/tiff",emf:"image/x-emf",wmf:"image/x-wmf"},ge={mp4:"video/mp4",m4v:"video/mp4",mov:"video/quicktime"},D=e=>(e.split(".").pop()??"").toLowerCase(),Ze=[["regular","p:regular","Regular"],["bold","p:bold","Bold"],["italic","p:italic","Italic"],["boldItalic","p:boldItalic","Bold Italic"]],d={hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",chart:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",package:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package",font:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",officeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",core:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",app:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",slideMaster:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster",slideLayout:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout",slide:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide",theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",notesMaster:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster",notesSlide:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide",image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",video:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video",media:"http://schemas.microsoft.com/office/2007/relationships/media",presProps:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps",viewProps:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps",tableStyles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles"},S={chart:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml",workbook:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",presentation:"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml",slideMaster:"application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml",slideLayout:"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml",slide:"application/vnd.openxmlformats-officedocument.presentationml.slide+xml",theme:"application/vnd.openxmlformats-officedocument.theme+xml",notesMaster:"application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml",notesSlide:"application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml",presProps:"application/vnd.openxmlformats-officedocument.presentationml.presProps+xml",viewProps:"application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml",tableStyles:"application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml",core:"application/vnd.openxmlformats-package.core-properties+xml",app:"application/vnd.openxmlformats-officedocument.extended-properties+xml"};class O{list=[];linked(t){return t.replaceAll(new RegExp(`r:id="${ze}([^"]*)"`,"gu"),(i,a)=>`r:id="${this.add(d.hyperlink,Ye(a),!0)}"`)}add(t,i,a=!1){const r=this.list.find(s=>s.type===t&&s.target===i);if(r)return r.id;const p=`rId${String(this.list.length+1)}`;return this.list.push({id:p,type:t,target:i,...a?{external:a}:{}}),p}xml(){return w+n("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},...this.list.map(t=>n("Relationship",{Id:t.id,Type:t.type,Target:t.target,TargetMode:t.external?"External":void 0})))}}class qe{list=[];add(t,i){return this.list.push({chart:t,frame:i}),`../charts/chart${String(this.list.length)}.xml`}}class Ke{parts=new Map;byHash=new Map;add(t,i,a,r){const p=$e("sha256").update(t).digest("hex"),s=this.byHash.get(`${a}:${p}`);if(s)return s;const m=r?.split("/").pop()?.replace(/\.[^.]*$/u,"").replace(/[^A-Za-z0-9_-]+/gu,"-").replace(/^-+|-+$/gu,""),u=m===void 0||m===""?void 0:m;let b=`${u??`${a}${String(this.parts.size+1)}`}.${i}`;for(let M=2;this.parts.has(`ppt/media/${b}`);M++)b=`${u??a}-${String(M)}.${i}`;return this.parts.set(`ppt/media/${b}`,t),this.byHash.set(`${a}:${p}`,`../media/${b}`),`../media/${b}`}}function xe(e){return e.kind==="component"||e.kind==="movie"?!1:e.kind==="picture"?V[D(e.media?.path??"")]!==void 0:!0}function re(e){return e.kind==="component"||e.kind==="movie"?!0:e.kind==="picture"?V[D(e.media?.path??"")]===void 0:!1}export function picturedShapes(e){return e.slides.flatMap(t=>t.shapes.filter(i=>re(i)).map(i=>({key:`${t.id}/${i.name}`,slide:t.id,shape:i.name,frame:i.frame})))}export function filesOf(e){const t=new Set;for(const i of e.masters)for(const a of[...i.shapes,...i.layouts.flatMap(r=>r.shapes)])a.media&&xe(a)&&t.add(me(a.media.base,a.media.path));for(const i of e.slides){i.background_picture!==void 0&&t.add(i.background_picture);for(const a of i.shapes)a.media&&(a.kind==="picture"||a.kind==="movie")&&t.add(a.media.path)}return[...t].sort()}const Ve=n("p:nvGrpSpPr",{},n("p:cNvPr",{id:1,name:""}),n("p:cNvGrpSpPr"),n("p:nvPr")),Qe=n("p:grpSpPr",{},n("a:xfrm",{},n("a:off",{x:0,y:0}),n("a:ext",{cx:0,cy:0}),n("a:chOff",{x:0,y:0}),n("a:chExt",{cx:0,cy:0}))),J=e=>n("p:spTree",{},Ve,Qe,...e),ye={bg1:"lt1",tx1:"dk1",bg2:"lt2",tx2:"dk2",accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",hlink:"hlink",folHlink:"folHlink"},Q=e=>n("p:bg",{},n("p:bgPr",{},n("a:solidFill",{},Ue(e)),n("a:effectLst")));function et(e,t,i){if(e.background_picture!==void 0){const a=i(e.background_picture);if(a!==void 0)return n("p:bg",{},n("p:bgPr",{},n("a:blipFill",{dpi:0,rotWithShape:1},n("a:blip",{"r:embed":a}),n("a:srcRect"),n("a:stretch",{},n("a:fillRect"))),n("a:effectLst")))}return e.background_gradient?n("p:bg",{},n("p:bgPr",{},Je(e.background_gradient),n("a:effectLst"))):se(e.background,t)?"":Q(e.background)}const se=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function be(e){return{...e.fill_transparency===void 0?{}:{fillTransparency:e.fill_transparency,...e.fill===void 0?{}:{fill:e.fill}},...e.gradient?{gradient:e.gradient}:{},...e.shadow?{shadow:e.shadow}:{}}}function ee(e){const t=i=>({...e.fill===void 0||"fill"in i&&se(e.fill,i.fill)?{}:{fill:e.fill},...e.line===void 0||se(e.line,i.line)?{}:{line:e.line},...e.line_width===void 0||e.line_width===i.line_width?{}:{lineWidth:e.line_width}});return e.kind==="autoshape"?ne(e.geometry)?{style:"connector",...t(Ee)}:{style:"shape",...t(De)}:{...e.kind==="textbox"?{fill:e.fill??null}:e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{lineWidth:e.line_width}}}const tt=(e,t)=>Array.from({length:Math.max(e.length,t.length)},(i,a)=>{const r=e[a]??{},p=t[a]??{},s={...r.font,...p.font};return{...r,...p,...Object.keys(s).length>0?{font:s}:{}}});function _e(e,t,i,a,r,p,s,m){const u=a!==void 0&&r!==void 0&&JSON.stringify(a.text_styles.other)!==JSON.stringify(r.text_styles.other);return H("p:txBody",K(ie(t,m),s,e==="autoshape"?{rtlCol:0}:{}),N(u?tt(a.text_styles.other,t.levels):t.levels),i,p,m)}const nt="{2D5ABB26-0587-4C30-8999-92F81FD0307C}",at=[["left","a:lnL"],["right","a:lnR"],["top","a:lnT"],["bottom","a:lnB"]];function Se(e,t){return n("a:tbl",{},n("a:tblPr",{firstRow:e.first_row?1:void 0,firstCol:e.first_col?1:void 0,lastRow:e.last_row?1:void 0,lastCol:e.last_col?1:void 0,bandRow:e.horz_banding?1:void 0,bandCol:e.vert_banding?1:void 0},n("a:tableStyleId",{},nt)),n("a:tblGrid",{},...e.columns.map(i=>n("a:gridCol",{w:i}))),...e.rows.map((i,a)=>n("a:tr",{h:i.height},...i.cells.map((r,p)=>{const s=r.text.own??r.text,m=we(r.fileText,r.text.style),u=i.cells[p-1],b=e.rows[a-1]?.cells[p];return n("a:tc",{gridSpan:r.span_width,rowSpan:r.span_height,hMerge:r.spanned&&u&&(u.spanned||u.span_width)?1:void 0,vMerge:r.spanned&&b&&(b.spanned||b.span_height)?1:void 0},H("a:txBody",n("a:bodyPr"),n("a:lstStyle"),r.text.paragraphs,t,m),n("a:tcPr",{marL:s.margin_left,marR:s.margin_right,marT:s.margin_top,marB:s.margin_bottom,anchor:ie(s,m).vertical_anchor},...at.map(([M,G])=>{const C=r.borders?.[M];return C?n(G,{w:C.width},ue(C.color)):""}),r.fill===void 0?"":ue(r.fill)))}))))}const le=e=>e.group===void 0?{}:{group:e.group},te=e=>({...e.line_dash===void 0?{}:{lineDash:e.line_dash},...e.line_begin===void 0?{}:{lineBegin:e.line_begin},...e.line_end===void 0?{}:{lineEnd:e.line_end}});function ke(e,t,i,a,r,p,s){const m={...be(e),id:t,name:e.name,...e.frame?{frame:e.frame}:{},...e.rotation===void 0?{}:{rotation:e.rotation},...e.flip?{flip:e.flip}:{}};if(e.kind==="placeholder"&&e.placeholder){const u=s.on==="master"?{...Ie(e.placeholder.type),...e.text}:e.text;return{...m,kind:"sp",placeholder:{...e.placeholder},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{lineWidth:e.line_width},...e.fill===void 0&&e.line===void 0?{}:{geometry:e.geometry??"rect"},text:H("p:txBody",u?K(u):n("a:bodyPr"),N(u?.levels??[]),e.placeholder.type==="sldNum"?He:Ae,p)}}if(xe(e)){if(e.table)return{...m,kind:"table",table:Se(e.table,p)};if(e.kind==="picture"&&e.media){const u=r(me(e.media.base,e.media.path));return u?{...m,kind:"pic",picture:{image:i.add(d.image,a.add(u,D(e.media.path),"image",e.media.path))},descr:e.media.path.split("/").pop()??""}:void 0}return!e.path&&ne(e.geometry)?{...m,kind:"cxn",geometry:e.geometry??"line",...e.adjustments?{adjustments:e.adjustments}:{},...ee(e),...te(e)}:{...m,kind:"sp",...e.kind==="textbox"?{textbox:!0}:{},...e.path?{path:e.path}:{geometry:e.geometry??"rect"},...e.adjustments?{adjustments:e.adjustments}:{},...ee(e),...te(e),...e.text?{text:_e(e.kind,e.text,e.text.paragraphs,s.master,s.first,p)}:{}}}}function we(e,t){if(!e)return;const i=e.numbered!==void 0||e.bullet!==void 0&&e.bullet!==!1;return{font:{...e.size===void 0?{}:{size:ae(e.size)},...e.bold===void 0?{}:{bold:e.bold},...e.italic===void 0?{}:{italic:e.italic},...e.underline===void 0?{}:{underline:e.underline},...e.strike===void 0?{}:{strike:e.strike},...e.font===void 0?{}:{name:e.font},...e.color===void 0?{}:{color:Te(e.color)}},paragraph:{...e.align===void 0?{}:{alignment:e.align},...e.line_spacing===void 0?{}:{line_spacing:{lines:e.line_spacing}},...e.space_before===void 0?{}:{space_before:ae(e.space_before)},...e.space_after===void 0?{}:{space_after:ae(e.space_after)},...e.numbered!==void 0?{numbered:e.numbered}:e.bullet===void 0?{}:{bullet:e.bullet===!1?null:e.bullet}},...i&&t?{levels:t.levels.map(a=>({margin_left:a.margin_left,indent:a.indent}))}:{},...e.anchor===void 0?{}:{anchor:e.anchor}}}function ot(e,t,i,a,r,p,s,m,u){const b=`${e.id}/${t.name}`,M=p.deck.fitted[b];if(t.level!=="slide"&&!re(t))return;const G=t.level==="slide"&&t.placeholder?{placeholder:{...t.placeholder}}:{},X=!t.placeholder||t.sources.frame.from==="slide"||t.sources.frame.from==="code"?{frame:t.frame}:{},v={...be(t),id:i,name:t.name,...G,...X,...t.rotation===void 0?{}:{rotation:t.rotation},...t.flip?{flip:t.flip}:{},...t.alt===void 0?{}:{descr:t.alt},...t.locked?{locked:!0}:{}},Y=()=>{const x=p.pictures.get(b);return x?{image:a.add(d.image,r.add(x,"png","image"))}:void 0};if(t.table)return{...v,kind:"table",table:Se(t.table,s)};if(t.chart)return{...v,frame:t.frame,kind:"chart",chart:a.add(d.chart,u.add(t.chart,t.frame))};if(t.kind==="movie"&&t.media){const x=Y(),B=ge[D(t.media.path)]?p.file(t.media.path):void 0;if(!x)return;if(!B)return{...v,frame:t.frame,kind:"pic",picture:x};const L=r.add(B,D(t.media.path),"media",t.media.path);return m.push(i),{...v,frame:t.frame,kind:"pic",picture:{image:x.image},video:{link:a.add(d.video,L),media:a.add(d.media,L)}}}if(re(t)){const x=Y(),B=p.movies?.get(b);if(x&&B){const L=r.add(B.bytes,"mp4","media");return m.push(i),{...v,frame:t.frame,kind:"pic",picture:{image:x.image},video:{link:a.add(d.video,L),media:a.add(d.media,L)}}}return x?{...v,frame:t.frame,kind:"pic",picture:x}:void 0}if(t.kind==="picture"&&t.media){const x=p.file(t.media.path);return x?{...v,kind:"pic",picture:{image:a.add(d.image,r.add(x,D(t.media.path),"image",t.media.path)),...t.media.crop?{crop:t.media.crop}:{}},descr:t.alt??t.media.path.split("/").pop()??""}:void 0}if(!t.path&&ne(t.geometry))return{...v,kind:"cxn",geometry:t.geometry??"line",...t.adjustments?{adjustments:t.adjustments}:{},...ee(t),...te(t)};const P=t.text,Z=p.deck.masters.find(x=>x.name===e.master),A=we(t.fileText,P?.style),U=P?t.placeholder?H("p:txBody",K(ie({},A),M),n("a:lstStyle"),P.paragraphs,s,A):P.own?_e(t.kind,P.own,P.paragraphs,Z,p.deck.masters[0],s,M,A):H("p:txBody",K(Fe(P.style),M),N(P.style.levels.map(fe)),P.paragraphs,s):void 0,W=t.sources.frame.from==="code",R=t.fill!==void 0&&(W||t.sources.fill?.from==="slide"),F=t.line!==void 0&&(W||t.sources.line?.from==="slide");return{...v,kind:"sp",...t.kind==="textbox"?{textbox:!0}:{},...t.path?{path:t.path}:!t.placeholder||R||F?{geometry:t.geometry??"rect"}:{},...t.adjustments?{adjustments:t.adjustments}:{},...te(t),...t.placeholder?{...R?{fill:t.fill}:{},...F?{line:t.line}:{},...t.line_width===void 0?{}:{lineWidth:t.line_width}}:ee(t),...U?{text:U}:{}}}const it={cx:6858e3,cy:9144e3};function ve(e,t){const i=ce({id:2,name:"Slide Image Placeholder 1",kind:"sp",placeholder:{type:"sldImg",idx:2},...e===void 0?{frame:{left:1143e3,top:685800,width:4572e3,height:3429e3}}:{}}),a=ce({id:3,name:"Notes Placeholder 2",kind:"sp",placeholder:{type:"body",idx:3,sz:"quarter"},...e===void 0?{frame:{left:685800,top:4343400,width:5486400,height:4114800}}:{},text:H("p:txBody",n("a:bodyPr"),n("a:lstStyle"),(e??"").split(`
|
|
3
|
-
`).map(r=>({runs:[{text:r}],level:0})),t)});return[i
|
|
2
|
+
import{createHash as Te}from"node:crypto";import{zipSync as Ee}from"fflate";import{AUTOSHAPE_STYLE as Oe,colorOfFile as Ie,CONNECTOR_STYLE as Ce,isConnectorGeometry as ie,joinPath as fe,placeholderFrame as Re,plainLevels as Be,Pt as ae}from"@allyhub/slides-core";import{chartBook as je,chartXml as Ne}from"./charts.js";import{asFace as Ae,fontInfo as ze,eotOf as Fe}from"./fonts.js";import{NO_PARAGRAPHS as He,shapeXml as he,treeXml as oe}from"./shapes.js";import{bodyOfStyle as Ge,bodyProps as V,bodyUnder as re,LINK as Xe,SLIDE_NUMBER as Ue,levelOf as ue,listStyle as A,txBody as X}from"./text.js";import{themeXml as ge}from"./theme.js";import{timingXml as We,transitionXml as Je}from"./timing.js";import{HEAD as M,PML as E,color as Ye,el as n,esc as Ze,fill as xe,gradientFill as qe,unesc as Ke}from"./xml.js";const Q={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tif:"image/tiff",tiff:"image/tiff",emf:"image/x-emf",wmf:"image/x-wmf"},ye={mp4:"video/mp4",m4v:"video/mp4",mov:"video/quicktime"},D=e=>(e.split(".").pop()??"").toLowerCase(),Ve=[["regular","p:regular","Regular"],["bold","p:bold","Bold"],["italic","p:italic","Italic"],["boldItalic","p:boldItalic","Bold Italic"]],c={hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",chart:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",package:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package",font:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",officeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",core:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",app:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",slideMaster:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster",slideLayout:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout",slide:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide",theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",notesMaster:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster",notesSlide:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide",image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",video:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video",media:"http://schemas.microsoft.com/office/2007/relationships/media",presProps:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps",viewProps:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps",tableStyles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles"},S={chart:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml",workbook:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",presentation:"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml",slideMaster:"application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml",slideLayout:"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml",slide:"application/vnd.openxmlformats-officedocument.presentationml.slide+xml",theme:"application/vnd.openxmlformats-officedocument.theme+xml",notesMaster:"application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml",notesSlide:"application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml",presProps:"application/vnd.openxmlformats-officedocument.presentationml.presProps+xml",viewProps:"application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml",tableStyles:"application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml",core:"application/vnd.openxmlformats-package.core-properties+xml",app:"application/vnd.openxmlformats-officedocument.extended-properties+xml"};class O{list=[];linked(t){return t.replaceAll(new RegExp(`r:id="${Xe}([^"]*)"`,"gu"),(o,i)=>`r:id="${this.add(c.hyperlink,Ke(i),!0)}"`)}add(t,o,i=!1){const r=this.list.find(s=>s.type===t&&s.target===o);if(r)return r.id;const p=`rId${String(this.list.length+1)}`;return this.list.push({id:p,type:t,target:o,...i?{external:i}:{}}),p}xml(){return M+n("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},...this.list.map(t=>n("Relationship",{Id:t.id,Type:t.type,Target:t.target,TargetMode:t.external?"External":void 0})))}}class Qe{list=[];add(t,o){return this.list.push({chart:t,frame:o}),`../charts/chart${String(this.list.length)}.xml`}}class et{parts=new Map;byHash=new Map;add(t,o,i,r){const p=Te("sha256").update(t).digest("hex"),s=this.byHash.get(`${i}:${p}`);if(s)return s;const l=r?.split("/").pop()?.replace(/\.[^.]*$/u,"").replace(/[^A-Za-z0-9_-]+/gu,"-").replace(/^-+|-+$/gu,""),f=l===void 0||l===""?void 0:l;let u=`${f??`${i}${String(this.parts.size+1)}`}.${o}`;for(let P=2;this.parts.has(`ppt/media/${u}`);P++)u=`${f??i}-${String(P)}.${o}`;return this.parts.set(`ppt/media/${u}`,t),this.byHash.set(`${i}:${p}`,`../media/${u}`),`../media/${u}`}}function be(e){return e.kind==="component"||e.kind==="movie"?!1:e.kind==="picture"?Q[D(e.media?.path??"")]!==void 0:!0}function se(e){return e.kind==="component"||e.kind==="movie"?!0:e.kind==="picture"?Q[D(e.media?.path??"")]===void 0:!1}export function picturedShapes(e){return e.slides.flatMap(t=>t.shapes.filter(o=>se(o)).map(o=>({key:`${t.id}/${o.name}`,slide:t.id,shape:o.name,frame:o.frame})))}export function filesOf(e){const t=new Set;for(const o of e.masters)for(const i of[...o.shapes,...o.layouts.flatMap(r=>r.shapes)])i.media&&be(i)&&t.add(fe(i.media.base,i.media.path));for(const o of e.slides){o.background_picture!==void 0&&t.add(o.background_picture);for(const i of o.shapes)i.media&&(i.kind==="picture"||i.kind==="movie")&&t.add(i.media.path)}return[...t].sort()}const tt=n("p:nvGrpSpPr",{},n("p:cNvPr",{id:1,name:""}),n("p:cNvGrpSpPr"),n("p:nvPr")),nt=n("p:grpSpPr",{},n("a:xfrm",{},n("a:off",{x:0,y:0}),n("a:ext",{cx:0,cy:0}),n("a:chOff",{x:0,y:0}),n("a:chExt",{cx:0,cy:0}))),Z=e=>n("p:spTree",{},tt,nt,...e),_e={bg1:"lt1",tx1:"dk1",bg2:"lt2",tx2:"dk2",accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",hlink:"hlink",folHlink:"folHlink"},ee=e=>n("p:bg",{},n("p:bgPr",{},n("a:solidFill",{},Ye(e)),n("a:effectLst")));function it(e,t,o){if(e.background_picture!==void 0){const i=o(e.background_picture);if(i!==void 0)return n("p:bg",{},n("p:bgPr",{},n("a:blipFill",{dpi:0,rotWithShape:1},n("a:blip",{"r:embed":i}),n("a:srcRect"),n("a:stretch",{},n("a:fillRect"))),n("a:effectLst")))}return e.background_gradient?n("p:bg",{},n("p:bgPr",{},qe(e.background_gradient),n("a:effectLst"))):de(e.background,t)?"":ee(e.background)}const de=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Se(e){return{...e.fill_transparency===void 0?{}:{fillTransparency:e.fill_transparency,...e.fill===void 0?{}:{fill:e.fill}},...e.gradient?{gradient:e.gradient}:{},...e.shadow===void 0?{}:{shadow:e.shadow}}}function te(e){const t=o=>({...e.fill===void 0||"fill"in o&&de(e.fill,o.fill)?{}:{fill:e.fill},...e.line===void 0||de(e.line,o.line)?{}:{line:e.line},...e.line_width===void 0||e.line_width===o.line_width?{}:{lineWidth:e.line_width}});return e.kind==="autoshape"?ie(e.geometry)?{style:"connector",...t(Ce)}:{style:"shape",...t(Oe)}:{...e.kind==="textbox"?{fill:e.fill??null}:e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{lineWidth:e.line_width}}}const at=(e,t)=>Array.from({length:Math.max(e.length,t.length)},(o,i)=>{const r=e[i]??{},p=t[i]??{},s={...r.font,...p.font};return{...r,...p,...Object.keys(s).length>0?{font:s}:{}}});function ke(e,t,o,i,r,p,s,l){const f=i!==void 0&&r!==void 0&&JSON.stringify(i.text_styles.other)!==JSON.stringify(r.text_styles.other);return X("p:txBody",V(re(t,l),s,e==="autoshape"?{rtlCol:0}:{}),A(f?at(i.text_styles.other,t.levels):t.levels),o,p,l)}const ot="{2D5ABB26-0587-4C30-8999-92F81FD0307C}",rt=[["left","a:lnL"],["right","a:lnR"],["top","a:lnT"],["bottom","a:lnB"]];function we(e,t){return n("a:tbl",{},n("a:tblPr",{firstRow:e.first_row?1:void 0,firstCol:e.first_col?1:void 0,lastRow:e.last_row?1:void 0,lastCol:e.last_col?1:void 0,bandRow:e.horz_banding?1:void 0,bandCol:e.vert_banding?1:void 0},n("a:tableStyleId",{},ot)),n("a:tblGrid",{},...e.columns.map(o=>n("a:gridCol",{w:o}))),...e.rows.map((o,i)=>n("a:tr",{h:o.height},...o.cells.map((r,p)=>{const s=r.text.own??r.text,l=$e(r.fileText,r.text.style),f=o.cells[p-1],u=e.rows[i-1]?.cells[p];return n("a:tc",{gridSpan:r.span_width,rowSpan:r.span_height,hMerge:r.spanned&&f&&(f.spanned||f.span_width)?1:void 0,vMerge:r.spanned&&u&&(u.spanned||u.span_height)?1:void 0},X("a:txBody",n("a:bodyPr"),n("a:lstStyle"),r.text.paragraphs,t,l),n("a:tcPr",{marL:s.margin_left,marR:s.margin_right,marT:s.margin_top,marB:s.margin_bottom,anchor:re(s,l).vertical_anchor},...rt.map(([P,U])=>{const I=r.borders?.[P];return I?n(U,{w:I.width},xe(I.color)):""}),r.fill===void 0?"":xe(r.fill)))}))))}const le=e=>e.group===void 0?{}:{group:e.group},ne=e=>({...e.line_dash===void 0?{}:{lineDash:e.line_dash},...e.line_begin===void 0?{}:{lineBegin:e.line_begin},...e.line_end===void 0?{}:{lineEnd:e.line_end},...e.line_begin_size===void 0?{}:{lineBeginSize:e.line_begin_size},...e.line_end_size===void 0?{}:{lineEndSize:e.line_end_size}});function pe(e,t,o){return e.map(i=>{const r=i.kind==="cxn"?t.get(i.id)?.connect:void 0;if(!r)return i;const p=f=>{const u=f&&o(f.shape);return f&&u!==void 0?{id:u,idx:f.site}:void 0},s=p(r.begin),l=p(r.end);return s||l?{...i,connect:{...s?{begin:s}:{},...l?{end:l}:{}}}:i})}const Me=e=>new Map(e.map((t,o)=>[o+2,t])),ve=e=>t=>e.find(o=>o.name===t)?.id;function Pe(e,t,o,i,r,p,s){const l={...Se(e),id:t,name:e.name,...e.frame?{frame:e.frame}:{},...e.rotation===void 0?{}:{rotation:e.rotation},...e.flip?{flip:e.flip}:{}};if(e.kind==="placeholder"&&e.placeholder){const f=s.on==="master"?{...Re(e.placeholder.type),...e.text}:e.text;return{...l,kind:"sp",placeholder:{...e.placeholder},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{lineWidth:e.line_width},...e.fill===void 0&&e.line===void 0?{}:{geometry:e.geometry??"rect"},text:X("p:txBody",f?V(f):n("a:bodyPr"),A(f?.levels??[]),e.placeholder.type==="sldNum"?Ue:He,p)}}if(be(e)){if(e.table)return{...l,kind:"table",table:we(e.table,p)};if(e.kind==="picture"&&e.media){const f=r(fe(e.media.base,e.media.path));return f?{...l,kind:"pic",picture:{image:o.add(c.image,i.add(f,D(e.media.path),"image",e.media.path))},descr:e.media.path.split("/").pop()??""}:void 0}return!e.path&&ie(e.geometry)?{...l,kind:"cxn",geometry:e.geometry??"line",...e.adjustments?{adjustments:e.adjustments}:{},...te(e),...ne(e)}:{...l,kind:"sp",...e.kind==="textbox"?{textbox:!0}:{},...e.path?{path:e.path}:{geometry:e.geometry??"rect"},...e.adjustments?{adjustments:e.adjustments}:{},...te(e),...ne(e),...e.text?{text:ke(e.kind,e.text,e.text.paragraphs,s.master,s.first,p)}:{}}}}function $e(e,t){if(!e)return;const o=e.numbered!==void 0||e.bullet!==void 0&&e.bullet!==!1;return{font:{...e.size===void 0?{}:{size:ae(e.size)},...e.bold===void 0?{}:{bold:e.bold},...e.italic===void 0?{}:{italic:e.italic},...e.underline===void 0?{}:{underline:e.underline},...e.strike===void 0?{}:{strike:e.strike},...e.font===void 0?{}:{name:e.font},...e.color===void 0?{}:{color:Ie(e.color)}},paragraph:{...e.align===void 0?{}:{alignment:e.align},...e.line_spacing===void 0?{}:{line_spacing:{lines:e.line_spacing}},...e.space_before===void 0?{}:{space_before:ae(e.space_before)},...e.space_after===void 0?{}:{space_after:ae(e.space_after)},...e.numbered!==void 0?{numbered:e.numbered}:e.bullet===void 0?{}:{bullet:e.bullet===!1?null:e.bullet}},...o&&t?{levels:t.levels.map(i=>({margin_left:i.margin_left,indent:i.indent}))}:{},...e.anchor===void 0?{}:{anchor:e.anchor}}}function st(e,t,o,i,r,p,s,l,f){const u=`${e.id}/${t.name}`,P=p.deck.fitted[u];if(t.level!=="slide"&&!se(t))return;const U=t.level==="slide"&&t.placeholder?{placeholder:{...t.placeholder}}:{},W=!t.placeholder||t.sources.frame.from==="slide"||t.sources.frame.from==="code"?{frame:t.frame}:{},v={...Se(t),id:o,name:t.name,...U,...W,...t.rotation===void 0?{}:{rotation:t.rotation},...t.flip?{flip:t.flip}:{},...t.alt===void 0?{}:{descr:t.alt},...t.locked?{locked:!0}:{}},q=()=>{const y=p.pictures.get(u);return y?{image:i.add(c.image,r.add(y,"png","image"))}:void 0};if(t.table)return{...v,kind:"table",table:we(t.table,s)};if(t.chart)return{...v,frame:t.frame,kind:"chart",chart:i.add(c.chart,f.add(t.chart,t.frame))};if(t.kind==="movie"&&t.media){const y=q(),R=ye[D(t.media.path)]?p.file(t.media.path):void 0;if(!y)return;if(!R)return{...v,frame:t.frame,kind:"pic",picture:y};const L=r.add(R,D(t.media.path),"media",t.media.path);return l.push(o),{...v,frame:t.frame,kind:"pic",picture:{image:y.image},video:{link:i.add(c.video,L),media:i.add(c.media,L)}}}if(se(t)){const y=q(),R=p.movies?.get(u);if(y&&R){const L=r.add(R.bytes,"mp4","media");return l.push(o),{...v,frame:t.frame,kind:"pic",picture:{image:y.image},video:{link:i.add(c.video,L),media:i.add(c.media,L)}}}return y?{...v,frame:t.frame,kind:"pic",picture:y}:void 0}if(t.kind==="picture"&&t.media){const y=p.file(t.media.path);return y?{...v,kind:"pic",picture:{image:i.add(c.image,r.add(y,D(t.media.path),"image",t.media.path)),...t.media.crop?{crop:t.media.crop}:{}},descr:t.alt??t.media.path.split("/").pop()??""}:void 0}if(!t.path&&ie(t.geometry))return{...v,kind:"cxn",geometry:t.geometry??"line",...t.adjustments?{adjustments:t.adjustments}:{},...te(t),...ne(t)};const $=t.text,K=p.deck.masters.find(y=>y.name===e.master),z=$e(t.fileText,$?.style),J=$?t.placeholder?X("p:txBody",V(re({},z),P),n("a:lstStyle"),$.paragraphs,s,z):$.own?ke(t.kind,$.own,$.paragraphs,K,p.deck.masters[0],s,P,z):X("p:txBody",V(Ge($.style),P),A($.style.levels.map(ue)),$.paragraphs,s):void 0,Y=t.sources.frame.from==="code",C=t.fill!==void 0&&(Y||t.sources.fill?.from==="slide"),F=t.line!==void 0&&(Y||t.sources.line?.from==="slide");return{...v,kind:"sp",...t.kind==="textbox"?{textbox:!0}:{},...t.path?{path:t.path}:!t.placeholder||C||F?{geometry:t.geometry??"rect"}:{},...t.adjustments?{adjustments:t.adjustments}:{},...ne(t),...t.placeholder?{...C?{fill:t.fill}:{},...F?{line:t.line}:{},...t.line_width===void 0?{}:{lineWidth:t.line_width}}:te(t),...J?{text:J}:{}}}const dt={cx:6858e3,cy:9144e3};function Le(e,t){const o=he({id:2,name:"Slide Image Placeholder 1",kind:"sp",placeholder:{type:"sldImg",idx:2},...e===void 0?{frame:{left:1143e3,top:685800,width:4572e3,height:3429e3}}:{}}),i=he({id:3,name:"Notes Placeholder 2",kind:"sp",placeholder:{type:"body",idx:3,sz:"quarter"},...e===void 0?{frame:{left:685800,top:4343400,width:5486400,height:4114800}}:{},text:X("p:txBody",n("a:bodyPr"),n("a:lstStyle"),(e??"").split(`
|
|
3
|
+
`).map(r=>({runs:[{text:r}],level:0})),t)});return[o,i]}export function pptxParts(e){const{deck:t}=e,o=t.lang?.split("-").map((a,m)=>m===0?a.toLowerCase():a.toUpperCase()).join("-"),i=new Map,r=new et,p=new Qe,s=[],l=new O,f=[],u=new Map;let P=2147483648;t.masters.forEach((a,m)=>{const h=m+1,k=P++,x=`ppt/slideMasters/slideMaster${String(h)}.xml`,b=`ppt/theme/theme${String(h)}.xml`;i.set(b,ge(t.theme)),s.push([b,S.theme]);const _=new O,T=[];a.layouts.forEach(w=>{const j=u.size+1,d=`ppt/slideLayouts/slideLayout${String(j)}.xml`;u.set(w,d);const g=new O;g.add(c.slideMaster,`../slideMasters/slideMaster${String(h)}.xml`);const N=w.shapes.flatMap((ce,De)=>{const me=Pe(ce,De+2,g,r,e.file,o,{master:a,first:e.deck.masters[0],on:"layout"});return me?[{...me,...le(ce)}]:[]});i.set(d,M+n("p:sldLayout",{...E,...w.display_master_shapes===!1?{showMasterSp:0}:{},preserve:1},n("p:cSld",{name:w.name},w.background===void 0?"":ee(w.background),Z(oe(pe(N,Me(w.shapes),ve(N))))),n("p:clrMapOvr",{},n("a:masterClrMapping")))),i.set(`ppt/slideLayouts/_rels/slideLayout${String(j)}.xml.rels`,g.xml()),s.push([d,S.slideLayout]),T.push(n("p:sldLayoutId",{id:P++,"r:id":_.add(c.slideLayout,`../slideLayouts/slideLayout${String(j)}.xml`)}))}),_.add(c.theme,`../theme/theme${String(h)}.xml`);const H=a.shapes.flatMap((w,j)=>{const d=Pe(w,j+2,_,r,e.file,o,{master:a,first:e.deck.masters[0],on:"master"});return d?[{...d,...le(w)}]:[]}),G=a.text_styles;i.set(x,M+n("p:sldMaster",E,n("p:cSld",{name:a.name},ee(a.background),Z(oe(pe(H,Me(a.shapes),ve(H))))),n("p:clrMap",_e),n("p:sldLayoutIdLst",{},...T),n("p:txStyles",{},A(G.title,"p:titleStyle"),A(G.body,"p:bodyStyle"),A(G.other,"p:otherStyle")))),i.set(`ppt/slideMasters/_rels/slideMaster${String(h)}.xml.rels`,_.xml()),s.push([x,S.slideMaster]),f.push(n("p:sldMasterId",{id:k,"r:id":l.add(c.slideMaster,`slideMasters/slideMaster${String(h)}.xml`)}))});const U=t.slides.some(a=>a.notes!==void 0),I=`ppt/theme/theme${String(t.masters.length+1)}.xml`;let W="";if(U){i.set(I,ge(t.theme)),s.push([I,S.theme]);const a=new O;a.add(c.theme,`../theme/theme${String(t.masters.length+1)}.xml`),i.set("ppt/notesMasters/notesMaster1.xml",M+n("p:notesMaster",E,n("p:cSld",{},ee("lt1"),Z(Le(void 0,o))),n("p:clrMap",_e))),i.set("ppt/notesMasters/_rels/notesMaster1.xml.rels",a.xml()),s.push(["ppt/notesMasters/notesMaster1.xml",S.notesMaster]),W=l.add(c.notesMaster,"notesMasters/notesMaster1.xml")}const v=[],q=new Map(t.masters.flatMap(a=>a.layouts.map(m=>[m.name,m]))),$=a=>{const m=new Set,h=t.slides[a];for(const[k,x]of[[t.slides[a-1],h],[h,t.slides[a+1]]])if(k&&x&&x.transition?.type==="morph")for(const b of k.shapes)b.level==="slide"&&x.shapes.some(_=>_.name===b.name)&&m.add(b.name);return m};t.slides.forEach((a,m)=>{const h=m+1,k=`ppt/slides/slide${String(h)}.xml`,x=new O,b=q.get(a.layout),_=b?u.get(b):void 0;_&&x.add(c.slideLayout,`../${_.slice(4)}`);const T=[],H=new Map,G=new Map;let w=1;const j=a.shapes.flatMap(d=>{const g=st(a,d,++w,x,r,e,o,T,p);if(!g)return w--,[];H.set(d.name,g.id),G.set(g.id,d);const N=$(m).has(d.name)?{name:`!!${g.name}`}:{};return[{...g,...le(d),...N}]});if(a.notes!==void 0){const d=`ppt/notesSlides/notesSlide${String(h)}.xml`,g=new O;g.add(c.notesMaster,"../notesMasters/notesMaster1.xml"),g.add(c.slide,`../slides/slide${String(h)}.xml`),i.set(d,M+n("p:notes",E,n("p:cSld",{},Z(Le(a.notes,o))),n("p:clrMapOvr",{},n("a:masterClrMapping")))),i.set(`ppt/notesSlides/_rels/notesSlide${String(h)}.xml.rels`,g.xml()),s.push([d,S.notesSlide]),x.add(c.notesSlide,`../notesSlides/notesSlide${String(h)}.xml`)}i.set(k,M+n("p:sld",{...E,show:a.hidden?0:void 0},n("p:cSld",{name:a.id},it(a,b?.background??t.masters.find(d=>d.name===a.master)?.background,d=>{const g=e.file(d);return g&&Q[D(d)]!==void 0?x.add(c.image,r.add(g,D(d),"image",d)):void 0}),x.linked(Z(oe(pe(j,G,d=>H.get(d)))))),n("p:clrMapOvr",{},n("a:masterClrMapping")),Je(a.transition,a.advance),We(a.animations,T,d=>H.get(d),d=>a.shapes.find(g=>g.name===d)?.text!==void 0,t,new Map(a.shapes.flatMap(d=>{const g=e.movies?.get(`${a.id}/${d.name}`),N=d.kind==="movie"&&d.media?e.lengths?.get(d.media.path):g?.seconds;return N===void 0?[]:[[d.name,N]]}))))),i.set(`ppt/slides/_rels/slide${String(h)}.xml.rels`,x.xml()),s.push([k,S.slide]),v.push(n("p:sldId",{id:256+m,"r:id":l.add(c.slide,`slides/slide${String(h)}.xml`)}))}),l.add(c.theme,"theme/theme1.xml"),l.add(c.presProps,"presProps.xml"),l.add(c.viewProps,"viewProps.xml"),l.add(c.tableStyles,"tableStyles.xml");const K=new Map;let z=0;const J=(e.fonts??[]).flatMap(a=>{const m=Ve.flatMap(([h,k,x])=>{const b=a[h]&&Ae(a[h],a.typeface,x),_=b&&ze(b);if(!b||!_)return[];const T=`fonts/font${String(++z)}.fntdata`;return K.set(`ppt/${T}`,Fe(b,_,a.typeface,x)),[n(k,{"r:id":l.add(c.font,T)})]});return m.length===0?[]:[n("p:embeddedFont",{},n("p:font",{typeface:a.typeface}),...m)]}),Y=J.length===0?"":n("p:embeddedFontLst",{},...J);i.set("ppt/presentation.xml",M+n("p:presentation",{...E,...Y===""?{}:{embedTrueTypeFonts:1},saveSubsetFonts:1},n("p:sldMasterIdLst",{},...f),W===""?"":n("p:notesMasterIdLst",{},n("p:notesMasterId",{"r:id":W})),n("p:sldIdLst",{},...v),n("p:sldSz",{cx:t.width,cy:t.height}),n("p:notesSz",dt),Y,e.deck.masters[0]?A(Be(e.deck.masters[0]).map(ue),"p:defaultTextStyle"):"")),i.set("ppt/_rels/presentation.xml.rels",l.xml()),s.push(["ppt/presentation.xml",S.presentation]),i.set("ppt/presProps.xml",M+n("p:presentationPr",E)),i.set("ppt/viewProps.xml",M+n("p:viewPr",E)),i.set("ppt/tableStyles.xml",M+n("a:tblStyleLst",{"xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main",def:"{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}"})),s.push(["ppt/presProps.xml",S.presProps]),s.push(["ppt/viewProps.xml",S.viewProps]),s.push(["ppt/tableStyles.xml",S.tableStyles]),i.set("docProps/core.xml",M+n("cp:coreProperties",{"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/"},e.title===void 0?"":`<dc:title>${Ze(e.title)}</dc:title>`)),i.set("docProps/app.xml",M+n("Properties",{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"},n("Application",{},"AllyHub"),n("Slides",{},String(t.slides.length)),n("Notes",{},String(t.slides.filter(a=>a.notes!==void 0).length)),n("HiddenSlides",{},String(t.slides.filter(a=>a.hidden).length)))),s.push(["docProps/core.xml",S.core]),s.push(["docProps/app.xml",S.app]);const C=new O;C.add(c.officeDocument,"ppt/presentation.xml"),C.add(c.core,"docProps/core.xml"),C.add(c.app,"docProps/app.xml");const F=new Map;p.list.forEach(({chart:a,frame:m},h)=>{const k=String(h+1),x=`ppt/charts/chart${k}.xml`,b=new O,_=`Microsoft_Excel_Sheet${k}.xlsx`;F.set(`ppt/embeddings/${_}`,je(a)),i.set(x,Ne(a,m,b.add(c.package,`../embeddings/${_}`))),i.set(`ppt/charts/_rels/chart${k}.xml.rels`,b.xml()),s.push([x,S.chart])});const y=new Set([...r.parts.keys(),...F.keys()].map(D)),R=M+n("Types",{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},n("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),n("Default",{Extension:"xml",ContentType:"application/xml"}),z>0?n("Default",{Extension:"fntdata",ContentType:"application/x-fontdata"}):"",...[...y].sort().map(a=>n("Default",{Extension:a,ContentType:a==="xlsx"?S.workbook:Q[a]??ye[a]??"application/octet-stream"})),...s.map(([a,m])=>n("Override",{PartName:`/${a}`,ContentType:m}))),L=new TextEncoder,B=new Map;B.set("[Content_Types].xml",L.encode(R)),B.set("_rels/.rels",L.encode(C.xml()));for(const[a,m]of i)B.set(a,L.encode(m));for(const[a,m]of r.parts)B.set(a,m);for(const[a,m]of F)B.set(a,m);for(const[a,m]of K)B.set(a,m);return B}const lt=new Date(1980,0,1);export function writePptx(e){const t={};for(const[o,i]of pptxParts(e))t[o]=[i,{level:/\.(png|jpe?g|gif|mp4|m4v|mov)$/u.test(o)?0:6,mtime:lt}];return Ee(t)}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
2
|
import{lumOf as s}from"@allyhub/ooxml/brightness";const p={"&":"&","<":"<",">":">",'"':"""},i=t=>{const o=t.charCodeAt(0);return o<32&&o!==9&&o!==10&&o!==13||o===65534||o===65535};export const esc=t=>Array.from(t,o=>i(o)?"":p[o]??o).join(""),unesc=t=>t.replaceAll(""",'"').replaceAll(">",">").replaceAll("<","<").replaceAll("&","&");export function el(t,o={},...e){const n=Object.entries(o).filter(([,a])=>a!==void 0).map(([a,l])=>` ${a}="${esc(typeof l=="boolean"?l?"1":"0":String(l))}"`).join(""),r=e.join("");return r===""?`<${t}${n}/>`:`<${t}${n}>${r}</${t}>`}export const HEAD=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3
|
-
`,NS={a:"http://schemas.openxmlformats.org/drawingml/2006/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",p:"http://schemas.openxmlformats.org/presentationml/2006/main",p14:"http://schemas.microsoft.com/office/powerpoint/2010/main"},PML={"xmlns:a":NS.a,"xmlns:r":NS.r,"xmlns:p":NS.p};export function color(t,o=0){const e=o>0?el("a:alpha",{val:Math.round((1-o)*1e5)}):"";if(typeof t=="string")return el("a:schemeClr",{val:t},e);if("rgb"in t)return el("a:srgbClr",{val:t.rgb.replace("#","").toUpperCase()},e);const{lumMod:n,lumOff:r}=s(t.brightness);return el("a:schemeClr",{val:t.theme_color},el("a:lumMod",{val:n}),r===void 0?"":el("a:lumOff",{val:r}),e)}export const fill=(t,o=0)=>t===null?el("a:noFill"):el("a:solidFill",{},color(t,o)),gradientFill=t=>el("a:gradFill",{rotWithShape:1},el("a:gsLst",{},...[...t.stops].sort((o,e)=>o.at-e.at).map(o=>el("a:gs",{pos:Math.round(o.at*1e5)},color(o.color,o.transparency)))),el("a:lin",{ang:Math.round(t.angle*6e4),scaled:0})),effects=t=>el("a:effectLst",{},el("a:outerShdw",{blurRad:t.blur,dist:t.distance,dir:Math.round(t.angle*6e4),algn:"ctr",rotWithShape:0},color(t.color,t.transparency))),centipoints=t=>Math.round(t/127);
|
|
3
|
+
`,NS={a:"http://schemas.openxmlformats.org/drawingml/2006/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",p:"http://schemas.openxmlformats.org/presentationml/2006/main",p14:"http://schemas.microsoft.com/office/powerpoint/2010/main"},PML={"xmlns:a":NS.a,"xmlns:r":NS.r,"xmlns:p":NS.p};export function color(t,o=0){const e=o>0?el("a:alpha",{val:Math.round((1-o)*1e5)}):"";if(typeof t=="string")return el("a:schemeClr",{val:t},e);if("rgb"in t)return el("a:srgbClr",{val:t.rgb.replace("#","").toUpperCase()},e);const{lumMod:n,lumOff:r}=s(t.brightness);return el("a:schemeClr",{val:t.theme_color},el("a:lumMod",{val:n}),r===void 0?"":el("a:lumOff",{val:r}),e)}export const fill=(t,o=0)=>t===null?el("a:noFill"):el("a:solidFill",{},color(t,o)),gradientFill=t=>el("a:gradFill",{rotWithShape:1},el("a:gsLst",{},...[...t.stops].sort((o,e)=>o.at-e.at).map(o=>el("a:gs",{pos:Math.round(o.at*1e5)},color(o.color,o.transparency)))),el("a:lin",{ang:Math.round(t.angle*6e4),scaled:0})),effects=t=>t===null?el("a:effectLst",{}):el("a:effectLst",{},el("a:outerShdw",{blurRad:t.blur,dist:t.distance,dir:Math.round(t.angle*6e4),algn:"ctr",rotWithShape:0},color(t.color,t.transparency))),centipoints=t=>Math.round(t/127);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{consoleAt as
|
|
2
|
+
import{consoleAt as m}from"@allyhub/piece/page";import{createEnv as k}from"@allyhub/image-draw/env";import{loadTextFonts as E}from"@allyhub/image-draw/fonts";import{pictureWaiter as $}from"@allyhub/image-draw/pictures";import{themeOver as v}from"@allyhub/slides-core";import{CLEAN_LOOK as S,SEEK_LIMIT as O,isGraphicLayer as j,lookCss as C,readPropsText as T}from"@allyhub/piece";import{themeCss as M}from"./draw.js";import{importDeck as L,loadStyles as P,lookTheme as A,moduleComponents as I,stageContext as K}from"./load.js";async function _(t){if(t.kind==="slides"){const o=await L(t);return{components:o.components,...o.theme===void 0?{}:{theme:o.theme}}}await P(t);const p=await import(t.module);return{components:I(p)}}export async function componentStage(t,p,o){const f=k(t,p,void 0,t.kind==="slides"?"slides":void 0),d=await _(t),u=t.looks?.clean??S,b={...C(u),...M(v(A(t),d.theme))};document.documentElement.style.background="transparent",document.body.style.background="transparent";let l=[];const w=()=>{for(const e of l)m({phase:"mount",layer:e.layer.component},()=>{e.layer.unmount?.(e.el,e.layer.props,e.ctx)});l=[],o.replaceChildren()};return{async draw(e){w();const s=d.components[e.name];if(!s)throw new Error(`There is no component ${e.name} in ${t.file} (it has ${Object.keys(d.components).join(", ")||"none"}).`);Object.assign(o.style,{position:"relative",width:`${String(e.width)}px`,height:`${String(e.height)}px`,overflow:"hidden",background:"transparent"});for(const[n,a]of Object.entries(b))o.style.setProperty(n,a);let y=e.props;if(t.kind==="doc"){const n=T(s,e.props);if(n.problems.length>0)throw new Error(n.problems.join("; "));y=n.props}const g=[],x=m({phase:"build"},()=>s.layers(y,{width:e.width,height:e.height,slide:""}));for(const[n,a]of x.entries()){if(!j(a))throw new Error(`${e.name}'s layers: item ${String(n+1)} is not a graphic layer (custom() or a component).`);const r=a,i=document.createElement("div");Object.assign(i.style,{position:"absolute",inset:"0px"}),o.append(i);const c=K({look:u,width:e.width,height:e.height,start:0,end:Math.max(e.t,0)+1,combo:f.combo,format:`${String(Math.round(e.width))}x${String(Math.round(e.height))}`,asset:h=>f.log.asset(h),wait:h=>g.push(h),report:()=>{}});l.push({layer:r,el:i,ctx:c}),m({phase:"mount",layer:r.component,index:n},()=>{r.mount(i,r.props,c)}),m({phase:"render",layer:r.component,index:n},()=>{r.render(i,Math.max(0,e.t),r.props,c)})}return await E(o),await Promise.all(g),await $(o)(O*1e3),{...s.label===void 0?{}:{label:s.label},props:s.props}},dispose:w}}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{adjustmentDefaults as
|
|
3
|
-
`),o)){if(!b.ea){g.append(b.text);continue}const p=document.createElement("span");p.style.fontFamily=m,p.textContent=b.text,g.append(p)}d.append(g)}e.append(d)})}export const isCjk=e=>e!==void 0&&/^(zh|ja|ko)(-|$)/iu.test(e);function k(e,t,i,r){const{style:n}=e,o=n.auto_size==="shape",s=document.createElement("div");s.dataset.akText="",s.dataset.akAutofit=n.auto_size,Object.assign(s.style,{position:o?"relative":"absolute",inset:o?"auto":"0px",minHeight:"100%",display:"flex",flexDirection:"column",justifyContent:V[n.vertical_anchor],padding:`${String(n.margins.top*t)}px ${String(n.margins.right*t)}px ${String(n.margins.bottom*t)}px ${String(n.margins.left*t)}px`,whiteSpace:n.word_wrap?"pre-wrap":"pre",overflowWrap:"break-word",boxSizing:"border-box"});const a=document.createElement("div");return a.dataset.akBody="",s.append(a),tt(a,e,t,i,r),i!==void 0&&(s.lang=i),isCjk(i)&&(s.dataset.akCjk=""),s}export function fitText(e){const t=e.querySelector("[data-ak-body]");if(!t||e.dataset.akAutofit!=="text")return 1;const i=e.clientHeight-parseFloat(getComputedStyle(e).paddingTop)-parseFloat(getComputedStyle(e).paddingBottom),r=s=>(e.style.setProperty("--ak-fit",String(s)),t.scrollHeight<=i+.5);if(r(1))return delete e.dataset.akFontScale,1;let n=MIN_FONT_SCALE,o=1;if(!r(n))return e.dataset.akFontScale=n.toFixed(2),n;for(;o-n>.01;){const s=(n+o)/2;r(s)?n=s:o=s}return r(n),e.dataset.akFontScale=n.toFixed(2),n}function et(e,t,i,r){const n=e.split(" "),o=[],s=a=>{const u=Number(n[a]),d=Number(n[a+1]);return[r?.h?t-u:u,r?.v?i-d:d]};for(let a=0;a<n.length;){const u=n[a++];u==="M"||u==="L"?(o.push({op:u,at:[s(a)]}),a+=2):u==="C"?(o.push({op:u,at:[s(a),s(a+2),s(a+4)]}),a+=6):u==="Z"&&o.push({op:u})}return o}const nt=e=>e.map(t=>t.op==="Z"?"Z":`${t.op}${t.at.map(([i,r])=>`${String(i)} ${String(r)}`).join(" ")}`).join(" ");function it(e,t){const i=e.flatMap(o=>o.op==="Z"?[]:o.at),r=t?[...i].reverse():i,n=r[0];if(n)for(const o of r.slice(1)){const s=Math.hypot(n[0]-o[0],n[1]-o[1]);if(s>1e-6)return{at:n,out:[(n[0]-o[0])/s,(n[1]-o[1])/s]}}}function ot(e,t,i,r){const n=e.filter(a=>a.op!=="Z"),o=t?n[n.length-1]:n[0];if(!o)return;const s=t?o.at.slice(o.op==="C"?-2:-1):[...o.at,...n[1]?.op==="C"?n[1].at.slice(0,1):[]];for(const a of s)a[0]+=i,a[1]+=r}function rt(e,t,i,r,n){if(t.line===null)return;const o=t.frame.width*i,s=t.frame.height*i,a=(F(t.geometry??"line",o,s,t.adjustments)?.paths??[]).filter(p=>p.stroke).map(p=>et(p.d,o,s,t.flip)),u=a[0],d=a[a.length-1];if(!u||!d)return;const f="http://www.w3.org/2000/svg",c=document.createElementNS(f,"svg");c.setAttribute("width",String(Math.max(o,1))),c.setAttribute("height",String(Math.max(s,1))),Object.assign(c.style,{position:"absolute",left:"0px",top:"0px",overflow:"visible"});const l=colorCss(t.line??U.line,n),g=Math.max(r,lt*i),m=p=>p===void 0||p==="none"||p==="arrow"?0:g*1.5,b=[];for(const[p,S,h]of[[t.line_begin,u,!1],[t.line_end,d,!0]]){const w=it(S,h);if(!w)continue;const[I,P]=w.at,[j,C]=w.out,O=at(p,I,P,j,C,r,g,l);O&&b.push(O);const $=m(p);$>0&&ot(S,h,-j*$,-C*$)}for(const p of a){const S=document.createElementNS(f,"path");S.setAttribute("d",nt(p)),S.setAttribute("fill","none"),S.setAttribute("stroke",l),S.setAttribute("stroke-width",String(r));const h=L(t.line_dash,r);h&&S.setAttribute("stroke-dasharray",h),c.append(S)}c.append(...b),e.append(c)}const st={sysDash:[3,1],sysDot:[1,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]},L=(e,t)=>e&&st[e]?.map(i=>String(i*t)).join(" "),lt=25200;function at(e,t,i,r,n,o,s,a){if(e===void 0||e==="none")return;const u="http://www.w3.org/2000/svg",d=s*(e==="arrow"?3.5:3),f=(m,b)=>`${String(t-r*m-n*b)},${String(i-n*m+r*b)}`;if(e==="oval"){const m=document.createElementNS(u,"circle");return m.setAttribute("cx",String(t)),m.setAttribute("cy",String(i)),m.setAttribute("r",String(d/2)),m.setAttribute("fill",a),m}const c=e==="arrow",l=document.createElementNS(u,c?"polyline":"polygon"),g={triangle:[f(0,0),f(d,d/2),f(d,-d/2)],stealth:[f(0,0),f(d,d/2),f(d*.7,0),f(d,-d/2)],diamond:[f(-d/2,0),f(0,d/2),f(d/2,0),f(0,-d/2)],arrow:[f(d,d/2),f(0,0),f(d,-d/2)]}[e];return l.setAttribute("points",g.join(" ")),c?(l.setAttribute("fill","none"),l.setAttribute("stroke",a),l.setAttribute("stroke-width",String(o))):l.setAttribute("fill",a),l}function ct(e,t,i,r,n,o){const s=t.frame.width*r,a=t.frame.height*r,u="http://www.w3.org/2000/svg",d=document.createElementNS(u,"svg");d.setAttribute("width",String(Math.max(s,1))),d.setAttribute("height",String(Math.max(a,1))),Object.assign(d.style,{position:"absolute",left:"0px",top:"0px",overflow:"visible"}),D(d,t);let f=colorCss(t.fill,o);if(t.gradient){const c=`ak-gradient-${String(gt++)}`;d.append(mt(u,c,t.gradient,t.frame,o)),f=`url(#${c})`}for(const c of i){const l=document.createElementNS(u,"path");if(l.setAttribute("d",c.d),l.setAttribute("fill-rule","evenodd"),l.setAttribute("fill",c.fill==="none"||t.fill===null||t.fill===void 0?c.fill==="none"||!t.gradient?"none":f:c.fill==="norm"?f:dt[c.fill](colorCss(t.fill,o))),t.fill_transparency!==void 0&&l.setAttribute("fill-opacity",String(1-t.fill_transparency)),c.stroke&&t.line!==void 0&&t.line!==null){l.setAttribute("stroke",colorCss(t.line,o)),l.setAttribute("stroke-width",String(n)),l.setAttribute("stroke-linejoin","round");const g=L(t.line_dash,n);g&&l.setAttribute("stroke-dasharray",g)}d.append(l)}e.append(d)}const dt={darken:e=>`color-mix(in srgb, ${e} 60%, black)`,darkenLess:e=>`color-mix(in srgb, ${e} 80%, black)`,lighten:e=>`color-mix(in srgb, ${e} 60%, white)`,lightenLess:e=>`color-mix(in srgb, ${e} 80%, white)`};function ut(e,t){const i=e.path;if(!i)return[];const r=i.w===0?0:e.frame.width*t/i.w,n=i.h===0?0:e.frame.height*t/i.h;return[{d:i.steps.map(s=>s.op==="close"?"Z":s.op==="move"?`M${String(s.x*r)} ${String(s.y*n)}`:s.op==="line"?`L${String(s.x*r)} ${String(s.y*n)}`:`C${String(s.x1*r)} ${String(s.y1*n)} ${String(s.x2*r)} ${String(s.y2*n)} ${String(s.x*r)} ${String(s.y*n)}`).join(""),fill:"norm",stroke:!0}]}function D(e,t){!t.flip?.h&&!t.flip?.v||(e.style.transform=`scale(${t.flip.h?"-1":"1"}, ${t.flip.v?"-1":"1"})`)}const ft=new Set(["rect","roundRect","ellipse"]),E=(e,t,i)=>t===void 0||t===0?colorCss(e,i):`color-mix(in srgb, ${colorCss(e,i)} ${String((1-t)*100)}%, transparent)`,T=(e,t)=>`linear-gradient(${String(e.angle+90)}deg, ${e.stops.map(i=>`${E(i.color,i.transparency,t)} ${String(i.at*100)}%`).join(", ")})`,H=(e,t)=>e.gradient?T(e.gradient,t):e.fill===null||e.fill===void 0?"transparent":E(e.fill,e.fill_transparency,t);let gt=0;function mt(e,t,i,r,n){const o=document.createElementNS(e,"linearGradient");o.id=t;const s=i.angle*Math.PI/180,a=Math.cos(s),u=Math.sin(s),d=(Math.abs(r.width*a)+Math.abs(r.height*u))/Math.max(r.width,r.height,1)/2;o.setAttribute("x1",String(.5-a*d)),o.setAttribute("y1",String(.5-u*d)),o.setAttribute("x2",String(.5+a*d)),o.setAttribute("y2",String(.5+u*d));for(const f of i.stops){const c=document.createElementNS(e,"stop");c.setAttribute("offset",String(f.at)),c.setAttribute("stop-color",colorCss(f.color,n)),f.transparency!==void 0&&c.setAttribute("stop-opacity",String(1-f.transparency)),o.append(c)}return o}function pt(e,t,i,r){const n=t.angle*Math.PI/180,o=t.distance*i;e.style.filter=`drop-shadow(${String(o*Math.cos(n))}px ${String(o*Math.sin(n))}px ${String(t.blur*i)}px ${E(t.color,t.transparency,r)})`}function bt(e,t,i){const r=t.geometry??"rect",n=t.frame.width*i,o=t.frame.height*i;r==="roundRect"?e.style.borderRadius=`${String(Math.min(n,o)*Math.min(.5,Math.max(0,t.adjustments?.[0]??z("roundRect")[0]??0)))}px`:r==="ellipse"&&(e.style.borderRadius="50%")}const St={left:"borderLeft",right:"borderRight",top:"borderTop",bottom:"borderBottom"},R="http://www.w3.org/2000/svg";function xt(e,t,i,r,n){const o=i.width/A,s=i.height/A,a=r*A,u=B(t,o,s),d=document.createElementNS(R,"svg");d.setAttribute("viewBox",`0 0 ${String(o)} ${String(s)}`),d.setAttribute("width","100%"),d.setAttribute("height","100%"),Object.assign(d.style,{position:"absolute",inset:"0px",overflow:"visible"});const f=(l,g)=>{const m=document.createElementNS(R,l);for(const[b,p]of Object.entries(g))m.setAttribute(b,String(p));d.append(m)},c=l=>{f("path",{d:l.d,fill:l.fill===void 0?"none":colorCss(l.fill,n),stroke:l.width>0?colorCss(l.color,n):"none","stroke-width":l.width,"stroke-linejoin":"round"})};for(const l of[...u.grid,...u.shapes])c(l);for(const l of[...u.boxes,...u.keys])f("rect",{x:l.x,y:l.y,width:l.width,height:l.height,fill:colorCss(l.color,n)});for(const l of[...u.axes,...u.lines])c(l);for(const l of u.dots)f("circle",{cx:l.x,cy:l.y,r:l.r,fill:colorCss(l.color,n)});e.append(d);for(const l of u.words){const g=document.createElement("div");g.textContent=l.text,Object.assign(g.style,{position:"absolute",left:`${String(l.x*a)}px`,top:`${String(l.y*a)}px`,transform:`translate(${{start:"0",middle:"-50%",end:"-100%"}[l.anchor]}, -50%)`,fontSize:`${String(l.size*a)}px`,lineHeight:"1",whiteSpace:"nowrap",color:colorCss(l.color,n),fontFamily:"var(--ak-theme-minor)"}),e.append(g)}}function ht(e,t,i,r,n){const o=document.createElement("table");Object.assign(o.style,{borderCollapse:"collapse",tableLayout:"fixed",width:`${String(t.columns.reduce((a,u)=>a+u,0)*i)}px`});const s=document.createElement("colgroup");for(const a of t.columns){const u=document.createElement("col");u.style.width=`${String(a*i)}px`,s.append(u)}o.append(s);for(const[a,u]of t.rows.entries()){const d=document.createElement("tr");d.style.height=`${String(u.height*i)}px`;for(const[f,c]of u.cells.entries()){if(c.spanned)continue;const l=document.createElement("td");l.dataset.akCell=`${String(a)},${String(f)}`,c.span_width&&(l.colSpan=c.span_width),c.span_height&&(l.rowSpan=c.span_height),l.style.padding="0px",l.style.verticalAlign={t:"top",ctr:"middle",b:"bottom"}[c.text.style.vertical_anchor],c.fill!==void 0&&(l.style.background=colorCss(c.fill,n));for(const[m,b]of Object.entries(St)){const p=c.borders?.[m];p&&(l.style[b]=`${String(p.width*i)}px solid ${colorCss(p.color,n)}`)}const g=k(c.text,i,r,n);g.style.minHeight="0px",l.append(g),d.append(l)}o.append(d)}e.style.height="auto",e.append(o)}export function drawShape(e,t,i){const{k:r,colors:n}=i;if(t.kind==="placeholder"&&t.text?.empty===!0&&!i.editing)return;const o=document.createElement("div");o.setAttribute(SHAPE_ATTR,`${e}/${t.name}`);const{left:s,top:a,width:u,height:d}=t.frame;Object.assign(o.style,{position:"absolute",left:`${String(s*r)}px`,top:`${String(a*r)}px`,width:`${String(u*r)}px`,height:`${String(d*r)}px`}),t.rotation!==void 0&&(o.style.transform=`rotate(${String(t.rotation)}deg)`);const f=(t.line_width??LINE_WIDTH)*r;if(t.chart)xt(o,t.chart,t.frame,r,n);else if(t.table)return ht(o,t.table,r,i.lang,n),o;if(t.shadow&&pt(o,t.shadow,r,n),t.alt!==void 0&&o.setAttribute("aria-label",t.alt),t.kind==="autoshape"){if(!t.path&&W(t.geometry))return rt(o,t,r,f,n),o;const c=t.path?ut(t,r):ft.has(t.geometry??"rect")?void 0:F(t.geometry??"rect",t.frame.width*r,t.frame.height*r,t.adjustments)?.paths;if(c)return ct(o,t,c,r,f,n),t.text&&o.append(k(t.text,r,i.lang,n)),o;o.style.background=H(t,n),bt(o,t,r)}else(t.fill!==void 0||t.gradient)&&(o.style.background=H(t,n));if(t.line!==void 0&&t.line!==null&&(o.style.outline=`${String(f)}px ${t.line_dash===void 0||t.line_dash==="solid"?"solid":"dashed"} ${colorCss(t.line,n)}`),t.text?.style.auto_size==="shape"&&(o.style.height="auto",o.style.minHeight="0px",t.text.style.word_wrap||(o.style.width="max-content")),t.kind==="picture"&&t.media){o.style.overflow="hidden";const c=document.createElement("img");c.alt=t.alt??"",c.src=i.url(t.media.path),D(c,t);const l=t.media.crop??{left:0,top:0,right:0,bottom:0},g=1-l.left-l.right,m=1-l.top-l.bottom;Object.assign(c.style,{position:"absolute",width:`${String(100/g)}%`,height:`${String(100/m)}%`,left:`${String(-l.left/g*100)}%`,top:`${String(-l.top/m*100)}%`,maxWidth:"none"}),t.flip&&(c.style.transformOrigin=`${String(50/g-l.left/g*100)}% ${String(50/m-l.top/m*100)}%`),o.append(c)}else if(t.kind==="movie"&&t.media&&!i.playing)o.dataset.akFilm="";else if(t.kind==="movie"&&t.media){const c=document.createElement("video");c.src=i.url(t.media.path),c.muted=!0,c.playsInline=!0,c.preload="auto",t.media.poster!==void 0&&(c.currentTime=t.media.poster),Object.assign(c.style,{width:"100%",height:"100%",objectFit:"fill"}),o.append(c)}return t.text&&o.append(k(t.text,r,i.lang,n)),o}export function drawSlide(e,t){const i=document.createElement("div");i.dataset.akSlide=e.id,Object.assign(i.style,{position:"absolute",inset:"0px",background:colorCss(e.background,t.colors),overflow:"hidden"}),e.background_gradient&&(i.style.background=T(e.background_gradient,t.colors)),e.background_picture!==void 0&&(i.style.background=`${colorCss(e.background,t.colors)} url(${JSON.stringify(t.url(e.background_picture))}) center / 100% 100% no-repeat`);for(const r of e.shapes){const n=drawShape(e.id,r,t);n&&i.append(n)}return i}
|
|
2
|
+
import{adjustmentDefaults as R,chartDrawing as I,colorRgb as P,CONNECTOR_STYLE as B,DECK_FONTS as G,EMU_PER_PT as w,isConnectorGeometry as Z,Pt as U,runLang as W}from"@allyhub/slides-core";import{presetOutline as C}from"@allyhub/ooxml/geometry";export const SHAPE_ATTR="data-ak-shape",LINE_WIDTH=U(.75),SINGLE_SPACING=1.2,MIN_FONT_SCALE=.25;export function themeCss(e){const t={};for(const[i,r]of Object.entries(e.colors))t[`--ak-theme-${i}`]=r;return t["--ak-theme-major"]=y(e.fonts.major,A),t["--ak-theme-minor"]=y(e.fonts.minor,A),t["--ak-theme-major-ea"]=y(e.fonts.major_east_asian,_),t["--ak-theme-minor-ea"]=y(e.fonts.minor_east_asian,_),t}const _='"Noto Sans SC", sans-serif',A=`"${G.minor}", ${_}`,y=(e,t)=>e.includes(",")||e.includes('"')?e:`"${e}", ${t}`;export const colorCss=(e,t)=>e==null?"transparent":P(e,t);const O=e=>e===void 0?void 0:e==="+mj-lt"?"var(--ak-theme-major)":e==="+mn-lt"?"var(--ak-theme-minor)":y(e,A),K={l:"left",ctr:"center",r:"right",just:"justify"},q={t:"flex-start",ctr:"center",b:"flex-end"},J=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\u2E80-\u2FDF\u3000-\u303F\uFF00-\uFFEF]/u,V=/[\u2018\u2019\u201C\u201D\u2026\u2014\u2013\u2025\u00B7]/u;export function eastAsianRuns(e,t){const i=[];for(const r of e){const o=J.test(r)||t&&V.test(r),n=i.at(-1);n?.ea===o?n.text+=r:i.push({text:r,ea:o})}return i}const h=e=>`calc(${String(e)}px * var(--ak-fit, 1))`;function M(e,t,i,r){if(!t)return;const o=O(t.name);o&&(e.style.fontFamily=o),t.size!==void 0&&(e.style.fontSize=h(t.size*i)),t.bold!==void 0&&(e.style.fontWeight=t.bold?"700":"400"),t.italic!==void 0&&(e.style.fontStyle=t.italic?"italic":"normal"),(t.underline!==void 0||t.strike!==void 0||t.link)&&(e.style.textDecorationLine=[t.underline===!0||t.link!==void 0?"underline":"",t.strike===!0?"line-through":""].filter(n=>n!=="").join(" ")||"none"),t.highlight!==void 0&&(e.style.backgroundColor=t.highlight),t.baseline!==void 0&&t.baseline!==0&&(e.style.fontSize=t.size===void 0?"0.66em":h(t.size*i*.66),e.style.verticalAlign=`${String(t.baseline/.66)}em`),t.spacing!==void 0&&(e.style.letterSpacing=h(t.spacing*i)),t.link!==void 0?e.style.color=colorCss("hlink",r):t.color!==void 0&&(e.style.color=colorCss(t.color,r))}function Y(){if(document.getElementById("ak-bullet-style"))return;const e=document.createElement("style");e.id="ak-bullet-style",e.textContent="[data-ak-bullet]::before{content:attr(data-ak-bullet)}",document.head.append(e)}export function paragraphStyle(e,t){const i=t[e.level]??t[0];if(!i)throw new Error("A text style has nine levels.");return{...i,...e.alignment===void 0?{}:{alignment:e.alignment},...e.line_spacing===void 0?{}:{line_spacing:e.line_spacing},...e.space_before===void 0?{}:{space_before:e.space_before},...e.space_after===void 0?{}:{space_after:e.space_after},...e.margin_left===void 0?{}:{margin_left:e.margin_left},...e.indent===void 0?{}:{indent:e.indent},...e.numbered===void 0?{}:{numbered:e.numbered},font:{...i.font,...e.font}}}export function numberText(e,t){const i=o=>(o>26?i(Math.floor((o-1)/26)):"")+String.fromCharCode(97+(o-1)%26),r=o=>{const n=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]];let s="",a=o;for(const[c,d]of n)for(;a>=c;)s+=d,a-=c;return s};return e==="arabicParenR"?`${String(t)})`:e==="alphaLcPeriod"?`${i(t)}.`:e==="alphaUcPeriod"?`${i(t).toUpperCase()}.`:e==="romanLcPeriod"?`${r(t)}.`:e==="romanUcPeriod"?`${r(t).toUpperCase()}.`:`${String(t)}.`}export function paragraphLabels(e,t){const i=[];return e.map(r=>{const o=paragraphStyle(r,t);i.length=r.level+1,o.numbered===void 0?i[r.level]=0:i[r.level]=(i[r.level]??0)+1;const n=r.runs.some(s=>s.text!==""&&s.text!=="\v");return o.numbered===void 0?n?o.bullet?.char:void 0:numberText(o.numbered,i[r.level]??1)})}export function paragraphElement(e,t,i,r,o,n){const s=paragraphStyle(e,i),a=document.createElement("div");a.dataset.akParagraph=String(t),a.dataset.akLevel=String(e.level);const c=e.runs.map(l=>l.font?.size??s.font.size),d=(c.length>0?Math.max(...c):s.font.size)*o,u="lines"in s.line_spacing?String(s.line_spacing.lines*SINGLE_SPACING):h(s.line_spacing.fixed*o),f=s.numbered===void 0&&r!==void 0;if(Object.assign(a.style,{position:"relative",textAlign:K[s.alignment],paddingLeft:`${String(s.margin_left*o)}px`,textIndent:f?"0px":`${String(s.indent*o)}px`,marginTop:t===0?"0px":h(s.space_before*o),marginBottom:h(s.space_after*o),lineHeight:u,fontSize:h(d),minHeight:"lines"in s.line_spacing?h(d*s.line_spacing.lines*SINGLE_SPACING):u}),M(a,s.font,o,n),a.style.fontSize=h(d),r!==void 0){Y();const l=document.createElement("span");l.dataset.akBullet=r;const m=s.numbered===void 0?s.bullet?.font:void 0;Object.assign(l.style,{position:"absolute",left:`${String((s.margin_left+s.indent)*o)}px`,...m===void 0?{}:{fontFamily:O(m)}}),a.append(l)}return a}export const exactSpacing=(e,t)=>!("lines"in paragraphStyle(e,t).line_spacing);export function runElement(e,t,i,r=!1,o){const n=document.createElement("span");M(n,e.font,t,i);const s=e.text===void 0?o:W(e.text,o);return s!==void 0&&s!==o&&(n.lang=s),r&&(n.style.lineHeight="0"),e.font?.link!==void 0&&(n.dataset.akLink=e.font.link),n}export function eastAsianFace(e,t){return`var(--ak-theme-${(e.font?.name??t)==="+mj-lt"?"major":"minor"}-ea)`}function Q(e,t,i,r,o){const n=isCjk(r);e.replaceChildren();const s=t.paragraphs.length>0?t.paragraphs:[{runs:[],level:0}],a=paragraphLabels(s,t.style.levels);s.forEach((c,d)=>{const u=paragraphElement(c,d,t.style.levels,a[d],i,o),f=paragraphStyle(c,t.style.levels).font.name,l=exactSpacing(c,t.style.levels);for(const m of c.runs){const g=runElement(m,i,o,l,r),b=eastAsianFace(m,f);for(const p of eastAsianRuns(m.text.replaceAll("\v",`
|
|
3
|
+
`),n)){if(!p.ea){g.append(p.text);continue}const S=document.createElement("span");S.style.fontFamily=b,S.textContent=p.text,g.append(S)}u.append(g)}e.append(u)})}export const isCjk=e=>e!==void 0&&/^(zh|ja|ko)(-|$)/iu.test(e);function v(e,t,i,r,o){const{style:n}=e,s=n.auto_size==="shape",a=document.createElement("div");a.dataset.akText="",a.dataset.akAutofit=n.auto_size;const c=s?void 0:o;Object.assign(a.style,{position:s?"relative":"absolute",inset:s?"auto":c?`${String(c.top)}px calc(100% - ${String(c.right)}px) calc(100% - ${String(c.bottom)}px) ${String(c.left)}px`:"0px",minHeight:c?`${String(c.bottom-c.top)}px`:"100%",display:"flex",flexDirection:"column",justifyContent:q[n.vertical_anchor],padding:`${String(n.margins.top*t)}px ${String(n.margins.right*t)}px ${String(n.margins.bottom*t)}px ${String(n.margins.left*t)}px`,whiteSpace:n.word_wrap?"pre-wrap":"pre",overflowWrap:"break-word",boxSizing:"border-box"});const d=document.createElement("div");if(d.dataset.akBody="",a.append(d),Q(d,e,t,i,r),!n.word_wrap){Object.assign(d.style,{display:"flex",flexDirection:"column"});for(const u of d.children){if(!(u instanceof HTMLElement))continue;const f=u.style.textAlign;Object.assign(u.style,{width:"max-content",minWidth:"100%",boxSizing:"border-box",alignSelf:f==="center"?"center":f==="right"?"flex-end":"flex-start"})}}return i!==void 0&&(a.lang=i),isCjk(i)&&(a.dataset.akCjk=""),a}export function fitText(e){const t=e.querySelector("[data-ak-body]");if(!t||e.dataset.akAutofit!=="text")return 1;const i=e.clientHeight-parseFloat(getComputedStyle(e).paddingTop)-parseFloat(getComputedStyle(e).paddingBottom),r=s=>(e.style.setProperty("--ak-fit",String(s)),t.scrollHeight<=i+.5);if(r(1))return delete e.dataset.akFontScale,1;let o=MIN_FONT_SCALE,n=1;if(!r(o))return e.dataset.akFontScale=o.toFixed(2),o;for(;n-o>.01;){const s=(o+n)/2;r(s)?o=s:n=s}return r(o),e.dataset.akFontScale=o.toFixed(2),o}function k(e,t,i,r){const o=e.split(" "),n=[],s=a=>{const c=Number(o[a]),d=Number(o[a+1]);return[r?.h?t-c:c,r?.v?i-d:d]};for(let a=0;a<o.length;){const c=o[a++];c==="M"||c==="L"?(n.push({op:c,at:[s(a)]}),a+=2):c==="C"?(n.push({op:c,at:[s(a),s(a+2),s(a+4)]}),a+=6):c==="Z"&&n.push({op:c})}return n}const E=e=>e.map(t=>t.op==="Z"?"Z":`${t.op}${t.at.map(([i,r])=>`${String(i)} ${String(r)}`).join(" ")}`).join(" ");function X(e,t){const i=e.flatMap(n=>n.op==="Z"?[]:n.at),r=t?[...i].reverse():i,o=r[0];if(o)for(const n of r.slice(1)){const s=Math.hypot(o[0]-n[0],o[1]-n[1]);if(s>1e-6)return{at:o,out:[(o[0]-n[0])/s,(o[1]-n[1])/s]}}}function tt(e,t,i,r){const o=e.filter(a=>a.op!=="Z"),n=t?o[o.length-1]:o[0];if(!n)return;const s=t?n.at.slice(n.op==="C"?-2:-1):[...n.at,...o[1]?.op==="C"?o[1].at.slice(0,1):[]];for(const a of s)a[0]+=i,a[1]+=r}function et(e,t,i,r,o){if(t.line===null)return;const n=t.frame.width*i,s=t.frame.height*i,a=(C(t.geometry??"line",n,s,t.adjustments)?.paths??[]).filter(g=>g.stroke).map(g=>k(g.d,n,s,t.flip)),c=a[0],d=a[a.length-1];if(!c||!d)return;const u="http://www.w3.org/2000/svg",f=document.createElementNS(u,"svg");f.setAttribute("width",String(Math.max(n,1))),f.setAttribute("height",String(Math.max(s,1))),Object.assign(f.style,{position:"absolute",left:"0px",top:"0px",overflow:"visible"});const l=colorCss(t.line??B.line,o),m=L(t,c,d,r,i,l);for(const g of a){const b=document.createElementNS(u,"path");b.setAttribute("d",E(g)),b.setAttribute("fill","none"),b.setAttribute("stroke",l),b.setAttribute("stroke-width",String(r));const p=F(t.line_dash,r);p&&b.setAttribute("stroke-dasharray",p),f.append(b)}f.append(...m),e.append(f)}const nt={sysDash:[3,1],sysDot:[1,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]},F=(e,t)=>e&&nt[e]?.map(i=>String(i*t)).join(" "),it=25200,N={sm:2,med:3,lg:5};function L(e,t,i,r,o,n,s={begin:!0,end:!0}){const a=Math.max(r,it*o),c=[];for(const[d,u,f,l,m]of[[e.line_begin,e.line_begin_size,t,!1,s.begin],[e.line_end,e.line_end_size,i,!0,s.end]]){if(!m||d===void 0||d==="none")continue;const g=X(f,l);if(!g)continue;const b=d==="arrow"?.5:0,p=a*(N[u?.len??"med"]+b),S=a*(N[u?.w??"med"]+b);c.push(ot(d,g.at,g.out,p,S,r,n)),d!=="arrow"&&tt(f,l,-g.out[0]*p/2,-g.out[1]*p/2)}return c}function ot(e,[t,i],[r,o],n,s,a,c){const d="http://www.w3.org/2000/svg",u=(g,b)=>`${String(t-r*g-o*b)},${String(i-o*g+r*b)}`;if(e==="oval"){const g=document.createElementNS(d,"ellipse");return g.setAttribute("cx",String(t)),g.setAttribute("cy",String(i)),g.setAttribute("rx",String(n/2)),g.setAttribute("ry",String(s/2)),g.setAttribute("transform",`rotate(${String(Math.atan2(o,r)*180/Math.PI)} ${String(t)} ${String(i)})`),g.setAttribute("fill",c),g}const f=e==="arrow",l=document.createElementNS(d,f?"polyline":"polygon"),m={triangle:[u(0,0),u(n,s/2),u(n,-s/2)],stealth:[u(0,0),u(n,s/2),u(n*.7,0),u(n,-s/2)],diamond:[u(-n/2,0),u(0,s/2),u(n/2,0),u(0,-s/2)],arrow:[u(n,s/2),u(0,0),u(n,-s/2)]}[e];return l.setAttribute("points",m.join(" ")),f?(l.setAttribute("fill","none"),l.setAttribute("stroke",c),l.setAttribute("stroke-width",String(a))):l.setAttribute("fill",c),l}function rt(e,t,i,r,o,n){const s=t.frame.width*r,a=t.frame.height*r,c="http://www.w3.org/2000/svg",d=document.createElementNS(c,"svg");d.setAttribute("width",String(Math.max(s,1))),d.setAttribute("height",String(Math.max(a,1))),Object.assign(d.style,{position:"absolute",left:"0px",top:"0px",overflow:"visible"}),z(d,t);let u=colorCss(t.fill,n);if(t.gradient){const p=`ak-gradient-${String(ct++)}`;d.append(dt(c,p,t.gradient,t.frame,n)),u=`url(#${p})`}const f=i.map(p=>p.d),l=[],m=i.flatMap((p,S)=>p.stroke?[S]:[]),g=m[0],b=m[m.length-1];if(t.line!==void 0&&t.line!==null&&g!==void 0&&b!==void 0&&((t.line_begin??"none")!=="none"||(t.line_end??"none")!=="none")){const p=k(f[g]??"",s,a,void 0),S=g===b?p:k(f[b]??"",s,a,void 0),x=$=>$.at(-1)?.op!=="Z";l.push(...L(t,p,S,o,r,colorCss(t.line,n),{begin:x(p),end:x(S)})),f[g]=E(p),f[b]=E(S)}i.forEach((p,S)=>{const x=document.createElementNS(c,"path");if(x.setAttribute("d",f[S]??p.d),x.setAttribute("fill-rule","evenodd"),x.setAttribute("fill",p.fill==="none"||t.fill===null||t.fill===void 0?p.fill==="none"||!t.gradient?"none":u:p.fill==="norm"?u:st[p.fill](colorCss(t.fill,n))),t.fill_transparency!==void 0&&x.setAttribute("fill-opacity",String(1-t.fill_transparency)),p.stroke&&t.line!==void 0&&t.line!==null){x.setAttribute("stroke",colorCss(t.line,n)),x.setAttribute("stroke-width",String(o)),x.setAttribute("stroke-linejoin","round");const $=F(t.line_dash,o);$&&x.setAttribute("stroke-dasharray",$)}d.append(x)}),d.append(...l),e.append(d)}const st={darken:e=>`color-mix(in srgb, ${e} 60%, black)`,darkenLess:e=>`color-mix(in srgb, ${e} 80%, black)`,lighten:e=>`color-mix(in srgb, ${e} 60%, white)`,lightenLess:e=>`color-mix(in srgb, ${e} 80%, white)`};function lt(e,t){const i=e.path;if(!i)return[];const r=i.w===0?0:e.frame.width*t/i.w,o=i.h===0?0:e.frame.height*t/i.h;return[{d:i.steps.map(s=>s.op==="close"?"Z":s.op==="move"?`M ${String(s.x*r)} ${String(s.y*o)}`:s.op==="line"?`L ${String(s.x*r)} ${String(s.y*o)}`:`C ${String(s.x1*r)} ${String(s.y1*o)} ${String(s.x2*r)} ${String(s.y2*o)} ${String(s.x*r)} ${String(s.y*o)}`).join(" "),fill:"norm",stroke:!0}]}function z(e,t){!t.flip?.h&&!t.flip?.v||(e.style.transform=`scale(${t.flip.h?"-1":"1"}, ${t.flip.v?"-1":"1"})`)}const at=new Set(["rect","roundRect","ellipse"]),j=(e,t,i)=>t===void 0||t===0?colorCss(e,i):`color-mix(in srgb, ${colorCss(e,i)} ${String((1-t)*100)}%, transparent)`,D=(e,t)=>`linear-gradient(${String(e.angle+90)}deg, ${e.stops.map(i=>`${j(i.color,i.transparency,t)} ${String(i.at*100)}%`).join(", ")})`,T=(e,t)=>e.gradient?D(e.gradient,t):e.fill===null||e.fill===void 0?"transparent":j(e.fill,e.fill_transparency,t);let ct=0;function dt(e,t,i,r,o){const n=document.createElementNS(e,"linearGradient");n.id=t;const s=i.angle*Math.PI/180,a=Math.cos(s),c=Math.sin(s),d=(Math.abs(r.width*a)+Math.abs(r.height*c))/Math.max(r.width,r.height,1)/2;n.setAttribute("x1",String(.5-a*d)),n.setAttribute("y1",String(.5-c*d)),n.setAttribute("x2",String(.5+a*d)),n.setAttribute("y2",String(.5+c*d));for(const u of i.stops){const f=document.createElementNS(e,"stop");f.setAttribute("offset",String(u.at)),f.setAttribute("stop-color",colorCss(u.color,o)),u.transparency!==void 0&&f.setAttribute("stop-opacity",String(1-u.transparency)),n.append(f)}return n}function ut(e,t,i,r){const o=t.angle*Math.PI/180,n=t.distance*i;e.style.filter=`drop-shadow(${String(n*Math.cos(o))}px ${String(n*Math.sin(o))}px ${String(t.blur*i)}px ${j(t.color,t.transparency,r)})`}function ft(e,t,i){const r=t.geometry??"rect",o=t.frame.width*i,n=t.frame.height*i;r==="roundRect"?e.style.borderRadius=`${String(Math.min(o,n)*Math.min(.5,Math.max(0,t.adjustments?.[0]??R("roundRect")[0]??0)))}px`:r==="ellipse"&&(e.style.borderRadius="50%")}const gt={left:"borderLeft",right:"borderRight",top:"borderTop",bottom:"borderBottom"},H="http://www.w3.org/2000/svg";function mt(e,t,i,r,o){const n=i.width/w,s=i.height/w,a=r*w,c=I(t,n,s),d=document.createElementNS(H,"svg");d.setAttribute("viewBox",`0 0 ${String(n)} ${String(s)}`),d.setAttribute("width","100%"),d.setAttribute("height","100%"),Object.assign(d.style,{position:"absolute",inset:"0px",overflow:"visible"});const u=(l,m)=>{const g=document.createElementNS(H,l);for(const[b,p]of Object.entries(m))g.setAttribute(b,String(p));d.append(g)},f=l=>{u("path",{d:l.d,fill:l.fill===void 0?"none":colorCss(l.fill,o),stroke:l.width>0?colorCss(l.color,o):"none","stroke-width":l.width,"stroke-linejoin":"round"})};for(const l of[...c.grid,...c.shapes])f(l);for(const l of[...c.boxes,...c.keys])u("rect",{x:l.x,y:l.y,width:l.width,height:l.height,fill:colorCss(l.color,o)});for(const l of[...c.axes,...c.lines])f(l);for(const l of c.dots)u("circle",{cx:l.x,cy:l.y,r:l.r,fill:colorCss(l.color,o)});e.append(d);for(const l of c.words){const m=document.createElement("div");m.textContent=l.text,Object.assign(m.style,{position:"absolute",left:`${String(l.x*a)}px`,top:`${String(l.y*a)}px`,transform:`translate(${{start:"0",middle:"-50%",end:"-100%"}[l.anchor]}, -50%)`,fontSize:`${String(l.size*a)}px`,lineHeight:"1",whiteSpace:"nowrap",color:colorCss(l.color,o),fontFamily:"var(--ak-theme-minor)"}),e.append(m)}}function pt(e,t,i,r,o){const n=document.createElement("table");Object.assign(n.style,{borderCollapse:"collapse",tableLayout:"fixed",width:`${String(t.columns.reduce((a,c)=>a+c,0)*i)}px`});const s=document.createElement("colgroup");for(const a of t.columns){const c=document.createElement("col");c.style.width=`${String(a*i)}px`,s.append(c)}n.append(s);for(const[a,c]of t.rows.entries()){const d=document.createElement("tr");d.style.height=`${String(c.height*i)}px`;for(const[u,f]of c.cells.entries()){if(f.spanned)continue;const l=document.createElement("td");l.dataset.akCell=`${String(a)},${String(u)}`,f.span_width&&(l.colSpan=f.span_width),f.span_height&&(l.rowSpan=f.span_height),l.style.padding="0px",l.style.verticalAlign={t:"top",ctr:"middle",b:"bottom"}[f.text.style.vertical_anchor],f.fill!==void 0&&(l.style.background=colorCss(f.fill,o));for(const[g,b]of Object.entries(gt)){const p=f.borders?.[g];p&&(l.style[b]=`${String(p.width*i)}px solid ${colorCss(p.color,o)}`)}const m=v(f.text,i,r,o);m.style.minHeight="0px",l.append(m),d.append(l)}n.append(d)}e.style.height="auto",e.append(n)}export function drawShape(e,t,i){const{k:r,colors:o}=i;if(t.kind==="placeholder"&&t.text?.empty===!0&&!i.editing)return;const n=document.createElement("div");n.setAttribute(SHAPE_ATTR,`${e}/${t.name}`);const{left:s,top:a,width:c,height:d}=t.frame;Object.assign(n.style,{position:"absolute",left:`${String(s*r)}px`,top:`${String(a*r)}px`,width:`${String(c*r)}px`,height:`${String(d*r)}px`}),t.rotation!==void 0&&(n.style.transform=`rotate(${String(t.rotation)}deg)`);const u=(t.line_width??LINE_WIDTH)*r;if(t.chart)mt(n,t.chart,t.frame,r,o);else if(t.table)return pt(n,t.table,r,i.lang,o),n;t.shadow&&ut(n,t.shadow,r,o),t.alt!==void 0&&n.setAttribute("aria-label",t.alt);let f;if(t.kind==="autoshape"){if(!t.path&&Z(t.geometry))return et(n,t,r,u,o),n;const l=t.path?void 0:C(t.geometry??"rect",t.frame.width*r,t.frame.height*r,t.adjustments),m=t.line!==void 0&&t.line!==null&&t.line_dash!==void 0&&t.line_dash!=="solid",g=t.path?lt(t,r):at.has(t.geometry??"rect")&&!m?void 0:l?.paths;if(g)return rt(n,t,g,r,u,o),t.text&&n.append(v(t.text,r,i.lang,o,l?.text)),n;n.style.background=T(t,o),ft(n,t,r),f=l?.text}else(t.fill!==void 0||t.gradient)&&(n.style.background=T(t,o));if(t.line!==void 0&&t.line!==null&&(n.style.outline=`${String(u)}px ${t.line_dash===void 0||t.line_dash==="solid"?"solid":"dashed"} ${colorCss(t.line,o)}`,n.style.outlineOffset=`${String(-u/2)}px`),t.text?.style.auto_size==="shape"&&(n.style.height="auto",n.style.minHeight="0px"),t.kind==="picture"&&t.media){n.style.overflow="hidden";const l=document.createElement("img");l.alt=t.alt??"",l.src=i.url(t.media.path),z(l,t);const m=t.media.crop??{left:0,top:0,right:0,bottom:0},g=1-m.left-m.right,b=1-m.top-m.bottom;Object.assign(l.style,{position:"absolute",width:`${String(100/g)}%`,height:`${String(100/b)}%`,left:`${String(-m.left/g*100)}%`,top:`${String(-m.top/b*100)}%`,maxWidth:"none"}),t.flip&&(l.style.transformOrigin=`${String(50/g-m.left/g*100)}% ${String(50/b-m.top/b*100)}%`),n.append(l)}else if(t.kind==="movie"&&t.media&&!i.playing&&i.poster!==!0)n.dataset.akFilm="";else if(t.kind==="movie"&&t.media){const l=document.createElement("video");l.src=i.url(t.media.path),l.muted=!0,l.playsInline=!0,l.preload="auto",t.media.poster!==void 0&&(l.currentTime=t.media.poster),Object.assign(l.style,{width:"100%",height:"100%",objectFit:"fill",...i.playing?{}:{pointerEvents:"none"}}),n.append(l)}return t.text&&n.append(v(t.text,r,i.lang,o,f)),n}export function drawSlide(e,t){const i=document.createElement("div");i.dataset.akSlide=e.id,Object.assign(i.style,{position:"absolute",inset:"0px",background:colorCss(e.background,t.colors),overflow:"hidden"}),e.background_gradient&&(i.style.background=D(e.background_gradient,t.colors)),e.background_picture!==void 0&&(i.style.background=`${colorCss(e.background,t.colors)} url(${JSON.stringify(t.url(e.background_picture))}) center / 100% 100% no-repeat`);for(const r of e.shapes){const o=drawShape(e.id,r,t);o&&i.append(o)}return i}
|