mattebox 0.17.0 → 0.17.2

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 (205) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/mattebox.dash-drm.min.js +3 -3
  3. package/dist/cdn/mattebox.dash-ll.min.js +3 -3
  4. package/dist/cdn/mattebox.dash.min.js +3 -3
  5. package/dist/cdn/mattebox.dual-drm.min.js +3 -3
  6. package/dist/cdn/mattebox.dual-ll.min.js +3 -3
  7. package/dist/cdn/mattebox.dual-ts-drm.min.js +3 -3
  8. package/dist/cdn/mattebox.dual-ts.min.js +3 -3
  9. package/dist/cdn/mattebox.dual.min.js +3 -3
  10. package/dist/cdn/mattebox.hls-drm.min.js +3 -3
  11. package/dist/cdn/mattebox.hls-ll.min.js +3 -3
  12. package/dist/cdn/mattebox.hls-ts-drm.min.js +3 -3
  13. package/dist/cdn/mattebox.hls-ts.min.js +3 -3
  14. package/dist/cdn/mattebox.hls.min.js +3 -3
  15. package/dist/cdn/mattebox.kernel.min.js +1 -1
  16. package/dist/cdn/mattebox.min.js +4 -4
  17. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/asyncToGenerator.js +1 -1
  18. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/defineProperty.js +1 -1
  19. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/objectSpread2.js +1 -1
  20. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/objectWithoutProperties.js +3 -3
  21. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/objectWithoutPropertiesLoose.js +2 -2
  22. package/dist/es2015/_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/toPrimitive.js +13 -0
  23. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/toPropertyKey.js +1 -1
  24. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.157.0}/helpers/esm/typeof.js +1 -1
  25. package/dist/es2015/containers/codec-probe/index.js +1 -1
  26. package/dist/es2015/containers/fmp4/fit.js +1 -1
  27. package/dist/es2015/containers/id3.js +1 -1
  28. package/dist/es2015/containers/packed-audio/index.js +1 -1
  29. package/dist/es2015/containers/scte35.js +1 -1
  30. package/dist/es2015/containers/ts-transmux/demux.js +1 -1
  31. package/dist/es2015/containers/ts-transmux/h264.js +1 -1
  32. package/dist/es2015/containers/ts-transmux/h265.js +1 -1
  33. package/dist/es2015/containers/ts-transmux/index.js +3 -3
  34. package/dist/es2015/containers/ts-transmux/runner.js +2 -2
  35. package/dist/es2015/containers/ts-transmux/transmux.js +3 -3
  36. package/dist/es2015/containers/webvtt.js +1 -1
  37. package/dist/es2015/containers/wvtt.js +1 -1
  38. package/dist/es2015/eme/index.js +3 -3
  39. package/dist/es2015/index.js +12 -11
  40. package/dist/es2015/kernel/append-queue.js +1 -1
  41. package/dist/es2015/kernel/dry-run.js +1 -1
  42. package/dist/es2015/kernel/lifecycle.js +1 -1
  43. package/dist/es2015/kernel/mse.js +15 -3
  44. package/dist/es2015/kernel/prepare.js +2 -2
  45. package/dist/es2015/kernel/reducer.js +34 -9
  46. package/dist/es2015/kernel/refresh.js +1 -1
  47. package/dist/es2015/kernel/rendition-select.js +3 -3
  48. package/dist/es2015/kernel/scheduler.js +1 -1
  49. package/dist/es2015/kernel/sinks/caption-tracks.js +1 -1
  50. package/dist/es2015/kernel/sinks/text-formats.js +1 -1
  51. package/dist/es2015/kernel/timeline.js +1 -1
  52. package/dist/es2015/kernel/trace.js +1 -1
  53. package/dist/es2015/kernel/transport.js +2 -2
  54. package/dist/es2015/presets/dash/index.js +2 -1
  55. package/dist/es2015/presets/dash-drm/index.js +3 -1
  56. package/dist/es2015/presets/dash-ll/index.js +3 -1
  57. package/dist/es2015/presets/define.js +2 -2
  58. package/dist/es2015/presets/dual/index.js +3 -1
  59. package/dist/es2015/presets/dual-drm/index.js +4 -1
  60. package/dist/es2015/presets/dual-ll/index.js +4 -1
  61. package/dist/es2015/presets/dual-ts/index.js +4 -1
  62. package/dist/es2015/presets/dual-ts-drm/index.js +5 -1
  63. package/dist/es2015/presets/full/index.js +15 -10
  64. package/dist/es2015/presets/hls/index.js +2 -1
  65. package/dist/es2015/presets/hls-drm/index.js +3 -1
  66. package/dist/es2015/presets/hls-ll/index.js +3 -1
  67. package/dist/es2015/presets/hls-ts/index.js +3 -1
  68. package/dist/es2015/presets/hls-ts-drm/index.js +4 -1
  69. package/dist/es2015/presets/tiers/base.js +52 -0
  70. package/dist/es2015/presets/tiers/dash-ll.js +17 -0
  71. package/dist/es2015/presets/tiers/dash.js +14 -0
  72. package/dist/es2015/presets/tiers/drm.js +19 -0
  73. package/dist/es2015/presets/tiers/hls-ll.js +17 -0
  74. package/dist/es2015/presets/tiers/hls.js +19 -0
  75. package/dist/es2015/presets/tiers/low-latency.js +16 -0
  76. package/dist/es2015/presets/tiers/ts.js +23 -0
  77. package/dist/es2015/protocols/dash-cmaf/index.js +2 -2
  78. package/dist/es2015/protocols/dash-cmaf/parse.js +1 -1
  79. package/dist/es2015/protocols/dash-cmaf/periods-runtime.js +1 -1
  80. package/dist/es2015/protocols/dash-cmaf/periods.js +1 -1
  81. package/dist/es2015/protocols/dash-live/index.js +2 -2
  82. package/dist/es2015/protocols/dash-ll/index.js +1 -1
  83. package/dist/es2015/protocols/hls-cmaf/index.js +1 -1
  84. package/dist/es2015/protocols/hls-cmaf/parse.js +1 -1
  85. package/dist/es2015/protocols/hls-cmaf/unavailable.js +1 -1
  86. package/dist/es2015/protocols/hls-live/index.js +1 -1
  87. package/dist/es2015/protocols/hls-ll/index.js +1 -1
  88. package/dist/es2015/protocols/hls-ll/parse.js +1 -1
  89. package/dist/es2015/stages/abr/index.js +1 -1
  90. package/dist/es2015/stages/aes-128/index.js +1 -1
  91. package/dist/es2015/stages/chapters/index.js +2 -2
  92. package/dist/es2015/stages/chapters/parse.js +2 -2
  93. package/dist/es2015/stages/cmcd/index.js +1 -1
  94. package/dist/es2015/stages/codec-probe/index.js +2 -2
  95. package/dist/es2015/stages/content-steering/index.js +1 -1
  96. package/dist/es2015/stages/eme-core/index.js +2 -2
  97. package/dist/es2015/stages/eme-fairplay/index.js +1 -1
  98. package/dist/es2015/stages/hdr/index.js +1 -1
  99. package/dist/es2015/stages/interstitials/breaks.js +1 -1
  100. package/dist/es2015/stages/interstitials/index.js +3 -3
  101. package/dist/es2015/stages/nal-scan/index.js +1 -1
  102. package/dist/es2015/stages/qoe/index.js +1 -1
  103. package/dist/es2015/stages/recovery/index.js +1 -1
  104. package/dist/es2015/stages/rendition-names/index.js +1 -1
  105. package/dist/es2015/stages/text-cea608/decode.js +1 -1
  106. package/dist/es2015/stages/text-cea708/decode.js +2 -2
  107. package/dist/es2015/stages/text-cea708/index.js +1 -1
  108. package/dist/es2015/stages/text-ttml/index.js +3 -3
  109. package/dist/es2015/stages/text-ttml/parse.js +1 -1
  110. package/dist/es2015/stages/thumbnails/index.js +2 -2
  111. package/dist/es2015/stages/timed-metadata/index.js +2 -2
  112. package/dist/es2015/stages/trick-play/index.js +5 -5
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +2 -1
  115. package/dist/index.js.map +1 -1
  116. package/dist/kernel/mse.d.ts.map +1 -1
  117. package/dist/kernel/mse.js +18 -2
  118. package/dist/kernel/mse.js.map +1 -1
  119. package/dist/kernel/reducer.d.ts +1 -1
  120. package/dist/kernel/reducer.d.ts.map +1 -1
  121. package/dist/kernel/reducer.js +33 -2
  122. package/dist/kernel/reducer.js.map +1 -1
  123. package/dist/presets/dash/index.d.ts.map +1 -1
  124. package/dist/presets/dash/index.js +2 -1
  125. package/dist/presets/dash/index.js.map +1 -1
  126. package/dist/presets/dash-drm/index.d.ts.map +1 -1
  127. package/dist/presets/dash-drm/index.js +3 -1
  128. package/dist/presets/dash-drm/index.js.map +1 -1
  129. package/dist/presets/dash-ll/index.d.ts.map +1 -1
  130. package/dist/presets/dash-ll/index.js +3 -1
  131. package/dist/presets/dash-ll/index.js.map +1 -1
  132. package/dist/presets/dual/index.d.ts.map +1 -1
  133. package/dist/presets/dual/index.js +3 -1
  134. package/dist/presets/dual/index.js.map +1 -1
  135. package/dist/presets/dual-drm/index.d.ts.map +1 -1
  136. package/dist/presets/dual-drm/index.js +4 -1
  137. package/dist/presets/dual-drm/index.js.map +1 -1
  138. package/dist/presets/dual-ll/index.d.ts.map +1 -1
  139. package/dist/presets/dual-ll/index.js +4 -1
  140. package/dist/presets/dual-ll/index.js.map +1 -1
  141. package/dist/presets/dual-ts/index.d.ts.map +1 -1
  142. package/dist/presets/dual-ts/index.js +4 -1
  143. package/dist/presets/dual-ts/index.js.map +1 -1
  144. package/dist/presets/dual-ts-drm/index.d.ts.map +1 -1
  145. package/dist/presets/dual-ts-drm/index.js +5 -1
  146. package/dist/presets/dual-ts-drm/index.js.map +1 -1
  147. package/dist/presets/full/index.d.ts.map +1 -1
  148. package/dist/presets/full/index.js +6 -1
  149. package/dist/presets/full/index.js.map +1 -1
  150. package/dist/presets/hls/index.d.ts.map +1 -1
  151. package/dist/presets/hls/index.js +2 -1
  152. package/dist/presets/hls/index.js.map +1 -1
  153. package/dist/presets/hls-drm/index.d.ts.map +1 -1
  154. package/dist/presets/hls-drm/index.js +3 -1
  155. package/dist/presets/hls-drm/index.js.map +1 -1
  156. package/dist/presets/hls-ll/index.d.ts.map +1 -1
  157. package/dist/presets/hls-ll/index.js +3 -1
  158. package/dist/presets/hls-ll/index.js.map +1 -1
  159. package/dist/presets/hls-ts/index.d.ts.map +1 -1
  160. package/dist/presets/hls-ts/index.js +3 -1
  161. package/dist/presets/hls-ts/index.js.map +1 -1
  162. package/dist/presets/hls-ts-drm/index.d.ts.map +1 -1
  163. package/dist/presets/hls-ts-drm/index.js +4 -1
  164. package/dist/presets/hls-ts-drm/index.js.map +1 -1
  165. package/dist/presets/tiers/base.d.ts +13 -0
  166. package/dist/presets/tiers/base.d.ts.map +1 -0
  167. package/dist/presets/tiers/base.js +51 -0
  168. package/dist/presets/tiers/base.js.map +1 -0
  169. package/dist/presets/tiers/dash-ll.d.ts +8 -0
  170. package/dist/presets/tiers/dash-ll.d.ts.map +1 -0
  171. package/dist/presets/tiers/dash-ll.js +16 -0
  172. package/dist/presets/tiers/dash-ll.js.map +1 -0
  173. package/dist/presets/tiers/dash.d.ts +4 -0
  174. package/dist/presets/tiers/dash.d.ts.map +1 -0
  175. package/dist/presets/tiers/dash.js +13 -0
  176. package/dist/presets/tiers/dash.js.map +1 -0
  177. package/dist/presets/tiers/drm.d.ts +4 -0
  178. package/dist/presets/tiers/drm.d.ts.map +1 -0
  179. package/dist/presets/tiers/drm.js +14 -0
  180. package/dist/presets/tiers/drm.js.map +1 -0
  181. package/dist/presets/tiers/hls-ll.d.ts +7 -0
  182. package/dist/presets/tiers/hls-ll.d.ts.map +1 -0
  183. package/dist/presets/tiers/hls-ll.js +16 -0
  184. package/dist/presets/tiers/hls-ll.js.map +1 -0
  185. package/dist/presets/tiers/hls.d.ts +4 -0
  186. package/dist/presets/tiers/hls.d.ts.map +1 -0
  187. package/dist/presets/tiers/hls.js +16 -0
  188. package/dist/presets/tiers/hls.js.map +1 -0
  189. package/dist/presets/tiers/low-latency.d.ts +7 -0
  190. package/dist/presets/tiers/low-latency.d.ts.map +1 -0
  191. package/dist/presets/tiers/low-latency.js +15 -0
  192. package/dist/presets/tiers/low-latency.js.map +1 -0
  193. package/dist/presets/tiers/ts.d.ts +8 -0
  194. package/dist/presets/tiers/ts.d.ts.map +1 -0
  195. package/dist/presets/tiers/ts.js +18 -0
  196. package/dist/presets/tiers/ts.js.map +1 -0
  197. package/dist/types/kernel.d.ts +5 -0
  198. package/dist/types/kernel.d.ts.map +1 -1
  199. package/package.json +1 -1
  200. package/dist/es2015/_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/toPrimitive.js +0 -13
  201. package/dist/es2015/presets/tiers.js +0 -123
  202. package/dist/presets/tiers.d.ts +0 -41
  203. package/dist/presets/tiers.d.ts.map +0 -1
  204. package/dist/presets/tiers.js +0 -112
  205. package/dist/presets/tiers.js.map +0 -1
