@ikonai/sdk-ui 1.0.67 → 1.0.68

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,18 +1,18 @@
1
- import { createLogger as Q, readOpcode as st, readProtocolMessageHeaders as oe } from "@ikonai/sdk";
1
+ import { createLogger as Z, readOpcode as st, readProtocolMessageHeaders as ae } from "@ikonai/sdk";
2
2
  const F = 27, nt = {
3
3
  Compressed: 8
4
4
  };
5
5
  function it(e) {
6
- const t = G(e), r = new DataView(t.buffer, t.byteOffset, t.byteLength);
6
+ const t = x(e), r = new DataView(t.buffer, t.byteOffset, t.byteLength);
7
7
  if (t.length < F)
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), o = r.getUint32(12, !0), a = r.getUint32(16, !0), I = r.getUint32(20, !0), _ = r.getUint8(24), l = r.getUint8(25), E = r.getUint8(26);
10
10
  if (F + I * 4 > t.length)
11
11
  throw new Error("Protocol header exceeds payload length");
12
12
  const T = [];
13
- let d = F;
13
+ let N = F;
14
14
  for (let g = 0; g < I; g++)
15
- T.push(r.getUint32(d, !0)), d += 4;
15
+ T.push(r.getUint32(N, !0)), N += 4;
16
16
  return {
17
17
  length: s,
18
18
  opcode: n,
@@ -25,8 +25,8 @@ function it(e) {
25
25
  flags: E
26
26
  };
27
27
  }
