@ikonai/sdk-ui 1.0.34 → 1.0.36
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/{ui-worker-CgUxgLaW.js → ui-worker-4F8aYHI_.js} +360 -360
- package/index.js +1260 -1260
- package/package.json +1 -1
|
@@ -7,30 +7,30 @@ function se(t) {
|
|
|
7
7
|
return (t[4] | t[5] << 8 | t[6] << 16 | t[7] << 24) >>> 0;
|
|
8
8
|
}
|
|
9
9
|
function et(t) {
|
|
10
|
-
const s =
|
|
10
|
+
const s = $(t), e = new DataView(s.buffer, s.byteOffset, s.byteLength);
|
|
11
11
|
if (s.length < 27)
|
|
12
12
|
throw new Error("Protocol payload too short");
|
|
13
|
-
const r = e.getUint32(0, !0), n = e.getUint32(4, !0), i = e.getUint32(8, !0), o = e.getUint32(12, !0), a = e.getUint32(16, !0),
|
|
14
|
-
if (27 +
|
|
13
|
+
const r = e.getUint32(0, !0), n = e.getUint32(4, !0), i = e.getUint32(8, !0), o = e.getUint32(12, !0), a = e.getUint32(16, !0), E = e.getUint32(20, !0), l = e.getUint8(24), I = e.getUint8(25), _ = e.getUint8(26);
|
|
14
|
+
if (27 + E * 4 > s.length)
|
|
15
15
|
throw new Error("Protocol header exceeds payload length");
|
|
16
|
-
const
|
|
16
|
+
const N = [];
|
|
17
17
|
let u = 27;
|
|
18
|
-
for (let y = 0; y <
|
|
19
|
-
|
|
18
|
+
for (let y = 0; y < E; y++)
|
|
19
|
+
N.push(e.getUint32(u, !0)), u += 4;
|
|
20
20
|
return {
|
|
21
21
|
length: r,
|
|
22
22
|
opcode: n,
|
|
23
23
|
senderId: i,
|
|
24
24
|
trackId: o,
|
|
25
25
|
sequenceId: a,
|
|
26
|
-
targetIds:
|
|
26
|
+
targetIds: N,
|
|
27
27
|
payloadVersion: l,
|
|
28
28
|
payloadType: I,
|
|
29
|
-
flags:
|
|
29
|
+
flags: _
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
async function
|
|
33
|
-
const r =
|
|
32
|
+
async function K(t, s, e) {
|
|
33
|
+
const r = $(t), n = et(r);
|
|
34
34
|
if (s !== void 0 && n.opcode !== s)
|
|
35
35
|
throw new Error(`Unexpected opcode ${n.opcode}`);
|
|
36
36
|
if (n.payloadType !== 8)
|
|
@@ -52,12 +52,12 @@ async function re(t) {
|
|
|
52
52
|
i.push(I), o += I.length;
|
|
53
53
|
}
|
|
54
54
|
const a = new Uint8Array(o);
|
|
55
|
-
let
|
|
55
|
+
let E = 0;
|
|
56
56
|
for (let l = 0; l < i.length; l++)
|
|
57
|
-
a.set(i[l],
|
|
57
|
+
a.set(i[l], E), E += i[l].length;
|
|
58
58
|
return a;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var v = /* @__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))(v || {});
|
|
61
61
|
const ne = 161, ie = 162;
|
|
62
62
|
new TextEncoder();
|
|
63
63
|
const oe = new TextDecoder("utf-8", { fatal: !0 });
|
|
@@ -68,12 +68,12 @@ class O {
|
|
|
68
68
|
offset;
|
|
69
69
|
end;
|
|
70
70
|
static create(s) {
|
|
71
|
-
const e =
|
|
71
|
+
const e = $(s);
|
|
72
72
|
if (e.length < 2)
|
|
73
73
|
throw new Error("Teleport payload too short");
|
|
74
74
|
if (e[0] !== ne || e[e.length - 1] !== ie)
|
|
75
75
|
throw new Error("Teleport object missing markers");
|
|
76
|
-
const r = { offset: 1 }, n =
|
|
76
|
+
const r = { offset: 1 }, n = D(e, r, "InvalidLength");
|
|
77
77
|
return new O(e, n, r.offset);
|
|
78
78
|
}
|
|
79
79
|
next() {
|
|
@@ -81,17 +81,17 @@ class O {
|
|
|
81
81
|
return null;
|
|
82
82
|
if (this.offset + 5 > this.buffer.length)
|
|
83
83
|
throw new Error("Teleport object truncated");
|
|
84
|
-
const s =
|
|
84
|
+
const s = Ee(this.buffer, this.offset);
|
|
85
85
|
this.offset += 4;
|
|
86
86
|
const e = this.buffer[this.offset++], r = e >> 4 & 15;
|
|
87
87
|
if ((e & 15) !== 0)
|
|
88
88
|
throw new Error("Teleport field flags must be zero");
|
|
89
|
-
const n =
|
|
89
|
+
const n = p(r);
|
|
90
90
|
let i;
|
|
91
91
|
if (n >= 0)
|
|
92
92
|
d(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
|
|
93
93
|
else {
|
|
94
|
-
const o = { offset: this.offset }, a =
|
|
94
|
+
const o = { offset: this.offset }, a = D(this.buffer, o, "InvalidLength");
|
|
95
95
|
d(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
|
|
96
96
|
}
|
|
97
97
|
return new ae(s, r, i);
|
|
@@ -187,7 +187,7 @@ class U {
|
|
|
187
187
|
}
|
|
188
188
|
ensureType(s) {
|
|
189
189
|
if (this.type !== s)
|
|
190
|
-
throw new Error(`Teleport value has type ${
|
|
190
|
+
throw new Error(`Teleport value has type ${v[this.type]}, expected ${v[s]}`);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
class ae extends U {
|
|
@@ -211,10 +211,10 @@ class st {
|
|
|
211
211
|
if (this.elementType = e >> 4 & 15, (e & 15) !== 0)
|
|
212
212
|
throw new Error("Array flags must be zero");
|
|
213
213
|
const r = { offset: 1 };
|
|
214
|
-
this.count =
|
|
214
|
+
this.count = D(s, r, "ArrayMalformed"), this.offset = r.offset;
|
|
215
215
|
}
|
|
216
216
|
static create(s) {
|
|
217
|
-
return new st(
|
|
217
|
+
return new st($(s));
|
|
218
218
|
}
|
|
219
219
|
next() {
|
|
220
220
|
if (this.index >= this.count) {
|
|
@@ -235,20 +235,20 @@ class st {
|
|
|
235
235
|
case 4:
|
|
236
236
|
case 6:
|
|
237
237
|
case 14: {
|
|
238
|
-
const s =
|
|
238
|
+
const s = p(this.elementType);
|
|
239
239
|
d(this.payload, this.offset, s);
|
|
240
240
|
const e = this.payload.subarray(this.offset, this.offset + s);
|
|
241
241
|
return this.offset += s, new V(this.elementType, e);
|
|
242
242
|
}
|
|
243
243
|
case 12:
|
|
244
244
|
case 13: {
|
|
245
|
-
const s = { offset: this.offset }, e =
|
|
245
|
+
const s = { offset: this.offset }, e = D(this.payload, s, "ArrayMalformed");
|
|
246
246
|
d(this.payload, s.offset, e);
|
|
247
247
|
const r = this.payload.subarray(s.offset, s.offset + e);
|
|
248
248
|
return this.offset = s.offset + e, new V(this.elementType, r);
|
|
249
249
|
}
|
|
250
250
|
case 11: {
|
|
251
|
-
const s = { offset: this.offset }, e =
|
|
251
|
+
const s = { offset: this.offset }, e = D(this.payload, s, "ArrayMalformed");
|
|
252
252
|
d(this.payload, s.offset, e);
|
|
253
253
|
const r = this.payload.subarray(s.offset, s.offset + e);
|
|
254
254
|
return this.offset = s.offset + e, new V(11, r);
|
|
@@ -262,7 +262,7 @@ class st {
|
|
|
262
262
|
return this.offset += s, new V(10, e);
|
|
263
263
|
}
|
|
264
264
|
default:
|
|
265
|
-
throw new Error(`Unsupported array element type ${
|
|
265
|
+
throw new Error(`Unsupported array element type ${v[this.elementType]}`);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
@@ -283,12 +283,12 @@ class rt {
|
|
|
283
283
|
throw new Error("Dictionary payload too short");
|
|
284
284
|
if (this.keyType = s[0] >> 4 & 15, this.valueType = s[1] >> 4 & 15, (s[0] & 15) !== 0 || (s[1] & 15) !== 0)
|
|
285
285
|
throw new Error("Dictionary key/value flags must be zero");
|
|
286
|
-
|
|
286
|
+
Et(this.keyType);
|
|
287
287
|
const e = { offset: 2 };
|
|
288
|
-
this.count =
|
|
288
|
+
this.count = D(s, e, "DictMalformed"), this.offset = e.offset;
|
|
289
289
|
}
|
|
290
290
|
static create(s) {
|
|
291
|
-
return new rt(
|
|
291
|
+
return new rt($(s));
|
|
292
292
|
}
|
|
293
293
|
next() {
|
|
294
294
|
if (this.index >= this.count) {
|
|
@@ -300,14 +300,14 @@ class rt {
|
|
|
300
300
|
return this.index++, new le(s, e);
|
|
301
301
|
}
|
|
302
302
|
readKey() {
|
|
303
|
-
const s =
|
|
303
|
+
const s = p(this.keyType);
|
|
304
304
|
if (s >= 0) {
|
|
305
305
|
d(this.payload, this.offset, s);
|
|
306
306
|
const e = this.payload.subarray(this.offset, this.offset + s);
|
|
307
307
|
return this.offset += s, new U(this.keyType, e);
|
|
308
308
|
}
|
|
309
309
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
310
|
-
const e = { offset: this.offset }, r =
|
|
310
|
+
const e = { offset: this.offset }, r = D(this.payload, e, "DictMalformed");
|
|
311
311
|
d(this.payload, e.offset, r);
|
|
312
312
|
const n = this.payload.subarray(e.offset, e.offset + r);
|
|
313
313
|
return this.offset = e.offset + r, new U(this.keyType, n);
|
|
@@ -318,13 +318,13 @@ class rt {
|
|
|
318
318
|
switch (this.valueType) {
|
|
319
319
|
case 12:
|
|
320
320
|
case 13: {
|
|
321
|
-
const s = { offset: this.offset }, e =
|
|
321
|
+
const s = { offset: this.offset }, e = D(this.payload, s, "DictMalformed");
|
|
322
322
|
d(this.payload, s.offset, e);
|
|
323
323
|
const r = this.payload.subarray(s.offset, s.offset + e);
|
|
324
324
|
return this.offset = s.offset + e, new U(this.valueType, r);
|
|
325
325
|
}
|
|
326
326
|
case 11: {
|
|
327
|
-
const s = { offset: this.offset }, e =
|
|
327
|
+
const s = { offset: this.offset }, e = D(this.payload, s, "DictMalformed");
|
|
328
328
|
d(this.payload, s.offset, e);
|
|
329
329
|
const r = this.payload.subarray(s.offset, s.offset + e);
|
|
330
330
|
return this.offset = s.offset + e, new U(11, r);
|
|
@@ -346,13 +346,13 @@ class rt {
|
|
|
346
346
|
case 6:
|
|
347
347
|
case 14:
|
|
348
348
|
case 1: {
|
|
349
|
-
const s =
|
|
349
|
+
const s = p(this.valueType);
|
|
350
350
|
d(this.payload, this.offset, s);
|
|
351
351
|
const e = this.payload.subarray(this.offset, this.offset + s);
|
|
352
352
|
return this.offset += s, new U(this.valueType, e);
|
|
353
353
|
}
|
|
354
354
|
default:
|
|
355
|
-
throw new Error(`Unsupported dictionary value type ${
|
|
355
|
+
throw new Error(`Unsupported dictionary value type ${v[this.valueType]}`);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
}
|
|
@@ -431,7 +431,7 @@ class T {
|
|
|
431
431
|
return (s >>> 0).toString(16).padStart(e, "0");
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function D(t, s, e) {
|
|
435
435
|
if (s.offset >= t.length)
|
|
436
436
|
throw new Error(e);
|
|
437
437
|
let r = 0, n = 0, i = 0;
|
|
@@ -450,7 +450,7 @@ function w(t, s, e) {
|
|
|
450
450
|
function Ie(t) {
|
|
451
451
|
return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function p(t) {
|
|
454
454
|
switch (t) {
|
|
455
455
|
case 3:
|
|
456
456
|
case 5:
|
|
@@ -470,7 +470,7 @@ function v(t) {
|
|
|
470
470
|
return -1;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Et(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
|
}
|
|
@@ -478,7 +478,7 @@ function d(t, s, e) {
|
|
|
478
478
|
if (s < 0 || e < 0 || s + e > t.length)
|
|
479
479
|
throw new Error("Teleport payload exceeds bounds");
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Ee(t, s) {
|
|
482
482
|
return (t[s] | t[s + 1] << 8 | t[s + 2] << 16 | t[s + 3] << 24) >>> 0;
|
|
483
483
|
}
|
|
484
484
|
function nt(t, s) {
|
|
@@ -487,13 +487,13 @@ function nt(t, s) {
|
|
|
487
487
|
const e = t[s], r = e >> 4 & 15;
|
|
488
488
|
if ((e & 15) !== 0)
|
|
489
489
|
throw new Error("Array flags must be zero");
|
|
490
|
-
const n = { offset: s + 1 }, i =
|
|
490
|
+
const n = { offset: s + 1 }, i = D(t, n, "ArrayMalformed"), o = p(r);
|
|
491
491
|
if (o >= 0) {
|
|
492
|
-
const
|
|
493
|
-
return d(t, n.offset,
|
|
492
|
+
const E = o * i;
|
|
493
|
+
return d(t, n.offset, E), n.offset + E - s;
|
|
494
494
|
}
|
|
495
495
|
let a = n.offset;
|
|
496
|
-
for (let
|
|
496
|
+
for (let E = 0; E < i; E++)
|
|
497
497
|
a = q(r, t, a, "ArrayMalformed");
|
|
498
498
|
return a - s;
|
|
499
499
|
}
|
|
@@ -503,25 +503,25 @@ function it(t, s) {
|
|
|
503
503
|
const e = t[s] >> 4 & 15, r = t[s + 1] >> 4 & 15;
|
|
504
504
|
if ((t[s] & 15) !== 0 || (t[s + 1] & 15) !== 0)
|
|
505
505
|
throw new Error("Dictionary key/value flags must be zero");
|
|
506
|
-
|
|
507
|
-
const n = { offset: s + 2 }, i =
|
|
506
|
+
Et(e);
|
|
507
|
+
const n = { offset: s + 2 }, i = D(t, n, "DictMalformed");
|
|
508
508
|
let o = n.offset;
|
|
509
509
|
for (let a = 0; a < i; a++)
|
|
510
510
|
o = q(e, t, o, "DictMalformed"), o = q(r, t, o, "DictMalformed");
|
|
511
511
|
return o - s;
|
|
512
512
|
}
|
|
513
513
|
function q(t, s, e, r) {
|
|
514
|
-
const n =
|
|
514
|
+
const n = p(t);
|
|
515
515
|
if (n >= 0)
|
|
516
516
|
return d(s, e, n), e + n;
|
|
517
517
|
switch (t) {
|
|
518
518
|
case 12:
|
|
519
519
|
case 13: {
|
|
520
|
-
const i = { offset: e }, o =
|
|
520
|
+
const i = { offset: e }, o = D(s, i, r);
|
|
521
521
|
return d(s, i.offset, o), i.offset + o;
|
|
522
522
|
}
|
|
523
523
|
case 11: {
|
|
524
|
-
const i = { offset: e }, o =
|
|
524
|
+
const i = { offset: e }, o = D(s, i, r);
|
|
525
525
|
return d(s, i.offset, o), i.offset + o;
|
|
526
526
|
}
|
|
527
527
|
case 9:
|
|
@@ -529,23 +529,23 @@ function q(t, s, e, r) {
|
|
|
529
529
|
case 10:
|
|
530
530
|
return e + it(s, e);
|
|
531
531
|
default:
|
|
532
|
-
throw new Error(`Unsupported Teleport type ${
|
|
532
|
+
throw new Error(`Unsupported Teleport type ${v[t]}`);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
function at(t) {
|
|
536
536
|
return Array.from(t).map((s) => s.toString(16).padStart(2, "0")).join("");
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function $(t) {
|
|
539
539
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
540
540
|
}
|
|
541
|
-
var Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Et || {}), _t = /* @__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))(_t || {}), ft = /* @__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))(ft || {}), ht = /* @__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))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), Nt = /* @__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))(Nt || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(At || {}), St = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(St || {}), dt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(dt || {}), 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_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.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))(g || {});
|
|
542
|
-
const
|
|
541
|
+
var _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(_t || {}), ct = /* @__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))(ct || {}), ft = /* @__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))(ft || {}), ht = /* @__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))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), At = /* @__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))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(Nt || {}), St = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(St || {}), dt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(dt || {}), P = /* @__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.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", 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.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.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))(P || {});
|
|
542
|
+
const _e = 161083277, ce = 265814330, fe = 1368629611, he = 2431514951, ue = 2745379226, Te = 3282782683, Ae = 3284746250, Ne = 4101844078;
|
|
543
543
|
function Ct(t) {
|
|
544
544
|
const s = {};
|
|
545
545
|
return yt(s), s;
|
|
546
546
|
}
|
|
547
547
|
function yt(t) {
|
|
548
|
-
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec =
|
|
548
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = _t.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t;
|
|
549
549
|
}
|
|
550
550
|
function Se(t, s) {
|
|
551
551
|
const e = s ?? Ct();
|
|
@@ -555,12 +555,12 @@ function de(t, s) {
|
|
|
555
555
|
let e;
|
|
556
556
|
for (; (e = t.next()) !== null; )
|
|
557
557
|
switch (e.fieldId) {
|
|
558
|
-
case
|
|
558
|
+
case _e: {
|
|
559
559
|
if (e.isNull) throw new Error();
|
|
560
560
|
s.StreamId = e.asString();
|
|
561
561
|
break;
|
|
562
562
|
}
|
|
563
|
-
case
|
|
563
|
+
case ce: {
|
|
564
564
|
if (e.isNull) {
|
|
565
565
|
s.ShapeSets = void 0;
|
|
566
566
|
break;
|
|
@@ -588,12 +588,12 @@ function de(t, s) {
|
|
|
588
588
|
s.SourceType = e.asString();
|
|
589
589
|
break;
|
|
590
590
|
}
|
|
591
|
-
case
|
|
591
|
+
case Ae: {
|
|
592
592
|
if (e.isNull) throw new Error();
|
|
593
593
|
s.Codec = e.asInt32();
|
|
594
594
|
break;
|
|
595
595
|
}
|
|
596
|
-
case
|
|
596
|
+
case Ne: {
|
|
597
597
|
if (e.isNull) throw new Error();
|
|
598
598
|
s.SampleRate = e.asInt32();
|
|
599
599
|
break;
|
|
@@ -607,19 +607,19 @@ function Ce(t) {
|
|
|
607
607
|
s.push(Ue(e.asObject()));
|
|
608
608
|
return s;
|
|
609
609
|
}
|
|
610
|
-
const ye = 1107713536,
|
|
610
|
+
const ye = 1107713536, De = 1154362099, we = 1185721362;
|
|
611
611
|
function Re(t) {
|
|
612
612
|
const s = {};
|
|
613
|
-
return
|
|
613
|
+
return Dt(s), s;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Dt(t) {
|
|
616
616
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
617
617
|
}
|
|
618
618
|
function Ue(t, s) {
|
|
619
619
|
const e = s ?? Re();
|
|
620
|
-
return
|
|
620
|
+
return Dt(e), Le(t, e), e;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Le(t, s) {
|
|
623
623
|
let e;
|
|
624
624
|
for (; (e = t.next()) !== null; )
|
|
625
625
|
switch (e.fieldId) {
|
|
@@ -628,36 +628,36 @@ function me(t, s) {
|
|
|
628
628
|
s.Name = e.asString();
|
|
629
629
|
break;
|
|
630
630
|
}
|
|
631
|
-
case
|
|
631
|
+
case De: {
|
|
632
632
|
if (e.isNull) throw new Error();
|
|
633
633
|
s.SetId = e.asUInt32();
|
|
634
634
|
break;
|
|
635
635
|
}
|
|
636
|
-
case
|
|
636
|
+
case we: {
|
|
637
637
|
if (e.isNull) throw new Error();
|
|
638
|
-
s.ShapeNames =
|
|
638
|
+
s.ShapeNames = me(e.asArray());
|
|
639
639
|
break;
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function me(t) {
|
|
644
644
|
const s = [];
|
|
645
645
|
let e;
|
|
646
646
|
for (; (e = t.next()) !== null; )
|
|
647
647
|
s.push(e.asString());
|
|
648
648
|
return s;
|
|
649
649
|
}
|
|
650
|
-
const Oe = 76337612,
|
|
650
|
+
const Oe = 76337612, Pe = 185396121, ge = 250031587, be = 388632637, Fe = 417197284, ve = 469070965, pe = 470595159, Me = 594855258, ke = 781727218, Ve = 834078886, Ge = 1043273762, Be = 1236999138, xe = 1286979607, He = 1368629611, Ye = 1715899485, Ke = 1942830531, $e = 1999510636, Xe = 2033288346, je = 2079864626, We = 2142346422, ze = 2232517119, Je = 2598291686, qe = 2719718823, Qe = 2810953526, Ze = 2840065720, ts = 2885165957, es = 3542818975, ss = 3586157513, rs = 3717933110, ns = 4062655306;
|
|
651
651
|
function is(t) {
|
|
652
652
|
const s = {};
|
|
653
|
-
return
|
|
653
|
+
return wt(s), s;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
656
|
-
return t.ContextType = ft.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ht.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 =
|
|
655
|
+
function wt(t) {
|
|
656
|
+
return t.ContextType = ft.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ht.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 = ct.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = Nt.Unknown, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t;
|
|
657
657
|
}
|
|
658
658
|
function os(t, s) {
|
|
659
659
|
const e = s ?? is();
|
|
660
|
-
return
|
|
660
|
+
return wt(e), as(t, e), e;
|
|
661
661
|
}
|
|
662
662
|
function as(t, s) {
|
|
663
663
|
let e;
|
|
@@ -668,12 +668,12 @@ function as(t, s) {
|
|
|
668
668
|
s.DeviceId = e.asString();
|
|
669
669
|
break;
|
|
670
670
|
}
|
|
671
|
-
case
|
|
671
|
+
case Pe: {
|
|
672
672
|
if (e.isNull) throw new Error();
|
|
673
673
|
s.InstallId = e.asString();
|
|
674
674
|
break;
|
|
675
675
|
}
|
|
676
|
-
case
|
|
676
|
+
case ge: {
|
|
677
677
|
if (e.isNull) throw new Error();
|
|
678
678
|
s.Theme = e.asString();
|
|
679
679
|
break;
|
|
@@ -688,12 +688,12 @@ function as(t, s) {
|
|
|
688
688
|
s.ContextType = e.asInt32();
|
|
689
689
|
break;
|
|
690
690
|
}
|
|
691
|
-
case
|
|
691
|
+
case ve: {
|
|
692
692
|
if (e.isNull) throw new Error();
|
|
693
693
|
s.HasInput = e.asBool();
|
|
694
694
|
break;
|
|
695
695
|
}
|
|
696
|
-
case
|
|
696
|
+
case pe: {
|
|
697
697
|
if (e.isNull) throw new Error();
|
|
698
698
|
s.UserType = e.asInt32();
|
|
699
699
|
break;
|
|
@@ -738,12 +738,12 @@ function as(t, s) {
|
|
|
738
738
|
s.Locale = e.asString();
|
|
739
739
|
break;
|
|
740
740
|
}
|
|
741
|
-
case
|
|
741
|
+
case Ke: {
|
|
742
742
|
if (e.isNull) throw new Error();
|
|
743
743
|
s.SdkType = e.asInt32();
|
|
744
744
|
break;
|
|
745
745
|
}
|
|
746
|
-
case
|
|
746
|
+
case $e: {
|
|
747
747
|
if (e.isNull) throw new Error();
|
|
748
748
|
s.SessionId = e.asInt32();
|
|
749
749
|
break;
|
|
@@ -824,7 +824,7 @@ function ls(t) {
|
|
|
824
824
|
}
|
|
825
825
|
return s;
|
|
826
826
|
}
|
|
827
|
-
const Is = 703025676,
|
|
827
|
+
const Is = 703025676, Es = 814454131, _s = 972460562, cs = 976255570, fs = 1368629611, hs = 1479280922, us = 1533537016, Ts = 1909301063, As = 2274386296, Ns = 2603556958, Ss = 2885165957, ds = 3568439632;
|
|
828
828
|
function Cs(t) {
|
|
829
829
|
const s = {};
|
|
830
830
|
return Rt(s), s;
|
|
@@ -834,9 +834,9 @@ function Rt(t) {
|
|
|
834
834
|
}
|
|
835
835
|
function ys(t, s) {
|
|
836
836
|
const e = s ?? Cs();
|
|
837
|
-
return Rt(e),
|
|
837
|
+
return Rt(e), Ds(t, e), e;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function Ds(t, s) {
|
|
840
840
|
let e;
|
|
841
841
|
for (; (e = t.next()) !== null; )
|
|
842
842
|
switch (e.fieldId) {
|
|
@@ -845,17 +845,17 @@ function ws(t, s) {
|
|
|
845
845
|
s.ResultTypeName = e.asString();
|
|
846
846
|
break;
|
|
847
847
|
}
|
|
848
|
-
case
|
|
848
|
+
case Es: {
|
|
849
849
|
if (e.isNull) throw new Error();
|
|
850
850
|
s.FunctionName = e.asString();
|
|
851
851
|
break;
|
|
852
852
|
}
|
|
853
|
-
case
|
|
853
|
+
case _s: {
|
|
854
854
|
if (e.isNull) throw new Error();
|
|
855
855
|
s.EnumerableItemTypeName = e.asString();
|
|
856
856
|
break;
|
|
857
857
|
}
|
|
858
|
-
case
|
|
858
|
+
case cs: {
|
|
859
859
|
if (e.isNull) throw new Error();
|
|
860
860
|
s.FunctionId = e.asGuid();
|
|
861
861
|
break;
|
|
@@ -877,15 +877,15 @@ function ws(t, s) {
|
|
|
877
877
|
}
|
|
878
878
|
case Ts: {
|
|
879
879
|
if (e.isNull) throw new Error();
|
|
880
|
-
s.Versions =
|
|
880
|
+
s.Versions = ws(e.asArray());
|
|
881
881
|
break;
|
|
882
882
|
}
|
|
883
|
-
case
|
|
883
|
+
case As: {
|
|
884
884
|
if (e.isNull) throw new Error();
|
|
885
885
|
s.LlmInlineResult = e.asBool();
|
|
886
886
|
break;
|
|
887
887
|
}
|
|
888
|
-
case
|
|
888
|
+
case Ns: {
|
|
889
889
|
if (e.isNull) throw new Error();
|
|
890
890
|
s.IsEnumerable = e.asBool();
|
|
891
891
|
break;
|
|
@@ -902,7 +902,7 @@ function ws(t, s) {
|
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function ws(t) {
|
|
906
906
|
const s = [];
|
|
907
907
|
let e;
|
|
908
908
|
for (; (e = t.next()) !== null; )
|
|
@@ -916,8 +916,8 @@ function Rs(t) {
|
|
|
916
916
|
s.push(Ms(e.asObject()));
|
|
917
917
|
return s;
|
|
918
918
|
}
|
|
919
|
-
const Us = 607861992,
|
|
920
|
-
function
|
|
919
|
+
const Us = 607861992, Ls = 894485888, ms = 972460562, Os = 1368629611, Ps = 1883521406, gs = 2603556958, bs = 3609695522, Fs = 4075263697, vs = 4257460908;
|
|
920
|
+
function ps(t) {
|
|
921
921
|
const s = {};
|
|
922
922
|
return Ut(s), s;
|
|
923
923
|
}
|
|
@@ -925,7 +925,7 @@ function Ut(t) {
|
|
|
925
925
|
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;
|
|
926
926
|
}
|
|
927
927
|
function Ms(t, s) {
|
|
928
|
-
const e = s ??
|
|
928
|
+
const e = s ?? ps();
|
|
929
929
|
return Ut(e), ks(t, e), e;
|
|
930
930
|
}
|
|
931
931
|
function ks(t, s) {
|
|
@@ -937,12 +937,12 @@ function ks(t, s) {
|
|
|
937
937
|
s.HasDefaultValue = e.asBool();
|
|
938
938
|
break;
|
|
939
939
|
}
|
|
940
|
-
case
|
|
940
|
+
case Ls: {
|
|
941
941
|
if (e.isNull) throw new Error();
|
|
942
942
|
s.DefaultValueJson = e.asString();
|
|
943
943
|
break;
|
|
944
944
|
}
|
|
945
|
-
case
|
|
945
|
+
case ms: {
|
|
946
946
|
if (e.isNull) throw new Error();
|
|
947
947
|
s.EnumerableItemTypeName = e.asString();
|
|
948
948
|
break;
|
|
@@ -952,12 +952,12 @@ function ks(t, s) {
|
|
|
952
952
|
s.Description = e.asString();
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
|
-
case
|
|
955
|
+
case Ps: {
|
|
956
956
|
if (e.isNull) throw new Error();
|
|
957
957
|
s.DefaultValueData = e.asBinary();
|
|
958
958
|
break;
|
|
959
959
|
}
|
|
960
|
-
case
|
|
960
|
+
case gs: {
|
|
961
961
|
if (e.isNull) throw new Error();
|
|
962
962
|
s.IsEnumerable = e.asBool();
|
|
963
963
|
break;
|
|
@@ -972,7 +972,7 @@ function ks(t, s) {
|
|
|
972
972
|
s.ParameterName = e.asString();
|
|
973
973
|
break;
|
|
974
974
|
}
|
|
975
|
-
case
|
|
975
|
+
case vs: {
|
|
976
976
|
if (e.isNull) throw new Error();
|
|
977
977
|
s.ParameterIndex = e.asInt32();
|
|
978
978
|
break;
|
|
@@ -980,16 +980,16 @@ function ks(t, s) {
|
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
const Vs = 3167053791, Gs = 3342364356, Bs = 3612929027;
|
|
983
|
-
function
|
|
983
|
+
function Lt(t) {
|
|
984
984
|
const s = {};
|
|
985
|
-
return
|
|
985
|
+
return mt(s), s;
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function mt(t) {
|
|
988
988
|
return t.Category = "", t.Type = ut.Face, t.FaceBlendshapes = [], t;
|
|
989
989
|
}
|
|
990
990
|
function xs(t, s) {
|
|
991
|
-
const e = s ??
|
|
992
|
-
return
|
|
991
|
+
const e = s ?? Lt();
|
|
992
|
+
return mt(e), Hs(t, e), e;
|
|
993
993
|
}
|
|
994
994
|
function Hs(t, s) {
|
|
995
995
|
let e;
|
|
@@ -1019,23 +1019,23 @@ function Ys(t) {
|
|
|
1019
1019
|
s.push(e.asString());
|
|
1020
1020
|
return s;
|
|
1021
1021
|
}
|
|
1022
|
-
const
|
|
1022
|
+
const Ks = 3612929027;
|
|
1023
1023
|
function Ot(t) {
|
|
1024
1024
|
const s = {};
|
|
1025
|
-
return
|
|
1025
|
+
return Pt(s), s;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function Pt(t) {
|
|
1028
1028
|
return t.Category = "", t;
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function $s(t, s) {
|
|
1031
1031
|
const e = s ?? Ot();
|
|
1032
|
-
return
|
|
1032
|
+
return Pt(e), Xs(t, e), e;
|
|
1033
1033
|
}
|
|
1034
1034
|
function Xs(t, s) {
|
|
1035
1035
|
let e;
|
|
1036
1036
|
for (; (e = t.next()) !== null; )
|
|
1037
1037
|
switch (e.fieldId) {
|
|
1038
|
-
case
|
|
1038
|
+
case Ks: {
|
|
1039
1039
|
if (e.isNull) throw new Error();
|
|
1040
1040
|
s.Category = e.asString();
|
|
1041
1041
|
break;
|
|
@@ -1043,15 +1043,15 @@ function Xs(t, s) {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
1045
|
const js = 161083277, Ws = 164808083, zs = 1368629611, Js = 2745379226, qs = 2950031986, Qs = 3282782683, Zs = 3284746250, tr = 4065070594;
|
|
1046
|
-
function
|
|
1046
|
+
function gt(t) {
|
|
1047
1047
|
const s = {};
|
|
1048
1048
|
return bt(s), s;
|
|
1049
1049
|
}
|
|
1050
1050
|
function bt(t) {
|
|
1051
|
-
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec =
|
|
1051
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = At.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t;
|
|
1052
1052
|
}
|
|
1053
1053
|
function er(t, s) {
|
|
1054
|
-
const e = s ??
|
|
1054
|
+
const e = s ?? gt();
|
|
1055
1055
|
return bt(e), sr(t, e), e;
|
|
1056
1056
|
}
|
|
1057
1057
|
function sr(t, s) {
|
|
@@ -1100,8 +1100,8 @@ function sr(t, s) {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
|
-
const rr = 65539, nr = 693643444, ir = 1144553441, or = 1497620243, ar = 1559330978, lr = 1976546434, Ir = 1999510636,
|
|
1104
|
-
function
|
|
1103
|
+
const rr = 65539, nr = 693643444, ir = 1144553441, or = 1497620243, ar = 1559330978, lr = 1976546434, Ir = 1999510636, Er = 2271236852, _r = 2277643855, cr = 2469008121, fr = 3042922213, hr = 3064612128, ur = 3219210453, Tr = 3504054055, Ar = 3678477544, Nr = 3696445035, Sr = 3707543140, dr = 3712281496, Cr = 3895362455, yr = 3897397815, Dr = 4225107827;
|
|
1104
|
+
function wr(t) {
|
|
1105
1105
|
const s = {};
|
|
1106
1106
|
return Ft(s), s;
|
|
1107
1107
|
}
|
|
@@ -1113,10 +1113,10 @@ function Rr(t, s) {
|
|
|
1113
1113
|
return Ur(e, s);
|
|
1114
1114
|
}
|
|
1115
1115
|
function Ur(t, s) {
|
|
1116
|
-
const e = s ??
|
|
1117
|
-
return Ft(e),
|
|
1116
|
+
const e = s ?? wr();
|
|
1117
|
+
return Ft(e), Lr(t, e), e;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function Lr(t, s) {
|
|
1120
1120
|
let e;
|
|
1121
1121
|
for (; (e = t.next()) !== null; )
|
|
1122
1122
|
switch (e.fieldId) {
|
|
@@ -1132,7 +1132,7 @@ function mr(t, s) {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
case or: {
|
|
1134
1134
|
if (e.isNull) throw new Error();
|
|
1135
|
-
s.TrackingStreams =
|
|
1135
|
+
s.TrackingStreams = Pr(e.asDictionary());
|
|
1136
1136
|
break;
|
|
1137
1137
|
}
|
|
1138
1138
|
case ar: {
|
|
@@ -1150,17 +1150,17 @@ function mr(t, s) {
|
|
|
1150
1150
|
s.SessionId = e.asString();
|
|
1151
1151
|
break;
|
|
1152
1152
|
}
|
|
1153
|
-
case
|
|
1153
|
+
case Er: {
|
|
1154
1154
|
if (e.isNull) throw new Error();
|
|
1155
1155
|
s.SessionChannelUrl = e.asString();
|
|
1156
1156
|
break;
|
|
1157
1157
|
}
|
|
1158
|
-
case
|
|
1158
|
+
case _r: {
|
|
1159
1159
|
if (e.isNull) throw new Error();
|
|
1160
1160
|
s.ChannelUrl = e.asString();
|
|
1161
1161
|
break;
|
|
1162
1162
|
}
|
|
1163
|
-
case
|
|
1163
|
+
case cr: {
|
|
1164
1164
|
if (e.isNull) throw new Error();
|
|
1165
1165
|
s.ChannelName = e.asString();
|
|
1166
1166
|
break;
|
|
@@ -1185,12 +1185,12 @@ function mr(t, s) {
|
|
|
1185
1185
|
s.DebugMode = e.asBool();
|
|
1186
1186
|
break;
|
|
1187
1187
|
}
|
|
1188
|
-
case
|
|
1188
|
+
case Ar: {
|
|
1189
1189
|
if (e.isNull) throw new Error();
|
|
1190
|
-
s.Functions =
|
|
1190
|
+
s.Functions = gr(e.asDictionary());
|
|
1191
1191
|
break;
|
|
1192
1192
|
}
|
|
1193
|
-
case
|
|
1193
|
+
case Nr: {
|
|
1194
1194
|
if (e.isNull) throw new Error();
|
|
1195
1195
|
s.UIStreams = br(e.asDictionary());
|
|
1196
1196
|
break;
|
|
@@ -1212,18 +1212,18 @@ function mr(t, s) {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
case yr: {
|
|
1214
1214
|
if (e.isNull) throw new Error();
|
|
1215
|
-
s.VideoStreams =
|
|
1215
|
+
s.VideoStreams = vr(e.asDictionary());
|
|
1216
1216
|
break;
|
|
1217
1217
|
}
|
|
1218
|
-
case
|
|
1218
|
+
case Dr: {
|
|
1219
1219
|
if (e.isNull) throw new Error();
|
|
1220
1220
|
s.SpaceName = e.asString();
|
|
1221
1221
|
break;
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
|
-
async function
|
|
1226
|
-
const e = await
|
|
1225
|
+
async function mr(t, s) {
|
|
1226
|
+
const e = await K(t, rr);
|
|
1227
1227
|
return Rr(e, s);
|
|
1228
1228
|
}
|
|
1229
1229
|
function Or(t) {
|
|
@@ -1235,7 +1235,7 @@ function Or(t) {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
return s;
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function Pr(t) {
|
|
1239
1239
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1240
1240
|
let e;
|
|
1241
1241
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -1244,12 +1244,12 @@ function gr(t) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
return s;
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1247
|
+
function gr(t) {
|
|
1248
1248
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1249
1249
|
let e;
|
|
1250
1250
|
for (; (e = t.next()) !== null; ) {
|
|
1251
1251
|
const r = e.key.asInt32();
|
|
1252
|
-
s[r] =
|
|
1252
|
+
s[r] = pr(e.value.asArray());
|
|
1253
1253
|
}
|
|
1254
1254
|
return s;
|
|
1255
1255
|
}
|
|
@@ -1271,7 +1271,7 @@ function Fr(t) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
return s;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function vr(t) {
|
|
1275
1275
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1276
1276
|
let e;
|
|
1277
1277
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -1280,7 +1280,7 @@ function pr(t) {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
return s;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function pr(t) {
|
|
1284
1284
|
const s = [];
|
|
1285
1285
|
let e;
|
|
1286
1286
|
for (; (e = t.next()) !== null; )
|
|
@@ -1290,14 +1290,14 @@ function vr(t) {
|
|
|
1290
1290
|
const Mr = 161083277, kr = 325678206, Vr = 3469892363, Gr = 3645544153;
|
|
1291
1291
|
function Br(t) {
|
|
1292
1292
|
const s = {};
|
|
1293
|
-
return
|
|
1293
|
+
return vt(s), s;
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function vt(t) {
|
|
1296
1296
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ot(), t;
|
|
1297
1297
|
}
|
|
1298
1298
|
function xr(t, s) {
|
|
1299
1299
|
const e = s ?? Br();
|
|
1300
|
-
return
|
|
1300
|
+
return vt(e), Hr(t, e), e;
|
|
1301
1301
|
}
|
|
1302
1302
|
function Hr(t, s) {
|
|
1303
1303
|
let e;
|
|
@@ -1320,22 +1320,22 @@ function Hr(t, s) {
|
|
|
1320
1320
|
}
|
|
1321
1321
|
case Gr: {
|
|
1322
1322
|
if (e.isNull) throw new Error();
|
|
1323
|
-
s.Info =
|
|
1323
|
+
s.Info = $s(e.asObject());
|
|
1324
1324
|
break;
|
|
1325
1325
|
}
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
1328
|
-
const Yr = 161083277,
|
|
1328
|
+
const Yr = 161083277, Kr = 325678206, $r = 3469892363, Xr = 3645544153;
|
|
1329
1329
|
function jr(t) {
|
|
1330
1330
|
const s = {};
|
|
1331
|
-
return
|
|
1331
|
+
return pt(s), s;
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function pt(t) {
|
|
1334
1334
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ct(), t;
|
|
1335
1335
|
}
|
|
1336
1336
|
function Wr(t, s) {
|
|
1337
1337
|
const e = s ?? jr();
|
|
1338
|
-
return
|
|
1338
|
+
return pt(e), zr(t, e), e;
|
|
1339
1339
|
}
|
|
1340
1340
|
function zr(t, s) {
|
|
1341
1341
|
let e;
|
|
@@ -1346,12 +1346,12 @@ function zr(t, s) {
|
|
|
1346
1346
|
s.StreamId = e.asString();
|
|
1347
1347
|
break;
|
|
1348
1348
|
}
|
|
1349
|
-
case
|
|
1349
|
+
case Kr: {
|
|
1350
1350
|
if (e.isNull) throw new Error();
|
|
1351
1351
|
s.ClientSessionId = e.asInt32();
|
|
1352
1352
|
break;
|
|
1353
1353
|
}
|
|
1354
|
-
case
|
|
1354
|
+
case $r: {
|
|
1355
1355
|
if (e.isNull) throw new Error();
|
|
1356
1356
|
s.TrackId = e.asInt32();
|
|
1357
1357
|
break;
|
|
@@ -1369,7 +1369,7 @@ function tn(t) {
|
|
|
1369
1369
|
return Mt(s), s;
|
|
1370
1370
|
}
|
|
1371
1371
|
function Mt(t) {
|
|
1372
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1372
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = gt(), t;
|
|
1373
1373
|
}
|
|
1374
1374
|
function en(t, s) {
|
|
1375
1375
|
const e = s ?? tn();
|
|
@@ -1407,13 +1407,13 @@ function ln(t) {
|
|
|
1407
1407
|
return kt(s), s;
|
|
1408
1408
|
}
|
|
1409
1409
|
function kt(t) {
|
|
1410
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1410
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Lt(), t;
|
|
1411
1411
|
}
|
|
1412
1412
|
function In(t, s) {
|
|
1413
1413
|
const e = s ?? ln();
|
|
1414
|
-
return kt(e),
|
|
1414
|
+
return kt(e), En(t, e), e;
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1416
|
+
function En(t, s) {
|
|
1417
1417
|
let e;
|
|
1418
1418
|
for (; (e = t.next()) !== null; )
|
|
1419
1419
|
switch (e.fieldId) {
|
|
@@ -1439,7 +1439,7 @@ function cn(t, s) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
|
-
const
|
|
1442
|
+
const _n = 1405462580, cn = 2968276160;
|
|
1443
1443
|
function fn(t) {
|
|
1444
1444
|
const s = {};
|
|
1445
1445
|
return Vt(s), s;
|
|
@@ -1455,19 +1455,19 @@ function un(t, s) {
|
|
|
1455
1455
|
let e;
|
|
1456
1456
|
for (; (e = t.next()) !== null; )
|
|
1457
1457
|
switch (e.fieldId) {
|
|
1458
|
-
case
|
|
1458
|
+
case _n: {
|
|
1459
1459
|
if (e.isNull) throw new Error();
|
|
1460
1460
|
s.Value = e.asBinary();
|
|
1461
1461
|
break;
|
|
1462
1462
|
}
|
|
1463
|
-
case
|
|
1463
|
+
case cn: {
|
|
1464
1464
|
if (e.isNull) throw new Error();
|
|
1465
1465
|
s.MimeType = e.asString();
|
|
1466
1466
|
break;
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
|
-
const Tn = 2097188,
|
|
1470
|
+
const Tn = 2097188, An = 979822885, Nn = 2374537704;
|
|
1471
1471
|
function Sn(t) {
|
|
1472
1472
|
const s = {};
|
|
1473
1473
|
return Gt(s), s;
|
|
@@ -1487,23 +1487,23 @@ function yn(t, s) {
|
|
|
1487
1487
|
let e;
|
|
1488
1488
|
for (; (e = t.next()) !== null; )
|
|
1489
1489
|
switch (e.fieldId) {
|
|
1490
|
-
case
|
|
1490
|
+
case An: {
|
|
1491
1491
|
if (e.isNull) throw new Error();
|
|
1492
1492
|
s.StyleId = e.asString();
|
|
1493
1493
|
break;
|
|
1494
1494
|
}
|
|
1495
|
-
case
|
|
1495
|
+
case Nn: {
|
|
1496
1496
|
if (e.isNull) throw new Error();
|
|
1497
|
-
s.Style =
|
|
1497
|
+
s.Style = wn(e.asDictionary());
|
|
1498
1498
|
break;
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
|
-
async function
|
|
1503
|
-
const e = await
|
|
1502
|
+
async function Dn(t, s) {
|
|
1503
|
+
const e = await K(t, Tn);
|
|
1504
1504
|
return dn(e, s);
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function wn(t) {
|
|
1507
1507
|
const s = /* @__PURE__ */ Object.create(null);
|
|
1508
1508
|
let e;
|
|
1509
1509
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -1513,22 +1513,22 @@ function Dn(t) {
|
|
|
1513
1513
|
return s;
|
|
1514
1514
|
}
|
|
1515
1515
|
const Rn = 2097192, Un = 2136687806;
|
|
1516
|
-
function
|
|
1516
|
+
function Ln(t) {
|
|
1517
1517
|
const s = {};
|
|
1518
1518
|
return Bt(s), s;
|
|
1519
1519
|
}
|
|
1520
1520
|
function Bt(t) {
|
|
1521
1521
|
return t.Styles = [], t;
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function mn(t, s) {
|
|
1524
1524
|
const e = O.create(t);
|
|
1525
1525
|
return On(e, s);
|
|
1526
1526
|
}
|
|
1527
1527
|
function On(t, s) {
|
|
1528
|
-
const e = s ??
|
|
1529
|
-
return Bt(e),
|
|
1528
|
+
const e = s ?? Ln();
|
|
1529
|
+
return Bt(e), Pn(t, e), e;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function Pn(t, s) {
|
|
1532
1532
|
let e;
|
|
1533
1533
|
for (; (e = t.next()) !== null; )
|
|
1534
1534
|
switch (e.fieldId) {
|
|
@@ -1539,9 +1539,9 @@ function gn(t, s) {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
|
-
async function
|
|
1543
|
-
const e = await
|
|
1544
|
-
return
|
|
1542
|
+
async function gn(t, s) {
|
|
1543
|
+
const e = await K(t, Rn);
|
|
1544
|
+
return mn(e, s);
|
|
1545
1545
|
}
|
|
1546
1546
|
function bn(t) {
|
|
1547
1547
|
const s = [];
|
|
@@ -1550,8 +1550,8 @@ function bn(t) {
|
|
|
1550
1550
|
s.push(Mn(e.asObject()));
|
|
1551
1551
|
return s;
|
|
1552
1552
|
}
|
|
1553
|
-
const Fn = 979822885,
|
|
1554
|
-
function
|
|
1553
|
+
const Fn = 979822885, vn = 2374537704;
|
|
1554
|
+
function pn(t) {
|
|
1555
1555
|
const s = {};
|
|
1556
1556
|
return xt(s), s;
|
|
1557
1557
|
}
|
|
@@ -1559,7 +1559,7 @@ function xt(t) {
|
|
|
1559
1559
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1560
1560
|
}
|
|
1561
1561
|
function Mn(t, s) {
|
|
1562
|
-
const e = s ??
|
|
1562
|
+
const e = s ?? pn();
|
|
1563
1563
|
return xt(e), kn(t, e), e;
|
|
1564
1564
|
}
|
|
1565
1565
|
function kn(t, s) {
|
|
@@ -1571,7 +1571,7 @@ function kn(t, s) {
|
|
|
1571
1571
|
s.StyleId = e.asString();
|
|
1572
1572
|
break;
|
|
1573
1573
|
}
|
|
1574
|
-
case
|
|
1574
|
+
case vn: {
|
|
1575
1575
|
if (e.isNull) throw new Error();
|
|
1576
1576
|
s.Style = Vn(e.asDictionary());
|
|
1577
1577
|
break;
|
|
@@ -1601,9 +1601,9 @@ function Hn(t, s) {
|
|
|
1601
1601
|
}
|
|
1602
1602
|
function Yn(t, s) {
|
|
1603
1603
|
const e = s ?? xn();
|
|
1604
|
-
return Ht(e),
|
|
1604
|
+
return Ht(e), Kn(t, e), e;
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function Kn(t, s) {
|
|
1607
1607
|
let e;
|
|
1608
1608
|
for (; (e = t.next()) !== null; )
|
|
1609
1609
|
switch (e.fieldId) {
|
|
@@ -1614,8 +1614,8 @@ function $n(t, s) {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
|
-
async function
|
|
1618
|
-
const e = await
|
|
1617
|
+
async function $n(t, s) {
|
|
1618
|
+
const e = await K(t, Gn);
|
|
1619
1619
|
return Hn(e, s);
|
|
1620
1620
|
}
|
|
1621
1621
|
function Xn(t) {
|
|
@@ -1658,7 +1658,7 @@ function Zn(t, s) {
|
|
|
1658
1658
|
}
|
|
1659
1659
|
}
|
|
1660
1660
|
async function ti(t, s) {
|
|
1661
|
-
const e = await
|
|
1661
|
+
const e = await K(t, jn);
|
|
1662
1662
|
return qn(e, s);
|
|
1663
1663
|
}
|
|
1664
1664
|
function ei(t) {
|
|
@@ -1673,7 +1673,7 @@ function ei(t) {
|
|
|
1673
1673
|
function C(t) {
|
|
1674
1674
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function Kt(t) {
|
|
1677
1677
|
const s = {}, e = Object.keys(t);
|
|
1678
1678
|
for (let r = 0; r < e.length; r++) {
|
|
1679
1679
|
const n = e[r];
|
|
@@ -1681,7 +1681,7 @@ function $t(t) {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
return s;
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1684
|
+
function $t(t, s, e, r) {
|
|
1685
1685
|
if (!(t === void 0 && r)) {
|
|
1686
1686
|
if (Array.isArray(t)) {
|
|
1687
1687
|
const n = [];
|
|
@@ -1711,18 +1711,18 @@ function ot(t, s) {
|
|
|
1711
1711
|
if (n != null) {
|
|
1712
1712
|
if (!C(n))
|
|
1713
1713
|
throw new Error(`Invalid props for node ${e}`);
|
|
1714
|
-
a =
|
|
1714
|
+
a = Kt(n);
|
|
1715
1715
|
}
|
|
1716
|
-
let
|
|
1717
|
-
Array.isArray(i) && (
|
|
1718
|
-
(I,
|
|
1716
|
+
let E = [];
|
|
1717
|
+
Array.isArray(i) && (E = i.map(
|
|
1718
|
+
(I, _) => ot(I ?? {}, `${s}.children[${_}]`)
|
|
1719
1719
|
));
|
|
1720
|
-
const l =
|
|
1720
|
+
const l = $t(o, s, e, !1);
|
|
1721
1721
|
return {
|
|
1722
1722
|
id: e,
|
|
1723
1723
|
type: r,
|
|
1724
1724
|
props: a,
|
|
1725
|
-
children:
|
|
1725
|
+
children: E,
|
|
1726
1726
|
styleIds: l ?? []
|
|
1727
1727
|
};
|
|
1728
1728
|
}
|
|
@@ -1802,25 +1802,25 @@ function oi(t, s) {
|
|
|
1802
1802
|
if (typeof e != "string" || e.length === 0)
|
|
1803
1803
|
throw new Error(`Invalid node change nodeId at ${s}`);
|
|
1804
1804
|
const r = Array.isArray(t.inserts) ? t.inserts.map(
|
|
1805
|
-
(I,
|
|
1805
|
+
(I, _) => ri(I ?? {}, `${s}.inserts[${_}]`)
|
|
1806
1806
|
) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
|
|
1807
|
-
(I,
|
|
1807
|
+
(I, _) => ni(I ?? {}, `${s}.moves[${_}]`)
|
|
1808
1808
|
) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
|
|
1809
|
-
(I,
|
|
1809
|
+
(I, _) => ii(I ?? {}, `${s}.removals[${_}]`)
|
|
1810
1810
|
) : void 0;
|
|
1811
1811
|
let o;
|
|
1812
1812
|
if (C(t.changedProps)) {
|
|
1813
1813
|
o = /* @__PURE__ */ new Map();
|
|
1814
|
-
for (const [I,
|
|
1815
|
-
if (!C(
|
|
1814
|
+
for (const [I, _] of Object.entries(t.changedProps)) {
|
|
1815
|
+
if (!C(_))
|
|
1816
1816
|
continue;
|
|
1817
|
-
const
|
|
1818
|
-
|
|
1817
|
+
const c = _.New;
|
|
1818
|
+
c === void 0 ? o.set(I, void 0) : C(c) ? o.set(I, Kt(c)) : o.set(I, c);
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
1822
|
-
(I,
|
|
1823
|
-
) : void 0,
|
|
1822
|
+
(I, _) => si(I ?? {}, `${s}.textUpdates[${_}]`)
|
|
1823
|
+
) : void 0, E = t.styleIds, l = E !== void 0 ? $t(E, s, e, !0) : void 0;
|
|
1824
1824
|
return {
|
|
1825
1825
|
nodeId: e,
|
|
1826
1826
|
...r && r.length > 0 ? { inserts: r } : {},
|
|
@@ -1839,11 +1839,11 @@ function ai(t) {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
function li(t, s, e) {
|
|
1841
1841
|
if (!t || typeof t != "object")
|
|
1842
|
-
throw new
|
|
1842
|
+
throw new w("UI update graph is missing");
|
|
1843
1843
|
const r = ot(t, "graph");
|
|
1844
1844
|
if (r.type !== "root")
|
|
1845
|
-
throw new
|
|
1846
|
-
const n =
|
|
1845
|
+
throw new w('UI update root element must have type "root"');
|
|
1846
|
+
const n = Ei(r.props, s);
|
|
1847
1847
|
return {
|
|
1848
1848
|
type: "full",
|
|
1849
1849
|
version: e,
|
|
@@ -1853,20 +1853,20 @@ function li(t, s, e) {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
function Ii(t, s, e) {
|
|
1855
1855
|
if (!Array.isArray(t))
|
|
1856
|
-
throw new
|
|
1856
|
+
throw new w("UI diff changes must be an array");
|
|
1857
1857
|
if (!C(s))
|
|
1858
|
-
throw new
|
|
1858
|
+
throw new w("UI diff metadata must be an object");
|
|
1859
1859
|
const r = s.viewId;
|
|
1860
1860
|
if (typeof r != "string" || r.length === 0)
|
|
1861
|
-
throw new
|
|
1861
|
+
throw new w("UI diff metadata is missing viewId");
|
|
1862
1862
|
const n = t.map(
|
|
1863
|
-
(
|
|
1864
|
-
), i = s.optimisticActionId === null || typeof s.optimisticActionId == "string" ? s.optimisticActionId : void 0, o = typeof s.isOptimistic == "boolean" ? s.isOptimistic : void 0, a = typeof s.isUpdate == "boolean" ? s.isUpdate : void 0,
|
|
1863
|
+
(_, c) => oi(_ ?? {}, `changes[${c}]`)
|
|
1864
|
+
), i = s.optimisticActionId === null || typeof s.optimisticActionId == "string" ? s.optimisticActionId : void 0, o = typeof s.isOptimistic == "boolean" ? s.isOptimistic : void 0, a = typeof s.isUpdate == "boolean" ? s.isUpdate : void 0, E = Q(s.optimisticPatch), l = Z(s.optimisticReconcile), I = {
|
|
1865
1865
|
viewId: r,
|
|
1866
1866
|
...i !== void 0 ? { optimisticActionId: i } : {},
|
|
1867
1867
|
...o !== void 0 ? { isOptimistic: o } : {},
|
|
1868
1868
|
...a !== void 0 ? { isUpdate: a } : {},
|
|
1869
|
-
...
|
|
1869
|
+
...E ? { optimisticPatch: E } : {},
|
|
1870
1870
|
...l ? { optimisticReconcile: l } : {}
|
|
1871
1871
|
};
|
|
1872
1872
|
return {
|
|
@@ -1876,18 +1876,18 @@ function Ii(t, s, e) {
|
|
|
1876
1876
|
metadata: I
|
|
1877
1877
|
};
|
|
1878
1878
|
}
|
|
1879
|
-
function
|
|
1879
|
+
function Ei(t, s) {
|
|
1880
1880
|
const e = t.viewId;
|
|
1881
1881
|
if (typeof e != "string" || e.length === 0)
|
|
1882
|
-
throw new
|
|
1883
|
-
let r = e, n = t.optimisticActionId === null || typeof t.optimisticActionId == "string" ? t.optimisticActionId : void 0, i = typeof t.isOptimistic == "boolean" ? t.isOptimistic : void 0, o = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0, a = Q(t.optimisticPatch),
|
|
1884
|
-
return C(s) && (typeof s.viewId == "string" && s.viewId.length > 0 && (r = s.viewId), (s.optimisticActionId === null || typeof s.optimisticActionId == "string") && (n = s.optimisticActionId), typeof s.isOptimistic == "boolean" && (i = s.isOptimistic), typeof s.isUpdate == "boolean" && (o = s.isUpdate), s.optimisticPatch !== void 0 && (a = Q(s.optimisticPatch)), s.optimisticReconcile !== void 0 && (
|
|
1882
|
+
throw new w("UI update root is missing viewId");
|
|
1883
|
+
let r = e, n = t.optimisticActionId === null || typeof t.optimisticActionId == "string" ? t.optimisticActionId : void 0, i = typeof t.isOptimistic == "boolean" ? t.isOptimistic : void 0, o = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0, a = Q(t.optimisticPatch), E = Z(t.optimisticReconcile);
|
|
1884
|
+
return C(s) && (typeof s.viewId == "string" && s.viewId.length > 0 && (r = s.viewId), (s.optimisticActionId === null || typeof s.optimisticActionId == "string") && (n = s.optimisticActionId), typeof s.isOptimistic == "boolean" && (i = s.isOptimistic), typeof s.isUpdate == "boolean" && (o = s.isUpdate), s.optimisticPatch !== void 0 && (a = Q(s.optimisticPatch)), s.optimisticReconcile !== void 0 && (E = Z(s.optimisticReconcile))), {
|
|
1885
1885
|
viewId: r,
|
|
1886
1886
|
...n !== void 0 ? { optimisticActionId: n } : {},
|
|
1887
1887
|
...i !== void 0 ? { isOptimistic: i } : {},
|
|
1888
1888
|
...o !== void 0 ? { isUpdate: o } : {},
|
|
1889
1889
|
...a ? { optimisticPatch: a } : {},
|
|
1890
|
-
...
|
|
1890
|
+
...E ? { optimisticReconcile: E } : {}
|
|
1891
1891
|
};
|
|
1892
1892
|
}
|
|
1893
1893
|
function Q(t) {
|
|
@@ -1898,10 +1898,10 @@ function Q(t) {
|
|
|
1898
1898
|
return;
|
|
1899
1899
|
let a;
|
|
1900
1900
|
if (Array.isArray(o)) {
|
|
1901
|
-
const
|
|
1901
|
+
const E = [];
|
|
1902
1902
|
for (const l of o)
|
|
1903
|
-
typeof l == "string" && l.length > 0 &&
|
|
1904
|
-
a =
|
|
1903
|
+
typeof l == "string" && l.length > 0 && E.push(l);
|
|
1904
|
+
a = E;
|
|
1905
1905
|
}
|
|
1906
1906
|
return {
|
|
1907
1907
|
id: e,
|
|
@@ -1929,32 +1929,32 @@ function Z(t) {
|
|
|
1929
1929
|
...n && n.length > 0 ? { drop: n } : {}
|
|
1930
1930
|
};
|
|
1931
1931
|
}
|
|
1932
|
-
class
|
|
1932
|
+
class w extends Error {
|
|
1933
1933
|
constructor(s, e) {
|
|
1934
1934
|
super(s), this.causeError = e, this.name = "UiUpdateParseError", e instanceof Error && (this.stack = e.stack);
|
|
1935
1935
|
}
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function _i(t) {
|
|
1938
1938
|
let s;
|
|
1939
1939
|
try {
|
|
1940
1940
|
s = JSON.parse(t.Json);
|
|
1941
1941
|
} catch (o) {
|
|
1942
|
-
throw new
|
|
1942
|
+
throw new w("Failed to parse UIUpdate.Json payload", o);
|
|
1943
1943
|
}
|
|
1944
1944
|
if (!s || typeof s != "object")
|
|
1945
|
-
throw new
|
|
1945
|
+
throw new w("UI update snapshot must be an object");
|
|
1946
1946
|
const { type: e, version: r } = s;
|
|
1947
1947
|
if (e !== "full" && e !== "diff")
|
|
1948
|
-
throw new
|
|
1948
|
+
throw new w(`Unknown UI update type: ${String(e)}`);
|
|
1949
1949
|
if (typeof r != "number")
|
|
1950
|
-
throw new
|
|
1950
|
+
throw new w("UI update version must be a number");
|
|
1951
1951
|
const n = e === "full" ? li(s.graph, s.metadata, r) : Ii(s.changes, s.metadata, r), i = t.Payloads ? ai(t.Payloads) : /* @__PURE__ */ new Map();
|
|
1952
1952
|
return {
|
|
1953
1953
|
snapshot: n,
|
|
1954
1954
|
payloads: i
|
|
1955
1955
|
};
|
|
1956
1956
|
}
|
|
1957
|
-
class
|
|
1957
|
+
class ci {
|
|
1958
1958
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1959
1959
|
cache = /* @__PURE__ */ new Map();
|
|
1960
1960
|
/**
|
|
@@ -2057,7 +2057,7 @@ class fi {
|
|
|
2057
2057
|
patchesDirty = !0;
|
|
2058
2058
|
payloadsDirty = !0;
|
|
2059
2059
|
// Handler cache for stable event handlers
|
|
2060
|
-
handlerCache = new
|
|
2060
|
+
handlerCache = new ci();
|
|
2061
2061
|
getSortedPatches(s) {
|
|
2062
2062
|
const e = this.buildPatchCacheKey(s.patches);
|
|
2063
2063
|
if (s.sortedPatchesCacheKey === e && s.sortedPatchesCache)
|
|
@@ -2096,46 +2096,46 @@ class fi {
|
|
|
2096
2096
|
const a = e.type === "diff" && n.isUpdate === !0;
|
|
2097
2097
|
if (e.version < o.version || e.version === o.version && !a)
|
|
2098
2098
|
return !1;
|
|
2099
|
-
let
|
|
2100
|
-
if (this.rootViewId || (this.rootViewId = i,
|
|
2099
|
+
let E = !1;
|
|
2100
|
+
if (this.rootViewId || (this.rootViewId = i, E = !0, this.structureChanged = !0), n.optimisticReconcile?.drop)
|
|
2101
2101
|
for (const I of n.optimisticReconcile.drop)
|
|
2102
|
-
o.patches.delete(I) && (
|
|
2102
|
+
o.patches.delete(I) && (E = !0, this.patchesDirty = !0, this.invalidatePatchCache(o));
|
|
2103
2103
|
if (n.optimisticPatch?.supersedes)
|
|
2104
2104
|
for (const I of n.optimisticPatch.supersedes)
|
|
2105
|
-
o.patches.delete(I) && (
|
|
2105
|
+
o.patches.delete(I) && (E = !0, this.patchesDirty = !0, this.invalidatePatchCache(o));
|
|
2106
2106
|
const l = o.composite ?? o.baseline;
|
|
2107
2107
|
if (e.type === "full")
|
|
2108
|
-
o.baseline = e.root, o.composite = e.root, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? e.version, o.patches.clear(), this.invalidatePatchCache(o), o.version = e.version,
|
|
2108
|
+
o.baseline = e.root, o.composite = e.root, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? e.version, o.patches.clear(), this.invalidatePatchCache(o), o.version = e.version, E = !0, this.viewsDirty = !0, this.patchesDirty = !0, this.structureChanged = !0, e.root && b(e.root, this.changedNodeIds);
|
|
2109
2109
|
else if (n.optimisticPatch) {
|
|
2110
2110
|
if (!l)
|
|
2111
2111
|
return !1;
|
|
2112
2112
|
const I = J(l, e.changes);
|
|
2113
|
-
I !== l && (o.composite = I,
|
|
2114
|
-
const
|
|
2115
|
-
id:
|
|
2116
|
-
actionId:
|
|
2117
|
-
ordinal:
|
|
2118
|
-
baseVersion:
|
|
2113
|
+
I !== l && (o.composite = I, E = !0, this.viewsDirty = !0, j(l, I, this.changedNodeIds));
|
|
2114
|
+
const _ = n.optimisticPatch, c = {
|
|
2115
|
+
id: _.id,
|
|
2116
|
+
actionId: _.actionId,
|
|
2117
|
+
ordinal: _.ordinal,
|
|
2118
|
+
baseVersion: _.baseVersion,
|
|
2119
2119
|
changes: e.changes
|
|
2120
2120
|
};
|
|
2121
|
-
o.patches.set(
|
|
2121
|
+
o.patches.set(c.id, c), this.invalidatePatchCache(o), E = !0, this.patchesDirty = !0, o.version = e.version;
|
|
2122
2122
|
} else {
|
|
2123
2123
|
const I = o.baseline ?? l;
|
|
2124
2124
|
if (!I)
|
|
2125
2125
|
return !1;
|
|
2126
|
-
const
|
|
2127
|
-
|
|
2128
|
-
let
|
|
2129
|
-
const
|
|
2130
|
-
for (const u of
|
|
2131
|
-
const y = J(
|
|
2132
|
-
y !==
|
|
2133
|
-
}
|
|
2134
|
-
o.composite !==
|
|
2126
|
+
const _ = J(I, e.changes);
|
|
2127
|
+
_ !== I ? (o.baseline = _, E = !0, this.viewsDirty = !0) : o.baseline = _, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? e.version;
|
|
2128
|
+
let c = o.baseline ?? _;
|
|
2129
|
+
const N = this.getSortedPatches(o);
|
|
2130
|
+
for (const u of N) {
|
|
2131
|
+
const y = J(c, u.changes);
|
|
2132
|
+
y !== c && (E = !0, this.viewsDirty = !0), c = y, u.baseVersion = o.baselineVersion;
|
|
2133
|
+
}
|
|
2134
|
+
o.composite !== c && (o.composite = c, E = !0, this.viewsDirty = !0), l && c ? j(l, c, this.changedNodeIds) : c && b(c, this.changedNodeIds), o.version = e.version;
|
|
2135
2135
|
}
|
|
2136
|
-
for (const [I,
|
|
2137
|
-
this.payloads.get(I) !==
|
|
2138
|
-
return
|
|
2136
|
+
for (const [I, _] of r)
|
|
2137
|
+
this.payloads.get(I) !== _ && (this.payloads.set(I, _), E = !0, this.payloadsDirty = !0);
|
|
2138
|
+
return E ? (this.commitSnapshot(), this.notify(), !0) : (o.version = e.version, !1);
|
|
2139
2139
|
}
|
|
2140
2140
|
replaceFromWire(s) {
|
|
2141
2141
|
const e = {
|
|
@@ -2153,44 +2153,44 @@ class fi {
|
|
|
2153
2153
|
if (e !== void 0 && this.snapshot.version !== e)
|
|
2154
2154
|
return !1;
|
|
2155
2155
|
let r = !1, n = null, i = null, o = null;
|
|
2156
|
-
const a = () => (n || (n = new Map(this.snapshot.views)), n),
|
|
2156
|
+
const a = () => (n || (n = new Map(this.snapshot.views)), n), E = () => (i || (i = new Map(this.snapshot.payloads)), i), l = () => (o || (o = new Map(this.snapshot.optimisticPatches)), o);
|
|
2157
2157
|
if (s.deleteViews && s.deleteViews.length > 0)
|
|
2158
|
-
for (const
|
|
2159
|
-
a().delete(
|
|
2158
|
+
for (const c of s.deleteViews)
|
|
2159
|
+
a().delete(c) && (r = !0, this.structureChanged = !0);
|
|
2160
2160
|
if (s.upsertViews && s.upsertViews.length > 0)
|
|
2161
|
-
for (const [
|
|
2162
|
-
const u = a(), y = u.get(
|
|
2163
|
-
y !==
|
|
2161
|
+
for (const [c, N] of s.upsertViews) {
|
|
2162
|
+
const u = a(), y = u.get(c);
|
|
2163
|
+
y !== N && (u.set(c, N), r = !0, y ? j(y, N, this.changedNodeIds) : (b(N, this.changedNodeIds), this.structureChanged = !0));
|
|
2164
2164
|
}
|
|
2165
2165
|
if (s.deletePayloads && s.deletePayloads.length > 0)
|
|
2166
|
-
for (const
|
|
2167
|
-
|
|
2166
|
+
for (const c of s.deletePayloads)
|
|
2167
|
+
E().delete(c) && (r = !0);
|
|
2168
2168
|
if (s.upsertPayloads && s.upsertPayloads.length > 0)
|
|
2169
|
-
for (const [
|
|
2170
|
-
const u =
|
|
2171
|
-
u.get(
|
|
2169
|
+
for (const [c, N] of s.upsertPayloads) {
|
|
2170
|
+
const u = E();
|
|
2171
|
+
u.get(c) !== N && (u.set(c, N), r = !0);
|
|
2172
2172
|
}
|
|
2173
2173
|
if (s.deleteOptimisticPatchesForViews && s.deleteOptimisticPatchesForViews.length > 0)
|
|
2174
|
-
for (const
|
|
2175
|
-
l().delete(
|
|
2174
|
+
for (const c of s.deleteOptimisticPatchesForViews)
|
|
2175
|
+
l().delete(c) && (r = !0);
|
|
2176
2176
|
if (s.upsertOptimisticPatches && s.upsertOptimisticPatches.length > 0)
|
|
2177
|
-
for (const [
|
|
2178
|
-
const u = l(), y = u.get(
|
|
2179
|
-
|
|
2177
|
+
for (const [c, N] of s.upsertOptimisticPatches) {
|
|
2178
|
+
const u = l(), y = u.get(c);
|
|
2179
|
+
Ai(y, N) || (u.set(c, N), r = !0);
|
|
2180
2180
|
}
|
|
2181
2181
|
const I = s.rootViewId ?? this.snapshot.rootViewId;
|
|
2182
2182
|
I !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
|
|
2183
|
-
const
|
|
2184
|
-
if (
|
|
2185
|
-
return this.snapshot = { ...this.snapshot, version:
|
|
2186
|
-
for (const
|
|
2187
|
-
this.nodeVersions.set(
|
|
2183
|
+
const _ = s.nextVersion;
|
|
2184
|
+
if (_ !== this.snapshot.version && (r = !0), !r)
|
|
2185
|
+
return this.snapshot = { ...this.snapshot, version: _ }, !1;
|
|
2186
|
+
for (const c of this.changedNodeIds)
|
|
2187
|
+
this.nodeVersions.set(c, (this.nodeVersions.get(c) ?? 0) + 1);
|
|
2188
2188
|
return this.snapshot = {
|
|
2189
2189
|
rootViewId: I,
|
|
2190
2190
|
views: n ?? new Map(this.snapshot.views),
|
|
2191
2191
|
payloads: i ?? new Map(this.snapshot.payloads),
|
|
2192
2192
|
optimisticPatches: o ?? new Map(this.snapshot.optimisticPatches),
|
|
2193
|
-
version:
|
|
2193
|
+
version: _
|
|
2194
2194
|
}, this.notify(), !0;
|
|
2195
2195
|
}
|
|
2196
2196
|
replaceSnapshot(s) {
|
|
@@ -2266,10 +2266,10 @@ class fi {
|
|
|
2266
2266
|
const i = /* @__PURE__ */ new Map();
|
|
2267
2267
|
for (const [o, a] of this.views)
|
|
2268
2268
|
if (a.patches.size > 0) {
|
|
2269
|
-
const
|
|
2269
|
+
const E = this.getSortedPatches(a);
|
|
2270
2270
|
i.set(
|
|
2271
2271
|
o,
|
|
2272
|
-
|
|
2272
|
+
E.map((l) => ({
|
|
2273
2273
|
id: l.id,
|
|
2274
2274
|
actionId: l.actionId,
|
|
2275
2275
|
ordinal: l.ordinal,
|
|
@@ -2396,64 +2396,64 @@ function Xt(t, s, e) {
|
|
|
2396
2396
|
if (S === void 0)
|
|
2397
2397
|
(h !== void 0 || f in a) && (o || (a = G(a), o = !0), delete a[f]);
|
|
2398
2398
|
else if (tt(S)) {
|
|
2399
|
-
const
|
|
2400
|
-
M(
|
|
2399
|
+
const A = G(S);
|
|
2400
|
+
M(A, h) || (o || (a = G(a), o = !0), a[f] = A);
|
|
2401
2401
|
} else
|
|
2402
2402
|
M(S, h) || (o || (a = G(a), o = !0), a[f] = S);
|
|
2403
2403
|
}
|
|
2404
|
-
let
|
|
2405
|
-
r?.styleIds !== void 0 && (zt(n.styleIds, r.styleIds) || (l = r.styleIds,
|
|
2404
|
+
let E = !1, l = n.styleIds;
|
|
2405
|
+
r?.styleIds !== void 0 && (zt(n.styleIds, r.styleIds) || (l = r.styleIds, E = !0));
|
|
2406
2406
|
const I = n.children ?? [];
|
|
2407
|
-
let
|
|
2407
|
+
let _ = I, c = !1;
|
|
2408
2408
|
if (r?.removals && r.removals.length > 0 || r?.moves && r.moves.length > 0 || r?.inserts && r.inserts.length > 0) {
|
|
2409
|
-
const f =
|
|
2409
|
+
const f = _.slice();
|
|
2410
2410
|
if (r?.removals && r.removals.length > 0) {
|
|
2411
|
-
const S = [...r.removals].sort((h,
|
|
2411
|
+
const S = [...r.removals].sort((h, A) => A.index - h.index);
|
|
2412
2412
|
for (const h of S)
|
|
2413
2413
|
if (h.index >= 0 && h.index < f.length && f[h.index].id === h.nodeId)
|
|
2414
2414
|
f.splice(h.index, 1);
|
|
2415
2415
|
else {
|
|
2416
|
-
const
|
|
2417
|
-
|
|
2416
|
+
const A = f.findIndex((R) => R.id === h.nodeId);
|
|
2417
|
+
A >= 0 && f.splice(A, 1);
|
|
2418
2418
|
}
|
|
2419
|
-
|
|
2419
|
+
c = !0;
|
|
2420
2420
|
}
|
|
2421
2421
|
if (r?.moves && r.moves.length > 0) {
|
|
2422
|
-
const S = [...r.moves].sort((
|
|
2423
|
-
for (const
|
|
2424
|
-
const R = f.findIndex((z) => z.id ===
|
|
2425
|
-
R >= 0 && (h.set(
|
|
2422
|
+
const S = [...r.moves].sort((A, R) => A.toIndex - R.toIndex), h = /* @__PURE__ */ new Map();
|
|
2423
|
+
for (const A of S) {
|
|
2424
|
+
const R = f.findIndex((z) => z.id === A.nodeId);
|
|
2425
|
+
R >= 0 && (h.set(A.nodeId, f[R]), f.splice(R, 1));
|
|
2426
2426
|
}
|
|
2427
|
-
for (const
|
|
2428
|
-
const R = h.get(
|
|
2427
|
+
for (const A of S) {
|
|
2428
|
+
const R = h.get(A.nodeId);
|
|
2429
2429
|
if (R) {
|
|
2430
|
-
const z = Math.min(
|
|
2430
|
+
const z = Math.min(A.toIndex, f.length);
|
|
2431
2431
|
f.splice(z, 0, R);
|
|
2432
2432
|
}
|
|
2433
2433
|
}
|
|
2434
|
-
|
|
2434
|
+
c = !0;
|
|
2435
2435
|
}
|
|
2436
2436
|
if (r?.inserts && r.inserts.length > 0) {
|
|
2437
|
-
const S = [...r.inserts].sort((h,
|
|
2437
|
+
const S = [...r.inserts].sort((h, A) => h.index - A.index);
|
|
2438
2438
|
for (const h of S) {
|
|
2439
|
-
const
|
|
2440
|
-
f.splice(
|
|
2439
|
+
const A = Math.min(h.index, f.length);
|
|
2440
|
+
f.splice(A, 0, h.node);
|
|
2441
2441
|
}
|
|
2442
|
-
|
|
2442
|
+
c = !0;
|
|
2443
2443
|
}
|
|
2444
|
-
|
|
2444
|
+
_ = f;
|
|
2445
2445
|
}
|
|
2446
2446
|
let u;
|
|
2447
|
-
for (let f = 0; f <
|
|
2448
|
-
const S =
|
|
2449
|
-
h !== S && (u || (u =
|
|
2447
|
+
for (let f = 0; f < _.length; f++) {
|
|
2448
|
+
const S = _[f], h = Xt(S, s);
|
|
2449
|
+
h !== S && (u || (u = _.slice()), u[f] = h);
|
|
2450
2450
|
}
|
|
2451
|
-
return u && (
|
|
2451
|
+
return u && (_ = u, c = !0), i || o || E || c ? !o && !c && !E ? n : {
|
|
2452
2452
|
id: t.id,
|
|
2453
2453
|
type: t.type,
|
|
2454
2454
|
props: o ? a : n.props,
|
|
2455
|
-
children:
|
|
2456
|
-
styleIds:
|
|
2455
|
+
children: c ? _ : I,
|
|
2456
|
+
styleIds: E ? l : n.styleIds
|
|
2457
2457
|
} : t;
|
|
2458
2458
|
}
|
|
2459
2459
|
function b(t, s) {
|
|
@@ -2479,12 +2479,12 @@ function jt(t, s, e, r) {
|
|
|
2479
2479
|
const a = ui(r);
|
|
2480
2480
|
for (const l of i)
|
|
2481
2481
|
a.set(l.id, l);
|
|
2482
|
-
let
|
|
2482
|
+
let E = !1;
|
|
2483
2483
|
for (let l = 0; l < o.length; l++) {
|
|
2484
|
-
const I = o[l],
|
|
2485
|
-
|
|
2484
|
+
const I = o[l], _ = a.get(I.id);
|
|
2485
|
+
_ ? (jt(_, I, e, r + 1), !E && l < i.length && i[l].id !== I.id && (E = !0)) : (b(I, e), E = !0);
|
|
2486
2486
|
}
|
|
2487
|
-
(i.length !== o.length ||
|
|
2487
|
+
(i.length !== o.length || E) && e.add(s.id);
|
|
2488
2488
|
}
|
|
2489
2489
|
}
|
|
2490
2490
|
function Ti(t, s) {
|
|
@@ -2503,7 +2503,7 @@ function Wt(t, s) {
|
|
|
2503
2503
|
function zt(t, s) {
|
|
2504
2504
|
return M(t, s);
|
|
2505
2505
|
}
|
|
2506
|
-
function
|
|
2506
|
+
function Ai(t, s) {
|
|
2507
2507
|
if (t === s) return !0;
|
|
2508
2508
|
if (!t || !s || t.length !== s.length) return !1;
|
|
2509
2509
|
for (let e = 0; e < t.length; e++) {
|
|
@@ -2513,7 +2513,7 @@ function Ni(t, s) {
|
|
|
2513
2513
|
}
|
|
2514
2514
|
return !0;
|
|
2515
2515
|
}
|
|
2516
|
-
function
|
|
2516
|
+
function Ni(t, s) {
|
|
2517
2517
|
if (s.length === 0)
|
|
2518
2518
|
return t;
|
|
2519
2519
|
const e = [...s].sort((i, o) => i.start - o.start);
|
|
@@ -2521,12 +2521,12 @@ function Ai(t, s) {
|
|
|
2521
2521
|
for (const i of e) {
|
|
2522
2522
|
const o = lt(i.start + n, 0, r.length);
|
|
2523
2523
|
if (i.end == null) {
|
|
2524
|
-
const I = r.slice(o),
|
|
2525
|
-
r = r.slice(0, o) + i.insertedText + I.slice(
|
|
2524
|
+
const I = r.slice(o), _ = di(I, i.insertedText);
|
|
2525
|
+
r = r.slice(0, o) + i.insertedText + I.slice(_), n += i.insertedText.length - _;
|
|
2526
2526
|
continue;
|
|
2527
2527
|
}
|
|
2528
|
-
const a = i.end + n,
|
|
2529
|
-
r = r.slice(0, o) + i.insertedText + r.slice(
|
|
2528
|
+
const a = i.end + n, E = lt(a, o, r.length), l = E - o;
|
|
2529
|
+
r = r.slice(0, o) + i.insertedText + r.slice(E), n += i.insertedText.length - l;
|
|
2530
2530
|
}
|
|
2531
2531
|
return r;
|
|
2532
2532
|
}
|
|
@@ -2546,31 +2546,31 @@ function Jt(t, s, e) {
|
|
|
2546
2546
|
if (r.length > 0) {
|
|
2547
2547
|
const l = /* @__PURE__ */ new Map();
|
|
2548
2548
|
for (const I of r) {
|
|
2549
|
-
const
|
|
2550
|
-
|
|
2549
|
+
const _ = l.get(I.propertyName);
|
|
2550
|
+
_ ? _.push(I) : l.set(I.propertyName, [I]);
|
|
2551
2551
|
}
|
|
2552
|
-
for (const [I,
|
|
2553
|
-
const
|
|
2552
|
+
for (const [I, _] of l.entries()) {
|
|
2553
|
+
const c = i[I], u = Ni(typeof c == "string" ? c : "", _);
|
|
2554
2554
|
n || (i = G(i), n = !0), i[I] = u;
|
|
2555
2555
|
}
|
|
2556
2556
|
}
|
|
2557
2557
|
let o = !1;
|
|
2558
2558
|
const a = t.children ?? [];
|
|
2559
|
-
let
|
|
2559
|
+
let E = a;
|
|
2560
2560
|
if (a.length > 0) {
|
|
2561
2561
|
let l;
|
|
2562
2562
|
for (let I = 0; I < a.length; I++) {
|
|
2563
|
-
const
|
|
2564
|
-
|
|
2563
|
+
const _ = a[I], c = Jt(_, s);
|
|
2564
|
+
c.changed && (l || (l = [...a]), l[I] = c.node);
|
|
2565
2565
|
}
|
|
2566
|
-
l && (
|
|
2566
|
+
l && (E = l, o = !0);
|
|
2567
2567
|
}
|
|
2568
2568
|
return !n && !o ? { node: t, changed: !1 } : {
|
|
2569
2569
|
node: {
|
|
2570
2570
|
id: t.id,
|
|
2571
2571
|
type: t.type,
|
|
2572
2572
|
props: n ? i : t.props,
|
|
2573
|
-
children: o ?
|
|
2573
|
+
children: o ? E : a,
|
|
2574
2574
|
styleIds: t.styleIds
|
|
2575
2575
|
},
|
|
2576
2576
|
changed: !0
|
|
@@ -2619,13 +2619,13 @@ function M(t, s) {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
return !1;
|
|
2621
2621
|
}
|
|
2622
|
-
const Ci = 16, yi = 50,
|
|
2623
|
-
let qt = Ci, Qt = yi, B = [], x = null, H = null,
|
|
2622
|
+
const Ci = 16, yi = 50, m = new hi(), k = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2623
|
+
let qt = Ci, Qt = yi, B = [], x = null, H = null, L = 0, W = 0;
|
|
2624
2624
|
const F = /* @__PURE__ */ new Map();
|
|
2625
|
-
function
|
|
2625
|
+
function Di() {
|
|
2626
2626
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2627
2627
|
}
|
|
2628
|
-
function
|
|
2628
|
+
function wi() {
|
|
2629
2629
|
try {
|
|
2630
2630
|
return crypto.randomUUID();
|
|
2631
2631
|
} catch {
|
|
@@ -2662,7 +2662,7 @@ function Ui(t, s) {
|
|
|
2662
2662
|
}
|
|
2663
2663
|
return !0;
|
|
2664
2664
|
}
|
|
2665
|
-
function
|
|
2665
|
+
function Li(t, s, e) {
|
|
2666
2666
|
if (!e || e.version === -1)
|
|
2667
2667
|
return { type: "ReplaceStreamSnapshot", snapshot: Ri(s) };
|
|
2668
2668
|
let r, n;
|
|
@@ -2675,13 +2675,13 @@ function mi(t, s, e) {
|
|
|
2675
2675
|
e.payloads.get(l) !== I && (i ??= []).push([l, I]);
|
|
2676
2676
|
for (const l of e.payloads.keys())
|
|
2677
2677
|
s.payloads.has(l) || (o ??= []).push(l);
|
|
2678
|
-
let a,
|
|
2678
|
+
let a, E;
|
|
2679
2679
|
for (const [l, I] of s.optimisticPatches) {
|
|
2680
|
-
const
|
|
2681
|
-
Ui(
|
|
2680
|
+
const _ = e.optimisticPatches.get(l);
|
|
2681
|
+
Ui(_, I) || (a ??= []).push([l, I.slice()]);
|
|
2682
2682
|
}
|
|
2683
2683
|
for (const l of e.optimisticPatches.keys())
|
|
2684
|
-
s.optimisticPatches.has(l) || (
|
|
2684
|
+
s.optimisticPatches.has(l) || (E ??= []).push(l);
|
|
2685
2685
|
return {
|
|
2686
2686
|
type: "PatchStreamSnapshot",
|
|
2687
2687
|
streamId: t,
|
|
@@ -2694,58 +2694,58 @@ function mi(t, s, e) {
|
|
|
2694
2694
|
upsertPayloads: i,
|
|
2695
2695
|
deletePayloads: o,
|
|
2696
2696
|
upsertOptimisticPatches: a,
|
|
2697
|
-
deleteOptimisticPatchesForViews:
|
|
2697
|
+
deleteOptimisticPatchesForViews: E
|
|
2698
2698
|
};
|
|
2699
2699
|
}
|
|
2700
2700
|
function Zt() {
|
|
2701
2701
|
x || (x = setTimeout(It, qt)), H || (H = setTimeout(It, Qt));
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2703
|
+
function g(t) {
|
|
2704
2704
|
B.push(t), Zt();
|
|
2705
2705
|
}
|
|
2706
2706
|
function It() {
|
|
2707
2707
|
if (x && (clearTimeout(x), x = null), H && (clearTimeout(H), H = null), B.length === 0 && F.size === 0) {
|
|
2708
|
-
|
|
2708
|
+
L = 0, W = 0;
|
|
2709
2709
|
return;
|
|
2710
2710
|
}
|
|
2711
2711
|
const t = [];
|
|
2712
2712
|
for (const [e, r] of F)
|
|
2713
2713
|
t.push({ trackId: e, version: r.version, senderId: r.senderId });
|
|
2714
2714
|
const s = {
|
|
2715
|
-
batchId:
|
|
2716
|
-
createdAtMs:
|
|
2715
|
+
batchId: wi(),
|
|
2716
|
+
createdAtMs: Di(),
|
|
2717
2717
|
ops: B,
|
|
2718
2718
|
...t.length > 0 ? { acks: t } : {},
|
|
2719
|
-
stats: { uiMessagesConsumed:
|
|
2719
|
+
stats: { uiMessagesConsumed: L, bytesConsumed: W }
|
|
2720
2720
|
};
|
|
2721
|
-
B = [],
|
|
2721
|
+
B = [], L = 0, W = 0, F.clear(), self.postMessage(s);
|
|
2722
2722
|
}
|
|
2723
2723
|
function te(t) {
|
|
2724
2724
|
return `${t.senderId}_${t.trackId}`;
|
|
2725
2725
|
}
|
|
2726
|
-
async function
|
|
2727
|
-
const s = await
|
|
2726
|
+
async function mi(t) {
|
|
2727
|
+
const s = await mr(t), e = /* @__PURE__ */ new Set();
|
|
2728
2728
|
for (const r of Object.values(s.UIStreams ?? {})) {
|
|
2729
2729
|
const n = r.StreamId;
|
|
2730
2730
|
e.add(n);
|
|
2731
2731
|
const i = r.Info?.Category;
|
|
2732
|
-
|
|
2732
|
+
m.getSnapshot(n)?.category !== i && (m.setCategory(n, i), g({ type: "SetStreamCategory", streamId: n, category: i }));
|
|
2733
2733
|
}
|
|
2734
|
-
for (const r of
|
|
2735
|
-
e.has(r.streamId) || (
|
|
2734
|
+
for (const r of m.getSnapshots())
|
|
2735
|
+
e.has(r.streamId) || (m.remove(r.streamId), Y.delete(r.streamId), g({ type: "RemoveStream", streamId: r.streamId }));
|
|
2736
2736
|
}
|
|
2737
2737
|
async function Oi(t) {
|
|
2738
|
-
const s = et(t), e = te(s), r = await ti(t), n =
|
|
2739
|
-
if ((i === void 0 || n.snapshot.version > i.version) && (F.set(s.trackId, { version: n.snapshot.version, senderId: s.senderId }), Zt()), !
|
|
2738
|
+
const s = et(t), e = te(s), r = await ti(t), n = _i(r), i = F.get(s.trackId);
|
|
2739
|
+
if ((i === void 0 || n.snapshot.version > i.version) && (F.set(s.trackId, { version: n.snapshot.version, senderId: s.senderId }), Zt()), !m.apply(e, n))
|
|
2740
2740
|
return;
|
|
2741
|
-
const a =
|
|
2741
|
+
const a = m.getSnapshot(e);
|
|
2742
2742
|
if (!a)
|
|
2743
2743
|
return;
|
|
2744
|
-
const
|
|
2745
|
-
Y.set(e, a),
|
|
2744
|
+
const E = Y.get(e);
|
|
2745
|
+
Y.set(e, a), g(Li(e, a, E));
|
|
2746
2746
|
}
|
|
2747
|
-
async function
|
|
2748
|
-
const s = await
|
|
2747
|
+
async function Pi(t) {
|
|
2748
|
+
const s = await Dn(t);
|
|
2749
2749
|
if (!s.StyleId)
|
|
2750
2750
|
return;
|
|
2751
2751
|
const e = {
|
|
@@ -2753,10 +2753,10 @@ async function gi(t) {
|
|
|
2753
2753
|
css: s.Style?.css,
|
|
2754
2754
|
common: s.Style?.common
|
|
2755
2755
|
}, r = k.get(e.styleId);
|
|
2756
|
-
r && r.css === e.css && r.common === e.common || (k.set(e.styleId, e),
|
|
2756
|
+
r && r.css === e.css && r.common === e.common || (k.set(e.styleId, e), g({ type: "UpsertUiStyle", style: e }));
|
|
2757
2757
|
}
|
|
2758
|
-
async function
|
|
2759
|
-
const s = await
|
|
2758
|
+
async function gi(t) {
|
|
2759
|
+
const s = await gn(t);
|
|
2760
2760
|
if (s.Styles)
|
|
2761
2761
|
for (const e of s.Styles) {
|
|
2762
2762
|
if (!e.StyleId)
|
|
@@ -2766,47 +2766,47 @@ async function Pi(t) {
|
|
|
2766
2766
|
css: e.Style?.css,
|
|
2767
2767
|
common: e.Style?.common
|
|
2768
2768
|
}, n = k.get(r.styleId);
|
|
2769
|
-
n && n.css === r.css && n.common === r.common || (k.set(r.styleId, r),
|
|
2769
|
+
n && n.css === r.css && n.common === r.common || (k.set(r.styleId, r), g({ type: "UpsertUiStyle", style: r }));
|
|
2770
2770
|
}
|
|
2771
2771
|
}
|
|
2772
2772
|
function bi(t) {
|
|
2773
2773
|
const s = et(t), e = te(s);
|
|
2774
|
-
|
|
2774
|
+
m.clear(e), Y.delete(e), g({ type: "ClearStream", streamId: e });
|
|
2775
2775
|
}
|
|
2776
2776
|
async function Fi(t) {
|
|
2777
|
-
const s = await
|
|
2777
|
+
const s = await $n(t);
|
|
2778
2778
|
if (!(!s.StyleIds || s.StyleIds.length === 0))
|
|
2779
2779
|
for (const e of s.StyleIds)
|
|
2780
|
-
k.delete(e) &&
|
|
2780
|
+
k.delete(e) && g({ type: "RemoveUiStyle", styleId: e });
|
|
2781
2781
|
}
|
|
2782
|
-
async function
|
|
2782
|
+
async function vi(t) {
|
|
2783
2783
|
const s = new Uint8Array(t);
|
|
2784
2784
|
W += s.byteLength;
|
|
2785
2785
|
const e = s;
|
|
2786
2786
|
switch (se(e)) {
|
|
2787
|
-
case
|
|
2788
|
-
await
|
|
2787
|
+
case P.CORE_GLOBAL_STATE:
|
|
2788
|
+
await mi(e), L++;
|
|
2789
2789
|
return;
|
|
2790
|
-
case
|
|
2790
|
+
case P.UI_UPDATE:
|
|
2791
2791
|
try {
|
|
2792
2792
|
await Oi(e);
|
|
2793
2793
|
} catch (n) {
|
|
2794
|
-
return n instanceof
|
|
2794
|
+
return n instanceof w, void 0;
|
|
2795
2795
|
} finally {
|
|
2796
|
-
|
|
2796
|
+
L++;
|
|
2797
2797
|
}
|
|
2798
2798
|
return;
|
|
2799
|
-
case
|
|
2800
|
-
await
|
|
2799
|
+
case P.UI_STYLES:
|
|
2800
|
+
await Pi(e), L++;
|
|
2801
2801
|
return;
|
|
2802
|
-
case
|
|
2803
|
-
await
|
|
2802
|
+
case P.UI_STYLES_BATCH:
|
|
2803
|
+
await gi(e), L++;
|
|
2804
2804
|
return;
|
|
2805
|
-
case
|
|
2806
|
-
await Fi(e),
|
|
2805
|
+
case P.UI_STYLES_DELETE:
|
|
2806
|
+
await Fi(e), L++;
|
|
2807
2807
|
return;
|
|
2808
|
-
case
|
|
2809
|
-
bi(e),
|
|
2808
|
+
case P.ACTION_UI_CLEAR_STREAM:
|
|
2809
|
+
bi(e), L++;
|
|
2810
2810
|
return;
|
|
2811
2811
|
default:
|
|
2812
2812
|
return;
|
|
@@ -2820,10 +2820,10 @@ self.addEventListener("message", (t) => {
|
|
|
2820
2820
|
}
|
|
2821
2821
|
if (s.type === "clear") {
|
|
2822
2822
|
B = [], Y.clear(), F.clear(), k.clear();
|
|
2823
|
-
for (const e of
|
|
2824
|
-
|
|
2823
|
+
for (const e of m.getSnapshots())
|
|
2824
|
+
m.remove(e.streamId);
|
|
2825
2825
|
return;
|
|
2826
2826
|
}
|
|
2827
|
-
s.type === "protocol" &&
|
|
2827
|
+
s.type === "protocol" && vi(s.message).catch(() => {
|
|
2828
2828
|
});
|
|
2829
2829
|
});
|