agentroam-runtime-darwin-arm64 0.2.0-preview.72 → 0.2.0-preview.74
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/manifest.json +2 -3
- package/package.json +1 -1
- package/runtime/.next/BUILD_ID +1 -1
- package/runtime/.next/app-build-manifest.json +9 -9
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +5 -5
- package/runtime/.next/prerender-manifest.json +1 -1
- package/runtime/.next/required-server-files.json +1 -1
- package/runtime/.next/routes-manifest.json +1 -1
- package/runtime/.next/server/app/_not-found/page.js +1 -1
- package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app/_not-found.html +1 -1
- package/runtime/.next/server/app/_not-found.rsc +1 -1
- package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
- package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
- package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
- package/runtime/.next/server/app/api/agent/model/route.js +1 -1
- package/runtime/.next/server/app/api/agent/models/route.js +1 -1
- package/runtime/.next/server/app/api/agent/run/route.js +1 -1
- package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
- package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
- package/runtime/.next/server/app/api/agent/stream/route.js +2 -2
- package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
- package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
- package/runtime/.next/server/app/api/business/route.js +1 -1
- package/runtime/.next/server/app/api/client-logs/route.js +1 -1
- package/runtime/.next/server/app/api/collaboration/route.js +9 -9
- package/runtime/.next/server/app/api/collaboration/route.js.nft.json +1 -1
- package/runtime/.next/server/app/api/engine-threads/route.js +1 -0
- package/runtime/.next/server/app/api/engine-threads/route.js.nft.json +1 -0
- package/runtime/.next/server/app/api/engine-threads.body +1 -0
- package/runtime/.next/server/app/api/engine-threads.meta +1 -0
- package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
- package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +2 -2
- package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
- package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
- package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
- package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
- package/runtime/.next/server/app/api/memory/route.js +1 -1
- package/runtime/.next/server/app/api/messaging/route.js +1 -1
- package/runtime/.next/server/app/api/messaging/route.js.nft.json +1 -1
- package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
- package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/projects/check/route.js +1 -1
- package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
- package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
- package/runtime/.next/server/app/api/projects/route.js +1 -1
- package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/unsubscribe/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
- package/runtime/.next/server/app/api/push/vapid.body +1 -1
- package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
- package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js.nft.json +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js.nft.json +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js.nft.json +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js.nft.json +1 -0
- package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js.nft.json +1 -1
- package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -1
- package/runtime/.next/server/app/api/sessions/route.js +1 -1
- package/runtime/.next/server/app/api/settings/route.js +1 -1
- package/runtime/.next/server/app/api/skills/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
- package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
- package/runtime/.next/server/app/api/tools/route.js +1 -1
- package/runtime/.next/server/app/api/update/check/route.js +1 -1
- package/runtime/.next/server/app/api/update/install/route.js +1 -1
- package/runtime/.next/server/app/api/update/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
- package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
- package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
- package/runtime/.next/server/app/web/page.js +4 -4
- package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app-paths-manifest.json +34 -30
- package/runtime/.next/server/chunks/1614.js +1 -1
- package/runtime/.next/server/chunks/5303.js +1 -1
- package/runtime/.next/server/chunks/5762.js +18 -0
- package/runtime/.next/server/chunks/6977.js +1 -1
- package/runtime/.next/server/middleware-build-manifest.js +1 -1
- package/runtime/.next/server/pages/404.html +1 -1
- package/runtime/.next/server/pages/500.html +1 -1
- package/runtime/.next/server/server-reference-manifest.json +1 -1
- package/runtime/.next/static/chunks/333-9881c3d2c558a28d.js +1 -0
- package/runtime/.next/static/chunks/app/web/{error-36b287ca40eab041.js → error-53531bb27b3b87f8.js} +1 -1
- package/runtime/.next/static/chunks/app/web/layout-88328c61ec0589af.js +1 -0
- package/runtime/.next/static/chunks/app/web/page-84b5f00b4c9cd4ce.js +1 -0
- package/runtime/.next/static/chunks/{main-94a733696db11b91.js → main-93c452d518291b1c.js} +1 -1
- package/runtime/.next/static/chunks/{main-app-07b9ccbb642d9b9d.js → main-app-ba2527534563adfe.js} +1 -1
- package/runtime/lib/device-pairing-gateway.mjs +6 -1
- package/runtime/lib/web-app-cache.mjs +6 -0
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
- package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
- package/runtime/node_modules/.package-lock.json +138 -138
- package/runtime/node_modules/@agent/core/dist/index.js +874 -128
- package/runtime/node_modules/@agent/native-runtime/dist/index.js +203 -38
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/README.md +1 -1
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +104 -84
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +78 -67
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0a66n3e7.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0bmnpbz2.mjs +45 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-9je8ee1j.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ds2jqcef.mjs +19 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-fxa8mwbm.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gbbw9cgm.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-msnqqcc2.mjs +42 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wadgcjfh.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x20yarwf.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x3hc9abc.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-zg882d22.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +11 -11
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +23 -23
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +27 -27
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +21 -14
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +96 -85
- package/runtime/node_modules/caniuse-lite/data/agents.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/browserVersions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/aac.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/apng.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/array-find.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/audio.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/av1.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/av2.js +1 -0
- package/runtime/node_modules/caniuse-lite/data/features/avif.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/beacon.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/bigint.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/border-image.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/brotli.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/calc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/canvas.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/classlist.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/colr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/console-time.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/const.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/cors.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-all.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-has.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-if.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-table.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/customevent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/datalist.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dataset.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/datauri.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/decorators.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/details.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dialog.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/download.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/eme.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/eot.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es5.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/es6.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/fetch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/filereader.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/flac.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/fontface.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/forms.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/heif.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/hevc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/hidden.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/history.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/http2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/http3.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ime.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/imports.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/innertext.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-color.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-event.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-number.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-range.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-search.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/json.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/let.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mathml.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/menu.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/meter.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/midi.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mp3.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/notifications.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/object-values.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ogv.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/online-status.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/opus.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/outline.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/path2d.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/picture.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ping.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pointer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/portals.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/progress.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/promises.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/proximity.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/proxy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/push-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rellist.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rem.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ruby.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/run-in.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/script-async.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sdch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sni.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/spdy.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/srcset.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/stream.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/streams.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/svg.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/sxg.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/template.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/temporal.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/touch.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/ttf.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/u2f.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/url.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/vibration.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/video.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wasm.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wav.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/web-share.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webgl.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webhid.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webm.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webp.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/websockets.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webusb.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webvr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/webxr.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/will-change.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/woff.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/woff2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/word-break.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features/zstd.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/features.js +1 -1
- package/runtime/node_modules/caniuse-lite/data/versionGroups.js +1 -1
- package/runtime/node_modules/caniuse-lite/package.json +1 -1
- package/runtime/node_modules/graceful-fs/LICENSE.md +55 -0
- package/runtime/node_modules/graceful-fs/package.json +3 -4
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +4312 -2466
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +30 -24
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +30 -24
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +4312 -2466
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +4312 -2466
- package/runtime/node_modules/mediabunny/dist/modules/shared/aac-misc.js +202 -5
- package/runtime/node_modules/mediabunny/dist/modules/shared/bitstream.js +4 -3
- package/runtime/node_modules/mediabunny/dist/modules/shared/dts-misc.js +7 -8
- package/runtime/node_modules/mediabunny/dist/modules/shared/mp3-misc.js +7 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +60 -41
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-muxer.js +12 -8
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js +39 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/codec-data.js +220 -48
- package/runtime/node_modules/mediabunny/dist/modules/src/codec.js +80 -54
- package/runtime/node_modules/mediabunny/dist/modules/src/conversion.js +144 -96
- package/runtime/node_modules/mediabunny/dist/modules/src/decode.js +14 -8
- package/runtime/node_modules/mediabunny/dist/modules/src/encode.js +22 -9
- package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js +16 -13
- package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js +3 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-muxer.js +40 -26
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +129 -115
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-muxer.js +392 -326
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +27 -24
- package/runtime/node_modules/mediabunny/dist/modules/src/id3.js +111 -33
- package/runtime/node_modules/mediabunny/dist/modules/src/input-format.js +81 -149
- package/runtime/node_modules/mediabunny/dist/modules/src/input-track.js +48 -15
- package/runtime/node_modules/mediabunny/dist/modules/src/input.js +37 -15
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +104 -21
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +347 -216
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js +11 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +257 -163
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/ebml.js +93 -32
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +193 -99
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-muxer.js +129 -116
- package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +216 -136
- package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +237 -129
- package/runtime/node_modules/mediabunny/dist/modules/src/metadata.js +6 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +96 -49
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +101 -29
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-muxer.js +18 -9
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js +45 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-writer.js +9 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +253 -254
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-misc.js +5 -10
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +69 -43
- package/runtime/node_modules/mediabunny/dist/modules/src/muxer.js +11 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js +89 -57
- package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-muxer.js +183 -73
- package/runtime/node_modules/mediabunny/dist/modules/src/output-format.js +70 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/output.js +54 -29
- package/runtime/node_modules/mediabunny/dist/modules/src/packet.js +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/resample.js +1 -0
- package/runtime/node_modules/mediabunny/dist/modules/src/sample.js +85 -42
- package/runtime/node_modules/mediabunny/dist/modules/src/segmented-input.js +40 -21
- package/runtime/node_modules/mediabunny/dist/modules/src/source.js +188 -88
- package/runtime/node_modules/mediabunny/dist/modules/src/subtitles.js +15 -9
- package/runtime/node_modules/mediabunny/dist/modules/src/target.js +63 -39
- package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
- package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js +77 -41
- package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-muxer.js +83 -20
- package/runtime/node_modules/mediabunny/dist/modules/src/writer.js +4 -1
- package/runtime/node_modules/mediabunny/package.json +5 -4
- package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +76 -47
- package/runtime/node_modules/mediabunny/src/adts/adts-muxer.ts +13 -11
- package/runtime/node_modules/mediabunny/src/adts/adts-reader.ts +54 -5
- package/runtime/node_modules/mediabunny/src/codec-data.ts +249 -52
- package/runtime/node_modules/mediabunny/src/codec.ts +85 -58
- package/runtime/node_modules/mediabunny/src/conversion.ts +161 -94
- package/runtime/node_modules/mediabunny/src/decode.ts +15 -8
- package/runtime/node_modules/mediabunny/src/encode.ts +23 -14
- package/runtime/node_modules/mediabunny/src/flac/flac-demuxer.ts +21 -20
- package/runtime/node_modules/mediabunny/src/flac/flac-misc.ts +3 -2
- package/runtime/node_modules/mediabunny/src/flac/flac-muxer.ts +44 -29
- package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +161 -129
- package/runtime/node_modules/mediabunny/src/hls/hls-muxer.ts +453 -379
- package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +35 -24
- package/runtime/node_modules/mediabunny/src/id3.ts +123 -35
- package/runtime/node_modules/mediabunny/src/input-format.ts +86 -170
- package/runtime/node_modules/mediabunny/src/input-track.ts +57 -17
- package/runtime/node_modules/mediabunny/src/input.ts +41 -17
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +118 -21
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +435 -253
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-misc.ts +13 -4
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +318 -191
- package/runtime/node_modules/mediabunny/src/matroska/ebml.ts +91 -38
- package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +212 -103
- package/runtime/node_modules/mediabunny/src/matroska/matroska-muxer.ts +155 -148
- package/runtime/node_modules/mediabunny/src/media-sink.ts +229 -146
- package/runtime/node_modules/mediabunny/src/media-source.ts +263 -141
- package/runtime/node_modules/mediabunny/src/metadata.ts +7 -1
- package/runtime/node_modules/mediabunny/src/misc.ts +122 -54
- package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +121 -33
- package/runtime/node_modules/mediabunny/src/mp3/mp3-muxer.ts +16 -12
- package/runtime/node_modules/mediabunny/src/mp3/mp3-reader.ts +66 -2
- package/runtime/node_modules/mediabunny/src/mp3/mp3-writer.ts +11 -2
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +295 -325
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-misc.ts +5 -14
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +90 -51
- package/runtime/node_modules/mediabunny/src/muxer.ts +14 -1
- package/runtime/node_modules/mediabunny/src/ogg/ogg-demuxer.ts +92 -62
- package/runtime/node_modules/mediabunny/src/ogg/ogg-misc.ts +1 -1
- package/runtime/node_modules/mediabunny/src/ogg/ogg-muxer.ts +203 -88
- package/runtime/node_modules/mediabunny/src/output-format.ts +91 -7
- package/runtime/node_modules/mediabunny/src/output.ts +57 -30
- package/runtime/node_modules/mediabunny/src/packet.ts +1 -1
- package/runtime/node_modules/mediabunny/src/resample.ts +1 -0
- package/runtime/node_modules/mediabunny/src/sample.ts +105 -51
- package/runtime/node_modules/mediabunny/src/segmented-input.ts +50 -24
- package/runtime/node_modules/mediabunny/src/source.ts +227 -97
- package/runtime/node_modules/mediabunny/src/subtitles.ts +16 -9
- package/runtime/node_modules/mediabunny/src/target.ts +65 -41
- package/runtime/node_modules/mediabunny/src/version.ts +1 -1
- package/runtime/node_modules/mediabunny/src/wave/wave-demuxer.ts +103 -56
- package/runtime/node_modules/mediabunny/src/wave/wave-muxer.ts +88 -21
- package/runtime/node_modules/mediabunny/src/writer.ts +4 -1
- package/runtime/node_modules/sanitize-html/index.js +50 -20
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/css-syntax-error.js +6 -4
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/map-generator.js +12 -2
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/processor.js +1 -1
- package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/tokenize.js +6 -13
- package/runtime/node_modules/sanitize-html/node_modules/postcss/package.json +1 -1
- package/runtime/node_modules/sanitize-html/package.json +1 -1
- package/runtime/node_modules/ws/lib/websocket-server.js +3 -0
- package/runtime/node_modules/ws/lib/websocket.js +38 -7
- package/runtime/node_modules/ws/package.json +1 -1
- package/runtime/package-lock.json +195 -171
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/assets/AIHubView-DBOyOZzW.js +1 -0
- package/runtime/webapp/dist/assets/AgentManager-BLHvEA2d.js +3 -0
- package/runtime/webapp/dist/assets/{AiHubPane-DBuhzcId.js → AiHubPane-CWvL3HSl.js} +1 -1
- package/runtime/webapp/dist/assets/App-DGtdMfGk.js +179 -0
- package/runtime/webapp/dist/assets/BrowserLivePanel-Cl5kMDJF.js +56 -0
- package/runtime/webapp/dist/assets/CollaborationCreateDialog-DPs4doOz.js +1 -0
- package/runtime/webapp/dist/assets/CollaborationDashboard-ChUaJ5xA.js +1 -0
- package/runtime/webapp/dist/assets/CollaborationPage-Cg22tJGB.js +6 -0
- package/runtime/webapp/dist/assets/{FilePreview-CkY_jNql.js → FilePreview-BItgMeyP.js} +9 -14
- package/runtime/webapp/dist/assets/FileTree-t-YjjCDU.js +11 -0
- package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BnOoPJA6.js +1 -0
- package/runtime/webapp/dist/assets/FlowStudioPane-DHrpQpBA.js +5 -0
- package/runtime/webapp/dist/assets/LSPServerList-CB2Cwqw_.js +4 -0
- package/runtime/webapp/dist/assets/MCPServerList-DUpgIcHk.js +8 -0
- package/runtime/webapp/dist/assets/MemoryViewer-DCFueBdK.js +1 -0
- package/runtime/webapp/dist/assets/RemoteDesktopPage-DD9aNe8m.js +1 -0
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-BbgfV3Y9.js → RunningSessionsIcon-CKKjZfu_.js} +1 -1
- package/runtime/webapp/dist/assets/SessionDashboard-CCpxslxg.js +21 -0
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-DEUcW6SI.js → SessionDashboardBridge-DG1fQUEQ.js} +1 -1
- package/runtime/webapp/dist/assets/SettingsPanel-CA0Pj7qk.js +4 -0
- package/runtime/webapp/dist/assets/SkillManager-BzgAJlVW.js +1 -0
- package/runtime/webapp/dist/assets/{TerminalPane-BLqkE0Sr.js → TerminalPane-Bc4cGUmA.js} +2 -2
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DeYUTKWn.js → abnfDiagram-VCTEODGH-Dsp6XgB7.js} +1 -1
- package/runtime/webapp/dist/assets/arc-DROGDR5M.js +1 -0
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-CuFeRT7v.js → architectureDiagram-5GKGNRK7-S8c_fFRN.js} +1 -1
- package/runtime/webapp/dist/assets/{arrow-right-CBoNjLZc.js → arrow-right-CUDfCOna.js} +1 -1
- package/runtime/webapp/dist/assets/{artifact-links-DPEFlv87.js → artifact-links-C7zYRJaC.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-CSQFiZW1.js → blockDiagram-I7D4REHJ-DrTz3v2B.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-Dp0yNsZN.js → c4Diagram-7LVT6UL2-wuHRphdr.js} +1 -1
- package/runtime/webapp/dist/assets/channel-C_3UNQvo.js +1 -0
- package/runtime/webapp/dist/assets/{chevron-down-DqV6YJGE.js → chevron-down-fUU2ZKzR.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-HGRodfIv.js → chunk-2Q5K7J3B-BpV5cOX0.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-CBrQNVFD.js → chunk-5VM5RSS4-1_IZosIm.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-DB6uGYpD.js → chunk-F27PBJKO-IZ7w-WCZ.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-Dedjjkdt.js → chunk-IMKFNOWR-BuicwmZn.js} +3 -3
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-CFqPSTPh.js → chunk-JWPE2WC7-CfNSj3eC.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-3acvfPpy.js → chunk-POPQ4Y6H-Bxryudz4.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-Bn9tMxLG.js → chunk-SVP7TREG-DSZbEEd6.js} +3 -3
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-BjPHa9Ep.js → chunk-TICWLB2K-CHqUfDzl.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-pSIpAtkj.js → chunk-XXDRQBXY-CPbMDiSF.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-j9nJ5DUm.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-j9nJ5DUm.js +1 -0
- package/runtime/webapp/dist/assets/{codeSyntax-Bs__ElW1.js → codeSyntax-BENnBdX2.js} +3 -3
- package/runtime/webapp/dist/assets/{collaboration-xcnZxf7i.js → collaboration-DwgXZbHy.js} +1 -1
- package/runtime/webapp/dist/assets/composer-file-routing-CKLnrVkP.js +11 -0
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-Cc1ea8TO.js → cose-bilkent-JH36ORCC-BPzEzfJw.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-B2IeHhVa.js → cynefin-OW5HDTMX-BZgzPIdr.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-BeZhQnWx.js → cynefinDiagram-5FMLGOSQ-CyNjL-LN.js} +2 -2
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DF08UpVJ.js → dagre-GXQ25YYZ-QqLmAYnp.js} +2 -2
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-Cx_tPRJp.js → diagram-S7CK7UJ4-DrIIbhV6.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-Cb6fFvJt.js → diagram-UQ7AKVKN-B7JON90e.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-CvuweBru.js → diagram-VSXAHHWV-C1Fzjcgp.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-BYouVdoe.js → diagram-VX7I27RA-HmkXh54q.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-DRBjsxYw.js → diagram-Z3DM3KII-Ca5jnESS.js} +1 -1
- package/runtime/webapp/dist/assets/download-CKrjXoG9.js +6 -0
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-CxHOPzwg.js → ebnfDiagram-PWID7BFC-a3qnPIiF.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-tUK9K8ZD.js → erDiagram-RLTQ6QDP-EZKQ4NYt.js} +1 -1
- package/runtime/webapp/dist/assets/{external-link-DpecT7Vm.js → external-link-C9AwR_tM.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-CfFmgvNi.js → file-types-BlRT2KnS.js} +9 -4
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BFd8shzR.js → flowDiagram-HODETNUW-C4U9dCin.js} +5 -5
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-Dt3qJ3nR.js → ganttDiagram-EL5Y4UJY-B5iyiF0_.js} +2 -2
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-L22kw422.js → gitGraphDiagram-WWUBYQGX-D9CfK-tl.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-Bzr6FXFm.js → image-plus-DsCC5WAa.js} +1 -1
- package/runtime/webapp/dist/assets/{index-C165MF0E.js → index-DBNVLOBM.js} +53 -53
- package/runtime/webapp/dist/assets/index-DrzCwyPu.css +1 -0
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-DBrWW4hh.js → infoDiagram-27XIBGKW-DBcCijd6.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-BiQERurn.js → ishikawaDiagram-5VMMS53U-D_m8F4n9.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-CbuOAsvy.js → journeyDiagram-3NMN7TZE-4oy2R7XW.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-BS0cpYtD.js → kanban-definition-UXKFOSKX-O6jHSf0E.js} +5 -5
- package/runtime/webapp/dist/assets/layout-P82L_S-q.js +1 -0
- package/runtime/webapp/dist/assets/{linear-DOnDPVCl.js → linear-B-Cl5K73.js} +1 -1
- package/runtime/webapp/dist/assets/{loader-circle-DzxGeGeP.js → loader-circle--s-WzZxC.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-CIbk74HW.js → mermaid.core-BEmIap6p.js} +6 -6
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-BXA3aIva.js → mindmap-definition-YA3MSWOX-Bnlqql-j.js} +1 -1
- package/runtime/webapp/dist/assets/page-BtLq1udo.js +91 -0
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-oUTq5zGX.js → pegDiagram-XKGWAZYB-AbRjuoUM.js} +1 -1
- package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-5-ms1WT0.js +39 -0
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-BDJl9Tah.js → quadrantDiagram-AXDQQJYC-BXr5BqtQ.js} +2 -2
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-BCu1VCKA.js → railroadDiagram-O6MQD6OU-DqBC-aod.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-CqUIqsRU.js → requirementDiagram-BXWQKSXE-VOUcatZG.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-Bjr9jTxM.js → rotate-ccw-CSiD4c4O.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-A1YTnj9Q.js → rotate-cw-CclBpLSU.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-DaveIjpG.js → sankeyDiagram-P5KCCOFB-Bs23XmVr.js} +1 -1
- package/runtime/webapp/dist/assets/{send-BEl9srBG.js → send-CfzPXlfx.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-C7zRgFw8.js → sequenceDiagram-WJ2MYXX4-DO-oDX3L.js} +1 -1
- package/runtime/webapp/dist/assets/session-dashboard-D-0Cip5Y.js +6 -0
- package/runtime/webapp/dist/assets/{shield-check-C79GaqpX.js → shield-check-Dsex8w1k.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-BKOrYnP1.js → sizeCapture-INFHLROL-hCQ98eA9.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-DLODIaTQ.js +1 -0
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-CTpD-7Re.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-CbDMTwgn.js → swimlanes-42K2YHIH-B3Qg_5tW.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-v5rUeqtL.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-CanMvfCK.js → timeline-definition-24CTP7MA-BdFnRV4K.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-RnFgAyKW.js → trash-2-CZp_yMDT.js} +10 -5
- package/runtime/webapp/dist/assets/{types-DguAd3Ud.js → types-BWTyn3Bs.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-CR-V0-y3.js → vennDiagram-4TSXK5OY-CRU6BY1c.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-CjTtvx6s.js → wardleyDiagram-VM6X3IG4-CXK3g3al.js} +1 -1
- package/runtime/webapp/dist/assets/{web-DPag1EjS.js → web-Den_EYDz.js} +1 -1
- package/runtime/webapp/dist/assets/{web-DedGjdA8.js → web-JmfGsfI_.js} +1 -1
- package/runtime/webapp/dist/assets/{x-Bx8qOEL4.js → x-CLvev0bC.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-D2959gYR.js → xychartDiagram-S5SC5T6Z-CeISrKUm.js} +1 -1
- package/runtime/webapp/dist/assets/zoom-out-CSyjX26v.js +21 -0
- package/runtime/webapp/dist/index.html +18 -3
- package/runtime/ws-server.mjs +3 -6
- package/runtime/.next/server/chunks/1973.js +0 -1
- package/runtime/.next/static/chunks/50-0b6604ece6278dc2.js +0 -1
- package/runtime/.next/static/chunks/app/web/layout-62386960d8601cc2.js +0 -1
- package/runtime/.next/static/chunks/app/web/page-6b37d8153e607928.js +0 -1
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Info.plist +0 -13
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/MacOS/NativeAXBridge +0 -0
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Resources/agentroam-component.json +0 -4
- package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/_CodeSignature/CodeResources +0 -128
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/NativeAXBridge.swift +0 -240
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/codec.py +0 -133
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/native_sender.py +0 -445
- package/runtime/node_modules/@agent/messaging/dist/assets/wecom/reader.py +0 -309
- package/runtime/node_modules/@agent/messaging/dist/index.js +0 -1219
- package/runtime/node_modules/@agent/messaging/package.json +0 -7
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-8zdh6hy9.mjs +0 -45
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b5da77cd.mjs +0 -34
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-f2yzhw4m.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-j29a9c1a.mjs +0 -17
- package/runtime/node_modules/graceful-fs/LICENSE +0 -15
- package/runtime/webapp/dist/assets/App-D3-qxUjs.js +0 -187
- package/runtime/webapp/dist/assets/BrowserLivePanel-BywwOAML.js +0 -76
- package/runtime/webapp/dist/assets/CollaborationDashboard-DQeiZyu9.js +0 -1
- package/runtime/webapp/dist/assets/CollaborationPage-CGymkv8f.js +0 -16
- package/runtime/webapp/dist/assets/FileTree-W85iiqhO.js +0 -11
- package/runtime/webapp/dist/assets/FlowStudioPane-Ccp0FhYn.js +0 -5
- package/runtime/webapp/dist/assets/MessagingBridge-D_cArR8-.js +0 -6
- package/runtime/webapp/dist/assets/MessagingPage-BIgDwGgU.js +0 -7
- package/runtime/webapp/dist/assets/MessagingPage-CpRafjqY.css +0 -1
- package/runtime/webapp/dist/assets/RemoteDesktopPage-Di31a6s4.js +0 -1
- package/runtime/webapp/dist/assets/SessionDashboard-a7HETCwZ.js +0 -16
- package/runtime/webapp/dist/assets/arc-Fb_TLw7m.js +0 -1
- package/runtime/webapp/dist/assets/arrow-left-ChO37N0V.js +0 -6
- package/runtime/webapp/dist/assets/channel-CcOPsanj.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-De9Vn3qI.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-De9Vn3qI.js +0 -1
- package/runtime/webapp/dist/assets/index-IYQjHlQx.css +0 -1
- package/runtime/webapp/dist/assets/layout-C6lzLyIZ.js +0 -1
- package/runtime/webapp/dist/assets/page-oP1ftgSe.js +0 -91
- package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-CES_HFyS.js +0 -39
- package/runtime/webapp/dist/assets/search-rB9Vl5Kd.js +0 -6
- package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-Cz_WH93D.js +0 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dw9aybAU.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CZrm7vi4.js +0 -8
- package/runtime/webapp/dist/assets/use-error-notice-_MLy2aPZ.js +0 -11
- /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → 5l3_g1bKM6rXvoGoMh_OC}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → 5l3_g1bKM6rXvoGoMh_OC}/_ssgManifest.js +0 -0
- /package/runtime/webapp/dist/assets/{use-error-notice-CAYVDT8Z.css → SessionDashboard-CAYVDT8Z.css} +0 -0
- /package/runtime/webapp/dist/assets/{SessionDashboard-D3n4eFut.css → session-dashboard-D3n4eFut.css} +0 -0
|
@@ -50,6 +50,12 @@ const toHlsCodecString = (codecString: string) => {
|
|
|
50
50
|
if (codecString === 'opus') {
|
|
51
51
|
return 'Opus';
|
|
52
52
|
}
|
|
53
|
+
if (codecString === 'flac') {
|
|
54
|
+
return 'fLaC';
|
|
55
|
+
}
|
|
56
|
+
if (codecString === 'mp3' || codecString === 'mp4a.69' || codecString === 'mp4a.6B' || codecString === 'mp4a.6b') {
|
|
57
|
+
return 'mp4a.40.34';
|
|
58
|
+
}
|
|
53
59
|
|
|
54
60
|
return codecString;
|
|
55
61
|
};
|
|
@@ -58,8 +64,6 @@ type HlsTrackData = {
|
|
|
58
64
|
track: OutputTrack;
|
|
59
65
|
packets: EncodedPacket[];
|
|
60
66
|
playlist: Playlist;
|
|
61
|
-
// We must store it on the TrackData, reading it directly from the track leads to async race conditions!
|
|
62
|
-
closed: boolean;
|
|
63
67
|
info: {
|
|
64
68
|
type: 'video';
|
|
65
69
|
decoderConfig: VideoDecoderConfig;
|
|
@@ -139,6 +143,7 @@ export class HlsMuxer extends Muxer {
|
|
|
139
143
|
|
|
140
144
|
targetSegmentDuration: number;
|
|
141
145
|
trackDatas: HlsTrackData[] = [];
|
|
146
|
+
closedTracks = new Set<OutputTrack>();
|
|
142
147
|
singleFilePerPlaylist: boolean;
|
|
143
148
|
isLive: boolean;
|
|
144
149
|
maxLiveSegmentCount: number;
|
|
@@ -164,7 +169,7 @@ export class HlsMuxer extends Muxer {
|
|
|
164
169
|
this.isLive = format._options.live ?? false;
|
|
165
170
|
this.maxLiveSegmentCount = format._options.maxLiveSegmentCount ?? Infinity;
|
|
166
171
|
this.mediaTimestampBase = format._options.mediaTimestampBase ?? 10;
|
|
167
|
-
this.globalTargetDuration =
|
|
172
|
+
this.globalTargetDuration = 0;
|
|
168
173
|
|
|
169
174
|
this.getPlaylistPath = format._options.getPlaylistPath
|
|
170
175
|
?? (({ n }) => `playlist-${n}.m3u8`);
|
|
@@ -179,387 +184,402 @@ export class HlsMuxer extends Muxer {
|
|
|
179
184
|
async start(): Promise<void> {
|
|
180
185
|
const release = await this.mutex.acquire();
|
|
181
186
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
this.isRelativeToUnixEpoch = someRelative;
|
|
191
|
-
|
|
192
|
-
// Upon starting, we now need to assign the tracks to separate playlists. This assignment will make use of the
|
|
193
|
-
// track pairability information provided by the user as well as other metadata specified on the tracks. The
|
|
194
|
-
// resulting master playlist should preserve track pairability; meaning that all tracks that are pairable
|
|
195
|
-
// remain pairable, and no two tracks become pairable that are meant to be mutually exclusive.
|
|
196
|
-
// The algorithm determines "groups" by enumerating all pairable tracks for each track, and then materializes
|
|
197
|
-
// each group either as #EXT-X-MEDIA tags or top-level #EXT-X-STREAM-INF tags. The algorithm is biased towards
|
|
198
|
-
// video being the top-level grouping, since that's the standard practice.
|
|
199
|
-
|
|
200
|
-
const groupAssignment = new Map<OutputTrack, string[]>();
|
|
201
|
-
const groups: {
|
|
202
|
-
name: string;
|
|
203
|
-
key: string;
|
|
204
|
-
tracks: OutputTrack[];
|
|
205
|
-
needsEmit: boolean;
|
|
206
|
-
firstNoUri: boolean;
|
|
207
|
-
}[] = [];
|
|
208
|
-
|
|
209
|
-
let hasVideo = false;
|
|
210
|
-
let illegalPairingDetected = false;
|
|
211
|
-
let keyPacketsOnlyPairingWarned = false;
|
|
212
|
-
|
|
213
|
-
// First, let's build the "sibling" groups induced by track pairability
|
|
214
|
-
for (const track of this.output.tracks) {
|
|
215
|
-
if (track.type === 'video') {
|
|
216
|
-
hasVideo = true;
|
|
187
|
+
try {
|
|
188
|
+
const someRelative = this.output.tracks.some(t => t.metadata.isRelativeToUnixEpoch);
|
|
189
|
+
const someNotRelative = this.output.tracks.some(t => !t.metadata.isRelativeToUnixEpoch);
|
|
190
|
+
if (someRelative && someNotRelative) {
|
|
191
|
+
throw new Error(
|
|
192
|
+
'All tracks must agree on `relativeToUnixEpoch`: some tracks are relative to the Unix epoch and'
|
|
193
|
+
+ ' some are not.',
|
|
194
|
+
);
|
|
217
195
|
}
|
|
196
|
+
this.isRelativeToUnixEpoch = someRelative;
|
|
197
|
+
|
|
198
|
+
// Upon starting, we now need to assign the tracks to separate playlists. This assignment will make use of
|
|
199
|
+
// the track pairability information provided by the user as well as other metadata specified on the tracks.
|
|
200
|
+
// The resulting master playlist should preserve track pairability; meaning that all tracks that are
|
|
201
|
+
// pairable remain pairable, and no two tracks become pairable that are meant to be mutually exclusive.
|
|
202
|
+
// The algorithm determines "groups" by enumerating all pairable tracks for each track, and then
|
|
203
|
+
// materializes each group either as #EXT-X-MEDIA tags or top-level #EXT-X-STREAM-INF tags. The algorithm is
|
|
204
|
+
// biased towards video being the top-level grouping, since that's the standard practice.
|
|
205
|
+
|
|
206
|
+
const groupAssignment = new Map<OutputTrack, string[]>();
|
|
207
|
+
const groups: {
|
|
208
|
+
name: string;
|
|
209
|
+
key: string;
|
|
210
|
+
tracks: OutputTrack[];
|
|
211
|
+
needsEmit: boolean;
|
|
212
|
+
firstNoUri: boolean;
|
|
213
|
+
}[] = [];
|
|
214
|
+
|
|
215
|
+
let hasVideo = false;
|
|
216
|
+
let illegalPairingDetected = false;
|
|
217
|
+
let keyPacketsOnlyPairingWarned = false;
|
|
218
|
+
|
|
219
|
+
// First, let's build the "sibling" groups induced by track pairability
|
|
220
|
+
for (const track of this.output.tracks) {
|
|
221
|
+
if (track.type === 'video') {
|
|
222
|
+
hasVideo = true;
|
|
223
|
+
}
|
|
218
224
|
|
|
219
|
-
|
|
225
|
+
const pairableGroups = new Map<MediaCodec, OutputTrack[]>();
|
|
220
226
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
227
|
+
for (const otherTrack of this.output.tracks) {
|
|
228
|
+
if (track === otherTrack) {
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
225
231
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
232
|
+
if (!track.canBePairedWith(otherTrack)) {
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
229
235
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
236
|
+
if (track.type === otherTrack.type) {
|
|
237
|
+
if (!illegalPairingDetected) {
|
|
238
|
+
Logging._warn(
|
|
239
|
+
`Illegal pairing of two ${track.type} tracks detected, which is not possible in HLS;`
|
|
240
|
+
+ ` treating them as unpaired.`,
|
|
241
|
+
);
|
|
242
|
+
illegalPairingDetected = true;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
continue;
|
|
237
246
|
}
|
|
238
247
|
|
|
239
|
-
|
|
240
|
-
|
|
248
|
+
// Key-packets-only tracks can neither pair with nor be paired with other tracks
|
|
249
|
+
if (
|
|
250
|
+
(track.isVideoTrack() && track.metadata.hasOnlyKeyPackets)
|
|
251
|
+
|| (otherTrack.isVideoTrack() && otherTrack.metadata.hasOnlyKeyPackets)
|
|
252
|
+
) {
|
|
253
|
+
if (!keyPacketsOnlyPairingWarned) {
|
|
254
|
+
Logging._warn(
|
|
255
|
+
`A key-packets-only video track is pairable with another track, which is not`
|
|
256
|
+
+ ` possible in HLS; treating them as unpaired.`,
|
|
257
|
+
);
|
|
258
|
+
keyPacketsOnlyPairingWarned = true;
|
|
259
|
+
}
|
|
241
260
|
|
|
242
|
-
|
|
243
|
-
if (
|
|
244
|
-
(track.isVideoTrack() && track.metadata.hasOnlyKeyPackets)
|
|
245
|
-
|| (otherTrack.isVideoTrack() && otherTrack.metadata.hasOnlyKeyPackets)
|
|
246
|
-
) {
|
|
247
|
-
if (!keyPacketsOnlyPairingWarned) {
|
|
248
|
-
Logging._warn(
|
|
249
|
-
`A key-packets-only video track is pairable with another track, which is not`
|
|
250
|
-
+ ` possible in HLS; treating them as unpaired.`,
|
|
251
|
-
);
|
|
252
|
-
keyPacketsOnlyPairingWarned = true;
|
|
261
|
+
continue;
|
|
253
262
|
}
|
|
254
263
|
|
|
255
|
-
|
|
256
|
-
|
|
264
|
+
let groupTracks = pairableGroups.get(otherTrack.source._codec);
|
|
265
|
+
if (!groupTracks) {
|
|
266
|
+
pairableGroups.set(otherTrack.source._codec, groupTracks = []);
|
|
267
|
+
}
|
|
257
268
|
|
|
258
|
-
|
|
259
|
-
if (!groupTracks) {
|
|
260
|
-
pairableGroups.set(otherTrack.source._codec, groupTracks = []);
|
|
269
|
+
groupTracks.push(otherTrack);
|
|
261
270
|
}
|
|
262
271
|
|
|
263
|
-
|
|
264
|
-
|
|
272
|
+
for (const [, pairableTracks] of pairableGroups) {
|
|
273
|
+
const key = pairableTracks.map(x => x.id).join('-');
|
|
274
|
+
const group = groups.find(x => x.key === key);
|
|
275
|
+
if (!group) {
|
|
276
|
+
groups.push({
|
|
277
|
+
name: pairableTracks[0]!.type + '-' + (groups.length + 1),
|
|
278
|
+
key,
|
|
279
|
+
tracks: pairableTracks,
|
|
280
|
+
needsEmit: false,
|
|
281
|
+
firstNoUri: false,
|
|
282
|
+
});
|
|
283
|
+
}
|
|
265
284
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
name: pairableTracks[0]!.type + '-' + (groups.length + 1),
|
|
272
|
-
key,
|
|
273
|
-
tracks: pairableTracks,
|
|
274
|
-
needsEmit: false,
|
|
275
|
-
firstNoUri: false,
|
|
276
|
-
});
|
|
285
|
+
let assignedGroups = groupAssignment.get(track);
|
|
286
|
+
if (!assignedGroups) {
|
|
287
|
+
groupAssignment.set(track, assignedGroups = []);
|
|
288
|
+
}
|
|
289
|
+
assignedGroups.push(key);
|
|
277
290
|
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
const mainType: TrackType = hasVideo ? 'video' : 'audio';
|
|
294
|
+
|
|
295
|
+
const variantStreams: {
|
|
296
|
+
tracks: OutputTrack[];
|
|
297
|
+
linkedGroup: typeof groups[number] | null;
|
|
298
|
+
}[] = [];
|
|
278
299
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
300
|
+
const unpairedVideoTracks: OutputTrack[] = [];
|
|
301
|
+
const unpairedAudioTracks: OutputTrack[] = [];
|
|
302
|
+
|
|
303
|
+
const deduceSegmentFormat = (tracks: OutputTrack[]) => {
|
|
304
|
+
const codecs: MediaCodec[] = [];
|
|
305
|
+
let videoCount = 0;
|
|
306
|
+
let audioCount = 0;
|
|
307
|
+
let requiresTransformationMetadata = false;
|
|
308
|
+
|
|
309
|
+
let candidate: OutputFormat | null = null;
|
|
310
|
+
let candidateScore = -Infinity;
|
|
311
|
+
|
|
312
|
+
for (const track of tracks) {
|
|
313
|
+
if (track.isVideoTrack()) {
|
|
314
|
+
videoCount++;
|
|
315
|
+
requiresTransformationMetadata ||= (track.metadata.rotation ?? 0) !== 0
|
|
316
|
+
|| !!track.metadata.flip
|
|
317
|
+
|| !!track.metadata.transformationMatrix;
|
|
318
|
+
} else if (track.isAudioTrack()) {
|
|
319
|
+
audioCount++;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
codecs.push(track.source._codec);
|
|
282
323
|
}
|
|
283
|
-
assignedGroups.push(key);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
324
|
|
|
287
|
-
|
|
325
|
+
for (const format of toArray(this.format._options.segmentFormat)) {
|
|
326
|
+
const supportedCodecs = format.getSupportedCodecs();
|
|
327
|
+
const trackCounts = format.getSupportedTrackCounts();
|
|
288
328
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
}[] = [];
|
|
329
|
+
if (codecs.some(codec => !supportedCodecs.includes(codec))) {
|
|
330
|
+
continue;
|
|
331
|
+
}
|
|
293
332
|
|
|
294
|
-
|
|
295
|
-
|
|
333
|
+
if (videoCount < trackCounts.video.min || videoCount > trackCounts.video.max) {
|
|
334
|
+
continue;
|
|
335
|
+
}
|
|
296
336
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
if (assignedGroupKeys) {
|
|
301
|
-
assert(assignedGroupKeys.length > 0);
|
|
337
|
+
if (audioCount < trackCounts.audio.min || audioCount > trackCounts.audio.max) {
|
|
338
|
+
continue;
|
|
339
|
+
}
|
|
302
340
|
|
|
303
|
-
|
|
304
|
-
|
|
341
|
+
let score = 0;
|
|
342
|
+
if (requiresTransformationMetadata && format.supportsVideoTransformationMetadata) {
|
|
343
|
+
score++;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
if (score > candidateScore) {
|
|
347
|
+
candidate = format;
|
|
348
|
+
candidateScore = score;
|
|
349
|
+
}
|
|
305
350
|
}
|
|
306
351
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
assert(group);
|
|
352
|
+
return candidate;
|
|
353
|
+
};
|
|
310
354
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
355
|
+
// Now, create the top-level variant streams
|
|
356
|
+
for (const track of this.output.tracks) {
|
|
357
|
+
const assignedGroupKeys = groupAssignment.get(track);
|
|
358
|
+
if (assignedGroupKeys) {
|
|
359
|
+
assert(assignedGroupKeys.length > 0);
|
|
314
360
|
|
|
315
|
-
|
|
316
|
-
|
|
361
|
+
if (track.type !== mainType) {
|
|
362
|
+
continue;
|
|
363
|
+
}
|
|
317
364
|
|
|
318
|
-
|
|
319
|
-
|
|
365
|
+
for (const key of assignedGroupKeys) {
|
|
366
|
+
const group = groups.find(x => x.key === key);
|
|
367
|
+
assert(group);
|
|
320
368
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
369
|
+
if (assignedGroupKeys.length === 1 && group.tracks.length === 1) {
|
|
370
|
+
const otherGroupKeys = groupAssignment.get(group.tracks[0]!);
|
|
371
|
+
assert(otherGroupKeys !== undefined);
|
|
372
|
+
|
|
373
|
+
if (otherGroupKeys.length === 1) {
|
|
374
|
+
const otherGroup = groups.find(x => x.key === otherGroupKeys[0]!)!;
|
|
375
|
+
|
|
376
|
+
if (otherGroup.tracks.length === 1) {
|
|
377
|
+
assert(otherGroup.tracks[0] === track);
|
|
378
|
+
|
|
379
|
+
const canSharePlaylist = !!deduceSegmentFormat([track, group.tracks[0]!]);
|
|
380
|
+
if (canSharePlaylist) {
|
|
381
|
+
variantStreams.push({
|
|
382
|
+
tracks: [track, group.tracks[0]!],
|
|
383
|
+
linkedGroup: null,
|
|
384
|
+
});
|
|
385
|
+
continue;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
326
388
|
}
|
|
327
389
|
}
|
|
328
|
-
}
|
|
329
390
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
391
|
+
variantStreams.push({
|
|
392
|
+
tracks: [track],
|
|
393
|
+
linkedGroup: group,
|
|
394
|
+
});
|
|
395
|
+
group.needsEmit = true;
|
|
396
|
+
}
|
|
397
|
+
} else {
|
|
398
|
+
if (track.type === 'video') {
|
|
399
|
+
unpairedVideoTracks.push(track);
|
|
400
|
+
} else if (track.type === 'audio') {
|
|
401
|
+
unpairedAudioTracks.push(track);
|
|
402
|
+
}
|
|
341
403
|
}
|
|
342
404
|
}
|
|
343
|
-
}
|
|
344
405
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
406
|
+
const getMetadataKeyForTrack = ({ metadata }: OutputTrack) => {
|
|
407
|
+
let key = '';
|
|
408
|
+
key += `${metadata.languageCode ?? UNDETERMINED_LANGUAGE}-`;
|
|
409
|
+
key += `${metadata.name ?? ''}-`;
|
|
410
|
+
key += `${metadata.disposition?.default ?? true}-`;
|
|
411
|
+
key += `${metadata.disposition?.primary ?? false}-`;
|
|
412
|
+
key += `${metadata.disposition?.forced ?? false}-`;
|
|
352
413
|
|
|
353
|
-
|
|
354
|
-
|
|
414
|
+
return key;
|
|
415
|
+
};
|
|
355
416
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
417
|
+
// Video tracks that can't be paired with any other track always live on the top-level, the question is just
|
|
418
|
+
// if they need to be separated into #EXT-X-MEDIA tags or not
|
|
419
|
+
if (unpairedVideoTracks.length > 0) {
|
|
420
|
+
// Key-packets-only tracks are standalone I-frame streams, so they can't be renditions within a group
|
|
421
|
+
const iFrameTracks = unpairedVideoTracks.filter(x => x.isVideoTrack() && x.metadata.hasOnlyKeyPackets);
|
|
422
|
+
const groupableTracks = unpairedVideoTracks.filter(x => !iFrameTracks.includes(x));
|
|
423
|
+
const uniqueMetadata = new Set(groupableTracks.map(getMetadataKeyForTrack));
|
|
424
|
+
|
|
425
|
+
if (uniqueMetadata.size > 1) {
|
|
426
|
+
// They differ in metadata, emit as group
|
|
427
|
+
const group: typeof groups[number] = {
|
|
428
|
+
key: groupableTracks.map(x => x.id).join('-'),
|
|
429
|
+
name: 'video-' + (groups.length + 1),
|
|
430
|
+
tracks: groupableTracks,
|
|
431
|
+
needsEmit: true,
|
|
432
|
+
firstNoUri: true,
|
|
433
|
+
};
|
|
434
|
+
groups.push(group);
|
|
371
435
|
|
|
372
|
-
variantStreams.push({
|
|
373
|
-
tracks: [unpairedVideoTracks[0]!],
|
|
374
|
-
linkedGroup: group,
|
|
375
|
-
});
|
|
376
|
-
} else {
|
|
377
|
-
for (const track of unpairedVideoTracks) {
|
|
378
436
|
variantStreams.push({
|
|
379
|
-
tracks: [
|
|
380
|
-
linkedGroup:
|
|
437
|
+
tracks: [groupableTracks[0]!],
|
|
438
|
+
linkedGroup: group,
|
|
381
439
|
});
|
|
440
|
+
|
|
441
|
+
for (const track of iFrameTracks) {
|
|
442
|
+
variantStreams.push({
|
|
443
|
+
tracks: [track],
|
|
444
|
+
linkedGroup: null,
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
} else {
|
|
448
|
+
for (const track of unpairedVideoTracks) {
|
|
449
|
+
variantStreams.push({
|
|
450
|
+
tracks: [track],
|
|
451
|
+
linkedGroup: null,
|
|
452
|
+
});
|
|
453
|
+
}
|
|
382
454
|
}
|
|
383
455
|
}
|
|
384
|
-
}
|
|
385
456
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
457
|
+
// Audio tracks that can't be paired with any other track always live on the top-level, the question is just
|
|
458
|
+
// if they need to be separated into #EXT-X-MEDIA tags or not
|
|
459
|
+
if (unpairedAudioTracks.length > 0) {
|
|
460
|
+
const uniqueMetadata = new Set(unpairedAudioTracks.map(getMetadataKeyForTrack));
|
|
461
|
+
|
|
462
|
+
if (uniqueMetadata.size > 1) {
|
|
463
|
+
// They differ in metadata, emit as group
|
|
464
|
+
const group: typeof groups[number] = {
|
|
465
|
+
key: unpairedAudioTracks.map(x => x.id).join('-'),
|
|
466
|
+
name: 'audio-' + (groups.length + 1),
|
|
467
|
+
tracks: unpairedAudioTracks,
|
|
468
|
+
needsEmit: true,
|
|
469
|
+
firstNoUri: true,
|
|
470
|
+
};
|
|
471
|
+
groups.push(group);
|
|
401
472
|
|
|
402
|
-
variantStreams.push({
|
|
403
|
-
tracks: [unpairedAudioTracks[0]!],
|
|
404
|
-
linkedGroup: group,
|
|
405
|
-
});
|
|
406
|
-
} else {
|
|
407
|
-
for (const track of unpairedAudioTracks) {
|
|
408
473
|
variantStreams.push({
|
|
409
|
-
tracks: [
|
|
410
|
-
linkedGroup:
|
|
474
|
+
tracks: [unpairedAudioTracks[0]!],
|
|
475
|
+
linkedGroup: group,
|
|
411
476
|
});
|
|
477
|
+
} else {
|
|
478
|
+
for (const track of unpairedAudioTracks) {
|
|
479
|
+
variantStreams.push({
|
|
480
|
+
tracks: [track],
|
|
481
|
+
linkedGroup: null,
|
|
482
|
+
});
|
|
483
|
+
}
|
|
412
484
|
}
|
|
413
485
|
}
|
|
414
|
-
}
|
|
415
486
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
let requiresTransformationMetadata = false;
|
|
421
|
-
|
|
422
|
-
let candidate: OutputFormat | null = null;
|
|
423
|
-
let candidateScore = -Infinity;
|
|
424
|
-
|
|
425
|
-
for (const track of tracks) {
|
|
426
|
-
if (track.isVideoTrack()) {
|
|
427
|
-
videoCount++;
|
|
428
|
-
requiresTransformationMetadata ||= (track.metadata.rotation ?? 0) !== 0
|
|
429
|
-
|| !!track.metadata.flip
|
|
430
|
-
|| !!track.metadata.transformationMatrix;
|
|
431
|
-
} else if (track.isAudioTrack()) {
|
|
432
|
-
audioCount++;
|
|
487
|
+
const registerPlaylist = async (tracks: OutputTrack[]) => {
|
|
488
|
+
if (tracks.some(track => this.playlists.some(playlist => playlist.tracks.includes(track)))) {
|
|
489
|
+
// Should be unreachable
|
|
490
|
+
throw new Error('Internal error: track is already registered in a playlist.');
|
|
433
491
|
}
|
|
434
492
|
|
|
435
|
-
|
|
436
|
-
|
|
493
|
+
const format = deduceSegmentFormat(tracks);
|
|
494
|
+
// We must find a format. If no format is found, that means we incorrectly gated track creation and
|
|
495
|
+
// assignment at an earlier step.
|
|
496
|
+
assert(format);
|
|
437
497
|
|
|
438
|
-
|
|
439
|
-
const
|
|
440
|
-
|
|
498
|
+
const id = this.playlists.length + 1;
|
|
499
|
+
const path = await this.getPlaylistPath({
|
|
500
|
+
n: id,
|
|
501
|
+
tracks,
|
|
502
|
+
segmentFormat: format,
|
|
503
|
+
});
|
|
504
|
+
validatePlaylistPath(path);
|
|
505
|
+
|
|
506
|
+
const playlist: Playlist = {
|
|
507
|
+
id: this.playlists.length + 1,
|
|
508
|
+
path,
|
|
509
|
+
tracks,
|
|
510
|
+
segmentFormat: format,
|
|
511
|
+
currentSegmentStartTimestamp: null,
|
|
512
|
+
currentSegmentStartTimestampIsFixed: false,
|
|
513
|
+
nextSegmentId: 1,
|
|
514
|
+
initSegment: null,
|
|
515
|
+
writtenSegments: [],
|
|
516
|
+
peakBitrate: null,
|
|
517
|
+
averageBitrate: null,
|
|
518
|
+
mediaSequence: 0,
|
|
519
|
+
done: false,
|
|
520
|
+
singleFile: null,
|
|
521
|
+
mutex: new AsyncMutex(),
|
|
522
|
+
};
|
|
523
|
+
this.playlists.push(playlist);
|
|
441
524
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
}
|
|
525
|
+
return playlist;
|
|
526
|
+
};
|
|
445
527
|
|
|
446
|
-
|
|
528
|
+
// Now, finally let's create all declarations. Each declaration maps to one #EXT-X-MEDIA or
|
|
529
|
+
// #EXT-X-STREAM-INF tag in the final master playlist.
|
|
530
|
+
for (const group of groups) {
|
|
531
|
+
if (!group.needsEmit) {
|
|
447
532
|
continue;
|
|
448
533
|
}
|
|
449
534
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
}
|
|
535
|
+
for (let i = 0; i < group.tracks.length; i++) {
|
|
536
|
+
const track = group.tracks[i]!;
|
|
453
537
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
score++;
|
|
457
|
-
}
|
|
538
|
+
let playlist = this.playlists.find(x => x.tracks[0]!.id === track.id);
|
|
539
|
+
playlist ??= await registerPlaylist([track]);
|
|
458
540
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
541
|
+
this.playlistDeclarations.push({
|
|
542
|
+
playlist,
|
|
543
|
+
groupId: group.name,
|
|
544
|
+
noUri: group.firstNoUri && i === 0,
|
|
545
|
+
references: [],
|
|
546
|
+
});
|
|
462
547
|
}
|
|
463
548
|
}
|
|
464
549
|
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
return candidate;
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
const registerPlaylist = async (tracks: OutputTrack[]) => {
|
|
473
|
-
if (tracks.some(track => this.playlists.some(playlist => playlist.tracks.includes(track)))) {
|
|
474
|
-
throw new Error('Internal error: track is already registered in a playlist.'); // Should be unreachable
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
const format = deduceSegmentFormat(tracks);
|
|
478
|
-
|
|
479
|
-
const id = this.playlists.length + 1;
|
|
480
|
-
const path = await this.getPlaylistPath({
|
|
481
|
-
n: id,
|
|
482
|
-
tracks,
|
|
483
|
-
segmentFormat: format,
|
|
484
|
-
});
|
|
485
|
-
validatePlaylistPath(path);
|
|
486
|
-
|
|
487
|
-
const playlist: Playlist = {
|
|
488
|
-
id: this.playlists.length + 1,
|
|
489
|
-
path,
|
|
490
|
-
tracks,
|
|
491
|
-
segmentFormat: format,
|
|
492
|
-
currentSegmentStartTimestamp: null,
|
|
493
|
-
currentSegmentStartTimestampIsFixed: false,
|
|
494
|
-
nextSegmentId: 1,
|
|
495
|
-
initSegment: null,
|
|
496
|
-
writtenSegments: [],
|
|
497
|
-
peakBitrate: null,
|
|
498
|
-
averageBitrate: null,
|
|
499
|
-
mediaSequence: 0,
|
|
500
|
-
done: false,
|
|
501
|
-
singleFile: null,
|
|
502
|
-
mutex: new AsyncMutex(),
|
|
503
|
-
};
|
|
504
|
-
this.playlists.push(playlist);
|
|
505
|
-
|
|
506
|
-
return playlist;
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
// Now, finally let's create all declarations. Each declaration maps to one #EXT-X-MEDIA or #EXT-X-STREAM-INF
|
|
510
|
-
// tag in the final master playlist.
|
|
511
|
-
for (const group of groups) {
|
|
512
|
-
if (!group.needsEmit) {
|
|
513
|
-
continue;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
for (let i = 0; i < group.tracks.length; i++) {
|
|
517
|
-
const track = group.tracks[i]!;
|
|
518
|
-
|
|
519
|
-
let playlist = this.playlists.find(x => x.tracks[0]!.id === track.id);
|
|
520
|
-
playlist ??= await registerPlaylist([track]);
|
|
550
|
+
for (const variant of variantStreams) {
|
|
551
|
+
// Since tracks can only be assigned to one playlist, the first track's ID acts as a "playlist key"
|
|
552
|
+
let playlist = this.playlists.find(x => x.tracks[0]!.id === variant.tracks[0]!.id);
|
|
553
|
+
playlist ??= await registerPlaylist(variant.tracks);
|
|
521
554
|
|
|
522
555
|
this.playlistDeclarations.push({
|
|
523
556
|
playlist,
|
|
524
|
-
groupId:
|
|
525
|
-
noUri:
|
|
526
|
-
references:
|
|
557
|
+
groupId: null,
|
|
558
|
+
noUri: false,
|
|
559
|
+
references: variant.linkedGroup
|
|
560
|
+
? this.playlistDeclarations.filter(x => x.groupId === variant.linkedGroup!.name)
|
|
561
|
+
: [],
|
|
527
562
|
});
|
|
528
563
|
}
|
|
529
|
-
}
|
|
530
564
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
for (const track of this.output.tracks) {
|
|
547
|
-
if (track.isVideoTrack() && track.metadata.decoderConfig) {
|
|
548
|
-
this.getVideoTrackData(
|
|
549
|
-
track,
|
|
550
|
-
track.metadata.primingPacket ?? null,
|
|
551
|
-
{ decoderConfig: track.metadata.decoderConfig },
|
|
552
|
-
);
|
|
553
|
-
} else if (track.isAudioTrack() && track.metadata.decoderConfig) {
|
|
554
|
-
this.getAudioTrackData(
|
|
555
|
-
track,
|
|
556
|
-
track.metadata.primingPacket ?? null,
|
|
557
|
-
{ decoderConfig: track.metadata.decoderConfig },
|
|
558
|
-
);
|
|
565
|
+
for (const track of this.output.tracks) {
|
|
566
|
+
if (track.isVideoTrack() && track.metadata.decoderConfig) {
|
|
567
|
+
this.getVideoTrackData(
|
|
568
|
+
track,
|
|
569
|
+
track.metadata.primingPacket ?? null,
|
|
570
|
+
{ decoderConfig: track.metadata.decoderConfig },
|
|
571
|
+
);
|
|
572
|
+
} else if (track.isAudioTrack() && track.metadata.decoderConfig) {
|
|
573
|
+
this.getAudioTrackData(
|
|
574
|
+
track,
|
|
575
|
+
track.metadata.primingPacket ?? null,
|
|
576
|
+
{ decoderConfig: track.metadata.decoderConfig },
|
|
577
|
+
);
|
|
578
|
+
}
|
|
559
579
|
}
|
|
580
|
+
} finally {
|
|
581
|
+
release();
|
|
560
582
|
}
|
|
561
|
-
|
|
562
|
-
release();
|
|
563
583
|
}
|
|
564
584
|
|
|
565
585
|
async getMimeType(): Promise<string> {
|
|
@@ -568,7 +588,7 @@ export class HlsMuxer extends Muxer {
|
|
|
568
588
|
|
|
569
589
|
private allTracksAreKnown(playlist: Playlist) {
|
|
570
590
|
for (const track of playlist.tracks) {
|
|
571
|
-
if (!
|
|
591
|
+
if (!this.closedTracks.has(track) && !this.trackDatas.some(x => x.track === track)) {
|
|
572
592
|
return false; // We haven't seen a sample from this open track yet
|
|
573
593
|
}
|
|
574
594
|
}
|
|
@@ -576,20 +596,20 @@ export class HlsMuxer extends Muxer {
|
|
|
576
596
|
return true;
|
|
577
597
|
}
|
|
578
598
|
|
|
579
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
580
599
|
override async onTrackClose(track: OutputTrack) {
|
|
581
|
-
const trackData = this.trackDatas.find(x => x.track === track);
|
|
582
|
-
if (trackData) {
|
|
583
|
-
trackData.closed = true;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
600
|
const playlist = this.playlists.find(x => x.tracks.includes(track));
|
|
587
601
|
assert(playlist); // If there isn't one then the assignment algo failed innit
|
|
588
602
|
|
|
589
603
|
const release = await playlist.mutex.acquire();
|
|
590
604
|
|
|
591
605
|
try {
|
|
592
|
-
|
|
606
|
+
this.closedTracks.add(track);
|
|
607
|
+
|
|
608
|
+
// Another track of the playlist may have closed alongside this one and already finished the playlist,
|
|
609
|
+
// hence this check
|
|
610
|
+
if (!playlist.done) {
|
|
611
|
+
await this.advancePlaylist(playlist);
|
|
612
|
+
}
|
|
593
613
|
} finally {
|
|
594
614
|
release();
|
|
595
615
|
}
|
|
@@ -613,7 +633,6 @@ export class HlsMuxer extends Muxer {
|
|
|
613
633
|
track,
|
|
614
634
|
packets: [],
|
|
615
635
|
playlist: playlists[0]!,
|
|
616
|
-
closed: false,
|
|
617
636
|
info: {
|
|
618
637
|
type: 'video',
|
|
619
638
|
decoderConfig: meta.decoderConfig,
|
|
@@ -643,7 +662,6 @@ export class HlsMuxer extends Muxer {
|
|
|
643
662
|
track,
|
|
644
663
|
packets: [],
|
|
645
664
|
playlist: playlists[0]!,
|
|
646
|
-
closed: false,
|
|
647
665
|
info: {
|
|
648
666
|
type: 'audio',
|
|
649
667
|
decoderConfig: meta.decoderConfig,
|
|
@@ -734,11 +752,12 @@ export class HlsMuxer extends Muxer {
|
|
|
734
752
|
}
|
|
735
753
|
|
|
736
754
|
const trackDatas = this.trackDatas.filter(x => playlist.tracks.includes(x.track));
|
|
755
|
+
const allClosed = trackDatas.every(x => this.closedTracks.has(x.track));
|
|
737
756
|
|
|
738
757
|
if (playlist.currentSegmentStartTimestamp === null) {
|
|
739
758
|
// All tracks are known but we never received any data. Tracks that declared themselves up front are known
|
|
740
759
|
// before their first packet, so we can only call it a day once they're actually closed.
|
|
741
|
-
if (
|
|
760
|
+
if (allClosed) {
|
|
742
761
|
await this.onPlaylistDone(playlist);
|
|
743
762
|
}
|
|
744
763
|
|
|
@@ -747,6 +766,13 @@ export class HlsMuxer extends Muxer {
|
|
|
747
766
|
|
|
748
767
|
const videoTrack = trackDatas.find(x => x.info.type === 'video') as HlsVideoTrackData | undefined;
|
|
749
768
|
const audioTrack = trackDatas.find(x => x.info.type === 'audio') as HlsAudioTrackData | undefined;
|
|
769
|
+
const videoTrackIsClosed = !!videoTrack && this.closedTracks.has(videoTrack.track);
|
|
770
|
+
const audioTrackIsClosed = !!audioTrack && this.closedTracks.has(audioTrack.track);
|
|
771
|
+
|
|
772
|
+
// RFC 8216: "The EXT-X-I-FRAMES-ONLY tag indicates that each Media Segment in the Playlist describes a
|
|
773
|
+
// single I-frame"
|
|
774
|
+
const isKeyPacketsOnly = playlist.tracks[0]!.isVideoTrack()
|
|
775
|
+
&& playlist.tracks[0].metadata.hasOnlyKeyPackets;
|
|
750
776
|
|
|
751
777
|
// Loop in case we can finalize multiple segments
|
|
752
778
|
while (true) {
|
|
@@ -767,15 +793,15 @@ export class HlsMuxer extends Muxer {
|
|
|
767
793
|
let videoEndIndex = 0;
|
|
768
794
|
let audioEndIndex = 0;
|
|
769
795
|
|
|
770
|
-
if (videoTrack && (!
|
|
796
|
+
if (videoTrack && (!videoTrackIsClosed || videoTrack.packets.length > 0)) {
|
|
771
797
|
// A video track is active (and maybe an audio track too)
|
|
772
798
|
const allBelow = videoTrack.packets.every(x => x.timestamp < currentSegmentEndTimestamp);
|
|
773
799
|
|
|
774
800
|
let bestKeyPacket: EncodedPacket | null = null;
|
|
775
801
|
let bestKeyPacketIndex: number | null = null;
|
|
776
802
|
|
|
777
|
-
if (allBelow) {
|
|
778
|
-
if (!
|
|
803
|
+
if (allBelow && !isKeyPacketsOnly) {
|
|
804
|
+
if (!videoTrackIsClosed) {
|
|
779
805
|
// Not enough data yet
|
|
780
806
|
return;
|
|
781
807
|
}
|
|
@@ -791,6 +817,10 @@ export class HlsMuxer extends Muxer {
|
|
|
791
817
|
if (i > 0 && packet.type === 'key') {
|
|
792
818
|
bestKeyPacket = packet;
|
|
793
819
|
bestKeyPacketIndex = i;
|
|
820
|
+
|
|
821
|
+
if (isKeyPacketsOnly) {
|
|
822
|
+
break;
|
|
823
|
+
}
|
|
794
824
|
}
|
|
795
825
|
}
|
|
796
826
|
}
|
|
@@ -804,7 +834,7 @@ export class HlsMuxer extends Muxer {
|
|
|
804
834
|
if (index !== -1) {
|
|
805
835
|
audioEndIndex = index;
|
|
806
836
|
} else {
|
|
807
|
-
if (
|
|
837
|
+
if (audioTrackIsClosed) {
|
|
808
838
|
audioEndIndex = audioTrack.packets.length;
|
|
809
839
|
} else {
|
|
810
840
|
return;
|
|
@@ -812,7 +842,7 @@ export class HlsMuxer extends Muxer {
|
|
|
812
842
|
}
|
|
813
843
|
}
|
|
814
844
|
} else {
|
|
815
|
-
if (!
|
|
845
|
+
if (!videoTrackIsClosed) {
|
|
816
846
|
return;
|
|
817
847
|
}
|
|
818
848
|
|
|
@@ -829,7 +859,7 @@ export class HlsMuxer extends Muxer {
|
|
|
829
859
|
if (index !== -1) {
|
|
830
860
|
audioEndIndex = index;
|
|
831
861
|
} else {
|
|
832
|
-
if (
|
|
862
|
+
if (audioTrackIsClosed) {
|
|
833
863
|
audioEndIndex = audioTrack.packets.length;
|
|
834
864
|
} else {
|
|
835
865
|
return;
|
|
@@ -841,7 +871,7 @@ export class HlsMuxer extends Muxer {
|
|
|
841
871
|
if (index !== -1) {
|
|
842
872
|
audioEndIndex = index;
|
|
843
873
|
} else {
|
|
844
|
-
if (
|
|
874
|
+
if (audioTrackIsClosed) {
|
|
845
875
|
audioEndIndex = audioTrack.packets.length;
|
|
846
876
|
} else {
|
|
847
877
|
return;
|
|
@@ -850,13 +880,13 @@ export class HlsMuxer extends Muxer {
|
|
|
850
880
|
}
|
|
851
881
|
}
|
|
852
882
|
}
|
|
853
|
-
} else if (audioTrack && (!
|
|
883
|
+
} else if (audioTrack && (!audioTrackIsClosed || audioTrack.packets.length > 0)) {
|
|
854
884
|
// There's only an audio track active
|
|
855
885
|
|
|
856
886
|
const allBelow = audioTrack.packets.every(x => x.timestamp < currentSegmentEndTimestamp);
|
|
857
887
|
|
|
858
888
|
if (allBelow) {
|
|
859
|
-
if (
|
|
889
|
+
if (audioTrackIsClosed) {
|
|
860
890
|
// We can write all packets since they're all below
|
|
861
891
|
audioEndIndex = audioTrack.packets.length;
|
|
862
892
|
} else {
|
|
@@ -872,7 +902,6 @@ export class HlsMuxer extends Muxer {
|
|
|
872
902
|
|
|
873
903
|
if (videoEndIndex === 0 && audioEndIndex === 0) {
|
|
874
904
|
// No more segments to write - if all tracks are closed, this playlist is done
|
|
875
|
-
const allClosed = trackDatas.every(x => x.closed);
|
|
876
905
|
if (allClosed) {
|
|
877
906
|
await this.onPlaylistDone(playlist);
|
|
878
907
|
}
|
|
@@ -1033,7 +1062,12 @@ export class HlsMuxer extends Muxer {
|
|
|
1033
1062
|
} else {
|
|
1034
1063
|
// Create the output for this segment
|
|
1035
1064
|
output = new Output({
|
|
1036
|
-
|
|
1065
|
+
// TEMP HACK: MP3 makes little sense with the Xing header, because many players interpret it
|
|
1066
|
+
// as mid-stream silence. But it's enabled by default, and changing that would be breaking.
|
|
1067
|
+
// So, it's a hardcoded special case for now. In the future, we should deprecate arbitrary
|
|
1068
|
+
// segment formats for HLS and switch to special HLS-specific segment formats which can carry
|
|
1069
|
+
// their own logic.
|
|
1070
|
+
format: playlist.segmentFormat._withoutXingHeader(),
|
|
1037
1071
|
target: new PathedTarget(
|
|
1038
1072
|
fullSegmentPath,
|
|
1039
1073
|
async (request: TargetRequest) => {
|
|
@@ -1129,6 +1163,7 @@ export class HlsMuxer extends Muxer {
|
|
|
1129
1163
|
...videoTrack.track.metadata,
|
|
1130
1164
|
decoderConfig: videoTrack.info.decoderConfig,
|
|
1131
1165
|
primingPacket: videoTrack.info.primingPacket ?? undefined,
|
|
1166
|
+
maximumPacketCount: videoEndIndex,
|
|
1132
1167
|
});
|
|
1133
1168
|
}
|
|
1134
1169
|
|
|
@@ -1141,6 +1176,7 @@ export class HlsMuxer extends Muxer {
|
|
|
1141
1176
|
...audioTrack.track.metadata,
|
|
1142
1177
|
decoderConfig: audioTrack.info.decoderConfig,
|
|
1143
1178
|
primingPacket: audioTrack.info.primingPacket ?? undefined,
|
|
1179
|
+
maximumPacketCount: audioEndIndex,
|
|
1144
1180
|
});
|
|
1145
1181
|
|
|
1146
1182
|
if (!playlist.segmentFormat.supportsTimestampedMediaData && audioEndIndex > 0) {
|
|
@@ -1313,14 +1349,16 @@ export class HlsMuxer extends Muxer {
|
|
|
1313
1349
|
this.format._options.onSegment?.(playlist.singleFile.target, playlist.singleFile.info);
|
|
1314
1350
|
}
|
|
1315
1351
|
|
|
1316
|
-
|
|
1352
|
+
if (this.isLive) {
|
|
1353
|
+
await this.writePlaylist(playlist);
|
|
1317
1354
|
|
|
1318
|
-
|
|
1319
|
-
|
|
1355
|
+
if (playlist.writtenSegments.length === 0) {
|
|
1356
|
+
await this.tryWriteMasterPlaylist();
|
|
1357
|
+
}
|
|
1320
1358
|
}
|
|
1321
1359
|
}
|
|
1322
1360
|
|
|
1323
|
-
private updatePlaylistBitrates(playlist: Playlist) {
|
|
1361
|
+
private updatePlaylistBitrates(playlist: Playlist, targetDuration: number) {
|
|
1324
1362
|
const segments = playlist.writtenSegments;
|
|
1325
1363
|
|
|
1326
1364
|
let peakBitrate = 0;
|
|
@@ -1339,14 +1377,11 @@ export class HlsMuxer extends Muxer {
|
|
|
1339
1377
|
windowBytes += segments[j]!.byteSize;
|
|
1340
1378
|
windowDuration += segments[j]!.duration;
|
|
1341
1379
|
|
|
1342
|
-
if (
|
|
1343
|
-
windowDuration >= 0.5 * this.globalTargetDuration
|
|
1344
|
-
&& windowDuration <= 1.5 * this.globalTargetDuration
|
|
1345
|
-
) {
|
|
1380
|
+
if (windowDuration >= 0.5 * targetDuration && windowDuration <= 1.5 * targetDuration) {
|
|
1346
1381
|
peakBitrate = Math.max(peakBitrate, 8 * windowBytes / windowDuration);
|
|
1347
1382
|
}
|
|
1348
1383
|
|
|
1349
|
-
if (windowDuration > 1.5 *
|
|
1384
|
+
if (windowDuration > 1.5 * targetDuration) {
|
|
1350
1385
|
break;
|
|
1351
1386
|
}
|
|
1352
1387
|
}
|
|
@@ -1385,7 +1420,11 @@ export class HlsMuxer extends Muxer {
|
|
|
1385
1420
|
decoderConfig?.codedHeight ?? 1080,
|
|
1386
1421
|
);
|
|
1387
1422
|
} else if (track.isAudioTrack()) {
|
|
1388
|
-
|
|
1423
|
+
const decoderConfig = trackData?.info.decoderConfig as AudioDecoderConfig | undefined;
|
|
1424
|
+
trackPeakBitrate = mediumQuality._toAudioBitrate(
|
|
1425
|
+
track.source._codec,
|
|
1426
|
+
decoderConfig?.numberOfChannels ?? 2,
|
|
1427
|
+
) ?? 0;
|
|
1389
1428
|
}
|
|
1390
1429
|
}
|
|
1391
1430
|
|
|
@@ -1401,7 +1440,14 @@ export class HlsMuxer extends Muxer {
|
|
|
1401
1440
|
assert(this.output._target instanceof PathedTarget);
|
|
1402
1441
|
const pathedTarget = this.output._target;
|
|
1403
1442
|
|
|
1404
|
-
|
|
1443
|
+
// In live mode, target duration is not allowed to change, so we use the nominal value. It must be a
|
|
1444
|
+
// "decimal-integer", and it's rounded like the EXTINF values first so that float noise doesn't mess it up
|
|
1445
|
+
const targetDuration = Math.max(
|
|
1446
|
+
Math.ceil(+(this.isLive ? this.targetSegmentDuration : this.globalTargetDuration).toFixed(12)),
|
|
1447
|
+
1, // A target duration of 0 is kinda weird
|
|
1448
|
+
);
|
|
1449
|
+
|
|
1450
|
+
this.updatePlaylistBitrates(playlist, targetDuration);
|
|
1405
1451
|
|
|
1406
1452
|
let hasByteOffsets = false;
|
|
1407
1453
|
for (const segment of playlist.writtenSegments) {
|
|
@@ -1423,14 +1469,11 @@ export class HlsMuxer extends Muxer {
|
|
|
1423
1469
|
version = 6;
|
|
1424
1470
|
}
|
|
1425
1471
|
|
|
1426
|
-
// In live mode, target duration is not allowed to change, so we use the nominal value
|
|
1427
|
-
const targetDuration = this.isLive ? this.targetSegmentDuration : this.globalTargetDuration;
|
|
1428
|
-
|
|
1429
1472
|
const playlistPath = joinPaths(pathedTarget.rootPath, playlist.path);
|
|
1430
1473
|
const playlistText = '#EXTM3U\n'
|
|
1431
1474
|
+ `#EXT-X-VERSION:${version}\n`
|
|
1432
1475
|
+ (!this.isLive ? '#EXT-X-PLAYLIST-TYPE:VOD\n' : '')
|
|
1433
|
-
+ `#EXT-X-TARGETDURATION:${
|
|
1476
|
+
+ `#EXT-X-TARGETDURATION:${targetDuration}\n`
|
|
1434
1477
|
+ (Number.isFinite(this.maxLiveSegmentCount) ? `#EXT-X-MEDIA-SEQUENCE:${playlist.mediaSequence}\n` : '')
|
|
1435
1478
|
+ '#EXT-X-INDEPENDENT-SEGMENTS\n'
|
|
1436
1479
|
+ (isKeyPacketsOnly ? '#EXT-X-I-FRAMES-ONLY\n' : '')
|
|
@@ -1483,6 +1526,7 @@ export class HlsMuxer extends Muxer {
|
|
|
1483
1526
|
let lastGroupId: string | null = null;
|
|
1484
1527
|
let groupIdTrackCount = 0;
|
|
1485
1528
|
let hasHadDefaultTrackInGroup = false;
|
|
1529
|
+
const namesInGroup = new Set<string>();
|
|
1486
1530
|
|
|
1487
1531
|
for (const decl of this.playlistDeclarations) {
|
|
1488
1532
|
if (decl.groupId === null) {
|
|
@@ -1499,23 +1543,28 @@ export class HlsMuxer extends Muxer {
|
|
|
1499
1543
|
let peakDeclBitrate = 0;
|
|
1500
1544
|
let maxRefAverageBitrate = 0;
|
|
1501
1545
|
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
const trackData = this.trackDatas.find(x => x.track === firstTrack);
|
|
1506
|
-
const codecString = trackData?.info.decoderConfig.codec ?? firstTrack.source._codec;
|
|
1507
|
-
codecs.push(toHlsCodecString(codecString));
|
|
1546
|
+
// The variant's own playlist can be the URI-less rendition of the group it references, in which case
|
|
1547
|
+
// the group's renditions take the place of the variant's own media instead of adding to it
|
|
1548
|
+
const ownPlaylistIsReferenced = decl.references.some(x => x.playlist === decl.playlist);
|
|
1508
1549
|
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1550
|
+
for (const ref of decl.references) {
|
|
1551
|
+
// The spec wants every codec of any rendition in the group listed
|
|
1552
|
+
for (const track of ref.playlist.tracks) {
|
|
1553
|
+
const trackData = this.trackDatas.find(x => x.track === track);
|
|
1554
|
+
const codecString = trackData?.info.decoderConfig.codec ?? track.source._codec;
|
|
1555
|
+
codecs.push(toHlsCodecString(codecString));
|
|
1513
1556
|
}
|
|
1557
|
+
|
|
1558
|
+
assert(ref.playlist.peakBitrate !== null);
|
|
1559
|
+
peakDeclBitrate = Math.max(peakDeclBitrate, ref.playlist.peakBitrate);
|
|
1560
|
+
maxRefAverageBitrate = Math.max(maxRefAverageBitrate, ref.playlist.averageBitrate ?? 0);
|
|
1514
1561
|
}
|
|
1515
1562
|
|
|
1516
1563
|
assert(decl.playlist.peakBitrate !== null);
|
|
1517
|
-
const
|
|
1518
|
-
const
|
|
1564
|
+
const ownPeakBitrate = ownPlaylistIsReferenced ? 0 : decl.playlist.peakBitrate;
|
|
1565
|
+
const ownAverageBitrate = ownPlaylistIsReferenced ? 0 : (decl.playlist.averageBitrate ?? 0);
|
|
1566
|
+
const totalPeakBitrate = ownPeakBitrate + peakDeclBitrate;
|
|
1567
|
+
const totalAverageBitrate = ownAverageBitrate + maxRefAverageBitrate;
|
|
1519
1568
|
|
|
1520
1569
|
if (!firstVariantWritten) {
|
|
1521
1570
|
masterPlaylistText += '\n';
|
|
@@ -1534,7 +1583,7 @@ export class HlsMuxer extends Muxer {
|
|
|
1534
1583
|
masterPlaylistText += `,AVERAGE-BANDWIDTH=${Math.ceil(totalAverageBitrate)}`;
|
|
1535
1584
|
}
|
|
1536
1585
|
|
|
1537
|
-
masterPlaylistText += `,CODECS="${codecs.join(',')}"`;
|
|
1586
|
+
masterPlaylistText += `,CODECS="${[...new Set(codecs)].join(',')}"`;
|
|
1538
1587
|
|
|
1539
1588
|
const videoTrack = decl.playlist.tracks.find(x => x.isVideoTrack());
|
|
1540
1589
|
if (videoTrack?.isVideoTrack()) {
|
|
@@ -1542,19 +1591,34 @@ export class HlsMuxer extends Muxer {
|
|
|
1542
1591
|
HlsVideoTrackData | undefined;
|
|
1543
1592
|
const decoderConfig = trackData?.info.decoderConfig;
|
|
1544
1593
|
if (decoderConfig) {
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1594
|
+
assert(decoderConfig.codedWidth !== undefined);
|
|
1595
|
+
assert(decoderConfig.codedHeight !== undefined);
|
|
1596
|
+
|
|
1597
|
+
let width = decoderConfig.codedWidth;
|
|
1598
|
+
let height = decoderConfig.codedHeight;
|
|
1599
|
+
|
|
1600
|
+
if (
|
|
1601
|
+
decoderConfig.displayAspectWidth !== undefined
|
|
1602
|
+
&& decoderConfig.displayAspectHeight !== undefined
|
|
1603
|
+
) {
|
|
1604
|
+
const num = decoderConfig.displayAspectWidth * decoderConfig.codedHeight;
|
|
1605
|
+
const den = decoderConfig.displayAspectHeight * decoderConfig.codedWidth;
|
|
1606
|
+
|
|
1607
|
+
if (num > den) {
|
|
1608
|
+
width = Math.round(width * num / den);
|
|
1609
|
+
} else {
|
|
1610
|
+
height = Math.round(height * den / num);
|
|
1554
1611
|
}
|
|
1612
|
+
}
|
|
1555
1613
|
|
|
1556
|
-
|
|
1614
|
+
if (
|
|
1615
|
+
videoTrack.metadata.rotation !== undefined
|
|
1616
|
+
&& videoTrack.metadata.rotation % 180 === 90
|
|
1617
|
+
) {
|
|
1618
|
+
[width, height] = [height, width];
|
|
1557
1619
|
}
|
|
1620
|
+
|
|
1621
|
+
masterPlaylistText += `,RESOLUTION=${width}x${height}`;
|
|
1558
1622
|
}
|
|
1559
1623
|
|
|
1560
1624
|
// FRAME-RATE is not defined for EXT-X-I-FRAME-STREAM-INF
|
|
@@ -1598,10 +1662,12 @@ export class HlsMuxer extends Muxer {
|
|
|
1598
1662
|
groupIdTrackCount = 0;
|
|
1599
1663
|
masterPlaylistText += '\n';
|
|
1600
1664
|
hasHadDefaultTrackInGroup = false;
|
|
1665
|
+
namesInGroup.clear();
|
|
1601
1666
|
}
|
|
1602
1667
|
lastGroupId = decl.groupId;
|
|
1603
1668
|
groupIdTrackCount++;
|
|
1604
1669
|
|
|
1670
|
+
// Once subtitle tracks are supported, this logic is wrong (they need TYPE=SUBTITLES)
|
|
1605
1671
|
masterPlaylistText += `#EXT-X-MEDIA:TYPE=${type.toUpperCase()},GROUP-ID="${decl.groupId}"`;
|
|
1606
1672
|
|
|
1607
1673
|
if (name !== null && /[\n\r"]/.test(name)) {
|
|
@@ -1615,7 +1681,14 @@ export class HlsMuxer extends Muxer {
|
|
|
1615
1681
|
// Name is required, so we have to set it to SOMETHING
|
|
1616
1682
|
name ??= `${languageCode ?? decl.groupId}-${groupIdTrackCount}`;
|
|
1617
1683
|
|
|
1618
|
-
|
|
1684
|
+
// The spec requires distinct names within a group
|
|
1685
|
+
let uniqueName = name;
|
|
1686
|
+
for (let i = 2; namesInGroup.has(uniqueName); i++) {
|
|
1687
|
+
uniqueName = `${name} (${i})`;
|
|
1688
|
+
}
|
|
1689
|
+
namesInGroup.add(uniqueName);
|
|
1690
|
+
|
|
1691
|
+
masterPlaylistText += `,NAME="${uniqueName}"`;
|
|
1619
1692
|
|
|
1620
1693
|
if (languageCode !== undefined) {
|
|
1621
1694
|
masterPlaylistText += `,LANGUAGE="${languageCode}"`;
|
|
@@ -1635,7 +1708,7 @@ export class HlsMuxer extends Muxer {
|
|
|
1635
1708
|
masterPlaylistText += ',AUTOSELECT=YES';
|
|
1636
1709
|
}
|
|
1637
1710
|
|
|
1638
|
-
if (dispositionForced) {
|
|
1711
|
+
if (dispositionForced && type === 'subtitle') { // The spec reserves FORCED for subtitle renditions
|
|
1639
1712
|
masterPlaylistText += ',FORCED=YES';
|
|
1640
1713
|
}
|
|
1641
1714
|
|
|
@@ -1707,8 +1780,8 @@ export class HlsMuxer extends Muxer {
|
|
|
1707
1780
|
const releases = await Promise.all(this.playlists.map(p => p.mutex.acquire()));
|
|
1708
1781
|
releases.forEach(release => release());
|
|
1709
1782
|
|
|
1710
|
-
for (const
|
|
1711
|
-
|
|
1783
|
+
for (const track of this.output.tracks) {
|
|
1784
|
+
this.closedTracks.add(track);
|
|
1712
1785
|
}
|
|
1713
1786
|
|
|
1714
1787
|
await Promise.all(this.playlists.map(playlist => (
|
|
@@ -1716,6 +1789,7 @@ export class HlsMuxer extends Muxer {
|
|
|
1716
1789
|
)));
|
|
1717
1790
|
|
|
1718
1791
|
if (!this.isLive) {
|
|
1792
|
+
await Promise.all(this.playlists.map(playlist => this.writePlaylist(playlist)));
|
|
1719
1793
|
await this.writeMasterPlaylist();
|
|
1720
1794
|
}
|
|
1721
1795
|
}
|