@blockcast/mmt-container 0.1.0 → 0.3.0-main.288475b64b3e

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 (800) hide show
  1. package/README.md +538 -0
  2. package/dist/.build-stamp +0 -0
  3. package/dist/__tests__/test-utils.d.ts +71 -0
  4. package/dist/__tests__/test-utils.d.ts.map +1 -0
  5. package/dist/align.d.ts +152 -0
  6. package/dist/align.d.ts.map +1 -0
  7. package/dist/align.js +88 -0
  8. package/dist/align.js.map +7 -0
  9. package/dist/audio-init-parser.d.ts +66 -0
  10. package/dist/audio-init-parser.d.ts.map +1 -0
  11. package/dist/audio-init-parser.js +118 -0
  12. package/dist/audio-init-parser.js.map +7 -0
  13. package/dist/audio-ring-buffer.d.ts +50 -0
  14. package/dist/audio-ring-buffer.d.ts.map +1 -0
  15. package/dist/audio-ring-buffer.js +80 -0
  16. package/dist/audio-ring-buffer.js.map +7 -0
  17. package/dist/authored-timing.d.ts +32 -0
  18. package/dist/authored-timing.d.ts.map +1 -0
  19. package/dist/authored-timing.js +32 -0
  20. package/dist/authored-timing.js.map +7 -0
  21. package/dist/block-policy.d.ts +314 -0
  22. package/dist/block-policy.d.ts.map +1 -0
  23. package/dist/block-policy.js +466 -0
  24. package/dist/block-policy.js.map +7 -0
  25. package/dist/browser-runtime.js +26457 -0
  26. package/dist/browser-runtime.js.map +7 -0
  27. package/dist/carp-catalog.d.ts +445 -0
  28. package/dist/carp-catalog.d.ts.map +1 -0
  29. package/dist/carp-catalog.js +998 -0
  30. package/dist/carp-catalog.js.map +7 -0
  31. package/dist/catalog-fec-params.d.ts +315 -0
  32. package/dist/catalog-fec-params.d.ts.map +1 -0
  33. package/dist/catalog-fec-params.js +730 -0
  34. package/dist/catalog-fec-params.js.map +7 -0
  35. package/dist/catalog-network-source.d.ts +42 -0
  36. package/dist/catalog-network-source.d.ts.map +1 -0
  37. package/dist/catalog-network-source.js +46 -0
  38. package/dist/catalog-network-source.js.map +7 -0
  39. package/dist/catalog-validator.d.ts +18 -0
  40. package/dist/catalog-validator.d.ts.map +1 -0
  41. package/dist/catalog-validator.js +7747 -0
  42. package/dist/catalog-validator.js.map +7 -0
  43. package/dist/cmaf-block-assembler.d.ts +285 -0
  44. package/dist/cmaf-block-assembler.d.ts.map +1 -0
  45. package/dist/cmaf-block-assembler.js +1966 -0
  46. package/dist/cmaf-block-assembler.js.map +7 -0
  47. package/dist/cmaf-group-batcher.d.ts +38 -0
  48. package/dist/cmaf-group-batcher.d.ts.map +1 -0
  49. package/dist/cmaf-group-batcher.js +176 -0
  50. package/dist/cmaf-group-batcher.js.map +7 -0
  51. package/dist/cmcd-producer.d.ts +104 -0
  52. package/dist/cmcd-producer.d.ts.map +1 -0
  53. package/dist/cmcd-producer.js +183 -0
  54. package/dist/cmcd-producer.js.map +7 -0
  55. package/dist/codec-utils.d.ts +384 -0
  56. package/dist/codec-utils.d.ts.map +1 -0
  57. package/dist/codec-utils.js +1546 -0
  58. package/dist/codec-utils.js.map +7 -0
  59. package/dist/conceal-timeline.d.ts +146 -0
  60. package/dist/conceal-timeline.d.ts.map +1 -0
  61. package/dist/conceal-timeline.js +137 -0
  62. package/dist/conceal-timeline.js.map +7 -0
  63. package/dist/delivery-gap.d.ts +75 -0
  64. package/dist/delivery-gap.d.ts.map +1 -0
  65. package/dist/delivery-gap.js +88 -0
  66. package/dist/delivery-gap.js.map +7 -0
  67. package/dist/duplicate-ledger.d.ts +197 -0
  68. package/dist/duplicate-ledger.d.ts.map +1 -0
  69. package/dist/duplicate-ledger.js +226 -0
  70. package/dist/duplicate-ledger.js.map +7 -0
  71. package/dist/fec-codec.d.ts +32 -0
  72. package/dist/fec-codec.d.ts.map +1 -0
  73. package/dist/fec-codec.js +47 -0
  74. package/dist/fec-codec.js.map +7 -0
  75. package/dist/fec-manager.d.ts +589 -0
  76. package/dist/fec-manager.d.ts.map +1 -0
  77. package/dist/fec-manager.js +3840 -0
  78. package/dist/fec-manager.js.map +7 -0
  79. package/dist/fec-starvation-detector.d.ts +59 -0
  80. package/dist/fec-starvation-detector.d.ts.map +1 -0
  81. package/dist/fec-starvation-detector.js +60 -0
  82. package/dist/fec-starvation-detector.js.map +7 -0
  83. package/dist/fec-state.d.ts +140 -0
  84. package/dist/fec-state.d.ts.map +1 -0
  85. package/dist/fec-state.js +86 -0
  86. package/dist/fec-state.js.map +7 -0
  87. package/dist/fec-worker-setup.d.ts +100 -0
  88. package/dist/fec-worker-setup.d.ts.map +1 -0
  89. package/dist/fec-worker-setup.js +671 -0
  90. package/dist/fec-worker-setup.js.map +7 -0
  91. package/dist/fmp4-completion.d.ts +30 -0
  92. package/dist/fmp4-completion.d.ts.map +1 -0
  93. package/dist/fmp4-completion.js +21 -0
  94. package/dist/fmp4-completion.js.map +7 -0
  95. package/dist/fmp4-reader.d.ts +37 -0
  96. package/dist/fmp4-reader.d.ts.map +1 -0
  97. package/dist/fmp4-reader.js +100 -0
  98. package/dist/fmp4-reader.js.map +7 -0
  99. package/dist/index.d.ts +44 -3
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +464 -14
  102. package/dist/index.js.map +7 -1
  103. package/dist/iso-block-locator.d.ts +118 -0
  104. package/dist/iso-block-locator.d.ts.map +1 -0
  105. package/dist/iso-block-locator.js +288 -0
  106. package/dist/iso-block-locator.js.map +7 -0
  107. package/dist/iso-bmff-timing.d.ts +78 -0
  108. package/dist/iso-bmff-timing.d.ts.map +1 -0
  109. package/dist/iso-bmff-timing.js +593 -0
  110. package/dist/iso-bmff-timing.js.map +7 -0
  111. package/dist/loc.d.ts +70 -75
  112. package/dist/loc.d.ts.map +1 -1
  113. package/dist/loc.js +106 -192
  114. package/dist/loc.js.map +7 -1
  115. package/dist/manifest-auth-plan.d.ts +30 -0
  116. package/dist/manifest-auth-plan.d.ts.map +1 -0
  117. package/dist/manifest-auth-plan.js +1266 -0
  118. package/dist/manifest-auth-plan.js.map +7 -0
  119. package/dist/media-router.d.ts +262 -0
  120. package/dist/media-router.d.ts.map +1 -0
  121. package/dist/media-router.js +584 -0
  122. package/dist/media-router.js.map +7 -0
  123. package/dist/mfu-reassembler.d.ts +313 -9
  124. package/dist/mfu-reassembler.d.ts.map +1 -1
  125. package/dist/mfu-reassembler.js +3050 -285
  126. package/dist/mfu-reassembler.js.map +7 -1
  127. package/dist/mfu-reassembly-policy.d.ts +24 -0
  128. package/dist/mfu-reassembly-policy.d.ts.map +1 -0
  129. package/dist/mfu-reassembly-policy.js +99 -0
  130. package/dist/mfu-reassembly-policy.js.map +7 -0
  131. package/dist/mmtp-container-parser.d.ts +573 -0
  132. package/dist/mmtp-container-parser.d.ts.map +1 -0
  133. package/dist/mmtp-container-parser.js +6601 -0
  134. package/dist/mmtp-container-parser.js.map +7 -0
  135. package/dist/mmtp-container-parser.no-modules.js +9645 -0
  136. package/dist/mmtp-container-parser.no-modules.js.map +7 -0
  137. package/dist/mmtp-decode-pipeline.d.ts +138 -0
  138. package/dist/mmtp-decode-pipeline.d.ts.map +1 -0
  139. package/dist/mmtp-decode-pipeline.js +6835 -0
  140. package/dist/mmtp-decode-pipeline.js.map +7 -0
  141. package/dist/mmtp-router.d.ts +702 -0
  142. package/dist/mmtp-router.d.ts.map +1 -0
  143. package/dist/mmtp-router.js +11193 -0
  144. package/dist/mmtp-router.js.map +7 -0
  145. package/dist/mmtp-to-cmaf.d.ts +187 -0
  146. package/dist/mmtp-to-cmaf.d.ts.map +1 -0
  147. package/dist/mmtp-to-cmaf.js +716 -0
  148. package/dist/mmtp-to-cmaf.js.map +7 -0
  149. package/dist/multicast-auth-catalog.d.ts +115 -0
  150. package/dist/multicast-auth-catalog.d.ts.map +1 -0
  151. package/dist/multicast-auth-catalog.js +202 -0
  152. package/dist/multicast-auth-catalog.js.map +7 -0
  153. package/dist/multicast-input.d.ts +141 -0
  154. package/dist/multicast-input.d.ts.map +1 -0
  155. package/dist/multicast-input.js +389 -0
  156. package/dist/multicast-input.js.map +7 -0
  157. package/dist/multicast-manager.d.ts +699 -0
  158. package/dist/multicast-manager.d.ts.map +1 -0
  159. package/dist/multicast-manager.js +19120 -0
  160. package/dist/multicast-manager.js.map +7 -0
  161. package/dist/multicast-transport.d.ts +271 -0
  162. package/dist/multicast-transport.d.ts.map +1 -0
  163. package/dist/multicast-transport.js +2262 -0
  164. package/dist/multicast-transport.js.map +7 -0
  165. package/dist/multicast-unwrap.d.ts +57 -0
  166. package/dist/multicast-unwrap.d.ts.map +1 -0
  167. package/dist/multicast-unwrap.js +417 -0
  168. package/dist/multicast-unwrap.js.map +7 -0
  169. package/dist/no-modules.d.ts +10 -0
  170. package/dist/no-modules.d.ts.map +1 -0
  171. package/dist/no-modules.js +9520 -0
  172. package/dist/no-modules.js.map +7 -0
  173. package/dist/phase14-catalog-override.d.ts +126 -0
  174. package/dist/phase14-catalog-override.d.ts.map +1 -0
  175. package/dist/phase14-catalog-override.js +155 -0
  176. package/dist/phase14-catalog-override.js.map +7 -0
  177. package/dist/repair-fetch.d.ts +281 -0
  178. package/dist/repair-fetch.d.ts.map +1 -0
  179. package/dist/repair-fetch.js +391 -0
  180. package/dist/repair-fetch.js.map +7 -0
  181. package/dist/repair-layers.d.ts +169 -0
  182. package/dist/repair-layers.d.ts.map +1 -0
  183. package/dist/repair-layers.js +351 -0
  184. package/dist/repair-layers.js.map +7 -0
  185. package/dist/sample-combiner.d.ts +212 -0
  186. package/dist/sample-combiner.d.ts.map +1 -0
  187. package/dist/sample-combiner.js +595 -0
  188. package/dist/sample-combiner.js.map +7 -0
  189. package/dist/signaling.d.ts +29 -0
  190. package/dist/signaling.d.ts.map +1 -0
  191. package/dist/signaling.js +568 -0
  192. package/dist/signaling.js.map +7 -0
  193. package/dist/source-auth.d.ts +2 -0
  194. package/dist/source-auth.d.ts.map +1 -0
  195. package/dist/source-auth.js +1209 -0
  196. package/dist/source-auth.js.map +7 -0
  197. package/dist/switching-set-alignment.d.ts +61 -0
  198. package/dist/switching-set-alignment.d.ts.map +1 -0
  199. package/dist/switching-set-alignment.js +70 -0
  200. package/dist/switching-set-alignment.js.map +7 -0
  201. package/dist/timestamp-codec.d.ts +34 -0
  202. package/dist/timestamp-codec.d.ts.map +1 -0
  203. package/dist/timestamp-codec.js +472 -0
  204. package/dist/timestamp-codec.js.map +7 -0
  205. package/dist/track-pipeline-setup.d.ts +83 -0
  206. package/dist/track-pipeline-setup.d.ts.map +1 -0
  207. package/dist/track-pipeline-setup.js +291 -0
  208. package/dist/track-pipeline-setup.js.map +7 -0
  209. package/dist/track-pipeline.d.ts +121 -0
  210. package/dist/track-pipeline.d.ts.map +1 -0
  211. package/dist/track-pipeline.js +209 -0
  212. package/dist/track-pipeline.js.map +7 -0
  213. package/dist/track-session.d.ts +414 -0
  214. package/dist/track-session.d.ts.map +1 -0
  215. package/dist/track-session.js +754 -0
  216. package/dist/track-session.js.map +7 -0
  217. package/dist/transport-pool.d.ts +69 -0
  218. package/dist/transport-pool.d.ts.map +1 -0
  219. package/dist/transport-pool.js +74 -0
  220. package/dist/transport-pool.js.map +7 -0
  221. package/dist/wasm-mfu-reassembler.d.ts +97 -0
  222. package/dist/wasm-mfu-reassembler.d.ts.map +1 -0
  223. package/dist/wasm-mfu-reassembler.js +2132 -0
  224. package/dist/wasm-mfu-reassembler.js.map +7 -0
  225. package/dist/wasm-mmtp-container-parser.d.ts +10 -0
  226. package/dist/wasm-mmtp-container-parser.d.ts.map +1 -0
  227. package/dist/wasm-mmtp-container-parser.js +6855 -0
  228. package/dist/wasm-mmtp-container-parser.js.map +7 -0
  229. package/node_modules/@blockcast/fec-worker/README.md +223 -0
  230. package/node_modules/@blockcast/fec-worker/dist/.build-stamp +0 -0
  231. package/node_modules/@blockcast/fec-worker/dist/block-order.d.ts +22 -0
  232. package/node_modules/@blockcast/fec-worker/dist/block-order.d.ts.map +1 -0
  233. package/node_modules/@blockcast/fec-worker/dist/block-order.js +48 -0
  234. package/node_modules/@blockcast/fec-worker/dist/block-order.js.map +1 -0
  235. package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.d.ts +92 -0
  236. package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.d.ts.map +1 -0
  237. package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.js +345 -0
  238. package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.js.map +1 -0
  239. package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.d.ts +373 -0
  240. package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.d.ts.map +1 -0
  241. package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.js +11 -0
  242. package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.js.map +1 -0
  243. package/node_modules/@blockcast/fec-worker/dist/fec-worker.d.ts +14 -0
  244. package/node_modules/@blockcast/fec-worker/dist/fec-worker.d.ts.map +1 -0
  245. package/node_modules/@blockcast/fec-worker/dist/fec-worker.js +764 -0
  246. package/node_modules/@blockcast/fec-worker/dist/fec-worker.js.map +7 -0
  247. package/node_modules/@blockcast/fec-worker/dist/index.d.ts +10 -0
  248. package/node_modules/@blockcast/fec-worker/dist/index.d.ts.map +1 -0
  249. package/node_modules/@blockcast/fec-worker/dist/index.js +8 -0
  250. package/node_modules/@blockcast/fec-worker/dist/index.js.map +1 -0
  251. package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.d.ts +20 -0
  252. package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.d.ts.map +1 -0
  253. package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.js +370 -0
  254. package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.js.map +7 -0
  255. package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.d.ts +104 -0
  256. package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.d.ts.map +1 -0
  257. package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.js +181 -0
  258. package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.js.map +1 -0
  259. package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.d.ts +194 -0
  260. package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.d.ts.map +1 -0
  261. package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.js +62 -0
  262. package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.js.map +1 -0
  263. package/node_modules/@blockcast/fec-worker/dist/transfer.d.ts +9 -0
  264. package/node_modules/@blockcast/fec-worker/dist/transfer.d.ts.map +1 -0
  265. package/node_modules/@blockcast/fec-worker/dist/transfer.js +13 -0
  266. package/node_modules/@blockcast/fec-worker/dist/transfer.js.map +1 -0
  267. package/node_modules/@blockcast/fec-worker/package.json +59 -0
  268. package/node_modules/@blockcast/fec-worker/src/block-order.ts +59 -0
  269. package/node_modules/@blockcast/fec-worker/src/fec-worker-client.ts +391 -0
  270. package/node_modules/@blockcast/fec-worker/src/fec-worker-types.ts +392 -0
  271. package/node_modules/@blockcast/fec-worker/src/fec-worker.ts +1386 -0
  272. package/node_modules/@blockcast/fec-worker/src/index.ts +35 -0
  273. package/node_modules/@blockcast/fec-worker/src/shred-fec-worker.ts +589 -0
  274. package/node_modules/@blockcast/fec-worker/src/shred-worker-client.ts +222 -0
  275. package/node_modules/@blockcast/fec-worker/src/shred-worker-types.ts +209 -0
  276. package/node_modules/@blockcast/fec-worker/src/transfer.ts +12 -0
  277. package/node_modules/@blockcast/mmt-alta-parse/README.md +181 -0
  278. package/node_modules/@blockcast/mmt-alta-parse/dist/.build-stamp +0 -0
  279. package/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts +57 -0
  280. package/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts.map +1 -0
  281. package/node_modules/@blockcast/mmt-alta-parse/dist/index.js +115 -0
  282. package/node_modules/@blockcast/mmt-alta-parse/dist/index.js.map +1 -0
  283. package/node_modules/@blockcast/mmt-alta-parse/package.json +50 -0
  284. package/node_modules/@blockcast/mmt-alta-parse/src/index.ts +136 -0
  285. package/node_modules/@blockcast/mmt-base/README.md +134 -0
  286. package/node_modules/@blockcast/mmt-base/dist/.build-stamp +0 -0
  287. package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts +55 -0
  288. package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts.map +1 -0
  289. package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js +132 -0
  290. package/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js.map +1 -0
  291. package/node_modules/@blockcast/mmt-base/dist/index.d.ts +7 -0
  292. package/node_modules/@blockcast/mmt-base/dist/index.d.ts.map +1 -0
  293. package/node_modules/@blockcast/mmt-base/dist/index.js +7 -0
  294. package/node_modules/@blockcast/mmt-base/dist/index.js.map +1 -0
  295. package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts +292 -0
  296. package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts.map +1 -0
  297. package/node_modules/@blockcast/mmt-base/dist/mmtp.js +612 -0
  298. package/node_modules/@blockcast/mmt-base/dist/mmtp.js.map +1 -0
  299. package/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts +18 -0
  300. package/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts.map +1 -0
  301. package/node_modules/@blockcast/mmt-base/dist/net-constants.js +18 -0
  302. package/node_modules/@blockcast/mmt-base/dist/net-constants.js.map +1 -0
  303. package/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts +47 -0
  304. package/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts.map +1 -0
  305. package/node_modules/@blockcast/mmt-base/dist/ntp-short.js +54 -0
  306. package/node_modules/@blockcast/mmt-base/dist/ntp-short.js.map +1 -0
  307. package/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts +28 -0
  308. package/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts.map +1 -0
  309. package/node_modules/@blockcast/mmt-base/dist/serial-number.js +44 -0
  310. package/node_modules/@blockcast/mmt-base/dist/serial-number.js.map +1 -0
  311. package/node_modules/@blockcast/mmt-base/dist/signalling.d.ts +314 -0
  312. package/node_modules/@blockcast/mmt-base/dist/signalling.d.ts.map +1 -0
  313. package/node_modules/@blockcast/mmt-base/dist/signalling.js +637 -0
  314. package/node_modules/@blockcast/mmt-base/dist/signalling.js.map +1 -0
  315. package/node_modules/@blockcast/mmt-base/package.json +49 -0
  316. package/node_modules/@blockcast/mmt-base/src/fec-block-profile.ts +145 -0
  317. package/node_modules/@blockcast/mmt-base/src/index.ts +6 -0
  318. package/node_modules/@blockcast/mmt-base/src/mmtp.ts +892 -0
  319. package/node_modules/@blockcast/mmt-base/src/net-constants.ts +17 -0
  320. package/node_modules/@blockcast/mmt-base/src/ntp-short.ts +67 -0
  321. package/node_modules/@blockcast/mmt-base/src/serial-number.ts +49 -0
  322. package/node_modules/@blockcast/mmt-base/src/signalling.ts +860 -0
  323. package/node_modules/@blockcast/mmt-fec/README.md +271 -0
  324. package/node_modules/@blockcast/mmt-fec/dist/.build-stamp +0 -0
  325. package/node_modules/@blockcast/mmt-fec/dist/block-manager.d.ts +82 -0
  326. package/node_modules/@blockcast/mmt-fec/dist/block-manager.d.ts.map +1 -0
  327. package/node_modules/@blockcast/mmt-fec/dist/block-manager.js +296 -0
  328. package/node_modules/@blockcast/mmt-fec/dist/block-manager.js.map +1 -0
  329. package/node_modules/@blockcast/mmt-fec/dist/block-processor.d.ts +105 -0
  330. package/node_modules/@blockcast/mmt-fec/dist/block-processor.d.ts.map +1 -0
  331. package/node_modules/@blockcast/mmt-fec/dist/block-processor.js +222 -0
  332. package/node_modules/@blockcast/mmt-fec/dist/block-processor.js.map +1 -0
  333. package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.d.ts +46 -0
  334. package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.d.ts.map +1 -0
  335. package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.js +96 -0
  336. package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.js.map +1 -0
  337. package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.d.ts +33 -0
  338. package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.d.ts.map +1 -0
  339. package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.js +57 -0
  340. package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.js.map +1 -0
  341. package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.d.ts +149 -0
  342. package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.d.ts.map +1 -0
  343. package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.js +161 -0
  344. package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.js.map +1 -0
  345. package/node_modules/@blockcast/mmt-fec/dist/index.d.ts +28 -0
  346. package/node_modules/@blockcast/mmt-fec/dist/index.d.ts.map +1 -0
  347. package/node_modules/@blockcast/mmt-fec/dist/index.js +28 -0
  348. package/node_modules/@blockcast/mmt-fec/dist/index.js.map +1 -0
  349. package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.d.ts +20 -0
  350. package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.d.ts.map +1 -0
  351. package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.js +28 -0
  352. package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.js.map +1 -0
  353. package/node_modules/@blockcast/mmt-fec/dist/oti.d.ts +258 -0
  354. package/node_modules/@blockcast/mmt-fec/dist/oti.d.ts.map +1 -0
  355. package/node_modules/@blockcast/mmt-fec/dist/oti.js +382 -0
  356. package/node_modules/@blockcast/mmt-fec/dist/oti.js.map +1 -0
  357. package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.d.ts +41 -0
  358. package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.d.ts.map +1 -0
  359. package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.js +81 -0
  360. package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.js.map +1 -0
  361. package/node_modules/@blockcast/mmt-fec/dist/repair-group.d.ts +82 -0
  362. package/node_modules/@blockcast/mmt-fec/dist/repair-group.d.ts.map +1 -0
  363. package/node_modules/@blockcast/mmt-fec/dist/repair-group.js +170 -0
  364. package/node_modules/@blockcast/mmt-fec/dist/repair-group.js.map +1 -0
  365. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/README.md +181 -0
  366. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/.build-stamp +0 -0
  367. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts +57 -0
  368. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts.map +1 -0
  369. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.js +115 -0
  370. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.js.map +1 -0
  371. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/package.json +50 -0
  372. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/src/index.ts +136 -0
  373. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/README.md +134 -0
  374. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/.build-stamp +0 -0
  375. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts +55 -0
  376. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.d.ts.map +1 -0
  377. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js +132 -0
  378. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/fec-block-profile.js.map +1 -0
  379. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.d.ts +7 -0
  380. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.d.ts.map +1 -0
  381. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.js +7 -0
  382. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.js.map +1 -0
  383. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts +292 -0
  384. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts.map +1 -0
  385. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.js +612 -0
  386. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.js.map +1 -0
  387. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts +18 -0
  388. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.d.ts.map +1 -0
  389. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.js +18 -0
  390. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/net-constants.js.map +1 -0
  391. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts +47 -0
  392. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.d.ts.map +1 -0
  393. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.js +54 -0
  394. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/ntp-short.js.map +1 -0
  395. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts +28 -0
  396. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.d.ts.map +1 -0
  397. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.js +44 -0
  398. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/serial-number.js.map +1 -0
  399. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.d.ts +314 -0
  400. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.d.ts.map +1 -0
  401. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.js +637 -0
  402. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/signalling.js.map +1 -0
  403. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/package.json +49 -0
  404. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/fec-block-profile.ts +145 -0
  405. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/index.ts +6 -0
  406. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/mmtp.ts +892 -0
  407. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/net-constants.ts +17 -0
  408. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/ntp-short.ts +67 -0
  409. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/serial-number.ts +49 -0
  410. package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/signalling.ts +860 -0
  411. package/node_modules/@blockcast/mmt-fec/package.json +79 -0
  412. package/node_modules/@blockcast/mmt-fec/src/block-manager.ts +371 -0
  413. package/node_modules/@blockcast/mmt-fec/src/block-processor.ts +360 -0
  414. package/node_modules/@blockcast/mmt-fec/src/cmaf-recovery.ts +127 -0
  415. package/node_modules/@blockcast/mmt-fec/src/cmaf-symbols.ts +68 -0
  416. package/node_modules/@blockcast/mmt-fec/src/fec-block-mapper.ts +225 -0
  417. package/node_modules/@blockcast/mmt-fec/src/index.ts +93 -0
  418. package/node_modules/@blockcast/mmt-fec/src/loc-symbols.ts +34 -0
  419. package/node_modules/@blockcast/mmt-fec/src/oti.ts +463 -0
  420. package/node_modules/@blockcast/mmt-fec/src/reorder-buffer.ts +101 -0
  421. package/node_modules/@blockcast/mmt-fec/src/repair-group.ts +195 -0
  422. package/node_modules/@blockcast/mmt-manifest-verify/dist/.build-stamp +0 -0
  423. package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.d.ts +28 -0
  424. package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.d.ts.map +1 -0
  425. package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.js +128 -0
  426. package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.js.map +1 -0
  427. package/node_modules/@blockcast/mmt-manifest-verify/dist/index.d.ts +4 -0
  428. package/node_modules/@blockcast/mmt-manifest-verify/dist/index.d.ts.map +1 -0
  429. package/node_modules/@blockcast/mmt-manifest-verify/dist/index.js +4 -0
  430. package/node_modules/@blockcast/mmt-manifest-verify/dist/index.js.map +1 -0
  431. package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.d.ts +37 -0
  432. package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.d.ts.map +1 -0
  433. package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.js +179 -0
  434. package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.js.map +1 -0
  435. package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.d.ts +99 -0
  436. package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.d.ts.map +1 -0
  437. package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.js +492 -0
  438. package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.js.map +1 -0
  439. package/node_modules/@blockcast/mmt-manifest-verify/package.json +45 -0
  440. package/node_modules/@blockcast/mmt-manifest-verify/src/admission.ts +171 -0
  441. package/node_modules/@blockcast/mmt-manifest-verify/src/index.ts +3 -0
  442. package/node_modules/@blockcast/mmt-manifest-verify/src/source-auth.ts +230 -0
  443. package/node_modules/@blockcast/mmt-manifest-verify/src/verifier.ts +669 -0
  444. package/node_modules/@noble/hashes/LICENSE +21 -0
  445. package/node_modules/@noble/hashes/README.md +521 -0
  446. package/node_modules/@noble/hashes/_assert.d.ts +17 -0
  447. package/node_modules/@noble/hashes/_assert.d.ts.map +1 -0
  448. package/node_modules/@noble/hashes/_assert.js +18 -0
  449. package/node_modules/@noble/hashes/_assert.js.map +1 -0
  450. package/node_modules/@noble/hashes/_blake.d.ts +14 -0
  451. package/node_modules/@noble/hashes/_blake.d.ts.map +1 -0
  452. package/node_modules/@noble/hashes/_blake.js +50 -0
  453. package/node_modules/@noble/hashes/_blake.js.map +1 -0
  454. package/node_modules/@noble/hashes/_md.d.ts +51 -0
  455. package/node_modules/@noble/hashes/_md.d.ts.map +1 -0
  456. package/node_modules/@noble/hashes/_md.js +162 -0
  457. package/node_modules/@noble/hashes/_md.js.map +1 -0
  458. package/node_modules/@noble/hashes/_u64.d.ts +55 -0
  459. package/node_modules/@noble/hashes/_u64.d.ts.map +1 -0
  460. package/node_modules/@noble/hashes/_u64.js +90 -0
  461. package/node_modules/@noble/hashes/_u64.js.map +1 -0
  462. package/node_modules/@noble/hashes/argon2.d.ts +32 -0
  463. package/node_modules/@noble/hashes/argon2.d.ts.map +1 -0
  464. package/node_modules/@noble/hashes/argon2.js +401 -0
  465. package/node_modules/@noble/hashes/argon2.js.map +1 -0
  466. package/node_modules/@noble/hashes/blake1.d.ts +106 -0
  467. package/node_modules/@noble/hashes/blake1.d.ts.map +1 -0
  468. package/node_modules/@noble/hashes/blake1.js +459 -0
  469. package/node_modules/@noble/hashes/blake1.js.map +1 -0
  470. package/node_modules/@noble/hashes/blake2.d.ts +116 -0
  471. package/node_modules/@noble/hashes/blake2.d.ts.map +1 -0
  472. package/node_modules/@noble/hashes/blake2.js +420 -0
  473. package/node_modules/@noble/hashes/blake2.js.map +1 -0
  474. package/node_modules/@noble/hashes/blake2b.d.ts +11 -0
  475. package/node_modules/@noble/hashes/blake2b.d.ts.map +1 -0
  476. package/node_modules/@noble/hashes/blake2b.js +14 -0
  477. package/node_modules/@noble/hashes/blake2b.js.map +1 -0
  478. package/node_modules/@noble/hashes/blake2s.d.ts +20 -0
  479. package/node_modules/@noble/hashes/blake2s.d.ts.map +1 -0
  480. package/node_modules/@noble/hashes/blake2s.js +24 -0
  481. package/node_modules/@noble/hashes/blake2s.js.map +1 -0
  482. package/node_modules/@noble/hashes/blake3.d.ts +54 -0
  483. package/node_modules/@noble/hashes/blake3.d.ts.map +1 -0
  484. package/node_modules/@noble/hashes/blake3.js +255 -0
  485. package/node_modules/@noble/hashes/blake3.js.map +1 -0
  486. package/node_modules/@noble/hashes/crypto.d.ts +2 -0
  487. package/node_modules/@noble/hashes/crypto.d.ts.map +1 -0
  488. package/node_modules/@noble/hashes/crypto.js +5 -0
  489. package/node_modules/@noble/hashes/crypto.js.map +1 -0
  490. package/node_modules/@noble/hashes/cryptoNode.d.ts +2 -0
  491. package/node_modules/@noble/hashes/cryptoNode.d.ts.map +1 -0
  492. package/node_modules/@noble/hashes/cryptoNode.js +18 -0
  493. package/node_modules/@noble/hashes/cryptoNode.js.map +1 -0
  494. package/node_modules/@noble/hashes/eskdf.d.ts +47 -0
  495. package/node_modules/@noble/hashes/eskdf.d.ts.map +1 -0
  496. package/node_modules/@noble/hashes/eskdf.js +166 -0
  497. package/node_modules/@noble/hashes/eskdf.js.map +1 -0
  498. package/node_modules/@noble/hashes/esm/_assert.d.ts +17 -0
  499. package/node_modules/@noble/hashes/esm/_assert.d.ts.map +1 -0
  500. package/node_modules/@noble/hashes/esm/_assert.js +15 -0
  501. package/node_modules/@noble/hashes/esm/_assert.js.map +1 -0
  502. package/node_modules/@noble/hashes/esm/_blake.d.ts +14 -0
  503. package/node_modules/@noble/hashes/esm/_blake.d.ts.map +1 -0
  504. package/node_modules/@noble/hashes/esm/_blake.js +45 -0
  505. package/node_modules/@noble/hashes/esm/_blake.js.map +1 -0
  506. package/node_modules/@noble/hashes/esm/_md.d.ts +51 -0
  507. package/node_modules/@noble/hashes/esm/_md.d.ts.map +1 -0
  508. package/node_modules/@noble/hashes/esm/_md.js +155 -0
  509. package/node_modules/@noble/hashes/esm/_md.js.map +1 -0
  510. package/node_modules/@noble/hashes/esm/_u64.d.ts +55 -0
  511. package/node_modules/@noble/hashes/esm/_u64.d.ts.map +1 -0
  512. package/node_modules/@noble/hashes/esm/_u64.js +67 -0
  513. package/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
  514. package/node_modules/@noble/hashes/esm/argon2.d.ts +32 -0
  515. package/node_modules/@noble/hashes/esm/argon2.d.ts.map +1 -0
  516. package/node_modules/@noble/hashes/esm/argon2.js +392 -0
  517. package/node_modules/@noble/hashes/esm/argon2.js.map +1 -0
  518. package/node_modules/@noble/hashes/esm/blake1.d.ts +106 -0
  519. package/node_modules/@noble/hashes/esm/blake1.d.ts.map +1 -0
  520. package/node_modules/@noble/hashes/esm/blake1.js +452 -0
  521. package/node_modules/@noble/hashes/esm/blake1.js.map +1 -0
  522. package/node_modules/@noble/hashes/esm/blake2.d.ts +116 -0
  523. package/node_modules/@noble/hashes/esm/blake2.d.ts.map +1 -0
  524. package/node_modules/@noble/hashes/esm/blake2.js +413 -0
  525. package/node_modules/@noble/hashes/esm/blake2.js.map +1 -0
  526. package/node_modules/@noble/hashes/esm/blake2b.d.ts +11 -0
  527. package/node_modules/@noble/hashes/esm/blake2b.d.ts.map +1 -0
  528. package/node_modules/@noble/hashes/esm/blake2b.js +11 -0
  529. package/node_modules/@noble/hashes/esm/blake2b.js.map +1 -0
  530. package/node_modules/@noble/hashes/esm/blake2s.d.ts +20 -0
  531. package/node_modules/@noble/hashes/esm/blake2s.d.ts.map +1 -0
  532. package/node_modules/@noble/hashes/esm/blake2s.js +21 -0
  533. package/node_modules/@noble/hashes/esm/blake2s.js.map +1 -0
  534. package/node_modules/@noble/hashes/esm/blake3.d.ts +54 -0
  535. package/node_modules/@noble/hashes/esm/blake3.d.ts.map +1 -0
  536. package/node_modules/@noble/hashes/esm/blake3.js +251 -0
  537. package/node_modules/@noble/hashes/esm/blake3.js.map +1 -0
  538. package/node_modules/@noble/hashes/esm/crypto.d.ts +2 -0
  539. package/node_modules/@noble/hashes/esm/crypto.d.ts.map +1 -0
  540. package/node_modules/@noble/hashes/esm/crypto.js +2 -0
  541. package/node_modules/@noble/hashes/esm/crypto.js.map +1 -0
  542. package/node_modules/@noble/hashes/esm/cryptoNode.d.ts +2 -0
  543. package/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +1 -0
  544. package/node_modules/@noble/hashes/esm/cryptoNode.js +15 -0
  545. package/node_modules/@noble/hashes/esm/cryptoNode.js.map +1 -0
  546. package/node_modules/@noble/hashes/esm/eskdf.d.ts +47 -0
  547. package/node_modules/@noble/hashes/esm/eskdf.d.ts.map +1 -0
  548. package/node_modules/@noble/hashes/esm/eskdf.js +160 -0
  549. package/node_modules/@noble/hashes/esm/eskdf.js.map +1 -0
  550. package/node_modules/@noble/hashes/esm/hkdf.d.ts +36 -0
  551. package/node_modules/@noble/hashes/esm/hkdf.d.ts.map +1 -0
  552. package/node_modules/@noble/hashes/esm/hkdf.js +82 -0
  553. package/node_modules/@noble/hashes/esm/hkdf.js.map +1 -0
  554. package/node_modules/@noble/hashes/esm/hmac.d.ts +35 -0
  555. package/node_modules/@noble/hashes/esm/hmac.d.ts.map +1 -0
  556. package/node_modules/@noble/hashes/esm/hmac.js +86 -0
  557. package/node_modules/@noble/hashes/esm/hmac.js.map +1 -0
  558. package/node_modules/@noble/hashes/esm/index.d.ts +2 -0
  559. package/node_modules/@noble/hashes/esm/index.d.ts.map +1 -0
  560. package/node_modules/@noble/hashes/esm/index.js +33 -0
  561. package/node_modules/@noble/hashes/esm/index.js.map +1 -0
  562. package/node_modules/@noble/hashes/esm/legacy.d.ts +71 -0
  563. package/node_modules/@noble/hashes/esm/legacy.d.ts.map +1 -0
  564. package/node_modules/@noble/hashes/esm/legacy.js +281 -0
  565. package/node_modules/@noble/hashes/esm/legacy.js.map +1 -0
  566. package/node_modules/@noble/hashes/esm/package.json +10 -0
  567. package/node_modules/@noble/hashes/esm/pbkdf2.d.ts +23 -0
  568. package/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +1 -0
  569. package/node_modules/@noble/hashes/esm/pbkdf2.js +97 -0
  570. package/node_modules/@noble/hashes/esm/pbkdf2.js.map +1 -0
  571. package/node_modules/@noble/hashes/esm/ripemd160.d.ts +13 -0
  572. package/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +1 -0
  573. package/node_modules/@noble/hashes/esm/ripemd160.js +13 -0
  574. package/node_modules/@noble/hashes/esm/ripemd160.js.map +1 -0
  575. package/node_modules/@noble/hashes/esm/scrypt.d.ts +34 -0
  576. package/node_modules/@noble/hashes/esm/scrypt.d.ts.map +1 -0
  577. package/node_modules/@noble/hashes/esm/scrypt.js +228 -0
  578. package/node_modules/@noble/hashes/esm/scrypt.js.map +1 -0
  579. package/node_modules/@noble/hashes/esm/sha1.d.ts +11 -0
  580. package/node_modules/@noble/hashes/esm/sha1.d.ts.map +1 -0
  581. package/node_modules/@noble/hashes/esm/sha1.js +11 -0
  582. package/node_modules/@noble/hashes/esm/sha1.js.map +1 -0
  583. package/node_modules/@noble/hashes/esm/sha2.d.ts +159 -0
  584. package/node_modules/@noble/hashes/esm/sha2.d.ts.map +1 -0
  585. package/node_modules/@noble/hashes/esm/sha2.js +375 -0
  586. package/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
  587. package/node_modules/@noble/hashes/esm/sha256.d.ts +20 -0
  588. package/node_modules/@noble/hashes/esm/sha256.d.ts.map +1 -0
  589. package/node_modules/@noble/hashes/esm/sha256.js +20 -0
  590. package/node_modules/@noble/hashes/esm/sha256.js.map +1 -0
  591. package/node_modules/@noble/hashes/esm/sha3-addons.d.ts +142 -0
  592. package/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +1 -0
  593. package/node_modules/@noble/hashes/esm/sha3-addons.js +393 -0
  594. package/node_modules/@noble/hashes/esm/sha3-addons.js.map +1 -0
  595. package/node_modules/@noble/hashes/esm/sha3.d.ts +53 -0
  596. package/node_modules/@noble/hashes/esm/sha3.d.ts.map +1 -0
  597. package/node_modules/@noble/hashes/esm/sha3.js +234 -0
  598. package/node_modules/@noble/hashes/esm/sha3.js.map +1 -0
  599. package/node_modules/@noble/hashes/esm/sha512.d.ts +26 -0
  600. package/node_modules/@noble/hashes/esm/sha512.d.ts.map +1 -0
  601. package/node_modules/@noble/hashes/esm/sha512.js +26 -0
  602. package/node_modules/@noble/hashes/esm/sha512.js.map +1 -0
  603. package/node_modules/@noble/hashes/esm/utils.d.ts +161 -0
  604. package/node_modules/@noble/hashes/esm/utils.d.ts.map +1 -0
  605. package/node_modules/@noble/hashes/esm/utils.js +281 -0
  606. package/node_modules/@noble/hashes/esm/utils.js.map +1 -0
  607. package/node_modules/@noble/hashes/hkdf.d.ts +36 -0
  608. package/node_modules/@noble/hashes/hkdf.d.ts.map +1 -0
  609. package/node_modules/@noble/hashes/hkdf.js +88 -0
  610. package/node_modules/@noble/hashes/hkdf.js.map +1 -0
  611. package/node_modules/@noble/hashes/hmac.d.ts +35 -0
  612. package/node_modules/@noble/hashes/hmac.d.ts.map +1 -0
  613. package/node_modules/@noble/hashes/hmac.js +91 -0
  614. package/node_modules/@noble/hashes/hmac.js.map +1 -0
  615. package/node_modules/@noble/hashes/index.d.ts +1 -0
  616. package/node_modules/@noble/hashes/index.d.ts.map +1 -0
  617. package/node_modules/@noble/hashes/index.js +33 -0
  618. package/node_modules/@noble/hashes/index.js.map +1 -0
  619. package/node_modules/@noble/hashes/legacy.d.ts +71 -0
  620. package/node_modules/@noble/hashes/legacy.d.ts.map +1 -0
  621. package/node_modules/@noble/hashes/legacy.js +287 -0
  622. package/node_modules/@noble/hashes/legacy.js.map +1 -0
  623. package/node_modules/@noble/hashes/package.json +266 -0
  624. package/node_modules/@noble/hashes/pbkdf2.d.ts +23 -0
  625. package/node_modules/@noble/hashes/pbkdf2.d.ts.map +1 -0
  626. package/node_modules/@noble/hashes/pbkdf2.js +101 -0
  627. package/node_modules/@noble/hashes/pbkdf2.js.map +1 -0
  628. package/node_modules/@noble/hashes/ripemd160.d.ts +13 -0
  629. package/node_modules/@noble/hashes/ripemd160.d.ts.map +1 -0
  630. package/node_modules/@noble/hashes/ripemd160.js +16 -0
  631. package/node_modules/@noble/hashes/ripemd160.js.map +1 -0
  632. package/node_modules/@noble/hashes/scrypt.d.ts +34 -0
  633. package/node_modules/@noble/hashes/scrypt.d.ts.map +1 -0
  634. package/node_modules/@noble/hashes/scrypt.js +232 -0
  635. package/node_modules/@noble/hashes/scrypt.js.map +1 -0
  636. package/node_modules/@noble/hashes/sha1.d.ts +11 -0
  637. package/node_modules/@noble/hashes/sha1.d.ts.map +1 -0
  638. package/node_modules/@noble/hashes/sha1.js +14 -0
  639. package/node_modules/@noble/hashes/sha1.js.map +1 -0
  640. package/node_modules/@noble/hashes/sha2.d.ts +159 -0
  641. package/node_modules/@noble/hashes/sha2.d.ts.map +1 -0
  642. package/node_modules/@noble/hashes/sha2.js +384 -0
  643. package/node_modules/@noble/hashes/sha2.js.map +1 -0
  644. package/node_modules/@noble/hashes/sha256.d.ts +20 -0
  645. package/node_modules/@noble/hashes/sha256.d.ts.map +1 -0
  646. package/node_modules/@noble/hashes/sha256.js +23 -0
  647. package/node_modules/@noble/hashes/sha256.js.map +1 -0
  648. package/node_modules/@noble/hashes/sha3-addons.d.ts +142 -0
  649. package/node_modules/@noble/hashes/sha3-addons.d.ts.map +1 -0
  650. package/node_modules/@noble/hashes/sha3-addons.js +402 -0
  651. package/node_modules/@noble/hashes/sha3-addons.js.map +1 -0
  652. package/node_modules/@noble/hashes/sha3.d.ts +53 -0
  653. package/node_modules/@noble/hashes/sha3.d.ts.map +1 -0
  654. package/node_modules/@noble/hashes/sha3.js +239 -0
  655. package/node_modules/@noble/hashes/sha3.js.map +1 -0
  656. package/node_modules/@noble/hashes/sha512.d.ts +26 -0
  657. package/node_modules/@noble/hashes/sha512.d.ts.map +1 -0
  658. package/node_modules/@noble/hashes/sha512.js +29 -0
  659. package/node_modules/@noble/hashes/sha512.js.map +1 -0
  660. package/node_modules/@noble/hashes/src/_assert.ts +22 -0
  661. package/node_modules/@noble/hashes/src/_blake.ts +50 -0
  662. package/node_modules/@noble/hashes/src/_md.ts +176 -0
  663. package/node_modules/@noble/hashes/src/_u64.ts +91 -0
  664. package/node_modules/@noble/hashes/src/argon2.ts +497 -0
  665. package/node_modules/@noble/hashes/src/blake1.ts +534 -0
  666. package/node_modules/@noble/hashes/src/blake2.ts +486 -0
  667. package/node_modules/@noble/hashes/src/blake2b.ts +10 -0
  668. package/node_modules/@noble/hashes/src/blake2s.ts +20 -0
  669. package/node_modules/@noble/hashes/src/blake3.ts +272 -0
  670. package/node_modules/@noble/hashes/src/crypto.ts +9 -0
  671. package/node_modules/@noble/hashes/src/cryptoNode.ts +15 -0
  672. package/node_modules/@noble/hashes/src/eskdf.ts +187 -0
  673. package/node_modules/@noble/hashes/src/hkdf.ts +88 -0
  674. package/node_modules/@noble/hashes/src/hmac.ts +94 -0
  675. package/node_modules/@noble/hashes/src/index.ts +31 -0
  676. package/node_modules/@noble/hashes/src/legacy.ts +293 -0
  677. package/node_modules/@noble/hashes/src/pbkdf2.ts +122 -0
  678. package/node_modules/@noble/hashes/src/ripemd160.ts +12 -0
  679. package/node_modules/@noble/hashes/src/scrypt.ts +257 -0
  680. package/node_modules/@noble/hashes/src/sha1.ts +10 -0
  681. package/node_modules/@noble/hashes/src/sha2.ts +402 -0
  682. package/node_modules/@noble/hashes/src/sha256.ts +24 -0
  683. package/node_modules/@noble/hashes/src/sha3-addons.ts +499 -0
  684. package/node_modules/@noble/hashes/src/sha3.ts +258 -0
  685. package/node_modules/@noble/hashes/src/sha512.ts +34 -0
  686. package/node_modules/@noble/hashes/src/utils.ts +395 -0
  687. package/node_modules/@noble/hashes/utils.d.ts +161 -0
  688. package/node_modules/@noble/hashes/utils.d.ts.map +1 -0
  689. package/node_modules/@noble/hashes/utils.js +313 -0
  690. package/node_modules/@noble/hashes/utils.js.map +1 -0
  691. package/package.json +179 -8
  692. package/schemas/catalog.schema.json +357 -0
  693. package/src/align.ts +239 -0
  694. package/src/audio-init-parser.ts +189 -0
  695. package/src/audio-ring-buffer.ts +120 -0
  696. package/src/authored-timing.ts +63 -0
  697. package/src/block-policy.ts +903 -0
  698. package/src/carp-catalog.ts +1086 -0
  699. package/src/catalog-fec-params.ts +803 -0
  700. package/src/catalog-network-source.ts +74 -0
  701. package/src/catalog-validator.ts +34 -0
  702. package/src/cmaf-block-assembler.ts +1255 -0
  703. package/src/cmaf-group-batcher.ts +104 -0
  704. package/src/cmcd-producer.ts +329 -0
  705. package/src/codec-utils.ts +1984 -0
  706. package/src/conceal-timeline.ts +293 -0
  707. package/src/delivery-gap.ts +147 -0
  708. package/src/duplicate-ledger.ts +372 -0
  709. package/src/fec-codec.ts +61 -0
  710. package/src/fec-manager.ts +4241 -0
  711. package/src/fec-starvation-detector.ts +128 -0
  712. package/src/fec-state.ts +228 -0
  713. package/src/fec-worker-setup.ts +291 -0
  714. package/src/fmp4-completion.ts +47 -0
  715. package/src/fmp4-reader.ts +112 -0
  716. package/src/index.ts +592 -21
  717. package/src/iso-block-locator.ts +329 -0
  718. package/src/iso-bmff-timing.ts +813 -0
  719. package/src/loc.ts +128 -154
  720. package/src/manifest-auth-plan.ts +107 -0
  721. package/src/media-router.ts +841 -0
  722. package/src/mfu-reassembler.ts +3480 -155
  723. package/src/mfu-reassembly-policy.ts +134 -0
  724. package/src/mmtp-container-parser.ts +2406 -0
  725. package/src/mmtp-decode-pipeline.ts +406 -0
  726. package/src/mmtp-router.ts +4712 -0
  727. package/src/mmtp-to-cmaf.ts +977 -0
  728. package/src/multicast-auth-catalog.ts +340 -0
  729. package/src/multicast-input.ts +793 -0
  730. package/src/multicast-manager.ts +2895 -0
  731. package/src/multicast-transport.ts +1058 -0
  732. package/src/multicast-unwrap.ts +132 -0
  733. package/src/no-modules.ts +21 -0
  734. package/src/phase14-catalog-override.ts +336 -0
  735. package/src/repair-fetch.ts +786 -0
  736. package/src/repair-layers.ts +553 -0
  737. package/src/sample-combiner.ts +938 -0
  738. package/src/signaling.ts +78 -0
  739. package/src/source-auth.ts +1 -0
  740. package/src/switching-set-alignment.ts +109 -0
  741. package/src/timestamp-codec.ts +265 -0
  742. package/src/track-pipeline-setup.ts +205 -0
  743. package/src/track-pipeline.ts +332 -0
  744. package/src/track-session.ts +1010 -0
  745. package/src/transport-pool.ts +128 -0
  746. package/src/wasm-mfu-reassembler.ts +405 -0
  747. package/src/wasm-mmtp-container-parser.ts +23 -0
  748. package/test-vectors/align.json +199 -0
  749. package/test-vectors/catalog/README.md +123 -0
  750. package/test-vectors/catalog/negative/archive-origin-with-path.json +33 -0
  751. package/test-vectors/catalog/negative/archive-unknown-field.json +34 -0
  752. package/test-vectors/catalog/negative/fec-block-profile-missing.json +51 -0
  753. package/test-vectors/catalog/negative/fec-block-profile-retired.json +52 -0
  754. package/test-vectors/catalog/negative/fec-block-profile-unknown.json +52 -0
  755. package/test-vectors/catalog/negative/fec-enhancement-repair-removed.json +28 -0
  756. package/test-vectors/catalog/negative/fec-repair-layer-geometry.json +33 -0
  757. package/test-vectors/catalog/negative/fec-repair-layer-missing-symbols.json +31 -0
  758. package/test-vectors/catalog/negative/fec-repair-multiple-depends.json +32 -0
  759. package/test-vectors/catalog/negative/fec-repair-overlay-with-layer.json +34 -0
  760. package/test-vectors/catalog/negative/fec-repair-priority-out-of-band.json +24 -0
  761. package/test-vectors/catalog/negative/fec-repair-source-symbols-without-scope.json +33 -0
  762. package/test-vectors/catalog/negative/legacy-selection-params.json +15 -0
  763. package/test-vectors/catalog/negative/media-track-repair-layer.json +16 -0
  764. package/test-vectors/catalog/negative/missing-mmtp-fields.json +12 -0
  765. package/test-vectors/catalog/negative/multicast-auth-padded-key.json +37 -0
  766. package/test-vectors/catalog/negative/multicast-auth-reused-track-format.json +53 -0
  767. package/test-vectors/catalog/negative/multicast-auth-trailing-pad-bits.json +37 -0
  768. package/test-vectors/catalog/negative/multicast-endpoint-missing-protocol-and-source.json +24 -0
  769. package/test-vectors/catalog/negative/multicast-network-source-empty.json +44 -0
  770. package/test-vectors/catalog/negative/multicast-packet-id-signaling.json +26 -0
  771. package/test-vectors/catalog/negative/network-source-object.json +25 -0
  772. package/test-vectors/catalog/negative/raptorq-source-symbols-over-max.json +24 -0
  773. package/test-vectors/catalog/negative/raptorq-unaligned-symbol.json +27 -0
  774. package/test-vectors/catalog/negative/repair-track-legacy-shape.json +19 -0
  775. package/test-vectors/catalog/negative/track-role-empty.json +16 -0
  776. package/test-vectors/catalog/negative/track-role-non-string.json +16 -0
  777. package/test-vectors/catalog/positive/archive-origin.json +34 -0
  778. package/test-vectors/catalog/positive/fec-iso-ssbg1.json +52 -0
  779. package/test-vectors/catalog/positive/fec-layered-repair.json +106 -0
  780. package/test-vectors/catalog/positive/fec-multicast.json +53 -0
  781. package/test-vectors/catalog/positive/flat-av.json +30 -0
  782. package/test-vectors/catalog/positive/multicast-auth-rotation.json +55 -0
  783. package/test-vectors/catalog/positive/multicast-native-ssm-no-network-source.json +44 -0
  784. package/test-vectors/catalog/positive/ticks-and-mixed-timescales.json +39 -0
  785. package/test-vectors/catalog/positive/track-role.json +49 -0
  786. package/test-vectors/catalog/releases/moqcast-native-v16-v1/catalog.json +65 -0
  787. package/test-vectors/catalog/releases/moqcast-native-v16-v1.archive.sha256 +1 -0
  788. package/test-vectors/catalog-multicast-auth-v1.json +26 -0
  789. package/test-vectors/catalog-validation.json +767 -0
  790. package/test-vectors/catalog-validator-public-api.mjs +25 -0
  791. package/test-vectors/generate-source-auth-fixture.mjs +114 -0
  792. package/test-vectors/hevc-x265-repeat-headers-v1.json +40 -0
  793. package/test-vectors/source-auth-v1.json +61 -0
  794. package/test-vectors/source-contiguity-v1.json +131 -0
  795. package/test-vectors/subsample-placement-v1.json +230 -0
  796. package/dist/mmtp.d.ts +0 -73
  797. package/dist/mmtp.d.ts.map +0 -1
  798. package/dist/mmtp.js +0 -210
  799. package/dist/mmtp.js.map +0 -1
  800. package/src/mmtp.ts +0 -277
