@ethora/chat-component 25.5.14 → 25.5.15

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
@@ -3,7 +3,7 @@ var mm = (n, e, i) => e in n ? gm(n, e, { enumerable: !0, configurable: !0, writ
3
3
  var ke = (n, e, i) => mm(n, typeof e != "symbol" ? e + "" : e, i);
4
4
  import { jsx as u, jsxs as I, Fragment as pe } from "react/jsx-runtime";
5
5
  import * as ra from "react";
6
- import Re, { createContext as Dl, useState as J, useEffect as fe, useContext as AA, useRef as ge, useDebugValue as mf, createElement as pm, Fragment as pf, useMemo as Ce, useCallback as ie, forwardRef as vm, PureComponent as wm, useSyncExternalStore as bm } from "react";
6
+ import Qe, { createContext as Dl, useState as J, useEffect as fe, useContext as AA, useRef as ge, useDebugValue as mf, createElement as pm, Fragment as pf, useMemo as Ce, useCallback as ie, forwardRef as vm, PureComponent as wm, useSyncExternalStore as bm } from "react";
7
7
  var ze = typeof globalThis < "u" ? globalThis : typeof window < "u" || typeof window < "u" ? window : typeof self < "u" ? self : {};
8
8
  function fA(n) {
9
9
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
@@ -58,11 +58,11 @@ var Bm = function(e, i, t = "error", r) {
58
58
  const A = () => {
59
59
  clearTimeout(o), e.removeListener(i, d), e.removeListener(t, f);
60
60
  };
61
- function f(l) {
62
- a(l), A();
61
+ function f(c) {
62
+ a(c), A();
63
63
  }
64
- function d(l) {
65
- s(l), A();
64
+ function d(c) {
65
+ s(c), A();
66
66
  }
67
67
  e.once(i, d), t && e.once(t, f), r && (o = setTimeout(() => {
68
68
  A(), a(new Em());
@@ -666,7 +666,7 @@ const ci = 0, oa = 1, kf = 2, Cf = 3, Aa = 4, xf = 5, Ef = 6, Bf = 7, fa = 8, Df
666
666
  class _m extends Km.EventEmitter {
667
667
  constructor() {
668
668
  super();
669
- let e = ci, i, t, r, s, a, o, A, f, d = 0, l;
669
+ let e = ci, i, t, r, s, a, o, A, f, d = 0, c;
670
670
  this._handleTagOpening = function(h, g, v) {
671
671
  h ? this.emit("endElement", g) : (this.emit("startElement", g, v), o && this.emit("endElement", g));
672
672
  }, this.write = function(h) {
@@ -733,7 +733,7 @@ class _m extends Km.EventEmitter {
733
733
  m === 62 ? (this._handleTagOpening(a, r, s), r = void 0, s = void 0, a = void 0, o = void 0, e = ci, d = g + 1) : m === 47 ? o = !0 : m > 32 && (d = g, e = xf);
734
734
  break;
735
735
  case xf:
736
- (m <= 32 || m === 61) && (l = v(), g--, e = Ef);
736
+ (m <= 32 || m === 61) && (c = v(), g--, e = Ef);
737
737
  break;
738
738
  case Ef:
739
739
  m === 61 && (e = Bf);
@@ -744,7 +744,7 @@ class _m extends Km.EventEmitter {
744
744
  case fa:
745
745
  if (m === A) {
746
746
  const w = yf.unescapeXML(v());
747
- s[l] = w, l = void 0, e = Aa;
747
+ s[c] = w, c = void 0, e = Aa;
748
748
  }
749
749
  break;
750
750
  }
@@ -1649,12 +1649,12 @@ async function Ff(n, e, i, t) {
1649
1649
  if (d.attrs.xmlns === vt) {
1650
1650
  if (d.name === "challenge") {
1651
1651
  r.challenge(j0(d.text()));
1652
- const l = r.response(a);
1652
+ const c = r.response(a);
1653
1653
  e.send(
1654
1654
  Rf(
1655
1655
  "response",
1656
1656
  { xmlns: vt, mechanism: r.name },
1657
- typeof l == "string" ? Qf(l) : ""
1657
+ typeof c == "string" ? Qf(c) : ""
1658
1658
  )
1659
1659
  );
1660
1660
  return;
@@ -1839,16 +1839,16 @@ const { xml: iv, jid: tv, Client: rv } = vs, sv = bp, av = Cp, ov = Lp, Av = Kp,
1839
1839
  function wv(n = {}) {
1840
1840
  const { resource: e, credentials: i, username: t, password: r, ...s } = n, { domain: a, service: o } = s;
1841
1841
  !a && o && (s.domain = sv(o));
1842
- const A = new rv(s), f = av({ entity: A }), d = ov({ entity: A }), l = Av({ entity: A }), c = fv({ middleware: l }), h = dv({ middleware: l, entity: A }), g = cv({ middleware: l, entity: A }), v = lv({ entity: A }), m = uv({ streamFeatures: c }, i || { username: t, password: r }), w = mv({
1843
- streamFeatures: c,
1842
+ const A = new rv(s), f = av({ entity: A }), d = ov({ entity: A }), c = Av({ entity: A }), l = fv({ middleware: c }), h = dv({ middleware: c, entity: A }), g = cv({ middleware: c, entity: A }), v = lv({ entity: A }), m = uv({ streamFeatures: l }, i || { username: t, password: r }), w = mv({
1843
+ streamFeatures: l,
1844
1844
  entity: A,
1845
- middleware: l
1845
+ middleware: c
1846
1846
  }), C = hv(
1847
- { iqCaller: h, streamFeatures: c },
1847
+ { iqCaller: h, streamFeatures: l },
1848
1848
  e
1849
1849
  ), p = gv({
1850
1850
  iqCaller: h,
1851
- streamFeatures: c
1851
+ streamFeatures: l
1852
1852
  }), k = Object.entries({ plain: vv, anonymous: pv }).map(([y, b]) => ({
1853
1853
  [y]: b(m)
1854
1854
  }));
@@ -1856,8 +1856,8 @@ function wv(n = {}) {
1856
1856
  entity: A,
1857
1857
  reconnect: f,
1858
1858
  websocket: d,
1859
- middleware: l,
1860
- streamFeatures: c,
1859
+ middleware: c,
1860
+ streamFeatures: l,
1861
1861
  iqCaller: h,
1862
1862
  iqCallee: g,
1863
1863
  resolve: v,
@@ -1936,11 +1936,11 @@ async function su(n) {
1936
1936
  }, r = new Promise((a, o) => {
1937
1937
  try {
1938
1938
  i = (f) => {
1939
- var d, l;
1939
+ var d, c;
1940
1940
  if (f.is("iq") && f.attrs.id === e) {
1941
- let c = (d = f.getChild("query")) == null ? void 0 : d.getChild("chatjson");
1942
- if (c && ((l = c == null ? void 0 : c.attrs) != null && l.value)) {
1943
- const h = JSON.parse(c.attrs.value);
1941
+ let l = (d = f.getChild("query")) == null ? void 0 : d.getChild("chatjson");
1942
+ if (l && ((c = l == null ? void 0 : l.attrs) != null && c.value)) {
1943
+ const h = JSON.parse(l.attrs.value);
1944
1944
  a(h);
1945
1945
  } else
1946
1946
  a(null);
@@ -2045,16 +2045,16 @@ const xv = (n) => n.reduce((e, i) => (e[i.language] = i, e), {}), Ev = (n, e) =>
2045
2045
  if (!a) return;
2046
2046
  const o = ((y = e == null ? void 0 : e.getChild("body")) == null ? void 0 : y.getText()) || void 0, A = !!(e != null && e.getChild("deleted")), f = (x = (b = e == null ? void 0 : e.getChild("translations")) == null ? void 0 : b.attrs) != null && x.value ? xv(
2047
2047
  JSON.parse(e.getChild("translations").attrs.value).translates
2048
- ) : void 0, d = (P = (S = e == null ? void 0 : e.getChild("translate")) == null ? void 0 : S.attrs) == null ? void 0 : P.source, l = (/* @__PURE__ */ new Date(+(a == null ? void 0 : a.slice(0, 13)))).toISOString(), c = (e == null ? void 0 : e.getChild("data")) || (n == null ? void 0 : n.getChild("data")), h = (E = c == null ? void 0 : c.attrs) == null ? void 0 : E.photo, g = {
2048
+ ) : void 0, d = (P = (S = e == null ? void 0 : e.getChild("translate")) == null ? void 0 : S.attrs) == null ? void 0 : P.source, c = (/* @__PURE__ */ new Date(+(a == null ? void 0 : a.slice(0, 13)))).toISOString(), l = (e == null ? void 0 : e.getChild("data")) || (n == null ? void 0 : n.getChild("data")), h = (E = l == null ? void 0 : l.attrs) == null ? void 0 : E.photo, g = {
2049
2049
  id: s,
2050
2050
  photoURL: h
2051
2051
  };
2052
2052
  return {
2053
- data: { ...c == null ? void 0 : c.attrs },
2053
+ data: { ...l == null ? void 0 : l.attrs },
2054
2054
  id: a,
2055
2055
  body: o,
2056
2056
  roomJid: r,
2057
- date: l,
2057
+ date: c,
2058
2058
  user: g,
2059
2059
  deleted: A,
2060
2060
  translations: f,
@@ -2071,7 +2071,7 @@ const xv = (n) => n.reduce((e, i) => (e[i.language] = i, e), {}), Ev = (n, e) =>
2071
2071
  let o;
2072
2072
  const A = () => {
2073
2073
  n.off("stanza", o);
2074
- }, f = new Promise((l, c) => {
2074
+ }, f = new Promise((c, l) => {
2075
2075
  let h = [];
2076
2076
  o = async (v) => {
2077
2077
  var w, C;
@@ -2099,9 +2099,9 @@ const xv = (n) => n.reduce((e, i) => (e[i.language] = i, e), {}), Ev = (n, e) =>
2099
2099
  p.push(B);
2100
2100
  }
2101
2101
  }
2102
- A(), l(p);
2102
+ A(), c(p);
2103
2103
  }
2104
- v.is("iq") && v.attrs.id === a && v.attrs.type === "error" && (A(), c());
2104
+ v.is("iq") && v.attrs.id === a && v.attrs.type === "error" && (A(), l());
2105
2105
  }, n == null || n.on("stanza", o);
2106
2106
  const g = z(
2107
2107
  "iq",
@@ -2128,12 +2128,12 @@ const xv = (n) => n.reduce((e, i) => (e[i.language] = i, e), {}), Ev = (n, e) =>
2128
2128
  f,
2129
2129
  d
2130
2130
  ]);
2131
- } catch (l) {
2132
- return console.log("=-> error in", s, l), [];
2131
+ } catch (c) {
2132
+ return console.log("=-> error in", s, c), [];
2133
2133
  }
2134
- }, Dv = (n, e, i, t, r, s, a, o, A, f, d, l, c) => {
2134
+ }, Dv = (n, e, i, t, r, s, a, o, A, f, d, c, l) => {
2135
2135
  var g;
2136
- const h = c || (A ? `send-reply-message-${Date.now().toString()}` : `send-text-message-${Date.now().toString()}`);
2136
+ const h = l || (A ? `send-reply-message-${Date.now().toString()}` : `send-text-message-${Date.now().toString()}`);
2137
2137
  try {
2138
2138
  const v = z(
2139
2139
  "message",
@@ -2143,7 +2143,7 @@ const xv = (n) => n.reduce((e, i) => (e[i.language] = i, e), {}), Ev = (n, e) =>
2143
2143
  id: h
2144
2144
  },
2145
2145
  z("data", {
2146
- xmlns: `wss://${l || "xmpp.ethoradev.com:5443"}/ws`,
2146
+ xmlns: `wss://${c || "xmpp.ethoradev.com:5443"}/ws`,
2147
2147
  senderFirstName: i,
2148
2148
  senderLastName: t,
2149
2149
  fullName: `${i} ${t}`,
@@ -2187,30 +2187,30 @@ const au = async (n, e, i = 2e3) => {
2187
2187
  let t;
2188
2188
  const r = () => n.off("stanza", t);
2189
2189
  return new Promise(async (s, a) => {
2190
- var d, l;
2190
+ var d, c;
2191
2191
  let o = !1;
2192
- const A = (c, h) => {
2192
+ const A = (l, h) => {
2193
2193
  o || (o = !0, setTimeout(() => {
2194
- r(), c(h);
2194
+ r(), l(h);
2195
2195
  }, i));
2196
2196
  };
2197
- t = (c) => {
2197
+ t = (l) => {
2198
2198
  var h;
2199
- c.is("presence") && c.attrs.id === "presenceInRoom" && ((h = c.attrs.from) != null && h.startsWith(e)) && A(s, c);
2199
+ l.is("presence") && l.attrs.id === "presenceInRoom" && ((h = l.attrs.from) != null && h.startsWith(e)) && A(s, l);
2200
2200
  }, n.on("stanza", t);
2201
2201
  const f = z(
2202
2202
  "presence",
2203
2203
  {
2204
2204
  from: (d = n.jid) == null ? void 0 : d.toString(),
2205
- to: `${e}/${(l = n.jid) == null ? void 0 : l.getLocal()}`,
2205
+ to: `${e}/${(c = n.jid) == null ? void 0 : c.getLocal()}`,
2206
2206
  id: "presenceInRoom"
2207
2207
  },
2208
2208
  z("x", { xmlns: "http://jabber.org/protocol/muc" })
2209
2209
  );
2210
2210
  try {
2211
2211
  await n.send(f);
2212
- } catch (c) {
2213
- return r(), a(c);
2212
+ } catch (l) {
2213
+ return r(), a(l);
2214
2214
  }
2215
2215
  await Yn(
2216
2216
  2e3,
@@ -2255,7 +2255,7 @@ var ou = { exports: {} };
2255
2255
  t.JS_SHA256_NO_WINDOW && (i = !1);
2256
2256
  var r = !i && typeof self == "object", s = !t.JS_SHA256_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
2257
2257
  s ? t = window : r && (t = self);
2258
- var a = !t.JS_SHA256_NO_COMMON_JS && !0 && n.exports, o = !t.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", A = "0123456789abcdef".split(""), f = [-2147483648, 8388608, 32768, 128], d = [24, 16, 8, 0], l = [
2258
+ var a = !t.JS_SHA256_NO_COMMON_JS && !0 && n.exports, o = !t.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", A = "0123456789abcdef".split(""), f = [-2147483648, 8388608, 32768, 128], d = [24, 16, 8, 0], c = [
2259
2259
  1116352408,
2260
2260
  1899447441,
2261
2261
  3049323471,
@@ -2320,7 +2320,7 @@ var ou = { exports: {} };
2320
2320
  2756734187,
2321
2321
  3204031479,
2322
2322
  3329325298
2323
- ], c = ["hex", "array", "digest", "arrayBuffer"], h = [];
2323
+ ], l = ["hex", "array", "digest", "arrayBuffer"], h = [];
2324
2324
  (t.JS_SHA256_NO_NODE_JS || !Array.isArray) && (Array.isArray = function(b) {
2325
2325
  return Object.prototype.toString.call(b) === "[object Array]";
2326
2326
  }), o && (t.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(b) {
@@ -2337,8 +2337,8 @@ var ou = { exports: {} };
2337
2337
  }, x.update = function(E) {
2338
2338
  return x.create().update(E);
2339
2339
  };
2340
- for (var S = 0; S < c.length; ++S) {
2341
- var P = c[S];
2340
+ for (var S = 0; S < l.length; ++S) {
2341
+ var P = l[S];
2342
2342
  x[P] = g(P, b);
2343
2343
  }
2344
2344
  return x;
@@ -2366,8 +2366,8 @@ var ou = { exports: {} };
2366
2366
  }, x.update = function(E, B) {
2367
2367
  return x.create(E).update(B);
2368
2368
  };
2369
- for (var S = 0; S < c.length; ++S) {
2370
- var P = c[S];
2369
+ for (var S = 0; S < l.length; ++S) {
2370
+ var P = l[S];
2371
2371
  x[P] = w(P, b);
2372
2372
  }
2373
2373
  return x;
@@ -2412,7 +2412,7 @@ var ou = { exports: {} };
2412
2412
  for (W = 16; W < 64; ++W)
2413
2413
  V = L[W - 15], H = (V >>> 7 | V << 25) ^ (V >>> 18 | V << 14) ^ V >>> 3, V = L[W - 2], U = (V >>> 17 | V << 15) ^ (V >>> 19 | V << 13) ^ V >>> 10, L[W] = L[W - 16] + H + L[W - 7] + U << 0;
2414
2414
  for (ne = x & S, W = 0; W < 64; W += 4)
2415
- this.first ? (this.is224 ? (T = 300032, V = L[0] - 1413257819, D = V - 150054599 << 0, P = V + 24177077 << 0) : (T = 704751109, V = L[0] - 210244248, D = V - 1521486534 << 0, P = V + 143694565 << 0), this.first = !1) : (H = (b >>> 2 | b << 30) ^ (b >>> 13 | b << 19) ^ (b >>> 22 | b << 10), U = (E >>> 6 | E << 26) ^ (E >>> 11 | E << 21) ^ (E >>> 25 | E << 7), T = b & x, ee = T ^ b & S ^ ne, O = E & B ^ ~E & M, V = D + U + O + l[W] + L[W], j = H + ee, D = P + V << 0, P = V + j << 0), H = (P >>> 2 | P << 30) ^ (P >>> 13 | P << 19) ^ (P >>> 22 | P << 10), U = (D >>> 6 | D << 26) ^ (D >>> 11 | D << 21) ^ (D >>> 25 | D << 7), Q = P & b, ee = Q ^ P & x ^ T, O = D & E ^ ~D & B, V = M + U + O + l[W + 1] + L[W + 1], j = H + ee, M = S + V << 0, S = V + j << 0, H = (S >>> 2 | S << 30) ^ (S >>> 13 | S << 19) ^ (S >>> 22 | S << 10), U = (M >>> 6 | M << 26) ^ (M >>> 11 | M << 21) ^ (M >>> 25 | M << 7), R = S & P, ee = R ^ S & b ^ Q, O = M & D ^ ~M & E, V = B + U + O + l[W + 2] + L[W + 2], j = H + ee, B = x + V << 0, x = V + j << 0, H = (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10), U = (B >>> 6 | B << 26) ^ (B >>> 11 | B << 21) ^ (B >>> 25 | B << 7), ne = x & S, ee = ne ^ x & P ^ R, O = B & M ^ ~B & D, V = E + U + O + l[W + 3] + L[W + 3], j = H + ee, E = b + V << 0, b = V + j << 0, this.chromeBugWorkAround = !0;
2415
+ this.first ? (this.is224 ? (T = 300032, V = L[0] - 1413257819, D = V - 150054599 << 0, P = V + 24177077 << 0) : (T = 704751109, V = L[0] - 210244248, D = V - 1521486534 << 0, P = V + 143694565 << 0), this.first = !1) : (H = (b >>> 2 | b << 30) ^ (b >>> 13 | b << 19) ^ (b >>> 22 | b << 10), U = (E >>> 6 | E << 26) ^ (E >>> 11 | E << 21) ^ (E >>> 25 | E << 7), T = b & x, ee = T ^ b & S ^ ne, O = E & B ^ ~E & M, V = D + U + O + c[W] + L[W], j = H + ee, D = P + V << 0, P = V + j << 0), H = (P >>> 2 | P << 30) ^ (P >>> 13 | P << 19) ^ (P >>> 22 | P << 10), U = (D >>> 6 | D << 26) ^ (D >>> 11 | D << 21) ^ (D >>> 25 | D << 7), Q = P & b, ee = Q ^ P & x ^ T, O = D & E ^ ~D & B, V = M + U + O + c[W + 1] + L[W + 1], j = H + ee, M = S + V << 0, S = V + j << 0, H = (S >>> 2 | S << 30) ^ (S >>> 13 | S << 19) ^ (S >>> 22 | S << 10), U = (M >>> 6 | M << 26) ^ (M >>> 11 | M << 21) ^ (M >>> 25 | M << 7), R = S & P, ee = R ^ S & b ^ Q, O = M & D ^ ~M & E, V = B + U + O + c[W + 2] + L[W + 2], j = H + ee, B = x + V << 0, x = V + j << 0, H = (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10), U = (B >>> 6 | B << 26) ^ (B >>> 11 | B << 21) ^ (B >>> 25 | B << 7), ne = x & S, ee = ne ^ x & P ^ R, O = B & M ^ ~B & D, V = E + U + O + c[W + 3] + L[W + 3], j = H + ee, E = b + V << 0, b = V + j << 0, this.chromeBugWorkAround = !0;
2416
2416
  this.h0 = this.h0 + b << 0, this.h1 = this.h1 + x << 0, this.h2 = this.h2 + S << 0, this.h3 = this.h3 + P << 0, this.h4 = this.h4 + E << 0, this.h5 = this.h5 + B << 0, this.h6 = this.h6 + M << 0, this.h7 = this.h7 + D << 0;
2417
2417
  }, p.prototype.hex = function() {
2418
2418
  this.finalize();
@@ -2501,13 +2501,13 @@ function fu(n, e) {
2501
2501
  if (f.is("presence") && f.attrs.from.split("/")[0] === n) {
2502
2502
  const d = f.getChildren("x");
2503
2503
  if (d.length === 2) {
2504
- const l = d.find(
2505
- (c) => c.attrs.xmlns === "http://jabber.org/protocol/muc#user"
2504
+ const c = d.find(
2505
+ (l) => l.attrs.xmlns === "http://jabber.org/protocol/muc#user"
2506
2506
  );
2507
- if (l) {
2508
- const c = l.getChildren("status");
2509
- c || (t(), o("!statuses"));
2510
- const h = c.map((g) => g.attrs.code);
2507
+ if (c) {
2508
+ const l = c.getChildren("status");
2509
+ l || (t(), o("!statuses"));
2510
+ const h = l.map((g) => g.attrs.code);
2511
2511
  h.includes("201") && h.includes("110") ? (console.log("createRoomPresence:resolve true"), t(), a(!0)) : (console.log(
2512
2512
  "createRoomPresence:reject, such room already exists"
2513
2513
  ), t(), a(!0));
@@ -2559,8 +2559,8 @@ function cu(n, e, i, t) {
2559
2559
  const a = () => {
2560
2560
  t.off("stanza", s);
2561
2561
  }, o = new Promise((f) => {
2562
- s = (l) => {
2563
- l.attrs.id === r && l.attrs.type === "result" && (a(), f(!0));
2562
+ s = (c) => {
2563
+ c.attrs.id === r && c.attrs.type === "result" && (a(), f(!0));
2564
2564
  }, t.on("stanza", s);
2565
2565
  const d = z(
2566
2566
  "iq",
@@ -2799,7 +2799,7 @@ function wA(n, e, i) {
2799
2799
  throw new Error(process.env.NODE_ENV === "production" ? Se(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
2800
2800
  return r;
2801
2801
  }
2802
- function l(m) {
2802
+ function c(m) {
2803
2803
  if (typeof m != "function")
2804
2804
  throw new Error(process.env.NODE_ENV === "production" ? Se(4) : `Expected the listener to be a function. Instead, received: '${Un(m)}'`);
2805
2805
  if (A)
@@ -2815,7 +2815,7 @@ function wA(n, e, i) {
2815
2815
  }
2816
2816
  };
2817
2817
  }
2818
- function c(m) {
2818
+ function l(m) {
2819
2819
  if (!jt(m))
2820
2820
  throw new Error(process.env.NODE_ENV === "production" ? Se(7) : `Actions must be plain objects. Instead, the actual type was: '${Un(m)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
2821
2821
  if (typeof m.type > "u")
@@ -2836,12 +2836,12 @@ function wA(n, e, i) {
2836
2836
  function h(m) {
2837
2837
  if (typeof m != "function")
2838
2838
  throw new Error(process.env.NODE_ENV === "production" ? Se(10) : `Expected the nextReducer to be a function. Instead, received: '${Un(m)}`);
2839
- t = m, c({
2839
+ t = m, l({
2840
2840
  type: bi.REPLACE
2841
2841
  });
2842
2842
  }
2843
2843
  function g() {
2844
- const m = l;
2844
+ const m = c;
2845
2845
  return {
2846
2846
  /**
2847
2847
  * The minimal observable subscription method.
@@ -2867,11 +2867,11 @@ function wA(n, e, i) {
2867
2867
  }
2868
2868
  };
2869
2869
  }
2870
- return c({
2870
+ return l({
2871
2871
  type: bi.INIT
2872
2872
  }), {
2873
- dispatch: c,
2874
- subscribe: l,
2873
+ dispatch: l,
2874
+ subscribe: c,
2875
2875
  getState: d,
2876
2876
  replaceReducer: h,
2877
2877
  [qf]: g
@@ -2928,18 +2928,18 @@ function uu(n) {
2928
2928
  if (s)
2929
2929
  throw s;
2930
2930
  if (process.env.NODE_ENV !== "production") {
2931
- const l = qv(o, i, A, r);
2932
- l && Vf(l);
2931
+ const c = qv(o, i, A, r);
2932
+ c && Vf(c);
2933
2933
  }
2934
2934
  let f = !1;
2935
2935
  const d = {};
2936
- for (let l = 0; l < t.length; l++) {
2937
- const c = t[l], h = i[c], g = o[c], v = h(g, A);
2936
+ for (let c = 0; c < t.length; c++) {
2937
+ const l = t[c], h = i[l], g = o[l], v = h(g, A);
2938
2938
  if (typeof v > "u") {
2939
2939
  const m = A && A.type;
2940
- throw new Error(process.env.NODE_ENV === "production" ? Se(14) : `When called with an action of type ${m ? `"${String(m)}"` : "(unknown type)"}, the slice reducer for key "${c}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
2940
+ throw new Error(process.env.NODE_ENV === "production" ? Se(14) : `When called with an action of type ${m ? `"${String(m)}"` : "(unknown type)"}, the slice reducer for key "${l}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
2941
2941
  }
2942
- d[c] = v, f = f || v !== g;
2942
+ d[l] = v, f = f || v !== g;
2943
2943
  }
2944
2944
  return f = f || t.length !== Object.keys(o).length, f ? d : o;
2945
2945
  };
@@ -3544,11 +3544,11 @@ function kA(n, e = {}) {
3544
3544
  const { resultEqualityCheck: t } = e;
3545
3545
  let r, s = 0;
3546
3546
  function a() {
3547
- var l;
3547
+ var c;
3548
3548
  let o = i;
3549
3549
  const { length: A } = arguments;
3550
- for (let c = 0, h = A; c < h; c++) {
3551
- const g = arguments[c];
3550
+ for (let l = 0, h = A; l < h; l++) {
3551
+ const g = arguments[l];
3552
3552
  if (typeof g == "function" || typeof g == "object" && g !== null) {
3553
3553
  let v = o.o;
3554
3554
  v === null && (o.o = v = /* @__PURE__ */ new WeakMap());
@@ -3566,8 +3566,8 @@ function kA(n, e = {}) {
3566
3566
  if (o.s === ed)
3567
3567
  d = o.v;
3568
3568
  else if (d = n.apply(null, arguments), s++, t) {
3569
- const c = ((l = r == null ? void 0 : r.deref) == null ? void 0 : l.call(r)) ?? r;
3570
- c != null && t(c, d) && (d = c, s !== 0 && s--), r = typeof d == "object" && d !== null || typeof d == "function" ? new u2(d) : d;
3569
+ const l = ((c = r == null ? void 0 : r.deref) == null ? void 0 : c.call(r)) ?? r;
3570
+ l != null && t(l, d) && (d = l, s !== 0 && s--), r = typeof d == "object" && d !== null || typeof d == "function" ? new u2(d) : d;
3571
3571
  }
3572
3572
  return f.s = ed, f.v = d, d;
3573
3573
  }
@@ -3591,12 +3591,12 @@ function Cu(n, ...e) {
3591
3591
  ...i,
3592
3592
  ...A
3593
3593
  }, {
3594
- memoize: l,
3595
- memoizeOptions: c = [],
3594
+ memoize: c,
3595
+ memoizeOptions: l = [],
3596
3596
  argsMemoize: h = kA,
3597
3597
  argsMemoizeOptions: g = [],
3598
3598
  devModeChecks: v = {}
3599
- } = d, m = _f(c), w = _f(g), C = d2(r), p = l(function() {
3599
+ } = d, m = _f(l), w = _f(g), C = d2(r), p = c(function() {
3600
3600
  return s++, f.apply(
3601
3601
  null,
3602
3602
  arguments
@@ -3622,7 +3622,7 @@ function Cu(n, ...e) {
3622
3622
  );
3623
3623
  P.run(
3624
3624
  { inputSelectorResults: x, inputSelectorResultsCopy: E },
3625
- { memoize: l, memoizeOptions: m },
3625
+ { memoize: c, memoizeOptions: m },
3626
3626
  arguments
3627
3627
  );
3628
3628
  }
@@ -3643,7 +3643,7 @@ function Cu(n, ...e) {
3643
3643
  resetRecomputations: () => {
3644
3644
  s = 0;
3645
3645
  },
3646
- memoize: l,
3646
+ memoize: c,
3647
3647
  argsMemoize: h
3648
3648
  });
3649
3649
  };
@@ -3814,12 +3814,12 @@ function Iu(n, e = [], i, t, r = !1, s = "") {
3814
3814
  A[d] = !0;
3815
3815
  const f = e.length > 0;
3816
3816
  for (let d in A) {
3817
- const l = s ? s + "." + d : d;
3818
- if (f && e.some((g) => g instanceof RegExp ? g.test(l) : l === g))
3817
+ const c = s ? s + "." + d : d;
3818
+ if (f && e.some((g) => g instanceof RegExp ? g.test(c) : c === g))
3819
3819
  continue;
3820
- const c = Iu(n, e, i.children[d], t[d], o, l);
3821
- if (c.wasMutated)
3822
- return c;
3820
+ const l = Iu(n, e, i.children[d], t[d], o, c);
3821
+ if (l.wasMutated)
3822
+ return l;
3823
3823
  }
3824
3824
  return {
3825
3825
  wasMutated: !1
@@ -3833,15 +3833,15 @@ function D2(n = {}) {
3833
3833
  return JSON.stringify(o, i(A, d), f);
3834
3834
  }, i = function(o, A) {
3835
3835
  let f = [], d = [];
3836
- return A || (A = function(l, c) {
3837
- return f[0] === c ? "[Circular ~]" : "[Circular ~." + d.slice(0, f.indexOf(c)).join(".") + "]";
3838
- }), function(l, c) {
3836
+ return A || (A = function(c, l) {
3837
+ return f[0] === l ? "[Circular ~]" : "[Circular ~." + d.slice(0, f.indexOf(l)).join(".") + "]";
3838
+ }), function(c, l) {
3839
3839
  if (f.length > 0) {
3840
3840
  var h = f.indexOf(this);
3841
- ~h ? f.splice(h + 1) : f.push(this), ~h ? d.splice(h, 1 / 0, l) : d.push(l), ~f.indexOf(c) && (c = A.call(this, l, c));
3841
+ ~h ? f.splice(h + 1) : f.push(this), ~h ? d.splice(h, 1 / 0, c) : d.push(c), ~f.indexOf(l) && (l = A.call(this, c, l));
3842
3842
  } else
3843
- f.push(c);
3844
- return o == null ? c : o.call(this, l, c);
3843
+ f.push(l);
3844
+ return o == null ? l : o.call(this, c, l);
3845
3845
  };
3846
3846
  }, {
3847
3847
  isImmutable: t = E2,
@@ -3853,16 +3853,16 @@ function D2(n = {}) {
3853
3853
  getState: o
3854
3854
  }) => {
3855
3855
  let A = o(), f = a(A), d;
3856
- return (l) => (c) => {
3856
+ return (c) => (l) => {
3857
3857
  const h = Eu(s, "ImmutableStateInvariantMiddleware");
3858
3858
  h.measureTime(() => {
3859
3859
  if (A = o(), d = f.detectMutations(), f = a(A), d.wasMutated)
3860
3860
  throw new Error(process.env.NODE_ENV === "production" ? he(19) : `A state mutation was detected between dispatches, in the path '${d.path || ""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
3861
3861
  });
3862
- const g = l(c);
3862
+ const g = c(l);
3863
3863
  return h.measureTime(() => {
3864
3864
  if (A = o(), d = f.detectMutations(), f = a(A), d.wasMutated)
3865
- throw new Error(process.env.NODE_ENV === "production" ? he(20) : `A state mutation was detected inside a dispatch, in the path: ${d.path || ""}. Take a look at the reducer(s) handling the action ${e(c)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
3865
+ throw new Error(process.env.NODE_ENV === "production" ? he(20) : `A state mutation was detected inside a dispatch, in the path: ${d.path || ""}. Take a look at the reducer(s) handling the action ${e(l)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
3866
3866
  }), h.warnIfExceeded(), g;
3867
3867
  };
3868
3868
  };
@@ -3883,14 +3883,14 @@ function po(n, e = "", i = Nu, t, r = [], s) {
3883
3883
  return !1;
3884
3884
  const o = t != null ? t(n) : Object.entries(n), A = r.length > 0;
3885
3885
  for (const [f, d] of o) {
3886
- const l = e ? e + "." + f : f;
3887
- if (!(A && r.some((h) => h instanceof RegExp ? h.test(l) : l === h))) {
3886
+ const c = e ? e + "." + f : f;
3887
+ if (!(A && r.some((h) => h instanceof RegExp ? h.test(c) : c === h))) {
3888
3888
  if (!i(d))
3889
3889
  return {
3890
- keyPath: l,
3890
+ keyPath: c,
3891
3891
  value: d
3892
3892
  };
3893
- if (typeof d == "object" && (a = po(d, l, i, t, r, s), a))
3893
+ if (typeof d == "object" && (a = po(d, c, i, t, r, s), a))
3894
3894
  return a;
3895
3895
  }
3896
3896
  }
@@ -3919,10 +3919,10 @@ function I2(n = {}) {
3919
3919
  ignoreActions: A = !1,
3920
3920
  disableCache: f = !1
3921
3921
  } = n, d = !f && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
3922
- return (l) => (c) => (h) => {
3922
+ return (c) => (l) => (h) => {
3923
3923
  if (!hu(h))
3924
- return c(h);
3925
- const g = c(h), v = Eu(a, "SerializableStateInvariantMiddleware");
3924
+ return l(h);
3925
+ const g = l(h), v = Eu(a, "SerializableStateInvariantMiddleware");
3926
3926
  return !A && !(t.length && t.indexOf(h.type) !== -1) && v.measureTime(() => {
3927
3927
  const m = po(h, "", e, i, r, d);
3928
3928
  if (m) {
@@ -3936,7 +3936,7 @@ Take a look at the logic that dispatched this action: `, h, `
3936
3936
  (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
3937
3937
  }
3938
3938
  }), o || (v.measureTime(() => {
3939
- const m = l.getState(), w = po(m, "", e, i, s, d);
3939
+ const m = c.getState(), w = po(m, "", e, i, s, d);
3940
3940
  if (w) {
3941
3941
  const {
3942
3942
  keyPath: C,
@@ -3990,17 +3990,17 @@ var N2 = () => function(e) {
3990
3990
  // Override the base `store.subscribe` method to keep original listeners
3991
3991
  // from running if we're delaying notifications
3992
3992
  subscribe(d) {
3993
- const l = () => r && d(), c = t.subscribe(l);
3993
+ const c = () => r && d(), l = t.subscribe(c);
3994
3994
  return o.add(d), () => {
3995
- c(), o.delete(d);
3995
+ l(), o.delete(d);
3996
3996
  };
3997
3997
  },
3998
3998
  // Override the base `store.dispatch` method so that we can check actions
3999
3999
  // for the `shouldAutoBatch` flag and determine if batching is active
4000
4000
  dispatch(d) {
4001
- var l;
4001
+ var c;
4002
4002
  try {
4003
- return r = !((l = d == null ? void 0 : d.meta) != null && l[S2]), s = !r, s && (a || (a = !0, A(f))), t.dispatch(d);
4003
+ return r = !((c = d == null ? void 0 : d.meta) != null && c[S2]), s = !r, s && (a || (a = !0, A(f))), t.dispatch(d);
4004
4004
  } finally {
4005
4005
  r = !0;
4006
4006
  }
@@ -4044,16 +4044,16 @@ function T2(n) {
4044
4044
  trace: !zn,
4045
4045
  ...typeof r == "object" && r
4046
4046
  }));
4047
- const d = Uv(...A), l = M2(d);
4047
+ const d = Uv(...A), c = M2(d);
4048
4048
  if (!zn && a && typeof a != "function")
4049
4049
  throw new Error(process.env.NODE_ENV === "production" ? he(5) : "`enhancers` field must be a callback");
4050
- let c = typeof a == "function" ? a(l) : l();
4051
- if (!zn && !Array.isArray(c))
4050
+ let l = typeof a == "function" ? a(c) : c();
4051
+ if (!zn && !Array.isArray(l))
4052
4052
  throw new Error(process.env.NODE_ENV === "production" ? he(6) : "`enhancers` callback must return an array");
4053
- if (!zn && c.some((g) => typeof g != "function"))
4053
+ if (!zn && l.some((g) => typeof g != "function"))
4054
4054
  throw new Error(process.env.NODE_ENV === "production" ? he(7) : "each enhancer provided to configureStore must be a function");
4055
- !zn && A.length && !c.includes(d) && console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
4056
- const h = f(...c);
4055
+ !zn && A.length && !l.includes(d) && console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
4056
+ const h = f(...l);
4057
4057
  return wA(o, s, h);
4058
4058
  }
4059
4059
  function Ou(n) {
@@ -4109,22 +4109,22 @@ function Q2(n, e) {
4109
4109
  }) => d(A)).map(({
4110
4110
  reducer: d
4111
4111
  }) => d)];
4112
- return f.filter((d) => !!d).length === 0 && (f = [r]), f.reduce((d, l) => {
4113
- if (l)
4112
+ return f.filter((d) => !!d).length === 0 && (f = [r]), f.reduce((d, c) => {
4113
+ if (c)
4114
4114
  if (ri(d)) {
4115
- const h = l(d, A);
4115
+ const h = c(d, A);
4116
4116
  return h === void 0 ? d : h;
4117
4117
  } else {
4118
4118
  if (Qn(d))
4119
- return ku(d, (c) => l(c, A));
4119
+ return ku(d, (l) => c(l, A));
4120
4120
  {
4121
- const c = l(d, A);
4122
- if (c === void 0) {
4121
+ const l = c(d, A);
4122
+ if (l === void 0) {
4123
4123
  if (d === null)
4124
4124
  return d;
4125
4125
  throw new Error(process.env.NODE_ENV === "production" ? he(9) : "A case reducer on a non-draftable value must not return undefined");
4126
4126
  }
4127
- return c;
4127
+ return l;
4128
4128
  }
4129
4129
  }
4130
4130
  return d;
@@ -4189,7 +4189,7 @@ function Y2({
4189
4189
  };
4190
4190
  q2(k) ? U2(y, k, d, e) : z2(y, k, d);
4191
4191
  });
4192
- function l() {
4192
+ function c() {
4193
4193
  if (process.env.NODE_ENV !== "production" && typeof r.extraReducers == "object")
4194
4194
  throw new Error(process.env.NODE_ENV === "production" ? he(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
4195
4195
  const [p = {}, k = [], y = void 0] = typeof r.extraReducers == "function" ? Ou(r.extraReducers) : [r.extraReducers], b = {
@@ -4206,13 +4206,13 @@ function Y2({
4206
4206
  y && x.addDefaultCase(y);
4207
4207
  });
4208
4208
  }
4209
- const c = (p) => p, h = /* @__PURE__ */ new Map();
4209
+ const l = (p) => p, h = /* @__PURE__ */ new Map();
4210
4210
  let g;
4211
4211
  function v(p, k) {
4212
- return g || (g = l()), g(p, k);
4212
+ return g || (g = c()), g(p, k);
4213
4213
  }
4214
4214
  function m() {
4215
- return g || (g = l()), g.getInitialState();
4215
+ return g || (g = c()), g.getInitialState();
4216
4216
  }
4217
4217
  function w(p, k = !1) {
4218
4218
  function y(x) {
@@ -4225,7 +4225,7 @@ function Y2({
4225
4225
  }
4226
4226
  return S;
4227
4227
  }
4228
- function b(x = c) {
4228
+ function b(x = l) {
4229
4229
  const S = id(h, k, {
4230
4230
  insert: () => /* @__PURE__ */ new WeakMap()
4231
4231
  });
@@ -4349,8 +4349,8 @@ function U2({
4349
4349
  rejected: A,
4350
4350
  settled: f,
4351
4351
  options: d
4352
- } = i, l = r(n, s, d);
4353
- t.exposeAction(e, l), a && t.addCase(l.fulfilled, a), o && t.addCase(l.pending, o), A && t.addCase(l.rejected, A), f && t.addMatcher(l.settled, f), t.exposeCaseReducer(e, {
4352
+ } = i, c = r(n, s, d);
4353
+ t.exposeAction(e, c), a && t.addCase(c.fulfilled, a), o && t.addCase(c.pending, o), A && t.addCase(c.rejected, A), f && t.addMatcher(c.settled, f), t.exposeCaseReducer(e, {
4354
4354
  fulfilled: a || tr,
4355
4355
  pending: o || tr,
4356
4356
  rejected: A || tr,
@@ -4560,7 +4560,7 @@ const pa = (n) => {
4560
4560
  setConfig: ew,
4561
4561
  refreshTokens: ju,
4562
4562
  logout: Ns,
4563
- setActiveModal: Qe,
4563
+ setActiveModal: Re,
4564
4564
  setDeleteModal: Xr,
4565
4565
  setSelectedUser: xA,
4566
4566
  updateUser: nw,
@@ -4711,7 +4711,7 @@ const aw = {
4711
4711
  };
4712
4712
  if (s.length === 0 || r) {
4713
4713
  const d = s.findIndex(
4714
- (l) => l.id === t.xmppId
4714
+ (c) => c.id === t.xmppId
4715
4715
  );
4716
4716
  d !== -1 ? s[d] = {
4717
4717
  ...A,
@@ -4830,16 +4830,16 @@ const mw = (n) => (e) => (i) => {
4830
4830
  var f, d;
4831
4831
  const A = s[o];
4832
4832
  if (A.lastViewedTimestamp !== 0 && o !== a) {
4833
- const l = ((f = A.messages) == null ? void 0 : f.length) || 0;
4834
- if (sd[o] !== l) {
4835
- sd[o] = l;
4836
- const c = (d = A.messages) == null ? void 0 : d.filter(
4833
+ const c = ((f = A.messages) == null ? void 0 : f.length) || 0;
4834
+ if (sd[o] !== c) {
4835
+ sd[o] = c;
4836
+ const l = (d = A.messages) == null ? void 0 : d.filter(
4837
4837
  (h) => h.id !== "delimiter-new" && new Date(h.date).getTime() > (A.lastViewedTimestamp || 0)
4838
4838
  ).length;
4839
- A.unreadMessages !== c && n.dispatch(
4839
+ A.unreadMessages !== l && n.dispatch(
4840
4840
  Tn({
4841
4841
  jid: o,
4842
- updates: { unreadMessages: c }
4842
+ updates: { unreadMessages: l }
4843
4843
  })
4844
4844
  );
4845
4845
  }
@@ -4959,19 +4959,19 @@ function Sw(n) {
4959
4959
  n.serialize === !1 ? o = function(y) {
4960
4960
  return y;
4961
4961
  } : typeof n.serialize == "function" ? o = n.serialize : o = Pw;
4962
- var A = n.writeFailHandler || null, f = {}, d = {}, l = [], c = null, h = null, g = function(y) {
4962
+ var A = n.writeFailHandler || null, f = {}, d = {}, c = [], l = null, h = null, g = function(y) {
4963
4963
  Object.keys(y).forEach(function(b) {
4964
- w(b) && f[b] !== y[b] && l.indexOf(b) === -1 && l.push(b);
4964
+ w(b) && f[b] !== y[b] && c.indexOf(b) === -1 && c.push(b);
4965
4965
  }), Object.keys(f).forEach(function(b) {
4966
- y[b] === void 0 && w(b) && l.indexOf(b) === -1 && f[b] !== void 0 && l.push(b);
4967
- }), c === null && (c = setInterval(v, r)), f = y;
4966
+ y[b] === void 0 && w(b) && c.indexOf(b) === -1 && f[b] !== void 0 && c.push(b);
4967
+ }), l === null && (l = setInterval(v, r)), f = y;
4968
4968
  };
4969
4969
  function v() {
4970
- if (l.length === 0) {
4971
- c && clearInterval(c), c = null;
4970
+ if (c.length === 0) {
4971
+ l && clearInterval(l), l = null;
4972
4972
  return;
4973
4973
  }
4974
- var k = l.shift(), y = t.reduce(function(b, x) {
4974
+ var k = c.shift(), y = t.reduce(function(b, x) {
4975
4975
  return x.in(b, k, f);
4976
4976
  }, f[k]);
4977
4977
  if (y !== void 0)
@@ -4982,7 +4982,7 @@ function Sw(n) {
4982
4982
  }
4983
4983
  else
4984
4984
  delete d[k];
4985
- l.length === 0 && m();
4985
+ c.length === 0 && m();
4986
4986
  }
4987
4987
  function m() {
4988
4988
  Object.keys(d).forEach(function(k) {
@@ -4996,7 +4996,7 @@ function Sw(n) {
4996
4996
  A && A(k), k && process.env.NODE_ENV !== "production" && console.error("Error storing data", k);
4997
4997
  }
4998
4998
  var p = function() {
4999
- for (; l.length !== 0; )
4999
+ for (; c.length !== 0; )
5000
5000
  v();
5001
5001
  return h || Promise.resolve();
5002
5002
  };
@@ -5016,8 +5016,8 @@ function Ow(n) {
5016
5016
  if (a) try {
5017
5017
  var o = {}, A = s(a);
5018
5018
  return Object.keys(A).forEach(function(f) {
5019
- o[f] = e.reduceRight(function(d, l) {
5020
- return l.out(d, f, A);
5019
+ o[f] = e.reduceRight(function(d, c) {
5020
+ return c.out(d, f, A);
5021
5021
  }, s(A[f]));
5022
5022
  }), o;
5023
5023
  } catch (f) {
@@ -5087,23 +5087,23 @@ function vo(n, e) {
5087
5087
  }
5088
5088
  var i = n.version !== void 0 ? n.version : Bw;
5089
5089
  n.debug;
5090
- var t = n.stateReconciler === void 0 ? Nw : n.stateReconciler, r = n.getStoredState || Ow, s = n.timeout !== void 0 ? n.timeout : Lw, a = null, o = !1, A = !0, f = function(l) {
5091
- return l._persist.rehydrated && a && !A && a.update(l), l;
5090
+ var t = n.stateReconciler === void 0 ? Nw : n.stateReconciler, r = n.getStoredState || Ow, s = n.timeout !== void 0 ? n.timeout : Lw, a = null, o = !1, A = !0, f = function(c) {
5091
+ return c._persist.rehydrated && a && !A && a.update(c), c;
5092
5092
  };
5093
- return function(d, l) {
5094
- var c = d || {}, h = c._persist, g = Rw(c, ["_persist"]), v = g;
5095
- if (l.type === zu) {
5093
+ return function(d, c) {
5094
+ var l = d || {}, h = l._persist, g = Rw(l, ["_persist"]), v = g;
5095
+ if (c.type === zu) {
5096
5096
  var m = !1, w = function(S, P) {
5097
- process.env.NODE_ENV !== "production" && m && console.error('redux-persist: rehydrate for "'.concat(n.key, '" called after timeout.'), S, P), m || (l.rehydrate(n.key, S, P), m = !0);
5097
+ process.env.NODE_ENV !== "production" && m && console.error('redux-persist: rehydrate for "'.concat(n.key, '" called after timeout.'), S, P), m || (c.rehydrate(n.key, S, P), m = !0);
5098
5098
  };
5099
5099
  if (s && setTimeout(function() {
5100
5100
  !m && w(void 0, new Error('redux-persist: persist timed out for persist key "'.concat(n.key, '"')));
5101
5101
  }, s), A = !1, a || (a = Sw(n)), h)
5102
- return xn({}, e(v, l), {
5102
+ return xn({}, e(v, c), {
5103
5103
  _persist: h
5104
5104
  });
5105
- if (typeof l.rehydrate != "function" || typeof l.register != "function") throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");
5106
- return l.register(n.key), r(n).then(function(x) {
5105
+ if (typeof c.rehydrate != "function" || typeof c.register != "function") throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");
5106
+ return c.register(n.key), r(n).then(function(x) {
5107
5107
  var S = n.migrate || function(P, E) {
5108
5108
  return Promise.resolve(P);
5109
5109
  };
@@ -5114,32 +5114,32 @@ function vo(n, e) {
5114
5114
  });
5115
5115
  }, function(x) {
5116
5116
  w(void 0, x);
5117
- }), xn({}, e(v, l), {
5117
+ }), xn({}, e(v, c), {
5118
5118
  _persist: {
5119
5119
  version: i,
5120
5120
  rehydrated: !1
5121
5121
  }
5122
5122
  });
5123
5123
  } else {
5124
- if (l.type === qu)
5125
- return o = !0, l.result(Tw(n)), xn({}, e(v, l), {
5124
+ if (c.type === qu)
5125
+ return o = !0, c.result(Tw(n)), xn({}, e(v, c), {
5126
5126
  _persist: h
5127
5127
  });
5128
- if (l.type === Hu)
5129
- return l.result(a && a.flush()), xn({}, e(v, l), {
5128
+ if (c.type === Hu)
5129
+ return c.result(a && a.flush()), xn({}, e(v, c), {
5130
5130
  _persist: h
5131
5131
  });
5132
- if (l.type === Gu)
5132
+ if (c.type === Gu)
5133
5133
  A = !0;
5134
- else if (l.type === PA) {
5134
+ else if (c.type === PA) {
5135
5135
  if (o) return xn({}, v, {
5136
5136
  _persist: xn({}, h, {
5137
5137
  rehydrated: !0
5138
5138
  })
5139
5139
  // @NOTE if key does not match, will continue to default else below
5140
5140
  });
5141
- if (l.key === n.key) {
5142
- var C = e(v, l), p = l.payload, k = t !== !1 && p !== void 0 ? t(p, d, C, n) : C, y = xn({}, k, {
5141
+ if (c.key === n.key) {
5142
+ var C = e(v, c), p = c.payload, k = t !== !1 && p !== void 0 ? t(p, d, C, n) : C, y = xn({}, k, {
5143
5143
  _persist: xn({}, h, {
5144
5144
  rehydrated: !0
5145
5145
  })
@@ -5148,8 +5148,8 @@ function vo(n, e) {
5148
5148
  }
5149
5149
  }
5150
5150
  }
5151
- if (!h) return e(d, l);
5152
- var b = e(v, l);
5151
+ if (!h) return e(d, c);
5152
+ var b = e(v, c);
5153
5153
  return b === v ? d : f(xn({}, b, {
5154
5154
  _persist: h
5155
5155
  }));
@@ -5227,11 +5227,11 @@ function qw(n, e, i) {
5227
5227
  type: Vu,
5228
5228
  key: d
5229
5229
  });
5230
- }, o = function(d, l, c) {
5230
+ }, o = function(d, c, l) {
5231
5231
  var h = {
5232
5232
  type: PA,
5233
- payload: l,
5234
- err: c,
5233
+ payload: c,
5234
+ err: l,
5235
5235
  key: d
5236
5236
  // dispatch to `store` to rehydrate and `persistor` to track result
5237
5237
  };
@@ -5241,8 +5241,8 @@ function qw(n, e, i) {
5241
5241
  var d = [];
5242
5242
  return n.dispatch({
5243
5243
  type: qu,
5244
- result: function(c) {
5245
- d.push(c);
5244
+ result: function(l) {
5245
+ d.push(l);
5246
5246
  }
5247
5247
  }), Promise.all(d);
5248
5248
  },
@@ -5250,8 +5250,8 @@ function qw(n, e, i) {
5250
5250
  var d = [];
5251
5251
  return n.dispatch({
5252
5252
  type: Hu,
5253
- result: function(c) {
5254
- d.push(c);
5253
+ result: function(l) {
5254
+ d.push(l);
5255
5255
  }
5256
5256
  }), Promise.all(d);
5257
5257
  },
@@ -5438,7 +5438,7 @@ function Ai() {
5438
5438
  return this.init.prototype.extend(this);
5439
5439
  }
5440
5440
  };
5441
- }(), l = f.WordArray = d.extend({
5441
+ }(), c = f.WordArray = d.extend({
5442
5442
  /**
5443
5443
  * Initializes a newly created word array.
5444
5444
  *
@@ -5533,9 +5533,9 @@ function Ai() {
5533
5533
  random: function(C) {
5534
5534
  for (var p = [], k = 0; k < C; k += 4)
5535
5535
  p.push(a());
5536
- return new l.init(p, C);
5536
+ return new c.init(p, C);
5537
5537
  }
5538
- }), c = A.enc = {}, h = c.Hex = {
5538
+ }), l = A.enc = {}, h = l.Hex = {
5539
5539
  /**
5540
5540
  * Converts a word array to a hex string.
5541
5541
  *
@@ -5572,9 +5572,9 @@ function Ai() {
5572
5572
  parse: function(C) {
5573
5573
  for (var p = C.length, k = [], y = 0; y < p; y += 2)
5574
5574
  k[y >>> 3] |= parseInt(C.substr(y, 2), 16) << 24 - y % 8 * 4;
5575
- return new l.init(k, p / 2);
5575
+ return new c.init(k, p / 2);
5576
5576
  }
5577
- }, g = c.Latin1 = {
5577
+ }, g = l.Latin1 = {
5578
5578
  /**
5579
5579
  * Converts a word array to a Latin1 string.
5580
5580
  *
@@ -5611,9 +5611,9 @@ function Ai() {
5611
5611
  parse: function(C) {
5612
5612
  for (var p = C.length, k = [], y = 0; y < p; y++)
5613
5613
  k[y >>> 2] |= (C.charCodeAt(y) & 255) << 24 - y % 4 * 8;
5614
- return new l.init(k, p);
5614
+ return new c.init(k, p);
5615
5615
  }
5616
- }, v = c.Utf8 = {
5616
+ }, v = l.Utf8 = {
5617
5617
  /**
5618
5618
  * Converts a word array to a UTF-8 string.
5619
5619
  *
@@ -5659,7 +5659,7 @@ function Ai() {
5659
5659
  * bufferedBlockAlgorithm.reset();
5660
5660
  */
5661
5661
  reset: function() {
5662
- this._data = new l.init(), this._nDataBytes = 0;
5662
+ this._data = new c.init(), this._nDataBytes = 0;
5663
5663
  },
5664
5664
  /**
5665
5665
  * Adds new data to this block algorithm's buffer.
@@ -5697,7 +5697,7 @@ function Ai() {
5697
5697
  this._doProcessBlock(y, M);
5698
5698
  p = y.splice(0, E), k.sigBytes -= B;
5699
5699
  }
5700
- return new l.init(p, B);
5700
+ return new c.init(p, B);
5701
5701
  },
5702
5702
  /**
5703
5703
  * Creates a copy of this object.
@@ -5843,16 +5843,16 @@ function Jw() {
5843
5843
  * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
5844
5844
  */
5845
5845
  stringify: function(A) {
5846
- var f = A.words, d = A.sigBytes, l = this._map;
5846
+ var f = A.words, d = A.sigBytes, c = this._map;
5847
5847
  A.clamp();
5848
- for (var c = [], h = 0; h < d; h += 3)
5848
+ for (var l = [], h = 0; h < d; h += 3)
5849
5849
  for (var g = f[h >>> 2] >>> 24 - h % 4 * 8 & 255, v = f[h + 1 >>> 2] >>> 24 - (h + 1) % 4 * 8 & 255, m = f[h + 2 >>> 2] >>> 24 - (h + 2) % 4 * 8 & 255, w = g << 16 | v << 8 | m, C = 0; C < 4 && h + C * 0.75 < d; C++)
5850
- c.push(l.charAt(w >>> 6 * (3 - C) & 63));
5851
- var p = l.charAt(64);
5850
+ l.push(c.charAt(w >>> 6 * (3 - C) & 63));
5851
+ var p = c.charAt(64);
5852
5852
  if (p)
5853
- for (; c.length % 4; )
5854
- c.push(p);
5855
- return c.join("");
5853
+ for (; l.length % 4; )
5854
+ l.push(p);
5855
+ return l.join("");
5856
5856
  },
5857
5857
  /**
5858
5858
  * Converts a Base64 string to a word array.
@@ -5868,28 +5868,28 @@ function Jw() {
5868
5868
  * var wordArray = CryptoJS.enc.Base64.parse(base64String);
5869
5869
  */
5870
5870
  parse: function(A) {
5871
- var f = A.length, d = this._map, l = this._reverseMap;
5872
- if (!l) {
5873
- l = this._reverseMap = [];
5874
- for (var c = 0; c < d.length; c++)
5875
- l[d.charCodeAt(c)] = c;
5871
+ var f = A.length, d = this._map, c = this._reverseMap;
5872
+ if (!c) {
5873
+ c = this._reverseMap = [];
5874
+ for (var l = 0; l < d.length; l++)
5875
+ c[d.charCodeAt(l)] = l;
5876
5876
  }
5877
5877
  var h = d.charAt(64);
5878
5878
  if (h) {
5879
5879
  var g = A.indexOf(h);
5880
5880
  g !== -1 && (f = g);
5881
5881
  }
5882
- return o(A, f, l);
5882
+ return o(A, f, c);
5883
5883
  },
5884
5884
  _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
5885
5885
  };
5886
5886
  function o(A, f, d) {
5887
- for (var l = [], c = 0, h = 0; h < f; h++)
5887
+ for (var c = [], l = 0, h = 0; h < f; h++)
5888
5888
  if (h % 4) {
5889
5889
  var g = d[A.charCodeAt(h - 1)] << h % 4 * 2, v = d[A.charCodeAt(h)] >>> 6 - h % 4 * 2, m = g | v;
5890
- l[c >>> 2] |= m << 24 - c % 4 * 8, c++;
5890
+ c[l >>> 2] |= m << 24 - l % 4 * 8, l++;
5891
5891
  }
5892
- return s.create(l, c);
5892
+ return s.create(c, l);
5893
5893
  }
5894
5894
  }(), i.enc.Base64;
5895
5895
  });
@@ -5922,7 +5922,7 @@ function Kw() {
5922
5922
  v[C] = (p << 8 | p >>> 24) & 16711935 | (p << 24 | p >>> 8) & 4278255360;
5923
5923
  }
5924
5924
  var k = this._hash.words, y = v[m + 0], b = v[m + 1], x = v[m + 2], S = v[m + 3], P = v[m + 4], E = v[m + 5], B = v[m + 6], M = v[m + 7], D = v[m + 8], L = v[m + 9], W = v[m + 10], H = v[m + 11], U = v[m + 12], ee = v[m + 13], V = v[m + 14], j = v[m + 15], O = k[0], T = k[1], Q = k[2], R = k[3];
5925
- O = l(O, T, Q, R, y, 7, f[0]), R = l(R, O, T, Q, b, 12, f[1]), Q = l(Q, R, O, T, x, 17, f[2]), T = l(T, Q, R, O, S, 22, f[3]), O = l(O, T, Q, R, P, 7, f[4]), R = l(R, O, T, Q, E, 12, f[5]), Q = l(Q, R, O, T, B, 17, f[6]), T = l(T, Q, R, O, M, 22, f[7]), O = l(O, T, Q, R, D, 7, f[8]), R = l(R, O, T, Q, L, 12, f[9]), Q = l(Q, R, O, T, W, 17, f[10]), T = l(T, Q, R, O, H, 22, f[11]), O = l(O, T, Q, R, U, 7, f[12]), R = l(R, O, T, Q, ee, 12, f[13]), Q = l(Q, R, O, T, V, 17, f[14]), T = l(T, Q, R, O, j, 22, f[15]), O = c(O, T, Q, R, b, 5, f[16]), R = c(R, O, T, Q, B, 9, f[17]), Q = c(Q, R, O, T, H, 14, f[18]), T = c(T, Q, R, O, y, 20, f[19]), O = c(O, T, Q, R, E, 5, f[20]), R = c(R, O, T, Q, W, 9, f[21]), Q = c(Q, R, O, T, j, 14, f[22]), T = c(T, Q, R, O, P, 20, f[23]), O = c(O, T, Q, R, L, 5, f[24]), R = c(R, O, T, Q, V, 9, f[25]), Q = c(Q, R, O, T, S, 14, f[26]), T = c(T, Q, R, O, D, 20, f[27]), O = c(O, T, Q, R, ee, 5, f[28]), R = c(R, O, T, Q, x, 9, f[29]), Q = c(Q, R, O, T, M, 14, f[30]), T = c(T, Q, R, O, U, 20, f[31]), O = h(O, T, Q, R, E, 4, f[32]), R = h(R, O, T, Q, D, 11, f[33]), Q = h(Q, R, O, T, H, 16, f[34]), T = h(T, Q, R, O, V, 23, f[35]), O = h(O, T, Q, R, b, 4, f[36]), R = h(R, O, T, Q, P, 11, f[37]), Q = h(Q, R, O, T, M, 16, f[38]), T = h(T, Q, R, O, W, 23, f[39]), O = h(O, T, Q, R, ee, 4, f[40]), R = h(R, O, T, Q, y, 11, f[41]), Q = h(Q, R, O, T, S, 16, f[42]), T = h(T, Q, R, O, B, 23, f[43]), O = h(O, T, Q, R, L, 4, f[44]), R = h(R, O, T, Q, U, 11, f[45]), Q = h(Q, R, O, T, j, 16, f[46]), T = h(T, Q, R, O, x, 23, f[47]), O = g(O, T, Q, R, y, 6, f[48]), R = g(R, O, T, Q, M, 10, f[49]), Q = g(Q, R, O, T, V, 15, f[50]), T = g(T, Q, R, O, E, 21, f[51]), O = g(O, T, Q, R, U, 6, f[52]), R = g(R, O, T, Q, S, 10, f[53]), Q = g(Q, R, O, T, W, 15, f[54]), T = g(T, Q, R, O, b, 21, f[55]), O = g(O, T, Q, R, D, 6, f[56]), R = g(R, O, T, Q, j, 10, f[57]), Q = g(Q, R, O, T, B, 15, f[58]), T = g(T, Q, R, O, ee, 21, f[59]), O = g(O, T, Q, R, P, 6, f[60]), R = g(R, O, T, Q, H, 10, f[61]), Q = g(Q, R, O, T, x, 15, f[62]), T = g(T, Q, R, O, L, 21, f[63]), k[0] = k[0] + O | 0, k[1] = k[1] + T | 0, k[2] = k[2] + Q | 0, k[3] = k[3] + R | 0;
5925
+ O = c(O, T, Q, R, y, 7, f[0]), R = c(R, O, T, Q, b, 12, f[1]), Q = c(Q, R, O, T, x, 17, f[2]), T = c(T, Q, R, O, S, 22, f[3]), O = c(O, T, Q, R, P, 7, f[4]), R = c(R, O, T, Q, E, 12, f[5]), Q = c(Q, R, O, T, B, 17, f[6]), T = c(T, Q, R, O, M, 22, f[7]), O = c(O, T, Q, R, D, 7, f[8]), R = c(R, O, T, Q, L, 12, f[9]), Q = c(Q, R, O, T, W, 17, f[10]), T = c(T, Q, R, O, H, 22, f[11]), O = c(O, T, Q, R, U, 7, f[12]), R = c(R, O, T, Q, ee, 12, f[13]), Q = c(Q, R, O, T, V, 17, f[14]), T = c(T, Q, R, O, j, 22, f[15]), O = l(O, T, Q, R, b, 5, f[16]), R = l(R, O, T, Q, B, 9, f[17]), Q = l(Q, R, O, T, H, 14, f[18]), T = l(T, Q, R, O, y, 20, f[19]), O = l(O, T, Q, R, E, 5, f[20]), R = l(R, O, T, Q, W, 9, f[21]), Q = l(Q, R, O, T, j, 14, f[22]), T = l(T, Q, R, O, P, 20, f[23]), O = l(O, T, Q, R, L, 5, f[24]), R = l(R, O, T, Q, V, 9, f[25]), Q = l(Q, R, O, T, S, 14, f[26]), T = l(T, Q, R, O, D, 20, f[27]), O = l(O, T, Q, R, ee, 5, f[28]), R = l(R, O, T, Q, x, 9, f[29]), Q = l(Q, R, O, T, M, 14, f[30]), T = l(T, Q, R, O, U, 20, f[31]), O = h(O, T, Q, R, E, 4, f[32]), R = h(R, O, T, Q, D, 11, f[33]), Q = h(Q, R, O, T, H, 16, f[34]), T = h(T, Q, R, O, V, 23, f[35]), O = h(O, T, Q, R, b, 4, f[36]), R = h(R, O, T, Q, P, 11, f[37]), Q = h(Q, R, O, T, M, 16, f[38]), T = h(T, Q, R, O, W, 23, f[39]), O = h(O, T, Q, R, ee, 4, f[40]), R = h(R, O, T, Q, y, 11, f[41]), Q = h(Q, R, O, T, S, 16, f[42]), T = h(T, Q, R, O, B, 23, f[43]), O = h(O, T, Q, R, L, 4, f[44]), R = h(R, O, T, Q, U, 11, f[45]), Q = h(Q, R, O, T, j, 16, f[46]), T = h(T, Q, R, O, x, 23, f[47]), O = g(O, T, Q, R, y, 6, f[48]), R = g(R, O, T, Q, M, 10, f[49]), Q = g(Q, R, O, T, V, 15, f[50]), T = g(T, Q, R, O, E, 21, f[51]), O = g(O, T, Q, R, U, 6, f[52]), R = g(R, O, T, Q, S, 10, f[53]), Q = g(Q, R, O, T, W, 15, f[54]), T = g(T, Q, R, O, b, 21, f[55]), O = g(O, T, Q, R, D, 6, f[56]), R = g(R, O, T, Q, j, 10, f[57]), Q = g(Q, R, O, T, B, 15, f[58]), T = g(T, Q, R, O, ee, 21, f[59]), O = g(O, T, Q, R, P, 6, f[60]), R = g(R, O, T, Q, H, 10, f[61]), Q = g(Q, R, O, T, x, 15, f[62]), T = g(T, Q, R, O, L, 21, f[63]), k[0] = k[0] + O | 0, k[1] = k[1] + T | 0, k[2] = k[2] + Q | 0, k[3] = k[3] + R | 0;
5926
5926
  },
5927
5927
  _doFinalize: function() {
5928
5928
  var v = this._data, m = v.words, w = this._nDataBytes * 8, C = v.sigBytes * 8;
@@ -5940,11 +5940,11 @@ function Kw() {
5940
5940
  return v._hash = this._hash.clone(), v;
5941
5941
  }
5942
5942
  });
5943
- function l(v, m, w, C, p, k, y) {
5943
+ function c(v, m, w, C, p, k, y) {
5944
5944
  var b = v + (m & w | ~m & C) + p + y;
5945
5945
  return (b << k | b >>> 32 - k) + m;
5946
5946
  }
5947
- function c(v, m, w, C, p, k, y) {
5947
+ function l(v, m, w, C, p, k, y) {
5948
5948
  var b = v + (m & C | w & ~C) + p + y;
5949
5949
  return (b << k | b >>> 32 - k) + m;
5950
5950
  }
@@ -5978,10 +5978,10 @@ function Zw() {
5978
5978
  3285377520
5979
5979
  ]);
5980
5980
  },
5981
- _doProcessBlock: function(d, l) {
5982
- for (var c = this._hash.words, h = c[0], g = c[1], v = c[2], m = c[3], w = c[4], C = 0; C < 80; C++) {
5981
+ _doProcessBlock: function(d, c) {
5982
+ for (var l = this._hash.words, h = l[0], g = l[1], v = l[2], m = l[3], w = l[4], C = 0; C < 80; C++) {
5983
5983
  if (C < 16)
5984
- A[C] = d[l + C] | 0;
5984
+ A[C] = d[c + C] | 0;
5985
5985
  else {
5986
5986
  var p = A[C - 3] ^ A[C - 8] ^ A[C - 14] ^ A[C - 16];
5987
5987
  A[C] = p << 1 | p >>> 31;
@@ -5989,11 +5989,11 @@ function Zw() {
5989
5989
  var k = (h << 5 | h >>> 27) + w + A[C];
5990
5990
  C < 20 ? k += (g & v | ~g & m) + 1518500249 : C < 40 ? k += (g ^ v ^ m) + 1859775393 : C < 60 ? k += (g & v | g & m | v & m) - 1894007588 : k += (g ^ v ^ m) - 899497514, w = m, m = v, v = g << 30 | g >>> 2, g = h, h = k;
5991
5991
  }
5992
- c[0] = c[0] + h | 0, c[1] = c[1] + g | 0, c[2] = c[2] + v | 0, c[3] = c[3] + m | 0, c[4] = c[4] + w | 0;
5992
+ l[0] = l[0] + h | 0, l[1] = l[1] + g | 0, l[2] = l[2] + v | 0, l[3] = l[3] + m | 0, l[4] = l[4] + w | 0;
5993
5993
  },
5994
5994
  _doFinalize: function() {
5995
- var d = this._data, l = d.words, c = this._nDataBytes * 8, h = d.sigBytes * 8;
5996
- return l[h >>> 5] |= 128 << 24 - h % 32, l[(h + 64 >>> 9 << 4) + 14] = Math.floor(c / 4294967296), l[(h + 64 >>> 9 << 4) + 15] = c, d.sigBytes = l.length * 4, this._process(), this._hash;
5995
+ var d = this._data, c = d.words, l = this._nDataBytes * 8, h = d.sigBytes * 8;
5996
+ return c[h >>> 5] |= 128 << 24 - h % 32, c[(h + 64 >>> 9 << 4) + 14] = Math.floor(l / 4294967296), c[(h + 64 >>> 9 << 4) + 15] = l, d.sigBytes = c.length * 4, this._process(), this._hash;
5997
5997
  },
5998
5998
  clone: function() {
5999
5999
  var d = a.clone.call(this);
@@ -6026,11 +6026,11 @@ function _w() {
6026
6026
  */
6027
6027
  init: function(f, d) {
6028
6028
  f = this._hasher = new f.init(), typeof d == "string" && (d = o.parse(d));
6029
- var l = f.blockSize, c = l * 4;
6030
- d.sigBytes > c && (d = f.finalize(d)), d.clamp();
6031
- for (var h = this._oKey = d.clone(), g = this._iKey = d.clone(), v = h.words, m = g.words, w = 0; w < l; w++)
6029
+ var c = f.blockSize, l = c * 4;
6030
+ d.sigBytes > l && (d = f.finalize(d)), d.clamp();
6031
+ for (var h = this._oKey = d.clone(), g = this._iKey = d.clone(), v = h.words, m = g.words, w = 0; w < c; w++)
6032
6032
  v[w] ^= 1549556828, m[w] ^= 909522486;
6033
- h.sigBytes = g.sigBytes = c, this.reset();
6033
+ h.sigBytes = g.sigBytes = l, this.reset();
6034
6034
  },
6035
6035
  /**
6036
6036
  * Resets this HMAC to its initial state.
@@ -6073,10 +6073,10 @@ function _w() {
6073
6073
  * var hmac = hmacHasher.finalize(wordArray);
6074
6074
  */
6075
6075
  finalize: function(f) {
6076
- var d = this._hasher, l = d.finalize(f);
6076
+ var d = this._hasher, c = d.finalize(f);
6077
6077
  d.reset();
6078
- var c = d.finalize(this._oKey.clone().concat(l));
6079
- return c;
6078
+ var l = d.finalize(this._oKey.clone().concat(c));
6079
+ return l;
6080
6080
  }
6081
6081
  });
6082
6082
  })();
@@ -6129,18 +6129,18 @@ function Ku() {
6129
6129
  *
6130
6130
  * var key = kdf.compute(password, salt);
6131
6131
  */
6132
- compute: function(d, l) {
6133
- for (var c, h = this.cfg, g = h.hasher.create(), v = a.create(), m = v.words, w = h.keySize, C = h.iterations; m.length < w; ) {
6134
- c && g.update(c), c = g.update(d).finalize(l), g.reset();
6132
+ compute: function(d, c) {
6133
+ for (var l, h = this.cfg, g = h.hasher.create(), v = a.create(), m = v.words, w = h.keySize, C = h.iterations; m.length < w; ) {
6134
+ l && g.update(l), l = g.update(d).finalize(c), g.reset();
6135
6135
  for (var p = 1; p < C; p++)
6136
- c = g.finalize(c), g.reset();
6137
- v.concat(c);
6136
+ l = g.finalize(l), g.reset();
6137
+ v.concat(l);
6138
6138
  }
6139
6139
  return v.sigBytes = w * 4, v;
6140
6140
  }
6141
6141
  });
6142
- t.EvpKDF = function(d, l, c) {
6143
- return f.create(c).compute(d, l);
6142
+ t.EvpKDF = function(d, c, l) {
6143
+ return f.create(l).compute(d, c);
6144
6144
  };
6145
6145
  }(), i.EvpKDF;
6146
6146
  });
@@ -6155,7 +6155,7 @@ function $w() {
6155
6155
  i.lib.Cipher || function(t) {
6156
6156
  var r = i, s = r.lib, a = s.Base, o = s.WordArray, A = s.BufferedBlockAlgorithm, f = r.enc;
6157
6157
  f.Utf8;
6158
- var d = f.Base64, l = r.algo, c = l.EvpKDF, h = s.Cipher = A.extend({
6158
+ var d = f.Base64, c = r.algo, l = c.EvpKDF, h = s.Cipher = A.extend({
6159
6159
  /**
6160
6160
  * Configuration options.
6161
6161
  *
@@ -6616,9 +6616,9 @@ function $w() {
6616
6616
  */
6617
6617
  execute: function(E, B, M, D, L) {
6618
6618
  if (D || (D = o.random(64 / 8)), L)
6619
- var W = c.create({ keySize: B + M, hasher: L }).compute(E, D);
6619
+ var W = l.create({ keySize: B + M, hasher: L }).compute(E, D);
6620
6620
  else
6621
- var W = c.create({ keySize: B + M }).compute(E, D);
6621
+ var W = l.create({ keySize: B + M }).compute(E, D);
6622
6622
  var H = o.create(W.words.slice(B), M * 4);
6623
6623
  return W.sigBytes = B * 4, p.create({ key: W, iv: H, salt: D });
6624
6624
  }
@@ -6689,7 +6689,7 @@ function $w() {
6689
6689
  n.exports = t(Ai(), Jw(), Kw(), Ku(), $w());
6690
6690
  })(ze, function(i) {
6691
6691
  return function() {
6692
- var t = i, r = t.lib, s = r.BlockCipher, a = t.algo, o = [], A = [], f = [], d = [], l = [], c = [], h = [], g = [], v = [], m = [];
6692
+ var t = i, r = t.lib, s = r.BlockCipher, a = t.algo, o = [], A = [], f = [], d = [], c = [], l = [], h = [], g = [], v = [], m = [];
6693
6693
  (function() {
6694
6694
  for (var p = [], k = 0; k < 256; k++)
6695
6695
  k < 128 ? p[k] = k << 1 : p[k] = k << 1 ^ 283;
@@ -6697,7 +6697,7 @@ function $w() {
6697
6697
  var x = b ^ b << 1 ^ b << 2 ^ b << 3 ^ b << 4;
6698
6698
  x = x >>> 8 ^ x & 255 ^ 99, o[y] = x, A[x] = y;
6699
6699
  var S = p[y], P = p[S], E = p[P], B = p[x] * 257 ^ x * 16843008;
6700
- f[y] = B << 24 | B >>> 8, d[y] = B << 16 | B >>> 16, l[y] = B << 8 | B >>> 24, c[y] = B;
6700
+ f[y] = B << 24 | B >>> 8, d[y] = B << 16 | B >>> 16, c[y] = B << 8 | B >>> 24, l[y] = B;
6701
6701
  var B = E * 16843009 ^ P * 65537 ^ S * 257 ^ y * 16843008;
6702
6702
  h[x] = B << 24 | B >>> 8, g[x] = B << 16 | B >>> 16, v[x] = B << 8 | B >>> 24, m[x] = B, y ? (y = S ^ p[p[p[E ^ S]]], b ^= p[p[b]]) : y = b = 1;
6703
6703
  }
@@ -6719,7 +6719,7 @@ function $w() {
6719
6719
  }
6720
6720
  },
6721
6721
  encryptBlock: function(p, k) {
6722
- this._doCryptBlock(p, k, this._keySchedule, f, d, l, c, o);
6722
+ this._doCryptBlock(p, k, this._keySchedule, f, d, c, l, o);
6723
6723
  },
6724
6724
  decryptBlock: function(p, k) {
6725
6725
  var y = p[k + 1];
@@ -7195,24 +7195,24 @@ function Rs(n, e, i) {
7195
7195
  }
7196
7196
  return ko(g) ? !0 : (e.append(bd(m, v, s), f(g)), !1);
7197
7197
  }
7198
- const l = [], c = Object.assign(ny, {
7198
+ const c = [], l = Object.assign(ny, {
7199
7199
  defaultVisitor: d,
7200
7200
  convertValue: f,
7201
7201
  isVisitable: ko
7202
7202
  });
7203
7203
  function h(g, v) {
7204
7204
  if (!F.isUndefined(g)) {
7205
- if (l.indexOf(g) !== -1)
7205
+ if (c.indexOf(g) !== -1)
7206
7206
  throw Error("Circular reference detected in " + v.join("."));
7207
- l.push(g), F.forEach(g, function(w, C) {
7207
+ c.push(g), F.forEach(g, function(w, C) {
7208
7208
  (!(F.isUndefined(w) || w === null) && r.call(
7209
7209
  e,
7210
7210
  w,
7211
7211
  F.isString(C) ? C.trim() : C,
7212
7212
  v,
7213
- c
7213
+ l
7214
7214
  )) === !0 && h(w, v ? v.concat(C) : [C]);
7215
- }), l.pop();
7215
+ }), c.pop();
7216
7216
  }
7217
7217
  }
7218
7218
  if (!F.isObject(n))
@@ -7531,8 +7531,8 @@ class Ge {
7531
7531
  const d = ht(A);
7532
7532
  if (!d)
7533
7533
  throw new Error("header name must be a non-empty string");
7534
- const l = F.findKey(r, d);
7535
- (!l || r[l] === void 0 || f === !0 || f === void 0 && r[l] !== !1) && (r[l || A] = xr(o));
7534
+ const c = F.findKey(r, d);
7535
+ (!c || r[c] === void 0 || f === !0 || f === void 0 && r[c] !== !1) && (r[c || A] = xr(o));
7536
7536
  }
7537
7537
  const a = (o, A) => F.forEach(o, (f, d) => s(f, d, A));
7538
7538
  if (F.isPlainObject(e) || e instanceof this.constructor)
@@ -7695,13 +7695,13 @@ function ky(n, e) {
7695
7695
  return e = e !== void 0 ? e : 1e3, function(A) {
7696
7696
  const f = Date.now(), d = t[s];
7697
7697
  a || (a = f), i[r] = A, t[r] = f;
7698
- let l = s, c = 0;
7699
- for (; l !== r; )
7700
- c += i[l++], l = l % n;
7698
+ let c = s, l = 0;
7699
+ for (; c !== r; )
7700
+ l += i[c++], c = c % n;
7701
7701
  if (r = (r + 1) % n, r === s && (s = (s + 1) % n), f - a < e)
7702
7702
  return;
7703
7703
  const h = d && f - d;
7704
- return h ? Math.round(c * 1e3 / h) : void 0;
7704
+ return h ? Math.round(l * 1e3 / h) : void 0;
7705
7705
  };
7706
7706
  }
7707
7707
  function Cy(n, e) {
@@ -7710,10 +7710,10 @@ function Cy(n, e) {
7710
7710
  i = d, r = null, s && (clearTimeout(s), s = null), n.apply(null, f);
7711
7711
  };
7712
7712
  return [(...f) => {
7713
- const d = Date.now(), l = d - i;
7714
- l >= t ? a(f, d) : (r = f, s || (s = setTimeout(() => {
7713
+ const d = Date.now(), c = d - i;
7714
+ c >= t ? a(f, d) : (r = f, s || (s = setTimeout(() => {
7715
7715
  s = null, a(r);
7716
- }, t - l)));
7716
+ }, t - c)));
7717
7717
  }, () => r && a(r)];
7718
7718
  }
7719
7719
  const Kr = (n, e, i = 3) => {
@@ -7722,7 +7722,7 @@ const Kr = (n, e, i = 3) => {
7722
7722
  return Cy((s) => {
7723
7723
  const a = s.loaded, o = s.lengthComputable ? s.total : void 0, A = a - t, f = r(A), d = a <= o;
7724
7724
  t = a;
7725
- const l = {
7725
+ const c = {
7726
7726
  loaded: a,
7727
7727
  total: o,
7728
7728
  progress: o ? a / o : void 0,
@@ -7733,7 +7733,7 @@ const Kr = (n, e, i = 3) => {
7733
7733
  lengthComputable: o != null,
7734
7734
  [e ? "download" : "upload"]: !0
7735
7735
  };
7736
- n(l);
7736
+ n(c);
7737
7737
  }, i);
7738
7738
  }, xd = (n, e) => {
7739
7739
  const i = n != null;
@@ -7786,14 +7786,14 @@ const Bd = (n) => n instanceof Ge ? { ...n } : n;
7786
7786
  function Di(n, e) {
7787
7787
  e = e || {};
7788
7788
  const i = {};
7789
- function t(f, d, l, c) {
7790
- return F.isPlainObject(f) && F.isPlainObject(d) ? F.merge.call({ caseless: c }, f, d) : F.isPlainObject(d) ? F.merge({}, d) : F.isArray(d) ? d.slice() : d;
7789
+ function t(f, d, c, l) {
7790
+ return F.isPlainObject(f) && F.isPlainObject(d) ? F.merge.call({ caseless: l }, f, d) : F.isPlainObject(d) ? F.merge({}, d) : F.isArray(d) ? d.slice() : d;
7791
7791
  }
7792
- function r(f, d, l, c) {
7792
+ function r(f, d, c, l) {
7793
7793
  if (F.isUndefined(d)) {
7794
7794
  if (!F.isUndefined(f))
7795
- return t(void 0, f, l, c);
7796
- } else return t(f, d, l, c);
7795
+ return t(void 0, f, c, l);
7796
+ } else return t(f, d, c, l);
7797
7797
  }
7798
7798
  function s(f, d) {
7799
7799
  if (!F.isUndefined(d))
@@ -7805,10 +7805,10 @@ function Di(n, e) {
7805
7805
  return t(void 0, f);
7806
7806
  } else return t(void 0, d);
7807
7807
  }
7808
- function o(f, d, l) {
7809
- if (l in e)
7808
+ function o(f, d, c) {
7809
+ if (c in e)
7810
7810
  return t(f, d);
7811
- if (l in n)
7811
+ if (c in n)
7812
7812
  return t(void 0, f);
7813
7813
  }
7814
7814
  const A = {
@@ -7840,11 +7840,11 @@ function Di(n, e) {
7840
7840
  socketPath: a,
7841
7841
  responseEncoding: a,
7842
7842
  validateStatus: o,
7843
- headers: (f, d, l) => r(Bd(f), Bd(d), l, !0)
7843
+ headers: (f, d, c) => r(Bd(f), Bd(d), c, !0)
7844
7844
  };
7845
7845
  return F.forEach(Object.keys(Object.assign({}, n, e)), function(d) {
7846
- const l = A[d] || r, c = l(n[d], e[d], d);
7847
- F.isUndefined(c) && l !== o || (i[d] = c);
7846
+ const c = A[d] || r, l = c(n[d], e[d], d);
7847
+ F.isUndefined(l) && c !== o || (i[d] = l);
7848
7848
  }), i;
7849
7849
  }
7850
7850
  const m1 = (n) => {
@@ -7859,7 +7859,7 @@ const m1 = (n) => {
7859
7859
  if (Te.hasStandardBrowserEnv || Te.hasStandardBrowserWebWorkerEnv)
7860
7860
  a.setContentType(void 0);
7861
7861
  else if ((A = a.getContentType()) !== !1) {
7862
- const [f, ...d] = A ? A.split(";").map((l) => l.trim()).filter(Boolean) : [];
7862
+ const [f, ...d] = A ? A.split(";").map((c) => c.trim()).filter(Boolean) : [];
7863
7863
  a.setContentType([f || "multipart/form-data", ...d].join("; "));
7864
7864
  }
7865
7865
  }
@@ -7873,7 +7873,7 @@ const m1 = (n) => {
7873
7873
  const r = m1(n);
7874
7874
  let s = r.data;
7875
7875
  const a = Ge.from(r.headers).normalize();
7876
- let { responseType: o, onUploadProgress: A, onDownloadProgress: f } = r, d, l, c, h, g;
7876
+ let { responseType: o, onUploadProgress: A, onDownloadProgress: f } = r, d, c, l, h, g;
7877
7877
  function v() {
7878
7878
  h && h(), g && g(), r.cancelToken && r.cancelToken.unsubscribe(d), r.signal && r.signal.removeEventListener("abort", d);
7879
7879
  }
@@ -7915,7 +7915,7 @@ const m1 = (n) => {
7915
7915
  )), m = null;
7916
7916
  }, s === void 0 && a.setContentType(null), "setRequestHeader" in m && F.forEach(a.toJSON(), function(k, y) {
7917
7917
  m.setRequestHeader(y, k);
7918
- }), F.isUndefined(r.withCredentials) || (m.withCredentials = !!r.withCredentials), o && o !== "json" && (m.responseType = r.responseType), f && ([c, g] = Kr(f, !0), m.addEventListener("progress", c)), A && m.upload && ([l, h] = Kr(A), m.upload.addEventListener("progress", l), m.upload.addEventListener("loadend", h)), (r.cancelToken || r.signal) && (d = (p) => {
7918
+ }), F.isUndefined(r.withCredentials) || (m.withCredentials = !!r.withCredentials), o && o !== "json" && (m.responseType = r.responseType), f && ([l, g] = Kr(f, !0), m.addEventListener("progress", l)), A && m.upload && ([c, h] = Kr(A), m.upload.addEventListener("progress", c), m.upload.addEventListener("loadend", h)), (r.cancelToken || r.signal) && (d = (p) => {
7919
7919
  m && (t(!p || p.type ? new at(null, n, m) : p), m.abort(), m = null);
7920
7920
  }, r.cancelToken && r.cancelToken.subscribe(d), r.signal && (r.signal.aborted ? d() : r.signal.addEventListener("abort", d)));
7921
7921
  const C = yy(r.url);
@@ -7989,10 +7989,10 @@ const m1 = (n) => {
7989
7989
  o(), A.close();
7990
7990
  return;
7991
7991
  }
7992
- let l = d.byteLength;
7992
+ let c = d.byteLength;
7993
7993
  if (i) {
7994
- let c = s += l;
7995
- i(c);
7994
+ let l = s += c;
7995
+ i(l);
7996
7996
  }
7997
7997
  A.enqueue(new Uint8Array(d));
7998
7998
  } catch (f) {
@@ -8060,8 +8060,8 @@ const Qy = async (n) => {
8060
8060
  onUploadProgress: A,
8061
8061
  responseType: f,
8062
8062
  headers: d,
8063
- withCredentials: l = "same-origin",
8064
- fetchOptions: c
8063
+ withCredentials: c = "same-origin",
8064
+ fetchOptions: l
8065
8065
  } = m1(n);
8066
8066
  f = f ? (f + "").toLowerCase() : "text";
8067
8067
  let h = Sy([r, s && s.toAbortSignal()], a), g;
@@ -8084,18 +8084,18 @@ const Qy = async (n) => {
8084
8084
  t = Dd(y.body, Id, x, S);
8085
8085
  }
8086
8086
  }
8087
- F.isString(l) || (l = l ? "include" : "omit");
8087
+ F.isString(c) || (c = c ? "include" : "omit");
8088
8088
  const w = "credentials" in Request.prototype;
8089
8089
  g = new Request(e, {
8090
- ...c,
8090
+ ...l,
8091
8091
  signal: h,
8092
8092
  method: i.toUpperCase(),
8093
8093
  headers: d.normalize().toJSON(),
8094
8094
  body: t,
8095
8095
  duplex: "half",
8096
- credentials: w ? l : void 0
8096
+ credentials: w ? c : void 0
8097
8097
  });
8098
- let C = await fetch(g, c);
8098
+ let C = await fetch(g, l);
8099
8099
  const p = xo && (f === "stream" || f === "response");
8100
8100
  if (xo && (o || p && v)) {
8101
8101
  const y = {};
@@ -8316,17 +8316,17 @@ class yi {
8316
8316
  this.interceptors.response.forEach(function(v) {
8317
8317
  f.push(v.fulfilled, v.rejected);
8318
8318
  });
8319
- let d, l = 0, c;
8319
+ let d, c = 0, l;
8320
8320
  if (!A) {
8321
8321
  const g = [Sd.bind(this), void 0];
8322
- for (g.unshift.apply(g, o), g.push.apply(g, f), c = g.length, d = Promise.resolve(i); l < c; )
8323
- d = d.then(g[l++], g[l++]);
8322
+ for (g.unshift.apply(g, o), g.push.apply(g, f), l = g.length, d = Promise.resolve(i); c < l; )
8323
+ d = d.then(g[c++], g[c++]);
8324
8324
  return d;
8325
8325
  }
8326
- c = o.length;
8326
+ l = o.length;
8327
8327
  let h = i;
8328
- for (l = 0; l < c; ) {
8329
- const g = o[l++], v = o[l++];
8328
+ for (c = 0; c < l; ) {
8329
+ const g = o[c++], v = o[c++];
8330
8330
  try {
8331
8331
  h = g(h);
8332
8332
  } catch (m) {
@@ -8339,8 +8339,8 @@ class yi {
8339
8339
  } catch (g) {
8340
8340
  return Promise.reject(g);
8341
8341
  }
8342
- for (l = 0, c = f.length; l < c; )
8343
- d = d.then(f[l++], f[l++]);
8342
+ for (c = 0, l = f.length; c < l; )
8343
+ d = d.then(f[c++], f[c++]);
8344
8344
  return d;
8345
8345
  }
8346
8346
  getUri(e) {
@@ -8595,10 +8595,10 @@ Ee.interceptors.response.use(
8595
8595
  var e, i, t, r, s, a, o, A, f;
8596
8596
  if (!((t = (i = (e = K.getState().chatSettingStore) == null ? void 0 : e.config) == null ? void 0 : i.refreshTokens) != null && t.enabled))
8597
8597
  if ((a = (s = (r = K.getState().chatSettingStore) == null ? void 0 : r.config) == null ? void 0 : s.refreshTokens) != null && a.refreshFunction) {
8598
- const { refreshToken: d, accessToken: l } = await ((f = (A = (o = K.getState().chatSettingStore) == null ? void 0 : o.config) == null ? void 0 : A.refreshTokens) == null ? void 0 : f.refreshFunction());
8598
+ const { refreshToken: d, accessToken: c } = await ((f = (A = (o = K.getState().chatSettingStore) == null ? void 0 : o.config) == null ? void 0 : A.refreshTokens) == null ? void 0 : f.refreshFunction());
8599
8599
  K.dispatch(
8600
8600
  ju({
8601
- token: l,
8601
+ token: c,
8602
8602
  refreshToken: d
8603
8603
  })
8604
8604
  );
@@ -8613,10 +8613,10 @@ Ee.interceptors.response.use(
8613
8613
  return qy(d);
8614
8614
  rr = !0;
8615
8615
  try {
8616
- const l = await Do();
8617
- return rr = !1, d.headers.Authorization = l.data.token, Vy(l.data.token), Ee(d);
8618
- } catch (l) {
8619
- return rr = !1, l;
8616
+ const c = await Do();
8617
+ return rr = !1, d.headers.Authorization = c.data.token, Vy(c.data.token), Ee(d);
8618
+ } catch (c) {
8619
+ return rr = !1, c;
8620
8620
  }
8621
8621
  }
8622
8622
  }
@@ -8842,15 +8842,15 @@ const e3 = (n) => [...$y(n)].filter(
8842
8842
  }, Td = async (n) => {
8843
8843
  var e, i, t, r, s, a, o, A, f;
8844
8844
  try {
8845
- const d = (t = (i = (e = n.getChild("result")) == null ? void 0 : e.getChild("forwarded")) == null ? void 0 : i.getChild("message")) == null ? void 0 : t.getChild("reactions"), l = (a = (s = (r = n.getChild("result")) == null ? void 0 : r.getChild("forwarded")) == null ? void 0 : s.getChild("message")) == null ? void 0 : a.getChild("data"), c = (f = (A = (o = n.getChild("result")) == null ? void 0 : o.getChild("forwarded")) == null ? void 0 : A.getChild("message")) == null ? void 0 : f.getChild("stanza-id");
8846
- if (!d && !l && !c && !(d != null && d.attrs))
8845
+ const d = (t = (i = (e = n.getChild("result")) == null ? void 0 : e.getChild("forwarded")) == null ? void 0 : i.getChild("message")) == null ? void 0 : t.getChild("reactions"), c = (a = (s = (r = n.getChild("result")) == null ? void 0 : r.getChild("forwarded")) == null ? void 0 : s.getChild("message")) == null ? void 0 : a.getChild("data"), l = (f = (A = (o = n.getChild("result")) == null ? void 0 : o.getChild("forwarded")) == null ? void 0 : A.getChild("message")) == null ? void 0 : f.getChild("stanza-id");
8846
+ if (!d && !c && !l && !(d != null && d.attrs))
8847
8847
  return;
8848
8848
  const h = d.attrs.id, g = d.children.map(
8849
8849
  (p) => p.children[0]
8850
8850
  ), v = d.attrs.from, m = {
8851
- senderFirstName: l.attrs.senderFirstName,
8852
- senderLastName: l.attrs.senderLastName
8853
- }, w = c.attrs.by, C = c.attrs.id;
8851
+ senderFirstName: c.attrs.senderFirstName,
8852
+ senderLastName: c.attrs.senderLastName
8853
+ }, w = l.attrs.by, C = l.attrs.id;
8854
8854
  K.dispatch(
8855
8855
  Lu({
8856
8856
  roomJID: w,
@@ -8892,15 +8892,15 @@ const e3 = (n) => [...$y(n)].filter(
8892
8892
  if (n.getChild("paused") || n.getChild("composing")) {
8893
8893
  const d = (r = (t = (i = n.attrs) == null ? void 0 : i.from) == null ? void 0 : t.split("/")) == null ? void 0 : r[1];
8894
8894
  if (d && ((s = e == null ? void 0 : e.toLowerCase()) == null ? void 0 : s.replace(/_/g, "")) !== (d == null ? void 0 : d.replace(/_/g, ""))) {
8895
- const l = (a = n.attrs) == null ? void 0 : a.from.split("/")[0];
8896
- let c = [];
8897
- n != null && n.getChild("composing") ? c.push(
8895
+ const c = (a = n.attrs) == null ? void 0 : a.from.split("/")[0];
8896
+ let l = [];
8897
+ n != null && n.getChild("composing") ? l.push(
8898
8898
  ((f = (A = (o = n.getChild("data").attrs) == null ? void 0 : o.fullName) == null ? void 0 : A.split(" ")) == null ? void 0 : f[0]) || "User"
8899
- ) : c.pop(), K.dispatch(
8899
+ ) : l.pop(), K.dispatch(
8900
8900
  lw({
8901
- chatJID: l,
8901
+ chatJID: c,
8902
8902
  composing: !!(n != null && n.getChild("composing")),
8903
- composingList: c
8903
+ composingList: l
8904
8904
  })
8905
8905
  );
8906
8906
  }
@@ -8941,17 +8941,17 @@ const e3 = (n) => [...$y(n)].filter(
8941
8941
  if (o) {
8942
8942
  const A = n == null ? void 0 : n.getChild("fin");
8943
8943
  if ((s = A == null ? void 0 : A.attrs) != null && s.complete) {
8944
- const f = a == null ? void 0 : a.getChildText("first"), d = a == null ? void 0 : a.getChildText("last"), l = ub(A.attrs.complete), c = vd(d), h = vd(f);
8944
+ const f = a == null ? void 0 : a.getChildText("first"), d = a == null ? void 0 : a.getChildText("last"), c = ub(A.attrs.complete), l = vd(d), h = vd(f);
8945
8945
  K.dispatch(
8946
8946
  K.dispatch(
8947
8947
  Tn({
8948
8948
  jid: o,
8949
8949
  updates: {
8950
8950
  messageStats: {
8951
- lastMessageTimestamp: c,
8951
+ lastMessageTimestamp: l,
8952
8952
  firstMessageTimestamp: h
8953
8953
  },
8954
- historyComplete: l
8954
+ historyComplete: c
8955
8955
  }
8956
8956
  })
8957
8957
  )
@@ -8965,7 +8965,7 @@ const e3 = (n) => [...$y(n)].filter(
8965
8965
  }, c3 = (n, e) => {
8966
8966
  var i, t;
8967
8967
  n.attrs.id === "getUserRooms" && Array.isArray((i = n.getChild("query")) == null ? void 0 : i.children) && ((t = n.getChild("query")) == null || t.children.forEach(async (r) => {
8968
- var o, A, f, d, l, c, h, g;
8968
+ var o, A, f, d, c, l, h, g;
8969
8969
  const s = K.getState().rooms.rooms;
8970
8970
  if (!Object.values(s).some(
8971
8971
  (v) => {
@@ -8981,7 +8981,7 @@ const e3 = (n) => [...$y(n)].filter(
8981
8981
  usersCnt: Number(((d = r == null ? void 0 : r.attrs) == null ? void 0 : d.users_cnt) || 0),
8982
8982
  messages: [],
8983
8983
  isLoading: !1,
8984
- roomBg: ((l = r == null ? void 0 : r.attrs) == null ? void 0 : l.room_background) !== "none" ? (c = r == null ? void 0 : r.attrs) == null ? void 0 : c.room_background : null,
8984
+ roomBg: ((c = r == null ? void 0 : r.attrs) == null ? void 0 : c.room_background) !== "none" ? (l = r == null ? void 0 : r.attrs) == null ? void 0 : l.room_background : null,
8985
8985
  icon: ((h = r == null ? void 0 : r.attrs) == null ? void 0 : h.room_thumbnail) !== "none" ? (g = r == null ? void 0 : r.attrs) == null ? void 0 : g.room_thumbnail : null,
8986
8986
  unreadMessages: 0,
8987
8987
  lastViewedTimestamp: 0
@@ -9070,7 +9070,7 @@ function m3(n, e, i, t, r, s) {
9070
9070
  from: (d = n.jid) == null ? void 0 : d.toString(),
9071
9071
  xmlns: "urn:xmpp:reactions:0"
9072
9072
  },
9073
- ...t.map((l) => z("reaction", {}, l ?? ""))
9073
+ ...t.map((c) => z("reaction", {}, c ?? ""))
9074
9074
  // xml('reaction', {}, reactionSymbol ?? '👋'),
9075
9075
  ),
9076
9076
  z("data", o),
@@ -9105,8 +9105,8 @@ const p3 = (n, e, i) => {
9105
9105
  };
9106
9106
  return new Promise(async (s, a) => {
9107
9107
  var d;
9108
- t = (l) => {
9109
- l.is("iq") && l.attrs.id === "getUserRooms" && (r(), s(l));
9108
+ t = (c) => {
9109
+ c.is("iq") && c.attrs.id === "getUserRooms" && (r(), s(c));
9110
9110
  }, n.on("stanza", t);
9111
9111
  const o = z("query", { xmlns: "ns:getrooms" }), A = z(
9112
9112
  "set",
@@ -9121,8 +9121,8 @@ const p3 = (n, e, i) => {
9121
9121
  );
9122
9122
  try {
9123
9123
  n.send(f);
9124
- } catch (l) {
9125
- console.error("Error sending getRooms request:", l), r(), a(l);
9124
+ } catch (c) {
9125
+ console.error("Error sending getRooms request:", c), r(), a(c);
9126
9126
  }
9127
9127
  await Yn(2e3, r).catch(a);
9128
9128
  });
@@ -9176,7 +9176,7 @@ class b3 {
9176
9176
  });
9177
9177
  });
9178
9178
  //messages
9179
- ke(this, "sendMessage", (e, i, t, r, s, a, o, A, f, d, l) => {
9179
+ ke(this, "sendMessage", (e, i, t, r, s, a, o, A, f, d, c) => {
9180
9180
  this.wrapWithConnectionCheck(async () => {
9181
9181
  Dv(
9182
9182
  this.client,
@@ -9191,11 +9191,11 @@ class b3 {
9191
9191
  f,
9192
9192
  d,
9193
9193
  this.devServer || "wss://'xmpp.ethoradev.com:5443'/ws",
9194
- l
9194
+ c
9195
9195
  );
9196
9196
  });
9197
9197
  });
9198
- ke(this, "sendTextMessageWithTranslateTagStanza", (e, i, t, r, s, a, o, A, f, d, l) => {
9198
+ ke(this, "sendTextMessageWithTranslateTagStanza", (e, i, t, r, s, a, o, A, f, d, c) => {
9199
9199
  this.wrapWithConnectionCheck(async () => {
9200
9200
  p3(
9201
9201
  this.client,
@@ -9212,7 +9212,7 @@ class b3 {
9212
9212
  mainMessage: d,
9213
9213
  devServer: this.devServer || "xmpp.ethoradev.com:5443"
9214
9214
  },
9215
- l
9215
+ c
9216
9216
  );
9217
9217
  });
9218
9218
  });
@@ -9431,25 +9431,25 @@ const _r = (n, e) => {
9431
9431
  );
9432
9432
  await Promise.all(
9433
9433
  o.map(async (f, d) => {
9434
- var l;
9434
+ var c;
9435
9435
  try {
9436
9436
  d > 0 && await new Promise((m) => setTimeout(m, 125));
9437
- let c = 0, h = !1, g = [];
9437
+ let l = 0, h = !1, g = [];
9438
9438
  const v = A[f];
9439
9439
  if (!v) return;
9440
- for (; !h && c < t; ) {
9441
- const m = c > 0 ? (l = g[0]) == null ? void 0 : l.id : void 0, w = await e.getHistoryStanza(
9440
+ for (; !h && l < t; ) {
9441
+ const m = l > 0 ? (c = g[0]) == null ? void 0 : c.id : void 0, w = await e.getHistoryStanza(
9442
9442
  f,
9443
9443
  r,
9444
9444
  Number(m)
9445
9445
  );
9446
9446
  if (!w.length) break;
9447
- if (c++, g = [
9447
+ if (l++, g = [
9448
9448
  ...w,
9449
9449
  ...g
9450
9450
  ], h = g.some(
9451
9451
  (C) => Number(C.id) === Number(v)
9452
- ), !h && !(c <= t - 1)) {
9452
+ ), !h && !(l <= t - 1)) {
9453
9453
  const C = await i3(
9454
9454
  g
9455
9455
  );
@@ -9461,8 +9461,8 @@ const _r = (n, e) => {
9461
9461
  );
9462
9462
  }
9463
9463
  }
9464
- } catch (c) {
9465
- console.error(`Error processing room ${f}:`, c);
9464
+ } catch (l) {
9465
+ console.error(`Error processing room ${f}:`, l);
9466
9466
  }
9467
9467
  })
9468
9468
  ), a += i;
@@ -9499,30 +9499,30 @@ const _r = (n, e) => {
9499
9499
  children: n,
9500
9500
  config: e
9501
9501
  }) => {
9502
- const [i, t] = J(null), [r, s] = J(null), [a, o] = J(null), [A, f] = J(0), d = async (c, h, g, v) => {
9502
+ const [i, t] = J(null), [r, s] = J(null), [a, o] = J(null), [A, f] = J(0), d = async (l, h, g, v) => {
9503
9503
  if (i)
9504
9504
  return console.log("Returning existing client."), t(i), i;
9505
9505
  try {
9506
- const m = new b3(c, h, g);
9506
+ const m = new b3(l, h, g);
9507
9507
  return t(m), await new Promise((w, C) => {
9508
9508
  const p = () => {
9509
9509
  m.status === "online" ? w() : m.status === "error" ? C(new Error("Failed to connect.")) : setTimeout(p, 500);
9510
9510
  };
9511
9511
  p();
9512
- }), s(c), o(h), t(m), f(0), v && E1(i, v), m;
9512
+ }), s(l), o(h), t(m), f(0), v && E1(i, v), m;
9513
9513
  } catch (m) {
9514
9514
  throw console.error("Error initializing client:", m), t(null), m;
9515
9515
  }
9516
- }, l = () => {
9517
- i && i.status !== "offline" && A < 3 ? (console.log("Attempting to reconnect..."), i.reconnect(), f((c) => c + 1)) : (i == null ? void 0 : i.status) === "offline" ? console.log("Client is offline. Not attempting to reconnect.") : A >= 3 ? console.log(
9516
+ }, c = () => {
9517
+ i && i.status !== "offline" && A < 3 ? (console.log("Attempting to reconnect..."), i.reconnect(), f((l) => l + 1)) : (i == null ? void 0 : i.status) === "offline" ? console.log("Client is offline. Not attempting to reconnect.") : A >= 3 ? console.log(
9518
9518
  "Maximum reconnect attempts reached. Stopping further attempts."
9519
- ) : r && a && A >= 3 && (console.log("No active client found. Reinitializing..."), d(r, a).catch((c) => {
9520
- console.error("Reconnection failed:", c);
9519
+ ) : r && a && A >= 3 && (console.log("No active client found. Reinitializing..."), d(r, a).catch((l) => {
9520
+ console.error("Reconnection failed:", l);
9521
9521
  }));
9522
9522
  };
9523
- return fe(() => (i && i.status === "offline" && A < 3 && l(), () => {
9523
+ return fe(() => (i && i.status === "offline" && A < 3 && c(), () => {
9524
9524
  }), [i, A]), fe(() => {
9525
- const c = async () => {
9525
+ const l = async () => {
9526
9526
  var h, g, v, m, w;
9527
9527
  d(
9528
9528
  Ur((v = (g = (h = e == null ? void 0 : e.userLogin) == null ? void 0 : h.user) == null ? void 0 : g.defaultWallet) == null ? void 0 : v.walletAddress),
@@ -9538,14 +9538,14 @@ const _r = (n, e) => {
9538
9538
  );
9539
9539
  });
9540
9540
  };
9541
- return e != null && e.initBeforeLoad && c(), () => {
9541
+ return e != null && e.initBeforeLoad && l(), () => {
9542
9542
  };
9543
9543
  }, [e == null ? void 0 : e.initBeforeLoad]), fe(() => {
9544
- const c = () => {
9544
+ const l = () => {
9545
9545
  i && (console.log("XmppProvider: Disconnecting client due to logout event"), i.disconnect(), t(null));
9546
9546
  };
9547
- return window.addEventListener("ethora-xmpp-logout", c), () => {
9548
- window.removeEventListener("ethora-xmpp-logout", c);
9547
+ return window.addEventListener("ethora-xmpp-logout", l), () => {
9548
+ window.removeEventListener("ethora-xmpp-logout", l);
9549
9549
  };
9550
9550
  }, [i]), /* @__PURE__ */ u(
9551
9551
  B1.Provider,
@@ -9575,12 +9575,12 @@ var Qd;
9575
9575
  function k3() {
9576
9576
  if (Qd) return Sa;
9577
9577
  Qd = 1;
9578
- var n = Re;
9578
+ var n = Qe;
9579
9579
  function e(A, f) {
9580
9580
  return A === f && (A !== 0 || 1 / A === 1 / f) || A !== A && f !== f;
9581
9581
  }
9582
9582
  var i = typeof Object.is == "function" ? Object.is : e, t = n.useSyncExternalStore, r = n.useRef, s = n.useEffect, a = n.useMemo, o = n.useDebugValue;
9583
- return Sa.useSyncExternalStoreWithSelector = function(A, f, d, l, c) {
9583
+ return Sa.useSyncExternalStoreWithSelector = function(A, f, d, c, l) {
9584
9584
  var h = r(null);
9585
9585
  if (h.current === null) {
9586
9586
  var g = { hasValue: !1, value: null };
@@ -9589,15 +9589,15 @@ function k3() {
9589
9589
  h = a(function() {
9590
9590
  function m(y) {
9591
9591
  if (!w) {
9592
- if (w = !0, C = y, y = l(y), c !== void 0 && g.hasValue) {
9592
+ if (w = !0, C = y, y = c(y), l !== void 0 && g.hasValue) {
9593
9593
  var b = g.value;
9594
- if (c(b, y)) return p = b;
9594
+ if (l(b, y)) return p = b;
9595
9595
  }
9596
9596
  return p = y;
9597
9597
  }
9598
9598
  if (b = p, i(C, y)) return b;
9599
- var x = l(y);
9600
- return c !== void 0 && c(b, x) ? b : (C = y, p = x);
9599
+ var x = c(y);
9600
+ return l !== void 0 && l(b, x) ? b : (C = y, p = x);
9601
9601
  }
9602
9602
  var w = !1, C, p, k = d === void 0 ? null : d;
9603
9603
  return [function() {
@@ -9605,7 +9605,7 @@ function k3() {
9605
9605
  }, k === null ? void 0 : function() {
9606
9606
  return m(k());
9607
9607
  }];
9608
- }, [f, d, l, c]);
9608
+ }, [f, d, c, l]);
9609
9609
  var v = t(A, h[0], h[1]);
9610
9610
  return s(function() {
9611
9611
  g.hasValue = !0, g.value = v;
@@ -9627,12 +9627,12 @@ function C3() {
9627
9627
  */
9628
9628
  return process.env.NODE_ENV !== "production" && function() {
9629
9629
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
9630
- var n = Re;
9630
+ var n = Qe;
9631
9631
  function e(f, d) {
9632
9632
  return f === d && (f !== 0 || 1 / f === 1 / d) || f !== f && d !== d;
9633
9633
  }
9634
9634
  var i = typeof Object.is == "function" ? Object.is : e, t = n.useSyncExternalStore, r = n.useRef, s = n.useEffect, a = n.useMemo, o = n.useDebugValue;
9635
- function A(f, d, l, c, h) {
9635
+ function A(f, d, c, l, h) {
9636
9636
  var g = r(null), v;
9637
9637
  g.current === null ? (v = {
9638
9638
  hasValue: !1,
@@ -9642,7 +9642,7 @@ function C3() {
9642
9642
  var k = !1, y, b, x = function(B) {
9643
9643
  if (!k) {
9644
9644
  k = !0, y = B;
9645
- var M = c(B);
9645
+ var M = l(B);
9646
9646
  if (h !== void 0 && v.hasValue) {
9647
9647
  var D = v.value;
9648
9648
  if (h(D, M))
@@ -9653,15 +9653,15 @@ function C3() {
9653
9653
  var L = y, W = b;
9654
9654
  if (i(L, B))
9655
9655
  return W;
9656
- var H = c(B);
9656
+ var H = l(B);
9657
9657
  return h !== void 0 && h(W, H) ? W : (y = B, b = H, H);
9658
- }, S = l === void 0 ? null : l, P = function() {
9658
+ }, S = c === void 0 ? null : c, P = function() {
9659
9659
  return x(d());
9660
9660
  }, E = S === null ? void 0 : function() {
9661
9661
  return x(S());
9662
9662
  };
9663
9663
  return [P, E];
9664
- }, [d, l, c, h]), w = m[0], C = m[1], p = t(f, w, C);
9664
+ }, [d, c, l, h]), w = m[0], C = m[1], p = t(f, w, C);
9665
9665
  return s(function() {
9666
9666
  v.hasValue = !0, v.value = p;
9667
9667
  }, [p]), o(p), p;
@@ -9721,8 +9721,8 @@ function N3(n = ai) {
9721
9721
  subscription: A,
9722
9722
  getServerState: f,
9723
9723
  stabilityCheck: d,
9724
- identityFunctionCheck: l
9725
- } = e(), c = qe.useRef(!0), h = qe.useCallback(
9724
+ identityFunctionCheck: c
9725
+ } = e(), l = qe.useRef(!0), h = qe.useCallback(
9726
9726
  {
9727
9727
  [t.name](v) {
9728
9728
  const m = t(v);
@@ -9732,10 +9732,10 @@ function N3(n = ai) {
9732
9732
  stabilityCheck: C
9733
9733
  } = {
9734
9734
  stabilityCheck: d,
9735
- identityFunctionCheck: l,
9735
+ identityFunctionCheck: c,
9736
9736
  ...a
9737
9737
  };
9738
- if (C === "always" || C === "once" && c.current) {
9738
+ if (C === "always" || C === "once" && l.current) {
9739
9739
  const p = t(v);
9740
9740
  if (!s(m, p)) {
9741
9741
  let k;
@@ -9756,7 +9756,7 @@ Selectors that return a new reference (such as an object or an array) should be
9756
9756
  );
9757
9757
  }
9758
9758
  }
9759
- if ((w === "always" || w === "once" && c.current) && m === v) {
9759
+ if ((w === "always" || w === "once" && l.current) && m === v) {
9760
9760
  let p;
9761
9761
  try {
9762
9762
  throw new Error();
@@ -9769,7 +9769,7 @@ Selectors that return the entire state are almost certainly a mistake, as they w
9769
9769
  { stack: p }
9770
9770
  );
9771
9771
  }
9772
- c.current && (c.current = !1);
9772
+ l.current && (l.current = !1);
9773
9773
  }
9774
9774
  return m;
9775
9775
  }
@@ -9837,7 +9837,7 @@ function O3(n, e) {
9837
9837
  const m = t.subscribe(v);
9838
9838
  let w = !1;
9839
9839
  return () => {
9840
- w || (w = !0, m(), l());
9840
+ w || (w = !0, m(), c());
9841
9841
  };
9842
9842
  }
9843
9843
  function o() {
@@ -9852,21 +9852,21 @@ function O3(n, e) {
9852
9852
  function d() {
9853
9853
  r++, i || (i = n.subscribe(A), t = P3());
9854
9854
  }
9855
- function l() {
9855
+ function c() {
9856
9856
  r--, i && r === 0 && (i(), i = void 0, t.clear(), t = Wd);
9857
9857
  }
9858
- function c() {
9858
+ function l() {
9859
9859
  s || (s = !0, d());
9860
9860
  }
9861
9861
  function h() {
9862
- s && (s = !1, l());
9862
+ s && (s = !1, c());
9863
9863
  }
9864
9864
  const g = {
9865
9865
  addNestedSub: a,
9866
9866
  notifyNestedSubs: o,
9867
9867
  handleChangeWrapper: A,
9868
9868
  isSubscribed: f,
9869
- trySubscribe: c,
9869
+ trySubscribe: l,
9870
9870
  tryUnsubscribe: h,
9871
9871
  getListeners: () => t
9872
9872
  };
@@ -10110,10 +10110,10 @@ function ik(n) {
10110
10110
  return Z3(Ir("", null, null, null, [""], n = K3(n), 0, [0], n));
10111
10111
  }
10112
10112
  function Ir(n, e, i, t, r, s, a, o, A) {
10113
- for (var f = 0, d = 0, l = a, c = 0, h = 0, g = 0, v = 1, m = 1, w = 1, C = 0, p = "", k = r, y = s, b = t, x = p; m; )
10113
+ for (var f = 0, d = 0, c = a, l = 0, h = 0, g = 0, v = 1, m = 1, w = 1, C = 0, p = "", k = r, y = s, b = t, x = p; m; )
10114
10114
  switch (g = C, C = sn()) {
10115
10115
  case 40:
10116
- if (g != 108 && Ie(x, l - 1) == 58) {
10116
+ if (g != 108 && Ie(x, c - 1) == 58) {
10117
10117
  Br(x += oe(Oa(C), "&", "&\f"), "&\f", O1(f ? o[f - 1] : 0)) != -1 && (w = -1);
10118
10118
  break;
10119
10119
  }
@@ -10151,30 +10151,30 @@ function Ir(n, e, i, t, r, s, a, o, A) {
10151
10151
  case 125:
10152
10152
  m = 0;
10153
10153
  case 59 + d:
10154
- w == -1 && (x = oe(x, /\f/g, "")), h > 0 && un(x) - l && pt(h > 32 ? Gd(x + ";", t, i, l - 1, A) : Gd(oe(x, " ", "") + ";", t, i, l - 2, A), A);
10154
+ w == -1 && (x = oe(x, /\f/g, "")), h > 0 && un(x) - c && pt(h > 32 ? Gd(x + ";", t, i, c - 1, A) : Gd(oe(x, " ", "") + ";", t, i, c - 2, A), A);
10155
10155
  break;
10156
10156
  case 59:
10157
10157
  x += ";";
10158
10158
  default:
10159
- if (pt(b = Hd(x, e, i, f, d, r, o, p, k = [], y = [], l, s), s), C === 123)
10159
+ if (pt(b = Hd(x, e, i, f, d, r, o, p, k = [], y = [], c, s), s), C === 123)
10160
10160
  if (d === 0)
10161
- Ir(x, e, b, b, k, s, l, o, y);
10161
+ Ir(x, e, b, b, k, s, c, o, y);
10162
10162
  else
10163
- switch (c === 99 && Ie(x, 3) === 110 ? 100 : c) {
10163
+ switch (l === 99 && Ie(x, 3) === 110 ? 100 : l) {
10164
10164
  case 100:
10165
10165
  case 108:
10166
10166
  case 109:
10167
10167
  case 115:
10168
- Ir(n, b, b, t && pt(Hd(n, b, b, 0, 0, r, o, p, r, k = [], l, y), y), r, y, l, o, t ? k : y);
10168
+ Ir(n, b, b, t && pt(Hd(n, b, b, 0, 0, r, o, p, r, k = [], c, y), y), r, y, c, o, t ? k : y);
10169
10169
  break;
10170
10170
  default:
10171
10171
  Ir(x, b, b, b, [""], y, 0, o, y);
10172
10172
  }
10173
10173
  }
10174
- f = d = h = 0, v = w = 1, p = x = "", l = a;
10174
+ f = d = h = 0, v = w = 1, p = x = "", c = a;
10175
10175
  break;
10176
10176
  case 58:
10177
- l = 1 + un(x), h = g;
10177
+ c = 1 + un(x), h = g;
10178
10178
  default:
10179
10179
  if (v < 1) {
10180
10180
  if (C == 123)
@@ -10190,7 +10190,7 @@ function Ir(n, e, i, t, r, s, a, o, A) {
10190
10190
  o[f++] = (un(x) - 1) * w, w = 1;
10191
10191
  break;
10192
10192
  case 64:
10193
- ki() === 45 && (x += Oa(sn())), c = ki(), d = l = un(p = x += nk(Dr())), C++;
10193
+ ki() === 45 && (x += Oa(sn())), l = ki(), d = c = un(p = x += nk(Dr())), C++;
10194
10194
  break;
10195
10195
  case 45:
10196
10196
  g === 45 && un(x) == 2 && (v = 0);
@@ -10198,11 +10198,11 @@ function Ir(n, e, i, t, r, s, a, o, A) {
10198
10198
  }
10199
10199
  return s;
10200
10200
  }
10201
- function Hd(n, e, i, t, r, s, a, o, A, f, d, l) {
10202
- for (var c = r - 1, h = r === 0 ? s : [""], g = T1(h), v = 0, m = 0, w = 0; v < t; ++v)
10203
- for (var C = 0, p = Vi(n, c + 1, c = O1(m = a[v])), k = n; C < g; ++C)
10201
+ function Hd(n, e, i, t, r, s, a, o, A, f, d, c) {
10202
+ for (var l = r - 1, h = r === 0 ? s : [""], g = T1(h), v = 0, m = 0, w = 0; v < t; ++v)
10203
+ for (var C = 0, p = Vi(n, l + 1, l = O1(m = a[v])), k = n; C < g; ++C)
10204
10204
  (k = M1(m > 0 ? h[C] + " " + p : oe(p, /&\f/g, h[C]))) && (A[w++] = k);
10205
- return Gs(n, e, i, r === 0 ? Ys : o, A, f, d, l);
10205
+ return Gs(n, e, i, r === 0 ? Ys : o, A, f, d, c);
10206
10206
  }
10207
10207
  function tk(n, e, i, t) {
10208
10208
  return Gs(n, e, i, S1, YA(X3()), Vi(n, 2, -2), 0, t);
@@ -10734,14 +10734,14 @@ var U1 = function(n) {
10734
10734
  }
10735
10735
  }(this)), qA(this, function() {
10736
10736
  return function(s) {
10737
- for (var a = s.getTag(), o = a.length, A = "", f = function(l) {
10738
- var c = function(w) {
10737
+ for (var a = s.getTag(), o = a.length, A = "", f = function(c) {
10738
+ var l = function(w) {
10739
10739
  return ns.get(w);
10740
- }(l);
10741
- if (c === void 0) return "continue";
10742
- var h = s.names.get(c), g = a.getGroup(l);
10740
+ }(c);
10741
+ if (l === void 0) return "continue";
10742
+ var h = s.names.get(l), g = a.getGroup(c);
10743
10743
  if (h === void 0 || g.length === 0) return "continue";
10744
- var v = "".concat(Ni, ".g").concat(l, '[id="').concat(c, '"]'), m = "";
10744
+ var v = "".concat(Ni, ".g").concat(c, '[id="').concat(l, '"]'), m = "";
10745
10745
  h !== void 0 && h.forEach(function(w) {
10746
10746
  w.length > 0 && (m += "".concat(w, ","));
10747
10747
  }), A += "".concat(g).concat(v, '{content:"').concat(m, '"}').concat(HA);
@@ -10788,28 +10788,28 @@ function J1(n, e) {
10788
10788
  });
10789
10789
  }
10790
10790
  function Lk(n) {
10791
- var e, i, t, r = Xi, s = r.options, a = s === void 0 ? Xi : s, o = r.plugins, A = o === void 0 ? Vs : o, f = function(c, h, g) {
10792
- return g.startsWith(i) && g.endsWith(i) && g.replaceAll(i, "").length > 0 ? ".".concat(e) : c;
10791
+ var e, i, t, r = Xi, s = r.options, a = s === void 0 ? Xi : s, o = r.plugins, A = o === void 0 ? Vs : o, f = function(l, h, g) {
10792
+ return g.startsWith(i) && g.endsWith(i) && g.replaceAll(i, "").length > 0 ? ".".concat(e) : l;
10793
10793
  }, d = A.slice();
10794
- d.push(function(c) {
10795
- c.type === Ys && c.value.includes("&") && (c.props[0] = c.props[0].replace(Rk, i).replace(t, f));
10794
+ d.push(function(l) {
10795
+ l.type === Ys && l.value.includes("&") && (l.props[0] = l.props[0].replace(Rk, i).replace(t, f));
10796
10796
  }), a.prefix && d.push(ok), d.push(rk);
10797
- var l = function(c, h, g, v) {
10797
+ var c = function(l, h, g, v) {
10798
10798
  h === void 0 && (h = ""), g === void 0 && (g = ""), v === void 0 && (v = "&"), e = v, i = h, t = new RegExp("\\".concat(i, "\\b"), "g");
10799
- var m = c.replace(Fk, ""), w = ik(g || h ? "".concat(g, " ").concat(h, " { ").concat(m, " }") : m);
10799
+ var m = l.replace(Fk, ""), w = ik(g || h ? "".concat(g, " ").concat(h, " { ").concat(m, " }") : m);
10800
10800
  a.namespace && (w = J1(w, a.namespace));
10801
10801
  var C = [];
10802
10802
  return es(w, sk(d.concat(ak(function(p) {
10803
10803
  return C.push(p);
10804
10804
  })))), C;
10805
10805
  };
10806
- return l.hash = A.length ? A.reduce(function(c, h) {
10807
- return h.name || At(15), mi(c, h.name);
10808
- }, L1).toString() : "", l;
10806
+ return c.hash = A.length ? A.reduce(function(l, h) {
10807
+ return h.name || At(15), mi(l, h.name);
10808
+ }, L1).toString() : "", c;
10809
10809
  }
10810
- var Wk = new X1(), Ro = Lk(), K1 = Re.createContext({ shouldForwardProp: void 0, styleSheet: Wk, stylis: Ro });
10810
+ var Wk = new X1(), Ro = Lk(), K1 = Qe.createContext({ shouldForwardProp: void 0, styleSheet: Wk, stylis: Ro });
10811
10811
  K1.Consumer;
10812
- Re.createContext(void 0);
10812
+ Qe.createContext(void 0);
10813
10813
  function Zd() {
10814
10814
  return AA(K1);
10815
10815
  }
@@ -10885,11 +10885,11 @@ var Gk = W1(qs), zk = function() {
10885
10885
  }
10886
10886
  else {
10887
10887
  for (var A = mi(this.baseHash, t.hash), f = "", d = 0; d < this.rules.length; d++) {
10888
- var l = this.rules[d];
10889
- if (typeof l == "string") f += l, process.env.NODE_ENV !== "production" && (A = mi(A, l));
10890
- else if (l) {
10891
- var c = jo(Ci(l, e, i, t));
10892
- A = mi(A, c + d), f += c;
10888
+ var c = this.rules[d];
10889
+ if (typeof c == "string") f += c, process.env.NODE_ENV !== "production" && (A = mi(A, c));
10890
+ else if (c) {
10891
+ var l = jo(Ci(c, e, i, t));
10892
+ A = mi(A, l + d), f += l;
10893
10893
  }
10894
10894
  }
10895
10895
  if (f) {
@@ -10899,7 +10899,7 @@ var Gk = W1(qs), zk = function() {
10899
10899
  }
10900
10900
  return r;
10901
10901
  }, n;
10902
- }(), $1 = Re.createContext(void 0);
10902
+ }(), $1 = Qe.createContext(void 0);
10903
10903
  $1.Consumer;
10904
10904
  var ja = {}, $d = /* @__PURE__ */ new Set();
10905
10905
  function qk(n, e, i) {
@@ -10908,9 +10908,9 @@ function qk(n, e, i) {
10908
10908
  ja[b] = (ja[b] || 0) + 1;
10909
10909
  var x = "".concat(b, "-").concat(Y1(qs + b + ja[b]));
10910
10910
  return y ? "".concat(y, "-").concat(x) : x;
10911
- }(e.displayName, e.parentComponentId) : A, d = e.displayName, l = d === void 0 ? function(k) {
10911
+ }(e.displayName, e.parentComponentId) : A, d = e.displayName, c = d === void 0 ? function(k) {
10912
10912
  return Ta(k) ? "styled.".concat(k) : "Styled(".concat(H1(k), ")");
10913
- }(n) : d, c = e.displayName && e.componentId ? "".concat(qd(e.displayName), "-").concat(e.componentId) : e.componentId || f, h = t && r.attrs ? r.attrs.concat(o).filter(Boolean) : o, g = e.shouldForwardProp;
10913
+ }(n) : d, l = e.displayName && e.componentId ? "".concat(qd(e.displayName), "-").concat(e.componentId) : e.componentId || f, h = t && r.attrs ? r.attrs.concat(o).filter(Boolean) : o, g = e.shouldForwardProp;
10914
10914
  if (t && r.shouldForwardProp) {
10915
10915
  var v = r.shouldForwardProp;
10916
10916
  if (e.shouldForwardProp) {
@@ -10920,10 +10920,10 @@ function qk(n, e, i) {
10920
10920
  };
10921
10921
  } else g = v;
10922
10922
  }
10923
- var w = new zk(i, c, t ? r.componentStyle : void 0);
10923
+ var w = new zk(i, l, t ? r.componentStyle : void 0);
10924
10924
  function C(k, y) {
10925
10925
  return function(b, x, S) {
10926
- var P = b.attrs, E = b.componentStyle, B = b.defaultProps, M = b.foldedComponentIds, D = b.styledComponentId, L = b.target, W = Re.useContext($1), H = Zd(), U = b.shouldForwardProp || H.shouldForwardProp;
10926
+ var P = b.attrs, E = b.componentStyle, B = b.defaultProps, M = b.foldedComponentIds, D = b.styledComponentId, L = b.target, W = Qe.useContext($1), H = Zd(), U = b.shouldForwardProp || H.shouldForwardProp;
10927
10927
  process.env.NODE_ENV !== "production" && mf(D);
10928
10928
  var ee = ck(x, W, B) || Xi, V = function(ne, Y, X) {
10929
10929
  for (var Z, _ = Ye(Ye({}, Y), { className: void 0, theme: X }), ae = 0; ae < ne.length; ae += 1) {
@@ -10942,9 +10942,9 @@ function qk(n, e, i) {
10942
10942
  return Q && (R += " " + Q), V.className && (R += " " + V.className), O[Ta(j) && !Mo.has(j) ? "class" : "className"] = R, O.ref = S, pm(j, O);
10943
10943
  }(p, k, y);
10944
10944
  }
10945
- C.displayName = l;
10946
- var p = Re.forwardRef(C);
10947
- return p.attrs = h, p.componentStyle = w, p.displayName = l, p.shouldForwardProp = g, p.foldedComponentIds = t ? vi(r.foldedComponentIds, r.styledComponentId) : "", p.styledComponentId = c, p.target = t ? r.target : n, Object.defineProperty(p, "defaultProps", { get: function() {
10945
+ C.displayName = c;
10946
+ var p = Qe.forwardRef(C);
10947
+ return p.attrs = h, p.componentStyle = w, p.displayName = c, p.shouldForwardProp = g, p.foldedComponentIds = t ? vi(r.foldedComponentIds, r.styledComponentId) : "", p.styledComponentId = l, p.target = t ? r.target : n, Object.defineProperty(p, "defaultProps", { get: function() {
10948
10948
  return this._foldedDefaultProps;
10949
10949
  }, set: function(k) {
10950
10950
  this._foldedDefaultProps = t ? function(y) {
@@ -10952,7 +10952,7 @@ function qk(n, e, i) {
10952
10952
  for (var S = 0, P = b; S < P.length; S++) Qo(y, P[S], !0);
10953
10953
  return y;
10954
10954
  }({}, r.defaultProps, k) : k;
10955
- } }), process.env.NODE_ENV !== "production" && (dk(l, c), p.warnTooManyClasses = /* @__PURE__ */ function(k, y) {
10955
+ } }), process.env.NODE_ENV !== "production" && (dk(c, l), p.warnTooManyClasses = /* @__PURE__ */ function(k, y) {
10956
10956
  var b = {}, x = !1;
10957
10957
  return function(S) {
10958
10958
  if (!x && (b[S] = !0, Object.keys(b).length >= 200)) {
@@ -10969,7 +10969,7 @@ Example:
10969
10969
  <Component />`), x = !0, b = {};
10970
10970
  }
10971
10971
  };
10972
- }(l, c)), qA(p, function() {
10972
+ }(c, l)), qA(p, function() {
10973
10973
  return ".".concat(p.styledComponentId);
10974
10974
  }), s && V1(p, n, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), p;
10975
10975
  }
@@ -11550,7 +11550,7 @@ const f4 = N.div`
11550
11550
  isReply: a,
11551
11551
  className: o
11552
11552
  }) => {
11553
- var l;
11553
+ var c;
11554
11554
  const A = e.user.id === r, f = new Date(e.date);
11555
11555
  if ((e == null ? void 0 : e.isSystemMessage) === "true")
11556
11556
  return /* @__PURE__ */ I(pf, { children: [
@@ -11558,7 +11558,7 @@ const f4 = N.div`
11558
11558
  /* @__PURE__ */ u(S4, { messageText: e.body, colors: t == null ? void 0 : t.colors })
11559
11559
  ] }, e.id);
11560
11560
  if ((e == null ? void 0 : e.id) === "delimiter-new")
11561
- return /* @__PURE__ */ u(th, { color: (l = t == null ? void 0 : t.colors) == null ? void 0 : l.primary });
11561
+ return /* @__PURE__ */ u(th, { color: (c = t == null ? void 0 : t.colors) == null ? void 0 : c.primary });
11562
11562
  const d = n || $k;
11563
11563
  return /* @__PURE__ */ I(pf, { children: [
11564
11564
  s && !i && e.id !== "delimiter-new" && /* @__PURE__ */ u(rc, { date: f, colors: t == null ? void 0 : t.colors }),
@@ -11587,8 +11587,8 @@ const f4 = N.div`
11587
11587
  (d) => d.rooms.isLoading
11588
11588
  ), a = de(
11589
11589
  (d) => {
11590
- var l;
11591
- return ((l = d.rooms.rooms[d.rooms.activeRoomJID]) == null ? void 0 : l.isLoading) || !1;
11590
+ var c;
11591
+ return ((c = d.rooms.rooms[d.rooms.activeRoomJID]) == null ? void 0 : c.isLoading) || !1;
11592
11592
  }
11593
11593
  ), o = de(
11594
11594
  (d) => d.rooms.loadingText
@@ -12525,7 +12525,7 @@ const f4 = N.div`
12525
12525
  activeMessage: a
12526
12526
  }) => {
12527
12527
  var T, Q, R, ne;
12528
- const { composing: o, messages: A } = An(i).room, { user: f } = Je(), [d, l] = J(!1), [c, h] = J(0), [g, v] = J(null), m = ge(A.length), w = ge(null), C = ge({}), p = ge(!0), k = Ce(() => A.map((Y) => ({
12528
+ const { composing: o, messages: A } = An(i).room, { user: f } = Je(), [d, c] = J(!1), [l, h] = J(0), [g, v] = J(null), m = ge(A.length), w = ge(null), C = ge({}), p = ge(!0), k = Ce(() => A.map((Y) => ({
12529
12529
  ...Y,
12530
12530
  reply: A.filter(
12531
12531
  (Z) => !!Z.mainMessage && JSON.parse(Z.mainMessage).id === Y.id
@@ -12602,12 +12602,12 @@ const f4 = N.div`
12602
12602
  Y && (Y.scrollTo({
12603
12603
  top: Y.scrollHeight,
12604
12604
  behavior: "smooth"
12605
- }), l(!1), h(0));
12605
+ }), c(!1), h(0));
12606
12606
  }, []), V = () => {
12607
12607
  const Y = x.current;
12608
12608
  if (Y) {
12609
12609
  const X = Y.scrollHeight - Y.clientHeight <= Y.scrollTop + 100;
12610
- D.current = X, Y.scrollHeight - Y.clientHeight - Y.scrollTop > 150 ? l(!0) : X && (ee(), l(!1), h(0)), m.current = A.length, U();
12610
+ D.current = X, Y.scrollHeight - Y.clientHeight - Y.scrollTop > 150 ? c(!0) : X && (ee(), c(!1), h(0)), m.current = A.length, U();
12611
12611
  } else
12612
12612
  B.current = null;
12613
12613
  }, j = () => {
@@ -12648,7 +12648,7 @@ const f4 = N.div`
12648
12648
  color: (T = t == null ? void 0 : t.colors) == null ? void 0 : T.primary,
12649
12649
  children: [
12650
12650
  r && /* @__PURE__ */ u(Rn, { color: (Q = t == null ? void 0 : t.colors) == null ? void 0 : Q.primary }),
12651
- a && /* @__PURE__ */ I(Re.Fragment, { children: [
12651
+ a && /* @__PURE__ */ I(Qe.Fragment, { children: [
12652
12652
  /* @__PURE__ */ u(
12653
12653
  n,
12654
12654
  {
@@ -12702,7 +12702,7 @@ const f4 = N.div`
12702
12702
  color: (R = t == null ? void 0 : t.colors) == null ? void 0 : R.primary,
12703
12703
  children: [
12704
12704
  /* @__PURE__ */ u(ch, { color: ((ne = t == null ? void 0 : t.colors) == null ? void 0 : ne.secondary) || "white" }),
12705
- c > 0 && /* @__PURE__ */ u("span", { className: "count", children: c })
12705
+ l > 0 && /* @__PURE__ */ u("span", { className: "count", children: l })
12706
12706
  ]
12707
12707
  }
12708
12708
  )
@@ -12930,11 +12930,11 @@ const i6 = N.div`
12930
12930
  const [t, r] = J(null), [s, a] = J(0), o = ge(null), A = ge([]), f = ge(null), d = (w) => {
12931
12931
  const C = Math.floor(w / 60), p = w % 60;
12932
12932
  return `${C.toString().padStart(2, "0")}:${p.toString().padStart(2, "0")}`;
12933
- }, l = ie(() => {
12933
+ }, c = ie(() => {
12934
12934
  f.current = setInterval(() => {
12935
12935
  a((w) => w + 1);
12936
12936
  }, 1e3);
12937
- }, []), c = ie(() => {
12937
+ }, []), l = ie(() => {
12938
12938
  f.current && clearInterval(f.current);
12939
12939
  }, []), h = () => {
12940
12940
  r(null), a(0), n(!1), A.current = [], o.current && o.current.stream.getTracks().forEach((w) => w.stop());
@@ -12945,11 +12945,11 @@ const i6 = N.div`
12945
12945
  }, C.onstop = () => {
12946
12946
  const p = new Blob(A.current);
12947
12947
  r(p);
12948
- }, A.current = [], C.start(), n(!0), l();
12949
- }, [l, n]), v = () => {
12950
- o.current && (o.current.stop(), c(), h());
12948
+ }, A.current = [], C.start(), n(!0), c();
12949
+ }, [c, n]), v = () => {
12950
+ o.current && (o.current.stop(), l(), h());
12951
12951
  }, m = () => {
12952
- o.current && (o.current.stop(), c(), o.current.onstop = () => {
12952
+ o.current && (o.current.stop(), l(), o.current.onstop = () => {
12953
12953
  const w = new Blob(A.current);
12954
12954
  i(w), h();
12955
12955
  });
@@ -12974,14 +12974,14 @@ const i6 = N.div`
12974
12974
  isLoading: a
12975
12975
  }) => {
12976
12976
  var P, E, B, M, D, L;
12977
- const [o, A] = J(""), [f, d] = J(!1), [l, c] = J([]), h = ge(null), g = ie(() => {
12977
+ const [o, A] = J(""), [f, d] = J(!1), [c, l] = J([]), h = ge(null), g = ie(() => {
12978
12978
  h.current && h.current.click();
12979
12979
  }, []), v = ie(
12980
12980
  (W) => {
12981
12981
  const H = W.target.files;
12982
12982
  if (H) {
12983
12983
  const U = Array.from(H);
12984
- c((ee) => {
12984
+ l((ee) => {
12985
12985
  const V = new Set(ee.map((T) => T.name)), j = U.filter(
12986
12986
  (T) => !V.has(T.name)
12987
12987
  );
@@ -12997,7 +12997,7 @@ const i6 = N.div`
12997
12997
  }, w = () => {
12998
12998
  t == null || t();
12999
12999
  }, C = ie((W) => {
13000
- c((H) => H.filter((U) => U !== W));
13000
+ l((H) => H.filter((U) => U !== W));
13001
13001
  }, []), p = ie(
13002
13002
  (W) => {
13003
13003
  A(W.target.value);
@@ -13009,20 +13009,20 @@ const i6 = N.div`
13009
13009
  }, [s]);
13010
13010
  const k = ie(
13011
13011
  (W) => {
13012
- l.length > 0 ? (console.log(l), console.log("Files sent:", l[0]), e(l[0], "media"), d(!1)) : W ? (e(W, "audio"), console.log(W), console.log("Audio sent:", W), d(!1)) : (console.log("sending default", o), n(o)), A(""), c([]);
13012
+ c.length > 0 ? (console.log(c), console.log("Files sent:", c[0]), e(c[0], "media"), d(!1)) : W ? (e(W, "audio"), console.log(W), console.log("Audio sent:", W), d(!1)) : (console.log("sending default", o), n(o)), A(""), l([]);
13013
13013
  },
13014
- [l, o, n, e]
13014
+ [c, o, n, e]
13015
13015
  ), y = ie(() => {
13016
- n(o + r.secondarySendButton.messageEdit), A(""), c([]);
13017
- }, [l, o, n, e]), b = ie(
13016
+ n(o + r.secondarySendButton.messageEdit), A(""), l([]);
13017
+ }, [c, o, n, e]), b = ie(
13018
13018
  (W) => {
13019
- W.key === "Enter" && (l.length > 0 || o) && k();
13019
+ W.key === "Enter" && (c.length > 0 || o) && k();
13020
13020
  },
13021
13021
  [k]
13022
13022
  ), x = ie((W) => {
13023
13023
  const H = URL.createObjectURL(W), U = W.type.split("/")[0];
13024
13024
  return U === "image" ? /* @__PURE__ */ u(s6, { src: H, alt: W.name }) : U === "video" ? /* @__PURE__ */ u(a6, { src: H, controls: !0 }) : /* @__PURE__ */ u(Xs, { alt: W.name });
13025
- }, []), S = Ce(() => l.map(
13025
+ }, []), S = Ce(() => c.map(
13026
13026
  (W, H) => H < 1 && /* @__PURE__ */ I(r6, { children: [
13027
13027
  x(W),
13028
13028
  /* @__PURE__ */ u(
@@ -13041,7 +13041,7 @@ const i6 = N.div`
13041
13041
  }
13042
13042
  )
13043
13043
  ] }, W.name)
13044
- ), [l, x, C]);
13044
+ ), [c, x, C]);
13045
13045
  return /* @__PURE__ */ I(_4, { children: [
13046
13046
  /* @__PURE__ */ I($4, { children: [
13047
13047
  !f && /* @__PURE__ */ I(pe, { children: [
@@ -13067,7 +13067,7 @@ const i6 = N.div`
13067
13067
  }
13068
13068
  )
13069
13069
  ] }),
13070
- o || l.length > 0 || r != null && r.disableMedia ? /* @__PURE__ */ I(pe, { children: [
13070
+ o || c.length > 0 || r != null && r.disableMedia ? /* @__PURE__ */ I(pe, { children: [
13071
13071
  ((E = r == null ? void 0 : r.secondarySendButton) == null ? void 0 : E.enabled) && /* @__PURE__ */ u(
13072
13072
  se,
13073
13073
  {
@@ -13075,7 +13075,7 @@ const i6 = N.div`
13075
13075
  style: {
13076
13076
  color: "white",
13077
13077
  borderRadius: "100px",
13078
- backgroundColor: l.length > 0 ? (B = r == null ? void 0 : r.colors) == null ? void 0 : B.primary : !o || o === "" ? "transparent" : (M = r == null ? void 0 : r.colors) == null ? void 0 : M.primary,
13078
+ backgroundColor: c.length > 0 ? (B = r == null ? void 0 : r.colors) == null ? void 0 : B.primary : !o || o === "" ? "transparent" : (M = r == null ? void 0 : r.colors) == null ? void 0 : M.primary,
13079
13079
  ...r == null ? void 0 : r.secondarySendButton.buttonStyles
13080
13080
  },
13081
13081
  children: r == null ? void 0 : r.secondarySendButton.buttonText
@@ -13088,12 +13088,12 @@ const i6 = N.div`
13088
13088
  EndIcon: /* @__PURE__ */ u(
13089
13089
  sh,
13090
13090
  {
13091
- color: l.length > 0 ? "#fff" : !o || o === "" ? "#D4D4D8" : "#fff"
13091
+ color: c.length > 0 ? "#fff" : !o || o === "" ? "#D4D4D8" : "#fff"
13092
13092
  }
13093
13093
  ),
13094
13094
  style: {
13095
13095
  borderRadius: "100px",
13096
- backgroundColor: l.length > 0 ? (D = r == null ? void 0 : r.colors) == null ? void 0 : D.primary : !o || o === "" ? "transparent" : (L = r == null ? void 0 : r.colors) == null ? void 0 : L.primary
13096
+ backgroundColor: c.length > 0 ? (D = r == null ? void 0 : r.colors) == null ? void 0 : D.primary : !o || o === "" ? "transparent" : (L = r == null ? void 0 : r.colors) == null ? void 0 : L.primary
13097
13097
  }
13098
13098
  }
13099
13099
  )
@@ -13114,7 +13114,7 @@ const i6 = N.div`
13114
13114
  onChange: v
13115
13115
  }
13116
13116
  ),
13117
- l.length > 0 && /* @__PURE__ */ u(t6, { children: S })
13117
+ c.length > 0 && /* @__PURE__ */ u(t6, { children: S })
13118
13118
  ] });
13119
13119
  }, g6 = N.div`
13120
13120
  position: relative;
@@ -13167,16 +13167,16 @@ const i6 = N.div`
13167
13167
  s(!0);
13168
13168
  }, d = () => {
13169
13169
  a || s(!1);
13170
- }, l = (c) => {
13171
- o(!!c.target.value);
13170
+ }, c = (l) => {
13171
+ o(!!l.target.value);
13172
13172
  };
13173
13173
  return fe(() => {
13174
13174
  if (r && e) {
13175
- const c = setTimeout(() => {
13175
+ const l = setTimeout(() => {
13176
13176
  var h;
13177
13177
  (h = A.current) == null || h.focus();
13178
13178
  }, 250);
13179
- return () => clearTimeout(c);
13179
+ return () => clearTimeout(l);
13180
13180
  }
13181
13181
  }, [r, e]), /* @__PURE__ */ I(
13182
13182
  g6,
@@ -13192,8 +13192,8 @@ const i6 = N.div`
13192
13192
  animated: e,
13193
13193
  expanded: r,
13194
13194
  onClick: () => {
13195
- var c;
13196
- return (c = A.current) == null ? void 0 : c.focus();
13195
+ var l;
13196
+ return (l = A.current) == null ? void 0 : l.focus();
13197
13197
  },
13198
13198
  children: n
13199
13199
  }
@@ -13205,7 +13205,7 @@ const i6 = N.div`
13205
13205
  onBlur: d,
13206
13206
  animated: e,
13207
13207
  expanded: r,
13208
- onInput: l,
13208
+ onInput: c,
13209
13209
  ...t
13210
13210
  }
13211
13211
  )
@@ -13219,16 +13219,16 @@ const i6 = N.div`
13219
13219
  menuIcon: t
13220
13220
  }) => {
13221
13221
  const [r, s] = J(!1), a = ge(null), o = ge(null), A = i === "right" ? { top: "60px", right: "-140px" } : { top: "60px", right: "0px" }, f = (d) => {
13222
- d.preventDefault(), s((l) => !l);
13222
+ d.preventDefault(), s((c) => !c);
13223
13223
  };
13224
13224
  return fe(() => {
13225
- const d = (l) => {
13226
- a.current && !a.current.contains(l.target) && o.current && !o.current.contains(l.target) && s(!1);
13225
+ const d = (c) => {
13226
+ a.current && !a.current.contains(c.target) && o.current && !o.current.contains(c.target) && s(!1);
13227
13227
  };
13228
13228
  return r && document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
13229
13229
  }, [r]), /* @__PURE__ */ I(b6, { children: [
13230
- e ? Re.cloneElement(e, { ref: o, onClick: f }) : /* @__PURE__ */ u(se, { onClick: f, children: t ?? /* @__PURE__ */ u(q4, {}) }),
13231
- r && /* @__PURE__ */ u(y6, { ref: a, style: A, children: n.map((d, l) => /* @__PURE__ */ I(pe, { children: [
13230
+ e ? Qe.cloneElement(e, { ref: o, onClick: f }) : /* @__PURE__ */ u(se, { onClick: f, children: t ?? /* @__PURE__ */ u(q4, {}) }),
13231
+ r && /* @__PURE__ */ u(y6, { ref: a, style: A, children: n.map((d, c) => /* @__PURE__ */ I(pe, { children: [
13232
13232
  /* @__PURE__ */ I(
13233
13233
  k6,
13234
13234
  {
@@ -13240,9 +13240,9 @@ const i6 = N.div`
13240
13240
  /* @__PURE__ */ u(C6, { style: { ...d == null ? void 0 : d.styles }, children: d.label })
13241
13241
  ]
13242
13242
  },
13243
- l
13243
+ c
13244
13244
  ),
13245
- l < (n == null ? void 0 : n.length) - 1 && /* @__PURE__ */ u(v6, {})
13245
+ c < (n == null ? void 0 : n.length) - 1 && /* @__PURE__ */ u(v6, {})
13246
13246
  ] })) })
13247
13247
  ] });
13248
13248
  }, v6 = N.div`
@@ -13583,9 +13583,9 @@ const bh = function(n) {
13583
13583
  this.init_();
13584
13584
  const i = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, t = [];
13585
13585
  for (let r = 0; r < n.length; r += 3) {
13586
- const s = n[r], a = r + 1 < n.length, o = a ? n[r + 1] : 0, A = r + 2 < n.length, f = A ? n[r + 2] : 0, d = s >> 2, l = (s & 3) << 4 | o >> 4;
13587
- let c = (o & 15) << 2 | f >> 6, h = f & 63;
13588
- A || (h = 64, a || (c = 64)), t.push(i[d], i[l], i[c], i[h]);
13586
+ const s = n[r], a = r + 1 < n.length, o = a ? n[r + 1] : 0, A = r + 2 < n.length, f = A ? n[r + 2] : 0, d = s >> 2, c = (s & 3) << 4 | o >> 4;
13587
+ let l = (o & 15) << 2 | f >> 6, h = f & 63;
13588
+ A || (h = 64, a || (l = 64)), t.push(i[d], i[c], i[l], i[h]);
13589
13589
  }
13590
13590
  return t.join("");
13591
13591
  },
@@ -13634,14 +13634,14 @@ const bh = function(n) {
13634
13634
  ++r;
13635
13635
  const f = r < n.length ? i[n.charAt(r)] : 64;
13636
13636
  ++r;
13637
- const l = r < n.length ? i[n.charAt(r)] : 64;
13638
- if (++r, s == null || o == null || f == null || l == null)
13637
+ const c = r < n.length ? i[n.charAt(r)] : 64;
13638
+ if (++r, s == null || o == null || f == null || c == null)
13639
13639
  throw new T6();
13640
- const c = s << 2 | o >> 4;
13641
- if (t.push(c), f !== 64) {
13640
+ const l = s << 2 | o >> 4;
13641
+ if (t.push(l), f !== 64) {
13642
13642
  const h = o << 4 & 240 | f >> 2;
13643
- if (t.push(h), l !== 64) {
13644
- const g = f << 6 & 192 | l;
13643
+ if (t.push(h), c !== 64) {
13644
+ const g = f << 6 & 192 | c;
13645
13645
  t.push(g);
13646
13646
  }
13647
13647
  }
@@ -15791,7 +15791,7 @@ async function os(n) {
15791
15791
  );
15792
15792
  const s = r.users[0];
15793
15793
  n._notifyReloadListener(s);
15794
- const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Lh(s.providerUserInfo) : [], o = xC(n.providerData, a), A = n.isAnonymous, f = !(n.email && s.passwordHash) && !(o != null && o.length), d = A ? f : !1, l = {
15794
+ const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Lh(s.providerUserInfo) : [], o = xC(n.providerData, a), A = n.isAnonymous, f = !(n.email && s.passwordHash) && !(o != null && o.length), d = A ? f : !1, c = {
15795
15795
  uid: s.localId,
15796
15796
  displayName: s.displayName || null,
15797
15797
  photoURL: s.photoUrl || null,
@@ -15803,7 +15803,7 @@ async function os(n) {
15803
15803
  metadata: new Xo(s.createdAt, s.lastLoginAt),
15804
15804
  isAnonymous: d
15805
15805
  };
15806
- Object.assign(n, l);
15806
+ Object.assign(n, c);
15807
15807
  }
15808
15808
  async function CC(n) {
15809
15809
  const e = dt(n);
@@ -16063,7 +16063,7 @@ class On {
16063
16063
  }
16064
16064
  static _fromJSON(e, i) {
16065
16065
  var t, r, s, a, o, A, f, d;
16066
- const l = (t = i.displayName) !== null && t !== void 0 ? t : void 0, c = (r = i.email) !== null && r !== void 0 ? r : void 0, h = (s = i.phoneNumber) !== null && s !== void 0 ? s : void 0, g = (a = i.photoURL) !== null && a !== void 0 ? a : void 0, v = (o = i.tenantId) !== null && o !== void 0 ? o : void 0, m = (A = i._redirectEventId) !== null && A !== void 0 ? A : void 0, w = (f = i.createdAt) !== null && f !== void 0 ? f : void 0, C = (d = i.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: p, emailVerified: k, isAnonymous: y, providerData: b, stsTokenManager: x } = i;
16066
+ const c = (t = i.displayName) !== null && t !== void 0 ? t : void 0, l = (r = i.email) !== null && r !== void 0 ? r : void 0, h = (s = i.phoneNumber) !== null && s !== void 0 ? s : void 0, g = (a = i.photoURL) !== null && a !== void 0 ? a : void 0, v = (o = i.tenantId) !== null && o !== void 0 ? o : void 0, m = (A = i._redirectEventId) !== null && A !== void 0 ? A : void 0, w = (f = i.createdAt) !== null && f !== void 0 ? f : void 0, C = (d = i.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: p, emailVerified: k, isAnonymous: y, providerData: b, stsTokenManager: x } = i;
16067
16067
  te(
16068
16068
  p && x,
16069
16069
  e,
@@ -16076,7 +16076,7 @@ class On {
16076
16076
  e,
16077
16077
  "internal-error"
16078
16078
  /* AuthErrorCode.INTERNAL_ERROR */
16079
- ), qn(l, e.name), qn(c, e.name), te(
16079
+ ), qn(c, e.name), qn(l, e.name), te(
16080
16080
  typeof k == "boolean",
16081
16081
  e,
16082
16082
  "internal-error"
@@ -16090,9 +16090,9 @@ class On {
16090
16090
  const P = new On({
16091
16091
  uid: p,
16092
16092
  auth: e,
16093
- email: c,
16093
+ email: l,
16094
16094
  emailVerified: k,
16095
- displayName: l,
16095
+ displayName: c,
16096
16096
  isAnonymous: y,
16097
16097
  photoURL: g,
16098
16098
  phoneNumber: h,
@@ -16277,8 +16277,8 @@ class Wi {
16277
16277
  try {
16278
16278
  const d = await f._get(a);
16279
16279
  if (d) {
16280
- const l = On._fromJSON(e, d);
16281
- f !== s && (o = l), s = f;
16280
+ const c = On._fromJSON(e, d);
16281
+ f !== s && (o = c), s = f;
16282
16282
  break;
16283
16283
  }
16284
16284
  } catch {
@@ -18102,10 +18102,10 @@ class $C {
18102
18102
  }, t);
18103
18103
  a = {
18104
18104
  messageChannel: r,
18105
- onMessage(l) {
18106
- const c = l;
18107
- if (c.data.eventId === f)
18108
- switch (c.data.status) {
18105
+ onMessage(c) {
18106
+ const l = c;
18107
+ if (l.data.eventId === f)
18108
+ switch (l.data.status) {
18109
18109
  case "ack":
18110
18110
  clearTimeout(d), s = setTimeout(
18111
18111
  () => {
@@ -18119,7 +18119,7 @@ class $C {
18119
18119
  );
18120
18120
  break;
18121
18121
  case "done":
18122
- clearTimeout(s), o(c.data.response);
18122
+ clearTimeout(s), o(l.data.response);
18123
18123
  break;
18124
18124
  default:
18125
18125
  clearTimeout(d), clearTimeout(s), A(new Error(
@@ -19105,21 +19105,21 @@ function q7(n, e, i, t = Y7, r = H7) {
19105
19105
  left: a
19106
19106
  }), f = Fe().toLowerCase();
19107
19107
  i && (o = Gh(f) ? G7 : i), Yh(f) && (e = e || z7, A.scrollbars = "yes");
19108
- const d = Object.entries(A).reduce((c, [h, g]) => `${c}${h}=${g},`, "");
19108
+ const d = Object.entries(A).reduce((l, [h, g]) => `${l}${h}=${g},`, "");
19109
19109
  if (DC(f) && o !== "_self")
19110
19110
  return V7(e || "", o), new Bc(null);
19111
- const l = window.open(e || "", o, d);
19111
+ const c = window.open(e || "", o, d);
19112
19112
  te(
19113
- l,
19113
+ c,
19114
19114
  n,
19115
19115
  "popup-blocked"
19116
19116
  /* AuthErrorCode.POPUP_BLOCKED */
19117
19117
  );
19118
19118
  try {
19119
- l.focus();
19119
+ c.focus();
19120
19120
  } catch {
19121
19121
  }
19122
- return new Bc(l);
19122
+ return new Bc(c);
19123
19123
  }
19124
19124
  function V7(n, e) {
19125
19125
  const i = document.createElement("a");
@@ -19166,11 +19166,11 @@ async function Dc(n, e, i, t, r, s) {
19166
19166
  };
19167
19167
  if (e instanceof sf) {
19168
19168
  e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", _6(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
19169
- for (const [d, l] of Object.entries({}))
19170
- a[d] = l;
19169
+ for (const [d, c] of Object.entries({}))
19170
+ a[d] = c;
19171
19171
  }
19172
19172
  if (e instanceof Gt) {
19173
- const d = e.getScopes().filter((l) => l !== "");
19173
+ const d = e.getScopes().filter((c) => c !== "");
19174
19174
  d.length > 0 && (a.scopes = d.join(","));
19175
19175
  }
19176
19176
  n.tenantId && (a.tid = n.tenantId);
@@ -19601,7 +19601,7 @@ const Oi = ({
19601
19601
  if (!g) return "";
19602
19602
  const m = g.normalize("NFD").replace(/[\u0300-\u036f]/g, "").trim().split(/\s+/), w = (k) => k && /^[\p{L}\p{N}\p{P}]/u.test(k[0]) ? k[0].toUpperCase() : "", C = w(m[0] || ""), p = w(m[1] || "");
19603
19603
  return C + p;
19604
- }, l = () => !e && n ? d(n) : "", c = (g) => {
19604
+ }, c = () => !e && n ? d(n) : "", l = (g) => {
19605
19605
  var m;
19606
19606
  const v = (m = g.target.files) == null ? void 0 : m[0];
19607
19607
  v && (t != null && t.onUpload) && t.onUpload(v);
@@ -19632,7 +19632,7 @@ const Oi = ({
19632
19632
  alt: "avatar icon",
19633
19633
  size: i
19634
19634
  }
19635
- ) : o || l(),
19635
+ ) : o || c(),
19636
19636
  (t == null ? void 0 : t.active) && /* @__PURE__ */ I(pe, { children: [
19637
19637
  /* @__PURE__ */ u(
19638
19638
  p4,
@@ -19640,7 +19640,7 @@ const Oi = ({
19640
19640
  type: "file",
19641
19641
  id: "avatar-file-input",
19642
19642
  accept: "image/png, image/jpeg",
19643
- onChange: c
19643
+ onChange: l
19644
19644
  }
19645
19645
  ),
19646
19646
  !A && /* @__PURE__ */ u(v4, { children: /* @__PURE__ */ u(Us, { style: { fontSize: i / 2 }, color: "#fff" }) })
@@ -19731,21 +19731,21 @@ const Oi = ({
19731
19731
  }) => {
19732
19732
  const [s, a] = J(!1), [o, A] = J(
19733
19733
  r
19734
- ), [f, d] = J(""), l = ge(null), c = () => a((m) => !m), h = (m) => {
19734
+ ), [f, d] = J(""), c = ge(null), l = () => a((m) => !m), h = (m) => {
19735
19735
  A(m), i(m), a(!1), d("");
19736
19736
  }, g = n.filter(
19737
19737
  (m) => m.name.toLowerCase().includes(f.toLowerCase())
19738
19738
  ), v = (m) => {
19739
- l.current && !l.current.contains(m.target) && a(!1);
19739
+ c.current && !c.current.contains(m.target) && a(!1);
19740
19740
  };
19741
19741
  return fe(() => (s ? document.addEventListener("mousedown", v) : document.removeEventListener("mousedown", v), () => {
19742
19742
  document.removeEventListener("mousedown", v);
19743
- }), [s]), /* @__PURE__ */ I(p5, { ref: l, children: [
19743
+ }), [s]), /* @__PURE__ */ I(p5, { ref: c, children: [
19744
19744
  /* @__PURE__ */ I(
19745
19745
  v5,
19746
19746
  {
19747
19747
  isOpen: s,
19748
- onClick: c,
19748
+ onClick: l,
19749
19749
  borderColor: t,
19750
19750
  children: [
19751
19751
  o ? /* @__PURE__ */ u("span", { children: o.name }) : /* @__PURE__ */ u(w5, { children: e }),
@@ -19806,11 +19806,11 @@ const ug = ({
19806
19806
  headerElement: t,
19807
19807
  filter: r
19808
19808
  }) => {
19809
- const { usersSet: s } = An(), [a, o] = J(""), [A, f] = J([]), d = (c) => {
19810
- i((h) => h.some((v) => v._id === c._id) ? h.filter((v) => v._id !== c._id) : [...h, c]);
19811
- }, l = Ce(
19812
- () => D5((c) => {
19813
- const h = c.toLowerCase(), g = Object.values(s).filter(
19809
+ const { usersSet: s } = An(), [a, o] = J(""), [A, f] = J([]), d = (l) => {
19810
+ i((h) => h.some((v) => v._id === l._id) ? h.filter((v) => v._id !== l._id) : [...h, l]);
19811
+ }, c = Ce(
19812
+ () => D5((l) => {
19813
+ const h = l.toLowerCase(), g = Object.values(s).filter(
19814
19814
  (v) => `${v.firstName} ${v.lastName}`.toLowerCase().includes(h)
19815
19815
  );
19816
19816
  f(g);
@@ -19818,8 +19818,8 @@ const ug = ({
19818
19818
  [s]
19819
19819
  );
19820
19820
  return fe(() => {
19821
- l(a);
19822
- }, [a, l]), fe(() => {
19821
+ c(a);
19822
+ }, [a, c]), fe(() => {
19823
19823
  f(Object.values(s));
19824
19824
  }, [s]), /* @__PURE__ */ I("div", { style: { maxHeight: "100px", ...n }, children: [
19825
19825
  t ? /* @__PURE__ */ u($i, { children: "Select Users (max 20)" }) : /* @__PURE__ */ u("div", { style: { fontSize: "14px", fontWeight: 600 }, children: "Select Users (max 20)" }),
@@ -19829,29 +19829,29 @@ const ug = ({
19829
19829
  type: "text",
19830
19830
  placeholder: "Search users...",
19831
19831
  value: a,
19832
- onChange: (c) => o(c.target.value),
19832
+ onChange: (l) => o(l.target.value),
19833
19833
  style: { width: "100%" }
19834
19834
  }
19835
19835
  ),
19836
- /* @__PURE__ */ u(C5, { style: { ...n }, children: A.map((c) => /* @__PURE__ */ I(
19836
+ /* @__PURE__ */ u(C5, { style: { ...n }, children: A.map((l) => /* @__PURE__ */ I(
19837
19837
  x5,
19838
19838
  {
19839
- onClick: () => d(c),
19839
+ onClick: () => d(l),
19840
19840
  style: { cursor: "pointer" },
19841
19841
  children: [
19842
19842
  /* @__PURE__ */ u(
19843
19843
  E5,
19844
19844
  {
19845
19845
  type: "checkbox",
19846
- checked: e.some((h) => h._id === c._id),
19847
- onChange: () => d(c),
19846
+ checked: e.some((h) => h._id === l._id),
19847
+ onChange: () => d(l),
19848
19848
  disabled: e.length === 20
19849
19849
  }
19850
19850
  ),
19851
- /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(B5, { children: `${c.firstName} ${c.lastName}` }) })
19851
+ /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(B5, { children: `${l.firstName} ${l.lastName}` }) })
19852
19852
  ]
19853
19853
  },
19854
- c._id
19854
+ l._id
19855
19855
  )) })
19856
19856
  ] });
19857
19857
  }, I5 = Hn`
@@ -19963,21 +19963,21 @@ const ug = ({
19963
19963
  var W, H;
19964
19964
  const n = de(
19965
19965
  (U) => U.chatSettingStore.config
19966
- ), e = be(), { client: i } = nn(), { showToast: t } = qt(), [r, s] = J(!1), [a, o] = J(!1), [A, f] = J("0"), [d, l] = J(""), [c, h] = J(""), [g, v] = J({
19966
+ ), e = be(), { client: i } = nn(), { showToast: t } = qt(), [r, s] = J(!1), [a, o] = J(!1), [A, f] = J("0"), [d, c] = J(""), [l, h] = J(""), [g, v] = J({
19967
19967
  name: "Public",
19968
19968
  id: "public"
19969
19969
  }), [m, w] = J(null), [C, p] = J({ name: "", description: "" }), [k, y] = J([]), b = Ce(
19970
19970
  // () => roomName.length >= 3 && roomDescription.length >= 5,
19971
19971
  () => d.length >= 3,
19972
- [d, c]
19972
+ [d, l]
19973
19973
  ), x = (U) => U.trim().length < 3 ? "Room name must be at least 3 characters." : "", S = (U) => {
19974
19974
  const ee = U.target.value;
19975
- l(ee), p((V) => ({
19975
+ c(ee), p((V) => ({
19976
19976
  ...V,
19977
19977
  name: x(ee)
19978
19978
  }));
19979
19979
  }, P = () => s(!0), E = () => {
19980
- f("0"), s(!1), l(""), y([]);
19980
+ f("0"), s(!1), c(""), y([]);
19981
19981
  }, B = async (U) => {
19982
19982
  w(U);
19983
19983
  }, M = async () => {
@@ -20014,7 +20014,7 @@ const ug = ({
20014
20014
  if (n != null && n.newArch) {
20015
20015
  const Q = k.map((ne) => ne.xmppUsername), R = await Uy({
20016
20016
  title: d,
20017
- description: c && c !== "" ? c : "No description",
20017
+ description: l && l !== "" ? l : "No description",
20018
20018
  picture: T || "",
20019
20019
  type: g.id || "public",
20020
20020
  members: Q
@@ -20023,13 +20023,13 @@ const ug = ({
20023
20023
  } else {
20024
20024
  const Q = await i.createRoomStanza(
20025
20025
  d,
20026
- c && c !== "" ? c : "No description"
20026
+ l && l !== "" ? l : "No description"
20027
20027
  );
20028
20028
  i.getRoomsStanza(), e(Ve({ roomJID: Q })), T && (i.setRoomImageStanza(Q, T, "icon", "none"), e(
20029
20029
  Tn({ jid: Q, updates: { icon: T } })
20030
20030
  ));
20031
20031
  }
20032
- s(!1), p({ name: "", description: "" }), w(null), l(""), h(""), o(!1), t({
20032
+ s(!1), p({ name: "", description: "" }), w(null), c(""), h(""), o(!1), t({
20033
20033
  id: Date.now().toString(),
20034
20034
  title: "Success!",
20035
20035
  message: "Room created succusfully!",
@@ -20295,7 +20295,7 @@ var Mc;
20295
20295
  function z5() {
20296
20296
  if (Mc) return ce;
20297
20297
  Mc = 1;
20298
- var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, i = n ? Symbol.for("react.portal") : 60106, t = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, s = n ? Symbol.for("react.profiler") : 60114, a = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, A = n ? Symbol.for("react.async_mode") : 60111, f = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, l = n ? Symbol.for("react.suspense") : 60113, c = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, v = n ? Symbol.for("react.block") : 60121, m = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, C = n ? Symbol.for("react.scope") : 60119;
20298
+ var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, i = n ? Symbol.for("react.portal") : 60106, t = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, s = n ? Symbol.for("react.profiler") : 60114, a = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, A = n ? Symbol.for("react.async_mode") : 60111, f = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, c = n ? Symbol.for("react.suspense") : 60113, l = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, v = n ? Symbol.for("react.block") : 60121, m = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, C = n ? Symbol.for("react.scope") : 60119;
20299
20299
  function p(y) {
20300
20300
  if (typeof y == "object" && y !== null) {
20301
20301
  var b = y.$$typeof;
@@ -20307,7 +20307,7 @@ function z5() {
20307
20307
  case t:
20308
20308
  case s:
20309
20309
  case r:
20310
- case l:
20310
+ case c:
20311
20311
  return y;
20312
20312
  default:
20313
20313
  switch (y = y && y.$$typeof, y) {
@@ -20329,7 +20329,7 @@ function z5() {
20329
20329
  function k(y) {
20330
20330
  return p(y) === f;
20331
20331
  }
20332
- return ce.AsyncMode = A, ce.ConcurrentMode = f, ce.ContextConsumer = o, ce.ContextProvider = a, ce.Element = e, ce.ForwardRef = d, ce.Fragment = t, ce.Lazy = g, ce.Memo = h, ce.Portal = i, ce.Profiler = s, ce.StrictMode = r, ce.Suspense = l, ce.isAsyncMode = function(y) {
20332
+ return ce.AsyncMode = A, ce.ConcurrentMode = f, ce.ContextConsumer = o, ce.ContextProvider = a, ce.Element = e, ce.ForwardRef = d, ce.Fragment = t, ce.Lazy = g, ce.Memo = h, ce.Portal = i, ce.Profiler = s, ce.StrictMode = r, ce.Suspense = c, ce.isAsyncMode = function(y) {
20333
20333
  return k(y) || p(y) === A;
20334
20334
  }, ce.isConcurrentMode = k, ce.isContextConsumer = function(y) {
20335
20335
  return p(y) === o;
@@ -20352,9 +20352,9 @@ function z5() {
20352
20352
  }, ce.isStrictMode = function(y) {
20353
20353
  return p(y) === r;
20354
20354
  }, ce.isSuspense = function(y) {
20355
- return p(y) === l;
20355
+ return p(y) === c;
20356
20356
  }, ce.isValidElementType = function(y) {
20357
- return typeof y == "string" || typeof y == "function" || y === t || y === f || y === s || y === r || y === l || y === c || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === h || y.$$typeof === a || y.$$typeof === o || y.$$typeof === d || y.$$typeof === m || y.$$typeof === w || y.$$typeof === C || y.$$typeof === v);
20357
+ return typeof y == "string" || typeof y == "function" || y === t || y === f || y === s || y === r || y === c || y === l || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === h || y.$$typeof === a || y.$$typeof === o || y.$$typeof === d || y.$$typeof === m || y.$$typeof === w || y.$$typeof === C || y.$$typeof === v);
20358
20358
  }, ce.typeOf = p, ce;
20359
20359
  }
20360
20360
  var le = {};
@@ -20369,10 +20369,10 @@ var le = {};
20369
20369
  var Tc;
20370
20370
  function q5() {
20371
20371
  return Tc || (Tc = 1, process.env.NODE_ENV !== "production" && function() {
20372
- var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, i = n ? Symbol.for("react.portal") : 60106, t = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, s = n ? Symbol.for("react.profiler") : 60114, a = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, A = n ? Symbol.for("react.async_mode") : 60111, f = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, l = n ? Symbol.for("react.suspense") : 60113, c = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, v = n ? Symbol.for("react.block") : 60121, m = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, C = n ? Symbol.for("react.scope") : 60119;
20372
+ var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, i = n ? Symbol.for("react.portal") : 60106, t = n ? Symbol.for("react.fragment") : 60107, r = n ? Symbol.for("react.strict_mode") : 60108, s = n ? Symbol.for("react.profiler") : 60114, a = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, A = n ? Symbol.for("react.async_mode") : 60111, f = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, c = n ? Symbol.for("react.suspense") : 60113, l = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, v = n ? Symbol.for("react.block") : 60121, m = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, C = n ? Symbol.for("react.scope") : 60119;
20373
20373
  function p(q) {
20374
20374
  return typeof q == "string" || typeof q == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
20375
- q === t || q === f || q === s || q === r || q === l || q === c || typeof q == "object" && q !== null && (q.$$typeof === g || q.$$typeof === h || q.$$typeof === a || q.$$typeof === o || q.$$typeof === d || q.$$typeof === m || q.$$typeof === w || q.$$typeof === C || q.$$typeof === v);
20375
+ q === t || q === f || q === s || q === r || q === c || q === l || typeof q == "object" && q !== null && (q.$$typeof === g || q.$$typeof === h || q.$$typeof === a || q.$$typeof === o || q.$$typeof === d || q.$$typeof === m || q.$$typeof === w || q.$$typeof === C || q.$$typeof === v);
20376
20376
  }
20377
20377
  function k(q) {
20378
20378
  if (typeof q == "object" && q !== null) {
@@ -20386,7 +20386,7 @@ function q5() {
20386
20386
  case t:
20387
20387
  case s:
20388
20388
  case r:
20389
- case l:
20389
+ case c:
20390
20390
  return Kt;
20391
20391
  default:
20392
20392
  var gf = Kt && Kt.$$typeof;
@@ -20406,7 +20406,7 @@ function q5() {
20406
20406
  }
20407
20407
  }
20408
20408
  }
20409
- var y = A, b = f, x = o, S = a, P = e, E = d, B = t, M = g, D = h, L = i, W = s, H = r, U = l, ee = !1;
20409
+ var y = A, b = f, x = o, S = a, P = e, E = d, B = t, M = g, D = h, L = i, W = s, H = r, U = c, ee = !1;
20410
20410
  function V(q) {
20411
20411
  return ee || (ee = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), j(q) || k(q) === A;
20412
20412
  }
@@ -20444,7 +20444,7 @@ function q5() {
20444
20444
  return k(q) === r;
20445
20445
  }
20446
20446
  function De(q) {
20447
- return k(q) === l;
20447
+ return k(q) === c;
20448
20448
  }
20449
20449
  le.AsyncMode = y, le.ConcurrentMode = b, le.ContextConsumer = x, le.ContextProvider = S, le.Element = P, le.ForwardRef = E, le.Fragment = B, le.Lazy = M, le.Memo = D, le.Portal = L, le.Profiler = W, le.StrictMode = H, le.Suspense = U, le.isAsyncMode = V, le.isConcurrentMode = j, le.isContextConsumer = O, le.isContextProvider = T, le.isElement = Q, le.isForwardRef = R, le.isFragment = ne, le.isLazy = Y, le.isMemo = X, le.isPortal = Z, le.isProfiler = _, le.isStrictMode = ae, le.isSuspense = De, le.isValidElementType = p, le.typeOf = k;
20450
20450
  }()), le;
@@ -20493,12 +20493,12 @@ function V5() {
20493
20493
  return qa = r() ? Object.assign : function(s, a) {
20494
20494
  for (var o, A = t(s), f, d = 1; d < arguments.length; d++) {
20495
20495
  o = Object(arguments[d]);
20496
- for (var l in o)
20497
- e.call(o, l) && (A[l] = o[l]);
20496
+ for (var c in o)
20497
+ e.call(o, c) && (A[c] = o[c]);
20498
20498
  if (n) {
20499
20499
  f = n(o);
20500
- for (var c = 0; c < f.length; c++)
20501
- i.call(o, f[c]) && (A[f[c]] = o[f[c]]);
20500
+ for (var l = 0; l < f.length; l++)
20501
+ i.call(o, f[l]) && (A[f[l]] = o[f[l]]);
20502
20502
  }
20503
20503
  }
20504
20504
  return A;
@@ -20536,25 +20536,25 @@ function U5() {
20536
20536
  if (process.env.NODE_ENV !== "production") {
20537
20537
  for (var d in s)
20538
20538
  if (t(s, d)) {
20539
- var l;
20539
+ var c;
20540
20540
  try {
20541
20541
  if (typeof s[d] != "function") {
20542
- var c = Error(
20542
+ var l = Error(
20543
20543
  (A || "React class") + ": " + o + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
20544
20544
  );
20545
- throw c.name = "Invariant Violation", c;
20545
+ throw l.name = "Invariant Violation", l;
20546
20546
  }
20547
- l = s[d](a, d, A, o, null, e);
20547
+ c = s[d](a, d, A, o, null, e);
20548
20548
  } catch (g) {
20549
- l = g;
20549
+ c = g;
20550
20550
  }
20551
- if (l && !(l instanceof Error) && n(
20552
- (A || "React class") + ": type specification of " + o + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof l + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
20553
- ), l instanceof Error && !(l.message in i)) {
20554
- i[l.message] = !0;
20551
+ if (c && !(c instanceof Error) && n(
20552
+ (A || "React class") + ": type specification of " + o + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
20553
+ ), c instanceof Error && !(c.message in i)) {
20554
+ i[c.message] = !0;
20555
20555
  var h = f ? f() : "";
20556
20556
  n(
20557
- "Failed " + o + " type: " + l.message + (h ?? "")
20557
+ "Failed " + o + " type: " + c.message + (h ?? "")
20558
20558
  );
20559
20559
  }
20560
20560
  }
@@ -20583,12 +20583,12 @@ function X5() {
20583
20583
  }
20584
20584
  return Ja = function(o, A) {
20585
20585
  var f = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
20586
- function l(j) {
20586
+ function c(j) {
20587
20587
  var O = j && (f && j[f] || j[d]);
20588
20588
  if (typeof O == "function")
20589
20589
  return O;
20590
20590
  }
20591
- var c = "<<anonymous>>", h = {
20591
+ var l = "<<anonymous>>", h = {
20592
20592
  array: w("array"),
20593
20593
  bigint: w("bigint"),
20594
20594
  bool: w("boolean"),
@@ -20620,7 +20620,7 @@ function X5() {
20620
20620
  if (process.env.NODE_ENV !== "production")
20621
20621
  var O = {}, T = 0;
20622
20622
  function Q(ne, Y, X, Z, _, ae, De) {
20623
- if (Z = Z || c, ae = ae || X, De !== i) {
20623
+ if (Z = Z || l, ae = ae || X, De !== i) {
20624
20624
  if (A) {
20625
20625
  var q = new Error(
20626
20626
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -20699,7 +20699,7 @@ function X5() {
20699
20699
  function b(j) {
20700
20700
  function O(T, Q, R, ne, Y) {
20701
20701
  if (!(T[Q] instanceof j)) {
20702
- var X = j.name || c, Z = V(T[Q]);
20702
+ var X = j.name || l, Z = V(T[Q]);
20703
20703
  return new v("Invalid " + ne + " `" + Y + "` of type " + ("`" + Z + "` supplied to `" + R + "`, expected ") + ("instance of `" + X + "`."));
20704
20704
  }
20705
20705
  return null;
@@ -20826,7 +20826,7 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
20826
20826
  return j.every(L);
20827
20827
  if (j === null || o(j))
20828
20828
  return !0;
20829
- var O = l(j);
20829
+ var O = c(j);
20830
20830
  if (O) {
20831
20831
  var T = O.call(j), Q;
20832
20832
  if (O !== j.entries) {
@@ -20880,7 +20880,7 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
20880
20880
  }
20881
20881
  }
20882
20882
  function V(j) {
20883
- return !j.constructor || !j.constructor.name ? c : j.constructor.name;
20883
+ return !j.constructor || !j.constructor.name ? l : j.constructor.name;
20884
20884
  }
20885
20885
  return h.checkPropTypes = r, h.resetWarningCache = r.resetWarningCache, h.PropTypes = h, h;
20886
20886
  }, Ja;
@@ -20895,12 +20895,12 @@ function J5() {
20895
20895
  function i() {
20896
20896
  }
20897
20897
  return i.resetWarningCache = e, Ka = function() {
20898
- function t(a, o, A, f, d, l) {
20899
- if (l !== n) {
20900
- var c = new Error(
20898
+ function t(a, o, A, f, d, c) {
20899
+ if (c !== n) {
20900
+ var l = new Error(
20901
20901
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
20902
20902
  );
20903
- throw c.name = "Invariant Violation", c;
20903
+ throw l.name = "Invariant Violation", l;
20904
20904
  }
20905
20905
  }
20906
20906
  t.isRequired = t;
@@ -21436,8 +21436,8 @@ var Eg = Qr, Ze = yg, Hc = Eg, i8 = xg, Vn = {
21436
21436
  for (var d = 0, r = 0; r < e; r++)
21437
21437
  for (var t = 0; t < e; t++)
21438
21438
  n.isDark(t, r) && d++;
21439
- var l = Math.abs(100 * d / e / e - 50) / 5;
21440
- return i += l * 10, i;
21439
+ var c = Math.abs(100 * d / e / e - 50) / 5;
21440
+ return i += c * 10, i;
21441
21441
  }
21442
21442
  }, t8 = Ne, r8 = $5, Bg = e8, Dg = n8, di = t8, s8 = Eg;
21443
21443
  function mn(n, e) {
@@ -21583,8 +21583,8 @@ mn.createBytes = function(n, e) {
21583
21583
  for (var d = 0; d < s[o].length; d++)
21584
21584
  s[o][d] = 255 & n.buffer[d + i];
21585
21585
  i += A;
21586
- var l = di.getErrorCorrectPolynomial(f), c = new s8(s[o], l.getLength() - 1), h = c.mod(l);
21587
- a[o] = new Array(l.getLength() - 1);
21586
+ var c = di.getErrorCorrectPolynomial(f), l = new s8(s[o], c.getLength() - 1), h = l.mod(c);
21587
+ a[o] = new Array(c.getLength() - 1);
21588
21588
  for (var d = 0; d < a[o].length; d++) {
21589
21589
  var g = d + h.getLength() - a[o].length;
21590
21590
  a[o][d] = g >= 0 ? h.get(g) : 0;
@@ -21611,7 +21611,7 @@ var o8 = Object.assign || function(n) {
21611
21611
  Object.prototype.hasOwnProperty.call(i, t) && (n[t] = i[t]);
21612
21612
  }
21613
21613
  return n;
21614
- }, A8 = wg, _e = Ng(A8), Ig = Re, lr = Ng(Ig);
21614
+ }, A8 = wg, _e = Ng(A8), Ig = Qe, lr = Ng(Ig);
21615
21615
  function Ng(n) {
21616
21616
  return n && n.__esModule ? n : { default: n };
21617
21617
  }
@@ -21631,10 +21631,10 @@ var d8 = {
21631
21631
  viewBoxSize: _e.default.number.isRequired,
21632
21632
  xmlns: _e.default.string
21633
21633
  }, cf = (0, Ig.forwardRef)(function(n, e) {
21634
- var i = n.bgColor, t = n.bgD, r = n.fgD, s = n.fgColor, a = n.size, o = n.title, A = n.viewBoxSize, f = n.xmlns, d = f === void 0 ? "http://www.w3.org/2000/svg" : f, l = f8(n, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
21634
+ var i = n.bgColor, t = n.bgD, r = n.fgD, s = n.fgColor, a = n.size, o = n.title, A = n.viewBoxSize, f = n.xmlns, d = f === void 0 ? "http://www.w3.org/2000/svg" : f, c = f8(n, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
21635
21635
  return lr.default.createElement(
21636
21636
  "svg",
21637
- o8({}, l, { height: a, ref: e, viewBox: "0 0 " + A + " " + A, width: a, xmlns: d }),
21637
+ o8({}, c, { height: a, ref: e, viewBox: "0 0 " + A + " " + A, width: a, xmlns: d }),
21638
21638
  o ? lr.default.createElement(
21639
21639
  "title",
21640
21640
  null,
@@ -21658,7 +21658,7 @@ var c8 = Object.assign || function(n) {
21658
21658
  Object.prototype.hasOwnProperty.call(i, t) && (n[t] = i[t]);
21659
21659
  }
21660
21660
  return n;
21661
- }, l8 = wg, En = Vt(l8), u8 = bg, h8 = Vt(u8), g8 = a8, m8 = Vt(g8), Sg = Re, p8 = Vt(Sg), v8 = df, w8 = Vt(v8);
21661
+ }, l8 = wg, En = Vt(l8), u8 = bg, h8 = Vt(u8), g8 = a8, m8 = Vt(g8), Sg = Qe, p8 = Vt(Sg), v8 = df, w8 = Vt(v8);
21662
21662
  function Vt(n) {
21663
21663
  return n && n.__esModule ? n : { default: n };
21664
21664
  }
@@ -21675,10 +21675,10 @@ var y8 = {
21675
21675
  size: En.default.number,
21676
21676
  value: En.default.string.isRequired
21677
21677
  }, $s = (0, Sg.forwardRef)(function(n, e) {
21678
- var i = n.bgColor, t = i === void 0 ? "#FFFFFF" : i, r = n.fgColor, s = r === void 0 ? "#000000" : r, a = n.level, o = a === void 0 ? "L" : a, A = n.size, f = A === void 0 ? 256 : A, d = n.value, l = b8(n, ["bgColor", "fgColor", "level", "size", "value"]), c = new m8.default(-1, h8.default[o]);
21679
- c.addData(d), c.make();
21680
- var h = c.modules;
21681
- return p8.default.createElement(w8.default, c8({}, l, {
21678
+ var i = n.bgColor, t = i === void 0 ? "#FFFFFF" : i, r = n.fgColor, s = r === void 0 ? "#000000" : r, a = n.level, o = a === void 0 ? "L" : a, A = n.size, f = A === void 0 ? 256 : A, d = n.value, c = b8(n, ["bgColor", "fgColor", "level", "size", "value"]), l = new m8.default(-1, h8.default[o]);
21679
+ l.addData(d), l.make();
21680
+ var h = l.modules;
21681
+ return p8.default.createElement(w8.default, c8({}, c, {
21682
21682
  bgColor: t,
21683
21683
  bgD: h.map(function(g, v) {
21684
21684
  return g.map(function(m, w) {
@@ -21865,7 +21865,7 @@ const Pg = N.div`
21865
21865
  ] })
21866
21866
  ] }) });
21867
21867
  }, E8 = () => {
21868
- const { showToast: n } = qt(), e = be(), [i, t] = J(!1), [r, s] = J(!1), [a, o] = J([]), A = de((c) => OA(c)), f = () => s(!0), d = () => {
21868
+ const { showToast: n } = qt(), e = be(), [i, t] = J(!1), [r, s] = J(!1), [a, o] = J([]), A = de((l) => OA(l)), f = () => s(!0), d = () => {
21869
21869
  s(!1), o([]);
21870
21870
  };
21871
21871
  return /* @__PURE__ */ I(pe, { children: [
@@ -21913,9 +21913,9 @@ const Pg = N.div`
21913
21913
  {
21914
21914
  onClick: async () => {
21915
21915
  t(!0);
21916
- const c = A.members.map(
21916
+ const l = A.members.map(
21917
21917
  (g) => g.xmppUsername
21918
- ), h = a.filter((g) => !c.includes(g.xmppUsername)).map((g) => g.xmppUsername);
21918
+ ), h = a.filter((g) => !l.includes(g.xmppUsername)).map((g) => g.xmppUsername);
21919
21919
  try {
21920
21920
  const g = await Ky({
21921
21921
  chatName: A.jid.split("@")[0],
@@ -21966,14 +21966,14 @@ const Pg = N.div`
21966
21966
  }
21967
21967
  ],
21968
21968
  []
21969
- ), f = be(), { client: d } = nn(), { user: l } = Je(), c = de((p) => OA(p)), h = async (p) => {
21969
+ ), f = be(), { client: d } = nn(), { user: c } = Je(), l = de((p) => OA(p)), h = async (p) => {
21970
21970
  var k, y, b;
21971
21971
  try {
21972
21972
  let x = new FormData();
21973
21973
  x.append("files", p);
21974
21974
  const S = await Af(x), P = (b = (y = (k = S == null ? void 0 : S.data) == null ? void 0 : k.results) == null ? void 0 : y[0]) == null ? void 0 : b.location;
21975
- P && (d.setRoomImageStanza(c.jid, P, "icon", "none"), f(
21976
- Tn({ jid: c.jid, updates: { icon: P } })
21975
+ P && (d.setRoomImageStanza(l.jid, P, "icon", "none"), f(
21976
+ Tn({ jid: l.jid, updates: { icon: P } })
21977
21977
  ));
21978
21978
  } catch (x) {
21979
21979
  console.error("File upload failed or location is missing:", x);
@@ -21981,13 +21981,13 @@ const Pg = N.div`
21981
21981
  }, g = async (p) => {
21982
21982
  try {
21983
21983
  await Zy({
21984
- roomId: c.jid.split("@")[0],
21984
+ roomId: l.jid.split("@")[0],
21985
21985
  members: [p]
21986
21986
  }), f(
21987
21987
  Tn({
21988
- jid: c.jid,
21988
+ jid: l.jid,
21989
21989
  updates: {
21990
- members: c.members.filter(
21990
+ members: l.members.filter(
21991
21991
  (k) => k.xmppUsername !== p
21992
21992
  )
21993
21993
  }
@@ -22007,9 +22007,9 @@ const Pg = N.div`
22007
22007
  });
22008
22008
  }
22009
22009
  }, v = async () => {
22010
- d.setRoomImageStanza(c.jid, null, "icon", "none"), f(Tn({ jid: c.jid, updates: { icon: null } }));
22010
+ d.setRoomImageStanza(l.jid, null, "icon", "none"), f(Tn({ jid: l.jid, updates: { icon: null } }));
22011
22011
  }, m = (p) => {
22012
- f(Qe(me.PROFILE)), f(
22012
+ f(Re(me.PROFILE)), f(
22013
22013
  xA({
22014
22014
  id: p._id,
22015
22015
  firstName: p.firstName,
@@ -22024,14 +22024,14 @@ const Pg = N.div`
22024
22024
  label: "Appoint as an admin",
22025
22025
  icon: null,
22026
22026
  onClick: () => {
22027
- f(Qe(me.PROFILE)), console.log("Profile clicked");
22027
+ f(Re(me.PROFILE)), console.log("Profile clicked");
22028
22028
  }
22029
22029
  },
22030
22030
  {
22031
22031
  label: "Unban",
22032
22032
  icon: null,
22033
22033
  onClick: () => {
22034
- f(Qe(me.SETTINGS)), console.log("Settings clicked");
22034
+ f(Re(me.SETTINGS)), console.log("Settings clicked");
22035
22035
  }
22036
22036
  },
22037
22037
  {
@@ -22044,15 +22044,15 @@ const Pg = N.div`
22044
22044
  ],
22045
22045
  []
22046
22046
  );
22047
- return c ? /* @__PURE__ */ I(Cn, { style: { position: "relative" }, children: [
22047
+ return l ? /* @__PURE__ */ I(Cn, { style: { position: "relative" }, children: [
22048
22048
  /* @__PURE__ */ u(
22049
22049
  tn,
22050
22050
  {
22051
22051
  handleCloseModal: n,
22052
22052
  headerTitle: "Chat Profile",
22053
22053
  rightMenu: /* @__PURE__ */ I(pe, { children: [
22054
- (c == null ? void 0 : c.type) === "public" && /* @__PURE__ */ u(se, { EndIcon: /* @__PURE__ */ u(V4, {}), onClick: () => r(!0) }),
22055
- c.role === "moderator" && c.type !== "private" && /* @__PURE__ */ u(
22054
+ (l == null ? void 0 : l.type) === "public" && /* @__PURE__ */ u(se, { EndIcon: /* @__PURE__ */ u(V4, {}), onClick: () => r(!0) }),
22055
+ l.role === "moderator" && l.type !== "private" && /* @__PURE__ */ u(
22056
22056
  It,
22057
22057
  {
22058
22058
  position: "left",
@@ -22074,35 +22074,35 @@ const Pg = N.div`
22074
22074
  /* @__PURE__ */ u(
22075
22075
  Oi,
22076
22076
  {
22077
- name: c.name,
22078
- icon: c.icon,
22077
+ name: l.name,
22078
+ icon: l.icon,
22079
22079
  upload: {
22080
22080
  onUpload: h,
22081
- active: (c == null ? void 0 : c.role) !== "participant"
22081
+ active: (l == null ? void 0 : l.role) !== "participant"
22082
22082
  },
22083
22083
  remove: { enabled: !0, onRemoveClick: v },
22084
- role: c == null ? void 0 : c.role,
22084
+ role: l == null ? void 0 : l.role,
22085
22085
  size: 128
22086
22086
  }
22087
22087
  ),
22088
22088
  /* @__PURE__ */ I(ph, { children: [
22089
- /* @__PURE__ */ u(vh, { children: c.name }),
22089
+ /* @__PURE__ */ u(vh, { children: l.name }),
22090
22090
  /* @__PURE__ */ I(I6, { children: [
22091
- c.usersCnt,
22091
+ l.usersCnt,
22092
22092
  " ",
22093
- c.usersCnt > 1 ? "members" : "member"
22093
+ l.usersCnt > 1 ? "members" : "member"
22094
22094
  ] })
22095
22095
  ] }),
22096
- c.role === "moderator" && c.type === "group" && /* @__PURE__ */ u(pe, { children: /* @__PURE__ */ u(E8, {}) }),
22096
+ l.role === "moderator" && l.type === "group" && /* @__PURE__ */ u(pe, { children: /* @__PURE__ */ u(E8, {}) }),
22097
22097
  /* @__PURE__ */ I(jn, { children: [
22098
22098
  /* @__PURE__ */ u(Ri, { children: "Description" }),
22099
- /* @__PURE__ */ u(xi, { children: c == null ? void 0 : c.description })
22099
+ /* @__PURE__ */ u(xi, { children: l == null ? void 0 : l.description })
22100
22100
  ] }),
22101
22101
  /* @__PURE__ */ I(jn, { children: [
22102
22102
  /* @__PURE__ */ u(Ri, { children: "Chat type" }),
22103
- /* @__PURE__ */ u(xi, { children: c.type })
22103
+ /* @__PURE__ */ u(xi, { children: l.type })
22104
22104
  ] }),
22105
- /* @__PURE__ */ u(jn, { style: { padding: "8px 16px" }, children: e ? /* @__PURE__ */ u(Rn, {}) : (C = c == null ? void 0 : c.members) == null ? void 0 : C.map((p, k) => /* @__PURE__ */ I(
22105
+ /* @__PURE__ */ u(jn, { style: { padding: "8px 16px" }, children: e ? /* @__PURE__ */ u(Rn, {}) : (C = l == null ? void 0 : l.members) == null ? void 0 : C.map((p, k) => /* @__PURE__ */ I(
22106
22106
  "div",
22107
22107
  {
22108
22108
  style: {
@@ -22172,7 +22172,7 @@ const Pg = N.div`
22172
22172
  children: p.role
22173
22173
  }
22174
22174
  ),
22175
- l.xmppUsername !== p.xmppUsername && c.role === "moderator" && c.type !== "private" && /* @__PURE__ */ u(
22175
+ c.xmppUsername !== p.xmppUsername && l.role === "moderator" && l.type !== "private" && /* @__PURE__ */ u(
22176
22176
  It,
22177
22177
  {
22178
22178
  options: w(p.xmppUsername),
@@ -22191,7 +22191,7 @@ const Pg = N.div`
22191
22191
  ]
22192
22192
  }
22193
22193
  ),
22194
- k < (c == null ? void 0 : c.members.length) - 1 && /* @__PURE__ */ u(wh, {})
22194
+ k < (l == null ? void 0 : l.members.length) - 1 && /* @__PURE__ */ u(wh, {})
22195
22195
  ]
22196
22196
  },
22197
22197
  p.xmppUsername
@@ -22202,7 +22202,7 @@ const Pg = N.div`
22202
22202
  {
22203
22203
  isVisible: t,
22204
22204
  setVisible: r,
22205
- chatJid: c.jid
22205
+ chatJid: l.jid
22206
22206
  }
22207
22207
  ),
22208
22208
  /* @__PURE__ */ u(
@@ -22212,7 +22212,7 @@ const Pg = N.div`
22212
22212
  setIsModalOpen: a
22213
22213
  }
22214
22214
  )
22215
- ] }) : (f(Qe()), null);
22215
+ ] }) : (f(Re()), null);
22216
22216
  }, D8 = N.div`
22217
22217
  margin: 0;
22218
22218
  cursor: pointer;
@@ -22340,7 +22340,7 @@ const F8 = ({
22340
22340
  mimetype: i
22341
22341
  }) => {
22342
22342
  const t = be(), r = (s) => {
22343
- t(Ss({ fileName: n, fileURL: e, mimetype: i })), t(Qe(me.FILE_PREVIEW)), s.preventDefault(), s.stopPropagation();
22343
+ t(Ss({ fileName: n, fileURL: e, mimetype: i })), t(Re(me.FILE_PREVIEW)), s.preventDefault(), s.stopPropagation();
22344
22344
  };
22345
22345
  return /* @__PURE__ */ u(j8, { children: /* @__PURE__ */ u(
22346
22346
  R8,
@@ -22827,20 +22827,20 @@ const qc = N.div`
22827
22827
  `, nx = ({
22828
22828
  handleCloseModal: n
22829
22829
  }) => {
22830
- var c, h, g, v;
22830
+ var l, h, g, v;
22831
22831
  const e = be(), { user: i, config: t } = de(
22832
22832
  (m) => m.chatSettingStore
22833
- ), r = (m) => e(_n(m)), [s, a] = J(i == null ? void 0 : i.isProfileOpen), [o, A] = J(i == null ? void 0 : i.isAssetsOpen), [f, d] = J(null), l = (m, w) => {
22833
+ ), r = (m) => e(_n(m)), [s, a] = J(i == null ? void 0 : i.isProfileOpen), [o, A] = J(i == null ? void 0 : i.isAssetsOpen), [f, d] = J(null), c = (m, w) => {
22834
22834
  d({ message: m, type: w }), setTimeout(() => d(null), 3e3);
22835
22835
  };
22836
22836
  return fe(() => {
22837
22837
  s !== i.isProfileOpen && zc({ isProfileOpen: s }).then(({ data: m }) => {
22838
- r(m.user), l("Saved", "success");
22839
- }).catch(() => l("Error", "error"));
22838
+ r(m.user), c("Saved", "success");
22839
+ }).catch(() => c("Error", "error"));
22840
22840
  }, [s]), fe(() => {
22841
22841
  o !== (i == null ? void 0 : i.isAssetsOpen) && zc({ isAssetsOpen: o }).then(({ data: m }) => {
22842
- r(m.user), l("Saved", "success");
22843
- }).catch(() => l("Error", "error"));
22842
+ r(m.user), c("Saved", "success");
22843
+ }).catch(() => c("Error", "error"));
22844
22844
  }, [o]), /* @__PURE__ */ I(Cn, { children: [
22845
22845
  /* @__PURE__ */ u(
22846
22846
  tn,
@@ -22857,7 +22857,7 @@ const qc = N.div`
22857
22857
  /* @__PURE__ */ u(
22858
22858
  hr,
22859
22859
  {
22860
- radioColor: (c = t == null ? void 0 : t.colors) == null ? void 0 : c.primary,
22860
+ radioColor: (l = t == null ? void 0 : t.colors) == null ? void 0 : l.primary,
22861
22861
  type: "radio",
22862
22862
  checked: s === !0,
22863
22863
  onChange: () => a(!0)
@@ -22927,9 +22927,9 @@ const qc = N.div`
22927
22927
  config: i
22928
22928
  }) => {
22929
22929
  var g, v, m;
22930
- const t = be(), [r, s] = J((e == null ? void 0 : e.firstName) || ""), [a, o] = J((e == null ? void 0 : e.lastName) || ""), [A, f] = J((e == null ? void 0 : e.description) || ""), [d, l] = J(
22930
+ const t = be(), [r, s] = J((e == null ? void 0 : e.firstName) || ""), [a, o] = J((e == null ? void 0 : e.lastName) || ""), [A, f] = J((e == null ? void 0 : e.description) || ""), [d, c] = J(
22931
22931
  e == null ? void 0 : e.profileImage
22932
- ), c = async () => {
22932
+ ), l = async () => {
22933
22933
  try {
22934
22934
  let w = new FormData();
22935
22935
  if (typeof d == "string" && d.startsWith("data:image/")) {
@@ -22952,7 +22952,7 @@ const qc = N.div`
22952
22952
  console.log("error", w);
22953
22953
  }
22954
22954
  }, h = (w) => {
22955
- l(w);
22955
+ c(w);
22956
22956
  };
22957
22957
  return /* @__PURE__ */ I(pe, { children: [
22958
22958
  /* @__PURE__ */ u(
@@ -22969,7 +22969,7 @@ const qc = N.div`
22969
22969
  rightMenu: /* @__PURE__ */ u(
22970
22970
  se,
22971
22971
  {
22972
- onClick: c,
22972
+ onClick: l,
22973
22973
  variant: "outlined",
22974
22974
  style: { width: "128px" },
22975
22975
  children: "Save"
@@ -23051,15 +23051,15 @@ const qc = N.div`
23051
23051
  (y) => y.chatSettingStore
23052
23052
  ), [A, f] = J(!1), d = ie(() => {
23053
23053
  e(xA()), n();
23054
- }, []), l = ie(() => {
23054
+ }, []), c = ie(() => {
23055
23055
  e(Ns()), e(EA());
23056
- }, []), c = Ce(
23056
+ }, []), l = Ce(
23057
23057
  () => [
23058
23058
  {
23059
23059
  label: "Log Out",
23060
23060
  icon: /* @__PURE__ */ u(fh, {}),
23061
23061
  onClick: () => {
23062
- l();
23062
+ c();
23063
23063
  },
23064
23064
  styles: { color: "red" }
23065
23065
  }
@@ -23118,7 +23118,7 @@ const qc = N.div`
23118
23118
  B
23119
23119
  ), y && (await i.inviteRoomRequestStanza(S, y), await i.getRoomsStanza());
23120
23120
  }
23121
- e(Qe());
23121
+ e(Re());
23122
23122
  }, [a]), w = a ?? s, C = () => {
23123
23123
  if (o)
23124
23124
  return Vc.find((y) => y.id === o);
@@ -23136,7 +23136,7 @@ const qc = N.div`
23136
23136
  /* @__PURE__ */ u(
23137
23137
  It,
23138
23138
  {
23139
- options: c,
23139
+ options: l,
23140
23140
  position: "left",
23141
23141
  menuIcon: /* @__PURE__ */ u(UA, {})
23142
23142
  }
@@ -23217,7 +23217,7 @@ const qc = N.div`
23217
23217
  ],
23218
23218
  []
23219
23219
  ), i = be(), t = ie((r) => {
23220
- i(Qe(r));
23220
+ i(Re(r));
23221
23221
  }, []);
23222
23222
  return /* @__PURE__ */ I(Cn, { children: [
23223
23223
  /* @__PURE__ */ u(
@@ -63643,32 +63643,32 @@ const qc = N.div`
63643
63643
  [(o = n == null ? void 0 : n.messages) == null ? void 0 : o.length]
63644
63644
  ), a = (d) => {
63645
63645
  if (d == null) return;
63646
- let l;
63646
+ let c;
63647
63647
  try {
63648
63648
  if (d instanceof Date)
63649
- l = d;
63649
+ c = d;
63650
63650
  else if (typeof d == "number")
63651
- l = new Date(d);
63651
+ c = new Date(d);
63652
63652
  else if (typeof d == "string") {
63653
63653
  const v = d.trim();
63654
- /^\d+$/.test(v) ? l = new Date(parseInt(v)) : l = new Date(v);
63654
+ /^\d+$/.test(v) ? c = new Date(parseInt(v)) : c = new Date(v);
63655
63655
  } else
63656
63656
  return;
63657
- if (isNaN(l.getTime()))
63657
+ if (isNaN(c.getTime()))
63658
63658
  return;
63659
- const c = /* @__PURE__ */ new Date();
63660
- if (l.getFullYear() !== c.getFullYear()) {
63661
- const v = l.getFullYear(), m = (l.getMonth() + 1).toString().padStart(2, "0"), w = l.getDate().toString().padStart(2, "0");
63659
+ const l = /* @__PURE__ */ new Date();
63660
+ if (c.getFullYear() !== l.getFullYear()) {
63661
+ const v = c.getFullYear(), m = (c.getMonth() + 1).toString().padStart(2, "0"), w = c.getDate().toString().padStart(2, "0");
63662
63662
  return `${v}/${m}/${w}`;
63663
63663
  }
63664
- if (l.toDateString() === c.toDateString()) {
63665
- const v = l.getHours().toString().padStart(2, "0"), m = l.getMinutes().toString().padStart(2, "0");
63664
+ if (c.toDateString() === l.toDateString()) {
63665
+ const v = c.getHours().toString().padStart(2, "0"), m = c.getMinutes().toString().padStart(2, "0");
63666
63666
  return `${v}:${m}`;
63667
63667
  }
63668
- const h = (l.getMonth() + 1).toString().padStart(2, "0"), g = l.getDate().toString().padStart(2, "0");
63668
+ const h = (c.getMonth() + 1).toString().padStart(2, "0"), g = c.getDate().toString().padStart(2, "0");
63669
63669
  return `${h}/${g}`;
63670
- } catch (c) {
63671
- console.warn("Error parsing date:", c);
63670
+ } catch (l) {
63671
+ console.warn("Error parsing date:", l);
63672
63672
  return;
63673
63673
  }
63674
63674
  };
@@ -63760,11 +63760,11 @@ const qc = N.div`
63760
63760
  onRoomClick: i,
63761
63761
  isSmallScreen: t
63762
63762
  }) => {
63763
- const { client: r, setClient: s } = nn(), [a, o] = J(!1), [A, f] = J(""), d = be(), { config: l } = Je(), { activeRoomJID: c } = de((b) => b.rooms), h = ge(null), g = ie((b) => {
63763
+ const { client: r, setClient: s } = nn(), [a, o] = J(!1), [A, f] = J(""), d = be(), { config: c } = Je(), { activeRoomJID: l } = de((b) => b.rooms), h = ge(null), g = ie((b) => {
63764
63764
  h.current && !h.current.contains(b.target) && o(!1);
63765
63765
  }, []), v = ie(
63766
63766
  (b) => {
63767
- b.jid !== c && (i == null || i(b), o(!1));
63767
+ b.jid !== l && (i == null || i(b), o(!1));
63768
63768
  },
63769
63769
  [i]
63770
63770
  ), m = ie(
@@ -63798,8 +63798,8 @@ const qc = N.div`
63798
63798
  };
63799
63799
  }, [e, g]);
63800
63800
  const p = ie(
63801
- (b) => c === b.jid,
63802
- [c]
63801
+ (b) => l === b.jid,
63802
+ [l]
63803
63803
  ), k = ie(async () => {
63804
63804
  r && (await r.close(), s(null)), d(EA()), d(Ns());
63805
63805
  }, []), y = Ce(
@@ -63808,14 +63808,14 @@ const qc = N.div`
63808
63808
  label: "Profile",
63809
63809
  icon: null,
63810
63810
  onClick: () => {
63811
- d(Qe(me.PROFILE)), console.log("Profile clicked");
63811
+ d(Re(me.PROFILE)), console.log("Profile clicked");
63812
63812
  }
63813
63813
  },
63814
63814
  {
63815
63815
  label: "Settings",
63816
63816
  icon: null,
63817
63817
  onClick: () => {
63818
- d(Qe(me.SETTINGS)), console.log("Settings clicked");
63818
+ d(Re(me.SETTINGS)), console.log("Settings clicked");
63819
63819
  }
63820
63820
  },
63821
63821
  {
@@ -63835,13 +63835,13 @@ const qc = N.div`
63835
63835
  open: a,
63836
63836
  ref: h,
63837
63837
  style: {
63838
- ...l == null ? void 0 : l.roomListStyles,
63838
+ ...c == null ? void 0 : c.roomListStyles,
63839
63839
  ...t ? { width: "100%" } : { maxWidth: "432px" },
63840
63840
  flex: t ? 1 : "0 1 432px"
63841
63841
  },
63842
63842
  children: (a || !e) && /* @__PURE__ */ I(W5, { children: [
63843
63843
  /* @__PURE__ */ I(L5, { children: [
63844
- !(l != null && l.disableRoomMenu) && /* @__PURE__ */ u(
63844
+ !(c != null && c.disableRoomMenu) && /* @__PURE__ */ u(
63845
63845
  It,
63846
63846
  {
63847
63847
  options: y
@@ -63870,7 +63870,7 @@ const qc = N.div`
63870
63870
  index: x,
63871
63871
  isChatActive: p(b),
63872
63872
  performClick: v,
63873
- config: l
63873
+ config: c
63874
63874
  },
63875
63875
  b.id
63876
63876
  ),
@@ -63927,21 +63927,21 @@ const Bx = ({
63927
63927
  currentRoom: n,
63928
63928
  handleBackClick: e
63929
63929
  }) => {
63930
- var l;
63930
+ var c;
63931
63931
  const i = be(), { client: t } = nn(), { roomsList: r, activeRoomJID: s } = An(n.jid), { composing: a } = An(n.jid).room, { config: o } = Je(), A = () => {
63932
63932
  i(Yu({ isOpen: !0 }));
63933
- }, f = (c) => {
63933
+ }, f = (l) => {
63934
63934
  i(
63935
- Tn({ jid: c.jid, updates: { ...c, unreadMessages: 0 } })
63936
- ), i(Ve({ roomJID: c.jid })), i(Le({ chatJID: c.jid, loading: !0 }));
63935
+ Tn({ jid: l.jid, updates: { ...l, unreadMessages: 0 } })
63936
+ ), i(Ve({ roomJID: l.jid })), i(Le({ chatJID: l.jid, loading: !0 }));
63937
63937
  }, d = ie(() => {
63938
63938
  if (t.leaveTheRoomStanza(s), i(BA({ jid: s })), Object.keys(r).length < 1 || s === Object.keys(r)[0]) {
63939
63939
  const h = `${window.location.pathname}`;
63940
63940
  window.history.pushState(null, "", h), i(Ve({ roomJID: null }));
63941
63941
  return;
63942
63942
  }
63943
- const c = Object.keys(r)[0] || null;
63944
- c && i(Ve({ roomJID: c }));
63943
+ const l = Object.keys(r)[0] || null;
63944
+ l && i(Ve({ roomJID: l }));
63945
63945
  }, [s, r, i, t]);
63946
63946
  return /* @__PURE__ */ I(pe, { children: [
63947
63947
  /* @__PURE__ */ I(Vk, { children: [
@@ -63964,7 +63964,7 @@ const Bx = ({
63964
63964
  /* @__PURE__ */ I(
63965
63965
  Uk,
63966
63966
  {
63967
- onClick: () => i(Qe(me.CHAT_PROFILE)),
63967
+ onClick: () => i(Re(me.CHAT_PROFILE)),
63968
63968
  children: [
63969
63969
  /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(
63970
63970
  Oi,
@@ -63997,7 +63997,7 @@ const Bx = ({
63997
63997
  }
63998
63998
  ) })
63999
63999
  ] }),
64000
- ((l = o == null ? void 0 : o.chatHeaderAdditional) == null ? void 0 : l.enabled) && o.chatHeaderAdditional.element()
64000
+ ((c = o == null ? void 0 : o.chatHeaderAdditional) == null ? void 0 : c.enabled) && o.chatHeaderAdditional.element()
64001
64001
  ] });
64002
64002
  }, Dx = () => /* @__PURE__ */ u(
64003
64003
  "div",
@@ -64130,7 +64130,7 @@ const Bx = ({
64130
64130
  editAction: f.rooms.editAction,
64131
64131
  config: f.chatSettingStore.config
64132
64132
  })), a = ie(
64133
- (f, d, l, c, h) => {
64133
+ (f, d, c, l, h) => {
64134
64134
  var g;
64135
64135
  if (s.isEdit) {
64136
64136
  i == null || i.editMessageStanza(
@@ -64169,8 +64169,8 @@ const Bx = ({
64169
64169
  r.walletAddress,
64170
64170
  f,
64171
64171
  "",
64172
- l || !1,
64173
64172
  c || !1,
64173
+ l || !1,
64174
64174
  h || "",
64175
64175
  e || "en"
64176
64176
  );
@@ -64201,8 +64201,8 @@ const Bx = ({
64201
64201
  r.walletAddress,
64202
64202
  f,
64203
64203
  "",
64204
- l || !1,
64205
64204
  c || !1,
64205
+ l || !1,
64206
64206
  h || "",
64207
64207
  v
64208
64208
  );
@@ -64219,7 +64219,7 @@ const Bx = ({
64219
64219
  },
64220
64220
  [s]
64221
64221
  ), A = ie(
64222
- async (f, d, l, c, h, g) => {
64222
+ async (f, d, c, l, h, g) => {
64223
64223
  let v = new FormData();
64224
64224
  v.append("files", f), Af(v).then((m) => {
64225
64225
  console.log("Upload successful", m), m.data.results.map(async (w) => {
@@ -64242,14 +64242,14 @@ const Bx = ({
64242
64242
  userId: w == null ? void 0 : w.userId,
64243
64243
  attachmentId: w == null ? void 0 : w._id,
64244
64244
  wrappable: !0,
64245
- roomJid: l,
64245
+ roomJid: c,
64246
64246
  showInChannel: h || !1,
64247
- isReply: c || !1,
64247
+ isReply: l || !1,
64248
64248
  mainMessage: g || "",
64249
64249
  isPrivate: w == null ? void 0 : w.isPrivate,
64250
64250
  __v: w.__v
64251
64251
  };
64252
- i == null || i.sendMediaMessageStanza(l, C);
64252
+ i == null || i.sendMediaMessageStanza(c, C);
64253
64253
  });
64254
64254
  }).catch((m) => {
64255
64255
  console.error("Upload failed", m);
@@ -64307,10 +64307,10 @@ const Bx = ({
64307
64307
  };
64308
64308
  if (((f = Object.keys(e)) == null ? void 0 : f.length) > 0 ? n && !(e != null && e[n]) && Object.keys(e).length > 0 ? (s(Le({ loading: !0, chatJID: n })), A()) : n && t < 1 && !(e != null && e[n].historyComplete) ? (s(Le({ loading: !0, chatJID: n })), o()) : s(Le({ loading: !1, chatJID: n })) : e != null && e[n] || A(), r && (i != null && i.defaultRooms)) {
64309
64309
  const d = i == null ? void 0 : i.defaultRooms.every(
64310
- (l) => e[l.jid] !== void 0
64310
+ (c) => e[c.jid] !== void 0
64311
64311
  );
64312
- e && !d && (i == null || i.defaultRooms.map(async (l) => {
64313
- r.presenceInRoomStanza(l.jid);
64312
+ e && !d && (i == null || i.defaultRooms.map(async (c) => {
64313
+ r.presenceInRoomStanza(c.jid);
64314
64314
  }), i != null && i.newArch || r.getRoomsStanza());
64315
64315
  }
64316
64316
  }, [n, Object.keys(e).length]);
@@ -64334,15 +64334,15 @@ const Bx = ({
64334
64334
  }, 100);
64335
64335
  return () => clearTimeout(s);
64336
64336
  }, [r]), { sendStartComposing: t, sendEndComposing: r };
64337
- }, Za = Re.memo(
64337
+ }, Za = Qe.memo(
64338
64338
  ({ CustomMessageComponent: n, handleBackClick: e }) => {
64339
64339
  var x, S, P, E, B;
64340
64340
  const { client: i } = nn(), t = be(), [r, s] = J(!1), { user: a, config: o } = Je(), {
64341
64341
  roomsList: A,
64342
64342
  activeRoomJID: f,
64343
64343
  editAction: d,
64344
- loading: l,
64345
- globalLoading: c,
64344
+ loading: c,
64345
+ globalLoading: l,
64346
64346
  roomMessages: h
64347
64347
  } = An(), {
64348
64348
  sendMessage: g,
@@ -64405,7 +64405,7 @@ const Bx = ({
64405
64405
  A,
64406
64406
  o,
64407
64407
  h.length
64408
- ), ((S = Object.keys(A)) == null ? void 0 : S.length) < 1 && !l && !c ? /* @__PURE__ */ I(Jk, { children: [
64408
+ ), ((S = Object.keys(A)) == null ? void 0 : S.length) < 1 && !c && !l ? /* @__PURE__ */ I(Jk, { children: [
64409
64409
  "No room. Let's create one!",
64410
64410
  /* @__PURE__ */ u(gg, {})
64411
64411
  ] }) : !f || !(A != null && A[f]) ? /* @__PURE__ */ u(Qx, {}) : /* @__PURE__ */ I(
@@ -64423,7 +64423,7 @@ const Bx = ({
64423
64423
  handleBackClick: e
64424
64424
  }
64425
64425
  ),
64426
- c || !A[f].historyComplete && A[f].messages.length < 1 ? /* @__PURE__ */ u(Rn, { color: (P = o == null ? void 0 : o.colors) == null ? void 0 : P.primary }) : Object.keys(A).length < 1 || !f ? /* @__PURE__ */ u(oh, {}) : (E = A[f]) != null && E.messages && ((B = A[f]) == null ? void 0 : B.messages.length) < 1 ? /* @__PURE__ */ u(Dx, {}) : /* @__PURE__ */ u(
64426
+ l || !A[f].historyComplete && A[f].messages.length < 1 ? /* @__PURE__ */ u(Rn, { color: (P = o == null ? void 0 : o.colors) == null ? void 0 : P.primary }) : Object.keys(A).length < 1 || !f ? /* @__PURE__ */ u(oh, {}) : (E = A[f]) != null && E.messages && ((B = A[f]) == null ? void 0 : B.messages.length) < 1 ? /* @__PURE__ */ u(Dx, {}) : /* @__PURE__ */ u(
64427
64427
  lh,
64428
64428
  {
64429
64429
  loadMoreMessages: y,
@@ -64469,13 +64469,13 @@ const Bx = ({
64469
64469
  const d = parseInt(f, 10);
64470
64470
  return isNaN(d) ? "Invalid size" : d < 1024 ? `${d} B` : d < 1024 ** 2 ? `${(d / 1024).toFixed(2)} KB` : d < 1024 ** 3 ? `${(d / 1024 ** 2).toFixed(2)} MB` : `${(d / 1024 ** 3).toFixed(2)} GB`;
64471
64471
  }, o = (f, d) => {
64472
- const l = f.lastIndexOf("."), c = l !== -1 ? f.substring(l) : "", h = l !== -1 ? f.substring(0, l) : f;
64473
- return h.length + c.length <= d ? f : `${h.substring(
64472
+ const c = f.lastIndexOf("."), l = c !== -1 ? f.substring(c) : "", h = c !== -1 ? f.substring(0, c) : f;
64473
+ return h.length + l.length <= d ? f : `${h.substring(
64474
64474
  0,
64475
- d - c.length - 3
64476
- )}...${c}`;
64475
+ d - l.length - 3
64476
+ )}...${l}`;
64477
64477
  }, A = () => {
64478
- s(Ss({ fileName: n, fileURL: e, mimetype: i })), s(Qe(me.FILE_PREVIEW));
64478
+ s(Ss({ fileName: n, fileURL: e, mimetype: i })), s(Re(me.FILE_PREVIEW));
64479
64479
  };
64480
64480
  return /* @__PURE__ */ I(N8, { onClick: A, children: [
64481
64481
  /* @__PURE__ */ u(S8, { children: r ? /* @__PURE__ */ u(
@@ -64507,7 +64507,7 @@ const Bx = ({
64507
64507
  locationPreview: t
64508
64508
  }) => {
64509
64509
  const r = be(), s = () => {
64510
- r(Ss({ fileName: e, fileURL: n, mimetype: i })), r(Qe(me.FILE_PREVIEW));
64510
+ r(Ss({ fileName: e, fileURL: n, mimetype: i })), r(Re(me.FILE_PREVIEW));
64511
64511
  };
64512
64512
  return /* @__PURE__ */ u(D8, { children: n ? /* @__PURE__ */ u(
64513
64513
  "img",
@@ -64558,8 +64558,8 @@ function je(n, e, i, t) {
64558
64558
  }
64559
64559
  function A(f) {
64560
64560
  var d;
64561
- f.done ? r(f.value) : (d = f.value, d instanceof i ? d : new i(function(l) {
64562
- l(d);
64561
+ f.done ? r(f.value) : (d = f.value, d instanceof i ? d : new i(function(c) {
64562
+ c(d);
64563
64563
  })).then(a, o);
64564
64564
  }
64565
64565
  A((t = t.apply(n, e || [])).next());
@@ -64631,18 +64631,18 @@ const Gx = { fetchBlob: function(n, e, i) {
64631
64631
  if (!r.body || !r.headers) return;
64632
64632
  const a = r.body.getReader(), o = Number(r.headers.get("Content-Length")) || 0;
64633
64633
  let A = 0;
64634
- const f = (l) => je(this, void 0, void 0, function* () {
64635
- A += (l == null ? void 0 : l.length) || 0;
64636
- const c = Math.round(A / o * 100);
64637
- s(c);
64634
+ const f = (c) => je(this, void 0, void 0, function* () {
64635
+ A += (c == null ? void 0 : c.length) || 0;
64636
+ const l = Math.round(A / o * 100);
64637
+ s(l);
64638
64638
  }), d = () => je(this, void 0, void 0, function* () {
64639
- let l;
64639
+ let c;
64640
64640
  try {
64641
- l = yield a.read();
64641
+ c = yield a.read();
64642
64642
  } catch {
64643
64643
  return;
64644
64644
  }
64645
- l.done || (f(l.value), yield d());
64645
+ c.done || (f(c.value), yield d());
64646
64646
  });
64647
64647
  d();
64648
64648
  });
@@ -64779,16 +64779,16 @@ class it extends Jt {
64779
64779
  const A = matchMedia("(pointer: coarse)").matches;
64780
64780
  let f = () => {
64781
64781
  };
64782
- const d = (l) => {
64783
- if (l.button !== a) return;
64784
- l.preventDefault(), l.stopPropagation();
64785
- let c = l.clientX, h = l.clientY, g = !1;
64782
+ const d = (c) => {
64783
+ if (c.button !== a) return;
64784
+ c.preventDefault(), c.stopPropagation();
64785
+ let l = c.clientX, h = c.clientY, g = !1;
64786
64786
  const v = Date.now(), m = (y) => {
64787
64787
  if (y.preventDefault(), y.stopPropagation(), A && Date.now() - v < o) return;
64788
- const b = y.clientX, x = y.clientY, S = b - c, P = x - h;
64788
+ const b = y.clientX, x = y.clientY, S = b - l, P = x - h;
64789
64789
  if (g || Math.abs(S) > s || Math.abs(P) > s) {
64790
64790
  const E = e.getBoundingClientRect(), { left: B, top: M } = E;
64791
- g || (t == null || t(c - B, h - M), g = !0), i(S, P, b - B, x - M), c = b, h = x;
64791
+ g || (t == null || t(l - B, h - M), g = !0), i(S, P, b - B, x - M), l = b, h = x;
64792
64792
  }
64793
64793
  }, w = (y) => {
64794
64794
  if (g) {
@@ -64958,7 +64958,7 @@ class it extends Jt {
64958
64958
  return Math.max(1, window.devicePixelRatio || 1);
64959
64959
  }
64960
64960
  renderBarWaveform(e, i, t, r) {
64961
- const s = e[0], a = e[1] || e[0], o = s.length, { width: A, height: f } = t.canvas, d = f / 2, l = this.getPixelRatio(), c = i.barWidth ? i.barWidth * l : 1, h = i.barGap ? i.barGap * l : i.barWidth ? c / 2 : 0, g = i.barRadius || 0, v = A / (c + h) / o, m = g && "roundRect" in t ? "roundRect" : "rect";
64961
+ const s = e[0], a = e[1] || e[0], o = s.length, { width: A, height: f } = t.canvas, d = f / 2, c = this.getPixelRatio(), l = i.barWidth ? i.barWidth * c : 1, h = i.barGap ? i.barGap * c : i.barWidth ? l / 2 : 0, g = i.barRadius || 0, v = A / (l + h) / o, m = g && "roundRect" in t ? "roundRect" : "rect";
64962
64962
  t.beginPath();
64963
64963
  let w = 0, C = 0, p = 0;
64964
64964
  for (let k = 0; k <= o; k++) {
@@ -64966,7 +64966,7 @@ class it extends Jt {
64966
64966
  if (y > w) {
64967
64967
  const S = Math.round(C * d * r), P = S + Math.round(p * d * r) || 1;
64968
64968
  let E = d - S;
64969
- i.barAlign === "top" ? E = 0 : i.barAlign === "bottom" && (E = f - P), t[m](w * (c + h), E, c, P, g), w = y, C = 0, p = 0;
64969
+ i.barAlign === "top" ? E = 0 : i.barAlign === "bottom" && (E = f - P), t[m](w * (l + h), E, l, P, g), w = y, C = 0, p = 0;
64970
64970
  }
64971
64971
  const b = Math.abs(s[k] || 0), x = Math.abs(a[k] || 0);
64972
64972
  b > C && (C = b), x > p && (p = x);
@@ -64975,19 +64975,19 @@ class it extends Jt {
64975
64975
  }
64976
64976
  renderLineWaveform(e, i, t, r) {
64977
64977
  const s = (a) => {
64978
- const o = e[a] || e[0], A = o.length, { height: f } = t.canvas, d = f / 2, l = t.canvas.width / A;
64978
+ const o = e[a] || e[0], A = o.length, { height: f } = t.canvas, d = f / 2, c = t.canvas.width / A;
64979
64979
  t.moveTo(0, d);
64980
- let c = 0, h = 0;
64980
+ let l = 0, h = 0;
64981
64981
  for (let g = 0; g <= A; g++) {
64982
- const v = Math.round(g * l);
64983
- if (v > c) {
64982
+ const v = Math.round(g * c);
64983
+ if (v > l) {
64984
64984
  const w = d + (Math.round(h * d * r) || 1) * (a === 0 ? -1 : 1);
64985
- t.lineTo(c, w), c = v, h = 0;
64985
+ t.lineTo(l, w), l = v, h = 0;
64986
64986
  }
64987
64987
  const m = Math.abs(o[g] || 0);
64988
64988
  m > h && (h = m);
64989
64989
  }
64990
- t.lineTo(c, d);
64990
+ t.lineTo(l, d);
64991
64991
  };
64992
64992
  t.beginPath(), s(0), s(1), t.fill(), t.closePath();
64993
64993
  }
@@ -65005,20 +65005,20 @@ class it extends Jt {
65005
65005
  f.width = Math.round(t * A), f.height = Math.round(r * A), f.style.width = `${t}px`, f.style.height = `${r}px`, f.style.left = `${Math.round(s)}px`, a.appendChild(f);
65006
65006
  const d = f.getContext("2d");
65007
65007
  if (this.renderWaveform(e, i, d), f.width > 0 && f.height > 0) {
65008
- const l = f.cloneNode(), c = l.getContext("2d");
65009
- c.drawImage(f, 0, 0), c.globalCompositeOperation = "source-in", c.fillStyle = this.convertColorValues(i.progressColor), c.fillRect(0, 0, f.width, f.height), o.appendChild(l);
65008
+ const c = f.cloneNode(), l = c.getContext("2d");
65009
+ l.drawImage(f, 0, 0), l.globalCompositeOperation = "source-in", l.fillStyle = this.convertColorValues(i.progressColor), l.fillRect(0, 0, f.width, f.height), o.appendChild(c);
65010
65010
  }
65011
65011
  }
65012
65012
  renderMultiCanvas(e, i, t, r, s, a) {
65013
65013
  const o = this.getPixelRatio(), { clientWidth: A } = this.scrollContainer, f = t / o;
65014
- let d = Math.min(it.MAX_CANVAS_WIDTH, A, f), l = {};
65014
+ let d = Math.min(it.MAX_CANVAS_WIDTH, A, f), c = {};
65015
65015
  if (i.barWidth || i.barGap) {
65016
65016
  const m = i.barWidth || 0.5, w = m + (i.barGap || m / 2);
65017
65017
  d % w != 0 && (d = Math.floor(d / w) * w);
65018
65018
  }
65019
- const c = (m) => {
65020
- if (m < 0 || m >= h || l[m]) return;
65021
- l[m] = !0;
65019
+ const l = (m) => {
65020
+ if (m < 0 || m >= h || c[m]) return;
65021
+ c[m] = !0;
65022
65022
  const w = m * d, C = Math.min(f - w, d);
65023
65023
  if (C <= 0) return;
65024
65024
  const p = e.map((k) => {
@@ -65028,24 +65028,24 @@ class it extends Jt {
65028
65028
  this.renderSingleCanvas(p, i, C, r, w, s, a);
65029
65029
  }, h = Math.ceil(f / d);
65030
65030
  if (!this.isScrollable) {
65031
- for (let m = 0; m < h; m++) c(m);
65031
+ for (let m = 0; m < h; m++) l(m);
65032
65032
  return;
65033
65033
  }
65034
65034
  const g = this.scrollContainer.scrollLeft / f, v = Math.floor(g * h);
65035
- c(v - 1), c(v), c(v + 1), h > 1 && (this.unsubscribeOnScroll = this.on("scroll", () => {
65035
+ l(v - 1), l(v), l(v + 1), h > 1 && (this.unsubscribeOnScroll = this.on("scroll", () => {
65036
65036
  const { scrollLeft: m } = this.scrollContainer, w = Math.floor(m / f * h);
65037
- Object.keys(l).length > it.MAX_NODES && (s.innerHTML = "", a.innerHTML = "", l = {}), c(w - 1), c(w), c(w + 1);
65037
+ Object.keys(c).length > it.MAX_NODES && (s.innerHTML = "", a.innerHTML = "", c = {}), l(w - 1), l(w), l(w + 1);
65038
65038
  }));
65039
65039
  }
65040
65040
  renderChannel(e, i, t, r) {
65041
- var { overlay: s } = i, a = function(d, l) {
65042
- var c = {};
65043
- for (var h in d) Object.prototype.hasOwnProperty.call(d, h) && l.indexOf(h) < 0 && (c[h] = d[h]);
65041
+ var { overlay: s } = i, a = function(d, c) {
65042
+ var l = {};
65043
+ for (var h in d) Object.prototype.hasOwnProperty.call(d, h) && c.indexOf(h) < 0 && (l[h] = d[h]);
65044
65044
  if (d != null && typeof Object.getOwnPropertySymbols == "function") {
65045
65045
  var g = 0;
65046
- for (h = Object.getOwnPropertySymbols(d); g < h.length; g++) l.indexOf(h[g]) < 0 && Object.prototype.propertyIsEnumerable.call(d, h[g]) && (c[h[g]] = d[h[g]]);
65046
+ for (h = Object.getOwnPropertySymbols(d); g < h.length; g++) c.indexOf(h[g]) < 0 && Object.prototype.propertyIsEnumerable.call(d, h[g]) && (l[h[g]] = d[h[g]]);
65047
65047
  }
65048
- return c;
65048
+ return l;
65049
65049
  }(i, ["overlay"]);
65050
65050
  const o = document.createElement("div"), A = this.getHeight(a.height, a.splitChannels);
65051
65051
  o.style.height = `${A}px`, s && r > 0 && (o.style.marginTop = `-${A}px`), this.canvasWrapper.style.minHeight = `${A}px`, this.canvasWrapper.appendChild(o);
@@ -65093,8 +65093,8 @@ class it extends Jt {
65093
65093
  i && this.options.autoCenter && d > 0 && (this.scrollContainer.scrollLeft += Math.min(d, 10));
65094
65094
  }
65095
65095
  {
65096
- const d = this.scrollContainer.scrollLeft, l = d / r, c = (d + s) / r;
65097
- this.emit("scroll", l, c, d, d + s);
65096
+ const d = this.scrollContainer.scrollLeft, c = d / r, l = (d + s) / r;
65097
+ this.emit("scroll", c, l, d, d + s);
65098
65098
  }
65099
65099
  }
65100
65100
  renderProgress(e, i) {
@@ -65404,13 +65404,13 @@ class Mt extends zx {
65404
65404
  for (let a = 0; a < r; a++) {
65405
65405
  const o = this.decodedData.getChannelData(a), A = [], f = o.length / i;
65406
65406
  for (let d = 0; d < i; d++) {
65407
- const l = o.slice(Math.floor(d * f), Math.ceil((d + 1) * f));
65408
- let c = 0;
65409
- for (let h = 0; h < l.length; h++) {
65410
- const g = l[h];
65411
- Math.abs(g) > Math.abs(c) && (c = g);
65407
+ const c = o.slice(Math.floor(d * f), Math.ceil((d + 1) * f));
65408
+ let l = 0;
65409
+ for (let h = 0; h < c.length; h++) {
65410
+ const g = c[h];
65411
+ Math.abs(g) > Math.abs(l) && (l = g);
65412
65412
  }
65413
- A.push(Math.round(c * t) / t);
65413
+ A.push(Math.round(l * t) / t);
65414
65414
  }
65415
65415
  s.push(A);
65416
65416
  }
@@ -65473,14 +65473,14 @@ Mt.BasePlugin = class extends Jt {
65473
65473
  const Ux = ({ src: n }) => {
65474
65474
  var d;
65475
65475
  const e = de(
65476
- (l) => l.chatSettingStore.config
65476
+ (c) => c.chatSettingStore.config
65477
65477
  ), i = ge(null), t = ge(null), [r, s] = J(!1), [a, o] = J(1);
65478
65478
  fe(() => {
65479
- var l;
65479
+ var c;
65480
65480
  return t.current = Mt.create({
65481
65481
  container: i.current,
65482
65482
  waveColor: "#C4C4C4",
65483
- progressColor: ((l = e == null ? void 0 : e.colors) == null ? void 0 : l.primary) || "#0052CD",
65483
+ progressColor: ((c = e == null ? void 0 : e.colors) == null ? void 0 : c.primary) || "#0052CD",
65484
65484
  cursorColor: "transparent",
65485
65485
  height: 32,
65486
65486
  barWidth: 3,
@@ -65496,10 +65496,10 @@ const Ux = ({ src: n }) => {
65496
65496
  };
65497
65497
  }, [n]);
65498
65498
  const A = () => {
65499
- s((l) => !l), t.current.playPause();
65499
+ s((c) => !c), t.current.playPause();
65500
65500
  }, f = () => {
65501
- const l = a === 1 ? 1.5 : a === 1.5 ? 2 : 1;
65502
- o(l), t.current.setPlaybackRate(l);
65501
+ const c = a === 1 ? 1.5 : a === 1.5 ? 2 : 1;
65502
+ o(c), t.current.setPlaybackRate(c);
65503
65503
  };
65504
65504
  return /* @__PURE__ */ I(
65505
65505
  "div",
@@ -65715,19 +65715,19 @@ function ls() {
65715
65715
  });
65716
65716
  }
65717
65717
  function Ug(n, e, i, t, r, s, a, o, A, f) {
65718
- var d, l, c, h, g, v, m, w = t && t.__k || zg, C = w.length;
65718
+ var d, c, l, h, g, v, m, w = t && t.__k || zg, C = w.length;
65719
65719
  for (i.__k = [], d = 0; d < e.length; d++) if ((h = i.__k[d] = (h = e[d]) == null || typeof h == "boolean" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? Rr(null, h, null, null, h) : Array.isArray(h) ? Rr(tt, {
65720
65720
  children: h
65721
65721
  }, null, null, null) : h.__b > 0 ? Rr(h.type, h.props, h.key, null, h.__v) : h) != null) {
65722
- if (h.__ = i, h.__b = i.__b + 1, (c = w[d]) === null || c && h.key == c.key && h.type === c.type) w[d] = void 0;
65723
- else for (l = 0; l < C; l++) {
65724
- if ((c = w[l]) && h.key == c.key && h.type === c.type) {
65725
- w[l] = void 0;
65722
+ if (h.__ = i, h.__b = i.__b + 1, (l = w[d]) === null || l && h.key == l.key && h.type === l.type) w[d] = void 0;
65723
+ else for (c = 0; c < C; c++) {
65724
+ if ((l = w[c]) && h.key == l.key && h.type === l.type) {
65725
+ w[c] = void 0;
65726
65726
  break;
65727
65727
  }
65728
- c = null;
65728
+ l = null;
65729
65729
  }
65730
- uf(n, h, c = c || cs, r, s, a, o, A, f), g = h.__e, (l = h.ref) && c.ref != l && (m || (m = []), c.ref && m.push(c.ref, null, h), m.push(l, h.__c || g, h)), g != null ? (v == null && (v = g), typeof h.type == "function" && h.__k === c.__k ? h.__d = A = Xg(h, A, n) : A = Jg(n, h, c, w, g, A), typeof i.type == "function" && (i.__d = A)) : A && c.__e == A && A.parentNode != n && (A = rt(c));
65730
+ uf(n, h, l = l || cs, r, s, a, o, A, f), g = h.__e, (c = h.ref) && l.ref != c && (m || (m = []), l.ref && m.push(l.ref, null, h), m.push(c, h.__c || g, h)), g != null ? (v == null && (v = g), typeof h.type == "function" && h.__k === l.__k ? h.__d = A = Xg(h, A, n) : A = Jg(n, h, l, w, g, A), typeof i.type == "function" && (i.__d = A)) : A && l.__e == A && A.parentNode != n && (A = rt(l));
65731
65731
  }
65732
65732
  for (i.__e = v, d = C; d--; ) w[d] != null && (typeof i.type == "function" && w[d].__e != null && w[d].__e == i.__d && (i.__d = rt(t, d + 1)), _g(w[d], w[d]));
65733
65733
  if (m) for (d = 0; d < m.length; d++) Zg(m[d], m[++d], m[++d]);
@@ -65785,26 +65785,26 @@ function il(n) {
65785
65785
  this.l[n.type + !0]($.event ? $.event(n) : n);
65786
65786
  }
65787
65787
  function uf(n, e, i, t, r, s, a, o, A) {
65788
- var f, d, l, c, h, g, v, m, w, C, p, k = e.type;
65788
+ var f, d, c, l, h, g, v, m, w, C, p, k = e.type;
65789
65789
  if (e.constructor !== void 0) return null;
65790
65790
  i.__h != null && (A = i.__h, o = e.__e = i.__e, e.__h = null, s = [
65791
65791
  o
65792
65792
  ]), (f = $.__b) && f(e);
65793
65793
  try {
65794
65794
  e: if (typeof k == "function") {
65795
- if (m = e.props, w = (f = k.contextType) && t[f.__c], C = f ? w ? w.props.value : f.__ : t, i.__c ? v = (d = e.__c = i.__c).__ = d.__E : ("prototype" in k && k.prototype.render ? e.__c = d = new k(m, C) : (e.__c = d = new bn(m, C), d.constructor = k, d.render = $x), w && w.sub(d), d.props = m, d.state || (d.state = {}), d.context = C, d.__n = t, l = d.__d = !0, d.__h = []), d.__s == null && (d.__s = d.state), k.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = ei({}, d.__s)), ei(d.__s, k.getDerivedStateFromProps(m, d.__s))), c = d.props, h = d.state, l) k.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
65795
+ if (m = e.props, w = (f = k.contextType) && t[f.__c], C = f ? w ? w.props.value : f.__ : t, i.__c ? v = (d = e.__c = i.__c).__ = d.__E : ("prototype" in k && k.prototype.render ? e.__c = d = new k(m, C) : (e.__c = d = new bn(m, C), d.constructor = k, d.render = $x), w && w.sub(d), d.props = m, d.state || (d.state = {}), d.context = C, d.__n = t, c = d.__d = !0, d.__h = []), d.__s == null && (d.__s = d.state), k.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = ei({}, d.__s)), ei(d.__s, k.getDerivedStateFromProps(m, d.__s))), l = d.props, h = d.state, c) k.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
65796
65796
  else {
65797
- if (k.getDerivedStateFromProps == null && m !== c && d.componentWillReceiveProps != null && d.componentWillReceiveProps(m, C), !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(m, d.__s, C) === !1 || e.__v === i.__v) {
65797
+ if (k.getDerivedStateFromProps == null && m !== l && d.componentWillReceiveProps != null && d.componentWillReceiveProps(m, C), !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(m, d.__s, C) === !1 || e.__v === i.__v) {
65798
65798
  d.props = m, d.state = d.__s, e.__v !== i.__v && (d.__d = !1), d.__v = e, e.__e = i.__e, e.__k = i.__k, e.__k.forEach(function(y) {
65799
65799
  y && (y.__ = e);
65800
65800
  }), d.__h.length && a.push(d);
65801
65801
  break e;
65802
65802
  }
65803
65803
  d.componentWillUpdate != null && d.componentWillUpdate(m, d.__s, C), d.componentDidUpdate != null && d.__h.push(function() {
65804
- d.componentDidUpdate(c, h, g);
65804
+ d.componentDidUpdate(l, h, g);
65805
65805
  });
65806
65806
  }
65807
- d.context = C, d.props = m, d.state = d.__s, (f = $.__r) && f(e), d.__d = !1, d.__v = e, d.__P = n, f = d.render(d.props, d.state, d.context), d.state = d.__s, d.getChildContext != null && (t = ei(ei({}, t), d.getChildContext())), l || d.getSnapshotBeforeUpdate == null || (g = d.getSnapshotBeforeUpdate(c, h)), p = f != null && f.type === tt && f.key == null ? f.props.children : f, Ug(n, Array.isArray(p) ? p : [
65807
+ d.context = C, d.props = m, d.state = d.__s, (f = $.__r) && f(e), d.__d = !1, d.__v = e, d.__P = n, f = d.render(d.props, d.state, d.context), d.state = d.__s, d.getChildContext != null && (t = ei(ei({}, t), d.getChildContext())), c || d.getSnapshotBeforeUpdate == null || (g = d.getSnapshotBeforeUpdate(l, h)), p = f != null && f.type === tt && f.key == null ? f.props.children : f, Ug(n, Array.isArray(p) ? p : [
65808
65808
  p
65809
65809
  ], e, i, t, r, s, a, o, A), d.base = e.__e, e.__h = null, d.__h.length && a.push(d), v && (d.__E = d.__ = null), d.__e = !1;
65810
65810
  } else s == null && e.__v === i.__v ? (e.__k = i.__k, e.__e = i.__e) : e.__e = _x(i.__e, e, i, t, r, s, a, A);
@@ -65825,7 +65825,7 @@ function Kg(n, e) {
65825
65825
  });
65826
65826
  }
65827
65827
  function _x(n, e, i, t, r, s, a, o) {
65828
- var A, f, d, l = i.props, c = e.props, h = e.type, g = 0;
65828
+ var A, f, d, c = i.props, l = e.props, h = e.type, g = 0;
65829
65829
  if (h === "svg" && (r = !0), s != null) {
65830
65830
  for (; g < s.length; g++) if ((A = s[g]) && "setAttribute" in A == !!h && (h ? A.localName === h : A.nodeType === 3)) {
65831
65831
  n = A, s[g] = null;
@@ -65833,20 +65833,20 @@ function _x(n, e, i, t, r, s, a, o) {
65833
65833
  }
65834
65834
  }
65835
65835
  if (n == null) {
65836
- if (h === null) return document.createTextNode(c);
65837
- n = r ? document.createElementNS("http://www.w3.org/2000/svg", h) : document.createElement(h, c.is && c), s = null, o = !1;
65836
+ if (h === null) return document.createTextNode(l);
65837
+ n = r ? document.createElementNS("http://www.w3.org/2000/svg", h) : document.createElement(h, l.is && l), s = null, o = !1;
65838
65838
  }
65839
- if (h === null) l === c || o && n.data === c || (n.data = c);
65839
+ if (h === null) c === l || o && n.data === l || (n.data = l);
65840
65840
  else {
65841
- if (s = s && ia.call(n.childNodes), f = (l = i.props || cs).dangerouslySetInnerHTML, d = c.dangerouslySetInnerHTML, !o) {
65842
- if (s != null) for (l = {}, g = 0; g < n.attributes.length; g++) l[n.attributes[g].name] = n.attributes[g].value;
65841
+ if (s = s && ia.call(n.childNodes), f = (c = i.props || cs).dangerouslySetInnerHTML, d = l.dangerouslySetInnerHTML, !o) {
65842
+ if (s != null) for (c = {}, g = 0; g < n.attributes.length; g++) c[n.attributes[g].name] = n.attributes[g].value;
65843
65843
  (d || f) && (d && (f && d.__html == f.__html || d.__html === n.innerHTML) || (n.innerHTML = d && d.__html || ""));
65844
65844
  }
65845
- if (Zx(n, c, l, r, o), d) e.__k = [];
65845
+ if (Zx(n, l, c, r, o), d) e.__k = [];
65846
65846
  else if (g = e.props.children, Ug(n, Array.isArray(g) ? g : [
65847
65847
  g
65848
65848
  ], e, i, t, r && h !== "foreignObject", s, a, s ? s[0] : i.__k && rt(i, 0), o), s != null) for (g = s.length; g--; ) s[g] != null && qg(s[g]);
65849
- o || ("value" in c && (g = c.value) !== void 0 && (g !== l.value || g !== n.value || h === "progress" && !g) && hs(n, "value", g, l.value, !1), "checked" in c && (g = c.checked) !== void 0 && g !== n.checked && hs(n, "checked", g, l.checked, !1));
65849
+ o || ("value" in l && (g = l.value) !== void 0 && (g !== c.value || g !== n.value || h === "progress" && !g) && hs(n, "value", g, c.value, !1), "checked" in l && (g = l.checked) !== void 0 && g !== n.checked && hs(n, "checked", g, c.checked, !1));
65850
65850
  }
65851
65851
  return n;
65852
65852
  }
@@ -66280,12 +66280,12 @@ async function fE(n) {
66280
66280
  const f = n.custom[A], d = n.custom[A - 1];
66281
66281
  if (!(!f.emojis || !f.emojis.length)) {
66282
66282
  f.id || (f.id = `custom_${A + 1}`), f.name || (f.name = Me.categories.custom), d && !f.icon && (f.target = d.target || d), Ae.categories.push(f);
66283
- for (const l of f.emojis) Ae.emojis[l.id] = l;
66283
+ for (const c of f.emojis) Ae.emojis[c.id] = c;
66284
66284
  }
66285
66285
  }
66286
66286
  n.categories && (Ae.categories = Ae.originalCategories.filter((A) => n.categories.indexOf(A.id) != -1).sort((A, f) => {
66287
- const d = n.categories.indexOf(A.id), l = n.categories.indexOf(f.id);
66288
- return d - l;
66287
+ const d = n.categories.indexOf(A.id), c = n.categories.indexOf(f.id);
66288
+ return d - c;
66289
66289
  }));
66290
66290
  let r = null, s = null;
66291
66291
  i == "native" && (r = tl.latestVersion(), s = n.noCountryFlags || tl.noCountryFlags());
@@ -66293,10 +66293,10 @@ async function fE(n) {
66293
66293
  for (; a--; ) {
66294
66294
  const A = Ae.categories[a];
66295
66295
  if (A.id == "frequent") {
66296
- let { maxFrequentRows: l, perLine: c } = n;
66297
- l = l >= 0 ? l : In.maxFrequentRows.value, c || (c = In.perLine.value), A.emojis = nm.get({
66298
- maxFrequentRows: l,
66299
- perLine: c
66296
+ let { maxFrequentRows: c, perLine: l } = n;
66297
+ c = c >= 0 ? c : In.maxFrequentRows.value, l || (l = In.perLine.value), A.emojis = nm.get({
66298
+ maxFrequentRows: c,
66299
+ perLine: l
66300
66300
  });
66301
66301
  }
66302
66302
  if (!A.emojis || !A.emojis.length) {
@@ -66305,42 +66305,42 @@ async function fE(n) {
66305
66305
  }
66306
66306
  const { categoryIcons: f } = n;
66307
66307
  if (f) {
66308
- const l = f[A.id];
66309
- l && !A.icon && (A.icon = l);
66308
+ const c = f[A.id];
66309
+ c && !A.icon && (A.icon = c);
66310
66310
  }
66311
66311
  let d = A.emojis.length;
66312
66312
  for (; d--; ) {
66313
- const l = A.emojis[d], c = l.id ? l : Ae.emojis[l], h = () => {
66313
+ const c = A.emojis[d], l = c.id ? c : Ae.emojis[c], h = () => {
66314
66314
  A.emojis.splice(d, 1);
66315
66315
  };
66316
- if (!c || n.exceptEmojis && n.exceptEmojis.includes(c.id)) {
66316
+ if (!l || n.exceptEmojis && n.exceptEmojis.includes(l.id)) {
66317
66317
  h();
66318
66318
  continue;
66319
66319
  }
66320
- if (r && c.version > r) {
66320
+ if (r && l.version > r) {
66321
66321
  h();
66322
66322
  continue;
66323
66323
  }
66324
- if (s && A.id == "flags" && !hE.includes(c.id)) {
66324
+ if (s && A.id == "flags" && !hE.includes(l.id)) {
66325
66325
  h();
66326
66326
  continue;
66327
66327
  }
66328
- if (!c.search) {
66329
- if (o = !0, c.search = "," + [
66328
+ if (!l.search) {
66329
+ if (o = !0, l.search = "," + [
66330
66330
  [
66331
- c.id,
66331
+ l.id,
66332
66332
  !1
66333
66333
  ],
66334
66334
  [
66335
- c.name,
66335
+ l.name,
66336
66336
  !0
66337
66337
  ],
66338
66338
  [
66339
- c.keywords,
66339
+ l.keywords,
66340
66340
  !1
66341
66341
  ],
66342
66342
  [
66343
- c.emoticons,
66343
+ l.emoticons,
66344
66344
  !1
66345
66345
  ]
66346
66346
  ].map(([v, m]) => {
@@ -66350,16 +66350,16 @@ async function fE(n) {
66350
66350
  ]).map((w) => (m ? w.split(/[-|_|\s]+/) : [
66351
66351
  w
66352
66352
  ]).map((C) => C.toLowerCase())).flat();
66353
- }).flat().filter((v) => v && v.trim()).join(","), c.emoticons) for (const v of c.emoticons)
66354
- Ae.emoticons[v] || (Ae.emoticons[v] = c.id);
66353
+ }).flat().filter((v) => v && v.trim()).join(","), l.emoticons) for (const v of l.emoticons)
66354
+ Ae.emoticons[v] || (Ae.emoticons[v] = l.id);
66355
66355
  let g = 0;
66356
- for (const v of c.skins) {
66356
+ for (const v of l.skins) {
66357
66357
  if (!v) continue;
66358
66358
  g++;
66359
66359
  const { native: m } = v;
66360
- m && (Ae.natives[m] = c.id, c.search += `,${m}`);
66360
+ m && (Ae.natives[m] = l.id, l.search += `,${m}`);
66361
66361
  const w = g == 1 ? "" : `:skin-tone-${g}:`;
66362
- v.shortcodes = `:${c.id}:${w}`;
66362
+ v.shortcodes = `:${l.id}:${w}`;
66363
66363
  }
66364
66364
  }
66365
66365
  }
@@ -66856,10 +66856,10 @@ $.unmount = function(n) {
66856
66856
  if (!--t.__u) {
66857
66857
  if (t.state.__e) {
66858
66858
  var f = t.state.__e;
66859
- t.__v.__k[0] = function l(c, h, g) {
66860
- return c && (c.__v = null, c.__k = c.__k && c.__k.map(function(v) {
66861
- return l(v, h, g);
66862
- }), c.__c && c.__c.__P === h && (c.__e && g.insertBefore(c.__e, c.__d), c.__c.__e = !0, c.__c.__P = g)), c;
66859
+ t.__v.__k[0] = function c(l, h, g) {
66860
+ return l && (l.__v = null, l.__k = l.__k && l.__k.map(function(v) {
66861
+ return c(v, h, g);
66862
+ }), l.__c && l.__c.__P === h && (l.__e && g.insertBefore(l.__e, l.__d), l.__c.__e = !0, l.__c.__P = g)), l;
66863
66863
  }(f, f.__c.__P, f.__c.__O);
66864
66864
  }
66865
66865
  var d;
@@ -67252,15 +67252,15 @@ class jE extends bn {
67252
67252
  0
67253
67253
  ] : null;
67254
67254
  if (t || r) {
67255
- let l = o[A];
67256
- const c = t ? -1 : 1;
67257
- if (f += c, !l[f]) {
67258
- if (A += c, l = o[A], !l)
67255
+ let c = o[A];
67256
+ const l = t ? -1 : 1;
67257
+ if (f += l, !c[f]) {
67258
+ if (A += l, c = o[A], !c)
67259
67259
  return A = t ? 0 : o.length - 1, f = t ? 0 : o[A].length - 1, [
67260
67260
  A,
67261
67261
  f
67262
67262
  ];
67263
- f = t ? l.length - 1 : 0;
67263
+ f = t ? c.length - 1 : 0;
67264
67264
  }
67265
67265
  return [
67266
67266
  A,
@@ -67269,8 +67269,8 @@ class jE extends bn {
67269
67269
  }
67270
67270
  if (s || a) {
67271
67271
  A += s ? -1 : 1;
67272
- const l = o[A];
67273
- return l ? (l[f] || (f = l.length - 1), [
67272
+ const c = o[A];
67273
+ return c ? (c[f] || (f = c.length - 1), [
67274
67274
  A,
67275
67275
  f
67276
67276
  ]) : (A = s ? 0 : o.length - 1, f = s ? 0 : o[A].length - 1, [
@@ -67431,8 +67431,8 @@ class jE extends bn {
67431
67431
  type: "button",
67432
67432
  class: "flex flex-center flex-middle",
67433
67433
  tabindex: "-1",
67434
- onClick: (l) => this.handleEmojiClick({
67435
- e: l,
67434
+ onClick: (c) => this.handleEmojiClick({
67435
+ e: c,
67436
67436
  emoji: e
67437
67437
  }),
67438
67438
  onMouseEnter: () => this.handleEmojiOver(i),
@@ -67564,12 +67564,12 @@ class jE extends bn {
67564
67564
  height: a.length * this.props.emojiButtonSize
67565
67565
  },
67566
67566
  children: a.map((o, A) => {
67567
- const f = o.index - o.index % mr.rowsPerRender, d = this.state.visibleRows[f], l = "current" in o ? o : void 0;
67568
- if (!d && !l) return null;
67569
- const c = A * t, h = c + t, g = r.emojis.slice(c, h);
67567
+ const f = o.index - o.index % mr.rowsPerRender, d = this.state.visibleRows[f], c = "current" in o ? o : void 0;
67568
+ if (!d && !c) return null;
67569
+ const l = A * t, h = l + t, g = r.emojis.slice(l, h);
67570
67570
  return g.length < t && g.push(...new Array(t - g.length)), /* @__PURE__ */ G("div", {
67571
67571
  "data-index": o.index,
67572
- ref: l,
67572
+ ref: c,
67573
67573
  class: "flex row",
67574
67574
  style: {
67575
67575
  top: A * this.props.emojiButtonSize
@@ -68584,7 +68584,7 @@ function lm(n) {
68584
68584
  ref: e
68585
68585
  }), () => {
68586
68586
  i.current = null;
68587
- }), []), /* @__PURE__ */ Re.createElement("div", {
68587
+ }), []), /* @__PURE__ */ Qe.createElement("div", {
68588
68588
  ref: e
68589
68589
  });
68590
68590
  }
@@ -68726,7 +68726,7 @@ const WE = N.div`
68726
68726
  handleEditMessage: o,
68727
68727
  handleReactionMessage: A
68728
68728
  }) => {
68729
- const { roomsList: f, activeRoomJID: d } = An(), [l, c] = J(!1), h = de(
68729
+ const { roomsList: f, activeRoomJID: d } = An(), [c, l] = J(!1), h = de(
68730
68730
  (x) => x.chatSettingStore.config
68731
68731
  ), g = () => {
68732
68732
  h != null && h.disableInteractions || r({ visible: !1, x: 0, y: 0 });
@@ -68752,7 +68752,7 @@ const WE = N.div`
68752
68752
  };
68753
68753
  return fe(() => {
68754
68754
  const x = () => {
68755
- if (l) {
68755
+ if (c) {
68756
68756
  const { adjustedX: S, adjustedY: P } = b(
68757
68757
  t.x,
68758
68758
  t.y
@@ -68763,7 +68763,7 @@ const WE = N.div`
68763
68763
  return window.addEventListener("scroll", x), () => {
68764
68764
  window.removeEventListener("scroll", x);
68765
68765
  };
68766
- }, [l, t.x, t.y]), h != null && h.disableInteractions || !t.visible ? null : /* @__PURE__ */ u(pe, { children: !i.isDeleted && /* @__PURE__ */ u(YE, { onClick: v, children: /* @__PURE__ */ I(
68766
+ }, [c, t.x, t.y]), h != null && h.disableInteractions || !t.visible ? null : /* @__PURE__ */ u(pe, { children: !i.isDeleted && /* @__PURE__ */ u(YE, { onClick: v, children: /* @__PURE__ */ I(
68767
68767
  QE,
68768
68768
  {
68769
68769
  style: { top: t.y, left: t.x },
@@ -68781,7 +68781,7 @@ const WE = N.div`
68781
68781
  /* @__PURE__ */ u(
68782
68782
  LE,
68783
68783
  {
68784
- isRotated: l,
68784
+ isRotated: c,
68785
68785
  onClick: (x) => {
68786
68786
  x.stopPropagation();
68787
68787
  const { adjustedX: S, adjustedY: P } = b(
@@ -68792,13 +68792,13 @@ const WE = N.div`
68792
68792
  visible: !0,
68793
68793
  x: S,
68794
68794
  y: P
68795
- }), c(!l);
68795
+ }), l(!c);
68796
68796
  },
68797
68797
  children: /* @__PURE__ */ u(ch, {})
68798
68798
  }
68799
68799
  )
68800
68800
  ] }),
68801
- l && /* @__PURE__ */ u(
68801
+ c && /* @__PURE__ */ u(
68802
68802
  lm,
68803
68803
  {
68804
68804
  skinTonePosition: "none",
@@ -69066,92 +69066,80 @@ const WE = N.div`
69066
69066
  let e = 0;
69067
69067
  const i = [], t = n.split(`
69068
69068
  `);
69069
- let r = !1;
69070
- const s = [], a = (o) => {
69071
- const A = [], f = [];
69072
- let d = 0;
69073
- const l = (c) => {
69074
- const h = /(https:\/\/[\w.-]+(?:\.[\w.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+)/g;
69075
- let g = 0, v;
69076
- for (; (v = h.exec(c)) !== null; )
69077
- v.index > g && f.push(c.slice(g, v.index)), f.push(
69078
- /* @__PURE__ */ u(
69079
- "a",
69080
- {
69081
- href: v[0],
69082
- target: "_blank",
69083
- rel: "noopener noreferrer",
69084
- style: { color: "blue", textDecoration: "underline" },
69085
- children: v[0]
69069
+ let r = !1, s = "";
69070
+ const a = [], o = (f) => {
69071
+ const d = [], c = /(\*\*\*[^*]+?\*\*\*|\*\*[^*]+?\*\*|\*[^*]+?\*|~~[^~]+?~~|`[^`]+?`|https:\/\/[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+)/g;
69072
+ let l = 0, h;
69073
+ for (; (h = c.exec(f)) !== null; ) {
69074
+ h.index > l && d.push(f.slice(l, h.index));
69075
+ const g = h[0];
69076
+ /^\*\*\*.*\*\*\*$/.test(g) ? d.push(
69077
+ /* @__PURE__ */ u("strong", { children: /* @__PURE__ */ u("em", { children: g.slice(3, -3) }) }, `b-${e++}`)
69078
+ ) : /^\*\*.*\*\*$/.test(g) ? d.push(/* @__PURE__ */ u("strong", { children: g.slice(2, -2) }, `b-${e++}`)) : /^\*.*\*$/.test(g) ? d.push(/* @__PURE__ */ u("em", { children: g.slice(1, -1) }, `i-${e++}`)) : /^~~.*~~$/.test(g) ? d.push(/* @__PURE__ */ u("del", { children: g.slice(2, -2) }, `s-${e++}`)) : /^`.*`$/.test(g) ? d.push(
69079
+ /* @__PURE__ */ u(
69080
+ "code",
69081
+ {
69082
+ style: {
69083
+ background: "#eee",
69084
+ padding: "1px 4px",
69085
+ borderRadius: "4px"
69086
69086
  },
69087
- `link-${e++}`
69088
- )
69089
- ), g = v.index + v[0].length;
69090
- g < c.length && f.push(c.slice(g));
69091
- };
69092
- for (; d < o.length; )
69093
- if (o.slice(d, d + 2) === "**") {
69094
- if (A.length && A[A.length - 1].type === "bold") {
69095
- const c = A.pop();
69096
- f.push(/* @__PURE__ */ u("strong", { children: c.content }, `b-${e++}`));
69097
- } else
69098
- A.push({ type: "bold", content: [] });
69099
- d += 2;
69100
- } else if (o[d] === "*" && (d === 0 || o[d - 1] !== "*")) {
69101
- if (A.length && A[A.length - 1].type === "italic") {
69102
- const c = A.pop();
69103
- f.push(/* @__PURE__ */ u("em", { children: c.content }, `i-${e++}`));
69104
- } else
69105
- A.push({ type: "italic", content: [] });
69106
- d++;
69107
- } else if (o.slice(d, d + 2) === "~~") {
69108
- if (A.length && A[A.length - 1].type === "strike") {
69109
- const c = A.pop();
69110
- f.push(/* @__PURE__ */ u("del", { children: c.content }, `s-${e++}`));
69111
- } else
69112
- A.push({ type: "strike", content: [] });
69113
- d += 2;
69114
- } else if (o[d] === "`") {
69115
- const c = o.indexOf("`", d + 1);
69116
- if (c !== -1) {
69117
- const h = o.slice(d + 1, c);
69118
- f.push(
69119
- /* @__PURE__ */ u(
69120
- "code",
69121
- {
69122
- style: {
69123
- background: "#eee",
69124
- padding: "1px 4px",
69125
- borderRadius: "4px"
69126
- },
69127
- children: h
69128
- },
69129
- `code-${e++}`
69130
- )
69131
- ), d = c + 1;
69132
- } else
69133
- f.push(o[d++]);
69087
+ children: g.slice(1, -1).trim()
69088
+ },
69089
+ `code-${e++}`
69090
+ )
69091
+ ) : /^https:\/\//.test(g) && d.push(
69092
+ /* @__PURE__ */ u(
69093
+ "a",
69094
+ {
69095
+ href: g,
69096
+ target: "_blank",
69097
+ rel: "noopener noreferrer",
69098
+ style: { color: "blue", textDecoration: "underline" },
69099
+ children: g
69100
+ },
69101
+ `link-${e++}`
69102
+ )
69103
+ ), l = h.index + g.length;
69104
+ }
69105
+ return l < f.length && d.push(f.slice(l)), d;
69106
+ }, A = (f) => {
69107
+ const d = [], c = /^\d+\./.test(t[f].trim());
69108
+ let l = f;
69109
+ for (; l < t.length; ) {
69110
+ const g = t[l];
69111
+ if (/^(\d+\.\s+|\-\s+)/.test(g)) {
69112
+ const v = g.replace(/^(\d+\.\s+|\-\s+)/, "");
69113
+ d.push(/* @__PURE__ */ u("li", { children: o(v) }, `li-${e++}`));
69134
69114
  } else {
69135
- if (A.length)
69136
- A[A.length - 1].content.push(o[d]);
69137
- else {
69138
- let c = d;
69139
- for (; c < o.length && o[c] !== "*" && o.slice(c, c + 2) !== "**" && o.slice(c, c + 2) !== "~~" && o[c] !== "`"; )
69140
- c++;
69141
- l(o.slice(d, c)), d = c - 1;
69142
- }
69143
- d++;
69115
+ if (g.trim() === "")
69116
+ break;
69117
+ break;
69144
69118
  }
69145
- for (; A.length; ) {
69146
- const c = A.shift();
69147
- f.push(...c.content);
69119
+ l++;
69148
69120
  }
69149
- return f;
69121
+ const h = c ? "ol" : "ul";
69122
+ return {
69123
+ list: Qe.createElement(
69124
+ h,
69125
+ {
69126
+ key: `list-${e++}`,
69127
+ style: { margin: "4px 0", paddingLeft: "20px" }
69128
+ },
69129
+ d
69130
+ ),
69131
+ newIndex: l - 1
69132
+ };
69150
69133
  };
69151
- for (let o = 0; o < t.length; o++) {
69152
- const A = t[o];
69153
- if (A.trim() === "```") {
69154
- r = !r, r || (i.push(
69134
+ for (let f = 0; f < t.length; f++) {
69135
+ const d = t[f];
69136
+ if (!r && d.trim().startsWith("```")) {
69137
+ const c = d.trim().match(/^```(?:\s*(\w+))?/);
69138
+ r = !0, s = (c == null ? void 0 : c[1]) || "";
69139
+ continue;
69140
+ }
69141
+ if (r && d.trim() === "```") {
69142
+ r = !1, i.push(
69155
69143
  /* @__PURE__ */ u(
69156
69144
  "pre",
69157
69145
  {
@@ -69161,29 +69149,53 @@ const WE = N.div`
69161
69149
  borderRadius: "8px",
69162
69150
  whiteSpace: "pre-wrap"
69163
69151
  },
69164
- children: /* @__PURE__ */ u("code", { children: s.join(`
69152
+ children: /* @__PURE__ */ u("code", { className: `language-${s}`, children: a.join(`
69165
69153
  `) })
69166
69154
  },
69167
69155
  `pre-${e++}`
69168
69156
  )
69169
- ), s.length = 0);
69157
+ ), a.length = 0, s = "";
69170
69158
  continue;
69171
69159
  }
69172
69160
  if (r) {
69173
- s.push(A.replace(/\t/g, " "));
69161
+ a.push(d);
69174
69162
  continue;
69175
69163
  }
69176
- if (/^#{1,6}\s/.test(A)) {
69177
- const f = A.match(/^#+/)[0].length, d = A.replace(/^#{1,6}\s/, "");
69164
+ if (/^#{1,6}\s/.test(d)) {
69165
+ const c = d.match(/^#+/)[0].length, l = d.replace(/^#{1,6}\s/, "");
69178
69166
  i.push(
69179
- Re.createElement(
69180
- `h${f}`,
69167
+ Qe.createElement(
69168
+ `h${c}`,
69181
69169
  { key: `h-${e++}` },
69182
- ...a(d)
69170
+ ...o(l)
69183
69171
  )
69184
69172
  );
69185
- } else A.trim() === "" ? i.push(/* @__PURE__ */ u("br", {}, `br-${e++}`)) : i.push(
69186
- /* @__PURE__ */ u("p", { style: { margin: 0 }, children: a(A) }, `p-${e++}`)
69173
+ continue;
69174
+ }
69175
+ if (d.startsWith(">")) {
69176
+ i.push(
69177
+ /* @__PURE__ */ u(
69178
+ "blockquote",
69179
+ {
69180
+ style: {
69181
+ borderLeft: "3px solid #ccc",
69182
+ paddingLeft: "10px",
69183
+ color: "#666"
69184
+ },
69185
+ children: o(d.replace(/^>\s*/, ""))
69186
+ },
69187
+ `quote-${e++}`
69188
+ )
69189
+ );
69190
+ continue;
69191
+ }
69192
+ if (/^(\-|\d+\.)\s+/.test(d)) {
69193
+ const { list: c, newIndex: l } = A(f);
69194
+ i.push(c), f = l;
69195
+ continue;
69196
+ }
69197
+ d.trim() === "" ? i.push(/* @__PURE__ */ u("br", {}, `br-${e++}`)) : i.push(
69198
+ /* @__PURE__ */ u("p", { style: { margin: 0 }, children: o(d) }, `p-${e++}`)
69187
69199
  );
69188
69200
  }
69189
69201
  return i;
@@ -69228,18 +69240,18 @@ const WE = N.div`
69228
69240
  var f, d;
69229
69241
  r(!0), a(null), i(null);
69230
69242
  try {
69231
- const l = "55b9e7f85f2b4e94505e96ef71c55a0e", c = await xe.get(
69232
- `https://api.linkpreview.net/?key=${l}&q=${encodeURIComponent(n)}`
69243
+ const c = "55b9e7f85f2b4e94505e96ef71c55a0e", l = await xe.get(
69244
+ `https://api.linkpreview.net/?key=${c}&q=${encodeURIComponent(n)}`
69233
69245
  );
69234
- c.data && (c.data.title || c.data.description || c.data.image) ? i({
69235
- title: c.data.title,
69236
- description: c.data.description,
69237
- image: c.data.image
69246
+ l.data && (l.data.title || l.data.description || l.data.image) ? i({
69247
+ title: l.data.title,
69248
+ description: l.data.description,
69249
+ image: l.data.image
69238
69250
  }) : a("Preview data not found");
69239
- } catch (l) {
69240
- console.error("Error fetching URL preview via linkpreview.net:", l);
69241
- let c = "Could not load preview";
69242
- xe.isAxiosError(l) ? c = ((d = (f = l.response) == null ? void 0 : f.data) == null ? void 0 : d.description) || l.message || c : l instanceof Error && (c = l.message), a(c), i(null);
69251
+ } catch (c) {
69252
+ console.error("Error fetching URL preview via linkpreview.net:", c);
69253
+ let l = "Could not load preview";
69254
+ xe.isAxiosError(c) ? l = ((d = (f = c.response) == null ? void 0 : f.data) == null ? void 0 : d.description) || c.message || l : c instanceof Error && (l = c.message), a(l), i(null);
69243
69255
  } finally {
69244
69256
  r(!1);
69245
69257
  }
@@ -69264,13 +69276,13 @@ const WE = N.div`
69264
69276
  visible: !1,
69265
69277
  x: 0,
69266
69278
  y: 0
69267
- }), [l, c] = J(null);
69279
+ }), [c, l] = J(null);
69268
69280
  fe(() => {
69269
69281
  if (n && n.body && typeof n.body == "string") {
69270
69282
  const H = n.body.match(lB);
69271
- c(H ? H[0] : null);
69283
+ l(H ? H[0] : null);
69272
69284
  } else
69273
- c(null);
69285
+ l(null);
69274
69286
  }, [n == null ? void 0 : n.body]);
69275
69287
  const h = (H) => {
69276
69288
  if (a != null && a.disableInteractions) return;
@@ -69288,7 +69300,7 @@ const WE = N.div`
69288
69300
  }, m = () => {
69289
69301
  g.current && (clearTimeout(g.current), g.current = null);
69290
69302
  }, w = (H) => {
69291
- (H == null ? void 0 : H.name) !== "Deleted User" && (A(Qe(me.PROFILE)), A(xA(H)));
69303
+ (H == null ? void 0 : H.name) !== "Deleted User" && (A(Re(me.PROFILE)), A(xA(H)));
69292
69304
  }, C = () => {
69293
69305
  if (A(si({ isEdit: !1 })), !i && n.mainMessage) {
69294
69306
  const H = JSON.parse(n.mainMessage);
@@ -69422,7 +69434,7 @@ const WE = N.div`
69422
69434
  }),
69423
69435
  !(a != null && a.disableSentLogic) && e && !(n != null && n.pending) && /* @__PURE__ */ u(Z4, {})
69424
69436
  ] }),
69425
- l && !n.isDeleted && /* @__PURE__ */ u(cB, { url: l, isUserMessage: e })
69437
+ c && !n.isDeleted && /* @__PURE__ */ u(cB, { url: c, isUserMessage: e })
69426
69438
  ]
69427
69439
  }
69428
69440
  ),
@@ -69467,10 +69479,10 @@ const WE = N.div`
69467
69479
  ] });
69468
69480
  }), um = ({ config: n }) => {
69469
69481
  var v, m, w, C;
69470
- const e = be(), { showToast: i } = qt(), [t, r] = J(""), [s, a] = J(""), [o, A] = J(!1), [f, d] = J({ email: "", password: "" }), l = () => {
69482
+ const e = be(), { showToast: i } = qt(), [t, r] = J(""), [s, a] = J(""), [o, A] = J(!1), [f, d] = J({ email: "", password: "" }), c = () => {
69471
69483
  let p = "", k = "";
69472
69484
  return /\S+@\S+\.\S+/.test(t) || (p = "Invalid email format"), s.length < 6 && (k = "Password must be at least 6 characters long"), { emailError: p, passwordError: k };
69473
- }, c = ie(async () => {
69485
+ }, l = ie(async () => {
69474
69486
  A(!0);
69475
69487
  try {
69476
69488
  const p = await dg(t, s);
@@ -69556,8 +69568,8 @@ const WE = N.div`
69556
69568
  };
69557
69569
  return /* @__PURE__ */ u(uB, { children: /* @__PURE__ */ I(hB, { onSubmit: (p) => {
69558
69570
  p.preventDefault();
69559
- const { emailError: k, passwordError: y } = l();
69560
- d({ email: k, password: y }), !k && !y && c();
69571
+ const { emailError: k, passwordError: y } = c();
69572
+ d({ email: k, password: y }), !k && !y && l();
69561
69573
  }, children: [
69562
69574
  /* @__PURE__ */ I(
69563
69575
  "div",
@@ -69708,7 +69720,7 @@ const WE = N.div`
69708
69720
  right: 0;
69709
69721
  }
69710
69722
  `, mB = ({ children: n, modal: e, setOpenModal: i }) => {
69711
- const t = be(), r = () => i(), s = () => t(Qe(me.SETTINGS));
69723
+ const t = be(), r = () => i(), s = () => t(Re(me.SETTINGS));
69712
69724
  return e && /* @__PURE__ */ I(ft, { id: "modal-background", style: { position: "absolute" }, children: [
69713
69725
  (() => {
69714
69726
  const o = ax[e];
@@ -69746,8 +69758,8 @@ const WE = N.div`
69746
69758
  var S, P, E;
69747
69759
  const { client: t } = nn(), r = be(), { loading: s, roomsList: a, editAction: o, activeRoomJID: A } = An(), { config: f } = Je(), {
69748
69760
  sendMessage: d,
69749
- sendMedia: l,
69750
- sendEditMessage: c
69761
+ sendMedia: c,
69762
+ sendEditMessage: l
69751
69763
  } = Rg(), [h, g] = J(!1), [v, m] = J(!1), w = ie(
69752
69764
  async (B, M, D) => {
69753
69765
  var L;
@@ -69774,7 +69786,7 @@ const WE = N.div`
69774
69786
  [n, v]
69775
69787
  ), p = ie(
69776
69788
  (B, M) => {
69777
- l(
69789
+ c(
69778
69790
  B,
69779
69791
  M,
69780
69792
  n.roomJid,
@@ -69867,7 +69879,7 @@ const WE = N.div`
69867
69879
  {
69868
69880
  editMessage: o.text,
69869
69881
  sendMedia: p,
69870
- sendMessage: o.isEdit ? c : C,
69882
+ sendMessage: o.isEdit ? l : C,
69871
69883
  config: f,
69872
69884
  onFocus: k,
69873
69885
  onBlur: y,
@@ -69899,12 +69911,12 @@ const WE = N.div`
69899
69911
  {
69900
69912
  ref: d,
69901
69913
  onInput: () => {
69902
- const c = d.current;
69903
- c && (c.style.height = "auto", c.style.height = `${c.scrollHeight}px`);
69914
+ const l = d.current;
69915
+ l && (l.style.height = "auto", l.style.height = `${l.scrollHeight}px`);
69904
69916
  },
69905
69917
  id: "additionalDetails",
69906
69918
  value: a,
69907
- onChange: (c) => o(c.target.value),
69919
+ onChange: (l) => o(l.target.value),
69908
69920
  placeholder: "Additional Details"
69909
69921
  }
69910
69922
  ) }),
@@ -69938,15 +69950,15 @@ const WE = N.div`
69938
69950
  }, kB = (n, e, i, t, r, s = vB, a = wB, o = bB) => {
69939
69951
  const A = ge(/* @__PURE__ */ new Set()), f = ge(null), d = ie(async () => {
69940
69952
  if (i || t) return;
69941
- const l = n.filter(
69942
- (c) => !A.current.has(c)
69953
+ const c = n.filter(
69954
+ (l) => !A.current.has(l)
69943
69955
  );
69944
- if (!l.length) {
69956
+ if (!c.length) {
69945
69957
  f.current && (clearInterval(f.current), f.current = null);
69946
69958
  return;
69947
69959
  }
69948
- for (let c = 0; c < l.length; c += s) {
69949
- const h = l.slice(c, c + s);
69960
+ for (let l = 0; l < c.length; l += s) {
69961
+ const h = c.slice(l, l + s);
69950
69962
  await Promise.all(
69951
69963
  h.map(async (g) => {
69952
69964
  const v = e[g];
@@ -70001,8 +70013,8 @@ const WE = N.div`
70001
70013
  name: "",
70002
70014
  isChoose: !1
70003
70015
  }), o = ie(
70004
- (l) => {
70005
- r(l.target.value);
70016
+ (c) => {
70017
+ r(c.target.value);
70006
70018
  },
70007
70019
  []
70008
70020
  ), A = () => {
@@ -70041,18 +70053,18 @@ const WE = N.div`
70041
70053
  ) : /* @__PURE__ */ u("p", { style: { margin: 0 }, children: s.name })
70042
70054
  }
70043
70055
  ) : /* @__PURE__ */ I("div", { children: [
70044
- xB.map((l) => /* @__PURE__ */ I("div", { children: [
70056
+ xB.map((c) => /* @__PURE__ */ I("div", { children: [
70045
70057
  /* @__PURE__ */ u(
70046
70058
  xl,
70047
70059
  {
70048
70060
  onClick: () => {
70049
- a({ name: l, isChoose: !0 });
70061
+ a({ name: c, isChoose: !0 });
70050
70062
  },
70051
- children: /* @__PURE__ */ u("span", { style: { display: "flex", alignItems: "flex-start" }, children: l })
70063
+ children: /* @__PURE__ */ u("span", { style: { display: "flex", alignItems: "flex-start" }, children: c })
70052
70064
  }
70053
70065
  ),
70054
70066
  /* @__PURE__ */ u("div", { style: { padding: "8px 0" }, children: /* @__PURE__ */ u(mg, {}) })
70055
- ] }, l)),
70067
+ ] }, c)),
70056
70068
  /* @__PURE__ */ u(
70057
70069
  xl,
70058
70070
  {
@@ -70205,9 +70217,9 @@ const PB = ({
70205
70217
  config: i
70206
70218
  }) => {
70207
70219
  var p;
70208
- const t = be(), [r, s] = J(!1), [a, o] = J(!1), [A, f] = J(!1), { client: d, initializeClient: l, setClient: c } = nn(), h = Fg(), { rooms: g } = de((k) => k.rooms), { roomsList: v } = An(), { user: m } = Je();
70220
+ const t = be(), [r, s] = J(!1), [a, o] = J(!1), [A, f] = J(!1), { client: d, initializeClient: c, setClient: l } = nn(), h = Fg(), { rooms: g } = de((k) => k.rooms), { roomsList: v } = An(), { user: m } = Je();
70209
70221
  fe(() => () => {
70210
- d && m.xmppPassword === "" && (console.log("closing client"), d.close(), c(null));
70222
+ d && m.xmppPassword === "" && (console.log("closing client"), d.close(), l(null));
70211
70223
  }, [m.xmppPassword]);
70212
70224
  const w = async () => {
70213
70225
  if (f(!0), !await NB(
@@ -70240,12 +70252,12 @@ const PB = ({
70240
70252
  v
70241
70253
  ) || await w()), s(!0), await d.getChatsPrivateStoreRequestStanza().then(
70242
70254
  async (D) => {
70243
- _r(D, t), await $r(g, d), c(d);
70255
+ _r(D, t), await $r(g, d), l(d);
70244
70256
  }
70245
70257
  ), (M = i == null ? void 0 : i.refreshTokens) != null && M.enabled && Do();
70246
70258
  else {
70247
70259
  s(!1), o(!1), console.log("No client, so initing one");
70248
- const D = await l(
70260
+ const D = await c(
70249
70261
  m.xmppUsername || ((S = m == null ? void 0 : m.defaultWallet) == null ? void 0 : S.walletAddress),
70250
70262
  m == null ? void 0 : m.xmppPassword,
70251
70263
  i == null ? void 0 : i.xmppSettings,
@@ -70263,7 +70275,7 @@ const PB = ({
70263
70275
  await D.getRoomsStanza();
70264
70276
  await D.getChatsPrivateStoreRequestStanza().then(
70265
70277
  async (L) => {
70266
- _r(L, t), await $r(g, D), c(D);
70278
+ _r(L, t), await $r(g, D), l(D);
70267
70279
  }
70268
70280
  ), (E = i == null ? void 0 : i.refreshTokens) != null && E.enabled && Do();
70269
70281
  }
@@ -70277,7 +70289,7 @@ const PB = ({
70277
70289
  inited: r,
70278
70290
  isRetrying: A,
70279
70291
  showModal: a,
70280
- setClient: c,
70292
+ setClient: l,
70281
70293
  setInited: s,
70282
70294
  setShowModal: o
70283
70295
  };
@@ -70288,9 +70300,9 @@ const PB = ({
70288
70300
  roomJID: t
70289
70301
  }) => {
70290
70302
  var W, H, U, ee, V;
70291
- const { user: r, activeModal: s, deleteModal: a } = Je(), [o, A] = J(!1), [f, d] = J(!1), l = (W = i == null ? void 0 : i.xmppSettings) == null ? void 0 : W.conference, c = be(), { wasAutoSelected: h } = DB(
70292
- (j) => c(Ve(j)),
70293
- l
70303
+ const { user: r, activeModal: s, deleteModal: a } = Je(), [o, A] = J(!1), [f, d] = J(!1), c = (W = i == null ? void 0 : i.xmppSettings) == null ? void 0 : W.conference, l = be(), { wasAutoSelected: h } = DB(
70304
+ (j) => l(Ve(j)),
70305
+ c
70294
70306
  );
70295
70307
  fe(() => {
70296
70308
  const j = () => {
@@ -70311,11 +70323,11 @@ const PB = ({
70311
70323
  (T) => T == null ? void 0 : T.activeMessage
70312
70324
  );
70313
70325
  }, [v, m]), x = (j) => {
70314
- m !== j.jid && (c(Le({ chatJID: j.jid, loading: !0 })), c(Ve({ roomJID: j.jid })), c(si({ isEdit: !1 })), g(!0));
70326
+ m !== j.jid && (l(Le({ chatJID: j.jid, loading: !0 })), l(Ve({ roomJID: j.jid })), l(si({ isEdit: !1 })), g(!0));
70315
70327
  }, S = () => {
70316
- E.deleteMessageStanza(a.roomJid, a.messageId), c(Xr({ isDeleteModal: !1 }));
70328
+ E.deleteMessageStanza(a.roomJid, a.messageId), l(Xr({ isDeleteModal: !1 }));
70317
70329
  }, P = () => {
70318
- c(Xr({ isDeleteModal: !1 }));
70330
+ l(Xr({ isDeleteModal: !1 }));
70319
70331
  }, { client: E, inited: B, isRetrying: M, showModal: D } = PB({
70320
70332
  roomJID: t,
70321
70333
  wasAutoSelected: h,
@@ -70416,7 +70428,7 @@ const PB = ({
70416
70428
  mB,
70417
70429
  {
70418
70430
  modal: s,
70419
- setOpenModal: (j) => c(Qe(j))
70431
+ setOpenModal: (j) => l(Re(j))
70420
70432
  }
70421
70433
  )
70422
70434
  ]
@@ -70464,8 +70476,8 @@ const PB = ({
70464
70476
  }
70465
70477
  }, []), s = be();
70466
70478
  return fe(() => {
70467
- var o, A, f, d, l, c, h, g, v, m, w, C, p;
70468
- if ((o = n.config) != null && o.baseUrl && zy((A = n.config) == null ? void 0 : A.baseUrl, (f = n.config) == null ? void 0 : f.customAppToken), (l = (d = n == null ? void 0 : n.config) == null ? void 0 : d.userLogin) != null && l.enabled && ((h = (c = n == null ? void 0 : n.config) == null ? void 0 : c.userLogin) != null && h.user)) {
70479
+ var o, A, f, d, c, l, h, g, v, m, w, C, p;
70480
+ if ((o = n.config) != null && o.baseUrl && zy((A = n.config) == null ? void 0 : A.baseUrl, (f = n.config) == null ? void 0 : f.customAppToken), (c = (d = n == null ? void 0 : n.config) == null ? void 0 : d.userLogin) != null && c.enabled && ((h = (l = n == null ? void 0 : n.config) == null ? void 0 : l.userLogin) != null && h.user)) {
70469
70481
  s(_n(n.config.userLogin.user));
70470
70482
  return;
70471
70483
  }
@@ -70595,7 +70607,7 @@ Yr(hm, "defaultProps", {
70595
70607
  children: null,
70596
70608
  loading: null
70597
70609
  });
70598
- const aD = Re.memo(
70610
+ const aD = Qe.memo(
70599
70611
  ({ ...n }) => {
70600
70612
  const e = Ce(() => n.config, [n.config]);
70601
70613
  return /* @__PURE__ */ u(R3, { store: K, children: /* @__PURE__ */ u(hm, { loading: /* @__PURE__ */ u(Rn, {}), persistor: lb, children: /* @__PURE__ */ u(T5, { children: /* @__PURE__ */ u(MB, { config: e, ...n }) }) }) });