@@ -1,4 +1,4 @@
1
- // \0@oxc-project+runtime@0.155.0/helpers/esm/asyncToGenerator.js
1
+ // \0@oxc-project+runtime@0.157.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
- // \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
2
+ // \0@oxc-project+runtime@0.157.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
- // \0@oxc-project+runtime@0.155.0/helpers/esm/objectSpread2.js
2
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/objectSpread2.js
3
3
  function ownKeys(e, r) {
4
4
  var t = Object.keys(e);
5
5
  if (Object.getOwnPropertySymbols) {
@@ -1,11 +1,11 @@
1
1
  import _objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
2
- // \0@oxc-project+runtime@0.155.0/helpers/esm/objectWithoutProperties.js
2
+ // \0@oxc-project+runtime@0.157.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);
6
6
  if (Object.getOwnPropertySymbols) {
7
- var s = Object.getOwnPropertySymbols(e);
8
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
7
+ var n = Object.getOwnPropertySymbols(e);
8
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
9
9
  }
10
10
  return i;
11
11
  }
@@ -1,9 +1,9 @@
1
- // \0@oxc-project+runtime@0.155.0/helpers/esm/objectWithoutPropertiesLoose.js
1
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/objectWithoutPropertiesLoose.js
2
2
  function _objectWithoutPropertiesLoose(r, e) {
3
3
  if (null == r) return {};
4
4
  var t = {};
5
5
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
6
- if (e.includes(n)) continue;
6
+ if (-1 !== e.indexOf(n)) continue;
7
7
  t[n] = r[n];
8
8
  }
9
9
  return t;
@@ -0,0 +1,13 @@
1
+ import _typeof from "./typeof.js";
2
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
3
+ function toPrimitive(t, e) {
4
+ if ("object" != _typeof(t) || !t) return t;
5
+ var r;
6
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
7
+ var i = r.call(t, e || "default");
8
+ if ("object" != _typeof(i)) return i;
9
+ throw new TypeError("@@toPrimitive must return a primitive value.");
10
+ }
11
+ return ("string" === e ? String : Number)(t);
12
+ }
13
+ export { toPrimitive as default };
@@ -1,6 +1,6 @@
1
1
  import _typeof from "./typeof.js";
