@ethora/chat-component 25.7.4 → 25.7.5

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
@@ -1,6 +1,6 @@
1
1
  import { jsx as h, jsxs as S, Fragment as we } from "react/jsx-runtime";
2
2
  import * as _e from "react";
3
- import Be, { createContext as a1, useContext as zA, useState as H, useRef as ce, useEffect as se, useDebugValue as Uf, createElement as up, Fragment as zf, useMemo as ke, useCallback as ee, forwardRef as hp, PureComponent as mp, useSyncExternalStore as gp } from "react";
3
+ import Be, { createContext as a1, useContext as zA, useState as H, useEffect as se, useDebugValue as Uf, createElement as up, useRef as he, Fragment as zf, useMemo as ke, useCallback as ee, forwardRef as hp, PureComponent as mp, useSyncExternalStore as gp } from "react";
4
4
  function _i(n) {
5
5
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
6
6
  }
@@ -281,13 +281,13 @@ function Rt() {
281
281
  function I() {
282
282
  typeof w.removeListener == "function" && w.removeListener("error", B), p([].slice.call(arguments));
283
283
  }
284
- y(w, v, I, { once: !0 }), v !== "error" && k(w, B, { once: !0 });
284
+ k(w, v, I, { once: !0 }), v !== "error" && y(w, B, { once: !0 });
285
285
  });
286
286
  }
