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
|
@@ -21,6 +21,12 @@ const toHlsCodecString = (codecString) => {
|
|
|
21
21
|
if (codecString === 'opus') {
|
|
22
22
|
return 'Opus';
|
|
23
23
|
}
|
|
24
|
+
if (codecString === 'flac') {
|
|
25
|
+
return 'fLaC';
|
|
26
|
+
}
|
|
27
|
+
if (codecString === 'mp3' || codecString === 'mp4a.69' || codecString === 'mp4a.6B' || codecString === 'mp4a.6b') {
|
|
28
|
+
return 'mp4a.40.34';
|
|
29
|
+
}
|
|
24
30
|
return codecString;
|
|
25
31
|
};
|
|
26
32
|
export class HlsMuxer extends Muxer {
|
|
@@ -30,6 +36,7 @@ export class HlsMuxer extends Muxer {
|
|
|
30
36
|
}
|
|
31
37
|
super(output);
|
|
32
38
|
this.trackDatas = [];
|
|
39
|
+
this.closedTracks = new Set();
|
|
33
40
|
this.firstPacketTimestamp = null;
|
|
34
41
|
this.isRelativeToUnixEpoch = false;
|
|
35
42
|
this.numWrittenMasterPlaylists = 0;
|
|
@@ -41,7 +48,7 @@ export class HlsMuxer extends Muxer {
|
|
|
41
48
|
this.isLive = format._options.live ?? false;
|
|
42
49
|
this.maxLiveSegmentCount = format._options.maxLiveSegmentCount ?? Infinity;
|
|
43
50
|
this.mediaTimestampBase = format._options.mediaTimestampBase ?? 10;
|
|
44
|
-
this.globalTargetDuration =
|
|
51
|
+
this.globalTargetDuration = 0;
|
|
45
52
|
this.getPlaylistPath = format._options.getPlaylistPath
|
|
46
53
|
?? (({ n }) => `playlist-${n}.m3u8`);
|
|
47
54
|
this.getSegmentPath = format._options.getSegmentPath
|
|
@@ -53,332 +60,349 @@ export class HlsMuxer extends Muxer {
|
|
|
53
60
|
}
|
|
54
61
|
async start() {
|
|
55
62
|
const release = await this.mutex.acquire();
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
this.isRelativeToUnixEpoch = someRelative;
|
|
63
|
-
// Upon starting, we now need to assign the tracks to separate playlists. This assignment will make use of the
|
|
64
|
-
// track pairability information provided by the user as well as other metadata specified on the tracks. The
|
|
65
|
-
// resulting master playlist should preserve track pairability; meaning that all tracks that are pairable
|
|
66
|
-
// remain pairable, and no two tracks become pairable that are meant to be mutually exclusive.
|
|
67
|
-
// The algorithm determines "groups" by enumerating all pairable tracks for each track, and then materializes
|
|
68
|
-
// each group either as #EXT-X-MEDIA tags or top-level #EXT-X-STREAM-INF tags. The algorithm is biased towards
|
|
69
|
-
// video being the top-level grouping, since that's the standard practice.
|
|
70
|
-
const groupAssignment = new Map();
|
|
71
|
-
const groups = [];
|
|
72
|
-
let hasVideo = false;
|
|
73
|
-
let illegalPairingDetected = false;
|
|
74
|
-
let keyPacketsOnlyPairingWarned = false;
|
|
75
|
-
// First, let's build the "sibling" groups induced by track pairability
|
|
76
|
-
for (const track of this.output.tracks) {
|
|
77
|
-
if (track.type === 'video') {
|
|
78
|
-
hasVideo = true;
|
|
63
|
+
try {
|
|
64
|
+
const someRelative = this.output.tracks.some(t => t.metadata.isRelativeToUnixEpoch);
|
|
65
|
+
const someNotRelative = this.output.tracks.some(t => !t.metadata.isRelativeToUnixEpoch);
|
|
66
|
+
if (someRelative && someNotRelative) {
|
|
67
|
+
throw new Error('All tracks must agree on `relativeToUnixEpoch`: some tracks are relative to the Unix epoch and'
|
|
68
|
+
+ ' some are not.');
|
|
79
69
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
70
|
+
this.isRelativeToUnixEpoch = someRelative;
|
|
71
|
+
// Upon starting, we now need to assign the tracks to separate playlists. This assignment will make use of
|
|
72
|
+
// the track pairability information provided by the user as well as other metadata specified on the tracks.
|
|
73
|
+
// The resulting master playlist should preserve track pairability; meaning that all tracks that are
|
|
74
|
+
// pairable remain pairable, and no two tracks become pairable that are meant to be mutually exclusive.
|
|
75
|
+
// The algorithm determines "groups" by enumerating all pairable tracks for each track, and then
|
|
76
|
+
// materializes each group either as #EXT-X-MEDIA tags or top-level #EXT-X-STREAM-INF tags. The algorithm is
|
|
77
|
+
// biased towards video being the top-level grouping, since that's the standard practice.
|
|
78
|
+
const groupAssignment = new Map();
|
|
79
|
+
const groups = [];
|
|
80
|
+
let hasVideo = false;
|
|
81
|
+
let illegalPairingDetected = false;
|
|
82
|
+
let keyPacketsOnlyPairingWarned = false;
|
|
83
|
+
// First, let's build the "sibling" groups induced by track pairability
|
|
84
|
+
for (const track of this.output.tracks) {
|
|
85
|
+
if (track.type === 'video') {
|
|
86
|
+
hasVideo = true;
|
|
87
87
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
illegalPairingDetected = true;
|
|
88
|
+
const pairableGroups = new Map();
|
|
89
|
+
for (const otherTrack of this.output.tracks) {
|
|
90
|
+
if (track === otherTrack) {
|
|
91
|
+
continue;
|
|
93
92
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
// Key-packets-only tracks can neither pair with nor be paired with other tracks
|
|
97
|
-
if ((track.isVideoTrack() && track.metadata.hasOnlyKeyPackets)
|
|
98
|
-
|| (otherTrack.isVideoTrack() && otherTrack.metadata.hasOnlyKeyPackets)) {
|
|
99
|
-
if (!keyPacketsOnlyPairingWarned) {
|
|
100
|
-
Logging._warn(`A key-packets-only video track is pairable with another track, which is not`
|
|
101
|
-
+ ` possible in HLS; treating them as unpaired.`);
|
|
102
|
-
keyPacketsOnlyPairingWarned = true;
|
|
93
|
+
if (!track.canBePairedWith(otherTrack)) {
|
|
94
|
+
continue;
|
|
103
95
|
}
|
|
104
|
-
|
|
96
|
+
if (track.type === otherTrack.type) {
|
|
97
|
+
if (!illegalPairingDetected) {
|
|
98
|
+
Logging._warn(`Illegal pairing of two ${track.type} tracks detected, which is not possible in HLS;`
|
|
99
|
+
+ ` treating them as unpaired.`);
|
|
100
|
+
illegalPairingDetected = true;
|
|
101
|
+
}
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
// Key-packets-only tracks can neither pair with nor be paired with other tracks
|
|
105
|
+
if ((track.isVideoTrack() && track.metadata.hasOnlyKeyPackets)
|
|
106
|
+
|| (otherTrack.isVideoTrack() && otherTrack.metadata.hasOnlyKeyPackets)) {
|
|
107
|
+
if (!keyPacketsOnlyPairingWarned) {
|
|
108
|
+
Logging._warn(`A key-packets-only video track is pairable with another track, which is not`
|
|
109
|
+
+ ` possible in HLS; treating them as unpaired.`);
|
|
110
|
+
keyPacketsOnlyPairingWarned = true;
|
|
111
|
+
}
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
let groupTracks = pairableGroups.get(otherTrack.source._codec);
|
|
115
|
+
if (!groupTracks) {
|
|
116
|
+
pairableGroups.set(otherTrack.source._codec, groupTracks = []);
|
|
117
|
+
}
|
|
118
|
+
groupTracks.push(otherTrack);
|
|
105
119
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
120
|
+
for (const [, pairableTracks] of pairableGroups) {
|
|
121
|
+
const key = pairableTracks.map(x => x.id).join('-');
|
|
122
|
+
const group = groups.find(x => x.key === key);
|
|
123
|
+
if (!group) {
|
|
124
|
+
groups.push({
|
|
125
|
+
name: pairableTracks[0].type + '-' + (groups.length + 1),
|
|
126
|
+
key,
|
|
127
|
+
tracks: pairableTracks,
|
|
128
|
+
needsEmit: false,
|
|
129
|
+
firstNoUri: false,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
let assignedGroups = groupAssignment.get(track);
|
|
133
|
+
if (!assignedGroups) {
|
|
134
|
+
groupAssignment.set(track, assignedGroups = []);
|
|
135
|
+
}
|
|
136
|
+
assignedGroups.push(key);
|
|
109
137
|
}
|
|
110
|
-
groupTracks.push(otherTrack);
|
|
111
138
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
139
|
+
const mainType = hasVideo ? 'video' : 'audio';
|
|
140
|
+
const variantStreams = [];
|
|
141
|
+
const unpairedVideoTracks = [];
|
|
142
|
+
const unpairedAudioTracks = [];
|
|
143
|
+
const deduceSegmentFormat = (tracks) => {
|
|
144
|
+
const codecs = [];
|
|
145
|
+
let videoCount = 0;
|
|
146
|
+
let audioCount = 0;
|
|
147
|
+
let requiresTransformationMetadata = false;
|
|
148
|
+
let candidate = null;
|
|
149
|
+
let candidateScore = -Infinity;
|
|
150
|
+
for (const track of tracks) {
|
|
151
|
+
if (track.isVideoTrack()) {
|
|
152
|
+
videoCount++;
|
|
153
|
+
requiresTransformationMetadata ||= (track.metadata.rotation ?? 0) !== 0
|
|
154
|
+
|| !!track.metadata.flip
|
|
155
|
+
|| !!track.metadata.transformationMatrix;
|
|
156
|
+
}
|
|
157
|
+
else if (track.isAudioTrack()) {
|
|
158
|
+
audioCount++;
|
|
159
|
+
}
|
|
160
|
+
codecs.push(track.source._codec);
|
|
127
161
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
162
|
+
for (const format of toArray(this.format._options.segmentFormat)) {
|
|
163
|
+
const supportedCodecs = format.getSupportedCodecs();
|
|
164
|
+
const trackCounts = format.getSupportedTrackCounts();
|
|
165
|
+
if (codecs.some(codec => !supportedCodecs.includes(codec))) {
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
if (videoCount < trackCounts.video.min || videoCount > trackCounts.video.max) {
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
if (audioCount < trackCounts.audio.min || audioCount > trackCounts.audio.max) {
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
let score = 0;
|
|
175
|
+
if (requiresTransformationMetadata && format.supportsVideoTransformationMetadata) {
|
|
176
|
+
score++;
|
|
177
|
+
}
|
|
178
|
+
if (score > candidateScore) {
|
|
179
|
+
candidate = format;
|
|
180
|
+
candidateScore = score;
|
|
181
|
+
}
|
|
142
182
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
183
|
+
return candidate;
|
|
184
|
+
};
|
|
185
|
+
// Now, create the top-level variant streams
|
|
186
|
+
for (const track of this.output.tracks) {
|
|
187
|
+
const assignedGroupKeys = groupAssignment.get(track);
|
|
188
|
+
if (assignedGroupKeys) {
|
|
189
|
+
assert(assignedGroupKeys.length > 0);
|
|
190
|
+
if (track.type !== mainType) {
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
for (const key of assignedGroupKeys) {
|
|
194
|
+
const group = groups.find(x => x.key === key);
|
|
195
|
+
assert(group);
|
|
196
|
+
if (assignedGroupKeys.length === 1 && group.tracks.length === 1) {
|
|
197
|
+
const otherGroupKeys = groupAssignment.get(group.tracks[0]);
|
|
198
|
+
assert(otherGroupKeys !== undefined);
|
|
199
|
+
if (otherGroupKeys.length === 1) {
|
|
200
|
+
const otherGroup = groups.find(x => x.key === otherGroupKeys[0]);
|
|
201
|
+
if (otherGroup.tracks.length === 1) {
|
|
202
|
+
assert(otherGroup.tracks[0] === track);
|
|
203
|
+
const canSharePlaylist = !!deduceSegmentFormat([track, group.tracks[0]]);
|
|
204
|
+
if (canSharePlaylist) {
|
|
205
|
+
variantStreams.push({
|
|
206
|
+
tracks: [track, group.tracks[0]],
|
|
207
|
+
linkedGroup: null,
|
|
208
|
+
});
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
158
212
|
}
|
|
159
213
|
}
|
|
214
|
+
variantStreams.push({
|
|
215
|
+
tracks: [track],
|
|
216
|
+
linkedGroup: group,
|
|
217
|
+
});
|
|
218
|
+
group.needsEmit = true;
|
|
160
219
|
}
|
|
161
|
-
variantStreams.push({
|
|
162
|
-
tracks: [track],
|
|
163
|
-
linkedGroup: group,
|
|
164
|
-
});
|
|
165
|
-
group.needsEmit = true;
|
|
166
220
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
221
|
+
else {
|
|
222
|
+
if (track.type === 'video') {
|
|
223
|
+
unpairedVideoTracks.push(track);
|
|
224
|
+
}
|
|
225
|
+
else if (track.type === 'audio') {
|
|
226
|
+
unpairedAudioTracks.push(track);
|
|
227
|
+
}
|
|
174
228
|
}
|
|
175
229
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
linkedGroup: group,
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
for (const track of unpairedVideoTracks) {
|
|
230
|
+
const getMetadataKeyForTrack = ({ metadata }) => {
|
|
231
|
+
let key = '';
|
|
232
|
+
key += `${metadata.languageCode ?? UNDETERMINED_LANGUAGE}-`;
|
|
233
|
+
key += `${metadata.name ?? ''}-`;
|
|
234
|
+
key += `${metadata.disposition?.default ?? true}-`;
|
|
235
|
+
key += `${metadata.disposition?.primary ?? false}-`;
|
|
236
|
+
key += `${metadata.disposition?.forced ?? false}-`;
|
|
237
|
+
return key;
|
|
238
|
+
};
|
|
239
|
+
// Video tracks that can't be paired with any other track always live on the top-level, the question is just
|
|
240
|
+
// if they need to be separated into #EXT-X-MEDIA tags or not
|
|
241
|
+
if (unpairedVideoTracks.length > 0) {
|
|
242
|
+
// Key-packets-only tracks are standalone I-frame streams, so they can't be renditions within a group
|
|
243
|
+
const iFrameTracks = unpairedVideoTracks.filter(x => x.isVideoTrack() && x.metadata.hasOnlyKeyPackets);
|
|
244
|
+
const groupableTracks = unpairedVideoTracks.filter(x => !iFrameTracks.includes(x));
|
|
245
|
+
const uniqueMetadata = new Set(groupableTracks.map(getMetadataKeyForTrack));
|
|
246
|
+
if (uniqueMetadata.size > 1) {
|
|
247
|
+
// They differ in metadata, emit as group
|
|
248
|
+
const group = {
|
|
249
|
+
key: groupableTracks.map(x => x.id).join('-'),
|
|
250
|
+
name: 'video-' + (groups.length + 1),
|
|
251
|
+
tracks: groupableTracks,
|
|
252
|
+
needsEmit: true,
|
|
253
|
+
firstNoUri: true,
|
|
254
|
+
};
|
|
255
|
+
groups.push(group);
|
|
207
256
|
variantStreams.push({
|
|
208
|
-
tracks: [
|
|
209
|
-
linkedGroup:
|
|
257
|
+
tracks: [groupableTracks[0]],
|
|
258
|
+
linkedGroup: group,
|
|
210
259
|
});
|
|
260
|
+
for (const track of iFrameTracks) {
|
|
261
|
+
variantStreams.push({
|
|
262
|
+
tracks: [track],
|
|
263
|
+
linkedGroup: null,
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
for (const track of unpairedVideoTracks) {
|
|
269
|
+
variantStreams.push({
|
|
270
|
+
tracks: [track],
|
|
271
|
+
linkedGroup: null,
|
|
272
|
+
});
|
|
273
|
+
}
|
|
211
274
|
}
|
|
212
275
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
groups.push(group);
|
|
228
|
-
variantStreams.push({
|
|
229
|
-
tracks: [unpairedAudioTracks[0]],
|
|
230
|
-
linkedGroup: group,
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
for (const track of unpairedAudioTracks) {
|
|
276
|
+
// Audio tracks that can't be paired with any other track always live on the top-level, the question is just
|
|
277
|
+
// if they need to be separated into #EXT-X-MEDIA tags or not
|
|
278
|
+
if (unpairedAudioTracks.length > 0) {
|
|
279
|
+
const uniqueMetadata = new Set(unpairedAudioTracks.map(getMetadataKeyForTrack));
|
|
280
|
+
if (uniqueMetadata.size > 1) {
|
|
281
|
+
// They differ in metadata, emit as group
|
|
282
|
+
const group = {
|
|
283
|
+
key: unpairedAudioTracks.map(x => x.id).join('-'),
|
|
284
|
+
name: 'audio-' + (groups.length + 1),
|
|
285
|
+
tracks: unpairedAudioTracks,
|
|
286
|
+
needsEmit: true,
|
|
287
|
+
firstNoUri: true,
|
|
288
|
+
};
|
|
289
|
+
groups.push(group);
|
|
235
290
|
variantStreams.push({
|
|
236
|
-
tracks: [
|
|
237
|
-
linkedGroup:
|
|
291
|
+
tracks: [unpairedAudioTracks[0]],
|
|
292
|
+
linkedGroup: group,
|
|
238
293
|
});
|
|
239
294
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
let candidate = null;
|
|
248
|
-
let candidateScore = -Infinity;
|
|
249
|
-
for (const track of tracks) {
|
|
250
|
-
if (track.isVideoTrack()) {
|
|
251
|
-
videoCount++;
|
|
252
|
-
requiresTransformationMetadata ||= (track.metadata.rotation ?? 0) !== 0
|
|
253
|
-
|| !!track.metadata.flip
|
|
254
|
-
|| !!track.metadata.transformationMatrix;
|
|
255
|
-
}
|
|
256
|
-
else if (track.isAudioTrack()) {
|
|
257
|
-
audioCount++;
|
|
295
|
+
else {
|
|
296
|
+
for (const track of unpairedAudioTracks) {
|
|
297
|
+
variantStreams.push({
|
|
298
|
+
tracks: [track],
|
|
299
|
+
linkedGroup: null,
|
|
300
|
+
});
|
|
301
|
+
}
|
|
258
302
|
}
|
|
259
|
-
codecs.push(track.source._codec);
|
|
260
303
|
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
continue;
|
|
304
|
+
const registerPlaylist = async (tracks) => {
|
|
305
|
+
if (tracks.some(track => this.playlists.some(playlist => playlist.tracks.includes(track)))) {
|
|
306
|
+
// Should be unreachable
|
|
307
|
+
throw new Error('Internal error: track is already registered in a playlist.');
|
|
266
308
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
309
|
+
const format = deduceSegmentFormat(tracks);
|
|
310
|
+
// We must find a format. If no format is found, that means we incorrectly gated track creation and
|
|
311
|
+
// assignment at an earlier step.
|
|
312
|
+
assert(format);
|
|
313
|
+
const id = this.playlists.length + 1;
|
|
314
|
+
const path = await this.getPlaylistPath({
|
|
315
|
+
n: id,
|
|
316
|
+
tracks,
|
|
317
|
+
segmentFormat: format,
|
|
318
|
+
});
|
|
319
|
+
validatePlaylistPath(path);
|
|
320
|
+
const playlist = {
|
|
321
|
+
id: this.playlists.length + 1,
|
|
322
|
+
path,
|
|
323
|
+
tracks,
|
|
324
|
+
segmentFormat: format,
|
|
325
|
+
currentSegmentStartTimestamp: null,
|
|
326
|
+
currentSegmentStartTimestampIsFixed: false,
|
|
327
|
+
nextSegmentId: 1,
|
|
328
|
+
initSegment: null,
|
|
329
|
+
writtenSegments: [],
|
|
330
|
+
peakBitrate: null,
|
|
331
|
+
averageBitrate: null,
|
|
332
|
+
mediaSequence: 0,
|
|
333
|
+
done: false,
|
|
334
|
+
singleFile: null,
|
|
335
|
+
mutex: new AsyncMutex(),
|
|
336
|
+
};
|
|
337
|
+
this.playlists.push(playlist);
|
|
338
|
+
return playlist;
|
|
339
|
+
};
|
|
340
|
+
// Now, finally let's create all declarations. Each declaration maps to one #EXT-X-MEDIA or
|
|
341
|
+
// #EXT-X-STREAM-INF tag in the final master playlist.
|
|
342
|
+
for (const group of groups) {
|
|
343
|
+
if (!group.needsEmit) {
|
|
271
344
|
continue;
|
|
272
345
|
}
|
|
273
|
-
let
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
346
|
+
for (let i = 0; i < group.tracks.length; i++) {
|
|
347
|
+
const track = group.tracks[i];
|
|
348
|
+
let playlist = this.playlists.find(x => x.tracks[0].id === track.id);
|
|
349
|
+
playlist ??= await registerPlaylist([track]);
|
|
350
|
+
this.playlistDeclarations.push({
|
|
351
|
+
playlist,
|
|
352
|
+
groupId: group.name,
|
|
353
|
+
noUri: group.firstNoUri && i === 0,
|
|
354
|
+
references: [],
|
|
355
|
+
});
|
|
280
356
|
}
|
|
281
357
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
};
|
|
287
|
-
const registerPlaylist = async (tracks) => {
|
|
288
|
-
if (tracks.some(track => this.playlists.some(playlist => playlist.tracks.includes(track)))) {
|
|
289
|
-
throw new Error('Internal error: track is already registered in a playlist.'); // Should be unreachable
|
|
290
|
-
}
|
|
291
|
-
const format = deduceSegmentFormat(tracks);
|
|
292
|
-
const id = this.playlists.length + 1;
|
|
293
|
-
const path = await this.getPlaylistPath({
|
|
294
|
-
n: id,
|
|
295
|
-
tracks,
|
|
296
|
-
segmentFormat: format,
|
|
297
|
-
});
|
|
298
|
-
validatePlaylistPath(path);
|
|
299
|
-
const playlist = {
|
|
300
|
-
id: this.playlists.length + 1,
|
|
301
|
-
path,
|
|
302
|
-
tracks,
|
|
303
|
-
segmentFormat: format,
|
|
304
|
-
currentSegmentStartTimestamp: null,
|
|
305
|
-
currentSegmentStartTimestampIsFixed: false,
|
|
306
|
-
nextSegmentId: 1,
|
|
307
|
-
initSegment: null,
|
|
308
|
-
writtenSegments: [],
|
|
309
|
-
peakBitrate: null,
|
|
310
|
-
averageBitrate: null,
|
|
311
|
-
mediaSequence: 0,
|
|
312
|
-
done: false,
|
|
313
|
-
singleFile: null,
|
|
314
|
-
mutex: new AsyncMutex(),
|
|
315
|
-
};
|
|
316
|
-
this.playlists.push(playlist);
|
|
317
|
-
return playlist;
|
|
318
|
-
};
|
|
319
|
-
// Now, finally let's create all declarations. Each declaration maps to one #EXT-X-MEDIA or #EXT-X-STREAM-INF
|
|
320
|
-
// tag in the final master playlist.
|
|
321
|
-
for (const group of groups) {
|
|
322
|
-
if (!group.needsEmit) {
|
|
323
|
-
continue;
|
|
324
|
-
}
|
|
325
|
-
for (let i = 0; i < group.tracks.length; i++) {
|
|
326
|
-
const track = group.tracks[i];
|
|
327
|
-
let playlist = this.playlists.find(x => x.tracks[0].id === track.id);
|
|
328
|
-
playlist ??= await registerPlaylist([track]);
|
|
358
|
+
for (const variant of variantStreams) {
|
|
359
|
+
// Since tracks can only be assigned to one playlist, the first track's ID acts as a "playlist key"
|
|
360
|
+
let playlist = this.playlists.find(x => x.tracks[0].id === variant.tracks[0].id);
|
|
361
|
+
playlist ??= await registerPlaylist(variant.tracks);
|
|
329
362
|
this.playlistDeclarations.push({
|
|
330
363
|
playlist,
|
|
331
|
-
groupId:
|
|
332
|
-
noUri:
|
|
333
|
-
references:
|
|
364
|
+
groupId: null,
|
|
365
|
+
noUri: false,
|
|
366
|
+
references: variant.linkedGroup
|
|
367
|
+
? this.playlistDeclarations.filter(x => x.groupId === variant.linkedGroup.name)
|
|
368
|
+
: [],
|
|
334
369
|
});
|
|
335
370
|
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
groupId: null,
|
|
344
|
-
noUri: false,
|
|
345
|
-
references: variant.linkedGroup
|
|
346
|
-
? this.playlistDeclarations.filter(x => x.groupId === variant.linkedGroup.name)
|
|
347
|
-
: [],
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
for (const track of this.output.tracks) {
|
|
351
|
-
if (track.isVideoTrack() && track.metadata.decoderConfig) {
|
|
352
|
-
this.getVideoTrackData(track, track.metadata.primingPacket ?? null, { decoderConfig: track.metadata.decoderConfig });
|
|
353
|
-
}
|
|
354
|
-
else if (track.isAudioTrack() && track.metadata.decoderConfig) {
|
|
355
|
-
this.getAudioTrackData(track, track.metadata.primingPacket ?? null, { decoderConfig: track.metadata.decoderConfig });
|
|
371
|
+
for (const track of this.output.tracks) {
|
|
372
|
+
if (track.isVideoTrack() && track.metadata.decoderConfig) {
|
|
373
|
+
this.getVideoTrackData(track, track.metadata.primingPacket ?? null, { decoderConfig: track.metadata.decoderConfig });
|
|
374
|
+
}
|
|
375
|
+
else if (track.isAudioTrack() && track.metadata.decoderConfig) {
|
|
376
|
+
this.getAudioTrackData(track, track.metadata.primingPacket ?? null, { decoderConfig: track.metadata.decoderConfig });
|
|
377
|
+
}
|
|
356
378
|
}
|
|
357
379
|
}
|
|
358
|
-
|
|
380
|
+
finally {
|
|
381
|
+
release();
|
|
382
|
+
}
|
|
359
383
|
}
|
|
360
384
|
async getMimeType() {
|
|
361
385
|
return HLS_MIME_TYPE;
|
|
362
386
|
}
|
|
363
387
|
allTracksAreKnown(playlist) {
|
|
364
388
|
for (const track of playlist.tracks) {
|
|
365
|
-
if (!
|
|
389
|
+
if (!this.closedTracks.has(track) && !this.trackDatas.some(x => x.track === track)) {
|
|
366
390
|
return false; // We haven't seen a sample from this open track yet
|
|
367
391
|
}
|
|
368
392
|
}
|
|
369
393
|
return true;
|
|
370
394
|
}
|
|
371
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
372
395
|
async onTrackClose(track) {
|
|
373
|
-
const trackData = this.trackDatas.find(x => x.track === track);
|
|
374
|
-
if (trackData) {
|
|
375
|
-
trackData.closed = true;
|
|
376
|
-
}
|
|
377
396
|
const playlist = this.playlists.find(x => x.tracks.includes(track));
|
|
378
397
|
assert(playlist); // If there isn't one then the assignment algo failed innit
|
|
379
398
|
const release = await playlist.mutex.acquire();
|
|
380
399
|
try {
|
|
381
|
-
|
|
400
|
+
this.closedTracks.add(track);
|
|
401
|
+
// Another track of the playlist may have closed alongside this one and already finished the playlist,
|
|
402
|
+
// hence this check
|
|
403
|
+
if (!playlist.done) {
|
|
404
|
+
await this.advancePlaylist(playlist);
|
|
405
|
+
}
|
|
382
406
|
}
|
|
383
407
|
finally {
|
|
384
408
|
release();
|
|
@@ -398,7 +422,6 @@ export class HlsMuxer extends Muxer {
|
|
|
398
422
|
track,
|
|
399
423
|
packets: [],
|
|
400
424
|
playlist: playlists[0],
|
|
401
|
-
closed: false,
|
|
402
425
|
info: {
|
|
403
426
|
type: 'video',
|
|
404
427
|
decoderConfig: meta.decoderConfig,
|
|
@@ -422,7 +445,6 @@ export class HlsMuxer extends Muxer {
|
|
|
422
445
|
track,
|
|
423
446
|
packets: [],
|
|
424
447
|
playlist: playlists[0],
|
|
425
|
-
closed: false,
|
|
426
448
|
info: {
|
|
427
449
|
type: 'audio',
|
|
428
450
|
decoderConfig: meta.decoderConfig,
|
|
@@ -487,16 +509,23 @@ export class HlsMuxer extends Muxer {
|
|
|
487
509
|
return;
|
|
488
510
|
}
|
|
489
511
|
const trackDatas = this.trackDatas.filter(x => playlist.tracks.includes(x.track));
|
|
512
|
+
const allClosed = trackDatas.every(x => this.closedTracks.has(x.track));
|
|
490
513
|
if (playlist.currentSegmentStartTimestamp === null) {
|
|
491
514
|
// All tracks are known but we never received any data. Tracks that declared themselves up front are known
|
|
492
515
|
// before their first packet, so we can only call it a day once they're actually closed.
|
|
493
|
-
if (
|
|
516
|
+
if (allClosed) {
|
|
494
517
|
await this.onPlaylistDone(playlist);
|
|
495
518
|
}
|
|
496
519
|
return;
|
|
497
520
|
}
|
|
498
521
|
const videoTrack = trackDatas.find(x => x.info.type === 'video');
|
|
499
522
|
const audioTrack = trackDatas.find(x => x.info.type === 'audio');
|
|
523
|
+
const videoTrackIsClosed = !!videoTrack && this.closedTracks.has(videoTrack.track);
|
|
524
|
+
const audioTrackIsClosed = !!audioTrack && this.closedTracks.has(audioTrack.track);
|
|
525
|
+
// RFC 8216: "The EXT-X-I-FRAMES-ONLY tag indicates that each Media Segment in the Playlist describes a
|
|
526
|
+
// single I-frame"
|
|
527
|
+
const isKeyPacketsOnly = playlist.tracks[0].isVideoTrack()
|
|
528
|
+
&& playlist.tracks[0].metadata.hasOnlyKeyPackets;
|
|
500
529
|
// Loop in case we can finalize multiple segments
|
|
501
530
|
while (true) {
|
|
502
531
|
// This here is the core segmentation logic. The segmentation logic figures out which packets are to be
|
|
@@ -513,13 +542,13 @@ export class HlsMuxer extends Muxer {
|
|
|
513
542
|
// These store the index (exclusive) until when packets can be added to the next segment
|
|
514
543
|
let videoEndIndex = 0;
|
|
515
544
|
let audioEndIndex = 0;
|
|
516
|
-
if (videoTrack && (!
|
|
545
|
+
if (videoTrack && (!videoTrackIsClosed || videoTrack.packets.length > 0)) {
|
|
517
546
|
// A video track is active (and maybe an audio track too)
|
|
518
547
|
const allBelow = videoTrack.packets.every(x => x.timestamp < currentSegmentEndTimestamp);
|
|
519
548
|
let bestKeyPacket = null;
|
|
520
549
|
let bestKeyPacketIndex = null;
|
|
521
|
-
if (allBelow) {
|
|
522
|
-
if (!
|
|
550
|
+
if (allBelow && !isKeyPacketsOnly) {
|
|
551
|
+
if (!videoTrackIsClosed) {
|
|
523
552
|
// Not enough data yet
|
|
524
553
|
return;
|
|
525
554
|
}
|
|
@@ -534,6 +563,9 @@ export class HlsMuxer extends Muxer {
|
|
|
534
563
|
if (i > 0 && packet.type === 'key') {
|
|
535
564
|
bestKeyPacket = packet;
|
|
536
565
|
bestKeyPacketIndex = i;
|
|
566
|
+
if (isKeyPacketsOnly) {
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
537
569
|
}
|
|
538
570
|
}
|
|
539
571
|
}
|
|
@@ -546,7 +578,7 @@ export class HlsMuxer extends Muxer {
|
|
|
546
578
|
audioEndIndex = index;
|
|
547
579
|
}
|
|
548
580
|
else {
|
|
549
|
-
if (
|
|
581
|
+
if (audioTrackIsClosed) {
|
|
550
582
|
audioEndIndex = audioTrack.packets.length;
|
|
551
583
|
}
|
|
552
584
|
else {
|
|
@@ -556,7 +588,7 @@ export class HlsMuxer extends Muxer {
|
|
|
556
588
|
}
|
|
557
589
|
}
|
|
558
590
|
else {
|
|
559
|
-
if (!
|
|
591
|
+
if (!videoTrackIsClosed) {
|
|
560
592
|
return;
|
|
561
593
|
}
|
|
562
594
|
// Include the entire rest of the video (since there's no key frame to split it on)
|
|
@@ -572,7 +604,7 @@ export class HlsMuxer extends Muxer {
|
|
|
572
604
|
audioEndIndex = index;
|
|
573
605
|
}
|
|
574
606
|
else {
|
|
575
|
-
if (
|
|
607
|
+
if (audioTrackIsClosed) {
|
|
576
608
|
audioEndIndex = audioTrack.packets.length;
|
|
577
609
|
}
|
|
578
610
|
else {
|
|
@@ -587,7 +619,7 @@ export class HlsMuxer extends Muxer {
|
|
|
587
619
|
audioEndIndex = index;
|
|
588
620
|
}
|
|
589
621
|
else {
|
|
590
|
-
if (
|
|
622
|
+
if (audioTrackIsClosed) {
|
|
591
623
|
audioEndIndex = audioTrack.packets.length;
|
|
592
624
|
}
|
|
593
625
|
else {
|
|
@@ -598,11 +630,11 @@ export class HlsMuxer extends Muxer {
|
|
|
598
630
|
}
|
|
599
631
|
}
|
|
600
632
|
}
|
|
601
|
-
else if (audioTrack && (!
|
|
633
|
+
else if (audioTrack && (!audioTrackIsClosed || audioTrack.packets.length > 0)) {
|
|
602
634
|
// There's only an audio track active
|
|
603
635
|
const allBelow = audioTrack.packets.every(x => x.timestamp < currentSegmentEndTimestamp);
|
|
604
636
|
if (allBelow) {
|
|
605
|
-
if (
|
|
637
|
+
if (audioTrackIsClosed) {
|
|
606
638
|
// We can write all packets since they're all below
|
|
607
639
|
audioEndIndex = audioTrack.packets.length;
|
|
608
640
|
}
|
|
@@ -619,7 +651,6 @@ export class HlsMuxer extends Muxer {
|
|
|
619
651
|
}
|
|
620
652
|
if (videoEndIndex === 0 && audioEndIndex === 0) {
|
|
621
653
|
// No more segments to write - if all tracks are closed, this playlist is done
|
|
622
|
-
const allClosed = trackDatas.every(x => x.closed);
|
|
623
654
|
if (allClosed) {
|
|
624
655
|
await this.onPlaylistDone(playlist);
|
|
625
656
|
}
|
|
@@ -743,7 +774,12 @@ export class HlsMuxer extends Muxer {
|
|
|
743
774
|
else {
|
|
744
775
|
// Create the output for this segment
|
|
745
776
|
output = new Output({
|
|
746
|
-
|
|
777
|
+
// TEMP HACK: MP3 makes little sense with the Xing header, because many players interpret it
|
|
778
|
+
// as mid-stream silence. But it's enabled by default, and changing that would be breaking.
|
|
779
|
+
// So, it's a hardcoded special case for now. In the future, we should deprecate arbitrary
|
|
780
|
+
// segment formats for HLS and switch to special HLS-specific segment formats which can carry
|
|
781
|
+
// their own logic.
|
|
782
|
+
format: playlist.segmentFormat._withoutXingHeader(),
|
|
747
783
|
target: new PathedTarget(fullSegmentPath, async (request) => {
|
|
748
784
|
const proxiedRequest = {
|
|
749
785
|
...request,
|
|
@@ -822,6 +858,7 @@ export class HlsMuxer extends Muxer {
|
|
|
822
858
|
...videoTrack.track.metadata,
|
|
823
859
|
decoderConfig: videoTrack.info.decoderConfig,
|
|
824
860
|
primingPacket: videoTrack.info.primingPacket ?? undefined,
|
|
861
|
+
maximumPacketCount: videoEndIndex,
|
|
825
862
|
});
|
|
826
863
|
}
|
|
827
864
|
if (audioTrack) {
|
|
@@ -831,6 +868,7 @@ export class HlsMuxer extends Muxer {
|
|
|
831
868
|
...audioTrack.track.metadata,
|
|
832
869
|
decoderConfig: audioTrack.info.decoderConfig,
|
|
833
870
|
primingPacket: audioTrack.info.primingPacket ?? undefined,
|
|
871
|
+
maximumPacketCount: audioEndIndex,
|
|
834
872
|
});
|
|
835
873
|
if (!playlist.segmentFormat.supportsTimestampedMediaData && audioEndIndex > 0) {
|
|
836
874
|
// The media itself carries no timestamps, so let's write an ID3v2 PRIV frame. The formats
|
|
@@ -971,12 +1009,14 @@ export class HlsMuxer extends Muxer {
|
|
|
971
1009
|
}
|
|
972
1010
|
this.format._options.onSegment?.(playlist.singleFile.target, playlist.singleFile.info);
|
|
973
1011
|
}
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1012
|
+
if (this.isLive) {
|
|
1013
|
+
await this.writePlaylist(playlist);
|
|
1014
|
+
if (playlist.writtenSegments.length === 0) {
|
|
1015
|
+
await this.tryWriteMasterPlaylist();
|
|
1016
|
+
}
|
|
977
1017
|
}
|
|
978
1018
|
}
|
|
979
|
-
updatePlaylistBitrates(playlist) {
|
|
1019
|
+
updatePlaylistBitrates(playlist, targetDuration) {
|
|
980
1020
|
const segments = playlist.writtenSegments;
|
|
981
1021
|
let peakBitrate = 0;
|
|
982
1022
|
let totalBits = 0;
|
|
@@ -990,11 +1030,10 @@ export class HlsMuxer extends Muxer {
|
|
|
990
1030
|
for (let j = i; j < segments.length; j++) {
|
|
991
1031
|
windowBytes += segments[j].byteSize;
|
|
992
1032
|
windowDuration += segments[j].duration;
|
|
993
|
-
if (windowDuration >= 0.5 *
|
|
994
|
-
&& windowDuration <= 1.5 * this.globalTargetDuration) {
|
|
1033
|
+
if (windowDuration >= 0.5 * targetDuration && windowDuration <= 1.5 * targetDuration) {
|
|
995
1034
|
peakBitrate = Math.max(peakBitrate, 8 * windowBytes / windowDuration);
|
|
996
1035
|
}
|
|
997
|
-
if (windowDuration > 1.5 *
|
|
1036
|
+
if (windowDuration > 1.5 * targetDuration) {
|
|
998
1037
|
break;
|
|
999
1038
|
}
|
|
1000
1039
|
}
|
|
@@ -1025,7 +1064,8 @@ export class HlsMuxer extends Muxer {
|
|
|
1025
1064
|
decoderConfig?.codedHeight ?? 1080);
|
|
1026
1065
|
}
|
|
1027
1066
|
else if (track.isAudioTrack()) {
|
|
1028
|
-
|
|
1067
|
+
const decoderConfig = trackData?.info.decoderConfig;
|
|
1068
|
+
trackPeakBitrate = mediumQuality._toAudioBitrate(track.source._codec, decoderConfig?.numberOfChannels ?? 2) ?? 0;
|
|
1029
1069
|
}
|
|
1030
1070
|
}
|
|
1031
1071
|
peakBitrate += trackPeakBitrate;
|
|
@@ -1037,7 +1077,10 @@ export class HlsMuxer extends Muxer {
|
|
|
1037
1077
|
async writePlaylist(playlist) {
|
|
1038
1078
|
assert(this.output._target instanceof PathedTarget);
|
|
1039
1079
|
const pathedTarget = this.output._target;
|
|
1040
|
-
|
|
1080
|
+
// In live mode, target duration is not allowed to change, so we use the nominal value. It must be a
|
|
1081
|
+
// "decimal-integer", and it's rounded like the EXTINF values first so that float noise doesn't mess it up
|
|
1082
|
+
const targetDuration = Math.max(Math.ceil(+(this.isLive ? this.targetSegmentDuration : this.globalTargetDuration).toFixed(12)), 1);
|
|
1083
|
+
this.updatePlaylistBitrates(playlist, targetDuration);
|
|
1041
1084
|
let hasByteOffsets = false;
|
|
1042
1085
|
for (const segment of playlist.writtenSegments) {
|
|
1043
1086
|
hasByteOffsets ||= segment.byteOffset !== null;
|
|
@@ -1055,13 +1098,11 @@ export class HlsMuxer extends Muxer {
|
|
|
1055
1098
|
// "if it contains the EXT-X-MAP tag in a Media Playlist that does not contain EXT-X-I-FRAMES-ONLY"
|
|
1056
1099
|
version = 6;
|
|
1057
1100
|
}
|
|
1058
|
-
// In live mode, target duration is not allowed to change, so we use the nominal value
|
|
1059
|
-
const targetDuration = this.isLive ? this.targetSegmentDuration : this.globalTargetDuration;
|
|
1060
1101
|
const playlistPath = joinPaths(pathedTarget.rootPath, playlist.path);
|
|
1061
1102
|
const playlistText = '#EXTM3U\n'
|
|
1062
1103
|
+ `#EXT-X-VERSION:${version}\n`
|
|
1063
1104
|
+ (!this.isLive ? '#EXT-X-PLAYLIST-TYPE:VOD\n' : '')
|
|
1064
|
-
+ `#EXT-X-TARGETDURATION:${
|
|
1105
|
+
+ `#EXT-X-TARGETDURATION:${targetDuration}\n`
|
|
1065
1106
|
+ (Number.isFinite(this.maxLiveSegmentCount) ? `#EXT-X-MEDIA-SEQUENCE:${playlist.mediaSequence}\n` : '')
|
|
1066
1107
|
+ '#EXT-X-INDEPENDENT-SEGMENTS\n'
|
|
1067
1108
|
+ (isKeyPacketsOnly ? '#EXT-X-I-FRAMES-ONLY\n' : '')
|
|
@@ -1106,6 +1147,7 @@ export class HlsMuxer extends Muxer {
|
|
|
1106
1147
|
let lastGroupId = null;
|
|
1107
1148
|
let groupIdTrackCount = 0;
|
|
1108
1149
|
let hasHadDefaultTrackInGroup = false;
|
|
1150
|
+
const namesInGroup = new Set();
|
|
1109
1151
|
for (const decl of this.playlistDeclarations) {
|
|
1110
1152
|
if (decl.groupId === null) {
|
|
1111
1153
|
const isKeyPacketsOnly = decl.playlist.tracks[0].isVideoTrack()
|
|
@@ -1118,21 +1160,25 @@ export class HlsMuxer extends Muxer {
|
|
|
1118
1160
|
}
|
|
1119
1161
|
let peakDeclBitrate = 0;
|
|
1120
1162
|
let maxRefAverageBitrate = 0;
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
maxRefAverageBitrate = Math.max(maxRefAverageBitrate, ref.playlist.averageBitrate ?? 0);
|
|
1163
|
+
// The variant's own playlist can be the URI-less rendition of the group it references, in which case
|
|
1164
|
+
// the group's renditions take the place of the variant's own media instead of adding to it
|
|
1165
|
+
const ownPlaylistIsReferenced = decl.references.some(x => x.playlist === decl.playlist);
|
|
1166
|
+
for (const ref of decl.references) {
|
|
1167
|
+
// The spec wants every codec of any rendition in the group listed
|
|
1168
|
+
for (const track of ref.playlist.tracks) {
|
|
1169
|
+
const trackData = this.trackDatas.find(x => x.track === track);
|
|
1170
|
+
const codecString = trackData?.info.decoderConfig.codec ?? track.source._codec;
|
|
1171
|
+
codecs.push(toHlsCodecString(codecString));
|
|
1131
1172
|
}
|
|
1173
|
+
assert(ref.playlist.peakBitrate !== null);
|
|
1174
|
+
peakDeclBitrate = Math.max(peakDeclBitrate, ref.playlist.peakBitrate);
|
|
1175
|
+
maxRefAverageBitrate = Math.max(maxRefAverageBitrate, ref.playlist.averageBitrate ?? 0);
|
|
1132
1176
|
}
|
|
1133
1177
|
assert(decl.playlist.peakBitrate !== null);
|
|
1134
|
-
const
|
|
1135
|
-
const
|
|
1178
|
+
const ownPeakBitrate = ownPlaylistIsReferenced ? 0 : decl.playlist.peakBitrate;
|
|
1179
|
+
const ownAverageBitrate = ownPlaylistIsReferenced ? 0 : (decl.playlist.averageBitrate ?? 0);
|
|
1180
|
+
const totalPeakBitrate = ownPeakBitrate + peakDeclBitrate;
|
|
1181
|
+
const totalAverageBitrate = ownAverageBitrate + maxRefAverageBitrate;
|
|
1136
1182
|
if (!firstVariantWritten) {
|
|
1137
1183
|
masterPlaylistText += '\n';
|
|
1138
1184
|
firstVariantWritten = true;
|
|
@@ -1147,21 +1193,32 @@ export class HlsMuxer extends Muxer {
|
|
|
1147
1193
|
if (totalAverageBitrate > 0) {
|
|
1148
1194
|
masterPlaylistText += `,AVERAGE-BANDWIDTH=${Math.ceil(totalAverageBitrate)}`;
|
|
1149
1195
|
}
|
|
1150
|
-
masterPlaylistText += `,CODECS="${codecs.join(',')}"`;
|
|
1196
|
+
masterPlaylistText += `,CODECS="${[...new Set(codecs)].join(',')}"`;
|
|
1151
1197
|
const videoTrack = decl.playlist.tracks.find(x => x.isVideoTrack());
|
|
1152
1198
|
if (videoTrack?.isVideoTrack()) {
|
|
1153
1199
|
const trackData = this.trackDatas.find(x => x.track === videoTrack);
|
|
1154
1200
|
const decoderConfig = trackData?.info.decoderConfig;
|
|
1155
1201
|
if (decoderConfig) {
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1202
|
+
assert(decoderConfig.codedWidth !== undefined);
|
|
1203
|
+
assert(decoderConfig.codedHeight !== undefined);
|
|
1204
|
+
let width = decoderConfig.codedWidth;
|
|
1205
|
+
let height = decoderConfig.codedHeight;
|
|
1206
|
+
if (decoderConfig.displayAspectWidth !== undefined
|
|
1207
|
+
&& decoderConfig.displayAspectHeight !== undefined) {
|
|
1208
|
+
const num = decoderConfig.displayAspectWidth * decoderConfig.codedHeight;
|
|
1209
|
+
const den = decoderConfig.displayAspectHeight * decoderConfig.codedWidth;
|
|
1210
|
+
if (num > den) {
|
|
1211
|
+
width = Math.round(width * num / den);
|
|
1212
|
+
}
|
|
1213
|
+
else {
|
|
1214
|
+
height = Math.round(height * den / num);
|
|
1162
1215
|
}
|
|
1163
|
-
masterPlaylistText += `,RESOLUTION=${width}x${height}`;
|
|
1164
1216
|
}
|
|
1217
|
+
if (videoTrack.metadata.rotation !== undefined
|
|
1218
|
+
&& videoTrack.metadata.rotation % 180 === 90) {
|
|
1219
|
+
[width, height] = [height, width];
|
|
1220
|
+
}
|
|
1221
|
+
masterPlaylistText += `,RESOLUTION=${width}x${height}`;
|
|
1165
1222
|
}
|
|
1166
1223
|
// FRAME-RATE is not defined for EXT-X-I-FRAME-STREAM-INF
|
|
1167
1224
|
if (!isKeyPacketsOnly && videoTrack.metadata.frameRate !== undefined) {
|
|
@@ -1201,9 +1258,11 @@ export class HlsMuxer extends Muxer {
|
|
|
1201
1258
|
groupIdTrackCount = 0;
|
|
1202
1259
|
masterPlaylistText += '\n';
|
|
1203
1260
|
hasHadDefaultTrackInGroup = false;
|
|
1261
|
+
namesInGroup.clear();
|
|
1204
1262
|
}
|
|
1205
1263
|
lastGroupId = decl.groupId;
|
|
1206
1264
|
groupIdTrackCount++;
|
|
1265
|
+
// Once subtitle tracks are supported, this logic is wrong (they need TYPE=SUBTITLES)
|
|
1207
1266
|
masterPlaylistText += `#EXT-X-MEDIA:TYPE=${type.toUpperCase()},GROUP-ID="${decl.groupId}"`;
|
|
1208
1267
|
if (name !== null && /[\n\r"]/.test(name)) {
|
|
1209
1268
|
Logging._warn('Dropping track name since it includes a line feed, carriage return, or double quote'
|
|
@@ -1212,7 +1271,13 @@ export class HlsMuxer extends Muxer {
|
|
|
1212
1271
|
}
|
|
1213
1272
|
// Name is required, so we have to set it to SOMETHING
|
|
1214
1273
|
name ??= `${languageCode ?? decl.groupId}-${groupIdTrackCount}`;
|
|
1215
|
-
|
|
1274
|
+
// The spec requires distinct names within a group
|
|
1275
|
+
let uniqueName = name;
|
|
1276
|
+
for (let i = 2; namesInGroup.has(uniqueName); i++) {
|
|
1277
|
+
uniqueName = `${name} (${i})`;
|
|
1278
|
+
}
|
|
1279
|
+
namesInGroup.add(uniqueName);
|
|
1280
|
+
masterPlaylistText += `,NAME="${uniqueName}"`;
|
|
1216
1281
|
if (languageCode !== undefined) {
|
|
1217
1282
|
masterPlaylistText += `,LANGUAGE="${languageCode}"`;
|
|
1218
1283
|
}
|
|
@@ -1227,7 +1292,7 @@ export class HlsMuxer extends Muxer {
|
|
|
1227
1292
|
if (dispositionPrimary || dispositionDefault) {
|
|
1228
1293
|
masterPlaylistText += ',AUTOSELECT=YES';
|
|
1229
1294
|
}
|
|
1230
|
-
if (dispositionForced) {
|
|
1295
|
+
if (dispositionForced && type === 'subtitle') { // The spec reserves FORCED for subtitle renditions
|
|
1231
1296
|
masterPlaylistText += ',FORCED=YES';
|
|
1232
1297
|
}
|
|
1233
1298
|
if (type === 'audio') {
|
|
@@ -1285,11 +1350,12 @@ export class HlsMuxer extends Muxer {
|
|
|
1285
1350
|
async finalize() {
|
|
1286
1351
|
const releases = await Promise.all(this.playlists.map(p => p.mutex.acquire()));
|
|
1287
1352
|
releases.forEach(release => release());
|
|
1288
|
-
for (const
|
|
1289
|
-
|
|
1353
|
+
for (const track of this.output.tracks) {
|
|
1354
|
+
this.closedTracks.add(track);
|
|
1290
1355
|
}
|
|
1291
1356
|
await Promise.all(this.playlists.map(playlist => (playlist.done ? Promise.resolve() : this.advancePlaylist(playlist))));
|
|
1292
1357
|
if (!this.isLive) {
|
|
1358
|
+
await Promise.all(this.playlists.map(playlist => this.writePlaylist(playlist)));
|
|
1293
1359
|
await this.writeMasterPlaylist();
|
|
1294
1360
|
}
|
|
1295
1361
|
}
|