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.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/model/error/error.ts
2
+ // src/model/error/error.ts
3
3
  /**
4
4
  * Copyright 2025 The MOQtail Authors
5
5
  *
@@ -196,8 +196,7 @@ var TerminationError = class extends MOQtailError {
196
196
  this.terminationCode = terminationCode;
197
197
  }
198
198
  };
199
- //#endregion
200
- //#region src/model/common/pair.ts
199
+ // src/model/common/pair.ts
201
200
  /**
202
201
  * Copyright 2025 The MOQtail Authors
203
202
  *
@@ -450,8 +449,7 @@ function isVarInt(pair) {
450
449
  function isBytes(pair) {
451
450
  return pair.value instanceof Uint8Array;
452
451
  }
453
- //#endregion
454
- //#region src/model/common/location.ts
452
+ // src/model/common/location.ts
455
453
  /**
456
454
  * Copyright 2025 The MOQtail Authors
457
455
  *
@@ -537,8 +535,7 @@ var Location = class Location {
537
535
  return 0;
538
536
  }
539
537
  };
540
- //#endregion
541
- //#region src/model/common/tuple.ts
538
+ // src/model/common/tuple.ts
542
539
  /**
543
540
  * Copyright 2025 The MOQtail Authors
544
541
  *
@@ -707,8 +704,7 @@ var Tuple = class Tuple {
707
704
  return this.fields.every((f, i) => f.value.toString() === other.fields[i].value.toString());
708
705
  }
709
706
  };
710
- //#endregion
711
- //#region src/model/common/reason_phrase.ts
707
+ // src/model/common/reason_phrase.ts
712
708
  /**
713
709
  * Copyright 2025 The MOQtail Authors
714
710
  *
@@ -812,8 +808,7 @@ var ReasonPhrase = class ReasonPhrase {
812
808
  }
813
809
  }
814
810
  };
815
- //#endregion
816
- //#region src/model/error/constant.ts
811
+ // src/model/error/constant.ts
817
812
  /**
818
813
  * Copyright 2025 The MOQtail Authors
819
814
  *
@@ -880,8 +875,7 @@ let TerminationCode = /* @__PURE__ */ function(TerminationCode) {
880
875
  }
881
876
  _TerminationCode.tryFrom = tryFrom;
882
877
  })(TerminationCode || (TerminationCode = {}));
883
- //#endregion
884
- //#region src/model/error/stream_reset.ts
878
+ // src/model/error/stream_reset.ts
885
879
  /**
886
880
  * Copyright 2026 The MOQtail Authors
887
881
  *
@@ -935,8 +929,7 @@ let StreamResetCode = /* @__PURE__ */ function(StreamResetCode) {
935
929
  }
936
930
  _StreamResetCode.tryFrom = tryFrom;
937
931
  })(StreamResetCode || (StreamResetCode = {}));
938
- //#endregion
939
- //#region src/model/data/constant.ts
932
+ // src/model/data/constant.ts
940
933
  /**
941
934
  * Copyright 2025 The MOQtail Authors
942
935
  *
@@ -1240,8 +1233,7 @@ let ObjectStatus = /* @__PURE__ */ function(ObjectStatus) {
1240
1233
  }
1241
1234
  _ObjectStatus.tryFrom = tryFrom;
1242
1235
  })(ObjectStatus || (ObjectStatus = {}));
1243
- //#endregion
1244
- //#region src/model/data/datagram.ts
1236
+ // src/model/data/datagram.ts
1245
1237
  /**
1246
1238
  * Copyright 2026 The MOQtail Authors
1247
1239
  *
@@ -1350,8 +1342,7 @@ var Datagram = class Datagram {
1350
1342
  return new Datagram(msgType, trackAlias, new Location(groupId, objectId), publisherPriority, properties, payload, objectStatus, endOfGroup);
1351
1343
  }
1352
1344
  };
1353
- //#endregion
1354
- //#region src/model/data/fetch_header.ts
1345
+ // src/model/data/fetch_header.ts
1355
1346
  /**
1356
1347
  * Copyright 2025 The MOQtail Authors
1357
1348
  *
@@ -1387,8 +1378,7 @@ var FetchHeader = class FetchHeader {
1387
1378
  return new FetchHeader(type, requestId);
1388
1379
  }
1389
1380
  };
1390
- //#endregion
1391
- //#region src/model/control/constant.ts
1381
+ // src/model/control/constant.ts
1392
1382
  /**
1393
1383
  * Copyright 2025 The MOQtail Authors
1394
1384
  *
@@ -1683,8 +1673,7 @@ let RequestErrorCode = /* @__PURE__ */ function(RequestErrorCode) {
1683
1673
  }
1684
1674
  _RequestErrorCode.fromWire = fromWire;
1685
1675
  })(RequestErrorCode || (RequestErrorCode = {}));
