liveroom-client-element 0.0.39 → 0.0.41

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.
@@ -1,7 +1,7 @@
1
1
  var Mo = Object.defineProperty;
2
2
  var Uo = (i, e, t) => e in i ? Mo(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var x = (i, e, t) => (Uo(i, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { a as Fo, c as Bo } from "./constants-c295aa34.js";
4
+ import { a as Fo, c as Bo } from "./constants-ef887794.js";
5
5
  function Wi() {
6
6
  }
7
7
  function $r(i) {
@@ -22,7 +22,7 @@ function Jo(i, e) {
22
22
  function jo(i) {
23
23
  return Object.keys(i).length === 0;
24
24
  }
25
- function Ne(i, e) {
25
+ function Oe(i, e) {
26
26
  i.appendChild(e);
27
27
  }
28
28
  function Vo(i, e, t) {
@@ -43,13 +43,13 @@ function $o(i) {
43
43
  ) : i.ownerDocument;
44
44
  }
45
45
  function qo(i, e) {
46
- return Ne(
46
+ return Oe(
47
47
  /** @type {Document} */
48
48
  i.head || i,
49
49
  e
50
50
  ), e.sheet;
51
51
  }
52
- function Nn(i, e, t) {
52
+ function xn(i, e, t) {
53
53
  i.insertBefore(e, t || null);
54
54
  }
55
55
  function nn(i) {
@@ -173,13 +173,13 @@ function ic(i, e, t, n, s, r, a, o, c, u, d, h) {
173
173
  let I = a.get(K);
174
174
  I ? n && Q.push(() => I.p(q, e)) : (I = u(K, q), I.c()), _.set(K, w[b] = I), K in T && M.set(K, Math.abs(b - T[K]));
175
175
  }
176
- const j = /* @__PURE__ */ new Set(), he = /* @__PURE__ */ new Set();
176
+ const j = /* @__PURE__ */ new Set(), de = /* @__PURE__ */ new Set();
177
177
  function ae(q) {
178
178
  Wr(q, 1), q.m(o, d), a.set(q.key, q), d = q.first, p--;
179
179
  }
180
180
  for (; f && p; ) {
181
181
  const q = w[p - 1], K = i[f - 1], I = q.key, F = K.key;
182
- q === K ? (d = q.first, f--, p--) : _.has(F) ? !a.has(I) || j.has(I) ? ae(q) : he.has(F) ? f-- : M.get(I) > M.get(F) ? (he.add(I), ae(q)) : (j.add(F), f--) : (c(K, a), f--);
182
+ q === K ? (d = q.first, f--, p--) : _.has(F) ? !a.has(I) || j.has(I) ? ae(q) : de.has(F) ? f-- : M.get(I) > M.get(F) ? (de.add(I), ae(q)) : (j.add(F), f--) : (c(K, a), f--);
183
183
  }
184
184
  for (; f--; ) {
185
185
  const q = i[f];
@@ -293,7 +293,7 @@ typeof HTMLElement == "function" && (Gr = class extends HTMLElement {
293
293
  * @param {HTMLElement} [anchor]
294
294
  */
295
295
  m: function(u, d) {
296
- Nn(u, a, d);
296
+ xn(u, a, d);
297
297
  },
298
298
  d: function(u) {
299
299
  u && nn(a);
@@ -487,7 +487,7 @@ const { isArray: dc } = Array, lc = Object.keys, Ki = (i) => {
487
487
  }
488
488
  return i;
489
489
  };
490
- class Ue {
490
+ class De {
491
491
  constructor(e) {
492
492
  x(this, "path");
493
493
  x(this, "from");
@@ -511,7 +511,7 @@ const $ = (i) => typeof i == "string" ? yc(i) : i, bc = (i) => !i.length, kc = O
511
511
  function Tc(i, e) {
512
512
  return kc.call(i, e);
513
513
  }
514
- const { isArray: Kr } = Array, te = (i, e) => {
514
+ const { isArray: Kr } = Array, ee = (i, e) => {
515
515
  const t = e.length;
516
516
  if (!t)
517
517
  return { val: i };
@@ -534,8 +534,8 @@ const { isArray: Kr } = Array, te = (i, e) => {
534
534
  else
535
535
  throw new Error("NOT_FOUND");
536
536
  return { val: i, obj: n, key: s };
537
- }, sn = (i) => Kr(i.obj) && typeof i.key == "number", xn = (i) => typeof i.obj == "object" && typeof i.key == "string";
538
- class Is extends Ue {
537
+ }, sn = (i) => Kr(i.obj) && typeof i.key == "number", Ln = (i) => typeof i.obj == "object" && typeof i.key == "string";
538
+ class Is extends De {
539
539
  constructor(t, n) {
540
540
  super(t);
541
541
  x(this, "value");
@@ -548,7 +548,7 @@ class Is extends Ue {
548
548
  return 0;
549
549
  }
550
550
  apply(t) {
551
- const { val: n, key: s, obj: r } = te(t, this.path), a = Ki(this.value);
551
+ const { val: n, key: s, obj: r } = ee(t, this.path), a = Ki(this.value);
552
552
  if (!r)
553
553
  t = a;
554
554
  else if (typeof s == "string")
@@ -579,7 +579,7 @@ class Is extends Ue {
579
579
  t.encodeArrayHeader(3), t.writer.u8(0), t.encodeArray(this.path), t.encodeAny(this.value);
580
580
  }
581
581
  }
582
- class Yr extends Ue {
582
+ class Yr extends De {
583
583
  constructor(t, n) {
584
584
  super(t);
585
585
  x(this, "oldValue");
@@ -592,10 +592,10 @@ class Yr extends Ue {
592
592
  return 1;
593
593
  }
594
594
  apply(t) {
595
- const n = te(t, this.path);
595
+ const n = ee(t, this.path);
596
596
  if (n.val === void 0)
597
597
  throw new Error("NOT_FOUND");
598
- return xn(n) ? delete n.obj[n.key] : sn(n) ? n.val !== void 0 && n.obj.splice(n.key, 1) : t = null, { doc: t, old: n.val };
598
+ return Ln(n) ? delete n.obj[n.key] : sn(n) ? n.val !== void 0 && n.obj.splice(n.key, 1) : t = null, { doc: t, old: n.val };
599
599
  }
600
600
  toJson(t) {
601
601
  const n = {
@@ -613,7 +613,7 @@ class Yr extends Ue {
613
613
  t.encodeArrayHeader(s ? 3 : 2), t.writer.u8(1), t.encodeArray(this.path), s && t.encodeAny(this.oldValue);
614
614
  }
615
615
  }
616
- class Sc extends Ue {
616
+ class Sc extends De {
617
617
  constructor(t, n, s) {
618
618
  super(t);
619
619
  x(this, "value");
@@ -627,10 +627,10 @@ class Sc extends Ue {
627
627
  return 2;
628
628
  }
629
629
  apply(t) {
630
- const n = te(t, this.path);
630
+ const n = ee(t, this.path);
631
631
  if (n.val === void 0)
632
632
  throw new Error("NOT_FOUND");
633
- return xn(n) ? n.obj[n.key] = this.value : sn(n) ? n.obj[n.key] = this.value : t = this.value, { doc: t, old: n.val };
633
+ return Ln(n) ? n.obj[n.key] = this.value : sn(n) ? n.obj[n.key] = this.value : t = this.value, { doc: t, old: n.val };
634
634
  }
635
635
  toJson(t) {
636
636
  const n = {
@@ -649,7 +649,7 @@ class Sc extends Ue {
649
649
  t.encodeArrayHeader(s ? 4 : 3), t.writer.u8(2), t.encodeArray(this.path), t.encodeAny(this.value), s && t.encodeAny(this.oldValue);
650
650
  }
651
651
  }
652
- class Cc extends Ue {
652
+ class Cc extends De {
653
653
  constructor(t, n) {
654
654
  super(t);
655
655
  x(this, "from");
@@ -679,7 +679,7 @@ class Cc extends Ue {
679
679
  t.encodeArrayHeader(3), t.writer.u8(4), t.encodeArray(this.path), t.encodeArray(this.from);
680
680
  }
681
681
  }
682
- class wc extends Ue {
682
+ class wc extends De {
683
683
  constructor(t, n) {
684
684
  super(t);
685
685
  x(this, "from");
@@ -692,7 +692,7 @@ class wc extends Ue {
692
692
  return 3;
693
693
  }
694
694
  apply(t) {
695
- const { val: n } = te(t, this.from);
695
+ const { val: n } = ee(t, this.from);
696
696
  if (n === void 0)
697
697
  throw new Error("NOT_FOUND");
698
698
  return new Is(this.path, Ki(n)).apply(t);
@@ -711,7 +711,7 @@ class wc extends Ue {
711
711
  t.encodeArrayHeader(3), t.writer.u8(3), t.encodeArray(this.path), t.encodeArray(this.from);
712
712
  }
713
713
  }
714
- class Ce extends Ue {
714
+ class Ce extends De {
715
715
  apply(e) {
716
716
  if (!this.test(e))
717
717
  throw new Error("TEST");
@@ -758,7 +758,7 @@ class Ec extends Ce {
758
758
  return 5;
759
759
  }
760
760
  test(t) {
761
- const { val: n } = te(t, this.path);
761
+ const { val: n } = ee(t, this.path);
762
762
  if (n === void 0)
763
763
  return !!this.not;
764
764
  const s = Pn(n, this.value);
@@ -780,7 +780,7 @@ class Ec extends Ce {
780
780
  t.encodeArrayHeader(this.not ? 4 : 3), t.writer.u8(5), t.encodeArray(n ? this.path.slice(n.path.length) : this.path), t.encodeAny(this.value), this.not && t.writer.u8(1);
781
781
  }
782
782
  }
783
- class Pc extends Ue {
783
+ class Pc extends De {
784
784
  constructor(e) {
785
785
  super(e);
786
786
  }
@@ -791,7 +791,7 @@ class Pc extends Ue {
791
791
  return 8;
792
792
  }
793
793
  apply(e) {
794
- const t = te(e, this.path);
794
+ const t = ee(e, this.path);
795
795
  return t.obj ? t.obj[t.key] = !t.val : e = !t.val, { doc: e, old: t.val };
796
796
  }
797
797
  toJson(e) {
@@ -807,7 +807,7 @@ class Pc extends Ue {
807
807
  e.encodeArrayHeader(2), e.writer.u8(8), e.encodeArray(this.path);
808
808
  }
809
809
  }
810
- class Rc extends Ue {
810
+ class Rc extends De {
811
811
  constructor(t, n) {
812
812
  super(t);
813
813
  x(this, "inc");
@@ -820,7 +820,7 @@ class Rc extends Ue {
820
820
  return 9;
821
821
  }
822
822
  apply(t) {
823
- const n = te(t, this.path), s = this.inc + Number(n.val);
823
+ const n = ee(t, this.path), s = this.inc + Number(n.val);
824
824
  return n.obj ? n.obj[n.key] = s : t = s, { doc: t, old: n.val };
825
825
  }
826
826
  toJson(t) {
@@ -837,7 +837,7 @@ class Rc extends Ue {
837
837
  t.encodeArrayHeader(3), t.writer.u8(9), t.encodeArray(this.path), t.encodeNumber(this.inc);
838
838
  }
839
839
  }
840
- class _c extends Ue {
840
+ class _c extends De {
841
841
  constructor(t, n, s) {
842
842
  super(t);
843
843
  x(this, "pos");
@@ -851,7 +851,7 @@ class _c extends Ue {
851
851
  return 6;
852
852
  }
853
853
  apply(t) {
854
- const { val: n, key: s, obj: r } = te(t, this.path);
854
+ const { val: n, key: s, obj: r } = ee(t, this.path);
855
855
  if (typeof n != "string") {
856
856
  if (n !== void 0)
857
857
  throw new Error("NOT_A_STRING");
@@ -876,7 +876,7 @@ class _c extends Ue {
876
876
  t.encodeArrayHeader(4), t.writer.u8(6), t.encodeArray(this.path), t.encodeNumber(this.pos), t.encodeString(this.str);
877
877
  }
878
878
  }
879
- class Ic extends Ue {
879
+ class Ic extends De {
880
880
  constructor(t, n, s, r) {
881
881
  super(t);
882
882
  x(this, "pos");
@@ -894,7 +894,7 @@ class Ic extends Ue {
894
894
  return typeof this.str == "string" ? this.str.length : this.len;
895
895
  }
896
896
  apply(t) {
897
- const { val: n, key: s, obj: r } = te(t, this.path);
897
+ const { val: n, key: s, obj: r } = ee(t, this.path);
898
898
  if (typeof n != "string")
899
899
  throw new Error("NOT_A_STRING");
900
900
  const a = n.length, o = Math.min(this.pos, n.length), c = Math.min(o, a), u = this.str !== void 0 ? this.str.length : this.len, d = Math.min(o + u, a), h = n.slice(0, c), f = n.substr(d), p = h + f;
@@ -926,7 +926,7 @@ const { isArray: Ac } = Array, rs = (i) => !!i && typeof i == "object" && typeof
926
926
  const t = new RegExp(i, e ? "i" : void 0);
927
927
  return (n) => t.test(n);
928
928
  };
929
- class Lc extends Ue {
929
+ class Nc extends De {
930
930
  constructor(t, n, s) {
931
931
  super(t);
932
932
  x(this, "pos");
@@ -940,11 +940,11 @@ class Lc extends Ue {
940
940
  return 10;
941
941
  }
942
942
  apply(t) {
943
- const n = te(t, this.path);
943
+ const n = ee(t, this.path);
944
944
  if (n.val === void 0)
945
945
  throw new Error("NOT_FOUND");
946
946
  const s = this.split(n.val);
947
- return xn(n) ? n.obj[n.key] = s : sn(n) ? (n.obj[n.key] = s[0], n.obj.splice(n.key + 1, 0, s[1])) : t = s, { doc: t, old: n.val };
947
+ return Ln(n) ? n.obj[n.key] = s : sn(n) ? (n.obj[n.key] = s[0], n.obj.splice(n.key + 1, 0, s[1])) : t = s, { doc: t, old: n.val };
948
948
  }
949
949
  split(t) {
950
950
  if (typeof t == "string") {
@@ -1009,7 +1009,7 @@ class Lc extends Ue {
1009
1009
  t.encodeArrayHeader(this.props ? 4 : 3), t.writer.u8(10), t.encodeArray(this.path), t.encodeNumber(this.pos), this.props && t.encodeObject(this.props);
1010
1010
  }
1011
1011
  }
1012
- class Nc extends Ue {
1012
+ class xc extends De {
1013
1013
  constructor(t, n, s) {
1014
1014
  super(t);
1015
1015
  x(this, "pos");
@@ -1023,7 +1023,7 @@ class Nc extends Ue {
1023
1023
  return 11;
1024
1024
  }
1025
1025
  apply(t) {
1026
- const n = te(t, this.path);
1026
+ const n = ee(t, this.path);
1027
1027
  if (!sn(n))
1028
1028
  throw new Error("INVALID_TARGET");
1029
1029
  if (n.key <= 0)
@@ -1050,8 +1050,8 @@ class Nc extends Ue {
1050
1050
  t.encodeArrayHeader(this.props ? 4 : 3), t.writer.u8(11), t.encodeArray(this.path), t.encodeNumber(this.pos), this.props && t.encodeAny(this.props);
1051
1051
  }
1052
1052
  }
1053
- const { isArray: xc } = Array;
1054
- class Dc extends Ue {
1053
+ const { isArray: Lc } = Array;
1054
+ class Dc extends De {
1055
1055
  constructor(t, n, s) {
1056
1056
  super(t);
1057
1057
  x(this, "props");
@@ -1065,11 +1065,11 @@ class Dc extends Ue {
1065
1065
  return 12;
1066
1066
  }
1067
1067
  apply(t) {
1068
- const n = te(t, this.path);
1069
- return sn(n) ? n.val !== void 0 && (n.obj[n.key] = this.extend(n.val)) : xn(n) ? n.obj[n.key] = this.extend(n.val) : t = this.extend(t), { doc: t };
1068
+ const n = ee(t, this.path);
1069
+ return sn(n) ? n.val !== void 0 && (n.obj[n.key] = this.extend(n.val)) : Ln(n) ? n.obj[n.key] = this.extend(n.val) : t = this.extend(t), { doc: t };
1070
1070
  }
1071
1071
  extend(t) {
1072
- if (xc(t) || typeof t != "object" || !t)
1072
+ if (Lc(t) || typeof t != "object" || !t)
1073
1073
  return t;
1074
1074
  for (const [n, s] of Object.entries(this.props)) {
1075
1075
  if (n === "__proto__")
@@ -1110,7 +1110,7 @@ class Mc extends Ce {
1110
1110
  return 31;
1111
1111
  }
1112
1112
  test(e) {
1113
- const { val: t } = te(e, this.path);
1113
+ const { val: t } = ee(e, this.path);
1114
1114
  return t !== void 0;
1115
1115
  }
1116
1116
  toJson(e) {
@@ -1138,7 +1138,7 @@ class Uc extends Ce {
1138
1138
  }
1139
1139
  test(e) {
1140
1140
  try {
1141
- const { val: t } = te(e, this.path);
1141
+ const { val: t } = ee(e, this.path);
1142
1142
  return t === void 0;
1143
1143
  } catch (t) {
1144
1144
  if (t.message === "NOT_FOUND")
@@ -1173,7 +1173,7 @@ class Bc extends Ce {
1173
1173
  return 39;
1174
1174
  }
1175
1175
  test(t) {
1176
- const { val: n } = te(t, this.path);
1176
+ const { val: n } = ee(t, this.path);
1177
1177
  return n === null ? this.type.indexOf("null") > -1 : Fc(n) ? this.type.indexOf("array") > -1 : this.type.indexOf(typeof n) > -1 || typeof n == "number" && n === Math.round(n) && this.type.indexOf("integer") > -1;
1178
1178
  }
1179
1179
  toJson(t) {
@@ -1205,7 +1205,7 @@ class Jc extends Ce {
1205
1205
  return 40;
1206
1206
  }
1207
1207
  test(t) {
1208
- const { val: n } = te(t, this.path);
1208
+ const { val: n } = ee(t, this.path);
1209
1209
  if (typeof n != "string")
1210
1210
  return !1;
1211
1211
  const s = n.length, r = Math.min(this.pos, s), a = Math.min(this.pos + this.str.length, s), o = n.substring(r, a) === this.str;
@@ -1242,7 +1242,7 @@ class jc extends Ce {
1242
1242
  return 41;
1243
1243
  }
1244
1244
  test(t) {
1245
- const { val: n } = te(t, this.path);
1245
+ const { val: n } = ee(t, this.path);
1246
1246
  if (typeof n != "string")
1247
1247
  return !1;
1248
1248
  const r = n.length >= this.len;
@@ -1278,7 +1278,7 @@ class Vc extends Ce {
1278
1278
  return 30;
1279
1279
  }
1280
1280
  test(t) {
1281
- const { val: n } = te(t, this.path);
1281
+ const { val: n } = ee(t, this.path);
1282
1282
  if (typeof n != "string")
1283
1283
  return !1;
1284
1284
  const s = this.ignore_case ? n.toLowerCase() : n, r = this.ignore_case ? this.value.toLowerCase() : this.value;
@@ -1315,7 +1315,7 @@ class $c extends Ce {
1315
1315
  return 32;
1316
1316
  }
1317
1317
  test(t) {
1318
- const { val: n } = te(t, this.path);
1318
+ const { val: n } = ee(t, this.path);
1319
1319
  if (typeof n != "string")
1320
1320
  return !1;
1321
1321
  const s = this.ignore_case ? n.toLowerCase() : n, r = this.ignore_case ? this.value.toLowerCase() : this.value;
@@ -1352,7 +1352,7 @@ class qc extends Ce {
1352
1352
  return 37;
1353
1353
  }
1354
1354
  test(t) {
1355
- const { val: n } = te(t, this.path);
1355
+ const { val: n } = ee(t, this.path);
1356
1356
  if (typeof n != "string")
1357
1357
  return !1;
1358
1358
  const s = this.ignore_case ? n.toLowerCase() : n, r = this.ignore_case ? this.value.toLowerCase() : this.value;
@@ -1388,7 +1388,7 @@ class Hc extends Ce {
1388
1388
  return 33;
1389
1389
  }
1390
1390
  test(t) {
1391
- const { val: n } = te(t, this.path);
1391
+ const { val: n } = ee(t, this.path);
1392
1392
  for (const s of this.value)
1393
1393
  if (Pn(n, s))
1394
1394
  return !0;
@@ -1421,7 +1421,7 @@ class zc extends Ce {
1421
1421
  return 34;
1422
1422
  }
1423
1423
  test(t) {
1424
- const { val: n } = te(t, this.path);
1424
+ const { val: n } = ee(t, this.path);
1425
1425
  return typeof n != "number" ? !1 : n < this.value;
1426
1426
  }
1427
1427
  toJson(t) {
@@ -1451,7 +1451,7 @@ class Wc extends Ce {
1451
1451
  return 36;
1452
1452
  }
1453
1453
  test(t) {
1454
- const { val: n } = te(t, this.path);
1454
+ const { val: n } = ee(t, this.path);
1455
1455
  return typeof n != "number" ? !1 : n > this.value;
1456
1456
  }
1457
1457
  toJson(t) {
@@ -1611,7 +1611,7 @@ class Xc extends Ce {
1611
1611
  return 35;
1612
1612
  }
1613
1613
  test(t) {
1614
- const { val: n } = te(t, this.path);
1614
+ const { val: n } = ee(t, this.path);
1615
1615
  return typeof n != "string" ? !1 : this.matcher(n);
1616
1616
  }
1617
1617
  toJson(t) {
@@ -1645,7 +1645,7 @@ class Zc extends Ce {
1645
1645
  return 42;
1646
1646
  }
1647
1647
  test(t) {
1648
- const { val: n } = te(t, this.path);
1648
+ const { val: n } = ee(t, this.path);
1649
1649
  return n === null ? this.value === "null" : Qc(n) ? this.value === "array" : typeof n === this.value || typeof n == "number" && n === Math.round(n) && this.value === "integer";
1650
1650
  }
1651
1651
  toJson(t) {
@@ -1683,9 +1683,9 @@ const eu = (i, e) => {
1683
1683
  case "str_del":
1684
1684
  return new Ic($(i.path), i.pos, i.str, i.len);
1685
1685
  case "split":
1686
- return new Lc($(i.path), i.pos, i.props || null);
1687
- case "merge":
1688
1686
  return new Nc($(i.path), i.pos, i.props || null);
1687
+ case "merge":
1688
+ return new xc($(i.path), i.pos, i.props || null);
1689
1689
  case "extend":
1690
1690
  return new Dc($(i.path), i.props, !!i.deleteNull);
1691
1691
  default:
@@ -1748,7 +1748,7 @@ function tu(i, e, t) {
1748
1748
  }
1749
1749
  var Bi = (i) => typeof i == "function" ? i : function() {
1750
1750
  return i;
1751
- }, iu = typeof self < "u" ? self : null, Di = typeof window < "u" ? window : null, Ji = iu || Di || Ji, nu = "2.0.0", Qe = { connecting: 0, open: 1, closing: 2, closed: 3 }, su = 1e4, ru = 1e3, Le = {
1751
+ }, iu = typeof self < "u" ? self : null, Di = typeof window < "u" ? window : null, Ji = iu || Di || Ji, nu = "2.0.0", Qe = { connecting: 0, open: 1, closing: 2, closed: 3 }, su = 1e4, ru = 1e3, Ae = {
1752
1752
  closed: "closed",
1753
1753
  errored: "errored",
1754
1754
  joined: "joined",
@@ -1825,20 +1825,20 @@ var Bi = (i) => typeof i == "function" ? i : function() {
1825
1825
  }
1826
1826
  }, ou = class {
1827
1827
  constructor(i, e, t) {
1828
- this.state = Le.closed, this.topic = i, this.params = Bi(e || {}), this.socket = t, this.bindings = [], this.bindingRef = 0, this.timeout = this.socket.timeout, this.joinedOnce = !1, this.joinPush = new un(this, bt.join, this.params, this.timeout), this.pushBuffer = [], this.stateChangeRefs = [], this.rejoinTimer = new Xr(() => {
1828
+ this.state = Ae.closed, this.topic = i, this.params = Bi(e || {}), this.socket = t, this.bindings = [], this.bindingRef = 0, this.timeout = this.socket.timeout, this.joinedOnce = !1, this.joinPush = new un(this, bt.join, this.params, this.timeout), this.pushBuffer = [], this.stateChangeRefs = [], this.rejoinTimer = new Xr(() => {
1829
1829
  this.socket.isConnected() && this.rejoin();
1830
1830
  }, this.socket.rejoinAfterMs), this.stateChangeRefs.push(this.socket.onError(() => this.rejoinTimer.reset())), this.stateChangeRefs.push(this.socket.onOpen(() => {
1831
1831
  this.rejoinTimer.reset(), this.isErrored() && this.rejoin();
1832
1832
  })), this.joinPush.receive("ok", () => {
1833
- this.state = Le.joined, this.rejoinTimer.reset(), this.pushBuffer.forEach((n) => n.send()), this.pushBuffer = [];
1833
+ this.state = Ae.joined, this.rejoinTimer.reset(), this.pushBuffer.forEach((n) => n.send()), this.pushBuffer = [];
1834
1834
  }), this.joinPush.receive("error", () => {
1835
- this.state = Le.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1835
+ this.state = Ae.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1836
1836
  }), this.onClose(() => {
1837
- this.rejoinTimer.reset(), this.socket.hasLogger() && this.socket.log("channel", `close ${this.topic} ${this.joinRef()}`), this.state = Le.closed, this.socket.remove(this);
1837
+ this.rejoinTimer.reset(), this.socket.hasLogger() && this.socket.log("channel", `close ${this.topic} ${this.joinRef()}`), this.state = Ae.closed, this.socket.remove(this);
1838
1838
  }), this.onError((n) => {
1839
- this.socket.hasLogger() && this.socket.log("channel", `error ${this.topic}`, n), this.isJoining() && this.joinPush.reset(), this.state = Le.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1839
+ this.socket.hasLogger() && this.socket.log("channel", `error ${this.topic}`, n), this.isJoining() && this.joinPush.reset(), this.state = Ae.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1840
1840
  }), this.joinPush.receive("timeout", () => {
1841
- this.socket.hasLogger() && this.socket.log("channel", `timeout ${this.topic} (${this.joinRef()})`, this.joinPush.timeout), new un(this, bt.leave, Bi({}), this.timeout).send(), this.state = Le.errored, this.joinPush.reset(), this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1841
+ this.socket.hasLogger() && this.socket.log("channel", `timeout ${this.topic} (${this.joinRef()})`, this.joinPush.timeout), new un(this, bt.leave, Bi({}), this.timeout).send(), this.state = Ae.errored, this.joinPush.reset(), this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1842
1842
  }), this.on(bt.reply, (n, s) => {
1843
1843
  this.trigger(this.replyEventName(s), n);
1844
1844
  });
@@ -1873,7 +1873,7 @@ var Bi = (i) => typeof i == "function" ? i : function() {
1873
1873
  return this.canPush() ? n.send() : (n.startTimeout(), this.pushBuffer.push(n)), n;
1874
1874
  }
1875
1875
  leave(i = this.timeout) {
1876
- this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state = Le.leaving;
1876
+ this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state = Ae.leaving;
1877
1877
  let e = () => {
1878
1878
  this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(bt.close, "leave");
1879
1879
  }, t = new un(this, bt.leave, Bi({}), i);
@@ -1889,7 +1889,7 @@ var Bi = (i) => typeof i == "function" ? i : function() {
1889
1889
  return this.joinPush.ref;
1890
1890
  }
1891
1891
  rejoin(i = this.timeout) {
1892
- this.isLeaving() || (this.socket.leaveOpenTopic(this.topic), this.state = Le.joining, this.joinPush.resend(i));
1892
+ this.isLeaving() || (this.socket.leaveOpenTopic(this.topic), this.state = Ae.joining, this.joinPush.resend(i));
1893
1893
  }
1894
1894
  trigger(i, e, t, n) {
1895
1895
  let s = this.onMessage(i, e, t, n);
@@ -1903,19 +1903,19 @@ var Bi = (i) => typeof i == "function" ? i : function() {
1903
1903
  return `chan_reply_${i}`;
1904
1904
  }
1905
1905
  isClosed() {
1906
- return this.state === Le.closed;
1906
+ return this.state === Ae.closed;
1907
1907
  }
1908
1908
  isErrored() {
1909
- return this.state === Le.errored;
1909
+ return this.state === Ae.errored;
1910
1910
  }
1911
1911
  isJoined() {
1912
- return this.state === Le.joined;
1912
+ return this.state === Ae.joined;
1913
1913
  }
1914
1914
  isJoining() {
1915
- return this.state === Le.joining;
1915
+ return this.state === Ae.joining;
1916
1916
  }
1917
1917
  isLeaving() {
1918
- return this.state === Le.leaving;
1918
+ return this.state === Ae.leaving;
1919
1919
  }
1920
1920
  }, Rn = class {
1921
1921
  static request(i, e, t, n, s, r, a) {
@@ -2423,9 +2423,9 @@ var Gs;
2423
2423
  } : function(v, y) {
2424
2424
  return v[y];
2425
2425
  }
2426
- }, d = Object.getPrototypeOf(Function), h = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", f = !h && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : No(), p = !h && typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : xo(), b = !h && typeof WeakMap == "function" ? WeakMap : Do(), T = new b();
2426
+ }, d = Object.getPrototypeOf(Function), h = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", f = !h && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : xo(), p = !h && typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Lo(), b = !h && typeof WeakMap == "function" ? WeakMap : Do(), T = new b();
2427
2427
  function w(v, y, S, E) {
2428
- if (Z(S)) {
2428
+ if (te(S)) {
2429
2429
  if (!Bs(v))
2430
2430
  throw new TypeError();
2431
2431
  if (!Js(y))
@@ -2436,9 +2436,9 @@ var Gs;
2436
2436
  throw new TypeError();
2437
2437
  if (!ie(y))
2438
2438
  throw new TypeError();
2439
- if (!ie(E) && !Z(E) && !vt(E))
2439
+ if (!ie(E) && !te(E) && !vt(E))
2440
2440
  throw new TypeError();
2441
- return vt(E) && (E = void 0), S = yt(S), fe(v, y, S, E);
2441
+ return vt(E) && (E = void 0), S = yt(S), le(v, y, S, E);
2442
2442
  }
2443
2443
  }
2444
2444
  e("decorate", w);
@@ -2446,9 +2446,9 @@ var Gs;
2446
2446
  function S(E, D) {
2447
2447
  if (!ie(E))
2448
2448
  throw new TypeError();
2449
- if (!Z(D) && !_o(D))
2449
+ if (!te(D) && !_o(D))
2450
2450
  throw new TypeError();
2451
- oe(v, y, E, D);
2451
+ he(v, y, E, D);
2452
2452
  }
2453
2453
  return S;
2454
2454
  }
@@ -2456,56 +2456,56 @@ var Gs;
2456
2456
  function M(v, y, S, E) {
2457
2457
  if (!ie(S))
2458
2458
  throw new TypeError();
2459
- return Z(E) || (E = yt(E)), oe(v, y, S, E);
2459
+ return te(E) || (E = yt(E)), he(v, y, S, E);
2460
2460
  }
2461
2461
  e("defineMetadata", M);
2462
2462
  function Q(v, y, S) {
2463
2463
  if (!ie(y))
2464
2464
  throw new TypeError();
2465
- return Z(S) || (S = yt(S)), rn(v, y, S);
2465
+ return te(S) || (S = yt(S)), rn(v, y, S);
2466
2466
  }
2467
2467
  e("hasMetadata", Q);
2468
2468
  function j(v, y, S) {
2469
2469
  if (!ie(y))
2470
2470
  throw new TypeError();
2471
- return Z(S) || (S = yt(S)), li(v, y, S);
2471
+ return te(S) || (S = yt(S)), li(v, y, S);
2472
2472
  }
2473
2473
  e("hasOwnMetadata", j);
2474
- function he(v, y, S) {
2474
+ function de(v, y, S) {
2475
2475
  if (!ie(y))
2476
2476
  throw new TypeError();
2477
- return Z(S) || (S = yt(S)), an(v, y, S);
2477
+ return te(S) || (S = yt(S)), an(v, y, S);
2478
2478
  }
2479
- e("getMetadata", he);
2479
+ e("getMetadata", de);
2480
2480
  function ae(v, y, S) {
2481
2481
  if (!ie(y))
2482
2482
  throw new TypeError();
2483
- return Z(S) || (S = yt(S)), O(v, y, S);
2483
+ return te(S) || (S = yt(S)), L(v, y, S);
2484
2484
  }
2485
2485
  e("getOwnMetadata", ae);
2486
2486
  function q(v, y) {
2487
2487
  if (!ie(v))
2488
2488
  throw new TypeError();
2489
- return Z(y) || (y = yt(y)), ce(v, y);
2489
+ return te(y) || (y = yt(y)), fe(v, y);
2490
2490
  }
2491
2491
  e("getMetadataKeys", q);
2492
2492
  function K(v, y) {
2493
2493
  if (!ie(v))
2494
2494
  throw new TypeError();
2495
- return Z(y) || (y = yt(y)), Ae(v, y);
2495
+ return te(y) || (y = yt(y)), Ge(v, y);
2496
2496
  }
2497
2497
  e("getOwnMetadataKeys", K);
2498
2498
  function I(v, y, S) {
2499
2499
  if (!ie(y))
2500
2500
  throw new TypeError();
2501
- Z(S) || (S = yt(S));
2501
+ te(S) || (S = yt(S));
2502
2502
  var E = Ie(
2503
2503
  y,
2504
2504
  S,
2505
2505
  /*Create*/
2506
2506
  !1
2507
2507
  );
2508
- if (Z(E) || !E.delete(v))
2508
+ if (te(E) || !E.delete(v))
2509
2509
  return !1;
2510
2510
  if (E.size > 0)
2511
2511
  return !0;
@@ -2516,7 +2516,7 @@ var Gs;
2516
2516
  function F(v, y) {
2517
2517
  for (var S = v.length - 1; S >= 0; --S) {
2518
2518
  var E = v[S], D = E(y);
2519
- if (!Z(D) && !vt(D)) {
2519
+ if (!te(D) && !vt(D)) {
2520
2520
  if (!Js(D))
2521
2521
  throw new TypeError();
2522
2522
  y = D;
@@ -2524,10 +2524,10 @@ var Gs;
2524
2524
  }
2525
2525
  return y;
2526
2526
  }
2527
- function fe(v, y, S, E) {
2527
+ function le(v, y, S, E) {
2528
2528
  for (var D = v.length - 1; D >= 0; --D) {
2529
- var de = v[D], B = de(y, S, E);
2530
- if (!Z(B) && !vt(B)) {
2529
+ var ce = v[D], B = ce(y, S, E);
2530
+ if (!te(B) && !vt(B)) {
2531
2531
  if (!ie(B))
2532
2532
  throw new TypeError();
2533
2533
  E = B;
@@ -2537,13 +2537,13 @@ var Gs;
2537
2537
  }
2538
2538
  function Ie(v, y, S) {
2539
2539
  var E = T.get(v);
2540
- if (Z(E)) {
2540
+ if (te(E)) {
2541
2541
  if (!S)
2542
2542
  return;
2543
2543
  E = new f(), T.set(v, E);
2544
2544
  }
2545
2545
  var D = E.get(y);
2546
- if (Z(D)) {
2546
+ if (te(D)) {
2547
2547
  if (!S)
2548
2548
  return;
2549
2549
  D = new f(), E.set(y, D);
@@ -2564,27 +2564,27 @@ var Gs;
2564
2564
  /*Create*/
2565
2565
  !1
2566
2566
  );
2567
- return Z(E) ? !1 : Po(E.has(v));
2567
+ return te(E) ? !1 : Po(E.has(v));
2568
2568
  }
2569
2569
  function an(v, y, S) {
2570
2570
  var E = li(v, y, S);
2571
2571
  if (E)
2572
- return O(v, y, S);
2572
+ return L(v, y, S);
2573
2573
  var D = jn(y);
2574
2574
  if (!vt(D))
2575
2575
  return an(v, D, S);
2576
2576
  }
2577
- function O(v, y, S) {
2577
+ function L(v, y, S) {
2578
2578
  var E = Ie(
2579
2579
  y,
2580
2580
  S,
2581
2581
  /*Create*/
2582
2582
  !1
2583
2583
  );
2584
- if (!Z(E))
2584
+ if (!te(E))
2585
2585
  return E.get(v);
2586
2586
  }
2587
- function oe(v, y, S, E) {
2587
+ function he(v, y, S, E) {
2588
2588
  var D = Ie(
2589
2589
  S,
2590
2590
  E,
@@ -2593,36 +2593,36 @@ var Gs;
2593
2593
  );
2594
2594
  D.set(v, y);
2595
2595
  }
2596
- function ce(v, y) {
2597
- var S = Ae(v, y), E = jn(v);
2596
+ function fe(v, y) {
2597
+ var S = Ge(v, y), E = jn(v);
2598
2598
  if (E === null)
2599
2599
  return S;
2600
- var D = ce(E, y);
2600
+ var D = fe(E, y);
2601
2601
  if (D.length <= 0)
2602
2602
  return S;
2603
2603
  if (S.length <= 0)
2604
2604
  return D;
2605
- for (var de = new p(), B = [], J = 0, U = S; J < U.length; J++) {
2606
- var H = U[J], z = de.has(H);
2607
- z || (de.add(H), B.push(H));
2605
+ for (var ce = new p(), B = [], J = 0, U = S; J < U.length; J++) {
2606
+ var H = U[J], z = ce.has(H);
2607
+ z || (ce.add(H), B.push(H));
2608
2608
  }
2609
2609
  for (var Gt = 0, Vs = D; Gt < Vs.length; Gt++) {
2610
- var H = Vs[Gt], z = de.has(H);
2611
- z || (de.add(H), B.push(H));
2610
+ var H = Vs[Gt], z = ce.has(H);
2611
+ z || (ce.add(H), B.push(H));
2612
2612
  }
2613
2613
  return B;
2614
2614
  }
2615
- function Ae(v, y) {
2615
+ function Ge(v, y) {
2616
2616
  var S = [], E = Ie(
2617
2617
  v,
2618
2618
  y,
2619
2619
  /*Create*/
2620
2620
  !1
2621
2621
  );
2622
- if (Z(E))
2622
+ if (te(E))
2623
2623
  return S;
2624
- for (var D = E.keys(), de = Io(D), B = 0; ; ) {
2625
- var J = Oo(de);
2624
+ for (var D = E.keys(), ce = Io(D), B = 0; ; ) {
2625
+ var J = Oo(ce);
2626
2626
  if (!J)
2627
2627
  return S.length = B, S;
2628
2628
  var U = Ao(J);
@@ -2630,7 +2630,7 @@ var Gs;
2630
2630
  S[B] = U;
2631
2631
  } catch (H) {
2632
2632
  try {
2633
- Lo(de);
2633
+ No(ce);
2634
2634
  } finally {
2635
2635
  throw H;
2636
2636
  }
@@ -2638,7 +2638,7 @@ var Gs;
2638
2638
  B++;
2639
2639
  }
2640
2640
  }
2641
- function Oe(v) {
2641
+ function Ke(v) {
2642
2642
  if (v === null)
2643
2643
  return 1;
2644
2644
  switch (typeof v) {
@@ -2658,7 +2658,7 @@ var Gs;
2658
2658
  return 6;
2659
2659
  }
2660
2660
  }
2661
- function Z(v) {
2661
+ function te(v) {
2662
2662
  return v === void 0;
2663
2663
  }
2664
2664
  function vt(v) {
@@ -2671,7 +2671,7 @@ var Gs;
2671
2671
  return typeof v == "object" ? v !== null : typeof v == "function";
2672
2672
  }
2673
2673
  function Jn(v, y) {
2674
- switch (Oe(v)) {
2674
+ switch (Ke(v)) {
2675
2675
  case 0:
2676
2676
  return v;
2677
2677
  case 1:
@@ -2715,9 +2715,9 @@ var Gs;
2715
2715
  if (!ie(E))
2716
2716
  return E;
2717
2717
  }
2718
- var de = v.toString;
2719
- if (hi(de)) {
2720
- var E = de.call(v);
2718
+ var ce = v.toString;
2719
+ if (hi(ce)) {
2720
+ var E = ce.call(v);
2721
2721
  if (!ie(E))
2722
2722
  return E;
2723
2723
  }
@@ -2748,7 +2748,7 @@ var Gs;
2748
2748
  return typeof v == "function";
2749
2749
  }
2750
2750
  function _o(v) {
2751
- switch (Oe(v)) {
2751
+ switch (Ke(v)) {
2752
2752
  case 3:
2753
2753
  return !0;
2754
2754
  case 4:
@@ -2781,7 +2781,7 @@ var Gs;
2781
2781
  var y = v.next();
2782
2782
  return y.done ? !1 : y;
2783
2783
  }
2784
- function Lo(v) {
2784
+ function No(v) {
2785
2785
  var y = v.return;
2786
2786
  y && y.call(v);
2787
2787
  }
@@ -2795,7 +2795,7 @@ var Gs;
2795
2795
  var D = E.constructor;
2796
2796
  return typeof D != "function" || D === v ? y : D;
2797
2797
  }
2798
- function No() {
2798
+ function xo() {
2799
2799
  var v = {}, y = [], S = (
2800
2800
  /** @class */
2801
2801
  function() {
@@ -2871,7 +2871,7 @@ var Gs;
2871
2871
  }, B.prototype.values = function() {
2872
2872
  return new S(this._keys, this._values, D);
2873
2873
  }, B.prototype.entries = function() {
2874
- return new S(this._keys, this._values, de);
2874
+ return new S(this._keys, this._values, ce);
2875
2875
  }, B.prototype["@@iterator"] = function() {
2876
2876
  return this.entries();
2877
2877
  }, B.prototype[r] = function() {
@@ -2887,11 +2887,11 @@ var Gs;
2887
2887
  function D(B, J) {
2888
2888
  return J;
2889
2889
  }
2890
- function de(B, J) {
2890
+ function ce(B, J) {
2891
2891
  return [B, J];
2892
2892
  }
2893
2893
  }
2894
- function xo() {
2894
+ function Lo() {
2895
2895
  return (
2896
2896
  /** @class */
2897
2897
  function() {
@@ -2982,13 +2982,13 @@ var Gs;
2982
2982
  }
2983
2983
  return U[S];
2984
2984
  }
2985
- function de(U, H) {
2985
+ function ce(U, H) {
2986
2986
  for (var z = 0; z < H; ++z)
2987
2987
  U[z] = Math.random() * 255 | 0;
2988
2988
  return U;
2989
2989
  }
2990
2990
  function B(U) {
2991
- return typeof Uint8Array == "function" ? typeof crypto < "u" ? crypto.getRandomValues(new Uint8Array(U)) : typeof msCrypto < "u" ? msCrypto.getRandomValues(new Uint8Array(U)) : de(new Uint8Array(U), U) : de(new Array(U), U);
2991
+ return typeof Uint8Array == "function" ? typeof crypto < "u" ? crypto.getRandomValues(new Uint8Array(U)) : typeof msCrypto < "u" ? msCrypto.getRandomValues(new Uint8Array(U)) : ce(new Uint8Array(U), U) : ce(new Array(U), U);
2992
2992
  }
2993
2993
  function J() {
2994
2994
  var U = B(v);
@@ -3069,7 +3069,7 @@ var Qr = { exports: {} };
3069
3069
  w = w ?? "WARN";
3070
3070
  var j = "loglevel";
3071
3071
  typeof T == "string" ? j += ":" + T : typeof T == "symbol" && (j = void 0);
3072
- function he(I) {
3072
+ function de(I) {
3073
3073
  var F = (s[I] || "silent").toUpperCase();
3074
3074
  if (!(typeof window === t || !j)) {
3075
3075
  try {
@@ -3092,8 +3092,8 @@ var Qr = { exports: {} };
3092
3092
  }
3093
3093
  if (typeof I === t)
3094
3094
  try {
3095
- var F = window.document.cookie, fe = F.indexOf(encodeURIComponent(j) + "=");
3096
- fe !== -1 && (I = /^([^;]+)/.exec(F.slice(fe))[1]);
3095
+ var F = window.document.cookie, le = F.indexOf(encodeURIComponent(j) + "=");
3096
+ le !== -1 && (I = /^([^;]+)/.exec(F.slice(le))[1]);
3097
3097
  } catch {
3098
3098
  }
3099
3099
  return M.levels[I] === void 0 && (I = void 0), I;
@@ -3123,7 +3123,7 @@ var Qr = { exports: {} };
3123
3123
  return Q;
3124
3124
  }, M.setLevel = function(I, F) {
3125
3125
  if (typeof I == "string" && M.levels[I.toUpperCase()] !== void 0 && (I = M.levels[I.toUpperCase()]), typeof I == "number" && I >= 0 && I <= M.levels.SILENT) {
3126
- if (Q = I, F !== !1 && he(I), c.call(M, I, T), typeof console === t && I < M.levels.SILENT)
3126
+ if (Q = I, F !== !1 && de(I), c.call(M, I, T), typeof console === t && I < M.levels.SILENT)
3127
3127
  return "No console available for logging";
3128
3128
  } else
3129
3129
  throw "log.setLevel() called with invalid level: " + I;
@@ -4004,7 +4004,7 @@ function Ou() {
4004
4004
  d ? u[h].push(yn(e, new p(), n)) : u[h] instanceof A ? yn(e, u[h], n) : (u[h] = yn(e, new p(), n), p.fieldWrapper && !c.oneof && !c.repeated && (u[h] = p.fieldWrapper.unwrapField(u[h])));
4005
4005
  break;
4006
4006
  case "map":
4007
- let [b, T] = Lu(c, e, n);
4007
+ let [b, T] = Nu(c, e, n);
4008
4008
  u[h][b] = T;
4009
4009
  break;
4010
4010
  }
@@ -4015,7 +4015,7 @@ function Ou() {
4015
4015
  function yn(i, e, t) {
4016
4016
  return e.getType().runtime.bin.readMessage(e, i, i.uint32(), t), e;
4017
4017
  }
4018
- function Lu(i, e, t) {
4018
+ function Nu(i, e, t) {
4019
4019
  const n = e.uint32(), s = e.pos + n;
4020
4020
  let r, a;
4021
4021
  for (; e.pos < s; ) {
@@ -4091,7 +4091,7 @@ function ji(i, e) {
4091
4091
  return i.sint32();
4092
4092
  }
4093
4093
  }
4094
- function Nu(i, e, t, n, s) {
4094
+ function xu(i, e, t, n, s) {
4095
4095
  i.tag(t.no, se.LengthDelimited), i.fork();
4096
4096
  let r = n;
4097
4097
  switch (t.K) {
@@ -4129,7 +4129,7 @@ function Vi(i, e, t, n, s) {
4129
4129
  let [r, a, o] = oa(e, n);
4130
4130
  (!o || s) && i.tag(t, r)[a](n);
4131
4131
  }
4132
- function xu(i, e, t, n) {
4132
+ function Lu(i, e, t, n) {
4133
4133
  if (!n.length)
4134
4134
  return;
4135
4135
  i.tag(t, se.LengthDelimited).fork();
@@ -4157,7 +4157,7 @@ function Du() {
4157
4157
  let c = s.kind == "enum" ? k.INT32 : s.T;
4158
4158
  if (a)
4159
4159
  if (s.packed)
4160
- xu(e, c, s.no, r);
4160
+ Lu(e, c, s.no, r);
4161
4161
  else
4162
4162
  for (const u of r)
4163
4163
  Vi(e, c, s.no, u, !0);
@@ -4173,7 +4173,7 @@ function Du() {
4173
4173
  break;
4174
4174
  case "map":
4175
4175
  for (const [u, d] of Object.entries(r))
4176
- Nu(e, t, s, u, d);
4176
+ xu(e, t, s, u, d);
4177
4177
  break;
4178
4178
  }
4179
4179
  }
@@ -5050,11 +5050,11 @@ l.util.setEnumType(re, "livekit.TrackSource", [{
5050
5050
  no: 4,
5051
5051
  name: "SCREEN_SHARE_AUDIO"
5052
5052
  }]);
5053
- var ue;
5053
+ var oe;
5054
5054
  (function(i) {
5055
5055
  i[i.LOW = 0] = "LOW", i[i.MEDIUM = 1] = "MEDIUM", i[i.HIGH = 2] = "HIGH", i[i.OFF = 3] = "OFF";
5056
- })(ue || (ue = {}));
5057
- l.util.setEnumType(ue, "livekit.VideoQuality", [{
5056
+ })(oe || (oe = {}));
5057
+ l.util.setEnumType(oe, "livekit.VideoQuality", [{
5058
5058
  no: 0,
5059
5059
  name: "LOW"
5060
5060
  }, {
@@ -5081,11 +5081,11 @@ l.util.setEnumType(ti, "livekit.ConnectionQuality", [{
5081
5081
  no: 2,
5082
5082
  name: "EXCELLENT"
5083
5083
  }]);
5084
- var Ke;
5084
+ var We;
5085
5085
  (function(i) {
5086
5086
  i[i.UNSET = 0] = "UNSET", i[i.DISABLED = 1] = "DISABLED", i[i.ENABLED = 2] = "ENABLED";
5087
- })(Ke || (Ke = {}));
5088
- l.util.setEnumType(Ke, "livekit.ClientConfigSetting", [{
5087
+ })(We || (We = {}));
5088
+ l.util.setEnumType(We, "livekit.ClientConfigSetting", [{
5089
5089
  no: 0,
5090
5090
  name: "UNSET"
5091
5091
  }, {
@@ -5124,11 +5124,11 @@ l.util.setEnumType(zt, "livekit.DisconnectReason", [{
5124
5124
  no: 7,
5125
5125
  name: "JOIN_FAILURE"
5126
5126
  }]);
5127
- var Fe;
5127
+ var Me;
5128
5128
  (function(i) {
5129
5129
  i[i.RR_UNKNOWN = 0] = "RR_UNKNOWN", i[i.RR_SIGNAL_DISCONNECTED = 1] = "RR_SIGNAL_DISCONNECTED", i[i.RR_PUBLISHER_FAILED = 2] = "RR_PUBLISHER_FAILED", i[i.RR_SUBSCRIBER_FAILED = 3] = "RR_SUBSCRIBER_FAILED", i[i.RR_SWITCH_CANDIDATE = 4] = "RR_SWITCH_CANDIDATE";
5130
- })(Fe || (Fe = {}));
5131
- l.util.setEnumType(Fe, "livekit.ReconnectReason", [{
5130
+ })(Me || (Me = {}));
5131
+ l.util.setEnumType(Me, "livekit.ReconnectReason", [{
5132
5132
  no: 0,
5133
5133
  name: "RR_UNKNOWN"
5134
5134
  }, {
@@ -5217,7 +5217,7 @@ Ei.fields = l.util.newFieldList(() => [{
5217
5217
  no: 7,
5218
5218
  name: "enabled_codecs",
5219
5219
  kind: "message",
5220
- T: $e,
5220
+ T: je,
5221
5221
  repeated: !0
5222
5222
  }, {
5223
5223
  no: 8,
@@ -5249,26 +5249,26 @@ Ei.fields = l.util.newFieldList(() => [{
5249
5249
  kind: "message",
5250
5250
  T: St
5251
5251
  }]);
5252
- class $e extends A {
5252
+ class je extends A {
5253
5253
  constructor(e) {
5254
5254
  super(), this.mime = "", this.fmtpLine = "", l.util.initPartial(e, this);
5255
5255
  }
5256
5256
  static fromBinary(e, t) {
5257
- return new $e().fromBinary(e, t);
5257
+ return new je().fromBinary(e, t);
5258
5258
  }
5259
5259
  static fromJson(e, t) {
5260
- return new $e().fromJson(e, t);
5260
+ return new je().fromJson(e, t);
5261
5261
  }
5262
5262
  static fromJsonString(e, t) {
5263
- return new $e().fromJsonString(e, t);
5263
+ return new je().fromJsonString(e, t);
5264
5264
  }
5265
5265
  static equals(e, t) {
5266
- return l.util.equals($e, e, t);
5266
+ return l.util.equals(je, e, t);
5267
5267
  }
5268
5268
  }
5269
- $e.runtime = l;
5270
- $e.typeName = "livekit.Codec";
5271
- $e.fields = l.util.newFieldList(() => [{
5269
+ je.runtime = l;
5270
+ je.typeName = "livekit.Codec";
5271
+ je.fields = l.util.newFieldList(() => [{
5272
5272
  no: 1,
5273
5273
  name: "mime",
5274
5274
  kind: "scalar",
@@ -5381,26 +5381,26 @@ Ct.fields = l.util.newFieldList(() => [{
5381
5381
  T: 8
5382
5382
  /* ScalarType.BOOL */
5383
5383
  }]);
5384
- class Me extends A {
5384
+ class Le extends A {
5385
5385
  constructor(e) {
5386
5386
  super(), this.sid = "", this.identity = "", this.state = oi.JOINING, this.tracks = [], this.metadata = "", this.joinedAt = V.zero, this.name = "", this.version = 0, this.region = "", this.isPublisher = !1, l.util.initPartial(e, this);
5387
5387
  }
5388
5388
  static fromBinary(e, t) {
5389
- return new Me().fromBinary(e, t);
5389
+ return new Le().fromBinary(e, t);
5390
5390
  }
5391
5391
  static fromJson(e, t) {
5392
- return new Me().fromJson(e, t);
5392
+ return new Le().fromJson(e, t);
5393
5393
  }
5394
5394
  static fromJsonString(e, t) {
5395
- return new Me().fromJsonString(e, t);
5395
+ return new Le().fromJsonString(e, t);
5396
5396
  }
5397
5397
  static equals(e, t) {
5398
- return l.util.equals(Me, e, t);
5398
+ return l.util.equals(Le, e, t);
5399
5399
  }
5400
5400
  }
5401
- Me.runtime = l;
5402
- Me.typeName = "livekit.ParticipantInfo";
5403
- Me.fields = l.util.newFieldList(() => [{
5401
+ Le.runtime = l;
5402
+ Le.typeName = "livekit.ParticipantInfo";
5403
+ Le.fields = l.util.newFieldList(() => [{
5404
5404
  no: 1,
5405
5405
  name: "sid",
5406
5406
  kind: "scalar",
@@ -5681,7 +5681,7 @@ Pe.fields = l.util.newFieldList(() => [{
5681
5681
  }]);
5682
5682
  class Te extends A {
5683
5683
  constructor(e) {
5684
- super(), this.quality = ue.LOW, this.width = 0, this.height = 0, this.bitrate = 0, this.ssrc = 0, l.util.initPartial(e, this);
5684
+ super(), this.quality = oe.LOW, this.width = 0, this.height = 0, this.bitrate = 0, this.ssrc = 0, l.util.initPartial(e, this);
5685
5685
  }
5686
5686
  static fromBinary(e, t) {
5687
5687
  return new Te().fromBinary(e, t);
@@ -5702,7 +5702,7 @@ Te.fields = l.util.newFieldList(() => [{
5702
5702
  no: 1,
5703
5703
  name: "quality",
5704
5704
  kind: "enum",
5705
- T: l.getEnumType(ue)
5705
+ T: l.getEnumType(oe)
5706
5706
  }, {
5707
5707
  no: 2,
5708
5708
  name: "width",
@@ -5730,7 +5730,7 @@ Te.fields = l.util.newFieldList(() => [{
5730
5730
  }]);
5731
5731
  class et extends A {
5732
5732
  constructor(e) {
5733
- super(), this.kind = le.RELIABLE, this.value = {
5733
+ super(), this.kind = ue.RELIABLE, this.value = {
5734
5734
  case: void 0
5735
5735
  }, l.util.initPartial(e, this);
5736
5736
  }
@@ -5753,7 +5753,7 @@ et.fields = l.util.newFieldList(() => [{
5753
5753
  no: 1,
5754
5754
  name: "kind",
5755
5755
  kind: "enum",
5756
- T: l.getEnumType(le)
5756
+ T: l.getEnumType(ue)
5757
5757
  }, {
5758
5758
  no: 2,
5759
5759
  name: "user",
@@ -5767,11 +5767,11 @@ et.fields = l.util.newFieldList(() => [{
5767
5767
  T: Et,
5768
5768
  oneof: "value"
5769
5769
  }]);
5770
- var le;
5770
+ var ue;
5771
5771
  (function(i) {
5772
5772
  i[i.RELIABLE = 0] = "RELIABLE", i[i.LOSSY = 1] = "LOSSY";
5773
- })(le || (le = {}));
5774
- l.util.setEnumType(le, "livekit.DataPacket.Kind", [{
5773
+ })(ue || (ue = {}));
5774
+ l.util.setEnumType(ue, "livekit.DataPacket.Kind", [{
5775
5775
  no: 0,
5776
5776
  name: "RELIABLE"
5777
5777
  }, {
@@ -6097,7 +6097,7 @@ l.util.setEnumType(wi, "livekit.ClientInfo.SDK", [{
6097
6097
  }]);
6098
6098
  class st extends A {
6099
6099
  constructor(e) {
6100
- super(), this.resumeConnection = Ke.UNSET, this.forceRelay = Ke.UNSET, l.util.initPartial(e, this);
6100
+ super(), this.resumeConnection = We.UNSET, this.forceRelay = We.UNSET, l.util.initPartial(e, this);
6101
6101
  }
6102
6102
  static fromBinary(e, t) {
6103
6103
  return new st().fromBinary(e, t);
@@ -6128,7 +6128,7 @@ st.fields = l.util.newFieldList(() => [{
6128
6128
  no: 3,
6129
6129
  name: "resume_connection",
6130
6130
  kind: "enum",
6131
- T: l.getEnumType(Ke)
6131
+ T: l.getEnumType(We)
6132
6132
  }, {
6133
6133
  no: 4,
6134
6134
  name: "disabled_codecs",
@@ -6138,11 +6138,11 @@ st.fields = l.util.newFieldList(() => [{
6138
6138
  no: 5,
6139
6139
  name: "force_relay",
6140
6140
  kind: "enum",
6141
- T: l.getEnumType(Ke)
6141
+ T: l.getEnumType(We)
6142
6142
  }]);
6143
6143
  class rt extends A {
6144
6144
  constructor(e) {
6145
- super(), this.hardwareEncoder = Ke.UNSET, l.util.initPartial(e, this);
6145
+ super(), this.hardwareEncoder = We.UNSET, l.util.initPartial(e, this);
6146
6146
  }
6147
6147
  static fromBinary(e, t) {
6148
6148
  return new rt().fromBinary(e, t);
@@ -6163,7 +6163,7 @@ rt.fields = l.util.newFieldList(() => [{
6163
6163
  no: 1,
6164
6164
  name: "hardware_encoder",
6165
6165
  kind: "enum",
6166
- T: l.getEnumType(Ke)
6166
+ T: l.getEnumType(We)
6167
6167
  }]);
6168
6168
  class _t extends A {
6169
6169
  constructor(e) {
@@ -6188,13 +6188,13 @@ _t.fields = l.util.newFieldList(() => [{
6188
6188
  no: 1,
6189
6189
  name: "codecs",
6190
6190
  kind: "message",
6191
- T: $e,
6191
+ T: je,
6192
6192
  repeated: !0
6193
6193
  }, {
6194
6194
  no: 2,
6195
6195
  name: "publish",
6196
6196
  kind: "message",
6197
- T: $e,
6197
+ T: je,
6198
6198
  repeated: !0
6199
6199
  }]);
6200
6200
  class Xt extends A {
@@ -6576,7 +6576,7 @@ function gi(i) {
6576
6576
  }, a);
6577
6577
  }
6578
6578
  }
6579
- var Ls = { exports: {} }, bi = typeof Reflect == "object" ? Reflect : null, sr = bi && typeof bi.apply == "function" ? bi.apply : function(e, t, n) {
6579
+ var Ns = { exports: {} }, bi = typeof Reflect == "object" ? Reflect : null, sr = bi && typeof bi.apply == "function" ? bi.apply : function(e, t, n) {
6580
6580
  return Function.prototype.apply.call(e, t, n);
6581
6581
  }, bn;
6582
6582
  bi && typeof bi.ownKeys == "function" ? bn = bi.ownKeys : Object.getOwnPropertySymbols ? bn = function(e) {
@@ -6593,8 +6593,8 @@ var fa = Number.isNaN || function(e) {
6593
6593
  function X() {
6594
6594
  X.init.call(this);
6595
6595
  }
6596
- Ls.exports = X;
6597
- Ls.exports.once = nd;
6596
+ Ns.exports = X;
6597
+ Ns.exports.once = nd;
6598
6598
  X.EventEmitter = X;
6599
6599
  X.prototype._events = void 0;
6600
6600
  X.prototype._eventsCount = 0;
@@ -6806,7 +6806,7 @@ function ka(i, e, t, n) {
6806
6806
  else
6807
6807
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof i);
6808
6808
  }
6809
- var gt = Ls.exports;
6809
+ var gt = Ns.exports;
6810
6810
  let Ta = !0, Sa = !0;
6811
6811
  function kn(i, e, t) {
6812
6812
  const n = i.match(e);
@@ -6857,7 +6857,7 @@ function Ca() {
6857
6857
  typeof console < "u" && typeof console.log == "function" && console.log.apply(console, arguments);
6858
6858
  }
6859
6859
  }
6860
- function Ns(i, e) {
6860
+ function xs(i, e) {
6861
6861
  Sa && console.warn(i + " is deprecated, please use " + e + " instead.");
6862
6862
  }
6863
6863
  function od(i) {
@@ -7254,7 +7254,7 @@ function Oa(i) {
7254
7254
  }), s.apply(this, arguments);
7255
7255
  };
7256
7256
  }
7257
- function La(i, e) {
7257
+ function Na(i, e) {
7258
7258
  if (!i.RTCPeerConnection)
7259
7259
  return;
7260
7260
  if (i.RTCPeerConnection.prototype.addTrack && e.version >= 65)
@@ -7366,7 +7366,7 @@ function gs(i, e) {
7366
7366
  i.RTCPeerConnection.prototype[t] = s[t];
7367
7367
  });
7368
7368
  }
7369
- function Na(i, e) {
7369
+ function xa(i, e) {
7370
7370
  di(i, "negotiationneeded", (t) => {
7371
7371
  const n = t.target;
7372
7372
  if (!((e.version < 72 || n.getConfiguration && n.getConfiguration().sdpSemantics === "plan-b") && n.signalingState !== "stable"))
@@ -7375,8 +7375,8 @@ function Na(i, e) {
7375
7375
  }
7376
7376
  var ur = /* @__PURE__ */ Object.freeze({
7377
7377
  __proto__: null,
7378
- fixNegotiationNeeded: Na,
7379
- shimAddTrackRemoveTrack: La,
7378
+ fixNegotiationNeeded: xa,
7379
+ shimAddTrackRemoveTrack: Na,
7380
7380
  shimAddTrackRemoveTrackWithNative: Oa,
7381
7381
  shimGetDisplayMedia: cd,
7382
7382
  shimGetSendersWithDtmf: _a,
@@ -7387,10 +7387,10 @@ var ur = /* @__PURE__ */ Object.freeze({
7387
7387
  shimPeerConnection: gs,
7388
7388
  shimSenderReceiverGetStats: Aa
7389
7389
  });
7390
- function xa(i, e) {
7390
+ function La(i, e) {
7391
7391
  const t = i && i.navigator, n = i && i.MediaStreamTrack;
7392
7392
  if (t.getUserMedia = function(s, r, a) {
7393
- Ns("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia"), t.mediaDevices.getUserMedia(s).then(r, a);
7393
+ xs("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia"), t.mediaDevices.getUserMedia(s).then(r, a);
7394
7394
  }, !(e.version > 55 && "autoGainControl" in t.mediaDevices.getSupportedConstraints())) {
7395
7395
  const s = function(a, o, c) {
7396
7396
  o in a && !(c in a) && (a[c] = a[o], delete a[o]);
@@ -7500,7 +7500,7 @@ function Ua(i) {
7500
7500
  }
7501
7501
  function Fa(i) {
7502
7502
  !i.RTCPeerConnection || "removeStream" in i.RTCPeerConnection.prototype || (i.RTCPeerConnection.prototype.removeStream = function(t) {
7503
- Ns("removeStream", "removeTrack"), this.getSenders().forEach((n) => {
7503
+ xs("removeStream", "removeTrack"), this.getSenders().forEach((n) => {
7504
7504
  n.track && t.getTracks().includes(n.track) && this.removeTrack(n);
7505
7505
  });
7506
7506
  });
@@ -7576,7 +7576,7 @@ var dr = /* @__PURE__ */ Object.freeze({
7576
7576
  shimCreateOffer: Va,
7577
7577
  shimGetDisplayMedia: ud,
7578
7578
  shimGetParameters: ja,
7579
- shimGetUserMedia: xa,
7579
+ shimGetUserMedia: La,
7580
7580
  shimOnTrack: Da,
7581
7581
  shimPeerConnection: vs,
7582
7582
  shimRTCDataChannel: Ba,
@@ -7695,7 +7695,7 @@ function Ka(i) {
7695
7695
  const r = [];
7696
7696
  for (let a = 0; a < n.iceServers.length; a++) {
7697
7697
  let o = n.iceServers[a];
7698
- o.urls === void 0 && o.url ? (Ns("RTCIceServer.url", "RTCIceServer.urls"), o = JSON.parse(JSON.stringify(o)), o.urls = o.url, delete o.url, r.push(o)) : r.push(n.iceServers[a]);
7698
+ o.urls === void 0 && o.url ? (xs("RTCIceServer.url", "RTCIceServer.urls"), o = JSON.parse(JSON.stringify(o)), o.urls = o.url, delete o.url, r.push(o)) : r.push(n.iceServers[a]);
7699
7699
  }
7700
7700
  n.iceServers = r;
7701
7701
  }
@@ -8357,12 +8357,12 @@ function hd() {
8357
8357
  return t("Chrome shim is not included in this adapter release."), s;
8358
8358
  if (n.version === null)
8359
8359
  return t("Chrome shim can not determine version, not shimming."), s;
8360
- t("adapter.js shimming chrome."), s.browserShim = ur, wn(i, n), En(i), Ea(i, n), Pa(i), gs(i, n), Ra(i), La(i, n), _a(i), Ia(i), Aa(i), Na(i, n), Tn(i), ys(i), bs(i), Sn(i, n), Cn(i), ks(i, n);
8360
+ t("adapter.js shimming chrome."), s.browserShim = ur, wn(i, n), En(i), Ea(i, n), Pa(i), gs(i, n), Ra(i), Na(i, n), _a(i), Ia(i), Aa(i), xa(i, n), Tn(i), ys(i), bs(i), Sn(i, n), Cn(i), ks(i, n);
8361
8361
  break;
8362
8362
  case "firefox":
8363
8363
  if (!dr || !vs || !e.shimFirefox)
8364
8364
  return t("Firefox shim is not included in this adapter release."), s;
8365
- t("adapter.js shimming firefox."), s.browserShim = dr, wn(i, n), En(i), xa(i, n), vs(i, n), Da(i), Fa(i), Ma(i), Ua(i), Ba(i), Ja(i), ja(i), Va(i), $a(i), Tn(i), bs(i), Sn(i, n), Cn(i);
8365
+ t("adapter.js shimming firefox."), s.browserShim = dr, wn(i, n), En(i), La(i, n), vs(i, n), Da(i), Fa(i), Ma(i), Ua(i), Ba(i), Ja(i), ja(i), Va(i), $a(i), Tn(i), bs(i), Sn(i, n), Cn(i);
8366
8366
  break;
8367
8367
  case "safari":
8368
8368
  if (!lr || !e.shimSafari)
@@ -8451,25 +8451,25 @@ It.fields = l.util.newFieldList(() => [{
8451
8451
  no: 3,
8452
8452
  name: "trickle",
8453
8453
  kind: "message",
8454
- T: He,
8454
+ T: $e,
8455
8455
  oneof: "message"
8456
8456
  }, {
8457
8457
  no: 4,
8458
8458
  name: "add_track",
8459
8459
  kind: "message",
8460
- T: qe,
8460
+ T: Ve,
8461
8461
  oneof: "message"
8462
8462
  }, {
8463
8463
  no: 5,
8464
8464
  name: "mute",
8465
8465
  kind: "message",
8466
- T: ze,
8466
+ T: qe,
8467
8467
  oneof: "message"
8468
8468
  }, {
8469
8469
  no: 6,
8470
8470
  name: "subscription",
8471
8471
  kind: "message",
8472
- T: Je,
8472
+ T: Fe,
8473
8473
  oneof: "message"
8474
8474
  }, {
8475
8475
  no: 7,
@@ -8481,7 +8481,7 @@ It.fields = l.util.newFieldList(() => [{
8481
8481
  no: 8,
8482
8482
  name: "leave",
8483
8483
  kind: "message",
8484
- T: je,
8484
+ T: Be,
8485
8485
  oneof: "message"
8486
8486
  }, {
8487
8487
  no: 10,
@@ -8569,37 +8569,37 @@ at.fields = l.util.newFieldList(() => [{
8569
8569
  no: 4,
8570
8570
  name: "trickle",
8571
8571
  kind: "message",
8572
- T: He,
8572
+ T: $e,
8573
8573
  oneof: "message"
8574
8574
  }, {
8575
8575
  no: 5,
8576
8576
  name: "update",
8577
8577
  kind: "message",
8578
- T: Nt,
8578
+ T: xt,
8579
8579
  oneof: "message"
8580
8580
  }, {
8581
8581
  no: 6,
8582
8582
  name: "track_published",
8583
8583
  kind: "message",
8584
- T: We,
8584
+ T: He,
8585
8585
  oneof: "message"
8586
8586
  }, {
8587
8587
  no: 8,
8588
8588
  name: "leave",
8589
8589
  kind: "message",
8590
- T: je,
8590
+ T: Be,
8591
8591
  oneof: "message"
8592
8592
  }, {
8593
8593
  no: 9,
8594
8594
  name: "mute",
8595
8595
  kind: "message",
8596
- T: ze,
8596
+ T: qe,
8597
8597
  oneof: "message"
8598
8598
  }, {
8599
8599
  no: 10,
8600
8600
  name: "speakers_changed",
8601
8601
  kind: "message",
8602
- T: xt,
8602
+ T: Lt,
8603
8603
  oneof: "message"
8604
8604
  }, {
8605
8605
  no: 11,
@@ -8641,7 +8641,7 @@ at.fields = l.util.newFieldList(() => [{
8641
8641
  no: 17,
8642
8642
  name: "track_unpublished",
8643
8643
  kind: "message",
8644
- T: Lt,
8644
+ T: Nt,
8645
8645
  oneof: "message"
8646
8646
  }, {
8647
8647
  no: 18,
@@ -8668,26 +8668,26 @@ at.fields = l.util.newFieldList(() => [{
8668
8668
  T: Ht,
8669
8669
  oneof: "message"
8670
8670
  }]);
8671
- class Be extends A {
8671
+ class Ue extends A {
8672
8672
  constructor(e) {
8673
8673
  super(), this.codec = "", this.cid = "", this.enableSimulcastLayers = !1, l.util.initPartial(e, this);
8674
8674
  }
8675
8675
  static fromBinary(e, t) {
8676
- return new Be().fromBinary(e, t);
8676
+ return new Ue().fromBinary(e, t);
8677
8677
  }
8678
8678
  static fromJson(e, t) {
8679
- return new Be().fromJson(e, t);
8679
+ return new Ue().fromJson(e, t);
8680
8680
  }
8681
8681
  static fromJsonString(e, t) {
8682
- return new Be().fromJsonString(e, t);
8682
+ return new Ue().fromJsonString(e, t);
8683
8683
  }
8684
8684
  static equals(e, t) {
8685
- return l.util.equals(Be, e, t);
8685
+ return l.util.equals(Ue, e, t);
8686
8686
  }
8687
8687
  }
8688
- Be.runtime = l;
8689
- Be.typeName = "livekit.SimulcastCodec";
8690
- Be.fields = l.util.newFieldList(() => [{
8688
+ Ue.runtime = l;
8689
+ Ue.typeName = "livekit.SimulcastCodec";
8690
+ Ue.fields = l.util.newFieldList(() => [{
8691
8691
  no: 1,
8692
8692
  name: "codec",
8693
8693
  kind: "scalar",
@@ -8706,26 +8706,26 @@ Be.fields = l.util.newFieldList(() => [{
8706
8706
  T: 8
8707
8707
  /* ScalarType.BOOL */
8708
8708
  }]);
8709
- class qe extends A {
8709
+ class Ve extends A {
8710
8710
  constructor(e) {
8711
8711
  super(), this.cid = "", this.name = "", this.type = ge.AUDIO, this.width = 0, this.height = 0, this.muted = !1, this.disableDtx = !1, this.source = re.UNKNOWN, this.layers = [], this.simulcastCodecs = [], this.sid = "", this.stereo = !1, this.disableRed = !1, this.encryption = ke.NONE, this.stream = "", l.util.initPartial(e, this);
8712
8712
  }
8713
8713
  static fromBinary(e, t) {
8714
- return new qe().fromBinary(e, t);
8714
+ return new Ve().fromBinary(e, t);
8715
8715
  }
8716
8716
  static fromJson(e, t) {
8717
- return new qe().fromJson(e, t);
8717
+ return new Ve().fromJson(e, t);
8718
8718
  }
8719
8719
  static fromJsonString(e, t) {
8720
- return new qe().fromJsonString(e, t);
8720
+ return new Ve().fromJsonString(e, t);
8721
8721
  }
8722
8722
  static equals(e, t) {
8723
- return l.util.equals(qe, e, t);
8723
+ return l.util.equals(Ve, e, t);
8724
8724
  }
8725
8725
  }
8726
- qe.runtime = l;
8727
- qe.typeName = "livekit.AddTrackRequest";
8728
- qe.fields = l.util.newFieldList(() => [{
8726
+ Ve.runtime = l;
8727
+ Ve.typeName = "livekit.AddTrackRequest";
8728
+ Ve.fields = l.util.newFieldList(() => [{
8729
8729
  no: 1,
8730
8730
  name: "cid",
8731
8731
  kind: "scalar",
@@ -8781,7 +8781,7 @@ qe.fields = l.util.newFieldList(() => [{
8781
8781
  no: 10,
8782
8782
  name: "simulcast_codecs",
8783
8783
  kind: "message",
8784
- T: Be,
8784
+ T: Ue,
8785
8785
  repeated: !0
8786
8786
  }, {
8787
8787
  no: 11,
@@ -8813,26 +8813,26 @@ qe.fields = l.util.newFieldList(() => [{
8813
8813
  T: 9
8814
8814
  /* ScalarType.STRING */
8815
8815
  }]);
8816
- class He extends A {
8816
+ class $e extends A {
8817
8817
  constructor(e) {
8818
8818
  super(), this.candidateInit = "", this.target = Re.PUBLISHER, l.util.initPartial(e, this);
8819
8819
  }
8820
8820
  static fromBinary(e, t) {
8821
- return new He().fromBinary(e, t);
8821
+ return new $e().fromBinary(e, t);
8822
8822
  }
8823
8823
  static fromJson(e, t) {
8824
- return new He().fromJson(e, t);
8824
+ return new $e().fromJson(e, t);
8825
8825
  }
8826
8826
  static fromJsonString(e, t) {
8827
- return new He().fromJsonString(e, t);
8827
+ return new $e().fromJsonString(e, t);
8828
8828
  }
8829
8829
  static equals(e, t) {
8830
- return l.util.equals(He, e, t);
8830
+ return l.util.equals($e, e, t);
8831
8831
  }
8832
8832
  }
8833
- He.runtime = l;
8834
- He.typeName = "livekit.TrickleRequest";
8835
- He.fields = l.util.newFieldList(() => [{
8833
+ $e.runtime = l;
8834
+ $e.typeName = "livekit.TrickleRequest";
8835
+ $e.fields = l.util.newFieldList(() => [{
8836
8836
  no: 1,
8837
8837
  name: "candidateInit",
8838
8838
  kind: "scalar",
@@ -8844,26 +8844,26 @@ He.fields = l.util.newFieldList(() => [{
8844
8844
  kind: "enum",
8845
8845
  T: l.getEnumType(Re)
8846
8846
  }]);
8847
- class ze extends A {
8847
+ class qe extends A {
8848
8848
  constructor(e) {
8849
8849
  super(), this.sid = "", this.muted = !1, l.util.initPartial(e, this);
8850
8850
  }
8851
8851
  static fromBinary(e, t) {
8852
- return new ze().fromBinary(e, t);
8852
+ return new qe().fromBinary(e, t);
8853
8853
  }
8854
8854
  static fromJson(e, t) {
8855
- return new ze().fromJson(e, t);
8855
+ return new qe().fromJson(e, t);
8856
8856
  }
8857
8857
  static fromJsonString(e, t) {
8858
- return new ze().fromJsonString(e, t);
8858
+ return new qe().fromJsonString(e, t);
8859
8859
  }
8860
8860
  static equals(e, t) {
8861
- return l.util.equals(ze, e, t);
8861
+ return l.util.equals(qe, e, t);
8862
8862
  }
8863
8863
  }
8864
- ze.runtime = l;
8865
- ze.typeName = "livekit.MuteTrackRequest";
8866
- ze.fields = l.util.newFieldList(() => [{
8864
+ qe.runtime = l;
8865
+ qe.typeName = "livekit.MuteTrackRequest";
8866
+ qe.fields = l.util.newFieldList(() => [{
8867
8867
  no: 1,
8868
8868
  name: "sid",
8869
8869
  kind: "scalar",
@@ -8904,12 +8904,12 @@ At.fields = l.util.newFieldList(() => [{
8904
8904
  no: 2,
8905
8905
  name: "participant",
8906
8906
  kind: "message",
8907
- T: Me
8907
+ T: Le
8908
8908
  }, {
8909
8909
  no: 3,
8910
8910
  name: "other_participants",
8911
8911
  kind: "message",
8912
- T: Me,
8912
+ T: Le,
8913
8913
  repeated: !0
8914
8914
  }, {
8915
8915
  no: 4,
@@ -9001,26 +9001,26 @@ Ot.fields = l.util.newFieldList(() => [{
9001
9001
  kind: "message",
9002
9002
  T: st
9003
9003
  }]);
9004
- class We extends A {
9004
+ class He extends A {
9005
9005
  constructor(e) {
9006
9006
  super(), this.cid = "", l.util.initPartial(e, this);
9007
9007
  }
9008
9008
  static fromBinary(e, t) {
9009
- return new We().fromBinary(e, t);
9009
+ return new He().fromBinary(e, t);
9010
9010
  }
9011
9011
  static fromJson(e, t) {
9012
- return new We().fromJson(e, t);
9012
+ return new He().fromJson(e, t);
9013
9013
  }
9014
9014
  static fromJsonString(e, t) {
9015
- return new We().fromJsonString(e, t);
9015
+ return new He().fromJsonString(e, t);
9016
9016
  }
9017
9017
  static equals(e, t) {
9018
- return l.util.equals(We, e, t);
9018
+ return l.util.equals(He, e, t);
9019
9019
  }
9020
9020
  }
9021
- We.runtime = l;
9022
- We.typeName = "livekit.TrackPublishedResponse";
9023
- We.fields = l.util.newFieldList(() => [{
9021
+ He.runtime = l;
9022
+ He.typeName = "livekit.TrackPublishedResponse";
9023
+ He.fields = l.util.newFieldList(() => [{
9024
9024
  no: 1,
9025
9025
  name: "cid",
9026
9026
  kind: "scalar",
@@ -9032,26 +9032,26 @@ We.fields = l.util.newFieldList(() => [{
9032
9032
  kind: "message",
9033
9033
  T: Pe
9034
9034
  }]);
9035
- class Lt extends A {
9035
+ class Nt extends A {
9036
9036
  constructor(e) {
9037
9037
  super(), this.trackSid = "", l.util.initPartial(e, this);
9038
9038
  }
9039
9039
  static fromBinary(e, t) {
9040
- return new Lt().fromBinary(e, t);
9040
+ return new Nt().fromBinary(e, t);
9041
9041
  }
9042
9042
  static fromJson(e, t) {
9043
- return new Lt().fromJson(e, t);
9043
+ return new Nt().fromJson(e, t);
9044
9044
  }
9045
9045
  static fromJsonString(e, t) {
9046
- return new Lt().fromJsonString(e, t);
9046
+ return new Nt().fromJsonString(e, t);
9047
9047
  }
9048
9048
  static equals(e, t) {
9049
- return l.util.equals(Lt, e, t);
9049
+ return l.util.equals(Nt, e, t);
9050
9050
  }
9051
9051
  }
9052
- Lt.runtime = l;
9053
- Lt.typeName = "livekit.TrackUnpublishedResponse";
9054
- Lt.fields = l.util.newFieldList(() => [{
9052
+ Nt.runtime = l;
9053
+ Nt.typeName = "livekit.TrackUnpublishedResponse";
9054
+ Nt.fields = l.util.newFieldList(() => [{
9055
9055
  no: 1,
9056
9056
  name: "track_sid",
9057
9057
  kind: "scalar",
@@ -9090,52 +9090,52 @@ Se.fields = l.util.newFieldList(() => [{
9090
9090
  T: 9
9091
9091
  /* ScalarType.STRING */
9092
9092
  }]);
9093
- class Nt extends A {
9093
+ class xt extends A {
9094
9094
  constructor(e) {
9095
9095
  super(), this.participants = [], l.util.initPartial(e, this);
9096
9096
  }
9097
9097
  static fromBinary(e, t) {
9098
- return new Nt().fromBinary(e, t);
9098
+ return new xt().fromBinary(e, t);
9099
9099
  }
9100
9100
  static fromJson(e, t) {
9101
- return new Nt().fromJson(e, t);
9101
+ return new xt().fromJson(e, t);
9102
9102
  }
9103
9103
  static fromJsonString(e, t) {
9104
- return new Nt().fromJsonString(e, t);
9104
+ return new xt().fromJsonString(e, t);
9105
9105
  }
9106
9106
  static equals(e, t) {
9107
- return l.util.equals(Nt, e, t);
9107
+ return l.util.equals(xt, e, t);
9108
9108
  }
9109
9109
  }
9110
- Nt.runtime = l;
9111
- Nt.typeName = "livekit.ParticipantUpdate";
9112
- Nt.fields = l.util.newFieldList(() => [{
9110
+ xt.runtime = l;
9111
+ xt.typeName = "livekit.ParticipantUpdate";
9112
+ xt.fields = l.util.newFieldList(() => [{
9113
9113
  no: 1,
9114
9114
  name: "participants",
9115
9115
  kind: "message",
9116
- T: Me,
9116
+ T: Le,
9117
9117
  repeated: !0
9118
9118
  }]);
9119
- class Je extends A {
9119
+ class Fe extends A {
9120
9120
  constructor(e) {
9121
9121
  super(), this.trackSids = [], this.subscribe = !1, this.participantTracks = [], l.util.initPartial(e, this);
9122
9122
  }
9123
9123
  static fromBinary(e, t) {
9124
- return new Je().fromBinary(e, t);
9124
+ return new Fe().fromBinary(e, t);
9125
9125
  }
9126
9126
  static fromJson(e, t) {
9127
- return new Je().fromJson(e, t);
9127
+ return new Fe().fromJson(e, t);
9128
9128
  }
9129
9129
  static fromJsonString(e, t) {
9130
- return new Je().fromJsonString(e, t);
9130
+ return new Fe().fromJsonString(e, t);
9131
9131
  }
9132
9132
  static equals(e, t) {
9133
- return l.util.equals(Je, e, t);
9133
+ return l.util.equals(Fe, e, t);
9134
9134
  }
9135
9135
  }
9136
- Je.runtime = l;
9137
- Je.typeName = "livekit.UpdateSubscription";
9138
- Je.fields = l.util.newFieldList(() => [{
9136
+ Fe.runtime = l;
9137
+ Fe.typeName = "livekit.UpdateSubscription";
9138
+ Fe.fields = l.util.newFieldList(() => [{
9139
9139
  no: 1,
9140
9140
  name: "track_sids",
9141
9141
  kind: "scalar",
@@ -9156,7 +9156,7 @@ Je.fields = l.util.newFieldList(() => [{
9156
9156
  }]);
9157
9157
  class ot extends A {
9158
9158
  constructor(e) {
9159
- super(), this.trackSids = [], this.disabled = !1, this.quality = ue.LOW, this.width = 0, this.height = 0, this.fps = 0, this.priority = 0, l.util.initPartial(e, this);
9159
+ super(), this.trackSids = [], this.disabled = !1, this.quality = oe.LOW, this.width = 0, this.height = 0, this.fps = 0, this.priority = 0, l.util.initPartial(e, this);
9160
9160
  }
9161
9161
  static fromBinary(e, t) {
9162
9162
  return new ot().fromBinary(e, t);
@@ -9189,7 +9189,7 @@ ot.fields = l.util.newFieldList(() => [{
9189
9189
  no: 4,
9190
9190
  name: "quality",
9191
9191
  kind: "enum",
9192
- T: l.getEnumType(ue)
9192
+ T: l.getEnumType(oe)
9193
9193
  }, {
9194
9194
  no: 5,
9195
9195
  name: "width",
@@ -9215,26 +9215,26 @@ ot.fields = l.util.newFieldList(() => [{
9215
9215
  T: 13
9216
9216
  /* ScalarType.UINT32 */
9217
9217
  }]);
9218
- class je extends A {
9218
+ class Be extends A {
9219
9219
  constructor(e) {
9220
9220
  super(), this.canReconnect = !1, this.reason = zt.UNKNOWN_REASON, l.util.initPartial(e, this);
9221
9221
  }
9222
9222
  static fromBinary(e, t) {
9223
- return new je().fromBinary(e, t);
9223
+ return new Be().fromBinary(e, t);
9224
9224
  }
9225
9225
  static fromJson(e, t) {
9226
- return new je().fromJson(e, t);
9226
+ return new Be().fromJson(e, t);
9227
9227
  }
9228
9228
  static fromJsonString(e, t) {
9229
- return new je().fromJsonString(e, t);
9229
+ return new Be().fromJsonString(e, t);
9230
9230
  }
9231
9231
  static equals(e, t) {
9232
- return l.util.equals(je, e, t);
9232
+ return l.util.equals(Be, e, t);
9233
9233
  }
9234
9234
  }
9235
- je.runtime = l;
9236
- je.typeName = "livekit.LeaveRequest";
9237
- je.fields = l.util.newFieldList(() => [{
9235
+ Be.runtime = l;
9236
+ Be.typeName = "livekit.LeaveRequest";
9237
+ Be.fields = l.util.newFieldList(() => [{
9238
9238
  no: 1,
9239
9239
  name: "can_reconnect",
9240
9240
  kind: "scalar",
@@ -9348,26 +9348,26 @@ dt.fields = l.util.newFieldList(() => [{
9348
9348
  T: 9
9349
9349
  /* ScalarType.STRING */
9350
9350
  }]);
9351
- class xt extends A {
9351
+ class Lt extends A {
9352
9352
  constructor(e) {
9353
9353
  super(), this.speakers = [], l.util.initPartial(e, this);
9354
9354
  }
9355
9355
  static fromBinary(e, t) {
9356
- return new xt().fromBinary(e, t);
9356
+ return new Lt().fromBinary(e, t);
9357
9357
  }
9358
9358
  static fromJson(e, t) {
9359
- return new xt().fromJson(e, t);
9359
+ return new Lt().fromJson(e, t);
9360
9360
  }
9361
9361
  static fromJsonString(e, t) {
9362
- return new xt().fromJsonString(e, t);
9362
+ return new Lt().fromJsonString(e, t);
9363
9363
  }
9364
9364
  static equals(e, t) {
9365
- return l.util.equals(xt, e, t);
9365
+ return l.util.equals(Lt, e, t);
9366
9366
  }
9367
9367
  }
9368
- xt.runtime = l;
9369
- xt.typeName = "livekit.SpeakersChanged";
9370
- xt.fields = l.util.newFieldList(() => [{
9368
+ Lt.runtime = l;
9369
+ Lt.typeName = "livekit.SpeakersChanged";
9370
+ Lt.fields = l.util.newFieldList(() => [{
9371
9371
  no: 1,
9372
9372
  name: "speakers",
9373
9373
  kind: "message",
@@ -9525,30 +9525,30 @@ Bt.fields = l.util.newFieldList(() => [{
9525
9525
  T: Ft,
9526
9526
  repeated: !0
9527
9527
  }]);
9528
- class Ge extends A {
9528
+ class ze extends A {
9529
9529
  constructor(e) {
9530
- super(), this.quality = ue.LOW, this.enabled = !1, l.util.initPartial(e, this);
9530
+ super(), this.quality = oe.LOW, this.enabled = !1, l.util.initPartial(e, this);
9531
9531
  }
9532
9532
  static fromBinary(e, t) {
9533
- return new Ge().fromBinary(e, t);
9533
+ return new ze().fromBinary(e, t);
9534
9534
  }
9535
9535
  static fromJson(e, t) {
9536
- return new Ge().fromJson(e, t);
9536
+ return new ze().fromJson(e, t);
9537
9537
  }
9538
9538
  static fromJsonString(e, t) {
9539
- return new Ge().fromJsonString(e, t);
9539
+ return new ze().fromJsonString(e, t);
9540
9540
  }
9541
9541
  static equals(e, t) {
9542
- return l.util.equals(Ge, e, t);
9542
+ return l.util.equals(ze, e, t);
9543
9543
  }
9544
9544
  }
9545
- Ge.runtime = l;
9546
- Ge.typeName = "livekit.SubscribedQuality";
9547
- Ge.fields = l.util.newFieldList(() => [{
9545
+ ze.runtime = l;
9546
+ ze.typeName = "livekit.SubscribedQuality";
9547
+ ze.fields = l.util.newFieldList(() => [{
9548
9548
  no: 1,
9549
9549
  name: "quality",
9550
9550
  kind: "enum",
9551
- T: l.getEnumType(ue)
9551
+ T: l.getEnumType(oe)
9552
9552
  }, {
9553
9553
  no: 2,
9554
9554
  name: "enabled",
@@ -9585,7 +9585,7 @@ Jt.fields = l.util.newFieldList(() => [{
9585
9585
  no: 2,
9586
9586
  name: "qualities",
9587
9587
  kind: "message",
9588
- T: Ge,
9588
+ T: ze,
9589
9589
  repeated: !0
9590
9590
  }]);
9591
9591
  class jt extends A {
@@ -9617,7 +9617,7 @@ jt.fields = l.util.newFieldList(() => [{
9617
9617
  no: 2,
9618
9618
  name: "subscribed_qualities",
9619
9619
  kind: "message",
9620
- T: Ge,
9620
+ T: ze,
9621
9621
  repeated: !0
9622
9622
  }, {
9623
9623
  no: 3,
@@ -9768,12 +9768,12 @@ ft.fields = l.util.newFieldList(() => [{
9768
9768
  no: 2,
9769
9769
  name: "subscription",
9770
9770
  kind: "message",
9771
- T: Je
9771
+ T: Fe
9772
9772
  }, {
9773
9773
  no: 3,
9774
9774
  name: "publish_tracks",
9775
9775
  kind: "message",
9776
- T: We,
9776
+ T: He,
9777
9777
  repeated: !0
9778
9778
  }, {
9779
9779
  no: 4,
@@ -10051,7 +10051,7 @@ class ne extends Pi {
10051
10051
  super(1, e), this.status = n, this.reason = t;
10052
10052
  }
10053
10053
  }
10054
- class xs extends Pi {
10054
+ class Ls extends Pi {
10055
10055
  constructor(e) {
10056
10056
  super(21, e ?? "device is unsupported");
10057
10057
  }
@@ -10159,7 +10159,7 @@ function Gn(i, e) {
10159
10159
  }
10160
10160
  var gd = "1.13.4";
10161
10161
  const vd = gd, yd = 9;
10162
- class ee {
10162
+ class Z {
10163
10163
  constructor(e, t, n, s, r) {
10164
10164
  this.width = e, this.height = t, this.encoding = {
10165
10165
  maxBitrate: n,
@@ -10200,41 +10200,41 @@ var An;
10200
10200
  };
10201
10201
  })(An || (An = {}));
10202
10202
  const Xi = {
10203
- h90: new ee(160, 90, 9e4, 20),
10204
- h180: new ee(320, 180, 16e4, 20),
10205
- h216: new ee(384, 216, 18e4, 20),
10206
- h360: new ee(640, 360, 45e4, 20),
10207
- h540: new ee(960, 540, 8e5, 25),
10208
- h720: new ee(1280, 720, 17e5, 30),
10209
- h1080: new ee(1920, 1080, 3e6, 30),
10210
- h1440: new ee(2560, 1440, 5e6, 30),
10211
- h2160: new ee(3840, 2160, 8e6, 30)
10203
+ h90: new Z(160, 90, 9e4, 20),
10204
+ h180: new Z(320, 180, 16e4, 20),
10205
+ h216: new Z(384, 216, 18e4, 20),
10206
+ h360: new Z(640, 360, 45e4, 20),
10207
+ h540: new Z(960, 540, 8e5, 25),
10208
+ h720: new Z(1280, 720, 17e5, 30),
10209
+ h1080: new Z(1920, 1080, 3e6, 30),
10210
+ h1440: new Z(2560, 1440, 5e6, 30),
10211
+ h2160: new Z(3840, 2160, 8e6, 30)
10212
10212
  }, Ss = {
10213
- h120: new ee(160, 120, 7e4, 20),
10214
- h180: new ee(240, 180, 125e3, 20),
10215
- h240: new ee(320, 240, 14e4, 20),
10216
- h360: new ee(480, 360, 33e4, 20),
10217
- h480: new ee(640, 480, 5e5, 20),
10218
- h540: new ee(720, 540, 6e5, 25),
10219
- h720: new ee(960, 720, 13e5, 30),
10220
- h1080: new ee(1440, 1080, 23e5, 30),
10221
- h1440: new ee(1920, 1440, 38e5, 30)
10213
+ h120: new Z(160, 120, 7e4, 20),
10214
+ h180: new Z(240, 180, 125e3, 20),
10215
+ h240: new Z(320, 240, 14e4, 20),
10216
+ h360: new Z(480, 360, 33e4, 20),
10217
+ h480: new Z(640, 480, 5e5, 20),
10218
+ h540: new Z(720, 540, 6e5, 25),
10219
+ h720: new Z(960, 720, 13e5, 30),
10220
+ h1080: new Z(1440, 1080, 23e5, 30),
10221
+ h1440: new Z(1920, 1440, 38e5, 30)
10222
10222
  }, Ds = {
10223
- h360fps3: new ee(640, 360, 2e5, 3, "medium"),
10224
- h720fps5: new ee(1280, 720, 4e5, 5, "medium"),
10225
- h720fps15: new ee(1280, 720, 15e5, 15, "medium"),
10226
- h720fps30: new ee(1280, 720, 2e6, 30, "medium"),
10227
- h1080fps15: new ee(1920, 1080, 25e5, 15, "medium"),
10228
- h1080fps30: new ee(1920, 1080, 4e6, 30, "medium")
10223
+ h360fps3: new Z(640, 360, 2e5, 3, "medium"),
10224
+ h720fps5: new Z(1280, 720, 4e5, 5, "medium"),
10225
+ h720fps15: new Z(1280, 720, 15e5, 15, "medium"),
10226
+ h720fps30: new Z(1280, 720, 2e6, 30, "medium"),
10227
+ h1080fps15: new Z(1920, 1080, 25e5, 15, "medium"),
10228
+ h1080fps30: new Z(1920, 1080, 4e6, 30, "medium")
10229
10229
  };
10230
10230
  var P;
10231
10231
  (function(i) {
10232
10232
  i.Connected = "connected", i.Reconnecting = "reconnecting", i.Reconnected = "reconnected", i.Disconnected = "disconnected", i.ConnectionStateChanged = "connectionStateChanged", i.StateChanged = "connectionStateChanged", i.MediaDevicesChanged = "mediaDevicesChanged", i.ParticipantConnected = "participantConnected", i.ParticipantDisconnected = "participantDisconnected", i.TrackPublished = "trackPublished", i.TrackSubscribed = "trackSubscribed", i.TrackSubscriptionFailed = "trackSubscriptionFailed", i.TrackUnpublished = "trackUnpublished", i.TrackUnsubscribed = "trackUnsubscribed", i.TrackMuted = "trackMuted", i.TrackUnmuted = "trackUnmuted", i.LocalTrackPublished = "localTrackPublished", i.LocalTrackUnpublished = "localTrackUnpublished", i.LocalAudioSilenceDetected = "localAudioSilenceDetected", i.ActiveSpeakersChanged = "activeSpeakersChanged", i.ParticipantMetadataChanged = "participantMetadataChanged", i.ParticipantNameChanged = "participantNameChanged", i.RoomMetadataChanged = "roomMetadataChanged", i.DataReceived = "dataReceived", i.ConnectionQualityChanged = "connectionQualityChanged", i.TrackStreamStateChanged = "trackStreamStateChanged", i.TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged", i.TrackSubscriptionStatusChanged = "trackSubscriptionStatusChanged", i.AudioPlaybackStatusChanged = "audioPlaybackChanged", i.MediaDevicesError = "mediaDevicesError", i.ParticipantPermissionsChanged = "participantPermissionsChanged", i.SignalConnected = "signalConnected", i.RecordingStatusChanged = "recordingStatusChanged", i.ParticipantEncryptionStatusChanged = "participantEncryptionStatusChanged", i.EncryptionError = "encryptionError", i.DCBufferStatusChanged = "dcBufferStatusChanged", i.ActiveDeviceChanged = "activeDeviceChanged";
10233
10233
  })(P || (P = {}));
10234
- var L;
10234
+ var O;
10235
10235
  (function(i) {
10236
10236
  i.TrackPublished = "trackPublished", i.TrackSubscribed = "trackSubscribed", i.TrackSubscriptionFailed = "trackSubscriptionFailed", i.TrackUnpublished = "trackUnpublished", i.TrackUnsubscribed = "trackUnsubscribed", i.TrackMuted = "trackMuted", i.TrackUnmuted = "trackUnmuted", i.LocalTrackPublished = "localTrackPublished", i.LocalTrackUnpublished = "localTrackUnpublished", i.ParticipantMetadataChanged = "participantMetadataChanged", i.ParticipantNameChanged = "participantNameChanged", i.DataReceived = "dataReceived", i.IsSpeakingChanged = "isSpeakingChanged", i.ConnectionQualityChanged = "connectionQualityChanged", i.TrackStreamStateChanged = "trackStreamStateChanged", i.TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged", i.TrackSubscriptionStatusChanged = "trackSubscriptionStatusChanged", i.MediaDevicesError = "mediaDevicesError", i.ParticipantPermissionsChanged = "participantPermissionsChanged", i.PCTrackAdded = "pcTrackAdded";
10237
- })(L || (L = {}));
10237
+ })(O || (O = {}));
10238
10238
  var N;
10239
10239
  (function(i) {
10240
10240
  i.TransportsCreated = "transportsCreated", i.Connected = "connected", i.Disconnected = "disconnected", i.Resuming = "resuming", i.Resumed = "resumed", i.Restarting = "restarting", i.Restarted = "restarted", i.SignalResumed = "signalResumed", i.SignalRestarted = "signalRestarted", i.Closing = "closing", i.MediaTrackAdded = "mediaTrackAdded", i.ActiveSpeakersUpdate = "activeSpeakersUpdate", i.DataPacketReceived = "dataPacketReceived", i.RTPVideoMapUpdate = "rtpVideoMapUpdate", i.DCBufferStatusChanged = "dcBufferStatusChanged", i.ParticipantUpdate = "participantUpdate", i.RoomUpdate = "roomUpdate", i.SpeakersChanged = "speakersChanged", i.StreamStateChanged = "streamStateChanged", i.ConnectionQualityUpdate = "connectionQualityUpdate", i.SubscriptionError = "subscriptionError", i.SubscriptionPermissionUpdate = "subscriptionPermissionUpdate";
@@ -10243,7 +10243,7 @@ var R;
10243
10243
  (function(i) {
10244
10244
  i.Message = "message", i.Muted = "muted", i.Unmuted = "unmuted", i.Restarted = "restarted", i.Ended = "ended", i.Subscribed = "subscribed", i.Unsubscribed = "unsubscribed", i.UpdateSettings = "updateSettings", i.UpdateSubscription = "updateSubscription", i.AudioPlaybackStarted = "audioPlaybackStarted", i.AudioPlaybackFailed = "audioPlaybackFailed", i.AudioSilenceDetected = "audioSilenceDetected", i.VisibilityChanged = "visibilityChanged", i.VideoDimensionsChanged = "videoDimensionsChanged", i.ElementAttached = "elementAttached", i.ElementDetached = "elementDetached", i.UpstreamPaused = "upstreamPaused", i.UpstreamResumed = "upstreamResumed", i.SubscriptionPermissionChanged = "subscriptionPermissionChanged", i.SubscriptionStatusChanged = "subscriptionStatusChanged", i.SubscriptionFailed = "subscriptionFailed";
10245
10245
  })(R || (R = {}));
10246
- const Td = 5e3, Li = [];
10246
+ const Td = 5e3, Ni = [];
10247
10247
  class C extends gt.EventEmitter {
10248
10248
  constructor(e, t) {
10249
10249
  super(), this.attachedElements = [], this.isMuted = !1, this.streamState = C.StreamState.Active, this.isInBackground = !1, this._currentBitrate = 0, this.appVisibilityChangedListener = () => {
@@ -10267,9 +10267,9 @@ class C extends gt.EventEmitter {
10267
10267
  }
10268
10268
  attach(e) {
10269
10269
  let t = "audio";
10270
- this.kind === C.Kind.Video && (t = "video"), this.attachedElements.length === 0 && C.Kind.Video && this.addAppVisibilityListener(), e || (t === "audio" && (Li.forEach((s) => {
10270
+ this.kind === C.Kind.Video && (t = "video"), this.attachedElements.length === 0 && C.Kind.Video && this.addAppVisibilityListener(), e || (t === "audio" && (Ni.forEach((s) => {
10271
10271
  s.parentElement === null && !e && (e = s);
10272
- }), e && Li.splice(Li.indexOf(e), 1)), e || (e = document.createElement(t))), this.attachedElements.includes(e) || this.attachedElements.push(e), vi(this.mediaStreamTrack, e);
10272
+ }), e && Ni.splice(Ni.indexOf(e), 1)), e || (e = document.createElement(t))), this.attachedElements.includes(e) || this.attachedElements.push(e), vi(this.mediaStreamTrack, e);
10273
10273
  const n = e.srcObject.getTracks();
10274
10274
  return n.some((s) => s.kind === "audio") && e.play().then(() => {
10275
10275
  this.emit(R.AudioPlaybackStarted);
@@ -10309,9 +10309,9 @@ class C extends gt.EventEmitter {
10309
10309
  recycleElement(e) {
10310
10310
  if (e instanceof HTMLAudioElement) {
10311
10311
  let t = !0;
10312
- e.pause(), Li.forEach((n) => {
10312
+ e.pause(), Ni.forEach((n) => {
10313
10313
  n.parentElement || (t = !1);
10314
- }), t && Li.push(e);
10314
+ }), t && Ni.push(e);
10315
10315
  }
10316
10316
  }
10317
10317
  handleAppVisibilityChanged() {
@@ -10628,22 +10628,22 @@ function oo(i, e) {
10628
10628
  }
10629
10629
  return i === "" && e !== "" ? -1 : e === "" ? 1 : t.length == n.length ? 0 : t.length < n.length ? -1 : 1;
10630
10630
  }
10631
- function Ld(i) {
10631
+ function Nd(i) {
10632
10632
  for (const e of i)
10633
10633
  e.target.handleResize(e);
10634
10634
  }
10635
- function Nd(i) {
10635
+ function xd(i) {
10636
10636
  for (const e of i)
10637
10637
  e.target.handleVisibilityChanged(e);
10638
10638
  }
10639
10639
  let Kn = null;
10640
- const vr = () => (Kn || (Kn = new ResizeObserver(Ld)), Kn);
10640
+ const vr = () => (Kn || (Kn = new ResizeObserver(Nd)), Kn);
10641
10641
  let Yn = null;
10642
- const yr = () => (Yn || (Yn = new IntersectionObserver(Nd, {
10642
+ const yr = () => (Yn || (Yn = new IntersectionObserver(xd, {
10643
10643
  root: null,
10644
10644
  rootMargin: "0px"
10645
10645
  })), Yn);
10646
- function xd() {
10646
+ function Ld() {
10647
10647
  var i;
10648
10648
  const e = new Rt({
10649
10649
  sdk: wi.JS,
@@ -10663,17 +10663,17 @@ function br() {
10663
10663
  throw Error("Could not get empty media stream video track");
10664
10664
  return o.enabled = t, o;
10665
10665
  }
10666
- let Ni;
10666
+ let xi;
10667
10667
  function Xn() {
10668
- if (!Ni) {
10668
+ if (!xi) {
10669
10669
  const i = new AudioContext(), e = i.createOscillator(), t = i.createGain();
10670
10670
  t.gain.setValueAtTime(0, 0);
10671
10671
  const n = i.createMediaStreamDestination();
10672
- if (e.connect(t), t.connect(n), e.start(), [Ni] = n.stream.getAudioTracks(), !Ni)
10672
+ if (e.connect(t), t.connect(n), e.start(), [xi] = n.stream.getAudioTracks(), !xi)
10673
10673
  throw Error("Could not get empty media stream audio track");
10674
- Ni.enabled = !1;
10674
+ xi.enabled = !1;
10675
10675
  }
10676
- return Ni.clone();
10676
+ return xi.clone();
10677
10677
  }
10678
10678
  class co {
10679
10679
  constructor(e, t) {
@@ -10790,7 +10790,7 @@ class Ms {
10790
10790
  }
10791
10791
  connect(e, t, n, s) {
10792
10792
  this.connectOptions = n, e = Md(e), e = e.replace(/\/$/, ""), e += "/rtc";
10793
- const r = xd(), a = Jd(t, r, n);
10793
+ const r = Ld(), a = Jd(t, r, n);
10794
10794
  return new Promise((o, c) => g(this, void 0, void 0, function* () {
10795
10795
  const u = () => g(this, void 0, void 0, function* () {
10796
10796
  this.close(), clearTimeout(d), c(new ne("room connection has been cancelled (signal)"));
@@ -10882,7 +10882,7 @@ class Ms {
10882
10882
  sendIceCandidate(e, t) {
10883
10883
  return m.trace("sending ice candidate", e), this.sendRequest({
10884
10884
  case: "trickle",
10885
- value: new He({
10885
+ value: new $e({
10886
10886
  candidateInit: JSON.stringify(e),
10887
10887
  target: t
10888
10888
  })
@@ -10891,7 +10891,7 @@ class Ms {
10891
10891
  sendMuteTrack(e, t) {
10892
10892
  return this.sendRequest({
10893
10893
  case: "mute",
10894
- value: new ze({
10894
+ value: new qe({
10895
10895
  sid: e,
10896
10896
  muted: t
10897
10897
  })
@@ -10969,7 +10969,7 @@ class Ms {
10969
10969
  sendLeave() {
10970
10970
  return this.sendRequest({
10971
10971
  case: "leave",
10972
- value: new je({
10972
+ value: new Be({
10973
10973
  canReconnect: !1,
10974
10974
  reason: zt.CLIENT_INITIATED
10975
10975
  })
@@ -11424,7 +11424,7 @@ class Zi extends C {
11424
11424
  this._isUpstreamPaused = !0, this.emit(R.UpstreamPaused, this);
11425
11425
  const t = Ri();
11426
11426
  if ((t == null ? void 0 : t.name) === "Safari" && oo(t.version, "12.0") < 0)
11427
- throw new xs("pauseUpstream is not supported on Safari < 12.");
11427
+ throw new Ls("pauseUpstream is not supported on Safari < 12.");
11428
11428
  yield this.sender.replaceTrack(null);
11429
11429
  } finally {
11430
11430
  e();
@@ -11557,7 +11557,7 @@ class Gd extends gt.EventEmitter {
11557
11557
  */
11558
11558
  setup(e) {
11559
11559
  if (!qd())
11560
- throw new xs("tried to setup end-to-end encryption on an unsupported browser");
11560
+ throw new Ls("tried to setup end-to-end encryption on an unsupported browser");
11561
11561
  if (m.info("setting up e2ee"), e !== this.room) {
11562
11562
  this.room = e, this.setupEventListeners(e, this.keyProvider);
11563
11563
  const t = {
@@ -11613,7 +11613,7 @@ class Gd extends gt.EventEmitter {
11613
11613
  this.setParticipantCryptorEnabled(this.room.localParticipant.isE2EEEnabled, this.room.localParticipant.identity), t.getKeys().forEach((n) => {
11614
11614
  this.postKey(n);
11615
11615
  });
11616
- }), e.localParticipant.on(L.LocalTrackPublished, (n) => g(this, void 0, void 0, function* () {
11616
+ }), e.localParticipant.on(O.LocalTrackPublished, (n) => g(this, void 0, void 0, function* () {
11617
11617
  this.setupE2EESender(n.track, n.track.sender);
11618
11618
  })), t.on(ii.SetKey, (n) => this.postKey(n)).on(ii.RatchetRequest, (n, s) => this.postRatchetRequest(n, s));
11619
11619
  }
@@ -12326,7 +12326,7 @@ var Qn = ho, Kd = /%[sdv%]/g, Yd = function(i) {
12326
12326
  return "";
12327
12327
  }
12328
12328
  });
12329
- }, xi = function(i, e, t) {
12329
+ }, Li = function(i, e, t) {
12330
12330
  var n = e.format instanceof Function ? e.format(e.push ? t : t[e.name]) : e.format, s = [i + "=" + n];
12331
12331
  if (e.names)
12332
12332
  for (var r = 0; r < e.names.length; r += 1) {
@@ -12343,15 +12343,15 @@ var Qn = ho, Kd = /%[sdv%]/g, Yd = function(i) {
12343
12343
  var t = e.outerOrder || Xd, n = e.innerOrder || Qd, s = [];
12344
12344
  return t.forEach(function(r) {
12345
12345
  Qn[r].forEach(function(a) {
12346
- a.name in i && i[a.name] != null ? s.push(xi(r, a, i)) : a.push in i && i[a.push] != null && i[a.push].forEach(function(o) {
12347
- s.push(xi(r, a, o));
12346
+ a.name in i && i[a.name] != null ? s.push(Li(r, a, i)) : a.push in i && i[a.push] != null && i[a.push].forEach(function(o) {
12347
+ s.push(Li(r, a, o));
12348
12348
  });
12349
12349
  });
12350
12350
  }), i.media.forEach(function(r) {
12351
- s.push(xi("m", Qn.m[0], r)), n.forEach(function(a) {
12351
+ s.push(Li("m", Qn.m[0], r)), n.forEach(function(a) {
12352
12352
  Qn[a].forEach(function(o) {
12353
- o.name in r && r[o.name] != null ? s.push(xi(a, o, r)) : o.push in r && r[o.push] != null && r[o.push].forEach(function(c) {
12354
- s.push(xi(a, o, c));
12353
+ o.name in r && r[o.name] != null ? s.push(Li(a, o, r)) : o.push in r && r[o.push] != null && r[o.push].forEach(function(c) {
12354
+ s.push(Li(a, o, c));
12355
12355
  });
12356
12356
  });
12357
12357
  });
@@ -12583,16 +12583,16 @@ const sl = {
12583
12583
  peerConnectionTimeout: 15e3,
12584
12584
  websocketTimeout: 15e3
12585
12585
  }, Ir = "_lossy", Ar = "_reliable", al = 2 * 1e3, Or = "leave-reconnect";
12586
- var xe;
12586
+ var Ne;
12587
12587
  (function(i) {
12588
12588
  i[i.New = 0] = "New", i[i.Connected = 1] = "Connected", i[i.Disconnected = 2] = "Disconnected", i[i.Reconnecting = 3] = "Reconnecting", i[i.Closed = 4] = "Closed";
12589
- })(xe || (xe = {}));
12589
+ })(Ne || (Ne = {}));
12590
12590
  class ol extends gt.EventEmitter {
12591
12591
  get isClosed() {
12592
12592
  return this._isClosed;
12593
12593
  }
12594
12594
  constructor(e) {
12595
- super(), this.options = e, this.rtcConfig = {}, this.peerConnectionTimeout = mo.peerConnectionTimeout, this.fullReconnectOnNext = !1, this.subscriberPrimary = !1, this.pcState = xe.New, this._isClosed = !0, this.pendingTrackResolvers = {}, this.hasPublished = !1, this.reconnectAttempts = 0, this.reconnectStart = 0, this.attemptingReconnect = !1, this.joinAttempts = 0, this.maxJoinAttempts = 1, this.shouldFailNext = !1, this.handleDataChannel = (t) => {
12595
+ super(), this.options = e, this.rtcConfig = {}, this.peerConnectionTimeout = mo.peerConnectionTimeout, this.fullReconnectOnNext = !1, this.subscriberPrimary = !1, this.pcState = Ne.New, this._isClosed = !0, this.pendingTrackResolvers = {}, this.hasPublished = !1, this.reconnectAttempts = 0, this.reconnectStart = 0, this.attemptingReconnect = !1, this.joinAttempts = 0, this.maxJoinAttempts = 1, this.shouldFailNext = !1, this.handleDataChannel = (t) => {
12596
12596
  let {
12597
12597
  channel: n
12598
12598
  } = t;
@@ -12635,7 +12635,7 @@ class ol extends gt.EventEmitter {
12635
12635
  } else
12636
12636
  m.error("Unknown DataChannel error on ".concat(s), t);
12637
12637
  }, this.handleBufferedAmountLow = (t) => {
12638
- const s = t.currentTarget.maxRetransmits === 0 ? le.LOSSY : le.RELIABLE;
12638
+ const s = t.currentTarget.maxRetransmits === 0 ? ue.LOSSY : ue.RELIABLE;
12639
12639
  this.updateAndEmitDCBufferStatus(s);
12640
12640
  }, this.handleDisconnect = (t, n) => {
12641
12641
  if (this._isClosed)
@@ -12654,7 +12654,7 @@ class ol extends gt.EventEmitter {
12654
12654
  }
12655
12655
  t === Or && (a = 0), m.debug("reconnecting in ".concat(a, "ms")), this.clearReconnectTimeout(), this.token && this.regionUrlProvider && this.regionUrlProvider.updateToken(this.token), this.reconnectTimeout = ve.setTimeout(() => this.attemptReconnect(n), a);
12656
12656
  }, this.waitForRestarted = () => new Promise((t, n) => {
12657
- this.pcState === xe.Connected && t();
12657
+ this.pcState === Ne.Connected && t();
12658
12658
  const s = () => {
12659
12659
  this.off(N.Disconnected, r), t();
12660
12660
  }, r = () => {
@@ -12669,8 +12669,8 @@ class ol extends gt.EventEmitter {
12669
12669
  if (n)
12670
12670
  return n.bufferedAmount <= n.bufferedAmountLowThreshold;
12671
12671
  }, this.handleBrowserOnLine = () => {
12672
- this.client.isReconnecting && (this.clearReconnectTimeout(), this.attemptReconnect(Fe.RR_SIGNAL_DISCONNECTED));
12673
- }, this.client = new Ms(), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new Wt(), this.dataProcessLock = new Wt(), this.dcBufferStatus = /* @__PURE__ */ new Map([[le.LOSSY, !0], [le.RELIABLE, !0]]), this.client.onParticipantUpdate = (t) => this.emit(N.ParticipantUpdate, t), this.client.onConnectionQuality = (t) => this.emit(N.ConnectionQualityUpdate, t), this.client.onRoomUpdate = (t) => this.emit(N.RoomUpdate, t), this.client.onSubscriptionError = (t) => this.emit(N.SubscriptionError, t), this.client.onSubscriptionPermissionUpdate = (t) => this.emit(N.SubscriptionPermissionUpdate, t), this.client.onSpeakersChanged = (t) => this.emit(N.SpeakersChanged, t), this.client.onStreamStateUpdate = (t) => this.emit(N.StreamStateChanged, t);
12672
+ this.client.isReconnecting && (this.clearReconnectTimeout(), this.attemptReconnect(Me.RR_SIGNAL_DISCONNECTED));
12673
+ }, this.client = new Ms(), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new Wt(), this.dataProcessLock = new Wt(), this.dcBufferStatus = /* @__PURE__ */ new Map([[ue.LOSSY, !0], [ue.RELIABLE, !0]]), this.client.onParticipantUpdate = (t) => this.emit(N.ParticipantUpdate, t), this.client.onConnectionQuality = (t) => this.emit(N.ConnectionQualityUpdate, t), this.client.onRoomUpdate = (t) => this.emit(N.RoomUpdate, t), this.client.onSubscriptionError = (t) => this.emit(N.SubscriptionError, t), this.client.onSubscriptionPermissionUpdate = (t) => this.emit(N.SubscriptionPermissionUpdate, t), this.client.onSpeakersChanged = (t) => this.emit(N.SpeakersChanged, t), this.client.onStreamStateUpdate = (t) => this.emit(N.StreamStateChanged, t);
12674
12674
  }
12675
12675
  join(e, t, n, s) {
12676
12676
  return g(this, void 0, void 0, function* () {
@@ -12803,12 +12803,12 @@ class ol extends gt.EventEmitter {
12803
12803
  let a = this.publisher.pc, o = this.subscriber.pc, c = e.subscriberPrimary;
12804
12804
  c && (a = this.subscriber.pc, o = this.publisher.pc, this.subscriber.pc.ondatachannel = this.handleDataChannel), this.primaryPC = a, a.onconnectionstatechange = () => g(this, void 0, void 0, function* () {
12805
12805
  if (m.debug("primary PC state changed ".concat(a.connectionState)), a.connectionState === "connected") {
12806
- const u = this.pcState === xe.New;
12807
- this.pcState = xe.Connected, u && this.emit(N.Connected, e);
12806
+ const u = this.pcState === Ne.New;
12807
+ this.pcState = Ne.Connected, u && this.emit(N.Connected, e);
12808
12808
  } else
12809
- a.connectionState === "failed" && this.pcState === xe.Connected && (this.pcState = xe.Disconnected, this.handleDisconnect("primary peerconnection", c ? Fe.RR_SUBSCRIBER_FAILED : Fe.RR_PUBLISHER_FAILED));
12809
+ a.connectionState === "failed" && this.pcState === Ne.Connected && (this.pcState = Ne.Disconnected, this.handleDisconnect("primary peerconnection", c ? Me.RR_SUBSCRIBER_FAILED : Me.RR_PUBLISHER_FAILED));
12810
12810
  }), o.onconnectionstatechange = () => g(this, void 0, void 0, function* () {
12811
- m.debug("secondary PC state changed ".concat(o.connectionState)), o.connectionState === "failed" && this.handleDisconnect("secondary peerconnection", c ? Fe.RR_PUBLISHER_FAILED : Fe.RR_SUBSCRIBER_FAILED);
12811
+ m.debug("secondary PC state changed ".concat(o.connectionState)), o.connectionState === "failed" && this.handleDisconnect("secondary peerconnection", c ? Me.RR_PUBLISHER_FAILED : Me.RR_SUBSCRIBER_FAILED);
12812
12812
  }), this.subscriber.pc.ontrack = (u) => {
12813
12813
  this.emit(N.MediaTrackAdded, u.track, u.streams[0], u.receiver);
12814
12814
  }, this.createDataChannels();
@@ -12845,7 +12845,7 @@ class ol extends gt.EventEmitter {
12845
12845
  }, this.client.onTokenRefresh = (e) => {
12846
12846
  this.token = e;
12847
12847
  }, this.client.onClose = () => {
12848
- this.handleDisconnect("signal", Fe.RR_SIGNAL_DISCONNECTED);
12848
+ this.handleDisconnect("signal", Me.RR_SIGNAL_DISCONNECTED);
12849
12849
  }, this.client.onLeave = (e) => {
12850
12850
  e != null && e.canReconnect ? (this.fullReconnectOnNext = !0, this.primaryPC = void 0, this.handleDisconnect(Or)) : (this.emit(N.Disconnected, e == null ? void 0 : e.reason), this.close()), m.trace("leave request", {
12851
12851
  leave: e
@@ -12863,7 +12863,7 @@ class ol extends gt.EventEmitter {
12863
12863
  s.username && (r.username = s.username), s.credential && (r.credential = s.credential), n.push(r);
12864
12864
  }), t.iceServers = n;
12865
12865
  }
12866
- return e.clientConfiguration && e.clientConfiguration.forceRelay === Ke.ENABLED && (t.iceTransportPolicy = "relay"), t.sdpSemantics = "unified-plan", t.continualGatheringPolicy = "gather_continually", t;
12866
+ return e.clientConfiguration && e.clientConfiguration.forceRelay === We.ENABLED && (t.iceTransportPolicy = "relay"), t.sdpSemantics = "unified-plan", t.continualGatheringPolicy = "gather_continually", t;
12867
12867
  }
12868
12868
  createDataChannels() {
12869
12869
  this.publisher && (this.lossyDC && (this.lossyDC.onmessage = null, this.lossyDC.onerror = null), this.reliableDC && (this.reliableDC.onmessage = null, this.reliableDC.onerror = null), this.lossyDC = this.publisher.pc.createDataChannel(Ir, {
@@ -12956,7 +12956,7 @@ class ol extends gt.EventEmitter {
12956
12956
  var t, n, s;
12957
12957
  return g(this, void 0, void 0, function* () {
12958
12958
  if (!this._isClosed && !this.attemptingReconnect) {
12959
- (((t = this.clientConfiguration) === null || t === void 0 ? void 0 : t.resumeConnection) === Ke.DISABLED || // signaling state could change to closed due to hardware sleep
12959
+ (((t = this.clientConfiguration) === null || t === void 0 ? void 0 : t.resumeConnection) === We.DISABLED || // signaling state could change to closed due to hardware sleep
12960
12960
  // those connections cannot be resumed
12961
12961
  ((s = (n = this.primaryPC) === null || n === void 0 ? void 0 : n.signalingState) !== null && s !== void 0 ? s : "closed") === "closed") && (this.fullReconnectOnNext = !0);
12962
12962
  try {
@@ -12966,7 +12966,7 @@ class ol extends gt.EventEmitter {
12966
12966
  let a = !0;
12967
12967
  r instanceof pe ? (m.debug("received unrecoverable error", {
12968
12968
  error: r
12969
- }), a = !1) : r instanceof fn || (this.fullReconnectOnNext = !0), a ? this.handleDisconnect("reconnect", Fe.RR_UNKNOWN) : (m.info("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(Date.now() - this.reconnectStart, "ms. giving up")), this.emit(N.Disconnected), yield this.close());
12969
+ }), a = !1) : r instanceof fn || (this.fullReconnectOnNext = !0), a ? this.handleDisconnect("reconnect", Me.RR_UNKNOWN) : (m.info("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(Date.now() - this.reconnectStart, "ms. giving up")), this.emit(N.Disconnected), yield this.close());
12970
12970
  } finally {
12971
12971
  this.attemptingReconnect = !1;
12972
12972
  }
@@ -13039,8 +13039,8 @@ class ol extends gt.EventEmitter {
13039
13039
  }
13040
13040
  waitForPCInitialConnection(e, t) {
13041
13041
  return g(this, void 0, void 0, function* () {
13042
- if (this.pcState !== xe.Connected) {
13043
- if (this.pcState !== xe.New)
13042
+ if (this.pcState !== Ne.Connected) {
13043
+ if (this.pcState !== Ne.New)
13044
13044
  throw new pe("Expected peer connection to be new on initial connection");
13045
13045
  return new Promise((n, s) => {
13046
13046
  const r = () => {
@@ -13066,12 +13066,12 @@ class ol extends gt.EventEmitter {
13066
13066
  return g(this, void 0, void 0, function* () {
13067
13067
  const n = Date.now();
13068
13068
  let s = n;
13069
- for (this.pcState = xe.Reconnecting, m.debug("waiting for peer connection to reconnect"); s - n < this.peerConnectionTimeout && this.primaryPC !== void 0; ) {
13069
+ for (this.pcState = Ne.Reconnecting, m.debug("waiting for peer connection to reconnect"); s - n < this.peerConnectionTimeout && this.primaryPC !== void 0; ) {
13070
13070
  if (
13071
13071
  // on Safari, we don't get a connectionstatechanged event during ICE restart
13072
13072
  // this means we'd have to check its status manually and update address
13073
13073
  // manually
13074
- s - n > al && ((e = this.primaryPC) === null || e === void 0 ? void 0 : e.connectionState) === "connected" && (!this.hasPublished || ((t = this.publisher) === null || t === void 0 ? void 0 : t.pc.connectionState) === "connected") && (this.pcState = xe.Connected), this.pcState === xe.Connected
13074
+ s - n > al && ((e = this.primaryPC) === null || e === void 0 ? void 0 : e.connectionState) === "connected" && (!this.hasPublished || ((t = this.publisher) === null || t === void 0 ? void 0 : t.pc.connectionState) === "connected") && (this.pcState = Ne.Connected), this.pcState === Ne.Connected
13075
13075
  )
13076
13076
  return;
13077
13077
  yield ri(100), s = Date.now();
@@ -13133,7 +13133,7 @@ class ol extends gt.EventEmitter {
13133
13133
  };
13134
13134
  this.isClosed && t("cannot negotiate on closed engine"), this.on(N.Closing, n);
13135
13135
  const s = setTimeout(() => {
13136
- t("negotiation timed out"), this.handleDisconnect("negotiation", Fe.RR_SIGNAL_DISCONNECTED);
13136
+ t("negotiation timed out"), this.handleDisconnect("negotiation", Me.RR_SIGNAL_DISCONNECTED);
13137
13137
  }, this.peerConnectionTimeout), r = () => {
13138
13138
  clearTimeout(s), this.off(N.Closing, n);
13139
13139
  };
@@ -13149,20 +13149,20 @@ class ol extends gt.EventEmitter {
13149
13149
  Dd(u) && o.set(c.payload, u);
13150
13150
  }), this.emit(N.RTPVideoMapUpdate, o);
13151
13151
  }), this.publisher.negotiate((a) => {
13152
- r(), t(a), a instanceof Ts && (this.fullReconnectOnNext = !0), this.handleDisconnect("negotiation", Fe.RR_UNKNOWN);
13152
+ r(), t(a), a instanceof Ts && (this.fullReconnectOnNext = !0), this.handleDisconnect("negotiation", Me.RR_UNKNOWN);
13153
13153
  });
13154
13154
  });
13155
13155
  }
13156
13156
  dataChannelForKind(e, t) {
13157
13157
  if (t) {
13158
- if (e === le.LOSSY)
13158
+ if (e === ue.LOSSY)
13159
13159
  return this.lossyDCSub;
13160
- if (e === le.RELIABLE)
13160
+ if (e === ue.RELIABLE)
13161
13161
  return this.reliableDCSub;
13162
13162
  } else {
13163
- if (e === le.LOSSY)
13163
+ if (e === ue.LOSSY)
13164
13164
  return this.lossyDC;
13165
- if (e === le.RELIABLE)
13165
+ if (e === ue.RELIABLE)
13166
13166
  return this.reliableDC;
13167
13167
  }
13168
13168
  }
@@ -13209,7 +13209,7 @@ function cl(i) {
13209
13209
  }
13210
13210
  class fn extends Error {
13211
13211
  }
13212
- class Lr {
13212
+ class Nr {
13213
13213
  constructor(e, t) {
13214
13214
  this.lastUpdateAt = 0, this.settingsCacheTime = 3e3, this.attemptedRegions = [], this.serverUrl = new URL(e), this.token = t;
13215
13215
  }
@@ -13416,7 +13416,7 @@ function go(i, e) {
13416
13416
  case "audio":
13417
13417
  return new we(i, e, !1);
13418
13418
  case "video":
13419
- return new De(i, e, !1);
13419
+ return new xe(i, e, !1);
13420
13420
  default:
13421
13421
  throw new Ze("unsupported track type: ".concat(i.kind));
13422
13422
  }
@@ -13426,7 +13426,7 @@ const dl = Object.values(Xi), ll = Object.values(Ss), hl = Object.values(Ds), fl
13426
13426
  fps: 3
13427
13427
  }].map((t) => {
13428
13428
  var n;
13429
- return new ee(Math.floor(i.width / t.scaleResolutionDownBy), Math.floor(i.height / t.scaleResolutionDownBy), Math.max(15e4, Math.floor(i.encoding.maxBitrate / (Math.pow(t.scaleResolutionDownBy, 2) * (((n = i.encoding.maxFramerate) !== null && n !== void 0 ? n : 30) / t.fps)))), t.fps, i.encoding.priority);
13429
+ return new Z(Math.floor(i.width / t.scaleResolutionDownBy), Math.floor(i.height / t.scaleResolutionDownBy), Math.max(15e4, Math.floor(i.encoding.maxBitrate / (Math.pow(t.scaleResolutionDownBy, 2) * (((n = i.encoding.maxFramerate) !== null && n !== void 0 ? n : 30) / t.fps)))), t.fps, i.encoding.priority);
13430
13430
  }), Rs = ["q", "h", "f"];
13431
13431
  function vo(i, e, t, n) {
13432
13432
  var s, r;
@@ -13436,7 +13436,7 @@ function vo(i, e, t, n) {
13436
13436
  if (!a && !o && !c || !e || !t)
13437
13437
  return [{}];
13438
13438
  a || (a = gl(i, e, t, u), m.debug("using video encoding", a));
13439
- const d = new ee(e, t, a.maxBitrate, a.maxFramerate, a.priority);
13439
+ const d = new Z(e, t, a.maxBitrate, a.maxFramerate, a.priority);
13440
13440
  if (c && $i(u)) {
13441
13441
  m.debug("using svc with scalabilityMode ".concat(c));
13442
13442
  const p = new yo(c), b = [];
@@ -13454,7 +13454,7 @@ function vo(i, e, t, n) {
13454
13454
  if (!o)
13455
13455
  return [a];
13456
13456
  let h = [];
13457
- i ? h = (s = Dr(n == null ? void 0 : n.screenShareSimulcastLayers)) !== null && s !== void 0 ? s : xr(i, d) : h = (r = Dr(n == null ? void 0 : n.videoSimulcastLayers)) !== null && r !== void 0 ? r : xr(i, d);
13457
+ i ? h = (s = Dr(n == null ? void 0 : n.screenShareSimulcastLayers)) !== null && s !== void 0 ? s : Lr(i, d) : h = (r = Dr(n == null ? void 0 : n.videoSimulcastLayers)) !== null && r !== void 0 ? r : Lr(i, d);
13458
13458
  let f;
13459
13459
  if (h.length > 0) {
13460
13460
  const p = h[0];
@@ -13467,7 +13467,7 @@ function vo(i, e, t, n) {
13467
13467
  }
13468
13468
  return es(e, t, [d]);
13469
13469
  }
13470
- function Nr(i, e, t) {
13470
+ function xr(i, e, t) {
13471
13471
  var n, s, r, a;
13472
13472
  if (!t.backupCodec || t.backupCodec.codec === t.videoCodec)
13473
13473
  return;
@@ -13506,7 +13506,7 @@ function vl(i, e, t) {
13506
13506
  const n = e > t ? e / t : t / e;
13507
13507
  return Math.abs(n - 16 / 9) < Math.abs(n - 4 / 3) ? dl : ll;
13508
13508
  }
13509
- function xr(i, e) {
13509
+ function Lr(i, e) {
13510
13510
  if (i)
13511
13511
  return ml(e);
13512
13512
  const {
@@ -13571,7 +13571,7 @@ class yo {
13571
13571
  }
13572
13572
  }
13573
13573
  const yl = 5e3;
13574
- class De extends Zi {
13574
+ class xe extends Zi {
13575
13575
  /**
13576
13576
  *
13577
13577
  * @param mediaTrack
@@ -13747,8 +13747,8 @@ class De extends Zi {
13747
13747
  }
13748
13748
  setPublishingQuality(e) {
13749
13749
  const t = [];
13750
- for (let n = ue.LOW; n <= ue.HIGH; n += 1)
13751
- t.push(new Ge({
13750
+ for (let n = oe.LOW; n <= oe.HIGH; n += 1)
13751
+ t.push(new ze({
13752
13752
  quality: n,
13753
13753
  enabled: n <= e
13754
13754
  }));
@@ -13935,19 +13935,19 @@ function Mr(i, e, t, n) {
13935
13935
  function bo(i) {
13936
13936
  switch (i) {
13937
13937
  case "f":
13938
- return ue.HIGH;
13938
+ return oe.HIGH;
13939
13939
  case "h":
13940
- return ue.MEDIUM;
13940
+ return oe.MEDIUM;
13941
13941
  case "q":
13942
- return ue.LOW;
13942
+ return oe.LOW;
13943
13943
  default:
13944
- return ue.HIGH;
13944
+ return oe.HIGH;
13945
13945
  }
13946
13946
  }
13947
13947
  function Ur(i, e, t, n) {
13948
13948
  if (!t)
13949
13949
  return [new Te({
13950
- quality: ue.HIGH,
13950
+ quality: oe.HIGH,
13951
13951
  width: i,
13952
13952
  height: e,
13953
13953
  bitrate: 0,
@@ -13957,7 +13957,7 @@ function Ur(i, e, t, n) {
13957
13957
  const s = t[0].scalabilityMode, r = new yo(s), a = [];
13958
13958
  for (let o = 0; o < r.spatial; o += 1)
13959
13959
  a.push(new Te({
13960
- quality: ue.HIGH - o,
13960
+ quality: oe.HIGH - o,
13961
13961
  width: Math.ceil(i / Math.pow(2, o)),
13962
13962
  height: Math.ceil(e / Math.pow(2, o)),
13963
13963
  bitrate: t[0].maxBitrate ? Math.ceil(t[0].maxBitrate / Math.pow(3, o)) : 0,
@@ -14359,7 +14359,7 @@ class kt extends gt.EventEmitter {
14359
14359
  * an [VideoTrack] if this publication holds a video track
14360
14360
  */
14361
14361
  get videoTrack() {
14362
- if (this.track instanceof De || this.track instanceof zi)
14362
+ if (this.track instanceof xe || this.track instanceof zi)
14363
14363
  return this.track;
14364
14364
  }
14365
14365
  /** @internal */
@@ -14379,7 +14379,7 @@ class kt extends gt.EventEmitter {
14379
14379
  e.Allowed = "allowed", e.NotAllowed = "not_allowed";
14380
14380
  }(i.PermissionStatus || (i.PermissionStatus = {}));
14381
14381
  })(kt || (kt = {}));
14382
- class Ln extends kt {
14382
+ class Nn extends kt {
14383
14383
  get isUpstreamPaused() {
14384
14384
  var e;
14385
14385
  return (e = this.track) === null || e === void 0 ? void 0 : e.isUpstreamPaused;
@@ -14523,11 +14523,11 @@ class To extends gt.EventEmitter {
14523
14523
  **/
14524
14524
  _setMetadata(e) {
14525
14525
  const t = this.metadata !== e, n = this.metadata;
14526
- this.metadata = e, t && this.emit(L.ParticipantMetadataChanged, n);
14526
+ this.metadata = e, t && this.emit(O.ParticipantMetadataChanged, n);
14527
14527
  }
14528
14528
  _setName(e) {
14529
14529
  const t = this.name !== e;
14530
- this.name = e, t && this.emit(L.ParticipantNameChanged, e);
14530
+ this.name = e, t && this.emit(O.ParticipantNameChanged, e);
14531
14531
  }
14532
14532
  /** @internal */
14533
14533
  setPermissions(e) {
@@ -14536,16 +14536,16 @@ class To extends gt.EventEmitter {
14536
14536
  var h;
14537
14537
  return u !== ((h = this.permissions) === null || h === void 0 ? void 0 : h.canPublishSources[d]);
14538
14538
  });
14539
- return this.permissions = e, c && this.emit(L.ParticipantPermissionsChanged, o), c;
14539
+ return this.permissions = e, c && this.emit(O.ParticipantPermissionsChanged, o), c;
14540
14540
  }
14541
14541
  /** @internal */
14542
14542
  setIsSpeaking(e) {
14543
- e !== this.isSpeaking && (this.isSpeaking = e, e && (this.lastSpokeAt = /* @__PURE__ */ new Date()), this.emit(L.IsSpeakingChanged, e));
14543
+ e !== this.isSpeaking && (this.isSpeaking = e, e && (this.lastSpokeAt = /* @__PURE__ */ new Date()), this.emit(O.IsSpeakingChanged, e));
14544
14544
  }
14545
14545
  /** @internal */
14546
14546
  setConnectionQuality(e) {
14547
14547
  const t = this._connectionQuality;
14548
- this._connectionQuality = kl(e), t !== this._connectionQuality && this.emit(L.ConnectionQualityChanged, this._connectionQuality);
14548
+ this._connectionQuality = kl(e), t !== this._connectionQuality && this.emit(O.ConnectionQualityChanged, this._connectionQuality);
14549
14549
  }
14550
14550
  /**
14551
14551
  * @internal
@@ -14555,9 +14555,9 @@ class To extends gt.EventEmitter {
14555
14555
  }
14556
14556
  addTrackPublication(e) {
14557
14557
  e.on(R.Muted, () => {
14558
- this.emit(L.TrackMuted, e);
14558
+ this.emit(O.TrackMuted, e);
14559
14559
  }), e.on(R.Unmuted, () => {
14560
- this.emit(L.TrackUnmuted, e);
14560
+ this.emit(O.TrackUnmuted, e);
14561
14561
  });
14562
14562
  const t = e;
14563
14563
  switch (t.track && (t.track.sid = e.trackSid), this.tracks.set(e.trackSid, e), e.kind) {
@@ -14583,7 +14583,7 @@ function Tl(i) {
14583
14583
  }
14584
14584
  class So extends kt {
14585
14585
  constructor(e, t, n) {
14586
- super(e, t.sid, t.name), this.track = void 0, this.allowed = !0, this.disabled = !1, this.currentVideoQuality = ue.HIGH, this.handleEnded = (s) => {
14586
+ super(e, t.sid, t.name), this.track = void 0, this.allowed = !0, this.disabled = !1, this.currentVideoQuality = oe.HIGH, this.handleEnded = (s) => {
14587
14587
  this.setTrack(void 0), this.emit(R.Ended, s);
14588
14588
  }, this.handleVisibilityChange = (s) => {
14589
14589
  m.debug("adaptivestream video visibility ".concat(this.trackSid, ", visible=").concat(s), {
@@ -14602,7 +14602,7 @@ class So extends kt {
14602
14602
  setSubscribed(e) {
14603
14603
  const t = this.subscriptionStatus, n = this.permissionStatus;
14604
14604
  this.subscribed = e, e && (this.allowed = !0);
14605
- const s = new Je({
14605
+ const s = new Fe({
14606
14606
  trackSids: [this.trackSid],
14607
14607
  subscribe: this.subscribed,
14608
14608
  participantTracks: [new nt({
@@ -14706,7 +14706,7 @@ class So extends kt {
14706
14706
  disabled: this.disabled,
14707
14707
  fps: this.fps
14708
14708
  });
14709
- this.videoDimensions ? (e.width = Math.ceil(this.videoDimensions.width), e.height = Math.ceil(this.videoDimensions.height)) : this.currentVideoQuality !== void 0 ? e.quality = this.currentVideoQuality : e.quality = ue.HIGH, this.emit(R.UpdateSettings, e);
14709
+ this.videoDimensions ? (e.width = Math.ceil(this.videoDimensions.width), e.height = Math.ceil(this.videoDimensions.height)) : this.currentVideoQuality !== void 0 ? e.quality = this.currentVideoQuality : e.quality = oe.HIGH, this.emit(R.UpdateSettings, e);
14710
14710
  }
14711
14711
  }
14712
14712
  class en extends To {
@@ -14726,15 +14726,15 @@ class en extends To {
14726
14726
  n.participantSid = this.sid;
14727
14727
  }), this.signalClient.sendUpdateSubscription(t);
14728
14728
  }), e.on(R.SubscriptionPermissionChanged, (t) => {
14729
- this.emit(L.TrackSubscriptionPermissionChanged, e, t);
14729
+ this.emit(O.TrackSubscriptionPermissionChanged, e, t);
14730
14730
  }), e.on(R.SubscriptionStatusChanged, (t) => {
14731
- this.emit(L.TrackSubscriptionStatusChanged, e, t);
14731
+ this.emit(O.TrackSubscriptionStatusChanged, e, t);
14732
14732
  }), e.on(R.Subscribed, (t) => {
14733
- this.emit(L.TrackSubscribed, t, e);
14733
+ this.emit(O.TrackSubscribed, t, e);
14734
14734
  }), e.on(R.Unsubscribed, (t) => {
14735
- this.emit(L.TrackUnsubscribed, t, e);
14735
+ this.emit(O.TrackUnsubscribed, t, e);
14736
14736
  }), e.on(R.SubscriptionFailed, (t) => {
14737
- this.emit(L.TrackSubscriptionFailed, e.trackSid, t);
14737
+ this.emit(O.TrackSubscriptionFailed, e.trackSid, t);
14738
14738
  });
14739
14739
  }
14740
14740
  getTrack(e) {
@@ -14777,7 +14777,7 @@ class en extends To {
14777
14777
  m.error("could not find published track", {
14778
14778
  participant: this.sid,
14779
14779
  trackSid: t
14780
- }), this.emit(L.TrackSubscriptionFailed, t);
14780
+ }), this.emit(O.TrackSubscriptionFailed, t);
14781
14781
  return;
14782
14782
  }
14783
14783
  a === void 0 && (a = 20), setTimeout(() => {
@@ -14789,7 +14789,7 @@ class en extends To {
14789
14789
  m.error("unable to subscribe because MediaStreamTrack is ended. Do not call MediaStreamTrack.stop()", {
14790
14790
  participant: this.sid,
14791
14791
  trackSid: t
14792
- }), this.emit(L.TrackSubscriptionFailed, t);
14792
+ }), this.emit(O.TrackSubscriptionFailed, t);
14793
14793
  return;
14794
14794
  }
14795
14795
  const c = e.kind === "video";
@@ -14833,7 +14833,7 @@ class en extends To {
14833
14833
  participantSid: this.sid
14834
14834
  }), this.unpublishTrack(s.trackSid, !0));
14835
14835
  }), n.forEach((s) => {
14836
- this.emit(L.TrackPublished, s);
14836
+ this.emit(O.TrackPublished, s);
14837
14837
  }), !0;
14838
14838
  }
14839
14839
  /** @internal */
@@ -14852,7 +14852,7 @@ class en extends To {
14852
14852
  this.videoTracks.delete(e);
14853
14853
  break;
14854
14854
  }
14855
- t && this.emit(L.TrackUnpublished, n);
14855
+ t && this.emit(O.TrackUnpublished, n);
14856
14856
  }
14857
14857
  /**
14858
14858
  * @internal
@@ -14959,7 +14959,7 @@ class Br extends To {
14959
14959
  }), this.unpublishTrack(r);
14960
14960
  else if (r.isUserProvided)
14961
14961
  yield r.mute();
14962
- else if (r instanceof we || r instanceof De)
14962
+ else if (r instanceof we || r instanceof xe)
14963
14963
  try {
14964
14964
  if (_e())
14965
14965
  try {
@@ -15058,7 +15058,7 @@ class Br extends To {
15058
15058
  /** @internal */
15059
15059
  setPermissions(e) {
15060
15060
  const t = this.permissions, n = super.setPermissions(e);
15061
- return n && t && this.emit(L.ParticipantPermissionsChanged, t), n;
15061
+ return n && t && this.emit(O.ParticipantPermissionsChanged, t), n;
15062
15062
  }
15063
15063
  /** @internal */
15064
15064
  setE2EEEnabled(e) {
@@ -15113,7 +15113,7 @@ class Br extends To {
15113
15113
  } catch (u) {
15114
15114
  throw c == null || c.forEach((d) => {
15115
15115
  d.stop();
15116
- }), u instanceof Error && !(u instanceof Ze) && this.emit(L.MediaDevicesError, u), u;
15116
+ }), u instanceof Error && !(u instanceof Ze) && this.emit(O.MediaDevicesError, u), u;
15117
15117
  } finally {
15118
15118
  this.pendingPublishing.delete(e);
15119
15119
  }
@@ -15182,11 +15182,11 @@ class Br extends To {
15182
15182
  createScreenTracks(e) {
15183
15183
  return g(this, void 0, void 0, function* () {
15184
15184
  if (e === void 0 && (e = {}), e.resolution === void 0 && (e.resolution = Ds.h1080fps15.resolution), navigator.mediaDevices.getDisplayMedia === void 0)
15185
- throw new xs("getDisplayMedia not supported");
15185
+ throw new Ls("getDisplayMedia not supported");
15186
15186
  const t = wd(e), n = yield navigator.mediaDevices.getDisplayMedia(t), s = n.getVideoTracks();
15187
15187
  if (s.length === 0)
15188
15188
  throw new Ze("no video track found");
15189
- const r = new De(s[0], void 0, !1);
15189
+ const r = new xe(s[0], void 0, !1);
15190
15190
  r.source = C.Source.ScreenShare;
15191
15191
  const a = [r];
15192
15192
  if (n.getAudioTracks().length > 0) {
@@ -15228,7 +15228,7 @@ class Br extends To {
15228
15228
  e = new we(e, o, !0, this.audioContext);
15229
15229
  break;
15230
15230
  case "video":
15231
- e = new De(e, o, !0);
15231
+ e = new xe(e, o, !0);
15232
15232
  break;
15233
15233
  default:
15234
15234
  throw new Ze("unsupported MediaStreamTrack kind ".concat(e.kind));
@@ -15270,7 +15270,7 @@ class Br extends To {
15270
15270
  });
15271
15271
  }
15272
15272
  t.stopMicTrackOnMute && e instanceof we && (e.stopOnMute = !0), e.source === C.Source.ScreenShare && Qi() && (t.simulcast = !1), t.videoCodec === "av1" && !Rd() && (t.videoCodec = void 0), t.videoCodec === "vp9" && !_d() && (t.videoCodec = void 0), e.on(R.Muted, this.onTrackMuted), e.on(R.Unmuted, this.onTrackUnmuted), e.on(R.Ended, this.handleTrackEnded), e.on(R.UpstreamPaused, this.onTrackUpstreamPaused), e.on(R.UpstreamResumed, this.onTrackUpstreamResumed);
15273
- const Q = new qe({
15273
+ const Q = new Ve({
15274
15274
  // get local track id for use during publishing
15275
15275
  cid: e.mediaStreamTrack.id,
15276
15276
  name: t.name,
@@ -15282,7 +15282,7 @@ class Br extends To {
15282
15282
  stereo: n,
15283
15283
  disableRed: this.isE2EEEnabled || !(!((r = t.red) !== null && r !== void 0) || r)
15284
15284
  });
15285
- let j, he;
15285
+ let j, de;
15286
15286
  if (e.kind === C.Kind.Video) {
15287
15287
  let F = {
15288
15288
  width: 0,
@@ -15297,21 +15297,21 @@ class Br extends To {
15297
15297
  height: Ie.height
15298
15298
  }, m.error("could not determine track dimensions, using defaults", F);
15299
15299
  }
15300
- if (Q.width = F.width, Q.height = F.height, e instanceof De)
15300
+ if (Q.width = F.width, Q.height = F.height, e instanceof xe)
15301
15301
  if ($i(t.videoCodec) && (t.scalabilityMode = (c = t.scalabilityMode) !== null && c !== void 0 ? c : "L3T3_KEY"), t.videoCodec && t.backupCodec && t.videoCodec !== t.backupCodec.codec) {
15302
15302
  this.roomOptions.dynacast || (this.roomOptions.dynacast = !0);
15303
- const fe = Object.assign({}, t);
15304
- fe.simulcast = !0, he = Nr(e, t.backupCodec.codec, fe), Q.simulcastCodecs = [new Be({
15303
+ const le = Object.assign({}, t);
15304
+ le.simulcast = !0, de = xr(e, t.backupCodec.codec, le), Q.simulcastCodecs = [new Ue({
15305
15305
  codec: t.videoCodec,
15306
15306
  cid: e.mediaStreamTrack.id,
15307
15307
  enableSimulcastLayers: !0
15308
- }), new Be({
15308
+ }), new Ue({
15309
15309
  codec: t.backupCodec.codec,
15310
15310
  cid: "",
15311
15311
  enableSimulcastLayers: !0
15312
15312
  })];
15313
15313
  } else
15314
- t.videoCodec && (Q.simulcastCodecs = [new Be({
15314
+ t.videoCodec && (Q.simulcastCodecs = [new Ue({
15315
15315
  codec: t.videoCodec,
15316
15316
  cid: e.mediaStreamTrack.id,
15317
15317
  enableSimulcastLayers: (u = t.simulcast) !== null && u !== void 0 ? u : !1
@@ -15334,10 +15334,10 @@ class Br extends To {
15334
15334
  throw Error("cannot publish track, codec not supported by server");
15335
15335
  if (!q && t.backupCodec) {
15336
15336
  const F = t.backupCodec;
15337
- t = Object.assign({}, t), m.debug("primary codec ".concat(t.videoCodec, " not supported, fallback to ").concat(F.codec)), t.videoCodec = F.codec, t.videoEncoding = F.encoding, j = he;
15337
+ t = Object.assign({}, t), m.debug("primary codec ".concat(t.videoCodec, " not supported, fallback to ").concat(F.codec)), t.videoCodec = F.codec, t.videoEncoding = F.encoding, j = de;
15338
15338
  }
15339
15339
  }
15340
- const I = new Ln(e.kind, ae, e);
15340
+ const I = new Nn(e.kind, ae, e);
15341
15341
  if (I.options = t, e.sid = ae.sid, !this.engine.publisher)
15342
15342
  throw new pe("publisher is closed");
15343
15343
  if (m.debug("publishing ".concat(e.kind, " with encodings"), {
@@ -15346,9 +15346,9 @@ class Br extends To {
15346
15346
  }), e.sender = yield this.engine.createSender(e, t, j), j)
15347
15347
  if (Qi() && e.kind === C.Kind.Audio) {
15348
15348
  let F;
15349
- for (const fe of this.engine.publisher.pc.getTransceivers())
15350
- if (fe.sender === e.sender) {
15351
- F = fe;
15349
+ for (const le of this.engine.publisher.pc.getTransceivers())
15350
+ if (le.sender === e.sender) {
15351
+ F = le;
15352
15352
  break;
15353
15353
  }
15354
15354
  F && this.engine.publisher.setTrackCodecBitrate({
@@ -15362,7 +15362,7 @@ class Br extends To {
15362
15362
  codec: e.codec,
15363
15363
  maxbr: j[0].maxBitrate / 1e3
15364
15364
  });
15365
- return yield this.engine.negotiate(), e instanceof De ? e.startMonitor(this.engine.client) : e instanceof we && e.startMonitor(), this.addTrackPublication(I), this.emit(L.LocalTrackPublished, I), I;
15365
+ return yield this.engine.negotiate(), e instanceof xe ? e.startMonitor(this.engine.client) : e instanceof we && e.startMonitor(), this.addTrackPublication(I), this.emit(O.LocalTrackPublished, I), I;
15366
15366
  });
15367
15367
  }
15368
15368
  get isLocal() {
@@ -15379,14 +15379,14 @@ class Br extends To {
15379
15379
  h.track && h.track === e && (r = h);
15380
15380
  }), !r)
15381
15381
  throw new Ze("track is not published");
15382
- if (!(e instanceof De))
15382
+ if (!(e instanceof xe))
15383
15383
  throw new Ze("track is not a video track");
15384
- const a = Object.assign(Object.assign({}, (s = this.roomOptions) === null || s === void 0 ? void 0 : s.publishDefaults), n), o = Nr(e, t, a);
15384
+ const a = Object.assign(Object.assign({}, (s = this.roomOptions) === null || s === void 0 ? void 0 : s.publishDefaults), n), o = xr(e, t, a);
15385
15385
  if (!o) {
15386
15386
  m.info("backup codec has been disabled, ignoring request to add additional codec for track");
15387
15387
  return;
15388
15388
  }
15389
- const c = e.addSimulcastTrack(t, o), u = new qe({
15389
+ const c = e.addSimulcastTrack(t, o), u = new Ve({
15390
15390
  cid: c.mediaStreamTrack.id,
15391
15391
  type: C.kindToProto(e.kind),
15392
15392
  muted: e.isMuted,
@@ -15428,7 +15428,7 @@ class Br extends To {
15428
15428
  try {
15429
15429
  for (const c of this.engine.publisher.pc.getTransceivers())
15430
15430
  c.sender === o && (c.direction = "inactive", a = !0);
15431
- if (this.engine.removeTrack(o) && (a = !0), e instanceof De) {
15431
+ if (this.engine.removeTrack(o) && (a = !0), e instanceof xe) {
15432
15432
  for (const [, c] of e.simulcastCodecs)
15433
15433
  c.sender && (this.engine.removeTrack(c.sender) && (a = !0), c.sender = void 0);
15434
15434
  e.simulcastCodecs.clear();
@@ -15447,12 +15447,12 @@ class Br extends To {
15447
15447
  this.videoTracks.delete(r.trackSid);
15448
15448
  break;
15449
15449
  }
15450
- return this.emit(L.LocalTrackUnpublished, r), r.setTrack(void 0), a && (yield this.engine.negotiate()), r;
15450
+ return this.emit(O.LocalTrackUnpublished, r), r.setTrack(void 0), a && (yield this.engine.negotiate()), r;
15451
15451
  });
15452
15452
  }
15453
15453
  unpublishTracks(e) {
15454
15454
  return g(this, void 0, void 0, function* () {
15455
- return (yield Promise.all(e.map((n) => this.unpublishTrack(n)))).filter((n) => n instanceof Ln);
15455
+ return (yield Promise.all(e.map((n) => this.unpublishTrack(n)))).filter((n) => n instanceof Nn);
15456
15456
  });
15457
15457
  }
15458
15458
  republishAllTracks(e) {
@@ -15463,7 +15463,7 @@ class Br extends To {
15463
15463
  s.track && (e && (s.options = Object.assign(Object.assign({}, s.options), e)), n.push(s));
15464
15464
  }), yield Promise.all(n.map((s) => g(this, void 0, void 0, function* () {
15465
15465
  const r = s.track;
15466
- yield this.unpublishTrack(r, !1), t && !r.isMuted && (r instanceof we || r instanceof De) && !r.isUserProvided && (m.debug("restarting existing track", {
15466
+ yield this.unpublishTrack(r, !1), t && !r.isMuted && (r instanceof we || r instanceof xe) && !r.isUserProvided && (m.debug("restarting existing track", {
15467
15467
  track: s.trackSid
15468
15468
  }), yield r.restartTrack()), yield this.publishTrack(r, s.options);
15469
15469
  })));
@@ -15530,14 +15530,14 @@ class Br extends To {
15530
15530
  let t;
15531
15531
  return this.tracks.forEach((n) => {
15532
15532
  const s = n.track;
15533
- s && (e instanceof MediaStreamTrack ? (s instanceof we || s instanceof De) && s.mediaStreamTrack === e && (t = n) : e === s && (t = n));
15533
+ s && (e instanceof MediaStreamTrack ? (s instanceof we || s instanceof xe) && s.mediaStreamTrack === e && (t = n) : e === s && (t = n));
15534
15534
  }), t;
15535
15535
  }
15536
15536
  /** @internal */
15537
15537
  publishedTracksInfo() {
15538
15538
  const e = [];
15539
15539
  return this.tracks.forEach((t) => {
15540
- t.track !== void 0 && e.push(new We({
15540
+ t.track !== void 0 && e.push(new He({
15541
15541
  cid: t.track.mediaStreamID,
15542
15542
  track: t.trackInfo
15543
15543
  }));
@@ -15552,7 +15552,7 @@ class Br extends To {
15552
15552
  target: s
15553
15553
  }));
15554
15554
  };
15555
- return t(this.engine.dataChannelForKind(le.LOSSY), Re.PUBLISHER), t(this.engine.dataChannelForKind(le.RELIABLE), Re.PUBLISHER), t(this.engine.dataChannelForKind(le.LOSSY, !0), Re.SUBSCRIBER), t(this.engine.dataChannelForKind(le.RELIABLE, !0), Re.SUBSCRIBER), e;
15555
+ return t(this.engine.dataChannelForKind(ue.LOSSY), Re.PUBLISHER), t(this.engine.dataChannelForKind(ue.RELIABLE), Re.PUBLISHER), t(this.engine.dataChannelForKind(ue.LOSSY, !0), Re.SUBSCRIBER), t(this.engine.dataChannelForKind(ue.RELIABLE, !0), Re.SUBSCRIBER), e;
15556
15556
  }
15557
15557
  }
15558
15558
  var Y;
@@ -15574,7 +15574,7 @@ class Co extends gt.EventEmitter {
15574
15574
  return m.info("already connected to room ".concat(this.name)), c(), Promise.resolve();
15575
15575
  if (this.connectFuture)
15576
15576
  return c(), this.connectFuture.promise;
15577
- this.setAndEmitConnectionState(Y.Connecting), ((o = this.regionUrlProvider) === null || o === void 0 ? void 0 : o.getServerUrl().toString()) !== s && (this.regionUrl = void 0, this.regionUrlProvider = void 0), Es(new URL(s)) && (this.regionUrlProvider === void 0 ? this.regionUrlProvider = new Lr(s, r) : this.regionUrlProvider.updateToken(r), this.regionUrlProvider.fetchRegionSettings().catch((h) => {
15577
+ this.setAndEmitConnectionState(Y.Connecting), ((o = this.regionUrlProvider) === null || o === void 0 ? void 0 : o.getServerUrl().toString()) !== s && (this.regionUrl = void 0, this.regionUrlProvider = void 0), Es(new URL(s)) && (this.regionUrlProvider === void 0 ? this.regionUrlProvider = new Nr(s, r) : this.regionUrlProvider.updateToken(r), this.regionUrlProvider.fetchRegionSettings().catch((h) => {
15578
15578
  m.warn("could not fetch region settings", {
15579
15579
  error: h
15580
15580
  });
@@ -15684,7 +15684,7 @@ class Co extends gt.EventEmitter {
15684
15684
  a.track && r.push(a);
15685
15685
  }), yield Promise.all(r.map((a) => g(this, void 0, void 0, function* () {
15686
15686
  const o = a.track;
15687
- this.localParticipant.unpublishTrack(o, !1), o.isMuted || ((o instanceof we || o instanceof De) && o.source !== C.Source.ScreenShare && o.source !== C.Source.ScreenShareAudio && !o.isUserProvided && (m.debug("restarting existing track", {
15687
+ this.localParticipant.unpublishTrack(o, !1), o.isMuted || ((o instanceof we || o instanceof xe) && o.source !== C.Source.ScreenShare && o.source !== C.Source.ScreenShareAudio && !o.isUserProvided && (m.debug("restarting existing track", {
15688
15688
  track: a.trackSid
15689
15689
  }), yield o.restartTrack()), m.debug("publishing new track", {
15690
15690
  track: a.trackSid
@@ -15745,7 +15745,7 @@ class Co extends gt.EventEmitter {
15745
15745
  if (!a)
15746
15746
  return;
15747
15747
  const o = a.getTrackPublication(r.trackSid);
15748
- !o || !o.track || (o.track.streamState = C.streamStateFromProto(r.state), a.emit(L.TrackStreamStateChanged, o, o.track.streamState), this.emitWhenConnected(P.TrackStreamStateChanged, o, o.track.streamState, a));
15748
+ !o || !o.track || (o.track.streamState = C.streamStateFromProto(r.state), a.emit(O.TrackStreamStateChanged, o, o.track.streamState), this.emitWhenConnected(P.TrackStreamStateChanged, o, o.track.streamState, a));
15749
15749
  });
15750
15750
  }, this.handleSubscriptionPermissionUpdate = (s) => {
15751
15751
  const r = this.participants.get(s.participantSid);
@@ -15761,7 +15761,7 @@ class Co extends gt.EventEmitter {
15761
15761
  a && a.setSubscriptionError(s.err);
15762
15762
  }, this.handleDataPacket = (s, r) => {
15763
15763
  const a = this.participants.get(s.participantSid);
15764
- this.emit(P.DataReceived, s.payload, a, r, s.topic), a == null || a.emit(L.DataReceived, s.payload, r);
15764
+ this.emit(P.DataReceived, s.payload, a, r, s.topic), a == null || a.emit(O.DataReceived, s.payload, r);
15765
15765
  }, this.handleAudioPlaybackStarted = () => {
15766
15766
  this.canPlaybackAudio || (this.audioEnabled = !0, this.emit(P.AudioPlaybackStatusChanged, !0));
15767
15767
  }, this.handleAudioPlaybackFailed = (s) => {
@@ -15892,7 +15892,7 @@ class Co extends gt.EventEmitter {
15892
15892
  m.debug("prepareConnection to ".concat(e));
15893
15893
  try {
15894
15894
  if (Es(new URL(e)) && t) {
15895
- this.regionUrlProvider = new Lr(e, t);
15895
+ this.regionUrlProvider = new Nr(e, t);
15896
15896
  const n = yield this.regionUrlProvider.getNextBestRegionUrl();
15897
15897
  n && this.state === Y.Disconnected && (this.regionUrl = n, yield fetch(kr(n), {
15898
15898
  method: "HEAD"
@@ -15982,7 +15982,7 @@ class Co extends gt.EventEmitter {
15982
15982
  }
15983
15983
  }), n = () => g(this, void 0, void 0, function* () {
15984
15984
  const r = this.engine.client.onLeave;
15985
- r && r(new je({
15985
+ r && r(new Be({
15986
15986
  reason: zt.CLIENT_INITIATED,
15987
15987
  canReconnect: !0
15988
15988
  }));
@@ -16120,7 +16120,7 @@ class Co extends gt.EventEmitter {
16120
16120
  });
16121
16121
  }
16122
16122
  setupLocalParticipantEvents() {
16123
- this.localParticipant.on(L.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).on(L.ParticipantNameChanged, this.onLocalParticipantNameChanged).on(L.TrackMuted, this.onLocalTrackMuted).on(L.TrackUnmuted, this.onLocalTrackUnmuted).on(L.LocalTrackPublished, this.onLocalTrackPublished).on(L.LocalTrackUnpublished, this.onLocalTrackUnpublished).on(L.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).on(L.MediaDevicesError, this.onMediaDevicesError).on(L.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged);
16123
+ this.localParticipant.on(O.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).on(O.ParticipantNameChanged, this.onLocalParticipantNameChanged).on(O.TrackMuted, this.onLocalTrackMuted).on(O.TrackUnmuted, this.onLocalTrackUnmuted).on(O.LocalTrackPublished, this.onLocalTrackPublished).on(O.LocalTrackUnpublished, this.onLocalTrackUnpublished).on(O.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).on(O.MediaDevicesError, this.onMediaDevicesError).on(O.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged);
16124
16124
  }
16125
16125
  recreateEngine() {
16126
16126
  var e;
@@ -16167,7 +16167,7 @@ class Co extends gt.EventEmitter {
16167
16167
  }), this.localParticipant.tracks.forEach((s) => {
16168
16168
  var r, a;
16169
16169
  s.track && this.localParticipant.unpublishTrack(s.track, e), e && ((r = s.track) === null || r === void 0 || r.detach(), (a = s.track) === null || a === void 0 || a.stop());
16170
- }), this.localParticipant.off(L.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).off(L.ParticipantNameChanged, this.onLocalParticipantNameChanged).off(L.TrackMuted, this.onLocalTrackMuted).off(L.TrackUnmuted, this.onLocalTrackUnmuted).off(L.LocalTrackPublished, this.onLocalTrackPublished).off(L.LocalTrackUnpublished, this.onLocalTrackUnpublished).off(L.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).off(L.MediaDevicesError, this.onMediaDevicesError).off(L.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged), this.localParticipant.tracks.clear(), this.localParticipant.videoTracks.clear(), this.localParticipant.audioTracks.clear(), this.participants.clear(), this.activeSpeakers = [], this.audioContext && typeof this.options.expWebAudioMix == "boolean" && (this.audioContext.close(), this.audioContext = void 0), _e() && (window.removeEventListener("beforeunload", this.onPageLeave), window.removeEventListener("pagehide", this.onPageLeave), window.removeEventListener("freeze", this.onPageLeave), (n = navigator.mediaDevices) === null || n === void 0 || n.removeEventListener("devicechange", this.handleDeviceChange));
16170
+ }), this.localParticipant.off(O.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).off(O.ParticipantNameChanged, this.onLocalParticipantNameChanged).off(O.TrackMuted, this.onLocalTrackMuted).off(O.TrackUnmuted, this.onLocalTrackUnmuted).off(O.LocalTrackPublished, this.onLocalTrackPublished).off(O.LocalTrackUnpublished, this.onLocalTrackUnpublished).off(O.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).off(O.MediaDevicesError, this.onMediaDevicesError).off(O.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged), this.localParticipant.tracks.clear(), this.localParticipant.videoTracks.clear(), this.localParticipant.audioTracks.clear(), this.participants.clear(), this.activeSpeakers = [], this.audioContext && typeof this.options.expWebAudioMix == "boolean" && (this.audioContext.close(), this.audioContext = void 0), _e() && (window.removeEventListener("beforeunload", this.onPageLeave), window.removeEventListener("pagehide", this.onPageLeave), window.removeEventListener("freeze", this.onPageLeave), (n = navigator.mediaDevices) === null || n === void 0 || n.removeEventListener("devicechange", this.handleDeviceChange));
16171
16171
  } finally {
16172
16172
  this.setAndEmitConnectionState(Y.Disconnected), this.emit(P.Disconnected, t);
16173
16173
  }
@@ -16200,33 +16200,33 @@ class Co extends gt.EventEmitter {
16200
16200
  if (this.participants.has(e))
16201
16201
  return this.participants.get(e);
16202
16202
  const n = this.createParticipant(e, t);
16203
- return this.participants.set(e, n), this.identityToSid.set(t.identity, t.sid), this.emitWhenConnected(P.ParticipantConnected, n), n.on(L.TrackPublished, (s) => {
16203
+ return this.participants.set(e, n), this.identityToSid.set(t.identity, t.sid), this.emitWhenConnected(P.ParticipantConnected, n), n.on(O.TrackPublished, (s) => {
16204
16204
  this.emitWhenConnected(P.TrackPublished, s, n);
16205
- }).on(L.TrackSubscribed, (s, r) => {
16205
+ }).on(O.TrackSubscribed, (s, r) => {
16206
16206
  s.kind === C.Kind.Audio && (s.on(R.AudioPlaybackStarted, this.handleAudioPlaybackStarted), s.on(R.AudioPlaybackFailed, this.handleAudioPlaybackFailed)), this.emit(P.TrackSubscribed, s, r, n);
16207
- }).on(L.TrackUnpublished, (s) => {
16207
+ }).on(O.TrackUnpublished, (s) => {
16208
16208
  this.emit(P.TrackUnpublished, s, n);
16209
- }).on(L.TrackUnsubscribed, (s, r) => {
16209
+ }).on(O.TrackUnsubscribed, (s, r) => {
16210
16210
  this.emit(P.TrackUnsubscribed, s, r, n);
16211
- }).on(L.TrackSubscriptionFailed, (s) => {
16211
+ }).on(O.TrackSubscriptionFailed, (s) => {
16212
16212
  this.emit(P.TrackSubscriptionFailed, s, n);
16213
- }).on(L.TrackMuted, (s) => {
16213
+ }).on(O.TrackMuted, (s) => {
16214
16214
  this.emitWhenConnected(P.TrackMuted, s, n);
16215
- }).on(L.TrackUnmuted, (s) => {
16215
+ }).on(O.TrackUnmuted, (s) => {
16216
16216
  this.emitWhenConnected(P.TrackUnmuted, s, n);
16217
- }).on(L.ParticipantMetadataChanged, (s) => {
16217
+ }).on(O.ParticipantMetadataChanged, (s) => {
16218
16218
  this.emitWhenConnected(P.ParticipantMetadataChanged, s, n);
16219
- }).on(L.ParticipantNameChanged, (s) => {
16219
+ }).on(O.ParticipantNameChanged, (s) => {
16220
16220
  this.emitWhenConnected(P.ParticipantNameChanged, s, n);
16221
- }).on(L.ConnectionQualityChanged, (s) => {
16221
+ }).on(O.ConnectionQualityChanged, (s) => {
16222
16222
  this.emitWhenConnected(P.ConnectionQualityChanged, s, n);
16223
- }).on(L.ParticipantPermissionsChanged, (s) => {
16223
+ }).on(O.ParticipantPermissionsChanged, (s) => {
16224
16224
  this.emitWhenConnected(P.ParticipantPermissionsChanged, s, n);
16225
- }).on(L.TrackSubscriptionStatusChanged, (s, r) => {
16225
+ }).on(O.TrackSubscriptionStatusChanged, (s, r) => {
16226
16226
  this.emitWhenConnected(P.TrackSubscriptionStatusChanged, s, r, n);
16227
- }).on(L.TrackSubscriptionFailed, (s, r) => {
16227
+ }).on(O.TrackSubscriptionFailed, (s, r) => {
16228
16228
  this.emit(P.TrackSubscriptionFailed, s, n, r);
16229
- }).on(L.TrackSubscriptionPermissionChanged, (s, r) => {
16229
+ }).on(O.TrackSubscriptionPermissionChanged, (s, r) => {
16230
16230
  this.emitWhenConnected(P.TrackSubscriptionPermissionChanged, s, r, n);
16231
16231
  }), t && n.updateInfo(t), n;
16232
16232
  }
@@ -16248,7 +16248,7 @@ class Co extends gt.EventEmitter {
16248
16248
  sdp: s.sdp,
16249
16249
  type: s.type
16250
16250
  }) : void 0,
16251
- subscription: new Je({
16251
+ subscription: new Fe({
16252
16252
  trackSids: a,
16253
16253
  subscribe: !r,
16254
16254
  participantTracks: []
@@ -16322,32 +16322,32 @@ class Co extends gt.EventEmitter {
16322
16322
  turnPassword: "",
16323
16323
  enabledCodecs: [],
16324
16324
  activeRecording: !1
16325
- }), this.localParticipant.updateInfo(new Me({
16325
+ }), this.localParticipant.updateInfo(new Le({
16326
16326
  identity: "simulated-local",
16327
16327
  name: "local-name"
16328
16328
  })), this.setupLocalParticipantEvents(), this.emit(P.SignalConnected), this.emit(P.Connected), this.setAndEmitConnectionState(Y.Connected), s.video) {
16329
- const a = new Ln(C.Kind.Video, new Pe({
16329
+ const a = new Nn(C.Kind.Video, new Pe({
16330
16330
  source: re.CAMERA,
16331
16331
  sid: Math.floor(Math.random() * 1e4).toString(),
16332
16332
  type: ge.AUDIO,
16333
16333
  name: "video-dummy"
16334
- }), new De(s.useRealTracks ? (yield window.navigator.mediaDevices.getUserMedia({
16334
+ }), new xe(s.useRealTracks ? (yield window.navigator.mediaDevices.getUserMedia({
16335
16335
  video: !0
16336
16336
  })).getVideoTracks()[0] : br((t = 160 * r.aspectRatios[0]) !== null && t !== void 0 ? t : 1, 160, !0, !0)));
16337
- this.localParticipant.addTrackPublication(a), this.localParticipant.emit(L.LocalTrackPublished, a);
16337
+ this.localParticipant.addTrackPublication(a), this.localParticipant.emit(O.LocalTrackPublished, a);
16338
16338
  }
16339
16339
  if (s.audio) {
16340
- const a = new Ln(C.Kind.Audio, new Pe({
16340
+ const a = new Nn(C.Kind.Audio, new Pe({
16341
16341
  source: re.MICROPHONE,
16342
16342
  sid: Math.floor(Math.random() * 1e4).toString(),
16343
16343
  type: ge.AUDIO
16344
16344
  }), new we(s.useRealTracks ? (yield navigator.mediaDevices.getUserMedia({
16345
16345
  audio: !0
16346
16346
  })).getAudioTracks()[0] : Xn()));
16347
- this.localParticipant.addTrackPublication(a), this.localParticipant.emit(L.LocalTrackPublished, a);
16347
+ this.localParticipant.addTrackPublication(a), this.localParticipant.emit(O.LocalTrackPublished, a);
16348
16348
  }
16349
16349
  for (let a = 0; a < r.count - 1; a += 1) {
16350
- let o = new Me({
16350
+ let o = new Le({
16351
16351
  sid: Math.floor(Math.random() * 1e4).toString(),
16352
16352
  identity: "simulated-".concat(a),
16353
16353
  state: oi.ACTIVE,
@@ -16385,26 +16385,26 @@ class Co extends gt.EventEmitter {
16385
16385
  }), super.emit(e, ...n);
16386
16386
  }
16387
16387
  }
16388
- var Ve;
16388
+ var Je;
16389
16389
  (function(i) {
16390
16390
  i[i.IDLE = 0] = "IDLE", i[i.RUNNING = 1] = "RUNNING", i[i.SKIPPED = 2] = "SKIPPED", i[i.SUCCESS = 3] = "SUCCESS", i[i.FAILED = 4] = "FAILED";
16391
- })(Ve || (Ve = {}));
16391
+ })(Je || (Je = {}));
16392
16392
  class _i extends gt.EventEmitter {
16393
16393
  constructor(e, t) {
16394
16394
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
16395
- super(), this.status = Ve.IDLE, this.logs = [], this.errorsAsWarnings = !1, this.url = e, this.token = t, this.name = this.constructor.name, this.room = new Co(n.roomOptions), this.connectOptions = n.connectOptions, n.errorsAsWarnings && (this.errorsAsWarnings = n.errorsAsWarnings);
16395
+ super(), this.status = Je.IDLE, this.logs = [], this.errorsAsWarnings = !1, this.url = e, this.token = t, this.name = this.constructor.name, this.room = new Co(n.roomOptions), this.connectOptions = n.connectOptions, n.errorsAsWarnings && (this.errorsAsWarnings = n.errorsAsWarnings);
16396
16396
  }
16397
16397
  run(e) {
16398
16398
  return g(this, void 0, void 0, function* () {
16399
- if (this.status !== Ve.IDLE)
16399
+ if (this.status !== Je.IDLE)
16400
16400
  throw Error("check is running already");
16401
- this.setStatus(Ve.RUNNING);
16401
+ this.setStatus(Je.RUNNING);
16402
16402
  try {
16403
16403
  yield this.perform();
16404
16404
  } catch (t) {
16405
16405
  t instanceof Error && (this.errorsAsWarnings ? this.appendWarning(t.message) : this.appendError(t.message));
16406
16406
  }
16407
- return yield this.disconnect(), yield new Promise((t) => setTimeout(t, 500)), this.status !== Ve.SKIPPED && this.setStatus(this.isSuccess() ? Ve.SUCCESS : Ve.FAILED), e && e(), this.getInfo();
16407
+ return yield this.disconnect(), yield new Promise((t) => setTimeout(t, 500)), this.status !== Je.SKIPPED && this.setStatus(this.isSuccess() ? Je.SUCCESS : Je.FAILED), e && e(), this.getInfo();
16408
16408
  });
16409
16409
  }
16410
16410
  isSuccess() {
@@ -16421,7 +16421,7 @@ class _i extends gt.EventEmitter {
16421
16421
  });
16422
16422
  }
16423
16423
  skip() {
16424
- this.setStatus(Ve.SKIPPED);
16424
+ this.setStatus(Je.SKIPPED);
16425
16425
  }
16426
16426
  appendMessage(e) {
16427
16427
  this.logs.push({
@@ -16657,7 +16657,7 @@ class jl extends gt.EventEmitter {
16657
16657
  const e = this.checkResults.size;
16658
16658
  return this.checkResults.set(e, {
16659
16659
  logs: [],
16660
- status: Ve.IDLE,
16660
+ status: Je.IDLE,
16661
16661
  name: "",
16662
16662
  description: ""
16663
16663
  }), e;
@@ -16666,7 +16666,7 @@ class jl extends gt.EventEmitter {
16666
16666
  this.checkResults.set(e, t), this.emit("checkUpdate", e, t);
16667
16667
  }
16668
16668
  isSuccess() {
16669
- return Array.from(this.checkResults.values()).every((e) => e.status !== Ve.FAILED);
16669
+ return Array.from(this.checkResults.values()).every((e) => e.status !== Je.FAILED);
16670
16670
  }
16671
16671
  getResults() {
16672
16672
  return Array.from(this.checkResults.values());
@@ -16712,7 +16712,7 @@ class jl extends gt.EventEmitter {
16712
16712
  });
16713
16713
  }
16714
16714
  }
16715
- function Ll() {
16715
+ function Nl() {
16716
16716
  const i = document.createElement("style");
16717
16717
  return i.textContent = `
16718
16718
  * {
@@ -16720,7 +16720,7 @@ function Ll() {
16720
16720
  }
16721
16721
  `, i;
16722
16722
  }
16723
- function Nl() {
16723
+ function xl() {
16724
16724
  const i = document.createElement("style");
16725
16725
  return i.textContent = `
16726
16726
  * {
@@ -16729,7 +16729,7 @@ function Nl() {
16729
16729
  }
16730
16730
  `, i;
16731
16731
  }
16732
- function xl(i) {
16732
+ function Ll(i) {
16733
16733
  Vo(i, "svelte-pjz0tt", '#liveroom-client-element.svelte-pjz0tt.svelte-pjz0tt{font-family:Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}#users-container.svelte-pjz0tt.svelte-pjz0tt{z-index:99999;position:fixed;inset:0;overflow:hidden;pointer-events:none}.user.svelte-pjz0tt.svelte-pjz0tt{z-index:10;position:absolute;top:0;left:0;user-select:none;transform:translate(var(--x), var(--y));transition:transform 100ms linear;will-change:transform}.user.svelte-pjz0tt .cursor.svelte-pjz0tt{position:absolute;top:0;left:0;color:var(--color);transform-origin:top left;transform:rotate(6deg)}.user[data-isself="true"].svelte-pjz0tt .cursor.svelte-pjz0tt{display:none}.user.svelte-pjz0tt .user-label.svelte-pjz0tt{font-weight:600;font-size:12px;color:black;background-color:var(--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:9999px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);display:flex;flex-direction:column;justify-content:center;align-items:center}.user.svelte-pjz0tt .user-label[data-cameraenabled="false"].svelte-pjz0tt{position:absolute;top:18px;left:14px}.user.svelte-pjz0tt .user-label[data-cameraenabled="true"].svelte-pjz0tt{position:absolute;top:10px;left:6px}.user[data-isself="true"].svelte-pjz0tt .user-label.svelte-pjz0tt{display:none}.user-label.svelte-pjz0tt .user-name.svelte-pjz0tt{display:flex;justify-content:center;align-items:center;background-color:var(--color)}.user.svelte-pjz0tt .user-label[data-cameraenabled="false"] .user-name.svelte-pjz0tt{padding:4px 10px}.user.svelte-pjz0tt .user-label[data-cameraenabled="true"] .user-name.svelte-pjz0tt{position:absolute;inset-inline:0;bottom:0;padding:1px 0 5px 0}.user.svelte-pjz0tt .user-label #video-container.svelte-pjz0tt{height:100px;width:100px;overflow:hidden;display:flex;justify-content:center;align-items:center}.user.svelte-pjz0tt .user-label[data-cameraenabled="false"] #video-container.svelte-pjz0tt{display:none}.user.svelte-pjz0tt .user-label #video-container video.svelte-pjz0tt{height:100%;aspect-ratio:16 / 9;transform:scaleX(-1);margin-bottom:30px}.user.svelte-pjz0tt .halo.svelte-pjz0tt{transform:scale(0);z-index:-1;position:absolute;top:-60px;left:-60px;width:120px;height:120px;border-radius:9999px;border:1px solid var(--color75);background-color:var(--color25);transition:transform 200ms ease-in-out;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-pjz0tt .halo[data-show="true"].svelte-pjz0tt{transform:scale(1)}');
16734
16734
  }
16735
16735
  function Jr(i, e, t) {
@@ -16757,7 +16757,7 @@ function jr(i) {
16757
16757
  G(e, "id", "users-container"), G(e, "class", "svelte-pjz0tt");
16758
16758
  },
16759
16759
  m(a, o) {
16760
- Nn(a, e, o);
16760
+ xn(a, e, o);
16761
16761
  for (let c = 0; c < t.length; c += 1)
16762
16762
  t[c] && t[c].m(e, null);
16763
16763
  },
@@ -16782,7 +16782,7 @@ function Vr(i, e) {
16782
16782
  ), h, f, p = (
16783
16783
  /*user*/
16784
16784
  e[29].name + ""
16785
- ), b, T, w, _, M, Q, j, he;
16785
+ ), b, T, w, _, M, Q, j, de;
16786
16786
  const ae = () => (
16787
16787
  /*video_binding*/
16788
16788
  e[13](c, d)
@@ -16805,7 +16805,7 @@ function Vr(i, e) {
16805
16805
  (e[29].is_shift_key_down || /*user*/
16806
16806
  e[29].is_mouse_down)) && /*users_count*/
16807
16807
  e[3] > 1), G(t, "id", j = "user-" + /*user*/
16808
- e[29].id), G(t, "class", "user svelte-pjz0tt"), G(t, "data-isself", he = /*user*/
16808
+ e[29].id), G(t, "class", "user svelte-pjz0tt"), G(t, "data-isself", de = /*user*/
16809
16809
  e[29].id == /*me*/
16810
16810
  e[0].id), Ye(
16811
16811
  t,
@@ -16831,7 +16831,7 @@ function Vr(i, e) {
16831
16831
  ) + "vh"), this.first = t;
16832
16832
  },
16833
16833
  m(K, I) {
16834
- Nn(K, t, I), Ne(t, n), Ne(n, s), Ne(t, r), Ne(t, a), Ne(a, o), Ne(o, c), ae(), Ne(a, h), Ne(a, f), Ne(f, b), Ne(t, w), Ne(t, _), Ne(t, Q);
16834
+ xn(K, t, I), Oe(t, n), Oe(n, s), Oe(t, r), Oe(t, a), Oe(a, o), Oe(o, c), ae(), Oe(a, h), Oe(a, f), Oe(f, b), Oe(t, w), Oe(t, _), Oe(t, Q);
16835
16835
  },
16836
16836
  p(K, I) {
16837
16837
  e = K, I[0] & /*users*/
@@ -16854,9 +16854,9 @@ function Vr(i, e) {
16854
16854
  e[3] > 1) && G(_, "data-show", M), I[0] & /*users*/
16855
16855
  2 && j !== (j = "user-" + /*user*/
16856
16856
  e[29].id) && G(t, "id", j), I[0] & /*users, me*/
16857
- 3 && he !== (he = /*user*/
16857
+ 3 && de !== (de = /*user*/
16858
16858
  e[29].id == /*me*/
16859
- e[0].id) && G(t, "data-isself", he), I[0] & /*users*/
16859
+ e[0].id) && G(t, "data-isself", de), I[0] & /*users*/
16860
16860
  2 && Ye(
16861
16861
  t,
16862
16862
  "--color",
@@ -16900,7 +16900,7 @@ function Dl(i) {
16900
16900
  e = Xe("div"), t && t.c(), G(e, "id", "liveroom-client-element"), G(e, "class", "svelte-pjz0tt");
16901
16901
  },
16902
16902
  m(n, s) {
16903
- Nn(n, e, s), t && t.m(e, null);
16903
+ xn(n, e, s), t && t.m(e, null);
16904
16904
  },
16905
16905
  p(n, s) {
16906
16906
  /*me*/
@@ -16921,21 +16921,21 @@ function _s(i, e) {
16921
16921
  return e === "vertical" && ["auto", "scroll"].includes(t) && i.scrollHeight > i.clientHeight || e === "horizontal" && ["auto", "scroll"].includes(n) && i.scrollWidth > i.clientWidth ? i : i.parentElement ? _s(i.parentElement, e) : window;
16922
16922
  }
16923
16923
  function Ml(i, e, t) {
16924
- let { version: n } = e, { url: s } = e, { room_id: r } = e, { user_name: a = void 0 } = e, { user_color: o = void 0 } = e, c, u, d = !1, h = Ll(), f = Nl(), p, b, T, w, _ = {}, M;
16924
+ let { version: n } = e, { url: s } = e, { room_id: r } = e, { user_name: a = void 0 } = e, { user_color: o = void 0 } = e, c, u, d = !1, h = Nl(), f = xl(), p, b, T, w, _ = {}, M;
16925
16925
  Go(async () => {
16926
16926
  console.log(`[Liveroom] Starting in room '${r}' (user name: '${a}')... (v${n})`), j();
16927
16927
  }), Ko(() => {
16928
- he(), li();
16928
+ de(), li();
16929
16929
  });
16930
16930
  async function Q() {
16931
- if (console.log("[LiveKit] Beginning setup..."), t(9, u = new Co({ dynacast: !0 }).on(P.TrackSubscribed, async (O, oe, ce) => {
16932
- switch (console.log("[LiveKit] Track Subscribed", O, oe, ce), console.table({
16933
- identity: ce.identity,
16934
- source: oe.source
16935
- }), oe.source) {
16931
+ if (console.log("[LiveKit] Beginning setup..."), t(9, u = new Co({ dynacast: !0 }).on(P.TrackSubscribed, async (L, he, fe) => {
16932
+ switch (console.log("[LiveKit] Track Subscribed", L, he, fe), console.table({
16933
+ identity: fe.identity,
16934
+ source: he.source
16935
+ }), he.source) {
16936
16936
  case C.Source.Camera: {
16937
- const Ae = _[ce.identity];
16938
- Ae && (console.log(`[LiveKit] Attaching user camera (identity ${ce.identity})`), O.attach(Ae));
16937
+ const Ge = _[fe.identity];
16938
+ Ge && (console.log(`[LiveKit] Attaching user camera (identity ${fe.identity})`), L.attach(Ge));
16939
16939
  break;
16940
16940
  }
16941
16941
  }
@@ -16943,13 +16943,7 @@ function Ml(i, e, t) {
16943
16943
  throw new Error("LiveKit websocket URL not set");
16944
16944
  if (!w)
16945
16945
  throw new Error("LiveKit token not set");
16946
- console.log(`[LiveKit] Connecting to '${T}'...`), await u.connect(T, w, { autoSubscribe: !0 }), console.log("[LiveKit] Connected to room", u.name), await Promise.all([
16947
- u.localParticipant.enableCameraAndMicrophone().then(() => console.log("[LiveKit] Local camera & mic enabled")).then(async () => {
16948
- var Ae, Oe, Z;
16949
- const O = (Oe = (Ae = u == null ? void 0 : u.localParticipant) == null ? void 0 : Ae.videoTracks) == null ? void 0 : Oe.values(), oe = O && ((Z = Array.from(O)[0]) == null ? void 0 : Z.track), ce = p && _[p.id];
16950
- ce && oe && (console.log("[LiveKit] Attaching local user camera"), oe.attach(ce));
16951
- })
16952
- ]);
16946
+ console.log(`[LiveKit] Connecting to '${T}'...`), await u.connect(T, w, { autoSubscribe: !0 }), console.log("[LiveKit] Connected to room", u.name);
16953
16947
  }
16954
16948
  function j() {
16955
16949
  c = new uu({
@@ -16967,62 +16961,62 @@ function Ml(i, e, t) {
16967
16961
  user_agent: window.navigator.userAgent
16968
16962
  },
16969
16963
  socketOptions: { logger: null }
16970
- }), c.addEventListener("wheel-from-another-user", ({ detail: { delta_x: O, delta_y: oe, x: ce, y: Ae } }) => {
16971
- const Oe = parseInt(O), Z = parseInt(oe), vt = new WheelEvent(
16964
+ }), c.addEventListener("wheel-from-another-user", ({ detail: { delta_x: L, delta_y: he, x: fe, y: Ge } }) => {
16965
+ const Ke = parseInt(L), te = parseInt(he), vt = new WheelEvent(
16972
16966
  "wheel",
16973
16967
  {
16974
16968
  view: window,
16975
16969
  bubbles: !0,
16976
16970
  cancelable: !0,
16977
- clientX: window.innerWidth * parseFloat(ce) / 100,
16978
- clientY: window.innerHeight * parseFloat(Ae) / 100,
16979
- deltaX: Oe,
16980
- deltaY: Z,
16971
+ clientX: window.innerWidth * parseFloat(fe) / 100,
16972
+ clientY: window.innerHeight * parseFloat(Ge) / 100,
16973
+ deltaX: Ke,
16974
+ deltaY: te,
16981
16975
  deltaMode: 0
16982
16976
  }
16983
16977
  ), on = document.head.contains(f);
16984
16978
  on && document.head.removeChild(f);
16985
16979
  const ie = document.elementFromPoint(vt.clientX, vt.clientY);
16986
- on && document.head.appendChild(f), (ie instanceof HTMLElement || ie instanceof SVGElement) && (Math.abs(Z) >= Math.abs(Oe) ? _s(ie, "vertical").scrollBy({
16987
- top: Z,
16980
+ on && document.head.appendChild(f), (ie instanceof HTMLElement || ie instanceof SVGElement) && (Math.abs(te) >= Math.abs(Ke) ? _s(ie, "vertical").scrollBy({
16981
+ top: te,
16988
16982
  left: 0,
16989
16983
  behavior: "instant"
16990
16984
  }) : _s(ie, "horizontal").scrollBy({
16991
16985
  top: 0,
16992
- left: Oe,
16986
+ left: Ke,
16993
16987
  behavior: "instant"
16994
16988
  }));
16995
- }), c.addEventListener("click-from-another-user", ({ detail: { x: O, y: oe } }) => {
16996
- const ce = new MouseEvent(
16989
+ }), c.addEventListener("click-from-another-user", ({ detail: { x: L, y: he } }) => {
16990
+ const fe = new MouseEvent(
16997
16991
  "click",
16998
16992
  {
16999
16993
  view: window,
17000
16994
  bubbles: !0,
17001
16995
  cancelable: !0,
17002
- clientX: window.innerWidth * parseFloat(O) / 100,
17003
- clientY: window.innerHeight * parseFloat(oe) / 100
16996
+ clientX: window.innerWidth * parseFloat(L) / 100,
16997
+ clientY: window.innerHeight * parseFloat(he) / 100
17004
16998
  }
17005
- ), Ae = document.head.contains(f);
17006
- Ae && document.head.removeChild(f);
17007
- const Oe = document.elementFromPoint(ce.clientX, ce.clientY);
17008
- Ae && document.head.appendChild(f), (Oe instanceof HTMLElement || Oe instanceof SVGElement) && Oe.dispatchEvent(ce);
17009
- }), c.addEventListener("livestate-change", ({ detail: { state: O } }) => {
17010
- var oe, ce;
17011
- (oe = O == null ? void 0 : O.me) != null && oe.name && O.me.name != (p == null ? void 0 : p.name) && (sessionStorage == null || sessionStorage.setItem(Fo, O.me.name)), (ce = O == null ? void 0 : O.me) != null && ce.color && O.me.color != (p == null ? void 0 : p.color) && (sessionStorage == null || sessionStorage.setItem(Bo, O.me.color)), t(4, r = O.room_id), t(0, p = O.me), t(1, b = O.users), t(11, T = O.livekit_ws_url), t(12, w = O.livekit_token);
17012
- }), c.connect(), window.addEventListener("mousemove", ae), window.addEventListener("mousedown", q), window.addEventListener("mouseup", K), window.addEventListener("keydown", F), window.addEventListener("keyup", fe), window.addEventListener("resize", Ie);
17013
- }
17014
- function he() {
17015
- window.removeEventListener("resize", Ie), window.removeEventListener("keyup", fe), window.removeEventListener("keydown", F), window.removeEventListener("mouseup", K), window.removeEventListener("mousedown", q), window.removeEventListener("mousemove", ae), c == null || c.disconnect(), c = void 0, u == null || u.disconnect(), t(9, u = void 0);
17016
- }
17017
- function ae(O) {
16999
+ ), Ge = document.head.contains(f);
17000
+ Ge && document.head.removeChild(f);
17001
+ const Ke = document.elementFromPoint(fe.clientX, fe.clientY);
17002
+ Ge && document.head.appendChild(f), (Ke instanceof HTMLElement || Ke instanceof SVGElement) && Ke.dispatchEvent(fe);
17003
+ }), c.addEventListener("livestate-change", ({ detail: { state: L } }) => {
17004
+ var he, fe;
17005
+ (he = L == null ? void 0 : L.me) != null && he.name && L.me.name != (p == null ? void 0 : p.name) && (sessionStorage == null || sessionStorage.setItem(Fo, L.me.name)), (fe = L == null ? void 0 : L.me) != null && fe.color && L.me.color != (p == null ? void 0 : p.color) && (sessionStorage == null || sessionStorage.setItem(Bo, L.me.color)), t(4, r = L.room_id), t(0, p = L.me), t(1, b = L.users), t(11, T = L.livekit_ws_url), t(12, w = L.livekit_token);
17006
+ }), c.connect(), window.addEventListener("mousemove", ae), window.addEventListener("mousedown", q), window.addEventListener("mouseup", K), window.addEventListener("keydown", F), window.addEventListener("keyup", le), window.addEventListener("resize", Ie);
17007
+ }
17008
+ function de() {
17009
+ window.removeEventListener("resize", Ie), window.removeEventListener("keyup", le), window.removeEventListener("keydown", F), window.removeEventListener("mouseup", K), window.removeEventListener("mousedown", q), window.removeEventListener("mousemove", ae), c == null || c.disconnect(), c = void 0, u == null || u.disconnect(), t(9, u = void 0);
17010
+ }
17011
+ function ae(L) {
17018
17012
  c && (p != null && p.id) && c.dispatchEvent(new CustomEvent(
17019
17013
  "mouse_move",
17020
17014
  {
17021
17015
  detail: {
17022
17016
  user_id: p.id,
17023
- x: Number(O.clientX / window.innerWidth * 100).toFixed(2),
17017
+ x: Number(L.clientX / window.innerWidth * 100).toFixed(2),
17024
17018
  // in %
17025
- y: Number(O.clientY / window.innerHeight * 100).toFixed(2)
17019
+ y: Number(L.clientY / window.innerHeight * 100).toFixed(2)
17026
17020
  }
17027
17021
  // in %
17028
17022
  }
@@ -17035,11 +17029,11 @@ function Ml(i, e, t) {
17035
17029
  c && (p != null && p.id) && c.dispatchEvent(new CustomEvent("mouse_up", { detail: { user_id: p.id } }));
17036
17030
  }
17037
17031
  const I = ["Shift"];
17038
- function F(O) {
17039
- !O.repeat && I.includes(O.key) && c && (p != null && p.id) && c.dispatchEvent(new CustomEvent("key_down", { detail: { key: O.key, user_id: p.id } }));
17032
+ function F(L) {
17033
+ !L.repeat && I.includes(L.key) && c && (p != null && p.id) && c.dispatchEvent(new CustomEvent("key_down", { detail: { key: L.key, user_id: p.id } }));
17040
17034
  }
17041
- function fe(O) {
17042
- I.includes(O.key) && c && (p != null && p.id) && c.dispatchEvent(new CustomEvent("key_up", { detail: { key: O.key, user_id: p.id } }));
17035
+ function le(L) {
17036
+ I.includes(L.key) && c && (p != null && p.id) && c.dispatchEvent(new CustomEvent("key_up", { detail: { key: L.key, user_id: p.id } }));
17043
17037
  }
17044
17038
  function Ie() {
17045
17039
  c && (p != null && p.id) && c.dispatchEvent(new CustomEvent(
@@ -17059,19 +17053,19 @@ function Ml(i, e, t) {
17059
17053
  function li() {
17060
17054
  document.head.removeChild(h), document.head.removeChild(f), t(10, d = !1);
17061
17055
  }
17062
- function an(O, oe) {
17063
- is[O ? "unshift" : "push"](() => {
17064
- _[oe.id] = O, t(2, _);
17056
+ function an(L, he) {
17057
+ is[L ? "unshift" : "push"](() => {
17058
+ _[he.id] = L, t(2, _);
17065
17059
  });
17066
17060
  }
17067
- return i.$$set = (O) => {
17068
- "version" in O && t(5, n = O.version), "url" in O && t(6, s = O.url), "room_id" in O && t(4, r = O.room_id), "user_name" in O && t(7, a = O.user_name), "user_color" in O && t(8, o = O.user_color);
17061
+ return i.$$set = (L) => {
17062
+ "version" in L && t(5, n = L.version), "url" in L && t(6, s = L.url), "room_id" in L && t(4, r = L.room_id), "user_name" in L && t(7, a = L.user_name), "user_color" in L && t(8, o = L.user_color);
17069
17063
  }, i.$$.update = () => {
17070
17064
  i.$$.dirty[0] & /*livekitRoom, me, users, livekit_ws_url, livekit_token*/
17071
17065
  6659 && !u && p && b && T && w && Q(), i.$$.dirty[0] & /*users*/
17072
17066
  2 && t(3, M = Object.keys(b || {}).length), i.$$.dirty[0] & /*isClickBlocked, users*/
17073
- 1026 && !d && b && Object.values(b).some((O) => O.type == "admin" && O.is_b_key_down) && rn(), i.$$.dirty[0] & /*isClickBlocked, users*/
17074
- 1026 && d && b && Object.values(b).filter((O) => O.type == "admin").every((O) => !O.is_b_key_down) && li();
17067
+ 1026 && !d && b && Object.values(b).some((L) => L.type == "admin" && L.is_b_key_down) && rn(), i.$$.dirty[0] & /*isClickBlocked, users*/
17068
+ 1026 && d && b && Object.values(b).filter((L) => L.type == "admin").every((L) => !L.is_b_key_down) && li();
17075
17069
  }, [
17076
17070
  p,
17077
17071
  b,
@@ -17104,7 +17098,7 @@ class Ul extends cc {
17104
17098
  user_name: 7,
17105
17099
  user_color: 8
17106
17100
  },
17107
- xl,
17101
+ Ll,
17108
17102
  [-1, -1]
17109
17103
  );
17110
17104
  }