2
2
  import toPrimitive from "./toPrimitive.js";
3
- // \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
3
+ // \0@oxc-project+runtime@0.157.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
- // \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
1
+ // \0@oxc-project+runtime@0.157.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,6 +1,6 @@
1
+ import { byteToHex } from "../../kernel/base64.js";
1
2
  import { typeString } from "../../kernel/mime.js";
2
3
  import { findBoxes, fourcc, fullBox, sampleEntries, viewOf, walkBoxes } from "../mp4-box/index.js";
3
- import { byteToHex } from "../../kernel/base64.js";
4
4
  // src/containers/codec-probe/index.ts
5
5
  /**
6
6
  * Derives the exact codecs= string from an init segment's moov. Manifests
@@ -1,6 +1,6 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
1
  import { findBox, fragmentSamples, fullBox, viewOf } from "../mp4-box/index.js";
3
2
  import { writeMediaSegment } from "./writer.js";
3
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
4
4
  // src/containers/fmp4/fit.ts
5
5
  /**
6
6
  * The first traf's per-sample encryption entries, null for a clear
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
1
  import { fourcc } from "./mp4-box/index.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
3
3
  // src/containers/id3.ts
4
4
  const HEADER_SIZE = 10;
5
5
  function isId3(data, offset) {
@@ -1,6 +1,6 @@
1
+ import { adtsFragment, parseAdts } from "../adts.js";
1
2
  import { concat, sequenceNumberFor, writeInitSegment, writeMediaSegment } from "../fmp4/writer.js";
2
3
  import { id3TagLength } from "../id3.js";
3
- import { adtsFragment, parseAdts } from "../adts.js";
4
4
  // src/containers/packed-audio/index.ts
5
5
  const AUDIO_TRACK_ID = 1;
6
6
  const PACK_ORDER = 100;
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
2
  // src/containers/scte35.ts
3
3
  const TABLE_ID = 252;
4
4
  const SPLICE_INSERT = 5;
@@ -1,5 +1,5 @@
1
- import { concat } from "../fmp4/writer.js";
2
1
  import { looksLikeTransportStream } from "./sniff.js";
2
+ import { concat } from "../fmp4/writer.js";
3
3
  // src/containers/ts-transmux/demux.ts
4
4
  /**
5
5
  * MPEG-TS demux: 188-byte packets into PES payloads, grouped by elementary
@@ -1,5 +1,5 @@
1
- import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/defineProperty.js";
2
1
  import { toRbsp } from "../sei.js";
2
+ import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/defineProperty.js";
3
3
  // src/containers/ts-transmux/h264.ts
4
4
  /**
5
5
  * H.264 Annex B to AVCC. The elementary stream separates NAL units with
@@ -1,5 +1,5 @@
1
- import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/defineProperty.js";
2
1
  import { toRbsp } from "../sei.js";
2
+ import _defineProperty from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/defineProperty.js";
3
3
  // src/containers/ts-transmux/h265.ts
4
4
  /**
5
5
  * H.265 Annex B to the hvc1 sample format. The NAL units split on start
@@ -1,10 +1,10 @@
1
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/asyncToGenerator.js";
2
- import { looksLikeTransportStream } from "./sniff.js";
1
+ import { captionsWanted, deliverCaptions } from "../captions.js";
3
2
  import { id3Events } from "../id3.js";
4
3
  import { deliverMetadata, metadataWanted } from "../metadata.js";
5
- import { captionsWanted, deliverCaptions } from "../captions.js";
6
4
  import { createTransmuxRunner } from "./runner.js";
5
+ import { looksLikeTransportStream } from "./sniff.js";
7
6
  import { transmuxSource } from "./source.js";
7
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
8
8
  // src/containers/ts-transmux/index.ts
9
9
  /** Runs after decrypt-class steps (lower order) and before caption extraction. */