1686
- //#endregion
1687
- //#region src/model/data/fetch_object.ts
1676
+ // src/model/data/fetch_object.ts
1688
1677
  /**
1689
1678
  * Copyright 2025 The MOQtail Authors
1690
1679
  *
@@ -1918,8 +1907,7 @@ var FetchObject = class FetchObject {
1918
1907
  return FetchObject.newObject(groupId, resolvedSubgroupId, objectId, publisherPriority, forwardingPreference, properties, payload);
1919
1908
  }
1920
1909
  };
1921
- //#endregion
1922
- //#region src/model/data/full_track_name.ts
1910
+ // src/model/data/full_track_name.ts
1923
1911
  /**
1924
1912
  * Copyright 2025 The MOQtail Authors
1925
1913
  *
@@ -2020,8 +2008,7 @@ var FullTrackName = class FullTrackName {
2020
2008
  return new FullTrackName(namespace, name);
2021
2009
  }
2022
2010
  };
2023
- //#endregion
2024
- //#region src/model/property/constant.ts
2011
+ // src/model/property/constant.ts
2025
2012
  /**
2026
2013
  * Copyright 2025 The MOQtail Authors
2027
2014
  *
@@ -2115,8 +2102,7 @@ function isApplicationSpecificProperty(typeValue) {
2115
2102
  const v = BigInt(typeValue);
2116
2103
  return inRange(PropertyRanges.AppSpecific1Byte, v) || inRange(PropertyRanges.AppSpecific2Byte, v);
2117
2104
  }
2118
- //#endregion
2119
- //#region src/model/property/timestamp.ts
2105
+ // src/model/property/timestamp.ts
2120
2106
  /**
2121
2107
  * Copyright 2025 The MOQtail Authors
2122
2108
  *
@@ -2145,8 +2131,7 @@ var Timestamp = class Timestamp {
2145
2131
  if (Number(pair.typeValue) === Timestamp.TYPE && typeof pair.value === "bigint") return new Timestamp(pair.value);
2146
2132
  }
2147
2133
  };
2148
- //#endregion
2149
- //#region src/model/property/timescale.ts
2134
+ // src/model/property/timescale.ts
2150
2135
  /**
2151
2136
  * Copyright 2026 The MOQtail Authors
2152
2137
  *
@@ -2175,8 +2160,7 @@ var Timescale = class Timescale {
2175
2160
  if (Number(pair.typeValue) === Timescale.TYPE && typeof pair.value === "bigint") return new Timescale(pair.value);
2176
2161
  }
2177
2162
  };
2178
- //#endregion
2179
- //#region src/model/property/video_frame_marking.ts
2163
+ // src/model/property/video_frame_marking.ts
2180
2164
  /**
2181
2165
  * Copyright 2025 The MOQtail Authors
2182
2166
  *
@@ -2212,8 +2196,7 @@ var VideoFrameMarking = class VideoFrameMarking {
2212
2196
  if (Number(pair.typeValue) === VideoFrameMarking.TYPE && pair.value instanceof Uint8Array) return new VideoFrameMarking(pair.value);
2213
2197
  }
2214
2198
  };
2215
- //#endregion
2216
- //#region src/model/property/audio_level.ts
2199
+ // src/model/property/audio_level.ts
2217
2200
  /**
2218
2201
  * Copyright 2025 The MOQtail Authors
2219
2202
  *
@@ -2242,8 +2225,7 @@ var AudioLevel = class AudioLevel {
2242
2225
  if (Number(pair.typeValue) === AudioLevel.TYPE && typeof pair.value === "bigint") return new AudioLevel(pair.value);
2243
2226
  }
2244
2227
  };
2245
- //#endregion
2246
- //#region src/model/property/video_config.ts
2228
+ // src/model/property/video_config.ts
2247
2229
  /**
2248
2230
  * Copyright 2025 The MOQtail Authors
2249
2231
  *
@@ -2272,8 +2254,7 @@ var VideoConfig = class VideoConfig {
2272
2254
  if (Number(pair.typeValue) === VideoConfig.TYPE && pair.value instanceof Uint8Array) return new VideoConfig(pair.value);
2273
2255
  }
2274
2256
  };
2275
- //#endregion
2276
- //#region src/model/property/audio_config.ts
2257
+ // src/model/property/audio_config.ts
2277
2258
  /**
2278
2259
  * Copyright 2026 The MOQtail Authors
2279
2260
  *
@@ -2302,8 +2283,7 @@ var AudioConfig = class AudioConfig {
2302
2283
  if (Number(pair.typeValue) === AudioConfig.TYPE && pair.value instanceof Uint8Array) return new AudioConfig(pair.value);
2303
2284
  }
2304
2285
  };
2305
- //#endregion
2306
- //#region src/model/property/loc.ts
2286
+ // src/model/property/loc.ts
2307
2287
  let LOCProperty;
2308
2288
  (function(_LOCProperty) {
2309
2289
  function fromKeyValuePair(pair) {
@@ -2382,8 +2362,7 @@ var LOCProperties = class {
2382
2362
  return result;
2383
2363
  }
2384
2364
  };
2385
- //#endregion
2386
- //#region src/model/common/grease.ts
2365
+ // src/model/common/grease.ts
2387
2366
  /**
2388
2367
  * Copyright 2026 The MOQtail Authors
2389
2368
  *
@@ -2429,8 +2408,7 @@ function greaseValue(n) {
2429
2408
  const value = GREASE_STEP * BigInt(n) + GREASE_BASE;
2430
2409
  return value > GREASE_MAX ? void 0 : value;
2431
2410
  }
2432
- //#endregion
2433
- //#region src/model/property/track_property.ts
2411
+ // src/model/property/track_property.ts
2434
2412
  /**
2435
2413
  * Copyright 2026 The MOQtail Authors
2436
2414
  *
@@ -2610,8 +2588,7 @@ let TrackProperty;
2610
2588
  }
2611
2589
  _TrackProperty.isUnknown = isUnknown;
2612
2590
  })(TrackProperty || (TrackProperty = {}));
2613
- //#endregion
2614
- //#region src/model/property/object_property.ts
2591
+ // src/model/property/object_property.ts
2615
2592
  /**
2616
2593
  * Copyright 2026 The MOQtail Authors
2617
2594
  *
@@ -2715,8 +2692,41 @@ let ObjectProperty;
2715
2692
  }
2716
2693
  _ObjectProperty.isUnknown = isUnknown;
2717
2694
  })(ObjectProperty || (ObjectProperty = {}));
2718
- //#endregion
2719
- //#region src/model/data/subgroup_object.ts
2695
+ // src/model/property/find.ts
2696
+ /**
2697
+ * Copyright 2026 The MOQtail Authors
2698
+ *
2699
+ * Licensed under the Apache License, Version 2.0 (the "License");
2700
+ * you may not use this file except in compliance with the License.
2701
+ * You may obtain a copy of the License at
2702
+ *
2703
+ * http://www.apache.org/licenses/LICENSE-2.0
2704
+ *
2705
+ * Unless required by applicable law or agreed to in writing, software
2706
+ * distributed under the License is distributed on an "AS IS" BASIS,
2707
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2708
+ * See the License for the specific language governing permissions and
2709
+ * limitations under the License.
2710
+ */
2711
+ /**
2712
+ * @public
2713
+ * Finds the first property of `reader`'s type in a track or object property list and
2714
+ * returns it typed, or `undefined`. Unknown properties keep their raw key-value pair, so
2715
+ * a type the model doesn't know is still found.
2716
+ *
2717
+ * @example
2718
+ * ```ts
2719
+ * const timeout = findProperty(subscribeOk.trackProperties, ObjectDeliveryTimeoutProperty)
2720
+ * ```
2721
+ */
2722
+ function findProperty(properties, reader) {
2723
+ const type = BigInt(reader.TYPE);
2724
+ for (const property of properties ?? []) {
2725
+ const pair = property instanceof KeyValuePair ? property : property.toKeyValuePair();
2726
+ if (pair.typeValue === type) return reader.fromKeyValuePair(pair);
2727
+ }
2728
+ }
2729
+ // src/model/data/subgroup_object.ts
2720
2730
  /**
2721
2731
  * Copyright 2025 The MOQtail Authors
2722
2732
  *
@@ -2781,8 +2791,7 @@ var SubgroupObject = class SubgroupObject {
2781
2791
  return new SubgroupObject(objectId, normalizeProperties(properties), objectStatus, payload);
2782
2792
  }
2783
2793
  };
2784
- //#endregion
2785
- //#region src/model/data/object.ts
2794
+ // src/model/data/object.ts
2786
2795
  var MoqtObject = class MoqtObject {
2787
2796
  fullTrackName;
2788
2797
  publisherPriority;
@@ -2902,8 +2911,7 @@ var MoqtObject = class MoqtObject {
2902
2911
  else return SubgroupObject.newWithStatus(this.location.object, this.properties, this.objectStatus);
2903
2912
  }
2904
2913
  };
2905
- //#endregion
2906
- //#region src/model/data/subgroup_header.ts
2914
+ // src/model/data/subgroup_header.ts
2907
2915
  /**
2908
2916
  * Copyright 2025 The MOQtail Authors
2909
2917
  *
@@ -2974,8 +2982,7 @@ var SubgroupHeader = class SubgroupHeader {
2974
2982
  if (this.subgroupId === void 0 && SubgroupHeaderType.isSubgroupIdFirstObjectId(this.type)) this.subgroupId = firstObjectId;
2975
2983
  }
2976
2984
  };
2977
- //#endregion
2978
- //#region src/model/data/request_id.ts
2985
+ // src/model/data/request_id.ts
2979
2986
  /**
2980
2987
  * Copyright 2025 The MOQtail Authors
2981
2988
  *
@@ -3093,8 +3100,7 @@ var RequestIdMap = class {
3093
3100
  return this.nameToRequestId.has(name);
3094
3101
  }
3095
3102
  };
3096
- //#endregion
3097
- //#region src/model/data/header.ts
3103
+ // src/model/data/header.ts
3098
3104
  /**
3099
3105
  * Copyright 2025 The MOQtail Authors
3100
3106
  *
@@ -3142,8 +3148,7 @@ let Header;
3142
3148
  }
3143
3149
  _Header.deserialize = deserialize;
3144
3150
  })(Header || (Header = {}));
3145
- //#endregion
3146
- //#region src/model/common/byte_buffer.ts
3151
+ // src/model/common/byte_buffer.ts
3147
3152
  /**
3148
3153
  * Copyright 2025 The MOQtail Authors
3149
3154
  *
@@ -3386,8 +3391,7 @@ var FrozenByteBuffer = class extends BaseByteBuffer {
3386
3391
  return this.buf.length;
3387
3392
  }
3388
3393
  };
3389
- //#endregion
3390
- //#region src/model/control/publish_skipped.ts
3394
+ // src/model/control/publish_skipped.ts
3391
3395
  /**
3392
3396
  * Copyright 2026 The MOQtail Authors
3393
3397
  *
@@ -3439,8 +3443,7 @@ var PublishSkipped = class PublishSkipped {
3439
3443
  return new PublishSkipped(trackNamespaceSuffix, trackName);
3440
3444
  }
3441
3445
  };
3442
- //#endregion
3443
- //#region src/model/parameter/constant.ts
3446
+ // src/model/parameter/constant.ts
3444
3447
  /**
3445
3448
  * Copyright 2026 The MOQtail Authors
3446
3449
  *
@@ -3564,8 +3567,7 @@ function tokenAliasTypeFromNumber(value) {
3564
3567
  default: throw new InvalidTypeError("tokenAliasTypeFromNumber", `Invalid token alias type: ${value}`);
3565
3568
  }
3566
3569
  }
3567
- //#endregion
3568
- //#region src/model/common/moqt_url.ts
3570
+ // src/model/common/moqt_url.ts
3569
3571
  /**
3570
3572
  * Copyright 2026 The MOQtail Authors
3571
3573
  *
@@ -3581,6 +3583,8 @@ function tokenAliasTypeFromNumber(value) {
3581
3583
  * See the License for the specific language governing permissions and
3582
3584
  * limitations under the License.
3583
3585
  */
