@ikonai/sdk-ui 1.0.79 → 1.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{audio-playback-worker-DDtsnLoq.js → audio-playback-worker-C9XXiFhK.js} +350 -349
- package/assets/{protocol-worker-BoZcMF0x.js → protocol-worker-1sGaGw11.js} +277 -277
- package/assets/{ui-worker-DzF549yi.js → ui-worker-y-VofSR0.js} +775 -787
- package/assets/video-capture-worker-zOxyU-q3.js +1126 -0
- package/assets/video-playback-worker-DfwfIoRw.js +1005 -0
- package/assets/viseme-worker-CFJdP6of.js +831 -0
- package/ikon-ui-core.d.ts +0 -1
- package/index.js +1500 -1512
- package/package.json +1 -1
- package/assets/video-capture-worker-DxgvFTcw.js +0 -1126
- package/assets/video-playback-worker-Ca4XVGqt.js +0 -1005
- package/assets/viseme-worker-DVWM4pRh.js +0 -831
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const nt = {
|
|
2
2
|
Compressed: 8
|
|
3
3
|
};
|
|
4
4
|
function ot(e) {
|
|
@@ -6,61 +6,61 @@ function ot(e) {
|
|
|
6
6
|
throw new Error("Protocol message too short");
|
|
7
7
|
return (e[4] | e[5] << 8 | e[6] << 16 | e[7] << 24) >>> 0;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
const r =
|
|
9
|
+
function Ie(e) {
|
|
10
|
+
const r = X(e), t = new DataView(r.buffer, r.byteOffset, r.byteLength);
|
|
11
11
|
if (r.length < 27)
|
|
12
12
|
throw new Error("Protocol payload too short");
|
|
13
|
-
const s = t.getUint32(0, !0), n = t.getUint32(4, !0),
|
|
14
|
-
if (27 +
|
|
13
|
+
const s = t.getUint32(0, !0), n = t.getUint32(4, !0), o = t.getUint32(8, !0), i = t.getUint32(12, !0), a = t.getUint32(16, !0), E = t.getUint32(20, !0), I = t.getUint8(24), l = t.getUint8(25), _ = t.getUint8(26);
|
|
14
|
+
if (27 + E * 4 > r.length)
|
|
15
15
|
throw new Error("Protocol header exceeds payload length");
|
|
16
16
|
const L = [];
|
|
17
|
-
let
|
|
18
|
-
for (let Q = 0; Q <
|
|
19
|
-
L.push(t.getUint32(
|
|
17
|
+
let D = 27;
|
|
18
|
+
for (let Q = 0; Q < E; Q++)
|
|
19
|
+
L.push(t.getUint32(D, !0)), D += 4;
|
|
20
20
|
return {
|
|
21
21
|
length: s,
|
|
22
22
|
opcode: n,
|
|
23
|
-
senderId:
|
|
24
|
-
trackId:
|
|
23
|
+
senderId: o,
|
|
24
|
+
trackId: i,
|
|
25
25
|
sequenceId: a,
|
|
26
26
|
targetIds: L,
|
|
27
|
-
payloadVersion:
|
|
28
|
-
payloadType:
|
|
29
|
-
flags:
|
|
27
|
+
payloadVersion: I,
|
|
28
|
+
payloadType: l,
|
|
29
|
+
flags: _
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
async function
|
|
33
|
-
const s =
|
|
32
|
+
async function j(e, r, t) {
|
|
33
|
+
const s = X(e), n = Ie(s);
|
|
34
34
|
if (r !== void 0 && n.opcode !== r)
|
|
35
35
|
throw new Error(`Unexpected opcode ${n.opcode}`);
|
|
36
36
|
if (n.payloadType !== 8)
|
|
37
37
|
throw new Error(`Unexpected payload type ${n.payloadType}`);
|
|
38
|
-
const
|
|
39
|
-
let
|
|
40
|
-
return (n.flags &
|
|
38
|
+
const o = 27 + n.targetIds.length * 4;
|
|
39
|
+
let i = s.subarray(o, n.length);
|
|
40
|
+
return (n.flags & nt.Compressed) !== 0 && (i = await it(i)), i;
|
|
41
41
|
}
|
|
42
|
-
async function
|
|
42
|
+
async function it(e) {
|
|
43
43
|
if (typeof DecompressionStream > "u")
|
|
44
44
|
throw new Error("DecompressionStream not supported");
|
|
45
45
|
const r = new DecompressionStream("gzip"), t = r.writable.getWriter(), s = new Uint8Array(e);
|
|
46
46
|
t.write(s), t.close();
|
|
47
|
-
const n = r.readable.getReader(),
|
|
48
|
-
let
|
|
47
|
+
const n = r.readable.getReader(), o = [];
|
|
48
|
+
let i = 0;
|
|
49
49
|
for (; ; ) {
|
|
50
|
-
const { done:
|
|
51
|
-
if (
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
const a = new Uint8Array(
|
|
55
|
-
let
|
|
56
|
-
for (let
|
|
57
|
-
a.set(
|
|
50
|
+
const { done: I, value: l } = await n.read();
|
|
51
|
+
if (I) break;
|
|
52
|
+
o.push(l), i += l.length;
|
|
53
|
+
}
|
|
54
|
+
const a = new Uint8Array(i);
|
|
55
|
+
let E = 0;
|
|
56
|
+
for (let I = 0; I < o.length; I++)
|
|
57
|
+
a.set(o[I], E), E += o[I].length;
|
|
58
58
|
return a;
|
|
59
59
|
}
|
|
60
60
|
var v = /* @__PURE__ */ ((e) => (e[e.Null = 1] = "Null", e[e.Bool = 2] = "Bool", e[e.Int32 = 3] = "Int32", e[e.Int64 = 4] = "Int64", e[e.UInt32 = 5] = "UInt32", e[e.UInt64 = 6] = "UInt64", e[e.Float32 = 7] = "Float32", e[e.Float64 = 8] = "Float64", e[e.Array = 9] = "Array", e[e.Dict = 10] = "Dict", e[e.Object = 11] = "Object", e[e.String = 12] = "String", e[e.Binary = 13] = "Binary", e[e.Guid = 14] = "Guid", e))(v || {});
|
|
61
|
-
const
|
|
61
|
+
const at = 161, lt = 162;
|
|
62
62
|
new TextEncoder();
|
|
63
|
-
const
|
|
63
|
+
const Et = new TextDecoder("utf-8", { fatal: !0 });
|
|
64
64
|
class g {
|
|
65
65
|
constructor(r, t, s) {
|
|
66
66
|
this.buffer = r, this.version = t, this.offset = s, this.end = r.length - 1;
|
|
@@ -68,12 +68,12 @@ class g {
|
|
|
68
68
|
offset;
|
|
69
69
|
end;
|
|
70
70
|
static create(r) {
|
|
71
|
-
const t =
|
|
71
|
+
const t = X(r);
|
|
72
72
|
if (t.length < 2)
|
|
73
73
|
throw new Error("Teleport payload too short");
|
|
74
|
-
if (t[0] !==
|
|
74
|
+
if (t[0] !== at || t[t.length - 1] !== lt)
|
|
75
75
|
throw new Error("Teleport object missing markers");
|
|
76
|
-
const s = { offset: 1 }, n =
|
|
76
|
+
const s = { offset: 1 }, n = N(t, s, "InvalidLength");
|
|
77
77
|
return new g(t, n, s.offset);
|
|
78
78
|
}
|
|
79
79
|
next() {
|
|
@@ -81,20 +81,20 @@ class g {
|
|
|
81
81
|
return null;
|
|
82
82
|
if (this.offset + 5 > this.buffer.length)
|
|
83
83
|
throw new Error("Teleport object truncated");
|
|
84
|
-
const r =
|
|
84
|
+
const r = ft(this.buffer, this.offset);
|
|
85
85
|
this.offset += 4;
|
|
86
86
|
const t = this.buffer[this.offset++], s = t >> 4 & 15;
|
|
87
87
|
if ((t & 15) !== 0)
|
|
88
88
|
throw new Error("Teleport field flags must be zero");
|
|
89
89
|
const n = k(s);
|
|
90
|
-
let
|
|
90
|
+
let o;
|
|
91
91
|
if (n >= 0)
|
|
92
|
-
|
|
92
|
+
S(this.buffer, this.offset, n), o = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
|
|
93
93
|
else {
|
|
94
|
-
const
|
|
95
|
-
|
|
94
|
+
const i = { offset: this.offset }, a = N(this.buffer, i, "InvalidLength");
|
|
95
|
+
S(this.buffer, i.offset, a), o = this.buffer.subarray(i.offset, i.offset + a), this.offset = i.offset + a;
|
|
96
96
|
}
|
|
97
|
-
return new
|
|
97
|
+
return new It(r, s, o);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
class U {
|
|
@@ -159,13 +159,13 @@ class U {
|
|
|
159
159
|
return this.ensureType(
|
|
160
160
|
12
|
|
161
161
|
/* String */
|
|
162
|
-
),
|
|
162
|
+
), Et.decode(this.payload);
|
|
163
163
|
}
|
|
164
164
|
asGuid() {
|
|
165
165
|
return this.ensureType(
|
|
166
166
|
14
|
|
167
167
|
/* Guid */
|
|
168
|
-
),
|
|
168
|
+
), T.fromBytes(this.payload);
|
|
169
169
|
}
|
|
170
170
|
asObject() {
|
|
171
171
|
return this.ensureType(
|
|
@@ -177,20 +177,20 @@ class U {
|
|
|
177
177
|
return this.ensureType(
|
|
178
178
|
9
|
|
179
179
|
/* Array */
|
|
180
|
-
),
|
|
180
|
+
), re.create(this.payload);
|
|
181
181
|
}
|
|
182
182
|
asDictionary() {
|
|
183
183
|
return this.ensureType(
|
|
184
184
|
10
|
|
185
185
|
/* Dict */
|
|
186
|
-
),
|
|
186
|
+
), se.create(this.payload);
|
|
187
187
|
}
|
|
188
188
|
ensureType(r) {
|
|
189
189
|
if (this.type !== r)
|
|
190
190
|
throw new Error(`Teleport value has type ${v[this.type]}, expected ${v[r]}`);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
class
|
|
193
|
+
class It extends U {
|
|
194
194
|
constructor(r, t, s) {
|
|
195
195
|
super(t, s), this.fieldId = r;
|
|
196
196
|
}
|
|
@@ -198,7 +198,7 @@ class lt extends U {
|
|
|
198
198
|
return this.type === 1;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
class
|
|
201
|
+
class re {
|
|
202
202
|
payload;
|
|
203
203
|
elementType;
|
|
204
204
|
count;
|
|
@@ -211,10 +211,10 @@ class se {
|
|
|
211
211
|
if (this.elementType = t >> 4 & 15, (t & 15) !== 0)
|
|
212
212
|
throw new Error("Array flags must be zero");
|
|
213
213
|
const s = { offset: 1 };
|
|
214
|
-
this.count =
|
|
214
|
+
this.count = N(r, s, "ArrayMalformed"), this.offset = s.offset;
|
|
215
215
|
}
|
|
216
216
|
static create(r) {
|
|
217
|
-
return new
|
|
217
|
+
return new re(X(r));
|
|
218
218
|
}
|
|
219
219
|
next() {
|
|
220
220
|
if (this.index >= this.count) {
|
|
@@ -236,42 +236,42 @@ class se {
|
|
|
236
236
|
case 6:
|
|
237
237
|
case 14: {
|
|
238
238
|
const r = k(this.elementType);
|
|
239
|
-
|
|
239
|
+
S(this.payload, this.offset, r);
|
|
240
240
|
const t = this.payload.subarray(this.offset, this.offset + r);
|
|
241
|
-
return this.offset += r, new
|
|
241
|
+
return this.offset += r, new V(this.elementType, t);
|
|
242
242
|
}
|
|
243
243
|
case 12:
|
|
244
244
|
case 13: {
|
|
245
|
-
const r = { offset: this.offset }, t =
|
|
246
|
-
|
|
245
|
+
const r = { offset: this.offset }, t = N(this.payload, r, "ArrayMalformed");
|
|
246
|
+
S(this.payload, r.offset, t);
|
|
247
247
|
const s = this.payload.subarray(r.offset, r.offset + t);
|
|
248
|
-
return this.offset = r.offset + t, new
|
|
248
|
+
return this.offset = r.offset + t, new V(this.elementType, s);
|
|
249
249
|
}
|
|
250
250
|
case 11: {
|
|
251
|
-
const r = { offset: this.offset }, t =
|
|
252
|
-
|
|
251
|
+
const r = { offset: this.offset }, t = N(this.payload, r, "ArrayMalformed");
|
|
252
|
+
S(this.payload, r.offset, t);
|
|
253
253
|
const s = this.payload.subarray(r.offset, r.offset + t);
|
|
254
|
-
return this.offset = r.offset + t, new
|
|
254
|
+
return this.offset = r.offset + t, new V(11, s);
|
|
255
255
|
}
|
|
256
256
|
case 9: {
|
|
257
|
-
const r =
|
|
258
|
-
return this.offset += r, new
|
|
257
|
+
const r = ne(this.payload, this.offset), t = this.payload.subarray(this.offset, this.offset + r);
|
|
258
|
+
return this.offset += r, new V(9, t);
|
|
259
259
|
}
|
|
260
260
|
case 10: {
|
|
261
261
|
const r = oe(this.payload, this.offset), t = this.payload.subarray(this.offset, this.offset + r);
|
|
262
|
-
return this.offset += r, new
|
|
262
|
+
return this.offset += r, new V(10, t);
|
|
263
263
|
}
|
|
264
264
|
default:
|
|
265
265
|
throw new Error(`Unsupported array element type ${v[this.elementType]}`);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
class
|
|
269
|
+
class V extends U {
|
|
270
270
|
constructor(r, t) {
|
|
271
271
|
super(r, t);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
class
|
|
274
|
+
class se {
|
|
275
275
|
payload;
|
|
276
276
|
keyType;
|
|
277
277
|
valueType;
|
|
@@ -283,12 +283,12 @@ class ne {
|
|
|
283
283
|
throw new Error("Dictionary payload too short");
|
|
284
284
|
if (this.keyType = r[0] >> 4 & 15, this.valueType = r[1] >> 4 & 15, (r[0] & 15) !== 0 || (r[1] & 15) !== 0)
|
|
285
285
|
throw new Error("Dictionary key/value flags must be zero");
|
|
286
|
-
|
|
286
|
+
_e(this.keyType);
|
|
287
287
|
const t = { offset: 2 };
|
|
288
|
-
this.count =
|
|
288
|
+
this.count = N(r, t, "DictMalformed"), this.offset = t.offset;
|
|
289
289
|
}
|
|
290
290
|
static create(r) {
|
|
291
|
-
return new
|
|
291
|
+
return new se(X(r));
|
|
292
292
|
}
|
|
293
293
|
next() {
|
|
294
294
|
if (this.index >= this.count) {
|
|
@@ -297,18 +297,18 @@ class ne {
|
|
|
297
297
|
return null;
|
|
298
298
|
}
|
|
299
299
|
const r = this.readKey(), t = this.readValue();
|
|
300
|
-
return this.index++, new
|
|
300
|
+
return this.index++, new _t(r, t);
|
|
301
301
|
}
|
|
302
302
|
readKey() {
|
|
303
303
|
const r = k(this.keyType);
|
|
304
304
|
if (r >= 0) {
|
|
305
|
-
|
|
305
|
+
S(this.payload, this.offset, r);
|
|
306
306
|
const t = this.payload.subarray(this.offset, this.offset + r);
|
|
307
307
|
return this.offset += r, new U(this.keyType, t);
|
|
308
308
|
}
|
|
309
309
|
if (this.keyType === 12 || this.keyType === 13) {
|
|
310
|
-
const t = { offset: this.offset }, s =
|
|
311
|
-
|
|
310
|
+
const t = { offset: this.offset }, s = N(this.payload, t, "DictMalformed");
|
|
311
|
+
S(this.payload, t.offset, s);
|
|
312
312
|
const n = this.payload.subarray(t.offset, t.offset + s);
|
|
313
313
|
return this.offset = t.offset + s, new U(this.keyType, n);
|
|
314
314
|
}
|
|
@@ -318,19 +318,19 @@ class ne {
|
|
|
318
318
|
switch (this.valueType) {
|
|
319
319
|
case 12:
|
|
320
320
|
case 13: {
|
|
321
|
-
const r = { offset: this.offset }, t =
|
|
322
|
-
|
|
321
|
+
const r = { offset: this.offset }, t = N(this.payload, r, "DictMalformed");
|
|
322
|
+
S(this.payload, r.offset, t);
|
|
323
323
|
const s = this.payload.subarray(r.offset, r.offset + t);
|
|
324
324
|
return this.offset = r.offset + t, new U(this.valueType, s);
|
|
325
325
|
}
|
|
326
326
|
case 11: {
|
|
327
|
-
const r = { offset: this.offset }, t =
|
|
328
|
-
|
|
327
|
+
const r = { offset: this.offset }, t = N(this.payload, r, "DictMalformed");
|
|
328
|
+
S(this.payload, r.offset, t);
|
|
329
329
|
const s = this.payload.subarray(r.offset, r.offset + t);
|
|
330
330
|
return this.offset = r.offset + t, new U(11, s);
|
|
331
331
|
}
|
|
332
332
|
case 9: {
|
|
333
|
-
const r =
|
|
333
|
+
const r = ne(this.payload, this.offset), t = this.payload.subarray(this.offset, this.offset + r);
|
|
334
334
|
return this.offset += r, new U(9, t);
|
|
335
335
|
}
|
|
336
336
|
case 10: {
|
|
@@ -347,7 +347,7 @@ class ne {
|
|
|
347
347
|
case 14:
|
|
348
348
|
case 1: {
|
|
349
349
|
const r = k(this.valueType);
|
|
350
|
-
|
|
350
|
+
S(this.payload, this.offset, r);
|
|
351
351
|
const t = this.payload.subarray(this.offset, this.offset + r);
|
|
352
352
|
return this.offset += r, new U(this.valueType, t);
|
|
353
353
|
}
|
|
@@ -356,12 +356,12 @@ class ne {
|
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
class
|
|
359
|
+
class _t {
|
|
360
360
|
constructor(r, t) {
|
|
361
361
|
this.key = r, this.value = t;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
class
|
|
364
|
+
class T {
|
|
365
365
|
constructor(r) {
|
|
366
366
|
this.bytes = r;
|
|
367
367
|
}
|
|
@@ -371,19 +371,19 @@ class h {
|
|
|
371
371
|
const t = r.replace(/-/g, "");
|
|
372
372
|
if (t.length !== 32)
|
|
373
373
|
throw new Error("Guid string must be 32 hex characters");
|
|
374
|
-
const s = new Uint8Array(16), n =
|
|
375
|
-
|
|
374
|
+
const s = new Uint8Array(16), n = T.parseHexSlice(t, 0, 8), o = T.parseHexSlice(t, 8, 4), i = T.parseHexSlice(t, 12, 4);
|
|
375
|
+
T.writeUInt32LE(s, 0, n), T.writeUInt16LE(s, 4, o), T.writeUInt16LE(s, 6, i);
|
|
376
376
|
for (let a = 0; a < 8; a++)
|
|
377
|
-
s[8 + a] =
|
|
378
|
-
return new
|
|
377
|
+
s[8 + a] = T.parseHexSlice(t, 16 + a * 2, 2);
|
|
378
|
+
return new T(s);
|
|
379
379
|
}
|
|
380
380
|
static fromBytes(r) {
|
|
381
381
|
if (r.length !== 16)
|
|
382
382
|
throw new Error("Guid byte array must be 16 bytes");
|
|
383
|
-
return new
|
|
383
|
+
return new T(Uint8Array.from(r));
|
|
384
384
|
}
|
|
385
385
|
static createZero() {
|
|
386
|
-
return new
|
|
386
|
+
return new T(new Uint8Array(16));
|
|
387
387
|
}
|
|
388
388
|
static createRandom() {
|
|
389
389
|
const r = new Uint8Array(16), t = globalThis.crypto;
|
|
@@ -392,26 +392,26 @@ class h {
|
|
|
392
392
|
else
|
|
393
393
|
for (let s = 0; s < r.length; s++)
|
|
394
394
|
r[s] = Math.floor(Math.random() * 256);
|
|
395
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, new
|
|
395
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, new T(r);
|
|
396
396
|
}
|
|
397
397
|
toString() {
|
|
398
398
|
const r = this.bytes;
|
|
399
399
|
return [
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
400
|
+
T.toHex(T.readUInt32LE(r, 0), 8),
|
|
401
|
+
T.toHex(T.readUInt16LE(r, 4), 4),
|
|
402
|
+
T.toHex(T.readUInt16LE(r, 6), 4),
|
|
403
|
+
ae(r.subarray(8, 10)),
|
|
404
|
+
ae(r.subarray(10, 16))
|
|
405
405
|
].join("-");
|
|
406
406
|
}
|
|
407
407
|
asBytes() {
|
|
408
408
|
return this.bytes.slice();
|
|
409
409
|
}
|
|
410
410
|
static parseHexSlice(r, t, s) {
|
|
411
|
-
const n = r.substr(t, s),
|
|
412
|
-
if (Number.isNaN(
|
|
411
|
+
const n = r.substr(t, s), o = Number.parseInt(n, 16);
|
|
412
|
+
if (Number.isNaN(o))
|
|
413
413
|
throw new Error("Guid string contains invalid characters");
|
|
414
|
-
return
|
|
414
|
+
return o >>> 0;
|
|
415
415
|
}
|
|
416
416
|
static writeUInt32LE(r, t, s) {
|
|
417
417
|
const n = s >>> 0;
|
|
@@ -431,14 +431,14 @@ class h {
|
|
|
431
431
|
return (r >>> 0).toString(16).padStart(t, "0");
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function N(e, r, t) {
|
|
435
435
|
if (r.offset >= e.length)
|
|
436
436
|
throw new Error(t);
|
|
437
|
-
let s = 0, n = 0,
|
|
437
|
+
let s = 0, n = 0, o = 0;
|
|
438
438
|
for (; r.offset < e.length; ) {
|
|
439
|
-
const
|
|
440
|
-
if (
|
|
441
|
-
if (
|
|
439
|
+
const i = e[r.offset++];
|
|
440
|
+
if (o++, s |= (i & 127) << n, (i & 128) === 0) {
|
|
441
|
+
if (o !== ct(s))
|
|
442
442
|
throw new Error("Teleport VarUInt is not canonical");
|
|
443
443
|
return s >>> 0;
|
|
444
444
|
}
|
|
@@ -447,7 +447,7 @@ function S(e, r, t) {
|
|
|
447
447
|
}
|
|
448
448
|
throw new Error(t);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function ct(e) {
|
|
451
451
|
return e < 128 ? 1 : e < 16384 ? 2 : e < 2097152 ? 3 : e < 268435456 ? 4 : 5;
|
|
452
452
|
}
|
|
453
453
|
function k(e) {
|
|
@@ -470,30 +470,30 @@ function k(e) {
|
|
|
470
470
|
return -1;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function _e(e) {
|
|
474
474
|
if (e === 9 || e === 11 || e === 10 || e === 1)
|
|
475
475
|
throw new Error("Dictionary keys must be primitive Teleport types");
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function S(e, r, t) {
|
|
478
478
|
if (r < 0 || t < 0 || r + t > e.length)
|
|
479
479
|
throw new Error("Teleport payload exceeds bounds");
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function ft(e, r) {
|
|
482
482
|
return (e[r] | e[r + 1] << 8 | e[r + 2] << 16 | e[r + 3] << 24) >>> 0;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function ne(e, r) {
|
|
485
485
|
if (r >= e.length)
|
|
486
486
|
throw new Error("Array payload exceeds bounds");
|
|
487
487
|
const t = e[r], s = t >> 4 & 15;
|
|
488
488
|
if ((t & 15) !== 0)
|
|
489
489
|
throw new Error("Array flags must be zero");
|
|
490
|
-
const n = { offset: r + 1 },
|
|
491
|
-
if (
|
|
492
|
-
const
|
|
493
|
-
return
|
|
490
|
+
const n = { offset: r + 1 }, o = N(e, n, "ArrayMalformed"), i = k(s);
|
|
491
|
+
if (i >= 0) {
|
|
492
|
+
const E = i * o;
|
|
493
|
+
return S(e, n.offset, E), n.offset + E - r;
|
|
494
494
|
}
|
|
495
495
|
let a = n.offset;
|
|
496
|
-
for (let
|
|
496
|
+
for (let E = 0; E < o; E++)
|
|
497
497
|
a = Z(s, e, a, "ArrayMalformed");
|
|
498
498
|
return a - r;
|
|
499
499
|
}
|
|
@@ -503,59 +503,59 @@ function oe(e, r) {
|
|
|
503
503
|
const t = e[r] >> 4 & 15, s = e[r + 1] >> 4 & 15;
|
|
504
504
|
if ((e[r] & 15) !== 0 || (e[r + 1] & 15) !== 0)
|
|
505
505
|
throw new Error("Dictionary key/value flags must be zero");
|
|
506
|
-
|
|
507
|
-
const n = { offset: r + 2 },
|
|
508
|
-
let
|
|
509
|
-
for (let a = 0; a <
|
|
510
|
-
|
|
511
|
-
return
|
|
506
|
+
_e(t);
|
|
507
|
+
const n = { offset: r + 2 }, o = N(e, n, "DictMalformed");
|
|
508
|
+
let i = n.offset;
|
|
509
|
+
for (let a = 0; a < o; a++)
|
|
510
|
+
i = Z(t, e, i, "DictMalformed"), i = Z(s, e, i, "DictMalformed");
|
|
511
|
+
return i - r;
|
|
512
512
|
}
|
|
513
513
|
function Z(e, r, t, s) {
|
|
514
514
|
const n = k(e);
|
|
515
515
|
if (n >= 0)
|
|
516
|
-
return
|
|
516
|
+
return S(r, t, n), t + n;
|
|
517
517
|
switch (e) {
|
|
518
518
|
case 12:
|
|
519
519
|
case 13: {
|
|
520
|
-
const
|
|
521
|
-
return
|
|
520
|
+
const o = { offset: t }, i = N(r, o, s);
|
|
521
|
+
return S(r, o.offset, i), o.offset + i;
|
|
522
522
|
}
|
|
523
523
|
case 11: {
|
|
524
|
-
const
|
|
525
|
-
return
|
|
524
|
+
const o = { offset: t }, i = N(r, o, s);
|
|
525
|
+
return S(r, o.offset, i), o.offset + i;
|
|
526
526
|
}
|
|
527
527
|
case 9:
|
|
528
|
-
return t +
|
|
528
|
+
return t + ne(r, t);
|
|
529
529
|
case 10:
|
|
530
530
|
return t + oe(r, t);
|
|
531
531
|
default:
|
|
532
532
|
throw new Error(`Unsupported Teleport type ${v[e]}`);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function ae(e) {
|
|
536
536
|
return Array.from(e).map((r) => r.toString(16).padStart(2, "0")).join("");
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function X(e) {
|
|
539
539
|
return e instanceof Uint8Array ? e : new Uint8Array(e);
|
|
540
540
|
}
|
|
541
|
-
var ce = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Opus = 1] = "Opus", e[e.Mp3 = 2] = "Mp3", e[e.RawPcm16 = 3] = "RawPcm16", e))(ce || {}), fe = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.MobileWeb = 1] = "MobileWeb", e[e.MobileApp = 2] = "MobileApp", e[e.DesktopWeb = 3] = "DesktopWeb", e[e.DesktopApp = 4] = "DesktopApp", e))(fe || {}), ue = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Backend = 2] = "Backend", e[e.Server = 4] = "Server", e[e.Plugin = 8] = "Plugin", e[e.Browser = 16] = "Browser", e[e.Native = 32] = "Native", e))(ue || {}), Te = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.MessagePack = 1] = "MessagePack", e[e.MemoryPack = 2] = "MemoryPack", e[e.Json = 4] = "Json", e[e.Teleport = 8] = "Teleport", e[e.All = 15] = "All", e))(Te || {}), he = /* @__PURE__ */ ((e) => (e[e.Face = 0] = "Face", e[e.Hands = 1] = "Hands", e[e.Pose = 2] = "Pose", e[e.All = 3] = "All", e))(he || {}), Ne = /* @__PURE__ */ ((e) => (e[e.Css = 0] = "Css", e[e.Flutter = 1] = "Flutter", e))(Ne || {}), Ae = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Machine = 1] = "Machine", e[e.Human = 2] = "Human", e))(Ae || {}), Se = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.H264 = 1] = "H264", e[e.Vp8 = 2] = "Vp8", e[e.Vp9 = 3] = "Vp9", e[e.Av1 = 4] = "Av1", e))(Se || {}), Ce = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.DotNet = 1] = "DotNet", e[e.TypeScript = 2] = "TypeScript", e[e.Cpp = 3] = "Cpp", e[e.Dart = 4] = "Dart", e[e.Rust = 5] = "Rust", e))(Ce || {}), Re = /* @__PURE__ */ ((e) => (e[e.Local = 0] = "Local", e[e.Cloud = 1] = "Cloud", e))(Re || {}), de = /* @__PURE__ */ ((e) => (e[e.Bundle = 0] = "Bundle", e[e.GitSource = 1] = "GitSource", e))(de || {}), F = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", e[e.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", e[e.GROUP_CORE = 65536] = "GROUP_CORE", e[e.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", e[e.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", e[e.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", e[e.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", e[e.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", e[e.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", e[e.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", e[e.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", e[e.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", e[e.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", e[e.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", e[e.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", e[e.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", e[e.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", e[e.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", e[e.CORE_SERVER_START = 65552] = "CORE_SERVER_START", e[e.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", e[e.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", e[e.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", e[e.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", e[e.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", e[e.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", e[e.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", e[e.CORE_RESET_IDLE = 65560] = "CORE_RESET_IDLE", e[e.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", e[e.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", e[e.CORE_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", e[e.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", e[e.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", e[e.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", e[e.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", e[e.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", e[e.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", e[e.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", e[e.CORE_WEBRTC_ICE_SERVERS_REQUEST = 65573] = "CORE_WEBRTC_ICE_SERVERS_REQUEST", e[e.CORE_WEBRTC_ICE_SERVERS_RESPONSE = 65574] = "CORE_WEBRTC_ICE_SERVERS_RESPONSE", e[e.CORE_WEBRTC_CLOSE = 65575] = "CORE_WEBRTC_CLOSE", e[e.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", e[e.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", e[e.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", e[e.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", e[e.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", e[e.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", e[e.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", e[e.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", e[e.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", e[e.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", e[e.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", e[e.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", e[e.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", e[e.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", e[e.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", e[e.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", e[e.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", e[e.GROUP_EVENTS = 262144] = "GROUP_EVENTS", e[e.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", e[e.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", e[e.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", e[e.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", e[e.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", e[e.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", e[e.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", e[e.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", e[e.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", e[e.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", e[e.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", e[e.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", e[e.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", e[e.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", e[e.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", e[e.ACTION_CALL = 1048577] = "ACTION_CALL", e[e.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", e[e.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", e[e.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", e[e.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", e[e.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", e[e.ACTION_TAP = 1048583] = "ACTION_TAP", e[e.ACTION_PAN = 1048584] = "ACTION_PAN", e[e.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", e[e.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", e[e.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", e[e.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", e[e.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", e[e.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", e[e.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", e[e.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", e[e.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", e[e.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", e[e.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", e[e.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", e[e.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", e[e.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", e[e.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", e[e.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", e[e.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", e[e.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", e[e.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", e[e.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", e[e.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", e[e.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", e[e.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", e[e.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", e[e.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", e[e.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", e[e.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", e[e.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", e[e.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", e[e.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", e[e.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", e[e.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", e[e.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", e[e.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", e[e.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", e[e.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", e[e.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", e[e.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", e[e.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", e[e.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", e[e.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", e[e.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", e[e.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", e[e.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", e[e.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", e[e.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", e[e.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", e[e.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", e[e.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", e[e.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", e[e.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", e[e.ACTION_CALL2 = 1048637] = "ACTION_CALL2", e[e.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", e[e.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", e[e.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", e[e.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", e[e.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", e[e.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", e[e.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", e[e.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", e[e.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", e[e.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", e[e.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", e[e.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", e[e.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", e[e.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", e[e.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", e[e.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", e[e.ACTION_RESULT = 1048654] = "ACTION_RESULT", e[e.UI_RESYNC_REQUEST = 1048655] = "UI_RESYNC_REQUEST", e[e.GROUP_UI = 2097152] = "GROUP_UI", e[e.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", e[e.UI_STREAM_END = 2097154] = "UI_STREAM_END", e[e.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", e[e.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", e[e.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", e[e.UI_SECTION_END = 2097158] = "UI_SECTION_END", e[e.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", e[e.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", e[e.UI_LIST_END = 2097161] = "UI_LIST_END", e[e.UI_TEXT = 2097162] = "UI_TEXT", e[e.UI_HEADER = 2097163] = "UI_HEADER", e[e.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", e[e.UI_BUTTON = 2097165] = "UI_BUTTON", e[e.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", e[e.UI_IMAGE = 2097167] = "UI_IMAGE", e[e.UI_FILE = 2097168] = "UI_FILE", e[e.UI_BADGE = 2097169] = "UI_BADGE", e[e.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", e[e.UI_MAP = 2097171] = "UI_MAP", e[e.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", e[e.UI_ICON = 2097173] = "UI_ICON", e[e.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", e[e.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", e[e.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", e[e.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", e[e.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", e[e.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", e[e.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", e[e.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", e[e.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", e[e.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", e[e.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", e[e.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", e[e.UI_QS = 2097186] = "UI_QS", e[e.UI_ELEMENT = 2097187] = "UI_ELEMENT", e[e.UI_STYLES = 2097188] = "UI_STYLES", e[e.UI_SVG = 2097189] = "UI_SVG", e[e.UI_UPDATE = 2097190] = "UI_UPDATE", e[e.UI_INIT = 2097191] = "UI_INIT", e[e.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", e[e.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", e[e.GROUP_COMMON = 4128768] = "GROUP_COMMON", e[e.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", e[e.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", e[e.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", e[e.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", e[e.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", e[e.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", e[e.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", e[e.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", e[e.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", e[e.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", e[e.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", e[e.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", e[e.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", e[e.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", e[e.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", e[e.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", e[e.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", e[e.GROUP_SCENE = 33554432] = "GROUP_SCENE", e[e.SCENE_MESH = 33554433] = "SCENE_MESH", e[e.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", e[e.GROUP_ALL = 67043328] = "GROUP_ALL", e[e.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", e[e.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", e))(F || {});
|
|
542
|
-
const
|
|
543
|
-
function
|
|
541
|
+
var ce = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Opus = 1] = "Opus", e[e.Mp3 = 2] = "Mp3", e[e.RawPcm16 = 3] = "RawPcm16", e))(ce || {}), fe = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.MobileWeb = 1] = "MobileWeb", e[e.MobileApp = 2] = "MobileApp", e[e.DesktopWeb = 3] = "DesktopWeb", e[e.DesktopApp = 4] = "DesktopApp", e))(fe || {}), ue = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Backend = 2] = "Backend", e[e.Server = 4] = "Server", e[e.Plugin = 8] = "Plugin", e[e.Browser = 16] = "Browser", e[e.Native = 32] = "Native", e))(ue || {}), he = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.MessagePack = 1] = "MessagePack", e[e.MemoryPack = 2] = "MemoryPack", e[e.Json = 4] = "Json", e[e.Teleport = 8] = "Teleport", e[e.All = 15] = "All", e))(he || {}), Te = /* @__PURE__ */ ((e) => (e[e.Face = 0] = "Face", e[e.Hands = 1] = "Hands", e[e.Pose = 2] = "Pose", e[e.All = 3] = "All", e))(Te || {}), Ae = /* @__PURE__ */ ((e) => (e[e.Css = 0] = "Css", e[e.Flutter = 1] = "Flutter", e))(Ae || {}), Se = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Machine = 1] = "Machine", e[e.Human = 2] = "Human", e))(Se || {}), Ne = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.H264 = 1] = "H264", e[e.Vp8 = 2] = "Vp8", e[e.Vp9 = 3] = "Vp9", e[e.Av1 = 4] = "Av1", e))(Ne || {}), de = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.DotNet = 1] = "DotNet", e[e.TypeScript = 2] = "TypeScript", e[e.Cpp = 3] = "Cpp", e[e.Dart = 4] = "Dart", e[e.Rust = 5] = "Rust", e))(de || {}), Ce = /* @__PURE__ */ ((e) => (e[e.Local = 0] = "Local", e[e.Cloud = 1] = "Cloud", e))(Ce || {}), Re = /* @__PURE__ */ ((e) => (e[e.Bundle = 0] = "Bundle", e[e.GitSource = 1] = "GitSource", e))(Re || {}), b = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", e[e.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", e[e.GROUP_CORE = 65536] = "GROUP_CORE", e[e.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", e[e.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", e[e.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", e[e.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", e[e.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", e[e.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", e[e.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", e[e.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", e[e.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", e[e.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", e[e.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", e[e.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", e[e.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", e[e.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", e[e.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", e[e.CORE_SERVER_START = 65552] = "CORE_SERVER_START", e[e.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", e[e.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", e[e.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", e[e.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", e[e.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", e[e.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", e[e.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", e[e.CORE_RESET_IDLE = 65560] = "CORE_RESET_IDLE", e[e.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", e[e.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", e[e.CORE_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", e[e.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", e[e.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", e[e.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", e[e.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", e[e.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", e[e.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", e[e.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", e[e.CORE_WEBRTC_ICE_SERVERS_REQUEST = 65573] = "CORE_WEBRTC_ICE_SERVERS_REQUEST", e[e.CORE_WEBRTC_ICE_SERVERS_RESPONSE = 65574] = "CORE_WEBRTC_ICE_SERVERS_RESPONSE", e[e.CORE_WEBRTC_CLOSE = 65575] = "CORE_WEBRTC_CLOSE", e[e.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", e[e.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", e[e.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", e[e.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", e[e.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", e[e.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", e[e.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", e[e.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", e[e.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", e[e.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", e[e.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", e[e.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", e[e.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", e[e.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", e[e.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", e[e.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", e[e.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", e[e.GROUP_EVENTS = 262144] = "GROUP_EVENTS", e[e.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", e[e.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", e[e.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", e[e.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", e[e.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", e[e.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", e[e.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", e[e.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", e[e.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", e[e.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", e[e.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", e[e.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", e[e.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", e[e.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", e[e.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", e[e.ACTION_CALL = 1048577] = "ACTION_CALL", e[e.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", e[e.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", e[e.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", e[e.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", e[e.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", e[e.ACTION_TAP = 1048583] = "ACTION_TAP", e[e.ACTION_PAN = 1048584] = "ACTION_PAN", e[e.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", e[e.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", e[e.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", e[e.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", e[e.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", e[e.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", e[e.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", e[e.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", e[e.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", e[e.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", e[e.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", e[e.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", e[e.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", e[e.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", e[e.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", e[e.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", e[e.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", e[e.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", e[e.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", e[e.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", e[e.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", e[e.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", e[e.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", e[e.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", e[e.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", e[e.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", e[e.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", e[e.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", e[e.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", e[e.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", e[e.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", e[e.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", e[e.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", e[e.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", e[e.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", e[e.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", e[e.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", e[e.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", e[e.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", e[e.ACTION_CALL2 = 1048637] = "ACTION_CALL2", e[e.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", e[e.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", e[e.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", e[e.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", e[e.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", e[e.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", e[e.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", e[e.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", e[e.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", e[e.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", e[e.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", e[e.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", e[e.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", e[e.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", e[e.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", e[e.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", e[e.ACTION_RESULT = 1048654] = "ACTION_RESULT", e[e.UI_RESYNC_REQUEST = 1048655] = "UI_RESYNC_REQUEST", e[e.GROUP_UI = 2097152] = "GROUP_UI", e[e.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", e[e.UI_STREAM_END = 2097154] = "UI_STREAM_END", e[e.UI_STYLES = 2097188] = "UI_STYLES", e[e.UI_UPDATE = 2097190] = "UI_UPDATE", e[e.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", e[e.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", e[e.GROUP_COMMON = 4128768] = "GROUP_COMMON", e[e.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", e[e.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", e[e.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", e[e.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", e[e.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", e[e.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", e[e.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", e[e.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", e[e.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", e[e.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", e[e.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", e[e.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", e[e.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", e[e.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", e[e.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", e[e.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", e[e.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", e[e.GROUP_SCENE = 33554432] = "GROUP_SCENE", e[e.SCENE_MESH = 33554433] = "SCENE_MESH", e[e.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", e[e.GROUP_ALL = 67043328] = "GROUP_ALL", e[e.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", e[e.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", e))(b || {});
|
|
542
|
+
const ut = 161083277, ht = 265814330, Tt = 1368629611, At = 2431514951, St = 2514959030, Nt = 2745379226, dt = 3282782683, Ct = 3284746250, Rt = 4101844078;
|
|
543
|
+
function we(e) {
|
|
544
544
|
const r = {};
|
|
545
|
-
return
|
|
545
|
+
return De(r), r;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function De(e) {
|
|
548
548
|
return e.StreamId = "", e.Description = "", e.SourceType = "", e.Codec = ce.Unknown, e.CodecDetails = "", e.SampleRate = 0, e.Channels = 0, e.ShapeSets = void 0, e.CorrelationId = void 0, e;
|
|
549
549
|
}
|
|
550
550
|
function wt(e, r) {
|
|
551
|
-
const t = r ??
|
|
552
|
-
return
|
|
551
|
+
const t = r ?? we();
|
|
552
|
+
return De(t), Dt(e, t), t;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Dt(e, r) {
|
|
555
555
|
let t;
|
|
556
556
|
for (; (t = e.next()) !== null; )
|
|
557
557
|
switch (t.fieldId) {
|
|
558
|
-
case
|
|
558
|
+
case ut: {
|
|
559
559
|
if (t.isNull) throw new Error();
|
|
560
560
|
r.StreamId = t.asString();
|
|
561
561
|
break;
|
|
@@ -565,10 +565,10 @@ function yt(e, r) {
|
|
|
565
565
|
r.ShapeSets = void 0;
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
568
|
-
r.ShapeSets =
|
|
568
|
+
r.ShapeSets = yt(t.asArray());
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
|
-
case
|
|
571
|
+
case Tt: {
|
|
572
572
|
if (t.isNull) throw new Error();
|
|
573
573
|
r.Description = t.asString();
|
|
574
574
|
break;
|
|
@@ -586,37 +586,37 @@ function yt(e, r) {
|
|
|
586
586
|
r.CorrelationId = t.asString();
|
|
587
587
|
break;
|
|
588
588
|
}
|
|
589
|
-
case
|
|
589
|
+
case Nt: {
|
|
590
590
|
if (t.isNull) throw new Error();
|
|
591
591
|
r.CodecDetails = t.asString();
|
|
592
592
|
break;
|
|
593
593
|
}
|
|
594
|
-
case
|
|
594
|
+
case dt: {
|
|
595
595
|
if (t.isNull) throw new Error();
|
|
596
596
|
r.SourceType = t.asString();
|
|
597
597
|
break;
|
|
598
598
|
}
|
|
599
|
-
case
|
|
599
|
+
case Ct: {
|
|
600
600
|
if (t.isNull) throw new Error();
|
|
601
601
|
r.Codec = t.asInt32();
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
|
-
case
|
|
604
|
+
case Rt: {
|
|
605
605
|
if (t.isNull) throw new Error();
|
|
606
606
|
r.SampleRate = t.asInt32();
|
|
607
607
|
break;
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function yt(e) {
|
|
612
612
|
const r = [];
|
|
613
613
|
let t;
|
|
614
614
|
for (; (t = e.next()) !== null; )
|
|
615
615
|
r.push(gt(t.asObject()));
|
|
616
616
|
return r;
|
|
617
617
|
}
|
|
618
|
-
const
|
|
619
|
-
function
|
|
618
|
+
const Lt = 1107713536, Ut = 1154362099, Ot = 1185721362;
|
|
619
|
+
function mt(e) {
|
|
620
620
|
const r = {};
|
|
621
621
|
return ye(r), r;
|
|
622
622
|
}
|
|
@@ -624,74 +624,74 @@ function ye(e) {
|
|
|
624
624
|
return e.SetId = 0, e.Name = "", e.ShapeNames = [], e;
|
|
625
625
|
}
|
|
626
626
|
function gt(e, r) {
|
|
627
|
-
const t = r ??
|
|
628
|
-
return ye(t),
|
|
627
|
+
const t = r ?? mt();
|
|
628
|
+
return ye(t), Pt(e, t), t;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Pt(e, r) {
|
|
631
631
|
let t;
|
|
632
632
|
for (; (t = e.next()) !== null; )
|
|
633
633
|
switch (t.fieldId) {
|
|
634
|
-
case
|
|
634
|
+
case Lt: {
|
|
635
635
|
if (t.isNull) throw new Error();
|
|
636
636
|
r.Name = t.asString();
|
|
637
637
|
break;
|
|
638
638
|
}
|
|
639
|
-
case
|
|
639
|
+
case Ut: {
|
|
640
640
|
if (t.isNull) throw new Error();
|
|
641
641
|
r.SetId = t.asUInt32();
|
|
642
642
|
break;
|
|
643
643
|
}
|
|
644
|
-
case
|
|
644
|
+
case Ot: {
|
|
645
645
|
if (t.isNull) throw new Error();
|
|
646
|
-
r.ShapeNames =
|
|
646
|
+
r.ShapeNames = Ft(t.asArray());
|
|
647
647
|
break;
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Ft(e) {
|
|
652
652
|
const r = [];
|
|
653
653
|
let t;
|
|
654
654
|
for (; (t = e.next()) !== null; )
|
|
655
655
|
r.push(t.asString());
|
|
656
656
|
return r;
|
|
657
657
|
}
|
|
658
|
-
const
|
|
659
|
-
function
|
|
658
|
+
const bt = 76337612, Mt = 185396121, vt = 250031587, kt = 388632637, pt = 417197284, Vt = 425972532, Gt = 469070965, Bt = 470595159, xt = 594855258, Ht = 617065367, Yt = 661691032, $t = 781727218, Kt = 834078886, jt = 1043273762, Xt = 1236999138, Wt = 1286979607, zt = 1368629611, Jt = 1437068682, Qt = 1668375353, qt = 1715899485, Zt = 1942830531, er = 1999510636, tr = 2033288346, rr = 2079864626, sr = 2142346422, nr = 2228539873, or = 2232517119, ir = 2598291686, ar = 2719718823, lr = 2810953526, Er = 2840065720, Ir = 2885165957, _r = 3542818975, cr = 3586157513, fr = 3717933110;
|
|
659
|
+
function ur(e) {
|
|
660
660
|
const r = {};
|
|
661
661
|
return Le(r), r;
|
|
662
662
|
}
|
|
663
663
|
function Le(e) {
|
|
664
|
-
return e.ContextType = ue.Unknown, e.UserType =
|
|
664
|
+
return e.ContextType = ue.Unknown, e.UserType = Se.Unknown, e.PayloadType = he.Unknown, e.Description = "", e.UserId = "", e.DeviceId = "", e.ProductId = "", e.VersionId = "", e.InstallId = "", e.Locale = "", e.SessionId = -1, e.IsInternal = !1, e.IsSnapshot = !1, e.IsReady = !1, e.HasInput = !1, e.ChannelLocale = "", e.AuthSessionId = "", e.ReceiveAllMessages = !1, e.PreciseJoinedAt = 0n, e.UserAgent = "", e.ClientType = fe.Unknown, e.UniqueSessionId = "", e.Parameters = /* @__PURE__ */ Object.create(null), e.SdkType = de.Unknown, e.SdkCapability = 0, e.ViewportWidth = 0, e.ViewportHeight = 0, e.Theme = "", e.Timezone = "", e.IsTouchDevice = !1, e.InitialPath = "", e.StyleFormat = Ae.Css, e.SupportsCompression = !0, e.IsSoftDisconnected = !1, e.SoftDisconnectAt = 0n, e;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
const t = r ??
|
|
668
|
-
return Le(t),
|
|
666
|
+
function hr(e, r) {
|
|
667
|
+
const t = r ?? ur();
|
|
668
|
+
return Le(t), Tr(e, t), t;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function Tr(e, r) {
|
|
671
671
|
let t;
|
|
672
672
|
for (; (t = e.next()) !== null; )
|
|
673
673
|
switch (t.fieldId) {
|
|
674
|
-
case
|
|
674
|
+
case bt: {
|
|
675
675
|
if (t.isNull) throw new Error();
|
|
676
676
|
r.DeviceId = t.asString();
|
|
677
677
|
break;
|
|
678
678
|
}
|
|
679
|
-
case
|
|
679
|
+
case Mt: {
|
|
680
680
|
if (t.isNull) throw new Error();
|
|
681
681
|
r.InstallId = t.asString();
|
|
682
682
|
break;
|
|
683
683
|
}
|
|
684
|
-
case
|
|
684
|
+
case vt: {
|
|
685
685
|
if (t.isNull) throw new Error();
|
|
686
686
|
r.Theme = t.asString();
|
|
687
687
|
break;
|
|
688
688
|
}
|
|
689
|
-
case
|
|
689
|
+
case kt: {
|
|
690
690
|
if (t.isNull) throw new Error();
|
|
691
691
|
r.UserAgent = t.asString();
|
|
692
692
|
break;
|
|
693
693
|
}
|
|
694
|
-
case
|
|
694
|
+
case pt: {
|
|
695
695
|
if (t.isNull) throw new Error();
|
|
696
696
|
r.ContextType = t.asInt32();
|
|
697
697
|
break;
|
|
@@ -701,27 +701,27 @@ function Ar(e, r) {
|
|
|
701
701
|
r.SoftDisconnectAt = t.asUInt64();
|
|
702
702
|
break;
|
|
703
703
|
}
|
|
704
|
-
case
|
|
704
|
+
case Gt: {
|
|
705
705
|
if (t.isNull) throw new Error();
|
|
706
706
|
r.HasInput = t.asBool();
|
|
707
707
|
break;
|
|
708
708
|
}
|
|
709
|
-
case
|
|
709
|
+
case Bt: {
|
|
710
710
|
if (t.isNull) throw new Error();
|
|
711
711
|
r.UserType = t.asInt32();
|
|
712
712
|
break;
|
|
713
713
|
}
|
|
714
|
-
case
|
|
714
|
+
case xt: {
|
|
715
715
|
if (t.isNull) throw new Error();
|
|
716
716
|
r.InitialPath = t.asString();
|
|
717
717
|
break;
|
|
718
718
|
}
|
|
719
|
-
case
|
|
719
|
+
case Ht: {
|
|
720
720
|
if (t.isNull) throw new Error();
|
|
721
721
|
r.IsSoftDisconnected = t.asBool();
|
|
722
722
|
break;
|
|
723
723
|
}
|
|
724
|
-
case
|
|
724
|
+
case Yt: {
|
|
725
725
|
if (t.isNull) throw new Error();
|
|
726
726
|
r.SupportsCompression = t.asBool();
|
|
727
727
|
break;
|
|
@@ -731,72 +731,72 @@ function Ar(e, r) {
|
|
|
731
731
|
r.UserId = t.asString();
|
|
732
732
|
break;
|
|
733
733
|
}
|
|
734
|
-
case
|
|
734
|
+
case Kt: {
|
|
735
735
|
if (t.isNull) throw new Error();
|
|
736
736
|
r.ProductId = t.asString();
|
|
737
737
|
break;
|
|
738
738
|
}
|
|
739
|
-
case
|
|
739
|
+
case jt: {
|
|
740
740
|
if (t.isNull) throw new Error();
|
|
741
741
|
r.AuthSessionId = t.asString();
|
|
742
742
|
break;
|
|
743
743
|
}
|
|
744
|
-
case
|
|
744
|
+
case Xt: {
|
|
745
745
|
if (t.isNull) throw new Error();
|
|
746
746
|
r.ReceiveAllMessages = t.asBool();
|
|
747
747
|
break;
|
|
748
748
|
}
|
|
749
|
-
case
|
|
749
|
+
case Wt: {
|
|
750
750
|
if (t.isNull) throw new Error();
|
|
751
751
|
r.ViewportHeight = t.asInt32();
|
|
752
752
|
break;
|
|
753
753
|
}
|
|
754
|
-
case
|
|
754
|
+
case zt: {
|
|
755
755
|
if (t.isNull) throw new Error();
|
|
756
756
|
r.Description = t.asString();
|
|
757
757
|
break;
|
|
758
758
|
}
|
|
759
|
-
case
|
|
759
|
+
case Jt: {
|
|
760
760
|
if (t.isNull) throw new Error();
|
|
761
761
|
r.SdkCapability = t.asInt32();
|
|
762
762
|
break;
|
|
763
763
|
}
|
|
764
|
-
case
|
|
764
|
+
case Qt: {
|
|
765
765
|
if (t.isNull) throw new Error();
|
|
766
766
|
r.IsSnapshot = t.asBool();
|
|
767
767
|
break;
|
|
768
768
|
}
|
|
769
|
-
case
|
|
769
|
+
case qt: {
|
|
770
770
|
if (t.isNull) throw new Error();
|
|
771
771
|
r.Locale = t.asString();
|
|
772
772
|
break;
|
|
773
773
|
}
|
|
774
|
-
case
|
|
774
|
+
case Zt: {
|
|
775
775
|
if (t.isNull) throw new Error();
|
|
776
776
|
r.SdkType = t.asInt32();
|
|
777
777
|
break;
|
|
778
778
|
}
|
|
779
|
-
case
|
|
779
|
+
case er: {
|
|
780
780
|
if (t.isNull) throw new Error();
|
|
781
781
|
r.SessionId = t.asInt32();
|
|
782
782
|
break;
|
|
783
783
|
}
|
|
784
|
-
case
|
|
784
|
+
case tr: {
|
|
785
785
|
if (t.isNull) throw new Error();
|
|
786
786
|
r.ViewportWidth = t.asInt32();
|
|
787
787
|
break;
|
|
788
788
|
}
|
|
789
|
-
case
|
|
789
|
+
case rr: {
|
|
790
790
|
if (t.isNull) throw new Error();
|
|
791
791
|
r.PreciseJoinedAt = t.asUInt64();
|
|
792
792
|
break;
|
|
793
793
|
}
|
|
794
|
-
case
|
|
794
|
+
case sr: {
|
|
795
795
|
if (t.isNull) throw new Error();
|
|
796
796
|
r.PayloadType = t.asInt32();
|
|
797
797
|
break;
|
|
798
798
|
}
|
|
799
|
-
case
|
|
799
|
+
case nr: {
|
|
800
800
|
if (t.isNull) throw new Error();
|
|
801
801
|
r.StyleFormat = t.asInt32();
|
|
802
802
|
break;
|
|
@@ -806,54 +806,49 @@ function Ar(e, r) {
|
|
|
806
806
|
r.IsTouchDevice = t.asBool();
|
|
807
807
|
break;
|
|
808
808
|
}
|
|
809
|
-
case
|
|
809
|
+
case ir: {
|
|
810
810
|
if (t.isNull) throw new Error();
|
|
811
811
|
r.VersionId = t.asString();
|
|
812
812
|
break;
|
|
813
813
|
}
|
|
814
|
-
case
|
|
814
|
+
case ar: {
|
|
815
815
|
if (t.isNull) throw new Error();
|
|
816
816
|
r.UniqueSessionId = t.asString();
|
|
817
817
|
break;
|
|
818
818
|
}
|
|
819
|
-
case
|
|
819
|
+
case lr: {
|
|
820
820
|
if (t.isNull) throw new Error();
|
|
821
821
|
r.ClientType = t.asInt32();
|
|
822
822
|
break;
|
|
823
823
|
}
|
|
824
|
-
case
|
|
824
|
+
case Er: {
|
|
825
825
|
if (t.isNull) throw new Error();
|
|
826
826
|
r.IsReady = t.asBool();
|
|
827
827
|
break;
|
|
828
828
|
}
|
|
829
|
-
case
|
|
829
|
+
case Ir: {
|
|
830
830
|
if (t.isNull) throw new Error();
|
|
831
|
-
r.Parameters =
|
|
831
|
+
r.Parameters = Ar(t.asDictionary());
|
|
832
832
|
break;
|
|
833
833
|
}
|
|
834
|
-
case
|
|
834
|
+
case _r: {
|
|
835
835
|
if (t.isNull) throw new Error();
|
|
836
836
|
r.Timezone = t.asString();
|
|
837
837
|
break;
|
|
838
838
|
}
|
|
839
|
-
case
|
|
839
|
+
case cr: {
|
|
840
840
|
if (t.isNull) throw new Error();
|
|
841
841
|
r.IsInternal = t.asBool();
|
|
842
842
|
break;
|
|
843
843
|
}
|
|
844
|
-
case
|
|
844
|
+
case fr: {
|
|
845
845
|
if (t.isNull) throw new Error();
|
|
846
846
|
r.ChannelLocale = t.asString();
|
|
847
847
|
break;
|
|
848
848
|
}
|
|
849
|
-
case Tr: {
|
|
850
|
-
if (t.isNull) throw new Error();
|
|
851
|
-
r.EmbeddedSpaceId = t.asString();
|
|
852
|
-
break;
|
|
853
|
-
}
|
|
854
849
|
}
|
|
855
850
|
}
|
|
856
|
-
function
|
|
851
|
+
function Ar(e) {
|
|
857
852
|
const r = /* @__PURE__ */ Object.create(null);
|
|
858
853
|
let t;
|
|
859
854
|
for (; (t = e.next()) !== null; ) {
|
|
@@ -862,28 +857,28 @@ function Sr(e) {
|
|
|
862
857
|
}
|
|
863
858
|
return r;
|
|
864
859
|
}
|
|
865
|
-
const
|
|
866
|
-
function
|
|
860
|
+
const Sr = 703025676, Nr = 814454131, dr = 972460562, Cr = 976255570, Rr = 1368629611, wr = 1479280922, Dr = 1533537016, yr = 1909301063, Lr = 2274386296, Ur = 2603556958, Or = 2885165957, mr = 3568439632;
|
|
861
|
+
function gr(e) {
|
|
867
862
|
const r = {};
|
|
868
863
|
return Ue(r), r;
|
|
869
864
|
}
|
|
870
865
|
function Ue(e) {
|
|
871
|
-
return e.FunctionId =
|
|
866
|
+
return e.FunctionId = T.fromBytes(new Uint8Array(16)), e.FunctionName = "", e.Parameters = [], e.ResultTypeName = "", e.IsEnumerable = !1, e.EnumerableItemTypeName = "", e.IsCancellable = !1, e.Description = "", e.LlmInlineResult = !1, e.LlmCallOnlyOnce = !1, e.RequiresInstance = !1, e.Versions = [], e;
|
|
872
867
|
}
|
|
873
|
-
function
|
|
874
|
-
const t = r ??
|
|
875
|
-
return Ue(t),
|
|
868
|
+
function Pr(e, r) {
|
|
869
|
+
const t = r ?? gr();
|
|
870
|
+
return Ue(t), Fr(e, t), t;
|
|
876
871
|
}
|
|
877
|
-
function
|
|
872
|
+
function Fr(e, r) {
|
|
878
873
|
let t;
|
|
879
874
|
for (; (t = e.next()) !== null; )
|
|
880
875
|
switch (t.fieldId) {
|
|
881
|
-
case
|
|
876
|
+
case Sr: {
|
|
882
877
|
if (t.isNull) throw new Error();
|
|
883
878
|
r.ResultTypeName = t.asString();
|
|
884
879
|
break;
|
|
885
880
|
}
|
|
886
|
-
case
|
|
881
|
+
case Nr: {
|
|
887
882
|
if (t.isNull) throw new Error();
|
|
888
883
|
r.FunctionName = t.asString();
|
|
889
884
|
break;
|
|
@@ -893,199 +888,199 @@ function Mr(e, r) {
|
|
|
893
888
|
r.EnumerableItemTypeName = t.asString();
|
|
894
889
|
break;
|
|
895
890
|
}
|
|
896
|
-
case
|
|
891
|
+
case Cr: {
|
|
897
892
|
if (t.isNull) throw new Error();
|
|
898
893
|
r.FunctionId = t.asGuid();
|
|
899
894
|
break;
|
|
900
895
|
}
|
|
901
|
-
case
|
|
896
|
+
case Rr: {
|
|
902
897
|
if (t.isNull) throw new Error();
|
|
903
898
|
r.Description = t.asString();
|
|
904
899
|
break;
|
|
905
900
|
}
|
|
906
|
-
case
|
|
901
|
+
case wr: {
|
|
907
902
|
if (t.isNull) throw new Error();
|
|
908
903
|
r.IsCancellable = t.asBool();
|
|
909
904
|
break;
|
|
910
905
|
}
|
|
911
|
-
case
|
|
906
|
+
case Dr: {
|
|
912
907
|
if (t.isNull) throw new Error();
|
|
913
908
|
r.RequiresInstance = t.asBool();
|
|
914
909
|
break;
|
|
915
910
|
}
|
|
916
|
-
case
|
|
911
|
+
case yr: {
|
|
917
912
|
if (t.isNull) throw new Error();
|
|
918
|
-
r.Versions =
|
|
913
|
+
r.Versions = br(t.asArray());
|
|
919
914
|
break;
|
|
920
915
|
}
|
|
921
|
-
case
|
|
916
|
+
case Lr: {
|
|
922
917
|
if (t.isNull) throw new Error();
|
|
923
918
|
r.LlmInlineResult = t.asBool();
|
|
924
919
|
break;
|
|
925
920
|
}
|
|
926
|
-
case
|
|
921
|
+
case Ur: {
|
|
927
922
|
if (t.isNull) throw new Error();
|
|
928
923
|
r.IsEnumerable = t.asBool();
|
|
929
924
|
break;
|
|
930
925
|
}
|
|
931
|
-
case
|
|
926
|
+
case Or: {
|
|
932
927
|
if (t.isNull) throw new Error();
|
|
933
|
-
r.Parameters =
|
|
928
|
+
r.Parameters = Mr(t.asArray());
|
|
934
929
|
break;
|
|
935
930
|
}
|
|
936
|
-
case
|
|
931
|
+
case mr: {
|
|
937
932
|
if (t.isNull) throw new Error();
|
|
938
933
|
r.LlmCallOnlyOnce = t.asBool();
|
|
939
934
|
break;
|
|
940
935
|
}
|
|
941
936
|
}
|
|
942
937
|
}
|
|
943
|
-
function
|
|
938
|
+
function br(e) {
|
|
944
939
|
const r = [];
|
|
945
940
|
let t;
|
|
946
941
|
for (; (t = e.next()) !== null; )
|
|
947
942
|
r.push(t.asString());
|
|
948
943
|
return r;
|
|
949
944
|
}
|
|
950
|
-
function
|
|
945
|
+
function Mr(e) {
|
|
951
946
|
const r = [];
|
|
952
947
|
let t;
|
|
953
948
|
for (; (t = e.next()) !== null; )
|
|
954
|
-
r.push(
|
|
949
|
+
r.push(Kr(t.asObject()));
|
|
955
950
|
return r;
|
|
956
951
|
}
|
|
957
|
-
const
|
|
958
|
-
function
|
|
952
|
+
const vr = 607861992, kr = 894485888, pr = 972460562, Vr = 1368629611, Gr = 1883521406, Br = 2603556958, xr = 3609695522, Hr = 4075263697, Yr = 4257460908;
|
|
953
|
+
function $r(e) {
|
|
959
954
|
const r = {};
|
|
960
955
|
return Oe(r), r;
|
|
961
956
|
}
|
|
962
957
|
function Oe(e) {
|
|
963
958
|
return e.ParameterIndex = 0, e.ParameterName = "", e.TypeName = "", e.HasDefaultValue = !1, e.DefaultValueJson = "", e.DefaultValueData = new Uint8Array(0), e.IsEnumerable = !1, e.EnumerableItemTypeName = "", e.Description = "", e;
|
|
964
959
|
}
|
|
965
|
-
function
|
|
966
|
-
const t = r ??
|
|
960
|
+
function Kr(e, r) {
|
|
961
|
+
const t = r ?? $r();
|
|
967
962
|
return Oe(t), jr(e, t), t;
|
|
968
963
|
}
|
|
969
964
|
function jr(e, r) {
|
|
970
965
|
let t;
|
|
971
966
|
for (; (t = e.next()) !== null; )
|
|
972
967
|
switch (t.fieldId) {
|
|
973
|
-
case
|
|
968
|
+
case vr: {
|
|
974
969
|
if (t.isNull) throw new Error();
|
|
975
970
|
r.HasDefaultValue = t.asBool();
|
|
976
971
|
break;
|
|
977
972
|
}
|
|
978
|
-
case
|
|
973
|
+
case kr: {
|
|
979
974
|
if (t.isNull) throw new Error();
|
|
980
975
|
r.DefaultValueJson = t.asString();
|
|
981
976
|
break;
|
|
982
977
|
}
|
|
983
|
-
case
|
|
978
|
+
case pr: {
|
|
984
979
|
if (t.isNull) throw new Error();
|
|
985
980
|
r.EnumerableItemTypeName = t.asString();
|
|
986
981
|
break;
|
|
987
982
|
}
|
|
988
|
-
case
|
|
983
|
+
case Vr: {
|
|
989
984
|
if (t.isNull) throw new Error();
|
|
990
985
|
r.Description = t.asString();
|
|
991
986
|
break;
|
|
992
987
|
}
|
|
993
|
-
case
|
|
988
|
+
case Gr: {
|
|
994
989
|
if (t.isNull) throw new Error();
|
|
995
990
|
r.DefaultValueData = t.asBinary();
|
|
996
991
|
break;
|
|
997
992
|
}
|
|
998
|
-
case
|
|
993
|
+
case Br: {
|
|
999
994
|
if (t.isNull) throw new Error();
|
|
1000
995
|
r.IsEnumerable = t.asBool();
|
|
1001
996
|
break;
|
|
1002
997
|
}
|
|
1003
|
-
case
|
|
998
|
+
case xr: {
|
|
1004
999
|
if (t.isNull) throw new Error();
|
|
1005
1000
|
r.TypeName = t.asString();
|
|
1006
1001
|
break;
|
|
1007
1002
|
}
|
|
1008
|
-
case
|
|
1003
|
+
case Hr: {
|
|
1009
1004
|
if (t.isNull) throw new Error();
|
|
1010
1005
|
r.ParameterName = t.asString();
|
|
1011
1006
|
break;
|
|
1012
1007
|
}
|
|
1013
|
-
case
|
|
1008
|
+
case Yr: {
|
|
1014
1009
|
if (t.isNull) throw new Error();
|
|
1015
1010
|
r.ParameterIndex = t.asInt32();
|
|
1016
1011
|
break;
|
|
1017
1012
|
}
|
|
1018
1013
|
}
|
|
1019
1014
|
}
|
|
1020
|
-
const
|
|
1015
|
+
const Xr = 3167053791, Wr = 3342364356, zr = 3612929027;
|
|
1021
1016
|
function me(e) {
|
|
1022
1017
|
const r = {};
|
|
1023
|
-
return
|
|
1018
|
+
return ge(r), r;
|
|
1024
1019
|
}
|
|
1025
|
-
function
|
|
1026
|
-
return e.Category = "", e.Type =
|
|
1020
|
+
function ge(e) {
|
|
1021
|
+
return e.Category = "", e.Type = Te.Face, e.FaceBlendshapes = [], e;
|
|
1027
1022
|
}
|
|
1028
|
-
function
|
|
1023
|
+
function Jr(e, r) {
|
|
1029
1024
|
const t = r ?? me();
|
|
1030
|
-
return
|
|
1025
|
+
return ge(t), Qr(e, t), t;
|
|
1031
1026
|
}
|
|
1032
|
-
function
|
|
1027
|
+
function Qr(e, r) {
|
|
1033
1028
|
let t;
|
|
1034
1029
|
for (; (t = e.next()) !== null; )
|
|
1035
1030
|
switch (t.fieldId) {
|
|
1036
|
-
case
|
|
1031
|
+
case Xr: {
|
|
1037
1032
|
if (t.isNull) throw new Error();
|
|
1038
1033
|
r.Type = t.asInt32();
|
|
1039
1034
|
break;
|
|
1040
1035
|
}
|
|
1041
|
-
case
|
|
1036
|
+
case Wr: {
|
|
1042
1037
|
if (t.isNull) throw new Error();
|
|
1043
|
-
r.FaceBlendshapes =
|
|
1038
|
+
r.FaceBlendshapes = qr(t.asArray());
|
|
1044
1039
|
break;
|
|
1045
1040
|
}
|
|
1046
|
-
case
|
|
1041
|
+
case zr: {
|
|
1047
1042
|
if (t.isNull) throw new Error();
|
|
1048
1043
|
r.Category = t.asString();
|
|
1049
1044
|
break;
|
|
1050
1045
|
}
|
|
1051
1046
|
}
|
|
1052
1047
|
}
|
|
1053
|
-
function
|
|
1048
|
+
function qr(e) {
|
|
1054
1049
|
const r = [];
|
|
1055
1050
|
let t;
|
|
1056
1051
|
for (; (t = e.next()) !== null; )
|
|
1057
1052
|
r.push(t.asString());
|
|
1058
1053
|
return r;
|
|
1059
1054
|
}
|
|
1060
|
-
const
|
|
1061
|
-
function
|
|
1055
|
+
const Zr = 1405462580, es = 2968276160;
|
|
1056
|
+
function ts(e) {
|
|
1062
1057
|
const r = {};
|
|
1063
|
-
return
|
|
1058
|
+
return Pe(r), r;
|
|
1064
1059
|
}
|
|
1065
|
-
function
|
|
1060
|
+
function Pe(e) {
|
|
1066
1061
|
return e.MimeType = "", e.Value = new Uint8Array(0), e;
|
|
1067
1062
|
}
|
|
1068
|
-
function
|
|
1069
|
-
const t = r ??
|
|
1070
|
-
return
|
|
1063
|
+
function rs(e, r) {
|
|
1064
|
+
const t = r ?? ts();
|
|
1065
|
+
return Pe(t), ss(e, t), t;
|
|
1071
1066
|
}
|
|
1072
|
-
function
|
|
1067
|
+
function ss(e, r) {
|
|
1073
1068
|
let t;
|
|
1074
1069
|
for (; (t = e.next()) !== null; )
|
|
1075
1070
|
switch (t.fieldId) {
|
|
1076
|
-
case
|
|
1071
|
+
case Zr: {
|
|
1077
1072
|
if (t.isNull) throw new Error();
|
|
1078
1073
|
r.Value = t.asBinary();
|
|
1079
1074
|
break;
|
|
1080
1075
|
}
|
|
1081
|
-
case
|
|
1076
|
+
case es: {
|
|
1082
1077
|
if (t.isNull) throw new Error();
|
|
1083
1078
|
r.MimeType = t.asString();
|
|
1084
1079
|
break;
|
|
1085
1080
|
}
|
|
1086
1081
|
}
|
|
1087
1082
|
}
|
|
1088
|
-
const
|
|
1083
|
+
const ns = 3612929027;
|
|
1089
1084
|
function Fe(e) {
|
|
1090
1085
|
const r = {};
|
|
1091
1086
|
return be(r), r;
|
|
@@ -1093,58 +1088,58 @@ function Fe(e) {
|
|
|
1093
1088
|
function be(e) {
|
|
1094
1089
|
return e.Category = "", e;
|
|
1095
1090
|
}
|
|
1096
|
-
function
|
|
1091
|
+
function os(e, r) {
|
|
1097
1092
|
const t = r ?? Fe();
|
|
1098
|
-
return be(t),
|
|
1093
|
+
return be(t), is(e, t), t;
|
|
1099
1094
|
}
|
|
1100
|
-
function
|
|
1095
|
+
function is(e, r) {
|
|
1101
1096
|
let t;
|
|
1102
1097
|
for (; (t = e.next()) !== null; )
|
|
1103
1098
|
switch (t.fieldId) {
|
|
1104
|
-
case
|
|
1099
|
+
case ns: {
|
|
1105
1100
|
if (t.isNull) throw new Error();
|
|
1106
1101
|
r.Category = t.asString();
|
|
1107
1102
|
break;
|
|
1108
1103
|
}
|
|
1109
1104
|
}
|
|
1110
1105
|
}
|
|
1111
|
-
const
|
|
1112
|
-
function
|
|
1106
|
+
const as = 2097188, ls = 979822885, Es = 2374537704;
|
|
1107
|
+
function Is(e) {
|
|
1113
1108
|
const r = {};
|
|
1114
1109
|
return Me(r), r;
|
|
1115
1110
|
}
|
|
1116
1111
|
function Me(e) {
|
|
1117
1112
|
return e.StyleId = "", e.Style = /* @__PURE__ */ Object.create(null), e;
|
|
1118
1113
|
}
|
|
1119
|
-
function
|
|
1114
|
+
function _s(e, r) {
|
|
1120
1115
|
const t = g.create(e);
|
|
1121
|
-
return
|
|
1116
|
+
return cs(t, r);
|
|
1122
1117
|
}
|
|
1123
|
-
function
|
|
1124
|
-
const t = r ??
|
|
1125
|
-
return Me(t),
|
|
1118
|
+
function cs(e, r) {
|
|
1119
|
+
const t = r ?? Is();
|
|
1120
|
+
return Me(t), fs(e, t), t;
|
|
1126
1121
|
}
|
|
1127
|
-
function
|
|
1122
|
+
function fs(e, r) {
|
|
1128
1123
|
let t;
|
|
1129
1124
|
for (; (t = e.next()) !== null; )
|
|
1130
1125
|
switch (t.fieldId) {
|
|
1131
|
-
case
|
|
1126
|
+
case ls: {
|
|
1132
1127
|
if (t.isNull) throw new Error();
|
|
1133
1128
|
r.StyleId = t.asString();
|
|
1134
1129
|
break;
|
|
1135
1130
|
}
|
|
1136
|
-
case
|
|
1131
|
+
case Es: {
|
|
1137
1132
|
if (t.isNull) throw new Error();
|
|
1138
|
-
r.Style =
|
|
1133
|
+
r.Style = hs(t.asDictionary());
|
|
1139
1134
|
break;
|
|
1140
1135
|
}
|
|
1141
1136
|
}
|
|
1142
1137
|
}
|
|
1143
|
-
async function
|
|
1144
|
-
const t = await
|
|
1145
|
-
return
|
|
1138
|
+
async function us(e, r) {
|
|
1139
|
+
const t = await j(e, as);
|
|
1140
|
+
return _s(t, r);
|
|
1146
1141
|
}
|
|
1147
|
-
function
|
|
1142
|
+
function hs(e) {
|
|
1148
1143
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1149
1144
|
let t;
|
|
1150
1145
|
for (; (t = e.next()) !== null; ) {
|
|
@@ -1153,73 +1148,73 @@ function Ns(e) {
|
|
|
1153
1148
|
}
|
|
1154
1149
|
return r;
|
|
1155
1150
|
}
|
|
1156
|
-
const
|
|
1157
|
-
function
|
|
1151
|
+
const Ts = 2097192, As = 2136687806;
|
|
1152
|
+
function Ss(e) {
|
|
1158
1153
|
const r = {};
|
|
1159
1154
|
return ve(r), r;
|
|
1160
1155
|
}
|
|
1161
1156
|
function ve(e) {
|
|
1162
1157
|
return e.Styles = [], e;
|
|
1163
1158
|
}
|
|
1164
|
-
function
|
|
1159
|
+
function Ns(e, r) {
|
|
1165
1160
|
const t = g.create(e);
|
|
1166
1161
|
return ds(t, r);
|
|
1167
1162
|
}
|
|
1168
1163
|
function ds(e, r) {
|
|
1169
|
-
const t = r ??
|
|
1170
|
-
return ve(t),
|
|
1164
|
+
const t = r ?? Ss();
|
|
1165
|
+
return ve(t), Cs(e, t), t;
|
|
1171
1166
|
}
|
|
1172
|
-
function
|
|
1167
|
+
function Cs(e, r) {
|
|
1173
1168
|
let t;
|
|
1174
1169
|
for (; (t = e.next()) !== null; )
|
|
1175
1170
|
switch (t.fieldId) {
|
|
1176
|
-
case
|
|
1171
|
+
case As: {
|
|
1177
1172
|
if (t.isNull) throw new Error();
|
|
1178
|
-
r.Styles =
|
|
1173
|
+
r.Styles = ws(t.asArray());
|
|
1179
1174
|
break;
|
|
1180
1175
|
}
|
|
1181
1176
|
}
|
|
1182
1177
|
}
|
|
1183
|
-
async function
|
|
1184
|
-
const t = await
|
|
1185
|
-
return
|
|
1178
|
+
async function Rs(e, r) {
|
|
1179
|
+
const t = await j(e, Ts);
|
|
1180
|
+
return Ns(t, r);
|
|
1186
1181
|
}
|
|
1187
|
-
function
|
|
1182
|
+
function ws(e) {
|
|
1188
1183
|
const r = [];
|
|
1189
1184
|
let t;
|
|
1190
1185
|
for (; (t = e.next()) !== null; )
|
|
1191
|
-
r.push(
|
|
1186
|
+
r.push(Us(t.asObject()));
|
|
1192
1187
|
return r;
|
|
1193
1188
|
}
|
|
1194
|
-
const
|
|
1195
|
-
function
|
|
1189
|
+
const Ds = 979822885, ys = 2374537704;
|
|
1190
|
+
function Ls(e) {
|
|
1196
1191
|
const r = {};
|
|
1197
1192
|
return ke(r), r;
|
|
1198
1193
|
}
|
|
1199
1194
|
function ke(e) {
|
|
1200
1195
|
return e.StyleId = "", e.Style = /* @__PURE__ */ Object.create(null), e;
|
|
1201
1196
|
}
|
|
1202
|
-
function
|
|
1203
|
-
const t = r ??
|
|
1204
|
-
return ke(t),
|
|
1197
|
+
function Us(e, r) {
|
|
1198
|
+
const t = r ?? Ls();
|
|
1199
|
+
return ke(t), Os(e, t), t;
|
|
1205
1200
|
}
|
|
1206
|
-
function
|
|
1201
|
+
function Os(e, r) {
|
|
1207
1202
|
let t;
|
|
1208
1203
|
for (; (t = e.next()) !== null; )
|
|
1209
1204
|
switch (t.fieldId) {
|
|
1210
|
-
case
|
|
1205
|
+
case Ds: {
|
|
1211
1206
|
if (t.isNull) throw new Error();
|
|
1212
1207
|
r.StyleId = t.asString();
|
|
1213
1208
|
break;
|
|
1214
1209
|
}
|
|
1215
|
-
case
|
|
1210
|
+
case ys: {
|
|
1216
1211
|
if (t.isNull) throw new Error();
|
|
1217
|
-
r.Style =
|
|
1212
|
+
r.Style = ms(t.asDictionary());
|
|
1218
1213
|
break;
|
|
1219
1214
|
}
|
|
1220
1215
|
}
|
|
1221
1216
|
}
|
|
1222
|
-
function
|
|
1217
|
+
function ms(e) {
|
|
1223
1218
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1224
1219
|
let t;
|
|
1225
1220
|
for (; (t = e.next()) !== null; ) {
|
|
@@ -1228,121 +1223,121 @@ function gs(e) {
|
|
|
1228
1223
|
}
|
|
1229
1224
|
return r;
|
|
1230
1225
|
}
|
|
1231
|
-
const
|
|
1232
|
-
function
|
|
1226
|
+
const gs = 2097193, Ps = 1415642792;
|
|
1227
|
+
function Fs(e) {
|
|
1233
1228
|
const r = {};
|
|
1234
|
-
return
|
|
1229
|
+
return pe(r), r;
|
|
1235
1230
|
}
|
|
1236
|
-
function
|
|
1231
|
+
function pe(e) {
|
|
1237
1232
|
return e.StyleIds = [], e;
|
|
1238
1233
|
}
|
|
1239
|
-
function
|
|
1234
|
+
function bs(e, r) {
|
|
1240
1235
|
const t = g.create(e);
|
|
1241
|
-
return
|
|
1236
|
+
return Ms(t, r);
|
|
1242
1237
|
}
|
|
1243
|
-
function
|
|
1244
|
-
const t = r ??
|
|
1245
|
-
return
|
|
1238
|
+
function Ms(e, r) {
|
|
1239
|
+
const t = r ?? Fs();
|
|
1240
|
+
return pe(t), vs(e, t), t;
|
|
1246
1241
|
}
|
|
1247
|
-
function
|
|
1242
|
+
function vs(e, r) {
|
|
1248
1243
|
let t;
|
|
1249
1244
|
for (; (t = e.next()) !== null; )
|
|
1250
1245
|
switch (t.fieldId) {
|
|
1251
|
-
case
|
|
1246
|
+
case Ps: {
|
|
1252
1247
|
if (t.isNull) throw new Error();
|
|
1253
|
-
r.StyleIds =
|
|
1248
|
+
r.StyleIds = ps(t.asArray());
|
|
1254
1249
|
break;
|
|
1255
1250
|
}
|
|
1256
1251
|
}
|
|
1257
1252
|
}
|
|
1258
|
-
async function
|
|
1259
|
-
const t = await
|
|
1260
|
-
return
|
|
1253
|
+
async function ks(e, r) {
|
|
1254
|
+
const t = await j(e, gs);
|
|
1255
|
+
return bs(t, r);
|
|
1261
1256
|
}
|
|
1262
|
-
function
|
|
1257
|
+
function ps(e) {
|
|
1263
1258
|
const r = [];
|
|
1264
1259
|
let t;
|
|
1265
1260
|
for (; (t = e.next()) !== null; )
|
|
1266
1261
|
r.push(t.asString());
|
|
1267
1262
|
return r;
|
|
1268
1263
|
}
|
|
1269
|
-
const
|
|
1270
|
-
function
|
|
1264
|
+
const Vs = 2097190, Gs = 425183262, Bs = 653781469;
|
|
1265
|
+
function xs(e) {
|
|
1271
1266
|
const r = {};
|
|
1272
|
-
return
|
|
1267
|
+
return Ve(r), r;
|
|
1273
1268
|
}
|
|
1274
|
-
function
|
|
1269
|
+
function Ve(e) {
|
|
1275
1270
|
return e.Json = "", e.Payloads = /* @__PURE__ */ Object.create(null), e;
|
|
1276
1271
|
}
|
|
1277
|
-
function
|
|
1272
|
+
function Hs(e, r) {
|
|
1278
1273
|
const t = g.create(e);
|
|
1279
|
-
return
|
|
1274
|
+
return Ys(t, r);
|
|
1280
1275
|
}
|
|
1281
|
-
function
|
|
1282
|
-
const t = r ??
|
|
1283
|
-
return
|
|
1276
|
+
function Ys(e, r) {
|
|
1277
|
+
const t = r ?? xs();
|
|
1278
|
+
return Ve(t), $s(e, t), t;
|
|
1284
1279
|
}
|
|
1285
|
-
function
|
|
1280
|
+
function $s(e, r) {
|
|
1286
1281
|
let t;
|
|
1287
1282
|
for (; (t = e.next()) !== null; )
|
|
1288
1283
|
switch (t.fieldId) {
|
|
1289
|
-
case
|
|
1284
|
+
case Gs: {
|
|
1290
1285
|
if (t.isNull) throw new Error();
|
|
1291
1286
|
r.Json = t.asString();
|
|
1292
1287
|
break;
|
|
1293
1288
|
}
|
|
1294
|
-
case
|
|
1289
|
+
case Bs: {
|
|
1295
1290
|
if (t.isNull) throw new Error();
|
|
1296
1291
|
r.Payloads = js(t.asDictionary());
|
|
1297
1292
|
break;
|
|
1298
1293
|
}
|
|
1299
1294
|
}
|
|
1300
1295
|
}
|
|
1301
|
-
async function
|
|
1302
|
-
const t = await
|
|
1303
|
-
return
|
|
1296
|
+
async function Ks(e, r) {
|
|
1297
|
+
const t = await j(e, Vs);
|
|
1298
|
+
return Hs(t, r);
|
|
1304
1299
|
}
|
|
1305
1300
|
function js(e) {
|
|
1306
1301
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1307
1302
|
let t;
|
|
1308
1303
|
for (; (t = e.next()) !== null; ) {
|
|
1309
1304
|
const s = t.key.asString();
|
|
1310
|
-
r[s] =
|
|
1305
|
+
r[s] = rs(t.value.asObject());
|
|
1311
1306
|
}
|
|
1312
1307
|
return r;
|
|
1313
1308
|
}
|
|
1314
|
-
const
|
|
1315
|
-
function
|
|
1309
|
+
const Xs = 161083277, Ws = 164808083, zs = 1368629611, Js = 2514959030, Qs = 2745379226, qs = 2950031986, Zs = 3282782683, en = 3284746250, tn = 4065070594;
|
|
1310
|
+
function Ge(e) {
|
|
1316
1311
|
const r = {};
|
|
1317
|
-
return
|
|
1312
|
+
return Be(r), r;
|
|
1318
1313
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return e.StreamId = "", e.Description = "", e.SourceType = "", e.Codec =
|
|
1314
|
+
function Be(e) {
|
|
1315
|
+
return e.StreamId = "", e.Description = "", e.SourceType = "", e.Codec = Ne.H264, e.CodecDetails = "", e.Width = 0, e.Height = 0, e.Framerate = 30, e.CorrelationId = void 0, e;
|
|
1321
1316
|
}
|
|
1322
|
-
function
|
|
1323
|
-
const t = r ??
|
|
1324
|
-
return
|
|
1317
|
+
function rn(e, r) {
|
|
1318
|
+
const t = r ?? Ge();
|
|
1319
|
+
return Be(t), sn(e, t), t;
|
|
1325
1320
|
}
|
|
1326
|
-
function
|
|
1321
|
+
function sn(e, r) {
|
|
1327
1322
|
let t;
|
|
1328
1323
|
for (; (t = e.next()) !== null; )
|
|
1329
1324
|
switch (t.fieldId) {
|
|
1330
|
-
case
|
|
1325
|
+
case Xs: {
|
|
1331
1326
|
if (t.isNull) throw new Error();
|
|
1332
1327
|
r.StreamId = t.asString();
|
|
1333
1328
|
break;
|
|
1334
1329
|
}
|
|
1335
|
-
case
|
|
1330
|
+
case Ws: {
|
|
1336
1331
|
if (t.isNull) throw new Error();
|
|
1337
1332
|
r.Framerate = t.asFloat64();
|
|
1338
1333
|
break;
|
|
1339
1334
|
}
|
|
1340
|
-
case
|
|
1335
|
+
case zs: {
|
|
1341
1336
|
if (t.isNull) throw new Error();
|
|
1342
1337
|
r.Description = t.asString();
|
|
1343
1338
|
break;
|
|
1344
1339
|
}
|
|
1345
|
-
case
|
|
1340
|
+
case Js: {
|
|
1346
1341
|
if (t.isNull) {
|
|
1347
1342
|
r.CorrelationId = void 0;
|
|
1348
1343
|
break;
|
|
@@ -1350,276 +1345,276 @@ function on(e, r) {
|
|
|
1350
1345
|
r.CorrelationId = t.asString();
|
|
1351
1346
|
break;
|
|
1352
1347
|
}
|
|
1353
|
-
case
|
|
1348
|
+
case Qs: {
|
|
1354
1349
|
if (t.isNull) throw new Error();
|
|
1355
1350
|
r.CodecDetails = t.asString();
|
|
1356
1351
|
break;
|
|
1357
1352
|
}
|
|
1358
|
-
case
|
|
1353
|
+
case qs: {
|
|
1359
1354
|
if (t.isNull) throw new Error();
|
|
1360
1355
|
r.Height = t.asInt32();
|
|
1361
1356
|
break;
|
|
1362
1357
|
}
|
|
1363
|
-
case
|
|
1358
|
+
case Zs: {
|
|
1364
1359
|
if (t.isNull) throw new Error();
|
|
1365
1360
|
r.SourceType = t.asString();
|
|
1366
1361
|
break;
|
|
1367
1362
|
}
|
|
1368
|
-
case
|
|
1363
|
+
case en: {
|
|
1369
1364
|
if (t.isNull) throw new Error();
|
|
1370
1365
|
r.Codec = t.asInt32();
|
|
1371
1366
|
break;
|
|
1372
1367
|
}
|
|
1373
|
-
case
|
|
1368
|
+
case tn: {
|
|
1374
1369
|
if (t.isNull) throw new Error();
|
|
1375
1370
|
r.Width = t.asInt32();
|
|
1376
1371
|
break;
|
|
1377
1372
|
}
|
|
1378
1373
|
}
|
|
1379
1374
|
}
|
|
1380
|
-
const
|
|
1381
|
-
function
|
|
1375
|
+
const nn = 65539, on = 693643444, an = 976837618, ln = 1144553441, En = 1497620243, In = 1559330978, _n = 1976546434, cn = 2271236852, fn = 2277643855, un = 2469008121, hn = 3042922213, Tn = 3064612128, An = 3219210453, Sn = 3504054055, Nn = 3678477544, dn = 3696445035, Cn = 3707543140, Rn = 3712281496, wn = 3895362455, Dn = 3897397815, yn = 3914217035, Ln = 4225107827;
|
|
1376
|
+
function Un(e) {
|
|
1382
1377
|
const r = {};
|
|
1383
|
-
return
|
|
1378
|
+
return xe(r), r;
|
|
1384
1379
|
}
|
|
1385
|
-
function
|
|
1386
|
-
return e.Clients = /* @__PURE__ */ Object.create(null), e.Functions = /* @__PURE__ */ Object.create(null), e.UIStreams = /* @__PURE__ */ Object.create(null), e.AudioStreams = /* @__PURE__ */ Object.create(null), e.VideoStreams = /* @__PURE__ */ Object.create(null), e.TrackingStreams = /* @__PURE__ */ Object.create(null), e.SpaceId = "", e.ChannelId = "", e.ServerSessionId = "", e.SessionHash = "", e.ChannelUrl = "", e.SessionChannelUrl = "", e.FirstUserId = "", e.PrimaryUserId = "", e.OrganisationName = "", e.SpaceName = "", e.ChannelName = "", e.ServerRunType =
|
|
1380
|
+
function xe(e) {
|
|
1381
|
+
return e.Clients = /* @__PURE__ */ Object.create(null), e.Functions = /* @__PURE__ */ Object.create(null), e.UIStreams = /* @__PURE__ */ Object.create(null), e.AudioStreams = /* @__PURE__ */ Object.create(null), e.VideoStreams = /* @__PURE__ */ Object.create(null), e.TrackingStreams = /* @__PURE__ */ Object.create(null), e.SpaceId = "", e.ChannelId = "", e.ServerSessionId = "", e.SessionHash = "", e.ChannelUrl = "", e.SessionChannelUrl = "", e.FirstUserId = "", e.PrimaryUserId = "", e.OrganisationName = "", e.SpaceName = "", e.ChannelName = "", e.ServerRunType = Ce.Local, e.AppSourceType = Re.Bundle, e.PublicAccess = !1, e.DebugMode = !1, e;
|
|
1387
1382
|
}
|
|
1388
|
-
function
|
|
1383
|
+
function On(e, r) {
|
|
1389
1384
|
const t = g.create(e);
|
|
1390
|
-
return
|
|
1385
|
+
return mn(t, r);
|
|
1391
1386
|
}
|
|
1392
|
-
function
|
|
1393
|
-
const t = r ??
|
|
1394
|
-
return
|
|
1387
|
+
function mn(e, r) {
|
|
1388
|
+
const t = r ?? Un();
|
|
1389
|
+
return xe(t), gn(e, t), t;
|
|
1395
1390
|
}
|
|
1396
|
-
function
|
|
1391
|
+
function gn(e, r) {
|
|
1397
1392
|
let t;
|
|
1398
1393
|
for (; (t = e.next()) !== null; )
|
|
1399
1394
|
switch (t.fieldId) {
|
|
1400
|
-
case
|
|
1395
|
+
case on: {
|
|
1401
1396
|
if (t.isNull) throw new Error();
|
|
1402
1397
|
r.FirstUserId = t.asString();
|
|
1403
1398
|
break;
|
|
1404
1399
|
}
|
|
1405
|
-
case
|
|
1400
|
+
case an: {
|
|
1406
1401
|
if (t.isNull) throw new Error();
|
|
1407
1402
|
r.SessionHash = t.asString();
|
|
1408
1403
|
break;
|
|
1409
1404
|
}
|
|
1410
|
-
case
|
|
1405
|
+
case ln: {
|
|
1411
1406
|
if (t.isNull) throw new Error();
|
|
1412
|
-
r.Clients =
|
|
1407
|
+
r.Clients = Fn(t.asDictionary());
|
|
1413
1408
|
break;
|
|
1414
1409
|
}
|
|
1415
|
-
case
|
|
1410
|
+
case En: {
|
|
1416
1411
|
if (t.isNull) throw new Error();
|
|
1417
|
-
r.TrackingStreams =
|
|
1412
|
+
r.TrackingStreams = bn(t.asDictionary());
|
|
1418
1413
|
break;
|
|
1419
1414
|
}
|
|
1420
|
-
case
|
|
1415
|
+
case In: {
|
|
1421
1416
|
if (t.isNull) throw new Error();
|
|
1422
1417
|
r.ChannelId = t.asString();
|
|
1423
1418
|
break;
|
|
1424
1419
|
}
|
|
1425
|
-
case
|
|
1420
|
+
case _n: {
|
|
1426
1421
|
if (t.isNull) throw new Error();
|
|
1427
1422
|
r.AppSourceType = t.asInt32();
|
|
1428
1423
|
break;
|
|
1429
1424
|
}
|
|
1430
|
-
case
|
|
1425
|
+
case cn: {
|
|
1431
1426
|
if (t.isNull) throw new Error();
|
|
1432
1427
|
r.SessionChannelUrl = t.asString();
|
|
1433
1428
|
break;
|
|
1434
1429
|
}
|
|
1435
|
-
case
|
|
1430
|
+
case fn: {
|
|
1436
1431
|
if (t.isNull) throw new Error();
|
|
1437
1432
|
r.ChannelUrl = t.asString();
|
|
1438
1433
|
break;
|
|
1439
1434
|
}
|
|
1440
|
-
case
|
|
1435
|
+
case un: {
|
|
1441
1436
|
if (t.isNull) throw new Error();
|
|
1442
1437
|
r.ChannelName = t.asString();
|
|
1443
1438
|
break;
|
|
1444
1439
|
}
|
|
1445
|
-
case
|
|
1440
|
+
case hn: {
|
|
1446
1441
|
if (t.isNull) throw new Error();
|
|
1447
1442
|
r.PublicAccess = t.asBool();
|
|
1448
1443
|
break;
|
|
1449
1444
|
}
|
|
1450
|
-
case
|
|
1445
|
+
case Tn: {
|
|
1451
1446
|
if (t.isNull) throw new Error();
|
|
1452
1447
|
r.ServerRunType = t.asInt32();
|
|
1453
1448
|
break;
|
|
1454
1449
|
}
|
|
1455
|
-
case
|
|
1450
|
+
case An: {
|
|
1456
1451
|
if (t.isNull) throw new Error();
|
|
1457
1452
|
r.OrganisationName = t.asString();
|
|
1458
1453
|
break;
|
|
1459
1454
|
}
|
|
1460
|
-
case
|
|
1455
|
+
case Sn: {
|
|
1461
1456
|
if (t.isNull) throw new Error();
|
|
1462
1457
|
r.DebugMode = t.asBool();
|
|
1463
1458
|
break;
|
|
1464
1459
|
}
|
|
1465
|
-
case
|
|
1460
|
+
case Nn: {
|
|
1466
1461
|
if (t.isNull) throw new Error();
|
|
1467
|
-
r.Functions =
|
|
1462
|
+
r.Functions = Mn(t.asDictionary());
|
|
1468
1463
|
break;
|
|
1469
1464
|
}
|
|
1470
1465
|
case dn: {
|
|
1471
1466
|
if (t.isNull) throw new Error();
|
|
1472
|
-
r.UIStreams =
|
|
1467
|
+
r.UIStreams = vn(t.asDictionary());
|
|
1473
1468
|
break;
|
|
1474
1469
|
}
|
|
1475
|
-
case
|
|
1470
|
+
case Cn: {
|
|
1476
1471
|
if (t.isNull) throw new Error();
|
|
1477
1472
|
r.SpaceId = t.asString();
|
|
1478
1473
|
break;
|
|
1479
1474
|
}
|
|
1480
|
-
case
|
|
1475
|
+
case Rn: {
|
|
1481
1476
|
if (t.isNull) throw new Error();
|
|
1482
1477
|
r.PrimaryUserId = t.asString();
|
|
1483
1478
|
break;
|
|
1484
1479
|
}
|
|
1485
|
-
case
|
|
1480
|
+
case wn: {
|
|
1486
1481
|
if (t.isNull) throw new Error();
|
|
1487
|
-
r.AudioStreams =
|
|
1482
|
+
r.AudioStreams = kn(t.asDictionary());
|
|
1488
1483
|
break;
|
|
1489
1484
|
}
|
|
1490
|
-
case
|
|
1485
|
+
case Dn: {
|
|
1491
1486
|
if (t.isNull) throw new Error();
|
|
1492
|
-
r.VideoStreams =
|
|
1487
|
+
r.VideoStreams = pn(t.asDictionary());
|
|
1493
1488
|
break;
|
|
1494
1489
|
}
|
|
1495
|
-
case
|
|
1490
|
+
case yn: {
|
|
1496
1491
|
if (t.isNull) throw new Error();
|
|
1497
1492
|
r.ServerSessionId = t.asString();
|
|
1498
1493
|
break;
|
|
1499
1494
|
}
|
|
1500
|
-
case
|
|
1495
|
+
case Ln: {
|
|
1501
1496
|
if (t.isNull) throw new Error();
|
|
1502
1497
|
r.SpaceName = t.asString();
|
|
1503
1498
|
break;
|
|
1504
1499
|
}
|
|
1505
1500
|
}
|
|
1506
1501
|
}
|
|
1507
|
-
async function
|
|
1508
|
-
const t = await
|
|
1509
|
-
return
|
|
1502
|
+
async function Pn(e, r) {
|
|
1503
|
+
const t = await j(e, nn);
|
|
1504
|
+
return On(t, r);
|
|
1510
1505
|
}
|
|
1511
|
-
function
|
|
1506
|
+
function Fn(e) {
|
|
1512
1507
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1513
1508
|
let t;
|
|
1514
1509
|
for (; (t = e.next()) !== null; ) {
|
|
1515
1510
|
const s = t.key.asInt32();
|
|
1516
|
-
r[s] =
|
|
1511
|
+
r[s] = hr(t.value.asObject());
|
|
1517
1512
|
}
|
|
1518
1513
|
return r;
|
|
1519
1514
|
}
|
|
1520
|
-
function
|
|
1515
|
+
function bn(e) {
|
|
1521
1516
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1522
1517
|
let t;
|
|
1523
1518
|
for (; (t = e.next()) !== null; ) {
|
|
1524
1519
|
const s = t.key.asString();
|
|
1525
|
-
r[s] =
|
|
1520
|
+
r[s] = _o(t.value.asObject());
|
|
1526
1521
|
}
|
|
1527
1522
|
return r;
|
|
1528
1523
|
}
|
|
1529
|
-
function
|
|
1524
|
+
function Mn(e) {
|
|
1530
1525
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1531
1526
|
let t;
|
|
1532
1527
|
for (; (t = e.next()) !== null; ) {
|
|
1533
1528
|
const s = t.key.asInt32();
|
|
1534
|
-
r[s] =
|
|
1529
|
+
r[s] = Vn(t.value.asArray());
|
|
1535
1530
|
}
|
|
1536
1531
|
return r;
|
|
1537
1532
|
}
|
|
1538
|
-
function
|
|
1533
|
+
function vn(e) {
|
|
1539
1534
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1540
1535
|
let t;
|
|
1541
1536
|
for (; (t = e.next()) !== null; ) {
|
|
1542
1537
|
const s = t.key.asString();
|
|
1543
|
-
r[s] =
|
|
1538
|
+
r[s] = $n(t.value.asObject());
|
|
1544
1539
|
}
|
|
1545
1540
|
return r;
|
|
1546
1541
|
}
|
|
1547
|
-
function
|
|
1542
|
+
function kn(e) {
|
|
1548
1543
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1549
1544
|
let t;
|
|
1550
1545
|
for (; (t = e.next()) !== null; ) {
|
|
1551
1546
|
const s = t.key.asString();
|
|
1552
|
-
r[s] =
|
|
1547
|
+
r[s] = Qn(t.value.asObject());
|
|
1553
1548
|
}
|
|
1554
1549
|
return r;
|
|
1555
1550
|
}
|
|
1556
|
-
function
|
|
1551
|
+
function pn(e) {
|
|
1557
1552
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1558
1553
|
let t;
|
|
1559
1554
|
for (; (t = e.next()) !== null; ) {
|
|
1560
1555
|
const s = t.key.asString();
|
|
1561
|
-
r[s] =
|
|
1556
|
+
r[s] = no(t.value.asObject());
|
|
1562
1557
|
}
|
|
1563
1558
|
return r;
|
|
1564
1559
|
}
|
|
1565
|
-
function
|
|
1560
|
+
function Vn(e) {
|
|
1566
1561
|
const r = [];
|
|
1567
1562
|
let t;
|
|
1568
1563
|
for (; (t = e.next()) !== null; )
|
|
1569
|
-
r.push(
|
|
1564
|
+
r.push(Pr(t.asObject()));
|
|
1570
1565
|
return r;
|
|
1571
1566
|
}
|
|
1572
|
-
const
|
|
1573
|
-
function
|
|
1567
|
+
const Gn = 161083277, Bn = 325678206, xn = 3469892363, Hn = 3645544153;
|
|
1568
|
+
function Yn(e) {
|
|
1574
1569
|
const r = {};
|
|
1575
|
-
return
|
|
1570
|
+
return He(r), r;
|
|
1576
1571
|
}
|
|
1577
|
-
function
|
|
1572
|
+
function He(e) {
|
|
1578
1573
|
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Fe(), e;
|
|
1579
1574
|
}
|
|
1580
|
-
function
|
|
1581
|
-
const t = r ??
|
|
1582
|
-
return
|
|
1575
|
+
function $n(e, r) {
|
|
1576
|
+
const t = r ?? Yn();
|
|
1577
|
+
return He(t), Kn(e, t), t;
|
|
1583
1578
|
}
|
|
1584
|
-
function
|
|
1579
|
+
function Kn(e, r) {
|
|
1585
1580
|
let t;
|
|
1586
1581
|
for (; (t = e.next()) !== null; )
|
|
1587
1582
|
switch (t.fieldId) {
|
|
1588
|
-
case
|
|
1583
|
+
case Gn: {
|
|
1589
1584
|
if (t.isNull) throw new Error();
|
|
1590
1585
|
r.StreamId = t.asString();
|
|
1591
1586
|
break;
|
|
1592
1587
|
}
|
|
1593
|
-
case
|
|
1588
|
+
case Bn: {
|
|
1594
1589
|
if (t.isNull) throw new Error();
|
|
1595
1590
|
r.ClientSessionId = t.asInt32();
|
|
1596
1591
|
break;
|
|
1597
1592
|
}
|
|
1598
|
-
case
|
|
1593
|
+
case xn: {
|
|
1599
1594
|
if (t.isNull) throw new Error();
|
|
1600
1595
|
r.TrackId = t.asInt32();
|
|
1601
1596
|
break;
|
|
1602
1597
|
}
|
|
1603
|
-
case
|
|
1598
|
+
case Hn: {
|
|
1604
1599
|
if (t.isNull) throw new Error();
|
|
1605
|
-
r.Info =
|
|
1600
|
+
r.Info = os(t.asObject());
|
|
1606
1601
|
break;
|
|
1607
1602
|
}
|
|
1608
1603
|
}
|
|
1609
1604
|
}
|
|
1610
|
-
const jn = 161083277,
|
|
1611
|
-
function
|
|
1605
|
+
const jn = 161083277, Xn = 325678206, Wn = 3469892363, zn = 3645544153;
|
|
1606
|
+
function Jn(e) {
|
|
1612
1607
|
const r = {};
|
|
1613
1608
|
return Ye(r), r;
|
|
1614
1609
|
}
|
|
1615
1610
|
function Ye(e) {
|
|
1616
|
-
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info =
|
|
1611
|
+
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = we(), e;
|
|
1617
1612
|
}
|
|
1618
|
-
function
|
|
1619
|
-
const t = r ??
|
|
1620
|
-
return Ye(t),
|
|
1613
|
+
function Qn(e, r) {
|
|
1614
|
+
const t = r ?? Jn();
|
|
1615
|
+
return Ye(t), qn(e, t), t;
|
|
1621
1616
|
}
|
|
1622
|
-
function
|
|
1617
|
+
function qn(e, r) {
|
|
1623
1618
|
let t;
|
|
1624
1619
|
for (; (t = e.next()) !== null; )
|
|
1625
1620
|
switch (t.fieldId) {
|
|
@@ -1628,103 +1623,103 @@ function ei(e, r) {
|
|
|
1628
1623
|
r.StreamId = t.asString();
|
|
1629
1624
|
break;
|
|
1630
1625
|
}
|
|
1631
|
-
case
|
|
1626
|
+
case Xn: {
|
|
1632
1627
|
if (t.isNull) throw new Error();
|
|
1633
1628
|
r.ClientSessionId = t.asInt32();
|
|
1634
1629
|
break;
|
|
1635
1630
|
}
|
|
1636
|
-
case
|
|
1631
|
+
case Wn: {
|
|
1637
1632
|
if (t.isNull) throw new Error();
|
|
1638
1633
|
r.TrackId = t.asInt32();
|
|
1639
1634
|
break;
|
|
1640
1635
|
}
|
|
1641
|
-
case
|
|
1636
|
+
case zn: {
|
|
1642
1637
|
if (t.isNull) throw new Error();
|
|
1643
1638
|
r.Info = wt(t.asObject());
|
|
1644
1639
|
break;
|
|
1645
1640
|
}
|
|
1646
1641
|
}
|
|
1647
1642
|
}
|
|
1648
|
-
const
|
|
1649
|
-
function
|
|
1643
|
+
const Zn = 161083277, eo = 325678206, to = 3469892363, ro = 3645544153;
|
|
1644
|
+
function so(e) {
|
|
1650
1645
|
const r = {};
|
|
1651
|
-
return
|
|
1646
|
+
return $e(r), r;
|
|
1652
1647
|
}
|
|
1653
|
-
function
|
|
1654
|
-
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info =
|
|
1648
|
+
function $e(e) {
|
|
1649
|
+
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Ge(), e;
|
|
1655
1650
|
}
|
|
1656
|
-
function
|
|
1657
|
-
const t = r ??
|
|
1658
|
-
return
|
|
1651
|
+
function no(e, r) {
|
|
1652
|
+
const t = r ?? so();
|
|
1653
|
+
return $e(t), oo(e, t), t;
|
|
1659
1654
|
}
|
|
1660
|
-
function
|
|
1655
|
+
function oo(e, r) {
|
|
1661
1656
|
let t;
|
|
1662
1657
|
for (; (t = e.next()) !== null; )
|
|
1663
1658
|
switch (t.fieldId) {
|
|
1664
|
-
case
|
|
1659
|
+
case Zn: {
|
|
1665
1660
|
if (t.isNull) throw new Error();
|
|
1666
1661
|
r.StreamId = t.asString();
|
|
1667
1662
|
break;
|
|
1668
1663
|
}
|
|
1669
|
-
case
|
|
1664
|
+
case eo: {
|
|
1670
1665
|
if (t.isNull) throw new Error();
|
|
1671
1666
|
r.ClientSessionId = t.asInt32();
|
|
1672
1667
|
break;
|
|
1673
1668
|
}
|
|
1674
|
-
case
|
|
1669
|
+
case to: {
|
|
1675
1670
|
if (t.isNull) throw new Error();
|
|
1676
1671
|
r.TrackId = t.asInt32();
|
|
1677
1672
|
break;
|
|
1678
1673
|
}
|
|
1679
|
-
case
|
|
1674
|
+
case ro: {
|
|
1680
1675
|
if (t.isNull) throw new Error();
|
|
1681
|
-
r.Info =
|
|
1676
|
+
r.Info = rn(t.asObject());
|
|
1682
1677
|
break;
|
|
1683
1678
|
}
|
|
1684
1679
|
}
|
|
1685
1680
|
}
|
|
1686
|
-
const
|
|
1687
|
-
function
|
|
1681
|
+
const io = 161083277, ao = 325678206, lo = 3469892363, Eo = 3645544153;
|
|
1682
|
+
function Io(e) {
|
|
1688
1683
|
const r = {};
|
|
1689
|
-
return
|
|
1684
|
+
return Ke(r), r;
|
|
1690
1685
|
}
|
|
1691
|
-
function
|
|
1686
|
+
function Ke(e) {
|
|
1692
1687
|
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = me(), e;
|
|
1693
1688
|
}
|
|
1694
|
-
function
|
|
1695
|
-
const t = r ??
|
|
1696
|
-
return
|
|
1689
|
+
function _o(e, r) {
|
|
1690
|
+
const t = r ?? Io();
|
|
1691
|
+
return Ke(t), co(e, t), t;
|
|
1697
1692
|
}
|
|
1698
|
-
function
|
|
1693
|
+
function co(e, r) {
|
|
1699
1694
|
let t;
|
|
1700
1695
|
for (; (t = e.next()) !== null; )
|
|
1701
1696
|
switch (t.fieldId) {
|
|
1702
|
-
case
|
|
1697
|
+
case io: {
|
|
1703
1698
|
if (t.isNull) throw new Error();
|
|
1704
1699
|
r.StreamId = t.asString();
|
|
1705
1700
|
break;
|
|
1706
1701
|
}
|
|
1707
|
-
case
|
|
1702
|
+
case ao: {
|
|
1708
1703
|
if (t.isNull) throw new Error();
|
|
1709
1704
|
r.ClientSessionId = t.asInt32();
|
|
1710
1705
|
break;
|
|
1711
1706
|
}
|
|
1712
|
-
case
|
|
1707
|
+
case lo: {
|
|
1713
1708
|
if (t.isNull) throw new Error();
|
|
1714
1709
|
r.TrackId = t.asInt32();
|
|
1715
1710
|
break;
|
|
1716
1711
|
}
|
|
1717
|
-
case
|
|
1712
|
+
case Eo: {
|
|
1718
1713
|
if (t.isNull) throw new Error();
|
|
1719
|
-
r.Info =
|
|
1714
|
+
r.Info = Jr(t.asObject());
|
|
1720
1715
|
break;
|
|
1721
1716
|
}
|
|
1722
1717
|
}
|
|
1723
1718
|
}
|
|
1724
|
-
function
|
|
1719
|
+
function C(e) {
|
|
1725
1720
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
1726
1721
|
}
|
|
1727
|
-
function
|
|
1722
|
+
function je(e) {
|
|
1728
1723
|
const r = {}, t = Object.keys(e);
|
|
1729
1724
|
for (let s = 0; s < t.length; s++) {
|
|
1730
1725
|
const n = t[s];
|
|
@@ -1732,15 +1727,15 @@ function Xe(e) {
|
|
|
1732
1727
|
}
|
|
1733
1728
|
return r;
|
|
1734
1729
|
}
|
|
1735
|
-
function
|
|
1730
|
+
function Xe(e, r, t, s) {
|
|
1736
1731
|
if (!(e === void 0 && s)) {
|
|
1737
1732
|
if (Array.isArray(e)) {
|
|
1738
1733
|
const n = [];
|
|
1739
|
-
for (let
|
|
1740
|
-
const
|
|
1741
|
-
if (typeof
|
|
1742
|
-
throw new Error(`Invalid styleIds entry at ${r}.styleIds[${
|
|
1743
|
-
const a =
|
|
1734
|
+
for (let o = 0; o < e.length; o++) {
|
|
1735
|
+
const i = e[o];
|
|
1736
|
+
if (typeof i != "string")
|
|
1737
|
+
throw new Error(`Invalid styleIds entry at ${r}.styleIds[${o}] for element ${t}`);
|
|
1738
|
+
const a = i.trim();
|
|
1744
1739
|
a.length !== 0 && n.push(a);
|
|
1745
1740
|
}
|
|
1746
1741
|
return n;
|
|
@@ -1750,76 +1745,76 @@ function We(e, r, t, s) {
|
|
|
1750
1745
|
return [];
|
|
1751
1746
|
}
|
|
1752
1747
|
}
|
|
1753
|
-
function
|
|
1748
|
+
function ie(e, r) {
|
|
1754
1749
|
if (!e || typeof e != "object")
|
|
1755
1750
|
throw new Error(`Invalid UI node at ${r}`);
|
|
1756
|
-
const t = e.Id, s = e.Type, n = e.Props,
|
|
1751
|
+
const t = e.Id, s = e.Type, n = e.Props, o = e.Children, i = e.StyleIds;
|
|
1757
1752
|
if (typeof t != "string")
|
|
1758
1753
|
throw new Error(`Invalid or missing node id at ${r}`);
|
|
1759
1754
|
if (typeof s != "string")
|
|
1760
1755
|
throw new Error(`Invalid or missing node type for ${t}`);
|
|
1761
1756
|
let a = {};
|
|
1762
1757
|
if (n != null) {
|
|
1763
|
-
if (!
|
|
1758
|
+
if (!C(n))
|
|
1764
1759
|
throw new Error(`Invalid props for node ${t}`);
|
|
1765
|
-
a =
|
|
1760
|
+
a = je(n);
|
|
1766
1761
|
}
|
|
1767
|
-
let
|
|
1768
|
-
Array.isArray(
|
|
1769
|
-
(
|
|
1762
|
+
let E = [];
|
|
1763
|
+
Array.isArray(o) && (E = o.map(
|
|
1764
|
+
(_, c) => ie(_ ?? {}, `${r}.children[${c}]`)
|
|
1770
1765
|
));
|
|
1771
|
-
const
|
|
1766
|
+
const I = Xe(i, r, t, !1), l = typeof e.SourceMarker == "string" ? e.SourceMarker : void 0;
|
|
1772
1767
|
return {
|
|
1773
1768
|
id: t,
|
|
1774
1769
|
type: s,
|
|
1775
1770
|
props: a,
|
|
1776
|
-
children:
|
|
1777
|
-
styleIds:
|
|
1778
|
-
...
|
|
1771
|
+
children: E,
|
|
1772
|
+
styleIds: I ?? [],
|
|
1773
|
+
...l ? { sourceMarker: l } : {}
|
|
1779
1774
|
};
|
|
1780
1775
|
}
|
|
1781
|
-
function
|
|
1782
|
-
if (!
|
|
1776
|
+
function fo(e, r) {
|
|
1777
|
+
if (!C(e))
|
|
1783
1778
|
throw new Error(`Invalid text delta at ${r}`);
|
|
1784
|
-
const t = e.NodeId, s = e.PropertyName, n = e.Start,
|
|
1779
|
+
const t = e.NodeId, s = e.PropertyName, n = e.Start, o = e.End, i = e.InsertedText;
|
|
1785
1780
|
if (typeof t != "string" || t.length === 0)
|
|
1786
1781
|
throw new Error(`Invalid text delta node id at ${r}`);
|
|
1787
1782
|
if (typeof s != "string" || s.length === 0)
|
|
1788
1783
|
throw new Error(`Invalid text delta property name at ${r}`);
|
|
1789
1784
|
if (typeof n != "number" || !Number.isFinite(n))
|
|
1790
1785
|
throw new Error(`Invalid text delta start at ${r}`);
|
|
1791
|
-
if (typeof
|
|
1786
|
+
if (typeof i != "string")
|
|
1792
1787
|
throw new Error(`Invalid text delta inserted text at ${r}`);
|
|
1793
1788
|
let a;
|
|
1794
|
-
if (typeof
|
|
1795
|
-
if (!Number.isFinite(
|
|
1789
|
+
if (typeof o == "number") {
|
|
1790
|
+
if (!Number.isFinite(o))
|
|
1796
1791
|
throw new Error(`Invalid text delta end at ${r}`);
|
|
1797
|
-
a =
|
|
1798
|
-
} else if (
|
|
1792
|
+
a = o;
|
|
1793
|
+
} else if (o != null)
|
|
1799
1794
|
throw new Error(`Invalid text delta end at ${r}`);
|
|
1800
1795
|
return {
|
|
1801
1796
|
nodeId: t,
|
|
1802
1797
|
propertyName: s,
|
|
1803
1798
|
start: n,
|
|
1804
1799
|
end: a,
|
|
1805
|
-
insertedText:
|
|
1800
|
+
insertedText: i
|
|
1806
1801
|
};
|
|
1807
1802
|
}
|
|
1808
|
-
function
|
|
1809
|
-
if (!
|
|
1803
|
+
function uo(e, r) {
|
|
1804
|
+
if (!C(e))
|
|
1810
1805
|
throw new Error(`Invalid child insert at ${r}`);
|
|
1811
1806
|
const t = e.Index, s = e.Node;
|
|
1812
1807
|
if (typeof t != "number" || !Number.isFinite(t))
|
|
1813
1808
|
throw new Error(`Invalid child insert index at ${r}`);
|
|
1814
|
-
if (!
|
|
1809
|
+
if (!C(s))
|
|
1815
1810
|
throw new Error(`Invalid child insert node at ${r}`);
|
|
1816
1811
|
return {
|
|
1817
1812
|
index: t,
|
|
1818
|
-
node:
|
|
1813
|
+
node: ie(s, `${r}.node`)
|
|
1819
1814
|
};
|
|
1820
1815
|
}
|
|
1821
|
-
function
|
|
1822
|
-
if (!
|
|
1816
|
+
function ho(e, r) {
|
|
1817
|
+
if (!C(e))
|
|
1823
1818
|
throw new Error(`Invalid child move at ${r}`);
|
|
1824
1819
|
const t = e.NodeId, s = e.FromIndex, n = e.ToIndex;
|
|
1825
1820
|
if (typeof t != "string" || t.length === 0)
|
|
@@ -1834,8 +1829,8 @@ function Ni(e, r) {
|
|
|
1834
1829
|
toIndex: n
|
|
1835
1830
|
};
|
|
1836
1831
|
}
|
|
1837
|
-
function
|
|
1838
|
-
if (!
|
|
1832
|
+
function To(e, r) {
|
|
1833
|
+
if (!C(e))
|
|
1839
1834
|
throw new Error(`Invalid child remove at ${r}`);
|
|
1840
1835
|
const t = e.NodeId, s = e.Index;
|
|
1841
1836
|
if (typeof t != "string" || t.length === 0)
|
|
@@ -1847,55 +1842,55 @@ function Ai(e, r) {
|
|
|
1847
1842
|
index: s
|
|
1848
1843
|
};
|
|
1849
1844
|
}
|
|
1850
|
-
function
|
|
1851
|
-
if (!
|
|
1845
|
+
function Ao(e, r) {
|
|
1846
|
+
if (!C(e))
|
|
1852
1847
|
throw new Error(`Invalid node change at ${r}`);
|
|
1853
1848
|
const t = e.nodeId;
|
|
1854
1849
|
if (typeof t != "string" || t.length === 0)
|
|
1855
1850
|
throw new Error(`Invalid node change nodeId at ${r}`);
|
|
1856
1851
|
const s = Array.isArray(e.inserts) ? e.inserts.map(
|
|
1857
|
-
(
|
|
1852
|
+
(l, _) => uo(l ?? {}, `${r}.inserts[${_}]`)
|
|
1858
1853
|
) : void 0, n = Array.isArray(e.moves) ? e.moves.map(
|
|
1859
|
-
(
|
|
1860
|
-
) : void 0,
|
|
1861
|
-
(
|
|
1854
|
+
(l, _) => ho(l ?? {}, `${r}.moves[${_}]`)
|
|
1855
|
+
) : void 0, o = Array.isArray(e.removals) ? e.removals.map(
|
|
1856
|
+
(l, _) => To(l ?? {}, `${r}.removals[${_}]`)
|
|
1862
1857
|
) : void 0;
|
|
1863
|
-
let
|
|
1864
|
-
if (
|
|
1865
|
-
|
|
1866
|
-
for (const [
|
|
1867
|
-
if (!
|
|
1858
|
+
let i;
|
|
1859
|
+
if (C(e.changedProps)) {
|
|
1860
|
+
i = /* @__PURE__ */ new Map();
|
|
1861
|
+
for (const [l, _] of Object.entries(e.changedProps)) {
|
|
1862
|
+
if (!C(_))
|
|
1868
1863
|
continue;
|
|
1869
|
-
const c =
|
|
1870
|
-
c == null ?
|
|
1864
|
+
const c = _.New;
|
|
1865
|
+
c == null ? i.set(l, void 0) : C(c) ? i.set(l, je(c)) : i.set(l, c);
|
|
1871
1866
|
}
|
|
1872
1867
|
}
|
|
1873
1868
|
const a = Array.isArray(e.textUpdates) ? e.textUpdates.map(
|
|
1874
|
-
(
|
|
1875
|
-
) : void 0,
|
|
1869
|
+
(l, _) => fo(l ?? {}, `${r}.textUpdates[${_}]`)
|
|
1870
|
+
) : void 0, E = e.styleIds, I = E !== void 0 ? Xe(E, r, t, !0) : void 0;
|
|
1876
1871
|
return {
|
|
1877
1872
|
nodeId: t,
|
|
1878
1873
|
...s && s.length > 0 ? { inserts: s } : {},
|
|
1879
1874
|
...n && n.length > 0 ? { moves: n } : {},
|
|
1880
|
-
...
|
|
1881
|
-
...
|
|
1875
|
+
...o && o.length > 0 ? { removals: o } : {},
|
|
1876
|
+
...i && i.size > 0 ? { changedProps: i } : {},
|
|
1882
1877
|
...a && a.length > 0 ? { textUpdates: a } : {},
|
|
1883
|
-
...
|
|
1878
|
+
...I !== void 0 ? { styleIds: I } : {}
|
|
1884
1879
|
};
|
|
1885
1880
|
}
|
|
1886
|
-
function
|
|
1881
|
+
function So(e) {
|
|
1887
1882
|
const r = /* @__PURE__ */ new Map();
|
|
1888
1883
|
for (const [t, s] of Object.entries(e))
|
|
1889
1884
|
r.set(t, s);
|
|
1890
1885
|
return r;
|
|
1891
1886
|
}
|
|
1892
|
-
function
|
|
1887
|
+
function No(e, r, t) {
|
|
1893
1888
|
if (!e || typeof e != "object")
|
|
1894
|
-
throw new
|
|
1895
|
-
const s =
|
|
1889
|
+
throw new w("UI update graph is missing");
|
|
1890
|
+
const s = ie(e, "graph");
|
|
1896
1891
|
if (s.type !== "root")
|
|
1897
|
-
throw new
|
|
1898
|
-
const n =
|
|
1892
|
+
throw new w('UI update root element must have type "root"');
|
|
1893
|
+
const n = Ro(s.props, r);
|
|
1899
1894
|
return {
|
|
1900
1895
|
type: "full",
|
|
1901
1896
|
version: t,
|
|
@@ -1903,92 +1898,92 @@ function Ri(e, r, t) {
|
|
|
1903
1898
|
metadata: n
|
|
1904
1899
|
};
|
|
1905
1900
|
}
|
|
1906
|
-
function
|
|
1901
|
+
function Co(e, r, t) {
|
|
1907
1902
|
if (!Array.isArray(e))
|
|
1908
|
-
throw new
|
|
1909
|
-
if (!
|
|
1910
|
-
throw new
|
|
1903
|
+
throw new w("UI diff changes must be an array");
|
|
1904
|
+
if (!C(r))
|
|
1905
|
+
throw new w("UI diff metadata must be an object");
|
|
1911
1906
|
const s = r.viewId;
|
|
1912
1907
|
if (typeof s != "string" || s.length === 0)
|
|
1913
|
-
throw new
|
|
1908
|
+
throw new w("UI diff metadata is missing viewId");
|
|
1914
1909
|
const n = e.map(
|
|
1915
|
-
(a,
|
|
1916
|
-
),
|
|
1910
|
+
(a, E) => Ao(a ?? {}, `changes[${E}]`)
|
|
1911
|
+
), o = typeof r.isUpdate == "boolean" ? r.isUpdate : void 0, i = {
|
|
1917
1912
|
viewId: s,
|
|
1918
|
-
...
|
|
1913
|
+
...o !== void 0 ? { isUpdate: o } : {}
|
|
1919
1914
|
};
|
|
1920
1915
|
return {
|
|
1921
1916
|
type: "diff",
|
|
1922
1917
|
version: t,
|
|
1923
1918
|
changes: n,
|
|
1924
|
-
metadata:
|
|
1919
|
+
metadata: i
|
|
1925
1920
|
};
|
|
1926
1921
|
}
|
|
1927
|
-
function
|
|
1922
|
+
function Ro(e, r) {
|
|
1928
1923
|
const t = e.viewId;
|
|
1929
1924
|
if (typeof t != "string" || t.length === 0)
|
|
1930
|
-
throw new
|
|
1925
|
+
throw new w("UI update root is missing viewId");
|
|
1931
1926
|
let s = t, n = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0;
|
|
1932
|
-
return
|
|
1927
|
+
return C(r) && (typeof r.viewId == "string" && r.viewId.length > 0 && (s = r.viewId), typeof r.isUpdate == "boolean" && (n = r.isUpdate)), {
|
|
1933
1928
|
viewId: s,
|
|
1934
1929
|
...n !== void 0 ? { isUpdate: n } : {}
|
|
1935
1930
|
};
|
|
1936
1931
|
}
|
|
1937
|
-
class
|
|
1932
|
+
class w extends Error {
|
|
1938
1933
|
constructor(r, t) {
|
|
1939
1934
|
super(r), this.causeError = t, this.name = "UiUpdateParseError", t instanceof Error && (this.stack = t.stack);
|
|
1940
1935
|
}
|
|
1941
1936
|
}
|
|
1942
|
-
function
|
|
1937
|
+
function We(e) {
|
|
1943
1938
|
let r;
|
|
1944
1939
|
try {
|
|
1945
1940
|
r = JSON.parse(e.Json);
|
|
1946
|
-
} catch (
|
|
1947
|
-
throw new
|
|
1941
|
+
} catch (i) {
|
|
1942
|
+
throw new w("Failed to parse UIUpdate.Json payload", i);
|
|
1948
1943
|
}
|
|
1949
1944
|
if (!r || typeof r != "object")
|
|
1950
|
-
throw new
|
|
1945
|
+
throw new w("UI update snapshot must be an object");
|
|
1951
1946
|
const { type: t, version: s } = r;
|
|
1952
1947
|
if (t !== "full" && t !== "diff")
|
|
1953
|
-
throw new
|
|
1948
|
+
throw new w(`Unknown UI update type: ${String(t)}`);
|
|
1954
1949
|
if (typeof s != "number")
|
|
1955
|
-
throw new
|
|
1956
|
-
const n = t === "full" ?
|
|
1950
|
+
throw new w("UI update version must be a number");
|
|
1951
|
+
const n = t === "full" ? No(r.graph, r.metadata, s) : Co(r.changes, r.metadata, s), o = e.Payloads ? So(e.Payloads) : /* @__PURE__ */ new Map();
|
|
1957
1952
|
return {
|
|
1958
1953
|
snapshot: n,
|
|
1959
|
-
payloads:
|
|
1954
|
+
payloads: o
|
|
1960
1955
|
};
|
|
1961
1956
|
}
|
|
1962
|
-
let
|
|
1963
|
-
const
|
|
1957
|
+
let wo = 1;
|
|
1958
|
+
const Do = /* @__PURE__ */ new Map(), yo = {
|
|
1964
1959
|
0: "DEBUG",
|
|
1965
1960
|
1: "INFO",
|
|
1966
1961
|
2: "WARN",
|
|
1967
1962
|
3: "ERROR",
|
|
1968
1963
|
4: "NONE"
|
|
1969
1964
|
};
|
|
1970
|
-
function
|
|
1965
|
+
function Lo(e, r) {
|
|
1971
1966
|
return `[${e}] ${r}`;
|
|
1972
1967
|
}
|
|
1973
|
-
function
|
|
1974
|
-
const n = (/* @__PURE__ */ new Date()).toISOString(),
|
|
1968
|
+
function W(e, r, t, s) {
|
|
1969
|
+
const n = (/* @__PURE__ */ new Date()).toISOString(), o = yo[e], i = {
|
|
1975
1970
|
timestamp: n,
|
|
1976
1971
|
level: e,
|
|
1977
|
-
levelName:
|
|
1972
|
+
levelName: o,
|
|
1978
1973
|
component: r,
|
|
1979
1974
|
message: t,
|
|
1980
1975
|
args: s
|
|
1981
1976
|
};
|
|
1982
|
-
for (const [a,
|
|
1983
|
-
const
|
|
1984
|
-
if (e >=
|
|
1977
|
+
for (const [a, E] of Do) {
|
|
1978
|
+
const I = E?.minLevel ?? 2;
|
|
1979
|
+
if (e >= I)
|
|
1985
1980
|
try {
|
|
1986
|
-
a(
|
|
1981
|
+
a(i);
|
|
1987
1982
|
} catch {
|
|
1988
1983
|
}
|
|
1989
1984
|
}
|
|
1990
|
-
if (
|
|
1991
|
-
const a =
|
|
1985
|
+
if (wo <= e) {
|
|
1986
|
+
const a = Lo(r, t);
|
|
1992
1987
|
switch (e) {
|
|
1993
1988
|
case 0:
|
|
1994
1989
|
console.debug(a, ...s);
|
|
@@ -2005,23 +2000,23 @@ function j(e, r, t, s) {
|
|
|
2005
2000
|
}
|
|
2006
2001
|
}
|
|
2007
2002
|
}
|
|
2008
|
-
function
|
|
2003
|
+
function Uo(e) {
|
|
2009
2004
|
return {
|
|
2010
2005
|
debug(r, ...t) {
|
|
2011
|
-
|
|
2006
|
+
W(0, e, r, t);
|
|
2012
2007
|
},
|
|
2013
2008
|
info(r, ...t) {
|
|
2014
|
-
|
|
2009
|
+
W(1, e, r, t);
|
|
2015
2010
|
},
|
|
2016
2011
|
warn(r, ...t) {
|
|
2017
|
-
|
|
2012
|
+
W(2, e, r, t);
|
|
2018
2013
|
},
|
|
2019
2014
|
error(r, ...t) {
|
|
2020
|
-
|
|
2015
|
+
W(3, e, r, t);
|
|
2021
2016
|
}
|
|
2022
2017
|
};
|
|
2023
2018
|
}
|
|
2024
|
-
class
|
|
2019
|
+
class Oo {
|
|
2025
2020
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2026
2021
|
cache = /* @__PURE__ */ new Map();
|
|
2027
2022
|
/**
|
|
@@ -2030,8 +2025,8 @@ class mi {
|
|
|
2030
2025
|
*/
|
|
2031
2026
|
getHandler(r, t, s) {
|
|
2032
2027
|
const n = `${r}:${t}`;
|
|
2033
|
-
let
|
|
2034
|
-
return
|
|
2028
|
+
let o = this.cache.get(n);
|
|
2029
|
+
return o || (o = () => s(t), this.cache.set(n, o)), o;
|
|
2035
2030
|
}
|
|
2036
2031
|
/**
|
|
2037
2032
|
* Get a cached handler that accepts a payload.
|
|
@@ -2039,8 +2034,8 @@ class mi {
|
|
|
2039
2034
|
*/
|
|
2040
2035
|
getHandlerWithPayload(r, t, s) {
|
|
2041
2036
|
const n = `${r}:${t}:payload`;
|
|
2042
|
-
let
|
|
2043
|
-
return
|
|
2037
|
+
let o = this.cache.get(n);
|
|
2038
|
+
return o || (o = (i) => s(t, i), this.cache.set(n, o)), o;
|
|
2044
2039
|
}
|
|
2045
2040
|
/**
|
|
2046
2041
|
* Get a cached handler for boolean payloads.
|
|
@@ -2071,8 +2066,8 @@ class mi {
|
|
|
2071
2066
|
*/
|
|
2072
2067
|
getNullableBooleanHandler(r, t, s) {
|
|
2073
2068
|
const n = `${r}:${t}:nullable-bool`;
|
|
2074
|
-
let
|
|
2075
|
-
return
|
|
2069
|
+
let o = this.cache.get(n);
|
|
2070
|
+
return o || (o = (i) => s(t, i ?? null), this.cache.set(n, o)), o;
|
|
2076
2071
|
}
|
|
2077
2072
|
/**
|
|
2078
2073
|
* Invalidate all cached handlers for a specific node.
|
|
@@ -2102,8 +2097,8 @@ class mi {
|
|
|
2102
2097
|
return this.cache.size;
|
|
2103
2098
|
}
|
|
2104
2099
|
}
|
|
2105
|
-
const
|
|
2106
|
-
class
|
|
2100
|
+
const mo = Uo("UiStreamStore");
|
|
2101
|
+
class go {
|
|
2107
2102
|
views = /* @__PURE__ */ new Map();
|
|
2108
2103
|
listeners = /* @__PURE__ */ new Set();
|
|
2109
2104
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -2128,7 +2123,7 @@ class gi {
|
|
|
2128
2123
|
viewsDirty = !0;
|
|
2129
2124
|
payloadsDirty = !0;
|
|
2130
2125
|
// Handler cache for stable event handlers
|
|
2131
|
-
handlerCache = new
|
|
2126
|
+
handlerCache = new Oo();
|
|
2132
2127
|
// id -> node lookup index for O(1) getNode. Rebuilt lazily from the committed snapshot's view
|
|
2133
2128
|
// trees. Node trees are immutable (a change replaces every node on the changed path with a new
|
|
2134
2129
|
// object and yields a new views Map), so the index is valid exactly while it points at the same
|
|
@@ -2146,32 +2141,32 @@ class gi {
|
|
|
2146
2141
|
version: -1
|
|
2147
2142
|
};
|
|
2148
2143
|
}
|
|
2149
|
-
const { snapshot: t, payloads: s } = r, { metadata: n } = t, { viewId:
|
|
2150
|
-
let
|
|
2151
|
-
|
|
2144
|
+
const { snapshot: t, payloads: s } = r, { metadata: n } = t, { viewId: o } = n;
|
|
2145
|
+
let i = this.views.get(o);
|
|
2146
|
+
i || (i = {
|
|
2152
2147
|
version: 0
|
|
2153
|
-
}, this.views.set(
|
|
2148
|
+
}, this.views.set(o, i));
|
|
2154
2149
|
const a = t.type === "diff" && n.isUpdate === !0;
|
|
2155
|
-
if (t.version <
|
|
2150
|
+
if (t.version < i.version)
|
|
2156
2151
|
return this.resyncNeeded = !0, !1;
|
|
2157
|
-
if (t.type === "diff" && t.version >
|
|
2152
|
+
if (t.type === "diff" && t.version > i.version + 1)
|
|
2158
2153
|
return this.resyncNeeded = !0, !1;
|
|
2159
|
-
if (t.version ===
|
|
2154
|
+
if (t.version === i.version && !a)
|
|
2160
2155
|
return !1;
|
|
2161
|
-
let
|
|
2162
|
-
this.rootViewId || (this.rootViewId =
|
|
2163
|
-
const
|
|
2156
|
+
let E = !1;
|
|
2157
|
+
this.rootViewId || (this.rootViewId = o, E = !0, this.structureChanged = !0);
|
|
2158
|
+
const I = i.root;
|
|
2164
2159
|
if (t.type === "full")
|
|
2165
|
-
|
|
2160
|
+
i.root = t.root, i.version = t.version, E = !0, this.viewsDirty = !0, this.structureChanged = !0, t.root && B(t.root, this.changedNodeIds);
|
|
2166
2161
|
else {
|
|
2167
|
-
if (!
|
|
2162
|
+
if (!I)
|
|
2168
2163
|
return this.resyncNeeded = !0, !1;
|
|
2169
|
-
const
|
|
2170
|
-
|
|
2164
|
+
const l = Fo(I, t.changes);
|
|
2165
|
+
l !== I ? (i.root = l, E = !0, this.viewsDirty = !0, q(I, l, this.changedNodeIds)) : i.root = l, i.version = t.version;
|
|
2171
2166
|
}
|
|
2172
|
-
for (const [
|
|
2173
|
-
this.payloads.get(
|
|
2174
|
-
return
|
|
2167
|
+
for (const [l, _] of s)
|
|
2168
|
+
this.payloads.get(l) !== _ && (this.payloads.set(l, _), E = !0, this.payloadsDirty = !0);
|
|
2169
|
+
return E ? (this.commitSnapshot(), this.notify(), !0) : (i.version = t.version, !1);
|
|
2175
2170
|
}
|
|
2176
2171
|
// Ignore further diffs (keeping the current tree visible) until the next full snapshot arrives,
|
|
2177
2172
|
// which then replaces the tree wholesale. Used on soft reconnect: the cached tree may be missing
|
|
@@ -2199,45 +2194,45 @@ class gi {
|
|
|
2199
2194
|
const t = r.expectedBaseVersion;
|
|
2200
2195
|
if (t !== void 0 && this.snapshot.version !== t)
|
|
2201
2196
|
return !1;
|
|
2202
|
-
let s = !1, n = null,
|
|
2203
|
-
const
|
|
2197
|
+
let s = !1, n = null, o = null;
|
|
2198
|
+
const i = () => (n || (n = new Map(this.snapshot.views)), n), a = () => (o || (o = new Map(this.snapshot.payloads)), o);
|
|
2204
2199
|
if (r.deleteViews && r.deleteViews.length > 0)
|
|
2205
|
-
for (const
|
|
2206
|
-
|
|
2200
|
+
for (const l of r.deleteViews)
|
|
2201
|
+
i().delete(l) && (s = !0, this.structureChanged = !0);
|
|
2207
2202
|
if (r.upsertViews && r.upsertViews.length > 0)
|
|
2208
|
-
for (const [
|
|
2209
|
-
const c =
|
|
2210
|
-
L !==
|
|
2203
|
+
for (const [l, _] of r.upsertViews) {
|
|
2204
|
+
const c = i(), L = c.get(l);
|
|
2205
|
+
L !== _ && (c.set(l, _), s = !0, L ? q(L, _, this.changedNodeIds) : (B(_, this.changedNodeIds), this.structureChanged = !0));
|
|
2211
2206
|
}
|
|
2212
2207
|
if (r.deletePayloads && r.deletePayloads.length > 0)
|
|
2213
|
-
for (const
|
|
2214
|
-
a().delete(
|
|
2208
|
+
for (const l of r.deletePayloads)
|
|
2209
|
+
a().delete(l) && (s = !0);
|
|
2215
2210
|
if (r.upsertPayloads && r.upsertPayloads.length > 0)
|
|
2216
|
-
for (const [
|
|
2211
|
+
for (const [l, _] of r.upsertPayloads) {
|
|
2217
2212
|
const c = a();
|
|
2218
|
-
c.get(
|
|
2219
|
-
}
|
|
2220
|
-
const
|
|
2221
|
-
|
|
2222
|
-
const
|
|
2223
|
-
if (
|
|
2224
|
-
return this.snapshot = { ...this.snapshot, version:
|
|
2225
|
-
for (const
|
|
2226
|
-
this.nodeVersions.set(
|
|
2213
|
+
c.get(l) !== _ && (c.set(l, _), s = !0);
|
|
2214
|
+
}
|
|
2215
|
+
const E = r.rootViewId ?? this.snapshot.rootViewId;
|
|
2216
|
+
E !== this.snapshot.rootViewId && (s = !0, this.structureChanged = !0);
|
|
2217
|
+
const I = r.nextVersion;
|
|
2218
|
+
if (I !== this.snapshot.version && (s = !0), !s)
|
|
2219
|
+
return this.snapshot = { ...this.snapshot, version: I }, !1;
|
|
2220
|
+
for (const l of this.changedNodeIds)
|
|
2221
|
+
this.nodeVersions.set(l, (this.nodeVersions.get(l) ?? 0) + 1);
|
|
2227
2222
|
return this.snapshot = {
|
|
2228
|
-
rootViewId:
|
|
2223
|
+
rootViewId: E,
|
|
2229
2224
|
views: n ?? new Map(this.snapshot.views),
|
|
2230
|
-
payloads:
|
|
2231
|
-
version:
|
|
2225
|
+
payloads: o ?? new Map(this.snapshot.payloads),
|
|
2226
|
+
version: I
|
|
2232
2227
|
}, this.notify(), !0;
|
|
2233
2228
|
}
|
|
2234
2229
|
replaceSnapshot(r) {
|
|
2235
2230
|
this.snapshotMode = !0;
|
|
2236
2231
|
const t = this.snapshot, s = t.version !== r.version || t.rootViewId !== r.rootViewId || t.views.size !== r.views.size || t.payloads.size !== r.payloads.size;
|
|
2237
2232
|
(t.rootViewId !== r.rootViewId || t.views.size !== r.views.size) && (this.structureChanged = !0);
|
|
2238
|
-
for (const [n,
|
|
2239
|
-
const
|
|
2240
|
-
|
|
2233
|
+
for (const [n, o] of r.views) {
|
|
2234
|
+
const i = t.views.get(n);
|
|
2235
|
+
i ? q(i, o, this.changedNodeIds) : (B(o, this.changedNodeIds), this.structureChanged = !0);
|
|
2241
2236
|
}
|
|
2242
2237
|
for (const n of this.changedNodeIds)
|
|
2243
2238
|
this.nodeVersions.set(n, (this.nodeVersions.get(n) ?? 0) + 1);
|
|
@@ -2296,8 +2291,8 @@ class gi {
|
|
|
2296
2291
|
let r, t;
|
|
2297
2292
|
if (this.viewsDirty) {
|
|
2298
2293
|
const n = /* @__PURE__ */ new Map();
|
|
2299
|
-
for (const [
|
|
2300
|
-
|
|
2294
|
+
for (const [o, i] of this.views)
|
|
2295
|
+
i.root && n.set(o, i.root);
|
|
2301
2296
|
r = n, this.viewsDirty = !1;
|
|
2302
2297
|
} else
|
|
2303
2298
|
r = this.snapshot.views;
|
|
@@ -2323,7 +2318,7 @@ class gi {
|
|
|
2323
2318
|
}
|
|
2324
2319
|
}
|
|
2325
2320
|
}
|
|
2326
|
-
class
|
|
2321
|
+
class Po {
|
|
2327
2322
|
streams = /* @__PURE__ */ new Map();
|
|
2328
2323
|
listeners = /* @__PURE__ */ new Set();
|
|
2329
2324
|
apply(r, t) {
|
|
@@ -2398,14 +2393,14 @@ class Fi {
|
|
|
2398
2393
|
}
|
|
2399
2394
|
getOrCreateStreamEntry(r) {
|
|
2400
2395
|
let t = this.streams.get(r);
|
|
2401
|
-
return t || (t = { store: new
|
|
2396
|
+
return t || (t = { store: new go() }, this.streams.set(r, t)), t;
|
|
2402
2397
|
}
|
|
2403
2398
|
notify(r) {
|
|
2404
2399
|
for (const t of this.listeners)
|
|
2405
2400
|
t(r);
|
|
2406
2401
|
}
|
|
2407
2402
|
}
|
|
2408
|
-
function
|
|
2403
|
+
function Fo(e, r, t) {
|
|
2409
2404
|
if (r.length === 0)
|
|
2410
2405
|
return e;
|
|
2411
2406
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -2415,84 +2410,84 @@ function bi(e, r, t) {
|
|
|
2415
2410
|
}
|
|
2416
2411
|
function ze(e, r, t) {
|
|
2417
2412
|
const s = r.get(e.id);
|
|
2418
|
-
let n = e,
|
|
2413
|
+
let n = e, o = !1;
|
|
2419
2414
|
if (s?.textUpdates && s.textUpdates.length > 0) {
|
|
2420
|
-
const f =
|
|
2421
|
-
n = f.node,
|
|
2415
|
+
const f = ko(e, s.textUpdates);
|
|
2416
|
+
n = f.node, o = f.changed;
|
|
2422
2417
|
}
|
|
2423
|
-
let
|
|
2418
|
+
let i = !1, a = n.props;
|
|
2424
2419
|
if (s?.changedProps && s.changedProps.size > 0)
|
|
2425
|
-
for (const [f,
|
|
2426
|
-
const
|
|
2427
|
-
if (
|
|
2428
|
-
(
|
|
2429
|
-
else if (ee(
|
|
2430
|
-
const u =
|
|
2431
|
-
|
|
2420
|
+
for (const [f, d] of s.changedProps.entries()) {
|
|
2421
|
+
const R = a[f];
|
|
2422
|
+
if (d === void 0)
|
|
2423
|
+
(R !== void 0 || f in a) && (i || (a = G(a), i = !0), delete a[f]);
|
|
2424
|
+
else if (ee(d)) {
|
|
2425
|
+
const u = G(d);
|
|
2426
|
+
p(u, R) || (i || (a = G(a), i = !0), a[f] = u);
|
|
2432
2427
|
} else
|
|
2433
|
-
|
|
2428
|
+
p(d, R) || (i || (a = G(a), i = !0), a[f] = d);
|
|
2434
2429
|
}
|
|
2435
|
-
let
|
|
2436
|
-
s?.styleIds !== void 0 && (qe(n.styleIds, s.styleIds) || (
|
|
2437
|
-
const
|
|
2438
|
-
let
|
|
2430
|
+
let E = !1, I = n.styleIds;
|
|
2431
|
+
s?.styleIds !== void 0 && (qe(n.styleIds, s.styleIds) || (I = s.styleIds, E = !0));
|
|
2432
|
+
const l = n.children ?? [];
|
|
2433
|
+
let _ = l, c = !1;
|
|
2439
2434
|
if (s?.removals && s.removals.length > 0 || s?.moves && s.moves.length > 0 || s?.inserts && s.inserts.length > 0) {
|
|
2440
|
-
const f =
|
|
2435
|
+
const f = _.slice();
|
|
2441
2436
|
if (s?.removals && s.removals.length > 0) {
|
|
2442
|
-
const u = [...s.removals].sort((
|
|
2443
|
-
for (const
|
|
2444
|
-
if (
|
|
2445
|
-
f.splice(
|
|
2437
|
+
const u = [...s.removals].sort((h, F) => F.index - h.index);
|
|
2438
|
+
for (const h of u)
|
|
2439
|
+
if (h.index >= 0 && h.index < f.length && f[h.index].id === h.nodeId)
|
|
2440
|
+
f.splice(h.index, 1);
|
|
2446
2441
|
else {
|
|
2447
|
-
const
|
|
2448
|
-
|
|
2442
|
+
const F = f.findIndex((st) => st.id === h.nodeId);
|
|
2443
|
+
F >= 0 && f.splice(F, 1);
|
|
2449
2444
|
}
|
|
2450
2445
|
c = !0;
|
|
2451
2446
|
}
|
|
2452
|
-
const
|
|
2447
|
+
const d = /* @__PURE__ */ new Map();
|
|
2453
2448
|
if (s?.moves && s.moves.length > 0) {
|
|
2454
2449
|
for (const u of s.moves) {
|
|
2455
|
-
const
|
|
2456
|
-
|
|
2450
|
+
const h = f.findIndex((F) => F.id === u.nodeId);
|
|
2451
|
+
h >= 0 && (d.set(u.nodeId, f[h]), f.splice(h, 1));
|
|
2457
2452
|
}
|
|
2458
2453
|
c = !0;
|
|
2459
2454
|
}
|
|
2460
|
-
const
|
|
2455
|
+
const R = [];
|
|
2461
2456
|
if (s?.moves)
|
|
2462
2457
|
for (const u of s.moves) {
|
|
2463
|
-
const
|
|
2464
|
-
|
|
2458
|
+
const h = d.get(u.nodeId);
|
|
2459
|
+
h && R.push({ index: u.toIndex, node: h, isInsert: !1 });
|
|
2465
2460
|
}
|
|
2466
2461
|
if (s?.inserts) {
|
|
2467
2462
|
for (const u of s.inserts)
|
|
2468
|
-
(f.some((
|
|
2463
|
+
(f.some((h) => h.id === u.node.id) || d.has(u.node.id)) && mo.warn(`Duplicate node id '${u.node.id}' (type '${u.node.type}') inserted next to an existing sibling — UI tree diverged from the server`), R.push({ index: u.index, node: u.node, isInsert: !0 });
|
|
2469
2464
|
c = !0;
|
|
2470
2465
|
}
|
|
2471
|
-
|
|
2472
|
-
for (const u of
|
|
2473
|
-
const
|
|
2474
|
-
f.splice(
|
|
2466
|
+
R.sort((u, h) => u.index - h.index);
|
|
2467
|
+
for (const u of R) {
|
|
2468
|
+
const h = Math.min(u.index, f.length);
|
|
2469
|
+
f.splice(h, 0, u.node), u.isInsert;
|
|
2475
2470
|
}
|
|
2476
|
-
|
|
2471
|
+
_ = f;
|
|
2477
2472
|
}
|
|
2478
|
-
let
|
|
2479
|
-
for (let f = 0; f <
|
|
2480
|
-
const
|
|
2481
|
-
|
|
2473
|
+
let D;
|
|
2474
|
+
for (let f = 0; f < _.length; f++) {
|
|
2475
|
+
const d = _[f], R = ze(d, r, t);
|
|
2476
|
+
R !== d && (D || (D = _.slice()), D[f] = R);
|
|
2482
2477
|
}
|
|
2483
|
-
return
|
|
2478
|
+
return D && (_ = D, c = !0), o || i || E || c ? !i && !c && !E ? n : {
|
|
2484
2479
|
id: e.id,
|
|
2485
2480
|
type: e.type,
|
|
2486
|
-
props:
|
|
2487
|
-
children: c ?
|
|
2488
|
-
styleIds:
|
|
2481
|
+
props: i ? a : n.props,
|
|
2482
|
+
children: c ? _ : l,
|
|
2483
|
+
styleIds: E ? I : n.styleIds,
|
|
2489
2484
|
...e.sourceMarker ? { sourceMarker: e.sourceMarker } : {}
|
|
2490
2485
|
} : e;
|
|
2491
2486
|
}
|
|
2492
|
-
function
|
|
2487
|
+
function B(e, r) {
|
|
2493
2488
|
if (r.add(e.id), e.children)
|
|
2494
2489
|
for (const t of e.children)
|
|
2495
|
-
|
|
2490
|
+
B(t, r);
|
|
2496
2491
|
}
|
|
2497
2492
|
function Je(e, r) {
|
|
2498
2493
|
if (r.set(e.id, e), e.children)
|
|
@@ -2500,7 +2495,7 @@ function Je(e, r) {
|
|
|
2500
2495
|
Je(t, r);
|
|
2501
2496
|
}
|
|
2502
2497
|
const z = [];
|
|
2503
|
-
function
|
|
2498
|
+
function bo(e) {
|
|
2504
2499
|
for (; z.length <= e; )
|
|
2505
2500
|
z.push(/* @__PURE__ */ new Map());
|
|
2506
2501
|
return z[e].clear(), z[e];
|
|
@@ -2511,101 +2506,101 @@ function q(e, r, t) {
|
|
|
2511
2506
|
function Qe(e, r, t, s) {
|
|
2512
2507
|
if (e === r)
|
|
2513
2508
|
return;
|
|
2514
|
-
(e.type !== r.type || !
|
|
2515
|
-
const
|
|
2516
|
-
if (
|
|
2517
|
-
const a =
|
|
2518
|
-
for (const
|
|
2519
|
-
a.set(
|
|
2520
|
-
let
|
|
2521
|
-
for (let
|
|
2522
|
-
const
|
|
2523
|
-
|
|
2509
|
+
(e.type !== r.type || !Mo(e.props, r.props) || !qe(e.styleIds, r.styleIds)) && t.add(r.id);
|
|
2510
|
+
const o = e.children ?? [], i = r.children ?? [];
|
|
2511
|
+
if (o !== i) {
|
|
2512
|
+
const a = bo(s);
|
|
2513
|
+
for (const I of o)
|
|
2514
|
+
a.set(I.id, I);
|
|
2515
|
+
let E = !1;
|
|
2516
|
+
for (let I = 0; I < i.length; I++) {
|
|
2517
|
+
const l = i[I], _ = a.get(l.id);
|
|
2518
|
+
_ ? (Qe(_, l, t, s + 1), !E && I < o.length && o[I].id !== l.id && (E = !0)) : (B(l, t), E = !0);
|
|
2524
2519
|
}
|
|
2525
|
-
(
|
|
2520
|
+
(o.length !== i.length || E) && t.add(r.id);
|
|
2526
2521
|
}
|
|
2527
2522
|
}
|
|
2528
|
-
function
|
|
2529
|
-
return
|
|
2523
|
+
function Mo(e, r) {
|
|
2524
|
+
return p(e, r);
|
|
2530
2525
|
}
|
|
2531
2526
|
function qe(e, r) {
|
|
2532
|
-
return
|
|
2527
|
+
return p(e, r);
|
|
2533
2528
|
}
|
|
2534
|
-
function
|
|
2529
|
+
function vo(e, r) {
|
|
2535
2530
|
if (r.length === 0)
|
|
2536
2531
|
return e;
|
|
2537
|
-
const t = [...r].sort((
|
|
2532
|
+
const t = [...r].sort((o, i) => o.start - i.start);
|
|
2538
2533
|
let s = e, n = 0;
|
|
2539
|
-
for (const
|
|
2540
|
-
const
|
|
2541
|
-
if (
|
|
2542
|
-
const
|
|
2543
|
-
s = s.slice(0,
|
|
2534
|
+
for (const o of t) {
|
|
2535
|
+
const i = le(o.start + n, 0, s.length);
|
|
2536
|
+
if (o.end == null) {
|
|
2537
|
+
const l = s.slice(i), _ = po(l, o.insertedText);
|
|
2538
|
+
s = s.slice(0, i) + o.insertedText + l.slice(_), n += o.insertedText.length - _;
|
|
2544
2539
|
continue;
|
|
2545
2540
|
}
|
|
2546
|
-
const a =
|
|
2547
|
-
s = s.slice(0,
|
|
2541
|
+
const a = o.end + n, E = le(a, i, s.length), I = E - i;
|
|
2542
|
+
s = s.slice(0, i) + o.insertedText + s.slice(E), n += o.insertedText.length - I;
|
|
2548
2543
|
}
|
|
2549
2544
|
return s;
|
|
2550
2545
|
}
|
|
2551
|
-
function
|
|
2546
|
+
function ko(e, r, t) {
|
|
2552
2547
|
if (r.length === 0)
|
|
2553
2548
|
return { node: e, changed: !1 };
|
|
2554
2549
|
const s = /* @__PURE__ */ new Map();
|
|
2555
2550
|
for (const n of r) {
|
|
2556
|
-
const
|
|
2557
|
-
|
|
2551
|
+
const o = s.get(n.nodeId);
|
|
2552
|
+
o ? o.push(n) : s.set(n.nodeId, [n]);
|
|
2558
2553
|
}
|
|
2559
2554
|
return Ze(e, s);
|
|
2560
2555
|
}
|
|
2561
2556
|
function Ze(e, r, t) {
|
|
2562
2557
|
const s = r.get(e.id) ?? [];
|
|
2563
|
-
let n = !1,
|
|
2558
|
+
let n = !1, o = e.props;
|
|
2564
2559
|
if (s.length > 0) {
|
|
2565
|
-
const
|
|
2566
|
-
for (const
|
|
2567
|
-
const
|
|
2568
|
-
|
|
2560
|
+
const I = /* @__PURE__ */ new Map();
|
|
2561
|
+
for (const l of s) {
|
|
2562
|
+
const _ = I.get(l.propertyName);
|
|
2563
|
+
_ ? _.push(l) : I.set(l.propertyName, [l]);
|
|
2569
2564
|
}
|
|
2570
|
-
for (const [
|
|
2571
|
-
const c =
|
|
2572
|
-
n || (
|
|
2565
|
+
for (const [l, _] of I.entries()) {
|
|
2566
|
+
const c = o[l], D = vo(typeof c == "string" ? c : "", _);
|
|
2567
|
+
n || (o = G(o), n = !0), o[l] = D;
|
|
2573
2568
|
}
|
|
2574
2569
|
}
|
|
2575
|
-
let
|
|
2570
|
+
let i = !1;
|
|
2576
2571
|
const a = e.children ?? [];
|
|
2577
|
-
let
|
|
2572
|
+
let E = a;
|
|
2578
2573
|
if (a.length > 0) {
|
|
2579
|
-
let
|
|
2580
|
-
for (let
|
|
2581
|
-
const
|
|
2582
|
-
c.changed && (
|
|
2574
|
+
let I;
|
|
2575
|
+
for (let l = 0; l < a.length; l++) {
|
|
2576
|
+
const _ = a[l], c = Ze(_, r);
|
|
2577
|
+
c.changed && (I || (I = [...a]), I[l] = c.node);
|
|
2583
2578
|
}
|
|
2584
|
-
|
|
2579
|
+
I && (E = I, i = !0);
|
|
2585
2580
|
}
|
|
2586
|
-
return !n && !
|
|
2581
|
+
return !n && !i ? { node: e, changed: !1 } : {
|
|
2587
2582
|
node: {
|
|
2588
2583
|
id: e.id,
|
|
2589
2584
|
type: e.type,
|
|
2590
|
-
props: n ?
|
|
2591
|
-
children:
|
|
2585
|
+
props: n ? o : e.props,
|
|
2586
|
+
children: i ? E : a,
|
|
2592
2587
|
styleIds: e.styleIds,
|
|
2593
2588
|
...e.sourceMarker ? { sourceMarker: e.sourceMarker } : {}
|
|
2594
2589
|
},
|
|
2595
2590
|
changed: !0
|
|
2596
2591
|
};
|
|
2597
2592
|
}
|
|
2598
|
-
function
|
|
2593
|
+
function le(e, r, t) {
|
|
2599
2594
|
return Math.max(r, Math.min(t, e));
|
|
2600
2595
|
}
|
|
2601
|
-
function
|
|
2596
|
+
function po(e, r) {
|
|
2602
2597
|
const t = Math.min(e.length, r.length);
|
|
2603
2598
|
let s = 0;
|
|
2604
2599
|
for (; s < t && e.charCodeAt(s) === r.charCodeAt(s); )
|
|
2605
2600
|
s++;
|
|
2606
2601
|
return s;
|
|
2607
2602
|
}
|
|
2608
|
-
function
|
|
2603
|
+
function G(e) {
|
|
2609
2604
|
const r = {}, t = Object.keys(e);
|
|
2610
2605
|
for (let s = 0; s < t.length; s++) {
|
|
2611
2606
|
const n = t[s];
|
|
@@ -2616,14 +2611,14 @@ function V(e) {
|
|
|
2616
2611
|
function ee(e) {
|
|
2617
2612
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
2618
2613
|
}
|
|
2619
|
-
function
|
|
2614
|
+
function p(e, r) {
|
|
2620
2615
|
if (Object.is(e, r))
|
|
2621
2616
|
return !0;
|
|
2622
2617
|
if (Array.isArray(e) && Array.isArray(r)) {
|
|
2623
2618
|
if (e.length !== r.length)
|
|
2624
2619
|
return !1;
|
|
2625
2620
|
for (let t = 0; t < e.length; t++)
|
|
2626
|
-
if (!
|
|
2621
|
+
if (!p(e[t], r[t]))
|
|
2627
2622
|
return !1;
|
|
2628
2623
|
return !0;
|
|
2629
2624
|
}
|
|
@@ -2632,19 +2627,19 @@ function G(e, r) {
|
|
|
2632
2627
|
if (t.length !== s.length)
|
|
2633
2628
|
return !1;
|
|
2634
2629
|
for (const n of t)
|
|
2635
|
-
if (!
|
|
2630
|
+
if (!p(e[n], r[n]))
|
|
2636
2631
|
return !1;
|
|
2637
2632
|
return !0;
|
|
2638
2633
|
}
|
|
2639
2634
|
return !1;
|
|
2640
2635
|
}
|
|
2641
|
-
const
|
|
2642
|
-
let et =
|
|
2643
|
-
const M = /* @__PURE__ */ new Map(),
|
|
2644
|
-
function
|
|
2636
|
+
const Vo = 16, Go = 50, A = new Po(), m = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Set();
|
|
2637
|
+
let et = Vo, tt = Go, H = [], Y = null, $ = null, O = 0, J = 0;
|
|
2638
|
+
const M = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map();
|
|
2639
|
+
function Bo() {
|
|
2645
2640
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2646
2641
|
}
|
|
2647
|
-
function
|
|
2642
|
+
function xo() {
|
|
2648
2643
|
try {
|
|
2649
2644
|
return crypto.randomUUID();
|
|
2650
2645
|
} catch {
|
|
@@ -2667,19 +2662,19 @@ function rt(e) {
|
|
|
2667
2662
|
payloads: t
|
|
2668
2663
|
};
|
|
2669
2664
|
}
|
|
2670
|
-
function
|
|
2665
|
+
function Ho(e, r, t) {
|
|
2671
2666
|
if (!t || t.version === -1)
|
|
2672
2667
|
return { type: "ReplaceStreamSnapshot", snapshot: rt(r) };
|
|
2673
2668
|
let s, n;
|
|
2674
|
-
for (const [a,
|
|
2675
|
-
t.views.get(a) !==
|
|
2669
|
+
for (const [a, E] of r.views)
|
|
2670
|
+
t.views.get(a) !== E && (s ??= []).push([a, E]);
|
|
2676
2671
|
for (const a of t.views.keys())
|
|
2677
2672
|
r.views.has(a) || (n ??= []).push(a);
|
|
2678
|
-
let
|
|
2679
|
-
for (const [a,
|
|
2680
|
-
t.payloads.get(a) !==
|
|
2673
|
+
let o, i;
|
|
2674
|
+
for (const [a, E] of r.payloads)
|
|
2675
|
+
t.payloads.get(a) !== E && (o ??= []).push([a, E]);
|
|
2681
2676
|
for (const a of t.payloads.keys())
|
|
2682
|
-
r.payloads.has(a) || (
|
|
2677
|
+
r.payloads.has(a) || (i ??= []).push(a);
|
|
2683
2678
|
return {
|
|
2684
2679
|
type: "PatchStreamSnapshot",
|
|
2685
2680
|
streamId: e,
|
|
@@ -2689,18 +2684,18 @@ function Yi(e, r, t) {
|
|
|
2689
2684
|
rootViewId: r.rootViewId,
|
|
2690
2685
|
upsertViews: s,
|
|
2691
2686
|
deleteViews: n,
|
|
2692
|
-
upsertPayloads:
|
|
2693
|
-
deletePayloads:
|
|
2687
|
+
upsertPayloads: o,
|
|
2688
|
+
deletePayloads: i
|
|
2694
2689
|
};
|
|
2695
2690
|
}
|
|
2696
2691
|
function te() {
|
|
2697
|
-
Y || (Y = setTimeout(
|
|
2692
|
+
Y || (Y = setTimeout(Ee, et)), $ || ($ = setTimeout(Ee, tt));
|
|
2698
2693
|
}
|
|
2699
|
-
function
|
|
2700
|
-
|
|
2694
|
+
function y(e) {
|
|
2695
|
+
H.push(e), te();
|
|
2701
2696
|
}
|
|
2702
|
-
function
|
|
2703
|
-
if (Y && (clearTimeout(Y), Y = null),
|
|
2697
|
+
function Ee() {
|
|
2698
|
+
if (Y && (clearTimeout(Y), Y = null), $ && (clearTimeout($), $ = null), H.length === 0 && M.size === 0 && K.size === 0) {
|
|
2704
2699
|
O = 0, J = 0;
|
|
2705
2700
|
return;
|
|
2706
2701
|
}
|
|
@@ -2708,53 +2703,53 @@ function _e() {
|
|
|
2708
2703
|
for (const [s, n] of M)
|
|
2709
2704
|
e.push({ trackId: s, version: n.version, senderId: n.senderId });
|
|
2710
2705
|
const r = [];
|
|
2711
|
-
for (const [s, n] of
|
|
2706
|
+
for (const [s, n] of K)
|
|
2712
2707
|
r.push({ trackId: s, senderId: n });
|
|
2713
2708
|
const t = {
|
|
2714
|
-
batchId:
|
|
2715
|
-
createdAtMs:
|
|
2716
|
-
ops:
|
|
2709
|
+
batchId: xo(),
|
|
2710
|
+
createdAtMs: Bo(),
|
|
2711
|
+
ops: H,
|
|
2717
2712
|
...e.length > 0 ? { acks: e } : {},
|
|
2718
2713
|
...r.length > 0 ? { resyncs: r } : {},
|
|
2719
2714
|
stats: { uiMessagesConsumed: O, bytesConsumed: J }
|
|
2720
2715
|
};
|
|
2721
|
-
|
|
2716
|
+
H = [], O = 0, J = 0, M.clear(), K.clear(), self.postMessage(t);
|
|
2722
2717
|
}
|
|
2723
|
-
function
|
|
2718
|
+
function Yo(e) {
|
|
2724
2719
|
return `${e.senderId}_${e.trackId}`;
|
|
2725
2720
|
}
|
|
2726
|
-
async function
|
|
2727
|
-
const r = await
|
|
2721
|
+
async function $o(e) {
|
|
2722
|
+
const r = await Pn(e), t = /* @__PURE__ */ new Set();
|
|
2728
2723
|
for (const s of Object.values(r.UIStreams ?? {})) {
|
|
2729
2724
|
const n = s.StreamId;
|
|
2730
2725
|
t.add(n);
|
|
2731
|
-
const
|
|
2732
|
-
|
|
2726
|
+
const o = s.Info?.Category;
|
|
2727
|
+
A.getSnapshot(n)?.category !== o && (A.setCategory(n, o), y({ type: "SetStreamCategory", streamId: n, category: o }));
|
|
2733
2728
|
}
|
|
2734
|
-
for (const s of
|
|
2735
|
-
|
|
2729
|
+
for (const s of A.getSnapshots())
|
|
2730
|
+
x.has(s.streamId) || t.has(s.streamId) || (A.remove(s.streamId), P.delete(s.streamId), y({ type: "RemoveStream", streamId: s.streamId }));
|
|
2736
2731
|
}
|
|
2737
|
-
function
|
|
2738
|
-
if (
|
|
2739
|
-
for (const r of
|
|
2740
|
-
r !== e && (
|
|
2741
|
-
|
|
2732
|
+
function Ko(e) {
|
|
2733
|
+
if (x.size !== 0) {
|
|
2734
|
+
for (const r of x)
|
|
2735
|
+
r !== e && (A.remove(r), P.delete(r), y({ type: "RemoveStream", streamId: r }));
|
|
2736
|
+
x.clear();
|
|
2742
2737
|
}
|
|
2743
2738
|
}
|
|
2744
|
-
async function
|
|
2745
|
-
const r =
|
|
2746
|
-
(
|
|
2747
|
-
const
|
|
2748
|
-
if (
|
|
2739
|
+
async function jo(e) {
|
|
2740
|
+
const r = Ie(e), t = Yo(r), s = await Ks(e), n = We(s), o = M.get(r.trackId);
|
|
2741
|
+
(o === void 0 || n.snapshot.version > o.version) && (M.set(r.trackId, { version: n.snapshot.version, senderId: r.senderId }), te());
|
|
2742
|
+
const i = A.apply(t, n);
|
|
2743
|
+
if (A.needsResync(t) && (K.set(r.trackId, r.senderId), te()), !i)
|
|
2749
2744
|
return;
|
|
2750
|
-
const a =
|
|
2745
|
+
const a = A.getSnapshot(t);
|
|
2751
2746
|
if (!a)
|
|
2752
2747
|
return;
|
|
2753
|
-
const
|
|
2754
|
-
P.set(t, a),
|
|
2748
|
+
const E = P.get(t);
|
|
2749
|
+
P.set(t, a), y(Ho(t, a, E)), Ko(t);
|
|
2755
2750
|
}
|
|
2756
|
-
async function
|
|
2757
|
-
const r = await
|
|
2751
|
+
async function Xo(e) {
|
|
2752
|
+
const r = await us(e);
|
|
2758
2753
|
if (!r.StyleId)
|
|
2759
2754
|
return;
|
|
2760
2755
|
const t = {
|
|
@@ -2762,10 +2757,10 @@ async function Wi(e) {
|
|
|
2762
2757
|
css: r.Style?.css,
|
|
2763
2758
|
common: r.Style?.common
|
|
2764
2759
|
}, s = m.get(t.styleId);
|
|
2765
|
-
s && s.css === t.css && s.common === t.common || (m.set(t.styleId, t),
|
|
2760
|
+
s && s.css === t.css && s.common === t.common || (m.set(t.styleId, t), y({ type: "UpsertUiStyle", style: t }));
|
|
2766
2761
|
}
|
|
2767
|
-
async function
|
|
2768
|
-
const r = await
|
|
2762
|
+
async function Wo(e) {
|
|
2763
|
+
const r = await Rs(e);
|
|
2769
2764
|
if (r.Styles)
|
|
2770
2765
|
for (const t of r.Styles) {
|
|
2771
2766
|
if (!t.StyleId)
|
|
@@ -2775,68 +2770,61 @@ async function ji(e) {
|
|
|
2775
2770
|
css: t.Style?.css,
|
|
2776
2771
|
common: t.Style?.common
|
|
2777
2772
|
}, n = m.get(s.styleId);
|
|
2778
|
-
n && n.css === s.css && n.common === s.common || (m.set(s.styleId, s),
|
|
2773
|
+
n && n.css === s.css && n.common === s.common || (m.set(s.styleId, s), y({ type: "UpsertUiStyle", style: s }));
|
|
2779
2774
|
}
|
|
2780
2775
|
}
|
|
2781
|
-
function
|
|
2782
|
-
const r =
|
|
2783
|
-
N.clear(t), P.delete(t), w({ type: "ClearStream", streamId: t });
|
|
2784
|
-
}
|
|
2785
|
-
async function Ji(e) {
|
|
2786
|
-
const r = await Bs(e);
|
|
2776
|
+
async function zo(e) {
|
|
2777
|
+
const r = await ks(e);
|
|
2787
2778
|
if (!(!r.StyleIds || r.StyleIds.length === 0))
|
|
2788
2779
|
for (const t of r.StyleIds)
|
|
2789
|
-
m.delete(t) &&
|
|
2780
|
+
m.delete(t) && y({ type: "RemoveUiStyle", styleId: t });
|
|
2790
2781
|
}
|
|
2791
|
-
function
|
|
2792
|
-
if (!
|
|
2782
|
+
function Jo(e) {
|
|
2783
|
+
if (!A.getSnapshots().some((r) => r.rootViewId)) {
|
|
2793
2784
|
for (const r of e.styles) {
|
|
2794
2785
|
const t = m.get(r.styleId);
|
|
2795
|
-
t && t.css === r.css && t.common === r.common || (m.set(r.styleId, r),
|
|
2786
|
+
t && t.css === r.css && t.common === r.common || (m.set(r.styleId, r), y({ type: "UpsertUiStyle", style: r }));
|
|
2796
2787
|
}
|
|
2797
2788
|
if (e.bootJson && e.bootStreamId) {
|
|
2798
|
-
const r =
|
|
2799
|
-
if (
|
|
2800
|
-
const t =
|
|
2801
|
-
t && (P.set(e.bootStreamId, t),
|
|
2789
|
+
const r = We({ Json: e.bootJson });
|
|
2790
|
+
if (A.apply(e.bootStreamId, r)) {
|
|
2791
|
+
const t = A.getSnapshot(e.bootStreamId);
|
|
2792
|
+
t && (P.set(e.bootStreamId, t), x.add(e.bootStreamId), y({ type: "ReplaceStreamSnapshot", snapshot: rt(t), fromSeed: !0 }));
|
|
2802
2793
|
}
|
|
2803
2794
|
}
|
|
2804
2795
|
for (const r of e.liveStreams ?? [])
|
|
2805
|
-
if (
|
|
2806
|
-
const t =
|
|
2807
|
-
t && P.set(r.streamId, t),
|
|
2796
|
+
if (A.applyStoreOp({ type: "ReplaceStreamSnapshot", snapshot: r })) {
|
|
2797
|
+
const t = A.getSnapshot(r.streamId);
|
|
2798
|
+
t && P.set(r.streamId, t), y({ type: "ReplaceStreamSnapshot", snapshot: r, fromSeed: !0 });
|
|
2808
2799
|
}
|
|
2809
|
-
|
|
2800
|
+
A.enterSnapshotModeAll();
|
|
2810
2801
|
}
|
|
2811
2802
|
}
|
|
2812
|
-
async function
|
|
2803
|
+
async function Qo(e) {
|
|
2813
2804
|
const r = new Uint8Array(e);
|
|
2814
2805
|
J += r.byteLength;
|
|
2815
2806
|
const t = r;
|
|
2816
2807
|
switch (ot(t)) {
|
|
2817
|
-
case
|
|
2818
|
-
await
|
|
2808
|
+
case b.CORE_GLOBAL_STATE:
|
|
2809
|
+
await $o(t), O++;
|
|
2819
2810
|
return;
|
|
2820
|
-
case
|
|
2811
|
+
case b.UI_UPDATE:
|
|
2821
2812
|
try {
|
|
2822
|
-
await
|
|
2813
|
+
await jo(t);
|
|
2823
2814
|
} catch (n) {
|
|
2824
|
-
return n instanceof
|
|
2815
|
+
return n instanceof w, void 0;
|
|
2825
2816
|
} finally {
|
|
2826
2817
|
O++;
|
|
2827
2818
|
}
|
|
2828
2819
|
return;
|
|
2829
|
-
case
|
|
2830
|
-
await
|
|
2831
|
-
return;
|
|
2832
|
-
case F.UI_STYLES_BATCH:
|
|
2833
|
-
await ji(t), O++;
|
|
2820
|
+
case b.UI_STYLES:
|
|
2821
|
+
await Xo(t), O++;
|
|
2834
2822
|
return;
|
|
2835
|
-
case
|
|
2836
|
-
await
|
|
2823
|
+
case b.UI_STYLES_BATCH:
|
|
2824
|
+
await Wo(t), O++;
|
|
2837
2825
|
return;
|
|
2838
|
-
case
|
|
2839
|
-
|
|
2826
|
+
case b.UI_STYLES_DELETE:
|
|
2827
|
+
await zo(t), O++;
|
|
2840
2828
|
return;
|
|
2841
2829
|
default:
|
|
2842
2830
|
return;
|
|
@@ -2849,19 +2837,19 @@ self.addEventListener("message", (e) => {
|
|
|
2849
2837
|
return;
|
|
2850
2838
|
}
|
|
2851
2839
|
if (r.type === "clear") {
|
|
2852
|
-
|
|
2853
|
-
for (const t of
|
|
2854
|
-
|
|
2840
|
+
H = [], P.clear(), M.clear(), K.clear(), m.clear();
|
|
2841
|
+
for (const t of A.getSnapshots())
|
|
2842
|
+
A.remove(t.streamId);
|
|
2855
2843
|
return;
|
|
2856
2844
|
}
|
|
2857
2845
|
if (r.type === "snapshotMode") {
|
|
2858
|
-
|
|
2846
|
+
A.enterSnapshotModeAll();
|
|
2859
2847
|
return;
|
|
2860
2848
|
}
|
|
2861
2849
|
if (r.type === "seed") {
|
|
2862
|
-
|
|
2850
|
+
Jo(r);
|
|
2863
2851
|
return;
|
|
2864
2852
|
}
|
|
2865
|
-
r.type === "protocol" &&
|
|
2853
|
+
r.type === "protocol" && Qo(r.message).catch(() => {
|
|
2866
2854
|
});
|
|
2867
2855
|
});
|