@ikonai/sdk 1.0.2 → 1.0.3

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
@@ -17,9 +17,9 @@ function ne(t) {
17
17
  if (27 + c * 4 > e.length)
18
18
  throw new Error("Protocol header exceeds payload length");
19
19
  const E = [];
20
- let p = 27;
20
+ let m = 27;
21
21
  for (let I = 0; I < c; I++)
22
- E.push(r.getUint32(p, !0)), p += 4;
22
+ E.push(r.getUint32(m, !0)), m += 4;
23
23
  return {
24
24
  length: n,
25
25
  opcode: s,
@@ -32,7 +32,7 @@ function ne(t) {
32
32
  flags: d
33
33
  };
34
34
  }
35
- function Me(t, e, r) {
35
+ function Oe(t, e, r) {
36
36
  const n = se(t), s = ne(n);
37
37
  if (e !== void 0 && s.opcode !== e)
38
38
  throw new Error(`Unexpected opcode ${s.opcode}`);
@@ -46,9 +46,9 @@ function Me(t, e, r) {
46
46
  function F(t, e, r, n, s) {
47
47
  const i = s?.trackId ?? 0, o = s?.sequenceId ?? 0, a = s?.flags ?? 0, c = s?.targetIds ?? [], u = s?.payloadType ?? 8, f = 27 + c.length * 4, d = f + e.length, h = new Uint8Array(d), E = new DataView(h.buffer);
48
48
  E.setUint32(0, d, !0), E.setUint32(4, t >>> 0, !0), E.setUint32(8, n >>> 0, !0), E.setUint32(12, i >>> 0, !0), E.setUint32(16, o >>> 0, !0), E.setUint32(20, c.length >>> 0, !0), E.setUint8(24, r & 255), E.setUint8(25, u & 255), E.setUint8(26, a & 255);
49
- let p = 27;
49
+ let m = 27;
50
50
  for (let I = 0; I < c.length; I++)
51
- E.setUint32(p, c[I] >>> 0, !0), p += 4;
51
+ E.setUint32(m, c[I] >>> 0, !0), m += 4;
52
52
  return h.set(e, f), h;
53
53
  }
54
54
  var R = /* @__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))(R || {});
@@ -82,7 +82,7 @@ class D {
82
82
  this.writeFixedField(e, 2, () => this.buffer.writeByte(r ? 1 : 0));
83
83
  }
84
84
  writeGuidField(e, r) {
85
- const n = r instanceof m ? r.asBytes() : r;
85
+ const n = r instanceof _ ? r.asBytes() : r;
86
86
  if (n.length !== 16)
87
87
  throw new Error("Guid payload must be 16 bytes");
88
88
  this.writeFixedField(e, 14, () => this.buffer.writeBytes(n));
@@ -107,7 +107,7 @@ class D {
107
107
  this.writeVariableField(e, 9, i);
108
108
  }
109
109
  writeDictionaryField(e, r, n, s) {
110
- const i = new Oe(r, n);
110
+ const i = new Me(r, n);
111
111
  s(i);
112
112
  const o = i.finish();
113
113
  this.writeVariableField(e, 10, o);
@@ -178,7 +178,7 @@ class _e {
178
178
  14
179
179
  /* Guid */
180
180
  ), this.count++;
181
- const r = e instanceof m ? e.asBytes() : e;
181
+ const r = e instanceof _ ? e.asBytes() : e;
182
182
  if (r.length !== 16)
183
183
  throw new Error("Guid payload must be 16 bytes");
184
184
  this.payload.writeBytes(r);
@@ -222,7 +222,7 @@ class _e {
222
222
  10
223
223
  /* Dict */
224
224
  ), this.count++;
225
- const s = new Oe(e, r);
225
+ const s = new Me(e, r);
226
226
  n(s);
227
227
  const i = s.finish();
228
228
  this.payload.writeBytes(i);
@@ -236,7 +236,7 @@ class _e {
236
236
  throw new Error(`Array element type is ${R[this.elementType]}, expected ${R[e]}`);
237
237
  }
238
238
  }
239
- class Oe {
239
+ class Me {
240
240
  constructor(e, r) {
241
241
  this.keyType = e, this.valueType = r, Pe(e);
242
242
  }
@@ -311,7 +311,7 @@ class Vr {
311
311
  14
312
312
  /* Guid */
313
313
  );
314
- const r = e instanceof m ? e.asBytes() : e;
314
+ const r = e instanceof _ ? e.asBytes() : e;
315
315
  if (r.length !== 16)
316
316
  throw new Error("Guid payload must be 16 bytes");
317
317
  this.payload.writeBytes(r), this.keyWritten = !0;
@@ -377,7 +377,7 @@ class Vr {
377
377
  14
378
378
  /* Guid */
379
379
  );
380
- const r = e instanceof m ? e.asBytes() : e;
380
+ const r = e instanceof _ ? e.asBytes() : e;
381
381
  if (r.length !== 16)
382
382
  throw new Error("Guid payload must be 16 bytes");
383
383
  this.payload.writeBytes(r), this.valueWritten = !0;
@@ -427,7 +427,7 @@ class Vr {
427
427
  10
428
428
  /* Dict */
429
429
  );
430
- const s = new Oe(e, r);
430
+ const s = new Me(e, r);
431
431
  n(s);
432
432
  const i = s.finish();
433
433
  this.payload.writeBytes(i), this.valueWritten = !0;
@@ -552,7 +552,7 @@ class P {
552
552
  return this.ensureType(
553
553
  14
554
554
  /* Guid */
555
- ), m.fromBytes(this.payload);
555
+ ), _.fromBytes(this.payload);
556
556
  }
557
557
  asObject() {
558
558
  return this.ensureType(
@@ -748,7 +748,7 @@ class Hr {
748
748
  this.key = e, this.value = r;
749
749
  }
750
750
  }
751
- class m {
751
+ class _ {
752
752
  constructor(e) {
753
753
  this.bytes = e;
754
754
  }
@@ -758,19 +758,19 @@ class m {
758
758
  const r = e.replace(/-/g, "");
759
759
  if (r.length !== 32)
760
760
  throw new Error("Guid string must be 32 hex characters");
761
- const n = new Uint8Array(16), s = m.parseHexSlice(r, 0, 8), i = m.parseHexSlice(r, 8, 4), o = m.parseHexSlice(r, 12, 4);
762
- m.writeUInt32LE(n, 0, s), m.writeUInt16LE(n, 4, i), m.writeUInt16LE(n, 6, o);
761
+ const n = new Uint8Array(16), s = _.parseHexSlice(r, 0, 8), i = _.parseHexSlice(r, 8, 4), o = _.parseHexSlice(r, 12, 4);
762
+ _.writeUInt32LE(n, 0, s), _.writeUInt16LE(n, 4, i), _.writeUInt16LE(n, 6, o);
763
763
  for (let a = 0; a < 8; a++)
764
- n[8 + a] = m.parseHexSlice(r, 16 + a * 2, 2);
765
- return new m(n);
764
+ n[8 + a] = _.parseHexSlice(r, 16 + a * 2, 2);
765
+ return new _(n);
766
766
  }
767
767
  static fromBytes(e) {
768
768
  if (e.length !== 16)
769
769
  throw new Error("Guid byte array must be 16 bytes");
770
- return new m(Uint8Array.from(e));
770
+ return new _(Uint8Array.from(e));
771
771
  }
772
772
  static createZero() {
773
- return new m(new Uint8Array(16));
773
+ return new _(new Uint8Array(16));
774
774
  }
775
775
  static createRandom() {
776
776
  const e = new Uint8Array(16), r = globalThis.crypto;
@@ -779,14 +779,14 @@ class m {
779
779
  else
780
780
  for (let n = 0; n < e.length; n++)
781
781
  e[n] = Math.floor(Math.random() * 256);
782
- return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, new m(e);
782
+ return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, new _(e);
783
783
  }
784
784
  toString() {
785
785
  const e = this.bytes;
786
786
  return [
787
- m.toHex(m.readUInt32LE(e, 0), 8),
788
- m.toHex(m.readUInt16LE(e, 4), 4),
789
- m.toHex(m.readUInt16LE(e, 6), 4),
787
+ _.toHex(_.readUInt32LE(e, 0), 8),
788
+ _.toHex(_.readUInt16LE(e, 4), 4),
789
+ _.toHex(_.readUInt16LE(e, 6), 4),
790
790
  ze(e.subarray(8, 10)),
791
791
  ze(e.subarray(10, 16))
792
792
  ].join("-");
@@ -985,7 +985,7 @@ function ze(t) {
985
985
  function se(t) {
986
986
  return t instanceof Uint8Array ? t : new Uint8Array(t);
987
987
  }
988
- var ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ft || {}), X = /* @__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))(X || {}), J = /* @__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))(J || {}), k = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.WebSocket = 1] = "WebSocket", t[t.WebSocketProxy = 2] = "WebSocketProxy", t[t.WebTransport = 4] = "WebTransport", t[t.WebTransportProxy = 8] = "WebTransportProxy", t[t.Tcp = 16] = "Tcp", t[t.TcpProxy = 32] = "TcpProxy", t[t.Https = 64] = "Https", t))(k || {}), Q = /* @__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))(Q || {}), Et = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(Et || {}), Z = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Z || {}), pt = /* @__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))(pt || {}), Ge = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(Ge || {}), S = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(S || {});
988
+ var ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(ft || {}), X = /* @__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))(X || {}), J = /* @__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))(J || {}), k = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.WebSocket = 1] = "WebSocket", t[t.WebSocketProxy = 2] = "WebSocketProxy", t[t.WebTransport = 4] = "WebTransport", t[t.WebTransportProxy = 8] = "WebTransportProxy", t[t.Tcp = 16] = "Tcp", t[t.TcpProxy = 32] = "TcpProxy", t[t.Https = 64] = "Https", t))(k || {}), Q = /* @__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))(Q || {}), Et = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(Et || {}), Z = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Z || {}), pt = /* @__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))(pt || {}), Ge = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(Ge || {}), S = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.ANALYTICS_DEVTOOLS_CONSOLE_OUTPUT = 524297] = "ANALYTICS_DEVTOOLS_CONSOLE_OUTPUT", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(S || {});
989
989
  const It = 1, jr = 1048637, zr = 727023925, Xr = 3395085689;
990
990
  function Jr(t) {
991
991
  const e = new D(It);
@@ -1004,7 +1004,7 @@ function an(t) {
1004
1004
  return mt(e), e;
1005
1005
  }
1006
1006
  function mt(t) {
1007
- return t.ParameterIndex = 0, t.TypeName = "", t.ValueJson = "", t.ValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.EnumerationId = m.fromBytes(new Uint8Array(16)), t;
1007
+ return t.ParameterIndex = 0, t.TypeName = "", t.ValueJson = "", t.ValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.EnumerationId = _.fromBytes(new Uint8Array(16)), t;
1008
1008
  }
1009
1009
  function cn(t, e) {
1010
1010
  const r = e ?? an();
@@ -1149,7 +1149,7 @@ function gn(t) {
1149
1149
  e.push(r.asString());
1150
1150
  return e;
1151
1151
  }
1152
- const Cn = 76337612, Rn = 185396121, bn = 388632637, kn = 417197284, Un = 469070965, Dn = 470595159, Mn = 781727218, On = 834078886, Ln = 1043273762, vn = 1236999138, Pn = 1368629611, Fn = 1715899485, Bn = 1942830531, Gn = 1999510636, xn = 2079864626, Vn = 2142346422, Wn = 2598291686, Hn = 2719718823, $n = 2810953526, Kn = 2840065720, Yn = 2885165957, jn = 3586157513, zn = 3717933110, Xn = 4062655306;
1152
+ const Cn = 76337612, Rn = 185396121, bn = 388632637, kn = 417197284, Un = 469070965, Dn = 470595159, On = 781727218, Mn = 834078886, Ln = 1043273762, vn = 1236999138, Pn = 1368629611, Fn = 1715899485, Bn = 1942830531, Gn = 1999510636, xn = 2079864626, Vn = 2142346422, Wn = 2598291686, Hn = 2719718823, $n = 2810953526, Kn = 2840065720, Yn = 2885165957, jn = 3586157513, zn = 3717933110, Xn = 4062655306;
1153
1153
  function Ne(t) {
1154
1154
  const e = {};
1155
1155
  return wt(e), e;
@@ -1195,12 +1195,12 @@ function Jn(t, e) {
1195
1195
  e.UserType = r.asInt32();
1196
1196
  break;
1197
1197
  }
1198
- case Mn: {
1198
+ case On: {
1199
1199
  if (r.isNull) throw new Error();
1200
1200
  e.UserId = r.asString();
1201
1201
  break;
1202
1202
  }
1203
- case On: {
1203
+ case Mn: {
1204
1204
  if (r.isNull) throw new Error();
1205
1205
  e.ProductId = r.asString();
1206
1206
  break;
@@ -1417,7 +1417,7 @@ function As(t, e) {
1417
1417
  }
1418
1418
  }
1419
1419
  function ys(t, e) {
1420
- const r = Me(t, ls, cs);
1420
+ const r = Oe(t, ls, cs);
1421
1421
  return Ss(r, e);
1422
1422
  }
1423
1423
  function Ns(t) {
@@ -1446,12 +1446,12 @@ function Rs(t) {
1446
1446
  const Nt = 1, bs = 1048632, ks = 3748161056, Us = 4289118421;
1447
1447
  function Ds(t) {
1448
1448
  const e = {};
1449
- return Ms(e), t && Object.assign(e, t), e;
1450
- }
1451
- function Ms(t) {
1452
- return t.CallId = m.fromBytes(new Uint8Array(16)), t.InstanceId = m.fromBytes(new Uint8Array(16)), t;
1449
+ return Os(e), t && Object.assign(e, t), e;
1453
1450
  }
1454
1451
  function Os(t) {
1452
+ return t.CallId = _.fromBytes(new Uint8Array(16)), t.InstanceId = _.fromBytes(new Uint8Array(16)), t;
1453
+ }
1454
+ function Ms(t) {
1455
1455
  const e = new D(Nt);
1456
1456
  return Ls(t, e), e.finish();
1457
1457
  }
@@ -1459,7 +1459,7 @@ function Ls(t, e) {
1459
1459
  e.writeGuidField(ks, t.CallId), e.writeGuidField(Us, t.InstanceId);
1460
1460
  }
1461
1461
  function vs(t, e, r) {
1462
- const n = Os(t);
1462
+ const n = Ms(t);
1463
1463
  return F(bs, n, Nt, e, r);
1464
1464
  }
1465
1465
  const Ps = 1, Fs = 1048601, Bs = 112005851, Gs = 814454131, xs = 976255570, Vs = 1123310456, Ws = 2885165957, Hs = 3748161056, $s = 4289118421;
@@ -1468,7 +1468,7 @@ function Ks(t) {
1468
1468
  return gt(e), e;
1469
1469
  }
1470
1470
  function gt(t) {
1471
- return t.FunctionId = m.fromBytes(new Uint8Array(16)), t.CallId = m.fromBytes(new Uint8Array(16)), t.InstanceId = m.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ClientBackendToken = "", t.Scopes = [], t;
1471
+ return t.FunctionId = _.fromBytes(new Uint8Array(16)), t.CallId = _.fromBytes(new Uint8Array(16)), t.InstanceId = _.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ClientBackendToken = "", t.Scopes = [], t;
1472
1472
  }
1473
1473
  function Ys(t, e) {
1474
1474
  const r = z.create(t);
@@ -1520,7 +1520,7 @@ function zs(t, e) {
1520
1520
  }
1521
1521
  }
1522
1522
  function Xs(t, e) {
1523
- const r = Me(t, Fs, Ps);
1523
+ const r = Oe(t, Fs, Ps);
1524
1524
  return Ys(r, e);
1525
1525
  }
1526
1526
  function Js(t) {
@@ -1571,7 +1571,7 @@ function li(t) {
1571
1571
  return ui(e), t && Object.assign(e, t), e;
1572
1572
  }
1573
1573
  function ui(t) {
1574
- return t.CallId = m.fromBytes(new Uint8Array(16)), t.InstanceId = m.fromBytes(new Uint8Array(16)), t.ErrorMessage = "", t.ErrorTypeName = "", t.StackTrace = "", t;
1574
+ return t.CallId = _.fromBytes(new Uint8Array(16)), t.InstanceId = _.fromBytes(new Uint8Array(16)), t.ErrorMessage = "", t.ErrorTypeName = "", t.StackTrace = "", t;
1575
1575
  }
1576
1576
  function hi(t) {
1577
1577
  const e = new D(Rt);
@@ -1584,20 +1584,20 @@ function fi(t, e, r) {
1584
1584
  const n = hi(t);
1585
1585
  return F(ni, n, Rt, e, r);
1586
1586
  }
1587
- const xe = 1, Ei = 1048600, bt = 703025676, kt = 814454131, Ut = 972460562, Dt = 976255570, Mt = 1368629611, Ot = 1479280922, Lt = 1533537016, vt = 2274386296, Pt = 2603556958, Ft = 2885165957, Bt = 3568439632;
1587
+ const xe = 1, Ei = 1048600, bt = 703025676, kt = 814454131, Ut = 972460562, Dt = 976255570, Ot = 1368629611, Mt = 1479280922, Lt = 1533537016, vt = 2274386296, Pt = 2603556958, Ft = 2885165957, Bt = 3568439632;
1588
1588
  function pi(t) {
1589
1589
  const e = {};
1590
1590
  return Gt(e), e;
1591
1591
  }
1592
1592
  function Gt(t) {
1593
- return t.FunctionId = m.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;
1593
+ return t.FunctionId = _.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;
1594
1594
  }
1595
1595
  function Ii(t) {
1596
1596
  const e = new D(xe);
1597
1597
  return xt(t, e), e.finish();
1598
1598
  }
1599
1599
  function xt(t, e) {
1600
- e.writeStringField(bt, t.ResultTypeName), e.writeStringField(kt, t.FunctionName), e.writeStringField(Ut, t.EnumerableItemTypeName), e.writeGuidField(Dt, t.FunctionId), e.writeStringField(Mt, t.Description), e.writeBoolField(Ot, t.IsCancellable), e.writeBoolField(Lt, t.RequiresInstance), e.writeBoolField(vt, t.LlmInlineResult), e.writeBoolField(Pt, t.IsEnumerable), e.writeArrayField(Ft, R.Object, (r) => {
1600
+ e.writeStringField(bt, t.ResultTypeName), e.writeStringField(kt, t.FunctionName), e.writeStringField(Ut, t.EnumerableItemTypeName), e.writeGuidField(Dt, t.FunctionId), e.writeStringField(Ot, t.Description), e.writeBoolField(Mt, t.IsCancellable), e.writeBoolField(Lt, t.RequiresInstance), e.writeBoolField(vt, t.LlmInlineResult), e.writeBoolField(Pt, t.IsEnumerable), e.writeArrayField(Ft, R.Object, (r) => {
1601
1601
  for (const n of t.Parameters)
1602
1602
  r.writeObject(wi, (s) => {
1603
1603
  yi(n, s);
@@ -1632,12 +1632,12 @@ function _i(t, e) {
1632
1632
  e.FunctionId = r.asGuid();
1633
1633
  break;
1634
1634
  }
1635
- case Mt: {
1635
+ case Ot: {
1636
1636
  if (r.isNull) throw new Error();
1637
1637
  e.Description = r.asString();
1638
1638
  break;
1639
1639
  }
1640
- case Ot: {
1640
+ case Mt: {
1641
1641
  if (r.isNull) throw new Error();
1642
1642
  e.IsCancellable = r.asBool();
1643
1643
  break;
@@ -1766,17 +1766,17 @@ function Di(t, e) {
1766
1766
  });
1767
1767
  });
1768
1768
  }
1769
- function Mi(t, e, r) {
1769
+ function Oi(t, e, r) {
1770
1770
  const n = Ui(t);
1771
1771
  return F(Ci, n, Qt, e, r);
1772
1772
  }
1773
- const Zt = 1, Oi = 1048602, Li = 349453957, vi = 703025676, Pi = 3403385840, Fi = 3748161056, Bi = 4289118421;
1773
+ const Zt = 1, Mi = 1048602, Li = 349453957, vi = 703025676, Pi = 3403385840, Fi = 3748161056, Bi = 4289118421;
1774
1774
  function Gi(t) {
1775
1775
  const e = {};
1776
1776
  return xi(e), t && Object.assign(e, t), e;
1777
1777
  }
1778
1778
  function xi(t) {
1779
- return t.CallId = m.fromBytes(new Uint8Array(16)), t.InstanceId = m.fromBytes(new Uint8Array(16)), t.ResultTypeName = "", t.ResultJson = "", t.ResultData = new Uint8Array(0), t;
1779
+ return t.CallId = _.fromBytes(new Uint8Array(16)), t.InstanceId = _.fromBytes(new Uint8Array(16)), t.ResultTypeName = "", t.ResultJson = "", t.ResultData = new Uint8Array(0), t;
1780
1780
  }
1781
1781
  function Vi(t) {
1782
1782
  const e = new D(Zt);
@@ -1787,7 +1787,7 @@ function Wi(t, e) {
1787
1787
  }
1788
1788
  function Hi(t, e, r) {
1789
1789
  const n = Vi(t);
1790
- return F(Oi, n, Zt, e, r);
1790
+ return F(Mi, n, Zt, e, r);
1791
1791
  }
1792
1792
  const qt = 1, $i = 65549;
1793
1793
  function Xe(t) {
@@ -1916,7 +1916,7 @@ function lo(t, e) {
1916
1916
  }
1917
1917
  }
1918
1918
  }
1919
- const uo = 4, ho = 65539, fo = 414670648, Eo = 693643444, po = 1144553441, Io = 1497620243, mo = 1559330978, _o = 1999510636, To = 2277643855, So = 2469008121, wo = 3042922213, Ao = 3219210453, yo = 3504054055, No = 3642827795, go = 3678477544, Co = 3696445035, Ro = 3707543140, bo = 3712281496, ko = 3748214980, Uo = 3823842552, Do = 3895362455, Mo = 3897397815, Oo = 4225107827;
1919
+ const uo = 4, ho = 65539, fo = 414670648, Eo = 693643444, po = 1144553441, Io = 1497620243, mo = 1559330978, _o = 1999510636, To = 2277643855, So = 2469008121, wo = 3042922213, Ao = 3219210453, yo = 3504054055, No = 3642827795, go = 3678477544, Co = 3696445035, Ro = 3707543140, bo = 3712281496, ko = 3748214980, Uo = 3823842552, Do = 3895362455, Oo = 3897397815, Mo = 4225107827;
1920
1920
  function Lo(t) {
1921
1921
  const e = {};
1922
1922
  return or(e), e;
@@ -2031,12 +2031,12 @@ function Fo(t, e) {
2031
2031
  e.AudioStreams = Ho(r.asDictionary());
2032
2032
  break;
2033
2033
  }
2034
- case Mo: {
2034
+ case Oo: {
2035
2035
  if (r.isNull) throw new Error();
2036
2036
  e.VideoStreams = $o(r.asDictionary());
2037
2037
  break;
2038
2038
  }
2039
- case Oo: {
2039
+ case Mo: {
2040
2040
  if (r.isNull) throw new Error();
2041
2041
  e.SpaceName = r.asString();
2042
2042
  break;
@@ -2044,7 +2044,7 @@ function Fo(t, e) {
2044
2044
  }
2045
2045
  }
2046
2046
  function Bo(t, e) {
2047
- const r = Me(t, ho, uo);
2047
+ const r = Oe(t, ho, uo);
2048
2048
  return vo(r, e);
2049
2049
  }
2050
2050
  function Go(t) {
@@ -2284,7 +2284,7 @@ function ga(t, e, r) {
2284
2284
  }
2285
2285
  function Ca(t) {
2286
2286
  return new Worker(
2287
- "" + new URL("assets/protocol-worker-DKSTqFKg.js", import.meta.url).href,
2287
+ "" + new URL("assets/protocol-worker-BnPqA34K.js", import.meta.url).href,
2288
2288
  {
2289
2289
  type: "module",
2290
2290
  name: t?.name
@@ -2417,8 +2417,8 @@ function L(t) {
2417
2417
  }
2418
2418
  };
2419
2419
  }
2420
- const oe = L("WebSocketTransport"), Ma = 1e4;
2421
- class Oa {
2420
+ const oe = L("WebSocketTransport"), Oa = 1e4;
2421
+ class Ma {
2422
2422
  ws = null;
2423
2423
  keepaliveTimeout = null;
2424
2424
  // Pre-allocated keepalive response message to avoid allocation per keepalive
@@ -2445,7 +2445,7 @@ class Oa {
2445
2445
  clearTimeout(c), this.ws && (this.ws.onopen = null, this.ws.onerror = null, this.ws.onclose = null, this.ws.onmessage = null);
2446
2446
  }, c = setTimeout(() => {
2447
2447
  o || (o = !0, a(), this.ws?.close(), s(new W("WebSocket connection timeout")));
2448
- }, Ma);
2448
+ }, Oa);
2449
2449
  this.ws.onopen = () => {
2450
2450
  i = !0, clearTimeout(c), this.ws.send(r), this.resetKeepaliveTimeout(), o || (o = !0, n());
2451
2451
  }, this.ws.onerror = () => {
@@ -2738,7 +2738,7 @@ class Pa {
2738
2738
  switch (e.Type) {
2739
2739
  case k.WebSocket:
2740
2740
  case k.WebSocketProxy:
2741
- this.transport = new Oa(r);
2741
+ this.transport = new Ma(r);
2742
2742
  break;
2743
2743
  case k.WebTransport:
2744
2744
  case k.WebTransportProxy:
@@ -3571,7 +3571,7 @@ function Nc(t, e) {
3571
3571
  description: i.description
3572
3572
  };
3573
3573
  }), n = me(t.returnType), s = {
3574
- FunctionId: m.createRandom(),
3574
+ FunctionId: _.createRandom(),
3575
3575
  FunctionName: t.name,
3576
3576
  Description: t.description ?? "",
3577
3577
  LlmInlineResult: t.llmInlineResult ?? !1,
@@ -3672,7 +3672,7 @@ class Rc {
3672
3672
  sendAllRegistrations() {
3673
3673
  if (!this.config || this.functions.size === 0)
3674
3674
  return;
3675
- const e = Array.from(this.functions.values()).map((s) => s.registerPayload), r = bi({ Functions: e }), n = Mi(r, this.config.sessionId);
3675
+ const e = Array.from(this.functions.values()).map((s) => s.registerPayload), r = bi({ Functions: e }), n = Oi(r, this.config.sessionId);
3676
3676
  this.config.sendProtocolMessage(n);
3677
3677
  }
3678
3678
  /**
@@ -3796,13 +3796,13 @@ const Te = {
3796
3796
  description: "Stop a previously started capture by captureId",
3797
3797
  returnType: { kind: "boolean" },
3798
3798
  parameters: [{ name: "captureId", type: { kind: "string" }, description: "Capture ID to stop" }]
3799
- }, Mc = {
3799
+ }, Oc = {
3800
3800
  name: Te.CaptureImage,
3801
3801
  description: "Capture a single image from the camera and return metadata (JSON) plus binary image data",
3802
3802
  returnType: { kind: "string" },
3803
3803
  parameters: [{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }]
3804
3804
  };
3805
- function Oc(t, e) {
3805
+ function Mc(t, e) {
3806
3806
  const r = [];
3807
3807
  return r.push(
3808
3808
  t.register(kc, async (n, s) => {
@@ -3829,7 +3829,7 @@ function Oc(t, e) {
3829
3829
  return i || o;
3830
3830
  })
3831
3831
  ), r.push(
3832
- t.register(Mc, async (n) => {
3832
+ t.register(Oc, async (n) => {
3833
3833
  const s = e.mediaCapture;
3834
3834
  if (!s)
3835
3835
  throw new Error("Media capture is not available in this environment");
@@ -3869,7 +3869,7 @@ function br(t) {
3869
3869
  }
3870
3870
  function vc(t) {
3871
3871
  return new Worker(
3872
- "" + new URL("assets/audio-playback-worker-Cwm3GaAx.js", import.meta.url).href,
3872
+ "" + new URL("assets/audio-playback-worker-YOW1Tosq.js", import.meta.url).href,
3873
3873
  {
3874
3874
  type: "module",
3875
3875
  name: t?.name
@@ -5027,14 +5027,14 @@ class je {
5027
5027
  }
5028
5028
  if (!h)
5029
5029
  continue;
5030
- const p = h.samplePosition + Math.max(h.frameSamples, 1);
5031
- if (a > p && !E)
5030
+ const m = h.samplePosition + Math.max(h.frameSamples, 1);
5031
+ if (a > m && !E)
5032
5032
  continue;
5033
5033
  if (!E)
5034
5034
  return this._visemeResult.mouthOpenY = h.mouthOpenY, this._visemeResult.mouthForm = h.mouthForm, this._visemeResult;
5035
- const I = h.samplePosition, T = Math.max(h.frameSamples, 1), _ = I + T;
5036
- if (h !== E && E.samplePosition > h.samplePosition && _ > I) {
5037
- const l = Math.min(1, Math.max(0, (a - I) / (_ - I)));
5035
+ const I = h.samplePosition, T = Math.max(h.frameSamples, 1), p = I + T;
5036
+ if (h !== E && E.samplePosition > h.samplePosition && p > I) {
5037
+ const l = Math.min(1, Math.max(0, (a - I) / (p - I)));
5038
5038
  this._visemeResult.mouthOpenY = h.mouthOpenY + l * (E.mouthOpenY - h.mouthOpenY), this._visemeResult.mouthForm = h.mouthForm + l * (E.mouthForm - h.mouthForm);
5039
5039
  } else
5040
5040
  this._visemeResult.mouthOpenY = h.mouthOpenY, this._visemeResult.mouthForm = h.mouthForm;
@@ -5291,20 +5291,20 @@ class je {
5291
5291
  this.stopAudioWorklet(), this.pendingWorkletMessages = [];
5292
5292
  const n = 1024, s = new Float32Array(n * b), i = Math.round(this.outputSampleRateHz * Ur / 1e3), o = Math.round(this.outputSampleRateHz * ke / 1e3), a = 1 / i, c = 1 / o, u = new Array(b), f = [], d = e.createScriptProcessor(n, 0, b);
5293
5293
  d.onaudioprocess = (h) => {
5294
- const E = h.outputBuffer, p = E.numberOfChannels, I = E.length;
5295
- for (let _ = 0; _ < p; _++) {
5296
- const l = E.getChannelData(_);
5297
- l.fill(0), u[_] = l;
5294
+ const E = h.outputBuffer, m = E.numberOfChannels, I = E.length;
5295
+ for (let p = 0; p < m; p++) {
5296
+ const l = E.getChannelData(p);
5297
+ l.fill(0), u[p] = l;
5298
5298
  }
5299
5299
  let T = 0;
5300
5300
  f.length = 0;
5301
- for (const [_, l] of this.fallbackQueues.entries()) {
5302
- l.totalSamples > 0 && (T += 1), (l.ending || l.inputDrained) && l.fadeDirection !== "out" && l.totalSamples / p * 1e3 / this.outputSampleRateHz <= ke * 2 && (l.fadeDirection = "out"), this.readFromFallbackQueue(l, s), (l.totalSamples > 0 || !l.hasLastOut) && ((!l.lastOut || l.lastOut.length !== s.length) && (l.lastOut = new Float32Array(s.length)), l.lastOut.set(s), l.hasLastOut = !0);
5301
+ for (const [p, l] of this.fallbackQueues.entries()) {
5302
+ l.totalSamples > 0 && (T += 1), (l.ending || l.inputDrained) && l.fadeDirection !== "out" && l.totalSamples / m * 1e3 / this.outputSampleRateHz <= ke * 2 && (l.fadeDirection = "out"), this.readFromFallbackQueue(l, s), (l.totalSamples > 0 || !l.hasLastOut) && ((!l.lastOut || l.lastOut.length !== s.length) && (l.lastOut = new Float32Array(s.length)), l.lastOut.set(s), l.hasLastOut = !0);
5303
5303
  for (let w = 0; w < I; w++) {
5304
5304
  l.fadeDirection === "in" ? (l.fadeGain = Math.min(1, l.fadeGain + a), l.fadeGain >= 1 && (l.fadeDirection = "none")) : l.fadeDirection === "out" && (l.fadeGain = Math.max(0, l.fadeGain - c), l.fadeGain <= 0 && (l.fadeDirection = "none"));
5305
- for (let v = 0; v < p; v++) {
5306
- const M = s[w * p + v];
5307
- u[v][w] += M * l.fadeGain;
5305
+ for (let v = 0; v < m; v++) {
5306
+ const O = s[w * m + v];
5307
+ u[v][w] += O * l.fadeGain;
5308
5308
  }
5309
5309
  }
5310
5310
  const N = l.ending || l.inputDrained;
@@ -5316,34 +5316,34 @@ class je {
5316
5316
  break;
5317
5317
  }
5318
5318
  }
5319
- l.fadeGain <= 1e-3 && l.ending && f.push(_);
5319
+ l.fadeGain <= 1e-3 && l.ending && f.push(p);
5320
5320
  } else if (!N && l.totalSamples <= 0 && l.hasLastOut && l.lastOut && l.fadeGain > 1e-3) {
5321
5321
  l.fadeDirection = "out", l.underrunPending = !0;
5322
5322
  const w = l.lastOut, v = I - 1;
5323
- for (let M = 0; M < I; M++) {
5323
+ for (let O = 0; O < I; O++) {
5324
5324
  l.fadeGain = Math.max(0, l.fadeGain - c), l.fadeGain <= 0 && (l.fadeDirection = "none");
5325
- for (let $ = 0; $ < p; $++) {
5326
- const Gr = w[v * p + $];
5327
- u[$][M] += Gr * l.fadeGain;
5325
+ for (let $ = 0; $ < m; $++) {
5326
+ const Gr = w[v * m + $];
5327
+ u[$][O] += Gr * l.fadeGain;
5328
5328
  }
5329
5329
  }
5330
5330
  }
5331
5331
  }
5332
5332
  if (f.length > 0) {
5333
- for (const _ of f)
5334
- this.fallbackQueues.delete(_), this.activeStreams.delete(_);
5333
+ for (const p of f)
5334
+ this.fallbackQueues.delete(p), this.activeStreams.delete(p);
5335
5335
  this.activeStreams.size === 0 && this.removeUnlockHandler();
5336
5336
  }
5337
5337
  if (T > 1) {
5338
- const _ = 1 / Math.sqrt(T);
5338
+ const p = 1 / Math.sqrt(T);
5339
5339
  for (let l = 0; l < I; l++)
5340
- for (let N = 0; N < p; N++)
5341
- u[N][l] *= _;
5340
+ for (let N = 0; N < m; N++)
5341
+ u[N][l] *= p;
5342
5342
  }
5343
- for (let _ = 0; _ < I; _++)
5344
- for (let l = 0; l < p; l++) {
5345
- const N = u[l][_];
5346
- u[l][_] = N > 1 ? 1 : N < -1 ? -1 : N;
5343
+ for (let p = 0; p < I; p++)
5344
+ for (let l = 0; l < m; l++) {
5345
+ const N = u[l][p];
5346
+ u[l][p] = N > 1 ? 1 : N < -1 ? -1 : N;
5347
5347
  }
5348
5348
  }, d.connect(e.destination), this.scriptProcessorNode = d, this.ensureScriptProcessorDiagnostics(r);
5349
5349
  }
@@ -5695,7 +5695,7 @@ class je {
5695
5695
  }
5696
5696
  function Jc(t) {
5697
5697
  return new Worker(
5698
- "" + new URL("assets/video-playback-worker-Bfm3r5xW.js", import.meta.url).href,
5698
+ "" + new URL("assets/video-playback-worker-CRGdbDmu.js", import.meta.url).href,
5699
5699
  {
5700
5700
  type: "module",
5701
5701
  name: t?.name
@@ -6219,18 +6219,18 @@ class sl {
6219
6219
  this.ensureSendPort();
6220
6220
  const n = await this.ensureAudioContext(), s = await this.acquireMicrophoneStream(e), i = s.getAudioTracks()[0];
6221
6221
  if (!i)
6222
- throw s.getTracks().forEach((_) => _.stop()), new Error("No audio track available");
6222
+ throw s.getTracks().forEach((p) => p.stop()), new Error("No audio track available");
6223
6223
  await this.ensureWorklet(n);
6224
6224
  const o = rl(), a = this.allocateTrackId(), c = n.createMediaStreamSource(s), u = n.createGain();
6225
6225
  u.gain.value = 0, u.connect(n.destination);
6226
6226
  const h = le() ? "sab" : "pcm";
6227
6227
  let E;
6228
6228
  if (h === "sab") {
6229
- const _ = Math.floor(n.sampleRate * 2);
6230
- E = qc.getStorageForCapacity(_, Float32Array);
6229
+ const p = Math.floor(n.sampleRate * 2);
6230
+ E = qc.getStorageForCapacity(p, Float32Array);
6231
6231
  }
6232
- const p = this.ensureWorker();
6233
- p.postMessage({
6232
+ const m = this.ensureWorker();
6233
+ m.postMessage({
6234
6234
  type: "start",
6235
6235
  captureId: o,
6236
6236
  senderId: r,
@@ -6243,20 +6243,20 @@ class sl {
6243
6243
  },
6244
6244
  transport: h,
6245
6245
  sharedArrayBuffer: E
6246
- }), await new Promise((_, l) => {
6246
+ }), await new Promise((p, l) => {
6247
6247
  const N = setTimeout(() => {
6248
- p.removeEventListener("message", w), l(new Error("Audio capture worker start timeout"));
6248
+ m.removeEventListener("message", w), l(new Error("Audio capture worker start timeout"));
6249
6249
  }, 1e4), w = (v) => {
6250
- const M = v.data;
6251
- if (M?.type === "started" && M.captureId === o)
6252
- clearTimeout(N), p.removeEventListener("message", w), _();
6253
- else if (M?.type === "error" && M.captureId === o) {
6254
- clearTimeout(N), p.removeEventListener("message", w);
6255
- const $ = M.error;
6250
+ const O = v.data;
6251
+ if (O?.type === "started" && O.captureId === o)
6252
+ clearTimeout(N), m.removeEventListener("message", w), p();
6253
+ else if (O?.type === "error" && O.captureId === o) {
6254
+ clearTimeout(N), m.removeEventListener("message", w);
6255
+ const $ = O.error;
6256
6256
  l(new Error($?.message ?? "Audio capture failed to start"));
6257
6257
  }
6258
6258
  };
6259
- p.addEventListener("message", w);
6259
+ m.addEventListener("message", w);
6260
6260
  });
6261
6261
  const I = new AudioWorkletNode(n, "ikon-audio-capture", {
6262
6262
  numberOfInputs: 1,
@@ -6268,11 +6268,11 @@ class sl {
6268
6268
  sharedArrayBuffer: E
6269
6269
  }
6270
6270
  });
6271
- c.connect(I), I.connect(u), h === "pcm" && (I.port.onmessage = (_) => {
6272
- const l = _.data;
6271
+ c.connect(I), I.connect(u), h === "pcm" && (I.port.onmessage = (p) => {
6272
+ const l = p.data;
6273
6273
  if (!(!l || typeof l != "object") && l.type === "pcm" && l.pcm instanceof Float32Array) {
6274
6274
  const N = l.pcm;
6275
- p.postMessage({ type: "pcm", captureId: o, pcm: N }, [N.buffer]);
6275
+ m.postMessage({ type: "pcm", captureId: o, pcm: N }, [N.buffer]);
6276
6276
  }
6277
6277
  });
6278
6278
  const T = {
@@ -6286,10 +6286,10 @@ class sl {
6286
6286
  gain: u,
6287
6287
  stopped: !1,
6288
6288
  startSegment: () => {
6289
- T.stopped || p.postMessage({ type: "startSegment", captureId: o });
6289
+ T.stopped || m.postMessage({ type: "startSegment", captureId: o });
6290
6290
  },
6291
6291
  endSegment: () => {
6292
- T.stopped || (p.postMessage({ type: "endSegment", captureId: o }), Rr() && T.stop());
6292
+ T.stopped || (m.postMessage({ type: "endSegment", captureId: o }), Rr() && T.stop());
6293
6293
  },
6294
6294
  stop: async () => {
6295
6295
  if (!T.stopped) {
@@ -6307,10 +6307,10 @@ class sl {
6307
6307
  } catch {
6308
6308
  }
6309
6309
  try {
6310
- s.getTracks().forEach((_) => _.stop());
6310
+ s.getTracks().forEach((p) => p.stop());
6311
6311
  } catch {
6312
6312
  }
6313
- p.postMessage({ type: "stop", captureId: o });
6313
+ m.postMessage({ type: "stop", captureId: o });
6314
6314
  }
6315
6315
  }
6316
6316
  };
@@ -6368,7 +6368,7 @@ class sl {
6368
6368
  }
6369
6369
  }
6370
6370
  }
6371
- const Mr = 1280, Or = 720, il = 30, Lr = "image/jpeg", ol = 0.92;
6371
+ const Or = 1280, Mr = 720, il = 30, Lr = "image/jpeg", ol = 0.92;
6372
6372
  async function al(t, e) {
6373
6373
  const r = e.mime ?? Lr, n = e.quality ?? ol;
6374
6374
  if (typeof OffscreenCanvas < "u" && t instanceof OffscreenCanvas)
@@ -6404,15 +6404,15 @@ class cl {
6404
6404
  } catch {
6405
6405
  }
6406
6406
  try {
6407
- await new Promise((E, p) => {
6408
- const I = () => E(), T = () => p(new Error("Failed to load video element"));
6407
+ await new Promise((E, m) => {
6408
+ const I = () => E(), T = () => m(new Error("Failed to load video element"));
6409
6409
  s.addEventListener("loadedmetadata", I, { once: !0 }), s.addEventListener("error", T, { once: !0 });
6410
6410
  });
6411
6411
  try {
6412
6412
  await s.play();
6413
6413
  } catch {
6414
6414
  }
6415
- const i = s.videoWidth || (n.getSettings().width ?? Mr), o = s.videoHeight || (n.getSettings().height ?? Or), a = e.width ? Math.max(1, Math.floor(e.width)) : i, c = e.height ? Math.max(1, Math.floor(e.height)) : o;
6415
+ const i = s.videoWidth || (n.getSettings().width ?? Or), o = s.videoHeight || (n.getSettings().height ?? Mr), a = e.width ? Math.max(1, Math.floor(e.width)) : i, c = e.height ? Math.max(1, Math.floor(e.height)) : o;
6416
6416
  let u;
6417
6417
  if (typeof OffscreenCanvas < "u")
6418
6418
  u = new OffscreenCanvas(a, c);
@@ -6453,7 +6453,7 @@ class cl {
6453
6453
  }
6454
6454
  function ll(t) {
6455
6455
  return new Worker(
6456
- "" + new URL("assets/video-capture-worker-BBs_62Fq.js", import.meta.url).href,
6456
+ "" + new URL("assets/video-capture-worker-y4Nlx7f9.js", import.meta.url).href,
6457
6457
  {
6458
6458
  type: "module",
6459
6459
  name: t?.name
@@ -6528,7 +6528,7 @@ class dl {
6528
6528
  const n = ul(), s = await this.getMediaStream(e), i = s.getVideoTracks()[0];
6529
6529
  if (!i)
6530
6530
  throw s.getTracks().forEach((I) => I.stop()), new Error("No video track available");
6531
- const o = i.getSettings(), a = e.options?.width ?? o.width ?? Mr, c = e.options?.height ?? o.height ?? Or, u = hl(), d = new u({ track: i }).readable, h = this.allocateTrackId(), E = this.ensureWorker();
6531
+ const o = i.getSettings(), a = e.options?.width ?? o.width ?? Or, c = e.options?.height ?? o.height ?? Mr, u = hl(), d = new u({ track: i }).readable, h = this.allocateTrackId(), E = this.ensureWorker();
6532
6532
  E.postMessage(
6533
6533
  {
6534
6534
  type: "start",
@@ -6548,15 +6548,15 @@ class dl {
6548
6548
  },
6549
6549
  [d]
6550
6550
  );
6551
- const p = {
6551
+ const m = {
6552
6552
  captureId: n,
6553
6553
  trackId: h,
6554
6554
  stream: s,
6555
6555
  track: i,
6556
6556
  stopped: !1,
6557
6557
  stop: async () => {
6558
- if (!p.stopped) {
6559
- p.stopped = !0, this.captures.delete(n);
6558
+ if (!m.stopped) {
6559
+ m.stopped = !0, this.captures.delete(n);
6560
6560
  try {
6561
6561
  s.getTracks().forEach((I) => I.stop());
6562
6562
  } catch {
@@ -6566,8 +6566,8 @@ class dl {
6566
6566
  }
6567
6567
  };
6568
6568
  return i.addEventListener("ended", () => {
6569
- p.stop();
6570
- }), this.captures.set(n, p), { captureId: n, stop: p.stop };
6569
+ m.stop();
6570
+ }), this.captures.set(n, m), { captureId: n, stop: m.stop };
6571
6571
  }
6572
6572
  async startCamera(e) {
6573
6573
  return this.start({ source: "camera", ...e });
@@ -6675,7 +6675,7 @@ class El {
6675
6675
  }
6676
6676
  }
6677
6677
  const A = L("IkonClient");
6678
- class Ml {
6678
+ class Ol {
6679
6679
  channelManager = null;
6680
6680
  protocolWorker = null;
6681
6681
  workerManagerState = null;
@@ -6750,7 +6750,7 @@ class Ml {
6750
6750
  preferWebCodecs: e.audio?.performance?.preferWebCodecs
6751
6751
  }
6752
6752
  }
6753
- }), this.unregisterMediaCaptureFunctions = Oc(this._functionRegistry, this));
6753
+ }), this.unregisterMediaCaptureFunctions = Mc(this._functionRegistry, this));
6754
6754
  }
6755
6755
  _lastError = void 0;
6756
6756
  /**
@@ -6817,7 +6817,7 @@ class Ml {
6817
6817
  sendActionCall(e, r) {
6818
6818
  const n = Zr(
6819
6819
  {
6820
- ActionId: m.fromString(e),
6820
+ ActionId: _.fromString(e),
6821
6821
  PayloadJson: r ?? "{}"
6822
6822
  },
6823
6823
  this._sessionId ?? 0
@@ -7009,7 +7009,7 @@ class Ml {
7009
7009
  }
7010
7010
  if (r === S.CORE_GLOBAL_STATE)
7011
7011
  try {
7012
- this._globalState = Bo(e), this._globalStateReceived || (this._globalStateReceived = !0, this.tryHandleJoined());
7012
+ this._globalState = Bo(e), this._globalState.DebugMode && this.protocolWorker && this.protocolWorker.postMessage({ type: "enableDevtools", enabled: !0 }), this._globalStateReceived || (this._globalStateReceived = !0, this.tryHandleJoined());
7013
7013
  } catch (s) {
7014
7014
  A.error("Failed to parse GlobalState:", s);
7015
7015
  }
@@ -7098,39 +7098,41 @@ class Ml {
7098
7098
  let r;
7099
7099
  try {
7100
7100
  r = new Ca();
7101
- } catch (f) {
7102
- A.warn(`Failed to create protocol worker, falling back to main thread: ${f}`), await this.connectProtocolOnMainThread(e);
7101
+ } catch (h) {
7102
+ A.warn(`Failed to create protocol worker, falling back to main thread: ${h}`), await this.connectProtocolOnMainThread(e);
7103
7103
  return;
7104
7104
  }
7105
7105
  this.channelManager = null, this.protocolWorker = r, this.workerManagerState = "idle";
7106
- const n = new Promise((f, d) => {
7107
- const h = (E) => {
7108
- const p = E.data;
7109
- if (p?.type === "protocol" && p.message instanceof ArrayBuffer) {
7110
- const I = new Uint8Array(p.message);
7111
- this.handleProtocolMessage(I);
7106
+ const n = new Promise((h, E) => {
7107
+ const m = (I) => {
7108
+ const T = I.data;
7109
+ if (T?.type === "protocol" && T.message instanceof ArrayBuffer) {
7110
+ const p = new Uint8Array(T.message);
7111
+ this.handleProtocolMessage(p);
7112
7112
  return;
7113
7113
  }
7114
- if (p?.type === "state") {
7115
- const I = p.state;
7116
- this.workerManagerState = I;
7117
- const T = p.activeType;
7118
- T !== void 0 && this.endpointSelector.rememberWorkingType(T), this.handleChannelManagerStateChange(I), I === "connected" && f();
7114
+ if (T?.type === "state") {
7115
+ const p = T.state;
7116
+ this.workerManagerState = p;
7117
+ const l = T.activeType;
7118
+ l !== void 0 && this.endpointSelector.rememberWorkingType(l), this.handleChannelManagerStateChange(p), p === "connected" && h();
7119
7119
  return;
7120
7120
  }
7121
- if (p?.type === "error") {
7122
- const I = p.error, T = new Error(String(I?.message ?? "Worker error"));
7123
- T.name = String(I?.name ?? "Error"), d(T);
7121
+ if (T?.type === "error") {
7122
+ const p = T.error, l = new Error(String(p?.message ?? "Worker error"));
7123
+ l.name = String(p?.name ?? "Error"), E(l);
7124
7124
  }
7125
7125
  };
7126
- r.addEventListener("message", h), r.addEventListener("error", (E) => {
7127
- const p = [E.message, E.filename, E.lineno, E.colno].filter((I) => I != null && String(I).length > 0);
7128
- d(new Error(`Protocol worker failed: ${p.join(" ")}`.trim()));
7126
+ r.addEventListener("message", m), r.addEventListener("error", (I) => {
7127
+ const T = [I.message, I.filename, I.lineno, I.colno].filter((p) => p != null && String(p).length > 0);
7128
+ E(new Error(`Protocol worker failed: ${T.join(" ")}`.trim()));
7129
7129
  });
7130
7130
  }), s = this.computeOrderedEndpointTypes(e), i = this.config.timeouts?.keepaliveTimeoutMs ?? Ze, o = this.config.timeouts?.reconnectBackoffMs ?? qe, a = this.config.timeouts?.maxReconnectAttempts ?? et;
7131
7131
  this.updateWorkerInterestMask();
7132
- const c = typeof window < "u" ? new URLSearchParams(window.location.search) : null;
7133
- (this.config.debug?.devtools || c?.get("devtools") === "true") && r.postMessage({ type: "enableDevtools", enabled: !0 }), r.postMessage({
7132
+ const c = typeof window < "u" ? new URLSearchParams(window.location.search) : null, u = c?.get("devtools") === "true" || c?.get("debug") === "true";
7133
+ u && typeof sessionStorage < "u" && sessionStorage.setItem("ikon:devtools", "true");
7134
+ const f = typeof sessionStorage < "u" && sessionStorage.getItem("ikon:devtools") === "true";
7135
+ (this.config.debug?.devtools || u || f) && r.postMessage({ type: "enableDevtools", enabled: !0 }), r.postMessage({
7134
7136
  type: "connect",
7135
7137
  sessionId: this._sessionId,
7136
7138
  entrypoints: e,
@@ -7141,8 +7143,8 @@ class Ml {
7141
7143
  });
7142
7144
  try {
7143
7145
  await n;
7144
- } catch (f) {
7145
- A.warn(`Protocol worker connect failed, falling back to main thread: ${f}`), this.disconnectProtocol(), await this.connectProtocolOnMainThread(e);
7146
+ } catch (h) {
7147
+ A.warn(`Protocol worker connect failed, falling back to main thread: ${h}`), this.disconnectProtocol(), await this.connectProtocolOnMainThread(e);
7146
7148
  }
7147
7149
  }
7148
7150
  async connectProtocolOnMainThread(e) {
@@ -7277,7 +7279,7 @@ class Ml {
7277
7279
  }
7278
7280
  }
7279
7281
  }
7280
- function Ol(t) {
7282
+ function Ml(t) {
7281
7283
  return t === "connecting" || t === "connectingSlow" || t === "reconnecting";
7282
7284
  }
7283
7285
  function Ll(t) {
@@ -7296,34 +7298,34 @@ function Fl(t) {
7296
7298
  return vr.get(t) ?? `UNKNOWN_${t}`;
7297
7299
  }
7298
7300
  const Pr = 1e3, Fr = Ir.INFO;
7299
- let O = [], Ue = Pr, Br = Fr, De = null;
7301
+ let M = [], Ue = Pr, Br = Fr, De = null;
7300
7302
  function pl(t) {
7301
- t.level < Br || (O.push(t), O.length > Ue && (O = O.slice(-Ue)));
7303
+ t.level < Br || (M.push(t), M.length > Ue && (M = M.slice(-Ue)));
7302
7304
  }
7303
7305
  function Il(t) {
7304
- Ue = t?.maxBufferSize ?? Pr, Br = t?.minLevel ?? Fr, O = [], ka(pl);
7306
+ Ue = t?.maxBufferSize ?? Pr, Br = t?.minLevel ?? Fr, M = [], ka(pl);
7305
7307
  }
7306
7308
  function Bl(t) {
7307
7309
  De = t;
7308
7310
  }
7309
7311
  function Gl() {
7310
- return O;
7312
+ return M;
7311
7313
  }
7312
7314
  function ml() {
7313
- const t = O;
7314
- return O = [], t;
7315
+ const t = M;
7316
+ return M = [], t;
7315
7317
  }
7316
7318
  function xl() {
7317
- if (!De || O.length === 0)
7319
+ if (!De || M.length === 0)
7318
7320
  return 0;
7319
7321
  const t = ml();
7320
7322
  return De(t), t.length;
7321
7323
  }
7322
7324
  function Vl() {
7323
- O = [];
7325
+ M = [];
7324
7326
  }
7325
7327
  function Wl() {
7326
- return O.length;
7328
+ return M.length;
7327
7329
  }
7328
7330
  Il();
7329
7331
  export {
@@ -7344,7 +7346,7 @@ export {
7344
7346
  Re as IKON_BACKEND_URL_PROD,
7345
7347
  sl as IkonAudioCapture,
7346
7348
  je as IkonAudioPlayback,
7347
- Ml as IkonClient,
7349
+ Ol as IkonClient,
7348
7350
  cl as IkonImageCapture,
7349
7351
  Zc as IkonMedia,
7350
7352
  fl as IkonMediaCapture,
@@ -7379,7 +7381,7 @@ export {
7379
7381
  nt as isBrowserEnvironment,
7380
7382
  Ke as isCloudEnvironment,
7381
7383
  Ll as isConnected,
7382
- Ol as isConnecting,
7384
+ Ml as isConnecting,
7383
7385
  Pl as isError,
7384
7386
  vl as isOffline,
7385
7387
  le as isSharedArrayBufferSupported,