moqtail 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +153 -473
  2. package/dist/{client-BviQ20Lc.cjs → client-DQ5aGbLR.cjs} +1089 -1074
  3. package/dist/client-DUzLw_Y8.d.cts +1932 -0
  4. package/dist/{client-zi0lmuIL.mjs → client-DVi4Nh1J.mjs} +930 -921
  5. package/dist/client-epHqMdHm.d.mts +1932 -0
  6. package/dist/client.cjs +121 -4
  7. package/dist/client.d.cts +23 -1944
  8. package/dist/client.d.mts +23 -1944
  9. package/dist/client.mjs +117 -2
  10. package/dist/emitter-UbeRcbuf.mjs +109 -0
  11. package/dist/{logger-c2NoQqtx.cjs → emitter-qNJYD3yQ.cjs} +61 -2
  12. package/dist/index-B-BMK-b6.d.mts +2090 -0
  13. package/dist/index-BtemTtwe.d.cts +2090 -0
  14. package/dist/{index-BY6e1obL.d.cts → index-CNn9BgO6.d.mts} +119 -324
  15. package/dist/index.cjs +38 -34
  16. package/dist/index.d.cts +20 -4
  17. package/dist/index.d.mts +20 -4
  18. package/dist/index.mjs +5 -4
  19. package/dist/logger-B8IYkljn.d.cts +64 -0
  20. package/dist/logger-B8IYkljn.d.mts +64 -0
  21. package/dist/model.cjs +122 -340
  22. package/dist/model.d.cts +2896 -2
  23. package/dist/model.d.mts +17 -2
  24. package/dist/model.mjs +122 -340
  25. package/dist/player/component.cjs +317 -0
  26. package/dist/player/component.d.cts +50 -0
  27. package/dist/player/component.d.mts +50 -0
  28. package/dist/player/component.mjs +315 -0
  29. package/dist/player-CJayEzwt.cjs +6750 -0
  30. package/dist/player-DcctWhyM.mjs +6599 -0
  31. package/dist/player.cjs +27 -0
  32. package/dist/player.d.cts +17 -0
  33. package/dist/player.d.mts +17 -0
  34. package/dist/player.mjs +1 -0
  35. package/dist/rolldown-runtime-CmQyd0Gu.cjs +27 -0
  36. package/dist/util.cjs +9 -10
  37. package/dist/util.d.cts +20 -13
  38. package/dist/util.d.mts +20 -13
  39. package/dist/util.mjs +4 -6
  40. package/package.json +45 -5
  41. package/dist/index-BY6e1obL.d.mts +0 -3087
  42. package/dist/logger-ByDB8lYF.mjs +0 -56
  43. package/dist/logger-dEoueCj7.d.cts +0 -35
  44. package/dist/logger-dEoueCj7.d.mts +0 -35
package/dist/model.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/model/error/error.ts
1
+ // src/model/error/error.ts
2
2
  /**
3
3
  * Copyright 2025 The MOQtail Authors
4
4
  *
@@ -195,8 +195,7 @@ var TerminationError = class extends MOQtailError {
195
195
  this.terminationCode = terminationCode;
196
196
  }
197
197
  };
198
- //#endregion
199
- //#region src/model/common/pair.ts
198
+ // src/model/common/pair.ts
200
199
  /**
201
200
  * Copyright 2025 The MOQtail Authors
202
201
  *
@@ -449,8 +448,7 @@ function isVarInt(pair) {
449
448
  function isBytes(pair) {
450
449
  return pair.value instanceof Uint8Array;
451
450
  }
452
- //#endregion
453
- //#region src/model/common/location.ts
451
+ // src/model/common/location.ts
454
452
  /**
455
453
  * Copyright 2025 The MOQtail Authors
456
454
  *
@@ -536,8 +534,7 @@ var Location = class Location {
536
534
  return 0;
537
535
  }
538
536
  };
539
- //#endregion
540
- //#region src/model/common/tuple.ts
537
+ // src/model/common/tuple.ts
541
538
  /**
542
539
  * Copyright 2025 The MOQtail Authors
543
540
  *
@@ -706,8 +703,7 @@ var Tuple = class Tuple {
706
703
  return this.fields.every((f, i) => f.value.toString() === other.fields[i].value.toString());
707
704
  }
708
705
  };
709
- //#endregion
710
- //#region src/model/common/reason_phrase.ts
706
+ // src/model/common/reason_phrase.ts
711
707
  /**
712
708
  * Copyright 2025 The MOQtail Authors
713
709
  *
@@ -811,8 +807,7 @@ var ReasonPhrase = class ReasonPhrase {
811
807
  }
812
808
  }
813
809
  };
814
- //#endregion
815
- //#region src/model/error/constant.ts
810
+ // src/model/error/constant.ts
816
811
  /**
817
812
  * Copyright 2025 The MOQtail Authors
818
813
  *
@@ -879,8 +874,7 @@ let TerminationCode = /* @__PURE__ */ function(TerminationCode) {
879
874
  }
880
875
  _TerminationCode.tryFrom = tryFrom;
881
876
  })(TerminationCode || (TerminationCode = {}));
882
- //#endregion
883
- //#region src/model/error/stream_reset.ts
877
+ // src/model/error/stream_reset.ts
884
878
  /**
885
879
  * Copyright 2026 The MOQtail Authors
886
880
  *
@@ -934,8 +928,7 @@ let StreamResetCode = /* @__PURE__ */ function(StreamResetCode) {
934
928
  }
935
929
  _StreamResetCode.tryFrom = tryFrom;
936
930
  })(StreamResetCode || (StreamResetCode = {}));
937
- //#endregion
938
- //#region src/model/data/constant.ts
931
+ // src/model/data/constant.ts
939
932
  /**
940
933
  * Copyright 2025 The MOQtail Authors
941
934
  *
@@ -1239,8 +1232,7 @@ let ObjectStatus = /* @__PURE__ */ function(ObjectStatus) {
1239
1232
  }
1240
1233
  _ObjectStatus.tryFrom = tryFrom;
1241
1234
  })(ObjectStatus || (ObjectStatus = {}));
1242
- //#endregion
1243
- //#region src/model/data/datagram.ts
1235
+ // src/model/data/datagram.ts
1244
1236
  /**
1245
1237
  * Copyright 2026 The MOQtail Authors
1246
1238
  *
@@ -1349,8 +1341,7 @@ var Datagram = class Datagram {
1349
1341
  return new Datagram(msgType, trackAlias, new Location(groupId, objectId), publisherPriority, properties, payload, objectStatus, endOfGroup);
1350
1342
  }
1351
1343
  };
1352
- //#endregion
1353
- //#region src/model/data/fetch_header.ts
1344
+ // src/model/data/fetch_header.ts
1354
1345
  /**
1355
1346
  * Copyright 2025 The MOQtail Authors
1356
1347
  *
@@ -1386,8 +1377,7 @@ var FetchHeader = class FetchHeader {
1386
1377
  return new FetchHeader(type, requestId);
1387
1378
  }
1388
1379
  };
1389
- //#endregion
1390
- //#region src/model/control/constant.ts
1380
+ // src/model/control/constant.ts
1391
1381
  /**
1392
1382
  * Copyright 2025 The MOQtail Authors
1393
1383
  *
@@ -1682,8 +1672,7 @@ let RequestErrorCode = /* @__PURE__ */ function(RequestErrorCode) {
1682
1672
  }
1683
1673
  _RequestErrorCode.fromWire = fromWire;
