allyhub 0.5.0 → 0.7.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/dist/audio-text.js +1 -1
- package/dist/commands/add.js +2 -2
- package/dist/commands/cloud-tools.js +5 -5
- package/dist/commands/dev.js +1 -1
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames/sheet.js +1 -1
- package/dist/commands/frames.js +8 -8
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/common.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/render.js +1 -1
- package/dist/commands/sheet.js +7 -7
- package/dist/commands/site.js +3 -2
- package/dist/commands/skills.js +3 -3
- package/dist/commands/slides.js +2 -2
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
- package/dist/node_modules/@allyhub-next/browser/dist/html.js +1 -1
- package/dist/node_modules/@allyhub-next/browser/package.json +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/content.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/build/dist/content.js +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/build/dist/meta-worker.js +3 -3
- package/dist/node_modules/@allyhub-next/build/dist/move-refs.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/move-refs.js +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/plugin.d.ts +12 -3
- package/dist/node_modules/@allyhub-next/build/dist/plugin.js +7 -6
- package/dist/node_modules/@allyhub-next/build/dist/prepare.d.ts +9 -5
- package/dist/node_modules/@allyhub-next/build/dist/prepare.js +2 -2
- package/dist/node_modules/@allyhub-next/build/dist/vite.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/build/dist/vite.js +2 -2
- package/dist/node_modules/@allyhub-next/build/package.json +1 -1
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +14 -5
- package/dist/node_modules/@allyhub-next/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
- package/dist/node_modules/@allyhub-next/check/dist/check.js +3 -3
- package/dist/node_modules/@allyhub-next/check/package.json +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/blobs.js +2 -0
- package/dist/node_modules/@allyhub-next/cloud/dist/call.js +4 -2
- package/dist/node_modules/@allyhub-next/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/hashes.js +2 -0
- package/dist/node_modules/@allyhub-next/cloud/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/sites.js +2 -0
- package/dist/node_modules/@allyhub-next/cloud/dist/voice.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub-next/components/package.json +1 -1
- package/dist/node_modules/@allyhub-next/components/r/caption-subtitle.json +1 -1
- package/dist/node_modules/@allyhub-next/components/src/caption-subtitle.ts +54 -16
- package/dist/node_modules/@allyhub-next/dev-server/dist/background.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/exports.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/fonts.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/reach.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/dist/record.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/tree.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub-next/doc/package.json +1 -1
- package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.js +1 -1
- package/dist/node_modules/@allyhub-next/export/dist/export.js +5 -5
- package/dist/node_modules/@allyhub-next/export/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/export/package.json +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +248 -18
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1114 -91
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +625 -30
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/zip.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/formats/dist/zip.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
- package/dist/node_modules/@allyhub-next/measure/package.json +1 -1
- package/dist/node_modules/@allyhub-next/media/dist/index.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/media/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/media/dist/sheet.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/media/dist/sheet.js +7 -7
- package/dist/node_modules/@allyhub-next/media/package.json +1 -1
- package/dist/node_modules/@allyhub-next/model/package.json +1 -1
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
- package/dist/node_modules/@allyhub-next/project/dist/deck-keys.js +2 -0
- package/dist/node_modules/@allyhub-next/project/dist/deck-measure.js +2 -0
- package/dist/node_modules/@allyhub-next/project/dist/deck-pool.js +2 -0
- package/dist/node_modules/@allyhub-next/project/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/project/dist/session.js +1 -1
- package/dist/node_modules/@allyhub-next/project/dist/stills.js +2 -0
- package/dist/node_modules/@allyhub-next/project/package.json +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +89 -5
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +377 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
- package/dist/node_modules/@allyhub-next/registry/package.json +1 -1
- package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.js +3 -2
- package/dist/node_modules/@allyhub-next/render/dist/doc/index.js +1 -1
- package/dist/node_modules/@allyhub-next/render/dist/doc/pdf.js +34 -0
- package/dist/node_modules/@allyhub-next/render/dist/doc/print.js +4 -4
- package/dist/node_modules/@allyhub-next/render/dist/exports.js +2 -2
- package/dist/node_modules/@allyhub-next/render/dist/pdf.js +2 -0
- package/dist/node_modules/@allyhub-next/render/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtime/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub-next/runtime/dist/music.js +1 -1
- package/dist/node_modules/@allyhub-next/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
- package/dist/node_modules/@allyhub-next/scaffold/dist/index.js +4 -4
- package/dist/node_modules/@allyhub-next/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.js +3 -3
- package/dist/node_modules/@allyhub-next/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/page.d.ts +83 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/page.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +40 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
- package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
- package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +12 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +6 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +44 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +121 -44
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +50 -13
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +188 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +38 -4
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +27 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +26 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/code.js +4 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/index.js +3 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/names.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/script.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/chart.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/common.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/index.js +4 -0
- package/dist/{site.js → node_modules/@allyhub-next/slides-pptx/dist/read/model.js} +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/shapes.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/table.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/text.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/timing.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/component.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.js +5 -5
- package/dist/node_modules/@allyhub-next/slides-runtime/package.json +5 -1
- package/dist/node_modules/@allyhub-next/stage/dist/graphics.js +1 -1
- package/dist/node_modules/@allyhub-next/stage/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/stage/dist/page.js +22 -12
- package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.js +5 -5
- package/dist/node_modules/@allyhub-next/stage/dist/server.js +1 -1
- package/dist/node_modules/@allyhub-next/stage/package.json +1 -1
- package/dist/node_modules/@allyhub-next/stage-page/dist/host.js +1 -20
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/probe.html +8 -0
- package/dist/{astro.js → node_modules/@allyhub-next/stage-page/dist/runtime/probe.js} +1 -1
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/runtime.js +79 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.html +21 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.js +3 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.html +9 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.js +3 -0
- package/dist/node_modules/@allyhub-next/stage-page/package.json +2 -3
- package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
- package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/website/LICENSE +241 -0
- package/dist/node_modules/@allyhub-next/website/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/website/dist/publish.js +3 -0
- package/dist/node_modules/@allyhub-next/website/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub-next/website/dist/website.js +4 -0
- package/dist/node_modules/@allyhub-next/website/package.json +13 -0
- package/dist/text/facts-text.js +4 -4
- package/dist/works.js +1 -1
- package/editor-web/assets/calc-worker-Bz9r26p1.js +158 -0
- package/editor-web/assets/dist-0emakyZE.js +36 -0
- package/editor-web/assets/dist-B3UoDUa5.js +37 -0
- package/editor-web/assets/dist-B6KzR3pN.js +10 -0
- package/editor-web/assets/dist-Bc5iA5k1.js +1 -0
- package/editor-web/assets/dist-CTQIm8Im.js +10 -0
- package/editor-web/assets/dist-CiHNHwyq.js +2 -0
- package/editor-web/assets/dist-DNZ8PQ-E.js +224 -0
- package/editor-web/assets/index-CFt3ovRY.js +69 -0
- package/editor-web/assets/index-ujKjdu_s.css +2 -0
- package/editor-web/assets/minus-BhoPZC5P.js +1 -0
- package/editor-web/assets/react-C_-rEEBU.js +101 -0
- package/editor-web/assets/tabs-Den4gHrU.js +105 -0
- package/editor-web/assets/text-align-start-CsW4nqqL.js +1 -0
- package/editor-web/index.html +5 -5
- package/package.json +8 -14
- package/dist/astro.d.ts +0 -2
- package/dist/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +0 -52
- package/dist/node_modules/@allyhub-next/audio/dist/decode.d.ts +0 -33
- package/dist/node_modules/@allyhub-next/audio/dist/envelope.d.ts +0 -37
- package/dist/node_modules/@allyhub-next/audio/dist/index.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/audio/dist/levels.d.ts +0 -97
- package/dist/node_modules/@allyhub-next/audio/dist/master.d.ts +0 -29
- package/dist/node_modules/@allyhub-next/audio/dist/music.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +0 -39
- package/dist/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -25
- package/dist/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -31
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +0 -8
- package/dist/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +0 -60
- package/dist/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +0 -31
- package/dist/node_modules/@allyhub-next/audio/dist/plan.d.ts +0 -143
- package/dist/node_modules/@allyhub-next/audio/dist/recorded.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -47
- package/dist/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +0 -89
- package/dist/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -64
- package/dist/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +0 -56
- package/dist/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +0 -67
- package/dist/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +0 -64
- package/dist/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +0 -78
- package/dist/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +0 -111
- package/dist/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/audio/dist/render.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/audio/dist/sfx.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/audio/dist/shape.d.ts +0 -118
- package/dist/node_modules/@allyhub-next/audio/dist/voice.d.ts +0 -45
- package/dist/node_modules/@allyhub-next/browser/dist/browser.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/browser/dist/capture.d.ts +0 -61
- package/dist/node_modules/@allyhub-next/browser/dist/cdp.d.ts +0 -51
- package/dist/node_modules/@allyhub-next/browser/dist/flags.d.ts +0 -13
- package/dist/node_modules/@allyhub-next/browser/dist/frames.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/browser/dist/html.d.ts +0 -19
- package/dist/node_modules/@allyhub-next/browser/dist/index.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/browser/dist/launch.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/browser/dist/page.d.ts +0 -67
- package/dist/node_modules/@allyhub-next/browser/dist/server.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/check/dist/cache.d.ts +0 -46
- package/dist/node_modules/@allyhub-next/check/dist/check.d.ts +0 -142
- package/dist/node_modules/@allyhub-next/check/dist/generated.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/check/dist/index.d.ts +0 -7
- package/dist/node_modules/@allyhub-next/check/dist/plans.d.ts +0 -111
- package/dist/node_modules/@allyhub-next/check/dist/result.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/check/dist/scenery.d.ts +0 -23
- package/dist/node_modules/@allyhub-next/dev-server/dist/background.d.ts +0 -50
- package/dist/node_modules/@allyhub-next/dev-server/dist/card.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/dev-server/dist/index.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/dev-server/dist/live.d.ts +0 -77
- package/dist/node_modules/@allyhub-next/dev-server/dist/mime.d.ts +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/mime.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/paths.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/dev-server/dist/project.d.ts +0 -153
- package/dist/node_modules/@allyhub-next/dev-server/dist/reveal.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/dev-server/dist/server.d.ts +0 -47
- package/dist/node_modules/@allyhub-next/dev-server/dist/sound.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +0 -82
- package/dist/node_modules/@allyhub-next/dev-server/dist/stage.js +0 -121
- package/dist/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/dev-server/dist/validate.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/dev-server/dist/watcher.d.ts +0 -47
- package/dist/node_modules/@allyhub-next/dev-server/dist/writer.d.ts +0 -51
- package/dist/node_modules/@allyhub-next/export/dist/batch.d.ts +0 -70
- package/dist/node_modules/@allyhub-next/export/dist/deck-fonts.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/export/dist/export.d.ts +0 -123
- package/dist/node_modules/@allyhub-next/export/dist/index.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/export/dist/names.d.ts +0 -36
- package/dist/node_modules/@allyhub-next/measure/dist/compare.d.ts +0 -195
- package/dist/node_modules/@allyhub-next/measure/dist/contrast.d.ts +0 -14
- package/dist/node_modules/@allyhub-next/measure/dist/cut-sheet.d.ts +0 -90
- package/dist/node_modules/@allyhub-next/measure/dist/cuts.d.ts +0 -108
- package/dist/node_modules/@allyhub-next/measure/dist/facts.d.ts +0 -60
- package/dist/node_modules/@allyhub-next/measure/dist/fidelity.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/measure/dist/flat.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/measure/dist/index.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/measure/dist/loop.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/measure/dist/overlay.d.ts +0 -57
- package/dist/node_modules/@allyhub-next/measure/dist/recording-report.d.ts +0 -66
- package/dist/node_modules/@allyhub-next/measure/dist/reference/compare.d.ts +0 -118
- package/dist/node_modules/@allyhub-next/measure/dist/reference/folder.d.ts +0 -75
- package/dist/node_modules/@allyhub-next/measure/dist/reference/interpret.d.ts +0 -39
- package/dist/node_modules/@allyhub-next/measure/dist/reference/piece.d.ts +0 -53
- package/dist/node_modules/@allyhub-next/measure/dist/reference/sections.d.ts +0 -53
- package/dist/node_modules/@allyhub-next/measure/dist/reference/sets.d.ts +0 -84
- package/dist/node_modules/@allyhub-next/measure/dist/reference/text.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/measure/dist/reference/video.d.ts +0 -55
- package/dist/node_modules/@allyhub-next/measure/dist/seams.d.ts +0 -46
- package/dist/node_modules/@allyhub-next/measure/dist/sound-measures.d.ts +0 -74
- package/dist/node_modules/@allyhub-next/measure/dist/sound-report.d.ts +0 -156
- package/dist/node_modules/@allyhub-next/measure/dist/still.d.ts +0 -58
- package/dist/node_modules/@allyhub-next/measure/dist/version-voice.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/project/dist/console.d.ts +0 -34
- package/dist/node_modules/@allyhub-next/project/dist/digest.d.ts +0 -9
- package/dist/node_modules/@allyhub-next/project/dist/index.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/project/dist/ledger.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/project/dist/media-index.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/project/dist/page.d.ts +0 -119
- package/dist/node_modules/@allyhub-next/project/dist/says.d.ts +0 -15
- package/dist/node_modules/@allyhub-next/project/dist/scenery.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/project/dist/session.d.ts +0 -37
- package/dist/node_modules/@allyhub-next/project/dist/stretch.d.ts +0 -38
- package/dist/node_modules/@allyhub-next/project/dist/version.d.ts +0 -114
- package/dist/node_modules/@allyhub-next/render/dist/cap.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/render/dist/capture.d.ts +0 -78
- package/dist/node_modules/@allyhub-next/render/dist/clip.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/render/dist/composite.d.ts +0 -106
- package/dist/node_modules/@allyhub-next/render/dist/delivery.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/render/dist/doc/index.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/render/dist/doc/print.d.ts +0 -51
- package/dist/node_modules/@allyhub-next/render/dist/encode.d.ts +0 -111
- package/dist/node_modules/@allyhub-next/render/dist/errors.d.ts +0 -15
- package/dist/node_modules/@allyhub-next/render/dist/exports.d.ts +0 -76
- package/dist/node_modules/@allyhub-next/render/dist/ffmpeg.d.ts +0 -75
- package/dist/node_modules/@allyhub-next/render/dist/footage.d.ts +0 -169
- package/dist/node_modules/@allyhub-next/render/dist/image.d.ts +0 -16
- package/dist/node_modules/@allyhub-next/render/dist/index.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/render/dist/junction.d.ts +0 -70
- package/dist/node_modules/@allyhub-next/render/dist/look.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/render/dist/page.d.ts +0 -186
- package/dist/node_modules/@allyhub-next/render/dist/parts.d.ts +0 -140
- package/dist/node_modules/@allyhub-next/render/dist/png.d.ts +0 -37
- package/dist/node_modules/@allyhub-next/render/dist/pool.d.ts +0 -54
- package/dist/node_modules/@allyhub-next/render/dist/post-probe.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/render/dist/post.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/render/dist/render.d.ts +0 -151
- package/dist/node_modules/@allyhub-next/render/dist/segments.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/render/dist/sound.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/render/dist/stills.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/render/dist/tools.d.ts +0 -25
- package/dist/node_modules/@allyhub-next/render/dist/webp.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +0 -211
- package/dist/node_modules/@allyhub-next/runtime/dist/captions.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/runtime/dist/clock.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/runtime/dist/compose.d.ts +0 -149
- package/dist/node_modules/@allyhub-next/runtime/dist/console.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/runtime/dist/contrast.d.ts +0 -13
- package/dist/node_modules/@allyhub-next/runtime/dist/embed.d.ts +0 -50
- package/dist/node_modules/@allyhub-next/runtime/dist/env.d.ts +0 -101
- package/dist/node_modules/@allyhub-next/runtime/dist/errors.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/runtime/dist/facade.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/runtime/dist/fonts.d.ts +0 -110
- package/dist/node_modules/@allyhub-next/runtime/dist/footage.d.ts +0 -52
- package/dist/node_modules/@allyhub-next/runtime/dist/frame.d.ts +0 -61
- package/dist/node_modules/@allyhub-next/runtime/dist/guards.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/runtime/dist/index.d.ts +0 -14
- package/dist/node_modules/@allyhub-next/runtime/dist/inspect.d.ts +0 -112
- package/dist/node_modules/@allyhub-next/runtime/dist/locate.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/runtime/dist/measure.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/runtime/dist/mix-plan.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/runtime/dist/music.d.ts +0 -29
- package/dist/node_modules/@allyhub-next/runtime/dist/output.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/runtime/dist/pictures.d.ts +0 -39
- package/dist/node_modules/@allyhub-next/runtime/dist/piece.d.ts +0 -34
- package/dist/node_modules/@allyhub-next/runtime/dist/player/clips.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/runtime/dist/player/cutout.d.ts +0 -57
- package/dist/node_modules/@allyhub-next/runtime/dist/player/player.d.ts +0 -78
- package/dist/node_modules/@allyhub-next/runtime/dist/reads.d.ts +0 -132
- package/dist/node_modules/@allyhub-next/runtime/dist/sound.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/runtime/dist/speech.d.ts +0 -107
- package/dist/node_modules/@allyhub-next/runtime/dist/stage-kit.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/runtime/dist/stage.d.ts +0 -34
- package/dist/node_modules/@allyhub-next/runtime/dist/styles.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/runtime/dist/takes.d.ts +0 -72
- package/dist/node_modules/@allyhub-next/runtime/dist/titles.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/runtime/dist/transitions.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/site/dist/assets.d.ts +0 -59
- package/dist/node_modules/@allyhub-next/site/dist/assets.js +0 -2
- package/dist/node_modules/@allyhub-next/site/dist/astro.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/site/dist/astro.js +0 -3
- package/dist/node_modules/@allyhub-next/site/dist/lockfile.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/site/dist/lockfile.js +0 -3
- package/dist/node_modules/@allyhub-next/site/dist/media.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/site/dist/media.js +0 -4
- package/dist/node_modules/@allyhub-next/site/package.json +0 -25
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/fonts.d.ts +0 -45
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.js +0 -3
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +0 -55
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.js +0 -4
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +0 -67
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.d.ts +0 -4
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.d.ts +0 -4
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.d.ts +0 -4
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/ink.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/stage/dist/bakes.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/stage/dist/graphics.d.ts +0 -7
- package/dist/node_modules/@allyhub-next/stage/dist/identity.d.ts +0 -2
- package/dist/node_modules/@allyhub-next/stage/dist/index.d.ts +0 -9
- package/dist/node_modules/@allyhub-next/stage/dist/page.d.ts +0 -87
- package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.d.ts +0 -69
- package/dist/node_modules/@allyhub-next/stage/dist/scenery-solve.d.ts +0 -49
- package/dist/node_modules/@allyhub-next/stage/dist/scenery.d.ts +0 -8
- package/dist/node_modules/@allyhub-next/stage/dist/server.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/stage-page/dist/host.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/stage-page/dist/page.js +0 -79
- package/dist/site.d.ts +0 -2
- package/editor-web/assets/dist-Cg2PdedY.js +0 -6
- package/editor-web/assets/dist-CuW84oPe.js +0 -233
- package/editor-web/assets/dist-CxAS_vp7.js +0 -2
- package/editor-web/assets/dist-DCVaj9i1.js +0 -4
- package/editor-web/assets/dist-DGVUuVPB.js +0 -33
- package/editor-web/assets/dist-Yi3sy7Ea.js +0 -1
- package/editor-web/assets/index-B7S9RZhL.css +0 -2
- package/editor-web/assets/index-pwRfZ2Jv.js +0 -69
- package/editor-web/assets/minus-BizJdinJ.js +0 -1
- package/editor-web/assets/react-D54s6gwK.js +0 -101
- package/editor-web/assets/textarea-CvxipnGW.js +0 -105
- package/editor-web/assets/trash-2-Bq1Dt8XG.js +0 -1
- package/editor-web/assets/undo-2-Djhvu4xt.js +0 -1
- /package/dist/node_modules/@allyhub-next/{site → ooxml}/LICENSE +0 -0
package/dist/site.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{$ as t,Ct as n,Dt as r,Et as i,G as a,J as o,K as s,Ot as c,Q as l,Rt as u,Tt as d,X as f,Xt as p,Y as m,Z as h,at as g,bt as _,c as v,ct as y,d as b,dt as x,et as S,f as C,ft as w,gt as T,ht as E,i as ee,it as D,jt as O,kt as k,l as A,lt as j,mt as M,n as N,nn as P,nt as te,ot as ne,pt as F,q as I,r as L,rn as R,rt as z,s as re,st as ie,tt as ae,u as oe,ut as se,vt as ce}from"./react-D54s6gwK.js";var le=6,ue=.85,de=.25,fe=40,pe=12,me=(e,t,n)=>Math.min(n,Math.max(t,e));function he(e){let t=e.map(e=>e.x),n=e.map(e=>e.y),r=Math.min(...t),i=Math.min(...n);return{x:r,y:i,width:Math.max(...t)-r,height:Math.max(...n)-i}}function ge(e){let[t]=e,n=e.at(-1);if(!t||!n)return!1;let{width:r,height:i}=he(e),a=Math.hypot(r,i);return a>0&&Math.hypot(n.x-t.x,n.y-t.y)<=a*de}var _e=(e,t)=>e.x<t.x+Math.max(t.width,1)&&e.x+Math.max(e.width,1)>t.x&&e.y<t.y+Math.max(t.height,1)&&e.y+Math.max(e.height,1)>t.y;function ve(e,t){let n=e.width/2||1,r=e.height/2||1,i=e.x+n,a=e.y+r,o=(me(i,t.x,t.x+t.width)-i)/n,s=(me(a,t.y,t.y+t.height)-a)/r;return Math.hypot(o,s)<=ue}function ye(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=0,o=1;for(let[t,s]of[[-r,e.x-n.x],[r,n.x+n.width-e.x],[-i,e.y-n.y],[i,n.y+n.height-e.y]]){if(t===0){if(s<0)return!1}else t<0?a=Math.max(a,s/t):o=Math.min(o,s/t);if(a>o)return!1}return!0}function be(e,t){switch(e.kind){case`box`:return _e(e.rect,t);case`round`:return ve(e.rect,t);case`arrow`:return _e({x:e.to.x-le,y:e.to.y-le,width:12,height:12},t);case`line`:return ge(e.points)?ve(he(e.points),t):e.points.some((n,r)=>ye(e.points[r-1]??n,n,t))}}function xe(e,t){return t.flatMap(n=>t.map(t=>({x:e.x+e.width*t,y:e.y+e.height*n})))}function Se(e){let t=e.map((t,n)=>{let r=e[n-1]??t;return Math.hypot(t.x-r.x,t.y-r.y)}),n=t.reduce((e,t)=>e+t,0),r=me(Math.ceil(n/fe)+1,2,pe);return Array.from({length:r},(i,a)=>{let o=n*a/(r-1);for(let[n,r]of e.entries()){let i=t[n]??0,a=e[n-1];if(a&&o<=i){let e=i===0?0:o/i;return{x:a.x+(r.x-a.x)*e,y:a.y+(r.y-a.y)*e}}o-=i}return e.at(-1)??{x:0,y:0}})}function Ce(e){switch(e.kind){case`box`:return xe(e.rect,[.5,.2,.8]);case`round`:return xe(e.rect,[.5,.3,.7]);case`arrow`:return[e.to];case`line`:return ge(e.points)?xe(he(e.points),[.5,.3,.7]):Se(e.points)}}function we(e,t){switch(e.kind){case`box`:case`round`:{let n=t(e.rect),r=t({x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height});return{kind:e.kind,rect:{...n,width:r.x-n.x,height:r.y-n.y}}}case`arrow`:return{kind:`arrow`,from:t(e.from),to:t(e.to)};case`line`:return{kind:`line`,points:e.points.map(t)}}}var Te=c(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Ee=c(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),De=c(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Oe=c(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),ke=c(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),Ae=c(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),je=c(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Me=c(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Ne=e(P(),1),B=e(R(),1),V=k(),Pe=Object.defineProperty,Fe=(e,t)=>Pe(e,`name`,{value:t,configurable:!0}),Ie=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),Le=B.forwardRef(Fe(function(e,t){return(0,V.jsx)(T.span,{...e,ref:t,style:{...Ie,...e.style}})},`VisuallyHidden`)),Re=Object.defineProperty,H=(e,t)=>Re(e,`name`,{value:t,configurable:!0}),ze=`Checkbox`,[Be,Ve]=E(ze),[He,Ue]=Be(ze);function We(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=x({prop:n,defaultProp:i??!1,onChange:c,caller:ze}),[m,h]=B.useState(null),[g,_]=B.useState(null),v=B.useRef(!1),[y,b]=B.useReducer(e=>e+1,0),S=!m||!!o||!!m.closest(`form`),C={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:v,userInteractionCount:y,onUserInteraction:b,required:l,defaultChecked:!U(i)&&i,isFormControl:S,bubbleInput:g,setBubbleInput:_};return(0,V.jsx)(He,{scope:t,...C,children:Qe(d)?d(C):r})}H(We,`CheckboxProvider`);var Ge=`CheckboxTrigger`,Ke=B.forwardRef(H(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i){let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,onUserInteraction:p,isFormControl:m,bubbleInput:h}=Ue(Ge,e),g=_(i,u),v=B.useRef(c);return B.useEffect(()=>{let e=a?.form;if(e){let t=H(()=>d(v.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,V.jsx)(T.button,{type:`button`,role:`checkbox`,"aria-checked":U(c)?`mixed`:c,"aria-required":l,"data-state":$e(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:g,onKeyDown:F(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:F(n,e=>{p(),d(e=>U(e)?!0:!e),h&&m&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})},`CheckboxTrigger`)),qe=B.forwardRef(H(function(e,t){let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,V.jsx)(We,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Ke,{...d,ref:t,__scopeCheckbox:n}),e&&(0,V.jsx)(Ze,{__scopeCheckbox:n})]})})},`Checkbox`)),Je=`CheckboxIndicator`,Ye=B.forwardRef(H(function(e,t){let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Ue(Je,n);return(0,V.jsx)(se,{present:r||U(a.checked)||a.checked===!0,children:(0,V.jsx)(T.span,{"data-state":$e(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})},`CheckboxIndicator`)),Xe=`CheckboxBubbleInput`,Ze=B.forwardRef(H(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:i,hasConsumerStoppedPropagationRef:o,userInteractionCount:s,checked:c,defaultChecked:l,required:u,disabled:d,name:f,value:p,form:m,bubbleInput:h,setBubbleInput:g}=Ue(Xe,e),v=_(r,g),y=a(i),b=B.useRef(!1),x=B.useRef(c),S=B.useRef(s);B.useEffect(()=>{let e=h;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=s!==S.current;S.current=s;let i=x.current!==c;x.current=c;let a=!(r&&o.current);if(i&&n){b.current=!r;let t=new Event(`click`,{bubbles:a});e.indeterminate=U(c),n.call(e,!U(c)&&c),e.dispatchEvent(t),b.current=!1}},[h,c,o,s]);let C=B.useRef(!U(c)&&c);return(0,V.jsx)(T.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:l??C.current,required:u,disabled:d,name:f,value:p,form:m,...n,tabIndex:-1,ref:v,onClick:F(t,e=>{b.current&&e.stopPropagation()}),style:{...n.style,...y,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`CheckboxBubbleInput`));function Qe(e){return typeof e==`function`}H(Qe,`isFunction`);function U(e){return e===`indeterminate`}H(U,`isIndeterminate`);function $e(e){return U(e)?`indeterminate`:e?`checked`:`unchecked`}H($e,`getState`);var et=Object.defineProperty,tt=(e,t)=>et(e,`name`,{value:t,configurable:!0});function nt(e){let t=B.useRef({value:e,previous:e});return B.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}tt(nt,`usePrevious`);var rt=Object.defineProperty,it=(e,t)=>rt(e,`name`,{value:t,configurable:!0});function at(e,[t,n]){return Math.min(n,Math.max(t,e))}it(at,`clamp`);var ot=Object.defineProperty,W=(e,t)=>ot(e,`name`,{value:t,configurable:!0}),st=`Popover`,[ct,lt]=E(st,[C]),ut=C(),[dt,G]=ct(st),ft=W(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=ut(t),c=B.useRef(null),[l,u]=B.useState(!1),[d,f]=B.useState(0),[p,m]=B.useState(0),[h,g]=x({prop:r,defaultProp:i??!1,onChange:a,caller:st});return(0,V.jsx)(v,{...s,children:(0,V.jsx)(dt,{scope:t,contentId:j(),titleId:j(),descriptionId:j(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,triggerRef:c,open:h,onOpenChange:g,onOpenToggle:B.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:l,onCustomAnchorAdd:B.useCallback(()=>u(!0),[]),onCustomAnchorRemove:B.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),pt=`PopoverAnchor`,mt=B.forwardRef(W(function(e,t){let{__scopePopover:n,...r}=e,i=G(pt,n),a=ut(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return B.useEffect(()=>(o(),()=>s()),[o,s]),(0,V.jsx)(A,{...a,...r,ref:t})},`PopoverAnchor`)),ht=`PopoverTrigger`,gt=B.forwardRef(W(function(e,t){let{__scopePopover:n,...r}=e,i=G(ht,n),a=ut(n),o=_(t,i.triggerRef),s=(0,V.jsx)(T.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Ot(i.open),...r,ref:o,onClick:F(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,V.jsx)(A,{asChild:!0,...a,children:s})},`PopoverTrigger`)),_t=`PopoverPortal`,[vt,yt]=ct(_t,{forceMount:void 0}),bt=W(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=G(_t,t);return(0,V.jsx)(vt,{scope:t,forceMount:n,children:(0,V.jsx)(se,{present:n||a.open,children:(0,V.jsx)(ae,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),xt=`PopoverContent`,St=B.forwardRef(W(function(e,t){let n=yt(xt,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=G(xt,e.__scopePopover);return(0,V.jsx)(se,{present:r||a.open,children:a.modal?(0,V.jsx)(wt,{...i,ref:t}):(0,V.jsx)(Tt,{...i,ref:t})})},`PopoverContent`)),Ct=ce(`PopoverContent.RemoveScroll`),wt=B.forwardRef(W(function(e,n){let r=G(xt,e.__scopePopover),i=B.useRef(null),a=_(n,i),o=B.useRef(!1),{nodes:s,registry:c}=g();return B.useEffect(()=>{let e=i.current;if(e)return l(e)},[]),(0,V.jsx)(t,{as:Ct,allowPinchZoom:!0,shards:B.useMemo(()=>[i,...s.map(e=>({current:e}))],[i,s]),children:(0,V.jsx)(Et,{...e,ref:a,branchNodes:s,branchRegistry:c,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:F(e.onCloseAutoFocus,e=>{e.preventDefault(),o.current||r.triggerRef.current?.focus()}),onPointerDownOutside:F(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:F(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),Tt=B.forwardRef(W(function(e,t){let n=G(xt,e.__scopePopover),r=B.useRef(!1),i=B.useRef(!1);return(0,V.jsx)(Et,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),Et=B.forwardRef(W(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,"aria-describedby":d,branchNodes:f,branchRegistry:p,...m}=e,h=G(xt,n),g=ut(n),[v,y]=B.useState(null),x=_(t,y);return D(v),S(),(0,V.jsx)(z,{registry:p,children:(0,V.jsx)(te,{asChild:!0,loop:!0,trapped:r,branches:f,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,V.jsx)(ne,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,V.jsx)(b,{"data-state":Ot(h.open),role:`dialog`,id:h.contentId,"aria-labelledby":h.titlePresent?h.titleId:void 0,"aria-describedby":h.descriptionPresent?kt(d,h.descriptionId):d,...g,...m,ref:x,style:{...m.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})})},`PopoverContentImpl`)),Dt=B.forwardRef(W(function(e,t){let{__scopePopover:n,...r}=e,i=ut(n);return(0,V.jsx)(oe,{...i,...r,ref:t})},`PopoverArrow`));function Ot(e){return e?`open`:`closed`}W(Ot,`getState`);function kt(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}W(kt,`concatAriaDescribedby`);var At=Object.defineProperty,K=(e,t)=>At(e,`name`,{value:t,configurable:!0}),jt=`Progress`,Mt=100,[Nt,Pt]=E(jt),[Ft,It]=Nt(jt),Lt=B.forwardRef(K(function(e,t){let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=Bt,...o}=e;(i||i===0)&&!Ut(i)&&console.error(Gt(`${i}`,`Progress`));let s=Ut(i)?i:Mt;r!==null&&!Wt(r,s)&&console.error(Kt(`${r}`,`Progress`));let c=Wt(r,s)?r:null,l=Ht(c)?a(c,s):void 0;return(0,V.jsx)(Ft,{scope:n,value:c,max:s,children:(0,V.jsx)(T.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":Ht(c)?c:void 0,"aria-valuetext":l,role:`progressbar`,"data-state":Vt(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})},`Progress`)),Rt=`ProgressIndicator`,zt=B.forwardRef(K(function(e,t){let{__scopeProgress:n,...r}=e,i=It(Rt,n);return(0,V.jsx)(T.div,{"data-state":Vt(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})},`ProgressIndicator`));function Bt(e,t){return`${Math.round(e/t*100)}%`}K(Bt,`defaultGetValueLabel`);function Vt(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}K(Vt,`getProgressState`);function Ht(e){return typeof e==`number`}K(Ht,`isNumber`);function Ut(e){return Ht(e)&&!isNaN(e)&&e>0}K(Ut,`isValidMaxNumber`);function Wt(e,t){return Ht(e)&&!isNaN(e)&&e<=t&&e>=0}K(Wt,`isValidValueNumber`);function Gt(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Mt}\`.`}K(Gt,`getInvalidMaxError`);function Kt(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
2
|
-
- a positive number
|
|
3
|
-
- less than the value passed to \`max\` (or ${Mt} if no \`max\` prop is set)
|
|
4
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
5
|
-
|
|
6
|
-
Defaulting to \`null\`.`}K(Kt,`getInvalidValueError`);var qt=Object.defineProperty,q=(e,t)=>qt(e,`name`,{value:t,configurable:!0}),Jt={ItemAligned:`item-aligned`,Popper:`popper`},Yt={LTR:`ltr`,RTL:`rtl`},Xt=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Zt=[` `,`Enter`],Qt=`Select`,[$t,en,tn]=M(Qt),[J,nn]=E(Qt,[tn,C]),rn=C(),[an,Y]=J(Qt),[on,sn]=J(Qt);function cn(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=rn(t),[_,b]=B.useState(null),[S,C]=B.useState(null),[w,T]=B.useState(!1),E=y(l),[ee,D]=x({prop:r,defaultProp:i??!1,onChange:a,caller:Qt}),[O,k]=x({prop:o,defaultProp:s,onChange:c,caller:Qt}),A=B.useRef(null),M=B.useRef(O);B.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=q(()=>k(M.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,k]);let N=!_||!!m||!!_.closest(`form`),[P,te]=B.useState(new Set),ne=j(),F=Array.from(P).map(e=>e.props.value).join(`;`),I=B.useCallback(e=>{te(t=>new Set(t).add(e))},[]),L=B.useCallback(e=>{te(t=>{let n=new Set(t);return n.delete(e),n})},[]),R={required:p,trigger:_,onTriggerChange:b,valueNode:S,onValueNodeChange:C,valueNodeHasChildren:w,onValueNodeHasChildrenChange:T,contentId:ne,value:O,onValueChange:k,open:ee,onOpenChange:D,dir:E,triggerPointerDownPosRef:A,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:P,nativeSelectKey:F,isFormControl:N};return(0,V.jsx)(v,{...g,children:(0,V.jsx)(an,{scope:t,...R,children:(0,V.jsx)($t.Provider,{scope:t,children:(0,V.jsx)(on,{scope:t,onNativeOptionAdd:I,onNativeOptionRemove:L,children:qn(h)?h(R):n})})})})}q(cn,`SelectProvider`);var ln=q(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,V.jsx)(cn,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,V.jsxs)(V.Fragment,{children:[n,e?(0,V.jsx)(Kn,{__scopeSelect:t}):null]})})},`Select`),un=`SelectTrigger`,dn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=rn(n),o=Y(un,n),s=o.disabled||r,c=_(t,o.onTriggerChange),l=en(n),u=B.useRef(`touch`),[d,f,p]=Yn(e=>{let t=l().filter(e=>!e.disabled),n=Xn(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=q(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,V.jsx)(A,{asChild:!0,...a,children:(0,V.jsx)(T.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Jn(o.value)?``:void 0,...i,ref:c,onClick:F(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:F(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:F(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&Xt.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),fn=`SelectValue`,pn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Y(fn,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=_(t,c.onValueNodeChange);w(()=>{l(u)},[l,u]);let f=Jn(c.value);return(0,V.jsx)(T.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,V.jsx)(B.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),mn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,V.jsx)(T.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[hn,gn]=J(`SelectPortal`,{forceMount:void 0}),_n=q(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,V.jsx)(hn,{scope:e.__scopeSelect,forceMount:n,children:(0,V.jsx)(ae,{asChild:!0,...r})})},`SelectPortal`),X=`SelectContent`,vn=B.forwardRef(q(function(e,t){let n=gn(X,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Y(X,e.__scopeSelect),[o,s]=B.useState();return w(()=>{s(new DocumentFragment)},[]),(0,V.jsx)(se,{present:r||a.open,children:({present:e})=>e?(0,V.jsx)(Sn,{...i,ref:t}):(0,V.jsx)(yn,{...i,fragment:o})})},`SelectContent`)),yn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?Ne.createPortal((0,V.jsx)(bn,{scope:n,children:(0,V.jsx)($t.Slot,{scope:n,children:(0,V.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),Z=10,[bn,Q]=J(X),xn=ce(`SelectContent.RemoveScroll`),Sn=B.forwardRef(q(function(e,n){let{__scopeSelect:r}=e,{position:i=Jt.ItemAligned,onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:s,side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:y,...b}=e,x=Y(X,r),[C,w]=B.useState(null),[T,E]=B.useState(null),ee=_(n,w),[D,O]=B.useState(null),[k,A]=B.useState(null),j=en(r),[M,N]=B.useState(!1),P=B.useRef(!1);B.useEffect(()=>{if(C)return l(C)},[C]),S();let I=B.useCallback(e=>{let[t,...n]=j().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&T&&(T.scrollTop=0),n===r&&T&&(T.scrollTop=T.scrollHeight),n?.focus(),document.activeElement!==i))return},[j,T]),L=B.useCallback(()=>I([D,C]),[I,D,C]);B.useEffect(()=>{M&&L()},[M,L]);let{onOpenChange:R,triggerPointerDownPosRef:z}=x;B.useEffect(()=>{if(C){let e={x:0,y:0},t=q(t=>{e={x:Math.abs(Math.round(t.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(z.current?.y??0))}},`handlePointerMove`),n=q(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(C)||R(!1),document.removeEventListener(`pointermove`,t),z.current=null},`handlePointerUp`);return z.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[C,R,z]),B.useEffect(()=>{let e=q(()=>R(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[R]);let[re,ie]=Yn(e=>{let t=j().filter(e=>!e.disabled),n=Xn(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ae=B.useCallback((e,t,n)=>{let r=!P.current&&!n;(x.value!==void 0&&x.value===t||r)&&(O(e),r&&(P.current=!0))},[x.value]),oe=B.useCallback(()=>C?.focus(),[C]),se=B.useCallback((e,t,n)=>{let r=!P.current&&!n;(x.value!==void 0&&x.value===t||r)&&A(e)},[x.value]),ce=i===Jt.Popper?wn:Cn,le=ce===wn?{side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:v,avoidCollisions:y}:{};return(0,V.jsx)(bn,{scope:r,content:C,viewport:T,onViewportChange:E,itemRefCallback:ae,selectedItem:D,onItemLeave:oe,itemTextRefCallback:se,focusSelectedItem:L,selectedItemText:k,position:i,isPositioned:M,searchRef:re,children:(0,V.jsx)(t,{as:xn,allowPinchZoom:!0,children:(0,V.jsx)(te,{asChild:!0,trapped:x.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:F(a,e=>{x.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,V.jsx)(ne,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:(0,V.jsx)(ce,{role:`listbox`,id:x.contentId,"data-state":x.open?`open`:`closed`,dir:x.dir,onContextMenu:e=>e.preventDefault(),...b,...le,onPlaced:()=>N(!0),ref:ee,style:{display:`flex`,flexDirection:`column`,outline:`none`,...b.style},onKeyDown:F(b.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ie(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=j().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>I(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Cn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Y(X,n),o=Q(X,n),[s,c]=B.useState(null),[l,u]=B.useState(null),d=_(t,u),f=en(n),p=B.useRef(!1),m=B.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=o,b=B.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&v){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==Yt.RTL){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Z,d=at(a,[Z,Math.max(Z,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Z,d=at(a,[Z,Math.max(Z,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-Z*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),_=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+_+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Z,ee=c-E,D=g.offsetHeight/2,O=g.offsetTop+D,k=m+_+O,A=x-k;if(k<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=k+Math.max(ee,D+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+D)+A;s.style.height=t+`px`,h.scrollTop=k-E+h.offsetTop}s.style.margin=`${Z}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,v,a.dir,r]);w(()=>b(),[b]);let[x,S]=B.useState();w(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=B.useCallback(e=>{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]);return(0,V.jsx)(Tn,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,V.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,V.jsx)(T.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),wn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Z,...a}=e,o=rn(n);return(0,V.jsx)(b,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[Tn,En]=J(X,{}),Dn=`SelectViewport`,On=B.forwardRef(q(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=Q(Dn,n),o=En(Dn,n),s=_(t,a.onViewportChange),c=B.useRef(0);return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,V.jsx)($t.Slot,{scope:n,children:(0,V.jsx)(T.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:F(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-Z*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[kn,An]=J(`SelectGroup`),jn=`SelectItem`,[Mn,Nn]=J(jn),Pn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Y(jn,n),c=Q(jn,n),l=s.value===r,[u,d]=B.useState(a??``),[f,p]=B.useState(!1),m=ie(e=>c.itemRefCallback?.(e,r,i)),h=_(t,m),g=j(),v=B.useRef(`touch`),y=q(()=>{s.onValueChange(r),s.onOpenChange(!1)},`handleSelect`);return(0,V.jsx)(Mn,{scope:n,value:r,disabled:i,textId:g,isSelected:l,onItemTextChange:B.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,V.jsx)($t.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,V.jsx)(T.div,{role:`option`,"aria-labelledby":g,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:h,onFocus:F(o.onFocus,()=>p(!0)),onBlur:F(o.onBlur,()=>p(!1)),onClick:F(o.onClick,()=>{i||v.current!==`mouse`&&y()}),onPointerUp:F(o.onPointerUp,()=>{i||v.current===`mouse`&&y()}),onPointerDown:F(o.onPointerDown,e=>{v.current=e.pointerType}),onPointerMove:F(o.onPointerMove,e=>{v.current=e.pointerType,i?c.onItemLeave?.():v.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:F(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:F(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Zt.includes(e.key)&&y(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Fn=`SelectItemText`,In=B.forwardRef(q(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Y(Fn,n),s=Q(Fn,n),c=Nn(Fn,n),l=sn(Fn,n),[u,d]=B.useState(null),f=ie(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=_(t,d,c.onItemTextChange,f),m=u?.textContent,h=B.useMemo(()=>(0,V.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=l;return w(()=>(g(h),()=>v(h)),[g,v,h]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(T.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Jn(o.value)?Ne.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Ln=`SelectItemIndicator`,Rn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,...r}=e;return Nn(Ln,n).isSelected?(0,V.jsx)(T.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),zn=`SelectScrollUpButton`,Bn=B.forwardRef(q(function(e,t){let n=Q(zn,e.__scopeSelect),r=En(zn,e.__scopeSelect),[i,a]=B.useState(!1),o=_(t,r.onScrollButtonChange);return w(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};q(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,V.jsx)(Un,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Vn=`SelectScrollDownButton`,Hn=B.forwardRef(q(function(e,t){let n=Q(Vn,e.__scopeSelect),r=En(Vn,e.__scopeSelect),[i,a]=B.useState(!1),o=_(t,r.onScrollButtonChange);return w(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};q(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,V.jsx)(Un,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Un=B.forwardRef(q(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Q(`SelectScrollButton`,n),o=B.useRef(null),s=en(n),c=B.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return B.useEffect(()=>()=>c(),[c]),w(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,V.jsx)(T.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:F(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:F(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:F(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),Wn=B.forwardRef(q(function(e,t){let{__scopeSelect:n,...r}=e;return(0,V.jsx)(T.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Gn=`SelectBubbleInput`,Kn=B.forwardRef(q(function({__scopeSelect:e,...t},n){let r=Y(Gn,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=B.useRef(null),m=_(n,p),h=i??``,g=nt(h),v=Array.from(d).some(e=>(e.props.value??``)===``);return B.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,V.jsxs)(T.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...Ie,...t.style},ref:m,defaultValue:h,children:[Jn(i)&&!v?(0,V.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function qn(e){return typeof e==`function`}q(qn,`isFunction`);function Jn(e){return e===``||e===void 0}q(Jn,`shouldShowPlaceholder`);function Yn(e){let t=ie(e),n=B.useRef(``),r=B.useRef(0),i=B.useCallback(e=>{let i=n.current+e;t(i),q((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=B.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return B.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}q(Yn,`useTypeaheadSearch`);function Xn(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Zn(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}q(Xn,`findNextItem`);function Zn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}q(Zn,`wrapArray`);function Qn({...e}){return(0,V.jsx)(ln,{"data-slot":`select`,...e})}function $n({...e}){return(0,V.jsx)(pn,{"data-slot":`select-value`,...e})}function er({className:e,size:t=`default`,children:r,...i}){return(0,V.jsxs)(dn,{"data-slot":`select-trigger`,"data-size":t,className:n(`flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground`,e),...i,children:[r,(0,V.jsx)(mn,{asChild:!0,children:(0,V.jsx)(Ee,{className:`size-4 opacity-50`})})]})}function tr({className:e,children:t,position:r=`item-aligned`,align:i=`center`,...a}){return(0,V.jsx)(_n,{children:(0,V.jsxs)(vn,{"data-slot":`select-content`,className:n(`relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,r===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:r,align:i,...a,children:[(0,V.jsx)(ir,{}),(0,V.jsx)(On,{className:n(`p-1`,r===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,V.jsx)(ar,{})]})})}function nr({className:e,children:t,...r}){return(0,V.jsxs)(Pn,{"data-slot":`select-item`,className:n(`relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...r,children:[(0,V.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,V.jsx)(Rn,{children:(0,V.jsx)(Te,{className:`size-4`})})}),(0,V.jsx)(In,{children:t})]})}function rr({className:e,...t}){return(0,V.jsx)(Wn,{"data-slot":`select-separator`,className:n(`pointer-events-none -mx-1 my-1 h-px bg-border`,e),...t})}function ir({className:e,...t}){return(0,V.jsx)(Bn,{"data-slot":`select-scroll-up-button`,className:n(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,V.jsx)(Oe,{className:`size-4`})})}function ar({className:e,...t}){return(0,V.jsx)(Hn,{"data-slot":`select-scroll-down-button`,className:n(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,V.jsx)(Ee,{className:`size-4`})})}function $({className:e,icon:t=!1,...r}){return(0,V.jsx)(re,{variant:`ghost`,size:t?`icon-sm`:`sm`,"data-bar":``,className:n(`font-normal text-lead hover:bg-stone-2 hover:text-ink aria-expanded:bg-stone-2 aria-expanded:text-ink aria-pressed:bg-here aria-pressed:text-ink`,t?`size-7 [&_svg:not([class*='size-'])]:size-4`:`h-7.5 gap-1.5 px-2 [&_svg:not([class*='size-'])]:size-3.5`,e),...r})}function or({className:e,...t}){return(0,V.jsx)(er,{size:`sm`,"data-bar":``,className:n(`gap-1.5 px-2 font-normal text-lead shadow-none data-[size=sm]:h-7.5 hover:text-ink data-[state=open]:text-ink [&_svg:not([class*='size-'])]:size-3.5`,e),...t})}var sr=16,cr=8;function lr(){return(0,V.jsx)(Dt,{asChild:!0,width:sr,height:cr,children:(0,V.jsxs)(`svg`,{viewBox:`0 0 ${String(sr)} ${String(cr)}`,"aria-hidden":!0,className:`-mt-px block overflow-visible`,children:[(0,V.jsx)(`path`,{d:`M0 -1 L${String(sr/2)} 7 L${String(sr)} -1 Z`,className:`fill-popover`}),(0,V.jsx)(`path`,{d:`M0 0 L${String(sr/2)} 7 L${String(sr)} 0`,className:`fill-none stroke-border`})]})})}function ur({className:e,...t}){return(0,V.jsx)(qe,{"data-slot":`checkbox`,className:n(`peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary`,e),...t,children:(0,V.jsx)(Ye,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none`,children:(0,V.jsx)(Te,{className:`size-3.5`})})})}function dr({...e}){return(0,V.jsx)(ft,{"data-slot":`popover`,...e})}function fr({...e}){return(0,V.jsx)(gt,{"data-slot":`popover-trigger`,...e})}function pr({className:e,align:t=`center`,sideOffset:r=4,...i}){return(0,V.jsx)(bt,{children:(0,V.jsx)(St,{"data-slot":`popover-content`,align:t,sideOffset:r,className:n(`z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...i})})}function mr({...e}){return(0,V.jsx)(mt,{"data-slot":`popover-anchor`,...e})}function hr({className:e,value:t,...r}){return(0,V.jsx)(Lt,{"data-slot":`progress`,className:n(`relative h-2 w-full overflow-hidden rounded-full bg-primary/20`,e),...r,children:(0,V.jsx)(zt,{"data-slot":`progress-indicator`,className:`h-full w-full flex-1 bg-primary transition-all`,style:{transform:`translateX(-${100-(t||0)}%)`}})})}function gr({...e}){return(0,V.jsx)(s,{"data-slot":`sheet`,...e})}function _r({...e}){return(0,V.jsx)(f,{"data-slot":`sheet-portal`,...e})}function vr({className:e,...t}){return(0,V.jsx)(m,{"data-slot":`sheet-overlay`,className:n(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function yr({className:e,children:t,side:r=`right`,showCloseButton:a=!0,...s}){return(0,V.jsxs)(_r,{children:[(0,V.jsx)(vr,{}),(0,V.jsxs)(o,{"data-slot":`sheet-content`,className:n(`fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500`,r===`right`&&`inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm`,r===`left`&&`inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm`,r===`top`&&`inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top`,r===`bottom`&&`inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom`,e),...s,children:[t,a&&(0,V.jsxs)(I,{className:`absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary`,children:[(0,V.jsx)(i,{className:`size-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function br({className:e,...t}){return(0,V.jsx)(h,{"data-slot":`sheet-title`,className:n(`font-semibold text-foreground`,e),...t})}var xr=5;function Sr(e,t){return e.filter(e=>e.item===t&&e.state!==`cancelled`).reverse().slice(0,xr)}var Cr=e=>e.state===`queued`||e.state===`running`;function wr(e,t,n,r={}){let i=(e,t)=>e.length===t.length&&e.every(e=>t.includes(e));return Cr(e)&&i(e.versions,t)&&i(e.types,n)&&Tr(e.options??{},r)}var Tr=(e,t)=>Object.keys({...e,...t}).every(n=>e[n]===t[n]);function Er(e,t,n){return Object.fromEntries(e.flatMap(e=>{let r=n[e.name];return!e.only.includes(t)||r===void 0?[]:e.values?e.values.includes(String(r))?[[e.name,r]]:[]:r===!0?[[e.name,!0]]:[]}))}function Dr(e,t){return Math.max(0,e.filter(Cr).map(e=>e.id).indexOf(t))}function Or(e,t,n,r){if(n.length!==0)return e===`all`?[...n]:e===`some`?n.filter(e=>r.includes(e)):t===void 0?[...n]:[t]}function kr(e,t){let n=e.findLast(Cr);if(n)return n.state===`running`?{at:`running`,percent:Math.round(n.progress*100)}:{at:`queued`};let r=e[0];return r===void 0||!t.has(r.id)?{at:`idle`}:r.state===`failed`?{at:`failed`}:{at:`done`}}var Ar=e=>e.slice(e.lastIndexOf(`/`)+1),jr=O({en:{saved:{saved:`Saved`,saving:`Saving…`,unsaved:`Not saved yet`,error:`Not saved`},moreTools:`More`,export:`Export`,exported:`Exported`,exportFailed:`Export failed`,format:`Format`,versions:`Languages`,include:`Include`,onShow:`On show`,all:e=>`All ${String(e)} languages`,choose:`Choose…`,chosen:e=>`${String(e)} chosen`,back:`Back`,checking:`Checking…`,blocked:e=>e===1?`1 must-fix problem stops the export`:`${String(e)} must-fix problems stop the export`,start:`Export`,queued:`Waiting`,queuedAhead:e=>`Waiting, ${String(e)} ahead`,running:e=>`Exporting ${String(e)}%`,cancel:`Cancel`,retry:`Try again`,failedHelp:e=>`Try again, or ask ${e} what went wrong.`,partial:`Some files could not be made.`,startFailed:`The export did not start`,nVersions:e=>`${String(e)} versions`,show:`Show in folder`,download:`Download`,option:{pptx:{label:`Slides`,values:{native:`Editable`,editable:`Pictures with text boxes`,picture:`Pictures`}},steps:{label:`Each animation step`}},type:{mov:`MOV (ProRes)`,srt:`Captions`,cover:`Cover image`,pngPages:`PNG pages`,pptx:`PowerPoint`}},"zh-cn":{saved:{saved:`已保存`,saving:`正在保存…`,unsaved:`尚未保存`,error:`没能保存`},moreTools:`更多`,export:`导出`,exported:`已导出`,exportFailed:`导出失败`,format:`格式`,versions:`语言`,include:`附带`,onShow:`当前`,all:e=>`全部 ${String(e)} 种语言`,choose:`选择…`,chosen:e=>`已选 ${String(e)} 个`,back:`返回`,checking:`检查中…`,blocked:e=>`有 ${String(e)} 个必修问题,暂时不能导出`,start:`导出`,queued:`排队中`,queuedAhead:e=>`排队中,前面还有 ${String(e)} 个`,running:e=>`导出中 ${String(e)}%`,cancel:`取消`,retry:`重试`,failedHelp:e=>`请重试,或让 ${e} 看看哪里出了问题。`,partial:`部分文件没能生成。`,startFailed:`导出没有开始`,nVersions:e=>`${String(e)} 个版本`,show:`在文件夹中显示`,download:`下载`,option:{pptx:{label:`幻灯片`,values:{native:`可编辑`,editable:`图片加文本框`,picture:`图片`}},steps:{label:`每个动画步骤`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`封面图`,pngPages:`PNG 页面`,pptx:`PowerPoint`}},"zh-tw":{saved:{saved:`已儲存`,saving:`正在儲存…`,unsaved:`尚未儲存`,error:`沒能儲存`},moreTools:`更多`,export:`匯出`,exported:`已匯出`,exportFailed:`匯出失敗`,format:`格式`,versions:`語言`,include:`附帶`,onShow:`目前`,all:e=>`全部 ${String(e)} 種語言`,choose:`選擇…`,chosen:e=>`已選 ${String(e)} 個`,back:`返回`,checking:`檢查中…`,blocked:e=>`有 ${String(e)} 個必須修正的問題,暫時無法匯出`,start:`匯出`,queued:`排隊中`,queuedAhead:e=>`排隊中,前面還有 ${String(e)} 個`,running:e=>`匯出中 ${String(e)}%`,cancel:`取消`,retry:`重試`,failedHelp:e=>`請重試,或讓 ${e} 看看哪裡出了問題。`,partial:`部分檔案沒能產生。`,startFailed:`匯出沒有開始`,nVersions:e=>`${String(e)} 個版本`,show:`在資料夾中顯示`,download:`下載`,option:{pptx:{label:`投影片`,values:{native:`可編輯`,editable:`圖片加文字方塊`,picture:`圖片`}},steps:{label:`每個動畫步驟`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`封面圖`,pngPages:`PNG 頁面`,pptx:`PowerPoint`}},ja:{saved:{saved:`保存済み`,saving:`保存中…`,unsaved:`未保存`,error:`保存できませんでした`},moreTools:`その他`,export:`書き出し`,exported:`書き出し済み`,exportFailed:`書き出しに失敗`,format:`形式`,versions:`言語`,include:`追加`,onShow:`表示中`,all:e=>`全 ${String(e)} 言語`,choose:`選択…`,chosen:e=>`${String(e)} 件選択`,back:`戻る`,checking:`チェック中…`,blocked:e=>`要修正の問題が ${String(e)} 件あるため書き出せません`,start:`書き出す`,queued:`待機中`,queuedAhead:e=>`待機中、前に ${String(e)} 件`,running:e=>`書き出し中 ${String(e)}%`,cancel:`キャンセル`,retry:`再試行`,failedHelp:e=>`もう一度試すか、${e} に原因を確認してください。`,partial:`一部のファイルを作成できませんでした。`,startFailed:`書き出しを開始できませんでした`,nVersions:e=>`${String(e)} 個のバージョン`,show:`フォルダに表示`,download:`ダウンロード`,option:{pptx:{label:`スライド`,values:{native:`編集可能`,editable:`画像とテキスト ボックス`,picture:`画像`}},steps:{label:`アニメーションの各ステップ`}},type:{mov:`MOV(ProRes)`,srt:`字幕`,cover:`カバー画像`,pngPages:`PNG ページ`,pptx:`PowerPoint`}},ko:{saved:{saved:`저장됨`,saving:`저장 중…`,unsaved:`아직 저장되지 않음`,error:`저장되지 않음`},moreTools:`더보기`,export:`내보내기`,exported:`내보냄`,exportFailed:`내보내기 실패`,format:`형식`,versions:`언어`,include:`포함`,onShow:`현재`,all:e=>`${String(e)}개 언어 모두`,choose:`선택…`,chosen:e=>`${String(e)}개 선택`,back:`뒤로`,checking:`확인 중…`,blocked:e=>`수정이 필요한 문제 ${String(e)}개 때문에 내보낼 수 없습니다`,start:`내보내기`,queued:`대기 중`,queuedAhead:e=>`대기 중, 앞에 ${String(e)}개`,running:e=>`내보내는 중 ${String(e)}%`,cancel:`취소`,retry:`다시 시도`,failedHelp:e=>`다시 시도하거나 ${e}에게 원인을 물어보세요.`,partial:`일부 파일을 만들지 못했습니다.`,startFailed:`내보내기를 시작하지 못했습니다`,nVersions:e=>`버전 ${String(e)}개`,show:`폴더에서 보기`,download:`다운로드`,option:{pptx:{label:`슬라이드`,values:{native:`편집 가능`,editable:`이미지와 텍스트 상자`,picture:`이미지`}},steps:{label:`애니메이션 단계별로`}},type:{mov:`MOV (ProRes)`,srt:`자막`,cover:`표지 이미지`,pngPages:`PNG 페이지`,pptx:`PowerPoint`}},es:{saved:{saved:`Guardado`,saving:`Guardando…`,unsaved:`Aún sin guardar`,error:`No guardado`},moreTools:`Más`,export:`Exportar`,exported:`Exportado`,exportFailed:`Error al exportar`,format:`Formato`,versions:`Idiomas`,include:`Incluir`,onShow:`Actual`,all:e=>`Los ${String(e)} idiomas`,choose:`Elegir…`,chosen:e=>`${String(e)} elegidos`,back:`Atrás`,checking:`Comprobando…`,blocked:e=>`${String(e)} problemas obligatorios detienen la exportación`,start:`Exportar`,queued:`En espera`,queuedAhead:e=>`En espera, ${String(e)} delante`,running:e=>`Exportando ${String(e)} %`,cancel:`Cancelar`,retry:`Reintentar`,failedHelp:e=>`Reinténtalo o pregunta a ${e} qué ha fallado.`,partial:`No se pudieron crear algunos archivos.`,startFailed:`La exportación no empezó`,nVersions:e=>`${String(e)} versiones`,show:`Mostrar en la carpeta`,download:`Descargar`,option:{pptx:{label:`Diapositivas`,values:{native:`Editables`,editable:`Imágenes con cuadros de texto`,picture:`Imágenes`}},steps:{label:`Cada paso de animación`}},type:{mov:`MOV (ProRes)`,srt:`Subtítulos`,cover:`Imagen de portada`,pngPages:`Páginas PNG`,pptx:`PowerPoint`}},fr:{saved:{saved:`Enregistré`,saving:`Enregistrement…`,unsaved:`Pas encore enregistré`,error:`Non enregistré`},moreTools:`Plus`,export:`Exporter`,exported:`Exporté`,exportFailed:`Échec de l’export`,format:`Format`,versions:`Langues`,include:`Inclure`,onShow:`Affichée`,all:e=>`Les ${String(e)} langues`,choose:`Choisir…`,chosen:e=>`${String(e)} choisies`,back:`Retour`,checking:`Vérification…`,blocked:e=>`${String(e)} problèmes à corriger bloquent l’export`,start:`Exporter`,queued:`En attente`,queuedAhead:e=>`En attente, ${String(e)} avant celui-ci`,running:e=>`Export ${String(e)}\u00a0%`,cancel:`Annuler`,retry:`Réessayer`,failedHelp:e=>`Réessayez ou demandez à ${e} ce qui n’a pas marché.`,partial:`Certains fichiers n’ont pas pu être créés.`,startFailed:`L’export n’a pas démarré`,nVersions:e=>`${String(e)} versions`,show:`Afficher dans le dossier`,download:`Télécharger`,option:{pptx:{label:`Diapositives`,values:{native:`Modifiables`,editable:`Images avec zones de texte`,picture:`Images`}},steps:{label:`Chaque étape d'animation`}},type:{mov:`MOV (ProRes)`,srt:`Sous-titres`,cover:`Image de couverture`,pngPages:`Pages PNG`,pptx:`PowerPoint`}},de:{saved:{saved:`Gespeichert`,saving:`Wird gespeichert…`,unsaved:`Noch nicht gespeichert`,error:`Nicht gespeichert`},moreTools:`Mehr`,export:`Exportieren`,exported:`Exportiert`,exportFailed:`Export fehlgeschlagen`,format:`Format`,versions:`Sprachen`,include:`Dazu`,onShow:`Aktuell`,all:e=>`Alle ${String(e)} Sprachen`,choose:`Auswählen…`,chosen:e=>`${String(e)} ausgewählt`,back:`Zurück`,checking:`Wird geprüft…`,blocked:e=>`${String(e)} Probleme verhindern den Export`,start:`Exportieren`,queued:`Wartet`,queuedAhead:e=>`Wartet, ${String(e)} davor`,running:e=>`Export läuft: ${String(e)} %`,cancel:`Abbrechen`,retry:`Erneut versuchen`,failedHelp:e=>`Versuche es erneut oder frage ${e}, was schiefgelaufen ist.`,partial:`Einige Dateien konnten nicht erstellt werden.`,startFailed:`Der Export ist nicht gestartet`,nVersions:e=>`${String(e)} Versionen`,show:`Im Ordner zeigen`,download:`Herunterladen`,option:{pptx:{label:`Folien`,values:{native:`Bearbeitbar`,editable:`Bilder mit Textfeldern`,picture:`Bilder`}},steps:{label:`Jeden Animationsschritt`}},type:{mov:`MOV (ProRes)`,srt:`Untertitel`,cover:`Titelbild`,pngPages:`PNG-Seiten`,pptx:`PowerPoint`}},it:{saved:{saved:`Salvato`,saving:`Salvataggio…`,unsaved:`Non ancora salvato`,error:`Non salvato`},moreTools:`Altro`,export:`Esporta`,exported:`Esportato`,exportFailed:`Esportazione non riuscita`,format:`Formato`,versions:`Lingue`,include:`Includi`,onShow:`Attuale`,all:e=>`Tutte le ${String(e)} lingue`,choose:`Scegli…`,chosen:e=>`${String(e)} scelte`,back:`Indietro`,checking:`Controllo…`,blocked:e=>`${String(e)} problemi da correggere bloccano l’esportazione`,start:`Esporta`,queued:`In attesa`,queuedAhead:e=>`In attesa, ${String(e)} prima`,running:e=>`Esportazione ${String(e)}%`,cancel:`Annulla`,retry:`Riprova`,failedHelp:e=>`Riprova o chiedi a ${e} cosa è andato storto.`,partial:`Non è stato possibile creare alcuni file.`,startFailed:`L'esportazione non è partita`,nVersions:e=>`${String(e)} versioni`,show:`Mostra nella cartella`,download:`Scarica`,option:{pptx:{label:`Diapositive`,values:{native:`Modificabili`,editable:`Immagini con caselle di testo`,picture:`Immagini`}},steps:{label:`Ogni passaggio dell'animazione`}},type:{mov:`MOV (ProRes)`,srt:`Sottotitoli`,cover:`Immagine di copertina`,pngPages:`Pagine PNG`,pptx:`PowerPoint`}},pt:{saved:{saved:`Salvo`,saving:`Salvando…`,unsaved:`Ainda não salvo`,error:`Não salvo`},moreTools:`Mais`,export:`Exportar`,exported:`Exportado`,exportFailed:`Falha ao exportar`,format:`Formato`,versions:`Idiomas`,include:`Incluir`,onShow:`Atual`,all:e=>`Todos os ${String(e)} idiomas`,choose:`Escolher…`,chosen:e=>`${String(e)} escolhidos`,back:`Voltar`,checking:`Verificando…`,blocked:e=>`${String(e)} problemas obrigatórios impedem a exportação`,start:`Exportar`,queued:`Aguardando`,queuedAhead:e=>`Aguardando, ${String(e)} na frente`,running:e=>`Exportando ${String(e)}%`,cancel:`Cancelar`,retry:`Tentar novamente`,failedHelp:e=>`Tente novamente ou pergunte a ${e} o que deu errado.`,partial:`Não foi possível criar alguns arquivos.`,startFailed:`A exportação não começou`,nVersions:e=>`${String(e)} versões`,show:`Mostrar na pasta`,download:`Baixar`,option:{pptx:{label:`Slides`,values:{native:`Editáveis`,editable:`Imagens com caixas de texto`,picture:`Imagens`}},steps:{label:`Cada etapa da animação`}},type:{mov:`MOV (ProRes)`,srt:`Legendas`,cover:`Imagem de capa`,pngPages:`Páginas PNG`,pptx:`PowerPoint`}},ru:{saved:{saved:`Сохранено`,saving:`Сохранение…`,unsaved:`Ещё не сохранено`,error:`Не сохранено`},moreTools:`Ещё`,export:`Экспорт`,exported:`Экспортировано`,exportFailed:`Ошибка экспорта`,format:`Формат`,versions:`Языки`,include:`Добавить`,onShow:`Текущий`,all:e=>`Все языки: ${String(e)}`,choose:`Выбрать…`,chosen:e=>`Выбрано: ${String(e)}`,back:`Назад`,checking:`Проверка…`,blocked:e=>`Экспорт остановлен, обязательных проблем: ${String(e)}`,start:`Экспортировать`,queued:`Ожидание`,queuedAhead:e=>`Ожидание, впереди: ${String(e)}`,running:e=>`Экспорт ${String(e)}%`,cancel:`Отменить`,retry:`Повторить`,failedHelp:e=>`Повторите попытку или спросите ${e}, что пошло не так.`,partial:`Некоторые файлы создать не удалось.`,startFailed:`Экспорт не начался`,nVersions:e=>`Версий: ${String(e)}`,show:`Показать в папке`,download:`Скачать`,option:{pptx:{label:`Слайды`,values:{native:`Редактируемые`,editable:`Картинки с надписями`,picture:`Картинки`}},steps:{label:`Каждый шаг анимации`}},type:{mov:`MOV (ProRes)`,srt:`Субтитры`,cover:`Обложка`,pngPages:`Страницы PNG`,pptx:`PowerPoint`}},tr:{saved:{saved:`Kaydedildi`,saving:`Kaydediliyor…`,unsaved:`Henüz kaydedilmedi`,error:`Kaydedilmedi`},moreTools:`Diğer`,export:`Dışa aktar`,exported:`Dışa aktarıldı`,exportFailed:`Dışa aktarılamadı`,format:`Biçim`,versions:`Diller`,include:`Ekle`,onShow:`Geçerli`,all:e=>`${String(e)} dilin tümü`,choose:`Seç…`,chosen:e=>`${String(e)} seçildi`,back:`Geri`,checking:`Denetleniyor…`,blocked:e=>`Düzeltilmesi gereken ${String(e)} sorun dışa aktarmayı durduruyor`,start:`Dışa aktar`,queued:`Bekliyor`,queuedAhead:e=>`Bekliyor, önünde ${String(e)} iş var`,running:e=>`Dışa aktarılıyor %${String(e)}`,cancel:`İptal`,retry:`Yeniden dene`,failedHelp:e=>`Yeniden deneyin ya da sorunu ${e} ile inceleyin.`,partial:`Bazı dosyalar oluşturulamadı.`,startFailed:`Dışa aktarma başlamadı`,nVersions:e=>`${String(e)} sürüm`,show:`Klasörde göster`,download:`İndir`,option:{pptx:{label:`Slaytlar`,values:{native:`Düzenlenebilir`,editable:`Metin kutulu resimler`,picture:`Resimler`}},steps:{label:`Her animasyon adımı`}},type:{mov:`MOV (ProRes)`,srt:`Altyazı`,cover:`Kapak görseli`,pngPages:`PNG sayfaları`,pptx:`PowerPoint`}},vi:{saved:{saved:`Đã lưu`,saving:`Đang lưu…`,unsaved:`Chưa lưu`,error:`Không lưu được`},moreTools:`Thêm`,export:`Xuất`,exported:`Đã xuất`,exportFailed:`Xuất thất bại`,format:`Định dạng`,versions:`Ngôn ngữ`,include:`Kèm theo`,onShow:`Hiện tại`,all:e=>`Cả ${String(e)} ngôn ngữ`,choose:`Chọn…`,chosen:e=>`Đã chọn ${String(e)}`,back:`Quay lại`,checking:`Đang kiểm tra…`,blocked:e=>`${String(e)} vấn đề cần sửa đang chặn việc xuất`,start:`Xuất`,queued:`Đang chờ`,queuedAhead:e=>`Đang chờ, còn ${String(e)} việc phía trước`,running:e=>`Đang xuất ${String(e)}%`,cancel:`Hủy`,retry:`Thử lại`,failedHelp:e=>`Hãy thử lại hoặc hỏi ${e} xem có vấn đề gì.`,partial:`Không tạo được một số tệp.`,startFailed:`Không bắt đầu xuất được`,nVersions:e=>`${String(e)} phiên bản`,show:`Hiện trong thư mục`,download:`Tải xuống`,option:{pptx:{label:`Trang chiếu`,values:{native:`Có thể chỉnh sửa`,editable:`Ảnh kèm hộp văn bản`,picture:`Ảnh`}},steps:{label:`Từng bước hoạt ảnh`}},type:{mov:`MOV (ProRes)`,srt:`Phụ đề`,cover:`Ảnh bìa`,pngPages:`Các trang PNG`,pptx:`PowerPoint`}},th:{saved:{saved:`บันทึกแล้ว`,saving:`กำลังบันทึก…`,unsaved:`ยังไม่ได้บันทึก`,error:`บันทึกไม่ได้`},moreTools:`เพิ่มเติม`,export:`ส่งออก`,exported:`ส่งออกแล้ว`,exportFailed:`ส่งออกไม่สำเร็จ`,format:`รูปแบบ`,versions:`ภาษา`,include:`รวมด้วย`,onShow:`ปัจจุบัน`,all:e=>`ทั้ง ${String(e)} ภาษา`,choose:`เลือก…`,chosen:e=>`เลือกแล้ว ${String(e)}`,back:`กลับ`,checking:`กำลังตรวจสอบ…`,blocked:e=>`มีปัญหาที่ต้องแก้ ${String(e)} รายการ จึงส่งออกไม่ได้`,start:`ส่งออก`,queued:`กำลังรอ`,queuedAhead:e=>`กำลังรอ มีอีก ${String(e)} งานก่อนหน้า`,running:e=>`กำลังส่งออก ${String(e)}%`,cancel:`ยกเลิก`,retry:`ลองอีกครั้ง`,failedHelp:e=>`ลองอีกครั้ง หรือถาม ${e} ว่าเกิดอะไรขึ้น`,partial:`สร้างบางไฟล์ไม่ได้`,startFailed:`เริ่มส่งออกไม่ได้`,nVersions:e=>`${String(e)} เวอร์ชัน`,show:`แสดงในโฟลเดอร์`,download:`ดาวน์โหลด`,option:{pptx:{label:`สไลด์`,values:{native:`แก้ไขได้`,editable:`รูปภาพพร้อมกล่องข้อความ`,picture:`รูปภาพ`}},steps:{label:`แต่ละขั้นของภาพเคลื่อนไหว`}},type:{mov:`MOV (ProRes)`,srt:`คำบรรยาย`,cover:`ภาพหน้าปก`,pngPages:`หน้า PNG`,pptx:`PowerPoint`}},hi:{saved:{saved:`सहेजा गया`,saving:`सहेजा जा रहा है…`,unsaved:`अभी सहेजा नहीं गया`,error:`सहेजा नहीं गया`},moreTools:`और`,export:`एक्सपोर्ट`,exported:`एक्सपोर्ट हो गया`,exportFailed:`एक्सपोर्ट विफल`,format:`फ़ॉर्मैट`,versions:`भाषाएँ`,include:`साथ में`,onShow:`मौजूदा`,all:e=>`सभी ${String(e)} भाषाएँ`,choose:`चुनें…`,chosen:e=>`${String(e)} चुने गए`,back:`वापस`,checking:`जाँच हो रही है…`,blocked:e=>`${String(e)} ज़रूरी समस्याएँ एक्सपोर्ट रोक रही हैं`,start:`एक्सपोर्ट करें`,queued:`प्रतीक्षा में`,queuedAhead:e=>`प्रतीक्षा में, आगे ${String(e)}`,running:e=>`एक्सपोर्ट हो रहा है ${String(e)}%`,cancel:`रद्द करें`,retry:`फिर कोशिश करें`,failedHelp:e=>`फिर कोशिश करें या ${e} से पूछें कि क्या गड़बड़ हुई।`,partial:`कुछ फ़ाइलें नहीं बन सकीं।`,startFailed:`एक्सपोर्ट शुरू नहीं हुआ`,nVersions:e=>`${String(e)} वर्शन`,show:`फ़ोल्डर में दिखाएँ`,download:`डाउनलोड करें`,option:{pptx:{label:`स्लाइड`,values:{native:`संपादन योग्य`,editable:`टेक्स्ट बॉक्स वाली तस्वीरें`,picture:`तस्वीरें`}},steps:{label:`हर एनिमेशन चरण`}},type:{mov:`MOV (ProRes)`,srt:`कैप्शन`,cover:`कवर इमेज`,pngPages:`PNG पेज`,pptx:`PowerPoint`}}}),Mr={mp4:`MP4`,gif:`GIF`,pdf:`PDF`,docx:`Word`,md:`Markdown`,xlsx:`Excel`,csv:`CSV`,json:`JSON`,glb:`GLB`},Nr=(e,t)=>Mr[t]??(t===`png`?e.type.pngPages:t in e.type?e.type[t]:t);function Pr(){let[e,t]=(0,B.useState)(()=>window.matchMedia(`(max-width: 479px)`).matches);return(0,B.useEffect)(()=>{let e=window.matchMedia(`(max-width: 479px)`),n=()=>{t(e.matches)};return e.addEventListener(`change`,n),()=>{e.removeEventListener(`change`,n)}},[]),e}function Fr(e){let t=N(),[n,r]=(0,B.useState)([]),[i,a]=(0,B.useState)(new Set),[o,s]=(0,B.useState)(!1);(0,B.useEffect)(()=>{let e=!0;return u(t,`export/list`,{}).then(t=>{e&&(r(t.jobs),s(t.reveal))},()=>void 0),()=>{e=!1}},[t]),ee(`export/changed`,({job:t})=>{r(e=>{let n=e.findIndex(e=>e.id===t.id);return n<0?[...e,t]:e.map((e,r)=>r===n?t:e)}),!Cr(t)&&!e&&a(e=>new Set(e).add(t.id))});let[c,l]=(0,B.useState)(e);return c!==e&&(l(e),e&&a(new Set)),{all:n,fresh:i,reveals:o}}function Ir(e){let t=N(),n=p[e],r=`item-bar.export.${e}`,[i,a]=(0,B.useState)({type:n?.types[0]??``,extras:[],options:{}});return(0,B.useEffect)(()=>{let e=!0;return t[`storage/get`]({key:r}).then(({value:t})=>{let r=t;if(!e||!n||!r)return;let i=n.types.find(e=>e===r.type);i!==void 0&&a({type:i,extras:n.extras.filter(e=>r.extras?.includes(e)),options:r.options??{}})},()=>void 0),()=>{e=!1}},[t,r,n]),[i,e=>{a(e),t[`storage/set`]({key:r,value:e}).catch(()=>void 0)}]}function Lr({percent:e}){return(0,V.jsx)(`span`,{"aria-hidden":!0,className:`relative size-3.5 flex-none rounded-full`,style:{background:`conic-gradient(currentColor ${String(e)}%, var(--allyhub-rule-strong) 0)`},children:(0,V.jsx)(`span`,{className:`bg-background absolute inset-[3px] rounded-full`})})}async function Rr(e,t){let{url:n}=await e[`files/url`]({path:t}),r=document.createElement(`a`);r.href=n,r.download=Ar(t),r.click()}async function zr(e,t,n){n&&await u(e,`export/reveal`,{path:t}).then(()=>!0,()=>!1)||await Rr(e,t)}function Br({job:e,versions:t,ahead:n,words:a,reveals:o}){let s=N(),c=L()?.agent?.name??`AllyHub`,l=Math.round(e.progress*100),f=o?je:ke,p=o?a.show:a.download,m=e.versions.length===0?void 0:e.versions.length>2?a.nVersions(e.versions.length):e.versions.map(e=>t.find(t=>t.key===e)?.label??e).join(`, `),h=[e.types.map(e=>Nr(a,e)).join(`, `),...t.length>1&&m!==void 0?[m]:[]].join(` · `);return(0,V.jsxs)(`div`,{className:`border-t py-2 pr-2 pl-4`,"data-testid":`export-job`,"data-state":e.state,children:[Cr(e)&&(0,V.jsxs)(`div`,{className:`pr-2`,children:[(0,V.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,children:[(0,V.jsx)(`span`,{className:`text-dense min-w-0 flex-1 truncate`,children:h}),(0,V.jsx)(`span`,{className:`text-lead text-xs tabular-nums`,children:e.state===`running`?`${String(l)}%`:n>0?a.queuedAhead(n):a.queued}),(0,V.jsx)($,{icon:!0,"aria-label":a.cancel,title:a.cancel,"data-testid":`export-cancel`,onClick:()=>{u(s,`export/cancel`,{job:e.id}).catch(()=>void 0)},children:(0,V.jsx)(i,{"aria-hidden":!0})})]}),(0,V.jsx)(hr,{value:l,className:`mt-1 h-1`})]}),e.state===`failed`&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,children:[(0,V.jsx)(r,{className:`text-destructive size-3.5 flex-none`,"aria-hidden":!0}),(0,V.jsxs)(`span`,{className:`text-dense text-destructive min-w-0 flex-1 truncate`,children:[a.exportFailed,` · `,h]}),(0,V.jsx)($,{icon:!0,"aria-label":a.retry,title:a.retry,"data-testid":`export-retry`,onClick:()=>{u(s,`export/start`,{item:e.item,versions:e.versions,types:e.types,...e.options?{options:e.options}:{}}).catch(e=>{d.error(a.startFailed,{description:e instanceof Error?e.message:String(e)})})},children:(0,V.jsx)(Me,{"aria-hidden":!0})})]}),(0,V.jsx)(`p`,{className:`text-lead pr-2 pl-5.5 text-xs`,title:e.error,children:a.failedHelp(c)})]}),e.files.map(e=>(0,V.jsxs)(`div`,{className:`flex h-7 items-center gap-2`,"data-testid":`export-file`,children:[(0,V.jsx)(Te,{className:`text-success size-3.5 flex-none`,"aria-hidden":!0}),(0,V.jsx)(`span`,{className:`text-dense min-w-0 flex-1 truncate`,title:e,children:Ar(e)}),(0,V.jsx)($,{icon:!0,"aria-label":p,title:p,"data-testid":`export-give`,onClick:()=>{zr(s,e,o)},children:(0,V.jsx)(f,{"aria-hidden":!0})})]},e)),e.state===`done`&&e.error!==void 0&&(0,V.jsx)(`p`,{className:`text-lead pr-2 pl-5.5 text-xs`,title:e.error,children:a.partial})]})}function Vr({versions:e,shown:t,picked:n,onPick:r,onBack:i,words:a}){return(0,V.jsxs)(`div`,{"data-testid":`export-choose`,children:[(0,V.jsxs)(`div`,{className:`flex h-11 items-center gap-1 border-b pr-4 pl-2`,children:[(0,V.jsx)($,{icon:!0,"aria-label":a.back,title:a.back,onClick:i,children:(0,V.jsx)(De,{"aria-hidden":!0})}),(0,V.jsx)(`span`,{className:`text-sm font-medium`,children:a.versions}),(0,V.jsxs)(`span`,{className:`text-lead ml-auto text-xs tabular-nums`,children:[n.length,`/`,e.length]})]}),(0,V.jsx)(`ul`,{className:`max-h-64 overflow-y-auto p-2`,children:e.map(e=>(0,V.jsx)(`li`,{children:(0,V.jsxs)(`label`,{className:`hover:bg-accent flex h-8 items-center gap-2 rounded-md px-2 text-sm`,children:[(0,V.jsx)(ur,{checked:n.includes(e.key),"data-version":e.key,onCheckedChange:t=>{r(t===!0?[...n,e.key]:n.filter(t=>t!==e.key))}}),(0,V.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.label}),e.key===t&&(0,V.jsx)(`span`,{className:`text-lead text-xs`,children:a.onShow})]})},e.key))})]})}function Hr({kind:e,item:t,props:i,jobs:a,all:o,words:s,reveals:c,startRef:l}){let f=N(),m=p[e],h=i.versions??[],g=h.map(e=>e.key),_=h.find(e=>e.key===i.shown)?.label,v=i.unavailable??{},[y,b]=Ir(e),[x,S]=(0,B.useState)(`shown`),[C,w]=(0,B.useState)(i.shown===void 0?[]:[i.shown]),[T,E]=(0,B.useState)(!1),[ee,D]=(0,B.useState)(!1);if(!m)return null;let O=Or(x,i.shown,g,C),k=O?.length??1,A=[y.type,...y.extras.filter(e=>v[e]===void 0)],j=(m.options??[]).filter(e=>e.only.includes(y.type)),M=Er(j,y.type,y.options),P=j.filter(e=>e.values===void 0),te=(e,t)=>{b({...y,options:{...y.options,[e]:t}})},ne=i.check?.waiting===!0,F=ne?0:i.check?.problems(O)??0,I=a.some(e=>wr(e,O??[],A,M)),L=async()=>{D(!0);try{await u(f,`export/start`,{item:t,...O?{versions:O}:{},types:A,...Object.keys(M).length>0?{options:M}:{}})}catch(e){d.error(s.startFailed,{description:e instanceof Error?e.message:String(e)})}finally{D(!1)}},R=(0,V.jsxs)(Qn,{value:y.type,onValueChange:e=>{b({...y,type:e})},children:[(0,V.jsx)(er,{size:`sm`,"aria-label":s.format,className:`w-full min-w-0`,"data-testid":`export-format`,children:(0,V.jsx)($n,{})}),(0,V.jsx)(tr,{position:`popper`,align:`start`,children:m.types.map(e=>(0,V.jsx)(nr,{value:e,"data-type":e,children:Nr(s,e)},e))})]}),z=(0,V.jsx)(re,{ref:l,size:`sm`,disabled:ne||F>0||ee||k===0||I,"data-testid":`export-start`,onClick:()=>{L()},children:ne?s.checking:s.start}),ie=g.length<=1&&m.extras.length===0&&j.length===0&&m.types.length>1&&i.facts===void 0&&F===0;return(0,V.jsxs)(`div`,{className:`overflow-hidden rounded-lg text-sm`,"data-testid":`export-panel`,children:[T?(0,V.jsx)(Vr,{versions:h,shown:i.shown,picked:C,onPick:w,onBack:()=>{E(!1)},words:s}):ie?(0,V.jsxs)(`div`,{className:`flex items-center gap-3 p-4`,children:[(0,V.jsx)(`span`,{className:`text-lead`,children:s.format}),(0,V.jsx)(`div`,{className:`min-w-0 flex-1`,children:R}),z]}):(0,V.jsxs)(V.Fragment,{children:[(m.types.length>1||g.length>1||m.extras.length+j.length>0)&&(0,V.jsxs)(`div`,{className:`grid grid-cols-[max-content_minmax(0,1fr)] items-center gap-x-4 gap-y-2 px-4 pt-4 pb-2`,children:[m.types.length>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:s.format}),R]}),j.map(e=>e.values?(0,V.jsxs)(B.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:s.option[e.name]?.label}),(0,V.jsxs)(Qn,{value:String(y.options[e.name]??e.values[0]),onValueChange:t=>{te(e.name,t)},children:[(0,V.jsx)(er,{size:`sm`,"aria-label":s.option[e.name]?.label,className:`w-full min-w-0`,"data-testid":`export-option-${e.name}`,children:(0,V.jsx)($n,{})}),(0,V.jsx)(tr,{position:`popper`,align:`start`,children:e.values.map(t=>(0,V.jsx)(nr,{value:t,"data-value":t,children:s.option[e.name]?.values?.[t]??t},t))})]})]},e.name):null),g.length>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead`,children:s.versions}),(0,V.jsxs)(Qn,{value:x,onValueChange:e=>{S(e),e===`some`&&E(!0)},children:[(0,V.jsx)(er,{size:`sm`,"aria-label":s.versions,className:`w-full min-w-0`,"data-testid":`export-scope`,children:(0,V.jsx)($n,{})}),(0,V.jsxs)(tr,{position:`popper`,align:`start`,children:[(0,V.jsx)(nr,{value:`shown`,children:_??s.onShow}),(0,V.jsx)(nr,{value:`all`,children:s.all(g.length)}),(0,V.jsx)(rr,{}),(0,V.jsx)(nr,{value:`some`,onPointerUp:()=>{E(!0)},children:x===`some`?s.chosen(C.length):s.choose})]})]})]}),m.extras.length+P.length>0&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{className:`text-lead self-start`,children:s.include}),(0,V.jsxs)(`div`,{className:`grid gap-1.5`,"data-testid":`export-include`,children:[P.map(e=>(0,V.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(ur,{checked:y.options[e.name]===!0,"data-option":e.name,onCheckedChange:t=>{te(e.name,t===!0)}}),(0,V.jsx)(`span`,{className:`truncate`,children:s.option[e.name]?.label})]},e.name)),m.extras.map(e=>{let t=v[e];return(0,V.jsxs)(`label`,{title:t,className:n(`flex items-center gap-2`,t!==void 0&&`text-lead-soft`),children:[(0,V.jsx)(ur,{checked:t===void 0&&y.extras.includes(e),disabled:t!==void 0,"data-type":e,onCheckedChange:t=>{b({...y,extras:t===!0?[...y.extras,e]:y.extras.filter(t=>t!==e)})}}),(0,V.jsx)(`span`,{className:`truncate`,children:Nr(s,e)})]},e)})]})]})]}),F>0&&(0,V.jsxs)(`p`,{className:`text-dense text-destructive flex items-start gap-1.5 px-4 pt-2`,"data-testid":`export-blocked`,children:[(0,V.jsx)(r,{className:`mt-0.5 size-3.5 flex-none`,"aria-hidden":!0}),s.blocked(F)]}),(0,V.jsxs)(`div`,{className:`flex items-center gap-3 px-4 pt-3 pb-4`,children:[(0,V.jsx)(`span`,{className:`text-lead min-w-0 flex-1 truncate text-xs`,children:i.facts??(m.types.length===1?Nr(s,y.type):void 0)}),z]})]}),a.length>0&&(0,V.jsx)(`div`,{className:`max-h-56 overflow-y-auto`,children:a.map(e=>(0,V.jsx)(Br,{job:e,versions:h,ahead:Dr(o,e.id),words:s,reveals:c},e.id))})]})}function Ur(e){let t=/Mac|iPhone|iPad/u.test(navigator.userAgent),n=e.target;return e.code===`KeyE`&&(t?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey)&&!e.shiftKey&&!e.altKey&&!(n instanceof HTMLElement&&(n.isContentEditable||n.tagName===`INPUT`||n.tagName===`TEXTAREA`))}function Wr(e){let t=L(),n=t?.item.kind,i=t?.item.dir,a=jr.of(t?.locale),o=Pr(),s=(0,B.useRef)(null),[c,l]=(0,B.useState)(!1),{all:u,fresh:d,reveals:f}=Fr(c);if(ee(`editor/command`,()=>{l(e=>!e)}),(0,B.useEffect)(()=>{let e=e=>{Ur(e)&&(e.preventDefault(),l(e=>!e))};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[]),(0,B.useEffect)(()=>{if(!c||o)return;let e=()=>{l(!1)};return window.addEventListener(`blur`,e),()=>{window.removeEventListener(`blur`,e)}},[c,o]),n===void 0||i===void 0||!p[n])return null;let m=Sr(u,i),h=kr(m,d),g=(0,V.jsxs)($,{"data-testid":`export`,"data-state":h.at,"aria-pressed":c,"aria-label":h.at===`running`?a.running(h.percent):void 0,onClick:()=>{o&&l(!0)},children:[h.at===`running`&&(0,V.jsx)(Lr,{percent:h.percent}),h.at===`queued`&&(0,V.jsx)(Lr,{percent:0}),h.at===`done`&&(0,V.jsx)(Te,{className:`text-success`,"aria-hidden":!0}),h.at===`failed`&&(0,V.jsx)(r,{className:`text-destructive`,"aria-hidden":!0}),h.at===`idle`&&(0,V.jsx)(ke,{"aria-hidden":!0}),h.at===`running`?`${String(h.percent)}%`:h.at===`queued`?a.queued:h.at===`done`?a.exported:h.at===`failed`?a.exportFailed:a.export]}),_=(0,V.jsx)(Hr,{kind:n,item:i,props:e,jobs:m,all:u,words:a,reveals:f,startRef:s});return o?(0,V.jsxs)(V.Fragment,{children:[g,(0,V.jsx)(gr,{open:c,onOpenChange:l,children:(0,V.jsxs)(yr,{side:`bottom`,showCloseButton:!1,className:`gap-0 rounded-t-lg`,children:[(0,V.jsx)(br,{className:`sr-only`,children:a.export}),_]})})]}):(0,V.jsxs)(dr,{open:c,onOpenChange:l,children:[(0,V.jsx)(fr,{asChild:!0,children:g}),(0,V.jsxs)(pr,{align:`end`,sideOffset:8,className:`w-80 p-0`,onOpenAutoFocus:e=>{s.current&&!s.current.disabled&&(e.preventDefault(),s.current.focus())},children:[(0,V.jsx)(lr,{}),_]})]})}var Gr=800;function Kr({saved:e,words:t}){let r=e.state===`saving`||e.state===`unsaved`,[i,a]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>{a(!0)},Gr);return()=>{clearTimeout(e),a(!1)}},[r]),e.state===`saved`||r&&!i?null:(0,V.jsx)(`span`,{"data-testid":`save-state`,"data-state":e.state,title:e.message,className:n(`px-1 text-xs`,e.state===`error`?`text-destructive`:`text-lead`),children:t.saved[e.state]})}function qr({start:e,saved:t,exports:n}){let r=L(),i=jr.of(r?.locale),a=r!==void 0&&p[r.item.kind]!==void 0;return!e&&!t&&!a?null:(0,V.jsxs)(`div`,{className:`bg-background flex min-h-9 flex-none items-center gap-1 border-b px-1 font-sans text-sm`,"data-testid":`item-bar`,children:[e,(0,V.jsxs)(`div`,{className:`ml-auto flex items-center gap-1`,children:[t&&(0,V.jsx)(Kr,{saved:t,words:i}),(0,V.jsx)(Wr,{...n})]})]})}function Jr({children:e}){return(0,V.jsx)(`span`,{className:`before:bg-rule relative flex h-8 flex-none items-center gap-0.5 pl-2 before:absolute before:top-2 before:bottom-2 before:left-0.75 before:w-px`,children:e})}function Yr({testid:e,className:t,children:r,...i}){let a=L(),o=jr.of(a?.locale),s=(0,B.useRef)(null),c=(0,B.useRef)(null),l=(0,B.useRef)(null),[u,d]=(0,B.useState)(!1),[f,p]=(0,B.useState)(!1);return(0,B.useEffect)(()=>{let e=c.current;if(!e)return;let t=new ResizeObserver(()=>{let t=e.firstElementChild?.getBoundingClientRect().height??0,n=e.getBoundingClientRect().height>t*1.5;d(n),n||p(!1)});return t.observe(e),()=>{t.disconnect()}},[]),(0,B.useEffect)(()=>{if(!f)return;let e=e=>{let t=e.target;t instanceof Element&&(t.closest(`[data-radix-popper-content-wrapper]`)||s.current?.contains(t)||l.current?.contains(t)||p(!1))},t=e=>{e.key===`Escape`&&p(!1)};return document.addEventListener(`pointerdown`,e,!0),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`keydown`,t)}},[f]),(0,V.jsxs)(`div`,{className:n(`relative h-8 min-w-0 flex-1`,t),children:[(0,V.jsx)(`div`,{...i,ref:s,className:`data-[open]:bg-background absolute top-0 right-7.5 left-0 h-8 overflow-hidden data-[open]:z-30 data-[open]:h-auto data-[open]:rounded-b-md data-[open]:shadow-md`,"data-testid":e,"data-open":f?``:void 0,children:(0,V.jsx)(`div`,{ref:c,className:`-ml-2 flex flex-wrap items-center`,children:r})}),u?(0,V.jsx)($,{ref:l,icon:!0,className:`absolute top-0.5 right-0.5`,"aria-label":o.moreTools,title:o.moreTools,"aria-expanded":f,"data-testid":`${e}-more`,onMouseDown:e=>{e.preventDefault()},onClick:()=>{p(!f)},children:(0,V.jsx)(Ae,{})}):null]})}export{be as C,Ce as S,Oe as _,mr as a,Te as b,ur as c,Qn as d,tr as f,Le as g,$n as h,dr as i,$ as l,er as m,Yr as n,pr as o,nr as p,qr as r,fr as s,Jr as t,or as u,De as v,we as x,Ee as y};
|