@ikonai/sdk 1.0.21 → 1.0.22
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/assets/{audio-playback-worker-B2QUogPo.js → audio-playback-worker-DjOBgBVm.js} +28 -28
- package/assets/{protocol-worker-DE8LDJVA.js → protocol-worker-BIX4IFii.js} +1 -1
- package/assets/{video-capture-worker-DTgsPNGF.js → video-capture-worker-Dp65P0wr.js} +86 -86
- package/assets/{video-playback-worker-DK-XDQMf.js → video-playback-worker-B3i4lAcK.js} +1 -1
- package/client/ikon-client.d.ts +6 -0
- package/index.js +1078 -1045
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Cs = {
|
|
2
2
|
Compressed: 8
|
|
3
3
|
};
|
|
4
|
-
function
|
|
4
|
+
function Dh(t) {
|
|
5
5
|
return t;
|
|
6
6
|
}
|
|
7
7
|
function Te(t) {
|
|
@@ -52,9 +52,9 @@ async function at(t, e, n) {
|
|
|
52
52
|
throw new Error(`Unexpected payload type ${s.payloadType}`);
|
|
53
53
|
const i = 27 + s.targetIds.length * 4;
|
|
54
54
|
let o = r.subarray(i, s.length);
|
|
55
|
-
return (s.flags &
|
|
55
|
+
return (s.flags & Cs.Compressed) !== 0 && (o = await ys(o)), o;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function M(t, e, n, r, s) {
|
|
58
58
|
const i = s?.trackId ?? 0, o = s?.sequenceId ?? 0, a = s?.flags ?? 0, c = s?.targetIds ?? [], l = s?.payloadType ?? 8, h = 27 + c.length * 4, f = h + e.length, d = new Uint8Array(f), p = new DataView(d.buffer);
|
|
59
59
|
p.setUint32(0, f, !0), p.setUint32(4, t >>> 0, !0), p.setUint32(8, r >>> 0, !0), p.setUint32(12, i >>> 0, !0), p.setUint32(16, o >>> 0, !0), p.setUint32(20, c.length >>> 0, !0), p.setUint8(24, n & 255), p.setUint8(25, l & 255), p.setUint8(26, a & 255);
|
|
60
60
|
let _ = 27;
|
|
@@ -62,7 +62,7 @@ function P(t, e, n, r, s) {
|
|
|
62
62
|
p.setUint32(_, c[T] >>> 0, !0), _ += 4;
|
|
63
63
|
return d.set(e, h), d;
|
|
64
64
|
}
|
|
65
|
-
async function
|
|
65
|
+
async function ys(t) {
|
|
66
66
|
if (typeof DecompressionStream > "u")
|
|
67
67
|
throw new Error("DecompressionStream not supported");
|
|
68
68
|
const e = new DecompressionStream("gzip"), n = e.writable.getWriter(), r = new Uint8Array(t);
|
|
@@ -81,7 +81,7 @@ async function Cs(t) {
|
|
|
81
81
|
return a;
|
|
82
82
|
}
|
|
83
83
|
var U = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(U || {});
|
|
84
|
-
const jt = 161, zt = 162, Le = new TextEncoder(),
|
|
84
|
+
const jt = 161, zt = 162, Le = new TextEncoder(), As = new TextDecoder("utf-8", { fatal: !0 });
|
|
85
85
|
class v {
|
|
86
86
|
constructor(e = 1) {
|
|
87
87
|
this.version = e, this.buffer.writeByte(jt), this.buffer.writeVarUInt(e >>> 0);
|
|
@@ -130,7 +130,7 @@ class v {
|
|
|
130
130
|
this.writeVariableField(e, 11, i);
|
|
131
131
|
}
|
|
132
132
|
writeArrayField(e, n, r) {
|
|
133
|
-
const s = new
|
|
133
|
+
const s = new Ge(n);
|
|
134
134
|
r(s);
|
|
135
135
|
const i = s.finish();
|
|
136
136
|
this.writeVariableField(e, 9, i);
|
|
@@ -151,10 +151,10 @@ class v {
|
|
|
151
151
|
this.writeFieldHeader(e, n, r.length), this.buffer.writeBytes(r);
|
|
152
152
|
}
|
|
153
153
|
writeFieldHeader(e, n, r) {
|
|
154
|
-
this.buffer.writeUInt32(e >>> 0), this.buffer.writeByte(Fe(n)),
|
|
154
|
+
this.buffer.writeUInt32(e >>> 0), this.buffer.writeByte(Fe(n)), Ds(n) && this.buffer.writeVarUInt(r >>> 0);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
class
|
|
157
|
+
class Ge {
|
|
158
158
|
constructor(e) {
|
|
159
159
|
this.elementType = e;
|
|
160
160
|
}
|
|
@@ -241,7 +241,7 @@ class We {
|
|
|
241
241
|
9
|
|
242
242
|
/* Array */
|
|
243
243
|
), this.count++;
|
|
244
|
-
const r = new
|
|
244
|
+
const r = new Ge(e);
|
|
245
245
|
n(r);
|
|
246
246
|
const s = r.finish();
|
|
247
247
|
this.payload.writeBytes(s);
|
|
@@ -275,7 +275,7 @@ class ct {
|
|
|
275
275
|
beginEntry() {
|
|
276
276
|
if (this.entryOpen)
|
|
277
277
|
throw new Error("Previous dictionary entry not completed");
|
|
278
|
-
return this.count++, this.entryOpen = !0, new
|
|
278
|
+
return this.count++, this.entryOpen = !0, new Rs(this.keyType, this.valueType, this.payload, () => {
|
|
279
279
|
this.entryOpen = !1;
|
|
280
280
|
});
|
|
281
281
|
}
|
|
@@ -286,7 +286,7 @@ class ct {
|
|
|
286
286
|
return e.writeByte(Fe(this.keyType)), e.writeByte(Fe(this.valueType)), e.writeVarUInt(this.count), e.writeBytes(this.payload.toUint8Array()), e.toUint8Array();
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
class
|
|
289
|
+
class Rs {
|
|
290
290
|
constructor(e, n, r, s) {
|
|
291
291
|
this.keyType = e, this.valueType = n, this.payload = r, this.onComplete = s;
|
|
292
292
|
}
|
|
@@ -446,7 +446,7 @@ class As {
|
|
|
446
446
|
9
|
|
447
447
|
/* Array */
|
|
448
448
|
);
|
|
449
|
-
const r = new
|
|
449
|
+
const r = new Ge(e);
|
|
450
450
|
n(r);
|
|
451
451
|
const s = r.finish();
|
|
452
452
|
this.payload.writeBytes(s), this.valueWritten = !0;
|
|
@@ -489,7 +489,7 @@ class H {
|
|
|
489
489
|
throw new Error("Teleport payload too short");
|
|
490
490
|
if (n[0] !== jt || n[n.length - 1] !== zt)
|
|
491
491
|
throw new Error("Teleport object missing markers");
|
|
492
|
-
const r = { offset: 1 }, s =
|
|
492
|
+
const r = { offset: 1 }, s = W(n, r, "InvalidLength");
|
|
493
493
|
return new H(n, s, r.offset);
|
|
494
494
|
}
|
|
495
495
|
next() {
|
|
@@ -497,7 +497,7 @@ class H {
|
|
|
497
497
|
return null;
|
|
498
498
|
if (this.offset + 5 > this.buffer.length)
|
|
499
499
|
throw new Error("Teleport object truncated");
|
|
500
|
-
const e =
|
|
500
|
+
const e = vs(this.buffer, this.offset);
|
|
501
501
|
this.offset += 4;
|
|
502
502
|
const n = this.buffer[this.offset++], r = n >> 4 & 15;
|
|
503
503
|
if ((n & 15) !== 0)
|
|
@@ -505,12 +505,12 @@ class H {
|
|
|
505
505
|
const s = ne(r);
|
|
506
506
|
let i;
|
|
507
507
|
if (s >= 0)
|
|
508
|
-
|
|
508
|
+
F(this.buffer, this.offset, s), i = this.buffer.subarray(this.offset, this.offset + s), this.offset += s;
|
|
509
509
|
else {
|
|
510
|
-
const o = { offset: this.offset }, a =
|
|
511
|
-
|
|
510
|
+
const o = { offset: this.offset }, a = W(this.buffer, o, "InvalidLength");
|
|
511
|
+
F(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
|
|
512
512
|
}
|
|
513
|
-
return new
|
|
513
|
+
return new bs(e, r, i);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
class K {
|
|
@@ -575,7 +575,7 @@ class K {
|
|
|
575
575
|
return this.ensureType(
|
|
576
576
|
12
|
|
577
577
|
/* String */
|
|
578
|
-
),
|
|
578
|
+
), As.decode(this.payload);
|
|
579
579
|
}
|
|
580
580
|
asGuid() {
|
|
581
581
|
return this.ensureType(
|
|
@@ -606,7 +606,7 @@ class K {
|
|
|
606
606
|
throw new Error(`Teleport value has type ${U[this.type]}, expected ${U[e]}`);
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
class
|
|
609
|
+
class bs extends K {
|
|
610
610
|
constructor(e, n, r) {
|
|
611
611
|
super(n, r), this.fieldId = e;
|
|
612
612
|
}
|
|
@@ -627,7 +627,7 @@ class lt {
|
|
|
627
627
|
if (this.elementType = n >> 4 & 15, (n & 15) !== 0)
|
|
628
628
|
throw new Error("Array flags must be zero");
|
|
629
629
|
const r = { offset: 1 };
|
|
630
|
-
this.count =
|
|
630
|
+
this.count = W(e, r, "ArrayMalformed"), this.offset = r.offset;
|
|
631
631
|
}
|
|
632
632
|
static create(e) {
|
|
633
633
|
return new lt(ae(e));
|
|
@@ -652,20 +652,20 @@ class lt {
|
|
|
652
652
|
case 6:
|
|
653
653
|
case 14: {
|
|
654
654
|
const e = ne(this.elementType);
|
|
655
|
-
|
|
655
|
+
F(this.payload, this.offset, e);
|
|
656
656
|
const n = this.payload.subarray(this.offset, this.offset + e);
|
|
657
657
|
return this.offset += e, new he(this.elementType, n);
|
|
658
658
|
}
|
|
659
659
|
case 12:
|
|
660
660
|
case 13: {
|
|
661
|
-
const e = { offset: this.offset }, n =
|
|
662
|
-
|
|
661
|
+
const e = { offset: this.offset }, n = W(this.payload, e, "ArrayMalformed");
|
|
662
|
+
F(this.payload, e.offset, n);
|
|
663
663
|
const r = this.payload.subarray(e.offset, e.offset + n);
|
|
664
664
|
return this.offset = e.offset + n, new he(this.elementType, r);
|
|
665
665
|
}
|
|
666
666
|
case 11: {
|
|
667
|
-
const e = { offset: this.offset }, n =
|
|
668
|
-
|
|
667
|
+
const e = { offset: this.offset }, n = W(this.payload, e, "ArrayMalformed");
|
|
668
|
+
F(this.payload, e.offset, n);
|
|
669
669
|
const r = this.payload.subarray(e.offset, e.offset + n);
|
|
670
670
|
return this.offset = e.offset + n, new he(11, r);
|
|
671
671
|
}
|
|
@@ -701,7 +701,7 @@ class ut {
|
|
|
701
701
|
throw new Error("Dictionary key/value flags must be zero");
|
|
702
702
|
dt(this.keyType);
|
|
703
703
|
const n = { offset: 2 };
|
|
704
|
-
this.count =
|
|
704
|
+
this.count = W(e, n, "DictMalformed"), this.offset = n.offset;
|
|
705
705
|
}
|
|
706
706
|
static create(e) {
|
|
707
707
|
return new ut(ae(e));
|
|
@@ -713,18 +713,18 @@ class ut {
|
|
|
713
713
|
return null;
|
|
714
714
|
}
|
|
715
715
|
const e = this.readKey(), n = this.readValue();
|
|
716
|
-
return this.index++, new
|
|
716
|
+
return this.index++, new Ns(e, n);
|
|
717
717
|
}
|
|
718
718
|
readKey() {
|
|
719
719
|
const e = ne(this.keyType);
|
|
720
720
|
if (e >= 0) {
|
|
721
|
-
|
|
721
|
+
F(this.payload, this.offset, e);
|
|
722
722
|
const n = this.payload.subarray(this.offset, this.offset + e);
|
|
723
723
|
return this.offset += e, new K(this.keyType, n);
|
|
724
724
|
}
|
|
725
725
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
726
|
-
const n = { offset: this.offset }, r =
|
|
727
|
-
|
|
726
|
+
const n = { offset: this.offset }, r = W(this.payload, n, "DictMalformed");
|
|
727
|
+
F(this.payload, n.offset, r);
|
|
728
728
|
const s = this.payload.subarray(n.offset, n.offset + r);
|
|
729
729
|
return this.offset = n.offset + r, new K(this.keyType, s);
|
|
730
730
|
}
|
|
@@ -734,14 +734,14 @@ class ut {
|
|
|
734
734
|
switch (this.valueType) {
|
|
735
735
|
case 12:
|
|
736
736
|
case 13: {
|
|
737
|
-
const e = { offset: this.offset }, n =
|
|
738
|
-
|
|
737
|
+
const e = { offset: this.offset }, n = W(this.payload, e, "DictMalformed");
|
|
738
|
+
F(this.payload, e.offset, n);
|
|
739
739
|
const r = this.payload.subarray(e.offset, e.offset + n);
|
|
740
740
|
return this.offset = e.offset + n, new K(this.valueType, r);
|
|
741
741
|
}
|
|
742
742
|
case 11: {
|
|
743
|
-
const e = { offset: this.offset }, n =
|
|
744
|
-
|
|
743
|
+
const e = { offset: this.offset }, n = W(this.payload, e, "DictMalformed");
|
|
744
|
+
F(this.payload, e.offset, n);
|
|
745
745
|
const r = this.payload.subarray(e.offset, e.offset + n);
|
|
746
746
|
return this.offset = e.offset + n, new K(11, r);
|
|
747
747
|
}
|
|
@@ -763,7 +763,7 @@ class ut {
|
|
|
763
763
|
case 14:
|
|
764
764
|
case 1: {
|
|
765
765
|
const e = ne(this.valueType);
|
|
766
|
-
|
|
766
|
+
F(this.payload, this.offset, e);
|
|
767
767
|
const n = this.payload.subarray(this.offset, this.offset + e);
|
|
768
768
|
return this.offset += e, new K(this.valueType, n);
|
|
769
769
|
}
|
|
@@ -772,7 +772,7 @@ class ut {
|
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
class
|
|
775
|
+
class Ns {
|
|
776
776
|
constructor(e, n) {
|
|
777
777
|
this.key = e, this.value = n;
|
|
778
778
|
}
|
|
@@ -899,14 +899,14 @@ class q {
|
|
|
899
899
|
return this.buffer.slice(0, this.length);
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function W(t, e, n) {
|
|
903
903
|
if (e.offset >= t.length)
|
|
904
904
|
throw new Error(n);
|
|
905
905
|
let r = 0, s = 0, i = 0;
|
|
906
906
|
for (; e.offset < t.length; ) {
|
|
907
907
|
const o = t[e.offset++];
|
|
908
908
|
if (i++, r |= (o & 127) << s, (o & 128) === 0) {
|
|
909
|
-
if (i !==
|
|
909
|
+
if (i !== ks(r))
|
|
910
910
|
throw new Error("Teleport VarUInt is not canonical");
|
|
911
911
|
return r >>> 0;
|
|
912
912
|
}
|
|
@@ -915,7 +915,7 @@ function G(t, e, n) {
|
|
|
915
915
|
}
|
|
916
916
|
throw new Error(n);
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function ks(t) {
|
|
919
919
|
return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
|
|
920
920
|
}
|
|
921
921
|
function Fe(t, e = 0) {
|
|
@@ -923,7 +923,7 @@ function Fe(t, e = 0) {
|
|
|
923
923
|
throw new Error("Teleport flags must fit into 4 bits");
|
|
924
924
|
return (t & 15) << 4 | e & 15;
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function Ds(t) {
|
|
927
927
|
return t === 12 || t === 13 || t === 9 || t === 11 || t === 10;
|
|
928
928
|
}
|
|
929
929
|
function ne(t) {
|
|
@@ -950,11 +950,11 @@ function dt(t) {
|
|
|
950
950
|
if (t === 9 || t === 11 || t === 10 || t === 1)
|
|
951
951
|
throw new Error("Dictionary keys must be primitive Teleport types");
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function F(t, e, n) {
|
|
954
954
|
if (e < 0 || n < 0 || e + n > t.length)
|
|
955
955
|
throw new Error("Teleport payload exceeds bounds");
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function vs(t, e) {
|
|
958
958
|
return (t[e] | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;
|
|
959
959
|
}
|
|
960
960
|
function ht(t, e) {
|
|
@@ -963,10 +963,10 @@ function ht(t, e) {
|
|
|
963
963
|
const n = t[e], r = n >> 4 & 15;
|
|
964
964
|
if ((n & 15) !== 0)
|
|
965
965
|
throw new Error("Array flags must be zero");
|
|
966
|
-
const s = { offset: e + 1 }, i =
|
|
966
|
+
const s = { offset: e + 1 }, i = W(t, s, "ArrayMalformed"), o = ne(r);
|
|
967
967
|
if (o >= 0) {
|
|
968
968
|
const c = o * i;
|
|
969
|
-
return
|
|
969
|
+
return F(t, s.offset, c), s.offset + c - e;
|
|
970
970
|
}
|
|
971
971
|
let a = s.offset;
|
|
972
972
|
for (let c = 0; c < i; c++)
|
|
@@ -980,7 +980,7 @@ function ft(t, e) {
|
|
|
980
980
|
if ((t[e] & 15) !== 0 || (t[e + 1] & 15) !== 0)
|
|
981
981
|
throw new Error("Dictionary key/value flags must be zero");
|
|
982
982
|
dt(n);
|
|
983
|
-
const s = { offset: e + 2 }, i =
|
|
983
|
+
const s = { offset: e + 2 }, i = W(t, s, "DictMalformed");
|
|
984
984
|
let o = s.offset;
|
|
985
985
|
for (let a = 0; a < i; a++)
|
|
986
986
|
o = ze(n, t, o, "DictMalformed"), o = ze(r, t, o, "DictMalformed");
|
|
@@ -989,16 +989,16 @@ function ft(t, e) {
|
|
|
989
989
|
function ze(t, e, n, r) {
|
|
990
990
|
const s = ne(t);
|
|
991
991
|
if (s >= 0)
|
|
992
|
-
return
|
|
992
|
+
return F(e, n, s), n + s;
|
|
993
993
|
switch (t) {
|
|
994
994
|
case 12:
|
|
995
995
|
case 13: {
|
|
996
|
-
const i = { offset: n }, o =
|
|
997
|
-
return
|
|
996
|
+
const i = { offset: n }, o = W(e, i, r);
|
|
997
|
+
return F(e, i.offset, o), i.offset + o;
|
|
998
998
|
}
|
|
999
999
|
case 11: {
|
|
1000
|
-
const i = { offset: n }, o =
|
|
1001
|
-
return
|
|
1000
|
+
const i = { offset: n }, o = W(e, i, r);
|
|
1001
|
+
return F(e, i.offset, o), i.offset + o;
|
|
1002
1002
|
}
|
|
1003
1003
|
case 9:
|
|
1004
1004
|
return n + ht(e, n);
|
|
@@ -1014,20 +1014,20 @@ function bt(t) {
|
|
|
1014
1014
|
function ae(t) {
|
|
1015
1015
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
1016
1016
|
}
|
|
1017
|
-
var Xt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Xt || {}), ee = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(ee || {}), ce = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(ce || {}), F = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.WebSocket = 1] = "WebSocket", t[t.WebSocketProxy = 2] = "WebSocketProxy", t[t.WebTransport = 4] = "WebTransport", t[t.WebTransportProxy = 8] = "WebTransportProxy", t[t.Tcp = 16] = "Tcp", t[t.TcpProxy = 32] = "TcpProxy", t[t.Https = 64] = "Https", t[t.WebRTC = 128] = "WebRTC", t))(F || {}), Jt = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.SendBackToSender = 1] = "SendBackToSender", t[t.Delayable = 2] = "Delayable", t[t.SendToUser = 4] = "SendToUser", t[t.Compressed = 8] = "Compressed", t[t.Unreliable = 16] = "Unreliable", t))(Jt || {}), le = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(le || {}), Qt = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(Qt || {}), ue = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ue || {}), Zt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(Zt || {}), pt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(pt || {}), qt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(qt || {}), en = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(en || {}), S = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(S || {});
|
|
1018
|
-
const tn = 1,
|
|
1019
|
-
function
|
|
1017
|
+
var Xt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Xt || {}), ee = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(ee || {}), ce = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(ce || {}), P = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.WebSocket = 1] = "WebSocket", t[t.WebSocketProxy = 2] = "WebSocketProxy", t[t.WebTransport = 4] = "WebTransport", t[t.WebTransportProxy = 8] = "WebTransportProxy", t[t.Tcp = 16] = "Tcp", t[t.TcpProxy = 32] = "TcpProxy", t[t.Https = 64] = "Https", t[t.WebRTC = 128] = "WebRTC", t))(P || {}), Jt = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.SendBackToSender = 1] = "SendBackToSender", t[t.Delayable = 2] = "Delayable", t[t.SendToUser = 4] = "SendToUser", t[t.Compressed = 8] = "Compressed", t[t.Unreliable = 16] = "Unreliable", t))(Jt || {}), le = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(le || {}), Qt = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(Qt || {}), ue = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ue || {}), Zt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(Zt || {}), pt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(pt || {}), qt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(qt || {}), en = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(en || {}), S = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(S || {});
|
|
1018
|
+
const tn = 1, Us = 1048637, Os = 727023925, Ms = 3395085689;
|
|
1019
|
+
function Ls(t) {
|
|
1020
1020
|
const e = new v(tn);
|
|
1021
|
-
return
|
|
1021
|
+
return Fs(t, e), e.finish();
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1024
|
-
e.writeGuidField(
|
|
1023
|
+
function Fs(t, e) {
|
|
1024
|
+
e.writeGuidField(Os, t.ActionId), e.writeStringField(Ms, t.PayloadJson);
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1027
|
-
const r =
|
|
1028
|
-
return
|
|
1026
|
+
function Ps(t, e, n) {
|
|
1027
|
+
const r = Ls(t);
|
|
1028
|
+
return M(Us, r, tn, e, n);
|
|
1029
1029
|
}
|
|
1030
|
-
const
|
|
1030
|
+
const Bs = 1, nn = 467348717, rn = 972460562, sn = 1911490601, on = 2603556958, an = 3609695522, cn = 4094837378, ln = 4257460908;
|
|
1031
1031
|
function un(t) {
|
|
1032
1032
|
const e = {};
|
|
1033
1033
|
return dn(e), t && Object.assign(e, t), e;
|
|
@@ -1035,10 +1035,10 @@ function un(t) {
|
|
|
1035
1035
|
function dn(t) {
|
|
1036
1036
|
return t.ParameterIndex = 0, t.TypeName = "", t.ValueJson = "", t.ValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.EnumerationId = w.fromBytes(new Uint8Array(16)), t;
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function xs(t, e) {
|
|
1039
1039
|
e.writeGuidField(nn, t.EnumerationId), e.writeStringField(rn, t.EnumerableItemTypeName), e.writeStringField(sn, t.ValueJson), e.writeBoolField(on, t.IsEnumerable), e.writeStringField(an, t.TypeName), e.writeBinaryField(cn, t.ValueData), e.writeInt32Field(ln, t.ParameterIndex | 0);
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function Gs(t, e) {
|
|
1042
1042
|
const n = e ?? un();
|
|
1043
1043
|
return dn(n), Ws(t, n), n;
|
|
1044
1044
|
}
|
|
@@ -1083,283 +1083,302 @@ function Ws(t, e) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
|
-
const
|
|
1087
|
-
function
|
|
1086
|
+
const hn = 1, Vs = 1048642, Hs = 3748018590;
|
|
1087
|
+
function $s(t) {
|
|
1088
1088
|
const e = {};
|
|
1089
|
-
return
|
|
1089
|
+
return Ks(e), t && Object.assign(e, t), e;
|
|
1090
|
+
}
|
|
1091
|
+
function Ks(t) {
|
|
1092
|
+
return t.Path = "", t;
|
|
1093
|
+
}
|
|
1094
|
+
function Ys(t) {
|
|
1095
|
+
const e = new v(hn);
|
|
1096
|
+
return js(t, e), e.finish();
|
|
1097
|
+
}
|
|
1098
|
+
function js(t, e) {
|
|
1099
|
+
e.writeStringField(Hs, t.Path);
|
|
1090
1100
|
}
|
|
1101
|
+
function zs(t, e, n) {
|
|
1102
|
+
const r = Ys(t);
|
|
1103
|
+
return M(Vs, r, hn, e, n);
|
|
1104
|
+
}
|
|
1105
|
+
const Xs = 161083277, Js = 265814330, Qs = 1368629611, Zs = 2431514951, qs = 2745379226, ei = 3282782683, ti = 3284746250, ni = 4101844078;
|
|
1091
1106
|
function fn(t) {
|
|
1107
|
+
const e = {};
|
|
1108
|
+
return pn(e), e;
|
|
1109
|
+
}
|
|
1110
|
+
function pn(t) {
|
|
1092
1111
|
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = Xt.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t;
|
|
1093
1112
|
}
|
|
1094
|
-
function
|
|
1095
|
-
const n = e ??
|
|
1096
|
-
return
|
|
1113
|
+
function ri(t, e) {
|
|
1114
|
+
const n = e ?? fn();
|
|
1115
|
+
return pn(n), si(t, n), n;
|
|
1097
1116
|
}
|
|
1098
|
-
function
|
|
1117
|
+
function si(t, e) {
|
|
1099
1118
|
let n;
|
|
1100
1119
|
for (; (n = t.next()) !== null; )
|
|
1101
1120
|
switch (n.fieldId) {
|
|
1102
|
-
case
|
|
1121
|
+
case Xs: {
|
|
1103
1122
|
if (n.isNull) throw new Error();
|
|
1104
1123
|
e.StreamId = n.asString();
|
|
1105
1124
|
break;
|
|
1106
1125
|
}
|
|
1107
|
-
case
|
|
1126
|
+
case Js: {
|
|
1108
1127
|
if (n.isNull) {
|
|
1109
1128
|
e.ShapeSets = void 0;
|
|
1110
1129
|
break;
|
|
1111
1130
|
}
|
|
1112
|
-
e.ShapeSets =
|
|
1131
|
+
e.ShapeSets = ii(n.asArray());
|
|
1113
1132
|
break;
|
|
1114
1133
|
}
|
|
1115
|
-
case
|
|
1134
|
+
case Qs: {
|
|
1116
1135
|
if (n.isNull) throw new Error();
|
|
1117
1136
|
e.Description = n.asString();
|
|
1118
1137
|
break;
|
|
1119
1138
|
}
|
|
1120
|
-
case
|
|
1139
|
+
case Zs: {
|
|
1121
1140
|
if (n.isNull) throw new Error();
|
|
1122
1141
|
e.Channels = n.asInt32();
|
|
1123
1142
|
break;
|
|
1124
1143
|
}
|
|
1125
|
-
case
|
|
1144
|
+
case qs: {
|
|
1126
1145
|
if (n.isNull) throw new Error();
|
|
1127
1146
|
e.CodecDetails = n.asString();
|
|
1128
1147
|
break;
|
|
1129
1148
|
}
|
|
1130
|
-
case
|
|
1149
|
+
case ei: {
|
|
1131
1150
|
if (n.isNull) throw new Error();
|
|
1132
1151
|
e.SourceType = n.asString();
|
|
1133
1152
|
break;
|
|
1134
1153
|
}
|
|
1135
|
-
case
|
|
1154
|
+
case ti: {
|
|
1136
1155
|
if (n.isNull) throw new Error();
|
|
1137
1156
|
e.Codec = n.asInt32();
|
|
1138
1157
|
break;
|
|
1139
1158
|
}
|
|
1140
|
-
case
|
|
1159
|
+
case ni: {
|
|
1141
1160
|
if (n.isNull) throw new Error();
|
|
1142
1161
|
e.SampleRate = n.asInt32();
|
|
1143
1162
|
break;
|
|
1144
1163
|
}
|
|
1145
1164
|
}
|
|
1146
1165
|
}
|
|
1147
|
-
function
|
|
1166
|
+
function ii(t) {
|
|
1148
1167
|
const e = [];
|
|
1149
1168
|
let n;
|
|
1150
1169
|
for (; (n = t.next()) !== null; )
|
|
1151
|
-
e.push(
|
|
1170
|
+
e.push(ui(n.asObject()));
|
|
1152
1171
|
return e;
|
|
1153
1172
|
}
|
|
1154
|
-
const
|
|
1155
|
-
function
|
|
1173
|
+
const oi = 1107713536, ai = 1154362099, ci = 1185721362;
|
|
1174
|
+
function li(t) {
|
|
1156
1175
|
const e = {};
|
|
1157
|
-
return
|
|
1176
|
+
return mn(e), e;
|
|
1158
1177
|
}
|
|
1159
|
-
function
|
|
1178
|
+
function mn(t) {
|
|
1160
1179
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
1161
1180
|
}
|
|
1162
|
-
function
|
|
1163
|
-
const n = e ??
|
|
1164
|
-
return
|
|
1181
|
+
function ui(t, e) {
|
|
1182
|
+
const n = e ?? li();
|
|
1183
|
+
return mn(n), di(t, n), n;
|
|
1165
1184
|
}
|
|
1166
|
-
function
|
|
1185
|
+
function di(t, e) {
|
|
1167
1186
|
let n;
|
|
1168
1187
|
for (; (n = t.next()) !== null; )
|
|
1169
1188
|
switch (n.fieldId) {
|
|
1170
|
-
case
|
|
1189
|
+
case oi: {
|
|
1171
1190
|
if (n.isNull) throw new Error();
|
|
1172
1191
|
e.Name = n.asString();
|
|
1173
1192
|
break;
|
|
1174
1193
|
}
|
|
1175
|
-
case
|
|
1194
|
+
case ai: {
|
|
1176
1195
|
if (n.isNull) throw new Error();
|
|
1177
1196
|
e.SetId = n.asUInt32();
|
|
1178
1197
|
break;
|
|
1179
1198
|
}
|
|
1180
|
-
case
|
|
1199
|
+
case ci: {
|
|
1181
1200
|
if (n.isNull) throw new Error();
|
|
1182
|
-
e.ShapeNames =
|
|
1201
|
+
e.ShapeNames = hi(n.asArray());
|
|
1183
1202
|
break;
|
|
1184
1203
|
}
|
|
1185
1204
|
}
|
|
1186
1205
|
}
|
|
1187
|
-
function
|
|
1206
|
+
function hi(t) {
|
|
1188
1207
|
const e = [];
|
|
1189
1208
|
let n;
|
|
1190
1209
|
for (; (n = t.next()) !== null; )
|
|
1191
1210
|
e.push(n.asString());
|
|
1192
1211
|
return e;
|
|
1193
1212
|
}
|
|
1194
|
-
const
|
|
1213
|
+
const fi = 76337612, pi = 185396121, mi = 227309410, Ei = 250031587, Ii = 388632637, _i = 417197284, Ti = 469070965, wi = 470595159, Si = 781727218, gi = 834078886, Ci = 1043273762, yi = 1236999138, Ai = 1286979607, Ri = 1368629611, bi = 1715899485, Ni = 1942830531, ki = 1999510636, Di = 2033288346, vi = 2079864626, Ui = 2142346422, Oi = 2232517119, Mi = 2598291686, Li = 2719718823, Fi = 2810953526, Pi = 2840065720, Bi = 2885165957, xi = 3542818975, Gi = 3586157513, Wi = 3717933110, Vi = 4062655306;
|
|
1195
1214
|
function Xe(t) {
|
|
1196
1215
|
const e = {};
|
|
1197
|
-
return
|
|
1216
|
+
return En(e), e;
|
|
1198
1217
|
}
|
|
1199
|
-
function
|
|
1218
|
+
function En(t) {
|
|
1200
1219
|
return t.ContextType = ce.Unknown, t.UserType = ue.Unknown, t.PayloadType = le.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = ee.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = pt.Unknown, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialUrl = "", t;
|
|
1201
1220
|
}
|
|
1202
1221
|
function Je(t, e) {
|
|
1203
1222
|
const n = e ?? Xe();
|
|
1204
|
-
return
|
|
1223
|
+
return En(n), Hi(t, n), n;
|
|
1205
1224
|
}
|
|
1206
|
-
function
|
|
1225
|
+
function Hi(t, e) {
|
|
1207
1226
|
let n;
|
|
1208
1227
|
for (; (n = t.next()) !== null; )
|
|
1209
1228
|
switch (n.fieldId) {
|
|
1210
|
-
case
|
|
1229
|
+
case fi: {
|
|
1211
1230
|
if (n.isNull) throw new Error();
|
|
1212
1231
|
e.DeviceId = n.asString();
|
|
1213
1232
|
break;
|
|
1214
1233
|
}
|
|
1215
|
-
case
|
|
1234
|
+
case pi: {
|
|
1216
1235
|
if (n.isNull) throw new Error();
|
|
1217
1236
|
e.InstallId = n.asString();
|
|
1218
1237
|
break;
|
|
1219
1238
|
}
|
|
1220
|
-
case
|
|
1239
|
+
case mi: {
|
|
1221
1240
|
if (n.isNull) throw new Error();
|
|
1222
1241
|
e.InitialUrl = n.asString();
|
|
1223
1242
|
break;
|
|
1224
1243
|
}
|
|
1225
|
-
case
|
|
1244
|
+
case Ei: {
|
|
1226
1245
|
if (n.isNull) throw new Error();
|
|
1227
1246
|
e.Theme = n.asString();
|
|
1228
1247
|
break;
|
|
1229
1248
|
}
|
|
1230
|
-
case
|
|
1249
|
+
case Ii: {
|
|
1231
1250
|
if (n.isNull) throw new Error();
|
|
1232
1251
|
e.UserAgent = n.asString();
|
|
1233
1252
|
break;
|
|
1234
1253
|
}
|
|
1235
|
-
case
|
|
1254
|
+
case _i: {
|
|
1236
1255
|
if (n.isNull) throw new Error();
|
|
1237
1256
|
e.ContextType = n.asInt32();
|
|
1238
1257
|
break;
|
|
1239
1258
|
}
|
|
1240
|
-
case
|
|
1259
|
+
case Ti: {
|
|
1241
1260
|
if (n.isNull) throw new Error();
|
|
1242
1261
|
e.HasInput = n.asBool();
|
|
1243
1262
|
break;
|
|
1244
1263
|
}
|
|
1245
|
-
case
|
|
1264
|
+
case wi: {
|
|
1246
1265
|
if (n.isNull) throw new Error();
|
|
1247
1266
|
e.UserType = n.asInt32();
|
|
1248
1267
|
break;
|
|
1249
1268
|
}
|
|
1250
|
-
case
|
|
1269
|
+
case Si: {
|
|
1251
1270
|
if (n.isNull) throw new Error();
|
|
1252
1271
|
e.UserId = n.asString();
|
|
1253
1272
|
break;
|
|
1254
1273
|
}
|
|
1255
|
-
case
|
|
1274
|
+
case gi: {
|
|
1256
1275
|
if (n.isNull) throw new Error();
|
|
1257
1276
|
e.ProductId = n.asString();
|
|
1258
1277
|
break;
|
|
1259
1278
|
}
|
|
1260
|
-
case
|
|
1279
|
+
case Ci: {
|
|
1261
1280
|
if (n.isNull) throw new Error();
|
|
1262
1281
|
e.AuthSessionId = n.asString();
|
|
1263
1282
|
break;
|
|
1264
1283
|
}
|
|
1265
|
-
case
|
|
1284
|
+
case yi: {
|
|
1266
1285
|
if (n.isNull) throw new Error();
|
|
1267
1286
|
e.ReceiveAllMessages = n.asBool();
|
|
1268
1287
|
break;
|
|
1269
1288
|
}
|
|
1270
|
-
case
|
|
1289
|
+
case Ai: {
|
|
1271
1290
|
if (n.isNull) throw new Error();
|
|
1272
1291
|
e.ViewportHeight = n.asInt32();
|
|
1273
1292
|
break;
|
|
1274
1293
|
}
|
|
1275
|
-
case
|
|
1294
|
+
case Ri: {
|
|
1276
1295
|
if (n.isNull) throw new Error();
|
|
1277
1296
|
e.Description = n.asString();
|
|
1278
1297
|
break;
|
|
1279
1298
|
}
|
|
1280
|
-
case
|
|
1299
|
+
case bi: {
|
|
1281
1300
|
if (n.isNull) throw new Error();
|
|
1282
1301
|
e.Locale = n.asString();
|
|
1283
1302
|
break;
|
|
1284
1303
|
}
|
|
1285
|
-
case
|
|
1304
|
+
case Ni: {
|
|
1286
1305
|
if (n.isNull) throw new Error();
|
|
1287
1306
|
e.SdkType = n.asInt32();
|
|
1288
1307
|
break;
|
|
1289
1308
|
}
|
|
1290
|
-
case
|
|
1309
|
+
case ki: {
|
|
1291
1310
|
if (n.isNull) throw new Error();
|
|
1292
1311
|
e.SessionId = n.asInt32();
|
|
1293
1312
|
break;
|
|
1294
1313
|
}
|
|
1295
|
-
case
|
|
1314
|
+
case Di: {
|
|
1296
1315
|
if (n.isNull) throw new Error();
|
|
1297
1316
|
e.ViewportWidth = n.asInt32();
|
|
1298
1317
|
break;
|
|
1299
1318
|
}
|
|
1300
|
-
case
|
|
1319
|
+
case vi: {
|
|
1301
1320
|
if (n.isNull) throw new Error();
|
|
1302
1321
|
e.PreciseJoinedAt = n.asUInt64();
|
|
1303
1322
|
break;
|
|
1304
1323
|
}
|
|
1305
|
-
case
|
|
1324
|
+
case Ui: {
|
|
1306
1325
|
if (n.isNull) throw new Error();
|
|
1307
1326
|
e.PayloadType = n.asInt32();
|
|
1308
1327
|
break;
|
|
1309
1328
|
}
|
|
1310
|
-
case
|
|
1329
|
+
case Oi: {
|
|
1311
1330
|
if (n.isNull) throw new Error();
|
|
1312
1331
|
e.IsTouchDevice = n.asBool();
|
|
1313
1332
|
break;
|
|
1314
1333
|
}
|
|
1315
|
-
case
|
|
1334
|
+
case Mi: {
|
|
1316
1335
|
if (n.isNull) throw new Error();
|
|
1317
1336
|
e.VersionId = n.asString();
|
|
1318
1337
|
break;
|
|
1319
1338
|
}
|
|
1320
|
-
case
|
|
1339
|
+
case Li: {
|
|
1321
1340
|
if (n.isNull) throw new Error();
|
|
1322
1341
|
e.UniqueSessionId = n.asString();
|
|
1323
1342
|
break;
|
|
1324
1343
|
}
|
|
1325
|
-
case
|
|
1344
|
+
case Fi: {
|
|
1326
1345
|
if (n.isNull) throw new Error();
|
|
1327
1346
|
e.ClientType = n.asInt32();
|
|
1328
1347
|
break;
|
|
1329
1348
|
}
|
|
1330
|
-
case
|
|
1349
|
+
case Pi: {
|
|
1331
1350
|
if (n.isNull) throw new Error();
|
|
1332
1351
|
e.IsReady = n.asBool();
|
|
1333
1352
|
break;
|
|
1334
1353
|
}
|
|
1335
|
-
case
|
|
1354
|
+
case Bi: {
|
|
1336
1355
|
if (n.isNull) throw new Error();
|
|
1337
|
-
e.Parameters =
|
|
1356
|
+
e.Parameters = $i(n.asDictionary());
|
|
1338
1357
|
break;
|
|
1339
1358
|
}
|
|
1340
|
-
case
|
|
1359
|
+
case xi: {
|
|
1341
1360
|
if (n.isNull) throw new Error();
|
|
1342
1361
|
e.Timezone = n.asString();
|
|
1343
1362
|
break;
|
|
1344
1363
|
}
|
|
1345
|
-
case
|
|
1364
|
+
case Gi: {
|
|
1346
1365
|
if (n.isNull) throw new Error();
|
|
1347
1366
|
e.IsInternal = n.asBool();
|
|
1348
1367
|
break;
|
|
1349
1368
|
}
|
|
1350
|
-
case
|
|
1369
|
+
case Wi: {
|
|
1351
1370
|
if (n.isNull) throw new Error();
|
|
1352
1371
|
e.ChannelLocale = n.asString();
|
|
1353
1372
|
break;
|
|
1354
1373
|
}
|
|
1355
|
-
case
|
|
1374
|
+
case Vi: {
|
|
1356
1375
|
if (n.isNull) throw new Error();
|
|
1357
1376
|
e.EmbeddedSpaceId = n.asString();
|
|
1358
1377
|
break;
|
|
1359
1378
|
}
|
|
1360
1379
|
}
|
|
1361
1380
|
}
|
|
1362
|
-
function
|
|
1381
|
+
function $i(t) {
|
|
1363
1382
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1364
1383
|
let n;
|
|
1365
1384
|
for (; (n = t.next()) !== null; ) {
|
|
@@ -1368,143 +1387,143 @@ function Fi(t) {
|
|
|
1368
1387
|
}
|
|
1369
1388
|
return e;
|
|
1370
1389
|
}
|
|
1371
|
-
const
|
|
1372
|
-
function
|
|
1390
|
+
const Ki = 746516514, Yi = 877841741, ji = 1175184220, zi = 1368629611, Xi = 2341021724, Ji = 3167053791, Qi = 3632106223, Zi = 3686066300;
|
|
1391
|
+
function qi(t) {
|
|
1373
1392
|
const e = {};
|
|
1374
|
-
return
|
|
1393
|
+
return In(e), e;
|
|
1375
1394
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return t.Type =
|
|
1395
|
+
function In(t) {
|
|
1396
|
+
return t.Type = P.None, t.Uri = "", t.OpcodeGroupsFromServer = S.NONE, t.OpcodeGroupsToServer = S.NONE, t.Priority = 0, t.Description = "", t.AuthTicket = new Uint8Array(0), t.IsUnreliable = !1, t;
|
|
1378
1397
|
}
|
|
1379
|
-
function
|
|
1380
|
-
const n = e ??
|
|
1381
|
-
return
|
|
1398
|
+
function eo(t, e) {
|
|
1399
|
+
const n = e ?? qi();
|
|
1400
|
+
return In(n), to(t, n), n;
|
|
1382
1401
|
}
|
|
1383
|
-
function
|
|
1402
|
+
function to(t, e) {
|
|
1384
1403
|
let n;
|
|
1385
1404
|
for (; (n = t.next()) !== null; )
|
|
1386
1405
|
switch (n.fieldId) {
|
|
1387
|
-
case
|
|
1406
|
+
case Ki: {
|
|
1388
1407
|
if (n.isNull) throw new Error();
|
|
1389
1408
|
e.AuthTicket = n.asBinary();
|
|
1390
1409
|
break;
|
|
1391
1410
|
}
|
|
1392
|
-
case
|
|
1411
|
+
case Yi: {
|
|
1393
1412
|
if (n.isNull) throw new Error();
|
|
1394
1413
|
e.Priority = n.asInt32();
|
|
1395
1414
|
break;
|
|
1396
1415
|
}
|
|
1397
|
-
case
|
|
1416
|
+
case ji: {
|
|
1398
1417
|
if (n.isNull) throw new Error();
|
|
1399
1418
|
e.OpcodeGroupsFromServer = n.asInt32();
|
|
1400
1419
|
break;
|
|
1401
1420
|
}
|
|
1402
|
-
case
|
|
1421
|
+
case zi: {
|
|
1403
1422
|
if (n.isNull) throw new Error();
|
|
1404
1423
|
e.Description = n.asString();
|
|
1405
1424
|
break;
|
|
1406
1425
|
}
|
|
1407
|
-
case
|
|
1426
|
+
case Xi: {
|
|
1408
1427
|
if (n.isNull) throw new Error();
|
|
1409
1428
|
e.Uri = n.asString();
|
|
1410
1429
|
break;
|
|
1411
1430
|
}
|
|
1412
|
-
case
|
|
1431
|
+
case Ji: {
|
|
1413
1432
|
if (n.isNull) throw new Error();
|
|
1414
1433
|
e.Type = n.asInt32();
|
|
1415
1434
|
break;
|
|
1416
1435
|
}
|
|
1417
|
-
case
|
|
1436
|
+
case Qi: {
|
|
1418
1437
|
if (n.isNull) throw new Error();
|
|
1419
1438
|
e.IsUnreliable = n.asBool();
|
|
1420
1439
|
break;
|
|
1421
1440
|
}
|
|
1422
|
-
case
|
|
1441
|
+
case Zi: {
|
|
1423
1442
|
if (n.isNull) throw new Error();
|
|
1424
1443
|
e.OpcodeGroupsToServer = n.asInt32();
|
|
1425
1444
|
break;
|
|
1426
1445
|
}
|
|
1427
1446
|
}
|
|
1428
1447
|
}
|
|
1429
|
-
const
|
|
1430
|
-
function
|
|
1448
|
+
const no = 65537, ro = 166277978, so = 1482635149, io = 1559330978, oo = 2802434353, ao = 3085883711, co = 3669484338, lo = 3707543140, uo = 3712281496, ho = 3823842552;
|
|
1449
|
+
function fo(t) {
|
|
1431
1450
|
const e = {};
|
|
1432
|
-
return
|
|
1451
|
+
return _n(e), e;
|
|
1433
1452
|
}
|
|
1434
|
-
function
|
|
1453
|
+
function _n(t) {
|
|
1435
1454
|
return t.ClientContext = Xe(), t.ServerContext = Xe(), t.CertHash = "", t.Entrypoints = [], t.FeatureFlags = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.ChannelInstanceId = "", t.PrimaryUserId = "", t;
|
|
1436
1455
|
}
|
|
1437
|
-
function
|
|
1456
|
+
function po(t, e) {
|
|
1438
1457
|
const n = H.create(t);
|
|
1439
|
-
return
|
|
1458
|
+
return mo(n, e);
|
|
1440
1459
|
}
|
|
1441
|
-
function
|
|
1442
|
-
const n = e ??
|
|
1443
|
-
return
|
|
1460
|
+
function mo(t, e) {
|
|
1461
|
+
const n = e ?? fo();
|
|
1462
|
+
return _n(n), Eo(t, n), n;
|
|
1444
1463
|
}
|
|
1445
|
-
function
|
|
1464
|
+
function Eo(t, e) {
|
|
1446
1465
|
let n;
|
|
1447
1466
|
for (; (n = t.next()) !== null; )
|
|
1448
1467
|
switch (n.fieldId) {
|
|
1449
|
-
case
|
|
1468
|
+
case ro: {
|
|
1450
1469
|
if (n.isNull) throw new Error();
|
|
1451
1470
|
e.CertHash = n.asString();
|
|
1452
1471
|
break;
|
|
1453
1472
|
}
|
|
1454
|
-
case
|
|
1473
|
+
case so: {
|
|
1455
1474
|
if (n.isNull) throw new Error();
|
|
1456
|
-
e.Entrypoints =
|
|
1475
|
+
e.Entrypoints = _o(n.asArray());
|
|
1457
1476
|
break;
|
|
1458
1477
|
}
|
|
1459
|
-
case
|
|
1478
|
+
case io: {
|
|
1460
1479
|
if (n.isNull) throw new Error();
|
|
1461
1480
|
e.ChannelId = n.asString();
|
|
1462
1481
|
break;
|
|
1463
1482
|
}
|
|
1464
|
-
case
|
|
1483
|
+
case oo: {
|
|
1465
1484
|
if (n.isNull) throw new Error();
|
|
1466
1485
|
e.ClientContext = Je(n.asObject());
|
|
1467
1486
|
break;
|
|
1468
1487
|
}
|
|
1469
|
-
case
|
|
1488
|
+
case ao: {
|
|
1470
1489
|
if (n.isNull) throw new Error();
|
|
1471
1490
|
e.ServerContext = Je(n.asObject());
|
|
1472
1491
|
break;
|
|
1473
1492
|
}
|
|
1474
|
-
case
|
|
1493
|
+
case co: {
|
|
1475
1494
|
if (n.isNull) throw new Error();
|
|
1476
|
-
e.FeatureFlags =
|
|
1495
|
+
e.FeatureFlags = To(n.asDictionary());
|
|
1477
1496
|
break;
|
|
1478
1497
|
}
|
|
1479
|
-
case
|
|
1498
|
+
case lo: {
|
|
1480
1499
|
if (n.isNull) throw new Error();
|
|
1481
1500
|
e.SpaceId = n.asString();
|
|
1482
1501
|
break;
|
|
1483
1502
|
}
|
|
1484
|
-
case
|
|
1503
|
+
case uo: {
|
|
1485
1504
|
if (n.isNull) throw new Error();
|
|
1486
1505
|
e.PrimaryUserId = n.asString();
|
|
1487
1506
|
break;
|
|
1488
1507
|
}
|
|
1489
|
-
case
|
|
1508
|
+
case ho: {
|
|
1490
1509
|
if (n.isNull) throw new Error();
|
|
1491
1510
|
e.ChannelInstanceId = n.asString();
|
|
1492
1511
|
break;
|
|
1493
1512
|
}
|
|
1494
1513
|
}
|
|
1495
1514
|
}
|
|
1496
|
-
async function
|
|
1497
|
-
const n = await at(t,
|
|
1498
|
-
return
|
|
1515
|
+
async function Io(t, e) {
|
|
1516
|
+
const n = await at(t, no);
|
|
1517
|
+
return po(n, e);
|
|
1499
1518
|
}
|
|
1500
|
-
function
|
|
1519
|
+
function _o(t) {
|
|
1501
1520
|
const e = [];
|
|
1502
1521
|
let n;
|
|
1503
1522
|
for (; (n = t.next()) !== null; )
|
|
1504
|
-
e.push(
|
|
1523
|
+
e.push(eo(n.asObject()));
|
|
1505
1524
|
return e;
|
|
1506
1525
|
}
|
|
1507
|
-
function
|
|
1526
|
+
function To(t) {
|
|
1508
1527
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1509
1528
|
let n;
|
|
1510
1529
|
for (; (n = t.next()) !== null; ) {
|
|
@@ -1513,743 +1532,743 @@ function uo(t) {
|
|
|
1513
1532
|
}
|
|
1514
1533
|
return e;
|
|
1515
1534
|
}
|
|
1516
|
-
function
|
|
1535
|
+
function wo(t) {
|
|
1517
1536
|
const e = {};
|
|
1518
|
-
return
|
|
1537
|
+
return So(e), t && Object.assign(e, t), e;
|
|
1519
1538
|
}
|
|
1520
|
-
function
|
|
1539
|
+
function So(t) {
|
|
1521
1540
|
return t.ServerSessionId = "", t.ContextType = ce.Unknown, t.UserType = ue.Unknown, t.PayloadType = le.Unknown, t.IsInternal = !1, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.OpcodeGroupsFromServer = S.NONE, t.OpcodeGroupsToServer = S.NONE, t.ProtocolVersion = 0, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.UserAgent = "", t.ClientType = ee.Unknown, t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = pt.Unknown, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialUrl = "", t;
|
|
1522
1541
|
}
|
|
1523
|
-
const
|
|
1524
|
-
function
|
|
1542
|
+
const Tn = 1, go = 1048632, Co = 3748161056, yo = 4289118421;
|
|
1543
|
+
function Ao(t) {
|
|
1525
1544
|
const e = {};
|
|
1526
|
-
return
|
|
1545
|
+
return Ro(e), t && Object.assign(e, t), e;
|
|
1527
1546
|
}
|
|
1528
|
-
function
|
|
1547
|
+
function Ro(t) {
|
|
1529
1548
|
return t.CallId = w.fromBytes(new Uint8Array(16)), t.InstanceId = w.fromBytes(new Uint8Array(16)), t;
|
|
1530
1549
|
}
|
|
1531
|
-
function
|
|
1532
|
-
const e = new v(
|
|
1533
|
-
return
|
|
1550
|
+
function bo(t) {
|
|
1551
|
+
const e = new v(Tn);
|
|
1552
|
+
return No(t, e), e.finish();
|
|
1534
1553
|
}
|
|
1535
|
-
function
|
|
1536
|
-
e.writeGuidField(
|
|
1554
|
+
function No(t, e) {
|
|
1555
|
+
e.writeGuidField(Co, t.CallId), e.writeGuidField(yo, t.InstanceId);
|
|
1537
1556
|
}
|
|
1538
|
-
function
|
|
1539
|
-
const r =
|
|
1540
|
-
return
|
|
1557
|
+
function ko(t, e, n) {
|
|
1558
|
+
const r = bo(t);
|
|
1559
|
+
return M(go, r, Tn, e, n);
|
|
1541
1560
|
}
|
|
1542
|
-
const
|
|
1543
|
-
function
|
|
1561
|
+
const wn = 1, Sn = 1048601, gn = 112005851, Cn = 814454131, yn = 976255570, An = 2610786289, Rn = 2885165957, bn = 3748161056, Nn = 4289118421;
|
|
1562
|
+
function kn(t) {
|
|
1544
1563
|
const e = {};
|
|
1545
|
-
return
|
|
1564
|
+
return Dn(e), t && Object.assign(e, t), e;
|
|
1546
1565
|
}
|
|
1547
|
-
function
|
|
1566
|
+
function Dn(t) {
|
|
1548
1567
|
return t.FunctionId = w.fromBytes(new Uint8Array(16)), t.CallId = w.fromBytes(new Uint8Array(16)), t.InstanceId = w.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.Scopes = [], t.Version = "", t;
|
|
1549
1568
|
}
|
|
1550
|
-
function
|
|
1551
|
-
const e = new v(
|
|
1552
|
-
return
|
|
1569
|
+
function Do(t) {
|
|
1570
|
+
const e = new v(wn);
|
|
1571
|
+
return vo(t, e), e.finish();
|
|
1553
1572
|
}
|
|
1554
|
-
function
|
|
1555
|
-
e.writeArrayField(
|
|
1573
|
+
function vo(t, e) {
|
|
1574
|
+
e.writeArrayField(gn, U.Object, (n) => {
|
|
1556
1575
|
for (const r of t.Scopes)
|
|
1557
|
-
n.writeObject(
|
|
1558
|
-
|
|
1576
|
+
n.writeObject(xo, (s) => {
|
|
1577
|
+
Wo(r, s);
|
|
1559
1578
|
});
|
|
1560
|
-
}), e.writeStringField(
|
|
1579
|
+
}), e.writeStringField(Cn, t.FunctionName), e.writeGuidField(yn, t.FunctionId), e.writeStringField(An, t.Version), e.writeArrayField(Rn, U.Object, (n) => {
|
|
1561
1580
|
for (const r of t.Parameters)
|
|
1562
|
-
n.writeObject(
|
|
1563
|
-
|
|
1581
|
+
n.writeObject(Bs, (s) => {
|
|
1582
|
+
xs(r, s);
|
|
1564
1583
|
});
|
|
1565
|
-
}), e.writeGuidField(
|
|
1584
|
+
}), e.writeGuidField(bn, t.CallId), e.writeGuidField(Nn, t.InstanceId);
|
|
1566
1585
|
}
|
|
1567
|
-
function
|
|
1586
|
+
function Uo(t, e) {
|
|
1568
1587
|
const n = H.create(t);
|
|
1569
|
-
return
|
|
1588
|
+
return Oo(n, e);
|
|
1570
1589
|
}
|
|
1571
|
-
function
|
|
1572
|
-
const n = e ??
|
|
1573
|
-
return
|
|
1590
|
+
function Oo(t, e) {
|
|
1591
|
+
const n = e ?? kn();
|
|
1592
|
+
return Dn(n), Mo(t, n), n;
|
|
1574
1593
|
}
|
|
1575
|
-
function
|
|
1594
|
+
function Mo(t, e) {
|
|
1576
1595
|
let n;
|
|
1577
1596
|
for (; (n = t.next()) !== null; )
|
|
1578
1597
|
switch (n.fieldId) {
|
|
1579
|
-
case
|
|
1598
|
+
case gn: {
|
|
1580
1599
|
if (n.isNull) throw new Error();
|
|
1581
|
-
e.Scopes =
|
|
1600
|
+
e.Scopes = Po(n.asArray());
|
|
1582
1601
|
break;
|
|
1583
1602
|
}
|
|
1584
|
-
case
|
|
1603
|
+
case Cn: {
|
|
1585
1604
|
if (n.isNull) throw new Error();
|
|
1586
1605
|
e.FunctionName = n.asString();
|
|
1587
1606
|
break;
|
|
1588
1607
|
}
|
|
1589
|
-
case
|
|
1608
|
+
case yn: {
|
|
1590
1609
|
if (n.isNull) throw new Error();
|
|
1591
1610
|
e.FunctionId = n.asGuid();
|
|
1592
1611
|
break;
|
|
1593
1612
|
}
|
|
1594
|
-
case
|
|
1613
|
+
case An: {
|
|
1595
1614
|
if (n.isNull) throw new Error();
|
|
1596
1615
|
e.Version = n.asString();
|
|
1597
1616
|
break;
|
|
1598
1617
|
}
|
|
1599
|
-
case
|
|
1618
|
+
case Rn: {
|
|
1600
1619
|
if (n.isNull) throw new Error();
|
|
1601
|
-
e.Parameters =
|
|
1620
|
+
e.Parameters = Bo(n.asArray());
|
|
1602
1621
|
break;
|
|
1603
1622
|
}
|
|
1604
|
-
case
|
|
1623
|
+
case bn: {
|
|
1605
1624
|
if (n.isNull) throw new Error();
|
|
1606
1625
|
e.CallId = n.asGuid();
|
|
1607
1626
|
break;
|
|
1608
1627
|
}
|
|
1609
|
-
case
|
|
1628
|
+
case Nn: {
|
|
1610
1629
|
if (n.isNull) throw new Error();
|
|
1611
1630
|
e.InstanceId = n.asGuid();
|
|
1612
1631
|
break;
|
|
1613
1632
|
}
|
|
1614
1633
|
}
|
|
1615
1634
|
}
|
|
1616
|
-
function
|
|
1617
|
-
const r =
|
|
1618
|
-
return
|
|
1635
|
+
function Lo(t, e, n) {
|
|
1636
|
+
const r = Do(t);
|
|
1637
|
+
return M(Sn, r, wn, e, n);
|
|
1619
1638
|
}
|
|
1620
|
-
async function
|
|
1621
|
-
const n = await at(t,
|
|
1622
|
-
return
|
|
1639
|
+
async function Fo(t, e) {
|
|
1640
|
+
const n = await at(t, Sn);
|
|
1641
|
+
return Uo(n, e);
|
|
1623
1642
|
}
|
|
1624
|
-
function
|
|
1643
|
+
function Po(t) {
|
|
1625
1644
|
const e = [];
|
|
1626
1645
|
let n;
|
|
1627
1646
|
for (; (n = t.next()) !== null; )
|
|
1628
|
-
e.push(
|
|
1647
|
+
e.push(Vo(n.asObject()));
|
|
1629
1648
|
return e;
|
|
1630
1649
|
}
|
|
1631
|
-
function
|
|
1650
|
+
function Bo(t) {
|
|
1632
1651
|
const e = [];
|
|
1633
1652
|
let n;
|
|
1634
1653
|
for (; (n = t.next()) !== null; )
|
|
1635
|
-
e.push(
|
|
1654
|
+
e.push(Gs(n.asObject()));
|
|
1636
1655
|
return e;
|
|
1637
1656
|
}
|
|
1638
|
-
const
|
|
1639
|
-
function
|
|
1657
|
+
const xo = 1, vn = 2994044322, Un = 3167053791;
|
|
1658
|
+
function Go(t) {
|
|
1640
1659
|
const e = {};
|
|
1641
|
-
return
|
|
1660
|
+
return On(e), e;
|
|
1642
1661
|
}
|
|
1643
|
-
function
|
|
1662
|
+
function On(t) {
|
|
1644
1663
|
return t.Type = "", t.Id = "", t;
|
|
1645
1664
|
}
|
|
1646
|
-
function
|
|
1647
|
-
e.writeStringField(
|
|
1665
|
+
function Wo(t, e) {
|
|
1666
|
+
e.writeStringField(vn, t.Id), e.writeStringField(Un, t.Type);
|
|
1648
1667
|
}
|
|
1649
|
-
function
|
|
1650
|
-
const n = e ??
|
|
1651
|
-
return
|
|
1668
|
+
function Vo(t, e) {
|
|
1669
|
+
const n = e ?? Go();
|
|
1670
|
+
return On(n), Ho(t, n), n;
|
|
1652
1671
|
}
|
|
1653
|
-
function
|
|
1672
|
+
function Ho(t, e) {
|
|
1654
1673
|
let n;
|
|
1655
1674
|
for (; (n = t.next()) !== null; )
|
|
1656
1675
|
switch (n.fieldId) {
|
|
1657
|
-
case
|
|
1676
|
+
case vn: {
|
|
1658
1677
|
if (n.isNull) throw new Error();
|
|
1659
1678
|
e.Id = n.asString();
|
|
1660
1679
|
break;
|
|
1661
1680
|
}
|
|
1662
|
-
case
|
|
1681
|
+
case Un: {
|
|
1663
1682
|
if (n.isNull) throw new Error();
|
|
1664
1683
|
e.Type = n.asString();
|
|
1665
1684
|
break;
|
|
1666
1685
|
}
|
|
1667
1686
|
}
|
|
1668
1687
|
}
|
|
1669
|
-
const
|
|
1688
|
+
const Mn = 1, Ln = 1048631, Fn = 2205234621, Pn = 2838554230, Bn = 3748161056, xn = 4194102057, Gn = 4289118421;
|
|
1670
1689
|
function Wn(t) {
|
|
1671
1690
|
const e = {};
|
|
1672
|
-
return
|
|
1691
|
+
return Vn(e), t && Object.assign(e, t), e;
|
|
1673
1692
|
}
|
|
1674
|
-
function
|
|
1693
|
+
function Vn(t) {
|
|
1675
1694
|
return t.CallId = w.fromBytes(new Uint8Array(16)), t.InstanceId = w.fromBytes(new Uint8Array(16)), t.ErrorMessage = "", t.ErrorTypeName = "", t.StackTrace = "", t;
|
|
1676
1695
|
}
|
|
1677
|
-
function
|
|
1678
|
-
const e = new v(
|
|
1679
|
-
return
|
|
1696
|
+
function $o(t) {
|
|
1697
|
+
const e = new v(Mn);
|
|
1698
|
+
return Ko(t, e), e.finish();
|
|
1680
1699
|
}
|
|
1681
|
-
function
|
|
1682
|
-
e.writeStringField(
|
|
1700
|
+
function Ko(t, e) {
|
|
1701
|
+
e.writeStringField(Fn, t.ErrorTypeName), e.writeStringField(Pn, t.ErrorMessage), e.writeGuidField(Bn, t.CallId), e.writeStringField(xn, t.StackTrace), e.writeGuidField(Gn, t.InstanceId);
|
|
1683
1702
|
}
|
|
1684
|
-
function
|
|
1703
|
+
function Yo(t, e) {
|
|
1685
1704
|
const n = H.create(t);
|
|
1686
|
-
return
|
|
1705
|
+
return jo(n, e);
|
|
1687
1706
|
}
|
|
1688
|
-
function
|
|
1707
|
+
function jo(t, e) {
|
|
1689
1708
|
const n = e ?? Wn();
|
|
1690
|
-
return
|
|
1709
|
+
return Vn(n), zo(t, n), n;
|
|
1691
1710
|
}
|
|
1692
|
-
function
|
|
1711
|
+
function zo(t, e) {
|
|
1693
1712
|
let n;
|
|
1694
1713
|
for (; (n = t.next()) !== null; )
|
|
1695
1714
|
switch (n.fieldId) {
|
|
1696
|
-
case
|
|
1715
|
+
case Fn: {
|
|
1697
1716
|
if (n.isNull) throw new Error();
|
|
1698
1717
|
e.ErrorTypeName = n.asString();
|
|
1699
1718
|
break;
|
|
1700
1719
|
}
|
|
1701
|
-
case
|
|
1720
|
+
case Pn: {
|
|
1702
1721
|
if (n.isNull) throw new Error();
|
|
1703
1722
|
e.ErrorMessage = n.asString();
|
|
1704
1723
|
break;
|
|
1705
1724
|
}
|
|
1706
|
-
case
|
|
1725
|
+
case Bn: {
|
|
1707
1726
|
if (n.isNull) throw new Error();
|
|
1708
1727
|
e.CallId = n.asGuid();
|
|
1709
1728
|
break;
|
|
1710
1729
|
}
|
|
1711
|
-
case
|
|
1730
|
+
case xn: {
|
|
1712
1731
|
if (n.isNull) throw new Error();
|
|
1713
1732
|
e.StackTrace = n.asString();
|
|
1714
1733
|
break;
|
|
1715
1734
|
}
|
|
1716
|
-
case
|
|
1735
|
+
case Gn: {
|
|
1717
1736
|
if (n.isNull) throw new Error();
|
|
1718
1737
|
e.InstanceId = n.asGuid();
|
|
1719
1738
|
break;
|
|
1720
1739
|
}
|
|
1721
1740
|
}
|
|
1722
1741
|
}
|
|
1723
|
-
function
|
|
1724
|
-
const r =
|
|
1725
|
-
return
|
|
1742
|
+
function Xo(t, e, n) {
|
|
1743
|
+
const r = $o(t);
|
|
1744
|
+
return M(Ln, r, Mn, e, n);
|
|
1726
1745
|
}
|
|
1727
|
-
function
|
|
1728
|
-
const n = ye(t,
|
|
1729
|
-
return
|
|
1746
|
+
function Jo(t, e) {
|
|
1747
|
+
const n = ye(t, Ln);
|
|
1748
|
+
return Yo(n, e);
|
|
1730
1749
|
}
|
|
1731
|
-
const mt = 1,
|
|
1732
|
-
function
|
|
1750
|
+
const mt = 1, Qo = 1048600, Hn = 703025676, $n = 814454131, Kn = 972460562, Yn = 976255570, jn = 1368629611, zn = 1479280922, Xn = 1533537016, Jn = 1909301063, Qn = 2274386296, Zn = 2603556958, qn = 2885165957, er = 3568439632;
|
|
1751
|
+
function Zo(t) {
|
|
1733
1752
|
const e = {};
|
|
1734
|
-
return
|
|
1753
|
+
return tr(e), e;
|
|
1735
1754
|
}
|
|
1736
|
-
function
|
|
1755
|
+
function tr(t) {
|
|
1737
1756
|
return t.FunctionId = w.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t.Versions = [], t;
|
|
1738
1757
|
}
|
|
1739
|
-
function
|
|
1758
|
+
function qo(t) {
|
|
1740
1759
|
const e = new v(mt);
|
|
1741
|
-
return
|
|
1760
|
+
return nr(t, e), e.finish();
|
|
1742
1761
|
}
|
|
1743
|
-
function
|
|
1744
|
-
e.writeStringField(
|
|
1762
|
+
function nr(t, e) {
|
|
1763
|
+
e.writeStringField(Hn, t.ResultTypeName), e.writeStringField($n, t.FunctionName), e.writeStringField(Kn, t.EnumerableItemTypeName), e.writeGuidField(Yn, t.FunctionId), e.writeStringField(jn, t.Description), e.writeBoolField(zn, t.IsCancellable), e.writeBoolField(Xn, t.RequiresInstance), e.writeArrayField(Jn, U.String, (n) => {
|
|
1745
1764
|
for (const r of t.Versions)
|
|
1746
1765
|
n.writeString(r);
|
|
1747
|
-
}), e.writeBoolField(
|
|
1766
|
+
}), e.writeBoolField(Qn, t.LlmInlineResult), e.writeBoolField(Zn, t.IsEnumerable), e.writeArrayField(qn, U.Object, (n) => {
|
|
1748
1767
|
for (const r of t.Parameters)
|
|
1749
|
-
n.writeObject(
|
|
1750
|
-
|
|
1768
|
+
n.writeObject(ia, (s) => {
|
|
1769
|
+
aa(r, s);
|
|
1751
1770
|
});
|
|
1752
|
-
}), e.writeBoolField(
|
|
1771
|
+
}), e.writeBoolField(er, t.LlmCallOnlyOnce);
|
|
1753
1772
|
}
|
|
1754
|
-
function
|
|
1755
|
-
const n = e ??
|
|
1756
|
-
return
|
|
1773
|
+
function ea(t, e) {
|
|
1774
|
+
const n = e ?? Zo();
|
|
1775
|
+
return tr(n), ta(t, n), n;
|
|
1757
1776
|
}
|
|
1758
|
-
function
|
|
1777
|
+
function ta(t, e) {
|
|
1759
1778
|
let n;
|
|
1760
1779
|
for (; (n = t.next()) !== null; )
|
|
1761
1780
|
switch (n.fieldId) {
|
|
1762
|
-
case
|
|
1781
|
+
case Hn: {
|
|
1763
1782
|
if (n.isNull) throw new Error();
|
|
1764
1783
|
e.ResultTypeName = n.asString();
|
|
1765
1784
|
break;
|
|
1766
1785
|
}
|
|
1767
|
-
case
|
|
1786
|
+
case $n: {
|
|
1768
1787
|
if (n.isNull) throw new Error();
|
|
1769
1788
|
e.FunctionName = n.asString();
|
|
1770
1789
|
break;
|
|
1771
1790
|
}
|
|
1772
|
-
case
|
|
1791
|
+
case Kn: {
|
|
1773
1792
|
if (n.isNull) throw new Error();
|
|
1774
1793
|
e.EnumerableItemTypeName = n.asString();
|
|
1775
1794
|
break;
|
|
1776
1795
|
}
|
|
1777
|
-
case
|
|
1796
|
+
case Yn: {
|
|
1778
1797
|
if (n.isNull) throw new Error();
|
|
1779
1798
|
e.FunctionId = n.asGuid();
|
|
1780
1799
|
break;
|
|
1781
1800
|
}
|
|
1782
|
-
case
|
|
1801
|
+
case jn: {
|
|
1783
1802
|
if (n.isNull) throw new Error();
|
|
1784
1803
|
e.Description = n.asString();
|
|
1785
1804
|
break;
|
|
1786
1805
|
}
|
|
1787
|
-
case
|
|
1806
|
+
case zn: {
|
|
1788
1807
|
if (n.isNull) throw new Error();
|
|
1789
1808
|
e.IsCancellable = n.asBool();
|
|
1790
1809
|
break;
|
|
1791
1810
|
}
|
|
1792
|
-
case
|
|
1811
|
+
case Xn: {
|
|
1793
1812
|
if (n.isNull) throw new Error();
|
|
1794
1813
|
e.RequiresInstance = n.asBool();
|
|
1795
1814
|
break;
|
|
1796
1815
|
}
|
|
1797
|
-
case
|
|
1816
|
+
case Jn: {
|
|
1798
1817
|
if (n.isNull) throw new Error();
|
|
1799
|
-
e.Versions =
|
|
1818
|
+
e.Versions = ra(n.asArray());
|
|
1800
1819
|
break;
|
|
1801
1820
|
}
|
|
1802
|
-
case
|
|
1821
|
+
case Qn: {
|
|
1803
1822
|
if (n.isNull) throw new Error();
|
|
1804
1823
|
e.LlmInlineResult = n.asBool();
|
|
1805
1824
|
break;
|
|
1806
1825
|
}
|
|
1807
|
-
case
|
|
1826
|
+
case Zn: {
|
|
1808
1827
|
if (n.isNull) throw new Error();
|
|
1809
1828
|
e.IsEnumerable = n.asBool();
|
|
1810
1829
|
break;
|
|
1811
1830
|
}
|
|
1812
|
-
case
|
|
1831
|
+
case qn: {
|
|
1813
1832
|
if (n.isNull) throw new Error();
|
|
1814
|
-
e.Parameters =
|
|
1833
|
+
e.Parameters = sa(n.asArray());
|
|
1815
1834
|
break;
|
|
1816
1835
|
}
|
|
1817
|
-
case
|
|
1836
|
+
case er: {
|
|
1818
1837
|
if (n.isNull) throw new Error();
|
|
1819
1838
|
e.LlmCallOnlyOnce = n.asBool();
|
|
1820
1839
|
break;
|
|
1821
1840
|
}
|
|
1822
1841
|
}
|
|
1823
1842
|
}
|
|
1824
|
-
function
|
|
1825
|
-
const r =
|
|
1826
|
-
return
|
|
1843
|
+
function na(t, e, n) {
|
|
1844
|
+
const r = qo(t);
|
|
1845
|
+
return M(Qo, r, mt, e, n);
|
|
1827
1846
|
}
|
|
1828
|
-
function
|
|
1847
|
+
function ra(t) {
|
|
1829
1848
|
const e = [];
|
|
1830
1849
|
let n;
|
|
1831
1850
|
for (; (n = t.next()) !== null; )
|
|
1832
1851
|
e.push(n.asString());
|
|
1833
1852
|
return e;
|
|
1834
1853
|
}
|
|
1835
|
-
function
|
|
1854
|
+
function sa(t) {
|
|
1836
1855
|
const e = [];
|
|
1837
1856
|
let n;
|
|
1838
1857
|
for (; (n = t.next()) !== null; )
|
|
1839
|
-
e.push(
|
|
1858
|
+
e.push(ca(n.asObject()));
|
|
1840
1859
|
return e;
|
|
1841
1860
|
}
|
|
1842
|
-
const
|
|
1843
|
-
function
|
|
1861
|
+
const ia = 1, rr = 607861992, sr = 894485888, ir = 972460562, or = 1368629611, ar = 1883521406, cr = 2603556958, lr = 3609695522, ur = 4075263697, dr = 4257460908;
|
|
1862
|
+
function oa(t) {
|
|
1844
1863
|
const e = {};
|
|
1845
|
-
return
|
|
1864
|
+
return hr(e), e;
|
|
1846
1865
|
}
|
|
1847
|
-
function
|
|
1866
|
+
function hr(t) {
|
|
1848
1867
|
return t.ParameterIndex = 0, t.ParameterName = "", t.TypeName = "", t.HasDefaultValue = !1, t.DefaultValueJson = "", t.DefaultValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.Description = "", t;
|
|
1849
1868
|
}
|
|
1850
|
-
function
|
|
1851
|
-
e.writeBoolField(
|
|
1869
|
+
function aa(t, e) {
|
|
1870
|
+
e.writeBoolField(rr, t.HasDefaultValue), e.writeStringField(sr, t.DefaultValueJson), e.writeStringField(ir, t.EnumerableItemTypeName), e.writeStringField(or, t.Description), e.writeBinaryField(ar, t.DefaultValueData), e.writeBoolField(cr, t.IsEnumerable), e.writeStringField(lr, t.TypeName), e.writeStringField(ur, t.ParameterName), e.writeInt32Field(dr, t.ParameterIndex | 0);
|
|
1852
1871
|
}
|
|
1853
|
-
function
|
|
1854
|
-
const n = e ??
|
|
1855
|
-
return
|
|
1872
|
+
function ca(t, e) {
|
|
1873
|
+
const n = e ?? oa();
|
|
1874
|
+
return hr(n), la(t, n), n;
|
|
1856
1875
|
}
|
|
1857
|
-
function
|
|
1876
|
+
function la(t, e) {
|
|
1858
1877
|
let n;
|
|
1859
1878
|
for (; (n = t.next()) !== null; )
|
|
1860
1879
|
switch (n.fieldId) {
|
|
1861
|
-
case
|
|
1880
|
+
case rr: {
|
|
1862
1881
|
if (n.isNull) throw new Error();
|
|
1863
1882
|
e.HasDefaultValue = n.asBool();
|
|
1864
1883
|
break;
|
|
1865
1884
|
}
|
|
1866
|
-
case
|
|
1885
|
+
case sr: {
|
|
1867
1886
|
if (n.isNull) throw new Error();
|
|
1868
1887
|
e.DefaultValueJson = n.asString();
|
|
1869
1888
|
break;
|
|
1870
1889
|
}
|
|
1871
|
-
case
|
|
1890
|
+
case ir: {
|
|
1872
1891
|
if (n.isNull) throw new Error();
|
|
1873
1892
|
e.EnumerableItemTypeName = n.asString();
|
|
1874
1893
|
break;
|
|
1875
1894
|
}
|
|
1876
|
-
case
|
|
1895
|
+
case or: {
|
|
1877
1896
|
if (n.isNull) throw new Error();
|
|
1878
1897
|
e.Description = n.asString();
|
|
1879
1898
|
break;
|
|
1880
1899
|
}
|
|
1881
|
-
case
|
|
1900
|
+
case ar: {
|
|
1882
1901
|
if (n.isNull) throw new Error();
|
|
1883
1902
|
e.DefaultValueData = n.asBinary();
|
|
1884
1903
|
break;
|
|
1885
1904
|
}
|
|
1886
|
-
case
|
|
1905
|
+
case cr: {
|
|
1887
1906
|
if (n.isNull) throw new Error();
|
|
1888
1907
|
e.IsEnumerable = n.asBool();
|
|
1889
1908
|
break;
|
|
1890
1909
|
}
|
|
1891
|
-
case
|
|
1910
|
+
case lr: {
|
|
1892
1911
|
if (n.isNull) throw new Error();
|
|
1893
1912
|
e.TypeName = n.asString();
|
|
1894
1913
|
break;
|
|
1895
1914
|
}
|
|
1896
|
-
case
|
|
1915
|
+
case ur: {
|
|
1897
1916
|
if (n.isNull) throw new Error();
|
|
1898
1917
|
e.ParameterName = n.asString();
|
|
1899
1918
|
break;
|
|
1900
1919
|
}
|
|
1901
|
-
case
|
|
1920
|
+
case dr: {
|
|
1902
1921
|
if (n.isNull) throw new Error();
|
|
1903
1922
|
e.ParameterIndex = n.asInt32();
|
|
1904
1923
|
break;
|
|
1905
1924
|
}
|
|
1906
1925
|
}
|
|
1907
1926
|
}
|
|
1908
|
-
const
|
|
1909
|
-
function
|
|
1927
|
+
const fr = 1, ua = 1048638, da = 3678477544;
|
|
1928
|
+
function ha(t) {
|
|
1910
1929
|
const e = {};
|
|
1911
|
-
return
|
|
1930
|
+
return fa(e), t && Object.assign(e, t), e;
|
|
1912
1931
|
}
|
|
1913
|
-
function
|
|
1932
|
+
function fa(t) {
|
|
1914
1933
|
return t.Functions = [], t;
|
|
1915
1934
|
}
|
|
1916
|
-
function
|
|
1917
|
-
const e = new v(
|
|
1918
|
-
return
|
|
1935
|
+
function pa(t) {
|
|
1936
|
+
const e = new v(fr);
|
|
1937
|
+
return ma(t, e), e.finish();
|
|
1919
1938
|
}
|
|
1920
|
-
function
|
|
1921
|
-
e.writeArrayField(
|
|
1939
|
+
function ma(t, e) {
|
|
1940
|
+
e.writeArrayField(da, U.Object, (n) => {
|
|
1922
1941
|
for (const r of t.Functions)
|
|
1923
1942
|
n.writeObject(mt, (s) => {
|
|
1924
|
-
|
|
1943
|
+
nr(r, s);
|
|
1925
1944
|
});
|
|
1926
1945
|
});
|
|
1927
1946
|
}
|
|
1928
|
-
function
|
|
1929
|
-
const r =
|
|
1930
|
-
return
|
|
1947
|
+
function Ea(t, e, n) {
|
|
1948
|
+
const r = pa(t);
|
|
1949
|
+
return M(ua, r, fr, e, n);
|
|
1931
1950
|
}
|
|
1932
|
-
const
|
|
1933
|
-
function
|
|
1951
|
+
const pr = 1, mr = 1048602, Er = 349453957, Ir = 703025676, _r = 3403385840, Tr = 3748161056, wr = 4289118421;
|
|
1952
|
+
function Sr(t) {
|
|
1934
1953
|
const e = {};
|
|
1935
|
-
return
|
|
1954
|
+
return gr(e), t && Object.assign(e, t), e;
|
|
1936
1955
|
}
|
|
1937
|
-
function
|
|
1956
|
+
function gr(t) {
|
|
1938
1957
|
return t.CallId = w.fromBytes(new Uint8Array(16)), t.InstanceId = w.fromBytes(new Uint8Array(16)), t.ResultTypeName = "", t.ResultJson = "", t.ResultData = new Uint8Array(0), t;
|
|
1939
1958
|
}
|
|
1940
|
-
function
|
|
1941
|
-
const e = new v(
|
|
1942
|
-
return
|
|
1959
|
+
function Ia(t) {
|
|
1960
|
+
const e = new v(pr);
|
|
1961
|
+
return _a(t, e), e.finish();
|
|
1943
1962
|
}
|
|
1944
|
-
function
|
|
1945
|
-
e.writeBinaryField(
|
|
1963
|
+
function _a(t, e) {
|
|
1964
|
+
e.writeBinaryField(Er, t.ResultData), e.writeStringField(Ir, t.ResultTypeName), e.writeStringField(_r, t.ResultJson), e.writeGuidField(Tr, t.CallId), e.writeGuidField(wr, t.InstanceId);
|
|
1946
1965
|
}
|
|
1947
|
-
function
|
|
1966
|
+
function Ta(t, e) {
|
|
1948
1967
|
const n = H.create(t);
|
|
1949
|
-
return
|
|
1968
|
+
return wa(n, e);
|
|
1950
1969
|
}
|
|
1951
|
-
function
|
|
1952
|
-
const n = e ??
|
|
1953
|
-
return
|
|
1970
|
+
function wa(t, e) {
|
|
1971
|
+
const n = e ?? Sr();
|
|
1972
|
+
return gr(n), Sa(t, n), n;
|
|
1954
1973
|
}
|
|
1955
|
-
function
|
|
1974
|
+
function Sa(t, e) {
|
|
1956
1975
|
let n;
|
|
1957
1976
|
for (; (n = t.next()) !== null; )
|
|
1958
1977
|
switch (n.fieldId) {
|
|
1959
|
-
case
|
|
1978
|
+
case Er: {
|
|
1960
1979
|
if (n.isNull) throw new Error();
|
|
1961
1980
|
e.ResultData = n.asBinary();
|
|
1962
1981
|
break;
|
|
1963
1982
|
}
|
|
1964
|
-
case
|
|
1983
|
+
case Ir: {
|
|
1965
1984
|
if (n.isNull) throw new Error();
|
|
1966
1985
|
e.ResultTypeName = n.asString();
|
|
1967
1986
|
break;
|
|
1968
1987
|
}
|
|
1969
|
-
case
|
|
1988
|
+
case _r: {
|
|
1970
1989
|
if (n.isNull) throw new Error();
|
|
1971
1990
|
e.ResultJson = n.asString();
|
|
1972
1991
|
break;
|
|
1973
1992
|
}
|
|
1974
|
-
case
|
|
1993
|
+
case Tr: {
|
|
1975
1994
|
if (n.isNull) throw new Error();
|
|
1976
1995
|
e.CallId = n.asGuid();
|
|
1977
1996
|
break;
|
|
1978
1997
|
}
|
|
1979
|
-
case
|
|
1998
|
+
case wr: {
|
|
1980
1999
|
if (n.isNull) throw new Error();
|
|
1981
2000
|
e.InstanceId = n.asGuid();
|
|
1982
2001
|
break;
|
|
1983
2002
|
}
|
|
1984
2003
|
}
|
|
1985
2004
|
}
|
|
1986
|
-
function
|
|
1987
|
-
const r =
|
|
1988
|
-
return
|
|
2005
|
+
function ga(t, e, n) {
|
|
2006
|
+
const r = Ia(t);
|
|
2007
|
+
return M(mr, r, pr, e, n);
|
|
1989
2008
|
}
|
|
1990
|
-
function
|
|
1991
|
-
const n = ye(t,
|
|
1992
|
-
return
|
|
2009
|
+
function Ca(t, e) {
|
|
2010
|
+
const n = ye(t, mr);
|
|
2011
|
+
return Ta(n, e);
|
|
1993
2012
|
}
|
|
1994
|
-
const
|
|
2013
|
+
const Cr = 1, ya = 65549;
|
|
1995
2014
|
function Nt(t) {
|
|
1996
2015
|
return {};
|
|
1997
2016
|
}
|
|
1998
|
-
function
|
|
1999
|
-
return new v(
|
|
2017
|
+
function Aa(t) {
|
|
2018
|
+
return new v(Cr).finish();
|
|
2000
2019
|
}
|
|
2001
2020
|
function kt(t, e, n) {
|
|
2002
|
-
const r =
|
|
2003
|
-
return
|
|
2021
|
+
const r = Aa();
|
|
2022
|
+
return M(ya, r, Cr, e, n);
|
|
2004
2023
|
}
|
|
2005
|
-
const
|
|
2006
|
-
function
|
|
2024
|
+
const Ra = 3167053791, ba = 3342364356, Na = 3612929027;
|
|
2025
|
+
function yr(t) {
|
|
2007
2026
|
const e = {};
|
|
2008
|
-
return
|
|
2027
|
+
return Ar(e), e;
|
|
2009
2028
|
}
|
|
2010
|
-
function
|
|
2029
|
+
function Ar(t) {
|
|
2011
2030
|
return t.Category = "", t.Type = Qt.Face, t.FaceBlendshapes = [], t;
|
|
2012
2031
|
}
|
|
2013
|
-
function
|
|
2014
|
-
const n = e ??
|
|
2015
|
-
return
|
|
2032
|
+
function ka(t, e) {
|
|
2033
|
+
const n = e ?? yr();
|
|
2034
|
+
return Ar(n), Da(t, n), n;
|
|
2016
2035
|
}
|
|
2017
|
-
function
|
|
2036
|
+
function Da(t, e) {
|
|
2018
2037
|
let n;
|
|
2019
2038
|
for (; (n = t.next()) !== null; )
|
|
2020
2039
|
switch (n.fieldId) {
|
|
2021
|
-
case
|
|
2040
|
+
case Ra: {
|
|
2022
2041
|
if (n.isNull) throw new Error();
|
|
2023
2042
|
e.Type = n.asInt32();
|
|
2024
2043
|
break;
|
|
2025
2044
|
}
|
|
2026
|
-
case
|
|
2045
|
+
case ba: {
|
|
2027
2046
|
if (n.isNull) throw new Error();
|
|
2028
|
-
e.FaceBlendshapes =
|
|
2047
|
+
e.FaceBlendshapes = va(n.asArray());
|
|
2029
2048
|
break;
|
|
2030
2049
|
}
|
|
2031
|
-
case
|
|
2050
|
+
case Na: {
|
|
2032
2051
|
if (n.isNull) throw new Error();
|
|
2033
2052
|
e.Category = n.asString();
|
|
2034
2053
|
break;
|
|
2035
2054
|
}
|
|
2036
2055
|
}
|
|
2037
2056
|
}
|
|
2038
|
-
function
|
|
2057
|
+
function va(t) {
|
|
2039
2058
|
const e = [];
|
|
2040
2059
|
let n;
|
|
2041
2060
|
for (; (n = t.next()) !== null; )
|
|
2042
2061
|
e.push(n.asString());
|
|
2043
2062
|
return e;
|
|
2044
2063
|
}
|
|
2045
|
-
const
|
|
2046
|
-
function
|
|
2064
|
+
const Ua = 3612929027;
|
|
2065
|
+
function Rr(t) {
|
|
2047
2066
|
const e = {};
|
|
2048
|
-
return
|
|
2067
|
+
return br(e), e;
|
|
2049
2068
|
}
|
|
2050
|
-
function
|
|
2069
|
+
function br(t) {
|
|
2051
2070
|
return t.Category = "", t;
|
|
2052
2071
|
}
|
|
2053
|
-
function
|
|
2054
|
-
const n = e ??
|
|
2055
|
-
return
|
|
2072
|
+
function Oa(t, e) {
|
|
2073
|
+
const n = e ?? Rr();
|
|
2074
|
+
return br(n), Ma(t, n), n;
|
|
2056
2075
|
}
|
|
2057
|
-
function
|
|
2076
|
+
function Ma(t, e) {
|
|
2058
2077
|
let n;
|
|
2059
2078
|
for (; (n = t.next()) !== null; )
|
|
2060
2079
|
switch (n.fieldId) {
|
|
2061
|
-
case
|
|
2080
|
+
case Ua: {
|
|
2062
2081
|
if (n.isNull) throw new Error();
|
|
2063
2082
|
e.Category = n.asString();
|
|
2064
2083
|
break;
|
|
2065
2084
|
}
|
|
2066
2085
|
}
|
|
2067
2086
|
}
|
|
2068
|
-
const
|
|
2069
|
-
function
|
|
2087
|
+
const La = 161083277, Fa = 164808083, Pa = 1368629611, Ba = 2745379226, xa = 2950031986, Ga = 3282782683, Wa = 3284746250, Va = 4065070594;
|
|
2088
|
+
function Nr(t) {
|
|
2070
2089
|
const e = {};
|
|
2071
|
-
return
|
|
2090
|
+
return kr(e), e;
|
|
2072
2091
|
}
|
|
2073
|
-
function
|
|
2092
|
+
function kr(t) {
|
|
2074
2093
|
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = Zt.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t;
|
|
2075
2094
|
}
|
|
2076
|
-
function
|
|
2077
|
-
const n = e ??
|
|
2078
|
-
return
|
|
2095
|
+
function Ha(t, e) {
|
|
2096
|
+
const n = e ?? Nr();
|
|
2097
|
+
return kr(n), $a(t, n), n;
|
|
2079
2098
|
}
|
|
2080
|
-
function
|
|
2099
|
+
function $a(t, e) {
|
|
2081
2100
|
let n;
|
|
2082
2101
|
for (; (n = t.next()) !== null; )
|
|
2083
2102
|
switch (n.fieldId) {
|
|
2084
|
-
case
|
|
2103
|
+
case La: {
|
|
2085
2104
|
if (n.isNull) throw new Error();
|
|
2086
2105
|
e.StreamId = n.asString();
|
|
2087
2106
|
break;
|
|
2088
2107
|
}
|
|
2089
|
-
case
|
|
2108
|
+
case Fa: {
|
|
2090
2109
|
if (n.isNull) throw new Error();
|
|
2091
2110
|
e.Framerate = n.asFloat64();
|
|
2092
2111
|
break;
|
|
2093
2112
|
}
|
|
2094
|
-
case
|
|
2113
|
+
case Pa: {
|
|
2095
2114
|
if (n.isNull) throw new Error();
|
|
2096
2115
|
e.Description = n.asString();
|
|
2097
2116
|
break;
|
|
2098
2117
|
}
|
|
2099
|
-
case
|
|
2118
|
+
case Ba: {
|
|
2100
2119
|
if (n.isNull) throw new Error();
|
|
2101
2120
|
e.CodecDetails = n.asString();
|
|
2102
2121
|
break;
|
|
2103
2122
|
}
|
|
2104
|
-
case
|
|
2123
|
+
case xa: {
|
|
2105
2124
|
if (n.isNull) throw new Error();
|
|
2106
2125
|
e.Height = n.asInt32();
|
|
2107
2126
|
break;
|
|
2108
2127
|
}
|
|
2109
|
-
case
|
|
2128
|
+
case Ga: {
|
|
2110
2129
|
if (n.isNull) throw new Error();
|
|
2111
2130
|
e.SourceType = n.asString();
|
|
2112
2131
|
break;
|
|
2113
2132
|
}
|
|
2114
|
-
case
|
|
2133
|
+
case Wa: {
|
|
2115
2134
|
if (n.isNull) throw new Error();
|
|
2116
2135
|
e.Codec = n.asInt32();
|
|
2117
2136
|
break;
|
|
2118
2137
|
}
|
|
2119
|
-
case
|
|
2138
|
+
case Va: {
|
|
2120
2139
|
if (n.isNull) throw new Error();
|
|
2121
2140
|
e.Width = n.asInt32();
|
|
2122
2141
|
break;
|
|
2123
2142
|
}
|
|
2124
2143
|
}
|
|
2125
2144
|
}
|
|
2126
|
-
const
|
|
2127
|
-
function
|
|
2145
|
+
const Ka = 65539, Ya = 693643444, ja = 1144553441, za = 1497620243, Xa = 1559330978, Ja = 1976546434, Qa = 1999510636, Za = 2271236852, qa = 2277643855, ec = 2469008121, tc = 3042922213, nc = 3064612128, rc = 3219210453, sc = 3504054055, ic = 3678477544, oc = 3696445035, ac = 3707543140, cc = 3712281496, lc = 3895362455, uc = 3897397815, dc = 4225107827;
|
|
2146
|
+
function hc(t) {
|
|
2128
2147
|
const e = {};
|
|
2129
|
-
return
|
|
2148
|
+
return Dr(e), e;
|
|
2130
2149
|
}
|
|
2131
|
-
function
|
|
2150
|
+
function Dr(t) {
|
|
2132
2151
|
return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.SessionId = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = qt.Local, t.AppSourceType = en.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
2133
2152
|
}
|
|
2134
|
-
function
|
|
2153
|
+
function fc(t, e) {
|
|
2135
2154
|
const n = H.create(t);
|
|
2136
|
-
return
|
|
2155
|
+
return pc(n, e);
|
|
2137
2156
|
}
|
|
2138
|
-
function
|
|
2139
|
-
const n = e ??
|
|
2140
|
-
return
|
|
2157
|
+
function pc(t, e) {
|
|
2158
|
+
const n = e ?? hc();
|
|
2159
|
+
return Dr(n), mc(t, n), n;
|
|
2141
2160
|
}
|
|
2142
|
-
function
|
|
2161
|
+
function mc(t, e) {
|
|
2143
2162
|
let n;
|
|
2144
2163
|
for (; (n = t.next()) !== null; )
|
|
2145
2164
|
switch (n.fieldId) {
|
|
2146
|
-
case
|
|
2165
|
+
case Ya: {
|
|
2147
2166
|
if (n.isNull) throw new Error();
|
|
2148
2167
|
e.FirstUserId = n.asString();
|
|
2149
2168
|
break;
|
|
2150
2169
|
}
|
|
2151
|
-
case
|
|
2170
|
+
case ja: {
|
|
2152
2171
|
if (n.isNull) throw new Error();
|
|
2153
|
-
e.Clients =
|
|
2172
|
+
e.Clients = Ic(n.asDictionary());
|
|
2154
2173
|
break;
|
|
2155
2174
|
}
|
|
2156
|
-
case
|
|
2175
|
+
case za: {
|
|
2157
2176
|
if (n.isNull) throw new Error();
|
|
2158
|
-
e.TrackingStreams =
|
|
2177
|
+
e.TrackingStreams = _c(n.asDictionary());
|
|
2159
2178
|
break;
|
|
2160
2179
|
}
|
|
2161
|
-
case
|
|
2180
|
+
case Xa: {
|
|
2162
2181
|
if (n.isNull) throw new Error();
|
|
2163
2182
|
e.ChannelId = n.asString();
|
|
2164
2183
|
break;
|
|
2165
2184
|
}
|
|
2166
|
-
case
|
|
2185
|
+
case Ja: {
|
|
2167
2186
|
if (n.isNull) throw new Error();
|
|
2168
2187
|
e.AppSourceType = n.asInt32();
|
|
2169
2188
|
break;
|
|
2170
2189
|
}
|
|
2171
|
-
case
|
|
2190
|
+
case Qa: {
|
|
2172
2191
|
if (n.isNull) throw new Error();
|
|
2173
2192
|
e.SessionId = n.asString();
|
|
2174
2193
|
break;
|
|
2175
2194
|
}
|
|
2176
|
-
case
|
|
2195
|
+
case Za: {
|
|
2177
2196
|
if (n.isNull) throw new Error();
|
|
2178
2197
|
e.SessionChannelUrl = n.asString();
|
|
2179
2198
|
break;
|
|
2180
2199
|
}
|
|
2181
|
-
case
|
|
2200
|
+
case qa: {
|
|
2182
2201
|
if (n.isNull) throw new Error();
|
|
2183
2202
|
e.ChannelUrl = n.asString();
|
|
2184
2203
|
break;
|
|
2185
2204
|
}
|
|
2186
|
-
case
|
|
2205
|
+
case ec: {
|
|
2187
2206
|
if (n.isNull) throw new Error();
|
|
2188
2207
|
e.ChannelName = n.asString();
|
|
2189
2208
|
break;
|
|
2190
2209
|
}
|
|
2191
|
-
case
|
|
2210
|
+
case tc: {
|
|
2192
2211
|
if (n.isNull) throw new Error();
|
|
2193
2212
|
e.PublicAccess = n.asBool();
|
|
2194
2213
|
break;
|
|
2195
2214
|
}
|
|
2196
|
-
case
|
|
2215
|
+
case nc: {
|
|
2197
2216
|
if (n.isNull) throw new Error();
|
|
2198
2217
|
e.ServerRunType = n.asInt32();
|
|
2199
2218
|
break;
|
|
2200
2219
|
}
|
|
2201
|
-
case
|
|
2220
|
+
case rc: {
|
|
2202
2221
|
if (n.isNull) throw new Error();
|
|
2203
2222
|
e.OrganisationName = n.asString();
|
|
2204
2223
|
break;
|
|
2205
2224
|
}
|
|
2206
|
-
case
|
|
2225
|
+
case sc: {
|
|
2207
2226
|
if (n.isNull) throw new Error();
|
|
2208
2227
|
e.DebugMode = n.asBool();
|
|
2209
2228
|
break;
|
|
2210
2229
|
}
|
|
2211
|
-
case
|
|
2230
|
+
case ic: {
|
|
2212
2231
|
if (n.isNull) throw new Error();
|
|
2213
|
-
e.Functions =
|
|
2232
|
+
e.Functions = Tc(n.asDictionary());
|
|
2214
2233
|
break;
|
|
2215
2234
|
}
|
|
2216
|
-
case
|
|
2235
|
+
case oc: {
|
|
2217
2236
|
if (n.isNull) throw new Error();
|
|
2218
|
-
e.UIStreams =
|
|
2237
|
+
e.UIStreams = wc(n.asDictionary());
|
|
2219
2238
|
break;
|
|
2220
2239
|
}
|
|
2221
|
-
case
|
|
2240
|
+
case ac: {
|
|
2222
2241
|
if (n.isNull) throw new Error();
|
|
2223
2242
|
e.SpaceId = n.asString();
|
|
2224
2243
|
break;
|
|
2225
2244
|
}
|
|
2226
|
-
case
|
|
2245
|
+
case cc: {
|
|
2227
2246
|
if (n.isNull) throw new Error();
|
|
2228
2247
|
e.PrimaryUserId = n.asString();
|
|
2229
2248
|
break;
|
|
2230
2249
|
}
|
|
2231
|
-
case
|
|
2250
|
+
case lc: {
|
|
2232
2251
|
if (n.isNull) throw new Error();
|
|
2233
|
-
e.AudioStreams =
|
|
2252
|
+
e.AudioStreams = Sc(n.asDictionary());
|
|
2234
2253
|
break;
|
|
2235
2254
|
}
|
|
2236
|
-
case
|
|
2255
|
+
case uc: {
|
|
2237
2256
|
if (n.isNull) throw new Error();
|
|
2238
|
-
e.VideoStreams =
|
|
2257
|
+
e.VideoStreams = gc(n.asDictionary());
|
|
2239
2258
|
break;
|
|
2240
2259
|
}
|
|
2241
|
-
case
|
|
2260
|
+
case dc: {
|
|
2242
2261
|
if (n.isNull) throw new Error();
|
|
2243
2262
|
e.SpaceName = n.asString();
|
|
2244
2263
|
break;
|
|
2245
2264
|
}
|
|
2246
2265
|
}
|
|
2247
2266
|
}
|
|
2248
|
-
async function
|
|
2249
|
-
const n = await at(t,
|
|
2250
|
-
return
|
|
2267
|
+
async function Ec(t, e) {
|
|
2268
|
+
const n = await at(t, Ka);
|
|
2269
|
+
return fc(n, e);
|
|
2251
2270
|
}
|
|
2252
|
-
function
|
|
2271
|
+
function Ic(t) {
|
|
2253
2272
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2254
2273
|
let n;
|
|
2255
2274
|
for (; (n = t.next()) !== null; ) {
|
|
@@ -2258,407 +2277,407 @@ function lc(t) {
|
|
|
2258
2277
|
}
|
|
2259
2278
|
return e;
|
|
2260
2279
|
}
|
|
2261
|
-
function
|
|
2280
|
+
function _c(t) {
|
|
2262
2281
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2263
2282
|
let n;
|
|
2264
2283
|
for (; (n = t.next()) !== null; ) {
|
|
2265
2284
|
const r = n.key.asString();
|
|
2266
|
-
e[r] =
|
|
2285
|
+
e[r] = Jc(n.value.asObject());
|
|
2267
2286
|
}
|
|
2268
2287
|
return e;
|
|
2269
2288
|
}
|
|
2270
|
-
function
|
|
2289
|
+
function Tc(t) {
|
|
2271
2290
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2272
2291
|
let n;
|
|
2273
2292
|
for (; (n = t.next()) !== null; ) {
|
|
2274
2293
|
const r = n.key.asInt32();
|
|
2275
|
-
e[r] =
|
|
2294
|
+
e[r] = Cc(n.value.asArray());
|
|
2276
2295
|
}
|
|
2277
2296
|
return e;
|
|
2278
2297
|
}
|
|
2279
|
-
function
|
|
2298
|
+
function wc(t) {
|
|
2280
2299
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2281
2300
|
let n;
|
|
2282
2301
|
for (; (n = t.next()) !== null; ) {
|
|
2283
2302
|
const r = n.key.asString();
|
|
2284
|
-
e[r] =
|
|
2303
|
+
e[r] = kc(n.value.asObject());
|
|
2285
2304
|
}
|
|
2286
2305
|
return e;
|
|
2287
2306
|
}
|
|
2288
|
-
function
|
|
2307
|
+
function Sc(t) {
|
|
2289
2308
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2290
2309
|
let n;
|
|
2291
2310
|
for (; (n = t.next()) !== null; ) {
|
|
2292
2311
|
const r = n.key.asString();
|
|
2293
|
-
e[r] =
|
|
2312
|
+
e[r] = Fc(n.value.asObject());
|
|
2294
2313
|
}
|
|
2295
2314
|
return e;
|
|
2296
2315
|
}
|
|
2297
|
-
function
|
|
2316
|
+
function gc(t) {
|
|
2298
2317
|
const e = /* @__PURE__ */ Object.create(null);
|
|
2299
2318
|
let n;
|
|
2300
2319
|
for (; (n = t.next()) !== null; ) {
|
|
2301
2320
|
const r = n.key.asString();
|
|
2302
|
-
e[r] =
|
|
2321
|
+
e[r] = Hc(n.value.asObject());
|
|
2303
2322
|
}
|
|
2304
2323
|
return e;
|
|
2305
2324
|
}
|
|
2306
|
-
function
|
|
2325
|
+
function Cc(t) {
|
|
2307
2326
|
const e = [];
|
|
2308
2327
|
let n;
|
|
2309
2328
|
for (; (n = t.next()) !== null; )
|
|
2310
|
-
e.push(
|
|
2329
|
+
e.push(ea(n.asObject()));
|
|
2311
2330
|
return e;
|
|
2312
2331
|
}
|
|
2313
|
-
const
|
|
2314
|
-
function
|
|
2332
|
+
const yc = 161083277, Ac = 325678206, Rc = 3469892363, bc = 3645544153;
|
|
2333
|
+
function Nc(t) {
|
|
2315
2334
|
const e = {};
|
|
2316
|
-
return
|
|
2335
|
+
return vr(e), e;
|
|
2317
2336
|
}
|
|
2318
|
-
function
|
|
2319
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
2337
|
+
function vr(t) {
|
|
2338
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Rr(), t;
|
|
2320
2339
|
}
|
|
2321
|
-
function
|
|
2322
|
-
const n = e ??
|
|
2323
|
-
return
|
|
2340
|
+
function kc(t, e) {
|
|
2341
|
+
const n = e ?? Nc();
|
|
2342
|
+
return vr(n), Dc(t, n), n;
|
|
2324
2343
|
}
|
|
2325
|
-
function
|
|
2344
|
+
function Dc(t, e) {
|
|
2326
2345
|
let n;
|
|
2327
2346
|
for (; (n = t.next()) !== null; )
|
|
2328
2347
|
switch (n.fieldId) {
|
|
2329
|
-
case
|
|
2348
|
+
case yc: {
|
|
2330
2349
|
if (n.isNull) throw new Error();
|
|
2331
2350
|
e.StreamId = n.asString();
|
|
2332
2351
|
break;
|
|
2333
2352
|
}
|
|
2334
|
-
case
|
|
2353
|
+
case Ac: {
|
|
2335
2354
|
if (n.isNull) throw new Error();
|
|
2336
2355
|
e.ClientSessionId = n.asInt32();
|
|
2337
2356
|
break;
|
|
2338
2357
|
}
|
|
2339
|
-
case
|
|
2358
|
+
case Rc: {
|
|
2340
2359
|
if (n.isNull) throw new Error();
|
|
2341
2360
|
e.TrackId = n.asInt32();
|
|
2342
2361
|
break;
|
|
2343
2362
|
}
|
|
2344
|
-
case
|
|
2363
|
+
case bc: {
|
|
2345
2364
|
if (n.isNull) throw new Error();
|
|
2346
|
-
e.Info =
|
|
2365
|
+
e.Info = Oa(n.asObject());
|
|
2347
2366
|
break;
|
|
2348
2367
|
}
|
|
2349
2368
|
}
|
|
2350
2369
|
}
|
|
2351
|
-
const
|
|
2352
|
-
function
|
|
2370
|
+
const vc = 161083277, Uc = 325678206, Oc = 3469892363, Mc = 3645544153;
|
|
2371
|
+
function Lc(t) {
|
|
2353
2372
|
const e = {};
|
|
2354
|
-
return
|
|
2373
|
+
return Ur(e), e;
|
|
2355
2374
|
}
|
|
2356
|
-
function
|
|
2357
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
2375
|
+
function Ur(t) {
|
|
2376
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = fn(), t;
|
|
2358
2377
|
}
|
|
2359
|
-
function
|
|
2360
|
-
const n = e ??
|
|
2361
|
-
return
|
|
2378
|
+
function Fc(t, e) {
|
|
2379
|
+
const n = e ?? Lc();
|
|
2380
|
+
return Ur(n), Pc(t, n), n;
|
|
2362
2381
|
}
|
|
2363
|
-
function
|
|
2382
|
+
function Pc(t, e) {
|
|
2364
2383
|
let n;
|
|
2365
2384
|
for (; (n = t.next()) !== null; )
|
|
2366
2385
|
switch (n.fieldId) {
|
|
2367
|
-
case
|
|
2386
|
+
case vc: {
|
|
2368
2387
|
if (n.isNull) throw new Error();
|
|
2369
2388
|
e.StreamId = n.asString();
|
|
2370
2389
|
break;
|
|
2371
2390
|
}
|
|
2372
|
-
case
|
|
2391
|
+
case Uc: {
|
|
2373
2392
|
if (n.isNull) throw new Error();
|
|
2374
2393
|
e.ClientSessionId = n.asInt32();
|
|
2375
2394
|
break;
|
|
2376
2395
|
}
|
|
2377
|
-
case
|
|
2396
|
+
case Oc: {
|
|
2378
2397
|
if (n.isNull) throw new Error();
|
|
2379
2398
|
e.TrackId = n.asInt32();
|
|
2380
2399
|
break;
|
|
2381
2400
|
}
|
|
2382
|
-
case
|
|
2401
|
+
case Mc: {
|
|
2383
2402
|
if (n.isNull) throw new Error();
|
|
2384
|
-
e.Info =
|
|
2403
|
+
e.Info = ri(n.asObject());
|
|
2385
2404
|
break;
|
|
2386
2405
|
}
|
|
2387
2406
|
}
|
|
2388
2407
|
}
|
|
2389
|
-
const
|
|
2390
|
-
function
|
|
2408
|
+
const Bc = 161083277, xc = 325678206, Gc = 3469892363, Wc = 3645544153;
|
|
2409
|
+
function Vc(t) {
|
|
2391
2410
|
const e = {};
|
|
2392
|
-
return
|
|
2411
|
+
return Or(e), e;
|
|
2393
2412
|
}
|
|
2394
|
-
function
|
|
2395
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
2413
|
+
function Or(t) {
|
|
2414
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Nr(), t;
|
|
2396
2415
|
}
|
|
2397
|
-
function
|
|
2398
|
-
const n = e ??
|
|
2399
|
-
return
|
|
2416
|
+
function Hc(t, e) {
|
|
2417
|
+
const n = e ?? Vc();
|
|
2418
|
+
return Or(n), $c(t, n), n;
|
|
2400
2419
|
}
|
|
2401
|
-
function
|
|
2420
|
+
function $c(t, e) {
|
|
2402
2421
|
let n;
|
|
2403
2422
|
for (; (n = t.next()) !== null; )
|
|
2404
2423
|
switch (n.fieldId) {
|
|
2405
|
-
case
|
|
2424
|
+
case Bc: {
|
|
2406
2425
|
if (n.isNull) throw new Error();
|
|
2407
2426
|
e.StreamId = n.asString();
|
|
2408
2427
|
break;
|
|
2409
2428
|
}
|
|
2410
|
-
case
|
|
2429
|
+
case xc: {
|
|
2411
2430
|
if (n.isNull) throw new Error();
|
|
2412
2431
|
e.ClientSessionId = n.asInt32();
|
|
2413
2432
|
break;
|
|
2414
2433
|
}
|
|
2415
|
-
case
|
|
2434
|
+
case Gc: {
|
|
2416
2435
|
if (n.isNull) throw new Error();
|
|
2417
2436
|
e.TrackId = n.asInt32();
|
|
2418
2437
|
break;
|
|
2419
2438
|
}
|
|
2420
|
-
case
|
|
2439
|
+
case Wc: {
|
|
2421
2440
|
if (n.isNull) throw new Error();
|
|
2422
|
-
e.Info =
|
|
2441
|
+
e.Info = Ha(n.asObject());
|
|
2423
2442
|
break;
|
|
2424
2443
|
}
|
|
2425
2444
|
}
|
|
2426
2445
|
}
|
|
2427
|
-
const
|
|
2428
|
-
function
|
|
2446
|
+
const Kc = 161083277, Yc = 325678206, jc = 3469892363, zc = 3645544153;
|
|
2447
|
+
function Xc(t) {
|
|
2429
2448
|
const e = {};
|
|
2430
|
-
return
|
|
2449
|
+
return Mr(e), e;
|
|
2431
2450
|
}
|
|
2432
|
-
function
|
|
2433
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
2451
|
+
function Mr(t) {
|
|
2452
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = yr(), t;
|
|
2434
2453
|
}
|
|
2435
|
-
function
|
|
2436
|
-
const n = e ??
|
|
2437
|
-
return
|
|
2454
|
+
function Jc(t, e) {
|
|
2455
|
+
const n = e ?? Xc();
|
|
2456
|
+
return Mr(n), Qc(t, n), n;
|
|
2438
2457
|
}
|
|
2439
|
-
function
|
|
2458
|
+
function Qc(t, e) {
|
|
2440
2459
|
let n;
|
|
2441
2460
|
for (; (n = t.next()) !== null; )
|
|
2442
2461
|
switch (n.fieldId) {
|
|
2443
|
-
case
|
|
2462
|
+
case Kc: {
|
|
2444
2463
|
if (n.isNull) throw new Error();
|
|
2445
2464
|
e.StreamId = n.asString();
|
|
2446
2465
|
break;
|
|
2447
2466
|
}
|
|
2448
|
-
case
|
|
2467
|
+
case Yc: {
|
|
2449
2468
|
if (n.isNull) throw new Error();
|
|
2450
2469
|
e.ClientSessionId = n.asInt32();
|
|
2451
2470
|
break;
|
|
2452
2471
|
}
|
|
2453
|
-
case
|
|
2472
|
+
case jc: {
|
|
2454
2473
|
if (n.isNull) throw new Error();
|
|
2455
2474
|
e.TrackId = n.asInt32();
|
|
2456
2475
|
break;
|
|
2457
2476
|
}
|
|
2458
|
-
case
|
|
2477
|
+
case zc: {
|
|
2459
2478
|
if (n.isNull) throw new Error();
|
|
2460
|
-
e.Info =
|
|
2479
|
+
e.Info = ka(n.asObject());
|
|
2461
2480
|
break;
|
|
2462
2481
|
}
|
|
2463
2482
|
}
|
|
2464
2483
|
}
|
|
2465
|
-
const
|
|
2466
|
-
function
|
|
2484
|
+
const Lr = 1, Zc = 131074;
|
|
2485
|
+
function Fr(t) {
|
|
2467
2486
|
return {};
|
|
2468
2487
|
}
|
|
2469
|
-
function
|
|
2470
|
-
return new v(
|
|
2488
|
+
function qc(t) {
|
|
2489
|
+
return new v(Lr).finish();
|
|
2471
2490
|
}
|
|
2472
|
-
function
|
|
2473
|
-
const r =
|
|
2474
|
-
return
|
|
2491
|
+
function Pr(t, e, n) {
|
|
2492
|
+
const r = qc();
|
|
2493
|
+
return M(Zc, r, Lr, e, n);
|
|
2475
2494
|
}
|
|
2476
|
-
const
|
|
2477
|
-
function
|
|
2495
|
+
const Br = 1, el = 65558, tl = 250031587, nl = 1286979607, rl = 2033288346, sl = 3542818975;
|
|
2496
|
+
function il(t) {
|
|
2478
2497
|
const e = {};
|
|
2479
|
-
return
|
|
2498
|
+
return ol(e), t && Object.assign(e, t), e;
|
|
2480
2499
|
}
|
|
2481
|
-
function
|
|
2500
|
+
function ol(t) {
|
|
2482
2501
|
return t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t;
|
|
2483
2502
|
}
|
|
2484
|
-
function
|
|
2485
|
-
const e = new v(
|
|
2486
|
-
return
|
|
2503
|
+
function al(t) {
|
|
2504
|
+
const e = new v(Br);
|
|
2505
|
+
return cl(t, e), e.finish();
|
|
2487
2506
|
}
|
|
2488
|
-
function
|
|
2489
|
-
e.writeStringField(
|
|
2507
|
+
function cl(t, e) {
|
|
2508
|
+
e.writeStringField(tl, t.Theme), e.writeInt32Field(nl, t.ViewportHeight | 0), e.writeInt32Field(rl, t.ViewportWidth | 0), e.writeStringField(sl, t.Timezone);
|
|
2490
2509
|
}
|
|
2491
|
-
function
|
|
2492
|
-
const r =
|
|
2493
|
-
return
|
|
2510
|
+
function ll(t, e, n) {
|
|
2511
|
+
const r = al(t);
|
|
2512
|
+
return M(el, r, Br, e, n);
|
|
2494
2513
|
}
|
|
2495
|
-
const
|
|
2496
|
-
function
|
|
2514
|
+
const xr = 1, ul = 8388612;
|
|
2515
|
+
function dl(t) {
|
|
2497
2516
|
return {};
|
|
2498
2517
|
}
|
|
2499
|
-
function
|
|
2500
|
-
return new v(
|
|
2518
|
+
function hl(t) {
|
|
2519
|
+
return new v(xr).finish();
|
|
2501
2520
|
}
|
|
2502
|
-
function
|
|
2503
|
-
const r =
|
|
2504
|
-
return
|
|
2521
|
+
function fl(t, e, n) {
|
|
2522
|
+
const r = hl();
|
|
2523
|
+
return M(ul, r, xr, e, n);
|
|
2505
2524
|
}
|
|
2506
|
-
const
|
|
2507
|
-
function
|
|
2525
|
+
const Gr = 65567, pl = 1455877031;
|
|
2526
|
+
function ml(t) {
|
|
2508
2527
|
const e = {};
|
|
2509
2528
|
return Wr(e), e;
|
|
2510
2529
|
}
|
|
2511
2530
|
function Wr(t) {
|
|
2512
2531
|
return t.Sdp = "", t;
|
|
2513
2532
|
}
|
|
2514
|
-
function
|
|
2533
|
+
function El(t, e) {
|
|
2515
2534
|
const n = H.create(t);
|
|
2516
|
-
return
|
|
2535
|
+
return Il(n, e);
|
|
2517
2536
|
}
|
|
2518
|
-
function
|
|
2519
|
-
const n = e ??
|
|
2520
|
-
return Wr(n),
|
|
2537
|
+
function Il(t, e) {
|
|
2538
|
+
const n = e ?? ml();
|
|
2539
|
+
return Wr(n), _l(t, n), n;
|
|
2521
2540
|
}
|
|
2522
|
-
function
|
|
2541
|
+
function _l(t, e) {
|
|
2523
2542
|
let n;
|
|
2524
2543
|
for (; (n = t.next()) !== null; )
|
|
2525
2544
|
switch (n.fieldId) {
|
|
2526
|
-
case
|
|
2545
|
+
case pl: {
|
|
2527
2546
|
if (n.isNull) throw new Error();
|
|
2528
2547
|
e.Sdp = n.asString();
|
|
2529
2548
|
break;
|
|
2530
2549
|
}
|
|
2531
2550
|
}
|
|
2532
2551
|
}
|
|
2533
|
-
function
|
|
2534
|
-
const n = ye(t,
|
|
2535
|
-
return
|
|
2552
|
+
function Tl(t, e) {
|
|
2553
|
+
const n = ye(t, Gr);
|
|
2554
|
+
return El(n, e);
|
|
2536
2555
|
}
|
|
2537
|
-
const
|
|
2556
|
+
const Vr = 1, wl = 65570, Sl = 2677673673;
|
|
2538
2557
|
function Dt(t) {
|
|
2539
2558
|
const e = {};
|
|
2540
|
-
return
|
|
2559
|
+
return gl(e), t && Object.assign(e, t), e;
|
|
2541
2560
|
}
|
|
2542
|
-
function
|
|
2561
|
+
function gl(t) {
|
|
2543
2562
|
return t.IsStart = !1, t;
|
|
2544
2563
|
}
|
|
2545
|
-
function
|
|
2546
|
-
const e = new v(
|
|
2547
|
-
return
|
|
2564
|
+
function Cl(t) {
|
|
2565
|
+
const e = new v(Vr);
|
|
2566
|
+
return yl(t, e), e.finish();
|
|
2548
2567
|
}
|
|
2549
|
-
function
|
|
2550
|
-
e.writeBoolField(
|
|
2568
|
+
function yl(t, e) {
|
|
2569
|
+
e.writeBoolField(Sl, t.IsStart);
|
|
2551
2570
|
}
|
|
2552
2571
|
function vt(t, e, n) {
|
|
2553
|
-
const r =
|
|
2554
|
-
return
|
|
2572
|
+
const r = Cl(t);
|
|
2573
|
+
return M(wl, r, Vr, e, n);
|
|
2555
2574
|
}
|
|
2556
|
-
const
|
|
2557
|
-
function
|
|
2575
|
+
const Hr = 1, Et = 65568, $r = 646075140, Kr = 2324511977, Yr = 4002097439;
|
|
2576
|
+
function jr(t) {
|
|
2558
2577
|
const e = {};
|
|
2559
|
-
return
|
|
2578
|
+
return zr(e), t && Object.assign(e, t), e;
|
|
2560
2579
|
}
|
|
2561
|
-
function
|
|
2580
|
+
function zr(t) {
|
|
2562
2581
|
return t.Candidate = "", t.SdpMid = "", t.SdpMLineIndex = 0, t;
|
|
2563
2582
|
}
|
|
2564
|
-
function
|
|
2565
|
-
const e = new v(
|
|
2566
|
-
return
|
|
2583
|
+
function Al(t) {
|
|
2584
|
+
const e = new v(Hr);
|
|
2585
|
+
return Rl(t, e), e.finish();
|
|
2567
2586
|
}
|
|
2568
|
-
function
|
|
2569
|
-
e.writeStringField(
|
|
2587
|
+
function Rl(t, e) {
|
|
2588
|
+
e.writeStringField($r, t.Candidate), e.writeStringField(Kr, t.SdpMid), e.writeInt32Field(Yr, t.SdpMLineIndex | 0);
|
|
2570
2589
|
}
|
|
2571
|
-
function
|
|
2590
|
+
function bl(t, e) {
|
|
2572
2591
|
const n = H.create(t);
|
|
2573
|
-
return
|
|
2592
|
+
return Nl(n, e);
|
|
2574
2593
|
}
|
|
2575
|
-
function
|
|
2576
|
-
const n = e ??
|
|
2577
|
-
return
|
|
2594
|
+
function Nl(t, e) {
|
|
2595
|
+
const n = e ?? jr();
|
|
2596
|
+
return zr(n), kl(t, n), n;
|
|
2578
2597
|
}
|
|
2579
|
-
function
|
|
2598
|
+
function kl(t, e) {
|
|
2580
2599
|
let n;
|
|
2581
2600
|
for (; (n = t.next()) !== null; )
|
|
2582
2601
|
switch (n.fieldId) {
|
|
2583
|
-
case
|
|
2602
|
+
case $r: {
|
|
2584
2603
|
if (n.isNull) throw new Error();
|
|
2585
2604
|
e.Candidate = n.asString();
|
|
2586
2605
|
break;
|
|
2587
2606
|
}
|
|
2588
|
-
case
|
|
2607
|
+
case Kr: {
|
|
2589
2608
|
if (n.isNull) throw new Error();
|
|
2590
2609
|
e.SdpMid = n.asString();
|
|
2591
2610
|
break;
|
|
2592
2611
|
}
|
|
2593
|
-
case
|
|
2612
|
+
case Yr: {
|
|
2594
2613
|
if (n.isNull) throw new Error();
|
|
2595
2614
|
e.SdpMLineIndex = n.asInt32();
|
|
2596
2615
|
break;
|
|
2597
2616
|
}
|
|
2598
2617
|
}
|
|
2599
2618
|
}
|
|
2600
|
-
function
|
|
2601
|
-
const r =
|
|
2602
|
-
return
|
|
2619
|
+
function Dl(t, e, n) {
|
|
2620
|
+
const r = Al(t);
|
|
2621
|
+
return M(Et, r, Hr, e, n);
|
|
2603
2622
|
}
|
|
2604
|
-
function
|
|
2623
|
+
function vl(t, e) {
|
|
2605
2624
|
const n = ye(t, Et);
|
|
2606
|
-
return
|
|
2625
|
+
return bl(n, e);
|
|
2607
2626
|
}
|
|
2608
|
-
const
|
|
2609
|
-
function
|
|
2627
|
+
const Xr = 1, Ul = 65566, Ol = 407060584, Ml = 1175184220, Ll = 1241248827, Fl = 1455877031, Pl = 3419353826, Bl = 3686066300;
|
|
2628
|
+
function xl(t) {
|
|
2610
2629
|
const e = {};
|
|
2611
|
-
return
|
|
2630
|
+
return Gl(e), t && Object.assign(e, t), e;
|
|
2612
2631
|
}
|
|
2613
|
-
function
|
|
2632
|
+
function Gl(t) {
|
|
2614
2633
|
return t.Sdp = "", t.OpcodeGroupsFromServer = S.NONE, t.OpcodeGroupsToServer = S.NONE, t.UseAudioTrack = !1, t.UseVideoTrack = !1, t.UseDataChannel = !1, t;
|
|
2615
2634
|
}
|
|
2616
|
-
function
|
|
2617
|
-
const e = new v(
|
|
2618
|
-
return
|
|
2635
|
+
function Wl(t) {
|
|
2636
|
+
const e = new v(Xr);
|
|
2637
|
+
return Vl(t, e), e.finish();
|
|
2619
2638
|
}
|
|
2620
|
-
function
|
|
2621
|
-
e.writeBoolField(
|
|
2639
|
+
function Vl(t, e) {
|
|
2640
|
+
e.writeBoolField(Ol, t.UseVideoTrack), e.writeInt32Field(Ml, t.OpcodeGroupsFromServer), e.writeBoolField(Ll, t.UseAudioTrack), e.writeStringField(Fl, t.Sdp), e.writeBoolField(Pl, t.UseDataChannel), e.writeInt32Field(Bl, t.OpcodeGroupsToServer);
|
|
2622
2641
|
}
|
|
2623
|
-
function
|
|
2624
|
-
const r =
|
|
2625
|
-
return
|
|
2642
|
+
function Hl(t, e, n) {
|
|
2643
|
+
const r = Wl(t);
|
|
2644
|
+
return M(Ul, r, Xr, e, n);
|
|
2626
2645
|
}
|
|
2627
|
-
const
|
|
2628
|
-
function
|
|
2646
|
+
const Jr = 65569, $l = 2838554230, Kl = 3673535008;
|
|
2647
|
+
function Yl(t) {
|
|
2629
2648
|
const e = {};
|
|
2630
|
-
return
|
|
2649
|
+
return Qr(e), e;
|
|
2631
2650
|
}
|
|
2632
|
-
function
|
|
2651
|
+
function Qr(t) {
|
|
2633
2652
|
return t.Success = !0, t.ErrorMessage = "", t;
|
|
2634
2653
|
}
|
|
2635
|
-
function
|
|
2654
|
+
function jl(t, e) {
|
|
2636
2655
|
const n = H.create(t);
|
|
2637
|
-
return
|
|
2656
|
+
return zl(n, e);
|
|
2638
2657
|
}
|
|
2639
|
-
function
|
|
2640
|
-
const n = e ??
|
|
2641
|
-
return
|
|
2658
|
+
function zl(t, e) {
|
|
2659
|
+
const n = e ?? Yl();
|
|
2660
|
+
return Qr(n), Xl(t, n), n;
|
|
2642
2661
|
}
|
|
2643
|
-
function
|
|
2662
|
+
function Xl(t, e) {
|
|
2644
2663
|
let n;
|
|
2645
2664
|
for (; (n = t.next()) !== null; )
|
|
2646
2665
|
switch (n.fieldId) {
|
|
2647
|
-
case
|
|
2666
|
+
case $l: {
|
|
2648
2667
|
if (n.isNull) throw new Error();
|
|
2649
2668
|
e.ErrorMessage = n.asString();
|
|
2650
2669
|
break;
|
|
2651
2670
|
}
|
|
2652
|
-
case
|
|
2671
|
+
case Kl: {
|
|
2653
2672
|
if (n.isNull) throw new Error();
|
|
2654
2673
|
e.Success = n.asBool();
|
|
2655
2674
|
break;
|
|
2656
2675
|
}
|
|
2657
2676
|
}
|
|
2658
2677
|
}
|
|
2659
|
-
function
|
|
2660
|
-
const n = ye(t,
|
|
2661
|
-
return
|
|
2678
|
+
function Jl(t, e) {
|
|
2679
|
+
const n = ye(t, Jr);
|
|
2680
|
+
return jl(n, e);
|
|
2662
2681
|
}
|
|
2663
2682
|
class It extends Error {
|
|
2664
2683
|
constructor(e, n) {
|
|
@@ -2680,32 +2699,32 @@ class _t extends Z {
|
|
|
2680
2699
|
super(`No keepalive received within ${e}ms`), this.name = "KeepaliveTimeoutError";
|
|
2681
2700
|
}
|
|
2682
2701
|
}
|
|
2683
|
-
class
|
|
2702
|
+
class Ql extends It {
|
|
2684
2703
|
constructor(e) {
|
|
2685
2704
|
super(`Maximum reconnection attempts (${e}) exceeded`), this.name = "MaxRetriesExceededError";
|
|
2686
2705
|
}
|
|
2687
2706
|
}
|
|
2688
|
-
class
|
|
2707
|
+
class Zl extends D {
|
|
2689
2708
|
constructor(e) {
|
|
2690
2709
|
super(`Channel provisioning timeout after ${e}ms`), this.name = "ProvisioningTimeoutError";
|
|
2691
2710
|
}
|
|
2692
2711
|
}
|
|
2693
|
-
class
|
|
2712
|
+
class vh extends D {
|
|
2694
2713
|
constructor(e) {
|
|
2695
2714
|
super(`Channel not found: ${e}`), this.name = "ChannelNotFoundError";
|
|
2696
2715
|
}
|
|
2697
2716
|
}
|
|
2698
|
-
class
|
|
2717
|
+
class Uh extends D {
|
|
2699
2718
|
constructor(e) {
|
|
2700
2719
|
super(`Space not found for domain: ${e}`), this.name = "SpaceNotFoundError";
|
|
2701
2720
|
}
|
|
2702
2721
|
}
|
|
2703
|
-
class
|
|
2722
|
+
class Oh extends D {
|
|
2704
2723
|
constructor() {
|
|
2705
2724
|
super("No channels available in this space"), this.name = "NoChannelsError";
|
|
2706
2725
|
}
|
|
2707
2726
|
}
|
|
2708
|
-
function
|
|
2727
|
+
function Zr(t, e) {
|
|
2709
2728
|
return new Promise((n, r) => {
|
|
2710
2729
|
const s = () => {
|
|
2711
2730
|
clearTimeout(i), r(new Error("Aborted"));
|
|
@@ -2719,22 +2738,22 @@ function Qr(t, e) {
|
|
|
2719
2738
|
e?.addEventListener("abort", s, { once: !0 });
|
|
2720
2739
|
});
|
|
2721
2740
|
}
|
|
2722
|
-
var
|
|
2741
|
+
var We = /* @__PURE__ */ ((t) => (t[t.DEBUG = 0] = "DEBUG", t[t.INFO = 1] = "INFO", t[t.WARN = 2] = "WARN", t[t.ERROR = 3] = "ERROR", t[t.NONE = 4] = "NONE", t))(We || {});
|
|
2723
2742
|
let Tt = 1, Pe = null;
|
|
2724
2743
|
const Qe = /* @__PURE__ */ new Map();
|
|
2725
|
-
function
|
|
2744
|
+
function qr(t) {
|
|
2726
2745
|
Tt = t;
|
|
2727
2746
|
}
|
|
2728
|
-
function
|
|
2747
|
+
function Mh() {
|
|
2729
2748
|
return Tt;
|
|
2730
2749
|
}
|
|
2731
|
-
function
|
|
2750
|
+
function ql(t) {
|
|
2732
2751
|
Pe = t;
|
|
2733
2752
|
}
|
|
2734
|
-
function
|
|
2753
|
+
function Lh() {
|
|
2735
2754
|
return Pe;
|
|
2736
2755
|
}
|
|
2737
|
-
function
|
|
2756
|
+
function Fh(t, e) {
|
|
2738
2757
|
return Qe.set(t, e ?? {
|
|
2739
2758
|
minLevel: 2
|
|
2740
2759
|
/* WARN */
|
|
@@ -2742,18 +2761,18 @@ function Nh(t, e) {
|
|
|
2742
2761
|
Qe.delete(t);
|
|
2743
2762
|
};
|
|
2744
2763
|
}
|
|
2745
|
-
const
|
|
2764
|
+
const eu = {
|
|
2746
2765
|
0: "DEBUG",
|
|
2747
2766
|
1: "INFO",
|
|
2748
2767
|
2: "WARN",
|
|
2749
2768
|
3: "ERROR",
|
|
2750
2769
|
4: "NONE"
|
|
2751
2770
|
};
|
|
2752
|
-
function
|
|
2771
|
+
function tu(t, e) {
|
|
2753
2772
|
return `[${t}] ${e}`;
|
|
2754
2773
|
}
|
|
2755
2774
|
function be(t, e, n, r) {
|
|
2756
|
-
const s = (/* @__PURE__ */ new Date()).toISOString(), i =
|
|
2775
|
+
const s = (/* @__PURE__ */ new Date()).toISOString(), i = eu[t], o = {
|
|
2757
2776
|
timestamp: s,
|
|
2758
2777
|
level: t,
|
|
2759
2778
|
levelName: i,
|
|
@@ -2771,7 +2790,7 @@ function be(t, e, n, r) {
|
|
|
2771
2790
|
}
|
|
2772
2791
|
}
|
|
2773
2792
|
if (Tt <= t) {
|
|
2774
|
-
const a =
|
|
2793
|
+
const a = tu(e, n);
|
|
2775
2794
|
switch (t) {
|
|
2776
2795
|
case 0:
|
|
2777
2796
|
console.debug(a, ...r);
|
|
@@ -2788,7 +2807,7 @@ function be(t, e, n, r) {
|
|
|
2788
2807
|
}
|
|
2789
2808
|
}
|
|
2790
2809
|
}
|
|
2791
|
-
function
|
|
2810
|
+
function L(t) {
|
|
2792
2811
|
return {
|
|
2793
2812
|
debug(e, ...n) {
|
|
2794
2813
|
be(0, t, e, n);
|
|
@@ -2804,8 +2823,8 @@ function M(t) {
|
|
|
2804
2823
|
}
|
|
2805
2824
|
};
|
|
2806
2825
|
}
|
|
2807
|
-
const Ne =
|
|
2808
|
-
class
|
|
2826
|
+
const Ne = L("WebSocketTransport"), nu = 1e4;
|
|
2827
|
+
class ru {
|
|
2809
2828
|
ws = null;
|
|
2810
2829
|
keepaliveTimeout = null;
|
|
2811
2830
|
// Pre-allocated keepalive response message to avoid allocation per keepalive
|
|
@@ -2832,7 +2851,7 @@ class Xl {
|
|
|
2832
2851
|
clearTimeout(c), this.ws && (this.ws.onopen = null, this.ws.onerror = null, this.ws.onclose = null, this.ws.onmessage = null);
|
|
2833
2852
|
}, c = setTimeout(() => {
|
|
2834
2853
|
o || (o = !0, a(), this.ws?.close(), s(new Z("WebSocket connection timeout")));
|
|
2835
|
-
},
|
|
2854
|
+
}, nu);
|
|
2836
2855
|
this.ws.onopen = () => {
|
|
2837
2856
|
i = !0, clearTimeout(c), this.ws.send(n), this.resetKeepaliveTimeout(), o || (o = !0, r());
|
|
2838
2857
|
}, this.ws.onerror = () => {
|
|
@@ -2859,7 +2878,7 @@ class Xl {
|
|
|
2859
2878
|
* Get or create a cached keepalive response message.
|
|
2860
2879
|
*/
|
|
2861
2880
|
getKeepaliveResponse() {
|
|
2862
|
-
return this.keepaliveResponseMessage || (this.keepaliveResponseMessage = Fr(
|
|
2881
|
+
return this.keepaliveResponseMessage || (this.keepaliveResponseMessage = Pr(Fr(), this.sessionId)), this.keepaliveResponseMessage;
|
|
2863
2882
|
}
|
|
2864
2883
|
handleProtocolMessage(e) {
|
|
2865
2884
|
try {
|
|
@@ -2881,11 +2900,11 @@ class Xl {
|
|
|
2881
2900
|
this.keepaliveTimeout && (clearTimeout(this.keepaliveTimeout), this.keepaliveTimeout = null);
|
|
2882
2901
|
}
|
|
2883
2902
|
}
|
|
2884
|
-
const Y =
|
|
2885
|
-
function
|
|
2903
|
+
const Y = L("WebTransportTransport"), Ut = 4, su = 65536;
|
|
2904
|
+
function es() {
|
|
2886
2905
|
return typeof WebTransport < "u";
|
|
2887
2906
|
}
|
|
2888
|
-
class
|
|
2907
|
+
class iu {
|
|
2889
2908
|
transport = null;
|
|
2890
2909
|
stream = null;
|
|
2891
2910
|
reader = null;
|
|
@@ -2893,7 +2912,7 @@ class Ql {
|
|
|
2893
2912
|
keepaliveTimeout = null;
|
|
2894
2913
|
readLoopActive = !1;
|
|
2895
2914
|
// Grow-only receive buffer with offset/length tracking to minimize allocations
|
|
2896
|
-
receiveBuffer = new Uint8Array(
|
|
2915
|
+
receiveBuffer = new Uint8Array(su);
|
|
2897
2916
|
receiveBufferOffset = 0;
|
|
2898
2917
|
receiveBufferLength = 0;
|
|
2899
2918
|
// Cached DataView to avoid allocation per message
|
|
@@ -2911,7 +2930,7 @@ class Ql {
|
|
|
2911
2930
|
return this.transport !== null && this.writer !== null;
|
|
2912
2931
|
}
|
|
2913
2932
|
async connect(e, n) {
|
|
2914
|
-
if (!
|
|
2933
|
+
if (!es())
|
|
2915
2934
|
throw new Z("WebTransport is not supported in this browser");
|
|
2916
2935
|
try {
|
|
2917
2936
|
this.transport = new WebTransport(e), await this.transport.ready, Y.debug(`Connected to WebTransport entrypoint: ${e}`), this.transport.closed.then(() => {
|
|
@@ -2978,7 +2997,7 @@ class Ql {
|
|
|
2978
2997
|
* Get or create a cached keepalive response message.
|
|
2979
2998
|
*/
|
|
2980
2999
|
getKeepaliveResponse() {
|
|
2981
|
-
return this.keepaliveResponseMessage || (this.keepaliveResponseMessage = Fr(
|
|
3000
|
+
return this.keepaliveResponseMessage || (this.keepaliveResponseMessage = Pr(Fr(), this.sessionId)), this.keepaliveResponseMessage;
|
|
2982
3001
|
}
|
|
2983
3002
|
/**
|
|
2984
3003
|
* Process complete messages from the receive buffer.
|
|
@@ -3047,8 +3066,8 @@ class Ql {
|
|
|
3047
3066
|
}
|
|
3048
3067
|
}
|
|
3049
3068
|
}
|
|
3050
|
-
const fe =
|
|
3051
|
-
class
|
|
3069
|
+
const fe = L("Channel");
|
|
3070
|
+
class ou {
|
|
3052
3071
|
state = "disconnected";
|
|
3053
3072
|
transport = null;
|
|
3054
3073
|
config;
|
|
@@ -3123,18 +3142,18 @@ class Zl {
|
|
|
3123
3142
|
}
|
|
3124
3143
|
};
|
|
3125
3144
|
switch (e.Type) {
|
|
3126
|
-
case
|
|
3127
|
-
case
|
|
3128
|
-
this.transport = new
|
|
3145
|
+
case P.WebSocket:
|
|
3146
|
+
case P.WebSocketProxy:
|
|
3147
|
+
this.transport = new ru(n);
|
|
3129
3148
|
break;
|
|
3130
|
-
case
|
|
3131
|
-
case
|
|
3132
|
-
if (!
|
|
3149
|
+
case P.WebTransport:
|
|
3150
|
+
case P.WebTransportProxy:
|
|
3151
|
+
if (!es())
|
|
3133
3152
|
throw new Error("WebTransport is not supported in this browser");
|
|
3134
|
-
this.transport = new
|
|
3153
|
+
this.transport = new iu(n);
|
|
3135
3154
|
break;
|
|
3136
3155
|
default:
|
|
3137
|
-
throw new Error(`Unsupported entrypoint type: ${
|
|
3156
|
+
throw new Error(`Unsupported entrypoint type: ${P[e.Type]}`);
|
|
3138
3157
|
}
|
|
3139
3158
|
await this.transport.connect(e.Uri, e.AuthTicket);
|
|
3140
3159
|
}
|
|
@@ -3172,8 +3191,8 @@ class Zl {
|
|
|
3172
3191
|
this.state !== e && (this.state = e, this.config.onStateChange?.(e));
|
|
3173
3192
|
}
|
|
3174
3193
|
}
|
|
3175
|
-
const x =
|
|
3176
|
-
class
|
|
3194
|
+
const x = L("ChannelManager");
|
|
3195
|
+
class au {
|
|
3177
3196
|
channels = /* @__PURE__ */ new Map();
|
|
3178
3197
|
// keyed by opcode group
|
|
3179
3198
|
activeType = null;
|
|
@@ -3245,7 +3264,7 @@ class ql {
|
|
|
3245
3264
|
x.debug(` Entrypoint: type=${o.Type} fromServer=0x${o.OpcodeGroupsFromServer.toString(16)} toServer=0x${o.OpcodeGroupsToServer.toString(16)} uri=${o.Uri}`);
|
|
3246
3265
|
const i = S.GROUP_AUDIO | S.GROUP_VIDEO;
|
|
3247
3266
|
n = this.entrypoints.filter((o) => {
|
|
3248
|
-
if (o.Type ===
|
|
3267
|
+
if (o.Type === P.WebRTC)
|
|
3249
3268
|
return x.debug(` Filtered out WebRTC entrypoint (type=${o.Type})`), !1;
|
|
3250
3269
|
const a = o.OpcodeGroupsFromServer | o.OpcodeGroupsToServer;
|
|
3251
3270
|
return (a & ~i) === 0 ? (x.debug(` Filtered out audio/video-only entrypoint (type=${o.Type}, groups=0x${a.toString(16)})`), !1) : !0;
|
|
@@ -3267,7 +3286,7 @@ class ql {
|
|
|
3267
3286
|
await this.connectAllChannels(o), this.config.endpointSelector?.rememberWorkingType(i), this.config.onRememberWorkingType?.(i), this.activeType = i, this.reconnectAttempts = 0, this.setState("connected");
|
|
3268
3287
|
return;
|
|
3269
3288
|
} catch (a) {
|
|
3270
|
-
x.warn(`Failed to connect using ${
|
|
3289
|
+
x.warn(`Failed to connect using ${P[i]}: ${a}`), this.disconnectAll();
|
|
3271
3290
|
}
|
|
3272
3291
|
}
|
|
3273
3292
|
throw x.error("All endpoint types failed"), e || this.setState("offline"), new Error("Failed to connect using any endpoint type");
|
|
@@ -3288,7 +3307,7 @@ class ql {
|
|
|
3288
3307
|
* Connect a single channel.
|
|
3289
3308
|
*/
|
|
3290
3309
|
async connectChannel(e) {
|
|
3291
|
-
const n = new
|
|
3310
|
+
const n = new ou({
|
|
3292
3311
|
entrypoint: e,
|
|
3293
3312
|
sessionId: this.config.sessionId,
|
|
3294
3313
|
keepaliveTimeoutMs: this.config.keepaliveTimeoutMs,
|
|
@@ -3343,12 +3362,12 @@ class ql {
|
|
|
3343
3362
|
if (!this.shouldReconnect)
|
|
3344
3363
|
return;
|
|
3345
3364
|
if (this.reconnectAttempts >= this.config.maxReconnectAttempts) {
|
|
3346
|
-
x.error(`Max reconnect attempts (${this.config.maxReconnectAttempts}) reached`), this.setState("offline"), this.config.onError?.(new
|
|
3365
|
+
x.error(`Max reconnect attempts (${this.config.maxReconnectAttempts}) reached`), this.setState("offline"), this.config.onError?.(new Ql(this.config.maxReconnectAttempts));
|
|
3347
3366
|
return;
|
|
3348
3367
|
}
|
|
3349
3368
|
this.setState("reconnecting"), this.reconnectAttempts++;
|
|
3350
3369
|
const e = this.config.reconnectBackoffMs * Math.pow(2, this.reconnectAttempts - 1);
|
|
3351
|
-
if (x.info(`Reconnecting in ${e}ms (attempt ${this.reconnectAttempts}/${this.config.maxReconnectAttempts})`), await
|
|
3370
|
+
if (x.info(`Reconnecting in ${e}ms (attempt ${this.reconnectAttempts}/${this.config.maxReconnectAttempts})`), await Zr(e, this.abortController?.signal), !!this.shouldReconnect)
|
|
3352
3371
|
try {
|
|
3353
3372
|
await this.connectInternal(!0);
|
|
3354
3373
|
} catch (n) {
|
|
@@ -3370,8 +3389,8 @@ class ql {
|
|
|
3370
3389
|
this.state !== e && (this.state = e, this.config.onStateChange?.(e));
|
|
3371
3390
|
}
|
|
3372
3391
|
}
|
|
3373
|
-
const
|
|
3374
|
-
class
|
|
3392
|
+
const Ph = "opus", Bh = 48e3, xh = 2, Gh = 64e3, cu = 150, Wh = "H264", lu = 5e6, Vh = 30, uu = "max-bundle", du = "require", hu = [], fu = "ikon-data", pu = !1, mu = 0, O = L("WebRTCConnection");
|
|
3393
|
+
class Eu {
|
|
3375
3394
|
pc = null;
|
|
3376
3395
|
dataChannel = null;
|
|
3377
3396
|
_state = "new";
|
|
@@ -3393,18 +3412,18 @@ class cu {
|
|
|
3393
3412
|
return this.dataChannel?.readyState === "open";
|
|
3394
3413
|
}
|
|
3395
3414
|
async initialize() {
|
|
3396
|
-
const e =
|
|
3415
|
+
const e = hu;
|
|
3397
3416
|
if (this.pc = new RTCPeerConnection({
|
|
3398
3417
|
iceServers: e,
|
|
3399
|
-
bundlePolicy:
|
|
3400
|
-
rtcpMuxPolicy:
|
|
3418
|
+
bundlePolicy: uu,
|
|
3419
|
+
rtcpMuxPolicy: du
|
|
3401
3420
|
}), this.setupEventHandlers(), this.config.useAudioTrack && this.pc.addTransceiver("audio", { direction: "sendrecv" }), this.config.useVideoTrack) {
|
|
3402
3421
|
const n = this.pc.addTransceiver("video", { direction: "sendrecv" }), r = this.pc.addTransceiver("video", { direction: "sendrecv" });
|
|
3403
3422
|
this.videoTransceivers = [n, r];
|
|
3404
3423
|
}
|
|
3405
|
-
this.config.useDataChannel && (this.dataChannel = this.pc.createDataChannel(
|
|
3406
|
-
ordered:
|
|
3407
|
-
maxRetransmits:
|
|
3424
|
+
this.config.useDataChannel && (this.dataChannel = this.pc.createDataChannel(fu, {
|
|
3425
|
+
ordered: pu,
|
|
3426
|
+
maxRetransmits: mu
|
|
3408
3427
|
}), this.setupDataChannelHandlers(this.dataChannel)), O.debug("WebRTC connection initialized");
|
|
3409
3428
|
}
|
|
3410
3429
|
async createOffer() {
|
|
@@ -3490,7 +3509,7 @@ class cu {
|
|
|
3490
3509
|
}, this.pc.ontrack = (e) => {
|
|
3491
3510
|
const n = e.track;
|
|
3492
3511
|
if (O.debug(`Received ${n.kind} track`), n.kind === "audio") {
|
|
3493
|
-
const r =
|
|
3512
|
+
const r = cu;
|
|
3494
3513
|
try {
|
|
3495
3514
|
e.receiver.jitterBufferTarget = r;
|
|
3496
3515
|
} catch (i) {
|
|
@@ -3521,8 +3540,8 @@ class cu {
|
|
|
3521
3540
|
this._state !== e && (this._state = e, this.config.onStateChange?.(e));
|
|
3522
3541
|
}
|
|
3523
3542
|
}
|
|
3524
|
-
const y =
|
|
3525
|
-
class
|
|
3543
|
+
const y = L("WebRTCSignaling");
|
|
3544
|
+
class Iu {
|
|
3526
3545
|
config;
|
|
3527
3546
|
connection = null;
|
|
3528
3547
|
sendMessage = null;
|
|
@@ -3565,7 +3584,7 @@ class lu {
|
|
|
3565
3584
|
y.debug(`WebRTC video track received (index=${s})`), this.config.onVideoTrack?.(s, i, o);
|
|
3566
3585
|
}
|
|
3567
3586
|
};
|
|
3568
|
-
this.connection = new
|
|
3587
|
+
this.connection = new Eu(n), await this.connection.initialize();
|
|
3569
3588
|
const r = await this.connection.createOffer();
|
|
3570
3589
|
this.sendOffer(r);
|
|
3571
3590
|
} catch (n) {
|
|
@@ -3575,11 +3594,11 @@ class lu {
|
|
|
3575
3594
|
handleProtocolMessage(e) {
|
|
3576
3595
|
const n = (e instanceof Uint8Array, e), r = n;
|
|
3577
3596
|
switch (Te(r)) {
|
|
3578
|
-
case
|
|
3597
|
+
case Gr:
|
|
3579
3598
|
return this.handleAnswer(r), !0;
|
|
3580
3599
|
case Et:
|
|
3581
3600
|
return this.handleRemoteIceCandidate(r), !0;
|
|
3582
|
-
case
|
|
3601
|
+
case Jr:
|
|
3583
3602
|
return this.handleReady(r), !0;
|
|
3584
3603
|
default:
|
|
3585
3604
|
return !1;
|
|
@@ -3678,7 +3697,7 @@ class lu {
|
|
|
3678
3697
|
}
|
|
3679
3698
|
async applyEncodingParams(e, n) {
|
|
3680
3699
|
try {
|
|
3681
|
-
const r = n ??
|
|
3700
|
+
const r = n ?? lu, s = e.getParameters();
|
|
3682
3701
|
s.encodings?.length || (s.encodings = [{}]), s.encodings[0].maxBitrate = r, s.encodings[0].scaleResolutionDownBy = 1, s.degradationPreference = "maintain-resolution", await e.setParameters(s);
|
|
3683
3702
|
const i = e.getParameters(), o = i.encodings?.[0];
|
|
3684
3703
|
y.debug(
|
|
@@ -3734,19 +3753,19 @@ class lu {
|
|
|
3734
3753
|
y.error("Cannot send offer: no send function");
|
|
3735
3754
|
return;
|
|
3736
3755
|
}
|
|
3737
|
-
const n =
|
|
3756
|
+
const n = xl({
|
|
3738
3757
|
Sdp: e,
|
|
3739
3758
|
OpcodeGroupsFromServer: this.config.opcodeGroupsFromServer,
|
|
3740
3759
|
OpcodeGroupsToServer: this.config.opcodeGroupsToServer,
|
|
3741
3760
|
UseAudioTrack: this.config.useAudioTrack,
|
|
3742
3761
|
UseVideoTrack: this.config.useVideoTrack,
|
|
3743
3762
|
UseDataChannel: this.config.useDataChannel
|
|
3744
|
-
}), r =
|
|
3763
|
+
}), r = Hl(n, this.config.sessionId);
|
|
3745
3764
|
this.sendMessage(r), y.debug("Sent WebRTC offer");
|
|
3746
3765
|
}
|
|
3747
3766
|
async handleAnswer(e) {
|
|
3748
3767
|
try {
|
|
3749
|
-
const n =
|
|
3768
|
+
const n = Tl(e);
|
|
3750
3769
|
await this.connection?.setRemoteDescription(n.Sdp, "answer"), y.debug("WebRTC answer received and applied");
|
|
3751
3770
|
} catch (n) {
|
|
3752
3771
|
y.error("Failed to handle WebRTC answer:", n);
|
|
@@ -3755,16 +3774,16 @@ class lu {
|
|
|
3755
3774
|
handleLocalIceCandidate(e) {
|
|
3756
3775
|
if (!e || !this.sendMessage)
|
|
3757
3776
|
return;
|
|
3758
|
-
const n =
|
|
3777
|
+
const n = jr({
|
|
3759
3778
|
Candidate: e.candidate,
|
|
3760
3779
|
SdpMid: e.sdpMid ?? "",
|
|
3761
3780
|
SdpMLineIndex: e.sdpMLineIndex ?? 0
|
|
3762
|
-
}), r =
|
|
3781
|
+
}), r = Dl(n, this.config.sessionId);
|
|
3763
3782
|
this.sendMessage(r);
|
|
3764
3783
|
}
|
|
3765
3784
|
async handleRemoteIceCandidate(e) {
|
|
3766
3785
|
try {
|
|
3767
|
-
const n =
|
|
3786
|
+
const n = vl(e);
|
|
3768
3787
|
if (n.Candidate) {
|
|
3769
3788
|
const r = n.Candidate.startsWith("candidate:") ? n.Candidate : `candidate:${n.Candidate}`, s = n.SdpMid || String(n.SdpMLineIndex);
|
|
3770
3789
|
await this.connection?.addIceCandidate({
|
|
@@ -3779,18 +3798,18 @@ class lu {
|
|
|
3779
3798
|
}
|
|
3780
3799
|
handleReady(e) {
|
|
3781
3800
|
try {
|
|
3782
|
-
const n =
|
|
3801
|
+
const n = Jl(e);
|
|
3783
3802
|
n.Success ? (y.debug("WebRTC connection ready"), this.isConnecting = !1) : (y.error(`WebRTC connection failed (server): ${n.ErrorMessage}`), this.disconnect());
|
|
3784
3803
|
} catch (n) {
|
|
3785
3804
|
y.error("Failed to handle WebRTC ready:", n);
|
|
3786
3805
|
}
|
|
3787
3806
|
}
|
|
3788
3807
|
}
|
|
3789
|
-
const
|
|
3808
|
+
const _u = 5e3, Tu = 3e4, Ot = 35e3, Mt = 500, Lt = 6, ts = 6e4, we = "ikon.theme", Se = "ikon.theme-user", wu = "ikon.theme-change";
|
|
3790
3809
|
function Ze(t) {
|
|
3791
3810
|
typeof document < "u" && document.documentElement && document.documentElement.setAttribute("data-theme", t);
|
|
3792
3811
|
}
|
|
3793
|
-
function
|
|
3812
|
+
function ns() {
|
|
3794
3813
|
return typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
3795
3814
|
}
|
|
3796
3815
|
function Ve() {
|
|
@@ -3799,12 +3818,12 @@ function Ve() {
|
|
|
3799
3818
|
const t = window.localStorage.getItem(Se);
|
|
3800
3819
|
if (t) return t;
|
|
3801
3820
|
const e = window.localStorage.getItem(we);
|
|
3802
|
-
return e ||
|
|
3821
|
+
return e || ns();
|
|
3803
3822
|
}
|
|
3804
3823
|
function wt() {
|
|
3805
3824
|
return typeof window > "u" ? { width: 0, height: 0 } : { width: window.innerWidth, height: window.innerHeight };
|
|
3806
3825
|
}
|
|
3807
|
-
function
|
|
3826
|
+
function Su() {
|
|
3808
3827
|
if (typeof window > "u" || !window.localStorage)
|
|
3809
3828
|
return "light";
|
|
3810
3829
|
const t = window.localStorage.getItem(Se), e = window.localStorage.getItem(we);
|
|
@@ -3812,21 +3831,21 @@ function fu() {
|
|
|
3812
3831
|
const r = t ?? e;
|
|
3813
3832
|
return Ze(r), r;
|
|
3814
3833
|
}
|
|
3815
|
-
const n =
|
|
3834
|
+
const n = ns();
|
|
3816
3835
|
return window.localStorage.setItem(we, n), Ze(n), n;
|
|
3817
3836
|
}
|
|
3818
|
-
const
|
|
3837
|
+
const gu = {
|
|
3819
3838
|
name: "ikon.client.getTheme",
|
|
3820
3839
|
description: "Get the currently selected client theme",
|
|
3821
3840
|
returnType: { kind: "string", nullable: !0 }
|
|
3822
3841
|
};
|
|
3823
|
-
function
|
|
3842
|
+
function Cu() {
|
|
3824
3843
|
if (typeof window > "u" || !window.localStorage)
|
|
3825
3844
|
return null;
|
|
3826
3845
|
const t = window.localStorage.getItem(Se), e = window.localStorage.getItem(we);
|
|
3827
3846
|
return t ?? e ?? null;
|
|
3828
3847
|
}
|
|
3829
|
-
const
|
|
3848
|
+
const yu = {
|
|
3830
3849
|
name: "ikon.client.setTheme",
|
|
3831
3850
|
description: "Update the client UI theme",
|
|
3832
3851
|
returnType: { kind: "boolean" },
|
|
@@ -3835,7 +3854,7 @@ const Eu = {
|
|
|
3835
3854
|
{ name: "persist", type: { kind: "boolean", nullable: !0 }, description: "Whether to persist as user preference" }
|
|
3836
3855
|
]
|
|
3837
3856
|
};
|
|
3838
|
-
function
|
|
3857
|
+
function Au(t, e) {
|
|
3839
3858
|
if (typeof window > "u" || !window.localStorage || typeof t != "string")
|
|
3840
3859
|
return !1;
|
|
3841
3860
|
const n = t.trim().toLowerCase();
|
|
@@ -3844,25 +3863,25 @@ function Iu(t, e) {
|
|
|
3844
3863
|
const r = e === void 0 ? !0 : !!e, s = window.localStorage;
|
|
3845
3864
|
r ? s.setItem(Se, n) : s.removeItem(Se), s.setItem(we, n);
|
|
3846
3865
|
try {
|
|
3847
|
-
window.dispatchEvent(new CustomEvent(
|
|
3866
|
+
window.dispatchEvent(new CustomEvent(wu, { detail: { mode: n } }));
|
|
3848
3867
|
} catch {
|
|
3849
3868
|
}
|
|
3850
3869
|
return Ze(n), !0;
|
|
3851
3870
|
}
|
|
3852
|
-
const
|
|
3871
|
+
const Ru = {
|
|
3853
3872
|
name: "ikon.client.getLanguage",
|
|
3854
3873
|
description: "Get the browser language preference",
|
|
3855
3874
|
returnType: { kind: "string" }
|
|
3856
3875
|
};
|
|
3857
|
-
function
|
|
3876
|
+
function bu() {
|
|
3858
3877
|
return typeof navigator > "u" ? "en-US" : navigator.language || "en-US";
|
|
3859
3878
|
}
|
|
3860
|
-
const
|
|
3879
|
+
const Nu = {
|
|
3861
3880
|
name: "ikon.client.getTimezone",
|
|
3862
3881
|
description: "Get the browser timezone (IANA format)",
|
|
3863
3882
|
returnType: { kind: "string" }
|
|
3864
3883
|
};
|
|
3865
|
-
function
|
|
3884
|
+
function ku() {
|
|
3866
3885
|
try {
|
|
3867
3886
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3868
3887
|
} catch {
|
|
@@ -3887,15 +3906,15 @@ function Ct() {
|
|
|
3887
3906
|
const t = navigator.maxTouchPoints > 0, e = window.innerWidth <= 1024;
|
|
3888
3907
|
return t && e ? ee.MobileWeb : ee.DesktopWeb;
|
|
3889
3908
|
}
|
|
3890
|
-
const
|
|
3909
|
+
const Du = {
|
|
3891
3910
|
name: "ikon.client.getUrl",
|
|
3892
3911
|
description: "Get the current browser URL path and query string",
|
|
3893
3912
|
returnType: { kind: "string", nullable: !0 }
|
|
3894
3913
|
};
|
|
3895
|
-
function
|
|
3914
|
+
function vu() {
|
|
3896
3915
|
return typeof window > "u" ? null : window.location.pathname + window.location.search;
|
|
3897
3916
|
}
|
|
3898
|
-
const
|
|
3917
|
+
const Uu = {
|
|
3899
3918
|
name: "ikon.client.setUrl",
|
|
3900
3919
|
description: "Update the browser URL without triggering a page reload",
|
|
3901
3920
|
returnType: { kind: "boolean" },
|
|
@@ -3904,7 +3923,7 @@ const yu = {
|
|
|
3904
3923
|
{ name: "replace", type: { kind: "boolean", nullable: !0 }, description: "If true, replaces current history entry instead of adding new one" }
|
|
3905
3924
|
]
|
|
3906
3925
|
};
|
|
3907
|
-
function
|
|
3926
|
+
function Ou(t, e) {
|
|
3908
3927
|
if (typeof window > "u" || !window.history || typeof t != "string")
|
|
3909
3928
|
return !1;
|
|
3910
3929
|
const n = t.trim();
|
|
@@ -3916,13 +3935,13 @@ function Au(t, e) {
|
|
|
3916
3935
|
return !1;
|
|
3917
3936
|
}
|
|
3918
3937
|
}
|
|
3919
|
-
const
|
|
3938
|
+
const Mu = {
|
|
3920
3939
|
name: "ikon.client.vibrate",
|
|
3921
3940
|
description: "Trigger haptic feedback on supported devices",
|
|
3922
3941
|
returnType: { kind: "boolean" },
|
|
3923
3942
|
parameters: [{ name: "pattern", type: { kind: "string" }, description: 'Duration in ms, or comma-separated pattern (e.g., "200" or "100,50,100")' }]
|
|
3924
3943
|
};
|
|
3925
|
-
function
|
|
3944
|
+
function Lu(t) {
|
|
3926
3945
|
if (typeof navigator > "u" || !navigator.vibrate || typeof t != "string")
|
|
3927
3946
|
return !1;
|
|
3928
3947
|
try {
|
|
@@ -3933,7 +3952,7 @@ function bu(t) {
|
|
|
3933
3952
|
}
|
|
3934
3953
|
}
|
|
3935
3954
|
let Q = null, qe = !1, ke = !1;
|
|
3936
|
-
async function
|
|
3955
|
+
async function Fu() {
|
|
3937
3956
|
if (!(typeof navigator > "u" || !("wakeLock" in navigator)))
|
|
3938
3957
|
try {
|
|
3939
3958
|
Q = await navigator.wakeLock.request("screen");
|
|
@@ -3941,15 +3960,15 @@ async function Nu() {
|
|
|
3941
3960
|
}
|
|
3942
3961
|
}
|
|
3943
3962
|
function Ft() {
|
|
3944
|
-
document.visibilityState === "visible" && qe && !Q &&
|
|
3963
|
+
document.visibilityState === "visible" && qe && !Q && Fu();
|
|
3945
3964
|
}
|
|
3946
|
-
const
|
|
3965
|
+
const Pu = {
|
|
3947
3966
|
name: "ikon.client.keepScreenAwake",
|
|
3948
3967
|
description: "Prevent or allow the screen to sleep",
|
|
3949
3968
|
returnType: { kind: "boolean" },
|
|
3950
3969
|
parameters: [{ name: "enabled", type: { kind: "boolean" }, description: "Whether to keep the screen awake" }]
|
|
3951
3970
|
};
|
|
3952
|
-
async function
|
|
3971
|
+
async function Bu(t) {
|
|
3953
3972
|
if (typeof navigator > "u" || !("wakeLock" in navigator))
|
|
3954
3973
|
return !1;
|
|
3955
3974
|
try {
|
|
@@ -3958,15 +3977,15 @@ async function Du(t) {
|
|
|
3958
3977
|
return !1;
|
|
3959
3978
|
}
|
|
3960
3979
|
}
|
|
3961
|
-
const
|
|
3980
|
+
const xu = {
|
|
3962
3981
|
name: "ikon.client.getVisibility",
|
|
3963
3982
|
description: "Get the current page visibility state",
|
|
3964
3983
|
returnType: { kind: "string", nullable: !0 }
|
|
3965
3984
|
};
|
|
3966
|
-
function
|
|
3985
|
+
function Gu() {
|
|
3967
3986
|
return typeof document > "u" ? null : document.visibilityState || null;
|
|
3968
3987
|
}
|
|
3969
|
-
const
|
|
3988
|
+
const Wu = {
|
|
3970
3989
|
name: "ikon.client.scrollTo",
|
|
3971
3990
|
description: "Scroll the page to a specific position",
|
|
3972
3991
|
returnType: { kind: "boolean" },
|
|
@@ -3976,7 +3995,7 @@ const Ou = {
|
|
|
3976
3995
|
{ name: "smooth", type: { kind: "boolean", nullable: !0 }, description: "Whether to animate the scroll" }
|
|
3977
3996
|
]
|
|
3978
3997
|
};
|
|
3979
|
-
function
|
|
3998
|
+
function Vu(t, e, n) {
|
|
3980
3999
|
if (typeof window > "u" || typeof t != "number" || typeof e != "number")
|
|
3981
4000
|
return !1;
|
|
3982
4001
|
try {
|
|
@@ -3989,12 +4008,12 @@ function Mu(t, e, n) {
|
|
|
3989
4008
|
return !1;
|
|
3990
4009
|
}
|
|
3991
4010
|
}
|
|
3992
|
-
const
|
|
4011
|
+
const Hu = {
|
|
3993
4012
|
name: "ikon.client.getBatteryLevel",
|
|
3994
4013
|
description: "Get the current battery level (0-100)",
|
|
3995
4014
|
returnType: { kind: "number", nullable: !0 }
|
|
3996
4015
|
};
|
|
3997
|
-
async function
|
|
4016
|
+
async function $u() {
|
|
3998
4017
|
if (typeof navigator > "u" || !("getBattery" in navigator))
|
|
3999
4018
|
return null;
|
|
4000
4019
|
try {
|
|
@@ -4004,23 +4023,23 @@ async function Fu() {
|
|
|
4004
4023
|
return null;
|
|
4005
4024
|
}
|
|
4006
4025
|
}
|
|
4007
|
-
const
|
|
4026
|
+
const Ku = {
|
|
4008
4027
|
name: "ikon.client.getNetworkType",
|
|
4009
4028
|
description: "Get the current network connection type",
|
|
4010
4029
|
returnType: { kind: "string", nullable: !0 }
|
|
4011
4030
|
};
|
|
4012
|
-
function
|
|
4031
|
+
function Yu() {
|
|
4013
4032
|
if (typeof navigator > "u")
|
|
4014
4033
|
return null;
|
|
4015
4034
|
const t = navigator.connection;
|
|
4016
4035
|
return t && (t.effectiveType || t.type) || null;
|
|
4017
4036
|
}
|
|
4018
|
-
const
|
|
4037
|
+
const ju = {
|
|
4019
4038
|
name: "ikon.client.requestFullscreen",
|
|
4020
4039
|
description: "Request the browser to enter fullscreen mode",
|
|
4021
4040
|
returnType: { kind: "boolean" }
|
|
4022
4041
|
};
|
|
4023
|
-
async function
|
|
4042
|
+
async function zu() {
|
|
4024
4043
|
if (typeof document > "u" || !document.documentElement)
|
|
4025
4044
|
return !1;
|
|
4026
4045
|
try {
|
|
@@ -4030,12 +4049,12 @@ async function Wu() {
|
|
|
4030
4049
|
return !1;
|
|
4031
4050
|
}
|
|
4032
4051
|
}
|
|
4033
|
-
const
|
|
4052
|
+
const Xu = {
|
|
4034
4053
|
name: "ikon.client.exitFullscreen",
|
|
4035
4054
|
description: "Exit browser fullscreen mode",
|
|
4036
4055
|
returnType: { kind: "boolean" }
|
|
4037
4056
|
};
|
|
4038
|
-
function
|
|
4057
|
+
function Ju() {
|
|
4039
4058
|
if (typeof document > "u")
|
|
4040
4059
|
return !1;
|
|
4041
4060
|
try {
|
|
@@ -4045,24 +4064,24 @@ function Vu() {
|
|
|
4045
4064
|
return !1;
|
|
4046
4065
|
}
|
|
4047
4066
|
}
|
|
4048
|
-
const
|
|
4049
|
-
{ definition: pu, handler: mu },
|
|
4050
|
-
{ definition: Eu, handler: Iu },
|
|
4051
|
-
{ definition: _u, handler: Tu },
|
|
4052
|
-
{ definition: wu, handler: Su },
|
|
4067
|
+
const Qu = [
|
|
4053
4068
|
{ definition: gu, handler: Cu },
|
|
4054
4069
|
{ definition: yu, handler: Au },
|
|
4055
4070
|
{ definition: Ru, handler: bu },
|
|
4056
|
-
{ definition:
|
|
4057
|
-
{ definition:
|
|
4058
|
-
{ definition:
|
|
4059
|
-
{ definition:
|
|
4071
|
+
{ definition: Nu, handler: ku },
|
|
4072
|
+
{ definition: Du, handler: vu },
|
|
4073
|
+
{ definition: Uu, handler: Ou },
|
|
4074
|
+
{ definition: Mu, handler: Lu },
|
|
4060
4075
|
{ definition: Pu, handler: Bu },
|
|
4061
|
-
{ definition: xu, handler:
|
|
4062
|
-
{ definition:
|
|
4076
|
+
{ definition: xu, handler: Gu },
|
|
4077
|
+
{ definition: Wu, handler: Vu },
|
|
4078
|
+
{ definition: Hu, handler: $u },
|
|
4079
|
+
{ definition: Ku, handler: Yu },
|
|
4080
|
+
{ definition: ju, handler: zu },
|
|
4081
|
+
{ definition: Xu, handler: Ju }
|
|
4063
4082
|
];
|
|
4064
|
-
function
|
|
4065
|
-
const e =
|
|
4083
|
+
function Zu(t) {
|
|
4084
|
+
const e = Qu.map(({ definition: n, handler: r }) => t.register(n, r));
|
|
4066
4085
|
return () => e.forEach((n) => n());
|
|
4067
4086
|
}
|
|
4068
4087
|
function Ke() {
|
|
@@ -4079,14 +4098,14 @@ function He() {
|
|
|
4079
4098
|
return crypto.randomUUID();
|
|
4080
4099
|
}
|
|
4081
4100
|
}
|
|
4082
|
-
function
|
|
4101
|
+
function Hh() {
|
|
4083
4102
|
if (!(typeof localStorage > "u"))
|
|
4084
4103
|
try {
|
|
4085
4104
|
localStorage.removeItem(et);
|
|
4086
4105
|
} catch {
|
|
4087
4106
|
}
|
|
4088
4107
|
}
|
|
4089
|
-
function
|
|
4108
|
+
function qu(t) {
|
|
4090
4109
|
try {
|
|
4091
4110
|
const e = t.split(".");
|
|
4092
4111
|
return e.length !== 3 ? null : JSON.parse(atob(e[1])).id ?? null;
|
|
@@ -4094,22 +4113,22 @@ function Ku(t) {
|
|
|
4094
4113
|
return null;
|
|
4095
4114
|
}
|
|
4096
4115
|
}
|
|
4097
|
-
const Be = {}, tt = "https://api.prod.ikon.live", nt = "https://api.dev.ikon.live", Pt = "https://auth.ikonai.com", Bt = "https://auth.dev.ikonai.com",
|
|
4098
|
-
function
|
|
4116
|
+
const Be = {}, tt = "https://api.prod.ikon.live", nt = "https://api.dev.ikon.live", Pt = "https://auth.ikonai.com", Bt = "https://auth.dev.ikonai.com", $h = "https://auth.ikonai.com";
|
|
4117
|
+
function rs(t) {
|
|
4099
4118
|
return t === "development" ? nt : tt;
|
|
4100
4119
|
}
|
|
4101
|
-
function
|
|
4120
|
+
function ed() {
|
|
4102
4121
|
const t = typeof import.meta < "u" ? Be?.VITE_IKON_BACKEND_URL : void 0;
|
|
4103
4122
|
return t || (typeof window > "u" ? tt : !yt() || window.location.hostname.includes(".dev.") ? nt : tt);
|
|
4104
4123
|
}
|
|
4105
|
-
function
|
|
4124
|
+
function Kh() {
|
|
4106
4125
|
const t = typeof import.meta < "u" ? Be?.VITE_IKON_BACKEND_TYPE : void 0;
|
|
4107
4126
|
if (t === "development" || t === "production")
|
|
4108
4127
|
return t;
|
|
4109
4128
|
const e = typeof import.meta < "u" ? Be?.VITE_IKON_BACKEND_URL : void 0;
|
|
4110
4129
|
return e ? e.includes(".dev.") ? "development" : "production" : typeof window > "u" ? "production" : yt() ? window.location.hostname.includes(".dev.") ? "development" : "production" : "development";
|
|
4111
4130
|
}
|
|
4112
|
-
function
|
|
4131
|
+
function td() {
|
|
4113
4132
|
const t = typeof import.meta < "u" ? Be?.VITE_IKON_AUTH_URL : void 0;
|
|
4114
4133
|
return t || (typeof window > "u" ? Pt : !yt() || window.location.hostname.includes(".dev.") ? Bt : Pt);
|
|
4115
4134
|
}
|
|
@@ -4121,11 +4140,11 @@ function $e() {
|
|
|
4121
4140
|
e[n] = r;
|
|
4122
4141
|
return e;
|
|
4123
4142
|
}
|
|
4124
|
-
const
|
|
4125
|
-
function
|
|
4126
|
-
return typeof window > "u" ? void 0 : new URLSearchParams(window.location.search).get(
|
|
4143
|
+
const nd = ["ikon_token", "ikon_provider", "error"], rd = "ikon_server_url";
|
|
4144
|
+
function sd() {
|
|
4145
|
+
return typeof window > "u" ? void 0 : new URLSearchParams(window.location.search).get(rd) ?? void 0;
|
|
4127
4146
|
}
|
|
4128
|
-
function
|
|
4147
|
+
function Yh() {
|
|
4129
4148
|
if (typeof window > "u")
|
|
4130
4149
|
return { parameters: {} };
|
|
4131
4150
|
const t = window.location.pathname;
|
|
@@ -4137,7 +4156,7 @@ function Bh() {
|
|
|
4137
4156
|
throw new Error("URL cannot contain both /s/[sessionId] and /c/[channelKey]");
|
|
4138
4157
|
const i = $e(), o = {};
|
|
4139
4158
|
for (const [a, c] of Object.entries(i))
|
|
4140
|
-
|
|
4159
|
+
nd.includes(a) || (o[a] = c);
|
|
4141
4160
|
return { sessionId: e, channelKey: n, parameters: o };
|
|
4142
4161
|
}
|
|
4143
4162
|
function yt() {
|
|
@@ -4152,7 +4171,7 @@ function yt() {
|
|
|
4152
4171
|
}
|
|
4153
4172
|
return !0;
|
|
4154
4173
|
}
|
|
4155
|
-
function
|
|
4174
|
+
function jh() {
|
|
4156
4175
|
if (typeof window > "u") return;
|
|
4157
4176
|
const t = window.location.pathname, e = t.match(/^\/s\/[^/]+/), n = t.match(/^\/c\/[^/]+/);
|
|
4158
4177
|
if (e || n) {
|
|
@@ -4160,8 +4179,8 @@ function xh() {
|
|
|
4160
4179
|
window.history.replaceState(null, "", r + window.location.search);
|
|
4161
4180
|
}
|
|
4162
4181
|
}
|
|
4163
|
-
const re =
|
|
4164
|
-
async function
|
|
4182
|
+
const re = L("Authenticator"), se = S.GROUP_CORE | S.GROUP_KEEPALIVE | S.GROUP_EVENTS | S.GROUP_ACTIONS | S.GROUP_UI | S.GROUP_AUDIO | S.GROUP_VIDEO | S.GROUP_ANALYTICS, id = 1e3, od = 5e3;
|
|
4183
|
+
async function ad(t, e, n, r) {
|
|
4165
4184
|
if (t)
|
|
4166
4185
|
try {
|
|
4167
4186
|
const s = await fetch(`${n}/anonymous`, {
|
|
@@ -4175,13 +4194,13 @@ async function qu(t, e, n, r) {
|
|
|
4175
4194
|
const i = await s.json();
|
|
4176
4195
|
if (!i.token)
|
|
4177
4196
|
return;
|
|
4178
|
-
const o =
|
|
4197
|
+
const o = qu(i.token);
|
|
4179
4198
|
return o ? { userId: o, token: i.token } : void 0;
|
|
4180
4199
|
} catch {
|
|
4181
4200
|
return;
|
|
4182
4201
|
}
|
|
4183
4202
|
}
|
|
4184
|
-
async function
|
|
4203
|
+
async function cd(t, e, n, r) {
|
|
4185
4204
|
try {
|
|
4186
4205
|
const s = await fetch(`${t}/profiles/me?space=${encodeURIComponent(e)}`, {
|
|
4187
4206
|
method: "GET",
|
|
@@ -4193,7 +4212,7 @@ async function ed(t, e, n, r) {
|
|
|
4193
4212
|
re.warn("Failed to ensure profile:", s);
|
|
4194
4213
|
}
|
|
4195
4214
|
}
|
|
4196
|
-
function
|
|
4215
|
+
function ss(t, e, n) {
|
|
4197
4216
|
const r = {
|
|
4198
4217
|
method: "POST",
|
|
4199
4218
|
headers: {
|
|
@@ -4205,40 +4224,40 @@ function rs(t, e, n) {
|
|
|
4205
4224
|
};
|
|
4206
4225
|
return e || (r.credentials = "include"), r;
|
|
4207
4226
|
}
|
|
4208
|
-
async function
|
|
4227
|
+
async function is(t, e, n, r, s, i, o) {
|
|
4209
4228
|
const a = `${t}/rooms`, c = {
|
|
4210
4229
|
space: e,
|
|
4211
4230
|
...n ? { key: n } : {},
|
|
4212
4231
|
...r && Object.keys(r).length > 0 ? { params: r } : {},
|
|
4213
4232
|
...s ? { hash: s } : {}
|
|
4214
|
-
}, l = await fetch(a,
|
|
4233
|
+
}, l = await fetch(a, ss(c, i, o));
|
|
4215
4234
|
if (!l.ok) {
|
|
4216
4235
|
const f = await l.text().catch(() => "Unknown error");
|
|
4217
4236
|
throw new D(`Failed to request channel: ${l.status} ${f}`);
|
|
4218
4237
|
}
|
|
4219
4238
|
return await l.json();
|
|
4220
4239
|
}
|
|
4221
|
-
async function
|
|
4222
|
-
const s = `${t}/rooms/connect`, i = await fetch(s,
|
|
4240
|
+
async function ld(t, e, n, r) {
|
|
4241
|
+
const s = `${t}/rooms/connect`, i = await fetch(s, ss(e, n, r));
|
|
4223
4242
|
if (!i.ok) {
|
|
4224
4243
|
const o = await i.text().catch(() => "Unknown error");
|
|
4225
4244
|
throw new D(`Backend connect failed: ${i.status} ${o}`);
|
|
4226
4245
|
}
|
|
4227
4246
|
return i.json();
|
|
4228
4247
|
}
|
|
4229
|
-
async function
|
|
4248
|
+
async function os(t, e, n, r, s) {
|
|
4230
4249
|
const i = Date.now();
|
|
4231
|
-
let o =
|
|
4250
|
+
let o = id;
|
|
4232
4251
|
for (; ; ) {
|
|
4233
4252
|
if (s?.aborted)
|
|
4234
4253
|
throw new D("Connection aborted");
|
|
4235
4254
|
if (Date.now() - i >= n)
|
|
4236
|
-
throw new
|
|
4237
|
-
const c = await
|
|
4255
|
+
throw new Zl(n);
|
|
4256
|
+
const c = await ld(t, e, r, s), l = c.state?.toLowerCase();
|
|
4238
4257
|
if (l === "running")
|
|
4239
4258
|
return c;
|
|
4240
4259
|
if (l === "provisioning") {
|
|
4241
|
-
await
|
|
4260
|
+
await Zr(o, s), o = Math.min(o * 1.5, od);
|
|
4242
4261
|
continue;
|
|
4243
4262
|
}
|
|
4244
4263
|
throw new D(`Unexpected channel state: ${c.state}`);
|
|
@@ -4251,11 +4270,11 @@ async function ge(t, e) {
|
|
|
4251
4270
|
throw new D(`Failed to connect: ${n.status} ${o}`);
|
|
4252
4271
|
}
|
|
4253
4272
|
const r = await n.arrayBuffer(), s = new Uint8Array(r);
|
|
4254
|
-
return { authResponse: await
|
|
4273
|
+
return { authResponse: await Io(s) };
|
|
4255
4274
|
}
|
|
4256
|
-
function
|
|
4275
|
+
function ud(t, e) {
|
|
4257
4276
|
const n = wt();
|
|
4258
|
-
return
|
|
4277
|
+
return wo({
|
|
4259
4278
|
ServerSessionId: "",
|
|
4260
4279
|
// Server will fill this in
|
|
4261
4280
|
ContextType: ce.Browser,
|
|
@@ -4288,7 +4307,7 @@ function nd(t, e) {
|
|
|
4288
4307
|
InitialUrl: typeof window < "u" ? window.location.href : ""
|
|
4289
4308
|
});
|
|
4290
4309
|
}
|
|
4291
|
-
function
|
|
4310
|
+
function dd(t) {
|
|
4292
4311
|
return {
|
|
4293
4312
|
ServerSessionId: t.ServerSessionId,
|
|
4294
4313
|
ContextType: t.ContextType,
|
|
@@ -4321,17 +4340,17 @@ function rd(t) {
|
|
|
4321
4340
|
InitialUrl: t.InitialUrl
|
|
4322
4341
|
};
|
|
4323
4342
|
}
|
|
4324
|
-
async function
|
|
4343
|
+
async function hd(t, e) {
|
|
4325
4344
|
const n = `https://${t.host}:${t.httpsPort}`;
|
|
4326
4345
|
re.debug(`Authenticating with local server: ${n}`);
|
|
4327
4346
|
const s = { ...$e(), ...t.parameters }, i = t.deviceId ?? He();
|
|
4328
4347
|
let o = t.userId, a = t.token;
|
|
4329
4348
|
if (!o) {
|
|
4330
|
-
const _ = await
|
|
4349
|
+
const _ = await ad(t.spaceId, i, td(), e);
|
|
4331
4350
|
_ && (o = _.userId, a = _.token);
|
|
4332
4351
|
}
|
|
4333
|
-
o || (o = i, re.debug("Using deviceId as userId fallback")), t.spaceId && a && await ed(
|
|
4334
|
-
const c =
|
|
4352
|
+
o || (o = i, re.debug("Using deviceId as userId fallback")), t.spaceId && a && await cd(ed(), t.spaceId, a, e);
|
|
4353
|
+
const c = ud({ ...t, parameters: s }, o), l = dd(c), h = await fetch(`${n}/connect-token`, {
|
|
4335
4354
|
method: "POST",
|
|
4336
4355
|
headers: {
|
|
4337
4356
|
"Content-Type": "application/json"
|
|
@@ -4349,10 +4368,10 @@ async function sd(t, e) {
|
|
|
4349
4368
|
const p = `${n}/connect?token=${encodeURIComponent(d)}`;
|
|
4350
4369
|
return ge(p, e);
|
|
4351
4370
|
}
|
|
4352
|
-
async function
|
|
4371
|
+
async function fd(t, e) {
|
|
4353
4372
|
if (t.sessionId && t.channelKey)
|
|
4354
4373
|
throw new D("Cannot specify both sessionId and channelKey. Use sessionId for precomputed sessions or channelKey to select a channel.");
|
|
4355
|
-
const n =
|
|
4374
|
+
const n = rs(t.backendType);
|
|
4356
4375
|
re.debug(`Authenticating with cloud server: ${n}, space ID: ${t.spaceId}`);
|
|
4357
4376
|
const r = await fetch(`${n}/auth/api-key`, {
|
|
4358
4377
|
method: "POST",
|
|
@@ -4384,7 +4403,7 @@ async function id(t, e) {
|
|
|
4384
4403
|
const _ = await o.text().catch(() => "Unknown error");
|
|
4385
4404
|
throw new D(`Failed to get or create profile: ${o.status} ${_}`);
|
|
4386
4405
|
}
|
|
4387
|
-
const a = await
|
|
4406
|
+
const a = await is(n, t.spaceId, t.channelKey, t.parameters, t.sessionId, i, e), c = $e(), l = wt(), h = {
|
|
4388
4407
|
code: a.code,
|
|
4389
4408
|
contextType: ce.Plugin,
|
|
4390
4409
|
userType: t.userType ?? ue.Human,
|
|
@@ -4409,16 +4428,16 @@ async function id(t, e) {
|
|
|
4409
4428
|
timezone: St(),
|
|
4410
4429
|
isTouchDevice: gt(),
|
|
4411
4430
|
initialUrl: typeof window < "u" ? window.location.href : ""
|
|
4412
|
-
}, f = t.provisioningTimeoutMs ??
|
|
4431
|
+
}, f = t.provisioningTimeoutMs ?? ts, d = await os(n, h, f, i, e);
|
|
4413
4432
|
if (!d.configuration?.url)
|
|
4414
4433
|
throw new D("Backend did not return a connect URL");
|
|
4415
4434
|
const p = d.configuration.url;
|
|
4416
4435
|
return ge(p, e);
|
|
4417
4436
|
}
|
|
4418
|
-
async function
|
|
4437
|
+
async function pd(t, e) {
|
|
4419
4438
|
if (t.sessionId && t.channelKey)
|
|
4420
4439
|
throw new D("Cannot specify both sessionId and channelKey. Use sessionId for precomputed sessions or channelKey to select a channel.");
|
|
4421
|
-
const n =
|
|
4440
|
+
const n = rs(t.backendType), r = t.token;
|
|
4422
4441
|
re.debug(`Authenticating with session token to: ${n}, space ID: ${t.spaceId}`);
|
|
4423
4442
|
const s = await fetch(`${n}/profiles/me?space=${encodeURIComponent(t.spaceId)}`, {
|
|
4424
4443
|
method: "GET",
|
|
@@ -4431,7 +4450,7 @@ async function od(t, e) {
|
|
|
4431
4450
|
const d = await s.text().catch(() => "Unknown error");
|
|
4432
4451
|
throw new D(`Failed to get or create profile: ${s.status} ${d}`);
|
|
4433
4452
|
}
|
|
4434
|
-
const i = await
|
|
4453
|
+
const i = await is(n, t.spaceId, t.channelKey, t.parameters, t.sessionId, r, e), o = $e(), a = wt(), c = {
|
|
4435
4454
|
code: i.code,
|
|
4436
4455
|
contextType: ce.Browser,
|
|
4437
4456
|
userType: ue.Human,
|
|
@@ -4456,13 +4475,13 @@ async function od(t, e) {
|
|
|
4456
4475
|
timezone: St(),
|
|
4457
4476
|
isTouchDevice: gt(),
|
|
4458
4477
|
initialUrl: typeof window < "u" ? window.location.href : ""
|
|
4459
|
-
}, l = t.provisioningTimeoutMs ??
|
|
4478
|
+
}, l = t.provisioningTimeoutMs ?? ts, h = await os(n, c, l, r, e);
|
|
4460
4479
|
if (!h.configuration?.url)
|
|
4461
4480
|
throw new D("Backend did not return a connect URL");
|
|
4462
4481
|
const f = h.configuration.url;
|
|
4463
4482
|
return ge(f, e);
|
|
4464
4483
|
}
|
|
4465
|
-
const
|
|
4484
|
+
const md = new Uint8Array(0);
|
|
4466
4485
|
function xe(t) {
|
|
4467
4486
|
switch (t.kind) {
|
|
4468
4487
|
case "array":
|
|
@@ -4512,7 +4531,7 @@ function xt(t, e) {
|
|
|
4512
4531
|
}
|
|
4513
4532
|
return n;
|
|
4514
4533
|
}
|
|
4515
|
-
function
|
|
4534
|
+
function as(t, e) {
|
|
4516
4535
|
if (t === void 0)
|
|
4517
4536
|
return "null";
|
|
4518
4537
|
if (t === null) {
|
|
@@ -4522,9 +4541,9 @@ function os(t, e) {
|
|
|
4522
4541
|
}
|
|
4523
4542
|
return JSON.stringify(t);
|
|
4524
4543
|
}
|
|
4525
|
-
function
|
|
4544
|
+
function Ed(t, e) {
|
|
4526
4545
|
const n = (t.parameters ?? []).map((i) => {
|
|
4527
|
-
const o = xe(i.type), a = Object.prototype.hasOwnProperty.call(i, "defaultValue"), c = a ?
|
|
4546
|
+
const o = xe(i.type), a = Object.prototype.hasOwnProperty.call(i, "defaultValue"), c = a ? as(i.defaultValue, o) : "";
|
|
4528
4547
|
return {
|
|
4529
4548
|
name: i.name,
|
|
4530
4549
|
descriptor: o,
|
|
@@ -4550,7 +4569,7 @@ function cd(t, e) {
|
|
|
4550
4569
|
TypeName: Ce(i.descriptor),
|
|
4551
4570
|
HasDefaultValue: i.hasDefaultValue,
|
|
4552
4571
|
DefaultValueJson: i.defaultValueJson,
|
|
4553
|
-
DefaultValueData:
|
|
4572
|
+
DefaultValueData: md,
|
|
4554
4573
|
IsEnumerable: !1,
|
|
4555
4574
|
EnumerableItemTypeName: "",
|
|
4556
4575
|
Description: i.description ?? ""
|
|
@@ -4564,19 +4583,19 @@ function cd(t, e) {
|
|
|
4564
4583
|
returnType: r
|
|
4565
4584
|
};
|
|
4566
4585
|
}
|
|
4567
|
-
function
|
|
4586
|
+
function Id(t, e) {
|
|
4568
4587
|
return { value: t, data: e };
|
|
4569
4588
|
}
|
|
4570
|
-
class
|
|
4589
|
+
class _d extends Error {
|
|
4571
4590
|
constructor(e, n, r) {
|
|
4572
4591
|
super(e), this.remoteErrorType = n, this.remoteStackTrace = r, this.name = "FunctionCallError";
|
|
4573
4592
|
}
|
|
4574
4593
|
}
|
|
4575
|
-
const pe =
|
|
4576
|
-
function
|
|
4594
|
+
const pe = L("FunctionRegistry"), Gt = new Uint8Array(0), Wt = 3e4;
|
|
4595
|
+
function Td(t) {
|
|
4577
4596
|
return !t || typeof t != "object" ? !1 : t.data instanceof Uint8Array;
|
|
4578
4597
|
}
|
|
4579
|
-
class
|
|
4598
|
+
class wd {
|
|
4580
4599
|
functions = /* @__PURE__ */ new Map();
|
|
4581
4600
|
remoteFunctions = /* @__PURE__ */ new Map();
|
|
4582
4601
|
pendingCalls = /* @__PURE__ */ new Map();
|
|
@@ -4603,7 +4622,7 @@ class hd {
|
|
|
4603
4622
|
* If already connected, sends registration to server immediately.
|
|
4604
4623
|
*/
|
|
4605
4624
|
register(e, n) {
|
|
4606
|
-
const r =
|
|
4625
|
+
const r = Ed(e, n);
|
|
4607
4626
|
return this.functions.set(e.name, r), this.isConnected && this.config && this.sendRegistration(r), () => this.unregister(e.name);
|
|
4608
4627
|
}
|
|
4609
4628
|
/**
|
|
@@ -4663,9 +4682,9 @@ class hd {
|
|
|
4663
4682
|
ParameterIndex: l,
|
|
4664
4683
|
TypeName: f,
|
|
4665
4684
|
ValueJson: JSON.stringify(c ?? null),
|
|
4666
|
-
ValueData:
|
|
4685
|
+
ValueData: Gt
|
|
4667
4686
|
});
|
|
4668
|
-
}), o =
|
|
4687
|
+
}), o = kn({
|
|
4669
4688
|
FunctionId: w.createRandom(),
|
|
4670
4689
|
CallId: s,
|
|
4671
4690
|
InstanceId: w.createRandom(),
|
|
@@ -4673,13 +4692,13 @@ class hd {
|
|
|
4673
4692
|
Parameters: i,
|
|
4674
4693
|
Scopes: [],
|
|
4675
4694
|
Version: ""
|
|
4676
|
-
}), a =
|
|
4695
|
+
}), a = Lo(o, this.config.sessionId, {
|
|
4677
4696
|
targetIds: [r.clientSessionId]
|
|
4678
4697
|
});
|
|
4679
4698
|
return new Promise((c, l) => {
|
|
4680
4699
|
const h = setTimeout(() => {
|
|
4681
|
-
this.pendingCalls.delete(s.toString()), l(new Error(`Function call '${e}' timed out after ${
|
|
4682
|
-
},
|
|
4700
|
+
this.pendingCalls.delete(s.toString()), l(new Error(`Function call '${e}' timed out after ${Wt}ms`));
|
|
4701
|
+
}, Wt);
|
|
4683
4702
|
this.pendingCalls.set(s.toString(), {
|
|
4684
4703
|
resolve: c,
|
|
4685
4704
|
reject: l,
|
|
@@ -4740,7 +4759,7 @@ class hd {
|
|
|
4740
4759
|
return n === S.ACTION_FUNCTION_RESULT ? (this.handleFunctionResult(e), !0) : n === S.ACTION_FUNCTION_ERROR ? (this.handleFunctionError(e), !0) : !1;
|
|
4741
4760
|
}
|
|
4742
4761
|
handleFunctionResult(e) {
|
|
4743
|
-
const n =
|
|
4762
|
+
const n = Ca(e), r = n.CallId.toString(), s = this.pendingCalls.get(r);
|
|
4744
4763
|
if (!s) {
|
|
4745
4764
|
pe.warn(`Received result for unknown call: ${r}`);
|
|
4746
4765
|
return;
|
|
@@ -4750,12 +4769,12 @@ class hd {
|
|
|
4750
4769
|
s.resolve(i);
|
|
4751
4770
|
}
|
|
4752
4771
|
handleFunctionError(e) {
|
|
4753
|
-
const n =
|
|
4772
|
+
const n = Jo(e), r = n.CallId.toString(), s = this.pendingCalls.get(r);
|
|
4754
4773
|
if (!s) {
|
|
4755
4774
|
pe.warn(`Received error for unknown call: ${r}`);
|
|
4756
4775
|
return;
|
|
4757
4776
|
}
|
|
4758
|
-
this.pendingCalls.delete(r), clearTimeout(s.timeout), s.reject(new
|
|
4777
|
+
this.pendingCalls.delete(r), clearTimeout(s.timeout), s.reject(new _d(n.ErrorMessage, n.ErrorTypeName, n.StackTrace));
|
|
4759
4778
|
}
|
|
4760
4779
|
inferTypeName(e) {
|
|
4761
4780
|
if (e == null)
|
|
@@ -4778,7 +4797,7 @@ class hd {
|
|
|
4778
4797
|
sendAllRegistrations() {
|
|
4779
4798
|
if (!this.config || this.functions.size === 0)
|
|
4780
4799
|
return;
|
|
4781
|
-
const e = Array.from(this.functions.values()).map((s) => s.registerPayload), n =
|
|
4800
|
+
const e = Array.from(this.functions.values()).map((s) => s.registerPayload), n = ha({ Functions: e }), r = Ea(n, this.config.sessionId);
|
|
4782
4801
|
this.config.sendProtocolMessage(r);
|
|
4783
4802
|
}
|
|
4784
4803
|
/**
|
|
@@ -4787,14 +4806,14 @@ class hd {
|
|
|
4787
4806
|
sendRegistration(e) {
|
|
4788
4807
|
if (!this.config)
|
|
4789
4808
|
return;
|
|
4790
|
-
const n =
|
|
4809
|
+
const n = na(e.registerPayload, this.config.sessionId);
|
|
4791
4810
|
this.config.sendProtocolMessage(n);
|
|
4792
4811
|
}
|
|
4793
4812
|
/**
|
|
4794
4813
|
* Handle an incoming function call.
|
|
4795
4814
|
*/
|
|
4796
4815
|
async handleFunctionCall(e, n) {
|
|
4797
|
-
const r = await
|
|
4816
|
+
const r = await Fo(e), s = this.functions.get(r.FunctionName);
|
|
4798
4817
|
if (!s) {
|
|
4799
4818
|
pe.warn(`Received call for unknown function: ${r.FunctionName}`), this.sendError(r.CallId, r.InstanceId, n, new Error(`Unknown function: ${r.FunctionName}`));
|
|
4800
4819
|
return;
|
|
@@ -4812,9 +4831,9 @@ class hd {
|
|
|
4812
4831
|
d === void 0 || d === "" ? h.hasDefaultValue ? s.push(xt(h.defaultValueJson, h.descriptor)) : s.push(void 0) : s.push(xt(d, h.descriptor));
|
|
4813
4832
|
}
|
|
4814
4833
|
const i = await e.handler(...s);
|
|
4815
|
-
let o = i, a =
|
|
4816
|
-
|
|
4817
|
-
const c =
|
|
4834
|
+
let o = i, a = Gt;
|
|
4835
|
+
Td(i) && (o = i.value, a = new Uint8Array(i.data));
|
|
4836
|
+
const c = as(o, e.returnType);
|
|
4818
4837
|
this.sendResult(n.CallId, n.InstanceId, r, e, c, a);
|
|
4819
4838
|
} catch (s) {
|
|
4820
4839
|
pe.error(`Function ${n.FunctionName} execution failed:`, s), this.sendError(n.CallId, n.InstanceId, r, s instanceof Error ? s : new Error(String(s)));
|
|
@@ -4826,7 +4845,7 @@ class hd {
|
|
|
4826
4845
|
sendAck(e, n, r) {
|
|
4827
4846
|
if (!this.config)
|
|
4828
4847
|
return;
|
|
4829
|
-
const s =
|
|
4848
|
+
const s = ko(Ao({ CallId: e, InstanceId: n }), this.config.sessionId, { targetIds: [r] });
|
|
4830
4849
|
this.config.sendProtocolMessage(s);
|
|
4831
4850
|
}
|
|
4832
4851
|
/**
|
|
@@ -4835,8 +4854,8 @@ class hd {
|
|
|
4835
4854
|
sendResult(e, n, r, s, i, o) {
|
|
4836
4855
|
if (!this.config)
|
|
4837
4856
|
return;
|
|
4838
|
-
const a =
|
|
4839
|
-
|
|
4857
|
+
const a = ga(
|
|
4858
|
+
Sr({
|
|
4840
4859
|
CallId: e,
|
|
4841
4860
|
InstanceId: n,
|
|
4842
4861
|
ResultTypeName: Ce(s.returnType),
|
|
@@ -4854,7 +4873,7 @@ class hd {
|
|
|
4854
4873
|
sendError(e, n, r, s) {
|
|
4855
4874
|
if (!this.config)
|
|
4856
4875
|
return;
|
|
4857
|
-
const i =
|
|
4876
|
+
const i = Xo(
|
|
4858
4877
|
Wn({
|
|
4859
4878
|
CallId: e,
|
|
4860
4879
|
InstanceId: n,
|
|
@@ -4882,7 +4901,7 @@ const Ae = {
|
|
|
4882
4901
|
StopCapture: "ikon.client.stopCapture",
|
|
4883
4902
|
CaptureImage: "ikon.client.captureImage",
|
|
4884
4903
|
GetMediaDevices: "ikon.client.getMediaDevices"
|
|
4885
|
-
},
|
|
4904
|
+
}, Sd = {
|
|
4886
4905
|
name: Ae.StartVideoCapture,
|
|
4887
4906
|
description: "Start camera or screen capture and stream video frames to the server",
|
|
4888
4907
|
returnType: { kind: "string" },
|
|
@@ -4890,31 +4909,31 @@ const Ae = {
|
|
|
4890
4909
|
{ name: "source", type: { kind: "string", nullable: !0 }, description: "camera or screen" },
|
|
4891
4910
|
{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }
|
|
4892
4911
|
]
|
|
4893
|
-
},
|
|
4912
|
+
}, gd = {
|
|
4894
4913
|
name: Ae.StartAudioCapture,
|
|
4895
4914
|
description: "Start microphone capture and stream audio frames to the server",
|
|
4896
4915
|
returnType: { kind: "string" },
|
|
4897
4916
|
parameters: [{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }]
|
|
4898
|
-
},
|
|
4917
|
+
}, Cd = {
|
|
4899
4918
|
name: Ae.StopCapture,
|
|
4900
4919
|
description: "Stop a previously started capture by streamId",
|
|
4901
4920
|
returnType: { kind: "boolean" },
|
|
4902
4921
|
parameters: [{ name: "streamId", type: { kind: "string" }, description: "Stream ID to stop" }]
|
|
4903
|
-
},
|
|
4922
|
+
}, yd = {
|
|
4904
4923
|
name: Ae.CaptureImage,
|
|
4905
4924
|
description: "Capture a single image from the camera and return metadata (JSON) plus binary image data",
|
|
4906
4925
|
returnType: { kind: "string" },
|
|
4907
4926
|
parameters: [{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }]
|
|
4908
|
-
},
|
|
4927
|
+
}, Ad = {
|
|
4909
4928
|
name: Ae.GetMediaDevices,
|
|
4910
4929
|
description: "Get list of available media input devices",
|
|
4911
4930
|
returnType: { kind: "string" },
|
|
4912
4931
|
parameters: []
|
|
4913
4932
|
};
|
|
4914
|
-
function
|
|
4933
|
+
function Rd(t, e) {
|
|
4915
4934
|
const n = [];
|
|
4916
4935
|
return n.push(
|
|
4917
|
-
t.register(
|
|
4936
|
+
t.register(Sd, async (r, s) => {
|
|
4918
4937
|
if (e.isWebRtcEnabled) {
|
|
4919
4938
|
const l = e.webRtcSignaling;
|
|
4920
4939
|
if (!l)
|
|
@@ -4929,7 +4948,7 @@ function _d(t, e) {
|
|
|
4929
4948
|
return ((typeof r == "string" && r.trim().toLowerCase() === "screen" ? "screen" : "camera") === "screen" ? await i.video.startScreen({ userGesture: !1, options: o, constraints: o?.constraints }) : await i.video.startCamera({ userGesture: !1, options: o, constraints: o?.constraints })).streamId;
|
|
4930
4949
|
})
|
|
4931
4950
|
), n.push(
|
|
4932
|
-
t.register(
|
|
4951
|
+
t.register(gd, async (r) => {
|
|
4933
4952
|
if (e.isWebRtcEnabled) {
|
|
4934
4953
|
const a = e.webRtcSignaling;
|
|
4935
4954
|
if (!a)
|
|
@@ -4944,7 +4963,7 @@ function _d(t, e) {
|
|
|
4944
4963
|
return (await s.audio.startMic({ userGesture: !1, options: i, constraints: i?.constraints })).streamId;
|
|
4945
4964
|
})
|
|
4946
4965
|
), n.push(
|
|
4947
|
-
t.register(
|
|
4966
|
+
t.register(Cd, async (r) => {
|
|
4948
4967
|
if (e.isWebRtcEnabled) {
|
|
4949
4968
|
const a = e.webRtcSignaling;
|
|
4950
4969
|
return a && await a.stopCapture(), !0;
|
|
@@ -4956,7 +4975,7 @@ function _d(t, e) {
|
|
|
4956
4975
|
return i || o;
|
|
4957
4976
|
})
|
|
4958
4977
|
), n.push(
|
|
4959
|
-
t.register(
|
|
4978
|
+
t.register(yd, async (r) => {
|
|
4960
4979
|
const s = e.mediaCapture;
|
|
4961
4980
|
if (!s)
|
|
4962
4981
|
throw new Error("Media capture is not available in this environment");
|
|
@@ -4968,10 +4987,10 @@ function _d(t, e) {
|
|
|
4968
4987
|
width: i.width,
|
|
4969
4988
|
height: i.height
|
|
4970
4989
|
}), a = JSON.stringify({ mime: o.mime, width: o.width, height: o.height });
|
|
4971
|
-
return
|
|
4990
|
+
return Id(a, o.data);
|
|
4972
4991
|
})
|
|
4973
4992
|
), n.push(
|
|
4974
|
-
t.register(
|
|
4993
|
+
t.register(Ad, async () => {
|
|
4975
4994
|
if (!navigator.mediaDevices || !navigator.mediaDevices.enumerateDevices)
|
|
4976
4995
|
return JSON.stringify([]);
|
|
4977
4996
|
const s = (await navigator.mediaDevices.enumerateDevices()).filter((i) => i.kind === "audioinput" || i.kind === "videoinput").map((i) => ({
|
|
@@ -4987,13 +5006,13 @@ function _d(t, e) {
|
|
|
4987
5006
|
r();
|
|
4988
5007
|
};
|
|
4989
5008
|
}
|
|
4990
|
-
const
|
|
5009
|
+
const cs = {
|
|
4991
5010
|
PlaySound: "ikon.client.playSound",
|
|
4992
5011
|
StopSound: "ikon.client.stopSound"
|
|
4993
5012
|
}, rt = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map();
|
|
4994
|
-
let
|
|
4995
|
-
const
|
|
4996
|
-
name:
|
|
5013
|
+
let bd = 1;
|
|
5014
|
+
const Nd = {
|
|
5015
|
+
name: cs.PlaySound,
|
|
4997
5016
|
description: "Play a sound effect",
|
|
4998
5017
|
returnType: { kind: "string", nullable: !0 },
|
|
4999
5018
|
parameters: [
|
|
@@ -5003,7 +5022,7 @@ const wd = {
|
|
|
5003
5022
|
{ name: "loop", type: { kind: "boolean", nullable: !0 }, description: "Loop the sound" }
|
|
5004
5023
|
]
|
|
5005
5024
|
};
|
|
5006
|
-
function
|
|
5025
|
+
function kd(t, e, n, r) {
|
|
5007
5026
|
if (typeof window > "u" || typeof Audio > "u" || typeof t != "string" || !t.trim())
|
|
5008
5027
|
return Promise.resolve(null);
|
|
5009
5028
|
let s = t;
|
|
@@ -5017,7 +5036,7 @@ function Sd(t, e, n, r) {
|
|
|
5017
5036
|
try {
|
|
5018
5037
|
const o = new Audio(s), a = typeof n == "number" ? Math.max(0, Math.min(1, n)) : 1;
|
|
5019
5038
|
o.volume = a, r === !0 && (o.loop = !0);
|
|
5020
|
-
const c = `sound-${
|
|
5039
|
+
const c = `sound-${bd++}`, l = () => {
|
|
5021
5040
|
ie.delete(c), o.removeEventListener("ended", l), o.removeEventListener("error", l);
|
|
5022
5041
|
};
|
|
5023
5042
|
o.addEventListener("ended", l), o.addEventListener("error", l), ie.set(c, o), o.play().then(
|
|
@@ -5031,13 +5050,13 @@ function Sd(t, e, n, r) {
|
|
|
5031
5050
|
}
|
|
5032
5051
|
});
|
|
5033
5052
|
}
|
|
5034
|
-
const
|
|
5035
|
-
name:
|
|
5053
|
+
const Dd = {
|
|
5054
|
+
name: cs.StopSound,
|
|
5036
5055
|
description: "Stop a playing sound by ID",
|
|
5037
5056
|
returnType: { kind: "boolean" },
|
|
5038
5057
|
parameters: [{ name: "playbackId", type: { kind: "string" }, description: "Playback ID from playSound" }]
|
|
5039
5058
|
};
|
|
5040
|
-
function
|
|
5059
|
+
function vd(t) {
|
|
5041
5060
|
if (typeof t != "string")
|
|
5042
5061
|
return !1;
|
|
5043
5062
|
const e = ie.get(t);
|
|
@@ -5049,7 +5068,7 @@ function Cd(t) {
|
|
|
5049
5068
|
return !1;
|
|
5050
5069
|
}
|
|
5051
5070
|
}
|
|
5052
|
-
function
|
|
5071
|
+
function Ud() {
|
|
5053
5072
|
rt.clear();
|
|
5054
5073
|
for (const [t, e] of ie) {
|
|
5055
5074
|
try {
|
|
@@ -5059,28 +5078,28 @@ function yd() {
|
|
|
5059
5078
|
ie.delete(t);
|
|
5060
5079
|
}
|
|
5061
5080
|
}
|
|
5062
|
-
const
|
|
5063
|
-
{ definition:
|
|
5064
|
-
{ definition:
|
|
5081
|
+
const Od = [
|
|
5082
|
+
{ definition: Nd, handler: kd },
|
|
5083
|
+
{ definition: Dd, handler: vd }
|
|
5065
5084
|
];
|
|
5066
|
-
function
|
|
5067
|
-
const e =
|
|
5085
|
+
function Md(t) {
|
|
5086
|
+
const e = Od.map(({ definition: n, handler: r }) => t.register(n, r));
|
|
5068
5087
|
return () => {
|
|
5069
|
-
e.forEach((n) => n()),
|
|
5088
|
+
e.forEach((n) => n()), Ud();
|
|
5070
5089
|
};
|
|
5071
5090
|
}
|
|
5072
|
-
const
|
|
5091
|
+
const ls = () => {
|
|
5073
5092
|
if (typeof navigator > "u")
|
|
5074
5093
|
return !1;
|
|
5075
5094
|
const t = navigator.userAgent, e = /iPad|iPhone|iPod/.test(t), n = t.includes("Macintosh") && typeof navigator.maxTouchPoints == "number" && navigator.maxTouchPoints > 1;
|
|
5076
5095
|
return e || n;
|
|
5077
|
-
}, De =
|
|
5096
|
+
}, De = L("Capabilities"), Ld = globalThis;
|
|
5078
5097
|
function Me() {
|
|
5079
5098
|
if (typeof SharedArrayBuffer > "u")
|
|
5080
5099
|
return De.debug("SharedArrayBuffer not supported: SharedArrayBuffer is undefined"), !1;
|
|
5081
5100
|
if (typeof Atomics > "u")
|
|
5082
5101
|
return De.debug("SharedArrayBuffer not supported: Atomics is undefined"), !1;
|
|
5083
|
-
if (
|
|
5102
|
+
if (Ld.crossOriginIsolated === !1)
|
|
5084
5103
|
return De.debug("SharedArrayBuffer not supported: crossOriginIsolated is false (missing COOP/COEP headers)"), !1;
|
|
5085
5104
|
try {
|
|
5086
5105
|
new SharedArrayBuffer(1);
|
|
@@ -5089,10 +5108,10 @@ function Me() {
|
|
|
5089
5108
|
}
|
|
5090
5109
|
return !0;
|
|
5091
5110
|
}
|
|
5092
|
-
function
|
|
5111
|
+
function us(t) {
|
|
5093
5112
|
return typeof AudioWorkletNode != "function" ? !1 : typeof t.audioWorklet?.addModule == "function";
|
|
5094
5113
|
}
|
|
5095
|
-
function
|
|
5114
|
+
function Fd() {
|
|
5096
5115
|
const r = new ArrayBuffer(882044), s = new DataView(r), i = (a, c) => {
|
|
5097
5116
|
for (let l = 0; l < c.length; l++)
|
|
5098
5117
|
s.setUint8(a + l, c.charCodeAt(l));
|
|
@@ -5101,13 +5120,13 @@ function Nd() {
|
|
|
5101
5120
|
const o = new Blob([r], { type: "audio/wav" });
|
|
5102
5121
|
return URL.createObjectURL(o);
|
|
5103
5122
|
}
|
|
5104
|
-
class
|
|
5123
|
+
class ds {
|
|
5105
5124
|
_silentAudioElement = null;
|
|
5106
5125
|
get silentAudioElement() {
|
|
5107
5126
|
return this._silentAudioElement;
|
|
5108
5127
|
}
|
|
5109
5128
|
setup(e, n) {
|
|
5110
|
-
if (!(typeof document > "u") && (this._silentAudioElement || (this._silentAudioElement = document.createElement("audio"), this._silentAudioElement.src =
|
|
5129
|
+
if (!(typeof document > "u") && (this._silentAudioElement || (this._silentAudioElement = document.createElement("audio"), this._silentAudioElement.src = Fd(), this._silentAudioElement.loop = !0, this._silentAudioElement.volume = 0.01, this._silentAudioElement.play().catch(() => {
|
|
5111
5130
|
})), typeof navigator < "u" && "mediaSession" in navigator)) {
|
|
5112
5131
|
const r = e ?? {};
|
|
5113
5132
|
navigator.mediaSession.metadata = new MediaMetadata({
|
|
@@ -5145,16 +5164,16 @@ class us {
|
|
|
5145
5164
|
}
|
|
5146
5165
|
}
|
|
5147
5166
|
}
|
|
5148
|
-
function
|
|
5167
|
+
function Pd(t) {
|
|
5149
5168
|
return new Worker(
|
|
5150
|
-
"" + new URL("assets/audio-playback-worker-
|
|
5169
|
+
"" + new URL("assets/audio-playback-worker-DjOBgBVm.js", import.meta.url).href,
|
|
5151
5170
|
{
|
|
5152
5171
|
type: "module",
|
|
5153
5172
|
name: t?.name
|
|
5154
5173
|
}
|
|
5155
5174
|
);
|
|
5156
5175
|
}
|
|
5157
|
-
const ve = 48e3,
|
|
5176
|
+
const ve = 48e3, G = 2, hs = 1500, Vt = 512, Ht = "playback", Bd = 120, xd = 300, Gd = 4, Wd = 200, Vd = 100, Hd = 8e3, $d = 10, fs = 100, st = 50, ps = 128, Kd = 20, Yd = !0, X = 1500, jd = -20, zd = -100, Xd = 200, b = L("IkonAudioPlayback"), Jd = () => {
|
|
5158
5177
|
if (typeof navigator > "u" || typeof window > "u")
|
|
5159
5178
|
return !1;
|
|
5160
5179
|
const t = navigator.userAgent, e = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t), n = t.includes("Macintosh") && typeof navigator.maxTouchPoints == "number" && navigator.maxTouchPoints > 1;
|
|
@@ -5166,19 +5185,19 @@ const ve = 48e3, W = 2, ds = 1500, Vt = 512, Ht = "playback", Dd = 120, vd = 300
|
|
|
5166
5185
|
function J(t) {
|
|
5167
5186
|
return t instanceof Error ? `${t.name}: ${t.message}` : String(t);
|
|
5168
5187
|
}
|
|
5169
|
-
function
|
|
5188
|
+
function Qd(t) {
|
|
5170
5189
|
return `
|
|
5171
5190
|
// Audio buffer constants
|
|
5172
5191
|
const OUTPUT_SAMPLE_RATE_HZ = ${t.outputSampleRateHz};
|
|
5173
5192
|
const DEFAULT_FRAME_SAMPLES_PER_CHANNEL = Math.max(1, Math.round(OUTPUT_SAMPLE_RATE_HZ * 0.02));
|
|
5174
|
-
const BUFFER_TARGET_MIN_MS = ${
|
|
5175
|
-
const BUFFER_TARGET_MAX_MS = ${
|
|
5176
|
-
const JITTER_MULTIPLIER = ${
|
|
5177
|
-
const LOCAL_BUFFER_MAX_MS = ${
|
|
5178
|
-
const CONTROL_PERIOD_MS = ${
|
|
5179
|
-
const UNDERRUN_JUMP_MS = ${
|
|
5180
|
-
const STABLE_TIME_TO_DECREASE_MS = ${
|
|
5181
|
-
const DECREASE_STEP_MS = ${
|
|
5193
|
+
const BUFFER_TARGET_MIN_MS = ${Bd};
|
|
5194
|
+
const BUFFER_TARGET_MAX_MS = ${xd};
|
|
5195
|
+
const JITTER_MULTIPLIER = ${Gd};
|
|
5196
|
+
const LOCAL_BUFFER_MAX_MS = ${hs};
|
|
5197
|
+
const CONTROL_PERIOD_MS = ${Wd};
|
|
5198
|
+
const UNDERRUN_JUMP_MS = ${Vd};
|
|
5199
|
+
const STABLE_TIME_TO_DECREASE_MS = ${Hd};
|
|
5200
|
+
const DECREASE_STEP_MS = ${$d};
|
|
5182
5201
|
const DEFAULT_STATS_INTERVAL_SAMPLES = OUTPUT_SAMPLE_RATE_HZ;
|
|
5183
5202
|
|
|
5184
5203
|
// Pre-computed reciprocals for division-free calculations
|
|
@@ -5186,7 +5205,7 @@ const INV_OUTPUT_SAMPLE_RATE_HZ = 1 / OUTPUT_SAMPLE_RATE_HZ;
|
|
|
5186
5205
|
const MS_PER_SAMPLE = 1000 * INV_OUTPUT_SAMPLE_RATE_HZ;
|
|
5187
5206
|
|
|
5188
5207
|
// Fade envelope constants
|
|
5189
|
-
const FADE_IN_DURATION_MS = ${
|
|
5208
|
+
const FADE_IN_DURATION_MS = ${fs};
|
|
5190
5209
|
const FADE_OUT_DURATION_MS = ${st};
|
|
5191
5210
|
const FADE_IN_DURATION_SAMPLES = Math.round(OUTPUT_SAMPLE_RATE_HZ * FADE_IN_DURATION_MS / 1000);
|
|
5192
5211
|
const FADE_OUT_DURATION_SAMPLES = Math.round(OUTPUT_SAMPLE_RATE_HZ * FADE_OUT_DURATION_MS / 1000);
|
|
@@ -5194,10 +5213,10 @@ const FADE_IN_INCREMENT = 1.0 / FADE_IN_DURATION_SAMPLES;
|
|
|
5194
5213
|
const FADE_OUT_INCREMENT = 1.0 / FADE_OUT_DURATION_SAMPLES;
|
|
5195
5214
|
|
|
5196
5215
|
// Render quantum size (standard Web Audio API value)
|
|
5197
|
-
const RENDER_QUANTUM_SIZE = ${
|
|
5216
|
+
const RENDER_QUANTUM_SIZE = ${ps};
|
|
5198
5217
|
|
|
5199
5218
|
// Buffer reduction crossfade constants (align to quantum boundary to avoid partial quanta)
|
|
5200
|
-
const BUFFER_REDUCTION_CROSSFADE_MS = ${
|
|
5219
|
+
const BUFFER_REDUCTION_CROSSFADE_MS = ${Kd};
|
|
5201
5220
|
const BUFFER_REDUCTION_CROSSFADE_SAMPLES_RAW = Math.round(OUTPUT_SAMPLE_RATE_HZ * BUFFER_REDUCTION_CROSSFADE_MS / 1000);
|
|
5202
5221
|
const BUFFER_REDUCTION_CROSSFADE_SAMPLES = Math.ceil(BUFFER_REDUCTION_CROSSFADE_SAMPLES_RAW / RENDER_QUANTUM_SIZE) * RENDER_QUANTUM_SIZE;
|
|
5203
5222
|
|
|
@@ -5408,7 +5427,7 @@ class IkonAudioPlayerProcessor extends AudioWorkletProcessor {
|
|
|
5408
5427
|
this.statsIntervalSamples = Math.max(1, Math.round((OUTPUT_SAMPLE_RATE_HZ * statusIntervalMs) / 1000));
|
|
5409
5428
|
|
|
5410
5429
|
// Normalization config (hardcoded)
|
|
5411
|
-
this.normalizationEnabled = ${
|
|
5430
|
+
this.normalizationEnabled = ${Yd};
|
|
5412
5431
|
|
|
5413
5432
|
// Stream states for audio buffer
|
|
5414
5433
|
this.streams = new Map();
|
|
@@ -6138,7 +6157,7 @@ class At {
|
|
|
6138
6157
|
config;
|
|
6139
6158
|
enabled = !1;
|
|
6140
6159
|
stateUnsubscribe = null;
|
|
6141
|
-
isMobile =
|
|
6160
|
+
isMobile = Jd();
|
|
6142
6161
|
boundVisibilityChange = null;
|
|
6143
6162
|
boundPageHide = null;
|
|
6144
6163
|
unlockHandler = null;
|
|
@@ -6157,7 +6176,7 @@ class At {
|
|
|
6157
6176
|
pendingWorkletMessages = [];
|
|
6158
6177
|
audioWorker = null;
|
|
6159
6178
|
protocolPort = null;
|
|
6160
|
-
mediaSessionHelper = new
|
|
6179
|
+
mediaSessionHelper = new ds();
|
|
6161
6180
|
fallbackQueues = /* @__PURE__ */ new Map();
|
|
6162
6181
|
activeStreams = /* @__PURE__ */ new Set();
|
|
6163
6182
|
mediaSessionConfig = null;
|
|
@@ -6249,7 +6268,7 @@ class At {
|
|
|
6249
6268
|
* (e.g., button click/release) to ensure the AudioContext can be recreated.
|
|
6250
6269
|
*/
|
|
6251
6270
|
requestRecovery() {
|
|
6252
|
-
if (this.enabled &&
|
|
6271
|
+
if (this.enabled && ls() && this.audioContext) {
|
|
6253
6272
|
this.stopAudioGraph();
|
|
6254
6273
|
try {
|
|
6255
6274
|
const e = new AudioContext({
|
|
@@ -6343,7 +6362,7 @@ class At {
|
|
|
6343
6362
|
const e = this.audioContext;
|
|
6344
6363
|
if (!e)
|
|
6345
6364
|
return null;
|
|
6346
|
-
const n = e.currentTime, r = e.sampleRate, s =
|
|
6365
|
+
const n = e.currentTime, r = e.sampleRate, s = G;
|
|
6347
6366
|
for (const i of this.visemeBuffers.values()) {
|
|
6348
6367
|
if (!i.timingEstablished || i.count === 0)
|
|
6349
6368
|
continue;
|
|
@@ -6412,7 +6431,7 @@ class At {
|
|
|
6412
6431
|
this.outputSampleRateHz = this.audioContext.sampleRate || ve, this.outputSampleRateHz !== a && b.debug(`AudioContext running at ${this.outputSampleRateHz}Hz (requested ${a}Hz)`), this.attachAudioContextHealthHandlers(this.audioContext);
|
|
6413
6432
|
}
|
|
6414
6433
|
const r = this.audioContext, s = this.resolveDiagnosticsConfig();
|
|
6415
|
-
if ((this.config.performance?.preferAudioWorklet ?? !0) &&
|
|
6434
|
+
if ((this.config.performance?.preferAudioWorklet ?? !0) && us(r)) {
|
|
6416
6435
|
await this.ensureAudioWorklet(r, s, e, n);
|
|
6417
6436
|
return;
|
|
6418
6437
|
}
|
|
@@ -6535,14 +6554,14 @@ class At {
|
|
|
6535
6554
|
await this.resumeWithTimeout(e), this.getContextState(e) === "running" && this.removeUnlockHandler();
|
|
6536
6555
|
} catch {
|
|
6537
6556
|
}
|
|
6538
|
-
const i = `${this.outputSampleRateHz}_${
|
|
6557
|
+
const i = `${this.outputSampleRateHz}_${G}`;
|
|
6539
6558
|
if (!this.workletModuleUrl || this.workletModuleKey !== i) {
|
|
6540
6559
|
if (this.workletModuleUrl)
|
|
6541
6560
|
try {
|
|
6542
6561
|
URL.revokeObjectURL(this.workletModuleUrl);
|
|
6543
6562
|
} catch {
|
|
6544
6563
|
}
|
|
6545
|
-
this.workletModuleKey = i, this.workletReady = null, this.workletModuleUrl = URL.createObjectURL(new Blob([
|
|
6564
|
+
this.workletModuleKey = i, this.workletReady = null, this.workletModuleUrl = URL.createObjectURL(new Blob([Qd({ outputSampleRateHz: this.outputSampleRateHz, outputChannels: G })], { type: "text/javascript" }));
|
|
6546
6565
|
}
|
|
6547
6566
|
this.workletReady || (this.workletReady = e.audioWorklet.addModule(this.workletModuleUrl).catch((h) => {
|
|
6548
6567
|
throw b.warn(`Failed to load AudioWorklet module, falling back: ${J(h)}`), h;
|
|
@@ -6558,11 +6577,11 @@ class At {
|
|
|
6558
6577
|
this.audioWorkletNode = new AudioWorkletNode(e, "ikon-audio-player", {
|
|
6559
6578
|
numberOfInputs: 0,
|
|
6560
6579
|
numberOfOutputs: 1,
|
|
6561
|
-
outputChannelCount: [
|
|
6580
|
+
outputChannelCount: [G],
|
|
6562
6581
|
processorOptions: {
|
|
6563
6582
|
outputAudioConfig: { diagnostics: n },
|
|
6564
6583
|
useSharedArrayBuffer: a,
|
|
6565
|
-
outputChannels:
|
|
6584
|
+
outputChannels: G
|
|
6566
6585
|
}
|
|
6567
6586
|
}), this.audioWorkletNode.port.onmessage = (h) => {
|
|
6568
6587
|
const f = h.data;
|
|
@@ -6596,7 +6615,7 @@ class At {
|
|
|
6596
6615
|
if (this.scriptProcessorNode)
|
|
6597
6616
|
return;
|
|
6598
6617
|
this.stopAudioWorklet(), this.pendingWorkletMessages = [];
|
|
6599
|
-
const r = 1024, s = new Float32Array(r *
|
|
6618
|
+
const r = 1024, s = new Float32Array(r * G), i = Math.round(this.outputSampleRateHz * fs / 1e3), o = Math.round(this.outputSampleRateHz * st / 1e3), a = 1 / i, c = 1 / o, l = new Array(G), h = [], f = e.createScriptProcessor(r, 0, G);
|
|
6600
6619
|
f.onaudioprocess = (d) => {
|
|
6601
6620
|
const p = d.outputBuffer, _ = p.numberOfChannels, T = p.length;
|
|
6602
6621
|
for (let m = 0; m < _; m++) {
|
|
@@ -6672,7 +6691,7 @@ class At {
|
|
|
6672
6691
|
e.totalSamples < 0 && (e.totalSamples = 0), this.compactFallbackQueue(e);
|
|
6673
6692
|
}
|
|
6674
6693
|
trimFallbackQueue(e) {
|
|
6675
|
-
const n = Math.floor(this.outputSampleRateHz *
|
|
6694
|
+
const n = Math.floor(this.outputSampleRateHz * G * hs / 1e3), r = e.totalSamples - n;
|
|
6676
6695
|
r <= 0 || this.skipFromFallbackQueue(e, r);
|
|
6677
6696
|
}
|
|
6678
6697
|
stopScriptProcessorDiagnostics() {
|
|
@@ -6691,7 +6710,7 @@ class At {
|
|
|
6691
6710
|
for (const [r, s] of this.fallbackQueues.entries()) {
|
|
6692
6711
|
if (s.totalSamples <= 0)
|
|
6693
6712
|
continue;
|
|
6694
|
-
const o = s.totalSamples /
|
|
6713
|
+
const o = s.totalSamples / G * 1e3 / this.outputSampleRateHz;
|
|
6695
6714
|
b.debug(`[Audio] stream=${r.substring(0, 8)} buffer=${o.toFixed(0)}ms renderer=ScriptProcessor`);
|
|
6696
6715
|
}
|
|
6697
6716
|
}, n);
|
|
@@ -6774,7 +6793,7 @@ class At {
|
|
|
6774
6793
|
type: "rebind",
|
|
6775
6794
|
transport: s,
|
|
6776
6795
|
outputSampleRate: this.outputSampleRateHz,
|
|
6777
|
-
outputChannels:
|
|
6796
|
+
outputChannels: G
|
|
6778
6797
|
});
|
|
6779
6798
|
} catch {
|
|
6780
6799
|
}
|
|
@@ -6793,7 +6812,7 @@ class At {
|
|
|
6793
6812
|
}
|
|
6794
6813
|
this.protocolPort = e;
|
|
6795
6814
|
try {
|
|
6796
|
-
this.audioWorker = new
|
|
6815
|
+
this.audioWorker = new Pd();
|
|
6797
6816
|
} catch (f) {
|
|
6798
6817
|
b.warn(`Failed to create audio worker: ${J(f)}`), this.protocolPort.close(), this.protocolPort = null;
|
|
6799
6818
|
return;
|
|
@@ -6807,12 +6826,12 @@ class At {
|
|
|
6807
6826
|
type: "configure",
|
|
6808
6827
|
transport: s ? "sab" : "pcm",
|
|
6809
6828
|
outputSampleRate: this.outputSampleRateHz,
|
|
6810
|
-
outputChannels:
|
|
6829
|
+
outputChannels: G,
|
|
6811
6830
|
preferWebCodecs: i
|
|
6812
6831
|
};
|
|
6813
6832
|
n.postMessage(o), n.postMessage({ type: "attachProtocolPort", port: e.port }, [e.port]);
|
|
6814
6833
|
const a = this.audioWorkletNode ? "AudioWorklet" : "ScriptProcessor", c = s ? "SharedArrayBuffer" : "MessagePort", h = i && typeof AudioDecoder < "u" ? "WebCodecs" : "WASM Opus";
|
|
6815
|
-
b.debug(`Audio initialized: renderer=${a}, transport=${c}, decoder=${h}, output=${this.outputSampleRateHz}Hz/${
|
|
6834
|
+
b.debug(`Audio initialized: renderer=${a}, transport=${c}, decoder=${h}, output=${this.outputSampleRateHz}Hz/${G}ch`);
|
|
6816
6835
|
}
|
|
6817
6836
|
onAudioWorkerMessage(e) {
|
|
6818
6837
|
if (e.type === "streamBegin") {
|
|
@@ -6877,7 +6896,7 @@ class At {
|
|
|
6877
6896
|
s.epochTimestampSamples = e.timestampInterleavedSamples;
|
|
6878
6897
|
const c = this.audioContext;
|
|
6879
6898
|
if (c) {
|
|
6880
|
-
const l = (c.outputLatency ?? 0) + (c.baseLatency ?? 0), h =
|
|
6899
|
+
const l = (c.outputLatency ?? 0) + (c.baseLatency ?? 0), h = jd + l * 1e3, f = Math.min(Xd, Math.max(zd, h));
|
|
6881
6900
|
s.playbackStartContextTime = c.currentTime + f / 1e3;
|
|
6882
6901
|
}
|
|
6883
6902
|
s.timingEstablished = !0;
|
|
@@ -7000,20 +7019,20 @@ class At {
|
|
|
7000
7019
|
}));
|
|
7001
7020
|
}
|
|
7002
7021
|
}
|
|
7003
|
-
function
|
|
7022
|
+
function Zd(t) {
|
|
7004
7023
|
return new Worker(
|
|
7005
|
-
"" + new URL("assets/video-playback-worker-
|
|
7024
|
+
"" + new URL("assets/video-playback-worker-B3i4lAcK.js", import.meta.url).href,
|
|
7006
7025
|
{
|
|
7007
7026
|
type: "module",
|
|
7008
7027
|
name: t?.name
|
|
7009
7028
|
}
|
|
7010
7029
|
);
|
|
7011
7030
|
}
|
|
7012
|
-
const j =
|
|
7031
|
+
const j = L("IkonVideoPlayback");
|
|
7013
7032
|
function Ye(t) {
|
|
7014
7033
|
return t instanceof Error ? `${t.name}: ${t.message}` : String(t);
|
|
7015
7034
|
}
|
|
7016
|
-
class
|
|
7035
|
+
class qd {
|
|
7017
7036
|
client;
|
|
7018
7037
|
config;
|
|
7019
7038
|
enabled = !0;
|
|
@@ -7088,7 +7107,7 @@ class Kd {
|
|
|
7088
7107
|
}
|
|
7089
7108
|
let e;
|
|
7090
7109
|
try {
|
|
7091
|
-
e = new
|
|
7110
|
+
e = new Zd();
|
|
7092
7111
|
} catch (n) {
|
|
7093
7112
|
j.warn(`Failed to create video worker: ${Ye(n)}`);
|
|
7094
7113
|
return;
|
|
@@ -7174,7 +7193,7 @@ class Kd {
|
|
|
7174
7193
|
}
|
|
7175
7194
|
}
|
|
7176
7195
|
requestIdrForStream(e, n) {
|
|
7177
|
-
const r =
|
|
7196
|
+
const r = fl(dl(), this.client.sessionId ?? 0, {
|
|
7178
7197
|
trackId: n,
|
|
7179
7198
|
targetIds: [e]
|
|
7180
7199
|
});
|
|
@@ -7227,11 +7246,11 @@ class Kd {
|
|
|
7227
7246
|
}));
|
|
7228
7247
|
}
|
|
7229
7248
|
}
|
|
7230
|
-
class
|
|
7249
|
+
class eh {
|
|
7231
7250
|
audio;
|
|
7232
7251
|
video;
|
|
7233
7252
|
constructor(e, n) {
|
|
7234
|
-
this.audio = new At(e, n?.audio), this.video = new
|
|
7253
|
+
this.audio = new At(e, n?.audio), this.video = new qd(e, n?.video), n?.mediaSession && this.audio.setMediaSession(n.mediaSession);
|
|
7235
7254
|
}
|
|
7236
7255
|
/**
|
|
7237
7256
|
* Releases media resources (workers, audio graph, decoders).
|
|
@@ -7242,7 +7261,7 @@ class Yd {
|
|
|
7242
7261
|
this.audio.dispose(), this.video.dispose();
|
|
7243
7262
|
}
|
|
7244
7263
|
}
|
|
7245
|
-
class
|
|
7264
|
+
class th {
|
|
7246
7265
|
static getStorageForCapacity(e, n) {
|
|
7247
7266
|
const r = Int32Array.BYTES_PER_ELEMENT * 2, s = n.BYTES_PER_ELEMENT * e;
|
|
7248
7267
|
return new SharedArrayBuffer(r + s);
|
|
@@ -7296,7 +7315,7 @@ class jd {
|
|
|
7296
7315
|
return r = (r + n) % this.capacity, Atomics.store(this.readWrite, 0, r), n;
|
|
7297
7316
|
}
|
|
7298
7317
|
}
|
|
7299
|
-
function
|
|
7318
|
+
function nh(t) {
|
|
7300
7319
|
return new Worker(
|
|
7301
7320
|
"" + new URL("assets/audio-capture-worker-DuKZS6HJ.js", import.meta.url).href,
|
|
7302
7321
|
{
|
|
@@ -7305,11 +7324,11 @@ function zd(t) {
|
|
|
7305
7324
|
}
|
|
7306
7325
|
);
|
|
7307
7326
|
}
|
|
7308
|
-
const R =
|
|
7309
|
-
function
|
|
7327
|
+
const R = L("IkonAudioCapture"), Ue = 3, rh = 200, sh = 2e3, ih = 5e3, Kt = 3e3;
|
|
7328
|
+
function oh(t) {
|
|
7310
7329
|
return new Promise((e) => setTimeout(e, t));
|
|
7311
7330
|
}
|
|
7312
|
-
function
|
|
7331
|
+
function ah(t) {
|
|
7313
7332
|
switch (t.name) {
|
|
7314
7333
|
// Transient errors - worth retrying
|
|
7315
7334
|
case "NotReadableError":
|
|
@@ -7334,11 +7353,11 @@ function qd(t) {
|
|
|
7334
7353
|
return { action: "fail", reason: "unknown", canRetry: !1 };
|
|
7335
7354
|
}
|
|
7336
7355
|
}
|
|
7337
|
-
function
|
|
7356
|
+
function ch() {
|
|
7338
7357
|
const t = globalThis.crypto;
|
|
7339
7358
|
return t?.randomUUID ? t.randomUUID() : `cap_${Date.now()}_${Math.floor(Math.random() * 1e9)}`;
|
|
7340
7359
|
}
|
|
7341
|
-
function
|
|
7360
|
+
function lh() {
|
|
7342
7361
|
return `
|
|
7343
7362
|
class RingBuffer {
|
|
7344
7363
|
static getStorageForCapacity(capacity, type) {
|
|
@@ -7395,7 +7414,7 @@ class RingBuffer {
|
|
|
7395
7414
|
}
|
|
7396
7415
|
}
|
|
7397
7416
|
|
|
7398
|
-
const RENDER_QUANTUM_SIZE = ${
|
|
7417
|
+
const RENDER_QUANTUM_SIZE = ${ps};
|
|
7399
7418
|
|
|
7400
7419
|
class IkonAudioCaptureProcessor extends AudioWorkletProcessor {
|
|
7401
7420
|
constructor(options) {
|
|
@@ -7467,7 +7486,7 @@ class IkonAudioCaptureProcessor extends AudioWorkletProcessor {
|
|
|
7467
7486
|
registerProcessor('ikon-audio-capture', IkonAudioCaptureProcessor);
|
|
7468
7487
|
`;
|
|
7469
7488
|
}
|
|
7470
|
-
class
|
|
7489
|
+
class uh {
|
|
7471
7490
|
constructor(e, n) {
|
|
7472
7491
|
this.client = e, this.config = n ?? {}, this.setupDeviceChangeListener();
|
|
7473
7492
|
}
|
|
@@ -7558,7 +7577,7 @@ class nh {
|
|
|
7558
7577
|
if (e.stopped)
|
|
7559
7578
|
return;
|
|
7560
7579
|
const i = Date.now(), o = n.name;
|
|
7561
|
-
if (e.lastErrorReason === r && e.lastErrorName === o && i - e.lastErrorTime <
|
|
7580
|
+
if (e.lastErrorReason === r && e.lastErrorName === o && i - e.lastErrorTime < ih)
|
|
7562
7581
|
return;
|
|
7563
7582
|
e.lastErrorTime = i, e.lastErrorReason = r, e.lastErrorName = o;
|
|
7564
7583
|
const a = this.config.autoRestartPolicy;
|
|
@@ -7793,7 +7812,7 @@ class nh {
|
|
|
7793
7812
|
ensureWorker() {
|
|
7794
7813
|
if (this.worker)
|
|
7795
7814
|
return this.worker;
|
|
7796
|
-
const e = new
|
|
7815
|
+
const e = new nh();
|
|
7797
7816
|
return this.worker = e, e.addEventListener("message", (n) => {
|
|
7798
7817
|
const r = n.data;
|
|
7799
7818
|
if (r?.type === "error") {
|
|
@@ -7875,7 +7894,7 @@ class nh {
|
|
|
7875
7894
|
try {
|
|
7876
7895
|
return { stream: await navigator.mediaDevices.getUserMedia({ audio: e }), error: n, errorInfo: r };
|
|
7877
7896
|
} catch (i) {
|
|
7878
|
-
if (n = i instanceof Error ? i : new Error(String(i)), r =
|
|
7897
|
+
if (n = i instanceof Error ? i : new Error(String(i)), r = ah(n), R.debug(
|
|
7879
7898
|
`getUserMedia attempt ${s + 1}/${Ue} failed: ${n.name} (action: ${r.action})`
|
|
7880
7899
|
), this.emitDiagnostic({
|
|
7881
7900
|
event: "retry",
|
|
@@ -7888,8 +7907,8 @@ class nh {
|
|
|
7888
7907
|
}), r.action !== "retry")
|
|
7889
7908
|
break;
|
|
7890
7909
|
if (s < Ue - 1) {
|
|
7891
|
-
const o =
|
|
7892
|
-
R.debug(`Retrying getUserMedia in ${o}ms`), await
|
|
7910
|
+
const o = rh * (s + 1);
|
|
7911
|
+
R.debug(`Retrying getUserMedia in ${o}ms`), await oh(o);
|
|
7893
7912
|
}
|
|
7894
7913
|
}
|
|
7895
7914
|
return { stream: null, error: n, errorInfo: r };
|
|
@@ -7899,9 +7918,9 @@ class nh {
|
|
|
7899
7918
|
* De-duplicates concurrent loading attempts for the same context.
|
|
7900
7919
|
*/
|
|
7901
7920
|
async ensureWorklet(e) {
|
|
7902
|
-
if (!
|
|
7921
|
+
if (!us(e))
|
|
7903
7922
|
throw new Error("AudioWorklet is not supported in this browser");
|
|
7904
|
-
if (this.workletModuleUrl || (this.workletModuleUrl = URL.createObjectURL(new Blob([
|
|
7923
|
+
if (this.workletModuleUrl || (this.workletModuleUrl = URL.createObjectURL(new Blob([lh()], { type: "text/javascript" }))), this.workletReady && this.workletContext === e)
|
|
7905
7924
|
try {
|
|
7906
7925
|
await this.workletReady;
|
|
7907
7926
|
return;
|
|
@@ -7923,7 +7942,7 @@ class nh {
|
|
|
7923
7942
|
throw new Error("Cannot start audio capture before client is connected");
|
|
7924
7943
|
if (this.client.isWebRtcEnabled)
|
|
7925
7944
|
return this.startMicWebRtc(e);
|
|
7926
|
-
const r =
|
|
7945
|
+
const r = ch(), s = {
|
|
7927
7946
|
captureId: r,
|
|
7928
7947
|
aborted: !1,
|
|
7929
7948
|
stream: null,
|
|
@@ -7966,7 +7985,7 @@ class nh {
|
|
|
7966
7985
|
let I;
|
|
7967
7986
|
if (T === "sab") {
|
|
7968
7987
|
const A = Math.floor(o.sampleRate * 10);
|
|
7969
|
-
I =
|
|
7988
|
+
I = th.getStorageForCapacity(A, Float32Array);
|
|
7970
7989
|
}
|
|
7971
7990
|
const m = "microphone", u = this.ensureWorker(), k = e.onStopped;
|
|
7972
7991
|
u.postMessage({
|
|
@@ -7987,14 +8006,14 @@ class nh {
|
|
|
7987
8006
|
}), await new Promise((A, B) => {
|
|
7988
8007
|
const $ = setTimeout(() => {
|
|
7989
8008
|
u.removeEventListener("message", Re), B(new Error("Audio capture worker start timeout"));
|
|
7990
|
-
}, 1e4), Re = (
|
|
7991
|
-
const de =
|
|
8009
|
+
}, 1e4), Re = (Ss) => {
|
|
8010
|
+
const de = Ss.data;
|
|
7992
8011
|
if (de?.type === "started" && de.captureId === r)
|
|
7993
8012
|
clearTimeout($), u.removeEventListener("message", Re), A();
|
|
7994
8013
|
else if (de?.type === "error" && de.captureId === r) {
|
|
7995
8014
|
clearTimeout($), u.removeEventListener("message", Re);
|
|
7996
|
-
const
|
|
7997
|
-
B(new Error(
|
|
8015
|
+
const gs = de.error;
|
|
8016
|
+
B(new Error(gs?.message ?? "Audio capture failed to start"));
|
|
7998
8017
|
}
|
|
7999
8018
|
};
|
|
8000
8019
|
u.addEventListener("message", Re);
|
|
@@ -8051,7 +8070,7 @@ class nh {
|
|
|
8051
8070
|
E.stopped || u.postMessage({ type: "startSegment", captureId: r });
|
|
8052
8071
|
},
|
|
8053
8072
|
endSegment: () => {
|
|
8054
|
-
E.stopped || (u.postMessage({ type: "endSegment", captureId: r }),
|
|
8073
|
+
E.stopped || (u.postMessage({ type: "endSegment", captureId: r }), ls() && E.stop());
|
|
8055
8074
|
},
|
|
8056
8075
|
stop: async (A = "user") => {
|
|
8057
8076
|
if (!E.stopped) {
|
|
@@ -8101,7 +8120,7 @@ class nh {
|
|
|
8101
8120
|
};
|
|
8102
8121
|
this.setupAudioContextStateListener(o, E), this.setupVisibilityChangeListener(E), this.setupBFCacheHandlers(E), E.healthCheckTimer = setInterval(() => {
|
|
8103
8122
|
this.performHealthCheck(E);
|
|
8104
|
-
},
|
|
8123
|
+
}, sh);
|
|
8105
8124
|
const z = () => {
|
|
8106
8125
|
E.stopped || (R.warn(`Microphone track ended unexpectedly, captureId=${r.substring(0, 8)}`), this.handleRecoverableError(E, new Error("Microphone track ended unexpectedly"), "track-ended"));
|
|
8107
8126
|
};
|
|
@@ -8312,9 +8331,9 @@ class nh {
|
|
|
8312
8331
|
return !n || n.stopped ? !1 : this.attemptResumeAsync(n, "userGesture", !0);
|
|
8313
8332
|
}
|
|
8314
8333
|
}
|
|
8315
|
-
const Ie = 1280, _e = 720,
|
|
8316
|
-
async function
|
|
8317
|
-
const n = e.mime ??
|
|
8334
|
+
const Ie = 1280, _e = 720, dh = 30, ms = "image/jpeg", hh = 0.92;
|
|
8335
|
+
async function fh(t, e) {
|
|
8336
|
+
const n = e.mime ?? ms, r = e.quality ?? hh;
|
|
8318
8337
|
if (typeof OffscreenCanvas < "u" && t instanceof OffscreenCanvas)
|
|
8319
8338
|
try {
|
|
8320
8339
|
return await t.convertToBlob({ type: n, quality: r });
|
|
@@ -8331,7 +8350,7 @@ async function ih(t, e) {
|
|
|
8331
8350
|
);
|
|
8332
8351
|
});
|
|
8333
8352
|
}
|
|
8334
|
-
class
|
|
8353
|
+
class ph {
|
|
8335
8354
|
async acquireCameraStream(e) {
|
|
8336
8355
|
if (!navigator.mediaDevices)
|
|
8337
8356
|
throw new Error("Media devices are not available in this environment");
|
|
@@ -8373,9 +8392,9 @@ class oh {
|
|
|
8373
8392
|
if (!h)
|
|
8374
8393
|
throw new Error("2D canvas context unavailable");
|
|
8375
8394
|
h.drawImage(s, 0, 0, a, c);
|
|
8376
|
-
const f = await
|
|
8395
|
+
const f = await fh(l, e), d = await f.arrayBuffer();
|
|
8377
8396
|
return {
|
|
8378
|
-
mime: f.type || e.mime ||
|
|
8397
|
+
mime: f.type || e.mime || ms,
|
|
8379
8398
|
width: a,
|
|
8380
8399
|
height: c,
|
|
8381
8400
|
data: new Uint8Array(d)
|
|
@@ -8400,27 +8419,27 @@ class oh {
|
|
|
8400
8419
|
}
|
|
8401
8420
|
}
|
|
8402
8421
|
}
|
|
8403
|
-
function
|
|
8422
|
+
function mh(t) {
|
|
8404
8423
|
return new Worker(
|
|
8405
|
-
"" + new URL("assets/video-capture-worker-
|
|
8424
|
+
"" + new URL("assets/video-capture-worker-Dp65P0wr.js", import.meta.url).href,
|
|
8406
8425
|
{
|
|
8407
8426
|
type: "module",
|
|
8408
8427
|
name: t?.name
|
|
8409
8428
|
}
|
|
8410
8429
|
);
|
|
8411
8430
|
}
|
|
8412
|
-
const Ee =
|
|
8413
|
-
function
|
|
8431
|
+
const Ee = L("IkonVideoCapture");
|
|
8432
|
+
function Eh() {
|
|
8414
8433
|
const t = globalThis.crypto;
|
|
8415
8434
|
return t?.randomUUID ? t.randomUUID() : `cap_${Date.now()}_${Math.floor(Math.random() * 1e9)}`;
|
|
8416
8435
|
}
|
|
8417
|
-
function
|
|
8436
|
+
function Ih() {
|
|
8418
8437
|
const t = globalThis.MediaStreamTrackProcessor;
|
|
8419
8438
|
if (!t)
|
|
8420
8439
|
throw new Error("MediaStreamTrackProcessor is not available in this browser");
|
|
8421
8440
|
return t;
|
|
8422
8441
|
}
|
|
8423
|
-
class
|
|
8442
|
+
class _h {
|
|
8424
8443
|
constructor(e) {
|
|
8425
8444
|
this.client = e;
|
|
8426
8445
|
}
|
|
@@ -8436,7 +8455,7 @@ class uh {
|
|
|
8436
8455
|
ensureWorker() {
|
|
8437
8456
|
if (this.worker)
|
|
8438
8457
|
return this.worker;
|
|
8439
|
-
const e = new
|
|
8458
|
+
const e = new mh();
|
|
8440
8459
|
return this.worker = e, e.addEventListener("message", (n) => {
|
|
8441
8460
|
const r = n.data;
|
|
8442
8461
|
if (r?.type === "error") {
|
|
@@ -8463,7 +8482,7 @@ class uh {
|
|
|
8463
8482
|
async getMediaStream(e) {
|
|
8464
8483
|
if (!navigator.mediaDevices)
|
|
8465
8484
|
throw new Error("Media devices are not available in this environment");
|
|
8466
|
-
const n = e.constraints ?? {}, r = e.options?.framerate ??
|
|
8485
|
+
const n = e.constraints ?? {}, r = e.options?.framerate ?? dh;
|
|
8467
8486
|
if (e.sourceType === "screen") {
|
|
8468
8487
|
const a = {
|
|
8469
8488
|
...n,
|
|
@@ -8542,11 +8561,11 @@ class uh {
|
|
|
8542
8561
|
if (this.client.isWebRtcEnabled && e.sourceType === "screen")
|
|
8543
8562
|
return this.startScreenWebRtc(e);
|
|
8544
8563
|
this.ensurePorts();
|
|
8545
|
-
const r =
|
|
8564
|
+
const r = Eh(), s = await this.getMediaStream(e), i = s.getVideoTracks()[0];
|
|
8546
8565
|
if (!i)
|
|
8547
8566
|
throw s.getTracks().forEach((m) => m.stop()), new Error("No video track available");
|
|
8548
8567
|
e.sourceType === "screen" && await new Promise((m) => setTimeout(m, 200));
|
|
8549
|
-
const o = i.getSettings(), a = e.sourceType === "screen" ? o.width ?? Ie : e.options?.width ?? o.width ?? Ie, c = e.sourceType === "screen" ? o.height ?? _e : e.options?.height ?? o.height ?? _e, l =
|
|
8568
|
+
const o = i.getSettings(), a = e.sourceType === "screen" ? o.width ?? Ie : e.options?.width ?? o.width ?? Ie, c = e.sourceType === "screen" ? o.height ?? _e : e.options?.height ?? o.height ?? _e, l = Ih(), f = new l({ track: i }).readable, d = this.allocateTrackId(), p = this.ensureWorker(), _ = e.sourceType, T = e.onStopped;
|
|
8550
8569
|
p.postMessage(
|
|
8551
8570
|
{
|
|
8552
8571
|
type: "start",
|
|
@@ -8662,37 +8681,37 @@ class uh {
|
|
|
8662
8681
|
this.protocolPort?.close(), this.protocolPort = null, this.sendPort?.close(), this.sendPort = null;
|
|
8663
8682
|
}
|
|
8664
8683
|
}
|
|
8665
|
-
class
|
|
8684
|
+
class Th {
|
|
8666
8685
|
audio;
|
|
8667
8686
|
video;
|
|
8668
8687
|
image;
|
|
8669
8688
|
constructor(e, n) {
|
|
8670
|
-
this.audio = new
|
|
8689
|
+
this.audio = new uh(e, n?.audio), this.video = new _h(e), this.image = new ph();
|
|
8671
8690
|
}
|
|
8672
8691
|
dispose() {
|
|
8673
8692
|
this.audio.dispose(), this.video.dispose();
|
|
8674
8693
|
}
|
|
8675
8694
|
}
|
|
8676
|
-
const
|
|
8695
|
+
const Es = L("DebugMode");
|
|
8677
8696
|
let te = !1;
|
|
8678
|
-
function
|
|
8697
|
+
function wh() {
|
|
8679
8698
|
return typeof window > "u" ? !1 : new URLSearchParams(window.location.search).get("debug") === "true";
|
|
8680
8699
|
}
|
|
8681
|
-
function
|
|
8682
|
-
return te =
|
|
8700
|
+
function Sh() {
|
|
8701
|
+
return te = wh(), te && (qr(We.DEBUG), Es.warn("Debug mode enabled")), te;
|
|
8683
8702
|
}
|
|
8684
|
-
function
|
|
8703
|
+
function gh() {
|
|
8685
8704
|
return te;
|
|
8686
8705
|
}
|
|
8687
|
-
function
|
|
8688
|
-
if (!te && (te = !0,
|
|
8706
|
+
function Ch() {
|
|
8707
|
+
if (!te && (te = !0, qr(We.DEBUG), Es.warn("Debug mode enabled"), typeof window < "u")) {
|
|
8689
8708
|
const t = new URL(window.location.href);
|
|
8690
8709
|
t.searchParams.get("debug") !== "true" && (t.searchParams.set("debug", "true"), window.history.replaceState(null, "", t.toString()));
|
|
8691
8710
|
}
|
|
8692
8711
|
}
|
|
8693
|
-
function
|
|
8712
|
+
function yh(t) {
|
|
8694
8713
|
return new Worker(
|
|
8695
|
-
"" + new URL("assets/protocol-worker-
|
|
8714
|
+
"" + new URL("assets/protocol-worker-BIX4IFii.js", import.meta.url).href,
|
|
8696
8715
|
{
|
|
8697
8716
|
type: "module",
|
|
8698
8717
|
name: t?.name
|
|
@@ -8700,12 +8719,12 @@ function Eh(t) {
|
|
|
8700
8719
|
);
|
|
8701
8720
|
}
|
|
8702
8721
|
const Yt = {
|
|
8703
|
-
[
|
|
8704
|
-
[
|
|
8705
|
-
[
|
|
8706
|
-
[
|
|
8722
|
+
[P.WebTransport]: 0,
|
|
8723
|
+
[P.WebSocket]: 1,
|
|
8724
|
+
[P.WebTransportProxy]: 2,
|
|
8725
|
+
[P.WebSocketProxy]: 3
|
|
8707
8726
|
}, je = "ikon_endpoint_type";
|
|
8708
|
-
class
|
|
8727
|
+
class Ah {
|
|
8709
8728
|
isLocal;
|
|
8710
8729
|
workingEndpointType = null;
|
|
8711
8730
|
constructor(e) {
|
|
@@ -8760,17 +8779,17 @@ class Ih {
|
|
|
8760
8779
|
const e = localStorage.getItem(je);
|
|
8761
8780
|
if (e !== null) {
|
|
8762
8781
|
const n = Number(e);
|
|
8763
|
-
|
|
8782
|
+
P[n] !== void 0 && (this.workingEndpointType = n);
|
|
8764
8783
|
}
|
|
8765
8784
|
} catch {
|
|
8766
8785
|
}
|
|
8767
8786
|
}
|
|
8768
8787
|
}
|
|
8769
|
-
const g =
|
|
8770
|
-
function
|
|
8788
|
+
const g = L("IkonClient");
|
|
8789
|
+
function Rh() {
|
|
8771
8790
|
return typeof __IKON_WAIT_FOR_EXTERNAL_CONNECT_URL__ < "u" && __IKON_WAIT_FOR_EXTERNAL_CONNECT_URL__;
|
|
8772
8791
|
}
|
|
8773
|
-
class
|
|
8792
|
+
class zh {
|
|
8774
8793
|
channelManager = null;
|
|
8775
8794
|
protocolWorker = null;
|
|
8776
8795
|
workerManagerState = null;
|
|
@@ -8793,6 +8812,7 @@ class Wh {
|
|
|
8793
8812
|
boundBeforeUnload = null;
|
|
8794
8813
|
boundPageHide = null;
|
|
8795
8814
|
boundVisibilityChange = null;
|
|
8815
|
+
boundPopstate = null;
|
|
8796
8816
|
// GlobalState handling
|
|
8797
8817
|
_globalState = null;
|
|
8798
8818
|
_globalStateReceived = !1;
|
|
@@ -8814,7 +8834,7 @@ class Wh {
|
|
|
8814
8834
|
_webRtcVideoStream = null;
|
|
8815
8835
|
_webRtcScreenStream = null;
|
|
8816
8836
|
// External connect URL mode
|
|
8817
|
-
_waitForExternalConnectUrl =
|
|
8837
|
+
_waitForExternalConnectUrl = Rh();
|
|
8818
8838
|
_externalConnectUrlCleanup = null;
|
|
8819
8839
|
/**
|
|
8820
8840
|
* SDK-provided media pipelines (audio/video).
|
|
@@ -8868,27 +8888,27 @@ class Wh {
|
|
|
8868
8888
|
return this._webRtcSignaling;
|
|
8869
8889
|
}
|
|
8870
8890
|
constructor(e) {
|
|
8871
|
-
this.config = e, this.slowConnectionThresholdMs = e.timeouts?.slowConnectionThresholdMs ??
|
|
8891
|
+
this.config = e, this.slowConnectionThresholdMs = e.timeouts?.slowConnectionThresholdMs ?? _u, this.connectionTimeoutMs = e.timeouts?.connectionTimeoutMs ?? Tu;
|
|
8872
8892
|
const n = [e.local, e.apiKey, e.sessionToken].filter(Boolean).length;
|
|
8873
8893
|
if (n === 0)
|
|
8874
8894
|
throw new Error('IkonClient requires one of: "local", "apiKey", or "sessionToken" configuration');
|
|
8875
8895
|
if (n > 1)
|
|
8876
8896
|
throw new Error('IkonClient accepts only one of: "local", "apiKey", or "sessionToken" configuration');
|
|
8877
|
-
Ke() &&
|
|
8897
|
+
Ke() && Su(), this.endpointSelector = new Ah({
|
|
8878
8898
|
local: e.local
|
|
8879
|
-
}), this._functionRegistry = new
|
|
8899
|
+
}), this._functionRegistry = new wd(), Ke() && !e.disableBrowserFunctions && (this.unregisterBrowserFunctions = Zu(this._functionRegistry), this.unregisterSoundFunctions = Md(this._functionRegistry));
|
|
8880
8900
|
const r = e.audio ? {
|
|
8881
8901
|
performance: e.audio.performance,
|
|
8882
8902
|
background: e.audio.background,
|
|
8883
8903
|
diagnostics: e.audio.diagnostics
|
|
8884
8904
|
} : void 0, s = e.video ? { performance: e.video.performance } : void 0;
|
|
8885
|
-
this._media = new
|
|
8905
|
+
this._media = new eh(this, { audio: r, video: s, mediaSession: e.mediaSession }), e.webRtc?.enabled || (this._media.audio.setEnabled(!0), this._media.video.setEnabled(!0)), Ke() && (this._mediaCapture = new Th(this, {
|
|
8886
8906
|
audio: {
|
|
8887
8907
|
performance: {
|
|
8888
8908
|
preferWebCodecs: e.audio?.performance?.preferWebCodecs
|
|
8889
8909
|
}
|
|
8890
8910
|
}
|
|
8891
|
-
}), this.unregisterMediaCaptureFunctions =
|
|
8911
|
+
}), this.unregisterMediaCaptureFunctions = Rd(this._functionRegistry, this));
|
|
8892
8912
|
}
|
|
8893
8913
|
_lastError = void 0;
|
|
8894
8914
|
/**
|
|
@@ -8933,7 +8953,7 @@ class Wh {
|
|
|
8933
8953
|
if (this.currentState !== "idle")
|
|
8934
8954
|
throw new Error(`Cannot connect: already in state ${this.currentState}`);
|
|
8935
8955
|
this.setupLifecycleHandlers();
|
|
8936
|
-
const e =
|
|
8956
|
+
const e = sd();
|
|
8937
8957
|
if (e) {
|
|
8938
8958
|
g.info("Found external connect URL in query parameter"), await this.executeConnection(() => ge(e, this.abortController.signal));
|
|
8939
8959
|
return;
|
|
@@ -8969,7 +8989,7 @@ class Wh {
|
|
|
8969
8989
|
g.info("Disconnecting from Ikon server"), this.clearTimers(), this.cleanupLifecycleHandlers(), this._externalConnectUrlCleanup && (this._externalConnectUrlCleanup(), this._externalConnectUrlCleanup = null), this._mediaCapture?.dispose(), this.unregisterMediaCaptureFunctions && (this.unregisterMediaCaptureFunctions(), this.unregisterMediaCaptureFunctions = null), this.unregisterSoundFunctions && (this.unregisterSoundFunctions(), this.unregisterSoundFunctions = null), this.unregisterBrowserFunctions && (this.unregisterBrowserFunctions(), this.unregisterBrowserFunctions = null), this.abortController?.abort(), this.abortController = null, this.disconnectProtocol(), this.authResponse = null, this._sessionId = void 0, this._globalState = null, this._globalStateReceived = !1, this._channelsConnected = !1, this._joinedHandled = !1, this._webRtcAudioStream = null, this._webRtcVideoStream = null, this._webRtcScreenStream = null, this.removeWebRtcAudioUnlockHandler(), this._webRtcAudioElement && (this._webRtcAudioElement.srcObject = null, this._webRtcAudioElement.remove(), this._webRtcAudioElement = null), this._webRtcMediaSession.cleanup(), this._functionRegistry.detach(), this.setState("idle");
|
|
8970
8990
|
}
|
|
8971
8991
|
sendActionCall(e, n) {
|
|
8972
|
-
const r =
|
|
8992
|
+
const r = Ps(
|
|
8973
8993
|
{
|
|
8974
8994
|
ActionId: w.fromString(e),
|
|
8975
8995
|
PayloadJson: n ?? "{}"
|
|
@@ -9008,8 +9028,8 @@ class Wh {
|
|
|
9008
9028
|
g.warn("Cannot send UpdateClientContext: not connected");
|
|
9009
9029
|
return;
|
|
9010
9030
|
}
|
|
9011
|
-
const n =
|
|
9012
|
-
|
|
9031
|
+
const n = ll(
|
|
9032
|
+
il({
|
|
9013
9033
|
ViewportWidth: e.viewportWidth ?? 0,
|
|
9014
9034
|
ViewportHeight: e.viewportHeight ?? 0,
|
|
9015
9035
|
Theme: e.theme ?? "",
|
|
@@ -9170,11 +9190,11 @@ class Wh {
|
|
|
9170
9190
|
async authenticate() {
|
|
9171
9191
|
const e = this.abortController?.signal;
|
|
9172
9192
|
if (this.config.local)
|
|
9173
|
-
return
|
|
9193
|
+
return hd(this.config.local, e);
|
|
9174
9194
|
if (this.config.apiKey)
|
|
9175
|
-
return
|
|
9195
|
+
return fd(this.config.apiKey, e);
|
|
9176
9196
|
if (this.config.sessionToken)
|
|
9177
|
-
return
|
|
9197
|
+
return pd(this.config.sessionToken, e);
|
|
9178
9198
|
throw new Error("No connection configuration provided (need local, apiKey, or sessionToken)");
|
|
9179
9199
|
}
|
|
9180
9200
|
/**
|
|
@@ -9188,8 +9208,8 @@ class Wh {
|
|
|
9188
9208
|
this.notifyMessageSubscribers(e, n, r);
|
|
9189
9209
|
return;
|
|
9190
9210
|
}
|
|
9191
|
-
n === S.CORE_GLOBAL_STATE &&
|
|
9192
|
-
this._globalState = s, this._sessionId !== void 0 && this._functionRegistry.syncFromGlobalState(s, this._sessionId), this._globalState.DebugMode &&
|
|
9211
|
+
n === S.CORE_GLOBAL_STATE && Ec(e).then((s) => {
|
|
9212
|
+
this._globalState = s, this._sessionId !== void 0 && this._functionRegistry.syncFromGlobalState(s, this._sessionId), this._globalState.DebugMode && Ch(), gh() && this.protocolWorker && this.protocolWorker.postMessage({ type: "enableDevtools", enabled: !0 }), this._globalStateReceived || (this._globalStateReceived = !0, this.tryHandleJoined());
|
|
9193
9213
|
}).catch((s) => {
|
|
9194
9214
|
g.error("Failed to parse GlobalState:", s);
|
|
9195
9215
|
}), this.notifyMessageSubscribers(e, n, r);
|
|
@@ -9284,7 +9304,7 @@ class Wh {
|
|
|
9284
9304
|
}
|
|
9285
9305
|
let n;
|
|
9286
9306
|
try {
|
|
9287
|
-
n = new
|
|
9307
|
+
n = new yh();
|
|
9288
9308
|
} catch (h) {
|
|
9289
9309
|
g.warn(`Failed to create protocol worker, falling back to main thread: ${h}`), await this.connectProtocolOnMainThread(e);
|
|
9290
9310
|
return;
|
|
@@ -9315,7 +9335,7 @@ class Wh {
|
|
|
9315
9335
|
f(new Error(`Protocol worker failed: ${_.join(" ")}`.trim()));
|
|
9316
9336
|
});
|
|
9317
9337
|
}), s = this.computeOrderedEndpointTypes(e), i = this.config.timeouts?.keepaliveTimeoutMs ?? Ot, o = this.config.timeouts?.reconnectBackoffMs ?? Mt, a = this.config.timeouts?.maxReconnectAttempts ?? Lt;
|
|
9318
|
-
this.updateWorkerInterestMask(),
|
|
9338
|
+
this.updateWorkerInterestMask(), Sh() && n.postMessage({ type: "enableDevtools", enabled: !0 });
|
|
9319
9339
|
const l = this.config.webRtc?.enabled ?? !1;
|
|
9320
9340
|
n.postMessage({
|
|
9321
9341
|
type: "connect",
|
|
@@ -9355,7 +9375,7 @@ class Wh {
|
|
|
9355
9375
|
n === 0 ? this._webRtcVideoStream = s : this._webRtcScreenStream = s;
|
|
9356
9376
|
}
|
|
9357
9377
|
};
|
|
9358
|
-
this._webRtcSignaling = new
|
|
9378
|
+
this._webRtcSignaling = new Iu(e);
|
|
9359
9379
|
try {
|
|
9360
9380
|
await this._webRtcSignaling.connect((n) => {
|
|
9361
9381
|
this.sendProtocolMessage(n);
|
|
@@ -9366,7 +9386,7 @@ class Wh {
|
|
|
9366
9386
|
}
|
|
9367
9387
|
_webRtcAudioElement = null;
|
|
9368
9388
|
_webRtcAudioUnlockHandler = null;
|
|
9369
|
-
_webRtcMediaSession = new
|
|
9389
|
+
_webRtcMediaSession = new ds();
|
|
9370
9390
|
autoPlayWebRtcAudio(e) {
|
|
9371
9391
|
if (typeof document > "u")
|
|
9372
9392
|
return;
|
|
@@ -9403,7 +9423,7 @@ class Wh {
|
|
|
9403
9423
|
async connectProtocolOnMainThread(e) {
|
|
9404
9424
|
this.workerManagerState = null, this.protocolWorker = null;
|
|
9405
9425
|
const n = this.config.webRtc?.enabled ?? !1;
|
|
9406
|
-
g.info(`Connecting on main thread (webRtcEnabled=${n}, entrypoints=${e.length})`), this.channelManager = new
|
|
9426
|
+
g.info(`Connecting on main thread (webRtcEnabled=${n}, entrypoints=${e.length})`), this.channelManager = new au({
|
|
9407
9427
|
sessionId: this._sessionId,
|
|
9408
9428
|
keepaliveTimeoutMs: this.config.timeouts?.keepaliveTimeoutMs ?? Ot,
|
|
9409
9429
|
reconnectBackoffMs: this.config.timeouts?.reconnectBackoffMs ?? Mt,
|
|
@@ -9469,13 +9489,13 @@ class Wh {
|
|
|
9469
9489
|
* Set up browser lifecycle event handlers.
|
|
9470
9490
|
*/
|
|
9471
9491
|
setupLifecycleHandlers() {
|
|
9472
|
-
typeof window > "u" || (this.boundBeforeUnload = () => this.handleBeforeUnload(), window.addEventListener("beforeunload", this.boundBeforeUnload), this.boundPageHide = (e) => this.handlePageHide(e), window.addEventListener("pagehide", this.boundPageHide), this.boundVisibilityChange = () => this.handleVisibilityChange(), document.addEventListener("visibilitychange", this.boundVisibilityChange));
|
|
9492
|
+
typeof window > "u" || (this.boundBeforeUnload = () => this.handleBeforeUnload(), window.addEventListener("beforeunload", this.boundBeforeUnload), this.boundPageHide = (e) => this.handlePageHide(e), window.addEventListener("pagehide", this.boundPageHide), this.boundVisibilityChange = () => this.handleVisibilityChange(), document.addEventListener("visibilitychange", this.boundVisibilityChange), this.boundPopstate = () => this.handlePopstate(), window.addEventListener("popstate", this.boundPopstate));
|
|
9473
9493
|
}
|
|
9474
9494
|
/**
|
|
9475
9495
|
* Clean up browser lifecycle event handlers.
|
|
9476
9496
|
*/
|
|
9477
9497
|
cleanupLifecycleHandlers() {
|
|
9478
|
-
typeof window > "u" || (this.boundBeforeUnload && (window.removeEventListener("beforeunload", this.boundBeforeUnload), this.boundBeforeUnload = null), this.boundPageHide && (window.removeEventListener("pagehide", this.boundPageHide), this.boundPageHide = null), this.boundVisibilityChange && (document.removeEventListener("visibilitychange", this.boundVisibilityChange), this.boundVisibilityChange = null));
|
|
9498
|
+
typeof window > "u" || (this.boundBeforeUnload && (window.removeEventListener("beforeunload", this.boundBeforeUnload), this.boundBeforeUnload = null), this.boundPageHide && (window.removeEventListener("pagehide", this.boundPageHide), this.boundPageHide = null), this.boundVisibilityChange && (document.removeEventListener("visibilitychange", this.boundVisibilityChange), this.boundVisibilityChange = null), this.boundPopstate && (window.removeEventListener("popstate", this.boundPopstate), this.boundPopstate = null));
|
|
9479
9499
|
}
|
|
9480
9500
|
/**
|
|
9481
9501
|
* Handle page beforeunload event.
|
|
@@ -9499,6 +9519,19 @@ class Wh {
|
|
|
9499
9519
|
const e = !document.hidden;
|
|
9500
9520
|
e && this.checkConnectionHealth(), this.config.onVisibilityChange?.(e);
|
|
9501
9521
|
}
|
|
9522
|
+
/**
|
|
9523
|
+
* Handle browser popstate event (back/forward navigation).
|
|
9524
|
+
* Sends the new URL path to the server.
|
|
9525
|
+
*/
|
|
9526
|
+
handlePopstate() {
|
|
9527
|
+
if (!this._sessionId)
|
|
9528
|
+
return;
|
|
9529
|
+
const e = window.location.pathname + window.location.search, n = zs(
|
|
9530
|
+
$s({ Path: e }),
|
|
9531
|
+
this._sessionId
|
|
9532
|
+
);
|
|
9533
|
+
this.sendProtocolMessage(n);
|
|
9534
|
+
}
|
|
9502
9535
|
/**
|
|
9503
9536
|
* Check if the connection is still healthy after page was backgrounded.
|
|
9504
9537
|
* If connection died while backgrounded, trigger reconnection.
|
|
@@ -9591,142 +9624,142 @@ class Wh {
|
|
|
9591
9624
|
}
|
|
9592
9625
|
}
|
|
9593
9626
|
}
|
|
9594
|
-
function
|
|
9627
|
+
function Xh(t) {
|
|
9595
9628
|
return t === "waitingForExternalConnectUrl" || t === "connecting" || t === "connectingSlow" || t === "reconnecting";
|
|
9596
9629
|
}
|
|
9597
|
-
function
|
|
9630
|
+
function Jh(t) {
|
|
9598
9631
|
return t === "connected";
|
|
9599
9632
|
}
|
|
9600
|
-
function
|
|
9633
|
+
function Qh(t) {
|
|
9601
9634
|
return t === "offline" || t === "offlineError" || t === "idle";
|
|
9602
9635
|
}
|
|
9603
|
-
function
|
|
9636
|
+
function Zh(t) {
|
|
9604
9637
|
return t === "offlineError";
|
|
9605
9638
|
}
|
|
9606
|
-
const
|
|
9639
|
+
const Is = /* @__PURE__ */ new Map();
|
|
9607
9640
|
for (const [t, e] of Object.entries(S))
|
|
9608
|
-
typeof e == "number" &&
|
|
9609
|
-
function
|
|
9610
|
-
return
|
|
9641
|
+
typeof e == "number" && Is.set(e, t);
|
|
9642
|
+
function qh(t) {
|
|
9643
|
+
return Is.get(t) ?? `UNKNOWN_${t}`;
|
|
9611
9644
|
}
|
|
9612
|
-
const
|
|
9613
|
-
let V = [], it =
|
|
9614
|
-
function
|
|
9615
|
-
t.level <
|
|
9645
|
+
const _s = 1e3, Ts = We.INFO;
|
|
9646
|
+
let V = [], it = _s, ws = Ts, ot = null;
|
|
9647
|
+
function bh(t) {
|
|
9648
|
+
t.level < ws || (V.push(t), V.length > it && (V = V.slice(-it)));
|
|
9616
9649
|
}
|
|
9617
|
-
function
|
|
9618
|
-
it = t?.maxBufferSize ??
|
|
9650
|
+
function Nh(t) {
|
|
9651
|
+
it = t?.maxBufferSize ?? _s, ws = t?.minLevel ?? Ts, V = [], ql(bh);
|
|
9619
9652
|
}
|
|
9620
|
-
function
|
|
9653
|
+
function ef(t) {
|
|
9621
9654
|
ot = t;
|
|
9622
9655
|
}
|
|
9623
|
-
function
|
|
9656
|
+
function tf() {
|
|
9624
9657
|
return V;
|
|
9625
9658
|
}
|
|
9626
|
-
function
|
|
9659
|
+
function kh() {
|
|
9627
9660
|
const t = V;
|
|
9628
9661
|
return V = [], t;
|
|
9629
9662
|
}
|
|
9630
|
-
function
|
|
9663
|
+
function nf() {
|
|
9631
9664
|
if (!ot || V.length === 0)
|
|
9632
9665
|
return 0;
|
|
9633
|
-
const t =
|
|
9666
|
+
const t = kh();
|
|
9634
9667
|
return ot(t), t.length;
|
|
9635
9668
|
}
|
|
9636
|
-
function
|
|
9669
|
+
function rf() {
|
|
9637
9670
|
V = [];
|
|
9638
9671
|
}
|
|
9639
|
-
function
|
|
9672
|
+
function sf() {
|
|
9640
9673
|
return V.length;
|
|
9641
9674
|
}
|
|
9642
|
-
|
|
9675
|
+
Nh();
|
|
9643
9676
|
export {
|
|
9644
9677
|
D as AuthenticationError,
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9678
|
+
ou as Channel,
|
|
9679
|
+
au as ChannelManager,
|
|
9680
|
+
vh as ChannelNotFoundError,
|
|
9648
9681
|
ee as ClientType,
|
|
9649
9682
|
It as ConnectionError,
|
|
9650
9683
|
ce as ContextType,
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9684
|
+
Ah as EndpointSelector,
|
|
9685
|
+
P as EntrypointType,
|
|
9686
|
+
_d as FunctionCallError,
|
|
9687
|
+
wd as FunctionRegistry,
|
|
9688
|
+
$h as IKON_AUTH_BASE_URL,
|
|
9656
9689
|
Bt as IKON_AUTH_URL_DEV,
|
|
9657
9690
|
Pt as IKON_AUTH_URL_PROD,
|
|
9658
9691
|
nt as IKON_BACKEND_URL_DEV,
|
|
9659
9692
|
tt as IKON_BACKEND_URL_PROD,
|
|
9660
|
-
|
|
9693
|
+
uh as IkonAudioCapture,
|
|
9661
9694
|
At as IkonAudioPlayback,
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9695
|
+
zh as IkonClient,
|
|
9696
|
+
ph as IkonImageCapture,
|
|
9697
|
+
eh as IkonMedia,
|
|
9698
|
+
Th as IkonMediaCapture,
|
|
9699
|
+
_h as IkonVideoCapture,
|
|
9700
|
+
qd as IkonVideoPlayback,
|
|
9668
9701
|
_t as KeepaliveTimeoutError,
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9702
|
+
We as LogLevel,
|
|
9703
|
+
Ql as MaxRetriesExceededError,
|
|
9704
|
+
Oh as NoChannelsError,
|
|
9672
9705
|
S as Opcode,
|
|
9673
|
-
|
|
9674
|
-
|
|
9706
|
+
Zl as ProvisioningTimeoutError,
|
|
9707
|
+
Uh as SpaceNotFoundError,
|
|
9675
9708
|
Z as TransportError,
|
|
9676
9709
|
ue as UserType,
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9710
|
+
Gh as WEBRTC_AUDIO_BITRATE,
|
|
9711
|
+
xh as WEBRTC_AUDIO_CHANNELS,
|
|
9712
|
+
Ph as WEBRTC_AUDIO_CODEC,
|
|
9713
|
+
cu as WEBRTC_AUDIO_JITTER_BUFFER_TARGET_MS,
|
|
9714
|
+
Bh as WEBRTC_AUDIO_SAMPLE_RATE,
|
|
9715
|
+
uu as WEBRTC_BUNDLE_POLICY,
|
|
9716
|
+
fu as WEBRTC_DATA_CHANNEL_LABEL,
|
|
9717
|
+
mu as WEBRTC_DATA_CHANNEL_MAX_RETRANSMITS,
|
|
9718
|
+
pu as WEBRTC_DATA_CHANNEL_ORDERED,
|
|
9719
|
+
hu as WEBRTC_ICE_SERVERS,
|
|
9720
|
+
du as WEBRTC_RTCP_MUX_POLICY,
|
|
9721
|
+
Wh as WEBRTC_VIDEO_CODEC,
|
|
9722
|
+
lu as WEBRTC_VIDEO_MAX_BITRATE,
|
|
9723
|
+
Vh as WEBRTC_VIDEO_MAX_FRAMERATE,
|
|
9724
|
+
Eu as WebRTCConnection,
|
|
9725
|
+
Iu as WebRTCSignaling,
|
|
9726
|
+
Dh as asProtocolMessage,
|
|
9727
|
+
Hh as clearDeviceId,
|
|
9728
|
+
rf as clearLogBuffer,
|
|
9729
|
+
jh as clearSessionParamsFromUrl,
|
|
9730
|
+
L as createLogger,
|
|
9731
|
+
td as deriveAuthUrl,
|
|
9732
|
+
Kh as deriveBackendType,
|
|
9733
|
+
ed as deriveBackendUrl,
|
|
9734
|
+
qu as extractUserIdFromToken,
|
|
9735
|
+
nf as flushLogs,
|
|
9736
|
+
tf as getBufferedLogs,
|
|
9737
|
+
sf as getLogBufferSize,
|
|
9738
|
+
Mh as getLogLevel,
|
|
9739
|
+
Lh as getLogSink,
|
|
9740
|
+
qh as getOpcodeName,
|
|
9708
9741
|
He as getOrCreateDeviceId,
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9742
|
+
Sh as initializeDebugMode,
|
|
9743
|
+
Nh as initializeLogSink,
|
|
9744
|
+
us as isAudioWorkletSupported,
|
|
9712
9745
|
Ke as isBrowserEnvironment,
|
|
9713
9746
|
yt as isCloudEnvironment,
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9747
|
+
Jh as isConnected,
|
|
9748
|
+
Xh as isConnecting,
|
|
9749
|
+
gh as isDebugModeEnabled,
|
|
9750
|
+
Zh as isError,
|
|
9751
|
+
Qh as isOffline,
|
|
9719
9752
|
Me as isSharedArrayBufferSupported,
|
|
9720
|
-
|
|
9721
|
-
|
|
9753
|
+
es as isWebTransportSupported,
|
|
9754
|
+
Yh as parseUrlParams,
|
|
9722
9755
|
Te as readOpcode,
|
|
9723
9756
|
Oe as readOpcodeGroup,
|
|
9724
9757
|
oe as readProtocolMessageHeaders,
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9758
|
+
Zu as registerBrowserFunctions,
|
|
9759
|
+
qr as setLogLevel,
|
|
9760
|
+
ql as setLogSink,
|
|
9761
|
+
ef as setSendLogsCallback,
|
|
9762
|
+
Fh as subscribeToLogEvents,
|
|
9763
|
+
kh as takeBufferedLogs,
|
|
9764
|
+
Id as withResultData
|
|
9732
9765
|
};
|