28
- async function v(e, t, r) {
29
- const s = G(e), n = it(s);
28
+ async function V(e, t, r) {
29
+ const s = x(e), n = it(s);
30
30
  if (t !== void 0 && n.opcode !== t)
31
31
  throw new Error(`Unexpected opcode ${n.opcode}`);
32
32
  if (n.payloadType !== 8)
@@ -38,9 +38,9 @@ async function v(e, t, r) {
38
38
  function ot(e, t, r, s, n) {
39
39
  const i = n?.trackId ?? 0, o = n?.sequenceId ?? 0, a = n?.flags ?? 0, I = n?.targetIds ?? [], _ = n?.payloadType ?? 8, l = F + I.length * 4, E = l + t.length, h = new Uint8Array(E), T = new DataView(h.buffer);
40
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, o >>> 0, !0), T.setUint32(20, I.length >>> 0, !0), T.setUint8(24, r & 255), T.setUint8(25, _ & 255), T.setUint8(26, a & 255);
41
- let d = F;
41
+ let N = F;
42
42
  for (let g = 0; g < I.length; g++)
43
- T.setUint32(d, I[g] >>> 0, !0), d += 4;
43
+ T.setUint32(N, I[g] >>> 0, !0), N += 4;
44
44
  return h.set(t, l), h;
45
45
  }
46
46
  async function at(e) {
@@ -63,7 +63,7 @@ async function at(e) {
63
63
  }
64
64
  var U = /* @__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))(U || {});
65
65
  const he = 161, ue = 162, Y = new TextEncoder(), lt = new TextDecoder("utf-8", { fatal: !0 });
66
- class V {
66
+ class G {
67
67
  constructor(t = 1) {
68
68
  this.version = t, this.buffer.writeByte(he), this.buffer.writeVarUInt(t >>> 0);
69
69
  }
@@ -105,7 +105,7 @@ class V {
105
105
  this.writeVariableField(t, 13, r);
106
106
  }
107
107
  writeObjectField(t, r, s) {
108
- const n = new V(r);
108
+ const n = new G(r);
109
109
  s(n);
110
110
  const i = n.finish();
111
111
  this.writeVariableField(t, 11, i);
@@ -117,7 +117,7 @@ class V {
117
117
  this.writeVariableField(t, 9, i);
118
118
  }
119
119
  writeDictionaryField(t, r, s, n) {
120
- const i = new Z(r, s);
120
+ const i = new ee(r, s);
121
121
  n(i);
122
122
  const o = i.finish();
123
123
  this.writeVariableField(t, 10, o);
@@ -212,7 +212,7 @@ class $ {
212
212
  11
213
213
  /* Object */
214
214
  ), this.count++;
215
- const s = new V(t);
215
+ const s = new G(t);
216
216
  r(s);
217
217
  const n = s.finish();
218
218
  this.payload.writeVarUInt(n.length), this.payload.writeBytes(n);
@@ -232,7 +232,7 @@ class $ {
232
232
  10
233
233
  /* Dict */
234
234
  ), this.count++;
235
- const n = new Z(t, r);
235
+ const n = new ee(t, r);
236
236
  s(n);
237
237
  const i = n.finish();
238
238
  this.payload.writeBytes(i);
@@ -246,9 +246,9 @@ class $ {
246
246
  throw new Error(`Array element type is ${U[this.elementType]}, expected ${U[t]}`);
247
247
  }
248
248
  }
249
- class Z {
249
+ class ee {
250
250
  constructor(t, r) {
251
- this.keyType = t, this.valueType = r, re(t);
251
+ this.keyType = t, this.valueType = r, se(t);
252
252
  }
253
253
  payload = new b();
254
254
  count = 0;
@@ -417,7 +417,7 @@ class It {
417
417
  11
418
418
  /* Object */
419
419
  );
420
- const s = new V(t);
420
+ const s = new G(t);
421
421
  r(s);
422
422
  const n = s.finish();
423
423
  this.payload.writeVarUInt(n.length), this.payload.writeBytes(n), this.valueWritten = !0;
@@ -437,7 +437,7 @@ class It {
437
437
  10
438
438
  /* Dict */
439
439
  );
440
- const n = new Z(t, r);
440
+ const n = new ee(t, r);
441
441
  s(n);
442
442
  const i = n.finish();
443
443
  this.payload.writeBytes(i), this.valueWritten = !0;
@@ -465,7 +465,7 @@ class O {
465
465
  offset;
466
466
  end;
467
467
  static create(t) {
468
- const r = G(t);
468
+ const r = x(t);
469
469
  if (r.length < 2)
470
470
  throw new Error("Teleport payload too short");
471
471
  if (r[0] !== he || r[r.length - 1] !== ue)
@@ -486,10 +486,10 @@ class O {
486
486
  const n = P(s);
487
487
  let i;
488
488
  if (n >= 0)
489
- N(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
489
+ d(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
490
490
  else {
491
491
  const o = { offset: this.offset }, a = y(this.buffer, o, "InvalidLength");
492
- N(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
492
+ d(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
493
493
  }
494
494
  return new Et(t, s, i);
495
495
  }
@@ -574,13 +574,13 @@ class m {
574
574
  return this.ensureType(
575
575
  9
576
576
  /* Array */
577
- ), ee.create(this.payload);
577
+ ), te.create(this.payload);
578
578
  }
579
579
  asDictionary() {
580
580
  return this.ensureType(
581
581
  10
582
582
  /* Dict */
583
- ), te.create(this.payload);
583
+ ), re.create(this.payload);
584
584
  }
585
585
  ensureType(t) {
586
586
  if (this.type !== t)
@@ -595,7 +595,7 @@ class Et extends m {
595
595
  return this.type === 1;
596
596
  }
597
597
  }
598
- class ee {
598
+ class te {
599
599
  payload;
600
600
  elementType;
601
601
  count;
@@ -611,7 +611,7 @@ class ee {
611
611
  this.count = y(t, s, "ArrayMalformed"), this.offset = s.offset;
612
612
  }
613
613
  static create(t) {
614
- return new ee(G(t));
614
+ return new te(x(t));
615
615
  }
616
616
  next() {
617
617
  if (this.index >= this.count) {
@@ -633,29 +633,29 @@ class ee {
633
633
  case 6:
634
634
  case 14: {
635
635
  const t = P(this.elementType);
636
- N(this.payload, this.offset, t);
636
+ d(this.payload, this.offset, t);
637
637
  const r = this.payload.subarray(this.offset, this.offset + t);
638
638
  return this.offset += t, new k(this.elementType, r);
639
639
  }
640
640
  case 12:
641
641
  case 13: {
642
642
  const t = { offset: this.offset }, r = y(this.payload, t, "ArrayMalformed");
643
- N(this.payload, t.offset, r);
643
+ d(this.payload, t.offset, r);
644
644
  const s = this.payload.subarray(t.offset, t.offset + r);
645
645
  return this.offset = t.offset + r, new k(this.elementType, s);
646
646
  }
647
647
  case 11: {
648
648
  const t = { offset: this.offset }, r = y(this.payload, t, "ArrayMalformed");
649
- N(this.payload, t.offset, r);
649
+ d(this.payload, t.offset, r);
650
650
  const s = this.payload.subarray(t.offset, t.offset + r);
651
651
  return this.offset = t.offset + r, new k(11, s);
652
652
  }
653
653
  case 9: {
654
- const t = se(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
654
+ const t = ne(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
655
655
  return this.offset += t, new k(9, r);
656
656
  }
657
657
  case 10: {
658
- const t = ne(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
658
+ const t = ie(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
659
659
  return this.offset += t, new k(10, r);
660
660
  }
661
661
  default:
@@ -668,7 +668,7 @@ class k extends m {
668
668
  super(t, r);
669
669
  }
670
670
  }
671
- class te {
671
+ class re {
672
672
  payload;
673
673
  keyType;
674
674
  valueType;
@@ -680,12 +680,12 @@ class te {
680
680
  throw new Error("Dictionary payload too short");
681
681
  if (this.keyType = t[0] >> 4 & 15, this.valueType = t[1] >> 4 & 15, (t[0] & 15) !== 0 || (t[1] & 15) !== 0)
682
682
  throw new Error("Dictionary key/value flags must be zero");
683
- re(this.keyType);
683
+ se(this.keyType);
684
684
  const r = { offset: 2 };
685
685
  this.count = y(t, r, "DictMalformed"), this.offset = r.offset;
686
686
  }
687
687
  static create(t) {
688
- return new te(G(t));
688
+ return new re(x(t));
689
689
  }
690
690
  next() {
691
691
  if (this.index >= this.count) {
@@ -699,13 +699,13 @@ class te {
699
699
  readKey() {
700
700
  const t = P(this.keyType);
701
701
  if (t >= 0) {
702
- N(this.payload, this.offset, t);
702
+ d(this.payload, this.offset, t);
703
703
  const r = this.payload.subarray(this.offset, this.offset + t);
704
704
  return this.offset += t, 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");
708
- N(this.payload, r.offset, s);
708
+ d(this.payload, r.offset, s);
709
709
  const n = this.payload.subarray(r.offset, r.offset + s);
710
710
  return this.offset = r.offset + s, new m(this.keyType, n);
711
711
  }
@@ -716,22 +716,22 @@ class te {
716
716
  case 12:
717
717
  case 13: {
718
718
  const t = { offset: this.offset }, r = y(this.payload, t, "DictMalformed");
719
- N(this.payload, t.offset, r);
719
+ d(this.payload, t.offset, r);
720
720
  const s = this.payload.subarray(t.offset, t.offset + r);
721
721
  return this.offset = t.offset + r, new m(this.valueType, s);
722
722
  }
723
723
  case 11: {
724
724
  const t = { offset: this.offset }, r = y(this.payload, t, "DictMalformed");
725
- N(this.payload, t.offset, r);
725
+ d(this.payload, t.offset, r);
726
726
  const s = this.payload.subarray(t.offset, t.offset + r);
727
727
  return this.offset = t.offset + r, new m(11, s);
728
728
  }
729
729
  case 9: {
730
- const t = se(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
730
+ const t = ne(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
731
731
  return this.offset += t, new m(9, r);
732
732
  }
733
733
  case 10: {
734
- const t = ne(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
734
+ const t = ie(this.payload, this.offset), r = this.payload.subarray(this.offset, this.offset + t);
735
735
  return this.offset += t, new m(10, r);
736
736
  }
737
737
  case 3:
@@ -744,7 +744,7 @@ class te {
744
744
  case 14:
745
745
  case 1: {
746
746
  const t = P(this.valueType);
747
- N(this.payload, this.offset, t);
747
+ d(this.payload, this.offset, t);
748
748
  const r = this.payload.subarray(this.offset, this.offset + t);
749
749
  return this.offset += t, new m(this.valueType, r);
750
750
  }
@@ -797,8 +797,8 @@ class f {
797
797
  f.toHex(f.readUInt32LE(t, 0), 8),
798
798
  f.toHex(f.readUInt16LE(t, 4), 4),
799
799
  f.toHex(f.readUInt16LE(t, 6), 4),
800
- ae(t.subarray(8, 10)),
801
- ae(t.subarray(10, 16))
800
+ le(t.subarray(8, 10)),
801
+ le(t.subarray(10, 16))
802
802
  ].join("-");
803
803
  }
804
804
  asBytes() {
@@ -927,18 +927,18 @@ function P(e) {
927
927
  return -1;
928
928
  }
929
929
  }
930
- function re(e) {
930
+ function se(e) {
931
931
  if (e === 9 || e === 11 || e === 10 || e === 1)
932
932
  throw new Error("Dictionary keys must be primitive Teleport types");
933
933
  }
934
- function N(e, t, r) {
934
+ function d(e, t, r) {
935
935
  if (t < 0 || r < 0 || t + r > e.length)
936
936
  throw new Error("Teleport payload exceeds bounds");
937
937
  }
938
938
  function ct(e, t) {
939
939
  return (e[t] | e[t + 1] << 8 | e[t + 2] << 16 | e[t + 3] << 24) >>> 0;
940
940
  }
941
- function se(e, t) {
941
+ function ne(e, t) {
942
942
  if (t >= e.length)
943
943
  throw new Error("Array payload exceeds bounds");
944
944
  const r = e[t], s = r >> 4 & 15;
@@ -947,56 +947,56 @@ function se(e, t) {
947
947
  const n = { offset: t + 1 }, i = y(e, n, "ArrayMalformed"), o = P(s);
948
948
  if (o >= 0) {
949
949
  const I = o * i;
950
- return N(e, n.offset, I), n.offset + I - t;
950
+ return d(e, n.offset, I), n.offset + I - t;
951
951
  }
952
952
  let a = n.offset;
953
953
  for (let I = 0; I < i; I++)
954
- a = J(s, e, a, "ArrayMalformed");
954
+ a = q(s, e, a, "ArrayMalformed");
955
955
  return a - t;
956
956
  }
957
- function ne(e, t) {
957
+ function ie(e, t) {
958
958
  if (t + 2 > e.length)
959
959
  throw new Error("Dictionary payload too short");
960
960
  const r = e[t] >> 4 & 15, s = e[t + 1] >> 4 & 15;
961
961
  if ((e[t] & 15) !== 0 || (e[t + 1] & 15) !== 0)
962
962
  throw new Error("Dictionary key/value flags must be zero");
963
- re(r);
963
+ se(r);
964
964
  const n = { offset: t + 2 }, i = y(e, n, "DictMalformed");
965
965
  let o = n.offset;
966
966
  for (let a = 0; a < i; a++)
967
- o = J(r, e, o, "DictMalformed"), o = J(s, e, o, "DictMalformed");
967
+ o = q(r, e, o, "DictMalformed"), o = q(s, e, o, "DictMalformed");
968
968
  return o - t;
969
969
  }
970
- function J(e, t, r, s) {
970
+ function q(e, t, r, s) {
971
971
  const n = P(e);
972
972
  if (n >= 0)
973
- return N(t, r, n), r + n;
973
+ return d(t, r, n), r + n;
974
974
  switch (e) {
975
975
  case 12:
976
976
  case 13: {
977
977
  const i = { offset: r }, o = y(t, i, s);
978
- return N(t, i.offset, o), i.offset + o;
978
+ return d(t, i.offset, o), i.offset + o;
979
979
  }
980
980
  case 11: {
981
981
  const i = { offset: r }, o = y(t, i, s);
982
- return N(t, i.offset, o), i.offset + o;
982
+ return d(t, i.offset, o), i.offset + o;
983
983
  }
984
984
  case 9:
985
- return r + se(t, r);
986
- case 10:
987
985
  return r + ne(t, r);
986
+ case 10:
987
+ return r + ie(t, r);
988
988
  default:
989
989
  throw new Error(`Unsupported Teleport type ${U[e]}`);
990
990
  }
991
991
  }
992
- function ae(e) {
992
+ function le(e) {
993
993
  return Array.from(e).map((t) => t.toString(16).padStart(2, "0")).join("");
994
994
  }
995
- function G(e) {
995
+ function x(e) {
996
996
  return e instanceof Uint8Array ? e : new Uint8Array(e);
997
997
  }
998
- var ce = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Opus = 1] = "Opus", e[e.Mp3 = 2] = "Mp3", e[e.RawPcm16 = 3] = "RawPcm16", e))(ce || {}), fe = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.MobileWeb = 1] = "MobileWeb", e[e.MobileApp = 2] = "MobileApp", e[e.DesktopWeb = 3] = "DesktopWeb", e[e.DesktopApp = 4] = "DesktopApp", e))(fe || {}), Te = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Backend = 2] = "Backend", e[e.Server = 4] = "Server", e[e.Plugin = 8] = "Plugin", e[e.Browser = 16] = "Browser", e[e.Native = 32] = "Native", e))(Te || {}), Ae = /* @__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))(Ae || {}), Se = /* @__PURE__ */ ((e) => (e[e.Face = 0] = "Face", e[e.Hands = 1] = "Hands", e[e.Pose = 2] = "Pose", e[e.All = 3] = "All", e))(Se || {}), Ne = /* @__PURE__ */ ((e) => (e[e.Css = 0] = "Css", e[e.Flutter = 1] = "Flutter", e))(Ne || {}), de = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Machine = 1] = "Machine", e[e.Human = 2] = "Human", e))(de || {}), ye = /* @__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))(ye || {}), we = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.DotNet = 1] = "DotNet", e[e.TypeScript = 2] = "TypeScript", e[e.Cpp = 3] = "Cpp", e[e.Dart = 4] = "Dart", e[e.Rust = 5] = "Rust", e))(we || {}), Ce = /* @__PURE__ */ ((e) => (e[e.Local = 0] = "Local", e[e.Cloud = 1] = "Cloud", e))(Ce || {}), Ue = /* @__PURE__ */ ((e) => (e[e.Bundle = 0] = "Bundle", e[e.GitSource = 1] = "GitSource", e))(Ue || {}), 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_RESET_IDLE = 65560] = "CORE_RESET_IDLE", e[e.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", e[e.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", e[e.CORE_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", e[e.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", e[e.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", e[e.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", e[e.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", e[e.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", e[e.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", e[e.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", e[e.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", e[e.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", e[e.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", e[e.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", e[e.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", e[e.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", e[e.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", e[e.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", e[e.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", e[e.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", e[e.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", e[e.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", e[e.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", e[e.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", e[e.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", e[e.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", e[e.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", e[e.GROUP_EVENTS = 262144] = "GROUP_EVENTS", e[e.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", e[e.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", e[e.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", e[e.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", e[e.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", e[e.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", e[e.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", e[e.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", e[e.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", e[e.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", e[e.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", e[e.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", e[e.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", e[e.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", e[e.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", e[e.ACTION_CALL = 1048577] = "ACTION_CALL", e[e.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", e[e.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", e[e.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", e[e.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", e[e.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", e[e.ACTION_TAP = 1048583] = "ACTION_TAP", e[e.ACTION_PAN = 1048584] = "ACTION_PAN", e[e.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", e[e.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", e[e.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", e[e.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", e[e.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", e[e.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", e[e.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", e[e.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", e[e.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", e[e.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", e[e.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", e[e.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", e[e.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", e[e.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", e[e.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", e[e.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", e[e.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", e[e.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", e[e.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", e[e.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", e[e.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", e[e.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", e[e.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", e[e.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", e[e.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", e[e.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", e[e.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", e[e.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", e[e.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", e[e.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", e[e.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", e[e.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", e[e.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", e[e.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", e[e.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", e[e.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", e[e.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", e[e.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", e[e.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", e[e.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", e[e.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", e[e.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", e[e.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", e[e.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", e[e.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", e[e.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", e[e.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", e[e.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", e[e.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", e[e.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", e[e.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", e[e.ACTION_CALL2 = 1048637] = "ACTION_CALL2", e[e.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", e[e.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", e[e.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", e[e.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", e[e.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", e[e.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", e[e.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", e[e.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", e[e.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", e[e.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", e[e.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", e[e.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", e[e.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", e[e.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", e[e.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", e[e.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", e[e.GROUP_UI = 2097152] = "GROUP_UI", e[e.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", e[e.UI_STREAM_END = 2097154] = "UI_STREAM_END", e[e.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", e[e.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", e[e.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", e[e.UI_SECTION_END = 2097158] = "UI_SECTION_END", e[e.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", e[e.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", e[e.UI_LIST_END = 2097161] = "UI_LIST_END", e[e.UI_TEXT = 2097162] = "UI_TEXT", e[e.UI_HEADER = 2097163] = "UI_HEADER", e[e.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", e[e.UI_BUTTON = 2097165] = "UI_BUTTON", e[e.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", e[e.UI_IMAGE = 2097167] = "UI_IMAGE", e[e.UI_FILE = 2097168] = "UI_FILE", e[e.UI_BADGE = 2097169] = "UI_BADGE", e[e.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", e[e.UI_MAP = 2097171] = "UI_MAP", e[e.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", e[e.UI_ICON = 2097173] = "UI_ICON", e[e.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", e[e.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", e[e.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", e[e.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", e[e.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", e[e.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", e[e.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", e[e.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", e[e.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", e[e.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", e[e.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", e[e.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", e[e.UI_QS = 2097186] = "UI_QS", e[e.UI_ELEMENT = 2097187] = "UI_ELEMENT", e[e.UI_STYLES = 2097188] = "UI_STYLES", e[e.UI_SVG = 2097189] = "UI_SVG", e[e.UI_UPDATE = 2097190] = "UI_UPDATE", e[e.UI_INIT = 2097191] = "UI_INIT", e[e.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", e[e.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", e[e.GROUP_COMMON = 4128768] = "GROUP_COMMON", e[e.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", e[e.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", e[e.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", e[e.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", e[e.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", e[e.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", e[e.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", e[e.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", e[e.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", e[e.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", e[e.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", e[e.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", e[e.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", e[e.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", e[e.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", e[e.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", e[e.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", e[e.GROUP_SCENE = 33554432] = "GROUP_SCENE", e[e.SCENE_MESH = 33554433] = "SCENE_MESH", e[e.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", e[e.GROUP_ALL = 67043328] = "GROUP_ALL", e[e.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", e[e.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", e))(L || {});
999
- const ft = 161083277, Tt = 265814330, At = 1368629611, St = 2431514951, Nt = 2514959030, dt = 2745379226, yt = 3282782683, wt = 3284746250, Ct = 4101844078;
998
+ var ce = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Opus = 1] = "Opus", e[e.Mp3 = 2] = "Mp3", e[e.RawPcm16 = 3] = "RawPcm16", e))(ce || {}), fe = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.MobileWeb = 1] = "MobileWeb", e[e.MobileApp = 2] = "MobileApp", e[e.DesktopWeb = 3] = "DesktopWeb", e[e.DesktopApp = 4] = "DesktopApp", e))(fe || {}), Te = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Backend = 2] = "Backend", e[e.Server = 4] = "Server", e[e.Plugin = 8] = "Plugin", e[e.Browser = 16] = "Browser", e[e.Native = 32] = "Native", e))(Te || {}), Se = /* @__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))(Se || {}), Ae = /* @__PURE__ */ ((e) => (e[e.Face = 0] = "Face", e[e.Hands = 1] = "Hands", e[e.Pose = 2] = "Pose", e[e.All = 3] = "All", e))(Ae || {}), de = /* @__PURE__ */ ((e) => (e[e.Css = 0] = "Css", e[e.Flutter = 1] = "Flutter", e))(de || {}), Ne = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Machine = 1] = "Machine", e[e.Human = 2] = "Human", e))(Ne || {}), ye = /* @__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))(ye || {}), we = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.DotNet = 1] = "DotNet", e[e.TypeScript = 2] = "TypeScript", e[e.Cpp = 3] = "Cpp", e[e.Dart = 4] = "Dart", e[e.Rust = 5] = "Rust", e))(we || {}), Ce = /* @__PURE__ */ ((e) => (e[e.Local = 0] = "Local", e[e.Cloud = 1] = "Cloud", e))(Ce || {}), Ue = /* @__PURE__ */ ((e) => (e[e.Bundle = 0] = "Bundle", e[e.GitSource = 1] = "GitSource", e))(Ue || {}), 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_RESET_IDLE = 65560] = "CORE_RESET_IDLE", e[e.CORE_CLIENT_DISCONNECTING = 65561] = "CORE_CLIENT_DISCONNECTING", e[e.CORE_ON_APP_READY = 65562] = "CORE_ON_APP_READY", e[e.CORE_ON_FRONTEND_RELOADED = 65563] = "CORE_ON_FRONTEND_RELOADED", e[e.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", e[e.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", e[e.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", e[e.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", e[e.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", e[e.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", e[e.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", e[e.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", e[e.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", e[e.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", e[e.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", e[e.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", e[e.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", e[e.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", e[e.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", e[e.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", e[e.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", e[e.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", e[e.CORE_CLIENT_INITIALIZATION = 65587] = "CORE_CLIENT_INITIALIZATION", e[e.CORE_CLIENT_LIFECYCLE_BATCH = 65588] = "CORE_CLIENT_LIFECYCLE_BATCH", e[e.CORE_APP_CONFIG = 65589] = "CORE_APP_CONFIG", e[e.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", e[e.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", e[e.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", e[e.GROUP_EVENTS = 262144] = "GROUP_EVENTS", e[e.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", e[e.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", e[e.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", e[e.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", e[e.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", e[e.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", e[e.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", e[e.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", e[e.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", e[e.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", e[e.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", e[e.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", e[e.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", e[e.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_SERVER_STATS", e[e.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", e[e.ACTION_CALL = 1048577] = "ACTION_CALL", e[e.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", e[e.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", e[e.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", e[e.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", e[e.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", e[e.ACTION_TAP = 1048583] = "ACTION_TAP", e[e.ACTION_PAN = 1048584] = "ACTION_PAN", e[e.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", e[e.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", e[e.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", e[e.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", e[e.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", e[e.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", e[e.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", e[e.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", e[e.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", e[e.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", e[e.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", e[e.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", e[e.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", e[e.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", e[e.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", e[e.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", e[e.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", e[e.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", e[e.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", e[e.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", e[e.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", e[e.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", e[e.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", e[e.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", e[e.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", e[e.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", e[e.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", e[e.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", e[e.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", e[e.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", e[e.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", e[e.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", e[e.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", e[e.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", e[e.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", e[e.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", e[e.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", e[e.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", e[e.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", e[e.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", e[e.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", e[e.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", e[e.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", e[e.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", e[e.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", e[e.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", e[e.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", e[e.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", e[e.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", e[e.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", e[e.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", e[e.ACTION_CALL2 = 1048637] = "ACTION_CALL2", e[e.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", e[e.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", e[e.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", e[e.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", e[e.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", e[e.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", e[e.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", e[e.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", e[e.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", e[e.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", e[e.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", e[e.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", e[e.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", e[e.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", e[e.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", e[e.ACTION_TRIGGER_CRON = 1048653] = "ACTION_TRIGGER_CRON", e[e.GROUP_UI = 2097152] = "GROUP_UI", e[e.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", e[e.UI_STREAM_END = 2097154] = "UI_STREAM_END", e[e.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", e[e.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", e[e.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", e[e.UI_SECTION_END = 2097158] = "UI_SECTION_END", e[e.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", e[e.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", e[e.UI_LIST_END = 2097161] = "UI_LIST_END", e[e.UI_TEXT = 2097162] = "UI_TEXT", e[e.UI_HEADER = 2097163] = "UI_HEADER", e[e.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", e[e.UI_BUTTON = 2097165] = "UI_BUTTON", e[e.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", e[e.UI_IMAGE = 2097167] = "UI_IMAGE", e[e.UI_FILE = 2097168] = "UI_FILE", e[e.UI_BADGE = 2097169] = "UI_BADGE", e[e.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", e[e.UI_MAP = 2097171] = "UI_MAP", e[e.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", e[e.UI_ICON = 2097173] = "UI_ICON", e[e.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", e[e.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", e[e.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", e[e.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", e[e.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", e[e.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", e[e.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", e[e.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", e[e.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", e[e.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", e[e.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", e[e.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", e[e.UI_QS = 2097186] = "UI_QS", e[e.UI_ELEMENT = 2097187] = "UI_ELEMENT", e[e.UI_STYLES = 2097188] = "UI_STYLES", e[e.UI_SVG = 2097189] = "UI_SVG", e[e.UI_UPDATE = 2097190] = "UI_UPDATE", e[e.UI_INIT = 2097191] = "UI_INIT", e[e.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", e[e.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", e[e.GROUP_COMMON = 4128768] = "GROUP_COMMON", e[e.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", e[e.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", e[e.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", e[e.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", e[e.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", e[e.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", e[e.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", e[e.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", e[e.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", e[e.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", e[e.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", e[e.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", e[e.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", e[e.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", e[e.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", e[e.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", e[e.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", e[e.GROUP_SCENE = 33554432] = "GROUP_SCENE", e[e.SCENE_MESH = 33554433] = "SCENE_MESH", e[e.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", e[e.GROUP_ALL = 67043328] = "GROUP_ALL", e[e.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", e[e.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", e))(L || {});
999
+ const ft = 161083277, Tt = 265814330, St = 1368629611, At = 2431514951, dt = 2514959030, Nt = 2745379226, yt = 3282782683, wt = 3284746250, Ct = 4101844078;
1000
1000
  function De(e) {
1001
1001
  const t = {};
1002
1002
  return Re(t), t;
@@ -1025,17 +1025,17 @@ function Dt(e, t) {
1025
1025
  t.ShapeSets = Rt(r.asArray());
1026
1026
  break;
1027
1027
  }
1028
- case At: {
1028
+ case St: {
1029
1029
  if (r.isNull) throw new Error();
1030
1030
  t.Description = r.asString();
1031
1031
  break;
1032
1032
  }
1033
- case St: {
1033
+ case At: {
1034
1034
  if (r.isNull) throw new Error();
1035
1035
  t.Channels = r.asInt32();
1036
1036
  break;
1037
1037
  }
1038
- case Nt: {
1038
+ case dt: {
1039
1039
  if (r.isNull) {
1040
1040
  t.CorrelationId = void 0;
1041
1041
  break;
@@ -1043,7 +1043,7 @@ function Dt(e, t) {
1043
1043
  t.CorrelationId = r.asString();
1044
1044
  break;
1045
1045
  }
1046
- case dt: {
1046
+ case Nt: {
1047
1047
  if (r.isNull) throw new Error();
1048
1048
  t.CodecDetails = r.asString();
1049
1049
  break;
@@ -1112,19 +1112,19 @@ function Pt(e) {
1112
1112
  t.push(r.asString());
1113
1113
  return t;
1114
1114
  }
1115
- const pt = 76337612, kt = 185396121, Mt = 250031587, Bt = 388632637, vt = 417197284, Vt = 425972532, Gt = 469070965, xt = 470595159, Ht = 594855258, Yt = 617065367, Wt = 661691032, Kt = 781727218, $t = 834078886, Xt = 1043273762, jt = 1236999138, zt = 1286979607, Jt = 1368629611, qt = 1437068682, Qt = 1668375353, Zt = 1715899485, er = 1942830531, tr = 1999510636, rr = 2033288346, sr = 2079864626, nr = 2142346422, ir = 2228539873, or = 2232517119, ar = 2598291686, lr = 2719718823, Ir = 2810953526, Er = 2840065720, _r = 2885165957, hr = 3542818975, ur = 3586157513, cr = 3717933110, fr = 4062655306;
1115
+ const pt = 76337612, kt = 185396121, Mt = 250031587, vt = 388632637, Bt = 417197284, Vt = 425972532, Gt = 469070965, xt = 470595159, Ht = 594855258, Yt = 617065367, Wt = 661691032, Kt = 781727218, $t = 834078886, Xt = 1043273762, jt = 1236999138, zt = 1286979607, Jt = 1368629611, qt = 1437068682, Qt = 1668375353, Zt = 1715899485, er = 1942830531, tr = 1999510636, rr = 2033288346, sr = 2079864626, nr = 2142346422, ir = 2228539873, or = 2232517119, ar = 2598291686, lr = 2719718823, Ir = 2810953526, Er = 2840065720, _r = 2885165957, hr = 3542818975, ur = 3586157513, cr = 3717933110, fr = 4062655306;
1116
1116
  function Tr(e) {
1117
1117
  const t = {};
1118
1118
  return me(t), t;
1119
1119
  }
1120
1120
  function me(e) {
1121
- return e.ContextType = Te.Unknown, e.UserType = de.Unknown, e.PayloadType = Ae.Unknown, e.Description = "", e.UserId = "", e.DeviceId = "", e.ProductId = "", e.VersionId = "", e.InstallId = "", e.Locale = "", e.SessionId = -1, e.IsInternal = !1, e.IsSnapshot = !1, e.IsReady = !1, e.HasInput = !1, e.ChannelLocale = "", e.EmbeddedSpaceId = "", e.AuthSessionId = "", e.ReceiveAllMessages = !1, e.PreciseJoinedAt = 0n, e.UserAgent = "", e.ClientType = fe.Unknown, e.UniqueSessionId = "", e.Parameters = /* @__PURE__ */ Object.create(null), e.SdkType = we.Unknown, e.SdkCapability = 0, e.ViewportWidth = 0, e.ViewportHeight = 0, e.Theme = "", e.Timezone = "", e.IsTouchDevice = !1, e.InitialPath = "", e.StyleFormat = Ne.Css, e.SupportsCompression = !0, e.IsSoftDisconnected = !1, e.SoftDisconnectAt = 0n, e;
1121
+ return e.ContextType = Te.Unknown, e.UserType = Ne.Unknown, e.PayloadType = Se.Unknown, e.Description = "", e.UserId = "", e.DeviceId = "", e.ProductId = "", e.VersionId = "", e.InstallId = "", e.Locale = "", e.SessionId = -1, e.IsInternal = !1, e.IsSnapshot = !1, e.IsReady = !1, e.HasInput = !1, e.ChannelLocale = "", e.EmbeddedSpaceId = "", e.AuthSessionId = "", e.ReceiveAllMessages = !1, e.PreciseJoinedAt = 0n, e.UserAgent = "", e.ClientType = fe.Unknown, e.UniqueSessionId = "", e.Parameters = /* @__PURE__ */ Object.create(null), e.SdkType = we.Unknown, e.SdkCapability = 0, e.ViewportWidth = 0, e.ViewportHeight = 0, e.Theme = "", e.Timezone = "", e.IsTouchDevice = !1, e.InitialPath = "", e.StyleFormat = de.Css, e.SupportsCompression = !0, e.IsSoftDisconnected = !1, e.SoftDisconnectAt = 0n, e;
1122
1122
  }
1123
- function Ar(e, t) {
1123
+ function Sr(e, t) {
1124
1124
  const r = t ?? Tr();
1125
- return me(r), Sr(e, r), r;
1125
+ return me(r), Ar(e, r), r;
1126
1126
  }
1127
- function Sr(e, t) {
1127
+ function Ar(e, t) {
1128
1128
  let r;
1129
1129
  for (; (r = e.next()) !== null; )
1130
1130
  switch (r.fieldId) {
@@ -1143,12 +1143,12 @@ function Sr(e, t) {
1143
1143
  t.Theme = r.asString();
1144
1144
  break;
1145
1145
  }
1146
- case Bt: {
1146
+ case vt: {
1147
1147
  if (r.isNull) throw new Error();
1148
1148
  t.UserAgent = r.asString();
1149
1149
  break;
1150
1150
  }
1151
- case vt: {
1151
+ case Bt: {
1152
1152
  if (r.isNull) throw new Error();
1153
1153
  t.ContextType = r.asInt32();
1154
1154
  break;
@@ -1285,7 +1285,7 @@ function Sr(e, t) {
1285
1285
  }
1286
1286
  case _r: {
1287
1287
  if (r.isNull) throw new Error();
1288
- t.Parameters = Nr(r.asDictionary());
1288
+ t.Parameters = dr(r.asDictionary());
1289
1289
  break;
1290
1290
  }
1291
1291
  case hr: {
@@ -1310,7 +1310,7 @@ function Sr(e, t) {
1310
1310
  }
1311
1311
  }
1312
1312
  }
1313
- function Nr(e) {
1313
+ function dr(e) {
1314
1314
  const t = /* @__PURE__ */ Object.create(null);
1315
1315
  let r;
1316
1316
  for (; (r = e.next()) !== null; ) {
@@ -1319,7 +1319,7 @@ function Nr(e) {
1319
1319
  }
1320
1320
  return t;
1321
1321
  }
1322
- const dr = 703025676, yr = 814454131, wr = 972460562, Cr = 976255570, Ur = 1368629611, Dr = 1479280922, Rr = 1533537016, Lr = 1909301063, mr = 2274386296, Or = 2603556958, gr = 2885165957, br = 3568439632;
1322
+ const Nr = 703025676, yr = 814454131, wr = 972460562, Cr = 976255570, Ur = 1368629611, Dr = 1479280922, Rr = 1533537016, Lr = 1909301063, mr = 2274386296, Or = 2603556958, gr = 2885165957, br = 3568439632;
1323
1323
  function Fr(e) {
1324
1324
  const t = {};
1325
1325
  return Oe(t), t;
@@ -1335,7 +1335,7 @@ function pr(e, t) {
1335
1335
  let r;
1336
1336
  for (; (r = e.next()) !== null; )
1337
1337
  switch (r.fieldId) {
1338
- case dr: {
1338
+ case Nr: {
1339
1339
  if (r.isNull) throw new Error();
1340
1340
  t.ResultTypeName = r.asString();
1341
1341
  break;
@@ -1411,7 +1411,7 @@ function Mr(e) {
1411
1411
  t.push(Xr(r.asObject()));
1412
1412
  return t;
1413
1413
  }
1414
- const Br = 607861992, vr = 894485888, Vr = 972460562, Gr = 1368629611, xr = 1883521406, Hr = 2603556958, Yr = 3609695522, Wr = 4075263697, Kr = 4257460908;
1414
+ const vr = 607861992, Br = 894485888, Vr = 972460562, Gr = 1368629611, xr = 1883521406, Hr = 2603556958, Yr = 3609695522, Wr = 4075263697, Kr = 4257460908;
1415
1415
  function $r(e) {
1416
1416
  const t = {};
1417
1417
  return ge(t), t;
@@ -1427,12 +1427,12 @@ function jr(e, t) {
1427
1427
  let r;
1428
1428
  for (; (r = e.next()) !== null; )
1429
1429
  switch (r.fieldId) {
1430
- case Br: {
1430
+ case vr: {
1431
1431
  if (r.isNull) throw new Error();
1432
1432
  t.HasDefaultValue = r.asBool();
1433
1433
  break;
1434
1434
  }
1435
- case vr: {
1435
+ case Br: {
1436
1436
  if (r.isNull) throw new Error();
1437
1437
  t.DefaultValueJson = r.asString();
1438
1438
  break;
@@ -1480,7 +1480,7 @@ function be(e) {
1480
1480
  return Fe(t), t;
1481
1481
  }
1482
1482
  function Fe(e) {
1483
- return e.Category = "", e.Type = Se.Face, e.FaceBlendshapes = [], e;
1483
+ return e.Category = "", e.Type = Ae.Face, e.FaceBlendshapes = [], e;
1484
1484
  }
1485
1485
  function Qr(e, t) {
1486
1486
  const r = t ?? be();
@@ -1592,16 +1592,16 @@ function fs(e, t) {
1592
1592
  }
1593
1593
  case _s: {
1594
1594
  if (r.isNull) throw new Error();
1595
- t.Style = As(r.asDictionary());
1595
+ t.Style = Ss(r.asDictionary());
1596
1596
  break;
1597
1597
  }
1598
1598
  }
1599
1599
  }
1600
1600
  async function Ts(e, t) {
1601
- const r = await v(e, Is);
1601
+ const r = await V(e, Is);
1602
1602
  return us(r, t);
1603
1603
  }
1604
- function As(e) {
1604
+ function Ss(e) {
1605
1605
  const t = /* @__PURE__ */ Object.create(null);
1606
1606
  let r;
1607
1607
  for (; (r = e.next()) !== null; ) {
@@ -1610,12 +1610,12 @@ function As(e) {
1610
1610
  }
1611
1611
  return t;
1612
1612
  }
1613
- const Ss = 2097192, Ns = 2136687806;
1614
- function ds(e) {
1613
+ const As = 2097192, ds = 2136687806;
1614
+ function Ns(e) {
1615
1615
  const t = {};
1616
- return Be(t), t;
1616
+ return ve(t), t;
1617
1617
  }
1618
- function Be(e) {
1618
+ function ve(e) {
1619
1619
  return e.Styles = [], e;
1620
1620
  }
1621
1621
  function ys(e, t) {
@@ -1623,14 +1623,14 @@ function ys(e, t) {
1623
1623
  return ws(r, t);
1624
1624
  }
1625
1625
  function ws(e, t) {
1626
- const r = t ?? ds();
1627
- return Be(r), Cs(e, r), r;
1626
+ const r = t ?? Ns();
1627
+ return ve(r), Cs(e, r), r;
1628
1628
  }
1629
1629
  function Cs(e, t) {
1630
1630
  let r;
1631
1631
  for (; (r = e.next()) !== null; )
1632
1632
  switch (r.fieldId) {
1633
- case Ns: {
1633
+ case ds: {
1634
1634
  if (r.isNull) throw new Error();
1635
1635
  t.Styles = Ds(r.asArray());
1636
1636
  break;
@@ -1638,7 +1638,7 @@ function Cs(e, t) {
1638
1638
  }
1639
1639
  }
1640
1640
  async function Us(e, t) {
1641
- const r = await v(e, Ss);
1641
+ const r = await V(e, As);
1642
1642
  return ys(r, t);
1643
1643
  }
1644
1644
  function Ds(e) {
@@ -1651,14 +1651,14 @@ function Ds(e) {
1651
1651
  const Rs = 979822885, Ls = 2374537704;
1652
1652
  function ms(e) {
1653
1653
  const t = {};
1654
- return ve(t), t;
1654
+ return Be(t), t;
1655
1655
  }
1656
- function ve(e) {
1656
+ function Be(e) {
1657
1657
  return e.StyleId = "", e.Style = /* @__PURE__ */ Object.create(null), e;
1658
1658
  }
1659
1659
  function Os(e, t) {
1660
1660
  const r = t ?? ms();
1661
- return ve(r), gs(e, r), r;
1661
+ return Be(r), gs(e, r), r;
1662
1662
  }
1663
1663
  function gs(e, t) {
1664
1664
  let r;
@@ -1699,9 +1699,9 @@ function ks(e, t) {
1699
1699
  }
1700
1700
  function Ms(e, t) {
1701
1701
  const r = t ?? ps();
1702
- return Ve(r), Bs(e, r), r;
1702
+ return Ve(r), vs(e, r), r;
1703
1703
  }
1704
- function Bs(e, t) {
1704
+ function vs(e, t) {
1705
1705
  let r;
1706
1706
  for (; (r = e.next()) !== null; )
1707
1707
  switch (r.fieldId) {
@@ -1712,8 +1712,8 @@ function Bs(e, t) {
1712
1712
  }
1713
1713
  }
1714
1714
  }
1715
- async function vs(e, t) {
1716
- const r = await v(e, Fs);
1715
+ async function Bs(e, t) {
1716
+ const r = await V(e, Fs);
1717
1717
  return ks(r, t);
1718
1718
  }
1719
1719
  function Vs(e) {
@@ -1756,7 +1756,7 @@ function $s(e, t) {
1756
1756
  }
1757
1757
  }
1758
1758
  async function Xs(e, t) {
1759
- const r = await v(e, Gs);
1759
+ const r = await V(e, Gs);
1760
1760
  return Ws(r, t);
1761
1761
  }
1762
1762
  function js(e) {
@@ -1770,7 +1770,7 @@ function js(e) {
1770
1770
  }
1771
1771
  const xe = 1, zs = 1048636, Js = 2610786289;
1772
1772
  function qs(e) {
1773
- const t = new V(xe);
1773
+ const t = new G(xe);
1774
1774
  return Qs(e, t), t.finish();
1775
1775
  }
1776
1776
  function Qs(e, t) {
@@ -1846,7 +1846,7 @@ function _n(e, t) {
1846
1846
  }
1847
1847
  }
1848
1848
  }
1849
- const hn = 65539, un = 693643444, cn = 976837618, fn = 1144553441, Tn = 1497620243, An = 1559330978, Sn = 1976546434, Nn = 2271236852, dn = 2277643855, yn = 2469008121, wn = 3042922213, Cn = 3064612128, Un = 3219210453, Dn = 3504054055, Rn = 3678477544, Ln = 3696445035, mn = 3707543140, On = 3712281496, gn = 3895362455, bn = 3897397815, Fn = 3914217035, Pn = 4225107827;
1849
+ const hn = 65539, un = 693643444, cn = 976837618, fn = 1144553441, Tn = 1497620243, Sn = 1559330978, An = 1976546434, dn = 2271236852, Nn = 2277643855, yn = 2469008121, wn = 3042922213, Cn = 3064612128, Un = 3219210453, Dn = 3504054055, Rn = 3678477544, Ln = 3696445035, mn = 3707543140, On = 3712281496, gn = 3895362455, bn = 3897397815, Fn = 3914217035, Pn = 4225107827;
1850
1850
  function pn(e) {
1851
1851
  const t = {};
1852
1852
  return We(t), t;
@@ -1860,9 +1860,9 @@ function kn(e, t) {
1860
1860
  }
1861
1861
  function Mn(e, t) {
1862
1862
  const r = t ?? pn();
1863
- return We(r), Bn(e, r), r;
1863
+ return We(r), vn(e, r), r;
1864
1864
  }
1865
- function Bn(e, t) {
1865
+ function vn(e, t) {
1866
1866
  let r;
1867
1867
  for (; (r = e.next()) !== null; )
1868
1868
  switch (r.fieldId) {
@@ -1886,22 +1886,22 @@ function Bn(e, t) {
1886
1886
  t.TrackingStreams = Gn(r.asDictionary());
1887
1887
  break;
1888
1888
  }
1889
- case An: {
1889
+ case Sn: {
1890
1890
  if (r.isNull) throw new Error();
1891
1891
  t.ChannelId = r.asString();
1892
1892
  break;
1893
1893
  }
1894
- case Sn: {
1894
+ case An: {
1895
1895
  if (r.isNull) throw new Error();
1896
1896
  t.AppSourceType = r.asInt32();
1897
1897
  break;
1898
1898
  }
1899
- case Nn: {
1899
+ case dn: {
1900
1900
  if (r.isNull) throw new Error();
1901
1901
  t.SessionChannelUrl = r.asString();
1902
1902
  break;
1903
1903
  }
1904
- case dn: {
1904
+ case Nn: {
1905
1905
  if (r.isNull) throw new Error();
1906
1906
  t.ChannelUrl = r.asString();
1907
1907
  break;
@@ -1973,8 +1973,8 @@ function Bn(e, t) {
1973
1973
  }
1974
1974
  }
1975
1975
  }
1976
- async function vn(e, t) {
1977
- const r = await v(e, hn);
1976
+ async function Bn(e, t) {
1977
+ const r = await V(e, hn);
1978
1978
  return kn(r, t);
1979
1979
  }
1980
1980
  function Vn(e) {
@@ -1982,7 +1982,7 @@ function Vn(e) {
1982
1982
  let r;
1983
1983
  for (; (r = e.next()) !== null; ) {
1984
1984
  const s = r.key.asInt32();
1985
- t[s] = Ar(r.value.asObject());
1985
+ t[s] = Sr(r.value.asObject());
1986
1986
  }
1987
1987
  return t;
1988
1988
  }
@@ -1991,7 +1991,7 @@ function Gn(e) {
1991
1991
  let r;
1992
1992
  for (; (r = e.next()) !== null; ) {
1993
1993
  const s = r.key.asString();
1994
- t[s] = Si(r.value.asObject());
1994
+ t[s] = Ai(r.value.asObject());
1995
1995
  }
1996
1996
  return t;
1997
1997
  }
@@ -2153,18 +2153,18 @@ function hi(e, t) {
2153
2153
  }
2154
2154
  }
2155
2155
  const ui = 161083277, ci = 325678206, fi = 3469892363, Ti = 3645544153;
2156
- function Ai(e) {
2156
+ function Si(e) {
2157
2157
  const t = {};
2158
2158
  return je(t), t;
2159
2159
  }
2160
2160
  function je(e) {
2161
2161
  return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = be(), e;
2162
2162
  }
2163
- function Si(e, t) {
2164
- const r = t ?? Ai();
2165
- return je(r), Ni(e, r), r;
2163
+ function Ai(e, t) {
2164
+ const r = t ?? Si();
2165
+ return je(r), di(e, r), r;
2166
2166
  }
2167
- function Ni(e, t) {
2167
+ function di(e, t) {
2168
2168
  let r;
2169
2169
  for (; (r = e.next()) !== null; )
2170
2170
  switch (r.fieldId) {
@@ -2219,7 +2219,7 @@ function Je(e, t, r, s) {
2219
2219
  return [];
2220
2220
  }
2221
2221
  }
2222
- function ie(e, t) {
2222
+ function oe(e, t) {
2223
2223
  if (!e || typeof e != "object")
2224
2224
  throw new Error(`Invalid UI node at ${t}`);
2225
2225
  const r = e.Id, s = e.Type, n = e.Props, i = e.Children, o = e.StyleIds;
@@ -2235,7 +2235,7 @@ function ie(e, t) {
2235
2235
  }
2236
2236
  let I = [];
2237
2237
  Array.isArray(i) && (I = i.map(
2238
- (E, h) => ie(E ?? {}, `${t}.children[${h}]`)
2238
+ (E, h) => oe(E ?? {}, `${t}.children[${h}]`)
2239
2239
  ));
2240
2240
  const _ = Je(o, t, r, !1), l = typeof e.SourceMarker == "string" ? e.SourceMarker : void 0;
2241
2241
  return {
@@ -2247,7 +2247,7 @@ function ie(e, t) {
2247
2247
  ...l ? { sourceMarker: l } : {}
2248
2248
  };
2249
2249
  }
2250
- function di(e, t) {
2250
+ function Ni(e, t) {
2251
2251
  if (!D(e))
2252
2252
  throw new Error(`Invalid text delta at ${t}`);
2253
2253
  const r = e.NodeId, s = e.PropertyName, n = e.Start, i = e.End, o = e.InsertedText;
@@ -2284,7 +2284,7 @@ function yi(e, t) {
2284
2284
  throw new Error(`Invalid child insert node at ${t}`);
2285
2285
  return {
2286
2286
  index: r,
2287
- node: ie(s, `${t}.node`)
2287
+ node: oe(s, `${t}.node`)
2288
2288
  };
2289
2289
  }
2290
2290
  function wi(e, t) {
@@ -2340,7 +2340,7 @@ function Ui(e, t) {
2340
2340
  }
2341
2341
  }
2342
2342
  const a = Array.isArray(e.textUpdates) ? e.textUpdates.map(
2343
- (l, E) => di(l ?? {}, `${t}.textUpdates[${E}]`)
2343
+ (l, E) => Ni(l ?? {}, `${t}.textUpdates[${E}]`)
2344
2344
  ) : void 0, I = e.styleIds, _ = I !== void 0 ? Je(I, t, r, !0) : void 0;
2345
2345
  return {
2346
2346
  nodeId: r,
@@ -2361,7 +2361,7 @@ function Di(e) {
2361
2361
  function Ri(e, t, r) {
2362
2362
  if (!e || typeof e != "object")
2363
2363
  throw new R("UI update graph is missing");
2364
- const s = ie(e, "graph");
2364
+ const s = oe(e, "graph");
2365
2365
  if (s.type !== "root")
2366
2366
  throw new R('UI update root element must have type "root"');
2367
2367
  const n = mi(s.props, t);
@@ -2408,7 +2408,7 @@ class R extends Error {
2408
2408
  super(t), this.causeError = r, this.name = "UiUpdateParseError", r instanceof Error && (this.stack = r.stack);
2409
2409
  }
2410
2410
  }
2411
- function le(e) {
2411
+ function Ie(e) {
2412
2412
  let t;
2413
2413
  try {
2414
2414
  t = JSON.parse(e.Json);
@@ -2509,7 +2509,7 @@ class Oi {
2509
2509
  return this.cache.size;
2510
2510
  }
2511
2511
  }
2512
- const gi = Q("UiStreamStore");
2512
+ const gi = Z("UiStreamStore");
2513
2513
  class bi {
2514
2514
  views = /* @__PURE__ */ new Map();
2515
2515
  listeners = /* @__PURE__ */ new Set();
@@ -2796,20 +2796,20 @@ function qe(e, t, r) {
2796
2796
  const s = t.get(e.id);
2797
2797
  let n = e, i = !1;
2798
2798
  if (s?.textUpdates && s.textUpdates.length > 0) {
2799
- const u = Bi(e, s.textUpdates);
2799
+ const u = vi(e, s.textUpdates);
2800
2800
  n = u.node, i = u.changed;
2801
2801
  }
2802
2802
  let o = !1, a = n.props;
2803
2803
  if (s?.changedProps && s.changedProps.size > 0)
2804
- for (const [u, S] of s.changedProps.entries()) {
2804
+ for (const [u, A] of s.changedProps.entries()) {
2805
2805
  const c = a[u];
2806
- if (S === void 0)
2807
- (c !== void 0 || u in a) && (o || (a = M(a), o = !0), delete a[u]);
2808
- else if (q(S)) {
2809
- const A = M(S);
2810
- p(A, c) || (o || (a = M(a), o = !0), a[u] = A);
2806
+ if (A === void 0)
2807
+ (c !== void 0 || u in a) && (o || (a = v(a), o = !0), delete a[u]);
2808
+ else if (Q(A)) {
2809
+ const S = v(A);
2810
+ p(S, c) || (o || (a = v(a), o = !0), a[u] = S);
2811
2811
  } else
2812
- p(S, c) || (o || (a = M(a), o = !0), a[u] = S);
2812
+ p(A, c) || (o || (a = v(a), o = !0), a[u] = A);
2813
2813
  }
2814
2814
  let I = !1, _ = n.styleIds;
2815
2815
  s?.styleIds !== void 0 && (et(n.styleIds, s.styleIds) || (_ = s.styleIds, I = !0));
@@ -2818,48 +2818,48 @@ function qe(e, t, r) {
2818
2818
  if (s?.removals && s.removals.length > 0 || s?.moves && s.moves.length > 0 || s?.inserts && s.inserts.length > 0) {
2819
2819
  const u = E.slice();
2820
2820
  if (s?.removals && s.removals.length > 0) {
2821
- const S = [...s.removals].sort((c, A) => A.index - c.index);
2822
- for (const c of S)
2821
+ const A = [...s.removals].sort((c, S) => S.index - c.index);
2822
+ for (const c of A)
2823
2823
  if (c.index >= 0 && c.index < u.length && u[c.index].id === c.nodeId)
2824
2824
  u.splice(c.index, 1);
2825
2825
  else {
2826
- const A = u.findIndex((w) => w.id === c.nodeId);
2827
- A >= 0 && u.splice(A, 1);
2826
+ const S = u.findIndex((w) => w.id === c.nodeId);
2827
+ S >= 0 && u.splice(S, 1);
2828
2828
  }
2829
2829
  h = !0;
2830
2830
  }
2831
2831
  if (s?.moves && s.moves.length > 0) {
2832
- const S = [...s.moves].sort((A, w) => A.toIndex - w.toIndex), c = /* @__PURE__ */ new Map();
2833
- for (const A of S) {
2834
- const w = u.findIndex((X) => X.id === A.nodeId);
2835
- w >= 0 && (c.set(A.nodeId, u[w]), u.splice(w, 1));
2832
+ const A = [...s.moves].sort((S, w) => S.toIndex - w.toIndex), c = /* @__PURE__ */ new Map();
2833
+ for (const S of A) {
2834
+ const w = u.findIndex((X) => X.id === S.nodeId);
2835
+ w >= 0 && (c.set(S.nodeId, u[w]), u.splice(w, 1));
2836
2836
  }
2837
- for (const A of S) {
2838
- const w = c.get(A.nodeId);
2837
+ for (const S of A) {
2838
+ const w = c.get(S.nodeId);
2839
2839
  if (w) {
2840
- const X = Math.min(A.toIndex, u.length);
2840
+ const X = Math.min(S.toIndex, u.length);
2841
2841
  u.splice(X, 0, w);
2842
2842
  }
2843
2843
  }
2844
2844
  h = !0;
2845
2845
  }
2846
2846
  if (s?.inserts && s.inserts.length > 0) {
2847
- const S = [...s.inserts].sort((c, A) => c.index - A.index);
2848
- for (const c of S) {
2847
+ const A = [...s.inserts].sort((c, S) => c.index - S.index);
2848
+ for (const c of A) {
2849
2849
  u.some((w) => w.id === c.node.id) && gi.warn(`Duplicate node id '${c.node.id}' (type '${c.node.type}') inserted next to an existing sibling — UI tree diverged from the server`);
2850
- const A = Math.min(c.index, u.length);
2851
- u.splice(A, 0, c.node);
2850
+ const S = Math.min(c.index, u.length);
2851
+ u.splice(S, 0, c.node);
2852
2852
  }
2853
2853
  h = !0;
2854
2854
  }
2855
2855
  E = u;
2856
2856
  }
2857
- let d;
2857
+ let N;
2858
2858
  for (let u = 0; u < E.length; u++) {
2859
- const S = E[u], c = qe(S, t);
2860
- c !== S && (d || (d = E.slice()), d[u] = c);
2859
+ const A = E[u], c = qe(A, t);
2860
+ c !== A && (N || (N = E.slice()), N[u] = c);
2861
2861
  }
2862
- return d && (E = d, h = !0), i || o || I || h ? !o && !h && !I ? n : {
2862
+ return N && (E = N, h = !0), i || o || I || h ? !o && !h && !I ? n : {
2863
2863
  id: e.id,
2864
2864
  type: e.type,
2865
2865
  props: o ? a : n.props,
@@ -2873,11 +2873,11 @@ function B(e, t) {
2873
2873
  for (const r of e.children)
2874
2874
  B(r, t);
2875
2875
  }
2876
- const x = [];
2876
+ const H = [];
2877
2877
  function pi(e) {
2878
- for (; x.length <= e; )
2879
- x.push(/* @__PURE__ */ new Map());
2880
- return x[e].clear(), x[e];
2878
+ for (; H.length <= e; )
2879
+ H.push(/* @__PURE__ */ new Map());
2880
+ return H[e].clear(), H[e];
2881
2881
  }
2882
2882
  function j(e, t, r) {
2883
2883
  Qe(e, t, r, 0);
@@ -2921,18 +2921,18 @@ function Mi(e, t) {
2921
2921
  const r = [...t].sort((i, o) => i.start - o.start);
2922
2922
  let s = e, n = 0;
2923
2923
  for (const i of r) {
2924
- const o = Ie(i.start + n, 0, s.length);
2924
+ const o = Ee(i.start + n, 0, s.length);
2925
2925
  if (i.end == null) {
2926
- const l = s.slice(o), E = vi(l, i.insertedText);
2926
+ const l = s.slice(o), E = Bi(l, i.insertedText);
2927
2927
  s = s.slice(0, o) + i.insertedText + l.slice(E), n += i.insertedText.length - E;
2928
2928
  continue;
2929
2929
  }
2930
- const a = i.end + n, I = Ie(a, o, s.length), _ = I - o;
2930
+ const a = i.end + n, I = Ee(a, o, s.length), _ = I - o;
2931
2931
  s = s.slice(0, o) + i.insertedText + s.slice(I), n += i.insertedText.length - _;
2932
2932
  }
2933
2933
  return s;
2934
2934
  }
2935
- function Bi(e, t, r) {
2935
+ function vi(e, t, r) {
2936
2936
  if (t.length === 0)
2937
2937
  return { node: e, changed: !1 };
2938
2938
  const s = /* @__PURE__ */ new Map();
@@ -2952,8 +2952,8 @@ function tt(e, t, r) {
2952
2952
  E ? E.push(l) : _.set(l.propertyName, [l]);
2953
2953
  }
2954
2954
  for (const [l, E] of _.entries()) {
2955
- const h = i[l], d = Mi(typeof h == "string" ? h : "", E);
2956
- n || (i = M(i), n = !0), i[l] = d;
2955
+ const h = i[l], N = Mi(typeof h == "string" ? h : "", E);
2956
+ n || (i = v(i), n = !0), i[l] = N;
2957
2957
  }
2958
2958
  }
2959
2959
  let o = !1;
@@ -2979,17 +2979,17 @@ function tt(e, t, r) {
2979
2979
  changed: !0
2980
2980
  };
2981
2981
  }
2982
- function Ie(e, t, r) {
2982
+ function Ee(e, t, r) {
2983
2983
  return Math.max(t, Math.min(r, e));
2984
2984
  }
2985
- function vi(e, t) {
2985
+ function Bi(e, t) {
2986
2986
  const r = Math.min(e.length, t.length);
2987
2987
  let s = 0;
2988
2988
  for (; s < r && e.charCodeAt(s) === t.charCodeAt(s); )
2989
2989
  s++;
2990
2990
  return s;
2991
2991
  }
2992
- function M(e) {
2992
+ function v(e) {
2993
2993
  const t = {}, r = Object.keys(e);
2994
2994
  for (let s = 0; s < r.length; s++) {
2995
2995
  const n = r[s];
@@ -2997,7 +2997,7 @@ function M(e) {
2997
2997
  }
2998
2998
  return t;
2999
2999
  }
3000
- function q(e) {
3000
+ function Q(e) {
3001
3001
  return typeof e == "object" && e !== null && !Array.isArray(e);
3002
3002
  }
3003
3003
  function p(e, t) {
@@ -3011,7 +3011,7 @@ function p(e, t) {
3011
3011
  return !1;
3012
3012
  return !0;
3013
3013
  }
3014
- if (q(e) && q(t)) {
3014
+ if (Q(e) && Q(t)) {
3015
3015
  const r = Object.keys(e), s = Object.keys(t);
3016
3016
  if (r.length !== s.length)
3017
3017
  return !1;
@@ -3022,32 +3022,49 @@ function p(e, t) {
3022
3022
  }
3023
3023
  return !1;
3024
3024
  }
3025
- const z = Q("LastSnapshotCache"), Ee = 1, _e = "ikon:ui-snapshot", Vi = 10080 * 60 * 1e3, Gi = 5e6, xi = 1e3, Hi = "anon";
3026
- function H() {
3025
+ const z = Z("LiveSnapshot"), _e = 1, J = "ikon:live-snapshot", Vi = 300 * 1e3, Gi = 5e6, xi = 1e3;
3026
+ function M() {
3027
3027
  try {
3028
3028
  return typeof localStorage > "u" ? null : localStorage;
3029
3029
  } catch {
3030
3030
  return null;
3031
3031
  }
3032
3032
  }
3033
- function Yi(e) {
3033
+ function Hi(e) {
3034
3034
  const t = typeof requestIdleCallback < "u" ? requestIdleCallback : null;
3035
3035
  t ? t(() => e(), { timeout: 2e3 }) : setTimeout(e, 0);
3036
3036
  }
3037
- class Wi {
3037
+ class Yi {
3038
3038
  key;
3039
3039
  appId;
3040
3040
  userId;
3041
+ disabled;
3041
3042
  maxAgeMs;
3042
3043
  maxBytes;
3043
3044
  debounceMs;
3044
3045
  writeTimer = null;
3045
3046
  pending = null;
3047
+ /** Remove every stored live snapshot (all apps and users) from localStorage. Call on logout. */
3048
+ static clearAll() {
3049
+ const t = M();
3050
+ if (!t) return;
3051
+ const r = `${J}:`, s = [];
3052
+ try {
3053
+ for (let n = 0; n < t.length; n++) {
3054
+ const i = t.key(n);
3055
+ i && i.startsWith(r) && s.push(i);
3056
+ }
3057
+ for (const n of s)
3058
+ t.removeItem(n);
3059
+ } catch {
3060
+ }
3061
+ }
3046
3062
  constructor(t) {
3047
- this.appId = t.appId, this.userId = t.userId ?? Hi, this.maxAgeMs = t.maxAgeMs ?? Vi, this.maxBytes = t.maxBytes ?? Gi, this.debounceMs = t.debounceMs ?? xi, this.key = `${_e}:${this.appId}:${this.userId}`, this.pruneOtherUsers();
3063
+ this.appId = t.appId, this.userId = t.userId, this.disabled = !this.userId, this.maxAgeMs = t.maxAgeMs ?? Vi, this.maxBytes = t.maxBytes ?? Gi, this.debounceMs = t.debounceMs ?? xi, this.key = `${J}:${this.appId}:${this.userId}`, this.disabled || this.pruneOtherUsers();
3048
3064
  }
3049
3065
  load() {
3050
- const t = H();
3066
+ if (this.disabled) return null;
3067
+ const t = M();
3051
3068
  if (!t) return null;
3052
3069
  let r;
3053
3070
  try {
@@ -3062,14 +3079,14 @@ class Wi {
3062
3079
  } catch {
3063
3080
  return this.remove(), null;
3064
3081
  }
3065
- if (s.schemaVersion !== Ee || s.appId !== this.appId || s.userId !== this.userId)
3082
+ if (s.schemaVersion !== _e || s.appId !== this.appId || s.userId !== this.userId)
3066
3083
  return this.remove(), null;
3067
3084
  if (!Number.isFinite(s.savedAtMs) || Date.now() - s.savedAtMs > this.maxAgeMs)
3068
3085
  return this.remove(), null;
3069
3086
  try {
3070
- return { streams: s.streams.map($i), styles: s.styles ?? [] };
3087
+ return { streams: s.streams.map(Ki), styles: s.styles ?? [] };
3071
3088
  } catch (n) {
3072
- return z.warn("Failed to deserialize cached UI snapshot, dropping it", n), this.remove(), null;
3089
+ return z.warn("Failed to deserialize stored live snapshot, dropping it", n), this.remove(), null;
3073
3090
  }
3074
3091
  }
3075
3092
  /**
@@ -3077,9 +3094,9 @@ class Wi {
3077
3094
  * the trailing edge). Streams with no root are skipped. The actual write runs at idle time.
3078
3095
  */
3079
3096
  save(t, r) {
3080
- this.pending = { streams: t, styles: r }, this.writeTimer === null && (this.writeTimer = setTimeout(() => {
3081
- this.writeTimer = null, Yi(() => this.writePending());
3082
- }, this.debounceMs));
3097
+ this.disabled || (this.pending = { streams: t, styles: r }, this.writeTimer === null && (this.writeTimer = setTimeout(() => {
3098
+ this.writeTimer = null, Hi(() => this.writePending());
3099
+ }, this.debounceMs)));
3083
3100
  }
3084
3101
  /** Write any pending state immediately and synchronously (used on dispose / unmount). */
3085
3102
  flush() {
@@ -3093,14 +3110,14 @@ class Wi {
3093
3110
  this.pending = null, t && this.writeNow(t.streams, t.styles);
3094
3111
  }
3095
3112
  writeNow(t, r) {
3096
- const s = H();
3113
+ const s = M();
3097
3114
  if (!s) return;
3098
3115
  const n = [];
3099
3116
  for (const a of t)
3100
- !a.rootViewId || !a.views.has(a.rootViewId) || n.push(Ki(a));
3117
+ !a.rootViewId || !a.views.has(a.rootViewId) || n.push(Wi(a));
3101
3118
  if (n.length === 0) return;
3102
3119
  const i = {
3103
- schemaVersion: Ee,
3120
+ schemaVersion: _e,
3104
3121
  savedAtMs: Date.now(),
3105
3122
  appId: this.appId,
3106
3123
  userId: this.userId,
@@ -3111,11 +3128,11 @@ class Wi {
3111
3128
  try {
3112
3129
  o = JSON.stringify(i);
3113
3130
  } catch (a) {
3114
- z.warn("Failed to serialize UI snapshot for cache", a);
3131
+ z.warn("Failed to serialize live snapshot for storage", a);
3115
3132
  return;
3116
3133
  }
3117
3134
  if (o.length > this.maxBytes) {
3118
- z.debug(`Skipping UI snapshot cache write: ${o.length} bytes exceeds ${this.maxBytes} byte budget`);
3135
+ z.debug(`Skipping live snapshot write: ${o.length} bytes exceeds ${this.maxBytes} byte budget`);
3119
3136
  return;
3120
3137
  }
3121
3138
  try {
@@ -3124,7 +3141,7 @@ class Wi {
3124
3141
  }
3125
3142
  }
3126
3143
  remove() {
3127
- const t = H();
3144
+ const t = M();
3128
3145
  if (t)
3129
3146
  try {
3130
3147
  t.removeItem(this.key);
@@ -3132,9 +3149,9 @@ class Wi {
3132
3149
  }
3133
3150
  }
3134
3151
  pruneOtherUsers() {
3135
- const t = H();
3152
+ const t = M();
3136
3153
  if (!t) return;
3137
- const r = `${_e}:${this.appId}:`, s = [];
3154
+ const r = `${J}:${this.appId}:`, s = [];
3138
3155
  try {
3139
3156
  for (let n = 0; n < t.length; n++) {
3140
3157
  const i = t.key(n);
@@ -3146,7 +3163,7 @@ class Wi {
3146
3163
  }
3147
3164
  }
3148
3165
  }
3149
- function Ki(e) {
3166
+ function Wi(e) {
3150
3167
  return {
3151
3168
  streamId: e.streamId,
3152
3169
  category: e.category,
@@ -3155,38 +3172,38 @@ function Ki(e) {
3155
3172
  views: [...e.views.entries()]
3156
3173
  };
3157
3174
  }
3158
- function $i(e) {
3175
+ function Ki(e) {
3159
3176
  return {
3160
3177
  streamId: e.streamId,
3161
3178
  category: e.category,
3162
3179
  version: e.version,
3163
3180
  rootViewId: e.rootViewId,
3164
3181
  views: e.views,
3165
- // Binary payloads are intentionally not cached; they arrive with the first live update.
3182
+ // Binary payloads are intentionally not stored; they arrive with the first live update.
3166
3183
  payloads: []
3167
3184
  };
3168
3185
  }
3169
- function Xi(e) {
3186
+ function $i(e) {
3170
3187
  return new Worker(
3171
- "" + new URL("assets/ui-worker-B0-YcaZ_.js", import.meta.url).href,
3188
+ "" + new URL("assets/ui-worker-BemkVCay.js", import.meta.url).href,
3172
3189
  {
3173
3190
  type: "module",
3174
3191
  name: e?.name
3175
3192
  }
3176
3193
  );
3177
3194
  }
3178
- const C = Q("IkonUiCore");
3195
+ const C = Z("IkonUiCore");
3179
3196
  function rt() {
3180
3197
  if (!(typeof window > "u"))
3181
3198
  return window.__IKON_BOOT_SNAPSHOT_FILE__ || void 0;
3182
3199
  }
3183
3200
  let K = null;
3184
- function Ji() {
3201
+ function zi() {
3185
3202
  if (K) return;
3186
3203
  const e = rt();
3187
3204
  e && (K = fetch(`/${e}`).then((t) => t, () => null));
3188
3205
  }
3189
- class qi {
3206
+ class Ji {
3190
3207
  unsubscribeProtocolMessages;
3191
3208
  unsubscribeState;
3192
3209
  client = null;
@@ -3199,14 +3216,14 @@ class qi {
3199
3216
  uiStyleDeleteListeners = /* @__PURE__ */ new Set();
3200
3217
  uiStreamClearedListeners = /* @__PURE__ */ new Set();
3201
3218
  useUiWorker;
3202
- cache = null;
3203
- unsubscribeCacheCapture;
3219
+ liveSnapshot = null;
3220
+ unsubscribeLiveSnapshotCapture;
3204
3221
  constructor(t) {
3205
3222
  const r = t?.threading?.uiWorker ?? "auto";
3206
- this.useUiWorker = r !== "disabled" && typeof Worker < "u", t?.cache?.enabled && (this.cache = new Wi(t.cache)), t?.client && this.initialize(t.client, t);
3223
+ this.useUiWorker = r !== "disabled" && typeof Worker < "u", t?.liveSnapshot?.enabled && (this.liveSnapshot = new Yi(t.liveSnapshot)), t?.client && this.initialize(t.client, t);
3207
3224
  }
3208
3225
  dispose() {
3209
- this.unsubscribeProtocolMessages?.(), this.unsubscribeState?.(), this.unsubscribeCacheCapture?.(), this.cache?.flush(), this.cache?.dispose(), this.cache = null, this.uiWorker?.terminate(), this.uiWorker = null, this.client = null, this.uiStyleListeners.clear(), this.uiStyleDeleteListeners.clear(), this.uiStyles.clear();
3226
+ this.unsubscribeProtocolMessages?.(), this.unsubscribeState?.(), this.unsubscribeLiveSnapshotCapture?.(), this.liveSnapshot?.dispose(), this.liveSnapshot = null, this.uiWorker?.terminate(), this.uiWorker = null, this.client = null, this.uiStyleListeners.clear(), this.uiStyleDeleteListeners.clear(), this.uiStyles.clear();
3210
3227
  }
3211
3228
  clearAllState() {
3212
3229
  this.uiWorker && this.uiWorker.postMessage({ type: "clear" });
@@ -3243,7 +3260,7 @@ class qi {
3243
3260
  return Array.from(this.uiStyles.values());
3244
3261
  }
3245
3262
  initialize(t, r) {
3246
- this.client = t, this.useUiWorker && this.startUiWorker(r), this.seedFromCache() || this.seedFromBootSnapshot(), this.subscribeCacheCapture();
3263
+ this.client = t, this.useUiWorker && this.startUiWorker(r), !this.seedFromLiveSnapshot() && r?.bootSnapshot !== !1 && this.seedFromBootSnapshot(), this.subscribeLiveSnapshotCapture();
3247
3264
  const n = {
3248
3265
  opcodeGroupsMask: L.GROUP_CORE | L.GROUP_UI | L.GROUP_ACTIONS
3249
3266
  };
@@ -3264,10 +3281,12 @@ class qi {
3264
3281
  }
3265
3282
  });
3266
3283
  }
3267
- seedFromCache() {
3268
- if (!this.cache) return !1;
3269
- const t = this.cache.load();
3284
+ seedFromLiveSnapshot() {
3285
+ if (!this.liveSnapshot) return !1;
3286
+ const t = this.liveSnapshot.load();
3270
3287
  if (!t || t.streams.length === 0) return !1;
3288
+ if (this.uiWorker)
3289
+ return this.uiWorker.postMessage({ type: "seed", liveStreams: t.streams, styles: t.styles }), !0;
3271
3290
  for (const r of t.styles)
3272
3291
  this.uiStyles.set(r.styleId, r), this.notifyUiStyle(r);
3273
3292
  for (const r of t.streams)
@@ -3288,25 +3307,30 @@ class qi {
3288
3307
  const r = (K ? await K : null) ?? await fetch(`/${t}`);
3289
3308
  if (!r.ok) return;
3290
3309
  const s = await r.json();
3291
- if (!s?.json || this.uiStore.getSnapshots().some((i) => i.rootViewId)) return;
3310
+ if (!s?.json) return;
3311
+ if (this.uiWorker) {
3312
+ this.uiWorker.postMessage({ type: "seed", bootStreamId: s.streamId ?? "boot", bootJson: s.json, styles: s.styles ?? [] });
3313
+ return;
3314
+ }
3315
+ if (this.uiStore.getSnapshots().some((i) => i.rootViewId)) return;
3292
3316
  for (const i of s.styles ?? []) {
3293
3317
  const o = { styleId: i.styleId, css: i.css, common: i.common };
3294
3318
  this.uiStyles.set(o.styleId, o), this.notifyUiStyle(o);
3295
3319
  }
3296
- const n = le({ Json: s.json });
3320
+ const n = Ie({ Json: s.json });
3297
3321
  this.uiStore.apply(s.streamId ?? "boot", n), this.uiStore.enterSnapshotModeAll();
3298
3322
  } catch {
3299
3323
  }
3300
3324
  }
3301
- subscribeCacheCapture() {
3302
- const t = this.cache;
3303
- t && (this.unsubscribeCacheCapture = this.uiStore.subscribe(() => {
3325
+ subscribeLiveSnapshotCapture() {
3326
+ const t = this.liveSnapshot;
3327
+ t && (this.unsubscribeLiveSnapshotCapture = this.uiStore.subscribe(() => {
3304
3328
  t.save(this.uiStore.getSnapshots(), this.getUiStyles());
3305
3329
  }));
3306
3330
  }
3307
3331
  startUiWorker(t) {
3308
3332
  try {
3309
- this.uiWorker = new Xi();
3333
+ this.uiWorker = new $i();
3310
3334
  } catch (n) {
3311
3335
  C.warn("Failed to create UI worker, falling back to main thread", n), this.uiWorker = null;
3312
3336
  return;
@@ -3422,7 +3446,7 @@ class qi {
3422
3446
  }
3423
3447
  }
3424
3448
  handleGlobalState(t) {
3425
- vn(t).then((r) => {
3449
+ Bn(t).then((r) => {
3426
3450
  const s = /* @__PURE__ */ new Set();
3427
3451
  for (const n of Object.values(r.UIStreams ?? {}))
3428
3452
  s.add(n.StreamId), this.uiStore.setCategory(n.StreamId, n.Info?.Category);
@@ -3433,9 +3457,9 @@ class qi {
3433
3457
  });
3434
3458
  }
3435
3459
  handleUiUpdate(t) {
3436
- const r = oe(t), s = `${r.senderId}_${r.trackId}`;
3460
+ const r = ae(t), s = `${r.senderId}_${r.trackId}`;
3437
3461
  Xs(t).then((n) => {
3438
- const i = le(n);
3462
+ const i = Ie(n);
3439
3463
  this.notifyUiUpdate(s, i), this.uiStore.apply(s, i), this.sendUiUpdateAck(r.trackId, i.snapshot.version, r.senderId);
3440
3464
  }).catch((n) => {
3441
3465
  n instanceof R ? C.warn("Failed to parse UI update", n.causeError ?? n) : C.error("Failed to apply UI update", n);
@@ -3471,7 +3495,7 @@ class qi {
3471
3495
  });
3472
3496
  }
3473
3497
  handleUiStylesDelete(t) {
3474
- vs(t).then((r) => {
3498
+ Bs(t).then((r) => {
3475
3499
  if (!(!r.StyleIds || r.StyleIds.length === 0)) {
3476
3500
  for (const s of r.StyleIds)
3477
3501
  this.uiStyles.delete(s);
@@ -3482,7 +3506,7 @@ class qi {
3482
3506
  });
3483
3507
  }
3484
3508
  handleClearStream(t) {
3485
- const r = oe(t), s = `${r.senderId}_${r.trackId}`;
3509
+ const r = ae(t), s = `${r.senderId}_${r.trackId}`;
3486
3510
  this.uiStore.clear(s), this.notifyUiStreamCleared(s);
3487
3511
  }
3488
3512
  notifyUiUpdate(t, r) {
@@ -3513,11 +3537,11 @@ class qi {
3513
3537
  }
3514
3538
  export {
3515
3539
  Oi as HandlerCache,
3516
- qi as IkonUiCore,
3517
- Wi as LastSnapshotCache,
3540
+ Ji as IkonUiCore,
3541
+ Yi as LiveSnapshotCache,
3518
3542
  Fi as UiStore,
3519
3543
  bi as UiStreamStore,
3520
3544
  R as UiUpdateParseError,
3521
- le as parseUiUpdate,
3522
- Ji as prefetchBootSnapshot
3545
+ Ie as parseUiUpdate,
3546
+ zi as prefetchBootSnapshot
3523
3547
  };