1684
1674
  })(RequestErrorCode || (RequestErrorCode = {}));
1685
- //#endregion
1686
- //#region src/model/data/fetch_object.ts
1675
+ // src/model/data/fetch_object.ts
1687
1676
  /**
1688
1677
  * Copyright 2025 The MOQtail Authors
1689
1678
  *
@@ -1917,8 +1906,7 @@ var FetchObject = class FetchObject {
1917
1906
  return FetchObject.newObject(groupId, resolvedSubgroupId, objectId, publisherPriority, forwardingPreference, properties, payload);
1918
1907
  }
1919
1908
  };
1920
- //#endregion
1921
- //#region src/model/data/full_track_name.ts
1909
+ // src/model/data/full_track_name.ts
1922
1910
  /**
1923
1911
  * Copyright 2025 The MOQtail Authors
1924
1912
  *
@@ -2019,8 +2007,7 @@ var FullTrackName = class FullTrackName {
2019
2007
  return new FullTrackName(namespace, name);
2020
2008
  }
2021
2009
  };
2022
- //#endregion
2023
- //#region src/model/property/constant.ts
2010
+ // src/model/property/constant.ts
2024
2011
  /**
2025
2012
  * Copyright 2025 The MOQtail Authors
2026
2013
  *
@@ -2114,8 +2101,7 @@ function isApplicationSpecificProperty(typeValue) {
2114
2101
  const v = BigInt(typeValue);
2115
2102
  return inRange(PropertyRanges.AppSpecific1Byte, v) || inRange(PropertyRanges.AppSpecific2Byte, v);
2116
2103
  }
2117
- //#endregion
2118
- //#region src/model/property/timestamp.ts
2104
+ // src/model/property/timestamp.ts
2119
2105
  /**
2120
2106
  * Copyright 2025 The MOQtail Authors
2121
2107
  *
@@ -2144,8 +2130,7 @@ var Timestamp = class Timestamp {
2144
2130
  if (Number(pair.typeValue) === Timestamp.TYPE && typeof pair.value === "bigint") return new Timestamp(pair.value);
2145
2131
  }
2146
2132
  };
2147
- //#endregion
2148
- //#region src/model/property/timescale.ts
2133
+ // src/model/property/timescale.ts
2149
2134
  /**
2150
2135
  * Copyright 2026 The MOQtail Authors
2151
2136
  *
@@ -2174,8 +2159,7 @@ var Timescale = class Timescale {
2174
2159
  if (Number(pair.typeValue) === Timescale.TYPE && typeof pair.value === "bigint") return new Timescale(pair.value);
2175
2160
  }
2176
2161
  };
2177
- //#endregion
2178
- //#region src/model/property/video_frame_marking.ts
2162
+ // src/model/property/video_frame_marking.ts
2179
2163
  /**
2180
2164
  * Copyright 2025 The MOQtail Authors
2181
2165
  *
@@ -2211,8 +2195,7 @@ var VideoFrameMarking = class VideoFrameMarking {
2211
2195
  if (Number(pair.typeValue) === VideoFrameMarking.TYPE && pair.value instanceof Uint8Array) return new VideoFrameMarking(pair.value);
2212
2196
  }
2213
2197
  };
2214
- //#endregion
2215
- //#region src/model/property/audio_level.ts
2198
+ // src/model/property/audio_level.ts
2216
2199
  /**
2217
2200
  * Copyright 2025 The MOQtail Authors
2218
2201
  *
@@ -2241,8 +2224,7 @@ var AudioLevel = class AudioLevel {
2241
2224
  if (Number(pair.typeValue) === AudioLevel.TYPE && typeof pair.value === "bigint") return new AudioLevel(pair.value);
2242
2225
  }
2243
2226
  };
2244
- //#endregion
2245
- //#region src/model/property/video_config.ts
2227
+ // src/model/property/video_config.ts
2246
2228
  /**
2247
2229
  * Copyright 2025 The MOQtail Authors
2248
2230
  *
@@ -2271,8 +2253,7 @@ var VideoConfig = class VideoConfig {
2271
2253
  if (Number(pair.typeValue) === VideoConfig.TYPE && pair.value instanceof Uint8Array) return new VideoConfig(pair.value);
2272
2254
  }
2273
2255
  };
2274
- //#endregion
2275
- //#region src/model/property/audio_config.ts
2256
+ // src/model/property/audio_config.ts
2276
2257
  /**
2277
2258
  * Copyright 2026 The MOQtail Authors
2278
2259
  *
@@ -2301,8 +2282,7 @@ var AudioConfig = class AudioConfig {
2301
2282
  if (Number(pair.typeValue) === AudioConfig.TYPE && pair.value instanceof Uint8Array) return new AudioConfig(pair.value);
2302
2283
  }
2303
2284
  };
2304
- //#endregion
2305
- //#region src/model/property/loc.ts
2285
+ // src/model/property/loc.ts
2306
2286
  let LOCProperty;
2307
2287
  (function(_LOCProperty) {
2308
2288
  function fromKeyValuePair(pair) {
@@ -2381,8 +2361,7 @@ var LOCProperties = class {
2381
2361
  return result;
2382
2362
  }
2383
2363
  };
2384
- //#endregion
2385
- //#region src/model/common/grease.ts
2364
+ // src/model/common/grease.ts
2386
2365
  /**
2387
2366
  * Copyright 2026 The MOQtail Authors
2388
2367
  *
@@ -2428,8 +2407,7 @@ function greaseValue(n) {
2428
2407
  const value = GREASE_STEP * BigInt(n) + GREASE_BASE;
2429
2408
  return value > GREASE_MAX ? void 0 : value;
2430
2409
  }
2431
- //#endregion
2432
- //#region src/model/property/track_property.ts
2410
+ // src/model/property/track_property.ts
2433
2411
  /**
2434
2412
  * Copyright 2026 The MOQtail Authors
2435
2413
  *
@@ -2609,8 +2587,7 @@ let TrackProperty;
2609
2587
  }
2610
2588
  _TrackProperty.isUnknown = isUnknown;
2611
2589
  })(TrackProperty || (TrackProperty = {}));
2612
- //#endregion
2613
- //#region src/model/property/object_property.ts
2590
+ // src/model/property/object_property.ts
2614
2591
  /**
2615
2592
  * Copyright 2026 The MOQtail Authors
2616
2593
  *
@@ -2714,8 +2691,41 @@ let ObjectProperty;
2714
2691
  }
2715
2692
  _ObjectProperty.isUnknown = isUnknown;
2716
2693
  })(ObjectProperty || (ObjectProperty = {}));
2717
- //#endregion
2718
- //#region src/model/data/subgroup_object.ts
2694
+ // src/model/property/find.ts
2695
+ /**
2696
+ * Copyright 2026 The MOQtail Authors
2697
+ *
2698
+ * Licensed under the Apache License, Version 2.0 (the "License");
2699
+ * you may not use this file except in compliance with the License.
2700
+ * You may obtain a copy of the License at
2701
+ *
2702
+ * http://www.apache.org/licenses/LICENSE-2.0
2703
+ *
2704
+ * Unless required by applicable law or agreed to in writing, software
2705
+ * distributed under the License is distributed on an "AS IS" BASIS,
2706
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2707
+ * See the License for the specific language governing permissions and
2708
+ * limitations under the License.
2709
+ */
2710
+ /**
2711
+ * @public
2712
+ * Finds the first property of `reader`'s type in a track or object property list and
2713
+ * returns it typed, or `undefined`. Unknown properties keep their raw key-value pair, so
2714
+ * a type the model doesn't know is still found.
2715
+ *
2716
+ * @example
2717
+ * ```ts
2718
+ * const timeout = findProperty(subscribeOk.trackProperties, ObjectDeliveryTimeoutProperty)
2719
+ * ```
2720
+ */
2721
+ function findProperty(properties, reader) {
2722
+ const type = BigInt(reader.TYPE);
2723
+ for (const property of properties ?? []) {
2724
+ const pair = property instanceof KeyValuePair ? property : property.toKeyValuePair();
2725
+ if (pair.typeValue === type) return reader.fromKeyValuePair(pair);
2726
+ }
2727
+ }
2728
+ // src/model/data/subgroup_object.ts
2719
2729
  /**
2720
2730
  * Copyright 2025 The MOQtail Authors
2721
2731
  *
@@ -2780,8 +2790,7 @@ var SubgroupObject = class SubgroupObject {
2780
2790
  return new SubgroupObject(objectId, normalizeProperties(properties), objectStatus, payload);
2781
2791
  }
2782
2792
  };
2783
- //#endregion
2784
- //#region src/model/data/object.ts
2793
+ // src/model/data/object.ts
2785
2794
  var MoqtObject = class MoqtObject {
2786
2795
  fullTrackName;
2787
2796
  publisherPriority;
@@ -2901,8 +2910,7 @@ var MoqtObject = class MoqtObject {
2901
2910
  else return SubgroupObject.newWithStatus(this.location.object, this.properties, this.objectStatus);
2902
2911
  }
2903
2912
  };
2904
- //#endregion
2905
- //#region src/model/data/subgroup_header.ts
2913
+ // src/model/data/subgroup_header.ts
2906
2914
  /**
2907
2915
  * Copyright 2025 The MOQtail Authors
2908
2916
  *
@@ -2973,8 +2981,7 @@ var SubgroupHeader = class SubgroupHeader {
2973
2981
  if (this.subgroupId === void 0 && SubgroupHeaderType.isSubgroupIdFirstObjectId(this.type)) this.subgroupId = firstObjectId;
2974
2982
  }
2975
2983
  };
2976
- //#endregion
2977
- //#region src/model/data/request_id.ts
2984
+ // src/model/data/request_id.ts
2978
2985
  /**
2979
2986
  * Copyright 2025 The MOQtail Authors
2980
2987
  *
@@ -3092,8 +3099,7 @@ var RequestIdMap = class {
3092
3099
  return this.nameToRequestId.has(name);
3093
3100
  }
3094
3101
  };
3095
- //#endregion
3096
- //#region src/model/data/header.ts
3102
+ // src/model/data/header.ts
3097
3103
  /**
3098
3104
  * Copyright 2025 The MOQtail Authors
3099
3105
  *
@@ -3141,8 +3147,7 @@ let Header;
3141
3147
  }
3142
3148
  _Header.deserialize = deserialize;
3143
3149
  })(Header || (Header = {}));
3144
- //#endregion
3145
- //#region src/model/common/byte_buffer.ts
3150
+ // src/model/common/byte_buffer.ts
3146
3151
  /**
3147
3152
  * Copyright 2025 The MOQtail Authors
3148
3153
  *
@@ -3385,8 +3390,7 @@ var FrozenByteBuffer = class extends BaseByteBuffer {
3385
3390
  return this.buf.length;
3386
3391
  }
3387
3392
  };
3388
- //#endregion
3389
- //#region src/model/control/publish_skipped.ts
3393
+ // src/model/control/publish_skipped.ts
3390
3394
  /**
3391
3395
  * Copyright 2026 The MOQtail Authors
3392
3396
  *
@@ -3438,8 +3442,7 @@ var PublishSkipped = class PublishSkipped {
3438
3442
  return new PublishSkipped(trackNamespaceSuffix, trackName);
3439
3443
  }
3440
3444
  };
3441
- //#endregion
3442
- //#region src/model/parameter/constant.ts
3445
+ // src/model/parameter/constant.ts
3443
3446
  /**
3444
3447
  * Copyright 2026 The MOQtail Authors
3445
3448
  *
@@ -3563,8 +3566,7 @@ function tokenAliasTypeFromNumber(value) {
3563
3566
  default: throw new InvalidTypeError("tokenAliasTypeFromNumber", `Invalid token alias type: ${value}`);
3564
3567
  }
3565
3568
  }
3566
- //#endregion
3567
- //#region src/model/common/moqt_url.ts
3569
+ // src/model/common/moqt_url.ts
3568
3570
  /**
3569
3571
  * Copyright 2026 The MOQtail Authors
3570
3572
  *
@@ -3580,6 +3582,8 @@ function tokenAliasTypeFromNumber(value) {
3580
3582
  * See the License for the specific language governing permissions and
3581
3583
  * limitations under the License.
3582
3584
  */