10
10
  const TRANSMUX_ORDER = 100;
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
- import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/asyncToGenerator.js";
1
+ import _asyncToGenerator from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
2
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
3
3
  // src/containers/ts-transmux/runner.ts
4
4
  function createTransmuxRunner(options, source) {
5
5
  let worker = null;
@@ -1,10 +1,10 @@
1
- import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
1
+ import { SAMPLES_PER_FRAME, adtsFragment, parseAdts } from "../adts.js";
2
2
  import { concat, sequenceNumberFor, writeInitSegment, writeMediaSegment } from "../fmp4/writer.js";
3
- import { STREAM_TYPE, demux, unrollTimestamps } from "./demux.js";
4
3
  import { ccTriplesFromSei } from "../sei.js";
5
- import { SAMPLES_PER_FRAME, adtsFragment, parseAdts } from "../adts.js";
4
+ import { STREAM_TYPE, demux, unrollTimestamps } from "./demux.js";
6
5
  import { NAL_TYPE, accessUnitFromNals, nalType, splitNalUnits, spsDimensions, toAccessUnit } from "./h264.js";
7
6
  import { HEVC_NAL_TYPE, hevcAccessUnitFromNals, hevcDecoderConfiguration, hevcNalType, hevcSpsInfo } from "./h265.js";
7
+ import _objectSpread2 from "../../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
8
8
  // src/containers/ts-transmux/transmux.ts
9
9
  /**
10
10
  * The transmux core: MPEG-TS bytes to a self-contained fragmented MP4. Each
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
2
  // src/containers/webvtt.ts
3
3
  /** `HH:MM:SS.mmm` or `MM:SS.mmm` to seconds, or null. */
4
4
  function parseTimestamp(text) {
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
1
  import { fourcc, viewOf } from "./mp4-box/index.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
3
3
  // src/containers/wvtt.ts
4
4
  /** The child boxes of `bytes`, as type and payload. */
5
5
  function boxes(bytes) {
@@ -1,8 +1,8 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
- import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/asyncToGenerator.js";
3
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectWithoutProperties.js";
4
1
  import { fetchWithin } from "../kernel/transport.js";
5
2
  import emeCore from "../stages/eme-core/index.js";
3
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
4
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
5
+ import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
6
6
  // src/eme/index.ts
7
7
  /**
8
8
  * The engine's DRM on an element the engine does not drive. On Safari a
@@ -1,21 +1,21 @@
1
- import _objectSpread2 from "./_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
- import { exportTrace, replay } from "./kernel/trace.js";
3
1
  import { createBus } from "./kernel/bus.js";
2
+ import { dryRun } from "./kernel/dry-run.js";
4
3
  import { createEffectRunner } from "./kernel/effects.js";
5
- import _asyncToGenerator from "./_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/asyncToGenerator.js";
6
- import { createSegmentPreparer } from "./kernel/prepare.js";
4
+ import { createLifecycle } from "./kernel/lifecycle.js";
5
+ import { compose } from "./kernel/loader.js";
7
6
  import { cueFormat, normalizeMimeType } from "./kernel/mime.js";
8
- import { isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, videoKind } from "./kernel/characteristics.js";
7
+ import { createMseController, decodable } from "./kernel/mse.js";
8
+ import { createSegmentPreparer } from "./kernel/prepare.js";
9
9
  import { findTrackSite, isTrick } from "./kernel/presentation.js";
10
+ import { createReducer, initialState, resolveConfig } from "./kernel/reducer.js";
10
11
  import { activeAudio, availableGroups, canSwitchTo, createArbiter, exclusionsOf } from "./kernel/rendition-select.js";
11
12
  import { createMseSink } from "./kernel/sinks/mse-sink.js";
12
- import { createReducer, initialState, resolveConfig } from "./kernel/reducer.js";
13
- import { dryRun } from "./kernel/dry-run.js";
14
- import { createLifecycle } from "./kernel/lifecycle.js";
15
- import { compose } from "./kernel/loader.js";
16
- import { createMseController, decodable } from "./kernel/mse.js";
17
13
  import { createTrackRegistry } from "./kernel/track-registry.js";
18
14
  import { createTransport } from "./kernel/transport.js";
15
+ import _objectSpread2 from "./_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
16
+ import _asyncToGenerator from "./_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
17
+ import { isAudioDescription, isEnhancedSpeech, isOriginal, isSdh, videoKind } from "./kernel/characteristics.js";
18
+ import { exportTrace, replay } from "./kernel/trace.js";
19
19
  // src/index.ts
20
20
  /**
21
21
  * Mattebox: a modular adaptive-streaming engine for HLS and DASH.
@@ -170,9 +170,10 @@ function mattebox(options) {
170
170
  return composition.manifestTypes.has(normalizeMimeType(mimeType));
171
171
  }
172
172
  function activeVideoRenditions() {
173
+ var _state$tracks$behindT;
173
174
  const state = bus.getState();
174
175
  if (state.presentation === null) return [];
175
- const activeId = state.tracks.active.get("video");
176
+ const activeId = (_state$tracks$behindT = state.tracks.behindTrick) !== null && _state$tracks$behindT !== void 0 ? _state$tracks$behindT : state.tracks.active.get("video");
176
177
  for (const period of state.presentation.periods) for (const track of period.tracks) {
177
178
  if (track.contentType !== "video" || isTrick(track)) continue;
178
179
  if (activeId === void 0 || track.id === activeId) return track.renditions;
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
2
  // src/kernel/append-queue.ts
3
3
  function isQuotaError(err) {
4
4
  return err instanceof DOMException && err.name === "QuotaExceededError";
@@ -1,8 +1,8 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
1
  import { createBus } from "./bus.js";
3
2
  import { createEffectRunner } from "./effects.js";
4
3
  import { createSegmentPreparer } from "./prepare.js";
5
4
  import { createReducer, initialState } from "./reducer.js";
5
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
6
6
  // src/kernel/dry-run.ts
7
7
  /** The whole run ends here, whatever it has fetched: a preload must not outlive its use. */
8
8
  const LIMIT_MS = 1e4;
@@ -1,5 +1,5 @@
1
- import { createReducer } from "./reducer.js";
2
1
  import { createStageContext } from "./context.js";
2
+ import { createReducer } from "./reducer.js";
3
3
  import { createPlaybackWatchdog } from "./watchdog.js";
4
4
  // src/kernel/lifecycle.ts
5
5
  function snapshot(ranges) {
@@ -1,6 +1,6 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
1
  import { createAppendQueue } from "./append-queue.js";
3
2
  import { createEvictor } from "./evictor.js";
3
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
4
4
  // src/kernel/mse.ts
5
5
  function managedMediaSource() {
6
6
  return globalThis.ManagedMediaSource;
@@ -78,6 +78,17 @@ function createMseController(options) {
78
78
  for (const { queue } of buffers.values()) if (!queue.idle()) return false;
79
79
  return true;
80
80
  }
81
+ /**
82
+ * Whether a duration or a live window can still apply to the current
83
+ * MediaSource: it is open, or attached and waiting for sourceopen. A
84
+ * manifest can parse before sourceopen, and a duration dropped then is
85
+ * never sent again: the first init segment sets an unknown duration, which
86
+ * Chrome reports as Infinity for the whole session.
87
+ */
88
+ function accepting() {
89
+ if (mediaSource === null) return false;
90
+ return mediaSource.readyState === "open" || !opened;
91
+ }
81
92
  /** endOfStream and duration assignment both throw while any buffer updates; run them at quiet points. */
82
93
  function runDeferredGlobalOps() {
83
94
  if (mediaSource === null || mediaSource.readyState !== "open" || !allIdle()) return;
@@ -214,6 +225,7 @@ function createMseController(options) {
214
225
  }
215
226
  opened = true;
216
227
  absorb({ type: "MEDIASOURCE_OPEN" });
228
+ runDeferredGlobalOps();
217
229
  for (const effect of pendingCreates.splice(0)) createSourceBuffer(effect);
218
230
  });
219
231
  listen(ms, "sourceclose", () => {
@@ -447,12 +459,12 @@ function createMseController(options) {
447
459
  runDeferredGlobalOps();
448
460
  });
449
461
  runner.register("setDuration", (effect) => {
450
- if (mediaSource === null || mediaSource.readyState !== "open") return void 0;
462
+ if (!accepting()) return void 0;
451
463
  pendingDuration = effect.seconds;
452
464
  runDeferredGlobalOps();
453
465
  });
454
466
  runner.register("setLiveSeekableRange", (effect) => {
455
- if (mediaSource === null || mediaSource.readyState !== "open") return void 0;
467
+ if (!accepting()) return void 0;
456
468
  pendingLiveRange = {
457
469
  start: effect.start,
458
470
  end: effect.end
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
- import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/asyncToGenerator.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
+ import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
3
3
  // src/kernel/prepare.ts
4
4
  /**
5
5
  * The boundary meta a transform and the probe receive. The content type
@@ -1,21 +1,22 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
1
  import { tickAfter } from "./effects.js";
3
2
  import { cueFormat, normalizeMimeType, typeString } from "./mime.js";
4
3
  import { findRendition, findTrackSite, isMainPicture, isTrick } from "./presentation.js";
5
4
  import { applyRefresh } from "./refresh.js";
6
- import { reconciledOffset, segmentAtTime } from "./timeline.js";
7
- import { bufferedEndFrom, reachesEnd, schedule } from "./scheduler.js";
8
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectWithoutProperties.js";
9
5
  import { activeAudio, audioGroup, audioInGroup, availableGroups, canSwitchTo, codecFamily, createArbiter, planPinApply, withDeadGroups } from "./rendition-select.js";
6
+ import { bufferedEndFrom, reachesEnd, schedule } from "./scheduler.js";
10
7
  import { sbIdFor } from "./sinks/mse-sink.js";
8
+ import { reconciledOffset, segmentAtTime } from "./timeline.js";
9
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
10
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
11
11
  // src/kernel/reducer.ts
12
12
  const _excluded = ["pendingInit"];
13
13
  const _excluded2 = ["repeat"];
14
14
  const _excluded3 = ["appended"];
15
15
  const _excluded4 = ["initFor"];
16
16
  const _excluded5 = ["serverThroughput"];
17
- const _excluded6 = ["start"];
17
+ const _excluded6 = ["behindTrick"];
18
18
  const _excluded7 = ["start"];
19
+ const _excluded8 = ["start"];
19
20
  /**
20
21
  * The default tuning. Every value is overridable through the `config`
21
22
  * parameters of `initialState` and `createReducer`; these are starting
@@ -321,6 +322,7 @@ function reduceCommand(state, msg, cfg, hooks) {
321
322
  case "DETACH": {
322
323
  const [, aborts] = abortInflight(state);
323
324
  const fresh = initialState(cfg);
325
+ forgetArbitration(hooks);
324
326
  const { throughputEwma, throughputFastEwma } = state.stats;
325
327
  return [_objectSpread2(_objectSpread2({}, fresh), {}, { stats: _objectSpread2(_objectSpread2({}, fresh.stats), {}, {
326
328
  throughputEwma,
@@ -377,6 +379,7 @@ function reduceCommand(state, msg, cfg, hooks) {
377
379
  case "UNLOAD": {
378
380
  const [, aborts] = abortInflight(state);
379
381
  const fresh = initialState(cfg);
382
+ forgetArbitration(hooks);
380
383
  const phase = state.lifecycle.phase === "idle" ? "idle" : "attaching";
381
384
  const clears = [...state.cues.keys()].map((trackId) => ({
382
385
  kind: "clearCues",
@@ -511,7 +514,7 @@ function reduceCommand(state, msg, cfg, hooks) {
511
514
  }
512
515
  });
513
516
  return [_objectSpread2(_objectSpread2({}, state), {}, {
514
- tracks: _objectSpread2(_objectSpread2({}, state.tracks), {}, { active }),
517
+ tracks: behindTrick(_objectSpread2(_objectSpread2({}, state.tracks), {}, { active }), track, previousTrack),
515
518
  buffers,
516
519
  scheduling: clearRepeat(_objectSpread2(_objectSpread2({}, state.scheduling), {}, { inflight })),
517
520
  quality: bumped(state.quality)
@@ -677,6 +680,18 @@ function undecodable(presentation, decodable) {
677
680
  return withDeadGroups(presentation, out);
678
681
  }
679
682
  /**
683
+ * Keeps the main video track behind an I-frame track. A scan or a scrub
684
+ * switches to the I-frame track for a while; the quality API goes on
685
+ * describing the track it replaced, so a quality menu does not empty.
686
+ */
687
+ function behindTrick(tracks, track, previous) {
688
+ if (track.contentType !== "video") return tracks;
689
+ const { behindTrick: _behind } = tracks, rest = _objectWithoutProperties(tracks, _excluded6);
690
+ if (!isTrick(track)) return rest;
691
+ if (previous !== null && !isTrick(previous)) return _objectSpread2(_objectSpread2({}, rest), {}, { behindTrick: previous.id });
692
+ return tracks;
693
+ }
694
+ /**
680
695
  * A presentation replaces the one held: a manifest landed, or a playlist
681
696
  * merged into it. Activates default tracks and reports what changed.
682
697
  */
@@ -726,7 +741,7 @@ function loadPresentation(state, merged, undecodableIds = /* @__PURE__ */ new Se
726
741
  if (start !== void 0 && !presentation.isLive) {
727
742
  var _presentation$duratio;
728
743
  const to = Math.max(0, Math.min(start, (_presentation$duratio = presentation.duration) !== null && _presentation$duratio !== void 0 ? _presentation$duratio : start));
729
- const _loaded$playback = loaded.playback, { start: _ } = _loaded$playback, rest = _objectWithoutProperties(_loaded$playback, _excluded6);
744
+ const _loaded$playback = loaded.playback, { start: _ } = _loaded$playback, rest = _objectWithoutProperties(_loaded$playback, _excluded7);
730
745
  manifestEffects.push({
731
746
  kind: "seekElement",
732
747
  to
@@ -1171,7 +1186,7 @@ function reduceFact(state, msg, cfg, hooks) {
1171
1186
  const start = state.playback.start;
1172
1187
  if (firstWindow && start !== void 0) {
1173
1188
  const to = start >= msg.start && start <= msg.edge ? start : edgeStart(msg.start, msg.edge);
1174
- const _withLive$playback = withLive.playback, { start: _ } = _withLive$playback, rest = _objectWithoutProperties(_withLive$playback, _excluded7);
1189
+ const _withLive$playback = withLive.playback, { start: _ } = _withLive$playback, rest = _objectWithoutProperties(_withLive$playback, _excluded8);
1175
1190
  const [scheduled, effects] = driveScheduling(_objectSpread2(_objectSpread2({}, withLive), {}, { playback: _objectSpread2(_objectSpread2({}, rest), {}, { currentTime: to }) }), hooks, cfg);
1176
1191
  return [scheduled, [
1177
1192
  ...spanEffects,
@@ -1387,6 +1402,15 @@ function driveScheduling(state, hooks, cfg) {
1387
1402
  }), effects];
1388
1403
  }
1389
1404
  const arbiters = /* @__PURE__ */ new WeakMap();
1405
+ /**
1406
+ * Drops the arbiters' last outcome with the source. They are memoized on the
1407
+ * quality version, which the reset state starts again at 0, so an outcome
1408
+ * kept across an UNLOAD or a DETACH would answer the next source's first
1409
+ * decision with a rendition of the last one. Its video then never fetches.
1410
+ */
1411
+ function forgetArbitration(hooks) {
1412
+ arbiters.delete(hooks);
1413
+ }
1390
1414
  function arbiterFor(hooks, contentType) {
1391
1415
  let pair = arbiters.get(hooks);
1392
1416
  if (pair === void 0) {
@@ -1429,7 +1453,8 @@ function isCommand(msg) {
1429
1453
  * slice keeps the previous value and an error event effect is emitted, so
1430
1454
  * one broken stage cannot corrupt kernel state.
1431
1455
  */
1432
- function createReducer(slices, config, hooks = {}) {
1456
+ function createReducer(slices, config, shared = {}) {
1457
+ const hooks = Object.create(shared);
1433
1458
  const sliceList = slices ? [...slices] : [];
1434
1459
  const cfg = resolveConfig(config);
1435
1460
  const DRIVING_FACTS = /* @__PURE__ */ new Set([
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
2
  // 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.155.0/helpers/esm/objectSpread2.js";
2
1
  import { findRendition, findTrackSite } from "./presentation.js";
3
- import { segmentAtTime } from "./timeline.js";
4
2
  import { bufferedEndFrom } from "./scheduler.js";
5
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectWithoutProperties.js";
3
+ import { segmentAtTime } from "./timeline.js";
4
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
5
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
6
6
  // src/kernel/rendition-select.ts
7
7
  const _excluded = [
8
8
  "maxHeight",
@@ -1,5 +1,5 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
1
  import { buildEpochs, epochForSeq, epochKey, isIndexed, segmentAtTime, timestampOffsetFor } from "./timeline.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
3
3
  // src/kernel/scheduler.ts
4
4
  const DEFAULT_GAP_TOLERANCE = .25;
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { adoptTextTrack, emptyTextTrack } from "./text-track-sink.js";
2
1
  import { syncNativeTracks } from "./native-sync.js";
2
+ import { adoptTextTrack, emptyTextTrack } from "./text-track-sink.js";
3
3
  // src/kernel/sinks/caption-tracks.ts
4
4
  /** A VTTCue, or null where the browser has none. */
5
5
  function vttCue(start, end, text) {
@@ -1,6 +1,6 @@
1
1
  import { cueFormat } from "../mime.js";
2
- import { createTextTrackSink } from "./text-track-sink.js";
3
2
  import { syncNativeTracks } from "./native-sync.js";
3
+ import { createTextTrackSink } from "./text-track-sink.js";
4
4
  // src/kernel/sinks/text-formats.ts
5
5
  const shared = /* @__PURE__ */ new WeakMap();
6
6
  /** The cue format of a text track: its MIME type, with the codec family in fMP4. */
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
2
2
  // 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.155.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.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.155.0/helpers/esm/objectSpread2.js";
2
- import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/asyncToGenerator.js";
1
+ import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/asyncToGenerator.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
3
3
  // src/kernel/transport.ts
4
4
  const DEFAULT_RETRY_POLICY = {
5
5
  maxAttempts: 3,
@@ -1,5 +1,6 @@
1
1
  import { definePreset } from "../define.js";
2
- import { base, dashLine } from "../tiers.js";
2
+ import { base } from "../tiers/base.js";
3
+ import { dashLine } from "../tiers/dash.js";
3
4
  // src/presets/dash/index.ts
4
5
  /**
5
6
  * The `dash` preset: DASH on demand and live, the base.
@@ -1,5 +1,7 @@
1
1
  import { definePreset } from "../define.js";
2
- import { base, dashLine, drmTier } from "../tiers.js";
2
+ import { base } from "../tiers/base.js";
3
+ import { dashLine } from "../tiers/dash.js";
4
+ import { drmTier } from "../tiers/drm.js";
3
5
  // src/presets/dash-drm/index.ts
4
6
  /**
5
7
  * The `dash-drm` preset: `dash` plus the EME stages, for protected DASH.
@@ -1,5 +1,7 @@
1
1
  import { definePreset } from "../define.js";
2
- import { base, dashLlLine, lowLatencyTier } from "../tiers.js";
2
+ import { base } from "../tiers/base.js";
3
+ import { dashLlLine } from "../tiers/dash-ll.js";
4
+ import { lowLatencyTier } from "../tiers/low-latency.js";
3
5
  // src/presets/dash-ll/index.ts
4
6
  /**
5
7
  * The `dash-ll` preset: low-latency DASH on demand and live, CMAF segments,
@@ -1,6 +1,6 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectSpread2.js";
2
- import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/objectWithoutProperties.js";
3
1
  import { mattebox } from "../index.js";
2
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectWithoutProperties.js";
3
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.157.0/helpers/esm/objectSpread2.js";
4
4
  // src/presets/define.ts
5
5
  const _excluded = ["stages", "without"];
6
6
  /** Applies the merge rule. Exported for tests; presets call it through `stages`. */
@@ -1,5 +1,7 @@
1
1
  import { definePreset } from "../define.js";
2
- import { base, dashLine, hlsLine } from "../tiers.js";
2
+ import { base } from "../tiers/base.js";
3
+ import { dashLine } from "../tiers/dash.js";
4
+ import { hlsLine } from "../tiers/hls.js";
3
5
  // src/presets/dual/index.ts
4
6
  /**
5
7
  * The `dual` preset: both protocol lines, CMAF segments, the base. One
@@ -1,5 +1,8 @@
1
1
  import { definePreset } from "../define.js";
2
- import { base, dashLine, drmTier, hlsLine } from "../tiers.js";
2
+ import { base } from "../tiers/base.js";
3
+ import { dashLine } from "../tiers/dash.js";
4
+ import { drmTier } from "../tiers/drm.js";
5
+ import { hlsLine } from "../tiers/hls.js";
3
6
  // src/presets/dual-drm/index.ts
4
7
  /**
5
8
  * The `dual-drm` preset: `dual` plus the EME stages.
@@ -1,5 +1,8 @@
1
1
  import { definePreset } from "../define.js";
2
- import { base, dashLlLine, hlsLlLine, lowLatencyTier } from "../tiers.js";
2
+ import { base } from "../tiers/base.js";
3
+ import { dashLlLine } from "../tiers/dash-ll.js";
4
+ import { hlsLlLine } from "../tiers/hls-ll.js";
5
+ import { lowLatencyTier } from "../tiers/low-latency.js";
3
6
  // src/presets/dual-ll/index.ts
4
7
  /**
5
8
  * The `dual-ll` preset: low-latency HLS and low-latency DASH, CMAF