liveroom-client-element 0.0.37 → 0.0.39

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,8 +1,8 @@
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-71d35493.js";
5
- function Gi() {
4
+ import { a as Fo, c as Bo } from "./constants-c295aa34.js";
5
+ function Wi() {
6
6
  }
7
7
  function $r(i) {
8
8
  return i();
@@ -28,7 +28,7 @@ function Ne(i, e) {
28
28
  function Vo(i, e, t) {
29
29
  const n = $o(i);
30
30
  if (!n.getElementById(e)) {
31
- const s = Ye("style");
31
+ const s = Xe("style");
32
32
  s.id = e, s.textContent = t, qo(n, s);
33
33
  }
34
34
  }
@@ -55,7 +55,7 @@ function Nn(i, e, t) {
55
55
  function nn(i) {
56
56
  i.parentNode && i.parentNode.removeChild(i);
57
57
  }
58
- function Ye(i) {
58
+ function Xe(i) {
59
59
  return document.createElement(i);
60
60
  }
61
61
  function qs(i) {
@@ -67,20 +67,20 @@ function Hr(i) {
67
67
  function cn() {
68
68
  return Hr(" ");
69
69
  }
70
- function z(i, e, t) {
70
+ function G(i, e, t) {
71
71
  t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
72
72
  }
73
73
  function Ho(i) {
74
74
  return Array.from(i.childNodes);
75
75
  }
76
- function Wo(i, e) {
76
+ function zo(i, e) {
77
77
  e = "" + e, i.data !== e && (i.data = /** @type {string} */
78
78
  e);
79
79
  }
80
- function hi(i, e, t, n) {
80
+ function Ye(i, e, t, n) {
81
81
  t == null ? i.style.removeProperty(e) : i.style.setProperty(e, t, n ? "important" : "");
82
82
  }
83
- function Go(i) {
83
+ function Wo(i) {
84
84
  const e = {};
85
85
  return i.childNodes.forEach(
86
86
  /** @param {Element} node */
@@ -89,37 +89,37 @@ function Go(i) {
89
89
  }
90
90
  ), e;
91
91
  }
92
- let zi;
92
+ let Gi;
93
93
  function Fi(i) {
94
- zi = i;
94
+ Gi = i;
95
95
  }
96
- function Wr() {
97
- if (!zi)
96
+ function zr() {
97
+ if (!Gi)
98
98
  throw new Error("Function called outside component initialization");
99
- return zi;
99
+ return Gi;
100
100
  }
101
- function zo(i) {
102
- Wr().$$.on_mount.push(i);
101
+ function Go(i) {
102
+ zr().$$.on_mount.push(i);
103
103
  }
104
104
  function Ko(i) {
105
- Wr().$$.on_destroy.push(i);
105
+ zr().$$.on_destroy.push(i);
106
106
  }
107
107
  const mi = [], is = [];
108
108
  let yi = [];
109
109
  const Hs = [], Yo = /* @__PURE__ */ Promise.resolve();
110
110
  let ns = !1;
111
111
  function Xo() {
112
- ns || (ns = !0, Yo.then(ii));
112
+ ns || (ns = !0, Yo.then(ni));
113
113
  }
114
114
  function ss(i) {
115
115
  yi.push(i);
116
116
  }
117
117
  const $n = /* @__PURE__ */ new Set();
118
118
  let fi = 0;
119
- function ii() {
119
+ function ni() {
120
120
  if (fi !== 0)
121
121
  return;
122
- const i = zi;
122
+ const i = Gi;
123
123
  do {
124
124
  try {
125
125
  for (; fi < mi.length; ) {
@@ -153,10 +153,10 @@ function Zo(i) {
153
153
  yi.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), yi = e;
154
154
  }
155
155
  const ec = /* @__PURE__ */ new Set();
156
- function Gr(i, e) {
156
+ function Wr(i, e) {
157
157
  i && i.i && (ec.delete(i), i.i(e));
158
158
  }
159
- function Ws(i) {
159
+ function zs(i) {
160
160
  return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
161
161
  }
162
162
  function tc(i, e) {
@@ -170,16 +170,16 @@ function ic(i, e, t, n, s, r, a, o, c, u, d, h) {
170
170
  const w = [], _ = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map(), Q = [];
171
171
  for (b = p; b--; ) {
172
172
  const q = h(s, r, b), K = t(q);
173
- let A = a.get(K);
174
- A ? n && Q.push(() => A.p(q, e)) : (A = u(K, q), A.c()), _.set(K, w[b] = A), K in T && M.set(K, Math.abs(b - T[K]));
173
+ let I = a.get(K);
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
176
  const j = /* @__PURE__ */ new Set(), he = /* @__PURE__ */ new Set();
177
177
  function ae(q) {
178
- Gr(q, 1), q.m(o, d), a.set(q.key, q), d = q.first, p--;
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
- const q = w[p - 1], K = i[f - 1], A = q.key, F = K.key;
182
- q === K ? (d = q.first, f--, p--) : _.has(F) ? !a.has(A) || j.has(A) ? ae(q) : he.has(F) ? f-- : M.get(A) > M.get(F) ? (he.add(A), ae(q)) : (j.add(F), f--) : (c(K, a), f--);
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--);
183
183
  }
184
184
  for (; f--; ) {
185
185
  const q = i[f];
@@ -204,14 +204,14 @@ function rc(i, e) {
204
204
  i.$$.dirty[0] === -1 && (mi.push(i), Xo(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
205
205
  }
206
206
  function ac(i, e, t, n, s, r, a = null, o = [-1]) {
207
- const c = zi;
207
+ const c = Gi;
208
208
  Fi(i);
209
209
  const u = i.$$ = {
210
210
  fragment: null,
211
211
  ctx: [],
212
212
  // state
213
213
  props: r,
214
- update: Gi,
214
+ update: Wi,
215
215
  not_equal: s,
216
216
  bound: $s(),
217
217
  // lifecycle
@@ -238,12 +238,12 @@ function ac(i, e, t, n, s, r, a = null, o = [-1]) {
238
238
  u.fragment && u.fragment.l(h), h.forEach(nn);
239
239
  } else
240
240
  u.fragment && u.fragment.c();
241
- e.intro && Gr(i.$$.fragment), nc(i, e.target, e.anchor), ii();
241
+ e.intro && Wr(i.$$.fragment), nc(i, e.target, e.anchor), ni();
242
242
  }
243
243
  Fi(c);
244
244
  }
245
- let zr;
246
- typeof HTMLElement == "function" && (zr = class extends HTMLElement {
245
+ let Gr;
246
+ typeof HTMLElement == "function" && (Gr = class extends HTMLElement {
247
247
  constructor(e, t, n) {
248
248
  super();
249
249
  /** The Svelte component constructor */
@@ -286,7 +286,7 @@ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
286
286
  let a;
287
287
  return {
288
288
  c: function() {
289
- a = Ye("slot"), r !== "default" && z(a, "name", r);
289
+ a = Xe("slot"), r !== "default" && G(a, "name", r);
290
290
  },
291
291
  /**
292
292
  * @param {HTMLElement} target
@@ -303,7 +303,7 @@ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
303
303
  };
304
304
  if (await Promise.resolve(), !this.$$cn)
305
305
  return;
306
- const t = {}, n = Go(this);
306
+ const t = {}, n = Wo(this);
307
307
  for (const r of this.$$s)
308
308
  r in n && (t[r] = [e(r)]);
309
309
  for (const r of this.attributes) {
@@ -391,7 +391,7 @@ function pn(i, e, t, n) {
391
391
  }
392
392
  }
393
393
  function oc(i, e, t, n, s, r) {
394
- let a = class extends zr {
394
+ let a = class extends Gr {
395
395
  constructor() {
396
396
  super(i, t, s), this.$$p_d = e;
397
397
  }
@@ -442,7 +442,7 @@ class cc {
442
442
  }
443
443
  /** @returns {void} */
444
444
  $destroy() {
445
- sc(this, 1), this.$destroy = Gi;
445
+ sc(this, 1), this.$destroy = Wi;
446
446
  }
447
447
  /**
448
448
  * @template {Extract<keyof Events, string>} K
@@ -452,7 +452,7 @@ class cc {
452
452
  */
453
453
  $on(e, t) {
454
454
  if (!qr(t))
455
- return Gi;
455
+ return Wi;
456
456
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
457
457
  return n.push(t), () => {
458
458
  const s = n.indexOf(t);
@@ -504,7 +504,7 @@ function vc(i) {
504
504
  function yc(i) {
505
505
  return i ? i.slice(1).split("/").map(gc) : [];
506
506
  }
507
- function G(i) {
507
+ function W(i) {
508
508
  return bc(i) ? "" : "/" + i.map((e) => vc(String(e))).join("/");
509
509
  }
510
510
  const $ = (i) => typeof i == "string" ? yc(i) : i, bc = (i) => !i.length, kc = Object.prototype.hasOwnProperty;
@@ -568,7 +568,7 @@ class Is extends Ue {
568
568
  toJson(t) {
569
569
  return {
570
570
  op: "add",
571
- path: G(this.path),
571
+ path: W(this.path),
572
572
  value: this.value
573
573
  };
574
574
  }
@@ -600,7 +600,7 @@ class Yr extends Ue {
600
600
  toJson(t) {
601
601
  const n = {
602
602
  op: "remove",
603
- path: G(this.path)
603
+ path: W(this.path)
604
604
  };
605
605
  return this.oldValue !== void 0 && (n.oldValue = this.oldValue), n;
606
606
  }
@@ -635,7 +635,7 @@ class Sc extends Ue {
635
635
  toJson(t) {
636
636
  const n = {
637
637
  op: "replace",
638
- path: G(this.path),
638
+ path: W(this.path),
639
639
  value: this.value
640
640
  };
641
641
  return this.oldValue !== void 0 && (n.oldValue = this.oldValue), n;
@@ -668,8 +668,8 @@ class Cc extends Ue {
668
668
  toJson(t) {
669
669
  return {
670
670
  op: "move",
671
- path: G(this.path),
672
- from: G(this.from)
671
+ path: W(this.path),
672
+ from: W(this.from)
673
673
  };
674
674
  }
675
675
  toCompact(t, n) {
@@ -700,8 +700,8 @@ class wc extends Ue {
700
700
  toJson(t) {
701
701
  return {
702
702
  op: "copy",
703
- path: G(this.path),
704
- from: G(this.from)
703
+ path: W(this.path),
704
+ from: W(this.from)
705
705
  };
706
706
  }
707
707
  toCompact(t, n) {
@@ -767,7 +767,7 @@ class Ec extends Ce {
767
767
  toJson(t) {
768
768
  const n = {
769
769
  op: "test",
770
- path: G(t ? this.path.slice(t.path.length) : this.path),
770
+ path: W(t ? this.path.slice(t.path.length) : this.path),
771
771
  value: this.value
772
772
  };
773
773
  return this.not && (n.not = this.not), n;
@@ -797,7 +797,7 @@ class Pc extends Ue {
797
797
  toJson(e) {
798
798
  return {
799
799
  op: "flip",
800
- path: G(this.path)
800
+ path: W(this.path)
801
801
  };
802
802
  }
803
803
  toCompact(e, t) {
@@ -826,7 +826,7 @@ class Rc extends Ue {
826
826
  toJson(t) {
827
827
  return {
828
828
  op: "inc",
829
- path: G(this.path),
829
+ path: W(this.path),
830
830
  inc: this.inc
831
831
  };
832
832
  }
@@ -864,7 +864,7 @@ class _c extends Ue {
864
864
  toJson(t) {
865
865
  return {
866
866
  op: "str_ins",
867
- path: G(this.path),
867
+ path: W(this.path),
868
868
  pos: this.pos,
869
869
  str: this.str
870
870
  };
@@ -903,12 +903,12 @@ class Ic extends Ue {
903
903
  toJson(t) {
904
904
  return typeof this.str == "string" ? {
905
905
  op: "str_del",
906
- path: G(this.path),
906
+ path: W(this.path),
907
907
  pos: this.pos,
908
908
  str: this.str
909
909
  } : {
910
910
  op: "str_del",
911
- path: G(this.path),
911
+ path: W(this.path),
912
912
  pos: this.pos,
913
913
  len: this.len
914
914
  };
@@ -996,7 +996,7 @@ class Lc extends Ue {
996
996
  toJson(t) {
997
997
  const n = {
998
998
  op: "split",
999
- path: G(this.path),
999
+ path: W(this.path),
1000
1000
  pos: this.pos
1001
1001
  };
1002
1002
  return this.props && (n.props = this.props), n;
@@ -1037,7 +1037,7 @@ class Nc extends Ue {
1037
1037
  toJson(t) {
1038
1038
  const n = {
1039
1039
  op: "merge",
1040
- path: G(this.path),
1040
+ path: W(this.path),
1041
1041
  pos: this.pos
1042
1042
  };
1043
1043
  return this.props && (n.props = this.props), n;
@@ -1085,7 +1085,7 @@ class Dc extends Ue {
1085
1085
  toJson(t) {
1086
1086
  const n = {
1087
1087
  op: "extend",
1088
- path: G(this.path),
1088
+ path: W(this.path),
1089
1089
  props: this.props
1090
1090
  };
1091
1091
  return this.deleteNull && (n.deleteNull = this.deleteNull), n;
@@ -1116,7 +1116,7 @@ class Mc extends Ce {
1116
1116
  toJson(e) {
1117
1117
  return {
1118
1118
  op: "defined",
1119
- path: G(e ? this.path.slice(e.path.length) : this.path)
1119
+ path: W(e ? this.path.slice(e.path.length) : this.path)
1120
1120
  };
1121
1121
  }
1122
1122
  toCompact(e, t) {
@@ -1149,7 +1149,7 @@ class Uc extends Ce {
1149
1149
  toJson(e) {
1150
1150
  return {
1151
1151
  op: "undefined",
1152
- path: G(e ? this.path.slice(e.path.length) : this.path)
1152
+ path: W(e ? this.path.slice(e.path.length) : this.path)
1153
1153
  };
1154
1154
  }
1155
1155
  toCompact(e, t) {
@@ -1179,7 +1179,7 @@ class Bc extends Ce {
1179
1179
  toJson(t) {
1180
1180
  return {
1181
1181
  op: "test_type",
1182
- path: G(t ? this.path.slice(t.path.length) : this.path),
1182
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1183
1183
  type: this.type
1184
1184
  };
1185
1185
  }
@@ -1214,7 +1214,7 @@ class Jc extends Ce {
1214
1214
  toJson(t) {
1215
1215
  const n = {
1216
1216
  op: "test_string",
1217
- path: G(t ? this.path.slice(t.path.length) : this.path),
1217
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1218
1218
  pos: this.pos,
1219
1219
  str: this.str
1220
1220
  };
@@ -1251,7 +1251,7 @@ class jc extends Ce {
1251
1251
  toJson(t) {
1252
1252
  const n = {
1253
1253
  op: "test_string_len",
1254
- path: G(t ? this.path.slice(t.path.length) : this.path),
1254
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1255
1255
  len: this.len
1256
1256
  };
1257
1257
  return this.not && (n.not = this.not), n;
@@ -1287,7 +1287,7 @@ class Vc extends Ce {
1287
1287
  toJson(t) {
1288
1288
  const n = {
1289
1289
  op: "contains",
1290
- path: G(t ? this.path.slice(t.path.length) : this.path),
1290
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1291
1291
  value: this.value
1292
1292
  };
1293
1293
  return this.ignore_case && (n.ignore_case = this.ignore_case), n;
@@ -1324,7 +1324,7 @@ class $c extends Ce {
1324
1324
  toJson(t) {
1325
1325
  const n = {
1326
1326
  op: "ends",
1327
- path: G(t ? this.path.slice(t.path.length) : this.path),
1327
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1328
1328
  value: this.value
1329
1329
  };
1330
1330
  return this.ignore_case && (n.ignore_case = this.ignore_case), n;
@@ -1361,7 +1361,7 @@ class qc extends Ce {
1361
1361
  toJson(t) {
1362
1362
  const n = {
1363
1363
  op: "starts",
1364
- path: G(t ? this.path.slice(t.path.length) : this.path),
1364
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1365
1365
  value: this.value
1366
1366
  };
1367
1367
  return this.ignore_case && (n.ignore_case = this.ignore_case), n;
@@ -1397,7 +1397,7 @@ class Hc extends Ce {
1397
1397
  toJson(t) {
1398
1398
  return {
1399
1399
  op: "in",
1400
- path: G(t ? this.path.slice(t.path.length) : this.path),
1400
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1401
1401
  value: this.value
1402
1402
  };
1403
1403
  }
@@ -1408,7 +1408,7 @@ class Hc extends Ce {
1408
1408
  t.encodeArrayHeader(3), t.writer.u8(33), t.encodeArray(n ? this.path.slice(n.path.length) : this.path), t.encodeArray(this.value);
1409
1409
  }
1410
1410
  }
1411
- class Wc extends Ce {
1411
+ class zc extends Ce {
1412
1412
  constructor(t, n) {
1413
1413
  super(t);
1414
1414
  x(this, "value");
@@ -1427,7 +1427,7 @@ class Wc extends Ce {
1427
1427
  toJson(t) {
1428
1428
  return {
1429
1429
  op: "less",
1430
- path: G(t ? this.path.slice(t.path.length) : this.path),
1430
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1431
1431
  value: this.value
1432
1432
  };
1433
1433
  }
@@ -1438,7 +1438,7 @@ class Wc extends Ce {
1438
1438
  t.encodeArrayHeader(3), t.writer.u8(34), t.encodeArray(n ? this.path.slice(n.path.length) : this.path), t.encodeNumber(this.value);
1439
1439
  }
1440
1440
  }
1441
- class Gc extends Ce {
1441
+ class Wc extends Ce {
1442
1442
  constructor(t, n) {
1443
1443
  super(t);
1444
1444
  x(this, "value");
@@ -1457,7 +1457,7 @@ class Gc extends Ce {
1457
1457
  toJson(t) {
1458
1458
  return {
1459
1459
  op: "more",
1460
- path: G(t ? this.path.slice(t.path.length) : this.path),
1460
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1461
1461
  value: this.value
1462
1462
  };
1463
1463
  }
@@ -1475,7 +1475,7 @@ class As extends Ce {
1475
1475
  this.ops = n;
1476
1476
  }
1477
1477
  }
1478
- class zc extends As {
1478
+ class Gc extends As {
1479
1479
  constructor(t, n) {
1480
1480
  super(t, n);
1481
1481
  x(this, "ops");
@@ -1496,7 +1496,7 @@ class zc extends As {
1496
1496
  toJson(t) {
1497
1497
  return {
1498
1498
  op: "and",
1499
- path: G(t ? this.path.slice(t.path.length) : this.path),
1499
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1500
1500
  apply: this.ops.map((s) => s.toJson(this))
1501
1501
  };
1502
1502
  }
@@ -1537,7 +1537,7 @@ class Kc extends As {
1537
1537
  toJson(t) {
1538
1538
  return {
1539
1539
  op: "or",
1540
- path: G(t ? this.path.slice(t.path.length) : this.path),
1540
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1541
1541
  apply: this.ops.map((s) => s.toJson(this))
1542
1542
  };
1543
1543
  }
@@ -1577,7 +1577,7 @@ class Yc extends As {
1577
1577
  toJson(t) {
1578
1578
  return {
1579
1579
  op: "not",
1580
- path: G(t ? this.path.slice(t.path.length) : this.path),
1580
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1581
1581
  apply: this.ops.map((s) => s.toJson(this))
1582
1582
  };
1583
1583
  }
@@ -1617,7 +1617,7 @@ class Xc extends Ce {
1617
1617
  toJson(t) {
1618
1618
  const n = {
1619
1619
  op: "matches",
1620
- path: G(t ? this.path.slice(t.path.length) : this.path),
1620
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1621
1621
  value: this.value
1622
1622
  };
1623
1623
  return this.ignore_case && (n.ignore_case = this.ignore_case), n;
@@ -1651,7 +1651,7 @@ class Zc extends Ce {
1651
1651
  toJson(t) {
1652
1652
  return {
1653
1653
  op: "type",
1654
- path: G(t ? this.path.slice(t.path.length) : this.path),
1654
+ path: W(t ? this.path.slice(t.path.length) : this.path),
1655
1655
  value: this.value
1656
1656
  };
1657
1657
  }
@@ -1718,12 +1718,12 @@ const eu = (i, e) => {
1718
1718
  case "in":
1719
1719
  return new Hc($(i.path), i.value);
1720
1720
  case "less":
1721
- return new Wc($(i.path), i.value);
1721
+ return new zc($(i.path), i.value);
1722
1722
  case "more":
1723
- return new Gc($(i.path), i.value);
1723
+ return new Wc($(i.path), i.value);
1724
1724
  case "and": {
1725
1725
  const t = $(i.path);
1726
- return new zc(t, i.apply.map((n) => mn({ ...n, path: [...t, ...$(n.path)] }, e)));
1726
+ return new Gc(t, i.apply.map((n) => mn({ ...n, path: [...t, ...$(n.path)] }, e)));
1727
1727
  }
1728
1728
  case "or": {
1729
1729
  const t = $(i.path);
@@ -1748,13 +1748,13 @@ 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", Xe = { 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, Le = {
1752
1752
  closed: "closed",
1753
1753
  errored: "errored",
1754
1754
  joined: "joined",
1755
1755
  joining: "joining",
1756
1756
  leaving: "leaving"
1757
- }, yt = {
1757
+ }, bt = {
1758
1758
  close: "phx_close",
1759
1759
  error: "phx_error",
1760
1760
  join: "phx_join",
@@ -1825,7 +1825,7 @@ 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, yt.join, this.params, this.timeout), this.pushBuffer = [], this.stateChangeRefs = [], this.rejoinTimer = new Xr(() => {
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(() => {
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();
@@ -1838,8 +1838,8 @@ var Bi = (i) => typeof i == "function" ? i : function() {
1838
1838
  }), this.onError((n) => {
1839
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();
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, yt.leave, Bi({}), this.timeout).send(), this.state = Le.errored, this.joinPush.reset(), this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1842
- }), this.on(yt.reply, (n, s) => {
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();
1842
+ }), this.on(bt.reply, (n, s) => {
1843
1843
  this.trigger(this.replyEventName(s), n);
1844
1844
  });
1845
1845
  }
@@ -1849,10 +1849,10 @@ var Bi = (i) => typeof i == "function" ? i : function() {
1849
1849
  return this.timeout = i, this.joinedOnce = !0, this.rejoin(), this.joinPush;
1850
1850
  }
1851
1851
  onClose(i) {
1852
- this.on(yt.close, i);
1852
+ this.on(bt.close, i);
1853
1853
  }
1854
1854
  onError(i) {
1855
- return this.on(yt.error, (e) => i(e));
1855
+ return this.on(bt.error, (e) => i(e));
1856
1856
  }
1857
1857
  on(i, e) {
1858
1858
  let t = this.bindingRef++;
@@ -1875,8 +1875,8 @@ var Bi = (i) => typeof i == "function" ? i : function() {
1875
1875
  leave(i = this.timeout) {
1876
1876
  this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state = Le.leaving;
1877
1877
  let e = () => {
1878
- this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(yt.close, "leave");
1879
- }, t = new un(this, yt.leave, Bi({}), i);
1878
+ this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(bt.close, "leave");
1879
+ }, t = new un(this, bt.leave, Bi({}), i);
1880
1880
  return t.receive("ok", () => e()).receive("timeout", () => e()), t.send(), this.canPush() || t.trigger("ok", {}), t;
1881
1881
  }
1882
1882
  onMessage(i, e, t) {
@@ -1973,7 +1973,7 @@ var Bi = (i) => typeof i == "function" ? i : function() {
1973
1973
  }, this.onerror = function() {
1974
1974
  }, this.onmessage = function() {
1975
1975
  }, this.onclose = function() {
1976
- }, this.pollEndpoint = this.normalizeEndpoint(i), this.readyState = Xe.connecting, this.poll();
1976
+ }, this.pollEndpoint = this.normalizeEndpoint(i), this.readyState = Qe.connecting, this.poll();
1977
1977
  }
1978
1978
  normalizeEndpoint(i) {
1979
1979
  return i.replace("ws://", "http://").replace("wss://", "https://").replace(new RegExp("(.*)/" + os.websocket), "$1/" + os.longpoll);
@@ -1982,13 +1982,13 @@ var Bi = (i) => typeof i == "function" ? i : function() {
1982
1982
  return Rn.appendParams(this.pollEndpoint, { token: this.token });
1983
1983
  }
1984
1984
  closeAndRetry(i, e, t) {
1985
- this.close(i, e, t), this.readyState = Xe.connecting;
1985
+ this.close(i, e, t), this.readyState = Qe.connecting;
1986
1986
  }
1987
1987
  ontimeout() {
1988
1988
  this.onerror("timeout"), this.closeAndRetry(1005, "timeout", !1);
1989
1989
  }
1990
1990
  isActive() {
1991
- return this.readyState === Xe.open || this.readyState === Xe.connecting;
1991
+ return this.readyState === Qe.open || this.readyState === Qe.connecting;
1992
1992
  }
1993
1993
  poll() {
1994
1994
  this.ajax("GET", null, () => this.ontimeout(), (i) => {
@@ -2007,7 +2007,7 @@ var Bi = (i) => typeof i == "function" ? i : function() {
2007
2007
  this.poll();
2008
2008
  break;
2009
2009
  case 410:
2010
- this.readyState = Xe.open, this.onopen({}), this.poll();
2010
+ this.readyState = Qe.open, this.onopen({}), this.poll();
2011
2011
  break;
2012
2012
  case 403:
2013
2013
  this.onerror(403), this.close(1008, "forbidden", !1);
@@ -2029,7 +2029,7 @@ var Bi = (i) => typeof i == "function" ? i : function() {
2029
2029
  close(i, e, t) {
2030
2030
  for (let s of this.reqs)
2031
2031
  s.abort();
2032
- this.readyState = Xe.closed;
2032
+ this.readyState = Qe.closed;
2033
2033
  let n = Object.assign({ code: 1e3, reason: void 0, wasClean: !0 }, { code: i, reason: e, wasClean: t });
2034
2034
  typeof CloseEvent < "u" ? this.onclose(new CloseEvent("close", n)) : this.onclose(n);
2035
2035
  }
@@ -2098,7 +2098,7 @@ var Bi = (i) => typeof i == "function" ? i : function() {
2098
2098
  let h = t.decode(i.slice(o, o + a));
2099
2099
  o = o + a;
2100
2100
  let f = i.slice(o, i.byteLength), p = { status: h, response: f };
2101
- return { join_ref: c, ref: u, topic: d, event: yt.reply, payload: p };
2101
+ return { join_ref: c, ref: u, topic: d, event: bt.reply, payload: p };
2102
2102
  },
2103
2103
  decodeBroadcast(i, e, t) {
2104
2104
  let n = e.getUint8(1), s = e.getUint8(2), r = this.HEADER_LENGTH + 2, a = t.decode(i.slice(r, r + n));
@@ -2206,7 +2206,7 @@ var Bi = (i) => typeof i == "function" ? i : function() {
2206
2206
  }, 150 * e);
2207
2207
  }
2208
2208
  waitForSocketClosed(i, e = 1) {
2209
- if (e === 5 || !this.conn || this.conn.readyState === Xe.closed) {
2209
+ if (e === 5 || !this.conn || this.conn.readyState === Qe.closed) {
2210
2210
  i();
2211
2211
  return;
2212
2212
  }
@@ -2227,16 +2227,16 @@ var Bi = (i) => typeof i == "function" ? i : function() {
2227
2227
  }
2228
2228
  triggerChanError() {
2229
2229
  this.channels.forEach((i) => {
2230
- i.isErrored() || i.isLeaving() || i.isClosed() || i.trigger(yt.error);
2230
+ i.isErrored() || i.isLeaving() || i.isClosed() || i.trigger(bt.error);
2231
2231
  });
2232
2232
  }
2233
2233
  connectionState() {
2234
2234
  switch (this.conn && this.conn.readyState) {
2235
- case Xe.connecting:
2235
+ case Qe.connecting:
2236
2236
  return "connecting";
2237
- case Xe.open:
2237
+ case Qe.open:
2238
2238
  return "open";
2239
- case Xe.closing:
2239
+ case Qe.closing:
2240
2240
  return "closing";
2241
2241
  default:
2242
2242
  return "closed";
@@ -2378,7 +2378,7 @@ class uu {
2378
2378
  }
2379
2379
  }
2380
2380
  Promise.resolve();
2381
- var Gs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2381
+ var Ws = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2382
2382
  /*! *****************************************************************************
2383
2383
  Copyright (C) Microsoft. All rights reserved.
2384
2384
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
@@ -2393,10 +2393,10 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
2393
2393
  See the Apache Version 2.0 License for specific language governing permissions
2394
2394
  and limitations under the License.
2395
2395
  ***************************************************************************** */
2396
- var zs;
2396
+ var Gs;
2397
2397
  (function(i) {
2398
2398
  (function(e) {
2399
- var t = typeof Gs == "object" ? Gs : typeof self == "object" ? self : typeof this == "object" ? this : Function("return this;")(), n = s(i);
2399
+ var t = typeof Ws == "object" ? Ws : typeof self == "object" ? self : typeof this == "object" ? this : Function("return this;")(), n = s(i);
2400
2400
  typeof t.Reflect > "u" ? t.Reflect = i : n = s(t.Reflect, n), e(n);
2401
2401
  function s(r, a) {
2402
2402
  return function(o, c) {
@@ -2436,9 +2436,9 @@ var zs;
2436
2436
  throw new TypeError();
2437
2437
  if (!ie(y))
2438
2438
  throw new TypeError();
2439
- if (!ie(E) && !Z(E) && !gt(E))
2439
+ if (!ie(E) && !Z(E) && !vt(E))
2440
2440
  throw new TypeError();
2441
- return gt(E) && (E = void 0), S = vt(S), fe(v, y, S, E);
2441
+ return vt(E) && (E = void 0), S = yt(S), fe(v, y, S, E);
2442
2442
  }
2443
2443
  }
2444
2444
  e("decorate", w);
@@ -2456,49 +2456,49 @@ var zs;
2456
2456
  function M(v, y, S, E) {
2457
2457
  if (!ie(S))
2458
2458
  throw new TypeError();
2459
- return Z(E) || (E = vt(E)), oe(v, y, S, E);
2459
+ return Z(E) || (E = yt(E)), oe(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 = vt(S)), rn(v, y, S);
2465
+ return Z(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 = vt(S)), di(v, y, S);
2471
+ return Z(S) || (S = yt(S)), li(v, y, S);
2472
2472
  }
2473
2473
  e("hasOwnMetadata", j);
2474
2474
  function he(v, y, S) {
2475
2475
  if (!ie(y))
2476
2476
  throw new TypeError();
2477
- return Z(S) || (S = vt(S)), an(v, y, S);
2477
+ return Z(S) || (S = yt(S)), an(v, y, S);
2478
2478
  }
2479
2479
  e("getMetadata", he);
2480
2480
  function ae(v, y, S) {
2481
2481
  if (!ie(y))
2482
2482
  throw new TypeError();
2483
- return Z(S) || (S = vt(S)), O(v, y, S);
2483
+ return Z(S) || (S = yt(S)), O(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 = vt(y)), ce(v, y);
2489
+ return Z(y) || (y = yt(y)), ce(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 = vt(y)), Ae(v, y);
2495
+ return Z(y) || (y = yt(y)), Ae(v, y);
2496
2496
  }
2497
2497
  e("getOwnMetadataKeys", K);
2498
- function A(v, y, S) {
2498
+ function I(v, y, S) {
2499
2499
  if (!ie(y))
2500
2500
  throw new TypeError();
2501
- Z(S) || (S = vt(S));
2501
+ Z(S) || (S = yt(S));
2502
2502
  var E = Ie(
2503
2503
  y,
2504
2504
  S,
@@ -2512,11 +2512,11 @@ var zs;
2512
2512
  var D = T.get(y);
2513
2513
  return D.delete(S), D.size > 0 || T.delete(y), !0;
2514
2514
  }
2515
- e("deleteMetadata", A);
2515
+ e("deleteMetadata", I);
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) && !gt(D)) {
2519
+ if (!Z(D) && !vt(D)) {
2520
2520
  if (!Js(D))
2521
2521
  throw new TypeError();
2522
2522
  y = D;
@@ -2527,7 +2527,7 @@ var zs;
2527
2527
  function fe(v, y, S, E) {
2528
2528
  for (var D = v.length - 1; D >= 0; --D) {
2529
2529
  var de = v[D], B = de(y, S, E);
2530
- if (!Z(B) && !gt(B)) {
2530
+ if (!Z(B) && !vt(B)) {
2531
2531
  if (!ie(B))
2532
2532
  throw new TypeError();
2533
2533
  E = B;
@@ -2551,13 +2551,13 @@ var zs;
2551
2551
  return D;
2552
2552
  }
2553
2553
  function rn(v, y, S) {
2554
- var E = di(v, y, S);
2554
+ var E = li(v, y, S);
2555
2555
  if (E)
2556
2556
  return !0;
2557
2557
  var D = jn(y);
2558
- return gt(D) ? !1 : rn(v, D, S);
2558
+ return vt(D) ? !1 : rn(v, D, S);
2559
2559
  }
2560
- function di(v, y, S) {
2560
+ function li(v, y, S) {
2561
2561
  var E = Ie(
2562
2562
  y,
2563
2563
  S,
@@ -2567,11 +2567,11 @@ var zs;
2567
2567
  return Z(E) ? !1 : Po(E.has(v));
2568
2568
  }
2569
2569
  function an(v, y, S) {
2570
- var E = di(v, y, S);
2570
+ var E = li(v, y, S);
2571
2571
  if (E)
2572
2572
  return O(v, y, S);
2573
2573
  var D = jn(y);
2574
- if (!gt(D))
2574
+ if (!vt(D))
2575
2575
  return an(v, D, S);
2576
2576
  }
2577
2577
  function O(v, y, S) {
@@ -2603,12 +2603,12 @@ var zs;
2603
2603
  if (S.length <= 0)
2604
2604
  return D;
2605
2605
  for (var de = new p(), B = [], J = 0, U = S; J < U.length; J++) {
2606
- var H = U[J], W = de.has(H);
2607
- W || (de.add(H), B.push(H));
2606
+ var H = U[J], z = de.has(H);
2607
+ z || (de.add(H), B.push(H));
2608
2608
  }
2609
2609
  for (var Gt = 0, Vs = D; Gt < Vs.length; Gt++) {
2610
- var H = Vs[Gt], W = de.has(H);
2611
- W || (de.add(H), B.push(H));
2610
+ var H = Vs[Gt], z = de.has(H);
2611
+ z || (de.add(H), B.push(H));
2612
2612
  }
2613
2613
  return B;
2614
2614
  }
@@ -2661,7 +2661,7 @@ var zs;
2661
2661
  function Z(v) {
2662
2662
  return v === void 0;
2663
2663
  }
2664
- function gt(v) {
2664
+ function vt(v) {
2665
2665
  return v === null;
2666
2666
  }
2667
2667
  function on(v) {
@@ -2697,26 +2697,26 @@ var zs;
2697
2697
  function Eo(v, y) {
2698
2698
  if (y === "string") {
2699
2699
  var S = v.toString;
2700
- if (li(S)) {
2700
+ if (hi(S)) {
2701
2701
  var E = S.call(v);
2702
2702
  if (!ie(E))
2703
2703
  return E;
2704
2704
  }
2705
2705
  var D = v.valueOf;
2706
- if (li(D)) {
2706
+ if (hi(D)) {
2707
2707
  var E = D.call(v);
2708
2708
  if (!ie(E))
2709
2709
  return E;
2710
2710
  }
2711
2711
  } else {
2712
2712
  var D = v.valueOf;
2713
- if (li(D)) {
2713
+ if (hi(D)) {
2714
2714
  var E = D.call(v);
2715
2715
  if (!ie(E))
2716
2716
  return E;
2717
2717
  }
2718
2718
  var de = v.toString;
2719
- if (li(de)) {
2719
+ if (hi(de)) {
2720
2720
  var E = de.call(v);
2721
2721
  if (!ie(E))
2722
2722
  return E;
@@ -2730,7 +2730,7 @@ var zs;
2730
2730
  function Ro(v) {
2731
2731
  return "" + v;
2732
2732
  }
2733
- function vt(v) {
2733
+ function yt(v) {
2734
2734
  var y = Jn(
2735
2735
  v,
2736
2736
  3
@@ -2741,7 +2741,7 @@ var zs;
2741
2741
  function Bs(v) {
2742
2742
  return Array.isArray ? Array.isArray(v) : v instanceof Object ? v instanceof Array : Object.prototype.toString.call(v) === "[object Array]";
2743
2743
  }
2744
- function li(v) {
2744
+ function hi(v) {
2745
2745
  return typeof v == "function";
2746
2746
  }
2747
2747
  function Js(v) {
@@ -2760,14 +2760,14 @@ var zs;
2760
2760
  function js(v, y) {
2761
2761
  var S = v[y];
2762
2762
  if (S != null) {
2763
- if (!li(S))
2763
+ if (!hi(S))
2764
2764
  throw new TypeError();
2765
2765
  return S;
2766
2766
  }
2767
2767
  }
2768
2768
  function Io(v) {
2769
2769
  var y = js(v, r);
2770
- if (!li(y))
2770
+ if (!hi(y))
2771
2771
  throw new TypeError();
2772
2772
  var S = y.call(v);
2773
2773
  if (!ie(S))
@@ -2859,8 +2859,8 @@ var zs;
2859
2859
  !1
2860
2860
  );
2861
2861
  if (U >= 0) {
2862
- for (var H = this._keys.length, W = U + 1; W < H; W++)
2863
- this._keys[W - 1] = this._keys[W], this._values[W - 1] = this._values[W];
2862
+ for (var H = this._keys.length, z = U + 1; z < H; z++)
2863
+ this._keys[z - 1] = this._keys[z], this._values[z - 1] = this._values[z];
2864
2864
  return this._keys.length--, this._values.length--, J === this._cacheKey && (this._cacheKey = v, this._cacheIndex = -2), !0;
2865
2865
  }
2866
2866
  return !1;
@@ -2935,33 +2935,33 @@ var zs;
2935
2935
  this._key = E();
2936
2936
  }
2937
2937
  return U.prototype.has = function(H) {
2938
- var W = D(
2938
+ var z = D(
2939
2939
  H,
2940
2940
  /*create*/
2941
2941
  !1
2942
2942
  );
2943
- return W !== void 0 ? u.has(W, this._key) : !1;
2943
+ return z !== void 0 ? u.has(z, this._key) : !1;
2944
2944
  }, U.prototype.get = function(H) {
2945
- var W = D(
2945
+ var z = D(
2946
2946
  H,
2947
2947
  /*create*/
2948
2948
  !1
2949
2949
  );
2950
- return W !== void 0 ? u.get(W, this._key) : void 0;
2951
- }, U.prototype.set = function(H, W) {
2950
+ return z !== void 0 ? u.get(z, this._key) : void 0;
2951
+ }, U.prototype.set = function(H, z) {
2952
2952
  var Gt = D(
2953
2953
  H,
2954
2954
  /*create*/
2955
2955
  !0
2956
2956
  );
2957
- return Gt[this._key] = W, this;
2957
+ return Gt[this._key] = z, this;
2958
2958
  }, U.prototype.delete = function(H) {
2959
- var W = D(
2959
+ var z = D(
2960
2960
  H,
2961
2961
  /*create*/
2962
2962
  !1
2963
2963
  );
2964
- return W !== void 0 ? delete W[this._key] : !1;
2964
+ return z !== void 0 ? delete z[this._key] : !1;
2965
2965
  }, U.prototype.clear = function() {
2966
2966
  this._key = E();
2967
2967
  }, U;
@@ -2983,8 +2983,8 @@ var zs;
2983
2983
  return U[S];
2984
2984
  }
2985
2985
  function de(U, H) {
2986
- for (var W = 0; W < H; ++W)
2987
- U[W] = Math.random() * 255 | 0;
2986
+ for (var z = 0; z < H; ++z)
2987
+ U[z] = Math.random() * 255 | 0;
2988
2988
  return U;
2989
2989
  }
2990
2990
  function B(U) {
@@ -2993,9 +2993,9 @@ var zs;
2993
2993
  function J() {
2994
2994
  var U = B(v);
2995
2995
  U[6] = U[6] & 79 | 64, U[8] = U[8] & 191 | 128;
2996
- for (var H = "", W = 0; W < v; ++W) {
2997
- var Gt = U[W];
2998
- (W === 4 || W === 6 || W === 8) && (H += "-"), Gt < 16 && (H += "0"), H += Gt.toString(16).toLowerCase();
2996
+ for (var H = "", z = 0; z < v; ++z) {
2997
+ var Gt = U[z];
2998
+ (z === 4 || z === 6 || z === 8) && (H += "-"), Gt < 16 && (H += "0"), H += Gt.toString(16).toLowerCase();
2999
2999
  }
3000
3000
  return H;
3001
3001
  }
@@ -3004,7 +3004,7 @@ var zs;
3004
3004
  return v.__ = void 0, delete v.__, v;
3005
3005
  }
3006
3006
  });
3007
- })(zs || (zs = {}));
3007
+ })(Gs || (Gs = {}));
3008
3008
  function du(i, e) {
3009
3009
  return e.forEach(function(t) {
3010
3010
  t && typeof t != "string" && !Array.isArray(t) && Object.keys(t).forEach(function(n) {
@@ -3069,8 +3069,8 @@ 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(A) {
3073
- var F = (s[A] || "silent").toUpperCase();
3072
+ function he(I) {
3073
+ var F = (s[I] || "silent").toUpperCase();
3074
3074
  if (!(typeof window === t || !j)) {
3075
3075
  try {
3076
3076
  window.localStorage[j] = F;
@@ -3084,19 +3084,19 @@ var Qr = { exports: {} };
3084
3084
  }
3085
3085
  }
3086
3086
  function ae() {
3087
- var A;
3087
+ var I;
3088
3088
  if (!(typeof window === t || !j)) {
3089
3089
  try {
3090
- A = window.localStorage[j];
3090
+ I = window.localStorage[j];
3091
3091
  } catch {
3092
3092
  }
3093
- if (typeof A === t)
3093
+ if (typeof I === t)
3094
3094
  try {
3095
3095
  var F = window.document.cookie, fe = F.indexOf(encodeURIComponent(j) + "=");
3096
- fe !== -1 && (A = /^([^;]+)/.exec(F.slice(fe))[1]);
3096
+ fe !== -1 && (I = /^([^;]+)/.exec(F.slice(fe))[1]);
3097
3097
  } catch {
3098
3098
  }
3099
- return M.levels[A] === void 0 && (A = void 0), A;
3099
+ return M.levels[I] === void 0 && (I = void 0), I;
3100
3100
  }
3101
3101
  }
3102
3102
  function q() {
@@ -3121,20 +3121,20 @@ var Qr = { exports: {} };
3121
3121
  SILENT: 5
3122
3122
  }, M.methodFactory = _ || d, M.getLevel = function() {
3123
3123
  return Q;
3124
- }, M.setLevel = function(A, F) {
3125
- if (typeof A == "string" && M.levels[A.toUpperCase()] !== void 0 && (A = M.levels[A.toUpperCase()]), typeof A == "number" && A >= 0 && A <= M.levels.SILENT) {
3126
- if (Q = A, F !== !1 && he(A), c.call(M, A, T), typeof console === t && A < M.levels.SILENT)
3124
+ }, M.setLevel = function(I, F) {
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)
3127
3127
  return "No console available for logging";
3128
3128
  } else
3129
- throw "log.setLevel() called with invalid level: " + A;
3130
- }, M.setDefaultLevel = function(A) {
3131
- w = A, ae() || M.setLevel(A, !1);
3129
+ throw "log.setLevel() called with invalid level: " + I;
3130
+ }, M.setDefaultLevel = function(I) {
3131
+ w = I, ae() || M.setLevel(I, !1);
3132
3132
  }, M.resetLevel = function() {
3133
3133
  M.setLevel(w, !1), q();
3134
- }, M.enableAll = function(A) {
3135
- M.setLevel(M.levels.TRACE, A);
3136
- }, M.disableAll = function(A) {
3137
- M.setLevel(M.levels.SILENT, A);
3134
+ }, M.enableAll = function(I) {
3135
+ M.setLevel(M.levels.TRACE, I);
3136
+ }, M.disableAll = function(I) {
3137
+ M.setLevel(M.levels.SILENT, I);
3138
3138
  };
3139
3139
  var K = ae();
3140
3140
  K == null && (K = w), M.setLevel(K, !1);
@@ -3228,7 +3228,7 @@ function sa(i) {
3228
3228
  localName: i.name
3229
3229
  });
3230
3230
  }
3231
- class I {
3231
+ class A {
3232
3232
  /**
3233
3233
  * Compare with a message of the same type.
3234
3234
  */
@@ -3332,7 +3332,7 @@ function ku(i, e, t, n) {
3332
3332
  i.util.initFields(this), i.util.initPartial(o, this);
3333
3333
  }
3334
3334
  }[r];
3335
- return Object.setPrototypeOf(a.prototype, new I()), Object.assign(a, {
3335
+ return Object.setPrototypeOf(a.prototype, new A()), Object.assign(a, {
3336
3336
  runtime: i,
3337
3337
  typeName: e,
3338
3338
  fields: i.util.newFieldList(t),
@@ -3847,10 +3847,10 @@ class _u {
3847
3847
  }
3848
3848
  }
3849
3849
  function ds(i, e) {
3850
- return e instanceof I || !i.fieldWrapper ? e : i.fieldWrapper.wrapField(e);
3850
+ return e instanceof A || !i.fieldWrapper ? e : i.fieldWrapper.wrapField(e);
3851
3851
  }
3852
3852
  k.DOUBLE, k.FLOAT, k.INT64, k.UINT64, k.INT32, k.UINT32, k.BOOL, k.STRING, k.BYTES;
3853
- function zt(i, e, t) {
3853
+ function Kt(i, e, t) {
3854
3854
  if (e === t)
3855
3855
  return !0;
3856
3856
  if (i == k.BYTES) {
@@ -4001,7 +4001,7 @@ function Ou() {
4001
4001
  break;
4002
4002
  case "message":
4003
4003
  const p = c.T;
4004
- d ? u[h].push(yn(e, new p(), n)) : u[h] instanceof I ? 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])));
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
4007
  let [b, T] = Lu(c, e, n);
@@ -4181,11 +4181,11 @@ function Du() {
4181
4181
  }
4182
4182
  });
4183
4183
  }
4184
- let kt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), Dn = [];
4185
- for (let i = 0; i < kt.length; i++)
4186
- Dn[kt[i].charCodeAt(0)] = i;
4187
- Dn["-".charCodeAt(0)] = kt.indexOf("+");
4188
- Dn["_".charCodeAt(0)] = kt.indexOf("/");
4184
+ let Tt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), Dn = [];
4185
+ for (let i = 0; i < Tt.length; i++)
4186
+ Dn[Tt[i].charCodeAt(0)] = i;
4187
+ Dn["-".charCodeAt(0)] = Tt.indexOf("+");
4188
+ Dn["_".charCodeAt(0)] = Tt.indexOf("/");
4189
4189
  const ca = {
4190
4190
  /**
4191
4191
  * Decodes a base64 string to a byte array.
@@ -4243,16 +4243,16 @@ const ca = {
4243
4243
  for (let r = 0; r < i.length; r++)
4244
4244
  switch (n = i[r], t) {
4245
4245
  case 0:
4246
- e += kt[n >> 2], s = (n & 3) << 4, t = 1;
4246
+ e += Tt[n >> 2], s = (n & 3) << 4, t = 1;
4247
4247
  break;
4248
4248
  case 1:
4249
- e += kt[s | n >> 4], s = (n & 15) << 2, t = 2;
4249
+ e += Tt[s | n >> 4], s = (n & 15) << 2, t = 2;
4250
4250
  break;
4251
4251
  case 2:
4252
- e += kt[s | n >> 6], e += kt[n & 63], t = 0;
4252
+ e += Tt[s | n >> 6], e += Tt[n & 63], t = 0;
4253
4253
  break;
4254
4254
  }
4255
- return t && (e += kt[s], e += "=", t == 1 && (e += "=")), e;
4255
+ return t && (e += Tt[s], e += "=", t == 1 && (e += "=")), e;
4256
4256
  }
4257
4257
  }, er = {
4258
4258
  ignoreUnknownFields: !1
@@ -4311,7 +4311,7 @@ function Fu(i) {
4311
4311
  b = u.T.fromJson(p, s);
4312
4312
  break;
4313
4313
  case "enum":
4314
- if (b = Wn(u.T, p, s.ignoreUnknownFields), b === void 0)
4314
+ if (b = zn(u.T, p, s.ignoreUnknownFields), b === void 0)
4315
4315
  continue;
4316
4316
  break;
4317
4317
  case "scalar":
@@ -4340,7 +4340,7 @@ function Fu(i) {
4340
4340
  T = u.V.T.fromJson(b, s);
4341
4341
  break;
4342
4342
  case "enum":
4343
- if (T = Wn(u.V.T, b, s.ignoreUnknownFields), T === void 0)
4343
+ if (T = zn(u.V.T, b, s.ignoreUnknownFields), T === void 0)
4344
4344
  continue;
4345
4345
  break;
4346
4346
  case "scalar":
@@ -4368,10 +4368,10 @@ function Fu(i) {
4368
4368
  throw new Error("cannot decode field ".concat(t.typeName, ".").concat(u.name, ' from JSON: null is invalid for oneof field "').concat(o, '"'));
4369
4369
  continue;
4370
4370
  }
4371
- h[d] instanceof I ? h[d].fromJson(c, s) : (h[d] = f.fromJson(c, s), f.fieldWrapper && !u.oneof && (h[d] = f.fieldWrapper.unwrapField(h[d])));
4371
+ h[d] instanceof A ? h[d].fromJson(c, s) : (h[d] = f.fromJson(c, s), f.fieldWrapper && !u.oneof && (h[d] = f.fieldWrapper.unwrapField(h[d])));
4372
4372
  break;
4373
4373
  case "enum":
4374
- const p = Wn(u.T, c, s.ignoreUnknownFields);
4374
+ const p = zn(u.T, c, s.ignoreUnknownFields);
4375
4375
  p !== void 0 && (h[d] = p);
4376
4376
  break;
4377
4377
  case "scalar":
@@ -4496,7 +4496,7 @@ function Ii(i, e) {
4496
4496
  }
4497
4497
  throw new Error();
4498
4498
  }
4499
- function Wn(i, e, t) {
4499
+ function zn(i, e, t) {
4500
4500
  if (e === null)
4501
4501
  return 0;
4502
4502
  switch (typeof e) {
@@ -4672,9 +4672,9 @@ function ju() {
4672
4672
  case "message":
4673
4673
  return s.every((a, o) => n.T.equals(a, r[o]));
4674
4674
  case "scalar":
4675
- return s.every((a, o) => zt(n.T, a, r[o]));
4675
+ return s.every((a, o) => Kt(n.T, a, r[o]));
4676
4676
  case "enum":
4677
- return s.every((a, o) => zt(k.INT32, a, r[o]));
4677
+ return s.every((a, o) => Kt(k.INT32, a, r[o]));
4678
4678
  }
4679
4679
  throw new Error("repeated cannot contain ".concat(n.kind));
4680
4680
  }
@@ -4682,9 +4682,9 @@ function ju() {
4682
4682
  case "message":
4683
4683
  return n.T.equals(s, r);
4684
4684
  case "enum":
4685
- return zt(k.INT32, s, r);
4685
+ return Kt(k.INT32, s, r);
4686
4686
  case "scalar":
4687
- return zt(n.T, s, r);
4687
+ return Kt(n.T, s, r);
4688
4688
  case "oneof":
4689
4689
  if (s.case !== r.case)
4690
4690
  return !1;
@@ -4695,9 +4695,9 @@ function ju() {
4695
4695
  case "message":
4696
4696
  return a.T.equals(s.value, r.value);
4697
4697
  case "enum":
4698
- return zt(k.INT32, s.value, r.value);
4698
+ return Kt(k.INT32, s.value, r.value);
4699
4699
  case "scalar":
4700
- return zt(a.T, s.value, r.value);
4700
+ return Kt(a.T, s.value, r.value);
4701
4701
  }
4702
4702
  throw new Error("oneof cannot contain ".concat(a.kind));
4703
4703
  case "map":
@@ -4707,10 +4707,10 @@ function ju() {
4707
4707
  const c = n.V.T;
4708
4708
  return o.every((d) => c.equals(s[d], r[d]));
4709
4709
  case "enum":
4710
- return o.every((d) => zt(k.INT32, s[d], r[d]));
4710
+ return o.every((d) => Kt(k.INT32, s[d], r[d]));
4711
4711
  case "scalar":
4712
4712
  const u = n.V.T;
4713
- return o.every((d) => zt(u, s[d], r[d]));
4713
+ return o.every((d) => Kt(u, s[d], r[d]));
4714
4714
  }
4715
4715
  break;
4716
4716
  }
@@ -4743,7 +4743,7 @@ function ju() {
4743
4743
  function ln(i) {
4744
4744
  if (i === void 0)
4745
4745
  return i;
4746
- if (i instanceof I)
4746
+ if (i instanceof A)
4747
4747
  return i.clone();
4748
4748
  if (i instanceof Uint8Array) {
4749
4749
  const e = new Uint8Array(i.byteLength);
@@ -4795,7 +4795,7 @@ class Vu {
4795
4795
  }
4796
4796
  function da(i, e) {
4797
4797
  const t = la(i);
4798
- return e ? t : zu(Gu(t));
4798
+ return e ? t : Gu(Wu(t));
4799
4799
  }
4800
4800
  function $u(i) {
4801
4801
  return da(i, !1);
@@ -4835,7 +4835,7 @@ const Hu = /* @__PURE__ */ new Set([
4835
4835
  "toString",
4836
4836
  "toJSON",
4837
4837
  "valueOf"
4838
- ]), Wu = /* @__PURE__ */ new Set([
4838
+ ]), zu = /* @__PURE__ */ new Set([
4839
4839
  // names reserved by the runtime
4840
4840
  "getType",
4841
4841
  "clone",
@@ -4848,7 +4848,7 @@ const Hu = /* @__PURE__ */ new Set([
4848
4848
  "toJsonString",
4849
4849
  // names reserved by the runtime for the future
4850
4850
  "toObject"
4851
- ]), ha = (i) => "".concat(i, "$"), Gu = (i) => Wu.has(i) ? ha(i) : i, zu = (i) => Hu.has(i) ? ha(i) : i;
4851
+ ]), ha = (i) => "".concat(i, "$"), Wu = (i) => zu.has(i) ? ha(i) : i, Gu = (i) => Hu.has(i) ? ha(i) : i;
4852
4852
  class Ku {
4853
4853
  constructor(e) {
4854
4854
  this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.default = void 0, this.fields = [], this.name = e, this.localName = $u(e);
@@ -4911,7 +4911,7 @@ function Yu(i) {
4911
4911
  }
4912
4912
  return s;
4913
4913
  }
4914
- class me extends I {
4914
+ class me extends A {
4915
4915
  constructor(e) {
4916
4916
  super(), this.seconds = V.zero, this.nanos = 0, l.util.initPartial(e, this);
4917
4917
  }
@@ -5067,11 +5067,11 @@ l.util.setEnumType(ue, "livekit.VideoQuality", [{
5067
5067
  no: 3,
5068
5068
  name: "OFF"
5069
5069
  }]);
5070
- var ei;
5070
+ var ti;
5071
5071
  (function(i) {
5072
5072
  i[i.POOR = 0] = "POOR", i[i.GOOD = 1] = "GOOD", i[i.EXCELLENT = 2] = "EXCELLENT";
5073
- })(ei || (ei = {}));
5074
- l.util.setEnumType(ei, "livekit.ConnectionQuality", [{
5073
+ })(ti || (ti = {}));
5074
+ l.util.setEnumType(ti, "livekit.ConnectionQuality", [{
5075
5075
  no: 0,
5076
5076
  name: "POOR"
5077
5077
  }, {
@@ -5095,11 +5095,11 @@ l.util.setEnumType(Ke, "livekit.ClientConfigSetting", [{
5095
5095
  no: 2,
5096
5096
  name: "ENABLED"
5097
5097
  }]);
5098
- var Ht;
5098
+ var zt;
5099
5099
  (function(i) {
5100
5100
  i[i.UNKNOWN_REASON = 0] = "UNKNOWN_REASON", i[i.CLIENT_INITIATED = 1] = "CLIENT_INITIATED", i[i.DUPLICATE_IDENTITY = 2] = "DUPLICATE_IDENTITY", i[i.SERVER_SHUTDOWN = 3] = "SERVER_SHUTDOWN", i[i.PARTICIPANT_REMOVED = 4] = "PARTICIPANT_REMOVED", i[i.ROOM_DELETED = 5] = "ROOM_DELETED", i[i.STATE_MISMATCH = 6] = "STATE_MISMATCH", i[i.JOIN_FAILURE = 7] = "JOIN_FAILURE";
5101
- })(Ht || (Ht = {}));
5102
- l.util.setEnumType(Ht, "livekit.DisconnectReason", [{
5101
+ })(zt || (zt = {}));
5102
+ l.util.setEnumType(zt, "livekit.DisconnectReason", [{
5103
5103
  no: 0,
5104
5104
  name: "UNKNOWN_REASON"
5105
5105
  }, {
@@ -5158,7 +5158,7 @@ l.util.setEnumType(Yi, "livekit.SubscriptionError", [{
5158
5158
  no: 2,
5159
5159
  name: "SE_TRACK_NOTFOUND"
5160
5160
  }]);
5161
- let Ei = class Mi extends I {
5161
+ let Ei = class Mi extends A {
5162
5162
  constructor(e) {
5163
5163
  super(), this.sid = "", this.name = "", this.emptyTimeout = 0, this.maxParticipants = 0, this.creationTime = V.zero, this.turnPassword = "", this.enabledCodecs = [], this.metadata = "", this.numParticipants = 0, this.numPublishers = 0, this.activeRecording = !1, l.util.initPartial(e, this);
5164
5164
  }
@@ -5247,9 +5247,9 @@ Ei.fields = l.util.newFieldList(() => [{
5247
5247
  no: 12,
5248
5248
  name: "playout_delay",
5249
5249
  kind: "message",
5250
- T: Tt
5250
+ T: St
5251
5251
  }]);
5252
- class $e extends I {
5252
+ class $e extends A {
5253
5253
  constructor(e) {
5254
5254
  super(), this.mime = "", this.fmtpLine = "", l.util.initPartial(e, this);
5255
5255
  }
@@ -5281,26 +5281,26 @@ $e.fields = l.util.newFieldList(() => [{
5281
5281
  T: 9
5282
5282
  /* ScalarType.STRING */
5283
5283
  }]);
5284
- class Tt extends I {
5284
+ class St extends A {
5285
5285
  constructor(e) {
5286
5286
  super(), this.enabled = !1, this.min = 0, this.max = 0, l.util.initPartial(e, this);
5287
5287
  }
5288
5288
  static fromBinary(e, t) {
5289
- return new Tt().fromBinary(e, t);
5289
+ return new St().fromBinary(e, t);
5290
5290
  }
5291
5291
  static fromJson(e, t) {
5292
- return new Tt().fromJson(e, t);
5292
+ return new St().fromJson(e, t);
5293
5293
  }
5294
5294
  static fromJsonString(e, t) {
5295
- return new Tt().fromJsonString(e, t);
5295
+ return new St().fromJsonString(e, t);
5296
5296
  }
5297
5297
  static equals(e, t) {
5298
- return l.util.equals(Tt, e, t);
5298
+ return l.util.equals(St, e, t);
5299
5299
  }
5300
5300
  }
5301
- Tt.runtime = l;
5302
- Tt.typeName = "livekit.PlayoutDelay";
5303
- Tt.fields = l.util.newFieldList(() => [{
5301
+ St.runtime = l;
5302
+ St.typeName = "livekit.PlayoutDelay";
5303
+ St.fields = l.util.newFieldList(() => [{
5304
5304
  no: 1,
5305
5305
  name: "enabled",
5306
5306
  kind: "scalar",
@@ -5319,26 +5319,26 @@ Tt.fields = l.util.newFieldList(() => [{
5319
5319
  T: 13
5320
5320
  /* ScalarType.UINT32 */
5321
5321
  }]);
5322
- class St extends I {
5322
+ class Ct extends A {
5323
5323
  constructor(e) {
5324
5324
  super(), this.canSubscribe = !1, this.canPublish = !1, this.canPublishData = !1, this.canPublishSources = [], this.hidden = !1, this.recorder = !1, this.canUpdateMetadata = !1, l.util.initPartial(e, this);
5325
5325
  }
5326
5326
  static fromBinary(e, t) {
5327
- return new St().fromBinary(e, t);
5327
+ return new Ct().fromBinary(e, t);
5328
5328
  }
5329
5329
  static fromJson(e, t) {
5330
- return new St().fromJson(e, t);
5330
+ return new Ct().fromJson(e, t);
5331
5331
  }
5332
5332
  static fromJsonString(e, t) {
5333
- return new St().fromJsonString(e, t);
5333
+ return new Ct().fromJsonString(e, t);
5334
5334
  }
5335
5335
  static equals(e, t) {
5336
- return l.util.equals(St, e, t);
5336
+ return l.util.equals(Ct, e, t);
5337
5337
  }
5338
5338
  }
5339
- St.runtime = l;
5340
- St.typeName = "livekit.ParticipantPermission";
5341
- St.fields = l.util.newFieldList(() => [{
5339
+ Ct.runtime = l;
5340
+ Ct.typeName = "livekit.ParticipantPermission";
5341
+ Ct.fields = l.util.newFieldList(() => [{
5342
5342
  no: 1,
5343
5343
  name: "can_subscribe",
5344
5344
  kind: "scalar",
@@ -5381,9 +5381,9 @@ St.fields = l.util.newFieldList(() => [{
5381
5381
  T: 8
5382
5382
  /* ScalarType.BOOL */
5383
5383
  }]);
5384
- class Me extends I {
5384
+ class Me extends A {
5385
5385
  constructor(e) {
5386
- super(), this.sid = "", this.identity = "", this.state = ai.JOINING, this.tracks = [], this.metadata = "", this.joinedAt = V.zero, this.name = "", this.version = 0, this.region = "", this.isPublisher = !1, l.util.initPartial(e, this);
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
5389
  return new Me().fromBinary(e, t);
@@ -5416,7 +5416,7 @@ Me.fields = l.util.newFieldList(() => [{
5416
5416
  no: 3,
5417
5417
  name: "state",
5418
5418
  kind: "enum",
5419
- T: l.getEnumType(ai)
5419
+ T: l.getEnumType(oi)
5420
5420
  }, {
5421
5421
  no: 4,
5422
5422
  name: "tracks",
@@ -5451,7 +5451,7 @@ Me.fields = l.util.newFieldList(() => [{
5451
5451
  no: 11,
5452
5452
  name: "permission",
5453
5453
  kind: "message",
5454
- T: St
5454
+ T: Ct
5455
5455
  }, {
5456
5456
  no: 12,
5457
5457
  name: "region",
@@ -5465,11 +5465,11 @@ Me.fields = l.util.newFieldList(() => [{
5465
5465
  T: 8
5466
5466
  /* ScalarType.BOOL */
5467
5467
  }]);
5468
- var ai;
5468
+ var oi;
5469
5469
  (function(i) {
5470
5470
  i[i.JOINING = 0] = "JOINING", i[i.JOINED = 1] = "JOINED", i[i.ACTIVE = 2] = "ACTIVE", i[i.DISCONNECTED = 3] = "DISCONNECTED";
5471
- })(ai || (ai = {}));
5472
- l.util.setEnumType(ai, "livekit.ParticipantInfo.State", [{
5471
+ })(oi || (oi = {}));
5472
+ l.util.setEnumType(oi, "livekit.ParticipantInfo.State", [{
5473
5473
  no: 0,
5474
5474
  name: "JOINING"
5475
5475
  }, {
@@ -5482,26 +5482,26 @@ l.util.setEnumType(ai, "livekit.ParticipantInfo.State", [{
5482
5482
  no: 3,
5483
5483
  name: "DISCONNECTED"
5484
5484
  }]);
5485
- class Kt extends I {
5485
+ class Yt extends A {
5486
5486
  constructor(e) {
5487
5487
  super(), l.util.initPartial(e, this);
5488
5488
  }
5489
5489
  static fromBinary(e, t) {
5490
- return new Kt().fromBinary(e, t);
5490
+ return new Yt().fromBinary(e, t);
5491
5491
  }
5492
5492
  static fromJson(e, t) {
5493
- return new Kt().fromJson(e, t);
5493
+ return new Yt().fromJson(e, t);
5494
5494
  }
5495
5495
  static fromJsonString(e, t) {
5496
- return new Kt().fromJsonString(e, t);
5496
+ return new Yt().fromJsonString(e, t);
5497
5497
  }
5498
5498
  static equals(e, t) {
5499
- return l.util.equals(Kt, e, t);
5499
+ return l.util.equals(Yt, e, t);
5500
5500
  }
5501
5501
  }
5502
- Kt.runtime = l;
5503
- Kt.typeName = "livekit.Encryption";
5504
- Kt.fields = l.util.newFieldList(() => []);
5502
+ Yt.runtime = l;
5503
+ Yt.typeName = "livekit.Encryption";
5504
+ Yt.fields = l.util.newFieldList(() => []);
5505
5505
  var ke;
5506
5506
  (function(i) {
5507
5507
  i[i.NONE = 0] = "NONE", i[i.GCM = 1] = "GCM", i[i.CUSTOM = 2] = "CUSTOM";
@@ -5516,26 +5516,26 @@ l.util.setEnumType(ke, "livekit.Encryption.Type", [{
5516
5516
  no: 2,
5517
5517
  name: "CUSTOM"
5518
5518
  }]);
5519
- class Ct extends I {
5519
+ class wt extends A {
5520
5520
  constructor(e) {
5521
5521
  super(), this.mimeType = "", this.mid = "", this.cid = "", this.layers = [], l.util.initPartial(e, this);
5522
5522
  }
5523
5523
  static fromBinary(e, t) {
5524
- return new Ct().fromBinary(e, t);
5524
+ return new wt().fromBinary(e, t);
5525
5525
  }
5526
5526
  static fromJson(e, t) {
5527
- return new Ct().fromJson(e, t);
5527
+ return new wt().fromJson(e, t);
5528
5528
  }
5529
5529
  static fromJsonString(e, t) {
5530
- return new Ct().fromJsonString(e, t);
5530
+ return new wt().fromJsonString(e, t);
5531
5531
  }
5532
5532
  static equals(e, t) {
5533
- return l.util.equals(Ct, e, t);
5533
+ return l.util.equals(wt, e, t);
5534
5534
  }
5535
5535
  }
5536
- Ct.runtime = l;
5537
- Ct.typeName = "livekit.SimulcastCodecInfo";
5538
- Ct.fields = l.util.newFieldList(() => [{
5536
+ wt.runtime = l;
5537
+ wt.typeName = "livekit.SimulcastCodecInfo";
5538
+ wt.fields = l.util.newFieldList(() => [{
5539
5539
  no: 1,
5540
5540
  name: "mime_type",
5541
5541
  kind: "scalar",
@@ -5560,7 +5560,7 @@ Ct.fields = l.util.newFieldList(() => [{
5560
5560
  T: Te,
5561
5561
  repeated: !0
5562
5562
  }]);
5563
- class Pe extends I {
5563
+ class Pe extends A {
5564
5564
  constructor(e) {
5565
5565
  super(), this.sid = "", this.type = ge.AUDIO, this.name = "", this.muted = !1, this.width = 0, this.height = 0, this.simulcast = !1, this.disableDtx = !1, this.source = re.UNKNOWN, this.layers = [], this.mimeType = "", this.mid = "", this.codecs = [], this.stereo = !1, this.disableRed = !1, this.encryption = ke.NONE, this.stream = "", l.util.initPartial(e, this);
5566
5566
  }
@@ -5653,7 +5653,7 @@ Pe.fields = l.util.newFieldList(() => [{
5653
5653
  no: 13,
5654
5654
  name: "codecs",
5655
5655
  kind: "message",
5656
- T: Ct,
5656
+ T: wt,
5657
5657
  repeated: !0
5658
5658
  }, {
5659
5659
  no: 14,
@@ -5679,7 +5679,7 @@ Pe.fields = l.util.newFieldList(() => [{
5679
5679
  T: 9
5680
5680
  /* ScalarType.STRING */
5681
5681
  }]);
5682
- class Te extends I {
5682
+ class Te extends A {
5683
5683
  constructor(e) {
5684
5684
  super(), this.quality = ue.LOW, this.width = 0, this.height = 0, this.bitrate = 0, this.ssrc = 0, l.util.initPartial(e, this);
5685
5685
  }
@@ -5728,28 +5728,28 @@ Te.fields = l.util.newFieldList(() => [{
5728
5728
  T: 13
5729
5729
  /* ScalarType.UINT32 */
5730
5730
  }]);
5731
- class Ze extends I {
5731
+ class et extends A {
5732
5732
  constructor(e) {
5733
5733
  super(), this.kind = le.RELIABLE, this.value = {
5734
5734
  case: void 0
5735
5735
  }, l.util.initPartial(e, this);
5736
5736
  }
5737
5737
  static fromBinary(e, t) {
5738
- return new Ze().fromBinary(e, t);
5738
+ return new et().fromBinary(e, t);
5739
5739
  }
5740
5740
  static fromJson(e, t) {
5741
- return new Ze().fromJson(e, t);
5741
+ return new et().fromJson(e, t);
5742
5742
  }
5743
5743
  static fromJsonString(e, t) {
5744
- return new Ze().fromJsonString(e, t);
5744
+ return new et().fromJsonString(e, t);
5745
5745
  }
5746
5746
  static equals(e, t) {
5747
- return l.util.equals(Ze, e, t);
5747
+ return l.util.equals(et, e, t);
5748
5748
  }
5749
5749
  }
5750
- Ze.runtime = l;
5751
- Ze.typeName = "livekit.DataPacket";
5752
- Ze.fields = l.util.newFieldList(() => [{
5750
+ et.runtime = l;
5751
+ et.typeName = "livekit.DataPacket";
5752
+ et.fields = l.util.newFieldList(() => [{
5753
5753
  no: 1,
5754
5754
  name: "kind",
5755
5755
  kind: "enum",
@@ -5758,13 +5758,13 @@ Ze.fields = l.util.newFieldList(() => [{
5758
5758
  no: 2,
5759
5759
  name: "user",
5760
5760
  kind: "message",
5761
- T: tt,
5761
+ T: it,
5762
5762
  oneof: "value"
5763
5763
  }, {
5764
5764
  no: 3,
5765
5765
  name: "speaker",
5766
5766
  kind: "message",
5767
- T: wt,
5767
+ T: Et,
5768
5768
  oneof: "value"
5769
5769
  }]);
5770
5770
  var le;
@@ -5778,52 +5778,52 @@ l.util.setEnumType(le, "livekit.DataPacket.Kind", [{
5778
5778
  no: 1,
5779
5779
  name: "LOSSY"
5780
5780
  }]);
5781
- class wt extends I {
5781
+ class Et extends A {
5782
5782
  constructor(e) {
5783
5783
  super(), this.speakers = [], l.util.initPartial(e, this);
5784
5784
  }
5785
5785
  static fromBinary(e, t) {
5786
- return new wt().fromBinary(e, t);
5786
+ return new Et().fromBinary(e, t);
5787
5787
  }
5788
5788
  static fromJson(e, t) {
5789
- return new wt().fromJson(e, t);
5789
+ return new Et().fromJson(e, t);
5790
5790
  }
5791
5791
  static fromJsonString(e, t) {
5792
- return new wt().fromJsonString(e, t);
5792
+ return new Et().fromJsonString(e, t);
5793
5793
  }
5794
5794
  static equals(e, t) {
5795
- return l.util.equals(wt, e, t);
5795
+ return l.util.equals(Et, e, t);
5796
5796
  }
5797
5797
  }
5798
- wt.runtime = l;
5799
- wt.typeName = "livekit.ActiveSpeakerUpdate";
5800
- wt.fields = l.util.newFieldList(() => [{
5798
+ Et.runtime = l;
5799
+ Et.typeName = "livekit.ActiveSpeakerUpdate";
5800
+ Et.fields = l.util.newFieldList(() => [{
5801
5801
  no: 1,
5802
5802
  name: "speakers",
5803
5803
  kind: "message",
5804
- T: et,
5804
+ T: tt,
5805
5805
  repeated: !0
5806
5806
  }]);
5807
- class et extends I {
5807
+ class tt extends A {
5808
5808
  constructor(e) {
5809
5809
  super(), this.sid = "", this.level = 0, this.active = !1, l.util.initPartial(e, this);
5810
5810
  }
5811
5811
  static fromBinary(e, t) {
5812
- return new et().fromBinary(e, t);
5812
+ return new tt().fromBinary(e, t);
5813
5813
  }
5814
5814
  static fromJson(e, t) {
5815
- return new et().fromJson(e, t);
5815
+ return new tt().fromJson(e, t);
5816
5816
  }
5817
5817
  static fromJsonString(e, t) {
5818
- return new et().fromJsonString(e, t);
5818
+ return new tt().fromJsonString(e, t);
5819
5819
  }
5820
5820
  static equals(e, t) {
5821
- return l.util.equals(et, e, t);
5821
+ return l.util.equals(tt, e, t);
5822
5822
  }
5823
5823
  }
5824
- et.runtime = l;
5825
- et.typeName = "livekit.SpeakerInfo";
5826
- et.fields = l.util.newFieldList(() => [{
5824
+ tt.runtime = l;
5825
+ tt.typeName = "livekit.SpeakerInfo";
5826
+ tt.fields = l.util.newFieldList(() => [{
5827
5827
  no: 1,
5828
5828
  name: "sid",
5829
5829
  kind: "scalar",
@@ -5842,26 +5842,26 @@ et.fields = l.util.newFieldList(() => [{
5842
5842
  T: 8
5843
5843
  /* ScalarType.BOOL */
5844
5844
  }]);
5845
- class tt extends I {
5845
+ class it extends A {
5846
5846
  constructor(e) {
5847
5847
  super(), this.participantSid = "", this.payload = new Uint8Array(0), this.destinationSids = [], l.util.initPartial(e, this);
5848
5848
  }
5849
5849
  static fromBinary(e, t) {
5850
- return new tt().fromBinary(e, t);
5850
+ return new it().fromBinary(e, t);
5851
5851
  }
5852
5852
  static fromJson(e, t) {
5853
- return new tt().fromJson(e, t);
5853
+ return new it().fromJson(e, t);
5854
5854
  }
5855
5855
  static fromJsonString(e, t) {
5856
- return new tt().fromJsonString(e, t);
5856
+ return new it().fromJsonString(e, t);
5857
5857
  }
5858
5858
  static equals(e, t) {
5859
- return l.util.equals(tt, e, t);
5859
+ return l.util.equals(it, e, t);
5860
5860
  }
5861
5861
  }
5862
- tt.runtime = l;
5863
- tt.typeName = "livekit.UserPacket";
5864
- tt.fields = l.util.newFieldList(() => [{
5862
+ it.runtime = l;
5863
+ it.typeName = "livekit.UserPacket";
5864
+ it.fields = l.util.newFieldList(() => [{
5865
5865
  no: 1,
5866
5866
  name: "participant_sid",
5867
5867
  kind: "scalar",
@@ -5886,26 +5886,26 @@ tt.fields = l.util.newFieldList(() => [{
5886
5886
  T: 9,
5887
5887
  opt: !0
5888
5888
  }]);
5889
- class it extends I {
5889
+ class nt extends A {
5890
5890
  constructor(e) {
5891
5891
  super(), this.participantSid = "", this.trackSids = [], l.util.initPartial(e, this);
5892
5892
  }
5893
5893
  static fromBinary(e, t) {
5894
- return new it().fromBinary(e, t);
5894
+ return new nt().fromBinary(e, t);
5895
5895
  }
5896
5896
  static fromJson(e, t) {
5897
- return new it().fromJson(e, t);
5897
+ return new nt().fromJson(e, t);
5898
5898
  }
5899
5899
  static fromJsonString(e, t) {
5900
- return new it().fromJsonString(e, t);
5900
+ return new nt().fromJsonString(e, t);
5901
5901
  }
5902
5902
  static equals(e, t) {
5903
- return l.util.equals(it, e, t);
5903
+ return l.util.equals(nt, e, t);
5904
5904
  }
5905
5905
  }
5906
- it.runtime = l;
5907
- it.typeName = "livekit.ParticipantTracks";
5908
- it.fields = l.util.newFieldList(() => [{
5906
+ nt.runtime = l;
5907
+ nt.typeName = "livekit.ParticipantTracks";
5908
+ nt.fields = l.util.newFieldList(() => [{
5909
5909
  no: 1,
5910
5910
  name: "participant_sid",
5911
5911
  kind: "scalar",
@@ -5918,26 +5918,26 @@ it.fields = l.util.newFieldList(() => [{
5918
5918
  T: 9,
5919
5919
  repeated: !0
5920
5920
  }]);
5921
- class Et extends I {
5921
+ class Pt extends A {
5922
5922
  constructor(e) {
5923
5923
  super(), this.edition = Ci.Standard, this.version = "", this.protocol = 0, this.region = "", this.nodeId = "", this.debugInfo = "", l.util.initPartial(e, this);
5924
5924
  }
5925
5925
  static fromBinary(e, t) {
5926
- return new Et().fromBinary(e, t);
5926
+ return new Pt().fromBinary(e, t);
5927
5927
  }
5928
5928
  static fromJson(e, t) {
5929
- return new Et().fromJson(e, t);
5929
+ return new Pt().fromJson(e, t);
5930
5930
  }
5931
5931
  static fromJsonString(e, t) {
5932
- return new Et().fromJsonString(e, t);
5932
+ return new Pt().fromJsonString(e, t);
5933
5933
  }
5934
5934
  static equals(e, t) {
5935
- return l.util.equals(Et, e, t);
5935
+ return l.util.equals(Pt, e, t);
5936
5936
  }
5937
5937
  }
5938
- Et.runtime = l;
5939
- Et.typeName = "livekit.ServerInfo";
5940
- Et.fields = l.util.newFieldList(() => [{
5938
+ Pt.runtime = l;
5939
+ Pt.typeName = "livekit.ServerInfo";
5940
+ Pt.fields = l.util.newFieldList(() => [{
5941
5941
  no: 1,
5942
5942
  name: "edition",
5943
5943
  kind: "enum",
@@ -5984,26 +5984,26 @@ l.util.setEnumType(Ci, "livekit.ServerInfo.Edition", [{
5984
5984
  no: 1,
5985
5985
  name: "Cloud"
5986
5986
  }]);
5987
- class Pt extends I {
5987
+ class Rt extends A {
5988
5988
  constructor(e) {
5989
5989
  super(), this.sdk = wi.UNKNOWN, this.version = "", this.protocol = 0, this.os = "", this.osVersion = "", this.deviceModel = "", this.browser = "", this.browserVersion = "", this.address = "", this.network = "", l.util.initPartial(e, this);
5990
5990
  }
5991
5991
  static fromBinary(e, t) {
5992
- return new Pt().fromBinary(e, t);
5992
+ return new Rt().fromBinary(e, t);
5993
5993
  }
5994
5994
  static fromJson(e, t) {
5995
- return new Pt().fromJson(e, t);
5995
+ return new Rt().fromJson(e, t);
5996
5996
  }
5997
5997
  static fromJsonString(e, t) {
5998
- return new Pt().fromJsonString(e, t);
5998
+ return new Rt().fromJsonString(e, t);
5999
5999
  }
6000
6000
  static equals(e, t) {
6001
- return l.util.equals(Pt, e, t);
6001
+ return l.util.equals(Rt, e, t);
6002
6002
  }
6003
6003
  }
6004
- Pt.runtime = l;
6005
- Pt.typeName = "livekit.ClientInfo";
6006
- Pt.fields = l.util.newFieldList(() => [{
6004
+ Rt.runtime = l;
6005
+ Rt.typeName = "livekit.ClientInfo";
6006
+ Rt.fields = l.util.newFieldList(() => [{
6007
6007
  no: 1,
6008
6008
  name: "sdk",
6009
6009
  kind: "enum",
@@ -6095,35 +6095,35 @@ l.util.setEnumType(wi, "livekit.ClientInfo.SDK", [{
6095
6095
  no: 8,
6096
6096
  name: "RUST"
6097
6097
  }]);
6098
- class nt extends I {
6098
+ class st extends A {
6099
6099
  constructor(e) {
6100
6100
  super(), this.resumeConnection = Ke.UNSET, this.forceRelay = Ke.UNSET, l.util.initPartial(e, this);
6101
6101
  }
6102
6102
  static fromBinary(e, t) {
6103
- return new nt().fromBinary(e, t);
6103
+ return new st().fromBinary(e, t);
6104
6104
  }
6105
6105
  static fromJson(e, t) {
6106
- return new nt().fromJson(e, t);
6106
+ return new st().fromJson(e, t);
6107
6107
  }
6108
6108
  static fromJsonString(e, t) {
6109
- return new nt().fromJsonString(e, t);
6109
+ return new st().fromJsonString(e, t);
6110
6110
  }
6111
6111
  static equals(e, t) {
6112
- return l.util.equals(nt, e, t);
6112
+ return l.util.equals(st, e, t);
6113
6113
  }
6114
6114
  }
6115
- nt.runtime = l;
6116
- nt.typeName = "livekit.ClientConfiguration";
6117
- nt.fields = l.util.newFieldList(() => [{
6115
+ st.runtime = l;
6116
+ st.typeName = "livekit.ClientConfiguration";
6117
+ st.fields = l.util.newFieldList(() => [{
6118
6118
  no: 1,
6119
6119
  name: "video",
6120
6120
  kind: "message",
6121
- T: st
6121
+ T: rt
6122
6122
  }, {
6123
6123
  no: 2,
6124
6124
  name: "screen",
6125
6125
  kind: "message",
6126
- T: st
6126
+ T: rt
6127
6127
  }, {
6128
6128
  no: 3,
6129
6129
  name: "resume_connection",
@@ -6133,58 +6133,58 @@ nt.fields = l.util.newFieldList(() => [{
6133
6133
  no: 4,
6134
6134
  name: "disabled_codecs",
6135
6135
  kind: "message",
6136
- T: Rt
6136
+ T: _t
6137
6137
  }, {
6138
6138
  no: 5,
6139
6139
  name: "force_relay",
6140
6140
  kind: "enum",
6141
6141
  T: l.getEnumType(Ke)
6142
6142
  }]);
6143
- class st extends I {
6143
+ class rt extends A {
6144
6144
  constructor(e) {
6145
6145
  super(), this.hardwareEncoder = Ke.UNSET, l.util.initPartial(e, this);
6146
6146
  }
6147
6147
  static fromBinary(e, t) {
6148
- return new st().fromBinary(e, t);
6148
+ return new rt().fromBinary(e, t);
6149
6149
  }
6150
6150
  static fromJson(e, t) {
6151
- return new st().fromJson(e, t);
6151
+ return new rt().fromJson(e, t);
6152
6152
  }
6153
6153
  static fromJsonString(e, t) {
6154
- return new st().fromJsonString(e, t);
6154
+ return new rt().fromJsonString(e, t);
6155
6155
  }
6156
6156
  static equals(e, t) {
6157
- return l.util.equals(st, e, t);
6157
+ return l.util.equals(rt, e, t);
6158
6158
  }
6159
6159
  }
6160
- st.runtime = l;
6161
- st.typeName = "livekit.VideoConfiguration";
6162
- st.fields = l.util.newFieldList(() => [{
6160
+ rt.runtime = l;
6161
+ rt.typeName = "livekit.VideoConfiguration";
6162
+ rt.fields = l.util.newFieldList(() => [{
6163
6163
  no: 1,
6164
6164
  name: "hardware_encoder",
6165
6165
  kind: "enum",
6166
6166
  T: l.getEnumType(Ke)
6167
6167
  }]);
6168
- class Rt extends I {
6168
+ class _t extends A {
6169
6169
  constructor(e) {
6170
6170
  super(), this.codecs = [], this.publish = [], l.util.initPartial(e, this);
6171
6171
  }
6172
6172
  static fromBinary(e, t) {
6173
- return new Rt().fromBinary(e, t);
6173
+ return new _t().fromBinary(e, t);
6174
6174
  }
6175
6175
  static fromJson(e, t) {
6176
- return new Rt().fromJson(e, t);
6176
+ return new _t().fromJson(e, t);
6177
6177
  }
6178
6178
  static fromJsonString(e, t) {
6179
- return new Rt().fromJsonString(e, t);
6179
+ return new _t().fromJsonString(e, t);
6180
6180
  }
6181
6181
  static equals(e, t) {
6182
- return l.util.equals(Rt, e, t);
6182
+ return l.util.equals(_t, e, t);
6183
6183
  }
6184
6184
  }
6185
- Rt.runtime = l;
6186
- Rt.typeName = "livekit.DisabledCodecs";
6187
- Rt.fields = l.util.newFieldList(() => [{
6185
+ _t.runtime = l;
6186
+ _t.typeName = "livekit.DisabledCodecs";
6187
+ _t.fields = l.util.newFieldList(() => [{
6188
6188
  no: 1,
6189
6189
  name: "codecs",
6190
6190
  kind: "message",
@@ -6197,26 +6197,26 @@ Rt.fields = l.util.newFieldList(() => [{
6197
6197
  T: $e,
6198
6198
  repeated: !0
6199
6199
  }]);
6200
- class Yt extends I {
6200
+ class Xt extends A {
6201
6201
  constructor(e) {
6202
6202
  super(), this.duration = 0, this.packets = 0, this.packetRate = 0, this.bytes = V.zero, this.headerBytes = V.zero, this.bitrate = 0, this.packetsLost = 0, this.packetLossRate = 0, this.packetLossPercentage = 0, this.packetsDuplicate = 0, this.packetDuplicateRate = 0, this.bytesDuplicate = V.zero, this.headerBytesDuplicate = V.zero, this.bitrateDuplicate = 0, this.packetsPadding = 0, this.packetPaddingRate = 0, this.bytesPadding = V.zero, this.headerBytesPadding = V.zero, this.bitratePadding = 0, this.packetsOutOfOrder = 0, this.frames = 0, this.frameRate = 0, this.jitterCurrent = 0, this.jitterMax = 0, this.gapHistogram = {}, this.nacks = 0, this.nackAcks = 0, this.nackMisses = 0, this.nackRepeated = 0, this.plis = 0, this.firs = 0, this.rttCurrent = 0, this.rttMax = 0, this.keyFrames = 0, this.layerLockPlis = 0, this.sampleRate = 0, this.driftMs = 0, l.util.initPartial(e, this);
6203
6203
  }
6204
6204
  static fromBinary(e, t) {
6205
- return new Yt().fromBinary(e, t);
6205
+ return new Xt().fromBinary(e, t);
6206
6206
  }
6207
6207
  static fromJson(e, t) {
6208
- return new Yt().fromJson(e, t);
6208
+ return new Xt().fromJson(e, t);
6209
6209
  }
6210
6210
  static fromJsonString(e, t) {
6211
- return new Yt().fromJsonString(e, t);
6211
+ return new Xt().fromJsonString(e, t);
6212
6212
  }
6213
6213
  static equals(e, t) {
6214
- return l.util.equals(Yt, e, t);
6214
+ return l.util.equals(Xt, e, t);
6215
6215
  }
6216
6216
  }
6217
- Yt.runtime = l;
6218
- Yt.typeName = "livekit.RTPStats";
6219
- Yt.fields = l.util.newFieldList(() => [{
6217
+ Xt.runtime = l;
6218
+ Xt.typeName = "livekit.RTPStats";
6219
+ Xt.fields = l.util.newFieldList(() => [{
6220
6220
  no: 1,
6221
6221
  name: "start_time",
6222
6222
  kind: "message",
@@ -6473,26 +6473,26 @@ Yt.fields = l.util.newFieldList(() => [{
6473
6473
  T: 1
6474
6474
  /* ScalarType.DOUBLE */
6475
6475
  }]);
6476
- class Xt extends I {
6476
+ class Qt extends A {
6477
6477
  constructor(e) {
6478
6478
  super(), this.unixMicro = V.zero, this.ticks = 0, l.util.initPartial(e, this);
6479
6479
  }
6480
6480
  static fromBinary(e, t) {
6481
- return new Xt().fromBinary(e, t);
6481
+ return new Qt().fromBinary(e, t);
6482
6482
  }
6483
6483
  static fromJson(e, t) {
6484
- return new Xt().fromJson(e, t);
6484
+ return new Qt().fromJson(e, t);
6485
6485
  }
6486
6486
  static fromJsonString(e, t) {
6487
- return new Xt().fromJsonString(e, t);
6487
+ return new Qt().fromJsonString(e, t);
6488
6488
  }
6489
6489
  static equals(e, t) {
6490
- return l.util.equals(Xt, e, t);
6490
+ return l.util.equals(Qt, e, t);
6491
6491
  }
6492
6492
  }
6493
- Xt.runtime = l;
6494
- Xt.typeName = "livekit.TimedVersion";
6495
- Xt.fields = l.util.newFieldList(() => [{
6493
+ Qt.runtime = l;
6494
+ Qt.typeName = "livekit.TimedVersion";
6495
+ Qt.fields = l.util.newFieldList(() => [{
6496
6496
  no: 1,
6497
6497
  name: "unix_micro",
6498
6498
  kind: "scalar",
@@ -6806,13 +6806,13 @@ 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 mt = Ls.exports;
6809
+ var gt = Ls.exports;
6810
6810
  let Ta = !0, Sa = !0;
6811
6811
  function kn(i, e, t) {
6812
6812
  const n = i.match(e);
6813
6813
  return n && n.length >= t && parseInt(n[t], 10);
6814
6814
  }
6815
- function ui(i, e, t) {
6815
+ function di(i, e, t) {
6816
6816
  if (!i.RTCPeerConnection)
6817
6817
  return;
6818
6818
  const n = i.RTCPeerConnection.prototype, s = n.addEventListener;
@@ -7072,7 +7072,7 @@ function Ra(i) {
7072
7072
  }, this.addEventListener("addstream", this._ontrackpoly)), e.apply(this, arguments);
7073
7073
  };
7074
7074
  } else
7075
- ui(i, "track", (e) => (e.transceiver || Object.defineProperty(e, "transceiver", {
7075
+ di(i, "track", (e) => (e.transceiver || Object.defineProperty(e, "transceiver", {
7076
7076
  value: {
7077
7077
  receiver: e.receiver
7078
7078
  }
@@ -7200,7 +7200,7 @@ function Aa(i) {
7200
7200
  t && (i.RTCPeerConnection.prototype.getReceivers = function() {
7201
7201
  const s = t.apply(this, []);
7202
7202
  return s.forEach((r) => r._pc = this), s;
7203
- }), ui(i, "track", (n) => (n.receiver._pc = n.srcElement, n)), i.RTCRtpReceiver.prototype.getStats = function() {
7203
+ }), di(i, "track", (n) => (n.receiver._pc = n.srcElement, n)), i.RTCRtpReceiver.prototype.getStats = function() {
7204
7204
  const s = this;
7205
7205
  return this._pc.getStats().then((r) => or(r, s.track, !1));
7206
7206
  };
@@ -7367,7 +7367,7 @@ function gs(i, e) {
7367
7367
  });
7368
7368
  }
7369
7369
  function Na(i, e) {
7370
- ui(i, "negotiationneeded", (t) => {
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"))
7373
7373
  return t;
@@ -7494,7 +7494,7 @@ function Ua(i) {
7494
7494
  e && (i.RTCPeerConnection.prototype.getReceivers = function() {
7495
7495
  const n = e.apply(this, []);
7496
7496
  return n.forEach((s) => s._pc = this), n;
7497
- }), ui(i, "track", (t) => (t.receiver._pc = t.srcElement, t)), i.RTCRtpReceiver.prototype.getStats = function() {
7497
+ }), di(i, "track", (t) => (t.receiver._pc = t.srcElement, t)), i.RTCRtpReceiver.prototype.getStats = function() {
7498
7498
  return this._pc.getStats(this.track);
7499
7499
  };
7500
7500
  }
@@ -7648,7 +7648,7 @@ function Ha(i) {
7648
7648
  };
7649
7649
  }
7650
7650
  }
7651
- function Wa(i) {
7651
+ function za(i) {
7652
7652
  if (typeof i != "object" || !i.RTCPeerConnection)
7653
7653
  return;
7654
7654
  const e = i.RTCPeerConnection.prototype, t = e.createOffer, n = e.createAnswer, s = e.setLocalDescription, r = e.setRemoteDescription, a = e.addIceCandidate;
@@ -7671,17 +7671,17 @@ function Wa(i) {
7671
7671
  return d ? (h.then(u, d), Promise.resolve()) : h;
7672
7672
  }, e.addIceCandidate = o;
7673
7673
  }
7674
- function Ga(i) {
7674
+ function Wa(i) {
7675
7675
  const e = i && i.navigator;
7676
7676
  if (e.mediaDevices && e.mediaDevices.getUserMedia) {
7677
7677
  const t = e.mediaDevices, n = t.getUserMedia.bind(t);
7678
- e.mediaDevices.getUserMedia = (s) => n(za(s));
7678
+ e.mediaDevices.getUserMedia = (s) => n(Ga(s));
7679
7679
  }
7680
7680
  !e.getUserMedia && e.mediaDevices && e.mediaDevices.getUserMedia && (e.getUserMedia = (function(n, s, r) {
7681
7681
  e.mediaDevices.getUserMedia(n).then(s, r);
7682
7682
  }).bind(e));
7683
7683
  }
7684
- function za(i) {
7684
+ function Ga(i) {
7685
7685
  return i && i.video !== void 0 ? Object.assign({}, i, {
7686
7686
  video: wa(i.video)
7687
7687
  }) : i;
@@ -7738,10 +7738,10 @@ function Qa(i) {
7738
7738
  var lr = /* @__PURE__ */ Object.freeze({
7739
7739
  __proto__: null,
7740
7740
  shimAudioContext: Qa,
7741
- shimCallbacksAPI: Wa,
7742
- shimConstraints: za,
7741
+ shimCallbacksAPI: za,
7742
+ shimConstraints: Ga,
7743
7743
  shimCreateOfferLegacy: Xa,
7744
- shimGetUserMedia: Ga,
7744
+ shimGetUserMedia: Wa,
7745
7745
  shimLocalStreamsAPI: qa,
7746
7746
  shimRTCIceServerUrls: Ka,
7747
7747
  shimRemoteStreamsAPI: Ha,
@@ -8141,13 +8141,13 @@ function Tn(i) {
8141
8141
  }, s;
8142
8142
  }
8143
8143
  return new e(n);
8144
- }, i.RTCIceCandidate.prototype = e.prototype, ui(i, "icecandidate", (t) => (t.candidate && Object.defineProperty(t, "candidate", {
8144
+ }, i.RTCIceCandidate.prototype = e.prototype, di(i, "icecandidate", (t) => (t.candidate && Object.defineProperty(t, "candidate", {
8145
8145
  value: new i.RTCIceCandidate(t.candidate),
8146
8146
  writable: "false"
8147
8147
  }), t));
8148
8148
  }
8149
8149
  function ys(i) {
8150
- !i.RTCIceCandidate || i.RTCIceCandidate && "relayProtocol" in i.RTCIceCandidate.prototype || ui(i, "icecandidate", (e) => {
8150
+ !i.RTCIceCandidate || i.RTCIceCandidate && "relayProtocol" in i.RTCIceCandidate.prototype || di(i, "icecandidate", (e) => {
8151
8151
  if (e.candidate) {
8152
8152
  const t = ki.parseCandidate(e.candidate.candidate);
8153
8153
  t.type === "relay" && (e.candidate.relayProtocol = {
@@ -8233,7 +8233,7 @@ function Cn(i) {
8233
8233
  i.RTCPeerConnection.prototype.createDataChannel = function() {
8234
8234
  const s = t.apply(this, arguments);
8235
8235
  return e(s, this), s;
8236
- }, ui(i, "datachannel", (n) => (e(n.channel, n.target), n));
8236
+ }, di(i, "datachannel", (n) => (e(n.channel, n.target), n));
8237
8237
  }
8238
8238
  function bs(i) {
8239
8239
  if (!i.RTCPeerConnection || "connectionState" in i.RTCPeerConnection.prototype)
@@ -8367,7 +8367,7 @@ function hd() {
8367
8367
  case "safari":
8368
8368
  if (!lr || !e.shimSafari)
8369
8369
  return t("Safari shim is not included in this adapter release."), s;
8370
- t("adapter.js shimming safari."), s.browserShim = lr, wn(i, n), En(i), Ka(i), Xa(i), Wa(i), qa(i), Ha(i), Ya(i), Ga(i), Qa(i), Tn(i), ys(i), Sn(i, n), Cn(i), ks(i, n);
8370
+ t("adapter.js shimming safari."), s.browserShim = lr, wn(i, n), En(i), Ka(i), Xa(i), za(i), qa(i), Ha(i), Ya(i), Wa(i), Qa(i), Tn(i), ys(i), Sn(i, n), Cn(i), ks(i, n);
8371
8371
  break;
8372
8372
  default:
8373
8373
  t("Unsupported browser!");
@@ -8389,11 +8389,11 @@ l.util.setEnumType(Re, "livekit.SignalTarget", [{
8389
8389
  no: 1,
8390
8390
  name: "SUBSCRIBER"
8391
8391
  }]);
8392
- var oi;
8392
+ var ci;
8393
8393
  (function(i) {
8394
8394
  i[i.ACTIVE = 0] = "ACTIVE", i[i.PAUSED = 1] = "PAUSED";
8395
- })(oi || (oi = {}));
8396
- l.util.setEnumType(oi, "livekit.StreamState", [{
8395
+ })(ci || (ci = {}));
8396
+ l.util.setEnumType(ci, "livekit.StreamState", [{
8397
8397
  no: 0,
8398
8398
  name: "ACTIVE"
8399
8399
  }, {
@@ -8414,28 +8414,28 @@ l.util.setEnumType(_n, "livekit.CandidateProtocol", [{
8414
8414
  no: 2,
8415
8415
  name: "TLS"
8416
8416
  }]);
8417
- class _t extends I {
8417
+ class It extends A {
8418
8418
  constructor(e) {
8419
8419
  super(), this.message = {
8420
8420
  case: void 0
8421
8421
  }, l.util.initPartial(e, this);
8422
8422
  }
8423
8423
  static fromBinary(e, t) {
8424
- return new _t().fromBinary(e, t);
8424
+ return new It().fromBinary(e, t);
8425
8425
  }
8426
8426
  static fromJson(e, t) {
8427
- return new _t().fromJson(e, t);
8427
+ return new It().fromJson(e, t);
8428
8428
  }
8429
8429
  static fromJsonString(e, t) {
8430
- return new _t().fromJsonString(e, t);
8430
+ return new It().fromJsonString(e, t);
8431
8431
  }
8432
8432
  static equals(e, t) {
8433
- return l.util.equals(_t, e, t);
8433
+ return l.util.equals(It, e, t);
8434
8434
  }
8435
8435
  }
8436
- _t.runtime = l;
8437
- _t.typeName = "livekit.SignalRequest";
8438
- _t.fields = l.util.newFieldList(() => [{
8436
+ It.runtime = l;
8437
+ It.typeName = "livekit.SignalRequest";
8438
+ It.fields = l.util.newFieldList(() => [{
8439
8439
  no: 1,
8440
8440
  name: "offer",
8441
8441
  kind: "message",
@@ -8463,7 +8463,7 @@ _t.fields = l.util.newFieldList(() => [{
8463
8463
  no: 5,
8464
8464
  name: "mute",
8465
8465
  kind: "message",
8466
- T: We,
8466
+ T: ze,
8467
8467
  oneof: "message"
8468
8468
  }, {
8469
8469
  no: 6,
@@ -8475,7 +8475,7 @@ _t.fields = l.util.newFieldList(() => [{
8475
8475
  no: 7,
8476
8476
  name: "track_setting",
8477
8477
  kind: "message",
8478
- T: at,
8478
+ T: ot,
8479
8479
  oneof: "message"
8480
8480
  }, {
8481
8481
  no: 8,
@@ -8487,19 +8487,19 @@ _t.fields = l.util.newFieldList(() => [{
8487
8487
  no: 10,
8488
8488
  name: "update_layers",
8489
8489
  kind: "message",
8490
- T: ot,
8490
+ T: ct,
8491
8491
  oneof: "message"
8492
8492
  }, {
8493
8493
  no: 11,
8494
8494
  name: "subscription_permission",
8495
8495
  kind: "message",
8496
- T: lt,
8496
+ T: ht,
8497
8497
  oneof: "message"
8498
8498
  }, {
8499
8499
  no: 12,
8500
8500
  name: "sync_state",
8501
8501
  kind: "message",
8502
- T: ht,
8502
+ T: ft,
8503
8503
  oneof: "message"
8504
8504
  }, {
8505
8505
  no: 13,
@@ -8517,41 +8517,41 @@ _t.fields = l.util.newFieldList(() => [{
8517
8517
  no: 15,
8518
8518
  name: "update_metadata",
8519
8519
  kind: "message",
8520
- T: ct,
8520
+ T: ut,
8521
8521
  oneof: "message"
8522
8522
  }, {
8523
8523
  no: 16,
8524
8524
  name: "ping_req",
8525
8525
  kind: "message",
8526
- T: pt,
8526
+ T: mt,
8527
8527
  oneof: "message"
8528
8528
  }]);
8529
- class rt extends I {
8529
+ class at extends A {
8530
8530
  constructor(e) {
8531
8531
  super(), this.message = {
8532
8532
  case: void 0
8533
8533
  }, l.util.initPartial(e, this);
8534
8534
  }
8535
8535
  static fromBinary(e, t) {
8536
- return new rt().fromBinary(e, t);
8536
+ return new at().fromBinary(e, t);
8537
8537
  }
8538
8538
  static fromJson(e, t) {
8539
- return new rt().fromJson(e, t);
8539
+ return new at().fromJson(e, t);
8540
8540
  }
8541
8541
  static fromJsonString(e, t) {
8542
- return new rt().fromJsonString(e, t);
8542
+ return new at().fromJsonString(e, t);
8543
8543
  }
8544
8544
  static equals(e, t) {
8545
- return l.util.equals(rt, e, t);
8545
+ return l.util.equals(at, e, t);
8546
8546
  }
8547
8547
  }
8548
- rt.runtime = l;
8549
- rt.typeName = "livekit.SignalResponse";
8550
- rt.fields = l.util.newFieldList(() => [{
8548
+ at.runtime = l;
8549
+ at.typeName = "livekit.SignalResponse";
8550
+ at.fields = l.util.newFieldList(() => [{
8551
8551
  no: 1,
8552
8552
  name: "join",
8553
8553
  kind: "message",
8554
- T: It,
8554
+ T: At,
8555
8555
  oneof: "message"
8556
8556
  }, {
8557
8557
  no: 2,
@@ -8575,13 +8575,13 @@ rt.fields = l.util.newFieldList(() => [{
8575
8575
  no: 5,
8576
8576
  name: "update",
8577
8577
  kind: "message",
8578
- T: Lt,
8578
+ T: Nt,
8579
8579
  oneof: "message"
8580
8580
  }, {
8581
8581
  no: 6,
8582
8582
  name: "track_published",
8583
8583
  kind: "message",
8584
- T: Ge,
8584
+ T: We,
8585
8585
  oneof: "message"
8586
8586
  }, {
8587
8587
  no: 8,
@@ -8593,43 +8593,43 @@ rt.fields = l.util.newFieldList(() => [{
8593
8593
  no: 9,
8594
8594
  name: "mute",
8595
8595
  kind: "message",
8596
- T: We,
8596
+ T: ze,
8597
8597
  oneof: "message"
8598
8598
  }, {
8599
8599
  no: 10,
8600
8600
  name: "speakers_changed",
8601
8601
  kind: "message",
8602
- T: Nt,
8602
+ T: xt,
8603
8603
  oneof: "message"
8604
8604
  }, {
8605
8605
  no: 11,
8606
8606
  name: "room_update",
8607
8607
  kind: "message",
8608
- T: xt,
8608
+ T: Dt,
8609
8609
  oneof: "message"
8610
8610
  }, {
8611
8611
  no: 12,
8612
8612
  name: "connection_quality",
8613
8613
  kind: "message",
8614
- T: Mt,
8614
+ T: Ut,
8615
8615
  oneof: "message"
8616
8616
  }, {
8617
8617
  no: 13,
8618
8618
  name: "stream_state_update",
8619
8619
  kind: "message",
8620
- T: Ft,
8620
+ T: Bt,
8621
8621
  oneof: "message"
8622
8622
  }, {
8623
8623
  no: 14,
8624
8624
  name: "subscribed_quality_update",
8625
8625
  kind: "message",
8626
- T: Jt,
8626
+ T: jt,
8627
8627
  oneof: "message"
8628
8628
  }, {
8629
8629
  no: 15,
8630
8630
  name: "subscription_permission_update",
8631
8631
  kind: "message",
8632
- T: jt,
8632
+ T: Vt,
8633
8633
  oneof: "message"
8634
8634
  }, {
8635
8635
  no: 16,
@@ -8641,7 +8641,7 @@ rt.fields = l.util.newFieldList(() => [{
8641
8641
  no: 17,
8642
8642
  name: "track_unpublished",
8643
8643
  kind: "message",
8644
- T: Ot,
8644
+ T: Lt,
8645
8645
  oneof: "message"
8646
8646
  }, {
8647
8647
  no: 18,
@@ -8653,22 +8653,22 @@ rt.fields = l.util.newFieldList(() => [{
8653
8653
  no: 19,
8654
8654
  name: "reconnect",
8655
8655
  kind: "message",
8656
- T: At,
8656
+ T: Ot,
8657
8657
  oneof: "message"
8658
8658
  }, {
8659
8659
  no: 20,
8660
8660
  name: "pong_resp",
8661
8661
  kind: "message",
8662
- T: Vt,
8662
+ T: $t,
8663
8663
  oneof: "message"
8664
8664
  }, {
8665
8665
  no: 21,
8666
8666
  name: "subscription_response",
8667
8667
  kind: "message",
8668
- T: qt,
8668
+ T: Ht,
8669
8669
  oneof: "message"
8670
8670
  }]);
8671
- class Be extends I {
8671
+ class Be extends A {
8672
8672
  constructor(e) {
8673
8673
  super(), this.codec = "", this.cid = "", this.enableSimulcastLayers = !1, l.util.initPartial(e, this);
8674
8674
  }
@@ -8706,7 +8706,7 @@ Be.fields = l.util.newFieldList(() => [{
8706
8706
  T: 8
8707
8707
  /* ScalarType.BOOL */
8708
8708
  }]);
8709
- class qe extends I {
8709
+ class qe 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
  }
@@ -8813,7 +8813,7 @@ qe.fields = l.util.newFieldList(() => [{
8813
8813
  T: 9
8814
8814
  /* ScalarType.STRING */
8815
8815
  }]);
8816
- class He extends I {
8816
+ class He extends A {
8817
8817
  constructor(e) {
8818
8818
  super(), this.candidateInit = "", this.target = Re.PUBLISHER, l.util.initPartial(e, this);
8819
8819
  }
@@ -8844,26 +8844,26 @@ He.fields = l.util.newFieldList(() => [{
8844
8844
  kind: "enum",
8845
8845
  T: l.getEnumType(Re)
8846
8846
  }]);
8847
- class We extends I {
8847
+ class ze 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 We().fromBinary(e, t);
8852
+ return new ze().fromBinary(e, t);
8853
8853
  }
8854
8854
  static fromJson(e, t) {
8855
- return new We().fromJson(e, t);
8855
+ return new ze().fromJson(e, t);
8856
8856
  }
8857
8857
  static fromJsonString(e, t) {
8858
- return new We().fromJsonString(e, t);
8858
+ return new ze().fromJsonString(e, t);
8859
8859
  }
8860
8860
  static equals(e, t) {
8861
- return l.util.equals(We, e, t);
8861
+ return l.util.equals(ze, e, t);
8862
8862
  }
8863
8863
  }
8864
- We.runtime = l;
8865
- We.typeName = "livekit.MuteTrackRequest";
8866
- We.fields = l.util.newFieldList(() => [{
8864
+ ze.runtime = l;
8865
+ ze.typeName = "livekit.MuteTrackRequest";
8866
+ ze.fields = l.util.newFieldList(() => [{
8867
8867
  no: 1,
8868
8868
  name: "sid",
8869
8869
  kind: "scalar",
@@ -8876,26 +8876,26 @@ We.fields = l.util.newFieldList(() => [{
8876
8876
  T: 8
8877
8877
  /* ScalarType.BOOL */
8878
8878
  }]);
8879
- class It extends I {
8879
+ class At extends A {
8880
8880
  constructor(e) {
8881
8881
  super(), this.otherParticipants = [], this.serverVersion = "", this.iceServers = [], this.subscriberPrimary = !1, this.alternativeUrl = "", this.serverRegion = "", this.pingTimeout = 0, this.pingInterval = 0, this.sifTrailer = new Uint8Array(0), l.util.initPartial(e, this);
8882
8882
  }
8883
8883
  static fromBinary(e, t) {
8884
- return new It().fromBinary(e, t);
8884
+ return new At().fromBinary(e, t);
8885
8885
  }
8886
8886
  static fromJson(e, t) {
8887
- return new It().fromJson(e, t);
8887
+ return new At().fromJson(e, t);
8888
8888
  }
8889
8889
  static fromJsonString(e, t) {
8890
- return new It().fromJsonString(e, t);
8890
+ return new At().fromJsonString(e, t);
8891
8891
  }
8892
8892
  static equals(e, t) {
8893
- return l.util.equals(It, e, t);
8893
+ return l.util.equals(At, e, t);
8894
8894
  }
8895
8895
  }
8896
- It.runtime = l;
8897
- It.typeName = "livekit.JoinResponse";
8898
- It.fields = l.util.newFieldList(() => [{
8896
+ At.runtime = l;
8897
+ At.typeName = "livekit.JoinResponse";
8898
+ At.fields = l.util.newFieldList(() => [{
8899
8899
  no: 1,
8900
8900
  name: "room",
8901
8901
  kind: "message",
@@ -8921,7 +8921,7 @@ It.fields = l.util.newFieldList(() => [{
8921
8921
  no: 5,
8922
8922
  name: "ice_servers",
8923
8923
  kind: "message",
8924
- T: ut,
8924
+ T: dt,
8925
8925
  repeated: !0
8926
8926
  }, {
8927
8927
  no: 6,
@@ -8939,7 +8939,7 @@ It.fields = l.util.newFieldList(() => [{
8939
8939
  no: 8,
8940
8940
  name: "client_configuration",
8941
8941
  kind: "message",
8942
- T: nt
8942
+ T: st
8943
8943
  }, {
8944
8944
  no: 9,
8945
8945
  name: "server_region",
@@ -8962,7 +8962,7 @@ It.fields = l.util.newFieldList(() => [{
8962
8962
  no: 12,
8963
8963
  name: "server_info",
8964
8964
  kind: "message",
8965
- T: Et
8965
+ T: Pt
8966
8966
  }, {
8967
8967
  no: 13,
8968
8968
  name: "sif_trailer",
@@ -8970,57 +8970,57 @@ It.fields = l.util.newFieldList(() => [{
8970
8970
  T: 12
8971
8971
  /* ScalarType.BYTES */
8972
8972
  }]);
8973
- class At extends I {
8973
+ class Ot extends A {
8974
8974
  constructor(e) {
8975
8975
  super(), this.iceServers = [], l.util.initPartial(e, this);
8976
8976
  }
8977
8977
  static fromBinary(e, t) {
8978
- return new At().fromBinary(e, t);
8978
+ return new Ot().fromBinary(e, t);
8979
8979
  }
8980
8980
  static fromJson(e, t) {
8981
- return new At().fromJson(e, t);
8981
+ return new Ot().fromJson(e, t);
8982
8982
  }
8983
8983
  static fromJsonString(e, t) {
8984
- return new At().fromJsonString(e, t);
8984
+ return new Ot().fromJsonString(e, t);
8985
8985
  }
8986
8986
  static equals(e, t) {
8987
- return l.util.equals(At, e, t);
8987
+ return l.util.equals(Ot, e, t);
8988
8988
  }
8989
8989
  }
8990
- At.runtime = l;
8991
- At.typeName = "livekit.ReconnectResponse";
8992
- At.fields = l.util.newFieldList(() => [{
8990
+ Ot.runtime = l;
8991
+ Ot.typeName = "livekit.ReconnectResponse";
8992
+ Ot.fields = l.util.newFieldList(() => [{
8993
8993
  no: 1,
8994
8994
  name: "ice_servers",
8995
8995
  kind: "message",
8996
- T: ut,
8996
+ T: dt,
8997
8997
  repeated: !0
8998
8998
  }, {
8999
8999
  no: 2,
9000
9000
  name: "client_configuration",
9001
9001
  kind: "message",
9002
- T: nt
9002
+ T: st
9003
9003
  }]);
9004
- class Ge extends I {
9004
+ class We 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 Ge().fromBinary(e, t);
9009
+ return new We().fromBinary(e, t);
9010
9010
  }
9011
9011
  static fromJson(e, t) {
9012
- return new Ge().fromJson(e, t);
9012
+ return new We().fromJson(e, t);
9013
9013
  }
9014
9014
  static fromJsonString(e, t) {
9015
- return new Ge().fromJsonString(e, t);
9015
+ return new We().fromJsonString(e, t);
9016
9016
  }
9017
9017
  static equals(e, t) {
9018
- return l.util.equals(Ge, e, t);
9018
+ return l.util.equals(We, e, t);
9019
9019
  }
9020
9020
  }
9021
- Ge.runtime = l;
9022
- Ge.typeName = "livekit.TrackPublishedResponse";
9023
- Ge.fields = l.util.newFieldList(() => [{
9021
+ We.runtime = l;
9022
+ We.typeName = "livekit.TrackPublishedResponse";
9023
+ We.fields = l.util.newFieldList(() => [{
9024
9024
  no: 1,
9025
9025
  name: "cid",
9026
9026
  kind: "scalar",
@@ -9032,33 +9032,33 @@ Ge.fields = l.util.newFieldList(() => [{
9032
9032
  kind: "message",
9033
9033
  T: Pe
9034
9034
  }]);
9035
- class Ot extends I {
9035
+ class Lt 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 Ot().fromBinary(e, t);
9040
+ return new Lt().fromBinary(e, t);
9041
9041
  }
9042
9042
  static fromJson(e, t) {
9043
- return new Ot().fromJson(e, t);
9043
+ return new Lt().fromJson(e, t);
9044
9044
  }
9045
9045
  static fromJsonString(e, t) {
9046
- return new Ot().fromJsonString(e, t);
9046
+ return new Lt().fromJsonString(e, t);
9047
9047
  }
9048
9048
  static equals(e, t) {
9049
- return l.util.equals(Ot, e, t);
9049
+ return l.util.equals(Lt, e, t);
9050
9050
  }
9051
9051
  }
9052
- Ot.runtime = l;
9053
- Ot.typeName = "livekit.TrackUnpublishedResponse";
9054
- Ot.fields = l.util.newFieldList(() => [{
9052
+ Lt.runtime = l;
9053
+ Lt.typeName = "livekit.TrackUnpublishedResponse";
9054
+ Lt.fields = l.util.newFieldList(() => [{
9055
9055
  no: 1,
9056
9056
  name: "track_sid",
9057
9057
  kind: "scalar",
9058
9058
  T: 9
9059
9059
  /* ScalarType.STRING */
9060
9060
  }]);
9061
- class Se extends I {
9061
+ class Se extends A {
9062
9062
  constructor(e) {
9063
9063
  super(), this.type = "", this.sdp = "", l.util.initPartial(e, this);
9064
9064
  }
@@ -9090,33 +9090,33 @@ Se.fields = l.util.newFieldList(() => [{
9090
9090
  T: 9
9091
9091
  /* ScalarType.STRING */
9092
9092
  }]);
9093
- class Lt extends I {
9093
+ class Nt 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 Lt().fromBinary(e, t);
9098
+ return new Nt().fromBinary(e, t);
9099
9099
  }
9100
9100
  static fromJson(e, t) {
9101
- return new Lt().fromJson(e, t);
9101
+ return new Nt().fromJson(e, t);
9102
9102
  }
9103
9103
  static fromJsonString(e, t) {
9104
- return new Lt().fromJsonString(e, t);
9104
+ return new Nt().fromJsonString(e, t);
9105
9105
  }
9106
9106
  static equals(e, t) {
9107
- return l.util.equals(Lt, e, t);
9107
+ return l.util.equals(Nt, e, t);
9108
9108
  }
9109
9109
  }
9110
- Lt.runtime = l;
9111
- Lt.typeName = "livekit.ParticipantUpdate";
9112
- Lt.fields = l.util.newFieldList(() => [{
9110
+ Nt.runtime = l;
9111
+ Nt.typeName = "livekit.ParticipantUpdate";
9112
+ Nt.fields = l.util.newFieldList(() => [{
9113
9113
  no: 1,
9114
9114
  name: "participants",
9115
9115
  kind: "message",
9116
9116
  T: Me,
9117
9117
  repeated: !0
9118
9118
  }]);
9119
- class Je extends I {
9119
+ class Je extends A {
9120
9120
  constructor(e) {
9121
9121
  super(), this.trackSids = [], this.subscribe = !1, this.participantTracks = [], l.util.initPartial(e, this);
9122
9122
  }
@@ -9151,29 +9151,29 @@ Je.fields = l.util.newFieldList(() => [{
9151
9151
  no: 3,
9152
9152
  name: "participant_tracks",
9153
9153
  kind: "message",
9154
- T: it,
9154
+ T: nt,
9155
9155
  repeated: !0
9156
9156
  }]);
9157
- class at extends I {
9157
+ class ot extends A {
9158
9158
  constructor(e) {
9159
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);
9160
9160
  }
9161
9161
  static fromBinary(e, t) {
9162
- return new at().fromBinary(e, t);
9162
+ return new ot().fromBinary(e, t);
9163
9163
  }
9164
9164
  static fromJson(e, t) {
9165
- return new at().fromJson(e, t);
9165
+ return new ot().fromJson(e, t);
9166
9166
  }
9167
9167
  static fromJsonString(e, t) {
9168
- return new at().fromJsonString(e, t);
9168
+ return new ot().fromJsonString(e, t);
9169
9169
  }
9170
9170
  static equals(e, t) {
9171
- return l.util.equals(at, e, t);
9171
+ return l.util.equals(ot, e, t);
9172
9172
  }
9173
9173
  }
9174
- at.runtime = l;
9175
- at.typeName = "livekit.UpdateTrackSettings";
9176
- at.fields = l.util.newFieldList(() => [{
9174
+ ot.runtime = l;
9175
+ ot.typeName = "livekit.UpdateTrackSettings";
9176
+ ot.fields = l.util.newFieldList(() => [{
9177
9177
  no: 1,
9178
9178
  name: "track_sids",
9179
9179
  kind: "scalar",
@@ -9215,9 +9215,9 @@ at.fields = l.util.newFieldList(() => [{
9215
9215
  T: 13
9216
9216
  /* ScalarType.UINT32 */
9217
9217
  }]);
9218
- class je extends I {
9218
+ class je extends A {
9219
9219
  constructor(e) {
9220
- super(), this.canReconnect = !1, this.reason = Ht.UNKNOWN_REASON, l.util.initPartial(e, this);
9220
+ super(), this.canReconnect = !1, this.reason = zt.UNKNOWN_REASON, l.util.initPartial(e, this);
9221
9221
  }
9222
9222
  static fromBinary(e, t) {
9223
9223
  return new je().fromBinary(e, t);
@@ -9244,28 +9244,28 @@ je.fields = l.util.newFieldList(() => [{
9244
9244
  no: 2,
9245
9245
  name: "reason",
9246
9246
  kind: "enum",
9247
- T: l.getEnumType(Ht)
9247
+ T: l.getEnumType(zt)
9248
9248
  }]);
9249
- class ot extends I {
9249
+ class ct extends A {
9250
9250
  constructor(e) {
9251
9251
  super(), this.trackSid = "", this.layers = [], l.util.initPartial(e, this);
9252
9252
  }
9253
9253
  static fromBinary(e, t) {
9254
- return new ot().fromBinary(e, t);
9254
+ return new ct().fromBinary(e, t);
9255
9255
  }
9256
9256
  static fromJson(e, t) {
9257
- return new ot().fromJson(e, t);
9257
+ return new ct().fromJson(e, t);
9258
9258
  }
9259
9259
  static fromJsonString(e, t) {
9260
- return new ot().fromJsonString(e, t);
9260
+ return new ct().fromJsonString(e, t);
9261
9261
  }
9262
9262
  static equals(e, t) {
9263
- return l.util.equals(ot, e, t);
9263
+ return l.util.equals(ct, e, t);
9264
9264
  }
9265
9265
  }
9266
- ot.runtime = l;
9267
- ot.typeName = "livekit.UpdateVideoLayers";
9268
- ot.fields = l.util.newFieldList(() => [{
9266
+ ct.runtime = l;
9267
+ ct.typeName = "livekit.UpdateVideoLayers";
9268
+ ct.fields = l.util.newFieldList(() => [{
9269
9269
  no: 1,
9270
9270
  name: "track_sid",
9271
9271
  kind: "scalar",
@@ -9278,26 +9278,26 @@ ot.fields = l.util.newFieldList(() => [{
9278
9278
  T: Te,
9279
9279
  repeated: !0
9280
9280
  }]);
9281
- class ct extends I {
9281
+ class ut extends A {
9282
9282
  constructor(e) {
9283
9283
  super(), this.metadata = "", this.name = "", l.util.initPartial(e, this);
9284
9284
  }
9285
9285
  static fromBinary(e, t) {
9286
- return new ct().fromBinary(e, t);
9286
+ return new ut().fromBinary(e, t);
9287
9287
  }
9288
9288
  static fromJson(e, t) {
9289
- return new ct().fromJson(e, t);
9289
+ return new ut().fromJson(e, t);
9290
9290
  }
9291
9291
  static fromJsonString(e, t) {
9292
- return new ct().fromJsonString(e, t);
9292
+ return new ut().fromJsonString(e, t);
9293
9293
  }
9294
9294
  static equals(e, t) {
9295
- return l.util.equals(ct, e, t);
9295
+ return l.util.equals(ut, e, t);
9296
9296
  }
9297
9297
  }
9298
- ct.runtime = l;
9299
- ct.typeName = "livekit.UpdateParticipantMetadata";
9300
- ct.fields = l.util.newFieldList(() => [{
9298
+ ut.runtime = l;
9299
+ ut.typeName = "livekit.UpdateParticipantMetadata";
9300
+ ut.fields = l.util.newFieldList(() => [{
9301
9301
  no: 1,
9302
9302
  name: "metadata",
9303
9303
  kind: "scalar",
@@ -9310,26 +9310,26 @@ ct.fields = l.util.newFieldList(() => [{
9310
9310
  T: 9
9311
9311
  /* ScalarType.STRING */
9312
9312
  }]);
9313
- class ut extends I {
9313
+ class dt extends A {
9314
9314
  constructor(e) {
9315
9315
  super(), this.urls = [], this.username = "", this.credential = "", l.util.initPartial(e, this);
9316
9316
  }
9317
9317
  static fromBinary(e, t) {
9318
- return new ut().fromBinary(e, t);
9318
+ return new dt().fromBinary(e, t);
9319
9319
  }
9320
9320
  static fromJson(e, t) {
9321
- return new ut().fromJson(e, t);
9321
+ return new dt().fromJson(e, t);
9322
9322
  }
9323
9323
  static fromJsonString(e, t) {
9324
- return new ut().fromJsonString(e, t);
9324
+ return new dt().fromJsonString(e, t);
9325
9325
  }
9326
9326
  static equals(e, t) {
9327
- return l.util.equals(ut, e, t);
9327
+ return l.util.equals(dt, e, t);
9328
9328
  }
9329
9329
  }
9330
- ut.runtime = l;
9331
- ut.typeName = "livekit.ICEServer";
9332
- ut.fields = l.util.newFieldList(() => [{
9330
+ dt.runtime = l;
9331
+ dt.typeName = "livekit.ICEServer";
9332
+ dt.fields = l.util.newFieldList(() => [{
9333
9333
  no: 1,
9334
9334
  name: "urls",
9335
9335
  kind: "scalar",
@@ -9348,77 +9348,77 @@ ut.fields = l.util.newFieldList(() => [{
9348
9348
  T: 9
9349
9349
  /* ScalarType.STRING */
9350
9350
  }]);
9351
- class Nt extends I {
9351
+ class xt 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 Nt().fromBinary(e, t);
9356
+ return new xt().fromBinary(e, t);
9357
9357
  }
9358
9358
  static fromJson(e, t) {
9359
- return new Nt().fromJson(e, t);
9359
+ return new xt().fromJson(e, t);
9360
9360
  }
9361
9361
  static fromJsonString(e, t) {
9362
- return new Nt().fromJsonString(e, t);
9362
+ return new xt().fromJsonString(e, t);
9363
9363
  }
9364
9364
  static equals(e, t) {
9365
- return l.util.equals(Nt, e, t);
9365
+ return l.util.equals(xt, e, t);
9366
9366
  }
9367
9367
  }
9368
- Nt.runtime = l;
9369
- Nt.typeName = "livekit.SpeakersChanged";
9370
- Nt.fields = l.util.newFieldList(() => [{
9368
+ xt.runtime = l;
9369
+ xt.typeName = "livekit.SpeakersChanged";
9370
+ xt.fields = l.util.newFieldList(() => [{
9371
9371
  no: 1,
9372
9372
  name: "speakers",
9373
9373
  kind: "message",
9374
- T: et,
9374
+ T: tt,
9375
9375
  repeated: !0
9376
9376
  }]);
9377
- class xt extends I {
9377
+ class Dt extends A {
9378
9378
  constructor(e) {
9379
9379
  super(), l.util.initPartial(e, this);
9380
9380
  }
9381
9381
  static fromBinary(e, t) {
9382
- return new xt().fromBinary(e, t);
9382
+ return new Dt().fromBinary(e, t);
9383
9383
  }
9384
9384
  static fromJson(e, t) {
9385
- return new xt().fromJson(e, t);
9385
+ return new Dt().fromJson(e, t);
9386
9386
  }
9387
9387
  static fromJsonString(e, t) {
9388
- return new xt().fromJsonString(e, t);
9388
+ return new Dt().fromJsonString(e, t);
9389
9389
  }
9390
9390
  static equals(e, t) {
9391
- return l.util.equals(xt, e, t);
9391
+ return l.util.equals(Dt, e, t);
9392
9392
  }
9393
9393
  }
9394
- xt.runtime = l;
9395
- xt.typeName = "livekit.RoomUpdate";
9396
- xt.fields = l.util.newFieldList(() => [{
9394
+ Dt.runtime = l;
9395
+ Dt.typeName = "livekit.RoomUpdate";
9396
+ Dt.fields = l.util.newFieldList(() => [{
9397
9397
  no: 1,
9398
9398
  name: "room",
9399
9399
  kind: "message",
9400
9400
  T: Ei
9401
9401
  }]);
9402
- class Dt extends I {
9402
+ class Mt extends A {
9403
9403
  constructor(e) {
9404
- super(), this.participantSid = "", this.quality = ei.POOR, this.score = 0, l.util.initPartial(e, this);
9404
+ super(), this.participantSid = "", this.quality = ti.POOR, this.score = 0, l.util.initPartial(e, this);
9405
9405
  }
9406
9406
  static fromBinary(e, t) {
9407
- return new Dt().fromBinary(e, t);
9407
+ return new Mt().fromBinary(e, t);
9408
9408
  }
9409
9409
  static fromJson(e, t) {
9410
- return new Dt().fromJson(e, t);
9410
+ return new Mt().fromJson(e, t);
9411
9411
  }
9412
9412
  static fromJsonString(e, t) {
9413
- return new Dt().fromJsonString(e, t);
9413
+ return new Mt().fromJsonString(e, t);
9414
9414
  }
9415
9415
  static equals(e, t) {
9416
- return l.util.equals(Dt, e, t);
9416
+ return l.util.equals(Mt, e, t);
9417
9417
  }
9418
9418
  }
9419
- Dt.runtime = l;
9420
- Dt.typeName = "livekit.ConnectionQualityInfo";
9421
- Dt.fields = l.util.newFieldList(() => [{
9419
+ Mt.runtime = l;
9420
+ Mt.typeName = "livekit.ConnectionQualityInfo";
9421
+ Mt.fields = l.util.newFieldList(() => [{
9422
9422
  no: 1,
9423
9423
  name: "participant_sid",
9424
9424
  kind: "scalar",
@@ -9428,7 +9428,7 @@ Dt.fields = l.util.newFieldList(() => [{
9428
9428
  no: 2,
9429
9429
  name: "quality",
9430
9430
  kind: "enum",
9431
- T: l.getEnumType(ei)
9431
+ T: l.getEnumType(ti)
9432
9432
  }, {
9433
9433
  no: 3,
9434
9434
  name: "score",
@@ -9436,52 +9436,52 @@ Dt.fields = l.util.newFieldList(() => [{
9436
9436
  T: 2
9437
9437
  /* ScalarType.FLOAT */
9438
9438
  }]);
9439
- class Mt extends I {
9439
+ class Ut extends A {
9440
9440
  constructor(e) {
9441
9441
  super(), this.updates = [], l.util.initPartial(e, this);
9442
9442
  }
9443
9443
  static fromBinary(e, t) {
9444
- return new Mt().fromBinary(e, t);
9444
+ return new Ut().fromBinary(e, t);
9445
9445
  }
9446
9446
  static fromJson(e, t) {
9447
- return new Mt().fromJson(e, t);
9447
+ return new Ut().fromJson(e, t);
9448
9448
  }
9449
9449
  static fromJsonString(e, t) {
9450
- return new Mt().fromJsonString(e, t);
9450
+ return new Ut().fromJsonString(e, t);
9451
9451
  }
9452
9452
  static equals(e, t) {
9453
- return l.util.equals(Mt, e, t);
9453
+ return l.util.equals(Ut, e, t);
9454
9454
  }
9455
9455
  }
9456
- Mt.runtime = l;
9457
- Mt.typeName = "livekit.ConnectionQualityUpdate";
9458
- Mt.fields = l.util.newFieldList(() => [{
9456
+ Ut.runtime = l;
9457
+ Ut.typeName = "livekit.ConnectionQualityUpdate";
9458
+ Ut.fields = l.util.newFieldList(() => [{
9459
9459
  no: 1,
9460
9460
  name: "updates",
9461
9461
  kind: "message",
9462
- T: Dt,
9462
+ T: Mt,
9463
9463
  repeated: !0
9464
9464
  }]);
9465
- class Ut extends I {
9465
+ class Ft extends A {
9466
9466
  constructor(e) {
9467
- super(), this.participantSid = "", this.trackSid = "", this.state = oi.ACTIVE, l.util.initPartial(e, this);
9467
+ super(), this.participantSid = "", this.trackSid = "", this.state = ci.ACTIVE, l.util.initPartial(e, this);
9468
9468
  }
9469
9469
  static fromBinary(e, t) {
9470
- return new Ut().fromBinary(e, t);
9470
+ return new Ft().fromBinary(e, t);
9471
9471
  }
9472
9472
  static fromJson(e, t) {
9473
- return new Ut().fromJson(e, t);
9473
+ return new Ft().fromJson(e, t);
9474
9474
  }
9475
9475
  static fromJsonString(e, t) {
9476
- return new Ut().fromJsonString(e, t);
9476
+ return new Ft().fromJsonString(e, t);
9477
9477
  }
9478
9478
  static equals(e, t) {
9479
- return l.util.equals(Ut, e, t);
9479
+ return l.util.equals(Ft, e, t);
9480
9480
  }
9481
9481
  }
9482
- Ut.runtime = l;
9483
- Ut.typeName = "livekit.StreamStateInfo";
9484
- Ut.fields = l.util.newFieldList(() => [{
9482
+ Ft.runtime = l;
9483
+ Ft.typeName = "livekit.StreamStateInfo";
9484
+ Ft.fields = l.util.newFieldList(() => [{
9485
9485
  no: 1,
9486
9486
  name: "participant_sid",
9487
9487
  kind: "scalar",
@@ -9497,54 +9497,54 @@ Ut.fields = l.util.newFieldList(() => [{
9497
9497
  no: 3,
9498
9498
  name: "state",
9499
9499
  kind: "enum",
9500
- T: l.getEnumType(oi)
9500
+ T: l.getEnumType(ci)
9501
9501
  }]);
9502
- class Ft extends I {
9502
+ class Bt extends A {
9503
9503
  constructor(e) {
9504
9504
  super(), this.streamStates = [], l.util.initPartial(e, this);
9505
9505
  }
9506
9506
  static fromBinary(e, t) {
9507
- return new Ft().fromBinary(e, t);
9507
+ return new Bt().fromBinary(e, t);
9508
9508
  }
9509
9509
  static fromJson(e, t) {
9510
- return new Ft().fromJson(e, t);
9510
+ return new Bt().fromJson(e, t);
9511
9511
  }
9512
9512
  static fromJsonString(e, t) {
9513
- return new Ft().fromJsonString(e, t);
9513
+ return new Bt().fromJsonString(e, t);
9514
9514
  }
9515
9515
  static equals(e, t) {
9516
- return l.util.equals(Ft, e, t);
9516
+ return l.util.equals(Bt, e, t);
9517
9517
  }
9518
9518
  }
9519
- Ft.runtime = l;
9520
- Ft.typeName = "livekit.StreamStateUpdate";
9521
- Ft.fields = l.util.newFieldList(() => [{
9519
+ Bt.runtime = l;
9520
+ Bt.typeName = "livekit.StreamStateUpdate";
9521
+ Bt.fields = l.util.newFieldList(() => [{
9522
9522
  no: 1,
9523
9523
  name: "stream_states",
9524
9524
  kind: "message",
9525
- T: Ut,
9525
+ T: Ft,
9526
9526
  repeated: !0
9527
9527
  }]);
9528
- class ze extends I {
9528
+ class Ge extends A {
9529
9529
  constructor(e) {
9530
9530
  super(), this.quality = ue.LOW, this.enabled = !1, l.util.initPartial(e, this);
9531
9531
  }
9532
9532
  static fromBinary(e, t) {
9533
- return new ze().fromBinary(e, t);
9533
+ return new Ge().fromBinary(e, t);
9534
9534
  }
9535
9535
  static fromJson(e, t) {
9536
- return new ze().fromJson(e, t);
9536
+ return new Ge().fromJson(e, t);
9537
9537
  }
9538
9538
  static fromJsonString(e, t) {
9539
- return new ze().fromJsonString(e, t);
9539
+ return new Ge().fromJsonString(e, t);
9540
9540
  }
9541
9541
  static equals(e, t) {
9542
- return l.util.equals(ze, e, t);
9542
+ return l.util.equals(Ge, e, t);
9543
9543
  }
9544
9544
  }
9545
- ze.runtime = l;
9546
- ze.typeName = "livekit.SubscribedQuality";
9547
- ze.fields = l.util.newFieldList(() => [{
9545
+ Ge.runtime = l;
9546
+ Ge.typeName = "livekit.SubscribedQuality";
9547
+ Ge.fields = l.util.newFieldList(() => [{
9548
9548
  no: 1,
9549
9549
  name: "quality",
9550
9550
  kind: "enum",
@@ -9556,26 +9556,26 @@ ze.fields = l.util.newFieldList(() => [{
9556
9556
  T: 8
9557
9557
  /* ScalarType.BOOL */
9558
9558
  }]);
9559
- class Bt extends I {
9559
+ class Jt extends A {
9560
9560
  constructor(e) {
9561
9561
  super(), this.codec = "", this.qualities = [], l.util.initPartial(e, this);
9562
9562
  }
9563
9563
  static fromBinary(e, t) {
9564
- return new Bt().fromBinary(e, t);
9564
+ return new Jt().fromBinary(e, t);
9565
9565
  }
9566
9566
  static fromJson(e, t) {
9567
- return new Bt().fromJson(e, t);
9567
+ return new Jt().fromJson(e, t);
9568
9568
  }
9569
9569
  static fromJsonString(e, t) {
9570
- return new Bt().fromJsonString(e, t);
9570
+ return new Jt().fromJsonString(e, t);
9571
9571
  }
9572
9572
  static equals(e, t) {
9573
- return l.util.equals(Bt, e, t);
9573
+ return l.util.equals(Jt, e, t);
9574
9574
  }
9575
9575
  }
9576
- Bt.runtime = l;
9577
- Bt.typeName = "livekit.SubscribedCodec";
9578
- Bt.fields = l.util.newFieldList(() => [{
9576
+ Jt.runtime = l;
9577
+ Jt.typeName = "livekit.SubscribedCodec";
9578
+ Jt.fields = l.util.newFieldList(() => [{
9579
9579
  no: 1,
9580
9580
  name: "codec",
9581
9581
  kind: "scalar",
@@ -9585,29 +9585,29 @@ Bt.fields = l.util.newFieldList(() => [{
9585
9585
  no: 2,
9586
9586
  name: "qualities",
9587
9587
  kind: "message",
9588
- T: ze,
9588
+ T: Ge,
9589
9589
  repeated: !0
9590
9590
  }]);
9591
- class Jt extends I {
9591
+ class jt extends A {
9592
9592
  constructor(e) {
9593
9593
  super(), this.trackSid = "", this.subscribedQualities = [], this.subscribedCodecs = [], l.util.initPartial(e, this);
9594
9594
  }
9595
9595
  static fromBinary(e, t) {
9596
- return new Jt().fromBinary(e, t);
9596
+ return new jt().fromBinary(e, t);
9597
9597
  }
9598
9598
  static fromJson(e, t) {
9599
- return new Jt().fromJson(e, t);
9599
+ return new jt().fromJson(e, t);
9600
9600
  }
9601
9601
  static fromJsonString(e, t) {
9602
- return new Jt().fromJsonString(e, t);
9602
+ return new jt().fromJsonString(e, t);
9603
9603
  }
9604
9604
  static equals(e, t) {
9605
- return l.util.equals(Jt, e, t);
9605
+ return l.util.equals(jt, e, t);
9606
9606
  }
9607
9607
  }
9608
- Jt.runtime = l;
9609
- Jt.typeName = "livekit.SubscribedQualityUpdate";
9610
- Jt.fields = l.util.newFieldList(() => [{
9608
+ jt.runtime = l;
9609
+ jt.typeName = "livekit.SubscribedQualityUpdate";
9610
+ jt.fields = l.util.newFieldList(() => [{
9611
9611
  no: 1,
9612
9612
  name: "track_sid",
9613
9613
  kind: "scalar",
@@ -9617,35 +9617,35 @@ Jt.fields = l.util.newFieldList(() => [{
9617
9617
  no: 2,
9618
9618
  name: "subscribed_qualities",
9619
9619
  kind: "message",
9620
- T: ze,
9620
+ T: Ge,
9621
9621
  repeated: !0
9622
9622
  }, {
9623
9623
  no: 3,
9624
9624
  name: "subscribed_codecs",
9625
9625
  kind: "message",
9626
- T: Bt,
9626
+ T: Jt,
9627
9627
  repeated: !0
9628
9628
  }]);
9629
- class dt extends I {
9629
+ class lt extends A {
9630
9630
  constructor(e) {
9631
9631
  super(), this.participantSid = "", this.allTracks = !1, this.trackSids = [], this.participantIdentity = "", l.util.initPartial(e, this);
9632
9632
  }
9633
9633
  static fromBinary(e, t) {
9634
- return new dt().fromBinary(e, t);
9634
+ return new lt().fromBinary(e, t);
9635
9635
  }
9636
9636
  static fromJson(e, t) {
9637
- return new dt().fromJson(e, t);
9637
+ return new lt().fromJson(e, t);
9638
9638
  }
9639
9639
  static fromJsonString(e, t) {
9640
- return new dt().fromJsonString(e, t);
9640
+ return new lt().fromJsonString(e, t);
9641
9641
  }
9642
9642
  static equals(e, t) {
9643
- return l.util.equals(dt, e, t);
9643
+ return l.util.equals(lt, e, t);
9644
9644
  }
9645
9645
  }
9646
- dt.runtime = l;
9647
- dt.typeName = "livekit.TrackPermission";
9648
- dt.fields = l.util.newFieldList(() => [{
9646
+ lt.runtime = l;
9647
+ lt.typeName = "livekit.TrackPermission";
9648
+ lt.fields = l.util.newFieldList(() => [{
9649
9649
  no: 1,
9650
9650
  name: "participant_sid",
9651
9651
  kind: "scalar",
@@ -9670,26 +9670,26 @@ dt.fields = l.util.newFieldList(() => [{
9670
9670
  T: 9
9671
9671
  /* ScalarType.STRING */
9672
9672
  }]);
9673
- class lt extends I {
9673
+ class ht extends A {
9674
9674
  constructor(e) {
9675
9675
  super(), this.allParticipants = !1, this.trackPermissions = [], l.util.initPartial(e, this);
9676
9676
  }
9677
9677
  static fromBinary(e, t) {
9678
- return new lt().fromBinary(e, t);
9678
+ return new ht().fromBinary(e, t);
9679
9679
  }
9680
9680
  static fromJson(e, t) {
9681
- return new lt().fromJson(e, t);
9681
+ return new ht().fromJson(e, t);
9682
9682
  }
9683
9683
  static fromJsonString(e, t) {
9684
- return new lt().fromJsonString(e, t);
9684
+ return new ht().fromJsonString(e, t);
9685
9685
  }
9686
9686
  static equals(e, t) {
9687
- return l.util.equals(lt, e, t);
9687
+ return l.util.equals(ht, e, t);
9688
9688
  }
9689
9689
  }
9690
- lt.runtime = l;
9691
- lt.typeName = "livekit.SubscriptionPermission";
9692
- lt.fields = l.util.newFieldList(() => [{
9690
+ ht.runtime = l;
9691
+ ht.typeName = "livekit.SubscriptionPermission";
9692
+ ht.fields = l.util.newFieldList(() => [{
9693
9693
  no: 1,
9694
9694
  name: "all_participants",
9695
9695
  kind: "scalar",
@@ -9699,29 +9699,29 @@ lt.fields = l.util.newFieldList(() => [{
9699
9699
  no: 2,
9700
9700
  name: "track_permissions",
9701
9701
  kind: "message",
9702
- T: dt,
9702
+ T: lt,
9703
9703
  repeated: !0
9704
9704
  }]);
9705
- class jt extends I {
9705
+ class Vt extends A {
9706
9706
  constructor(e) {
9707
9707
  super(), this.participantSid = "", this.trackSid = "", this.allowed = !1, l.util.initPartial(e, this);
9708
9708
  }
9709
9709
  static fromBinary(e, t) {
9710
- return new jt().fromBinary(e, t);
9710
+ return new Vt().fromBinary(e, t);
9711
9711
  }
9712
9712
  static fromJson(e, t) {
9713
- return new jt().fromJson(e, t);
9713
+ return new Vt().fromJson(e, t);
9714
9714
  }
9715
9715
  static fromJsonString(e, t) {
9716
- return new jt().fromJsonString(e, t);
9716
+ return new Vt().fromJsonString(e, t);
9717
9717
  }
9718
9718
  static equals(e, t) {
9719
- return l.util.equals(jt, e, t);
9719
+ return l.util.equals(Vt, e, t);
9720
9720
  }
9721
9721
  }
9722
- jt.runtime = l;
9723
- jt.typeName = "livekit.SubscriptionPermissionUpdate";
9724
- jt.fields = l.util.newFieldList(() => [{
9722
+ Vt.runtime = l;
9723
+ Vt.typeName = "livekit.SubscriptionPermissionUpdate";
9724
+ Vt.fields = l.util.newFieldList(() => [{
9725
9725
  no: 1,
9726
9726
  name: "participant_sid",
9727
9727
  kind: "scalar",
@@ -9740,26 +9740,26 @@ jt.fields = l.util.newFieldList(() => [{
9740
9740
  T: 8
9741
9741
  /* ScalarType.BOOL */
9742
9742
  }]);
9743
- class ht extends I {
9743
+ class ft extends A {
9744
9744
  constructor(e) {
9745
9745
  super(), this.publishTracks = [], this.dataChannels = [], l.util.initPartial(e, this);
9746
9746
  }
9747
9747
  static fromBinary(e, t) {
9748
- return new ht().fromBinary(e, t);
9748
+ return new ft().fromBinary(e, t);
9749
9749
  }
9750
9750
  static fromJson(e, t) {
9751
- return new ht().fromJson(e, t);
9751
+ return new ft().fromJson(e, t);
9752
9752
  }
9753
9753
  static fromJsonString(e, t) {
9754
- return new ht().fromJsonString(e, t);
9754
+ return new ft().fromJsonString(e, t);
9755
9755
  }
9756
9756
  static equals(e, t) {
9757
- return l.util.equals(ht, e, t);
9757
+ return l.util.equals(ft, e, t);
9758
9758
  }
9759
9759
  }
9760
- ht.runtime = l;
9761
- ht.typeName = "livekit.SyncState";
9762
- ht.fields = l.util.newFieldList(() => [{
9760
+ ft.runtime = l;
9761
+ ft.typeName = "livekit.SyncState";
9762
+ ft.fields = l.util.newFieldList(() => [{
9763
9763
  no: 1,
9764
9764
  name: "answer",
9765
9765
  kind: "message",
@@ -9773,13 +9773,13 @@ ht.fields = l.util.newFieldList(() => [{
9773
9773
  no: 3,
9774
9774
  name: "publish_tracks",
9775
9775
  kind: "message",
9776
- T: Ge,
9776
+ T: We,
9777
9777
  repeated: !0
9778
9778
  }, {
9779
9779
  no: 4,
9780
9780
  name: "data_channels",
9781
9781
  kind: "message",
9782
- T: ft,
9782
+ T: pt,
9783
9783
  repeated: !0
9784
9784
  }, {
9785
9785
  no: 5,
@@ -9787,26 +9787,26 @@ ht.fields = l.util.newFieldList(() => [{
9787
9787
  kind: "message",
9788
9788
  T: Se
9789
9789
  }]);
9790
- class ft extends I {
9790
+ class pt extends A {
9791
9791
  constructor(e) {
9792
9792
  super(), this.label = "", this.id = 0, this.target = Re.PUBLISHER, l.util.initPartial(e, this);
9793
9793
  }
9794
9794
  static fromBinary(e, t) {
9795
- return new ft().fromBinary(e, t);
9795
+ return new pt().fromBinary(e, t);
9796
9796
  }
9797
9797
  static fromJson(e, t) {
9798
- return new ft().fromJson(e, t);
9798
+ return new pt().fromJson(e, t);
9799
9799
  }
9800
9800
  static fromJsonString(e, t) {
9801
- return new ft().fromJsonString(e, t);
9801
+ return new pt().fromJsonString(e, t);
9802
9802
  }
9803
9803
  static equals(e, t) {
9804
- return l.util.equals(ft, e, t);
9804
+ return l.util.equals(pt, e, t);
9805
9805
  }
9806
9806
  }
9807
- ft.runtime = l;
9808
- ft.typeName = "livekit.DataChannelInfo";
9809
- ft.fields = l.util.newFieldList(() => [{
9807
+ pt.runtime = l;
9808
+ pt.typeName = "livekit.DataChannelInfo";
9809
+ pt.fields = l.util.newFieldList(() => [{
9810
9810
  no: 1,
9811
9811
  name: "label",
9812
9812
  kind: "scalar",
@@ -9824,7 +9824,7 @@ ft.fields = l.util.newFieldList(() => [{
9824
9824
  kind: "enum",
9825
9825
  T: l.getEnumType(Re)
9826
9826
  }]);
9827
- class ye extends I {
9827
+ class ye extends A {
9828
9828
  constructor(e) {
9829
9829
  super(), this.scenario = {
9830
9830
  case: void 0
@@ -9882,26 +9882,26 @@ ye.fields = l.util.newFieldList(() => [{
9882
9882
  T: 3,
9883
9883
  oneof: "scenario"
9884
9884
  }]);
9885
- class pt extends I {
9885
+ class mt extends A {
9886
9886
  constructor(e) {
9887
9887
  super(), this.timestamp = V.zero, this.rtt = V.zero, l.util.initPartial(e, this);
9888
9888
  }
9889
9889
  static fromBinary(e, t) {
9890
- return new pt().fromBinary(e, t);
9890
+ return new mt().fromBinary(e, t);
9891
9891
  }
9892
9892
  static fromJson(e, t) {
9893
- return new pt().fromJson(e, t);
9893
+ return new mt().fromJson(e, t);
9894
9894
  }
9895
9895
  static fromJsonString(e, t) {
9896
- return new pt().fromJsonString(e, t);
9896
+ return new mt().fromJsonString(e, t);
9897
9897
  }
9898
9898
  static equals(e, t) {
9899
- return l.util.equals(pt, e, t);
9899
+ return l.util.equals(mt, e, t);
9900
9900
  }
9901
9901
  }
9902
- pt.runtime = l;
9903
- pt.typeName = "livekit.Ping";
9904
- pt.fields = l.util.newFieldList(() => [{
9902
+ mt.runtime = l;
9903
+ mt.typeName = "livekit.Ping";
9904
+ mt.fields = l.util.newFieldList(() => [{
9905
9905
  no: 1,
9906
9906
  name: "timestamp",
9907
9907
  kind: "scalar",
@@ -9914,26 +9914,26 @@ pt.fields = l.util.newFieldList(() => [{
9914
9914
  T: 3
9915
9915
  /* ScalarType.INT64 */
9916
9916
  }]);
9917
- class Vt extends I {
9917
+ class $t extends A {
9918
9918
  constructor(e) {
9919
9919
  super(), this.lastPingTimestamp = V.zero, this.timestamp = V.zero, l.util.initPartial(e, this);
9920
9920
  }
9921
9921
  static fromBinary(e, t) {
9922
- return new Vt().fromBinary(e, t);
9922
+ return new $t().fromBinary(e, t);
9923
9923
  }
9924
9924
  static fromJson(e, t) {
9925
- return new Vt().fromJson(e, t);
9925
+ return new $t().fromJson(e, t);
9926
9926
  }
9927
9927
  static fromJsonString(e, t) {
9928
- return new Vt().fromJsonString(e, t);
9928
+ return new $t().fromJsonString(e, t);
9929
9929
  }
9930
9930
  static equals(e, t) {
9931
- return l.util.equals(Vt, e, t);
9931
+ return l.util.equals($t, e, t);
9932
9932
  }
9933
9933
  }
9934
- Vt.runtime = l;
9935
- Vt.typeName = "livekit.Pong";
9936
- Vt.fields = l.util.newFieldList(() => [{
9934
+ $t.runtime = l;
9935
+ $t.typeName = "livekit.Pong";
9936
+ $t.fields = l.util.newFieldList(() => [{
9937
9937
  no: 1,
9938
9938
  name: "last_ping_timestamp",
9939
9939
  kind: "scalar",
@@ -9946,52 +9946,52 @@ Vt.fields = l.util.newFieldList(() => [{
9946
9946
  T: 3
9947
9947
  /* ScalarType.INT64 */
9948
9948
  }]);
9949
- class Qt extends I {
9949
+ class Zt extends A {
9950
9950
  constructor(e) {
9951
9951
  super(), this.regions = [], l.util.initPartial(e, this);
9952
9952
  }
9953
9953
  static fromBinary(e, t) {
9954
- return new Qt().fromBinary(e, t);
9954
+ return new Zt().fromBinary(e, t);
9955
9955
  }
9956
9956
  static fromJson(e, t) {
9957
- return new Qt().fromJson(e, t);
9957
+ return new Zt().fromJson(e, t);
9958
9958
  }
9959
9959
  static fromJsonString(e, t) {
9960
- return new Qt().fromJsonString(e, t);
9960
+ return new Zt().fromJsonString(e, t);
9961
9961
  }
9962
9962
  static equals(e, t) {
9963
- return l.util.equals(Qt, e, t);
9963
+ return l.util.equals(Zt, e, t);
9964
9964
  }
9965
9965
  }
9966
- Qt.runtime = l;
9967
- Qt.typeName = "livekit.RegionSettings";
9968
- Qt.fields = l.util.newFieldList(() => [{
9966
+ Zt.runtime = l;
9967
+ Zt.typeName = "livekit.RegionSettings";
9968
+ Zt.fields = l.util.newFieldList(() => [{
9969
9969
  no: 1,
9970
9970
  name: "regions",
9971
9971
  kind: "message",
9972
- T: $t,
9972
+ T: qt,
9973
9973
  repeated: !0
9974
9974
  }]);
9975
- class $t extends I {
9975
+ class qt extends A {
9976
9976
  constructor(e) {
9977
9977
  super(), this.region = "", this.url = "", this.distance = V.zero, l.util.initPartial(e, this);
9978
9978
  }
9979
9979
  static fromBinary(e, t) {
9980
- return new $t().fromBinary(e, t);
9980
+ return new qt().fromBinary(e, t);
9981
9981
  }
9982
9982
  static fromJson(e, t) {
9983
- return new $t().fromJson(e, t);
9983
+ return new qt().fromJson(e, t);
9984
9984
  }
9985
9985
  static fromJsonString(e, t) {
9986
- return new $t().fromJsonString(e, t);
9986
+ return new qt().fromJsonString(e, t);
9987
9987
  }
9988
9988
  static equals(e, t) {
9989
- return l.util.equals($t, e, t);
9989
+ return l.util.equals(qt, e, t);
9990
9990
  }
9991
9991
  }
9992
- $t.runtime = l;
9993
- $t.typeName = "livekit.RegionInfo";
9994
- $t.fields = l.util.newFieldList(() => [{
9992
+ qt.runtime = l;
9993
+ qt.typeName = "livekit.RegionInfo";
9994
+ qt.fields = l.util.newFieldList(() => [{
9995
9995
  no: 1,
9996
9996
  name: "region",
9997
9997
  kind: "scalar",
@@ -10010,26 +10010,26 @@ $t.fields = l.util.newFieldList(() => [{
10010
10010
  T: 3
10011
10011
  /* ScalarType.INT64 */
10012
10012
  }]);
10013
- class qt extends I {
10013
+ class Ht extends A {
10014
10014
  constructor(e) {
10015
10015
  super(), this.trackSid = "", this.err = Yi.SE_UNKNOWN, l.util.initPartial(e, this);
10016
10016
  }
10017
10017
  static fromBinary(e, t) {
10018
- return new qt().fromBinary(e, t);
10018
+ return new Ht().fromBinary(e, t);
10019
10019
  }
10020
10020
  static fromJson(e, t) {
10021
- return new qt().fromJson(e, t);
10021
+ return new Ht().fromJson(e, t);
10022
10022
  }
10023
10023
  static fromJsonString(e, t) {
10024
- return new qt().fromJsonString(e, t);
10024
+ return new Ht().fromJsonString(e, t);
10025
10025
  }
10026
10026
  static equals(e, t) {
10027
- return l.util.equals(qt, e, t);
10027
+ return l.util.equals(Ht, e, t);
10028
10028
  }
10029
10029
  }
10030
- qt.runtime = l;
10031
- qt.typeName = "livekit.SubscriptionResponse";
10032
- qt.fields = l.util.newFieldList(() => [{
10030
+ Ht.runtime = l;
10031
+ Ht.typeName = "livekit.SubscriptionResponse";
10032
+ Ht.fields = l.util.newFieldList(() => [{
10033
10033
  no: 1,
10034
10034
  name: "track_sid",
10035
10035
  kind: "scalar",
@@ -10056,7 +10056,7 @@ class xs extends Pi {
10056
10056
  super(21, e ?? "device is unsupported");
10057
10057
  }
10058
10058
  }
10059
- class Qe extends Pi {
10059
+ class Ze extends Pi {
10060
10060
  constructor(e) {
10061
10061
  super(20, e ?? "track is invalid");
10062
10062
  }
@@ -10102,22 +10102,22 @@ ve.clearInterval = function() {
10102
10102
  return clearInterval(...arguments);
10103
10103
  };
10104
10104
  const pd = /version\/(\d+(\.?_?\d+)+)/i;
10105
- let Gn;
10105
+ let Wn;
10106
10106
  function Ri(i) {
10107
10107
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
10108
10108
  if (typeof i > "u" && typeof navigator > "u")
10109
10109
  return;
10110
10110
  const t = (i ?? navigator.userAgent).toLowerCase();
10111
- if (Gn === void 0 || e) {
10111
+ if (Wn === void 0 || e) {
10112
10112
  const n = md.find((s) => {
10113
10113
  let {
10114
10114
  test: r
10115
10115
  } = s;
10116
10116
  return r.test(t);
10117
10117
  });
10118
- Gn = n == null ? void 0 : n.describe(t);
10118
+ Wn = n == null ? void 0 : n.describe(t);
10119
10119
  }
10120
- return Gn;
10120
+ return Wn;
10121
10121
  }
10122
10122
  const md = [
10123
10123
  {
@@ -10125,7 +10125,7 @@ const md = [
10125
10125
  describe(i) {
10126
10126
  return {
10127
10127
  name: "Firefox",
10128
- version: zn(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i, i),
10128
+ version: Gn(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i, i),
10129
10129
  os: i.toLowerCase().includes("fxios") ? "iOS" : void 0
10130
10130
  };
10131
10131
  }
@@ -10135,7 +10135,7 @@ const md = [
10135
10135
  describe(i) {
10136
10136
  return {
10137
10137
  name: "Chrome",
10138
- version: zn(/(?:chrome|chromium|crios|crmo)\/(\d+(\.?_?\d+)+)/i, i),
10138
+ version: Gn(/(?:chrome|chromium|crios|crmo)\/(\d+(\.?_?\d+)+)/i, i),
10139
10139
  os: i.toLowerCase().includes("crios") ? "iOS" : void 0
10140
10140
  };
10141
10141
  }
@@ -10146,13 +10146,13 @@ const md = [
10146
10146
  describe(i) {
10147
10147
  return {
10148
10148
  name: "Safari",
10149
- version: zn(pd, i),
10149
+ version: Gn(pd, i),
10150
10150
  os: i.includes("mobile/") ? "iOS" : "macOS"
10151
10151
  };
10152
10152
  }
10153
10153
  }
10154
10154
  ];
10155
- function zn(i, e) {
10155
+ function Gn(i, e) {
10156
10156
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
10157
10157
  const n = e.match(i);
10158
10158
  return n && n.length >= t && n[t] || "";
@@ -10244,7 +10244,7 @@ var R;
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
10246
  const Td = 5e3, Li = [];
10247
- class C extends mt.EventEmitter {
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 = () => {
10250
10250
  this.backgroundTimeout && clearTimeout(this.backgroundTimeout), document.visibilityState === "hidden" ? this.backgroundTimeout = setTimeout(() => this.handleAppVisibilityChanged(), Td) : this.handleAppVisibilityChanged();
@@ -10410,9 +10410,9 @@ function Ti(i, e) {
10410
10410
  i.sourceFromProto = o;
10411
10411
  function c(u) {
10412
10412
  switch (u) {
10413
- case oi.ACTIVE:
10413
+ case ci.ACTIVE:
10414
10414
  return n.Active;
10415
- case oi.PAUSED:
10415
+ case ci.PAUSED:
10416
10416
  return n.Paused;
10417
10417
  default:
10418
10418
  return n.Unknown;
@@ -10457,7 +10457,7 @@ function Sd(i) {
10457
10457
  const n = t.createAnalyser();
10458
10458
  n.fftSize = 2048;
10459
10459
  const s = n.frequencyBinCount, r = new Uint8Array(s);
10460
- t.createMediaStreamSource(new MediaStream([i.mediaStreamTrack])).connect(n), yield si(e), n.getByteTimeDomainData(r);
10460
+ t.createMediaStreamSource(new MediaStream([i.mediaStreamTrack])).connect(n), yield ri(e), n.getByteTimeDomainData(r);
10461
10461
  const o = r.some((c) => c !== 128 && c !== 0);
10462
10462
  return t.close(), !o;
10463
10463
  }
@@ -10511,7 +10511,7 @@ function Pd(i) {
10511
10511
  const e = i.split(Ed);
10512
10512
  return e.length > 1 ? [e[0], i.substr(e[0].length + 1)] : [i, ""];
10513
10513
  }
10514
- function si(i) {
10514
+ function ri(i) {
10515
10515
  return g(this, void 0, void 0, function* () {
10516
10516
  return new Promise((e) => setTimeout(e, i));
10517
10517
  });
@@ -10588,7 +10588,7 @@ function so() {
10588
10588
  function _e() {
10589
10589
  return typeof document < "u";
10590
10590
  }
10591
- function ci() {
10591
+ function ui() {
10592
10592
  return navigator.product == "ReactNative";
10593
10593
  }
10594
10594
  function Es(i) {
@@ -10599,7 +10599,7 @@ function ro() {
10599
10599
  return global.LiveKitReactNativeGlobal;
10600
10600
  }
10601
10601
  function ao() {
10602
- if (!ci())
10602
+ if (!ui())
10603
10603
  return;
10604
10604
  let i = ro();
10605
10605
  if (i)
@@ -10608,7 +10608,7 @@ function ao() {
10608
10608
  function gr() {
10609
10609
  if (_e())
10610
10610
  return window.devicePixelRatio;
10611
- if (ci()) {
10611
+ if (ui()) {
10612
10612
  let i = ro();
10613
10613
  if (i)
10614
10614
  return i.devicePixelRatio;
@@ -10645,12 +10645,12 @@ const yr = () => (Yn || (Yn = new IntersectionObserver(Nd, {
10645
10645
  })), Yn);
10646
10646
  function xd() {
10647
10647
  var i;
10648
- const e = new Pt({
10648
+ const e = new Rt({
10649
10649
  sdk: wi.JS,
10650
10650
  protocol: yd,
10651
10651
  version: vd
10652
10652
  });
10653
- return ci() && (e.os = (i = ao()) !== null && i !== void 0 ? i : ""), e;
10653
+ return ui() && (e.os = (i = ao()) !== null && i !== void 0 ? i : ""), e;
10654
10654
  }
10655
10655
  function br() {
10656
10656
  let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 16, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 16, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
@@ -10704,7 +10704,7 @@ class Wt {
10704
10704
  function Dd(i) {
10705
10705
  return to.includes(i);
10706
10706
  }
10707
- function ri(i) {
10707
+ function ai(i) {
10708
10708
  if (typeof i == "string")
10709
10709
  return i;
10710
10710
  if (Array.isArray(i))
@@ -10824,9 +10824,9 @@ class Ms {
10824
10824
  let w;
10825
10825
  if (typeof h.data == "string") {
10826
10826
  const _ = JSON.parse(h.data);
10827
- w = rt.fromJson(_);
10827
+ w = at.fromJson(_);
10828
10828
  } else if (h.data instanceof ArrayBuffer)
10829
- w = rt.fromBinary(new Uint8Array(h.data));
10829
+ w = at.fromBinary(new Uint8Array(h.data));
10830
10830
  else {
10831
10831
  m.error("could not decode websocket message: ".concat(typeof h.data));
10832
10832
  return;
@@ -10839,7 +10839,7 @@ class Ms {
10839
10839
  }), this.startPingInterval()), o(w.message.value)) : n.reconnect ? (this.isConnected = !0, s == null || s.removeEventListener("abort", u), this.startPingInterval(), ((p = w.message) === null || p === void 0 ? void 0 : p.case) === "reconnect" ? o((b = w.message) === null || b === void 0 ? void 0 : b.value) : (o(), _ = !0)) : n.reconnect || c(new ne("did not receive join response, got ".concat((T = w.message) === null || T === void 0 ? void 0 : T.case, " instead"))), !_)
10840
10840
  return;
10841
10841
  }
10842
- this.signalLatency && (yield si(this.signalLatency)), this.handleSignalResponse(w);
10842
+ this.signalLatency && (yield ri(this.signalLatency)), this.handleSignalResponse(w);
10843
10843
  }), this.ws.onclose = (h) => {
10844
10844
  m.warn("websocket closed", {
10845
10845
  ev: h
@@ -10858,7 +10858,7 @@ class Ms {
10858
10858
  n();
10859
10859
  } : n();
10860
10860
  });
10861
- this.ws.readyState < this.ws.CLOSING && (this.ws.close(), yield Promise.race([t, si(250)])), this.ws = void 0;
10861
+ this.ws.readyState < this.ws.CLOSING && (this.ws.close(), yield Promise.race([t, ri(250)])), this.ws = void 0;
10862
10862
  }
10863
10863
  } finally {
10864
10864
  this.clearPingInterval(), e();
@@ -10891,7 +10891,7 @@ class Ms {
10891
10891
  sendMuteTrack(e, t) {
10892
10892
  return this.sendRequest({
10893
10893
  case: "mute",
10894
- value: new We({
10894
+ value: new ze({
10895
10895
  sid: e,
10896
10896
  muted: t
10897
10897
  })
@@ -10906,7 +10906,7 @@ class Ms {
10906
10906
  sendUpdateLocalMetadata(e, t) {
10907
10907
  return this.sendRequest({
10908
10908
  case: "updateMetadata",
10909
- value: new ct({
10909
+ value: new ut({
10910
10910
  metadata: e,
10911
10911
  name: t
10912
10912
  })
@@ -10933,7 +10933,7 @@ class Ms {
10933
10933
  sendUpdateVideoLayers(e, t) {
10934
10934
  return this.sendRequest({
10935
10935
  case: "updateLayers",
10936
- value: new ot({
10936
+ value: new ct({
10937
10937
  trackSid: e,
10938
10938
  layers: t
10939
10939
  })
@@ -10942,7 +10942,7 @@ class Ms {
10942
10942
  sendUpdateSubscriptionPermissions(e, t) {
10943
10943
  return this.sendRequest({
10944
10944
  case: "subscriptionPermission",
10945
- value: new lt({
10945
+ value: new ht({
10946
10946
  allParticipants: e,
10947
10947
  trackPermissions: t
10948
10948
  })
@@ -10960,7 +10960,7 @@ class Ms {
10960
10960
  value: V.parse(Date.now())
10961
10961
  }), this.sendRequest({
10962
10962
  case: "pingReq",
10963
- value: new pt({
10963
+ value: new mt({
10964
10964
  timestamp: V.parse(Date.now()),
10965
10965
  rtt: V.parse(this.rtt)
10966
10966
  })
@@ -10971,7 +10971,7 @@ class Ms {
10971
10971
  case: "leave",
10972
10972
  value: new je({
10973
10973
  canReconnect: !1,
10974
- reason: Ht.CLIENT_INITIATED
10974
+ reason: zt.CLIENT_INITIATED
10975
10975
  })
10976
10976
  });
10977
10977
  }
@@ -10984,11 +10984,11 @@ class Ms {
10984
10984
  }));
10985
10985
  return;
10986
10986
  }
10987
- if (t || (yield this.requestQueue.flush()), this.signalLatency && (yield si(this.signalLatency)), !this.ws || this.ws.readyState !== this.ws.OPEN) {
10987
+ if (t || (yield this.requestQueue.flush()), this.signalLatency && (yield ri(this.signalLatency)), !this.ws || this.ws.readyState !== this.ws.OPEN) {
10988
10988
  m.error("cannot send signal request before connected, type: ".concat(e == null ? void 0 : e.case));
10989
10989
  return;
10990
10990
  }
10991
- const s = new _t({
10991
+ const s = new It({
10992
10992
  message: e
10993
10993
  });
10994
10994
  try {
@@ -11093,7 +11093,7 @@ function On(i) {
11093
11093
  function Jd(i, e, t) {
11094
11094
  var n;
11095
11095
  const s = new URLSearchParams();
11096
- return s.set("access_token", i), t.reconnect && (s.set("reconnect", "1"), t.sid && s.set("sid", t.sid)), s.set("auto_subscribe", t.autoSubscribe ? "1" : "0"), s.set("sdk", ci() ? "reactnative" : "js"), s.set("version", e.version), s.set("protocol", e.protocol.toString()), e.deviceModel && s.set("device_model", e.deviceModel), e.os && s.set("os", e.os), e.osVersion && s.set("os_version", e.osVersion), e.browser && s.set("browser", e.browser), e.browserVersion && s.set("browser_version", e.browserVersion), t.publishOnly !== void 0 && s.set("publish", t.publishOnly), t.adaptiveStream && s.set("adaptive_stream", "1"), t.reconnectReason && s.set("reconnect_reason", t.reconnectReason.toString()), !((n = navigator.connection) === null || n === void 0) && n.type && s.set("network", navigator.connection.type), "?".concat(s.toString());
11096
+ return s.set("access_token", i), t.reconnect && (s.set("reconnect", "1"), t.sid && s.set("sid", t.sid)), s.set("auto_subscribe", t.autoSubscribe ? "1" : "0"), s.set("sdk", ui() ? "reactnative" : "js"), s.set("version", e.version), s.set("protocol", e.protocol.toString()), e.deviceModel && s.set("device_model", e.deviceModel), e.os && s.set("os", e.os), e.osVersion && s.set("os_version", e.osVersion), e.browser && s.set("browser", e.browser), e.browserVersion && s.set("browser_version", e.browserVersion), t.publishOnly !== void 0 && s.set("publish", t.publishOnly), t.adaptiveStream && s.set("adaptive_stream", "1"), t.reconnectReason && s.set("reconnect_reason", t.reconnectReason.toString()), !((n = navigator.connection) === null || n === void 0) && n.type && s.set("network", navigator.connection.type), "?".concat(s.toString());
11097
11097
  }
11098
11098
  const jd = 10, hn = "lk_e2ee", Vd = "LKFrameEncryptionKey", $d = {
11099
11099
  sharedKey: !1,
@@ -11101,18 +11101,18 @@ const jd = 10, hn = "lk_e2ee", Vd = "LKFrameEncryptionKey", $d = {
11101
11101
  ratchetWindowSize: 8,
11102
11102
  failureTolerance: jd
11103
11103
  };
11104
- var ti;
11104
+ var ii;
11105
11105
  (function(i) {
11106
11106
  i.SetKey = "setKey", i.RatchetRequest = "ratchetRequest", i.KeyRatcheted = "keyRatcheted";
11107
- })(ti || (ti = {}));
11107
+ })(ii || (ii = {}));
11108
11108
  var Sr;
11109
11109
  (function(i) {
11110
11110
  i.KeyRatcheted = "keyRatcheted";
11111
11111
  })(Sr || (Sr = {}));
11112
- var Zt;
11112
+ var ei;
11113
11113
  (function(i) {
11114
11114
  i.ParticipantEncryptionStatusChanged = "participantEncryptionStatusChanged", i.EncryptionError = "encryptionError";
11115
- })(Zt || (Zt = {}));
11115
+ })(ei || (ei = {}));
11116
11116
  var Cr;
11117
11117
  (function(i) {
11118
11118
  i.Error = "cryptorError";
@@ -11127,13 +11127,13 @@ function Hd() {
11127
11127
  return typeof window.RTCRtpSender < "u" && // @ts-ignore
11128
11128
  typeof window.RTCRtpSender.prototype.createEncodedStreams < "u";
11129
11129
  }
11130
- function Wd(i) {
11130
+ function zd(i) {
11131
11131
  const e = i.split("/")[1].toLowerCase();
11132
11132
  if (!to.includes(e))
11133
11133
  throw Error("Video codec not supported: ".concat(e));
11134
11134
  return e;
11135
11135
  }
11136
- class Jl extends mt.EventEmitter {
11136
+ class Jl extends gt.EventEmitter {
11137
11137
  constructor() {
11138
11138
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
11139
11139
  super(), this.onKeyRatcheted = (t, n) => {
@@ -11141,7 +11141,7 @@ class Jl extends mt.EventEmitter {
11141
11141
  material: t,
11142
11142
  keyIndex: n
11143
11143
  });
11144
- }, this.keyInfoMap = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, $d), e), this.on(ti.KeyRatcheted, this.onKeyRatcheted);
11144
+ }, this.keyInfoMap = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, $d), e), this.on(ii.KeyRatcheted, this.onKeyRatcheted);
11145
11145
  }
11146
11146
  /**
11147
11147
  * callback to invoke once a key has been set for a participant
@@ -11155,7 +11155,7 @@ class Jl extends mt.EventEmitter {
11155
11155
  participantIdentity: t,
11156
11156
  keyIndex: n
11157
11157
  };
11158
- this.keyInfoMap.set("".concat(t ?? "shared", "-").concat(n ?? 0), s), this.emit(ti.SetKey, s);
11158
+ this.keyInfoMap.set("".concat(t ?? "shared", "-").concat(n ?? 0), s), this.emit(ii.SetKey, s);
11159
11159
  }
11160
11160
  getKeys() {
11161
11161
  return Array.from(this.keyInfoMap.values());
@@ -11164,7 +11164,7 @@ class Jl extends mt.EventEmitter {
11164
11164
  return this.options;
11165
11165
  }
11166
11166
  ratchetKey(e, t) {
11167
- this.emit(ti.RatchetRequest, e, t);
11167
+ this.emit(ii.RatchetRequest, e, t);
11168
11168
  }
11169
11169
  }
11170
11170
  function Us(i, e, t) {
@@ -11254,7 +11254,7 @@ class be {
11254
11254
  }
11255
11255
  be.mediaDeviceKinds = ["audioinput", "audiooutput", "videoinput"];
11256
11256
  be.userMediaPromiseMap = /* @__PURE__ */ new Map();
11257
- const Gd = 1e3;
11257
+ const Wd = 1e3;
11258
11258
  class Zi extends C {
11259
11259
  get constraints() {
11260
11260
  return this._constraints;
@@ -11325,7 +11325,7 @@ class Zi extends C {
11325
11325
  });
11326
11326
  }
11327
11327
  waitForDimensions() {
11328
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Gd;
11328
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Wd;
11329
11329
  return g(this, void 0, void 0, function* () {
11330
11330
  if (this.kind === C.Kind.Audio)
11331
11331
  throw new Error("cannot get dimensions for audio tracks");
@@ -11334,9 +11334,9 @@ class Zi extends C {
11334
11334
  const n = this.dimensions;
11335
11335
  if (n)
11336
11336
  return n;
11337
- yield si(50);
11337
+ yield ri(50);
11338
11338
  }
11339
- throw new Qe("unable to get track dimensions after timeout");
11339
+ throw new Ze("unable to get track dimensions after timeout");
11340
11340
  });
11341
11341
  }
11342
11342
  /**
@@ -11367,7 +11367,7 @@ class Zi extends C {
11367
11367
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
11368
11368
  return g(this, void 0, void 0, function* () {
11369
11369
  if (!this.sender)
11370
- throw new Qe("unable to replace an unpublished track");
11370
+ throw new Ze("unable to replace an unpublished track");
11371
11371
  return m.debug("replace MediaStreamTrack"), yield this.setMediaStreamTrack(e), this.providedByUser = t, this.processor && (yield this.stopProcessor()), this;
11372
11372
  });
11373
11373
  }
@@ -11512,7 +11512,7 @@ class Zi extends C {
11512
11512
  });
11513
11513
  }
11514
11514
  }
11515
- class zd extends mt.EventEmitter {
11515
+ class Gd extends gt.EventEmitter {
11516
11516
  constructor(e) {
11517
11517
  super(), this.onWorkerMessage = (t) => {
11518
11518
  var n, s;
@@ -11522,7 +11522,7 @@ class zd extends mt.EventEmitter {
11522
11522
  } = t.data;
11523
11523
  switch (r) {
11524
11524
  case "error":
11525
- m.error(a.error.message), this.emit(Zt.EncryptionError, a.error);
11525
+ m.error(a.error.message), this.emit(ei.EncryptionError, a.error);
11526
11526
  break;
11527
11527
  case "initAck":
11528
11528
  a.enabled && this.keyProvider.getKeys().forEach((o) => {
@@ -11531,25 +11531,25 @@ class zd extends mt.EventEmitter {
11531
11531
  break;
11532
11532
  case "enable":
11533
11533
  if (this.encryptionEnabled !== a.enabled && a.participantIdentity === ((n = this.room) === null || n === void 0 ? void 0 : n.localParticipant.identity))
11534
- this.emit(Zt.ParticipantEncryptionStatusChanged, a.enabled, this.room.localParticipant), this.encryptionEnabled = a.enabled;
11534
+ this.emit(ei.ParticipantEncryptionStatusChanged, a.enabled, this.room.localParticipant), this.encryptionEnabled = a.enabled;
11535
11535
  else if (a.participantIdentity) {
11536
11536
  const o = (s = this.room) === null || s === void 0 ? void 0 : s.getParticipantByIdentity(a.participantIdentity);
11537
11537
  if (!o)
11538
11538
  throw TypeError("couldn't set encryption status, participant not found".concat(a.participantIdentity));
11539
- this.emit(Zt.ParticipantEncryptionStatusChanged, a.enabled, o);
11539
+ this.emit(ei.ParticipantEncryptionStatusChanged, a.enabled, o);
11540
11540
  }
11541
11541
  this.encryptionEnabled && this.keyProvider.getKeys().forEach((o) => {
11542
11542
  this.postKey(o);
11543
11543
  });
11544
11544
  break;
11545
11545
  case "ratchetKey":
11546
- this.keyProvider.emit(ti.KeyRatcheted, a.material, a.keyIndex);
11546
+ this.keyProvider.emit(ii.KeyRatcheted, a.material, a.keyIndex);
11547
11547
  break;
11548
11548
  }
11549
11549
  }, this.onWorkerError = (t) => {
11550
11550
  m.error("e2ee worker encountered an error:", {
11551
11551
  error: t.error
11552
- }), this.emit(Zt.EncryptionError, t.error);
11552
+ }), this.emit(ei.EncryptionError, t.error);
11553
11553
  }, this.keyProvider = e.keyProvider, this.worker = e.worker, this.encryptionEnabled = !1;
11554
11554
  }
11555
11555
  /**
@@ -11615,7 +11615,7 @@ class zd extends mt.EventEmitter {
11615
11615
  });
11616
11616
  }), e.localParticipant.on(L.LocalTrackPublished, (n) => g(this, void 0, void 0, function* () {
11617
11617
  this.setupE2EESender(n.track, n.track.sender);
11618
- })), t.on(ti.SetKey, (n) => this.postKey(n)).on(ti.RatchetRequest, (n, s) => this.postRatchetRequest(n, s));
11618
+ })), t.on(ii.SetKey, (n) => this.postKey(n)).on(ii.RatchetRequest, (n, s) => this.postRatchetRequest(n, s));
11619
11619
  }
11620
11620
  postRatchetRequest(e, t) {
11621
11621
  if (!this.worker)
@@ -11692,7 +11692,7 @@ class zd extends mt.EventEmitter {
11692
11692
  if (e.receiver) {
11693
11693
  if (!(n != null && n.mimeType) || n.mimeType === "")
11694
11694
  throw new TypeError("MimeType missing from trackInfo, cannot set up E2EE cryptor");
11695
- this.handleReceiver(e.receiver, e.mediaStreamID, t, e.kind === "video" ? Wd(n.mimeType) : void 0);
11695
+ this.handleReceiver(e.receiver, e.mediaStreamID, t, e.kind === "video" ? zd(n.mimeType) : void 0);
11696
11696
  }
11697
11697
  }
11698
11698
  setupE2EESender(e, t) {
@@ -12364,7 +12364,7 @@ const Pr = 0.7, Si = {
12364
12364
  NegotiationComplete: "negotiationComplete",
12365
12365
  RTPVideoPayloadTypes: "rtpVideoPayloadTypes"
12366
12366
  };
12367
- class Rr extends mt.EventEmitter {
12367
+ class Rr extends gt.EventEmitter {
12368
12368
  get pc() {
12369
12369
  if (this._pc)
12370
12370
  return this._pc;
@@ -12587,7 +12587,7 @@ var xe;
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
12589
  })(xe || (xe = {}));
12590
- class ol extends mt.EventEmitter {
12590
+ class ol extends gt.EventEmitter {
12591
12591
  get isClosed() {
12592
12592
  return this._isClosed;
12593
12593
  }
@@ -12620,7 +12620,7 @@ class ol extends mt.EventEmitter {
12620
12620
  m.error("unsupported data type", t.data);
12621
12621
  return;
12622
12622
  }
12623
- const o = Ze.fromBinary(new Uint8Array(a));
12623
+ const o = et.fromBinary(new Uint8Array(a));
12624
12624
  ((n = o.value) === null || n === void 0 ? void 0 : n.case) === "speaker" ? this.emit(N.ActiveSpeakersUpdate, o.value.value.speakers) : ((s = o.value) === null || s === void 0 ? void 0 : s.case) === "user" && this.emit(N.DataPacketReceived, o.value.value, o.kind);
12625
12625
  } finally {
12626
12626
  r();
@@ -12725,7 +12725,7 @@ class ol extends mt.EventEmitter {
12725
12725
  }
12726
12726
  addTrack(e) {
12727
12727
  if (this.pendingTrackResolvers[e.cid])
12728
- throw new Qe("a track with the same ID has already been published");
12728
+ throw new Ze("a track with the same ID has already been published");
12729
12729
  return new Promise((t, n) => {
12730
12730
  const s = setTimeout(() => {
12731
12731
  delete this.pendingTrackResolvers[e.cid], n(new ne("publication of local track timed out, no response from server"));
@@ -13074,7 +13074,7 @@ class ol extends mt.EventEmitter {
13074
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
13075
13075
  )
13076
13076
  return;
13077
- yield si(100), s = Date.now();
13077
+ yield ri(100), s = Date.now();
13078
13078
  }
13079
13079
  throw new ne("could not establish PC connection");
13080
13080
  });
@@ -13106,7 +13106,7 @@ class ol extends mt.EventEmitter {
13106
13106
  for (; (/* @__PURE__ */ new Date()).getTime() < u; ) {
13107
13107
  if (a.isICEConnected && ((r = this.dataChannelForKind(e, t)) === null || r === void 0 ? void 0 : r.readyState) === "open")
13108
13108
  return;
13109
- yield si(50);
13109
+ yield ri(50);
13110
13110
  }
13111
13111
  throw new ne("could not establish ".concat(o, " connection, state: ").concat(a.pc.iceConnectionState));
13112
13112
  });
@@ -13293,7 +13293,7 @@ class we extends Zi {
13293
13293
  }
13294
13294
  setDeviceId(e) {
13295
13295
  return g(this, void 0, void 0, function* () {
13296
- return this._constraints.deviceId === e ? !0 : (this._constraints.deviceId = e, this.isMuted || (yield this.restartTrack()), this.isMuted || ri(e) === this.mediaStreamTrack.getSettings().deviceId);
13296
+ return this._constraints.deviceId === e ? !0 : (this._constraints.deviceId = e, this.isMuted || (yield this.restartTrack()), this.isMuted || ai(e) === this.mediaStreamTrack.getSettings().deviceId);
13297
13297
  });
13298
13298
  }
13299
13299
  mute() {
@@ -13320,7 +13320,7 @@ class we extends Zi {
13320
13320
  return g(this, void 0, void 0, function* () {
13321
13321
  const t = yield this.muteLock.lock();
13322
13322
  try {
13323
- const n = this._constraints.deviceId && this._mediaStreamTrack.getSettings().deviceId !== ri(this._constraints.deviceId);
13323
+ const n = this._constraints.deviceId && this._mediaStreamTrack.getSettings().deviceId !== ai(this._constraints.deviceId);
13324
13324
  return this.source === C.Source.Microphone && (this.stopOnMute || this._mediaStreamTrack.readyState === "ended" || n) && !this.isUserProvided && (m.debug("reacquiring mic track"), yield this.restartTrack()), yield e.unmute.call(this), this;
13325
13325
  } finally {
13326
13326
  t();
@@ -13418,7 +13418,7 @@ function go(i, e) {
13418
13418
  case "video":
13419
13419
  return new De(i, e, !1);
13420
13420
  default:
13421
- throw new Qe("unsupported track type: ".concat(i.kind));
13421
+ throw new Ze("unsupported track type: ".concat(i.kind));
13422
13422
  }
13423
13423
  }
13424
13424
  const dl = Object.values(Xi), ll = Object.values(Ss), hl = Object.values(Ds), fl = [Xi.h180, Xi.h360], pl = [Ss.h180, Ss.h360], ml = (i) => [{
@@ -13528,7 +13528,7 @@ function es(i, e, t) {
13528
13528
  s.encoding.maxFramerate && (c.maxFramerate = s.encoding.maxFramerate);
13529
13529
  const u = Qi() || r === 0;
13530
13530
  s.encoding.priority && u && (c.priority = s.encoding.priority, c.networkPriority = s.encoding.priority), n.push(c);
13531
- }), ci() && ao() === "ios") {
13531
+ }), ui() && ao() === "ios") {
13532
13532
  let s;
13533
13533
  n.forEach((a) => {
13534
13534
  s ? a.maxFramerate && a.maxFramerate > s && (s = a.maxFramerate) : s = a.maxFramerate;
@@ -13748,7 +13748,7 @@ class De extends Zi {
13748
13748
  setPublishingQuality(e) {
13749
13749
  const t = [];
13750
13750
  for (let n = ue.LOW; n <= ue.HIGH; n += 1)
13751
- t.push(new ze({
13751
+ t.push(new Ge({
13752
13752
  quality: n,
13753
13753
  enabled: n <= e
13754
13754
  }));
@@ -13756,7 +13756,7 @@ class De extends Zi {
13756
13756
  }
13757
13757
  setDeviceId(e) {
13758
13758
  return g(this, void 0, void 0, function* () {
13759
- return this._constraints.deviceId === e && this._mediaStreamTrack.getSettings().deviceId === ri(e) ? !0 : (this._constraints.deviceId = e, this.isMuted || (yield this.restartTrack()), this.isMuted || ri(e) === this._mediaStreamTrack.getSettings().deviceId);
13759
+ return this._constraints.deviceId === e && this._mediaStreamTrack.getSettings().deviceId === ai(e) ? !0 : (this._constraints.deviceId = e, this.isMuted || (yield this.restartTrack()), this.isMuted || ai(e) === this._mediaStreamTrack.getSettings().deviceId);
13760
13760
  });
13761
13761
  }
13762
13762
  restartTrack(e) {
@@ -14033,7 +14033,7 @@ class Hi extends ko {
14033
14033
  var t;
14034
14034
  for (const n of this.attachedElements)
14035
14035
  this.audioContext ? (t = this.gainNode) === null || t === void 0 || t.gain.setTargetAtTime(e, 0, 0.1) : n.volume = e;
14036
- ci() && this._mediaStreamTrack._setVolume(e), this.elementVolume = e;
14036
+ ui() && this._mediaStreamTrack._setVolume(e), this.elementVolume = e;
14037
14037
  }
14038
14038
  /**
14039
14039
  * gets the volume of attached audio elements (loudest)
@@ -14041,7 +14041,7 @@ class Hi extends ko {
14041
14041
  getVolume() {
14042
14042
  if (this.elementVolume)
14043
14043
  return this.elementVolume;
14044
- if (ci())
14044
+ if (ui())
14045
14045
  return 1;
14046
14046
  let e = 0;
14047
14047
  return this.attachedElements.forEach((t) => {
@@ -14122,7 +14122,7 @@ class Hi extends ko {
14122
14122
  }
14123
14123
  }
14124
14124
  const ts = 100;
14125
- class Wi extends ko {
14125
+ class zi extends ko {
14126
14126
  constructor(e, t, n, s) {
14127
14127
  super(e, t, C.Kind.Video, n), this.elementInfos = [], this.monitorReceiver = () => g(this, void 0, void 0, function* () {
14128
14128
  if (!this.receiver) {
@@ -14324,7 +14324,7 @@ function Fr(i) {
14324
14324
  i = i.offsetParent, e += i.offsetTop, t += i.offsetLeft;
14325
14325
  return e < window.pageYOffset + window.innerHeight && t < window.pageXOffset + window.innerWidth && e + s > window.pageYOffset && t + n > window.pageXOffset && !r && (a !== "" ? parseFloat(a) > 0 : !0) && o !== "none";
14326
14326
  }
14327
- class bt extends mt.EventEmitter {
14327
+ class kt extends gt.EventEmitter {
14328
14328
  constructor(e, t, n) {
14329
14329
  super(), this.metadataMuted = !1, this.encryption = ke.NONE, this.handleMuted = () => {
14330
14330
  this.emit(R.Muted);
@@ -14359,7 +14359,7 @@ class bt extends mt.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 Wi)
14362
+ if (this.track instanceof De || this.track instanceof zi)
14363
14363
  return this.track;
14364
14364
  }
14365
14365
  /** @internal */
@@ -14378,8 +14378,8 @@ class bt extends mt.EventEmitter {
14378
14378
  })(i.SubscriptionStatus || (i.SubscriptionStatus = {})), function(e) {
14379
14379
  e.Allowed = "allowed", e.NotAllowed = "not_allowed";
14380
14380
  }(i.PermissionStatus || (i.PermissionStatus = {}));
14381
- })(bt || (bt = {}));
14382
- class Ln extends bt {
14381
+ })(kt || (kt = {}));
14382
+ class Ln extends kt {
14383
14383
  get isUpstreamPaused() {
14384
14384
  var e;
14385
14385
  return (e = this.track) === null || e === void 0 ? void 0 : e.isUpstreamPaused;
@@ -14441,29 +14441,29 @@ class Ln extends bt {
14441
14441
  });
14442
14442
  }
14443
14443
  }
14444
- var ni;
14444
+ var si;
14445
14445
  (function(i) {
14446
14446
  i.Excellent = "excellent", i.Good = "good", i.Poor = "poor", i.Unknown = "unknown";
14447
- })(ni || (ni = {}));
14447
+ })(si || (si = {}));
14448
14448
  function kl(i) {
14449
14449
  switch (i) {
14450
- case ei.EXCELLENT:
14451
- return ni.Excellent;
14452
- case ei.GOOD:
14453
- return ni.Good;
14454
- case ei.POOR:
14455
- return ni.Poor;
14450
+ case ti.EXCELLENT:
14451
+ return si.Excellent;
14452
+ case ti.GOOD:
14453
+ return si.Good;
14454
+ case ti.POOR:
14455
+ return si.Poor;
14456
14456
  default:
14457
- return ni.Unknown;
14457
+ return si.Unknown;
14458
14458
  }
14459
14459
  }
14460
- class To extends mt.EventEmitter {
14460
+ class To extends gt.EventEmitter {
14461
14461
  get isEncrypted() {
14462
14462
  return this.tracks.size > 0 && Array.from(this.tracks.values()).every((e) => e.isEncrypted);
14463
14463
  }
14464
14464
  /** @internal */
14465
14465
  constructor(e, t, n, s) {
14466
- super(), this.audioLevel = 0, this.isSpeaking = !1, this._connectionQuality = ni.Unknown, this.setMaxListeners(100), this.sid = e, this.identity = t, this.name = n, this.metadata = s, this.audioTracks = /* @__PURE__ */ new Map(), this.videoTracks = /* @__PURE__ */ new Map(), this.tracks = /* @__PURE__ */ new Map();
14466
+ super(), this.audioLevel = 0, this.isSpeaking = !1, this._connectionQuality = si.Unknown, this.setMaxListeners(100), this.sid = e, this.identity = t, this.name = n, this.metadata = s, this.audioTracks = /* @__PURE__ */ new Map(), this.videoTracks = /* @__PURE__ */ new Map(), this.tracks = /* @__PURE__ */ new Map();
14467
14467
  }
14468
14468
  getTracks() {
14469
14469
  return Array.from(this.tracks.values());
@@ -14574,14 +14574,14 @@ function Tl(i) {
14574
14574
  var e, t, n;
14575
14575
  if (!i.participantSid && !i.participantIdentity)
14576
14576
  throw new Error("Invalid track permission, must provide at least one of participantIdentity and participantSid");
14577
- return new dt({
14577
+ return new lt({
14578
14578
  participantIdentity: (e = i.participantIdentity) !== null && e !== void 0 ? e : "",
14579
14579
  participantSid: (t = i.participantSid) !== null && t !== void 0 ? t : "",
14580
14580
  allTracks: (n = i.allowAll) !== null && n !== void 0 ? n : !1,
14581
14581
  trackSids: i.allowedTrackSids || []
14582
14582
  });
14583
14583
  }
14584
- class So extends bt {
14584
+ class So extends kt {
14585
14585
  constructor(e, t, n) {
14586
14586
  super(e, t.sid, t.name), this.track = void 0, this.allowed = !0, this.disabled = !1, this.currentVideoQuality = ue.HIGH, this.handleEnded = (s) => {
14587
14587
  this.setTrack(void 0), this.emit(R.Ended, s);
@@ -14605,7 +14605,7 @@ class So extends bt {
14605
14605
  const s = new Je({
14606
14606
  trackSids: [this.trackSid],
14607
14607
  subscribe: this.subscribed,
14608
- participantTracks: [new it({
14608
+ participantTracks: [new nt({
14609
14609
  // sending an empty participant id since TrackPublication doesn't keep it
14610
14610
  // this is filled in by the participant that receives this message
14611
14611
  participantSid: "",
@@ -14615,10 +14615,10 @@ class So extends bt {
14615
14615
  this.emit(R.UpdateSubscription, s), this.emitSubscriptionUpdateIfChanged(t), this.emitPermissionUpdateIfChanged(n);
14616
14616
  }
14617
14617
  get subscriptionStatus() {
14618
- return this.subscribed === !1 ? bt.SubscriptionStatus.Unsubscribed : super.isSubscribed ? bt.SubscriptionStatus.Subscribed : bt.SubscriptionStatus.Desired;
14618
+ return this.subscribed === !1 ? kt.SubscriptionStatus.Unsubscribed : super.isSubscribed ? kt.SubscriptionStatus.Subscribed : kt.SubscriptionStatus.Desired;
14619
14619
  }
14620
14620
  get permissionStatus() {
14621
- return this.allowed ? bt.PermissionStatus.Allowed : bt.PermissionStatus.NotAllowed;
14621
+ return this.allowed ? kt.PermissionStatus.Allowed : kt.PermissionStatus.NotAllowed;
14622
14622
  }
14623
14623
  /**
14624
14624
  * Returns true if track is subscribed, and ready for playback
@@ -14654,10 +14654,10 @@ class So extends bt {
14654
14654
  }
14655
14655
  setVideoDimensions(e) {
14656
14656
  var t, n;
14657
- this.isManualOperationAllowed() && (((t = this.videoDimensions) === null || t === void 0 ? void 0 : t.width) === e.width && ((n = this.videoDimensions) === null || n === void 0 ? void 0 : n.height) === e.height || (this.track instanceof Wi && (this.videoDimensions = e), this.currentVideoQuality = void 0, this.emitTrackUpdate()));
14657
+ this.isManualOperationAllowed() && (((t = this.videoDimensions) === null || t === void 0 ? void 0 : t.width) === e.width && ((n = this.videoDimensions) === null || n === void 0 ? void 0 : n.height) === e.height || (this.track instanceof zi && (this.videoDimensions = e), this.currentVideoQuality = void 0, this.emitTrackUpdate()));
14658
14658
  }
14659
14659
  setVideoFPS(e) {
14660
- this.isManualOperationAllowed() && this.track instanceof Wi && this.fps !== e && (this.fps = e, this.emitTrackUpdate());
14660
+ this.isManualOperationAllowed() && this.track instanceof zi && this.fps !== e && (this.fps = e, this.emitTrackUpdate());
14661
14661
  }
14662
14662
  get videoQuality() {
14663
14663
  return this.currentVideoQuality;
@@ -14697,11 +14697,11 @@ class So extends bt {
14697
14697
  }), !1);
14698
14698
  }
14699
14699
  get isAdaptiveStream() {
14700
- return this.track instanceof Wi && this.track.isAdaptiveStream;
14700
+ return this.track instanceof zi && this.track.isAdaptiveStream;
14701
14701
  }
14702
14702
  /* @internal */
14703
14703
  emitTrackUpdate() {
14704
- const e = new at({
14704
+ const e = new ot({
14705
14705
  trackSids: [this.trackSid],
14706
14706
  disabled: this.disabled,
14707
14707
  fps: this.fps
@@ -14794,7 +14794,7 @@ class en extends To {
14794
14794
  }
14795
14795
  const c = e.kind === "video";
14796
14796
  let u;
14797
- return c ? u = new Wi(e, t, s, r) : u = new Hi(e, t, s, this.audioContext, this.audioOutput), u.source = o.source, u.isMuted = o.isMuted, u.setMediaStream(n), u.start(), o.setTrack(u), this.volumeMap.has(o.source) && u instanceof Hi && u.setVolume(this.volumeMap.get(o.source)), o;
14797
+ return c ? u = new zi(e, t, s, r) : u = new Hi(e, t, s, this.audioContext, this.audioOutput), u.source = o.source, u.isMuted = o.isMuted, u.setMediaStream(n), u.start(), o.setTrack(u), this.volumeMap.has(o.source) && u instanceof Hi && u.setVolume(this.volumeMap.get(o.source)), o;
14798
14798
  }
14799
14799
  /** @internal */
14800
14800
  get hasMetadata() {
@@ -15102,7 +15102,7 @@ class Br extends To {
15102
15102
  c = yield this.createScreenTracks(Object.assign({}, n));
15103
15103
  break;
15104
15104
  default:
15105
- throw new Qe(e);
15105
+ throw new Ze(e);
15106
15106
  }
15107
15107
  const u = [];
15108
15108
  for (const h of c)
@@ -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 Qe) && this.emit(L.MediaDevicesError, u), u;
15116
+ }), u instanceof Error && !(u instanceof Ze) && this.emit(L.MediaDevicesError, u), u;
15117
15117
  } finally {
15118
15118
  this.pendingPublishing.delete(e);
15119
15119
  }
@@ -15185,7 +15185,7 @@ class Br extends To {
15185
15185
  throw new xs("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
- throw new Qe("no video track found");
15188
+ throw new Ze("no video track found");
15189
15189
  const r = new De(s[0], void 0, !1);
15190
15190
  r.source = C.Source.ScreenShare;
15191
15191
  const a = [r];
@@ -15231,7 +15231,7 @@ class Br extends To {
15231
15231
  e = new De(e, o, !0);
15232
15232
  break;
15233
15233
  default:
15234
- throw new Qe("unsupported MediaStreamTrack kind ".concat(e.kind));
15234
+ throw new Ze("unsupported MediaStreamTrack kind ".concat(e.kind));
15235
15235
  }
15236
15236
  e instanceof we && e.setAudioContext(this.audioContext);
15237
15237
  let c;
@@ -15337,8 +15337,8 @@ class Br extends To {
15337
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;
15338
15338
  }
15339
15339
  }
15340
- const A = new Ln(e.kind, ae, e);
15341
- if (A.options = t, e.sid = ae.sid, !this.engine.publisher)
15340
+ const I = new Ln(e.kind, ae, e);
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"), {
15344
15344
  encodings: j,
@@ -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(A), this.emit(L.LocalTrackPublished, A), A;
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;
15366
15366
  });
15367
15367
  }
15368
15368
  get isLocal() {
@@ -15378,9 +15378,9 @@ class Br extends To {
15378
15378
  if (this.tracks.forEach((h) => {
15379
15379
  h.track && h.track === e && (r = h);
15380
15380
  }), !r)
15381
- throw new Qe("track is not published");
15381
+ throw new Ze("track is not published");
15382
15382
  if (!(e instanceof De))
15383
- throw new Qe("track is not a video track");
15383
+ throw new Ze("track is not a video track");
15384
15384
  const a = Object.assign(Object.assign({}, (s = this.roomOptions) === null || s === void 0 ? void 0 : s.publishDefaults), n), o = Nr(e, t, a);
15385
15385
  if (!o) {
15386
15386
  m.info("backup codec has been disabled, ignoring request to add additional codec for track");
@@ -15476,11 +15476,11 @@ class Br extends To {
15476
15476
  s !== void 0 && s.forEach((c) => {
15477
15477
  c instanceof en ? r.push(c.sid) : r.push(c);
15478
15478
  });
15479
- const o = new Ze({
15479
+ const o = new et({
15480
15480
  kind: t,
15481
15481
  value: {
15482
15482
  case: "user",
15483
- value: new tt({
15483
+ value: new it({
15484
15484
  participantSid: this.sid,
15485
15485
  payload: e,
15486
15486
  destinationSids: r,
@@ -15537,7 +15537,7 @@ class Br extends To {
15537
15537
  publishedTracksInfo() {
15538
15538
  const e = [];
15539
15539
  return this.tracks.forEach((t) => {
15540
- t.track !== void 0 && e.push(new Ge({
15540
+ t.track !== void 0 && e.push(new We({
15541
15541
  cid: t.track.mediaStreamID,
15542
15542
  track: t.trackInfo
15543
15543
  }));
@@ -15546,7 +15546,7 @@ class Br extends To {
15546
15546
  /** @internal */
15547
15547
  dataChannelsInfo() {
15548
15548
  const e = [], t = (n, s) => {
15549
- (n == null ? void 0 : n.id) !== void 0 && n.id !== null && e.push(new ft({
15549
+ (n == null ? void 0 : n.id) !== void 0 && n.id !== null && e.push(new pt({
15550
15550
  label: n.label,
15551
15551
  id: n.id,
15552
15552
  target: s
@@ -15560,7 +15560,7 @@ var Y;
15560
15560
  i.Disconnected = "disconnected", i.Connecting = "connecting", i.Connected = "connected", i.Reconnecting = "reconnecting";
15561
15561
  })(Y || (Y = {}));
15562
15562
  const Sl = 2 * 1e3;
15563
- class Co extends mt.EventEmitter {
15563
+ class Co extends gt.EventEmitter {
15564
15564
  /**
15565
15565
  * Creates a new Room, the primary construct for a LiveKit session.
15566
15566
  * @param options
@@ -15662,7 +15662,7 @@ class Co extends mt.EventEmitter {
15662
15662
  }
15663
15663
  m.info("disconnect from room", {
15664
15664
  identity: this.localParticipant.identity
15665
- }), (this.state === Y.Connecting || this.state === Y.Reconnecting) && (m.warn("abort connection attempt"), (r = this.abortController) === null || r === void 0 || r.abort(), (o = (a = this.connectFuture) === null || a === void 0 ? void 0 : a.reject) === null || o === void 0 || o.call(a, new ne("Client initiated disconnect")), this.connectFuture = void 0), !((c = this.engine) === null || c === void 0) && c.client.isConnected && (yield this.engine.client.sendLeave()), this.engine && (yield this.engine.close()), this.handleDisconnect(s, Ht.CLIENT_INITIATED), this.engine = void 0;
15665
+ }), (this.state === Y.Connecting || this.state === Y.Reconnecting) && (m.warn("abort connection attempt"), (r = this.abortController) === null || r === void 0 || r.abort(), (o = (a = this.connectFuture) === null || a === void 0 ? void 0 : a.reject) === null || o === void 0 || o.call(a, new ne("Client initiated disconnect")), this.connectFuture = void 0), !((c = this.engine) === null || c === void 0) && c.client.isConnected && (yield this.engine.client.sendLeave()), this.engine && (yield this.engine.close()), this.handleDisconnect(s, zt.CLIENT_INITIATED), this.engine = void 0;
15666
15666
  } finally {
15667
15667
  u();
15668
15668
  }
@@ -15715,7 +15715,7 @@ class Co extends mt.EventEmitter {
15715
15715
  a && a !== r.sid && this.handleParticipantDisconnected(a, this.participants.get(a));
15716
15716
  let o = this.participants.get(r.sid);
15717
15717
  const c = !o;
15718
- r.state === ai.DISCONNECTED ? this.handleParticipantDisconnected(r.sid, o) : (o = this.getOrCreateParticipant(r.sid, r), c || o.updateInfo(r));
15718
+ r.state === oi.DISCONNECTED ? this.handleParticipantDisconnected(r.sid, o) : (o = this.getOrCreateParticipant(r.sid, r), c || o.updateInfo(r));
15719
15719
  });
15720
15720
  }, this.handleActiveSpeakersUpdate = (s) => {
15721
15721
  const r = [], a = {};
@@ -15801,7 +15801,7 @@ class Co extends mt.EventEmitter {
15801
15801
  this.emit(P.MediaDevicesError, s);
15802
15802
  }, this.onLocalParticipantPermissionsChanged = (s) => {
15803
15803
  this.emit(P.ParticipantPermissionsChanged, s, this.localParticipant);
15804
- }, this.setMaxListeners(100), this.participants = /* @__PURE__ */ new Map(), this.cachedParticipantSids = [], this.identityToSid = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, rl), e), this.options.audioCaptureDefaults = Object.assign(Object.assign({}, fo), e == null ? void 0 : e.audioCaptureDefaults), this.options.videoCaptureDefaults = Object.assign(Object.assign({}, po), e == null ? void 0 : e.videoCaptureDefaults), this.options.publishDefaults = Object.assign(Object.assign({}, sl), e == null ? void 0 : e.publishDefaults), this.maybeCreateEngine(), this.disconnectLock = new Wt(), this.localParticipant = new Br("", "", this.engine, this.options), this.options.videoCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("videoinput", ri(this.options.videoCaptureDefaults.deviceId)), this.options.audioCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("audioinput", ri(this.options.audioCaptureDefaults.deviceId)), !((n = this.options.audioOutput) === null || n === void 0) && n.deviceId && this.switchActiveDevice("audiooutput", ri(this.options.audioOutput.deviceId)), this.options.e2ee && this.setupE2EE();
15804
+ }, this.setMaxListeners(100), this.participants = /* @__PURE__ */ new Map(), this.cachedParticipantSids = [], this.identityToSid = /* @__PURE__ */ new Map(), this.options = Object.assign(Object.assign({}, rl), e), this.options.audioCaptureDefaults = Object.assign(Object.assign({}, fo), e == null ? void 0 : e.audioCaptureDefaults), this.options.videoCaptureDefaults = Object.assign(Object.assign({}, po), e == null ? void 0 : e.videoCaptureDefaults), this.options.publishDefaults = Object.assign(Object.assign({}, sl), e == null ? void 0 : e.publishDefaults), this.maybeCreateEngine(), this.disconnectLock = new Wt(), this.localParticipant = new Br("", "", this.engine, this.options), this.options.videoCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("videoinput", ai(this.options.videoCaptureDefaults.deviceId)), this.options.audioCaptureDefaults.deviceId && this.localParticipant.activeDeviceMap.set("audioinput", ai(this.options.audioCaptureDefaults.deviceId)), !((n = this.options.audioOutput) === null || n === void 0) && n.deviceId && this.switchActiveDevice("audiooutput", ai(this.options.audioOutput.deviceId)), this.options.e2ee && this.setupE2EE();
15805
15805
  }
15806
15806
  /**
15807
15807
  * @experimental
@@ -15816,9 +15816,9 @@ class Co extends mt.EventEmitter {
15816
15816
  }
15817
15817
  setupE2EE() {
15818
15818
  var e;
15819
- this.options.e2ee && (this.e2eeManager = new zd(this.options.e2ee), this.e2eeManager.on(Zt.ParticipantEncryptionStatusChanged, (t, n) => {
15819
+ this.options.e2ee && (this.e2eeManager = new Gd(this.options.e2ee), this.e2eeManager.on(ei.ParticipantEncryptionStatusChanged, (t, n) => {
15820
15820
  n instanceof Br && (this.isE2EEEnabled = t), this.emit(P.ParticipantEncryptionStatusChanged, t, n);
15821
- }), this.e2eeManager.on(Zt.EncryptionError, (t) => this.emit(P.EncryptionError, t)), (e = this.e2eeManager) === null || e === void 0 || e.setup(this));
15821
+ }), this.e2eeManager.on(ei.EncryptionError, (t) => this.emit(P.EncryptionError, t)), (e = this.e2eeManager) === null || e === void 0 || e.setup(this));
15822
15822
  }
15823
15823
  /**
15824
15824
  * if the current room has a participant with `recorder: true` in its JWT grant
@@ -15983,7 +15983,7 @@ class Co extends mt.EventEmitter {
15983
15983
  }), n = () => g(this, void 0, void 0, function* () {
15984
15984
  const r = this.engine.client.onLeave;
15985
15985
  r && r(new je({
15986
- reason: Ht.CLIENT_INITIATED,
15986
+ reason: zt.CLIENT_INITIATED,
15987
15987
  canReconnect: !0
15988
15988
  }));
15989
15989
  });
@@ -16239,7 +16239,7 @@ class Co extends mt.EventEmitter {
16239
16239
  o.tracks.forEach((c) => {
16240
16240
  c.isDesired !== r && a.push(c.trackSid);
16241
16241
  });
16242
- }), this.engine.client.sendSyncState(new ht({
16242
+ }), this.engine.client.sendSyncState(new ft({
16243
16243
  answer: On({
16244
16244
  sdp: n.sdp,
16245
16245
  type: n.type
@@ -16275,7 +16275,7 @@ class Co extends mt.EventEmitter {
16275
16275
  this.engine.isClosed || // transports failed without notifying engine
16276
16276
  !this.engine.verifyTransport() ? (e++, m.warn("detected connection state mismatch", {
16277
16277
  numFailures: e
16278
- }), e >= 3 && (this.recreateEngine(), this.handleDisconnect(this.options.stopLocalTrackOnUnpublish, Ht.STATE_MISMATCH))) : e = 0;
16278
+ }), e >= 3 && (this.recreateEngine(), this.handleDisconnect(this.options.stopLocalTrackOnUnpublish, zt.STATE_MISMATCH))) : e = 0;
16279
16279
  }, Sl);
16280
16280
  }
16281
16281
  clearConnectionReconcile() {
@@ -16350,7 +16350,7 @@ class Co extends mt.EventEmitter {
16350
16350
  let o = new Me({
16351
16351
  sid: Math.floor(Math.random() * 1e4).toString(),
16352
16352
  identity: "simulated-".concat(a),
16353
- state: ai.ACTIVE,
16353
+ state: oi.ACTIVE,
16354
16354
  tracks: [],
16355
16355
  joinedAt: V.parse(Date.now())
16356
16356
  });
@@ -16389,7 +16389,7 @@ var Ve;
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
16391
  })(Ve || (Ve = {}));
16392
- class _i extends mt.EventEmitter {
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
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);
@@ -16649,7 +16649,7 @@ class Ol extends _i {
16649
16649
  });
16650
16650
  }
16651
16651
  }
16652
- class jl extends mt.EventEmitter {
16652
+ class jl extends gt.EventEmitter {
16653
16653
  constructor(e, t) {
16654
16654
  super(), this.checkResults = /* @__PURE__ */ new Map(), this.url = e, this.token = t;
16655
16655
  }
@@ -16730,14 +16730,14 @@ function Nl() {
16730
16730
  `, i;
16731
16731
  }
16732
16732
  function xl(i) {
16733
- Vo(i, "svelte-1g24uwa", '#liveroom-client-element.svelte-1g24uwa.svelte-1g24uwa{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-1g24uwa.svelte-1g24uwa{z-index:99999;position:fixed;inset:0;overflow:hidden;pointer-events:none}.user.svelte-1g24uwa.svelte-1g24uwa{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-1g24uwa .cursor.svelte-1g24uwa{position:absolute;top:0;left:0;color:var(--color);transform-origin:top left;transform:rotate(6deg)}.user[data-isself="true"].svelte-1g24uwa .cursor.svelte-1g24uwa{display:none}.user-label.svelte-1g24uwa.svelte-1g24uwa{font-weight:600;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)}.user.svelte-1g24uwa .user-label.svelte-1g24uwa{display:flex;flex-direction:column;justify-content:center;align-items:center}.user.svelte-1g24uwa .user-label[data-hidevideo="true"].svelte-1g24uwa{position:absolute;top:20px;left:16px}.user.svelte-1g24uwa .user-label[data-hidevideo="false"].svelte-1g24uwa{position:relative;margin:12px 6px}.user[data-isself="true"].svelte-1g24uwa .user-label.svelte-1g24uwa{display:none}.user-label.svelte-1g24uwa .user-name.svelte-1g24uwa{display:flex;justify-content:center;align-items:center;background-color:var(--color);font-size:0.7rem}.user.svelte-1g24uwa .user-label[data-hidevideo="true"] .user-name.svelte-1g24uwa{padding:0.15rem 0.5rem}.user.svelte-1g24uwa .user-label[data-hidevideo="false"] .user-name.svelte-1g24uwa{position:absolute;inset-inline:0;bottom:-2px;padding:0.15rem 0.5rem 0.35rem 0.5rem}.user.svelte-1g24uwa .user-label #video-container.svelte-1g24uwa{height:7rem;width:7rem;overflow:hidden;display:flex;justify-content:center;align-items:center}.user.svelte-1g24uwa .user-label[data-hidevideo="true"] #video-container.svelte-1g24uwa{display:none}.user.svelte-1g24uwa .user-label #video-container video.svelte-1g24uwa{height:100%;aspect-ratio:16 / 9;transform:scaleX(-1);margin-bottom:30px}.user.svelte-1g24uwa .halo.svelte-1g24uwa{transform:scale(0);z-index:-1;position:absolute;top:-60px;left:-60px;width:120px;height:120px;border-radius:9999px;background-color:var(--color);opacity:0.25;transition:transform 100ms ease-out;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-1g24uwa .halo[data-show="true"].svelte-1g24uwa{transform:scale(1)}');
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) {
16736
16736
  const n = i.slice();
16737
16737
  return n[29] = e[t], n[30] = e, n[31] = t, n;
16738
16738
  }
16739
16739
  function jr(i) {
16740
- let e, t = [], n = /* @__PURE__ */ new Map(), s = Ws(Object.values(
16740
+ let e, t = [], n = /* @__PURE__ */ new Map(), s = zs(Object.values(
16741
16741
  /*users*/
16742
16742
  i[1]
16743
16743
  ));
@@ -16751,10 +16751,10 @@ function jr(i) {
16751
16751
  }
16752
16752
  return {
16753
16753
  c() {
16754
- e = Ye("div");
16754
+ e = Xe("div");
16755
16755
  for (let a = 0; a < t.length; a += 1)
16756
16756
  t[a].c();
16757
- z(e, "id", "users-container"), z(e, "class", "svelte-1g24uwa");
16757
+ G(e, "id", "users-container"), G(e, "class", "svelte-pjz0tt");
16758
16758
  },
16759
16759
  m(a, o) {
16760
16760
  Nn(a, e, o);
@@ -16763,7 +16763,7 @@ function jr(i) {
16763
16763
  },
16764
16764
  p(a, o) {
16765
16765
  o[0] & /*users, me, users_count, users_videos_els*/
16766
- 15 && (s = Ws(Object.values(
16766
+ 15 && (s = zs(Object.values(
16767
16767
  /*users*/
16768
16768
  a[1]
16769
16769
  )), t = ic(t, o, r, 1, a, s, n, e, tc, Vr, null, Jr));
@@ -16794,9 +16794,9 @@ function Vr(i, e) {
16794
16794
  key: i,
16795
16795
  first: null,
16796
16796
  c() {
16797
- t = Ye("div"), n = qs("svg"), s = qs("path"), r = cn(), a = Ye("div"), o = Ye("div"), c = Ye("video"), h = cn(), f = Ye("div"), b = Hr(p), w = cn(), _ = Ye("div"), Q = cn(), z(s, "d", "M2.2706 0.0593359L25.4277 8.05957H25.45926C25.65896 8.13153 25.83096 8.25952 25.95221 8.42653C26.07357 8.59354 26.13851 8.79166 26.13851 8.99459C26.13851 9.19751 26.07357 9.39564 25.95221 9.56265C25.83096 9.72966 25.65896 9.85765 25.45926 9.92962L15.3543 13.7698L11.3124 23.37C11.2344 23.5561 11.0994 23.7156 10.9248 23.828C10.7503 23.9402 10.5443 24.0002 10.3335 24C10.1172 24 9.9061 23.9365 9.7291 23.8184C9.552 23.7004 9.4176 23.5332 9.344 23.34L0.9233 1.33937C0.8555 1.16076 0.8426 0.967504 0.8861 0.782189C0.9297 0.596873 1.0278 0.427163 1.1691 0.292901C1.3105 0.158639 1.4891 0.0653762 1.6841 0.0240151C1.8792 -0.0173461 2.0826 -0.00509504 2.2706 0.0593359Z"), z(n, "width", "23"), z(n, "viewBox", "0 0 27 24"), z(n, "fill", "currentColor"), z(n, "aria-hidden", "true"), z(n, "xmlns", "http://www.w3.org/2000/svg"), z(n, "class", "cursor svelte-1g24uwa"), z(c, "id", u = `user-video-${/*user*/
16798
- e[29].id}`), z(c, "class", "svelte-1g24uwa"), z(o, "id", "video-container"), z(o, "class", "svelte-1g24uwa"), z(f, "class", "user-name svelte-1g24uwa"), z(a, "class", "user-label svelte-1g24uwa"), z(a, "data-hidevideo", T = !/*user*/
16799
- e[29].camera_enabled), z(_, "class", "halo svelte-1g24uwa"), z(_, "data-show", M = /*user*/
16797
+ t = Xe("div"), n = qs("svg"), s = qs("path"), r = cn(), a = Xe("div"), o = Xe("div"), c = Xe("video"), h = cn(), f = Xe("div"), b = Hr(p), w = cn(), _ = Xe("div"), Q = cn(), G(s, "d", "M2.2706 0.0593359L25.4277 8.05957H25.45926C25.65896 8.13153 25.83096 8.25952 25.95221 8.42653C26.07357 8.59354 26.13851 8.79166 26.13851 8.99459C26.13851 9.19751 26.07357 9.39564 25.95221 9.56265C25.83096 9.72966 25.65896 9.85765 25.45926 9.92962L15.3543 13.7698L11.3124 23.37C11.2344 23.5561 11.0994 23.7156 10.9248 23.828C10.7503 23.9402 10.5443 24.0002 10.3335 24C10.1172 24 9.9061 23.9365 9.7291 23.8184C9.552 23.7004 9.4176 23.5332 9.344 23.34L0.9233 1.33937C0.8555 1.16076 0.8426 0.967504 0.8861 0.782189C0.9297 0.596873 1.0278 0.427163 1.1691 0.292901C1.3105 0.158639 1.4891 0.0653762 1.6841 0.0240151C1.8792 -0.0173461 2.0826 -0.00509504 2.2706 0.0593359Z"), G(n, "width", "23"), G(n, "viewBox", "0 0 27 24"), G(n, "fill", "currentColor"), G(n, "aria-hidden", "true"), G(n, "xmlns", "http://www.w3.org/2000/svg"), G(n, "class", "cursor svelte-pjz0tt"), G(c, "id", u = `user-video-${/*user*/
16798
+ e[29].id}`), G(c, "class", "svelte-pjz0tt"), G(o, "id", "video-container"), G(o, "class", "svelte-pjz0tt"), G(f, "class", "user-name svelte-pjz0tt"), G(a, "class", "user-label svelte-pjz0tt"), G(a, "data-cameraenabled", T = /*user*/
16799
+ e[29].camera_enabled), G(_, "class", "halo svelte-pjz0tt"), G(_, "data-show", M = /*user*/
16800
16800
  (e[29].id == /*me*/
16801
16801
  e[0].id && /*user*/
16802
16802
  e[29].is_shift_key_down || /*user*/
@@ -16804,35 +16804,45 @@ function Vr(i, e) {
16804
16804
  e[0].id && /*user*/
16805
16805
  (e[29].is_shift_key_down || /*user*/
16806
16806
  e[29].is_mouse_down)) && /*users_count*/
16807
- e[3] > 1), z(t, "id", j = "user-" + /*user*/
16808
- e[29].id), z(t, "class", "user svelte-1g24uwa"), z(t, "data-isself", he = /*user*/
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*/
16809
16809
  e[29].id == /*me*/
16810
- e[0].id), hi(
16810
+ e[0].id), Ye(
16811
16811
  t,
16812
16812
  "--color",
16813
16813
  /*user*/
16814
16814
  e[29].color
16815
- ), hi(t, "--x", parseFloat(
16815
+ ), Ye(
16816
+ t,
16817
+ "--color25",
16818
+ /*user*/
16819
+ e[29].color + "25"
16820
+ ), Ye(
16821
+ t,
16822
+ "--color75",
16823
+ /*user*/
16824
+ e[29].color + "75"
16825
+ ), Ye(t, "--x", parseFloat(
16816
16826
  /*user*/
16817
16827
  e[29].x
16818
- ) + "vw"), hi(t, "--y", parseFloat(
16828
+ ) + "vw"), Ye(t, "--y", parseFloat(
16819
16829
  /*user*/
16820
16830
  e[29].y
16821
16831
  ) + "vh"), this.first = t;
16822
16832
  },
16823
- m(K, A) {
16824
- Nn(K, t, A), 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);
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);
16825
16835
  },
16826
- p(K, A) {
16827
- e = K, A[0] & /*users*/
16836
+ p(K, I) {
16837
+ e = K, I[0] & /*users*/
16828
16838
  2 && u !== (u = `user-video-${/*user*/
16829
- e[29].id}`) && z(c, "id", u), d !== /*user*/
16839
+ e[29].id}`) && G(c, "id", u), d !== /*user*/
16830
16840
  e[29] && (q(), d = /*user*/
16831
- e[29], ae()), A[0] & /*users*/
16841
+ e[29], ae()), I[0] & /*users*/
16832
16842
  2 && p !== (p = /*user*/
16833
- e[29].name + "") && Wo(b, p), A[0] & /*users*/
16834
- 2 && T !== (T = !/*user*/
16835
- e[29].camera_enabled) && z(a, "data-hidevideo", T), A[0] & /*users, me, users_count*/
16843
+ e[29].name + "") && zo(b, p), I[0] & /*users*/
16844
+ 2 && T !== (T = /*user*/
16845
+ e[29].camera_enabled) && G(a, "data-cameraenabled", T), I[0] & /*users, me, users_count*/
16836
16846
  11 && M !== (M = /*user*/
16837
16847
  (e[29].id == /*me*/
16838
16848
  e[0].id && /*user*/
@@ -16841,23 +16851,35 @@ function Vr(i, e) {
16841
16851
  e[0].id && /*user*/
16842
16852
  (e[29].is_shift_key_down || /*user*/
16843
16853
  e[29].is_mouse_down)) && /*users_count*/
16844
- e[3] > 1) && z(_, "data-show", M), A[0] & /*users*/
16854
+ e[3] > 1) && G(_, "data-show", M), I[0] & /*users*/
16845
16855
  2 && j !== (j = "user-" + /*user*/
16846
- e[29].id) && z(t, "id", j), A[0] & /*users, me*/
16856
+ e[29].id) && G(t, "id", j), I[0] & /*users, me*/
16847
16857
  3 && he !== (he = /*user*/
16848
16858
  e[29].id == /*me*/
16849
- e[0].id) && z(t, "data-isself", he), A[0] & /*users*/
16850
- 2 && hi(
16859
+ e[0].id) && G(t, "data-isself", he), I[0] & /*users*/
16860
+ 2 && Ye(
16851
16861
  t,
16852
16862
  "--color",
16853
16863
  /*user*/
16854
16864
  e[29].color
16855
- ), A[0] & /*users*/
16856
- 2 && hi(t, "--x", parseFloat(
16865
+ ), I[0] & /*users*/
16866
+ 2 && Ye(
16867
+ t,
16868
+ "--color25",
16869
+ /*user*/
16870
+ e[29].color + "25"
16871
+ ), I[0] & /*users*/
16872
+ 2 && Ye(
16873
+ t,
16874
+ "--color75",
16875
+ /*user*/
16876
+ e[29].color + "75"
16877
+ ), I[0] & /*users*/
16878
+ 2 && Ye(t, "--x", parseFloat(
16857
16879
  /*user*/
16858
16880
  e[29].x
16859
- ) + "vw"), A[0] & /*users*/
16860
- 2 && hi(t, "--y", parseFloat(
16881
+ ) + "vw"), I[0] & /*users*/
16882
+ 2 && Ye(t, "--y", parseFloat(
16861
16883
  /*user*/
16862
16884
  e[29].y
16863
16885
  ) + "vh");
@@ -16875,7 +16897,7 @@ function Dl(i) {
16875
16897
  );
16876
16898
  return {
16877
16899
  c() {
16878
- e = Ye("div"), t && t.c(), z(e, "id", "liveroom-client-element"), z(e, "class", "svelte-1g24uwa");
16900
+ e = Xe("div"), t && t.c(), G(e, "id", "liveroom-client-element"), G(e, "class", "svelte-pjz0tt");
16879
16901
  },
16880
16902
  m(n, s) {
16881
16903
  Nn(n, e, s), t && t.m(e, null);
@@ -16885,8 +16907,8 @@ function Dl(i) {
16885
16907
  n[0] && /*users*/
16886
16908
  n[1] ? t ? t.p(n, s) : (t = jr(n), t.c(), t.m(e, null)) : t && (t.d(1), t = null);
16887
16909
  },
16888
- i: Gi,
16889
- o: Gi,
16910
+ i: Wi,
16911
+ o: Wi,
16890
16912
  d(n) {
16891
16913
  n && nn(e), t && t.d();
16892
16914
  }
@@ -16900,10 +16922,10 @@ function _s(i, e) {
16900
16922
  }
16901
16923
  function Ml(i, e, t) {
16902
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;
16903
- zo(async () => {
16925
+ Go(async () => {
16904
16926
  console.log(`[Liveroom] Starting in room '${r}' (user name: '${a}')... (v${n})`), j();
16905
16927
  }), Ko(() => {
16906
- he(), di();
16928
+ he(), li();
16907
16929
  });
16908
16930
  async function Q() {
16909
16931
  if (console.log("[LiveKit] Beginning setup..."), t(9, u = new Co({ dynacast: !0 }).on(P.TrackSubscribed, async (O, oe, ce) => {
@@ -16946,7 +16968,7 @@ function Ml(i, e, t) {
16946
16968
  },
16947
16969
  socketOptions: { logger: null }
16948
16970
  }), c.addEventListener("wheel-from-another-user", ({ detail: { delta_x: O, delta_y: oe, x: ce, y: Ae } }) => {
16949
- const Oe = parseInt(O), Z = parseInt(oe), gt = new WheelEvent(
16971
+ const Oe = parseInt(O), Z = parseInt(oe), vt = new WheelEvent(
16950
16972
  "wheel",
16951
16973
  {
16952
16974
  view: window,
@@ -16960,7 +16982,7 @@ function Ml(i, e, t) {
16960
16982
  }
16961
16983
  ), on = document.head.contains(f);
16962
16984
  on && document.head.removeChild(f);
16963
- const ie = document.elementFromPoint(gt.clientX, gt.clientY);
16985
+ const ie = document.elementFromPoint(vt.clientX, vt.clientY);
16964
16986
  on && document.head.appendChild(f), (ie instanceof HTMLElement || ie instanceof SVGElement) && (Math.abs(Z) >= Math.abs(Oe) ? _s(ie, "vertical").scrollBy({
16965
16987
  top: Z,
16966
16988
  left: 0,
@@ -17012,12 +17034,12 @@ function Ml(i, e, t) {
17012
17034
  function K() {
17013
17035
  c && (p != null && p.id) && c.dispatchEvent(new CustomEvent("mouse_up", { detail: { user_id: p.id } }));
17014
17036
  }
17015
- const A = ["Shift"];
17037
+ const I = ["Shift"];
17016
17038
  function F(O) {
17017
- !O.repeat && A.includes(O.key) && c && (p != null && p.id) && c.dispatchEvent(new CustomEvent("key_down", { detail: { key: O.key, user_id: p.id } }));
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 } }));
17018
17040
  }
17019
17041
  function fe(O) {
17020
- A.includes(O.key) && c && (p != null && p.id) && c.dispatchEvent(new CustomEvent("key_up", { detail: { key: O.key, user_id: p.id } }));
17042
+ I.includes(O.key) && c && (p != null && p.id) && c.dispatchEvent(new CustomEvent("key_up", { detail: { key: O.key, user_id: p.id } }));
17021
17043
  }
17022
17044
  function Ie() {
17023
17045
  c && (p != null && p.id) && c.dispatchEvent(new CustomEvent(
@@ -17034,7 +17056,7 @@ function Ml(i, e, t) {
17034
17056
  function rn() {
17035
17057
  document.head.appendChild(h), document.head.appendChild(f), t(10, d = !0);
17036
17058
  }
17037
- function di() {
17059
+ function li() {
17038
17060
  document.head.removeChild(h), document.head.removeChild(f), t(10, d = !1);
17039
17061
  }
17040
17062
  function an(O, oe) {
@@ -17048,8 +17070,8 @@ function Ml(i, e, t) {
17048
17070
  i.$$.dirty[0] & /*livekitRoom, me, users, livekit_ws_url, livekit_token*/
17049
17071
  6659 && !u && p && b && T && w && Q(), i.$$.dirty[0] & /*users*/
17050
17072
  2 && t(3, M = Object.keys(b || {}).length), i.$$.dirty[0] & /*isClickBlocked, users*/
17051
- 1026 && !d && b && Object.values(b).some((O) => O.type == "admin" && O.is_space_key_down) && rn(), i.$$.dirty[0] & /*isClickBlocked, users*/
17052
- 1026 && d && b && Object.values(b).filter((O) => O.type == "admin").every((O) => !O.is_space_key_down) && di();
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();
17053
17075
  }, [
17054
17076
  p,
17055
17077
  b,
@@ -17090,31 +17112,31 @@ class Ul extends cc {
17090
17112
  return this.$$.ctx[5];
17091
17113
  }
17092
17114
  set version(e) {
17093
- this.$$set({ version: e }), ii();
17115
+ this.$$set({ version: e }), ni();
17094
17116
  }
17095
17117
  get url() {
17096
17118
  return this.$$.ctx[6];
17097
17119
  }
17098
17120
  set url(e) {
17099
- this.$$set({ url: e }), ii();
17121
+ this.$$set({ url: e }), ni();
17100
17122
  }
17101
17123
  get room_id() {
17102
17124
  return this.$$.ctx[4];
17103
17125
  }
17104
17126
  set room_id(e) {
17105
- this.$$set({ room_id: e }), ii();
17127
+ this.$$set({ room_id: e }), ni();
17106
17128
  }
17107
17129
  get user_name() {
17108
17130
  return this.$$.ctx[7];
17109
17131
  }
17110
17132
  set user_name(e) {
17111
- this.$$set({ user_name: e }), ii();
17133
+ this.$$set({ user_name: e }), ni();
17112
17134
  }
17113
17135
  get user_color() {
17114
17136
  return this.$$.ctx[8];
17115
17137
  }
17116
17138
  set user_color(e) {
17117
- this.$$set({ user_color: e }), ii();
17139
+ this.$$set({ user_color: e }), ni();
17118
17140
  }
17119
17141
  }
17120
17142
  customElements.define("liveroom-client-element", oc(Ul, { version: {}, url: {}, room_id: {}, user_name: {}, user_color: {} }, [], [], !0));