@@ -0,0 +1,637 @@
1
+ /**
2
+ * Receiver-side parsers for MMTP signalling message mode.
3
+ *
4
+ * - The MMTP payload header for signalling message mode
5
+ * (ISO/IEC 23008-1:2023 9.3.4.2, Figure 15).
6
+ * - The general signalling message format (10.2, Table 20).
7
+ * - The AL-FEC message (Annex C Table C.3 as replaced by
8
+ * ISO/IEC 23008-1:2023/Amd 1:2025; semantics C.6.3).
9
+ * - The PA message (10.3.2, Table 21) and MPT message (10.3.4, Table 23)
10
+ * with the MP table (10.3.9, Table 29), Identifier_mapping (10.6.3,
11
+ * Table 98), asset_id (10.6.2, Table 97) and MMT_general_location_info
12
+ * (10.6.1, Table 95).
13
+ *
14
+ * Every parser here is total: malformed, truncated, ambiguous or unsupported
15
+ * input yields null, never an exception. Nothing is inferred: a field the
16
+ * receiver cannot place exactly makes the whole message unparseable, because
17
+ * every later field of a sequential syntax would be misread after it.
18
+ *
19
+ * Reserved bits are ignored on receipt. The senders write them, and a
20
+ * receiver that refuses a reserved value cannot accept a conformant revision
21
+ * of the syntax that assigns it.
22
+ */
23
+ import { ALFEC_MESSAGE_ID, FEC_CODE_RAPTORQ, PACKET_TYPE_SIGNALING, parseMMTPHeader, } from './mmtp.js';
24
+ // ---------------------------------------------------------------------------
25
+ // Wire reader
26
+ // ---------------------------------------------------------------------------
27
+ /** Internal: raised by WireReader, caught at every exported parser. */
28
+ class MalformedSignalling extends Error {
29
+ }
30
+ class WireReader {
31
+ #bytes;
32
+ #end;
33
+ #offset;
34
+ constructor(bytes, start = 0, end = bytes.length) {
35
+ this.#bytes = bytes;
36
+ this.#offset = start;
37
+ this.#end = end;
38
+ }
39
+ get offset() {
40
+ return this.#offset;
41
+ }
42
+ get remaining() {
43
+ return this.#end - this.#offset;
44
+ }
45
+ #take(length) {
46
+ if (length < 0 || length > this.remaining)
47
+ throw new MalformedSignalling('truncated');
48
+ const at = this.#offset;
49
+ this.#offset += length;
50
+ return at;
51
+ }
52
+ u8() {
53
+ return this.#bytes[this.#take(1)];
54
+ }
55
+ u16() {
56
+ const at = this.#take(2);
57
+ return (this.#bytes[at] << 8) | this.#bytes[at + 1];
58
+ }
59
+ u24() {
60
+ const at = this.#take(3);
61
+ return (this.#bytes[at] << 16) | (this.#bytes[at + 1] << 8) | this.#bytes[at + 2];
62
+ }
63
+ u32() {
64
+ const at = this.#take(4);
65
+ return ((this.#bytes[at] << 24) | (this.#bytes[at + 1] << 16) |
66
+ (this.#bytes[at + 2] << 8) | this.#bytes[at + 3]) >>> 0;
67
+ }
68
+ /** A copy, so a parsed message never aliases a reused packet buffer. */
69
+ bytes(length) {
70
+ const at = this.#take(length);
71
+ return this.#bytes.slice(at, at + length);
72
+ }
73
+ /** Throw unless every byte up to the end bound was consumed. */
74
+ expectEnd() {
75
+ if (this.remaining !== 0)
76
+ throw new MalformedSignalling('trailing bytes');
77
+ }
78
+ }
79
+ function fail(reason) {
80
+ throw new MalformedSignalling(reason);
81
+ }
82
+ /** Run a parser, turning only our own malformed-input signal into null. */
83
+ function total(parse) {
84
+ try {
85
+ return parse();
86
+ }
87
+ catch (error) {
88
+ if (error instanceof MalformedSignalling)
89
+ return null;
90
+ throw error;
91
+ }
92
+ }
93
+ /** f_i (Table 19): payload contains one or more complete signalling messages. */
94
+ export const SIGNALLING_FRAGMENTATION_COMPLETE = 0b00;
95
+ /**
96
+ * Split the payload of an MMTP signalling packet into its complete
97
+ * signalling messages.
98
+ *
99
+ * Returns null when the packet is not a well-formed, unprotected (FEC_type 0)
100
+ * signalling packet, or when it carries a fragment (f_i != 00): reassembly
101
+ * across packets is not implemented, and a fragment is not a message.
102
+ */
103
+ export function parseSignallingPayload(mmtpPacket) {
104
+ let header;
105
+ try {
106
+ header = parseMMTPHeader(mmtpPacket);
107
+ }
108
+ catch {
109
+ return null;
110
+ }
111
+ if (header.packetType !== PACKET_TYPE_SIGNALING || header.fecType !== 0)
112
+ return null;
113
+ const payload = mmtpPacket.subarray(header.headerLength);
114
+ return total(() => splitSignallingPayload(payload));
115
+ }
116
+ function splitSignallingPayload(payload) {
117
+ if (payload.length < 2)
118
+ fail('short signalling payload');
119
+ const reader = new WireReader(payload);
120
+ const flags = reader.u8();
121
+ const fragmentation = flags >> 6;
122
+ const lengthIs32Bits = ((flags >> 1) & 1) === 1; // H
123
+ const aggregated = (flags & 1) === 1; // A
124
+ const fragmentCounter = reader.u8();
125
+ if (fragmentation !== SIGNALLING_FRAGMENTATION_COMPLETE)
126
+ fail('fragmented signalling message');
127
+ // frag_counter counts the fragments that follow this one; a complete
128
+ // message has none, and an aggregated payload "shall" carry 0.
129
+ if (fragmentCounter !== 0)
130
+ fail('frag_counter on a complete message');
131
+ if (!aggregated) {
132
+ // A=0: exactly one message and no MSG_length field (H is meaningless).
133
+ if (reader.remaining === 0)
134
+ fail('empty signalling payload');
135
+ return { form: 'iso-9.3.4.2', messages: [payload.subarray(reader.offset)] };
136
+ }
137
+ const messages = [];
138
+ while (reader.remaining > 0) {
139
+ const length = lengthIs32Bits ? reader.u32() : reader.u16();
140
+ if (length === 0)
141
+ fail('zero MSG_length');
142
+ const start = reader.offset;
143
+ reader.bytes(length); // bounds check
144
+ messages.push(payload.subarray(start, start + length));
145
+ }
146
+ if (messages.length === 0)
147
+ fail('aggregated payload with no message');
148
+ return { form: 'iso-9.3.4.2', messages };
149
+ }
150
+ // ---------------------------------------------------------------------------
151
+ // 10.2 — general signalling message format
152
+ // ---------------------------------------------------------------------------
153
+ export const PA_MESSAGE_ID = 0x0000;
154
+ export const MPI_MESSAGE_ID_FIRST = 0x0001;
155
+ export const MPI_MESSAGE_ID_LAST = 0x0010;
156
+ export const MPT_MESSAGE_ID_FIRST = 0x0011;
157
+ /** MPT message carrying the complete MP table (Table 101). */
158
+ export const MPT_MESSAGE_ID_COMPLETE = 0x0020;
159
+ /**
160
+ * Whether a message's `length` field is 32 bits (Table 20: PA and MPI
161
+ * messages; Table 101: the 0x7000-0x7FFF range "32-bit length message").
162
+ */
163
+ export function signallingMessageHas32BitLength(messageId) {
164
+ return messageId === PA_MESSAGE_ID ||
165
+ (messageId >= MPI_MESSAGE_ID_FIRST && messageId <= MPI_MESSAGE_ID_LAST) ||
166
+ (messageId >= 0x7000 && messageId <= 0x7fff);
167
+ }
168
+ /**
169
+ * Read the general header (Table 20) of a complete message and check that
170
+ * `length` covers exactly the rest of the message.
171
+ */
172
+ function readMessageHeader(message) {
173
+ const reader = new WireReader(message);
174
+ const messageId = reader.u16();
175
+ const version = reader.u8();
176
+ const length = signallingMessageHas32BitLength(messageId) ? reader.u32() : reader.u16();
177
+ // "The value 0 is not valid for this field" (C.6.3, 10.3.2.3, 10.3.4.3).
178
+ if (length === 0 || length !== reader.remaining)
179
+ fail('message length mismatch');
180
+ return { reader, messageId, version };
181
+ }
182
+ // ---------------------------------------------------------------------------
183
+ // Annex C Table C.3 (Amd 1:2025) — AL-FEC message
184
+ // ---------------------------------------------------------------------------
185
+ /** fec_coding_structure values (Table C.8 as replaced by Amd 1:2025). */
186
+ export const FEC_CODING_STRUCTURE_NONE = 0b0000;
187
+ export const FEC_CODING_STRUCTURE_ONE_STAGE = 0b0001;
188
+ export const FEC_CODING_STRUCTURE_TWO_STAGE = 0b0010;
189
+ export const FEC_CODING_STRUCTURE_LAYER_AWARE = 0b0011;
190
+ export const FEC_CODING_STRUCTURE_ADAPTIVE = 0b0100;
191
+ /** ssbg_mode values (Table C.5). b11 is reserved. */
192
+ export const SSBG_MODE_0 = 0b00;
193
+ export const SSBG_MODE_1 = 0b01;
194
+ export const SSBG_MODE_2 = 0b10;
195
+ function readPrivateField(reader) {
196
+ const head = reader.u8();
197
+ return { privateFlag: (head >> 7), data: reader.bytes(head & 0x7f) };
198
+ }
199
+ function readRepairFlowTail(reader, repairFlowId, fecCodeId, privateField) {
200
+ const maximumK = reader.u24();
201
+ const maximumP = reader.u24();
202
+ const protectionWindowTime = reader.u32();
203
+ const protectionWindowSize = reader.u32();
204
+ return {
205
+ repairFlowId,
206
+ fecCodeId,
207
+ ...(privateField ? { privateField } : {}),
208
+ maximumK,
209
+ maximumP,
210
+ protectionWindowTime,
211
+ protectionWindowSize,
212
+ };
213
+ }
214
+ function readRepairFlow(reader, privateFecFlag) {
215
+ const repairFlowId = reader.u16();
216
+ const fecCodeId = reader.u8();
217
+ const privateField = privateFecFlag ? readPrivateField(reader) : undefined;
218
+ return readRepairFlowTail(reader, repairFlowId, fecCodeId, privateField);
219
+ }
220
+ function readFecFlow(reader, privateFecFlag) {
221
+ const fecFlowId = reader.u8();
222
+ const sourceFlowId = reader.u8();
223
+ const numberOfAssets = reader.u8();
224
+ if (numberOfAssets === 0)
225
+ fail('FEC flow with no asset');
226
+ const packetIds = [];
227
+ for (let i = 0; i < numberOfAssets; i++)
228
+ packetIds.push(reader.u16());
229
+ const coding = reader.u8();
230
+ const fecCodingStructure = coding >> 4;
231
+ const ssbgMode = (coding >> 2) & 0b11;
232
+ const ffsrptsFlag = ((coding >> 1) & 1);
233
+ const fecPayloadIdMode = (coding & 1);
234
+ if (ssbgMode === 0b11)
235
+ fail('reserved ssbg_mode');
236
+ const repairSymbolSize = reader.u16();
237
+ const flow = {
238
+ fecFlowId,
239
+ sourceFlowId,
240
+ packetIds,
241
+ fecCodingStructure,
242
+ ssbgMode,
243
+ ffsrptsFlag,
244
+ fecPayloadIdMode,
245
+ repairSymbolSize,
246
+ repairFlows: [],
247
+ };
248
+ if (ssbgMode === SSBG_MODE_2) {
249
+ flow.ssbgMode2 = {
250
+ numRepairSymbolPerPacket: reader.u16(),
251
+ numSymbolElementPerSourceSymbol: reader.u16(),
252
+ };
253
+ }
254
+ switch (fecCodingStructure) {
255
+ case FEC_CODING_STRUCTURE_NONE:
256
+ break;
257
+ case FEC_CODING_STRUCTURE_ONE_STAGE:
258
+ flow.repairFlows.push(readRepairFlow(reader, privateFecFlag));
259
+ break;
260
+ case FEC_CODING_STRUCTURE_TWO_STAGE: {
261
+ flow.numSubBlockPerSourceBlock = reader.u8();
262
+ const numberOfParityFlows = reader.u8();
263
+ for (let k = 0; k < numberOfParityFlows; k++) {
264
+ flow.repairFlows.push(readRepairFlow(reader, privateFecFlag));
265
+ }
266
+ break;
267
+ }
268
+ case FEC_CODING_STRUCTURE_LAYER_AWARE: {
269
+ const numberOfLayers = reader.u8();
270
+ const fecCodeId = reader.u8();
271
+ const privateField = privateFecFlag ? readPrivateField(reader) : undefined;
272
+ for (let l = 0; l < numberOfLayers; l++) {
273
+ flow.repairFlows.push(readRepairFlowTail(reader, reader.u16(), fecCodeId, privateField));
274
+ }
275
+ break;
276
+ }
277
+ default:
278
+ // 0100 (adaptive FEC, Amd 1:2025): the published table leaves the
279
+ // width of number_of__class unstated, so its flows cannot be placed
280
+ // exactly. 0101-1111 are reserved. Either way every later flow would
281
+ // be misread, so the whole message is refused.
282
+ fail(`unsupported fec_coding_structure ${fecCodingStructure}`);
283
+ }
284
+ return flow;
285
+ }
286
+ /**
287
+ * Parse a complete AL-FEC message (Table C.3, Amd 1:2025), starting at its
288
+ * message_id. Every FEC flow, every asset packet_id and every
289
+ * coding-structure-conditional field is returned.
290
+ */
291
+ export function parseAlFecMessageBody(message) {
292
+ return total(() => {
293
+ const { reader, messageId, version } = readMessageHeader(message);
294
+ if (messageId !== ALFEC_MESSAGE_ID)
295
+ return null;
296
+ const flags = reader.u8();
297
+ const fecFlag = (flags >> 7);
298
+ const privateFecFlag = ((flags >> 6) & 1);
299
+ if (fecFlag === 0) {
300
+ // "If every source flows are delivered without AL-FEC protection, all
301
+ // the remaining message is not to be delivered" (C.6.3).
302
+ reader.expectEnd();
303
+ return { version, fecFlag, privateFecFlag, flows: [] };
304
+ }
305
+ const descriptorLength = reader.u16();
306
+ if (descriptorLength === 0 || descriptorLength !== reader.remaining) {
307
+ fail('length_of_fec_flow_descriptor mismatch');
308
+ }
309
+ const numberOfFecFlows = reader.u8();
310
+ if (numberOfFecFlows === 0)
311
+ fail('fec_flag=1 with no FEC flow');
312
+ const flows = [];
313
+ for (let i = 0; i < numberOfFecFlows; i++)
314
+ flows.push(readFecFlow(reader, privateFecFlag === 1));
315
+ reader.expectEnd();
316
+ return { version, fecFlag, privateFecFlag, flows };
317
+ });
318
+ }
319
+ /**
320
+ * Parse the AL-FEC message carried by a full MMTP signalling packet (a
321
+ * 9.3.4.2 payload, see SignallingPayloadForm). Returns null when the packet
322
+ * carries no AL-FEC message, more than one, or a malformed one.
323
+ */
324
+ export function parseAlFecMessage(mmtpPacket) {
325
+ const packet = parseSignallingPacket(mmtpPacket);
326
+ if (!packet)
327
+ return null;
328
+ const alFec = packet.messages.filter((message) => message.kind === 'al-fec');
329
+ if (alFec.length !== 1)
330
+ return null;
331
+ return { ...alFec[0].message, payloadForm: packet.payloadForm };
332
+ }
333
+ const RAPTORQ_PRIVATE_FIELD_LENGTH = 13;
334
+ const RAPTORQ_MAX_SOURCE_SYMBOLS = 56_403;
335
+ const REPAIR_SYMBOL_ID_MAX = 0x00ff_ffff;
336
+ function canonicalRaptorQOtiK(oti, repairSymbolSize) {
337
+ if (oti.length !== 12 || oti[5] !== 0)
338
+ return null;
339
+ const transferLength = (oti[0] * 0x1_0000_0000) +
340
+ (((oti[1] << 24) | (oti[2] << 16) | (oti[3] << 8) | oti[4]) >>> 0);
341
+ const symbolSize = (oti[6] << 8) | oti[7];
342
+ const sourceBlocks = oti[8];
343
+ const subBlocks = (oti[9] << 8) | oti[10];
344
+ const alignment = oti[11];
345
+ if (!Number.isSafeInteger(transferLength) || transferLength <= 0 ||
346
+ symbolSize !== repairSymbolSize || symbolSize === 0 || symbolSize % 8 !== 0 ||
347
+ sourceBlocks !== 1 || subBlocks !== 1 || alignment !== 8 ||
348
+ transferLength % symbolSize !== 0) {
349
+ return null;
350
+ }
351
+ const k = transferLength / symbolSize;
352
+ return Number.isInteger(k) && k >= 1 && k <= RAPTORQ_MAX_SOURCE_SYMBOLS ? k : null;
353
+ }
354
+ /**
355
+ * Validate one parsed FEC flow against the Blockcast one-stage RaptorQ
356
+ * profile and return its decoder geometry, or null when the flow is outside
357
+ * the profile. Nothing is inferred: K comes from the OTI and must equal
358
+ * maximum_k_for_repair_flow.
359
+ *
360
+ * The profile is `iso-ssbg1-v1`, whose AL-FEC coding byte is 0x14
361
+ * (draft-ramadan-moq-fec §7.3; ISO/IEC 23008-1 Table C.3 as replaced by
362
+ * Amd 1:2025): one-stage, ssbg_mode1, ffsrpts_flag 0, fec_payload_id_mode 0.
363
+ * 0x15 is accepted too: its low bit is fec_payload_id_mode 1 under Amd
364
+ * 1:2025 but reserved "1" in the unamended 2023 Table C.3, so a 2023 sender
365
+ * of the same profile emits it. No later field depends on the bit, and each
366
+ * source packet's FEC_type says whether it carries a Source FEC Payload ID,
367
+ * so the bit is reported, not interpreted (BLO-35597 N1). Any other coding
368
+ * byte is refused here, though `parseAlFecMessageBody` still reports it:
369
+ * ssbg_mode0 (0x10/0x11, the retired `k-padded-v1` wire) carries no length
370
+ * field; ffsrpts_flag=1 changes the source/repair packet trailer layout.
371
+ */
372
+ export function alFecRaptorQFlowConfig(flow) {
373
+ if (flow.fecCodingStructure !== FEC_CODING_STRUCTURE_ONE_STAGE || flow.repairFlows.length !== 1)
374
+ return null;
375
+ if (flow.ssbgMode !== SSBG_MODE_1)
376
+ return null;
377
+ if (flow.ffsrptsFlag !== 0)
378
+ return null;
379
+ const repair = flow.repairFlows[0];
380
+ if (repair.fecCodeId !== FEC_CODE_RAPTORQ)
381
+ return null;
382
+ const privateField = repair.privateField;
383
+ if (!privateField || privateField.privateFlag !== 1 ||
384
+ privateField.data.length !== RAPTORQ_PRIVATE_FIELD_LENGTH) {
385
+ return null;
386
+ }
387
+ const oti = privateField.data.slice(0, 12);
388
+ const interleaveDepth = privateField.data[12];
389
+ const otiK = canonicalRaptorQOtiK(oti, flow.repairSymbolSize);
390
+ if (otiK === null || interleaveDepth === 0)
391
+ return null;
392
+ if (repair.maximumK !== otiK || repair.maximumP === 0 ||
393
+ repair.maximumK + repair.maximumP - 1 > REPAIR_SYMBOL_ID_MAX) {
394
+ return null;
395
+ }
396
+ return {
397
+ sourcePacketIds: [...flow.packetIds],
398
+ repairFlowId: repair.repairFlowId,
399
+ ssbgMode: flow.ssbgMode,
400
+ fecPayloadIdMode: flow.fecPayloadIdMode,
401
+ repairSymbolSize: flow.repairSymbolSize,
402
+ maximumK: repair.maximumK,
403
+ maximumP: repair.maximumP,
404
+ interleaveDepth,
405
+ oti,
406
+ protectionWindowTime: repair.protectionWindowTime,
407
+ protectionWindowSize: repair.protectionWindowSize,
408
+ };
409
+ }
410
+ /**
411
+ * MMT_general_location_info() for an Asset location. "Only the value of
412
+ * location_type between 0x00 and 0x06 shall be used for an Asset location"
413
+ * (10.3.9.3), so any other value is refused rather than skipped: the
414
+ * remaining types have their own lengths, and a reserved one has none.
415
+ */
416
+ function readAssetLocation(reader) {
417
+ const locationType = reader.u8();
418
+ switch (locationType) {
419
+ case 0x00:
420
+ return { locationType, packetId: reader.u16() };
421
+ case 0x01:
422
+ case 0x02: {
423
+ const addressLength = locationType === 0x01 ? 4 : 16;
424
+ const srcAddress = reader.bytes(addressLength);
425
+ const dstAddress = reader.bytes(addressLength);
426
+ const dstPort = reader.u16();
427
+ return { locationType, srcAddress, dstAddress, dstPort, packetId: reader.u16() };
428
+ }
429
+ case 0x03: {
430
+ const networkId = reader.u16();
431
+ const transportStreamId = reader.u16();
432
+ return { locationType, networkId, transportStreamId, mpeg2Pid: reader.u16() & 0x1fff };
433
+ }
434
+ case 0x04: {
435
+ const srcAddress = reader.bytes(16);
436
+ const dstAddress = reader.bytes(16);
437
+ const dstPort = reader.u16();
438
+ return { locationType, srcAddress, dstAddress, dstPort, mpeg2Pid: reader.u16() & 0x1fff };
439
+ }
440
+ case 0x05:
441
+ return { locationType, url: reader.bytes(reader.u8()) };
442
+ case 0x06:
443
+ return { locationType, data: reader.bytes(reader.u16()) };
444
+ default:
445
+ fail(`location_type ${locationType} is not an Asset location`);
446
+ }
447
+ }
448
+ function readIdentifierMapping(reader) {
449
+ const identifierType = reader.u8();
450
+ switch (identifierType) {
451
+ case 0x00: {
452
+ const assetIdScheme = reader.u32();
453
+ return { identifierType, assetIdScheme, assetId: reader.bytes(reader.u32()) };
454
+ }
455
+ case 0x01: {
456
+ const urls = [];
457
+ const urlCount = reader.u16();
458
+ for (let i = 0; i < urlCount; i++)
459
+ urls.push(reader.bytes(reader.u16()));
460
+ return { identifierType, urls };
461
+ }
462
+ case 0x02:
463
+ return { identifierType, regex: reader.bytes(reader.u16()) };
464
+ case 0x03:
465
+ return { identifierType, representationId: reader.bytes(reader.u16()) };
466
+ default:
467
+ return { identifierType, privateIdentifier: reader.bytes(reader.u16()) };
468
+ }
469
+ }
470
+ // ---------------------------------------------------------------------------
471
+ // 10.3.9 — MP table; 10.3.2 PA message; 10.3.4 MPT message
472
+ // ---------------------------------------------------------------------------
473
+ /** table_id range of the MP table (Table 102): subset 0..14, then complete. */
474
+ export const MP_TABLE_ID_SUBSET_0 = 0x11;
475
+ export const MP_TABLE_ID_COMPLETE = 0x20;
476
+ export const MPI_TABLE_ID_FIRST = 0x01;
477
+ export const MPI_TABLE_ID_LAST = 0x10;
478
+ function readMpTable(reader) {
479
+ const tableId = reader.u8();
480
+ if (tableId < MP_TABLE_ID_SUBSET_0 || tableId > MP_TABLE_ID_COMPLETE)
481
+ fail('not an MP table');
482
+ const version = reader.u8();
483
+ const length = reader.u16();
484
+ if (length === 0)
485
+ fail('zero MP table length');
486
+ const table = new WireReader(reader.bytes(length));
487
+ const mpTableMode = table.u8() & 0b11;
488
+ const result = { tableId, version, mpTableMode, assets: [] };
489
+ if (tableId === MP_TABLE_ID_COMPLETE || tableId === MP_TABLE_ID_SUBSET_0) {
490
+ result.packageId = table.bytes(table.u8());
491
+ result.descriptors = table.bytes(table.u16());
492
+ }
493
+ const numberOfAssets = table.u8();
494
+ for (let i = 0; i < numberOfAssets; i++) {
495
+ const identifier = readIdentifierMapping(table);
496
+ const assetType = String.fromCharCode(...table.bytes(4));
497
+ const flags = table.u8();
498
+ const asset = {
499
+ identifier,
500
+ assetType,
501
+ assetModificationFlag: ((flags >> 2) & 1) === 1,
502
+ defaultAssetFlag: ((flags >> 1) & 1) === 1,
503
+ locations: [],
504
+ descriptors: new Uint8Array(0),
505
+ };
506
+ if ((flags & 1) === 1) { // asset_clock_relation_flag
507
+ asset.assetClockRelationId = table.u8();
508
+ if ((table.u8() & 1) === 1)
509
+ asset.assetTimescale = table.u32(); // asset_timescale_flag
510
+ }
511
+ const locationCount = table.u8();
512
+ for (let j = 0; j < locationCount; j++)
513
+ asset.locations.push(readAssetLocation(table));
514
+ asset.descriptors = table.bytes(table.u16());
515
+ result.assets.push(asset);
516
+ }
517
+ table.expectEnd();
518
+ return result;
519
+ }
520
+ /** Parse a complete MP table (Table 29), starting at its table_id. */
521
+ export function parseMpTable(bytes) {
522
+ return total(() => {
523
+ const reader = new WireReader(bytes);
524
+ const table = readMpTable(reader);
525
+ reader.expectEnd();
526
+ return table;
527
+ });
528
+ }
529
+ /**
530
+ * The packet_ids an Asset is delivered on: every location of type 0x00
531
+ * (same MMTP packet flow), 0x01 (UDP/IPv4) or 0x02 (UDP/IPv6), in
532
+ * signalled order.
533
+ */
534
+ export function mpAssetPacketIds(asset) {
535
+ const packetIds = [];
536
+ for (const location of asset.locations) {
537
+ if (location.locationType === 0x00 || location.locationType === 0x01 || location.locationType === 0x02) {
538
+ packetIds.push(location.packetId);
539
+ }
540
+ }
541
+ return packetIds;
542
+ }
543
+ /**
544
+ * Parse a complete PA message (Table 21), starting at its message_id.
545
+ *
546
+ * Every table in the payload is delimited by its own 16-bit `length` and
547
+ * must match the extension's table_id and table_version. For non-MPI tables
548
+ * table_length is "a copy of the length field" (10.3.2.3) and must match it
549
+ * too; for an MPI table it is derived differently, so it is not compared.
550
+ */
551
+ export function parsePaMessageBody(message) {
552
+ return total(() => {
553
+ const { reader, messageId, version } = readMessageHeader(message);
554
+ if (messageId !== PA_MESSAGE_ID)
555
+ return null;
556
+ const numberOfTables = reader.u8();
557
+ const entries = [];
558
+ for (let i = 0; i < numberOfTables; i++) {
559
+ entries.push({ tableId: reader.u8(), tableVersion: reader.u8(), tableLength: reader.u16() });
560
+ }
561
+ const tables = [];
562
+ const mpTables = [];
563
+ for (const entry of entries) {
564
+ const start = reader.offset;
565
+ const tableId = reader.u8();
566
+ const tableVersion = reader.u8();
567
+ const length = reader.u16();
568
+ if (length === 0)
569
+ fail('zero table length');
570
+ reader.bytes(length); // bounds check
571
+ const isMpi = tableId >= MPI_TABLE_ID_FIRST && tableId <= MPI_TABLE_ID_LAST;
572
+ if (tableId !== entry.tableId || tableVersion !== entry.tableVersion ||
573
+ (!isMpi && length !== entry.tableLength)) {
574
+ fail('PA extension does not describe its table');
575
+ }
576
+ const bytes = message.subarray(start, reader.offset);
577
+ tables.push({ tableId, version: tableVersion, bytes });
578
+ if (tableId >= MP_TABLE_ID_SUBSET_0 && tableId <= MP_TABLE_ID_COMPLETE) {
579
+ const table = parseMpTable(bytes);
580
+ if (!table)
581
+ fail('malformed MP table in PA message');
582
+ mpTables.push(table);
583
+ }
584
+ }
585
+ reader.expectEnd();
586
+ return { version, tables, mpTables };
587
+ });
588
+ }
589
+ /** Parse a complete MPT message (Table 23), starting at its message_id. */
590
+ export function parseMptMessageBody(message) {
591
+ return total(() => {
592
+ const { reader, messageId, version } = readMessageHeader(message);
593
+ if (messageId < MPT_MESSAGE_ID_FIRST || messageId > MPT_MESSAGE_ID_COMPLETE)
594
+ return null;
595
+ const table = readMpTable(reader);
596
+ reader.expectEnd();
597
+ return { messageId, version, table };
598
+ });
599
+ }
600
+ function decodeSignallingMessage(bytes) {
601
+ const { messageId, version } = readMessageHeader(bytes);
602
+ if (messageId === ALFEC_MESSAGE_ID) {
603
+ const message = parseAlFecMessageBody(bytes);
604
+ if (!message)
605
+ fail('malformed AL-FEC message');
606
+ return { kind: 'al-fec', message };
607
+ }
608
+ if (messageId === PA_MESSAGE_ID) {
609
+ const message = parsePaMessageBody(bytes);
610
+ if (!message)
611
+ fail('malformed PA message');
612
+ return { kind: 'pa', message };
613
+ }
614
+ if (messageId >= MPT_MESSAGE_ID_FIRST && messageId <= MPT_MESSAGE_ID_COMPLETE) {
615
+ const message = parseMptMessageBody(bytes);
616
+ if (!message)
617
+ fail('malformed MPT message');
618
+ return { kind: 'mpt', message };
619
+ }
620
+ return { kind: 'other', messageId, version, bytes };
621
+ }
622
+ /**
623
+ * Parse every signalling message of a full MMTP signalling packet (the
624
+ * packet_id 0 flow). Returns null when the packet or any message in it is
625
+ * malformed: one unparseable message leaves the receiver unable to say what
626
+ * the packet signalled. Only the 9.3.4.2 payload form is accepted.
627
+ */
628
+ export function parseSignallingPacket(mmtpPacket) {
629
+ const payload = parseSignallingPayload(mmtpPacket);
630
+ if (!payload)
631
+ return null;
632
+ return total(() => ({
633
+ payloadForm: payload.form,
634
+ messages: payload.messages.map(decodeSignallingMessage),
635
+ }));
636
+ }
637
+ //# sourceMappingURL=signalling.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signalling.js","sourceRoot":"","sources":["../src/signalling.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,GAEhB,MAAM,WAAW,CAAA;AAElB,8EAA8E;AAC9E,cAAc;AACd,8EAA8E;AAE9E,uEAAuE;AACvE,MAAM,mBAAoB,SAAQ,KAAK;CAAG;AAE1C,MAAM,UAAU;IACL,MAAM,CAAY;IAClB,IAAI,CAAQ;IACrB,OAAO,CAAQ;IAEf,YAAY,KAAiB,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,MAAM;QAC1D,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACnB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;QACpB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAA;IACjB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAA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