@elcrm/telegram 0.0.63 → 0.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import P, { useState as Ot, useEffect as Tt } from "react";
2
- import './index.css';var jt = { exports: {} }, Ve = {};
2
+ import './index.css';var Ct = { exports: {} }, Ve = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -10,18 +10,18 @@ import './index.css';var jt = { exports: {} }, Ve = {};
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
12
  var Pt;
13
- function Wt() {
13
+ function Vt() {
14
14
  if (Pt) return Ve;
15
15
  Pt = 1;
16
- var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function C(_, d, k) {
18
- var v, x = {}, I = null, A = null;
19
- k !== void 0 && (I = "" + k), d.key !== void 0 && (I = "" + d.key), d.ref !== void 0 && (A = d.ref);
20
- for (v in d) c.call(d, v) && !y.hasOwnProperty(v) && (x[v] = d[v]);
21
- if (_ && _.defaultProps) for (v in d = _.defaultProps, d) x[v] === void 0 && (x[v] = d[v]);
22
- return { $$typeof: o, type: _, key: I, ref: A, props: x, _owner: m.current };
16
+ var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function j(k, d, x) {
18
+ var p, R = {}, I = null, A = null;
19
+ x !== void 0 && (I = "" + x), d.key !== void 0 && (I = "" + d.key), d.ref !== void 0 && (A = d.ref);
20
+ for (p in d) u.call(d, p) && !y.hasOwnProperty(p) && (R[p] = d[p]);
21
+ if (k && k.defaultProps) for (p in d = k.defaultProps, d) R[p] === void 0 && (R[p] = d[p]);
22
+ return { $$typeof: o, type: k, key: I, ref: A, props: R, _owner: m.current };
23
23
  }
24
- return Ve.Fragment = l, Ve.jsx = C, Ve.jsxs = C, Ve;
24
+ return Ve.Fragment = l, Ve.jsx = j, Ve.jsxs = j, Ve;
25
25
  }
26
26
  var ze = {};
27
27
  /**
@@ -34,16 +34,16 @@ var ze = {};
34
34
  * LICENSE file in the root directory of this source tree.
35
35
  */
36
36
  var At;
37
- function Vt() {
37
+ function zt() {
38
38
  return At || (At = 1, process.env.NODE_ENV !== "production" && function() {
39
- var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), V = Symbol.iterator, Re = "@@iterator";
40
- function _e(e) {
39
+ var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), k = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), V = Symbol.iterator, _e = "@@iterator";
40
+ function Re(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
43
- var t = V && e[V] || e[Re];
43
+ var t = V && e[V] || e[_e];
44
44
  return typeof t == "function" ? t : null;
45
45
  }
46
- var $ = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
46
+ var N = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
47
  function S(e) {
48
48
  {
49
49
  for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
@@ -53,18 +53,18 @@ function Vt() {
53
53
  }
54
54
  function ye(e, t, r) {
55
55
  {
56
- var a = $.ReactDebugCurrentFrame, f = a.getStackAddendum();
56
+ var a = N.ReactDebugCurrentFrame, f = a.getStackAddendum();
57
57
  f !== "" && (t += "%s", r = r.concat([f]));
58
- var p = r.map(function(s) {
58
+ var v = r.map(function(s) {
59
59
  return String(s);
60
60
  });
61
- p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
61
+ v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
62
62
  }
63
63
  }
64
64
  var ke = !1, Ee = !1, h = !1, E = !1, F = !1, M;
65
65
  M = Symbol.for("react.module.reference");
66
66
  function U(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || F || e === m || e === k || e === v || E || e === A || ke || Ee || h || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === x || e.$$typeof === C || e.$$typeof === _ || e.$$typeof === d || // This needs to include all possible module reference object
67
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === y || F || e === m || e === x || e === p || E || e === A || ke || Ee || h || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === R || e.$$typeof === j || e.$$typeof === k || e.$$typeof === d || // This needs to include all possible module reference object
68
68
  // types supported by any Flight configuration anywhere since
69
69
  // we don't know which Flight build this will end up being used
70
70
  // with.
@@ -88,7 +88,7 @@ function Vt() {
88
88
  if (typeof e == "string")
89
89
  return e;
90
90
  switch (e) {
91
- case c:
91
+ case u:
92
92
  return "Fragment";
93
93
  case l:
94
94
  return "Portal";
@@ -96,28 +96,28 @@ function Vt() {
96
96
  return "Profiler";
97
97
  case m:
98
98
  return "StrictMode";
99
- case k:
99
+ case x:
100
100
  return "Suspense";
101
- case v:
101
+ case p:
102
102
  return "SuspenseList";
103
103
  }
104
104
  if (typeof e == "object")
105
105
  switch (e.$$typeof) {
106
- case _:
106
+ case k:
107
107
  var t = e;
108
108
  return ae(t) + ".Consumer";
109
- case C:
109
+ case j:
110
110
  var r = e;
111
111
  return ae(r._context) + ".Provider";
112
112
  case d:
113
113
  return oe(e, e.render, "ForwardRef");
114
- case x:
114
+ case R:
115
115
  var a = e.displayName || null;
116
116
  return a !== null ? a : B(e.type) || "Memo";
117
117
  case I: {
118
- var f = e, p = f._payload, s = f._init;
118
+ var f = e, v = f._payload, s = f._init;
119
119
  try {
120
- return B(s(p));
120
+ return B(s(v));
121
121
  } catch {
122
122
  return null;
123
123
  }
@@ -125,18 +125,18 @@ function Vt() {
125
125
  }
126
126
  return null;
127
127
  }
128
- var D = Object.assign, N = 0, q, K, G, Se, xe, Oe, Te;
129
- function je() {
128
+ var D = Object.assign, $ = 0, q, K, G, Se, xe, Oe, Te;
129
+ function Ce() {
130
130
  }
131
- je.__reactDisabledLog = !0;
131
+ Ce.__reactDisabledLog = !0;
132
132
  function Qe() {
133
133
  {
134
- if (N === 0) {
134
+ if ($ === 0) {
135
135
  q = console.log, K = console.info, G = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed, Te = console.groupEnd;
136
136
  var e = {
137
137
  configurable: !0,
138
138
  enumerable: !0,
139
- value: je,
139
+ value: Ce,
140
140
  writable: !0
141
141
  };
142
142
  Object.defineProperties(console, {
@@ -149,12 +149,12 @@ function Vt() {
149
149
  groupEnd: e
150
150
  });
151
151
  }
152
- N++;
152
+ $++;
153
153
  }
154
154
  }
155
155
  function et() {
156
156
  {
157
- if (N--, N === 0) {
157
+ if ($--, $ === 0) {
158
158
  var e = {
159
159
  configurable: !0,
160
160
  enumerable: !0,
@@ -184,11 +184,11 @@ function Vt() {
184
184
  })
185
185
  });
186
186
  }
187
- N < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ $ < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
- var se = $.ReactCurrentDispatcher, le;
191
- function X(e, t, r) {
190
+ var se = N.ReactCurrentDispatcher, le;
191
+ function H(e, t, r) {
192
192
  {
193
193
  if (le === void 0)
194
194
  try {
@@ -201,16 +201,16 @@ function Vt() {
201
201
  ` + le + e;
202
202
  }
203
203
  }
204
- var ue = !1, H;
204
+ var ue = !1, X;
205
205
  {
206
206
  var tt = typeof WeakMap == "function" ? WeakMap : Map;
207
- H = new tt();
207
+ X = new tt();
208
208
  }
209
- function Ce(e, t) {
209
+ function je(e, t) {
210
210
  if (!e || ue)
211
211
  return "";
212
212
  {
213
- var r = H.get(e);
213
+ var r = X.get(e);
214
214
  if (r !== void 0)
215
215
  return r;
216
216
  }
@@ -218,8 +218,8 @@ function Vt() {
218
218
  ue = !0;
219
219
  var f = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
- var p;
222
- p = se.current, se.current = null, Qe();
221
+ var v;
222
+ v = se.current, se.current = null, Qe();
223
223
  try {
224
224
  if (t) {
225
225
  var s = function() {
@@ -256,29 +256,29 @@ function Vt() {
256
256
  if (T && a && typeof T.stack == "string") {
257
257
  for (var i = T.stack.split(`
258
258
  `), O = a.stack.split(`
259
- `), b = i.length - 1, R = O.length - 1; b >= 1 && R >= 0 && i[b] !== O[R]; )
260
- R--;
261
- for (; b >= 1 && R >= 0; b--, R--)
262
- if (i[b] !== O[R]) {
263
- if (b !== 1 || R !== 1)
259
+ `), b = i.length - 1, _ = O.length - 1; b >= 1 && _ >= 0 && i[b] !== O[_]; )
260
+ _--;
261
+ for (; b >= 1 && _ >= 0; b--, _--)
262
+ if (i[b] !== O[_]) {
263
+ if (b !== 1 || _ !== 1)
264
264
  do
265
- if (b--, R--, R < 0 || i[b] !== O[R]) {
265
+ if (b--, _--, _ < 0 || i[b] !== O[_]) {
266
266
  var w = `
267
267
  ` + i[b].replace(" at new ", " at ");
268
- return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, w), w;
268
+ return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, w), w;
269
269
  }
270
- while (b >= 1 && R >= 0);
270
+ while (b >= 1 && _ >= 0);
271
271
  break;
272
272
  }
273
273
  }
274
274
  } finally {
275
- ue = !1, se.current = p, et(), Error.prepareStackTrace = f;
275
+ ue = !1, se.current = v, et(), Error.prepareStackTrace = f;
276
276
  }
277
- var W = e ? e.displayName || e.name : "", L = W ? X(W) : "";
278
- return typeof e == "function" && H.set(e, L), L;
277
+ var W = e ? e.displayName || e.name : "", L = W ? H(W) : "";
278
+ return typeof e == "function" && X.set(e, L), L;
279
279
  }
280
280
  function rt(e, t, r) {
281
- return Ce(e, !1);
281
+ return je(e, !1);
282
282
  }
283
283
  function nt(e) {
284
284
  var t = e.prototype;
@@ -288,32 +288,32 @@ function Vt() {
288
288
  if (e == null)
289
289
  return "";
290
290
  if (typeof e == "function")
291
- return Ce(e, nt(e));
291
+ return je(e, nt(e));
292
292
  if (typeof e == "string")
293
- return X(e);
293
+ return H(e);
294
294
  switch (e) {
295
- case k:
296
- return X("Suspense");
297
- case v:
298
- return X("SuspenseList");
295
+ case x:
296
+ return H("Suspense");
297
+ case p:
298
+ return H("SuspenseList");
299
299
  }
300
300
  if (typeof e == "object")
301
301
  switch (e.$$typeof) {
302
302
  case d:
303
303
  return rt(e.render);
304
- case x:
304
+ case R:
305
305
  return Q(e.type, t, r);
306
306
  case I: {
307
- var a = e, f = a._payload, p = a._init;
307
+ var a = e, f = a._payload, v = a._init;
308
308
  try {
309
- return Q(p(f), t, r);
309
+ return Q(v(f), t, r);
310
310
  } catch {
311
311
  }
312
312
  }
313
313
  }
314
314
  return "";
315
315
  }
316
- var z = Object.prototype.hasOwnProperty, we = {}, Pe = $.ReactDebugCurrentFrame;
316
+ var z = Object.prototype.hasOwnProperty, we = {}, Pe = N.ReactDebugCurrentFrame;
317
317
  function ee(e) {
318
318
  if (e) {
319
319
  var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
@@ -323,9 +323,9 @@ function Vt() {
323
323
  }
324
324
  function ot(e, t, r, a, f) {
325
325
  {
326
- var p = Function.call.bind(z);
326
+ var v = Function.call.bind(z);
327
327
  for (var s in e)
328
- if (p(e, s)) {
328
+ if (v(e, s)) {
329
329
  var i = void 0;
330
330
  try {
331
331
  if (typeof e[s] != "function") {
@@ -364,7 +364,7 @@ function Vt() {
364
364
  if (st(e))
365
365
  return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", it(e)), Ae(e);
366
366
  }
367
- var Ie = $.ReactCurrentOwner, lt = {
367
+ var Ie = N.ReactCurrentOwner, lt = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
@@ -411,7 +411,7 @@ function Vt() {
411
411
  });
412
412
  }
413
413
  }
414
- var vt = function(e, t, r, a, f, p, s) {
414
+ var vt = function(e, t, r, a, f, v, s) {
415
415
  var i = {
416
416
  // This tag allows us to uniquely identify this as a React Element
417
417
  $$typeof: o,
@@ -421,7 +421,7 @@ function Vt() {
421
421
  ref: r,
422
422
  props: s,
423
423
  // Record the component responsible for creating this element.
424
- _owner: p
424
+ _owner: v
425
425
  };
426
426
  return i._store = {}, Object.defineProperty(i._store, "validated", {
427
427
  configurable: !1,
@@ -442,23 +442,23 @@ function Vt() {
442
442
  };
443
443
  function gt(e, t, r, a, f) {
444
444
  {
445
- var p, s = {}, i = null, O = null;
445
+ var v, s = {}, i = null, O = null;
446
446
  r !== void 0 && (Be(r), i = "" + r), ct(t) && (Be(t.key), i = "" + t.key), ut(t) && (O = t.ref, ft(t, f));
447
- for (p in t)
448
- z.call(t, p) && !lt.hasOwnProperty(p) && (s[p] = t[p]);
447
+ for (v in t)
448
+ z.call(t, v) && !lt.hasOwnProperty(v) && (s[v] = t[v]);
449
449
  if (e && e.defaultProps) {
450
450
  var b = e.defaultProps;
451
- for (p in b)
452
- s[p] === void 0 && (s[p] = b[p]);
451
+ for (v in b)
452
+ s[v] === void 0 && (s[v] = b[v]);
453
453
  }
454
454
  if (i || O) {
455
- var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- i && dt(s, R), O && pt(s, R);
455
+ var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
+ i && dt(s, _), O && pt(s, _);
457
457
  }
458
458
  return vt(e, i, O, f, a, Ie.current, s);
459
459
  }
460
460
  }
461
- var fe = $.ReactCurrentOwner, Me = $.ReactDebugCurrentFrame;
461
+ var fe = N.ReactCurrentOwner, Me = N.ReactDebugCurrentFrame;
462
462
  function Y(e) {
463
463
  if (e) {
464
464
  var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
@@ -471,7 +471,7 @@ function Vt() {
471
471
  function pe(e) {
472
472
  return typeof e == "object" && e !== null && e.$$typeof === o;
473
473
  }
474
- function Ne() {
474
+ function $e() {
475
475
  {
476
476
  if (fe.current) {
477
477
  var e = B(fe.current.type);
@@ -486,10 +486,10 @@ Check the render method of \`` + e + "`.";
486
486
  function mt(e) {
487
487
  return "";
488
488
  }
489
- var $e = {};
489
+ var Ne = {};
490
490
  function yt(e) {
491
491
  {
492
- var t = Ne();
492
+ var t = $e();
493
493
  if (!t) {
494
494
  var r = typeof e == "string" ? e : e.displayName || e.name;
495
495
  r && (t = `
@@ -505,9 +505,9 @@ Check the top-level render call using <` + r + ">.");
505
505
  return;
506
506
  e._store.validated = !0;
507
507
  var r = yt(t);
508
- if ($e[r])
508
+ if (Ne[r])
509
509
  return;
510
- $e[r] = !0;
510
+ Ne[r] = !0;
511
511
  var a = "";
512
512
  e && e._owner && e._owner !== fe.current && (a = " It was passed a child from " + B(e._owner.type) + "."), Y(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, a), Y(null);
513
513
  }
@@ -524,9 +524,9 @@ Check the top-level render call using <` + r + ">.");
524
524
  else if (pe(e))
525
525
  e._store && (e._store.validated = !0);
526
526
  else if (e) {
527
- var f = _e(e);
527
+ var f = Re(e);
528
528
  if (typeof f == "function" && f !== e.entries)
529
- for (var p = f.call(e), s; !(s = p.next()).done; )
529
+ for (var v = f.call(e), s; !(s = v.next()).done; )
530
530
  pe(s.value) && Le(s.value, t);
531
531
  }
532
532
  }
@@ -541,7 +541,7 @@ Check the top-level render call using <` + r + ">.");
541
541
  r = t.propTypes;
542
542
  else if (typeof t == "object" && (t.$$typeof === d || // Note: Memo only checks outer props here.
543
543
  // Inner props are checked in the reconciler.
544
- t.$$typeof === x))
544
+ t.$$typeof === R))
545
545
  r = t.propTypes;
546
546
  else
547
547
  return;
@@ -569,20 +569,20 @@ Check the top-level render call using <` + r + ">.");
569
569
  }
570
570
  }
571
571
  var Ye = {};
572
- function We(e, t, r, a, f, p) {
572
+ function We(e, t, r, a, f, v) {
573
573
  {
574
574
  var s = U(e);
575
575
  if (!s) {
576
576
  var i = "";
577
577
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
578
578
  var O = mt();
579
- O ? i += O : i += Ne();
579
+ O ? i += O : i += $e();
580
580
  var b;
581
581
  e === null ? b = "null" : ce(e) ? b = "array" : e !== void 0 && e.$$typeof === o ? (b = "<" + (B(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, i);
582
582
  }
583
- var R = gt(e, t, r, f, p);
584
- if (R == null)
585
- return R;
583
+ var _ = gt(e, t, r, f, v);
584
+ if (_ == null)
585
+ return _;
586
586
  if (s) {
587
587
  var w = t.children;
588
588
  if (w !== void 0)
@@ -610,60 +610,60 @@ React keys must be passed directly to JSX without using spread:
610
610
  <%s key={someKey} {...props} />`, ve, L, St, L), Ye[L + ve] = !0;
611
611
  }
612
612
  }
613
- return e === c ? bt(R) : ht(R), R;
613
+ return e === u ? bt(_) : ht(_), _;
614
614
  }
615
615
  }
616
- function Rt(e, t, r) {
616
+ function _t(e, t, r) {
617
617
  return We(e, t, r, !0);
618
618
  }
619
- function _t(e, t, r) {
619
+ function Rt(e, t, r) {
620
620
  return We(e, t, r, !1);
621
621
  }
622
- var kt = _t, Et = Rt;
623
- ze.Fragment = c, ze.jsx = kt, ze.jsxs = Et;
622
+ var kt = Rt, Et = _t;
623
+ ze.Fragment = u, ze.jsx = kt, ze.jsxs = Et;
624
624
  }()), ze;
625
625
  }
626
- process.env.NODE_ENV === "production" ? jt.exports = Wt() : jt.exports = Vt();
627
- var u = jt.exports;
626
+ process.env.NODE_ENV === "production" ? Ct.exports = Vt() : Ct.exports = zt();
627
+ var c = Ct.exports;
628
628
  let Z = {};
629
- var Ct;
629
+ var jt;
630
630
  ((n) => {
631
- function o({ children: _ }) {
632
- const [d, k] = Ot(!1), [v, x] = Ot(!1);
631
+ function o({ children: k }) {
632
+ const [d, x] = Ot(!1), [p, R] = Ot(!1);
633
633
  if (Z.onClose = () => {
634
- g.BackButton.set(!1), x(!0), setTimeout(() => {
635
- k(!1), x(!1);
634
+ g.BackButton.set(!1), R(!0), setTimeout(() => {
635
+ x(!1), R(!1);
636
636
  }, 300);
637
637
  }, Tt(() => {
638
638
  d ? Z.onClose() : (g.BackButton.set({
639
639
  callback: () => Z.onClose()
640
- }), k(!0));
640
+ }), x(!0));
641
641
  }, []), !!d)
642
- return /* @__PURE__ */ u.jsx("div", { className: `modal-overlay ${v ? "closing" : ""}`, children: /* @__PURE__ */ u.jsx("div", { className: `modal-popup ${v ? "closing" : ""}`, children: /* @__PURE__ */ u.jsx("div", { children: _ }) }) });
642
+ return /* @__PURE__ */ c.jsx("div", { className: `modal-overlay ${p ? "closing" : ""}`, children: /* @__PURE__ */ c.jsx("div", { className: `modal-popup ${p ? "closing" : ""}`, children: /* @__PURE__ */ c.jsx("div", { children: k }) }) });
643
643
  }
644
644
  n.Content = o;
645
645
  function l({
646
- import_modules: _
646
+ import_modules: k
647
647
  }) {
648
- let [d, k] = Ot([]);
649
- return Z.x = (v) => {
650
- k(v ? d.filter((x) => x.key !== v) : []);
648
+ let [d, x] = Ot([]);
649
+ return Z.x = (p) => {
650
+ x(p ? d.filter((R) => R.key !== p) : []);
651
651
  }, Tt(() => {
652
- _ && (Z.i = _);
653
- }, []), Z.add = (v, x = Date.now()) => {
654
- k([...d, { key: x, item: v }]);
655
- }, /* @__PURE__ */ u.jsx(u.Fragment, { children: d.map((v) => v.item) });
652
+ k && (Z.i = k);
653
+ }, []), Z.add = (p, R = Date.now()) => {
654
+ x([...d, { key: R, item: p }]);
655
+ }, /* @__PURE__ */ c.jsx(c.Fragment, { children: d.map((p) => p.item) });
656
656
  }
657
657
  n.Init = l;
658
- function c(_, d) {
659
- Z.add(/* @__PURE__ */ u.jsx(o, { children: _ }, String(Date.now())), d);
658
+ function u(k, d) {
659
+ Z.add(/* @__PURE__ */ c.jsx(o, { children: k }, String(Date.now())), d);
660
660
  }
661
- n.Add = c;
662
- function m(_) {
661
+ n.Add = u;
662
+ function m(k) {
663
663
  return {
664
- Open: (v) => {
664
+ Open: (p) => {
665
665
  n.Add(
666
- /* @__PURE__ */ u.jsx(_, { ...v }, (/* @__PURE__ */ new Date()).getTime())
666
+ /* @__PURE__ */ c.jsx(k, { ...p }, (/* @__PURE__ */ new Date()).getTime())
667
667
  );
668
668
  }
669
669
  };
@@ -673,14 +673,14 @@ var Ct;
673
673
  Z.onClose();
674
674
  }
675
675
  n.Close = y;
676
- function C(_, d, k) {
677
- Z.i && Z.i(`${_}/modals/${d}.tsx`).then((v) => {
678
- v.default.Open(k);
676
+ function j(k, d, x) {
677
+ Z.i && Z.i(`${k}/modals/${d}.tsx`).then((p) => {
678
+ p.default.Open(x);
679
679
  });
680
680
  }
681
- n.Open = C;
682
- })(Ct || (Ct = {}));
683
- function Mt() {
681
+ n.Open = j;
682
+ })(jt || (jt = {}));
683
+ function $t() {
684
684
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
685
685
  }
686
686
  const Nt = {
@@ -689,70 +689,70 @@ const Nt = {
689
689
  saltLength: 16
690
690
  };
691
691
  function Bt(n) {
692
- const o = Mt();
692
+ const o = $t();
693
693
  o.CRYPTO_PARAMS ? o.CRYPTO_PARAMS = { ...o.CRYPTO_PARAMS, ...n } : o.CRYPTO_PARAMS = { ...Nt, ...n };
694
694
  }
695
695
  function Ge() {
696
- return Mt().CRYPTO_PARAMS || Nt;
696
+ return $t().CRYPTO_PARAMS || Nt;
697
697
  }
698
698
  const Ze = (n) => {
699
699
  let o = 0;
700
- for (let c = 0; c < n.length; c++) {
701
- const m = n.charCodeAt(c);
700
+ for (let u = 0; u < n.length; u++) {
701
+ const m = n.charCodeAt(u);
702
702
  o = (o << 5) - o + m, o = o & o;
703
703
  }
704
704
  o = Math.abs(o);
705
705
  let l = "";
706
- for (let c = 0; c < 64; c++) {
707
- const m = (o ^ c * 197) & 255;
706
+ for (let u = 0; u < 64; u++) {
707
+ const m = (o ^ u * 197) & 255;
708
708
  l += m.toString(16).padStart(2, "0");
709
709
  }
710
710
  return l;
711
- }, $t = (n, o) => {
711
+ }, Lt = (n, o) => {
712
712
  let l = n + o;
713
713
  for (let m = 0; m < Ge().iterations; m++)
714
714
  l = Ze(l);
715
- const c = new Uint8Array(32);
715
+ const u = new Uint8Array(32);
716
716
  for (let m = 0; m < 32; m++)
717
- c[m] = parseInt(l.substring(m * 2, m * 2 + 2), 16);
718
- return c;
719
- }, Lt = (n, o) => {
720
- const l = new Uint8Array(n.length), c = new Uint8Array(n.length);
717
+ u[m] = parseInt(l.substring(m * 2, m * 2 + 2), 16);
718
+ return u;
719
+ }, Ut = (n, o) => {
720
+ const l = new Uint8Array(n.length), u = new Uint8Array(n.length);
721
721
  let m = 0;
722
722
  for (let y = 0; y < n.length; y++) {
723
- const C = y % o.length;
724
- m = o[C] + y + m & 255, c[y] = m;
723
+ const j = y % o.length;
724
+ m = o[j] + y + m & 255, u[y] = m;
725
725
  }
726
726
  for (let y = 0; y < n.length; y++)
727
- l[y] = n[y] ^ c[y];
727
+ l[y] = n[y] ^ u[y];
728
728
  return l;
729
- }, zt = (n) => new TextEncoder().encode(n), Jt = (n) => new TextDecoder().decode(n), qt = (n) => {
729
+ }, Jt = (n) => new TextEncoder().encode(n), qt = (n) => new TextDecoder().decode(n), Kt = (n) => {
730
730
  let o = "";
731
731
  for (let l = 0; l < n.length; l += 8192) {
732
- const c = n.slice(l, Math.min(l + 8192, n.length));
733
- o += String.fromCharCode.apply(null, Array.from(c));
732
+ const u = n.slice(l, Math.min(l + 8192, n.length));
733
+ o += String.fromCharCode.apply(null, Array.from(u));
734
734
  }
735
735
  return btoa(o);
736
- }, Kt = (n) => {
736
+ }, Gt = (n) => {
737
737
  const o = atob(n), l = new Uint8Array(o.length);
738
- for (let c = 0; c < o.length; c++)
739
- l[c] = o.charCodeAt(c);
738
+ for (let u = 0; u < o.length; u++)
739
+ l[u] = o.charCodeAt(u);
740
740
  return l;
741
- }, Gt = (n) => {
741
+ }, Zt = (n) => {
742
742
  try {
743
743
  const o = Ze(
744
744
  Date.now().toString() + Math.random()
745
- ).substring(0, Ge().saltLength * 2), l = Ze(n + o).substring(0, 8), c = $t(Ge().key, o), m = zt(n), y = Lt(m, c), C = qt(y);
746
- return `${o}.${C}.${l}`;
745
+ ).substring(0, Ge().saltLength * 2), l = Ze(n + o).substring(0, 8), u = Lt(Ge().key, o), m = Jt(n), y = Ut(m, u), j = Kt(y);
746
+ return `${o}.${j}.${l}`;
747
747
  } catch {
748
748
  throw new Error("Не удалось зашифровать данные");
749
749
  }
750
- }, Zt = (n) => {
750
+ }, Ht = (n) => {
751
751
  try {
752
752
  const o = n.split(".");
753
753
  if (o.length !== 3)
754
754
  throw new Error("Неверный формат зашифрованных данных");
755
- const l = o[0], c = o[1], m = o[2], y = $t(Ge().key, l), C = Kt(c), _ = Lt(C, y), d = Jt(_);
755
+ const l = o[0], u = o[1], m = o[2], y = Lt(Ge().key, l), j = Gt(u), k = Ut(j, y), d = qt(k);
756
756
  if (Ze(d + l).substring(
757
757
  0,
758
758
  8
@@ -770,7 +770,7 @@ var ie;
770
770
  }, n.enCode = (o) => {
771
771
  try {
772
772
  const l = JSON.stringify(o);
773
- return Gt(l);
773
+ return Zt(l);
774
774
  } catch {
775
775
  throw new Error("Не удалось зашифровать объект");
776
776
  }
@@ -778,7 +778,7 @@ var ie;
778
778
  try {
779
779
  if (!o || o.length < 10)
780
780
  return !1;
781
- const l = Zt(o);
781
+ const l = Ht(o);
782
782
  return l && JSON.parse(l) || !1;
783
783
  } catch {
784
784
  return !1;
@@ -801,15 +801,15 @@ var It;
801
801
  function Xt() {
802
802
  if (It) return Je;
803
803
  It = 1;
804
- var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
805
- function C(_, d, k) {
806
- var v, x = {}, I = null, A = null;
807
- k !== void 0 && (I = "" + k), d.key !== void 0 && (I = "" + d.key), d.ref !== void 0 && (A = d.ref);
808
- for (v in d) c.call(d, v) && !y.hasOwnProperty(v) && (x[v] = d[v]);
809
- if (_ && _.defaultProps) for (v in d = _.defaultProps, d) x[v] === void 0 && (x[v] = d[v]);
810
- return { $$typeof: o, type: _, key: I, ref: A, props: x, _owner: m.current };
804
+ var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
805
+ function j(k, d, x) {
806
+ var p, R = {}, I = null, A = null;
807
+ x !== void 0 && (I = "" + x), d.key !== void 0 && (I = "" + d.key), d.ref !== void 0 && (A = d.ref);
808
+ for (p in d) u.call(d, p) && !y.hasOwnProperty(p) && (R[p] = d[p]);
809
+ if (k && k.defaultProps) for (p in d = k.defaultProps, d) R[p] === void 0 && (R[p] = d[p]);
810
+ return { $$typeof: o, type: k, key: I, ref: A, props: R, _owner: m.current };
811
811
  }
812
- return Je.Fragment = l, Je.jsx = C, Je.jsxs = C, Je;
812
+ return Je.Fragment = l, Je.jsx = j, Je.jsxs = j, Je;
813
813
  }
814
814
  var Ke = {};
815
815
  /**
@@ -822,16 +822,16 @@ var Ke = {};
822
822
  * LICENSE file in the root directory of this source tree.
823
823
  */
824
824
  var Ft;
825
- function Ht() {
825
+ function Qt() {
826
826
  return Ft || (Ft = 1, process.env.NODE_ENV !== "production" && function() {
827
- var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), V = Symbol.iterator, Re = "@@iterator";
828
- function _e(e) {
827
+ var n = P, o = Symbol.for("react.element"), l = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), k = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), V = Symbol.iterator, _e = "@@iterator";
828
+ function Re(e) {
829
829
  if (e === null || typeof e != "object")
830
830
  return null;
831
- var t = V && e[V] || e[Re];
831
+ var t = V && e[V] || e[_e];
832
832
  return typeof t == "function" ? t : null;
833
833
  }
834
- var $ = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
834
+ var N = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
835
835
  function S(e) {
836
836
  {
837
837
  for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
@@ -841,18 +841,18 @@ function Ht() {
841
841
  }
842
842
  function ye(e, t, r) {
843
843
  {
844
- var a = $.ReactDebugCurrentFrame, f = a.getStackAddendum();
844
+ var a = N.ReactDebugCurrentFrame, f = a.getStackAddendum();
845
845
  f !== "" && (t += "%s", r = r.concat([f]));
846
- var p = r.map(function(s) {
846
+ var v = r.map(function(s) {
847
847
  return String(s);
848
848
  });
849
- p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
849
+ v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
850
850
  }
851
851
  }
852
852
  var ke = !1, Ee = !1, h = !1, E = !1, F = !1, M;
853
853
  M = Symbol.for("react.module.reference");
854
854
  function U(e) {
855
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === y || F || e === m || e === k || e === v || E || e === A || ke || Ee || h || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === x || e.$$typeof === C || e.$$typeof === _ || e.$$typeof === d || // This needs to include all possible module reference object
855
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === y || F || e === m || e === x || e === p || E || e === A || ke || Ee || h || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === R || e.$$typeof === j || e.$$typeof === k || e.$$typeof === d || // This needs to include all possible module reference object
856
856
  // types supported by any Flight configuration anywhere since
857
857
  // we don't know which Flight build this will end up being used
858
858
  // with.
@@ -876,7 +876,7 @@ function Ht() {
876
876
  if (typeof e == "string")
877
877
  return e;
878
878
  switch (e) {
879
- case c:
879
+ case u:
880
880
  return "Fragment";
881
881
  case l:
882
882
  return "Portal";
@@ -884,28 +884,28 @@ function Ht() {
884
884
  return "Profiler";
885
885
  case m:
886
886
  return "StrictMode";
887
- case k:
887
+ case x:
888
888
  return "Suspense";
889
- case v:
889
+ case p:
890
890
  return "SuspenseList";
891
891
  }
892
892
  if (typeof e == "object")
893
893
  switch (e.$$typeof) {
894
- case _:
894
+ case k:
895
895
  var t = e;
896
896
  return ae(t) + ".Consumer";
897
- case C:
897
+ case j:
898
898
  var r = e;
899
899
  return ae(r._context) + ".Provider";
900
900
  case d:
901
901
  return oe(e, e.render, "ForwardRef");
902
- case x:
902
+ case R:
903
903
  var a = e.displayName || null;
904
904
  return a !== null ? a : B(e.type) || "Memo";
905
905
  case I: {
906
- var f = e, p = f._payload, s = f._init;
906
+ var f = e, v = f._payload, s = f._init;
907
907
  try {
908
- return B(s(p));
908
+ return B(s(v));
909
909
  } catch {
910
910
  return null;
911
911
  }
@@ -913,18 +913,18 @@ function Ht() {
913
913
  }
914
914
  return null;
915
915
  }
916
- var D = Object.assign, N = 0, q, K, G, Se, xe, Oe, Te;
917
- function je() {
916
+ var D = Object.assign, $ = 0, q, K, G, Se, xe, Oe, Te;
917
+ function Ce() {
918
918
  }
919
- je.__reactDisabledLog = !0;
919
+ Ce.__reactDisabledLog = !0;
920
920
  function Qe() {
921
921
  {
922
- if (N === 0) {
922
+ if ($ === 0) {
923
923
  q = console.log, K = console.info, G = console.warn, Se = console.error, xe = console.group, Oe = console.groupCollapsed, Te = console.groupEnd;
924
924
  var e = {
925
925
  configurable: !0,
926
926
  enumerable: !0,
927
- value: je,
927
+ value: Ce,
928
928
  writable: !0
929
929
  };
930
930
  Object.defineProperties(console, {
@@ -937,12 +937,12 @@ function Ht() {
937
937
  groupEnd: e
938
938
  });
939
939
  }
940
- N++;
940
+ $++;
941
941
  }
942
942
  }
943
943
  function et() {
944
944
  {
945
- if (N--, N === 0) {
945
+ if ($--, $ === 0) {
946
946
  var e = {
947
947
  configurable: !0,
948
948
  enumerable: !0,
@@ -972,11 +972,11 @@ function Ht() {
972
972
  })
973
973
  });
974
974
  }
975
- N < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
975
+ $ < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
976
976
  }
977
977
  }
978
- var se = $.ReactCurrentDispatcher, le;
979
- function X(e, t, r) {
978
+ var se = N.ReactCurrentDispatcher, le;
979
+ function H(e, t, r) {
980
980
  {
981
981
  if (le === void 0)
982
982
  try {
@@ -989,16 +989,16 @@ function Ht() {
989
989
  ` + le + e;
990
990
  }
991
991
  }
992
- var ue = !1, H;
992
+ var ue = !1, X;
993
993
  {
994
994
  var tt = typeof WeakMap == "function" ? WeakMap : Map;
995
- H = new tt();
995
+ X = new tt();
996
996
  }
997
- function Ce(e, t) {
997
+ function je(e, t) {
998
998
  if (!e || ue)
999
999
  return "";
1000
1000
  {
1001
- var r = H.get(e);
1001
+ var r = X.get(e);
1002
1002
  if (r !== void 0)
1003
1003
  return r;
1004
1004
  }
@@ -1006,8 +1006,8 @@ function Ht() {
1006
1006
  ue = !0;
1007
1007
  var f = Error.prepareStackTrace;
1008
1008
  Error.prepareStackTrace = void 0;
1009
- var p;
1010
- p = se.current, se.current = null, Qe();
1009
+ var v;
1010
+ v = se.current, se.current = null, Qe();
1011
1011
  try {
1012
1012
  if (t) {
1013
1013
  var s = function() {
@@ -1044,29 +1044,29 @@ function Ht() {
1044
1044
  if (T && a && typeof T.stack == "string") {
1045
1045
  for (var i = T.stack.split(`
1046
1046
  `), O = a.stack.split(`
1047
- `), b = i.length - 1, R = O.length - 1; b >= 1 && R >= 0 && i[b] !== O[R]; )
1048
- R--;
1049
- for (; b >= 1 && R >= 0; b--, R--)
1050
- if (i[b] !== O[R]) {
1051
- if (b !== 1 || R !== 1)
1047
+ `), b = i.length - 1, _ = O.length - 1; b >= 1 && _ >= 0 && i[b] !== O[_]; )
1048
+ _--;
1049
+ for (; b >= 1 && _ >= 0; b--, _--)
1050
+ if (i[b] !== O[_]) {
1051
+ if (b !== 1 || _ !== 1)
1052
1052
  do
1053
- if (b--, R--, R < 0 || i[b] !== O[R]) {
1053
+ if (b--, _--, _ < 0 || i[b] !== O[_]) {
1054
1054
  var w = `
1055
1055
  ` + i[b].replace(" at new ", " at ");
1056
- return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, w), w;
1056
+ return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && X.set(e, w), w;
1057
1057
  }
1058
- while (b >= 1 && R >= 0);
1058
+ while (b >= 1 && _ >= 0);
1059
1059
  break;
1060
1060
  }
1061
1061
  }
1062
1062
  } finally {
1063
- ue = !1, se.current = p, et(), Error.prepareStackTrace = f;
1063
+ ue = !1, se.current = v, et(), Error.prepareStackTrace = f;
1064
1064
  }
1065
- var W = e ? e.displayName || e.name : "", L = W ? X(W) : "";
1066
- return typeof e == "function" && H.set(e, L), L;
1065
+ var W = e ? e.displayName || e.name : "", L = W ? H(W) : "";
1066
+ return typeof e == "function" && X.set(e, L), L;
1067
1067
  }
1068
1068
  function rt(e, t, r) {
1069
- return Ce(e, !1);
1069
+ return je(e, !1);
1070
1070
  }
1071
1071
  function nt(e) {
1072
1072
  var t = e.prototype;
@@ -1076,32 +1076,32 @@ function Ht() {
1076
1076
  if (e == null)
1077
1077
  return "";
1078
1078
  if (typeof e == "function")
1079
- return Ce(e, nt(e));
1079
+ return je(e, nt(e));
1080
1080
  if (typeof e == "string")
1081
- return X(e);
1081
+ return H(e);
1082
1082
  switch (e) {
1083
- case k:
1084
- return X("Suspense");
1085
- case v:
1086
- return X("SuspenseList");
1083
+ case x:
1084
+ return H("Suspense");
1085
+ case p:
1086
+ return H("SuspenseList");
1087
1087
  }
1088
1088
  if (typeof e == "object")
1089
1089
  switch (e.$$typeof) {
1090
1090
  case d:
1091
1091
  return rt(e.render);
1092
- case x:
1092
+ case R:
1093
1093
  return Q(e.type, t, r);
1094
1094
  case I: {
1095
- var a = e, f = a._payload, p = a._init;
1095
+ var a = e, f = a._payload, v = a._init;
1096
1096
  try {
1097
- return Q(p(f), t, r);
1097
+ return Q(v(f), t, r);
1098
1098
  } catch {
1099
1099
  }
1100
1100
  }
1101
1101
  }
1102
1102
  return "";
1103
1103
  }
1104
- var z = Object.prototype.hasOwnProperty, we = {}, Pe = $.ReactDebugCurrentFrame;
1104
+ var z = Object.prototype.hasOwnProperty, we = {}, Pe = N.ReactDebugCurrentFrame;
1105
1105
  function ee(e) {
1106
1106
  if (e) {
1107
1107
  var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
@@ -1111,9 +1111,9 @@ function Ht() {
1111
1111
  }
1112
1112
  function ot(e, t, r, a, f) {
1113
1113
  {
1114
- var p = Function.call.bind(z);
1114
+ var v = Function.call.bind(z);
1115
1115
  for (var s in e)
1116
- if (p(e, s)) {
1116
+ if (v(e, s)) {
1117
1117
  var i = void 0;
1118
1118
  try {
1119
1119
  if (typeof e[s] != "function") {
@@ -1152,7 +1152,7 @@ function Ht() {
1152
1152
  if (st(e))
1153
1153
  return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", it(e)), Ae(e);
1154
1154
  }
1155
- var Ie = $.ReactCurrentOwner, lt = {
1155
+ var Ie = N.ReactCurrentOwner, lt = {
1156
1156
  key: !0,
1157
1157
  ref: !0,
1158
1158
  __self: !0,
@@ -1199,7 +1199,7 @@ function Ht() {
1199
1199
  });
1200
1200
  }
1201
1201
  }
1202
- var vt = function(e, t, r, a, f, p, s) {
1202
+ var vt = function(e, t, r, a, f, v, s) {
1203
1203
  var i = {
1204
1204
  // This tag allows us to uniquely identify this as a React Element
1205
1205
  $$typeof: o,
@@ -1209,7 +1209,7 @@ function Ht() {
1209
1209
  ref: r,
1210
1210
  props: s,
1211
1211
  // Record the component responsible for creating this element.
1212
- _owner: p
1212
+ _owner: v
1213
1213
  };
1214
1214
  return i._store = {}, Object.defineProperty(i._store, "validated", {
1215
1215
  configurable: !1,
@@ -1230,23 +1230,23 @@ function Ht() {
1230
1230
  };
1231
1231
  function gt(e, t, r, a, f) {
1232
1232
  {
1233
- var p, s = {}, i = null, O = null;
1233
+ var v, s = {}, i = null, O = null;
1234
1234
  r !== void 0 && (Be(r), i = "" + r), ct(t) && (Be(t.key), i = "" + t.key), ut(t) && (O = t.ref, ft(t));
1235
- for (p in t)
1236
- z.call(t, p) && !lt.hasOwnProperty(p) && (s[p] = t[p]);
1235
+ for (v in t)
1236
+ z.call(t, v) && !lt.hasOwnProperty(v) && (s[v] = t[v]);
1237
1237
  if (e && e.defaultProps) {
1238
1238
  var b = e.defaultProps;
1239
- for (p in b)
1240
- s[p] === void 0 && (s[p] = b[p]);
1239
+ for (v in b)
1240
+ s[v] === void 0 && (s[v] = b[v]);
1241
1241
  }
1242
1242
  if (i || O) {
1243
- var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1244
- i && dt(s, R), O && pt(s, R);
1243
+ var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1244
+ i && dt(s, _), O && pt(s, _);
1245
1245
  }
1246
1246
  return vt(e, i, O, f, a, Ie.current, s);
1247
1247
  }
1248
1248
  }
1249
- var fe = $.ReactCurrentOwner, Me = $.ReactDebugCurrentFrame;
1249
+ var fe = N.ReactCurrentOwner, Me = N.ReactDebugCurrentFrame;
1250
1250
  function Y(e) {
1251
1251
  if (e) {
1252
1252
  var t = e._owner, r = Q(e.type, e._source, t ? t.type : null);
@@ -1259,7 +1259,7 @@ function Ht() {
1259
1259
  function pe(e) {
1260
1260
  return typeof e == "object" && e !== null && e.$$typeof === o;
1261
1261
  }
1262
- function Ne() {
1262
+ function $e() {
1263
1263
  {
1264
1264
  if (fe.current) {
1265
1265
  var e = B(fe.current.type);
@@ -1274,10 +1274,10 @@ Check the render method of \`` + e + "`.";
1274
1274
  function mt(e) {
1275
1275
  return "";
1276
1276
  }
1277
- var $e = {};
1277
+ var Ne = {};
1278
1278
  function yt(e) {
1279
1279
  {
1280
- var t = Ne();
1280
+ var t = $e();
1281
1281
  if (!t) {
1282
1282
  var r = typeof e == "string" ? e : e.displayName || e.name;
1283
1283
  r && (t = `
@@ -1293,9 +1293,9 @@ Check the top-level render call using <` + r + ">.");
1293
1293
  return;
1294
1294
  e._store.validated = !0;
1295
1295
  var r = yt(t);
1296
- if ($e[r])
1296
+ if (Ne[r])
1297
1297
  return;
1298
- $e[r] = !0;
1298
+ Ne[r] = !0;
1299
1299
  var a = "";
1300
1300
  e && e._owner && e._owner !== fe.current && (a = " It was passed a child from " + B(e._owner.type) + "."), Y(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', r, a), Y(null);
1301
1301
  }
@@ -1312,9 +1312,9 @@ Check the top-level render call using <` + r + ">.");
1312
1312
  else if (pe(e))
1313
1313
  e._store && (e._store.validated = !0);
1314
1314
  else if (e) {
1315
- var f = _e(e);
1315
+ var f = Re(e);
1316
1316
  if (typeof f == "function" && f !== e.entries)
1317
- for (var p = f.call(e), s; !(s = p.next()).done; )
1317
+ for (var v = f.call(e), s; !(s = v.next()).done; )
1318
1318
  pe(s.value) && Le(s.value, t);
1319
1319
  }
1320
1320
  }
@@ -1329,7 +1329,7 @@ Check the top-level render call using <` + r + ">.");
1329
1329
  r = t.propTypes;
1330
1330
  else if (typeof t == "object" && (t.$$typeof === d || // Note: Memo only checks outer props here.
1331
1331
  // Inner props are checked in the reconciler.
1332
- t.$$typeof === x))
1332
+ t.$$typeof === R))
1333
1333
  r = t.propTypes;
1334
1334
  else
1335
1335
  return;
@@ -1357,20 +1357,20 @@ Check the top-level render call using <` + r + ">.");
1357
1357
  }
1358
1358
  }
1359
1359
  var Ye = {};
1360
- function We(e, t, r, a, f, p) {
1360
+ function We(e, t, r, a, f, v) {
1361
1361
  {
1362
1362
  var s = U(e);
1363
1363
  if (!s) {
1364
1364
  var i = "";
1365
1365
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1366
1366
  var O = mt();
1367
- O ? i += O : i += Ne();
1367
+ O ? i += O : i += $e();
1368
1368
  var b;
1369
1369
  e === null ? b = "null" : ce(e) ? b = "array" : e !== void 0 && e.$$typeof === o ? (b = "<" + (B(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, i);
1370
1370
  }
1371
- var R = gt(e, t, r, f, p);
1372
- if (R == null)
1373
- return R;
1371
+ var _ = gt(e, t, r, f, v);
1372
+ if (_ == null)
1373
+ return _;
1374
1374
  if (s) {
1375
1375
  var w = t.children;
1376
1376
  if (w !== void 0)
@@ -1398,25 +1398,25 @@ React keys must be passed directly to JSX without using spread:
1398
1398
  <%s key={someKey} {...props} />`, ve, L, St, L), Ye[L + ve] = !0;
1399
1399
  }
1400
1400
  }
1401
- return e === c ? bt(R) : ht(R), R;
1401
+ return e === u ? bt(_) : ht(_), _;
1402
1402
  }
1403
1403
  }
1404
- function Rt(e, t, r) {
1404
+ function _t(e, t, r) {
1405
1405
  return We(e, t, r, !0);
1406
1406
  }
1407
- function _t(e, t, r) {
1407
+ function Rt(e, t, r) {
1408
1408
  return We(e, t, r, !1);
1409
1409
  }
1410
- var kt = _t, Et = Rt;
1411
- Ke.Fragment = c, Ke.jsx = kt, Ke.jsxs = Et;
1410
+ var kt = Rt, Et = _t;
1411
+ Ke.Fragment = u, Ke.jsx = kt, Ke.jsxs = Et;
1412
1412
  }()), Ke;
1413
1413
  }
1414
- process.env.NODE_ENV === "production" ? Xt() : Ht();
1415
- const Qt = "0.0.37", Ut = {
1416
- version: Qt
1414
+ process.env.NODE_ENV === "production" ? Xt() : Qt();
1415
+ const er = "0.0.37", Yt = {
1416
+ version: er
1417
1417
  }, te = {}, wt = {
1418
1418
  module: "",
1419
- v: Ut.version,
1419
+ v: Yt.version,
1420
1420
  page: "Main",
1421
1421
  auth: "Auth",
1422
1422
  STORAGE: "f",
@@ -1426,12 +1426,12 @@ function me() {
1426
1426
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {};
1427
1427
  }
1428
1428
  me().elcrm || (me().elcrm = {});
1429
- Object.assign(me().elcrm, { router: Ut.version });
1429
+ Object.assign(me().elcrm, { router: Yt.version });
1430
1430
  function re(n) {
1431
1431
  const o = me();
1432
1432
  o.ROUTER_PARAMS ? o.ROUTER_PARAMS = { ...o.ROUTER_PARAMS, ...n } : o.ROUTER_PARAMS = { ...wt, ...n };
1433
1433
  }
1434
- function j() {
1434
+ function C() {
1435
1435
  return me().ROUTER_PARAMS || wt;
1436
1436
  }
1437
1437
  function he(n) {
@@ -1464,27 +1464,27 @@ var be;
1464
1464
  re({
1465
1465
  id: 0,
1466
1466
  tab: "",
1467
- page: (h = localStorage.getItem("d")) != null && h.length ? j().page : j().auth,
1468
- module: j().module
1467
+ page: (h = localStorage.getItem("d")) != null && h.length ? C().page : C().auth,
1468
+ module: C().module
1469
1469
  });
1470
1470
  return !0;
1471
1471
  }
1472
1472
  function l() {
1473
- te.id = 0, te.tab = "", te.page = j().page, te.module = j().module;
1473
+ te.id = 0, te.tab = "", te.page = C().page, te.module = C().module;
1474
1474
  }
1475
1475
  n.Reset = l;
1476
- function c({
1477
- module: h = j().module,
1478
- page: E = j().page,
1479
- auth: F = j().auth
1476
+ function u({
1477
+ module: h = C().module,
1478
+ page: E = C().page,
1479
+ auth: F = C().auth
1480
1480
  }) {
1481
1481
  re({ page: E, module: h, auth: F }), o();
1482
1482
  }
1483
- n.Default = c;
1483
+ n.Default = u;
1484
1484
  function m(h) {
1485
1485
  let E = (U) => (re({ page: U }), U);
1486
1486
  const [F, M] = P.useState(
1487
- C() || h && E(h) || j().page
1487
+ j() || h && E(h) || C().page
1488
1488
  );
1489
1489
  return he({ page: (U) => {
1490
1490
  M(U);
@@ -1493,41 +1493,41 @@ var be;
1493
1493
  n.usePage = m;
1494
1494
  function y(h, E = !0, F = {}) {
1495
1495
  re({ page: h, ...F }), sessionStorage.setItem(
1496
- j().STORAGE,
1497
- ie.enCode(j())
1496
+ C().STORAGE,
1497
+ ie.enCode(C())
1498
1498
  ), E && ne().page(h);
1499
1499
  }
1500
1500
  n.setPage = y;
1501
- function C() {
1502
- return j().page;
1501
+ function j() {
1502
+ return C().page;
1503
1503
  }
1504
- n.getPage = C;
1505
- function _(h) {
1506
- return j().page === h;
1504
+ n.getPage = j;
1505
+ function k(h) {
1506
+ return C().page === h;
1507
1507
  }
1508
- n.isPage = _;
1508
+ n.isPage = k;
1509
1509
  function d(h, E) {
1510
1510
  const [F, M] = P.useState(
1511
- v() || h || j().module
1511
+ p() || h || C().module
1512
1512
  );
1513
1513
  return he({ module: M }), F;
1514
1514
  }
1515
1515
  n.useModule = d;
1516
- function k(h, E = !0) {
1516
+ function x(h, E = !0) {
1517
1517
  re({ module: h }), sessionStorage.setItem(
1518
- j().STORAGE,
1519
- ie.enCode(j())
1518
+ C().STORAGE,
1519
+ ie.enCode(C())
1520
1520
  ), E && ne().module(h);
1521
1521
  }
1522
- n.setModule = k;
1523
- function v() {
1524
- return j().module || "";
1522
+ n.setModule = x;
1523
+ function p() {
1524
+ return C().module || "";
1525
1525
  }
1526
- n.getModule = v;
1527
- function x(h) {
1528
- return j().module === h;
1526
+ n.getModule = p;
1527
+ function R(h) {
1528
+ return C().module === h;
1529
1529
  }
1530
- n.isModule = x;
1530
+ n.isModule = R;
1531
1531
  function I(h, E) {
1532
1532
  if (typeof h != "function") {
1533
1533
  const [F, M] = P.useState(!E), [U, oe] = P.useState(h || V());
@@ -1540,20 +1540,20 @@ var be;
1540
1540
  n.useTabs = I;
1541
1541
  async function A(h, E = !0) {
1542
1542
  re({ tab: h }), sessionStorage.setItem(
1543
- j().STORAGE,
1544
- ie.enCode(j())
1543
+ C().STORAGE,
1544
+ ie.enCode(C())
1545
1545
  ), E && (ne().tabs && ne().tabs(h));
1546
1546
  }
1547
1547
  n.setTabs = A;
1548
1548
  function V() {
1549
- return j().tab;
1549
+ return C().tab;
1550
1550
  }
1551
1551
  n.getTabs = V;
1552
- function Re(h) {
1553
- return j().tab === h;
1554
- }
1555
- n.isTabs = Re;
1556
1552
  function _e(h) {
1553
+ return C().tab === h;
1554
+ }
1555
+ n.isTabs = _e;
1556
+ function Re(h) {
1557
1557
  if (typeof h != "function") {
1558
1558
  const [E, F] = P.useState(h || ye());
1559
1559
  return he({ id: (M) => {
@@ -1562,80 +1562,80 @@ var be;
1562
1562
  } else
1563
1563
  he({ id: h });
1564
1564
  }
1565
- n.useId = _e;
1566
- function $(h) {
1565
+ n.useId = Re;
1566
+ function N(h) {
1567
1567
  }
1568
- n.subId = $;
1568
+ n.subId = N;
1569
1569
  async function S(h, E = !0) {
1570
1570
  re({ id: h }), sessionStorage.setItem(
1571
- j().STORAGE,
1572
- ie.enCode(j())
1571
+ C().STORAGE,
1572
+ ie.enCode(C())
1573
1573
  ), E && ne().id(h);
1574
1574
  }
1575
1575
  n.setId = S;
1576
1576
  function ye() {
1577
- return j().id;
1577
+ return C().id;
1578
1578
  }
1579
1579
  n.getId = ye;
1580
1580
  function ke(h) {
1581
- return Number(j().id) === h;
1581
+ return Number(C().id) === h;
1582
1582
  }
1583
1583
  n.isId = ke;
1584
1584
  async function Ee(h) {
1585
1585
  var E, F, M, U, oe, ae, B, D;
1586
- const { page: N, module: q, tab: K, id: G } = h;
1587
- N !== void 0 && (te.page = N), q !== void 0 && (te.module = q), K !== void 0 && (te.tab = K), G !== void 0 && (te.id = G), re({ ...te }), G !== void 0 && ((F = (E = ne()).id) == null || F.call(E, G)), K !== void 0 && ((U = (M = ne()).tabs) == null || U.call(M, K)), q !== void 0 && ((ae = (oe = ne()).module) == null || ae.call(oe, q)), N !== void 0 && ((D = (B = ne()).page) == null || D.call(B, N)), sessionStorage.setItem(
1588
- j().STORAGE,
1589
- ie.enCode(j())
1586
+ const { page: $, module: q, tab: K, id: G } = h;
1587
+ $ !== void 0 && (te.page = $), q !== void 0 && (te.module = q), K !== void 0 && (te.tab = K), G !== void 0 && (te.id = G), re({ ...te }), G !== void 0 && ((F = (E = ne()).id) == null || F.call(E, G)), K !== void 0 && ((U = (M = ne()).tabs) == null || U.call(M, K)), q !== void 0 && ((ae = (oe = ne()).module) == null || ae.call(oe, q)), $ !== void 0 && ((D = (B = ne()).page) == null || D.call(B, $)), sessionStorage.setItem(
1588
+ C().STORAGE,
1589
+ ie.enCode(C())
1590
1590
  );
1591
1591
  }
1592
1592
  n.navigate = Ee;
1593
1593
  })(be || (be = {}));
1594
- let Xe = {};
1595
- function er() {
1594
+ let He = {};
1595
+ function tr() {
1596
1596
  const [n, o] = P.useState([]);
1597
- return Xe.set = (l) => {
1597
+ return He.set = (l) => {
1598
1598
  o([...n, l]);
1599
- }, Xe.del = (l) => {
1600
- n.forEach((c, m) => {
1601
- c.key === l && n.splice(m, 1);
1599
+ }, He.del = (l) => {
1600
+ n.forEach((u, m) => {
1601
+ u.key === l && n.splice(m, 1);
1602
1602
  }), o(n);
1603
- }, n.length === 0 ? /* @__PURE__ */ u.jsx(u.Fragment, {}) : /* @__PURE__ */ u.jsx("div", { className: "notice", children: n.map((l) => l.item) });
1603
+ }, n.length === 0 ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx("div", { className: "notice", children: n.map((l) => l.item) });
1604
1604
  }
1605
- function tr(n) {
1605
+ function rr(n) {
1606
1606
  let o = (/* @__PURE__ */ new Date()).getTime();
1607
- n.key = o, Xe.set({ item: /* @__PURE__ */ u.jsx(rr, { data: n }, o), key: o });
1607
+ n.key = o, He.set({ item: /* @__PURE__ */ c.jsx(nr, { data: n }, o), key: o });
1608
1608
  }
1609
- function rr(n) {
1609
+ function nr(n) {
1610
1610
  const o = n.data;
1611
- let [l] = P.useState("show"), [c, m] = P.useState(!1);
1611
+ let [l] = P.useState("show"), [u, m] = P.useState(!1);
1612
1612
  P.useEffect(() => {
1613
1613
  setTimeout(function() {
1614
- m(!0), Xe.del(o.key);
1614
+ m(!0), He.del(o.key);
1615
1615
  }, 5e3);
1616
1616
  }, [o.key]);
1617
1617
  let y;
1618
1618
  switch (o.type) {
1619
1619
  case "error":
1620
- y = /* @__PURE__ */ u.jsx("path", { d: "M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z" });
1620
+ y = /* @__PURE__ */ c.jsx("path", { d: "M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z" });
1621
1621
  break;
1622
1622
  case "success":
1623
- y = /* @__PURE__ */ u.jsx("path", { d: "M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z" });
1623
+ y = /* @__PURE__ */ c.jsx("path", { d: "M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z" });
1624
1624
  break;
1625
1625
  case "warning":
1626
- y = /* @__PURE__ */ u.jsx("path", { d: "M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z" });
1626
+ y = /* @__PURE__ */ c.jsx("path", { d: "M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z" });
1627
1627
  break;
1628
1628
  default:
1629
1629
  y = "icon fa fa-exclamation-circle";
1630
1630
  break;
1631
1631
  }
1632
- return /* @__PURE__ */ u.jsx(u.Fragment, { children: c ? /* @__PURE__ */ u.jsx(u.Fragment, {}) : /* @__PURE__ */ u.jsxs(
1632
+ return /* @__PURE__ */ c.jsx(c.Fragment, { children: u ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsxs(
1633
1633
  "div",
1634
1634
  {
1635
1635
  className: "item " + o.type + ` ${o.thema !== void 0 ? " thema" : ""}`,
1636
1636
  "data-status": l,
1637
1637
  children: [
1638
- /* @__PURE__ */ u.jsx(
1638
+ /* @__PURE__ */ c.jsx(
1639
1639
  "svg",
1640
1640
  {
1641
1641
  type: "solid",
@@ -1648,40 +1648,40 @@ function rr(n) {
1648
1648
  children: y
1649
1649
  }
1650
1650
  ),
1651
- /* @__PURE__ */ u.jsx("span", { className: "text", children: o.text })
1651
+ /* @__PURE__ */ c.jsx("span", { className: "text", children: o.text })
1652
1652
  ]
1653
1653
  }
1654
1654
  ) });
1655
1655
  }
1656
- let He = {
1657
- Send: tr,
1658
- Init: er
1656
+ let Xe = {
1657
+ Send: rr,
1658
+ Init: tr
1659
1659
  }, qe = () => {
1660
1660
  };
1661
- const nr = ({
1661
+ const or = ({
1662
1662
  children: n,
1663
1663
  title: o,
1664
1664
  isOverlay: l = !0
1665
1665
  }) => {
1666
- const [c, m] = P.useState(!1);
1666
+ const [u, m] = P.useState(!1);
1667
1667
  return qe = () => {
1668
1668
  m(!0), setTimeout(() => {
1669
- Yt.onClose();
1669
+ Wt.onClose();
1670
1670
  }, 300);
1671
- }, /* @__PURE__ */ u.jsx(
1671
+ }, /* @__PURE__ */ c.jsx(
1672
1672
  "div",
1673
1673
  {
1674
- className: `footer-menu-overlay ${l ? "is-overlay" : ""} ${c ? "closing" : ""}`,
1674
+ className: `footer-menu-overlay ${l ? "is-overlay" : ""} ${u ? "closing" : ""}`,
1675
1675
  onClick: qe,
1676
- children: /* @__PURE__ */ u.jsxs(
1676
+ children: /* @__PURE__ */ c.jsxs(
1677
1677
  "div",
1678
1678
  {
1679
- className: `footer-menu-popup-book ${c ? "closing" : ""}`,
1679
+ className: `footer-menu-popup-book ${u ? "closing" : ""}`,
1680
1680
  onClick: (y) => y.stopPropagation(),
1681
1681
  children: [
1682
- /* @__PURE__ */ u.jsxs("div", { className: "footer-menu-header", children: [
1683
- /* @__PURE__ */ u.jsx("h3", { children: o }),
1684
- /* @__PURE__ */ u.jsx(
1682
+ /* @__PURE__ */ c.jsxs("div", { className: "footer-menu-header", children: [
1683
+ /* @__PURE__ */ c.jsx("h3", { children: o }),
1684
+ /* @__PURE__ */ c.jsx(
1685
1685
  "button",
1686
1686
  {
1687
1687
  className: "footer-menu-close-btn",
@@ -1696,34 +1696,51 @@ const nr = ({
1696
1696
  )
1697
1697
  }
1698
1698
  );
1699
- }, Yt = [], Dt = (n, o) => n.findIndex((l) => (l == null ? void 0 : l.page) === o), or = ({ actions: n, children: o, className: l, page: c, setPage: m }) => {
1700
- const [y, C] = P.useState(null), [_, d] = P.useState(
1701
- c ? Dt(n || [], c) : 0
1699
+ }, ar = "_h_rl5ga_1", ir = "_row_rl5ga_14", sr = "_column_rl5ga_17", Dt = {
1700
+ h: ar,
1701
+ row: ir,
1702
+ column: sr
1703
+ }, Wt = [], Mt = (n, o) => n.findIndex((l) => (l == null ? void 0 : l.page) === o), lr = ({
1704
+ actions: n,
1705
+ children: o,
1706
+ className: l,
1707
+ page: u,
1708
+ setPage: m,
1709
+ direction: y = "row"
1710
+ }) => {
1711
+ const [j, k] = P.useState(null), [d, x] = P.useState(
1712
+ u ? Mt(n || [], u) : 0
1702
1713
  );
1703
- return Yt.onClose = () => {
1704
- C(null), d(c ? Dt(n || [], c) : 0);
1714
+ return Wt.onClose = () => {
1715
+ k(null), x(u ? Mt(n || [], u) : 0);
1705
1716
  }, Tt(() => {
1706
1717
  document.addEventListener("blur", () => {
1707
1718
  document.querySelector("footer").style.display = "flex";
1708
1719
  }), document.addEventListener("focus", () => {
1709
1720
  document.querySelector("footer").style.display = "none";
1710
1721
  });
1711
- }, []), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
1712
- y,
1713
- /* @__PURE__ */ u.jsxs("footer", { className: l, children: [
1714
- o,
1715
- n && /* @__PURE__ */ u.jsx("div", { className: "actions-book", children: n.map((k, v) => /* @__PURE__ */ u.jsx(
1716
- "div",
1717
- {
1718
- "data-active": _ === v ? "true" : "false",
1719
- onClick: () => {
1720
- k.page && (d(v), m == null || m(k.page)), k.callback && (k.callback(), d(v)), k.component && (_ === v ? qe() : (C(k.component), d(v)));
1721
- },
1722
- children: k.icon
1723
- },
1724
- v
1725
- )) })
1726
- ] })
1722
+ }, []), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1723
+ j,
1724
+ /* @__PURE__ */ c.jsxs(
1725
+ "footer",
1726
+ {
1727
+ className: `${Dt.h} ${Dt[y]} ${l} `,
1728
+ children: [
1729
+ o,
1730
+ n && n.map((p, R) => /* @__PURE__ */ c.jsx(
1731
+ "div",
1732
+ {
1733
+ "data-active": d === R ? "true" : "false",
1734
+ onClick: () => {
1735
+ p.page && (x(R), m == null || m(p.page)), p.callback && (p.callback(), x(R)), p.component && (d === R ? qe() : (k(p.component), x(R)));
1736
+ },
1737
+ children: p.icon
1738
+ },
1739
+ R
1740
+ ))
1741
+ ]
1742
+ }
1743
+ )
1727
1744
  ] });
1728
1745
  }, g = window.Telegram.WebApp, ge = { is: !1, MainButton: {}, BackButton: {} };
1729
1746
  let J = {};
@@ -1775,8 +1792,8 @@ g.getUser = () => {
1775
1792
  return ((n = g.initDataUnsafe) == null ? void 0 : n.user) === void 0 ? {} : g.initDataUnsafe;
1776
1793
  };
1777
1794
  g.Notice = (n, o, l) => {
1778
- var c, m;
1779
- o !== void 0 ? (He.Send({ type: n, text: o, thema: l }), (c = g.HapticFeedback) == null || c.notificationOccurred(n)) : (He.Send(n), (m = g.HapticFeedback) == null || m.notificationOccurred(n.type));
1795
+ var u, m;
1796
+ o !== void 0 ? (Xe.Send({ type: n, text: o, thema: l }), (u = g.HapticFeedback) == null || u.notificationOccurred(n)) : (Xe.Send(n), (m = g.HapticFeedback) == null || m.notificationOccurred(n.type));
1780
1797
  };
1781
1798
  g.MainButton.callback = [];
1782
1799
  g.MainButton.set = (n) => {
@@ -1799,9 +1816,9 @@ g.BackButton.router = (n) => {
1799
1816
  g.BackButton.set = (n) => {
1800
1817
  ge.is ? ge.BackButton.set(n) : (g.BackButton.state.push(n), g.BackButton.router(n));
1801
1818
  };
1802
- g.Init = ({ dev: n }) => {
1819
+ g.Header = ({ dev: n }) => {
1803
1820
  if (n) {
1804
- let [o, l] = P.useState(!1), [c, m] = P.useState(!1), [y, C] = P.useState("dark"), [_, d] = P.useState(!1), [k, v] = P.useState(!1);
1821
+ let [o, l] = P.useState(!1), [u, m] = P.useState(!1), [y, j] = P.useState("dark"), [k, d] = P.useState(!1), [x, p] = P.useState(!1);
1805
1822
  ge.is = !0, ge.MainButton.set = l, ge.BackButton.set = m, P.useEffect(() => {
1806
1823
  J[y]["--tg-theme-bg-color-alpha"] = J[y]["--tg-theme-bg-color"] + "b3", J[y]["--tg-theme-secondary-bg-color-alpha"] = J[y]["--tg-theme-secondary-bg-color"] + "d3";
1807
1824
  for (let A in J[y])
@@ -1814,30 +1831,30 @@ g.Init = ({ dev: n }) => {
1814
1831
  "16px"
1815
1832
  );
1816
1833
  }, []);
1817
- let x = (A) => {
1834
+ let R = (A) => {
1818
1835
  for (let V in J[A])
1819
1836
  document.documentElement.style.setProperty(V, J[A][V]);
1820
- C(A), d(!1);
1837
+ j(A), d(!1);
1821
1838
  }, I = () => {
1822
- d(!1), v(!0);
1839
+ d(!1), p(!0);
1823
1840
  };
1824
- return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
1825
- /* @__PURE__ */ u.jsxs("header", { className: "debug", children: [
1826
- c === !1 ? /* @__PURE__ */ u.jsx("div", { className: "b", children: "Отмена" }) : /* @__PURE__ */ u.jsx(
1841
+ return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1842
+ /* @__PURE__ */ c.jsxs("header", { className: "debug", children: [
1843
+ u === !1 ? /* @__PURE__ */ c.jsx("div", { className: "b", children: "Отмена" }) : /* @__PURE__ */ c.jsx(
1827
1844
  "div",
1828
1845
  {
1829
1846
  onClick: () => {
1830
1847
  var A;
1831
- c.page === void 0 ? (A = c.callback) == null || A.call(c) : be.setPage(c.page);
1848
+ u.page === void 0 ? (A = u.callback) == null || A.call(u) : be.setPage(u.page);
1832
1849
  },
1833
1850
  className: "b",
1834
1851
  children: "Назад"
1835
1852
  }
1836
1853
  ),
1837
- /* @__PURE__ */ u.jsx("div", { className: "o", onClick: () => d(!_), children: "Меню" })
1854
+ /* @__PURE__ */ c.jsx("div", { className: "o", onClick: () => d(!k), children: "Меню" })
1838
1855
  ] }),
1839
- /* @__PURE__ */ u.jsx(He.Init, {}),
1840
- o && /* @__PURE__ */ u.jsx("div", { className: "mb", children: /* @__PURE__ */ u.jsx(
1856
+ /* @__PURE__ */ c.jsx(Xe.Init, {}),
1857
+ o && /* @__PURE__ */ c.jsx("div", { className: "mb", children: /* @__PURE__ */ c.jsx(
1841
1858
  "button",
1842
1859
  {
1843
1860
  onClick: () => {
@@ -1846,42 +1863,42 @@ g.Init = ({ dev: n }) => {
1846
1863
  children: o.text
1847
1864
  }
1848
1865
  ) }),
1849
- _ ? /* @__PURE__ */ u.jsxs("div", { className: "tm", children: [
1850
- /* @__PURE__ */ u.jsxs("ul", { children: [
1851
- /* @__PURE__ */ u.jsx("li", { children: /* @__PURE__ */ u.jsx("button", { onClick: I, children: "Authorization" }) }),
1852
- /* @__PURE__ */ u.jsx("li", {})
1866
+ k ? /* @__PURE__ */ c.jsxs("div", { className: "tm", children: [
1867
+ /* @__PURE__ */ c.jsxs("ul", { children: [
1868
+ /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx("button", { onClick: I, children: "Authorization" }) }),
1869
+ /* @__PURE__ */ c.jsx("li", {})
1853
1870
  ] }),
1854
- /* @__PURE__ */ u.jsxs("ul", { children: [
1855
- /* @__PURE__ */ u.jsxs("li", { children: [
1856
- /* @__PURE__ */ u.jsx("button", { children: "Thema" }),
1857
- /* @__PURE__ */ u.jsxs("ol", { children: [
1858
- /* @__PURE__ */ u.jsx("li", { children: /* @__PURE__ */ u.jsx(
1871
+ /* @__PURE__ */ c.jsxs("ul", { children: [
1872
+ /* @__PURE__ */ c.jsxs("li", { children: [
1873
+ /* @__PURE__ */ c.jsx("button", { children: "Thema" }),
1874
+ /* @__PURE__ */ c.jsxs("ol", { children: [
1875
+ /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
1859
1876
  "button",
1860
1877
  {
1861
- onClick: () => x("dark"),
1878
+ onClick: () => R("dark"),
1862
1879
  children: "Dark"
1863
1880
  }
1864
1881
  ) }),
1865
- /* @__PURE__ */ u.jsx("li", { children: /* @__PURE__ */ u.jsx(
1882
+ /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
1866
1883
  "button",
1867
1884
  {
1868
- onClick: () => x("light"),
1885
+ onClick: () => R("light"),
1869
1886
  children: "Light"
1870
1887
  }
1871
1888
  ) }),
1872
- /* @__PURE__ */ u.jsx("li", { children: /* @__PURE__ */ u.jsx(
1889
+ /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
1873
1890
  "button",
1874
1891
  {
1875
- onClick: () => x("users"),
1892
+ onClick: () => R("users"),
1876
1893
  children: "Users"
1877
1894
  }
1878
1895
  ) })
1879
1896
  ] })
1880
1897
  ] }),
1881
- /* @__PURE__ */ u.jsx("li", { children: /* @__PURE__ */ u.jsx("button", { onClick: () => d(!_), children: "Closed" }) })
1898
+ /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx("button", { onClick: () => d(!k), children: "Closed" }) })
1882
1899
  ] })
1883
1900
  ] }) : "",
1884
- k ? /* @__PURE__ */ u.jsx(ar, { setAuthorization: v }) : ""
1901
+ x ? /* @__PURE__ */ c.jsx(ur, { setAuthorization: p }) : ""
1885
1902
  ] });
1886
1903
  } else
1887
1904
  return P.useEffect(() => {
@@ -1895,21 +1912,22 @@ g.Init = ({ dev: n }) => {
1895
1912
  "--tg-safe-area-inset-bottom",
1896
1913
  "16px"
1897
1914
  );
1898
- }, []), /* @__PURE__ */ u.jsx(u.Fragment, { children: /* @__PURE__ */ u.jsx(He.Init, {}) });
1915
+ }, []), /* @__PURE__ */ c.jsx(c.Fragment, { children: /* @__PURE__ */ c.jsx(Xe.Init, {}) });
1899
1916
  };
1900
- g.Modal = Ct;
1901
- g.Footer = or;
1902
- g.FooterMenu = nr;
1917
+ g.Modal = jt;
1918
+ g.Footer = lr;
1919
+ g.FooterMenu = or;
1903
1920
  g.toggleFooterMenu = qe;
1904
- const ar = ({ setAuthorization: n }) => {
1921
+ const ur = ({ setAuthorization: n }) => {
1905
1922
  let o = {}, l = () => {
1906
1923
  localStorage.setItem("auth", o);
1907
1924
  };
1908
- return /* @__PURE__ */ u.jsx("div", { className: "ta", children: /* @__PURE__ */ u.jsxs("div", { className: "--body", children: [
1909
- /* @__PURE__ */ u.jsx("fieldset", {}),
1910
- /* @__PURE__ */ u.jsx("div", { onClick: l, children: " Сохранить " })
1925
+ return /* @__PURE__ */ c.jsx("div", { className: "ta", children: /* @__PURE__ */ c.jsxs("div", { className: "--body", children: [
1926
+ /* @__PURE__ */ c.jsx("fieldset", {}),
1927
+ /* @__PURE__ */ c.jsx("div", { onClick: l, children: " Сохранить " })
1911
1928
  ] }) });
1912
1929
  };
1913
1930
  export {
1931
+ lr as Footer,
1914
1932
  g as default
1915
1933
  };