@realsee/live 0.6.7 → 0.6.8-dev.2

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/dist/index.es.js CHANGED
@@ -3,13 +3,13 @@ var $t = (r, s, e) => s in r ? Vt(r, s, { enumerable: !0, configurable: !0, writ
3
3
  var o = (r, s, e) => ($t(r, typeof s != "symbol" ? s + "" : s, e), e);
4
4
  import xt from "@realsee/jsbridge-x";
5
5
  import Ne from "trtc-js-sdk";
6
- import { ConsoleLogger as Ut, LogLevel as Ft, DefaultDeviceController as Bt, MeetingSessionConfiguration as Wt, DefaultMeetingSession as Kt, DefaultModality as tt, MeetingSessionStatusCode as qt } from "amazon-chime-sdk-js";
6
+ import { ConsoleLogger as Ut, LogLevel as Ft, DefaultDeviceController as Wt, MeetingSessionConfiguration as Bt, DefaultMeetingSession as Kt, DefaultModality as tt, MeetingSessionStatusCode as qt } from "amazon-chime-sdk-js";
7
7
  import D, { createContext as Gt } from "react";
8
8
  const ce = Symbol("$$REALSEE_LIVE_EVENT$$");
9
9
  function pe(r) {
10
10
  return r[ce] || (r[ce] = {}), r[ce];
11
11
  }
12
- function Yt(r) {
12
+ function Ht(r) {
13
13
  r[ce] || delete r[ce];
14
14
  }
15
15
  class ue {
@@ -56,7 +56,7 @@ class ue {
56
56
  */
57
57
  off(s, e) {
58
58
  if (s === void 0) {
59
- Yt(this);
59
+ Ht(this);
60
60
  return;
61
61
  }
62
62
  const i = pe(this);
@@ -80,8 +80,8 @@ class ue {
80
80
  let i = !1;
81
81
  const c = pe(this)[s] || [];
82
82
  for (let u of c.slice()) {
83
- const [d, g = !1] = u, v = d(...e);
84
- g && this.off(s, d), v === !1 && (i = !0);
83
+ const [d, m = !1] = u, p = d(...e);
84
+ m && this.off(s, d), p === !1 && (i = !0);
85
85
  }
86
86
  return i;
87
87
  }
@@ -89,11 +89,11 @@ class ue {
89
89
  class Me extends ue {
90
90
  }
91
91
  var Q = /* @__PURE__ */ ((r) => (r.RealseeBrowserRTC = "RealseeBrowserRTC", r.RealseeVRWebViewRTC = "RealseeVRWebViewRTC", r.RealseeBrowserChimeRTC = "RealseeBrowserChimeRTC", r))(Q || {}), ut = /* @__PURE__ */ ((r) => (r.RealseeXTRTC = "trtc", r.RealseeXChimeRTC = "chime", r))(ut || {});
92
- const Ht = () => {
92
+ const Yt = () => {
93
93
  const r = new Date(), s = r.getFullYear(), e = (r.getMonth() + 1).toString().padStart(2, "0"), i = r.getDate().toString().padStart(2, "0"), n = r.getHours().toString().padStart(2, "0"), c = r.getMinutes().toString().padStart(2, "0"), u = r.getSeconds().toString().padStart(2, "0"), d = r.getMilliseconds();
94
94
  return `[${s}-${e}-${i} ${n}:${c}:${u}.${d}]`;
95
95
  }, be = (r, s = []) => {
96
- switch (s.unshift(`Realsee Live ${Ht()} <${r}> `), r) {
96
+ switch (s.unshift(`Realsee Live ${Yt()} <${r}> `), r) {
97
97
  case "INFO":
98
98
  return console.info(...s);
99
99
  case "ERROR":
@@ -108,7 +108,7 @@ const Ht = () => {
108
108
  info: zt,
109
109
  error: Xt,
110
110
  warn: Zt
111
- }, O = Qt;
111
+ }, _ = Qt;
112
112
  function X() {
113
113
  return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
114
114
  }
@@ -173,8 +173,8 @@ class rt extends Me {
173
173
  u.id = c, this.$dom.appendChild(u), typeof this._autoPlayConfirm == "function" ? (i.play(c).catch((d) => {
174
174
  }), i.on("error", (d) => {
175
175
  if (d.getCode() === 16451) {
176
- const v = () => i.resume();
177
- this._autoPlayConfirm({ onConfirm: v });
176
+ const p = () => i.resume();
177
+ this._autoPlayConfirm({ onConfirm: p });
178
178
  }
179
179
  })) : i.play(c);
180
180
  });
@@ -194,7 +194,7 @@ class rt extends Me {
194
194
  const i = { audio: !0, video: !1 };
195
195
  try {
196
196
  navigator.mediaDevices.getUserMedia(i).then(() => e(!0)).catch((n) => {
197
- O.error(n.message), e(!1);
197
+ _.error(n.message), e(!1);
198
198
  });
199
199
  } catch (n) {
200
200
  console.error(n), e(!1);
@@ -216,9 +216,9 @@ class rt extends Me {
216
216
  "audio-volume",
217
217
  (u) => this.emit(
218
218
  "userVolumes",
219
- u.result.map(({ userId: d, audioVolume: g }) => ({
219
+ u.result.map(({ userId: d, audioVolume: m }) => ({
220
220
  userId: d,
221
- audioVolume: g
221
+ audioVolume: m
222
222
  }))
223
223
  )
224
224
  ), (c = this._trtc.client) == null || c.on("error", (u) => this.emit("error", u));
@@ -288,7 +288,7 @@ class it extends Me {
288
288
  if (this.$audio.paused) {
289
289
  const i = () => this.$audio.play().then(() => {
290
290
  }).catch((n) => {
291
- if (O.error("播放远端流失败!", n), typeof this._autoPlayConfirm == "function") {
291
+ if (_.error("播放远端流失败!", n), typeof this._autoPlayConfirm == "function") {
292
292
  const c = () => i();
293
293
  this._autoPlayConfirm({ onConfirm: c });
294
294
  }
@@ -304,46 +304,46 @@ class it extends Me {
304
304
  * 注册rtc事件
305
305
  */
306
306
  o(this, "_registerRtcEvent", () => {
307
- var i, n, c, u, d, g;
307
+ var i, n, c, u, d, m;
308
308
  const e = ((c = (n = (i = this.meetingSession) == null ? void 0 : i.configuration) == null ? void 0 : n.credentials) == null ? void 0 : c.attendeeId) || "";
309
309
  if (e) {
310
- const v = /* @__PURE__ */ new Map(), E = () => {
311
- const y = [];
312
- return v.forEach((I, _) => {
313
- y.push({
310
+ const p = /* @__PURE__ */ new Map(), y = () => {
311
+ const b = [];
312
+ return p.forEach((I, g) => {
313
+ b.push({
314
314
  userId: I.userId,
315
315
  volume: I.muted || I.signalStrength === 0 || !Boolean(I.volume) ? 0 : I.volume
316
316
  });
317
- }), y;
317
+ }), b;
318
318
  };
319
319
  (u = this.meetingSession) == null || u.audioVideo.realtimeSubscribeToAttendeeIdPresence(
320
- (y, I, _) => {
320
+ (b, I, g) => {
321
321
  var V;
322
322
  if (!I) {
323
- v.delete(y), this.emit("userVolumes", E());
323
+ p.delete(b), this.emit("userVolumes", y());
324
324
  return;
325
325
  }
326
326
  (V = this.meetingSession) == null || V.audioVideo.realtimeSubscribeToVolumeIndicator(
327
- y,
328
- (C, k, U, P) => {
329
- new tt(C).base() === C && (v.set(C, {
330
- userId: _ || C,
327
+ b,
328
+ (w, k, U, P) => {
329
+ new tt(w).base() === w && (p.set(w, {
330
+ userId: g || w,
331
331
  volume: k,
332
332
  muted: U,
333
333
  signalStrength: P
334
- }), this.emit("userVolumes", E()));
334
+ }), this.emit("userVolumes", y()));
335
335
  }
336
336
  );
337
337
  }
338
338
  ), (d = this.meetingSession) == null || d.audioVideo.realtimeSubscribeToVolumeIndicator(
339
339
  e,
340
- (y, I, _, V) => {
341
- new tt(y).base() === y && V !== null && V !== 1 && this.emit("weakNetwork");
340
+ (b, I, g, V) => {
341
+ new tt(b).base() === b && V !== null && V !== 1 && this.emit("weakNetwork");
342
342
  }
343
- ), (g = this.meetingSession) == null || g.audioVideo.realtimeSubscribeToFatalError((y) => this.emit("error", y));
343
+ ), (m = this.meetingSession) == null || m.audioVideo.realtimeSubscribeToFatalError((b) => this.emit("error", b));
344
344
  }
345
345
  });
346
- this._getVoiceSign = e.getVoiceSign, this._autoPlayConfirm = e.autoPlayConfirm, this._initDom(), this.logger = new Ut("WebRTCLogger", e.logLevel || Ft.INFO), this.deviceController = new Bt(this.logger), this.initObservers();
346
+ this._getVoiceSign = e.getVoiceSign, this._autoPlayConfirm = e.autoPlayConfirm, this._initDom(), this.logger = new Ut("WebRTCLogger", e.logLevel || Ft.INFO), this.deviceController = new Wt(this.logger), this.initObservers();
347
347
  }
348
348
  /**
349
349
  * 加入语音会议
@@ -355,30 +355,30 @@ class it extends Me {
355
355
  var c, u;
356
356
  this.emit("joinWillStart");
357
357
  try {
358
- const { sdkAppId: d, userId: g, roomId: v, userSig: E } = await this._getVoiceSign({
358
+ const { sdkAppId: d, userId: m, roomId: p, userSig: y } = await this._getVoiceSign({
359
359
  ...e,
360
360
  roomId: e.roomId || 0
361
361
  });
362
- this.userId = g;
363
- const { attendence: y, vendor_wrapper: I } = JSON.parse(
364
- decodeURIComponent(E)
365
- ), _ = new Wt(
362
+ this.userId = m;
363
+ const { attendence: b, vendor_wrapper: I } = JSON.parse(
364
+ decodeURIComponent(y)
365
+ ), g = new Bt(
366
366
  {
367
367
  Meeting: I
368
368
  },
369
369
  {
370
370
  Attendee: {
371
- ExternalUserId: y.external_user_id,
372
- AttendeeId: y.attendee_id,
373
- JoinToken: y.join_token
371
+ ExternalUserId: b.external_user_id,
372
+ AttendeeId: b.attendee_id,
373
+ JoinToken: b.join_token
374
374
  }
375
375
  }
376
376
  );
377
- this.meetingSession = new Kt(_, this.logger, this.deviceController), this._registerRtcEvent(), this.meetingSession.audioVideo.addDeviceChangeObserver(this.deviceChangeObserver), this.meetingSession.audioVideo.addObserver(this.audioVideoObserver), this.meetingSession.audioVideo.bindAudioElement(this.$audio);
377
+ this.meetingSession = new Kt(g, this.logger, this.deviceController), this._registerRtcEvent(), this.meetingSession.audioVideo.addDeviceChangeObserver(this.deviceChangeObserver), this.meetingSession.audioVideo.addObserver(this.audioVideoObserver), this.meetingSession.audioVideo.bindAudioElement(this.$audio);
378
378
  const V = {
379
379
  audioVideoDidStart: () => {
380
- var C;
381
- (C = this.meetingSession) == null || C.audioVideo.realtimeMuteLocalAudio(), this.joined = !0, this.emit("joined"), i(!0);
380
+ var w;
381
+ (w = this.meetingSession) == null || w.audioVideo.realtimeMuteLocalAudio(), this.joined = !0, this.emit("joined"), i(!0);
382
382
  },
383
383
  audioVideoDidStop: () => {
384
384
  this.joined = !1, i(!1);
@@ -388,20 +388,20 @@ class it extends Me {
388
388
  async () => await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 })
389
389
  );
390
390
  try {
391
- const C = await this.meetingSession.audioVideo.listAudioInputDevices();
392
- O.info("audioInputDevices ===>", C);
393
- const k = ((c = C[0]) == null ? void 0 : c.deviceId) || "default";
391
+ const w = await this.meetingSession.audioVideo.listAudioInputDevices();
392
+ _.info("audioInputDevices ===>", w);
393
+ const k = ((c = w[0]) == null ? void 0 : c.deviceId) || "default";
394
394
  await this.meetingSession.audioVideo.startAudioInput(k);
395
- } catch (C) {
396
- O.error(`设置语音输入设备失败:${C.message}`);
395
+ } catch (w) {
396
+ _.error(`设置语音输入设备失败:${w.message}`);
397
397
  }
398
398
  try {
399
- const C = await this.meetingSession.audioVideo.listAudioOutputDevices();
400
- O.info("audioOutputDevices ===>", C);
401
- const k = ((u = C[0]) == null ? void 0 : u.deviceId) || "default";
399
+ const w = await this.meetingSession.audioVideo.listAudioOutputDevices();
400
+ _.info("audioOutputDevices ===>", w);
401
+ const k = ((u = w[0]) == null ? void 0 : u.deviceId) || "default";
402
402
  await this.meetingSession.audioVideo.chooseAudioOutput(k);
403
- } catch (C) {
404
- O.error(`设置语音输出设备失败:${C.message}`);
403
+ } catch (w) {
404
+ _.error(`设置语音输出设备失败:${w.message}`);
405
405
  }
406
406
  this.meetingSession.audioVideo.start();
407
407
  } catch (d) {
@@ -415,9 +415,9 @@ class it extends Me {
415
415
  this.joined = !1;
416
416
  const n = {
417
417
  audioVideoDidStop: async (d) => {
418
- var v;
419
- const g = d.statusCode();
420
- (v = this.meetingSession) == null || v.deviceController.destroy(), g === qt.Left ? (this.logger.info("You left the session"), e(!0)) : (this.logger.info(`Stopped with a session status code: ${g}`), e(!0));
418
+ var p;
419
+ const m = d.statusCode();
420
+ (p = this.meetingSession) == null || p.deviceController.destroy(), m === qt.Left ? (this.logger.info("You left the session"), e(!0)) : (this.logger.info(`Stopped with a session status code: ${m}`), e(!0));
421
421
  }
422
422
  };
423
423
  (c = this.meetingSession) == null || c.audioVideo.addObserver(n), (u = this.meetingSession) == null || u.audioVideo.stop();
@@ -506,7 +506,7 @@ class nt extends Me {
506
506
  this.jsBridge.shock(1);
507
507
  }
508
508
  }
509
- var K = /* @__PURE__ */ ((r) => (r.SelfUserInfo = "SELF_USER_INFO", r.RoomInfo = "ROOM_INFO", r.RTCInfo = "RTC_INFO", r.UserList = "USER_LIST", r.BuiltinMsg = "BUILTIN_MSG", r.CustomEvent = "CUSTOM_EVENT", r.KeyframeSync = "KEYFRAME_SYNC", r.UserKickOut = "USER_KICK_OUT", r))(K || {}), q = /* @__PURE__ */ ((r) => (r.UserChange = "user_change", r.RoomChange = "room_change", r))(q || {}), H = /* @__PURE__ */ ((r) => (r.UserMicroStatus = "change_micro_status", r.UserMicroStatusSync = "sync_micro_status", r.UserPermission = "change_permission", r.UserStatus = "change_status", r.UserInfo = "change_info", r.RoomClose = "close", r))(H || {}), Z = /* @__PURE__ */ ((r) => (r.OPEN = "OPEN", r.CLOSE = "CLOSE", r))(Z || {});
509
+ var K = /* @__PURE__ */ ((r) => (r.SelfUserInfo = "SELF_USER_INFO", r.RoomInfo = "ROOM_INFO", r.RTCInfo = "RTC_INFO", r.UserList = "USER_LIST", r.BuiltinMsg = "BUILTIN_MSG", r.CustomEvent = "CUSTOM_EVENT", r.KeyframeSync = "KEYFRAME_SYNC", r.UserKickOut = "USER_KICK_OUT", r))(K || {}), q = /* @__PURE__ */ ((r) => (r.UserChange = "user_change", r.RoomChange = "room_change", r))(q || {}), Y = /* @__PURE__ */ ((r) => (r.UserMicroStatus = "change_micro_status", r.UserMicroStatusSync = "sync_micro_status", r.UserPermission = "change_permission", r.UserStatus = "change_status", r.UserInfo = "change_info", r.RoomClose = "close", r))(Y || {}), Z = /* @__PURE__ */ ((r) => (r.OPEN = "OPEN", r.CLOSE = "CLOSE", r))(Z || {});
510
510
  function Nr(r) {
511
511
  try {
512
512
  const s = JSON.parse(r), e = {
@@ -651,57 +651,57 @@ class mr extends ue {
651
651
  * 做一个健康检查
652
652
  */
653
653
  o(this, "_healthCheck", async () => {
654
- this._realWebSocket && this._realWebSocket.readyState !== this._readyState && (this._readyState = this._realWebSocket.readyState, this._readyState === Le.CLOSING && this.emit("closing")), await new Promise((e) => setTimeout(e, 2e3)), this._heathCheckTimer = requestAnimationFrame(this._healthCheck);
654
+ _.info("_healthCheck"), this._realWebSocket && this._realWebSocket.readyState !== this._readyState && (this._readyState = this._realWebSocket.readyState, this._readyState === Le.CLOSING && this.emit("closing")), await new Promise((e) => setTimeout(e, 2e3)), this._heathCheckTimer = requestAnimationFrame(this._healthCheck);
655
655
  });
656
656
  /**
657
657
  * 清理健康检查
658
658
  */
659
659
  o(this, "_clearHeathCheckIfNeed", () => {
660
- this._heathCheckTimer && (cancelAnimationFrame(this._heathCheckTimer), this._heathCheckTimer = void 0);
660
+ _.info("_clearHeathCheckIfNeed"), this._heathCheckTimer && (cancelAnimationFrame(this._heathCheckTimer), this._heathCheckTimer = void 0);
661
661
  });
662
662
  /**
663
663
  * 开启健康检查
664
664
  */
665
665
  o(this, "_startHealthCheck", () => {
666
- this._clearHeathCheckIfNeed(), this._heathCheckTimer = requestAnimationFrame(this._healthCheck);
666
+ _.info("_startHealthCheck"), this._clearHeathCheckIfNeed(), this._heathCheckTimer = requestAnimationFrame(this._healthCheck);
667
667
  });
668
668
  /**
669
669
  * 停止健康检查
670
670
  */
671
671
  o(this, "_stopHealthCheck", () => {
672
- this._clearHeathCheckIfNeed();
672
+ _.info("_stopHealthCheck"), this._clearHeathCheckIfNeed();
673
673
  });
674
674
  /**
675
675
  * 清理连接中的请求
676
676
  */
677
677
  o(this, "_clearPendingReconnectIfNeeded", () => {
678
- this._pendingReconnect && (clearTimeout(this._pendingReconnect), this._pendingReconnect = void 0);
678
+ _.info("_clearPendingReconnectIfNeeded"), this._pendingReconnect && (clearTimeout(this._pendingReconnect), this._pendingReconnect = void 0);
679
679
  });
680
680
  /**
681
681
  * 当网页连接上网络进行重连
682
682
  * @param event
683
683
  */
684
684
  o(this, "_online", (e) => {
685
- this._reconnectWhenOnlineAgain && (this._clearPendingReconnectIfNeeded(), this._reconnect(e));
685
+ _.info("_online"), this._reconnectWhenOnlineAgain && (this._clearPendingReconnectIfNeeded(), this._reconnect(e));
686
686
  });
687
687
  /**
688
688
  * 当网页断开网络进行关闭
689
689
  */
690
690
  o(this, "_offline", () => {
691
691
  var e;
692
- this._reconnectWhenOnlineAgain = !0, (e = this._realWebSocket) == null || e.close(1e3, "offline");
692
+ _.info("_offline"), this._reconnectWhenOnlineAgain = !0, (e = this._realWebSocket) == null || e.close(1e3, "offline");
693
693
  });
694
694
  /**
695
695
  * 解除网络监听事件
696
696
  */
697
697
  o(this, "_detachConnectivityEvents", () => {
698
- this._connectivityEventsAttached && (globalThis == null || globalThis.removeEventListener("online", this._online), globalThis == null || globalThis.removeEventListener("offline", this._offline), this._connectivityEventsAttached = !1);
698
+ _.info("_detachConnectivityEvents"), this._connectivityEventsAttached && (globalThis == null || globalThis.removeEventListener("online", this._online), globalThis == null || globalThis.removeEventListener("offline", this._offline), this._connectivityEventsAttached = !1);
699
699
  });
700
700
  /**
701
701
  * 注册网络监听事件
702
702
  */
703
703
  o(this, "_attachConnectivityEvents", () => {
704
- this._connectivityEventsAttached || (globalThis == null || globalThis.addEventListener("online", this._online), globalThis == null || globalThis.addEventListener("offline", this._offline), this._connectivityEventsAttached = !0);
704
+ _.info("_attachConnectivityEvents"), this._connectivityEventsAttached || (globalThis == null || globalThis.addEventListener("online", this._online), globalThis == null || globalThis.addEventListener("offline", this._offline), this._connectivityEventsAttached = !0);
705
705
  });
706
706
  /**
707
707
  * 发送消息
@@ -710,7 +710,7 @@ class mr extends ue {
710
710
  */
711
711
  o(this, "send", (e) => {
712
712
  var i, n, c;
713
- ((i = this._realWebSocket) == null ? void 0 : i.readyState) === ((n = this._realWebSocket) == null ? void 0 : n.OPEN) && ((c = this._realWebSocket) == null || c.send(e));
713
+ _.info("send", e), ((i = this._realWebSocket) == null ? void 0 : i.readyState) === ((n = this._realWebSocket) == null ? void 0 : n.OPEN) && ((c = this._realWebSocket) == null || c.send(e));
714
714
  });
715
715
  /**
716
716
  * 关闭连接
@@ -720,20 +720,21 @@ class mr extends ue {
720
720
  */
721
721
  o(this, "close", (e, i) => {
722
722
  var n;
723
- return typeof e != "number" && (i = e, e = 1e3), this._clearPendingReconnectIfNeeded(), this._reconnectWhenOnlineAgain = !1, this._explicitlyClosed = !0, this._detachConnectivityEvents(), (n = this._realWebSocket) == null ? void 0 : n.close(e, i);
723
+ return _.info("close", e, i), typeof e != "number" && (i = e, e = 1e3), this._clearPendingReconnectIfNeeded(), this._reconnectWhenOnlineAgain = !1, this._explicitlyClosed = !0, this._detachConnectivityEvents(), (n = this._realWebSocket) == null ? void 0 : n.close(e, i);
724
724
  });
725
725
  /**
726
726
  * 进行ws连接
727
727
  */
728
728
  o(this, "open", (e) => {
729
729
  var i, n;
730
- e && (this._url = e), ((i = this._realWebSocket) == null ? void 0 : i.readyState) !== WebSocket.OPEN && ((n = this._realWebSocket) == null ? void 0 : n.readyState) !== WebSocket.CONNECTING && (this._clearPendingReconnectIfNeeded(), this._reconnectWhenOnlineAgain = !1, this._explicitlyClosed = !1, this._createWebSocket());
730
+ _.info("open", e), e && (this._url = e), ((i = this._realWebSocket) == null ? void 0 : i.readyState) !== WebSocket.OPEN && ((n = this._realWebSocket) == null ? void 0 : n.readyState) !== WebSocket.CONNECTING && (this._clearPendingReconnectIfNeeded(), this._reconnectWhenOnlineAgain = !1, this._explicitlyClosed = !1, this._createWebSocket());
731
731
  });
732
732
  /**
733
733
  * 创建ws连接
734
734
  */
735
735
  o(this, "_createWebSocket", () => {
736
736
  var n, c, u;
737
+ _.info("_createWebSocket");
737
738
  const e = typeof this._url == "string" ? this._url : (n = this._url) == null ? void 0 : n.call(this, this);
738
739
  if (!e)
739
740
  return;
@@ -746,13 +747,13 @@ class mr extends ue {
746
747
  const i = () => {
747
748
  this._connectTimeout = void 0, this._detachConnectivityEvents(), this.emit(
748
749
  "timeout",
749
- new CustomEvent("connecting", {
750
+ new CustomEvent("timeout", {
750
751
  detail: {
751
752
  attempts: this._attempts,
752
753
  reconnects: this._reconnects
753
754
  }
754
755
  })
755
- );
756
+ ), this.open(this._url);
756
757
  };
757
758
  this._connectTimeout = setTimeout(i, (c = this._options) == null ? void 0 : c.timeout), this._dispatchWebSocketEvent(), (u = this._options) != null && u.ignoreConnectivityEvents || this._attachConnectivityEvents();
758
759
  });
@@ -761,21 +762,21 @@ class mr extends ue {
761
762
  */
762
763
  o(this, "_removeWebSocketEvent", () => {
763
764
  var e, i, n, c;
764
- (e = this._realWebSocket) == null || e.removeEventListener("open", this._webSocketOpenHandler), (i = this._realWebSocket) == null || i.removeEventListener("close", this._webSocketCloseHandler), (n = this._realWebSocket) == null || n.removeEventListener("error", this._webSocketErrorHandler), (c = this._realWebSocket) == null || c.removeEventListener("message", this._webSocketMessageHandler);
765
+ _.info("_removeWebSocketEvent"), (e = this._realWebSocket) == null || e.removeEventListener("open", this._webSocketOpenHandler), (i = this._realWebSocket) == null || i.removeEventListener("close", this._webSocketCloseHandler), (n = this._realWebSocket) == null || n.removeEventListener("error", this._webSocketErrorHandler), (c = this._realWebSocket) == null || c.removeEventListener("message", this._webSocketMessageHandler);
765
766
  });
766
767
  /**
767
768
  * 分发ws事件
768
769
  */
769
770
  o(this, "_dispatchWebSocketEvent", () => {
770
771
  var e, i, n, c;
771
- (e = this._realWebSocket) == null || e.addEventListener("open", this._webSocketOpenHandler), (i = this._realWebSocket) == null || i.addEventListener("close", this._webSocketCloseHandler), (n = this._realWebSocket) == null || n.addEventListener("error", this._webSocketErrorHandler), (c = this._realWebSocket) == null || c.addEventListener("message", this._webSocketMessageHandler);
772
+ _.info("_dispatchWebSocketEvent"), (e = this._realWebSocket) == null || e.addEventListener("open", this._webSocketOpenHandler), (i = this._realWebSocket) == null || i.addEventListener("close", this._webSocketCloseHandler), (n = this._realWebSocket) == null || n.addEventListener("error", this._webSocketErrorHandler), (c = this._realWebSocket) == null || c.addEventListener("message", this._webSocketMessageHandler);
772
773
  });
773
774
  /**
774
775
  * ws连接事件
775
776
  * @returns
776
777
  */
777
778
  o(this, "_webSocketOpenHandler", (e) => {
778
- this._clearPendingReconnectIfNeeded(), this._connectTimeout && (clearTimeout(this._connectTimeout), this._connectTimeout = void 0);
779
+ _.info("_webSocketOpenHandler"), this._clearPendingReconnectIfNeeded(), this._connectTimeout && (clearTimeout(this._connectTimeout), this._connectTimeout = void 0);
779
780
  const i = ++this._reconnects, n = this._attempts;
780
781
  return this._attempts = 0, this._reconnectWhenOnlineAgain = !1, this._startHealthCheck(), this.emit("open", Object.assign(e, { detail: { reconnects: i, attempts: n } }));
781
782
  });
@@ -784,26 +785,26 @@ class mr extends ue {
784
785
  * @param event
785
786
  * @returns
786
787
  */
787
- o(this, "_webSocketCloseHandler", (e) => (this._reconnect(e), this._stopHealthCheck(), this.emit("close", e)));
788
+ o(this, "_webSocketCloseHandler", (e) => (_.info("_webSocketCloseHandler"), this._reconnect(e), this._stopHealthCheck(), this.emit("close", e)));
788
789
  /**
789
790
  * ws 异常
790
791
  * @param event
791
792
  * @returns
792
793
  */
793
- o(this, "_webSocketErrorHandler", (e) => this.emit("error", new CustomEvent("error", { detail: { error: e } })));
794
+ o(this, "_webSocketErrorHandler", (e) => (_.info("_webSocketErrorHandler"), this.emit("error", new CustomEvent("error", { detail: { error: e } }))));
794
795
  /**
795
796
  * ws消息
796
797
  * @param event
797
798
  * @returns
798
799
  */
799
- o(this, "_webSocketMessageHandler", (e) => this.emit("message", e));
800
+ o(this, "_webSocketMessageHandler", (e) => (_.info("_webSocketMessageHandler"), this.emit("message", e)));
800
801
  e && this.setOptions(e), this._startHealthCheck();
801
802
  }
802
803
  get attempts() {
803
804
  return this._attempts;
804
805
  }
805
806
  setOptions(e) {
806
- if (!e)
807
+ if (_.info("setOptions", e), !e)
807
808
  return;
808
809
  this._url = e.url, this._protocols = e.protocols;
809
810
  const i = Object.assign(this._options, e.robustOptions || {});
@@ -822,7 +823,7 @@ class mr extends ue {
822
823
  */
823
824
  _reconnect(e) {
824
825
  var n, c, u, d;
825
- if (!((n = this._options) != null && n.should1000Reconnect) && e.code === 1e3 || this._explicitlyClosed) {
826
+ if (_.info("_reconnect"), !((n = this._options) != null && n.should1000Reconnect) && e.code === 1e3 || this._explicitlyClosed) {
826
827
  this._attempts = 0;
827
828
  return;
828
829
  }
@@ -841,8 +842,7 @@ class vr extends ue {
841
842
  * ws代理器
842
843
  */
843
844
  o(this, "_ws", new mr({
844
- url: "",
845
- robustOptions: { timeout: 18e4 }
845
+ url: ""
846
846
  }));
847
847
  /**
848
848
  * 带看连接状态
@@ -865,30 +865,28 @@ class vr extends ue {
865
865
  * @param event
866
866
  */
867
867
  o(this, "_handleCloseEvent", (e) => {
868
- O.info(
869
- `live room closed bacause of ${e.code}-${e.reason || nr(e.code)}`
870
- ), this.state = x.CLOSED;
868
+ _.info(`live room closed bacause of ${e.code}-${e.reason || nr(e.code)}`), this.state = x.CLOSED;
871
869
  });
872
870
  /**
873
871
  * 处理房间正在关闭事件(这个时候可能是断网了)
874
872
  */
875
873
  o(this, "_handleClosingEvent", () => {
876
874
  var e;
877
- O.info("live room is closing, onLine:", (e = globalThis == null ? void 0 : globalThis.navigator) == null ? void 0 : e.onLine), this.state = x.CLOSED;
875
+ _.info("live room is closing, onLine:", (e = globalThis == null ? void 0 : globalThis.navigator) == null ? void 0 : e.onLine), this.state = x.CLOSED;
878
876
  });
879
877
  /**
880
878
  * 连接中
881
879
  * @param event
882
880
  */
883
881
  o(this, "_handleConnectingEvent", () => {
884
- O.info("live room is connecting"), this.state = x.CONNECTING;
882
+ _.info("live room is connecting"), this.state = x.CONNECTING;
885
883
  });
886
884
  /**
887
885
  * 连接发送异常
888
886
  * @param event
889
887
  */
890
888
  o(this, "_handleErrorEvent", (e) => {
891
- O.error("live room error", e), this.state = x.CLOSED;
889
+ _.error("live room error", e), this.state = x.CLOSED;
892
890
  });
893
891
  /**
894
892
  * 接收到消息
@@ -909,14 +907,14 @@ class vr extends ue {
909
907
  * @param event
910
908
  */
911
909
  o(this, "_handleOpenEvent", (e) => {
912
- O.info("live room open", e.detail), this.state = x.OPEN, e.detail.reconnects > 0 && this.emit("reconnected", e.detail);
910
+ _.info("live room open", e.detail), this.state = x.OPEN, e.detail.reconnects > 0 && this.emit("reconnected", e.detail);
913
911
  });
914
912
  /**
915
913
  * 处理超时
916
914
  * @param event
917
915
  */
918
916
  o(this, "_handleTimeoutEvent", (e) => {
919
- O.error("live room connect timeout!", e.detail), this.state = x.CLOSED;
917
+ _.error("live room connect timeout!", e.detail), this.state = x.CLOSED;
920
918
  });
921
919
  /**
922
920
  * 释放资源,释放之后需要重新实例化
@@ -1010,7 +1008,7 @@ class yr extends ue {
1010
1008
  try {
1011
1009
  return this._controller.sendMessage(n), !0;
1012
1010
  } catch (c) {
1013
- return O.error(c), !1;
1011
+ return _.error(c), !1;
1014
1012
  }
1015
1013
  });
1016
1014
  /**
@@ -1042,32 +1040,32 @@ class yr extends ue {
1042
1040
  o(this, "_handleMessage", async (e) => {
1043
1041
  var i, n, c, u, d;
1044
1042
  if (typeof e == "object") {
1045
- const { command: g, data: v = {}, frontRequestId: E, code: y, message: I } = e;
1046
- if (y === "SUCCESS")
1047
- switch (g) {
1043
+ const { command: m, data: p = {}, frontRequestId: y, code: b, message: I } = e;
1044
+ if (b === "SUCCESS")
1045
+ switch (m) {
1048
1046
  case K.SelfUserInfo: {
1049
- const _ = v;
1050
- ot(this.selfInfo, _, { deep: !0 }) || (this._buildInData.selfInfo = _, this.emit(
1047
+ const g = p;
1048
+ ot(this.selfInfo, g, { deep: !0 }) || (this._buildInData.selfInfo = g, this.emit(
1051
1049
  "selfInfoUpdate",
1052
1050
  this._buildInData.selfInfo,
1053
- E
1051
+ y
1054
1052
  ));
1055
1053
  break;
1056
1054
  }
1057
1055
  case K.RoomInfo: {
1058
- const _ = v;
1059
- this._buildInData.roomInfo = Object.assign({}, _), this.emit(
1056
+ const g = p;
1057
+ this._buildInData.roomInfo = Object.assign({}, g), this.emit(
1060
1058
  "readyKeyframeSync",
1061
- _.last_frame || {}
1059
+ g.last_frame || {}
1062
1060
  );
1063
1061
  break;
1064
1062
  }
1065
1063
  case K.RTCInfo: {
1066
- const { voice_id: _, type: V } = v;
1067
- if (this._buildInData.rtcInfo = { voiceId: _, type: V }, (i = this.$RTC) != null && i.joined)
1068
- O.warn("已加入语音房间,无需重复加入!");
1064
+ const { voice_id: g, type: V } = p;
1065
+ if (this._buildInData.rtcInfo = { voiceId: g, type: V }, (i = this.$RTC) != null && i.joined)
1066
+ _.warn("已加入语音房间,无需重复加入!");
1069
1067
  else if (await ((u = this.$RTC) == null ? void 0 : u.join({
1070
- voiceId: _,
1068
+ voiceId: g,
1071
1069
  userId: ((n = this.selfInfo) == null ? void 0 : n.id) || "",
1072
1070
  roomId: (c = this.roomInfo) == null ? void 0 : c.info.room_code,
1073
1071
  type: V
@@ -1075,52 +1073,52 @@ class yr extends ue {
1075
1073
  const k = (d = this._options.initialMicroStatus) != null ? d : Z.OPEN;
1076
1074
  await this.toggleMicro(k === Z.OPEN);
1077
1075
  } else
1078
- O.error("加入语音房间失败");
1076
+ _.error("加入语音房间失败");
1079
1077
  break;
1080
1078
  }
1081
1079
  case K.UserList: {
1082
- const _ = v;
1083
- this._buildInData.userList = _, this.emit("userListUpdate", this.userList, E);
1080
+ const g = p;
1081
+ this._buildInData.userList = g, this.emit("userListUpdate", this.userList, y);
1084
1082
  break;
1085
1083
  }
1086
1084
  case K.CustomEvent: {
1087
- const _ = v;
1088
- this.emit("broadcast", _, E);
1085
+ const g = p;
1086
+ this.emit("broadcast", g, y);
1089
1087
  break;
1090
1088
  }
1091
1089
  case K.KeyframeSync: {
1092
- const _ = v, V = Object.keys(
1093
- _
1090
+ const g = p, V = Object.keys(
1091
+ g
1094
1092
  ).reduce(
1095
- (C, k) => {
1093
+ (w, k) => {
1096
1094
  if (ot(
1097
- _[k],
1095
+ g[k],
1098
1096
  this._buildInData.keyframes[k],
1099
1097
  {
1100
1098
  deep: !0
1101
1099
  }
1102
1100
  ))
1103
- return C;
1101
+ return w;
1104
1102
  const U = [
1105
- _[k],
1103
+ g[k],
1106
1104
  this._buildInData.keyframes[k],
1107
- E
1105
+ y
1108
1106
  ], P = k;
1109
1107
  return this.keyframes.emit(
1110
1108
  P,
1111
1109
  ...U
1112
- ), this._buildInData.keyframes[k] = _[k], C[k] = _[k], C;
1110
+ ), this._buildInData.keyframes[k] = g[k], w[k] = g[k], w;
1113
1111
  },
1114
1112
  {}
1115
1113
  );
1116
- this.emit("keyframes", V, E);
1114
+ this.emit("keyframes", V, y);
1117
1115
  break;
1118
1116
  }
1119
1117
  case K.BuiltinMsg: {
1120
- const _ = v;
1121
- this.emit("builtinEvent", _), _.event_type === q.UserChange && this.emit("userChange", _), _.event_type === q.RoomChange && this.emit("roomChange", _), _.event_type === q.UserChange && _.action === H.UserMicroStatus && await this.toggleMicro(
1122
- _.data.status === Z.OPEN
1123
- ), _.event_type === q.RoomChange && _.action === H.RoomClose && await this.exit();
1118
+ const g = p;
1119
+ this.emit("builtinEvent", g), g.event_type === q.UserChange && this.emit("userChange", g), g.event_type === q.RoomChange && this.emit("roomChange", g), g.event_type === q.UserChange && g.action === Y.UserMicroStatus && await this.toggleMicro(
1120
+ g.data.status === Z.OPEN
1121
+ ), g.event_type === q.RoomChange && g.action === Y.RoomClose && await this.exit();
1124
1122
  break;
1125
1123
  }
1126
1124
  case K.UserKickOut: {
@@ -1128,7 +1126,7 @@ class yr extends ue {
1128
1126
  break;
1129
1127
  }
1130
1128
  default:
1131
- console.warn("unknown command: ", g);
1129
+ console.warn("unknown command: ", m);
1132
1130
  }
1133
1131
  else
1134
1132
  this.emit("error", e);
@@ -1146,8 +1144,8 @@ class yr extends ue {
1146
1144
  * @returns
1147
1145
  */
1148
1146
  o(this, "connect", async (e = {}) => {
1149
- var u, d, g, v;
1150
- if (this._options.url = (d = (u = e.url) != null ? u : this._options.url) != null ? d : "", this._options.getTicket = (g = e.getTicket) != null ? g : this._options.getTicket, this._options.initialMicroStatus = (v = e.rtcMicStatus) != null ? v : this._options.initialMicroStatus, !/^ws(s):\/\//.test(this._options.url) || typeof this._options.getTicket != "function")
1147
+ var u, d, m, p;
1148
+ if (this._options.url = (d = (u = e.url) != null ? u : this._options.url) != null ? d : "", this._options.getTicket = (m = e.getTicket) != null ? m : this._options.getTicket, this._options.initialMicroStatus = (p = e.rtcMicStatus) != null ? p : this._options.initialMicroStatus, !/^ws(s):\/\//.test(this._options.url) || typeof this._options.getTicket != "function")
1151
1149
  return /^ws(s):\/\//.test(this._options.url) ? typeof this._options.getTicket != "function" ? new Error("getTicket muse be function") : !1 : new Error("Illegal realsee live room link");
1152
1150
  const { force: i = !1 } = e;
1153
1151
  if (this._options.rtc && !await this._options.rtc.detectMicro())
@@ -1157,8 +1155,8 @@ class yr extends ue {
1157
1155
  if (i)
1158
1156
  try {
1159
1157
  await this._controller.close("force close by connect");
1160
- } catch (E) {
1161
- console.warn(E);
1158
+ } catch (y) {
1159
+ console.warn(y);
1162
1160
  }
1163
1161
  else
1164
1162
  return new Error("已有Live实例正在连接中,请勿重复连接!");
@@ -1180,7 +1178,7 @@ class yr extends ue {
1180
1178
  try {
1181
1179
  await ((e = this.$RTC) == null ? void 0 : e.quit());
1182
1180
  } catch (i) {
1183
- O.warn(i);
1181
+ _.warn(i);
1184
1182
  }
1185
1183
  return await this._controller.close();
1186
1184
  });
@@ -1195,7 +1193,7 @@ class yr extends ue {
1195
1193
  if ((i = (e = this.selfInfo) == null ? void 0 : e.permission) != null && i.close_live_room)
1196
1194
  return await this.updateStatus(
1197
1195
  q.RoomChange,
1198
- H.RoomClose,
1196
+ Y.RoomClose,
1199
1197
  {}
1200
1198
  );
1201
1199
  });
@@ -1211,7 +1209,7 @@ class yr extends ue {
1211
1209
  */
1212
1210
  o(this, "setSelfInfo", async (e) => await this.updateStatus(
1213
1211
  q.UserChange,
1214
- H.UserInfo,
1212
+ Y.UserInfo,
1215
1213
  e
1216
1214
  ));
1217
1215
  // 仅用于用户自己的麦克风控制
@@ -1222,7 +1220,7 @@ class yr extends ue {
1222
1220
  const i = await ((u = this.$RTC) == null ? void 0 : u.toggleMicro(e));
1223
1221
  return i && await this.updateStatus(
1224
1222
  q.UserChange,
1225
- H.UserMicroStatus,
1223
+ Y.UserMicroStatus,
1226
1224
  {
1227
1225
  status: e ? Z.OPEN : Z.CLOSE
1228
1226
  },
@@ -1239,7 +1237,7 @@ class yr extends ue {
1239
1237
  var n, c;
1240
1238
  return typeof this._options.canForbidUserMicro == "function" && !this._options.canForbidUserMicro(i) || !((c = (n = this.selfInfo) == null ? void 0 : n.permission) != null && c.control_other_micro) ? !1 : await this.updateStatus(
1241
1239
  q.UserChange,
1242
- H.UserMicroStatus,
1240
+ Y.UserMicroStatus,
1243
1241
  {
1244
1242
  status: e
1245
1243
  },
@@ -1256,7 +1254,7 @@ class yr extends ue {
1256
1254
  var n, c;
1257
1255
  return typeof this._options.canForbidUserSync == "function" && !this._options.canForbidUserSync(i) || !((c = (n = this.selfInfo) == null ? void 0 : n.permission) != null && c.control_other_sync) ? !1 : await this.updateStatus(
1258
1256
  q.UserChange,
1259
- H.UserPermission,
1257
+ Y.UserPermission,
1260
1258
  { sync_frame: e },
1261
1259
  i
1262
1260
  );
@@ -1270,7 +1268,7 @@ class yr extends ue {
1270
1268
  var i, n;
1271
1269
  return typeof this._options.canForbidUserKick == "function" && !this._options.canForbidUserKick(e) || !((n = (i = this.selfInfo) == null ? void 0 : i.permission) != null && n.change_other_status) ? !1 : await this.updateStatus(
1272
1270
  q.UserChange,
1273
- H.UserStatus,
1271
+ Y.UserStatus,
1274
1272
  {
1275
1273
  status: "KICK_OUT"
1276
1274
  },
@@ -1289,7 +1287,7 @@ class yr extends ue {
1289
1287
  if (e.rtc)
1290
1288
  return e.rtc;
1291
1289
  if (e.rtcType)
1292
- switch (e.getVoiceSign || O.error(
1290
+ switch (e.getVoiceSign || _.error(
1293
1291
  "GetVoiceSign method must be passed when using built-in RTC instances"
1294
1292
  ), e.rtcType) {
1295
1293
  case Q.RealseeVRWebViewRTC: {
@@ -1298,7 +1296,7 @@ class yr extends ue {
1298
1296
  jsBridge: this._options.jsBridge,
1299
1297
  getVoiceSign: this._options.getVoiceSign
1300
1298
  });
1301
- O.error(
1299
+ _.error(
1302
1300
  "JsBridge instance must be passed when using built-in VRWebViewRTC instances"
1303
1301
  );
1304
1302
  return;
@@ -1309,19 +1307,19 @@ class yr extends ue {
1309
1307
  logLevel: e.__debug__ ? st.DEBUG : st.INFO
1310
1308
  });
1311
1309
  case Q.RealseeBrowserRTC:
1312
- return this._options.autoPlayConfirm || O.error(
1310
+ return this._options.autoPlayConfirm || _.error(
1313
1311
  "autoPlayConfirm method must be passed when using built-in RealseeBrowserRTC instances"
1314
1312
  ), new rt({
1315
1313
  getVoiceSign: this._options.getVoiceSign,
1316
1314
  autoPlayConfirm: this._options.autoPlayConfirm
1317
1315
  });
1318
1316
  default: {
1319
- O.error("unknown built-in RTC type");
1317
+ _.error("unknown built-in RTC type");
1320
1318
  return;
1321
1319
  }
1322
1320
  }
1323
1321
  if (e.useBuiltInRTC) {
1324
- if (e.getVoiceSign || O.error(
1322
+ if (e.getVoiceSign || _.error(
1325
1323
  "GetVoiceSign method must be passed when using built-in RTC instances"
1326
1324
  ), this._options.jsBridge)
1327
1325
  return lr && (ar || cr) || ur ? new nt({
@@ -1333,12 +1331,12 @@ class yr extends ue {
1333
1331
  getVoiceSign: this._options.getVoiceSign,
1334
1332
  autoPlayConfirm: this._options.autoPlayConfirm
1335
1333
  });
1336
- O.error(
1334
+ _.error(
1337
1335
  "jsBridge instance must be passed when using built-in RTC instances"
1338
1336
  );
1339
1337
  return;
1340
1338
  }
1341
- })(), this._options.rtc || O.warn("unused rtc"), this._options.url && this._options.getTicket && this.connect(), this._options.__debug__ && Object.assign(window, { $liveController: this._controller, $live: this });
1339
+ })(), this._options.rtc || _.warn("unused rtc"), this._options.url && this._options.getTicket && this.connect(), this._options.__debug__ && Object.assign(window, { $liveController: this._controller, $live: this });
1342
1340
  }
1343
1341
  get options() {
1344
1342
  return Object.freeze(this._options || {});
@@ -1416,8 +1414,8 @@ class yr extends ue {
1416
1414
  ), d = je(K.BuiltinMsg, u, c);
1417
1415
  try {
1418
1416
  return this._controller.sendMessage(d), !0;
1419
- } catch (g) {
1420
- return O.error(g), !1;
1417
+ } catch (m) {
1418
+ return _.error(m), !1;
1421
1419
  }
1422
1420
  }
1423
1421
  /**
@@ -1433,16 +1431,16 @@ class yr extends ue {
1433
1431
  K.CustomEvent,
1434
1432
  e,
1435
1433
  i
1436
- ), g = d.front_request_id, v = n ? setTimeout(() => {
1437
- u(new Error("RESPONSE TIMEOUT")), this.off("broadcast", E);
1438
- }, n) : void 0, E = (y, I) => {
1439
- I === g && (v && clearTimeout(v), this.off("broadcast", E), c(y));
1434
+ ), m = d.front_request_id, p = n ? setTimeout(() => {
1435
+ u(new Error("RESPONSE TIMEOUT")), this.off("broadcast", y);
1436
+ }, n) : void 0, y = (b, I) => {
1437
+ I === m && (p && clearTimeout(p), this.off("broadcast", y), c(b));
1440
1438
  };
1441
- this.on("broadcast", E);
1439
+ this.on("broadcast", y);
1442
1440
  try {
1443
1441
  this._controller.sendMessage(d);
1444
- } catch (y) {
1445
- u(y);
1442
+ } catch (b) {
1443
+ u(b);
1446
1444
  }
1447
1445
  });
1448
1446
  }
@@ -1471,15 +1469,15 @@ function Cr() {
1471
1469
  return oe;
1472
1470
  at = 1;
1473
1471
  var r = D, s = Symbol.for("react.element"), e = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, n = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
1474
- function u(d, g, v) {
1475
- var E, y = {}, I = null, _ = null;
1476
- v !== void 0 && (I = "" + v), g.key !== void 0 && (I = "" + g.key), g.ref !== void 0 && (_ = g.ref);
1477
- for (E in g)
1478
- i.call(g, E) && !c.hasOwnProperty(E) && (y[E] = g[E]);
1472
+ function u(d, m, p) {
1473
+ var y, b = {}, I = null, g = null;
1474
+ p !== void 0 && (I = "" + p), m.key !== void 0 && (I = "" + m.key), m.ref !== void 0 && (g = m.ref);
1475
+ for (y in m)
1476
+ i.call(m, y) && !c.hasOwnProperty(y) && (b[y] = m[y]);
1479
1477
  if (d && d.defaultProps)
1480
- for (E in g = d.defaultProps, g)
1481
- y[E] === void 0 && (y[E] = g[E]);
1482
- return { $$typeof: s, type: d, key: I, ref: _, props: y, _owner: n.current };
1478
+ for (y in m = d.defaultProps, m)
1479
+ b[y] === void 0 && (b[y] = m[y]);
1480
+ return { $$typeof: s, type: d, key: I, ref: g, props: b, _owner: n.current };
1483
1481
  }
1484
1482
  return oe.Fragment = e, oe.jsx = u, oe.jsxs = u, oe;
1485
1483
  }
@@ -1496,11 +1494,11 @@ var ae = {};
1496
1494
  var ct;
1497
1495
  function wr() {
1498
1496
  return ct || (ct = 1, process.env.NODE_ENV !== "production" && function() {
1499
- var r = D, s = Symbol.for("react.element"), e = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), d = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), V = Symbol.iterator, C = "@@iterator";
1497
+ var r = D, s = Symbol.for("react.element"), e = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), d = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), V = Symbol.iterator, w = "@@iterator";
1500
1498
  function k(t) {
1501
1499
  if (t === null || typeof t != "object")
1502
1500
  return null;
1503
- var a = V && t[V] || t[C];
1501
+ var a = V && t[V] || t[w];
1504
1502
  return typeof a == "function" ? a : null;
1505
1503
  }
1506
1504
  var U = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -1513,18 +1511,18 @@ function wr() {
1513
1511
  }
1514
1512
  function fe(t, a, l) {
1515
1513
  {
1516
- var h = U.ReactDebugCurrentFrame, b = h.getStackAddendum();
1517
- b !== "" && (a += "%s", l = l.concat([b]));
1518
- var R = l.map(function(p) {
1519
- return String(p);
1514
+ var h = U.ReactDebugCurrentFrame, S = h.getStackAddendum();
1515
+ S !== "" && (a += "%s", l = l.concat([S]));
1516
+ var O = l.map(function(E) {
1517
+ return String(E);
1520
1518
  });
1521
- R.unshift("Warning: " + a), Function.prototype.apply.call(console[t], console, R);
1519
+ O.unshift("Warning: " + a), Function.prototype.apply.call(console[t], console, O);
1522
1520
  }
1523
1521
  }
1524
- var f = !1, w = !1, A = !1, S = !1, N = !1, M;
1522
+ var f = !1, R = !1, A = !1, C = !1, N = !1, M;
1525
1523
  M = Symbol.for("react.module.reference");
1526
1524
  function F(t) {
1527
- return !!(typeof t == "string" || typeof t == "function" || t === i || t === c || N || t === n || t === v || t === E || S || t === _ || f || w || A || typeof t == "object" && t !== null && (t.$$typeof === I || t.$$typeof === y || t.$$typeof === u || t.$$typeof === d || t.$$typeof === g || // This needs to include all possible module reference object
1525
+ return !!(typeof t == "string" || typeof t == "function" || t === i || t === c || N || t === n || t === p || t === y || C || t === g || f || R || A || typeof t == "object" && t !== null && (t.$$typeof === I || t.$$typeof === b || t.$$typeof === u || t.$$typeof === d || t.$$typeof === m || // This needs to include all possible module reference object
1528
1526
  // types supported by any Flight configuration anywhere since
1529
1527
  // we don't know which Flight build this will end up being used
1530
1528
  // with.
@@ -1534,8 +1532,8 @@ function wr() {
1534
1532
  var h = t.displayName;
1535
1533
  if (h)
1536
1534
  return h;
1537
- var b = a.displayName || a.name || "";
1538
- return b !== "" ? l + "(" + b + ")" : l;
1535
+ var S = a.displayName || a.name || "";
1536
+ return S !== "" ? l + "(" + S + ")" : l;
1539
1537
  }
1540
1538
  function ne(t) {
1541
1539
  return t.displayName || "Context";
@@ -1556,9 +1554,9 @@ function wr() {
1556
1554
  return "Profiler";
1557
1555
  case n:
1558
1556
  return "StrictMode";
1559
- case v:
1557
+ case p:
1560
1558
  return "Suspense";
1561
- case E:
1559
+ case y:
1562
1560
  return "SuspenseList";
1563
1561
  }
1564
1562
  if (typeof t == "object")
@@ -1569,30 +1567,30 @@ function wr() {
1569
1567
  case u:
1570
1568
  var l = t;
1571
1569
  return ne(l._context) + ".Provider";
1572
- case g:
1570
+ case m:
1573
1571
  return J(t, t.render, "ForwardRef");
1574
- case y:
1572
+ case b:
1575
1573
  var h = t.displayName || null;
1576
1574
  return h !== null ? h : G(t.type) || "Memo";
1577
1575
  case I: {
1578
- var b = t, R = b._payload, p = b._init;
1576
+ var S = t, O = S._payload, E = S._init;
1579
1577
  try {
1580
- return G(p(R));
1581
- } catch (m) {
1578
+ return G(E(O));
1579
+ } catch (v) {
1582
1580
  return null;
1583
1581
  }
1584
1582
  }
1585
1583
  }
1586
1584
  return null;
1587
1585
  }
1588
- var z = Object.assign, ee = 0, T, B, te, de, Ve, $e, xe;
1586
+ var z = Object.assign, ee = 0, T, W, te, de, Ve, $e, xe;
1589
1587
  function Ue() {
1590
1588
  }
1591
1589
  Ue.__reactDisabledLog = !0;
1592
1590
  function dt() {
1593
1591
  {
1594
1592
  if (ee === 0) {
1595
- T = console.log, B = console.info, te = console.warn, de = console.error, Ve = console.group, $e = console.groupCollapsed, xe = console.groupEnd;
1593
+ T = console.log, W = console.info, te = console.warn, de = console.error, Ve = console.group, $e = console.groupCollapsed, xe = console.groupEnd;
1596
1594
  var t = {
1597
1595
  configurable: !0,
1598
1596
  enumerable: !0,
@@ -1625,7 +1623,7 @@ function wr() {
1625
1623
  value: T
1626
1624
  }),
1627
1625
  info: z({}, t, {
1628
- value: B
1626
+ value: W
1629
1627
  }),
1630
1628
  warn: z({}, t, {
1631
1629
  value: te
@@ -1653,8 +1651,8 @@ function wr() {
1653
1651
  if (we === void 0)
1654
1652
  try {
1655
1653
  throw Error();
1656
- } catch (b) {
1657
- var h = b.stack.trim().match(/\n( *(at )?)/);
1654
+ } catch (S) {
1655
+ var h = S.stack.trim().match(/\n( *(at )?)/);
1658
1656
  we = h && h[1] || "";
1659
1657
  }
1660
1658
  return `
@@ -1676,63 +1674,63 @@ function wr() {
1676
1674
  }
1677
1675
  var h;
1678
1676
  Re = !0;
1679
- var b = Error.prepareStackTrace;
1677
+ var S = Error.prepareStackTrace;
1680
1678
  Error.prepareStackTrace = void 0;
1681
- var R;
1682
- R = Ce.current, Ce.current = null, dt();
1679
+ var O;
1680
+ O = Ce.current, Ce.current = null, dt();
1683
1681
  try {
1684
1682
  if (a) {
1685
- var p = function() {
1683
+ var E = function() {
1686
1684
  throw Error();
1687
1685
  };
1688
- if (Object.defineProperty(p.prototype, "props", {
1686
+ if (Object.defineProperty(E.prototype, "props", {
1689
1687
  set: function() {
1690
1688
  throw Error();
1691
1689
  }
1692
1690
  }), typeof Reflect == "object" && Reflect.construct) {
1693
1691
  try {
1694
- Reflect.construct(p, []);
1695
- } catch (Y) {
1696
- h = Y;
1692
+ Reflect.construct(E, []);
1693
+ } catch (H) {
1694
+ h = H;
1697
1695
  }
1698
- Reflect.construct(t, [], p);
1696
+ Reflect.construct(t, [], E);
1699
1697
  } else {
1700
1698
  try {
1701
- p.call();
1702
- } catch (Y) {
1703
- h = Y;
1699
+ E.call();
1700
+ } catch (H) {
1701
+ h = H;
1704
1702
  }
1705
- t.call(p.prototype);
1703
+ t.call(E.prototype);
1706
1704
  }
1707
1705
  } else {
1708
1706
  try {
1709
1707
  throw Error();
1710
- } catch (Y) {
1711
- h = Y;
1708
+ } catch (H) {
1709
+ h = H;
1712
1710
  }
1713
1711
  t();
1714
1712
  }
1715
- } catch (Y) {
1716
- if (Y && h && typeof Y.stack == "string") {
1717
- for (var m = Y.stack.split(`
1713
+ } catch (H) {
1714
+ if (H && h && typeof H.stack == "string") {
1715
+ for (var v = H.stack.split(`
1718
1716
  `), $ = h.stack.split(`
1719
- `), j = m.length - 1, L = $.length - 1; j >= 1 && L >= 0 && m[j] !== $[L]; )
1717
+ `), j = v.length - 1, L = $.length - 1; j >= 1 && L >= 0 && v[j] !== $[L]; )
1720
1718
  L--;
1721
1719
  for (; j >= 1 && L >= 0; j--, L--)
1722
- if (m[j] !== $[L]) {
1720
+ if (v[j] !== $[L]) {
1723
1721
  if (j !== 1 || L !== 1)
1724
1722
  do
1725
- if (j--, L--, L < 0 || m[j] !== $[L]) {
1726
- var W = `
1727
- ` + m[j].replace(" at new ", " at ");
1728
- return t.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", t.displayName)), typeof t == "function" && _e.set(t, W), W;
1723
+ if (j--, L--, L < 0 || v[j] !== $[L]) {
1724
+ var B = `
1725
+ ` + v[j].replace(" at new ", " at ");
1726
+ return t.displayName && B.includes("<anonymous>") && (B = B.replace("<anonymous>", t.displayName)), typeof t == "function" && _e.set(t, B), B;
1729
1727
  }
1730
1728
  while (j >= 1 && L >= 0);
1731
1729
  break;
1732
1730
  }
1733
1731
  }
1734
1732
  } finally {
1735
- Re = !1, Ce.current = R, ht(), Error.prepareStackTrace = b;
1733
+ Re = !1, Ce.current = O, ht(), Error.prepareStackTrace = S;
1736
1734
  }
1737
1735
  var ie = t ? t.displayName || t.name : "", et = ie ? he(ie) : "";
1738
1736
  return typeof t == "function" && _e.set(t, et), et;
@@ -1752,51 +1750,51 @@ function wr() {
1752
1750
  if (typeof t == "string")
1753
1751
  return he(t);
1754
1752
  switch (t) {
1755
- case v:
1753
+ case p:
1756
1754
  return he("Suspense");
1757
- case E:
1755
+ case y:
1758
1756
  return he("SuspenseList");
1759
1757
  }
1760
1758
  if (typeof t == "object")
1761
1759
  switch (t.$$typeof) {
1762
- case g:
1760
+ case m:
1763
1761
  return gt(t.render);
1764
- case y:
1762
+ case b:
1765
1763
  return ge(t.type, a, l);
1766
1764
  case I: {
1767
- var h = t, b = h._payload, R = h._init;
1765
+ var h = t, S = h._payload, O = h._init;
1768
1766
  try {
1769
- return ge(R(b), a, l);
1770
- } catch (p) {
1767
+ return ge(O(S), a, l);
1768
+ } catch (E) {
1771
1769
  }
1772
1770
  }
1773
1771
  }
1774
1772
  return "";
1775
1773
  }
1776
- var me = Object.prototype.hasOwnProperty, Be = {}, We = U.ReactDebugCurrentFrame;
1774
+ var me = Object.prototype.hasOwnProperty, We = {}, Be = U.ReactDebugCurrentFrame;
1777
1775
  function ve(t) {
1778
1776
  if (t) {
1779
1777
  var a = t._owner, l = ge(t.type, t._source, a ? a.type : null);
1780
- We.setExtraStackFrame(l);
1778
+ Be.setExtraStackFrame(l);
1781
1779
  } else
1782
- We.setExtraStackFrame(null);
1780
+ Be.setExtraStackFrame(null);
1783
1781
  }
1784
- function vt(t, a, l, h, b) {
1782
+ function vt(t, a, l, h, S) {
1785
1783
  {
1786
- var R = Function.call.bind(me);
1787
- for (var p in t)
1788
- if (R(t, p)) {
1789
- var m = void 0;
1784
+ var O = Function.call.bind(me);
1785
+ for (var E in t)
1786
+ if (O(t, E)) {
1787
+ var v = void 0;
1790
1788
  try {
1791
- if (typeof t[p] != "function") {
1792
- var $ = Error((h || "React class") + ": " + l + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1789
+ if (typeof t[E] != "function") {
1790
+ var $ = Error((h || "React class") + ": " + l + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1793
1791
  throw $.name = "Invariant Violation", $;
1794
1792
  }
1795
- m = t[p](a, p, h, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1793
+ v = t[E](a, E, h, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1796
1794
  } catch (j) {
1797
- m = j;
1795
+ v = j;
1798
1796
  }
1799
- m && !(m instanceof Error) && (ve(b), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", l, p, typeof m), ve(null)), m instanceof Error && !(m.message in Be) && (Be[m.message] = !0, ve(b), P("Failed %s type: %s", l, m.message), ve(null));
1797
+ v && !(v instanceof Error) && (ve(S), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", l, E, typeof v), ve(null)), v instanceof Error && !(v.message in We) && (We[v.message] = !0, ve(S), P("Failed %s type: %s", l, v.message), ve(null));
1800
1798
  }
1801
1799
  }
1802
1800
  }
@@ -1829,7 +1827,7 @@ function wr() {
1829
1827
  ref: !0,
1830
1828
  __self: !0,
1831
1829
  __source: !0
1832
- }, Ge, Ye, Ie;
1830
+ }, Ge, He, Ie;
1833
1831
  Ie = {};
1834
1832
  function St(t) {
1835
1833
  if (me.call(t, "ref")) {
@@ -1867,7 +1865,7 @@ function wr() {
1867
1865
  function Ot(t, a) {
1868
1866
  {
1869
1867
  var l = function() {
1870
- Ye || (Ye = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
1868
+ He || (He = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
1871
1869
  };
1872
1870
  l.isReactWarning = !0, Object.defineProperty(t, "ref", {
1873
1871
  get: l,
@@ -1875,60 +1873,60 @@ function wr() {
1875
1873
  });
1876
1874
  }
1877
1875
  }
1878
- var It = function(t, a, l, h, b, R, p) {
1879
- var m = {
1876
+ var It = function(t, a, l, h, S, O, E) {
1877
+ var v = {
1880
1878
  // This tag allows us to uniquely identify this as a React Element
1881
1879
  $$typeof: s,
1882
1880
  // Built-in properties that belong on the element
1883
1881
  type: t,
1884
1882
  key: a,
1885
1883
  ref: l,
1886
- props: p,
1884
+ props: E,
1887
1885
  // Record the component responsible for creating this element.
1888
- _owner: R
1886
+ _owner: O
1889
1887
  };
1890
- return m._store = {}, Object.defineProperty(m._store, "validated", {
1888
+ return v._store = {}, Object.defineProperty(v._store, "validated", {
1891
1889
  configurable: !1,
1892
1890
  enumerable: !1,
1893
1891
  writable: !0,
1894
1892
  value: !1
1895
- }), Object.defineProperty(m, "_self", {
1893
+ }), Object.defineProperty(v, "_self", {
1896
1894
  configurable: !1,
1897
1895
  enumerable: !1,
1898
1896
  writable: !1,
1899
1897
  value: h
1900
- }), Object.defineProperty(m, "_source", {
1898
+ }), Object.defineProperty(v, "_source", {
1901
1899
  configurable: !1,
1902
1900
  enumerable: !1,
1903
1901
  writable: !1,
1904
- value: b
1905
- }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
1902
+ value: S
1903
+ }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
1906
1904
  };
1907
- function Tt(t, a, l, h, b) {
1905
+ function Tt(t, a, l, h, S) {
1908
1906
  {
1909
- var R, p = {}, m = null, $ = null;
1910
- l !== void 0 && (qe(l), m = "" + l), Ct(a) && (qe(a.key), m = "" + a.key), St(a) && ($ = a.ref, wt(a, b));
1911
- for (R in a)
1912
- me.call(a, R) && !bt.hasOwnProperty(R) && (p[R] = a[R]);
1907
+ var O, E = {}, v = null, $ = null;
1908
+ l !== void 0 && (qe(l), v = "" + l), Ct(a) && (qe(a.key), v = "" + a.key), St(a) && ($ = a.ref, wt(a, S));
1909
+ for (O in a)
1910
+ me.call(a, O) && !bt.hasOwnProperty(O) && (E[O] = a[O]);
1913
1911
  if (t && t.defaultProps) {
1914
1912
  var j = t.defaultProps;
1915
- for (R in j)
1916
- p[R] === void 0 && (p[R] = j[R]);
1913
+ for (O in j)
1914
+ E[O] === void 0 && (E[O] = j[O]);
1917
1915
  }
1918
- if (m || $) {
1916
+ if (v || $) {
1919
1917
  var L = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
1920
- m && Rt(p, L), $ && Ot(p, L);
1918
+ v && Rt(E, L), $ && Ot(E, L);
1921
1919
  }
1922
- return It(t, m, $, b, h, se.current, p);
1920
+ return It(t, v, $, S, h, se.current, E);
1923
1921
  }
1924
1922
  }
1925
- var Te = U.ReactCurrentOwner, He = U.ReactDebugCurrentFrame;
1923
+ var Te = U.ReactCurrentOwner, Ye = U.ReactDebugCurrentFrame;
1926
1924
  function re(t) {
1927
1925
  if (t) {
1928
1926
  var a = t._owner, l = ge(t.type, t._source, a ? a.type : null);
1929
- He.setExtraStackFrame(l);
1927
+ Ye.setExtraStackFrame(l);
1930
1928
  } else
1931
- He.setExtraStackFrame(null);
1929
+ Ye.setExtraStackFrame(null);
1932
1930
  }
1933
1931
  var ke;
1934
1932
  ke = !1;
@@ -1996,10 +1994,10 @@ Check the top-level render call using <` + l + ">.");
1996
1994
  else if (Pe(t))
1997
1995
  t._store && (t._store.validated = !0);
1998
1996
  else if (t) {
1999
- var b = k(t);
2000
- if (typeof b == "function" && b !== t.entries)
2001
- for (var R = b.call(t), p; !(p = R.next()).done; )
2002
- Pe(p.value) && Xe(p.value, a);
1997
+ var S = k(t);
1998
+ if (typeof S == "function" && S !== t.entries)
1999
+ for (var O = S.call(t), E; !(E = O.next()).done; )
2000
+ Pe(E.value) && Xe(E.value, a);
2003
2001
  }
2004
2002
  }
2005
2003
  }
@@ -2011,9 +2009,9 @@ Check the top-level render call using <` + l + ">.");
2011
2009
  var l;
2012
2010
  if (typeof a == "function")
2013
2011
  l = a.propTypes;
2014
- else if (typeof a == "object" && (a.$$typeof === g || // Note: Memo only checks outer props here.
2012
+ else if (typeof a == "object" && (a.$$typeof === m || // Note: Memo only checks outer props here.
2015
2013
  // Inner props are checked in the reconciler.
2016
- a.$$typeof === y))
2014
+ a.$$typeof === b))
2017
2015
  l = a.propTypes;
2018
2016
  else
2019
2017
  return;
@@ -2022,8 +2020,8 @@ Check the top-level render call using <` + l + ">.");
2022
2020
  vt(l, t.props, "prop", h, t);
2023
2021
  } else if (a.PropTypes !== void 0 && !ke) {
2024
2022
  ke = !0;
2025
- var b = G(a);
2026
- P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
2023
+ var S = G(a);
2024
+ P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
2027
2025
  }
2028
2026
  typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2029
2027
  }
@@ -2040,32 +2038,32 @@ Check the top-level render call using <` + l + ">.");
2040
2038
  t.ref !== null && (re(t), P("Invalid attribute `ref` supplied to `React.Fragment`."), re(null));
2041
2039
  }
2042
2040
  }
2043
- function Qe(t, a, l, h, b, R) {
2041
+ function Qe(t, a, l, h, S, O) {
2044
2042
  {
2045
- var p = F(t);
2046
- if (!p) {
2047
- var m = "";
2048
- (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2049
- var $ = kt(b);
2050
- $ ? m += $ : m += Je();
2043
+ var E = F(t);
2044
+ if (!E) {
2045
+ var v = "";
2046
+ (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2047
+ var $ = kt(S);
2048
+ $ ? v += $ : v += Je();
2051
2049
  var j;
2052
- t === null ? j = "null" : Oe(t) ? j = "array" : t !== void 0 && t.$$typeof === s ? (j = "<" + (G(t.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : j = typeof t, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, m);
2050
+ t === null ? j = "null" : Oe(t) ? j = "array" : t !== void 0 && t.$$typeof === s ? (j = "<" + (G(t.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : j = typeof t, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, v);
2053
2051
  }
2054
- var L = Tt(t, a, l, b, R);
2052
+ var L = Tt(t, a, l, S, O);
2055
2053
  if (L == null)
2056
2054
  return L;
2057
- if (p) {
2058
- var W = a.children;
2059
- if (W !== void 0)
2055
+ if (E) {
2056
+ var B = a.children;
2057
+ if (B !== void 0)
2060
2058
  if (h)
2061
- if (Oe(W)) {
2062
- for (var ie = 0; ie < W.length; ie++)
2063
- Ze(W[ie], t);
2064
- Object.freeze && Object.freeze(W);
2059
+ if (Oe(B)) {
2060
+ for (var ie = 0; ie < B.length; ie++)
2061
+ Ze(B[ie], t);
2062
+ Object.freeze && Object.freeze(B);
2065
2063
  } else
2066
2064
  P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2067
2065
  else
2068
- Ze(W, t);
2066
+ Ze(B, t);
2069
2067
  }
2070
2068
  return t === i ? jt(L) : Nt(L), L;
2071
2069
  }
@@ -2090,51 +2088,51 @@ function jr(r) {
2090
2088
  if (!f)
2091
2089
  throw new Error("LiveProvider never found.");
2092
2090
  return f;
2093
- }, u = () => e, d = () => e.$RTC, g = () => d(), v = () => async (f) => await e.connect(f);
2094
- function E(f, w, A = []) {
2095
- const S = c(), N = [S, name, ...A], M = () => S.keyframes.off(f, w);
2096
- return D.useEffect(() => (S.keyframes.on(f, w), M), N), M;
2091
+ }, u = () => e, d = () => e.$RTC, m = () => d(), p = () => async (f) => await e.connect(f);
2092
+ function y(f, R, A = []) {
2093
+ const C = c(), N = [C, name, ...A], M = () => C.keyframes.off(f, R);
2094
+ return D.useEffect(() => (C.keyframes.on(f, R), M), N), M;
2097
2095
  }
2098
- function y() {
2096
+ function b() {
2099
2097
  const f = c();
2100
2098
  return {
2101
2099
  connect: async (T) => await f.connect(T),
2102
- broadcast: async (T, B, te = 0) => await f.broadcast(T, B, te),
2100
+ broadcast: async (T, W, te = 0) => await f.broadcast(T, W, te),
2103
2101
  exit: async () => await f.exit(),
2104
2102
  kick: async (T) => await f.kick(T),
2105
2103
  toggleMicro: (T) => f.toggleMicro(T),
2106
- forbidMicro: async (T, B = []) => await f.forbidMicro(T, B),
2107
- forbidSync: (T, B = []) => f.forbidSync(T, B),
2108
- sendKeyframe: (T, B) => f.sendKeyframe(T, B),
2104
+ forbidMicro: async (T, W = []) => await f.forbidMicro(T, W),
2105
+ forbidSync: (T, W = []) => f.forbidSync(T, W),
2106
+ sendKeyframe: (T, W) => f.sendKeyframe(T, W),
2109
2107
  getFramesByKey: (T) => f.getFramesByKey(T),
2110
2108
  setSelfInfo: (T) => f.setSelfInfo(T),
2111
- updateStatus: (T, B, te, de) => f.updateStatus(T, B, te, de)
2109
+ updateStatus: (T, W, te, de) => f.updateStatus(T, W, te, de)
2112
2110
  };
2113
2111
  }
2114
2112
  function I(f) {
2115
- const w = c(), [A, S] = D.useState(w.getFramesByKey(f));
2113
+ const R = c(), [A, C] = D.useState(R.getFramesByKey(f));
2116
2114
  D.useEffect(() => {
2117
- const M = (ne) => S(ne), F = f, J = M;
2118
- return w.keyframes.on(F, J), () => w.keyframes.off(F, J);
2119
- }, [w]);
2115
+ const M = (ne) => C(ne), F = f, J = M;
2116
+ return R.keyframes.on(F, J), () => R.keyframes.off(F, J);
2117
+ }, [R]);
2120
2118
  const N = D.useCallback(
2121
- (M) => w.sendKeyframe(f, M),
2122
- [w]
2119
+ (M) => R.sendKeyframe(f, M),
2120
+ [R]
2123
2121
  );
2124
2122
  return [A, N];
2125
2123
  }
2126
- function _(f, w, A = []) {
2127
- const S = c(), N = () => S.off(f, w), M = [S, f, ...A];
2128
- return D.useEffect(() => (S.on(f, w), N), M), N;
2124
+ function g(f, R, A = []) {
2125
+ const C = c(), N = () => C.off(f, R), M = [C, f, ...A];
2126
+ return D.useEffect(() => (C.on(f, R), N), M), N;
2129
2127
  }
2130
2128
  function V() {
2131
- const f = c(), [w, A] = D.useState(f.state);
2129
+ const f = c(), [R, A] = D.useState(f.state);
2132
2130
  return D.useEffect(() => {
2133
- const S = (N) => A(N);
2134
- return f.on("stateChange", S), () => f.off("stateChange", S);
2135
- }, [f]), w;
2131
+ const C = (N) => A(N);
2132
+ return f.on("stateChange", C), () => f.off("stateChange", C);
2133
+ }, [f]), R;
2136
2134
  }
2137
- function C() {
2135
+ function w() {
2138
2136
  const f = c();
2139
2137
  return {
2140
2138
  join: (F) => f.$RTC.join(F),
@@ -2147,47 +2145,47 @@ function jr(r) {
2147
2145
  detectMicro: () => f.$RTC.detectMicro()
2148
2146
  };
2149
2147
  }
2150
- function k(f, w, A = []) {
2151
- const S = c(), N = () => S.$RTC.off(f, w), M = [S, f, ...A];
2152
- return D.useEffect(() => (S.$RTC.on(f, w), N), M), N;
2148
+ function k(f, R, A = []) {
2149
+ const C = c(), N = () => C.$RTC.off(f, R), M = [C, f, ...A];
2150
+ return D.useEffect(() => (C.$RTC.on(f, R), N), M), N;
2153
2151
  }
2154
2152
  function U() {
2155
- const f = c(), [w, A] = D.useState(
2153
+ const f = c(), [R, A] = D.useState(
2156
2154
  f.selfInfo || {}
2157
- ), S = (M) => A(M);
2158
- D.useEffect(() => (f.on("selfInfoUpdate", S), () => f.off("selfInfoUpdate", S)), [f]);
2155
+ ), C = (M) => A(M);
2156
+ D.useEffect(() => (f.on("selfInfoUpdate", C), () => f.off("selfInfoUpdate", C)), [f]);
2159
2157
  const N = D.useCallback(
2160
2158
  async (M) => await f.setSelfInfo(M),
2161
2159
  [f]
2162
2160
  );
2163
- return [w, N];
2161
+ return [R, N];
2164
2162
  }
2165
2163
  function P() {
2166
- const f = c(), [w, A] = D.useState(
2164
+ const f = c(), [R, A] = D.useState(
2167
2165
  f.snapshot
2168
2166
  );
2169
2167
  return D.useEffect(() => {
2170
- const S = (N) => A(N);
2171
- return f.on("keyframes", S), () => f.off("keyframes", S);
2172
- }), w;
2168
+ const C = (N) => A(N);
2169
+ return f.on("keyframes", C), () => f.off("keyframes", C);
2170
+ }), R;
2173
2171
  }
2174
2172
  function fe() {
2175
- const f = c(), [w, A] = D.useState(f.userList), S = (N) => A(N);
2176
- return D.useEffect(() => (f.on("userListUpdate", S), () => f.off("userListUpdate", S)), [f]), w;
2173
+ const f = c(), [R, A] = D.useState(f.userList), C = (N) => A(N);
2174
+ return D.useEffect(() => (f.on("userListUpdate", C), () => f.off("userListUpdate", C)), [f]), R;
2177
2175
  }
2178
2176
  return {
2179
2177
  live: e,
2180
2178
  jsBridge: i,
2181
2179
  LiveProvider: n,
2182
2180
  unsafe__useLiveInstance: u,
2183
- unsafe__useRTCInstance: g,
2184
- useConnect: v,
2181
+ unsafe__useRTCInstance: m,
2182
+ useConnect: p,
2185
2183
  useKeyframe: I,
2186
- useKeyframeUpdateCallback: E,
2187
- useLiveAction: y,
2188
- useLiveEventCallback: _,
2184
+ useKeyframeUpdateCallback: y,
2185
+ useLiveAction: b,
2186
+ useLiveEventCallback: g,
2189
2187
  useLiveState: V,
2190
- useRTCAction: C,
2188
+ useRTCAction: w,
2191
2189
  useRTCEventCallback: k,
2192
2190
  useSelfInfo: U,
2193
2191
  useKeyframesSnapshot: P,
@@ -2198,7 +2196,7 @@ export {
2198
2196
  rt as BrowserRTC,
2199
2197
  it as BrowserRTC4Chime,
2200
2198
  ut as BuiltInRTCType,
2201
- H as BuiltinActionType,
2199
+ Y as BuiltinActionType,
2202
2200
  q as BuiltinEventType,
2203
2201
  K as Command,
2204
2202
  Me as CoreRTC,