@cloudflare/realtimekit 1.2.3-staging.1 → 1.2.3-staging.3

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.
package/dist/index.es.js CHANGED
@@ -918,10 +918,10 @@ const yo = {
918
918
  PREPROD: "preprod",
919
919
  PROD: "prod"
920
920
  };
921
- var Jt;
921
+ var Kt;
922
922
  (function(s) {
923
923
  s.AUDIO = "AUDIO", s.VIDEO = "VIDEO", s.SPEAKER = "SPEAKER", s.SCREENSHARE = "SCREENSHARE";
924
- })(Jt || (Jt = {}));
924
+ })(Kt || (Kt = {}));
925
925
  var np;
926
926
  (function(s) {
927
927
  s[s.INIT = 0] = "INIT", s[s.ACCEPTED = 1] = "ACCEPTED", s[s.DENIED = 2] = "DENIED", s[s.SYS_DENIED = 3] = "SYS_DENIED", s[s.FAILED = 4] = "FAILED", s[s.NOTFOUND = 5] = "NOTFOUND", s[s.NOT_APPLICABLE = 6] = "NOT_APPLICABLE";
@@ -2764,7 +2764,7 @@ let K = class extends lt {
2764
2764
  }
2765
2765
  devices(e, r, i) {
2766
2766
  this.eventHandler.callEvent({
2767
- event: e === Jt.AUDIO && O.AUDIO_DEVICES_UPDATES || e === Jt.VIDEO && O.VIDEO_DEVICES_UPDATES || e === Jt.SPEAKER && O.SPEAKER_DEVICES_UPDATES,
2767
+ event: e === Kt.AUDIO && O.AUDIO_DEVICES_UPDATES || e === Kt.VIDEO && O.VIDEO_DEVICES_UPDATES || e === Kt.SPEAKER && O.SPEAKER_DEVICES_UPDATES,
2768
2768
  metaData: {
2769
2769
  deviceList: r
2770
2770
  },
@@ -2773,7 +2773,7 @@ let K = class extends lt {
2773
2773
  }
2774
2774
  selectedDevice(e, r, i) {
2775
2775
  this.eventHandler.callEvent({
2776
- event: e === Jt.AUDIO && O.SELECTED_MICROHPONE_UPDATE || e === Jt.VIDEO && O.SELECTED_CAMERA_UPDATE || e === Jt.SPEAKER && O.SELECTED_SPEAKER_UPDATE,
2776
+ event: e === Kt.AUDIO && O.SELECTED_MICROHPONE_UPDATE || e === Kt.VIDEO && O.SELECTED_CAMERA_UPDATE || e === Kt.SPEAKER && O.SELECTED_SPEAKER_UPDATE,
2777
2777
  metaData: {
2778
2778
  device: r
2779
2779
  },
@@ -2792,7 +2792,7 @@ let K = class extends lt {
2792
2792
  }
2793
2793
  mediaPlaybackFailed(e, r) {
2794
2794
  this.eventHandler.callEvent({
2795
- event: e === Jt.AUDIO && O.AUDIO_PLAY_FAILED || e === Jt.VIDEO && O.VIDEO_PLAY_FAILED,
2795
+ event: e === Kt.AUDIO && O.AUDIO_PLAY_FAILED || e === Kt.VIDEO && O.VIDEO_PLAY_FAILED,
2796
2796
  metaData: {
2797
2797
  deviceType: e
2798
2798
  },
@@ -2801,7 +2801,7 @@ let K = class extends lt {
2801
2801
  }
2802
2802
  mediaTrackMuted(e, r) {
2803
2803
  this.eventHandler.callEvent({
2804
- event: e === Jt.AUDIO && O.AUDIO_TRACK_MUTED || e === Jt.VIDEO && O.VIDEO_TRACK_MUTED,
2804
+ event: e === Kt.AUDIO && O.AUDIO_TRACK_MUTED || e === Kt.VIDEO && O.VIDEO_TRACK_MUTED,
2805
2805
  metaData: {
2806
2806
  deviceType: e
2807
2807
  },
@@ -3851,7 +3851,7 @@ var Mm = Object.prototype, iy = Mm.hasOwnProperty, ny = Mm.propertyIsEnumerable,
3851
3851
  };
3852
3852
  const Ao = ay;
3853
3853
  var oy = Array.isArray;
3854
- const Bt = oy;
3854
+ const Ht = oy;
3855
3855
  function cy() {
3856
3856
  return !1;
3857
3857
  }
@@ -3889,7 +3889,7 @@ var gp = Va && Va.isTypedArray, Hy = gp ? Th(gp) : $y;
3889
3889
  const Vl = Hy;
3890
3890
  var qy = Object.prototype, jy = qy.hasOwnProperty;
3891
3891
  function Nm(s, t) {
3892
- var e = Bt(s), r = !e && Ao(s), i = !e && !r && Na(s), a = !e && !r && !i && Vl(s), o = e || r || i || a, c = o ? sy(s.length, String) : [], d = c.length;
3892
+ var e = Ht(s), r = !e && Ao(s), i = !e && !r && Na(s), a = !e && !r && !i && Vl(s), o = e || r || i || a, c = o ? sy(s.length, String) : [], d = c.length;
3893
3893
  for (var l in s)
3894
3894
  (t || jy.call(s, l)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
3895
3895
  (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -4000,7 +4000,7 @@ function uE(s, t) {
4000
4000
  }
4001
4001
  function qm(s, t, e) {
4002
4002
  var r = t(s);
4003
- return Bt(s) ? r : Bm(r, e(s));
4003
+ return Ht(s) ? r : Bm(r, e(s));
4004
4004
  }
4005
4005
  function vu(s) {
4006
4006
  return qm(s, xl, yh);
@@ -4135,7 +4135,7 @@ function od(s, t, e, r, i, a) {
4135
4135
  return o;
4136
4136
  if (!as(s))
4137
4137
  return s;
4138
- var p = Bt(s);
4138
+ var p = Ht(s);
4139
4139
  if (p) {
4140
4140
  if (o = wE(s), !c)
4141
4141
  return $m(s, o);
@@ -4176,7 +4176,7 @@ function Ul(s) {
4176
4176
  }
4177
4177
  var LP = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, xP = /^\w*$/;
4178
4178
  function Ch(s, t) {
4179
- if (Bt(s))
4179
+ if (Ht(s))
4180
4180
  return !1;
4181
4181
  var e = typeof s;
4182
4182
  return e == "number" || e == "symbol" || e == "boolean" || s == null || Ul(s) ? !0 : xP.test(s) || !LP.test(s) || t != null && s in Object(t);
@@ -4218,7 +4218,7 @@ var WP = 1 / 0, Ip = Bs ? Bs.prototype : void 0, Ap = Ip ? Ip.toString : void 0;
4218
4218
  function zm(s) {
4219
4219
  if (typeof s == "string")
4220
4220
  return s;
4221
- if (Bt(s))
4221
+ if (Ht(s))
4222
4222
  return GP(s, zm) + "";
4223
4223
  if (Ul(s))
4224
4224
  return Ap ? Ap.call(s) : "";
@@ -4229,7 +4229,7 @@ function JP(s) {
4229
4229
  return s == null ? "" : zm(s);
4230
4230
  }
4231
4231
  function Ym(s, t) {
4232
- return Bt(s) ? s : Ch(s, t) ? [s] : jP(JP(s));
4232
+ return Ht(s) ? s : Ch(s, t) ? [s] : jP(JP(s));
4233
4233
  }
4234
4234
  var KP = 1 / 0;
4235
4235
  function $l(s) {
@@ -4256,7 +4256,7 @@ function YP(s, t, e) {
4256
4256
  break;
4257
4257
  s = s[o];
4258
4258
  }
4259
- return a || ++r != i ? a : (i = s == null ? 0 : s.length, !!i && Sh(i) && vh(o, i) && (Bt(s) || Ao(s)));
4259
+ return a || ++r != i ? a : (i = s == null ? 0 : s.length, !!i && Sh(i) && vh(o, i) && (Ht(s) || Ao(s)));
4260
4260
  }
4261
4261
  var QP = Object.defineProperty, XP = (s, t) => {
4262
4262
  for (var e in t)
@@ -5244,7 +5244,7 @@ function yC(s, t, e, r, i, a) {
5244
5244
  }
5245
5245
  var EC = 1, Lp = "[object Arguments]", xp = "[object Array]", zc = "[object Object]", PC = Object.prototype, Up = PC.hasOwnProperty;
5246
5246
  function _C(s, t, e, r, i, a) {
5247
- var o = Bt(s), c = Bt(t), d = o ? xp : La(s), l = c ? xp : La(t);
5247
+ var o = Ht(s), c = Ht(t), d = o ? xp : La(s), l = c ? xp : La(t);
5248
5248
  d = d == Lp ? zc : d, l = l == Lp ? zc : l;
5249
5249
  var p = d == zc, g = l == zc, v = d == l;
5250
5250
  if (v && Na(s)) {
@@ -5340,7 +5340,7 @@ function LC(s) {
5340
5340
  return Ch(s) ? NC($l(s)) : VC(s);
5341
5341
  }
5342
5342
  function xC(s) {
5343
- return typeof s == "function" ? s : s == null ? bh : typeof s == "object" ? Bt(s) ? OC(s[0], s[1]) : kC(s) : LC(s);
5343
+ return typeof s == "function" ? s : s == null ? bh : typeof s == "object" ? Ht(s) ? OC(s[0], s[1]) : kC(s) : LC(s);
5344
5344
  }
5345
5345
  function UC(s) {
5346
5346
  return function(t, e, r) {
@@ -5427,8 +5427,8 @@ function JC(s, t, e, r, i, a, o) {
5427
5427
  }
5428
5428
  var p = a ? a(c, d, e + "", s, t, o) : void 0, g = p === void 0;
5429
5429
  if (g) {
5430
- var v = Bt(d), S = !v && Na(d), P = !v && !S && Vl(d);
5431
- p = d, v || S || P ? Bt(c) ? p = c : GC(c) ? p = $m(c) : S ? (g = !1, p = Um(d, !0)) : P ? (g = !1, p = jm(d, !0)) : p = [] : z_(d) || Ao(d) ? (p = c, Ao(c) ? p = WC(c) : (!as(c) || mh(c)) && (p = Gm(d))) : g = !1;
5430
+ var v = Ht(d), S = !v && Na(d), P = !v && !S && Vl(d);
5431
+ p = d, v || S || P ? Ht(c) ? p = c : GC(c) ? p = $m(c) : S ? (g = !1, p = Um(d, !0)) : P ? (g = !1, p = jm(d, !0)) : p = [] : z_(d) || Ao(d) ? (p = c, Ao(c) ? p = WC(c) : (!as(c) || mh(c)) && (p = Gm(d))) : g = !1;
5432
5432
  }
5433
5433
  g && (o.set(d, p), i(p, d, r, a, o), o.delete(d)), Pu(s, e, p);
5434
5434
  }
@@ -5452,7 +5452,7 @@ var zC = "[object Map]", YC = "[object Set]", QC = Object.prototype, XC = QC.has
5452
5452
  function ZC(s) {
5453
5453
  if (s == null)
5454
5454
  return !0;
5455
- if ($c(s) && (Bt(s) || typeof s == "string" || typeof s.splice == "function" || Na(s) || Vl(s) || Ao(s)))
5455
+ if ($c(s) && (Ht(s) || typeof s == "string" || typeof s.splice == "function" || Na(s) || Vl(s) || Ao(s)))
5456
5456
  return !s.length;
5457
5457
  var t = La(s);
5458
5458
  if (t == zC || t == YC)
@@ -6223,7 +6223,7 @@ class $a extends lt.EventEmitter {
6223
6223
  return super.listenerCount(e);
6224
6224
  }
6225
6225
  }
6226
- class qt extends lt.EventEmitter {
6226
+ class jt extends lt.EventEmitter {
6227
6227
  constructor(e) {
6228
6228
  super();
6229
6229
  h(this, "logger");
@@ -6294,15 +6294,15 @@ const Bp = 1080, Hp = 1920, Pw = (s, t, e, r, i, a) => {
6294
6294
  let g = d * p, v = l * p, S, P, _, C, w = 1;
6295
6295
  return g < e && (w = e / g), Math.abs(w - 1) < 1e-14 && v < r && (w = r / v), g *= w, v *= w, _ = d / (g / e), C = l / (v / r), S = (d - _) * o, P = (l - C) * c, S < 0 && (S = 0), P < 0 && (P = 0), _ > d && (_ = d), C > l && (C = l), [S, P, _, C, s, t, e, r];
6296
6296
  };
6297
- var Kt, mi, st, zt, be, ps, zs, gt, De, Vn, Ln, Ys, xn;
6298
- const Qh = class extends qt {
6297
+ var zt, mi, st, Yt, be, ps, zs, gt, De, Vn, Ln, Ys, xn;
6298
+ const Qh = class extends jt {
6299
6299
  constructor(e, r, i, a) {
6300
6300
  const o = e.getValue("logger");
6301
6301
  super(o);
6302
- m(this, Kt, void 0);
6302
+ m(this, zt, void 0);
6303
6303
  m(this, mi, void 0);
6304
6304
  m(this, st, void 0);
6305
- m(this, zt, void 0);
6305
+ m(this, Yt, void 0);
6306
6306
  m(this, be, {
6307
6307
  height: Bp,
6308
6308
  width: Hp
@@ -6406,14 +6406,14 @@ const Qh = class extends qt {
6406
6406
  });
6407
6407
  }
6408
6408
  createVideoContainer() {
6409
- f(this, st, document.createElement("div")), n(this, st).style.width = "0.1px", n(this, st).style.height = "0.1px", n(this, st).style.overflow = "hidden", n(this, st).style.position = "absolute", n(this, st).style.bottom = "0", n(this, st).style.right = "0", n(this, st).style.opacity = "0", n(this, st).appendChild(n(this, zt));
6409
+ f(this, st, document.createElement("div")), n(this, st).style.width = "0.1px", n(this, st).style.height = "0.1px", n(this, st).style.overflow = "hidden", n(this, st).style.position = "absolute", n(this, st).style.bottom = "0", n(this, st).style.right = "0", n(this, st).style.opacity = "0", n(this, st).appendChild(n(this, Yt));
6410
6410
  }
6411
6411
  setupEventListeners() {
6412
6412
  n(this, mi).subscribe("stageStatus", this.handlePipMediaControls), n(this, De).addListener("videoUpdate", this.onSelfVideoUpdateListener), n(this, De).addListener("audioUpdate", this.onSelfAudioUpdateListener), n(this, De).addListener("roomLeft", () => this.disable());
6413
6413
  }
6414
6414
  createCanvas() {
6415
6415
  const e = document.createElement("canvas");
6416
- e.height = n(this, be).height, e.width = n(this, be).width, f(this, Kt, e);
6416
+ e.height = n(this, be).height, e.width = n(this, be).width, f(this, zt, e);
6417
6417
  }
6418
6418
  setupMediaSessionEvents() {
6419
6419
  navigator.mediaSession === void 0 || navigator.mediaSession.setCameraActive === void 0 || (navigator.mediaSession.setActionHandler("hangup", () => {
@@ -6438,9 +6438,9 @@ const Qh = class extends qt {
6438
6438
  return [...r.pinned, ...r.regular];
6439
6439
  }
6440
6440
  drawEmptyTile(e, r, i, a) {
6441
- if (n(this, Kt) === void 0)
6441
+ if (n(this, zt) === void 0)
6442
6442
  return;
6443
- const o = n(this, Kt).getContext("2d"), c = n(this, Kt).width, d = 0, l = 0, p = r - d * 2, g = i - d * 2, v = Math.floor(c / p), S = Math.floor(e / v), _ = e % v * (p + d) + d, C = S * (g + d) + d, { displayText: w, image: L } = a != null ? a : {};
6443
+ const o = n(this, zt).getContext("2d"), c = n(this, zt).width, d = 0, l = 0, p = r - d * 2, g = i - d * 2, v = Math.floor(c / p), S = Math.floor(e / v), _ = e % v * (p + d) + d, C = S * (g + d) + d, { displayText: w, image: L } = a != null ? a : {};
6444
6444
  o.fillStyle = w || L ? n(this, ps).videoBackground : n(this, ps).background, o.strokeStyle = n(this, ps).brand, o.beginPath(), o.moveTo(_ + l, C), o.arcTo(_ + p, C, _ + p, C + l, l), o.arcTo(
6445
6445
  _ + p,
6446
6446
  C + g,
@@ -6461,7 +6461,7 @@ const Qh = class extends qt {
6461
6461
  const o = Math.min(Math.max(a * 0.15, 100), 200), c = o * 0.2, d = o * 0.2;
6462
6462
  let l = r + c;
6463
6463
  const p = i + c, g = (v) => {
6464
- const S = n(this, Kt).getContext("2d");
6464
+ const S = n(this, zt).getContext("2d");
6465
6465
  S.save(), S.fillStyle = n(this, ps).background, S.beginPath(), S.moveTo(l + d, p), S.arcTo(l + o, p, l + o, p + d, d), S.arcTo(
6466
6466
  l + o,
6467
6467
  p + o,
@@ -6480,9 +6480,9 @@ const Qh = class extends qt {
6480
6480
  }
6481
6481
  drawTile(e, r, i) {
6482
6482
  var l, p;
6483
- if (n(this, Kt) === void 0)
6483
+ if (n(this, zt) === void 0)
6484
6484
  return;
6485
- const a = n(this, Kt).getContext("2d"), o = this.getSources();
6485
+ const a = n(this, zt).getContext("2d"), o = this.getSources();
6486
6486
  let c = 0, d = 0;
6487
6487
  for (; c < n(this, be).height - 5; ) {
6488
6488
  let g = 0;
@@ -6544,7 +6544,7 @@ const Qh = class extends qt {
6544
6544
  document.body.removeChild(n(this, st));
6545
6545
  } catch (e) {
6546
6546
  }
6547
- this.removeAllSources(), f(this, Kt, void 0), f(this, zt, void 0), f(this, zs, void 0);
6547
+ this.removeAllSources(), f(this, zt, void 0), f(this, Yt, void 0), f(this, zs, void 0);
6548
6548
  }
6549
6549
  /**
6550
6550
  * Initialize PiP and prepare sources
@@ -6559,9 +6559,9 @@ const Qh = class extends qt {
6559
6559
  f(this, be, {
6560
6560
  height: e != null ? e : Bp,
6561
6561
  width: r != null ? r : Hp
6562
- }), i.height = n(this, be).height, i.width = n(this, be).width, i.autoplay = !0, i.muted = !0, i.srcObject = n(this, Kt).captureStream(24), f(this, zt, i), n(this, zt).onloadedmetadata = () => {
6562
+ }), i.height = n(this, be).height, i.width = n(this, be).width, i.autoplay = !0, i.muted = !0, i.srcObject = n(this, zt).captureStream(24), f(this, Yt, i), n(this, Yt).onloadedmetadata = () => {
6563
6563
  try {
6564
- this.emit("pipStarted"), n(this, zt).onleavepictureinpicture = () => {
6564
+ this.emit("pipStarted"), n(this, Yt).onleavepictureinpicture = () => {
6565
6565
  this.emit("pipEnded");
6566
6566
  };
6567
6567
  } catch (a) {
@@ -6656,17 +6656,17 @@ const Qh = class extends qt {
6656
6656
  * Enable PiP
6657
6657
  */
6658
6658
  enable() {
6659
- f(this, Ys, "activating"), this.setupEventListeners(), this.updateMediaSession("CAMERA", n(this, De).videoEnabled), this.updateMediaSession("MIC", n(this, De).audioEnabled), document.body.appendChild(n(this, st)), f(this, zs, requestAnimationFrame(() => this.animate())), n(this, zt).onloadedmetadata = () => {
6660
- n(this, zt).requestPictureInPicture().then(() => {
6659
+ f(this, Ys, "activating"), this.setupEventListeners(), this.updateMediaSession("CAMERA", n(this, De).videoEnabled), this.updateMediaSession("MIC", n(this, De).audioEnabled), document.body.appendChild(n(this, st)), f(this, zs, requestAnimationFrame(() => this.animate())), n(this, Yt).onloadedmetadata = () => {
6660
+ n(this, Yt).requestPictureInPicture().then(() => {
6661
6661
  f(this, Ys, "active");
6662
6662
  });
6663
- }, n(this, zt).readyState === 4 && n(this, zt).requestPictureInPicture().then(() => {
6663
+ }, n(this, Yt).readyState === 4 && n(this, Yt).requestPictureInPicture().then(() => {
6664
6664
  f(this, Ys, "active");
6665
6665
  });
6666
6666
  }
6667
6667
  };
6668
6668
  let wu = Qh;
6669
- Kt = new WeakMap(), mi = new WeakMap(), st = new WeakMap(), zt = new WeakMap(), be = new WeakMap(), ps = new WeakMap(), zs = new WeakMap(), gt = new WeakMap(), De = new WeakMap(), Vn = new WeakMap(), Ln = new WeakMap(), Ys = new WeakMap(), xn = new WeakMap();
6669
+ zt = new WeakMap(), mi = new WeakMap(), st = new WeakMap(), Yt = new WeakMap(), be = new WeakMap(), ps = new WeakMap(), zs = new WeakMap(), gt = new WeakMap(), De = new WeakMap(), Vn = new WeakMap(), Ln = new WeakMap(), Ys = new WeakMap(), xn = new WeakMap();
6670
6670
  var Sr;
6671
6671
  (function(s) {
6672
6672
  s[s.PUBLISHER = 0] = "PUBLISHER", s[s.SUBSCRIBER = 1] = "SUBSCRIBER";
@@ -12431,7 +12431,7 @@ var zM = Object.defineProperty, YM = Object.getOwnPropertyDescriptor, cs = (s, t
12431
12431
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
12432
12432
  return r && i && zM(t, e, i), i;
12433
12433
  };
12434
- class jt extends KM {
12434
+ class Gt extends KM {
12435
12435
  constructor(e, r) {
12436
12436
  super(e, r);
12437
12437
  /**
@@ -12669,43 +12669,43 @@ class jt extends KM {
12669
12669
  }
12670
12670
  cs([
12671
12671
  E.trace("APIClient.getIPDetails")
12672
- ], jt.prototype, "getIPDetails", 1);
12672
+ ], Gt.prototype, "getIPDetails", 1);
12673
12673
  cs([
12674
12674
  E.trace("APIClient.getICEServers")
12675
- ], jt.prototype, "getICEServers", 1);
12675
+ ], Gt.prototype, "getICEServers", 1);
12676
12676
  cs([
12677
12677
  E.trace("APIClient.getPlugins")
12678
- ], jt.prototype, "getPlugins", 1);
12678
+ ], Gt.prototype, "getPlugins", 1);
12679
12679
  cs([
12680
12680
  E.trace("APIClient.startLivestreaming")
12681
- ], jt.prototype, "startLivestreaming", 1);
12681
+ ], Gt.prototype, "startLivestreaming", 1);
12682
12682
  cs([
12683
12683
  E.trace("APIClient.stopLivestreaming")
12684
- ], jt.prototype, "stopLivestreaming", 1);
12684
+ ], Gt.prototype, "stopLivestreaming", 1);
12685
12685
  cs([
12686
12686
  E.trace("APIClient.getActiveLivestream")
12687
- ], jt.prototype, "getActiveLivestream", 1);
12687
+ ], Gt.prototype, "getActiveLivestream", 1);
12688
12688
  cs([
12689
12689
  E.trace("APIClient.getUserDetails")
12690
- ], jt.prototype, "getUserDetails", 1);
12690
+ ], Gt.prototype, "getUserDetails", 1);
12691
12691
  cs([
12692
12692
  E.trace("APIClient.startRecording")
12693
- ], jt.prototype, "startRecording", 1);
12693
+ ], Gt.prototype, "startRecording", 1);
12694
12694
  cs([
12695
12695
  E.trace("APIClient.stopRecording")
12696
- ], jt.prototype, "updateRecording", 1);
12696
+ ], Gt.prototype, "updateRecording", 1);
12697
12697
  cs([
12698
12698
  E.trace("APIClient.getActiveRecording")
12699
- ], jt.prototype, "getActiveRecording", 1);
12699
+ ], Gt.prototype, "getActiveRecording", 1);
12700
12700
  cs([
12701
12701
  E.trace("APIClient.getActiveTranscript")
12702
- ], jt.prototype, "getActiveTranscript", 1);
12702
+ ], Gt.prototype, "getActiveTranscript", 1);
12703
12703
  cs([
12704
12704
  E.trace("APIClient.getRoomNodeData")
12705
- ], jt.prototype, "getRoomNodeData", 1);
12705
+ ], Gt.prototype, "getRoomNodeData", 1);
12706
12706
  let Vu;
12707
12707
  function QM(s, t) {
12708
- return Vu = new jt(s, t), Vu;
12708
+ return Vu = new Gt(s, t), Vu;
12709
12709
  }
12710
12710
  function dt() {
12711
12711
  return Vu;
@@ -12738,7 +12738,7 @@ var ZM = Object.defineProperty, e0 = Object.getOwnPropertyDescriptor, ht = (s, t
12738
12738
  };
12739
12739
  const t0 = ["text", "image", "file", "custom", "poll"], ud = { maxInvocations: 180, period: 60 };
12740
12740
  var Z, fi, $e, vi, Si, xd, Mf, No, Lu, Ag;
12741
- let ze = (Ag = class extends qt {
12741
+ let ze = (Ag = class extends jt {
12742
12742
  constructor(t, e, r, i, a) {
12743
12743
  const o = t.getValue("logger");
12744
12744
  super(o);
@@ -13539,7 +13539,7 @@ var n0 = Object.defineProperty, a0 = Object.getOwnPropertyDescriptor, o0 = (s, t
13539
13539
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
13540
13540
  return r && i && n0(t, e, i), i;
13541
13541
  }, Ud, Df, $d, Of, Fn, Bn, Vo, Dg;
13542
- let xu = (Dg = class extends qt {
13542
+ let xu = (Dg = class extends jt {
13543
13543
  constructor(t, e, r) {
13544
13544
  const i = t.getValue("logger");
13545
13545
  super(i);
@@ -13738,7 +13738,7 @@ var u0 = Object.defineProperty, h0 = Object.getOwnPropertyDescriptor, p0 = (s, t
13738
13738
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
13739
13739
  return r && i && u0(t, e, i), i;
13740
13740
  }, Vf = /* @__PURE__ */ ((s) => (s[s.User = 0] = "User", s[s.Meeting = 1] = "Meeting", s))(Vf || {}), qn, Lo, $u, yi, xo, Ng;
13741
- let Uu = (Ng = class extends qt {
13741
+ let Uu = (Ng = class extends jt {
13742
13742
  constructor(t, e, r, i, a) {
13743
13743
  const o = t.getValue("logger");
13744
13744
  super(o);
@@ -13835,7 +13835,7 @@ var m0 = Object.defineProperty, f0 = Object.getOwnPropertyDescriptor, Lf = (s, t
13835
13835
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
13836
13836
  return r && i && m0(t, e, i), i;
13837
13837
  }, Uo, Vg;
13838
- let ei = (Vg = class extends qt {
13838
+ let ei = (Vg = class extends jt {
13839
13839
  constructor(t) {
13840
13840
  const e = t.getValue("logger");
13841
13841
  super(e);
@@ -14155,21 +14155,21 @@ var y0 = Object.defineProperty, E0 = Object.getOwnPropertyDescriptor, mn = (s, t
14155
14155
  for (var i = r > 1 ? void 0 : r ? E0(t, e) : t, a = s.length - 1, o; a >= 0; a--)
14156
14156
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
14157
14157
  return r && i && y0(t, e, i), i;
14158
- }, Yt, Fd, ie, $o, Ds, We, Fo, Fu, Gn, hd;
14159
- class si extends qt {
14158
+ }, Qt, Fd, ie, $o, Ds, We, Fo, Fu, Gn, hd;
14159
+ class si extends jt {
14160
14160
  constructor(e, r, i, a, o) {
14161
14161
  const c = e.getValue("logger");
14162
14162
  super(c);
14163
14163
  // eslint-disable-next-line class-methods-use-this
14164
14164
  m(this, Fo);
14165
14165
  m(this, Gn);
14166
- m(this, Yt, void 0);
14166
+ m(this, Qt, void 0);
14167
14167
  m(this, Fd, void 0);
14168
14168
  m(this, ie, void 0);
14169
14169
  m(this, $o, void 0);
14170
14170
  m(this, Ds, void 0);
14171
14171
  m(this, We, void 0);
14172
- f(this, We, e), f(this, Yt, a), f(this, Fd, o), f(this, ie, r), f(this, $o, i), f(this, Ds, []), this.setupEvents();
14172
+ f(this, We, e), f(this, Qt, a), f(this, Fd, o), f(this, ie, r), f(this, $o, i), f(this, Ds, []), this.setupEvents();
14173
14173
  }
14174
14174
  /**
14175
14175
  * @access private
@@ -14214,7 +14214,7 @@ class si extends qt {
14214
14214
  };
14215
14215
  n(this, ie).permissions.on("permissionsUpdate", (a) => {
14216
14216
  const { canAcceptProductionRequests: o } = a;
14217
- o !== void 0 && (n(this, ie).permissions.acceptStageRequests ? (r(), n(this, Yt).getStageRequests()) : (i(), f(this, Ds, []), this.emit("stageAccessRequestUpdate", n(this, Ds))));
14217
+ o !== void 0 && (n(this, ie).permissions.acceptStageRequests ? (r(), n(this, Qt).getStageRequests()) : (i(), f(this, Ds, []), this.emit("stageAccessRequestUpdate", n(this, Ds))));
14218
14218
  }), n(this, ie).permissions.acceptStageRequests && r();
14219
14219
  }
14220
14220
  getAccessRequests() {
@@ -14244,14 +14244,14 @@ class si extends qt {
14244
14244
  U(this, Gn, hd).call(this, "ACCEPTED_TO_JOIN_STAGE");
14245
14245
  return;
14246
14246
  }
14247
- n(this, Yt).requestAccess(), U(this, Gn, hd).call(this, "REQUESTED_TO_JOIN_STAGE");
14247
+ n(this, Qt).requestAccess(), U(this, Gn, hd).call(this, "REQUESTED_TO_JOIN_STAGE");
14248
14248
  });
14249
14249
  }
14250
14250
  cancelRequestAccess() {
14251
14251
  return u(this, null, function* () {
14252
14252
  if (!n(this, ie).permissions.stageEnabled)
14253
14253
  throw this.logger.error("Stage::stage_disabled"), new b("Stage is disabled", "2003");
14254
- n(this, Yt).cancelRequestAccess(), U(this, Gn, hd).call(this, "OFF_STAGE");
14254
+ n(this, Qt).cancelRequestAccess(), U(this, Gn, hd).call(this, "OFF_STAGE");
14255
14255
  });
14256
14256
  }
14257
14257
  grantAccess(e) {
@@ -14263,7 +14263,7 @@ class si extends qt {
14263
14263
  throw this.logger.error("Stage::stage_disabled"), new b("Stage is disabled", "2003");
14264
14264
  if (!n(this, ie).permissions.acceptStageRequests)
14265
14265
  throw this.logger.error("Stage::grant_access::permission_denied"), new b("You do not have permission to perform this action", "2001");
14266
- return n(this, Yt).grantAccess(e);
14266
+ return n(this, Qt).grantAccess(e);
14267
14267
  }
14268
14268
  denyAccess(e) {
14269
14269
  if (!n(this, ie).roomJoined)
@@ -14275,7 +14275,7 @@ class si extends qt {
14275
14275
  throw this.logger.error("Stage::stage_disabled"), new b("Stage is disabled", "2003");
14276
14276
  if (!n(this, ie).permissions.acceptStageRequests)
14277
14277
  throw this.logger.error("Stage::deny_access::permission_denied"), new b("You do not have permission to perform this action", "2001");
14278
- return n(this, Yt).denyAccess(e);
14278
+ return n(this, Qt).denyAccess(e);
14279
14279
  }
14280
14280
  /**
14281
14281
  * Returns the peerId of the current user
@@ -14290,7 +14290,7 @@ class si extends qt {
14290
14290
  throw new b("You are already on stage.", "2006");
14291
14291
  if (this.status !== "ACCEPTED_TO_JOIN_STAGE" || n(this, ie).permissions.stageAccess === j.NotAllowed)
14292
14292
  throw new b(`Unable to join stage you are currently ${this.status}`, "2006");
14293
- if (n(this, We).setValue("stageStatus", "ON_STAGE", !1), yield n(this, Yt).joinStage(), e === At.Livestream) {
14293
+ if (n(this, We).setValue("stageStatus", "ON_STAGE", !1), yield n(this, Qt).joinStage(), e === At.Livestream) {
14294
14294
  yield n(this, We).getValue("selfController").joinRoom();
14295
14295
  return;
14296
14296
  }
@@ -14303,7 +14303,7 @@ class si extends qt {
14303
14303
  throw this.logger.error("Stage::stage_disabled"), new b("Stage is disabled", "2003");
14304
14304
  if (!(this.status === "ON_STAGE" || this.status === "ACCEPTED_TO_JOIN_STAGE"))
14305
14305
  throw new b(`Unable to leave stage you are currently ${this.status}`, "2006");
14306
- n(this, ie).setIsPinned(!1), n(this, We).setValue("stageStatus", "OFF_STAGE", !1), yield n(this, Yt).leaveStage(n(this, ie).userId);
14306
+ n(this, ie).setIsPinned(!1), n(this, We).setValue("stageStatus", "OFF_STAGE", !1), yield n(this, Qt).leaveStage(n(this, ie).userId);
14307
14307
  try {
14308
14308
  yield n(this, We).getValue("peerSessionStore").emitAsync(k.LEAVE_MEDIA_ROOM, "stageLeft");
14309
14309
  } catch (e) {
@@ -14328,11 +14328,11 @@ class si extends qt {
14328
14328
  throw this.logger.error("Stage::stage_disabled"), new b("Stage is disabled", "2003");
14329
14329
  if (!n(this, ie).permissions.acceptStageRequests)
14330
14330
  throw this.logger.error("Stage::kick::permission_denied"), new b("You do not have permissions for kick", "2001");
14331
- return n(this, Yt).kick(e);
14331
+ return n(this, Qt).kick(e);
14332
14332
  });
14333
14333
  }
14334
14334
  }
14335
- Yt = new WeakMap(), Fd = new WeakMap(), ie = new WeakMap(), $o = new WeakMap(), Ds = new WeakMap(), We = new WeakMap(), Fo = new WeakSet(), Fu = function() {
14335
+ Qt = new WeakMap(), Fd = new WeakMap(), ie = new WeakMap(), $o = new WeakMap(), Ds = new WeakMap(), We = new WeakMap(), Fo = new WeakSet(), Fu = function() {
14336
14336
  return n(this, We).getValue("roomNodeClient");
14337
14337
  }, Gn = new WeakSet(), hd = function(e) {
14338
14338
  return u(this, null, function* () {
@@ -15043,14 +15043,14 @@ var M0 = Object.defineProperty, D0 = Object.getOwnPropertyDescriptor, ql = (s, t
15043
15043
  for (var i = r > 1 ? void 0 : r ? D0(t, e) : t, a = s.length - 1, o; a >= 0; a--)
15044
15044
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
15045
15045
  return r && i && M0(t, e, i), i;
15046
- }, Qt, Yn, ms, Ug;
15046
+ }, Xt, Yn, ms, Ug;
15047
15047
  const Bf = (Ug = class {
15048
15048
  constructor(s, t, e, r) {
15049
15049
  h(this, "plugins");
15050
- m(this, Qt, void 0);
15050
+ m(this, Xt, void 0);
15051
15051
  m(this, Yn, void 0);
15052
15052
  m(this, ms, void 0);
15053
- f(this, Qt, t), f(this, Yn, e), f(this, ms, s), this.plugins = r, this.setupEvents();
15053
+ f(this, Xt, t), f(this, Yn, e), f(this, ms, s), this.plugins = r, this.setupEvents();
15054
15054
  }
15055
15055
  /**
15056
15056
  * @access private
@@ -15091,7 +15091,7 @@ const Bf = (Ug = class {
15091
15091
  getRoomPlugins() {
15092
15092
  return u(this, null, function* () {
15093
15093
  var t;
15094
- const { plugins: s } = yield n(this, Qt).getActivePlugins();
15094
+ const { plugins: s } = yield n(this, Xt).getActivePlugins();
15095
15095
  (t = this.plugins.active) == null || t.toArray().forEach((e) => {
15096
15096
  this.disablePlugin({ id: e.id });
15097
15097
  }), yield Promise.all(
@@ -15140,14 +15140,14 @@ const Bf = (Ug = class {
15140
15140
  }
15141
15141
  ), n(this, ms).getValue("peerSessionStore").onAsync(k.SOCKET_SERVICE_ROOM_JOINED, () => u(this, null, function* () {
15142
15142
  yield this.getRoomPlugins(), this.logger.debug("[SOCKET_SERVICE_ROOM_JOINED] resolved request to fetch plugins.");
15143
- })), n(this, Qt).on(
15143
+ })), n(this, Xt).on(
15144
15144
  J.addPlugin,
15145
15145
  (s) => u(this, null, function* () {
15146
15146
  var e;
15147
15147
  const t = s.pluginId;
15148
15148
  (e = this.plugins.all.get(t)) != null && e.active || (yield this.enablePlugin({ id: t, enabledBy: s.enabledBy }));
15149
15149
  })
15150
- ), n(this, Qt).on(
15150
+ ), n(this, Xt).on(
15151
15151
  J.removePlugin,
15152
15152
  (s) => u(this, null, function* () {
15153
15153
  var e;
@@ -15158,7 +15158,7 @@ const Bf = (Ug = class {
15158
15158
  J.enablePluginForPeers,
15159
15159
  J.enablePluginForRoom
15160
15160
  ].forEach((s) => {
15161
- n(this, Qt).on(
15161
+ n(this, Xt).on(
15162
15162
  s,
15163
15163
  (t, e) => u(this, null, function* () {
15164
15164
  this.sendIframeEvent(s, t.pluginId, e, {
@@ -15170,7 +15170,7 @@ const Bf = (Ug = class {
15170
15170
  J.disablePluginForPeers,
15171
15171
  J.disablePluginForRoom
15172
15172
  ].forEach((s) => {
15173
- n(this, Qt).on(
15173
+ n(this, Xt).on(
15174
15174
  s,
15175
15175
  (t, e) => u(this, null, function* () {
15176
15176
  this.sendIframeEvent(s, t.pluginId, e, {
@@ -15182,7 +15182,7 @@ const Bf = (Ug = class {
15182
15182
  J.customPluginEventToPeers,
15183
15183
  J.customPluginEventToRoom
15184
15184
  ].forEach((s) => {
15185
- n(this, Qt).on(
15185
+ n(this, Xt).on(
15186
15186
  s,
15187
15187
  (t, e) => u(this, null, function* () {
15188
15188
  this.sendIframeEvent(s, t.pluginId, e, {
@@ -15197,7 +15197,7 @@ const Bf = (Ug = class {
15197
15197
  J.storeGetKeys,
15198
15198
  J.storeDeleteKeys
15199
15199
  ].forEach((s) => {
15200
- n(this, Qt).on(
15200
+ n(this, Xt).on(
15201
15201
  s,
15202
15202
  (t, e) => u(this, null, function* () {
15203
15203
  var i;
@@ -15218,7 +15218,7 @@ const Bf = (Ug = class {
15218
15218
  });
15219
15219
  })
15220
15220
  );
15221
- }), n(this, Qt).on(
15221
+ }), n(this, Xt).on(
15222
15222
  J.storeDelete,
15223
15223
  (s, t) => u(this, null, function* () {
15224
15224
  this.sendIframeEvent(J.storeDelete, s.pluginId, t, {
@@ -15252,7 +15252,7 @@ const Bf = (Ug = class {
15252
15252
  this.broadcastIframeEvent(Ie.stageStatusUpdate, s);
15253
15253
  });
15254
15254
  }
15255
- }, Qt = new WeakMap(), Yn = new WeakMap(), ms = new WeakMap(), Ug);
15255
+ }, Xt = new WeakMap(), Yn = new WeakMap(), ms = new WeakMap(), Ug);
15256
15256
  let Hc = Bf;
15257
15257
  ql([
15258
15258
  E.trace("PluginController.getRoomPlugins")
@@ -15347,7 +15347,7 @@ var N0 = Object.defineProperty, V0 = Object.getOwnPropertyDescriptor, qc = (s, t
15347
15347
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
15348
15348
  return r && i && N0(t, e, i), i;
15349
15349
  }, Qn, Xn, Zn, pd, $g;
15350
- let ln = ($g = class extends qt {
15350
+ let ln = ($g = class extends jt {
15351
15351
  constructor(t, e) {
15352
15352
  const r = t.getValue("logger");
15353
15353
  super(r);
@@ -15584,11 +15584,11 @@ class Lh {
15584
15584
  });
15585
15585
  }
15586
15586
  }
15587
- var F0 = Object.defineProperty, B0 = Object.getOwnPropertyDescriptor, Gt = (s, t, e, r) => {
15587
+ var F0 = Object.defineProperty, B0 = Object.getOwnPropertyDescriptor, Wt = (s, t, e, r) => {
15588
15588
  for (var i = r > 1 ? void 0 : r ? B0(t, e) : t, a = s.length - 1, o; a >= 0; a--)
15589
15589
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
15590
15590
  return r && i && F0(t, e, i), i;
15591
- }, He, Se, pe, Xs, Xt, qo, ke;
15591
+ }, He, Se, pe, Xs, Zt, qo, ke;
15592
15592
  class Dt extends $a {
15593
15593
  constructor(e, r, i = kd, a = !0) {
15594
15594
  const o = e.getValue("logger");
@@ -15597,7 +15597,7 @@ class Dt extends $a {
15597
15597
  m(this, Se, void 0);
15598
15598
  m(this, pe, void 0);
15599
15599
  m(this, Xs, void 0);
15600
- m(this, Xt, void 0);
15600
+ m(this, Zt, void 0);
15601
15601
  m(this, qo, void 0);
15602
15602
  m(this, ke, void 0);
15603
15603
  h(this, "audioUpdateInProgress");
@@ -15612,7 +15612,7 @@ class Dt extends $a {
15612
15612
  n(this, He),
15613
15613
  void 0,
15614
15614
  i
15615
- )), f(this, Xt, new pD(
15615
+ )), f(this, Zt, new pD(
15616
15616
  n(this, ke),
15617
15617
  n(this, He)
15618
15618
  )), f(this, Xs, new uD(
@@ -15624,7 +15624,7 @@ class Dt extends $a {
15624
15624
  ), n(this, pe).on(
15625
15625
  "trackChanged",
15626
15626
  this.onVideoTrackChanged.bind(this)
15627
- ), n(this, pe).on("trackEnded", this.onVideoTrackEnded.bind(this)), n(this, Xt).on(
15627
+ ), n(this, pe).on("trackEnded", this.onVideoTrackEnded.bind(this)), n(this, Zt).on(
15628
15628
  "trackEnded",
15629
15629
  this.onScreenShareEnded.bind(this)
15630
15630
  ), this.onVisibilityChange = this.onVisibilityChange.bind(this), document.addEventListener("visibilitychange", this.onVisibilityChange);
@@ -15842,26 +15842,26 @@ class Dt extends $a {
15842
15842
  }
15843
15843
  get screenShareTracks() {
15844
15844
  return {
15845
- audio: n(this, Xt).audioMediaTrack,
15846
- video: n(this, Xt).videoMediaTrack
15845
+ audio: n(this, Zt).audioMediaTrack,
15846
+ video: n(this, Zt).videoMediaTrack
15847
15847
  };
15848
15848
  }
15849
15849
  get screenShareEnabled() {
15850
- return n(this, Xt).trackEnabled;
15850
+ return n(this, Zt).trackEnabled;
15851
15851
  }
15852
15852
  enableScreenShare() {
15853
15853
  return u(this, null, function* () {
15854
- yield n(this, Xt).enableScreenShare();
15854
+ yield n(this, Zt).enableScreenShare();
15855
15855
  });
15856
15856
  }
15857
15857
  disableScreenShare() {
15858
15858
  return u(this, null, function* () {
15859
- n(this, Xt).disableScreenShare();
15859
+ n(this, Zt).disableScreenShare();
15860
15860
  });
15861
15861
  }
15862
15862
  updateScreenshareConstraints(e) {
15863
15863
  return u(this, null, function* () {
15864
- yield n(this, Xt).updateConstraints(e);
15864
+ yield n(this, Zt).updateConstraints(e);
15865
15865
  });
15866
15866
  }
15867
15867
  getSpeakerDevices(e) {
@@ -15892,7 +15892,7 @@ class Dt extends $a {
15892
15892
  return n(this, pe).setVideoMiddlewareGlobalConfig(e);
15893
15893
  }
15894
15894
  destruct() {
15895
- n(this, Se).disableTrack(), n(this, pe).disableTrack(), n(this, pe).terminateMiddlewareWebWorker(), n(this, Xt).disableScreenShare(), n(this, He).destruct();
15895
+ n(this, Se).disableTrack(), n(this, pe).disableTrack(), n(this, pe).terminateMiddlewareWebWorker(), n(this, Zt).disableScreenShare(), n(this, He).destruct();
15896
15896
  }
15897
15897
  onDeviceChange(e, r) {
15898
15898
  return u(this, null, function* () {
@@ -15948,44 +15948,44 @@ class Dt extends $a {
15948
15948
  });
15949
15949
  }
15950
15950
  }
15951
- He = new WeakMap(), Se = new WeakMap(), pe = new WeakMap(), Xs = new WeakMap(), Xt = new WeakMap(), qo = new WeakMap(), ke = new WeakMap();
15952
- Gt([
15951
+ He = new WeakMap(), Se = new WeakMap(), pe = new WeakMap(), Xs = new WeakMap(), Zt = new WeakMap(), qo = new WeakMap(), ke = new WeakMap();
15952
+ Wt([
15953
15953
  E.trace("MediaHandler.setupStreams")
15954
15954
  ], Dt.prototype, "setupStreams", 1);
15955
- Gt([
15955
+ Wt([
15956
15956
  E.trace("MediaHandler.enableAudio")
15957
15957
  ], Dt.prototype, "enableAudio", 1);
15958
- Gt([
15958
+ Wt([
15959
15959
  E.trace("MediaHandler.disableAudio")
15960
15960
  ], Dt.prototype, "disableAudio", 1);
15961
- Gt([
15961
+ Wt([
15962
15962
  E.trace("MediaHandler.setAudioDevice")
15963
15963
  ], Dt.prototype, "setAudioDevice", 1);
15964
- Gt([
15964
+ Wt([
15965
15965
  E.trace("MediaHandler.enableVideo")
15966
15966
  ], Dt.prototype, "enableVideo", 1);
15967
- Gt([
15967
+ Wt([
15968
15968
  E.trace("MediaHandler.disableVideo")
15969
15969
  ], Dt.prototype, "disableVideo", 1);
15970
- Gt([
15970
+ Wt([
15971
15971
  E.trace("MediaHandler.setVideoDevice")
15972
15972
  ], Dt.prototype, "setVideoDevice", 1);
15973
- Gt([
15973
+ Wt([
15974
15974
  E.trace("MediaHandler.updateVideoConstraints")
15975
15975
  ], Dt.prototype, "updateVideoConstraints", 1);
15976
- Gt([
15976
+ Wt([
15977
15977
  E.trace("MediaHandler.enableScreenShare")
15978
15978
  ], Dt.prototype, "enableScreenShare", 1);
15979
- Gt([
15979
+ Wt([
15980
15980
  E.trace("MediaHandler.disableScreenShare")
15981
15981
  ], Dt.prototype, "disableScreenShare", 1);
15982
- Gt([
15982
+ Wt([
15983
15983
  E.trace("MediaHandler.updateScreenshareConstraints")
15984
15984
  ], Dt.prototype, "updateScreenshareConstraints", 1);
15985
- Gt([
15985
+ Wt([
15986
15986
  E.trace("MediaHandler.destruct")
15987
15987
  ], Dt.prototype, "destruct", 1);
15988
- Gt([
15988
+ Wt([
15989
15989
  E.trace("MediaHandler.onDeviceChange")
15990
15990
  ], Dt.prototype, "onDeviceChange", 1);
15991
15991
  function sd(s, t, e) {
@@ -16363,14 +16363,14 @@ var Q0 = Object.defineProperty, X0 = Object.getOwnPropertyDescriptor, Ms = (s, t
16363
16363
  for (var i = r > 1 ? void 0 : r ? X0(t, e) : t, a = s.length - 1, o; a >= 0; a--)
16364
16364
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
16365
16365
  return r && i && Q0(t, e, i), i;
16366
- }, ea, Zt, Ne, Fg;
16367
- let Ht = (Fg = class extends Y0 {
16366
+ }, ea, es, Ne, Fg;
16367
+ let qt = (Fg = class extends Y0 {
16368
16368
  constructor(t, e) {
16369
16369
  super();
16370
16370
  m(this, ea, void 0);
16371
- m(this, Zt, void 0);
16371
+ m(this, es, void 0);
16372
16372
  m(this, Ne, void 0);
16373
- f(this, Ne, t), f(this, Zt, new z0(t, e)), f(this, ea, new AbortController());
16373
+ f(this, Ne, t), f(this, es, new z0(t, e)), f(this, ea, new AbortController());
16374
16374
  }
16375
16375
  /**
16376
16376
  * @access private
@@ -16387,7 +16387,7 @@ let Ht = (Fg = class extends Y0 {
16387
16387
  return n(this, Ne).getValue("logger");
16388
16388
  }
16389
16389
  get constraintsBuilder() {
16390
- return n(this, Zt);
16390
+ return n(this, es);
16391
16391
  }
16392
16392
  destruct() {
16393
16393
  return u(this, null, function* () {
@@ -16418,8 +16418,8 @@ let Ht = (Fg = class extends Y0 {
16418
16418
  let v;
16419
16419
  e && g ? v = e : d && ((a = d[0]) != null && a.deviceId) && (v = (o = d[0]) == null ? void 0 : o.deviceId);
16420
16420
  const S = {
16421
- audio: n(this, Zt).getAudioConstraints(p).audio,
16422
- video: n(this, Zt).getVideoConstraints(v).video
16421
+ audio: n(this, es).getAudioConstraints(p).audio,
16422
+ video: n(this, es).getVideoConstraints(v).video
16423
16423
  };
16424
16424
  this.logger.info("getUserMediaWithoutTimeout::requesting_user_media", {
16425
16425
  constraints: JSON.stringify(S)
@@ -16465,7 +16465,7 @@ let Ht = (Fg = class extends Y0 {
16465
16465
  const o = (l) => u(this, null, function* () {
16466
16466
  let p;
16467
16467
  try {
16468
- r = r.filter((v) => v.deviceId !== l), p = n(this, Zt).getAudioConstraints(l), this.logger.info("getUserMediaWithoutTimeout::requesting_user_media", {
16468
+ r = r.filter((v) => v.deviceId !== l), p = n(this, es).getAudioConstraints(l), this.logger.info("getUserMediaWithoutTimeout::requesting_user_media", {
16469
16469
  constraints: JSON.stringify(p)
16470
16470
  });
16471
16471
  const [g] = (yield navigator.mediaDevices.getUserMedia(p)).getAudioTracks();
@@ -16486,7 +16486,7 @@ let Ht = (Fg = class extends Y0 {
16486
16486
  constraints: JSON.stringify(p),
16487
16487
  error: g
16488
16488
  });
16489
- const _ = n(this, Zt).getAudioConstraints(
16489
+ const _ = n(this, es).getAudioConstraints(
16490
16490
  P.deviceId
16491
16491
  );
16492
16492
  return this.logger.info("getAudioTrack::retrying_gum_for_next_device", {
@@ -16556,7 +16556,7 @@ let Ht = (Fg = class extends Y0 {
16556
16556
  constraints: JSON.stringify(v),
16557
16557
  error: S
16558
16558
  });
16559
- const w = n(this, Zt).getVideoConstraints(
16559
+ const w = n(this, es).getVideoConstraints(
16560
16560
  C.deviceId
16561
16561
  );
16562
16562
  return this.logger.info("getVideoTrack::retrying_gum_for_next_device", {
@@ -16567,7 +16567,7 @@ let Ht = (Fg = class extends Y0 {
16567
16567
  }
16568
16568
  });
16569
16569
  try {
16570
- const v = n(this, Zt).getVideoConstraints(c), S = yield d(v);
16570
+ const v = n(this, es).getVideoConstraints(c), S = yield d(v);
16571
16571
  return this.permissions.video !== "ACCEPTED" && (this.permissions.video = "ACCEPTED", n(this, Ne).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
16572
16572
  message: this.permissions.video,
16573
16573
  kind: "video"
@@ -16604,7 +16604,7 @@ let Ht = (Fg = class extends Y0 {
16604
16604
  }
16605
16605
  });
16606
16606
  try {
16607
- const e = n(this, Zt).getScreenShareConstraints(), r = yield t(e);
16607
+ const e = n(this, es).getScreenShareConstraints(), r = yield t(e);
16608
16608
  return this.permissions.screenshare !== "ACCEPTED" && (this.permissions.screenshare = "ACCEPTED", n(this, Ne).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, {
16609
16609
  message: this.permissions.screenshare,
16610
16610
  kind: "screenshare"
@@ -16727,41 +16727,41 @@ let Ht = (Fg = class extends Y0 {
16727
16727
  }
16728
16728
  });
16729
16729
  }
16730
- }, ea = new WeakMap(), Zt = new WeakMap(), Ne = new WeakMap(), Fg);
16730
+ }, ea = new WeakMap(), es = new WeakMap(), Ne = new WeakMap(), Fg);
16731
16731
  Ms([
16732
16732
  E.trace("WebMediaInterface.destruct")
16733
- ], Ht.prototype, "destruct", 1);
16733
+ ], qt.prototype, "destruct", 1);
16734
16734
  Ms([
16735
16735
  E.trace("WebMediaInterface.handlePermissionErrors")
16736
- ], Ht.prototype, "handlePermissionErrors", 1);
16736
+ ], qt.prototype, "handlePermissionErrors", 1);
16737
16737
  Ms([
16738
16738
  E.trace("WebMediaInterface.getAudioAndVideoTrack")
16739
- ], Ht.prototype, "getAudioAndVideoTrack", 1);
16739
+ ], qt.prototype, "getAudioAndVideoTrack", 1);
16740
16740
  Ms([
16741
16741
  E.trace("WebMediaInterface.getAudioTrack")
16742
- ], Ht.prototype, "getAudioTrack", 1);
16742
+ ], qt.prototype, "getAudioTrack", 1);
16743
16743
  Ms([
16744
16744
  E.trace("WebMediaInterface.getVideoTrack")
16745
- ], Ht.prototype, "getVideoTrack", 1);
16745
+ ], qt.prototype, "getVideoTrack", 1);
16746
16746
  Ms([
16747
16747
  E.trace("WebMediaInterface.getScreenShareTracks")
16748
- ], Ht.prototype, "getScreenShareTracks", 1);
16748
+ ], qt.prototype, "getScreenShareTracks", 1);
16749
16749
  Ms([
16750
16750
  E.trace("WebMediaInterface.getAvailableDevices")
16751
- ], Ht.prototype, "getAvailableDevices", 1);
16751
+ ], qt.prototype, "getAvailableDevices", 1);
16752
16752
  Ms([
16753
16753
  E.trace("WebMediaInterface.getAvailableDevicesByKind")
16754
- ], Ht.prototype, "getAvailableDevicesByKind", 1);
16754
+ ], qt.prototype, "getAvailableDevicesByKind", 1);
16755
16755
  Ms([
16756
16756
  E.trace("WebMediaInterface.getDevice")
16757
- ], Ht.prototype, "getDevice", 1);
16757
+ ], qt.prototype, "getDevice", 1);
16758
16758
  Ms([
16759
16759
  E.trace("WebMediaInterface.onDeviceChange")
16760
- ], Ht.prototype, "onDeviceChange", 1);
16761
- Ht = Ms([
16760
+ ], qt.prototype, "onDeviceChange", 1);
16761
+ qt = Ms([
16762
16762
  ut("1600")
16763
- ], Ht);
16764
- const qf = Ht, an = {
16763
+ ], qt);
16764
+ const qf = qt, an = {
16765
16765
  setItem: (s, t, e) => {
16766
16766
  try {
16767
16767
  localStorage.setItem(s, t);
@@ -17671,7 +17671,7 @@ var vD = Object.defineProperty, SD = Object.getOwnPropertyDescriptor, Wf = (s, t
17671
17671
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
17672
17672
  return r && i && vD(t, e, i), i;
17673
17673
  }, ra, Ko;
17674
- class $h extends qt {
17674
+ class $h extends jt {
17675
17675
  constructor(e, r) {
17676
17676
  const i = e.getValue("logger");
17677
17677
  super(i);
@@ -18125,7 +18125,7 @@ var wD = Object.defineProperty, RD = Object.getOwnPropertyDescriptor, qa = (s, t
18125
18125
  };
18126
18126
  const bD = 0.8, kD = 1.2;
18127
18127
  var aa, oa, Ut, Ai, ho, Br, En, Mi, po, qd, Yf, er, Qo, Hr, Di, go, tr, jd, Xo, ju, Gd, Qf, Wd, Xf, Bg;
18128
- let Tr = (Bg = class extends qt {
18128
+ let Tr = (Bg = class extends jt {
18129
18129
  constructor(t, e, r, i) {
18130
18130
  const a = t.getValue("logger");
18131
18131
  super(a);
@@ -18620,14 +18620,14 @@ class MD {
18620
18620
  }
18621
18621
  }
18622
18622
  const Zf = new MD();
18623
- var DD = Object.defineProperty, OD = Object.getOwnPropertyDescriptor, Wt = (s, t, e, r) => {
18623
+ var DD = Object.defineProperty, OD = Object.getOwnPropertyDescriptor, Jt = (s, t, e, r) => {
18624
18624
  for (var i = r > 1 ? void 0 : r ? OD(t, e) : t, a = s.length - 1, o; a >= 0; a--)
18625
18625
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
18626
18626
  return r && i && DD(t, e, i), i;
18627
18627
  };
18628
18628
  const ND = ["ACTIVE_GRID", "PAGINATED", "MANUAL"];
18629
18629
  var Ee, Zo, Gu, Oi, mo, ca, gd, Ni, wt, Hg;
18630
- let Pt = (Hg = class extends qt {
18630
+ let Pt = (Hg = class extends jt {
18631
18631
  constructor(t, e, r) {
18632
18632
  const i = t.getValue("logger");
18633
18633
  super(i);
@@ -19046,53 +19046,53 @@ let Pt = (Hg = class extends qt {
19046
19046
  var t;
19047
19047
  return ((t = n(this, Ee).getValue("connectionHandler")) == null ? void 0 : t.mediaJoined) === !0;
19048
19048
  }, Ni = new WeakMap(), wt = new WeakMap(), Hg);
19049
- Wt([
19049
+ Jt([
19050
19050
  E.trace("Participants.setViewMode")
19051
19051
  ], Pt.prototype, "setViewMode", 1);
19052
- Wt([
19052
+ Jt([
19053
19053
  E.trace("Participants.setPage")
19054
19054
  ], Pt.prototype, "setPage", 1);
19055
- Wt([
19055
+ Jt([
19056
19056
  E.trace("Participants.disableAllAudio")
19057
19057
  ], Pt.prototype, "disableAllAudio", 1);
19058
- Wt([
19058
+ Jt([
19059
19059
  E.trace("Participants.disableAllVideo")
19060
19060
  ], Pt.prototype, "disableAllVideo", 1);
19061
- Wt([
19061
+ Jt([
19062
19062
  E.trace("Participants.disablePeerAudio")
19063
19063
  ], Pt.prototype, "disableAudio", 1);
19064
- Wt([
19064
+ Jt([
19065
19065
  E.trace("Participants.disablePeerVideo")
19066
19066
  ], Pt.prototype, "disableVideo", 1);
19067
- Wt([
19067
+ Jt([
19068
19068
  E.trace("Participants.kickPeer")
19069
19069
  ], Pt.prototype, "kick", 1);
19070
- Wt([
19070
+ Jt([
19071
19071
  E.trace("Participants.kickAll")
19072
19072
  ], Pt.prototype, "kickAll", 1);
19073
- Wt([
19073
+ Jt([
19074
19074
  E.trace("Participants.broadcastMessage"),
19075
19075
  Mt(Ba, "rateLimitConfig")
19076
19076
  ], Pt.prototype, "broadcastMessage", 1);
19077
- Wt([
19077
+ Jt([
19078
19078
  E.trace("Participants.getAllJoinedPeers"),
19079
19079
  Mt({ maxInvocations: 10, period: 60 })
19080
19080
  ], Pt.prototype, "getAllJoinedPeers", 1);
19081
- Wt([
19081
+ Jt([
19082
19082
  E.trace("Participant.updatePermissions"),
19083
19083
  Mt({ maxInvocations: 1e3, period: 60 })
19084
19084
  ], Pt.prototype, "updatePermissions", 1);
19085
- Wt([
19085
+ Jt([
19086
19086
  E.trace("Participants.getParticipantsInMeetingPreJoin")
19087
19087
  ], Pt.prototype, "getParticipantsInMeetingPreJoin", 1);
19088
- Pt = Wt([
19088
+ Pt = Jt([
19089
19089
  ut("1200")
19090
19090
  ], Pt);
19091
19091
  var VD = Object.defineProperty, LD = Object.getOwnPropertyDescriptor, fn = (s, t, e, r) => {
19092
19092
  for (var i = r > 1 ? void 0 : r ? LD(t, e) : t, a = s.length - 1, o; a >= 0; a--)
19093
19093
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
19094
19094
  return r && i && VD(t, e, i), i;
19095
- }, es, fs, da, qg;
19095
+ }, ts, fs, da, qg;
19096
19096
  const ev = (qg = class {
19097
19097
  constructor(s, t, e) {
19098
19098
  h(this, "participants");
@@ -19104,7 +19104,7 @@ const ev = (qg = class {
19104
19104
  h(this, "roomSocketHandler");
19105
19105
  h(this, "context");
19106
19106
  h(this, "videoPeerConsumerMap", /* @__PURE__ */ new Map());
19107
- m(this, es, { mode: "ACTIVE_GRID", page: 0 });
19107
+ m(this, ts, { mode: "ACTIVE_GRID", page: 0 });
19108
19108
  m(this, fs, !1);
19109
19109
  m(this, da, !1);
19110
19110
  h(this, "updateConsumerSpatialLayers", Ih(() => {
@@ -19399,8 +19399,8 @@ const ev = (qg = class {
19399
19399
  * */
19400
19400
  updateMediaSubscribedMaps(s, t) {
19401
19401
  const { page: e } = t != null ? t : {};
19402
- s && n(this, es).mode !== s && (n(this, es).mode = s), e && n(this, es).page !== e && (n(this, es).page = e);
19403
- const { mode: r, page: i } = n(this, es);
19402
+ s && n(this, ts).mode !== s && (n(this, ts).mode = s), e && n(this, ts).page !== e && (n(this, ts).page = e);
19403
+ const { mode: r, page: i } = n(this, ts);
19404
19404
  switch (r) {
19405
19405
  case "PAGINATED": {
19406
19406
  if (!i)
@@ -19432,8 +19432,8 @@ const ev = (qg = class {
19432
19432
  source: s
19433
19433
  }) {
19434
19434
  var r, i, a;
19435
- const e = ((r = n(this, es)) == null ? void 0 : r.mode) === "PAGINATED" && !n(this, fs) ? 200 : 0;
19436
- this.logger.info(`scheduleSyncConsumers():: Source: ${s}, ViewMode: ${(i = n(this, es)) == null ? void 0 : i.mode}, ConsumersSyncing: ${n(this, fs)}, Delay: ${e}, Page: ${(a = n(this, es)) == null ? void 0 : a.page}`), setTimeout(() => this.syncConsumers(), e);
19435
+ const e = ((r = n(this, ts)) == null ? void 0 : r.mode) === "PAGINATED" && !n(this, fs) ? 200 : 0;
19436
+ this.logger.info(`scheduleSyncConsumers():: Source: ${s}, ViewMode: ${(i = n(this, ts)) == null ? void 0 : i.mode}, ConsumersSyncing: ${n(this, fs)}, Delay: ${e}, Page: ${(a = n(this, ts)) == null ? void 0 : a.page}`), setTimeout(() => this.syncConsumers(), e);
19437
19437
  });
19438
19438
  }
19439
19439
  /**
@@ -19735,7 +19735,7 @@ const ev = (qg = class {
19735
19735
  const e = this.participants.joined.get(s);
19736
19736
  this.roomNodeClient.kick(s), yield this.roomSocketHandler.kick(s), e ? e.emit("kicked") : this.participants.joined.emit("kicked", { id: s });
19737
19737
  })), this.context.getValue("peerSessionStore").on(k.UPDATE_ACTIVE, (...r) => u(this, [...r], function* ({ viewMode: s, page: t, createAllConsumers: e } = { viewMode: "ACTIVE_GRID", page: 0, createAllConsumers: !1 }) {
19738
- this.logger.info(`UPDATE_ACTIVE event received - viewMode: ${n(this, es).mode}, page: ${t}, CreateAllConsumers: ${e}`), e && (this.logger.info(`UPDATE_ACTIVE viewMode: ${s}, Page: ${t}, Removing existing subscriptions.`), this.participants.videoSubscribed.clear(), this.participants.audioSubscribed.clear()), this.updateMediaSubscribedMaps(s, { page: t }), this.scheduleSyncConsumers({ source: "UPDATE_ACTIVE" });
19738
+ this.logger.info(`UPDATE_ACTIVE event received - viewMode: ${n(this, ts).mode}, page: ${t}, CreateAllConsumers: ${e}`), e && (this.logger.info(`UPDATE_ACTIVE viewMode: ${s}, Page: ${t}, Removing existing subscriptions.`), this.participants.videoSubscribed.clear(), this.participants.audioSubscribed.clear()), this.updateMediaSubscribedMaps(s, { page: t }), this.scheduleSyncConsumers({ source: "UPDATE_ACTIVE" });
19739
19739
  }));
19740
19740
  }
19741
19741
  onParticipantPinned(s) {
@@ -20088,7 +20088,7 @@ const ev = (qg = class {
20088
20088
  // priority
20089
20089
  })), t && this.context.getValue("peerSessionStore").emit(k.UPDATE_ACTIVE, { viewMode: this.participants.viewMode, page: this.participants.currentPage });
20090
20090
  }
20091
- }, es = new WeakMap(), fs = new WeakMap(), da = new WeakMap(), qg);
20091
+ }, ts = new WeakMap(), fs = new WeakMap(), da = new WeakMap(), qg);
20092
20092
  let _r = ev;
20093
20093
  fn([
20094
20094
  E.trace("ParticipantController.setupEvents")
@@ -20115,7 +20115,7 @@ const ue = Rs(
20115
20115
  Rh().permissions
20116
20116
  );
20117
20117
  var q, la, ua, Jd, ft, Nt;
20118
- const bn = class extends qt {
20118
+ const bn = class extends jt {
20119
20119
  constructor(e, r, i, a = !1) {
20120
20120
  const o = e.getValue("logger");
20121
20121
  super(o);
@@ -20521,12 +20521,13 @@ let Wu = bn;
20521
20521
  q = new WeakMap(), la = new WeakMap(), ua = new WeakMap(), Jd = new WeakMap(), ft = new WeakSet(), Nt = function() {
20522
20522
  return n(this, ua).getValue("stageStatus");
20523
20523
  };
20524
- var ts;
20525
- class tv extends qt {
20526
- constructor() {
20527
- super(...arguments);
20524
+ var $t;
20525
+ class tv extends jt {
20526
+ constructor(e, r) {
20527
+ super(r);
20528
20528
  h(this, "localMediaHandler");
20529
- m(this, ts, void 0);
20529
+ m(this, $t, void 0);
20530
+ f(this, $t, e);
20530
20531
  }
20531
20532
  updatePermission() {
20532
20533
  return u(this, null, function* () {
@@ -20534,7 +20535,7 @@ class tv extends qt {
20534
20535
  const e = (p, g) => {
20535
20536
  this.mediaPermissions[p] = g;
20536
20537
  const v = { message: this.mediaPermissions[p], kind: p };
20537
- g === "DENIED" ? n(this, ts).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_ERROR, v) : n(this, ts).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, v);
20538
+ g === "DENIED" ? n(this, $t).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_ERROR, v) : n(this, $t).getValue("peerSessionStore").emit(k.MEDIA_PERMISSION_UPDATE, v);
20538
20539
  };
20539
20540
  if (ye.getName() === "firefox")
20540
20541
  return;
@@ -20566,15 +20567,15 @@ class tv extends qt {
20566
20567
  var a, o, c, d;
20567
20568
  switch (r) {
20568
20569
  case "audio": {
20569
- (a = n(this, ts)) == null || a.getValue("callstats").mediaPermission("AUDIO", e), (o = n(this, ts)) == null || o.getValue("callstats").mediaPermission("SPEAKER", e);
20570
+ (a = n(this, $t)) == null || a.getValue("callstats").mediaPermission("AUDIO", e), (o = n(this, $t)) == null || o.getValue("callstats").mediaPermission("SPEAKER", e);
20570
20571
  break;
20571
20572
  }
20572
20573
  case "video": {
20573
- (c = n(this, ts)) == null || c.getValue("callstats").mediaPermission("VIDEO", e);
20574
+ (c = n(this, $t)) == null || c.getValue("callstats").mediaPermission("VIDEO", e);
20574
20575
  break;
20575
20576
  }
20576
20577
  case "screenshare": {
20577
- (d = n(this, ts)) == null || d.getValue("callstats").mediaPermission("SCREENSHARE", e);
20578
+ (d = n(this, $t)) == null || d.getValue("callstats").mediaPermission("SCREENSHARE", e);
20578
20579
  break;
20579
20580
  }
20580
20581
  }
@@ -20582,12 +20583,12 @@ class tv extends qt {
20582
20583
  }
20583
20584
  get peerId() {
20584
20585
  var e;
20585
- return (e = n(this, ts)) == null ? void 0 : e.getValue("peerId");
20586
+ return (e = n(this, $t)) == null ? void 0 : e.getValue("peerId");
20586
20587
  }
20587
20588
  init() {
20588
20589
  return u(this, arguments, function* (e = {}, r = !1, i = null) {
20589
20590
  var a, o, c, d, l, p, g;
20590
- if (ye.init(), i && f(this, ts, i), !this.localMediaHandler)
20591
+ if (ye.init(), i && f(this, $t, i), !this.localMediaHandler)
20591
20592
  try {
20592
20593
  let v = !0;
20593
20594
  if ((a = i == null ? void 0 : i.getValue("defaults")) != null && a.mediaHandler)
@@ -20653,7 +20654,7 @@ class tv extends qt {
20653
20654
  });
20654
20655
  }
20655
20656
  set context(e) {
20656
- f(this, ts, e), this.localMediaHandler.context = e;
20657
+ f(this, $t, e), this.localMediaHandler.context = e;
20657
20658
  }
20658
20659
  /**
20659
20660
  * Returns the `audioTrack`.
@@ -20911,7 +20912,7 @@ class tv extends qt {
20911
20912
  });
20912
20913
  }
20913
20914
  }
20914
- ts = new WeakMap();
20915
+ $t = new WeakMap();
20915
20916
  var xD = Object.defineProperty, UD = Object.getOwnPropertyDescriptor, _t = (s, t, e, r) => {
20916
20917
  for (var i = r > 1 ? void 0 : r ? UD(t, e) : t, a = s.length - 1, o; a >= 0; a--)
20917
20918
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
@@ -20921,7 +20922,7 @@ let Ye = (jg = class extends tv {
20921
20922
  constructor(t, e, r, i, a) {
20922
20923
  var c;
20923
20924
  const o = t.getValue("logger");
20924
- super(o);
20925
+ super(t, o);
20925
20926
  m(this, sr);
20926
20927
  // eslint-disable-next-line class-methods-use-this
20927
20928
  m(this, qe);
@@ -22541,7 +22542,7 @@ rc = new WeakMap(), Vi = new WeakMap(), Vs = new WeakMap(), Kd = new WeakMap(),
22541
22542
  }));
22542
22543
  }
22543
22544
  };
22544
- var vs, va, Sa, Li, ss, Xe, jr, Ta, Qd, $t, us;
22545
+ var vs, va, Sa, Li, ss, Xe, jr, Ta, Qd, Ft, us;
22545
22546
  class WD extends Wl {
22546
22547
  /**
22547
22548
  * @emits transportclose
@@ -22554,7 +22555,7 @@ class WD extends Wl {
22554
22555
  constructor(e, r) {
22555
22556
  var i, a;
22556
22557
  super(e);
22557
- m(this, $t);
22558
+ m(this, Ft);
22558
22559
  /**
22559
22560
  * Producer ID.
22560
22561
  */
@@ -22631,7 +22632,7 @@ class WD extends Wl {
22631
22632
  return u(this, null, function* () {
22632
22633
  if (n(this, ss))
22633
22634
  return;
22634
- if (this.logger.debug(`Producer::close() ${e ? `with reason ${e}` : ""}`, n(this, $t, us)), f(this, ss, !0), this._destroyTrack(), e === Md) {
22635
+ if (this.logger.debug(`Producer::close() ${e ? `with reason ${e}` : ""}`, n(this, Ft, us)), f(this, ss, !0), this._destroyTrack(), e === Md) {
22635
22636
  this.safeEmit("close", { reason: e });
22636
22637
  return;
22637
22638
  }
@@ -22653,14 +22654,14 @@ class WD extends Wl {
22653
22654
  * Pauses sending media.
22654
22655
  */
22655
22656
  pause() {
22656
- this.logger.debug("Producer::pause()", n(this, $t, us)), n(this, ss) && this.logger.error("Producer::pause() | Producer closed", n(this, $t, us)), f(this, jr, !0), n(this, Xe) && n(this, Sa) && (n(this, Xe).enabled = !1), n(this, Li) && n(this, vs).replaceTrack(this.localId, null), this.emit("pause");
22657
+ this.logger.debug("Producer::pause()", n(this, Ft, us)), n(this, ss) && this.logger.error("Producer::pause() | Producer closed", n(this, Ft, us)), f(this, jr, !0), n(this, Xe) && n(this, Sa) && (n(this, Xe).enabled = !1), n(this, Li) && n(this, vs).replaceTrack(this.localId, null), this.emit("pause");
22657
22658
  }
22658
22659
  /**
22659
22660
  * Resumes sending media.
22660
22661
  */
22661
22662
  resume() {
22662
- if (this.logger.debug("Producer::resume()", n(this, $t, us)), n(this, ss)) {
22663
- this.logger.error("Producer::resume() | Producer closed", n(this, $t, us));
22663
+ if (this.logger.debug("Producer::resume()", n(this, Ft, us)), n(this, ss)) {
22664
+ this.logger.error("Producer::resume() | Producer closed", n(this, Ft, us));
22664
22665
  return;
22665
22666
  }
22666
22667
  f(this, jr, !1), n(this, Xe) && n(this, Sa) && (n(this, Xe).enabled = !0), n(this, Li) && n(this, vs).replaceTrack(this.localId, n(this, Xe)), this.emit("resume");
@@ -22672,12 +22673,12 @@ class WD extends Wl {
22672
22673
  return u(this, arguments, function* ({
22673
22674
  track: e
22674
22675
  }) {
22675
- if (this.logger.debug(`Producer::replaceTrack() trackId: ${e == null ? void 0 : e.id}`, n(this, $t, us)), n(this, ss)) {
22676
+ if (this.logger.debug(`Producer::replaceTrack() trackId: ${e == null ? void 0 : e.id}`, n(this, Ft, us)), n(this, ss)) {
22676
22677
  if (e && n(this, va))
22677
22678
  try {
22678
22679
  e.stop();
22679
22680
  } catch (i) {
22680
- this.logger.error("Producer::replaceTrack", H(D({}, n(this, $t, us)), {
22681
+ this.logger.error("Producer::replaceTrack", H(D({}, n(this, Ft, us)), {
22681
22682
  error: i
22682
22683
  }));
22683
22684
  }
@@ -22685,7 +22686,7 @@ class WD extends Wl {
22685
22686
  } else if (e && e.readyState === "ended")
22686
22687
  throw new It("track ended");
22687
22688
  if (e === n(this, Xe)) {
22688
- this.logger.debug(`replaceTrack() | same track, ignored trackId: ${e.id}`, n(this, $t, us));
22689
+ this.logger.debug(`replaceTrack() | same track, ignored trackId: ${e.id}`, n(this, Ft, us));
22689
22690
  return;
22690
22691
  }
22691
22692
  (!n(this, Li) || !n(this, jr)) && (yield n(this, vs).replaceTrack(this.localId, e)), this._destroyTrack(), f(this, Xe, e), this._handleTrack();
@@ -22718,7 +22719,7 @@ class WD extends Wl {
22718
22719
  });
22719
22720
  }
22720
22721
  _onTrackEnded() {
22721
- this.logger.debug(`Producer::track "ended" event trackId: ${this.track.id}`, n(this, $t, us)), this.safeEmit("trackended", this.track.id);
22722
+ this.logger.debug(`Producer::track "ended" event trackId: ${this.track.id}`, n(this, Ft, us)), this.safeEmit("trackended", this.track.id);
22722
22723
  }
22723
22724
  _handleTrack() {
22724
22725
  n(this, Xe) && n(this, Xe).addEventListener("ended", this._onTrackEnded);
@@ -22729,13 +22730,13 @@ class WD extends Wl {
22729
22730
  try {
22730
22731
  n(this, Xe).removeEventListener("ended", this._onTrackEnded), n(this, va) && n(this, Xe).stop();
22731
22732
  } catch (r) {
22732
- this.logger.error(`Producer::_destroyTrack trackId: ${(e = this.track) == null ? void 0 : e.id}`, H(D({}, n(this, $t, us)), {
22733
+ this.logger.error(`Producer::_destroyTrack trackId: ${(e = this.track) == null ? void 0 : e.id}`, H(D({}, n(this, Ft, us)), {
22733
22734
  error: r
22734
22735
  }));
22735
22736
  }
22736
22737
  }
22737
22738
  }
22738
- vs = new WeakMap(), va = new WeakMap(), Sa = new WeakMap(), Li = new WeakMap(), ss = new WeakMap(), Xe = new WeakMap(), jr = new WeakMap(), Ta = new WeakMap(), Qd = new WeakMap(), $t = new WeakSet(), us = function() {
22739
+ vs = new WeakMap(), va = new WeakMap(), Sa = new WeakMap(), Li = new WeakMap(), ss = new WeakMap(), Xe = new WeakMap(), jr = new WeakMap(), Ta = new WeakMap(), Qd = new WeakMap(), Ft = new WeakSet(), us = function() {
22739
22740
  return {
22740
22741
  producer: {
22741
22742
  id: this.id,
@@ -25988,26 +25989,26 @@ var gO = Object.defineProperty, mO = Object.getOwnPropertyDescriptor, fO = (s, t
25988
25989
  for (var i = r > 1 ? void 0 : r ? mO(t, e) : t, a = s.length - 1, o; a >= 0; a--)
25989
25990
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
25990
25991
  return r && i && gO(t, e, i), i;
25991
- }, Ft;
25992
+ }, Bt;
25992
25993
  class xv {
25993
25994
  constructor(t, e) {
25994
25995
  h(this, "socket");
25995
- m(this, Ft, void 0);
25996
- f(this, Ft, t), this.socket = e, this.handleSocketEvents(), n(this, Ft).setValue("roomSocketHandler", this);
25996
+ m(this, Bt, void 0);
25997
+ f(this, Bt, t), this.socket = e, this.handleSocketEvents(), n(this, Bt).setValue("roomSocketHandler", this);
25997
25998
  }
25998
25999
  /**
25999
26000
  * @access private
26000
26001
  * Not for external use
26001
26002
  */
26002
26003
  get telemetry() {
26003
- return n(this, Ft).getValue("telemetry");
26004
+ return n(this, Bt).getValue("telemetry");
26004
26005
  }
26005
26006
  /**
26006
26007
  * @access private
26007
26008
  * Not for external use
26008
26009
  */
26009
26010
  get logger() {
26010
- return n(this, Ft).getValue("logger");
26011
+ return n(this, Bt).getValue("logger");
26011
26012
  }
26012
26013
  cleanup() {
26013
26014
  var t;
@@ -26038,9 +26039,9 @@ class xv {
26038
26039
  );
26039
26040
  try {
26040
26041
  const { peer: a } = Tn.fromBinary((yield r).payload);
26041
- n(this, Ft).getValue("connectionHandler").socketJoined = !0, n(this, Ft).getValue("peerSessionStore").emit(k.SOCKET_SERVICE_ROOM_JOINED, { peer: a });
26042
+ n(this, Bt).getValue("connectionHandler").socketJoined = !0, n(this, Bt).getValue("peerSessionStore").emit(k.SOCKET_SERVICE_ROOM_JOINED, { peer: a });
26042
26043
  const o = this.getRoomState(), c = this.getRoomPeersNonPaginated(), [{ room: d }, { peers: l }] = yield Promise.all([o, c]);
26043
- return n(this, Ft).getValue("peerSessionStore").emit(k.ROOM_STATE, d), n(this, Ft).getValue("peerSessionStore").emit(k.SOCKET_PEERS, l), { peer: a };
26044
+ return n(this, Bt).getValue("peerSessionStore").emit(k.ROOM_STATE, d), n(this, Bt).getValue("peerSessionStore").emit(k.SOCKET_PEERS, l), { peer: a };
26044
26045
  } catch (a) {
26045
26046
  throw this.logger.error("RoomSocketHandler.joinRoom.failed", {
26046
26047
  error: a
@@ -26280,7 +26281,7 @@ class xv {
26280
26281
  this.socket.on($.broadcastMessage, ({ payload: t }) => {
26281
26282
  try {
26282
26283
  const e = co.fromBinary(t);
26283
- n(this, Ft).getValue("peerSessionStore").emit(k.ROOM_MESSAGE, {
26284
+ n(this, Bt).getValue("peerSessionStore").emit(k.ROOM_MESSAGE, {
26284
26285
  payload: JSON.parse(new TextDecoder().decode(e.payload)),
26285
26286
  type: e.type,
26286
26287
  timestamp: e.timestamp
@@ -26291,7 +26292,7 @@ class xv {
26291
26292
  }), this.socket.on($.broadcastToEntity, ({ payload: t }) => {
26292
26293
  try {
26293
26294
  const e = co.fromBinary(t);
26294
- n(this, Ft).getValue("peerSessionStore").emit(k.MESSAGE, {
26295
+ n(this, Bt).getValue("peerSessionStore").emit(k.MESSAGE, {
26295
26296
  payload: JSON.parse(new TextDecoder().decode(e.payload)),
26296
26297
  type: e.type,
26297
26298
  timestamp: e.timestamp
@@ -26387,7 +26388,7 @@ class xv {
26387
26388
  });
26388
26389
  }
26389
26390
  }
26390
- Ft = new WeakMap();
26391
+ Bt = new WeakMap();
26391
26392
  fO([
26392
26393
  E.trace("RoomSocketHandler.joinRoom")
26393
26394
  ], xv.prototype, "joinRoom", 1);
@@ -27664,7 +27665,7 @@ var FO = Object.defineProperty, BO = Object.getOwnPropertyDescriptor, HO = (s, t
27664
27665
  (o = s[a]) && (i = (r ? o(t, e, i) : o(i)) || i);
27665
27666
  return r && i && FO(t, e, i), i;
27666
27667
  }, Ps;
27667
- class Xv extends qt {
27668
+ class Xv extends jt {
27668
27669
  constructor(e) {
27669
27670
  const r = e.getValue("logger");
27670
27671
  super(r);
@@ -28376,14 +28377,16 @@ let ti = (Kg = class {
28376
28377
  get peerId() {
28377
28378
  return n(this, sn).getValue("peerId");
28378
28379
  }
28379
- static initMedia(t = {}, e = !1, r = void 0) {
28380
- var d;
28381
- const i = (d = r == null ? void 0 : r.peerId) != null ? d : on(), a = mr.createContext(i, {
28382
- peerId: i
28383
- }), o = a.getValue("logger");
28384
- o.init(a);
28385
- const c = new tv(o);
28386
- return c.init(t, e, a), a.setValue("defaults", { mediaHandler: c }), c;
28380
+ static initMedia() {
28381
+ return u(this, arguments, function* (t = {}, e = !1, r = void 0) {
28382
+ var d;
28383
+ const i = (d = r == null ? void 0 : r.peerId) != null ? d : on(), a = mr.createContext(i, {
28384
+ peerId: i
28385
+ }), o = a.getValue("logger");
28386
+ o.init(a);
28387
+ const c = new tv(a, o);
28388
+ return yield c.init(t, e, a), a.setValue("defaults", { mediaHandler: c }), c;
28389
+ });
28387
28390
  }
28388
28391
  static init(t) {
28389
28392
  return u(this, null, function* () {
@@ -28419,7 +28422,7 @@ let ti = (Kg = class {
28419
28422
  video: !0
28420
28423
  };
28421
28424
  return a.setValue("options", e), a.setValue("peerId", t), a.setValue("modules", o), a.setValue("sdkName", "web-core"), a.setValue("meetingId", r), a.setValue("apiBase", i.apiBase), a.setValue("baseURI", i.baseURI), a.setValue("userId", i.participantId), a.setValue("organizationId", i.orgId), a.setValue("authToken", e.authToken), a.setValue("overrides", (d = e.overrides) != null ? d : {}), a.setValue("env", lw({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
28422
- })), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.3-staging.1"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new YO()), a;
28425
+ })), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.3-staging.3"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new YO()), a;
28423
28426
  }
28424
28427
  join() {
28425
28428
  return u(this, null, function* () {