3586
+ /** URI schemes are case-insensitive (RFC 3986 §3.1, MSF 11.1). */
3587
+ const MOQT_SCHEME = /^moqt:\/\//i;
3584
3588
  /**
3585
3589
  * @public
3586
3590
  * A parsed `moqt://authority/path[?query][#fragment]` URI.
@@ -3604,7 +3608,7 @@ var MoqtUrl = class MoqtUrl {
3604
3608
  this.fragment = fragment;
3605
3609
  }
3606
3610
  static parse(input) {
3607
- if (!input.startsWith("moqt://")) throw new ProtocolViolationError("MoqtUrl.parse", `URL must use the moqt:// scheme: ${input}`);
3611
+ if (!MOQT_SCHEME.test(input)) throw new ProtocolViolationError("MoqtUrl.parse", `URL must use the moqt:// scheme: ${input}`);
3608
3612
  let rest = input.slice(7);
3609
3613
  let fragment;
3610
3614
  const hashIdx = rest.indexOf("#");
@@ -3660,7 +3664,7 @@ function parseFragment(fragment) {
3660
3664
  */
3661
3665
  function resolveTransportUrl(url) {
3662
3666
  const raw = typeof url === "string" ? url : url.toString();
3663
- if (!raw.startsWith("moqt://")) return {
3667
+ if (!MOQT_SCHEME.test(raw)) return {
3664
3668
  transportUrl: raw,
3665
3669
  moqtUrl: void 0
3666
3670
  };
@@ -3670,8 +3674,7 @@ function resolveTransportUrl(url) {
3670
3674
  moqtUrl
3671
3675
  };
3672
3676
  }
3673
- //#endregion
3674
- //#region src/model/common/redirect.ts
3677
+ // src/model/common/redirect.ts
3675
3678
  /**
3676
3679
  * Copyright 2026 The MOQtail Authors
3677
3680
  *
@@ -3722,8 +3725,7 @@ var Redirect = class Redirect {
3722
3725
  return new Redirect(connectUri, trackNamespace, trackName);
3723
3726
  }
3724
3727
  };
3725
- //#endregion
3726
- //#region src/model/parameter/common/authorization_token.ts
3728
+ // src/model/parameter/common/authorization_token.ts
3727
3729
  /**
3728
3730
  * Copyright 2026 The MOQtail Authors
3729
3731
  *
@@ -3790,7 +3792,6 @@ var AuthorizationToken = class AuthorizationToken {
3790
3792
  case 3:
3791
3793
  payload.putVI(this.variant.tokenType);
3792
3794
  payload.putBytes(this.variant.tokenValue);
3793
- break;
3794
3795
  }
3795
3796
  return KeyValuePair.tryNewBytes(AuthorizationToken.TYPE, payload.toUint8Array());
3796
3797
  }
@@ -3836,8 +3837,7 @@ var AuthorizationToken = class AuthorizationToken {
3836
3837
  }
3837
3838
  }
3838
3839
  };
3839
- //#endregion
3840
- //#region src/model/parameter/message/fill_timeout.ts
3840
+ // src/model/parameter/message/fill_timeout.ts
3841
3841
  /**
3842
3842
  * Copyright 2026 The MOQtail Authors
3843
3843
  *
@@ -3871,8 +3871,7 @@ var FillTimeout = class FillTimeout {
3871
3871
  return new FillTimeout(pair.value);
3872
3872
  }
3873
3873
  };
3874
- //#endregion
3875
- //#region src/model/parameter/message/object_delivery_timeout.ts
3874
+ // src/model/parameter/message/object_delivery_timeout.ts
3876
3875
  /**
3877
3876
  * Copyright 2026 The MOQtail Authors
3878
3877
  *
@@ -3908,8 +3907,7 @@ var ObjectDeliveryTimeout = class ObjectDeliveryTimeout {
3908
3907
  return new ObjectDeliveryTimeout(pair.value);
3909
3908
  }
3910
3909
  };
3911
- //#endregion
3912
- //#region src/model/parameter/message/rendezvous_timeout.ts
3910
+ // src/model/parameter/message/rendezvous_timeout.ts
3913
3911
  /**
3914
3912
  * Copyright 2026 The MOQtail Authors
3915
3913
  *
@@ -3943,8 +3941,7 @@ var RendezvousTimeout = class RendezvousTimeout {
3943
3941
  return new RendezvousTimeout(pair.value);
3944
3942
  }
3945
3943
  };
3946
- //#endregion
3947
- //#region src/model/parameter/message/subgroup_delivery_timeout.ts
3944
+ // src/model/parameter/message/subgroup_delivery_timeout.ts
3948
3945
  /**
3949
3946
  * Copyright 2026 The MOQtail Authors
3950
3947
  *
@@ -3978,8 +3975,7 @@ var SubgroupDeliveryTimeout = class SubgroupDeliveryTimeout {
3978
3975
  return new SubgroupDeliveryTimeout(pair.value);
3979
3976
  }
3980
3977
  };
3981
- //#endregion
3982
- //#region src/model/parameter/message/expires.ts
3978
+ // src/model/parameter/message/expires.ts
3983
3979
  /**
3984
3980
  * Copyright 2026 The MOQtail Authors
3985
3981
  *
@@ -4014,8 +4010,7 @@ var Expires = class Expires {
4014
4010
  return new Expires(pair.value);
4015
4011
  }
4016
4012
  };
4017
- //#endregion
4018
- //#region src/model/parameter/message/forward.ts
4013
+ // src/model/parameter/message/forward.ts
4019
4014
  /**
4020
4015
  * Copyright 2026 The MOQtail Authors
4021
4016
  *
@@ -4052,8 +4047,7 @@ var Forward = class Forward {
4052
4047
  return new Forward(pair.value === 1n);
4053
4048
  }
4054
4049
  };
4055
- //#endregion
4056
- //#region src/model/parameter/message/include_properties.ts
4050
+ // src/model/parameter/message/include_properties.ts
4057
4051
  /**
4058
4052
  * Copyright 2026 The MOQtail Authors
4059
4053
  *
@@ -4091,8 +4085,7 @@ var IncludeProperties = class IncludeProperties {
4091
4085
  return new IncludeProperties(pair.value === 1n);
4092
4086
  }
4093
4087
  };
4094
- //#endregion
4095
- //#region src/model/parameter/message/group_order_param.ts
4088
+ // src/model/parameter/message/group_order_param.ts
4096
4089
  /**
4097
4090
  * Copyright 2026 The MOQtail Authors
4098
4091
  *
@@ -4129,8 +4122,7 @@ var GroupOrderParam = class GroupOrderParam {
4129
4122
  return new GroupOrderParam(Number(pair.value));
4130
4123
  }
4131
4124
  };
4132
- //#endregion
4133
- //#region src/model/parameter/message/largest_object.ts
4125
+ // src/model/parameter/message/largest_object.ts
4134
4126
  /**
4135
4127
  * Copyright 2026 The MOQtail Authors
4136
4128
  *
@@ -4171,8 +4163,7 @@ var LargestObject = class LargestObject {
4171
4163
  return new LargestObject(location);
4172
4164
  }
4173
4165
  };
4174
- //#endregion
4175
- //#region src/model/parameter/message/new_group_request.ts
4166
+ // src/model/parameter/message/new_group_request.ts
4176
4167
  /**
4177
4168
  * Copyright 2026 The MOQtail Authors
4178
4169
  *
@@ -4207,8 +4198,7 @@ var NewGroupRequest = class NewGroupRequest {
4207
4198
  return new NewGroupRequest(pair.value);
4208
4199
  }
4209
4200
  };
4210
- //#endregion
4211
- //#region src/model/parameter/message/switching_set_assignment.ts
4201
+ // src/model/parameter/message/switching_set_assignment.ts
4212
4202
  /**
4213
4203
  * Copyright 2026 The MOQtail Authors
4214
4204
  *
@@ -4275,8 +4265,7 @@ var SwitchingSetAssignment = class SwitchingSetAssignment {
4275
4265
  return new SwitchingSetAssignment(switchingSetId, algorithmId, throughputThresholdKbps, setThroughputWeight, activateSwitching, setRank);
4276
4266
  }
4277
4267
  };
4278
- //#endregion
4279
- //#region src/model/parameter/message/subscriber_priority.ts
4268
+ // src/model/parameter/message/subscriber_priority.ts
4280
4269
  /**
4281
4270
  * Copyright 2026 The MOQtail Authors
4282
4271
  *
@@ -4313,8 +4302,7 @@ var SubscriberPriority = class SubscriberPriority {
4313
4302
  return new SubscriberPriority(Number(pair.value));
4314
4303
  }
4315
4304
  };
4316
- //#endregion
4317
- //#region src/model/parameter/message/location_filter.ts
4305
+ // src/model/parameter/message/location_filter.ts
4318
4306
  /**
4319
4307
  * Copyright 2026 The MOQtail Authors
4320
4308
  *
@@ -4488,8 +4476,7 @@ var LocationFilter = class LocationFilter {
4488
4476
  return filter;
4489
4477
  }
4490
4478
  };
4491
- //#endregion
4492
- //#region src/model/parameter/message/switch_from.ts
4479
+ // src/model/parameter/message/switch_from.ts
4493
4480
  /**
4494
4481
  * Copyright 2026 The MOQtail Authors
4495
4482
  *
@@ -4540,8 +4527,7 @@ var SwitchFrom = class SwitchFrom {
4540
4527
  return new SwitchFrom(requestId, Number(modeValue), (flags & 128) !== 0);
4541
4528
  }
4542
4529
  };
4543
- //#endregion
4544
- //#region src/model/parameter/message/fill_parameters.ts
4530
+ // src/model/parameter/message/fill_parameters.ts
4545
4531
  /**
4546
4532
  * Copyright 2026 The MOQtail Authors
4547
4533
  *
@@ -4599,8 +4585,7 @@ var FillParameters = class FillParameters {
4599
4585
  return new FillParameters(MessageParameters.fromKeyValuePairs(pairs));
4600
4586
  }
4601
4587
  };
4602
- //#endregion
4603
- //#region src/model/parameter/message/range_filter.ts
4588
+ // src/model/parameter/message/range_filter.ts
4604
4589
  /**
4605
4590
  * Copyright 2026 The MOQtail Authors
4606
4591
  *
@@ -4792,8 +4777,7 @@ var RangeFilter = class RangeFilter {
4792
4777
  return new RangeFilter(kind, setId, propertyType, deltas);
4793
4778
  }
4794
4779
  };
4795
- //#endregion
4796
- //#region src/model/parameter/message_parameter.ts
4780
+ // src/model/parameter/message_parameter.ts
4797
4781
  /**
4798
4782
  * Copyright 2026 The MOQtail Authors
4799
4783
  *
@@ -5016,9 +5000,7 @@ function serializeMessageParameterKvps(items) {
5016
5000
  case 4:
5017
5001
  if (isBytes(kvp)) buf.putLengthPrefixedBytes(kvp.value);
5018
5002
  break;
5019
- case 0:
5020
- if (isVarInt(kvp)) buf.putVI(kvp.value);
5021
- break;
5003
+ case 0: if (isVarInt(kvp)) buf.putVI(kvp.value);
5022
5004
  }
5023
5005
  prevType = kvp.typeValue;
5024
5006
  }
@@ -5055,9 +5037,7 @@ function readMessageParameterKvps(buf, more) {
5055
5037
  case 4:
5056
5038
  items.push(KeyValuePair.deserializeBytesValue(buf, typeValue));
5057
5039
  break;
5058
- case 0:
5059
- items.push(KeyValuePair.tryNewVarInt(typeValue, buf.getVI()));
5060
- break;
5040
+ case 0: items.push(KeyValuePair.tryNewVarInt(typeValue, buf.getVI()));
5061
5041
  }
5062
5042
  prevType = typeValue;
5063
5043
  }
@@ -5078,8 +5058,7 @@ function applyMessageParameterUpdate(current, updates) {
5078
5058
  const kept = current.filter((p) => !updated.has(typeOf(p)));
5079
5059
  current.splice(0, current.length, ...kept, ...updates.filter((u) => !(u instanceof RangeFilter && u.isRemoval)));
5080
5060
  }
5081
- //#endregion
5082
- //#region src/model/control/publish_namespace.ts
5061
+ // src/model/control/publish_namespace.ts
5083
5062
  /**
5084
5063
  * Copyright 2025 The MOQtail Authors
5085
5064
  *
@@ -5163,8 +5142,7 @@ var PublishNamespace = class PublishNamespace {
5163
5142
  return new PublishNamespace(requestId, trackNamespace, parameters);
5164
5143
  }
5165
5144
  };
5166
- //#endregion
5167
- //#region src/model/control/namespace.ts
5145
+ // src/model/control/namespace.ts
5168
5146
  /**
5169
5147
  * Copyright 2025 The MOQtail Authors
5170
5148
  *
@@ -5209,8 +5187,7 @@ var Namespace = class Namespace {
5209
5187
  return new Namespace(trackNamespaceSuffix);
5210
5188
  }
5211
5189
  };
5212
- //#endregion
5213
- //#region src/model/control/namespace_done.ts
5190
+ // src/model/control/namespace_done.ts
5214
5191
  /**
5215
5192
  * Copyright 2025 The MOQtail Authors
5216
5193
  *
@@ -5255,8 +5232,7 @@ var NamespaceDone = class NamespaceDone {
5255
5232
  return new NamespaceDone(trackNamespaceSuffix);
5256
5233
  }
5257
5234
  };
5258
- //#endregion
5259
- //#region src/model/control/setup.ts
5235
+ // src/model/control/setup.ts
5260
5236
  /**
5261
5237
  * Copyright 2026 The MOQtail Authors
5262
5238
  *
@@ -5305,8 +5281,7 @@ var Setup = class Setup {
5305
5281
  return new Setup(setupOptions);
5306
5282
  }
5307
5283
  };
5308
- //#endregion
5309
- //#region src/model/control/fetch.ts
5284
+ // src/model/control/fetch.ts
5310
5285
  /**
5311
5286
  * Copyright 2025 The MOQtail Authors
5312
5287
  *
@@ -5363,8 +5338,7 @@ var Fetch = class Fetch {
5363
5338
  return new Fetch(requestId, fullTrackName, parameters);
5364
5339
  }
5365
5340
  };
5366
- //#endregion
5367
- //#region src/model/control/fetch_ok.ts
5341
+ // src/model/control/fetch_ok.ts
5368
5342
  /**
5369
5343
  * Copyright 2025 The MOQtail Authors
5370
5344
  *
@@ -5428,8 +5402,7 @@ var FetchOk = class FetchOk {
5428
5402
  return new FetchOk(endOfTrack, endLocation, parameters, trackProperties);
5429
5403
  }
5430
5404
  };
5431
- //#endregion
5432
- //#region src/model/control/goaway.ts
5405
+ // src/model/control/goaway.ts
5433
5406
  /**
5434
5407
  * Copyright 2025 The MOQtail Authors
5435
5408
  *
@@ -5504,8 +5477,7 @@ var GoAway = class GoAway {
5504
5477
  return new GoAway(newSessionUri, timeout);
5505
5478
  }
5506
5479
  };
5507
- //#endregion
5508
- //#region src/model/control/subscribe.ts
5480
+ // src/model/control/subscribe.ts
5509
5481
  /**
5510
5482
  * Copyright 2025 The MOQtail Authors
5511
5483
  *
@@ -5558,8 +5530,7 @@ var Subscribe = class Subscribe {
5558
5530
  return new Subscribe(requestId, fullTrackName, parameters);
5559
5531
  }
5560
5532
  };
5561
- //#endregion
5562
- //#region src/model/control/publish_done.ts
5533
+ // src/model/control/publish_done.ts
5563
5534
  /**
5564
5535
  * Copyright 2025 The MOQtail Authors
5565
5536
  *
@@ -5615,8 +5586,7 @@ var PublishDone = class PublishDone {
5615
5586
  return new PublishDone(statusCode, streamCount, errorReason);
5616
5587
  }
5617
5588
  };
5618
- //#endregion
5619
- //#region src/model/control/publish.ts
5589
+ // src/model/control/publish.ts
5620
5590
  /**
5621
5591
  * Copyright 2025 The MOQtail Authors
5622
5592
  *
@@ -5674,8 +5644,7 @@ var Publish = class Publish {
5674
5644
  return new Publish(requestId, fullTrackName, trackAlias, parameters, trackProperties);
5675
5645
  }
5676
5646
  };
5677
- //#endregion
5678
- //#region src/model/control/subscribe_ok.ts
5647
+ // src/model/control/subscribe_ok.ts
5679
5648
  /**
5680
5649
  * Copyright 2025 The MOQtail Authors
5681
5650
  *
@@ -5733,8 +5702,7 @@ var SubscribeOk = class SubscribeOk {
5733
5702
  return new SubscribeOk(trackAlias, parameters, trackProperties);
5734
5703
  }
5735
5704
  };
5736
- //#endregion
5737
- //#region src/model/control/request_update.ts
5705
+ // src/model/control/request_update.ts
5738
5706
  /**
5739
5707
  * Copyright 2025 The MOQtail Authors
5740
5708
  *
@@ -5798,8 +5766,7 @@ var RequestUpdate = class RequestUpdate {
5798
5766
  return true;
5799
5767
  }
5800
5768
  };
5801
- //#endregion
5802
- //#region src/model/control/track_status.ts
5769
+ // src/model/control/track_status.ts
5803
5770
  /**
5804
5771
  * Copyright 2025 The MOQtail Authors
5805
5772
  *
@@ -5868,8 +5835,7 @@ var TrackStatus = class TrackStatus {
5868
5835
  return new TrackStatus(requestId, trackAlias, fullTrackName, subscriberPriority, groupOrder, forward, locationFilter, subscribeParameters);
5869
5836
  }
5870
5837
  };
5871
- //#endregion
5872
- //#region src/model/control/subscribe_namespace.ts
5838
+ // src/model/control/subscribe_namespace.ts
5873
5839
  /**
5874
5840
  * Copyright 2025 The MOQtail Authors
5875
5841
  *
@@ -5919,8 +5885,7 @@ var SubscribeNamespace = class SubscribeNamespace {
5919
5885
  return new SubscribeNamespace(requestId, trackNamespacePrefix, parameters);
5920
5886
  }
5921
5887
  };
5922
- //#endregion
5923
- //#region src/model/control/subscribe_tracks.ts
5888
+ // src/model/control/subscribe_tracks.ts
5924
5889
  /**
5925
5890
  * Copyright 2026 The MOQtail Authors
5926
5891
  *
@@ -5977,8 +5942,7 @@ var SubscribeTracks = class SubscribeTracks {
5977
5942
  return new SubscribeTracks(requestId, trackNamespacePrefix, parameters);
5978
5943
  }
5979
5944
  };
5980
- //#endregion
5981
- //#region src/model/control/request_ok.ts
5945
+ // src/model/control/request_ok.ts
5982
5946
  /**
5983
5947
  * Copyright 2026 The MOQtail Authors
5984
5948
  *
@@ -6061,8 +6025,7 @@ var RequestOk = class RequestOk {
6061
6025
  return new RequestOk(parameters, trackProperties);
6062
6026
  }
6063
6027
  };
6064
- //#endregion
6065
- //#region src/model/control/request_error.ts
6028
+ // src/model/control/request_error.ts
6066
6029
  /**
6067
6030
  * Copyright 2025 The MOQtail Authors
6068
6031
  *
@@ -6124,8 +6087,7 @@ var RequestError = class RequestError {
6124
6087
  return new RequestError(errorCode, retryInterval, reasonPhrase, redirect);
6125
6088
  }
6126
6089
  };
6127
- //#endregion
6128
- //#region src/model/control/control_message.ts
6090
+ // src/model/control/control_message.ts
6129
6091
  /**
6130
6092
  * Copyright 2025 The MOQtail Authors
6131
6093
  *
@@ -6178,176 +6140,7 @@ let ControlMessage;
6178
6140
  }
6179
6141
  _ControlMessage.serialize = serialize;
6180
6142
  })(ControlMessage || (ControlMessage = {}));
6181
- //#endregion
6182
- //#region src/model/catalog/cmsf.ts
6183
- function isString(v) {
6184
- return typeof v === "string";
6185
- }
6186
- function isNumber(v) {
6187
- return typeof v === "number";
6188
- }
6189
- function isStringArray(v) {
6190
- return Array.isArray(v) && v.every((item) => isString(item));
6191
- }
6192
- function isValidPackaging(v) {
6193
- return v === "cmaf" || v === "chunk-per-object" || v === "timeline";
6194
- }
6195
- function isValidRole(v) {
6196
- return v === "video" || v === "audio" || v === "timeline";
6197
- }
6198
- function isValidBase64(str) {
6199
- try {
6200
- return btoa(atob(str)) === str;
6201
- } catch {
6202
- return false;
6203
- }
6204
- }
6205
- function validateTrack(track) {
6206
- if (typeof track !== "object" || track === null) throw new Error("Track must be an object");
6207
- const t = track;
6208
- if (!isString(t["name"])) throw new Error("Track.name must be a string");
6209
- if (!isValidPackaging(t["packaging"])) throw new Error("Track.packaging must be 'cmaf', 'chunk-per-object', or 'timeline'");
6210
- if (!isValidRole(t["role"])) throw new Error("Track.role must be 'video', 'audio', or 'timeline'");
6211
- const name = t["name"];
6212
- const packaging = t["packaging"];
6213
- const role = t["role"];
6214
- let codec;
6215
- if (t["codec"] !== void 0) {
6216
- if (!isString(t["codec"])) throw new Error("Track.codec must be a string");
6217
- codec = t["codec"];
6218
- }
6219
- let depends;
6220
- if (t["depends"] !== void 0) {
6221
- if (!isStringArray(t["depends"])) throw new Error("Track.depends must be an array of strings");
6222
- depends = t["depends"];
6223
- }
6224
- let mimeType;
6225
- if (t["mimeType"] !== void 0) {
6226
- if (!isString(t["mimeType"])) throw new Error("Track.mimeType must be a string");
6227
- mimeType = t["mimeType"];
6228
- }
6229
- let width;
6230
- if (t["width"] !== void 0) {
6231
- if (!isNumber(t["width"])) throw new Error("Track.width must be a number");
6232
- width = t["width"];
6233
- }
6234
- let height;
6235
- if (t["height"] !== void 0) {
6236
- if (!isNumber(t["height"])) throw new Error("Track.height must be a number");
6237
- height = t["height"];
6238
- }
6239
- let timescale;
6240
- if (t["timescale"] !== void 0) {
6241
- if (!isNumber(t["timescale"])) throw new Error("Track.timescale must be a number");
6242
- timescale = t["timescale"];
6243
- }
6244
- let bitrate;
6245
- if (t["bitrate"] !== void 0) {
6246
- if (!isNumber(t["bitrate"])) throw new Error("Track.bitrate must be a number");
6247
- bitrate = t["bitrate"];
6248
- }
6249
- let initData;
6250
- if (t["initData"] !== void 0) {
6251
- if (!isString(t["initData"])) throw new Error("Track.initData must be a string");
6252
- if (!isValidBase64(t["initData"])) throw new Error("Track.initData must be a valid base64 string");
6253
- initData = t["initData"];
6254
- }
6255
- if (packaging === "cmaf" && (!codec || codec.length === 0)) throw new Error("codec is required when packaging is 'cmaf'");
6256
- if (packaging === "timeline" && mimeType !== "text/csv") throw new Error("mimeType must be 'text/csv' when packaging is 'timeline'");
6257
- if (packaging === "timeline" && (!depends || depends.length === 0)) throw new Error("At least one dependee must be present when packaging is 'timeline'");
6258
- const result = {
6259
- name,
6260
- packaging,
6261
- role
6262
- };
6263
- if (codec !== void 0) result.codec = codec;
6264
- if (depends !== void 0) result.depends = depends;
6265
- if (mimeType !== void 0) result.mimeType = mimeType;
6266
- if (width !== void 0) result.width = width;
6267
- if (height !== void 0) result.height = height;
6268
- if (timescale !== void 0) result.timescale = timescale;
6269
- if (bitrate !== void 0) result.bitrate = bitrate;
6270
- if (initData !== void 0) result.initData = initData;
6271
- return result;
6272
- }
6273
- function validateCMSF(obj) {
6274
- if (typeof obj !== "object" || obj === null) throw new Error("CMSF must be an object");
6275
- const o = obj;
6276
- if (!isString(o["version"])) throw new Error("CMSF.version must be a string");
6277
- if (!Array.isArray(o["tracks"])) throw new Error("CMSF.tracks must be an array");
6278
- return {
6279
- version: o["version"],
6280
- tracks: o["tracks"].map(validateTrack)
6281
- };
6282
- }
6283
- var CMSFCatalog = class CMSFCatalog {
6284
- #catalog;
6285
- constructor(catalog) {
6286
- this.#catalog = catalog;
6287
- }
6288
- static from(payload) {
6289
- const json = new TextDecoder().decode(payload);
6290
- const catalog = validateCMSF(JSON.parse(json));
6291
- return new CMSFCatalog(catalog);
6292
- }
6293
- getByTrackName(trackName) {
6294
- return this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName));
6295
- }
6296
- getTracks(role) {
6297
- if (role) return this.#catalog.tracks.filter((track) => track.role === role);
6298
- return this.#catalog.tracks;
6299
- }
6300
- getVideo(index = 0) {
6301
- const videos = this.#catalog.tracks.filter((track) => track.role === "video");
6302
- if (index < 0 || index >= videos.length) return void 0;
6303
- return videos[index];
6304
- }
6305
- getAudio(index = 0) {
6306
- const audios = this.#catalog.tracks.filter((track) => track.role === "audio");
6307
- if (index < 0 || index >= audios.length) return void 0;
6308
- return audios[index];
6309
- }
6310
- getTimeline(index = 0) {
6311
- const timelines = this.#catalog.tracks.filter((track) => track.role === "timeline");
6312
- if (index < 0 || index >= timelines.length) return void 0;
6313
- return timelines[index];
6314
- }
6315
- getCodecString(trackName) {
6316
- const track = this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName));
6317
- if (!track) return void 0;
6318
- if (!track.codec) throw new Error(`Track ${trackName} does not have a codec`);
6319
- return track.codec;
6320
- }
6321
- getRole(trackName) {
6322
- const track = this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName));
6323
- if (!track) return void 0;
6324
- return track.role;
6325
- }
6326
- getPackaging(trackName) {
6327
- const track = this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName));
6328
- if (!track) return void 0;
6329
- return track.packaging;
6330
- }
6331
- isCMAF(trackName) {
6332
- const packaging = this.getPackaging(trackName);
6333
- return packaging === "cmaf" || packaging === "chunk-per-object";
6334
- }
6335
- getTimescale(trackName) {
6336
- return this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName))?.timescale;
6337
- }
6338
- getInitData(trackName) {
6339
- const track = this.#catalog.tracks.find((track) => track.name === this.extractTrackName(trackName));
6340
- if (!track) return void 0;
6341
- if (!track.initData) throw new Error(`Track ${trackName} does not have initData`);
6342
- return new Uint8Array(atob(track.initData).split("").map((c) => c.charCodeAt(0)));
6343
- }
6344
- extractTrackName(input) {
6345
- const parts = input.split("/");
6346
- return parts[parts.length - 1];
6347
- }
6348
- };
6349
- //#endregion
6350
- //#region src/model/parameter/setup/path.ts
6143
+ // src/model/parameter/setup/path.ts
6351
6144
  /**
6352
6145
  * Copyright 2025 The MOQtail Authors
6353
6146
  *
@@ -6379,8 +6172,7 @@ var Path = class Path {
6379
6172
  return new Path(moqtPath);
6380
6173
  }
6381
6174
  };
6382
- //#endregion
6383
- //#region src/model/parameter/setup/max_auth_token_cache_size.ts
6175
+ // src/model/parameter/setup/max_auth_token_cache_size.ts
6384
6176
  /**
6385
6177
  * Copyright 2025 The MOQtail Authors
6386
6178
  *
@@ -6410,8 +6202,7 @@ var MaxAuthTokenCacheSize = class MaxAuthTokenCacheSize {
6410
6202
  return new MaxAuthTokenCacheSize(pair.value);
6411
6203
  }
6412
6204
  };
6413
- //#endregion
6414
- //#region src/model/parameter/setup/authority.ts
6205
+ // src/model/parameter/setup/authority.ts
6415
6206
  /**
6416
6207
  * Copyright 2026 The MOQtail Authors
6417
6208
  *
@@ -6433,7 +6224,7 @@ var MaxAuthTokenCacheSize = class MaxAuthTokenCacheSize {
6433
6224
  *
6434
6225
  * Client-only; MUST NOT be sent by a server or over WebTransport. moqtail-ts always
6435
6226
  * connects over WebTransport, so its own handshake never sends this — see
6436
- * `MOQtailClient.new`.
6227
+ * `MOQtailClient.init`.
6437
6228
  */
6438
6229
  var Authority = class Authority {
6439
6230
  authority;
@@ -6451,8 +6242,7 @@ var Authority = class Authority {
6451
6242
  return new Authority(authority);
6452
6243
  }
6453
6244
  };
6454
- //#endregion
6455
- //#region src/model/parameter/setup/max_filter_ranges.ts
6245
+ // src/model/parameter/setup/max_filter_ranges.ts
6456
6246
  /**
6457
6247
  * Copyright 2026 The MOQtail Authors
6458
6248
  *
@@ -6487,8 +6277,7 @@ var MaxFilterRanges = class MaxFilterRanges {
6487
6277
  return new MaxFilterRanges(pair.value);
6488
6278
  }
6489
6279
  };
6490
- //#endregion
6491
- //#region src/model/parameter/setup/moqt_implementation.ts
6280
+ // src/model/parameter/setup/moqt_implementation.ts
6492
6281
  /**
6493
6282
  * Copyright 2026 The MOQtail Authors
6494
6283
  *
@@ -6524,8 +6313,7 @@ var MoqtImplementation = class MoqtImplementation {
6524
6313
  return new MoqtImplementation(info);
6525
6314
  }
6526
6315
  };
6527
- //#endregion
6528
- //#region src/model/parameter/setup/max_request_updates.ts
6316
+ // src/model/parameter/setup/max_request_updates.ts
6529
6317
  /**
6530
6318
  * Copyright 2026 The MOQtail Authors
6531
6319
  *
@@ -6560,8 +6348,7 @@ var MaxRequestUpdates = class MaxRequestUpdates {
6560
6348
  return new MaxRequestUpdates(pair.value);
6561
6349
  }
6562
6350
  };
6563
- //#endregion
6564
- //#region src/model/parameter/setup/ssts_algorithms.ts
6351
+ // src/model/parameter/setup/ssts_algorithms.ts
6565
6352
  /**
6566
6353
  * Copyright 2026 The MOQtail Authors
6567
6354
  *
@@ -6605,8 +6392,7 @@ var SstsAlgorithms = class SstsAlgorithms {
6605
6392
  return new SstsAlgorithms(algorithms);
6606
6393
  }
6607
6394
  };
6608
- //#endregion
6609
- //#region src/model/parameter/setup_option.ts
6395
+ // src/model/parameter/setup_option.ts
6610
6396
  let SetupOption;
6611
6397
  (function(_SetupOption) {
6612
6398
  function fromKeyValuePair(pair) {
@@ -6700,8 +6486,7 @@ var SetupOptions = class {
6700
6486
  return result;
6701
6487
  }
6702
6488
  };
6703
- //#endregion
6704
- //#region src/model/parameter/message/combined_filter.ts
6489
+ // src/model/parameter/message/combined_filter.ts
6705
6490
  /**
6706
6491
  * Copyright 2026 The MOQtail Authors
6707
6492
  *
@@ -6764,9 +6549,7 @@ var CombinedFilter = class {
6764
6549
  case RangeFilterKind.Priority:
6765
6550
  set.priority = ranges;
6766
6551
  break;
6767
- case RangeFilterKind.ObjectProperty:
6768
- set.properties.set(filter.propertyType, ranges);
6769
- break;
6552
+ case RangeFilterKind.ObjectProperty: set.properties.set(filter.propertyType, ranges);
6770
6553
  }
6771
6554
  }
6772
6555
  this.rangeCount = rangeCount;
@@ -6819,14 +6602,12 @@ function propertiesPass(required, properties) {
6819
6602
  }
6820
6603
  return true;
6821
6604
  }
6822
- //#endregion
6823
6605
  exports.AudioConfig = AudioConfig;
6824
6606
  exports.AudioLevel = AudioLevel;
6825
6607
  exports.Authority = Authority;
6826
6608
  exports.AuthorizationToken = AuthorizationToken;
6827
6609
  exports.BaseByteBuffer = BaseByteBuffer;
6828
6610
  exports.ByteBuffer = ByteBuffer;
6829
- exports.CMSFCatalog = CMSFCatalog;
6830
6611
  exports.CastingError = CastingError;
6831
6612
  exports.CombinedFilter = CombinedFilter;
6832
6613
  Object.defineProperty(exports, "ControlMessage", {
@@ -7067,6 +6848,7 @@ exports.deserializeKvpList = deserializeKvpList;
7067
6848
  exports.deserializeKvpListUntilEmpty = deserializeKvpListUntilEmpty;
7068
6849
  exports.deserializeMessageParameterKvps = deserializeMessageParameterKvps;
7069
6850
  exports.encodeRanges = encodeRanges;
6851
+ exports.findProperty = findProperty;
7070
6852
  exports.greaseValue = greaseValue;
7071
6853
  exports.isApplicationSpecificProperty = isApplicationSpecificProperty;
7072
6854
  exports.isBytes = isBytes;