@ikonai/sdk 1.0.59 → 1.0.60
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-DQyx1JwZ.js → audio-playback-worker-DDytpSb8.js} +147 -147
- package/assets/{protocol-worker-BuKXaXdD.js → protocol-worker-HqYf8zdj.js} +161 -161
- package/assets/{video-capture-worker-CmIFJfiB.js → video-capture-worker-CzxOnQmS.js} +96 -96
- package/assets/{video-playback-worker-DVJEnC1l.js → video-playback-worker-DPsTlza0.js} +44 -44
- package/client/ikon-client-config.d.ts +3 -9
- package/client/ikon-client.d.ts +16 -0
- package/connection/urls.d.ts +7 -0
- package/errors/index.d.ts +17 -0
- package/functions/function-registry.d.ts +2 -1
- package/index.d.ts +6 -3
- package/index.js +3279 -2762
- package/package.json +1 -1
- package/storage.d.ts +1 -1
- package/utils/abort-signal.d.ts +20 -0
- package/utils/browser-support.d.ts +26 -0
- package/utils/query-params.d.ts +16 -0
- package/utils/uuid.d.ts +12 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Ct = {
|
|
2
2
|
Compressed: 8
|
|
3
3
|
};
|
|
4
4
|
function St(t) {
|
|
@@ -10,13 +10,13 @@ function rt(t) {
|
|
|
10
10
|
const e = B(t), r = new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
11
11
|
if (e.length < 27)
|
|
12
12
|
throw new Error("Protocol payload too short");
|
|
13
|
-
const s = r.getUint32(0, !0), n = r.getUint32(4, !0), i = r.getUint32(8, !0), a = r.getUint32(12, !0), _ = r.getUint32(16, !0), E = r.getUint32(20, !0), o = r.getUint8(24),
|
|
13
|
+
const s = r.getUint32(0, !0), n = r.getUint32(4, !0), i = r.getUint32(8, !0), a = r.getUint32(12, !0), _ = r.getUint32(16, !0), E = r.getUint32(20, !0), o = r.getUint8(24), I = r.getUint8(25), A = r.getUint8(26);
|
|
14
14
|
if (27 + E * 4 > e.length)
|
|
15
15
|
throw new Error("Protocol header exceeds payload length");
|
|
16
16
|
const S = [];
|
|
17
|
-
let
|
|
17
|
+
let d = 27;
|
|
18
18
|
for (let L = 0; L < E; L++)
|
|
19
|
-
S.push(r.getUint32(
|
|
19
|
+
S.push(r.getUint32(d, !0)), d += 4;
|
|
20
20
|
return {
|
|
21
21
|
length: s,
|
|
22
22
|
opcode: n,
|
|
@@ -25,8 +25,8 @@ function rt(t) {
|
|
|
25
25
|
sequenceId: _,
|
|
26
26
|
targetIds: S,
|
|
27
27
|
payloadVersion: o,
|
|
28
|
-
payloadType:
|
|
29
|
-
flags:
|
|
28
|
+
payloadType: I,
|
|
29
|
+
flags: A
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
async function p(t, e, r) {
|
|
@@ -37,9 +37,9 @@ async function p(t, e, r) {
|
|
|
37
37
|
throw new Error(`Unexpected payload type ${n.payloadType}`);
|
|
38
38
|
const i = 27 + n.targetIds.length * 4;
|
|
39
39
|
let a = s.subarray(i, n.length);
|
|
40
|
-
return (n.flags &
|
|
40
|
+
return (n.flags & Ct.Compressed) !== 0 && (a = await ct(a)), a;
|
|
41
41
|
}
|
|
42
|
-
async function
|
|
42
|
+
async function ct(t) {
|
|
43
43
|
if (typeof DecompressionStream > "u")
|
|
44
44
|
throw new Error("DecompressionStream not supported");
|
|
45
45
|
const e = new DecompressionStream("gzip"), r = e.writable.getWriter(), s = new Uint8Array(t);
|
|
@@ -47,9 +47,9 @@ async function Ct(t) {
|
|
|
47
47
|
const n = e.readable.getReader(), i = [];
|
|
48
48
|
let a = 0;
|
|
49
49
|
for (; ; ) {
|
|
50
|
-
const { done: o, value:
|
|
50
|
+
const { done: o, value: I } = await n.read();
|
|
51
51
|
if (o) break;
|
|
52
|
-
i.push(
|
|
52
|
+
i.push(I), a += I.length;
|
|
53
53
|
}
|
|
54
54
|
const _ = new Uint8Array(a);
|
|
55
55
|
let E = 0;
|
|
@@ -57,11 +57,11 @@ async function Ct(t) {
|
|
|
57
57
|
_.set(i[o], E), E += i[o].length;
|
|
58
58
|
return _;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var O = /* @__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))(O || {});
|
|
61
61
|
const Rt = 161, Ut = 162;
|
|
62
62
|
new TextEncoder();
|
|
63
63
|
const mt = new TextDecoder("utf-8", { fatal: !0 });
|
|
64
|
-
class
|
|
64
|
+
class w {
|
|
65
65
|
constructor(e, r, s) {
|
|
66
66
|
this.buffer = e, this.version = r, this.offset = s, this.end = e.length - 1;
|
|
67
67
|
}
|
|
@@ -73,31 +73,31 @@ class d {
|
|
|
73
73
|
throw new Error("Teleport payload too short");
|
|
74
74
|
if (r[0] !== Rt || r[r.length - 1] !== Ut)
|
|
75
75
|
throw new Error("Teleport object missing markers");
|
|
76
|
-
const s = { offset: 1 }, n =
|
|
77
|
-
return new
|
|
76
|
+
const s = { offset: 1 }, n = h(r, s, "InvalidLength");
|
|
77
|
+
return new w(r, n, s.offset);
|
|
78
78
|
}
|
|
79
79
|
next() {
|
|
80
80
|
if (this.offset >= this.end)
|
|
81
81
|
return null;
|
|
82
82
|
if (this.offset + 5 > this.buffer.length)
|
|
83
83
|
throw new Error("Teleport object truncated");
|
|
84
|
-
const e =
|
|
84
|
+
const e = Ot(this.buffer, this.offset);
|
|
85
85
|
this.offset += 4;
|
|
86
86
|
const r = this.buffer[this.offset++], s = r >> 4 & 15;
|
|
87
87
|
if ((r & 15) !== 0)
|
|
88
88
|
throw new Error("Teleport field flags must be zero");
|
|
89
|
-
const n =
|
|
89
|
+
const n = y(s);
|
|
90
90
|
let i;
|
|
91
91
|
if (n >= 0)
|
|
92
|
-
|
|
92
|
+
T(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
|
|
93
93
|
else {
|
|
94
|
-
const a = { offset: this.offset }, _ =
|
|
95
|
-
|
|
94
|
+
const a = { offset: this.offset }, _ = h(this.buffer, a, "InvalidLength");
|
|
95
|
+
T(this.buffer, a.offset, _), i = this.buffer.subarray(a.offset, a.offset + _), this.offset = a.offset + _;
|
|
96
96
|
}
|
|
97
97
|
return new Lt(e, s, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
class
|
|
100
|
+
class c {
|
|
101
101
|
constructor(e, r) {
|
|
102
102
|
this.type = e, this.payload = r;
|
|
103
103
|
}
|
|
@@ -171,7 +171,7 @@ class C {
|
|
|
171
171
|
return this.ensureType(
|
|
172
172
|
11
|
|
173
173
|
/* Object */
|
|
174
|
-
),
|
|
174
|
+
), w.create(this.payload);
|
|
175
175
|
}
|
|
176
176
|
asArray() {
|
|
177
177
|
return this.ensureType(
|
|
@@ -187,10 +187,10 @@ class C {
|
|
|
187
187
|
}
|
|
188
188
|
ensureType(e) {
|
|
189
189
|
if (this.type !== e)
|
|
190
|
-
throw new Error(`Teleport value has type ${
|
|
190
|
+
throw new Error(`Teleport value has type ${O[this.type]}, expected ${O[e]}`);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
class Lt extends
|
|
193
|
+
class Lt extends c {
|
|
194
194
|
constructor(e, r, s) {
|
|
195
195
|
super(r, s), this.fieldId = e;
|
|
196
196
|
}
|
|
@@ -211,7 +211,7 @@ class W {
|
|
|
211
211
|
if (this.elementType = r >> 4 & 15, (r & 15) !== 0)
|
|
212
212
|
throw new Error("Array flags must be zero");
|
|
213
213
|
const s = { offset: 1 };
|
|
214
|
-
this.count =
|
|
214
|
+
this.count = h(e, s, "ArrayMalformed"), this.offset = s.offset;
|
|
215
215
|
}
|
|
216
216
|
static create(e) {
|
|
217
217
|
return new W(B(e));
|
|
@@ -235,21 +235,21 @@ class W {
|
|
|
235
235
|
case 4:
|
|
236
236
|
case 6:
|
|
237
237
|
case 14: {
|
|
238
|
-
const e =
|
|
239
|
-
|
|
238
|
+
const e = y(this.elementType);
|
|
239
|
+
T(this.payload, this.offset, e);
|
|
240
240
|
const r = this.payload.subarray(this.offset, this.offset + e);
|
|
241
241
|
return this.offset += e, new F(this.elementType, r);
|
|
242
242
|
}
|
|
243
243
|
case 12:
|
|
244
244
|
case 13: {
|
|
245
|
-
const e = { offset: this.offset }, r =
|
|
246
|
-
|
|
245
|
+
const e = { offset: this.offset }, r = h(this.payload, e, "ArrayMalformed");
|
|
246
|
+
T(this.payload, e.offset, r);
|
|
247
247
|
const s = this.payload.subarray(e.offset, e.offset + r);
|
|
248
248
|
return this.offset = e.offset + r, new F(this.elementType, s);
|
|
249
249
|
}
|
|
250
250
|
case 11: {
|
|
251
|
-
const e = { offset: this.offset }, r =
|
|
252
|
-
|
|
251
|
+
const e = { offset: this.offset }, r = h(this.payload, e, "ArrayMalformed");
|
|
252
|
+
T(this.payload, e.offset, r);
|
|
253
253
|
const s = this.payload.subarray(e.offset, e.offset + r);
|
|
254
254
|
return this.offset = e.offset + r, new F(11, s);
|
|
255
255
|
}
|
|
@@ -262,11 +262,11 @@ class W {
|
|
|
262
262
|
return this.offset += e, new F(10, r);
|
|
263
263
|
}
|
|
264
264
|
default:
|
|
265
|
-
throw new Error(`Unsupported array element type ${
|
|
265
|
+
throw new Error(`Unsupported array element type ${O[this.elementType]}`);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
class F extends
|
|
269
|
+
class F extends c {
|
|
270
270
|
constructor(e, r) {
|
|
271
271
|
super(e, r);
|
|
272
272
|
}
|
|
@@ -285,7 +285,7 @@ class K {
|
|
|
285
285
|
throw new Error("Dictionary key/value flags must be zero");
|
|
286
286
|
st(this.keyType);
|
|
287
287
|
const r = { offset: 2 };
|
|
288
|
-
this.count =
|
|
288
|
+
this.count = h(e, r, "DictMalformed"), this.offset = r.offset;
|
|
289
289
|
}
|
|
290
290
|
static create(e) {
|
|
291
291
|
return new K(B(e));
|
|
@@ -300,17 +300,17 @@ class K {
|
|
|
300
300
|
return this.index++, new Dt(e, r);
|
|
301
301
|
}
|
|
302
302
|
readKey() {
|
|
303
|
-
const e =
|
|
303
|
+
const e = y(this.keyType);
|
|
304
304
|
if (e >= 0) {
|
|
305
|
-
|
|
305
|
+
T(this.payload, this.offset, e);
|
|
306
306
|
const r = this.payload.subarray(this.offset, this.offset + e);
|
|
307
|
-
return this.offset += e, new
|
|
307
|
+
return this.offset += e, new c(this.keyType, r);
|
|
308
308
|
}
|
|
309
309
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
310
|
-
const r = { offset: this.offset }, s =
|
|
311
|
-
|
|
310
|
+
const r = { offset: this.offset }, s = h(this.payload, r, "DictMalformed");
|
|
311
|
+
T(this.payload, r.offset, s);
|
|
312
312
|
const n = this.payload.subarray(r.offset, r.offset + s);
|
|
313
|
-
return this.offset = r.offset + s, new
|
|
313
|
+
return this.offset = r.offset + s, new c(this.keyType, n);
|
|
314
314
|
}
|
|
315
315
|
throw new Error("Unsupported dictionary key type");
|
|
316
316
|
}
|
|
@@ -318,24 +318,24 @@ class K {
|
|
|
318
318
|
switch (this.valueType) {
|
|
319
319
|
case 12:
|
|
320
320
|
case 13: {
|
|
321
|
-
const e = { offset: this.offset }, r =
|
|
322
|
-
|
|
321
|
+
const e = { offset: this.offset }, r = h(this.payload, e, "DictMalformed");
|
|
322
|
+
T(this.payload, e.offset, r);
|
|
323
323
|
const s = this.payload.subarray(e.offset, e.offset + r);
|
|
324
|
-
return this.offset = e.offset + r, new
|
|
324
|
+
return this.offset = e.offset + r, new c(this.valueType, s);
|
|
325
325
|
}
|
|
326
326
|
case 11: {
|
|
327
|
-
const e = { offset: this.offset }, r =
|
|
328
|
-
|
|
327
|
+
const e = { offset: this.offset }, r = h(this.payload, e, "DictMalformed");
|
|
328
|
+
T(this.payload, e.offset, r);
|
|
329
329
|
const s = this.payload.subarray(e.offset, e.offset + r);
|
|
330
|
-
return this.offset = e.offset + r, new
|
|
330
|
+
return this.offset = e.offset + r, new c(11, s);
|
|
331
331
|
}
|
|
332
332
|
case 9: {
|
|
333
333
|
const e = z(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + e);
|
|
334
|
-
return this.offset += e, new
|
|
334
|
+
return this.offset += e, new c(9, r);
|
|
335
335
|
}
|
|
336
336
|
case 10: {
|
|
337
337
|
const e = X(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + e);
|
|
338
|
-
return this.offset += e, new
|
|
338
|
+
return this.offset += e, new c(10, r);
|
|
339
339
|
}
|
|
340
340
|
case 3:
|
|
341
341
|
case 5:
|
|
@@ -346,13 +346,13 @@ class K {
|
|
|
346
346
|
case 6:
|
|
347
347
|
case 14:
|
|
348
348
|
case 1: {
|
|
349
|
-
const e =
|
|
350
|
-
|
|
349
|
+
const e = y(this.valueType);
|
|
350
|
+
T(this.payload, this.offset, e);
|
|
351
351
|
const r = this.payload.subarray(this.offset, this.offset + e);
|
|
352
|
-
return this.offset += e, new
|
|
352
|
+
return this.offset += e, new c(this.valueType, r);
|
|
353
353
|
}
|
|
354
354
|
default:
|
|
355
|
-
throw new Error(`Unsupported dictionary value type ${
|
|
355
|
+
throw new Error(`Unsupported dictionary value type ${O[this.valueType]}`);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
}
|
|
@@ -431,7 +431,7 @@ class l {
|
|
|
431
431
|
return (e >>> 0).toString(16).padStart(r, "0");
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function h(t, e, r) {
|
|
435
435
|
if (e.offset >= t.length)
|
|
436
436
|
throw new Error(r);
|
|
437
437
|
let s = 0, n = 0, i = 0;
|
|
@@ -450,7 +450,7 @@ function T(t, e, r) {
|
|
|
450
450
|
function Pt(t) {
|
|
451
451
|
return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function y(t) {
|
|
454
454
|
switch (t) {
|
|
455
455
|
case 3:
|
|
456
456
|
case 5:
|
|
@@ -474,11 +474,11 @@ function st(t) {
|
|
|
474
474
|
if (t === 9 || t === 11 || t === 10 || t === 1)
|
|
475
475
|
throw new Error("Dictionary keys must be primitive Teleport types");
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function T(t, e, r) {
|
|
478
478
|
if (e < 0 || r < 0 || e + r > t.length)
|
|
479
479
|
throw new Error("Teleport payload exceeds bounds");
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Ot(t, e) {
|
|
482
482
|
return (t[e] | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;
|
|
483
483
|
}
|
|
484
484
|
function z(t, e) {
|
|
@@ -487,10 +487,10 @@ function z(t, e) {
|
|
|
487
487
|
const r = t[e], s = r >> 4 & 15;
|
|
488
488
|
if ((r & 15) !== 0)
|
|
489
489
|
throw new Error("Array flags must be zero");
|
|
490
|
-
const n = { offset: e + 1 }, i =
|
|
490
|
+
const n = { offset: e + 1 }, i = h(t, n, "ArrayMalformed"), a = y(s);
|
|
491
491
|
if (a >= 0) {
|
|
492
492
|
const E = a * i;
|
|
493
|
-
return
|
|
493
|
+
return T(t, n.offset, E), n.offset + E - e;
|
|
494
494
|
}
|
|
495
495
|
let _ = n.offset;
|
|
496
496
|
for (let E = 0; E < i; E++)
|
|
@@ -504,32 +504,32 @@ function X(t, e) {
|
|
|
504
504
|
if ((t[e] & 15) !== 0 || (t[e + 1] & 15) !== 0)
|
|
505
505
|
throw new Error("Dictionary key/value flags must be zero");
|
|
506
506
|
st(r);
|
|
507
|
-
const n = { offset: e + 2 }, i =
|
|
507
|
+
const n = { offset: e + 2 }, i = h(t, n, "DictMalformed");
|
|
508
508
|
let a = n.offset;
|
|
509
509
|
for (let _ = 0; _ < i; _++)
|
|
510
510
|
a = x(r, t, a, "DictMalformed"), a = x(s, t, a, "DictMalformed");
|
|
511
511
|
return a - e;
|
|
512
512
|
}
|
|
513
513
|
function x(t, e, r, s) {
|
|
514
|
-
const n =
|
|
514
|
+
const n = y(t);
|
|
515
515
|
if (n >= 0)
|
|
516
|
-
return
|
|
516
|
+
return T(e, r, n), r + n;
|
|
517
517
|
switch (t) {
|
|
518
518
|
case 12:
|
|
519
519
|
case 13: {
|
|
520
|
-
const i = { offset: r }, a =
|
|
521
|
-
return
|
|
520
|
+
const i = { offset: r }, a = h(e, i, s);
|
|
521
|
+
return T(e, i.offset, a), i.offset + a;
|
|
522
522
|
}
|
|
523
523
|
case 11: {
|
|
524
|
-
const i = { offset: r }, a =
|
|
525
|
-
return
|
|
524
|
+
const i = { offset: r }, a = h(e, i, s);
|
|
525
|
+
return T(e, i.offset, a), i.offset + a;
|
|
526
526
|
}
|
|
527
527
|
case 9:
|
|
528
528
|
return r + z(e, r);
|
|
529
529
|
case 10:
|
|
530
530
|
return r + X(e, r);
|
|
531
531
|
default:
|
|
532
|
-
throw new Error(`Unsupported Teleport type ${
|
|
532
|
+
throw new Error(`Unsupported Teleport type ${O[t]}`);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
function Q(t) {
|
|
@@ -538,8 +538,8 @@ function Q(t) {
|
|
|
538
538
|
function B(t) {
|
|
539
539
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
540
540
|
}
|
|
541
|
-
var N = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(N || {}), g = /* @__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_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD = 65560] = "CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD", 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.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", 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.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_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_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.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", 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.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", 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.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(g || {});
|
|
542
|
-
const
|
|
541
|
+
var N = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(N || {}), g = /* @__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_RESET_IDLE = 65560] = "CORE_RESET_IDLE", t[t.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", 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.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", t[t.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", t[t.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", t[t.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", 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.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_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_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.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", t[t.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", 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.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", 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.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(g || {});
|
|
542
|
+
const yt = 4194309, wt = 205938238, dt = 1594075008, Ft = 2026534360, Mt = 3409001585, gt = 3466650495, Bt = 4007456593, bt = 4017217601, Gt = 4065417427, Vt = 4086360332;
|
|
543
543
|
function vt(t) {
|
|
544
544
|
const e = {};
|
|
545
545
|
return nt(e), e;
|
|
@@ -548,7 +548,7 @@ function nt(t) {
|
|
|
548
548
|
return t.Samples = new Uint8Array(0), t.Epoch = 0, t.Sequence = 0, t.FrameSizeInInterleavedSamples = 0, t.TimeStampInInterleavedSamples = 0n, t.IsFirst = !1, t.IsLast = !1, t.AverageVolume = 0, t.AudioEventEstimatedDuration = 0, t;
|
|
549
549
|
}
|
|
550
550
|
function kt(t, e) {
|
|
551
|
-
const r =
|
|
551
|
+
const r = w.create(t);
|
|
552
552
|
return Ht(r, e);
|
|
553
553
|
}
|
|
554
554
|
function Ht(t, e) {
|
|
@@ -559,12 +559,12 @@ function Yt(t, e) {
|
|
|
559
559
|
let r;
|
|
560
560
|
for (; (r = t.next()) !== null; )
|
|
561
561
|
switch (r.fieldId) {
|
|
562
|
-
case
|
|
562
|
+
case wt: {
|
|
563
563
|
if (r.isNull) throw new Error();
|
|
564
564
|
e.AverageVolume = r.asFloat32();
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
|
-
case
|
|
567
|
+
case dt: {
|
|
568
568
|
if (r.isNull) throw new Error();
|
|
569
569
|
e.IsFirst = r.asBool();
|
|
570
570
|
break;
|
|
@@ -607,7 +607,7 @@ function Yt(t, e) {
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
async function xt(t, e) {
|
|
610
|
-
const r = await p(t,
|
|
610
|
+
const r = await p(t, yt);
|
|
611
611
|
return kt(r, e);
|
|
612
612
|
}
|
|
613
613
|
const pt = 4194310, Wt = 717315017, Kt = 2026534360, zt = 4007456593, Xt = 4065417427, $t = 4086360332;
|
|
@@ -619,14 +619,14 @@ function at(t) {
|
|
|
619
619
|
return t.Epoch = 0, t.Sequence = 0, t.FrameSizeInInterleavedSamples = 0, t.TimeStampInInterleavedSamples = 0n, t.ShapeSetValues = [], t;
|
|
620
620
|
}
|
|
621
621
|
function Qt(t, e) {
|
|
622
|
-
const r =
|
|
623
|
-
return
|
|
622
|
+
const r = w.create(t);
|
|
623
|
+
return Zt(r, e);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Zt(t, e) {
|
|
626
626
|
const r = e ?? jt();
|
|
627
|
-
return at(r),
|
|
627
|
+
return at(r), qt(t, r), r;
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function qt(t, e) {
|
|
630
630
|
let r;
|
|
631
631
|
for (; (r = t.next()) !== null; )
|
|
632
632
|
switch (r.fieldId) {
|
|
@@ -703,7 +703,7 @@ function ie(t) {
|
|
|
703
703
|
e.push(r.asFloat32());
|
|
704
704
|
return e;
|
|
705
705
|
}
|
|
706
|
-
const _e = 4194305, Ee = 161083277, oe = 265814330,
|
|
706
|
+
const _e = 4194305, Ee = 161083277, oe = 265814330, Ie = 1368629611, Ae = 2431514951, le = 2514959030, ue = 2745379226, Te = 3282782683, he = 3284746250, fe = 4101844078;
|
|
707
707
|
function Ne(t) {
|
|
708
708
|
const e = {};
|
|
709
709
|
return _t(e), e;
|
|
@@ -711,15 +711,15 @@ function Ne(t) {
|
|
|
711
711
|
function _t(t) {
|
|
712
712
|
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = N.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t.CorrelationId = void 0, t;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
const r =
|
|
714
|
+
function Ce(t, e) {
|
|
715
|
+
const r = w.create(t);
|
|
716
716
|
return Se(r, e);
|
|
717
717
|
}
|
|
718
718
|
function Se(t, e) {
|
|
719
719
|
const r = e ?? Ne();
|
|
720
|
-
return _t(r),
|
|
720
|
+
return _t(r), ce(t, r), r;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function ce(t, e) {
|
|
723
723
|
let r;
|
|
724
724
|
for (; (r = t.next()) !== null; )
|
|
725
725
|
switch (r.fieldId) {
|
|
@@ -736,12 +736,12 @@ function Ce(t, e) {
|
|
|
736
736
|
e.ShapeSets = Ue(r.asArray());
|
|
737
737
|
break;
|
|
738
738
|
}
|
|
739
|
-
case
|
|
739
|
+
case Ie: {
|
|
740
740
|
if (r.isNull) throw new Error();
|
|
741
741
|
e.Description = r.asString();
|
|
742
742
|
break;
|
|
743
743
|
}
|
|
744
|
-
case
|
|
744
|
+
case Ae: {
|
|
745
745
|
if (r.isNull) throw new Error();
|
|
746
746
|
e.Channels = r.asInt32();
|
|
747
747
|
break;
|
|
@@ -759,12 +759,12 @@ function Ce(t, e) {
|
|
|
759
759
|
e.CodecDetails = r.asString();
|
|
760
760
|
break;
|
|
761
761
|
}
|
|
762
|
-
case
|
|
762
|
+
case Te: {
|
|
763
763
|
if (r.isNull) throw new Error();
|
|
764
764
|
e.SourceType = r.asString();
|
|
765
765
|
break;
|
|
766
766
|
}
|
|
767
|
-
case
|
|
767
|
+
case he: {
|
|
768
768
|
if (r.isNull) throw new Error();
|
|
769
769
|
e.Codec = r.asInt32();
|
|
770
770
|
break;
|
|
@@ -778,13 +778,13 @@ function Ce(t, e) {
|
|
|
778
778
|
}
|
|
779
779
|
async function Re(t, e) {
|
|
780
780
|
const r = await p(t, _e);
|
|
781
|
-
return
|
|
781
|
+
return Ce(r, e);
|
|
782
782
|
}
|
|
783
783
|
function Ue(t) {
|
|
784
784
|
const e = [];
|
|
785
785
|
let r;
|
|
786
786
|
for (; (r = t.next()) !== null; )
|
|
787
|
-
e.push(
|
|
787
|
+
e.push(Oe(r.asObject()));
|
|
788
788
|
return e;
|
|
789
789
|
}
|
|
790
790
|
const me = 1107713536, Le = 1154362099, De = 1185721362;
|
|
@@ -795,11 +795,11 @@ function Pe(t) {
|
|
|
795
795
|
function Et(t) {
|
|
796
796
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Oe(t, e) {
|
|
799
799
|
const r = e ?? Pe();
|
|
800
|
-
return Et(r),
|
|
800
|
+
return Et(r), ye(t, r), r;
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function ye(t, e) {
|
|
803
803
|
let r;
|
|
804
804
|
for (; (r = t.next()) !== null; )
|
|
805
805
|
switch (r.fieldId) {
|
|
@@ -815,19 +815,19 @@ function Oe(t, e) {
|
|
|
815
815
|
}
|
|
816
816
|
case De: {
|
|
817
817
|
if (r.isNull) throw new Error();
|
|
818
|
-
e.ShapeNames =
|
|
818
|
+
e.ShapeNames = we(r.asArray());
|
|
819
819
|
break;
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function we(t) {
|
|
824
824
|
const e = [];
|
|
825
825
|
let r;
|
|
826
826
|
for (; (r = t.next()) !== null; )
|
|
827
827
|
e.push(r.asString());
|
|
828
828
|
return e;
|
|
829
829
|
}
|
|
830
|
-
class
|
|
830
|
+
class Z {
|
|
831
831
|
static getStorageForCapacity(e, r) {
|
|
832
832
|
const s = Int32Array.BYTES_PER_ELEMENT * 2, n = r.BYTES_PER_ELEMENT * e;
|
|
833
833
|
return new SharedArrayBuffer(s + n);
|
|
@@ -881,7 +881,7 @@ class q {
|
|
|
881
881
|
return s = (s + r) % this.capacity, Atomics.store(this.readWrite, 0, s), r;
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
let
|
|
884
|
+
let de = 1;
|
|
885
885
|
const Fe = /* @__PURE__ */ new Map(), Me = {
|
|
886
886
|
0: "DEBUG",
|
|
887
887
|
1: "INFO",
|
|
@@ -909,7 +909,7 @@ function G(t, e, r, s) {
|
|
|
909
909
|
} catch {
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
|
-
if (
|
|
912
|
+
if (de <= t) {
|
|
913
913
|
const _ = ge(e, r);
|
|
914
914
|
switch (t) {
|
|
915
915
|
case 0:
|
|
@@ -958,10 +958,10 @@ function be() {
|
|
|
958
958
|
}
|
|
959
959
|
return !0;
|
|
960
960
|
}
|
|
961
|
-
const
|
|
961
|
+
const It = 48e3, At = 2, Ge = 1500, Ve = 10, q = 80, ve = 50, J = 64, $ = ot("AudioPlaybackWorker"), m = (t, e) => {
|
|
962
962
|
self.postMessage(t, e ?? []);
|
|
963
963
|
}, ke = be();
|
|
964
|
-
let v = "pcm", lt = !0, ut = !1, R =
|
|
964
|
+
let v = "pcm", lt = !0, ut = !1, R = It, C = At, P = null;
|
|
965
965
|
function D(t, e) {
|
|
966
966
|
const r = t instanceof Error ? t : new Error(String(t));
|
|
967
967
|
m({ type: "error", error: { name: r.name, message: r.message, stack: r.stack }, streamId: e });
|
|
@@ -983,7 +983,7 @@ class He {
|
|
|
983
983
|
pcmBatchOffset = 0;
|
|
984
984
|
lastPcmFlushTimeMs = 0;
|
|
985
985
|
constructor(e) {
|
|
986
|
-
this.streamId = e, this.mode = "pcm", this.outputSampleRate = R, this.outputChannels =
|
|
986
|
+
this.streamId = e, this.mode = "pcm", this.outputSampleRate = R, this.outputChannels = C, this.rebind(v);
|
|
987
987
|
}
|
|
988
988
|
close() {
|
|
989
989
|
this.closed = !0, this.pcmBatchBuffer = null, this.pcmBatchOffset = 0, this.ring = null, this.sab = void 0;
|
|
@@ -994,7 +994,7 @@ class He {
|
|
|
994
994
|
rebind(e) {
|
|
995
995
|
if (!this.closed) {
|
|
996
996
|
if (this.mode = e, e === "sab" && ke) {
|
|
997
|
-
const r = Math.floor(Ge * this.outputSampleRate * this.outputChannels / 1e3), s =
|
|
997
|
+
const r = Math.floor(Ge * this.outputSampleRate * this.outputChannels / 1e3), s = Z.getStorageForCapacity(r, Float32Array), n = new Z(s, Float32Array);
|
|
998
998
|
n.flush(), this.sab = s, this.ring = n;
|
|
999
999
|
return;
|
|
1000
1000
|
}
|
|
@@ -1004,7 +1004,7 @@ class He {
|
|
|
1004
1004
|
flushPendingPcm(e) {
|
|
1005
1005
|
if (this.closed || this.mode !== "pcm" || this.pcmBatchOffset <= 0)
|
|
1006
1006
|
return;
|
|
1007
|
-
const r = performance.now(), s = Math.max(1, Math.round(this.outputSampleRate * this.outputChannels *
|
|
1007
|
+
const r = performance.now(), s = Math.max(1, Math.round(this.outputSampleRate * this.outputChannels * q / 1e3));
|
|
1008
1008
|
if (!(e || this.pcmBatchOffset >= s || this.lastPcmFlushTimeMs > 0 && r - this.lastPcmFlushTimeMs >= ve))
|
|
1009
1009
|
return;
|
|
1010
1010
|
const i = new Float32Array(this.pcmBatchOffset);
|
|
@@ -1027,7 +1027,7 @@ class He {
|
|
|
1027
1027
|
a.length > E && (a = a.subarray(a.length - E)), n.push(a);
|
|
1028
1028
|
return;
|
|
1029
1029
|
}
|
|
1030
|
-
const r = Math.max(1, Math.round(this.outputSampleRate * this.outputChannels *
|
|
1030
|
+
const r = Math.max(1, Math.round(this.outputSampleRate * this.outputChannels * q / 1e3)), s = this.pcmBatchOffset + e.length;
|
|
1031
1031
|
if (!this.pcmBatchBuffer || this.pcmBatchBuffer.length < s) {
|
|
1032
1032
|
const n = Math.max(s, r * 2), i = new Float32Array(n);
|
|
1033
1033
|
this.pcmBatchBuffer && this.pcmBatchOffset > 0 && i.set(this.pcmBatchBuffer.subarray(0, this.pcmBatchOffset)), this.pcmBatchBuffer = i;
|
|
@@ -1087,38 +1087,38 @@ class j {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
convertAudioData(e) {
|
|
1089
1089
|
const r = e.numberOfFrames, s = e.numberOfChannels, n = e.format, i = typeof n == "string" && n.includes("planar"), a = "f32-planar", _ = "f32", E = () => {
|
|
1090
|
-
const
|
|
1090
|
+
const A = new Array(s);
|
|
1091
1091
|
for (let u = 0; u < s; u++) {
|
|
1092
1092
|
const S = new Float32Array(r);
|
|
1093
|
-
e.copyTo(S, { planeIndex: u, format: a }),
|
|
1093
|
+
e.copyTo(S, { planeIndex: u, format: a }), A[u] = S;
|
|
1094
1094
|
}
|
|
1095
|
-
return er(
|
|
1095
|
+
return er(A, r);
|
|
1096
1096
|
}, o = () => {
|
|
1097
|
-
const
|
|
1098
|
-
return e.copyTo(
|
|
1097
|
+
const A = new Float32Array(r * s);
|
|
1098
|
+
return e.copyTo(A, { planeIndex: 0, format: _ }), A;
|
|
1099
1099
|
};
|
|
1100
|
-
let
|
|
1100
|
+
let I;
|
|
1101
1101
|
if (i)
|
|
1102
1102
|
try {
|
|
1103
|
-
|
|
1104
|
-
} catch (
|
|
1105
|
-
$.debug(`Failed to read planar audio data, falling back to interleaved copy: ${
|
|
1103
|
+
I = E();
|
|
1104
|
+
} catch (A) {
|
|
1105
|
+
$.debug(`Failed to read planar audio data, falling back to interleaved copy: ${A}`), I = o();
|
|
1106
1106
|
}
|
|
1107
1107
|
else
|
|
1108
|
-
|
|
1109
|
-
return
|
|
1108
|
+
I = o();
|
|
1109
|
+
return I;
|
|
1110
1110
|
}
|
|
1111
1111
|
convertPcmBuffer(e, r, s) {
|
|
1112
1112
|
if (e.length === 0)
|
|
1113
1113
|
return e;
|
|
1114
1114
|
let n = e, i = e.length, a = r;
|
|
1115
1115
|
if (s !== R) {
|
|
1116
|
-
const _ = i / a, o = Math.max(1, Math.round(_ * R / s)) * a,
|
|
1117
|
-
i = sr(n,
|
|
1116
|
+
const _ = i / a, o = Math.max(1, Math.round(_ * R / s)) * a, I = this.getResampleBuffer(o);
|
|
1117
|
+
i = sr(n, I, a, s, R), n = I;
|
|
1118
1118
|
}
|
|
1119
|
-
if (a !==
|
|
1120
|
-
const E = i / a *
|
|
1121
|
-
i = nr(n.subarray(0, i), o, a,
|
|
1119
|
+
if (a !== C) {
|
|
1120
|
+
const E = i / a * C, o = this.getRemixBuffer(E);
|
|
1121
|
+
i = nr(n.subarray(0, i), o, a, C), n = o, a = C;
|
|
1122
1122
|
}
|
|
1123
1123
|
return n.subarray(0, i);
|
|
1124
1124
|
}
|
|
@@ -1231,16 +1231,16 @@ class Ke extends j {
|
|
|
1231
1231
|
return;
|
|
1232
1232
|
const _ = i * a, E = this.getInterleavedBuffer(_);
|
|
1233
1233
|
if (a === 2) {
|
|
1234
|
-
const o = n[0],
|
|
1235
|
-
for (let
|
|
1236
|
-
E[u++] = o[
|
|
1234
|
+
const o = n[0], I = n[1];
|
|
1235
|
+
for (let A = 0, u = 0; A < i; A++)
|
|
1236
|
+
E[u++] = o[A], E[u++] = I[A];
|
|
1237
1237
|
} else if (a === 1)
|
|
1238
1238
|
E.set(n[0].subarray(0, i));
|
|
1239
1239
|
else {
|
|
1240
1240
|
let o = 0;
|
|
1241
|
-
for (let
|
|
1242
|
-
for (let
|
|
1243
|
-
E[o++] = n[
|
|
1241
|
+
for (let I = 0; I < i; I++)
|
|
1242
|
+
for (let A = 0; A < a; A++)
|
|
1243
|
+
E[o++] = n[A][I];
|
|
1244
1244
|
}
|
|
1245
1245
|
this.writeConvertedPcm(E.subarray(0, _), a, this.decoderSampleRate), e.isLast && this.reset();
|
|
1246
1246
|
} catch (r) {
|
|
@@ -1317,9 +1317,9 @@ function Xe(t) {
|
|
|
1317
1317
|
return;
|
|
1318
1318
|
const e = t.pendingFrames.splice(0);
|
|
1319
1319
|
for (const r of e)
|
|
1320
|
-
|
|
1320
|
+
Tt(t, r);
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function Tt(t, e) {
|
|
1323
1323
|
if (t.closed || !t.decoder)
|
|
1324
1324
|
return;
|
|
1325
1325
|
const r = e.Epoch, s = Number(e.TimeStampInInterleavedSamples), n = e.FrameSizeInInterleavedSamples;
|
|
@@ -1334,7 +1334,7 @@ function ht(t, e) {
|
|
|
1334
1334
|
t.jitterMs = t.jitterMs + (S - t.jitterMs) / Ve;
|
|
1335
1335
|
}
|
|
1336
1336
|
t.lastArrivalTimeMs = i;
|
|
1337
|
-
const a = t.inputSampleRate * t.inputChannels, _ = R *
|
|
1337
|
+
const a = t.inputSampleRate * t.inputChannels, _ = R * C, E = Math.round(s * _ / a), o = Math.round(n * _ / a), I = Math.round(s * 1e6 / a), A = Math.round(n * 1e6 / a);
|
|
1338
1338
|
m({
|
|
1339
1339
|
type: "frame",
|
|
1340
1340
|
streamId: t.streamId,
|
|
@@ -1348,8 +1348,8 @@ function ht(t, e) {
|
|
|
1348
1348
|
data: e.Samples,
|
|
1349
1349
|
isFirst: e.IsFirst,
|
|
1350
1350
|
isLast: e.IsLast,
|
|
1351
|
-
timestampUs:
|
|
1352
|
-
durationUs:
|
|
1351
|
+
timestampUs: I,
|
|
1352
|
+
durationUs: A
|
|
1353
1353
|
});
|
|
1354
1354
|
}
|
|
1355
1355
|
async function $e(t) {
|
|
@@ -1414,7 +1414,7 @@ function Qe(t) {
|
|
|
1414
1414
|
r.decoder = null, f.delete(e), m({ type: "streamEnd", streamId: e });
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
|
-
async function
|
|
1417
|
+
async function Ze(t) {
|
|
1418
1418
|
const e = k(t), r = f.get(e);
|
|
1419
1419
|
if (!r || r.closed)
|
|
1420
1420
|
return;
|
|
@@ -1430,13 +1430,13 @@ async function qe(t) {
|
|
|
1430
1430
|
}));
|
|
1431
1431
|
return;
|
|
1432
1432
|
}
|
|
1433
|
-
|
|
1433
|
+
Tt(r, s);
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
|
-
async function
|
|
1436
|
+
async function qe(t) {
|
|
1437
1437
|
const e = k(t), r = f.get(e);
|
|
1438
1438
|
if (!r || r.closed) return;
|
|
1439
|
-
const s = await Jt(t), n = r.inputSampleRate * r.inputChannels, i = R *
|
|
1439
|
+
const s = await Jt(t), n = r.inputSampleRate * r.inputChannels, i = R * C;
|
|
1440
1440
|
m({
|
|
1441
1441
|
type: "shapeFrame",
|
|
1442
1442
|
streamId: e,
|
|
@@ -1460,16 +1460,16 @@ function Je(t) {
|
|
|
1460
1460
|
Qe(t);
|
|
1461
1461
|
return;
|
|
1462
1462
|
case g.AUDIO_FRAME2:
|
|
1463
|
-
|
|
1463
|
+
Ze(t);
|
|
1464
1464
|
return;
|
|
1465
1465
|
case g.AUDIO_SHAPE_FRAME:
|
|
1466
|
-
|
|
1466
|
+
qe(t);
|
|
1467
1467
|
return;
|
|
1468
1468
|
default:
|
|
1469
1469
|
return;
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
|
-
function
|
|
1472
|
+
function ht() {
|
|
1473
1473
|
if (P) {
|
|
1474
1474
|
try {
|
|
1475
1475
|
P.close();
|
|
@@ -1479,7 +1479,7 @@ function Tt() {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
1481
|
function tr() {
|
|
1482
|
-
|
|
1482
|
+
ht();
|
|
1483
1483
|
for (const t of f.values()) {
|
|
1484
1484
|
try {
|
|
1485
1485
|
t.sink.drainPcm(), t.sink.close();
|
|
@@ -1495,20 +1495,20 @@ function tr() {
|
|
|
1495
1495
|
self.addEventListener("message", (t) => {
|
|
1496
1496
|
const e = t.data;
|
|
1497
1497
|
if (e.type === "configure") {
|
|
1498
|
-
v = e.transport, lt = e.preferWebCodecs ?? !0, ut = e.webRtcEnabled ?? !1, R = Number.isFinite(e.outputSampleRate) && e.outputSampleRate > 0 ? e.outputSampleRate :
|
|
1498
|
+
v = e.transport, lt = e.preferWebCodecs ?? !0, ut = e.webRtcEnabled ?? !1, R = Number.isFinite(e.outputSampleRate) && e.outputSampleRate > 0 ? e.outputSampleRate : It, C = Number.isFinite(e.outputChannels) && e.outputChannels > 0 ? e.outputChannels : At;
|
|
1499
1499
|
return;
|
|
1500
1500
|
}
|
|
1501
1501
|
if (e.type === "attachProtocolPort") {
|
|
1502
|
-
|
|
1502
|
+
ht(), P = e.port, P.addEventListener("message", (r) => {
|
|
1503
1503
|
const s = r.data;
|
|
1504
1504
|
s?.type === "protocol" && s.message instanceof ArrayBuffer && Je(new Uint8Array(s.message));
|
|
1505
1505
|
}), P.start?.();
|
|
1506
1506
|
return;
|
|
1507
1507
|
}
|
|
1508
1508
|
if (e.type === "rebind") {
|
|
1509
|
-
v = e.transport, typeof e.outputSampleRate == "number" && Number.isFinite(e.outputSampleRate) && e.outputSampleRate > 0 && (R = e.outputSampleRate), typeof e.outputChannels == "number" && Number.isFinite(e.outputChannels) && e.outputChannels > 0 && (
|
|
1509
|
+
v = e.transport, typeof e.outputSampleRate == "number" && Number.isFinite(e.outputSampleRate) && e.outputSampleRate > 0 && (R = e.outputSampleRate), typeof e.outputChannels == "number" && Number.isFinite(e.outputChannels) && e.outputChannels > 0 && (C = e.outputChannels);
|
|
1510
1510
|
for (const r of f.values())
|
|
1511
|
-
r.sink.setOutputFormat(R,
|
|
1511
|
+
r.sink.setOutputFormat(R, C), r.sink.rebind(v);
|
|
1512
1512
|
je();
|
|
1513
1513
|
return;
|
|
1514
1514
|
}
|
|
@@ -1546,21 +1546,21 @@ function sr(t, e, r, s, n) {
|
|
|
1546
1546
|
if (s === n)
|
|
1547
1547
|
return e.set(t), t.length;
|
|
1548
1548
|
const i = t.length / r, a = Math.max(1, Math.round(i * n / s)), _ = s / n, E = _ > 1 ? _ : 1, o = Math.ceil(tt * E);
|
|
1549
|
-
for (let
|
|
1550
|
-
for (let
|
|
1551
|
-
const u =
|
|
1552
|
-
let
|
|
1549
|
+
for (let I = 0; I < r; I++)
|
|
1550
|
+
for (let A = 0; A < a; A++) {
|
|
1551
|
+
const u = A * _, S = Math.floor(u);
|
|
1552
|
+
let d = 0, L = 0;
|
|
1553
1553
|
for (let H = -o + 1; H <= o; H++) {
|
|
1554
1554
|
const b = S + H;
|
|
1555
1555
|
if (b < 0 || b >= i)
|
|
1556
1556
|
continue;
|
|
1557
1557
|
const ft = (u - b) / E, Y = rr(ft, tt);
|
|
1558
1558
|
if (Y !== 0) {
|
|
1559
|
-
const Nt = t[b * r +
|
|
1560
|
-
|
|
1559
|
+
const Nt = t[b * r + I] ?? 0;
|
|
1560
|
+
d += Nt * Y, L += Y;
|
|
1561
1561
|
}
|
|
1562
1562
|
}
|
|
1563
|
-
e[
|
|
1563
|
+
e[A * r + I] = L > 0 ? d / L : 0;
|
|
1564
1564
|
}
|
|
1565
1565
|
return a * r;
|
|
1566
1566
|
}
|