mattebox 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/cdn/mattebox.dash-drm.min.js +3 -3
  2. package/dist/cdn/mattebox.dash-ll.min.js +3 -3
  3. package/dist/cdn/mattebox.dash.min.js +3 -3
  4. package/dist/cdn/mattebox.dual-drm.min.js +3 -3
  5. package/dist/cdn/mattebox.dual-ll.min.js +3 -3
  6. package/dist/cdn/mattebox.dual-ts-drm.min.js +3 -3
  7. package/dist/cdn/mattebox.dual-ts.min.js +3 -3
  8. package/dist/cdn/mattebox.dual.min.js +3 -3
  9. package/dist/cdn/mattebox.hls-drm.min.js +3 -3
  10. package/dist/cdn/mattebox.hls-ll.min.js +3 -3
  11. package/dist/cdn/mattebox.hls-ts-drm.min.js +3 -3
  12. package/dist/cdn/mattebox.hls-ts.min.js +3 -3
  13. package/dist/cdn/mattebox.hls.min.js +3 -3
  14. package/dist/cdn/mattebox.kernel.min.js +1 -1
  15. package/dist/cdn/mattebox.min.js +6 -6
  16. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/asyncToGenerator.js +1 -1
  17. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/defineProperty.js +1 -1
  18. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/objectSpread2.js +1 -1
  19. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/objectWithoutProperties.js +1 -1
  20. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  21. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPrimitive.js +1 -1
  22. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPropertyKey.js +1 -1
  23. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/typeof.js +1 -1
  24. package/dist/es2015/containers/id3.js +1 -1
  25. package/dist/es2015/containers/scte35.js +1 -1
  26. package/dist/es2015/containers/ts-transmux/h264.js +1 -1
  27. package/dist/es2015/containers/ts-transmux/h265.js +1 -1
  28. package/dist/es2015/containers/ts-transmux/index.js +1 -1
  29. package/dist/es2015/containers/ts-transmux/runner.js +2 -2
  30. package/dist/es2015/containers/ts-transmux/transmux.js +1 -1
  31. package/dist/es2015/containers/webvtt.js +1 -1
  32. package/dist/es2015/containers/wvtt.js +1 -1
  33. package/dist/es2015/eme/index.js +2 -2
  34. package/dist/es2015/index.js +4 -4
  35. package/dist/es2015/kernel/append-queue.js +1 -1
  36. package/dist/es2015/kernel/characteristics.js +19 -1
  37. package/dist/es2015/kernel/dry-run.js +1 -1
  38. package/dist/es2015/kernel/mse.js +1 -1
  39. package/dist/es2015/kernel/prepare.js +2 -2
  40. package/dist/es2015/kernel/presentation.js +10 -1
  41. package/dist/es2015/kernel/reducer.js +4 -4
  42. package/dist/es2015/kernel/refresh.js +1 -1
  43. package/dist/es2015/kernel/rendition-select.js +2 -2
  44. package/dist/es2015/kernel/scheduler.js +1 -1
  45. package/dist/es2015/kernel/timeline.js +1 -1
  46. package/dist/es2015/kernel/trace.js +1 -1
  47. package/dist/es2015/kernel/transport.js +2 -2
  48. package/dist/es2015/presets/define.js +2 -2
  49. package/dist/es2015/protocols/dash-cmaf/index.js +1 -1
  50. package/dist/es2015/protocols/dash-cmaf/parse.js +1 -1
  51. package/dist/es2015/protocols/dash-cmaf/periods-runtime.js +1 -1
  52. package/dist/es2015/protocols/dash-cmaf/periods.js +1 -1
  53. package/dist/es2015/protocols/dash-live/index.js +1 -1
  54. package/dist/es2015/protocols/hls-cmaf/index.js +1 -1
  55. package/dist/es2015/protocols/hls-cmaf/parse.js +64 -16
  56. package/dist/es2015/protocols/hls-cmaf/unavailable.js +4 -3
  57. package/dist/es2015/protocols/hls-live/index.js +1 -1
  58. package/dist/es2015/protocols/hls-ll/parse.js +1 -1
  59. package/dist/es2015/stages/abr/index.js +1 -1
  60. package/dist/es2015/stages/aes-128/index.js +1 -1
  61. package/dist/es2015/stages/chapters/index.js +2 -2
  62. package/dist/es2015/stages/chapters/parse.js +2 -2
  63. package/dist/es2015/stages/codec-probe/index.js +1 -1
  64. package/dist/es2015/stages/content-steering/index.js +1 -1
  65. package/dist/es2015/stages/eme-core/index.js +2 -2
  66. package/dist/es2015/stages/eme-fairplay/index.js +1 -1
  67. package/dist/es2015/stages/hdr/index.js +1 -1
  68. package/dist/es2015/stages/qoe/index.js +1 -1
  69. package/dist/es2015/stages/recovery/index.js +1 -1
  70. package/dist/es2015/stages/rendition-names/index.js +1 -1
  71. package/dist/es2015/stages/text-cea608/decode.js +1 -1
  72. package/dist/es2015/stages/text-cea708/decode.js +2 -2
  73. package/dist/es2015/stages/text-cea708/index.js +1 -1
  74. package/dist/es2015/stages/text-ttml/index.js +1 -1
  75. package/dist/es2015/stages/text-ttml/parse.js +1 -1
  76. package/dist/es2015/stages/thumbnails/index.js +1 -1
  77. package/dist/es2015/stages/timed-metadata/index.js +1 -1
  78. package/dist/es2015/stages/trick-play/index.js +1 -1
  79. package/dist/index.d.ts +1 -1
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +1 -1
  82. package/dist/index.js.map +1 -1
  83. package/dist/kernel/characteristics.d.ts +8 -1
  84. package/dist/kernel/characteristics.d.ts.map +1 -1
  85. package/dist/kernel/characteristics.js +23 -0
  86. package/dist/kernel/characteristics.js.map +1 -1
  87. package/dist/kernel/presentation.d.ts +5 -0
  88. package/dist/kernel/presentation.d.ts.map +1 -1
  89. package/dist/kernel/presentation.js +9 -0
  90. package/dist/kernel/presentation.js.map +1 -1
  91. package/dist/kernel/reducer.d.ts.map +1 -1
  92. package/dist/kernel/reducer.js +13 -9
  93. package/dist/kernel/reducer.js.map +1 -1
  94. package/dist/protocols/hls-cmaf/parse.d.ts.map +1 -1
  95. package/dist/protocols/hls-cmaf/parse.js +64 -5
  96. package/dist/protocols/hls-cmaf/parse.js.map +1 -1
  97. package/dist/protocols/hls-cmaf/unavailable.d.ts +1 -1
  98. package/dist/protocols/hls-cmaf/unavailable.d.ts.map +1 -1
  99. package/dist/protocols/hls-cmaf/unavailable.js +8 -2
  100. package/dist/protocols/hls-cmaf/unavailable.js.map +1 -1
  101. package/dist/types/ir.d.ts +7 -0
  102. package/dist/types/ir.d.ts.map +1 -1
  103. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/asyncToGenerator.js
