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.
Files changed (1017) hide show
  1. package/manifest.json +2 -3
  2. package/package.json +1 -1
  3. package/runtime/.next/BUILD_ID +1 -1
  4. package/runtime/.next/app-build-manifest.json +9 -9
  5. package/runtime/.next/app-path-routes-manifest.json +1 -1
  6. package/runtime/.next/build-manifest.json +5 -5
  7. package/runtime/.next/prerender-manifest.json +1 -1
  8. package/runtime/.next/required-server-files.json +1 -1
  9. package/runtime/.next/routes-manifest.json +1 -1
  10. package/runtime/.next/server/app/_not-found/page.js +1 -1
  11. package/runtime/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/runtime/.next/server/app/_not-found.html +1 -1
  13. package/runtime/.next/server/app/_not-found.rsc +1 -1
  14. package/runtime/.next/server/app/api/agent/abort/route.js +1 -1
  15. package/runtime/.next/server/app/api/agent/answer/route.js +1 -1
  16. package/runtime/.next/server/app/api/agent/codex-sharing/route.js +1 -1
  17. package/runtime/.next/server/app/api/agent/harness/status/route.js +1 -1
  18. package/runtime/.next/server/app/api/agent/model/route.js +1 -1
  19. package/runtime/.next/server/app/api/agent/models/route.js +1 -1
  20. package/runtime/.next/server/app/api/agent/run/route.js +1 -1
  21. package/runtime/.next/server/app/api/agent/runtime-health/route.js +1 -1
  22. package/runtime/.next/server/app/api/agent/steer/route.js +1 -1
  23. package/runtime/.next/server/app/api/agent/stream/route.js +2 -2
  24. package/runtime/.next/server/app/api/agent-workspaces/[workspaceId]/sessions/route.js +1 -1
  25. package/runtime/.next/server/app/api/agent-workspaces/route.js +1 -1
  26. package/runtime/.next/server/app/api/auth/verify/route.js +1 -1
  27. package/runtime/.next/server/app/api/business/route.js +1 -1
  28. package/runtime/.next/server/app/api/client-logs/route.js +1 -1
  29. package/runtime/.next/server/app/api/collaboration/route.js +9 -9
  30. package/runtime/.next/server/app/api/collaboration/route.js.nft.json +1 -1
  31. package/runtime/.next/server/app/api/engine-threads/route.js +1 -0
  32. package/runtime/.next/server/app/api/engine-threads/route.js.nft.json +1 -0
  33. package/runtime/.next/server/app/api/engine-threads.body +1 -0
  34. package/runtime/.next/server/app/api/engine-threads.meta +1 -0
  35. package/runtime/.next/server/app/api/flow/v1/catalog/route.js +1 -1
  36. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/cancel/route.js +1 -1
  37. package/runtime/.next/server/app/api/flow/v1/runs/[runId]/events/route.js +2 -2
  38. package/runtime/.next/server/app/api/flow/v1/runs/route.js +1 -1
  39. package/runtime/.next/server/app/api/flow-studio/config/route.js +1 -1
  40. package/runtime/.next/server/app/api/mcp/connect/route.js +1 -1
  41. package/runtime/.next/server/app/api/mcp/disconnect/route.js +1 -1
  42. package/runtime/.next/server/app/api/mcp/servers/route.js +1 -1
  43. package/runtime/.next/server/app/api/memory/[key]/route.js +1 -1
  44. package/runtime/.next/server/app/api/memory/route.js +1 -1
  45. package/runtime/.next/server/app/api/messaging/route.js +1 -1
  46. package/runtime/.next/server/app/api/messaging/route.js.nft.json +1 -1
  47. package/runtime/.next/server/app/api/plugins/load/route.js +1 -1
  48. package/runtime/.next/server/app/api/projects/[id]/route.js +1 -1
  49. package/runtime/.next/server/app/api/projects/check/route.js +1 -1
  50. package/runtime/.next/server/app/api/projects/directories/route.js +1 -1
  51. package/runtime/.next/server/app/api/projects/roots/route.js +1 -1
  52. package/runtime/.next/server/app/api/projects/route.js +1 -1
  53. package/runtime/.next/server/app/api/push/subscribe/route.js +2 -2
  54. package/runtime/.next/server/app/api/push/unsubscribe/route.js +2 -2
  55. package/runtime/.next/server/app/api/push/vapid/route.js +2 -2
  56. package/runtime/.next/server/app/api/push/vapid.body +1 -1
  57. package/runtime/.next/server/app/api/remote-tools/register/route.js +1 -1
  58. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/route.js +1 -1
  59. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/[jobId]/stop/route.js +1 -1
  60. package/runtime/.next/server/app/api/sessions/[id]/background-jobs/route.js +1 -1
  61. package/runtime/.next/server/app/api/sessions/[id]/changes/route.js +2 -2
  62. package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js +1 -0
  63. package/runtime/.next/server/app/api/sessions/[id]/engine-switches/route.js.nft.json +1 -0
  64. package/runtime/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  65. package/runtime/.next/server/app/api/sessions/[id]/fork-at/route.js +1 -1
  66. package/runtime/.next/server/app/api/sessions/[id]/goals/route.js +1 -1
  67. package/runtime/.next/server/app/api/sessions/[id]/handoff/route.js +1 -1
  68. package/runtime/.next/server/app/api/sessions/[id]/native-goal/route.js +1 -1
  69. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js +1 -1
  70. package/runtime/.next/server/app/api/sessions/[id]/query-index/route.js.nft.json +1 -1
  71. package/runtime/.next/server/app/api/sessions/[id]/release/route.js +1 -1
  72. package/runtime/.next/server/app/api/sessions/[id]/route.js +1 -1
  73. package/runtime/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  74. package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js +1 -0
  75. package/runtime/.next/server/app/api/sessions/[id]/switch-engine/route.js.nft.json +1 -0
  76. package/runtime/.next/server/app/api/sessions/[id]/thread-goal/route.js +1 -1
  77. package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js +1 -0
  78. package/runtime/.next/server/app/api/sessions/[id]/thread-history/route.js.nft.json +1 -0
  79. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js +1 -1
  80. package/runtime/.next/server/app/api/sessions/[id]/tool-result/route.js.nft.json +1 -1
  81. package/runtime/.next/server/app/api/sessions/parallel/route.js +1 -1
  82. package/runtime/.next/server/app/api/sessions/route.js +1 -1
  83. package/runtime/.next/server/app/api/settings/route.js +1 -1
  84. package/runtime/.next/server/app/api/skills/route.js +1 -1
  85. package/runtime/.next/server/app/api/tool-policies/[policyId]/route.js +1 -1
  86. package/runtime/.next/server/app/api/tool-policies/route.js +1 -1
  87. package/runtime/.next/server/app/api/tools/route.js +1 -1
  88. package/runtime/.next/server/app/api/update/check/route.js +1 -1
  89. package/runtime/.next/server/app/api/update/install/route.js +1 -1
  90. package/runtime/.next/server/app/api/update/status/route.js +1 -1
  91. package/runtime/.next/server/app/api/web-auth/login/route.js +1 -1
  92. package/runtime/.next/server/app/api/web-auth/logout/route.js +1 -1
  93. package/runtime/.next/server/app/api/web-auth/revoke-all/route.js +1 -1
  94. package/runtime/.next/server/app/api/web-auth/setup/route.js +1 -1
  95. package/runtime/.next/server/app/api/web-auth/status/route.js +1 -1
  96. package/runtime/.next/server/app/api/web-console/bootstrap/route.js +1 -1
  97. package/runtime/.next/server/app/api/web-console/computer-settings/route.js +1 -1
  98. package/runtime/.next/server/app/api/web-console/computers/route.js +1 -1
  99. package/runtime/.next/server/app/api/web-console/device-state/route.js +1 -1
  100. package/runtime/.next/server/app/api/web-console/history/route.js +1 -1
  101. package/runtime/.next/server/app/api/web-console/preferences/route.js +1 -1
  102. package/runtime/.next/server/app/web/page.js +4 -4
  103. package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
  104. package/runtime/.next/server/app-paths-manifest.json +34 -30
  105. package/runtime/.next/server/chunks/1614.js +1 -1
  106. package/runtime/.next/server/chunks/5303.js +1 -1
  107. package/runtime/.next/server/chunks/5762.js +18 -0
  108. package/runtime/.next/server/chunks/6977.js +1 -1
  109. package/runtime/.next/server/middleware-build-manifest.js +1 -1
  110. package/runtime/.next/server/pages/404.html +1 -1
  111. package/runtime/.next/server/pages/500.html +1 -1
  112. package/runtime/.next/server/server-reference-manifest.json +1 -1
  113. package/runtime/.next/static/chunks/333-9881c3d2c558a28d.js +1 -0
  114. package/runtime/.next/static/chunks/app/web/{error-36b287ca40eab041.js → error-53531bb27b3b87f8.js} +1 -1
  115. package/runtime/.next/static/chunks/app/web/layout-88328c61ec0589af.js +1 -0
  116. package/runtime/.next/static/chunks/app/web/page-84b5f00b4c9cd4ce.js +1 -0
  117. package/runtime/.next/static/chunks/{main-94a733696db11b91.js → main-93c452d518291b1c.js} +1 -1
  118. package/runtime/.next/static/chunks/{main-app-07b9ccbb642d9b9d.js → main-app-ba2527534563adfe.js} +1 -1
  119. package/runtime/lib/device-pairing-gateway.mjs +6 -1
  120. package/runtime/lib/web-app-cache.mjs +6 -0
  121. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/MacOS/agentroam-remote-desktop +0 -0
  122. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/Resources/agentroam-component.json +1 -1
  123. package/runtime/native/Support.noindex/AgentRoam Remote Desktop.app/Contents/_CodeSignature/CodeResources +2 -2
  124. package/runtime/node_modules/.package-lock.json +138 -138
  125. package/runtime/node_modules/@agent/core/dist/index.js +874 -128
  126. package/runtime/node_modules/@agent/native-runtime/dist/index.js +203 -38
  127. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/README.md +1 -1
  128. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/bridge.mjs +104 -84
  129. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/browser-sdk.js +78 -67
  130. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0a66n3e7.mjs +16 -0
  131. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-0bmnpbz2.mjs +45 -0
  132. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-9je8ee1j.mjs +16 -0
  133. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-ds2jqcef.mjs +19 -0
  134. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-fxa8mwbm.mjs +18 -0
  135. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-gbbw9cgm.mjs +17 -0
  136. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-msnqqcc2.mjs +42 -0
  137. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-wadgcjfh.mjs +18 -0
  138. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x20yarwf.mjs +17 -0
  139. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-x3hc9abc.mjs +17 -0
  140. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-zg882d22.mjs +16 -0
  141. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core.mjs +11 -11
  142. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.json +23 -23
  143. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json +27 -27
  144. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/package.json +21 -14
  145. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs +96 -85
  146. package/runtime/node_modules/caniuse-lite/data/agents.js +1 -1
  147. package/runtime/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  148. package/runtime/node_modules/caniuse-lite/data/features/aac.js +1 -1
  149. package/runtime/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  150. package/runtime/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  151. package/runtime/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  152. package/runtime/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  153. package/runtime/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  154. package/runtime/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  155. package/runtime/node_modules/caniuse-lite/data/features/apng.js +1 -1
  156. package/runtime/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  157. package/runtime/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  158. package/runtime/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  159. package/runtime/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  160. package/runtime/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  161. package/runtime/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  162. package/runtime/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  163. package/runtime/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  164. package/runtime/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  165. package/runtime/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  166. package/runtime/node_modules/caniuse-lite/data/features/audio.js +1 -1
  167. package/runtime/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  168. package/runtime/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  169. package/runtime/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  170. package/runtime/node_modules/caniuse-lite/data/features/av1.js +1 -1
  171. package/runtime/node_modules/caniuse-lite/data/features/av2.js +1 -0
  172. package/runtime/node_modules/caniuse-lite/data/features/avif.js +1 -1
  173. package/runtime/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  174. package/runtime/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  175. package/runtime/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  176. package/runtime/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  177. package/runtime/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  178. package/runtime/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  179. package/runtime/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  180. package/runtime/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  181. package/runtime/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  182. package/runtime/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  183. package/runtime/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  184. package/runtime/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  185. package/runtime/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  186. package/runtime/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  187. package/runtime/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  188. package/runtime/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  189. package/runtime/node_modules/caniuse-lite/data/features/calc.js +1 -1
  190. package/runtime/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  191. package/runtime/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  192. package/runtime/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  193. package/runtime/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  194. package/runtime/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  195. package/runtime/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  196. package/runtime/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  197. package/runtime/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  198. package/runtime/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  199. package/runtime/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  200. package/runtime/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  201. package/runtime/node_modules/caniuse-lite/data/features/colr.js +1 -1
  202. package/runtime/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  203. package/runtime/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  204. package/runtime/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  205. package/runtime/node_modules/caniuse-lite/data/features/const.js +1 -1
  206. package/runtime/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  207. package/runtime/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  208. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  209. package/runtime/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  210. package/runtime/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  211. package/runtime/node_modules/caniuse-lite/data/features/cors.js +1 -1
  212. package/runtime/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  213. package/runtime/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  214. package/runtime/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  215. package/runtime/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  216. package/runtime/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  217. package/runtime/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  218. package/runtime/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  219. package/runtime/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  220. package/runtime/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  221. package/runtime/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  222. package/runtime/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  223. package/runtime/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  224. package/runtime/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  225. package/runtime/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  226. package/runtime/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  227. package/runtime/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  228. package/runtime/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  229. package/runtime/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  230. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  231. package/runtime/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  232. package/runtime/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  233. package/runtime/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  234. package/runtime/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  235. package/runtime/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  236. package/runtime/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  237. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  238. package/runtime/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  239. package/runtime/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  240. package/runtime/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  241. package/runtime/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  242. package/runtime/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  243. package/runtime/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  244. package/runtime/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  245. package/runtime/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  246. package/runtime/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  247. package/runtime/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  248. package/runtime/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  249. package/runtime/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  250. package/runtime/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  251. package/runtime/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  252. package/runtime/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  253. package/runtime/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  254. package/runtime/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  255. package/runtime/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  256. package/runtime/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  257. package/runtime/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  258. package/runtime/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  259. package/runtime/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  260. package/runtime/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  261. package/runtime/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  262. package/runtime/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  263. package/runtime/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  264. package/runtime/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  265. package/runtime/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  266. package/runtime/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  267. package/runtime/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  268. package/runtime/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  269. package/runtime/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  270. package/runtime/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  271. package/runtime/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  272. package/runtime/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  273. package/runtime/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  274. package/runtime/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  275. package/runtime/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  276. package/runtime/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  277. package/runtime/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  278. package/runtime/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  279. package/runtime/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  280. package/runtime/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  281. package/runtime/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  282. package/runtime/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  283. package/runtime/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  284. package/runtime/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  285. package/runtime/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  286. package/runtime/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  287. package/runtime/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  288. package/runtime/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  289. package/runtime/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  290. package/runtime/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  291. package/runtime/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  292. package/runtime/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  293. package/runtime/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  294. package/runtime/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  295. package/runtime/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  296. package/runtime/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  297. package/runtime/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  298. package/runtime/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  299. package/runtime/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  300. package/runtime/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  301. package/runtime/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  302. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  303. package/runtime/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  304. package/runtime/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  305. package/runtime/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  306. package/runtime/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  307. package/runtime/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  308. package/runtime/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  309. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  310. package/runtime/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  311. package/runtime/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  312. package/runtime/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  313. package/runtime/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  314. package/runtime/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  315. package/runtime/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  316. package/runtime/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  317. package/runtime/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  318. package/runtime/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  319. package/runtime/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  320. package/runtime/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  321. package/runtime/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  322. package/runtime/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  323. package/runtime/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  324. package/runtime/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  325. package/runtime/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  326. package/runtime/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  327. package/runtime/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  328. package/runtime/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  329. package/runtime/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  330. package/runtime/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  331. package/runtime/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  332. package/runtime/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  333. package/runtime/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  334. package/runtime/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  335. package/runtime/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  336. package/runtime/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  337. package/runtime/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  338. package/runtime/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  339. package/runtime/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  340. package/runtime/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  341. package/runtime/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  342. package/runtime/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  343. package/runtime/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  344. package/runtime/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  345. package/runtime/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  346. package/runtime/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  347. package/runtime/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  348. package/runtime/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  349. package/runtime/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  350. package/runtime/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  351. package/runtime/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  352. package/runtime/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  353. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  354. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  355. package/runtime/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  356. package/runtime/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  357. package/runtime/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  358. package/runtime/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  359. package/runtime/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  360. package/runtime/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  361. package/runtime/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  362. package/runtime/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  363. package/runtime/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  364. package/runtime/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  365. package/runtime/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  366. package/runtime/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  367. package/runtime/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  368. package/runtime/node_modules/caniuse-lite/data/features/details.js +1 -1
  369. package/runtime/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  370. package/runtime/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  371. package/runtime/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  372. package/runtime/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  373. package/runtime/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  374. package/runtime/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  375. package/runtime/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  376. package/runtime/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  377. package/runtime/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  378. package/runtime/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  379. package/runtime/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  380. package/runtime/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  381. package/runtime/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  382. package/runtime/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  383. package/runtime/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  384. package/runtime/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  385. package/runtime/node_modules/caniuse-lite/data/features/download.js +1 -1
  386. package/runtime/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  387. package/runtime/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  388. package/runtime/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  389. package/runtime/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  390. package/runtime/node_modules/caniuse-lite/data/features/eme.js +1 -1
  391. package/runtime/node_modules/caniuse-lite/data/features/eot.js +1 -1
  392. package/runtime/node_modules/caniuse-lite/data/features/es5.js +1 -1
  393. package/runtime/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  394. package/runtime/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  395. package/runtime/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  396. package/runtime/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  397. package/runtime/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  398. package/runtime/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  399. package/runtime/node_modules/caniuse-lite/data/features/es6.js +1 -1
  400. package/runtime/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  401. package/runtime/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  402. package/runtime/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  403. package/runtime/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  404. package/runtime/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  405. package/runtime/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  406. package/runtime/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  407. package/runtime/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  408. package/runtime/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  409. package/runtime/node_modules/caniuse-lite/data/features/flac.js +1 -1
  410. package/runtime/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  411. package/runtime/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  412. package/runtime/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  413. package/runtime/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  414. package/runtime/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  415. package/runtime/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  416. package/runtime/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  417. package/runtime/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  418. package/runtime/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  419. package/runtime/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  420. package/runtime/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  421. package/runtime/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  422. package/runtime/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  423. package/runtime/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  424. package/runtime/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  425. package/runtime/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  426. package/runtime/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  427. package/runtime/node_modules/caniuse-lite/data/features/forms.js +1 -1
  428. package/runtime/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  429. package/runtime/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  430. package/runtime/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  431. package/runtime/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  432. package/runtime/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  433. package/runtime/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  434. package/runtime/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  435. package/runtime/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  436. package/runtime/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  437. package/runtime/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  438. package/runtime/node_modules/caniuse-lite/data/features/heif.js +1 -1
  439. package/runtime/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  440. package/runtime/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  441. package/runtime/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  442. package/runtime/node_modules/caniuse-lite/data/features/history.js +1 -1
  443. package/runtime/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  444. package/runtime/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  445. package/runtime/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  446. package/runtime/node_modules/caniuse-lite/data/features/http2.js +1 -1
  447. package/runtime/node_modules/caniuse-lite/data/features/http3.js +1 -1
  448. package/runtime/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  449. package/runtime/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  450. package/runtime/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  451. package/runtime/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  452. package/runtime/node_modules/caniuse-lite/data/features/ime.js +1 -1
  453. package/runtime/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  454. package/runtime/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  455. package/runtime/node_modules/caniuse-lite/data/features/imports.js +1 -1
  456. package/runtime/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  457. package/runtime/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  458. package/runtime/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  459. package/runtime/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  460. package/runtime/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  461. package/runtime/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  462. package/runtime/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  463. package/runtime/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  464. package/runtime/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  465. package/runtime/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  466. package/runtime/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  467. package/runtime/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  468. package/runtime/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  469. package/runtime/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  470. package/runtime/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  471. package/runtime/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  472. package/runtime/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  473. package/runtime/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  474. package/runtime/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  475. package/runtime/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  476. package/runtime/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  477. package/runtime/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  478. package/runtime/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  479. package/runtime/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  480. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  481. package/runtime/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  482. package/runtime/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  483. package/runtime/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  484. package/runtime/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  485. package/runtime/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  486. package/runtime/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  487. package/runtime/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  488. package/runtime/node_modules/caniuse-lite/data/features/json.js +1 -1
  489. package/runtime/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  490. package/runtime/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  491. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  492. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  493. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  494. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  495. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  496. package/runtime/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  497. package/runtime/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  498. package/runtime/node_modules/caniuse-lite/data/features/let.js +1 -1
  499. package/runtime/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  500. package/runtime/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  501. package/runtime/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  502. package/runtime/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  503. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  504. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  505. package/runtime/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  506. package/runtime/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  507. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  508. package/runtime/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  509. package/runtime/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  510. package/runtime/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  511. package/runtime/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  512. package/runtime/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  513. package/runtime/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  514. package/runtime/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  515. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  516. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  517. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  518. package/runtime/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  519. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  520. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  521. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  522. package/runtime/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  523. package/runtime/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  524. package/runtime/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  525. package/runtime/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  526. package/runtime/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  527. package/runtime/node_modules/caniuse-lite/data/features/menu.js +1 -1
  528. package/runtime/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  529. package/runtime/node_modules/caniuse-lite/data/features/meter.js +1 -1
  530. package/runtime/node_modules/caniuse-lite/data/features/midi.js +1 -1
  531. package/runtime/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  532. package/runtime/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  533. package/runtime/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  534. package/runtime/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  535. package/runtime/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  536. package/runtime/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  537. package/runtime/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  538. package/runtime/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  539. package/runtime/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  540. package/runtime/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  541. package/runtime/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  542. package/runtime/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  543. package/runtime/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  544. package/runtime/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  545. package/runtime/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  546. package/runtime/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  547. package/runtime/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  548. package/runtime/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  549. package/runtime/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  550. package/runtime/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  551. package/runtime/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  552. package/runtime/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  553. package/runtime/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  554. package/runtime/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  555. package/runtime/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  556. package/runtime/node_modules/caniuse-lite/data/features/opus.js +1 -1
  557. package/runtime/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  558. package/runtime/node_modules/caniuse-lite/data/features/outline.js +1 -1
  559. package/runtime/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  560. package/runtime/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  561. package/runtime/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  562. package/runtime/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  563. package/runtime/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  564. package/runtime/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  565. package/runtime/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  566. package/runtime/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  567. package/runtime/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  568. package/runtime/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  569. package/runtime/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  570. package/runtime/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  571. package/runtime/node_modules/caniuse-lite/data/features/picture.js +1 -1
  572. package/runtime/node_modules/caniuse-lite/data/features/ping.js +1 -1
  573. package/runtime/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  574. package/runtime/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  575. package/runtime/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  576. package/runtime/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  577. package/runtime/node_modules/caniuse-lite/data/features/portals.js +1 -1
  578. package/runtime/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  579. package/runtime/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  580. package/runtime/node_modules/caniuse-lite/data/features/progress.js +1 -1
  581. package/runtime/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  582. package/runtime/node_modules/caniuse-lite/data/features/promises.js +1 -1
  583. package/runtime/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  584. package/runtime/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  585. package/runtime/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  586. package/runtime/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  587. package/runtime/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  588. package/runtime/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  589. package/runtime/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  590. package/runtime/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  591. package/runtime/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  592. package/runtime/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  593. package/runtime/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  594. package/runtime/node_modules/caniuse-lite/data/features/rem.js +1 -1
  595. package/runtime/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  596. package/runtime/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  597. package/runtime/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  598. package/runtime/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  599. package/runtime/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  600. package/runtime/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  601. package/runtime/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  602. package/runtime/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  603. package/runtime/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  604. package/runtime/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  605. package/runtime/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  606. package/runtime/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  607. package/runtime/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  608. package/runtime/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  609. package/runtime/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  610. package/runtime/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  611. package/runtime/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  612. package/runtime/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  613. package/runtime/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  614. package/runtime/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  615. package/runtime/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  616. package/runtime/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  617. package/runtime/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  618. package/runtime/node_modules/caniuse-lite/data/features/sni.js +1 -1
  619. package/runtime/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  620. package/runtime/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  621. package/runtime/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  622. package/runtime/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  623. package/runtime/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  624. package/runtime/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  625. package/runtime/node_modules/caniuse-lite/data/features/stream.js +1 -1
  626. package/runtime/node_modules/caniuse-lite/data/features/streams.js +1 -1
  627. package/runtime/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  628. package/runtime/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  629. package/runtime/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  630. package/runtime/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  631. package/runtime/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  632. package/runtime/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  633. package/runtime/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  634. package/runtime/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  635. package/runtime/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  636. package/runtime/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  637. package/runtime/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  638. package/runtime/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  639. package/runtime/node_modules/caniuse-lite/data/features/svg.js +1 -1
  640. package/runtime/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  641. package/runtime/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  642. package/runtime/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  643. package/runtime/node_modules/caniuse-lite/data/features/template.js +1 -1
  644. package/runtime/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  645. package/runtime/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  646. package/runtime/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  647. package/runtime/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  648. package/runtime/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  649. package/runtime/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  650. package/runtime/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  651. package/runtime/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  652. package/runtime/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  653. package/runtime/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  654. package/runtime/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  655. package/runtime/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  656. package/runtime/node_modules/caniuse-lite/data/features/touch.js +1 -1
  657. package/runtime/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  658. package/runtime/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  659. package/runtime/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  660. package/runtime/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  661. package/runtime/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  662. package/runtime/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  663. package/runtime/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  664. package/runtime/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  665. package/runtime/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  666. package/runtime/node_modules/caniuse-lite/data/features/url.js +1 -1
  667. package/runtime/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  668. package/runtime/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  669. package/runtime/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  670. package/runtime/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  671. package/runtime/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  672. package/runtime/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  673. package/runtime/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  674. package/runtime/node_modules/caniuse-lite/data/features/video.js +1 -1
  675. package/runtime/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  676. package/runtime/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  677. package/runtime/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  678. package/runtime/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  679. package/runtime/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  680. package/runtime/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  681. package/runtime/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  682. package/runtime/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  683. package/runtime/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  684. package/runtime/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  685. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  686. package/runtime/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  687. package/runtime/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  688. package/runtime/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  689. package/runtime/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  690. package/runtime/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  691. package/runtime/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  692. package/runtime/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  693. package/runtime/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  694. package/runtime/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  695. package/runtime/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  696. package/runtime/node_modules/caniuse-lite/data/features/wav.js +1 -1
  697. package/runtime/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  698. package/runtime/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  699. package/runtime/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  700. package/runtime/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  701. package/runtime/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  702. package/runtime/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  703. package/runtime/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  704. package/runtime/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  705. package/runtime/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  706. package/runtime/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  707. package/runtime/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  708. package/runtime/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  709. package/runtime/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  710. package/runtime/node_modules/caniuse-lite/data/features/webm.js +1 -1
  711. package/runtime/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  712. package/runtime/node_modules/caniuse-lite/data/features/webp.js +1 -1
  713. package/runtime/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  714. package/runtime/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  715. package/runtime/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  716. package/runtime/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  717. package/runtime/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  718. package/runtime/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  719. package/runtime/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  720. package/runtime/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  721. package/runtime/node_modules/caniuse-lite/data/features/woff.js +1 -1
  722. package/runtime/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  723. package/runtime/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  724. package/runtime/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  725. package/runtime/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  726. package/runtime/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  727. package/runtime/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  728. package/runtime/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  729. package/runtime/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  730. package/runtime/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  731. package/runtime/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  732. package/runtime/node_modules/caniuse-lite/data/features.js +1 -1
  733. package/runtime/node_modules/caniuse-lite/data/versionGroups.js +1 -1
  734. package/runtime/node_modules/caniuse-lite/package.json +1 -1
  735. package/runtime/node_modules/graceful-fs/LICENSE.md +55 -0
  736. package/runtime/node_modules/graceful-fs/package.json +3 -4
  737. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.cjs +4312 -2466
  738. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.cjs +30 -24
  739. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.min.mjs +30 -24
  740. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.mjs +4312 -2466
  741. package/runtime/node_modules/mediabunny/dist/bundles/mediabunny.node.cjs +4312 -2466
  742. package/runtime/node_modules/mediabunny/dist/modules/shared/aac-misc.js +202 -5
  743. package/runtime/node_modules/mediabunny/dist/modules/shared/bitstream.js +4 -3
  744. package/runtime/node_modules/mediabunny/dist/modules/shared/dts-misc.js +7 -8
  745. package/runtime/node_modules/mediabunny/dist/modules/shared/mp3-misc.js +7 -1
  746. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js +60 -41
  747. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-muxer.js +12 -8
  748. package/runtime/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js +39 -5
  749. package/runtime/node_modules/mediabunny/dist/modules/src/codec-data.js +220 -48
  750. package/runtime/node_modules/mediabunny/dist/modules/src/codec.js +80 -54
  751. package/runtime/node_modules/mediabunny/dist/modules/src/conversion.js +144 -96
  752. package/runtime/node_modules/mediabunny/dist/modules/src/decode.js +14 -8
  753. package/runtime/node_modules/mediabunny/dist/modules/src/encode.js +22 -9
  754. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js +16 -13
  755. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js +3 -2
  756. package/runtime/node_modules/mediabunny/dist/modules/src/flac/flac-muxer.js +40 -26
  757. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-demuxer.js +129 -115
  758. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-muxer.js +392 -326
  759. package/runtime/node_modules/mediabunny/dist/modules/src/hls/hls-segmented-input.js +27 -24
  760. package/runtime/node_modules/mediabunny/dist/modules/src/id3.js +111 -33
  761. package/runtime/node_modules/mediabunny/dist/modules/src/input-format.js +81 -149
  762. package/runtime/node_modules/mediabunny/dist/modules/src/input-track.js +48 -15
  763. package/runtime/node_modules/mediabunny/dist/modules/src/input.js +37 -15
  764. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-boxes.js +104 -21
  765. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js +347 -216
  766. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js +11 -2
  767. package/runtime/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-muxer.js +257 -163
  768. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/ebml.js +93 -32
  769. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js +193 -99
  770. package/runtime/node_modules/mediabunny/dist/modules/src/matroska/matroska-muxer.js +129 -116
  771. package/runtime/node_modules/mediabunny/dist/modules/src/media-sink.js +216 -136
  772. package/runtime/node_modules/mediabunny/dist/modules/src/media-source.js +237 -129
  773. package/runtime/node_modules/mediabunny/dist/modules/src/metadata.js +6 -0
  774. package/runtime/node_modules/mediabunny/dist/modules/src/misc.js +96 -49
  775. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js +101 -29
  776. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-muxer.js +18 -9
  777. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js +45 -2
  778. package/runtime/node_modules/mediabunny/dist/modules/src/mp3/mp3-writer.js +9 -2
  779. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-demuxer.js +253 -254
  780. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-misc.js +5 -10
  781. package/runtime/node_modules/mediabunny/dist/modules/src/mpeg-ts/mpeg-ts-muxer.js +69 -43
  782. package/runtime/node_modules/mediabunny/dist/modules/src/muxer.js +11 -1
  783. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js +89 -57
  784. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js +1 -1
  785. package/runtime/node_modules/mediabunny/dist/modules/src/ogg/ogg-muxer.js +183 -73
  786. package/runtime/node_modules/mediabunny/dist/modules/src/output-format.js +70 -5
  787. package/runtime/node_modules/mediabunny/dist/modules/src/output.js +54 -29
  788. package/runtime/node_modules/mediabunny/dist/modules/src/packet.js +1 -1
  789. package/runtime/node_modules/mediabunny/dist/modules/src/resample.js +1 -0
  790. package/runtime/node_modules/mediabunny/dist/modules/src/sample.js +85 -42
  791. package/runtime/node_modules/mediabunny/dist/modules/src/segmented-input.js +40 -21
  792. package/runtime/node_modules/mediabunny/dist/modules/src/source.js +188 -88
  793. package/runtime/node_modules/mediabunny/dist/modules/src/subtitles.js +15 -9
  794. package/runtime/node_modules/mediabunny/dist/modules/src/target.js +63 -39
  795. package/runtime/node_modules/mediabunny/dist/modules/src/tsconfig.tsbuildinfo +1 -1
  796. package/runtime/node_modules/mediabunny/dist/modules/src/version.js +1 -1
  797. package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js +77 -41
  798. package/runtime/node_modules/mediabunny/dist/modules/src/wave/wave-muxer.js +83 -20
  799. package/runtime/node_modules/mediabunny/dist/modules/src/writer.js +4 -1
  800. package/runtime/node_modules/mediabunny/package.json +5 -4
  801. package/runtime/node_modules/mediabunny/src/adts/adts-demuxer.ts +76 -47
  802. package/runtime/node_modules/mediabunny/src/adts/adts-muxer.ts +13 -11
  803. package/runtime/node_modules/mediabunny/src/adts/adts-reader.ts +54 -5
  804. package/runtime/node_modules/mediabunny/src/codec-data.ts +249 -52
  805. package/runtime/node_modules/mediabunny/src/codec.ts +85 -58
  806. package/runtime/node_modules/mediabunny/src/conversion.ts +161 -94
  807. package/runtime/node_modules/mediabunny/src/decode.ts +15 -8
  808. package/runtime/node_modules/mediabunny/src/encode.ts +23 -14
  809. package/runtime/node_modules/mediabunny/src/flac/flac-demuxer.ts +21 -20
  810. package/runtime/node_modules/mediabunny/src/flac/flac-misc.ts +3 -2
  811. package/runtime/node_modules/mediabunny/src/flac/flac-muxer.ts +44 -29
  812. package/runtime/node_modules/mediabunny/src/hls/hls-demuxer.ts +161 -129
  813. package/runtime/node_modules/mediabunny/src/hls/hls-muxer.ts +453 -379
  814. package/runtime/node_modules/mediabunny/src/hls/hls-segmented-input.ts +35 -24
  815. package/runtime/node_modules/mediabunny/src/id3.ts +123 -35
  816. package/runtime/node_modules/mediabunny/src/input-format.ts +86 -170
  817. package/runtime/node_modules/mediabunny/src/input-track.ts +57 -17
  818. package/runtime/node_modules/mediabunny/src/input.ts +41 -17
  819. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-boxes.ts +118 -21
  820. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-demuxer.ts +435 -253
  821. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-misc.ts +13 -4
  822. package/runtime/node_modules/mediabunny/src/isobmff/isobmff-muxer.ts +318 -191
  823. package/runtime/node_modules/mediabunny/src/matroska/ebml.ts +91 -38
  824. package/runtime/node_modules/mediabunny/src/matroska/matroska-demuxer.ts +212 -103
  825. package/runtime/node_modules/mediabunny/src/matroska/matroska-muxer.ts +155 -148
  826. package/runtime/node_modules/mediabunny/src/media-sink.ts +229 -146
  827. package/runtime/node_modules/mediabunny/src/media-source.ts +263 -141
  828. package/runtime/node_modules/mediabunny/src/metadata.ts +7 -1
  829. package/runtime/node_modules/mediabunny/src/misc.ts +122 -54
  830. package/runtime/node_modules/mediabunny/src/mp3/mp3-demuxer.ts +121 -33
  831. package/runtime/node_modules/mediabunny/src/mp3/mp3-muxer.ts +16 -12
  832. package/runtime/node_modules/mediabunny/src/mp3/mp3-reader.ts +66 -2
  833. package/runtime/node_modules/mediabunny/src/mp3/mp3-writer.ts +11 -2
  834. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-demuxer.ts +295 -325
  835. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-misc.ts +5 -14
  836. package/runtime/node_modules/mediabunny/src/mpeg-ts/mpeg-ts-muxer.ts +90 -51
  837. package/runtime/node_modules/mediabunny/src/muxer.ts +14 -1
  838. package/runtime/node_modules/mediabunny/src/ogg/ogg-demuxer.ts +92 -62
  839. package/runtime/node_modules/mediabunny/src/ogg/ogg-misc.ts +1 -1
  840. package/runtime/node_modules/mediabunny/src/ogg/ogg-muxer.ts +203 -88
  841. package/runtime/node_modules/mediabunny/src/output-format.ts +91 -7
  842. package/runtime/node_modules/mediabunny/src/output.ts +57 -30
  843. package/runtime/node_modules/mediabunny/src/packet.ts +1 -1
  844. package/runtime/node_modules/mediabunny/src/resample.ts +1 -0
  845. package/runtime/node_modules/mediabunny/src/sample.ts +105 -51
  846. package/runtime/node_modules/mediabunny/src/segmented-input.ts +50 -24
  847. package/runtime/node_modules/mediabunny/src/source.ts +227 -97
  848. package/runtime/node_modules/mediabunny/src/subtitles.ts +16 -9
  849. package/runtime/node_modules/mediabunny/src/target.ts +65 -41
  850. package/runtime/node_modules/mediabunny/src/version.ts +1 -1
  851. package/runtime/node_modules/mediabunny/src/wave/wave-demuxer.ts +103 -56
  852. package/runtime/node_modules/mediabunny/src/wave/wave-muxer.ts +88 -21
  853. package/runtime/node_modules/mediabunny/src/writer.ts +4 -1
  854. package/runtime/node_modules/sanitize-html/index.js +50 -20
  855. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/css-syntax-error.js +6 -4
  856. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/map-generator.js +12 -2
  857. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/processor.js +1 -1
  858. package/runtime/node_modules/sanitize-html/node_modules/postcss/lib/tokenize.js +6 -13
  859. package/runtime/node_modules/sanitize-html/node_modules/postcss/package.json +1 -1
  860. package/runtime/node_modules/sanitize-html/package.json +1 -1
  861. package/runtime/node_modules/ws/lib/websocket-server.js +3 -0
  862. package/runtime/node_modules/ws/lib/websocket.js +38 -7
  863. package/runtime/node_modules/ws/package.json +1 -1
  864. package/runtime/package-lock.json +195 -171
  865. package/runtime/server.js +1 -1
  866. package/runtime/webapp/dist/assets/AIHubView-DBOyOZzW.js +1 -0
  867. package/runtime/webapp/dist/assets/AgentManager-BLHvEA2d.js +3 -0
  868. package/runtime/webapp/dist/assets/{AiHubPane-DBuhzcId.js → AiHubPane-CWvL3HSl.js} +1 -1
  869. package/runtime/webapp/dist/assets/App-DGtdMfGk.js +179 -0
  870. package/runtime/webapp/dist/assets/BrowserLivePanel-Cl5kMDJF.js +56 -0
  871. package/runtime/webapp/dist/assets/CollaborationCreateDialog-DPs4doOz.js +1 -0
  872. package/runtime/webapp/dist/assets/CollaborationDashboard-ChUaJ5xA.js +1 -0
  873. package/runtime/webapp/dist/assets/CollaborationPage-Cg22tJGB.js +6 -0
  874. package/runtime/webapp/dist/assets/{FilePreview-CkY_jNql.js → FilePreview-BItgMeyP.js} +9 -14
  875. package/runtime/webapp/dist/assets/FileTree-t-YjjCDU.js +11 -0
  876. package/runtime/webapp/dist/assets/FileWorkspaceDrawer-BnOoPJA6.js +1 -0
  877. package/runtime/webapp/dist/assets/FlowStudioPane-DHrpQpBA.js +5 -0
  878. package/runtime/webapp/dist/assets/LSPServerList-CB2Cwqw_.js +4 -0
  879. package/runtime/webapp/dist/assets/MCPServerList-DUpgIcHk.js +8 -0
  880. package/runtime/webapp/dist/assets/MemoryViewer-DCFueBdK.js +1 -0
  881. package/runtime/webapp/dist/assets/RemoteDesktopPage-DD9aNe8m.js +1 -0
  882. package/runtime/webapp/dist/assets/{RunningSessionsIcon-BbgfV3Y9.js → RunningSessionsIcon-CKKjZfu_.js} +1 -1
  883. package/runtime/webapp/dist/assets/SessionDashboard-CCpxslxg.js +21 -0
  884. package/runtime/webapp/dist/assets/{SessionDashboardBridge-DEUcW6SI.js → SessionDashboardBridge-DG1fQUEQ.js} +1 -1
  885. package/runtime/webapp/dist/assets/SettingsPanel-CA0Pj7qk.js +4 -0
  886. package/runtime/webapp/dist/assets/SkillManager-BzgAJlVW.js +1 -0
  887. package/runtime/webapp/dist/assets/{TerminalPane-BLqkE0Sr.js → TerminalPane-Bc4cGUmA.js} +2 -2
  888. package/runtime/webapp/dist/assets/{abnfDiagram-VCTEODGH-DeYUTKWn.js → abnfDiagram-VCTEODGH-Dsp6XgB7.js} +1 -1
  889. package/runtime/webapp/dist/assets/arc-DROGDR5M.js +1 -0
  890. package/runtime/webapp/dist/assets/{architectureDiagram-5GKGNRK7-CuFeRT7v.js → architectureDiagram-5GKGNRK7-S8c_fFRN.js} +1 -1
  891. package/runtime/webapp/dist/assets/{arrow-right-CBoNjLZc.js → arrow-right-CUDfCOna.js} +1 -1
  892. package/runtime/webapp/dist/assets/{artifact-links-DPEFlv87.js → artifact-links-C7zYRJaC.js} +1 -1
  893. package/runtime/webapp/dist/assets/{blockDiagram-I7D4REHJ-CSQFiZW1.js → blockDiagram-I7D4REHJ-DrTz3v2B.js} +1 -1
  894. package/runtime/webapp/dist/assets/{c4Diagram-7LVT6UL2-Dp0yNsZN.js → c4Diagram-7LVT6UL2-wuHRphdr.js} +1 -1
  895. package/runtime/webapp/dist/assets/channel-C_3UNQvo.js +1 -0
  896. package/runtime/webapp/dist/assets/{chevron-down-DqV6YJGE.js → chevron-down-fUU2ZKzR.js} +1 -1
  897. package/runtime/webapp/dist/assets/{chunk-2Q5K7J3B-HGRodfIv.js → chunk-2Q5K7J3B-BpV5cOX0.js} +1 -1
  898. package/runtime/webapp/dist/assets/{chunk-5VM5RSS4-CBrQNVFD.js → chunk-5VM5RSS4-1_IZosIm.js} +1 -1
  899. package/runtime/webapp/dist/assets/{chunk-F27PBJKO-DB6uGYpD.js → chunk-F27PBJKO-IZ7w-WCZ.js} +1 -1
  900. package/runtime/webapp/dist/assets/{chunk-IMKFNOWR-Dedjjkdt.js → chunk-IMKFNOWR-BuicwmZn.js} +3 -3
  901. package/runtime/webapp/dist/assets/{chunk-JWPE2WC7-CFqPSTPh.js → chunk-JWPE2WC7-CfNSj3eC.js} +1 -1
  902. package/runtime/webapp/dist/assets/{chunk-POPQ4Y6H-3acvfPpy.js → chunk-POPQ4Y6H-Bxryudz4.js} +1 -1
  903. package/runtime/webapp/dist/assets/{chunk-SVP7TREG-Bn9tMxLG.js → chunk-SVP7TREG-DSZbEEd6.js} +3 -3
  904. package/runtime/webapp/dist/assets/{chunk-TICWLB2K-BjPHa9Ep.js → chunk-TICWLB2K-CHqUfDzl.js} +1 -1
  905. package/runtime/webapp/dist/assets/{chunk-XXDRQBXY-pSIpAtkj.js → chunk-XXDRQBXY-CPbMDiSF.js} +1 -1
  906. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-j9nJ5DUm.js +1 -0
  907. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-j9nJ5DUm.js +1 -0
  908. package/runtime/webapp/dist/assets/{codeSyntax-Bs__ElW1.js → codeSyntax-BENnBdX2.js} +3 -3
  909. package/runtime/webapp/dist/assets/{collaboration-xcnZxf7i.js → collaboration-DwgXZbHy.js} +1 -1
  910. package/runtime/webapp/dist/assets/composer-file-routing-CKLnrVkP.js +11 -0
  911. package/runtime/webapp/dist/assets/{cose-bilkent-JH36ORCC-Cc1ea8TO.js → cose-bilkent-JH36ORCC-BPzEzfJw.js} +1 -1
  912. package/runtime/webapp/dist/assets/{cynefin-OW5HDTMX-B2IeHhVa.js → cynefin-OW5HDTMX-BZgzPIdr.js} +1 -1
  913. package/runtime/webapp/dist/assets/{cynefinDiagram-5FMLGOSQ-BeZhQnWx.js → cynefinDiagram-5FMLGOSQ-CyNjL-LN.js} +2 -2
  914. package/runtime/webapp/dist/assets/{dagre-GXQ25YYZ-DF08UpVJ.js → dagre-GXQ25YYZ-QqLmAYnp.js} +2 -2
  915. package/runtime/webapp/dist/assets/{diagram-S7CK7UJ4-Cx_tPRJp.js → diagram-S7CK7UJ4-DrIIbhV6.js} +1 -1
  916. package/runtime/webapp/dist/assets/{diagram-UQ7AKVKN-Cb6fFvJt.js → diagram-UQ7AKVKN-B7JON90e.js} +1 -1
  917. package/runtime/webapp/dist/assets/{diagram-VSXAHHWV-CvuweBru.js → diagram-VSXAHHWV-C1Fzjcgp.js} +1 -1
  918. package/runtime/webapp/dist/assets/{diagram-VX7I27RA-BYouVdoe.js → diagram-VX7I27RA-HmkXh54q.js} +1 -1
  919. package/runtime/webapp/dist/assets/{diagram-Z3DM3KII-DRBjsxYw.js → diagram-Z3DM3KII-Ca5jnESS.js} +1 -1
  920. package/runtime/webapp/dist/assets/download-CKrjXoG9.js +6 -0
  921. package/runtime/webapp/dist/assets/{ebnfDiagram-PWID7BFC-CxHOPzwg.js → ebnfDiagram-PWID7BFC-a3qnPIiF.js} +1 -1
  922. package/runtime/webapp/dist/assets/{erDiagram-RLTQ6QDP-tUK9K8ZD.js → erDiagram-RLTQ6QDP-EZKQ4NYt.js} +1 -1
  923. package/runtime/webapp/dist/assets/{external-link-DpecT7Vm.js → external-link-C9AwR_tM.js} +1 -1
  924. package/runtime/webapp/dist/assets/{file-types-CfFmgvNi.js → file-types-BlRT2KnS.js} +9 -4
  925. package/runtime/webapp/dist/assets/{flowDiagram-HODETNUW-BFd8shzR.js → flowDiagram-HODETNUW-C4U9dCin.js} +5 -5
  926. package/runtime/webapp/dist/assets/{ganttDiagram-EL5Y4UJY-Dt3qJ3nR.js → ganttDiagram-EL5Y4UJY-B5iyiF0_.js} +2 -2
  927. package/runtime/webapp/dist/assets/{gitGraphDiagram-WWUBYQGX-L22kw422.js → gitGraphDiagram-WWUBYQGX-D9CfK-tl.js} +1 -1
  928. package/runtime/webapp/dist/assets/{image-plus-Bzr6FXFm.js → image-plus-DsCC5WAa.js} +1 -1
  929. package/runtime/webapp/dist/assets/{index-C165MF0E.js → index-DBNVLOBM.js} +53 -53
  930. package/runtime/webapp/dist/assets/index-DrzCwyPu.css +1 -0
  931. package/runtime/webapp/dist/assets/{infoDiagram-27XIBGKW-DBrWW4hh.js → infoDiagram-27XIBGKW-DBcCijd6.js} +1 -1
  932. package/runtime/webapp/dist/assets/{ishikawaDiagram-5VMMS53U-BiQERurn.js → ishikawaDiagram-5VMMS53U-D_m8F4n9.js} +1 -1
  933. package/runtime/webapp/dist/assets/{journeyDiagram-3NMN7TZE-CbuOAsvy.js → journeyDiagram-3NMN7TZE-4oy2R7XW.js} +1 -1
  934. package/runtime/webapp/dist/assets/{kanban-definition-UXKFOSKX-BS0cpYtD.js → kanban-definition-UXKFOSKX-O6jHSf0E.js} +5 -5
  935. package/runtime/webapp/dist/assets/layout-P82L_S-q.js +1 -0
  936. package/runtime/webapp/dist/assets/{linear-DOnDPVCl.js → linear-B-Cl5K73.js} +1 -1
  937. package/runtime/webapp/dist/assets/{loader-circle-DzxGeGeP.js → loader-circle--s-WzZxC.js} +1 -1
  938. package/runtime/webapp/dist/assets/{mermaid.core-CIbk74HW.js → mermaid.core-BEmIap6p.js} +6 -6
  939. package/runtime/webapp/dist/assets/{mindmap-definition-YA3MSWOX-BXA3aIva.js → mindmap-definition-YA3MSWOX-Bnlqql-j.js} +1 -1
  940. package/runtime/webapp/dist/assets/page-BtLq1udo.js +91 -0
  941. package/runtime/webapp/dist/assets/{pegDiagram-XKGWAZYB-oUTq5zGX.js → pegDiagram-XKGWAZYB-AbRjuoUM.js} +1 -1
  942. package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-5-ms1WT0.js +39 -0
  943. package/runtime/webapp/dist/assets/{quadrantDiagram-AXDQQJYC-BDJl9Tah.js → quadrantDiagram-AXDQQJYC-BXr5BqtQ.js} +2 -2
  944. package/runtime/webapp/dist/assets/{railroadDiagram-O6MQD6OU-BCu1VCKA.js → railroadDiagram-O6MQD6OU-DqBC-aod.js} +1 -1
  945. package/runtime/webapp/dist/assets/{requirementDiagram-BXWQKSXE-CqUIqsRU.js → requirementDiagram-BXWQKSXE-VOUcatZG.js} +1 -1
  946. package/runtime/webapp/dist/assets/{rotate-ccw-Bjr9jTxM.js → rotate-ccw-CSiD4c4O.js} +1 -1
  947. package/runtime/webapp/dist/assets/{rotate-cw-A1YTnj9Q.js → rotate-cw-CclBpLSU.js} +1 -1
  948. package/runtime/webapp/dist/assets/{sankeyDiagram-P5KCCOFB-DaveIjpG.js → sankeyDiagram-P5KCCOFB-Bs23XmVr.js} +1 -1
  949. package/runtime/webapp/dist/assets/{send-BEl9srBG.js → send-CfzPXlfx.js} +1 -1
  950. package/runtime/webapp/dist/assets/{sequenceDiagram-WJ2MYXX4-C7zRgFw8.js → sequenceDiagram-WJ2MYXX4-DO-oDX3L.js} +1 -1
  951. package/runtime/webapp/dist/assets/session-dashboard-D-0Cip5Y.js +6 -0
  952. package/runtime/webapp/dist/assets/{shield-check-C79GaqpX.js → shield-check-Dsex8w1k.js} +1 -1
  953. package/runtime/webapp/dist/assets/{sizeCapture-INFHLROL-BKOrYnP1.js → sizeCapture-INFHLROL-hCQ98eA9.js} +1 -1
  954. package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-DLODIaTQ.js +1 -0
  955. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-CTpD-7Re.js +1 -0
  956. package/runtime/webapp/dist/assets/{swimlanes-42K2YHIH-CbDMTwgn.js → swimlanes-42K2YHIH-B3Qg_5tW.js} +1 -1
  957. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-v5rUeqtL.js +8 -0
  958. package/runtime/webapp/dist/assets/{timeline-definition-24CTP7MA-CanMvfCK.js → timeline-definition-24CTP7MA-BdFnRV4K.js} +1 -1
  959. package/runtime/webapp/dist/assets/{trash-2-RnFgAyKW.js → trash-2-CZp_yMDT.js} +10 -5
  960. package/runtime/webapp/dist/assets/{types-DguAd3Ud.js → types-BWTyn3Bs.js} +1 -1
  961. package/runtime/webapp/dist/assets/{vennDiagram-4TSXK5OY-CR-V0-y3.js → vennDiagram-4TSXK5OY-CRU6BY1c.js} +1 -1
  962. package/runtime/webapp/dist/assets/{wardleyDiagram-VM6X3IG4-CjTtvx6s.js → wardleyDiagram-VM6X3IG4-CXK3g3al.js} +1 -1
  963. package/runtime/webapp/dist/assets/{web-DPag1EjS.js → web-Den_EYDz.js} +1 -1
  964. package/runtime/webapp/dist/assets/{web-DedGjdA8.js → web-JmfGsfI_.js} +1 -1
  965. package/runtime/webapp/dist/assets/{x-Bx8qOEL4.js → x-CLvev0bC.js} +1 -1
  966. package/runtime/webapp/dist/assets/{xychartDiagram-S5SC5T6Z-D2959gYR.js → xychartDiagram-S5SC5T6Z-CeISrKUm.js} +1 -1
  967. package/runtime/webapp/dist/assets/zoom-out-CSyjX26v.js +21 -0
  968. package/runtime/webapp/dist/index.html +18 -3
  969. package/runtime/ws-server.mjs +3 -6
  970. package/runtime/.next/server/chunks/1973.js +0 -1
  971. package/runtime/.next/static/chunks/50-0b6604ece6278dc2.js +0 -1
  972. package/runtime/.next/static/chunks/app/web/layout-62386960d8601cc2.js +0 -1
  973. package/runtime/.next/static/chunks/app/web/page-6b37d8153e607928.js +0 -1
  974. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Info.plist +0 -13
  975. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/MacOS/NativeAXBridge +0 -0
  976. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/Resources/agentroam-component.json +0 -4
  977. package/runtime/native/Support.noindex/WeComSendBridge.app/Contents/_CodeSignature/CodeResources +0 -128
  978. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/NativeAXBridge.swift +0 -240
  979. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/codec.py +0 -133
  980. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/native_sender.py +0 -445
  981. package/runtime/node_modules/@agent/messaging/dist/assets/wecom/reader.py +0 -309
  982. package/runtime/node_modules/@agent/messaging/dist/index.js +0 -1219
  983. package/runtime/node_modules/@agent/messaging/package.json +0 -7
  984. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-8zdh6hy9.mjs +0 -45
  985. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-b5da77cd.mjs +0 -34
  986. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-f2yzhw4m.mjs +0 -18
  987. package/runtime/node_modules/@anthropic-ai/claude-agent-sdk/core-j29a9c1a.mjs +0 -17
  988. package/runtime/node_modules/graceful-fs/LICENSE +0 -15
  989. package/runtime/webapp/dist/assets/App-D3-qxUjs.js +0 -187
  990. package/runtime/webapp/dist/assets/BrowserLivePanel-BywwOAML.js +0 -76
  991. package/runtime/webapp/dist/assets/CollaborationDashboard-DQeiZyu9.js +0 -1
  992. package/runtime/webapp/dist/assets/CollaborationPage-CGymkv8f.js +0 -16
  993. package/runtime/webapp/dist/assets/FileTree-W85iiqhO.js +0 -11
  994. package/runtime/webapp/dist/assets/FlowStudioPane-Ccp0FhYn.js +0 -5
  995. package/runtime/webapp/dist/assets/MessagingBridge-D_cArR8-.js +0 -6
  996. package/runtime/webapp/dist/assets/MessagingPage-BIgDwGgU.js +0 -7
  997. package/runtime/webapp/dist/assets/MessagingPage-CpRafjqY.css +0 -1
  998. package/runtime/webapp/dist/assets/RemoteDesktopPage-Di31a6s4.js +0 -1
  999. package/runtime/webapp/dist/assets/SessionDashboard-a7HETCwZ.js +0 -16
  1000. package/runtime/webapp/dist/assets/arc-Fb_TLw7m.js +0 -1
  1001. package/runtime/webapp/dist/assets/arrow-left-ChO37N0V.js +0 -6
  1002. package/runtime/webapp/dist/assets/channel-CcOPsanj.js +0 -1
  1003. package/runtime/webapp/dist/assets/classDiagram-ZZMXUADV-De9Vn3qI.js +0 -1
  1004. package/runtime/webapp/dist/assets/classDiagram-v2-VYDZK3BY-De9Vn3qI.js +0 -1
  1005. package/runtime/webapp/dist/assets/index-IYQjHlQx.css +0 -1
  1006. package/runtime/webapp/dist/assets/layout-C6lzLyIZ.js +0 -1
  1007. package/runtime/webapp/dist/assets/page-oP1ftgSe.js +0 -91
  1008. package/runtime/webapp/dist/assets/pieDiagram-E7YTZNPT-CES_HFyS.js +0 -39
  1009. package/runtime/webapp/dist/assets/search-rB9Vl5Kd.js +0 -6
  1010. package/runtime/webapp/dist/assets/stateDiagram-D77RDMKH-Cz_WH93D.js +0 -1
  1011. package/runtime/webapp/dist/assets/stateDiagram-v2-MP3YSRHH-Dw9aybAU.js +0 -1
  1012. package/runtime/webapp/dist/assets/swimlanesDiagram-VR7AAH4N-CZrm7vi4.js +0 -8
  1013. package/runtime/webapp/dist/assets/use-error-notice-_MLy2aPZ.js +0 -11
  1014. /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → 5l3_g1bKM6rXvoGoMh_OC}/_buildManifest.js +0 -0
  1015. /package/runtime/.next/static/{ngVhkJylacc9Set69K3lG → 5l3_g1bKM6rXvoGoMh_OC}/_ssgManifest.js +0 -0
  1016. /package/runtime/webapp/dist/assets/{use-error-notice-CAYVDT8Z.css → SessionDashboard-CAYVDT8Z.css} +0 -0
  1017. /package/runtime/webapp/dist/assets/{SessionDashboard-D3n4eFut.css → session-dashboard-D3n4eFut.css} +0 -0