3585
+ /** URI schemes are case-insensitive (RFC 3986 §3.1, MSF 11.1). */
3586
+ const MOQT_SCHEME = /^moqt:\/\//i;
3583
3587
  /**
3584
3588
  * @public
3585
3589
  * A parsed `moqt://authority/path[?query][#fragment]` URI.
@@ -3603,7 +3607,7 @@ var MoqtUrl = class MoqtUrl {
3603
3607
  this.fragment = fragment;
3604
3608
  }
3605
3609
  static parse(input) {
3606
- if (!input.startsWith("moqt://")) throw new ProtocolViolationError("MoqtUrl.parse", `URL must use the moqt:// scheme: ${input}`);
3610
+ if (!MOQT_SCHEME.test(input)) throw new ProtocolViolationError("MoqtUrl.parse", `URL must use the moqt:// scheme: ${input}`);
3607
3611
  let rest = input.slice(7);
3608
3612
  let fragment;
3609
3613
  const hashIdx = rest.indexOf("#");
@@ -3659,7 +3663,7 @@ function parseFragment(fragment) {
3659
3663
  */
3660
3664
  function resolveTransportUrl(url) {
3661
3665
  const raw = typeof url === "string" ? url : url.toString();
3662
- if (!raw.startsWith("moqt://")) return {
3666
+ if (!MOQT_SCHEME.test(raw)) return {
3663
3667
  transportUrl: raw,
3664
3668
  moqtUrl: void 0
3665
3669
  };
@@ -3669,8 +3673,7 @@ function resolveTransportUrl(url) {
3669
3673
  moqtUrl
3670
3674
  };
3671
3675
  }
3672
- //#endregion
3673
- //#region src/model/common/redirect.ts
3676
+ // src/model/common/redirect.ts
3674
3677
  /**
3675
3678
  * Copyright 2026 The MOQtail Authors
3676
3679
  *
@@ -3721,8 +3724,7 @@ var Redirect = class Redirect {
3721
3724
  return new Redirect(connectUri, trackNamespace, trackName);
3722
3725
  }
3723
3726
  };
3724
- //#endregion
3725
- //#region src/model/parameter/common/authorization_token.ts
3727
+ // src/model/parameter/common/authorization_token.ts
3726
3728
  /**
3727
3729
  * Copyright 2026 The MOQtail Authors
3728
3730
  *
@@ -3789,7 +3791,6 @@ var AuthorizationToken = class AuthorizationToken {
3789
3791
  case 3:
3790
3792
  payload.putVI(this.variant.tokenType);
3791
3793
  payload.putBytes(this.variant.tokenValue);
3792
- break;
3793
3794
  }
3794
3795
  return KeyValuePair.tryNewBytes(AuthorizationToken.TYPE, payload.toUint8Array());
3795
3796
  }
@@ -3835,8 +3836,7 @@ var AuthorizationToken = class AuthorizationToken {
3835
3836
  }
3836
3837
  }
3837
3838
  };
3838
- //#endregion
3839
- //#region src/model/parameter/message/fill_timeout.ts
3839
+ // src/model/parameter/message/fill_timeout.ts
3840
3840
  /**
3841
3841
  * Copyright 2026 The MOQtail Authors
3842
3842
  *
@@ -3870,8 +3870,7 @@ var FillTimeout = class FillTimeout {
3870
3870
  return new FillTimeout(pair.value);
3871
3871
  }
3872
3872
  };
3873
- //#endregion
3874
- //#region src/model/parameter/message/object_delivery_timeout.ts
3873
+ // src/model/parameter/message/object_delivery_timeout.ts
3875
3874
  /**
3876
3875
  * Copyright 2026 The MOQtail Authors
3877
3876
  *
@@ -3907,8 +3906,7 @@ var ObjectDeliveryTimeout = class ObjectDeliveryTimeout {
3907
3906
  return new ObjectDeliveryTimeout(pair.value);
3908
3907
  }
3909
3908
  };
3910
- //#endregion
3911
- //#region src/model/parameter/message/rendezvous_timeout.ts
3909
+ // src/model/parameter/message/rendezvous_timeout.ts
3912
3910
  /**
3913
3911
  * Copyright 2026 The MOQtail Authors
3914
3912
  *
@@ -3942,8 +3940,7 @@ var RendezvousTimeout = class RendezvousTimeout {
3942
3940
  return new RendezvousTimeout(pair.value);
3943
3941
  }
3944
3942
  };
3945
- //#endregion
3946
- //#region src/model/parameter/message/subgroup_delivery_timeout.ts
3943
+ // src/model/parameter/message/subgroup_delivery_timeout.ts
3947
3944
  /**
3948
3945
  * Copyright 2026 The MOQtail Authors
3949
3946
  *
@@ -3977,8 +3974,7 @@ var SubgroupDeliveryTimeout = class SubgroupDeliveryTimeout {
3977
3974
  return new SubgroupDeliveryTimeout(pair.value);
3978
3975
  }
3979
3976
  };
3980
- //#endregion
3981
- //#region src/model/parameter/message/expires.ts
3977
+ // src/model/parameter/message/expires.ts
3982
3978
  /**
3983
3979
  * Copyright 2026 The MOQtail Authors
3984
3980
  *
@@ -4013,8 +4009,7 @@ var Expires = class Expires {
4013
4009
  return new Expires(pair.value);
4014
4010
  }
4015
4011
  };
4016
- //#endregion
4017
- //#region src/model/parameter/message/forward.ts
4012
+ // src/model/parameter/message/forward.ts
4018
4013
  /**
4019
4014
  * Copyright 2026 The MOQtail Authors
4020
4015
  *
@@ -4051,8 +4046,7 @@ var Forward = class Forward {
4051
4046
  return new Forward(pair.value === 1n);
4052
4047
  }
4053
4048
  };
4054
- //#endregion
4055
- //#region src/model/parameter/message/include_properties.ts
4049
+ // src/model/parameter/message/include_properties.ts
4056
4050
  /**
4057
4051
  * Copyright 2026 The MOQtail Authors
4058
4052
  *
@@ -4090,8 +4084,7 @@ var IncludeProperties = class IncludeProperties {
4090
4084
  return new IncludeProperties(pair.value === 1n);
4091
4085
  }
4092
4086
  };
4093
- //#endregion
4094
- //#region src/model/parameter/message/group_order_param.ts
4087
+ // src/model/parameter/message/group_order_param.ts
4095
4088
  /**
4096
4089
  * Copyright 2026 The MOQtail Authors
4097
4090
  *
@@ -4128,8 +4121,7 @@ var GroupOrderParam = class GroupOrderParam {
4128
4121
  return new GroupOrderParam(Number(pair.value));
4129
4122
  }
4130
4123
  };
4131
- //#endregion
4132
- //#region src/model/parameter/message/largest_object.ts
4124
+ // src/model/parameter/message/largest_object.ts
4133
4125
  /**
4134
4126
  * Copyright 2026 The MOQtail Authors
4135
4127
  *
@@ -4170,8 +4162,7 @@ var LargestObject = class LargestObject {
4170
4162
  return new LargestObject(location);
4171
4163
  }
4172
4164
  };
4173
- //#endregion
4174
- //#region src/model/parameter/message/new_group_request.ts
4165
+ // src/model/parameter/message/new_group_request.ts
4175
4166
  /**
4176
4167
  * Copyright 2026 The MOQtail Authors
4177
4168
  *
@@ -4206,8 +4197,7 @@ var NewGroupRequest = class NewGroupRequest {
4206
4197
  return new NewGroupRequest(pair.value);
4207
4198
  }
4208
4199
  };
4209
- //#endregion
4210
- //#region src/model/parameter/message/switching_set_assignment.ts
4200
+ // src/model/parameter/message/switching_set_assignment.ts
4211
4201
  /**
4212
4202
  * Copyright 2026 The MOQtail Authors
4213
4203
  *
@@ -4274,8 +4264,7 @@ var SwitchingSetAssignment = class SwitchingSetAssignment {
4274
4264
  return new SwitchingSetAssignment(switchingSetId, algorithmId, throughputThresholdKbps, setThroughputWeight, activateSwitching, setRank);
4275
4265
  }
4276
4266
  };
4277
- //#endregion
4278
- //#region src/model/parameter/message/subscriber_priority.ts
4267
+ // src/model/parameter/message/subscriber_priority.ts
4279
4268
  /**
4280
4269
  * Copyright 2026 The MOQtail Authors
4281
4270
  *
@@ -4312,8 +4301,7 @@ var SubscriberPriority = class SubscriberPriority {
4312
4301
  return new SubscriberPriority(Number(pair.value));
4313
4302
  }
4314
4303
  };
4315
- //#endregion
4316
- //#region src/model/parameter/message/location_filter.ts
4304
+ // src/model/parameter/message/location_filter.ts
4317
4305
  /**
4318
4306
  * Copyright 2026 The MOQtail Authors
4319
4307
  *
@@ -4487,8 +4475,7 @@ var LocationFilter = class LocationFilter {
4487
4475
  return filter;
4488
4476
  }
4489
4477
  };
4490
- //#endregion
4491
- //#region src/model/parameter/message/switch_from.ts
4478
+ // src/model/parameter/message/switch_from.ts
4492
4479
  /**
4493
4480
  * Copyright 2026 The MOQtail Authors
4494
4481
  *
@@ -4539,8 +4526,7 @@ var SwitchFrom = class SwitchFrom {
4539
4526
  return new SwitchFrom(requestId, Number(modeValue), (flags & 128) !== 0);
4540
4527
  }
4541
4528
  };
4542
- //#endregion
4543
- //#region src/model/parameter/message/fill_parameters.ts
4529
+ // src/model/parameter/message/fill_parameters.ts
4544
4530
  /**
4545
4531
  * Copyright 2026 The MOQtail Authors
4546
4532
  *
@@ -4598,8 +4584,7 @@ var FillParameters = class FillParameters {
4598
4584
  return new FillParameters(MessageParameters.fromKeyValuePairs(pairs));
4599
4585
  }
4600
4586
  };
4601
- //#endregion
4602
- //#region src/model/parameter/message/range_filter.ts
4587
+ // src/model/parameter/message/range_filter.ts
4603
4588
  /**
4604
4589
  * Copyright 2026 The MOQtail Authors
4605
4590
  *
@@ -4791,8 +4776,7 @@ var RangeFilter = class RangeFilter {
4791
4776
  return new RangeFilter(kind, setId, propertyType, deltas);
4792
4777
  }
4793
4778
  };
4794
- //#endregion
4795
- //#region src/model/parameter/message_parameter.ts
4779
+ // src/model/parameter/message_parameter.ts
4796
4780
  /**
4797
4781
  * Copyright 2026 The MOQtail Authors
4798
4782
  *
@@ -5015,9 +4999,7 @@ function serializeMessageParameterKvps(items) {
5015
4999
  case 4:
5016
5000
  if (isBytes(kvp)) buf.putLengthPrefixedBytes(kvp.value);
5017
5001
  break;
5018
- case 0:
5019
- if (isVarInt(kvp)) buf.putVI(kvp.value);
5020
- break;
5002
+ case 0: if (isVarInt(kvp)) buf.putVI(kvp.value);
5021
5003
  }
5022
5004
  prevType = kvp.typeValue;
5023
5005
  }
@@ -5054,9 +5036,7 @@ function readMessageParameterKvps(buf, more) {
5054
5036
  case 4:
5055
5037
  items.push(KeyValuePair.deserializeBytesValue(buf, typeValue));
5056
5038
  break;
5057
- case 0:
5058
- items.push(KeyValuePair.tryNewVarInt(typeValue, buf.getVI()));
5059
- break;
5039
+ case 0: items.push(KeyValuePair.tryNewVarInt(typeValue, buf.getVI()));
5060
5040
  }
5061
5041
  prevType = typeValue;
5062
5042
  }
@@ -5077,8 +5057,7 @@ function applyMessageParameterUpdate(current, updates) {
5077
5057
  const kept = current.filter((p) => !updated.has(typeOf(p)));
5078
5058
  current.splice(0, current.length, ...kept, ...updates.filter((u) => !(u instanceof RangeFilter && u.isRemoval)));
5079
5059
  }
5080
- //#endregion
5081
- //#region src/model/control/publish_namespace.ts
5060
+ // src/model/control/publish_namespace.ts
5082
5061
  /**
5083
5062
  * Copyright 2025 The MOQtail Authors
5084
5063
  *
@@ -5162,8 +5141,7 @@ var PublishNamespace = class PublishNamespace {
5162
5141
  return new PublishNamespace(requestId, trackNamespace, parameters);
5163
5142
  }
5164
5143
  };
5165
- //#endregion
5166
- //#region src/model/control/namespace.ts
5144
+ // src/model/control/namespace.ts
5167
5145
  /**
5168
5146
  * Copyright 2025 The MOQtail Authors
5169
5147
  *
@@ -5208,8 +5186,7 @@ var Namespace = class Namespace {
5208
5186
  return new Namespace(trackNamespaceSuffix);
5209
5187
  }
5210
5188
  };
5211
- //#endregion
5212
- //#region src/model/control/namespace_done.ts
5189
+ // src/model/control/namespace_done.ts
5213
5190
  /**
5214
5191
  * Copyright 2025 The MOQtail Authors
5215
5192
  *
@@ -5254,8 +5231,7 @@ var NamespaceDone = class NamespaceDone {
5254
5231
  return new NamespaceDone(trackNamespaceSuffix);
5255
5232
  }
5256
5233
  };
5257
- //#endregion
5258
- //#region src/model/control/setup.ts
5234
+ // src/model/control/setup.ts
5259
5235
  /**
5260
5236
  * Copyright 2026 The MOQtail Authors
5261
5237
  *
@@ -5304,8 +5280,7 @@ var Setup = class Setup {
5304
5280
  return new Setup(setupOptions);
5305
5281
  }
5306
5282
  };
5307
- //#endregion
5308
- //#region src/model/control/fetch.ts
5283
+ // src/model/control/fetch.ts
5309
5284
  /**
5310
5285
  * Copyright 2025 The MOQtail Authors
5311
5286
  *
@@ -5362,8 +5337,7 @@ var Fetch = class Fetch {
5362
5337
  return new Fetch(requestId, fullTrackName, parameters);
5363
5338
  }
5364
5339
  };
5365
- //#endregion
5366
- //#region src/model/control/fetch_ok.ts
5340
+ // src/model/control/fetch_ok.ts
5367
5341
  /**
5368
5342
  * Copyright 2025 The MOQtail Authors
5369
5343
  *
@@ -5427,8 +5401,7 @@ var FetchOk = class FetchOk {
5427
5401
  return new FetchOk(endOfTrack, endLocation, parameters, trackProperties);
5428
5402
  }
5429
5403
  };
5430
- //#endregion
5431
- //#region src/model/control/goaway.ts
5404
+ // src/model/control/goaway.ts
5432
5405
  /**
5433
5406
  * Copyright 2025 The MOQtail Authors
5434
5407
  *
@@ -5503,8 +5476,7 @@ var GoAway = class GoAway {
5503
5476
  return new GoAway(newSessionUri, timeout);
5504
5477
  }
5505
5478
  };
5506
- //#endregion
5507
- //#region src/model/control/subscribe.ts
5479
+ // src/model/control/subscribe.ts
5508
5480
  /**
5509
5481
  * Copyright 2025 The MOQtail Authors
5510
5482
  *
@@ -5557,8 +5529,7 @@ var Subscribe = class Subscribe {
5557
5529
  return new Subscribe(requestId, fullTrackName, parameters);
5558
5530
  }
5559
5531
  };
5560
- //#endregion
5561
- //#region src/model/control/publish_done.ts
5532
+ // src/model/control/publish_done.ts
5562
5533
  /**
5563
5534
  * Copyright 2025 The MOQtail Authors
5564
5535
  *
@@ -5614,8 +5585,7 @@ var PublishDone = class PublishDone {
5614
5585
  return new PublishDone(statusCode, streamCount, errorReason);
5615
5586
  }
5616
5587
  };
5617
- //#endregion
5618
- //#region src/model/control/publish.ts
5588
+ // src/model/control/publish.ts
5619
5589
  /**
5620
5590
  * Copyright 2025 The MOQtail Authors
5621
5591
  *
@@ -5673,8 +5643,7 @@ var Publish = class Publish {
5673
5643
  return new Publish(requestId, fullTrackName, trackAlias, parameters, trackProperties);
5674
5644
  }
5675
5645
  };
5676
- //#endregion
5677
- //#region src/model/control/subscribe_ok.ts
5646
+ // src/model/control/subscribe_ok.ts
5678
5647
  /**
5679
5648
  * Copyright 2025 The MOQtail Authors
5680
5649
  *
@@ -5732,8 +5701,7 @@ var SubscribeOk = class SubscribeOk {
5732
5701
  return new SubscribeOk(trackAlias, parameters, trackProperties);
5733
5702
  }
5734
5703
  };
5735
- //#endregion
5736
- //#region src/model/control/request_update.ts
5704
+ // src/model/control/request_update.ts
5737
5705
  /**
5738
5706
  * Copyright 2025 The MOQtail Authors
5739
5707
  *
@@ -5797,8 +5765,7 @@ var RequestUpdate = class RequestUpdate {
5797
5765
  return true;
5798
5766
  }
5799
5767
  };
5800
- //#endregion
5801
- //#region src/model/control/track_status.ts
5768
+ // src/model/control/track_status.ts
5802
5769
  /**
5803
5770
  * Copyright 2025 The MOQtail Authors
5804
5771
  *
@@ -5867,8 +5834,7 @@ var TrackStatus = class TrackStatus {
5867
5834
  return new TrackStatus(requestId, trackAlias, fullTrackName, subscriberPriority, groupOrder, forward, locationFilter, subscribeParameters);
5868
5835
  }
5869
5836
  };
5870
- //#endregion
5871
- //#region src/model/control/subscribe_namespace.ts
5837
+ // src/model/control/subscribe_namespace.ts
5872
5838
  /**
5873
5839
  * Copyright 2025 The MOQtail Authors
5874
5840
  *
@@ -5918,8 +5884,7 @@ var SubscribeNamespace = class SubscribeNamespace {
5918
5884
  return new SubscribeNamespace(requestId, trackNamespacePrefix, parameters);
5919
5885
  }
5920
5886
  };
5921
- //#endregion
5922
- //#region src/model/control/subscribe_tracks.ts
5887
+ // src/model/control/subscribe_tracks.ts
5923
5888
  /**
5924
5889
  * Copyright 2026 The MOQtail Authors
5925
5890
  *
@@ -5976,8 +5941,7 @@ var SubscribeTracks = class SubscribeTracks {
5976
5941
  return new SubscribeTracks(requestId, trackNamespacePrefix, parameters);
5977
5942
  }
5978
5943
  };
5979
- //#endregion
5980
- //#region src/model/control/request_ok.ts
5944
+ // src/model/control/request_ok.ts
5981
5945
  /**
5982
5946
  * Copyright 2026 The MOQtail Authors
5983
5947
  *
@@ -6060,8 +6024,7 @@ var RequestOk = class RequestOk {
6060
6024
  return new RequestOk(parameters, trackProperties);
6061
6025
  }
6062
6026
  };
6063
- //#endregion
6064
- //#region src/model/control/request_error.ts
6027
+ // src/model/control/request_error.ts
6065
6028
  /**
6066
6029
  * Copyright 2025 The MOQtail Authors
6067
6030
  *
@@ -6123,8 +6086,7 @@ var RequestError = class RequestError {
6123
6086
  return new RequestError(errorCode, retryInterval, reasonPhrase, redirect);
6124
6087
  }
6125
6088
  };
6126
- //#endregion
6127
- //#region src/model/control/control_message.ts
6089
+ // src/model/control/control_message.ts
6128
6090
  /**
6129
6091
  * Copyright 2025 The MOQtail Authors
6130
6092
  *
@@ -6177,176 +6139,7 @@ let ControlMessage;
6177
6139
  }
6178
6140
  _ControlMessage.serialize = serialize;
6179
6141
  })(ControlMessage || (ControlMessage = {}));
6180
- //#endregion
6181
- //#region src/model/catalog/cmsf.ts
6182
- function isString(v) {
6183
- return typeof v === "string";
6184
- }
6185
- function isNumber(v) {
6186
- return typeof v === "number";
6187
- }
6188
- function isStringArray(v) {
6189
- return Array.isArray(v) && v.every((item) => isString(item));
6190
- }
6191
- function isValidPackaging(v) {
6192
- return v === "cmaf" || v === "chunk-per-object" || v === "timeline";
6193
- }
6194
- function isValidRole(v) {
6195
- return v === "video" || v === "audio" || v === "timeline";
6196
- }
6197
- function isValidBase64(str) {
6198
- try {
6199
- return btoa(atob(str)) === str;
6200
- } catch {
6201
- return false;
6202
- }
6203
- }
6204
- function validateTrack(track) {
6205
- if (typeof track !== "object" || track === null) throw new Error("Track must be an object");
6206
- const t = track;
6207
- if (!isString(t["name"])) throw new Error("Track.name must be a string");
6208
- if (!isValidPackaging(t["packaging"])) throw new Error("Track.packaging must be 'cmaf', 'chunk-per-object', or 'timeline'");
6209
- if (!isValidRole(t["role"])) throw new Error("Track.role must be 'video', 'audio', or 'timeline'");
6210
- const name = t["name"];
6211
- const packaging = t["packaging"];
6212
- const role = t["role"];
6213
- let codec;
6214
- if (t["codec"] !== void 0) {
6215
- if (!isString(t["codec"])) throw new Error("Track.codec must be a string");
6216
- codec = t["codec"];
6217
- }
6218
- let depends;
6219
- if (t["depends"] !== void 0) {
6220
- if (!isStringArray(t["depends"])) throw new Error("Track.depends must be an array of strings");
6221
- depends = t["depends"];
6222
- }
6223
- let mimeType;
6224
- if (t["mimeType"] !== void 0) {
6225
- if (!isString(t["mimeType"])) throw new Error("Track.mimeType must be a string");
6226
- mimeType = t["mimeType"];
6227
- }
6228
- let width;
6229
- if (t["width"] !== void 0) {
6230
- if (!isNumber(t["width"])) throw new Error("Track.width must be a number");
6231
- width = t["width"];
6232
- }
6233
- let height;
6234
- if (t["height"] !== void 0) {
6235
- if (!isNumber(t["height"])) throw new Error("Track.height must be a number");
6236
- height = t["height"];
6237
- }
6238
- let timescale;
6239
- if (t["timescale"] !== void 0) {
6240
- if (!isNumber(t["timescale"])) throw new Error("Track.timescale must be a number");
6241
- timescale = t["timescale"];
6242
- }
6243
- let bitrate;
6244
- if (t["bitrate"] !== void 0) {
6245
- if (!isNumber(t["bitrate"])) throw new Error("Track.bitrate must be a number");
6246
- bitrate = t["bitrate"];
6247
- }
6248
- let initData;
6249
- if (t["initData"] !== void 0) {
6250
- if (!isString(t["initData"])) throw new Error("Track.initData must be a string");
6251
- if (!isValidBase64(t["initData"])) throw new Error("Track.initData must be a valid base64 string");
6252
- initData = t["initData"];
6253
- }
6254
- if (packaging === "cmaf" && (!codec || codec.length === 0)) throw new Error("codec is required when packaging is 'cmaf'");
6255
- if (packaging === "timeline" && mimeType !== "text/csv") throw new Error("mimeType must be 'text/csv' when packaging is 'timeline'");
6256
- if (packaging === "timeline" && (!depends || depends.length === 0)) throw new Error("At least one dependee must be present when packaging is 'timeline'");
6257
- const result = {
6258
- name,
6259
- packaging,
6260
- role
6261
- };
6262
- if (codec !== void 0) result.codec = codec;
6263
- if (depends !== void 0) result.depends = depends;
6264
- if (mimeType !== void 0) result.mimeType = mimeType;
6265
- if (width !== void 0) result.width = width;
6266
- if (height !== void 0) result.height = height;
6267
- if (timescale !== void 0) result.timescale = timescale;
6268
- if (bitrate !== void 0) result.bitrate = bitrate;
6269
- if (initData !== void 0) result.initData = initData;
6270
- return result;
6271
- }
6272
- function validateCMSF(obj) {
6273
- if (typeof obj !== "object" || obj === null) throw new Error("CMSF must be an object");
6274
- const o = obj;
6275
- if (!isString(o["version"])) throw new Error("CMSF.version must be a string");
6276
- if (!Array.isArray(o["tracks"])) throw new Error("CMSF.tracks must be an array");
6277
- return {
6278
- version: o["version"],
6279
- tracks: o["tracks"].map(validateTrack)
6280
- };
6281
- }
6282
- var CMSFCatalog = class CMSFCatalog {
6283
- #catalog;
6284
- constructor(catalog) {
6285
- this.#catalog = catalog;
6286
- }
6287
- static from(payload) {
6288
- const json = new TextDecoder().decode(payload);
6289
- const catalog = validateCMSF(JSON.parse(json));
6290
- return new CMSFCatalog(catalog);
6291
- }
6292
- getByTrackName(trackName) {
6293
- return this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName));
6294
- }
6295
- getTracks(role) {
6296
- if (role) return this.#catalog.tracks.filter((track) => track.role === role);
6297
- return this.#catalog.tracks;
6298
- }
6299
- getVideo(index = 0) {
6300
- const videos = this.#catalog.tracks.filter((track) => track.role === "video");
6301
- if (index < 0 || index >= videos.length) return void 0;
6302
- return videos[index];
6303
- }
6304
- getAudio(index = 0) {
6305
- const audios = this.#catalog.tracks.filter((track) => track.role === "audio");
6306
- if (index < 0 || index >= audios.length) return void 0;
6307
- return audios[index];
6308
- }
6309
- getTimeline(index = 0) {
6310
- const timelines = this.#catalog.tracks.filter((track) => track.role === "timeline");
6311
- if (index < 0 || index >= timelines.length) return void 0;
6312
- return timelines[index];
6313
- }
6314
- getCodecString(trackName) {
6315
- const track = this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName));
6316
- if (!track) return void 0;
6317
- if (!track.codec) throw new Error(`Track ${trackName} does not have a codec`);
6318
- return track.codec;
6319
- }
6320
- getRole(trackName) {
6321
- const track = this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName));
6322
- if (!track) return void 0;
6323
- return track.role;
6324
- }
6325
- getPackaging(trackName) {
6326
- const track = this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName));
6327
- if (!track) return void 0;
6328
- return track.packaging;
6329
- }
6330
- isCMAF(trackName) {
6331
- const packaging = this.getPackaging(trackName);
6332
- return packaging === "cmaf" || packaging === "chunk-per-object";
6333
- }
6334
- getTimescale(trackName) {
6335
- return this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName))?.timescale;
6336
- }
6337
- getInitData(trackName) {
6338
- const track = this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName));
6339
- if (!track) return void 0;
6340
- if (!track.initData) throw new Error(`Track ${trackName} does not have initData`);
6341
- return new Uint8Array(atob(track.initData).split("").map((c) => c.charCodeAt(0)));
6342
- }
6343
- extractTrackName(input) {
6344
- const parts = input.split("/");
6345
- return parts[parts.length - 1];
6346
- }
6347
- };
6348
- //#endregion
6349
- //#region src/model/parameter/setup/path.ts
6142
+ // src/model/parameter/setup/path.ts
6350
6143
  /**
6351
6144
  * Copyright 2025 The MOQtail Authors
6352
6145
  *
@@ -6378,8 +6171,7 @@ var Path = class Path {
6378
6171
  return new Path(moqtPath);
6379
6172
  }
6380
6173
  };
6381
- //#endregion
6382
- //#region src/model/parameter/setup/max_auth_token_cache_size.ts
6174
+ // src/model/parameter/setup/max_auth_token_cache_size.ts
6383
6175
  /**
6384
6176
  * Copyright 2025 The MOQtail Authors
6385
6177
  *
@@ -6409,8 +6201,7 @@ var MaxAuthTokenCacheSize = class MaxAuthTokenCacheSize {
6409
6201
  return new MaxAuthTokenCacheSize(pair.value);
6410
6202
  }
6411
6203
  };
6412
- //#endregion
6413
- //#region src/model/parameter/setup/authority.ts
6204
+ // src/model/parameter/setup/authority.ts
6414
6205
  /**
6415
6206
  * Copyright 2026 The MOQtail Authors
6416
6207
  *
@@ -6432,7 +6223,7 @@ var MaxAuthTokenCacheSize = class MaxAuthTokenCacheSize {
6432
6223
  *
6433
6224
  * Client-only; MUST NOT be sent by a server or over WebTransport. moqtail-ts always
6434
6225
  * connects over WebTransport, so its own handshake never sends this — see
6435
- * `MOQtailClient.new`.
6226
+ * `MOQtailClient.init`.
6436
6227
  */
6437
6228
  var Authority = class Authority {
6438
6229
  authority;
@@ -6450,8 +6241,7 @@ var Authority = class Authority {
6450
6241
  return new Authority(authority);
6451
6242
  }
6452
6243
  };
6453
- //#endregion
6454
- //#region src/model/parameter/setup/max_filter_ranges.ts
6244
+ // src/model/parameter/setup/max_filter_ranges.ts
6455
6245
  /**
6456
6246
  * Copyright 2026 The MOQtail Authors
6457
6247
  *
@@ -6486,8 +6276,7 @@ var MaxFilterRanges = class MaxFilterRanges {
6486
6276
  return new MaxFilterRanges(pair.value);
6487
6277
  }
6488
6278
  };
6489
- //#endregion
6490
- //#region src/model/parameter/setup/moqt_implementation.ts
6279
+ // src/model/parameter/setup/moqt_implementation.ts
6491
6280
  /**
6492
6281
  * Copyright 2026 The MOQtail Authors
6493
6282
  *
@@ -6523,8 +6312,7 @@ var MoqtImplementation = class MoqtImplementation {
6523
6312
  return new MoqtImplementation(info);
6524
6313
  }
6525
6314
  };
6526
- //#endregion
6527
- //#region src/model/parameter/setup/max_request_updates.ts
6315
+ // src/model/parameter/setup/max_request_updates.ts
6528
6316
  /**
6529
6317
  * Copyright 2026 The MOQtail Authors
6530
6318
  *
@@ -6559,8 +6347,7 @@ var MaxRequestUpdates = class MaxRequestUpdates {
6559
6347
  return new MaxRequestUpdates(pair.value);
6560
6348
  }
6561
6349
  };
6562
- //#endregion
6563
- //#region src/model/parameter/setup/ssts_algorithms.ts
6350
+ // src/model/parameter/setup/ssts_algorithms.ts
6564
6351
  /**
6565
6352
  * Copyright 2026 The MOQtail Authors
6566
6353
  *
@@ -6604,8 +6391,7 @@ var SstsAlgorithms = class SstsAlgorithms {
6604
6391
  return new SstsAlgorithms(algorithms);
6605
6392
  }
6606
6393
  };
6607
- //#endregion
6608
- //#region src/model/parameter/setup_option.ts
6394
+ // src/model/parameter/setup_option.ts
6609
6395
  let SetupOption;
6610
6396
  (function(_SetupOption) {
6611
6397
  function fromKeyValuePair(pair) {
@@ -6699,8 +6485,7 @@ var SetupOptions = class {
6699
6485
  return result;
6700
6486
  }
6701
6487
  };
6702
- //#endregion
6703
- //#region src/model/parameter/message/combined_filter.ts
6488
+ // src/model/parameter/message/combined_filter.ts
6704
6489
  /**
6705
6490
  * Copyright 2026 The MOQtail Authors
6706
6491
  *
@@ -6763,9 +6548,7 @@ var CombinedFilter = class {
6763
6548
  case RangeFilterKind.Priority:
6764
6549
  set.priority = ranges;
6765
6550
  break;
6766
- case RangeFilterKind.ObjectProperty:
6767
- set.properties.set(filter.propertyType, ranges);
6768
- break;
6551
+ case RangeFilterKind.ObjectProperty: set.properties.set(filter.propertyType, ranges);
6769
6552
  }
6770
6553
  }
6771
6554
  this.rangeCount = rangeCount;
@@ -6818,5 +6601,4 @@ function propertiesPass(required, properties) {
6818
6601
  }
6819
6602
  return true;
6820
6603
  }
6821
- //#endregion
6822
- export { AudioConfig, AudioLevel, Authority, AuthorizationToken, BaseByteBuffer, ByteBuffer, CMSFCatalog, CastingError, CombinedFilter, ControlMessage, ControlMessageType, DEFAULT_PUBLISHER_PRIORITY, Datagram, DefaultPublisherGroupOrderProperty, DefaultPublisherPriorityProperty, DynamicGroupsProperty, EndOfRangeKind, Expires, Fetch, FetchHeader, FetchHeaderType, FetchObject, FetchOk, FillParameters, FillTimeout, Forward, FrozenByteBuffer, FullTrackName, GREASE_BASE, GREASE_STEP, GoAway, GroupOrder, GroupOrderParam, Header, ImmutablePropertiesObjectProperty, ImmutablePropertiesTrackProperty, IncludeProperties, InternalError, InvalidEnumValue, InvalidFilterError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCProperties, LOCProperty, LOCPropertyId, LargestObject, LengthExceedsMaxError, Location, LocationFilter, LocationFilterType, MAX_FULL_TRACK_NAME_LENGTH, MAX_NAMESPACE_TUPLE_COUNT, MAX_NEW_SESSION_URI_LENGTH, MAX_REASON_PHRASE_LEN, MOQtailError, MaxAuthTokenCacheSize, MaxCacheDurationProperty, MaxFilterRanges, MaxRequestUpdates, MessageParameter, MessageParameterType, MessageParameters, MoqtImplementation, MoqtObject, MoqtUrl, Namespace, NamespaceDone, NewGroupRequest, NotEnoughBytesError, ObjectDatagramType, ObjectDeliveryTimeout, ObjectDeliveryTimeoutProperty, ObjectForwardingPreference, ObjectProperty, ObjectStatus, Path, PriorGroupIdGapProperty, PriorObjectIdGapProperty, PropertyRanges, ProtocolViolationError, Publish, PublishDone, PublishDoneStatusCode, PublishNamespace, PublishSkipped, RangeFilter, RangeFilterKind, ReasonPhrase, Redirect, RendezvousTimeout, RequestError, RequestErrorCode, RequestIdError, RequestIdMap, RequestOk, RequestUpdate, SUPPORTED_VERSIONS, Setup, SetupOption, SetupOptionType, SetupOptions, SstsAlgorithms, StreamResetCode, SubgroupDeliveryTimeout, SubgroupDeliveryTimeoutProperty, SubgroupHeader, SubgroupHeaderType, SubgroupObject, Subscribe, SubscribeNamespace, SubscribeOk, SubscribeTracks, SubscriberPriority, SwitchFrom, SwitchMode, SwitchingSetAssignment, TerminationCode, TerminationError, TimeoutError, Timescale, Timestamp, TokenAliasType, TrackNameError, TrackProperty, TrackPropertyType, TrackStatus, TrackStatusCode, Tuple, TupleField, UnknownObjectProperty, UnknownTrackProperty, VarIntOverflowError, VideoConfig, VideoFrameMarking, applyMessageParameterUpdate, assertNoAuthorityOverWebTransport, deserializeKvpList, deserializeKvpListUntilEmpty, deserializeMessageParameterKvps, encodeRanges, greaseValue, isApplicationSpecificProperty, isBytes, isGrease, isVarInt, locPropertyIdFromNumber, messageParameterTypeFromNumber, resolveTransportUrl, serializeKvpList, serializeMessageParameterKvps, setupOptionTypeFromNumber, tokenAliasTypeFromNumber };
6604
+ export { AudioConfig, AudioLevel, Authority, AuthorizationToken, BaseByteBuffer, ByteBuffer, CastingError, CombinedFilter, ControlMessage, ControlMessageType, DEFAULT_PUBLISHER_PRIORITY, Datagram, DefaultPublisherGroupOrderProperty, DefaultPublisherPriorityProperty, DynamicGroupsProperty, EndOfRangeKind, Expires, Fetch, FetchHeader, FetchHeaderType, FetchObject, FetchOk, FillParameters, FillTimeout, Forward, FrozenByteBuffer, FullTrackName, GREASE_BASE, GREASE_STEP, GoAway, GroupOrder, GroupOrderParam, Header, ImmutablePropertiesObjectProperty, ImmutablePropertiesTrackProperty, IncludeProperties, InternalError, InvalidEnumValue, InvalidFilterError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCProperties, LOCProperty, LOCPropertyId, LargestObject, LengthExceedsMaxError, Location, LocationFilter, LocationFilterType, MAX_FULL_TRACK_NAME_LENGTH, MAX_NAMESPACE_TUPLE_COUNT, MAX_NEW_SESSION_URI_LENGTH, MAX_REASON_PHRASE_LEN, MOQtailError, MaxAuthTokenCacheSize, MaxCacheDurationProperty, MaxFilterRanges, MaxRequestUpdates, MessageParameter, MessageParameterType, MessageParameters, MoqtImplementation, MoqtObject, MoqtUrl, Namespace, NamespaceDone, NewGroupRequest, NotEnoughBytesError, ObjectDatagramType, ObjectDeliveryTimeout, ObjectDeliveryTimeoutProperty, ObjectForwardingPreference, ObjectProperty, ObjectStatus, Path, PriorGroupIdGapProperty, PriorObjectIdGapProperty, PropertyRanges, ProtocolViolationError, Publish, PublishDone, PublishDoneStatusCode, PublishNamespace, PublishSkipped, RangeFilter, RangeFilterKind, ReasonPhrase, Redirect, RendezvousTimeout, RequestError, RequestErrorCode, RequestIdError, RequestIdMap, RequestOk, RequestUpdate, SUPPORTED_VERSIONS, Setup, SetupOption, SetupOptionType, SetupOptions, SstsAlgorithms, StreamResetCode, SubgroupDeliveryTimeout, SubgroupDeliveryTimeoutProperty, SubgroupHeader, SubgroupHeaderType, SubgroupObject, Subscribe, SubscribeNamespace, SubscribeOk, SubscribeTracks, SubscriberPriority, SwitchFrom, SwitchMode, SwitchingSetAssignment, TerminationCode, TerminationError, TimeoutError, Timescale, Timestamp, TokenAliasType, TrackNameError, TrackProperty, TrackPropertyType, TrackStatus, TrackStatusCode, Tuple, TupleField, UnknownObjectProperty, UnknownTrackProperty, VarIntOverflowError, VideoConfig, VideoFrameMarking, applyMessageParameterUpdate, assertNoAuthorityOverWebTransport, deserializeKvpList, deserializeKvpListUntilEmpty, deserializeMessageParameterKvps, encodeRanges, findProperty, greaseValue, isApplicationSpecificProperty, isBytes, isGrease, isVarInt, locPropertyIdFromNumber, messageParameterTypeFromNumber, resolveTransportUrl, serializeKvpList, serializeMessageParameterKvps, setupOptionTypeFromNumber, tokenAliasTypeFromNumber };