@ikonai/sdk-ui 1.0.4 → 1.0.5
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-aijZxF0a.js → ui-worker-BrV3-vz5.js} +482 -459
- package/ikon-ui-core.d.ts +3 -3
- package/index.d.ts +1 -1
- package/index.js +520 -501
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
const Zt = {
|
|
2
|
+
Compressed: 8
|
|
3
|
+
};
|
|
4
|
+
function te(t) {
|
|
2
5
|
if (t.length < 8)
|
|
3
6
|
throw new Error("Protocol message too short");
|
|
4
7
|
return (t[4] | t[5] << 8 | t[6] << 16 | t[7] << 24) >>> 0;
|
|
@@ -10,35 +13,54 @@ function et(t) {
|
|
|
10
13
|
const r = s.getUint32(0, !0), n = s.getUint32(4, !0), i = s.getUint32(8, !0), o = s.getUint32(12, !0), a = s.getUint32(16, !0), I = s.getUint32(20, !0), l = s.getUint8(24), c = s.getUint8(25), E = s.getUint8(26);
|
|
11
14
|
if (27 + I * 4 > e.length)
|
|
12
15
|
throw new Error("Protocol header exceeds payload length");
|
|
13
|
-
const
|
|
16
|
+
const A = [];
|
|
14
17
|
let h = 27;
|
|
15
18
|
for (let w = 0; w < I; w++)
|
|
16
|
-
|
|
19
|
+
A.push(s.getUint32(h, !0)), h += 4;
|
|
17
20
|
return {
|
|
18
21
|
length: r,
|
|
19
22
|
opcode: n,
|
|
20
23
|
senderId: i,
|
|
21
24
|
trackId: o,
|
|
22
25
|
sequenceId: a,
|
|
23
|
-
targetIds:
|
|
26
|
+
targetIds: A,
|
|
24
27
|
payloadVersion: l,
|
|
25
28
|
payloadType: c,
|
|
26
29
|
flags: E
|
|
27
30
|
};
|
|
28
31
|
}
|
|
29
|
-
function $(t, e, s) {
|
|
32
|
+
async function $(t, e, s) {
|
|
30
33
|
const r = K(t), n = et(r);
|
|
31
34
|
if (e !== void 0 && n.opcode !== e)
|
|
32
35
|
throw new Error(`Unexpected opcode ${n.opcode}`);
|
|
33
36
|
if (n.payloadType !== 8)
|
|
34
37
|
throw new Error(`Unexpected payload type ${n.payloadType}`);
|
|
35
38
|
const i = 27 + n.targetIds.length * 4;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
let o = r.subarray(i, n.length);
|
|
40
|
+
return (n.flags & Zt.Compressed) !== 0 && (o = await ee(o)), o;
|
|
41
|
+
}
|
|
42
|
+
async function ee(t) {
|
|
43
|
+
if (typeof DecompressionStream > "u")
|
|
44
|
+
throw new Error("DecompressionStream not supported");
|
|
45
|
+
const e = new DecompressionStream("gzip"), s = e.writable.getWriter(), r = new Uint8Array(t);
|
|
46
|
+
s.write(r), s.close();
|
|
47
|
+
const n = e.readable.getReader(), i = [];
|
|
48
|
+
let o = 0;
|
|
49
|
+
for (; ; ) {
|
|
50
|
+
const { done: l, value: c } = await n.read();
|
|
51
|
+
if (l) break;
|
|
52
|
+
i.push(c), o += c.length;
|
|
53
|
+
}
|
|
54
|
+
const a = new Uint8Array(o);
|
|
55
|
+
let I = 0;
|
|
56
|
+
for (let l = 0; l < i.length; l++)
|
|
57
|
+
a.set(i[l], I), I += i[l].length;
|
|
58
|
+
return a;
|
|
59
|
+
}
|
|
60
|
+
var p = /* @__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))(p || {});
|
|
61
|
+
const se = 161, re = 162;
|
|
40
62
|
new TextEncoder();
|
|
41
|
-
const
|
|
63
|
+
const ne = new TextDecoder("utf-8", { fatal: !0 });
|
|
42
64
|
class L {
|
|
43
65
|
constructor(e, s, r) {
|
|
44
66
|
this.buffer = e, this.version = s, this.offset = r, this.end = e.length - 1;
|
|
@@ -49,7 +71,7 @@ class L {
|
|
|
49
71
|
const s = K(e);
|
|
50
72
|
if (s.length < 2)
|
|
51
73
|
throw new Error("Teleport payload too short");
|
|
52
|
-
if (s[0] !==
|
|
74
|
+
if (s[0] !== se || s[s.length - 1] !== re)
|
|
53
75
|
throw new Error("Teleport object missing markers");
|
|
54
76
|
const r = { offset: 1 }, n = C(s, r, "InvalidLength");
|
|
55
77
|
return new L(s, n, r.offset);
|
|
@@ -59,20 +81,20 @@ class L {
|
|
|
59
81
|
return null;
|
|
60
82
|
if (this.offset + 5 > this.buffer.length)
|
|
61
83
|
throw new Error("Teleport object truncated");
|
|
62
|
-
const e =
|
|
84
|
+
const e = le(this.buffer, this.offset);
|
|
63
85
|
this.offset += 4;
|
|
64
86
|
const s = this.buffer[this.offset++], r = s >> 4 & 15;
|
|
65
87
|
if ((s & 15) !== 0)
|
|
66
88
|
throw new Error("Teleport field flags must be zero");
|
|
67
|
-
const n =
|
|
89
|
+
const n = F(r);
|
|
68
90
|
let i;
|
|
69
91
|
if (n >= 0)
|
|
70
|
-
|
|
92
|
+
S(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
|
|
71
93
|
else {
|
|
72
94
|
const o = { offset: this.offset }, a = C(this.buffer, o, "InvalidLength");
|
|
73
|
-
|
|
95
|
+
S(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
|
|
74
96
|
}
|
|
75
|
-
return new
|
|
97
|
+
return new ie(e, r, i);
|
|
76
98
|
}
|
|
77
99
|
}
|
|
78
100
|
class U {
|
|
@@ -137,7 +159,7 @@ class U {
|
|
|
137
159
|
return this.ensureType(
|
|
138
160
|
12
|
|
139
161
|
/* String */
|
|
140
|
-
),
|
|
162
|
+
), ne.decode(this.payload);
|
|
141
163
|
}
|
|
142
164
|
asGuid() {
|
|
143
165
|
return this.ensureType(
|
|
@@ -165,10 +187,10 @@ class U {
|
|
|
165
187
|
}
|
|
166
188
|
ensureType(e) {
|
|
167
189
|
if (this.type !== e)
|
|
168
|
-
throw new Error(`Teleport value has type ${
|
|
190
|
+
throw new Error(`Teleport value has type ${p[this.type]}, expected ${p[e]}`);
|
|
169
191
|
}
|
|
170
192
|
}
|
|
171
|
-
class
|
|
193
|
+
class ie extends U {
|
|
172
194
|
constructor(e, s, r) {
|
|
173
195
|
super(s, r), this.fieldId = e;
|
|
174
196
|
}
|
|
@@ -213,21 +235,21 @@ class st {
|
|
|
213
235
|
case 4:
|
|
214
236
|
case 6:
|
|
215
237
|
case 14: {
|
|
216
|
-
const e =
|
|
217
|
-
|
|
238
|
+
const e = F(this.elementType);
|
|
239
|
+
S(this.payload, this.offset, e);
|
|
218
240
|
const s = this.payload.subarray(this.offset, this.offset + e);
|
|
219
241
|
return this.offset += e, new M(this.elementType, s);
|
|
220
242
|
}
|
|
221
243
|
case 12:
|
|
222
244
|
case 13: {
|
|
223
245
|
const e = { offset: this.offset }, s = C(this.payload, e, "ArrayMalformed");
|
|
224
|
-
|
|
246
|
+
S(this.payload, e.offset, s);
|
|
225
247
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
226
248
|
return this.offset = e.offset + s, new M(this.elementType, r);
|
|
227
249
|
}
|
|
228
250
|
case 11: {
|
|
229
251
|
const e = { offset: this.offset }, s = C(this.payload, e, "ArrayMalformed");
|
|
230
|
-
|
|
252
|
+
S(this.payload, e.offset, s);
|
|
231
253
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
232
254
|
return this.offset = e.offset + s, new M(11, r);
|
|
233
255
|
}
|
|
@@ -240,7 +262,7 @@ class st {
|
|
|
240
262
|
return this.offset += e, new M(10, s);
|
|
241
263
|
}
|
|
242
264
|
default:
|
|
243
|
-
throw new Error(`Unsupported array element type ${
|
|
265
|
+
throw new Error(`Unsupported array element type ${p[this.elementType]}`);
|
|
244
266
|
}
|
|
245
267
|
}
|
|
246
268
|
}
|
|
@@ -275,18 +297,18 @@ class rt {
|
|
|
275
297
|
return null;
|
|
276
298
|
}
|
|
277
299
|
const e = this.readKey(), s = this.readValue();
|
|
278
|
-
return this.index++, new
|
|
300
|
+
return this.index++, new oe(e, s);
|
|
279
301
|
}
|
|
280
302
|
readKey() {
|
|
281
|
-
const e =
|
|
303
|
+
const e = F(this.keyType);
|
|
282
304
|
if (e >= 0) {
|
|
283
|
-
|
|
305
|
+
S(this.payload, this.offset, e);
|
|
284
306
|
const s = this.payload.subarray(this.offset, this.offset + e);
|
|
285
307
|
return this.offset += e, new U(this.keyType, s);
|
|
286
308
|
}
|
|
287
309
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
288
310
|
const s = { offset: this.offset }, r = C(this.payload, s, "DictMalformed");
|
|
289
|
-
|
|
311
|
+
S(this.payload, s.offset, r);
|
|
290
312
|
const n = this.payload.subarray(s.offset, s.offset + r);
|
|
291
313
|
return this.offset = s.offset + r, new U(this.keyType, n);
|
|
292
314
|
}
|
|
@@ -297,13 +319,13 @@ class rt {
|
|
|
297
319
|
case 12:
|
|
298
320
|
case 13: {
|
|
299
321
|
const e = { offset: this.offset }, s = C(this.payload, e, "DictMalformed");
|
|
300
|
-
|
|
322
|
+
S(this.payload, e.offset, s);
|
|
301
323
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
302
324
|
return this.offset = e.offset + s, new U(this.valueType, r);
|
|
303
325
|
}
|
|
304
326
|
case 11: {
|
|
305
327
|
const e = { offset: this.offset }, s = C(this.payload, e, "DictMalformed");
|
|
306
|
-
|
|
328
|
+
S(this.payload, e.offset, s);
|
|
307
329
|
const r = this.payload.subarray(e.offset, e.offset + s);
|
|
308
330
|
return this.offset = e.offset + s, new U(11, r);
|
|
309
331
|
}
|
|
@@ -324,17 +346,17 @@ class rt {
|
|
|
324
346
|
case 6:
|
|
325
347
|
case 14:
|
|
326
348
|
case 1: {
|
|
327
|
-
const e =
|
|
328
|
-
|
|
349
|
+
const e = F(this.valueType);
|
|
350
|
+
S(this.payload, this.offset, e);
|
|
329
351
|
const s = this.payload.subarray(this.offset, this.offset + e);
|
|
330
352
|
return this.offset += e, new U(this.valueType, s);
|
|
331
353
|
}
|
|
332
354
|
default:
|
|
333
|
-
throw new Error(`Unsupported dictionary value type ${
|
|
355
|
+
throw new Error(`Unsupported dictionary value type ${p[this.valueType]}`);
|
|
334
356
|
}
|
|
335
357
|
}
|
|
336
358
|
}
|
|
337
|
-
class
|
|
359
|
+
class oe {
|
|
338
360
|
constructor(e, s) {
|
|
339
361
|
this.key = e, this.value = s;
|
|
340
362
|
}
|
|
@@ -416,7 +438,7 @@ function C(t, e, s) {
|
|
|
416
438
|
for (; e.offset < t.length; ) {
|
|
417
439
|
const o = t[e.offset++];
|
|
418
440
|
if (i++, r |= (o & 127) << n, (o & 128) === 0) {
|
|
419
|
-
if (i !==
|
|
441
|
+
if (i !== ae(r))
|
|
420
442
|
throw new Error("Teleport VarUInt is not canonical");
|
|
421
443
|
return r >>> 0;
|
|
422
444
|
}
|
|
@@ -425,10 +447,10 @@ function C(t, e, s) {
|
|
|
425
447
|
}
|
|
426
448
|
throw new Error(s);
|
|
427
449
|
}
|
|
428
|
-
function
|
|
450
|
+
function ae(t) {
|
|
429
451
|
return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
|
|
430
452
|
}
|
|
431
|
-
function
|
|
453
|
+
function F(t) {
|
|
432
454
|
switch (t) {
|
|
433
455
|
case 3:
|
|
434
456
|
case 5:
|
|
@@ -452,11 +474,11 @@ function ct(t) {
|
|
|
452
474
|
if (t === 9 || t === 11 || t === 10 || t === 1)
|
|
453
475
|
throw new Error("Dictionary keys must be primitive Teleport types");
|
|
454
476
|
}
|
|
455
|
-
function
|
|
477
|
+
function S(t, e, s) {
|
|
456
478
|
if (e < 0 || s < 0 || e + s > t.length)
|
|
457
479
|
throw new Error("Teleport payload exceeds bounds");
|
|
458
480
|
}
|
|
459
|
-
function
|
|
481
|
+
function le(t, e) {
|
|
460
482
|
return (t[e] | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;
|
|
461
483
|
}
|
|
462
484
|
function nt(t, e) {
|
|
@@ -465,10 +487,10 @@ function nt(t, e) {
|
|
|
465
487
|
const s = t[e], r = s >> 4 & 15;
|
|
466
488
|
if ((s & 15) !== 0)
|
|
467
489
|
throw new Error("Array flags must be zero");
|
|
468
|
-
const n = { offset: e + 1 }, i = C(t, n, "ArrayMalformed"), o =
|
|
490
|
+
const n = { offset: e + 1 }, i = C(t, n, "ArrayMalformed"), o = F(r);
|
|
469
491
|
if (o >= 0) {
|
|
470
492
|
const I = o * i;
|
|
471
|
-
return
|
|
493
|
+
return S(t, n.offset, I), n.offset + I - e;
|
|
472
494
|
}
|
|
473
495
|
let a = n.offset;
|
|
474
496
|
for (let I = 0; I < i; I++)
|
|
@@ -489,25 +511,25 @@ function it(t, e) {
|
|
|
489
511
|
return o - e;
|
|
490
512
|
}
|
|
491
513
|
function q(t, e, s, r) {
|
|
492
|
-
const n =
|
|
514
|
+
const n = F(t);
|
|
493
515
|
if (n >= 0)
|
|
494
|
-
return
|
|
516
|
+
return S(e, s, n), s + n;
|
|
495
517
|
switch (t) {
|
|
496
518
|
case 12:
|
|
497
519
|
case 13: {
|
|
498
520
|
const i = { offset: s }, o = C(e, i, r);
|
|
499
|
-
return
|
|
521
|
+
return S(e, i.offset, o), i.offset + o;
|
|
500
522
|
}
|
|
501
523
|
case 11: {
|
|
502
524
|
const i = { offset: s }, o = C(e, i, r);
|
|
503
|
-
return
|
|
525
|
+
return S(e, i.offset, o), i.offset + o;
|
|
504
526
|
}
|
|
505
527
|
case 9:
|
|
506
528
|
return s + nt(e, s);
|
|
507
529
|
case 10:
|
|
508
530
|
return s + it(e, s);
|
|
509
531
|
default:
|
|
510
|
-
throw new Error(`Unsupported Teleport type ${
|
|
532
|
+
throw new Error(`Unsupported Teleport type ${p[t]}`);
|
|
511
533
|
}
|
|
512
534
|
}
|
|
513
535
|
function at(t) {
|
|
@@ -516,244 +538,244 @@ function at(t) {
|
|
|
516
538
|
function K(t) {
|
|
517
539
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
518
540
|
}
|
|
519
|
-
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 || {}), O = /* @__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.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_DEVTOOLS_CONSOLE_OUTPUT = 524297] = "ANALYTICS_DEVTOOLS_CONSOLE_OUTPUT", 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.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))(O || {});
|
|
520
|
-
const
|
|
521
|
-
function
|
|
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 || {}), 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 || {}), 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.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.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 Ie = 265814330, ce = 1368629611, Ee = 2431514951, _e = 2914494629, fe = 3284746250, he = 4101844078;
|
|
543
|
+
function dt(t) {
|
|
522
544
|
const e = {};
|
|
523
|
-
return
|
|
545
|
+
return St(e), e;
|
|
524
546
|
}
|
|
525
|
-
function
|
|
547
|
+
function St(t) {
|
|
526
548
|
return t.Description = "", t.Codec = Et.Unknown, t.SampleRate = 0, t.Channels = 0, t.BitDepth = 0, t.ShapeSets = void 0, t;
|
|
527
549
|
}
|
|
528
|
-
function
|
|
529
|
-
const s = e ??
|
|
530
|
-
return
|
|
550
|
+
function ue(t, e) {
|
|
551
|
+
const s = e ?? dt();
|
|
552
|
+
return St(s), Te(t, s), s;
|
|
531
553
|
}
|
|
532
|
-
function
|
|
554
|
+
function Te(t, e) {
|
|
533
555
|
let s;
|
|
534
556
|
for (; (s = t.next()) !== null; )
|
|
535
557
|
switch (s.fieldId) {
|
|
536
|
-
case
|
|
558
|
+
case Ie: {
|
|
537
559
|
if (s.isNull) {
|
|
538
560
|
e.ShapeSets = void 0;
|
|
539
561
|
break;
|
|
540
562
|
}
|
|
541
|
-
e.ShapeSets =
|
|
563
|
+
e.ShapeSets = Ae(s.asArray());
|
|
542
564
|
break;
|
|
543
565
|
}
|
|
544
|
-
case
|
|
566
|
+
case ce: {
|
|
545
567
|
if (s.isNull) throw new Error();
|
|
546
568
|
e.Description = s.asString();
|
|
547
569
|
break;
|
|
548
570
|
}
|
|
549
|
-
case
|
|
571
|
+
case Ee: {
|
|
550
572
|
if (s.isNull) throw new Error();
|
|
551
573
|
e.Channels = s.asInt32();
|
|
552
574
|
break;
|
|
553
575
|
}
|
|
554
|
-
case
|
|
576
|
+
case _e: {
|
|
555
577
|
if (s.isNull) throw new Error();
|
|
556
578
|
e.BitDepth = s.asInt32();
|
|
557
579
|
break;
|
|
558
580
|
}
|
|
559
|
-
case
|
|
581
|
+
case fe: {
|
|
560
582
|
if (s.isNull) throw new Error();
|
|
561
583
|
e.Codec = s.asInt32();
|
|
562
584
|
break;
|
|
563
585
|
}
|
|
564
|
-
case
|
|
586
|
+
case he: {
|
|
565
587
|
if (s.isNull) throw new Error();
|
|
566
588
|
e.SampleRate = s.asInt32();
|
|
567
589
|
break;
|
|
568
590
|
}
|
|
569
591
|
}
|
|
570
592
|
}
|
|
571
|
-
function
|
|
593
|
+
function Ae(t) {
|
|
572
594
|
const e = [];
|
|
573
595
|
let s;
|
|
574
596
|
for (; (s = t.next()) !== null; )
|
|
575
|
-
e.push(
|
|
597
|
+
e.push(we(s.asObject()));
|
|
576
598
|
return e;
|
|
577
599
|
}
|
|
578
|
-
const
|
|
579
|
-
function
|
|
600
|
+
const Ne = 1107713536, de = 1154362099, Se = 1185721362;
|
|
601
|
+
function ye(t) {
|
|
580
602
|
const e = {};
|
|
581
603
|
return yt(e), e;
|
|
582
604
|
}
|
|
583
605
|
function yt(t) {
|
|
584
606
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
585
607
|
}
|
|
586
|
-
function
|
|
587
|
-
const s = e ??
|
|
588
|
-
return yt(s),
|
|
608
|
+
function we(t, e) {
|
|
609
|
+
const s = e ?? ye();
|
|
610
|
+
return yt(s), Ce(t, s), s;
|
|
589
611
|
}
|
|
590
|
-
function
|
|
612
|
+
function Ce(t, e) {
|
|
591
613
|
let s;
|
|
592
614
|
for (; (s = t.next()) !== null; )
|
|
593
615
|
switch (s.fieldId) {
|
|
594
|
-
case
|
|
616
|
+
case Ne: {
|
|
595
617
|
if (s.isNull) throw new Error();
|
|
596
618
|
e.Name = s.asString();
|
|
597
619
|
break;
|
|
598
620
|
}
|
|
599
|
-
case
|
|
621
|
+
case de: {
|
|
600
622
|
if (s.isNull) throw new Error();
|
|
601
623
|
e.SetId = s.asUInt32();
|
|
602
624
|
break;
|
|
603
625
|
}
|
|
604
|
-
case
|
|
626
|
+
case Se: {
|
|
605
627
|
if (s.isNull) throw new Error();
|
|
606
|
-
e.ShapeNames =
|
|
628
|
+
e.ShapeNames = De(s.asArray());
|
|
607
629
|
break;
|
|
608
630
|
}
|
|
609
631
|
}
|
|
610
632
|
}
|
|
611
|
-
function
|
|
633
|
+
function De(t) {
|
|
612
634
|
const e = [];
|
|
613
635
|
let s;
|
|
614
636
|
for (; (s = t.next()) !== null; )
|
|
615
637
|
e.push(s.asString());
|
|
616
638
|
return e;
|
|
617
639
|
}
|
|
618
|
-
const
|
|
619
|
-
function
|
|
640
|
+
const Ue = 76337612, Re = 185396121, me = 388632637, Le = 417197284, ge = 469070965, Oe = 470595159, Pe = 781727218, be = 834078886, pe = 1043273762, Fe = 1236999138, ve = 1368629611, Me = 1715899485, ke = 1942830531, Ve = 1999510636, Ge = 2079864626, Be = 2142346422, xe = 2598291686, He = 2719718823, Ye = 2810953526, $e = 2840065720, Ke = 2885165957, je = 3586157513, Xe = 3717933110, ze = 4062655306;
|
|
641
|
+
function We(t) {
|
|
620
642
|
const e = {};
|
|
621
643
|
return wt(e), e;
|
|
622
644
|
}
|
|
623
645
|
function wt(t) {
|
|
624
|
-
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 = _t.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType =
|
|
646
|
+
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 = _t.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = Nt.Unknown, t;
|
|
625
647
|
}
|
|
626
|
-
function
|
|
627
|
-
const s = e ??
|
|
628
|
-
return wt(s),
|
|
648
|
+
function Je(t, e) {
|
|
649
|
+
const s = e ?? We();
|
|
650
|
+
return wt(s), qe(t, s), s;
|
|
629
651
|
}
|
|
630
|
-
function
|
|
652
|
+
function qe(t, e) {
|
|
631
653
|
let s;
|
|
632
654
|
for (; (s = t.next()) !== null; )
|
|
633
655
|
switch (s.fieldId) {
|
|
634
|
-
case
|
|
656
|
+
case Ue: {
|
|
635
657
|
if (s.isNull) throw new Error();
|
|
636
658
|
e.DeviceId = s.asString();
|
|
637
659
|
break;
|
|
638
660
|
}
|
|
639
|
-
case
|
|
661
|
+
case Re: {
|
|
640
662
|
if (s.isNull) throw new Error();
|
|
641
663
|
e.InstallId = s.asString();
|
|
642
664
|
break;
|
|
643
665
|
}
|
|
644
|
-
case
|
|
666
|
+
case me: {
|
|
645
667
|
if (s.isNull) throw new Error();
|
|
646
668
|
e.UserAgent = s.asString();
|
|
647
669
|
break;
|
|
648
670
|
}
|
|
649
|
-
case
|
|
671
|
+
case Le: {
|
|
650
672
|
if (s.isNull) throw new Error();
|
|
651
673
|
e.ContextType = s.asInt32();
|
|
652
674
|
break;
|
|
653
675
|
}
|
|
654
|
-
case
|
|
676
|
+
case ge: {
|
|
655
677
|
if (s.isNull) throw new Error();
|
|
656
678
|
e.HasInput = s.asBool();
|
|
657
679
|
break;
|
|
658
680
|
}
|
|
659
|
-
case
|
|
681
|
+
case Oe: {
|
|
660
682
|
if (s.isNull) throw new Error();
|
|
661
683
|
e.UserType = s.asInt32();
|
|
662
684
|
break;
|
|
663
685
|
}
|
|
664
|
-
case
|
|
686
|
+
case Pe: {
|
|
665
687
|
if (s.isNull) throw new Error();
|
|
666
688
|
e.UserId = s.asString();
|
|
667
689
|
break;
|
|
668
690
|
}
|
|
669
|
-
case
|
|
691
|
+
case be: {
|
|
670
692
|
if (s.isNull) throw new Error();
|
|
671
693
|
e.ProductId = s.asString();
|
|
672
694
|
break;
|
|
673
695
|
}
|
|
674
|
-
case
|
|
696
|
+
case pe: {
|
|
675
697
|
if (s.isNull) throw new Error();
|
|
676
698
|
e.AuthSessionId = s.asString();
|
|
677
699
|
break;
|
|
678
700
|
}
|
|
679
|
-
case
|
|
701
|
+
case Fe: {
|
|
680
702
|
if (s.isNull) throw new Error();
|
|
681
703
|
e.ReceiveAllMessages = s.asBool();
|
|
682
704
|
break;
|
|
683
705
|
}
|
|
684
|
-
case
|
|
706
|
+
case ve: {
|
|
685
707
|
if (s.isNull) throw new Error();
|
|
686
708
|
e.Description = s.asString();
|
|
687
709
|
break;
|
|
688
710
|
}
|
|
689
|
-
case
|
|
711
|
+
case Me: {
|
|
690
712
|
if (s.isNull) throw new Error();
|
|
691
713
|
e.Locale = s.asString();
|
|
692
714
|
break;
|
|
693
715
|
}
|
|
694
|
-
case
|
|
716
|
+
case ke: {
|
|
695
717
|
if (s.isNull) throw new Error();
|
|
696
718
|
e.SdkType = s.asInt32();
|
|
697
719
|
break;
|
|
698
720
|
}
|
|
699
|
-
case
|
|
721
|
+
case Ve: {
|
|
700
722
|
if (s.isNull) throw new Error();
|
|
701
723
|
e.SessionId = s.asInt32();
|
|
702
724
|
break;
|
|
703
725
|
}
|
|
704
|
-
case
|
|
726
|
+
case Ge: {
|
|
705
727
|
if (s.isNull) throw new Error();
|
|
706
728
|
e.PreciseJoinedAt = s.asUInt64();
|
|
707
729
|
break;
|
|
708
730
|
}
|
|
709
|
-
case
|
|
731
|
+
case Be: {
|
|
710
732
|
if (s.isNull) throw new Error();
|
|
711
733
|
e.PayloadType = s.asInt32();
|
|
712
734
|
break;
|
|
713
735
|
}
|
|
714
|
-
case
|
|
736
|
+
case xe: {
|
|
715
737
|
if (s.isNull) throw new Error();
|
|
716
738
|
e.VersionId = s.asString();
|
|
717
739
|
break;
|
|
718
740
|
}
|
|
719
|
-
case
|
|
741
|
+
case He: {
|
|
720
742
|
if (s.isNull) throw new Error();
|
|
721
743
|
e.UniqueSessionId = s.asString();
|
|
722
744
|
break;
|
|
723
745
|
}
|
|
724
|
-
case
|
|
746
|
+
case Ye: {
|
|
725
747
|
if (s.isNull) throw new Error();
|
|
726
748
|
e.ClientType = s.asInt32();
|
|
727
749
|
break;
|
|
728
750
|
}
|
|
729
|
-
case
|
|
751
|
+
case $e: {
|
|
730
752
|
if (s.isNull) throw new Error();
|
|
731
753
|
e.IsReady = s.asBool();
|
|
732
754
|
break;
|
|
733
755
|
}
|
|
734
|
-
case
|
|
756
|
+
case Ke: {
|
|
735
757
|
if (s.isNull) throw new Error();
|
|
736
|
-
e.Parameters =
|
|
758
|
+
e.Parameters = Qe(s.asDictionary());
|
|
737
759
|
break;
|
|
738
760
|
}
|
|
739
|
-
case
|
|
761
|
+
case je: {
|
|
740
762
|
if (s.isNull) throw new Error();
|
|
741
763
|
e.IsInternal = s.asBool();
|
|
742
764
|
break;
|
|
743
765
|
}
|
|
744
|
-
case
|
|
766
|
+
case Xe: {
|
|
745
767
|
if (s.isNull) throw new Error();
|
|
746
768
|
e.ChannelLocale = s.asString();
|
|
747
769
|
break;
|
|
748
770
|
}
|
|
749
|
-
case
|
|
771
|
+
case ze: {
|
|
750
772
|
if (s.isNull) throw new Error();
|
|
751
773
|
e.EmbeddedSpaceId = s.asString();
|
|
752
774
|
break;
|
|
753
775
|
}
|
|
754
776
|
}
|
|
755
777
|
}
|
|
756
|
-
function
|
|
778
|
+
function Qe(t) {
|
|
757
779
|
const e = /* @__PURE__ */ Object.create(null);
|
|
758
780
|
let s;
|
|
759
781
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -762,150 +784,150 @@ function Je(t) {
|
|
|
762
784
|
}
|
|
763
785
|
return e;
|
|
764
786
|
}
|
|
765
|
-
const
|
|
766
|
-
function
|
|
787
|
+
const Ze = 703025676, ts = 814454131, es = 972460562, ss = 976255570, rs = 1368629611, ns = 1479280922, is = 1533537016, os = 2274386296, as = 2603556958, ls = 2885165957, Is = 3568439632;
|
|
788
|
+
function cs(t) {
|
|
767
789
|
const e = {};
|
|
768
790
|
return Ct(e), e;
|
|
769
791
|
}
|
|
770
792
|
function Ct(t) {
|
|
771
793
|
return t.FunctionId = T.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t;
|
|
772
794
|
}
|
|
773
|
-
function
|
|
774
|
-
const s = e ??
|
|
775
|
-
return Ct(s),
|
|
795
|
+
function Es(t, e) {
|
|
796
|
+
const s = e ?? cs();
|
|
797
|
+
return Ct(s), _s(t, s), s;
|
|
776
798
|
}
|
|
777
|
-
function
|
|
799
|
+
function _s(t, e) {
|
|
778
800
|
let s;
|
|
779
801
|
for (; (s = t.next()) !== null; )
|
|
780
802
|
switch (s.fieldId) {
|
|
781
|
-
case
|
|
803
|
+
case Ze: {
|
|
782
804
|
if (s.isNull) throw new Error();
|
|
783
805
|
e.ResultTypeName = s.asString();
|
|
784
806
|
break;
|
|
785
807
|
}
|
|
786
|
-
case
|
|
808
|
+
case ts: {
|
|
787
809
|
if (s.isNull) throw new Error();
|
|
788
810
|
e.FunctionName = s.asString();
|
|
789
811
|
break;
|
|
790
812
|
}
|
|
791
|
-
case
|
|
813
|
+
case es: {
|
|
792
814
|
if (s.isNull) throw new Error();
|
|
793
815
|
e.EnumerableItemTypeName = s.asString();
|
|
794
816
|
break;
|
|
795
817
|
}
|
|
796
|
-
case
|
|
818
|
+
case ss: {
|
|
797
819
|
if (s.isNull) throw new Error();
|
|
798
820
|
e.FunctionId = s.asGuid();
|
|
799
821
|
break;
|
|
800
822
|
}
|
|
801
|
-
case
|
|
823
|
+
case rs: {
|
|
802
824
|
if (s.isNull) throw new Error();
|
|
803
825
|
e.Description = s.asString();
|
|
804
826
|
break;
|
|
805
827
|
}
|
|
806
|
-
case
|
|
828
|
+
case ns: {
|
|
807
829
|
if (s.isNull) throw new Error();
|
|
808
830
|
e.IsCancellable = s.asBool();
|
|
809
831
|
break;
|
|
810
832
|
}
|
|
811
|
-
case
|
|
833
|
+
case is: {
|
|
812
834
|
if (s.isNull) throw new Error();
|
|
813
835
|
e.RequiresInstance = s.asBool();
|
|
814
836
|
break;
|
|
815
837
|
}
|
|
816
|
-
case
|
|
838
|
+
case os: {
|
|
817
839
|
if (s.isNull) throw new Error();
|
|
818
840
|
e.LlmInlineResult = s.asBool();
|
|
819
841
|
break;
|
|
820
842
|
}
|
|
821
|
-
case
|
|
843
|
+
case as: {
|
|
822
844
|
if (s.isNull) throw new Error();
|
|
823
845
|
e.IsEnumerable = s.asBool();
|
|
824
846
|
break;
|
|
825
847
|
}
|
|
826
|
-
case
|
|
848
|
+
case ls: {
|
|
827
849
|
if (s.isNull) throw new Error();
|
|
828
|
-
e.Parameters =
|
|
850
|
+
e.Parameters = fs(s.asArray());
|
|
829
851
|
break;
|
|
830
852
|
}
|
|
831
|
-
case
|
|
853
|
+
case Is: {
|
|
832
854
|
if (s.isNull) throw new Error();
|
|
833
855
|
e.LlmCallOnlyOnce = s.asBool();
|
|
834
856
|
break;
|
|
835
857
|
}
|
|
836
858
|
}
|
|
837
859
|
}
|
|
838
|
-
function
|
|
860
|
+
function fs(t) {
|
|
839
861
|
const e = [];
|
|
840
862
|
let s;
|
|
841
863
|
for (; (s = t.next()) !== null; )
|
|
842
|
-
e.push(
|
|
864
|
+
e.push(Ds(s.asObject()));
|
|
843
865
|
return e;
|
|
844
866
|
}
|
|
845
|
-
const
|
|
846
|
-
function
|
|
867
|
+
const hs = 607861992, us = 894485888, Ts = 972460562, As = 1368629611, Ns = 1883521406, ds = 2603556958, Ss = 3609695522, ys = 4075263697, ws = 4257460908;
|
|
868
|
+
function Cs(t) {
|
|
847
869
|
const e = {};
|
|
848
870
|
return Dt(e), e;
|
|
849
871
|
}
|
|
850
872
|
function Dt(t) {
|
|
851
873
|
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;
|
|
852
874
|
}
|
|
853
|
-
function
|
|
854
|
-
const s = e ??
|
|
855
|
-
return Dt(s),
|
|
875
|
+
function Ds(t, e) {
|
|
876
|
+
const s = e ?? Cs();
|
|
877
|
+
return Dt(s), Us(t, s), s;
|
|
856
878
|
}
|
|
857
|
-
function
|
|
879
|
+
function Us(t, e) {
|
|
858
880
|
let s;
|
|
859
881
|
for (; (s = t.next()) !== null; )
|
|
860
882
|
switch (s.fieldId) {
|
|
861
|
-
case
|
|
883
|
+
case hs: {
|
|
862
884
|
if (s.isNull) throw new Error();
|
|
863
885
|
e.HasDefaultValue = s.asBool();
|
|
864
886
|
break;
|
|
865
887
|
}
|
|
866
|
-
case
|
|
888
|
+
case us: {
|
|
867
889
|
if (s.isNull) throw new Error();
|
|
868
890
|
e.DefaultValueJson = s.asString();
|
|
869
891
|
break;
|
|
870
892
|
}
|
|
871
|
-
case
|
|
893
|
+
case Ts: {
|
|
872
894
|
if (s.isNull) throw new Error();
|
|
873
895
|
e.EnumerableItemTypeName = s.asString();
|
|
874
896
|
break;
|
|
875
897
|
}
|
|
876
|
-
case
|
|
898
|
+
case As: {
|
|
877
899
|
if (s.isNull) throw new Error();
|
|
878
900
|
e.Description = s.asString();
|
|
879
901
|
break;
|
|
880
902
|
}
|
|
881
|
-
case
|
|
903
|
+
case Ns: {
|
|
882
904
|
if (s.isNull) throw new Error();
|
|
883
905
|
e.DefaultValueData = s.asBinary();
|
|
884
906
|
break;
|
|
885
907
|
}
|
|
886
|
-
case
|
|
908
|
+
case ds: {
|
|
887
909
|
if (s.isNull) throw new Error();
|
|
888
910
|
e.IsEnumerable = s.asBool();
|
|
889
911
|
break;
|
|
890
912
|
}
|
|
891
|
-
case
|
|
913
|
+
case Ss: {
|
|
892
914
|
if (s.isNull) throw new Error();
|
|
893
915
|
e.TypeName = s.asString();
|
|
894
916
|
break;
|
|
895
917
|
}
|
|
896
|
-
case
|
|
918
|
+
case ys: {
|
|
897
919
|
if (s.isNull) throw new Error();
|
|
898
920
|
e.ParameterName = s.asString();
|
|
899
921
|
break;
|
|
900
922
|
}
|
|
901
|
-
case
|
|
923
|
+
case ws: {
|
|
902
924
|
if (s.isNull) throw new Error();
|
|
903
925
|
e.ParameterIndex = s.asInt32();
|
|
904
926
|
break;
|
|
905
927
|
}
|
|
906
928
|
}
|
|
907
929
|
}
|
|
908
|
-
const
|
|
930
|
+
const Rs = 3167053791, ms = 3342364356, Ls = 3612929027;
|
|
909
931
|
function Ut(t) {
|
|
910
932
|
const e = {};
|
|
911
933
|
return Rt(e), e;
|
|
@@ -913,39 +935,39 @@ function Ut(t) {
|
|
|
913
935
|
function Rt(t) {
|
|
914
936
|
return t.Category = "", t.Type = ut.Face, t.FaceBlendshapes = [], t;
|
|
915
937
|
}
|
|
916
|
-
function
|
|
938
|
+
function gs(t, e) {
|
|
917
939
|
const s = e ?? Ut();
|
|
918
|
-
return Rt(s),
|
|
940
|
+
return Rt(s), Os(t, s), s;
|
|
919
941
|
}
|
|
920
|
-
function
|
|
942
|
+
function Os(t, e) {
|
|
921
943
|
let s;
|
|
922
944
|
for (; (s = t.next()) !== null; )
|
|
923
945
|
switch (s.fieldId) {
|
|
924
|
-
case
|
|
946
|
+
case Rs: {
|
|
925
947
|
if (s.isNull) throw new Error();
|
|
926
948
|
e.Type = s.asInt32();
|
|
927
949
|
break;
|
|
928
950
|
}
|
|
929
|
-
case
|
|
951
|
+
case ms: {
|
|
930
952
|
if (s.isNull) throw new Error();
|
|
931
|
-
e.FaceBlendshapes =
|
|
953
|
+
e.FaceBlendshapes = Ps(s.asArray());
|
|
932
954
|
break;
|
|
933
955
|
}
|
|
934
|
-
case
|
|
956
|
+
case Ls: {
|
|
935
957
|
if (s.isNull) throw new Error();
|
|
936
958
|
e.Category = s.asString();
|
|
937
959
|
break;
|
|
938
960
|
}
|
|
939
961
|
}
|
|
940
962
|
}
|
|
941
|
-
function
|
|
963
|
+
function Ps(t) {
|
|
942
964
|
const e = [];
|
|
943
965
|
let s;
|
|
944
966
|
for (; (s = t.next()) !== null; )
|
|
945
967
|
e.push(s.asString());
|
|
946
968
|
return e;
|
|
947
969
|
}
|
|
948
|
-
const
|
|
970
|
+
const bs = 3612929027;
|
|
949
971
|
function mt(t) {
|
|
950
972
|
const e = {};
|
|
951
973
|
return Lt(e), e;
|
|
@@ -953,483 +975,483 @@ function mt(t) {
|
|
|
953
975
|
function Lt(t) {
|
|
954
976
|
return t.Category = "", t;
|
|
955
977
|
}
|
|
956
|
-
function
|
|
978
|
+
function ps(t, e) {
|
|
957
979
|
const s = e ?? mt();
|
|
958
|
-
return Lt(s),
|
|
980
|
+
return Lt(s), Fs(t, s), s;
|
|
959
981
|
}
|
|
960
|
-
function
|
|
982
|
+
function Fs(t, e) {
|
|
961
983
|
let s;
|
|
962
984
|
for (; (s = t.next()) !== null; )
|
|
963
985
|
switch (s.fieldId) {
|
|
964
|
-
case
|
|
986
|
+
case bs: {
|
|
965
987
|
if (s.isNull) throw new Error();
|
|
966
988
|
e.Category = s.asString();
|
|
967
989
|
break;
|
|
968
990
|
}
|
|
969
991
|
}
|
|
970
992
|
}
|
|
971
|
-
const
|
|
972
|
-
function
|
|
993
|
+
const vs = 164808083, Ms = 1368629611, ks = 2739413426, Vs = 2768375929, Gs = 2950031986, Bs = 3284746250, xs = 4065070594;
|
|
994
|
+
function gt(t) {
|
|
973
995
|
const e = {};
|
|
974
|
-
return
|
|
996
|
+
return Ot(e), e;
|
|
975
997
|
}
|
|
976
|
-
function
|
|
977
|
-
return t.Description = "", t.Codec =
|
|
998
|
+
function Ot(t) {
|
|
999
|
+
return t.Description = "", t.Codec = At.H264, t.Width = 0, t.Height = 0, t.Framerate = 30, t.Bitrate = 0, t.IsHardwareAccelerated = !1, t;
|
|
978
1000
|
}
|
|
979
|
-
function
|
|
980
|
-
const s = e ??
|
|
981
|
-
return
|
|
1001
|
+
function Hs(t, e) {
|
|
1002
|
+
const s = e ?? gt();
|
|
1003
|
+
return Ot(s), Ys(t, s), s;
|
|
982
1004
|
}
|
|
983
|
-
function
|
|
1005
|
+
function Ys(t, e) {
|
|
984
1006
|
let s;
|
|
985
1007
|
for (; (s = t.next()) !== null; )
|
|
986
1008
|
switch (s.fieldId) {
|
|
987
|
-
case
|
|
1009
|
+
case vs: {
|
|
988
1010
|
if (s.isNull) throw new Error();
|
|
989
1011
|
e.Framerate = s.asInt32();
|
|
990
1012
|
break;
|
|
991
1013
|
}
|
|
992
|
-
case
|
|
1014
|
+
case Ms: {
|
|
993
1015
|
if (s.isNull) throw new Error();
|
|
994
1016
|
e.Description = s.asString();
|
|
995
1017
|
break;
|
|
996
1018
|
}
|
|
997
|
-
case
|
|
1019
|
+
case ks: {
|
|
998
1020
|
if (s.isNull) throw new Error();
|
|
999
1021
|
e.IsHardwareAccelerated = s.asBool();
|
|
1000
1022
|
break;
|
|
1001
1023
|
}
|
|
1002
|
-
case
|
|
1024
|
+
case Vs: {
|
|
1003
1025
|
if (s.isNull) throw new Error();
|
|
1004
1026
|
e.Bitrate = s.asInt32();
|
|
1005
1027
|
break;
|
|
1006
1028
|
}
|
|
1007
|
-
case
|
|
1029
|
+
case Gs: {
|
|
1008
1030
|
if (s.isNull) throw new Error();
|
|
1009
1031
|
e.Height = s.asInt32();
|
|
1010
1032
|
break;
|
|
1011
1033
|
}
|
|
1012
|
-
case
|
|
1034
|
+
case Bs: {
|
|
1013
1035
|
if (s.isNull) throw new Error();
|
|
1014
1036
|
e.Codec = s.asInt32();
|
|
1015
1037
|
break;
|
|
1016
1038
|
}
|
|
1017
|
-
case
|
|
1039
|
+
case xs: {
|
|
1018
1040
|
if (s.isNull) throw new Error();
|
|
1019
1041
|
e.Width = s.asInt32();
|
|
1020
1042
|
break;
|
|
1021
1043
|
}
|
|
1022
1044
|
}
|
|
1023
1045
|
}
|
|
1024
|
-
const
|
|
1025
|
-
function
|
|
1046
|
+
const $s = 65539, Ks = 414670648, js = 693643444, Xs = 1144553441, zs = 1497620243, Ws = 1559330978, Js = 1999510636, qs = 2277643855, Qs = 2469008121, Zs = 3042922213, tr = 3219210453, er = 3504054055, sr = 3642827795, rr = 3678477544, nr = 3696445035, ir = 3707543140, or = 3712281496, ar = 3748214980, lr = 3823842552, Ir = 3895362455, cr = 3897397815, Er = 4225107827;
|
|
1047
|
+
function _r(t) {
|
|
1026
1048
|
const e = {};
|
|
1027
1049
|
return Pt(e), e;
|
|
1028
1050
|
}
|
|
1029
1051
|
function Pt(t) {
|
|
1030
1052
|
return t.Clients = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelInstanceId = "", t.FirstUserId = "", t.ChannelUrl = "", t.ChannelId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.SessionId = "", t.RunnerType = "", t.BootType = "", t.PublicAccess = !1, t.DebugMode = !1, t.IsGitSource = !1, t.Functions = /* @__PURE__ */ Object.create(null), t;
|
|
1031
1053
|
}
|
|
1032
|
-
function
|
|
1054
|
+
function fr(t, e) {
|
|
1033
1055
|
const s = L.create(t);
|
|
1034
|
-
return
|
|
1056
|
+
return hr(s, e);
|
|
1035
1057
|
}
|
|
1036
|
-
function
|
|
1037
|
-
const s = e ??
|
|
1038
|
-
return Pt(s),
|
|
1058
|
+
function hr(t, e) {
|
|
1059
|
+
const s = e ?? _r();
|
|
1060
|
+
return Pt(s), ur(t, s), s;
|
|
1039
1061
|
}
|
|
1040
|
-
function
|
|
1062
|
+
function ur(t, e) {
|
|
1041
1063
|
let s;
|
|
1042
1064
|
for (; (s = t.next()) !== null; )
|
|
1043
1065
|
switch (s.fieldId) {
|
|
1044
|
-
case
|
|
1066
|
+
case Ks: {
|
|
1045
1067
|
if (s.isNull) throw new Error();
|
|
1046
1068
|
e.IsGitSource = s.asBool();
|
|
1047
1069
|
break;
|
|
1048
1070
|
}
|
|
1049
|
-
case
|
|
1071
|
+
case js: {
|
|
1050
1072
|
if (s.isNull) throw new Error();
|
|
1051
1073
|
e.FirstUserId = s.asString();
|
|
1052
1074
|
break;
|
|
1053
1075
|
}
|
|
1054
|
-
case
|
|
1076
|
+
case Xs: {
|
|
1055
1077
|
if (s.isNull) throw new Error();
|
|
1056
|
-
e.Clients =
|
|
1078
|
+
e.Clients = Ar(s.asDictionary());
|
|
1057
1079
|
break;
|
|
1058
1080
|
}
|
|
1059
|
-
case
|
|
1081
|
+
case zs: {
|
|
1060
1082
|
if (s.isNull) throw new Error();
|
|
1061
|
-
e.TrackingStreams =
|
|
1083
|
+
e.TrackingStreams = Nr(s.asDictionary());
|
|
1062
1084
|
break;
|
|
1063
1085
|
}
|
|
1064
|
-
case
|
|
1086
|
+
case Ws: {
|
|
1065
1087
|
if (s.isNull) throw new Error();
|
|
1066
1088
|
e.ChannelId = s.asString();
|
|
1067
1089
|
break;
|
|
1068
1090
|
}
|
|
1069
|
-
case
|
|
1091
|
+
case Js: {
|
|
1070
1092
|
if (s.isNull) throw new Error();
|
|
1071
1093
|
e.SessionId = s.asString();
|
|
1072
1094
|
break;
|
|
1073
1095
|
}
|
|
1074
|
-
case
|
|
1096
|
+
case qs: {
|
|
1075
1097
|
if (s.isNull) throw new Error();
|
|
1076
1098
|
e.ChannelUrl = s.asString();
|
|
1077
1099
|
break;
|
|
1078
1100
|
}
|
|
1079
|
-
case
|
|
1101
|
+
case Qs: {
|
|
1080
1102
|
if (s.isNull) throw new Error();
|
|
1081
1103
|
e.ChannelName = s.asString();
|
|
1082
1104
|
break;
|
|
1083
1105
|
}
|
|
1084
|
-
case
|
|
1106
|
+
case Zs: {
|
|
1085
1107
|
if (s.isNull) throw new Error();
|
|
1086
1108
|
e.PublicAccess = s.asBool();
|
|
1087
1109
|
break;
|
|
1088
1110
|
}
|
|
1089
|
-
case
|
|
1111
|
+
case tr: {
|
|
1090
1112
|
if (s.isNull) throw new Error();
|
|
1091
1113
|
e.OrganisationName = s.asString();
|
|
1092
1114
|
break;
|
|
1093
1115
|
}
|
|
1094
|
-
case
|
|
1116
|
+
case er: {
|
|
1095
1117
|
if (s.isNull) throw new Error();
|
|
1096
1118
|
e.DebugMode = s.asBool();
|
|
1097
1119
|
break;
|
|
1098
1120
|
}
|
|
1099
|
-
case
|
|
1121
|
+
case sr: {
|
|
1100
1122
|
if (s.isNull) throw new Error();
|
|
1101
1123
|
e.RunnerType = s.asString();
|
|
1102
1124
|
break;
|
|
1103
1125
|
}
|
|
1104
|
-
case
|
|
1126
|
+
case rr: {
|
|
1105
1127
|
if (s.isNull) throw new Error();
|
|
1106
|
-
e.Functions =
|
|
1128
|
+
e.Functions = dr(s.asDictionary());
|
|
1107
1129
|
break;
|
|
1108
1130
|
}
|
|
1109
|
-
case
|
|
1131
|
+
case nr: {
|
|
1110
1132
|
if (s.isNull) throw new Error();
|
|
1111
|
-
e.UIStreams =
|
|
1133
|
+
e.UIStreams = Sr(s.asDictionary());
|
|
1112
1134
|
break;
|
|
1113
1135
|
}
|
|
1114
|
-
case
|
|
1136
|
+
case ir: {
|
|
1115
1137
|
if (s.isNull) throw new Error();
|
|
1116
1138
|
e.SpaceId = s.asString();
|
|
1117
1139
|
break;
|
|
1118
1140
|
}
|
|
1119
|
-
case
|
|
1141
|
+
case or: {
|
|
1120
1142
|
if (s.isNull) throw new Error();
|
|
1121
1143
|
e.PrimaryUserId = s.asString();
|
|
1122
1144
|
break;
|
|
1123
1145
|
}
|
|
1124
|
-
case
|
|
1146
|
+
case ar: {
|
|
1125
1147
|
if (s.isNull) throw new Error();
|
|
1126
1148
|
e.BootType = s.asString();
|
|
1127
1149
|
break;
|
|
1128
1150
|
}
|
|
1129
|
-
case
|
|
1151
|
+
case lr: {
|
|
1130
1152
|
if (s.isNull) throw new Error();
|
|
1131
1153
|
e.ChannelInstanceId = s.asString();
|
|
1132
1154
|
break;
|
|
1133
1155
|
}
|
|
1134
|
-
case
|
|
1156
|
+
case Ir: {
|
|
1135
1157
|
if (s.isNull) throw new Error();
|
|
1136
|
-
e.AudioStreams =
|
|
1158
|
+
e.AudioStreams = yr(s.asDictionary());
|
|
1137
1159
|
break;
|
|
1138
1160
|
}
|
|
1139
|
-
case
|
|
1161
|
+
case cr: {
|
|
1140
1162
|
if (s.isNull) throw new Error();
|
|
1141
|
-
e.VideoStreams =
|
|
1163
|
+
e.VideoStreams = wr(s.asDictionary());
|
|
1142
1164
|
break;
|
|
1143
1165
|
}
|
|
1144
|
-
case
|
|
1166
|
+
case Er: {
|
|
1145
1167
|
if (s.isNull) throw new Error();
|
|
1146
1168
|
e.SpaceName = s.asString();
|
|
1147
1169
|
break;
|
|
1148
1170
|
}
|
|
1149
1171
|
}
|
|
1150
1172
|
}
|
|
1151
|
-
function
|
|
1152
|
-
const s = $(t,
|
|
1153
|
-
return
|
|
1173
|
+
async function Tr(t, e) {
|
|
1174
|
+
const s = await $(t, $s);
|
|
1175
|
+
return fr(s, e);
|
|
1154
1176
|
}
|
|
1155
|
-
function
|
|
1177
|
+
function Ar(t) {
|
|
1156
1178
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1157
1179
|
let s;
|
|
1158
1180
|
for (; (s = t.next()) !== null; ) {
|
|
1159
1181
|
const r = s.key.asInt32();
|
|
1160
|
-
e[r] =
|
|
1182
|
+
e[r] = Je(s.value.asObject());
|
|
1161
1183
|
}
|
|
1162
1184
|
return e;
|
|
1163
1185
|
}
|
|
1164
|
-
function
|
|
1186
|
+
function Nr(t) {
|
|
1165
1187
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1166
1188
|
let s;
|
|
1167
1189
|
for (; (s = t.next()) !== null; ) {
|
|
1168
1190
|
const r = s.key.asString();
|
|
1169
|
-
e[r] =
|
|
1191
|
+
e[r] = Jr(s.value.asObject());
|
|
1170
1192
|
}
|
|
1171
1193
|
return e;
|
|
1172
1194
|
}
|
|
1173
|
-
function
|
|
1195
|
+
function dr(t) {
|
|
1174
1196
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1175
1197
|
let s;
|
|
1176
1198
|
for (; (s = t.next()) !== null; ) {
|
|
1177
1199
|
const r = s.key.asInt32();
|
|
1178
|
-
e[r] =
|
|
1200
|
+
e[r] = Cr(s.value.asArray());
|
|
1179
1201
|
}
|
|
1180
1202
|
return e;
|
|
1181
1203
|
}
|
|
1182
|
-
function
|
|
1204
|
+
function Sr(t) {
|
|
1183
1205
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1184
1206
|
let s;
|
|
1185
1207
|
for (; (s = t.next()) !== null; ) {
|
|
1186
1208
|
const r = s.key.asString();
|
|
1187
|
-
e[r] =
|
|
1209
|
+
e[r] = gr(s.value.asObject());
|
|
1188
1210
|
}
|
|
1189
1211
|
return e;
|
|
1190
1212
|
}
|
|
1191
|
-
function
|
|
1213
|
+
function yr(t) {
|
|
1192
1214
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1193
1215
|
let s;
|
|
1194
1216
|
for (; (s = t.next()) !== null; ) {
|
|
1195
1217
|
const r = s.key.asString();
|
|
1196
|
-
e[r] =
|
|
1218
|
+
e[r] = Mr(s.value.asObject());
|
|
1197
1219
|
}
|
|
1198
1220
|
return e;
|
|
1199
1221
|
}
|
|
1200
|
-
function
|
|
1222
|
+
function wr(t) {
|
|
1201
1223
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1202
1224
|
let s;
|
|
1203
1225
|
for (; (s = t.next()) !== null; ) {
|
|
1204
1226
|
const r = s.key.asString();
|
|
1205
|
-
e[r] =
|
|
1227
|
+
e[r] = Yr(s.value.asObject());
|
|
1206
1228
|
}
|
|
1207
1229
|
return e;
|
|
1208
1230
|
}
|
|
1209
|
-
function
|
|
1231
|
+
function Cr(t) {
|
|
1210
1232
|
const e = [];
|
|
1211
1233
|
let s;
|
|
1212
1234
|
for (; (s = t.next()) !== null; )
|
|
1213
|
-
e.push(
|
|
1235
|
+
e.push(Es(s.asObject()));
|
|
1214
1236
|
return e;
|
|
1215
1237
|
}
|
|
1216
|
-
const
|
|
1217
|
-
function
|
|
1238
|
+
const Dr = 161083277, Ur = 325678206, Rr = 3469892363, mr = 3645544153;
|
|
1239
|
+
function Lr(t) {
|
|
1218
1240
|
const e = {};
|
|
1219
1241
|
return bt(e), e;
|
|
1220
1242
|
}
|
|
1221
1243
|
function bt(t) {
|
|
1222
1244
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = mt(), t;
|
|
1223
1245
|
}
|
|
1224
|
-
function
|
|
1225
|
-
const s = e ??
|
|
1226
|
-
return bt(s),
|
|
1246
|
+
function gr(t, e) {
|
|
1247
|
+
const s = e ?? Lr();
|
|
1248
|
+
return bt(s), Or(t, s), s;
|
|
1227
1249
|
}
|
|
1228
|
-
function
|
|
1250
|
+
function Or(t, e) {
|
|
1229
1251
|
let s;
|
|
1230
1252
|
for (; (s = t.next()) !== null; )
|
|
1231
1253
|
switch (s.fieldId) {
|
|
1232
|
-
case
|
|
1254
|
+
case Dr: {
|
|
1233
1255
|
if (s.isNull) throw new Error();
|
|
1234
1256
|
e.StreamId = s.asString();
|
|
1235
1257
|
break;
|
|
1236
1258
|
}
|
|
1237
|
-
case
|
|
1259
|
+
case Ur: {
|
|
1238
1260
|
if (s.isNull) throw new Error();
|
|
1239
1261
|
e.ClientSessionId = s.asInt32();
|
|
1240
1262
|
break;
|
|
1241
1263
|
}
|
|
1242
|
-
case
|
|
1264
|
+
case Rr: {
|
|
1243
1265
|
if (s.isNull) throw new Error();
|
|
1244
1266
|
e.TrackId = s.asInt32();
|
|
1245
1267
|
break;
|
|
1246
1268
|
}
|
|
1247
|
-
case
|
|
1269
|
+
case mr: {
|
|
1248
1270
|
if (s.isNull) throw new Error();
|
|
1249
|
-
e.Info =
|
|
1271
|
+
e.Info = ps(s.asObject());
|
|
1250
1272
|
break;
|
|
1251
1273
|
}
|
|
1252
1274
|
}
|
|
1253
1275
|
}
|
|
1254
|
-
const
|
|
1255
|
-
function
|
|
1276
|
+
const Pr = 161083277, br = 325678206, pr = 3469892363, Fr = 3645544153;
|
|
1277
|
+
function vr(t) {
|
|
1256
1278
|
const e = {};
|
|
1257
|
-
return
|
|
1279
|
+
return pt(e), e;
|
|
1258
1280
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1281
|
+
function pt(t) {
|
|
1282
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = dt(), t;
|
|
1261
1283
|
}
|
|
1262
|
-
function
|
|
1263
|
-
const s = e ??
|
|
1264
|
-
return
|
|
1284
|
+
function Mr(t, e) {
|
|
1285
|
+
const s = e ?? vr();
|
|
1286
|
+
return pt(s), kr(t, s), s;
|
|
1265
1287
|
}
|
|
1266
|
-
function
|
|
1288
|
+
function kr(t, e) {
|
|
1267
1289
|
let s;
|
|
1268
1290
|
for (; (s = t.next()) !== null; )
|
|
1269
1291
|
switch (s.fieldId) {
|
|
1270
|
-
case
|
|
1292
|
+
case Pr: {
|
|
1271
1293
|
if (s.isNull) throw new Error();
|
|
1272
1294
|
e.StreamId = s.asString();
|
|
1273
1295
|
break;
|
|
1274
1296
|
}
|
|
1275
|
-
case
|
|
1297
|
+
case br: {
|
|
1276
1298
|
if (s.isNull) throw new Error();
|
|
1277
1299
|
e.ClientSessionId = s.asInt32();
|
|
1278
1300
|
break;
|
|
1279
1301
|
}
|
|
1280
|
-
case
|
|
1302
|
+
case pr: {
|
|
1281
1303
|
if (s.isNull) throw new Error();
|
|
1282
1304
|
e.TrackId = s.asInt32();
|
|
1283
1305
|
break;
|
|
1284
1306
|
}
|
|
1285
|
-
case
|
|
1307
|
+
case Fr: {
|
|
1286
1308
|
if (s.isNull) throw new Error();
|
|
1287
|
-
e.Info =
|
|
1309
|
+
e.Info = ue(s.asObject());
|
|
1288
1310
|
break;
|
|
1289
1311
|
}
|
|
1290
1312
|
}
|
|
1291
1313
|
}
|
|
1292
|
-
const
|
|
1293
|
-
function
|
|
1314
|
+
const Vr = 161083277, Gr = 325678206, Br = 3469892363, xr = 3645544153;
|
|
1315
|
+
function Hr(t) {
|
|
1294
1316
|
const e = {};
|
|
1295
|
-
return
|
|
1317
|
+
return Ft(e), e;
|
|
1296
1318
|
}
|
|
1297
|
-
function
|
|
1298
|
-
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info =
|
|
1319
|
+
function Ft(t) {
|
|
1320
|
+
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = gt(), t;
|
|
1299
1321
|
}
|
|
1300
|
-
function
|
|
1301
|
-
const s = e ??
|
|
1302
|
-
return
|
|
1322
|
+
function Yr(t, e) {
|
|
1323
|
+
const s = e ?? Hr();
|
|
1324
|
+
return Ft(s), $r(t, s), s;
|
|
1303
1325
|
}
|
|
1304
|
-
function
|
|
1326
|
+
function $r(t, e) {
|
|
1305
1327
|
let s;
|
|
1306
1328
|
for (; (s = t.next()) !== null; )
|
|
1307
1329
|
switch (s.fieldId) {
|
|
1308
|
-
case
|
|
1330
|
+
case Vr: {
|
|
1309
1331
|
if (s.isNull) throw new Error();
|
|
1310
1332
|
e.StreamId = s.asString();
|
|
1311
1333
|
break;
|
|
1312
1334
|
}
|
|
1313
|
-
case
|
|
1335
|
+
case Gr: {
|
|
1314
1336
|
if (s.isNull) throw new Error();
|
|
1315
1337
|
e.ClientSessionId = s.asInt32();
|
|
1316
1338
|
break;
|
|
1317
1339
|
}
|
|
1318
|
-
case
|
|
1340
|
+
case Br: {
|
|
1319
1341
|
if (s.isNull) throw new Error();
|
|
1320
1342
|
e.TrackId = s.asInt32();
|
|
1321
1343
|
break;
|
|
1322
1344
|
}
|
|
1323
|
-
case
|
|
1345
|
+
case xr: {
|
|
1324
1346
|
if (s.isNull) throw new Error();
|
|
1325
|
-
e.Info =
|
|
1347
|
+
e.Info = Hs(s.asObject());
|
|
1326
1348
|
break;
|
|
1327
1349
|
}
|
|
1328
1350
|
}
|
|
1329
1351
|
}
|
|
1330
|
-
const
|
|
1331
|
-
function
|
|
1352
|
+
const Kr = 161083277, jr = 325678206, Xr = 3469892363, zr = 3645544153;
|
|
1353
|
+
function Wr(t) {
|
|
1332
1354
|
const e = {};
|
|
1333
1355
|
return vt(e), e;
|
|
1334
1356
|
}
|
|
1335
1357
|
function vt(t) {
|
|
1336
1358
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ut(), t;
|
|
1337
1359
|
}
|
|
1338
|
-
function
|
|
1339
|
-
const s = e ??
|
|
1340
|
-
return vt(s),
|
|
1360
|
+
function Jr(t, e) {
|
|
1361
|
+
const s = e ?? Wr();
|
|
1362
|
+
return vt(s), qr(t, s), s;
|
|
1341
1363
|
}
|
|
1342
|
-
function
|
|
1364
|
+
function qr(t, e) {
|
|
1343
1365
|
let s;
|
|
1344
1366
|
for (; (s = t.next()) !== null; )
|
|
1345
1367
|
switch (s.fieldId) {
|
|
1346
|
-
case
|
|
1368
|
+
case Kr: {
|
|
1347
1369
|
if (s.isNull) throw new Error();
|
|
1348
1370
|
e.StreamId = s.asString();
|
|
1349
1371
|
break;
|
|
1350
1372
|
}
|
|
1351
|
-
case
|
|
1373
|
+
case jr: {
|
|
1352
1374
|
if (s.isNull) throw new Error();
|
|
1353
1375
|
e.ClientSessionId = s.asInt32();
|
|
1354
1376
|
break;
|
|
1355
1377
|
}
|
|
1356
|
-
case
|
|
1378
|
+
case Xr: {
|
|
1357
1379
|
if (s.isNull) throw new Error();
|
|
1358
1380
|
e.TrackId = s.asInt32();
|
|
1359
1381
|
break;
|
|
1360
1382
|
}
|
|
1361
|
-
case
|
|
1383
|
+
case zr: {
|
|
1362
1384
|
if (s.isNull) throw new Error();
|
|
1363
|
-
e.Info =
|
|
1385
|
+
e.Info = gs(s.asObject());
|
|
1364
1386
|
break;
|
|
1365
1387
|
}
|
|
1366
1388
|
}
|
|
1367
1389
|
}
|
|
1368
|
-
const
|
|
1369
|
-
function
|
|
1390
|
+
const Qr = 1405462580, Zr = 2968276160;
|
|
1391
|
+
function tn(t) {
|
|
1370
1392
|
const e = {};
|
|
1371
1393
|
return Mt(e), e;
|
|
1372
1394
|
}
|
|
1373
1395
|
function Mt(t) {
|
|
1374
1396
|
return t.MimeType = "", t.Value = new Uint8Array(0), t;
|
|
1375
1397
|
}
|
|
1376
|
-
function
|
|
1377
|
-
const s = e ??
|
|
1378
|
-
return Mt(s),
|
|
1398
|
+
function en(t, e) {
|
|
1399
|
+
const s = e ?? tn();
|
|
1400
|
+
return Mt(s), sn(t, s), s;
|
|
1379
1401
|
}
|
|
1380
|
-
function
|
|
1402
|
+
function sn(t, e) {
|
|
1381
1403
|
let s;
|
|
1382
1404
|
for (; (s = t.next()) !== null; )
|
|
1383
1405
|
switch (s.fieldId) {
|
|
1384
|
-
case
|
|
1406
|
+
case Qr: {
|
|
1385
1407
|
if (s.isNull) throw new Error();
|
|
1386
1408
|
e.Value = s.asBinary();
|
|
1387
1409
|
break;
|
|
1388
1410
|
}
|
|
1389
|
-
case
|
|
1411
|
+
case Zr: {
|
|
1390
1412
|
if (s.isNull) throw new Error();
|
|
1391
1413
|
e.MimeType = s.asString();
|
|
1392
1414
|
break;
|
|
1393
1415
|
}
|
|
1394
1416
|
}
|
|
1395
1417
|
}
|
|
1396
|
-
const
|
|
1397
|
-
function
|
|
1418
|
+
const rn = 2097188, nn = 979822885, on = 2374537704;
|
|
1419
|
+
function an(t) {
|
|
1398
1420
|
const e = {};
|
|
1399
1421
|
return kt(e), e;
|
|
1400
1422
|
}
|
|
1401
1423
|
function kt(t) {
|
|
1402
1424
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1403
1425
|
}
|
|
1404
|
-
function
|
|
1426
|
+
function ln(t, e) {
|
|
1405
1427
|
const s = L.create(t);
|
|
1406
|
-
return
|
|
1428
|
+
return In(s, e);
|
|
1407
1429
|
}
|
|
1408
|
-
function
|
|
1409
|
-
const s = e ??
|
|
1410
|
-
return kt(s),
|
|
1430
|
+
function In(t, e) {
|
|
1431
|
+
const s = e ?? an();
|
|
1432
|
+
return kt(s), cn(t, s), s;
|
|
1411
1433
|
}
|
|
1412
|
-
function
|
|
1434
|
+
function cn(t, e) {
|
|
1413
1435
|
let s;
|
|
1414
1436
|
for (; (s = t.next()) !== null; )
|
|
1415
1437
|
switch (s.fieldId) {
|
|
1416
|
-
case
|
|
1438
|
+
case nn: {
|
|
1417
1439
|
if (s.isNull) throw new Error();
|
|
1418
1440
|
e.StyleId = s.asString();
|
|
1419
1441
|
break;
|
|
1420
1442
|
}
|
|
1421
|
-
case
|
|
1443
|
+
case on: {
|
|
1422
1444
|
if (s.isNull) throw new Error();
|
|
1423
|
-
e.Style =
|
|
1445
|
+
e.Style = _n(s.asDictionary());
|
|
1424
1446
|
break;
|
|
1425
1447
|
}
|
|
1426
1448
|
}
|
|
1427
1449
|
}
|
|
1428
|
-
function
|
|
1429
|
-
const s = $(t,
|
|
1430
|
-
return
|
|
1450
|
+
async function En(t, e) {
|
|
1451
|
+
const s = await $(t, rn);
|
|
1452
|
+
return ln(s, e);
|
|
1431
1453
|
}
|
|
1432
|
-
function
|
|
1454
|
+
function _n(t) {
|
|
1433
1455
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1434
1456
|
let s;
|
|
1435
1457
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -1438,73 +1460,73 @@ function cn(t) {
|
|
|
1438
1460
|
}
|
|
1439
1461
|
return e;
|
|
1440
1462
|
}
|
|
1441
|
-
const
|
|
1442
|
-
function
|
|
1463
|
+
const fn = 2097192, hn = 2136687806;
|
|
1464
|
+
function un(t) {
|
|
1443
1465
|
const e = {};
|
|
1444
1466
|
return Vt(e), e;
|
|
1445
1467
|
}
|
|
1446
1468
|
function Vt(t) {
|
|
1447
1469
|
return t.Styles = [], t;
|
|
1448
1470
|
}
|
|
1449
|
-
function
|
|
1471
|
+
function Tn(t, e) {
|
|
1450
1472
|
const s = L.create(t);
|
|
1451
|
-
return
|
|
1473
|
+
return An(s, e);
|
|
1452
1474
|
}
|
|
1453
|
-
function
|
|
1454
|
-
const s = e ??
|
|
1455
|
-
return Vt(s),
|
|
1475
|
+
function An(t, e) {
|
|
1476
|
+
const s = e ?? un();
|
|
1477
|
+
return Vt(s), Nn(t, s), s;
|
|
1456
1478
|
}
|
|
1457
|
-
function
|
|
1479
|
+
function Nn(t, e) {
|
|
1458
1480
|
let s;
|
|
1459
1481
|
for (; (s = t.next()) !== null; )
|
|
1460
1482
|
switch (s.fieldId) {
|
|
1461
|
-
case
|
|
1483
|
+
case hn: {
|
|
1462
1484
|
if (s.isNull) throw new Error();
|
|
1463
|
-
e.Styles =
|
|
1485
|
+
e.Styles = Sn(s.asArray());
|
|
1464
1486
|
break;
|
|
1465
1487
|
}
|
|
1466
1488
|
}
|
|
1467
1489
|
}
|
|
1468
|
-
function
|
|
1469
|
-
const s = $(t,
|
|
1470
|
-
return
|
|
1490
|
+
async function dn(t, e) {
|
|
1491
|
+
const s = await $(t, fn);
|
|
1492
|
+
return Tn(s, e);
|
|
1471
1493
|
}
|
|
1472
|
-
function
|
|
1494
|
+
function Sn(t) {
|
|
1473
1495
|
const e = [];
|
|
1474
1496
|
let s;
|
|
1475
1497
|
for (; (s = t.next()) !== null; )
|
|
1476
|
-
e.push(
|
|
1498
|
+
e.push(Dn(s.asObject()));
|
|
1477
1499
|
return e;
|
|
1478
1500
|
}
|
|
1479
|
-
const
|
|
1480
|
-
function
|
|
1501
|
+
const yn = 979822885, wn = 2374537704;
|
|
1502
|
+
function Cn(t) {
|
|
1481
1503
|
const e = {};
|
|
1482
1504
|
return Gt(e), e;
|
|
1483
1505
|
}
|
|
1484
1506
|
function Gt(t) {
|
|
1485
1507
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1486
1508
|
}
|
|
1487
|
-
function
|
|
1488
|
-
const s = e ??
|
|
1489
|
-
return Gt(s),
|
|
1509
|
+
function Dn(t, e) {
|
|
1510
|
+
const s = e ?? Cn();
|
|
1511
|
+
return Gt(s), Un(t, s), s;
|
|
1490
1512
|
}
|
|
1491
|
-
function
|
|
1513
|
+
function Un(t, e) {
|
|
1492
1514
|
let s;
|
|
1493
1515
|
for (; (s = t.next()) !== null; )
|
|
1494
1516
|
switch (s.fieldId) {
|
|
1495
|
-
case
|
|
1517
|
+
case yn: {
|
|
1496
1518
|
if (s.isNull) throw new Error();
|
|
1497
1519
|
e.StyleId = s.asString();
|
|
1498
1520
|
break;
|
|
1499
1521
|
}
|
|
1500
|
-
case
|
|
1522
|
+
case wn: {
|
|
1501
1523
|
if (s.isNull) throw new Error();
|
|
1502
|
-
e.Style =
|
|
1524
|
+
e.Style = Rn(s.asDictionary());
|
|
1503
1525
|
break;
|
|
1504
1526
|
}
|
|
1505
1527
|
}
|
|
1506
1528
|
}
|
|
1507
|
-
function
|
|
1529
|
+
function Rn(t) {
|
|
1508
1530
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1509
1531
|
let s;
|
|
1510
1532
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -1513,86 +1535,86 @@ function Dn(t) {
|
|
|
1513
1535
|
}
|
|
1514
1536
|
return e;
|
|
1515
1537
|
}
|
|
1516
|
-
const
|
|
1517
|
-
function
|
|
1538
|
+
const mn = 2097193, Ln = 1415642792;
|
|
1539
|
+
function gn(t) {
|
|
1518
1540
|
const e = {};
|
|
1519
1541
|
return Bt(e), e;
|
|
1520
1542
|
}
|
|
1521
1543
|
function Bt(t) {
|
|
1522
1544
|
return t.StyleIds = [], t;
|
|
1523
1545
|
}
|
|
1524
|
-
function
|
|
1546
|
+
function On(t, e) {
|
|
1525
1547
|
const s = L.create(t);
|
|
1526
|
-
return
|
|
1548
|
+
return Pn(s, e);
|
|
1527
1549
|
}
|
|
1528
|
-
function
|
|
1529
|
-
const s = e ??
|
|
1530
|
-
return Bt(s),
|
|
1550
|
+
function Pn(t, e) {
|
|
1551
|
+
const s = e ?? gn();
|
|
1552
|
+
return Bt(s), bn(t, s), s;
|
|
1531
1553
|
}
|
|
1532
|
-
function
|
|
1554
|
+
function bn(t, e) {
|
|
1533
1555
|
let s;
|
|
1534
1556
|
for (; (s = t.next()) !== null; )
|
|
1535
1557
|
switch (s.fieldId) {
|
|
1536
|
-
case
|
|
1558
|
+
case Ln: {
|
|
1537
1559
|
if (s.isNull) throw new Error();
|
|
1538
|
-
e.StyleIds =
|
|
1560
|
+
e.StyleIds = Fn(s.asArray());
|
|
1539
1561
|
break;
|
|
1540
1562
|
}
|
|
1541
1563
|
}
|
|
1542
1564
|
}
|
|
1543
|
-
function
|
|
1544
|
-
const s = $(t,
|
|
1545
|
-
return
|
|
1565
|
+
async function pn(t, e) {
|
|
1566
|
+
const s = await $(t, mn);
|
|
1567
|
+
return On(s, e);
|
|
1546
1568
|
}
|
|
1547
|
-
function
|
|
1569
|
+
function Fn(t) {
|
|
1548
1570
|
const e = [];
|
|
1549
1571
|
let s;
|
|
1550
1572
|
for (; (s = t.next()) !== null; )
|
|
1551
1573
|
e.push(s.asString());
|
|
1552
1574
|
return e;
|
|
1553
1575
|
}
|
|
1554
|
-
const
|
|
1555
|
-
function
|
|
1576
|
+
const vn = 2097190, Mn = 425183262, kn = 653781469;
|
|
1577
|
+
function Vn(t) {
|
|
1556
1578
|
const e = {};
|
|
1557
1579
|
return xt(e), e;
|
|
1558
1580
|
}
|
|
1559
1581
|
function xt(t) {
|
|
1560
1582
|
return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
|
|
1561
1583
|
}
|
|
1562
|
-
function
|
|
1584
|
+
function Gn(t, e) {
|
|
1563
1585
|
const s = L.create(t);
|
|
1564
|
-
return
|
|
1586
|
+
return Bn(s, e);
|
|
1565
1587
|
}
|
|
1566
|
-
function
|
|
1567
|
-
const s = e ??
|
|
1568
|
-
return xt(s),
|
|
1588
|
+
function Bn(t, e) {
|
|
1589
|
+
const s = e ?? Vn();
|
|
1590
|
+
return xt(s), xn(t, s), s;
|
|
1569
1591
|
}
|
|
1570
|
-
function
|
|
1592
|
+
function xn(t, e) {
|
|
1571
1593
|
let s;
|
|
1572
1594
|
for (; (s = t.next()) !== null; )
|
|
1573
1595
|
switch (s.fieldId) {
|
|
1574
|
-
case
|
|
1596
|
+
case Mn: {
|
|
1575
1597
|
if (s.isNull) throw new Error();
|
|
1576
1598
|
e.Json = s.asString();
|
|
1577
1599
|
break;
|
|
1578
1600
|
}
|
|
1579
|
-
case
|
|
1601
|
+
case kn: {
|
|
1580
1602
|
if (s.isNull) throw new Error();
|
|
1581
|
-
e.Payloads =
|
|
1603
|
+
e.Payloads = Yn(s.asDictionary());
|
|
1582
1604
|
break;
|
|
1583
1605
|
}
|
|
1584
1606
|
}
|
|
1585
1607
|
}
|
|
1586
|
-
function
|
|
1587
|
-
const s = $(t,
|
|
1588
|
-
return
|
|
1608
|
+
async function Hn(t, e) {
|
|
1609
|
+
const s = await $(t, vn);
|
|
1610
|
+
return Gn(s, e);
|
|
1589
1611
|
}
|
|
1590
|
-
function
|
|
1612
|
+
function Yn(t) {
|
|
1591
1613
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1592
1614
|
let s;
|
|
1593
1615
|
for (; (s = t.next()) !== null; ) {
|
|
1594
1616
|
const r = s.key.asString();
|
|
1595
|
-
e[r] =
|
|
1617
|
+
e[r] = en(s.value.asObject());
|
|
1596
1618
|
}
|
|
1597
1619
|
return e;
|
|
1598
1620
|
}
|
|
@@ -1652,7 +1674,7 @@ function ot(t, e) {
|
|
|
1652
1674
|
styleIds: l ?? []
|
|
1653
1675
|
};
|
|
1654
1676
|
}
|
|
1655
|
-
function
|
|
1677
|
+
function $n(t, e) {
|
|
1656
1678
|
if (!y(t))
|
|
1657
1679
|
throw new Error(`Invalid text delta at ${e}`);
|
|
1658
1680
|
const s = t.NodeId, r = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
|
|
@@ -1679,7 +1701,7 @@ function Hn(t, e) {
|
|
|
1679
1701
|
insertedText: o
|
|
1680
1702
|
};
|
|
1681
1703
|
}
|
|
1682
|
-
function
|
|
1704
|
+
function Kn(t, e) {
|
|
1683
1705
|
if (!y(t))
|
|
1684
1706
|
throw new Error(`Invalid child insert at ${e}`);
|
|
1685
1707
|
const s = t.Index, r = t.Node;
|
|
@@ -1692,7 +1714,7 @@ function Yn(t, e) {
|
|
|
1692
1714
|
node: ot(r, `${e}.node`)
|
|
1693
1715
|
};
|
|
1694
1716
|
}
|
|
1695
|
-
function
|
|
1717
|
+
function jn(t, e) {
|
|
1696
1718
|
if (!y(t))
|
|
1697
1719
|
throw new Error(`Invalid child move at ${e}`);
|
|
1698
1720
|
const s = t.NodeId, r = t.FromIndex, n = t.ToIndex;
|
|
@@ -1708,7 +1730,7 @@ function $n(t, e) {
|
|
|
1708
1730
|
toIndex: n
|
|
1709
1731
|
};
|
|
1710
1732
|
}
|
|
1711
|
-
function
|
|
1733
|
+
function Xn(t, e) {
|
|
1712
1734
|
if (!y(t))
|
|
1713
1735
|
throw new Error(`Invalid child remove at ${e}`);
|
|
1714
1736
|
const s = t.NodeId, r = t.Index;
|
|
@@ -1721,18 +1743,18 @@ function Kn(t, e) {
|
|
|
1721
1743
|
index: r
|
|
1722
1744
|
};
|
|
1723
1745
|
}
|
|
1724
|
-
function
|
|
1746
|
+
function zn(t, e) {
|
|
1725
1747
|
if (!y(t))
|
|
1726
1748
|
throw new Error(`Invalid node change at ${e}`);
|
|
1727
1749
|
const s = t.nodeId;
|
|
1728
1750
|
if (typeof s != "string" || s.length === 0)
|
|
1729
1751
|
throw new Error(`Invalid node change nodeId at ${e}`);
|
|
1730
1752
|
const r = Array.isArray(t.inserts) ? t.inserts.map(
|
|
1731
|
-
(c, E) =>
|
|
1753
|
+
(c, E) => Kn(c ?? {}, `${e}.inserts[${E}]`)
|
|
1732
1754
|
) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
|
|
1733
|
-
(c, E) =>
|
|
1755
|
+
(c, E) => jn(c ?? {}, `${e}.moves[${E}]`)
|
|
1734
1756
|
) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
|
|
1735
|
-
(c, E) =>
|
|
1757
|
+
(c, E) => Xn(c ?? {}, `${e}.removals[${E}]`)
|
|
1736
1758
|
) : void 0;
|
|
1737
1759
|
let o;
|
|
1738
1760
|
if (y(t.changedProps)) {
|
|
@@ -1745,7 +1767,7 @@ function jn(t, e) {
|
|
|
1745
1767
|
}
|
|
1746
1768
|
}
|
|
1747
1769
|
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
1748
|
-
(c, E) =>
|
|
1770
|
+
(c, E) => $n(c ?? {}, `${e}.textUpdates[${E}]`)
|
|
1749
1771
|
) : void 0, I = t.styleIds, l = I !== void 0 ? Yt(I, e, s, !0) : void 0;
|
|
1750
1772
|
return {
|
|
1751
1773
|
nodeId: s,
|
|
@@ -1757,19 +1779,19 @@ function jn(t, e) {
|
|
|
1757
1779
|
...l !== void 0 ? { styleIds: l } : {}
|
|
1758
1780
|
};
|
|
1759
1781
|
}
|
|
1760
|
-
function
|
|
1782
|
+
function Wn(t) {
|
|
1761
1783
|
const e = /* @__PURE__ */ new Map();
|
|
1762
1784
|
for (const [s, r] of Object.entries(t))
|
|
1763
1785
|
e.set(s, r);
|
|
1764
1786
|
return e;
|
|
1765
1787
|
}
|
|
1766
|
-
function
|
|
1788
|
+
function Jn(t, e, s) {
|
|
1767
1789
|
if (!t || typeof t != "object")
|
|
1768
1790
|
throw new D("UI update graph is missing");
|
|
1769
1791
|
const r = ot(t, "graph");
|
|
1770
1792
|
if (r.type !== "root")
|
|
1771
1793
|
throw new D('UI update root element must have type "root"');
|
|
1772
|
-
const n =
|
|
1794
|
+
const n = Qn(r.props, e);
|
|
1773
1795
|
return {
|
|
1774
1796
|
type: "full",
|
|
1775
1797
|
version: s,
|
|
@@ -1777,7 +1799,7 @@ function zn(t, e, s) {
|
|
|
1777
1799
|
metadata: n
|
|
1778
1800
|
};
|
|
1779
1801
|
}
|
|
1780
|
-
function
|
|
1802
|
+
function qn(t, e, s) {
|
|
1781
1803
|
if (!Array.isArray(t))
|
|
1782
1804
|
throw new D("UI diff changes must be an array");
|
|
1783
1805
|
if (!y(e))
|
|
@@ -1786,7 +1808,7 @@ function Wn(t, e, s) {
|
|
|
1786
1808
|
if (typeof r != "string" || r.length === 0)
|
|
1787
1809
|
throw new D("UI diff metadata is missing viewId");
|
|
1788
1810
|
const n = t.map(
|
|
1789
|
-
(E, _) =>
|
|
1811
|
+
(E, _) => zn(E ?? {}, `changes[${_}]`)
|
|
1790
1812
|
), i = e.optimisticActionId === null || typeof e.optimisticActionId == "string" ? e.optimisticActionId : void 0, o = typeof e.isOptimistic == "boolean" ? e.isOptimistic : void 0, a = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0, I = Q(e.optimisticPatch), l = Z(e.optimisticReconcile), c = {
|
|
1791
1813
|
viewId: r,
|
|
1792
1814
|
...i !== void 0 ? { optimisticActionId: i } : {},
|
|
@@ -1802,7 +1824,7 @@ function Wn(t, e, s) {
|
|
|
1802
1824
|
metadata: c
|
|
1803
1825
|
};
|
|
1804
1826
|
}
|
|
1805
|
-
function
|
|
1827
|
+
function Qn(t, e) {
|
|
1806
1828
|
const s = t.viewId;
|
|
1807
1829
|
if (typeof s != "string" || s.length === 0)
|
|
1808
1830
|
throw new D("UI update root is missing viewId");
|
|
@@ -1860,7 +1882,7 @@ class D extends Error {
|
|
|
1860
1882
|
super(e), this.causeError = s, this.name = "UiUpdateParseError", s instanceof Error && (this.stack = s.stack);
|
|
1861
1883
|
}
|
|
1862
1884
|
}
|
|
1863
|
-
function
|
|
1885
|
+
function Zn(t) {
|
|
1864
1886
|
let e;
|
|
1865
1887
|
try {
|
|
1866
1888
|
e = JSON.parse(t.Json);
|
|
@@ -1874,13 +1896,13 @@ function qn(t) {
|
|
|
1874
1896
|
throw new D(`Unknown UI update type: ${String(s)}`);
|
|
1875
1897
|
if (typeof r != "number")
|
|
1876
1898
|
throw new D("UI update version must be a number");
|
|
1877
|
-
const n = s === "full" ?
|
|
1899
|
+
const n = s === "full" ? Jn(e.graph, e.metadata, r) : qn(e.changes, e.metadata, r), i = t.Payloads ? Wn(t.Payloads) : /* @__PURE__ */ new Map();
|
|
1878
1900
|
return {
|
|
1879
1901
|
snapshot: n,
|
|
1880
1902
|
payloads: i
|
|
1881
1903
|
};
|
|
1882
1904
|
}
|
|
1883
|
-
class
|
|
1905
|
+
class ti {
|
|
1884
1906
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1885
1907
|
cache = /* @__PURE__ */ new Map();
|
|
1886
1908
|
/**
|
|
@@ -1961,7 +1983,7 @@ class Qn {
|
|
|
1961
1983
|
return this.cache.size;
|
|
1962
1984
|
}
|
|
1963
1985
|
}
|
|
1964
|
-
class
|
|
1986
|
+
class ei {
|
|
1965
1987
|
views = /* @__PURE__ */ new Map();
|
|
1966
1988
|
listeners = /* @__PURE__ */ new Set();
|
|
1967
1989
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -1983,7 +2005,7 @@ class Zn {
|
|
|
1983
2005
|
patchesDirty = !0;
|
|
1984
2006
|
payloadsDirty = !0;
|
|
1985
2007
|
// Handler cache for stable event handlers
|
|
1986
|
-
handlerCache = new
|
|
2008
|
+
handlerCache = new ti();
|
|
1987
2009
|
getSortedPatches(e) {
|
|
1988
2010
|
const s = this.buildPatchCacheKey(e.patches);
|
|
1989
2011
|
if (e.sortedPatchesCacheKey === s && e.sortedPatchesCache)
|
|
@@ -2052,8 +2074,8 @@ class Zn {
|
|
|
2052
2074
|
const E = J(c, s.changes);
|
|
2053
2075
|
E !== c ? (o.baseline = E, I = !0, this.viewsDirty = !0) : o.baseline = E, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? s.version;
|
|
2054
2076
|
let _ = o.baseline ?? E;
|
|
2055
|
-
const
|
|
2056
|
-
for (const h of
|
|
2077
|
+
const A = this.getSortedPatches(o);
|
|
2078
|
+
for (const h of A) {
|
|
2057
2079
|
const w = J(_, h.changes);
|
|
2058
2080
|
w !== _ && (I = !0, this.viewsDirty = !0), _ = w, h.baseVersion = o.baselineVersion;
|
|
2059
2081
|
}
|
|
@@ -2084,25 +2106,25 @@ class Zn {
|
|
|
2084
2106
|
for (const _ of e.deleteViews)
|
|
2085
2107
|
a().delete(_) && (r = !0, this.structureChanged = !0);
|
|
2086
2108
|
if (e.upsertViews && e.upsertViews.length > 0)
|
|
2087
|
-
for (const [_,
|
|
2109
|
+
for (const [_, A] of e.upsertViews) {
|
|
2088
2110
|
const h = a(), w = h.get(_);
|
|
2089
|
-
w !==
|
|
2111
|
+
w !== A && (h.set(_, A), r = !0, w ? X(w, A, this.changedNodeIds) : (b(A, this.changedNodeIds), this.structureChanged = !0));
|
|
2090
2112
|
}
|
|
2091
2113
|
if (e.deletePayloads && e.deletePayloads.length > 0)
|
|
2092
2114
|
for (const _ of e.deletePayloads)
|
|
2093
2115
|
I().delete(_) && (r = !0);
|
|
2094
2116
|
if (e.upsertPayloads && e.upsertPayloads.length > 0)
|
|
2095
|
-
for (const [_,
|
|
2117
|
+
for (const [_, A] of e.upsertPayloads) {
|
|
2096
2118
|
const h = I();
|
|
2097
|
-
h.get(_) !==
|
|
2119
|
+
h.get(_) !== A && (h.set(_, A), r = !0);
|
|
2098
2120
|
}
|
|
2099
2121
|
if (e.deleteOptimisticPatchesForViews && e.deleteOptimisticPatchesForViews.length > 0)
|
|
2100
2122
|
for (const _ of e.deleteOptimisticPatchesForViews)
|
|
2101
2123
|
l().delete(_) && (r = !0);
|
|
2102
2124
|
if (e.upsertOptimisticPatches && e.upsertOptimisticPatches.length > 0)
|
|
2103
|
-
for (const [_,
|
|
2125
|
+
for (const [_, A] of e.upsertOptimisticPatches) {
|
|
2104
2126
|
const h = l(), w = h.get(_);
|
|
2105
|
-
|
|
2127
|
+
ii(w, A) || (h.set(_, A), r = !0);
|
|
2106
2128
|
}
|
|
2107
2129
|
const c = e.rootViewId ?? this.snapshot.rootViewId;
|
|
2108
2130
|
c !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
|
|
@@ -2229,7 +2251,7 @@ class Zn {
|
|
|
2229
2251
|
}
|
|
2230
2252
|
}
|
|
2231
2253
|
}
|
|
2232
|
-
class
|
|
2254
|
+
class si {
|
|
2233
2255
|
streams = /* @__PURE__ */ new Map();
|
|
2234
2256
|
listeners = /* @__PURE__ */ new Set();
|
|
2235
2257
|
apply(e, s) {
|
|
@@ -2293,7 +2315,7 @@ class ti {
|
|
|
2293
2315
|
}
|
|
2294
2316
|
getOrCreateStreamEntry(e) {
|
|
2295
2317
|
let s = this.streams.get(e);
|
|
2296
|
-
return s || (s = { store: new
|
|
2318
|
+
return s || (s = { store: new ei() }, this.streams.set(e, s)), s;
|
|
2297
2319
|
}
|
|
2298
2320
|
notify(e) {
|
|
2299
2321
|
for (const s of this.listeners)
|
|
@@ -2312,20 +2334,20 @@ function $t(t, e, s) {
|
|
|
2312
2334
|
const r = e.get(t.id);
|
|
2313
2335
|
let n = t, i = !1;
|
|
2314
2336
|
if (r?.textUpdates && r.textUpdates.length > 0) {
|
|
2315
|
-
const f =
|
|
2337
|
+
const f = ai(t, r.textUpdates);
|
|
2316
2338
|
n = f.node, i = f.changed;
|
|
2317
2339
|
}
|
|
2318
2340
|
let o = !1, a = n.props;
|
|
2319
2341
|
if (r?.changedProps && r.changedProps.size > 0)
|
|
2320
|
-
for (const [f,
|
|
2342
|
+
for (const [f, d] of r.changedProps.entries()) {
|
|
2321
2343
|
const u = a[f];
|
|
2322
|
-
if (
|
|
2344
|
+
if (d === void 0)
|
|
2323
2345
|
(u !== void 0 || f in a) && (o || (a = k(a), o = !0), delete a[f]);
|
|
2324
|
-
else if (tt(
|
|
2325
|
-
const
|
|
2326
|
-
v(
|
|
2346
|
+
else if (tt(d)) {
|
|
2347
|
+
const N = k(d);
|
|
2348
|
+
v(N, u) || (o || (a = k(a), o = !0), a[f] = N);
|
|
2327
2349
|
} else
|
|
2328
|
-
v(
|
|
2350
|
+
v(d, u) || (o || (a = k(a), o = !0), a[f] = d);
|
|
2329
2351
|
}
|
|
2330
2352
|
let I = !1, l = n.styleIds;
|
|
2331
2353
|
r?.styleIds !== void 0 && (Xt(n.styleIds, r.styleIds) || (l = r.styleIds, I = !0));
|
|
@@ -2334,31 +2356,31 @@ function $t(t, e, s) {
|
|
|
2334
2356
|
if (r?.removals && r.removals.length > 0 || r?.moves && r.moves.length > 0 || r?.inserts && r.inserts.length > 0) {
|
|
2335
2357
|
const f = E.slice();
|
|
2336
2358
|
if (r?.removals && r.removals.length > 0) {
|
|
2337
|
-
const
|
|
2338
|
-
for (const u of
|
|
2359
|
+
const d = [...r.removals].sort((u, N) => N.index - u.index);
|
|
2360
|
+
for (const u of d)
|
|
2339
2361
|
u.index >= 0 && u.index < f.length && f.splice(u.index, 1);
|
|
2340
2362
|
_ = !0;
|
|
2341
2363
|
}
|
|
2342
2364
|
if (r?.moves && r.moves.length > 0) {
|
|
2343
|
-
const
|
|
2344
|
-
for (const
|
|
2345
|
-
const m = f.findIndex((W) => W.id ===
|
|
2346
|
-
m >= 0 && (u.set(
|
|
2365
|
+
const d = [...r.moves].sort((N, m) => N.toIndex - m.toIndex), u = /* @__PURE__ */ new Map();
|
|
2366
|
+
for (const N of d) {
|
|
2367
|
+
const m = f.findIndex((W) => W.id === N.nodeId);
|
|
2368
|
+
m >= 0 && (u.set(N.nodeId, f[m]), f.splice(m, 1));
|
|
2347
2369
|
}
|
|
2348
|
-
for (const
|
|
2349
|
-
const m = u.get(
|
|
2370
|
+
for (const N of d) {
|
|
2371
|
+
const m = u.get(N.nodeId);
|
|
2350
2372
|
if (m) {
|
|
2351
|
-
const W = Math.min(
|
|
2373
|
+
const W = Math.min(N.toIndex, f.length);
|
|
2352
2374
|
f.splice(W, 0, m);
|
|
2353
2375
|
}
|
|
2354
2376
|
}
|
|
2355
2377
|
_ = !0;
|
|
2356
2378
|
}
|
|
2357
2379
|
if (r?.inserts && r.inserts.length > 0) {
|
|
2358
|
-
const
|
|
2359
|
-
for (const u of
|
|
2360
|
-
const
|
|
2361
|
-
f.splice(
|
|
2380
|
+
const d = [...r.inserts].sort((u, N) => u.index - N.index);
|
|
2381
|
+
for (const u of d) {
|
|
2382
|
+
const N = Math.min(u.index, f.length);
|
|
2383
|
+
f.splice(N, 0, u.node);
|
|
2362
2384
|
}
|
|
2363
2385
|
_ = !0;
|
|
2364
2386
|
}
|
|
@@ -2366,8 +2388,8 @@ function $t(t, e, s) {
|
|
|
2366
2388
|
}
|
|
2367
2389
|
let h;
|
|
2368
2390
|
for (let f = 0; f < E.length; f++) {
|
|
2369
|
-
const
|
|
2370
|
-
u !==
|
|
2391
|
+
const d = E[f], u = $t(d, e);
|
|
2392
|
+
u !== d && (h || (h = E.slice()), h[f] = u);
|
|
2371
2393
|
}
|
|
2372
2394
|
return h && (E = h, _ = !0), i || o || I || _ ? !o && !_ && !I ? n : {
|
|
2373
2395
|
id: t.id,
|
|
@@ -2383,7 +2405,7 @@ function b(t, e) {
|
|
|
2383
2405
|
b(s, e);
|
|
2384
2406
|
}
|
|
2385
2407
|
const j = [];
|
|
2386
|
-
function
|
|
2408
|
+
function ri(t) {
|
|
2387
2409
|
for (; j.length <= t; )
|
|
2388
2410
|
j.push(/* @__PURE__ */ new Map());
|
|
2389
2411
|
return j[t].clear(), j[t];
|
|
@@ -2394,10 +2416,10 @@ function X(t, e, s) {
|
|
|
2394
2416
|
function Kt(t, e, s, r) {
|
|
2395
2417
|
if (t === e)
|
|
2396
2418
|
return;
|
|
2397
|
-
(t.type !== e.type || !
|
|
2419
|
+
(t.type !== e.type || !ni(t.props, e.props) || !Xt(t.styleIds, e.styleIds)) && s.add(e.id);
|
|
2398
2420
|
const i = t.children ?? [], o = e.children ?? [];
|
|
2399
2421
|
if (i !== o) {
|
|
2400
|
-
const a =
|
|
2422
|
+
const a = ri(r);
|
|
2401
2423
|
for (const I of i)
|
|
2402
2424
|
a.set(I.id, I);
|
|
2403
2425
|
for (const I of o) {
|
|
@@ -2407,7 +2429,7 @@ function Kt(t, e, s, r) {
|
|
|
2407
2429
|
i.length !== o.length && s.add(e.id);
|
|
2408
2430
|
}
|
|
2409
2431
|
}
|
|
2410
|
-
function
|
|
2432
|
+
function ni(t, e) {
|
|
2411
2433
|
return v(t, e);
|
|
2412
2434
|
}
|
|
2413
2435
|
function jt(t, e) {
|
|
@@ -2423,7 +2445,7 @@ function jt(t, e) {
|
|
|
2423
2445
|
function Xt(t, e) {
|
|
2424
2446
|
return v(t, e);
|
|
2425
2447
|
}
|
|
2426
|
-
function
|
|
2448
|
+
function ii(t, e) {
|
|
2427
2449
|
if (t === e) return !0;
|
|
2428
2450
|
if (!t || !e || t.length !== e.length) return !1;
|
|
2429
2451
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2433,7 +2455,7 @@ function ri(t, e) {
|
|
|
2433
2455
|
}
|
|
2434
2456
|
return !0;
|
|
2435
2457
|
}
|
|
2436
|
-
function
|
|
2458
|
+
function oi(t, e) {
|
|
2437
2459
|
if (e.length === 0)
|
|
2438
2460
|
return t;
|
|
2439
2461
|
const s = [...e].sort((i, o) => i.start - o.start);
|
|
@@ -2441,7 +2463,7 @@ function ni(t, e) {
|
|
|
2441
2463
|
for (const i of s) {
|
|
2442
2464
|
const o = lt(i.start + n, 0, r.length);
|
|
2443
2465
|
if (i.end == null) {
|
|
2444
|
-
const c = r.slice(o), E =
|
|
2466
|
+
const c = r.slice(o), E = li(c, i.insertedText);
|
|
2445
2467
|
r = r.slice(0, o) + i.insertedText + c.slice(E), n += i.insertedText.length - E;
|
|
2446
2468
|
continue;
|
|
2447
2469
|
}
|
|
@@ -2450,7 +2472,7 @@ function ni(t, e) {
|
|
|
2450
2472
|
}
|
|
2451
2473
|
return r;
|
|
2452
2474
|
}
|
|
2453
|
-
function
|
|
2475
|
+
function ai(t, e, s) {
|
|
2454
2476
|
if (e.length === 0)
|
|
2455
2477
|
return { node: t, changed: !1 };
|
|
2456
2478
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -2470,7 +2492,7 @@ function zt(t, e, s) {
|
|
|
2470
2492
|
E ? E.push(c) : l.set(c.propertyName, [c]);
|
|
2471
2493
|
}
|
|
2472
2494
|
for (const [c, E] of l.entries()) {
|
|
2473
|
-
const _ = i[c], h =
|
|
2495
|
+
const _ = i[c], h = oi(typeof _ == "string" ? _ : "", E);
|
|
2474
2496
|
n || (i = k(i), n = !0), i[c] = h;
|
|
2475
2497
|
}
|
|
2476
2498
|
}
|
|
@@ -2499,7 +2521,7 @@ function zt(t, e, s) {
|
|
|
2499
2521
|
function lt(t, e, s) {
|
|
2500
2522
|
return Math.max(e, Math.min(s, t));
|
|
2501
2523
|
}
|
|
2502
|
-
function
|
|
2524
|
+
function li(t, e) {
|
|
2503
2525
|
const s = Math.min(t.length, e.length);
|
|
2504
2526
|
let r = 0;
|
|
2505
2527
|
for (; r < s && t.charCodeAt(r) === e.charCodeAt(r); )
|
|
@@ -2539,20 +2561,20 @@ function v(t, e) {
|
|
|
2539
2561
|
}
|
|
2540
2562
|
return !1;
|
|
2541
2563
|
}
|
|
2542
|
-
const
|
|
2543
|
-
let Wt =
|
|
2564
|
+
const Ii = 16, ci = 50, O = new si(), H = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2565
|
+
let Wt = Ii, Jt = ci, V = [], G = null, B = null, R = 0, z = 0;
|
|
2544
2566
|
const x = /* @__PURE__ */ new Map();
|
|
2545
|
-
function
|
|
2567
|
+
function Ei() {
|
|
2546
2568
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2547
2569
|
}
|
|
2548
|
-
function
|
|
2570
|
+
function _i() {
|
|
2549
2571
|
try {
|
|
2550
2572
|
return crypto.randomUUID();
|
|
2551
2573
|
} catch {
|
|
2552
2574
|
return `${Date.now()}_${Math.random().toString(16).slice(2)}`;
|
|
2553
2575
|
}
|
|
2554
2576
|
}
|
|
2555
|
-
function
|
|
2577
|
+
function fi(t) {
|
|
2556
2578
|
const e = [];
|
|
2557
2579
|
for (const n of t.views)
|
|
2558
2580
|
e.push(n);
|
|
@@ -2572,7 +2594,7 @@ function Ei(t) {
|
|
|
2572
2594
|
optimisticPatches: r
|
|
2573
2595
|
};
|
|
2574
2596
|
}
|
|
2575
|
-
function
|
|
2597
|
+
function hi(t, e) {
|
|
2576
2598
|
if (t === e) return !0;
|
|
2577
2599
|
if (!t || !e || t.length !== e.length) return !1;
|
|
2578
2600
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2582,9 +2604,9 @@ function _i(t, e) {
|
|
|
2582
2604
|
}
|
|
2583
2605
|
return !0;
|
|
2584
2606
|
}
|
|
2585
|
-
function
|
|
2607
|
+
function ui(t, e, s) {
|
|
2586
2608
|
if (!s || s.version === -1)
|
|
2587
|
-
return { type: "ReplaceStreamSnapshot", snapshot:
|
|
2609
|
+
return { type: "ReplaceStreamSnapshot", snapshot: fi(e) };
|
|
2588
2610
|
let r, n;
|
|
2589
2611
|
for (const [l, c] of e.views)
|
|
2590
2612
|
s.views.get(l) !== c && (r ??= []).push([l, c]);
|
|
@@ -2598,7 +2620,7 @@ function fi(t, e, s) {
|
|
|
2598
2620
|
let a, I;
|
|
2599
2621
|
for (const [l, c] of e.optimisticPatches) {
|
|
2600
2622
|
const E = s.optimisticPatches.get(l);
|
|
2601
|
-
|
|
2623
|
+
hi(E, c) || (a ??= []).push([l, c.slice()]);
|
|
2602
2624
|
}
|
|
2603
2625
|
for (const l of s.optimisticPatches.keys())
|
|
2604
2626
|
e.optimisticPatches.has(l) || (I ??= []).push(l);
|
|
@@ -2632,8 +2654,8 @@ function It() {
|
|
|
2632
2654
|
for (const [s, r] of x)
|
|
2633
2655
|
t.push({ trackId: s, version: r });
|
|
2634
2656
|
const e = {
|
|
2635
|
-
batchId:
|
|
2636
|
-
createdAtMs:
|
|
2657
|
+
batchId: _i(),
|
|
2658
|
+
createdAtMs: Ei(),
|
|
2637
2659
|
ops: V,
|
|
2638
2660
|
...t.length > 0 ? { acks: t } : {},
|
|
2639
2661
|
stats: { uiMessagesConsumed: R, bytesConsumed: z }
|
|
@@ -2643,29 +2665,29 @@ function It() {
|
|
|
2643
2665
|
function Qt(t) {
|
|
2644
2666
|
return `${t.senderId}_${t.trackId}`;
|
|
2645
2667
|
}
|
|
2646
|
-
function
|
|
2647
|
-
const e =
|
|
2668
|
+
async function Ti(t) {
|
|
2669
|
+
const e = await Tr(t), s = /* @__PURE__ */ new Set();
|
|
2648
2670
|
for (const r of Object.values(e.UIStreams ?? {})) {
|
|
2649
2671
|
const n = r.StreamId;
|
|
2650
2672
|
s.add(n);
|
|
2651
2673
|
const i = r.Info?.Category;
|
|
2652
|
-
|
|
2674
|
+
O.getSnapshot(n)?.category !== i && (O.setCategory(n, i), P({ type: "SetStreamCategory", streamId: n, category: i }));
|
|
2653
2675
|
}
|
|
2654
|
-
for (const r of
|
|
2655
|
-
s.has(r.streamId) || (
|
|
2676
|
+
for (const r of O.getSnapshots())
|
|
2677
|
+
s.has(r.streamId) || (O.remove(r.streamId), Y.delete(r.streamId), P({ type: "RemoveStream", streamId: r.streamId }));
|
|
2656
2678
|
}
|
|
2657
|
-
function
|
|
2658
|
-
const e = et(t), s = Qt(e), r =
|
|
2659
|
-
if ((i === void 0 || n.snapshot.version > i) && (x.set(e.trackId, n.snapshot.version), qt()), !
|
|
2679
|
+
async function Ai(t) {
|
|
2680
|
+
const e = et(t), s = Qt(e), r = await Hn(t), n = Zn(r), i = x.get(e.trackId);
|
|
2681
|
+
if ((i === void 0 || n.snapshot.version > i) && (x.set(e.trackId, n.snapshot.version), qt()), !O.apply(s, n))
|
|
2660
2682
|
return;
|
|
2661
|
-
const a =
|
|
2683
|
+
const a = O.getSnapshot(s);
|
|
2662
2684
|
if (!a)
|
|
2663
2685
|
return;
|
|
2664
2686
|
const I = Y.get(s);
|
|
2665
|
-
Y.set(s, a), P(
|
|
2687
|
+
Y.set(s, a), P(ui(s, a, I));
|
|
2666
2688
|
}
|
|
2667
|
-
function
|
|
2668
|
-
const e =
|
|
2689
|
+
async function Ni(t) {
|
|
2690
|
+
const e = await En(t);
|
|
2669
2691
|
if (!e.StyleId)
|
|
2670
2692
|
return;
|
|
2671
2693
|
const s = {
|
|
@@ -2675,8 +2697,8 @@ function Ti(t) {
|
|
|
2675
2697
|
}, r = H.get(s.styleId);
|
|
2676
2698
|
r && r.css === s.css && r.common === s.common || (H.set(s.styleId, s), P({ type: "UpsertUiStyle", style: s }));
|
|
2677
2699
|
}
|
|
2678
|
-
function
|
|
2679
|
-
const e =
|
|
2700
|
+
async function di(t) {
|
|
2701
|
+
const e = await dn(t);
|
|
2680
2702
|
if (e.Styles)
|
|
2681
2703
|
for (const s of e.Styles) {
|
|
2682
2704
|
if (!s.StyleId)
|
|
@@ -2689,44 +2711,44 @@ function Ni(t) {
|
|
|
2689
2711
|
n && n.css === r.css && n.common === r.common || (H.set(r.styleId, r), P({ type: "UpsertUiStyle", style: r }));
|
|
2690
2712
|
}
|
|
2691
2713
|
}
|
|
2692
|
-
function
|
|
2714
|
+
function Si(t) {
|
|
2693
2715
|
const e = et(t), s = Qt(e);
|
|
2694
|
-
|
|
2716
|
+
O.clear(s), Y.delete(s), P({ type: "ClearStream", streamId: s });
|
|
2695
2717
|
}
|
|
2696
|
-
function
|
|
2697
|
-
const e =
|
|
2718
|
+
async function yi(t) {
|
|
2719
|
+
const e = await pn(t);
|
|
2698
2720
|
if (!(!e.StyleIds || e.StyleIds.length === 0))
|
|
2699
2721
|
for (const s of e.StyleIds)
|
|
2700
2722
|
H.delete(s) && P({ type: "RemoveUiStyle", styleId: s });
|
|
2701
2723
|
}
|
|
2702
|
-
function
|
|
2724
|
+
async function wi(t) {
|
|
2703
2725
|
const e = new Uint8Array(t);
|
|
2704
2726
|
z += e.byteLength;
|
|
2705
2727
|
const s = e;
|
|
2706
|
-
switch (
|
|
2707
|
-
case
|
|
2708
|
-
|
|
2728
|
+
switch (te(s)) {
|
|
2729
|
+
case g.CORE_GLOBAL_STATE:
|
|
2730
|
+
await Ti(s), R++;
|
|
2709
2731
|
return;
|
|
2710
|
-
case
|
|
2732
|
+
case g.UI_UPDATE:
|
|
2711
2733
|
try {
|
|
2712
|
-
|
|
2734
|
+
await Ai(s);
|
|
2713
2735
|
} catch (n) {
|
|
2714
2736
|
return n instanceof D, void 0;
|
|
2715
2737
|
} finally {
|
|
2716
2738
|
R++;
|
|
2717
2739
|
}
|
|
2718
2740
|
return;
|
|
2719
|
-
case
|
|
2720
|
-
|
|
2741
|
+
case g.UI_STYLES:
|
|
2742
|
+
await Ni(s), R++;
|
|
2721
2743
|
return;
|
|
2722
|
-
case
|
|
2723
|
-
|
|
2744
|
+
case g.UI_STYLES_BATCH:
|
|
2745
|
+
await di(s), R++;
|
|
2724
2746
|
return;
|
|
2725
|
-
case
|
|
2726
|
-
|
|
2747
|
+
case g.UI_STYLES_DELETE:
|
|
2748
|
+
await yi(s), R++;
|
|
2727
2749
|
return;
|
|
2728
|
-
case
|
|
2729
|
-
|
|
2750
|
+
case g.ACTION_UI_CLEAR_STREAM:
|
|
2751
|
+
Si(s), R++;
|
|
2730
2752
|
return;
|
|
2731
2753
|
default:
|
|
2732
2754
|
return;
|
|
@@ -2742,5 +2764,6 @@ self.addEventListener("message", (t) => {
|
|
|
2742
2764
|
V = [], Y.clear();
|
|
2743
2765
|
return;
|
|
2744
2766
|
}
|
|
2745
|
-
e.type === "protocol" &&
|
|
2767
|
+
e.type === "protocol" && wi(e.message).catch(() => {
|
|
2768
|
+
});
|
|
2746
2769
|
});
|