@ikonai/sdk-ui 1.0.43 → 1.0.45

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/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { createLogger as Xe, readOpcode as ze, readProtocolMessageHeaders as re } from "@ikonai/sdk";
2
- const b = 27, Je = {
1
+ import { readOpcode as zt, readProtocolMessageHeaders as rt, createLogger as Jt } from "@ikonai/sdk";
2
+ const b = 27, qt = {
3
3
  Compressed: 8
4
4
  };
5
- function qe(e) {
6
- const t = G(e), r = new DataView(t.buffer, t.byteOffset, t.byteLength);
7
- if (t.length < b)
5
+ function Qt(t) {
6
+ const e = G(t), r = new DataView(e.buffer, e.byteOffset, e.byteLength);
7
+ if (e.length < b)
8
8
  throw new Error("Protocol payload too short");
9
9
  const s = r.getUint32(0, !0), n = r.getUint32(4, !0), i = r.getUint32(8, !0), a = r.getUint32(12, !0), o = r.getUint32(16, !0), I = r.getUint32(20, !0), _ = r.getUint8(24), l = r.getUint8(25), E = r.getUint8(26);
10
- if (b + I * 4 > t.length)
10
+ if (b + I * 4 > e.length)
11
11
  throw new Error("Protocol header exceeds payload length");
12
12
  const T = [];
13
13
  let d = b;
@@ -25,30 +25,30 @@ function qe(e) {
25
25
  flags: E
26
26
  };
27
27
  }
28
- async function V(e, t, r) {
29
- const s = G(e), n = qe(s);
30
- if (t !== void 0 && n.opcode !== t)
28
+ async function B(t, e, r) {
29
+ const s = G(t), n = Qt(s);
30
+ if (e !== void 0 && n.opcode !== e)
31
31
  throw new Error(`Unexpected opcode ${n.opcode}`);
32
32
  if (n.payloadType !== 8)
33
33
  throw new Error(`Unexpected payload type ${n.payloadType}`);
34
34
  const i = b + n.targetIds.length * 4;
35
35
  let a = s.subarray(i, n.length);
36
- return (n.flags & Je.Compressed) !== 0 && (a = await Ze(a)), a;
36
+ return (n.flags & qt.Compressed) !== 0 && (a = await te(a)), a;
37
37
  }
38
- function Qe(e, t, r, s, n) {
39
- const i = n?.trackId ?? 0, a = n?.sequenceId ?? 0, o = n?.flags ?? 0, I = n?.targetIds ?? [], _ = n?.payloadType ?? 8, l = b + I.length * 4, E = l + t.length, h = new Uint8Array(E), T = new DataView(h.buffer);
40
- T.setUint32(0, E, !0), T.setUint32(4, e >>> 0, !0), T.setUint32(8, s >>> 0, !0), T.setUint32(12, i >>> 0, !0), T.setUint32(16, a >>> 0, !0), T.setUint32(20, I.length >>> 0, !0), T.setUint8(24, r & 255), T.setUint8(25, _ & 255), T.setUint8(26, o & 255);
38
+ function Zt(t, e, r, s, n) {
39
+ const i = n?.trackId ?? 0, a = n?.sequenceId ?? 0, o = n?.flags ?? 0, I = n?.targetIds ?? [], _ = n?.payloadType ?? 8, l = b + I.length * 4, E = l + e.length, h = new Uint8Array(E), T = new DataView(h.buffer);
40
+ T.setUint32(0, E, !0), T.setUint32(4, t >>> 0, !0), T.setUint32(8, s >>> 0, !0), T.setUint32(12, i >>> 0, !0), T.setUint32(16, a >>> 0, !0), T.setUint32(20, I.length >>> 0, !0), T.setUint8(24, r & 255), T.setUint8(25, _ & 255), T.setUint8(26, o & 255);
41
41
  let d = b;
42
42
  for (let g = 0; g < I.length; g++)
43
43
  T.setUint32(d, I[g] >>> 0, !0), d += 4;
44
- return h.set(t, l), h;
44
+ return h.set(e, l), h;
45
45
  }
46
- async function Ze(e) {
46
+ async function te(t) {
47
47
  if (typeof DecompressionStream > "u")
48
48
  throw new Error("DecompressionStream not supported");
49
- const t = new DecompressionStream("gzip"), r = t.writable.getWriter(), s = new Uint8Array(e);
49
+ const e = new DecompressionStream("gzip"), r = e.writable.getWriter(), s = new Uint8Array(t);
50
50
  r.write(s), r.close();
51
- const n = t.readable.getReader(), i = [];
51
+ const n = e.readable.getReader(), i = [];
52
52
  let a = 0;
53
53
  for (; ; ) {
54
54
  const { done: _, value: l } = await n.read();
@@ -61,194 +61,194 @@ async function Ze(e) {
61
61
  o.set(i[_], I), I += i[_].length;
62
62
  return o;
63
63
  }
64
- var w = /* @__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))(w || {});
65
- const ie = 161, ae = 162, H = new TextEncoder(), et = new TextDecoder("utf-8", { fatal: !0 });
64
+ var w = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(w || {});
65
+ const it = 161, at = 162, H = new TextEncoder(), ee = new TextDecoder("utf-8", { fatal: !0 });
66
66
  class v {
67
- constructor(t = 1) {
68
- this.version = t, this.buffer.writeByte(ie), this.buffer.writeVarUInt(t >>> 0);
67
+ constructor(e = 1) {
68
+ this.version = e, this.buffer.writeByte(it), this.buffer.writeVarUInt(e >>> 0);
69
69
  }
70
70
  buffer = new F();
71
71
  closed = !1;
72
72
  cached;
73
- writeInt32Field(t, r) {
74
- this.writeFixedField(t, 3, () => this.buffer.writeInt32(r | 0));
73
+ writeInt32Field(e, r) {
74
+ this.writeFixedField(e, 3, () => this.buffer.writeInt32(r | 0));
75
75
  }
76
- writeUInt32Field(t, r) {
77
- this.writeFixedField(t, 5, () => this.buffer.writeUInt32(r >>> 0));
76
+ writeUInt32Field(e, r) {
77
+ this.writeFixedField(e, 5, () => this.buffer.writeUInt32(r >>> 0));
78
78
  }
79
- writeInt64Field(t, r) {
80
- this.writeFixedField(t, 4, () => this.buffer.writeBigInt64(r));
79
+ writeInt64Field(e, r) {
80
+ this.writeFixedField(e, 4, () => this.buffer.writeBigInt64(r));
81
81
  }
82
- writeUInt64Field(t, r) {
83
- this.writeFixedField(t, 6, () => this.buffer.writeBigUInt64(r));
82
+ writeUInt64Field(e, r) {
83
+ this.writeFixedField(e, 6, () => this.buffer.writeBigUInt64(r));
84
84
  }
85
- writeFloat32Field(t, r) {
86
- this.writeFixedField(t, 7, () => this.buffer.writeFloat32(r));
85
+ writeFloat32Field(e, r) {
86
+ this.writeFixedField(e, 7, () => this.buffer.writeFloat32(r));
87
87
  }
88
- writeFloat64Field(t, r) {
89
- this.writeFixedField(t, 8, () => this.buffer.writeFloat64(r));
88
+ writeFloat64Field(e, r) {
89
+ this.writeFixedField(e, 8, () => this.buffer.writeFloat64(r));
90
90
  }
91
- writeBoolField(t, r) {
92
- this.writeFixedField(t, 2, () => this.buffer.writeByte(r ? 1 : 0));
91
+ writeBoolField(e, r) {
92
+ this.writeFixedField(e, 2, () => this.buffer.writeByte(r ? 1 : 0));
93
93
  }
94
- writeGuidField(t, r) {
94
+ writeGuidField(e, r) {
95
95
  const s = r instanceof c ? r.asBytes() : r;
96
96
  if (s.length !== 16)
97
97
  throw new Error("Guid payload must be 16 bytes");
98
- this.writeFixedField(t, 14, () => this.buffer.writeBytes(s));
98
+ this.writeFixedField(e, 14, () => this.buffer.writeBytes(s));
99
99
  }
100
- writeStringField(t, r) {
100
+ writeStringField(e, r) {
101
101
  const s = H.encode(r ?? "");
102
- this.writeVariableField(t, 12, s);
102
+ this.writeVariableField(e, 12, s);
103
103
  }
104
- writeBinaryField(t, r) {
105
- this.writeVariableField(t, 13, r);
104
+ writeBinaryField(e, r) {
105
+ this.writeVariableField(e, 13, r);
106
106
  }
107
- writeObjectField(t, r, s) {
107
+ writeObjectField(e, r, s) {
108
108
  const n = new v(r);
109
109
  s(n);
110
110
  const i = n.finish();
111
- this.writeVariableField(t, 11, i);
111
+ this.writeVariableField(e, 11, i);
112
112
  }
113
- writeArrayField(t, r, s) {
114
- const n = new Y(r);
113
+ writeArrayField(e, r, s) {
114
+ const n = new W(r);
115
115
  s(n);
116
116
  const i = n.finish();
117
- this.writeVariableField(t, 9, i);
117
+ this.writeVariableField(e, 9, i);
118
118
  }
119
- writeDictionaryField(t, r, s, n) {
119
+ writeDictionaryField(e, r, s, n) {
120
120
  const i = new z(r, s);
121
121
  n(i);
122
122
  const a = i.finish();
123
- this.writeVariableField(t, 10, a);
123
+ this.writeVariableField(e, 10, a);
124
124
  }
125
125
  finish() {
126
- return this.closed || (this.buffer.writeByte(ae), this.closed = !0, this.cached = this.buffer.toUint8Array()), this.cached;
126
+ return this.closed || (this.buffer.writeByte(at), this.closed = !0, this.cached = this.buffer.toUint8Array()), this.cached;
127
127
  }
128
- writeFixedField(t, r, s) {
129
- this.writeFieldHeader(t, r, 0), s();
128
+ writeFixedField(e, r, s) {
129
+ this.writeFieldHeader(e, r, 0), s();
130
130
  }
131
- writeVariableField(t, r, s) {
132
- this.writeFieldHeader(t, r, s.length), this.buffer.writeBytes(s);
131
+ writeVariableField(e, r, s) {
132
+ this.writeFieldHeader(e, r, s.length), this.buffer.writeBytes(s);
133
133
  }
134
- writeFieldHeader(t, r, s) {
135
- this.buffer.writeUInt32(t >>> 0), this.buffer.writeByte(W(r)), it(r) && this.buffer.writeVarUInt(s >>> 0);
134
+ writeFieldHeader(e, r, s) {
135
+ this.buffer.writeUInt32(e >>> 0), this.buffer.writeByte(Y(r)), ae(r) && this.buffer.writeVarUInt(s >>> 0);
136
136
  }
137
137
  }
138
- class Y {
139
- constructor(t) {
140
- this.elementType = t;
138
+ class W {
139
+ constructor(e) {
140
+ this.elementType = e;
141
141
  }
142
142
  payload = new F();
143
143
  count = 0;
144
- writeInt32(t) {
144
+ writeInt32(e) {
145
145
  this.ensureElementType(
146
146
  3
147
147
  /* Int32 */
148
- ), this.count++, this.payload.writeInt32(t | 0);
148
+ ), this.count++, this.payload.writeInt32(e | 0);
149
149
  }
150
- writeUInt32(t) {
150
+ writeUInt32(e) {
151
151
  this.ensureElementType(
152
152
  5
153
153
  /* UInt32 */
154
- ), this.count++, this.payload.writeUInt32(t >>> 0);
154
+ ), this.count++, this.payload.writeUInt32(e >>> 0);
155
155
  }
156
- writeInt64(t) {
156
+ writeInt64(e) {
157
157
  this.ensureElementType(
158
158
  4
159
159
  /* Int64 */
160
- ), this.count++, this.payload.writeBigInt64(t);
160
+ ), this.count++, this.payload.writeBigInt64(e);
161
161
  }
162
- writeUInt64(t) {
162
+ writeUInt64(e) {
163
163
  this.ensureElementType(
164
164
  6
165
165
  /* UInt64 */
166
- ), this.count++, this.payload.writeBigUInt64(t);
166
+ ), this.count++, this.payload.writeBigUInt64(e);
167
167
  }
168
- writeFloat32(t) {
168
+ writeFloat32(e) {
169
169
  this.ensureElementType(
170
170
  7
171
171
  /* Float32 */
172
- ), this.count++, this.payload.writeFloat32(t);
172
+ ), this.count++, this.payload.writeFloat32(e);
173
173
  }
174
- writeFloat64(t) {
174
+ writeFloat64(e) {
175
175
  this.ensureElementType(
176
176
  8
177
177
  /* Float64 */
178
- ), this.count++, this.payload.writeFloat64(t);
178
+ ), this.count++, this.payload.writeFloat64(e);
179
179
  }
180
- writeBool(t) {
180
+ writeBool(e) {
181
181
  this.ensureElementType(
182
182
  2
183
183
  /* Bool */
184
- ), this.count++, this.payload.writeByte(t ? 1 : 0);
184
+ ), this.count++, this.payload.writeByte(e ? 1 : 0);
185
185
  }
186
- writeGuid(t) {
186
+ writeGuid(e) {
187
187
  this.ensureElementType(
188
188
  14
189
189
  /* Guid */
190
190
  ), this.count++;
191
- const r = t instanceof c ? t.asBytes() : t;
191
+ const r = e instanceof c ? e.asBytes() : e;
192
192
  if (r.length !== 16)
193
193
  throw new Error("Guid payload must be 16 bytes");
194
194
  this.payload.writeBytes(r);
195
195
  }
196
- writeString(t) {
196
+ writeString(e) {
197
197
  this.ensureElementType(
198
198
  12
199
199
  /* String */
200
200
  ), this.count++;
201
- const r = H.encode(t ?? "");
201
+ const r = H.encode(e ?? "");
202
202
  this.payload.writeVarUInt(r.length), this.payload.writeBytes(r);
203
203
  }
204
- writeBinary(t) {
204
+ writeBinary(e) {
205
205
  this.ensureElementType(
206
206
  13
207
207
  /* Binary */
208
- ), this.count++, this.payload.writeVarUInt(t.length), this.payload.writeBytes(t);
208
+ ), this.count++, this.payload.writeVarUInt(e.length), this.payload.writeBytes(e);
209
209
  }
210
- writeObject(t, r) {
210
+ writeObject(e, r) {
211
211
  this.ensureElementType(
212
212
  11
213
213
  /* Object */
214
214
  ), this.count++;
215
- const s = new v(t);
215
+ const s = new v(e);
216
216
  r(s);
217
217
  const n = s.finish();
218
218
  this.payload.writeVarUInt(n.length), this.payload.writeBytes(n);
219
219
  }
220
- writeArray(t, r) {
220
+ writeArray(e, r) {
221
221
  this.ensureElementType(
222
222
  9
223
223
  /* Array */
224
224
  ), this.count++;
225
- const s = new Y(t);
225
+ const s = new W(e);
226
226
  r(s);
227
227
  const n = s.finish();
228
228
  this.payload.writeBytes(n);
229
229
  }
230
- writeDictionary(t, r, s) {
230
+ writeDictionary(e, r, s) {
231
231
  this.ensureElementType(
232
232
  10
233
233
  /* Dict */
234
234
  ), this.count++;
235
- const n = new z(t, r);
235
+ const n = new z(e, r);
236
236
  s(n);
237
237
  const i = n.finish();
238
238
  this.payload.writeBytes(i);
239
239
  }
240
240
  finish() {
241
- const t = new F();
242
- return t.writeByte(W(this.elementType)), t.writeVarUInt(this.count), t.writeBytes(this.payload.toUint8Array()), t.toUint8Array();
241
+ const e = new F();
242
+ return e.writeByte(Y(this.elementType)), e.writeVarUInt(this.count), e.writeBytes(this.payload.toUint8Array()), e.toUint8Array();
243
243
  }
244
- ensureElementType(t) {
245
- if (this.elementType !== t)
246
- throw new Error(`Array element type is ${w[this.elementType]}, expected ${w[t]}`);
244
+ ensureElementType(e) {
245
+ if (this.elementType !== e)
246
+ throw new Error(`Array element type is ${w[this.elementType]}, expected ${w[e]}`);
247
247
  }
248
248
  }
249
249
  class z {
250
- constructor(t, r) {
251
- this.keyType = t, this.valueType = r, Q(t);
250
+ constructor(e, r) {
251
+ this.keyType = e, this.valueType = r, Q(e);
252
252
  }
253
253
  payload = new F();
254
254
  count = 0;
@@ -256,138 +256,138 @@ class z {
256
256
  beginEntry() {
257
257
  if (this.entryOpen)
258
258
  throw new Error("Previous dictionary entry not completed");
259
- return this.count++, this.entryOpen = !0, new tt(this.keyType, this.valueType, this.payload, () => {
259
+ return this.count++, this.entryOpen = !0, new re(this.keyType, this.valueType, this.payload, () => {
260
260
  this.entryOpen = !1;
261
261
  });
262
262
  }
263
263
  finish() {
264
264
  if (this.entryOpen)
265
265
  throw new Error("Dictionary entry not completed");
266
- const t = new F();
267
- return t.writeByte(W(this.keyType)), t.writeByte(W(this.valueType)), t.writeVarUInt(this.count), t.writeBytes(this.payload.toUint8Array()), t.toUint8Array();
266
+ const e = new F();
267
+ return e.writeByte(Y(this.keyType)), e.writeByte(Y(this.valueType)), e.writeVarUInt(this.count), e.writeBytes(this.payload.toUint8Array()), e.toUint8Array();
268
268
  }
269
269
  }
270
- class tt {
271
- constructor(t, r, s, n) {
272
- this.keyType = t, this.valueType = r, this.payload = s, this.onComplete = n;
270
+ class re {
271
+ constructor(e, r, s, n) {
272
+ this.keyType = e, this.valueType = r, this.payload = s, this.onComplete = n;
273
273
  }
274
274
  keyWritten = !1;
275
275
  valueWritten = !1;
276
276
  completed = !1;
277
- writeKeyInt32(t) {
277
+ writeKeyInt32(e) {
278
278
  this.ensureKeyType(
279
279
  3
280
280
  /* Int32 */
281
- ), this.payload.writeInt32(t | 0), this.keyWritten = !0;
281
+ ), this.payload.writeInt32(e | 0), this.keyWritten = !0;
282
282
  }
283
- writeKeyUInt32(t) {
283
+ writeKeyUInt32(e) {
284
284
  this.ensureKeyType(
285
285
  5
286
286
  /* UInt32 */
287
- ), this.payload.writeUInt32(t >>> 0), this.keyWritten = !0;
287
+ ), this.payload.writeUInt32(e >>> 0), this.keyWritten = !0;
288
288
  }
289
- writeKeyInt64(t) {
289
+ writeKeyInt64(e) {
290
290
  this.ensureKeyType(
291
291
  4
292
292
  /* Int64 */
293
- ), this.payload.writeBigInt64(t), this.keyWritten = !0;
293
+ ), this.payload.writeBigInt64(e), this.keyWritten = !0;
294
294
  }
295
- writeKeyUInt64(t) {
295
+ writeKeyUInt64(e) {
296
296
  this.ensureKeyType(
297
297
  6
298
298
  /* UInt64 */
299
- ), this.payload.writeBigUInt64(t), this.keyWritten = !0;
299
+ ), this.payload.writeBigUInt64(e), this.keyWritten = !0;
300
300
  }
301
- writeKeyFloat32(t) {
301
+ writeKeyFloat32(e) {
302
302
  this.ensureKeyType(
303
303
  7
304
304
  /* Float32 */
305
- ), this.payload.writeFloat32(t), this.keyWritten = !0;
305
+ ), this.payload.writeFloat32(e), this.keyWritten = !0;
306
306
  }
307
- writeKeyFloat64(t) {
307
+ writeKeyFloat64(e) {
308
308
  this.ensureKeyType(
309
309
  8
310
310
  /* Float64 */
311
- ), this.payload.writeFloat64(t), this.keyWritten = !0;
311
+ ), this.payload.writeFloat64(e), this.keyWritten = !0;
312
312
  }
313
- writeKeyBool(t) {
313
+ writeKeyBool(e) {
314
314
  this.ensureKeyType(
315
315
  2
316
316
  /* Bool */
317
- ), this.payload.writeByte(t ? 1 : 0), this.keyWritten = !0;
317
+ ), this.payload.writeByte(e ? 1 : 0), this.keyWritten = !0;
318
318
  }
319
- writeKeyGuid(t) {
319
+ writeKeyGuid(e) {
320
320
  this.ensureKeyType(
321
321
  14
322
322
  /* Guid */
323
323
  );
324
- const r = t instanceof c ? t.asBytes() : t;
324
+ const r = e instanceof c ? e.asBytes() : e;
325
325
  if (r.length !== 16)
326
326
  throw new Error("Guid payload must be 16 bytes");
327
327
  this.payload.writeBytes(r), this.keyWritten = !0;
328
328
  }
329
- writeKeyString(t) {
329
+ writeKeyString(e) {
330
330
  this.ensureKeyType(
331
331
  12
332
332
  /* String */
333
333
  );
334
- const r = H.encode(t ?? "");
334
+ const r = H.encode(e ?? "");
335
335
  this.payload.writeVarUInt(r.length), this.payload.writeBytes(r), this.keyWritten = !0;
336
336
  }
337
- writeKeyBinary(t) {
337
+ writeKeyBinary(e) {
338
338
  this.ensureKeyType(
339
339
  13
340
340
  /* Binary */
341
- ), this.payload.writeVarUInt(t.length), this.payload.writeBytes(t), this.keyWritten = !0;
341
+ ), this.payload.writeVarUInt(e.length), this.payload.writeBytes(e), this.keyWritten = !0;
342
342
  }
343
- writeValueInt32(t) {
343
+ writeValueInt32(e) {
344
344
  this.ensureValueType(
345
345
  3
346
346
  /* Int32 */
347
- ), this.payload.writeInt32(t | 0), this.valueWritten = !0;
347
+ ), this.payload.writeInt32(e | 0), this.valueWritten = !0;
348
348
  }
349
- writeValueUInt32(t) {
349
+ writeValueUInt32(e) {
350
350
  this.ensureValueType(
351
351
  5
352
352
  /* UInt32 */
353
- ), this.payload.writeUInt32(t >>> 0), this.valueWritten = !0;
353
+ ), this.payload.writeUInt32(e >>> 0), this.valueWritten = !0;
354
354
  }
355
- writeValueInt64(t) {
355
+ writeValueInt64(e) {
356
356
  this.ensureValueType(
357
357
  4
358
358
  /* Int64 */
359
- ), this.payload.writeBigInt64(t), this.valueWritten = !0;
359
+ ), this.payload.writeBigInt64(e), this.valueWritten = !0;
360
360
  }
361
- writeValueUInt64(t) {
361
+ writeValueUInt64(e) {
362
362
  this.ensureValueType(
363
363
  6
364
364
  /* UInt64 */
365
- ), this.payload.writeBigUInt64(t), this.valueWritten = !0;
365
+ ), this.payload.writeBigUInt64(e), this.valueWritten = !0;
366
366
  }
367
- writeValueFloat32(t) {
367
+ writeValueFloat32(e) {
368
368
  this.ensureValueType(
369
369
  7
370
370
  /* Float32 */
371
- ), this.payload.writeFloat32(t), this.valueWritten = !0;
371
+ ), this.payload.writeFloat32(e), this.valueWritten = !0;
372
372
  }
373
- writeValueFloat64(t) {
373
+ writeValueFloat64(e) {
374
374
  this.ensureValueType(
375
375
  8
376
376
  /* Float64 */
377
- ), this.payload.writeFloat64(t), this.valueWritten = !0;
377
+ ), this.payload.writeFloat64(e), this.valueWritten = !0;
378
378
  }
379
- writeValueBool(t) {
379
+ writeValueBool(e) {
380
380
  this.ensureValueType(
381
381
  2
382
382
  /* Bool */
383
- ), this.payload.writeByte(t ? 1 : 0), this.valueWritten = !0;
383
+ ), this.payload.writeByte(e ? 1 : 0), this.valueWritten = !0;
384
384
  }
385
- writeValueGuid(t) {
385
+ writeValueGuid(e) {
386
386
  this.ensureValueType(
387
387
  14
388
388
  /* Guid */
389
389
  );
390
- const r = t instanceof c ? t.asBytes() : t;
390
+ const r = e instanceof c ? e.asBytes() : e;
391
391
  if (r.length !== 16)
392
392
  throw new Error("Guid payload must be 16 bytes");
393
393
  this.payload.writeBytes(r), this.valueWritten = !0;
@@ -398,46 +398,46 @@ class tt {
398
398
  /* Null */
399
399
  ), this.valueWritten = !0;
400
400
  }
401
- writeValueBinary(t) {
401
+ writeValueBinary(e) {
402
402
  this.ensureValueType(
403
403
  13
404
404
  /* Binary */
405
- ), this.payload.writeVarUInt(t.length), this.payload.writeBytes(t), this.valueWritten = !0;
405
+ ), this.payload.writeVarUInt(e.length), this.payload.writeBytes(e), this.valueWritten = !0;
406
406
  }
407
- writeValueString(t) {
407
+ writeValueString(e) {
408
408
  this.ensureValueType(
409
409
  12
410
410
  /* String */
411
411
  );
412
- const r = H.encode(t ?? "");
412
+ const r = H.encode(e ?? "");
413
413
  this.payload.writeVarUInt(r.length), this.payload.writeBytes(r), this.valueWritten = !0;
414
414
  }
415
- writeValueObject(t, r) {
415
+ writeValueObject(e, r) {
416
416
  this.ensureValueType(
417
417
  11
418
418
  /* Object */
419
419
  );
420
- const s = new v(t);
420
+ const s = new v(e);
421
421
  r(s);
422
422
  const n = s.finish();
423
423
  this.payload.writeVarUInt(n.length), this.payload.writeBytes(n), this.valueWritten = !0;
424
424
  }
425
- writeValueArray(t, r) {
425
+ writeValueArray(e, r) {
426
426
  this.ensureValueType(
427
427
  9
428
428
  /* Array */
429
429
  );
430
- const s = new Y(t);
430
+ const s = new W(e);
431
431
  r(s);
432
432
  const n = s.finish();
433
433
  this.payload.writeBytes(n), this.valueWritten = !0;
434
434
  }
435
- writeValueDictionary(t, r, s) {
435
+ writeValueDictionary(e, r, s) {
436
436
  this.ensureValueType(
437
437
  10
438
438
  /* Dict */
439
439
  );
440
- const n = new z(t, r);
440
+ const n = new z(e, r);
441
441
  s(n);
442
442
  const i = n.finish();
443
443
  this.payload.writeBytes(i), this.valueWritten = !0;
@@ -449,26 +449,26 @@ class tt {
449
449
  this.completed = !0, this.onComplete();
450
450
  }
451
451
  }
452
- ensureKeyType(t) {
453
- if (this.keyType !== t)
454
- throw new Error(`Dictionary key type is ${w[this.keyType]}, expected ${w[t]}`);
452
+ ensureKeyType(e) {
453
+ if (this.keyType !== e)
454
+ throw new Error(`Dictionary key type is ${w[this.keyType]}, expected ${w[e]}`);
455
455
  }
456
- ensureValueType(t) {
457
- if (this.valueType !== t)
458
- throw new Error(`Dictionary value type is ${w[this.valueType]}, expected ${w[t]}`);
456
+ ensureValueType(e) {
457
+ if (this.valueType !== e)
458
+ throw new Error(`Dictionary value type is ${w[this.valueType]}, expected ${w[e]}`);
459
459
  }
460
460
  }
461
461
  class O {
462
- constructor(t, r, s) {
463
- this.buffer = t, this.version = r, this.offset = s, this.end = t.length - 1;
462
+ constructor(e, r, s) {
463
+ this.buffer = e, this.version = r, this.offset = s, this.end = e.length - 1;
464
464
  }
465
465
  offset;
466
466
  end;
467
- static create(t) {
468
- const r = G(t);
467
+ static create(e) {
468
+ const r = G(e);
469
469
  if (r.length < 2)
470
470
  throw new Error("Teleport payload too short");
471
- if (r[0] !== ie || r[r.length - 1] !== ae)
471
+ if (r[0] !== it || r[r.length - 1] !== at)
472
472
  throw new Error("Teleport object missing markers");
473
473
  const s = { offset: 1 }, n = y(r, s, "InvalidLength");
474
474
  return new O(r, n, s.offset);
@@ -478,7 +478,7 @@ class O {
478
478
  return null;
479
479
  if (this.offset + 5 > this.buffer.length)
480
480
  throw new Error("Teleport object truncated");
481
- const t = at(this.buffer, this.offset);
481
+ const e = oe(this.buffer, this.offset);
482
482
  this.offset += 4;
483
483
  const r = this.buffer[this.offset++], s = r >> 4 & 15;
484
484
  if ((r & 15) !== 0)
@@ -491,12 +491,12 @@ class O {
491
491
  const a = { offset: this.offset }, o = y(this.buffer, a, "InvalidLength");
492
492
  N(this.buffer, a.offset, o), i = this.buffer.subarray(a.offset, a.offset + o), this.offset = a.offset + o;
493
493
  }
494
- return new rt(t, s, i);
494
+ return new se(e, s, i);
495
495
  }
496
496
  }
497
497
  class m {
498
- constructor(t, r) {
499
- this.type = t, this.payload = r;
498
+ constructor(e, r) {
499
+ this.type = e, this.payload = r;
500
500
  }
501
501
  asInt32() {
502
502
  return this.ensureType(
@@ -556,7 +556,7 @@ class m {
556
556
  return this.ensureType(
557
557
  12
558
558
  /* String */
559
- ), et.decode(this.payload);
559
+ ), ee.decode(this.payload);
560
560
  }
561
561
  asGuid() {
562
562
  return this.ensureType(
@@ -582,14 +582,14 @@ class m {
582
582
  /* Dict */
583
583
  ), q.create(this.payload);
584
584
  }
585
- ensureType(t) {
586
- if (this.type !== t)
587
- throw new Error(`Teleport value has type ${w[this.type]}, expected ${w[t]}`);
585
+ ensureType(e) {
586
+ if (this.type !== e)
587
+ throw new Error(`Teleport value has type ${w[this.type]}, expected ${w[e]}`);
588
588
  }
589
589
  }
590
- class rt extends m {
591
- constructor(t, r, s) {
592
- super(r, s), this.fieldId = t;
590
+ class se extends m {
591
+ constructor(e, r, s) {
592
+ super(r, s), this.fieldId = e;
593
593
  }
594
594
  get isNull() {
595
595
  return this.type === 1;
@@ -601,17 +601,17 @@ class J {
601
601
  count;
602
602
  offset;
603
603
  index = 0;
604
- constructor(t) {
605
- if (this.payload = t, t.length === 0)
604
+ constructor(e) {
605
+ if (this.payload = e, e.length === 0)
606
606
  throw new Error("Array payload too short");
607
- const r = t[0];
607
+ const r = e[0];
608
608
  if (this.elementType = r >> 4 & 15, (r & 15) !== 0)
609
609
  throw new Error("Array flags must be zero");
610
610
  const s = { offset: 1 };
611
- this.count = y(t, s, "ArrayMalformed"), this.offset = s.offset;
611
+ this.count = y(e, s, "ArrayMalformed"), this.offset = s.offset;
612
612
  }
613
- static create(t) {
614
- return new J(G(t));
613
+ static create(e) {
614
+ return new J(G(e));
615
615
  }
616
616
  next() {
617
617
  if (this.index >= this.count) {
@@ -619,8 +619,8 @@ class J {
619
619
  throw new Error("Array payload contains trailing data");
620
620
  return null;
621
621
  }
622
- const t = this.readValue();
623
- return this.index++, t;
622
+ const e = this.readValue();
623
+ return this.index++, e;
624
624
  }
625
625
  readValue() {
626
626
  switch (this.elementType) {
@@ -632,40 +632,40 @@ class J {
632
632
  case 4:
633
633
  case 6:
634
634
  case 14: {
635
- const t = P(this.elementType);
636
- N(this.payload, this.offset, t);
637
- const r = this.payload.subarray(this.offset, this.offset + t);
638
- return this.offset += t, new p(this.elementType, r);
635
+ const e = P(this.elementType);
636
+ N(this.payload, this.offset, e);
637
+ const r = this.payload.subarray(this.offset, this.offset + e);
638
+ return this.offset += e, new M(this.elementType, r);
639
639
  }
640
640
  case 12:
641
641
  case 13: {
642
- const t = { offset: this.offset }, r = y(this.payload, t, "ArrayMalformed");
643
- N(this.payload, t.offset, r);
644
- const s = this.payload.subarray(t.offset, t.offset + r);
645
- return this.offset = t.offset + r, new p(this.elementType, s);
642
+ const e = { offset: this.offset }, r = y(this.payload, e, "ArrayMalformed");
643
+ N(this.payload, e.offset, r);
644
+ const s = this.payload.subarray(e.offset, e.offset + r);
645
+ return this.offset = e.offset + r, new M(this.elementType, s);
646
646
  }
647
647
  case 11: {
648
- const t = { offset: this.offset }, r = y(this.payload, t, "ArrayMalformed");
649
- N(this.payload, t.offset, r);
650
- const s = this.payload.subarray(t.offset, t.offset + r);
651
- return this.offset = t.offset + r, new p(11, s);
648
+ const e = { offset: this.offset }, r = y(this.payload, e, "ArrayMalformed");
649
+ N(this.payload, e.offset, r);
650
+ const s = this.payload.subarray(e.offset, e.offset + r);
651
+ return this.offset = e.offset + r, new M(11, s);
652
652
  }
653
653
  case 9: {
654
- const t = Z(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
655
- return this.offset += t, new p(9, r);
654
+ const e = Z(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + e);
655
+ return this.offset += e, new M(9, r);
656
656
  }
657
657
  case 10: {
658
- const t = ee(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
659
- return this.offset += t, new p(10, r);
658
+ const e = tt(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + e);
659
+ return this.offset += e, new M(10, r);
660
660
  }
661
661
  default:
662
662
  throw new Error(`Unsupported array element type ${w[this.elementType]}`);
663
663
  }
664
664
  }
665
665
  }
666
- class p extends m {
667
- constructor(t, r) {
668
- super(t, r);
666
+ class M extends m {
667
+ constructor(e, r) {
668
+ super(e, r);
669
669
  }
670
670
  }
671
671
  class q {
@@ -675,17 +675,17 @@ class q {
675
675
  count;
676
676
  offset;
677
677
  index = 0;
678
- constructor(t) {
679
- if (this.payload = t, t.length < 2)
678
+ constructor(e) {
679
+ if (this.payload = e, e.length < 2)
680
680
  throw new Error("Dictionary payload too short");
681
- if (this.keyType = t[0] >> 4 & 15, this.valueType = t[1] >> 4 & 15, (t[0] & 15) !== 0 || (t[1] & 15) !== 0)
681
+ if (this.keyType = e[0] >> 4 & 15, this.valueType = e[1] >> 4 & 15, (e[0] & 15) !== 0 || (e[1] & 15) !== 0)
682
682
  throw new Error("Dictionary key/value flags must be zero");
683
683
  Q(this.keyType);
684
684
  const r = { offset: 2 };
685
- this.count = y(t, r, "DictMalformed"), this.offset = r.offset;
685
+ this.count = y(e, r, "DictMalformed"), this.offset = r.offset;
686
686
  }
687
- static create(t) {
688
- return new q(G(t));
687
+ static create(e) {
688
+ return new q(G(e));
689
689
  }
690
690
  next() {
691
691
  if (this.index >= this.count) {
@@ -693,15 +693,15 @@ class q {
693
693
  throw new Error("Dictionary payload contains trailing data");
694
694
  return null;
695
695
  }
696
- const t = this.readKey(), r = this.readValue();
697
- return this.index++, new st(t, r);
696
+ const e = this.readKey(), r = this.readValue();
697
+ return this.index++, new ne(e, r);
698
698
  }
699
699
  readKey() {
700
- const t = P(this.keyType);
701
- if (t >= 0) {
702
- N(this.payload, this.offset, t);
703
- const r = this.payload.subarray(this.offset, this.offset + t);
704
- return this.offset += t, new m(this.keyType, r);
700
+ const e = P(this.keyType);
701
+ if (e >= 0) {
702
+ N(this.payload, this.offset, e);
703
+ const r = this.payload.subarray(this.offset, this.offset + e);
704
+ return this.offset += e, new m(this.keyType, r);
705
705
  }
706
706
  if (this.keyType === 12 || this.keyType === 13) {
707
707
  const r = { offset: this.offset }, s = y(this.payload, r, "DictMalformed");
@@ -715,24 +715,24 @@ class q {
715
715
  switch (this.valueType) {
716
716
  case 12:
717
717
  case 13: {
718
- const t = { offset: this.offset }, r = y(this.payload, t, "DictMalformed");
719
- N(this.payload, t.offset, r);
720
- const s = this.payload.subarray(t.offset, t.offset + r);
721
- return this.offset = t.offset + r, new m(this.valueType, s);
718
+ const e = { offset: this.offset }, r = y(this.payload, e, "DictMalformed");
719
+ N(this.payload, e.offset, r);
720
+ const s = this.payload.subarray(e.offset, e.offset + r);
721
+ return this.offset = e.offset + r, new m(this.valueType, s);
722
722
  }
723
723
  case 11: {
724
- const t = { offset: this.offset }, r = y(this.payload, t, "DictMalformed");
725
- N(this.payload, t.offset, r);
726
- const s = this.payload.subarray(t.offset, t.offset + r);
727
- return this.offset = t.offset + r, new m(11, s);
724
+ const e = { offset: this.offset }, r = y(this.payload, e, "DictMalformed");
725
+ N(this.payload, e.offset, r);
726
+ const s = this.payload.subarray(e.offset, e.offset + r);
727
+ return this.offset = e.offset + r, new m(11, s);
728
728
  }
729
729
  case 9: {
730
- const t = Z(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
731
- return this.offset += t, new m(9, r);
730
+ const e = Z(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + e);
731
+ return this.offset += e, new m(9, r);
732
732
  }
733
733
  case 10: {
734
- const t = ee(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
735
- return this.offset += t, new m(10, r);
734
+ const e = tt(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + e);
735
+ return this.offset += e, new m(10, r);
736
736
  }
737
737
  case 3:
738
738
  case 5:
@@ -743,29 +743,29 @@ class q {
743
743
  case 6:
744
744
  case 14:
745
745
  case 1: {
746
- const t = P(this.valueType);
747
- N(this.payload, this.offset, t);
748
- const r = this.payload.subarray(this.offset, this.offset + t);
749
- return this.offset += t, new m(this.valueType, r);
746
+ const e = P(this.valueType);
747
+ N(this.payload, this.offset, e);
748
+ const r = this.payload.subarray(this.offset, this.offset + e);
749
+ return this.offset += e, new m(this.valueType, r);
750
750
  }
751
751
  default:
752
752
  throw new Error(`Unsupported dictionary value type ${w[this.valueType]}`);
753
753
  }
754
754
  }
755
755
  }
756
- class st {
757
- constructor(t, r) {
758
- this.key = t, this.value = r;
756
+ class ne {
757
+ constructor(e, r) {
758
+ this.key = e, this.value = r;
759
759
  }
760
760
  }
761
761
  class c {
762
- constructor(t) {
763
- this.bytes = t;
762
+ constructor(e) {
763
+ this.bytes = e;
764
764
  }
765
- static fromString(t) {
766
- if (!t)
765
+ static fromString(e) {
766
+ if (!e)
767
767
  throw new Error("Guid string is empty");
768
- const r = t.replace(/-/g, "");
768
+ const r = e.replace(/-/g, "");
769
769
  if (r.length !== 32)
770
770
  throw new Error("Guid string must be 32 hex characters");
771
771
  const s = new Uint8Array(16), n = c.parseHexSlice(r, 0, 8), i = c.parseHexSlice(r, 8, 4), a = c.parseHexSlice(r, 12, 4);
@@ -774,58 +774,58 @@ class c {
774
774
  s[8 + o] = c.parseHexSlice(r, 16 + o * 2, 2);
775
775
  return new c(s);
776
776
  }
777
- static fromBytes(t) {
778
- if (t.length !== 16)
777
+ static fromBytes(e) {
778
+ if (e.length !== 16)
779
779
  throw new Error("Guid byte array must be 16 bytes");
780
- return new c(Uint8Array.from(t));
780
+ return new c(Uint8Array.from(e));
781
781
  }
782
782
  static createZero() {
783
783
  return new c(new Uint8Array(16));
784
784
  }
785
785
  static createRandom() {
786
- const t = new Uint8Array(16), r = globalThis.crypto;
786
+ const e = new Uint8Array(16), r = globalThis.crypto;
787
787
  if (r?.getRandomValues)
788
- r.getRandomValues(t);
788
+ r.getRandomValues(e);
789
789
  else
790
- for (let s = 0; s < t.length; s++)
791
- t[s] = Math.floor(Math.random() * 256);
792
- return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, new c(t);
790
+ for (let s = 0; s < e.length; s++)
791
+ e[s] = Math.floor(Math.random() * 256);
792
+ return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, new c(e);
793
793
  }
794
794
  toString() {
795
- const t = this.bytes;
795
+ const e = this.bytes;
796
796
  return [
797
- c.toHex(c.readUInt32LE(t, 0), 8),
798
- c.toHex(c.readUInt16LE(t, 4), 4),
799
- c.toHex(c.readUInt16LE(t, 6), 4),
800
- se(t.subarray(8, 10)),
801
- se(t.subarray(10, 16))
797
+ c.toHex(c.readUInt32LE(e, 0), 8),
798
+ c.toHex(c.readUInt16LE(e, 4), 4),
799
+ c.toHex(c.readUInt16LE(e, 6), 4),
800
+ st(e.subarray(8, 10)),
801
+ st(e.subarray(10, 16))
802
802
  ].join("-");
803
803
  }
804
804
  asBytes() {
805
805
  return this.bytes.slice();
806
806
  }
807
- static parseHexSlice(t, r, s) {
808
- const n = t.substr(r, s), i = Number.parseInt(n, 16);
807
+ static parseHexSlice(e, r, s) {
808
+ const n = e.substr(r, s), i = Number.parseInt(n, 16);
809
809
  if (Number.isNaN(i))
810
810
  throw new Error("Guid string contains invalid characters");
811
811
  return i >>> 0;
812
812
  }
813
- static writeUInt32LE(t, r, s) {
813
+ static writeUInt32LE(e, r, s) {
814
814
  const n = s >>> 0;
815
- t[r] = n & 255, t[r + 1] = n >>> 8 & 255, t[r + 2] = n >>> 16 & 255, t[r + 3] = n >>> 24 & 255;
815
+ e[r] = n & 255, e[r + 1] = n >>> 8 & 255, e[r + 2] = n >>> 16 & 255, e[r + 3] = n >>> 24 & 255;
816
816
  }
817
- static writeUInt16LE(t, r, s) {
817
+ static writeUInt16LE(e, r, s) {
818
818
  const n = s & 65535;
819
- t[r] = n & 255, t[r + 1] = n >>> 8 & 255;
819
+ e[r] = n & 255, e[r + 1] = n >>> 8 & 255;
820
820
  }
821
- static readUInt32LE(t, r) {
822
- return (t[r] | t[r + 1] << 8 | t[r + 2] << 16 | t[r + 3] << 24) >>> 0;
821
+ static readUInt32LE(e, r) {
822
+ return (e[r] | e[r + 1] << 8 | e[r + 2] << 16 | e[r + 3] << 24) >>> 0;
823
823
  }
824
- static readUInt16LE(t, r) {
825
- return (t[r] | t[r + 1] << 8) & 65535;
824
+ static readUInt16LE(e, r) {
825
+ return (e[r] | e[r + 1] << 8) & 65535;
826
826
  }
827
- static toHex(t, r) {
828
- return (t >>> 0).toString(16).padStart(r, "0");
827
+ static toHex(e, r) {
828
+ return (e >>> 0).toString(16).padStart(r, "0");
829
829
  }
830
830
  }
831
831
  class F {
@@ -836,8 +836,8 @@ class F {
836
836
  constructor() {
837
837
  this.buffer = new Uint8Array(F.INITIAL_CAPACITY), this.dataView = new DataView(this.buffer.buffer);
838
838
  }
839
- ensureCapacity(t) {
840
- const r = this.length + t;
839
+ ensureCapacity(e) {
840
+ const r = this.length + e;
841
841
  if (r <= this.buffer.length)
842
842
  return;
843
843
  let s = this.buffer.length;
@@ -846,32 +846,32 @@ class F {
846
846
  const n = new Uint8Array(s);
847
847
  n.set(this.buffer.subarray(0, this.length)), this.buffer = n, this.dataView = new DataView(this.buffer.buffer);
848
848
  }
849
- writeByte(t) {
850
- this.ensureCapacity(1), this.buffer[this.length++] = t & 255;
849
+ writeByte(e) {
850
+ this.ensureCapacity(1), this.buffer[this.length++] = e & 255;
851
851
  }
852
- writeBytes(t) {
853
- this.ensureCapacity(t.length), this.buffer.set(t, this.length), this.length += t.length;
852
+ writeBytes(e) {
853
+ this.ensureCapacity(e.length), this.buffer.set(e, this.length), this.length += e.length;
854
854
  }
855
- writeUInt32(t) {
856
- this.ensureCapacity(4), this.dataView.setUint32(this.length, t >>> 0, !0), this.length += 4;
855
+ writeUInt32(e) {
856
+ this.ensureCapacity(4), this.dataView.setUint32(this.length, e >>> 0, !0), this.length += 4;
857
857
  }
858
- writeInt32(t) {
859
- this.ensureCapacity(4), this.dataView.setInt32(this.length, t | 0, !0), this.length += 4;
858
+ writeInt32(e) {
859
+ this.ensureCapacity(4), this.dataView.setInt32(this.length, e | 0, !0), this.length += 4;
860
860
  }
861
- writeFloat32(t) {
862
- this.ensureCapacity(4), this.dataView.setFloat32(this.length, t, !0), this.length += 4;
861
+ writeFloat32(e) {
862
+ this.ensureCapacity(4), this.dataView.setFloat32(this.length, e, !0), this.length += 4;
863
863
  }
864
- writeFloat64(t) {
865
- this.ensureCapacity(8), this.dataView.setFloat64(this.length, t, !0), this.length += 8;
864
+ writeFloat64(e) {
865
+ this.ensureCapacity(8), this.dataView.setFloat64(this.length, e, !0), this.length += 8;
866
866
  }
867
- writeBigInt64(t) {
868
- this.ensureCapacity(8), this.dataView.setBigInt64(this.length, t, !0), this.length += 8;
867
+ writeBigInt64(e) {
868
+ this.ensureCapacity(8), this.dataView.setBigInt64(this.length, e, !0), this.length += 8;
869
869
  }
870
- writeBigUInt64(t) {
871
- this.ensureCapacity(8), this.dataView.setBigUint64(this.length, t, !0), this.length += 8;
870
+ writeBigUInt64(e) {
871
+ this.ensureCapacity(8), this.dataView.setBigUint64(this.length, e, !0), this.length += 8;
872
872
  }
873
- writeVarUInt(t) {
874
- let r = t >>> 0;
873
+ writeVarUInt(e) {
874
+ let r = e >>> 0;
875
875
  for (; r >= 128; )
876
876
  this.ensureCapacity(1), this.buffer[this.length++] = r & 127 | 128, r >>>= 7;
877
877
  this.ensureCapacity(1), this.buffer[this.length++] = r & 127;
@@ -880,14 +880,14 @@ class F {
880
880
  return this.buffer.slice(0, this.length);
881
881
  }
882
882
  }
883
- function y(e, t, r) {
884
- if (t.offset >= e.length)
883
+ function y(t, e, r) {
884
+ if (e.offset >= t.length)
885
885
  throw new Error(r);
886
886
  let s = 0, n = 0, i = 0;
887
- for (; t.offset < e.length; ) {
888
- const a = e[t.offset++];
887
+ for (; e.offset < t.length; ) {
888
+ const a = t[e.offset++];
889
889
  if (i++, s |= (a & 127) << n, (a & 128) === 0) {
890
- if (i !== nt(s))
890
+ if (i !== ie(s))
891
891
  throw new Error("Teleport VarUInt is not canonical");
892
892
  return s >>> 0;
893
893
  }
@@ -896,19 +896,19 @@ function y(e, t, r) {
896
896
  }
897
897
  throw new Error(r);
898
898
  }
899
- function nt(e) {
900
- return e < 128 ? 1 : e < 16384 ? 2 : e < 2097152 ? 3 : e < 268435456 ? 4 : 5;
899
+ function ie(t) {
900
+ return t < 128 ? 1 : t < 16384 ? 2 : t < 2097152 ? 3 : t < 268435456 ? 4 : 5;
901
901
  }
902
- function W(e, t = 0) {
903
- if ((t & 240) !== 0)
902
+ function Y(t, e = 0) {
903
+ if ((e & 240) !== 0)
904
904
  throw new Error("Teleport flags must fit into 4 bits");
905
- return (e & 15) << 4 | t & 15;
905
+ return (t & 15) << 4 | e & 15;
906
906
  }
907
- function it(e) {
908
- return e === 12 || e === 13 || e === 9 || e === 11 || e === 10;
907
+ function ae(t) {
908
+ return t === 12 || t === 13 || t === 9 || t === 11 || t === 10;
909
909
  }
910
- function P(e) {
911
- switch (e) {
910
+ function P(t) {
911
+ switch (t) {
912
912
  case 3:
913
913
  case 5:
914
914
  case 7:
@@ -927,1266 +927,1271 @@ function P(e) {
927
927
  return -1;
928
928
  }
929
929
  }
930
- function Q(e) {
931
- if (e === 9 || e === 11 || e === 10 || e === 1)
930
+ function Q(t) {
931
+ if (t === 9 || t === 11 || t === 10 || t === 1)
932
932
  throw new Error("Dictionary keys must be primitive Teleport types");
933
933
  }
934
- function N(e, t, r) {
935
- if (t < 0 || r < 0 || t + r > e.length)
934
+ function N(t, e, r) {
935
+ if (e < 0 || r < 0 || e + r > t.length)
936
936
  throw new Error("Teleport payload exceeds bounds");
937
937
  }
938
- function at(e, t) {
939
- return (e[t] | e[t + 1] << 8 | e[t + 2] << 16 | e[t + 3] << 24) >>> 0;
938
+ function oe(t, e) {
939
+ return (t[e] | t[e + 1] << 8 | t[e + 2] << 16 | t[e + 3] << 24) >>> 0;
940
940
  }
941
- function Z(e, t) {
942
- if (t >= e.length)
941
+ function Z(t, e) {
942
+ if (e >= t.length)
943
943
  throw new Error("Array payload exceeds bounds");
944
- const r = e[t], s = r >> 4 & 15;
944
+ const r = t[e], s = r >> 4 & 15;
945
945
  if ((r & 15) !== 0)
946
946
  throw new Error("Array flags must be zero");
947
- const n = { offset: t + 1 }, i = y(e, n, "ArrayMalformed"), a = P(s);
947
+ const n = { offset: e + 1 }, i = y(t, n, "ArrayMalformed"), a = P(s);
948
948
  if (a >= 0) {
949
949
  const I = a * i;
950
- return N(e, n.offset, I), n.offset + I - t;
950
+ return N(t, n.offset, I), n.offset + I - e;
951
951
  }
952
952
  let o = n.offset;
953
953
  for (let I = 0; I < i; I++)
954
- o = j(s, e, o, "ArrayMalformed");
955
- return o - t;
954
+ o = j(s, t, o, "ArrayMalformed");
955
+ return o - e;
956
956
  }
957
- function ee(e, t) {
958
- if (t + 2 > e.length)
957
+ function tt(t, e) {
958
+ if (e + 2 > t.length)
959
959
  throw new Error("Dictionary payload too short");
960
- const r = e[t] >> 4 & 15, s = e[t + 1] >> 4 & 15;
961
- if ((e[t] & 15) !== 0 || (e[t + 1] & 15) !== 0)
960
+ const r = t[e] >> 4 & 15, s = t[e + 1] >> 4 & 15;
961
+ if ((t[e] & 15) !== 0 || (t[e + 1] & 15) !== 0)
962
962
  throw new Error("Dictionary key/value flags must be zero");
963
963
  Q(r);
964
- const n = { offset: t + 2 }, i = y(e, n, "DictMalformed");
964
+ const n = { offset: e + 2 }, i = y(t, n, "DictMalformed");
965
965
  let a = n.offset;
966
966
  for (let o = 0; o < i; o++)
967
- a = j(r, e, a, "DictMalformed"), a = j(s, e, a, "DictMalformed");
968
- return a - t;
967
+ a = j(r, t, a, "DictMalformed"), a = j(s, t, a, "DictMalformed");
968
+ return a - e;
969
969
  }
970
- function j(e, t, r, s) {
971
- const n = P(e);
970
+ function j(t, e, r, s) {
971
+ const n = P(t);
972
972
  if (n >= 0)
973
- return N(t, r, n), r + n;
974
- switch (e) {
973
+ return N(e, r, n), r + n;
974
+ switch (t) {
975
975
  case 12:
976
976
  case 13: {
977
- const i = { offset: r }, a = y(t, i, s);
978
- return N(t, i.offset, a), i.offset + a;
977
+ const i = { offset: r }, a = y(e, i, s);
978
+ return N(e, i.offset, a), i.offset + a;
979
979
  }
980
980
  case 11: {
981
- const i = { offset: r }, a = y(t, i, s);
982
- return N(t, i.offset, a), i.offset + a;
981
+ const i = { offset: r }, a = y(e, i, s);
982
+ return N(e, i.offset, a), i.offset + a;
983
983
  }
984
984
  case 9:
985
- return r + Z(t, r);
985
+ return r + Z(e, r);
986
986
  case 10:
987
- return r + ee(t, r);
987
+ return r + tt(e, r);
988
988
  default:
989
- throw new Error(`Unsupported Teleport type ${w[e]}`);
989
+ throw new Error(`Unsupported Teleport type ${w[t]}`);
990
990
  }
991
991
  }
992
- function se(e) {
993
- return Array.from(e).map((t) => t.toString(16).padStart(2, "0")).join("");
992
+ function st(t) {
993
+ return Array.from(t).map((e) => e.toString(16).padStart(2, "0")).join("");
994
994
  }
995
- function G(e) {
996
- return e instanceof Uint8Array ? e : new Uint8Array(e);
995
+ function G(t) {
996
+ return t instanceof Uint8Array ? t : new Uint8Array(t);
997
997
  }
998
- var oe = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Opus = 1] = "Opus", e[e.Mp3 = 2] = "Mp3", e[e.RawPcm16 = 3] = "RawPcm16", e))(oe || {}), le = /* @__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))(le || {}), Ie = /* @__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))(Ie || {}), Ee = /* @__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))(Ee || {}), _e = /* @__PURE__ */ ((e) => (e[e.Face = 0] = "Face", e[e.Hands = 1] = "Hands", e[e.Pose = 2] = "Pose", e[e.All = 3] = "All", e))(_e || {}), he = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Machine = 1] = "Machine", e[e.Human = 2] = "Human", e))(he || {}), ue = /* @__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))(ue || {}), ce = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.DotNet = 1] = "DotNet", e[e.TypeScript = 2] = "TypeScript", e[e.Cpp = 3] = "Cpp", e))(ce || {}), fe = /* @__PURE__ */ ((e) => (e[e.Local = 0] = "Local", e[e.Cloud = 1] = "Cloud", e))(fe || {}), Te = /* @__PURE__ */ ((e) => (e[e.Bundle = 0] = "Bundle", e[e.GitSource = 1] = "GitSource", e))(Te || {}), L = /* @__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_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_RELAY_AGENT_HELLO = 65576] = "CORE_RELAY_AGENT_HELLO", e[e.CORE_RELAY_HELLO = 65577] = "CORE_RELAY_HELLO", 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.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.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.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.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", e))(L || {});
999
- const ot = 161083277, lt = 265814330, It = 1368629611, Et = 2431514951, _t = 2745379226, ht = 3282782683, ut = 3284746250, ct = 4101844078;
1000
- function Ae(e) {
1001
- const t = {};
1002
- return Se(t), t;
998
+ var ot = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ot || {}), lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(lt || {}), It = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(It || {}), Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(_t || {}), ht = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ut || {}), ct = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(ft || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(Tt || {}), At = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(At || {}), L = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(L || {});
999
+ const le = 161083277, Ie = 265814330, Ee = 1368629611, _e = 2431514951, he = 2745379226, ue = 3282782683, ce = 3284746250, fe = 4101844078;
1000
+ function St(t) {
1001
+ const e = {};
1002
+ return Nt(e), e;
1003
1003
  }
1004
- function Se(e) {
1005
- return e.StreamId = "", e.Description = "", e.SourceType = "", e.Codec = oe.Unknown, e.CodecDetails = "", e.SampleRate = 0, e.Channels = 0, e.ShapeSets = void 0, e;
1004
+ function Nt(t) {
1005
+ return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ot.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t;
1006
1006
  }
1007
- function ft(e, t) {
1008
- const r = t ?? Ae();
1009
- return Se(r), Tt(e, r), r;
1007
+ function Te(t, e) {
1008
+ const r = e ?? St();
1009
+ return Nt(r), Ae(t, r), r;
1010
1010
  }
1011
- function Tt(e, t) {
1011
+ function Ae(t, e) {
1012
1012
  let r;
1013
- for (; (r = e.next()) !== null; )
1013
+ for (; (r = t.next()) !== null; )
1014
1014
  switch (r.fieldId) {
1015
- case ot: {
1015
+ case le: {
1016
1016
  if (r.isNull) throw new Error();
1017
- t.StreamId = r.asString();
1017
+ e.StreamId = r.asString();
1018
1018
  break;
1019
1019
  }
1020
- case lt: {
1020
+ case Ie: {
1021
1021
  if (r.isNull) {
1022
- t.ShapeSets = void 0;
1022
+ e.ShapeSets = void 0;
1023
1023
  break;
1024
1024
  }
1025
- t.ShapeSets = At(r.asArray());
1025
+ e.ShapeSets = Se(r.asArray());
1026
1026
  break;
1027
1027
  }
1028
- case It: {
1028
+ case Ee: {
1029
1029
  if (r.isNull) throw new Error();
1030
- t.Description = r.asString();
1030
+ e.Description = r.asString();
1031
1031
  break;
1032
1032
  }
1033
- case Et: {
1033
+ case _e: {
1034
1034
  if (r.isNull) throw new Error();
1035
- t.Channels = r.asInt32();
1035
+ e.Channels = r.asInt32();
1036
1036
  break;
1037
1037
  }
1038
- case _t: {
1038
+ case he: {
1039
1039
  if (r.isNull) throw new Error();
1040
- t.CodecDetails = r.asString();
1040
+ e.CodecDetails = r.asString();
1041
1041
  break;
1042
1042
  }
1043
- case ht: {
1043
+ case ue: {
1044
1044
  if (r.isNull) throw new Error();
1045
- t.SourceType = r.asString();
1045
+ e.SourceType = r.asString();
1046
1046
  break;
1047
1047
  }
1048
- case ut: {
1048
+ case ce: {
1049
1049
  if (r.isNull) throw new Error();
1050
- t.Codec = r.asInt32();
1050
+ e.Codec = r.asInt32();
1051
1051
  break;
1052
1052
  }
1053
- case ct: {
1053
+ case fe: {
1054
1054
  if (r.isNull) throw new Error();
1055
- t.SampleRate = r.asInt32();
1055
+ e.SampleRate = r.asInt32();
1056
1056
  break;
1057
1057
  }
1058
1058
  }
1059
1059
  }
1060
- function At(e) {
1061
- const t = [];
1060
+ function Se(t) {
1061
+ const e = [];
1062
1062
  let r;
1063
- for (; (r = e.next()) !== null; )
1064
- t.push(wt(r.asObject()));
1065
- return t;
1063
+ for (; (r = t.next()) !== null; )
1064
+ e.push(Ce(r.asObject()));
1065
+ return e;
1066
1066
  }
1067
- const St = 1107713536, Nt = 1154362099, dt = 1185721362;
1068
- function yt(e) {
1069
- const t = {};
1070
- return Ne(t), t;
1067
+ const Ne = 1107713536, de = 1154362099, ye = 1185721362;
1068
+ function we(t) {
1069
+ const e = {};
1070
+ return dt(e), e;
1071
1071
  }
1072
- function Ne(e) {
1073
- return e.SetId = 0, e.Name = "", e.ShapeNames = [], e;
1072
+ function dt(t) {
1073
+ return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
1074
1074
  }
1075
- function wt(e, t) {
1076
- const r = t ?? yt();
1077
- return Ne(r), Ct(e, r), r;
1075
+ function Ce(t, e) {
1076
+ const r = e ?? we();
1077
+ return dt(r), Ue(t, r), r;
1078
1078
  }
1079
- function Ct(e, t) {
1079
+ function Ue(t, e) {
1080
1080
  let r;
1081
- for (; (r = e.next()) !== null; )
1081
+ for (; (r = t.next()) !== null; )
1082
1082
  switch (r.fieldId) {
1083
- case St: {
1083
+ case Ne: {
1084
1084
  if (r.isNull) throw new Error();
1085
- t.Name = r.asString();
1085
+ e.Name = r.asString();
1086
1086
  break;
1087
1087
  }
1088
- case Nt: {
1088
+ case de: {
1089
1089
  if (r.isNull) throw new Error();
1090
- t.SetId = r.asUInt32();
1090
+ e.SetId = r.asUInt32();
1091
1091
  break;
1092
1092
  }
1093
- case dt: {
1093
+ case ye: {
1094
1094
  if (r.isNull) throw new Error();
1095
- t.ShapeNames = Ut(r.asArray());
1095
+ e.ShapeNames = De(r.asArray());
1096
1096
  break;
1097
1097
  }
1098
1098
  }
1099
1099
  }
1100
- function Ut(e) {
1101
- const t = [];
1100
+ function De(t) {
1101
+ const e = [];
1102
1102
  let r;
1103
- for (; (r = e.next()) !== null; )
1104
- t.push(r.asString());
1105
- return t;
1103
+ for (; (r = t.next()) !== null; )
1104
+ e.push(r.asString());
1105
+ return e;
1106
1106
  }
1107
- const Dt = 76337612, Rt = 185396121, Lt = 250031587, mt = 388632637, Ot = 417197284, gt = 469070965, Ft = 470595159, bt = 594855258, Pt = 781727218, kt = 834078886, pt = 1043273762, Mt = 1236999138, Bt = 1286979607, Vt = 1368629611, vt = 1715899485, Gt = 1942830531, xt = 1999510636, Ht = 2033288346, Wt = 2079864626, Yt = 2142346422, Kt = 2232517119, $t = 2598291686, jt = 2719718823, Xt = 2810953526, zt = 2840065720, Jt = 2885165957, qt = 3542818975, Qt = 3586157513, Zt = 3717933110, er = 4062655306;
1108
- function tr(e) {
1109
- const t = {};
1110
- return de(t), t;
1107
+ const Re = 76337612, Le = 185396121, me = 250031587, Oe = 388632637, ge = 417197284, Fe = 469070965, be = 470595159, Pe = 594855258, ke = 781727218, Me = 834078886, pe = 1043273762, Ve = 1236999138, Be = 1286979607, ve = 1368629611, Ge = 1715899485, xe = 1942830531, He = 1999510636, Ye = 2033288346, We = 2079864626, Ke = 2142346422, $e = 2228539873, je = 2232517119, Xe = 2598291686, ze = 2719718823, Je = 2810953526, qe = 2840065720, Qe = 2885165957, Ze = 3542818975, tr = 3586157513, er = 3717933110, rr = 4062655306;
1108
+ function sr(t) {
1109
+ const e = {};
1110
+ return yt(e), e;
1111
1111
  }
1112
- function de(e) {
1113
- return e.ContextType = Ie.Unknown, e.UserType = he.Unknown, e.PayloadType = Ee.Unknown, e.Description = "", e.UserId = "", e.DeviceId = "", e.ProductId = "", e.VersionId = "", e.InstallId = "", e.Locale = "", e.SessionId = -1, e.IsInternal = !1, e.IsReady = !1, e.HasInput = !1, e.ChannelLocale = "", e.EmbeddedSpaceId = "", e.AuthSessionId = "", e.ReceiveAllMessages = !1, e.PreciseJoinedAt = 0n, e.UserAgent = "", e.ClientType = le.Unknown, e.UniqueSessionId = "", e.Parameters = /* @__PURE__ */ Object.create(null), e.SdkType = ce.Unknown, e.ViewportWidth = 0, e.ViewportHeight = 0, e.Theme = "", e.Timezone = "", e.IsTouchDevice = !1, e.InitialPath = "", e;
1112
+ function yt(t) {
1113
+ return t.ContextType = It.Unknown, t.UserType = ut.Unknown, t.PayloadType = Et.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = lt.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = ft.Unknown, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t.StyleFormat = ht.Css, t;
1114
1114
  }
1115
- function rr(e, t) {
1116
- const r = t ?? tr();
1117
- return de(r), sr(e, r), r;
1115
+ function nr(t, e) {
1116
+ const r = e ?? sr();
1117
+ return yt(r), ir(t, r), r;
1118
1118
  }
1119
- function sr(e, t) {
1119
+ function ir(t, e) {
1120
1120
  let r;
1121
- for (; (r = e.next()) !== null; )
1121
+ for (; (r = t.next()) !== null; )
1122
1122
  switch (r.fieldId) {
1123
- case Dt: {
1123
+ case Re: {
1124
1124
  if (r.isNull) throw new Error();
1125
- t.DeviceId = r.asString();
1125
+ e.DeviceId = r.asString();
1126
1126
  break;
1127
1127
  }
1128
- case Rt: {
1128
+ case Le: {
1129
1129
  if (r.isNull) throw new Error();
1130
- t.InstallId = r.asString();
1130
+ e.InstallId = r.asString();
1131
1131
  break;
1132
1132
  }
1133
- case Lt: {
1133
+ case me: {
1134
1134
  if (r.isNull) throw new Error();
1135
- t.Theme = r.asString();
1135
+ e.Theme = r.asString();
1136
1136
  break;
1137
1137
  }
1138
- case mt: {
1138
+ case Oe: {
1139
1139
  if (r.isNull) throw new Error();
1140
- t.UserAgent = r.asString();
1140
+ e.UserAgent = r.asString();
1141
1141
  break;
1142
1142
  }
1143
- case Ot: {
1143
+ case ge: {
1144
1144
  if (r.isNull) throw new Error();
1145
- t.ContextType = r.asInt32();
1145
+ e.ContextType = r.asInt32();
1146
1146
  break;
1147
1147
  }
1148
- case gt: {
1148
+ case Fe: {
1149
1149
  if (r.isNull) throw new Error();
1150
- t.HasInput = r.asBool();
1150
+ e.HasInput = r.asBool();
1151
1151
  break;
1152
1152
  }
1153
- case Ft: {
1153
+ case be: {
1154
1154
  if (r.isNull) throw new Error();
1155
- t.UserType = r.asInt32();
1155
+ e.UserType = r.asInt32();
1156
1156
  break;
1157
1157
  }
1158
- case bt: {
1158
+ case Pe: {
1159
1159
  if (r.isNull) throw new Error();
1160
- t.InitialPath = r.asString();
1160
+ e.InitialPath = r.asString();
1161
1161
  break;
1162
1162
  }
1163
- case Pt: {
1163
+ case ke: {
1164
1164
  if (r.isNull) throw new Error();
1165
- t.UserId = r.asString();
1165
+ e.UserId = r.asString();
1166
1166
  break;
1167
1167
  }
1168
- case kt: {
1168
+ case Me: {
1169
1169
  if (r.isNull) throw new Error();
1170
- t.ProductId = r.asString();
1170
+ e.ProductId = r.asString();
1171
1171
  break;
1172
1172
  }
1173
- case pt: {
1173
+ case pe: {
1174
1174
  if (r.isNull) throw new Error();
1175
- t.AuthSessionId = r.asString();
1175
+ e.AuthSessionId = r.asString();
1176
1176
  break;
1177
1177
  }
1178
- case Mt: {
1178
+ case Ve: {
1179
1179
  if (r.isNull) throw new Error();
1180
- t.ReceiveAllMessages = r.asBool();
1180
+ e.ReceiveAllMessages = r.asBool();
1181
1181
  break;
1182
1182
  }
1183
- case Bt: {
1183
+ case Be: {
1184
1184
  if (r.isNull) throw new Error();
1185
- t.ViewportHeight = r.asInt32();
1185
+ e.ViewportHeight = r.asInt32();
1186
1186
  break;
1187
1187
  }
1188
- case Vt: {
1188
+ case ve: {
1189
1189
  if (r.isNull) throw new Error();
1190
- t.Description = r.asString();
1190
+ e.Description = r.asString();
1191
1191
  break;
1192
1192
  }
1193
- case vt: {
1193
+ case Ge: {
1194
1194
  if (r.isNull) throw new Error();
1195
- t.Locale = r.asString();
1195
+ e.Locale = r.asString();
1196
1196
  break;
1197
1197
  }
1198
- case Gt: {
1198
+ case xe: {
1199
1199
  if (r.isNull) throw new Error();
1200
- t.SdkType = r.asInt32();
1200
+ e.SdkType = r.asInt32();
1201
1201
  break;
1202
1202
  }
1203
- case xt: {
1203
+ case He: {
1204
1204
  if (r.isNull) throw new Error();
1205
- t.SessionId = r.asInt32();
1205
+ e.SessionId = r.asInt32();
1206
1206
  break;
1207
1207
  }
1208
- case Ht: {
1208
+ case Ye: {
1209
1209
  if (r.isNull) throw new Error();
1210
- t.ViewportWidth = r.asInt32();
1210
+ e.ViewportWidth = r.asInt32();
1211
1211
  break;
1212
1212
  }
1213
- case Wt: {
1213
+ case We: {
1214
1214
  if (r.isNull) throw new Error();
1215
- t.PreciseJoinedAt = r.asUInt64();
1215
+ e.PreciseJoinedAt = r.asUInt64();
1216
1216
  break;
1217
1217
  }
1218
- case Yt: {
1218
+ case Ke: {
1219
1219
  if (r.isNull) throw new Error();
1220
- t.PayloadType = r.asInt32();
1220
+ e.PayloadType = r.asInt32();
1221
1221
  break;
1222
1222
  }
1223
- case Kt: {
1223
+ case $e: {
1224
1224
  if (r.isNull) throw new Error();
1225
- t.IsTouchDevice = r.asBool();
1225
+ e.StyleFormat = r.asInt32();
1226
1226
  break;
1227
1227
  }
1228
- case $t: {
1228
+ case je: {
1229
1229
  if (r.isNull) throw new Error();
1230
- t.VersionId = r.asString();
1230
+ e.IsTouchDevice = r.asBool();
1231
1231
  break;
1232
1232
  }
1233
- case jt: {
1233
+ case Xe: {
1234
1234
  if (r.isNull) throw new Error();
1235
- t.UniqueSessionId = r.asString();
1235
+ e.VersionId = r.asString();
1236
1236
  break;
1237
1237
  }
1238
- case Xt: {
1238
+ case ze: {
1239
1239
  if (r.isNull) throw new Error();
1240
- t.ClientType = r.asInt32();
1240
+ e.UniqueSessionId = r.asString();
1241
1241
  break;
1242
1242
  }
1243
- case zt: {
1243
+ case Je: {
1244
1244
  if (r.isNull) throw new Error();
1245
- t.IsReady = r.asBool();
1245
+ e.ClientType = r.asInt32();
1246
1246
  break;
1247
1247
  }
1248
- case Jt: {
1248
+ case qe: {
1249
1249
  if (r.isNull) throw new Error();
1250
- t.Parameters = nr(r.asDictionary());
1250
+ e.IsReady = r.asBool();
1251
1251
  break;
1252
1252
  }
1253
- case qt: {
1253
+ case Qe: {
1254
1254
  if (r.isNull) throw new Error();
1255
- t.Timezone = r.asString();
1255
+ e.Parameters = ar(r.asDictionary());
1256
1256
  break;
1257
1257
  }
1258
- case Qt: {
1258
+ case Ze: {
1259
1259
  if (r.isNull) throw new Error();
1260
- t.IsInternal = r.asBool();
1260
+ e.Timezone = r.asString();
1261
1261
  break;
1262
1262
  }
1263
- case Zt: {
1263
+ case tr: {
1264
1264
  if (r.isNull) throw new Error();
1265
- t.ChannelLocale = r.asString();
1265
+ e.IsInternal = r.asBool();
1266
1266
  break;
1267
1267
  }
1268
1268
  case er: {
1269
1269
  if (r.isNull) throw new Error();
1270
- t.EmbeddedSpaceId = r.asString();
1270
+ e.ChannelLocale = r.asString();
1271
+ break;
1272
+ }
1273
+ case rr: {
1274
+ if (r.isNull) throw new Error();
1275
+ e.EmbeddedSpaceId = r.asString();
1271
1276
  break;
1272
1277
  }
1273
1278
  }
1274
1279
  }
1275
- function nr(e) {
1276
- const t = /* @__PURE__ */ Object.create(null);
1280
+ function ar(t) {
1281
+ const e = /* @__PURE__ */ Object.create(null);
1277
1282
  let r;
1278
- for (; (r = e.next()) !== null; ) {
1283
+ for (; (r = t.next()) !== null; ) {
1279
1284
  const s = r.key.asString();
1280
- t[s] = r.value.asString();
1285
+ e[s] = r.value.asString();
1281
1286
  }
1282
- return t;
1287
+ return e;
1283
1288
  }
1284
- const ir = 703025676, ar = 814454131, or = 972460562, lr = 976255570, Ir = 1368629611, Er = 1479280922, _r = 1533537016, hr = 1909301063, ur = 2274386296, cr = 2603556958, fr = 2885165957, Tr = 3568439632;
1285
- function Ar(e) {
1286
- const t = {};
1287
- return ye(t), t;
1289
+ const or = 703025676, lr = 814454131, Ir = 972460562, Er = 976255570, _r = 1368629611, hr = 1479280922, ur = 1533537016, cr = 1909301063, fr = 2274386296, Tr = 2603556958, Ar = 2885165957, Sr = 3568439632;
1290
+ function Nr(t) {
1291
+ const e = {};
1292
+ return wt(e), e;
1288
1293
  }
1289
- function ye(e) {
1290
- return e.FunctionId = c.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;
1294
+ function wt(t) {
1295
+ return t.FunctionId = c.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t.Versions = [], t;
1291
1296
  }
1292
- function Sr(e, t) {
1293
- const r = t ?? Ar();
1294
- return ye(r), Nr(e, r), r;
1297
+ function dr(t, e) {
1298
+ const r = e ?? Nr();
1299
+ return wt(r), yr(t, r), r;
1295
1300
  }
1296
- function Nr(e, t) {
1301
+ function yr(t, e) {
1297
1302
  let r;
1298
- for (; (r = e.next()) !== null; )
1303
+ for (; (r = t.next()) !== null; )
1299
1304
  switch (r.fieldId) {
1300
- case ir: {
1301
- if (r.isNull) throw new Error();
1302
- t.ResultTypeName = r.asString();
1303
- break;
1304
- }
1305
- case ar: {
1306
- if (r.isNull) throw new Error();
1307
- t.FunctionName = r.asString();
1308
- break;
1309
- }
1310
1305
  case or: {
1311
1306
  if (r.isNull) throw new Error();
1312
- t.EnumerableItemTypeName = r.asString();
1307
+ e.ResultTypeName = r.asString();
1313
1308
  break;
1314
1309
  }
1315
1310
  case lr: {
1316
1311
  if (r.isNull) throw new Error();
1317
- t.FunctionId = r.asGuid();
1312
+ e.FunctionName = r.asString();
1318
1313
  break;
1319
1314
  }
1320
1315
  case Ir: {
1321
1316
  if (r.isNull) throw new Error();
1322
- t.Description = r.asString();
1317
+ e.EnumerableItemTypeName = r.asString();
1323
1318
  break;
1324
1319
  }
1325
1320
  case Er: {
1326
1321
  if (r.isNull) throw new Error();
1327
- t.IsCancellable = r.asBool();
1322
+ e.FunctionId = r.asGuid();
1328
1323
  break;
1329
1324
  }
1330
1325
  case _r: {
1331
1326
  if (r.isNull) throw new Error();
1332
- t.RequiresInstance = r.asBool();
1327
+ e.Description = r.asString();
1333
1328
  break;
1334
1329
  }
1335
1330
  case hr: {
1336
1331
  if (r.isNull) throw new Error();
1337
- t.Versions = dr(r.asArray());
1332
+ e.IsCancellable = r.asBool();
1338
1333
  break;
1339
1334
  }
1340
1335
  case ur: {
1341
1336
  if (r.isNull) throw new Error();
1342
- t.LlmInlineResult = r.asBool();
1337
+ e.RequiresInstance = r.asBool();
1343
1338
  break;
1344
1339
  }
1345
1340
  case cr: {
1346
1341
  if (r.isNull) throw new Error();
1347
- t.IsEnumerable = r.asBool();
1342
+ e.Versions = wr(r.asArray());
1348
1343
  break;
1349
1344
  }
1350
1345
  case fr: {
1351
1346
  if (r.isNull) throw new Error();
1352
- t.Parameters = yr(r.asArray());
1347
+ e.LlmInlineResult = r.asBool();
1353
1348
  break;
1354
1349
  }
1355
1350
  case Tr: {
1356
1351
  if (r.isNull) throw new Error();
1357
- t.LlmCallOnlyOnce = r.asBool();
1352
+ e.IsEnumerable = r.asBool();
1353
+ break;
1354
+ }
1355
+ case Ar: {
1356
+ if (r.isNull) throw new Error();
1357
+ e.Parameters = Cr(r.asArray());
1358
+ break;
1359
+ }
1360
+ case Sr: {
1361
+ if (r.isNull) throw new Error();
1362
+ e.LlmCallOnlyOnce = r.asBool();
1358
1363
  break;
1359
1364
  }
1360
1365
  }
1361
1366
  }
1362
- function dr(e) {
1363
- const t = [];
1367
+ function wr(t) {
1368
+ const e = [];
1364
1369
  let r;
1365
- for (; (r = e.next()) !== null; )
1366
- t.push(r.asString());
1367
- return t;
1370
+ for (; (r = t.next()) !== null; )
1371
+ e.push(r.asString());
1372
+ return e;
1368
1373
  }
1369
- function yr(e) {
1370
- const t = [];
1374
+ function Cr(t) {
1375
+ const e = [];
1371
1376
  let r;
1372
- for (; (r = e.next()) !== null; )
1373
- t.push(br(r.asObject()));
1374
- return t;
1377
+ for (; (r = t.next()) !== null; )
1378
+ e.push(kr(r.asObject()));
1379
+ return e;
1375
1380
  }
1376
- const wr = 607861992, Cr = 894485888, Ur = 972460562, Dr = 1368629611, Rr = 1883521406, Lr = 2603556958, mr = 3609695522, Or = 4075263697, gr = 4257460908;
1377
- function Fr(e) {
1378
- const t = {};
1379
- return we(t), t;
1381
+ const Ur = 607861992, Dr = 894485888, Rr = 972460562, Lr = 1368629611, mr = 1883521406, Or = 2603556958, gr = 3609695522, Fr = 4075263697, br = 4257460908;
1382
+ function Pr(t) {
1383
+ const e = {};
1384
+ return Ct(e), e;
1380
1385
  }
1381
- function we(e) {
1382
- 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;
1386
+ function Ct(t) {
1387
+ return t.ParameterIndex = 0, t.ParameterName = "", t.TypeName = "", t.HasDefaultValue = !1, t.DefaultValueJson = "", t.DefaultValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.Description = "", t;
1383
1388
  }
1384
- function br(e, t) {
1385
- const r = t ?? Fr();
1386
- return we(r), Pr(e, r), r;
1389
+ function kr(t, e) {
1390
+ const r = e ?? Pr();
1391
+ return Ct(r), Mr(t, r), r;
1387
1392
  }
1388
- function Pr(e, t) {
1393
+ function Mr(t, e) {
1389
1394
  let r;
1390
- for (; (r = e.next()) !== null; )
1395
+ for (; (r = t.next()) !== null; )
1391
1396
  switch (r.fieldId) {
1392
- case wr: {
1393
- if (r.isNull) throw new Error();
1394
- t.HasDefaultValue = r.asBool();
1395
- break;
1396
- }
1397
- case Cr: {
1398
- if (r.isNull) throw new Error();
1399
- t.DefaultValueJson = r.asString();
1400
- break;
1401
- }
1402
1397
  case Ur: {
1403
1398
  if (r.isNull) throw new Error();
1404
- t.EnumerableItemTypeName = r.asString();
1399
+ e.HasDefaultValue = r.asBool();
1405
1400
  break;
1406
1401
  }
1407
1402
  case Dr: {
1408
1403
  if (r.isNull) throw new Error();
1409
- t.Description = r.asString();
1404
+ e.DefaultValueJson = r.asString();
1410
1405
  break;
1411
1406
  }
1412
1407
  case Rr: {
1413
1408
  if (r.isNull) throw new Error();
1414
- t.DefaultValueData = r.asBinary();
1409
+ e.EnumerableItemTypeName = r.asString();
1415
1410
  break;
1416
1411
  }
1417
1412
  case Lr: {
1418
1413
  if (r.isNull) throw new Error();
1419
- t.IsEnumerable = r.asBool();
1414
+ e.Description = r.asString();
1420
1415
  break;
1421
1416
  }
1422
1417
  case mr: {
1423
1418
  if (r.isNull) throw new Error();
1424
- t.TypeName = r.asString();
1419
+ e.DefaultValueData = r.asBinary();
1425
1420
  break;
1426
1421
  }
1427
1422
  case Or: {
1428
1423
  if (r.isNull) throw new Error();
1429
- t.ParameterName = r.asString();
1424
+ e.IsEnumerable = r.asBool();
1430
1425
  break;
1431
1426
  }
1432
1427
  case gr: {
1433
1428
  if (r.isNull) throw new Error();
1434
- t.ParameterIndex = r.asInt32();
1429
+ e.TypeName = r.asString();
1430
+ break;
1431
+ }
1432
+ case Fr: {
1433
+ if (r.isNull) throw new Error();
1434
+ e.ParameterName = r.asString();
1435
+ break;
1436
+ }
1437
+ case br: {
1438
+ if (r.isNull) throw new Error();
1439
+ e.ParameterIndex = r.asInt32();
1435
1440
  break;
1436
1441
  }
1437
1442
  }
1438
1443
  }
1439
- const kr = 3167053791, pr = 3342364356, Mr = 3612929027;
1440
- function Ce(e) {
1441
- const t = {};
1442
- return Ue(t), t;
1444
+ const pr = 3167053791, Vr = 3342364356, Br = 3612929027;
1445
+ function Ut(t) {
1446
+ const e = {};
1447
+ return Dt(e), e;
1443
1448
  }
1444
- function Ue(e) {
1445
- return e.Category = "", e.Type = _e.Face, e.FaceBlendshapes = [], e;
1449
+ function Dt(t) {
1450
+ return t.Category = "", t.Type = _t.Face, t.FaceBlendshapes = [], t;
1446
1451
  }
1447
- function Br(e, t) {
1448
- const r = t ?? Ce();
1449
- return Ue(r), Vr(e, r), r;
1452
+ function vr(t, e) {
1453
+ const r = e ?? Ut();
1454
+ return Dt(r), Gr(t, r), r;
1450
1455
  }
1451
- function Vr(e, t) {
1456
+ function Gr(t, e) {
1452
1457
  let r;
1453
- for (; (r = e.next()) !== null; )
1458
+ for (; (r = t.next()) !== null; )
1454
1459
  switch (r.fieldId) {
1455
- case kr: {
1460
+ case pr: {
1456
1461
  if (r.isNull) throw new Error();
1457
- t.Type = r.asInt32();
1462
+ e.Type = r.asInt32();
1458
1463
  break;
1459
1464
  }
1460
- case pr: {
1465
+ case Vr: {
1461
1466
  if (r.isNull) throw new Error();
1462
- t.FaceBlendshapes = vr(r.asArray());
1467
+ e.FaceBlendshapes = xr(r.asArray());
1463
1468
  break;
1464
1469
  }
1465
- case Mr: {
1470
+ case Br: {
1466
1471
  if (r.isNull) throw new Error();
1467
- t.Category = r.asString();
1472
+ e.Category = r.asString();
1468
1473
  break;
1469
1474
  }
1470
1475
  }
1471
1476
  }
1472
- function vr(e) {
1473
- const t = [];
1477
+ function xr(t) {
1478
+ const e = [];
1474
1479
  let r;
1475
- for (; (r = e.next()) !== null; )
1476
- t.push(r.asString());
1477
- return t;
1480
+ for (; (r = t.next()) !== null; )
1481
+ e.push(r.asString());
1482
+ return e;
1478
1483
  }
1479
- const Gr = 3612929027;
1480
- function De(e) {
1481
- const t = {};
1482
- return Re(t), t;
1484
+ const Hr = 1405462580, Yr = 2968276160;
1485
+ function Wr(t) {
1486
+ const e = {};
1487
+ return Rt(e), e;
1483
1488
  }
1484
- function Re(e) {
1485
- return e.Category = "", e;
1489
+ function Rt(t) {
1490
+ return t.MimeType = "", t.Value = new Uint8Array(0), t;
1486
1491
  }
1487
- function xr(e, t) {
1488
- const r = t ?? De();
1489
- return Re(r), Hr(e, r), r;
1492
+ function Kr(t, e) {
1493
+ const r = e ?? Wr();
1494
+ return Rt(r), $r(t, r), r;
1490
1495
  }
1491
- function Hr(e, t) {
1496
+ function $r(t, e) {
1492
1497
  let r;
1493
- for (; (r = e.next()) !== null; )
1498
+ for (; (r = t.next()) !== null; )
1494
1499
  switch (r.fieldId) {
1495
- case Gr: {
1500
+ case Hr: {
1501
+ if (r.isNull) throw new Error();
1502
+ e.Value = r.asBinary();
1503
+ break;
1504
+ }
1505
+ case Yr: {
1496
1506
  if (r.isNull) throw new Error();
1497
- t.Category = r.asString();
1507
+ e.MimeType = r.asString();
1498
1508
  break;
1499
1509
  }
1500
1510
  }
1501
1511
  }
1502
- const Wr = 161083277, Yr = 164808083, Kr = 1368629611, $r = 2745379226, jr = 2950031986, Xr = 3282782683, zr = 3284746250, Jr = 4065070594;
1503
- function Le(e) {
1504
- const t = {};
1505
- return me(t), t;
1512
+ const jr = 3612929027;
1513
+ function Lt(t) {
1514
+ const e = {};
1515
+ return mt(e), e;
1506
1516
  }
1507
- function me(e) {
1508
- return e.StreamId = "", e.Description = "", e.SourceType = "", e.Codec = ue.H264, e.CodecDetails = "", e.Width = 0, e.Height = 0, e.Framerate = 30, e;
1517
+ function mt(t) {
1518
+ return t.Category = "", t;
1509
1519
  }
1510
- function qr(e, t) {
1511
- const r = t ?? Le();
1512
- return me(r), Qr(e, r), r;
1520
+ function Xr(t, e) {
1521
+ const r = e ?? Lt();
1522
+ return mt(r), zr(t, r), r;
1513
1523
  }
1514
- function Qr(e, t) {
1524
+ function zr(t, e) {
1515
1525
  let r;
1516
- for (; (r = e.next()) !== null; )
1526
+ for (; (r = t.next()) !== null; )
1517
1527
  switch (r.fieldId) {
1518
- case Wr: {
1528
+ case jr: {
1519
1529
  if (r.isNull) throw new Error();
1520
- t.StreamId = r.asString();
1530
+ e.Category = r.asString();
1521
1531
  break;
1522
1532
  }
1523
- case Yr: {
1533
+ }
1534
+ }
1535
+ const Jr = 2097188, qr = 979822885, Qr = 2374537704;
1536
+ function Zr(t) {
1537
+ const e = {};
1538
+ return Ot(e), e;
1539
+ }
1540
+ function Ot(t) {
1541
+ return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
1542
+ }
1543
+ function ts(t, e) {
1544
+ const r = O.create(t);
1545
+ return es(r, e);
1546
+ }
1547
+ function es(t, e) {
1548
+ const r = e ?? Zr();
1549
+ return Ot(r), rs(t, r), r;
1550
+ }
1551
+ function rs(t, e) {
1552
+ let r;
1553
+ for (; (r = t.next()) !== null; )
1554
+ switch (r.fieldId) {
1555
+ case qr: {
1524
1556
  if (r.isNull) throw new Error();
1525
- t.Framerate = r.asFloat64();
1557
+ e.StyleId = r.asString();
1526
1558
  break;
1527
1559
  }
1528
- case Kr: {
1560
+ case Qr: {
1529
1561
  if (r.isNull) throw new Error();
1530
- t.Description = r.asString();
1562
+ e.Style = ns(r.asDictionary());
1531
1563
  break;
1532
1564
  }
1533
- case $r: {
1565
+ }
1566
+ }
1567
+ async function ss(t, e) {
1568
+ const r = await B(t, Jr);
1569
+ return ts(r, e);
1570
+ }
1571
+ function ns(t) {
1572
+ const e = /* @__PURE__ */ Object.create(null);
1573
+ let r;
1574
+ for (; (r = t.next()) !== null; ) {
1575
+ const s = r.key.asString();
1576
+ e[s] = r.value.asString();
1577
+ }
1578
+ return e;
1579
+ }
1580
+ const is = 2097192, as = 2136687806;
1581
+ function os(t) {
1582
+ const e = {};
1583
+ return gt(e), e;
1584
+ }
1585
+ function gt(t) {
1586
+ return t.Styles = [], t;
1587
+ }
1588
+ function ls(t, e) {
1589
+ const r = O.create(t);
1590
+ return Is(r, e);
1591
+ }
1592
+ function Is(t, e) {
1593
+ const r = e ?? os();
1594
+ return gt(r), Es(t, r), r;
1595
+ }
1596
+ function Es(t, e) {
1597
+ let r;
1598
+ for (; (r = t.next()) !== null; )
1599
+ switch (r.fieldId) {
1600
+ case as: {
1534
1601
  if (r.isNull) throw new Error();
1535
- t.CodecDetails = r.asString();
1602
+ e.Styles = hs(r.asArray());
1536
1603
  break;
1537
1604
  }
1538
- case jr: {
1605
+ }
1606
+ }
1607
+ async function _s(t, e) {
1608
+ const r = await B(t, is);
1609
+ return ls(r, e);
1610
+ }
1611
+ function hs(t) {
1612
+ const e = [];
1613
+ let r;
1614
+ for (; (r = t.next()) !== null; )
1615
+ e.push(Ts(r.asObject()));
1616
+ return e;
1617
+ }
1618
+ const us = 979822885, cs = 2374537704;
1619
+ function fs(t) {
1620
+ const e = {};
1621
+ return Ft(e), e;
1622
+ }
1623
+ function Ft(t) {
1624
+ return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
1625
+ }
1626
+ function Ts(t, e) {
1627
+ const r = e ?? fs();
1628
+ return Ft(r), As(t, r), r;
1629
+ }
1630
+ function As(t, e) {
1631
+ let r;
1632
+ for (; (r = t.next()) !== null; )
1633
+ switch (r.fieldId) {
1634
+ case us: {
1539
1635
  if (r.isNull) throw new Error();
1540
- t.Height = r.asInt32();
1636
+ e.StyleId = r.asString();
1541
1637
  break;
1542
1638
  }
1543
- case Xr: {
1639
+ case cs: {
1544
1640
  if (r.isNull) throw new Error();
1545
- t.SourceType = r.asString();
1641
+ e.Style = Ss(r.asDictionary());
1546
1642
  break;
1547
1643
  }
1548
- case zr: {
1644
+ }
1645
+ }
1646
+ function Ss(t) {
1647
+ const e = /* @__PURE__ */ Object.create(null);
1648
+ let r;
1649
+ for (; (r = t.next()) !== null; ) {
1650
+ const s = r.key.asString();
1651
+ e[s] = r.value.asString();
1652
+ }
1653
+ return e;
1654
+ }
1655
+ const Ns = 2097193, ds = 1415642792;
1656
+ function ys(t) {
1657
+ const e = {};
1658
+ return bt(e), e;
1659
+ }
1660
+ function bt(t) {
1661
+ return t.StyleIds = [], t;
1662
+ }
1663
+ function ws(t, e) {
1664
+ const r = O.create(t);
1665
+ return Cs(r, e);
1666
+ }
1667
+ function Cs(t, e) {
1668
+ const r = e ?? ys();
1669
+ return bt(r), Us(t, r), r;
1670
+ }
1671
+ function Us(t, e) {
1672
+ let r;
1673
+ for (; (r = t.next()) !== null; )
1674
+ switch (r.fieldId) {
1675
+ case ds: {
1549
1676
  if (r.isNull) throw new Error();
1550
- t.Codec = r.asInt32();
1677
+ e.StyleIds = Rs(r.asArray());
1551
1678
  break;
1552
1679
  }
1553
- case Jr: {
1680
+ }
1681
+ }
1682
+ async function Ds(t, e) {
1683
+ const r = await B(t, Ns);
1684
+ return ws(r, e);
1685
+ }
1686
+ function Rs(t) {
1687
+ const e = [];
1688
+ let r;
1689
+ for (; (r = t.next()) !== null; )
1690
+ e.push(r.asString());
1691
+ return e;
1692
+ }
1693
+ const Ls = 2097190, ms = 425183262, Os = 653781469;
1694
+ function gs(t) {
1695
+ const e = {};
1696
+ return Pt(e), e;
1697
+ }
1698
+ function Pt(t) {
1699
+ return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
1700
+ }
1701
+ function Fs(t, e) {
1702
+ const r = O.create(t);
1703
+ return bs(r, e);
1704
+ }
1705
+ function bs(t, e) {
1706
+ const r = e ?? gs();
1707
+ return Pt(r), Ps(t, r), r;
1708
+ }
1709
+ function Ps(t, e) {
1710
+ let r;
1711
+ for (; (r = t.next()) !== null; )
1712
+ switch (r.fieldId) {
1713
+ case ms: {
1554
1714
  if (r.isNull) throw new Error();
1555
- t.Width = r.asInt32();
1715
+ e.Json = r.asString();
1716
+ break;
1717
+ }
1718
+ case Os: {
1719
+ if (r.isNull) throw new Error();
1720
+ e.Payloads = Ms(r.asDictionary());
1556
1721
  break;
1557
1722
  }
1558
1723
  }
1559
1724
  }
1560
- const Zr = 65539, es = 693643444, ts = 1144553441, rs = 1497620243, ss = 1559330978, ns = 1976546434, is = 1999510636, as = 2271236852, os = 2277643855, ls = 2469008121, Is = 3042922213, Es = 3064612128, _s = 3219210453, hs = 3504054055, us = 3678477544, cs = 3696445035, fs = 3707543140, Ts = 3712281496, As = 3895362455, Ss = 3897397815, Ns = 4225107827;
1561
- function ds(e) {
1562
- const t = {};
1563
- return Oe(t), t;
1725
+ async function ks(t, e) {
1726
+ const r = await B(t, Ls);
1727
+ return Fs(r, e);
1728
+ }
1729
+ function Ms(t) {
1730
+ const e = /* @__PURE__ */ Object.create(null);
1731
+ let r;
1732
+ for (; (r = t.next()) !== null; ) {
1733
+ const s = r.key.asString();
1734
+ e[s] = Kr(r.value.asObject());
1735
+ }
1736
+ return e;
1737
+ }
1738
+ const kt = 1, ps = 1048636, Vs = 2610786289;
1739
+ function Bs(t) {
1740
+ const e = new v(kt);
1741
+ return vs(t, e), e.finish();
1742
+ }
1743
+ function vs(t, e) {
1744
+ e.writeUInt32Field(Vs, t.Version >>> 0);
1564
1745
  }
1565
- function Oe(e) {
1566
- 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.SessionId = "", e.ChannelUrl = "", e.SessionChannelUrl = "", e.FirstUserId = "", e.PrimaryUserId = "", e.OrganisationName = "", e.SpaceName = "", e.ChannelName = "", e.ServerRunType = fe.Local, e.AppSourceType = Te.Bundle, e.PublicAccess = !1, e.DebugMode = !1, e;
1746
+ function Gs(t, e, r) {
1747
+ const s = Bs(t);
1748
+ return Zt(ps, s, kt, e, r);
1567
1749
  }
1568
- function ys(e, t) {
1569
- const r = O.create(e);
1570
- return ws(r, t);
1750
+ const xs = 161083277, Hs = 164808083, Ys = 1368629611, Ws = 2745379226, Ks = 2950031986, $s = 3282782683, js = 3284746250, Xs = 4065070594;
1751
+ function Mt(t) {
1752
+ const e = {};
1753
+ return pt(e), e;
1571
1754
  }
1572
- function ws(e, t) {
1573
- const r = t ?? ds();
1574
- return Oe(r), Cs(e, r), r;
1755
+ function pt(t) {
1756
+ return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = ct.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t;
1575
1757
  }
1576
- function Cs(e, t) {
1758
+ function zs(t, e) {
1759
+ const r = e ?? Mt();
1760
+ return pt(r), Js(t, r), r;
1761
+ }
1762
+ function Js(t, e) {
1577
1763
  let r;
1578
- for (; (r = e.next()) !== null; )
1764
+ for (; (r = t.next()) !== null; )
1579
1765
  switch (r.fieldId) {
1580
- case es: {
1766
+ case xs: {
1581
1767
  if (r.isNull) throw new Error();
1582
- t.FirstUserId = r.asString();
1768
+ e.StreamId = r.asString();
1583
1769
  break;
1584
1770
  }
1585
- case ts: {
1771
+ case Hs: {
1586
1772
  if (r.isNull) throw new Error();
1587
- t.Clients = Ds(r.asDictionary());
1773
+ e.Framerate = r.asFloat64();
1588
1774
  break;
1589
1775
  }
1590
- case rs: {
1776
+ case Ys: {
1591
1777
  if (r.isNull) throw new Error();
1592
- t.TrackingStreams = Rs(r.asDictionary());
1778
+ e.Description = r.asString();
1593
1779
  break;
1594
1780
  }
1595
- case ss: {
1781
+ case Ws: {
1596
1782
  if (r.isNull) throw new Error();
1597
- t.ChannelId = r.asString();
1783
+ e.CodecDetails = r.asString();
1598
1784
  break;
1599
1785
  }
1600
- case ns: {
1786
+ case Ks: {
1601
1787
  if (r.isNull) throw new Error();
1602
- t.AppSourceType = r.asInt32();
1788
+ e.Height = r.asInt32();
1603
1789
  break;
1604
1790
  }
1605
- case is: {
1791
+ case $s: {
1606
1792
  if (r.isNull) throw new Error();
1607
- t.SessionId = r.asString();
1793
+ e.SourceType = r.asString();
1608
1794
  break;
1609
1795
  }
1610
- case as: {
1796
+ case js: {
1611
1797
  if (r.isNull) throw new Error();
1612
- t.SessionChannelUrl = r.asString();
1798
+ e.Codec = r.asInt32();
1613
1799
  break;
1614
1800
  }
1615
- case os: {
1801
+ case Xs: {
1616
1802
  if (r.isNull) throw new Error();
1617
- t.ChannelUrl = r.asString();
1803
+ e.Width = r.asInt32();
1618
1804
  break;
1619
1805
  }
1620
- case ls: {
1806
+ }
1807
+ }
1808
+ const qs = 65539, Qs = 693643444, Zs = 1144553441, tn = 1497620243, en = 1559330978, rn = 1976546434, sn = 1999510636, nn = 2271236852, an = 2277643855, on = 2469008121, ln = 3042922213, In = 3064612128, En = 3219210453, _n = 3504054055, hn = 3678477544, un = 3696445035, cn = 3707543140, fn = 3712281496, Tn = 3895362455, An = 3897397815, Sn = 4225107827;
1809
+ function Nn(t) {
1810
+ const e = {};
1811
+ return Vt(e), e;
1812
+ }
1813
+ function Vt(t) {
1814
+ return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.SessionId = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = Tt.Local, t.AppSourceType = At.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
1815
+ }
1816
+ function dn(t, e) {
1817
+ const r = O.create(t);
1818
+ return yn(r, e);
1819
+ }
1820
+ function yn(t, e) {
1821
+ const r = e ?? Nn();
1822
+ return Vt(r), wn(t, r), r;
1823
+ }
1824
+ function wn(t, e) {
1825
+ let r;
1826
+ for (; (r = t.next()) !== null; )
1827
+ switch (r.fieldId) {
1828
+ case Qs: {
1829
+ if (r.isNull) throw new Error();
1830
+ e.FirstUserId = r.asString();
1831
+ break;
1832
+ }
1833
+ case Zs: {
1621
1834
  if (r.isNull) throw new Error();
1622
- t.ChannelName = r.asString();
1835
+ e.Clients = Un(r.asDictionary());
1623
1836
  break;
1624
1837
  }
1625
- case Is: {
1838
+ case tn: {
1626
1839
  if (r.isNull) throw new Error();
1627
- t.PublicAccess = r.asBool();
1840
+ e.TrackingStreams = Dn(r.asDictionary());
1628
1841
  break;
1629
1842
  }
1630
- case Es: {
1843
+ case en: {
1631
1844
  if (r.isNull) throw new Error();
1632
- t.ServerRunType = r.asInt32();
1845
+ e.ChannelId = r.asString();
1633
1846
  break;
1634
1847
  }
1635
- case _s: {
1848
+ case rn: {
1636
1849
  if (r.isNull) throw new Error();
1637
- t.OrganisationName = r.asString();
1850
+ e.AppSourceType = r.asInt32();
1638
1851
  break;
1639
1852
  }
1640
- case hs: {
1853
+ case sn: {
1641
1854
  if (r.isNull) throw new Error();
1642
- t.DebugMode = r.asBool();
1855
+ e.SessionId = r.asString();
1643
1856
  break;
1644
1857
  }
1645
- case us: {
1858
+ case nn: {
1646
1859
  if (r.isNull) throw new Error();
1647
- t.Functions = Ls(r.asDictionary());
1860
+ e.SessionChannelUrl = r.asString();
1648
1861
  break;
1649
1862
  }
1650
- case cs: {
1863
+ case an: {
1864
+ if (r.isNull) throw new Error();
1865
+ e.ChannelUrl = r.asString();
1866
+ break;
1867
+ }
1868
+ case on: {
1869
+ if (r.isNull) throw new Error();
1870
+ e.ChannelName = r.asString();
1871
+ break;
1872
+ }
1873
+ case ln: {
1874
+ if (r.isNull) throw new Error();
1875
+ e.PublicAccess = r.asBool();
1876
+ break;
1877
+ }
1878
+ case In: {
1879
+ if (r.isNull) throw new Error();
1880
+ e.ServerRunType = r.asInt32();
1881
+ break;
1882
+ }
1883
+ case En: {
1651
1884
  if (r.isNull) throw new Error();
1652
- t.UIStreams = ms(r.asDictionary());
1885
+ e.OrganisationName = r.asString();
1653
1886
  break;
1654
1887
  }
1655
- case fs: {
1888
+ case _n: {
1656
1889
  if (r.isNull) throw new Error();
1657
- t.SpaceId = r.asString();
1890
+ e.DebugMode = r.asBool();
1658
1891
  break;
1659
1892
  }
1660
- case Ts: {
1893
+ case hn: {
1661
1894
  if (r.isNull) throw new Error();
1662
- t.PrimaryUserId = r.asString();
1895
+ e.Functions = Rn(r.asDictionary());
1663
1896
  break;
1664
1897
  }
1665
- case As: {
1898
+ case un: {
1666
1899
  if (r.isNull) throw new Error();
1667
- t.AudioStreams = Os(r.asDictionary());
1900
+ e.UIStreams = Ln(r.asDictionary());
1668
1901
  break;
1669
1902
  }
1670
- case Ss: {
1903
+ case cn: {
1671
1904
  if (r.isNull) throw new Error();
1672
- t.VideoStreams = gs(r.asDictionary());
1905
+ e.SpaceId = r.asString();
1673
1906
  break;
1674
1907
  }
1675
- case Ns: {
1908
+ case fn: {
1676
1909
  if (r.isNull) throw new Error();
1677
- t.SpaceName = r.asString();
1910
+ e.PrimaryUserId = r.asString();
1911
+ break;
1912
+ }
1913
+ case Tn: {
1914
+ if (r.isNull) throw new Error();
1915
+ e.AudioStreams = mn(r.asDictionary());
1916
+ break;
1917
+ }
1918
+ case An: {
1919
+ if (r.isNull) throw new Error();
1920
+ e.VideoStreams = On(r.asDictionary());
1921
+ break;
1922
+ }
1923
+ case Sn: {
1924
+ if (r.isNull) throw new Error();
1925
+ e.SpaceName = r.asString();
1678
1926
  break;
1679
1927
  }
1680
1928
  }
1681
1929
  }
1682
- async function Us(e, t) {
1683
- const r = await V(e, Zr);
1684
- return ys(r, t);
1930
+ async function Cn(t, e) {
1931
+ const r = await B(t, qs);
1932
+ return dn(r, e);
1685
1933
  }
1686
- function Ds(e) {
1687
- const t = /* @__PURE__ */ Object.create(null);
1934
+ function Un(t) {
1935
+ const e = /* @__PURE__ */ Object.create(null);
1688
1936
  let r;
1689
- for (; (r = e.next()) !== null; ) {
1937
+ for (; (r = t.next()) !== null; ) {
1690
1938
  const s = r.key.asInt32();
1691
- t[s] = rr(r.value.asObject());
1939
+ e[s] = nr(r.value.asObject());
1692
1940
  }
1693
- return t;
1941
+ return e;
1694
1942
  }
1695
- function Rs(e) {
1696
- const t = /* @__PURE__ */ Object.create(null);
1943
+ function Dn(t) {
1944
+ const e = /* @__PURE__ */ Object.create(null);
1697
1945
  let r;
1698
- for (; (r = e.next()) !== null; ) {
1946
+ for (; (r = t.next()) !== null; ) {
1699
1947
  const s = r.key.asString();
1700
- t[s] = nn(r.value.asObject());
1948
+ e[s] = si(r.value.asObject());
1701
1949
  }
1702
- return t;
1950
+ return e;
1703
1951
  }
1704
- function Ls(e) {
1705
- const t = /* @__PURE__ */ Object.create(null);
1952
+ function Rn(t) {
1953
+ const e = /* @__PURE__ */ Object.create(null);
1706
1954
  let r;
1707
- for (; (r = e.next()) !== null; ) {
1955
+ for (; (r = t.next()) !== null; ) {
1708
1956
  const s = r.key.asInt32();
1709
- t[s] = Fs(r.value.asArray());
1957
+ e[s] = gn(r.value.asArray());
1710
1958
  }
1711
- return t;
1959
+ return e;
1712
1960
  }
1713
- function ms(e) {
1714
- const t = /* @__PURE__ */ Object.create(null);
1961
+ function Ln(t) {
1962
+ const e = /* @__PURE__ */ Object.create(null);
1715
1963
  let r;
1716
- for (; (r = e.next()) !== null; ) {
1964
+ for (; (r = t.next()) !== null; ) {
1717
1965
  const s = r.key.asString();
1718
- t[s] = Bs(r.value.asObject());
1966
+ e[s] = pn(r.value.asObject());
1719
1967
  }
1720
- return t;
1968
+ return e;
1721
1969
  }
1722
- function Os(e) {
1723
- const t = /* @__PURE__ */ Object.create(null);
1970
+ function mn(t) {
1971
+ const e = /* @__PURE__ */ Object.create(null);
1724
1972
  let r;
1725
- for (; (r = e.next()) !== null; ) {
1973
+ for (; (r = t.next()) !== null; ) {
1726
1974
  const s = r.key.asString();
1727
- t[s] = Ys(r.value.asObject());
1975
+ e[s] = Yn(r.value.asObject());
1728
1976
  }
1729
- return t;
1977
+ return e;
1730
1978
  }
1731
- function gs(e) {
1732
- const t = /* @__PURE__ */ Object.create(null);
1979
+ function On(t) {
1980
+ const e = /* @__PURE__ */ Object.create(null);
1733
1981
  let r;
1734
- for (; (r = e.next()) !== null; ) {
1982
+ for (; (r = t.next()) !== null; ) {
1735
1983
  const s = r.key.asString();
1736
- t[s] = qs(r.value.asObject());
1984
+ e[s] = Jn(r.value.asObject());
1737
1985
  }
1738
- return t;
1986
+ return e;
1739
1987
  }
1740
- function Fs(e) {
1741
- const t = [];
1988
+ function gn(t) {
1989
+ const e = [];
1742
1990
  let r;
1743
- for (; (r = e.next()) !== null; )
1744
- t.push(Sr(r.asObject()));
1745
- return t;
1991
+ for (; (r = t.next()) !== null; )
1992
+ e.push(dr(r.asObject()));
1993
+ return e;
1746
1994
  }
1747
- const bs = 161083277, Ps = 325678206, ks = 3469892363, ps = 3645544153;
1748
- function Ms(e) {
1749
- const t = {};
1750
- return ge(t), t;
1995
+ const Fn = 161083277, bn = 325678206, Pn = 3469892363, kn = 3645544153;
1996
+ function Mn(t) {
1997
+ const e = {};
1998
+ return Bt(e), e;
1751
1999
  }
1752
- function ge(e) {
1753
- return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = De(), e;
2000
+ function Bt(t) {
2001
+ return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Lt(), t;
1754
2002
  }
1755
- function Bs(e, t) {
1756
- const r = t ?? Ms();
1757
- return ge(r), Vs(e, r), r;
2003
+ function pn(t, e) {
2004
+ const r = e ?? Mn();
2005
+ return Bt(r), Vn(t, r), r;
1758
2006
  }
1759
- function Vs(e, t) {
2007
+ function Vn(t, e) {
1760
2008
  let r;
1761
- for (; (r = e.next()) !== null; )
2009
+ for (; (r = t.next()) !== null; )
1762
2010
  switch (r.fieldId) {
1763
- case bs: {
2011
+ case Fn: {
1764
2012
  if (r.isNull) throw new Error();
1765
- t.StreamId = r.asString();
2013
+ e.StreamId = r.asString();
1766
2014
  break;
1767
2015
  }
1768
- case Ps: {
2016
+ case bn: {
1769
2017
  if (r.isNull) throw new Error();
1770
- t.ClientSessionId = r.asInt32();
2018
+ e.ClientSessionId = r.asInt32();
1771
2019
  break;
1772
2020
  }
1773
- case ks: {
2021
+ case Pn: {
1774
2022
  if (r.isNull) throw new Error();
1775
- t.TrackId = r.asInt32();
2023
+ e.TrackId = r.asInt32();
1776
2024
  break;
1777
2025
  }
1778
- case ps: {
2026
+ case kn: {
1779
2027
  if (r.isNull) throw new Error();
1780
- t.Info = xr(r.asObject());
2028
+ e.Info = Xr(r.asObject());
1781
2029
  break;
1782
2030
  }
1783
2031
  }
1784
2032
  }
1785
- const vs = 161083277, Gs = 325678206, xs = 3469892363, Hs = 3645544153;
1786
- function Ws(e) {
1787
- const t = {};
1788
- return Fe(t), t;
2033
+ const Bn = 161083277, vn = 325678206, Gn = 3469892363, xn = 3645544153;
2034
+ function Hn(t) {
2035
+ const e = {};
2036
+ return vt(e), e;
1789
2037
  }
1790
- function Fe(e) {
1791
- return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Ae(), e;
2038
+ function vt(t) {
2039
+ return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = St(), t;
1792
2040
  }
1793
- function Ys(e, t) {
1794
- const r = t ?? Ws();
1795
- return Fe(r), Ks(e, r), r;
2041
+ function Yn(t, e) {
2042
+ const r = e ?? Hn();
2043
+ return vt(r), Wn(t, r), r;
1796
2044
  }
1797
- function Ks(e, t) {
2045
+ function Wn(t, e) {
1798
2046
  let r;
1799
- for (; (r = e.next()) !== null; )
2047
+ for (; (r = t.next()) !== null; )
1800
2048
  switch (r.fieldId) {
1801
- case vs: {
2049
+ case Bn: {
1802
2050
  if (r.isNull) throw new Error();
1803
- t.StreamId = r.asString();
2051
+ e.StreamId = r.asString();
1804
2052
  break;
1805
2053
  }
1806
- case Gs: {
2054
+ case vn: {
1807
2055
  if (r.isNull) throw new Error();
1808
- t.ClientSessionId = r.asInt32();
2056
+ e.ClientSessionId = r.asInt32();
1809
2057
  break;
1810
2058
  }
1811
- case xs: {
2059
+ case Gn: {
1812
2060
  if (r.isNull) throw new Error();
1813
- t.TrackId = r.asInt32();
2061
+ e.TrackId = r.asInt32();
1814
2062
  break;
1815
2063
  }
1816
- case Hs: {
2064
+ case xn: {
1817
2065
  if (r.isNull) throw new Error();
1818
- t.Info = ft(r.asObject());
2066
+ e.Info = Te(r.asObject());
1819
2067
  break;
1820
2068
  }
1821
2069
  }
1822
2070
  }
1823
- const $s = 161083277, js = 325678206, Xs = 3469892363, zs = 3645544153;
1824
- function Js(e) {
1825
- const t = {};
1826
- return be(t), t;
2071
+ const Kn = 161083277, $n = 325678206, jn = 3469892363, Xn = 3645544153;
2072
+ function zn(t) {
2073
+ const e = {};
2074
+ return Gt(e), e;
1827
2075
  }
1828
- function be(e) {
1829
- return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Le(), e;
2076
+ function Gt(t) {
2077
+ return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Mt(), t;
1830
2078
  }
1831
- function qs(e, t) {
1832
- const r = t ?? Js();
1833
- return be(r), Qs(e, r), r;
2079
+ function Jn(t, e) {
2080
+ const r = e ?? zn();
2081
+ return Gt(r), qn(t, r), r;
1834
2082
  }
1835
- function Qs(e, t) {
2083
+ function qn(t, e) {
1836
2084
  let r;
1837
- for (; (r = e.next()) !== null; )
2085
+ for (; (r = t.next()) !== null; )
1838
2086
  switch (r.fieldId) {
1839
- case $s: {
1840
- if (r.isNull) throw new Error();
1841
- t.StreamId = r.asString();
1842
- break;
1843
- }
1844
- case js: {
1845
- if (r.isNull) throw new Error();
1846
- t.ClientSessionId = r.asInt32();
1847
- break;
1848
- }
1849
- case Xs: {
1850
- if (r.isNull) throw new Error();
1851
- t.TrackId = r.asInt32();
1852
- break;
1853
- }
1854
- case zs: {
1855
- if (r.isNull) throw new Error();
1856
- t.Info = qr(r.asObject());
1857
- break;
1858
- }
1859
- }
1860
- }
1861
- const Zs = 161083277, en = 325678206, tn = 3469892363, rn = 3645544153;
1862
- function sn(e) {
1863
- const t = {};
1864
- return Pe(t), t;
1865
- }
1866
- function Pe(e) {
1867
- return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Ce(), e;
1868
- }
1869
- function nn(e, t) {
1870
- const r = t ?? sn();
1871
- return Pe(r), an(e, r), r;
1872
- }
1873
- function an(e, t) {
1874
- let r;
1875
- for (; (r = e.next()) !== null; )
1876
- switch (r.fieldId) {
1877
- case Zs: {
1878
- if (r.isNull) throw new Error();
1879
- t.StreamId = r.asString();
1880
- break;
1881
- }
1882
- case en: {
1883
- if (r.isNull) throw new Error();
1884
- t.ClientSessionId = r.asInt32();
1885
- break;
1886
- }
1887
- case tn: {
1888
- if (r.isNull) throw new Error();
1889
- t.TrackId = r.asInt32();
1890
- break;
1891
- }
1892
- case rn: {
1893
- if (r.isNull) throw new Error();
1894
- t.Info = Br(r.asObject());
1895
- break;
1896
- }
1897
- }
1898
- }
1899
- const on = 1405462580, ln = 2968276160;
1900
- function In(e) {
1901
- const t = {};
1902
- return ke(t), t;
1903
- }
1904
- function ke(e) {
1905
- return e.MimeType = "", e.Value = new Uint8Array(0), e;
1906
- }
1907
- function En(e, t) {
1908
- const r = t ?? In();
1909
- return ke(r), _n(e, r), r;
1910
- }
1911
- function _n(e, t) {
1912
- let r;
1913
- for (; (r = e.next()) !== null; )
1914
- switch (r.fieldId) {
1915
- case on: {
1916
- if (r.isNull) throw new Error();
1917
- t.Value = r.asBinary();
1918
- break;
1919
- }
1920
- case ln: {
2087
+ case Kn: {
1921
2088
  if (r.isNull) throw new Error();
1922
- t.MimeType = r.asString();
2089
+ e.StreamId = r.asString();
1923
2090
  break;
1924
2091
  }
1925
- }
1926
- }
1927
- const hn = 2097188, un = 979822885, cn = 2374537704;
1928
- function fn(e) {
1929
- const t = {};
1930
- return pe(t), t;
1931
- }
1932
- function pe(e) {
1933
- return e.StyleId = "", e.Style = /* @__PURE__ */ Object.create(null), e;
1934
- }
1935
- function Tn(e, t) {
1936
- const r = O.create(e);
1937
- return An(r, t);
1938
- }
1939
- function An(e, t) {
1940
- const r = t ?? fn();
1941
- return pe(r), Sn(e, r), r;
1942
- }
1943
- function Sn(e, t) {
1944
- let r;
1945
- for (; (r = e.next()) !== null; )
1946
- switch (r.fieldId) {
1947
- case un: {
2092
+ case $n: {
1948
2093
  if (r.isNull) throw new Error();
1949
- t.StyleId = r.asString();
2094
+ e.ClientSessionId = r.asInt32();
1950
2095
  break;
1951
2096
  }
1952
- case cn: {
2097
+ case jn: {
1953
2098
  if (r.isNull) throw new Error();
1954
- t.Style = dn(r.asDictionary());
2099
+ e.TrackId = r.asInt32();
1955
2100
  break;
1956
2101
  }
1957
- }
1958
- }
1959
- async function Nn(e, t) {
1960
- const r = await V(e, hn);
1961
- return Tn(r, t);
1962
- }
1963
- function dn(e) {
1964
- const t = /* @__PURE__ */ Object.create(null);
1965
- let r;
1966
- for (; (r = e.next()) !== null; ) {
1967
- const s = r.key.asString();
1968
- t[s] = r.value.asString();
1969
- }
1970
- return t;
1971
- }
1972
- const yn = 2097192, wn = 2136687806;
1973
- function Cn(e) {
1974
- const t = {};
1975
- return Me(t), t;
1976
- }
1977
- function Me(e) {
1978
- return e.Styles = [], e;
1979
- }
1980
- function Un(e, t) {
1981
- const r = O.create(e);
1982
- return Dn(r, t);
1983
- }
1984
- function Dn(e, t) {
1985
- const r = t ?? Cn();
1986
- return Me(r), Rn(e, r), r;
1987
- }
1988
- function Rn(e, t) {
1989
- let r;
1990
- for (; (r = e.next()) !== null; )
1991
- switch (r.fieldId) {
1992
- case wn: {
2102
+ case Xn: {
1993
2103
  if (r.isNull) throw new Error();
1994
- t.Styles = mn(r.asArray());
2104
+ e.Info = zs(r.asObject());
1995
2105
  break;
1996
2106
  }
1997
2107
  }
1998
2108
  }
1999
- async function Ln(e, t) {
2000
- const r = await V(e, yn);
2001
- return Un(r, t);
2002
- }
2003
- function mn(e) {
2004
- const t = [];
2005
- let r;
2006
- for (; (r = e.next()) !== null; )
2007
- t.push(bn(r.asObject()));
2008
- return t;
2009
- }
2010
- const On = 979822885, gn = 2374537704;
2011
- function Fn(e) {
2012
- const t = {};
2013
- return Be(t), t;
2109
+ const Qn = 161083277, Zn = 325678206, ti = 3469892363, ei = 3645544153;
2110
+ function ri(t) {
2111
+ const e = {};
2112
+ return xt(e), e;
2014
2113
  }
2015
- function Be(e) {
2016
- return e.StyleId = "", e.Style = /* @__PURE__ */ Object.create(null), e;
2114
+ function xt(t) {
2115
+ return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ut(), t;
2017
2116
  }
2018
- function bn(e, t) {
2019
- const r = t ?? Fn();
2020
- return Be(r), Pn(e, r), r;
2117
+ function si(t, e) {
2118
+ const r = e ?? ri();
2119
+ return xt(r), ni(t, r), r;
2021
2120
  }
2022
- function Pn(e, t) {
2121
+ function ni(t, e) {
2023
2122
  let r;
2024
- for (; (r = e.next()) !== null; )
2123
+ for (; (r = t.next()) !== null; )
2025
2124
  switch (r.fieldId) {
2026
- case On: {
2125
+ case Qn: {
2027
2126
  if (r.isNull) throw new Error();
2028
- t.StyleId = r.asString();
2127
+ e.StreamId = r.asString();
2029
2128
  break;
2030
2129
  }
2031
- case gn: {
2130
+ case Zn: {
2032
2131
  if (r.isNull) throw new Error();
2033
- t.Style = kn(r.asDictionary());
2132
+ e.ClientSessionId = r.asInt32();
2034
2133
  break;
2035
2134
  }
2036
- }
2037
- }
2038
- function kn(e) {
2039
- const t = /* @__PURE__ */ Object.create(null);
2040
- let r;
2041
- for (; (r = e.next()) !== null; ) {
2042
- const s = r.key.asString();
2043
- t[s] = r.value.asString();
2044
- }
2045
- return t;
2046
- }
2047
- const pn = 2097193, Mn = 1415642792;
2048
- function Bn(e) {
2049
- const t = {};
2050
- return Ve(t), t;
2051
- }
2052
- function Ve(e) {
2053
- return e.StyleIds = [], e;
2054
- }
2055
- function Vn(e, t) {
2056
- const r = O.create(e);
2057
- return vn(r, t);
2058
- }
2059
- function vn(e, t) {
2060
- const r = t ?? Bn();
2061
- return Ve(r), Gn(e, r), r;
2062
- }
2063
- function Gn(e, t) {
2064
- let r;
2065
- for (; (r = e.next()) !== null; )
2066
- switch (r.fieldId) {
2067
- case Mn: {
2068
- if (r.isNull) throw new Error();
2069
- t.StyleIds = Hn(r.asArray());
2070
- break;
2071
- }
2072
- }
2073
- }
2074
- async function xn(e, t) {
2075
- const r = await V(e, pn);
2076
- return Vn(r, t);
2077
- }
2078
- function Hn(e) {
2079
- const t = [];
2080
- let r;
2081
- for (; (r = e.next()) !== null; )
2082
- t.push(r.asString());
2083
- return t;
2084
- }
2085
- const Wn = 2097190, Yn = 425183262, Kn = 653781469;
2086
- function $n(e) {
2087
- const t = {};
2088
- return ve(t), t;
2089
- }
2090
- function ve(e) {
2091
- return e.Json = "", e.Payloads = /* @__PURE__ */ Object.create(null), e;
2092
- }
2093
- function jn(e, t) {
2094
- const r = O.create(e);
2095
- return Xn(r, t);
2096
- }
2097
- function Xn(e, t) {
2098
- const r = t ?? $n();
2099
- return ve(r), zn(e, r), r;
2100
- }
2101
- function zn(e, t) {
2102
- let r;
2103
- for (; (r = e.next()) !== null; )
2104
- switch (r.fieldId) {
2105
- case Yn: {
2135
+ case ti: {
2106
2136
  if (r.isNull) throw new Error();
2107
- t.Json = r.asString();
2137
+ e.TrackId = r.asInt32();
2108
2138
  break;
2109
2139
  }
2110
- case Kn: {
2140
+ case ei: {
2111
2141
  if (r.isNull) throw new Error();
2112
- t.Payloads = qn(r.asDictionary());
2142
+ e.Info = vr(r.asObject());
2113
2143
  break;
2114
2144
  }
2115
2145
  }
2116
2146
  }
2117
- async function Jn(e, t) {
2118
- const r = await V(e, Wn);
2119
- return jn(r, t);
2147
+ function C(t) {
2148
+ return typeof t == "object" && t !== null && !Array.isArray(t);
2120
2149
  }
2121
- function qn(e) {
2122
- const t = /* @__PURE__ */ Object.create(null);
2123
- let r;
2124
- for (; (r = e.next()) !== null; ) {
2125
- const s = r.key.asString();
2126
- t[s] = En(r.value.asObject());
2127
- }
2128
- return t;
2129
- }
2130
- const Ge = 1, Qn = 1048636, Zn = 2610786289;
2131
- function ei(e) {
2132
- const t = new v(Ge);
2133
- return ti(e, t), t.finish();
2134
- }
2135
- function ti(e, t) {
2136
- t.writeUInt32Field(Zn, e.Version >>> 0);
2137
- }
2138
- function ri(e, t, r) {
2139
- const s = ei(e);
2140
- return Qe(Qn, s, Ge, t, r);
2141
- }
2142
- function C(e) {
2143
- return typeof e == "object" && e !== null && !Array.isArray(e);
2144
- }
2145
- function xe(e) {
2146
- const t = {}, r = Object.keys(e);
2150
+ function Ht(t) {
2151
+ const e = {}, r = Object.keys(t);
2147
2152
  for (let s = 0; s < r.length; s++) {
2148
2153
  const n = r[s];
2149
- t[n] = e[n];
2154
+ e[n] = t[n];
2150
2155
  }
2151
- return t;
2156
+ return e;
2152
2157
  }
2153
- function He(e, t, r, s) {
2154
- if (!(e === void 0 && s)) {
2155
- if (Array.isArray(e)) {
2158
+ function Yt(t, e, r, s) {
2159
+ if (!(t === void 0 && s)) {
2160
+ if (Array.isArray(t)) {
2156
2161
  const n = [];
2157
- for (let i = 0; i < e.length; i++) {
2158
- const a = e[i];
2162
+ for (let i = 0; i < t.length; i++) {
2163
+ const a = t[i];
2159
2164
  if (typeof a != "string")
2160
- throw new Error(`Invalid styleIds entry at ${t}.styleIds[${i}] for element ${r}`);
2165
+ throw new Error(`Invalid styleIds entry at ${e}.styleIds[${i}] for element ${r}`);
2161
2166
  const o = a.trim();
2162
2167
  o.length !== 0 && n.push(o);
2163
2168
  }
2164
2169
  return n;
2165
2170
  }
2166
- if (e != null)
2171
+ if (t != null)
2167
2172
  throw new Error(`Invalid styleIds for element ${r}`);
2168
2173
  return [];
2169
2174
  }
2170
2175
  }
2171
- function te(e, t) {
2172
- if (!e || typeof e != "object")
2173
- throw new Error(`Invalid UI node at ${t}`);
2174
- const r = e.Id, s = e.Type, n = e.Props, i = e.Children, a = e.StyleIds;
2176
+ function et(t, e) {
2177
+ if (!t || typeof t != "object")
2178
+ throw new Error(`Invalid UI node at ${e}`);
2179
+ const r = t.Id, s = t.Type, n = t.Props, i = t.Children, a = t.StyleIds;
2175
2180
  if (typeof r != "string")
2176
- throw new Error(`Invalid or missing node id at ${t}`);
2181
+ throw new Error(`Invalid or missing node id at ${e}`);
2177
2182
  if (typeof s != "string")
2178
2183
  throw new Error(`Invalid or missing node type for ${r}`);
2179
2184
  let o = {};
2180
2185
  if (n != null) {
2181
2186
  if (!C(n))
2182
2187
  throw new Error(`Invalid props for node ${r}`);
2183
- o = xe(n);
2188
+ o = Ht(n);
2184
2189
  }
2185
2190
  let I = [];
2186
2191
  Array.isArray(i) && (I = i.map(
2187
- (E, h) => te(E ?? {}, `${t}.children[${h}]`)
2192
+ (E, h) => et(E ?? {}, `${e}.children[${h}]`)
2188
2193
  ));
2189
- const _ = He(a, t, r, !1), l = typeof e.SourceMarker == "string" ? e.SourceMarker : void 0;
2194
+ const _ = Yt(a, e, r, !1), l = typeof t.SourceMarker == "string" ? t.SourceMarker : void 0;
2190
2195
  return {
2191
2196
  id: r,
2192
2197
  type: s,
@@ -2196,25 +2201,25 @@ function te(e, t) {
2196
2201
  ...l ? { sourceMarker: l } : {}
2197
2202
  };
2198
2203
  }
2199
- function si(e, t) {
2200
- if (!C(e))
2201
- throw new Error(`Invalid text delta at ${t}`);
2202
- const r = e.NodeId, s = e.PropertyName, n = e.Start, i = e.End, a = e.InsertedText;
2204
+ function ii(t, e) {
2205
+ if (!C(t))
2206
+ throw new Error(`Invalid text delta at ${e}`);
2207
+ const r = t.NodeId, s = t.PropertyName, n = t.Start, i = t.End, a = t.InsertedText;
2203
2208
  if (typeof r != "string" || r.length === 0)
2204
- throw new Error(`Invalid text delta node id at ${t}`);
2209
+ throw new Error(`Invalid text delta node id at ${e}`);
2205
2210
  if (typeof s != "string" || s.length === 0)
2206
- throw new Error(`Invalid text delta property name at ${t}`);
2211
+ throw new Error(`Invalid text delta property name at ${e}`);
2207
2212
  if (typeof n != "number" || !Number.isFinite(n))
2208
- throw new Error(`Invalid text delta start at ${t}`);
2213
+ throw new Error(`Invalid text delta start at ${e}`);
2209
2214
  if (typeof a != "string")
2210
- throw new Error(`Invalid text delta inserted text at ${t}`);
2215
+ throw new Error(`Invalid text delta inserted text at ${e}`);
2211
2216
  let o;
2212
2217
  if (typeof i == "number") {
2213
2218
  if (!Number.isFinite(i))
2214
- throw new Error(`Invalid text delta end at ${t}`);
2219
+ throw new Error(`Invalid text delta end at ${e}`);
2215
2220
  o = i;
2216
2221
  } else if (i != null)
2217
- throw new Error(`Invalid text delta end at ${t}`);
2222
+ throw new Error(`Invalid text delta end at ${e}`);
2218
2223
  return {
2219
2224
  nodeId: r,
2220
2225
  propertyName: s,
@@ -2223,74 +2228,74 @@ function si(e, t) {
2223
2228
  insertedText: a
2224
2229
  };
2225
2230
  }
2226
- function ni(e, t) {
2227
- if (!C(e))
2228
- throw new Error(`Invalid child insert at ${t}`);
2229
- const r = e.Index, s = e.Node;
2231
+ function ai(t, e) {
2232
+ if (!C(t))
2233
+ throw new Error(`Invalid child insert at ${e}`);
2234
+ const r = t.Index, s = t.Node;
2230
2235
  if (typeof r != "number" || !Number.isFinite(r))
2231
- throw new Error(`Invalid child insert index at ${t}`);
2236
+ throw new Error(`Invalid child insert index at ${e}`);
2232
2237
  if (!C(s))
2233
- throw new Error(`Invalid child insert node at ${t}`);
2238
+ throw new Error(`Invalid child insert node at ${e}`);
2234
2239
  return {
2235
2240
  index: r,
2236
- node: te(s, `${t}.node`)
2241
+ node: et(s, `${e}.node`)
2237
2242
  };
2238
2243
  }
2239
- function ii(e, t) {
2240
- if (!C(e))
2241
- throw new Error(`Invalid child move at ${t}`);
2242
- const r = e.NodeId, s = e.FromIndex, n = e.ToIndex;
2244
+ function oi(t, e) {
2245
+ if (!C(t))
2246
+ throw new Error(`Invalid child move at ${e}`);
2247
+ const r = t.NodeId, s = t.FromIndex, n = t.ToIndex;
2243
2248
  if (typeof r != "string" || r.length === 0)
2244
- throw new Error(`Invalid child move nodeId at ${t}`);
2249
+ throw new Error(`Invalid child move nodeId at ${e}`);
2245
2250
  if (typeof s != "number" || !Number.isFinite(s))
2246
- throw new Error(`Invalid child move fromIndex at ${t}`);
2251
+ throw new Error(`Invalid child move fromIndex at ${e}`);
2247
2252
  if (typeof n != "number" || !Number.isFinite(n))
2248
- throw new Error(`Invalid child move toIndex at ${t}`);
2253
+ throw new Error(`Invalid child move toIndex at ${e}`);
2249
2254
  return {
2250
2255
  nodeId: r,
2251
2256
  fromIndex: s,
2252
2257
  toIndex: n
2253
2258
  };
2254
2259
  }
2255
- function ai(e, t) {
2256
- if (!C(e))
2257
- throw new Error(`Invalid child remove at ${t}`);
2258
- const r = e.NodeId, s = e.Index;
2260
+ function li(t, e) {
2261
+ if (!C(t))
2262
+ throw new Error(`Invalid child remove at ${e}`);
2263
+ const r = t.NodeId, s = t.Index;
2259
2264
  if (typeof r != "string" || r.length === 0)
2260
- throw new Error(`Invalid child remove nodeId at ${t}`);
2265
+ throw new Error(`Invalid child remove nodeId at ${e}`);
2261
2266
  if (typeof s != "number" || !Number.isFinite(s))
2262
- throw new Error(`Invalid child remove index at ${t}`);
2267
+ throw new Error(`Invalid child remove index at ${e}`);
2263
2268
  return {
2264
2269
  nodeId: r,
2265
2270
  index: s
2266
2271
  };
2267
2272
  }
2268
- function oi(e, t) {
2269
- if (!C(e))
2270
- throw new Error(`Invalid node change at ${t}`);
2271
- const r = e.nodeId;
2273
+ function Ii(t, e) {
2274
+ if (!C(t))
2275
+ throw new Error(`Invalid node change at ${e}`);
2276
+ const r = t.nodeId;
2272
2277
  if (typeof r != "string" || r.length === 0)
2273
- throw new Error(`Invalid node change nodeId at ${t}`);
2274
- const s = Array.isArray(e.inserts) ? e.inserts.map(
2275
- (l, E) => ni(l ?? {}, `${t}.inserts[${E}]`)
2276
- ) : void 0, n = Array.isArray(e.moves) ? e.moves.map(
2277
- (l, E) => ii(l ?? {}, `${t}.moves[${E}]`)
2278
- ) : void 0, i = Array.isArray(e.removals) ? e.removals.map(
2279
- (l, E) => ai(l ?? {}, `${t}.removals[${E}]`)
2278
+ throw new Error(`Invalid node change nodeId at ${e}`);
2279
+ const s = Array.isArray(t.inserts) ? t.inserts.map(
2280
+ (l, E) => ai(l ?? {}, `${e}.inserts[${E}]`)
2281
+ ) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
2282
+ (l, E) => oi(l ?? {}, `${e}.moves[${E}]`)
2283
+ ) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
2284
+ (l, E) => li(l ?? {}, `${e}.removals[${E}]`)
2280
2285
  ) : void 0;
2281
2286
  let a;
2282
- if (C(e.changedProps)) {
2287
+ if (C(t.changedProps)) {
2283
2288
  a = /* @__PURE__ */ new Map();
2284
- for (const [l, E] of Object.entries(e.changedProps)) {
2289
+ for (const [l, E] of Object.entries(t.changedProps)) {
2285
2290
  if (!C(E))
2286
2291
  continue;
2287
2292
  const h = E.New;
2288
- h === void 0 ? a.set(l, void 0) : C(h) ? a.set(l, xe(h)) : a.set(l, h);
2293
+ h === void 0 ? a.set(l, void 0) : C(h) ? a.set(l, Ht(h)) : a.set(l, h);
2289
2294
  }
2290
2295
  }
2291
- const o = Array.isArray(e.textUpdates) ? e.textUpdates.map(
2292
- (l, E) => si(l ?? {}, `${t}.textUpdates[${E}]`)
2293
- ) : void 0, I = e.styleIds, _ = I !== void 0 ? He(I, t, r, !0) : void 0;
2296
+ const o = Array.isArray(t.textUpdates) ? t.textUpdates.map(
2297
+ (l, E) => ii(l ?? {}, `${e}.textUpdates[${E}]`)
2298
+ ) : void 0, I = t.styleIds, _ = I !== void 0 ? Yt(I, e, r, !0) : void 0;
2294
2299
  return {
2295
2300
  nodeId: r,
2296
2301
  ...s && s.length > 0 ? { inserts: s } : {},
@@ -2301,19 +2306,19 @@ function oi(e, t) {
2301
2306
  ..._ !== void 0 ? { styleIds: _ } : {}
2302
2307
  };
2303
2308
  }
2304
- function li(e) {
2305
- const t = /* @__PURE__ */ new Map();
2306
- for (const [r, s] of Object.entries(e))
2307
- t.set(r, s);
2308
- return t;
2309
+ function Ei(t) {
2310
+ const e = /* @__PURE__ */ new Map();
2311
+ for (const [r, s] of Object.entries(t))
2312
+ e.set(r, s);
2313
+ return e;
2309
2314
  }
2310
- function Ii(e, t, r) {
2311
- if (!e || typeof e != "object")
2315
+ function _i(t, e, r) {
2316
+ if (!t || typeof t != "object")
2312
2317
  throw new U("UI update graph is missing");
2313
- const s = te(e, "graph");
2318
+ const s = et(t, "graph");
2314
2319
  if (s.type !== "root")
2315
2320
  throw new U('UI update root element must have type "root"');
2316
- const n = _i(s.props, t);
2321
+ const n = ui(s.props, e);
2317
2322
  return {
2318
2323
  type: "full",
2319
2324
  version: r,
@@ -2321,17 +2326,17 @@ function Ii(e, t, r) {
2321
2326
  metadata: n
2322
2327
  };
2323
2328
  }
2324
- function Ei(e, t, r) {
2325
- if (!Array.isArray(e))
2329
+ function hi(t, e, r) {
2330
+ if (!Array.isArray(t))
2326
2331
  throw new U("UI diff changes must be an array");
2327
- if (!C(t))
2332
+ if (!C(e))
2328
2333
  throw new U("UI diff metadata must be an object");
2329
- const s = t.viewId;
2334
+ const s = e.viewId;
2330
2335
  if (typeof s != "string" || s.length === 0)
2331
2336
  throw new U("UI diff metadata is missing viewId");
2332
- const n = e.map(
2333
- (o, I) => oi(o ?? {}, `changes[${I}]`)
2334
- ), i = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0, a = {
2337
+ const n = t.map(
2338
+ (o, I) => Ii(o ?? {}, `changes[${I}]`)
2339
+ ), i = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0, a = {
2335
2340
  viewId: s,
2336
2341
  ...i !== void 0 ? { isUpdate: i } : {}
2337
2342
  };
@@ -2342,50 +2347,50 @@ function Ei(e, t, r) {
2342
2347
  metadata: a
2343
2348
  };
2344
2349
  }
2345
- function _i(e, t) {
2346
- const r = e.viewId;
2350
+ function ui(t, e) {
2351
+ const r = t.viewId;
2347
2352
  if (typeof r != "string" || r.length === 0)
2348
2353
  throw new U("UI update root is missing viewId");
2349
- let s = r, n = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0;
2350
- return C(t) && (typeof t.viewId == "string" && t.viewId.length > 0 && (s = t.viewId), typeof t.isUpdate == "boolean" && (n = t.isUpdate)), {
2354
+ let s = r, n = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0;
2355
+ return C(e) && (typeof e.viewId == "string" && e.viewId.length > 0 && (s = e.viewId), typeof e.isUpdate == "boolean" && (n = e.isUpdate)), {
2351
2356
  viewId: s,
2352
2357
  ...n !== void 0 ? { isUpdate: n } : {}
2353
2358
  };
2354
2359
  }
2355
2360
  class U extends Error {
2356
- constructor(t, r) {
2357
- super(t), this.causeError = r, this.name = "UiUpdateParseError", r instanceof Error && (this.stack = r.stack);
2361
+ constructor(e, r) {
2362
+ super(e), this.causeError = r, this.name = "UiUpdateParseError", r instanceof Error && (this.stack = r.stack);
2358
2363
  }
2359
2364
  }
2360
- function hi(e) {
2361
- let t;
2365
+ function ci(t) {
2366
+ let e;
2362
2367
  try {
2363
- t = JSON.parse(e.Json);
2368
+ e = JSON.parse(t.Json);
2364
2369
  } catch (a) {
2365
2370
  throw new U("Failed to parse UIUpdate.Json payload", a);
2366
2371
  }
2367
- if (!t || typeof t != "object")
2372
+ if (!e || typeof e != "object")
2368
2373
  throw new U("UI update snapshot must be an object");
2369
- const { type: r, version: s } = t;
2374
+ const { type: r, version: s } = e;
2370
2375
  if (r !== "full" && r !== "diff")
2371
2376
  throw new U(`Unknown UI update type: ${String(r)}`);
2372
2377
  if (typeof s != "number")
2373
2378
  throw new U("UI update version must be a number");
2374
- const n = r === "full" ? Ii(t.graph, t.metadata, s) : Ei(t.changes, t.metadata, s), i = e.Payloads ? li(e.Payloads) : /* @__PURE__ */ new Map();
2379
+ const n = r === "full" ? _i(e.graph, e.metadata, s) : hi(e.changes, e.metadata, s), i = t.Payloads ? Ei(t.Payloads) : /* @__PURE__ */ new Map();
2375
2380
  return {
2376
2381
  snapshot: n,
2377
2382
  payloads: i
2378
2383
  };
2379
2384
  }
2380
- class ui {
2385
+ class fi {
2381
2386
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2382
2387
  cache = /* @__PURE__ */ new Map();
2383
2388
  /**
2384
2389
  * Get a cached void handler (no payload) for a node/action combination.
2385
2390
  * Creates and caches the handler if it doesn't exist.
2386
2391
  */
2387
- getHandler(t, r, s) {
2388
- const n = `${t}:${r}`;
2392
+ getHandler(e, r, s) {
2393
+ const n = `${e}:${r}`;
2389
2394
  let i = this.cache.get(n);
2390
2395
  return i || (i = () => s(r), this.cache.set(n, i)), i;
2391
2396
  }
@@ -2393,40 +2398,40 @@ class ui {
2393
2398
  * Get a cached handler that accepts a payload.
2394
2399
  * Creates and caches the handler if it doesn't exist.
2395
2400
  */
2396
- getHandlerWithPayload(t, r, s) {
2397
- const n = `${t}:${r}:payload`;
2401
+ getHandlerWithPayload(e, r, s) {
2402
+ const n = `${e}:${r}:payload`;
2398
2403
  let i = this.cache.get(n);
2399
2404
  return i || (i = (a) => s(r, a), this.cache.set(n, i)), i;
2400
2405
  }
2401
2406
  /**
2402
2407
  * Get a cached handler for boolean payloads.
2403
2408
  */
2404
- getBooleanHandler(t, r, s) {
2405
- return this.getHandlerWithPayload(t, r, s);
2409
+ getBooleanHandler(e, r, s) {
2410
+ return this.getHandlerWithPayload(e, r, s);
2406
2411
  }
2407
2412
  /**
2408
2413
  * Get a cached handler for string payloads.
2409
2414
  */
2410
- getStringHandler(t, r, s) {
2411
- return this.getHandlerWithPayload(t, r, s);
2415
+ getStringHandler(e, r, s) {
2416
+ return this.getHandlerWithPayload(e, r, s);
2412
2417
  }
2413
2418
  /**
2414
2419
  * Get a cached handler for number payloads.
2415
2420
  */
2416
- getNumberHandler(t, r, s) {
2417
- return this.getHandlerWithPayload(t, r, s);
2421
+ getNumberHandler(e, r, s) {
2422
+ return this.getHandlerWithPayload(e, r, s);
2418
2423
  }
2419
2424
  /**
2420
2425
  * Get a cached handler for number array payloads.
2421
2426
  */
2422
- getNumberArrayHandler(t, r, s) {
2423
- return this.getHandlerWithPayload(t, r, s);
2427
+ getNumberArrayHandler(e, r, s) {
2428
+ return this.getHandlerWithPayload(e, r, s);
2424
2429
  }
2425
2430
  /**
2426
2431
  * Get a cached handler for nullable boolean payloads.
2427
2432
  */
2428
- getNullableBooleanHandler(t, r, s) {
2429
- const n = `${t}:${r}:nullable-bool`;
2433
+ getNullableBooleanHandler(e, r, s) {
2434
+ const n = `${e}:${r}:nullable-bool`;
2430
2435
  let i = this.cache.get(n);
2431
2436
  return i || (i = (a) => s(r, a ?? null), this.cache.set(n, i)), i;
2432
2437
  }
@@ -2434,16 +2439,16 @@ class ui {
2434
2439
  * Invalidate all cached handlers for a specific node.
2435
2440
  * Call this when a node is removed from the tree.
2436
2441
  */
2437
- invalidateNode(t) {
2438
- const r = `${t}:`;
2442
+ invalidateNode(e) {
2443
+ const r = `${e}:`;
2439
2444
  for (const s of this.cache.keys())
2440
2445
  s.startsWith(r) && this.cache.delete(s);
2441
2446
  }
2442
2447
  /**
2443
2448
  * Invalidate a specific handler.
2444
2449
  */
2445
- invalidateHandler(t, r) {
2446
- this.cache.delete(`${t}:${r}`), this.cache.delete(`${t}:${r}:payload`), this.cache.delete(`${t}:${r}:nullable-bool`);
2450
+ invalidateHandler(e, r) {
2451
+ this.cache.delete(`${e}:${r}`), this.cache.delete(`${e}:${r}:payload`), this.cache.delete(`${e}:${r}:nullable-bool`);
2447
2452
  }
2448
2453
  /**
2449
2454
  * Clear all cached handlers.
@@ -2458,7 +2463,7 @@ class ui {
2458
2463
  return this.cache.size;
2459
2464
  }
2460
2465
  }
2461
- class ci {
2466
+ class Ti {
2462
2467
  views = /* @__PURE__ */ new Map();
2463
2468
  listeners = /* @__PURE__ */ new Set();
2464
2469
  payloads = /* @__PURE__ */ new Map();
@@ -2478,10 +2483,10 @@ class ci {
2478
2483
  viewsDirty = !0;
2479
2484
  payloadsDirty = !0;
2480
2485
  // Handler cache for stable event handlers
2481
- handlerCache = new ui();
2482
- apply(t) {
2486
+ handlerCache = new fi();
2487
+ apply(e) {
2483
2488
  if (this.snapshotMode) {
2484
- if (t.snapshot.type !== "full")
2489
+ if (e.snapshot.type !== "full")
2485
2490
  return !1;
2486
2491
  this.snapshotMode = !1, this.views.clear(), this.payloads.clear(), this.rootViewId = void 0, this.viewsDirty = !0, this.payloadsDirty = !0, this.snapshot = {
2487
2492
  views: /* @__PURE__ */ new Map(),
@@ -2489,7 +2494,7 @@ class ci {
2489
2494
  version: -1
2490
2495
  };
2491
2496
  }
2492
- const { snapshot: r, payloads: s } = t, { metadata: n } = r, { viewId: i } = n;
2497
+ const { snapshot: r, payloads: s } = e, { metadata: n } = r, { viewId: i } = n;
2493
2498
  let a = this.views.get(i);
2494
2499
  a || (a = {
2495
2500
  version: 0
@@ -2501,52 +2506,52 @@ class ci {
2501
2506
  this.rootViewId || (this.rootViewId = i, I = !0, this.structureChanged = !0);
2502
2507
  const _ = a.root;
2503
2508
  if (r.type === "full")
2504
- a.root = r.root, a.version = r.version, I = !0, this.viewsDirty = !0, this.structureChanged = !0, r.root && B(r.root, this.changedNodeIds);
2509
+ a.root = r.root, a.version = r.version, I = !0, this.viewsDirty = !0, this.structureChanged = !0, r.root && V(r.root, this.changedNodeIds);
2505
2510
  else {
2506
2511
  if (!_)
2507
2512
  return !1;
2508
- const l = Ti(_, r.changes);
2513
+ const l = Si(_, r.changes);
2509
2514
  l !== _ ? (a.root = l, I = !0, this.viewsDirty = !0, $(_, l, this.changedNodeIds)) : a.root = l, a.version = r.version;
2510
2515
  }
2511
2516
  for (const [l, E] of s)
2512
2517
  this.payloads.get(l) !== E && (this.payloads.set(l, E), I = !0, this.payloadsDirty = !0);
2513
2518
  return I ? (this.commitSnapshot(), this.notify(), !0) : (a.version = r.version, !1);
2514
2519
  }
2515
- replaceFromWire(t) {
2520
+ replaceFromWire(e) {
2516
2521
  const r = {
2517
- rootViewId: t.rootViewId,
2518
- views: new Map(t.views),
2519
- payloads: new Map(t.payloads),
2520
- version: t.version
2522
+ rootViewId: e.rootViewId,
2523
+ views: new Map(e.views),
2524
+ payloads: new Map(e.payloads),
2525
+ version: e.version
2521
2526
  };
2522
2527
  return this.replaceSnapshot(r);
2523
2528
  }
2524
- patchFromOp(t) {
2529
+ patchFromOp(e) {
2525
2530
  this.snapshotMode = !0;
2526
- const r = t.expectedBaseVersion;
2531
+ const r = e.expectedBaseVersion;
2527
2532
  if (r !== void 0 && this.snapshot.version !== r)
2528
2533
  return !1;
2529
2534
  let s = !1, n = null, i = null;
2530
2535
  const a = () => (n || (n = new Map(this.snapshot.views)), n), o = () => (i || (i = new Map(this.snapshot.payloads)), i);
2531
- if (t.deleteViews && t.deleteViews.length > 0)
2532
- for (const l of t.deleteViews)
2536
+ if (e.deleteViews && e.deleteViews.length > 0)
2537
+ for (const l of e.deleteViews)
2533
2538
  a().delete(l) && (s = !0, this.structureChanged = !0);
2534
- if (t.upsertViews && t.upsertViews.length > 0)
2535
- for (const [l, E] of t.upsertViews) {
2539
+ if (e.upsertViews && e.upsertViews.length > 0)
2540
+ for (const [l, E] of e.upsertViews) {
2536
2541
  const h = a(), T = h.get(l);
2537
- T !== E && (h.set(l, E), s = !0, T ? $(T, E, this.changedNodeIds) : (B(E, this.changedNodeIds), this.structureChanged = !0));
2542
+ T !== E && (h.set(l, E), s = !0, T ? $(T, E, this.changedNodeIds) : (V(E, this.changedNodeIds), this.structureChanged = !0));
2538
2543
  }
2539
- if (t.deletePayloads && t.deletePayloads.length > 0)
2540
- for (const l of t.deletePayloads)
2544
+ if (e.deletePayloads && e.deletePayloads.length > 0)
2545
+ for (const l of e.deletePayloads)
2541
2546
  o().delete(l) && (s = !0);
2542
- if (t.upsertPayloads && t.upsertPayloads.length > 0)
2543
- for (const [l, E] of t.upsertPayloads) {
2547
+ if (e.upsertPayloads && e.upsertPayloads.length > 0)
2548
+ for (const [l, E] of e.upsertPayloads) {
2544
2549
  const h = o();
2545
2550
  h.get(l) !== E && (h.set(l, E), s = !0);
2546
2551
  }
2547
- const I = t.rootViewId ?? this.snapshot.rootViewId;
2552
+ const I = e.rootViewId ?? this.snapshot.rootViewId;
2548
2553
  I !== this.snapshot.rootViewId && (s = !0, this.structureChanged = !0);
2549
- const _ = t.nextVersion;
2554
+ const _ = e.nextVersion;
2550
2555
  if (_ !== this.snapshot.version && (s = !0), !s)
2551
2556
  return this.snapshot = { ...this.snapshot, version: _ }, !1;
2552
2557
  for (const l of this.changedNodeIds)
@@ -2558,17 +2563,17 @@ class ci {
2558
2563
  version: _
2559
2564
  }, this.notify(), !0;
2560
2565
  }
2561
- replaceSnapshot(t) {
2566
+ replaceSnapshot(e) {
2562
2567
  this.snapshotMode = !0;
2563
- const r = this.snapshot, s = r.version !== t.version || r.rootViewId !== t.rootViewId || r.views.size !== t.views.size || r.payloads.size !== t.payloads.size;
2564
- (r.rootViewId !== t.rootViewId || r.views.size !== t.views.size) && (this.structureChanged = !0);
2565
- for (const [n, i] of t.views) {
2568
+ const r = this.snapshot, s = r.version !== e.version || r.rootViewId !== e.rootViewId || r.views.size !== e.views.size || r.payloads.size !== e.payloads.size;
2569
+ (r.rootViewId !== e.rootViewId || r.views.size !== e.views.size) && (this.structureChanged = !0);
2570
+ for (const [n, i] of e.views) {
2566
2571
  const a = r.views.get(n);
2567
- a ? $(a, i, this.changedNodeIds) : (B(i, this.changedNodeIds), this.structureChanged = !0);
2572
+ a ? $(a, i, this.changedNodeIds) : (V(i, this.changedNodeIds), this.structureChanged = !0);
2568
2573
  }
2569
2574
  for (const n of this.changedNodeIds)
2570
2575
  this.nodeVersions.set(n, (this.nodeVersions.get(n) ?? 0) + 1);
2571
- return this.snapshot = t, s && this.notify(), s;
2576
+ return this.snapshot = e, s && this.notify(), s;
2572
2577
  }
2573
2578
  clear() {
2574
2579
  (this.snapshot.rootViewId === void 0 || this.snapshot.rootViewId.length === 0) && this.snapshot.views.size === 0 && this.snapshot.payloads.size === 0 || (this.snapshotMode = !0, this.views.clear(), this.payloads.clear(), this.rootViewId = void 0, this.viewsDirty = !0, this.payloadsDirty = !0, this.snapshot = {
@@ -2580,37 +2585,37 @@ class ci {
2580
2585
  getSnapshot() {
2581
2586
  return this.snapshot;
2582
2587
  }
2583
- subscribe(t) {
2584
- return this.listeners.add(t), () => {
2585
- this.listeners.delete(t);
2588
+ subscribe(e) {
2589
+ return this.listeners.add(e), () => {
2590
+ this.listeners.delete(e);
2586
2591
  };
2587
2592
  }
2588
- subscribeNode(t, r) {
2589
- let s = this.nodeListeners.get(t);
2590
- return s || (s = /* @__PURE__ */ new Set(), this.nodeListeners.set(t, s)), s.add(r), () => {
2591
- s && (s.delete(r), s.size === 0 && this.nodeListeners.delete(t));
2593
+ subscribeNode(e, r) {
2594
+ let s = this.nodeListeners.get(e);
2595
+ return s || (s = /* @__PURE__ */ new Set(), this.nodeListeners.set(e, s)), s.add(r), () => {
2596
+ s && (s.delete(r), s.size === 0 && this.nodeListeners.delete(e));
2592
2597
  };
2593
2598
  }
2594
- getNode(t) {
2595
- const r = this.snapshot.views.get(t);
2599
+ getNode(e) {
2600
+ const r = this.snapshot.views.get(e);
2596
2601
  if (r)
2597
2602
  return r;
2598
2603
  for (const s of this.snapshot.views.values()) {
2599
- const n = Ke(s, t);
2604
+ const n = $t(s, e);
2600
2605
  if (n)
2601
2606
  return n;
2602
2607
  }
2603
2608
  }
2604
- getNodeVersion(t) {
2605
- return this.nodeVersions.get(t) ?? 0;
2609
+ getNodeVersion(e) {
2610
+ return this.nodeVersions.get(e) ?? 0;
2606
2611
  }
2607
2612
  notifyNodes() {
2608
2613
  if (this.changedNodeIds.size === 0 || this.nodeListeners.size === 0) {
2609
2614
  this.changedNodeIds.clear();
2610
2615
  return;
2611
2616
  }
2612
- for (const t of this.changedNodeIds) {
2613
- const r = this.nodeListeners.get(t);
2617
+ for (const e of this.changedNodeIds) {
2618
+ const r = this.nodeListeners.get(e);
2614
2619
  if (r)
2615
2620
  for (const s of r)
2616
2621
  s();
@@ -2618,14 +2623,14 @@ class ci {
2618
2623
  this.changedNodeIds.clear();
2619
2624
  }
2620
2625
  commitSnapshot() {
2621
- let t, r;
2626
+ let e, r;
2622
2627
  if (this.viewsDirty) {
2623
2628
  const n = /* @__PURE__ */ new Map();
2624
2629
  for (const [i, a] of this.views)
2625
2630
  a.root && n.set(i, a.root);
2626
- t = n, this.viewsDirty = !1;
2631
+ e = n, this.viewsDirty = !1;
2627
2632
  } else
2628
- t = this.snapshot.views;
2633
+ e = this.snapshot.views;
2629
2634
  this.payloadsDirty ? (r = new Map(this.payloads), this.payloadsDirty = !1) : r = this.snapshot.payloads;
2630
2635
  let s = this.rootViewId && this.views.has(this.rootViewId) ? this.views.get(this.rootViewId)?.version : void 0;
2631
2636
  if (s === void 0)
@@ -2633,7 +2638,7 @@ class ci {
2633
2638
  s = s === void 0 ? n.version : Math.max(s, n.version);
2634
2639
  this.snapshot = {
2635
2640
  rootViewId: this.rootViewId,
2636
- views: t,
2641
+ views: e,
2637
2642
  payloads: r,
2638
2643
  version: s
2639
2644
  };
@@ -2643,95 +2648,95 @@ class ci {
2643
2648
  notify() {
2644
2649
  if (this.notifyNodes(), this.structureChanged) {
2645
2650
  this.structureChanged = !1;
2646
- for (const t of this.listeners)
2647
- t();
2651
+ for (const e of this.listeners)
2652
+ e();
2648
2653
  }
2649
2654
  }
2650
2655
  }
2651
- class fi {
2656
+ class Ai {
2652
2657
  streams = /* @__PURE__ */ new Map();
2653
2658
  listeners = /* @__PURE__ */ new Set();
2654
- apply(t, r) {
2655
- const n = this.getOrCreateStreamEntry(t).store.apply(r);
2656
- return n && this.notify(t), n;
2657
- }
2658
- applyStoreOp(t) {
2659
- if (t.type === "ReplaceStreamSnapshot") {
2660
- const r = this.getOrCreateStreamEntry(t.snapshot.streamId), s = r.category !== t.snapshot.category;
2661
- return r.category = t.snapshot.category, r.store.replaceFromWire(t.snapshot) || s ? (this.notify(t.snapshot.streamId), !0) : !1;
2659
+ apply(e, r) {
2660
+ const n = this.getOrCreateStreamEntry(e).store.apply(r);
2661
+ return n && this.notify(e), n;
2662
+ }
2663
+ applyStoreOp(e) {
2664
+ if (e.type === "ReplaceStreamSnapshot") {
2665
+ const r = this.getOrCreateStreamEntry(e.snapshot.streamId), s = r.category !== e.snapshot.category;
2666
+ return r.category = e.snapshot.category, r.store.replaceFromWire(e.snapshot) || s ? (this.notify(e.snapshot.streamId), !0) : !1;
2662
2667
  }
2663
- if (t.type === "PatchStreamSnapshot") {
2664
- const r = this.getOrCreateStreamEntry(t.streamId), s = t.category !== void 0 && r.category !== t.category;
2665
- return t.category !== void 0 && (r.category = t.category), r.store.patchFromOp(t) || s ? (this.notify(t.streamId), !0) : !1;
2668
+ if (e.type === "PatchStreamSnapshot") {
2669
+ const r = this.getOrCreateStreamEntry(e.streamId), s = e.category !== void 0 && r.category !== e.category;
2670
+ return e.category !== void 0 && (r.category = e.category), r.store.patchFromOp(e) || s ? (this.notify(e.streamId), !0) : !1;
2666
2671
  }
2667
- if (t.type === "ClearStream") {
2668
- const r = this.streams.get(t.streamId);
2669
- return r ? (r.store.clear(), this.notify(t.streamId), !0) : !1;
2672
+ if (e.type === "ClearStream") {
2673
+ const r = this.streams.get(e.streamId);
2674
+ return r ? (r.store.clear(), this.notify(e.streamId), !0) : !1;
2670
2675
  }
2671
- return t.type === "RemoveStream" ? this.streams.delete(t.streamId) ? (this.notify(t.streamId), !0) : !1 : t.type === "SetStreamCategory" ? (this.setCategory(t.streamId, t.category), !0) : !1;
2676
+ return e.type === "RemoveStream" ? this.streams.delete(e.streamId) ? (this.notify(e.streamId), !0) : !1 : e.type === "SetStreamCategory" ? (this.setCategory(e.streamId, e.category), !0) : !1;
2672
2677
  }
2673
- applyStoreOps(t) {
2674
- for (const r of t)
2678
+ applyStoreOps(e) {
2679
+ for (const r of e)
2675
2680
  this.applyStoreOp(r);
2676
2681
  }
2677
- clear(t) {
2678
- const r = this.streams.get(t);
2679
- r && (r.store.clear(), this.notify(t));
2682
+ clear(e) {
2683
+ const r = this.streams.get(e);
2684
+ r && (r.store.clear(), this.notify(e));
2680
2685
  }
2681
- remove(t) {
2682
- this.streams.delete(t) && this.notify(t);
2686
+ remove(e) {
2687
+ this.streams.delete(e) && this.notify(e);
2683
2688
  }
2684
- setCategory(t, r) {
2685
- const s = this.getOrCreateStreamEntry(t);
2686
- s.category !== r && (s.category = r, this.notify(t));
2689
+ setCategory(e, r) {
2690
+ const s = this.getOrCreateStreamEntry(e);
2691
+ s.category !== r && (s.category = r, this.notify(e));
2687
2692
  }
2688
- getSnapshot(t) {
2689
- const r = this.streams.get(t);
2693
+ getSnapshot(e) {
2694
+ const r = this.streams.get(e);
2690
2695
  return r ? {
2691
2696
  ...r.store.getSnapshot(),
2692
- streamId: t,
2697
+ streamId: e,
2693
2698
  category: r.category
2694
2699
  } : void 0;
2695
2700
  }
2696
2701
  getSnapshots() {
2697
- const t = [];
2702
+ const e = [];
2698
2703
  for (const [r, s] of this.streams) {
2699
2704
  const n = s.store.getSnapshot();
2700
- t.push({
2705
+ e.push({
2701
2706
  ...n,
2702
2707
  streamId: r,
2703
2708
  category: s.category
2704
2709
  });
2705
2710
  }
2706
- return t;
2711
+ return e;
2707
2712
  }
2708
- subscribe(t) {
2709
- return this.listeners.add(t), () => {
2710
- this.listeners.delete(t);
2713
+ subscribe(e) {
2714
+ return this.listeners.add(e), () => {
2715
+ this.listeners.delete(e);
2711
2716
  };
2712
2717
  }
2713
- getOrCreateStreamEntry(t) {
2714
- let r = this.streams.get(t);
2715
- return r || (r = { store: new ci() }, this.streams.set(t, r)), r;
2718
+ getOrCreateStreamEntry(e) {
2719
+ let r = this.streams.get(e);
2720
+ return r || (r = { store: new Ti() }, this.streams.set(e, r)), r;
2716
2721
  }
2717
- notify(t) {
2722
+ notify(e) {
2718
2723
  for (const r of this.listeners)
2719
- r(t);
2724
+ r(e);
2720
2725
  }
2721
2726
  }
2722
- function Ti(e, t, r) {
2723
- if (t.length === 0)
2724
- return e;
2727
+ function Si(t, e, r) {
2728
+ if (e.length === 0)
2729
+ return t;
2725
2730
  const s = /* @__PURE__ */ new Map();
2726
- for (const n of t)
2731
+ for (const n of e)
2727
2732
  s.set(n.nodeId, n);
2728
- return We(e, s);
2733
+ return Wt(t, s);
2729
2734
  }
2730
- function We(e, t, r) {
2731
- const s = t.get(e.id);
2732
- let n = e, i = !1;
2735
+ function Wt(t, e, r) {
2736
+ const s = e.get(t.id);
2737
+ let n = t, i = !1;
2733
2738
  if (s?.textUpdates && s.textUpdates.length > 0) {
2734
- const u = di(e, s.textUpdates);
2739
+ const u = wi(t, s.textUpdates);
2735
2740
  n = u.node, i = u.changed;
2736
2741
  }
2737
2742
  let a = !1, o = n.props;
@@ -2739,15 +2744,15 @@ function We(e, t, r) {
2739
2744
  for (const [u, S] of s.changedProps.entries()) {
2740
2745
  const f = o[u];
2741
2746
  if (S === void 0)
2742
- (f !== void 0 || u in o) && (a || (o = M(o), a = !0), delete o[u]);
2747
+ (f !== void 0 || u in o) && (a || (o = p(o), a = !0), delete o[u]);
2743
2748
  else if (X(S)) {
2744
- const A = M(S);
2745
- k(A, f) || (a || (o = M(o), a = !0), o[u] = A);
2749
+ const A = p(S);
2750
+ k(A, f) || (a || (o = p(o), a = !0), o[u] = A);
2746
2751
  } else
2747
- k(S, f) || (a || (o = M(o), a = !0), o[u] = S);
2752
+ k(S, f) || (a || (o = p(o), a = !0), o[u] = S);
2748
2753
  }
2749
2754
  let I = !1, _ = n.styleIds;
2750
- s?.styleIds !== void 0 && ($e(n.styleIds, s.styleIds) || (_ = s.styleIds, I = !0));
2755
+ s?.styleIds !== void 0 && (jt(n.styleIds, s.styleIds) || (_ = s.styleIds, I = !0));
2751
2756
  const l = n.children ?? [];
2752
2757
  let E = l, h = !1;
2753
2758
  if (s?.removals && s.removals.length > 0 || s?.moves && s.moves.length > 0 || s?.inserts && s.inserts.length > 0) {
@@ -2790,95 +2795,95 @@ function We(e, t, r) {
2790
2795
  }
2791
2796
  let d;
2792
2797
  for (let u = 0; u < E.length; u++) {
2793
- const S = E[u], f = We(S, t);
2798
+ const S = E[u], f = Wt(S, e);
2794
2799
  f !== S && (d || (d = E.slice()), d[u] = f);
2795
2800
  }
2796
2801
  return d && (E = d, h = !0), i || a || I || h ? !a && !h && !I ? n : {
2797
- id: e.id,
2798
- type: e.type,
2802
+ id: t.id,
2803
+ type: t.type,
2799
2804
  props: a ? o : n.props,
2800
2805
  children: h ? E : l,
2801
2806
  styleIds: I ? _ : n.styleIds,
2802
- ...e.sourceMarker ? { sourceMarker: e.sourceMarker } : {}
2803
- } : e;
2807
+ ...t.sourceMarker ? { sourceMarker: t.sourceMarker } : {}
2808
+ } : t;
2804
2809
  }
2805
- function B(e, t) {
2806
- if (t.add(e.id), e.children)
2807
- for (const r of e.children)
2808
- B(r, t);
2810
+ function V(t, e) {
2811
+ if (e.add(t.id), t.children)
2812
+ for (const r of t.children)
2813
+ V(r, e);
2809
2814
  }
2810
2815
  const x = [];
2811
- function Ai(e) {
2812
- for (; x.length <= e; )
2816
+ function Ni(t) {
2817
+ for (; x.length <= t; )
2813
2818
  x.push(/* @__PURE__ */ new Map());
2814
- return x[e].clear(), x[e];
2819
+ return x[t].clear(), x[t];
2815
2820
  }
2816
- function $(e, t, r) {
2817
- Ye(e, t, r, 0);
2821
+ function $(t, e, r) {
2822
+ Kt(t, e, r, 0);
2818
2823
  }
2819
- function Ye(e, t, r, s) {
2820
- if (e === t)
2824
+ function Kt(t, e, r, s) {
2825
+ if (t === e)
2821
2826
  return;
2822
- (e.type !== t.type || !Si(e.props, t.props) || !$e(e.styleIds, t.styleIds)) && r.add(t.id);
2823
- const i = e.children ?? [], a = t.children ?? [];
2827
+ (t.type !== e.type || !di(t.props, e.props) || !jt(t.styleIds, e.styleIds)) && r.add(e.id);
2828
+ const i = t.children ?? [], a = e.children ?? [];
2824
2829
  if (i !== a) {
2825
- const o = Ai(s);
2830
+ const o = Ni(s);
2826
2831
  for (const _ of i)
2827
2832
  o.set(_.id, _);
2828
2833
  let I = !1;
2829
2834
  for (let _ = 0; _ < a.length; _++) {
2830
2835
  const l = a[_], E = o.get(l.id);
2831
- E ? (Ye(E, l, r, s + 1), !I && _ < i.length && i[_].id !== l.id && (I = !0)) : (B(l, r), I = !0);
2836
+ E ? (Kt(E, l, r, s + 1), !I && _ < i.length && i[_].id !== l.id && (I = !0)) : (V(l, r), I = !0);
2832
2837
  }
2833
- (i.length !== a.length || I) && r.add(t.id);
2838
+ (i.length !== a.length || I) && r.add(e.id);
2834
2839
  }
2835
2840
  }
2836
- function Si(e, t) {
2837
- return k(e, t);
2841
+ function di(t, e) {
2842
+ return k(t, e);
2838
2843
  }
2839
- function Ke(e, t) {
2840
- if (e.id === t)
2841
- return e;
2842
- if (e.children)
2843
- for (const r of e.children) {
2844
- const s = Ke(r, t);
2844
+ function $t(t, e) {
2845
+ if (t.id === e)
2846
+ return t;
2847
+ if (t.children)
2848
+ for (const r of t.children) {
2849
+ const s = $t(r, e);
2845
2850
  if (s)
2846
2851
  return s;
2847
2852
  }
2848
2853
  }
2849
- function $e(e, t) {
2850
- return k(e, t);
2854
+ function jt(t, e) {
2855
+ return k(t, e);
2851
2856
  }
2852
- function Ni(e, t) {
2853
- if (t.length === 0)
2854
- return e;
2855
- const r = [...t].sort((i, a) => i.start - a.start);
2856
- let s = e, n = 0;
2857
+ function yi(t, e) {
2858
+ if (e.length === 0)
2859
+ return t;
2860
+ const r = [...e].sort((i, a) => i.start - a.start);
2861
+ let s = t, n = 0;
2857
2862
  for (const i of r) {
2858
- const a = ne(i.start + n, 0, s.length);
2863
+ const a = nt(i.start + n, 0, s.length);
2859
2864
  if (i.end == null) {
2860
- const l = s.slice(a), E = yi(l, i.insertedText);
2865
+ const l = s.slice(a), E = Ci(l, i.insertedText);
2861
2866
  s = s.slice(0, a) + i.insertedText + l.slice(E), n += i.insertedText.length - E;
2862
2867
  continue;
2863
2868
  }
2864
- const o = i.end + n, I = ne(o, a, s.length), _ = I - a;
2869
+ const o = i.end + n, I = nt(o, a, s.length), _ = I - a;
2865
2870
  s = s.slice(0, a) + i.insertedText + s.slice(I), n += i.insertedText.length - _;
2866
2871
  }
2867
2872
  return s;
2868
2873
  }
2869
- function di(e, t, r) {
2870
- if (t.length === 0)
2871
- return { node: e, changed: !1 };
2874
+ function wi(t, e, r) {
2875
+ if (e.length === 0)
2876
+ return { node: t, changed: !1 };
2872
2877
  const s = /* @__PURE__ */ new Map();
2873
- for (const n of t) {
2878
+ for (const n of e) {
2874
2879
  const i = s.get(n.nodeId);
2875
2880
  i ? i.push(n) : s.set(n.nodeId, [n]);
2876
2881
  }
2877
- return je(e, s);
2882
+ return Xt(t, s);
2878
2883
  }
2879
- function je(e, t, r) {
2880
- const s = t.get(e.id) ?? [];
2881
- let n = !1, i = e.props;
2884
+ function Xt(t, e, r) {
2885
+ const s = e.get(t.id) ?? [];
2886
+ let n = !1, i = t.props;
2882
2887
  if (s.length > 0) {
2883
2888
  const _ = /* @__PURE__ */ new Map();
2884
2889
  for (const l of s) {
@@ -2886,91 +2891,91 @@ function je(e, t, r) {
2886
2891
  E ? E.push(l) : _.set(l.propertyName, [l]);
2887
2892
  }
2888
2893
  for (const [l, E] of _.entries()) {
2889
- const h = i[l], d = Ni(typeof h == "string" ? h : "", E);
2890
- n || (i = M(i), n = !0), i[l] = d;
2894
+ const h = i[l], d = yi(typeof h == "string" ? h : "", E);
2895
+ n || (i = p(i), n = !0), i[l] = d;
2891
2896
  }
2892
2897
  }
2893
2898
  let a = !1;
2894
- const o = e.children ?? [];
2899
+ const o = t.children ?? [];
2895
2900
  let I = o;
2896
2901
  if (o.length > 0) {
2897
2902
  let _;
2898
2903
  for (let l = 0; l < o.length; l++) {
2899
- const E = o[l], h = je(E, t);
2904
+ const E = o[l], h = Xt(E, e);
2900
2905
  h.changed && (_ || (_ = [...o]), _[l] = h.node);
2901
2906
  }
2902
2907
  _ && (I = _, a = !0);
2903
2908
  }
2904
- return !n && !a ? { node: e, changed: !1 } : {
2909
+ return !n && !a ? { node: t, changed: !1 } : {
2905
2910
  node: {
2906
- id: e.id,
2907
- type: e.type,
2908
- props: n ? i : e.props,
2911
+ id: t.id,
2912
+ type: t.type,
2913
+ props: n ? i : t.props,
2909
2914
  children: a ? I : o,
2910
- styleIds: e.styleIds,
2911
- ...e.sourceMarker ? { sourceMarker: e.sourceMarker } : {}
2915
+ styleIds: t.styleIds,
2916
+ ...t.sourceMarker ? { sourceMarker: t.sourceMarker } : {}
2912
2917
  },
2913
2918
  changed: !0
2914
2919
  };
2915
2920
  }
2916
- function ne(e, t, r) {
2917
- return Math.max(t, Math.min(r, e));
2921
+ function nt(t, e, r) {
2922
+ return Math.max(e, Math.min(r, t));
2918
2923
  }
2919
- function yi(e, t) {
2920
- const r = Math.min(e.length, t.length);
2924
+ function Ci(t, e) {
2925
+ const r = Math.min(t.length, e.length);
2921
2926
  let s = 0;
2922
- for (; s < r && e.charCodeAt(s) === t.charCodeAt(s); )
2927
+ for (; s < r && t.charCodeAt(s) === e.charCodeAt(s); )
2923
2928
  s++;
2924
2929
  return s;
2925
2930
  }
2926
- function M(e) {
2927
- const t = {}, r = Object.keys(e);
2931
+ function p(t) {
2932
+ const e = {}, r = Object.keys(t);
2928
2933
  for (let s = 0; s < r.length; s++) {
2929
2934
  const n = r[s];
2930
- t[n] = e[n];
2935
+ e[n] = t[n];
2931
2936
  }
2932
- return t;
2937
+ return e;
2933
2938
  }
2934
- function X(e) {
2935
- return typeof e == "object" && e !== null && !Array.isArray(e);
2939
+ function X(t) {
2940
+ return typeof t == "object" && t !== null && !Array.isArray(t);
2936
2941
  }
2937
- function k(e, t) {
2938
- if (Object.is(e, t))
2942
+ function k(t, e) {
2943
+ if (Object.is(t, e))
2939
2944
  return !0;
2940
- if (Array.isArray(e) && Array.isArray(t)) {
2941
- if (e.length !== t.length)
2945
+ if (Array.isArray(t) && Array.isArray(e)) {
2946
+ if (t.length !== e.length)
2942
2947
  return !1;
2943
- for (let r = 0; r < e.length; r++)
2944
- if (!k(e[r], t[r]))
2948
+ for (let r = 0; r < t.length; r++)
2949
+ if (!k(t[r], e[r]))
2945
2950
  return !1;
2946
2951
  return !0;
2947
2952
  }
2948
- if (X(e) && X(t)) {
2949
- const r = Object.keys(e), s = Object.keys(t);
2953
+ if (X(t) && X(e)) {
2954
+ const r = Object.keys(t), s = Object.keys(e);
2950
2955
  if (r.length !== s.length)
2951
2956
  return !1;
2952
2957
  for (const n of r)
2953
- if (!k(e[n], t[n]))
2958
+ if (!k(t[n], e[n]))
2954
2959
  return !1;
2955
2960
  return !0;
2956
2961
  }
2957
2962
  return !1;
2958
2963
  }
2959
- function wi(e) {
2964
+ function Ui(t) {
2960
2965
  return new Worker(
2961
- "" + new URL("assets/ui-worker-DNTNCumg.js", import.meta.url).href,
2966
+ "" + new URL("assets/ui-worker-CqlmdF39.js", import.meta.url).href,
2962
2967
  {
2963
2968
  type: "module",
2964
- name: e?.name
2969
+ name: t?.name
2965
2970
  }
2966
2971
  );
2967
2972
  }
2968
- const R = Xe("IkonUiCore");
2969
- class Di {
2973
+ const R = Jt("IkonUiCore");
2974
+ class Li {
2970
2975
  unsubscribeProtocolMessages;
2971
2976
  unsubscribeState;
2972
2977
  client = null;
2973
- uiStore = new fi();
2978
+ uiStore = new Ai();
2974
2979
  uiWorker = null;
2975
2980
  uiStyles = /* @__PURE__ */ new Map();
2976
2981
  uiUpdateListeners = /* @__PURE__ */ new Set();
@@ -2978,48 +2983,48 @@ class Di {
2978
2983
  uiStyleDeleteListeners = /* @__PURE__ */ new Set();
2979
2984
  uiStreamClearedListeners = /* @__PURE__ */ new Set();
2980
2985
  useUiWorker;
2981
- constructor(t) {
2982
- const r = t?.threading?.uiWorker ?? "auto";
2983
- this.useUiWorker = r !== "disabled" && typeof Worker < "u", t?.client && this.initialize(t.client, t);
2986
+ constructor(e) {
2987
+ const r = e?.threading?.uiWorker ?? "auto";
2988
+ this.useUiWorker = r !== "disabled" && typeof Worker < "u", e?.client && this.initialize(e.client, e);
2984
2989
  }
2985
2990
  dispose() {
2986
2991
  this.unsubscribeProtocolMessages?.(), this.unsubscribeState?.(), this.uiWorker?.terminate(), this.uiWorker = null, this.client = null, this.uiStyleListeners.clear(), this.uiStyleDeleteListeners.clear(), this.uiStyles.clear();
2987
2992
  }
2988
2993
  clearAllState() {
2989
2994
  this.uiWorker && this.uiWorker.postMessage({ type: "clear" });
2990
- for (const t of this.uiStore.getSnapshots())
2991
- this.uiStore.remove(t.streamId), this.notifyUiStreamCleared(t.streamId);
2995
+ for (const e of this.uiStore.getSnapshots())
2996
+ this.uiStore.remove(e.streamId), this.notifyUiStreamCleared(e.streamId);
2992
2997
  this.uiStyles.clear();
2993
2998
  }
2994
- subscribeToUiUpdates(t) {
2995
- return this.uiUpdateListeners.add(t), () => {
2996
- this.uiUpdateListeners.delete(t);
2999
+ subscribeToUiUpdates(e) {
3000
+ return this.uiUpdateListeners.add(e), () => {
3001
+ this.uiUpdateListeners.delete(e);
2997
3002
  };
2998
3003
  }
2999
- subscribeToUiStreamCleared(t) {
3000
- return this.uiStreamClearedListeners.add(t), () => {
3001
- this.uiStreamClearedListeners.delete(t);
3004
+ subscribeToUiStreamCleared(e) {
3005
+ return this.uiStreamClearedListeners.add(e), () => {
3006
+ this.uiStreamClearedListeners.delete(e);
3002
3007
  };
3003
3008
  }
3004
- subscribeToUiStyles(t) {
3005
- return this.uiStyleListeners.add(t), () => {
3006
- this.uiStyleListeners.delete(t);
3009
+ subscribeToUiStyles(e) {
3010
+ return this.uiStyleListeners.add(e), () => {
3011
+ this.uiStyleListeners.delete(e);
3007
3012
  };
3008
3013
  }
3009
- subscribeToUiStyleDeletes(t) {
3010
- return this.uiStyleDeleteListeners.add(t), () => {
3011
- this.uiStyleDeleteListeners.delete(t);
3014
+ subscribeToUiStyleDeletes(e) {
3015
+ return this.uiStyleDeleteListeners.add(e), () => {
3016
+ this.uiStyleDeleteListeners.delete(e);
3012
3017
  };
3013
3018
  }
3014
3019
  getUiStyles() {
3015
3020
  return Array.from(this.uiStyles.values());
3016
3021
  }
3017
- initialize(t, r) {
3018
- this.client = t, this.useUiWorker && this.startUiWorker(r);
3022
+ initialize(e, r) {
3023
+ this.client = e, this.useUiWorker && this.startUiWorker(r);
3019
3024
  const s = {
3020
3025
  opcodeGroupsMask: L.GROUP_CORE | L.GROUP_UI | L.GROUP_ACTIONS
3021
3026
  };
3022
- this.unsubscribeProtocolMessages = t.subscribeToProtocolMessages((i) => {
3027
+ this.unsubscribeProtocolMessages = e.subscribeToProtocolMessages((i) => {
3023
3028
  if (this.uiWorker) {
3024
3029
  this.forwardMessageToWorker(i);
3025
3030
  return;
@@ -3027,18 +3032,18 @@ class Di {
3027
3032
  this.handleProtocolMessage(i);
3028
3033
  }, s);
3029
3034
  let n = !1;
3030
- this.unsubscribeState = t.subscribeToState((i) => {
3035
+ this.unsubscribeState = e.subscribeToState((i) => {
3031
3036
  i === "reconnecting" ? n = !0 : i === "connected" && n ? (n = !1, this.clearAllState()) : (n = !1, (i === "offline" || i === "offlineError") && this.clearAllState());
3032
3037
  });
3033
3038
  }
3034
- startUiWorker(t) {
3039
+ startUiWorker(e) {
3035
3040
  try {
3036
- this.uiWorker = new wi();
3041
+ this.uiWorker = new Ui();
3037
3042
  } catch (n) {
3038
3043
  R.warn("Failed to create UI worker, falling back to main thread", n), this.uiWorker = null;
3039
3044
  return;
3040
3045
  }
3041
- const r = t?.threading?.flushIntervalMs, s = t?.threading?.maxLatencyMs;
3046
+ const r = e?.threading?.flushIntervalMs, s = e?.threading?.maxLatencyMs;
3042
3047
  this.uiWorker.postMessage({ type: "configure", flushIntervalMs: r, maxLatencyMs: s }), this.uiWorker.addEventListener("message", (n) => {
3043
3048
  this.handleUiStoreOpBatch(n.data);
3044
3049
  }), this.uiWorker.addEventListener("error", (n) => {
@@ -3047,65 +3052,65 @@ class Di {
3047
3052
  });
3048
3053
  }
3049
3054
  rehydrateStoresForMainThread() {
3050
- for (const t of this.uiStore.getSnapshots()) {
3051
- if (!t.rootViewId)
3055
+ for (const e of this.uiStore.getSnapshots()) {
3056
+ if (!e.rootViewId)
3052
3057
  continue;
3053
- const r = t.views.get(t.rootViewId);
3058
+ const r = e.views.get(e.rootViewId);
3054
3059
  if (!r)
3055
3060
  continue;
3056
3061
  const s = {
3057
3062
  snapshot: {
3058
3063
  type: "full",
3059
- version: t.version ?? 0,
3060
- metadata: { viewId: t.rootViewId },
3064
+ version: e.version ?? 0,
3065
+ metadata: { viewId: e.rootViewId },
3061
3066
  root: r
3062
3067
  },
3063
- payloads: t.payloads
3068
+ payloads: e.payloads
3064
3069
  };
3065
- this.uiStore.apply(t.streamId, s);
3070
+ this.uiStore.apply(e.streamId, s);
3066
3071
  }
3067
3072
  }
3068
- forwardMessageToWorker(t) {
3073
+ forwardMessageToWorker(e) {
3069
3074
  if (this.uiWorker)
3070
3075
  try {
3071
- const r = t.slice().buffer;
3076
+ const r = e.slice().buffer;
3072
3077
  this.uiWorker.postMessage({ type: "protocol", message: r }, [r]);
3073
3078
  } catch (r) {
3074
3079
  R.warn("Failed to forward message to UI worker", r);
3075
3080
  }
3076
3081
  }
3077
- handleUiStoreOpBatch(t) {
3078
- for (const r of t.ops)
3082
+ handleUiStoreOpBatch(e) {
3083
+ for (const r of e.ops)
3079
3084
  this.applyUiStoreOp(r);
3080
- if (t.acks && t.acks.length > 0)
3081
- for (const r of t.acks)
3085
+ if (e.acks && e.acks.length > 0)
3086
+ for (const r of e.acks)
3082
3087
  this.sendUiUpdateAck(r.trackId, r.version, r.senderId);
3083
3088
  }
3084
- applyUiStoreOp(t) {
3085
- if (t.type === "UpsertUiStyle") {
3086
- this.uiStyles.set(t.style.styleId, t.style), this.notifyUiStyle(t.style);
3089
+ applyUiStoreOp(e) {
3090
+ if (e.type === "UpsertUiStyle") {
3091
+ this.uiStyles.set(e.style.styleId, e.style), this.notifyUiStyle(e.style);
3087
3092
  return;
3088
3093
  }
3089
- if (t.type === "RemoveUiStyle") {
3090
- this.uiStyles.delete(t.styleId) && this.notifyUiStyleDelete([t.styleId]);
3094
+ if (e.type === "RemoveUiStyle") {
3095
+ this.uiStyles.delete(e.styleId) && this.notifyUiStyleDelete([e.styleId]);
3091
3096
  return;
3092
3097
  }
3093
- if (t.type === "ClearStream") {
3094
- this.uiStore.applyStoreOp(t), this.notifyUiStreamCleared(t.streamId);
3098
+ if (e.type === "ClearStream") {
3099
+ this.uiStore.applyStoreOp(e), this.notifyUiStreamCleared(e.streamId);
3095
3100
  return;
3096
3101
  }
3097
- if (t.type === "RemoveStream") {
3098
- this.uiStore.applyStoreOp(t), this.notifyUiStreamCleared(t.streamId);
3102
+ if (e.type === "RemoveStream") {
3103
+ this.uiStore.applyStoreOp(e), this.notifyUiStreamCleared(e.streamId);
3099
3104
  return;
3100
3105
  }
3101
- if (t.type === "SetStreamCategory") {
3102
- this.uiStore.applyStoreOp(t);
3106
+ if (e.type === "SetStreamCategory") {
3107
+ this.uiStore.applyStoreOp(e);
3103
3108
  return;
3104
3109
  }
3105
- if (t.type === "ReplaceStreamSnapshot" || t.type === "PatchStreamSnapshot") {
3106
- if (!this.uiStore.applyStoreOp(t))
3110
+ if (e.type === "ReplaceStreamSnapshot" || e.type === "PatchStreamSnapshot") {
3111
+ if (!this.uiStore.applyStoreOp(e))
3107
3112
  return;
3108
- const s = t.type === "ReplaceStreamSnapshot" ? t.snapshot.streamId : t.streamId, n = this.uiStore.getSnapshot(s);
3113
+ const s = e.type === "ReplaceStreamSnapshot" ? e.snapshot.streamId : e.streamId, n = this.uiStore.getSnapshot(s);
3109
3114
  if (!n?.rootViewId)
3110
3115
  return;
3111
3116
  const i = n.views.get(n.rootViewId);
@@ -3124,32 +3129,32 @@ class Di {
3124
3129
  return;
3125
3130
  }
3126
3131
  }
3127
- handleProtocolMessage(t) {
3128
- switch (ze(t)) {
3132
+ handleProtocolMessage(e) {
3133
+ switch (zt(e)) {
3129
3134
  case L.CORE_GLOBAL_STATE:
3130
- this.handleGlobalState(t);
3135
+ this.handleGlobalState(e);
3131
3136
  return;
3132
3137
  case L.UI_UPDATE:
3133
- this.handleUiUpdate(t);
3138
+ this.handleUiUpdate(e);
3134
3139
  return;
3135
3140
  case L.UI_STYLES:
3136
- this.handleUiStyles(t);
3141
+ this.handleUiStyles(e);
3137
3142
  return;
3138
3143
  case L.UI_STYLES_BATCH:
3139
- this.handleUiStylesBatch(t);
3144
+ this.handleUiStylesBatch(e);
3140
3145
  return;
3141
3146
  case L.UI_STYLES_DELETE:
3142
- this.handleUiStylesDelete(t);
3147
+ this.handleUiStylesDelete(e);
3143
3148
  return;
3144
3149
  case L.ACTION_UI_CLEAR_STREAM:
3145
- this.handleClearStream(t);
3150
+ this.handleClearStream(e);
3146
3151
  return;
3147
3152
  default:
3148
3153
  return;
3149
3154
  }
3150
3155
  }
3151
- handleGlobalState(t) {
3152
- Us(t).then((r) => {
3156
+ handleGlobalState(e) {
3157
+ Cn(e).then((r) => {
3153
3158
  const s = /* @__PURE__ */ new Set();
3154
3159
  for (const n of Object.values(r.UIStreams ?? {}))
3155
3160
  s.add(n.StreamId), this.uiStore.setCategory(n.StreamId, n.Info?.Category);
@@ -3159,17 +3164,17 @@ class Di {
3159
3164
  R.error("Failed to handle global state", r);
3160
3165
  });
3161
3166
  }
3162
- handleUiUpdate(t) {
3163
- const r = re(t), s = `${r.senderId}_${r.trackId}`;
3164
- Jn(t).then((n) => {
3165
- const i = hi(n);
3167
+ handleUiUpdate(e) {
3168
+ const r = rt(e), s = `${r.senderId}_${r.trackId}`;
3169
+ ks(e).then((n) => {
3170
+ const i = ci(n);
3166
3171
  this.notifyUiUpdate(s, i), this.uiStore.apply(s, i), this.sendUiUpdateAck(r.trackId, i.snapshot.version, r.senderId);
3167
3172
  }).catch((n) => {
3168
3173
  n instanceof U ? R.warn("Failed to parse UI update", n.causeError ?? n) : R.error("Failed to apply UI update", n);
3169
3174
  });
3170
3175
  }
3171
- handleUiStyles(t) {
3172
- Nn(t).then((r) => {
3176
+ handleUiStyles(e) {
3177
+ ss(e).then((r) => {
3173
3178
  if (!r.StyleId) return;
3174
3179
  const s = {
3175
3180
  styleId: r.StyleId,
@@ -3181,8 +3186,8 @@ class Di {
3181
3186
  R.error("Failed to handle UI styles", r);
3182
3187
  });
3183
3188
  }
3184
- handleUiStylesBatch(t) {
3185
- Ln(t).then((r) => {
3189
+ handleUiStylesBatch(e) {
3190
+ _s(e).then((r) => {
3186
3191
  if (r.Styles)
3187
3192
  for (const s of r.Styles) {
3188
3193
  if (!s.StyleId) continue;
@@ -3197,8 +3202,8 @@ class Di {
3197
3202
  R.error("Failed to handle UI styles batch", r);
3198
3203
  });
3199
3204
  }
3200
- handleUiStylesDelete(t) {
3201
- xn(t).then((r) => {
3205
+ handleUiStylesDelete(e) {
3206
+ Ds(e).then((r) => {
3202
3207
  if (!(!r.StyleIds || r.StyleIds.length === 0)) {
3203
3208
  for (const s of r.StyleIds)
3204
3209
  this.uiStyles.delete(s);
@@ -3208,30 +3213,30 @@ class Di {
3208
3213
  R.error("Failed to handle UI styles delete", r);
3209
3214
  });
3210
3215
  }
3211
- handleClearStream(t) {
3212
- const r = re(t), s = `${r.senderId}_${r.trackId}`;
3216
+ handleClearStream(e) {
3217
+ const r = rt(e), s = `${r.senderId}_${r.trackId}`;
3213
3218
  this.uiStore.clear(s), this.notifyUiStreamCleared(s);
3214
3219
  }
3215
- notifyUiUpdate(t, r) {
3220
+ notifyUiUpdate(e, r) {
3216
3221
  for (const s of this.uiUpdateListeners)
3217
- s(t, r);
3222
+ s(e, r);
3218
3223
  }
3219
- notifyUiStyle(t) {
3224
+ notifyUiStyle(e) {
3220
3225
  for (const r of this.uiStyleListeners)
3221
- r(t);
3226
+ r(e);
3222
3227
  }
3223
- notifyUiStyleDelete(t) {
3228
+ notifyUiStyleDelete(e) {
3224
3229
  for (const r of this.uiStyleDeleteListeners)
3225
- r(t);
3230
+ r(e);
3226
3231
  }
3227
- notifyUiStreamCleared(t) {
3232
+ notifyUiStreamCleared(e) {
3228
3233
  for (const r of this.uiStreamClearedListeners)
3229
- r(t);
3234
+ r(e);
3230
3235
  }
3231
- sendUiUpdateAck(t, r, s) {
3236
+ sendUiUpdateAck(e, r, s) {
3232
3237
  if (this.client && !(!Number.isFinite(r) || r < 0))
3233
3238
  try {
3234
- const n = s !== void 0 ? { trackId: t, targetIds: [s] } : { trackId: t }, i = ri({ Version: r }, this.client.sessionId ?? 0, n);
3239
+ const n = s !== void 0 ? { trackId: e, targetIds: [s] } : { trackId: e }, i = Gs({ Version: r }, this.client.sessionId ?? 0, n);
3235
3240
  this.client.sendProtocolMessage(i);
3236
3241
  } catch (n) {
3237
3242
  R.warn("Failed to send UI update ack", n);
@@ -3239,10 +3244,10 @@ class Di {
3239
3244
  }
3240
3245
  }
3241
3246
  export {
3242
- ui as HandlerCache,
3243
- Di as IkonUiCore,
3244
- fi as UiStore,
3245
- ci as UiStreamStore,
3247
+ fi as HandlerCache,
3248
+ Li as IkonUiCore,
3249
+ Ai as UiStore,
3250
+ Ti as UiStreamStore,
3246
3251
  U as UiUpdateParseError,
3247
- hi as parseUiUpdate
3252
+ ci as parseUiUpdate
3248
3253
  };