1
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/asyncToGenerator.js
2
2
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
3
3
  try {
4
4
  var i = n[a](c), u = i.value;
@@ -1,5 +1,5 @@
1
1
  import toPropertyKey from "./toPropertyKey.js";
2
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/defineProperty.js
2
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
3
3
  function _defineProperty(e, r, t) {
4
4
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
5
5
  value: t,
@@ -1,5 +1,5 @@
1
1
  import _defineProperty from "./defineProperty.js";
2
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/objectSpread2.js
2
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectSpread2.js
3
3
  function ownKeys(e, r) {
4
4
  var t = Object.keys(e);
5
5
  if (Object.getOwnPropertySymbols) {
@@ -1,5 +1,5 @@
1
1
  import _objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
2
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/objectWithoutProperties.js
2
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectWithoutProperties.js
3
3
  function _objectWithoutProperties(e, t) {
4
4
  if (null == e) return {};
5
5
  var o, r, i = _objectWithoutPropertiesLoose(e, t);
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/objectWithoutPropertiesLoose.js
1
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/objectWithoutPropertiesLoose.js
2
2
  function _objectWithoutPropertiesLoose(r, e) {
3
3
  if (null == r) return {};
4
4
  var t = {};
@@ -1,5 +1,5 @@
1
1
  import _typeof from "./typeof.js";
2
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPrimitive.js
2
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
3
3
  function toPrimitive(t, r) {
4
4
  if ("object" != _typeof(t) || !t) return t;
5
5
  var e = t[Symbol.toPrimitive];
@@ -1,6 +1,6 @@
1
1
  import _typeof from "./typeof.js";
2
2
  import toPrimitive from "./toPrimitive.js";
3
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/toPropertyKey.js
3
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
4
4
  function toPropertyKey(t) {
5
5
  var i = toPrimitive(t, "string");
6
6
  return "symbol" == _typeof(i) ? i : i + "";
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.153.0/helpers/esm/typeof.js
1
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
2
2
  function _typeof(o) {
3
3
  "@babel/helpers - typeof";
4
4
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { fourcc } from "./mp4-box/index.js";
3
3
  //#region src/containers/id3.ts
4
4
  const HEADER_SIZE = 10;
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  //#region src/containers/scte35.ts
3
3
  const TABLE_ID = 252;
4
4
  const SPLICE_INSERT = 5;
@@ -1,4 +1,4 @@
1
- import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/defineProperty.js";
1
+ import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/defineProperty.js";
2
2
  import { toRbsp } from "../sei.js";
3
3
  //#region src/containers/ts-transmux/h264.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/defineProperty.js";
1
+ import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/defineProperty.js";
2
2
  import { toRbsp } from "../sei.js";
3
3
  //#region src/containers/ts-transmux/h265.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/asyncToGenerator.js";
1
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/asyncToGenerator.js";
2
2
  import { looksLikeTransportStream } from "./sniff.js";
3
3
  import { id3Events } from "../id3.js";
4
4
  import { deliverMetadata, metadataWanted } from "../metadata.js";
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
2
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/asyncToGenerator.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/asyncToGenerator.js";
3
3
  //#region src/containers/ts-transmux/runner.ts
4
4
  function createTransmuxRunner(options, source) {
5
5
  let worker = null;
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { concat, sequenceNumberFor, writeInitSegment, writeMediaSegment } from "../fmp4/writer.js";
3
3
  import { STREAM_TYPE, demux, unrollTimestamps } from "./demux.js";
4
4
  import { ccTriplesFromSei } from "../sei.js";
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  //#region src/containers/webvtt.ts
3
3
  /** `HH:MM:SS.mmm` or `MM:SS.mmm` to seconds, or null. */
4
4
  function parseTimestamp(text) {
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { fourcc, viewOf } from "./mp4-box/index.js";
3
3
  //#region src/containers/wvtt.ts
4
4
  /** The child boxes of `bytes`, as type and payload. */
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
2
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectWithoutProperties.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectWithoutProperties.js";
3
3
  import { fetchWithin } from "../kernel/transport.js";
4
4
  import emeCore from "../stages/eme-core/index.js";
5
5
  //#region src/eme/index.ts
@@ -1,10 +1,11 @@
1
- import _objectSpread2 from "./_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "./_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { exportTrace, replay } from "./kernel/trace.js";
3
3
  import { createBus } from "./kernel/bus.js";
4
4
  import { createEffectRunner } from "./kernel/effects.js";
5
- import _asyncToGenerator from "./_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/asyncToGenerator.js";
5
+ import _asyncToGenerator from "./_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/asyncToGenerator.js";
6
6
  import { createSegmentPreparer } from "./kernel/prepare.js";
7
7
  import { cueFormat, normalizeMimeType } from "./kernel/mime.js";
8
+ import { isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, videoKind } from "./kernel/characteristics.js";
8
9
  import { findTrackSite, isTrick } from "./kernel/presentation.js";
9
10
  import { activeAudio, availableGroups, canSwitchTo, createArbiter, exclusionsOf } from "./kernel/rendition-select.js";
10
11
  import { createMseSink } from "./kernel/sinks/mse-sink.js";
@@ -15,7 +16,6 @@ import { compose } from "./kernel/loader.js";
15
16
  import { createMseController, decodable } from "./kernel/mse.js";
16
17
  import { createTrackRegistry } from "./kernel/track-registry.js";
17
18
  import { createTransport } from "./kernel/transport.js";
18
- import { isAudioDescription, isEnhancedSpeech, isOriginal, isSdh } from "./kernel/characteristics.js";
19
19
  //#region src/index.ts
20
20
  /**
21
21
  * Mattebox: a modular adaptive-streaming engine for HLS and DASH.
@@ -433,4 +433,4 @@ mattebox.from = (el) => {
433
433
  return (_registry$get = registry.get(el)) !== null && _registry$get !== void 0 ? _registry$get : null;
434
434
  };
435
435
  //#endregion
436
- export { canSwitchTo, createReducer, exportTrace, initialState, isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, mattebox, replay, resolveConfig };
436
+ export { canSwitchTo, createReducer, exportTrace, initialState, isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, mattebox, replay, resolveConfig, videoKind };
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  //#region src/kernel/append-queue.ts
3
3
  function isQuotaError(err) {
4
4
  return err instanceof DOMException && err.name === "QuotaExceededError";
@@ -23,5 +23,23 @@ function isSdh(track) {
23
23
  function isOriginal(track) {
24
24
  return has(track, "public.original-content");
25
25
  }
26
+ /**
27
+ * The kind of a video track from its standard roles, as HTML's rules for
28
+ * media containers map them to VideoTrack.kind: sign and commentary stand
29
+ * alone, caption and subtitle with main are a picture with the text in it,
30
+ * and alternate is another version.
31
+ */
32
+ function videoKind(track) {
33
+ var _track$roles2;
34
+ const roles = (_track$roles2 = track.roles) !== null && _track$roles2 !== void 0 ? _track$roles2 : track.role !== void 0 ? [track.role] : [];
35
+ const main = roles.includes("main");
36
+ if (roles.includes("sign")) return "sign";
37
+ if (roles.includes("commentary") && !main) return "commentary";
38
+ if (roles.includes("caption") && main) return "captions";
39
+ if (roles.includes("subtitle") && main) return "subtitles";
40
+ if (main) return "main";
41
+ if (roles.includes("alternate")) return "alternative";
42
+ return "";
43
+ }
26
44
  //#endregion
27
- export { isAudioDescription, isEnhancedSpeech, isOriginal, isSdh };
45
+ export { isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, videoKind };
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { createBus } from "./bus.js";
3
3
  import { createEffectRunner } from "./effects.js";
4
4
  import { createSegmentPreparer } from "./prepare.js";
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { createAppendQueue } from "./append-queue.js";
3
3
  import { createEvictor } from "./evictor.js";
4
4
  //#region src/kernel/mse.ts
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
2
- import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/asyncToGenerator.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
+ import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/asyncToGenerator.js";
3
3
  //#region src/kernel/prepare.ts
4
4
  /**
5
5
  * The boundary meta a transform and the probe receive. The content type
@@ -1,8 +1,17 @@
1
+ import { videoKind } from "./characteristics.js";
1
2
  //#region src/kernel/presentation.ts
2
3
  /** An I-frame-only video track, kept for trick play and never selected for normal playback. */
3
4
  function isTrick(track) {
4
5
  return track.role === "trick";
5
6
  }
7
+ /**
8
+ * A video track that shows the main picture: its kind is main, or the
9
+ * manifest gives none. Not a sign-language, alternate or commentary version.
10
+ */
11
+ function isMainPicture(track) {
12
+ const kind = videoKind(track);
13
+ return !isTrick(track) && (kind === "main" || kind === "");
14
+ }
6
15
  function findTrackSite(presentation, trackId) {
7
16
  var _presentation$periods;
8
17
  for (const period of (_presentation$periods = presentation === null || presentation === void 0 ? void 0 : presentation.periods) !== null && _presentation$periods !== void 0 ? _presentation$periods : []) for (const track of period.tracks) if (track.id === trackId) return {
@@ -21,4 +30,4 @@ function findRendition(presentation, renditionId) {
21
30
  return null;
22
31
  }
23
32
  //#endregion
24
- export { findRendition, findTrackSite, isTrick };
33
+ export { findRendition, findTrackSite, isMainPicture, isTrick };
@@ -1,11 +1,11 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { tickAfter } from "./effects.js";
3
3
  import { cueFormat, normalizeMimeType, typeString } from "./mime.js";
4
- import { findRendition, findTrackSite, isTrick } from "./presentation.js";
4
+ import { findRendition, findTrackSite, isMainPicture, isTrick } from "./presentation.js";
5
5
  import { applyRefresh } from "./refresh.js";
6
6
  import { reconciledOffset, segmentAtTime } from "./timeline.js";
7
7
  import { bufferedEndFrom, reachesEnd, schedule } from "./scheduler.js";
8
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectWithoutProperties.js";
8
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectWithoutProperties.js";
9
9
  import { activeAudio, audioGroup, audioInGroup, availableGroups, canSwitchTo, codecFamily, createArbiter, planPinApply, withDeadGroups } from "./rendition-select.js";
10
10
  import { sbIdFor } from "./sinks/mse-sink.js";
11
11
  //#region src/kernel/reducer.ts
@@ -681,7 +681,7 @@ function loadPresentation(state, merged, undecodableIds = /* @__PURE__ */ new Se
681
681
  for (const [token, request] of inflight) if (request.trackId === "manifest") inflight.delete(token);
682
682
  const phase = state.lifecycle.phase === "loading" ? "ready" : state.lifecycle.phase;
683
683
  const active = new Map(state.tracks.active);
684
- for (const period of presentation.periods) for (const track of period.tracks) if ((track.contentType === "video" || track.contentType === "audio") && !isTrick(track) && !active.has(track.contentType) && track.renditions.some((r) => !undecodableIds.has(r.id))) active.set(track.contentType, track.id);
684
+ for (const mainOnly of [true, false]) for (const period of presentation.periods) for (const track of period.tracks) if ((track.contentType === "video" || track.contentType === "audio") && !isTrick(track) && !active.has(track.contentType) && !(mainOnly && track.contentType === "video" && !isMainPicture(track)) && track.renditions.some((r) => !undecodableIds.has(r.id))) active.set(track.contentType, track.id);
685
685
  const loaded = _objectSpread2(_objectSpread2({}, state), {}, {
686
686
  lifecycle: { phase },
687
687
  presentation,
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  //#region src/kernel/refresh.ts
3
3
  /** The presentation with the refresh merged, or null when it names no rendition the presentation holds. */
4
4
  function applyRefresh(presentation, refresh) {
@@ -1,8 +1,8 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { findRendition, findTrackSite } from "./presentation.js";
3
3
  import { segmentAtTime } from "./timeline.js";
4
4
  import { bufferedEndFrom } from "./scheduler.js";
5
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectWithoutProperties.js";
5
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectWithoutProperties.js";
6
6
  //#region src/kernel/rendition-select.ts
7
7
  const _excluded = [
8
8
  "maxHeight",
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { buildEpochs, epochForSeq, epochKey, isIndexed, segmentAtTime, timestampOffsetFor } from "./timeline.js";
3
3
  //#region src/kernel/scheduler.ts
4
4
  const DEFAULT_GAP_TOLERANCE = .25;
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  //#region src/kernel/timeline.ts
3
3
  function isIndexed(addressing) {
4
4
  return !Array.isArray(addressing) && addressing.kind === "indexed";
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  function isBytes(value) {
3
3
  return value instanceof ArrayBuffer || ArrayBuffer.isView(value);
4
4
  }
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
2
- import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/asyncToGenerator.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
+ import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/asyncToGenerator.js";
3
3
  //#region src/kernel/transport.ts
4
4
  const DEFAULT_RETRY_POLICY = {
5
5
  maxAttempts: 3,
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
2
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectWithoutProperties.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectWithoutProperties.js";
3
3
  import { mattebox } from "../index.js";
4
4
  //#region src/presets/define.ts
5
5
  const _excluded = ["stages", "without"];
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { scheduled, tickAfter } from "../../kernel/effects.js";
3
3
  import { normalizeMimeType } from "../../kernel/mime.js";
4
4
  import { findRendition } from "../../kernel/presentation.js";
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { findBox, parseSidx } from "../../containers/mp4-box/index.js";
3
3
  import { base64ToBytes } from "../../kernel/base64.js";
4
4
  import { resolveUrl } from "../../kernel/url.js";
@@ -1,4 +1,4 @@
1
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/asyncToGenerator.js";
1
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/asyncToGenerator.js";
2
2
  import { findRendition } from "../../kernel/presentation.js";
3
3
  import { segmentAt } from "../../kernel/timeline.js";
4
4
  //#region src/protocols/dash-cmaf/periods-runtime.ts
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { isIndexed, isUnresolved, segmentAt } from "../../kernel/timeline.js";
3
3
  //#region src/protocols/dash-cmaf/periods.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { scheduled, tickAfter } from "../../kernel/effects.js";
3
3
  import { registerLiveNamespace } from "../live-shared.js";
4
4
  import { parse } from "../dash-cmaf/parse.js";
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { scheduled, tickAfter } from "../../kernel/effects.js";
3
3
  import { normalizeMimeType } from "../../kernel/mime.js";
4
4
  import { activeRenditions } from "../../kernel/rendition-select.js";
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { byteToHex } from "../../kernel/base64.js";
3
3
  import { resolveUrl } from "../../kernel/url.js";
4
4
  import { manifestError } from "../adapter-shared.js";
@@ -297,6 +297,20 @@ function mediaContentType(type) {
297
297
  if (type === "SUBTITLES") return "text";
298
298
  return null;
299
299
  }
300
+ function videoMembers(entries, groupId) {
301
+ const members = entries.filter((e) => e.type === "VIDEO" && e.groupId === groupId);
302
+ const declared = members.some((e) => e.attributes.DEFAULT === "YES");
303
+ return members.map((entry) => ({
304
+ key: attributeKey(entry.attributes, PER_GROUP),
305
+ entry,
306
+ main: declared ? entry.attributes.DEFAULT === "YES" : entry.uri === null
307
+ }));
308
+ }
309
+ /** What a VIDEO rendition says about its version, as the AUDIO and SUBTITLES ones do. */
310
+ function videoTrackFields({ entry, main }) {
311
+ const characteristics = characteristicsOf(entry);
312
+ return _objectSpread2(_objectSpread2({ name: entry.name }, entry.attributes.LANGUAGE !== void 0 ? { lang: entry.attributes.LANGUAGE } : {}), {}, { role: main ? "main" : "alternate" }, characteristics.length > 0 ? { characteristics } : {});
313
+ }
300
314
  /** The attributes as one string, in name order, leaving out the names `skip` matches. */
301
315
  function attributeKey(attributes, skip) {
302
316
  return Object.keys(attributes).filter((name) => (skip === null || skip === void 0 ? void 0 : skip.test(name)) !== true).sort().map((name) => `${name}=${attributes[name]}`).join(",");
@@ -535,8 +549,10 @@ function parse(text, baseUrl, parseMedia = parseMediaPlaylist) {
535
549
  const audioOnlyVariants = [];
536
550
  const couplings = [];
537
551
  const declared = /* @__PURE__ */ new Map();
552
+ const alternateVideos = /* @__PURE__ */ new Map();
553
+ let mainVideo;
538
554
  for (const variant of variants) {
539
- var _dimensions;
555
+ var _dimensions, _variant$attributes$V;
540
556
  const bandwidth = Number(variant.attributes.BANDWIDTH) || 0;
541
557
  const [width, height] = (_dimensions = dimensions(variant.attributes.RESOLUTION)) !== null && _dimensions !== void 0 ? _dimensions : [];
542
558
  const { video, audio } = splitCodecs(variant.attributes.CODECS);
@@ -559,31 +575,63 @@ function parse(text, baseUrl, parseMedia = parseMediaPlaylist) {
559
575
  declared.set(id, variant.attributes);
560
576
  const average = Number(variant.attributes["AVERAGE-BANDWIDTH"]);
561
577
  const supplemental = variant.attributes["SUPPLEMENTAL-CODECS"];
562
- renditions.push(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
578
+ const base = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
563
579
  id,
564
580
  bitrate: bandwidth,
565
581
  codecs,
566
582
  mimeType: "video/mp4",
567
583
  segments: [],
568
584
  playlistUrl: variant.uri
569
- }, average > 0 ? { averageBitrate: average } : {}), supplemental !== void 0 ? { supplementalCodecs: supplemental } : {}), pathway !== void 0 ? { pathway } : {}), width !== void 0 ? { width } : {}), height !== void 0 ? { height } : {}), Number.isFinite(frameRate) ? { frameRate } : {}), videoRange !== void 0 ? { videoRange } : {}));
585
+ }, average > 0 ? { averageBitrate: average } : {}), supplemental !== void 0 ? { supplementalCodecs: supplemental } : {}), pathway !== void 0 ? { pathway } : {}), width !== void 0 ? { width } : {}), height !== void 0 ? { height } : {}), Number.isFinite(frameRate) ? { frameRate } : {}), videoRange !== void 0 ? { videoRange } : {});
570
586
  const requires = {};
571
587
  if (variant.attributes.AUDIO !== void 0) requires.audio = variant.attributes.AUDIO;
572
588
  if (variant.attributes.SUBTITLES !== void 0) requires.text = variant.attributes.SUBTITLES;
573
- if (Object.keys(requires).length > 0) couplings.push({
574
- renditionId: id,
575
- requires
576
- });
589
+ const members = videoMembers(mediaEntries, (_variant$attributes$V = variant.attributes.VIDEO) !== null && _variant$attributes$V !== void 0 ? _variant$attributes$V : "");
590
+ const versions = members.length > 0 ? members : [null];
591
+ for (const member of versions) {
592
+ var _member$entry$uri;
593
+ const rendition = member === null ? base : _objectSpread2(_objectSpread2({}, base), {}, {
594
+ id: member.main ? id : `${id}:${member.entry.name}`,
595
+ playlistUrl: (_member$entry$uri = member.entry.uri) !== null && _member$entry$uri !== void 0 ? _member$entry$uri : variant.uri
596
+ });
597
+ if (member === null || member.main) {
598
+ var _mainVideo;
599
+ renditions.push(rendition);
600
+ if (member !== null) (_mainVideo = mainVideo) !== null && _mainVideo !== void 0 || (mainVideo = member);
601
+ } else {
602
+ var _alternateVideos$get;
603
+ const version = (_alternateVideos$get = alternateVideos.get(member.key)) !== null && _alternateVideos$get !== void 0 ? _alternateVideos$get : {
604
+ member,
605
+ renditions: []
606
+ };
607
+ version.renditions.push(rendition);
608
+ alternateVideos.set(member.key, version);
609
+ }
610
+ if (Object.keys(requires).length > 0) couplings.push({
611
+ renditionId: rendition.id,
612
+ requires
613
+ });
614
+ }
577
615
  }
578
616
  const tracks = [];
579
- if (renditions.length > 0) tracks.push({
580
- id: "video-main",
581
- contentType: "video",
582
- mimeType: "video/mp4",
583
- protection: sessionProtection,
584
- renditions
585
- });
586
- else if (audioOnlyVariants.length > 0) {
617
+ if (renditions.length > 0) {
618
+ tracks.push(_objectSpread2(_objectSpread2({
619
+ id: "video-main",
620
+ contentType: "video",
621
+ mimeType: "video/mp4"
622
+ }, mainVideo !== void 0 ? videoTrackFields(mainVideo) : {}), {}, {
623
+ protection: sessionProtection,
624
+ renditions
625
+ }));
626
+ for (const { member, renditions: versionRenditions } of alternateVideos.values()) tracks.push(_objectSpread2(_objectSpread2({
627
+ id: `video:${member.entry.name}`,
628
+ contentType: "video",
629
+ mimeType: "video/mp4"
630
+ }, videoTrackFields(member)), {}, {
631
+ protection: sessionProtection,
632
+ renditions: versionRenditions
633
+ }));
634
+ } else if (audioOnlyVariants.length > 0) {
587
635
  const audioRenditions = [];
588
636
  for (const variant of audioOnlyVariants) {
589
637
  const bandwidth = Number(variant.attributes.BANDWIDTH) || 0;
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { isTrick } from "../../kernel/presentation.js";
3
3
  import { withDeadGroups } from "../../kernel/rendition-select.js";
4
4
  //#region src/protocols/hls-cmaf/unavailable.ts
@@ -36,7 +36,7 @@ function exclusion(presentation, kernel, source, ids) {
36
36
  * `source` excludes. A failed audio group takes the variants that require
37
37
  * it, so arbitration moves to a variant on a working group and alt-audio
38
38
  * follows. A CONSTRAIN when playback can go on; a fatal MANIFEST_FAILED
39
- * when a video track has no rendition left, or when the active audio track
39
+ * when the active video track has no rendition left, or when the active audio track
40
40
  * has none and no variant names an audio group to move to.
41
41
  */
42
42
  function unavailableMessages(kernel, source, ids, error) {
@@ -45,7 +45,8 @@ function unavailableMessages(kernel, source, ids, error) {
45
45
  const { excluded, own } = exclusion(presentation, kernel, source, ids);
46
46
  const grouped = presentation.couplings.some((c) => c.requires.audio !== void 0);
47
47
  const activeAudio = kernel.tracks.active.get("audio");
48
- if (presentation.periods.some((period) => period.tracks.some((track) => track.renditions.length > 0 && track.renditions.every((r) => excluded.has(r.id)) && (track.contentType === "video" && !isTrick(track) || track.id === activeAudio && !grouped)))) return [{
48
+ const activeVideo = kernel.tracks.active.get("video");
49
+ if (presentation.periods.some((period) => period.tracks.some((track) => track.renditions.length > 0 && track.renditions.every((r) => excluded.has(r.id)) && (track.contentType === "video" && !isTrick(track) && (activeVideo === void 0 || track.id === activeVideo) || track.id === activeAudio && !grouped)))) return [{
49
50
  type: "MANIFEST_FAILED",
50
51
  error: _objectSpread2(_objectSpread2({}, error), {}, { fatal: true })
51
52
  }];
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { scheduled, tickAfter } from "../../kernel/effects.js";
3
3
  import { findRendition } from "../../kernel/presentation.js";
4
4
  import { activeRenditions } from "../../kernel/rendition-select.js";
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { resolveUrl } from "../../kernel/url.js";
3
3
  import { manifestError } from "../adapter-shared.js";
4
4
  import { lex } from "../hls-cmaf/lexer.js";
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { scheduled } from "../../kernel/effects.js";
3
3
  import { findRendition, isTrick } from "../../kernel/presentation.js";
4
4
  import { canSwitchTo } from "../../kernel/rendition-select.js";
@@ -1,4 +1,4 @@
1
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/asyncToGenerator.js";
1
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/asyncToGenerator.js";
2
2
  import { findRendition } from "../../kernel/presentation.js";
3
3
  //#region src/stages/aes-128/index.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
2
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/asyncToGenerator.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/asyncToGenerator.js";
3
3
  import { findTrackSite } from "../../kernel/presentation.js";
4
4
  import { chaptersFromInput, parseAppleChapters, parseChapterTrack } from "./parse.js";
5
5
  //#region src/stages/chapters/index.ts
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
2
- import _objectWithoutProperties from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectWithoutProperties.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
+ import _objectWithoutProperties from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectWithoutProperties.js";
3
3
  import { parseVtt } from "../../containers/webvtt.js";
4
4
  import { resolveUrl } from "../../kernel/url.js";
5
5
  //#region src/stages/chapters/parse.ts
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { findRendition } from "../../kernel/presentation.js";
3
3
  import { codecMismatch, probeInitSegment } from "../../containers/codec-probe/index.js";
4
4
  //#region src/stages/codec-probe/index.ts
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
2
  import { scheduled, tickAfter } from "../../kernel/effects.js";
3
3
  //#region src/stages/content-steering/index.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/objectSpread2.js";
2
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.153.0/helpers/esm/asyncToGenerator.js";
1
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/objectSpread2.js";
2
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.154.0/helpers/esm/asyncToGenerator.js";
3
3
  import { bytesToBase64 } from "../../kernel/base64.js";
4
4
  import { keySystemHandlers, normalizeSystemId } from "../drm-shared.js";
5
5
  //#region src/stages/eme-core/index.ts