@cloudflare/realtimekit 1.1.5-staging.2 → 1.1.5-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
@@ -5758,7 +5758,7 @@ class Pm extends ut {
5758
5758
  }) || e[e.length - 1];
5759
5759
  }
5760
5760
  parseRTCReport(e, r = [], i = false, n = void 0, o = void 0) {
5761
- var P, k, A, N, H, $, F, K, re, Je, Is, Er, ni;
5761
+ var P, k, A, N, H, $, F, K, re, Je, ks, Er, ni;
5762
5762
  const c = e, d = new _m(), u = r.length ? new Set(r) : void 0, p = [], f = [], S = [], E = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
5763
5763
  for (const I of c.values()) {
5764
5764
  if (u) {
@@ -6022,7 +6022,7 @@ class Pm extends ut {
6022
6022
  }), _.set(C, {
6023
6023
  score: +(w.score * 10).toFixed(),
6024
6024
  packetsLostPercentage: kd({
6025
- packetsLost: (w.packetsLost || 0) - (((Is = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Is.packetsLost) || 0),
6025
+ packetsLost: (w.packetsLost || 0) - (((ks = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : ks.packetsLost) || 0),
6026
6026
  packetsReceived: (w.packetsReceived || 0) - (((Er = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Er.packetsReceived) || 0)
6027
6027
  }),
6028
6028
  jitter: w.jitter || 0,
@@ -6391,7 +6391,7 @@ class Cm extends Pm {
6391
6391
  };
6392
6392
  }
6393
6393
  parseRTCReport(e, r = [], i = false, n = void 0, o = void 0) {
6394
- var P, k, A, N, H, $, F, K, re, Je, Is, Er, ni;
6394
+ var P, k, A, N, H, $, F, K, re, Je, ks, Er, ni;
6395
6395
  const c = e, d = new _m(), u = r.length ? new Set(r) : void 0, p = [], f = [], S = [], E = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
6396
6396
  for (const I of c.values()) {
6397
6397
  if (u) {
@@ -6655,7 +6655,7 @@ class Cm extends Pm {
6655
6655
  }), _.set(C, {
6656
6656
  score: +(w.score * 10).toFixed(),
6657
6657
  packetsLostPercentage: kd({
6658
- packetsLost: (w.packetsLost || 0) - (((Is = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Is.packetsLost) || 0),
6658
+ packetsLost: (w.packetsLost || 0) - (((ks = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : ks.packetsLost) || 0),
6659
6659
  packetsReceived: (w.packetsReceived || 0) - (((Er = this.audioConsumerToStatsMap.get(C)) == null ? void 0 : Er.packetsReceived) || 0)
6660
6660
  }),
6661
6661
  jitter: w.jitter || 0,
@@ -7833,8 +7833,8 @@ function Qv(s) {
7833
7833
  var Xv = typeof global == "object" && global && global.Object === Object && global;
7834
7834
  const wm = Xv;
7835
7835
  var Zv = typeof self == "object" && self && self.Object === Object && self, ey = wm || Zv || Function("return this")();
7836
- const Rs = ey;
7837
- var ty = Rs.Symbol;
7836
+ const Cs = ey;
7837
+ var ty = Cs.Symbol;
7838
7838
  const ti = ty;
7839
7839
  var bm = Object.prototype, sy = bm.hasOwnProperty, ry = bm.toString, po = ti ? ti.toStringTag : void 0;
7840
7840
  function iy(s) {
@@ -7855,18 +7855,18 @@ var cy = "[object Null]", dy = "[object Undefined]", dp = ti ? ti.toStringTag :
7855
7855
  function ma(s) {
7856
7856
  return s == null ? s === void 0 ? dy : cy : dp && dp in Object(s) ? iy(s) : oy(s);
7857
7857
  }
7858
- function Cs(s) {
7858
+ function Ps(s) {
7859
7859
  var t = typeof s;
7860
7860
  return s != null && (t == "object" || t == "function");
7861
7861
  }
7862
7862
  var ly = "[object AsyncFunction]", uy = "[object Function]", hy = "[object GeneratorFunction]", py = "[object Proxy]";
7863
7863
  function Th(s) {
7864
- if (!Cs(s))
7864
+ if (!Ps(s))
7865
7865
  return false;
7866
7866
  var t = ma(s);
7867
7867
  return t == uy || t == hy || t == ly || t == py;
7868
7868
  }
7869
- var gy = Rs["__core-js_shared__"];
7869
+ var gy = Cs["__core-js_shared__"];
7870
7870
  const nu = gy;
7871
7871
  var lp = function() {
7872
7872
  var s = /[^.]+$/.exec(nu && nu.keys && nu.keys.IE_PROTO || "");
@@ -7893,7 +7893,7 @@ var vy = /[\\^$.*+?()[\]{}|]/g, yy = /^\[object .+?Constructor\]$/, Ty = Functio
7893
7893
  "^" + _y.call(Py).replace(vy, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
7894
7894
  );
7895
7895
  function Ry(s) {
7896
- if (!Cs(s) || my(s))
7896
+ if (!Ps(s) || my(s))
7897
7897
  return false;
7898
7898
  var t = Th(s) ? Cy : yy;
7899
7899
  return t.test(fa(s));
@@ -7905,7 +7905,7 @@ function Sa(s, t) {
7905
7905
  var e = wy(s, t);
7906
7906
  return Ry(e) ? e : void 0;
7907
7907
  }
7908
- var by = Sa(Rs, "Map");
7908
+ var by = Sa(Cs, "Map");
7909
7909
  const Vo = by;
7910
7910
  var ky = Sa(Object, "create");
7911
7911
  const Lo = ky;
@@ -8066,7 +8066,7 @@ const si = rT;
8066
8066
  function iT() {
8067
8067
  return false;
8068
8068
  }
8069
- var Am = typeof exports == "object" && exports && !exports.nodeType && exports, hp = Am && typeof module == "object" && module && !module.nodeType && module, aT = hp && hp.exports === Am, pp = aT ? Rs.Buffer : void 0, nT = pp ? pp.isBuffer : void 0, oT = nT || iT;
8069
+ var Am = typeof exports == "object" && exports && !exports.nodeType && exports, hp = Am && typeof module == "object" && module && !module.nodeType && module, aT = hp && hp.exports === Am, pp = aT ? Cs.Buffer : void 0, nT = pp ? pp.isBuffer : void 0, oT = nT || iT;
8070
8070
  const Hn = oT;
8071
8071
  var cT = 9007199254740991, dT = /^(?:0|[1-9]\d*)$/;
8072
8072
  function Mm(s, t) {
@@ -8144,7 +8144,7 @@ function JT(s) {
8144
8144
  }
8145
8145
  var KT = Object.prototype, zT = KT.hasOwnProperty;
8146
8146
  function YT(s) {
8147
- if (!Cs(s))
8147
+ if (!Ps(s))
8148
8148
  return JT(s);
8149
8149
  var t = jl(s), e = [];
8150
8150
  for (var r in s)
@@ -8157,7 +8157,7 @@ function Gc(s) {
8157
8157
  function QT(s, t) {
8158
8158
  return s && qc(t, Gc(t), s);
8159
8159
  }
8160
- var xm = typeof exports == "object" && exports && !exports.nodeType && exports, mp = xm && typeof module == "object" && module && !module.nodeType && module, XT = mp && mp.exports === xm, fp = XT ? Rs.Buffer : void 0, Sp = fp ? fp.allocUnsafe : void 0;
8160
+ var xm = typeof exports == "object" && exports && !exports.nodeType && exports, mp = xm && typeof module == "object" && module && !module.nodeType && module, XT = mp && mp.exports === xm, fp = XT ? Cs.Buffer : void 0, Sp = fp ? fp.allocUnsafe : void 0;
8161
8161
  function Um(s, t) {
8162
8162
  if (t)
8163
8163
  return s.slice();
@@ -8215,13 +8215,13 @@ function Eu(s) {
8215
8215
  function cE(s) {
8216
8216
  return qm(s, Gc, Bm);
8217
8217
  }
8218
- var dE = Sa(Rs, "DataView");
8218
+ var dE = Sa(Cs, "DataView");
8219
8219
  const _u = dE;
8220
- var lE = Sa(Rs, "Promise");
8220
+ var lE = Sa(Cs, "Promise");
8221
8221
  const Pu = lE;
8222
- var uE = Sa(Rs, "Set");
8222
+ var uE = Sa(Cs, "Set");
8223
8223
  const Cu = uE;
8224
- var hE = Sa(Rs, "WeakMap");
8224
+ var hE = Sa(Cs, "WeakMap");
8225
8225
  const Ru = hE;
8226
8226
  var yp = "[object Map]", pE = "[object Object]", Tp = "[object Promise]", Ep = "[object Set]", _p = "[object WeakMap]", Pp = "[object DataView]", gE = fa(_u), mE = fa(Vo), fE = fa(Pu), SE = fa(Cu), vE = fa(Ru), oi = ma;
8227
8227
  (_u && oi(new _u(new ArrayBuffer(1))) != Pp || Vo && oi(new Vo()) != yp || Pu && oi(Pu.resolve()) != Tp || Cu && oi(new Cu()) != Ep || Ru && oi(new Ru()) != _p) && (oi = function(s) {
@@ -8247,7 +8247,7 @@ function EE(s) {
8247
8247
  var t = s.length, e = new s.constructor(t);
8248
8248
  return t && typeof s[0] == "string" && TE.call(s, "index") && (e.index = s.index, e.input = s.input), e;
8249
8249
  }
8250
- var _E = Rs.Uint8Array;
8250
+ var _E = Cs.Uint8Array;
8251
8251
  const Dd = _E;
8252
8252
  function wh(s) {
8253
8253
  var t = new s.constructor(s.byteLength);
@@ -8308,7 +8308,7 @@ var wp = Object.create, JE = function() {
8308
8308
  function s() {
8309
8309
  }
8310
8310
  return function(t) {
8311
- if (!Cs(t))
8311
+ if (!Ps(t))
8312
8312
  return {};
8313
8313
  if (wp)
8314
8314
  return wp(t);
@@ -8340,7 +8340,7 @@ function hd(s, t, e, r, i, n) {
8340
8340
  var o, c = t & r_, d = t & i_, u = t & a_;
8341
8341
  if (e && (o = i ? e(s, r, i, n) : e(s)), o !== void 0)
8342
8342
  return o;
8343
- if (!Cs(s))
8343
+ if (!Ps(s))
8344
8344
  return s;
8345
8345
  var p = si(s);
8346
8346
  if (p) {
@@ -9089,9 +9089,9 @@ function Mp(s) {
9089
9089
  return s;
9090
9090
  if (D_(s))
9091
9091
  return Ap;
9092
- if (Cs(s)) {
9092
+ if (Ps(s)) {
9093
9093
  var t = typeof s.valueOf == "function" ? s.valueOf() : s;
9094
- s = Cs(t) ? t + "" : t;
9094
+ s = Ps(t) ? t + "" : t;
9095
9095
  }
9096
9096
  if (typeof s != "string")
9097
9097
  return s === 0 ? s : +s;
@@ -9159,7 +9159,7 @@ function SP(s, t) {
9159
9159
  return mP(fP(s, t, tf), s + "");
9160
9160
  }
9161
9161
  function vP(s, t, e) {
9162
- if (!Cs(e))
9162
+ if (!Ps(e))
9163
9163
  return false;
9164
9164
  var r = typeof t;
9165
9165
  return (r == "number" ? jc(e) && Mm(t, e.length) : r == "string" && t in e) ? Bc(e[t], s) : false;
@@ -9358,7 +9358,7 @@ function sC(s) {
9358
9358
  var rC = sC();
9359
9359
  const iC = rC;
9360
9360
  var aC = function() {
9361
- return Rs.Date.now();
9361
+ return Cs.Date.now();
9362
9362
  };
9363
9363
  const du = aC;
9364
9364
  var nC = "Expected a function", oC = Math.max, cC = Math.min;
@@ -9366,7 +9366,7 @@ function Ih(s, t, e) {
9366
9366
  var r, i, n, o, c, d, u = 0, p = false, f = false, S = true;
9367
9367
  if (typeof s != "function")
9368
9368
  throw new TypeError(nC);
9369
- t = Mp(t) || 0, Cs(e) && (p = !!e.leading, f = "maxWait" in e, n = f ? oC(Mp(e.maxWait) || 0, t) : n, S = "trailing" in e ? !!e.trailing : S);
9369
+ t = Mp(t) || 0, Ps(e) && (p = !!e.leading, f = "maxWait" in e, n = f ? oC(Mp(e.maxWait) || 0, t) : n, S = "trailing" in e ? !!e.trailing : S);
9370
9370
  function E(K) {
9371
9371
  var re = r, Je = i;
9372
9372
  return r = i = void 0, u = K, o = s.apply(Je, re), o;
@@ -9375,8 +9375,8 @@ function Ih(s, t, e) {
9375
9375
  return u = K, c = setTimeout(A, t), p ? E(K) : o;
9376
9376
  }
9377
9377
  function P(K) {
9378
- var re = K - d, Je = K - u, Is = t - re;
9379
- return f ? cC(Is, n - Je) : Is;
9378
+ var re = K - d, Je = K - u, ks = t - re;
9379
+ return f ? cC(ks, n - Je) : ks;
9380
9380
  }
9381
9381
  function k(K) {
9382
9382
  var re = K - d, Je = K - u;
@@ -9431,13 +9431,13 @@ function uC(s, t, e, r, i, n, o) {
9431
9431
  var p = n ? n(c, d, e + "", s, t, o) : void 0, f = p === void 0;
9432
9432
  if (f) {
9433
9433
  var S = si(d), E = !S && Hn(d), _ = !S && !E && ql(d);
9434
- p = d, S || E || _ ? si(c) ? p = c : dC(c) ? p = $m(c) : E ? (f = false, p = Um(d, true)) : _ ? (f = false, p = jm(d, true)) : p = [] : RP(d) || Md(d) ? (p = c, Md(c) ? p = lC(c) : (!Cs(c) || Th(c)) && (p = Gm(d))) : f = false;
9434
+ p = d, S || E || _ ? si(c) ? p = c : dC(c) ? p = $m(c) : E ? (f = false, p = Um(d, true)) : _ ? (f = false, p = jm(d, true)) : p = [] : RP(d) || Md(d) ? (p = c, Md(c) ? p = lC(c) : (!Ps(c) || Th(c)) && (p = Gm(d))) : f = false;
9435
9435
  }
9436
9436
  f && (o.set(d, p), i(p, d, r, n, o), o.delete(d)), bu(s, e, p);
9437
9437
  }
9438
9438
  function nf(s, t, e, r, i) {
9439
9439
  s !== t && iC(t, function(n, o) {
9440
- if (i || (i = new Us()), Cs(n))
9440
+ if (i || (i = new Us()), Ps(n))
9441
9441
  uC(s, t, o, e, nf, r, i);
9442
9442
  else {
9443
9443
  var c = r ? r(ku(s, o), n, o + "", s, t, i) : void 0;
@@ -10682,7 +10682,7 @@ class UC extends MessageType {
10682
10682
  ]);
10683
10683
  }
10684
10684
  }
10685
- const ws = new UC();
10685
+ const Rs = new UC();
10686
10686
  class $C extends MessageType {
10687
10687
  constructor() {
10688
10688
  super("media.ProducerPayload", [
@@ -10744,7 +10744,7 @@ class HC extends MessageType {
10744
10744
  opt: true,
10745
10745
  T: 8
10746
10746
  },
10747
- { no: 3, name: "description", kind: "message", T: () => ws },
10747
+ { no: 3, name: "description", kind: "message", T: () => Rs },
10748
10748
  {
10749
10749
  no: 4,
10750
10750
  name: "private_ice",
@@ -10791,7 +10791,7 @@ class GC extends MessageType {
10791
10791
  kind: "scalar",
10792
10792
  T: 9
10793
10793
  },
10794
- { no: 2, name: "description", kind: "message", T: () => ws },
10794
+ { no: 2, name: "description", kind: "message", T: () => Rs },
10795
10795
  {
10796
10796
  no: 3,
10797
10797
  name: "transcription_enabled",
@@ -10819,7 +10819,7 @@ class WC extends MessageType {
10819
10819
  kind: "scalar",
10820
10820
  T: 9
10821
10821
  },
10822
- { no: 2, name: "description", kind: "message", T: () => ws }
10822
+ { no: 2, name: "description", kind: "message", T: () => Rs }
10823
10823
  ]);
10824
10824
  }
10825
10825
  }
@@ -10833,7 +10833,7 @@ class KC extends MessageType {
10833
10833
  kind: "scalar",
10834
10834
  T: 9
10835
10835
  },
10836
- { no: 2, name: "description", kind: "message", T: () => ws }
10836
+ { no: 2, name: "description", kind: "message", T: () => Rs }
10837
10837
  ]);
10838
10838
  }
10839
10839
  }
@@ -11322,7 +11322,7 @@ class kR extends MessageType {
11322
11322
  kind: "scalar",
11323
11323
  T: 8
11324
11324
  },
11325
- { no: 4, name: "description", kind: "message", T: () => ws },
11325
+ { no: 4, name: "description", kind: "message", T: () => Rs },
11326
11326
  {
11327
11327
  no: 5,
11328
11328
  name: "msid",
@@ -11420,7 +11420,7 @@ class VR extends MessageType {
11420
11420
  kind: "scalar",
11421
11421
  T: 9
11422
11422
  },
11423
- { no: 2, name: "description", kind: "message", T: () => ws },
11423
+ { no: 2, name: "description", kind: "message", T: () => Rs },
11424
11424
  {
11425
11425
  no: 3,
11426
11426
  name: "producing_transport_id",
@@ -11442,7 +11442,7 @@ class xR extends MessageType {
11442
11442
  repeat: 2,
11443
11443
  T: 9
11444
11444
  },
11445
- { no: 2, name: "description", kind: "message", T: () => ws },
11445
+ { no: 2, name: "description", kind: "message", T: () => Rs },
11446
11446
  {
11447
11447
  no: 3,
11448
11448
  name: "consuming_transport_id",
@@ -11773,7 +11773,7 @@ class cw extends MessageType {
11773
11773
  T: 8
11774
11774
  },
11775
11775
  { no: 2, name: "consumer_ids_map", kind: "message", T: () => uf },
11776
- { no: 3, name: "description", kind: "message", T: () => ws }
11776
+ { no: 3, name: "description", kind: "message", T: () => Rs }
11777
11777
  ]);
11778
11778
  }
11779
11779
  }
@@ -11793,7 +11793,7 @@ class lw extends MessageType {
11793
11793
  kind: "scalar",
11794
11794
  T: 9
11795
11795
  },
11796
- { no: 4, name: "description", kind: "message", T: () => ws }
11796
+ { no: 4, name: "description", kind: "message", T: () => Rs }
11797
11797
  ]);
11798
11798
  }
11799
11799
  }
@@ -11852,7 +11852,7 @@ new fw();
11852
11852
  class Sw extends MessageType {
11853
11853
  constructor() {
11854
11854
  super("media.edge.ProducerClosingResponse", [
11855
- { no: 1, name: "description", kind: "message", T: () => ws }
11855
+ { no: 1, name: "description", kind: "message", T: () => Rs }
11856
11856
  ]);
11857
11857
  }
11858
11858
  }
@@ -11860,7 +11860,7 @@ const vw = new Sw();
11860
11860
  class yw extends MessageType {
11861
11861
  constructor() {
11862
11862
  super("media.edge.ConsumerClosingResponse", [
11863
- { no: 1, name: "description", kind: "message", T: () => ws }
11863
+ { no: 1, name: "description", kind: "message", T: () => Rs }
11864
11864
  ]);
11865
11865
  }
11866
11866
  }
@@ -15226,13 +15226,13 @@ function Jn(s, t) {
15226
15226
  function Cf(s, t) {
15227
15227
  return Object.keys(s).reduce((e, r) => (e[r] = t | s[r], e), {});
15228
15228
  }
15229
- const x = Jn(UA, jA), we = Jn($A, GA), W = Jn(
15229
+ const x = Jn(UA, jA), Re = Jn($A, GA), W = Jn(
15230
15230
  FA,
15231
15231
  WA
15232
15232
  ), qs = Jn(HA, JA), pi = Jn(
15233
15233
  BA,
15234
15234
  KA
15235
- ), is = Cf(Pf, 16777216), Es = Cf(Pf, 50331648), md = Jn(
15235
+ ), is = Cf(Pf, 16777216), Ts = Cf(Pf, 50331648), md = Jn(
15236
15236
  qA,
15237
15237
  zA
15238
15238
  );
@@ -15296,7 +15296,7 @@ const $u = (bg = class {
15296
15296
  memberIds: s.targetUserIds,
15297
15297
  unreadCount: (r = t == null ? void 0 : t.unreadCount) != null ? r : 0
15298
15298
  });
15299
- return t != null && t.message && (e.latestMessage = _s.formatSocketServiceMessage(
15299
+ return t != null && t.message && (e.latestMessage = Es.formatSocketServiceMessage(
15300
15300
  t.message
15301
15301
  )), delete e.chatChannelId, delete e.targetUserIds, delete e.latestMessageAndUnreadCount, e;
15302
15302
  }
@@ -15361,7 +15361,7 @@ Oh([
15361
15361
  Oh([
15362
15362
  T.trace("ChatChannelHandler.getChannelMembers")
15363
15363
  ], pa.prototype, "getChannelMembers", 1);
15364
- var XA = Object.defineProperty, ZA = Object.getOwnPropertyDescriptor, bs = (s, t, e, r) => {
15364
+ var XA = Object.defineProperty, ZA = Object.getOwnPropertyDescriptor, ws = (s, t, e, r) => {
15365
15365
  for (var i = r > 1 ? void 0 : r ? ZA(t, e) : t, n = s.length - 1, o; n >= 0; n--)
15366
15366
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
15367
15367
  return r && i && XA(t, e, i), i;
@@ -15379,7 +15379,7 @@ class as {
15379
15379
  return a(this, qa).getValue("logger");
15380
15380
  }
15381
15381
  getChatMessages() {
15382
- return a(this, it).sendMessagePromise(we.getMessages);
15382
+ return a(this, it).sendMessagePromise(Re.getMessages);
15383
15383
  }
15384
15384
  getChatMessagesPaginated(t, e, r, i = 0, n = "") {
15385
15385
  return l(this, null, function* () {
@@ -15390,7 +15390,7 @@ class as {
15390
15390
  reversed: r,
15391
15391
  channelId: n
15392
15392
  }, c = yield a(this, it).sendMessagePromise(
15393
- we.getPaginatedMessages,
15393
+ Re.getPaginatedMessages,
15394
15394
  qk.toBinary(o)
15395
15395
  );
15396
15396
  return c.payload ? Gk.fromBinary(
@@ -15407,7 +15407,7 @@ class as {
15407
15407
  payload: t
15408
15408
  };
15409
15409
  a(this, it).sendMessage(
15410
- we.sendMessageToRoom,
15410
+ Re.sendMessageToRoom,
15411
15411
  Kk.toBinary(r)
15412
15412
  );
15413
15413
  }
@@ -15418,7 +15418,7 @@ class as {
15418
15418
  payload: t
15419
15419
  };
15420
15420
  a(this, it).sendMessage(
15421
- we.sendMessageToPeers,
15421
+ Re.sendMessageToPeers,
15422
15422
  Qk.toBinary(i)
15423
15423
  );
15424
15424
  }
@@ -15429,7 +15429,7 @@ class as {
15429
15429
  payload: t
15430
15430
  };
15431
15431
  a(this, it).sendMessage(
15432
- we.sendMessageToChannel,
15432
+ Re.sendMessageToChannel,
15433
15433
  eI.toBinary(i)
15434
15434
  );
15435
15435
  }
@@ -15449,7 +15449,7 @@ class as {
15449
15449
  };
15450
15450
  i && (o.channelId = i), n !== void 0 && (o.pinned = n);
15451
15451
  const c = yield a(this, it).sendMessagePromise(
15452
- we.editMessage,
15452
+ Re.editMessage,
15453
15453
  rI.toBinary(o)
15454
15454
  );
15455
15455
  return ad.fromBinary(c.payload).message;
@@ -15462,7 +15462,7 @@ class as {
15462
15462
  };
15463
15463
  e && (r.channelId = e);
15464
15464
  const i = yield a(this, it).sendMessagePromise(
15465
- we.deleteMessage,
15465
+ Re.deleteMessage,
15466
15466
  dI.toBinary(r)
15467
15467
  ), n = nd.fromBinary(i.payload);
15468
15468
  return D({
@@ -15483,7 +15483,7 @@ class as {
15483
15483
  e.channelId && (r.channelId = e.channelId);
15484
15484
  try {
15485
15485
  const c = yield a(this, it).sendMessagePromise(
15486
- we.searchChannelMessages,
15486
+ Re.searchChannelMessages,
15487
15487
  hI.toBinary(r)
15488
15488
  );
15489
15489
  return Ef.fromBinary(c.payload).messages;
@@ -15496,7 +15496,7 @@ class as {
15496
15496
  return l(this, null, function* () {
15497
15497
  try {
15498
15498
  const t = yield a(this, it).sendMessagePromise(
15499
- we.getAllChatChannels
15499
+ Re.getAllChatChannels
15500
15500
  );
15501
15501
  return Hs.fromBinary(t.payload).chatChannels.map(pa.formatChannel);
15502
15502
  } catch (t) {
@@ -15507,7 +15507,7 @@ class as {
15507
15507
  markLastReadMessage(t, e) {
15508
15508
  return l(this, null, function* () {
15509
15509
  const r = yield a(this, it).sendMessagePromise(
15510
- we.markChannelIndexAsRead,
15510
+ Re.markChannelIndexAsRead,
15511
15511
  gI.toBinary({
15512
15512
  channelId: t,
15513
15513
  userId: e.userId,
@@ -15524,7 +15524,7 @@ class as {
15524
15524
  pinned: e,
15525
15525
  channelId: t.channelId
15526
15526
  }, i = yield a(this, it).sendMessagePromise(
15527
- we.pinMessage,
15527
+ Re.pinMessage,
15528
15528
  aI.toBinary(r)
15529
15529
  );
15530
15530
  return id.fromBinary(i.payload);
@@ -15533,31 +15533,31 @@ class as {
15533
15533
  on(t, e) {
15534
15534
  let r, i;
15535
15535
  switch (t) {
15536
- case we.sendMessageToRoom: {
15536
+ case Re.sendMessageToRoom: {
15537
15537
  r = pu.fromBinary.bind(
15538
15538
  pu
15539
15539
  ), i = pu.create();
15540
15540
  break;
15541
15541
  }
15542
- case we.sendMessageToPeers: {
15542
+ case Re.sendMessageToPeers: {
15543
15543
  r = gu.fromBinary.bind(
15544
15544
  gu
15545
15545
  ), i = gu.create();
15546
15546
  break;
15547
15547
  }
15548
- case we.editMessage: {
15548
+ case Re.editMessage: {
15549
15549
  r = ad.fromBinary.bind(
15550
15550
  ad
15551
15551
  ), i = ad.create();
15552
15552
  break;
15553
15553
  }
15554
- case we.pinMessage: {
15554
+ case Re.pinMessage: {
15555
15555
  r = id.fromBinary.bind(
15556
15556
  id
15557
15557
  ), i = id.create();
15558
15558
  break;
15559
15559
  }
15560
- case we.deleteMessage: {
15560
+ case Re.deleteMessage: {
15561
15561
  r = nd.fromBinary.bind(
15562
15562
  nd
15563
15563
  ), i = nd.create();
@@ -15582,37 +15582,37 @@ class as {
15582
15582
  }
15583
15583
  }
15584
15584
  it = /* @__PURE__ */ new WeakMap(), qa = /* @__PURE__ */ new WeakMap();
15585
- bs([
15585
+ ws([
15586
15586
  T.trace("SocketService.getChatMessages")
15587
15587
  ], as.prototype, "getChatMessages", 1);
15588
- bs([
15588
+ ws([
15589
15589
  T.trace("SocketService.getChatMessagesPaginated")
15590
15590
  ], as.prototype, "getChatMessagesPaginated", 1);
15591
- bs([
15591
+ ws([
15592
15592
  T.trace("SocketService.sendMessageToRoom")
15593
15593
  ], as.prototype, "sendMessageToRoom", 1);
15594
- bs([
15594
+ ws([
15595
15595
  T.trace("SocketService.sendMessageToPeers")
15596
15596
  ], as.prototype, "sendMessageToPeers", 1);
15597
- bs([
15597
+ ws([
15598
15598
  T.trace("SocketService.sendMessageToChannel")
15599
15599
  ], as.prototype, "sendMessageToChannel", 1);
15600
- bs([
15600
+ ws([
15601
15601
  T.trace("SocketService.sendMessage")
15602
15602
  ], as.prototype, "sendMessage", 1);
15603
- bs([
15603
+ ws([
15604
15604
  T.trace("SocketService.editMessage")
15605
15605
  ], as.prototype, "editMessage", 1);
15606
- bs([
15606
+ ws([
15607
15607
  T.trace("SocketService.deleteMessage")
15608
15608
  ], as.prototype, "deleteMessage", 1);
15609
- bs([
15609
+ ws([
15610
15610
  T.trace("SocketService.searchMessages")
15611
15611
  ], as.prototype, "searchMessages", 1);
15612
- bs([
15612
+ ws([
15613
15613
  T.trace("SocketService.getAllChannels")
15614
15614
  ], as.prototype, "getAllChannels", 1);
15615
- bs([
15615
+ ws([
15616
15616
  T.trace("SocketService.markLastReadMessage")
15617
15617
  ], as.prototype, "markLastReadMessage", 1);
15618
15618
  function eM(s) {
@@ -15621,17 +15621,17 @@ function eM(s) {
15621
15621
  (t) => t[1].toUpperCase()
15622
15622
  );
15623
15623
  }
15624
- function Ps(s) {
15624
+ function _s(s) {
15625
15625
  if (!s || typeof s != "object")
15626
15626
  return s;
15627
15627
  if (Array.isArray(s))
15628
15628
  return s.map(
15629
- (e) => Ps(e)
15629
+ (e) => _s(e)
15630
15630
  );
15631
15631
  const t = {};
15632
15632
  return Object.keys(s).forEach((e) => {
15633
15633
  const r = validate(e) ? e : eM(e);
15634
- t[r] = Ps(s[e]);
15634
+ t[r] = _s(s[e]);
15635
15635
  }), t;
15636
15636
  }
15637
15637
  function tM(s) {
@@ -15977,7 +15977,7 @@ class jt extends aM {
15977
15977
  return l(this, arguments, function* ({
15978
15978
  manualIngestion: e
15979
15979
  }) {
15980
- const i = Ps(
15980
+ const i = _s(
15981
15981
  yield this.requests.post(
15982
15982
  `/v2/meetings/${this.context.getValue("meetingId")}/livestreams`,
15983
15983
  {
@@ -16005,7 +16005,7 @@ class jt extends aM {
16005
16005
  }
16006
16006
  getActiveLivestream() {
16007
16007
  return l(this, null, function* () {
16008
- const e = Ps(
16008
+ const e = _s(
16009
16009
  (yield this.requests.get(
16010
16010
  `/v2/meetings/${this.context.getValue("meetingId")}/active-livestream`
16011
16011
  )).data.data
@@ -16026,7 +16026,7 @@ class jt extends aM {
16026
16026
  if (this.userDetails)
16027
16027
  return this.userDetails;
16028
16028
  const e = (yield this.requests.get("v2/internals/participant-details")).data.data;
16029
- return Ps(e);
16029
+ return _s(e);
16030
16030
  });
16031
16031
  }
16032
16032
  startRecording(e, r) {
@@ -16074,7 +16074,7 @@ class jt extends aM {
16074
16074
  title: i,
16075
16075
  useHiveMedia: n,
16076
16076
  sfu: o
16077
- } = Ps(
16077
+ } = _s(
16078
16078
  (yield this.requests.post("v2/internals/rooms", {
16079
16079
  ip_information: e
16080
16080
  })).data.data
@@ -16547,7 +16547,7 @@ let Qe = (kg = class extends qt {
16547
16547
  const o = yield a(this, Fe).getChatMessagesPaginated(t, e, r, i, n);
16548
16548
  return {
16549
16549
  messages: o.messages.map(
16550
- (c) => _s.formatSocketServiceMessage(c)
16550
+ (c) => Es.formatSocketServiceMessage(c)
16551
16551
  ),
16552
16552
  next: o.next
16553
16553
  };
@@ -16610,7 +16610,7 @@ let Qe = (kg = class extends qt {
16610
16610
  return l(this, arguments, function* (t, e = {}) {
16611
16611
  if (!a(this, Ti).getValue("flagsmith").hasFeature(Z.FEAT_CHAT_SDK_SEARCH))
16612
16612
  throw new R("searchMessages is temporarily disabled!", "0506");
16613
- return (yield a(this, Fe).searchMessages(t, e)).map(_s.formatSocketServiceMessage);
16613
+ return (yield a(this, Fe).searchMessages(t, e)).map(Es.formatSocketServiceMessage);
16614
16614
  });
16615
16615
  }
16616
16616
  markLastReadMessage(t, e) {
@@ -16798,7 +16798,7 @@ const ci = (Ig = class {
16798
16798
  this.getChatMessages();
16799
16799
  })
16800
16800
  ), this.chatSocketHandler.on(
16801
- we.sendMessageToRoom,
16801
+ Re.sendMessageToRoom,
16802
16802
  (s) => {
16803
16803
  const t = ci.formatSocketServiceMessage(
16804
16804
  s.message
@@ -16816,7 +16816,7 @@ const ci = (Ig = class {
16816
16816
  });
16817
16817
  }
16818
16818
  ), this.chatSocketHandler.on(
16819
- we.sendMessageToPeers,
16819
+ Re.sendMessageToPeers,
16820
16820
  (s) => {
16821
16821
  const t = ci.formatSocketServiceMessage(
16822
16822
  s.message
@@ -16828,7 +16828,7 @@ const ci = (Ig = class {
16828
16828
  });
16829
16829
  }
16830
16830
  ), this.chatSocketHandler.on(
16831
- we.editMessage,
16831
+ Re.editMessage,
16832
16832
  (s) => {
16833
16833
  const t = ci.formatSocketServiceMessage(
16834
16834
  s.message
@@ -16849,7 +16849,7 @@ const ci = (Ig = class {
16849
16849
  }));
16850
16850
  }
16851
16851
  ), this.chatSocketHandler.on(
16852
- we.deleteMessage,
16852
+ Re.deleteMessage,
16853
16853
  (s) => {
16854
16854
  if (s.channelId) {
16855
16855
  this.chat.emit("chatUpdate", {
@@ -16876,7 +16876,7 @@ const ci = (Ig = class {
16876
16876
  this.chat.channels.push(e), this.chat.emit("channelCreate", e);
16877
16877
  }
16878
16878
  ), this.chatSocketHandler.on(
16879
- we.pinMessage,
16879
+ Re.pinMessage,
16880
16880
  (s) => {
16881
16881
  const t = this.chat.messages.findIndex((r) => r.id === s.chatId);
16882
16882
  if (t === -1)
@@ -16897,10 +16897,10 @@ const ci = (Ig = class {
16897
16897
  );
16898
16898
  }
16899
16899
  }, Ar = /* @__PURE__ */ new WeakMap(), Ig);
16900
- let _s = ci;
16900
+ let Es = ci;
16901
16901
  mM([
16902
16902
  T.trace("ChatController.setupEvents")
16903
- ], _s.prototype, "setupEvents", 1);
16903
+ ], Es.prototype, "setupEvents", 1);
16904
16904
  var fM = Object.defineProperty, SM = Object.getOwnPropertyDescriptor, vM = (s, t, e, r) => {
16905
16905
  for (var i = r > 1 ? void 0 : r ? SM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
16906
16906
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
@@ -17425,7 +17425,7 @@ var MM = Object.defineProperty, DM = Object.getOwnPropertyDescriptor, Ta = (s, t
17425
17425
  for (var i = r > 1 ? void 0 : r ? DM(t, e) : t, n = s.length - 1, o; n >= 0; n--)
17426
17426
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
17427
17427
  return r && i && MM(t, e, i), i;
17428
- }, Yt, Jd, ae, jo, As, Ke, Go, Gu, za, Sd;
17428
+ }, Yt, Jd, ae, jo, Is, Ke, Go, Gu, za, Sd;
17429
17429
  class ii extends qt {
17430
17430
  constructor(e, r, i, n, o) {
17431
17431
  const c = e.getValue("logger");
@@ -17436,9 +17436,9 @@ class ii extends qt {
17436
17436
  g(this, Jd, void 0);
17437
17437
  g(this, ae, void 0);
17438
17438
  g(this, jo, void 0);
17439
- g(this, As, void 0);
17439
+ g(this, Is, void 0);
17440
17440
  g(this, Ke, void 0);
17441
- m(this, Ke, e), m(this, Yt, n), m(this, Jd, o), m(this, ae, r), m(this, jo, i), m(this, As, []), this.setupEvents();
17441
+ m(this, Ke, e), m(this, Yt, n), m(this, Jd, o), m(this, ae, r), m(this, jo, i), m(this, Is, []), this.setupEvents();
17442
17442
  }
17443
17443
  get telemetry() {
17444
17444
  return a(this, Ke).getValue("telemetry");
@@ -17449,10 +17449,10 @@ class ii extends qt {
17449
17449
  setupEvents() {
17450
17450
  const e = {
17451
17451
  [b.GET_STAGE_REQUESTS]: (n) => l(this, null, function* () {
17452
- m(this, As, n);
17452
+ m(this, Is, n);
17453
17453
  }),
17454
17454
  [b.UPDATE_STAGE_REQUESTS]: (o) => l(this, [o], function* ({ add: n }) {
17455
- const c = a(this, As).length, { stageRequests: d } = this.getAccessRequests();
17455
+ const c = a(this, Is).length, { stageRequests: d } = this.getAccessRequests();
17456
17456
  (n || d.length > c) && this.emit("newStageRequest", { count: d.length }), this.emit("stageAccessRequestUpdate", d);
17457
17457
  })
17458
17458
  }, r = () => {
@@ -17472,7 +17472,7 @@ class ii extends qt {
17472
17472
  };
17473
17473
  a(this, ae).permissions.on("permissionsUpdate", (n) => {
17474
17474
  const { canAcceptProductionRequests: o } = n;
17475
- o !== void 0 && (a(this, ae).permissions.acceptStageRequests ? (r(), a(this, Yt).getStageRequests()) : (i(), m(this, As, []), this.emit("stageAccessRequestUpdate", a(this, As))));
17475
+ o !== void 0 && (a(this, ae).permissions.acceptStageRequests ? (r(), a(this, Yt).getStageRequests()) : (i(), m(this, Is, []), this.emit("stageAccessRequestUpdate", a(this, Is))));
17476
17476
  }), a(this, ae).permissions.acceptStageRequests && r();
17477
17477
  }
17478
17478
  getAccessRequests() {
@@ -17487,7 +17487,7 @@ class ii extends qt {
17487
17487
  userId: r.userId,
17488
17488
  peerId: r.id
17489
17489
  }));
17490
- return m(this, As, e), { stageRequests: a(this, As) };
17490
+ return m(this, Is, e), { stageRequests: a(this, Is) };
17491
17491
  }
17492
17492
  requestAccess() {
17493
17493
  return l(this, null, function* () {
@@ -17582,7 +17582,7 @@ class ii extends qt {
17582
17582
  });
17583
17583
  }
17584
17584
  }
17585
- Yt = /* @__PURE__ */ new WeakMap(), Jd = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), jo = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), Go = /* @__PURE__ */ new WeakSet(), Gu = function() {
17585
+ Yt = /* @__PURE__ */ new WeakMap(), Jd = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), jo = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), Go = /* @__PURE__ */ new WeakSet(), Gu = function() {
17586
17586
  return a(this, Ke).getValue("roomNodeClient");
17587
17587
  }, za = /* @__PURE__ */ new WeakSet(), Sd = function(e) {
17588
17588
  return l(this, null, function* () {
@@ -18410,17 +18410,17 @@ const Lf = (Lg = class {
18410
18410
  });
18411
18411
  })
18412
18412
  ), a(this, en).on(
18413
- we.sendMessageToPeers,
18413
+ Re.sendMessageToPeers,
18414
18414
  (s) => {
18415
- const t = _s == null ? void 0 : _s.formatSocketServiceMessage(
18415
+ const t = Es == null ? void 0 : Es.formatSocketServiceMessage(
18416
18416
  s.message
18417
18417
  );
18418
18418
  this.broadcastIframeEvent(Ie.chatMessage, { message: t });
18419
18419
  }
18420
18420
  ), a(this, en).on(
18421
- we.sendMessageToRoom,
18421
+ Re.sendMessageToRoom,
18422
18422
  (s) => {
18423
- const t = _s == null ? void 0 : _s.formatSocketServiceMessage(
18423
+ const t = Es == null ? void 0 : Es.formatSocketServiceMessage(
18424
18424
  s.message
18425
18425
  );
18426
18426
  this.broadcastIframeEvent(Ie.chatMessage, { message: t });
@@ -19348,7 +19348,7 @@ const hg = {
19348
19348
  }), r[o][1];
19349
19349
  };
19350
19350
  var pe = /* @__PURE__ */ ((s) => (s.WEBCAM = "webcam", s.WEBCAM_BACKUP = "webcam_backup", s.MIC = "mic", s.SCREENSHARE_VIDEO = "screenshare_video", s.SCREENSHARE_AUDIO = "screenshare_audio", s))(pe || {});
19351
- const i0 = Y_(), Pa = Ps(
19351
+ const i0 = Y_(), Pa = _s(
19352
19352
  i0.config.media
19353
19353
  );
19354
19354
  function a0(s) {
@@ -19359,18 +19359,18 @@ function a0(s) {
19359
19359
  enableHighBitrate: (r = s.audio.enableHighBitrate) != null ? r : false
19360
19360
  }), t.video = s.video.quality, t;
19361
19361
  }
19362
- var ki, Ms;
19362
+ var ki, As;
19363
19363
  class n0 {
19364
19364
  constructor(t, e) {
19365
19365
  g(this, ki, void 0);
19366
- g(this, Ms, void 0);
19366
+ g(this, As, void 0);
19367
19367
  h(this, "getScreenShareConstraints", () => {
19368
19368
  var u, p, f, S, E, _, P, k, A, N, H;
19369
19369
  const t2 = (u = a(this, ki)) == null ? void 0 : u.screenshare, e2 = (f = (p = t2 == null ? void 0 : t2.width) == null ? void 0 : p.max) != null ? f : 1920, r = (E = (S = t2 == null ? void 0 : t2.height) == null ? void 0 : S.max) != null ? E : 1080, i = (P = (_ = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : _.max) != null ? P : 5;
19370
19370
  let n = (A = (k = t2 == null ? void 0 : t2.frameRate) == null ? void 0 : k.ideal) != null ? A : 5;
19371
19371
  const o = t2 == null ? void 0 : t2.displaySurface, c = t2 == null ? void 0 : t2.selfBrowserSurface;
19372
- a(this, Ms).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE) && (n = parseInt(
19373
- (N = a(this, Ms).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE)) == null ? void 0 : N.toString(),
19372
+ a(this, As).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE) && (n = parseInt(
19373
+ (N = a(this, As).getValue("flagsmith").getValue(Z.VAL_MIN_FRAMERATE)) == null ? void 0 : N.toString(),
19374
19374
  10
19375
19375
  ));
19376
19376
  let d = {
@@ -19381,8 +19381,8 @@ class n0 {
19381
19381
  max: i
19382
19382
  }
19383
19383
  };
19384
- if (a(this, Ms).getValue("flagsmith").hasFeature(Z.SCREENSHARE_CONSTRAINTS)) {
19385
- const $ = (H = a(this, Ms).getValue("flagsmith").getValue(
19384
+ if (a(this, As).getValue("flagsmith").hasFeature(Z.SCREENSHARE_CONSTRAINTS)) {
19385
+ const $ = (H = a(this, As).getValue("flagsmith").getValue(
19386
19386
  Z.SCREENSHARE_CONSTRAINTS
19387
19387
  )) == null ? void 0 : H.toString();
19388
19388
  d = JSON.parse($);
@@ -19417,21 +19417,21 @@ class n0 {
19417
19417
  let i = hg.vga;
19418
19418
  if (typeof r == "string" ? i = hg[r] : r !== void 0 && (i.height.ideal = r.height.ideal, i.width.ideal = r.width.ideal), i.frameRate = {
19419
19419
  ideal: (c = (o = i.frameRate) == null ? void 0 : o.ideal) != null ? c : 24
19420
- }, Te.isChromiumBased() && (i.frameRate.max = 30), a(this, Ms).getValue("flagsmith").hasFeature(Z.VIDEO_CONSTRAINTS)) {
19421
- const u = (d = a(this, Ms).getValue("flagsmith").getValue(
19420
+ }, Te.isChromiumBased() && (i.frameRate.max = 30), a(this, As).getValue("flagsmith").hasFeature(Z.VIDEO_CONSTRAINTS)) {
19421
+ const u = (d = a(this, As).getValue("flagsmith").getValue(
19422
19422
  Z.VIDEO_CONSTRAINTS
19423
19423
  )) == null ? void 0 : d.toString();
19424
19424
  i = JSON.parse(u);
19425
19425
  }
19426
19426
  return e2.video = i, typeof e2.video == "boolean" || (t2 ? e2.video.deviceId = { exact: t2 } : e2.video.facingMode = "user"), e2;
19427
19427
  });
19428
- m(this, Ms, t), m(this, ki, e);
19428
+ m(this, As, t), m(this, ki, e);
19429
19429
  }
19430
19430
  getUpdatedVideoConstraints(t) {
19431
19431
  return t;
19432
19432
  }
19433
19433
  }
19434
- ki = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap();
19434
+ ki = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap();
19435
19435
  class Su extends Error {
19436
19436
  constructor(e, r, i) {
19437
19437
  super(r);
@@ -19468,7 +19468,7 @@ class o0 {
19468
19468
  });
19469
19469
  }
19470
19470
  }
19471
- var c0 = Object.defineProperty, d0 = Object.getOwnPropertyDescriptor, ks = (s, t, e, r) => {
19471
+ var c0 = Object.defineProperty, d0 = Object.getOwnPropertyDescriptor, bs = (s, t, e, r) => {
19472
19472
  for (var i = r > 1 ? void 0 : r ? d0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
19473
19473
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
19474
19474
  return r && i && c0(t, e, i), i;
@@ -19771,37 +19771,37 @@ let Bt = (Ug = class extends o0 {
19771
19771
  });
19772
19772
  }
19773
19773
  }, an = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), Ug);
19774
- ks([
19774
+ bs([
19775
19775
  T.trace("WebMediaInterface.destruct")
19776
19776
  ], Bt.prototype, "destruct", 1);
19777
- ks([
19777
+ bs([
19778
19778
  T.trace("WebMediaInterface.handlePermissionErrors")
19779
19779
  ], Bt.prototype, "handlePermissionErrors", 1);
19780
- ks([
19780
+ bs([
19781
19781
  T.trace("WebMediaInterface.getAudioAndVideoTrack")
19782
19782
  ], Bt.prototype, "getAudioAndVideoTrack", 1);
19783
- ks([
19783
+ bs([
19784
19784
  T.trace("WebMediaInterface.getAudioTrack")
19785
19785
  ], Bt.prototype, "getAudioTrack", 1);
19786
- ks([
19786
+ bs([
19787
19787
  T.trace("WebMediaInterface.getVideoTrack")
19788
19788
  ], Bt.prototype, "getVideoTrack", 1);
19789
- ks([
19789
+ bs([
19790
19790
  T.trace("WebMediaInterface.getScreenShareTracks")
19791
19791
  ], Bt.prototype, "getScreenShareTracks", 1);
19792
- ks([
19792
+ bs([
19793
19793
  T.trace("WebMediaInterface.getAvailableDevices")
19794
19794
  ], Bt.prototype, "getAvailableDevices", 1);
19795
- ks([
19795
+ bs([
19796
19796
  T.trace("WebMediaInterface.getAvailableDevicesByKind")
19797
19797
  ], Bt.prototype, "getAvailableDevicesByKind", 1);
19798
- ks([
19798
+ bs([
19799
19799
  T.trace("WebMediaInterface.getDevice")
19800
19800
  ], Bt.prototype, "getDevice", 1);
19801
- ks([
19801
+ bs([
19802
19802
  T.trace("WebMediaInterface.onDeviceChange")
19803
19803
  ], Bt.prototype, "onDeviceChange", 1);
19804
- Bt = ks([
19804
+ Bt = bs([
19805
19805
  ht("1600")
19806
19806
  ], Bt);
19807
19807
  const Uf = Bt, ko = {
@@ -20489,7 +20489,7 @@ zl([
20489
20489
  zl([
20490
20490
  T.trace("VideoMediaHandler.conditionallyChangeTrack")
20491
20491
  ], zc.prototype, "conditionallyChangeTrack", 1);
20492
- const b0 = zc, mg = Ps(
20492
+ const b0 = zc, mg = _s(
20493
20493
  kh()
20494
20494
  );
20495
20495
  var Rt, Ii, Xo, cn;
@@ -20501,7 +20501,7 @@ const Ma = class {
20501
20501
  g(this, cn, void 0);
20502
20502
  if (!t)
20503
20503
  throw new R("Could not load preset.", "0904");
20504
- m(this, Rt, t.config), m(this, Xo, t.name), m(this, Ii, t.ui || Ps(kh().ui)), m(this, cn, t.permissions.plugins.config);
20504
+ m(this, Rt, t.config), m(this, Xo, t.name), m(this, Ii, t.ui || _s(kh().ui)), m(this, cn, t.permissions.plugins.config);
20505
20505
  }
20506
20506
  static fromResponse(t) {
20507
20507
  return new Ma(t);
@@ -20680,21 +20680,21 @@ var A0 = Object.defineProperty, M0 = Object.getOwnPropertyDescriptor, D0 = (s, t
20680
20680
  for (var i = r > 1 ? void 0 : r ? M0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
20681
20681
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
20682
20682
  return r && i && A0(t, e, i), i;
20683
- }, ln, un, Ys, Ds;
20683
+ }, ln, un, Ys, Ms;
20684
20684
  class Bf {
20685
20685
  constructor(t, e, r) {
20686
20686
  h(this, "livestream");
20687
20687
  g(this, ln, void 0);
20688
20688
  g(this, un, void 0);
20689
20689
  g(this, Ys, void 0);
20690
- g(this, Ds, void 0);
20691
- m(this, Ds, t), m(this, un, e), this.livestream = new $h(t, e), m(this, Ys, r), this.setupEvents();
20690
+ g(this, Ms, void 0);
20691
+ m(this, Ms, t), m(this, un, e), this.livestream = new $h(t, e), m(this, Ys, r), this.setupEvents();
20692
20692
  }
20693
20693
  get logger() {
20694
- return a(this, Ds).getValue("logger");
20694
+ return a(this, Ms).getValue("logger");
20695
20695
  }
20696
20696
  get telemetry() {
20697
- return a(this, Ds).getValue("telemetry");
20697
+ return a(this, Ms).getValue("telemetry");
20698
20698
  }
20699
20699
  fetchInitialLivestreamingState() {
20700
20700
  return l(this, null, function* () {
@@ -20739,15 +20739,15 @@ class Bf {
20739
20739
  (t) => {
20740
20740
  this.livestream.viewerCount = t.count, this.livestream.emit("viewerCountUpdate", t.count);
20741
20741
  }
20742
- ), a(this, Ds).getValue("peerSessionStore").on(
20742
+ ), a(this, Ms).getValue("peerSessionStore").on(
20743
20743
  b.PEER_JOINED_INTERNAL,
20744
20744
  (t) => l(this, null, function* () {
20745
20745
  var e;
20746
20746
  ((e = t.flags) == null ? void 0 : e.hiddenParticipant) === true && t.recorderType === "LIVESTREAMER" && (m(this, ln, t.id), this.livestream.setLivestreamState("LIVESTREAMING"));
20747
20747
  })
20748
- ), a(this, Ds).getValue("peerSessionStore").on(b.PEER_CLOSED, (t) => {
20748
+ ), a(this, Ms).getValue("peerSessionStore").on(b.PEER_CLOSED, (t) => {
20749
20749
  t.id === a(this, ln) && (m(this, ln, void 0), this.livestream.setLivestreamState("IDLE"));
20750
- }), a(this, Ds).getValue("peerSessionStore").onAsync(b.LEAVE_MEDIA_ROOM, () => l(this, null, function* () {
20750
+ }), a(this, Ms).getValue("peerSessionStore").onAsync(b.LEAVE_MEDIA_ROOM, () => l(this, null, function* () {
20751
20751
  if (!this.livestream.playbackUrl) {
20752
20752
  this.logger.info("Fetching livestreaming state on leave stage");
20753
20753
  try {
@@ -20756,7 +20756,7 @@ class Bf {
20756
20756
  this.logger.error("Failed to fetch livestreaming state on leave stage", { error: t });
20757
20757
  }
20758
20758
  }
20759
- })), a(this, Ds).getValue("peerSessionStore").on(b.SOCKET_SERVICE_ROOM_JOINED, () => l(this, null, function* () {
20759
+ })), a(this, Ms).getValue("peerSessionStore").on(b.SOCKET_SERVICE_ROOM_JOINED, () => l(this, null, function* () {
20760
20760
  try {
20761
20761
  yield this.fetchInitialLivestreamingState();
20762
20762
  } catch (t) {
@@ -20765,7 +20765,7 @@ class Bf {
20765
20765
  }));
20766
20766
  }
20767
20767
  }
20768
- ln = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap();
20768
+ ln = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap();
20769
20769
  D0([
20770
20770
  T.trace("LivestreamController.setupEvents")
20771
20771
  ], Bf.prototype, "setupEvents", 1);
@@ -21838,7 +21838,7 @@ Wt([
21838
21838
  Pt = Wt([
21839
21839
  ht("1200")
21840
21840
  ], Pt);
21841
- var La = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(La || {}), Pe = /* @__PURE__ */ ((s) => (s[s.HIVE = 1] = "HIVE", s[s.ROOM_NODE = 2] = "ROOM_NODE", s[s.CF = 3] = "CF", s))(Pe || {}), W0 = Object.defineProperty, J0 = Object.getOwnPropertyDescriptor, Ea = (s, t, e, r) => {
21841
+ var La = /* @__PURE__ */ ((s) => (s.NEW = "new", s.CONNECTING = "connecting", s.RECONNECTING = "reconnecting", s.DISCONNECTED = "disconnected", s.CONNECTED = "connected", s.FAILED = "failed", s.CLOSED = "closed", s))(La || {}), we = /* @__PURE__ */ ((s) => (s[s.HIVE = 1] = "HIVE", s[s.ROOM_NODE = 2] = "ROOM_NODE", s[s.CF = 3] = "CF", s))(we || {}), W0 = Object.defineProperty, J0 = Object.getOwnPropertyDescriptor, Ea = (s, t, e, r) => {
21842
21842
  for (var i = r > 1 ? void 0 : r ? J0(t, e) : t, n = s.length - 1, o; n >= 0; n--)
21843
21843
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
21844
21844
  return r && i && W0(t, e, i), i;
@@ -21886,12 +21886,12 @@ const Td = (Hg = class {
21886
21886
  this.context = s;
21887
21887
  const i = s.getValue("logger");
21888
21888
  switch (m(this, Ui, new mi(i)), m(this, $i, new mi(i)), this.roomSocketHandler = e, this.participants = new Pt(s, t, this.roomSocketHandler), this.self = t, this.consumerPeerMap = /* @__PURE__ */ new Map(), r) {
21889
- case Pe.HIVE: {
21889
+ case we.HIVE: {
21890
21890
  this.events = is;
21891
21891
  break;
21892
21892
  }
21893
- case Pe.CF: {
21894
- this.events = Es;
21893
+ case we.CF: {
21894
+ this.events = Ts;
21895
21895
  break;
21896
21896
  }
21897
21897
  default:
@@ -22750,7 +22750,7 @@ Ea([
22750
22750
  Ea([
22751
22751
  T.trace("ParticipantController.processNewConsumer")
22752
22752
  ], Tr.prototype, "processNewConsumer", 1);
22753
- const he = Ps(
22753
+ const he = _s(
22754
22754
  kh().permissions
22755
22755
  );
22756
22756
  var q, fn, Hi, el, St, Vt;
@@ -22825,7 +22825,7 @@ const Da = class extends qt {
22825
22825
  }
22826
22826
  get mediaRoomType() {
22827
22827
  const { sfu: e } = a(this, Hi).getValue("roomNodeOptions");
22828
- return e === Pe.CF ? "CF" : "HIVE";
22828
+ return e === we.CF ? "CF" : "HIVE";
22829
22829
  }
22830
22830
  get stageEnabled() {
22831
22831
  var e;
@@ -23987,7 +23987,7 @@ class eD {
23987
23987
  g(this, ze, void 0);
23988
23988
  h(this, "events");
23989
23989
  h(this, "sfuType");
23990
- m(this, ze, t), this.sfuType = e, this.events = e === Pe.CF ? Es : is;
23990
+ m(this, ze, t), this.sfuType = e, this.events = e === we.CF ? Ts : is;
23991
23991
  }
23992
23992
  joinRoom(t, e, r, i = false, n = null) {
23993
23993
  return l(this, null, function* () {
@@ -24038,7 +24038,7 @@ class eD {
24038
24038
  }
24039
24039
  consume(t) {
24040
24040
  return l(this, null, function* () {
24041
- if (this.sfuType === Pe.HIVE)
24041
+ if (this.sfuType === we.HIVE)
24042
24042
  throw new Error("Hive does not support socket consumer operations");
24043
24043
  const e = (yield a(this, ze).sendMessagePromise(
24044
24044
  this.events.consume,
@@ -24061,7 +24061,7 @@ class eD {
24061
24061
  }
24062
24062
  closeConsumer(t) {
24063
24063
  return l(this, null, function* () {
24064
- if (this.sfuType === Pe.HIVE)
24064
+ if (this.sfuType === we.HIVE)
24065
24065
  throw new Error("Hive does not support socket consumer operations");
24066
24066
  return (yield a(this, ze).sendMessagePromise(
24067
24067
  this.events.closeConsumer,
@@ -24071,7 +24071,7 @@ class eD {
24071
24071
  }
24072
24072
  updateConsumersSimulcastConfig(t) {
24073
24073
  return l(this, null, function* () {
24074
- if (this.sfuType === Pe.HIVE)
24074
+ if (this.sfuType === we.HIVE)
24075
24075
  throw new Error("Method not implemented");
24076
24076
  return (yield a(this, ze).sendMessagePromise(
24077
24077
  this.events.updateConsumersSimulcastConfig,
@@ -24219,7 +24219,7 @@ class Bh extends Yl {
24219
24219
  h(this, "enableHighBitrate", false);
24220
24220
  h(this, "enableStereo", false);
24221
24221
  h(this, "enableDtx", true);
24222
- h(this, "sfu", Pe.HIVE);
24222
+ h(this, "sfu", we.HIVE);
24223
24223
  }
24224
24224
  get midTransceiverMap() {
24225
24225
  return this._mapMidTransceiver;
@@ -24269,7 +24269,7 @@ class Bh extends Yl {
24269
24269
  connect() {
24270
24270
  return l(this, null, function* () {
24271
24271
  let e;
24272
- this.sfu === Pe.CF ? this.pc.addTransceiver("video", { direction: "sendonly" }) : e = this.pc.createDataChannel("dyte");
24272
+ this.sfu === we.CF ? this.pc.addTransceiver("video", { direction: "sendonly" }) : e = this.pc.createDataChannel("dyte");
24273
24273
  const r = yield this.pc.createOffer();
24274
24274
  return yield this.pc.setLocalDescription(r), this.logger.info(`connect offer: ${JSON.stringify(r)}`), {
24275
24275
  offerSdp: r,
@@ -24699,12 +24699,12 @@ class jh extends Bh {
24699
24699
  function tD(s, t) {
24700
24700
  return typeof s == "undefined" ? t : typeof window != "undefined" && Object.getOwnPropertyDescriptor(window, "structuredClone") ? structuredClone(s) : JSON.parse(JSON.stringify(s));
24701
24701
  }
24702
- var oc, Bi, Os, tl, Ns, wr, cc, eh, sl, Qf, rl, Xf;
24702
+ var oc, Bi, Ds, tl, Os, wr, cc, eh, sl, Qf, rl, Xf;
24703
24703
  class sD extends Yl {
24704
24704
  constructor(e, r) {
24705
24705
  var i;
24706
24706
  super(e);
24707
- g(this, Ns);
24707
+ g(this, Os);
24708
24708
  g(this, cc);
24709
24709
  g(this, sl);
24710
24710
  g(this, rl);
@@ -24720,12 +24720,12 @@ class sD extends Yl {
24720
24720
  h(this, "transceiver");
24721
24721
  g(this, oc, void 0);
24722
24722
  g(this, Bi, void 0);
24723
- g(this, Os, void 0);
24723
+ g(this, Ds, void 0);
24724
24724
  g(this, tl, void 0);
24725
- this.id = r.id, this.localId = r.localId, m(this, oc, r.handler), this.appData = r.appData, this.peerId = r.producingPeerId, this.producingTransportId = r.producingTransportId, m(this, Os, false), this.producerId = r.producerId, this.track = r.track, m(this, Bi, (i = r.paused) != null ? i : false), this.mimeType = r.mimeType, this.transceiver = r.transceiver, this.rtpReceiver = r.rtpReceiver, L(this, sl, Qf).call(this), m(this, tl, e);
24725
+ this.id = r.id, this.localId = r.localId, m(this, oc, r.handler), this.appData = r.appData, this.peerId = r.producingPeerId, this.producingTransportId = r.producingTransportId, m(this, Ds, false), this.producerId = r.producerId, this.track = r.track, m(this, Bi, (i = r.paused) != null ? i : false), this.mimeType = r.mimeType, this.transceiver = r.transceiver, this.rtpReceiver = r.rtpReceiver, L(this, sl, Qf).call(this), m(this, tl, e);
24726
24726
  }
24727
24727
  get closed() {
24728
- return a(this, Os);
24728
+ return a(this, Ds);
24729
24729
  }
24730
24730
  get kind() {
24731
24731
  return this.track.kind;
@@ -24734,31 +24734,31 @@ class sD extends Yl {
24734
24734
  return a(this, Bi);
24735
24735
  }
24736
24736
  close(e, r) {
24737
- a(this, Os) || (this.logger.debug(`Consumer::close() ${e ? `with reason ${e}` : ""}`, a(this, Ns, wr)), m(this, Os, true), r && (L(this, rl, Xf).call(this), this.transceiver.stop()), this.safeEmit("close", e));
24737
+ a(this, Ds) || (this.logger.debug(`Consumer::close() ${e ? `with reason ${e}` : ""}`, a(this, Os, wr)), m(this, Ds, true), r && (L(this, rl, Xf).call(this), this.transceiver.stop()), this.safeEmit("close", e));
24738
24738
  }
24739
24739
  getStats() {
24740
24740
  return l(this, null, function* () {
24741
- if (a(this, Os))
24741
+ if (a(this, Ds))
24742
24742
  throw new At("closed");
24743
24743
  return a(this, oc).getReceiverStats(this.localId);
24744
24744
  });
24745
24745
  }
24746
24746
  pause() {
24747
- if (this.logger.debug("consumer::pause()", a(this, Ns, wr)), a(this, Os)) {
24748
- this.logger.error("consumer::pause() | Consumer closed", a(this, Ns, wr));
24747
+ if (this.logger.debug("consumer::pause()", a(this, Os, wr)), a(this, Ds)) {
24748
+ this.logger.error("consumer::pause() | Consumer closed", a(this, Os, wr));
24749
24749
  return;
24750
24750
  }
24751
24751
  m(this, Bi, true), this.track.enabled = false, this.safeEmit("pause");
24752
24752
  }
24753
24753
  resume() {
24754
- if (this.logger.debug("consumer::resume()", a(this, Ns, wr)), a(this, Os)) {
24755
- this.logger.error("Consumer::resume() | Consumer closed", a(this, Ns, wr));
24754
+ if (this.logger.debug("consumer::resume()", a(this, Os, wr)), a(this, Ds)) {
24755
+ this.logger.error("Consumer::resume() | Consumer closed", a(this, Os, wr));
24756
24756
  return;
24757
24757
  }
24758
24758
  m(this, Bi, false), this.track.enabled = true, this.safeEmit("resume");
24759
24759
  }
24760
24760
  }
24761
- oc = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakSet(), wr = function() {
24761
+ oc = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakSet(), wr = function() {
24762
24762
  return {
24763
24763
  consumer: {
24764
24764
  id: this.id,
@@ -24768,14 +24768,14 @@ oc = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Os = /*
24768
24768
  }
24769
24769
  };
24770
24770
  }, cc = /* @__PURE__ */ new WeakSet(), eh = function() {
24771
- this.logger.debug('Consumer::track "ended" event', a(this, Ns, wr)), this.safeEmit("trackended");
24771
+ this.logger.debug('Consumer::track "ended" event', a(this, Os, wr)), this.safeEmit("trackended");
24772
24772
  }, sl = /* @__PURE__ */ new WeakSet(), Qf = function() {
24773
24773
  this.track.addEventListener("ended", L(this, cc, eh).bind(this));
24774
24774
  }, rl = /* @__PURE__ */ new WeakSet(), Xf = function() {
24775
24775
  try {
24776
24776
  this.track.removeEventListener("ended", L(this, cc, eh)), this.track.stop();
24777
24777
  } catch (e) {
24778
- this.logger.error("Consumer::destroyTrack()", B(D({}, a(this, Ns, wr)), {
24778
+ this.logger.error("Consumer::destroyTrack()", B(D({}, a(this, Os, wr)), {
24779
24779
  error: e
24780
24780
  }));
24781
24781
  }
@@ -25221,7 +25221,7 @@ const Na = class extends Yl {
25221
25221
  this.setServerId(n), yield i(o);
25222
25222
  })), !(yield this.transportConnectionPromise))
25223
25223
  throw new Error("ice connection failed");
25224
- if (a(this, Gi) === Pe.HIVE && !(yield this.isEventsDCReady))
25224
+ if (a(this, Gi) === we.HIVE && !(yield this.isEventsDCReady))
25225
25225
  throw new Error("events datachannel not open");
25226
25226
  } catch (r) {
25227
25227
  throw this.logger.error("transport failed to connect:", { error: r }), r;
@@ -25445,7 +25445,7 @@ const Na = class extends Yl {
25445
25445
  const { track: r, transceiver: i, streams: n } = e;
25446
25446
  this.logger.info(`track event received [trackId: ${r.id}] [mid: ${i.mid}]`);
25447
25447
  let o;
25448
- a(this, Gi) === Pe.HIVE ? o = `${n[0].id}:${r.kind}` : o = `${i.mid}:${r.kind}`, r.addEventListener("ended", () => {
25448
+ a(this, Gi) === we.HIVE ? o = `${n[0].id}:${r.kind}` : o = `${i.mid}:${r.kind}`, r.addEventListener("ended", () => {
25449
25449
  this.logger.info(`rtc consumer track ended [trackId: ${r.id}]`), this.unknownTracksMap.delete(o);
25450
25450
  });
25451
25451
  const c = this.consumerTrackEvents.get(o);
@@ -25647,7 +25647,7 @@ class nD {
25647
25647
  }
25648
25648
  dc = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap();
25649
25649
  const oD = 2e3;
25650
- var Rn, ot, ct, lc, uc, Ki, wn, bn, kn, zi, Vs, In, An, _d, hc, sh, nl, tS, pc, rh, ol, sS, cl, rS, dl, iS, ll, aS, ul, nS, gc, ih, mc, ah;
25650
+ var Rn, ot, ct, lc, uc, Ki, wn, bn, kn, zi, Ns, In, An, _d, hc, sh, nl, tS, pc, rh, ol, sS, cl, rS, dl, iS, ll, aS, ul, nS, gc, ih, mc, ah;
25651
25651
  class cD extends ut.EventEmitter {
25652
25652
  constructor(e, r, i) {
25653
25653
  super();
@@ -25679,14 +25679,14 @@ class cD extends ut.EventEmitter {
25679
25679
  lastConnectionTime: 0
25680
25680
  });
25681
25681
  g(this, zi, void 0);
25682
- g(this, Vs, "all");
25682
+ g(this, Ns, "all");
25683
25683
  g(this, In, void 0);
25684
25684
  switch (this.context = e, m(this, Ki, r), m(this, In, i), m(this, Rn, new nD(e, i)), m(this, wn, new eD(r, i)), i) {
25685
- case Pe.CF: {
25686
- m(this, bn, Es);
25685
+ case we.CF: {
25686
+ m(this, bn, Ts);
25687
25687
  break;
25688
25688
  }
25689
- case Pe.HIVE:
25689
+ case we.HIVE:
25690
25690
  default: {
25691
25691
  m(this, bn, is);
25692
25692
  break;
@@ -25695,7 +25695,7 @@ class cD extends ut.EventEmitter {
25695
25695
  a(this, An, _d).mediaState = {
25696
25696
  send: { state: La.NEW },
25697
25697
  recv: { state: La.NEW }
25698
- }, (jn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(Z.FORCE_RELAY)) && m(this, Vs, "relay"), this.logger.info(`ICE Transport Policy initially set to ${a(this, Vs)}`), L(this, hc, sh).call(this);
25698
+ }, (jn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(Z.FORCE_RELAY)) && m(this, Ns, "relay"), this.logger.info(`ICE Transport Policy initially set to ${a(this, Ns)}`), L(this, hc, sh).call(this);
25699
25699
  }
25700
25700
  get telemetry() {
25701
25701
  return this.context.getValue("telemetry");
@@ -25765,7 +25765,7 @@ class cD extends ut.EventEmitter {
25765
25765
  throw new Error("Method not implemented.");
25766
25766
  }
25767
25767
  }
25768
- Rn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), lc = /* @__PURE__ */ new WeakMap(), uc = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakSet(), _d = function() {
25768
+ Rn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), lc = /* @__PURE__ */ new WeakMap(), uc = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakSet(), _d = function() {
25769
25769
  return this.context.getValue("connectionHandler");
25770
25770
  }, hc = /* @__PURE__ */ new WeakSet(), sh = function() {
25771
25771
  m(this, zi, {
@@ -25775,7 +25775,7 @@ Rn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25775
25775
  }, nl = /* @__PURE__ */ new WeakSet(), tS = function(e) {
25776
25776
  return l(this, null, function* () {
25777
25777
  var o, c, d, u, p, f, S, E;
25778
- (jn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(Z.FORCE_RELAY)) && m(this, Vs, "relay"), this.logger.info(`ICE Transport Policy set to ${a(this, Vs)}`);
25778
+ (jn(this.context, "forceRelay") || this.context.getValue("flagsmith").hasFeature(Z.FORCE_RELAY)) && m(this, Ns, "relay"), this.logger.info(`ICE Transport Policy set to ${a(this, Ns)}`);
25779
25779
  const n = yield lt().getICEServers().catch((_) => (this.logger.warn(`failed to get iceservers from server: ${_.message}`), []));
25780
25780
  if (e.send) {
25781
25781
  const _ = this.context.getValue("flagsmith").hasFeature(
@@ -25789,9 +25789,9 @@ Rn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25789
25789
  config: {
25790
25790
  enableHighBitrate: (u = (d = (c = this.context.getValue("defaults").mediaConfiguration) == null ? void 0 : c.audio) == null ? void 0 : d.enableHighBitrate) != null ? u : false,
25791
25791
  enableStereo: (S = (f = (p = this.context.getValue("defaults").mediaConfiguration) == null ? void 0 : p.audio) == null ? void 0 : f.enableStereo) != null ? S : false,
25792
- enableDtx: a(this, In) === Pe.HIVE ? true : !!_
25792
+ enableDtx: a(this, In) === we.HIVE ? true : !!_
25793
25793
  },
25794
- iceTransportPolicy: a(this, Vs)
25794
+ iceTransportPolicy: a(this, Ns)
25795
25795
  });
25796
25796
  }
25797
25797
  e.recv && L(this, dl, iS).call(this, {
@@ -25799,7 +25799,7 @@ Rn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25799
25799
  additionalSettings: {
25800
25800
  encodedInsertableStreams: (E = this.context.getValue("modules").e2ee) == null ? void 0 : E.enabled
25801
25801
  },
25802
- iceTransportPolicy: a(this, Vs)
25802
+ iceTransportPolicy: a(this, Ns)
25803
25803
  });
25804
25804
  });
25805
25805
  }, pc = /* @__PURE__ */ new WeakSet(), rh = function(e) {
@@ -25983,7 +25983,7 @@ Rn = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ct = /*
25983
25983
  return l(this, null, function* () {
25984
25984
  switch (this.logger.info("Called reconnect transport", { transport: { type: e } }), this.stopTransports({ [e]: true }), this.context.getValue("flagsmith").hasFeature(
25985
25985
  Z.HIVE_TRANSPORT_FORCE_RELAY_ON_ICE_FAILED
25986
- ) && a(this, Ki).isConnected && a(this, kn).transportFailureCount[e] > 2 && (this.logger.warn(`Multiple disconnections in ${e} transport, forcing relay`), m(this, Vs, "relay")), yield this.setupTransports({ [e]: true }), e) {
25986
+ ) && a(this, Ki).isConnected && a(this, kn).transportFailureCount[e] > 2 && (this.logger.warn(`Multiple disconnections in ${e} transport, forcing relay`), m(this, Ns, "relay")), yield this.setupTransports({ [e]: true }), e) {
25987
25987
  case "send": {
25988
25988
  this.logger.info("Transport reconnected", { transport: a(this, ot) }), this.context.getValue("peerSessionStore").emit(b.RESET_PRODUCER_STATE);
25989
25989
  break;
@@ -26328,7 +26328,7 @@ class uD extends cD {
26328
26328
  m(this, vc, new Gh(this.socketHandler));
26329
26329
  }), this.recvTransportConnectedCallback = (n) => l(this, null, function* () {
26330
26330
  switch (a(this, Mn).clear(), this.nodeType) {
26331
- case Pe.CF: {
26331
+ case we.CF: {
26332
26332
  m(this, ps, new lD(
26333
26333
  this.context,
26334
26334
  this.events,
@@ -26338,7 +26338,7 @@ class uD extends cD {
26338
26338
  ));
26339
26339
  break;
26340
26340
  }
26341
- case Pe.HIVE:
26341
+ case we.HIVE:
26342
26342
  default:
26343
26343
  m(this, ps, new dD(this.context, n));
26344
26344
  }
@@ -26667,7 +26667,7 @@ class hD {
26667
26667
  }
26668
26668
  }
26669
26669
  const pD = 60, gD = 400;
26670
- var ir, ar, fs, kc, Zi, xn, nr, Gr, Un, or, cr, Ls, Pl, fS, Ic, oh, Cl, SS, Rl, vS;
26670
+ var ir, ar, fs, kc, Zi, xn, nr, Gr, Un, or, cr, Vs, Pl, fS, Ic, oh, Cl, SS, Rl, vS;
26671
26671
  const Oo = class {
26672
26672
  constructor(t, e) {
26673
26673
  g(this, Pl);
@@ -26683,10 +26683,10 @@ const Oo = class {
26683
26683
  g(this, Un, void 0);
26684
26684
  g(this, or, void 0);
26685
26685
  g(this, cr, void 0);
26686
- g(this, Ls, void 0);
26686
+ g(this, Vs, void 0);
26687
26687
  this.reportRequest = e, m(this, or, t), m(this, xn, new _o());
26688
26688
  const { isReactNative: r } = navigator;
26689
- m(this, cr, r ? new vg(a(this, or)) : new yg(a(this, or))), m(this, Ls, r ? hD : ld);
26689
+ m(this, cr, r ? new vg(a(this, or)) : new yg(a(this, or))), m(this, Vs, r ? hD : ld);
26690
26690
  }
26691
26691
  get logger() {
26692
26692
  return a(this, or).getValue("logger");
@@ -26698,28 +26698,28 @@ const Oo = class {
26698
26698
  m(this, kc, t), a(this, cr) instanceof yg && (a(this, cr).audioTrack = t);
26699
26699
  }
26700
26700
  start() {
26701
- this.logger.debug(`AudioActivityReporter: Starting audio activity reporter: ${a(this, fs)}`), a(this, ir) && a(this, Ls).clearInterval(a(this, ir)), m(this, ir, a(this, Ls).setInterval(() => l(this, null, function* () {
26701
+ this.logger.debug(`AudioActivityReporter: Starting audio activity reporter: ${a(this, fs)}`), a(this, ir) && a(this, Vs).clearInterval(a(this, ir)), m(this, ir, a(this, Vs).setInterval(() => l(this, null, function* () {
26702
26702
  var i;
26703
26703
  if (!a(this, kc) || !a(this, fs))
26704
26704
  return;
26705
26705
  const { energy: t } = L(this, Pl, fS).call(this), e = L(i = Oo, Ic, oh).call(i, t);
26706
26706
  let r = 0.9;
26707
26707
  a(this, Un) !== e && a(this, Un) ? r = 0.9 : e ? r = 0.3 : r = 0.5, m(this, Zi, (a(this, Zi) || 0) * (1 - r) + t * r);
26708
- }), pD)), a(this, ar) && a(this, Ls).clearInterval(a(this, ar)), m(this, ar, a(this, Ls).setInterval(
26708
+ }), pD)), a(this, ar) && a(this, Vs).clearInterval(a(this, ar)), m(this, ar, a(this, Vs).setInterval(
26709
26709
  L(this, Cl, SS).bind(this),
26710
26710
  gD
26711
26711
  ));
26712
26712
  }
26713
26713
  stop() {
26714
26714
  try {
26715
- this.logger.debug(`AudioActivityReporter: Stopping audio activity reporter: ${a(this, fs)}`), a(this, ir) && (a(this, Ls).clearInterval(a(this, ir)), m(this, ir, void 0)), a(this, ar) && (a(this, Ls).clearInterval(a(this, ar)), m(this, ar, void 0));
26715
+ this.logger.debug(`AudioActivityReporter: Stopping audio activity reporter: ${a(this, fs)}`), a(this, ir) && (a(this, Vs).clearInterval(a(this, ir)), m(this, ir, void 0)), a(this, ar) && (a(this, Vs).clearInterval(a(this, ar)), m(this, ar, void 0));
26716
26716
  } catch (t) {
26717
26717
  }
26718
26718
  a(this, xn).reset(), a(this, cr) instanceof vg && a(this, cr).stop();
26719
26719
  }
26720
26720
  };
26721
26721
  let Po = Oo;
26722
- ir = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), kc = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap(), Pl = /* @__PURE__ */ new WeakSet(), fS = function() {
26722
+ ir = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), kc = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), Gr = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), Pl = /* @__PURE__ */ new WeakSet(), fS = function() {
26723
26723
  var o;
26724
26724
  const { samples: t } = a(this, cr), { energy: e, isVoice: r } = a(this, xn).processAudioChunk(t), i = L(o = Oo, Rl, vS).call(o, e);
26725
26725
  return a(this, or).getValue("flagsmith").hasFeature(Z.ENABLE_AUDIO_ACTIVITY_DEBUG_LOGS) && this.logger.debug(
@@ -26806,7 +26806,7 @@ var SD = Object.defineProperty, vD = Object.getOwnPropertyDescriptor, le = (s, t
26806
26806
  return r && i && SD(t, e, i), i;
26807
26807
  };
26808
26808
  const Nt = ["video/VP9", "video/VP8"];
26809
- var Ac, Mc, dt, G, $n, Ss, yt, ea, ta, sa, Dc, ss, dr, Oc, ra, ia, Tt, kt, Wr, ba, wl, TS, bl, ES, kl, _S, Nc, ch, Il, Tu, PS, Al, CS, Ml, RS, Dl, wS, tt, gt, aa, Co, Ol, bS, Nl, kS, Vl, IS;
26809
+ var Ac, Mc, dt, G, $n, Ls, yt, ea, ta, sa, Dc, ss, dr, Oc, ra, ia, Tt, kt, Wr, ba, wl, TS, bl, ES, kl, _S, Nc, ch, Il, Tu, PS, Al, CS, Ml, RS, Dl, wS, tt, gt, aa, Co, Ol, bS, Nl, kS, Vl, IS;
26810
26810
  const yS = (Tu = class {
26811
26811
  constructor(s, t, e) {
26812
26812
  g(this, Wr);
@@ -26830,7 +26830,7 @@ const yS = (Tu = class {
26830
26830
  g(this, dt, void 0);
26831
26831
  g(this, G, void 0);
26832
26832
  g(this, $n, void 0);
26833
- g(this, Ss, void 0);
26833
+ g(this, Ls, void 0);
26834
26834
  g(this, yt, void 0);
26835
26835
  g(this, ea, void 0);
26836
26836
  g(this, ta, void 0);
@@ -26854,7 +26854,7 @@ const yS = (Tu = class {
26854
26854
  ])), m(this, ia, /* @__PURE__ */ new Map([
26855
26855
  ["video/VP9", /* @__PURE__ */ new Set()],
26856
26856
  ["video/VP8", /* @__PURE__ */ new Set()]
26857
- ])), m(this, Ss, t), m(this, dt, r), m(this, ea, false), m(this, G, new uD(s, r, t)), m(this, yt, a(this, G).events), m(this, dr, /* @__PURE__ */ new Set()), m(this, Tt, /* @__PURE__ */ new Map()), m(this, ta, false), m(this, sa, new Zu(s.getValue("logger"))), t === Pe.CF && m(this, kt, new Po(
26857
+ ])), m(this, Ls, t), m(this, dt, r), m(this, ea, false), m(this, G, new uD(s, r, t)), m(this, yt, a(this, G).events), m(this, dr, /* @__PURE__ */ new Set()), m(this, Tt, /* @__PURE__ */ new Map()), m(this, ta, false), m(this, sa, new Zu(s.getValue("logger"))), t === we.CF && m(this, kt, new Po(
26858
26858
  this.context,
26859
26859
  a(this, G).socketHandler.audioActivity.bind(a(this, G).socketHandler)
26860
26860
  )), this.e2ee = (n = (i = s.getValue("modules").e2ee) == null ? void 0 : i.enabled) != null ? n : false, this.handleSocketEvents(), this.handleCallstatsEvents(), m(this, Dc, Ih(
@@ -26920,23 +26920,19 @@ const yS = (Tu = class {
26920
26920
  }
26921
26921
  leaveRoom() {
26922
26922
  return l(this, null, function* () {
26923
- var t;
26924
26923
  a(this, G).stopAllTransports(), m(this, ta, false), a(this, Wr, ba).mediaJoinAttempted = false;
26925
26924
  const s = {
26926
26925
  closeRoom: false
26927
26926
  };
26928
- if (a(this, Ss) !== Pe.CF) {
26929
- try {
26930
- const r = yield a(this, dt).sendMessagePromise(
26931
- a(this, yt).leaveRoom,
26932
- vR.toBinary(s)
26933
- );
26934
- ((t = nw.fromBinary(r.payload)) == null ? void 0 : t.closed) || this.logger.warn("weird state on peer closed and should not happen");
26935
- } catch (r) {
26936
- this.logger.error("error on sending leave room request", { error: r });
26937
- }
26938
- this.context.getValue("callstats").callEnded(), this.context.getValue("telemetry").destruct();
26939
- }
26927
+ a(this, dt).sendMessagePromise(
26928
+ a(this, yt).leaveRoom,
26929
+ vR.toBinary(s)
26930
+ ).then((e) => {
26931
+ var r;
26932
+ (r = nw.fromBinary(e.payload)) != null && r.closed && this.logger.warn("Weird state on peer closed and should not happen");
26933
+ }).catch((e) => {
26934
+ this.logger.error("error on sending leave room request", { error: e });
26935
+ }), this.context.getValue("callstats").callEnded(), this.context.getValue("telemetry").destruct();
26940
26936
  });
26941
26937
  }
26942
26938
  activatePeers(s) {
@@ -26977,8 +26973,8 @@ const yS = (Tu = class {
26977
26973
  }
26978
26974
  return this._shareWebcam(s, t);
26979
26975
  }
26980
- const i = [t].concat(Nt.filter((p) => p !== t)), n = L(this, Vl, IS).call(this, s, i), o = jn(this.context, "disableSimulcast"), c = a(this, Ss) === Pe.CF ? Z.ENABLE_CF_SIMULCAST : Z.ENABLE_HIVE_SIMULCAST;
26981
- !o && this.context.getValue("flagsmith").hasFeature(c) ? (this.logger.info(`Simulcast enabled for SFU: ${a(this, Ss)}`), n.encodings = r0(this.context, s)) : this.logger.info(`Simulcast disabled for webcam producer, SFU: ${a(this, Ss)}`), this.context.getValue("flagsmith").hasFeature(Z.TRACK_HINT) && (n.track.contentHint = this.context.getValue("flagsmith").getValue(
26976
+ const i = [t].concat(Nt.filter((p) => p !== t)), n = L(this, Vl, IS).call(this, s, i), o = jn(this.context, "disableSimulcast"), c = a(this, Ls) === we.CF ? Z.ENABLE_CF_SIMULCAST : Z.ENABLE_HIVE_SIMULCAST;
26977
+ !o && this.context.getValue("flagsmith").hasFeature(c) ? (this.logger.info(`Simulcast enabled for SFU: ${a(this, Ls)}`), n.encodings = r0(this.context, s)) : this.logger.info(`Simulcast disabled for webcam producer, SFU: ${a(this, Ls)}`), this.context.getValue("flagsmith").hasFeature(Z.TRACK_HINT) && (n.track.contentHint = this.context.getValue("flagsmith").getValue(
26982
26978
  Z.TRACK_HINT
26983
26979
  ));
26984
26980
  const d = () => {
@@ -27043,7 +27039,7 @@ const yS = (Tu = class {
27043
27039
  supportsRemoteControl: Te.isElectron()
27044
27040
  },
27045
27041
  stopTracks: false,
27046
- zeroRtpOnPause: a(this, Ss) !== Pe.CF
27042
+ zeroRtpOnPause: a(this, Ls) !== we.CF
27047
27043
  }, d = () => {
27048
27044
  };
27049
27045
  o = a(this, G).createProducer(
@@ -27471,7 +27467,7 @@ const yS = (Tu = class {
27471
27467
  t.delete(s), !(t.size !== 0 || e === Nt[0]) && this.disableWebcam(e);
27472
27468
  }));
27473
27469
  }
27474
- }, Ac = /* @__PURE__ */ new WeakMap(), Mc = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakMap(), ss = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), Oc = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakSet(), ba = function() {
27470
+ }, Ac = /* @__PURE__ */ new WeakMap(), Mc = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), Dc = /* @__PURE__ */ new WeakMap(), ss = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), Oc = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakSet(), ba = function() {
27475
27471
  return this.context.getValue("connectionHandler");
27476
27472
  }, wl = /* @__PURE__ */ new WeakSet(), TS = function(s, t, e, r) {
27477
27473
  return l(this, null, function* () {
@@ -27570,7 +27566,7 @@ const yS = (Tu = class {
27570
27566
  });
27571
27567
  }, Dl = /* @__PURE__ */ new WeakSet(), wS = function(s) {
27572
27568
  return l(this, null, function* () {
27573
- if (!(a(this, Ss) === Pe.HIVE || !this.context.getValue("flagsmith").hasFeature(
27569
+ if (!(a(this, Ls) === we.HIVE || !this.context.getValue("flagsmith").hasFeature(
27574
27570
  Z.PRECREATE_PRODUCERS
27575
27571
  ) || !s))
27576
27572
  try {
@@ -27607,7 +27603,7 @@ const yS = (Tu = class {
27607
27603
  e2ee: this.e2ee
27608
27604
  },
27609
27605
  stopTracks: false,
27610
- zeroRtpOnPause: a(this, Ss) !== Pe.CF
27606
+ zeroRtpOnPause: a(this, Ls) !== we.CF
27611
27607
  };
27612
27608
  }, Vl = /* @__PURE__ */ new WeakSet(), IS = function(s, t) {
27613
27609
  return {
@@ -27730,7 +27726,7 @@ var yD = Object.defineProperty, TD = Object.getOwnPropertyDescriptor, _a = (s, t
27730
27726
  for (var i = r > 1 ? void 0 : r ? TD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
27731
27727
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
27732
27728
  return r && i && yD(t, e, i), i;
27733
- }, Jr, vs, te, Et, Lt, qg;
27729
+ }, Jr, Ss, te, Et, Lt, qg;
27734
27730
  const DS = (qg = class {
27735
27731
  constructor(s, t, e, r) {
27736
27732
  g(this, Et);
@@ -27738,10 +27734,10 @@ const DS = (qg = class {
27738
27734
  h(this, "authToken");
27739
27735
  g(this, Jr, void 0);
27740
27736
  h(this, "viewType");
27741
- g(this, vs, void 0);
27737
+ g(this, Ss, void 0);
27742
27738
  g(this, te, void 0);
27743
27739
  const { socket: i } = e, n = s.getValue("authToken");
27744
- this.self = t, m(this, te, s), this.viewType = r, this.authToken = n, m(this, Jr, i), m(this, vs, e), t.config.viewType !== Mt.Chat && this.setupEvents();
27740
+ this.self = t, m(this, te, s), this.viewType = r, this.authToken = n, m(this, Jr, i), m(this, Ss, e), t.config.viewType !== Mt.Chat && this.setupEvents();
27745
27741
  }
27746
27742
  get peerId() {
27747
27743
  return a(this, te).getValue("peerId");
@@ -27877,17 +27873,17 @@ const DS = (qg = class {
27877
27873
  s && a(this, te).getValue("flagsmith").hasFeature(Z.REFRESH_ID_ON_DISCONNECTION) && (t = v4()), a(this, Jr).updateURL(t), a(this, te).getValue("telemetry").resetPeerId(t), lt().setHeader("dyte-tracing-id", t), pr.remapContext(t, a(this, te)), this.self.roomState = "disconnected", this.self.emit("roomLeft", { state: "disconnected" });
27878
27874
  }), a(this, te).getValue("peerSessionStore").on(b.SOCKET_SERVICE_FAILED, () => {
27879
27875
  this.self.roomState = "failed", this.self.emit("roomLeft", { state: "failed" });
27880
- }), a(this, vs).on(x.waitingRoomRequestAccepted, () => {
27876
+ }), a(this, Ss).on(x.waitingRoomRequestAccepted, () => {
27881
27877
  this.waitlistAcceptHandler();
27882
- }), a(this, vs).on(md.updateUserPreset, (s) => {
27878
+ }), a(this, Ss).on(md.updateUserPreset, (s) => {
27883
27879
  s.updatePeersPresets.forEach((t) => {
27884
27880
  t.userIds === this.self.userId && a(this, te).getValue("peerSessionStore").emit(b.UPDATE_PERMISSIONS, t.patch);
27885
27881
  });
27886
- }), a(this, vs).on(x.waitingRoomRequestDenied, () => {
27882
+ }), a(this, Ss).on(x.waitingRoomRequestDenied, () => {
27887
27883
  this.waitlistRejectedHandler();
27888
- }), a(this, vs).on(x.kick, () => {
27884
+ }), a(this, Ss).on(x.kick, () => {
27889
27885
  this.kickHandler({ kickType: "kick" });
27890
- }), a(this, vs).on(x.kickAll, () => {
27886
+ }), a(this, Ss).on(x.kickAll, () => {
27891
27887
  this.kickHandler({ kickType: "kickAll" });
27892
27888
  }), a(this, te).getValue("peerSessionStore").onAsync(b.JOIN_MEDIA_ROOM, this.joinMediaRoom.bind(this)), a(this, te).getValue("peerSessionStore").on(
27893
27889
  b.PRODUCER_SCORE_UPDATE,
@@ -27922,10 +27918,10 @@ const DS = (qg = class {
27922
27918
  joinRoom(s = false) {
27923
27919
  return l(this, null, function* () {
27924
27920
  try {
27925
- const { peer: t } = yield a(this, vs).joinRoom(
27921
+ const { peer: t } = yield a(this, Ss).joinRoom(
27926
27922
  this.self
27927
27923
  );
27928
- a(this, vs).socket.flush();
27924
+ a(this, Ss).socket.flush();
27929
27925
  const e = Nh(t.stageType);
27930
27926
  if (a(this, te).setValue("stageStatus", e, false), t.waitlisted) {
27931
27927
  this.waitlistedHandler();
@@ -28009,7 +28005,7 @@ const DS = (qg = class {
28009
28005
  yield this.self.disableAudio(), yield this.self.disableVideo(), yield this.self.disableScreenShare(), this.self.cleanUpTracks(), this.self.destructMediaHandler(), navigator.isReactNative || this.self.removeDocumentEventListeners();
28010
28006
  });
28011
28007
  }
28012
- }, Jr = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakSet(), Lt = function() {
28008
+ }, Jr = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakSet(), Lt = function() {
28013
28009
  return a(this, te).getValue("roomNodeClient");
28014
28010
  }, qg);
28015
28011
  let ai = DS;
@@ -28492,32 +28488,32 @@ class OS {
28492
28488
  r = tg.fromBinary.bind(tg);
28493
28489
  break;
28494
28490
  }
28495
- case Es.peerJoinedBroadcast:
28491
+ case Ts.peerJoinedBroadcast:
28496
28492
  case is.peerJoinedBroadcast: {
28497
28493
  r = jp.fromBinary.bind(jp);
28498
28494
  break;
28499
28495
  }
28500
- case Es.selfJoinComplete:
28496
+ case Ts.selfJoinComplete:
28501
28497
  case is.selfJoinComplete: {
28502
28498
  r = Du.fromBinary.bind(Du);
28503
28499
  break;
28504
28500
  }
28505
- case Es.globalPeerPinBroadcast:
28501
+ case Ts.globalPeerPinBroadcast:
28506
28502
  case is.globalPeerPinBroadcast: {
28507
28503
  r = Jp.fromBinary.bind(Jp);
28508
28504
  break;
28509
28505
  }
28510
- case Es.selectedPeer:
28506
+ case Ts.selectedPeer:
28511
28507
  case is.selectedPeer: {
28512
28508
  r = Mu.fromBinary.bind(Mu);
28513
28509
  break;
28514
28510
  }
28515
- case Es.selectedPeerDiff:
28511
+ case Ts.selectedPeerDiff:
28516
28512
  case is.selectedPeerDiff: {
28517
28513
  r = qp.fromBinary.bind(qp);
28518
28514
  break;
28519
28515
  }
28520
- case Es.leaveRoom:
28516
+ case Ts.leaveRoom:
28521
28517
  case is.leaveRoom: {
28522
28518
  r = Ou.fromBinary.bind(Ou);
28523
28519
  break;
@@ -29194,13 +29190,13 @@ class qD {
29194
29190
  ui = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakMap();
29195
29191
  var qS = /* @__PURE__ */ ((s) => (s[s.CONNECTING = 0] = "CONNECTING", s[s.OPEN = 1] = "OPEN", s[s.CLOSING = 2] = "CLOSING", s[s.CLOSED = 3] = "CLOSED", s))(qS || {});
29196
29192
  const jD = "2", GD = "3";
29197
- var Ae, ka, Ee, Ue, kr, Ye, hr, Xr, Ts, Ia, Bs, dh, jS, Ro, Cd, lh, GS, uh, Pg, Fd, hh, ph, WS, Io, Rd, Ao, Hd, Bd, gh, Ua, Mo, Do, qd;
29193
+ var Ae, ka, Ee, Ue, kr, Ye, hr, Xr, ys, Ia, Bs, dh, jS, Ro, Cd, lh, GS, uh, Pg, Fd, hh, ph, WS, Io, Rd, Ao, Hd, Bd, gh, Ua, Mo, Do, qd;
29198
29194
  class WD {
29199
29195
  constructor(t, e) {
29200
29196
  var F;
29201
- Se(this, dh), Se(this, Ro), Se(this, lh), Se(this, uh), Se(this, Fd), Se(this, ph), Se(this, Io), Se(this, Ao), Se(this, Bd), Se(this, Ua), Se(this, Do), Se(this, Ae, void 0), Se(this, ka, void 0), Se(this, Ee, void 0), Se(this, Ue, void 0), Se(this, kr, void 0), Se(this, Ye, void 0), Se(this, hr, void 0), Se(this, Xr, void 0), Se(this, Ts, void 0), Se(this, Ia, void 0), Se(this, Bs, void 0);
29197
+ Se(this, dh), Se(this, Ro), Se(this, lh), Se(this, uh), Se(this, Fd), Se(this, ph), Se(this, Io), Se(this, Ao), Se(this, Bd), Se(this, Ua), Se(this, Do), Se(this, Ae, void 0), Se(this, ka, void 0), Se(this, Ee, void 0), Se(this, Ue, void 0), Se(this, kr, void 0), Se(this, Ye, void 0), Se(this, hr, void 0), Se(this, Xr, void 0), Se(this, ys, void 0), Se(this, Ia, void 0), Se(this, Bs, void 0);
29202
29198
  var r, i, n, o, c, d, u, p, f;
29203
- ne(this, ka, t), ne(this, kr, []), ne(this, Ye, new $d()), ne(this, hr, true), ne(this, Ts, false), ne(this, Ee, e != null ? e : {}), (r = M(this, Ee)).autoReconnect != null || (r.autoReconnect = true), (i = M(this, Ee)).retryConnectionInterval != null || (i.retryConnectionInterval = 1e3), (n = M(this, Ee)).pingTimeout != null || (n.pingTimeout = 3e4), (o = M(this, Ee)).connectionTimeout != null || (o.connectionTimeout = 5e3), (c = M(this, Ee)).debug != null || (c.debug = true), (d = M(this, Ee)).maxReconnectionAttempts != null || (d.maxReconnectionAttempts = 10), (u = M(this, Ee)).disconnectOnPingTimeout != null || (u.disconnectOnPingTimeout = true), (p = M(this, Ee)).queueOnDisconnect != null || (p.queueOnDisconnect = false), (f = M(this, Ee)).flushOnReconnect != null || (f.flushOnReconnect = false), ne(this, Xr, {
29199
+ ne(this, ka, t), ne(this, kr, []), ne(this, Ye, new $d()), ne(this, hr, true), ne(this, ys, false), ne(this, Ee, e != null ? e : {}), (r = M(this, Ee)).autoReconnect != null || (r.autoReconnect = true), (i = M(this, Ee)).retryConnectionInterval != null || (i.retryConnectionInterval = 1e3), (n = M(this, Ee)).pingTimeout != null || (n.pingTimeout = 3e4), (o = M(this, Ee)).connectionTimeout != null || (o.connectionTimeout = 5e3), (c = M(this, Ee)).debug != null || (c.debug = true), (d = M(this, Ee)).maxReconnectionAttempts != null || (d.maxReconnectionAttempts = 10), (u = M(this, Ee)).disconnectOnPingTimeout != null || (u.disconnectOnPingTimeout = true), (p = M(this, Ee)).queueOnDisconnect != null || (p.queueOnDisconnect = false), (f = M(this, Ee)).flushOnReconnect != null || (f.flushOnReconnect = false), ne(this, Xr, {
29204
29200
  code: void 0,
29205
29201
  reason: void 0
29206
29202
  }), ne(this, Ue, (F = M(this, Ee).logger) != null ? F : new qD(M(this, Ee).debug ? "debug" : "info")), ne(this, Bs, new BD());
@@ -29244,7 +29240,7 @@ class WD {
29244
29240
  try {
29245
29241
  ne(this, Ae, new WebSocket(_e(this, dh, jS).call(this, M(this, ka)))), M(this, Ae).binaryType = "arraybuffer", M(this, Ue).debug("Connecting");
29246
29242
  const i = setTimeout(() => {
29247
- M(this, Ue).debug("Connection timeout. Closing socket"), ne(this, hr, true), _e(this, Do, qd).call(this), M(this, Ae).close(3001, "Connection Timeout"), M(this, Ee).autoReconnect && !M(this, Ts) && (M(this, Ye).emit(
29243
+ M(this, Ue).debug("Connection timeout. Closing socket"), ne(this, hr, true), _e(this, Do, qd).call(this), M(this, Ae).close(3001, "Connection Timeout"), M(this, Ee).autoReconnect && !M(this, ys) && (M(this, Ye).emit(
29248
29244
  "reconnecting"
29249
29245
  ), _e(this, Io, Rd).call(this)), r(new Error("Connection timed out!"));
29250
29246
  }, M(this, Ee).connectionTimeout);
@@ -29259,7 +29255,7 @@ class WD {
29259
29255
  try {
29260
29256
  i && clearTimeout(i);
29261
29257
  const { code: o, reason: c } = n;
29262
- r(c), M(this, Ue).debug("Socket closed. Close event:", { event: n }), M(this, Ue).debug(`Connection closed code: ${o}`), M(this, Ue).debug(`Connection closed reason: ${c}`), M(this, Ts) || _e(this, Fd, hh).call(this, o, c);
29258
+ r(c), M(this, Ue).debug("Socket closed. Close event:", { event: n }), M(this, Ue).debug(`Connection closed code: ${o}`), M(this, Ue).debug(`Connection closed reason: ${c}`), M(this, ys) || _e(this, Fd, hh).call(this, o, c);
29263
29259
  } catch (o) {
29264
29260
  _e(this, Ro, Cd).call(this, o);
29265
29261
  }
@@ -29319,7 +29315,7 @@ class WD {
29319
29315
  }), M(this, Ae).close(1e3, "Sockrates disconnect method called.");
29320
29316
  }
29321
29317
  }
29322
- Ae = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Ts = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), dh = /* @__PURE__ */ new WeakSet(), jS = function(s) {
29318
+ Ae = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), ys = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), dh = /* @__PURE__ */ new WeakSet(), jS = function(s) {
29323
29319
  if (s.startsWith("ws://") || s.startsWith("wss://"))
29324
29320
  return s;
29325
29321
  if (s.startsWith("https://"))
@@ -29342,28 +29338,28 @@ Ae = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), Ee = /*
29342
29338
  ne(this, Xr, { reason: t, code: s }), M(this, Ye).emit("disconnected", { code: s, reason: t });
29343
29339
  }, ph = /* @__PURE__ */ new WeakSet(), WS = function() {
29344
29340
  const { reason: s, code: t } = M(this, Xr);
29345
- t && t !== 1e3 && M(this, hr) && M(this, Ee).autoReconnect && !M(this, Ts) && (M(this, Ue).debug(`Triggering reconnection due to ${s}.`), M(this, Ye).emit(
29341
+ t && t !== 1e3 && M(this, hr) && M(this, Ee).autoReconnect && !M(this, ys) && (M(this, Ue).debug(`Triggering reconnection due to ${s}.`), M(this, Ye).emit(
29346
29342
  "reconnecting"
29347
29343
  ), _e(this, Io, Rd).call(this));
29348
29344
  }, Io = /* @__PURE__ */ new WeakSet(), Rd = function(s = true) {
29349
29345
  return l(this, null, function* () {
29350
- if (s && M(this, Ts)) {
29346
+ if (s && M(this, ys)) {
29351
29347
  M(this, Ue).debug("Reconnect called when already in a reconnect loop. Ignoring.");
29352
29348
  return;
29353
29349
  }
29354
- if (M(this, Ts) || M(this, Bs).reset(), M(this, Ee).maxReconnectionAttempts !== null && M(this, Bs).getAttempts() >= M(this, Ee).maxReconnectionAttempts) {
29350
+ if (M(this, ys) || M(this, Bs).reset(), M(this, Ee).maxReconnectionAttempts !== null && M(this, Bs).getAttempts() >= M(this, Ee).maxReconnectionAttempts) {
29355
29351
  M(this, Ye).emit(
29356
29352
  "failed"
29357
- ), ne(this, Ts, false);
29353
+ ), ne(this, ys, false);
29358
29354
  return;
29359
29355
  }
29360
- ne(this, Ts, true), _e(this, Do, qd).call(this), _e(this, Ua, Mo).call(this);
29356
+ ne(this, ys, true), _e(this, Do, qd).call(this), _e(this, Ua, Mo).call(this);
29361
29357
  try {
29362
29358
  if (yield M(this, Bs).wait(), M(this, hr) === false)
29363
29359
  return;
29364
29360
  if (M(this, Ue).debug(`Reconnection attempt ${M(this, Bs).getAttempts()}`), M(this, Ye).emit("reconnectAttempt", { attempt: M(this, Bs).getAttempts() }), yield this.connect(), !_e(this, uh, Pg).call(this))
29365
29361
  throw Error("Reconnect Failed");
29366
- ne(this, Ts, false), ne(this, Xr, {
29362
+ ne(this, ys, false), ne(this, Xr, {
29367
29363
  code: void 0,
29368
29364
  reason: void 0
29369
29365
  }), M(this, Ye).emit(
@@ -29397,7 +29393,7 @@ var JD = Object.defineProperty, KD = Object.getOwnPropertyDescriptor, Zl = (s, t
29397
29393
  return r && i && JD(t, e, i), i;
29398
29394
  };
29399
29395
  const Cg = 65535, zD = 3e3;
29400
- var Kr, Ce, Re, De, rs, st, $c, mh, Fc, fh, jg;
29396
+ var Kr, Pe, Ce, De, rs, st, $c, mh, Fc, fh, jg;
29401
29397
  const JS = (jg = class {
29402
29398
  constructor(s, {
29403
29399
  peerId: t,
@@ -29405,11 +29401,11 @@ const JS = (jg = class {
29405
29401
  authToken: r,
29406
29402
  capabilities: i
29407
29403
  }) {
29408
- g(this, Re);
29404
+ g(this, Ce);
29409
29405
  g(this, $c);
29410
29406
  g(this, Fc);
29411
29407
  g(this, Kr, void 0);
29412
- g(this, Ce, void 0);
29408
+ g(this, Pe, void 0);
29413
29409
  h(this, "roomName");
29414
29410
  h(this, "authToken");
29415
29411
  h(this, "capabilities");
@@ -29418,7 +29414,7 @@ const JS = (jg = class {
29418
29414
  var n;
29419
29415
  if (!t || !e || !r)
29420
29416
  throw new R("peerId, meetingId, or authToken can not be empty", "0404");
29421
- m(this, rs, void 0), m(this, st, s), this.capabilities = i, this.roomName = e, this.authToken = r, m(this, Kr, L(this, $c, mh).call(this, t)), m(this, Ce, new WD(a(this, Kr), {
29417
+ m(this, rs, void 0), m(this, st, s), this.capabilities = i, this.roomName = e, this.authToken = r, m(this, Kr, L(this, $c, mh).call(this, t)), m(this, Pe, new WD(a(this, Kr), {
29422
29418
  autoReconnect: true,
29423
29419
  disconnectOnPingTimeout: (n = i.includes("PING")) != null ? n : false,
29424
29420
  queueOnDisconnect: true,
@@ -29427,10 +29423,10 @@ const JS = (jg = class {
29427
29423
  })), this.handleSocketConnectionEvents();
29428
29424
  }
29429
29425
  get joinAttempted() {
29430
- return a(this, Re, De).socketJoinAttempted;
29426
+ return a(this, Ce, De).socketJoinAttempted;
29431
29427
  }
29432
29428
  set joinAttempted(s) {
29433
- a(this, Re, De).socketJoinAttempted = s;
29429
+ a(this, Ce, De).socketJoinAttempted = s;
29434
29430
  }
29435
29431
  get telemetry() {
29436
29432
  return a(this, st).getValue("telemetry");
@@ -29442,7 +29438,7 @@ const JS = (jg = class {
29442
29438
  return a(this, st).getValue("peerId");
29443
29439
  }
29444
29440
  updateURL(s) {
29445
- s !== this.peerId && (m(this, Kr, L(this, $c, mh).call(this, s)), this.logger.debug("SocketService:: Connection URL updated.")), a(this, Ce).updateURL(a(this, Kr));
29441
+ s !== this.peerId && (m(this, Kr, L(this, $c, mh).call(this, s)), this.logger.debug("SocketService:: Connection URL updated.")), a(this, Pe).updateURL(a(this, Kr));
29446
29442
  }
29447
29443
  static getSocketEdgeDomain(s) {
29448
29444
  return da({ servicePrefix: "socket-edge", baseURI: s });
@@ -29452,7 +29448,7 @@ const JS = (jg = class {
29452
29448
  }
29453
29449
  connect() {
29454
29450
  return l(this, null, function* () {
29455
- a(this, Re, De).socketJoinAttempted = true, yield a(this, Ce).connect(), a(this, Re, De).socketJoinAttempted = true, a(this, Re, De).socketState = {
29451
+ a(this, Ce, De).socketJoinAttempted = true, yield a(this, Pe).connect(), a(this, Ce, De).socketJoinAttempted = true, a(this, Ce, De).socketState = {
29456
29452
  state: "connected",
29457
29453
  reconnected: false,
29458
29454
  reconnectionAttempt: void 0
@@ -29461,7 +29457,7 @@ const JS = (jg = class {
29461
29457
  }
29462
29458
  disconnect() {
29463
29459
  return l(this, null, function* () {
29464
- a(this, Re, De).socketJoinAttempted = false, a(this, Ce).disconnect(), a(this, Re, De).socketJoinAttempted = true, a(this, Re, De).socketState = {
29460
+ a(this, Ce, De).socketJoinAttempted = false, a(this, Pe).disconnect(), a(this, Ce, De).socketJoinAttempted = true, a(this, Ce, De).socketState = {
29465
29461
  state: "disconnected",
29466
29462
  reconnected: false,
29467
29463
  reconnectionAttempt: void 0
@@ -29470,14 +29466,14 @@ const JS = (jg = class {
29470
29466
  }
29471
29467
  get isConnected() {
29472
29468
  try {
29473
- return a(this, Ce).readyState === 1;
29469
+ return a(this, Pe).readyState === 1;
29474
29470
  } catch (s) {
29475
29471
  return false;
29476
29472
  }
29477
29473
  }
29478
29474
  sendMessage(s, t, e) {
29479
29475
  const r = {};
29480
- return a(this, st).getValue("telemetry").injectContext(r), a(this, Ce).send(
29476
+ return a(this, st).getValue("telemetry").injectContext(r), a(this, Pe).send(
29481
29477
  s,
29482
29478
  e != null ? e : L(this, Fc, fh).call(this),
29483
29479
  t,
@@ -29505,11 +29501,11 @@ const JS = (jg = class {
29505
29501
  return new Promise(
29506
29502
  (o, c) => {
29507
29503
  const d = (_, P) => {
29508
- a(this, Ce).removeListener(n, _), a(this, Ce).removeListener(Cg, P), a(this, Ce).removeListener(
29504
+ a(this, Pe).removeListener(n, _), a(this, Pe).removeListener(Cg, P), a(this, Pe).removeListener(
29509
29505
  is.errorResponse,
29510
29506
  P
29511
- ), a(this, Ce).removeListener(
29512
- Es.errorResponse,
29507
+ ), a(this, Pe).removeListener(
29508
+ Ts.errorResponse,
29513
29509
  P
29514
29510
  );
29515
29511
  }, u = r != null ? r : L(this, Fc, fh).call(this), p = {};
@@ -29540,9 +29536,9 @@ const JS = (jg = class {
29540
29536
  }) => {
29541
29537
  u === _ && (o({ id: _, payload: P }), d(E, S));
29542
29538
  };
29543
- a(this, Ce).on(n, E), a(this, Ce).on(Cg, S), a(this, Ce).on(is.errorResponse, S), a(this, Ce).on(Es.errorResponse, S), setTimeout(() => {
29539
+ a(this, Pe).on(n, E), a(this, Pe).on(Cg, S), a(this, Pe).on(is.errorResponse, S), a(this, Pe).on(Ts.errorResponse, S), setTimeout(() => {
29544
29540
  d(E, S), c(new Error(`request timeout for callback eventId:${s}`));
29545
- }, t), a(this, Ce).send(
29541
+ }, t), a(this, Pe).send(
29546
29542
  s,
29547
29543
  u,
29548
29544
  e,
@@ -29552,61 +29548,61 @@ const JS = (jg = class {
29552
29548
  );
29553
29549
  }
29554
29550
  on(s, t) {
29555
- a(this, Ce).on(s, t);
29551
+ a(this, Pe).on(s, t);
29556
29552
  }
29557
29553
  onStateEvent(s, t) {
29558
- a(this, Ce).on(s, t);
29554
+ a(this, Pe).on(s, t);
29559
29555
  }
29560
29556
  removeListener(s, t) {
29561
- a(this, Ce).removeListener(s, t);
29557
+ a(this, Pe).removeListener(s, t);
29562
29558
  }
29563
29559
  removeListeners(s) {
29564
- a(this, Ce).removeListeners(s);
29560
+ a(this, Pe).removeListeners(s);
29565
29561
  }
29566
29562
  flush() {
29567
- return a(this, Ce).flush();
29563
+ return a(this, Pe).flush();
29568
29564
  }
29569
29565
  handleSocketConnectionEvents() {
29570
29566
  this.onStateEvent("connected", () => l(this, null, function* () {
29571
- this.logger.info("SocketService::Connected to socket-edge"), a(this, rs) && (clearTimeout(a(this, rs)), m(this, rs, void 0)), a(this, Re, De).updateSocketConnectionState("connected");
29567
+ this.logger.info("SocketService::Connected to socket-edge"), a(this, rs) && (clearTimeout(a(this, rs)), m(this, rs, void 0)), a(this, Ce, De).updateSocketConnectionState("connected");
29572
29568
  })), this.onStateEvent("disconnected", ({ code: s, reason: t }) => {
29573
29569
  var i;
29574
29570
  this.logger.info("SocketService::Disconnected from socket-edge", { error: { code: s, reason: t }, country: T.location.country });
29575
- const { recv: e, send: r } = (i = a(this, Re, De).mediaState) != null ? i : {};
29571
+ const { recv: e, send: r } = (i = a(this, Ce, De).mediaState) != null ? i : {};
29576
29572
  e != null && e.state && (e == null ? void 0 : e.state) !== La.CONNECTED || r != null && r.state && (r == null ? void 0 : r.state) !== La.CONNECTED ? a(this, st).getValue("peerSessionStore").emit(
29577
29573
  b.SOCKET_SERVICE_DISCONNECTED,
29578
29574
  {
29579
- joinAttempted: a(this, Re, De).joinAttempted
29575
+ joinAttempted: a(this, Ce, De).joinAttempted
29580
29576
  }
29581
29577
  ) : m(this, rs, setTimeout(() => {
29582
29578
  a(this, st).getValue("peerSessionStore").emit(
29583
29579
  b.SOCKET_SERVICE_DISCONNECTED,
29584
- { joinAttempted: a(this, Re, De).joinAttempted }
29580
+ { joinAttempted: a(this, Ce, De).joinAttempted }
29585
29581
  ), m(this, rs, void 0);
29586
- }, zD)), a(this, Re, De).updateSocketConnectionState("disconnected");
29582
+ }, zD)), a(this, Ce, De).updateSocketConnectionState("disconnected");
29587
29583
  }), this.onStateEvent("reconnecting", () => l(this, null, function* () {
29588
- this.logger.info("SocketService::Reconnecting to socket-edge", { country: T.location.country }), a(this, Re, De).updateSocketConnectionState("reconnecting");
29584
+ this.logger.info("SocketService::Reconnecting to socket-edge", { country: T.location.country }), a(this, Ce, De).updateSocketConnectionState("reconnecting");
29589
29585
  })), this.onStateEvent("reconnectAttempt", (t) => l(this, [t], function* ({ attempt: s }) {
29590
29586
  this.logger.info("SocketService::Attempting to reconnect to socket-edge", {
29591
29587
  socket: {
29592
29588
  retryAttempt: s
29593
29589
  }
29594
- }), a(this, Re, De).updateSocketConnectionState("reconnectAttempt", s);
29590
+ }), a(this, Ce, De).updateSocketConnectionState("reconnectAttempt", s);
29595
29591
  })), this.onStateEvent("reconnectFailure", ({ attempt: s }) => {
29596
29592
  this.logger.info("SocketService::Reconnect attempt to socket-edge failed", {
29597
29593
  socket: {
29598
29594
  retryAttempt: s
29599
29595
  }
29600
- }), a(this, Re, De).updateSocketConnectionState("reconnectFailure", s);
29596
+ }), a(this, Ce, De).updateSocketConnectionState("reconnectFailure", s);
29601
29597
  }), this.onStateEvent("reconnected", () => l(this, null, function* () {
29602
- this.logger.info("SocketService::Reconnected to socket-edge", { connectionState: { joinAttempted: a(this, Re, De).mediaJoinAttempted } }), a(this, rs) && (clearTimeout(a(this, rs)), m(this, rs, void 0)), a(this, st).getValue("peerSessionStore").emit(b.SOCKET_SERVICE_RECONNECTED, {
29603
- wasJoinAttempted: a(this, Re, De).mediaJoinAttempted
29604
- }), a(this, Re, De).updateSocketConnectionState("reconnected");
29598
+ this.logger.info("SocketService::Reconnected to socket-edge", { connectionState: { joinAttempted: a(this, Ce, De).mediaJoinAttempted } }), a(this, rs) && (clearTimeout(a(this, rs)), m(this, rs, void 0)), a(this, st).getValue("peerSessionStore").emit(b.SOCKET_SERVICE_RECONNECTED, {
29599
+ wasJoinAttempted: a(this, Ce, De).mediaJoinAttempted
29600
+ }), a(this, Ce, De).updateSocketConnectionState("reconnected");
29605
29601
  })), this.onStateEvent("failed", () => l(this, null, function* () {
29606
- this.logger.info("SocketService::Failed to connect to socket-edge", { country: T.location.country }), a(this, st).getValue("peerSessionStore").emit(b.SOCKET_SERVICE_FAILED), a(this, Re, De).updateSocketConnectionState("failed");
29602
+ this.logger.info("SocketService::Failed to connect to socket-edge", { country: T.location.country }), a(this, st).getValue("peerSessionStore").emit(b.SOCKET_SERVICE_FAILED), a(this, Ce, De).updateSocketConnectionState("failed");
29607
29603
  }));
29608
29604
  }
29609
- }, Kr = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakSet(), De = function() {
29605
+ }, Kr = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakSet(), De = function() {
29610
29606
  return a(this, st).getValue("connectionHandler");
29611
29607
  }, rs = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), $c = /* @__PURE__ */ new WeakSet(), mh = function(s) {
29612
29608
  let t = JS.getSocketEdgeDomain(a(this, st).getValue("baseURI"));
@@ -29743,18 +29739,18 @@ var QD = Object.defineProperty, XD = Object.getOwnPropertyDescriptor, ZD = (s, t
29743
29739
  for (var i = r > 1 ? void 0 : r ? XD(t, e) : t, n = s.length - 1, o; n >= 0; n--)
29744
29740
  (o = s[n]) && (i = (r ? o(t, e, i) : o(i)) || i);
29745
29741
  return r && i && QD(t, e, i), i;
29746
- }, ys;
29742
+ }, vs;
29747
29743
  class KS extends qt {
29748
29744
  constructor(e) {
29749
29745
  const r = e.getValue("logger");
29750
29746
  super(r);
29751
29747
  h(this, "meetings", []);
29752
29748
  h(this, "parentMeeting", null);
29753
- g(this, ys, void 0);
29754
- m(this, ys, e);
29749
+ g(this, vs, void 0);
29750
+ m(this, vs, e);
29755
29751
  }
29756
29752
  get supportsConnectedMeetings() {
29757
- return a(this, ys).getValue("self").id !== "";
29753
+ return a(this, vs).getValue("self").id !== "";
29758
29754
  }
29759
29755
  get isActive() {
29760
29756
  return this.meetings.length !== 0;
@@ -29766,12 +29762,12 @@ class KS extends qt {
29766
29762
  }
29767
29763
  getConnectedMeetings() {
29768
29764
  return l(this, null, function* () {
29769
- return this.validateConnectedMeetingsAction(), yield a(this, ys).getValue("connectedMeetingsSocketHandler").getConnectedRoomsDump();
29765
+ return this.validateConnectedMeetingsAction(), yield a(this, vs).getValue("connectedMeetingsSocketHandler").getConnectedRoomsDump();
29770
29766
  });
29771
29767
  }
29772
29768
  createMeetings(e) {
29773
29769
  return l(this, null, function* () {
29774
- return this.validateConnectedMeetingsAction(), (yield a(this, ys).getValue("connectedMeetingsSocketHandler").createConnectedRooms(
29770
+ return this.validateConnectedMeetingsAction(), (yield a(this, vs).getValue("connectedMeetingsSocketHandler").createConnectedRooms(
29775
29771
  e
29776
29772
  )).map((i) => ({
29777
29773
  id: i.id,
@@ -29781,7 +29777,7 @@ class KS extends qt {
29781
29777
  }
29782
29778
  updateMeetings(e) {
29783
29779
  return l(this, null, function* () {
29784
- this.validateConnectedMeetingsAction(), yield a(this, ys).getValue("connectedMeetingsSocketHandler").updateConnectedRooms(
29780
+ this.validateConnectedMeetingsAction(), yield a(this, vs).getValue("connectedMeetingsSocketHandler").updateConnectedRooms(
29785
29781
  e.map((r) => ({ meetingId: r.id, title: r.title }))
29786
29782
  );
29787
29783
  });
@@ -29794,7 +29790,7 @@ class KS extends qt {
29794
29790
  this.parentMeeting.id,
29795
29791
  n.participants.map((o) => o.id)
29796
29792
  ) : Promise.resolve());
29797
- return yield Promise.all(r), yield a(this, ys).getValue("connectedMeetingsSocketHandler").disableConnectedRooms(
29793
+ return yield Promise.all(r), yield a(this, vs).getValue("connectedMeetingsSocketHandler").disableConnectedRooms(
29798
29794
  e
29799
29795
  );
29800
29796
  });
@@ -29802,7 +29798,7 @@ class KS extends qt {
29802
29798
  moveParticipants(e, r, i) {
29803
29799
  return l(this, null, function* () {
29804
29800
  this.validateConnectedMeetingsAction();
29805
- const n = yield a(this, ys).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29801
+ const n = yield a(this, vs).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29806
29802
  {
29807
29803
  sourceMeetingId: e,
29808
29804
  destinationMeetingId: r,
@@ -29817,7 +29813,7 @@ class KS extends qt {
29817
29813
  moveParticipantsWithCustomPreset(e, r, i) {
29818
29814
  return l(this, null, function* () {
29819
29815
  this.validateConnectedMeetingsAction();
29820
- const n = yield a(this, ys).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29816
+ const n = yield a(this, vs).getValue("connectedMeetingsSocketHandler").movePeersBetweenRooms(
29821
29817
  {
29822
29818
  sourceMeetingId: e,
29823
29819
  destinationMeetingId: r,
@@ -29857,7 +29853,7 @@ class KS extends qt {
29857
29853
  });
29858
29854
  }
29859
29855
  }
29860
- ys = /* @__PURE__ */ new WeakMap();
29856
+ vs = /* @__PURE__ */ new WeakMap();
29861
29857
  ZD([
29862
29858
  Dt({ maxInvocations: 60, period: 60 })
29863
29859
  ], KS.prototype, "getConnectedMeetings", 1);
@@ -30045,7 +30041,7 @@ const Aa = class {
30045
30041
  const u = new jM(s);
30046
30042
  s.setValue("connectionHandler", u);
30047
30043
  const p = Aa.createSocketService(s), f = p.connect(), S = d.getUserDetails(), E = d.getPlugins();
30048
- let _ = Pe.HIVE, P, k = "";
30044
+ let _ = we.HIVE, P, k = "";
30049
30045
  try {
30050
30046
  yield Aa.setupFlagsmith(s);
30051
30047
  } catch (re) {
@@ -30149,7 +30145,7 @@ const Aa = class {
30149
30145
  s
30150
30146
  );
30151
30147
  t.setValue("connectedMeetingsSocketHandler", Je);
30152
- const Is = new Ql(t, s), Er = new as(t, s), ni = new kD(s), I = new OS(t, s), y = new ID(t, s), C = new ED(s), U = new pa(t, s), ie = yield ai.init(
30148
+ const ks = new Ql(t, s), Er = new as(t, s), ni = new kD(s), I = new OS(t, s), y = new ID(t, s), C = new ED(s), U = new pa(t, s), ie = yield ai.init(
30153
30149
  t,
30154
30150
  I,
30155
30151
  d,
@@ -30169,7 +30165,7 @@ const Aa = class {
30169
30165
  ie.self,
30170
30166
  I,
30171
30167
  f
30172
- )), (Pr = c.e2ee) != null && Pr.enabled && c.e2ee.manager.init(p, t.getValue("peerSessionStore")), c.chat && (P = yield _s.init(
30168
+ )), (Pr = c.e2ee) != null && Pr.enabled && c.e2ee.manager.init(p, t.getValue("peerSessionStore")), c.chat && (P = yield Es.init(
30173
30169
  t,
30174
30170
  Er,
30175
30171
  U,
@@ -30183,7 +30179,7 @@ const Aa = class {
30183
30179
  if (c.poll && (_ = yield If.init(
30184
30180
  t,
30185
30181
  ie.self,
30186
- Is
30182
+ ks
30187
30183
  )), c.recording && (H = new xf(
30188
30184
  t,
30189
30185
  ie.self,
@@ -30444,7 +30440,7 @@ let ri = (Wg = class {
30444
30440
  video: true
30445
30441
  };
30446
30442
  return n.setValue("options", e), n.setValue("peerId", t), n.setValue("modules", o), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", e.authToken), n.setValue("overrides", (d = e.overrides) != null ? d : {}), n.setValue("env", PC({ baseURI: i.baseURI })), n.setValue("defaults", c), n.setValue("onError", e.onError || (() => {
30447
- })), n.setValue("cachedUserDetails", Ps(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.5-staging.2"), (u = e.modules) != null && u.experimentalAudioPlayback && n.setValue("audioPlayback", new oO()), n;
30443
+ })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.5-staging.3"), (u = e.modules) != null && u.experimentalAudioPlayback && n.setValue("audioPlayback", new oO()), n;
30448
30444
  }
30449
30445
  join() {
30450
30446
  return l(this, null, function* () {