@@ -8,8 +8,13 @@
8
8
 
9
9
  import { TrackType } from '../output';
10
10
  import { SAMPLES_PER_AAC_FRAME } from '../adts/adts-demuxer';
11
- import { MAX_ADTS_FRAME_HEADER_SIZE, readAdtsFrameHeader } from '../adts/adts-reader';
12
- import { aacChannelMap, aacFrequencyTable } from '../../shared/aac-misc';
11
+ import { MAX_ADTS_FRAME_HEADER_SIZE, MIN_ADTS_FRAME_HEADER_SIZE, readAdtsFrameHeader } from '../adts/adts-reader';
12
+ import {
13
+ aacChannelMap,
14
+ aacFrequencyTable,
15
+ getAacProgramConfigElementChannelCount,
16
+ readAdtsProgramConfigElement,
17
+ } from '../../shared/aac-misc';
13
18
  import {
14
19
  AacCodecInfo,
15
20
  AudioCodec,
@@ -169,7 +174,6 @@ type TsPacket = TsPacketHeader & {
169
174
 
170
175
  type Section = {
171
176
  startPos: number;
172
- endPos: number | null; // null if the section was not read fully
173
177
  pid: number;
174
178
  payload: Uint8Array<ArrayBufferLike>;
175
179
  randomAccessIndicator: number;
@@ -252,22 +256,27 @@ export class MpegTsDemuxer extends Demuxer {
252
256
  continue;
253
257
  }
254
258
 
259
+ const isElementaryStreamPid = this.elementaryStreams.some(x => x.pid === packetHeader.pid);
255
260
  const section = await this.readSection(
256
261
  currentPos,
257
- true,
262
+ !isElementaryStreamPid,
258
263
  !hasProgramMap, // Expect contiguous sections as long as we don't have the PMT
259
264
  );
260
265
  if (!section) {
261
266
  break;
262
267
  }
263
268
 
264
- const BYTES_BEFORE_SECTION_LENGTH = 3;
265
269
  const BITS_IN_CRC_32 = 32; // Duh
266
270
 
267
- // Some streams don't contain a PAT for some reason, so we must do some guesswork to figure out where
268
- // the PMT is.
269
- let isProbablyProgramMap = false;
270
- if (!hasProgramMap && section.pid !== 0) {
271
+ // Some streams don't contain a PAT for some reason, so as long as we haven't seen one, we must do some
272
+ // guesswork to figure out where the PMT is. Either way, the PMT PID may also carry private sections, so
273
+ // the table ID tells us it's the PMT.
274
+ let isProgramMap = false;
275
+ if (
276
+ !hasProgramMap
277
+ && section.pid !== 0
278
+ && (programMapPid === null || section.pid === programMapPid)
279
+ ) {
271
280
  const isPesPacket
272
281
  = section.payload[0] === 0x00 && section.payload[1] === 0x00 && section.payload[2] === 0x01;
273
282
 
@@ -280,7 +289,7 @@ export class MpegTsDemuxer extends Demuxer {
280
289
  bitstream.skipBits(8 * pointerField);
281
290
 
282
291
  const tableId = bitstream.readBits(8);
283
- isProbablyProgramMap = tableId === 0x02; // 0x02 == TS_program_map_section
292
+ isProgramMap = tableId === 0x02; // 0x02 == TS_program_map_section
284
293
  }
285
294
  }
286
295
 
@@ -292,10 +301,11 @@ export class MpegTsDemuxer extends Demuxer {
292
301
 
293
302
  bitstream.skipBits(14);
294
303
  const sectionLength = bitstream.readBits(10);
304
+ const sectionEndPos = bitstream.pos + 8 * sectionLength;
295
305
 
296
306
  bitstream.skipBits(40);
297
307
 
298
- while (8 * (sectionLength + BYTES_BEFORE_SECTION_LENGTH) - bitstream.pos > BITS_IN_CRC_32) {
308
+ while (sectionEndPos - bitstream.pos > BITS_IN_CRC_32) {
299
309
  const programNumber = bitstream.readBits(16);
300
310
  bitstream.skipBits(3); // Reserved
301
311
  const id = bitstream.readBits(13);
@@ -314,7 +324,7 @@ export class MpegTsDemuxer extends Demuxer {
314
324
  }
315
325
 
316
326
  hasProgramAssociationTable = true;
317
- } else if ((section.pid === programMapPid || isProbablyProgramMap) && !hasProgramMap) {
327
+ } else if (isProgramMap) {
318
328
  const bitstream = new Bitstream(section.payload);
319
329
  const pointerField = bitstream.readAlignedByte();
320
330
 
@@ -322,6 +332,7 @@ export class MpegTsDemuxer extends Demuxer {
322
332
 
323
333
  bitstream.skipBits(12);
324
334
  const sectionLength = bitstream.readBits(12);
335
+ const sectionEndPos = bitstream.pos + 8 * sectionLength;
325
336
 
326
337
  bitstream.skipBits(43);
327
338
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -354,7 +365,7 @@ export class MpegTsDemuxer extends Demuxer {
354
365
 
355
366
  bitstream.pos = programInfoEndPos;
356
367
 
357
- while (8 * (sectionLength + BYTES_BEFORE_SECTION_LENGTH) - bitstream.pos > BITS_IN_CRC_32) {
368
+ while (sectionEndPos - bitstream.pos > BITS_IN_CRC_32) {
358
369
  const streamType = bitstream.readBits(8);
359
370
  bitstream.skipBits(3);
360
371
  const elementaryPid = bitstream.readBits(13);
@@ -521,8 +532,8 @@ export class MpegTsDemuxer extends Demuxer {
521
532
  const elementaryStream = this.elementaryStreams.find(x => x.pid === section.pid);
522
533
  outer:
523
534
  if (elementaryStream && !elementaryStream.initialized) {
524
- const pesPacket = readPesPacket(this, section, true);
525
- if (!pesPacket) {
535
+ const pesPacketHeader = readPesPacketHeader(this, section, true);
536
+ if (!pesPacketHeader) {
526
537
  throw new Error(
527
538
  `Couldn't read first PES packet for Elementary Stream with PID ${elementaryStream.pid}`,
528
539
  );
@@ -533,6 +544,12 @@ export class MpegTsDemuxer extends Demuxer {
533
544
 
534
545
  if (this.input._initInput) {
535
546
  const initDemuxer = (await this.input._initInput._getDemuxer()) as MpegTsDemuxer;
547
+ if (initDemuxer.constructor !== MpegTsDemuxer) {
548
+ throw new Error('Init input must match the input\'s format.');
549
+ }
550
+
551
+ await initDemuxer.readMetadata();
552
+
536
553
  const matchingStream = initDemuxer.elementaryStreams.find(x => (
537
554
  x.pid === section.pid && x.info.codec === elementaryStream.info.codec && x.initialized
538
555
  ));
@@ -545,7 +562,7 @@ export class MpegTsDemuxer extends Demuxer {
545
562
  }
546
563
  }
547
564
 
548
- const context = new PacketReadingContext(elementaryStream, pesPacket);
565
+ const context = new PacketReadingContext(elementaryStream, section.startPos);
549
566
 
550
567
  if (elementaryStream.info.type === 'video') {
551
568
  // We loop because in some files, the video parameters are not in the first packet
@@ -681,6 +698,7 @@ export class MpegTsDemuxer extends Demuxer {
681
698
  colorSpace: elementaryStream.info.colorSpace,
682
699
  avcType: 1,
683
700
  avcCodecInfo: elementaryStream.info.avcCodecInfo,
701
+ hevcType: 'hev1',
684
702
  hevcCodecInfo: elementaryStream.info.hevcCodecInfo,
685
703
  vp9CodecInfo: null,
686
704
  av1CodecInfo: null,
@@ -724,8 +742,28 @@ export class MpegTsDemuxer extends Demuxer {
724
742
  isMpeg2: false,
725
743
  objectType: header.objectType,
726
744
  };
727
- elementaryStream.info.numberOfChannels
728
- = aacChannelMap[header.channelConfiguration]!;
745
+
746
+ if (header.channelConfiguration === 0) {
747
+ // The channel layout comes from the PCE at the start of the frame's raw data block
748
+ const headerSize = header.crcCheck === null
749
+ ? MIN_ADTS_FRAME_HEADER_SIZE
750
+ : MAX_ADTS_FRAME_HEADER_SIZE;
751
+ const result = readAdtsProgramConfigElement(
752
+ context.suppliedPacket.data.subarray(headerSize, header.frameLength),
753
+ );
754
+ if (!result) {
755
+ throw new Error(
756
+ 'Invalid AAC audio stream; ADTS frames with channel configuration 0 must'
757
+ + ' begin with a program config element.',
758
+ );
759
+ }
760
+
761
+ elementaryStream.info.numberOfChannels
762
+ = getAacProgramConfigElementChannelCount(result.programConfigElement);
763
+ } else {
764
+ elementaryStream.info.numberOfChannels
765
+ = aacChannelMap[header.channelConfiguration]!;
766
+ }
729
767
  elementaryStream.info.sampleRate
730
768
  = aacFrequencyTable[header.samplingFrequencyIndex]!;
731
769
  } else if (elementaryStream.info.codec === 'mp3') {
@@ -880,15 +918,14 @@ export class MpegTsDemuxer extends Demuxer {
880
918
  }
881
919
 
882
920
  if (!firstPacket) {
883
- if (packet.payloadUnitStartIndicator === 0) {
884
- break;
885
- }
886
-
921
+ assert(packet.payloadUnitStartIndicator === 1); // Callers only start sections at such packets
887
922
  firstPacket = packet;
888
923
  } else {
889
924
  if (packet.pid !== firstPacket.pid) {
890
925
  if (contiguous) {
891
- break; // End of section
926
+ // The section may well continue after the foreign packets, so this isn't necessarily its end
927
+ mustAddSectionEnd = false;
928
+ break;
892
929
  } else {
893
930
  continue; // Ignore this packet
894
931
  }
@@ -962,7 +999,6 @@ export class MpegTsDemuxer extends Demuxer {
962
999
 
963
1000
  return {
964
1001
  startPos,
965
- endPos: full ? endPos : null,
966
1002
  pid: firstPacket.pid,
967
1003
  payload: merged,
968
1004
  randomAccessIndicator,
@@ -1053,7 +1089,6 @@ export class MpegTsDemuxer extends Demuxer {
1053
1089
 
1054
1090
  type PesPacketHeader = {
1055
1091
  sectionStartPos: number;
1056
- sectionEndPos: number | null; // null if the section wasn't read fully
1057
1092
  pts: number | null;
1058
1093
  randomAccessIndicator: number;
1059
1094
  };
@@ -1062,14 +1097,6 @@ type TimestampedPesPacketHeader = PesPacketHeader & {
1062
1097
  pts: number;
1063
1098
  };
1064
1099
 
1065
- type PesPacket = PesPacketHeader & {
1066
- data: Uint8Array<ArrayBufferLike>;
1067
- };
1068
-
1069
- type TimestampedPesPacket = PesPacket & {
1070
- pts: number;
1071
- };
1072
-
1073
1100
  const readPesPacketHeader = <T extends boolean>(
1074
1101
  demuxer: MpegTsDemuxer,
1075
1102
  section: Section,
@@ -1128,54 +1155,11 @@ const readPesPacketHeader = <T extends boolean>(
1128
1155
 
1129
1156
  return {
1130
1157
  sectionStartPos: section.startPos,
1131
- sectionEndPos: section.endPos,
1132
1158
  pts,
1133
1159
  randomAccessIndicator: section.randomAccessIndicator,
1134
1160
  } as T extends true ? TimestampedPesPacketHeader : PesPacketHeader;
1135
1161
  };
1136
1162
 
1137
- const readPesPacket = <T extends boolean>(
1138
- demuxer: MpegTsDemuxer,
1139
- section: Section,
1140
- expectPts: T,
1141
- ): (T extends true ? TimestampedPesPacket : PesPacket) | null => {
1142
- assert(section.endPos !== null); // Can only read full PES packets from fully read sections
1143
-
1144
- const header = readPesPacketHeader(demuxer, section, expectPts);
1145
- if (!header) {
1146
- return null;
1147
- }
1148
-
1149
- const bitstream = new Bitstream(section.payload);
1150
- bitstream.skipBits(32);
1151
- const pesPacketLength = bitstream.readBits(16);
1152
- const BYTES_UNTIL_END_OF_PES_PACKET_LENGTH = 6;
1153
-
1154
- bitstream.skipBits(16);
1155
- const pesHeaderDataLength = bitstream.readBits(8);
1156
- const pesHeaderEndPos = bitstream.pos + 8 * pesHeaderDataLength;
1157
-
1158
- bitstream.pos = pesHeaderEndPos;
1159
-
1160
- const bytePos = pesHeaderEndPos / 8;
1161
- assert(Number.isInteger(bytePos));
1162
-
1163
- const data = section.payload.subarray(
1164
- bytePos,
1165
- // "A value of 0 indicates that the PES packet length is neither specified nor bounded and is allowed only in
1166
- // PES packets whose payload consists of bytes from a video elementary stream contained in
1167
- // transport stream packets."
1168
- pesPacketLength > 0
1169
- ? BYTES_UNTIL_END_OF_PES_PACKET_LENGTH + pesPacketLength
1170
- : section.payload.byteLength,
1171
- );
1172
-
1173
- return {
1174
- ...header,
1175
- data,
1176
- } as T extends true ? TimestampedPesPacket : PesPacket;
1177
- };
1178
-
1179
1163
  abstract class MpegTsTrackBacking implements InputTrackBacking {
1180
1164
  packetBuffers = new WeakMap<EncodedPacket, PacketBuffer>();
1181
1165
  /** Used for recreating PacketBuffers if necessary. */
@@ -1186,10 +1170,6 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1186
1170
  abstract getType(): TrackType;
1187
1171
  abstract getDecoderConfig(): Promise<VideoDecoderConfig | AudioDecoderConfig | null>;
1188
1172
 
1189
- getId() {
1190
- return this.elementaryStream.pid;
1191
- }
1192
-
1193
1173
  getNumber() {
1194
1174
  const demuxer = this.elementaryStream.demuxer;
1195
1175
  const trackType = this.elementaryStream.info.type;
@@ -1296,10 +1276,7 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1296
1276
  const section = this.elementaryStream.firstSection;
1297
1277
  assert(section);
1298
1278
 
1299
- const pesPacket = readPesPacket(this.elementaryStream.demuxer, section, true);
1300
- assert(pesPacket);
1301
-
1302
- const context = new PacketReadingContext(this.elementaryStream, pesPacket);
1279
+ const context = new PacketReadingContext(this.elementaryStream, section.startPos);
1303
1280
  const buffer = new PacketBuffer(this, context);
1304
1281
 
1305
1282
  const result = await buffer.readNext();
@@ -1318,15 +1295,15 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1318
1295
  let buffer = this.packetBuffers.get(packet);
1319
1296
 
1320
1297
  if (buffer) {
1321
- // Fast path
1298
+ // Remove PacketBuffer access from the old packet, it belongs to the next packet now. Remove it before any
1299
+ // async to prevent races
1300
+ this.packetBuffers.delete(packet);
1301
+
1322
1302
  const result = await buffer.readNext();
1323
1303
  if (!result) {
1324
1304
  return null;
1325
1305
  }
1326
1306
 
1327
- // Remove PacketBuffer access from the old packet, it belongs to the next packet now
1328
- this.packetBuffers.delete(packet);
1329
-
1330
1307
  const newPacket = this.createEncodedPacket(result.packet, result.duration, options);
1331
1308
  this.packetBuffers.set(newPacket, buffer);
1332
1309
  this.packetSectionStarts.set(newPacket, result.packet.sectionStartPos);
@@ -1341,13 +1318,32 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1341
1318
  }
1342
1319
 
1343
1320
  const demuxer = this.elementaryStream.demuxer;
1344
- const section = await demuxer.readSection(sectionStartPos, true);
1345
- assert(section);
1346
1321
 
1347
- const pesPacket = readPesPacket(demuxer, section, true);
1348
- assert(pesPacket);
1322
+ // Rewind by reorderSize PES packets, since the reordering (and with it the packet durations) depends on the
1323
+ // packets decoded before this one
1324
+ let startPos = sectionStartPos;
1325
+ let pesPacketsToRewind = this.getReorderSize();
1326
+ let pos = sectionStartPos - demuxer.packetStride;
1327
+
1328
+ while (pesPacketsToRewind > 0 && pos >= demuxer.packetOffset) {
1329
+ const packetHeader = await demuxer.readPacketHeader(pos);
1330
+ assert(packetHeader);
1331
+
1332
+ if (packetHeader.pid === this.elementaryStream.pid && packetHeader.payloadUnitStartIndicator === 1) {
1333
+ const pesSection = await demuxer.readSection(pos, false);
1334
+ assert(pesSection);
1335
+
1336
+ const pesHeader = readPesPacketHeader(demuxer, pesSection, false);
1337
+ if (pesHeader && pesHeader.pts !== null) {
1338
+ startPos = pos;
1339
+ pesPacketsToRewind--;
1340
+ }
1341
+ }
1349
1342
 
1350
- const context = new PacketReadingContext(this.elementaryStream, pesPacket);
1343
+ pos -= demuxer.packetStride;
1344
+ }
1345
+
1346
+ const context = new PacketReadingContext(this.elementaryStream, startPos);
1351
1347
  buffer = new PacketBuffer(this, context);
1352
1348
 
1353
1349
  // Advance until we pass the current packet's sequence number
@@ -1409,11 +1405,7 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1409
1405
  const { reader, seekChunkSize } = demuxer;
1410
1406
  const pid = this.elementaryStream.pid;
1411
1407
 
1412
- const findFirstPesPacketHeaderInChunk = async (
1413
- startPos: number,
1414
- endPos: number,
1415
- readSectionInFull: boolean,
1416
- ) => {
1408
+ const findFirstPesPacketHeaderInChunk = async (startPos: number, endPos: number) => {
1417
1409
  let currentPos = startPos;
1418
1410
 
1419
1411
  while (currentPos < endPos) {
@@ -1423,17 +1415,14 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1423
1415
  }
1424
1416
 
1425
1417
  if (packetHeader.pid === pid && packetHeader.payloadUnitStartIndicator === 1) {
1426
- const section = await demuxer.readSection(currentPos, readSectionInFull);
1418
+ const section = await demuxer.readSection(currentPos, false);
1427
1419
  if (!section) {
1428
1420
  return null;
1429
1421
  }
1430
1422
 
1431
1423
  const pesPacketHeader = readPesPacketHeader(demuxer, section, false);
1432
1424
  if (pesPacketHeader && pesPacketHeader.pts !== null) {
1433
- return {
1434
- pesPacketHeader: pesPacketHeader as TimestampedPesPacketHeader,
1435
- section,
1436
- };
1425
+ return pesPacketHeader as TimestampedPesPacketHeader;
1437
1426
  }
1438
1427
  }
1439
1428
 
@@ -1449,11 +1438,6 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1449
1438
  const firstPesPacketHeader = readPesPacketHeader(demuxer, firstSection, true);
1450
1439
  assert(firstPesPacketHeader);
1451
1440
 
1452
- if (searchPts < firstPesPacketHeader.pts) {
1453
- // We're before the first packet, definitely nothing here
1454
- return null;
1455
- }
1456
-
1457
1441
  let scanStartPos: number;
1458
1442
 
1459
1443
  const referencePesPackets = this.elementaryStream.referencePesPackets;
@@ -1465,7 +1449,12 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1465
1449
  } else {
1466
1450
  let startChunkIndex = 0;
1467
1451
 
1468
- if (reader.fileSize !== null) {
1452
+ if (
1453
+ reader.fileSize !== null
1454
+ // Packets presented before the first PES packet can only be leading frames right after it (think open
1455
+ // GOPs), so those don't need any searching
1456
+ && searchPts >= firstPesPacketHeader.pts
1457
+ ) {
1469
1458
  const numChunks = Math.ceil(reader.fileSize / seekChunkSize);
1470
1459
 
1471
1460
  if (numChunks > 1) {
@@ -1480,15 +1469,15 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1480
1469
  + firstPesPacketHeader.sectionStartPos;
1481
1470
  const chunkEndPos = chunkStartPos + seekChunkSize;
1482
1471
 
1483
- const result = await findFirstPesPacketHeaderInChunk(chunkStartPos, chunkEndPos, false);
1472
+ const pesPacketHeader = await findFirstPesPacketHeaderInChunk(chunkStartPos, chunkEndPos);
1484
1473
 
1485
- if (!result) {
1474
+ if (!pesPacketHeader) {
1486
1475
  // No PES packet found in this chunk, search left
1487
1476
  high = mid - 1;
1488
1477
  continue;
1489
1478
  }
1490
1479
 
1491
- if (result.pesPacketHeader.pts <= searchPts) {
1480
+ if (pesPacketHeader.pts <= searchPts) {
1492
1481
  // This chunk's first PES is <= searchPts, it's a candidate
1493
1482
  startChunkIndex = mid;
1494
1483
  low = mid + 1; // Search right
@@ -1507,13 +1496,7 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1507
1496
  }
1508
1497
 
1509
1498
  // Find the first PES packet at or after scanStartPos
1510
- const result = await findFirstPesPacketHeaderInChunk(
1511
- scanStartPos,
1512
- reader.fileSize ?? Infinity,
1513
- false,
1514
- );
1515
-
1516
- let currentPesHeader = result?.pesPacketHeader ?? null;
1499
+ let currentPesHeader = await findFirstPesPacketHeaderInChunk(scanStartPos, reader.fileSize ?? Infinity);
1517
1500
  if (!currentPesHeader) {
1518
1501
  // Fall back to first packet
1519
1502
  currentPesHeader = firstPesPacketHeader;
@@ -1525,14 +1508,7 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1525
1508
  sectionStartPos: number,
1526
1509
  predicate: (packet: SuppliedPacket) => boolean,
1527
1510
  ) => {
1528
- // Load the relevant section in full
1529
- const section = await demuxer.readSection(sectionStartPos, true);
1530
- assert(section);
1531
-
1532
- const pesPacket = readPesPacket(demuxer, section, true);
1533
- assert(pesPacket);
1534
-
1535
- const context = new PacketReadingContext(this.elementaryStream, pesPacket);
1511
+ const context = new PacketReadingContext(this.elementaryStream, sectionStartPos);
1536
1512
  const buffer = new PacketBuffer(this, context);
1537
1513
 
1538
1514
  // Advance until the top-most presentation timestamp crosses or equals searchPts
@@ -1554,13 +1530,9 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1554
1530
  }
1555
1531
 
1556
1532
  const targetPacket = buffer.presentationOrderPackets[targetIndex]!;
1557
- const lastDuration = targetIndex === 0
1558
- ? 0
1559
- : targetPacket.pts - buffer.presentationOrderPackets[targetIndex - 1]!.pts;
1560
1533
 
1561
1534
  // Pop packets in decode order until we hit the target packet
1562
1535
  buffer.decodeOrderPackets.splice(0, buffer.decodeOrderPackets.indexOf(targetPacket));
1563
- buffer.lastDuration = lastDuration; // Kinda ugly but necessary fix
1564
1536
 
1565
1537
  const result = await buffer.readNext();
1566
1538
  assert(result);
@@ -1609,12 +1581,13 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1609
1581
  }
1610
1582
  }
1611
1583
 
1612
- // Rewind by reorderSize + 1 PES packets (even for audio! To ensure proper durations)
1584
+ // Rewind by reorderSize + 1 PES packets (even for audio! To ensure proper durations), but never past the
1585
+ // track's first PES packet, since anything before it isn't part of the track
1613
1586
  outer:
1614
1587
  for (let i = 0; i < reorderSize + 1; i++) {
1615
1588
  let pos = currentPesHeader.sectionStartPos - demuxer.packetStride;
1616
1589
 
1617
- while (pos >= demuxer.packetOffset) {
1590
+ while (pos >= firstPesPacketHeader.sectionStartPos) {
1618
1591
  const packetHeader = await demuxer.readPacketHeader(pos);
1619
1592
  if (!packetHeader) {
1620
1593
  break outer;
@@ -1634,8 +1607,8 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1634
1607
  pos -= demuxer.packetStride;
1635
1608
  }
1636
1609
 
1637
- if (pos < demuxer.packetOffset) {
1638
- break; // We've hit the start of the file, there's nothing more to rewind
1610
+ if (pos < firstPesPacketHeader.sectionStartPos) {
1611
+ break; // We've hit the track's first PES packet, there's nothing more to rewind
1639
1612
  }
1640
1613
  }
1641
1614
 
@@ -1647,28 +1620,19 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1647
1620
  let currentChunkStartPos = scanStartPos;
1648
1621
  let nextChunkStartPos: number | null = null; // "next" as in later in the file, even tho we scan backwards
1649
1622
 
1650
- const readSectionsInFull = !this.elementaryStream.canBeTrustedWithKeyPackets;
1651
-
1652
1623
  while (true) {
1653
1624
  let bestKeyPesHeader: TimestampedPesPacketHeader | null = null;
1654
1625
 
1655
1626
  const isFirstChunk = currentChunkStartPos <= firstPesPacketHeader.sectionStartPos;
1656
1627
 
1657
1628
  let pesHeader: TimestampedPesPacketHeader | null;
1658
- let pesHeaderSection: Section | null = null;
1659
-
1660
1629
  if (isFirstChunk) {
1661
1630
  pesHeader = firstPesPacketHeader;
1662
- pesHeaderSection = firstSection;
1663
1631
  } else {
1664
- const result = await findFirstPesPacketHeaderInChunk(
1632
+ pesHeader = await findFirstPesPacketHeaderInChunk(
1665
1633
  currentChunkStartPos,
1666
1634
  nextChunkStartPos ?? reader.fileSize ?? Infinity,
1667
- readSectionsInFull,
1668
1635
  );
1669
-
1670
- pesHeader = result?.pesPacketHeader ?? null;
1671
- pesHeaderSection = result?.section ?? null;
1672
1636
  }
1673
1637
 
1674
1638
  let passedSearchPts = false;
@@ -1687,13 +1651,7 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1687
1651
  if (this.elementaryStream.canBeTrustedWithKeyPackets) {
1688
1652
  isKeyPacket = pesHeader.randomAccessIndicator === 1;
1689
1653
  } else {
1690
- if (!context) {
1691
- assert(pesHeaderSection);
1692
- const pesPacket = readPesPacket(demuxer, pesHeaderSection, true);
1693
- assert(pesPacket);
1694
-
1695
- context = new PacketReadingContext(this.elementaryStream, pesPacket);
1696
- }
1654
+ context ??= new PacketReadingContext(this.elementaryStream, pesHeader.sectionStartPos);
1697
1655
 
1698
1656
  // Advance to the first packet that starts in this PES packet
1699
1657
  while (
@@ -1740,13 +1698,12 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1740
1698
  }
1741
1699
 
1742
1700
  if (packetHeader.pid === pid && packetHeader.payloadUnitStartIndicator === 1) {
1743
- const section = await demuxer.readSection(currentPos, readSectionsInFull);
1701
+ const section = await demuxer.readSection(currentPos, false);
1744
1702
  if (section) {
1745
1703
  const nextPesHeader = readPesPacketHeader(demuxer, section, false);
1746
1704
 
1747
1705
  if (nextPesHeader && nextPesHeader.pts !== null) {
1748
1706
  pesHeader = nextPesHeader as TimestampedPesPacketHeader;
1749
- pesHeaderSection = section;
1750
1707
  maybeInsertReferencePacket(this.elementaryStream, pesHeader);
1751
1708
 
1752
1709
  break;
@@ -1764,17 +1721,17 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1764
1721
  if (lookaheadCount === 0) {
1765
1722
  // Packet is at the end of stream, let's rewind a little to obtain the correct packet duration
1766
1723
  outer:
1767
- for (let i = 0; i < reorderSize; i++) {
1724
+ for (let i = 0; i < reorderSize + 1; i++) {
1768
1725
  let pos = startPesHeader.sectionStartPos - demuxer.packetStride;
1769
1726
 
1770
- while (pos >= demuxer.packetOffset) {
1727
+ while (pos >= firstPesPacketHeader.sectionStartPos) {
1771
1728
  const packetHeader = await demuxer.readPacketHeader(pos);
1772
1729
  if (!packetHeader) {
1773
1730
  break outer;
1774
1731
  }
1775
1732
 
1776
1733
  if (packetHeader.pid === pid && packetHeader.payloadUnitStartIndicator === 1) {
1777
- const section = await demuxer.readSection(pos, readSectionsInFull);
1734
+ const section = await demuxer.readSection(pos, false);
1778
1735
  if (section) {
1779
1736
  const header = readPesPacketHeader(demuxer, section, false);
1780
1737
  if (header && header.pts !== null) {
@@ -1787,8 +1744,8 @@ abstract class MpegTsTrackBacking implements InputTrackBacking {
1787
1744
  pos -= demuxer.packetStride;
1788
1745
  }
1789
1746
 
1790
- if (pos < demuxer.packetOffset) {
1791
- break; // We've hit the start of the file, there's nothing more to rewind
1747
+ if (pos < firstPesPacketHeader.sectionStartPos) {
1748
+ break; // We've hit the track's first PES packet, there's nothing more to rewind
1792
1749
  }
1793
1750
  }
1794
1751
  }
@@ -1920,6 +1877,8 @@ const maybeInsertReferencePacket = (
1920
1877
  pesPacketHeader.sectionStartPos,
1921
1878
  x => x.sectionStartPos,
1922
1879
  );
1880
+ const minByteDistance = elementaryStream.demuxer.minReferencePointByteDistance;
1881
+
1923
1882
  if (index >= 0) {
1924
1883
  // Since pts and file position don't necessarily have a monotonic relationship (since pts can go crazy),
1925
1884
  // let's see if inserting at the given index would violate the pts order. If so, return.
@@ -1928,31 +1887,27 @@ const maybeInsertReferencePacket = (
1928
1887
  return false;
1929
1888
  }
1930
1889
 
1931
- const minByteDistance = elementaryStream.demuxer.minReferencePointByteDistance;
1932
-
1933
1890
  if (pesPacketHeader.sectionStartPos - entry.sectionStartPos < minByteDistance) {
1934
1891
  // Too close
1935
1892
  return false;
1936
1893
  }
1894
+ }
1937
1895
 
1938
- if (index < referencePesPackets.length - 1) {
1939
- const nextEntry = referencePesPackets[index + 1]!;
1940
- if (nextEntry.pts < pesPacketHeader.pts) {
1941
- // Out of order
1942
- return false;
1943
- }
1896
+ if (index < referencePesPackets.length - 1) {
1897
+ const nextEntry = referencePesPackets[index + 1]!;
1898
+ if (nextEntry.pts < pesPacketHeader.pts) {
1899
+ // Out of order
1900
+ return false;
1901
+ }
1944
1902
 
1945
- if (nextEntry.sectionStartPos - pesPacketHeader.sectionStartPos < minByteDistance) {
1946
- // Too close
1947
- return false;
1948
- }
1903
+ if (nextEntry.sectionStartPos - pesPacketHeader.sectionStartPos < minByteDistance) {
1904
+ // Too close
1905
+ return false;
1949
1906
  }
1950
1907
  }
1951
1908
 
1952
- // Copy only the header fields (callers may pass a whole PES packet)
1953
1909
  referencePesPackets.splice(index + 1, 0, {
1954
1910
  sectionStartPos: pesPacketHeader.sectionStartPos,
1955
- sectionEndPos: pesPacketHeader.sectionEndPos,
1956
1911
  pts: pesPacketHeader.pts,
1957
1912
  randomAccessIndicator: pesPacketHeader.randomAccessIndicator,
1958
1913
  });
@@ -1961,6 +1916,7 @@ const maybeInsertReferencePacket = (
1961
1916
 
1962
1917
  type SuppliedPacket = {
1963
1918
  pts: number;
1919
+ intrinsicDuration: number;
1964
1920
  data: Uint8Array;
1965
1921
  sequenceNumber: number;
1966
1922
  sectionStartPos: number;
@@ -1972,23 +1928,30 @@ class PacketReadingContext {
1972
1928
  elementaryStream: ElementaryStream;
1973
1929
  pid: number;
1974
1930
  demuxer: MpegTsDemuxer;
1975
- startingPesPacket: TimestampedPesPacket;
1976
1931
 
1977
- currentPos = 0; // Relative to the data in startingPesPacket
1978
- pesPackets: PesPacket[] = [];
1979
- currentPesPacketIndex = 0;
1980
- currentPesPacketPos = 0;
1932
+ nextTsPacketPos: number;
1933
+ reachedEnd = false;
1934
+ isInPesPacket = false;
1935
+ pesHeaderBytesLeft = 0;
1936
+ pesDataBytesLeft = 0;
1937
+
1938
+ // Positions are relative to `pesPacketStartPos`
1939
+ currentPos = 0;
1981
1940
  endPos = 0;
1982
- lastSuppliedPesPacket: PesPacket | null = null;
1941
+ scratch = new Uint8Array(2 ** 16);
1942
+ scratchStartPos = 0;
1943
+ pesPackets: PesPacketHeader[] = [];
1944
+ pesPacketDataStartPositions: number[] = [];
1945
+ lastSuppliedPesPacket: PesPacketHeader | null = null;
1983
1946
  nextPts: number | null = null;
1984
1947
 
1985
1948
  suppliedPacket: SuppliedPacket | null = null;
1986
1949
 
1987
- constructor(elementaryStream: ElementaryStream, startingPesPacket: TimestampedPesPacket) {
1950
+ constructor(elementaryStream: ElementaryStream, pesPacketStartPos: number) {
1988
1951
  this.elementaryStream = elementaryStream;
1989
1952
  this.pid = elementaryStream.pid;
1990
1953
  this.demuxer = elementaryStream.demuxer;
1991
- this.startingPesPacket = startingPesPacket;
1954
+ this.nextTsPacketPos = pesPacketStartPos;
1992
1955
  }
1993
1956
 
1994
1957
  ensureBuffered(length: number) {
@@ -2001,134 +1964,101 @@ class PacketReadingContext {
2001
1964
  .then(() => Math.min(this.endPos - this.currentPos, length));
2002
1965
  }
2003
1966
 
2004
- getCurrentPesPacket() {
2005
- const packet = this.pesPackets[this.currentPesPacketIndex];
2006
- assert(packet);
2007
-
2008
- return packet;
2009
- }
2010
-
2011
1967
  async bufferData(length: number): Promise<void> {
2012
1968
  const targetEndPos = this.endPos + length;
2013
1969
 
2014
- while (this.endPos < targetEndPos) {
2015
- let pesPacket: PesPacket;
2016
- if (this.pesPackets.length === 0) {
2017
- pesPacket = this.startingPesPacket;
2018
- } else {
2019
- // Find the next PES packet
2020
- let currentPos = last(this.pesPackets)!.sectionEndPos;
2021
- assert(currentPos !== null);
1970
+ // Data is taken in one TS packet at a time
1971
+ while (this.endPos < targetEndPos && !this.reachedEnd) {
1972
+ const pos = this.nextTsPacketPos;
1973
+ const packet = await this.demuxer.readPacket(pos);
1974
+ if (!packet) {
1975
+ this.reachedEnd = true;
1976
+ break;
1977
+ }
2022
1978
 
2023
- while (true) {
2024
- const packetHeader = await this.demuxer.readPacketHeader(currentPos);
2025
- if (!packetHeader) {
2026
- return;
2027
- }
1979
+ this.nextTsPacketPos += this.demuxer.packetStride;
2028
1980
 
2029
- if (packetHeader.pid === this.pid) {
2030
- const nextSection = await this.demuxer.readSection(currentPos, true);
2031
- if (!nextSection) {
2032
- return;
2033
- }
1981
+ if (packet.pid !== this.pid) {
1982
+ continue;
1983
+ }
2034
1984
 
2035
- const nextPesPacket = readPesPacket(this.demuxer, nextSection, false);
2036
- if (nextPesPacket) {
2037
- pesPacket = nextPesPacket;
2038
- break;
2039
- }
2040
- }
1985
+ if (packet.payloadUnitStartIndicator === 1) {
1986
+ this.isInPesPacket = false;
2041
1987
 
2042
- currentPos += this.demuxer.packetStride;
2043
- }
2044
- }
1988
+ const section = await this.demuxer.readSection(pos, false);
1989
+ assert(section);
2045
1990
 
2046
- this.pesPackets.push(pesPacket);
2047
- this.endPos += pesPacket.data.byteLength;
2048
- }
2049
- }
1991
+ const header = readPesPacketHeader(this.demuxer, section, false);
1992
+ if (!header) {
1993
+ continue; // Not a PES packet we can use, so skip over its whole section
1994
+ }
2050
1995
 
2051
- readBytes(length: number) {
2052
- const currentPesPacket = this.getCurrentPesPacket();
1996
+ const bitstream = new Bitstream(section.payload);
1997
+ bitstream.skipBits(32);
1998
+ const pesPacketLength = bitstream.readBits(16);
1999
+ const BYTES_UNTIL_END_OF_PES_PACKET_LENGTH = 6;
2000
+
2001
+ bitstream.skipBits(16);
2002
+ const pesHeaderDataLength = bitstream.readBits(8);
2003
+ this.pesHeaderBytesLeft = bitstream.pos / 8 + pesHeaderDataLength;
2004
+
2005
+ // "A value of 0 indicates that the PES packet length is neither specified nor bounded and is allowed
2006
+ // only in PES packets whose payload consists of bytes from a video elementary stream contained in
2007
+ // transport stream packets."
2008
+ this.pesDataBytesLeft = pesPacketLength > 0
2009
+ ? Math.max(BYTES_UNTIL_END_OF_PES_PACKET_LENGTH + pesPacketLength - this.pesHeaderBytesLeft, 0)
2010
+ : Infinity;
2011
+
2012
+ this.isInPesPacket = true;
2013
+ this.pesPackets.push(header);
2014
+ this.pesPacketDataStartPositions.push(this.endPos);
2015
+ }
2053
2016
 
2054
- const relativeStartOffset = this.currentPos - this.currentPesPacketPos;
2055
- const relativeEndOffset = relativeStartOffset + length;
2017
+ if (!this.isInPesPacket || !(packet.adaptationFieldControl & 0b01)) {
2018
+ continue;
2019
+ }
2056
2020
 
2057
- this.currentPos += length;
2021
+ const body = packet.body;
2022
+ let start = packet.adaptationFieldControl & 0b10 ? 1 + body[0]! : 0;
2058
2023
 
2059
- if (relativeEndOffset <= currentPesPacket.data.byteLength) {
2060
- // Request can be satisfied with one PES packet
2061
- return currentPesPacket.data.subarray(relativeStartOffset, relativeEndOffset);
2062
- }
2024
+ const skippedHeaderBytes = Math.min(this.pesHeaderBytesLeft, Math.max(body.byteLength - start, 0));
2025
+ this.pesHeaderBytesLeft -= skippedHeaderBytes;
2026
+ start += skippedHeaderBytes;
2063
2027
 
2064
- // Data spans multiple PES packets, we must do some merging
2065
- const result = new Uint8Array(length);
2066
- result.set(currentPesPacket.data.subarray(relativeStartOffset));
2067
- let offset = currentPesPacket.data.byteLength - relativeStartOffset;
2028
+ // Anything past the declared PES packet length is stuffing
2029
+ const end = Math.min(body.byteLength, start + this.pesDataBytesLeft);
2030
+ if (end <= start) {
2031
+ continue;
2032
+ }
2068
2033
 
2069
- while (true) {
2070
- this.advanceCurrentPacket();
2071
- const currentPesPacket = this.getCurrentPesPacket();
2072
- const relativeEndOffset = length - offset;
2034
+ const byteCount = end - start;
2035
+ this.pesDataBytesLeft -= byteCount;
2073
2036
 
2074
- if (relativeEndOffset <= currentPesPacket.data.byteLength) {
2075
- result.set(currentPesPacket.data.subarray(0, relativeEndOffset), offset);
2076
- break;
2037
+ const scratchLength = this.endPos - this.scratchStartPos;
2038
+ if (scratchLength + byteCount > this.scratch.byteLength) {
2039
+ const scratch = new Uint8Array(2 * this.scratch.byteLength);
2040
+ scratch.set(this.scratch.subarray(0, scratchLength));
2041
+ this.scratch = scratch;
2077
2042
  }
2078
2043
 
2079
- result.set(currentPesPacket.data, offset);
2080
- offset += currentPesPacket.data.byteLength;
2044
+ this.scratch.set(body.subarray(start, end), scratchLength);
2045
+ this.endPos += byteCount;
2081
2046
  }
2082
-
2083
- return result;
2084
2047
  }
2085
2048
 
2086
- readU8() {
2087
- let currentPesPacket = this.getCurrentPesPacket();
2088
-
2089
- const relativeOffset = this.currentPos - this.currentPesPacketPos;
2090
- this.currentPos++;
2091
-
2092
- if (relativeOffset < currentPesPacket.data.byteLength) {
2093
- return currentPesPacket.data[relativeOffset]!;
2094
- }
2049
+ readBytes(length: number) {
2050
+ const start = this.currentPos - this.scratchStartPos;
2051
+ this.currentPos += length;
2095
2052
 
2096
- // Skip over PES packets without any data
2097
- do {
2098
- this.advanceCurrentPacket();
2099
- currentPesPacket = this.getCurrentPesPacket();
2100
- } while (currentPesPacket.data.byteLength === 0);
2053
+ return this.scratch.subarray(start, start + length);
2054
+ }
2101
2055
 
2102
- return currentPesPacket.data[0]!;
2056
+ readU8() {
2057
+ return this.scratch[this.currentPos++ - this.scratchStartPos]!;
2103
2058
  }
2104
2059
 
2105
2060
  seekTo(pos: number) {
2106
- if (pos === this.currentPos) {
2107
- return;
2108
- }
2109
-
2110
- if (pos < this.currentPos) {
2111
- while (pos < this.currentPesPacketPos) {
2112
- // Move to the previous PES packet
2113
- this.currentPesPacketIndex--;
2114
- const currentPacket = this.getCurrentPesPacket();
2115
- this.currentPesPacketPos -= currentPacket.data.byteLength;
2116
- }
2117
- } else {
2118
- while (true) {
2119
- // Move to the next PES packet
2120
- const currentPesPacket = this.getCurrentPesPacket();
2121
- const currentEndPos = this.currentPesPacketPos + currentPesPacket.data.byteLength;
2122
-
2123
- if (pos < currentEndPos) {
2124
- break;
2125
- }
2126
-
2127
- this.currentPesPacketPos += currentPesPacket.data.byteLength;
2128
- this.currentPesPacketIndex++;
2129
- }
2130
- }
2131
-
2061
+ assert(pos >= this.scratchStartPos);
2132
2062
  this.currentPos = pos;
2133
2063
  }
2134
2064
 
@@ -2136,11 +2066,6 @@ class PacketReadingContext {
2136
2066
  this.seekTo(this.currentPos + n);
2137
2067
  }
2138
2068
 
2139
- advanceCurrentPacket() {
2140
- this.currentPesPacketPos += this.getCurrentPesPacket().data.byteLength;
2141
- this.currentPesPacketIndex++;
2142
- }
2143
-
2144
2069
  async markNextPacket() {
2145
2070
  assert(!this.suppliedPacket);
2146
2071
 
@@ -2219,14 +2144,9 @@ class PacketReadingContext {
2219
2144
  const nalHeaderStart = i + startCodeLength;
2220
2145
  const payloadStart = nalHeaderStart + nalHeaderSize;
2221
2146
 
2222
- // Bytes peeked from the start of a slice header to decode first_mb_in_slice. Six bytes (48 bits)
2223
- // comfortably covers the exp-Golomb code for any realistic macroblock count
2224
- const AVC_SLICE_HEADER_PEEK_SIZE = 6;
2225
-
2226
2147
  // We read the NAL header plus, for slices, the start of the slice header to decode the
2227
- // first_mb_in_slice / first_slice_segment_in_pic_flag. Make sure all of it is buffered.
2228
- const bytesNeeded = payloadStart + (codec === 'avc' ? AVC_SLICE_HEADER_PEEK_SIZE : 1);
2229
- if (bytesNeeded > length) {
2148
+ // first_mb_in_slice / first_slice_segment_in_pic_flag. Make sure at least a byte of it is there.
2149
+ if (payloadStart + 1 > length) {
2230
2150
  this.seekTo(posBeforeZero);
2231
2151
  break;
2232
2152
  }
@@ -2260,8 +2180,8 @@ class PacketReadingContext {
2260
2180
  // VCL slices: 0..RASL_R, plus the IRAP range BLA_W_LP..CRA_NUT
2261
2181
  isSlice = nalUnitType <= HevcNalUnitType.RASL_R
2262
2182
  || (nalUnitType >= HevcNalUnitType.BLA_W_LP && nalUnitType <= 21);
2263
- // VPS..FD, prefix SEI, and the reserved/unspecified non-VCL ranges
2264
- isAccessUnitStart = (nalUnitType >= HevcNalUnitType.VPS_NUT && nalUnitType <= 37)
2183
+ // VPS..AUD, prefix SEI, and the reserved/unspecified non-VCL ranges
2184
+ isAccessUnitStart = (nalUnitType >= HevcNalUnitType.VPS_NUT && nalUnitType <= 35)
2265
2185
  || nalUnitType === HevcNalUnitType.PREFIX_SEI_NUT
2266
2186
  || (nalUnitType >= 41 && nalUnitType <= 44)
2267
2187
  || (nalUnitType >= 48 && nalUnitType <= 55);
@@ -2274,8 +2194,21 @@ class PacketReadingContext {
2274
2194
  let startsNewPicture: boolean;
2275
2195
 
2276
2196
  if (codec === 'avc') {
2277
- const headerBytes = chunk.subarray(payloadStart, payloadStart + AVC_SLICE_HEADER_PEEK_SIZE);
2278
- const firstMacroblockInSlice = readExpGolomb(new Bitstream(headerBytes));
2197
+ // first_mb_in_slice may not be fully buffered yet, in which case reading it either runs
2198
+ // past the end (where Bitstream reads zeros) or throws from all those zeros
2199
+ const bitstream = new Bitstream(chunk.subarray(payloadStart));
2200
+ let firstMacroblockInSlice: number | null;
2201
+ try {
2202
+ firstMacroblockInSlice = readExpGolomb(bitstream);
2203
+ } catch {
2204
+ firstMacroblockInSlice = null;
2205
+ }
2206
+
2207
+ if (firstMacroblockInSlice === null || bitstream.getBitsLeft() < 0) {
2208
+ this.seekTo(posBeforeZero);
2209
+ break;
2210
+ }
2211
+
2279
2212
  startsNewPicture = !frameStartFound || firstMacroblockInSlice <= lastFirstMacroblockInSlice;
2280
2213
  lastFirstMacroblockInSlice = firstMacroblockInSlice;
2281
2214
  } else {
@@ -2360,9 +2293,7 @@ class PacketReadingContext {
2360
2293
 
2361
2294
  return this.supplyPacket(
2362
2295
  remaining,
2363
- Math.round(
2364
- SAMPLES_PER_AAC_FRAME * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate,
2365
- ),
2296
+ SAMPLES_PER_AAC_FRAME * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate,
2366
2297
  );
2367
2298
  } else {
2368
2299
  this.seekTo(possibleHeaderStartPos + 1);
@@ -2394,7 +2325,7 @@ class PacketReadingContext {
2394
2325
 
2395
2326
  const duration = result.header.audioSamplesInFrame * MPEG_TS_TIMESCALE
2396
2327
  / elementaryStream.info.sampleRate;
2397
- return this.supplyPacket(remaining, Math.round(duration));
2328
+ return this.supplyPacket(remaining, duration);
2398
2329
  } else {
2399
2330
  this.seekTo(possibleHeaderStartPos + 1);
2400
2331
  }
@@ -2439,9 +2370,7 @@ class PacketReadingContext {
2439
2370
  remaining = this.ensureBuffered(frameSize);
2440
2371
  if (isThenable(remaining)) remaining = await remaining;
2441
2372
 
2442
- const duration = Math.round(
2443
- AC3_SAMPLES_PER_FRAME * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate,
2444
- );
2373
+ const duration = AC3_SAMPLES_PER_FRAME * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate;
2445
2374
  return this.supplyPacket(remaining, duration);
2446
2375
  } else if (codec === 'eac3') {
2447
2376
  if (byte !== 0x0b) {
@@ -2467,11 +2396,38 @@ class PacketReadingContext {
2467
2396
  }
2468
2397
 
2469
2398
  const frmsiz = ((headerBytes[2]! & 0x07) << 8) | headerBytes[3]!;
2470
- const frameSize = (frmsiz + 1) * 2;
2399
+ let frameSize = (frmsiz + 1) * 2;
2471
2400
  const fscod = headerBytes[4]! >> 6;
2472
2401
  const numblkscod = fscod === 3 ? 3 : (headerBytes[4]! >> 4) & 0x03;
2473
2402
  const numblks = EAC3_NUMBLKS_TABLE[numblkscod]!;
2474
2403
 
2404
+ // Dependent substreams extend the frame before them to more channels, so they're part of its
2405
+ // access unit
2406
+ while (true) {
2407
+ this.seekTo(possibleSyncPos);
2408
+
2409
+ const neededBytes = frameSize + 4;
2410
+ let remaining = this.ensureBuffered(neededBytes);
2411
+ if (isThenable(remaining)) remaining = await remaining;
2412
+
2413
+ if (remaining < neededBytes) {
2414
+ break;
2415
+ }
2416
+
2417
+ this.seekTo(possibleSyncPos + frameSize);
2418
+ const nextHeaderBytes = this.readBytes(4);
2419
+
2420
+ if (
2421
+ nextHeaderBytes[0] !== 0x0b
2422
+ || nextHeaderBytes[1] !== 0x77
2423
+ || (nextHeaderBytes[2]! >> 6) !== 1 // strmtyp of a dependent substream
2424
+ ) {
2425
+ break;
2426
+ }
2427
+
2428
+ frameSize += 2 * ((((nextHeaderBytes[2]! & 0x07) << 8) | nextHeaderBytes[3]!) + 1);
2429
+ }
2430
+
2475
2431
  this.seekTo(possibleSyncPos);
2476
2432
 
2477
2433
  remaining = this.ensureBuffered(frameSize);
@@ -2479,9 +2435,7 @@ class PacketReadingContext {
2479
2435
 
2480
2436
  // Duration = numblks * 256 samples per block
2481
2437
  const samplesPerFrame = numblks * 256;
2482
- const duration = Math.round(
2483
- samplesPerFrame * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate,
2484
- );
2438
+ const duration = samplesPerFrame * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate;
2485
2439
  return this.supplyPacket(remaining, duration);
2486
2440
  } else if (codec === 'dts') {
2487
2441
  if (byte !== 0x7f && byte !== 0x64) {
@@ -2562,9 +2516,7 @@ class PacketReadingContext {
2562
2516
  remaining = this.ensureBuffered(frameSize);
2563
2517
  if (isThenable(remaining)) remaining = await remaining;
2564
2518
 
2565
- const duration = Math.round(
2566
- sampleCount * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate,
2567
- );
2519
+ const duration = sampleCount * MPEG_TS_TIMESCALE / elementaryStream.info.sampleRate;
2568
2520
  return this.supplyPacket(remaining, duration);
2569
2521
  } else {
2570
2522
  throw new Error('Unhandled.');
@@ -2580,7 +2532,10 @@ class PacketReadingContext {
2580
2532
 
2581
2533
  /** Supplies the context with a new encoded packet, beginning at the current position. */
2582
2534
  supplyPacket(packetLength: number, intrinsicDuration: number) {
2583
- const currentPesPacket = this.getCurrentPesPacket();
2535
+ const pesPacketIndex = findLastIndex(this.pesPacketDataStartPositions, x => x <= this.currentPos);
2536
+ assert(pesPacketIndex !== -1);
2537
+ const currentPesPacket = this.pesPackets[pesPacketIndex]!;
2538
+ const currentPesPacketDataStartPos = this.pesPacketDataStartPositions[pesPacketIndex]!;
2584
2539
 
2585
2540
  let pts: number;
2586
2541
  if (this.lastSuppliedPesPacket === currentPesPacket) {
@@ -2593,7 +2548,7 @@ class PacketReadingContext {
2593
2548
 
2594
2549
  pts = currentPesPacket.pts;
2595
2550
 
2596
- maybeInsertReferencePacket(this.elementaryStream, currentPesPacket as TimestampedPesPacket);
2551
+ maybeInsertReferencePacket(this.elementaryStream, currentPesPacket as TimestampedPesPacketHeader);
2597
2552
  }
2598
2553
 
2599
2554
  this.lastSuppliedPesPacket = currentPesPacket;
@@ -2602,8 +2557,8 @@ class PacketReadingContext {
2602
2557
  const sectionStartPos = currentPesPacket.sectionStartPos;
2603
2558
  // The sequence number is the starting position of the section the PES packet is in, PLUS the offset within the
2604
2559
  // PES packet where the packet starts.
2605
- const sequenceNumber = sectionStartPos + (this.currentPos - this.currentPesPacketPos);
2606
- const data = this.readBytes(packetLength);
2560
+ const sequenceNumber = sectionStartPos + (this.currentPos - currentPesPacketDataStartPos);
2561
+ const data = this.readBytes(packetLength).slice();
2607
2562
 
2608
2563
  let randomAccessIndicator = currentPesPacket.randomAccessIndicator;
2609
2564
 
@@ -2625,16 +2580,25 @@ class PacketReadingContext {
2625
2580
  }
2626
2581
  }
2627
2582
 
2583
+ const roundedPts = Math.round(pts);
2584
+
2628
2585
  this.suppliedPacket = {
2629
- pts,
2586
+ pts: roundedPts,
2587
+ intrinsicDuration: Math.round(pts + intrinsicDuration) - roundedPts,
2630
2588
  data,
2631
2589
  sequenceNumber,
2632
2590
  sectionStartPos,
2633
2591
  randomAccessIndicator,
2634
2592
  };
2635
2593
 
2636
- this.pesPackets.splice(0, this.currentPesPacketIndex);
2637
- this.currentPesPacketIndex = 0;
2594
+ // Nothing before the end of the packet is needed anymore
2595
+ const keptStart = this.currentPos - this.scratchStartPos;
2596
+ this.scratch.copyWithin(0, keptStart, this.endPos - this.scratchStartPos);
2597
+ this.scratchStartPos = this.currentPos;
2598
+
2599
+ const keptPesPacketIndex = findLastIndex(this.pesPacketDataStartPositions, x => x <= this.currentPos);
2600
+ this.pesPackets.splice(0, keptPesPacketIndex);
2601
+ this.pesPacketDataStartPositions.splice(0, keptPesPacketIndex);
2638
2602
  }
2639
2603
  }
2640
2604
 
@@ -2678,13 +2642,19 @@ class PacketBuffer {
2678
2642
  const presentationIndex = this.presentationOrderPackets.indexOf(packet);
2679
2643
 
2680
2644
  let duration: number;
2681
- if (presentationIndex === -1 || presentationIndex === this.presentationOrderPackets.length - 1) {
2682
- // The packet has no known successor (or isn't even placed yet when timestamps are messed up)
2683
- duration = this.lastDuration; // Reasonable heuristic
2684
- } else {
2645
+ if (presentationIndex !== -1 && presentationIndex < this.presentationOrderPackets.length - 1) {
2685
2646
  const nextPacket = this.presentationOrderPackets[presentationIndex + 1]!;
2686
2647
  duration = nextPacket.pts - packet.pts;
2687
2648
  this.lastDuration = duration;
2649
+ } else if (packet.intrinsicDuration > 0) {
2650
+ // The packet has no known successor (or isn't even placed yet when timestamps are messed up), but the codec
2651
+ // tells us how long it lasts
2652
+ duration = packet.intrinsicDuration;
2653
+ } else if (presentationIndex > 0) {
2654
+ // Let's say it lasts as long as the packet presented before it
2655
+ duration = packet.pts - this.presentationOrderPackets[presentationIndex - 1]!.pts;
2656
+ } else {
2657
+ duration = this.lastDuration; // Reasonable heuristic
2688
2658
  }
2689
2659
 
2690
2660
  this.decodeOrderPackets.shift();