@ethora/chat-component 24.11.23 → 24.11.24

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/main.js CHANGED
@@ -150,10 +150,10 @@ function Oh() {
150
150
  null
151
151
  ), process.env.NODE_ENV !== "production" && (e.displayName = "ReactRedux"), t.set(Ce.createContext, e)), e;
152
152
  }
153
- var wt = /* @__PURE__ */ Oh(), Nh = () => {
153
+ var yt = /* @__PURE__ */ Oh(), Nh = () => {
154
154
  throw new Error("uSES not initialized!");
155
155
  };
156
- function mi(t = wt) {
156
+ function mi(t = yt) {
157
157
  return function() {
158
158
  const n = Ce.useContext(t);
159
159
  if (process.env.NODE_ENV !== "production" && !n)
@@ -166,8 +166,8 @@ function mi(t = wt) {
166
166
  var Dc = /* @__PURE__ */ mi(), Sc = Nh, Dh = (t) => {
167
167
  Sc = t;
168
168
  }, Sh = (t, e) => t === e;
169
- function Ih(t = wt) {
170
- const e = t === wt ? Dc : mi(t), n = (r, s = {}) => {
169
+ function Ih(t = yt) {
170
+ const e = t === yt ? Dc : mi(t), n = (r, s = {}) => {
171
171
  const { equalityFn: o = Sh, devModeChecks: i = {} } = typeof s == "function" ? { equalityFn: s } : s;
172
172
  if (process.env.NODE_ENV !== "production") {
173
173
  if (!r)
@@ -360,12 +360,12 @@ function Mh({
360
360
  c.tryUnsubscribe(), c.onStateChange = void 0;
361
361
  };
362
362
  }, [i, a]);
363
- const A = e || wt;
363
+ const A = e || yt;
364
364
  return /* @__PURE__ */ Ce.createElement(A.Provider, { value: i }, n);
365
365
  }
366
366
  var jh = Mh;
367
- function Ic(t = wt) {
368
- const e = t === wt ? Dc : (
367
+ function Ic(t = yt) {
368
+ const e = t === yt ? Dc : (
369
369
  // @ts-ignore
370
370
  mi(t)
371
371
  ), n = () => {
@@ -377,8 +377,8 @@ function Ic(t = wt) {
377
377
  }), n;
378
378
  }
379
379
  var Hh = /* @__PURE__ */ Ic();
380
- function Fh(t = wt) {
381
- const e = t === wt ? Hh : Ic(t), n = () => e().dispatch;
380
+ function Fh(t = yt) {
381
+ const e = t === yt ? Hh : Ic(t), n = () => e().dispatch;
382
382
  return Object.assign(n, {
383
383
  withTypes: () => n
384
384
  }), n;
@@ -392,7 +392,7 @@ var zh = typeof Symbol == "function" && Symbol.observable || "@@observable", gA
392
392
  INIT: `@@redux/INIT${/* @__PURE__ */ Ys()}`,
393
393
  REPLACE: `@@redux/REPLACE${/* @__PURE__ */ Ys()}`,
394
394
  PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${Ys()}`
395
- }, Tt = Wh;
395
+ }, Mt = Wh;
396
396
  function _n(t) {
397
397
  if (typeof t != "object" || t === null)
398
398
  return !1;
@@ -505,7 +505,7 @@ function Bc(t, e, n) {
505
505
  if (typeof b != "function")
506
506
  throw new Error(process.env.NODE_ENV === "production" ? ae(10) : `Expected the nextReducer to be a function. Instead, received: '${ct(b)}`);
507
507
  r = b, h({
508
- type: Tt.REPLACE
508
+ type: Mt.REPLACE
509
509
  });
510
510
  }
511
511
  function p() {
@@ -536,7 +536,7 @@ function Bc(t, e, n) {
536
536
  };
537
537
  }
538
538
  return h({
539
- type: Tt.INIT
539
+ type: Mt.INIT
540
540
  }), {
541
541
  dispatch: h,
542
542
  subscribe: u,
@@ -553,7 +553,7 @@ function mA(t) {
553
553
  }
554
554
  }
555
555
  function Yh(t, e, n, r) {
556
- const s = Object.keys(e), o = n && n.type === Tt.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
556
+ const s = Object.keys(e), o = n && n.type === Mt.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
557
557
  if (s.length === 0)
558
558
  return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
559
559
  if (!_n(t))
@@ -561,20 +561,20 @@ function Yh(t, e, n, r) {
561
561
  const i = Object.keys(t).filter((a) => !e.hasOwnProperty(a) && !r[a]);
562
562
  if (i.forEach((a) => {
563
563
  r[a] = !0;
564
- }), !(n && n.type === Tt.REPLACE) && i.length > 0)
564
+ }), !(n && n.type === Mt.REPLACE) && i.length > 0)
565
565
  return `Unexpected ${i.length > 1 ? "keys" : "key"} "${i.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${s.join('", "')}". Unexpected keys will be ignored.`;
566
566
  }
567
567
  function Uh(t) {
568
568
  Object.keys(t).forEach((e) => {
569
569
  const n = t[e];
570
570
  if (typeof n(void 0, {
571
- type: Tt.INIT
571
+ type: Mt.INIT
572
572
  }) > "u")
573
573
  throw new Error(process.env.NODE_ENV === "production" ? ae(12) : `The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
574
574
  if (typeof n(void 0, {
575
- type: Tt.PROBE_UNKNOWN_ACTION()
575
+ type: Mt.PROBE_UNKNOWN_ACTION()
576
576
  }) > "u")
577
- throw new Error(process.env.NODE_ENV === "production" ? ae(13) : `The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Tt.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
577
+ throw new Error(process.env.NODE_ENV === "production" ? ae(13) : `The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${Mt.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
578
578
  });
579
579
  }
580
580
  function kc(t) {
@@ -675,7 +675,7 @@ function we(t, ...e) {
675
675
  );
676
676
  }
677
677
  var an = Object.getPrototypeOf;
678
- function yt(t) {
678
+ function bt(t) {
679
679
  return !!t && !!t[xe];
680
680
  }
681
681
  function $e(t) {
@@ -717,7 +717,7 @@ function as(t) {
717
717
  function cs(t) {
718
718
  return t instanceof Set;
719
719
  }
720
- function It(t) {
720
+ function Bt(t) {
721
721
  return t.copy_ || t.base_;
722
722
  }
723
723
  function No(t, e) {
@@ -752,7 +752,7 @@ function No(t, e) {
752
752
  }
753
753
  }
754
754
  function wi(t, e = !1) {
755
- return ls(t) || yt(t) || !$e(t) || (As(t) > 1 && (t.set = t.add = t.clear = t.delete = _h), Object.freeze(t), e && Object.entries(t).forEach(([n, r]) => wi(r, !0))), t;
755
+ return ls(t) || bt(t) || !$e(t) || (As(t) > 1 && (t.set = t.add = t.clear = t.delete = _h), Object.freeze(t), e && Object.entries(t).forEach(([n, r]) => wi(r, !0))), t;
756
756
  }
757
757
  function _h() {
758
758
  we(2);
@@ -836,10 +836,10 @@ function Vr(t, e, n) {
836
836
  return r.copy_;
837
837
  }
838
838
  function CA(t, e, n, r, s, o, i) {
839
- if (process.env.NODE_ENV !== "production" && s === n && we(5), yt(s)) {
839
+ if (process.env.NODE_ENV !== "production" && s === n && we(5), bt(s)) {
840
840
  const a = o && e && e.type_ !== 3 && // Set objects are atomic since they have no keys.
841
841
  !Oo(e.assigned_, r) ? o.concat(r) : void 0, A = Vr(t, s, a);
842
- if (Tc(n, r, A), yt(A))
842
+ if (Tc(n, r, A), bt(A))
843
843
  t.canAutoFreeze_ = !1;
844
844
  else
845
845
  return;
@@ -886,24 +886,24 @@ var yi = {
886
886
  get(t, e) {
887
887
  if (e === xe)
888
888
  return t;
889
- const n = It(t);
889
+ const n = Bt(t);
890
890
  if (!Oo(n, e))
891
891
  return rf(t, n, e);
892
892
  const r = n[e];
893
893
  return t.finalized_ || !$e(r) ? r : r === Us(t.base_, e) ? (Gs(t), t.copy_[e] = Bo(r, t)) : r;
894
894
  },
895
895
  has(t, e) {
896
- return e in It(t);
896
+ return e in Bt(t);
897
897
  },
898
898
  ownKeys(t) {
899
- return Reflect.ownKeys(It(t));
899
+ return Reflect.ownKeys(Bt(t));
900
900
  },
901
901
  set(t, e, n) {
902
- const r = jc(It(t), e);
902
+ const r = jc(Bt(t), e);
903
903
  if (r != null && r.set)
904
904
  return r.set.call(t.draft_, n), !0;
905
905
  if (!t.modified_) {
906
- const s = Us(It(t), e), o = s == null ? void 0 : s[xe];
906
+ const s = Us(Bt(t), e), o = s == null ? void 0 : s[xe];
907
907
  if (o && o.base_ === n)
908
908
  return t.copy_[e] = n, t.assigned_[e] = !1, !0;
909
909
  if (Jh(n, s) && (n !== void 0 || Oo(t.base_, e)))
@@ -920,7 +920,7 @@ var yi = {
920
920
  // Note: We never coerce `desc.value` into an Immer draft, because we can't make
921
921
  // the same guarantee in ES5 mode.
922
922
  getOwnPropertyDescriptor(t, e) {
923
- const n = It(t), r = Reflect.getOwnPropertyDescriptor(n, e);
923
+ const n = Bt(t), r = Reflect.getOwnPropertyDescriptor(n, e);
924
924
  return r && {
925
925
  writable: !0,
926
926
  configurable: t.type_ !== 1 || e !== "length",
@@ -951,7 +951,7 @@ Vn.set = function(t, e, n) {
951
951
  };
952
952
  function Us(t, e) {
953
953
  const n = t[xe];
954
- return (n ? It(n) : t)[e];
954
+ return (n ? Bt(n) : t)[e];
955
955
  }
956
956
  function rf(t, e, n) {
957
957
  var s;
@@ -1022,7 +1022,7 @@ var sf = class {
1022
1022
  }, typeof (t == null ? void 0 : t.autoFreeze) == "boolean" && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(t.useStrictShallowCopy);
1023
1023
  }
1024
1024
  createDraft(t) {
1025
- $e(t) || we(8), yt(t) && (t = Hc(t));
1025
+ $e(t) || we(8), bt(t) && (t = Hc(t));
1026
1026
  const e = bA(this), n = Bo(t, void 0);
1027
1027
  return n[xe].isManual_ = !0, So(e), n;
1028
1028
  }
@@ -1059,7 +1059,7 @@ var sf = class {
1059
1059
  }
1060
1060
  n > -1 && (e = e.slice(n + 1));
1061
1061
  const r = Wt("Patches").applyPatches_;
1062
- return yt(t) ? r(t, e) : this.produce(
1062
+ return bt(t) ? r(t, e) : this.produce(
1063
1063
  t,
1064
1064
  (s) => r(s, e)
1065
1065
  );
@@ -1070,7 +1070,7 @@ function Bo(t, e) {
1070
1070
  return (e ? e.scope_ : Mc()).drafts_.push(n), n;
1071
1071
  }
1072
1072
  function Hc(t) {
1073
- return yt(t) || we(10, t), Fc(t);
1073
+ return bt(t) || we(10, t), Fc(t);
1074
1074
  }
1075
1075
  function Fc(t) {
1076
1076
  if (!$e(t) || ls(t))
@@ -1340,7 +1340,7 @@ function Vc(t) {
1340
1340
  }
1341
1341
  var yf = Vc(), bf = Vc, vf = (...t) => {
1342
1342
  const e = Wc(...t), n = Object.assign((...r) => {
1343
- const s = e(...r), o = (i, ...a) => s(yt(i) ? Hc(i) : i, ...a);
1343
+ const s = e(...r), o = (i, ...a) => s(bt(i) ? Hc(i) : i, ...a);
1344
1344
  return Object.assign(o, s), o;
1345
1345
  }, {
1346
1346
  withTypes: () => n
@@ -1779,7 +1779,7 @@ function Hf(t, e) {
1779
1779
  }) => l)];
1780
1780
  return c.filter((l) => !!l).length === 0 && (c = [s]), c.reduce((l, u) => {
1781
1781
  if (u)
1782
- if (yt(l)) {
1782
+ if (bt(l)) {
1783
1783
  const f = u(l, A);
1784
1784
  return f === void 0 ? l : f;
1785
1785
  } else {
@@ -2107,8 +2107,8 @@ var ap = function(e) {
2107
2107
  return typeof e == "function";
2108
2108
  }, cp = function(e) {
2109
2109
  return typeof e == "string";
2110
- }, vt = Array.isArray, tl = function(e) {
2111
- return e && !vt(e) && typeof e == "object";
2110
+ }, Ct = Array.isArray, tl = function(e) {
2111
+ return e && !Ct(e) && typeof e == "object";
2112
2112
  }, us = function(e) {
2113
2113
  return e && te(e.then);
2114
2114
  }, ds = function(e) {
@@ -2222,7 +2222,7 @@ function Al(t, e) {
2222
2222
  process.env.NODE_ENV !== "production" && ce(r, function(c) {
2223
2223
  return c > 0;
2224
2224
  }, "createAllStyleChildCallbacks: get an empty array or object");
2225
- var s = 0, o, i = vt(t) ? rl(r) : {}, a = {};
2225
+ var s = 0, o, i = Ct(t) ? rl(r) : {}, a = {};
2226
2226
  function A() {
2227
2227
  s === r && (o = !0, e(i));
2228
2228
  }
@@ -2357,7 +2357,7 @@ var Zp = function(e) {
2357
2357
  return pp;
2358
2358
  };
2359
2359
  function Oi(t) {
2360
- var e = t === "*" ? pl : cp(t) ? BA : vt(t) ? Zp : dp(t) ? BA : te(t) ? Kp : hp(t) ? Jp : null;
2360
+ var e = t === "*" ? pl : cp(t) ? BA : Ct(t) ? Zp : dp(t) ? BA : te(t) ? Kp : hp(t) ? Jp : null;
2361
2361
  if (e === null)
2362
2362
  throw new Error("invalid pattern: " + t);
2363
2363
  return e(t);
@@ -2466,7 +2466,7 @@ function wl() {
2466
2466
  });
2467
2467
  }, t;
2468
2468
  }
2469
- var kt = 0, Ue = 1, Dr = 2, yl = 3;
2469
+ var Pt = 0, Ue = 1, Dr = 2, yl = 3;
2470
2470
  function Di(t, e) {
2471
2471
  var n = t[tp];
2472
2472
  te(n) && (e.cancel = n), t.then(e, function(r) {
@@ -2597,7 +2597,7 @@ function a1(t, e, n, r) {
2597
2597
  } else
2598
2598
  A.isAborted() ? c(A.error(), !0) : c(A.result());
2599
2599
  };
2600
- if (vt(e)) {
2600
+ if (Ct(e)) {
2601
2601
  if (e.length === 0) {
2602
2602
  n([]);
2603
2603
  return;
@@ -2614,12 +2614,12 @@ function Zs(t) {
2614
2614
  }
2615
2615
  function c1(t, e, n, r) {
2616
2616
  var s = r.task;
2617
- e === sp ? Zs(s) : vt(e) ? e.forEach(Zs) : Zs(e), n();
2617
+ e === sp ? Zs(s) : Ct(e) ? e.forEach(Zs) : Zs(e), n();
2618
2618
  }
2619
2619
  function l1(t, e, n, r) {
2620
2620
  var s = r.digestEffect, o = $n, i = Object.keys(e);
2621
2621
  if (i.length === 0) {
2622
- n(vt(e) ? [] : {});
2622
+ n(Ct(e) ? [] : {});
2623
2623
  return;
2624
2624
  }
2625
2625
  var a = Al(e, n);
@@ -2628,7 +2628,7 @@ function l1(t, e, n, r) {
2628
2628
  });
2629
2629
  }
2630
2630
  function u1(t, e, n, r) {
2631
- var s = r.digestEffect, o = $n, i = Object.keys(e), a = vt(e) ? rl(i.length) : {}, A = {}, c = !1;
2631
+ var s = r.digestEffect, o = $n, i = Object.keys(e), a = Ct(e) ? rl(i.length) : {}, A = {}, c = !1;
2632
2632
  i.forEach(function(l) {
2633
2633
  var u = function(f, p) {
2634
2634
  c || (p || il(f) ? (n.cancel(), n(f, p)) : (n.cancel(), c = !0, a[l] = f, n(a)));
@@ -2740,13 +2740,13 @@ var Si = null, Mn = [], C1 = function(e) {
2740
2740
  function O1(t, e, n, r, s, o, i) {
2741
2741
  var a;
2742
2742
  i === void 0 && (i = le);
2743
- var A = kt, c, l, u = null, h = [], f = Object.create(n), p = y1(e, function() {
2743
+ var A = Pt, c, l, u = null, h = [], f = Object.create(n), p = y1(e, function() {
2744
2744
  h.push.apply(h, p.getTasks().map(function(D) {
2745
2745
  return D.meta.name;
2746
2746
  }));
2747
2747
  }, b);
2748
2748
  function w() {
2749
- A === kt && (A = Ue, p.cancelAll(), b($t, !1));
2749
+ A === Pt && (A = Ue, p.cancelAll(), b($t, !1));
2750
2750
  }
2751
2751
  function b(C, D) {
2752
2752
  if (!D)
@@ -2771,12 +2771,12 @@ function O1(t, e, n, r, s, o, i) {
2771
2771
  process.env.NODE_ENV !== "production" && ce(C, tl, nl("task", C)), Ci(f, C);
2772
2772
  }
2773
2773
  function x() {
2774
- return u || (u = Up(), A === Dr ? u.reject(l) : A !== kt && u.resolve(c)), u.promise;
2774
+ return u || (u = Up(), A === Dr ? u.reject(l) : A !== Pt && u.resolve(c)), u.promise;
2775
2775
  }
2776
2776
  var g = (a = {}, a[op] = !0, a.id = r, a.meta = s, a.isRoot = o, a.context = f, a.joiners = [], a.queue = p, a.cancel = w, a.cont = i, a.end = b, a.setContext = v, a.toPromise = x, a.isRunning = function() {
2777
- return A === kt;
2777
+ return A === Pt;
2778
2778
  }, a.isCancelled = function() {
2779
- return A === Ue || A === kt && e.status === Ue;
2779
+ return A === Ue || A === Pt && e.status === Ue;
2780
2780
  }, a.isAborted = function() {
2781
2781
  return A === Dr;
2782
2782
  }, a.result = function() {
@@ -2794,13 +2794,13 @@ function ps(t, e, n, r, s, o, i) {
2794
2794
  var A = {
2795
2795
  meta: s,
2796
2796
  cancel: u,
2797
- status: kt
2797
+ status: Pt
2798
2798
  }, c = O1(t, A, n, r, s, o, i), l = {
2799
2799
  task: c,
2800
2800
  digestEffect: p
2801
2801
  };
2802
2802
  function u() {
2803
- A.status === kt && (A.status = Ue, h($t));
2803
+ A.status === Pt && (A.status = Ue, h($t));
2804
2804
  }
2805
2805
  return i && (i.cancel = c.cancel), h(), c;
2806
2806
  function h(w, b) {
@@ -2872,7 +2872,7 @@ function D1(t, e) {
2872
2872
  })), process.env.NODE_ENV !== "production") {
2873
2873
  if (en(s) && ce(s, te, "dispatch must be a function"), en(o) && ce(o, te, "getState must be a function"), en(c)) {
2874
2874
  var v = "effectMiddlewares must be an array of functions";
2875
- ce(c, vt, v), c.forEach(function(D) {
2875
+ ce(c, Ct, v), c.forEach(function(D) {
2876
2876
  return ce(D, te, v);
2877
2877
  });
2878
2878
  }
@@ -3061,7 +3061,7 @@ const Ks = (t) => {
3061
3061
  }
3062
3062
  }
3063
3063
  }), {
3064
- setUser: Mt,
3064
+ setUser: ft,
3065
3065
  setConfig: B1,
3066
3066
  refreshTokens: k1,
3067
3067
  logout: xl,
@@ -3189,7 +3189,7 @@ const T1 = {
3189
3189
  addRoomMessage: Dl,
3190
3190
  deleteRoomMessage: P5,
3191
3191
  setComposing: H1,
3192
- setIsLoading: ft,
3192
+ setIsLoading: pt,
3193
3193
  setLastViewedTimestamp: F1,
3194
3194
  setRoomNoMessages: L5,
3195
3195
  setCurrentRoom: Qt,
@@ -3589,8 +3589,8 @@ nt.exports.detectEscape = ki.detect;
3589
3589
  nt.exports.escapeLocal = ki.escape;
3590
3590
  nt.exports.unescapeLocal = ki.unescape;
3591
3591
  nt.exports.parse = Wl;
3592
- var bs = nt.exports, Ql = { exports: {} }, Ct = {};
3593
- Object.defineProperty(Ct, "__esModule", { value: !0 });
3592
+ var bs = nt.exports, Ql = { exports: {} }, Et = {};
3593
+ Object.defineProperty(Et, "__esModule", { value: !0 });
3594
3594
  const dg = {
3595
3595
  "&": "&",
3596
3596
  "<": "&lt;",
@@ -3634,11 +3634,11 @@ function pg(t) {
3634
3634
  function gg(t) {
3635
3635
  return t.replace(/&(amp|#38|lt|#60|gt|#62);/g, Xl);
3636
3636
  }
3637
- Ct.escapeXML = hg;
3638
- Ct.escapeXMLText = pg;
3639
- Ct.unescapeXML = fg;
3640
- Ct.unescapeXMLText = gg;
3641
- var $s = Ct;
3637
+ Et.escapeXML = hg;
3638
+ Et.escapeXMLText = pg;
3639
+ Et.unescapeXML = fg;
3640
+ Et.unescapeXMLText = gg;
3641
+ var $s = Et;
3642
3642
  let Lo = class Ro {
3643
3643
  constructor(e, n) {
3644
3644
  this.name = e, this.parent = null, this.children = [], this.attrs = {}, this.setAttrs(n);
@@ -3847,12 +3847,12 @@ function wg(t, e, ...n) {
3847
3847
  Yl(r, s);
3848
3848
  return r;
3849
3849
  }
3850
- var yg = wg, bg = ys, jA = Ct;
3851
- const Dt = 0, eo = 1, HA = 2, FA = 3, to = 4, zA = 5, WA = 6, VA = 7, no = 8, QA = 9, vg = 10;
3850
+ var yg = wg, bg = ys, jA = Et;
3851
+ const St = 0, eo = 1, HA = 2, FA = 3, to = 4, zA = 5, WA = 6, VA = 7, no = 8, QA = 9, vg = 10;
3852
3852
  class Cg extends bg.EventEmitter {
3853
3853
  constructor() {
3854
3854
  super();
3855
- let e = Dt, n, r, s, o, i, a, A, c, l = 0, u;
3855
+ let e = St, n, r, s, o, i, a, A, c, l = 0, u;
3856
3856
  this._handleTagOpening = function(f, p, w) {
3857
3857
  f ? this.emit("endElement", p) : (this.emit("startElement", p, w), a && this.emit("endElement", p));
3858
3858
  }, this.write = function(f) {
@@ -3867,7 +3867,7 @@ class Cg extends bg.EventEmitter {
3867
3867
  }
3868
3868
  for (; p < f.length; p++) {
3869
3869
  switch (e) {
3870
- case Dt: {
3870
+ case St: {
3871
3871
  const v = f.indexOf("<", p);
3872
3872
  v !== -1 && p !== v && (p = v);
3873
3873
  break;
@@ -3890,7 +3890,7 @@ class Cg extends bg.EventEmitter {
3890
3890
  }
3891
3891
  const b = f.charCodeAt(p);
3892
3892
  switch (e) {
3893
- case Dt:
3893
+ case St:
3894
3894
  if (b === 60) {
3895
3895
  const v = w();
3896
3896
  v && this.emit("text", jA.unescapeXML(v)), e = FA, l = p + 1, o = {};
@@ -3900,7 +3900,7 @@ class Cg extends bg.EventEmitter {
3900
3900
  if (b === 93)
3901
3901
  if (f.substr(p + 1, 2) === "]>") {
3902
3902
  const v = w();
3903
- v && this.emit("text", v), e = Dt;
3903
+ v && this.emit("text", v), e = St;
3904
3904
  } else f.length < p + 2 && (r = !0, p = f.length);
3905
3905
  break;
3906
3906
  case FA:
@@ -3909,14 +3909,14 @@ class Cg extends bg.EventEmitter {
3909
3909
  case eo:
3910
3910
  if (b === 62) {
3911
3911
  const v = f.charCodeAt(p - 1), x = f.charCodeAt(p - 2);
3912
- (v === 45 && x === 45 || v === 93 && x === 93) && (e = Dt);
3912
+ (v === 45 && x === 45 || v === 93 && x === 93) && (e = St);
3913
3913
  }
3914
3914
  break;
3915
3915
  case HA:
3916
- b === 62 && f.charCodeAt(p - 1) === 63 && (e = Dt);
3916
+ b === 62 && f.charCodeAt(p - 1) === 63 && (e = St);
3917
3917
  break;
3918
3918
  case to:
3919
- b === 62 ? (this._handleTagOpening(i, s, o), s = void 0, o = void 0, i = void 0, a = void 0, e = Dt, l = p + 1) : b === 47 ? a = !0 : b > 32 && (l = p, e = zA);
3919
+ b === 62 ? (this._handleTagOpening(i, s, o), s = void 0, o = void 0, i = void 0, a = void 0, e = St, l = p + 1) : b === 47 ? a = !0 : b > 32 && (l = p, e = zA);
3920
3920
  break;
3921
3921
  case zA:
3922
3922
  (b <= 32 || b === 61) && (u = w(), p--, e = WA);
@@ -3998,7 +3998,7 @@ var Zl = Gl;
3998
3998
  unescapeXML: o,
3999
3999
  escapeXMLText: i,
4000
4000
  unescapeXMLText: a
4001
- } = Ct, A = Ul;
4001
+ } = Et, A = Ul;
4002
4002
  function c(...l) {
4003
4003
  return n(...l);
4004
4004
  }
@@ -4053,7 +4053,7 @@ var Bg = Ig, Kl = { exports: {} };
4053
4053
  Object.assign(t.exports, { parseURI: e, parseHost: n, parseService: r });
4054
4054
  })(Kl);
4055
4055
  var kg = Kl.exports;
4056
- const { EventEmitter: Pg, promise: St } = Me, Lg = bs, ro = Qe, Rg = Bg, { parseHost: Tg, parseService: Mg } = kg, jg = "urn:ietf:params:xml:ns:xmpp-streams", Hg = "http://etherx.jabber.org/streams";
4056
+ const { EventEmitter: Pg, promise: It } = Me, Lg = bs, ro = Qe, Rg = Bg, { parseHost: Tg, parseService: Mg } = kg, jg = "urn:ietf:params:xml:ns:xmpp-streams", Hg = "http://etherx.jabber.org/streams";
4057
4057
  let vs = class extends Pg {
4058
4058
  constructor(e = {}) {
4059
4059
  super(), this.jid = null, this.timeout = 2e3, this.options = e, this.socketListeners = /* @__PURE__ */ Object.create(null), this.parserListeners = /* @__PURE__ */ Object.create(null), this.status = "offline", this.socket = null, this.parser = null, this.root = null;
@@ -4114,7 +4114,7 @@ let vs = class extends Pg {
4114
4114
  let o;
4115
4115
  o = s ? `${n || "xmpp:"}//${r}` : (n ? `${n}//` : "") + r;
4116
4116
  try {
4117
- await St(this, "disconnect");
4117
+ await It(this, "disconnect");
4118
4118
  const { domain: i, lang: a } = this.options;
4119
4119
  await this.connect(o), await this.open({ domain: i, lang: a });
4120
4120
  } catch (i) {
@@ -4162,7 +4162,7 @@ let vs = class extends Pg {
4162
4162
  throw new Error("Connection is not offline");
4163
4163
  const { service: e, domain: n, lang: r } = this.options;
4164
4164
  await this.connect(e);
4165
- const s = St(this, "online");
4165
+ const s = It(this, "online");
4166
4166
  return await this.open({ domain: n, lang: r }), s;
4167
4167
  }
4168
4168
  /**
@@ -4171,7 +4171,7 @@ let vs = class extends Pg {
4171
4171
  async connect(e) {
4172
4172
  this._status("connecting", e);
4173
4173
  const n = new this.Socket();
4174
- return this._attachSocket(n), n.connect(this.socketParameters(e)), St(n, "connect");
4174
+ return this._attachSocket(n), n.connect(this.socketParameters(e)), It(n, "connect");
4175
4175
  }
4176
4176
  /**
4177
4177
  * Disconnects the socket
@@ -4179,7 +4179,7 @@ let vs = class extends Pg {
4179
4179
  * https://tools.ietf.org/html/rfc7395#section-3.6
4180
4180
  */
4181
4181
  async disconnect(e = this.timeout) {
4182
- this.socket && this._status("disconnecting"), this.socket.end(), await St(this.socket, "close", "error", e);
4182
+ this.socket && this._status("disconnecting"), this.socket.end(), await It(this.socket, "close", "error", e);
4183
4183
  }
4184
4184
  /**
4185
4185
  * Opens the stream
@@ -4187,7 +4187,7 @@ let vs = class extends Pg {
4187
4187
  async open(e) {
4188
4188
  this._status("opening"), typeof e == "string" && (e = { domain: e });
4189
4189
  const { domain: n, lang: r, timeout: s = this.timeout } = e, o = this.headerElement();
4190
- return o.attrs.to = n, o.attrs["xml:lang"] = r, this.root = o, this._attachParser(new this.Parser()), await this.write(this.header(o)), St(this, "open", "error", s);
4190
+ return o.attrs.to = n, o.attrs["xml:lang"] = r, this.root = o, this._attachParser(new this.Parser()), await this.write(this.header(o)), It(this, "open", "error", s);
4191
4191
  }
4192
4192
  /**
4193
4193
  * Closes the stream then closes the socket
@@ -4205,7 +4205,7 @@ let vs = class extends Pg {
4205
4205
  */
4206
4206
  async close(e = this.timeout) {
4207
4207
  const n = this.footer(this.footerElement()), r = Promise.all([
4208
- St(this.parser, "end", "error", e),
4208
+ It(this.parser, "end", "error", e),
4209
4209
  this.write(n)
4210
4210
  ]);
4211
4211
  this.parser && this.socket && this._status("closing");
@@ -4227,7 +4227,7 @@ let vs = class extends Pg {
4227
4227
  sendReceive(e, n = this.timeout) {
4228
4228
  return Promise.all([
4229
4229
  this.send(e),
4230
- St(this, "element", "error", n)
4230
+ It(this, "element", "error", n)
4231
4231
  ]).then(([, r]) => r);
4232
4232
  }
4233
4233
  write(e) {
@@ -5677,11 +5677,11 @@ var cu = { exports: {} };
5677
5677
  m[16] = this.block, m[y >>> 2] |= c[y & 3], this.block = m[16], y >= 56 && (this.hashed || this.hash(), m[0] = this.block, m[16] = m[1] = m[2] = m[3] = m[4] = m[5] = m[6] = m[7] = m[8] = m[9] = m[10] = m[11] = m[12] = m[13] = m[14] = m[15] = 0), m[14] = this.hBytes << 3 | this.bytes >>> 29, m[15] = this.bytes << 3, this.hash();
5678
5678
  }
5679
5679
  }, g.prototype.hash = function() {
5680
- var m = this.h0, y = this.h1, B = this.h2, I = this.h3, E = this.h4, N = this.h5, L = this.h6, P = this.h7, T = this.blocks, W, X, $, ke, F, ge, me, se, xt, Ot, Xe;
5680
+ var m = this.h0, y = this.h1, B = this.h2, I = this.h3, E = this.h4, N = this.h5, L = this.h6, P = this.h7, T = this.blocks, W, X, $, ke, F, ge, me, se, Ot, Nt, Xe;
5681
5681
  for (W = 16; W < 64; ++W)
5682
5682
  F = T[W - 15], X = (F >>> 7 | F << 25) ^ (F >>> 18 | F << 14) ^ F >>> 3, F = T[W - 2], $ = (F >>> 17 | F << 15) ^ (F >>> 19 | F << 13) ^ F >>> 10, T[W] = T[W - 16] + X + T[W - 7] + $ << 0;
5683
5683
  for (Xe = y & B, W = 0; W < 64; W += 4)
5684
- this.first ? (this.is224 ? (se = 300032, F = T[0] - 1413257819, P = F - 150054599 << 0, I = F + 24177077 << 0) : (se = 704751109, F = T[0] - 210244248, P = F - 1521486534 << 0, I = F + 143694565 << 0), this.first = !1) : (X = (m >>> 2 | m << 30) ^ (m >>> 13 | m << 19) ^ (m >>> 22 | m << 10), $ = (E >>> 6 | E << 26) ^ (E >>> 11 | E << 21) ^ (E >>> 25 | E << 7), se = m & y, ke = se ^ m & B ^ Xe, me = E & N ^ ~E & L, F = P + $ + me + u[W] + T[W], ge = X + ke, P = I + F << 0, I = F + ge << 0), X = (I >>> 2 | I << 30) ^ (I >>> 13 | I << 19) ^ (I >>> 22 | I << 10), $ = (P >>> 6 | P << 26) ^ (P >>> 11 | P << 21) ^ (P >>> 25 | P << 7), xt = I & m, ke = xt ^ I & y ^ se, me = P & E ^ ~P & N, F = L + $ + me + u[W + 1] + T[W + 1], ge = X + ke, L = B + F << 0, B = F + ge << 0, X = (B >>> 2 | B << 30) ^ (B >>> 13 | B << 19) ^ (B >>> 22 | B << 10), $ = (L >>> 6 | L << 26) ^ (L >>> 11 | L << 21) ^ (L >>> 25 | L << 7), Ot = B & I, ke = Ot ^ B & m ^ xt, me = L & P ^ ~L & E, F = N + $ + me + u[W + 2] + T[W + 2], ge = X + ke, N = y + F << 0, y = F + ge << 0, X = (y >>> 2 | y << 30) ^ (y >>> 13 | y << 19) ^ (y >>> 22 | y << 10), $ = (N >>> 6 | N << 26) ^ (N >>> 11 | N << 21) ^ (N >>> 25 | N << 7), Xe = y & B, ke = Xe ^ y & I ^ Ot, me = N & L ^ ~N & P, F = E + $ + me + u[W + 3] + T[W + 3], ge = X + ke, E = m + F << 0, m = F + ge << 0, this.chromeBugWorkAround = !0;
5684
+ this.first ? (this.is224 ? (se = 300032, F = T[0] - 1413257819, P = F - 150054599 << 0, I = F + 24177077 << 0) : (se = 704751109, F = T[0] - 210244248, P = F - 1521486534 << 0, I = F + 143694565 << 0), this.first = !1) : (X = (m >>> 2 | m << 30) ^ (m >>> 13 | m << 19) ^ (m >>> 22 | m << 10), $ = (E >>> 6 | E << 26) ^ (E >>> 11 | E << 21) ^ (E >>> 25 | E << 7), se = m & y, ke = se ^ m & B ^ Xe, me = E & N ^ ~E & L, F = P + $ + me + u[W] + T[W], ge = X + ke, P = I + F << 0, I = F + ge << 0), X = (I >>> 2 | I << 30) ^ (I >>> 13 | I << 19) ^ (I >>> 22 | I << 10), $ = (P >>> 6 | P << 26) ^ (P >>> 11 | P << 21) ^ (P >>> 25 | P << 7), Ot = I & m, ke = Ot ^ I & y ^ se, me = P & E ^ ~P & N, F = L + $ + me + u[W + 1] + T[W + 1], ge = X + ke, L = B + F << 0, B = F + ge << 0, X = (B >>> 2 | B << 30) ^ (B >>> 13 | B << 19) ^ (B >>> 22 | B << 10), $ = (L >>> 6 | L << 26) ^ (L >>> 11 | L << 21) ^ (L >>> 25 | L << 7), Nt = B & I, ke = Nt ^ B & m ^ Ot, me = L & P ^ ~L & E, F = N + $ + me + u[W + 2] + T[W + 2], ge = X + ke, N = y + F << 0, y = F + ge << 0, X = (y >>> 2 | y << 30) ^ (y >>> 13 | y << 19) ^ (y >>> 22 | y << 10), $ = (N >>> 6 | N << 26) ^ (N >>> 11 | N << 21) ^ (N >>> 25 | N << 7), Xe = y & B, ke = Xe ^ y & I ^ Nt, me = N & L ^ ~N & P, F = E + $ + me + u[W + 3] + T[W + 3], ge = X + ke, E = m + F << 0, m = F + ge << 0, this.chromeBugWorkAround = !0;
5685
5685
  this.h0 = this.h0 + m << 0, this.h1 = this.h1 + y << 0, this.h2 = this.h2 + B << 0, this.h3 = this.h3 + I << 0, this.h4 = this.h4 + E << 0, this.h5 = this.h5 + N << 0, this.h6 = this.h6 + L << 0, this.h7 = this.h7 + P << 0;
5686
5686
  }, g.prototype.hex = function() {
5687
5687
  this.finalize();
@@ -6752,11 +6752,11 @@ function Xo(t) {
6752
6752
  for (e = Math.abs(t); e > br; e = e / br | 0) n = ha(e % br) + n;
6753
6753
  return (ha(e % br) + n).replace(q2, "$1-$2");
6754
6754
  }
6755
- var Ao, bu = 5381, Pt = function(t, e) {
6755
+ var Ao, bu = 5381, Lt = function(t, e) {
6756
6756
  for (var n = e.length; n; ) t = 33 * t ^ e.charCodeAt(--n);
6757
6757
  return t;
6758
6758
  }, vu = function(t) {
6759
- return Pt(bu, t);
6759
+ return Lt(bu, t);
6760
6760
  };
6761
6761
  function Cu(t) {
6762
6762
  return Xo(vu(t) >>> 0);
@@ -6800,7 +6800,7 @@ function hn(t) {
6800
6800
  function Wi(t) {
6801
6801
  return typeof t == "object" && "styledComponentId" in t;
6802
6802
  }
6803
- function Lt(t, e) {
6803
+ function Rt(t, e) {
6804
6804
  return t && e ? "".concat(t, " ").concat(e) : t || e || "";
6805
6805
  }
6806
6806
  function Yo(t, e) {
@@ -7062,7 +7062,7 @@ function pw(t) {
7062
7062
  })))), x;
7063
7063
  };
7064
7064
  return u.hash = A.length ? A.reduce(function(h, f) {
7065
- return f.name || On(15), Pt(h, f.name);
7065
+ return f.name || On(15), Lt(h, f.name);
7066
7066
  }, bu).toString() : "", u;
7067
7067
  }
7068
7068
  var gw = new Iu(), Go = pw(), ku = ve.createContext({ shouldForwardProp: void 0, styleSheet: gw, stylis: Go });
@@ -7128,31 +7128,31 @@ function ww(t) {
7128
7128
  }
7129
7129
  var yw = vu(Ss), bw = function() {
7130
7130
  function t(e, n, r) {
7131
- this.rules = e, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && ww(e), this.componentId = n, this.baseHash = Pt(yw, n), this.baseStyle = r, Iu.registerId(n);
7131
+ this.rules = e, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && ww(e), this.componentId = n, this.baseHash = Lt(yw, n), this.baseStyle = r, Iu.registerId(n);
7132
7132
  }
7133
7133
  return t.prototype.generateAndInjectStyles = function(e, n, r) {
7134
7134
  var s = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, n, r) : "";
7135
- if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) s = Lt(s, this.staticRulesId);
7135
+ if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) s = Rt(s, this.staticRulesId);
7136
7136
  else {
7137
- var o = Yo(Ht(this.rules, e, n, r)), i = Xo(Pt(this.baseHash, o) >>> 0);
7137
+ var o = Yo(Ht(this.rules, e, n, r)), i = Xo(Lt(this.baseHash, o) >>> 0);
7138
7138
  if (!n.hasNameForId(this.componentId, i)) {
7139
7139
  var a = r(o, ".".concat(i), void 0, this.componentId);
7140
7140
  n.insertRules(this.componentId, i, a);
7141
7141
  }
7142
- s = Lt(s, i), this.staticRulesId = i;
7142
+ s = Rt(s, i), this.staticRulesId = i;
7143
7143
  }
7144
7144
  else {
7145
- for (var A = Pt(this.baseHash, r.hash), c = "", l = 0; l < this.rules.length; l++) {
7145
+ for (var A = Lt(this.baseHash, r.hash), c = "", l = 0; l < this.rules.length; l++) {
7146
7146
  var u = this.rules[l];
7147
- if (typeof u == "string") c += u, process.env.NODE_ENV !== "production" && (A = Pt(A, u));
7147
+ if (typeof u == "string") c += u, process.env.NODE_ENV !== "production" && (A = Lt(A, u));
7148
7148
  else if (u) {
7149
7149
  var h = Yo(Ht(u, e, n, r));
7150
- A = Pt(A, h + l), c += h;
7150
+ A = Lt(A, h + l), c += h;
7151
7151
  }
7152
7152
  }
7153
7153
  if (c) {
7154
7154
  var f = Xo(A >>> 0);
7155
- n.hasNameForId(this.componentId, f) || n.insertRules(this.componentId, f, r(c, ".".concat(f), void 0, this.componentId)), s = Lt(s, f);
7155
+ n.hasNameForId(this.componentId, f) || n.insertRules(this.componentId, f, r(c, ".".concat(f), void 0, this.componentId)), s = Rt(s, f);
7156
7156
  }
7157
7157
  }
7158
7158
  return s;
@@ -7184,25 +7184,25 @@ function vw(t, e, n) {
7184
7184
  var I = m.attrs, E = m.componentStyle, N = m.defaultProps, L = m.foldedComponentIds, P = m.styledComponentId, T = m.target, W = ve.useContext(Ru), X = wa(), $ = m.shouldForwardProp || X.shouldForwardProp;
7185
7185
  process.env.NODE_ENV !== "production" && lA(P);
7186
7186
  var ke = W2(y, W, N) || dn, F = function(Xe, Bn, lr) {
7187
- for (var Zt, Nt = ye(ye({}, Bn), { className: void 0, theme: lr }), Vs = 0; Vs < Xe.length; Vs += 1) {
7188
- var ur = hn(Zt = Xe[Vs]) ? Zt(Nt) : Zt;
7189
- for (var ot in ur) Nt[ot] = ot === "className" ? Lt(Nt[ot], ur[ot]) : ot === "style" ? ye(ye({}, Nt[ot]), ur[ot]) : ur[ot];
7187
+ for (var Zt, Dt = ye(ye({}, Bn), { className: void 0, theme: lr }), Vs = 0; Vs < Xe.length; Vs += 1) {
7188
+ var ur = hn(Zt = Xe[Vs]) ? Zt(Dt) : Zt;
7189
+ for (var ot in ur) Dt[ot] = ot === "className" ? Rt(Dt[ot], ur[ot]) : ot === "style" ? ye(ye({}, Dt[ot]), ur[ot]) : ur[ot];
7190
7190
  }
7191
- return Bn.className && (Nt.className = Lt(Nt.className, Bn.className)), Nt;
7191
+ return Bn.className && (Dt.className = Rt(Dt.className, Bn.className)), Dt;
7192
7192
  }(I, y, ke), ge = F.as || T, me = {};
7193
7193
  for (var se in F) F[se] === void 0 || se[0] === "$" || se === "as" || se === "theme" && F.theme === ke || (se === "forwardedAs" ? me.as = F.forwardedAs : $ && !$(se, ge) || (me[se] = F[se], $ || process.env.NODE_ENV !== "development" || y2(se) || ba.has(se) || !qo.has(ge) || (ba.add(se), console.warn('styled-components: it looks like an unknown prop "'.concat(se, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
7194
- var xt = function(Xe, Bn) {
7194
+ var Ot = function(Xe, Bn) {
7195
7195
  var lr = wa(), Zt = Xe.generateAndInjectStyles(Bn, lr.styleSheet, lr.stylis);
7196
7196
  return process.env.NODE_ENV !== "production" && lA(Zt), Zt;
7197
7197
  }(E, F);
7198
- process.env.NODE_ENV !== "production" && m.warnTooManyClasses && m.warnTooManyClasses(xt);
7199
- var Ot = Lt(L, P);
7200
- return xt && (Ot += " " + xt), F.className && (Ot += " " + F.className), me[ao(ge) && !qo.has(ge) ? "class" : "className"] = Ot, me.ref = B, yh(ge, me);
7198
+ process.env.NODE_ENV !== "production" && m.warnTooManyClasses && m.warnTooManyClasses(Ot);
7199
+ var Nt = Rt(L, P);
7200
+ return Ot && (Nt += " " + Ot), F.className && (Nt += " " + F.className), me[ao(ge) && !qo.has(ge) ? "class" : "className"] = Nt, me.ref = B, yh(ge, me);
7201
7201
  }(g, C, D);
7202
7202
  }
7203
7203
  x.displayName = u;
7204
7204
  var g = ve.forwardRef(x);
7205
- return g.attrs = f, g.componentStyle = v, g.displayName = u, g.shouldForwardProp = p, g.foldedComponentIds = r ? Lt(s.foldedComponentIds, s.styledComponentId) : "", g.styledComponentId = h, g.target = r ? s.target : t, Object.defineProperty(g, "defaultProps", { get: function() {
7205
+ return g.attrs = f, g.componentStyle = v, g.displayName = u, g.shouldForwardProp = p, g.foldedComponentIds = r ? Rt(s.foldedComponentIds, s.styledComponentId) : "", g.styledComponentId = h, g.target = r ? s.target : t, Object.defineProperty(g, "defaultProps", { get: function() {
7206
7206
  return this._foldedDefaultProps;
7207
7207
  }, set: function(C) {
7208
7208
  this._foldedDefaultProps = r ? function(D) {
@@ -9291,9 +9291,9 @@ function Ky() {
9291
9291
  * limitations under the License.
9292
9292
  */
9293
9293
  const Jy = "FirebaseError";
9294
- class Et extends Error {
9294
+ class xt extends Error {
9295
9295
  constructor(e, n, r) {
9296
- super(n), this.code = e, this.customData = r, this.name = Jy, Object.setPrototypeOf(this, Et.prototype), Error.captureStackTrace && Error.captureStackTrace(this, tr.prototype.create);
9296
+ super(n), this.code = e, this.customData = r, this.name = Jy, Object.setPrototypeOf(this, xt.prototype), Error.captureStackTrace && Error.captureStackTrace(this, tr.prototype.create);
9297
9297
  }
9298
9298
  }
9299
9299
  class tr {
@@ -9302,7 +9302,7 @@ class tr {
9302
9302
  }
9303
9303
  create(e, ...n) {
9304
9304
  const r = n[0] || {}, s = `${this.service}/${e}`, o = this.errors[e], i = o ? _y(o, r) : "Error", a = `${this.serviceName}: ${i} (${s}).`;
9305
- return new Et(s, a, r);
9305
+ return new xt(s, a, r);
9306
9306
  }
9307
9307
  }
9308
9308
  function _y(t, e) {
@@ -9520,7 +9520,7 @@ class gn {
9520
9520
  * See the License for the specific language governing permissions and
9521
9521
  * limitations under the License.
9522
9522
  */
9523
- const Bt = "[DEFAULT]";
9523
+ const kt = "[DEFAULT]";
9524
9524
  /**
9525
9525
  * @license
9526
9526
  * Copyright 2019 Google LLC
@@ -9590,7 +9590,7 @@ class sb {
9590
9590
  if (this.component = e, !!this.shouldAutoInitialize()) {
9591
9591
  if (ib(e))
9592
9592
  try {
9593
- this.getOrInitializeService({ instanceIdentifier: Bt });
9593
+ this.getOrInitializeService({ instanceIdentifier: kt });
9594
9594
  } catch {
9595
9595
  }
9596
9596
  for (const [n, r] of this.instancesDeferred.entries()) {
@@ -9605,7 +9605,7 @@ class sb {
9605
9605
  }
9606
9606
  }
9607
9607
  }
9608
- clearInstance(e = Bt) {
9608
+ clearInstance(e = kt) {
9609
9609
  this.instancesDeferred.delete(e), this.instancesOptions.delete(e), this.instances.delete(e);
9610
9610
  }
9611
9611
  // app.delete() will call this method on every provider to delete the services
@@ -9620,10 +9620,10 @@ class sb {
9620
9620
  isComponentSet() {
9621
9621
  return this.component != null;
9622
9622
  }
9623
- isInitialized(e = Bt) {
9623
+ isInitialized(e = kt) {
9624
9624
  return this.instances.has(e);
9625
9625
  }
9626
- getOptions(e = Bt) {
9626
+ getOptions(e = kt) {
9627
9627
  return this.instancesOptions.get(e) || {};
9628
9628
  }
9629
9629
  initialize(e = {}) {
@@ -9684,15 +9684,15 @@ class sb {
9684
9684
  }
9685
9685
  return r || null;
9686
9686
  }
9687
- normalizeInstanceIdentifier(e = Bt) {
9688
- return this.component ? this.component.multipleInstances ? e : Bt : e;
9687
+ normalizeInstanceIdentifier(e = kt) {
9688
+ return this.component ? this.component.multipleInstances ? e : kt : e;
9689
9689
  }
9690
9690
  shouldAutoInitialize() {
9691
9691
  return !!this.component && this.component.instantiationMode !== "EXPLICIT";
9692
9692
  }
9693
9693
  }
9694
9694
  function ob(t) {
9695
- return t === Bt ? void 0 : t;
9695
+ return t === kt ? void 0 : t;
9696
9696
  }
9697
9697
  function ib(t) {
9698
9698
  return t.instantiationMode === "EAGER";
@@ -9873,7 +9873,7 @@ function pb(t) {
9873
9873
  const s = () => {
9874
9874
  t.removeEventListener("success", o), t.removeEventListener("error", i);
9875
9875
  }, o = () => {
9876
- n(gt(t.result)), s();
9876
+ n(mt(t.result)), s();
9877
9877
  }, i = () => {
9878
9878
  r(t.error), s();
9879
9879
  };
@@ -9909,7 +9909,7 @@ let $o = {
9909
9909
  if (e === "store")
9910
9910
  return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
9911
9911
  }
9912
- return gt(t[e]);
9912
+ return mt(t[e]);
9913
9913
  },
9914
9914
  set(t, e, n) {
9915
9915
  return t[e] = n, !0;
@@ -9924,17 +9924,17 @@ function mb(t) {
9924
9924
  function wb(t) {
9925
9925
  return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
9926
9926
  const r = t.call(fo(this), e, ...n);
9927
- return td.set(r, e.sort ? e.sort() : [e]), gt(r);
9927
+ return td.set(r, e.sort ? e.sort() : [e]), mt(r);
9928
9928
  } : fb().includes(t) ? function(...e) {
9929
- return t.apply(fo(this), e), gt(ed.get(this));
9929
+ return t.apply(fo(this), e), mt(ed.get(this));
9930
9930
  } : function(...e) {
9931
- return gt(t.apply(fo(this), e));
9931
+ return mt(t.apply(fo(this), e));
9932
9932
  };
9933
9933
  }
9934
9934
  function yb(t) {
9935
9935
  return typeof t == "function" ? wb(t) : (t instanceof IDBTransaction && gb(t), db(t, hb()) ? new Proxy(t, $o) : t);
9936
9936
  }
9937
- function gt(t) {
9937
+ function mt(t) {
9938
9938
  if (t instanceof IDBRequest)
9939
9939
  return pb(t);
9940
9940
  if (ho.has(t))
@@ -9944,9 +9944,9 @@ function gt(t) {
9944
9944
  }
9945
9945
  const fo = (t) => Xi.get(t);
9946
9946
  function bb(t, e, { blocked: n, upgrade: r, blocking: s, terminated: o } = {}) {
9947
- const i = indexedDB.open(t, e), a = gt(i);
9947
+ const i = indexedDB.open(t, e), a = mt(i);
9948
9948
  return r && i.addEventListener("upgradeneeded", (A) => {
9949
- r(gt(i.result), A.oldVersion, A.newVersion, gt(i.transaction), A);
9949
+ r(mt(i.result), A.oldVersion, A.newVersion, mt(i.transaction), A);
9950
9950
  }), n && i.addEventListener("blocked", (A) => n(
9951
9951
  // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
9952
9952
  A.oldVersion,
@@ -10156,7 +10156,7 @@ const $b = {
10156
10156
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
10157
10157
  "finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
10158
10158
  "invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
10159
- }, mt = new tr("app", "Firebase", $b);
10159
+ }, wt = new tr("app", "Firebase", $b);
10160
10160
  /**
10161
10161
  * @license
10162
10162
  * Copyright 2019 Google LLC
@@ -10212,7 +10212,7 @@ class ev {
10212
10212
  */
10213
10213
  checkDestroyed() {
10214
10214
  if (this.isDeleted)
10215
- throw mt.create("app-deleted", { appName: this._name });
10215
+ throw wt.create("app-deleted", { appName: this._name });
10216
10216
  }
10217
10217
  }
10218
10218
  /**
@@ -10237,11 +10237,11 @@ function rd(t, e = {}) {
10237
10237
  typeof e != "object" && (e = { name: e });
10238
10238
  const r = Object.assign({ name: ti, automaticDataCollectionEnabled: !1 }, e), s = r.name;
10239
10239
  if (typeof s != "string" || !s)
10240
- throw mt.create("bad-app-name", {
10240
+ throw wt.create("bad-app-name", {
10241
10241
  appName: String(s)
10242
10242
  });
10243
10243
  if (n || (n = Ju()), !n)
10244
- throw mt.create(
10244
+ throw wt.create(
10245
10245
  "no-options"
10246
10246
  /* AppError.NO_OPTIONS */
10247
10247
  );
@@ -10249,7 +10249,7 @@ function rd(t, e = {}) {
10249
10249
  if (o) {
10250
10250
  if (Kr(n, o.options) && Kr(r, o.config))
10251
10251
  return o;
10252
- throw mt.create("duplicate-app", { appName: s });
10252
+ throw wt.create("duplicate-app", { appName: s });
10253
10253
  }
10254
10254
  const i = new Ab(s);
10255
10255
  for (const A of ni.values())
@@ -10262,7 +10262,7 @@ function tv(t = ti) {
10262
10262
  if (!e && t === ti && Ju())
10263
10263
  return rd();
10264
10264
  if (!e)
10265
- throw mt.create("no-app", { appName: t });
10265
+ throw wt.create("no-app", { appName: t });
10266
10266
  return e;
10267
10267
  }
10268
10268
  function rn(t, e, n) {
@@ -10315,7 +10315,7 @@ function sd() {
10315
10315
  }
10316
10316
  }
10317
10317
  }).catch((t) => {
10318
- throw mt.create("idb-open", {
10318
+ throw wt.create("idb-open", {
10319
10319
  originalErrorMessage: t.message
10320
10320
  });
10321
10321
  })), go;
@@ -10325,10 +10325,10 @@ async function sv(t) {
10325
10325
  const n = (await sd()).transaction(Un), r = await n.objectStore(Un).get(od(t));
10326
10326
  return await n.done, r;
10327
10327
  } catch (e) {
10328
- if (e instanceof Et)
10328
+ if (e instanceof xt)
10329
10329
  et.warn(e.message);
10330
10330
  else {
10331
- const n = mt.create("idb-get", {
10331
+ const n = wt.create("idb-get", {
10332
10332
  originalErrorMessage: e == null ? void 0 : e.message
10333
10333
  });
10334
10334
  et.warn(n.message);
@@ -10340,10 +10340,10 @@ async function La(t, e) {
10340
10340
  const r = (await sd()).transaction(Un, "readwrite");
10341
10341
  await r.objectStore(Un).put(e, od(t)), await r.done;
10342
10342
  } catch (n) {
10343
- if (n instanceof Et)
10343
+ if (n instanceof xt)
10344
10344
  et.warn(n.message);
10345
10345
  else {
10346
- const r = mt.create("idb-set", {
10346
+ const r = wt.create("idb-set", {
10347
10347
  originalErrorMessage: n == null ? void 0 : n.message
10348
10348
  });
10349
10349
  et.warn(r.message);
@@ -10931,7 +10931,7 @@ async function cd(t, e, n) {
10931
10931
  Ve(t, l);
10932
10932
  }
10933
10933
  } catch (s) {
10934
- if (s instanceof Et)
10934
+ if (s instanceof xt)
10935
10935
  throw s;
10936
10936
  Ve(t, "network-request-failed", { message: String(s) });
10937
10937
  }
@@ -11086,7 +11086,7 @@ async function Gn(t, e, n = !1) {
11086
11086
  try {
11087
11087
  return await e;
11088
11088
  } catch (r) {
11089
- throw r instanceof Et && Ev(r) && t.auth.currentUser === t && await t.auth.signOut(), r;
11089
+ throw r instanceof xt && Ev(r) && t.auth.currentUser === t && await t.auth.signOut(), r;
11090
11090
  }
11091
11091
  }
11092
11092
  function Ev({ code: t }) {
@@ -13055,7 +13055,7 @@ function Qa(t) {
13055
13055
  * See the License for the specific language governing permissions and
13056
13056
  * limitations under the License.
13057
13057
  */
13058
- class es extends Et {
13058
+ class es extends xt {
13059
13059
  constructor(e, n, r, s) {
13060
13060
  var o;
13061
13061
  super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, es.prototype), this.customData = {
@@ -14044,11 +14044,11 @@ async function g3(t, e, n) {
14044
14044
  const r = ks(t);
14045
14045
  hv(t, e, $i);
14046
14046
  const s = Rd(r, n);
14047
- return new Rt(r, "signInViaPopup", e, s).executeNotNull();
14047
+ return new Tt(r, "signInViaPopup", e, s).executeNotNull();
14048
14048
  }
14049
- class Rt extends Td {
14049
+ class Tt extends Td {
14050
14050
  constructor(e, n, r, s, o) {
14051
- super(e, n, s, o), this.provider = r, this.authWindow = null, this.pollId = null, Rt.currentPopupAction && Rt.currentPopupAction.cancel(), Rt.currentPopupAction = this;
14051
+ super(e, n, s, o), this.provider = r, this.authWindow = null, this.pollId = null, Tt.currentPopupAction && Tt.currentPopupAction.cancel(), Tt.currentPopupAction = this;
14052
14052
  }
14053
14053
  async executeNotNull() {
14054
14054
  const e = await this.execute();
@@ -14090,7 +14090,7 @@ class Rt extends Td {
14090
14090
  ));
14091
14091
  }
14092
14092
  cleanUp() {
14093
- this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, Rt.currentPopupAction = null;
14093
+ this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, Tt.currentPopupAction = null;
14094
14094
  }
14095
14095
  pollUserCancellation() {
14096
14096
  const e = () => {
@@ -14114,7 +14114,7 @@ class Rt extends Td {
14114
14114
  e();
14115
14115
  }
14116
14116
  }
14117
- Rt.currentPopupAction = null;
14117
+ Tt.currentPopupAction = null;
14118
14118
  /**
14119
14119
  * @license
14120
14120
  * Copyright 2020 Google LLC
@@ -17443,7 +17443,7 @@ const dh = S.div`
17443
17443
  box-sizing: border-box;
17444
17444
  align-items: flex-start;
17445
17445
  gap: 32px;
17446
- `, bt = S.div`
17446
+ `, vt = S.div`
17447
17447
  display: flex;
17448
17448
  flex-direction: column;
17449
17449
  gap: 16px;
@@ -17463,7 +17463,7 @@ S.div`
17463
17463
  align-items: center;
17464
17464
  gap: 4px;
17465
17465
  `;
17466
- const pt = S(yn)`
17466
+ const gt = S(yn)`
17467
17467
  font-size: 12px;
17468
17468
  text-align: start;
17469
17469
  color: #8c8c8c;
@@ -17503,9 +17503,9 @@ const pt = S(yn)`
17503
17503
  headerTitle: "Blocked Users"
17504
17504
  }
17505
17505
  ),
17506
- /* @__PURE__ */ d(st, { children: /* @__PURE__ */ O(bt, { children: [
17506
+ /* @__PURE__ */ d(st, { children: /* @__PURE__ */ O(vt, { children: [
17507
17507
  /* @__PURE__ */ d(Ee, { children: "Users you have blocked" }),
17508
- /* @__PURE__ */ d(pt, { children: "The blocked users cannot message you or view your profile. Tap the bin icon if you wish to remove the block." }),
17508
+ /* @__PURE__ */ d(gt, { children: "The blocked users cannot message you or view your profile. Tap the bin icon if you wish to remove the block." }),
17509
17509
  /* @__PURE__ */ O(
17510
17510
  Gt,
17511
17511
  {
@@ -17552,9 +17552,9 @@ const pt = S(yn)`
17552
17552
  headerTitle: "Document Shares"
17553
17553
  }
17554
17554
  ),
17555
- /* @__PURE__ */ d(st, { children: /* @__PURE__ */ d(bt, { children: /* @__PURE__ */ O(is, { children: [
17555
+ /* @__PURE__ */ d(st, { children: /* @__PURE__ */ d(vt, { children: /* @__PURE__ */ O(is, { children: [
17556
17556
  /* @__PURE__ */ d(Ee, { children: "Current Document Shares" }),
17557
- /* @__PURE__ */ d(pt, { children: "Listed below are your currently active document sharing links. You can share or delete them." }),
17557
+ /* @__PURE__ */ d(gt, { children: "Listed below are your currently active document sharing links. You can share or delete them." }),
17558
17558
  /* @__PURE__ */ O(
17559
17559
  Gt,
17560
17560
  {
@@ -17647,7 +17647,7 @@ const B4 = ({
17647
17647
  }
17648
17648
  ),
17649
17649
  /* @__PURE__ */ O(hh, { children: [
17650
- /* @__PURE__ */ O(bt, { children: [
17650
+ /* @__PURE__ */ O(vt, { children: [
17651
17651
  /* @__PURE__ */ O(is, { children: [
17652
17652
  /* @__PURE__ */ d(Ee, { children: "Download your data" }),
17653
17653
  /* @__PURE__ */ d(
@@ -17670,10 +17670,10 @@ const B4 = ({
17670
17670
  }
17671
17671
  )
17672
17672
  ] }),
17673
- /* @__PURE__ */ O(bt, { children: [
17673
+ /* @__PURE__ */ O(vt, { children: [
17674
17674
  /* @__PURE__ */ O(is, { children: [
17675
17675
  /* @__PURE__ */ d(Ee, { children: "Download your data" }),
17676
- /* @__PURE__ */ d(pt, { children: "Use this only if you want to permanently delete your account & data from our system." })
17676
+ /* @__PURE__ */ d(gt, { children: "Use this only if you want to permanently delete your account & data from our system." })
17677
17677
  ] }),
17678
17678
  /* @__PURE__ */ O(
17679
17679
  zs,
@@ -17704,7 +17704,7 @@ const B4 = ({
17704
17704
  ),
17705
17705
  /* @__PURE__ */ d(st, { children: /* @__PURE__ */ O(is, { children: [
17706
17706
  /* @__PURE__ */ d(Ee, { children: "Current Profile Shares" }),
17707
- /* @__PURE__ */ d(pt, { children: "Listed below are your currently active profile sharing links. You can share or delete them." }),
17707
+ /* @__PURE__ */ d(gt, { children: "Listed below are your currently active profile sharing links. You can share or delete them." }),
17708
17708
  /* @__PURE__ */ O(
17709
17709
  Gt,
17710
17710
  {
@@ -17774,7 +17774,7 @@ const B4 = ({
17774
17774
  /* @__PURE__ */ d("span", { children: "." }),
17775
17775
  "Send friends invite with your personal invitation code."
17776
17776
  ] }),
17777
- /* @__PURE__ */ O(bt, { style: { width: "100%" }, children: [
17777
+ /* @__PURE__ */ O(vt, { style: { width: "100%" }, children: [
17778
17778
  /* @__PURE__ */ d(Ee, { children: "Your invitation code" }),
17779
17779
  /* @__PURE__ */ d(
17780
17780
  Zr,
@@ -17784,7 +17784,7 @@ const B4 = ({
17784
17784
  }
17785
17785
  )
17786
17786
  ] }),
17787
- /* @__PURE__ */ O(bt, { style: { width: "100%" }, children: [
17787
+ /* @__PURE__ */ O(vt, { style: { width: "100%" }, children: [
17788
17788
  /* @__PURE__ */ d(Ee, { children: "Or enter your referral code to earn coins" }),
17789
17789
  /* @__PURE__ */ d(
17790
17790
  Zr,
@@ -17833,7 +17833,7 @@ const mc = S.div`
17833
17833
  var h, f, p, w;
17834
17834
  const e = pe(), { user: n, config: r } = J(
17835
17835
  (b) => b.chatSettingStore
17836
- ), s = (b) => e(Mt(b)), [o, i] = H(n == null ? void 0 : n.isProfileOpen), [a, A] = H(n == null ? void 0 : n.isAssetsOpen), [c, l] = H(null), u = (b, v) => {
17836
+ ), s = (b) => e(ft(b)), [o, i] = H(n == null ? void 0 : n.isProfileOpen), [a, A] = H(n == null ? void 0 : n.isAssetsOpen), [c, l] = H(null), u = (b, v) => {
17837
17837
  l({ message: b, type: v }), setTimeout(() => l(null), 3e3);
17838
17838
  };
17839
17839
  return de(() => {
@@ -17853,7 +17853,7 @@ const mc = S.div`
17853
17853
  }
17854
17854
  ),
17855
17855
  /* @__PURE__ */ O(hh, { children: [
17856
- /* @__PURE__ */ O(bt, { children: [
17856
+ /* @__PURE__ */ O(vt, { children: [
17857
17857
  /* @__PURE__ */ d(Ee, { children: "Profile Visiblility" }),
17858
17858
  /* @__PURE__ */ O(mc, { children: [
17859
17859
  /* @__PURE__ */ O(Or, { children: [
@@ -17868,7 +17868,7 @@ const mc = S.div`
17868
17868
  ),
17869
17869
  "Open (default)"
17870
17870
  ] }),
17871
- /* @__PURE__ */ d(pt, { children: "Your profile can be viewed by anyone who follows your profile link or QR code." }),
17871
+ /* @__PURE__ */ d(gt, { children: "Your profile can be viewed by anyone who follows your profile link or QR code." }),
17872
17872
  /* @__PURE__ */ O(Or, { children: [
17873
17873
  /* @__PURE__ */ d(
17874
17874
  Nr,
@@ -17881,10 +17881,10 @@ const mc = S.div`
17881
17881
  ),
17882
17882
  "Restricted"
17883
17883
  ] }),
17884
- /* @__PURE__ */ d(pt, { children: "Only users with your permission or temporary secure link can see your profile." })
17884
+ /* @__PURE__ */ d(gt, { children: "Only users with your permission or temporary secure link can see your profile." })
17885
17885
  ] })
17886
17886
  ] }),
17887
- /* @__PURE__ */ O(bt, { children: [
17887
+ /* @__PURE__ */ O(vt, { children: [
17888
17888
  /* @__PURE__ */ d(Ee, { children: "Documents Visibility" }),
17889
17889
  /* @__PURE__ */ O(mc, { children: [
17890
17890
  /* @__PURE__ */ O(Or, { children: [
@@ -17899,7 +17899,7 @@ const mc = S.div`
17899
17899
  ),
17900
17900
  "Full (default)"
17901
17901
  ] }),
17902
- /* @__PURE__ */ d(pt, { children: "Show all Documents to those who can see your profile." }),
17902
+ /* @__PURE__ */ d(gt, { children: "Show all Documents to those who can see your profile." }),
17903
17903
  /* @__PURE__ */ O(Or, { children: [
17904
17904
  /* @__PURE__ */ d(
17905
17905
  Nr,
@@ -17912,7 +17912,7 @@ const mc = S.div`
17912
17912
  ),
17913
17913
  "Individual"
17914
17914
  ] }),
17915
- /* @__PURE__ */ d(pt, { children: "You need to share each document individually before others can see them." })
17915
+ /* @__PURE__ */ d(gt, { children: "You need to share each document individually before others can see them." })
17916
17916
  ] })
17917
17917
  ] })
17918
17918
  ] }),
@@ -18412,7 +18412,7 @@ const mc = S.div`
18412
18412
  ), { rooms: i, activeRoomJID: a } = J(
18413
18413
  (u) => u.rooms
18414
18414
  ), A = (u) => {
18415
- n(Qt({ roomJID: u.jid })), n(ft({ chatJID: u.jid, loading: !0 }));
18415
+ n(Qt({ roomJID: u.jid })), n(pt({ chatJID: u.jid, loading: !0 }));
18416
18416
  }, c = Q(() => {
18417
18417
  r.leaveTheRoomStanza(a), n(W1({ jid: a }));
18418
18418
  const u = Object.keys(i)[0] || null;
@@ -18624,12 +18624,12 @@ const mc = S.div`
18624
18624
  var I;
18625
18625
  const y = async () => {
18626
18626
  n.getHistoryStanza(c, 30).then(() => {
18627
- r(ft({ loading: !1, chatJID: c }));
18627
+ r(pt({ loading: !1, chatJID: c }));
18628
18628
  });
18629
18629
  }, B = async () => {
18630
18630
  i[c] ? y() : (n.presenceInRoomStanza(c), await n.getRooms(), await y());
18631
18631
  };
18632
- r(ft({ loading: !0, chatJID: c })), ((I = Object.keys(i)) == null ? void 0 : I.length) > 0 ? !(i != null && i[c]) && Object.keys(i).length > 0 ? B() : h.length < 1 ? y() : r(ft({ loading: !1, chatJID: c })) : i != null && i[c] || B();
18632
+ r(pt({ loading: !0, chatJID: c })), ((I = Object.keys(i)) == null ? void 0 : I.length) > 0 ? !(i != null && i[c]) && Object.keys(i).length > 0 ? B() : h.length < 1 ? y() : r(pt({ loading: !1, chatJID: c })) : i != null && i[c] || B();
18633
18633
  }, [c, Object.keys(i).length]), !c || ((x = Object.keys(i)) == null ? void 0 : x.length) < 1 || !(i != null && i[c]) ? /* @__PURE__ */ d(
18634
18634
  "div",
18635
18635
  {
@@ -20237,7 +20237,7 @@ const f5 = ({ src: t }) => {
20237
20237
  token: g.data.token,
20238
20238
  refreshToken: g.data.refreshToken
20239
20239
  };
20240
- e(Mt(C)), jn(tn.ETHORA_USER).set(C);
20240
+ e(ft(C)), jn(tn.ETHORA_USER).set(C);
20241
20241
  } catch (g) {
20242
20242
  return console.error("Login failed:", g), a(!1), null;
20243
20243
  }
@@ -20269,7 +20269,7 @@ const f5 = ({ src: t }) => {
20269
20269
  token: I.data.token,
20270
20270
  refreshToken: I.data.refreshToken
20271
20271
  };
20272
- e(Mt(E)), jn(tn.ETHORA_USER).set(E);
20272
+ e(ft(E)), jn(tn.ETHORA_USER).set(E);
20273
20273
  } catch {
20274
20274
  console.log("error registering user viag google");
20275
20275
  }
@@ -20285,7 +20285,7 @@ const f5 = ({ src: t }) => {
20285
20285
  token: I.data.token,
20286
20286
  refreshToken: I.data.refreshToken
20287
20287
  };
20288
- e(Mt(E)), jn(tn.ETHORA_USER).set(E);
20288
+ e(ft(E)), jn(tn.ETHORA_USER).set(E);
20289
20289
  }
20290
20290
  } catch (y) {
20291
20291
  console.log(y);
@@ -20480,10 +20480,10 @@ const f5 = ({ src: t }) => {
20480
20480
  ), { rooms: v, activeRoomJID: x } = J(
20481
20481
  (B) => B.rooms
20482
20482
  ), g = (B) => {
20483
- x !== B.jid && (p(Qt({ roomJID: B.jid })), p(ft({ chatJID: B.jid, loading: !0 })), f(!0));
20483
+ x !== B.jid && (p(Qt({ roomJID: B.jid })), p(pt({ chatJID: B.jid, loading: !0 })), f(!0));
20484
20484
  }, { client: C, initializeClient: D, setClient: m } = En();
20485
20485
  return de(() => {
20486
- s && p(Qt({ roomJID: s })), p(B1(r)), p(ft({ loading: !0 })), (async () => {
20486
+ s && p(Qt({ roomJID: s })), p(B1(r)), p(pt({ loading: !0 })), (async () => {
20487
20487
  var I;
20488
20488
  try {
20489
20489
  !w.defaultWallet || (w == null ? void 0 : w.defaultWallet.walletAddress) === "" ? (A(!0), console.log("Error, no user")) : C ? (x || C.getRooms(), i(!0), hi()) : (A(!1), console.log("No client, so initing one"), await D(
@@ -20493,9 +20493,9 @@ const f5 = ({ src: t }) => {
20493
20493
  E.getRooms().then(() => {
20494
20494
  m(E);
20495
20495
  }).finally(() => i(!0));
20496
- }), hi()), p(ft({ loading: !1 }));
20496
+ }), hi()), p(pt({ loading: !1 }));
20497
20497
  } catch (E) {
20498
- A(!0), i(!1), p(ft({ loading: !1 })), console.log(E);
20498
+ A(!0), i(!1), p(pt({ loading: !1 })), console.log(E);
20499
20499
  }
20500
20500
  })();
20501
20501
  }, [w]), de(() => {
@@ -20579,23 +20579,24 @@ const f5 = ({ src: t }) => {
20579
20579
  }
20580
20580
  }, []), o = pe();
20581
20581
  return de(() => {
20582
- var a, A, c, l;
20582
+ var a, A, c, l, u, h;
20583
+ (a = t == null ? void 0 : t.config) != null && a.userLogin.enabled && o(ft((A = t == null ? void 0 : t.config) == null ? void 0 : A.userLogin.user));
20583
20584
  const i = jn(
20584
20585
  "@ethora/chat-component-user"
20585
20586
  ).get();
20586
- return i && (console.log("Login data storedUser", i), o(Mt(i))), (A = (a = t.config) == null ? void 0 : a.jwtLogin) != null && A.enabled && (async () => {
20587
+ return i && (console.log("Login data storedUser", i), o(ft(i))), (l = (c = t.config) == null ? void 0 : c.jwtLogin) != null && l.enabled && (async () => {
20587
20588
  try {
20588
- const h = await qC(t.config.jwtLogin.token);
20589
- h && o(Mt(h));
20590
- } catch (h) {
20591
- console.log("error with jwt login", h), n(!0), console.log("Error, no user");
20589
+ const p = await qC(t.config.jwtLogin.token);
20590
+ p && o(ft(p));
20591
+ } catch (p) {
20592
+ console.log("error with jwt login", p), n(!0), console.log("Error, no user");
20592
20593
  }
20593
- })(), !((c = t.config) != null && c.googleLogin) && !((l = t.config) != null && l.defaultLogin) && r.xmppUsername === "" && (async () => {
20594
+ })(), !((u = t.config) != null && u.googleLogin) && !((h = t.config) != null && h.defaultLogin) && r.xmppUsername === "" && (async () => {
20594
20595
  try {
20595
- const h = await s();
20596
- h && o(Mt(h));
20597
- } catch (h) {
20598
- console.log("error with default login", h), n(!0);
20596
+ const p = await s();
20597
+ p && o(ft(p));
20598
+ } catch (p) {
20599
+ console.log("error with default login", p), n(!0);
20599
20600
  }
20600
20601
  })(), () => {
20601
20602
  };