287
- function k(w, v, p) {
288
- typeof w.on == "function" && y(w, "error", v, p);
287
+ function y(w, v, p) {
288
+ typeof w.on == "function" && k(w, "error", v, p);
289
289
  }
290
- function y(w, v, p, x) {
290
+ function k(w, v, p, x) {
291
291
  if (typeof w.on == "function")
292
292
  x.once ? w.once(v, p) : w.on(v, p);
293
293
  else if (typeof w.addEventListener == "function")
@@ -697,7 +697,7 @@ function Cp() {
697
697
  class u extends n.EventEmitter {
698
698
  constructor() {
699
699
  super();
700
- let g = i, b, C, k, y, w, v, p, x, B = 0, I;
700
+ let g = i, b, C, y, k, w, v, p, x, B = 0, I;
701
701
  this._handleTagOpening = function(D, M, N) {
702
702
  D ? this.emit("endElement", M, !1) : (this.emit("startElement", M, N), v && this.emit("endElement", M, !0));
703
703
  }, this.write = function(D) {
@@ -738,7 +738,7 @@ function Cp() {
738
738
  case i:
739
739
  if (L === 60) {
740
740
  const j = N();
741
- j && this.emit("text", e.unescapeXML(j)), g = s, B = M + 1, y = {};
741
+ j && this.emit("text", e.unescapeXML(j)), g = s, B = M + 1, k = {};
742
742
  }
743
743
  break;
744
744
  case l:
@@ -749,7 +749,7 @@ function Cp() {
749
749
  } else D.length < M + 2 && (C = !0, M = D.length);
750
750
  break;
751
751
  case s:
752
- L === 47 && B === M ? (B = M + 1, w = !0) : L === 33 ? D.substr(M + 1, 7) === "[CDATA[" ? (B = M + 8, g = l) : D.length < M + 8 && "[CDATA[".startsWith(D.slice(M + 1)) ? (C = !0, M = D.length) : (B = void 0, g = t) : L === 63 ? (B = void 0, g = r) : (L <= 32 || L === 47 || L === 62) && (k = N(), M--, g = a);
752
+ L === 47 && B === M ? (B = M + 1, w = !0) : L === 33 ? D.substr(M + 1, 7) === "[CDATA[" ? (B = M + 8, g = l) : D.length < M + 8 && "[CDATA[".startsWith(D.slice(M + 1)) ? (C = !0, M = D.length) : (B = void 0, g = t) : L === 63 ? (B = void 0, g = r) : (L <= 32 || L === 47 || L === 62) && (y = N(), M--, g = a);
753
753
  break;
754
754
  case t:
755
755
  if (L === 62) {
@@ -761,7 +761,7 @@ function Cp() {
761
761
  L === 62 && D.charCodeAt(M - 1) === 63 && (g = i);
762
762
  break;
763
763
  case a:
764
- L === 62 ? (this._handleTagOpening(w, k, y), k = void 0, y = void 0, w = void 0, v = void 0, g = i, B = M + 1) : L === 47 ? v = !0 : L > 32 && (B = M, g = o);
764
+ L === 62 ? (this._handleTagOpening(w, y, k), y = void 0, k = void 0, w = void 0, v = void 0, g = i, B = M + 1) : L === 47 ? v = !0 : L > 32 && (B = M, g = o);
765
765
  break;
766
766
  case o:
767
767
  (L <= 32 || L === 61) && (I = N(), M--, g = A);
@@ -775,7 +775,7 @@ function Cp() {
775
775
  case d:
776
776
  if (L === p) {
777
777
  const j = e.unescapeXML(N());
778
- y[I] = j, I = void 0, g = a;
778
+ k[I] = j, I = void 0, g = a;
779
779
  }
780
780
  break;
781
781
  }
@@ -1595,8 +1595,8 @@ function Hp() {
1595
1595
  let C;
1596
1596
  try {
1597
1597
  C = await u();
1598
- } catch (k) {
1599
- d.emit("error", k), C = o("cancel", "internal-server-error");
1598
+ } catch (y) {
1599
+ d.emit("error", y), C = o("cancel", "internal-server-error");
1600
1600
  }
1601
1601
  return C || (C = o("cancel", "service-unavailable")), C instanceof n.Element && C.is("error") ? a(c, C, b) : s(
1602
1602
  c,
@@ -1822,21 +1822,21 @@ function t0() {
1822
1822
  ...l
1823
1823
  };
1824
1824
  return new Promise((g, b) => {
1825
- const C = (k) => {
1826
- if (k.attrs.xmlns === s) {
1827
- if (k.name === "challenge") {
1828
- c.challenge(e(k.text()));
1829
- const y = c.response(m);
1825
+ const C = (y) => {
1826
+ if (y.attrs.xmlns === s) {
1827
+ if (y.name === "challenge") {
1828
+ c.challenge(e(y.text()));
1829
+ const k = c.response(m);
1830
1830
  f.send(
1831
1831
  t(
1832
1832
  "response",
1833
1833
  { xmlns: s, mechanism: c.name },
1834
- typeof y == "string" ? n(y) : ""
1834
+ typeof k == "string" ? n(k) : ""
1835
1835
  )
1836
1836
  );
1837
1837
  return;
1838
1838
  }
1839
- k.name === "failure" ? b(i.fromElement(k)) : k.name === "success" && g(), f.removeListener("nonza", C);
1839
+ y.name === "failure" ? b(i.fromElement(y)) : y.name === "success" && g(), f.removeListener("nonza", C);
1840
1840
  }
1841
1841
  };
1842
1842
  f.on("nonza", C), c.clientFirst && f.send(
@@ -1852,9 +1852,9 @@ function t0() {
1852
1852
  const l = new r();
1853
1853
  return f.use("mechanisms", s, async ({ stanza: c, entity: u }) => {
1854
1854
  const m = a(c);
1855
- let C = l._mechs.map(({ name: k }) => k).filter((k) => m.includes(k))[0];
1855
+ let C = l._mechs.map(({ name: y }) => y).filter((y) => m.includes(y))[0];
1856
1856
  typeof d == "function" ? await d(
1857
- (k) => o(l, u, C, k),
1857
+ (y) => o(l, u, C, y),
1858
1858
  C
1859
1859
  ) : (!d.username && !d.password && (C = "ANONYMOUS"), await o(l, u, C, d)), await u.restart();
1860
1860
  }), {
@@ -2049,8 +2049,8 @@ function p0() {
2049
2049
  if (ec) return $i;
2050
2050
  ec = 1;
2051
2051
  const { xml: n, jid: e, Client: i } = Bp(), t = Dp(), r = Np(), s = Qp(), a = jp(), o = Gp(), A = qp(), f = Hp(), d = Xp(), l = t0(), c = r0(), u = s0(), m = a0(), g = c0(), b = g0();
2052
- function C(k = {}) {
2053
- const { resource: y, credentials: w, username: v, password: p, ...x } = k, { domain: B, service: I } = x;
2052
+ function C(y = {}) {
2053
+ const { resource: k, credentials: w, username: v, password: p, ...x } = y, { domain: B, service: I } = x;
2054
2054
  !B && I && (x.domain = t(I));
2055
2055
  const E = new i(x), D = r({ entity: E }), M = s({ entity: E }), N = a({ entity: E }), L = o({ middleware: N }), j = A({ middleware: N, entity: E }), Y = f({ middleware: N, entity: E }), V = d({ entity: E }), ae = l({ streamFeatures: L }, w || { username: v, password: p }), z = m({
2056
2056
  streamFeatures: L,
@@ -2058,7 +2058,7 @@ function p0() {
2058
2058
  middleware: N
2059
2059
  }), W = c(
2060
2060
  { iqCaller: j, streamFeatures: L },
2061
- y
2061
+ k
2062
2062
  ), P = u({
2063
2063
  iqCaller: j,
2064
2064
  streamFeatures: L
@@ -2291,10 +2291,10 @@ const C0 = (n) => n.reduce((e, i) => (e[i.language] = i, e), {}), x0 = (n, e) =>
2291
2291
  }
2292
2292
  if (g.is("iq") && g.attrs.id === a && g.attrs.type === "result") {
2293
2293
  let C = [];
2294
- for (const k of u) {
2295
- const y = k?.getChild("reactions");
2296
- if (k.getChild("body")?.getText() || y) {
2297
- const { data: v, id: p, body: x, ...B } = await Jr(k);
2294
+ for (const y of u) {
2295
+ const k = y?.getChild("reactions");
2296
+ if (y.getChild("body")?.getText() || k) {
2297
+ const { data: v, id: p, body: x, ...B } = await Jr(y);
2298
2298
  if (!v) {
2299
2299
  console.log("No data in stanza");
2300
2300
  return;
@@ -2533,12 +2533,12 @@ function N0() {
2533
2533
  });
2534
2534
  var m = function(p, x) {
2535
2535
  return function(B) {
2536
- return new y(x, !0).update(B)[p]();
2536
+ return new k(x, !0).update(B)[p]();
2537
2537
  };
2538
2538
  }, g = function(p) {
2539
2539
  var x = m("hex", p);
2540
2540
  s && (x = b(x, p)), x.create = function() {
2541
- return new y(p);
2541
+ return new k(p);
2542
2542
  }, x.update = function(E) {
2543
2543
  return x.create().update(E);
2544
2544
  };
@@ -2564,7 +2564,7 @@ function N0() {
2564
2564
  return function(B, I) {
2565
2565
  return new w(B, x, !0).update(I)[p]();
2566
2566
  };
2567
- }, k = function(p) {
2567
+ }, y = function(p) {
2568
2568
  var x = C("hex", p);
2569
2569
  x.create = function(E) {
2570
2570
  return new w(E, p);
@@ -2577,10 +2577,10 @@ function N0() {
2577
2577
  }
2578
2578
  return x;
2579
2579
  };
2580
- function y(p, x) {
2580
+ function k(p, x) {
2581
2581
  x ? (u[0] = u[16] = u[1] = u[2] = u[3] = u[4] = u[5] = u[6] = u[7] = u[8] = u[9] = u[10] = u[11] = u[12] = u[13] = u[14] = u[15] = 0, this.blocks = u) : this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], p ? (this.h0 = 3238371032, this.h1 = 914150663, this.h2 = 812702999, this.h3 = 4144912697, this.h4 = 4290775857, this.h5 = 1750603025, this.h6 = 1694076839, this.h7 = 3204075428) : (this.h0 = 1779033703, this.h1 = 3144134277, this.h2 = 1013904242, this.h3 = 2773480762, this.h4 = 1359893119, this.h5 = 2600822924, this.h6 = 528734635, this.h7 = 1541459225), this.block = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = !1, this.first = !0, this.is224 = p;
2582
2582
  }
2583
- y.prototype.update = function(p) {
2583
+ k.prototype.update = function(p) {
2584
2584
  if (!this.finalized) {
2585
2585
  var x, B = typeof p;
2586
2586
  if (B !== "string") {
@@ -2606,24 +2606,24 @@ function N0() {
2606
2606
  }
2607
2607
  return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
2608
2608
  }
2609
- }, y.prototype.finalize = function() {
2609
+ }, k.prototype.finalize = function() {
2610
2610
  if (!this.finalized) {
2611
2611
  this.finalized = !0;
2612
2612
  var p = this.blocks, x = this.lastByteIndex;
2613
2613
  p[16] = this.block, p[x >>> 2] |= f[x & 3], this.block = p[16], x >= 56 && (this.hashed || this.hash(), p[0] = this.block, p[16] = p[1] = p[2] = p[3] = p[4] = p[5] = p[6] = p[7] = p[8] = p[9] = p[10] = p[11] = p[12] = p[13] = p[14] = p[15] = 0), p[14] = this.hBytes << 3 | this.bytes >>> 29, p[15] = this.bytes << 3, this.hash();
2614
2614
  }
2615
- }, y.prototype.hash = function() {
2615
+ }, k.prototype.hash = function() {
2616
2616
  var p = this.h0, x = this.h1, B = this.h2, I = this.h3, E = this.h4, D = this.h5, M = this.h6, N = this.h7, L = this.blocks, j, Y, V, ae, z, W, P, O, R, Q, J;
2617
2617
  for (j = 16; j < 64; ++j)
2618
2618
  z = L[j - 15], Y = (z >>> 7 | z << 25) ^ (z >>> 18 | z << 14) ^ z >>> 3, z = L[j - 2], V = (z >>> 17 | z << 15) ^ (z >>> 19 | z << 13) ^ z >>> 10, L[j] = L[j - 16] + Y + L[j - 7] + V << 0;
2619
2619
  for (J = x & B, j = 0; j < 64; j += 4)
2620
2620
  this.first ? (this.is224 ? (O = 300032, z = L[0] - 1413257819, N = z - 150054599 << 0, I = z + 24177077 << 0) : (O = 704751109, z = L[0] - 210244248, N = z - 1521486534 << 0, I = z + 143694565 << 0), this.first = !1) : (Y = (p >>> 2 | p << 30) ^ (p >>> 13 | p << 19) ^ (p >>> 22 | p << 10), V = (E >>> 6 | E << 26) ^ (E >>> 11 | E << 21) ^ (E >>> 25 | E << 7), O = p & x, ae = O ^ p & B ^ J, P = E & D ^ ~E & M, z = N + V + P + l[j] + L[j], W = Y + ae, N = I + z << 0, I = z + W << 0), Y = (I >>> 2 | I << 30) ^ (I >>> 13 | I << 19) ^ (I >>> 22 | I << 10), V = (N >>> 6 | N << 26) ^ (N >>> 11 | N << 21) ^ (N >>> 25 | N << 7), R = I & p, ae = R ^ I & x ^ O, P = N & E ^ ~N & D, z = M + V + P + l[j + 1] + L[j + 1], W = Y + ae, M = B + z << 0, B = z + W << 0, Y = (B >>> 2 | B << 30) ^ (B >>> 13 | B << 19) ^ (B >>> 22 | B << 10), V = (M >>> 6 | M << 26) ^ (M >>> 11 | M << 21) ^ (M >>> 25 | M << 7), Q = B & I, ae = Q ^ B & p ^ R, P = M & N ^ ~M & E, z = D + V + P + l[j + 2] + L[j + 2], W = Y + ae, D = x + z << 0, x = z + W << 0, Y = (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10), V = (D >>> 6 | D << 26) ^ (D >>> 11 | D << 21) ^ (D >>> 25 | D << 7), J = x & B, ae = J ^ x & I ^ Q, P = D & M ^ ~D & N, z = E + V + P + l[j + 3] + L[j + 3], W = Y + ae, E = p + z << 0, p = z + W << 0, this.chromeBugWorkAround = !0;
2621
2621
  this.h0 = this.h0 + p << 0, this.h1 = this.h1 + x << 0, this.h2 = this.h2 + B << 0, this.h3 = this.h3 + I << 0, this.h4 = this.h4 + E << 0, this.h5 = this.h5 + D << 0, this.h6 = this.h6 + M << 0, this.h7 = this.h7 + N << 0;
2622
- }, y.prototype.hex = function() {
2622
+ }, k.prototype.hex = function() {
2623
2623
  this.finalize();
2624
2624
  var p = this.h0, x = this.h1, B = this.h2, I = this.h3, E = this.h4, D = this.h5, M = this.h6, N = this.h7, L = A[p >>> 28 & 15] + A[p >>> 24 & 15] + A[p >>> 20 & 15] + A[p >>> 16 & 15] + A[p >>> 12 & 15] + A[p >>> 8 & 15] + A[p >>> 4 & 15] + A[p & 15] + A[x >>> 28 & 15] + A[x >>> 24 & 15] + A[x >>> 20 & 15] + A[x >>> 16 & 15] + A[x >>> 12 & 15] + A[x >>> 8 & 15] + A[x >>> 4 & 15] + A[x & 15] + A[B >>> 28 & 15] + A[B >>> 24 & 15] + A[B >>> 20 & 15] + A[B >>> 16 & 15] + A[B >>> 12 & 15] + A[B >>> 8 & 15] + A[B >>> 4 & 15] + A[B & 15] + A[I >>> 28 & 15] + A[I >>> 24 & 15] + A[I >>> 20 & 15] + A[I >>> 16 & 15] + A[I >>> 12 & 15] + A[I >>> 8 & 15] + A[I >>> 4 & 15] + A[I & 15] + A[E >>> 28 & 15] + A[E >>> 24 & 15] + A[E >>> 20 & 15] + A[E >>> 16 & 15] + A[E >>> 12 & 15] + A[E >>> 8 & 15] + A[E >>> 4 & 15] + A[E & 15] + A[D >>> 28 & 15] + A[D >>> 24 & 15] + A[D >>> 20 & 15] + A[D >>> 16 & 15] + A[D >>> 12 & 15] + A[D >>> 8 & 15] + A[D >>> 4 & 15] + A[D & 15] + A[M >>> 28 & 15] + A[M >>> 24 & 15] + A[M >>> 20 & 15] + A[M >>> 16 & 15] + A[M >>> 12 & 15] + A[M >>> 8 & 15] + A[M >>> 4 & 15] + A[M & 15];
2625
2625
  return this.is224 || (L += A[N >>> 28 & 15] + A[N >>> 24 & 15] + A[N >>> 20 & 15] + A[N >>> 16 & 15] + A[N >>> 12 & 15] + A[N >>> 8 & 15] + A[N >>> 4 & 15] + A[N & 15]), L;
2626
- }, y.prototype.toString = y.prototype.hex, y.prototype.digest = function() {
2626
+ }, k.prototype.toString = k.prototype.hex, k.prototype.digest = function() {
2627
2627
  this.finalize();
2628
2628
  var p = this.h0, x = this.h1, B = this.h2, I = this.h3, E = this.h4, D = this.h5, M = this.h6, N = this.h7, L = [
2629
2629
  p >>> 24 & 255,
@@ -2656,7 +2656,7 @@ function N0() {
2656
2656
  M & 255
2657
2657
  ];
2658
2658
  return this.is224 || L.push(N >>> 24 & 255, N >>> 16 & 255, N >>> 8 & 255, N & 255), L;
2659
- }, y.prototype.array = y.prototype.digest, y.prototype.arrayBuffer = function() {
2659
+ }, k.prototype.array = k.prototype.digest, k.prototype.arrayBuffer = function() {
2660
2660
  this.finalize();
2661
2661
  var p = new ArrayBuffer(this.is224 ? 28 : 32), x = new DataView(p);
2662
2662
  return x.setUint32(0, this.h0), x.setUint32(4, this.h1), x.setUint32(8, this.h2), x.setUint32(12, this.h3), x.setUint32(16, this.h4), x.setUint32(20, this.h5), x.setUint32(24, this.h6), this.is224 || x.setUint32(28, this.h7), p;
@@ -2677,23 +2677,23 @@ function N0() {
2677
2677
  throw new Error(e);
2678
2678
  } else
2679
2679
  throw new Error(e);
2680
- p.length > 64 && (p = new y(x, !0).update(p).array());
2680
+ p.length > 64 && (p = new k(x, !0).update(p).array());
2681
2681
  var j = [], Y = [];
2682
2682
  for (I = 0; I < 64; ++I) {
2683
2683
  var V = p[I] || 0;
2684
2684
  j[I] = 92 ^ V, Y[I] = 54 ^ V;
2685
2685
  }
2686
- y.call(this, x, B), this.update(Y), this.oKeyPad = j, this.inner = !0, this.sharedMemory = B;
2686
+ k.call(this, x, B), this.update(Y), this.oKeyPad = j, this.inner = !0, this.sharedMemory = B;
2687
2687
  }
2688
- w.prototype = new y(), w.prototype.finalize = function() {
2689
- if (y.prototype.finalize.call(this), this.inner) {
2688
+ w.prototype = new k(), w.prototype.finalize = function() {
2689
+ if (k.prototype.finalize.call(this), this.inner) {
2690
2690
  this.inner = !1;
2691
2691
  var p = this.array();
2692
- y.call(this, this.is224, this.sharedMemory), this.update(this.oKeyPad), this.update(p), y.prototype.finalize.call(this);
2692
+ k.call(this, this.is224, this.sharedMemory), this.update(this.oKeyPad), this.update(p), k.prototype.finalize.call(this);
2693
2693
  }
2694
2694
  };
2695
2695
  var v = g();
2696
- v.sha256 = v, v.sha224 = g(!0), v.sha256.hmac = k(), v.sha224.hmac = k(!0), a ? n.exports = v : (t.sha256 = v.sha256, t.sha224 = v.sha224);
2696
+ v.sha256 = v, v.sha224 = g(!0), v.sha256.hmac = y(), v.sha224.hmac = y(!0), a ? n.exports = v : (t.sha256 = v.sha256, t.sha224 = v.sha224);
2697
2697
  })();
2698
2698
  }(Ka)), Ka.exports;
2699
2699
  }
@@ -3212,8 +3212,8 @@ class _0 extends w1.EventEmitter {
3212
3212
  break;
3213
3213
  case $a:
3214
3214
  if (b === 62) {
3215
- const C = u.charCodeAt(m - 1), k = u.charCodeAt(m - 2);
3216
- (C === 45 && k === 45 || C === 93 && k === 93) && (e = zn);
3215
+ const C = u.charCodeAt(m - 1), y = u.charCodeAt(m - 2);
3216
+ (C === 45 && y === 45 || C === 93 && y === 93) && (e = zn);
3217
3217
  }
3218
3218
  break;
3219
3219
  case ac:
@@ -3362,12 +3362,12 @@ function $A(n, e, i) {
3362
3362
  throw new Error(process.env.NODE_ENV === "production" ? Ne(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
3363
3363
  let C = !0;
3364
3364
  f();
3365
- const k = o++;
3366
- return a.set(k, b), function() {
3365
+ const y = o++;
3366
+ return a.set(y, b), function() {
3367
3367
  if (C) {
3368
3368
  if (A)
3369
3369
  throw new Error(process.env.NODE_ENV === "production" ? Ne(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
3370
- C = !1, f(), a.delete(k), s = null;
3370
+ C = !1, f(), a.delete(y), s = null;
3371
3371
  }
3372
3372
  };
3373
3373
  }
@@ -3385,8 +3385,8 @@ function $A(n, e, i) {
3385
3385
  } finally {
3386
3386
  A = !1;
3387
3387
  }
3388
- return (s = a).forEach((k) => {
3389
- k();
3388
+ return (s = a).forEach((y) => {
3389
+ y();
3390
3390
  }), b;
3391
3391
  }
3392
3392
  function u(b) {
@@ -3410,12 +3410,12 @@ function $A(n, e, i) {
3410
3410
  subscribe(C) {
3411
3411
  if (typeof C != "object" || C === null)
3412
3412
  throw new Error(process.env.NODE_ENV === "production" ? Ne(11) : `Expected the observer to be an object. Instead, received: '${Tn(C)}'`);
3413
- function k() {
3413
+ function y() {
3414
3414
  const w = C;
3415
3415
  w.next && w.next(d());
3416
3416
  }
3417
- return k(), {
3418
- unsubscribe: b(k)
3417
+ return y(), {
3418
+ unsubscribe: b(y)
3419
3419
  };
3420
3420
  },
3421
3421
  [lc]() {
@@ -4223,9 +4223,9 @@ function bv(n = {}) {
4223
4223
  if (b) {
4224
4224
  const {
4225
4225
  keyPath: C,
4226
- value: k
4226
+ value: y
4227
4227
  } = b;
4228
- console.error(`A non-serializable value was detected in an action, in the path: \`${C}\`. Value:`, k, `
4228
+ console.error(`A non-serializable value was detected in an action, in the path: \`${C}\`. Value:`, y, `
4229
4229
  Take a look at the logic that dispatched this action: `, u, `
4230
4230
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`, `
4231
4231
  (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
@@ -4234,10 +4234,10 @@ Take a look at the logic that dispatched this action: `, u, `
4234
4234
  const b = l.getState(), C = sA(b, "", e, i, s, d);
4235
4235
  if (C) {
4236
4236
  const {
4237
- keyPath: k,
4238
- value: y
4237
+ keyPath: y,
4238
+ value: k
4239
4239
  } = C;
4240
- console.error(`A non-serializable value was detected in the state, in the path: \`${k}\`. Value:`, y, `
4240
+ console.error(`A non-serializable value was detected in the state, in the path: \`${y}\`. Value:`, k, `
4241
4241
  Take a look at the reducer(s) handling this action type: ${u.type}.
4242
4242
  (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
4243
4243
  }
@@ -4512,14 +4512,14 @@ var Nv = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Sv
4512
4512
  return (d, l, c) => {
4513
4513
  const u = t?.idGenerator ? t.idGenerator(A) : Sv(), m = new AbortController();
4514
4514
  let g, b;
4515
- function C(y) {
4516
- b = y, m.abort();
4515
+ function C(k) {
4516
+ b = k, m.abort();
4517
4517
  }
4518
4518
  f && (f.aborted ? C(kc) : f.addEventListener("abort", () => C(kc), {
4519
4519
  once: !0
4520
4520
  }));
4521
- const k = async function() {
4522
- let y;
4521
+ const y = async function() {
4522
+ let k;
4523
4523
  try {
4524
4524
  let v = t?.condition?.(A, {
4525
4525
  getState: l,
@@ -4544,7 +4544,7 @@ var Nv = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Sv
4544
4544
  }, {
4545
4545
  getState: l,
4546
4546
  extra: c
4547
- }))), y = await Promise.race([p, Promise.resolve(i(A, {
4547
+ }))), k = await Promise.race([p, Promise.resolve(i(A, {
4548
4548
  dispatch: d,
4549
4549
  getState: l,
4550
4550
  extra: c,
@@ -4559,18 +4559,18 @@ var Nv = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Sv
4559
4559
  return x instanceof yc ? r(x.payload, u, A, x.meta) : r(x, u, A);
4560
4560
  })]);
4561
4561
  } catch (v) {
4562
- y = v instanceof so ? a(null, u, A, v.payload, v.meta) : a(v, u, A);
4562
+ k = v instanceof so ? a(null, u, A, v.payload, v.meta) : a(v, u, A);
4563
4563
  } finally {
4564
4564
  g && m.signal.removeEventListener("abort", g);
4565
4565
  }
4566
- return t && !t.dispatchConditionRejection && a.match(y) && y.meta.condition || d(y), y;
4566
+ return t && !t.dispatchConditionRejection && a.match(k) && k.meta.condition || d(k), k;
4567
4567
  }();
4568
- return Object.assign(k, {
4568
+ return Object.assign(y, {
4569
4569
  abort: C,
4570
4570
  requestId: u,
4571
4571
  arg: A,
4572
4572
  unwrap() {
4573
- return k.then(Pv);
4573
+ return y.then(Pv);
4574
4574
  }
4575
4575
  });
4576
4576
  };
@@ -4617,31 +4617,31 @@ function Fv({
4617
4617
  actionCreators: {},
4618
4618
  sliceMatchers: []
4619
4619
  }, f = {
4620
- addCase(y, w) {
4621
- const v = typeof y == "string" ? y : y.type;
4620
+ addCase(k, w) {
4621
+ const v = typeof k == "string" ? k : k.type;
4622
4622
  if (!v)
4623
4623
  throw new Error(process.env.NODE_ENV === "production" ? pe(12) : "`context.addCase` cannot be called with an empty action type");
4624
4624
  if (v in A.sliceCaseReducersByType)
4625
4625
  throw new Error(process.env.NODE_ENV === "production" ? pe(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + v);
4626
4626
  return A.sliceCaseReducersByType[v] = w, f;
4627
4627
  },
4628
- addMatcher(y, w) {
4628
+ addMatcher(k, w) {
4629
4629
  return A.sliceMatchers.push({
4630
- matcher: y,
4630
+ matcher: k,
4631
4631
  reducer: w
4632
4632
  }), f;
4633
4633
  },
4634
- exposeAction(y, w) {
4635
- return A.actionCreators[y] = w, f;
4634
+ exposeAction(k, w) {
4635
+ return A.actionCreators[k] = w, f;
4636
4636
  },
4637
- exposeCaseReducer(y, w) {
4638
- return A.sliceCaseReducersByName[y] = w, f;
4637
+ exposeCaseReducer(k, w) {
4638
+ return A.sliceCaseReducersByName[k] = w, f;
4639
4639
  }
4640
4640
  };
4641
- o.forEach((y) => {
4642
- const w = a[y], v = {
4643
- reducerName: y,
4644
- type: Lv(r, y),
4641
+ o.forEach((k) => {
4642
+ const w = a[k], v = {
4643
+ reducerName: k,
4644
+ type: Lv(r, k),
4645
4645
  createNotation: typeof t.reducers == "function"
4646
4646
  };
4647
4647
  Yv(w) ? qv(v, w, f, e) : Gv(v, w, f);
@@ -4649,8 +4649,8 @@ function Fv({
4649
4649
  function d() {
4650
4650
  if (process.env.NODE_ENV !== "production" && typeof t.extraReducers == "object")
4651
4651
  throw new Error(process.env.NODE_ENV === "production" ? pe(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
4652
- const [y = {}, w = [], v = void 0] = typeof t.extraReducers == "function" ? W1(t.extraReducers) : [t.extraReducers], p = {
4653
- ...y,
4652
+ const [k = {}, w = [], v = void 0] = typeof t.extraReducers == "function" ? W1(t.extraReducers) : [t.extraReducers], p = {
4653
+ ...k,
4654
4654
  ...A.sliceCaseReducersByType
4655
4655
  };
4656
4656
  return Iv(t.initialState, (x) => {
@@ -4663,17 +4663,17 @@ function Fv({
4663
4663
  v && x.addDefaultCase(v);
4664
4664
  });
4665
4665
  }
4666
- const l = (y) => y, c = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new WeakMap();
4666
+ const l = (k) => k, c = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new WeakMap();
4667
4667
  let m;
4668
- function g(y, w) {
4669
- return m || (m = d()), m(y, w);
4668
+ function g(k, w) {
4669
+ return m || (m = d()), m(k, w);
4670
4670
  }
4671
4671
  function b() {
4672
4672
  return m || (m = d()), m.getInitialState();
4673
4673
  }
4674
- function C(y, w = !1) {
4674
+ function C(k, w = !1) {
4675
4675
  function v(x) {
4676
- let B = x[y];
4676
+ let B = x[k];
4677
4677
  if (typeof B > "u") {
4678
4678
  if (w)
4679
4679
  B = Jt(u, v, b);
@@ -4692,7 +4692,7 @@ function Fv({
4692
4692
  });
4693
4693
  }
4694
4694
  return {
4695
- reducerPath: y,
4695
+ reducerPath: k,
4696
4696
  getSelectors: p,
4697
4697
  get selectors() {
4698
4698
  return p(v);
@@ -4700,28 +4700,28 @@ function Fv({
4700
4700
  selectSlice: v
4701
4701
  };
4702
4702
  }
4703
- const k = {
4703
+ const y = {
4704
4704
  name: r,
4705
4705
  reducer: g,
4706
4706
  actions: A.actionCreators,
4707
4707
  caseReducers: A.sliceCaseReducersByName,
4708
4708
  getInitialState: b,
4709
4709
  ...C(s),
4710
- injectInto(y, {
4710
+ injectInto(k, {
4711
4711
  reducerPath: w,
4712
4712
  ...v
4713
4713
  } = {}) {
4714
4714
  const p = w ?? s;
4715
- return y.inject({
4715
+ return k.inject({
4716
4716
  reducerPath: p,
4717
4717
  reducer: g
4718
4718
  }, v), {
4719
- ...k,
4719
+ ...y,
4720
4720
  ...C(p, !0)
4721
4721
  };
4722
4722
  }
4723
4723
  };
4724
- return k;
4724
+ return y;
4725
4725
  };
4726
4726
  }
4727
4727
  function jv(n, e, i, t) {
@@ -5458,22 +5458,22 @@ function y2(n) {
5458
5458
  function b() {
5459
5459
  Object.keys(d).forEach(function(w) {
5460
5460
  f[w] === void 0 && delete d[w];
5461
- }), u = a.setItem(s, o(d)).catch(k);
5461
+ }), u = a.setItem(s, o(d)).catch(y);
5462
5462
  }
5463
5463
  function C(w) {
5464
5464
  return !(i && i.indexOf(w) === -1 && w !== "_persist" || e && e.indexOf(w) !== -1);
5465
5465
  }
5466
- function k(w) {
5466
+ function y(w) {
5467
5467
  A && A(w), w && process.env.NODE_ENV !== "production" && console.error("Error storing data", w);
5468
5468
  }
5469
- var y = function() {
5469
+ var k = function() {
5470
5470
  for (; l.length !== 0; )
5471
5471
  g();
5472
5472
  return u || Promise.resolve();
5473
5473
  };
5474
5474
  return {
5475
5475
  update: m,
5476
- flush: y
5476
+ flush: k
5477
5477
  };
5478
5478
  }
5479
5479
  function k2(n) {
@@ -5610,7 +5610,7 @@ function yr(n, e) {
5610
5610
  // @NOTE if key does not match, will continue to default else below
5611
5611
  });
5612
5612
  if (l.key === n.key) {
5613
- var k = e(g, l), y = l.payload, w = t !== !1 && y !== void 0 ? t(y, d, k, n) : k, v = pn({}, w, {
5613
+ var y = e(g, l), k = l.payload, w = t !== !1 && k !== void 0 ? t(k, d, y, n) : y, v = pn({}, w, {
5614
5614
  _persist: pn({}, u, {
5615
5615
  rehydrated: !0
5616
5616
  })
@@ -5823,11 +5823,11 @@ function Hn() {
5823
5823
  }
5824
5824
  throw new Error("Native crypto module could not be used to get secure random number.");
5825
5825
  }, o = Object.create || /* @__PURE__ */ function() {
5826
- function k() {
5826
+ function y() {
5827
5827
  }
5828
- return function(y) {
5828
+ return function(k) {
5829
5829
  var w;
5830
- return k.prototype = y, w = new k(), k.prototype = null, w;
5830
+ return y.prototype = k, w = new y(), y.prototype = null, w;
5831
5831
  };
5832
5832
  }(), A = {}, f = A.lib = {}, d = f.Base = /* @__PURE__ */ function() {
5833
5833
  return {
@@ -5849,11 +5849,11 @@ function Hn() {
5849
5849
  * }
5850
5850
  * });
5851
5851
  */
5852
- extend: function(k) {
5853
- var y = o(this);
5854
- return k && y.mixIn(k), (!y.hasOwnProperty("init") || this.init === y.init) && (y.init = function() {
5855
- y.$super.init.apply(this, arguments);
5856
- }), y.init.prototype = y, y.$super = this, y;
5852
+ extend: function(y) {
5853
+ var k = o(this);
5854
+ return y && k.mixIn(y), (!k.hasOwnProperty("init") || this.init === k.init) && (k.init = function() {
5855
+ k.$super.init.apply(this, arguments);
5856
+ }), k.init.prototype = k, k.$super = this, k;
5857
5857
  },
5858
5858
  /**
5859
5859
  * Extends this object and runs the init method.
@@ -5868,8 +5868,8 @@ function Hn() {
5868
5868
  * var instance = MyType.create();
5869
5869
  */
5870
5870
  create: function() {
5871
- var k = this.extend();
5872
- return k.init.apply(k, arguments), k;
5871
+ var y = this.extend();
5872
+ return y.init.apply(y, arguments), y;
5873
5873
  },
5874
5874
  /**
5875
5875
  * Initializes a newly created object.
@@ -5896,10 +5896,10 @@ function Hn() {
5896
5896
  * field: 'value'
5897
5897
  * });
5898
5898
  */
5899
- mixIn: function(k) {
5900
- for (var y in k)
5901
- k.hasOwnProperty(y) && (this[y] = k[y]);
5902
- k.hasOwnProperty("toString") && (this.toString = k.toString);
5899
+ mixIn: function(y) {
5900
+ for (var k in y)
5901
+ y.hasOwnProperty(k) && (this[k] = y[k]);
5902
+ y.hasOwnProperty("toString") && (this.toString = y.toString);
5903
5903
  },
5904
5904
  /**
5905
5905
  * Creates a copy of this object.
@@ -5927,8 +5927,8 @@ function Hn() {
5927
5927
  * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
5928
5928
  * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
5929
5929
  */
5930
- init: function(k, y) {
5931
- k = this.words = k || [], y != r ? this.sigBytes = y : this.sigBytes = k.length * 4;
5930
+ init: function(y, k) {
5931
+ y = this.words = y || [], k != r ? this.sigBytes = k : this.sigBytes = y.length * 4;
5932
5932
  },
5933
5933
  /**
5934
5934
  * Converts this word array to a string.
@@ -5943,8 +5943,8 @@ function Hn() {
5943
5943
  * var string = wordArray.toString();
5944
5944
  * var string = wordArray.toString(CryptoJS.enc.Utf8);
5945
5945
  */
5946
- toString: function(k) {
5947
- return (k || u).stringify(this);
5946
+ toString: function(y) {
5947
+ return (y || u).stringify(this);
5948
5948
  },
5949
5949
  /**
5950
5950
  * Concatenates a word array to this word array.
@@ -5957,16 +5957,16 @@ function Hn() {
5957
5957
  *
5958
5958
  * wordArray1.concat(wordArray2);
5959
5959
  */
5960
- concat: function(k) {
5961
- var y = this.words, w = k.words, v = this.sigBytes, p = k.sigBytes;
5960
+ concat: function(y) {
5961
+ var k = this.words, w = y.words, v = this.sigBytes, p = y.sigBytes;
5962
5962
  if (this.clamp(), v % 4)
5963
5963
  for (var x = 0; x < p; x++) {
5964
5964
  var B = w[x >>> 2] >>> 24 - x % 4 * 8 & 255;
5965
- y[v + x >>> 2] |= B << 24 - (v + x) % 4 * 8;
5965
+ k[v + x >>> 2] |= B << 24 - (v + x) % 4 * 8;
5966
5966
  }
5967
5967
  else
5968
5968
  for (var I = 0; I < p; I += 4)
5969
- y[v + I >>> 2] = w[I >>> 2];
5969
+ k[v + I >>> 2] = w[I >>> 2];
5970
5970
  return this.sigBytes += p, this;
5971
5971
  },
5972
5972
  /**
@@ -5977,8 +5977,8 @@ function Hn() {
5977
5977
  * wordArray.clamp();
5978
5978
  */
5979
5979
  clamp: function() {
5980
- var k = this.words, y = this.sigBytes;
5981
- k[y >>> 2] &= 4294967295 << 32 - y % 4 * 8, k.length = t.ceil(y / 4);
5980
+ var y = this.words, k = this.sigBytes;
5981
+ y[k >>> 2] &= 4294967295 << 32 - k % 4 * 8, y.length = t.ceil(k / 4);
5982
5982
  },
5983
5983
  /**
5984
5984
  * Creates a copy of this word array.
@@ -5990,8 +5990,8 @@ function Hn() {
5990
5990
  * var clone = wordArray.clone();
5991
5991
  */
5992
5992
  clone: function() {
5993
- var k = d.clone.call(this);
5994
- return k.words = this.words.slice(0), k;
5993
+ var y = d.clone.call(this);
5994
+ return y.words = this.words.slice(0), y;
5995
5995
  },
5996
5996
  /**
5997
5997
  * Creates a word array filled with random bytes.
@@ -6006,10 +6006,10 @@ function Hn() {
6006
6006
  *
6007
6007
  * var wordArray = CryptoJS.lib.WordArray.random(16);
6008
6008
  */
6009
- random: function(k) {
6010
- for (var y = [], w = 0; w < k; w += 4)
6011
- y.push(a());
6012
- return new l.init(y, k);
6009
+ random: function(y) {
6010
+ for (var k = [], w = 0; w < y; w += 4)
6011
+ k.push(a());
6012
+ return new l.init(k, y);
6013
6013
  }
6014
6014
  }), c = A.enc = {}, u = c.Hex = {
6015
6015
  /**
@@ -6025,9 +6025,9 @@ function Hn() {
6025
6025
  *
6026
6026
  * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
6027
6027
  */
6028
- stringify: function(k) {
6029
- for (var y = k.words, w = k.sigBytes, v = [], p = 0; p < w; p++) {
6030
- var x = y[p >>> 2] >>> 24 - p % 4 * 8 & 255;
6028
+ stringify: function(y) {
6029
+ for (var k = y.words, w = y.sigBytes, v = [], p = 0; p < w; p++) {
6030
+ var x = k[p >>> 2] >>> 24 - p % 4 * 8 & 255;
6031
6031
  v.push((x >>> 4).toString(16)), v.push((x & 15).toString(16));
6032
6032
  }
6033
6033
  return v.join("");
@@ -6045,10 +6045,10 @@ function Hn() {
6045
6045
  *
6046
6046
  * var wordArray = CryptoJS.enc.Hex.parse(hexString);
6047
6047
  */
6048
- parse: function(k) {
6049
- for (var y = k.length, w = [], v = 0; v < y; v += 2)
6050
- w[v >>> 3] |= parseInt(k.substr(v, 2), 16) << 24 - v % 8 * 4;
6051
- return new l.init(w, y / 2);
6048
+ parse: function(y) {
6049
+ for (var k = y.length, w = [], v = 0; v < k; v += 2)
6050
+ w[v >>> 3] |= parseInt(y.substr(v, 2), 16) << 24 - v % 8 * 4;
6051
+ return new l.init(w, k / 2);
6052
6052
  }
6053
6053
  }, m = c.Latin1 = {
6054
6054
  /**
@@ -6064,9 +6064,9 @@ function Hn() {
6064
6064
  *
6065
6065
  * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
6066
6066
  */
6067
- stringify: function(k) {
6068
- for (var y = k.words, w = k.sigBytes, v = [], p = 0; p < w; p++) {
6069
- var x = y[p >>> 2] >>> 24 - p % 4 * 8 & 255;
6067
+ stringify: function(y) {
6068
+ for (var k = y.words, w = y.sigBytes, v = [], p = 0; p < w; p++) {
6069
+ var x = k[p >>> 2] >>> 24 - p % 4 * 8 & 255;
6070
6070
  v.push(String.fromCharCode(x));
6071
6071
  }
6072
6072
  return v.join("");
@@ -6084,10 +6084,10 @@ function Hn() {
6084
6084
  *
6085
6085
  * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
6086
6086
  */
6087
- parse: function(k) {
6088
- for (var y = k.length, w = [], v = 0; v < y; v++)
6089
- w[v >>> 2] |= (k.charCodeAt(v) & 255) << 24 - v % 4 * 8;
6090
- return new l.init(w, y);
6087
+ parse: function(y) {
6088
+ for (var k = y.length, w = [], v = 0; v < k; v++)
6089
+ w[v >>> 2] |= (y.charCodeAt(v) & 255) << 24 - v % 4 * 8;
6090
+ return new l.init(w, k);
6091
6091
  }
6092
6092
  }, g = c.Utf8 = {
6093
6093
  /**
@@ -6103,9 +6103,9 @@ function Hn() {
6103
6103
  *
6104
6104
  * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
6105
6105
  */
6106
- stringify: function(k) {
6106
+ stringify: function(y) {
6107
6107
  try {
6108
- return decodeURIComponent(escape(m.stringify(k)));
6108
+ return decodeURIComponent(escape(m.stringify(y)));
6109
6109
  } catch {
6110
6110
  throw new Error("Malformed UTF-8 data");
6111
6111
  }
@@ -6123,8 +6123,8 @@ function Hn() {
6123
6123
  *
6124
6124
  * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
6125
6125
  */
6126
- parse: function(k) {
6127
- return m.parse(unescape(encodeURIComponent(k)));
6126
+ parse: function(y) {
6127
+ return m.parse(unescape(encodeURIComponent(y)));
6128
6128
  }
6129
6129
  }, b = f.BufferedBlockAlgorithm = d.extend({
6130
6130
  /**
@@ -6147,8 +6147,8 @@ function Hn() {
6147
6147
  * bufferedBlockAlgorithm._append('data');
6148
6148
  * bufferedBlockAlgorithm._append(wordArray);
6149
6149
  */
6150
- _append: function(k) {
6151
- typeof k == "string" && (k = g.parse(k)), this._data.concat(k), this._nDataBytes += k.sigBytes;
6150
+ _append: function(y) {
6151
+ typeof y == "string" && (y = g.parse(y)), this._data.concat(y), this._nDataBytes += y.sigBytes;
6152
6152
  },
6153
6153
  /**
6154
6154
  * Processes available data blocks.
@@ -6164,16 +6164,16 @@ function Hn() {
6164
6164
  * var processedData = bufferedBlockAlgorithm._process();
6165
6165
  * var processedData = bufferedBlockAlgorithm._process(!!'flush');
6166
6166
  */
6167
- _process: function(k) {
6168
- var y, w = this._data, v = w.words, p = w.sigBytes, x = this.blockSize, B = x * 4, I = p / B;
6169
- k ? I = t.ceil(I) : I = t.max((I | 0) - this._minBufferSize, 0);
6167
+ _process: function(y) {
6168
+ var k, w = this._data, v = w.words, p = w.sigBytes, x = this.blockSize, B = x * 4, I = p / B;
6169
+ y ? I = t.ceil(I) : I = t.max((I | 0) - this._minBufferSize, 0);
6170
6170
  var E = I * x, D = t.min(E * 4, p);
6171
6171
  if (E) {
6172
6172
  for (var M = 0; M < E; M += x)
6173
6173
  this._doProcessBlock(v, M);
6174
- y = v.splice(0, E), w.sigBytes -= D;
6174
+ k = v.splice(0, E), w.sigBytes -= D;
6175
6175
  }
6176
- return new l.init(y, D);
6176
+ return new l.init(k, D);
6177
6177
  },
6178
6178
  /**
6179
6179
  * Creates a copy of this object.
@@ -6185,8 +6185,8 @@ function Hn() {
6185
6185
  * var clone = bufferedBlockAlgorithm.clone();
6186
6186
  */
6187
6187
  clone: function() {
6188
- var k = d.clone.call(this);
6189
- return k._data = this._data.clone(), k;
6188
+ var y = d.clone.call(this);
6189
+ return y._data = this._data.clone(), y;
6190
6190
  },
6191
6191
  _minBufferSize: 0
6192
6192
  });
@@ -6204,8 +6204,8 @@ function Hn() {
6204
6204
  *
6205
6205
  * var hasher = CryptoJS.algo.SHA256.create();
6206
6206
  */
6207
- init: function(k) {
6208
- this.cfg = this.cfg.extend(k), this.reset();
6207
+ init: function(y) {
6208
+ this.cfg = this.cfg.extend(y), this.reset();
6209
6209
  },
6210
6210
  /**
6211
6211
  * Resets this hasher to its initial state.
@@ -6229,8 +6229,8 @@ function Hn() {
6229
6229
  * hasher.update('message');
6230
6230
  * hasher.update(wordArray);
6231
6231
  */
6232
- update: function(k) {
6233
- return this._append(k), this._process(), this;
6232
+ update: function(y) {
6233
+ return this._append(y), this._process(), this;
6234
6234
  },
6235
6235
  /**
6236
6236
  * Finalizes the hash computation.
@@ -6246,10 +6246,10 @@ function Hn() {
6246
6246
  * var hash = hasher.finalize('message');
6247
6247
  * var hash = hasher.finalize(wordArray);
6248
6248
  */
6249
- finalize: function(k) {
6250
- k && this._append(k);
6251
- var y = this._doFinalize();
6252
- return y;
6249
+ finalize: function(y) {
6250
+ y && this._append(y);
6251
+ var k = this._doFinalize();
6252
+ return k;
6253
6253
  },
6254
6254
  blockSize: 16,
6255
6255
  /**
@@ -6265,9 +6265,9 @@ function Hn() {
6265
6265
  *
6266
6266
  * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
6267
6267
  */
6268
- _createHelper: function(k) {
6269
- return function(y, w) {
6270
- return new k.init(w).finalize(y);
6268
+ _createHelper: function(y) {
6269
+ return function(k, w) {
6270
+ return new y.init(w).finalize(k);
6271
6271
  };
6272
6272
  },
6273
6273
  /**
@@ -6283,9 +6283,9 @@ function Hn() {
6283
6283
  *
6284
6284
  * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
6285
6285
  */
6286
- _createHmacHelper: function(k) {
6287
- return function(y, w) {
6288
- return new C.HMAC.init(k, w).finalize(y);
6286
+ _createHmacHelper: function(y) {
6287
+ return function(k, w) {
6288
+ return new C.HMAC.init(y, w).finalize(k);
6289
6289
  };
6290
6290
  }
6291
6291
  });
@@ -6322,12 +6322,12 @@ function Y2() {
6322
6322
  var f = A.words, d = A.sigBytes, l = this._map;
6323
6323
  A.clamp();
6324
6324
  for (var c = [], u = 0; u < d; u += 3)
6325
- for (var m = f[u >>> 2] >>> 24 - u % 4 * 8 & 255, g = f[u + 1 >>> 2] >>> 24 - (u + 1) % 4 * 8 & 255, b = f[u + 2 >>> 2] >>> 24 - (u + 2) % 4 * 8 & 255, C = m << 16 | g << 8 | b, k = 0; k < 4 && u + k * 0.75 < d; k++)
6326
- c.push(l.charAt(C >>> 6 * (3 - k) & 63));
6327
- var y = l.charAt(64);
6328
- if (y)
6325
+ for (var m = f[u >>> 2] >>> 24 - u % 4 * 8 & 255, g = f[u + 1 >>> 2] >>> 24 - (u + 1) % 4 * 8 & 255, b = f[u + 2 >>> 2] >>> 24 - (u + 2) % 4 * 8 & 255, C = m << 16 | g << 8 | b, y = 0; y < 4 && u + y * 0.75 < d; y++)
6326
+ c.push(l.charAt(C >>> 6 * (3 - y) & 63));
6327
+ var k = l.charAt(64);
6328
+ if (k)
6329
6329
  for (; c.length % 4; )
6330
- c.push(y);
6330
+ c.push(k);
6331
6331
  return c.join("");
6332
6332
  },
6333
6333
  /**
@@ -6394,17 +6394,17 @@ function q2() {
6394
6394
  },
6395
6395
  _doProcessBlock: function(g, b) {
6396
6396
  for (var C = 0; C < 16; C++) {
6397
- var k = b + C, y = g[k];
6398
- g[k] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360;
6397
+ var y = b + C, k = g[y];
6398
+ g[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
6399
6399
  }
6400
6400
  var w = this._hash.words, v = g[b + 0], p = g[b + 1], x = g[b + 2], B = g[b + 3], I = g[b + 4], E = g[b + 5], D = g[b + 6], M = g[b + 7], N = g[b + 8], L = g[b + 9], j = g[b + 10], Y = g[b + 11], V = g[b + 12], ae = g[b + 13], z = g[b + 14], W = g[b + 15], P = w[0], O = w[1], R = w[2], Q = w[3];
6401
6401
  P = l(P, O, R, Q, v, 7, f[0]), Q = l(Q, P, O, R, p, 12, f[1]), R = l(R, Q, P, O, x, 17, f[2]), O = l(O, R, Q, P, B, 22, f[3]), P = l(P, O, R, Q, I, 7, f[4]), Q = l(Q, P, O, R, E, 12, f[5]), R = l(R, Q, P, O, D, 17, f[6]), O = l(O, R, Q, P, M, 22, f[7]), P = l(P, O, R, Q, N, 7, f[8]), Q = l(Q, P, O, R, L, 12, f[9]), R = l(R, Q, P, O, j, 17, f[10]), O = l(O, R, Q, P, Y, 22, f[11]), P = l(P, O, R, Q, V, 7, f[12]), Q = l(Q, P, O, R, ae, 12, f[13]), R = l(R, Q, P, O, z, 17, f[14]), O = l(O, R, Q, P, W, 22, f[15]), P = c(P, O, R, Q, p, 5, f[16]), Q = c(Q, P, O, R, D, 9, f[17]), R = c(R, Q, P, O, Y, 14, f[18]), O = c(O, R, Q, P, v, 20, f[19]), P = c(P, O, R, Q, E, 5, f[20]), Q = c(Q, P, O, R, j, 9, f[21]), R = c(R, Q, P, O, W, 14, f[22]), O = c(O, R, Q, P, I, 20, f[23]), P = c(P, O, R, Q, L, 5, f[24]), Q = c(Q, P, O, R, z, 9, f[25]), R = c(R, Q, P, O, B, 14, f[26]), O = c(O, R, Q, P, N, 20, f[27]), P = c(P, O, R, Q, ae, 5, f[28]), Q = c(Q, P, O, R, x, 9, f[29]), R = c(R, Q, P, O, M, 14, f[30]), O = c(O, R, Q, P, V, 20, f[31]), P = u(P, O, R, Q, E, 4, f[32]), Q = u(Q, P, O, R, N, 11, f[33]), R = u(R, Q, P, O, Y, 16, f[34]), O = u(O, R, Q, P, z, 23, f[35]), P = u(P, O, R, Q, p, 4, f[36]), Q = u(Q, P, O, R, I, 11, f[37]), R = u(R, Q, P, O, M, 16, f[38]), O = u(O, R, Q, P, j, 23, f[39]), P = u(P, O, R, Q, ae, 4, f[40]), Q = u(Q, P, O, R, v, 11, f[41]), R = u(R, Q, P, O, B, 16, f[42]), O = u(O, R, Q, P, D, 23, f[43]), P = u(P, O, R, Q, L, 4, f[44]), Q = u(Q, P, O, R, V, 11, f[45]), R = u(R, Q, P, O, W, 16, f[46]), O = u(O, R, Q, P, x, 23, f[47]), P = m(P, O, R, Q, v, 6, f[48]), Q = m(Q, P, O, R, M, 10, f[49]), R = m(R, Q, P, O, z, 15, f[50]), O = m(O, R, Q, P, E, 21, f[51]), P = m(P, O, R, Q, V, 6, f[52]), Q = m(Q, P, O, R, B, 10, f[53]), R = m(R, Q, P, O, j, 15, f[54]), O = m(O, R, Q, P, p, 21, f[55]), P = m(P, O, R, Q, N, 6, f[56]), Q = m(Q, P, O, R, W, 10, f[57]), R = m(R, Q, P, O, D, 15, f[58]), O = m(O, R, Q, P, ae, 21, f[59]), P = m(P, O, R, Q, I, 6, f[60]), Q = m(Q, P, O, R, Y, 10, f[61]), R = m(R, Q, P, O, x, 15, f[62]), O = m(O, R, Q, P, L, 21, f[63]), w[0] = w[0] + P | 0, w[1] = w[1] + O | 0, w[2] = w[2] + R | 0, w[3] = w[3] + Q | 0;
6402
6402
  },
6403
6403
  _doFinalize: function() {
6404
- var g = this._data, b = g.words, C = this._nDataBytes * 8, k = g.sigBytes * 8;
6405
- b[k >>> 5] |= 128 << 24 - k % 32;
6406
- var y = t.floor(C / 4294967296), w = C;
6407
- b[(k + 64 >>> 9 << 4) + 15] = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, b[(k + 64 >>> 9 << 4) + 14] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, g.sigBytes = (b.length + 1) * 4, this._process();
6404
+ var g = this._data, b = g.words, C = this._nDataBytes * 8, y = g.sigBytes * 8;
6405
+ b[y >>> 5] |= 128 << 24 - y % 32;
6406
+ var k = t.floor(C / 4294967296), w = C;
6407
+ b[(y + 64 >>> 9 << 4) + 15] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, b[(y + 64 >>> 9 << 4) + 14] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, g.sigBytes = (b.length + 1) * 4, this._process();
6408
6408
  for (var v = this._hash, p = v.words, x = 0; x < 4; x++) {
6409
6409
  var B = p[x];
6410
6410
  p[x] = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360;
@@ -6416,20 +6416,20 @@ function q2() {
6416
6416
  return g._hash = this._hash.clone(), g;
6417
6417
  }
6418
6418
  });
6419
- function l(g, b, C, k, y, w, v) {
6420
- var p = g + (b & C | ~b & k) + y + v;
6419
+ function l(g, b, C, y, k, w, v) {
6420
+ var p = g + (b & C | ~b & y) + k + v;
6421
6421
  return (p << w | p >>> 32 - w) + b;
6422
6422
  }
6423
- function c(g, b, C, k, y, w, v) {
6424
- var p = g + (b & k | C & ~k) + y + v;
6423
+ function c(g, b, C, y, k, w, v) {
6424
+ var p = g + (b & y | C & ~y) + k + v;
6425
6425
  return (p << w | p >>> 32 - w) + b;
6426
6426
  }
6427
- function u(g, b, C, k, y, w, v) {
6428
- var p = g + (b ^ C ^ k) + y + v;
6427
+ function u(g, b, C, y, k, w, v) {
6428
+ var p = g + (b ^ C ^ y) + k + v;
6429
6429
  return (p << w | p >>> 32 - w) + b;
6430
6430
  }
6431
- function m(g, b, C, k, y, w, v) {
6432
- var p = g + (C ^ (b | ~k)) + y + v;
6431
+ function m(g, b, C, y, k, w, v) {
6432
+ var p = g + (C ^ (b | ~y)) + k + v;
6433
6433
  return (p << w | p >>> 32 - w) + b;
6434
6434
  }
6435
6435
  r.MD5 = o._createHelper(d), r.HmacMD5 = o._createHmacHelper(d);
@@ -6455,15 +6455,15 @@ function U2() {
6455
6455
  ]);
6456
6456
  },
6457
6457
  _doProcessBlock: function(d, l) {
6458
- for (var c = this._hash.words, u = c[0], m = c[1], g = c[2], b = c[3], C = c[4], k = 0; k < 80; k++) {
6459
- if (k < 16)
6460
- A[k] = d[l + k] | 0;
6458
+ for (var c = this._hash.words, u = c[0], m = c[1], g = c[2], b = c[3], C = c[4], y = 0; y < 80; y++) {
6459
+ if (y < 16)
6460
+ A[y] = d[l + y] | 0;
6461
6461
  else {
6462
- var y = A[k - 3] ^ A[k - 8] ^ A[k - 14] ^ A[k - 16];
6463
- A[k] = y << 1 | y >>> 31;
6462
+ var k = A[y - 3] ^ A[y - 8] ^ A[y - 14] ^ A[y - 16];
6463
+ A[y] = k << 1 | k >>> 31;
6464
6464
  }
6465
- var w = (u << 5 | u >>> 27) + C + A[k];
6466
- k < 20 ? w += (m & g | ~m & b) + 1518500249 : k < 40 ? w += (m ^ g ^ b) + 1859775393 : k < 60 ? w += (m & g | m & b | g & b) - 1894007588 : w += (m ^ g ^ b) - 899497514, C = b, b = g, g = m << 30 | m >>> 2, m = u, u = w;
6465
+ var w = (u << 5 | u >>> 27) + C + A[y];
6466
+ y < 20 ? w += (m & g | ~m & b) + 1518500249 : y < 40 ? w += (m ^ g ^ b) + 1859775393 : y < 60 ? w += (m & g | m & b | g & b) - 1894007588 : w += (m ^ g ^ b) - 899497514, C = b, b = g, g = m << 30 | m >>> 2, m = u, u = w;
6467
6467
  }
6468
6468
  c[0] = c[0] + u | 0, c[1] = c[1] + m | 0, c[2] = c[2] + g | 0, c[3] = c[3] + b | 0, c[4] = c[4] + C | 0;
6469
6469
  },
@@ -6606,9 +6606,9 @@ function rh() {
6606
6606
  * var key = kdf.compute(password, salt);
6607
6607
  */
6608
6608
  compute: function(d, l) {
6609
- for (var c, u = this.cfg, m = u.hasher.create(), g = a.create(), b = g.words, C = u.keySize, k = u.iterations; b.length < C; ) {
6609
+ for (var c, u = this.cfg, m = u.hasher.create(), g = a.create(), b = g.words, C = u.keySize, y = u.iterations; b.length < C; ) {
6610
6610
  c && m.update(c), c = m.update(d).finalize(l), m.reset();
6611
- for (var y = 1; y < k; y++)
6611
+ for (var k = 1; k < y; k++)
6612
6612
  c = m.finalize(c), m.reset();
6613
6613
  g.concat(c);
6614
6614
  }
@@ -6854,7 +6854,7 @@ function K2() {
6854
6854
  M[N + V] ^= j[V];
6855
6855
  }
6856
6856
  return E;
6857
- }(), C = r.pad = {}, k = C.Pkcs7 = {
6857
+ }(), C = r.pad = {}, y = C.Pkcs7 = {
6858
6858
  /**
6859
6859
  * Pads data using the algorithm defined in PKCS #5/7.
6860
6860
  *
@@ -6898,7 +6898,7 @@ function K2() {
6898
6898
  */
6899
6899
  cfg: u.cfg.extend({
6900
6900
  mode: b,
6901
- padding: k
6901
+ padding: y
6902
6902
  }),
6903
6903
  reset: function() {
6904
6904
  var E;
@@ -6915,7 +6915,7 @@ function K2() {
6915
6915
  },
6916
6916
  blockSize: 128 / 32
6917
6917
  });
6918
- var y = s.CipherParams = a.extend({
6918
+ var k = s.CipherParams = a.extend({
6919
6919
  /**
6920
6920
  * Initializes a newly created cipher params object.
6921
6921
  *
@@ -6989,7 +6989,7 @@ function K2() {
6989
6989
  */
6990
6990
  parse: function(E) {
6991
6991
  var D, M = d.parse(E), N = M.words;
6992
- return N[0] == 1398893684 && N[1] == 1701076831 && (D = o.create(N.slice(2, 4)), N.splice(0, 4), M.sigBytes -= 16), y.create({ ciphertext: M, salt: D });
6992
+ return N[0] == 1398893684 && N[1] == 1701076831 && (D = o.create(N.slice(2, 4)), N.splice(0, 4), M.sigBytes -= 16), k.create({ ciphertext: M, salt: D });
6993
6993
  }
6994
6994
  }, p = s.SerializableCipher = a.extend({
6995
6995
  /**
@@ -7021,7 +7021,7 @@ function K2() {
7021
7021
  encrypt: function(E, D, M, N) {
7022
7022
  N = this.cfg.extend(N);
7023
7023
  var L = E.createEncryptor(M, N), j = L.finalize(D), Y = L.cfg;
7024
- return y.create({
7024
+ return k.create({
7025
7025
  ciphertext: j,
7026
7026
  key: M,
7027
7027
  iv: Y.iv,
@@ -7096,7 +7096,7 @@ function K2() {
7096
7096
  else
7097
7097
  var j = c.create({ keySize: D + M }).compute(E, N);
7098
7098
  var Y = o.create(j.words.slice(D), M * 4);
7099
- return j.sigBytes = D * 4, y.create({ key: j, iv: Y, salt: N });
7099
+ return j.sigBytes = D * 4, k.create({ key: j, iv: Y, salt: N });
7100
7100
  }
7101
7101
  }, I = s.PasswordBasedCipher = p.extend({
7102
7102
  /**
@@ -7169,53 +7169,53 @@ function $2() {
7169
7169
  return function() {
7170
7170
  var t = i, r = t.lib, s = r.BlockCipher, a = t.algo, o = [], A = [], f = [], d = [], l = [], c = [], u = [], m = [], g = [], b = [];
7171
7171
  (function() {
7172
- for (var y = [], w = 0; w < 256; w++)
7173
- w < 128 ? y[w] = w << 1 : y[w] = w << 1 ^ 283;
7172
+ for (var k = [], w = 0; w < 256; w++)
7173
+ w < 128 ? k[w] = w << 1 : k[w] = w << 1 ^ 283;
7174
7174
  for (var v = 0, p = 0, w = 0; w < 256; w++) {
7175
7175
  var x = p ^ p << 1 ^ p << 2 ^ p << 3 ^ p << 4;
7176
7176
  x = x >>> 8 ^ x & 255 ^ 99, o[v] = x, A[x] = v;
7177
- var B = y[v], I = y[B], E = y[I], D = y[x] * 257 ^ x * 16843008;
7177
+ var B = k[v], I = k[B], E = k[I], D = k[x] * 257 ^ x * 16843008;
7178
7178
  f[v] = D << 24 | D >>> 8, d[v] = D << 16 | D >>> 16, l[v] = D << 8 | D >>> 24, c[v] = D;
7179
7179
  var D = E * 16843009 ^ I * 65537 ^ B * 257 ^ v * 16843008;
7180
- u[x] = D << 24 | D >>> 8, m[x] = D << 16 | D >>> 16, g[x] = D << 8 | D >>> 24, b[x] = D, v ? (v = B ^ y[y[y[E ^ B]]], p ^= y[y[p]]) : v = p = 1;
7180
+ u[x] = D << 24 | D >>> 8, m[x] = D << 16 | D >>> 16, g[x] = D << 8 | D >>> 24, b[x] = D, v ? (v = B ^ k[k[k[E ^ B]]], p ^= k[k[p]]) : v = p = 1;
7181
7181
  }
7182
7182
  })();
7183
- var C = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], k = a.AES = s.extend({
7183
+ var C = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], y = a.AES = s.extend({
7184
7184
  _doReset: function() {
7185
- var y;
7185
+ var k;
7186
7186
  if (!(this._nRounds && this._keyPriorReset === this._key)) {
7187
7187
  for (var w = this._keyPriorReset = this._key, v = w.words, p = w.sigBytes / 4, x = this._nRounds = p + 6, B = (x + 1) * 4, I = this._keySchedule = [], E = 0; E < B; E++)
7188
- E < p ? I[E] = v[E] : (y = I[E - 1], E % p ? p > 6 && E % p == 4 && (y = o[y >>> 24] << 24 | o[y >>> 16 & 255] << 16 | o[y >>> 8 & 255] << 8 | o[y & 255]) : (y = y << 8 | y >>> 24, y = o[y >>> 24] << 24 | o[y >>> 16 & 255] << 16 | o[y >>> 8 & 255] << 8 | o[y & 255], y ^= C[E / p | 0] << 24), I[E] = I[E - p] ^ y);
7188
+ E < p ? I[E] = v[E] : (k = I[E - 1], E % p ? p > 6 && E % p == 4 && (k = o[k >>> 24] << 24 | o[k >>> 16 & 255] << 16 | o[k >>> 8 & 255] << 8 | o[k & 255]) : (k = k << 8 | k >>> 24, k = o[k >>> 24] << 24 | o[k >>> 16 & 255] << 16 | o[k >>> 8 & 255] << 8 | o[k & 255], k ^= C[E / p | 0] << 24), I[E] = I[E - p] ^ k);
7189
7189
  for (var D = this._invKeySchedule = [], M = 0; M < B; M++) {
7190
7190
  var E = B - M;
7191
7191
  if (M % 4)
7192
- var y = I[E];
7192
+ var k = I[E];
7193
7193
  else
7194
- var y = I[E - 4];
7195
- M < 4 || E <= 4 ? D[M] = y : D[M] = u[o[y >>> 24]] ^ m[o[y >>> 16 & 255]] ^ g[o[y >>> 8 & 255]] ^ b[o[y & 255]];
7194
+ var k = I[E - 4];
7195
+ M < 4 || E <= 4 ? D[M] = k : D[M] = u[o[k >>> 24]] ^ m[o[k >>> 16 & 255]] ^ g[o[k >>> 8 & 255]] ^ b[o[k & 255]];
7196
7196
  }
7197
7197
  }
7198
7198
  },
7199
- encryptBlock: function(y, w) {
7200
- this._doCryptBlock(y, w, this._keySchedule, f, d, l, c, o);
7199
+ encryptBlock: function(k, w) {
7200
+ this._doCryptBlock(k, w, this._keySchedule, f, d, l, c, o);
7201
7201
  },
7202
- decryptBlock: function(y, w) {
7203
- var v = y[w + 1];
7204
- y[w + 1] = y[w + 3], y[w + 3] = v, this._doCryptBlock(y, w, this._invKeySchedule, u, m, g, b, A);
7205
- var v = y[w + 1];
7206
- y[w + 1] = y[w + 3], y[w + 3] = v;
7202
+ decryptBlock: function(k, w) {
7203
+ var v = k[w + 1];
7204
+ k[w + 1] = k[w + 3], k[w + 3] = v, this._doCryptBlock(k, w, this._invKeySchedule, u, m, g, b, A);
7205
+ var v = k[w + 1];
7206
+ k[w + 1] = k[w + 3], k[w + 3] = v;
7207
7207
  },
7208
- _doCryptBlock: function(y, w, v, p, x, B, I, E) {
7209
- for (var D = this._nRounds, M = y[w] ^ v[0], N = y[w + 1] ^ v[1], L = y[w + 2] ^ v[2], j = y[w + 3] ^ v[3], Y = 4, V = 1; V < D; V++) {
7208
+ _doCryptBlock: function(k, w, v, p, x, B, I, E) {
7209
+ for (var D = this._nRounds, M = k[w] ^ v[0], N = k[w + 1] ^ v[1], L = k[w + 2] ^ v[2], j = k[w + 3] ^ v[3], Y = 4, V = 1; V < D; V++) {
7210
7210
  var ae = p[M >>> 24] ^ x[N >>> 16 & 255] ^ B[L >>> 8 & 255] ^ I[j & 255] ^ v[Y++], z = p[N >>> 24] ^ x[L >>> 16 & 255] ^ B[j >>> 8 & 255] ^ I[M & 255] ^ v[Y++], W = p[L >>> 24] ^ x[j >>> 16 & 255] ^ B[M >>> 8 & 255] ^ I[N & 255] ^ v[Y++], P = p[j >>> 24] ^ x[M >>> 16 & 255] ^ B[N >>> 8 & 255] ^ I[L & 255] ^ v[Y++];
7211
7211
  M = ae, N = z, L = W, j = P;
7212
7212
  }
7213
7213
  var ae = (E[M >>> 24] << 24 | E[N >>> 16 & 255] << 16 | E[L >>> 8 & 255] << 8 | E[j & 255]) ^ v[Y++], z = (E[N >>> 24] << 24 | E[L >>> 16 & 255] << 16 | E[j >>> 8 & 255] << 8 | E[M & 255]) ^ v[Y++], W = (E[L >>> 24] << 24 | E[j >>> 16 & 255] << 16 | E[M >>> 8 & 255] << 8 | E[N & 255]) ^ v[Y++], P = (E[j >>> 24] << 24 | E[M >>> 16 & 255] << 16 | E[N >>> 8 & 255] << 8 | E[L & 255]) ^ v[Y++];
7214
- y[w] = ae, y[w + 1] = z, y[w + 2] = W, y[w + 3] = P;
7214
+ k[w] = ae, k[w + 1] = z, k[w + 2] = W, k[w + 3] = P;
7215
7215
  },
7216
7216
  keySize: 256 / 32
7217
7217
  });
7218
- t.AES = s._createHelper(k);
7218
+ t.AES = s._createHelper(y);
7219
7219
  }(), i.AES;
7220
7220
  });
7221
7221
  }(kr)), kr.exports;
@@ -7311,7 +7311,7 @@ const sb = /* @__PURE__ */ _i(rb), rt = (n) => new Error(`redux-persist-transfor
7311
7311
  }
7312
7312
  };
7313
7313
  return s[a] ? (s[a]?.lastMessageTimestamp <= nr(A) ? l() : s[a]?.lastMessageTimestamp || l(), t) : (console.warn(`Room ${a} not found in reactions middleware`), t);
7314
- }, Ab = "25.7.3", fb = th(
7314
+ }, Ab = "25.7.5", fb = th(
7315
7315
  (n) => {
7316
7316
  if (!n || Object.keys(n).length < 1)
7317
7317
  return n;
@@ -7727,11 +7727,11 @@ function js(n, e, i) {
7727
7727
  if (F.endsWith(g, "{}"))
7728
7728
  g = t ? g : g.slice(0, -2), m = JSON.stringify(m);
7729
7729
  else if (F.isArray(m) && rw(m) || (F.isFileList(m) || F.endsWith(g, "[]")) && (C = F.toArray(m)))
7730
- return g = gh(g), C.forEach(function(y, w) {
7731
- !(F.isUndefined(y) || y === null) && e.append(
7730
+ return g = gh(g), C.forEach(function(k, w) {
7731
+ !(F.isUndefined(k) || k === null) && e.append(
7732
7732
  // eslint-disable-next-line no-nested-ternary
7733
7733
  a === !0 ? Uc([g], w, s) : a === null ? g : g + "[]",
7734
- f(y)
7734
+ f(k)
7735
7735
  );
7736
7736
  }), !1;
7737
7737
  }
@@ -7746,14 +7746,14 @@ function js(n, e, i) {
7746
7746
  if (!F.isUndefined(m)) {
7747
7747
  if (l.indexOf(m) !== -1)
7748
7748
  throw Error("Circular reference detected in " + g.join("."));
7749
- l.push(m), F.forEach(m, function(C, k) {
7749
+ l.push(m), F.forEach(m, function(C, y) {
7750
7750
  (!(F.isUndefined(C) || C === null) && r.call(
7751
7751
  e,
7752
7752
  C,
7753
- F.isString(k) ? k.trim() : k,
7753
+ F.isString(y) ? y.trim() : y,
7754
7754
  g,
7755
7755
  c
7756
- )) === !0 && u(C, g ? g.concat(k) : [k]);
7756
+ )) === !0 && u(C, g ? g.concat(y) : [y]);
7757
7757
  }), l.pop();
7758
7758
  }
7759
7759
  }
@@ -8424,13 +8424,13 @@ const xh = (n) => {
8424
8424
  function C() {
8425
8425
  if (!b)
8426
8426
  return;
8427
- const y = Ge.from(
8427
+ const k = Ge.from(
8428
8428
  "getAllResponseHeaders" in b && b.getAllResponseHeaders()
8429
8429
  ), v = {
8430
8430
  data: !o || o === "text" || o === "json" ? b.responseText : b.response,
8431
8431
  status: b.status,
8432
8432
  statusText: b.statusText,
8433
- headers: y,
8433
+ headers: k,
8434
8434
  config: n,
8435
8435
  request: b
8436
8436
  };
@@ -8457,12 +8457,12 @@ const xh = (n) => {
8457
8457
  )), b = null;
8458
8458
  }, s === void 0 && a.setContentType(null), "setRequestHeader" in b && F.forEach(a.toJSON(), function(w, v) {
8459
8459
  b.setRequestHeader(v, w);
8460
- }), F.isUndefined(r.withCredentials) || (b.withCredentials = !!r.withCredentials), o && o !== "json" && (b.responseType = r.responseType), f && ([c, m] = is(f, !0), b.addEventListener("progress", c)), A && b.upload && ([l, u] = is(A), b.upload.addEventListener("progress", l), b.upload.addEventListener("loadend", u)), (r.cancelToken || r.signal) && (d = (y) => {
8461
- b && (t(!y || y.type ? new Hi(null, n, b) : y), b.abort(), b = null);
8460
+ }), F.isUndefined(r.withCredentials) || (b.withCredentials = !!r.withCredentials), o && o !== "json" && (b.responseType = r.responseType), f && ([c, m] = is(f, !0), b.addEventListener("progress", c)), A && b.upload && ([l, u] = is(A), b.upload.addEventListener("progress", l), b.upload.addEventListener("loadend", u)), (r.cancelToken || r.signal) && (d = (k) => {
8461
+ b && (t(!k || k.type ? new Hi(null, n, b) : k), b.abort(), b = null);
8462
8462
  }, r.cancelToken && r.cancelToken.subscribe(d), r.signal && (r.signal.aborted ? d() : r.signal.addEventListener("abort", d)));
8463
- const k = Ew(r.url);
8464
- if (k && Re.protocols.indexOf(k) === -1) {
8465
- t(new ne("Unsupported protocol " + k + ":", ne.ERR_BAD_REQUEST, n));
8463
+ const y = Ew(r.url);
8464
+ if (y && Re.protocols.indexOf(y) === -1) {
8465
+ t(new ne("Unsupported protocol " + y + ":", ne.ERR_BAD_REQUEST, n));
8466
8466
  return;
8467
8467
  }
8468
8468
  b.send(s || null);
@@ -8637,32 +8637,32 @@ const Ww = async (n) => {
8637
8637
  duplex: "half",
8638
8638
  credentials: C ? l : void 0
8639
8639
  });
8640
- let k = await fetch(m, c);
8641
- const y = dA && (f === "stream" || f === "response");
8642
- if (dA && (o || y && g)) {
8640
+ let y = await fetch(m, c);
8641
+ const k = dA && (f === "stream" || f === "response");
8642
+ if (dA && (o || k && g)) {
8643
8643
  const v = {};
8644
8644
  ["status", "statusText", "headers"].forEach((I) => {
8645
- v[I] = k[I];
8645
+ v[I] = y[I];
8646
8646
  });
8647
- const p = F.toFiniteNumber(k.headers.get("content-length")), [x, B] = o && Xc(
8647
+ const p = F.toFiniteNumber(y.headers.get("content-length")), [x, B] = o && Xc(
8648
8648
  p,
8649
8649
  is(Kc(o), !0)
8650
8650
  ) || [];
8651
- k = new Response(
8652
- $c(k.body, el, x, () => {
8651
+ y = new Response(
8652
+ $c(y.body, el, x, () => {
8653
8653
  B && B(), g && g();
8654
8654
  }),
8655
8655
  v
8656
8656
  );
8657
8657
  }
8658
8658
  f = f || "text";
8659
- let w = await ts[F.findKey(ts, f) || "text"](k, n);
8660
- return !y && g && g(), await new Promise((v, p) => {
8659
+ let w = await ts[F.findKey(ts, f) || "text"](y, n);
8660
+ return !k && g && g(), await new Promise((v, p) => {
8661
8661
  kh(v, p, {
8662
8662
  data: w,
8663
- headers: Ge.from(k.headers),
8664
- status: k.status,
8665
- statusText: k.statusText,
8663
+ headers: Ge.from(y.headers),
8664
+ status: y.status,
8665
+ statusText: y.statusText,
8666
8666
  config: n,
8667
8667
  request: m
8668
8668
  });
@@ -10311,61 +10311,56 @@ const rs = (n, e) => {
10311
10311
  children: n,
10312
10312
  config: e
10313
10313
  }) => {
10314
- const [i, t] = H(null), [r, s] = H(null), [a, o] = H(null), [A, f] = H(0), d = ce(null), l = async (u, m, g, b) => {
10314
+ const [i, t] = H(null), [r, s] = H(null), [a, o] = H(null), [A, f] = H(0), d = async (c, u, m, g) => {
10315
10315
  if (i)
10316
10316
  return console.log("Returning existing client."), t(i), i;
10317
- if (d.current)
10318
- return d.current;
10319
10317
  try {
10320
- const C = (async () => {
10321
- const y = new Ny(u, m, g);
10322
- return t(y), await new Promise((w, v) => {
10323
- const p = () => {
10324
- y.status === "online" ? w() : y.status === "error" ? v(new Error("Failed to connect.")) : setTimeout(p, 300);
10325
- };
10326
- p();
10327
- }), s(m), o(u), t(y), f(0), b && await Ph(y, b), y;
10328
- })();
10329
- d.current = C;
10330
- const k = await C;
10331
- return d.current = null, k;
10332
- } catch (C) {
10333
- throw console.error("Error initializing client:", C), t(null), d.current = null, C;
10334
- }
10335
- }, c = () => {
10336
- i && ((i.status === "error" || i.status === "offline") && A < 3 ? (console.log("Attempting to reconnect..."), i.reconnect(), f((u) => u + 1)) : A >= 3 && r && a && (console.log("Reinitializing XMPP client after failed reconnects..."), l(a, r).catch((u) => {
10337
- console.error("Reconnection failed:", u);
10338
- })));
10318
+ const b = new Ny(c, u, m);
10319
+ return t(b), await new Promise((C, y) => {
10320
+ const k = () => {
10321
+ b.status === "online" ? C() : b.status === "error" ? y(new Error("Failed to connect.")) : setTimeout(k, 500);
10322
+ };
10323
+ k();
10324
+ }), s(c), o(u), t(b), f(0), g && await Ph(i, g), b;
10325
+ } catch (b) {
10326
+ throw console.error("Error initializing client:", b), t(null), b;
10327
+ }
10328
+ }, l = () => {
10329
+ i && i.status !== "offline" && A < 3 ? (console.log("Attempting to reconnect..."), i.reconnect(), f((c) => c + 1)) : i?.status === "offline" ? console.log("Client is offline. Not attempting to reconnect.") : A >= 3 ? console.log(
10330
+ "Maximum reconnect attempts reached. Stopping further attempts."
10331
+ ) : r && a && A >= 3 && (console.log("No active client found. Reinitializing..."), d(r, a).catch((c) => {
10332
+ console.error("Reconnection failed:", c);
10333
+ }));
10339
10334
  };
10340
- return se(() => (i && (i.status === "offline" || i.status === "error") && A < 3 && c(), () => {
10341
- }), [i?.status, A]), se(() => {
10342
- const u = async () => {
10343
- l(
10335
+ return se(() => (i && i.status === "offline" && A < 3 && l(), () => {
10336
+ }), [i, A]), se(() => {
10337
+ const c = async () => {
10338
+ d(
10344
10339
  es(e?.userLogin?.user?.defaultWallet?.walletAddress),
10345
10340
  e?.userLogin?.user?.xmppPassword,
10346
10341
  e?.xmppSettings
10347
- ).then(async (m) => {
10342
+ ).then(async (u) => {
10348
10343
  await Sy(
10349
10344
  e?.userLogin?.user,
10350
10345
  e,
10351
- m
10346
+ u
10352
10347
  // store?.getState()?.rooms?.rooms
10353
10348
  );
10354
10349
  });
10355
10350
  };
10356
- return e?.initBeforeLoad && u(), () => {
10351
+ return e?.initBeforeLoad && c(), () => {
10357
10352
  };
10358
10353
  }, [e?.initBeforeLoad]), se(() => {
10359
- const u = () => {
10354
+ const c = () => {
10360
10355
  i && (console.log("XmppProvider: Disconnecting client due to logout event"), i.disconnect(), t(null));
10361
10356
  };
10362
- return window.addEventListener("ethora-xmpp-logout", u), () => {
10363
- window.removeEventListener("ethora-xmpp-logout", u);
10357
+ return window.addEventListener("ethora-xmpp-logout", c), () => {
10358
+ window.removeEventListener("ethora-xmpp-logout", c);
10364
10359
  };
10365
10360
  }, [i]), /* @__PURE__ */ h(
10366
10361
  Qh.Provider,
10367
10362
  {
10368
- value: { client: i, initializeClient: l, setClient: t },
10363
+ value: { client: i, initializeClient: d, setClient: t },
10369
10364
  "data-xmpp-provider": "true",
10370
10365
  children: n
10371
10366
  }
@@ -10405,18 +10400,18 @@ function Ty() {
10405
10400
  function() {
10406
10401
  function b(v) {
10407
10402
  if (!C) {
10408
- if (C = !0, k = v, v = l(v), c !== void 0 && m.hasValue) {
10403
+ if (C = !0, y = v, v = l(v), c !== void 0 && m.hasValue) {
10409
10404
  var p = m.value;
10410
10405
  if (c(p, v))
10411
- return y = p;
10406
+ return k = p;
10412
10407
  }
10413
- return y = v;
10408
+ return k = v;
10414
10409
  }
10415
- if (p = y, i(k, v)) return p;
10410
+ if (p = k, i(y, v)) return p;
10416
10411
  var x = l(v);
10417
- return c !== void 0 && c(p, x) ? (k = v, p) : (k = v, y = x);
10412
+ return c !== void 0 && c(p, x) ? (y = v, p) : (y = v, k = x);
10418
10413
  }
10419
- var C = !1, k, y, w = d === void 0 ? null : d;
10414
+ var C = !1, y, k, w = d === void 0 ? null : d;
10420
10415
  return [
10421
10416
  function() {
10422
10417
  return b(f());
@@ -10465,19 +10460,19 @@ function My() {
10465
10460
  function() {
10466
10461
  function b(v) {
10467
10462
  if (!C) {
10468
- if (C = !0, k = v, v = l(v), c !== void 0 && m.hasValue) {
10463
+ if (C = !0, y = v, v = l(v), c !== void 0 && m.hasValue) {
10469
10464
  var p = m.value;
10470
10465
  if (c(p, v))
10471
- return y = p;
10466
+ return k = p;
10472
10467
  }
10473
- return y = v;
10468
+ return k = v;
10474
10469
  }
10475
- if (p = y, i(k, v))
10470
+ if (p = k, i(y, v))
10476
10471
  return p;
10477
10472
  var x = l(v);
10478
- return c !== void 0 && c(p, x) ? (k = v, p) : (k = v, y = x);
10473
+ return c !== void 0 && c(p, x) ? (y = v, p) : (y = v, k = x);
10479
10474
  }
10480
- var C = !1, k, y, w = d === void 0 ? null : d;
10475
+ var C = !1, y, k, w = d === void 0 ? null : d;
10481
10476
  return [
10482
10477
  function() {
10483
10478
  return b(f());
@@ -10677,14 +10672,14 @@ function Zy(n = _n) {
10677
10672
  const m = t(u);
10678
10673
  if (process.env.NODE_ENV !== "production") {
10679
10674
  const { devModeChecks: g = {} } = typeof r == "function" ? {} : r, { identityFunctionCheck: b, stabilityCheck: C } = a, {
10680
- identityFunctionCheck: k,
10681
- stabilityCheck: y
10675
+ identityFunctionCheck: y,
10676
+ stabilityCheck: k
10682
10677
  } = {
10683
10678
  stabilityCheck: C,
10684
10679
  identityFunctionCheck: b,
10685
10680
  ...g
10686
10681
  };
10687
- if (y === "always" || y === "once" && d.current) {
10682
+ if (k === "always" || k === "once" && d.current) {
10688
10683
  const w = t(u);
10689
10684
  if (!s(m, w)) {
10690
10685
  let v;
@@ -10705,7 +10700,7 @@ Selectors that return a new reference (such as an object or an array) should be
10705
10700
  );
10706
10701
  }
10707
10702
  }
10708
- if ((k === "always" || k === "once" && d.current) && m === u) {
10703
+ if ((y === "always" || y === "once" && d.current) && m === u) {
10709
10704
  let w;
10710
10705
  try {
10711
10706
  throw new Error();
@@ -10765,7 +10760,7 @@ var n3 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
10765
10760
  return n3.test(n) || n.charCodeAt(0) === 111 && n.charCodeAt(1) === 110 && n.charCodeAt(2) < 91;
10766
10761
  }
10767
10762
  /* Z+1 */
10768
- ), be = "-ms-", bt = "-moz-", he = "-webkit-", Fh = "comm", _s = "rule", pf = "decl", t3 = "@import", jh = "@keyframes", r3 = "@layer", Wh = Math.abs, vf = String.fromCharCode, mA = Object.assign;
10763
+ ), be = "-ms-", bt = "-moz-", ue = "-webkit-", Fh = "comm", _s = "rule", pf = "decl", t3 = "@import", jh = "@keyframes", r3 = "@layer", Wh = Math.abs, vf = String.fromCharCode, mA = Object.assign;
10769
10764
  function s3(n, e) {
10770
10765
  return Ie(n, 0) ^ 45 ? (((e << 2 ^ Ie(n, 0)) << 2 ^ Ie(n, 1)) << 2 ^ Ie(n, 2)) << 2 ^ Ie(n, 3) : 0;
10771
10766
  }
@@ -10928,19 +10923,19 @@ function m3(n) {
10928
10923
  return d3(Qr("", null, null, null, [""], n = f3(n), 0, [0], n));
10929
10924
  }
10930
10925
  function Qr(n, e, i, t, r, s, a, o, A) {
10931
- for (var f = 0, d = 0, l = a, c = 0, u = 0, m = 0, g = 1, b = 1, C = 1, k = 0, y = "", w = r, v = s, p = t, x = y; b; )
10932
- switch (m = k, k = Ze()) {
10926
+ for (var f = 0, d = 0, l = a, c = 0, u = 0, m = 0, g = 1, b = 1, C = 1, y = 0, k = "", w = r, v = s, p = t, x = k; b; )
10927
+ switch (m = y, y = Ze()) {
10933
10928
  // (
10934
10929
  case 40:
10935
10930
  if (m != 108 && Ie(x, l - 1) == 58) {
10936
- Rr(x += te(po(k), "&", "&\f"), "&\f", Wh(f ? o[f - 1] : 0)) != -1 && (C = -1);
10931
+ Rr(x += te(po(y), "&", "&\f"), "&\f", Wh(f ? o[f - 1] : 0)) != -1 && (C = -1);
10937
10932
  break;
10938
10933
  }
10939
10934
  // " ' [
10940
10935
  case 34:
10941
10936
  case 39:
10942
10937
  case 91:
10943
- x += po(k);
10938
+ x += po(y);
10944
10939
  break;
10945
10940
  // \t \n \r \s
10946
10941
  case 9:
@@ -10971,7 +10966,7 @@ function Qr(n, e, i, t, r, s, a, o, A) {
10971
10966
  case 125 * g:
10972
10967
  case 59:
10973
10968
  case 0:
10974
- switch (k) {
10969
+ switch (y) {
10975
10970
  // \0 }
10976
10971
  case 0:
10977
10972
  case 125:
@@ -10985,7 +10980,7 @@ function Qr(n, e, i, t, r, s, a, o, A) {
10985
10980
  x += ";";
10986
10981
  // { rule/at-rule
10987
10982
  default:
10988
- if (ht(p = dl(x, e, i, f, d, r, o, y, w = [], v = [], l, s), s), k === 123)
10983
+ if (ht(p = dl(x, e, i, f, d, r, o, k, w = [], v = [], l, s), s), y === 123)
10989
10984
  if (d === 0)
10990
10985
  Qr(x, e, p, p, w, s, l, o, v);
10991
10986
  else
@@ -10995,25 +10990,25 @@ function Qr(n, e, i, t, r, s, a, o, A) {
10995
10990
  case 108:
10996
10991
  case 109:
10997
10992
  case 115:
10998
- Qr(n, p, p, t && ht(dl(n, p, p, 0, 0, r, o, y, r, w = [], l, v), v), r, v, l, o, t ? w : v);
10993
+ Qr(n, p, p, t && ht(dl(n, p, p, 0, 0, r, o, k, r, w = [], l, v), v), r, v, l, o, t ? w : v);
10999
10994
  break;
11000
10995
  default:
11001
10996
  Qr(x, p, p, p, [""], v, 0, o, v);
11002
10997
  }
11003
10998
  }
11004
- f = d = u = 0, g = C = 1, y = x = "", l = a;
10999
+ f = d = u = 0, g = C = 1, k = x = "", l = a;
11005
11000
  break;
11006
11001
  // :
11007
11002
  case 58:
11008
11003
  l = 1 + on(x), u = m;
11009
11004
  default:
11010
11005
  if (g < 1) {
11011
- if (k == 123)
11006
+ if (y == 123)
11012
11007
  --g;
11013
- else if (k == 125 && g++ == 0 && A3() == 125)
11008
+ else if (y == 125 && g++ == 0 && A3() == 125)
11014
11009
  continue;
11015
11010
  }
11016
- switch (x += vf(k), k * g) {
11011
+ switch (x += vf(y), y * g) {
11017
11012
  // &
11018
11013
  case 38:
11019
11014
  C = d > 0 ? 1 : (x += "\f", -1);
@@ -11024,7 +11019,7 @@ function Qr(n, e, i, t, r, s, a, o, A) {
11024
11019
  break;
11025
11020
  // @
11026
11021
  case 64:
11027
- ii() === 45 && (x += po(Ze())), c = ii(), d = l = on(y = x += h3(Pr())), k++;
11022
+ ii() === 45 && (x += po(Ze())), c = ii(), d = l = on(k = x += h3(Pr())), y++;
11028
11023
  break;
11029
11024
  // -
11030
11025
  case 45:
@@ -11035,8 +11030,8 @@ function Qr(n, e, i, t, r, s, a, o, A) {
11035
11030
  }
11036
11031
  function dl(n, e, i, t, r, s, a, o, A, f, d, l) {
11037
11032
  for (var c = r - 1, u = r === 0 ? s : [""], m = Yh(u), g = 0, b = 0, C = 0; g < t; ++g)
11038
- for (var k = 0, y = Ni(n, c + 1, c = Wh(b = a[g])), w = n; k < m; ++k)
11039
- (w = Gh(b > 0 ? u[k] + " " + y : te(y, /&\f/g, u[k]))) && (A[C++] = w);
11033
+ for (var y = 0, k = Ni(n, c + 1, c = Wh(b = a[g])), w = n; y < m; ++y)
11034
+ (w = Gh(b > 0 ? u[y] + " " + k : te(k, /&\f/g, u[y]))) && (A[C++] = w);
11040
11035
  return Hs(n, e, i, r === 0 ? _s : o, A, f, d, l);
11041
11036
  }
11042
11037
  function g3(n, e, i, t) {
@@ -11049,7 +11044,7 @@ function qh(n, e, i) {
11049
11044
  switch (s3(n, e)) {
11050
11045
  // color-adjust
11051
11046
  case 5103:
11052
- return he + "print-" + n + n;
11047
+ return ue + "print-" + n + n;
11053
11048
  // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
11054
11049
  case 5737:
11055
11050
  case 4201:
@@ -11079,7 +11074,7 @@ function qh(n, e, i) {
11079
11074
  case 5365:
11080
11075
  case 5621:
11081
11076
  case 3829:
11082
- return he + n + n;
11077
+ return ue + n + n;
11083
11078
  // tab-size
11084
11079
  case 4789:
11085
11080
  return bt + n + n;
@@ -11089,59 +11084,59 @@ function qh(n, e, i) {
11089
11084
  case 4810:
11090
11085
  case 6968:
11091
11086
  case 2756:
11092
- return he + n + bt + n + be + n + n;
11087
+ return ue + n + bt + n + be + n + n;
11093
11088
  // writing-mode
11094
11089
  case 5936:
11095
11090
  switch (Ie(n, e + 11)) {
11096
11091
  // vertical-l(r)
11097
11092
  case 114:
11098
- return he + n + be + te(n, /[svh]\w+-[tblr]{2}/, "tb") + n;
11093
+ return ue + n + be + te(n, /[svh]\w+-[tblr]{2}/, "tb") + n;
11099
11094
  // vertical-r(l)
11100
11095
  case 108:
11101
- return he + n + be + te(n, /[svh]\w+-[tblr]{2}/, "tb-rl") + n;
11096
+ return ue + n + be + te(n, /[svh]\w+-[tblr]{2}/, "tb-rl") + n;
11102
11097
  // horizontal(-)tb
11103
11098
  case 45:
11104
- return he + n + be + te(n, /[svh]\w+-[tblr]{2}/, "lr") + n;
11099
+ return ue + n + be + te(n, /[svh]\w+-[tblr]{2}/, "lr") + n;
11105
11100
  }
11106
11101
  // flex, flex-direction, scroll-snap-type, writing-mode
11107
11102
  case 6828:
11108
11103
  case 4268:
11109
11104
  case 2903:
11110
- return he + n + be + n + n;
11105
+ return ue + n + be + n + n;
11111
11106
  // order
11112
11107
  case 6165:
11113
- return he + n + be + "flex-" + n + n;
11108
+ return ue + n + be + "flex-" + n + n;
11114
11109
  // align-items
11115
11110
  case 5187:
11116
- return he + n + te(n, /(\w+).+(:[^]+)/, he + "box-$1$2" + be + "flex-$1$2") + n;
11111
+ return ue + n + te(n, /(\w+).+(:[^]+)/, ue + "box-$1$2" + be + "flex-$1$2") + n;
11117
11112
  // align-self
11118
11113
  case 5443:
11119
- return he + n + be + "flex-item-" + te(n, /flex-|-self/g, "") + (bn(n, /flex-|baseline/) ? "" : be + "grid-row-" + te(n, /flex-|-self/g, "")) + n;
11114
+ return ue + n + be + "flex-item-" + te(n, /flex-|-self/g, "") + (bn(n, /flex-|baseline/) ? "" : be + "grid-row-" + te(n, /flex-|-self/g, "")) + n;
11120
11115
  // align-content
11121
11116
  case 4675:
11122
- return he + n + be + "flex-line-pack" + te(n, /align-content|flex-|-self/g, "") + n;
11117
+ return ue + n + be + "flex-line-pack" + te(n, /align-content|flex-|-self/g, "") + n;
11123
11118
  // flex-shrink
11124
11119
  case 5548:
11125
- return he + n + be + te(n, "shrink", "negative") + n;
11120
+ return ue + n + be + te(n, "shrink", "negative") + n;
11126
11121
  // flex-basis
11127
11122
  case 5292:
11128
- return he + n + be + te(n, "basis", "preferred-size") + n;
11123
+ return ue + n + be + te(n, "basis", "preferred-size") + n;
11129
11124
  // flex-grow
11130
11125
  case 6060:
11131
- return he + "box-" + te(n, "-grow", "") + he + n + be + te(n, "grow", "positive") + n;
11126
+ return ue + "box-" + te(n, "-grow", "") + ue + n + be + te(n, "grow", "positive") + n;
11132
11127
  // transition
11133
11128
  case 4554:
11134
- return he + te(n, /([^-])(transform)/g, "$1" + he + "$2") + n;
11129
+ return ue + te(n, /([^-])(transform)/g, "$1" + ue + "$2") + n;
11135
11130
  // cursor
11136
11131
  case 6187:
11137
- return te(te(te(n, /(zoom-|grab)/, he + "$1"), /(image-set)/, he + "$1"), n, "") + n;
11132
+ return te(te(te(n, /(zoom-|grab)/, ue + "$1"), /(image-set)/, ue + "$1"), n, "") + n;
11138
11133
  // background, background-image
11139
11134
  case 5495:
11140
11135
  case 3959:
11141
- return te(n, /(image-set\([^]*)/, he + "$1$`$1");
11136
+ return te(n, /(image-set\([^]*)/, ue + "$1$`$1");
11142
11137
  // justify-content
11143
11138
  case 4968:
11144
- return te(te(n, /(.+:)(flex-)?(.*)/, he + "box-pack:$3" + be + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + he + n + n;
11139
+ return te(te(n, /(.+:)(flex-)?(.*)/, ue + "box-pack:$3" + be + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + ue + n + n;
11145
11140
  // justify-self
11146
11141
  case 4200:
11147
11142
  if (!bn(n, /flex-|baseline/)) return be + "grid-column-align" + Ni(n, e) + n;
@@ -11167,7 +11162,7 @@ function qh(n, e, i) {
11167
11162
  case 3583:
11168
11163
  case 4068:
11169
11164
  case 2532:
11170
- return te(n, /(.+)-inline(.+)/, he + "$1$2") + n;
11165
+ return te(n, /(.+)-inline(.+)/, ue + "$1$2") + n;
11171
11166
  // (min|max)?(width|height|inline-size|block-size)
11172
11167
  case 8116:
11173
11168
  case 7059:
@@ -11189,7 +11184,7 @@ function qh(n, e, i) {
11189
11184
  break;
11190
11185
  // (f)ill-available, (f)it-content
11191
11186
  case 102:
11192
- return te(n, /(.+:)(.+)-([^]+)/, "$1" + he + "$2-$3$1" + bt + (Ie(n, e + 3) == 108 ? "$3" : "$2-$3")) + n;
11187
+ return te(n, /(.+:)(.+)-([^]+)/, "$1" + ue + "$2-$3$1" + bt + (Ie(n, e + 3) == 108 ? "$3" : "$2-$3")) + n;
11193
11188
  // (s)tretch
11194
11189
  case 115:
11195
11190
  return ~Rr(n, "stretch", 0) ? qh(te(n, "stretch", "fill-available"), e, i) + n : n;
@@ -11204,14 +11199,14 @@ function qh(n, e, i) {
11204
11199
  // position: sticky
11205
11200
  case 4949:
11206
11201
  if (Ie(n, e + 6) === 121)
11207
- return te(n, ":", ":" + he) + n;
11202
+ return te(n, ":", ":" + ue) + n;
11208
11203
  break;
11209
11204
  // display: (flex|inline-flex|grid|inline-grid)
11210
11205
  case 6444:
11211
11206
  switch (Ie(n, Ie(n, 14) === 45 ? 18 : 11)) {
11212
11207
  // (inline-)?fle(x)
11213
11208
  case 120:
11214
- return te(n, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + he + (Ie(n, 14) === 45 ? "inline-" : "") + "box$3$1" + he + "$2$3$1" + be + "$2box$3") + n;
11209
+ return te(n, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + ue + (Ie(n, 14) === 45 ? "inline-" : "") + "box$3$1" + ue + "$2$3$1" + be + "$2box$3") + n;
11215
11210
  // (inline-)?gri(d)
11216
11211
  case 100:
11217
11212
  return te(n, ":", ":" + be) + n;
@@ -11268,7 +11263,7 @@ function w3(n, e, i, t) {
11268
11263
  n.return = qh(n.value, n.length, i);
11269
11264
  return;
11270
11265
  case jh:
11271
- return as([Mn(n, { value: te(n.value, "@", "@" + he) })], t);
11266
+ return as([Mn(n, { value: te(n.value, "@", "@" + ue) })], t);
11272
11267
  case _s:
11273
11268
  if (n.length)
11274
11269
  return a3(i = n.props, function(r) {
@@ -11280,7 +11275,7 @@ function w3(n, e, i, t) {
11280
11275
  break;
11281
11276
  // :placeholder
11282
11277
  case "::placeholder":
11283
- vi(Mn(n, { props: [te(r, /:(plac\w+)/, ":" + he + "input-$1")] })), vi(Mn(n, { props: [te(r, /:(plac\w+)/, ":" + bt + "$1")] })), vi(Mn(n, { props: [te(r, /:(plac\w+)/, be + "input-$1")] })), vi(Mn(n, { props: [r] })), mA(n, { props: fl(i, t) });
11278
+ vi(Mn(n, { props: [te(r, /:(plac\w+)/, ":" + ue + "input-$1")] })), vi(Mn(n, { props: [te(r, /:(plac\w+)/, ":" + bt + "$1")] })), vi(Mn(n, { props: [te(r, /:(plac\w+)/, be + "input-$1")] })), vi(Mn(n, { props: [r] })), mA(n, { props: fl(i, t) });
11284
11279
  break;
11285
11280
  }
11286
11281
  return "";
@@ -11348,7 +11343,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
11348
11343
  console.error = function(a) {
11349
11344
  for (var o = [], A = 1; A < arguments.length; A++) o[A - 1] = arguments[A];
11350
11345
  ll.test(a) ? (s = !1, rr.delete(t)) : r.apply(void 0, di([a], o, !1));
11351
- }, ce(), s && !rr.has(t) && (console.warn(t), rr.add(t));
11346
+ }, he(), s && !rr.has(t) && (console.warn(t), rr.add(t));
11352
11347
  } catch (a) {
11353
11348
  ll.test(a.message) && rr.delete(t);
11354
11349
  } finally {
@@ -11677,10 +11672,10 @@ function Z3(n) {
11677
11672
  u === void 0 && (u = ""), m === void 0 && (m = ""), g === void 0 && (g = "&"), e = g, i = u, t = new RegExp("\\".concat(i, "\\b"), "g");
11678
11673
  var b = c.replace(K3, ""), C = m3(m || u ? "".concat(m, " ").concat(u, " { ").concat(b, " }") : b);
11679
11674
  a.namespace && (C = tm(C, a.namespace));
11680
- var k = [];
11681
- return as(C, v3(d.concat(b3(function(y) {
11682
- return k.push(y);
11683
- })))), k;
11675
+ var y = [];
11676
+ return as(C, v3(d.concat(b3(function(k) {
11677
+ return y.push(k);
11678
+ })))), y;
11684
11679
  };
11685
11680
  return l.hash = A.length ? A.reduce(function(c, u) {
11686
11681
  return u.name || zi(15), Xn(c, u.name);
@@ -11800,7 +11795,7 @@ function rk(n, e, i) {
11800
11795
  } else m = g;
11801
11796
  }
11802
11797
  var C = new tk(i, c, t ? r.componentStyle : void 0);
11803
- function k(w, v) {
11798
+ function y(w, v) {
11804
11799
  return function(p, x, B) {
11805
11800
  var I = p.attrs, E = p.componentStyle, D = p.defaultProps, M = p.foldedComponentIds, N = p.styledComponentId, L = p.target, j = Be.useContext(om), Y = wl(), V = p.shouldForwardProp || Y.shouldForwardProp;
11806
11801
  process.env.NODE_ENV !== "production" && Uf(N);
@@ -11819,11 +11814,11 @@ function rk(n, e, i) {
11819
11814
  process.env.NODE_ENV !== "production" && p.warnTooManyClasses && p.warnTooManyClasses(R);
11820
11815
  var Q = Zn(M, N);
11821
11816
  return R && (Q += " " + R), z.className && (Q += " " + z.className), P[bo(W) && !vA.has(W) ? "class" : "className"] = Q, B && (P.ref = B), up(W, P);
11822
- }(y, w, v);
11817
+ }(k, w, v);
11823
11818
  }
11824
- k.displayName = l;
11825
- var y = Be.forwardRef(k);
11826
- return y.attrs = u, y.componentStyle = C, y.displayName = l, y.shouldForwardProp = m, y.foldedComponentIds = t ? Zn(r.foldedComponentIds, r.styledComponentId) : "", y.styledComponentId = c, y.target = t ? r.target : n, Object.defineProperty(y, "defaultProps", { get: function() {
11819
+ y.displayName = l;
11820
+ var k = Be.forwardRef(y);
11821
+ return k.attrs = u, k.componentStyle = C, k.displayName = l, k.shouldForwardProp = m, k.foldedComponentIds = t ? Zn(r.foldedComponentIds, r.styledComponentId) : "", k.styledComponentId = c, k.target = t ? r.target : n, Object.defineProperty(k, "defaultProps", { get: function() {
11827
11822
  return this._foldedDefaultProps;
11828
11823
  }, set: function(w) {
11829
11824
  this._foldedDefaultProps = t ? function(v) {
@@ -11831,7 +11826,7 @@ function rk(n, e, i) {
11831
11826
  for (var B = 0, I = p; B < I.length; B++) yA(v, I[B], !0);
11832
11827
  return v;
11833
11828
  }({}, r.defaultProps, w) : w;
11834
- } }), process.env.NODE_ENV !== "production" && (C3(l, c), y.warnTooManyClasses = /* @__PURE__ */ function(w, v) {
11829
+ } }), process.env.NODE_ENV !== "production" && (C3(l, c), k.warnTooManyClasses = /* @__PURE__ */ function(w, v) {
11835
11830
  var p = {}, x = !1;
11836
11831
  return function(B) {
11837
11832
  if (!x && (p[B] = !0, Object.keys(p).length >= 200)) {
@@ -11848,9 +11843,9 @@ Example:
11848
11843
  <Component />`), x = !0, p = {};
11849
11844
  }
11850
11845
  };
11851
- }(l, c)), yf(y, function() {
11852
- return ".".concat(y.styledComponentId);
11853
- }), s && em(y, n, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), y;
11846
+ }(l, c)), yf(k, function() {
11847
+ return ".".concat(k.styledComponentId);
11848
+ }), s && em(k, n, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
11854
11849
  }
11855
11850
  function Cl(n, e) {
11856
11851
  for (var i = [n[0]], t = 0, r = e.length; t < r; t += 1) i.push(e[t], n[t + 1]);
@@ -13410,7 +13405,7 @@ const kk = T.div`
13410
13405
  isReply: s,
13411
13406
  activeMessage: a
13412
13407
  }) => {
13413
- const { composing: o, messages: A, composingList: f } = nn(i).room, { user: d } = Ye(), [l, c] = H(!1), [u, m] = H(0), [g, b] = H(null), C = ce(A.length), k = ce(null), y = ce({}), w = ce(!0), v = ke(() => A.map((R) => ({
13408
+ const { composing: o, messages: A, composingList: f } = nn(i).room, { user: d } = Ye(), [l, c] = H(!1), [u, m] = H(0), [g, b] = H(null), C = he(A.length), y = he(null), k = he({}), w = he(!0), v = ke(() => A.map((R) => ({
13414
13409
  ...R,
13415
13410
  reply: A.filter(
13416
13411
  (J) => !!J.mainMessage && JSON.parse(J.mainMessage).id === R.id
@@ -13422,9 +13417,9 @@ const kk = T.div`
13422
13417
  ), [A, A.length]), x = ke(
13423
13418
  () => A.length && A[A.length - 1].user.id === d.xmppUsername,
13424
13419
  [A.length, d.xmppUsername]
13425
- ), B = ce(null), I = ce(null), E = ce(
13420
+ ), B = he(null), I = he(null), E = he(
13426
13421
  p[p.length - 1]
13427
- ), D = ce(!1), M = ce(0), N = ce(null), L = ce(!0), j = () => {
13422
+ ), D = he(!1), M = he(0), N = he(null), L = he(!0), j = () => {
13428
13423
  const R = B.current;
13429
13424
  return R ? {
13430
13425
  top: R.scrollTop,
@@ -13455,7 +13450,7 @@ const kk = T.div`
13455
13450
  }) : R.scrollTop = R.scrollHeight;
13456
13451
  }, 100) : R.scrollTop = R.scrollHeight, w.current = !1;
13457
13452
  else {
13458
- const Q = y.current[i];
13453
+ const Q = k.current[i];
13459
13454
  Q !== void 0 ? R.scrollTop = Q : R.scrollTop = R.scrollHeight;
13460
13455
  }
13461
13456
  }, [i, p, Y]);
@@ -13516,7 +13511,7 @@ const kk = T.div`
13516
13511
  }, [p.length, o]), se(() => {
13517
13512
  if (A.length > 0) {
13518
13513
  const R = A[A.length - 1], Q = R && x;
13519
- R && R.id !== k.current && Q && (k.current = R.id, z());
13514
+ R && R.id !== y.current && Q && (y.current = R.id, z());
13520
13515
  }
13521
13516
  }, [A, x]), se(() => {
13522
13517
  const R = t?.botMessageAutoScroll, Q = B.current;
@@ -13811,9 +13806,9 @@ const g4 = T.div`
13811
13806
  isRecording: e,
13812
13807
  handleSendClick: i
13813
13808
  }) => {
13814
- const [t, r] = H(null), [s, a] = H(0), o = ce(null), A = ce([]), f = ce(null), d = (C) => {
13815
- const k = Math.floor(C / 60), y = C % 60;
13816
- return `${k.toString().padStart(2, "0")}:${y.toString().padStart(2, "0")}`;
13809
+ const [t, r] = H(null), [s, a] = H(0), o = he(null), A = he([]), f = he(null), d = (C) => {
13810
+ const y = Math.floor(C / 60), k = C % 60;
13811
+ return `${y.toString().padStart(2, "0")}:${k.toString().padStart(2, "0")}`;
13817
13812
  }, l = ee(() => {
13818
13813
  f.current = setInterval(() => {
13819
13814
  a((C) => C + 1);
@@ -13823,13 +13818,13 @@ const g4 = T.div`
13823
13818
  }, []), u = () => {
13824
13819
  r(null), a(0), n(!1), A.current = [], o.current && o.current.stream.getTracks().forEach((C) => C.stop());
13825
13820
  }, m = ee(async () => {
13826
- const C = await navigator.mediaDevices.getUserMedia({ audio: !0 }), k = new MediaRecorder(C);
13827
- o.current = k, k.ondataavailable = (y) => {
13828
- A.current.push(y.data);
13829
- }, k.onstop = () => {
13830
- const y = new Blob(A.current);
13831
- r(y);
13832
- }, A.current = [], k.start(), n(!0), l();
13821
+ const C = await navigator.mediaDevices.getUserMedia({ audio: !0 }), y = new MediaRecorder(C);
13822
+ o.current = y, y.ondataavailable = (k) => {
13823
+ A.current.push(k.data);
13824
+ }, y.onstop = () => {
13825
+ const k = new Blob(A.current);
13826
+ r(k);
13827
+ }, A.current = [], y.start(), n(!0), l();
13833
13828
  }, [l, n]), g = () => {
13834
13829
  o.current && (o.current.stop(), c(), u());
13835
13830
  }, b = () => {
@@ -13857,7 +13852,7 @@ const g4 = T.div`
13857
13852
  editMessage: s,
13858
13853
  isLoading: a
13859
13854
  }) => {
13860
- const [o, A] = H(""), [f, d] = H(!1), [l, c] = H([]), u = ce(null), m = ee(() => {
13855
+ const [o, A] = H(""), [f, d] = H(!1), [l, c] = H([]), u = he(null), m = ee(() => {
13861
13856
  u.current && u.current.click();
13862
13857
  }, []), g = ee(
13863
13858
  (I) => {
@@ -13879,9 +13874,9 @@ const g4 = T.div`
13879
13874
  i?.();
13880
13875
  }, C = () => {
13881
13876
  t?.();
13882
- }, k = ee((I) => {
13877
+ }, y = ee((I) => {
13883
13878
  c((E) => E.filter((D) => D !== I));
13884
- }, []), y = ee(
13879
+ }, []), k = ee(
13885
13880
  (I) => {
13886
13881
  A(I.target.value);
13887
13882
  },
@@ -13919,12 +13914,12 @@ const g4 = T.div`
13919
13914
  height: 16,
13920
13915
  width: 16
13921
13916
  },
13922
- onClick: () => k(I),
13917
+ onClick: () => y(I),
13923
13918
  EndIcon: /* @__PURE__ */ h(lm, { style: { height: 16, width: 16 } })
13924
13919
  }
13925
13920
  )
13926
13921
  ] }, I.name)
13927
- ), [l, x, k]);
13922
+ ), [l, x, y]);
13928
13923
  return /* @__PURE__ */ S(l4, { children: [
13929
13924
  /* @__PURE__ */ S(u4, { children: [
13930
13925
  !f && /* @__PURE__ */ S(we, { children: [
@@ -13942,7 +13937,7 @@ const g4 = T.div`
13942
13937
  color: r?.colors?.primary,
13943
13938
  placeholder: "Type message",
13944
13939
  value: o,
13945
- onChange: y,
13940
+ onChange: k,
13946
13941
  onKeyDown: p,
13947
13942
  onFocus: b,
13948
13943
  onBlur: C,
@@ -14051,7 +14046,7 @@ const g4 = T.div`
14051
14046
  direction: i = "left",
14052
14047
  ...t
14053
14048
  }) => {
14054
- const [r, s] = H(!1), [a, o] = H(!1), A = ce(null), f = () => {
14049
+ const [r, s] = H(!1), [a, o] = H(!1), A = he(null), f = () => {
14055
14050
  s(!0);
14056
14051
  }, d = () => {
14057
14052
  a || s(!1);
@@ -14102,7 +14097,7 @@ const g4 = T.div`
14102
14097
  position: i = "right",
14103
14098
  menuIcon: t
14104
14099
  }) => {
14105
- const [r, s] = H(!1), a = ce(null), o = ce(null), A = i === "right" ? { top: "60px", right: "-140px" } : { top: "60px", right: "0px" }, f = (d) => {
14100
+ const [r, s] = H(!1), a = he(null), o = he(null), A = i === "right" ? { top: "60px", right: "-140px" } : { top: "60px", right: "0px" }, f = (d) => {
14106
14101
  d.preventDefault(), s((l) => !l);
14107
14102
  };
14108
14103
  return se(() => {
@@ -14724,21 +14719,21 @@ function a6(n, e) {
14724
14719
  c.setAttribute("id", u), c.innerText = "Learn more", c.href = "https://firebase.google.com/docs/studio/preview-apps#preview-backend", c.setAttribute("target", "__blank"), c.style.paddingLeft = "5px", c.style.textDecoration = "underline";
14725
14720
  }
14726
14721
  function l() {
14727
- const c = s6(t), u = i("text"), m = document.getElementById(u) || document.createElement("span"), g = i("learnmore"), b = document.getElementById(g) || document.createElement("a"), C = i("preprendIcon"), k = document.getElementById(C) || document.createElementNS("http://www.w3.org/2000/svg", "svg");
14722
+ const c = s6(t), u = i("text"), m = document.getElementById(u) || document.createElement("span"), g = i("learnmore"), b = document.getElementById(g) || document.createElement("a"), C = i("preprendIcon"), y = document.getElementById(C) || document.createElementNS("http://www.w3.org/2000/svg", "svg");
14728
14723
  if (c.created) {
14729
- const y = c.element;
14730
- o(y), d(b, g);
14724
+ const k = c.element;
14725
+ o(k), d(b, g);
14731
14726
  const w = f();
14732
- A(k, C), y.append(k, m, b, w), document.body.appendChild(y);
14727
+ A(y, C), k.append(y, m, b, w), document.body.appendChild(k);
14733
14728
  }
14734
- s ? (m.innerText = "Preview backend disconnected.", k.innerHTML = `<g clip-path="url(#clip0_6013_33858)">
14729
+ s ? (m.innerText = "Preview backend disconnected.", y.innerHTML = `<g clip-path="url(#clip0_6013_33858)">
14735
14730
  <path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
14736
14731
  </g>
14737
14732
  <defs>
14738
14733
  <clipPath id="clip0_6013_33858">
14739
14734
  <rect width="24" height="24" fill="white"/>
14740
14735
  </clipPath>
14741
- </defs>`) : (k.innerHTML = `<g clip-path="url(#clip0_6083_34804)">
14736
+ </defs>`) : (y.innerHTML = `<g clip-path="url(#clip0_6083_34804)">
14742
14737
  <path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>
14743
14738
  </g>
14744
14739
  <defs>
@@ -17055,16 +17050,16 @@ class Xe {
17055
17050
  }
17056
17051
  static _fromJSON(e, i) {
17057
17052
  var t, r, s, a, o, A, f, d;
17058
- const l = (t = i.displayName) !== null && t !== void 0 ? t : void 0, c = (r = i.email) !== null && r !== void 0 ? r : void 0, u = (s = i.phoneNumber) !== null && s !== void 0 ? s : void 0, m = (a = i.photoURL) !== null && a !== void 0 ? a : void 0, g = (o = i.tenantId) !== null && o !== void 0 ? o : void 0, b = (A = i._redirectEventId) !== null && A !== void 0 ? A : void 0, C = (f = i.createdAt) !== null && f !== void 0 ? f : void 0, k = (d = i.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: y, emailVerified: w, isAnonymous: v, providerData: p, stsTokenManager: x } = i;
17053
+ const l = (t = i.displayName) !== null && t !== void 0 ? t : void 0, c = (r = i.email) !== null && r !== void 0 ? r : void 0, u = (s = i.phoneNumber) !== null && s !== void 0 ? s : void 0, m = (a = i.photoURL) !== null && a !== void 0 ? a : void 0, g = (o = i.tenantId) !== null && o !== void 0 ? o : void 0, b = (A = i._redirectEventId) !== null && A !== void 0 ? A : void 0, C = (f = i.createdAt) !== null && f !== void 0 ? f : void 0, y = (d = i.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: w, isAnonymous: v, providerData: p, stsTokenManager: x } = i;
17059
17054
  Z(
17060
- y && x,
17055
+ k && x,
17061
17056
  e,
17062
17057
  "internal-error"
17063
17058
  /* AuthErrorCode.INTERNAL_ERROR */
17064
17059
  );
17065
17060
  const B = Ci.fromJSON(this.name, x);
17066
17061
  Z(
17067
- typeof y == "string",
17062
+ typeof k == "string",
17068
17063
  e,
17069
17064
  "internal-error"
17070
17065
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -17078,9 +17073,9 @@ class Xe {
17078
17073
  e,
17079
17074
  "internal-error"
17080
17075
  /* AuthErrorCode.INTERNAL_ERROR */
17081
- ), Sn(u, e.name), Sn(m, e.name), Sn(g, e.name), Sn(b, e.name), Sn(C, e.name), Sn(k, e.name);
17076
+ ), Sn(u, e.name), Sn(m, e.name), Sn(g, e.name), Sn(b, e.name), Sn(C, e.name), Sn(y, e.name);
17082
17077
  const I = new Xe({
17083
- uid: y,
17078
+ uid: k,
17084
17079
  auth: e,
17085
17080
  email: c,
17086
17081
  emailVerified: w,
@@ -17091,7 +17086,7 @@ class Xe {
17091
17086
  tenantId: g,
17092
17087
  stsTokenManager: B,
17093
17088
  createdAt: C,
17094
- lastLoginAt: k
17089
+ lastLoginAt: y
17095
17090
  });
17096
17091
  return p && Array.isArray(p) && (I.providerData = p.map((E) => Object.assign({}, E))), b && (I._redirectEventId = b), I;
17097
17092
  }
@@ -20623,8 +20618,8 @@ const hi = ({
20623
20618
  }) => {
20624
20619
  const { backgroundColor: f } = gg(n), d = (m) => {
20625
20620
  if (!m) return "";
20626
- const b = m.normalize("NFD").replace(/[\u0300-\u036f]/g, "").trim().split(/\s+/), C = (w) => w && /^[\p{L}\p{N}\p{P}]/u.test(w[0]) ? w[0].toUpperCase() : "", k = C(b[0] || ""), y = C(b[1] || "");
20627
- return k + y;
20621
+ const b = m.normalize("NFD").replace(/[\u0300-\u036f]/g, "").trim().split(/\s+/), C = (w) => w && /^[\p{L}\p{N}\p{P}]/u.test(w[0]) ? w[0].toUpperCase() : "", y = C(b[0] || ""), k = C(b[1] || "");
20622
+ return y + k;
20628
20623
  }, l = () => !e && n ? d(n) : "", c = (m) => {
20629
20624
  const g = m.target.files?.[0];
20630
20625
  g && t?.onUpload && t.onUpload(g);
@@ -20753,7 +20748,7 @@ const hi = ({
20753
20748
  }) => {
20754
20749
  const [s, a] = H(!1), [o, A] = H(
20755
20750
  r
20756
- ), [f, d] = H(""), l = ce(null), c = () => a((b) => !b), u = (b) => {
20751
+ ), [f, d] = H(""), l = he(null), c = () => a((b) => !b), u = (b) => {
20757
20752
  A(b), i(b), a(!1), d("");
20758
20753
  }, m = n.filter(
20759
20754
  (b) => b.name.toLowerCase().includes(f.toLowerCase())
@@ -20989,13 +20984,13 @@ const vg = ({
20989
20984
  const [r, s] = H(!1), [a, o] = H(!1), [A, f] = H("0"), [d, l] = H(""), [c, u] = H(""), [m, g] = H({
20990
20985
  name: "Public",
20991
20986
  id: "public"
20992
- }), [b, C] = H(null), [k, y] = H({ name: "", description: "" }), [w, v] = H([]), p = ke(
20987
+ }), [b, C] = H(null), [y, k] = H({ name: "", description: "" }), [w, v] = H([]), p = ke(
20993
20988
  // () => roomName.length >= 3 && roomDescription.length >= 5,
20994
20989
  () => d.length >= 3,
20995
20990
  [d, c]
20996
20991
  ), x = (j) => j.trim().length < 3 ? "Room name must be at least 3 characters." : "", B = (j) => {
20997
20992
  const Y = j.target.value;
20998
- l(Y), y((V) => ({
20993
+ l(Y), k((V) => ({
20999
20994
  ...V,
21000
20995
  name: x(Y)
21001
20996
  }));
@@ -21050,7 +21045,7 @@ const vg = ({
21050
21045
  Ke({ jid: ae, updates: { icon: V } })
21051
21046
  ));
21052
21047
  }
21053
- s(!1), y({ name: "", description: "" }), C(null), l(""), u(""), o(!1), t({
21048
+ s(!1), k({ name: "", description: "" }), C(null), l(""), u(""), o(!1), t({
21054
21049
  id: Date.now().toString(),
21055
21050
  title: "Success!",
21056
21051
  message: "Room created succusfully!",
@@ -21108,8 +21103,8 @@ const vg = ({
21108
21103
  value: d,
21109
21104
  onChange: B,
21110
21105
  placeholder: "Enter Room Name",
21111
- helperText: k.name,
21112
- error: !!k.name
21106
+ helperText: y.name,
21107
+ error: !!y.name
21113
21108
  }
21114
21109
  ),
21115
21110
  /* @__PURE__ */ h(
@@ -21309,7 +21304,7 @@ const c7 = T.div.withConfig({
21309
21304
  ] }) }),
21310
21305
  /* @__PURE__ */ h(G4, { children: i })
21311
21306
  ] });
21312
- var bi = {}, fr = { exports: {} }, dr = { exports: {} }, le = {};
21307
+ var bi = {}, fr = { exports: {} }, dr = { exports: {} }, ce = {};
21313
21308
  /** @license React v16.13.1
21314
21309
  * react-is.production.min.js
21315
21310
  *
@@ -21320,10 +21315,10 @@ var bi = {}, fr = { exports: {} }, dr = { exports: {} }, le = {};
21320
21315
  */
21321
21316
  var ru;
21322
21317
  function l7() {
21323
- if (ru) return le;
21318
+ if (ru) return ce;
21324
21319
  ru = 1;
21325
- 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, u = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, g = n ? Symbol.for("react.block") : 60121, b = n ? Symbol.for("react.fundamental") : 60117, C = n ? Symbol.for("react.responder") : 60118, k = n ? Symbol.for("react.scope") : 60119;
21326
- function y(v) {
21320
+ 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, u = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, g = n ? Symbol.for("react.block") : 60121, b = n ? Symbol.for("react.fundamental") : 60117, C = n ? Symbol.for("react.responder") : 60118, y = n ? Symbol.for("react.scope") : 60119;
21321
+ function k(v) {
21327
21322
  if (typeof v == "object" && v !== null) {
21328
21323
  var p = v.$$typeof;
21329
21324
  switch (p) {
@@ -21354,37 +21349,37 @@ function l7() {
21354
21349
  }
21355
21350
  }
21356
21351
  function w(v) {
21357
- return y(v) === f;
21358
- }
21359
- return le.AsyncMode = A, le.ConcurrentMode = f, le.ContextConsumer = o, le.ContextProvider = a, le.Element = e, le.ForwardRef = d, le.Fragment = t, le.Lazy = m, le.Memo = u, le.Portal = i, le.Profiler = s, le.StrictMode = r, le.Suspense = l, le.isAsyncMode = function(v) {
21360
- return w(v) || y(v) === A;
21361
- }, le.isConcurrentMode = w, le.isContextConsumer = function(v) {
21362
- return y(v) === o;
21363
- }, le.isContextProvider = function(v) {
21364
- return y(v) === a;
21365
- }, le.isElement = function(v) {
21352
+ return k(v) === f;
21353
+ }
21354
+ return ce.AsyncMode = A, ce.ConcurrentMode = f, ce.ContextConsumer = o, ce.ContextProvider = a, ce.Element = e, ce.ForwardRef = d, ce.Fragment = t, ce.Lazy = m, ce.Memo = u, ce.Portal = i, ce.Profiler = s, ce.StrictMode = r, ce.Suspense = l, ce.isAsyncMode = function(v) {
21355
+ return w(v) || k(v) === A;
21356
+ }, ce.isConcurrentMode = w, ce.isContextConsumer = function(v) {
21357
+ return k(v) === o;
21358
+ }, ce.isContextProvider = function(v) {
21359
+ return k(v) === a;
21360
+ }, ce.isElement = function(v) {
21366
21361
  return typeof v == "object" && v !== null && v.$$typeof === e;
21367
- }, le.isForwardRef = function(v) {
21368
- return y(v) === d;
21369
- }, le.isFragment = function(v) {
21370
- return y(v) === t;
21371
- }, le.isLazy = function(v) {
21372
- return y(v) === m;
21373
- }, le.isMemo = function(v) {
21374
- return y(v) === u;
21375
- }, le.isPortal = function(v) {
21376
- return y(v) === i;
21377
- }, le.isProfiler = function(v) {
21378
- return y(v) === s;
21379
- }, le.isStrictMode = function(v) {
21380
- return y(v) === r;
21381
- }, le.isSuspense = function(v) {
21382
- return y(v) === l;
21383
- }, le.isValidElementType = function(v) {
21384
- return typeof v == "string" || typeof v == "function" || v === t || v === f || v === s || v === r || v === l || v === c || typeof v == "object" && v !== null && (v.$$typeof === m || v.$$typeof === u || v.$$typeof === a || v.$$typeof === o || v.$$typeof === d || v.$$typeof === b || v.$$typeof === C || v.$$typeof === k || v.$$typeof === g);
21385
- }, le.typeOf = y, le;
21386
- }
21387
- var ue = {};
21362
+ }, ce.isForwardRef = function(v) {
21363
+ return k(v) === d;
21364
+ }, ce.isFragment = function(v) {
21365
+ return k(v) === t;
21366
+ }, ce.isLazy = function(v) {
21367
+ return k(v) === m;
21368
+ }, ce.isMemo = function(v) {
21369
+ return k(v) === u;
21370
+ }, ce.isPortal = function(v) {
21371
+ return k(v) === i;
21372
+ }, ce.isProfiler = function(v) {
21373
+ return k(v) === s;
21374
+ }, ce.isStrictMode = function(v) {
21375
+ return k(v) === r;
21376
+ }, ce.isSuspense = function(v) {
21377
+ return k(v) === l;
21378
+ }, ce.isValidElementType = function(v) {
21379
+ return typeof v == "string" || typeof v == "function" || v === t || v === f || v === s || v === r || v === l || v === c || typeof v == "object" && v !== null && (v.$$typeof === m || v.$$typeof === u || v.$$typeof === a || v.$$typeof === o || v.$$typeof === d || v.$$typeof === b || v.$$typeof === C || v.$$typeof === y || v.$$typeof === g);
21380
+ }, ce.typeOf = k, ce;
21381
+ }
21382
+ var le = {};
21388
21383
  /** @license React v16.13.1
21389
21384
  * react-is.development.js
21390
21385
  *
@@ -21396,10 +21391,10 @@ var ue = {};
21396
21391
  var su;
21397
21392
  function u7() {
21398
21393
  return su || (su = 1, process.env.NODE_ENV !== "production" && function() {
21399
- 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, u = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, g = n ? Symbol.for("react.block") : 60121, b = n ? Symbol.for("react.fundamental") : 60117, C = n ? Symbol.for("react.responder") : 60118, k = n ? Symbol.for("react.scope") : 60119;
21400
- function y(q) {
21394
+ 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, u = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, g = n ? Symbol.for("react.block") : 60121, b = n ? Symbol.for("react.fundamental") : 60117, C = n ? Symbol.for("react.responder") : 60118, y = n ? Symbol.for("react.scope") : 60119;
21395
+ function k(q) {
21401
21396
  return typeof q == "string" || typeof q == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
21402
- q === t || q === f || q === s || q === r || q === l || q === c || typeof q == "object" && q !== null && (q.$$typeof === m || q.$$typeof === u || q.$$typeof === a || q.$$typeof === o || q.$$typeof === d || q.$$typeof === b || q.$$typeof === C || q.$$typeof === k || q.$$typeof === g);
21397
+ q === t || q === f || q === s || q === r || q === l || q === c || typeof q == "object" && q !== null && (q.$$typeof === m || q.$$typeof === u || q.$$typeof === a || q.$$typeof === o || q.$$typeof === d || q.$$typeof === b || q.$$typeof === C || q.$$typeof === y || q.$$typeof === g);
21403
21398
  }
21404
21399
  function w(q) {
21405
21400
  if (typeof q == "object" && q !== null) {
@@ -21473,8 +21468,8 @@ function u7() {
21473
21468
  function Ee(q) {
21474
21469
  return w(q) === l;
21475
21470
  }
21476
- ue.AsyncMode = v, ue.ConcurrentMode = p, ue.ContextConsumer = x, ue.ContextProvider = B, ue.Element = I, ue.ForwardRef = E, ue.Fragment = D, ue.Lazy = M, ue.Memo = N, ue.Portal = L, ue.Profiler = j, ue.StrictMode = Y, ue.Suspense = V, ue.isAsyncMode = z, ue.isConcurrentMode = W, ue.isContextConsumer = P, ue.isContextProvider = O, ue.isElement = R, ue.isForwardRef = Q, ue.isFragment = J, ue.isLazy = X, ue.isMemo = $, ue.isPortal = re, ue.isProfiler = oe, ue.isStrictMode = fe, ue.isSuspense = Ee, ue.isValidElementType = y, ue.typeOf = w;
21477
- }()), ue;
21471
+ le.AsyncMode = v, le.ConcurrentMode = p, le.ContextConsumer = x, le.ContextProvider = B, le.Element = I, le.ForwardRef = E, le.Fragment = D, le.Lazy = M, le.Memo = N, le.Portal = L, le.Profiler = j, le.StrictMode = Y, le.Suspense = V, le.isAsyncMode = z, le.isConcurrentMode = W, le.isContextConsumer = P, le.isContextProvider = O, le.isElement = R, le.isForwardRef = Q, le.isFragment = J, le.isLazy = X, le.isMemo = $, le.isPortal = re, le.isProfiler = oe, le.isStrictMode = fe, le.isSuspense = Ee, le.isValidElementType = k, le.typeOf = w;
21472
+ }()), le;
21478
21473
  }
21479
21474
  var au;
21480
21475
  function kg() {
@@ -21624,8 +21619,8 @@ function g7() {
21624
21619
  object: C("object"),
21625
21620
  string: C("string"),
21626
21621
  symbol: C("symbol"),
21627
- any: k(),
21628
- arrayOf: y,
21622
+ any: y(),
21623
+ arrayOf: k,
21629
21624
  element: w(),
21630
21625
  elementType: v(),
21631
21626
  instanceOf: p,
@@ -21680,10 +21675,10 @@ function g7() {
21680
21675
  }
21681
21676
  return b(P);
21682
21677
  }
21683
- function k() {
21678
+ function y() {
21684
21679
  return b(a);
21685
21680
  }
21686
- function y(W) {
21681
+ function k(W) {
21687
21682
  function P(O, R, Q, J, X) {
21688
21683
  if (typeof W != "function")
21689
21684
  return new g("Property `" + X + "` of component `" + Q + "` has invalid PropType notation inside arrayOf.");
@@ -22640,8 +22635,8 @@ function k7() {
22640
22635
  for (var C = 0; C < c[m].length; C++)
22641
22636
  c[m][C] = 255 & o.buffer[C + f];
22642
22637
  f += g;
22643
- var k = t.getErrorCorrectPolynomial(b), y = new r(c[m], k.getLength() - 1), w = y.mod(k);
22644
- u[m] = new Array(k.getLength() - 1);
22638
+ var y = t.getErrorCorrectPolynomial(b), k = new r(c[m], y.getLength() - 1), w = k.mod(y);
22639
+ u[m] = new Array(y.getLength() - 1);
22645
22640
  for (var C = 0; C < u[m].length; C++) {
22646
22641
  var v = C + w.getLength() - u[m].length;
22647
22642
  u[m][C] = v >= 0 ? w.get(v) : 0;
@@ -22691,10 +22686,10 @@ function C7() {
22691
22686
  viewBoxSize: i.default.number.isRequired,
22692
22687
  xmlns: i.default.string
22693
22688
  }, A = (0, t.forwardRef)(function(f, d) {
22694
- var l = f.bgColor, c = f.bgD, u = f.fgD, m = f.fgColor, g = f.size, b = f.title, C = f.viewBoxSize, k = f.xmlns, y = k === void 0 ? "http://www.w3.org/2000/svg" : k, w = a(f, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
22689
+ var l = f.bgColor, c = f.bgD, u = f.fgD, m = f.fgColor, g = f.size, b = f.title, C = f.viewBoxSize, y = f.xmlns, k = y === void 0 ? "http://www.w3.org/2000/svg" : y, w = a(f, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
22695
22690
  return r.default.createElement(
22696
22691
  "svg",
22697
- n({}, w, { height: g, ref: d, viewBox: "0 0 " + C + " " + C, width: g, xmlns: y }),
22692
+ n({}, w, { height: g, ref: d, viewBox: "0 0 " + C + " " + C, width: g, xmlns: k }),
22698
22693
  b ? r.default.createElement(
22699
22694
  "title",
22700
22695
  null,
@@ -22715,8 +22710,8 @@ function x7() {
22715
22710
  var n = Object.assign || function(g) {
22716
22711
  for (var b = 1; b < arguments.length; b++) {
22717
22712
  var C = arguments[b];
22718
- for (var k in C)
22719
- Object.prototype.hasOwnProperty.call(C, k) && (g[k] = C[k]);
22713
+ for (var y in C)
22714
+ Object.prototype.hasOwnProperty.call(C, y) && (g[y] = C[y]);
22720
22715
  }
22721
22716
  return g;
22722
22717
  }, e = /* @__PURE__ */ xg(), i = l(e), t = Eg(), r = l(t), s = k7(), a = l(s), o = Be, A = l(o), f = C7(), d = l(f);
@@ -22725,8 +22720,8 @@ function x7() {
22725
22720
  }
22726
22721
  function c(g, b) {
22727
22722
  var C = {};
22728
- for (var k in g)
22729
- b.indexOf(k) >= 0 || Object.prototype.hasOwnProperty.call(g, k) && (C[k] = g[k]);
22723
+ for (var y in g)
22724
+ b.indexOf(y) >= 0 || Object.prototype.hasOwnProperty.call(g, y) && (C[y] = g[y]);
22730
22725
  return C;
22731
22726
  }
22732
22727
  var u = {
@@ -22736,11 +22731,11 @@ function x7() {
22736
22731
  size: i.default.number,
22737
22732
  value: i.default.string.isRequired
22738
22733
  }, m = (0, o.forwardRef)(function(g, b) {
22739
- var C = g.bgColor, k = C === void 0 ? "#FFFFFF" : C, y = g.fgColor, w = y === void 0 ? "#000000" : y, v = g.level, p = v === void 0 ? "L" : v, x = g.size, B = x === void 0 ? 256 : x, I = g.value, E = c(g, ["bgColor", "fgColor", "level", "size", "value"]), D = new a.default(-1, r.default[p]);
22734
+ var C = g.bgColor, y = C === void 0 ? "#FFFFFF" : C, k = g.fgColor, w = k === void 0 ? "#000000" : k, v = g.level, p = v === void 0 ? "L" : v, x = g.size, B = x === void 0 ? 256 : x, I = g.value, E = c(g, ["bgColor", "fgColor", "level", "size", "value"]), D = new a.default(-1, r.default[p]);
22740
22735
  D.addData(I), D.make();
22741
22736
  var M = D.modules;
22742
22737
  return A.default.createElement(d.default, n({}, E, {
22743
- bgColor: k,
22738
+ bgColor: y,
22744
22739
  bgD: M.map(function(N, L) {
22745
22740
  return N.map(function(j, Y) {
22746
22741
  return j ? "" : "M " + Y + " " + L + " l 1 0 0 1 -1 0 Z";
@@ -23025,39 +23020,39 @@ const I7 = /* @__PURE__ */ _i(E7), Ng = T.div`
23025
23020
  }
23026
23021
  ],
23027
23022
  []
23028
- ), f = ve(), { client: d } = Ue(), { user: l } = Ye(), c = de((k) => cf(k)), u = async (k) => {
23023
+ ), f = ve(), { client: d } = Ue(), { user: l } = Ye(), c = de((y) => cf(y)), u = async (y) => {
23029
23024
  try {
23030
- let y = new FormData();
23031
- y.append("files", k);
23032
- const v = (await jf(y))?.data?.results?.[0]?.location;
23025
+ let k = new FormData();
23026
+ k.append("files", y);
23027
+ const v = (await jf(k))?.data?.results?.[0]?.location;
23033
23028
  v && (d.setRoomImageStanza(c.jid, v, "icon", "none"), f(
23034
23029
  Ke({ jid: c.jid, updates: { icon: v } })
23035
23030
  ));
23036
- } catch (y) {
23037
- console.error("File upload failed or location is missing:", y);
23031
+ } catch (k) {
23032
+ console.error("File upload failed or location is missing:", k);
23038
23033
  }
23039
- }, m = async (k) => {
23034
+ }, m = async (y) => {
23040
23035
  try {
23041
23036
  await iy({
23042
23037
  roomId: c.jid.split("@")[0],
23043
- members: [k]
23038
+ members: [y]
23044
23039
  }), f(
23045
23040
  Ke({
23046
23041
  jid: c.jid,
23047
23042
  updates: {
23048
23043
  members: c.members.filter(
23049
- (y) => y.xmppUsername !== k
23044
+ (k) => k.xmppUsername !== y
23050
23045
  )
23051
23046
  }
23052
23047
  })
23053
23048
  ), o({
23054
23049
  id: Date.now().toString(),
23055
23050
  title: "Success",
23056
- message: `${k} has been removed from the room.`,
23051
+ message: `${y} has been removed from the room.`,
23057
23052
  type: "success"
23058
23053
  });
23059
- } catch (y) {
23060
- console.error("Failed to delete user:", y), o({
23054
+ } catch (k) {
23055
+ console.error("Failed to delete user:", k), o({
23061
23056
  id: Date.now().toString(),
23062
23057
  title: "Error",
23063
23058
  message: "Failed to delete user.",
@@ -23066,18 +23061,18 @@ const I7 = /* @__PURE__ */ _i(E7), Ng = T.div`
23066
23061
  }
23067
23062
  }, g = async () => {
23068
23063
  d.setRoomImageStanza(c.jid, null, "icon", "none"), f(Ke({ jid: c.jid, updates: { icon: null } }));
23069
- }, b = (k) => {
23064
+ }, b = (y) => {
23070
23065
  f(Pe(me.PROFILE)), f(
23071
23066
  rf({
23072
- id: k._id,
23073
- firstName: k.firstName,
23074
- lastName: k.lastName,
23075
- name: `${k.firstName} ${k.lastName}`,
23076
- userJID: k?.xmppUsername
23067
+ id: y._id,
23068
+ firstName: y.firstName,
23069
+ lastName: y.lastName,
23070
+ name: `${y.firstName} ${y.lastName}`,
23071
+ userJID: y?.xmppUsername
23077
23072
  })
23078
23073
  );
23079
23074
  }, C = ke(
23080
- () => (k) => [
23075
+ () => (y) => [
23081
23076
  {
23082
23077
  label: "Appoint as an admin",
23083
23078
  icon: null,
@@ -23095,8 +23090,8 @@ const I7 = /* @__PURE__ */ _i(E7), Ng = T.div`
23095
23090
  {
23096
23091
  label: "Delete",
23097
23092
  icon: null,
23098
- onClick: (y) => {
23099
- y?.preventDefault(), m(k);
23093
+ onClick: (k) => {
23094
+ k?.preventDefault(), m(y);
23100
23095
  }
23101
23096
  }
23102
23097
  ],
@@ -23160,7 +23155,7 @@ const I7 = /* @__PURE__ */ _i(E7), Ng = T.div`
23160
23155
  /* @__PURE__ */ h(yi, { children: "Chat type" }),
23161
23156
  /* @__PURE__ */ h(ri, { children: c.type })
23162
23157
  ] }),
23163
- /* @__PURE__ */ h(Cn, { style: { padding: "8px 16px" }, children: e ? /* @__PURE__ */ h(un, {}) : c?.members?.map((k, y) => /* @__PURE__ */ S(
23158
+ /* @__PURE__ */ h(Cn, { style: { padding: "8px 16px" }, children: e ? /* @__PURE__ */ h(un, {}) : c?.members?.map((y, k) => /* @__PURE__ */ S(
23164
23159
  "div",
23165
23160
  {
23166
23161
  style: {
@@ -23185,12 +23180,12 @@ const I7 = /* @__PURE__ */ _i(E7), Ng = T.div`
23185
23180
  "div",
23186
23181
  {
23187
23182
  style: { display: "flex", gap: "8px", cursor: "pointer" },
23188
- onClick: () => b(k),
23183
+ onClick: () => b(y),
23189
23184
  children: [
23190
23185
  /* @__PURE__ */ h(
23191
23186
  hi,
23192
23187
  {
23193
- name: `${k.firstName} ${k.lastName}`,
23188
+ name: `${y.firstName} ${y.lastName}`,
23194
23189
  size: 40
23195
23190
  }
23196
23191
  ),
@@ -23206,34 +23201,34 @@ const I7 = /* @__PURE__ */ _i(E7), Ng = T.div`
23206
23201
  },
23207
23202
  children: [
23208
23203
  /* @__PURE__ */ S(ri, { style: { fontSize: "16px", fontWeight: 600 }, children: [
23209
- k.firstName,
23204
+ y.firstName,
23210
23205
  " ",
23211
- k.lastName
23206
+ y.lastName
23212
23207
  ] }),
23213
- k.last_active && /* @__PURE__ */ h(yi, { children: new Date(k.last_active * 1e3).toLocaleString() })
23208
+ y.last_active && /* @__PURE__ */ h(yi, { children: new Date(y.last_active * 1e3).toLocaleString() })
23214
23209
  ]
23215
23210
  }
23216
23211
  )
23217
23212
  ]
23218
23213
  }
23219
23214
  ),
23220
- k.role && k.role !== "none" && /* @__PURE__ */ h(
23215
+ y.role && y.role !== "none" && /* @__PURE__ */ h(
23221
23216
  "div",
23222
23217
  {
23223
23218
  style: {
23224
- backgroundColor: k.ban_status !== "banned" ? "#F3F6FC" : "#FFEBEE",
23225
- color: k.ban_status !== "banned" ? "#0052CD" : "#F44336",
23219
+ backgroundColor: y.ban_status !== "banned" ? "#F3F6FC" : "#FFEBEE",
23220
+ color: y.ban_status !== "banned" ? "#0052CD" : "#F44336",
23226
23221
  padding: "5px 8px",
23227
23222
  borderRadius: "16px",
23228
23223
  fontSize: "12px"
23229
23224
  },
23230
- children: k.role
23225
+ children: y.role
23231
23226
  }
23232
23227
  ),
23233
- l.xmppUsername !== k.xmppUsername && c.role === "moderator" && c.type !== "private" && /* @__PURE__ */ h(
23228
+ l.xmppUsername !== y.xmppUsername && c.role === "moderator" && c.type !== "private" && /* @__PURE__ */ h(
23234
23229
  Bt,
23235
23230
  {
23236
- options: C(k.xmppUsername),
23231
+ options: C(y.xmppUsername),
23237
23232
  openButton: /* @__PURE__ */ h(
23238
23233
  ie,
23239
23234
  {
@@ -23249,10 +23244,10 @@ const I7 = /* @__PURE__ */ _i(E7), Ng = T.div`
23249
23244
  ]
23250
23245
  }
23251
23246
  ),
23252
- y < c?.members.length - 1 && /* @__PURE__ */ h(Em, {})
23247
+ k < c?.members.length - 1 && /* @__PURE__ */ h(Em, {})
23253
23248
  ]
23254
23249
  },
23255
- k.xmppUsername
23250
+ y.xmppUsername
23256
23251
  )) })
23257
23252
  ] }),
23258
23253
  /* @__PURE__ */ h(
@@ -24168,10 +24163,10 @@ const Bu = T.div`
24168
24163
  ), v && (await i.inviteRoomRequestStanza(p, v), await i.getRoomsStanza());
24169
24164
  }
24170
24165
  e(Pe());
24171
- }, [a]), C = a ?? s, k = () => {
24166
+ }, [a]), C = a ?? s, y = () => {
24172
24167
  if (o)
24173
24168
  return Du.find((v) => v.id === o);
24174
- }, y = ke(
24169
+ }, k = ke(
24175
24170
  () => /* @__PURE__ */ S(we, { children: [
24176
24171
  /* @__PURE__ */ h(
24177
24172
  Je,
@@ -24208,7 +24203,7 @@ const Bu = T.div`
24208
24203
  placeholder: "Select your language",
24209
24204
  onSelect: u,
24210
24205
  accentColor: r?.colors?.primary,
24211
- selectedValue: k()
24206
+ selectedValue: y()
24212
24207
  }
24213
24208
  ) }),
24214
24209
  /* @__PURE__ */ S(Cn, { children: [
@@ -24248,7 +24243,7 @@ const Bu = T.div`
24248
24243
  ),
24249
24244
  [C]
24250
24245
  );
24251
- return /* @__PURE__ */ h(gn, { children: A ? w : y });
24246
+ return /* @__PURE__ */ h(gn, { children: A ? w : k });
24252
24247
  }, f8 = ({
24253
24248
  handleCloseModal: n
24254
24249
  }) => {
@@ -24495,8 +24490,8 @@ const Bu = T.div`
24495
24490
  for (; g < t.length; ) {
24496
24491
  const C = t[g];
24497
24492
  if (/^(\d+\.\s+|\-\s+)/.test(C)) {
24498
- const k = C.replace(/^(\d+\.\s+|\-\s+)/, "");
24499
- d.push(/* @__PURE__ */ h("li", { children: o(k) }, `li-${e++}`));
24493
+ const y = C.replace(/^(\d+\.\s+|\-\s+)/, "");
24494
+ d.push(/* @__PURE__ */ h("li", { children: o(y) }, `li-${e++}`));
24500
24495
  } else {
24501
24496
  if (C.trim() === "")
24502
24497
  break;
@@ -24852,7 +24847,7 @@ const Bu = T.div`
24852
24847
  onRoomClick: i,
24853
24848
  isSmallScreen: t
24854
24849
  }) => {
24855
- const { client: r, setClient: s } = Ue(), [a, o] = H(!1), [A, f] = H(""), d = ve(), { config: l } = Ye(), { activeRoomJID: c } = de((p) => p.rooms), u = ce(null), m = ee((p) => {
24850
+ const { client: r, setClient: s } = Ue(), [a, o] = H(!1), [A, f] = H(""), d = ve(), { config: l } = Ye(), { activeRoomJID: c } = de((p) => p.rooms), u = he(null), m = ee((p) => {
24856
24851
  u.current && !u.current.contains(p.target) && o(!1);
24857
24852
  }, []), g = ee(
24858
24853
  (p) => {
@@ -24864,7 +24859,7 @@ const Bu = T.div`
24864
24859
  f(p.target.value);
24865
24860
  },
24866
24861
  []
24867
- ), C = ee((p) => (p?.messages?.[p?.messages.length - 1]?.id ?? "").replace(/\D+/g, "").padEnd(16, "0"), []), k = ke(() => {
24862
+ ), C = ee((p) => (p?.messages?.[p?.messages.length - 1]?.id ?? "").replace(/\D+/g, "").padEnd(16, "0"), []), y = ke(() => {
24868
24863
  const p = A.toLowerCase(), x = /* @__PURE__ */ new Map();
24869
24864
  if (!x.has(p)) {
24870
24865
  const B = n.filter(
@@ -24883,7 +24878,7 @@ const Bu = T.div`
24883
24878
  document.removeEventListener("mousedown", m);
24884
24879
  };
24885
24880
  }, [e, m]);
24886
- const y = ee(
24881
+ const k = ee(
24887
24882
  (p) => !t && c === p.jid,
24888
24883
  [c]
24889
24884
  ), w = ee(async () => {
@@ -24948,18 +24943,18 @@ const Bu = T.div`
24948
24943
  "div",
24949
24944
  {
24950
24945
  style: { flexGrow: 1, overflowY: "auto", padding: "16px 0px" },
24951
- children: k.map((p, x) => /* @__PURE__ */ S(Be.Fragment, { children: [
24946
+ children: y.map((p, x) => /* @__PURE__ */ S(Be.Fragment, { children: [
24952
24947
  /* @__PURE__ */ h(
24953
24948
  B8,
24954
24949
  {
24955
24950
  chat: p,
24956
24951
  index: x,
24957
- isChatActive: y(p),
24952
+ isChatActive: k(p),
24958
24953
  performClick: g,
24959
24954
  config: l
24960
24955
  }
24961
24956
  ),
24962
- x < k.length - 1 && /* @__PURE__ */ h(yg, {})
24957
+ x < y.length - 1 && /* @__PURE__ */ h(yg, {})
24963
24958
  ] }, `${p.id}-${x}`))
24964
24959
  }
24965
24960
  )
@@ -25388,34 +25383,34 @@ const Pg = () => {
25388
25383
  b.append("files", f);
25389
25384
  try {
25390
25385
  const C = await jf(b);
25391
- for (const k of C.data.results) {
25392
- const y = {
25386
+ for (const y of C.data.results) {
25387
+ const k = {
25393
25388
  firstName: r.firstName,
25394
25389
  lastName: r.lastName,
25395
25390
  walletAddress: r.walletAddress,
25396
- createdAt: k.createdAt,
25397
- expiresAt: k.expiresAt,
25398
- fileName: k.filename,
25399
- isVisible: k?.isVisible,
25400
- location: k.location,
25401
- locationPreview: k.locationPreview,
25402
- mimetype: k.mimetype,
25403
- originalName: k?.originalname,
25404
- ownerKey: k?.ownerKey,
25405
- size: k.size,
25406
- duration: k?.duration,
25407
- updatedAt: k?.updatedAt,
25408
- userId: k?.userId,
25409
- attachmentId: k?._id,
25391
+ createdAt: y.createdAt,
25392
+ expiresAt: y.expiresAt,
25393
+ fileName: y.filename,
25394
+ isVisible: y?.isVisible,
25395
+ location: y.location,
25396
+ locationPreview: y.locationPreview,
25397
+ mimetype: y.mimetype,
25398
+ originalName: y?.originalname,
25399
+ ownerKey: y?.ownerKey,
25400
+ size: y.size,
25401
+ duration: y?.duration,
25402
+ updatedAt: y?.updatedAt,
25403
+ userId: y?.userId,
25404
+ attachmentId: y?._id,
25410
25405
  wrappable: !0,
25411
25406
  roomJid: l,
25412
25407
  showInChannel: u,
25413
25408
  isReply: c,
25414
25409
  mainMessage: m,
25415
- isPrivate: k?.isPrivate,
25416
- __v: k.__v
25410
+ isPrivate: y?.isPrivate,
25411
+ __v: y.__v
25417
25412
  };
25418
- i?.sendMediaMessageStanza(l, y, g);
25413
+ i?.sendMediaMessageStanza(l, k, g);
25419
25414
  }
25420
25415
  } catch (C) {
25421
25416
  console.error("Upload failed:", C);
@@ -25507,7 +25502,7 @@ const Pg = () => {
25507
25502
  sendMessage: m,
25508
25503
  sendMedia: g,
25509
25504
  sendEditMessage: b
25510
- } = Pg(), { sendStartComposing: C, sendEndComposing: k } = z8(o), y = ee(
25505
+ } = Pg(), { sendStartComposing: C, sendEndComposing: y } = z8(o), k = ee(
25511
25506
  (x) => {
25512
25507
  t(
25513
25508
  wr({
@@ -25599,11 +25594,11 @@ const Pg = () => {
25599
25594
  ym,
25600
25595
  {
25601
25596
  editMessage: d.text,
25602
- sendMessage: d.isEdit ? b : y,
25597
+ sendMessage: d.isEdit ? b : k,
25603
25598
  sendMedia: w,
25604
25599
  config: o,
25605
25600
  onFocus: C,
25606
- onBlur: k,
25601
+ onBlur: y,
25607
25602
  isLoading: !1
25608
25603
  }
25609
25604
  )
@@ -25956,16 +25951,16 @@ class Wi extends Ht {
25956
25951
  r?.(p - I, x - E);
25957
25952
  }
25958
25953
  f();
25959
- }, k = (v) => {
25960
- v.relatedTarget && v.relatedTarget !== document.documentElement || C(v);
25961
25954
  }, y = (v) => {
25955
+ v.relatedTarget && v.relatedTarget !== document.documentElement || C(v);
25956
+ }, k = (v) => {
25962
25957
  m && (v.stopPropagation(), v.preventDefault());
25963
25958
  }, w = (v) => {
25964
25959
  m && v.preventDefault();
25965
25960
  };
25966
- document.addEventListener("pointermove", b), document.addEventListener("pointerup", C), document.addEventListener("pointerout", k), document.addEventListener("pointercancel", k), document.addEventListener("touchmove", w, { passive: !1 }), document.addEventListener("click", y, { capture: !0 }), f = () => {
25967
- document.removeEventListener("pointermove", b), document.removeEventListener("pointerup", C), document.removeEventListener("pointerout", k), document.removeEventListener("pointercancel", k), document.removeEventListener("touchmove", w), setTimeout(() => {
25968
- document.removeEventListener("click", y, { capture: !0 });
25961
+ document.addEventListener("pointermove", b), document.addEventListener("pointerup", C), document.addEventListener("pointerout", y), document.addEventListener("pointercancel", y), document.addEventListener("touchmove", w, { passive: !1 }), document.addEventListener("click", k, { capture: !0 }), f = () => {
25962
+ document.removeEventListener("pointermove", b), document.removeEventListener("pointerup", C), document.removeEventListener("pointerout", y), document.removeEventListener("pointercancel", y), document.removeEventListener("touchmove", w), setTimeout(() => {
25963
+ document.removeEventListener("click", k, { capture: !0 });
25969
25964
  }, 10);
25970
25965
  };
25971
25966
  };
@@ -26120,16 +26115,16 @@ class Wi extends Ht {
26120
26115
  renderBarWaveform(e, i, t, r) {
26121
26116
  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, u = i.barGap ? i.barGap * l : i.barWidth ? c / 2 : 0, m = i.barRadius || 0, g = A / (c + u) / o, b = m && "roundRect" in t ? "roundRect" : "rect";
26122
26117
  t.beginPath();
26123
- let C = 0, k = 0, y = 0;
26118
+ let C = 0, y = 0, k = 0;
26124
26119
  for (let w = 0; w <= o; w++) {
26125
26120
  const v = Math.round(w * g);
26126
26121
  if (v > C) {
26127
- const B = Math.round(k * d * r), I = B + Math.round(y * d * r) || 1;
26122
+ const B = Math.round(y * d * r), I = B + Math.round(k * d * r) || 1;
26128
26123
  let E = d - B;
26129
- i.barAlign === "top" ? E = 0 : i.barAlign === "bottom" && (E = f - I), t[b](C * (c + u), E, c, I, m), C = v, k = 0, y = 0;
26124
+ i.barAlign === "top" ? E = 0 : i.barAlign === "bottom" && (E = f - I), t[b](C * (c + u), E, c, I, m), C = v, y = 0, k = 0;
26130
26125
  }
26131
26126
  const p = Math.abs(s[w] || 0), x = Math.abs(a[w] || 0);
26132
- p > k && (k = p), x > y && (y = x);
26127
+ p > y && (y = p), x > k && (k = x);
26133
26128
  }
26134
26129
  t.fill(), t.closePath();
26135
26130
  }
@@ -26181,17 +26176,17 @@ class Wi extends Ht {
26181
26176
  if (b < 0 || b >= u || l[b]) return;
26182
26177
  l[b] = !0;
26183
26178
  const C = b * d;
26184
- let k = Math.min(f - C, d);
26179
+ let y = Math.min(f - C, d);
26185
26180
  if (i.barWidth || i.barGap) {
26186
26181
  const w = i.barWidth || 0.5, v = w + (i.barGap || w / 2);
26187
- k = Math.floor(k / v) * v;
26182
+ y = Math.floor(y / v) * v;
26188
26183
  }
26189
- if (k <= 0) return;
26190
- const y = e.map((w) => {
26191
- const v = Math.floor(C / f * w.length), p = Math.floor((C + k) / f * w.length);
26184
+ if (y <= 0) return;
26185
+ const k = e.map((w) => {
26186
+ const v = Math.floor(C / f * w.length), p = Math.floor((C + y) / f * w.length);
26192
26187
  return w.slice(v, p);
26193
26188
  });
26194
- this.renderSingleCanvas(y, i, k, r, C, s, a);
26189
+ this.renderSingleCanvas(k, i, y, r, C, s, a);
26195
26190
  }, u = Math.ceil(f / d);
26196
26191
  if (!this.isScrollable) {
26197
26192
  for (let b = 0; b < u; b++) c(b);
@@ -26200,8 +26195,8 @@ class Wi extends Ht {
26200
26195
  const m = this.scrollContainer.scrollLeft / f, g = Math.floor(m * u);
26201
26196
  if (c(g - 1), c(g), c(g + 1), u > 1) {
26202
26197
  const b = this.on("scroll", () => {
26203
- const { scrollLeft: C } = this.scrollContainer, k = Math.floor(C / f * u);
26204
- Object.keys(l).length > Wi.MAX_NODES && (s.innerHTML = "", a.innerHTML = "", l = {}), c(k - 1), c(k), c(k + 1);
26198
+ const { scrollLeft: C } = this.scrollContainer, y = Math.floor(C / f * u);
26199
+ Object.keys(l).length > Wi.MAX_NODES && (s.innerHTML = "", a.innerHTML = "", l = {}), c(y - 1), c(y), c(y + 1);
26205
26200
  });
26206
26201
  this.unsubscribeOnScroll.push(b);
26207
26202
  }
@@ -26651,7 +26646,7 @@ Mt.BasePlugin = class extends Ht {
26651
26646
  const nx = ({ src: n }) => {
26652
26647
  const e = de(
26653
26648
  (d) => d.chatSettingStore.config
26654
- ), i = ce(null), t = ce(null), [r, s] = H(!1), [a, o] = H(1);
26649
+ ), i = he(null), t = he(null), [r, s] = H(!1), [a, o] = H(1);
26655
26650
  se(() => (t.current = Mt.create({
26656
26651
  container: i.current,
26657
26652
  waveColor: "#C4C4C4",
@@ -26886,12 +26881,12 @@ function ws() {
26886
26881
  });
26887
26882
  }
26888
26883
  function qg(n, e, i, t, r, s, a, o, A, f) {
26889
- var d, l, c, u, m, g, b, C = t && t.__k || Gg, k = C.length;
26884
+ var d, l, c, u, m, g, b, C = t && t.__k || Gg, y = C.length;
26890
26885
  for (i.__k = [], d = 0; d < e.length; d++) if ((u = i.__k[d] = (u = e[d]) == null || typeof u == "boolean" ? null : typeof u == "string" || typeof u == "number" || typeof u == "bigint" ? qr(null, u, null, null, u) : Array.isArray(u) ? qr(Gi, {
26891
26886
  children: u
26892
26887
  }, null, null, null) : u.__b > 0 ? qr(u.type, u.props, u.key, null, u.__v) : u) != null) {
26893
26888
  if (u.__ = i, u.__b = i.__b + 1, (c = C[d]) === null || c && u.key == c.key && u.type === c.type) C[d] = void 0;
26894
- else for (l = 0; l < k; l++) {
26889
+ else for (l = 0; l < y; l++) {
26895
26890
  if ((c = C[l]) && u.key == c.key && u.type === c.type) {
26896
26891
  C[l] = void 0;
26897
26892
  break;
@@ -26900,7 +26895,7 @@ function qg(n, e, i, t, r, s, a, o, A, f) {
26900
26895
  }
26901
26896
  _f(n, u, c = c || bs, r, s, a, o, A, f), m = u.__e, (l = u.ref) && c.ref != l && (b || (b = []), c.ref && b.push(c.ref, null, u), b.push(l, u.__c || m, u)), m != null ? (g == null && (g = m), typeof u.type == "function" && u.__k === c.__k ? u.__d = A = Hg(u, A, n) : A = Ug(n, u, c, C, m, A), typeof i.type == "function" && (i.__d = A)) : A && c.__e == A && A.parentNode != n && (A = Yi(c));
26902
26897
  }
26903
- for (i.__e = g, d = k; d--; ) C[d] != null && (typeof i.type == "function" && C[d].__e != null && C[d].__e == i.__d && (i.__d = Yi(t, d + 1)), Jg(C[d], C[d]));
26898
+ for (i.__e = g, d = y; d--; ) C[d] != null && (typeof i.type == "function" && C[d].__e != null && C[d].__e == i.__d && (i.__d = Yi(t, d + 1)), Jg(C[d], C[d]));
26904
26899
  if (b) for (d = 0; d < b.length; d++) Vg(b[d], b[++d], b[++d]);
26905
26900
  }
26906
26901
  function Hg(n, e, i) {
@@ -26956,27 +26951,27 @@ function Lu(n) {
26956
26951
  this.l[n.type + !0](K.event ? K.event(n) : n);
26957
26952
  }
26958
26953
  function _f(n, e, i, t, r, s, a, o, A) {
26959
- var f, d, l, c, u, m, g, b, C, k, y, w = e.type;
26954
+ var f, d, l, c, u, m, g, b, C, y, k, w = e.type;
26960
26955
  if (e.constructor !== void 0) return null;
26961
26956
  i.__h != null && (A = i.__h, o = e.__e = i.__e, e.__h = null, s = [
26962
26957
  o
26963
26958
  ]), (f = K.__b) && f(e);
26964
26959
  try {
26965
26960
  e: if (typeof w == "function") {
26966
- if (b = e.props, C = (f = w.contextType) && t[f.__c], k = f ? C ? C.props.value : f.__ : t, i.__c ? g = (d = e.__c = i.__c).__ = d.__E : ("prototype" in w && w.prototype.render ? e.__c = d = new w(b, k) : (e.__c = d = new ln(b, k), d.constructor = w, d.render = ox), C && C.sub(d), d.props = b, d.state || (d.state = {}), d.context = k, d.__n = t, l = d.__d = !0, d.__h = []), d.__s == null && (d.__s = d.state), w.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = Fn({}, d.__s)), Fn(d.__s, w.getDerivedStateFromProps(b, d.__s))), c = d.props, u = d.state, l) w.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
26961
+ if (b = e.props, C = (f = w.contextType) && t[f.__c], y = f ? C ? C.props.value : f.__ : t, i.__c ? g = (d = e.__c = i.__c).__ = d.__E : ("prototype" in w && w.prototype.render ? e.__c = d = new w(b, y) : (e.__c = d = new ln(b, y), d.constructor = w, d.render = ox), C && C.sub(d), d.props = b, d.state || (d.state = {}), d.context = y, d.__n = t, l = d.__d = !0, d.__h = []), d.__s == null && (d.__s = d.state), w.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = Fn({}, d.__s)), Fn(d.__s, w.getDerivedStateFromProps(b, d.__s))), c = d.props, u = d.state, l) w.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), d.componentDidMount != null && d.__h.push(d.componentDidMount);
26967
26962
  else {
26968
- if (w.getDerivedStateFromProps == null && b !== c && d.componentWillReceiveProps != null && d.componentWillReceiveProps(b, k), !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(b, d.__s, k) === !1 || e.__v === i.__v) {
26963
+ if (w.getDerivedStateFromProps == null && b !== c && d.componentWillReceiveProps != null && d.componentWillReceiveProps(b, y), !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(b, d.__s, y) === !1 || e.__v === i.__v) {
26969
26964
  d.props = b, 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(v) {
26970
26965
  v && (v.__ = e);
26971
26966
  }), d.__h.length && a.push(d);
26972
26967
  break e;
26973
26968
  }
26974
- d.componentWillUpdate != null && d.componentWillUpdate(b, d.__s, k), d.componentDidUpdate != null && d.__h.push(function() {
26969
+ d.componentWillUpdate != null && d.componentWillUpdate(b, d.__s, y), d.componentDidUpdate != null && d.__h.push(function() {
26975
26970
  d.componentDidUpdate(c, u, m);
26976
26971
  });
26977
26972
  }
26978
- d.context = k, d.props = b, d.state = d.__s, (f = K.__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 = Fn(Fn({}, t), d.getChildContext())), l || d.getSnapshotBeforeUpdate == null || (m = d.getSnapshotBeforeUpdate(c, u)), y = f != null && f.type === Gi && f.key == null ? f.props.children : f, qg(n, Array.isArray(y) ? y : [
26979
- y
26973
+ d.context = y, d.props = b, d.state = d.__s, (f = K.__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 = Fn(Fn({}, t), d.getChildContext())), l || d.getSnapshotBeforeUpdate == null || (m = d.getSnapshotBeforeUpdate(c, u)), k = f != null && f.type === Gi && f.key == null ? f.props.children : f, qg(n, Array.isArray(k) ? k : [
26974
+ k
26980
26975
  ], e, i, t, r, s, a, o, A), d.base = e.__e, e.__h = null, d.__h.length && a.push(d), g && (d.__E = d.__ = null), d.__e = !1;
26981
26976
  } else s == null && e.__v === i.__v ? (e.__k = i.__k, e.__e = i.__e) : e.__e = ax(i.__e, e, i, t, r, s, a, A);
26982
26977
  (f = K.diffed) && f(e);
@@ -27520,7 +27515,7 @@ async function px(n) {
27520
27515
  g
27521
27516
  ]).map((C) => (b ? C.split(/[-|_|\s]+/) : [
27522
27517
  C
27523
- ]).map((k) => k.toLowerCase())).flat();
27518
+ ]).map((y) => y.toLowerCase())).flat();
27524
27519
  }).flat().filter((g) => g && g.trim()).join(","), c.emoticons) for (const g of c.emoticons)
27525
27520
  Ae.emoticons[g] || (Ae.emoticons[g] = c.id);
27526
27521
  let m = 0;
@@ -29748,7 +29743,7 @@ button {
29748
29743
 
29749
29744
  `;
29750
29745
  function fp(n) {
29751
- const e = ce(null), i = ce(null);
29746
+ const e = he(null), i = he(null);
29752
29747
  return i.current && i.current.update(n), se(() => (i.current = new qf({
29753
29748
  ...n,
29754
29749
  ref: e
@@ -29857,9 +29852,9 @@ const Vx = T.div`
29857
29852
  navigator.clipboard.writeText(x), m();
29858
29853
  }, C = () => {
29859
29854
  s(), m();
29860
- }, k = () => {
29855
+ }, y = () => {
29861
29856
  a(), m();
29862
- }, y = (x, B) => {
29857
+ }, k = (x, B) => {
29863
29858
  B.target !== B.currentTarget && (console.log("emoji", x), A(x.id), m());
29864
29859
  }, w = (x, B) => {
29865
29860
  B.target === B.currentTarget && (vs.emojis[x], A(x), m());
@@ -29924,7 +29919,7 @@ const Vx = T.div`
29924
29919
  {
29925
29920
  skinTonePosition: "none",
29926
29921
  searchPosition: "static",
29927
- onEmojiSelect: (x, B) => y(x, B),
29922
+ onEmojiSelect: (x, B) => k(x, B),
29928
29923
  title: "Pick emoji",
29929
29924
  emoji: "point_up",
29930
29925
  theme: "light",
@@ -29958,7 +29953,7 @@ const Vx = T.div`
29958
29953
  ] }),
29959
29954
  /* @__PURE__ */ h(Zo, {})
29960
29955
  ] }),
29961
- (e || f?.[d].role === "moderator") && /* @__PURE__ */ S(pr, { onClick: k, children: [
29956
+ (e || f?.[d].role === "moderator") && /* @__PURE__ */ S(pr, { onClick: y, children: [
29962
29957
  vr.DELETE,
29963
29958
  /* @__PURE__ */ h(br.DELETE, {}),
29964
29959
  " "
@@ -30275,15 +30270,15 @@ const Vx = T.div`
30275
30270
  x: Y,
30276
30271
  y: V
30277
30272
  });
30278
- }, g = ce(null), b = (I) => {
30273
+ }, g = he(null), b = (I) => {
30279
30274
  g.current = setTimeout(() => {
30280
30275
  m(I);
30281
30276
  }, 500);
30282
30277
  }, C = () => {
30283
30278
  g.current && (clearTimeout(g.current), g.current = null);
30284
- }, k = (I) => {
30279
+ }, y = (I) => {
30285
30280
  I?.name !== "Deleted User" && (f(Pe(me.PROFILE)), f(rf(I)));
30286
- }, y = () => {
30281
+ }, k = () => {
30287
30282
  if (f(Yn({ isEdit: !1 })), !i && n.mainMessage) {
30288
30283
  const I = JSON.parse(n.mainMessage);
30289
30284
  return f(
@@ -30352,7 +30347,7 @@ const Vx = T.div`
30352
30347
  !e && /* @__PURE__ */ h(
30353
30348
  wk,
30354
30349
  {
30355
- onClick: () => n.user.name !== "Deleted User" ? k(n.user) : null,
30350
+ onClick: () => n.user.name !== "Deleted User" ? y(n.user) : null,
30356
30351
  children: n.user?.profileImage && n.user.profileImage !== "" ? /* @__PURE__ */ h(
30357
30352
  bk,
30358
30353
  {
@@ -30383,7 +30378,7 @@ const Vx = T.div`
30383
30378
  !i && n.mainMessage && /* @__PURE__ */ h(
30384
30379
  iE,
30385
30380
  {
30386
- handleReplyMessage: y,
30381
+ handleReplyMessage: k,
30387
30382
  isUser: e,
30388
30383
  text: JSON.parse(n.mainMessage).text,
30389
30384
  color: a?.colors?.primary
@@ -30424,7 +30419,7 @@ const Vx = T.div`
30424
30419
  eE,
30425
30420
  {
30426
30421
  isUser: e,
30427
- onClick: y,
30422
+ onClick: k,
30428
30423
  reply: n?.reply,
30429
30424
  color: a.colors?.primary
30430
30425
  }
@@ -30451,7 +30446,7 @@ const Vx = T.div`
30451
30446
  message: n,
30452
30447
  setContextMenu: l,
30453
30448
  contextMenu: d,
30454
- handleReplyMessage: y,
30449
+ handleReplyMessage: k,
30455
30450
  handleDeleteMessage: w,
30456
30451
  handleEditMessage: v,
30457
30452
  handleReactionMessage: p
@@ -30511,32 +30506,32 @@ const Vx = T.div`
30511
30506
  "",
30512
30507
  b
30513
30508
  );
30514
- const y = await iu(
30509
+ const k = await iu(
30515
30510
  C.idToken || "",
30516
30511
  C.credential?.accessToken || "",
30517
30512
  b
30518
30513
  );
30519
- console.log("google log after register res", y);
30514
+ console.log("google log after register res", k);
30520
30515
  const w = {
30521
- ...y.data.user,
30522
- token: y.data.token,
30523
- refreshToken: y.data.refreshToken
30516
+ ...k.data.user,
30517
+ token: k.data.token,
30518
+ refreshToken: k.data.refreshToken
30524
30519
  };
30525
30520
  e(On(w)), gt(wi.ETHORA_USER).set(w);
30526
30521
  } catch {
30527
30522
  console.log("error registering user viag google");
30528
30523
  }
30529
30524
  if (C.idToken && C.credential && C.credential.accessToken) {
30530
- const y = await iu(
30525
+ const k = await iu(
30531
30526
  C.idToken,
30532
30527
  C.credential.accessToken,
30533
30528
  b
30534
30529
  );
30535
- console.log("google log res", y);
30530
+ console.log("google log res", k);
30536
30531
  const w = {
30537
- ...y.data.user,
30538
- token: y.data.token,
30539
- refreshToken: y.data.refreshToken
30532
+ ...k.data.user,
30533
+ token: k.data.token,
30534
+ refreshToken: k.data.refreshToken
30540
30535
  };
30541
30536
  e(On(w)), gt(wi.ETHORA_USER).set(w);
30542
30537
  }
@@ -30761,7 +30756,7 @@ const Vx = T.div`
30761
30756
  );
30762
30757
  },
30763
30758
  [n, m]
30764
- ), k = ee(
30759
+ ), y = ee(
30765
30760
  (x, B) => {
30766
30761
  d(
30767
30762
  x,
@@ -30773,7 +30768,7 @@ const Vx = T.div`
30773
30768
  );
30774
30769
  },
30775
30770
  [n]
30776
- ), y = ee(() => {
30771
+ ), k = ee(() => {
30777
30772
  A?.disableTypingIndicator || t.sendTypingRequestStanza(
30778
30773
  n.roomJid,
30779
30774
  `${e.firstName} ${e.lastName}`,
@@ -30855,10 +30850,10 @@ const Vx = T.div`
30855
30850
  ym,
30856
30851
  {
30857
30852
  editMessage: o.text,
30858
- sendMedia: k,
30853
+ sendMedia: y,
30859
30854
  sendMessage: o.isEdit ? l : C,
30860
30855
  config: A,
30861
- onFocus: y,
30856
+ onFocus: k,
30862
30857
  onBlur: w,
30863
30858
  isLoading: s
30864
30859
  }
@@ -30878,7 +30873,7 @@ const Vx = T.div`
30878
30873
  handleCloseModal: A,
30879
30874
  handleClick: f
30880
30875
  }) => {
30881
- const d = ce(null);
30876
+ const d = he(null);
30882
30877
  return /* @__PURE__ */ h(Vi, { children: /* @__PURE__ */ S(Qi, { style: { maxWidth: "640px" }, children: [
30883
30878
  /* @__PURE__ */ h(li, { onClick: A, style: { fontSize: 24 }, children: "×" }),
30884
30879
  n ? /* @__PURE__ */ h(n, {}) : /* @__PURE__ */ h(Oi, { children: e }),
@@ -31150,7 +31145,7 @@ const ME = ({
31150
31145
  wasAutoSelected: e,
31151
31146
  config: i
31152
31147
  }) => {
31153
- const t = ve(), [r, s] = H(!1), [a, o] = H(!1), [A, f] = H(!1), { client: d, initializeClient: l, setClient: c } = Ue(), u = Qg(), { rooms: m } = de((y) => y.rooms), { roomsList: g } = nn(), { user: b } = Ye();
31148
+ const t = ve(), [r, s] = H(!1), [a, o] = H(!1), [A, f] = H(!1), { client: d, initializeClient: l, setClient: c } = Ue(), u = Qg(), { rooms: m } = de((k) => k.rooms), { roomsList: g } = nn(), { user: b } = Ye();
31154
31149
  se(() => () => {
31155
31150
  d && b.xmppPassword === "" && (console.log("closing client"), d.close(), c(null));
31156
31151
  }, [b.xmppPassword]);
@@ -31165,11 +31160,11 @@ const ME = ({
31165
31160
  return;
31166
31161
  }
31167
31162
  f(!1);
31168
- }, k = async (y, w = !1) => {
31163
+ }, y = async (k, w = !1) => {
31169
31164
  !w && t(
31170
31165
  Oe({ loading: !0, loadingText: "Loading rooms..." })
31171
31166
  );
31172
- const v = await u(y, i);
31167
+ const v = await u(k, i);
31173
31168
  return t(Oe({ loading: !1, loadingText: void 0 })), v;
31174
31169
  };
31175
31170
  return se(() => {
@@ -31199,7 +31194,7 @@ const ME = ({
31199
31194
  if (g && Object.keys(g).length > 0)
31200
31195
  s(!0), await Ph(w, g);
31201
31196
  else if (i?.newArch) {
31202
- const v = await k(w);
31197
+ const v = await y(w);
31203
31198
  i?.enableRoomsRetry?.enabled && (qA(
31204
31199
  n,
31205
31200
  v
@@ -31229,7 +31224,7 @@ const ME = ({
31229
31224
  setShowModal: o
31230
31225
  };
31231
31226
  }, RE = (n) => {
31232
- const e = ve(), { queue: i } = dp(), t = ce(!1), r = ce(/* @__PURE__ */ new Map()), s = ee(async () => {
31227
+ const e = ve(), { queue: i } = dp(), t = he(!1), r = he(/* @__PURE__ */ new Map()), s = ee(async () => {
31233
31228
  if (!(!n || i.length === 0)) {
31234
31229
  if (!n.presencesReady) {
31235
31230
  console.warn("Presences not ready, delaying heap send");
@@ -31278,7 +31273,7 @@ const ME = ({
31278
31273
  }
31279
31274
  }
31280
31275
  }
31281
- }, [n, i, e]), a = ce(!1);
31276
+ }, [n, i, e]), a = he(!1);
31282
31277
  return se(() => {
31283
31278
  const o = !!n?.presencesReady, A = a.current;
31284
31279
  a.current = o, !A && o && i.length > 0 && s();
@@ -31309,7 +31304,7 @@ const ME = ({
31309
31304
  A(M);
31310
31305
  }, { rooms: g, activeRoomJID: b, reportRoom: C } = de(
31311
31306
  (M) => M.rooms
31312
- ), { loadingText: k } = nn(), y = ke(() => {
31307
+ ), { loadingText: y } = nn(), k = ke(() => {
31313
31308
  if (b)
31314
31309
  return g[b]?.messages?.find(
31315
31310
  (M) => M?.activeMessage
@@ -31339,7 +31334,7 @@ const ME = ({
31339
31334
  style: { alignItems: "center", flexDirection: "column", gap: "10px" },
31340
31335
  children: [
31341
31336
  /* @__PURE__ */ h(un, { color: i?.colors?.primary, style: { margin: "0px" } }),
31342
- k && /* @__PURE__ */ h("div", { children: k })
31337
+ y && /* @__PURE__ */ h("div", { children: y })
31343
31338
  ]
31344
31339
  }
31345
31340
  ) : r.xmppPassword === "" && r.xmppUsername === "" ? /* @__PURE__ */ h(cp, { config: i }) : /* @__PURE__ */ S(we, { children: [
@@ -31371,10 +31366,10 @@ const ME = ({
31371
31366
  onRoomClick: w
31372
31367
  }
31373
31368
  )),
31374
- f ? o ? y?.activeMessage ? /* @__PURE__ */ h(
31369
+ f ? o ? k?.activeMessage ? /* @__PURE__ */ h(
31375
31370
  r1,
31376
31371
  {
31377
- activeMessage: y,
31372
+ activeMessage: k,
31378
31373
  user: r,
31379
31374
  customMessageComponent: e || at
31380
31375
  }
@@ -31390,10 +31385,10 @@ const ME = ({
31390
31385
  CustomMessageComponent: e || at,
31391
31386
  handleBackClick: m
31392
31387
  }
31393
- ) : null : y?.activeMessage ? /* @__PURE__ */ h(
31388
+ ) : null : k?.activeMessage ? /* @__PURE__ */ h(
31394
31389
  r1,
31395
31390
  {
31396
- activeMessage: y,
31391
+ activeMessage: k,
31397
31392
  user: r,
31398
31393
  customMessageComponent: e || at
31399
31394
  }
@@ -31420,7 +31415,7 @@ const ME = ({
31420
31415
  style: { alignItems: "center", flexDirection: "column", gap: "10px" },
31421
31416
  children: [
31422
31417
  /* @__PURE__ */ h(un, { color: i?.colors?.primary, style: { margin: "0px" } }),
31423
- k && /* @__PURE__ */ h("div", { children: k })
31418
+ y && /* @__PURE__ */ h("div", { children: y })
31424
31419
  ]
31425
31420
  }
31426
31421
  ),