liveroom-client-element 0.0.36 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{constants-d9d958c9.cjs → constants-1daee1cc.cjs} +1 -1
- package/dist/{constants-0103de6d.js → constants-1eb22898.js} +1 -1
- package/dist/liveroom-client-element.cjs +7 -7
- package/dist/liveroom-client-element.js +526 -526
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
var
|
|
4
|
-
import { a as Fo, c as Bo } from "./constants-
|
|
5
|
-
function
|
|
3
|
+
var N = (i, e, t) => (Uo(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { a as Fo, c as Bo } from "./constants-1eb22898.js";
|
|
5
|
+
function Wi() {
|
|
6
6
|
}
|
|
7
7
|
function $r(i) {
|
|
8
8
|
return i();
|
|
@@ -22,7 +22,7 @@ function Jo(i, e) {
|
|
|
22
22
|
function jo(i) {
|
|
23
23
|
return Object.keys(i).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Le(i, e) {
|
|
26
26
|
i.appendChild(e);
|
|
27
27
|
}
|
|
28
28
|
function Vo(i, e, t) {
|
|
@@ -43,13 +43,13 @@ function $o(i) {
|
|
|
43
43
|
) : i.ownerDocument;
|
|
44
44
|
}
|
|
45
45
|
function qo(i, e) {
|
|
46
|
-
return
|
|
46
|
+
return Le(
|
|
47
47
|
/** @type {Document} */
|
|
48
48
|
i.head || i,
|
|
49
49
|
e
|
|
50
50
|
), e.sheet;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Ln(i, e, t) {
|
|
53
53
|
i.insertBefore(e, t || null);
|
|
54
54
|
}
|
|
55
55
|
function nn(i) {
|
|
@@ -61,26 +61,26 @@ function Ye(i) {
|
|
|
61
61
|
function qs(i) {
|
|
62
62
|
return document.createElementNS("http://www.w3.org/2000/svg", i);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function zr(i) {
|
|
65
65
|
return document.createTextNode(i);
|
|
66
66
|
}
|
|
67
67
|
function cn() {
|
|
68
|
-
return
|
|
68
|
+
return zr(" ");
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function G(i, e, t) {
|
|
71
71
|
t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function zo(i) {
|
|
74
74
|
return Array.from(i.childNodes);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Ho(i, e) {
|
|
77
77
|
e = "" + e, i.data !== e && (i.data = /** @type {string} */
|
|
78
78
|
e);
|
|
79
79
|
}
|
|
80
80
|
function hi(i, e, t, n) {
|
|
81
81
|
t == null ? i.style.removeProperty(e) : i.style.setProperty(e, t, n ? "important" : "");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Wo(i) {
|
|
84
84
|
const e = {};
|
|
85
85
|
return i.childNodes.forEach(
|
|
86
86
|
/** @param {Element} node */
|
|
@@ -89,24 +89,24 @@ function Go(i) {
|
|
|
89
89
|
}
|
|
90
90
|
), e;
|
|
91
91
|
}
|
|
92
|
-
let
|
|
92
|
+
let Gi;
|
|
93
93
|
function Fi(i) {
|
|
94
|
-
|
|
94
|
+
Gi = i;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
if (!
|
|
96
|
+
function Hr() {
|
|
97
|
+
if (!Gi)
|
|
98
98
|
throw new Error("Function called outside component initialization");
|
|
99
|
-
return
|
|
99
|
+
return Gi;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
101
|
+
function Go(i) {
|
|
102
|
+
Hr().$$.on_mount.push(i);
|
|
103
103
|
}
|
|
104
104
|
function Ko(i) {
|
|
105
|
-
|
|
105
|
+
Hr().$$.on_destroy.push(i);
|
|
106
106
|
}
|
|
107
107
|
const mi = [], is = [];
|
|
108
108
|
let yi = [];
|
|
109
|
-
const
|
|
109
|
+
const zs = [], Yo = /* @__PURE__ */ Promise.resolve();
|
|
110
110
|
let ns = !1;
|
|
111
111
|
function Xo() {
|
|
112
112
|
ns || (ns = !0, Yo.then(ii));
|
|
@@ -119,7 +119,7 @@ let fi = 0;
|
|
|
119
119
|
function ii() {
|
|
120
120
|
if (fi !== 0)
|
|
121
121
|
return;
|
|
122
|
-
const i =
|
|
122
|
+
const i = Gi;
|
|
123
123
|
do {
|
|
124
124
|
try {
|
|
125
125
|
for (; fi < mi.length; ) {
|
|
@@ -137,8 +137,8 @@ function ii() {
|
|
|
137
137
|
}
|
|
138
138
|
yi.length = 0;
|
|
139
139
|
} while (mi.length);
|
|
140
|
-
for (;
|
|
141
|
-
|
|
140
|
+
for (; zs.length; )
|
|
141
|
+
zs.pop()();
|
|
142
142
|
ns = !1, $n.clear(), Fi(i);
|
|
143
143
|
}
|
|
144
144
|
function Qo(i) {
|
|
@@ -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
|
|
156
|
+
function Wr(i, e) {
|
|
157
157
|
i && i.i && (ec.delete(i), i.i(e));
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Hs(i) {
|
|
160
160
|
return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
|
|
161
161
|
}
|
|
162
162
|
function tc(i, e) {
|
|
@@ -175,7 +175,7 @@ function ic(i, e, t, n, s, r, a, o, c, u, d, h) {
|
|
|
175
175
|
}
|
|
176
176
|
const j = /* @__PURE__ */ new Set(), he = /* @__PURE__ */ new Set();
|
|
177
177
|
function ae(q) {
|
|
178
|
-
|
|
178
|
+
Wr(q, 1), q.m(o, d), a.set(q.key, q), d = q.first, p--;
|
|
179
179
|
}
|
|
180
180
|
for (; f && p; ) {
|
|
181
181
|
const q = w[p - 1], K = i[f - 1], A = q.key, F = K.key;
|
|
@@ -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 =
|
|
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:
|
|
214
|
+
update: Wi,
|
|
215
215
|
not_equal: s,
|
|
216
216
|
bound: $s(),
|
|
217
217
|
// lifecycle
|
|
@@ -234,36 +234,36 @@ function ac(i, e, t, n, s, r, a = null, o = [-1]) {
|
|
|
234
234
|
return u.ctx && s(u.ctx[h], u.ctx[h] = b) && (!u.skip_bound && u.bound[h] && u.bound[h](b), d && rc(i, h)), f;
|
|
235
235
|
}) : [], u.update(), d = !0, tn(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
236
236
|
if (e.hydrate) {
|
|
237
|
-
const h =
|
|
237
|
+
const h = zo(e.target);
|
|
238
238
|
u.fragment && u.fragment.l(h), h.forEach(nn);
|
|
239
239
|
} else
|
|
240
240
|
u.fragment && u.fragment.c();
|
|
241
|
-
e.intro &&
|
|
241
|
+
e.intro && Wr(i.$$.fragment), nc(i, e.target, e.anchor), ii();
|
|
242
242
|
}
|
|
243
243
|
Fi(c);
|
|
244
244
|
}
|
|
245
|
-
let
|
|
246
|
-
typeof HTMLElement == "function" && (
|
|
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 */
|
|
250
|
-
|
|
250
|
+
N(this, "$$ctor");
|
|
251
251
|
/** Slots */
|
|
252
|
-
|
|
252
|
+
N(this, "$$s");
|
|
253
253
|
/** The Svelte component instance */
|
|
254
|
-
|
|
254
|
+
N(this, "$$c");
|
|
255
255
|
/** Whether or not the custom element is connected */
|
|
256
|
-
|
|
256
|
+
N(this, "$$cn", !1);
|
|
257
257
|
/** Component props data */
|
|
258
|
-
|
|
258
|
+
N(this, "$$d", {});
|
|
259
259
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
260
|
-
|
|
260
|
+
N(this, "$$r", !1);
|
|
261
261
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
262
|
-
|
|
262
|
+
N(this, "$$p_d", {});
|
|
263
263
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
264
|
-
|
|
264
|
+
N(this, "$$l", {});
|
|
265
265
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
266
|
-
|
|
266
|
+
N(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
267
267
|
this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
268
268
|
}
|
|
269
269
|
addEventListener(e, t, n) {
|
|
@@ -286,14 +286,14 @@ typeof HTMLElement == "function" && (zr = class extends HTMLElement {
|
|
|
286
286
|
let a;
|
|
287
287
|
return {
|
|
288
288
|
c: function() {
|
|
289
|
-
a = Ye("slot"), r !== "default" &&
|
|
289
|
+
a = Ye("slot"), r !== "default" && G(a, "name", r);
|
|
290
290
|
},
|
|
291
291
|
/**
|
|
292
292
|
* @param {HTMLElement} target
|
|
293
293
|
* @param {HTMLElement} [anchor]
|
|
294
294
|
*/
|
|
295
295
|
m: function(u, d) {
|
|
296
|
-
|
|
296
|
+
Ln(u, a, d);
|
|
297
297
|
},
|
|
298
298
|
d: function(u) {
|
|
299
299
|
u && nn(a);
|
|
@@ -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 =
|
|
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
|
|
394
|
+
let a = class extends Gr {
|
|
395
395
|
constructor() {
|
|
396
396
|
super(i, t, s), this.$$p_d = e;
|
|
397
397
|
}
|
|
@@ -430,7 +430,7 @@ class cc {
|
|
|
430
430
|
*
|
|
431
431
|
* @type {any}
|
|
432
432
|
*/
|
|
433
|
-
|
|
433
|
+
N(this, "$$");
|
|
434
434
|
/**
|
|
435
435
|
* ### PRIVATE API
|
|
436
436
|
*
|
|
@@ -438,11 +438,11 @@ class cc {
|
|
|
438
438
|
*
|
|
439
439
|
* @type {any}
|
|
440
440
|
*/
|
|
441
|
-
|
|
441
|
+
N(this, "$$set");
|
|
442
442
|
}
|
|
443
443
|
/** @returns {void} */
|
|
444
444
|
$destroy() {
|
|
445
|
-
sc(this, 1), this.$destroy =
|
|
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
|
|
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);
|
|
@@ -489,8 +489,8 @@ const { isArray: dc } = Array, lc = Object.keys, Ki = (i) => {
|
|
|
489
489
|
};
|
|
490
490
|
class Ue {
|
|
491
491
|
constructor(e) {
|
|
492
|
-
|
|
493
|
-
|
|
492
|
+
N(this, "path");
|
|
493
|
+
N(this, "from");
|
|
494
494
|
this.path = e;
|
|
495
495
|
}
|
|
496
496
|
}
|
|
@@ -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
|
|
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;
|
|
@@ -534,11 +534,11 @@ const { isArray: Kr } = Array, te = (i, e) => {
|
|
|
534
534
|
else
|
|
535
535
|
throw new Error("NOT_FOUND");
|
|
536
536
|
return { val: i, obj: n, key: s };
|
|
537
|
-
}, sn = (i) => Kr(i.obj) && typeof i.key == "number",
|
|
537
|
+
}, sn = (i) => Kr(i.obj) && typeof i.key == "number", Nn = (i) => typeof i.obj == "object" && typeof i.key == "string";
|
|
538
538
|
class Is extends Ue {
|
|
539
539
|
constructor(t, n) {
|
|
540
540
|
super(t);
|
|
541
|
-
|
|
541
|
+
N(this, "value");
|
|
542
542
|
this.value = n;
|
|
543
543
|
}
|
|
544
544
|
op() {
|
|
@@ -568,7 +568,7 @@ class Is extends Ue {
|
|
|
568
568
|
toJson(t) {
|
|
569
569
|
return {
|
|
570
570
|
op: "add",
|
|
571
|
-
path:
|
|
571
|
+
path: W(this.path),
|
|
572
572
|
value: this.value
|
|
573
573
|
};
|
|
574
574
|
}
|
|
@@ -582,7 +582,7 @@ class Is extends Ue {
|
|
|
582
582
|
class Yr extends Ue {
|
|
583
583
|
constructor(t, n) {
|
|
584
584
|
super(t);
|
|
585
|
-
|
|
585
|
+
N(this, "oldValue");
|
|
586
586
|
this.oldValue = n;
|
|
587
587
|
}
|
|
588
588
|
op() {
|
|
@@ -595,12 +595,12 @@ class Yr extends Ue {
|
|
|
595
595
|
const n = te(t, this.path);
|
|
596
596
|
if (n.val === void 0)
|
|
597
597
|
throw new Error("NOT_FOUND");
|
|
598
|
-
return
|
|
598
|
+
return Nn(n) ? delete n.obj[n.key] : sn(n) ? n.val !== void 0 && n.obj.splice(n.key, 1) : t = null, { doc: t, old: n.val };
|
|
599
599
|
}
|
|
600
600
|
toJson(t) {
|
|
601
601
|
const n = {
|
|
602
602
|
op: "remove",
|
|
603
|
-
path:
|
|
603
|
+
path: W(this.path)
|
|
604
604
|
};
|
|
605
605
|
return this.oldValue !== void 0 && (n.oldValue = this.oldValue), n;
|
|
606
606
|
}
|
|
@@ -616,8 +616,8 @@ class Yr extends Ue {
|
|
|
616
616
|
class Sc extends Ue {
|
|
617
617
|
constructor(t, n, s) {
|
|
618
618
|
super(t);
|
|
619
|
-
|
|
620
|
-
|
|
619
|
+
N(this, "value");
|
|
620
|
+
N(this, "oldValue");
|
|
621
621
|
this.value = n, this.oldValue = s;
|
|
622
622
|
}
|
|
623
623
|
op() {
|
|
@@ -630,12 +630,12 @@ class Sc extends Ue {
|
|
|
630
630
|
const n = te(t, this.path);
|
|
631
631
|
if (n.val === void 0)
|
|
632
632
|
throw new Error("NOT_FOUND");
|
|
633
|
-
return
|
|
633
|
+
return Nn(n) ? n.obj[n.key] = this.value : sn(n) ? n.obj[n.key] = this.value : t = this.value, { doc: t, old: n.val };
|
|
634
634
|
}
|
|
635
635
|
toJson(t) {
|
|
636
636
|
const n = {
|
|
637
637
|
op: "replace",
|
|
638
|
-
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;
|
|
@@ -652,7 +652,7 @@ class Sc extends Ue {
|
|
|
652
652
|
class Cc extends Ue {
|
|
653
653
|
constructor(t, n) {
|
|
654
654
|
super(t);
|
|
655
|
-
|
|
655
|
+
N(this, "from");
|
|
656
656
|
this.from = n;
|
|
657
657
|
}
|
|
658
658
|
op() {
|
|
@@ -668,8 +668,8 @@ class Cc extends Ue {
|
|
|
668
668
|
toJson(t) {
|
|
669
669
|
return {
|
|
670
670
|
op: "move",
|
|
671
|
-
path:
|
|
672
|
-
from:
|
|
671
|
+
path: W(this.path),
|
|
672
|
+
from: W(this.from)
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
675
|
toCompact(t, n) {
|
|
@@ -682,7 +682,7 @@ class Cc extends Ue {
|
|
|
682
682
|
class wc extends Ue {
|
|
683
683
|
constructor(t, n) {
|
|
684
684
|
super(t);
|
|
685
|
-
|
|
685
|
+
N(this, "from");
|
|
686
686
|
this.from = n;
|
|
687
687
|
}
|
|
688
688
|
op() {
|
|
@@ -700,8 +700,8 @@ class wc extends Ue {
|
|
|
700
700
|
toJson(t) {
|
|
701
701
|
return {
|
|
702
702
|
op: "copy",
|
|
703
|
-
path:
|
|
704
|
-
from:
|
|
703
|
+
path: W(this.path),
|
|
704
|
+
from: W(this.from)
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
707
|
toCompact(t, n) {
|
|
@@ -747,8 +747,8 @@ const Pn = (i, e) => {
|
|
|
747
747
|
class Ec extends Ce {
|
|
748
748
|
constructor(t, n, s) {
|
|
749
749
|
super(t);
|
|
750
|
-
|
|
751
|
-
|
|
750
|
+
N(this, "value");
|
|
751
|
+
N(this, "not");
|
|
752
752
|
this.value = n, this.not = s;
|
|
753
753
|
}
|
|
754
754
|
op() {
|
|
@@ -767,7 +767,7 @@ class Ec extends Ce {
|
|
|
767
767
|
toJson(t) {
|
|
768
768
|
const n = {
|
|
769
769
|
op: "test",
|
|
770
|
-
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:
|
|
800
|
+
path: W(this.path)
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
803
|
toCompact(e, t) {
|
|
@@ -810,7 +810,7 @@ class Pc extends Ue {
|
|
|
810
810
|
class Rc extends Ue {
|
|
811
811
|
constructor(t, n) {
|
|
812
812
|
super(t);
|
|
813
|
-
|
|
813
|
+
N(this, "inc");
|
|
814
814
|
this.inc = n;
|
|
815
815
|
}
|
|
816
816
|
op() {
|
|
@@ -826,7 +826,7 @@ class Rc extends Ue {
|
|
|
826
826
|
toJson(t) {
|
|
827
827
|
return {
|
|
828
828
|
op: "inc",
|
|
829
|
-
path:
|
|
829
|
+
path: W(this.path),
|
|
830
830
|
inc: this.inc
|
|
831
831
|
};
|
|
832
832
|
}
|
|
@@ -840,8 +840,8 @@ class Rc extends Ue {
|
|
|
840
840
|
class _c extends Ue {
|
|
841
841
|
constructor(t, n, s) {
|
|
842
842
|
super(t);
|
|
843
|
-
|
|
844
|
-
|
|
843
|
+
N(this, "pos");
|
|
844
|
+
N(this, "str");
|
|
845
845
|
this.pos = n, this.str = s;
|
|
846
846
|
}
|
|
847
847
|
op() {
|
|
@@ -864,7 +864,7 @@ class _c extends Ue {
|
|
|
864
864
|
toJson(t) {
|
|
865
865
|
return {
|
|
866
866
|
op: "str_ins",
|
|
867
|
-
path:
|
|
867
|
+
path: W(this.path),
|
|
868
868
|
pos: this.pos,
|
|
869
869
|
str: this.str
|
|
870
870
|
};
|
|
@@ -879,9 +879,9 @@ class _c extends Ue {
|
|
|
879
879
|
class Ic extends Ue {
|
|
880
880
|
constructor(t, n, s, r) {
|
|
881
881
|
super(t);
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
882
|
+
N(this, "pos");
|
|
883
|
+
N(this, "str");
|
|
884
|
+
N(this, "len");
|
|
885
885
|
this.pos = n, this.str = s, this.len = r;
|
|
886
886
|
}
|
|
887
887
|
op() {
|
|
@@ -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:
|
|
906
|
+
path: W(this.path),
|
|
907
907
|
pos: this.pos,
|
|
908
908
|
str: this.str
|
|
909
909
|
} : {
|
|
910
910
|
op: "str_del",
|
|
911
|
-
path:
|
|
911
|
+
path: W(this.path),
|
|
912
912
|
pos: this.pos,
|
|
913
913
|
len: this.len
|
|
914
914
|
};
|
|
@@ -926,11 +926,11 @@ const { isArray: Ac } = Array, rs = (i) => !!i && typeof i == "object" && typeof
|
|
|
926
926
|
const t = new RegExp(i, e ? "i" : void 0);
|
|
927
927
|
return (n) => t.test(n);
|
|
928
928
|
};
|
|
929
|
-
class
|
|
929
|
+
class xc extends Ue {
|
|
930
930
|
constructor(t, n, s) {
|
|
931
931
|
super(t);
|
|
932
|
-
|
|
933
|
-
|
|
932
|
+
N(this, "pos");
|
|
933
|
+
N(this, "props");
|
|
934
934
|
this.pos = n, this.props = s;
|
|
935
935
|
}
|
|
936
936
|
op() {
|
|
@@ -944,7 +944,7 @@ class Lc extends Ue {
|
|
|
944
944
|
if (n.val === void 0)
|
|
945
945
|
throw new Error("NOT_FOUND");
|
|
946
946
|
const s = this.split(n.val);
|
|
947
|
-
return
|
|
947
|
+
return Nn(n) ? n.obj[n.key] = s : sn(n) ? (n.obj[n.key] = s[0], n.obj.splice(n.key + 1, 0, s[1])) : t = s, { doc: t, old: n.val };
|
|
948
948
|
}
|
|
949
949
|
split(t) {
|
|
950
950
|
if (typeof t == "string") {
|
|
@@ -996,7 +996,7 @@ class Lc extends Ue {
|
|
|
996
996
|
toJson(t) {
|
|
997
997
|
const n = {
|
|
998
998
|
op: "split",
|
|
999
|
-
path:
|
|
999
|
+
path: W(this.path),
|
|
1000
1000
|
pos: this.pos
|
|
1001
1001
|
};
|
|
1002
1002
|
return this.props && (n.props = this.props), n;
|
|
@@ -1009,11 +1009,11 @@ class Lc extends Ue {
|
|
|
1009
1009
|
t.encodeArrayHeader(this.props ? 4 : 3), t.writer.u8(10), t.encodeArray(this.path), t.encodeNumber(this.pos), this.props && t.encodeObject(this.props);
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
class
|
|
1012
|
+
class Lc extends Ue {
|
|
1013
1013
|
constructor(t, n, s) {
|
|
1014
1014
|
super(t);
|
|
1015
|
-
|
|
1016
|
-
|
|
1015
|
+
N(this, "pos");
|
|
1016
|
+
N(this, "props");
|
|
1017
1017
|
this.pos = n, this.props = s;
|
|
1018
1018
|
}
|
|
1019
1019
|
op() {
|
|
@@ -1037,7 +1037,7 @@ class Nc extends Ue {
|
|
|
1037
1037
|
toJson(t) {
|
|
1038
1038
|
const n = {
|
|
1039
1039
|
op: "merge",
|
|
1040
|
-
path:
|
|
1040
|
+
path: W(this.path),
|
|
1041
1041
|
pos: this.pos
|
|
1042
1042
|
};
|
|
1043
1043
|
return this.props && (n.props = this.props), n;
|
|
@@ -1050,12 +1050,12 @@ class Nc extends Ue {
|
|
|
1050
1050
|
t.encodeArrayHeader(this.props ? 4 : 3), t.writer.u8(11), t.encodeArray(this.path), t.encodeNumber(this.pos), this.props && t.encodeAny(this.props);
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
const { isArray:
|
|
1053
|
+
const { isArray: Nc } = Array;
|
|
1054
1054
|
class Dc extends Ue {
|
|
1055
1055
|
constructor(t, n, s) {
|
|
1056
1056
|
super(t);
|
|
1057
|
-
|
|
1058
|
-
|
|
1057
|
+
N(this, "props");
|
|
1058
|
+
N(this, "deleteNull");
|
|
1059
1059
|
this.props = n, this.deleteNull = s;
|
|
1060
1060
|
}
|
|
1061
1061
|
op() {
|
|
@@ -1066,10 +1066,10 @@ class Dc extends Ue {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
apply(t) {
|
|
1068
1068
|
const n = te(t, this.path);
|
|
1069
|
-
return sn(n) ? n.val !== void 0 && (n.obj[n.key] = this.extend(n.val)) :
|
|
1069
|
+
return sn(n) ? n.val !== void 0 && (n.obj[n.key] = this.extend(n.val)) : Nn(n) ? n.obj[n.key] = this.extend(n.val) : t = this.extend(t), { doc: t };
|
|
1070
1070
|
}
|
|
1071
1071
|
extend(t) {
|
|
1072
|
-
if (
|
|
1072
|
+
if (Nc(t) || typeof t != "object" || !t)
|
|
1073
1073
|
return t;
|
|
1074
1074
|
for (const [n, s] of Object.entries(this.props)) {
|
|
1075
1075
|
if (n === "__proto__")
|
|
@@ -1085,7 +1085,7 @@ class Dc extends Ue {
|
|
|
1085
1085
|
toJson(t) {
|
|
1086
1086
|
const n = {
|
|
1087
1087
|
op: "extend",
|
|
1088
|
-
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:
|
|
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:
|
|
1152
|
+
path: W(e ? this.path.slice(e.path.length) : this.path)
|
|
1153
1153
|
};
|
|
1154
1154
|
}
|
|
1155
1155
|
toCompact(e, t) {
|
|
@@ -1163,7 +1163,7 @@ const { isArray: Fc } = Array;
|
|
|
1163
1163
|
class Bc extends Ce {
|
|
1164
1164
|
constructor(t, n) {
|
|
1165
1165
|
super(t);
|
|
1166
|
-
|
|
1166
|
+
N(this, "type");
|
|
1167
1167
|
this.type = n;
|
|
1168
1168
|
}
|
|
1169
1169
|
op() {
|
|
@@ -1179,7 +1179,7 @@ class Bc extends Ce {
|
|
|
1179
1179
|
toJson(t) {
|
|
1180
1180
|
return {
|
|
1181
1181
|
op: "test_type",
|
|
1182
|
-
path:
|
|
1182
|
+
path: W(t ? this.path.slice(t.path.length) : this.path),
|
|
1183
1183
|
type: this.type
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
@@ -1193,9 +1193,9 @@ class Bc extends Ce {
|
|
|
1193
1193
|
class Jc extends Ce {
|
|
1194
1194
|
constructor(t, n, s, r) {
|
|
1195
1195
|
super(t);
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1196
|
+
N(this, "pos");
|
|
1197
|
+
N(this, "str");
|
|
1198
|
+
N(this, "not");
|
|
1199
1199
|
this.pos = n, this.str = s, this.not = r;
|
|
1200
1200
|
}
|
|
1201
1201
|
op() {
|
|
@@ -1214,7 +1214,7 @@ class Jc extends Ce {
|
|
|
1214
1214
|
toJson(t) {
|
|
1215
1215
|
const n = {
|
|
1216
1216
|
op: "test_string",
|
|
1217
|
-
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
|
};
|
|
@@ -1231,8 +1231,8 @@ class Jc extends Ce {
|
|
|
1231
1231
|
class jc extends Ce {
|
|
1232
1232
|
constructor(t, n, s) {
|
|
1233
1233
|
super(t);
|
|
1234
|
-
|
|
1235
|
-
|
|
1234
|
+
N(this, "len");
|
|
1235
|
+
N(this, "not");
|
|
1236
1236
|
this.len = n, this.not = s;
|
|
1237
1237
|
}
|
|
1238
1238
|
op() {
|
|
@@ -1251,7 +1251,7 @@ class jc extends Ce {
|
|
|
1251
1251
|
toJson(t) {
|
|
1252
1252
|
const n = {
|
|
1253
1253
|
op: "test_string_len",
|
|
1254
|
-
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;
|
|
@@ -1267,8 +1267,8 @@ class jc extends Ce {
|
|
|
1267
1267
|
class Vc extends Ce {
|
|
1268
1268
|
constructor(t, n, s) {
|
|
1269
1269
|
super(t);
|
|
1270
|
-
|
|
1271
|
-
|
|
1270
|
+
N(this, "value");
|
|
1271
|
+
N(this, "ignore_case");
|
|
1272
1272
|
this.value = n, this.ignore_case = s;
|
|
1273
1273
|
}
|
|
1274
1274
|
op() {
|
|
@@ -1287,7 +1287,7 @@ class Vc extends Ce {
|
|
|
1287
1287
|
toJson(t) {
|
|
1288
1288
|
const n = {
|
|
1289
1289
|
op: "contains",
|
|
1290
|
-
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;
|
|
@@ -1304,8 +1304,8 @@ class Vc extends Ce {
|
|
|
1304
1304
|
class $c extends Ce {
|
|
1305
1305
|
constructor(t, n, s) {
|
|
1306
1306
|
super(t);
|
|
1307
|
-
|
|
1308
|
-
|
|
1307
|
+
N(this, "value");
|
|
1308
|
+
N(this, "ignore_case");
|
|
1309
1309
|
this.value = n, this.ignore_case = s;
|
|
1310
1310
|
}
|
|
1311
1311
|
op() {
|
|
@@ -1324,7 +1324,7 @@ class $c extends Ce {
|
|
|
1324
1324
|
toJson(t) {
|
|
1325
1325
|
const n = {
|
|
1326
1326
|
op: "ends",
|
|
1327
|
-
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;
|
|
@@ -1341,8 +1341,8 @@ class $c extends Ce {
|
|
|
1341
1341
|
class qc extends Ce {
|
|
1342
1342
|
constructor(t, n, s) {
|
|
1343
1343
|
super(t);
|
|
1344
|
-
|
|
1345
|
-
|
|
1344
|
+
N(this, "value");
|
|
1345
|
+
N(this, "ignore_case");
|
|
1346
1346
|
this.value = n, this.ignore_case = s;
|
|
1347
1347
|
}
|
|
1348
1348
|
op() {
|
|
@@ -1361,7 +1361,7 @@ class qc extends Ce {
|
|
|
1361
1361
|
toJson(t) {
|
|
1362
1362
|
const n = {
|
|
1363
1363
|
op: "starts",
|
|
1364
|
-
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;
|
|
@@ -1375,10 +1375,10 @@ class qc extends Ce {
|
|
|
1375
1375
|
t.encodeArrayHeader(s ? 4 : 3), t.writer.u8(37), t.encodeArray(n ? this.path.slice(n.path.length) : this.path), t.encodeString(this.value), s && t.writer.u8(1);
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
|
-
class
|
|
1378
|
+
class zc extends Ce {
|
|
1379
1379
|
constructor(t, n) {
|
|
1380
1380
|
super(t);
|
|
1381
|
-
|
|
1381
|
+
N(this, "value");
|
|
1382
1382
|
this.value = n;
|
|
1383
1383
|
}
|
|
1384
1384
|
op() {
|
|
@@ -1397,7 +1397,7 @@ class Hc extends Ce {
|
|
|
1397
1397
|
toJson(t) {
|
|
1398
1398
|
return {
|
|
1399
1399
|
op: "in",
|
|
1400
|
-
path:
|
|
1400
|
+
path: W(t ? this.path.slice(t.path.length) : this.path),
|
|
1401
1401
|
value: this.value
|
|
1402
1402
|
};
|
|
1403
1403
|
}
|
|
@@ -1408,10 +1408,10 @@ 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
|
|
1411
|
+
class Hc extends Ce {
|
|
1412
1412
|
constructor(t, n) {
|
|
1413
1413
|
super(t);
|
|
1414
|
-
|
|
1414
|
+
N(this, "value");
|
|
1415
1415
|
this.value = n;
|
|
1416
1416
|
}
|
|
1417
1417
|
op() {
|
|
@@ -1427,7 +1427,7 @@ class Wc extends Ce {
|
|
|
1427
1427
|
toJson(t) {
|
|
1428
1428
|
return {
|
|
1429
1429
|
op: "less",
|
|
1430
|
-
path:
|
|
1430
|
+
path: W(t ? this.path.slice(t.path.length) : this.path),
|
|
1431
1431
|
value: this.value
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
@@ -1438,10 +1438,10 @@ 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
|
|
1441
|
+
class Wc extends Ce {
|
|
1442
1442
|
constructor(t, n) {
|
|
1443
1443
|
super(t);
|
|
1444
|
-
|
|
1444
|
+
N(this, "value");
|
|
1445
1445
|
this.value = n;
|
|
1446
1446
|
}
|
|
1447
1447
|
op() {
|
|
@@ -1457,7 +1457,7 @@ class Gc extends Ce {
|
|
|
1457
1457
|
toJson(t) {
|
|
1458
1458
|
return {
|
|
1459
1459
|
op: "more",
|
|
1460
|
-
path:
|
|
1460
|
+
path: W(t ? this.path.slice(t.path.length) : this.path),
|
|
1461
1461
|
value: this.value
|
|
1462
1462
|
};
|
|
1463
1463
|
}
|
|
@@ -1471,14 +1471,14 @@ class Gc extends Ce {
|
|
|
1471
1471
|
class As extends Ce {
|
|
1472
1472
|
constructor(t, n) {
|
|
1473
1473
|
super(t);
|
|
1474
|
-
|
|
1474
|
+
N(this, "ops");
|
|
1475
1475
|
this.ops = n;
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
|
-
class
|
|
1478
|
+
class Gc extends As {
|
|
1479
1479
|
constructor(t, n) {
|
|
1480
1480
|
super(t, n);
|
|
1481
|
-
|
|
1481
|
+
N(this, "ops");
|
|
1482
1482
|
this.ops = n;
|
|
1483
1483
|
}
|
|
1484
1484
|
op() {
|
|
@@ -1496,7 +1496,7 @@ class zc extends As {
|
|
|
1496
1496
|
toJson(t) {
|
|
1497
1497
|
return {
|
|
1498
1498
|
op: "and",
|
|
1499
|
-
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
|
}
|
|
@@ -1519,7 +1519,7 @@ class zc extends As {
|
|
|
1519
1519
|
class Kc extends As {
|
|
1520
1520
|
constructor(t, n) {
|
|
1521
1521
|
super(t, n);
|
|
1522
|
-
|
|
1522
|
+
N(this, "ops");
|
|
1523
1523
|
this.ops = n;
|
|
1524
1524
|
}
|
|
1525
1525
|
op() {
|
|
@@ -1537,7 +1537,7 @@ class Kc extends As {
|
|
|
1537
1537
|
toJson(t) {
|
|
1538
1538
|
return {
|
|
1539
1539
|
op: "or",
|
|
1540
|
-
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
|
}
|
|
@@ -1559,7 +1559,7 @@ class Kc extends As {
|
|
|
1559
1559
|
class Yc extends As {
|
|
1560
1560
|
constructor(t, n) {
|
|
1561
1561
|
super(t, n);
|
|
1562
|
-
|
|
1562
|
+
N(this, "ops");
|
|
1563
1563
|
this.ops = n;
|
|
1564
1564
|
}
|
|
1565
1565
|
op() {
|
|
@@ -1577,7 +1577,7 @@ class Yc extends As {
|
|
|
1577
1577
|
toJson(t) {
|
|
1578
1578
|
return {
|
|
1579
1579
|
op: "not",
|
|
1580
|
-
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
|
}
|
|
@@ -1599,9 +1599,9 @@ class Yc extends As {
|
|
|
1599
1599
|
class Xc extends Ce {
|
|
1600
1600
|
constructor(t, n, s, r) {
|
|
1601
1601
|
super(t);
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1602
|
+
N(this, "value");
|
|
1603
|
+
N(this, "ignore_case");
|
|
1604
|
+
N(this, "matcher");
|
|
1605
1605
|
this.value = n, this.ignore_case = s, this.matcher = r(n, s);
|
|
1606
1606
|
}
|
|
1607
1607
|
op() {
|
|
@@ -1617,7 +1617,7 @@ class Xc extends Ce {
|
|
|
1617
1617
|
toJson(t) {
|
|
1618
1618
|
const n = {
|
|
1619
1619
|
op: "matches",
|
|
1620
|
-
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;
|
|
@@ -1635,7 +1635,7 @@ const { isArray: Qc } = Array;
|
|
|
1635
1635
|
class Zc extends Ce {
|
|
1636
1636
|
constructor(t, n) {
|
|
1637
1637
|
super(t);
|
|
1638
|
-
|
|
1638
|
+
N(this, "value");
|
|
1639
1639
|
this.value = n;
|
|
1640
1640
|
}
|
|
1641
1641
|
op() {
|
|
@@ -1651,7 +1651,7 @@ class Zc extends Ce {
|
|
|
1651
1651
|
toJson(t) {
|
|
1652
1652
|
return {
|
|
1653
1653
|
op: "type",
|
|
1654
|
-
path:
|
|
1654
|
+
path: W(t ? this.path.slice(t.path.length) : this.path),
|
|
1655
1655
|
value: this.value
|
|
1656
1656
|
};
|
|
1657
1657
|
}
|
|
@@ -1683,9 +1683,9 @@ const eu = (i, e) => {
|
|
|
1683
1683
|
case "str_del":
|
|
1684
1684
|
return new Ic($(i.path), i.pos, i.str, i.len);
|
|
1685
1685
|
case "split":
|
|
1686
|
-
return new
|
|
1686
|
+
return new xc($(i.path), i.pos, i.props || null);
|
|
1687
1687
|
case "merge":
|
|
1688
|
-
return new
|
|
1688
|
+
return new Lc($(i.path), i.pos, i.props || null);
|
|
1689
1689
|
case "extend":
|
|
1690
1690
|
return new Dc($(i.path), i.props, !!i.deleteNull);
|
|
1691
1691
|
default:
|
|
@@ -1716,14 +1716,14 @@ const eu = (i, e) => {
|
|
|
1716
1716
|
case "matches":
|
|
1717
1717
|
return new Xc($(i.path), i.value, !!i.ignore_case, e.createMatcher || Oc);
|
|
1718
1718
|
case "in":
|
|
1719
|
-
return new
|
|
1719
|
+
return new zc($(i.path), i.value);
|
|
1720
1720
|
case "less":
|
|
1721
|
-
return new
|
|
1721
|
+
return new Hc($(i.path), i.value);
|
|
1722
1722
|
case "more":
|
|
1723
|
-
return new
|
|
1723
|
+
return new Wc($(i.path), i.value);
|
|
1724
1724
|
case "and": {
|
|
1725
1725
|
const t = $(i.path);
|
|
1726
|
-
return new
|
|
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,7 +1748,7 @@ function tu(i, e, t) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
var Bi = (i) => typeof i == "function" ? i : function() {
|
|
1750
1750
|
return i;
|
|
1751
|
-
}, iu = typeof self < "u" ? self : null, Di = typeof window < "u" ? window : null, Ji = iu || Di || Ji, nu = "2.0.0", Xe = { connecting: 0, open: 1, closing: 2, closed: 3 }, su = 1e4, ru = 1e3,
|
|
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, xe = {
|
|
1752
1752
|
closed: "closed",
|
|
1753
1753
|
errored: "errored",
|
|
1754
1754
|
joined: "joined",
|
|
@@ -1825,20 +1825,20 @@ var Bi = (i) => typeof i == "function" ? i : function() {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
}, ou = class {
|
|
1827
1827
|
constructor(i, e, t) {
|
|
1828
|
-
this.state =
|
|
1828
|
+
this.state = xe.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(() => {
|
|
1829
1829
|
this.socket.isConnected() && this.rejoin();
|
|
1830
1830
|
}, this.socket.rejoinAfterMs), this.stateChangeRefs.push(this.socket.onError(() => this.rejoinTimer.reset())), this.stateChangeRefs.push(this.socket.onOpen(() => {
|
|
1831
1831
|
this.rejoinTimer.reset(), this.isErrored() && this.rejoin();
|
|
1832
1832
|
})), this.joinPush.receive("ok", () => {
|
|
1833
|
-
this.state =
|
|
1833
|
+
this.state = xe.joined, this.rejoinTimer.reset(), this.pushBuffer.forEach((n) => n.send()), this.pushBuffer = [];
|
|
1834
1834
|
}), this.joinPush.receive("error", () => {
|
|
1835
|
-
this.state =
|
|
1835
|
+
this.state = xe.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
|
|
1836
1836
|
}), this.onClose(() => {
|
|
1837
|
-
this.rejoinTimer.reset(), this.socket.hasLogger() && this.socket.log("channel", `close ${this.topic} ${this.joinRef()}`), this.state =
|
|
1837
|
+
this.rejoinTimer.reset(), this.socket.hasLogger() && this.socket.log("channel", `close ${this.topic} ${this.joinRef()}`), this.state = xe.closed, this.socket.remove(this);
|
|
1838
1838
|
}), this.onError((n) => {
|
|
1839
|
-
this.socket.hasLogger() && this.socket.log("channel", `error ${this.topic}`, n), this.isJoining() && this.joinPush.reset(), this.state =
|
|
1839
|
+
this.socket.hasLogger() && this.socket.log("channel", `error ${this.topic}`, n), this.isJoining() && this.joinPush.reset(), this.state = xe.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 =
|
|
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 = xe.errored, this.joinPush.reset(), this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
|
|
1842
1842
|
}), this.on(yt.reply, (n, s) => {
|
|
1843
1843
|
this.trigger(this.replyEventName(s), n);
|
|
1844
1844
|
});
|
|
@@ -1873,7 +1873,7 @@ var Bi = (i) => typeof i == "function" ? i : function() {
|
|
|
1873
1873
|
return this.canPush() ? n.send() : (n.startTimeout(), this.pushBuffer.push(n)), n;
|
|
1874
1874
|
}
|
|
1875
1875
|
leave(i = this.timeout) {
|
|
1876
|
-
this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state =
|
|
1876
|
+
this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state = xe.leaving;
|
|
1877
1877
|
let e = () => {
|
|
1878
1878
|
this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(yt.close, "leave");
|
|
1879
1879
|
}, t = new un(this, yt.leave, Bi({}), i);
|
|
@@ -1889,7 +1889,7 @@ var Bi = (i) => typeof i == "function" ? i : function() {
|
|
|
1889
1889
|
return this.joinPush.ref;
|
|
1890
1890
|
}
|
|
1891
1891
|
rejoin(i = this.timeout) {
|
|
1892
|
-
this.isLeaving() || (this.socket.leaveOpenTopic(this.topic), this.state =
|
|
1892
|
+
this.isLeaving() || (this.socket.leaveOpenTopic(this.topic), this.state = xe.joining, this.joinPush.resend(i));
|
|
1893
1893
|
}
|
|
1894
1894
|
trigger(i, e, t, n) {
|
|
1895
1895
|
let s = this.onMessage(i, e, t, n);
|
|
@@ -1903,19 +1903,19 @@ var Bi = (i) => typeof i == "function" ? i : function() {
|
|
|
1903
1903
|
return `chan_reply_${i}`;
|
|
1904
1904
|
}
|
|
1905
1905
|
isClosed() {
|
|
1906
|
-
return this.state ===
|
|
1906
|
+
return this.state === xe.closed;
|
|
1907
1907
|
}
|
|
1908
1908
|
isErrored() {
|
|
1909
|
-
return this.state ===
|
|
1909
|
+
return this.state === xe.errored;
|
|
1910
1910
|
}
|
|
1911
1911
|
isJoined() {
|
|
1912
|
-
return this.state ===
|
|
1912
|
+
return this.state === xe.joined;
|
|
1913
1913
|
}
|
|
1914
1914
|
isJoining() {
|
|
1915
|
-
return this.state ===
|
|
1915
|
+
return this.state === xe.joining;
|
|
1916
1916
|
}
|
|
1917
1917
|
isLeaving() {
|
|
1918
|
-
return this.state ===
|
|
1918
|
+
return this.state === xe.leaving;
|
|
1919
1919
|
}
|
|
1920
1920
|
}, Rn = class {
|
|
1921
1921
|
static request(i, e, t, n, s, r, a) {
|
|
@@ -2378,7 +2378,7 @@ class uu {
|
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
2380
|
Promise.resolve();
|
|
2381
|
-
var
|
|
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
|
|
2396
|
+
var Gs;
|
|
2397
2397
|
(function(i) {
|
|
2398
2398
|
(function(e) {
|
|
2399
|
-
var t = typeof
|
|
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) {
|
|
@@ -2423,7 +2423,7 @@ var zs;
|
|
|
2423
2423
|
} : function(v, y) {
|
|
2424
2424
|
return v[y];
|
|
2425
2425
|
}
|
|
2426
|
-
}, d = Object.getPrototypeOf(Function), h = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", f = !h && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map :
|
|
2426
|
+
}, d = Object.getPrototypeOf(Function), h = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", f = !h && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Lo(), p = !h && typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : No(), b = !h && typeof WeakMap == "function" ? WeakMap : Do(), T = new b();
|
|
2427
2427
|
function w(v, y, S, E) {
|
|
2428
2428
|
if (Z(S)) {
|
|
2429
2429
|
if (!Bs(v))
|
|
@@ -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
|
|
2607
|
-
|
|
2606
|
+
var z = U[J], H = de.has(z);
|
|
2607
|
+
H || (de.add(z), B.push(z));
|
|
2608
2608
|
}
|
|
2609
|
-
for (var
|
|
2610
|
-
var
|
|
2611
|
-
|
|
2609
|
+
for (var Wt = 0, Vs = D; Wt < Vs.length; Wt++) {
|
|
2610
|
+
var z = Vs[Wt], H = de.has(z);
|
|
2611
|
+
H || (de.add(z), B.push(z));
|
|
2612
2612
|
}
|
|
2613
2613
|
return B;
|
|
2614
2614
|
}
|
|
@@ -2628,11 +2628,11 @@ var zs;
|
|
|
2628
2628
|
var U = Ao(J);
|
|
2629
2629
|
try {
|
|
2630
2630
|
S[B] = U;
|
|
2631
|
-
} catch (
|
|
2631
|
+
} catch (z) {
|
|
2632
2632
|
try {
|
|
2633
|
-
|
|
2633
|
+
xo(de);
|
|
2634
2634
|
} finally {
|
|
2635
|
-
throw
|
|
2635
|
+
throw z;
|
|
2636
2636
|
}
|
|
2637
2637
|
}
|
|
2638
2638
|
B++;
|
|
@@ -2781,7 +2781,7 @@ var zs;
|
|
|
2781
2781
|
var y = v.next();
|
|
2782
2782
|
return y.done ? !1 : y;
|
|
2783
2783
|
}
|
|
2784
|
-
function
|
|
2784
|
+
function xo(v) {
|
|
2785
2785
|
var y = v.return;
|
|
2786
2786
|
y && y.call(v);
|
|
2787
2787
|
}
|
|
@@ -2795,12 +2795,12 @@ var zs;
|
|
|
2795
2795
|
var D = E.constructor;
|
|
2796
2796
|
return typeof D != "function" || D === v ? y : D;
|
|
2797
2797
|
}
|
|
2798
|
-
function
|
|
2798
|
+
function Lo() {
|
|
2799
2799
|
var v = {}, y = [], S = (
|
|
2800
2800
|
/** @class */
|
|
2801
2801
|
function() {
|
|
2802
|
-
function B(J, U,
|
|
2803
|
-
this._index = 0, this._keys = J, this._values = U, this._selector =
|
|
2802
|
+
function B(J, U, z) {
|
|
2803
|
+
this._index = 0, this._keys = J, this._values = U, this._selector = z;
|
|
2804
2804
|
}
|
|
2805
2805
|
return B.prototype["@@iterator"] = function() {
|
|
2806
2806
|
return this;
|
|
@@ -2846,12 +2846,12 @@ var zs;
|
|
|
2846
2846
|
);
|
|
2847
2847
|
return U >= 0 ? this._values[U] : void 0;
|
|
2848
2848
|
}, B.prototype.set = function(J, U) {
|
|
2849
|
-
var
|
|
2849
|
+
var z = this._find(
|
|
2850
2850
|
J,
|
|
2851
2851
|
/*insert*/
|
|
2852
2852
|
!0
|
|
2853
2853
|
);
|
|
2854
|
-
return this._values[
|
|
2854
|
+
return this._values[z] = U, this;
|
|
2855
2855
|
}, B.prototype.delete = function(J) {
|
|
2856
2856
|
var U = this._find(
|
|
2857
2857
|
J,
|
|
@@ -2859,8 +2859,8 @@ var zs;
|
|
|
2859
2859
|
!1
|
|
2860
2860
|
);
|
|
2861
2861
|
if (U >= 0) {
|
|
2862
|
-
for (var
|
|
2863
|
-
this._keys[
|
|
2862
|
+
for (var z = this._keys.length, H = U + 1; H < z; H++)
|
|
2863
|
+
this._keys[H - 1] = this._keys[H], this._values[H - 1] = this._values[H];
|
|
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;
|
|
@@ -2891,7 +2891,7 @@ var zs;
|
|
|
2891
2891
|
return [B, J];
|
|
2892
2892
|
}
|
|
2893
2893
|
}
|
|
2894
|
-
function
|
|
2894
|
+
function No() {
|
|
2895
2895
|
return (
|
|
2896
2896
|
/** @class */
|
|
2897
2897
|
function() {
|
|
@@ -2934,34 +2934,34 @@ var zs;
|
|
|
2934
2934
|
function U() {
|
|
2935
2935
|
this._key = E();
|
|
2936
2936
|
}
|
|
2937
|
-
return U.prototype.has = function(
|
|
2938
|
-
var
|
|
2939
|
-
|
|
2937
|
+
return U.prototype.has = function(z) {
|
|
2938
|
+
var H = D(
|
|
2939
|
+
z,
|
|
2940
2940
|
/*create*/
|
|
2941
2941
|
!1
|
|
2942
2942
|
);
|
|
2943
|
-
return
|
|
2944
|
-
}, U.prototype.get = function(
|
|
2945
|
-
var
|
|
2946
|
-
|
|
2943
|
+
return H !== void 0 ? u.has(H, this._key) : !1;
|
|
2944
|
+
}, U.prototype.get = function(z) {
|
|
2945
|
+
var H = D(
|
|
2946
|
+
z,
|
|
2947
2947
|
/*create*/
|
|
2948
2948
|
!1
|
|
2949
2949
|
);
|
|
2950
|
-
return
|
|
2951
|
-
}, U.prototype.set = function(
|
|
2952
|
-
var
|
|
2953
|
-
|
|
2950
|
+
return H !== void 0 ? u.get(H, this._key) : void 0;
|
|
2951
|
+
}, U.prototype.set = function(z, H) {
|
|
2952
|
+
var Wt = D(
|
|
2953
|
+
z,
|
|
2954
2954
|
/*create*/
|
|
2955
2955
|
!0
|
|
2956
2956
|
);
|
|
2957
|
-
return
|
|
2958
|
-
}, U.prototype.delete = function(
|
|
2959
|
-
var
|
|
2960
|
-
|
|
2957
|
+
return Wt[this._key] = H, this;
|
|
2958
|
+
}, U.prototype.delete = function(z) {
|
|
2959
|
+
var H = D(
|
|
2960
|
+
z,
|
|
2961
2961
|
/*create*/
|
|
2962
2962
|
!1
|
|
2963
2963
|
);
|
|
2964
|
-
return
|
|
2964
|
+
return H !== void 0 ? delete H[this._key] : !1;
|
|
2965
2965
|
}, U.prototype.clear = function() {
|
|
2966
2966
|
this._key = E();
|
|
2967
2967
|
}, U;
|
|
@@ -2974,17 +2974,17 @@ var zs;
|
|
|
2974
2974
|
while (u.has(y, U));
|
|
2975
2975
|
return y[U] = !0, U;
|
|
2976
2976
|
}
|
|
2977
|
-
function D(U,
|
|
2977
|
+
function D(U, z) {
|
|
2978
2978
|
if (!t.call(U, S)) {
|
|
2979
|
-
if (!
|
|
2979
|
+
if (!z)
|
|
2980
2980
|
return;
|
|
2981
2981
|
Object.defineProperty(U, S, { value: u.create() });
|
|
2982
2982
|
}
|
|
2983
2983
|
return U[S];
|
|
2984
2984
|
}
|
|
2985
|
-
function de(U,
|
|
2986
|
-
for (var
|
|
2987
|
-
U[
|
|
2985
|
+
function de(U, z) {
|
|
2986
|
+
for (var H = 0; H < z; ++H)
|
|
2987
|
+
U[H] = Math.random() * 255 | 0;
|
|
2988
2988
|
return U;
|
|
2989
2989
|
}
|
|
2990
2990
|
function B(U) {
|
|
@@ -2993,18 +2993,18 @@ 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
|
|
2997
|
-
var
|
|
2998
|
-
(
|
|
2996
|
+
for (var z = "", H = 0; H < v; ++H) {
|
|
2997
|
+
var Wt = U[H];
|
|
2998
|
+
(H === 4 || H === 6 || H === 8) && (z += "-"), Wt < 16 && (z += "0"), z += Wt.toString(16).toLowerCase();
|
|
2999
2999
|
}
|
|
3000
|
-
return
|
|
3000
|
+
return z;
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
3003
|
function Vn(v) {
|
|
3004
3004
|
return v.__ = void 0, delete v.__, v;
|
|
3005
3005
|
}
|
|
3006
3006
|
});
|
|
3007
|
-
})(
|
|
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) {
|
|
@@ -3385,7 +3385,7 @@ function Su() {
|
|
|
3385
3385
|
}
|
|
3386
3386
|
throw new Error("invalid varint");
|
|
3387
3387
|
}
|
|
3388
|
-
function
|
|
3388
|
+
function zn(i, e, t) {
|
|
3389
3389
|
for (let r = 0; r < 28; r = r + 7) {
|
|
3390
3390
|
const a = i >>> r, o = !(!(a >>> 7) && e == 0), c = (o ? a | 128 : a) & 255;
|
|
3391
3391
|
if (t.push(c), !o)
|
|
@@ -3690,21 +3690,21 @@ class Ru {
|
|
|
3690
3690
|
*/
|
|
3691
3691
|
int64(e) {
|
|
3692
3692
|
let t = V.enc(e);
|
|
3693
|
-
return
|
|
3693
|
+
return zn(t.lo, t.hi, this.buf), this;
|
|
3694
3694
|
}
|
|
3695
3695
|
/**
|
|
3696
3696
|
* Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.
|
|
3697
3697
|
*/
|
|
3698
3698
|
sint64(e) {
|
|
3699
3699
|
let t = V.enc(e), n = t.hi >> 31, s = t.lo << 1 ^ n, r = (t.hi << 1 | t.lo >>> 31) ^ n;
|
|
3700
|
-
return
|
|
3700
|
+
return zn(s, r, this.buf), this;
|
|
3701
3701
|
}
|
|
3702
3702
|
/**
|
|
3703
3703
|
* Write a `uint64` value, an unsigned 64-bit varint.
|
|
3704
3704
|
*/
|
|
3705
3705
|
uint64(e) {
|
|
3706
3706
|
let t = V.uEnc(e);
|
|
3707
|
-
return
|
|
3707
|
+
return zn(t.lo, t.hi, this.buf), this;
|
|
3708
3708
|
}
|
|
3709
3709
|
}
|
|
3710
3710
|
class _u {
|
|
@@ -3850,7 +3850,7 @@ function ds(i, e) {
|
|
|
3850
3850
|
return e instanceof I || !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
|
|
3853
|
+
function Gt(i, e, t) {
|
|
3854
3854
|
if (e === t)
|
|
3855
3855
|
return !0;
|
|
3856
3856
|
if (i == k.BYTES) {
|
|
@@ -4004,7 +4004,7 @@ function Ou() {
|
|
|
4004
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])));
|
|
4005
4005
|
break;
|
|
4006
4006
|
case "map":
|
|
4007
|
-
let [b, T] =
|
|
4007
|
+
let [b, T] = xu(c, e, n);
|
|
4008
4008
|
u[h][b] = T;
|
|
4009
4009
|
break;
|
|
4010
4010
|
}
|
|
@@ -4015,7 +4015,7 @@ function Ou() {
|
|
|
4015
4015
|
function yn(i, e, t) {
|
|
4016
4016
|
return e.getType().runtime.bin.readMessage(e, i, i.uint32(), t), e;
|
|
4017
4017
|
}
|
|
4018
|
-
function
|
|
4018
|
+
function xu(i, e, t) {
|
|
4019
4019
|
const n = e.uint32(), s = e.pos + n;
|
|
4020
4020
|
let r, a;
|
|
4021
4021
|
for (; e.pos < s; ) {
|
|
@@ -4091,7 +4091,7 @@ function ji(i, e) {
|
|
|
4091
4091
|
return i.sint32();
|
|
4092
4092
|
}
|
|
4093
4093
|
}
|
|
4094
|
-
function
|
|
4094
|
+
function Lu(i, e, t, n, s) {
|
|
4095
4095
|
i.tag(t.no, se.LengthDelimited), i.fork();
|
|
4096
4096
|
let r = n;
|
|
4097
4097
|
switch (t.K) {
|
|
@@ -4129,7 +4129,7 @@ function Vi(i, e, t, n, s) {
|
|
|
4129
4129
|
let [r, a, o] = oa(e, n);
|
|
4130
4130
|
(!o || s) && i.tag(t, r)[a](n);
|
|
4131
4131
|
}
|
|
4132
|
-
function
|
|
4132
|
+
function Nu(i, e, t, n) {
|
|
4133
4133
|
if (!n.length)
|
|
4134
4134
|
return;
|
|
4135
4135
|
i.tag(t, se.LengthDelimited).fork();
|
|
@@ -4157,7 +4157,7 @@ function Du() {
|
|
|
4157
4157
|
let c = s.kind == "enum" ? k.INT32 : s.T;
|
|
4158
4158
|
if (a)
|
|
4159
4159
|
if (s.packed)
|
|
4160
|
-
|
|
4160
|
+
Nu(e, c, s.no, r);
|
|
4161
4161
|
else
|
|
4162
4162
|
for (const u of r)
|
|
4163
4163
|
Vi(e, c, s.no, u, !0);
|
|
@@ -4173,7 +4173,7 @@ function Du() {
|
|
|
4173
4173
|
break;
|
|
4174
4174
|
case "map":
|
|
4175
4175
|
for (const [u, d] of Object.entries(r))
|
|
4176
|
-
|
|
4176
|
+
Lu(e, t, s, u, d);
|
|
4177
4177
|
break;
|
|
4178
4178
|
}
|
|
4179
4179
|
}
|
|
@@ -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 =
|
|
4314
|
+
if (b = Hn(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 =
|
|
4343
|
+
if (T = Hn(u.V.T, b, s.ignoreUnknownFields), T === void 0)
|
|
4344
4344
|
continue;
|
|
4345
4345
|
break;
|
|
4346
4346
|
case "scalar":
|
|
@@ -4371,7 +4371,7 @@ function Fu(i) {
|
|
|
4371
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])));
|
|
4372
4372
|
break;
|
|
4373
4373
|
case "enum":
|
|
4374
|
-
const p =
|
|
4374
|
+
const p = Hn(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
|
|
4499
|
+
function Hn(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) =>
|
|
4675
|
+
return s.every((a, o) => Gt(n.T, a, r[o]));
|
|
4676
4676
|
case "enum":
|
|
4677
|
-
return s.every((a, o) =>
|
|
4677
|
+
return s.every((a, o) => Gt(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
|
|
4685
|
+
return Gt(k.INT32, s, r);
|
|
4686
4686
|
case "scalar":
|
|
4687
|
-
return
|
|
4687
|
+
return Gt(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
|
|
4698
|
+
return Gt(k.INT32, s.value, r.value);
|
|
4699
4699
|
case "scalar":
|
|
4700
|
-
return
|
|
4700
|
+
return Gt(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) =>
|
|
4710
|
+
return o.every((d) => Gt(k.INT32, s[d], r[d]));
|
|
4711
4711
|
case "scalar":
|
|
4712
4712
|
const u = n.V.T;
|
|
4713
|
-
return o.every((d) =>
|
|
4713
|
+
return o.every((d) => Gt(u, s[d], r[d]));
|
|
4714
4714
|
}
|
|
4715
4715
|
break;
|
|
4716
4716
|
}
|
|
@@ -4795,7 +4795,7 @@ class Vu {
|
|
|
4795
4795
|
}
|
|
4796
4796
|
function da(i, e) {
|
|
4797
4797
|
const t = la(i);
|
|
4798
|
-
return e ? t :
|
|
4798
|
+
return e ? t : Gu(Wu(t));
|
|
4799
4799
|
}
|
|
4800
4800
|
function $u(i) {
|
|
4801
4801
|
return da(i, !1);
|
|
@@ -4829,13 +4829,13 @@ function la(i) {
|
|
|
4829
4829
|
}
|
|
4830
4830
|
return t.join("");
|
|
4831
4831
|
}
|
|
4832
|
-
const
|
|
4832
|
+
const zu = /* @__PURE__ */ new Set([
|
|
4833
4833
|
// names reserved by JavaScript
|
|
4834
4834
|
"constructor",
|
|
4835
4835
|
"toString",
|
|
4836
4836
|
"toJSON",
|
|
4837
4837
|
"valueOf"
|
|
4838
|
-
]),
|
|
4838
|
+
]), Hu = /* @__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, "$"),
|
|
4851
|
+
]), ha = (i) => "".concat(i, "$"), Wu = (i) => Hu.has(i) ? ha(i) : i, Gu = (i) => zu.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);
|
|
@@ -5095,11 +5095,11 @@ l.util.setEnumType(Ke, "livekit.ClientConfigSetting", [{
|
|
|
5095
5095
|
no: 2,
|
|
5096
5096
|
name: "ENABLED"
|
|
5097
5097
|
}]);
|
|
5098
|
-
var
|
|
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
|
-
})(
|
|
5102
|
-
l.util.setEnumType(
|
|
5101
|
+
})(zt || (zt = {}));
|
|
5102
|
+
l.util.setEnumType(zt, "livekit.DisconnectReason", [{
|
|
5103
5103
|
no: 0,
|
|
5104
5104
|
name: "UNKNOWN_REASON"
|
|
5105
5105
|
}, {
|
|
@@ -6576,7 +6576,7 @@ function gi(i) {
|
|
|
6576
6576
|
}, a);
|
|
6577
6577
|
}
|
|
6578
6578
|
}
|
|
6579
|
-
var
|
|
6579
|
+
var xs = { exports: {} }, bi = typeof Reflect == "object" ? Reflect : null, sr = bi && typeof bi.apply == "function" ? bi.apply : function(e, t, n) {
|
|
6580
6580
|
return Function.prototype.apply.call(e, t, n);
|
|
6581
6581
|
}, bn;
|
|
6582
6582
|
bi && typeof bi.ownKeys == "function" ? bn = bi.ownKeys : Object.getOwnPropertySymbols ? bn = function(e) {
|
|
@@ -6593,8 +6593,8 @@ var fa = Number.isNaN || function(e) {
|
|
|
6593
6593
|
function X() {
|
|
6594
6594
|
X.init.call(this);
|
|
6595
6595
|
}
|
|
6596
|
-
|
|
6597
|
-
|
|
6596
|
+
xs.exports = X;
|
|
6597
|
+
xs.exports.once = nd;
|
|
6598
6598
|
X.EventEmitter = X;
|
|
6599
6599
|
X.prototype._events = void 0;
|
|
6600
6600
|
X.prototype._eventsCount = 0;
|
|
@@ -6806,7 +6806,7 @@ function ka(i, e, t, n) {
|
|
|
6806
6806
|
else
|
|
6807
6807
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof i);
|
|
6808
6808
|
}
|
|
6809
|
-
var mt =
|
|
6809
|
+
var mt = xs.exports;
|
|
6810
6810
|
let Ta = !0, Sa = !0;
|
|
6811
6811
|
function kn(i, e, t) {
|
|
6812
6812
|
const n = i.match(e);
|
|
@@ -6857,7 +6857,7 @@ function Ca() {
|
|
|
6857
6857
|
typeof console < "u" && typeof console.log == "function" && console.log.apply(console, arguments);
|
|
6858
6858
|
}
|
|
6859
6859
|
}
|
|
6860
|
-
function
|
|
6860
|
+
function Ls(i, e) {
|
|
6861
6861
|
Sa && console.warn(i + " is deprecated, please use " + e + " instead.");
|
|
6862
6862
|
}
|
|
6863
6863
|
function od(i) {
|
|
@@ -7254,7 +7254,7 @@ function Oa(i) {
|
|
|
7254
7254
|
}), s.apply(this, arguments);
|
|
7255
7255
|
};
|
|
7256
7256
|
}
|
|
7257
|
-
function
|
|
7257
|
+
function xa(i, e) {
|
|
7258
7258
|
if (!i.RTCPeerConnection)
|
|
7259
7259
|
return;
|
|
7260
7260
|
if (i.RTCPeerConnection.prototype.addTrack && e.version >= 65)
|
|
@@ -7366,7 +7366,7 @@ function gs(i, e) {
|
|
|
7366
7366
|
i.RTCPeerConnection.prototype[t] = s[t];
|
|
7367
7367
|
});
|
|
7368
7368
|
}
|
|
7369
|
-
function
|
|
7369
|
+
function La(i, e) {
|
|
7370
7370
|
ui(i, "negotiationneeded", (t) => {
|
|
7371
7371
|
const n = t.target;
|
|
7372
7372
|
if (!((e.version < 72 || n.getConfiguration && n.getConfiguration().sdpSemantics === "plan-b") && n.signalingState !== "stable"))
|
|
@@ -7375,8 +7375,8 @@ function Na(i, e) {
|
|
|
7375
7375
|
}
|
|
7376
7376
|
var ur = /* @__PURE__ */ Object.freeze({
|
|
7377
7377
|
__proto__: null,
|
|
7378
|
-
fixNegotiationNeeded:
|
|
7379
|
-
shimAddTrackRemoveTrack:
|
|
7378
|
+
fixNegotiationNeeded: La,
|
|
7379
|
+
shimAddTrackRemoveTrack: xa,
|
|
7380
7380
|
shimAddTrackRemoveTrackWithNative: Oa,
|
|
7381
7381
|
shimGetDisplayMedia: cd,
|
|
7382
7382
|
shimGetSendersWithDtmf: _a,
|
|
@@ -7387,10 +7387,10 @@ var ur = /* @__PURE__ */ Object.freeze({
|
|
|
7387
7387
|
shimPeerConnection: gs,
|
|
7388
7388
|
shimSenderReceiverGetStats: Aa
|
|
7389
7389
|
});
|
|
7390
|
-
function
|
|
7390
|
+
function Na(i, e) {
|
|
7391
7391
|
const t = i && i.navigator, n = i && i.MediaStreamTrack;
|
|
7392
7392
|
if (t.getUserMedia = function(s, r, a) {
|
|
7393
|
-
|
|
7393
|
+
Ls("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia"), t.mediaDevices.getUserMedia(s).then(r, a);
|
|
7394
7394
|
}, !(e.version > 55 && "autoGainControl" in t.mediaDevices.getSupportedConstraints())) {
|
|
7395
7395
|
const s = function(a, o, c) {
|
|
7396
7396
|
o in a && !(c in a) && (a[c] = a[o], delete a[o]);
|
|
@@ -7500,7 +7500,7 @@ function Ua(i) {
|
|
|
7500
7500
|
}
|
|
7501
7501
|
function Fa(i) {
|
|
7502
7502
|
!i.RTCPeerConnection || "removeStream" in i.RTCPeerConnection.prototype || (i.RTCPeerConnection.prototype.removeStream = function(t) {
|
|
7503
|
-
|
|
7503
|
+
Ls("removeStream", "removeTrack"), this.getSenders().forEach((n) => {
|
|
7504
7504
|
n.track && t.getTracks().includes(n.track) && this.removeTrack(n);
|
|
7505
7505
|
});
|
|
7506
7506
|
});
|
|
@@ -7576,7 +7576,7 @@ var dr = /* @__PURE__ */ Object.freeze({
|
|
|
7576
7576
|
shimCreateOffer: Va,
|
|
7577
7577
|
shimGetDisplayMedia: ud,
|
|
7578
7578
|
shimGetParameters: ja,
|
|
7579
|
-
shimGetUserMedia:
|
|
7579
|
+
shimGetUserMedia: Na,
|
|
7580
7580
|
shimOnTrack: Da,
|
|
7581
7581
|
shimPeerConnection: vs,
|
|
7582
7582
|
shimRTCDataChannel: Ba,
|
|
@@ -7613,7 +7613,7 @@ function qa(i) {
|
|
|
7613
7613
|
});
|
|
7614
7614
|
}
|
|
7615
7615
|
}
|
|
7616
|
-
function
|
|
7616
|
+
function za(i) {
|
|
7617
7617
|
if (!(typeof i != "object" || !i.RTCPeerConnection) && ("getRemoteStreams" in i.RTCPeerConnection.prototype || (i.RTCPeerConnection.prototype.getRemoteStreams = function() {
|
|
7618
7618
|
return this._remoteStreams ? this._remoteStreams : [];
|
|
7619
7619
|
}), !("onaddstream" in i.RTCPeerConnection.prototype))) {
|
|
@@ -7648,7 +7648,7 @@ function Ha(i) {
|
|
|
7648
7648
|
};
|
|
7649
7649
|
}
|
|
7650
7650
|
}
|
|
7651
|
-
function
|
|
7651
|
+
function Ha(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
|
|
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(
|
|
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
|
|
7684
|
+
function Ga(i) {
|
|
7685
7685
|
return i && i.video !== void 0 ? Object.assign({}, i, {
|
|
7686
7686
|
video: wa(i.video)
|
|
7687
7687
|
}) : i;
|
|
@@ -7695,7 +7695,7 @@ function Ka(i) {
|
|
|
7695
7695
|
const r = [];
|
|
7696
7696
|
for (let a = 0; a < n.iceServers.length; a++) {
|
|
7697
7697
|
let o = n.iceServers[a];
|
|
7698
|
-
o.urls === void 0 && o.url ? (
|
|
7698
|
+
o.urls === void 0 && o.url ? (Ls("RTCIceServer.url", "RTCIceServer.urls"), o = JSON.parse(JSON.stringify(o)), o.urls = o.url, delete o.url, r.push(o)) : r.push(n.iceServers[a]);
|
|
7699
7699
|
}
|
|
7700
7700
|
n.iceServers = r;
|
|
7701
7701
|
}
|
|
@@ -7738,13 +7738,13 @@ function Qa(i) {
|
|
|
7738
7738
|
var lr = /* @__PURE__ */ Object.freeze({
|
|
7739
7739
|
__proto__: null,
|
|
7740
7740
|
shimAudioContext: Qa,
|
|
7741
|
-
shimCallbacksAPI:
|
|
7742
|
-
shimConstraints:
|
|
7741
|
+
shimCallbacksAPI: Ha,
|
|
7742
|
+
shimConstraints: Ga,
|
|
7743
7743
|
shimCreateOfferLegacy: Xa,
|
|
7744
|
-
shimGetUserMedia:
|
|
7744
|
+
shimGetUserMedia: Wa,
|
|
7745
7745
|
shimLocalStreamsAPI: qa,
|
|
7746
7746
|
shimRTCIceServerUrls: Ka,
|
|
7747
|
-
shimRemoteStreamsAPI:
|
|
7747
|
+
shimRemoteStreamsAPI: za,
|
|
7748
7748
|
shimTrackEventTransceiver: Ya
|
|
7749
7749
|
}), Za = { exports: {} };
|
|
7750
7750
|
(function(i) {
|
|
@@ -8357,17 +8357,17 @@ function hd() {
|
|
|
8357
8357
|
return t("Chrome shim is not included in this adapter release."), s;
|
|
8358
8358
|
if (n.version === null)
|
|
8359
8359
|
return t("Chrome shim can not determine version, not shimming."), s;
|
|
8360
|
-
t("adapter.js shimming chrome."), s.browserShim = ur, wn(i, n), En(i), Ea(i, n), Pa(i), gs(i, n), Ra(i),
|
|
8360
|
+
t("adapter.js shimming chrome."), s.browserShim = ur, wn(i, n), En(i), Ea(i, n), Pa(i), gs(i, n), Ra(i), xa(i, n), _a(i), Ia(i), Aa(i), La(i, n), Tn(i), ys(i), bs(i), Sn(i, n), Cn(i), ks(i, n);
|
|
8361
8361
|
break;
|
|
8362
8362
|
case "firefox":
|
|
8363
8363
|
if (!dr || !vs || !e.shimFirefox)
|
|
8364
8364
|
return t("Firefox shim is not included in this adapter release."), s;
|
|
8365
|
-
t("adapter.js shimming firefox."), s.browserShim = dr, wn(i, n), En(i),
|
|
8365
|
+
t("adapter.js shimming firefox."), s.browserShim = dr, wn(i, n), En(i), Na(i, n), vs(i, n), Da(i), Fa(i), Ma(i), Ua(i), Ba(i), Ja(i), ja(i), Va(i), $a(i), Tn(i), bs(i), Sn(i, n), Cn(i);
|
|
8366
8366
|
break;
|
|
8367
8367
|
case "safari":
|
|
8368
8368
|
if (!lr || !e.shimSafari)
|
|
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),
|
|
8370
|
+
t("adapter.js shimming safari."), s.browserShim = lr, wn(i, n), En(i), Ka(i), Xa(i), Ha(i), qa(i), za(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!");
|
|
@@ -8451,7 +8451,7 @@ _t.fields = l.util.newFieldList(() => [{
|
|
|
8451
8451
|
no: 3,
|
|
8452
8452
|
name: "trickle",
|
|
8453
8453
|
kind: "message",
|
|
8454
|
-
T:
|
|
8454
|
+
T: ze,
|
|
8455
8455
|
oneof: "message"
|
|
8456
8456
|
}, {
|
|
8457
8457
|
no: 4,
|
|
@@ -8463,7 +8463,7 @@ _t.fields = l.util.newFieldList(() => [{
|
|
|
8463
8463
|
no: 5,
|
|
8464
8464
|
name: "mute",
|
|
8465
8465
|
kind: "message",
|
|
8466
|
-
T:
|
|
8466
|
+
T: He,
|
|
8467
8467
|
oneof: "message"
|
|
8468
8468
|
}, {
|
|
8469
8469
|
no: 6,
|
|
@@ -8569,19 +8569,19 @@ rt.fields = l.util.newFieldList(() => [{
|
|
|
8569
8569
|
no: 4,
|
|
8570
8570
|
name: "trickle",
|
|
8571
8571
|
kind: "message",
|
|
8572
|
-
T:
|
|
8572
|
+
T: ze,
|
|
8573
8573
|
oneof: "message"
|
|
8574
8574
|
}, {
|
|
8575
8575
|
no: 5,
|
|
8576
8576
|
name: "update",
|
|
8577
8577
|
kind: "message",
|
|
8578
|
-
T:
|
|
8578
|
+
T: xt,
|
|
8579
8579
|
oneof: "message"
|
|
8580
8580
|
}, {
|
|
8581
8581
|
no: 6,
|
|
8582
8582
|
name: "track_published",
|
|
8583
8583
|
kind: "message",
|
|
8584
|
-
T:
|
|
8584
|
+
T: We,
|
|
8585
8585
|
oneof: "message"
|
|
8586
8586
|
}, {
|
|
8587
8587
|
no: 8,
|
|
@@ -8593,19 +8593,19 @@ rt.fields = l.util.newFieldList(() => [{
|
|
|
8593
8593
|
no: 9,
|
|
8594
8594
|
name: "mute",
|
|
8595
8595
|
kind: "message",
|
|
8596
|
-
T:
|
|
8596
|
+
T: He,
|
|
8597
8597
|
oneof: "message"
|
|
8598
8598
|
}, {
|
|
8599
8599
|
no: 10,
|
|
8600
8600
|
name: "speakers_changed",
|
|
8601
8601
|
kind: "message",
|
|
8602
|
-
T:
|
|
8602
|
+
T: Lt,
|
|
8603
8603
|
oneof: "message"
|
|
8604
8604
|
}, {
|
|
8605
8605
|
no: 11,
|
|
8606
8606
|
name: "room_update",
|
|
8607
8607
|
kind: "message",
|
|
8608
|
-
T:
|
|
8608
|
+
T: Nt,
|
|
8609
8609
|
oneof: "message"
|
|
8610
8610
|
}, {
|
|
8611
8611
|
no: 12,
|
|
@@ -8813,26 +8813,26 @@ qe.fields = l.util.newFieldList(() => [{
|
|
|
8813
8813
|
T: 9
|
|
8814
8814
|
/* ScalarType.STRING */
|
|
8815
8815
|
}]);
|
|
8816
|
-
class
|
|
8816
|
+
class ze extends I {
|
|
8817
8817
|
constructor(e) {
|
|
8818
8818
|
super(), this.candidateInit = "", this.target = Re.PUBLISHER, l.util.initPartial(e, this);
|
|
8819
8819
|
}
|
|
8820
8820
|
static fromBinary(e, t) {
|
|
8821
|
-
return new
|
|
8821
|
+
return new ze().fromBinary(e, t);
|
|
8822
8822
|
}
|
|
8823
8823
|
static fromJson(e, t) {
|
|
8824
|
-
return new
|
|
8824
|
+
return new ze().fromJson(e, t);
|
|
8825
8825
|
}
|
|
8826
8826
|
static fromJsonString(e, t) {
|
|
8827
|
-
return new
|
|
8827
|
+
return new ze().fromJsonString(e, t);
|
|
8828
8828
|
}
|
|
8829
8829
|
static equals(e, t) {
|
|
8830
|
-
return l.util.equals(
|
|
8830
|
+
return l.util.equals(ze, e, t);
|
|
8831
8831
|
}
|
|
8832
8832
|
}
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
|
|
8833
|
+
ze.runtime = l;
|
|
8834
|
+
ze.typeName = "livekit.TrickleRequest";
|
|
8835
|
+
ze.fields = l.util.newFieldList(() => [{
|
|
8836
8836
|
no: 1,
|
|
8837
8837
|
name: "candidateInit",
|
|
8838
8838
|
kind: "scalar",
|
|
@@ -8844,26 +8844,26 @@ He.fields = l.util.newFieldList(() => [{
|
|
|
8844
8844
|
kind: "enum",
|
|
8845
8845
|
T: l.getEnumType(Re)
|
|
8846
8846
|
}]);
|
|
8847
|
-
class
|
|
8847
|
+
class He extends I {
|
|
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
|
|
8852
|
+
return new He().fromBinary(e, t);
|
|
8853
8853
|
}
|
|
8854
8854
|
static fromJson(e, t) {
|
|
8855
|
-
return new
|
|
8855
|
+
return new He().fromJson(e, t);
|
|
8856
8856
|
}
|
|
8857
8857
|
static fromJsonString(e, t) {
|
|
8858
|
-
return new
|
|
8858
|
+
return new He().fromJsonString(e, t);
|
|
8859
8859
|
}
|
|
8860
8860
|
static equals(e, t) {
|
|
8861
|
-
return l.util.equals(
|
|
8861
|
+
return l.util.equals(He, e, t);
|
|
8862
8862
|
}
|
|
8863
8863
|
}
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8864
|
+
He.runtime = l;
|
|
8865
|
+
He.typeName = "livekit.MuteTrackRequest";
|
|
8866
|
+
He.fields = l.util.newFieldList(() => [{
|
|
8867
8867
|
no: 1,
|
|
8868
8868
|
name: "sid",
|
|
8869
8869
|
kind: "scalar",
|
|
@@ -9001,26 +9001,26 @@ At.fields = l.util.newFieldList(() => [{
|
|
|
9001
9001
|
kind: "message",
|
|
9002
9002
|
T: nt
|
|
9003
9003
|
}]);
|
|
9004
|
-
class
|
|
9004
|
+
class We extends I {
|
|
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
|
|
9009
|
+
return new We().fromBinary(e, t);
|
|
9010
9010
|
}
|
|
9011
9011
|
static fromJson(e, t) {
|
|
9012
|
-
return new
|
|
9012
|
+
return new We().fromJson(e, t);
|
|
9013
9013
|
}
|
|
9014
9014
|
static fromJsonString(e, t) {
|
|
9015
|
-
return new
|
|
9015
|
+
return new We().fromJsonString(e, t);
|
|
9016
9016
|
}
|
|
9017
9017
|
static equals(e, t) {
|
|
9018
|
-
return l.util.equals(
|
|
9018
|
+
return l.util.equals(We, e, t);
|
|
9019
9019
|
}
|
|
9020
9020
|
}
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
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",
|
|
@@ -9090,26 +9090,26 @@ Se.fields = l.util.newFieldList(() => [{
|
|
|
9090
9090
|
T: 9
|
|
9091
9091
|
/* ScalarType.STRING */
|
|
9092
9092
|
}]);
|
|
9093
|
-
class
|
|
9093
|
+
class xt extends I {
|
|
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
|
|
9098
|
+
return new xt().fromBinary(e, t);
|
|
9099
9099
|
}
|
|
9100
9100
|
static fromJson(e, t) {
|
|
9101
|
-
return new
|
|
9101
|
+
return new xt().fromJson(e, t);
|
|
9102
9102
|
}
|
|
9103
9103
|
static fromJsonString(e, t) {
|
|
9104
|
-
return new
|
|
9104
|
+
return new xt().fromJsonString(e, t);
|
|
9105
9105
|
}
|
|
9106
9106
|
static equals(e, t) {
|
|
9107
|
-
return l.util.equals(
|
|
9107
|
+
return l.util.equals(xt, e, t);
|
|
9108
9108
|
}
|
|
9109
9109
|
}
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9110
|
+
xt.runtime = l;
|
|
9111
|
+
xt.typeName = "livekit.ParticipantUpdate";
|
|
9112
|
+
xt.fields = l.util.newFieldList(() => [{
|
|
9113
9113
|
no: 1,
|
|
9114
9114
|
name: "participants",
|
|
9115
9115
|
kind: "message",
|
|
@@ -9217,7 +9217,7 @@ at.fields = l.util.newFieldList(() => [{
|
|
|
9217
9217
|
}]);
|
|
9218
9218
|
class je extends I {
|
|
9219
9219
|
constructor(e) {
|
|
9220
|
-
super(), this.canReconnect = !1, this.reason =
|
|
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,7 +9244,7 @@ je.fields = l.util.newFieldList(() => [{
|
|
|
9244
9244
|
no: 2,
|
|
9245
9245
|
name: "reason",
|
|
9246
9246
|
kind: "enum",
|
|
9247
|
-
T: l.getEnumType(
|
|
9247
|
+
T: l.getEnumType(zt)
|
|
9248
9248
|
}]);
|
|
9249
9249
|
class ot extends I {
|
|
9250
9250
|
constructor(e) {
|
|
@@ -9348,52 +9348,52 @@ ut.fields = l.util.newFieldList(() => [{
|
|
|
9348
9348
|
T: 9
|
|
9349
9349
|
/* ScalarType.STRING */
|
|
9350
9350
|
}]);
|
|
9351
|
-
class
|
|
9351
|
+
class Lt extends I {
|
|
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
|
|
9356
|
+
return new Lt().fromBinary(e, t);
|
|
9357
9357
|
}
|
|
9358
9358
|
static fromJson(e, t) {
|
|
9359
|
-
return new
|
|
9359
|
+
return new Lt().fromJson(e, t);
|
|
9360
9360
|
}
|
|
9361
9361
|
static fromJsonString(e, t) {
|
|
9362
|
-
return new
|
|
9362
|
+
return new Lt().fromJsonString(e, t);
|
|
9363
9363
|
}
|
|
9364
9364
|
static equals(e, t) {
|
|
9365
|
-
return l.util.equals(
|
|
9365
|
+
return l.util.equals(Lt, e, t);
|
|
9366
9366
|
}
|
|
9367
9367
|
}
|
|
9368
|
-
|
|
9369
|
-
|
|
9370
|
-
|
|
9368
|
+
Lt.runtime = l;
|
|
9369
|
+
Lt.typeName = "livekit.SpeakersChanged";
|
|
9370
|
+
Lt.fields = l.util.newFieldList(() => [{
|
|
9371
9371
|
no: 1,
|
|
9372
9372
|
name: "speakers",
|
|
9373
9373
|
kind: "message",
|
|
9374
9374
|
T: et,
|
|
9375
9375
|
repeated: !0
|
|
9376
9376
|
}]);
|
|
9377
|
-
class
|
|
9377
|
+
class Nt extends I {
|
|
9378
9378
|
constructor(e) {
|
|
9379
9379
|
super(), l.util.initPartial(e, this);
|
|
9380
9380
|
}
|
|
9381
9381
|
static fromBinary(e, t) {
|
|
9382
|
-
return new
|
|
9382
|
+
return new Nt().fromBinary(e, t);
|
|
9383
9383
|
}
|
|
9384
9384
|
static fromJson(e, t) {
|
|
9385
|
-
return new
|
|
9385
|
+
return new Nt().fromJson(e, t);
|
|
9386
9386
|
}
|
|
9387
9387
|
static fromJsonString(e, t) {
|
|
9388
|
-
return new
|
|
9388
|
+
return new Nt().fromJsonString(e, t);
|
|
9389
9389
|
}
|
|
9390
9390
|
static equals(e, t) {
|
|
9391
|
-
return l.util.equals(
|
|
9391
|
+
return l.util.equals(Nt, e, t);
|
|
9392
9392
|
}
|
|
9393
9393
|
}
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9394
|
+
Nt.runtime = l;
|
|
9395
|
+
Nt.typeName = "livekit.RoomUpdate";
|
|
9396
|
+
Nt.fields = l.util.newFieldList(() => [{
|
|
9397
9397
|
no: 1,
|
|
9398
9398
|
name: "room",
|
|
9399
9399
|
kind: "message",
|
|
@@ -9525,26 +9525,26 @@ Ft.fields = l.util.newFieldList(() => [{
|
|
|
9525
9525
|
T: Ut,
|
|
9526
9526
|
repeated: !0
|
|
9527
9527
|
}]);
|
|
9528
|
-
class
|
|
9528
|
+
class Ge extends I {
|
|
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
|
|
9533
|
+
return new Ge().fromBinary(e, t);
|
|
9534
9534
|
}
|
|
9535
9535
|
static fromJson(e, t) {
|
|
9536
|
-
return new
|
|
9536
|
+
return new Ge().fromJson(e, t);
|
|
9537
9537
|
}
|
|
9538
9538
|
static fromJsonString(e, t) {
|
|
9539
|
-
return new
|
|
9539
|
+
return new Ge().fromJsonString(e, t);
|
|
9540
9540
|
}
|
|
9541
9541
|
static equals(e, t) {
|
|
9542
|
-
return l.util.equals(
|
|
9542
|
+
return l.util.equals(Ge, e, t);
|
|
9543
9543
|
}
|
|
9544
9544
|
}
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
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",
|
|
@@ -9585,7 +9585,7 @@ Bt.fields = l.util.newFieldList(() => [{
|
|
|
9585
9585
|
no: 2,
|
|
9586
9586
|
name: "qualities",
|
|
9587
9587
|
kind: "message",
|
|
9588
|
-
T:
|
|
9588
|
+
T: Ge,
|
|
9589
9589
|
repeated: !0
|
|
9590
9590
|
}]);
|
|
9591
9591
|
class Jt extends I {
|
|
@@ -9617,7 +9617,7 @@ Jt.fields = l.util.newFieldList(() => [{
|
|
|
9617
9617
|
no: 2,
|
|
9618
9618
|
name: "subscribed_qualities",
|
|
9619
9619
|
kind: "message",
|
|
9620
|
-
T:
|
|
9620
|
+
T: Ge,
|
|
9621
9621
|
repeated: !0
|
|
9622
9622
|
}, {
|
|
9623
9623
|
no: 3,
|
|
@@ -9773,7 +9773,7 @@ ht.fields = l.util.newFieldList(() => [{
|
|
|
9773
9773
|
no: 3,
|
|
9774
9774
|
name: "publish_tracks",
|
|
9775
9775
|
kind: "message",
|
|
9776
|
-
T:
|
|
9776
|
+
T: We,
|
|
9777
9777
|
repeated: !0
|
|
9778
9778
|
}, {
|
|
9779
9779
|
no: 4,
|
|
@@ -10051,7 +10051,7 @@ class ne extends Pi {
|
|
|
10051
10051
|
super(1, e), this.status = n, this.reason = t;
|
|
10052
10052
|
}
|
|
10053
10053
|
}
|
|
10054
|
-
class
|
|
10054
|
+
class Ns extends Pi {
|
|
10055
10055
|
constructor(e) {
|
|
10056
10056
|
super(21, e ?? "device is unsupported");
|
|
10057
10057
|
}
|
|
@@ -10102,22 +10102,22 @@ ve.clearInterval = function() {
|
|
|
10102
10102
|
return clearInterval(...arguments);
|
|
10103
10103
|
};
|
|
10104
10104
|
const pd = /version\/(\d+(\.?_?\d+)+)/i;
|
|
10105
|
-
let
|
|
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 (
|
|
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
|
-
|
|
10118
|
+
Wn = n == null ? void 0 : n.describe(t);
|
|
10119
10119
|
}
|
|
10120
|
-
return
|
|
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:
|
|
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:
|
|
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:
|
|
10149
|
+
version: Gn(pd, i),
|
|
10150
10150
|
os: i.includes("mobile/") ? "iOS" : "macOS"
|
|
10151
10151
|
};
|
|
10152
10152
|
}
|
|
10153
10153
|
}
|
|
10154
10154
|
];
|
|
10155
|
-
function
|
|
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] || "";
|
|
@@ -10231,19 +10231,19 @@ var P;
|
|
|
10231
10231
|
(function(i) {
|
|
10232
10232
|
i.Connected = "connected", i.Reconnecting = "reconnecting", i.Reconnected = "reconnected", i.Disconnected = "disconnected", i.ConnectionStateChanged = "connectionStateChanged", i.StateChanged = "connectionStateChanged", i.MediaDevicesChanged = "mediaDevicesChanged", i.ParticipantConnected = "participantConnected", i.ParticipantDisconnected = "participantDisconnected", i.TrackPublished = "trackPublished", i.TrackSubscribed = "trackSubscribed", i.TrackSubscriptionFailed = "trackSubscriptionFailed", i.TrackUnpublished = "trackUnpublished", i.TrackUnsubscribed = "trackUnsubscribed", i.TrackMuted = "trackMuted", i.TrackUnmuted = "trackUnmuted", i.LocalTrackPublished = "localTrackPublished", i.LocalTrackUnpublished = "localTrackUnpublished", i.LocalAudioSilenceDetected = "localAudioSilenceDetected", i.ActiveSpeakersChanged = "activeSpeakersChanged", i.ParticipantMetadataChanged = "participantMetadataChanged", i.ParticipantNameChanged = "participantNameChanged", i.RoomMetadataChanged = "roomMetadataChanged", i.DataReceived = "dataReceived", i.ConnectionQualityChanged = "connectionQualityChanged", i.TrackStreamStateChanged = "trackStreamStateChanged", i.TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged", i.TrackSubscriptionStatusChanged = "trackSubscriptionStatusChanged", i.AudioPlaybackStatusChanged = "audioPlaybackChanged", i.MediaDevicesError = "mediaDevicesError", i.ParticipantPermissionsChanged = "participantPermissionsChanged", i.SignalConnected = "signalConnected", i.RecordingStatusChanged = "recordingStatusChanged", i.ParticipantEncryptionStatusChanged = "participantEncryptionStatusChanged", i.EncryptionError = "encryptionError", i.DCBufferStatusChanged = "dcBufferStatusChanged", i.ActiveDeviceChanged = "activeDeviceChanged";
|
|
10233
10233
|
})(P || (P = {}));
|
|
10234
|
-
var
|
|
10234
|
+
var x;
|
|
10235
10235
|
(function(i) {
|
|
10236
10236
|
i.TrackPublished = "trackPublished", i.TrackSubscribed = "trackSubscribed", i.TrackSubscriptionFailed = "trackSubscriptionFailed", i.TrackUnpublished = "trackUnpublished", i.TrackUnsubscribed = "trackUnsubscribed", i.TrackMuted = "trackMuted", i.TrackUnmuted = "trackUnmuted", i.LocalTrackPublished = "localTrackPublished", i.LocalTrackUnpublished = "localTrackUnpublished", i.ParticipantMetadataChanged = "participantMetadataChanged", i.ParticipantNameChanged = "participantNameChanged", i.DataReceived = "dataReceived", i.IsSpeakingChanged = "isSpeakingChanged", i.ConnectionQualityChanged = "connectionQualityChanged", i.TrackStreamStateChanged = "trackStreamStateChanged", i.TrackSubscriptionPermissionChanged = "trackSubscriptionPermissionChanged", i.TrackSubscriptionStatusChanged = "trackSubscriptionStatusChanged", i.MediaDevicesError = "mediaDevicesError", i.ParticipantPermissionsChanged = "participantPermissionsChanged", i.PCTrackAdded = "pcTrackAdded";
|
|
10237
|
-
})(
|
|
10238
|
-
var
|
|
10237
|
+
})(x || (x = {}));
|
|
10238
|
+
var L;
|
|
10239
10239
|
(function(i) {
|
|
10240
10240
|
i.TransportsCreated = "transportsCreated", i.Connected = "connected", i.Disconnected = "disconnected", i.Resuming = "resuming", i.Resumed = "resumed", i.Restarting = "restarting", i.Restarted = "restarted", i.SignalResumed = "signalResumed", i.SignalRestarted = "signalRestarted", i.Closing = "closing", i.MediaTrackAdded = "mediaTrackAdded", i.ActiveSpeakersUpdate = "activeSpeakersUpdate", i.DataPacketReceived = "dataPacketReceived", i.RTPVideoMapUpdate = "rtpVideoMapUpdate", i.DCBufferStatusChanged = "dcBufferStatusChanged", i.ParticipantUpdate = "participantUpdate", i.RoomUpdate = "roomUpdate", i.SpeakersChanged = "speakersChanged", i.StreamStateChanged = "streamStateChanged", i.ConnectionQualityUpdate = "connectionQualityUpdate", i.SubscriptionError = "subscriptionError", i.SubscriptionPermissionUpdate = "subscriptionPermissionUpdate";
|
|
10241
|
-
})(
|
|
10241
|
+
})(L || (L = {}));
|
|
10242
10242
|
var R;
|
|
10243
10243
|
(function(i) {
|
|
10244
10244
|
i.Message = "message", i.Muted = "muted", i.Unmuted = "unmuted", i.Restarted = "restarted", i.Ended = "ended", i.Subscribed = "subscribed", i.Unsubscribed = "unsubscribed", i.UpdateSettings = "updateSettings", i.UpdateSubscription = "updateSubscription", i.AudioPlaybackStarted = "audioPlaybackStarted", i.AudioPlaybackFailed = "audioPlaybackFailed", i.AudioSilenceDetected = "audioSilenceDetected", i.VisibilityChanged = "visibilityChanged", i.VideoDimensionsChanged = "videoDimensionsChanged", i.ElementAttached = "elementAttached", i.ElementDetached = "elementDetached", i.UpstreamPaused = "upstreamPaused", i.UpstreamResumed = "upstreamResumed", i.SubscriptionPermissionChanged = "subscriptionPermissionChanged", i.SubscriptionStatusChanged = "subscriptionStatusChanged", i.SubscriptionFailed = "subscriptionFailed";
|
|
10245
10245
|
})(R || (R = {}));
|
|
10246
|
-
const Td = 5e3,
|
|
10246
|
+
const Td = 5e3, xi = [];
|
|
10247
10247
|
class C extends mt.EventEmitter {
|
|
10248
10248
|
constructor(e, t) {
|
|
10249
10249
|
super(), this.attachedElements = [], this.isMuted = !1, this.streamState = C.StreamState.Active, this.isInBackground = !1, this._currentBitrate = 0, this.appVisibilityChangedListener = () => {
|
|
@@ -10267,9 +10267,9 @@ class C extends mt.EventEmitter {
|
|
|
10267
10267
|
}
|
|
10268
10268
|
attach(e) {
|
|
10269
10269
|
let t = "audio";
|
|
10270
|
-
this.kind === C.Kind.Video && (t = "video"), this.attachedElements.length === 0 && C.Kind.Video && this.addAppVisibilityListener(), e || (t === "audio" && (
|
|
10270
|
+
this.kind === C.Kind.Video && (t = "video"), this.attachedElements.length === 0 && C.Kind.Video && this.addAppVisibilityListener(), e || (t === "audio" && (xi.forEach((s) => {
|
|
10271
10271
|
s.parentElement === null && !e && (e = s);
|
|
10272
|
-
}), e &&
|
|
10272
|
+
}), e && xi.splice(xi.indexOf(e), 1)), e || (e = document.createElement(t))), this.attachedElements.includes(e) || this.attachedElements.push(e), vi(this.mediaStreamTrack, e);
|
|
10273
10273
|
const n = e.srcObject.getTracks();
|
|
10274
10274
|
return n.some((s) => s.kind === "audio") && e.play().then(() => {
|
|
10275
10275
|
this.emit(R.AudioPlaybackStarted);
|
|
@@ -10309,9 +10309,9 @@ class C extends mt.EventEmitter {
|
|
|
10309
10309
|
recycleElement(e) {
|
|
10310
10310
|
if (e instanceof HTMLAudioElement) {
|
|
10311
10311
|
let t = !0;
|
|
10312
|
-
e.pause(),
|
|
10312
|
+
e.pause(), xi.forEach((n) => {
|
|
10313
10313
|
n.parentElement || (t = !1);
|
|
10314
|
-
}), t &&
|
|
10314
|
+
}), t && xi.push(e);
|
|
10315
10315
|
}
|
|
10316
10316
|
}
|
|
10317
10317
|
handleAppVisibilityChanged() {
|
|
@@ -10628,22 +10628,22 @@ function oo(i, e) {
|
|
|
10628
10628
|
}
|
|
10629
10629
|
return i === "" && e !== "" ? -1 : e === "" ? 1 : t.length == n.length ? 0 : t.length < n.length ? -1 : 1;
|
|
10630
10630
|
}
|
|
10631
|
-
function
|
|
10631
|
+
function xd(i) {
|
|
10632
10632
|
for (const e of i)
|
|
10633
10633
|
e.target.handleResize(e);
|
|
10634
10634
|
}
|
|
10635
|
-
function
|
|
10635
|
+
function Ld(i) {
|
|
10636
10636
|
for (const e of i)
|
|
10637
10637
|
e.target.handleVisibilityChanged(e);
|
|
10638
10638
|
}
|
|
10639
10639
|
let Kn = null;
|
|
10640
|
-
const vr = () => (Kn || (Kn = new ResizeObserver(
|
|
10640
|
+
const vr = () => (Kn || (Kn = new ResizeObserver(xd)), Kn);
|
|
10641
10641
|
let Yn = null;
|
|
10642
|
-
const yr = () => (Yn || (Yn = new IntersectionObserver(
|
|
10642
|
+
const yr = () => (Yn || (Yn = new IntersectionObserver(Ld, {
|
|
10643
10643
|
root: null,
|
|
10644
10644
|
rootMargin: "0px"
|
|
10645
10645
|
})), Yn);
|
|
10646
|
-
function
|
|
10646
|
+
function Nd() {
|
|
10647
10647
|
var i;
|
|
10648
10648
|
const e = new Pt({
|
|
10649
10649
|
sdk: wi.JS,
|
|
@@ -10663,17 +10663,17 @@ function br() {
|
|
|
10663
10663
|
throw Error("Could not get empty media stream video track");
|
|
10664
10664
|
return o.enabled = t, o;
|
|
10665
10665
|
}
|
|
10666
|
-
let
|
|
10666
|
+
let Li;
|
|
10667
10667
|
function Xn() {
|
|
10668
|
-
if (!
|
|
10668
|
+
if (!Li) {
|
|
10669
10669
|
const i = new AudioContext(), e = i.createOscillator(), t = i.createGain();
|
|
10670
10670
|
t.gain.setValueAtTime(0, 0);
|
|
10671
10671
|
const n = i.createMediaStreamDestination();
|
|
10672
|
-
if (e.connect(t), t.connect(n), e.start(), [
|
|
10672
|
+
if (e.connect(t), t.connect(n), e.start(), [Li] = n.stream.getAudioTracks(), !Li)
|
|
10673
10673
|
throw Error("Could not get empty media stream audio track");
|
|
10674
|
-
|
|
10674
|
+
Li.enabled = !1;
|
|
10675
10675
|
}
|
|
10676
|
-
return
|
|
10676
|
+
return Li.clone();
|
|
10677
10677
|
}
|
|
10678
10678
|
class co {
|
|
10679
10679
|
constructor(e, t) {
|
|
@@ -10685,7 +10685,7 @@ class co {
|
|
|
10685
10685
|
});
|
|
10686
10686
|
}
|
|
10687
10687
|
}
|
|
10688
|
-
class
|
|
10688
|
+
class Ht {
|
|
10689
10689
|
constructor() {
|
|
10690
10690
|
this._locking = Promise.resolve(), this._locks = 0;
|
|
10691
10691
|
}
|
|
@@ -10727,7 +10727,7 @@ var qi;
|
|
|
10727
10727
|
})(qi || (qi = {}));
|
|
10728
10728
|
class Ud {
|
|
10729
10729
|
constructor() {
|
|
10730
|
-
this.pendingTasks = /* @__PURE__ */ new Map(), this.taskMutex = new
|
|
10730
|
+
this.pendingTasks = /* @__PURE__ */ new Map(), this.taskMutex = new Ht(), this.nextTaskIndex = 0;
|
|
10731
10731
|
}
|
|
10732
10732
|
run(e) {
|
|
10733
10733
|
return g(this, void 0, void 0, function* () {
|
|
@@ -10768,7 +10768,7 @@ class Ms {
|
|
|
10768
10768
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
10769
10769
|
this.rtt = 0, this.resetCallbacks = () => {
|
|
10770
10770
|
this.onAnswer = void 0, this.onLeave = void 0, this.onLocalTrackPublished = void 0, this.onLocalTrackUnpublished = void 0, this.onNegotiateRequested = void 0, this.onOffer = void 0, this.onRemoteMuteChanged = void 0, this.onSubscribedQualityUpdate = void 0, this.onTokenRefresh = void 0, this.onTrickle = void 0, this.onClose = void 0;
|
|
10771
|
-
}, this.isConnected = !1, this.isReconnecting = !1, this.useJSON = e, this.requestQueue = new Ud(), this.queuedRequests = [], this.closingLock = new
|
|
10771
|
+
}, this.isConnected = !1, this.isReconnecting = !1, this.useJSON = e, this.requestQueue = new Ud(), this.queuedRequests = [], this.closingLock = new Ht();
|
|
10772
10772
|
}
|
|
10773
10773
|
join(e, t, n, s) {
|
|
10774
10774
|
return g(this, void 0, void 0, function* () {
|
|
@@ -10790,7 +10790,7 @@ class Ms {
|
|
|
10790
10790
|
}
|
|
10791
10791
|
connect(e, t, n, s) {
|
|
10792
10792
|
this.connectOptions = n, e = Md(e), e = e.replace(/\/$/, ""), e += "/rtc";
|
|
10793
|
-
const r =
|
|
10793
|
+
const r = Nd(), a = Jd(t, r, n);
|
|
10794
10794
|
return new Promise((o, c) => g(this, void 0, void 0, function* () {
|
|
10795
10795
|
const u = () => g(this, void 0, void 0, function* () {
|
|
10796
10796
|
this.close(), clearTimeout(d), c(new ne("room connection has been cancelled (signal)"));
|
|
@@ -10882,7 +10882,7 @@ class Ms {
|
|
|
10882
10882
|
sendIceCandidate(e, t) {
|
|
10883
10883
|
return m.trace("sending ice candidate", e), this.sendRequest({
|
|
10884
10884
|
case: "trickle",
|
|
10885
|
-
value: new
|
|
10885
|
+
value: new ze({
|
|
10886
10886
|
candidateInit: JSON.stringify(e),
|
|
10887
10887
|
target: t
|
|
10888
10888
|
})
|
|
@@ -10891,7 +10891,7 @@ class Ms {
|
|
|
10891
10891
|
sendMuteTrack(e, t) {
|
|
10892
10892
|
return this.sendRequest({
|
|
10893
10893
|
case: "mute",
|
|
10894
|
-
value: new
|
|
10894
|
+
value: new He({
|
|
10895
10895
|
sid: e,
|
|
10896
10896
|
muted: t
|
|
10897
10897
|
})
|
|
@@ -10971,7 +10971,7 @@ class Ms {
|
|
|
10971
10971
|
case: "leave",
|
|
10972
10972
|
value: new je({
|
|
10973
10973
|
canReconnect: !1,
|
|
10974
|
-
reason:
|
|
10974
|
+
reason: zt.CLIENT_INITIATED
|
|
10975
10975
|
})
|
|
10976
10976
|
});
|
|
10977
10977
|
}
|
|
@@ -11118,16 +11118,16 @@ var Cr;
|
|
|
11118
11118
|
i.Error = "cryptorError";
|
|
11119
11119
|
})(Cr || (Cr = {}));
|
|
11120
11120
|
function qd() {
|
|
11121
|
-
return
|
|
11121
|
+
return zd() || Ps();
|
|
11122
11122
|
}
|
|
11123
11123
|
function Ps() {
|
|
11124
11124
|
return typeof window.RTCRtpScriptTransform < "u";
|
|
11125
11125
|
}
|
|
11126
|
-
function
|
|
11126
|
+
function zd() {
|
|
11127
11127
|
return typeof window.RTCRtpSender < "u" && // @ts-ignore
|
|
11128
11128
|
typeof window.RTCRtpSender.prototype.createEncodedStreams < "u";
|
|
11129
11129
|
}
|
|
11130
|
-
function
|
|
11130
|
+
function Hd(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));
|
|
@@ -11254,7 +11254,7 @@ class be {
|
|
|
11254
11254
|
}
|
|
11255
11255
|
be.mediaDeviceKinds = ["audioinput", "audiooutput", "videoinput"];
|
|
11256
11256
|
be.userMediaPromiseMap = /* @__PURE__ */ new Map();
|
|
11257
|
-
const
|
|
11257
|
+
const Wd = 1e3;
|
|
11258
11258
|
class Zi extends C {
|
|
11259
11259
|
get constraints() {
|
|
11260
11260
|
return this._constraints;
|
|
@@ -11274,7 +11274,7 @@ class Zi extends C {
|
|
|
11274
11274
|
this.debouncedTrackMuteHandler.cancel("unmute"), yield this.resumeUpstream();
|
|
11275
11275
|
}), this.handleEnded = () => {
|
|
11276
11276
|
this.isInBackground && (this.reacquireTrack = !0), this._mediaStreamTrack.removeEventListener("mute", this.handleTrackMuteEvent), this._mediaStreamTrack.removeEventListener("unmute", this.handleTrackUnmuteEvent), this.emit(R.Ended, this);
|
|
11277
|
-
}, this.reacquireTrack = !1, this.providedByUser = s, this.muteLock = new
|
|
11277
|
+
}, this.reacquireTrack = !1, this.providedByUser = s, this.muteLock = new Ht(), this.pauseUpstreamLock = new Ht(), this.processorLock = new Ht(), this.setMediaStreamTrack(e, !0), this._constraints = e.getConstraints(), n && (this._constraints = n);
|
|
11278
11278
|
}
|
|
11279
11279
|
get id() {
|
|
11280
11280
|
return this._mediaStreamTrack.id;
|
|
@@ -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] :
|
|
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");
|
|
@@ -11424,7 +11424,7 @@ class Zi extends C {
|
|
|
11424
11424
|
this._isUpstreamPaused = !0, this.emit(R.UpstreamPaused, this);
|
|
11425
11425
|
const t = Ri();
|
|
11426
11426
|
if ((t == null ? void 0 : t.name) === "Safari" && oo(t.version, "12.0") < 0)
|
|
11427
|
-
throw new
|
|
11427
|
+
throw new Ns("pauseUpstream is not supported on Safari < 12.");
|
|
11428
11428
|
yield this.sender.replaceTrack(null);
|
|
11429
11429
|
} finally {
|
|
11430
11430
|
e();
|
|
@@ -11512,7 +11512,7 @@ class Zi extends C {
|
|
|
11512
11512
|
});
|
|
11513
11513
|
}
|
|
11514
11514
|
}
|
|
11515
|
-
class
|
|
11515
|
+
class Gd extends mt.EventEmitter {
|
|
11516
11516
|
constructor(e) {
|
|
11517
11517
|
super(), this.onWorkerMessage = (t) => {
|
|
11518
11518
|
var n, s;
|
|
@@ -11557,7 +11557,7 @@ class zd extends mt.EventEmitter {
|
|
|
11557
11557
|
*/
|
|
11558
11558
|
setup(e) {
|
|
11559
11559
|
if (!qd())
|
|
11560
|
-
throw new
|
|
11560
|
+
throw new Ns("tried to setup end-to-end encryption on an unsupported browser");
|
|
11561
11561
|
if (m.info("setting up e2ee"), e !== this.room) {
|
|
11562
11562
|
this.room = e, this.setupEventListeners(e, this.keyProvider);
|
|
11563
11563
|
const t = {
|
|
@@ -11584,7 +11584,7 @@ class zd extends mt.EventEmitter {
|
|
|
11584
11584
|
!e || e.length === 0 ? m.warn("ignoring server sent trailer as it's empty") : this.postSifTrailer(e);
|
|
11585
11585
|
}
|
|
11586
11586
|
setupEngine(e) {
|
|
11587
|
-
e.on(
|
|
11587
|
+
e.on(L.RTPVideoMapUpdate, (t) => {
|
|
11588
11588
|
this.postRTPMap(t);
|
|
11589
11589
|
});
|
|
11590
11590
|
}
|
|
@@ -11613,7 +11613,7 @@ class zd extends mt.EventEmitter {
|
|
|
11613
11613
|
this.setParticipantCryptorEnabled(this.room.localParticipant.isE2EEEnabled, this.room.localParticipant.identity), t.getKeys().forEach((n) => {
|
|
11614
11614
|
this.postKey(n);
|
|
11615
11615
|
});
|
|
11616
|
-
}), e.localParticipant.on(
|
|
11616
|
+
}), e.localParticipant.on(x.LocalTrackPublished, (n) => g(this, void 0, void 0, function* () {
|
|
11617
11617
|
this.setupE2EESender(n.track, n.track.sender);
|
|
11618
11618
|
})), t.on(ti.SetKey, (n) => this.postKey(n)).on(ti.RatchetRequest, (n, s) => this.postRatchetRequest(n, s));
|
|
11619
11619
|
}
|
|
@@ -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" ?
|
|
11695
|
+
this.handleReceiver(e.receiver, e.mediaStreamID, t, e.kind === "video" ? Hd(n.mimeType) : void 0);
|
|
11696
11696
|
}
|
|
11697
11697
|
}
|
|
11698
11698
|
setupE2EESender(e, t) {
|
|
@@ -12326,7 +12326,7 @@ var Qn = ho, Kd = /%[sdv%]/g, Yd = function(i) {
|
|
|
12326
12326
|
return "";
|
|
12327
12327
|
}
|
|
12328
12328
|
});
|
|
12329
|
-
},
|
|
12329
|
+
}, Ni = function(i, e, t) {
|
|
12330
12330
|
var n = e.format instanceof Function ? e.format(e.push ? t : t[e.name]) : e.format, s = [i + "=" + n];
|
|
12331
12331
|
if (e.names)
|
|
12332
12332
|
for (var r = 0; r < e.names.length; r += 1) {
|
|
@@ -12343,15 +12343,15 @@ var Qn = ho, Kd = /%[sdv%]/g, Yd = function(i) {
|
|
|
12343
12343
|
var t = e.outerOrder || Xd, n = e.innerOrder || Qd, s = [];
|
|
12344
12344
|
return t.forEach(function(r) {
|
|
12345
12345
|
Qn[r].forEach(function(a) {
|
|
12346
|
-
a.name in i && i[a.name] != null ? s.push(
|
|
12347
|
-
s.push(
|
|
12346
|
+
a.name in i && i[a.name] != null ? s.push(Ni(r, a, i)) : a.push in i && i[a.push] != null && i[a.push].forEach(function(o) {
|
|
12347
|
+
s.push(Ni(r, a, o));
|
|
12348
12348
|
});
|
|
12349
12349
|
});
|
|
12350
12350
|
}), i.media.forEach(function(r) {
|
|
12351
|
-
s.push(
|
|
12351
|
+
s.push(Ni("m", Qn.m[0], r)), n.forEach(function(a) {
|
|
12352
12352
|
Qn[a].forEach(function(o) {
|
|
12353
|
-
o.name in r && r[o.name] != null ? s.push(
|
|
12354
|
-
s.push(
|
|
12353
|
+
o.name in r && r[o.name] != null ? s.push(Ni(a, o, r)) : o.push in r && r[o.push] != null && r[o.push].forEach(function(c) {
|
|
12354
|
+
s.push(Ni(a, o, c));
|
|
12355
12355
|
});
|
|
12356
12356
|
});
|
|
12357
12357
|
});
|
|
@@ -12583,16 +12583,16 @@ const sl = {
|
|
|
12583
12583
|
peerConnectionTimeout: 15e3,
|
|
12584
12584
|
websocketTimeout: 15e3
|
|
12585
12585
|
}, Ir = "_lossy", Ar = "_reliable", al = 2 * 1e3, Or = "leave-reconnect";
|
|
12586
|
-
var
|
|
12586
|
+
var Ne;
|
|
12587
12587
|
(function(i) {
|
|
12588
12588
|
i[i.New = 0] = "New", i[i.Connected = 1] = "Connected", i[i.Disconnected = 2] = "Disconnected", i[i.Reconnecting = 3] = "Reconnecting", i[i.Closed = 4] = "Closed";
|
|
12589
|
-
})(
|
|
12589
|
+
})(Ne || (Ne = {}));
|
|
12590
12590
|
class ol extends mt.EventEmitter {
|
|
12591
12591
|
get isClosed() {
|
|
12592
12592
|
return this._isClosed;
|
|
12593
12593
|
}
|
|
12594
12594
|
constructor(e) {
|
|
12595
|
-
super(), this.options = e, this.rtcConfig = {}, this.peerConnectionTimeout = mo.peerConnectionTimeout, this.fullReconnectOnNext = !1, this.subscriberPrimary = !1, this.pcState =
|
|
12595
|
+
super(), this.options = e, this.rtcConfig = {}, this.peerConnectionTimeout = mo.peerConnectionTimeout, this.fullReconnectOnNext = !1, this.subscriberPrimary = !1, this.pcState = Ne.New, this._isClosed = !0, this.pendingTrackResolvers = {}, this.hasPublished = !1, this.reconnectAttempts = 0, this.reconnectStart = 0, this.attemptingReconnect = !1, this.joinAttempts = 0, this.maxJoinAttempts = 1, this.shouldFailNext = !1, this.handleDataChannel = (t) => {
|
|
12596
12596
|
let {
|
|
12597
12597
|
channel: n
|
|
12598
12598
|
} = t;
|
|
@@ -12621,7 +12621,7 @@ class ol extends mt.EventEmitter {
|
|
|
12621
12621
|
return;
|
|
12622
12622
|
}
|
|
12623
12623
|
const o = Ze.fromBinary(new Uint8Array(a));
|
|
12624
|
-
((n = o.value) === null || n === void 0 ? void 0 : n.case) === "speaker" ? this.emit(
|
|
12624
|
+
((n = o.value) === null || n === void 0 ? void 0 : n.case) === "speaker" ? this.emit(L.ActiveSpeakersUpdate, o.value.value.speakers) : ((s = o.value) === null || s === void 0 ? void 0 : s.case) === "user" && this.emit(L.DataPacketReceived, o.value.value, o.kind);
|
|
12625
12625
|
} finally {
|
|
12626
12626
|
r();
|
|
12627
12627
|
}
|
|
@@ -12642,7 +12642,7 @@ class ol extends mt.EventEmitter {
|
|
|
12642
12642
|
return;
|
|
12643
12643
|
m.warn("".concat(t, " disconnected")), this.reconnectAttempts === 0 && (this.reconnectStart = Date.now());
|
|
12644
12644
|
const s = (o) => {
|
|
12645
|
-
m.warn("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(o, "ms. giving up")), this.emit(
|
|
12645
|
+
m.warn("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(o, "ms. giving up")), this.emit(L.Disconnected), this.close();
|
|
12646
12646
|
}, r = Date.now() - this.reconnectStart;
|
|
12647
12647
|
let a = this.getNextRetryDelay({
|
|
12648
12648
|
elapsedMs: r,
|
|
@@ -12654,23 +12654,23 @@ class ol extends mt.EventEmitter {
|
|
|
12654
12654
|
}
|
|
12655
12655
|
t === Or && (a = 0), m.debug("reconnecting in ".concat(a, "ms")), this.clearReconnectTimeout(), this.token && this.regionUrlProvider && this.regionUrlProvider.updateToken(this.token), this.reconnectTimeout = ve.setTimeout(() => this.attemptReconnect(n), a);
|
|
12656
12656
|
}, this.waitForRestarted = () => new Promise((t, n) => {
|
|
12657
|
-
this.pcState ===
|
|
12657
|
+
this.pcState === Ne.Connected && t();
|
|
12658
12658
|
const s = () => {
|
|
12659
|
-
this.off(
|
|
12659
|
+
this.off(L.Disconnected, r), t();
|
|
12660
12660
|
}, r = () => {
|
|
12661
|
-
this.off(
|
|
12661
|
+
this.off(L.Restarted, s), n();
|
|
12662
12662
|
};
|
|
12663
|
-
this.once(
|
|
12663
|
+
this.once(L.Restarted, s), this.once(L.Disconnected, r);
|
|
12664
12664
|
}), this.updateAndEmitDCBufferStatus = (t) => {
|
|
12665
12665
|
const n = this.isBufferStatusLow(t);
|
|
12666
|
-
typeof n < "u" && n !== this.dcBufferStatus.get(t) && (this.dcBufferStatus.set(t, n), this.emit(
|
|
12666
|
+
typeof n < "u" && n !== this.dcBufferStatus.get(t) && (this.dcBufferStatus.set(t, n), this.emit(L.DCBufferStatusChanged, n, t));
|
|
12667
12667
|
}, this.isBufferStatusLow = (t) => {
|
|
12668
12668
|
const n = this.dataChannelForKind(t);
|
|
12669
12669
|
if (n)
|
|
12670
12670
|
return n.bufferedAmount <= n.bufferedAmountLowThreshold;
|
|
12671
12671
|
}, this.handleBrowserOnLine = () => {
|
|
12672
12672
|
this.client.isReconnecting && (this.clearReconnectTimeout(), this.attemptReconnect(Fe.RR_SIGNAL_DISCONNECTED));
|
|
12673
|
-
}, this.client = new Ms(), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new
|
|
12673
|
+
}, this.client = new Ms(), this.client.signalLatency = this.options.expSignalLatency, this.reconnectPolicy = this.options.reconnectPolicy, this.registerOnLineListener(), this.closingLock = new Ht(), this.dataProcessLock = new Ht(), this.dcBufferStatus = /* @__PURE__ */ new Map([[le.LOSSY, !0], [le.RELIABLE, !0]]), this.client.onParticipantUpdate = (t) => this.emit(L.ParticipantUpdate, t), this.client.onConnectionQuality = (t) => this.emit(L.ConnectionQualityUpdate, t), this.client.onRoomUpdate = (t) => this.emit(L.RoomUpdate, t), this.client.onSubscriptionError = (t) => this.emit(L.SubscriptionError, t), this.client.onSubscriptionPermissionUpdate = (t) => this.emit(L.SubscriptionPermissionUpdate, t), this.client.onSpeakersChanged = (t) => this.emit(L.SpeakersChanged, t), this.client.onStreamStateUpdate = (t) => this.emit(L.StreamStateChanged, t);
|
|
12674
12674
|
}
|
|
12675
12675
|
join(e, t, n, s) {
|
|
12676
12676
|
return g(this, void 0, void 0, function* () {
|
|
@@ -12694,7 +12694,7 @@ class ol extends mt.EventEmitter {
|
|
|
12694
12694
|
return;
|
|
12695
12695
|
}
|
|
12696
12696
|
try {
|
|
12697
|
-
this._isClosed = !0, this.emit(
|
|
12697
|
+
this._isClosed = !0, this.emit(L.Closing), this.removeAllListeners(), this.deregisterOnLineListener(), this.clearPendingReconnect(), yield this.cleanupPeerConnections(), yield this.cleanupClient();
|
|
12698
12698
|
} finally {
|
|
12699
12699
|
e();
|
|
12700
12700
|
}
|
|
@@ -12793,7 +12793,7 @@ class ol extends mt.EventEmitter {
|
|
|
12793
12793
|
googDscp: !0
|
|
12794
12794
|
}]
|
|
12795
12795
|
};
|
|
12796
|
-
this.publisher = new Rr(s, r), this.subscriber = new Rr(s), this.emit(
|
|
12796
|
+
this.publisher = new Rr(s, r), this.subscriber = new Rr(s), this.emit(L.TransportsCreated, this.publisher, this.subscriber), this.publisher.pc.onicecandidate = (u) => {
|
|
12797
12797
|
u.candidate && (m.trace("adding ICE candidate for peer", u.candidate), this.client.sendIceCandidate(u.candidate, Re.PUBLISHER));
|
|
12798
12798
|
}, this.subscriber.pc.onicecandidate = (u) => {
|
|
12799
12799
|
u.candidate && this.client.sendIceCandidate(u.candidate, Re.SUBSCRIBER);
|
|
@@ -12803,14 +12803,14 @@ class ol extends mt.EventEmitter {
|
|
|
12803
12803
|
let a = this.publisher.pc, o = this.subscriber.pc, c = e.subscriberPrimary;
|
|
12804
12804
|
c && (a = this.subscriber.pc, o = this.publisher.pc, this.subscriber.pc.ondatachannel = this.handleDataChannel), this.primaryPC = a, a.onconnectionstatechange = () => g(this, void 0, void 0, function* () {
|
|
12805
12805
|
if (m.debug("primary PC state changed ".concat(a.connectionState)), a.connectionState === "connected") {
|
|
12806
|
-
const u = this.pcState ===
|
|
12807
|
-
this.pcState =
|
|
12806
|
+
const u = this.pcState === Ne.New;
|
|
12807
|
+
this.pcState = Ne.Connected, u && this.emit(L.Connected, e);
|
|
12808
12808
|
} else
|
|
12809
|
-
a.connectionState === "failed" && this.pcState ===
|
|
12809
|
+
a.connectionState === "failed" && this.pcState === Ne.Connected && (this.pcState = Ne.Disconnected, this.handleDisconnect("primary peerconnection", c ? Fe.RR_SUBSCRIBER_FAILED : Fe.RR_PUBLISHER_FAILED));
|
|
12810
12810
|
}), o.onconnectionstatechange = () => g(this, void 0, void 0, function* () {
|
|
12811
12811
|
m.debug("secondary PC state changed ".concat(o.connectionState)), o.connectionState === "failed" && this.handleDisconnect("secondary peerconnection", c ? Fe.RR_PUBLISHER_FAILED : Fe.RR_SUBSCRIBER_FAILED);
|
|
12812
12812
|
}), this.subscriber.pc.ontrack = (u) => {
|
|
12813
|
-
this.emit(
|
|
12813
|
+
this.emit(L.MediaTrackAdded, u.track, u.streams[0], u.receiver);
|
|
12814
12814
|
}, this.createDataChannels();
|
|
12815
12815
|
}
|
|
12816
12816
|
setupSignalClientCallbacks() {
|
|
@@ -12847,7 +12847,7 @@ class ol extends mt.EventEmitter {
|
|
|
12847
12847
|
}, this.client.onClose = () => {
|
|
12848
12848
|
this.handleDisconnect("signal", Fe.RR_SIGNAL_DISCONNECTED);
|
|
12849
12849
|
}, this.client.onLeave = (e) => {
|
|
12850
|
-
e != null && e.canReconnect ? (this.fullReconnectOnNext = !0, this.primaryPC = void 0, this.handleDisconnect(Or)) : (this.emit(
|
|
12850
|
+
e != null && e.canReconnect ? (this.fullReconnectOnNext = !0, this.primaryPC = void 0, this.handleDisconnect(Or)) : (this.emit(L.Disconnected, e == null ? void 0 : e.reason), this.close()), m.trace("leave request", {
|
|
12851
12851
|
leave: e
|
|
12852
12852
|
});
|
|
12853
12853
|
};
|
|
@@ -12966,7 +12966,7 @@ class ol extends mt.EventEmitter {
|
|
|
12966
12966
|
let a = !0;
|
|
12967
12967
|
r instanceof pe ? (m.debug("received unrecoverable error", {
|
|
12968
12968
|
error: r
|
|
12969
|
-
}), a = !1) : r instanceof fn || (this.fullReconnectOnNext = !0), a ? this.handleDisconnect("reconnect", Fe.RR_UNKNOWN) : (m.info("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(Date.now() - this.reconnectStart, "ms. giving up")), this.emit(
|
|
12969
|
+
}), a = !1) : r instanceof fn || (this.fullReconnectOnNext = !0), a ? this.handleDisconnect("reconnect", Fe.RR_UNKNOWN) : (m.info("could not recover connection after ".concat(this.reconnectAttempts, " attempts, ").concat(Date.now() - this.reconnectStart, "ms. giving up")), this.emit(L.Disconnected), yield this.close());
|
|
12970
12970
|
} finally {
|
|
12971
12971
|
this.attemptingReconnect = !1;
|
|
12972
12972
|
}
|
|
@@ -12989,7 +12989,7 @@ class ol extends mt.EventEmitter {
|
|
|
12989
12989
|
try {
|
|
12990
12990
|
if (!this.url || !this.token)
|
|
12991
12991
|
throw new pe("could not reconnect, url or token not saved");
|
|
12992
|
-
m.info("reconnecting, attempt: ".concat(this.reconnectAttempts)), this.emit(
|
|
12992
|
+
m.info("reconnecting, attempt: ".concat(this.reconnectAttempts)), this.emit(L.Restarting), this.client.isConnected && (yield this.client.sendLeave()), yield this.cleanupPeerConnections(), yield this.cleanupClient();
|
|
12993
12993
|
let r;
|
|
12994
12994
|
try {
|
|
12995
12995
|
if (!this.signalOpts)
|
|
@@ -13000,7 +13000,7 @@ class ol extends mt.EventEmitter {
|
|
|
13000
13000
|
}
|
|
13001
13001
|
if (this.shouldFailNext)
|
|
13002
13002
|
throw this.shouldFailNext = !1, new Error("simulated failure");
|
|
13003
|
-
this.client.setReconnected(), this.emit(
|
|
13003
|
+
this.client.setReconnected(), this.emit(L.SignalRestarted, r), yield this.waitForPCReconnected(), (t = this.regionUrlProvider) === null || t === void 0 || t.resetAttempts(), this.emit(L.Restarted);
|
|
13004
13004
|
} catch (r) {
|
|
13005
13005
|
const a = yield (n = this.regionUrlProvider) === null || n === void 0 ? void 0 : n.getNextBestRegionUrl();
|
|
13006
13006
|
if (a) {
|
|
@@ -13018,7 +13018,7 @@ class ol extends mt.EventEmitter {
|
|
|
13018
13018
|
throw new pe("could not reconnect, url or token not saved");
|
|
13019
13019
|
if (!this.publisher || !this.subscriber)
|
|
13020
13020
|
throw new pe("publisher and subscriber connections unset");
|
|
13021
|
-
m.info("resuming signal connection, attempt ".concat(this.reconnectAttempts)), this.emit(
|
|
13021
|
+
m.info("resuming signal connection, attempt ".concat(this.reconnectAttempts)), this.emit(L.Resuming);
|
|
13022
13022
|
try {
|
|
13023
13023
|
this.setupSignalClientCallbacks();
|
|
13024
13024
|
const n = yield this.client.reconnect(this.url, this.token, this.participantSid, e);
|
|
@@ -13030,17 +13030,17 @@ class ol extends mt.EventEmitter {
|
|
|
13030
13030
|
let s = "";
|
|
13031
13031
|
throw n instanceof Error && (s = n.message), n instanceof ne && n.reason === 0 ? new pe("could not reconnect, token might be expired") : new fn(s);
|
|
13032
13032
|
}
|
|
13033
|
-
if (this.emit(
|
|
13033
|
+
if (this.emit(L.SignalResumed), this.shouldFailNext)
|
|
13034
13034
|
throw this.shouldFailNext = !1, new Error("simulated failure");
|
|
13035
13035
|
this.subscriber.restartingIce = !0, this.hasPublished && (yield this.publisher.createAndSendOffer({
|
|
13036
13036
|
iceRestart: !0
|
|
13037
|
-
})), yield this.waitForPCReconnected(), this.client.setReconnected(), ((t = this.reliableDC) === null || t === void 0 ? void 0 : t.readyState) === "open" && this.reliableDC.id === null && this.createDataChannels(), this.emit(
|
|
13037
|
+
})), yield this.waitForPCReconnected(), this.client.setReconnected(), ((t = this.reliableDC) === null || t === void 0 ? void 0 : t.readyState) === "open" && this.reliableDC.id === null && this.createDataChannels(), this.emit(L.Resumed);
|
|
13038
13038
|
});
|
|
13039
13039
|
}
|
|
13040
13040
|
waitForPCInitialConnection(e, t) {
|
|
13041
13041
|
return g(this, void 0, void 0, function* () {
|
|
13042
|
-
if (this.pcState !==
|
|
13043
|
-
if (this.pcState !==
|
|
13042
|
+
if (this.pcState !== Ne.Connected) {
|
|
13043
|
+
if (this.pcState !== Ne.New)
|
|
13044
13044
|
throw new pe("Expected peer connection to be new on initial connection");
|
|
13045
13045
|
return new Promise((n, s) => {
|
|
13046
13046
|
const r = () => {
|
|
@@ -13054,9 +13054,9 @@ class ol extends mt.EventEmitter {
|
|
|
13054
13054
|
const a = () => {
|
|
13055
13055
|
ve.clearTimeout(o), t == null || t.signal.removeEventListener("abort", r), n();
|
|
13056
13056
|
}, o = ve.setTimeout(() => {
|
|
13057
|
-
this.off(
|
|
13057
|
+
this.off(L.Connected, a), s(new ne("could not establish pc connection"));
|
|
13058
13058
|
}, e ?? this.peerConnectionTimeout);
|
|
13059
|
-
this.once(
|
|
13059
|
+
this.once(L.Connected, a);
|
|
13060
13060
|
});
|
|
13061
13061
|
}
|
|
13062
13062
|
});
|
|
@@ -13066,12 +13066,12 @@ class ol extends mt.EventEmitter {
|
|
|
13066
13066
|
return g(this, void 0, void 0, function* () {
|
|
13067
13067
|
const n = Date.now();
|
|
13068
13068
|
let s = n;
|
|
13069
|
-
for (this.pcState =
|
|
13069
|
+
for (this.pcState = Ne.Reconnecting, m.debug("waiting for peer connection to reconnect"); s - n < this.peerConnectionTimeout && this.primaryPC !== void 0; ) {
|
|
13070
13070
|
if (
|
|
13071
13071
|
// on Safari, we don't get a connectionstatechanged event during ICE restart
|
|
13072
13072
|
// this means we'd have to check its status manually and update address
|
|
13073
13073
|
// manually
|
|
13074
|
-
s - n > al && ((e = this.primaryPC) === null || e === void 0 ? void 0 : e.connectionState) === "connected" && (!this.hasPublished || ((t = this.publisher) === null || t === void 0 ? void 0 : t.pc.connectionState) === "connected") && (this.pcState =
|
|
13074
|
+
s - n > al && ((e = this.primaryPC) === null || e === void 0 ? void 0 : e.connectionState) === "connected" && (!this.hasPublished || ((t = this.publisher) === null || t === void 0 ? void 0 : t.pc.connectionState) === "connected") && (this.pcState = Ne.Connected), this.pcState === Ne.Connected
|
|
13075
13075
|
)
|
|
13076
13076
|
return;
|
|
13077
13077
|
yield si(100), s = Date.now();
|
|
@@ -13131,11 +13131,11 @@ class ol extends mt.EventEmitter {
|
|
|
13131
13131
|
const n = () => {
|
|
13132
13132
|
m.debug("engine disconnected while negotiation was ongoing"), r(), e();
|
|
13133
13133
|
};
|
|
13134
|
-
this.isClosed && t("cannot negotiate on closed engine"), this.on(
|
|
13134
|
+
this.isClosed && t("cannot negotiate on closed engine"), this.on(L.Closing, n);
|
|
13135
13135
|
const s = setTimeout(() => {
|
|
13136
13136
|
t("negotiation timed out"), this.handleDisconnect("negotiation", Fe.RR_SIGNAL_DISCONNECTED);
|
|
13137
13137
|
}, this.peerConnectionTimeout), r = () => {
|
|
13138
|
-
clearTimeout(s), this.off(
|
|
13138
|
+
clearTimeout(s), this.off(L.Closing, n);
|
|
13139
13139
|
};
|
|
13140
13140
|
this.publisher.once(Si.NegotiationStarted, () => {
|
|
13141
13141
|
var a;
|
|
@@ -13147,7 +13147,7 @@ class ol extends mt.EventEmitter {
|
|
|
13147
13147
|
a.forEach((c) => {
|
|
13148
13148
|
const u = c.codec.toLowerCase();
|
|
13149
13149
|
Dd(u) && o.set(c.payload, u);
|
|
13150
|
-
}), this.emit(
|
|
13150
|
+
}), this.emit(L.RTPVideoMapUpdate, o);
|
|
13151
13151
|
}), this.publisher.negotiate((a) => {
|
|
13152
13152
|
r(), t(a), a instanceof Ts && (this.fullReconnectOnNext = !0), this.handleDisconnect("negotiation", Fe.RR_UNKNOWN);
|
|
13153
13153
|
});
|
|
@@ -13209,7 +13209,7 @@ function cl(i) {
|
|
|
13209
13209
|
}
|
|
13210
13210
|
class fn extends Error {
|
|
13211
13211
|
}
|
|
13212
|
-
class
|
|
13212
|
+
class xr {
|
|
13213
13213
|
constructor(e, t) {
|
|
13214
13214
|
this.lastUpdateAt = 0, this.settingsCacheTime = 3e3, this.attemptedRegions = [], this.serverUrl = new URL(e), this.token = t;
|
|
13215
13215
|
}
|
|
@@ -13454,7 +13454,7 @@ function vo(i, e, t, n) {
|
|
|
13454
13454
|
if (!o)
|
|
13455
13455
|
return [a];
|
|
13456
13456
|
let h = [];
|
|
13457
|
-
i ? h = (s = Dr(n == null ? void 0 : n.screenShareSimulcastLayers)) !== null && s !== void 0 ? s :
|
|
13457
|
+
i ? h = (s = Dr(n == null ? void 0 : n.screenShareSimulcastLayers)) !== null && s !== void 0 ? s : Nr(i, d) : h = (r = Dr(n == null ? void 0 : n.videoSimulcastLayers)) !== null && r !== void 0 ? r : Nr(i, d);
|
|
13458
13458
|
let f;
|
|
13459
13459
|
if (h.length > 0) {
|
|
13460
13460
|
const p = h[0];
|
|
@@ -13467,7 +13467,7 @@ function vo(i, e, t, n) {
|
|
|
13467
13467
|
}
|
|
13468
13468
|
return es(e, t, [d]);
|
|
13469
13469
|
}
|
|
13470
|
-
function
|
|
13470
|
+
function Lr(i, e, t) {
|
|
13471
13471
|
var n, s, r, a;
|
|
13472
13472
|
if (!t.backupCodec || t.backupCodec.codec === t.videoCodec)
|
|
13473
13473
|
return;
|
|
@@ -13506,7 +13506,7 @@ function vl(i, e, t) {
|
|
|
13506
13506
|
const n = e > t ? e / t : t / e;
|
|
13507
13507
|
return Math.abs(n - 16 / 9) < Math.abs(n - 4 / 3) ? dl : ll;
|
|
13508
13508
|
}
|
|
13509
|
-
function
|
|
13509
|
+
function Nr(i, e) {
|
|
13510
13510
|
if (i)
|
|
13511
13511
|
return ml(e);
|
|
13512
13512
|
const {
|
|
@@ -13604,7 +13604,7 @@ class De extends Zi {
|
|
|
13604
13604
|
}), this._currentBitrate = a;
|
|
13605
13605
|
}
|
|
13606
13606
|
this.prevStats = r;
|
|
13607
|
-
}), this.senderLock = new
|
|
13607
|
+
}), this.senderLock = new Ht();
|
|
13608
13608
|
}
|
|
13609
13609
|
get isSimulcast() {
|
|
13610
13610
|
return !!(this.sender && this.sender.getParameters().encodings.length > 1);
|
|
@@ -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
|
|
13751
|
+
t.push(new Ge({
|
|
13752
13752
|
quality: n,
|
|
13753
13753
|
enabled: n <= e
|
|
13754
13754
|
}));
|
|
@@ -14015,7 +14015,7 @@ class ko extends C {
|
|
|
14015
14015
|
this.monitorInterval || (this.monitorInterval = setInterval(() => this.monitorReceiver(), Fs));
|
|
14016
14016
|
}
|
|
14017
14017
|
}
|
|
14018
|
-
class
|
|
14018
|
+
class zi extends ko {
|
|
14019
14019
|
constructor(e, t, n, s, r) {
|
|
14020
14020
|
super(e, t, C.Kind.Audio, n), this.monitorReceiver = () => g(this, void 0, void 0, function* () {
|
|
14021
14021
|
if (!this.receiver) {
|
|
@@ -14122,7 +14122,7 @@ class Hi extends ko {
|
|
|
14122
14122
|
}
|
|
14123
14123
|
}
|
|
14124
14124
|
const ts = 100;
|
|
14125
|
-
class
|
|
14125
|
+
class Hi 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) {
|
|
@@ -14352,14 +14352,14 @@ class bt extends mt.EventEmitter {
|
|
|
14352
14352
|
* an [AudioTrack] if this publication holds an audio track
|
|
14353
14353
|
*/
|
|
14354
14354
|
get audioTrack() {
|
|
14355
|
-
if (this.track instanceof we || this.track instanceof
|
|
14355
|
+
if (this.track instanceof we || this.track instanceof zi)
|
|
14356
14356
|
return this.track;
|
|
14357
14357
|
}
|
|
14358
14358
|
/**
|
|
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
|
|
14362
|
+
if (this.track instanceof De || this.track instanceof Hi)
|
|
14363
14363
|
return this.track;
|
|
14364
14364
|
}
|
|
14365
14365
|
/** @internal */
|
|
@@ -14379,7 +14379,7 @@ class bt extends mt.EventEmitter {
|
|
|
14379
14379
|
e.Allowed = "allowed", e.NotAllowed = "not_allowed";
|
|
14380
14380
|
}(i.PermissionStatus || (i.PermissionStatus = {}));
|
|
14381
14381
|
})(bt || (bt = {}));
|
|
14382
|
-
class
|
|
14382
|
+
class xn extends bt {
|
|
14383
14383
|
get isUpstreamPaused() {
|
|
14384
14384
|
var e;
|
|
14385
14385
|
return (e = this.track) === null || e === void 0 ? void 0 : e.isUpstreamPaused;
|
|
@@ -14523,11 +14523,11 @@ class To extends mt.EventEmitter {
|
|
|
14523
14523
|
**/
|
|
14524
14524
|
_setMetadata(e) {
|
|
14525
14525
|
const t = this.metadata !== e, n = this.metadata;
|
|
14526
|
-
this.metadata = e, t && this.emit(
|
|
14526
|
+
this.metadata = e, t && this.emit(x.ParticipantMetadataChanged, n);
|
|
14527
14527
|
}
|
|
14528
14528
|
_setName(e) {
|
|
14529
14529
|
const t = this.name !== e;
|
|
14530
|
-
this.name = e, t && this.emit(
|
|
14530
|
+
this.name = e, t && this.emit(x.ParticipantNameChanged, e);
|
|
14531
14531
|
}
|
|
14532
14532
|
/** @internal */
|
|
14533
14533
|
setPermissions(e) {
|
|
@@ -14536,28 +14536,28 @@ class To extends mt.EventEmitter {
|
|
|
14536
14536
|
var h;
|
|
14537
14537
|
return u !== ((h = this.permissions) === null || h === void 0 ? void 0 : h.canPublishSources[d]);
|
|
14538
14538
|
});
|
|
14539
|
-
return this.permissions = e, c && this.emit(
|
|
14539
|
+
return this.permissions = e, c && this.emit(x.ParticipantPermissionsChanged, o), c;
|
|
14540
14540
|
}
|
|
14541
14541
|
/** @internal */
|
|
14542
14542
|
setIsSpeaking(e) {
|
|
14543
|
-
e !== this.isSpeaking && (this.isSpeaking = e, e && (this.lastSpokeAt = /* @__PURE__ */ new Date()), this.emit(
|
|
14543
|
+
e !== this.isSpeaking && (this.isSpeaking = e, e && (this.lastSpokeAt = /* @__PURE__ */ new Date()), this.emit(x.IsSpeakingChanged, e));
|
|
14544
14544
|
}
|
|
14545
14545
|
/** @internal */
|
|
14546
14546
|
setConnectionQuality(e) {
|
|
14547
14547
|
const t = this._connectionQuality;
|
|
14548
|
-
this._connectionQuality = kl(e), t !== this._connectionQuality && this.emit(
|
|
14548
|
+
this._connectionQuality = kl(e), t !== this._connectionQuality && this.emit(x.ConnectionQualityChanged, this._connectionQuality);
|
|
14549
14549
|
}
|
|
14550
14550
|
/**
|
|
14551
14551
|
* @internal
|
|
14552
14552
|
*/
|
|
14553
14553
|
setAudioContext(e) {
|
|
14554
|
-
this.audioContext = e, this.audioTracks.forEach((t) => (t.track instanceof
|
|
14554
|
+
this.audioContext = e, this.audioTracks.forEach((t) => (t.track instanceof zi || t.track instanceof we) && t.track.setAudioContext(e));
|
|
14555
14555
|
}
|
|
14556
14556
|
addTrackPublication(e) {
|
|
14557
14557
|
e.on(R.Muted, () => {
|
|
14558
|
-
this.emit(
|
|
14558
|
+
this.emit(x.TrackMuted, e);
|
|
14559
14559
|
}), e.on(R.Unmuted, () => {
|
|
14560
|
-
this.emit(
|
|
14560
|
+
this.emit(x.TrackUnmuted, e);
|
|
14561
14561
|
});
|
|
14562
14562
|
const t = e;
|
|
14563
14563
|
switch (t.track && (t.track.sid = e.trackSid), this.tracks.set(e.trackSid, e), e.kind) {
|
|
@@ -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
|
|
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 Hi && (this.videoDimensions = e), this.currentVideoQuality = void 0, this.emitTrackUpdate()));
|
|
14658
14658
|
}
|
|
14659
14659
|
setVideoFPS(e) {
|
|
14660
|
-
this.isManualOperationAllowed() && this.track instanceof
|
|
14660
|
+
this.isManualOperationAllowed() && this.track instanceof Hi && this.fps !== e && (this.fps = e, this.emitTrackUpdate());
|
|
14661
14661
|
}
|
|
14662
14662
|
get videoQuality() {
|
|
14663
14663
|
return this.currentVideoQuality;
|
|
@@ -14697,7 +14697,7 @@ class So extends bt {
|
|
|
14697
14697
|
}), !1);
|
|
14698
14698
|
}
|
|
14699
14699
|
get isAdaptiveStream() {
|
|
14700
|
-
return this.track instanceof
|
|
14700
|
+
return this.track instanceof Hi && this.track.isAdaptiveStream;
|
|
14701
14701
|
}
|
|
14702
14702
|
/* @internal */
|
|
14703
14703
|
emitTrackUpdate() {
|
|
@@ -14726,15 +14726,15 @@ class en extends To {
|
|
|
14726
14726
|
n.participantSid = this.sid;
|
|
14727
14727
|
}), this.signalClient.sendUpdateSubscription(t);
|
|
14728
14728
|
}), e.on(R.SubscriptionPermissionChanged, (t) => {
|
|
14729
|
-
this.emit(
|
|
14729
|
+
this.emit(x.TrackSubscriptionPermissionChanged, e, t);
|
|
14730
14730
|
}), e.on(R.SubscriptionStatusChanged, (t) => {
|
|
14731
|
-
this.emit(
|
|
14731
|
+
this.emit(x.TrackSubscriptionStatusChanged, e, t);
|
|
14732
14732
|
}), e.on(R.Subscribed, (t) => {
|
|
14733
|
-
this.emit(
|
|
14733
|
+
this.emit(x.TrackSubscribed, t, e);
|
|
14734
14734
|
}), e.on(R.Unsubscribed, (t) => {
|
|
14735
|
-
this.emit(
|
|
14735
|
+
this.emit(x.TrackUnsubscribed, t, e);
|
|
14736
14736
|
}), e.on(R.SubscriptionFailed, (t) => {
|
|
14737
|
-
this.emit(
|
|
14737
|
+
this.emit(x.TrackSubscriptionFailed, e.trackSid, t);
|
|
14738
14738
|
});
|
|
14739
14739
|
}
|
|
14740
14740
|
getTrack(e) {
|
|
@@ -14777,7 +14777,7 @@ class en extends To {
|
|
|
14777
14777
|
m.error("could not find published track", {
|
|
14778
14778
|
participant: this.sid,
|
|
14779
14779
|
trackSid: t
|
|
14780
|
-
}), this.emit(
|
|
14780
|
+
}), this.emit(x.TrackSubscriptionFailed, t);
|
|
14781
14781
|
return;
|
|
14782
14782
|
}
|
|
14783
14783
|
a === void 0 && (a = 20), setTimeout(() => {
|
|
@@ -14789,12 +14789,12 @@ class en extends To {
|
|
|
14789
14789
|
m.error("unable to subscribe because MediaStreamTrack is ended. Do not call MediaStreamTrack.stop()", {
|
|
14790
14790
|
participant: this.sid,
|
|
14791
14791
|
trackSid: t
|
|
14792
|
-
}), this.emit(
|
|
14792
|
+
}), this.emit(x.TrackSubscriptionFailed, t);
|
|
14793
14793
|
return;
|
|
14794
14794
|
}
|
|
14795
14795
|
const c = e.kind === "video";
|
|
14796
14796
|
let u;
|
|
14797
|
-
return c ? u = new
|
|
14797
|
+
return c ? u = new Hi(e, t, s, r) : u = new zi(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 zi && u.setVolume(this.volumeMap.get(o.source)), o;
|
|
14798
14798
|
}
|
|
14799
14799
|
/** @internal */
|
|
14800
14800
|
get hasMetadata() {
|
|
@@ -14833,7 +14833,7 @@ class en extends To {
|
|
|
14833
14833
|
participantSid: this.sid
|
|
14834
14834
|
}), this.unpublishTrack(s.trackSid, !0));
|
|
14835
14835
|
}), n.forEach((s) => {
|
|
14836
|
-
this.emit(
|
|
14836
|
+
this.emit(x.TrackPublished, s);
|
|
14837
14837
|
}), !0;
|
|
14838
14838
|
}
|
|
14839
14839
|
/** @internal */
|
|
@@ -14852,7 +14852,7 @@ class en extends To {
|
|
|
14852
14852
|
this.videoTracks.delete(e);
|
|
14853
14853
|
break;
|
|
14854
14854
|
}
|
|
14855
|
-
t && this.emit(
|
|
14855
|
+
t && this.emit(x.TrackUnpublished, n);
|
|
14856
14856
|
}
|
|
14857
14857
|
/**
|
|
14858
14858
|
* @internal
|
|
@@ -14863,7 +14863,7 @@ class en extends To {
|
|
|
14863
14863
|
const t = [];
|
|
14864
14864
|
this.audioTracks.forEach((n) => {
|
|
14865
14865
|
var s;
|
|
14866
|
-
n.track instanceof
|
|
14866
|
+
n.track instanceof zi && t.push(n.track.setSinkId((s = e.deviceId) !== null && s !== void 0 ? s : "default"));
|
|
14867
14867
|
}), yield Promise.all(t);
|
|
14868
14868
|
});
|
|
14869
14869
|
}
|
|
@@ -15006,7 +15006,7 @@ class Br extends To {
|
|
|
15006
15006
|
this.engine = e, this.engine.client.onRemoteMuteChanged = (t, n) => {
|
|
15007
15007
|
const s = this.tracks.get(t);
|
|
15008
15008
|
!s || !s.track || (n ? s.mute() : s.unmute());
|
|
15009
|
-
}, this.engine.client.onSubscribedQualityUpdate = this.handleSubscribedQualityUpdate, this.engine.client.onLocalTrackUnpublished = this.handleLocalTrackUnpublished, this.engine.on(
|
|
15009
|
+
}, this.engine.client.onSubscribedQualityUpdate = this.handleSubscribedQualityUpdate, this.engine.client.onLocalTrackUnpublished = this.handleLocalTrackUnpublished, this.engine.on(L.Connected, this.handleReconnected).on(L.SignalRestarted, this.handleReconnected).on(L.SignalResumed, this.handleReconnected).on(L.Restarting, this.handleReconnecting).on(L.Resuming, this.handleReconnecting).on(L.Disconnected, this.handleDisconnected);
|
|
15010
15010
|
}
|
|
15011
15011
|
/**
|
|
15012
15012
|
* Sets and updates the metadata of the local participant.
|
|
@@ -15058,7 +15058,7 @@ class Br extends To {
|
|
|
15058
15058
|
/** @internal */
|
|
15059
15059
|
setPermissions(e) {
|
|
15060
15060
|
const t = this.permissions, n = super.setPermissions(e);
|
|
15061
|
-
return n && t && this.emit(
|
|
15061
|
+
return n && t && this.emit(x.ParticipantPermissionsChanged, t), n;
|
|
15062
15062
|
}
|
|
15063
15063
|
/** @internal */
|
|
15064
15064
|
setE2EEEnabled(e) {
|
|
@@ -15113,7 +15113,7 @@ class Br extends To {
|
|
|
15113
15113
|
} catch (u) {
|
|
15114
15114
|
throw c == null || c.forEach((d) => {
|
|
15115
15115
|
d.stop();
|
|
15116
|
-
}), u instanceof Error && !(u instanceof Qe) && this.emit(
|
|
15116
|
+
}), u instanceof Error && !(u instanceof Qe) && this.emit(x.MediaDevicesError, u), u;
|
|
15117
15117
|
} finally {
|
|
15118
15118
|
this.pendingPublishing.delete(e);
|
|
15119
15119
|
}
|
|
@@ -15182,7 +15182,7 @@ class Br extends To {
|
|
|
15182
15182
|
createScreenTracks(e) {
|
|
15183
15183
|
return g(this, void 0, void 0, function* () {
|
|
15184
15184
|
if (e === void 0 && (e = {}), e.resolution === void 0 && (e.resolution = Ds.h1080fps15.resolution), navigator.mediaDevices.getDisplayMedia === void 0)
|
|
15185
|
-
throw new
|
|
15185
|
+
throw new Ns("getDisplayMedia not supported");
|
|
15186
15186
|
const t = wd(e), n = yield navigator.mediaDevices.getDisplayMedia(t), s = n.getVideoTracks();
|
|
15187
15187
|
if (s.length === 0)
|
|
15188
15188
|
throw new Qe("no video track found");
|
|
@@ -15301,7 +15301,7 @@ class Br extends To {
|
|
|
15301
15301
|
if ($i(t.videoCodec) && (t.scalabilityMode = (c = t.scalabilityMode) !== null && c !== void 0 ? c : "L3T3_KEY"), t.videoCodec && t.backupCodec && t.videoCodec !== t.backupCodec.codec) {
|
|
15302
15302
|
this.roomOptions.dynacast || (this.roomOptions.dynacast = !0);
|
|
15303
15303
|
const fe = Object.assign({}, t);
|
|
15304
|
-
fe.simulcast = !0, he =
|
|
15304
|
+
fe.simulcast = !0, he = Lr(e, t.backupCodec.codec, fe), Q.simulcastCodecs = [new Be({
|
|
15305
15305
|
codec: t.videoCodec,
|
|
15306
15306
|
cid: e.mediaStreamTrack.id,
|
|
15307
15307
|
enableSimulcastLayers: !0
|
|
@@ -15337,7 +15337,7 @@ 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
|
|
15340
|
+
const A = new xn(e.kind, ae, e);
|
|
15341
15341
|
if (A.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"), {
|
|
@@ -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(
|
|
15365
|
+
return yield this.engine.negotiate(), e instanceof De ? e.startMonitor(this.engine.client) : e instanceof we && e.startMonitor(), this.addTrackPublication(A), this.emit(x.LocalTrackPublished, A), A;
|
|
15366
15366
|
});
|
|
15367
15367
|
}
|
|
15368
15368
|
get isLocal() {
|
|
@@ -15381,7 +15381,7 @@ class Br extends To {
|
|
|
15381
15381
|
throw new Qe("track is not published");
|
|
15382
15382
|
if (!(e instanceof De))
|
|
15383
15383
|
throw new Qe("track is not a video track");
|
|
15384
|
-
const a = Object.assign(Object.assign({}, (s = this.roomOptions) === null || s === void 0 ? void 0 : s.publishDefaults), n), o =
|
|
15384
|
+
const a = Object.assign(Object.assign({}, (s = this.roomOptions) === null || s === void 0 ? void 0 : s.publishDefaults), n), o = Lr(e, t, a);
|
|
15385
15385
|
if (!o) {
|
|
15386
15386
|
m.info("backup codec has been disabled, ignoring request to add additional codec for track");
|
|
15387
15387
|
return;
|
|
@@ -15447,12 +15447,12 @@ class Br extends To {
|
|
|
15447
15447
|
this.videoTracks.delete(r.trackSid);
|
|
15448
15448
|
break;
|
|
15449
15449
|
}
|
|
15450
|
-
return this.emit(
|
|
15450
|
+
return this.emit(x.LocalTrackUnpublished, r), r.setTrack(void 0), a && (yield this.engine.negotiate()), r;
|
|
15451
15451
|
});
|
|
15452
15452
|
}
|
|
15453
15453
|
unpublishTracks(e) {
|
|
15454
15454
|
return g(this, void 0, void 0, function* () {
|
|
15455
|
-
return (yield Promise.all(e.map((n) => this.unpublishTrack(n)))).filter((n) => n instanceof
|
|
15455
|
+
return (yield Promise.all(e.map((n) => this.unpublishTrack(n)))).filter((n) => n instanceof xn);
|
|
15456
15456
|
});
|
|
15457
15457
|
}
|
|
15458
15458
|
republishAllTracks(e) {
|
|
@@ -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
|
|
15540
|
+
t.track !== void 0 && e.push(new We({
|
|
15541
15541
|
cid: t.track.mediaStreamID,
|
|
15542
15542
|
track: t.trackInfo
|
|
15543
15543
|
}));
|
|
@@ -15574,7 +15574,7 @@ class Co extends mt.EventEmitter {
|
|
|
15574
15574
|
return m.info("already connected to room ".concat(this.name)), c(), Promise.resolve();
|
|
15575
15575
|
if (this.connectFuture)
|
|
15576
15576
|
return c(), this.connectFuture.promise;
|
|
15577
|
-
this.setAndEmitConnectionState(Y.Connecting), ((o = this.regionUrlProvider) === null || o === void 0 ? void 0 : o.getServerUrl().toString()) !== s && (this.regionUrl = void 0, this.regionUrlProvider = void 0), Es(new URL(s)) && (this.regionUrlProvider === void 0 ? this.regionUrlProvider = new
|
|
15577
|
+
this.setAndEmitConnectionState(Y.Connecting), ((o = this.regionUrlProvider) === null || o === void 0 ? void 0 : o.getServerUrl().toString()) !== s && (this.regionUrl = void 0, this.regionUrlProvider = void 0), Es(new URL(s)) && (this.regionUrlProvider === void 0 ? this.regionUrlProvider = new xr(s, r) : this.regionUrlProvider.updateToken(r), this.regionUrlProvider.fetchRegionSettings().catch((h) => {
|
|
15578
15578
|
m.warn("could not fetch region settings", {
|
|
15579
15579
|
error: h
|
|
15580
15580
|
});
|
|
@@ -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,
|
|
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
|
}
|
|
@@ -15745,7 +15745,7 @@ class Co extends mt.EventEmitter {
|
|
|
15745
15745
|
if (!a)
|
|
15746
15746
|
return;
|
|
15747
15747
|
const o = a.getTrackPublication(r.trackSid);
|
|
15748
|
-
!o || !o.track || (o.track.streamState = C.streamStateFromProto(r.state), a.emit(
|
|
15748
|
+
!o || !o.track || (o.track.streamState = C.streamStateFromProto(r.state), a.emit(x.TrackStreamStateChanged, o, o.track.streamState), this.emitWhenConnected(P.TrackStreamStateChanged, o, o.track.streamState, a));
|
|
15749
15749
|
});
|
|
15750
15750
|
}, this.handleSubscriptionPermissionUpdate = (s) => {
|
|
15751
15751
|
const r = this.participants.get(s.participantSid);
|
|
@@ -15761,7 +15761,7 @@ class Co extends mt.EventEmitter {
|
|
|
15761
15761
|
a && a.setSubscriptionError(s.err);
|
|
15762
15762
|
}, this.handleDataPacket = (s, r) => {
|
|
15763
15763
|
const a = this.participants.get(s.participantSid);
|
|
15764
|
-
this.emit(P.DataReceived, s.payload, a, r, s.topic), a == null || a.emit(
|
|
15764
|
+
this.emit(P.DataReceived, s.payload, a, r, s.topic), a == null || a.emit(x.DataReceived, s.payload, r);
|
|
15765
15765
|
}, this.handleAudioPlaybackStarted = () => {
|
|
15766
15766
|
this.canPlaybackAudio || (this.audioEnabled = !0, this.emit(P.AudioPlaybackStatusChanged, !0));
|
|
15767
15767
|
}, this.handleAudioPlaybackFailed = (s) => {
|
|
@@ -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
|
|
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 Ht(), 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();
|
|
15805
15805
|
}
|
|
15806
15806
|
/**
|
|
15807
15807
|
* @experimental
|
|
@@ -15816,7 +15816,7 @@ class Co extends mt.EventEmitter {
|
|
|
15816
15816
|
}
|
|
15817
15817
|
setupE2EE() {
|
|
15818
15818
|
var e;
|
|
15819
|
-
this.options.e2ee && (this.e2eeManager = new
|
|
15819
|
+
this.options.e2ee && (this.e2eeManager = new Gd(this.options.e2ee), this.e2eeManager.on(Zt.ParticipantEncryptionStatusChanged, (t, n) => {
|
|
15820
15820
|
n instanceof Br && (this.isE2EEEnabled = t), this.emit(P.ParticipantEncryptionStatusChanged, t, n);
|
|
15821
15821
|
}), this.e2eeManager.on(Zt.EncryptionError, (t) => this.emit(P.EncryptionError, t)), (e = this.e2eeManager) === null || e === void 0 || e.setup(this));
|
|
15822
15822
|
}
|
|
@@ -15851,17 +15851,17 @@ class Co extends mt.EventEmitter {
|
|
|
15851
15851
|
return (t = (e = this.roomInfo) === null || e === void 0 ? void 0 : e.numPublishers) !== null && t !== void 0 ? t : 0;
|
|
15852
15852
|
}
|
|
15853
15853
|
maybeCreateEngine() {
|
|
15854
|
-
this.engine && !this.engine.isClosed || (this.engine = new ol(this.options), this.engine.on(
|
|
15854
|
+
this.engine && !this.engine.isClosed || (this.engine = new ol(this.options), this.engine.on(L.ParticipantUpdate, this.handleParticipantUpdates).on(L.RoomUpdate, this.handleRoomUpdate).on(L.SpeakersChanged, this.handleSpeakersChanged).on(L.StreamStateChanged, this.handleStreamStateUpdate).on(L.ConnectionQualityUpdate, this.handleConnectionQualityUpdate).on(L.SubscriptionError, this.handleSubscriptionError).on(L.SubscriptionPermissionUpdate, this.handleSubscriptionPermissionUpdate).on(L.MediaTrackAdded, (e, t, n) => {
|
|
15855
15855
|
this.onTrackAdded(e, t, n);
|
|
15856
|
-
}).on(
|
|
15856
|
+
}).on(L.Disconnected, (e) => {
|
|
15857
15857
|
this.handleDisconnect(this.options.stopLocalTrackOnUnpublish, e);
|
|
15858
|
-
}).on(
|
|
15858
|
+
}).on(L.ActiveSpeakersUpdate, this.handleActiveSpeakersUpdate).on(L.DataPacketReceived, this.handleDataPacket).on(L.Resuming, () => {
|
|
15859
15859
|
this.clearConnectionReconcile(), this.setAndEmitConnectionState(Y.Reconnecting) && this.emit(P.Reconnecting), this.cachedParticipantSids = Array.from(this.participants.keys());
|
|
15860
|
-
}).on(
|
|
15860
|
+
}).on(L.Resumed, () => {
|
|
15861
15861
|
this.setAndEmitConnectionState(Y.Connected), this.emit(P.Reconnected), this.registerConnectionReconcile(), this.updateSubscriptions(), Array.from(this.participants.values()).filter((t) => !this.cachedParticipantSids.includes(t.sid)).forEach((t) => this.emit(P.ParticipantConnected, t)), this.cachedParticipantSids = [];
|
|
15862
|
-
}).on(
|
|
15862
|
+
}).on(L.SignalResumed, () => {
|
|
15863
15863
|
this.state === Y.Reconnecting && this.sendSyncState();
|
|
15864
|
-
}).on(
|
|
15864
|
+
}).on(L.Restarting, this.handleRestarting).on(L.SignalRestarted, this.handleSignalRestarted).on(L.DCBufferStatusChanged, (e, t) => {
|
|
15865
15865
|
this.emit(P.DCBufferStatusChanged, e, t);
|
|
15866
15866
|
}), this.localParticipant && this.localParticipant.setupEngine(this.engine), this.e2eeManager && this.e2eeManager.setupEngine(this.engine));
|
|
15867
15867
|
}
|
|
@@ -15892,7 +15892,7 @@ class Co extends mt.EventEmitter {
|
|
|
15892
15892
|
m.debug("prepareConnection to ".concat(e));
|
|
15893
15893
|
try {
|
|
15894
15894
|
if (Es(new URL(e)) && t) {
|
|
15895
|
-
this.regionUrlProvider = new
|
|
15895
|
+
this.regionUrlProvider = new xr(e, t);
|
|
15896
15896
|
const n = yield this.regionUrlProvider.getNextBestRegionUrl();
|
|
15897
15897
|
n && this.state === Y.Disconnected && (this.regionUrl = n, yield fetch(kr(n), {
|
|
15898
15898
|
method: "HEAD"
|
|
@@ -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:
|
|
15986
|
+
reason: zt.CLIENT_INITIATED,
|
|
15987
15987
|
canReconnect: !0
|
|
15988
15988
|
}));
|
|
15989
15989
|
});
|
|
@@ -16120,7 +16120,7 @@ class Co extends mt.EventEmitter {
|
|
|
16120
16120
|
});
|
|
16121
16121
|
}
|
|
16122
16122
|
setupLocalParticipantEvents() {
|
|
16123
|
-
this.localParticipant.on(
|
|
16123
|
+
this.localParticipant.on(x.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).on(x.ParticipantNameChanged, this.onLocalParticipantNameChanged).on(x.TrackMuted, this.onLocalTrackMuted).on(x.TrackUnmuted, this.onLocalTrackUnmuted).on(x.LocalTrackPublished, this.onLocalTrackPublished).on(x.LocalTrackUnpublished, this.onLocalTrackUnpublished).on(x.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).on(x.MediaDevicesError, this.onMediaDevicesError).on(x.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged);
|
|
16124
16124
|
}
|
|
16125
16125
|
recreateEngine() {
|
|
16126
16126
|
var e;
|
|
@@ -16167,7 +16167,7 @@ class Co extends mt.EventEmitter {
|
|
|
16167
16167
|
}), this.localParticipant.tracks.forEach((s) => {
|
|
16168
16168
|
var r, a;
|
|
16169
16169
|
s.track && this.localParticipant.unpublishTrack(s.track, e), e && ((r = s.track) === null || r === void 0 || r.detach(), (a = s.track) === null || a === void 0 || a.stop());
|
|
16170
|
-
}), this.localParticipant.off(
|
|
16170
|
+
}), this.localParticipant.off(x.ParticipantMetadataChanged, this.onLocalParticipantMetadataChanged).off(x.ParticipantNameChanged, this.onLocalParticipantNameChanged).off(x.TrackMuted, this.onLocalTrackMuted).off(x.TrackUnmuted, this.onLocalTrackUnmuted).off(x.LocalTrackPublished, this.onLocalTrackPublished).off(x.LocalTrackUnpublished, this.onLocalTrackUnpublished).off(x.ConnectionQualityChanged, this.onLocalConnectionQualityChanged).off(x.MediaDevicesError, this.onMediaDevicesError).off(x.ParticipantPermissionsChanged, this.onLocalParticipantPermissionsChanged), this.localParticipant.tracks.clear(), this.localParticipant.videoTracks.clear(), this.localParticipant.audioTracks.clear(), this.participants.clear(), this.activeSpeakers = [], this.audioContext && typeof this.options.expWebAudioMix == "boolean" && (this.audioContext.close(), this.audioContext = void 0), _e() && (window.removeEventListener("beforeunload", this.onPageLeave), window.removeEventListener("pagehide", this.onPageLeave), window.removeEventListener("freeze", this.onPageLeave), (n = navigator.mediaDevices) === null || n === void 0 || n.removeEventListener("devicechange", this.handleDeviceChange));
|
|
16171
16171
|
} finally {
|
|
16172
16172
|
this.setAndEmitConnectionState(Y.Disconnected), this.emit(P.Disconnected, t);
|
|
16173
16173
|
}
|
|
@@ -16200,33 +16200,33 @@ class Co extends mt.EventEmitter {
|
|
|
16200
16200
|
if (this.participants.has(e))
|
|
16201
16201
|
return this.participants.get(e);
|
|
16202
16202
|
const n = this.createParticipant(e, t);
|
|
16203
|
-
return this.participants.set(e, n), this.identityToSid.set(t.identity, t.sid), this.emitWhenConnected(P.ParticipantConnected, n), n.on(
|
|
16203
|
+
return this.participants.set(e, n), this.identityToSid.set(t.identity, t.sid), this.emitWhenConnected(P.ParticipantConnected, n), n.on(x.TrackPublished, (s) => {
|
|
16204
16204
|
this.emitWhenConnected(P.TrackPublished, s, n);
|
|
16205
|
-
}).on(
|
|
16205
|
+
}).on(x.TrackSubscribed, (s, r) => {
|
|
16206
16206
|
s.kind === C.Kind.Audio && (s.on(R.AudioPlaybackStarted, this.handleAudioPlaybackStarted), s.on(R.AudioPlaybackFailed, this.handleAudioPlaybackFailed)), this.emit(P.TrackSubscribed, s, r, n);
|
|
16207
|
-
}).on(
|
|
16207
|
+
}).on(x.TrackUnpublished, (s) => {
|
|
16208
16208
|
this.emit(P.TrackUnpublished, s, n);
|
|
16209
|
-
}).on(
|
|
16209
|
+
}).on(x.TrackUnsubscribed, (s, r) => {
|
|
16210
16210
|
this.emit(P.TrackUnsubscribed, s, r, n);
|
|
16211
|
-
}).on(
|
|
16211
|
+
}).on(x.TrackSubscriptionFailed, (s) => {
|
|
16212
16212
|
this.emit(P.TrackSubscriptionFailed, s, n);
|
|
16213
|
-
}).on(
|
|
16213
|
+
}).on(x.TrackMuted, (s) => {
|
|
16214
16214
|
this.emitWhenConnected(P.TrackMuted, s, n);
|
|
16215
|
-
}).on(
|
|
16215
|
+
}).on(x.TrackUnmuted, (s) => {
|
|
16216
16216
|
this.emitWhenConnected(P.TrackUnmuted, s, n);
|
|
16217
|
-
}).on(
|
|
16217
|
+
}).on(x.ParticipantMetadataChanged, (s) => {
|
|
16218
16218
|
this.emitWhenConnected(P.ParticipantMetadataChanged, s, n);
|
|
16219
|
-
}).on(
|
|
16219
|
+
}).on(x.ParticipantNameChanged, (s) => {
|
|
16220
16220
|
this.emitWhenConnected(P.ParticipantNameChanged, s, n);
|
|
16221
|
-
}).on(
|
|
16221
|
+
}).on(x.ConnectionQualityChanged, (s) => {
|
|
16222
16222
|
this.emitWhenConnected(P.ConnectionQualityChanged, s, n);
|
|
16223
|
-
}).on(
|
|
16223
|
+
}).on(x.ParticipantPermissionsChanged, (s) => {
|
|
16224
16224
|
this.emitWhenConnected(P.ParticipantPermissionsChanged, s, n);
|
|
16225
|
-
}).on(
|
|
16225
|
+
}).on(x.TrackSubscriptionStatusChanged, (s, r) => {
|
|
16226
16226
|
this.emitWhenConnected(P.TrackSubscriptionStatusChanged, s, r, n);
|
|
16227
|
-
}).on(
|
|
16227
|
+
}).on(x.TrackSubscriptionFailed, (s, r) => {
|
|
16228
16228
|
this.emit(P.TrackSubscriptionFailed, s, n, r);
|
|
16229
|
-
}).on(
|
|
16229
|
+
}).on(x.TrackSubscriptionPermissionChanged, (s, r) => {
|
|
16230
16230
|
this.emitWhenConnected(P.TrackSubscriptionPermissionChanged, s, r, n);
|
|
16231
16231
|
}), t && n.updateInfo(t), n;
|
|
16232
16232
|
}
|
|
@@ -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,
|
|
16278
|
+
}), e >= 3 && (this.recreateEngine(), this.handleDisconnect(this.options.stopLocalTrackOnUnpublish, zt.STATE_MISMATCH))) : e = 0;
|
|
16279
16279
|
}, Sl);
|
|
16280
16280
|
}
|
|
16281
16281
|
clearConnectionReconcile() {
|
|
@@ -16326,7 +16326,7 @@ class Co extends mt.EventEmitter {
|
|
|
16326
16326
|
identity: "simulated-local",
|
|
16327
16327
|
name: "local-name"
|
|
16328
16328
|
})), this.setupLocalParticipantEvents(), this.emit(P.SignalConnected), this.emit(P.Connected), this.setAndEmitConnectionState(Y.Connected), s.video) {
|
|
16329
|
-
const a = new
|
|
16329
|
+
const a = new xn(C.Kind.Video, new Pe({
|
|
16330
16330
|
source: re.CAMERA,
|
|
16331
16331
|
sid: Math.floor(Math.random() * 1e4).toString(),
|
|
16332
16332
|
type: ge.AUDIO,
|
|
@@ -16334,17 +16334,17 @@ class Co extends mt.EventEmitter {
|
|
|
16334
16334
|
}), new De(s.useRealTracks ? (yield window.navigator.mediaDevices.getUserMedia({
|
|
16335
16335
|
video: !0
|
|
16336
16336
|
})).getVideoTracks()[0] : br((t = 160 * r.aspectRatios[0]) !== null && t !== void 0 ? t : 1, 160, !0, !0)));
|
|
16337
|
-
this.localParticipant.addTrackPublication(a), this.localParticipant.emit(
|
|
16337
|
+
this.localParticipant.addTrackPublication(a), this.localParticipant.emit(x.LocalTrackPublished, a);
|
|
16338
16338
|
}
|
|
16339
16339
|
if (s.audio) {
|
|
16340
|
-
const a = new
|
|
16340
|
+
const a = new xn(C.Kind.Audio, new Pe({
|
|
16341
16341
|
source: re.MICROPHONE,
|
|
16342
16342
|
sid: Math.floor(Math.random() * 1e4).toString(),
|
|
16343
16343
|
type: ge.AUDIO
|
|
16344
16344
|
}), new we(s.useRealTracks ? (yield navigator.mediaDevices.getUserMedia({
|
|
16345
16345
|
audio: !0
|
|
16346
16346
|
})).getAudioTracks()[0] : Xn()));
|
|
16347
|
-
this.localParticipant.addTrackPublication(a), this.localParticipant.emit(
|
|
16347
|
+
this.localParticipant.addTrackPublication(a), this.localParticipant.emit(x.LocalTrackPublished, a);
|
|
16348
16348
|
}
|
|
16349
16349
|
for (let a = 0; a < r.count - 1; a += 1) {
|
|
16350
16350
|
let o = new Me({
|
|
@@ -16712,7 +16712,7 @@ class jl extends mt.EventEmitter {
|
|
|
16712
16712
|
});
|
|
16713
16713
|
}
|
|
16714
16714
|
}
|
|
16715
|
-
function
|
|
16715
|
+
function xl() {
|
|
16716
16716
|
const i = document.createElement("style");
|
|
16717
16717
|
return i.textContent = `
|
|
16718
16718
|
* {
|
|
@@ -16720,7 +16720,7 @@ function Ll() {
|
|
|
16720
16720
|
}
|
|
16721
16721
|
`, i;
|
|
16722
16722
|
}
|
|
16723
|
-
function
|
|
16723
|
+
function Ll() {
|
|
16724
16724
|
const i = document.createElement("style");
|
|
16725
16725
|
return i.textContent = `
|
|
16726
16726
|
* {
|
|
@@ -16729,15 +16729,15 @@ function Nl() {
|
|
|
16729
16729
|
}
|
|
16730
16730
|
`, i;
|
|
16731
16731
|
}
|
|
16732
|
-
function
|
|
16733
|
-
Vo(i, "svelte-
|
|
16732
|
+
function Nl(i) {
|
|
16733
|
+
Vo(i, "svelte-145zz32", '#liveroom-client-element.svelte-145zz32.svelte-145zz32{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-145zz32.svelte-145zz32{z-index:99999;position:fixed;inset:0;overflow:hidden;pointer-events:none}.user.svelte-145zz32.svelte-145zz32{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-145zz32 .cursor.svelte-145zz32{position:absolute;top:0;left:0;color:var(--color);transform-origin:top left;transform:rotate(6deg)}.user[data-isself="true"].svelte-145zz32 .cursor.svelte-145zz32{display:none}.user.svelte-145zz32 .user-label.svelte-145zz32{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-145zz32 .user-label[data-cameraenabled="false"].svelte-145zz32{position:absolute;top:18px;left:14px}.user.svelte-145zz32 .user-label[data-cameraenabled="true"].svelte-145zz32{position:absolute;top:10px;left:6px}.user[data-isself="true"].svelte-145zz32 .user-label.svelte-145zz32{display:none}.user-label.svelte-145zz32 .user-name.svelte-145zz32{display:flex;justify-content:center;align-items:center;background-color:var(--color)}.user.svelte-145zz32 .user-label[data-cameraenabled="false"] .user-name.svelte-145zz32{padding:4px 10px}.user.svelte-145zz32 .user-label[data-cameraenabled="true"] .user-name.svelte-145zz32{position:absolute;inset-inline:0;bottom:0;padding:1px 0 5px 0}.user.svelte-145zz32 .user-label #video-container.svelte-145zz32{height:100px;width:100px;overflow:hidden;display:flex;justify-content:center;align-items:center}.user.svelte-145zz32 .user-label[data-cameraenabled="false"] #video-container.svelte-145zz32{display:none}.user.svelte-145zz32 .user-label #video-container video.svelte-145zz32{height:100%;aspect-ratio:16 / 9;transform:scaleX(-1);margin-bottom:30px}.user.svelte-145zz32 .halo.svelte-145zz32{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-145zz32 .halo[data-show="true"].svelte-145zz32{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 =
|
|
16740
|
+
let e, t = [], n = /* @__PURE__ */ new Map(), s = Hs(Object.values(
|
|
16741
16741
|
/*users*/
|
|
16742
16742
|
i[1]
|
|
16743
16743
|
));
|
|
@@ -16754,16 +16754,16 @@ function jr(i) {
|
|
|
16754
16754
|
e = Ye("div");
|
|
16755
16755
|
for (let a = 0; a < t.length; a += 1)
|
|
16756
16756
|
t[a].c();
|
|
16757
|
-
|
|
16757
|
+
G(e, "id", "users-container"), G(e, "class", "svelte-145zz32");
|
|
16758
16758
|
},
|
|
16759
16759
|
m(a, o) {
|
|
16760
|
-
|
|
16760
|
+
Ln(a, e, o);
|
|
16761
16761
|
for (let c = 0; c < t.length; c += 1)
|
|
16762
16762
|
t[c] && t[c].m(e, null);
|
|
16763
16763
|
},
|
|
16764
16764
|
p(a, o) {
|
|
16765
16765
|
o[0] & /*users, me, users_count, users_videos_els*/
|
|
16766
|
-
15 && (s =
|
|
16766
|
+
15 && (s = Hs(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 =
|
|
16798
|
-
e[29].id}`),
|
|
16799
|
-
e[29].camera_enabled),
|
|
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 = zr(p), w = cn(), _ = Ye("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-145zz32"), G(c, "id", u = `user-video-${/*user*/
|
|
16798
|
+
e[29].id}`), G(c, "class", "svelte-145zz32"), G(o, "id", "video-container"), G(o, "class", "svelte-145zz32"), G(f, "class", "user-name svelte-145zz32"), G(a, "class", "user-label svelte-145zz32"), G(a, "data-cameraenabled", T = /*user*/
|
|
16799
|
+
e[29].camera_enabled), G(_, "class", "halo svelte-145zz32"), 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,8 +16804,8 @@ 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),
|
|
16808
|
-
e[29].id),
|
|
16807
|
+
e[3] > 1), G(t, "id", j = "user-" + /*user*/
|
|
16808
|
+
e[29].id), G(t, "class", "user svelte-145zz32"), G(t, "data-isself", he = /*user*/
|
|
16809
16809
|
e[29].id == /*me*/
|
|
16810
16810
|
e[0].id), hi(
|
|
16811
16811
|
t,
|
|
@@ -16821,18 +16821,18 @@ function Vr(i, e) {
|
|
|
16821
16821
|
) + "vh"), this.first = t;
|
|
16822
16822
|
},
|
|
16823
16823
|
m(K, A) {
|
|
16824
|
-
|
|
16824
|
+
Ln(K, t, A), Le(t, n), Le(n, s), Le(t, r), Le(t, a), Le(a, o), Le(o, c), ae(), Le(a, h), Le(a, f), Le(f, b), Le(t, w), Le(t, _), Le(t, Q);
|
|
16825
16825
|
},
|
|
16826
16826
|
p(K, A) {
|
|
16827
16827
|
e = K, A[0] & /*users*/
|
|
16828
16828
|
2 && u !== (u = `user-video-${/*user*/
|
|
16829
|
-
e[29].id}`) &&
|
|
16829
|
+
e[29].id}`) && G(c, "id", u), d !== /*user*/
|
|
16830
16830
|
e[29] && (q(), d = /*user*/
|
|
16831
16831
|
e[29], ae()), A[0] & /*users*/
|
|
16832
16832
|
2 && p !== (p = /*user*/
|
|
16833
|
-
e[29].name + "") &&
|
|
16834
|
-
2 && T !== (T =
|
|
16835
|
-
e[29].camera_enabled) &&
|
|
16833
|
+
e[29].name + "") && Ho(b, p), A[0] & /*users*/
|
|
16834
|
+
2 && T !== (T = /*user*/
|
|
16835
|
+
e[29].camera_enabled) && G(a, "data-cameraenabled", T), A[0] & /*users, me, users_count*/
|
|
16836
16836
|
11 && M !== (M = /*user*/
|
|
16837
16837
|
(e[29].id == /*me*/
|
|
16838
16838
|
e[0].id && /*user*/
|
|
@@ -16841,12 +16841,12 @@ function Vr(i, e) {
|
|
|
16841
16841
|
e[0].id && /*user*/
|
|
16842
16842
|
(e[29].is_shift_key_down || /*user*/
|
|
16843
16843
|
e[29].is_mouse_down)) && /*users_count*/
|
|
16844
|
-
e[3] > 1) &&
|
|
16844
|
+
e[3] > 1) && G(_, "data-show", M), A[0] & /*users*/
|
|
16845
16845
|
2 && j !== (j = "user-" + /*user*/
|
|
16846
|
-
e[29].id) &&
|
|
16846
|
+
e[29].id) && G(t, "id", j), A[0] & /*users, me*/
|
|
16847
16847
|
3 && he !== (he = /*user*/
|
|
16848
16848
|
e[29].id == /*me*/
|
|
16849
|
-
e[0].id) &&
|
|
16849
|
+
e[0].id) && G(t, "data-isself", he), A[0] & /*users*/
|
|
16850
16850
|
2 && hi(
|
|
16851
16851
|
t,
|
|
16852
16852
|
"--color",
|
|
@@ -16875,18 +16875,18 @@ function Dl(i) {
|
|
|
16875
16875
|
);
|
|
16876
16876
|
return {
|
|
16877
16877
|
c() {
|
|
16878
|
-
e = Ye("div"), t && t.c(),
|
|
16878
|
+
e = Ye("div"), t && t.c(), G(e, "id", "liveroom-client-element"), G(e, "class", "svelte-145zz32");
|
|
16879
16879
|
},
|
|
16880
16880
|
m(n, s) {
|
|
16881
|
-
|
|
16881
|
+
Ln(n, e, s), t && t.m(e, null);
|
|
16882
16882
|
},
|
|
16883
16883
|
p(n, s) {
|
|
16884
16884
|
/*me*/
|
|
16885
16885
|
n[0] && /*users*/
|
|
16886
16886
|
n[1] ? t ? t.p(n, s) : (t = jr(n), t.c(), t.m(e, null)) : t && (t.d(1), t = null);
|
|
16887
16887
|
},
|
|
16888
|
-
i:
|
|
16889
|
-
o:
|
|
16888
|
+
i: Wi,
|
|
16889
|
+
o: Wi,
|
|
16890
16890
|
d(n) {
|
|
16891
16891
|
n && nn(e), t && t.d();
|
|
16892
16892
|
}
|
|
@@ -16899,8 +16899,8 @@ function _s(i, e) {
|
|
|
16899
16899
|
return e === "vertical" && ["auto", "scroll"].includes(t) && i.scrollHeight > i.clientHeight || e === "horizontal" && ["auto", "scroll"].includes(n) && i.scrollWidth > i.clientWidth ? i : i.parentElement ? _s(i.parentElement, e) : window;
|
|
16900
16900
|
}
|
|
16901
16901
|
function Ml(i, e, t) {
|
|
16902
|
-
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 =
|
|
16903
|
-
|
|
16902
|
+
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 = xl(), f = Ll(), p, b, T, w, _ = {}, M;
|
|
16903
|
+
Go(async () => {
|
|
16904
16904
|
console.log(`[Liveroom] Starting in room '${r}' (user name: '${a}')... (v${n})`), j();
|
|
16905
16905
|
}), Ko(() => {
|
|
16906
16906
|
he(), di();
|
|
@@ -17082,7 +17082,7 @@ class Ul extends cc {
|
|
|
17082
17082
|
user_name: 7,
|
|
17083
17083
|
user_color: 8
|
|
17084
17084
|
},
|
|
17085
|
-
|
|
17085
|
+
Nl,
|
|
17086
17086
|
[-1, -1]
|
|
17087
17087
|
);
|
|
17088
17088
|
}
|