agentroam-runtime-darwin-arm64 0.2.0-preview.79 → 0.2.0-preview.80
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 -2
- package/package.json +1 -1
- package/runtime/.next/BUILD_ID +1 -1
- package/runtime/.next/app-build-manifest.json +8 -8
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +3 -3
- package/runtime/.next/prerender-manifest.json +1 -1
- package/runtime/.next/required-server-files.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 +2 -2
- 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 +3 -3
- 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/calendar/route.js +2 -2
- package/runtime/.next/server/app/api/client-logs/route.js +1 -1
- package/runtime/.next/server/app/api/collaboration/route.js +2 -2
- package/runtime/.next/server/app/api/engine-threads/route.js +1 -1
- 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/internal/todo-bootstrap/route.js +1 -1
- package/runtime/.next/server/app/api/internal/todo-mcp/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/notifications/[id]/ack/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/route.js +1 -1
- package/runtime/.next/server/app/api/notifications/stream/route.js +2 -2
- 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 +3 -3
- package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
- package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
- package/runtime/.next/server/app/api/session-images/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/session-views/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 -1
- 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]/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]/switch-engine/route.js +1 -1
- 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 -1
- package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +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/todos/[id]/commands/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/executions/route.js +1 -1
- package/runtime/.next/server/app/api/todos/[id]/route.js +1 -1
- package/runtime/.next/server/app/api/todos/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/api/workspace-changes/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 +33 -33
- package/runtime/.next/server/chunks/1298.js +1 -1
- package/runtime/.next/server/chunks/5303.js +1 -1
- package/runtime/.next/server/chunks/6703.js +1 -1
- package/runtime/.next/server/chunks/9119.js +2 -2
- package/runtime/.next/server/chunks/9457.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/app/web/{error-fac7681c6397fcd7.js → error-f313c4014e78cef5.js} +1 -1
- package/runtime/.next/static/chunks/app/web/layout-80fa1b5f4c96b0b5.js +1 -0
- package/runtime/.next/static/chunks/app/web/page-2e962377e57d3383.js +1 -0
- package/runtime/.next/static/chunks/{main-app-0c7cccb2825ad747.js → main-app-ea4c5663714943e2.js} +1 -1
- package/runtime/lib/device-pairing-gateway.mjs +1 -1
- package/runtime/lib/pairing-page.mjs +5 -4
- package/runtime/lib/pwa-assets.mjs +3 -0
- package/runtime/lib/tunnel-control.mjs +38 -3
- 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 +129 -129
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +79 -75
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +52 -52
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0e6mn0ck.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0ssqfy51.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82ghff97.mjs +39 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-82yhcz2x.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b8jr1m8m.mjs +23 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-cj0jh226.mjs +17 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ebtbxtjf.mjs +28 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-pb4erfqh.mjs +42 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-664d5mmy.mjs → core-q4cwy1ja.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-rs058s2g.mjs +16 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-w6pv4szb.mjs +18 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wjeh40nr.mjs +20 -0
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/{core-70sfhqm6.mjs → core-zn1abzvs.mjs} +2 -2
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +12 -12
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +22 -22
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +26 -26
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +23 -22
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +83 -84
- package/runtime/node_modules/caniuse-lite/package.json +1 -1
- package/runtime/node_modules/mediabunny/README.md +0 -4
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +127 -185
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +11 -11
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +12 -12
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +127 -185
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +127 -185
- package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +0 -4
- package/runtime/node_modules/mediabunny/dist/modules/src/aes.js +4 -6
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +0 -6
- package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +5 -17
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +1 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +1 -12
- package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +18 -34
- package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +0 -3
- package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +8 -3
- package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +12 -5
- package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +5 -19
- package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +0 -4
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +13 -22
- package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +2 -2
- package/runtime/node_modules/mediabunny/dist/modules/src/segmented-input.js +65 -70
- 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/package.json +1 -1
- package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +0 -5
- package/runtime/node_modules/mediabunny/src/aes.ts +4 -7
- package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +0 -7
- package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +6 -19
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +1 -2
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +1 -15
- package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +19 -37
- package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +0 -4
- package/runtime/node_modules/mediabunny/src/media-sink.ts +12 -3
- package/runtime/node_modules/mediabunny/src/media-source.ts +20 -5
- package/runtime/node_modules/mediabunny/src/misc.ts +5 -26
- package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +0 -5
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +19 -30
- package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +2 -2
- package/runtime/node_modules/mediabunny/src/segmented-input.ts +79 -76
- package/runtime/node_modules/mediabunny/src/version.ts +1 -1
- package/runtime/package-lock.json +162 -162
- package/runtime/public/pwa/apple-touch-icon.png +0 -0
- package/runtime/public/pwa/icon-maskable-512.png +0 -0
- package/runtime/public/pwa/manifest.webmanifest +2 -1
- package/runtime/public/pwa/pairing-scan.js +32 -14
- package/runtime/server.js +1 -1
- package/runtime/webapp/dist/apple-touch-icon.png +0 -0
- package/runtime/webapp/dist/assets/{AIHubView-4kqTaPjO.js → AIHubView-CM6ugXG3.js} +1 -1
- package/runtime/webapp/dist/assets/{AgentManager-CDgiLqF_.js → AgentManager-dXI31b0a.js} +1 -1
- package/runtime/webapp/dist/assets/{AiHubPane-C070jRHe.js → AiHubPane-DFzC3nbd.js} +1 -1
- package/runtime/webapp/dist/assets/{App-iZlxRHaL.js → App-mF6ELC07.js} +4 -4
- package/runtime/webapp/dist/assets/{BrowserLivePanel-DxjgVXXK.js → BrowserLivePanel-CamAULwS.js} +1 -1
- package/runtime/webapp/dist/assets/{CalendarPage-CxPVBlzd.js → CalendarPage-BbYdGYWn.js} +1 -1
- package/runtime/webapp/dist/assets/{CalendarView-CS-OG-13.js → CalendarView-QfbrlL9X.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationCreateDialog-tI6S1cha.js → CollaborationCreateDialog-CWhmFQtA.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationDashboard-DSZa3Cns.js → CollaborationDashboard-XL5SnFOu.js} +1 -1
- package/runtime/webapp/dist/assets/{CollaborationPage-COyvllTJ.js → CollaborationPage-B1tiqgnG.js} +1 -1
- package/runtime/webapp/dist/assets/{FilePreview-CcJXlLge.js → FilePreview-CPY6dP8Q.js} +3 -3
- package/runtime/webapp/dist/assets/{FileTree-BuhW-pqR.js → FileTree-BBgrOian.js} +1 -1
- package/runtime/webapp/dist/assets/{FileWorkspaceDrawer-ByWXnJ0B.js → FileWorkspaceDrawer-BXDuKlrL.js} +1 -1
- package/runtime/webapp/dist/assets/{FlowStudioPane-CxQ-QIOf.js → FlowStudioPane-lnjLcd9c.js} +1 -1
- package/runtime/webapp/dist/assets/{HostProjectPicker--J4_JpSW.js → HostProjectPicker-DN_vGqQb.js} +1 -1
- package/runtime/webapp/dist/assets/{LSPServerList-fkagcDVv.js → LSPServerList-B-R7HDSP.js} +1 -1
- package/runtime/webapp/dist/assets/{MCPServerList-w7tetX3J.js → MCPServerList-CTc0iAwT.js} +1 -1
- package/runtime/webapp/dist/assets/{MemoryViewer-Xac9EeaV.js → MemoryViewer-Dzh_miRv.js} +1 -1
- package/runtime/webapp/dist/assets/{NewSessionWindow-C460-gxX.js → NewSessionWindow-zjqAUfKb.js} +1 -1
- package/runtime/webapp/dist/assets/{RemoteDesktopPage-BniHztmt.js → RemoteDesktopPage-9AhztqA2.js} +1 -1
- package/runtime/webapp/dist/assets/{RemoteDesktopTabBridge-BF1dFltY.js → RemoteDesktopTabBridge-BA_HQv3V.js} +1 -1
- package/runtime/webapp/dist/assets/{RunningSessionsIcon-D6rY-IzV.js → RunningSessionsIcon-BvFSI9OF.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboard-D868NjZ_.js → SessionDashboard-DcPPoXe2.js} +1 -1
- package/runtime/webapp/dist/assets/{SessionDashboardBridge-AhmhQ1Xn.js → SessionDashboardBridge-CjoeUy-v.js} +1 -1
- package/runtime/webapp/dist/assets/{SettingsPanel-DoDRBreZ.js → SettingsPanel-DmdXDQUm.js} +1 -1
- package/runtime/webapp/dist/assets/{SkillManager-Da7bpT-s.js → SkillManager-CS_skFZj.js} +1 -1
- package/runtime/webapp/dist/assets/{TaskPaneTerminal-DTDU88Rr.js → TaskPaneTerminal-BFHDRCb9.js} +1 -1
- package/runtime/webapp/dist/assets/{TerminalPane-_dVVs00I.js → TerminalPane-Dr_nY9pI.js} +1 -1
- package/runtime/webapp/dist/assets/TodoPage-guIvBCW0.js +1 -0
- package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-D3GW7M1R.js → abnfDiagram-VCTEODGH-FEEApB15.js} +1 -1
- package/runtime/webapp/dist/assets/{arc-CkEemU1L.js → arc-CycwMc2c.js} +1 -1
- package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-GYQtcFLY.js → architectureDiagram-5GKGNRK7-BFq9JapX.js} +1 -1
- package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-D5_bj13P.js → blockDiagram-I7D4REHJ-DkOJ55Ag.js} +1 -1
- package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-Cyg1YunN.js → c4Diagram-7LVT6UL2-CRvi_3RM.js} +1 -1
- package/runtime/webapp/dist/assets/{calendar-days-B1Mn3x8A.js → calendar-days-CLwKstxM.js} +1 -1
- package/runtime/webapp/dist/assets/channel-BwDuyJO4.js +1 -0
- package/runtime/webapp/dist/assets/{check-D-yTByNl.js → check-8EVJMrTV.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-down-hiPnZS_M.js → chevron-down-ChNxfI2x.js} +1 -1
- package/runtime/webapp/dist/assets/{chevron-right-DKsui_wS.js → chevron-right-Cbkc_d70.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-ZYdmLJUM.js → chunk-2Q5K7J3B-Cklzvs8u.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-C-zA5MxE.js → chunk-5VM5RSS4-NxozE5UP.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-F27PBJKO-cWERJSPb.js → chunk-F27PBJKO-Dyb8E7YM.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-BDqkH2_j.js → chunk-IMKFNOWR-BqbMMc1n.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-D0hOf4wm.js → chunk-JWPE2WC7-do0R2H6U.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-bGKHqXLU.js → chunk-POPQ4Y6H-B2HIaynf.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-SVP7TREG-DbzwWcno.js → chunk-SVP7TREG-C_zmjkwn.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-TICWLB2K-CmCx8YTb.js → chunk-TICWLB2K-Dh2bZgM1.js} +1 -1
- package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-COAufrJq.js → chunk-XXDRQBXY-CnqciVDz.js} +1 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-BfyV8P0w.js +1 -0
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-BfyV8P0w.js +1 -0
- package/runtime/webapp/dist/assets/{client-5Hu1eVTX.js → client-I0ZVCjOI.js} +1 -1
- package/runtime/webapp/dist/assets/{codeSyntax-Jy5nWtHv.js → codeSyntax-C8n4_KZS.js} +1 -1
- package/runtime/webapp/dist/assets/{collaboration-DRFqpcAz.js → collaboration-lVxWL5ce.js} +1 -1
- package/runtime/webapp/dist/assets/{composer-file-routing-BtvXnu_o.js → composer-file-routing-qSvJpT-v.js} +1 -1
- package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-BU8MmGqT.js → cose-bilkent-JH36ORCC-CulKVUkj.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-BHXgPQGq.js → cynefin-OW5HDTMX-C1LUI1_G.js} +1 -1
- package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-DSJJ_PpM.js → cynefinDiagram-5FMLGOSQ-D3Ymzw_P.js} +1 -1
- package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-pJr8jDyF.js → dagre-GXQ25YYZ-DRaL0cGu.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-BZ_7PPQn.js → diagram-S7CK7UJ4-D8gLHoZo.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-c8pu5Rp4.js → diagram-UQ7AKVKN-CaVU0aQT.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-D1xao_j-.js → diagram-VSXAHHWV-LFAKRvZz.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-VX7I27RA-CnBWGCHa.js → diagram-VX7I27RA-DXpxUERc.js} +1 -1
- package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-D-TCo4OF.js → diagram-Z3DM3KII-vAiik55G.js} +1 -1
- package/runtime/webapp/dist/assets/{download-B2jLl85N.js → download-BE31-Qm0.js} +1 -1
- package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-BGBuf1T3.js → ebnfDiagram-PWID7BFC-MaFL7Kgb.js} +1 -1
- package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-D8rCYH4y.js → erDiagram-RLTQ6QDP-DuEu79B3.js} +1 -1
- package/runtime/webapp/dist/assets/{file-types-BZ8YZAV-.js → file-types-ZVLWtslN.js} +1 -1
- package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BJGQL6in.js → flowDiagram-HODETNUW-BAQ6nP2D.js} +1 -1
- package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-K9o-Kk2M.js → ganttDiagram-EL5Y4UJY-C48VBnPy.js} +1 -1
- package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-BC2r8pLT.js → gitGraphDiagram-WWUBYQGX-BfWAh9Kr.js} +1 -1
- package/runtime/webapp/dist/assets/{history-Ci0s2eVL.js → history-D4E3D_aM.js} +1 -1
- package/runtime/webapp/dist/assets/{image-plus-Cx4LQVvj.js → image-plus-DQV_EEAN.js} +1 -1
- package/runtime/webapp/dist/assets/{index-D1AQffdA.js → index-DSgLFE4Q.js} +3 -3
- package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-bFnrh7W7.js → infoDiagram-27XIBGKW-BM7P_-u_.js} +1 -1
- package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-Qun77xRt.js → ishikawaDiagram-5VMMS53U-Cwd8XR-p.js} +1 -1
- package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-DjCfoBNX.js → journeyDiagram-3NMN7TZE-MOgiksTh.js} +1 -1
- package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-BJGlhVsx.js → kanban-definition-UXKFOSKX-DulC5OLL.js} +1 -1
- package/runtime/webapp/dist/assets/{layout-CYTxygXU.js → layout-Dku9sXQ7.js} +1 -1
- package/runtime/webapp/dist/assets/{linear-CzJGOwUm.js → linear-B3-dddD7.js} +1 -1
- package/runtime/webapp/dist/assets/{list-todo-CP9DqU2D.js → list-todo-Bik5IY2r.js} +1 -1
- package/runtime/webapp/dist/assets/{loader-circle-xEKTnlp3.js → loader-circle-C5C-IzGK.js} +1 -1
- package/runtime/webapp/dist/assets/{locate-fixed-CfEojGOl.js → locate-fixed-CHkezEEh.js} +1 -1
- package/runtime/webapp/dist/assets/{mermaid.core-BTbaaIjb.js → mermaid.core-CRRXKysA.js} +5 -5
- package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-eiKdbp4J.js → mindmap-definition-YA3MSWOX-CaaP-nEb.js} +1 -1
- package/runtime/webapp/dist/assets/{mobileViewport-DF1R6qR2.js → mobileViewport-CekmYKqS.js} +1 -1
- package/runtime/webapp/dist/assets/{new-session-window-BtGAiW4A.css → new-session-window-BfDMd-h3.css} +1 -1
- package/runtime/webapp/dist/assets/{new-session-window-BFILhYAe.js → new-session-window-Dgl7UWPR.js} +26 -26
- package/runtime/webapp/dist/assets/page-_fFyRId-.js +86 -0
- package/runtime/webapp/dist/assets/{pause-C-ecDo3W.js → pause-BsmUCuwZ.js} +1 -1
- package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-BuvePvoF.js → pegDiagram-XKGWAZYB-BqybPEwk.js} +1 -1
- package/runtime/webapp/dist/assets/{pieDiagram-E7YTZNPT-Csgh2lYE.js → pieDiagram-E7YTZNPT-BX1H2lh2.js} +1 -1
- package/runtime/webapp/dist/assets/{pin-CjmuX5Tq.js → pin-BsEEYq8M.js} +1 -1
- package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-8Bbl_RHv.js → quadrantDiagram-AXDQQJYC-Btnywv1k.js} +1 -1
- package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-CvYQkIeK.js → railroadDiagram-O6MQD6OU-Da_TV1ER.js} +1 -1
- package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-CytOuQX4.js → requirementDiagram-BXWQKSXE-5V1Aow9h.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-ccw-HY6j6nBt.js → rotate-ccw-BbSby0GQ.js} +1 -1
- package/runtime/webapp/dist/assets/{rotate-cw-CyYR2IEw.js → rotate-cw-BMdX-ln4.js} +1 -1
- package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-BoyI7ZhF.js → sankeyDiagram-P5KCCOFB-D_OIVihV.js} +1 -1
- package/runtime/webapp/dist/assets/{send-jSK0YaRl.js → send-Cb7EWSJF.js} +1 -1
- package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-Ckvtmn2N.js → sequenceDiagram-WJ2MYXX4-LKeF5Mri.js} +1 -1
- package/runtime/webapp/dist/assets/{session-dashboard-B4lyuZYF.js → session-dashboard-BFqNDCc8.js} +1 -1
- package/runtime/webapp/dist/assets/{session-tree-CEy-pW8A.js → session-tree-BK_qaCnb.js} +1 -1
- package/runtime/webapp/dist/assets/{shield-check-CFebh9do.js → shield-check-C-r87aMq.js} +1 -1
- package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-yUQjHNrI.js → sizeCapture-INFHLROL-B6j7Q_MN.js} +1 -1
- package/runtime/webapp/dist/assets/{stateDiagram-D77RDMKH-Dj8oPHDB.js → stateDiagram-D77RDMKH-zhPFqHdQ.js} +1 -1
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-DWnBZAiI.js +1 -0
- package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-GDjg8QNS.js → swimlanes-42K2YHIH-C_FCENx1.js} +1 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-DOZCbCJP.js +8 -0
- package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-DFDHsxzp.js → timeline-definition-24CTP7MA-C3DBXjDU.js} +1 -1
- package/runtime/webapp/dist/assets/{trash-2-BF9eI5Bh.js → trash-2-DjggJGbw.js} +1 -1
- package/runtime/webapp/dist/assets/{types-BuPq0iQM.js → types-BQCEWNQz.js} +1 -1
- package/runtime/webapp/dist/assets/{use-session-activity-Ceb8OBjB.js → use-session-activity-BbTXGW7Z.js} +1 -1
- package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-DR5HBqo1.js → vennDiagram-4TSXK5OY-CssdTIB0.js} +1 -1
- package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-Bb6pROnE.js → wardleyDiagram-VM6X3IG4-C58K2vVU.js} +1 -1
- package/runtime/webapp/dist/assets/{web-BV7fxnr4.js → web-B4y8vdRZ.js} +1 -1
- package/runtime/webapp/dist/assets/{web-C8kCU9om.js → web-D9rJZXHW.js} +1 -1
- package/runtime/webapp/dist/assets/{x-uSekqXJV.js → x-BYUglEo9.js} +1 -1
- package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-CrpaVklx.js → xychartDiagram-S5SC5T6Z-CQi8bD6A.js} +1 -1
- package/runtime/webapp/dist/assets/{zoom-out-B59mGU6c.js → zoom-out-iMMWRXJs.js} +1 -1
- package/runtime/webapp/dist/index.html +2 -2
- package/runtime/.next/static/chunks/app/web/layout-79492e587e5930cf.js +0 -1
- package/runtime/.next/static/chunks/app/web/page-0f06deb6eb4d49e0.js +0 -1
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-2g5j09ba.mjs +0 -16
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-59ydwk0g.mjs +0 -17
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-95gcz3n1.mjs +0 -38
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ew5sfvfe.mjs +0 -39
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gjhs7gf6.mjs +0 -20
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-kvdt1szx.mjs +0 -18
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-p654hjkr.mjs +0 -22
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-q9bjbxkv.mjs +0 -19
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-samdvsjh.mjs +0 -33
- package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x6bt758j.mjs +0 -17
- package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.worker.js +0 -8
- package/runtime/node_modules/mediabunny/dist/modules/src/worker.js +0 -26
- package/runtime/node_modules/mediabunny/src/worker.ts +0 -28
- package/runtime/webapp/dist/assets/TodoPage-Bqu8bqNk.js +0 -1
- package/runtime/webapp/dist/assets/channel-CnNsi-lz.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-DVRTvUTS.js +0 -1
- package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-DVRTvUTS.js +0 -1
- package/runtime/webapp/dist/assets/page-B-CkpInM.js +0 -86
- package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Csg946NK.js +0 -1
- package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-BUnuRfXp.js +0 -8
- /package/runtime/.next/static/{Ra6nQooMsDWN9-yjPL93f → 57IUKkg-db8mOGDMma8be}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{Ra6nQooMsDWN9-yjPL93f → 57IUKkg-db8mOGDMma8be}/_ssgManifest.js +0 -0
|
@@ -1228,7 +1228,7 @@ var Mediabunny = (() => {
|
|
|
1228
1228
|
var shouldUseNativeTimers = () => {
|
|
1229
1229
|
return typeof window === "undefined";
|
|
1230
1230
|
};
|
|
1231
|
-
var
|
|
1231
|
+
var unthrottledTimerWorkerMain = () => {
|
|
1232
1232
|
const timeoutHandles = /* @__PURE__ */ new Map();
|
|
1233
1233
|
const intervalHandles = /* @__PURE__ */ new Map();
|
|
1234
1234
|
self.onmessage = (event) => {
|
|
@@ -1280,7 +1280,10 @@ var Mediabunny = (() => {
|
|
|
1280
1280
|
if (unthrottledTimerWorker) {
|
|
1281
1281
|
return unthrottledTimerWorker;
|
|
1282
1282
|
}
|
|
1283
|
-
|
|
1283
|
+
const workerSource = `(${unthrottledTimerWorkerMain.toString()})();`;
|
|
1284
|
+
const workerURL = URL.createObjectURL(new Blob([workerSource], { type: "text/javascript" }));
|
|
1285
|
+
unthrottledTimerWorker = new Worker(workerURL);
|
|
1286
|
+
URL.revokeObjectURL(workerURL);
|
|
1284
1287
|
unthrottledTimerWorker.onmessage = (event) => {
|
|
1285
1288
|
const message = event.data;
|
|
1286
1289
|
const timeoutCallback = unthrottledTimeoutCallbacks.get(message.timerId);
|
|
@@ -1296,24 +1299,6 @@ var Mediabunny = (() => {
|
|
|
1296
1299
|
};
|
|
1297
1300
|
return unthrottledTimerWorker;
|
|
1298
1301
|
};
|
|
1299
|
-
var workerBlobUrls = /* @__PURE__ */ new Map();
|
|
1300
|
-
var createWorker = (name, workerMain) => {
|
|
1301
|
-
const workerUrl = globalThis[Symbol.for("mediabunny:workerUrl")];
|
|
1302
|
-
if (workerUrl !== void 0 && typeof workerUrl !== "string" && !(workerUrl instanceof URL)) {
|
|
1303
|
-
throw new TypeError(
|
|
1304
|
-
"globalThis[Symbol.for('mediabunny:workerUrl')], when provided, must be a string or URL."
|
|
1305
|
-
);
|
|
1306
|
-
}
|
|
1307
|
-
if (workerUrl !== void 0) {
|
|
1308
|
-
return new Worker(workerUrl, { name });
|
|
1309
|
-
}
|
|
1310
|
-
let blobUrl = workerBlobUrls.get(workerMain);
|
|
1311
|
-
if (!blobUrl) {
|
|
1312
|
-
blobUrl = URL.createObjectURL(new Blob([`(${workerMain.toString()})();`], { type: "text/javascript" }));
|
|
1313
|
-
workerBlobUrls.set(workerMain, blobUrl);
|
|
1314
|
-
}
|
|
1315
|
-
return new Worker(blobUrl, { name });
|
|
1316
|
-
};
|
|
1317
1302
|
var setIntervalUnthrottled = (callback, delay) => {
|
|
1318
1303
|
if (shouldUseNativeTimers()) {
|
|
1319
1304
|
return { id: setInterval(callback, delay) };
|
|
@@ -2402,7 +2387,7 @@ var Mediabunny = (() => {
|
|
|
2402
2387
|
var TRUEHD_MAJOR_SYNC_WORD = 4168249274;
|
|
2403
2388
|
|
|
2404
2389
|
// src/version.ts
|
|
2405
|
-
var VERSION = "1.66.
|
|
2390
|
+
var VERSION = "1.66.2";
|
|
2406
2391
|
var VERSIONED_NAME = `Mediabunny v${VERSION}`;
|
|
2407
2392
|
|
|
2408
2393
|
// src/codec-data.ts
|
|
@@ -9420,9 +9405,10 @@ var Mediabunny = (() => {
|
|
|
9420
9405
|
return new ReadableStream({
|
|
9421
9406
|
pull: async (controller) => {
|
|
9422
9407
|
try {
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9408
|
+
if (!initted) {
|
|
9409
|
+
aesContext.init(await getInit());
|
|
9410
|
+
initted = true;
|
|
9411
|
+
}
|
|
9426
9412
|
const requestedLength = CHUNK_SIZE + BLOCK_SIZE;
|
|
9427
9413
|
let nextSlice = reader.requestSliceRange(pos, 0, requestedLength);
|
|
9428
9414
|
if (isThenable(nextSlice)) nextSlice = await nextSlice;
|
|
@@ -9436,10 +9422,6 @@ var Mediabunny = (() => {
|
|
|
9436
9422
|
const bytesToRead = sliceLength === requestedLength ? sliceLength - BLOCK_SIZE : sliceLength;
|
|
9437
9423
|
const input = readBytes(nextSlice, bytesToRead);
|
|
9438
9424
|
const output = new Uint8Array(bytesToRead);
|
|
9439
|
-
if (initPromise) {
|
|
9440
|
-
aesContext.init(await initPromise);
|
|
9441
|
-
initted = true;
|
|
9442
|
-
}
|
|
9443
9425
|
for (let i = 0; i < bytesToRead; i += 16) {
|
|
9444
9426
|
aesContext.in.set(input.subarray(i, i + 16));
|
|
9445
9427
|
aesContext.decrypt();
|
|
@@ -9570,10 +9552,7 @@ var Mediabunny = (() => {
|
|
|
9570
9552
|
}
|
|
9571
9553
|
currentPos = startPos + boxInfo.totalSize;
|
|
9572
9554
|
}
|
|
9573
|
-
if (!foundMovieBoxes) {
|
|
9574
|
-
if (!this.input._initInput) {
|
|
9575
|
-
throw new Error('No "moov" box found; the file is invalid or incomplete.');
|
|
9576
|
-
}
|
|
9555
|
+
if (!foundMovieBoxes && this.input._initInput) {
|
|
9577
9556
|
await this.copyMetadataFromInitInput(this.input._initInput);
|
|
9578
9557
|
}
|
|
9579
9558
|
if (lookForMfraBox) {
|
|
@@ -12178,10 +12157,6 @@ var Mediabunny = (() => {
|
|
|
12178
12157
|
if (!sampleInfo) {
|
|
12179
12158
|
return null;
|
|
12180
12159
|
}
|
|
12181
|
-
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12182
|
-
if (fileSize !== null && sampleInfo.sampleOffset + sampleInfo.sampleSize > fileSize) {
|
|
12183
|
-
return null;
|
|
12184
|
-
}
|
|
12185
12160
|
let data;
|
|
12186
12161
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12187
12162
|
data = PLACEHOLDER_DATA;
|
|
@@ -12236,10 +12211,6 @@ var Mediabunny = (() => {
|
|
|
12236
12211
|
const trackData = fragment.trackData.get(this.internalTrack.id);
|
|
12237
12212
|
const fragmentSample = trackData.samples[sampleIndex];
|
|
12238
12213
|
assert(fragmentSample);
|
|
12239
|
-
const fileSize = this.internalTrack.demuxer.reader.fileSize;
|
|
12240
|
-
if (fileSize !== null && fragmentSample.byteOffset + fragmentSample.byteSize > fileSize) {
|
|
12241
|
-
return null;
|
|
12242
|
-
}
|
|
12243
12214
|
let data;
|
|
12244
12215
|
if (options.metadataOnly && this.internalTrack.info?.codec !== "eac3") {
|
|
12245
12216
|
data = PLACEHOLDER_DATA;
|
|
@@ -13662,9 +13633,6 @@ var Mediabunny = (() => {
|
|
|
13662
13633
|
assertDefinedSize(size);
|
|
13663
13634
|
currentPos = dataStartPos + size;
|
|
13664
13635
|
}
|
|
13665
|
-
if (this.segments.length === 0) {
|
|
13666
|
-
throw new Error("No Segment element found; the file is invalid or incomplete.");
|
|
13667
|
-
}
|
|
13668
13636
|
})();
|
|
13669
13637
|
}
|
|
13670
13638
|
async readSegment(segmentDataStart, dataSize) {
|
|
@@ -17309,10 +17277,6 @@ var Mediabunny = (() => {
|
|
|
17309
17277
|
if (!rawSample) {
|
|
17310
17278
|
return null;
|
|
17311
17279
|
}
|
|
17312
|
-
const fileSize = this.demuxer.reader.fileSize;
|
|
17313
|
-
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
17314
|
-
return null;
|
|
17315
|
-
}
|
|
17316
17280
|
let data;
|
|
17317
17281
|
if (options.metadataOnly) {
|
|
17318
17282
|
data = PLACEHOLDER_DATA;
|
|
@@ -19133,10 +19097,6 @@ var Mediabunny = (() => {
|
|
|
19133
19097
|
if (!rawSample) {
|
|
19134
19098
|
return null;
|
|
19135
19099
|
}
|
|
19136
|
-
const fileSize = this.demuxer.reader.fileSize;
|
|
19137
|
-
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
19138
|
-
return null;
|
|
19139
|
-
}
|
|
19140
19100
|
let data;
|
|
19141
19101
|
if (options.metadataOnly) {
|
|
19142
19102
|
data = PLACEHOLDER_DATA;
|
|
@@ -19922,7 +19882,6 @@ var Mediabunny = (() => {
|
|
|
19922
19882
|
let programMapPid = null;
|
|
19923
19883
|
let hasProgramAssociationTable = false;
|
|
19924
19884
|
let hasProgramMap = false;
|
|
19925
|
-
let initDemuxer = null;
|
|
19926
19885
|
while (true) {
|
|
19927
19886
|
const packetHeader = await this.readPacketHeader(currentPos);
|
|
19928
19887
|
if (!packetHeader) {
|
|
@@ -20163,26 +20122,22 @@ var Mediabunny = (() => {
|
|
|
20163
20122
|
}
|
|
20164
20123
|
elementaryStream.firstSection = section;
|
|
20165
20124
|
elementaryStream.canBeTrustedWithKeyPackets = section.randomAccessIndicator === 1;
|
|
20125
|
+
if (this.input._initInput) {
|
|
20126
|
+
const initDemuxer = await this.input._initInput._getDemuxer();
|
|
20127
|
+
if (initDemuxer.constructor !== _MpegTsDemuxer) {
|
|
20128
|
+
throw new Error("Init input must match the input's format.");
|
|
20129
|
+
}
|
|
20130
|
+
await initDemuxer.readMetadata();
|
|
20131
|
+
const matchingStream = initDemuxer.elementaryStreams.find((x) => x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized);
|
|
20132
|
+
if (matchingStream) {
|
|
20133
|
+
elementaryStream.info = matchingStream.info;
|
|
20134
|
+
elementaryStream.initialized = true;
|
|
20135
|
+
break outer;
|
|
20136
|
+
}
|
|
20137
|
+
}
|
|
20166
20138
|
const context = new PacketReadingContext(elementaryStream, section.startPos);
|
|
20167
20139
|
if (elementaryStream.info.type === "video") {
|
|
20168
|
-
let packetCount = 0;
|
|
20169
20140
|
while (true) {
|
|
20170
|
-
if (packetCount === 1 && this.input._initInput) {
|
|
20171
|
-
if (!initDemuxer) {
|
|
20172
|
-
initDemuxer = await this.input._initInput._getDemuxer();
|
|
20173
|
-
if (initDemuxer.constructor !== _MpegTsDemuxer) {
|
|
20174
|
-
throw new Error("Init input must match the input's format.");
|
|
20175
|
-
}
|
|
20176
|
-
await initDemuxer.readMetadata();
|
|
20177
|
-
}
|
|
20178
|
-
const matchingStream = initDemuxer.elementaryStreams.find((x) => x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized);
|
|
20179
|
-
if (matchingStream) {
|
|
20180
|
-
elementaryStream.info = matchingStream.info;
|
|
20181
|
-
elementaryStream.initialized = true;
|
|
20182
|
-
break outer;
|
|
20183
|
-
}
|
|
20184
|
-
}
|
|
20185
|
-
packetCount++;
|
|
20186
20141
|
const contextAlias = context;
|
|
20187
20142
|
contextAlias.suppliedPacket = null;
|
|
20188
20143
|
await context.markNextPacket();
|
|
@@ -21935,7 +21890,7 @@ var Mediabunny = (() => {
|
|
|
21935
21890
|
if (!this.firstSegment) {
|
|
21936
21891
|
return [];
|
|
21937
21892
|
}
|
|
21938
|
-
const input = this.getInputForSegment(this.firstSegment
|
|
21893
|
+
const input = this.getInputForSegment(this.firstSegment);
|
|
21939
21894
|
const inputTracks = await input.getTracks();
|
|
21940
21895
|
for (const track of inputTracks) {
|
|
21941
21896
|
if (track.type === "video") {
|
|
@@ -22003,34 +21958,34 @@ var Mediabunny = (() => {
|
|
|
22003
21958
|
constructor(segmentedInput, decl, number) {
|
|
22004
21959
|
this.packetInfos = /* @__PURE__ */ new WeakMap();
|
|
22005
21960
|
this.hydrationPromise = null;
|
|
22006
|
-
this.
|
|
21961
|
+
this.firstInputTrack = null;
|
|
21962
|
+
this.firstSegment = null;
|
|
22007
21963
|
this.segmentedInput = segmentedInput;
|
|
22008
21964
|
this.decl = decl;
|
|
22009
21965
|
this.number = number;
|
|
22010
21966
|
}
|
|
22011
21967
|
hydrate() {
|
|
22012
21968
|
return this.hydrationPromise ??= (async () => {
|
|
22013
|
-
|
|
21969
|
+
this.segmentedInput.firstSegment ??= await this.segmentedInput.getFirstSegment({});
|
|
21970
|
+
if (!this.segmentedInput.firstSegment) {
|
|
21971
|
+
throw new Error("Missing first segment, can't retrieve track.");
|
|
21972
|
+
}
|
|
21973
|
+
let currentSegment = this.segmentedInput.firstSegment;
|
|
22014
21974
|
let track = null;
|
|
22015
|
-
|
|
22016
|
-
const
|
|
21975
|
+
while (currentSegment) {
|
|
21976
|
+
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
21977
|
+
const inputTracks = await input.getTracks();
|
|
22017
21978
|
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
22018
|
-
|
|
22019
|
-
|
|
22020
|
-
while (currentSegment) {
|
|
22021
|
-
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22022
|
-
const inputTracks = await input.getTracks();
|
|
22023
|
-
track = inputTracks.find((x) => x.type === this.decl.type && x.number === this.number) ?? null;
|
|
22024
|
-
if (track) {
|
|
22025
|
-
break;
|
|
22026
|
-
}
|
|
22027
|
-
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
21979
|
+
if (track) {
|
|
21980
|
+
break;
|
|
22028
21981
|
}
|
|
21982
|
+
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {});
|
|
22029
21983
|
}
|
|
22030
21984
|
if (!track) {
|
|
22031
21985
|
throw new Error("No matching track found in underlying media data.");
|
|
22032
21986
|
}
|
|
22033
|
-
this.
|
|
21987
|
+
this.firstInputTrack = track;
|
|
21988
|
+
this.firstSegment = currentSegment;
|
|
22034
21989
|
})();
|
|
22035
21990
|
}
|
|
22036
21991
|
getType() {
|
|
@@ -22041,52 +21996,53 @@ var Mediabunny = (() => {
|
|
|
22041
21996
|
}
|
|
22042
21997
|
/** If the backing track is already present, delegate synchronously; otherwise, hydrate first. */
|
|
22043
21998
|
delegate(fn) {
|
|
22044
|
-
if (this.
|
|
21999
|
+
if (this.firstInputTrack) {
|
|
22045
22000
|
return fn();
|
|
22046
22001
|
}
|
|
22047
22002
|
return this.hydrate().then(fn);
|
|
22048
22003
|
}
|
|
22049
22004
|
async getDecoderConfig() {
|
|
22050
|
-
return this.delegate(() => this.
|
|
22005
|
+
return this.delegate(() => this.firstInputTrack._backing.getDecoderConfig());
|
|
22051
22006
|
}
|
|
22052
22007
|
getHasOnlyKeyPackets() {
|
|
22053
22008
|
return this.delegate(() => {
|
|
22054
|
-
return this.segmentedInput.hasOnlyKeyPackets || (this.
|
|
22009
|
+
return this.segmentedInput.hasOnlyKeyPackets || (this.firstInputTrack._backing.getHasOnlyKeyPackets?.() ?? null);
|
|
22055
22010
|
});
|
|
22056
22011
|
}
|
|
22057
22012
|
getPairingMask() {
|
|
22058
22013
|
return 1n;
|
|
22059
22014
|
}
|
|
22060
22015
|
getCodec() {
|
|
22061
|
-
return this.delegate(() => this.
|
|
22016
|
+
return this.delegate(() => this.firstInputTrack._backing.getCodec());
|
|
22062
22017
|
}
|
|
22063
22018
|
getInternalCodecId() {
|
|
22064
|
-
return this.delegate(() => this.
|
|
22019
|
+
return this.delegate(() => this.firstInputTrack._backing.getInternalCodecId());
|
|
22065
22020
|
}
|
|
22066
22021
|
getDisposition() {
|
|
22067
|
-
return this.delegate(() => this.
|
|
22022
|
+
return this.delegate(() => this.firstInputTrack._backing.getDisposition());
|
|
22068
22023
|
}
|
|
22069
22024
|
getLanguageCode() {
|
|
22070
|
-
return this.delegate(() => this.
|
|
22025
|
+
return this.delegate(() => this.firstInputTrack._backing.getLanguageCode());
|
|
22071
22026
|
}
|
|
22072
22027
|
getName() {
|
|
22073
|
-
return this.delegate(() => this.
|
|
22028
|
+
return this.delegate(() => this.firstInputTrack._backing.getName());
|
|
22074
22029
|
}
|
|
22075
22030
|
getTimeResolution() {
|
|
22076
|
-
return this.delegate(() => this.
|
|
22031
|
+
return this.delegate(() => this.firstInputTrack._backing.getTimeResolution());
|
|
22077
22032
|
}
|
|
22078
22033
|
async isRelativeToUnixEpoch() {
|
|
22079
|
-
|
|
22080
|
-
|
|
22034
|
+
await this.hydrate();
|
|
22035
|
+
assert(this.segmentedInput.firstSegment);
|
|
22036
|
+
return this.segmentedInput.firstSegment.unixEpochTimestamp === this.segmentedInput.firstSegment.timestamp;
|
|
22081
22037
|
}
|
|
22082
22038
|
getUnixTimeForTimestamp(timestamp) {
|
|
22083
22039
|
return this.segmentedInput.getUnixTimeForTimestamp(timestamp);
|
|
22084
22040
|
}
|
|
22085
22041
|
getBitrate() {
|
|
22086
|
-
return this.delegate(() => this.
|
|
22042
|
+
return this.delegate(() => this.firstInputTrack._backing.getBitrate());
|
|
22087
22043
|
}
|
|
22088
22044
|
getAverageBitrate() {
|
|
22089
|
-
return this.delegate(() => this.
|
|
22045
|
+
return this.delegate(() => this.firstInputTrack._backing.getAverageBitrate());
|
|
22090
22046
|
}
|
|
22091
22047
|
getDurationFromMetadata(options) {
|
|
22092
22048
|
return this.segmentedInput.getDurationFromMetadata(options);
|
|
@@ -22096,9 +22052,9 @@ var Mediabunny = (() => {
|
|
|
22096
22052
|
}
|
|
22097
22053
|
async createAdjustedPacket(packet, segment, track) {
|
|
22098
22054
|
assert(packet.sequenceNumber >= 0);
|
|
22099
|
-
|
|
22055
|
+
assert(this.segmentedInput.firstSegment);
|
|
22100
22056
|
const mediaOffset = await this.segmentedInput.getMediaOffset(segment, track.input);
|
|
22101
|
-
const segmentTimestampRelativeToFirst = segment.timestamp - firstSegment.timestamp;
|
|
22057
|
+
const segmentTimestampRelativeToFirst = segment.timestamp - this.segmentedInput.firstSegment.timestamp;
|
|
22102
22058
|
const modified = packet.clone({
|
|
22103
22059
|
timestamp: roundToDivisor(
|
|
22104
22060
|
packet.timestamp + mediaOffset,
|
|
@@ -22116,33 +22072,30 @@ var Mediabunny = (() => {
|
|
|
22116
22072
|
return modified;
|
|
22117
22073
|
}
|
|
22118
22074
|
async getFirstPacket(options) {
|
|
22119
|
-
|
|
22120
|
-
|
|
22121
|
-
|
|
22122
|
-
let
|
|
22123
|
-
|
|
22124
|
-
|
|
22125
|
-
|
|
22126
|
-
|
|
22127
|
-
if (track) {
|
|
22128
|
-
const packet = await track._backing.getFirstPacket(options);
|
|
22075
|
+
await this.hydrate();
|
|
22076
|
+
assert(this.firstInputTrack);
|
|
22077
|
+
assert(this.firstSegment);
|
|
22078
|
+
let currentTrack = this.firstInputTrack;
|
|
22079
|
+
let currentSegment = this.firstSegment;
|
|
22080
|
+
while (true) {
|
|
22081
|
+
if (currentTrack) {
|
|
22082
|
+
const packet = await currentTrack._backing.getFirstPacket(options);
|
|
22129
22083
|
if (packet) {
|
|
22130
|
-
return this.createAdjustedPacket(packet, currentSegment,
|
|
22084
|
+
return this.createAdjustedPacket(packet, currentSegment, currentTrack);
|
|
22131
22085
|
}
|
|
22132
22086
|
}
|
|
22133
22087
|
currentSegment = await this.segmentedInput.getNextSegment(currentSegment, {
|
|
22134
22088
|
skipLiveWait: options.skipLiveWait
|
|
22135
22089
|
});
|
|
22090
|
+
if (!currentSegment) {
|
|
22091
|
+
break;
|
|
22092
|
+
}
|
|
22093
|
+
const nextInput = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22094
|
+
const nextTracks = await nextInput.getTracks();
|
|
22095
|
+
currentTrack = nextTracks.find((t) => t.type === this.firstInputTrack.type && t.number === this.firstInputTrack.number) ?? null;
|
|
22136
22096
|
}
|
|
22137
22097
|
return null;
|
|
22138
22098
|
}
|
|
22139
|
-
async getFirstSegment() {
|
|
22140
|
-
this.segmentedInput.firstSegment ??= await this.segmentedInput.getFirstSegment({});
|
|
22141
|
-
if (!this.segmentedInput.firstSegment) {
|
|
22142
|
-
throw new Error("Missing first segment, can't retrieve track.");
|
|
22143
|
-
}
|
|
22144
|
-
return this.segmentedInput.firstSegment;
|
|
22145
|
-
}
|
|
22146
22099
|
getNextPacket(packet, options) {
|
|
22147
22100
|
return this._getNextInternal(packet, options, false);
|
|
22148
22101
|
}
|
|
@@ -22198,12 +22151,11 @@ var Mediabunny = (() => {
|
|
|
22198
22151
|
if (!currentSegment) {
|
|
22199
22152
|
return null;
|
|
22200
22153
|
}
|
|
22201
|
-
|
|
22202
|
-
});
|
|
22154
|
+
await this.hydrate();
|
|
22203
22155
|
while (currentSegment) {
|
|
22204
22156
|
const input = this.segmentedInput.getInputForSegment(currentSegment);
|
|
22205
22157
|
const tracks = await input.getTracks();
|
|
22206
|
-
const track = tracks.find((t) => t.type === this.
|
|
22158
|
+
const track = tracks.find((t) => t.type === this.firstInputTrack.type && t.number === this.firstInputTrack.number);
|
|
22207
22159
|
if (!track) {
|
|
22208
22160
|
currentSegment = await this.segmentedInput.getPreviousSegment(currentSegment, {
|
|
22209
22161
|
skipLiveWait: options.skipLiveWait
|
|
@@ -22243,7 +22195,7 @@ var Mediabunny = (() => {
|
|
|
22243
22195
|
if (nextSegment) {
|
|
22244
22196
|
const nextInput = this.segmentedInput.getInputForSegment(nextSegment);
|
|
22245
22197
|
const nextTracks = await nextInput.getTracks();
|
|
22246
|
-
const nextTrack = nextTracks.find((t) => t.type === this.
|
|
22198
|
+
const nextTrack = nextTracks.find((t) => t.type === this.firstInputTrack.type && t.number === this.firstInputTrack.number);
|
|
22247
22199
|
let nextPacket = nextTrack ? await nextTrack._backing.getFirstPacket({ ...options, metadataOnly: true }) : null;
|
|
22248
22200
|
if (nextPacket && keyframesOnly && nextPacket.type !== "key") {
|
|
22249
22201
|
nextPacket = await nextTrack._backing.getNextKeyPacket(nextPacket, {
|
|
@@ -22279,31 +22231,31 @@ var Mediabunny = (() => {
|
|
|
22279
22231
|
return "video";
|
|
22280
22232
|
}
|
|
22281
22233
|
getCodec() {
|
|
22282
|
-
return this.delegate(() => this.
|
|
22234
|
+
return this.delegate(() => this.firstInputTrack._backing.getCodec());
|
|
22283
22235
|
}
|
|
22284
22236
|
getCodedWidth() {
|
|
22285
|
-
return this.delegate(() => this.
|
|
22237
|
+
return this.delegate(() => this.firstInputTrack._backing.getCodedWidth());
|
|
22286
22238
|
}
|
|
22287
22239
|
getCodedHeight() {
|
|
22288
|
-
return this.delegate(() => this.
|
|
22240
|
+
return this.delegate(() => this.firstInputTrack._backing.getCodedHeight());
|
|
22289
22241
|
}
|
|
22290
22242
|
getSquarePixelWidth() {
|
|
22291
|
-
return this.delegate(() => this.
|
|
22243
|
+
return this.delegate(() => this.firstInputTrack._backing.getSquarePixelWidth());
|
|
22292
22244
|
}
|
|
22293
22245
|
getSquarePixelHeight() {
|
|
22294
|
-
return this.delegate(() => this.
|
|
22246
|
+
return this.delegate(() => this.firstInputTrack._backing.getSquarePixelHeight());
|
|
22295
22247
|
}
|
|
22296
22248
|
getTransformationMatrix() {
|
|
22297
|
-
return this.delegate(() => this.
|
|
22249
|
+
return this.delegate(() => this.firstInputTrack._backing.getTransformationMatrix());
|
|
22298
22250
|
}
|
|
22299
22251
|
async getColorSpace() {
|
|
22300
|
-
return this.delegate(() => this.
|
|
22252
|
+
return this.delegate(() => this.firstInputTrack._backing.getColorSpace());
|
|
22301
22253
|
}
|
|
22302
22254
|
async canBeTransparent() {
|
|
22303
|
-
return this.delegate(() => this.
|
|
22255
|
+
return this.delegate(() => this.firstInputTrack._backing.canBeTransparent());
|
|
22304
22256
|
}
|
|
22305
22257
|
async getDecoderConfig() {
|
|
22306
|
-
return this.delegate(() => this.
|
|
22258
|
+
return this.delegate(() => this.firstInputTrack._backing.getDecoderConfig());
|
|
22307
22259
|
}
|
|
22308
22260
|
};
|
|
22309
22261
|
var SegmentedInputInputAudioTrackBacking = class extends SegmentedInputInputTrackBacking {
|
|
@@ -22311,16 +22263,16 @@ var Mediabunny = (() => {
|
|
|
22311
22263
|
return "audio";
|
|
22312
22264
|
}
|
|
22313
22265
|
getCodec() {
|
|
22314
|
-
return this.delegate(() => this.
|
|
22266
|
+
return this.delegate(() => this.firstInputTrack._backing.getCodec());
|
|
22315
22267
|
}
|
|
22316
22268
|
getNumberOfChannels() {
|
|
22317
|
-
return this.delegate(() => this.
|
|
22269
|
+
return this.delegate(() => this.firstInputTrack._backing.getNumberOfChannels());
|
|
22318
22270
|
}
|
|
22319
22271
|
getSampleRate() {
|
|
22320
|
-
return this.delegate(() => this.
|
|
22272
|
+
return this.delegate(() => this.firstInputTrack._backing.getSampleRate());
|
|
22321
22273
|
}
|
|
22322
22274
|
async getDecoderConfig() {
|
|
22323
|
-
return this.delegate(() => this.
|
|
22275
|
+
return this.delegate(() => this.firstInputTrack._backing.getDecoderConfig());
|
|
22324
22276
|
}
|
|
22325
22277
|
};
|
|
22326
22278
|
|
|
@@ -24701,12 +24653,8 @@ var Mediabunny = (() => {
|
|
|
24701
24653
|
return cacheEntry.input;
|
|
24702
24654
|
}
|
|
24703
24655
|
let initInput = null;
|
|
24704
|
-
if (hlsSegment.initSegment) {
|
|
24705
|
-
initInput = this.getInputForSegment(hlsSegment.initSegment);
|
|
24706
|
-
void initInput.getTracks().catch(() => {
|
|
24707
|
-
});
|
|
24708
|
-
} else if (hlsSegment.firstSegment) {
|
|
24709
|
-
initInput = this.getInputForSegment(hlsSegment.firstSegment);
|
|
24656
|
+
if (hlsSegment.initSegment || hlsSegment.firstSegment) {
|
|
24657
|
+
initInput = this.getInputForSegment(hlsSegment.initSegment ?? hlsSegment.firstSegment);
|
|
24710
24658
|
}
|
|
24711
24659
|
const formatOptions = {
|
|
24712
24660
|
...this.input._formatOptions,
|
|
@@ -24827,21 +24775,17 @@ var Mediabunny = (() => {
|
|
|
24827
24775
|
}
|
|
24828
24776
|
getFirstSegmentTimestampOffset() {
|
|
24829
24777
|
return this.segmentTimestampOffsetPromise ??= (async () => {
|
|
24778
|
+
const firstSegment = await this.getFirstSegment();
|
|
24779
|
+
assert(firstSegment);
|
|
24830
24780
|
const referenceSegmentedInput = this.demuxer.getReferenceSegmentedInput();
|
|
24831
24781
|
if (this === referenceSegmentedInput) {
|
|
24832
24782
|
return 0;
|
|
24833
24783
|
}
|
|
24834
|
-
const
|
|
24835
|
-
this.getFirstSegment(),
|
|
24836
|
-
referenceSegmentedInput.getFirstSegment()
|
|
24837
|
-
]);
|
|
24838
|
-
assert(firstSegment);
|
|
24784
|
+
const referenceFirstSegment = await referenceSegmentedInput.getFirstSegment();
|
|
24839
24785
|
if (referenceFirstSegment && (this.listsAllSegments() && referenceSegmentedInput.listsAllSegments() || firstSegment.unixEpochTimestamp === firstSegment.timestamp && referenceFirstSegment.unixEpochTimestamp === referenceFirstSegment.timestamp)) {
|
|
24840
24786
|
return 0;
|
|
24841
24787
|
}
|
|
24842
24788
|
const input = this.getInputForSegment(firstSegment);
|
|
24843
|
-
void this.getMediaOffsetForDiscontinuity(firstSegment.discontinuityNumber).catch(() => {
|
|
24844
|
-
});
|
|
24845
24789
|
if (await this.getRawTimestampOffset(input) === null) {
|
|
24846
24790
|
return 0;
|
|
24847
24791
|
}
|
|
@@ -25487,17 +25431,14 @@ var Mediabunny = (() => {
|
|
|
25487
25431
|
return this.internalTrack.hasOnlyKeyPackets || null;
|
|
25488
25432
|
}
|
|
25489
25433
|
async getFirstPacket(options) {
|
|
25490
|
-
this.prefetchReferencePlaylist();
|
|
25491
25434
|
await this.hydrate();
|
|
25492
25435
|
return this.internalTrack.backingTrack.getFirstPacket(options);
|
|
25493
25436
|
}
|
|
25494
25437
|
async getPacket(timestamp, options) {
|
|
25495
|
-
this.prefetchReferencePlaylist();
|
|
25496
25438
|
await this.hydrate();
|
|
25497
25439
|
return this.internalTrack.backingTrack.getPacket(timestamp, options);
|
|
25498
25440
|
}
|
|
25499
25441
|
async getKeyPacket(timestamp, options) {
|
|
25500
|
-
this.prefetchReferencePlaylist();
|
|
25501
25442
|
await this.hydrate();
|
|
25502
25443
|
return this.internalTrack.backingTrack.getKeyPacket(timestamp, options);
|
|
25503
25444
|
}
|
|
@@ -25509,10 +25450,6 @@ var Mediabunny = (() => {
|
|
|
25509
25450
|
await this.hydrate();
|
|
25510
25451
|
return this.internalTrack.backingTrack.getNextKeyPacket(packet, options);
|
|
25511
25452
|
}
|
|
25512
|
-
prefetchReferencePlaylist() {
|
|
25513
|
-
void this.internalTrack.demuxer.getReferenceSegmentedInput().getFirstSegment().catch(() => {
|
|
25514
|
-
});
|
|
25515
|
-
}
|
|
25516
25453
|
};
|
|
25517
25454
|
var HlsInputVideoTrackBacking = class extends HlsInputTrackBacking {
|
|
25518
25455
|
constructor(internalTrack) {
|
|
@@ -27207,6 +27144,7 @@ var Mediabunny = (() => {
|
|
|
27207
27144
|
this.sampleQueue.length = 0;
|
|
27208
27145
|
}
|
|
27209
27146
|
};
|
|
27147
|
+
var mergerWorkerUrl = null;
|
|
27210
27148
|
var ColorAlphaMerger = class {
|
|
27211
27149
|
constructor() {
|
|
27212
27150
|
this.workers = [];
|
|
@@ -27216,9 +27154,16 @@ var Mediabunny = (() => {
|
|
|
27216
27154
|
}
|
|
27217
27155
|
merge(color, alpha) {
|
|
27218
27156
|
if (this.workers.length === 0) {
|
|
27157
|
+
if (!mergerWorkerUrl) {
|
|
27158
|
+
const blob = new Blob(
|
|
27159
|
+
[`(${colorAlphaMergerWorkerCode.toString()})()`],
|
|
27160
|
+
{ type: "application/javascript" }
|
|
27161
|
+
);
|
|
27162
|
+
mergerWorkerUrl = URL.createObjectURL(blob);
|
|
27163
|
+
}
|
|
27219
27164
|
const poolSize = clamp(navigator.hardwareConcurrency, 1, 4);
|
|
27220
27165
|
for (let i = 0; i < poolSize; i++) {
|
|
27221
|
-
const worker2 =
|
|
27166
|
+
const worker2 = new Worker(mergerWorkerUrl);
|
|
27222
27167
|
worker2.addEventListener("message", (event) => {
|
|
27223
27168
|
const data = event.data;
|
|
27224
27169
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -30924,6 +30869,7 @@ var Mediabunny = (() => {
|
|
|
30924
30869
|
return chunkTimestamp === 500;
|
|
30925
30870
|
})();
|
|
30926
30871
|
};
|
|
30872
|
+
var splitterWorkerUrl = null;
|
|
30927
30873
|
var ColorAlphaSplitter = class {
|
|
30928
30874
|
constructor() {
|
|
30929
30875
|
this.worker = null;
|
|
@@ -30932,7 +30878,14 @@ var Mediabunny = (() => {
|
|
|
30932
30878
|
}
|
|
30933
30879
|
split(sourceFrame) {
|
|
30934
30880
|
if (!this.worker) {
|
|
30935
|
-
|
|
30881
|
+
if (!splitterWorkerUrl) {
|
|
30882
|
+
const blob = new Blob(
|
|
30883
|
+
[`(${colorAlphaSplitterWorkerCode.toString()})()`],
|
|
30884
|
+
{ type: "application/javascript" }
|
|
30885
|
+
);
|
|
30886
|
+
splitterWorkerUrl = URL.createObjectURL(blob);
|
|
30887
|
+
}
|
|
30888
|
+
this.worker = new Worker(splitterWorkerUrl);
|
|
30936
30889
|
this.worker.addEventListener("message", (event) => {
|
|
30937
30890
|
const data = event.data;
|
|
30938
30891
|
const pending2 = this.pendingRequests.get(data.id);
|
|
@@ -32521,7 +32474,12 @@ var Mediabunny = (() => {
|
|
|
32521
32474
|
var nextMediaStreamTrackProcessorWorkerId = 0;
|
|
32522
32475
|
var mediaStreamTrackProcessorWorker = null;
|
|
32523
32476
|
var initMediaStreamTrackProcessorWorker = () => {
|
|
32524
|
-
|
|
32477
|
+
const blob = new Blob(
|
|
32478
|
+
[`(${mediaStreamTrackProcessorWorkerCode.toString()})()`],
|
|
32479
|
+
{ type: "application/javascript" }
|
|
32480
|
+
);
|
|
32481
|
+
const url2 = URL.createObjectURL(blob);
|
|
32482
|
+
mediaStreamTrackProcessorWorker = new Worker(url2);
|
|
32525
32483
|
};
|
|
32526
32484
|
var mediaStreamTrackProcessorIsSupportedInWorkerCache = null;
|
|
32527
32485
|
var mediaStreamTrackProcessorIsSupportedInWorker = async () => {
|
|
@@ -35585,8 +35543,8 @@ var Mediabunny = (() => {
|
|
|
35585
35543
|
var tfdt = (trackData) => {
|
|
35586
35544
|
assert(trackData.currentChunk);
|
|
35587
35545
|
return fullBox("tfdt", 1, 0, [
|
|
35546
|
+
u64(intoTimescale(trackData.currentChunk.startTimestamp, trackData.timescale))
|
|
35588
35547
|
// Base Media Decode Time
|
|
35589
|
-
u64(intoTimescale(trackData.currentChunk.samples[0].decodeTimestamp, trackData.timescale))
|
|
35590
35548
|
]);
|
|
35591
35549
|
};
|
|
35592
35550
|
var trun = (trackData) => {
|
|
@@ -37554,27 +37512,16 @@ var Mediabunny = (() => {
|
|
|
37554
37512
|
trackData.timestampProcessingQueue.length = 0;
|
|
37555
37513
|
return;
|
|
37556
37514
|
}
|
|
37557
|
-
const
|
|
37558
|
-
const sortedTimestamps = queue.map((x) => x.timestamp).sort((a, b) => a - b);
|
|
37559
|
-
const firstTimestampInTimescale = intoTimescale(sortedTimestamps[0], trackData.timescale);
|
|
37515
|
+
const sortedTimestamps = trackData.timestampProcessingQueue.map((x) => x.timestamp).sort((a, b) => a - b);
|
|
37560
37516
|
if (this.isFragmented) {
|
|
37561
37517
|
trackData.startTimestampOffset ??= Math.min(sortedTimestamps[0], 0);
|
|
37562
37518
|
} else {
|
|
37563
37519
|
trackData.startTimestampOffset ??= sortedTimestamps[0];
|
|
37564
37520
|
}
|
|
37565
|
-
let
|
|
37566
|
-
|
|
37567
|
-
|
|
37568
|
-
|
|
37569
|
-
assert(trackData.lastSample);
|
|
37570
|
-
groupStartTimescaleUnits = Math.round(trackData.lastTimescaleUnits) + trackData.lastSample.timescaleUnitsToNextSample;
|
|
37571
|
-
}
|
|
37572
|
-
let lastDecodeStep = 0;
|
|
37573
|
-
for (let i = 0; i < queue.length; i++) {
|
|
37574
|
-
const sample = queue[i];
|
|
37575
|
-
const decodeTimescaleUnits = groupStartTimescaleUnits + intoTimescale(sortedTimestamps[i], trackData.timescale) - firstTimestampInTimescale;
|
|
37576
|
-
sample.decodeTimestamp = decodeTimescaleUnits / trackData.timescale;
|
|
37577
|
-
const sampleCompositionTimeOffset = intoTimescale(sample.timestamp, trackData.timescale) - decodeTimescaleUnits;
|
|
37521
|
+
for (let i = 0; i < trackData.timestampProcessingQueue.length; i++) {
|
|
37522
|
+
const sample = trackData.timestampProcessingQueue[i];
|
|
37523
|
+
sample.decodeTimestamp = sortedTimestamps[i];
|
|
37524
|
+
const sampleCompositionTimeOffset = intoTimescale(sample.timestamp - sample.decodeTimestamp, trackData.timescale);
|
|
37578
37525
|
const durationInTimescale = intoTimescale(sample.duration, trackData.timescale);
|
|
37579
37526
|
if (trackData.lastTimescaleUnits !== null) {
|
|
37580
37527
|
assert(trackData.lastSample);
|
|
@@ -37583,7 +37530,6 @@ var Mediabunny = (() => {
|
|
|
37583
37530
|
assert(delta >= 0);
|
|
37584
37531
|
trackData.lastTimescaleUnits += delta;
|
|
37585
37532
|
trackData.lastSample.timescaleUnitsToNextSample = delta;
|
|
37586
|
-
lastDecodeStep = delta;
|
|
37587
37533
|
if (!this.isFragmented) {
|
|
37588
37534
|
let lastTableEntry = last(trackData.timeToSampleTable);
|
|
37589
37535
|
assert(lastTableEntry);
|
|
@@ -37639,15 +37585,11 @@ var Mediabunny = (() => {
|
|
|
37639
37585
|
trackData.timestampProcessingQueue.length = 0;
|
|
37640
37586
|
assert(trackData.lastSample);
|
|
37641
37587
|
assert(trackData.lastTimescaleUnits !== null);
|
|
37642
|
-
if (nextSample) {
|
|
37643
|
-
|
|
37644
|
-
|
|
37645
|
-
|
|
37646
|
-
|
|
37647
|
-
// still gets a regular decode step to keep decode timestamps strictly increasing, and the next group
|
|
37648
|
-
// starts later. If we didn't do this, we'd get duplicate DTSs.
|
|
37649
|
-
lastDecodeStep
|
|
37650
|
-
);
|
|
37588
|
+
if (nextSample !== void 0 && trackData.lastSample.timescaleUnitsToNextSample === 0) {
|
|
37589
|
+
assert(nextSample.type === "key");
|
|
37590
|
+
const timescaleUnits = intoTimescale(nextSample.timestamp, trackData.timescale, false);
|
|
37591
|
+
const delta = Math.round(timescaleUnits - trackData.lastTimescaleUnits);
|
|
37592
|
+
trackData.lastSample.timescaleUnitsToNextSample = delta;
|
|
37651
37593
|
}
|
|
37652
37594
|
}
|
|
37653
37595
|
async registerSample(trackData, sample) {
|
|
@@ -232,10 +232,6 @@ class AdtsAudioTrackBacking {
|
|
|
232
232
|
if (!rawSample) {
|
|
233
233
|
return null;
|
|
234
234
|
}
|
|
235
|
-
const fileSize = this.demuxer.reader.fileSize;
|
|
236
|
-
if (fileSize !== null && rawSample.dataStart + rawSample.dataSize > fileSize) {
|
|
237
|
-
return null; // Data definitely doesn't fit
|
|
238
|
-
}
|
|
239
235
|
let data;
|
|
240
236
|
if (options.metadataOnly) {
|
|
241
237
|
data = PLACEHOLDER_DATA;
|