@elcrm/telegram 0.0.19 → 0.0.21

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
@@ -5,18 +5,18 @@ import b from "react";
5
5
  let gt = {};
6
6
  const ua = (e) => {
7
7
  gt = e;
8
- }, fa = (e) => gt.enCode(e), ma = (e) => gt.deCode(e), N = { enCode: fa, deCode: ma, New: ua }, j = {}, U = {}, Ce = {}, nn = {}, re = {};
9
- let xt = "M06";
8
+ }, fa = (e) => gt.enCode(e), ma = (e) => gt.deCode(e), N = { enCode: fa, deCode: ma, New: ua }, j = {}, U = {}, je = {}, nn = {}, re = {};
9
+ let pt = "M06";
10
10
  function ha(e) {
11
- xt = e;
11
+ pt = e;
12
12
  }
13
13
  function ga() {
14
- return xt;
14
+ return pt;
15
15
  }
16
- function xa(e) {
16
+ function pa(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let a = sessionStorage.getItem("f");
19
- a ? (a = N.deCode(a), a || X(), j.id = a.id, j.tab = a.tab, j.page = a.page, j.module = a.module, j.time = a.time, j.payment = { active: !0 }, j.module_admin = a.module_admin) : (j.id = 0, j.tab = "", j.page = "Main", j.module = j.module || xt);
19
+ a ? (a = N.deCode(a), a || X(), j.id = a.id, j.tab = a.tab, j.page = a.page, j.module = a.module, j.time = a.time, j.payment = { active: !0 }, j.module_admin = a.module_admin) : (j.id = 0, j.tab = "", j.page = "Main", j.module = j.module || pt);
20
20
  } else
21
21
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
22
22
  (a) => localStorage.removeItem(a)
@@ -28,7 +28,7 @@ function X() {
28
28
  (e) => localStorage.removeItem(e)
29
29
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
30
30
  }
31
- function pa(e) {
31
+ function xa(e) {
32
32
  e = e.split("/"), j.page = "Main", j.module = e[0], j.tab = e[1], j.id = 0, sessionStorage.setItem(
33
33
  "f",
34
34
  N.enCode({
@@ -135,23 +135,23 @@ function Na(e) {
135
135
  function Da(e) {
136
136
  U.id = e;
137
137
  }
138
- function Fa(e, t = !0) {
138
+ function Pa(e, t = !0) {
139
139
  j.id = e, sessionStorage.setItem("f", N.enCode(j)), t && U.id(e);
140
140
  }
141
141
  function on() {
142
142
  return j.id;
143
143
  }
144
- function Pa(e) {
144
+ function Fa(e) {
145
145
  return Number(j.id) === e;
146
146
  }
147
147
  function $a(e, t, a) {
148
148
  j.module = e, j.id = a, j.tab = t, sessionStorage.setItem("f", N.enCode(j)), U.module(e), U.tabs(t);
149
149
  }
150
150
  function La(e) {
151
- Ce.data = e[0], delete Ce.data.id, document.body.dataset.theme = Ce.data.s15, localStorage.setItem("s", N.enCode(Ce.data));
151
+ je.data = e[0], delete je.data.id, document.body.dataset.theme = je.data.s15, localStorage.setItem("s", N.enCode(je.data));
152
152
  }
153
153
  function Oa(e, t) {
154
- Ce.data[e] = t, localStorage.setItem("s", N.enCode(Ce.data));
154
+ je.data[e] = t, localStorage.setItem("s", N.enCode(je.data));
155
155
  }
156
156
  function Aa(e) {
157
157
  let t = localStorage.getItem("s");
@@ -204,7 +204,7 @@ function De(e) {
204
204
  function Ka(e, t) {
205
205
  re.data = { ...re.data, [e]: t }, localStorage.setItem("q", N.enCode(re.data));
206
206
  }
207
- function pe(e, t) {
207
+ function ke(e, t) {
208
208
  if (!re.data) {
209
209
  let a = localStorage.getItem("q");
210
210
  a && (re.data = N.deCode(a));
@@ -268,7 +268,7 @@ const se = {
268
268
  setAUTH: ba,
269
269
  getAUTH: Ca,
270
270
  Logaut: X,
271
- Start: pa,
271
+ Start: xa,
272
272
  setMenu: sn,
273
273
  getMenu: Ga,
274
274
  useSort: za,
@@ -278,7 +278,7 @@ const se = {
278
278
  getCompany: Wa,
279
279
  setSelect: De,
280
280
  addSelect: Ka,
281
- getSelect: pe,
281
+ getSelect: ke,
282
282
  setApi: Za,
283
283
  getApi: Ua,
284
284
  setPayment: Ha,
@@ -313,20 +313,20 @@ function un(e) {
313
313
  t && (window.URL || window.webkitURL).revokeObjectURL(t);
314
314
  }
315
315
  }
316
- const ce = {};
316
+ const _e = {};
317
317
  function tr(e) {
318
- return e && (ce.s = e), ce.s;
318
+ return e && (_e.s = e), _e.s;
319
319
  }
320
320
  function nr(e) {
321
- return e && (ce.a = e), ce.a;
321
+ return e && (_e.a = e), _e.a;
322
322
  }
323
323
  function ar(e) {
324
- return e && (ce.c = e), ce.c;
324
+ return e && (_e.c = e), _e.c;
325
325
  }
326
326
  function rr(e) {
327
- return e && (ce.h = e), ce.h;
327
+ return e && (_e.h = e), _e.h;
328
328
  }
329
- const pt = { version: { Api: nr, Server: tr, Client: ar }, Host: rr };
329
+ const xt = { version: { Api: nr, Server: tr, Client: ar }, Host: rr };
330
330
  let ir = "api", or = "elcrm", sr = "online";
331
331
  function lr() {
332
332
  let e = se.getPORT(), t = "", a = "";
@@ -348,7 +348,7 @@ function Ue(e, t = {}, a = se.getAUTH()) {
348
348
  link: e,
349
349
  data: t,
350
350
  ssid: a,
351
- host: pt.Host() || `https://${fn}/`
351
+ host: xt.Host() || `https://${fn}/`
352
352
  });
353
353
  });
354
354
  }
@@ -361,7 +361,7 @@ function _r(e, t = {}, a = se.getAUTH()) {
361
361
  link: e,
362
362
  data: t,
363
363
  ssid: a,
364
- host: pt.Host() + "modules/" || `https://${fn}/modules`
364
+ host: xt.Host() + "modules/" || `https://${fn}/modules`
365
365
  });
366
366
  });
367
367
  }
@@ -400,7 +400,7 @@ async function fr(e, t = {}) {
400
400
  return { status: "error" };
401
401
  }
402
402
  }
403
- const cl = { audio: cr, fetch: Ue, modules: _r, remoute: ur, url: lr, telegram: fr, use: dr };
403
+ const _l = { audio: cr, fetch: Ue, modules: _r, remoute: ur, url: lr, telegram: fr, use: dr };
404
404
  var _t = { exports: {} }, Be = {};
405
405
  /**
406
406
  * @license React
@@ -418,14 +418,14 @@ function mr() {
418
418
  Ut = 1;
419
419
  var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
420
420
  function l(c, d, _) {
421
- var u, f = {}, p = null, m = null;
422
- _ !== void 0 && (p = "" + _), d.key !== void 0 && (p = "" + d.key), d.ref !== void 0 && (m = d.ref);
421
+ var u, f = {}, x = null, m = null;
422
+ _ !== void 0 && (x = "" + _), d.key !== void 0 && (x = "" + d.key), d.ref !== void 0 && (m = d.ref);
423
423
  for (u in d)
424
424
  r.call(d, u) && !o.hasOwnProperty(u) && (f[u] = d[u]);
425
425
  if (c && c.defaultProps)
426
426
  for (u in d = c.defaultProps, d)
427
427
  f[u] === void 0 && (f[u] = d[u]);
428
- return { $$typeof: t, type: c, key: p, ref: m, props: f, _owner: i.current };
428
+ return { $$typeof: t, type: c, key: x, ref: m, props: f, _owner: i.current };
429
429
  }
430
430
  return Be.Fragment = a, Be.jsx = l, Be.jsxs = l, Be;
431
431
  }
@@ -442,8 +442,8 @@ var Ie = {};
442
442
  var Ht;
443
443
  function hr() {
444
444
  return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
445
- var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
446
- function x(s) {
445
+ var e = b, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
446
+ function p(s) {
447
447
  if (s === null || typeof s != "object")
448
448
  return null;
449
449
  var h = g && s[g] || s[v];
@@ -461,16 +461,16 @@ function hr() {
461
461
  {
462
462
  var w = C.ReactDebugCurrentFrame, D = w.getStackAddendum();
463
463
  D !== "" && (h += "%s", k = k.concat([D]));
464
- var P = k.map(function(M) {
464
+ var F = k.map(function(M) {
465
465
  return String(M);
466
466
  });
467
- P.unshift("Warning: " + h), Function.prototype.apply.call(console[s], console, P);
467
+ F.unshift("Warning: " + h), Function.prototype.apply.call(console[s], console, F);
468
468
  }
469
469
  }
470
- var R = !1, F = !1, A = !1, K = !1, oe = !1, z;
470
+ var R = !1, P = !1, A = !1, K = !1, oe = !1, z;
471
471
  z = Symbol.for("react.module.reference");
472
472
  function I(s) {
473
- return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || oe || s === i || s === _ || s === u || K || s === m || R || F || A || typeof s == "object" && s !== null && (s.$$typeof === p || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object
473
+ return !!(typeof s == "string" || typeof s == "function" || s === r || s === o || oe || s === i || s === _ || s === u || K || s === m || R || P || A || typeof s == "object" && s !== null && (s.$$typeof === x || s.$$typeof === f || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object
474
474
  // types supported by any Flight configuration anywhere since
475
475
  // we don't know which Flight build this will end up being used
476
476
  // with.
@@ -520,10 +520,10 @@ function hr() {
520
520
  case f:
521
521
  var w = s.displayName || null;
522
522
  return w !== null ? w : S(s.type) || "Memo";
523
- case p: {
524
- var D = s, P = D._payload, M = D._init;
523
+ case x: {
524
+ var D = s, F = D._payload, M = D._init;
525
525
  try {
526
- return S(M(P));
526
+ return S(M(F));
527
527
  } catch {
528
528
  return null;
529
529
  }
@@ -624,8 +624,8 @@ function hr() {
624
624
  Xe = !0;
625
625
  var D = Error.prepareStackTrace;
626
626
  Error.prepareStackTrace = void 0;
627
- var P;
628
- P = qe.current, qe.current = null, $n();
627
+ var F;
628
+ F = qe.current, qe.current = null, $n();
629
629
  try {
630
630
  if (h) {
631
631
  var M = function() {
@@ -678,10 +678,10 @@ function hr() {
678
678
  }
679
679
  }
680
680
  } finally {
681
- Xe = !1, qe.current = P, Ln(), Error.prepareStackTrace = D;
681
+ Xe = !1, qe.current = F, Ln(), Error.prepareStackTrace = D;
682
682
  }
683
- var ke = s ? s.displayName || s.name : "", fe = ke ? Oe(ke) : "";
684
- return typeof s == "function" && Ae.set(s, fe), fe;
683
+ var Ce = s ? s.displayName || s.name : "", me = Ce ? Oe(Ce) : "";
684
+ return typeof s == "function" && Ae.set(s, me), me;
685
685
  }
686
686
  function An(s, h, k) {
687
687
  return It(s, !1);
@@ -709,10 +709,10 @@ function hr() {
709
709
  return An(s.render);
710
710
  case f:
711
711
  return Ge(s.type, h, k);
712
- case p: {
713
- var w = s, D = w._payload, P = w._init;
712
+ case x: {
713
+ var w = s, D = w._payload, F = w._init;
714
714
  try {
715
- return Ge(P(D), h, k);
715
+ return Ge(F(D), h, k);
716
716
  } catch {
717
717
  }
718
718
  }
@@ -729,9 +729,9 @@ function hr() {
729
729
  }
730
730
  function zn(s, h, k, w, D) {
731
731
  {
732
- var P = Function.call.bind(Te);
732
+ var F = Function.call.bind(Te);
733
733
  for (var M in s)
734
- if (P(s, M)) {
734
+ if (F(s, M)) {
735
735
  var B = void 0;
736
736
  try {
737
737
  if (typeof s[M] != "function") {
@@ -766,7 +766,7 @@ function hr() {
766
766
  function Dt(s) {
767
767
  return "" + s;
768
768
  }
769
- function Ft(s) {
769
+ function Pt(s) {
770
770
  if (Zn(s))
771
771
  return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Kn(s)), Dt(s);
772
772
  }
@@ -775,7 +775,7 @@ function hr() {
775
775
  ref: !0,
776
776
  __self: !0,
777
777
  __source: !0
778
- }, Pt, $t, et;
778
+ }, Ft, $t, et;
779
779
  et = {};
780
780
  function Hn(s) {
781
781
  if (Te.call(s, "ref")) {
@@ -802,7 +802,7 @@ function hr() {
802
802
  function qn(s, h) {
803
803
  {
804
804
  var k = function() {
805
- Pt || (Pt = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
805
+ Ft || (Ft = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
806
806
  };
807
807
  k.isReactWarning = !0, Object.defineProperty(s, "key", {
808
808
  get: k,
@@ -821,7 +821,7 @@ function hr() {
821
821
  });
822
822
  }
823
823
  }
824
- var Xn = function(s, h, k, w, D, P, M) {
824
+ var Xn = function(s, h, k, w, D, F, M) {
825
825
  var B = {
826
826
  // This tag allows us to uniquely identify this as a React Element
827
827
  $$typeof: t,
@@ -831,7 +831,7 @@ function hr() {
831
831
  ref: k,
832
832
  props: M,
833
833
  // Record the component responsible for creating this element.
834
- _owner: P
834
+ _owner: F
835
835
  };
836
836
  return B._store = {}, Object.defineProperty(B._store, "validated", {
837
837
  configurable: !1,
@@ -852,14 +852,14 @@ function hr() {
852
852
  };
853
853
  function Qn(s, h, k, w, D) {
854
854
  {
855
- var P, M = {}, B = null, V = null;
856
- k !== void 0 && (Ft(k), B = "" + k), Yn(h) && (Ft(h.key), B = "" + h.key), Hn(h) && (V = h.ref, Vn(h, D));
857
- for (P in h)
858
- Te.call(h, P) && !Un.hasOwnProperty(P) && (M[P] = h[P]);
855
+ var F, M = {}, B = null, V = null;
856
+ k !== void 0 && (Pt(k), B = "" + k), Yn(h) && (Pt(h.key), B = "" + h.key), Hn(h) && (V = h.ref, Vn(h, D));
857
+ for (F in h)
858
+ Te.call(h, F) && !Un.hasOwnProperty(F) && (M[F] = h[F]);
859
859
  if (s && s.defaultProps) {
860
860
  var L = s.defaultProps;
861
- for (P in L)
862
- M[P] === void 0 && (M[P] = L[P]);
861
+ for (F in L)
862
+ M[F] === void 0 && (M[F] = L[F]);
863
863
  }
864
864
  if (B || V) {
865
865
  var G = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
@@ -869,7 +869,7 @@ function hr() {
869
869
  }
870
870
  }
871
871
  var tt = C.ReactCurrentOwner, Lt = C.ReactDebugCurrentFrame;
872
- function ve(s) {
872
+ function be(s) {
873
873
  if (s) {
874
874
  var h = s._owner, k = Ge(s.type, s._source, h ? h.type : null);
875
875
  Lt.setExtraStackFrame(k);
@@ -919,7 +919,7 @@ Check the top-level render call using <` + k + ">.");
919
919
  return;
920
920
  At[k] = !0;
921
921
  var w = "";
922
- s && s._owner && s._owner !== tt.current && (w = " It was passed a child from " + S(s._owner.type) + "."), ve(s), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, w), ve(null);
922
+ s && s._owner && s._owner !== tt.current && (w = " It was passed a child from " + S(s._owner.type) + "."), be(s), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, w), be(null);
923
923
  }
924
924
  }
925
925
  function zt(s, h) {
@@ -934,9 +934,9 @@ Check the top-level render call using <` + k + ">.");
934
934
  else if (at(s))
935
935
  s._store && (s._store.validated = !0);
936
936
  else if (s) {
937
- var D = x(s);
937
+ var D = p(s);
938
938
  if (typeof D == "function" && D !== s.entries)
939
- for (var P = D.call(s), M; !(M = P.next()).done; )
939
+ for (var F = D.call(s), M; !(M = F.next()).done; )
940
940
  at(M.value) && Gt(M.value, h);
941
941
  }
942
942
  }
@@ -971,15 +971,15 @@ Check the top-level render call using <` + k + ">.");
971
971
  for (var h = Object.keys(s.props), k = 0; k < h.length; k++) {
972
972
  var w = h[k];
973
973
  if (w !== "children" && w !== "key") {
974
- ve(s), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), ve(null);
974
+ be(s), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), be(null);
975
975
  break;
976
976
  }
977
977
  }
978
- s.ref !== null && (ve(s), y("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
978
+ s.ref !== null && (be(s), y("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
979
979
  }
980
980
  }
981
981
  var Wt = {};
982
- function Kt(s, h, k, w, D, P) {
982
+ function Kt(s, h, k, w, D, F) {
983
983
  {
984
984
  var M = I(s);
985
985
  if (!M) {
@@ -990,7 +990,7 @@ Check the top-level render call using <` + k + ">.");
990
990
  var L;
991
991
  s === null ? L = "null" : Qe(s) ? L = "array" : s !== void 0 && s.$$typeof === t ? (L = "<" + (S(s.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : L = typeof s, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, B);
992
992
  }
993
- var G = Qn(s, h, k, D, P);
993
+ var G = Qn(s, h, k, D, F);
994
994
  if (G == null)
995
995
  return G;
996
996
  if (M) {
@@ -998,8 +998,8 @@ Check the top-level render call using <` + k + ">.");
998
998
  if (Q !== void 0)
999
999
  if (w)
1000
1000
  if (Qe(Q)) {
1001
- for (var ke = 0; ke < Q.length; ke++)
1002
- zt(Q[ke], s);
1001
+ for (var Ce = 0; Ce < Q.length; Ce++)
1002
+ zt(Q[Ce], s);
1003
1003
  Object.freeze && Object.freeze(Q);
1004
1004
  } else
1005
1005
  y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -1007,17 +1007,17 @@ Check the top-level render call using <` + k + ">.");
1007
1007
  zt(Q, s);
1008
1008
  }
1009
1009
  if (Te.call(h, "key")) {
1010
- var fe = S(s), q = Object.keys(h).filter(function(ca) {
1010
+ var me = S(s), q = Object.keys(h).filter(function(ca) {
1011
1011
  return ca !== "key";
1012
1012
  }), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
1013
- if (!Wt[fe + rt]) {
1013
+ if (!Wt[me + rt]) {
1014
1014
  var la = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
1015
1015
  y(`A props object containing a "key" prop is being spread into JSX:
1016
1016
  let props = %s;
1017
1017
  <%s {...props} />
1018
1018
  React keys must be passed directly to JSX without using spread:
1019
1019
  let props = %s;
1020
- <%s key={someKey} {...props} />`, rt, fe, la, fe), Wt[fe + rt] = !0;
1020
+ <%s key={someKey} {...props} />`, rt, me, la, me), Wt[me + rt] = !0;
1021
1021
  }
1022
1022
  }
1023
1023
  return s === r ? aa(G) : na(G), G;
@@ -1035,49 +1035,49 @@ React keys must be passed directly to JSX without using spread:
1035
1035
  }
1036
1036
  process.env.NODE_ENV === "production" ? _t.exports = mr() : _t.exports = hr();
1037
1037
  var n = _t.exports;
1038
- const gr = "_notice_9i5tr_2", xr = "_error_9i5tr_9", pr = "_success_9i5tr_12", vr = "_remark_9i5tr_15", kr = "_copy_9i5tr_18", br = {
1038
+ const gr = "_notice_9i5tr_2", pr = "_error_9i5tr_9", xr = "_success_9i5tr_12", vr = "_remark_9i5tr_15", kr = "_copy_9i5tr_18", br = {
1039
1039
  notice: gr,
1040
- error: xr,
1041
- success: pr,
1040
+ error: pr,
1041
+ success: xr,
1042
1042
  remark: vr,
1043
1043
  copy: kr,
1044
1044
  "show-notice": "_show-notice_9i5tr_1",
1045
1045
  "hide-notice": "_hide-notice_9i5tr_1"
1046
1046
  };
1047
- let _e = {};
1047
+ let de = {};
1048
1048
  function Cr() {
1049
1049
  let [e, t] = b.useState([]);
1050
- return _e.set = (a) => {
1050
+ return de.set = (a) => {
1051
1051
  t([...e, a]);
1052
- }, _e.del = (a) => {
1052
+ }, de.del = (a) => {
1053
1053
  t(e.filter((r) => r.key !== a));
1054
1054
  }, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: br.notice, children: e.map((a) => a.item) });
1055
1055
  }
1056
- function Fe({ data: e }) {
1056
+ function Pe({ data: e }) {
1057
1057
  let [t, a] = b.useState("show");
1058
1058
  b.useEffect(() => {
1059
1059
  setTimeout(function() {
1060
1060
  a("hide");
1061
1061
  }, 1800), setTimeout(function() {
1062
- _e.del(e.key);
1062
+ de.del(e.key);
1063
1063
  }, 2500);
1064
1064
  }, [e.key]);
1065
1065
  let r, i;
1066
1066
  switch (e.type) {
1067
1067
  case "error":
1068
- r = /* @__PURE__ */ n.jsx(me.error, {}), i = "Ошибка:";
1068
+ r = /* @__PURE__ */ n.jsx(ge.error, {}), i = "Ошибка:";
1069
1069
  break;
1070
1070
  case "success":
1071
- r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Информация:";
1071
+ r = /* @__PURE__ */ n.jsx(ge.success, {}), i = "Информация:";
1072
1072
  break;
1073
1073
  case "copy":
1074
- r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Копирование:";
1074
+ r = /* @__PURE__ */ n.jsx(ge.success, {}), i = "Копирование:";
1075
1075
  break;
1076
1076
  case "remark":
1077
- r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Подсказка:";
1077
+ r = /* @__PURE__ */ n.jsx(ge.success, {}), i = "Подсказка:";
1078
1078
  break;
1079
1079
  default:
1080
- r = /* @__PURE__ */ n.jsx(me.success, {}), i = "Предупреждение:";
1080
+ r = /* @__PURE__ */ n.jsx(ge.success, {}), i = "Предупреждение:";
1081
1081
  break;
1082
1082
  }
1083
1083
  return /* @__PURE__ */ n.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
@@ -1088,26 +1088,26 @@ function Fe({ data: e }) {
1088
1088
  }
1089
1089
  function jr(e) {
1090
1090
  let t = Date.now(), a = { key: t, ...e };
1091
- _e.set({ item: /* @__PURE__ */ n.jsx(Fe, { data: a }, t), key: t });
1091
+ de.set({ item: /* @__PURE__ */ n.jsx(Pe, { data: a }, t), key: t });
1092
1092
  }
1093
1093
  function yr(e) {
1094
1094
  let t = Date.now(), a = { key: t, text: e, type: "error" };
1095
- _e.set({ item: /* @__PURE__ */ n.jsx(Fe, { data: a }, t), key: t });
1095
+ de.set({ item: /* @__PURE__ */ n.jsx(Pe, { data: a }, t), key: t });
1096
1096
  }
1097
1097
  function wr(e) {
1098
1098
  let t = Date.now(), a = { key: t, text: e, type: "success" };
1099
- _e.set({ item: /* @__PURE__ */ n.jsx(Fe, { data: a }, t), key: t });
1099
+ de.set({ item: /* @__PURE__ */ n.jsx(Pe, { data: a }, t), key: t });
1100
1100
  }
1101
1101
  function Sr(e) {
1102
1102
  let t = Date.now(), a = { key: t, text: e, type: "remark" };
1103
- _e.set({ item: /* @__PURE__ */ n.jsx(Fe, { data: a }, t), key: t });
1103
+ de.set({ item: /* @__PURE__ */ n.jsx(Pe, { data: a }, t), key: t });
1104
1104
  }
1105
1105
  function Er(e) {
1106
1106
  let t = Date.now(), a = { key: t, text: e, type: "copy" };
1107
- _e.set({ item: /* @__PURE__ */ n.jsx(Fe, { data: a }, t), key: t });
1107
+ de.set({ item: /* @__PURE__ */ n.jsx(Pe, { data: a }, t), key: t });
1108
1108
  }
1109
- const me = {};
1110
- me.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1109
+ const ge = {};
1110
+ ge.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1111
1111
  /* @__PURE__ */ n.jsx(
1112
1112
  "path",
1113
1113
  {
@@ -1123,7 +1123,7 @@ me.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "no
1123
1123
  }
1124
1124
  )
1125
1125
  ] });
1126
- me.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1126
+ ge.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1127
1127
  /* @__PURE__ */ n.jsx(
1128
1128
  "path",
1129
1129
  {
@@ -1170,11 +1170,11 @@ const Dr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1170
1170
  ] }),
1171
1171
  /* @__PURE__ */ n.jsx("div", { className: dt["--body"], onClick: Ne.del })
1172
1172
  ] }));
1173
- function Fr(e, t) {
1173
+ function Pr(e, t) {
1174
1174
  Ne.set(/* @__PURE__ */ n.jsx(Dr, { data: e, callback: t }));
1175
1175
  }
1176
- const Pr = "_btn_1hz2s_6", $r = "_confirm_1hz2s_19", Yt = {
1177
- btn: Pr,
1176
+ const Fr = "_btn_1hz2s_6", $r = "_confirm_1hz2s_19", Yt = {
1177
+ btn: Fr,
1178
1178
  confirm: $r
1179
1179
  };
1180
1180
  function Lr({ onClick: e, onSend: t, label: a, onRef: r }) {
@@ -1230,12 +1230,12 @@ const Or = "_white_11p39_14", Ar = "_black_11p39_26", Gr = "_shake_11p39_1", zr
1230
1230
  sx: _i,
1231
1231
  sf: di
1232
1232
  };
1233
- let ge = {};
1233
+ let xe = {};
1234
1234
  function ui({ config: e }) {
1235
1235
  let [t, a] = b.useState([]);
1236
- return ge.x = (r) => {
1236
+ return xe.x = (r) => {
1237
1237
  r || a([]);
1238
- }, ge.config = e, ge.add = (r) => {
1238
+ }, xe.config = e, xe.add = (r) => {
1239
1239
  a([...t, r]);
1240
1240
  }, /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((r) => r) });
1241
1241
  }
@@ -1277,14 +1277,14 @@ function fi({
1277
1277
  /* @__PURE__ */ n.jsxs("div", { className: ne.h, children: [
1278
1278
  /* @__PURE__ */ n.jsx("div", { className: ne.t, children: e }),
1279
1279
  /* @__PURE__ */ n.jsxs("div", { className: ne.m, children: [
1280
- r && /* @__PURE__ */ n.jsx("nav", { children: r.map((f, p) => /* @__PURE__ */ n.jsx(
1280
+ r && /* @__PURE__ */ n.jsx("nav", { children: r.map((f, x) => /* @__PURE__ */ n.jsx(
1281
1281
  "span",
1282
1282
  {
1283
1283
  onClick: f.onClick,
1284
1284
  className: f.active ? "active" : "",
1285
1285
  children: f.name
1286
1286
  },
1287
- p
1287
+ x
1288
1288
  )) }),
1289
1289
  o
1290
1290
  ] }),
@@ -1318,7 +1318,7 @@ function fi({
1318
1318
  ) : "" });
1319
1319
  }
1320
1320
  function mi(e) {
1321
- ge.add(/* @__PURE__ */ n.jsx(hi, { children: e }, String(Date.now())));
1321
+ xe.add(/* @__PURE__ */ n.jsx(hi, { children: e }, String(Date.now())));
1322
1322
  }
1323
1323
  function hi({ children: e }) {
1324
1324
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
@@ -1331,17 +1331,17 @@ function gi(e) {
1331
1331
  t.setAttribute("shake", !1);
1332
1332
  }, 1e3);
1333
1333
  }
1334
- function xi({ type: e, name: t, params: a }) {
1334
+ function pi({ type: e, name: t, params: a }) {
1335
1335
  let [r, i] = b.useState(null);
1336
1336
  return b.useEffect(() => {
1337
- ge.config(e, t, a, i);
1337
+ xe.config(e, t, a, i);
1338
1338
  }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
1339
1339
  }
1340
- function pi(e, t) {
1341
- ge.config(e, t);
1340
+ function xi(e, t) {
1341
+ xe.config(e, t);
1342
1342
  }
1343
1343
  function vi(e) {
1344
- ge.x(e);
1344
+ xe.x(e);
1345
1345
  }
1346
1346
  const ut = {};
1347
1347
  function ki(e, t) {
@@ -1374,7 +1374,7 @@ function wi() {
1374
1374
  t([a]);
1375
1375
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
1376
1376
  }
1377
- const je = {
1377
+ const ce = {
1378
1378
  Path: $a,
1379
1379
  setPage: wa,
1380
1380
  getPage: an,
@@ -1389,10 +1389,10 @@ const je = {
1389
1389
  useTabs: Ba,
1390
1390
  isTabs: Ma,
1391
1391
  useId: Na,
1392
- setId: Fa,
1392
+ setId: Pa,
1393
1393
  subId: Da,
1394
1394
  getId: on,
1395
- isId: Pa
1395
+ isId: Fa
1396
1396
  }, Ke = { Send: jr, Error: yr, Remark: Sr, Success: wr, Copy: Er }, hn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
1397
1397
  "div",
1398
1398
  {
@@ -1419,7 +1419,7 @@ function gn({ onClick: e, onSend: t, name: a, onRef: r }) {
1419
1419
  }
1420
1420
  );
1421
1421
  }
1422
- function xn({
1422
+ function pn({
1423
1423
  value: e,
1424
1424
  onValue: t,
1425
1425
  onActive: a,
@@ -1441,7 +1441,7 @@ function xn({
1441
1441
  }, 3e3)) : a(!1);
1442
1442
  }, f = (C) => {
1443
1443
  _.current.value = C.target.textContent, u();
1444
- }, p = (C) => {
1444
+ }, x = (C) => {
1445
1445
  C.keyCode === 16 && (_.current.shift = !0), C.keyCode === 13 && !_.current.shift && (C.preventDefault(), _.current.value.length !== 0 && (C.target.textContent = "", r && r(_.current.value), t && t(_.current.value), _.current.value = "", a(!1)));
1446
1446
  }, m = (C) => {
1447
1447
  C.keyCode === 16 && (_.current.shift = !1);
@@ -1452,24 +1452,24 @@ function xn({
1452
1452
  });
1453
1453
  }, v = () => {
1454
1454
  a(!1);
1455
- }, x = {
1455
+ }, p = {
1456
1456
  spellCheck: "true"
1457
1457
  };
1458
- return d && (x.placeholder = d), l && c && (x.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1458
+ return d && (p.placeholder = d), l && c && (p.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1459
1459
  "dd",
1460
1460
  {
1461
1461
  onPaste: g,
1462
1462
  onInput: f,
1463
1463
  onKeyUp: m,
1464
- onKeyDown: p,
1464
+ onKeyDown: x,
1465
1465
  onBlur: v,
1466
- ...x,
1466
+ ...p,
1467
1467
  suppressContentEditableWarning: !0,
1468
1468
  children: e
1469
1469
  }
1470
1470
  ) });
1471
1471
  }
1472
- function pn(e) {
1472
+ function xn(e) {
1473
1473
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", o = (d) => {
1474
1474
  e.onValue({ value: d.target.textContent, name: e.name });
1475
1475
  }, l = (d) => {
@@ -1496,20 +1496,20 @@ function pn(e) {
1496
1496
  )
1497
1497
  ] });
1498
1498
  }
1499
- let ue = {};
1500
- ue.KeyDown = (e) => {
1499
+ let fe = {};
1500
+ fe.KeyDown = (e) => {
1501
1501
  e.key === "Enter" && e.preventDefault();
1502
1502
  };
1503
- ue.PasteOne = (e) => {
1503
+ fe.PasteOne = (e) => {
1504
1504
  e.preventDefault(), navigator.clipboard.readText().then((t) => {
1505
1505
  t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
1506
1506
  }).catch((t) => {
1507
1507
  });
1508
1508
  };
1509
- ue.Focus = (e) => {
1509
+ fe.Focus = (e) => {
1510
1510
  e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
1511
1511
  };
1512
- ue.Blur = (e) => {
1512
+ fe.Blur = (e) => {
1513
1513
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
1514
1514
  };
1515
1515
  function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
@@ -1533,19 +1533,19 @@ function vn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1533
1533
  }, [c]);
1534
1534
  const f = {};
1535
1535
  f.field = "captcha";
1536
- const p = {};
1537
- return a && (p.placeholder = a), /* @__PURE__ */ n.jsxs("dl", { ...f, children: [
1536
+ const x = {};
1537
+ return a && (x.placeholder = a), /* @__PURE__ */ n.jsxs("dl", { ...f, children: [
1538
1538
  /* @__PURE__ */ n.jsx(
1539
1539
  "dd",
1540
1540
  {
1541
1541
  ref: l,
1542
1542
  onPaste: u,
1543
1543
  onInput: _,
1544
- onBlur: ue.Blur,
1544
+ onBlur: fe.Blur,
1545
1545
  onKeyDown: d,
1546
1546
  contentEditable: "plaintext-only",
1547
1547
  suppressContentEditableWarning: !0,
1548
- ...p
1548
+ ...x
1549
1549
  }
1550
1550
  ),
1551
1551
  /* @__PURE__ */ n.jsx("canvas", { ref: o, width: "100", height: "35" })
@@ -1715,18 +1715,18 @@ function bn(e) {
1715
1715
  ) });
1716
1716
  }
1717
1717
  function vt({ label: e, value: t, placeholder: a, onValue: r, name: i }) {
1718
- const o = "__.__.____", l = new Set("_"), c = ((g) => Array.from(o, (v, x) => l.has(v) ? g = x + 1 : g))(0), d = [...o].findIndex((g) => l.has(g)), _ = new RegExp("\\d", "g"), u = (g) => (g = g.match(_) || [], Array.from(
1718
+ const o = "__.__.____", l = new Set("_"), c = ((g) => Array.from(o, (v, p) => l.has(v) ? g = p + 1 : g))(0), d = [...o].findIndex((g) => l.has(g)), _ = new RegExp("\\d", "g"), u = (g) => (g = g.match(_) || [], Array.from(
1719
1719
  o,
1720
1720
  (v) => (g[0] === v || l.has(v)) && g.shift() || v
1721
1721
  )), f = (g) => {
1722
- const [v, x] = [g.target.selectionStart, g.target.selectionEnd].map(
1722
+ const [v, p] = [g.target.selectionStart, g.target.selectionEnd].map(
1723
1723
  (C) => (C = u(g.target.value.slice(0, C)).findIndex(
1724
1724
  (y) => l.has(y)
1725
- ), C < 0 ? c[c.length - 1] : p ? c[C - 1] || d : C)
1725
+ ), C < 0 ? c[c.length - 1] : x ? c[C - 1] || d : C)
1726
1726
  );
1727
- g.target.value = u(g.target.value).join(""), g.target.setSelectionRange(v, x), p = !1, r == null || r({ name: i, value: g.target.value });
1727
+ g.target.value = u(g.target.value).join(""), g.target.setSelectionRange(v, p), x = !1, r == null || r({ name: i, value: g.target.value });
1728
1728
  };
1729
- let p = !1;
1729
+ let x = !1;
1730
1730
  const m = {};
1731
1731
  return m.field = "input", /* @__PURE__ */ n.jsxs("dl", { ...m, children: [
1732
1732
  /* @__PURE__ */ n.jsx("dt", {}),
@@ -1737,7 +1737,7 @@ function vt({ label: e, value: t, placeholder: a, onValue: r, name: i }) {
1737
1737
  placeholder: a,
1738
1738
  onChange: f,
1739
1739
  inputMode: "numeric",
1740
- onKeyDown: (g) => p = g.key === "Backspace",
1740
+ onKeyDown: (g) => x = g.key === "Backspace",
1741
1741
  onFocus: f,
1742
1742
  onBlur: (g) => g.target.value === o && (g.target.value = "")
1743
1743
  }
@@ -1762,8 +1762,8 @@ const Cn = {
1762
1762
  Scroll: Ei,
1763
1763
  Main: fi,
1764
1764
  Add: mi,
1765
- Icon: xi,
1766
- Open: pi,
1765
+ Icon: pi,
1766
+ Open: xi,
1767
1767
  Shake: gi,
1768
1768
  Form: Ti,
1769
1769
  Center: Ri,
@@ -1782,15 +1782,15 @@ function kt({
1782
1782
  active: _ = !0,
1783
1783
  after: u = "",
1784
1784
  view: f,
1785
- modal: p,
1785
+ modal: x,
1786
1786
  module: m,
1787
1787
  options: g,
1788
1788
  className: v
1789
1789
  }) {
1790
- let [x, C] = b.useState(e), y = (F) => {
1791
- if (!(c && _) || !p)
1790
+ let [p, C] = b.useState(e), y = (P) => {
1791
+ if (!(c && _) || !x)
1792
1792
  return;
1793
- let A = p.split(".");
1793
+ let A = x.split(".");
1794
1794
  Cn.Open(A[1], {
1795
1795
  callback: (K) => {
1796
1796
  t && t({ value: K, name: a }), C(K);
@@ -1813,7 +1813,7 @@ function kt({
1813
1813
  onClick: y,
1814
1814
  edit: (c && _) + "",
1815
1815
  "data-after": u,
1816
- children: x
1816
+ children: p
1817
1817
  }
1818
1818
  ),
1819
1819
  o && /* @__PURE__ */ n.jsx("em", { children: o })
@@ -1858,15 +1858,15 @@ function Ii(e) {
1858
1858
  }
1859
1859
  const Mi = (e) => {
1860
1860
  function t(T, R) {
1861
- var F, K, A;
1861
+ var P, K, A;
1862
1862
  T = T ?? "", R = R ?? 1;
1863
- for (var F = [], A = 0, K = T.length; A < K; )
1864
- F.push(T.slice(A, A += R));
1865
- return F;
1863
+ for (var P = [], A = 0, K = T.length; A < K; )
1864
+ P.push(T.slice(A, A += R));
1865
+ return P;
1866
1866
  }
1867
1867
  function a(T, R) {
1868
- var F = [2, 0, 1, 1, 1, 2];
1869
- return R[T > 4 && T < 20 ? 2 : F[Math.min(T, 5)]];
1868
+ var P = [2, 0, 1, 1, 1, 2];
1869
+ return R[T > 4 && T < 20 ? 2 : P[Math.min(T, 5)]];
1870
1870
  }
1871
1871
  var r = {
1872
1872
  null: "ноль",
@@ -1930,7 +1930,7 @@ const Mi = (e) => {
1930
1930
  u3: ["тысяча", "тысячи", "тысяч"],
1931
1931
  u2: ["миллион", "миллиона", "миллионов"],
1932
1932
  u1: ["миллиард", "миллиарда", "миллиардов"]
1933
- }, i, o, l, c, x, d, _, v, u, f, p, m;
1933
+ }, i, o, l, c, p, d, _, v, u, f, x, m;
1934
1934
  u = parseFloat(e).toFixed(2).split("."), d = u[0], c = u[1];
1935
1935
  var g = 12 - d.length;
1936
1936
  if (g < 0)
@@ -1938,21 +1938,21 @@ const Mi = (e) => {
1938
1938
  for (var v = []; g--; )
1939
1939
  v.push("0");
1940
1940
  d = v.join("") + d;
1941
- var x = [];
1941
+ var p = [];
1942
1942
  if (d > 0) {
1943
1943
  f = t(d, 3);
1944
1944
  for (var C = -1; C < f.length; C++)
1945
- if (_ = f[C], _ > 0 && (p = t(_, 1), i = parseInt(p[0]), o = parseInt(p[1]), l = parseInt(p[2]), x.push(r.a100[i - 1]), m = C + 1 == 3 ? "a2" : "a1", o > 1 ? x.push(
1945
+ if (_ = f[C], _ > 0 && (x = t(_, 1), i = parseInt(x[0]), o = parseInt(x[1]), l = parseInt(x[2]), p.push(r.a100[i - 1]), m = C + 1 == 3 ? "a2" : "a1", o > 1 ? p.push(
1946
1946
  r.a20[o - 2] + (l > 0 ? " " + r[m][l - 1] : "")
1947
- ) : x.push(
1947
+ ) : p.push(
1948
1948
  o > 0 ? r.a10[l] : r[m][l - 1]
1949
1949
  ), f.length > C + 1)) {
1950
1950
  var y = r["u" + (C + 1)];
1951
- x.push(a(_, y));
1951
+ p.push(a(_, y));
1952
1952
  }
1953
1953
  } else
1954
- x.push(r.null);
1955
- return x.push(a(d, r.ur)), x.push(c + " " + a(c, r.uc)), x.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1954
+ p.push(r.null);
1955
+ return p.push(a(d, r.ur)), p.push(c + " " + a(c, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1956
1956
  };
1957
1957
  function Ni(e) {
1958
1958
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
@@ -1965,7 +1965,7 @@ function Di(e) {
1965
1965
  let t = {};
1966
1966
  return t["application/atom+xml"] = "atom", t["application/json"] = "json", t["application/javascript"] = "js", t["application/ogg"] = "ogg", t["application/pdf"] = "pdf", t["application/soap+xml"] = "soap", t["application/font-woff"] = "woff", t["application/xhtml+xml"] = "xml", t["application/xml-dtd"] = "dtd", t["application/xop+xml"] = "xop", t["application/zip"] = "zip", t["application/gzip"] = "gzip", t["application/x-bittorrent"] = "bittorrent", t["application/x-tex"] = "tex", t["application/xml"] = "xml", t["application/msword"] = "doc", t["image/svg+xml"] = "svg", t[e];
1967
1967
  }
1968
- function Fi(e, t, a, r) {
1968
+ function Pi(e, t, a, r) {
1969
1969
  let i = {
1970
1970
  sexM: "m",
1971
1971
  sexF: "f",
@@ -2089,7 +2089,7 @@ function Fi(e, t, a, r) {
2089
2089
  if (_ === this.gcaseNom)
2090
2090
  return l;
2091
2091
  if (l.match(/[-]/)) {
2092
- for (var u = l.split("-"), f = 0, p = u.length; f < p; f++)
2092
+ for (var u = l.split("-"), f = 0, x = u.length; f < x; f++)
2093
2093
  u[f] = this.word(u[f], c, d, _);
2094
2094
  return u.join("-");
2095
2095
  }
@@ -2103,9 +2103,9 @@ function Fi(e, t, a, r) {
2103
2103
  // выбираем из списка правил первое подходящее и применяем
2104
2104
  pick: function(l, c, d, _, u) {
2105
2105
  let f = l.toLowerCase();
2106
- for (var p = 0, m = _.length; p < m; p++)
2107
- if (this.ruleMatch(f, c, _[p], u))
2108
- return this.applyMod(l, d, _[p]);
2106
+ for (var x = 0, m = _.length; x < m; x++)
2107
+ if (this.ruleMatch(f, c, _[x], u))
2108
+ return this.applyMod(l, d, _[x]);
2109
2109
  return !1;
2110
2110
  },
2111
2111
  // проверяем, подходит ли правило к слову
@@ -2113,10 +2113,10 @@ function Fi(e, t, a, r) {
2113
2113
  if (d.sex === this.sexM && c === this.sexF || d.sex === this.sexF && c !== this.sexF)
2114
2114
  return !1;
2115
2115
  for (var u = 0, f = d.test.length; u < f; u++) {
2116
- var p = _ ? l : l.substr(
2116
+ var x = _ ? l : l.substr(
2117
2117
  Math.max(l.length - d.test[u].length, 0)
2118
2118
  );
2119
- if (p === d.test[u])
2119
+ if (x === d.test[u])
2120
2120
  return !0;
2121
2121
  }
2122
2122
  return !1;
@@ -2145,15 +2145,15 @@ function Fi(e, t, a, r) {
2145
2145
  break;
2146
2146
  }
2147
2147
  for (var u = 0, f = _.length; u < f; u++) {
2148
- var p = _.substr(u, 1);
2149
- switch (p) {
2148
+ var x = _.substr(u, 1);
2149
+ switch (x) {
2150
2150
  case ".":
2151
2151
  break;
2152
2152
  case "-":
2153
2153
  l = l.substr(0, l.length - 1);
2154
2154
  break;
2155
2155
  default:
2156
- l += p;
2156
+ l += x;
2157
2157
  }
2158
2158
  }
2159
2159
  return l;
@@ -2181,7 +2181,7 @@ function Fi(e, t, a, r) {
2181
2181
  }
2182
2182
  return i.ln = e, i.fn = t || "", i.mn = a || "", i.sex = r || i.getSex(), i;
2183
2183
  }
2184
- function Pi(e) {
2184
+ function Fi(e) {
2185
2185
  let t = e.split(" ");
2186
2186
  switch (t.length) {
2187
2187
  case 2:
@@ -2230,7 +2230,7 @@ function zi(e, t) {
2230
2230
  return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
2231
2231
  }
2232
2232
  function Wi(e, t, a) {
2233
- return pe(e, t) ? pe(e, t).n : a || "";
2233
+ return ke(e, t) ? ke(e, t).n : a || "";
2234
2234
  }
2235
2235
  function Ki(e, t) {
2236
2236
  return e.reduce(function(a, r) {
@@ -2248,8 +2248,8 @@ const ye = {
2248
2248
  DateSort: Ii,
2249
2249
  Size: Ni,
2250
2250
  TypeFiles: Di,
2251
- Cases: Fi,
2252
- Initials: Pi,
2251
+ Cases: Pi,
2252
+ Initials: Fi,
2253
2253
  Month: $i,
2254
2254
  Money: Li,
2255
2255
  Number: Oi,
@@ -2260,9 +2260,9 @@ const ye = {
2260
2260
  ObjectByArray: Ki
2261
2261
  };
2262
2262
  function bt(e) {
2263
- let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, p) => {
2263
+ let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, x) => {
2264
2264
  let m = document.createRange(), g = window.getSelection();
2265
- m.setStart(p.childNodes[0], f), m.collapse(!0), g.removeAllRanges(), g.addRange(m), p.focus();
2265
+ m.setStart(x.childNodes[0], f), m.collapse(!0), g.removeAllRanges(), g.addRange(m), x.focus();
2266
2266
  }, i = (f) => {
2267
2267
  e.onValue({
2268
2268
  value: a(f.target.textContent),
@@ -2278,9 +2278,9 @@ function bt(e) {
2278
2278
  }, c = (f) => {
2279
2279
  f.key === "Enter" && f.preventDefault();
2280
2280
  }, d = (f) => {
2281
- f.preventDefault(), navigator.clipboard.readText().then((p) => {
2282
- p = p.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, p);
2283
- }).catch((p) => {
2281
+ f.preventDefault(), navigator.clipboard.readText().then((x) => {
2282
+ x = x.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, x);
2283
+ }).catch((x) => {
2284
2284
  });
2285
2285
  }, _ = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", u = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
2286
2286
  return /* @__PURE__ */ n.jsxs(
@@ -2328,19 +2328,19 @@ function jn({
2328
2328
  b.useEffect(() => {
2329
2329
  f(e);
2330
2330
  }, [e]);
2331
- let p = (v) => {
2331
+ let x = (v) => {
2332
2332
  f(v), t && t({ value: v, name: a });
2333
2333
  }, m = (v) => {
2334
2334
  if (!o || !l)
2335
2335
  return;
2336
- const x = v.target.getBoundingClientRect(), C = x.left, y = x.top;
2336
+ const p = v.target.getBoundingClientRect(), C = p.left, y = p.top;
2337
2337
  He.setListener(
2338
2338
  "form",
2339
2339
  /* @__PURE__ */ n.jsx(
2340
2340
  Yi,
2341
2341
  {
2342
2342
  position: { x: C, y },
2343
- onValue: p,
2343
+ onValue: x,
2344
2344
  date: u
2345
2345
  },
2346
2346
  (/* @__PURE__ */ new Date()).getTime()
@@ -2385,9 +2385,9 @@ const Yi = (e) => {
2385
2385
  d(c + 1);
2386
2386
  }, f = () => {
2387
2387
  d(c - 1);
2388
- }, p = (C) => {
2388
+ }, x = (C) => {
2389
2389
  e.onValue(c + "-" + ye.Number(2, C)), _();
2390
- }, m = (C) => o.y === l.y && o.m === C ? "_FFEB3B" : "", g = Array(12).fill("").map((C, y) => y + 1), v = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, x = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2390
+ }, m = (C) => o.y === l.y && o.m === C ? "_FFEB3B" : "", g = Array(12).fill("").map((C, y) => y + 1), v = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, p = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2391
2391
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2392
2392
  /* @__PURE__ */ n.jsx(
2393
2393
  "div",
@@ -2401,7 +2401,7 @@ const Yi = (e) => {
2401
2401
  "div",
2402
2402
  {
2403
2403
  className: Vt.c,
2404
- style: { top: v + "px", left: x + "px" },
2404
+ style: { top: v + "px", left: p + "px" },
2405
2405
  children: [
2406
2406
  /* @__PURE__ */ n.jsxs("s", { children: [
2407
2407
  /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => f() }),
@@ -2415,7 +2415,7 @@ const Yi = (e) => {
2415
2415
  "span",
2416
2416
  {
2417
2417
  onClick: () => {
2418
- p(C);
2418
+ x(C);
2419
2419
  },
2420
2420
  color: m(C),
2421
2421
  children: /* @__PURE__ */ n.jsx("b", { children: ye.Month(C).abc })
@@ -2432,18 +2432,18 @@ const Yi = (e) => {
2432
2432
  function yn(e) {
2433
2433
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, i] = b.useState(!1), o = e.edit !== void 0 ? e.edit : !0, l = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(o && l);
2434
2434
  r = o ? !0 : r;
2435
- let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (x) => {
2436
- e.onValue && e.onValue({ value: x.target.innerText, name: e.name });
2437
- }, f = (x) => {
2438
- x.preventDefault(), navigator.clipboard.readText().then((C) => {
2435
+ let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (p) => {
2436
+ e.onValue && e.onValue({ value: p.target.innerText, name: e.name });
2437
+ }, f = (p) => {
2438
+ p.preventDefault(), navigator.clipboard.readText().then((C) => {
2439
2439
  window.document.execCommand("insertText", !1, C);
2440
2440
  }).catch((C) => {
2441
2441
  });
2442
- }, p = (x) => {
2442
+ }, x = (p) => {
2443
2443
  o || i(!r);
2444
2444
  };
2445
- const m = (x) => {
2446
- e.onSave && e.onSave({ value: x.target.innerText, name: e.name });
2445
+ const m = (p) => {
2446
+ e.onSave && e.onSave({ value: p.target.innerText, name: e.name });
2447
2447
  }, g = {};
2448
2448
  g.field = "notes", e.className && (g.className = e.className);
2449
2449
  const v = {};
@@ -2457,7 +2457,7 @@ function yn(e) {
2457
2457
  onBlur: m,
2458
2458
  contentEditable: o && l ? "plaintext-only" : "false",
2459
2459
  ...v,
2460
- onDoubleClick: p,
2460
+ onDoubleClick: x,
2461
2461
  suppressContentEditableWarning: !0,
2462
2462
  children: e.value
2463
2463
  }
@@ -2478,15 +2478,15 @@ function Ct({
2478
2478
  placeholder: _,
2479
2479
  className: u,
2480
2480
  name: f,
2481
- after: p,
2481
+ after: x,
2482
2482
  view: m
2483
2483
  }) {
2484
2484
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, c = !!(c && (d === "" || d === void 0)) && !(r && t), _ = _ !== void 0 ? _ : "", a = a !== void 0 ? a : 99;
2485
2485
  let v = (C) => {
2486
2486
  e == null || e({ name: f, value: C.currentTarget.value });
2487
2487
  };
2488
- const x = {};
2489
- return x.field = "input", u && (x.className = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...x, children: [
2488
+ const p = {};
2489
+ return p.field = "input", u && (p.className = u), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...p, children: [
2490
2490
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
2491
2491
  /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(
2492
2492
  "input",
@@ -2514,16 +2514,16 @@ function wn({
2514
2514
  reload: _ = !1,
2515
2515
  after: u = ""
2516
2516
  }) {
2517
- let f = (x) => {
2517
+ let f = (p) => {
2518
2518
  t && t({
2519
- value: x.target.textContent,
2519
+ value: p.target.textContent,
2520
2520
  name: a,
2521
2521
  reload: _
2522
2522
  });
2523
- }, p = (x) => {
2524
- x.key === "Enter" && x.preventDefault();
2525
- }, m = (x) => {
2526
- x.preventDefault(), navigator.clipboard.readText().then((C) => {
2523
+ }, x = (p) => {
2524
+ p.key === "Enter" && p.preventDefault();
2525
+ }, m = (p) => {
2526
+ p.preventDefault(), navigator.clipboard.readText().then((C) => {
2527
2527
  window.document.execCommand(
2528
2528
  "insertText",
2529
2529
  !1,
@@ -2542,8 +2542,8 @@ function wn({
2542
2542
  {
2543
2543
  onPaste: m,
2544
2544
  onInput: f,
2545
- onKeyDown: p,
2546
- onBlur: ue.Blur,
2545
+ onKeyDown: x,
2546
+ onBlur: fe.Blur,
2547
2547
  contentEditable: c && d ? "plaintext-only" : "false",
2548
2548
  ...v,
2549
2549
  suppressContentEditableWarning: !0,
@@ -3948,11 +3948,11 @@ function jt({
3948
3948
  active: _ = !0,
3949
3949
  after: u = "",
3950
3950
  show: f = !0,
3951
- view: p,
3951
+ view: x,
3952
3952
  className: m = ""
3953
3953
  }) {
3954
3954
  d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(d && _), b.useRef(null);
3955
- let v = "+_(___) ___-__-__", x = !0, C = 0, y = ($, S) => {
3955
+ let v = "+_(___) ___-__-__", p = !0, C = 0, y = ($, S) => {
3956
3956
  let Z = document.createRange(), Y = window.getSelection();
3957
3957
  Z.setStart(S.childNodes[0], $), Z.collapse(!0), Y.removeAllRanges(), Y.addRange(Z), S.focus();
3958
3958
  }, T = ($) => {
@@ -3962,13 +3962,13 @@ function jt({
3962
3962
  });
3963
3963
  }, R = ($) => {
3964
3964
  let S = 0, Z = "", Y = $.replace(/\D/g, "");
3965
- Y === "" && (x = !0);
3965
+ Y === "" && (p = !0);
3966
3966
  let $e = Y.split(""), te = "";
3967
3967
  $e.forEach((Le) => {
3968
- x && (te += Le, ot[te] !== void 0 && x ? (x = !1, v = ot[te].mask.replace(new RegExp("[0-9]", "g"), "_"), Z = ot[te].code) : (x && (C = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
3968
+ p && (te += Le, ot[te] !== void 0 && p ? (p = !1, v = ot[te].mask.replace(new RegExp("[0-9]", "g"), "_"), Z = ot[te].code) : (p && (C = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
3969
3969
  new RegExp("[0-9]", "g"),
3970
3970
  "_"
3971
- ), Z = ""), C > ("" + te).length && (x = !0, v = `+${te}_(___) ___-__-__`.replace(
3971
+ ), Z = ""), C > ("" + te).length && (p = !0, v = `+${te}_(___) ___-__-__`.replace(
3972
3972
  new RegExp("[0-9]", "g"),
3973
3973
  "_"
3974
3974
  ), Z = "")));
@@ -3977,7 +3977,7 @@ function jt({
3977
3977
  return Ee.length >= Y.length && (Y = Ee), { q: v.replace(/[_\d]/g, function() {
3978
3978
  return Y.charAt(S++) || "_";
3979
3979
  }), i: S, v: Y, f: Z };
3980
- }, F = ($) => {
3980
+ }, P = ($) => {
3981
3981
  $.preventDefault(), navigator.clipboard.writeText($.target.textContent.replace(/\D/g, "")).then(
3982
3982
  function() {
3983
3983
  Ke.Copy("Данные в буфер обмене");
@@ -3992,7 +3992,7 @@ function jt({
3992
3992
  $.key === "Enter" && $.preventDefault();
3993
3993
  };
3994
3994
  const z = ($) => {
3995
- ue.Blur($), a && a({
3995
+ fe.Blur($), a && a({
3996
3996
  value: $.target.textContent.replace(/\D/g, ""),
3997
3997
  name: r
3998
3998
  });
@@ -4008,7 +4008,7 @@ function jt({
4008
4008
  onPaste: T,
4009
4009
  onInput: K,
4010
4010
  onKeyDown: oe,
4011
- onContextMenu: F,
4011
+ onContextMenu: P,
4012
4012
  onBlur: z,
4013
4013
  suppressContentEditableWarning: !0,
4014
4014
  children: A.q
@@ -4066,11 +4066,11 @@ function yt({
4066
4066
  after: u,
4067
4067
  view: f
4068
4068
  }) {
4069
- const p = b.useRef();
4069
+ const x = b.useRef();
4070
4070
  i = !!(i && (o === "" || c[o].n === void 0)) && !(a && r);
4071
4071
  let g = o !== void 0 && o !== "" ? c[o].n : o, v = (T) => {
4072
- p.current.textContent = c[T].n, l && l({ value: T, name: _ });
4073
- }, x = (T) => {
4072
+ x.current.textContent = c[T].n, l && l({ value: T, name: _ });
4073
+ }, p = (T) => {
4074
4074
  if (!(a && r))
4075
4075
  return;
4076
4076
  const R = T.target.getBoundingClientRect();
@@ -4087,10 +4087,10 @@ function yt({
4087
4087
  (/* @__PURE__ */ new Date()).getTime()
4088
4088
  )
4089
4089
  );
4090
- }, C = { field: "select" }, y = { onClick: x };
4090
+ }, C = { field: "select" }, y = { onClick: p };
4091
4091
  return d && (y.placeholder = d), u && (y.after = u), a && r && (y.edit = ""), i ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4092
4092
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
4093
- /* @__PURE__ */ n.jsx("dd", { ...y, ref: p, children: g }),
4093
+ /* @__PURE__ */ n.jsx("dd", { ...y, ref: x, children: g }),
4094
4094
  t && /* @__PURE__ */ n.jsx("em", { children: t })
4095
4095
  ] });
4096
4096
  }
@@ -4147,27 +4147,27 @@ function wt({
4147
4147
  after: _ = "",
4148
4148
  show: u = !0,
4149
4149
  view: f,
4150
- onBlur: p,
4150
+ onBlur: x,
4151
4151
  onSave: m,
4152
4152
  className: g = ""
4153
4153
  }) {
4154
- let v = !!(l && (e === "" || e === void 0)), x = (R) => {
4154
+ let v = !!(l && (e === "" || e === void 0)), p = (R) => {
4155
4155
  t == null || t({ value: R.target.value, name: a });
4156
4156
  }, C = (R) => {
4157
- R.preventDefault(), navigator.clipboard.readText().then((F) => {
4157
+ R.preventDefault(), navigator.clipboard.readText().then((P) => {
4158
4158
  window.document.execCommand(
4159
4159
  "insertText",
4160
4160
  !1,
4161
- F.replace(/(\r\n|\n|\r)/gm, " ")
4161
+ P.replace(/(\r\n|\n|\r)/gm, " ")
4162
4162
  );
4163
- }).catch((F) => {
4163
+ }).catch((P) => {
4164
4164
  });
4165
4165
  }, y = (R) => {
4166
4166
  R.preventDefault(), navigator.clipboard.writeText(R.target.value).then(
4167
4167
  function() {
4168
4168
  Ke.Copy("Данные в буфер обмене");
4169
4169
  },
4170
- function(F) {
4170
+ function(P) {
4171
4171
  }
4172
4172
  );
4173
4173
  };
@@ -4182,7 +4182,7 @@ function wt({
4182
4182
  name: a,
4183
4183
  autoComplete: "off",
4184
4184
  type: "text",
4185
- onChange: x,
4185
+ onChange: p,
4186
4186
  onPaste: C,
4187
4187
  onContextMenu: y,
4188
4188
  placeholder: r
@@ -4214,8 +4214,8 @@ function St(e) {
4214
4214
  )
4215
4215
  );
4216
4216
  };
4217
- const p = {};
4218
- return c && (p.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
4217
+ const x = {};
4218
+ return c && (x.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
4219
4219
  "dl",
4220
4220
  {
4221
4221
  "data-form": "select",
@@ -4226,7 +4226,7 @@ function St(e) {
4226
4226
  {
4227
4227
  onClick: f,
4228
4228
  "data-edit": (r && i) + "",
4229
- ...p,
4229
+ ...x,
4230
4230
  children: _
4231
4231
  }
4232
4232
  ),
@@ -4259,7 +4259,7 @@ const qi = ({ onValue: e, parent: t, view: a, options: r }) => {
4259
4259
  left: u + "px",
4260
4260
  width: t.width
4261
4261
  },
4262
- children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((f, p) => /* @__PURE__ */ n.jsx(
4262
+ children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((f, x) => /* @__PURE__ */ n.jsx(
4263
4263
  "li",
4264
4264
  {
4265
4265
  onClick: () => {
@@ -4267,7 +4267,7 @@ const qi = ({ onValue: e, parent: t, view: a, options: r }) => {
4267
4267
  },
4268
4268
  children: r[f]
4269
4269
  },
4270
- p
4270
+ x
4271
4271
  )) })
4272
4272
  }
4273
4273
  )
@@ -4286,12 +4286,12 @@ function ft({
4286
4286
  show: _ = !0,
4287
4287
  active: u = !0,
4288
4288
  after: f = "",
4289
- view: p,
4289
+ view: x,
4290
4290
  module: m,
4291
4291
  item: g,
4292
4292
  className: v = ""
4293
4293
  }) {
4294
- let x = {};
4294
+ let p = {};
4295
4295
  switch (e) {
4296
4296
  case "String":
4297
4297
  return /* @__PURE__ */ n.jsx(
@@ -4300,7 +4300,7 @@ function ft({
4300
4300
  title: o,
4301
4301
  show: _,
4302
4302
  hide: c,
4303
- view: p,
4303
+ view: x,
4304
4304
  edit: d,
4305
4305
  active: u,
4306
4306
  value: t,
@@ -4311,13 +4311,13 @@ function ft({
4311
4311
  }
4312
4312
  );
4313
4313
  case "Select":
4314
- return g && (x = se.getSelect(parseInt(g)) ? se.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4314
+ return g && (p = se.getSelect(parseInt(g)) ? se.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4315
4315
  yt,
4316
4316
  {
4317
4317
  title: o,
4318
4318
  show: _,
4319
4319
  hide: c,
4320
- view: p,
4320
+ view: x,
4321
4321
  edit: d,
4322
4322
  active: u,
4323
4323
  value: t,
@@ -4325,7 +4325,7 @@ function ft({
4325
4325
  name: r,
4326
4326
  placeholder: i,
4327
4327
  className: v,
4328
- options: x
4328
+ options: p
4329
4329
  }
4330
4330
  );
4331
4331
  case "Users":
@@ -4335,7 +4335,7 @@ function ft({
4335
4335
  title: o,
4336
4336
  show: _,
4337
4337
  hide: c,
4338
- view: p,
4338
+ view: x,
4339
4339
  edit: d,
4340
4340
  active: u,
4341
4341
  value: t,
@@ -4343,7 +4343,7 @@ function ft({
4343
4343
  name: r,
4344
4344
  placeholder: i,
4345
4345
  className: v,
4346
- options: x
4346
+ options: p
4347
4347
  }
4348
4348
  );
4349
4349
  case "Date":
@@ -4353,7 +4353,7 @@ function ft({
4353
4353
  title: o,
4354
4354
  show: _,
4355
4355
  hide: c,
4356
- view: p,
4356
+ view: x,
4357
4357
  edit: d,
4358
4358
  active: u,
4359
4359
  value: t,
@@ -4370,7 +4370,7 @@ function ft({
4370
4370
  title: o,
4371
4371
  show: _,
4372
4372
  hide: c,
4373
- view: p,
4373
+ view: x,
4374
4374
  edit: d,
4375
4375
  active: u,
4376
4376
  value: t,
@@ -4387,7 +4387,7 @@ function ft({
4387
4387
  title: o,
4388
4388
  show: _,
4389
4389
  hide: c,
4390
- view: p,
4390
+ view: x,
4391
4391
  edit: d,
4392
4392
  active: u,
4393
4393
  value: t,
@@ -4404,7 +4404,7 @@ function ft({
4404
4404
  title: o,
4405
4405
  show: _,
4406
4406
  hide: c,
4407
- view: p,
4407
+ view: x,
4408
4408
  edit: d,
4409
4409
  active: u,
4410
4410
  value: t,
@@ -4421,7 +4421,7 @@ function ft({
4421
4421
  title: o,
4422
4422
  show: _,
4423
4423
  hide: c,
4424
- view: p,
4424
+ view: x,
4425
4425
  edit: d,
4426
4426
  active: u,
4427
4427
  value: t,
@@ -4429,7 +4429,7 @@ function ft({
4429
4429
  name: r || "",
4430
4430
  placeholder: i,
4431
4431
  className: v,
4432
- options: x,
4432
+ options: p,
4433
4433
  module: m || ""
4434
4434
  }
4435
4435
  );
@@ -4448,21 +4448,21 @@ function En({
4448
4448
  after: _ = "",
4449
4449
  show: u = !0,
4450
4450
  view: f,
4451
- onBlur: p,
4451
+ onBlur: x,
4452
4452
  onSave: m,
4453
4453
  className: g = ""
4454
4454
  }) {
4455
4455
  let v = !!(l && (e === "" || e === void 0));
4456
4456
  if (!(c && d) && !u || !(c && d) && v)
4457
4457
  return "";
4458
- let x = (R) => {
4458
+ let p = (R) => {
4459
4459
  t && t({ value: R.target.innerText, name: a });
4460
4460
  }, C = (R) => {
4461
4461
  m && m({ value: R.target.innerText, name: a });
4462
4462
  }, y = (R) => {
4463
- R.preventDefault(), navigator.clipboard.readText().then((F) => {
4464
- window.document.execCommand("insertText", !1, F);
4465
- }).catch((F) => {
4463
+ R.preventDefault(), navigator.clipboard.readText().then((P) => {
4464
+ window.document.execCommand("insertText", !1, P);
4465
+ }).catch((P) => {
4466
4466
  });
4467
4467
  };
4468
4468
  const T = {};
@@ -4473,7 +4473,7 @@ function En({
4473
4473
  {
4474
4474
  onPaste: y,
4475
4475
  onBlur: C,
4476
- onInput: x,
4476
+ onInput: p,
4477
4477
  contentEditable: c && d ? "plaintext-only" : "false",
4478
4478
  ...T,
4479
4479
  suppressContentEditableWarning: !0,
@@ -4496,23 +4496,23 @@ function Tn({
4496
4496
  after: _ = "",
4497
4497
  show: u = !0,
4498
4498
  view: f,
4499
- onBlur: p,
4499
+ onBlur: x,
4500
4500
  onSave: m,
4501
4501
  className: g = ""
4502
4502
  }) {
4503
4503
  let v = !!(l && (e === "" || e === void 0));
4504
4504
  if (ye.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), b.useRef(null), !(c && d) && !u || !(c && d) && v)
4505
4505
  return "";
4506
- const x = "__:__", C = new Set("_"), y = ((I) => Array.from(x, (W, $) => C.has(W) ? I = $ + 1 : I))(0), T = [...x].findIndex((I) => C.has(I)), R = new RegExp("\\d", "g"), F = (I) => (I = I.match(R) || [], Array.from(
4507
- x,
4506
+ const p = "__:__", C = new Set("_"), y = ((I) => Array.from(p, (W, $) => C.has(W) ? I = $ + 1 : I))(0), T = [...p].findIndex((I) => C.has(I)), R = new RegExp("\\d", "g"), P = (I) => (I = I.match(R) || [], Array.from(
4507
+ p,
4508
4508
  (W) => (I[0] === W || C.has(W)) && I.shift() || W
4509
4509
  )), A = (I) => {
4510
4510
  const [W, $] = [I.target.selectionStart, I.target.selectionEnd].map(
4511
- (S) => (S = F(I.target.value.slice(0, S)).findIndex(
4511
+ (S) => (S = P(I.target.value.slice(0, S)).findIndex(
4512
4512
  (Z) => C.has(Z)
4513
4513
  ), S < 0 ? y[y.length - 1] : z ? y[S - 1] || T : S)
4514
4514
  );
4515
- I.target.value = F(I.target.value).join(""), I.target.setSelectionRange(W, $), t == null || t({ name: a, value: I.target.value });
4515
+ I.target.value = P(I.target.value).join(""), I.target.setSelectionRange(W, $), t == null || t({ name: a, value: I.target.value });
4516
4516
  }, K = {};
4517
4517
  K.field = "input", g && (K.className = g);
4518
4518
  const oe = {};
@@ -4529,7 +4529,7 @@ function Tn({
4529
4529
  inputMode: "numeric",
4530
4530
  onKeyDown: (I) => z = I.key === "Backspace",
4531
4531
  onFocus: A,
4532
- onBlur: (I) => I.target.value === x && (I.target.value = "")
4532
+ onBlur: (I) => I.target.value === p && (I.target.value = "")
4533
4533
  }
4534
4534
  ) }),
4535
4535
  o ? /* @__PURE__ */ n.jsx("em", { children: o }) : ""
@@ -4586,35 +4586,35 @@ function In({
4586
4586
  after: _ = "",
4587
4587
  show: u = !0,
4588
4588
  view: f,
4589
- onBlur: p,
4589
+ onBlur: x,
4590
4590
  onSave: m,
4591
4591
  className: g = ""
4592
4592
  }) {
4593
- const [v, x] = b.useState(
4593
+ const [v, p] = b.useState(
4594
4594
  e !== void 0 ? e.split(",") : []
4595
4595
  );
4596
4596
  b.useEffect(() => {
4597
- e !== void 0 && x(e !== void 0 ? e.split(",") : []);
4597
+ e !== void 0 && p(e !== void 0 ? e.split(",") : []);
4598
4598
  }, [e]);
4599
4599
  let C = () => {
4600
- x([...v, ""]);
4600
+ p([...v, ""]);
4601
4601
  }, y = (z) => {
4602
- v.splice(z, 1), v.length === 0 && v.push(""), x([...v]), p !== void 0 && p({ value: v.join(","), name: a });
4602
+ v.splice(z, 1), v.length === 0 && v.push(""), p([...v]), x !== void 0 && x({ value: v.join(","), name: a });
4603
4603
  }, T = !!(l && (e === "" || e === void 0)), R = (z) => {
4604
4604
  };
4605
4605
  if (!(c && d) && !u || !(c && d) && T)
4606
4606
  return "";
4607
- const F = {};
4608
- F.field = "group", g && (F.className = g);
4607
+ const P = {};
4608
+ P.field = "group", g && (P.className = g);
4609
4609
  const A = (z) => {
4610
- ue.Blur(z), m && m({ value: z.target.textContent, name: a });
4610
+ fe.Blur(z), m && m({ value: z.target.textContent, name: a });
4611
4611
  };
4612
4612
  let K = (z, I) => {
4613
4613
  v[I] = z.target.textContent, t !== void 0 && t({ value: v.join(","), name: a });
4614
4614
  }, oe = (z) => {
4615
4615
  z.key === "Enter" && z.preventDefault();
4616
4616
  };
4617
- return /* @__PURE__ */ n.jsxs("dl", { ...F, children: [
4617
+ return /* @__PURE__ */ n.jsxs("dl", { ...P, children: [
4618
4618
  /* @__PURE__ */ n.jsxs("dt", { children: [
4619
4619
  i,
4620
4620
  /* @__PURE__ */ n.jsx("i", { onClick: C, children: /* @__PURE__ */ n.jsxs(
@@ -4692,15 +4692,15 @@ function Mn({
4692
4692
  active: _ = !0,
4693
4693
  after: u = "",
4694
4694
  view: f,
4695
- modal: p,
4695
+ modal: x,
4696
4696
  module: m,
4697
4697
  options: g,
4698
4698
  className: v
4699
4699
  }) {
4700
- const [x, C] = b.useState(Ji(e)), y = (F) => {
4701
- if (!(c && _) || !p)
4700
+ const [p, C] = b.useState(Ji(e)), y = (P) => {
4701
+ if (!(c && _) || !x)
4702
4702
  return;
4703
- let A = p.split(".");
4703
+ let A = x.split(".");
4704
4704
  Cn.Open(A[1], {
4705
4705
  callback: (K) => {
4706
4706
  t && t({ value: K, name: a }), C(K);
@@ -4708,7 +4708,7 @@ function Mn({
4708
4708
  onValue: t,
4709
4709
  options: g,
4710
4710
  name: a,
4711
- value: x
4711
+ value: p
4712
4712
  });
4713
4713
  }, T = {};
4714
4714
  T.field = "group", v && (T.className = v);
@@ -4741,9 +4741,9 @@ function Mn({
4741
4741
  onClick: open,
4742
4742
  edit: (c && _) + "",
4743
4743
  "data-after": u,
4744
- children: Object.keys(x).map((F) => {
4744
+ children: Object.keys(p).map((P) => {
4745
4745
  var A;
4746
- return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (A = g[F]) == null ? void 0 : A.label }, F);
4746
+ return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (A = g[P]) == null ? void 0 : A.label }, P);
4747
4747
  })
4748
4748
  }
4749
4749
  ),
@@ -4757,8 +4757,8 @@ const Xi = {
4757
4757
  Check: Rn,
4758
4758
  Switch: hn,
4759
4759
  Button: gn,
4760
- Message: xn,
4761
- Generator: pn,
4760
+ Message: pn,
4761
+ Generator: xn,
4762
4762
  Captcha: vn,
4763
4763
  Modal: kt,
4764
4764
  Money: bt,
@@ -4777,16 +4777,17 @@ const Xi = {
4777
4777
  Toogle: Bn,
4778
4778
  Group: In,
4779
4779
  Options: Mn
4780
- }, Qi = "_debug_23vuw_34", eo = "_b_23vuw_46", to = "_o_23vuw_50", no = "_tm_23vuw_55", ao = "_ta_23vuw_122", be = {
4780
+ }, Qi = "_debug_ug20b_34", eo = "_b_ug20b_46", to = "_o_ug20b_50", no = "_mb_ug20b_55", ao = "_tm_ug20b_66", ro = "_ta_ug20b_133", he = {
4781
4781
  debug: Qi,
4782
4782
  b: eo,
4783
4783
  o: to,
4784
- tm: no,
4785
- ta: ao,
4786
- "--body": "_--body_23vuw_132"
4787
- }, E = window.Telegram.WebApp, xe = { is: !1, MainButton: {}, BackButton: {} };
4788
- let he = {};
4789
- he.dark = {
4784
+ mb: no,
4785
+ tm: ao,
4786
+ ta: ro,
4787
+ "--body": "_--body_ug20b_143"
4788
+ }, E = window.Telegram.WebApp, ve = { is: !1, MainButton: {}, BackButton: {} };
4789
+ let pe = {};
4790
+ pe.dark = {
4790
4791
  "--tg-theme-bg-color": "#212121",
4791
4792
  "--tg-theme-text-color": "#ffffff",
4792
4793
  "--tg-theme-hint-color": "#aaaaaa",
@@ -4801,7 +4802,7 @@ he.dark = {
4801
4802
  "--tg-theme-subtitle-text-color": "#aaaaaa",
4802
4803
  "--tg-theme-destructive-text-color": "#e53935"
4803
4804
  };
4804
- he.light = {
4805
+ pe.light = {
4805
4806
  "--tg-theme-bg-color": "#ffffff",
4806
4807
  "--tg-theme-text-color": "#000000",
4807
4808
  "--tg-theme-hint-color": "#999999",
@@ -4810,7 +4811,7 @@ he.light = {
4810
4811
  "--tg-theme-button-text-color": "#ffffff",
4811
4812
  "--tg-theme-secondary-bg-color": "#efeff3"
4812
4813
  };
4813
- he.users = {
4814
+ pe.users = {
4814
4815
  "--tg-theme-bg-color": "#000000",
4815
4816
  "--tg-theme-text-color": "#ffffff",
4816
4817
  "--tg-theme-hint-color": "#98989e",
@@ -4824,8 +4825,8 @@ E.getUser = () => {
4824
4825
  return ((e = E.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : E.initDataUnsafe;
4825
4826
  };
4826
4827
  E.MainButton.set = (e) => {
4827
- xe.is ? xe.MainButton.set(e) : typeof e == "boolean" ? E.MainButton.isVisible = !1 : (E.MainButton.text = e.text, e.color && (E.MainButton.color = e.color), e.textColor && (E.MainButton.textColor = e.textColor), E.MainButton.isVisible = !0, E.MainButton.isActive = e.isActive ?? !0, e.page === void 0 || E.MainButton.onClick(() => {
4828
- je.setPage(e.page);
4828
+ ve.is ? ve.MainButton.set(e) : typeof e == "boolean" ? E.MainButton.isVisible = !1 : (E.MainButton.text = e.text, e.color && (E.MainButton.color = e.color), e.textColor && (E.MainButton.textColor = e.textColor), E.MainButton.isVisible = !0, E.MainButton.isActive = e.isActive ?? !0, e.page === void 0 || E.MainButton.onClick(() => {
4829
+ ce.setPage(e.page);
4829
4830
  }));
4830
4831
  };
4831
4832
  E.BackButton.state = [!1];
@@ -4834,7 +4835,7 @@ E.BackButton.router = (e) => {
4834
4835
  e === !1 ? (E.BackButton.isVisible = !1, E.BackButton.offClick(E.BackButton.listen[0]), E.BackButton.listen.shift(), E.BackButton.state.length !== 1 && E.BackButton.state.pop()) : (E.BackButton.isVisible = !0, E.BackButton.offClick(E.BackButton.listen[0]), E.BackButton.listen.shift(), E.BackButton.listen.push(() => {
4835
4836
  let t = E.BackButton.state.pop();
4836
4837
  if (t.page !== void 0)
4837
- je.setPage(t.page);
4838
+ ce.setPage(t.page);
4838
4839
  else {
4839
4840
  let a = E.BackButton.state[E.BackButton.state.length - 1];
4840
4841
  E.BackButton.router(a);
@@ -4842,7 +4843,7 @@ E.BackButton.router = (e) => {
4842
4843
  }), E.BackButton.onClick(E.BackButton.listen[0]));
4843
4844
  };
4844
4845
  E.BackButton.set = (e) => {
4845
- xe.is ? xe.BackButton.set(e) : (E.BackButton.state.push(e), E.BackButton.router(e));
4846
+ ve.is ? ve.BackButton.set(e) : (E.BackButton.state.push(e), E.BackButton.router(e));
4846
4847
  };
4847
4848
  E.Notice = (e, t) => {
4848
4849
  t !== void 0 ? (Ke.Send({ type: e, text: t }), E.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), E.HapticFeedback.notificationOccurred(e.type));
@@ -4850,46 +4851,46 @@ E.Notice = (e, t) => {
4850
4851
  E.Init = ({ dev: e }) => {
4851
4852
  if (e) {
4852
4853
  let [t, a] = b.useState(!1), [r, i] = b.useState(!1), [o, l] = b.useState("dark"), [c, d] = b.useState(!1), [_, u] = b.useState(!1);
4853
- xe.is = !0, xe.MainButton.set = a, xe.BackButton.set = i, b.useEffect(() => {
4854
- for (let m in he[o])
4854
+ ve.is = !0, ve.MainButton.set = a, ve.BackButton.set = i, b.useEffect(() => {
4855
+ for (let m in pe[o])
4855
4856
  document.documentElement.style.setProperty(
4856
4857
  m,
4857
- he[o][m]
4858
+ pe[o][m]
4858
4859
  );
4859
4860
  }, []);
4860
4861
  let f = (m) => {
4861
- for (let g in he[m])
4862
- document.documentElement.style.setProperty(g, he[m][g]);
4862
+ for (let g in pe[m])
4863
+ document.documentElement.style.setProperty(g, pe[m][g]);
4863
4864
  l(m), d(!1);
4864
- }, p = () => {
4865
+ }, x = () => {
4865
4866
  d(!1), u(!0);
4866
4867
  };
4867
4868
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4868
- /* @__PURE__ */ n.jsxs("div", { className: be.debug, children: [
4869
- r === !1 ? /* @__PURE__ */ n.jsx("div", { className: be.b, children: "Отмена" }) : /* @__PURE__ */ n.jsx(
4869
+ /* @__PURE__ */ n.jsxs("div", { className: he.debug, children: [
4870
+ r === !1 ? /* @__PURE__ */ n.jsx("div", { className: he.b, children: "Отмена" }) : /* @__PURE__ */ n.jsx(
4870
4871
  "div",
4871
4872
  {
4872
4873
  onClick: () => {
4873
- r.page;
4874
+ r.page === void 0 || ce.setPage(r.page);
4874
4875
  },
4875
- className: be.b,
4876
+ className: he.b,
4876
4877
  children: "Назад"
4877
4878
  }
4878
4879
  ),
4879
4880
  /* @__PURE__ */ n.jsx(
4880
4881
  "div",
4881
4882
  {
4882
- className: be.o,
4883
+ className: he.o,
4883
4884
  onClick: () => d(!c),
4884
4885
  children: "Меню"
4885
4886
  }
4886
4887
  )
4887
4888
  ] }),
4888
- /* @__PURE__ */ n.jsx("div", { children: t && /* @__PURE__ */ n.jsx("button", { children: t.text }) }),
4889
- c ? /* @__PURE__ */ n.jsxs("div", { className: be.tm, children: [
4889
+ t && /* @__PURE__ */ n.jsx("div", { className: he.mb, children: /* @__PURE__ */ n.jsx("button", { onClick: () => ce.setPage(t.page), children: t.text }) }),
4890
+ c ? /* @__PURE__ */ n.jsxs("div", { className: he.tm, children: [
4890
4891
  /* @__PURE__ */ n.jsxs("ul", { children: [
4891
- /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: p, children: "Authorization" }) }),
4892
- /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => je.setPage("Add"), children: "Add Page" }) })
4892
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: x, children: "Authorization" }) }),
4893
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => ce.setPage("Add"), children: "Add Page" }) })
4893
4894
  ] }),
4894
4895
  /* @__PURE__ */ n.jsxs("ul", { children: [
4895
4896
  /* @__PURE__ */ n.jsxs("li", { children: [
@@ -4921,18 +4922,18 @@ E.Init = ({ dev: e }) => {
4921
4922
  /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => d(!c), children: "Closed" }) })
4922
4923
  ] })
4923
4924
  ] }) : "",
4924
- _ ? /* @__PURE__ */ n.jsx(ro, { setAuthorization: u }) : ""
4925
+ _ ? /* @__PURE__ */ n.jsx(io, { setAuthorization: u }) : ""
4925
4926
  ] });
4926
4927
  } else
4927
4928
  return /* @__PURE__ */ n.jsx(n.Fragment, {});
4928
4929
  };
4929
- const ro = ({ setAuthorization: e }) => {
4930
+ const io = ({ setAuthorization: e }) => {
4930
4931
  let t = {}, a = (i) => {
4931
4932
  t = i.value;
4932
4933
  }, r = (i) => {
4933
4934
  localStorage.setItem("auth", t);
4934
4935
  };
4935
- return /* @__PURE__ */ n.jsx("div", { className: be.ta, children: /* @__PURE__ */ n.jsxs("div", { className: "--body", children: [
4936
+ return /* @__PURE__ */ n.jsx("div", { className: he.ta, children: /* @__PURE__ */ n.jsxs("div", { className: "--body", children: [
4936
4937
  /* @__PURE__ */ n.jsx("fieldset", { children: /* @__PURE__ */ n.jsx(
4937
4938
  Xi.Notes,
4938
4939
  {
@@ -4944,7 +4945,7 @@ const ro = ({ setAuthorization: e }) => {
4944
4945
  ) }),
4945
4946
  /* @__PURE__ */ n.jsx("div", { onClick: r, children: " Сщхранить " })
4946
4947
  ] }) });
4947
- }, _l = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), X()), N.New(t.crypto), t.defaultModule && ha(t.defaultModule), xa(
4948
+ }, dl = ({ children: e, config: t }) => (window.location.pathname === "/clear" && (window.history.pushState({}, "", "/"), X()), N.New(t.crypto), t.defaultModule && ha(t.defaultModule), pa(
4948
4949
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4949
4950
  /* @__PURE__ */ n.jsx(E.Init, { dev: t.dev }),
4950
4951
  /* @__PURE__ */ n.jsx(ui, { config: t.modal }),
@@ -4953,8 +4954,8 @@ const ro = ({ setAuthorization: e }) => {
4953
4954
  /* @__PURE__ */ n.jsx(wi, {}),
4954
4955
  e
4955
4956
  ] })
4956
- )), io = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((o) => /* @__PURE__ */ n.jsx(
4957
- oo,
4957
+ )), oo = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((o) => /* @__PURE__ */ n.jsx(
4958
+ so,
4958
4959
  {
4959
4960
  onClick: t,
4960
4961
  active: a,
@@ -4962,9 +4963,9 @@ const ro = ({ setAuthorization: e }) => {
4962
4963
  link: o.link
4963
4964
  },
4964
4965
  o.link
4965
- )) }) }), oo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
4966
- io.defaultProps = { size: "M", view: "H" };
4967
- const so = ({
4966
+ )) }) }), so = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
4967
+ oo.defaultProps = { size: "M", view: "H" };
4968
+ const lo = ({
4968
4969
  title: e = "",
4969
4970
  button: t,
4970
4971
  description: a = "",
@@ -4984,9 +4985,9 @@ const so = ({
4984
4985
  ] }),
4985
4986
  /* @__PURE__ */ n.jsx("ul", { children: r }),
4986
4987
  a && /* @__PURE__ */ n.jsx("article", { children: a })
4987
- ] }), lo = "_setting_dva4m_2", co = {
4988
- setting: lo
4989
- }, _o = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: co.setting, children: e }), uo = ({ label: e, children: t }) => {
4988
+ ] }), co = "_setting_dva4m_2", _o = {
4989
+ setting: co
4990
+ }, uo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: _o.setting, children: e }), fo = ({ label: e, children: t }) => {
4990
4991
  let [a, r] = b.useState(!1);
4991
4992
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
4992
4993
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
@@ -4995,10 +4996,10 @@ const so = ({
4995
4996
  ] }),
4996
4997
  a && /* @__PURE__ */ n.jsx("div", { children: t })
4997
4998
  ] });
4998
- }, fo = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
4999
+ }, mo = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
4999
5000
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5000
5001
  /* @__PURE__ */ n.jsx("dd", { role: "button", onClick: () => t(), children: a })
5001
- ] }) }), mo = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
5002
+ ] }) }), ho = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
5002
5003
  "div",
5003
5004
  {
5004
5005
  role: "switch",
@@ -5007,25 +5008,25 @@ const so = ({
5007
5008
  },
5008
5009
  "aria-checked": e ? "true" : "false"
5009
5010
  }
5010
- )), ho = { Switch: mo }, go = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5011
+ )), go = { Switch: ho }, po = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5011
5012
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5012
- /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(ho.Switch, { onClick: t, active: a }) })
5013
+ /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(go.Switch, { onClick: t, active: a }) })
5013
5014
  ] }) }), xo = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5014
5015
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5015
5016
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5016
- ] }) }), po = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5017
+ ] }) }), vo = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5017
5018
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5018
5019
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5019
- ] }) }), vo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5020
+ ] }) }), ko = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5020
5021
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5021
5022
  /* @__PURE__ */ n.jsx("dd", { children: t })
5022
- ] }) }), ko = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5023
+ ] }) }), bo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5023
5024
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5024
5025
  /* @__PURE__ */ n.jsx("dd", { children: t })
5025
- ] }) }), bo = { Accordion: uo, Button: fo, Switch: go, Info: po, Select: xo, Component: vo, Node: ko };
5026
+ ] }) }), Co = { Accordion: fo, Button: mo, Switch: po, Info: vo, Select: xo, Component: ko, Node: bo };
5026
5027
  function Nn({ list: e, onClick: t, active: a, size: r, view: i }) {
5027
5028
  return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((o) => /* @__PURE__ */ n.jsx(
5028
- Co,
5029
+ jo,
5029
5030
  {
5030
5031
  onClick: t,
5031
5032
  active: a,
@@ -5035,9 +5036,9 @@ function Nn({ list: e, onClick: t, active: a, size: r, view: i }) {
5035
5036
  o.link
5036
5037
  )) }) });
5037
5038
  }
5038
- const Co = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5039
+ const jo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5039
5040
  Nn.defaultProps = { size: "M", view: "H" };
5040
- const dl = { Section: so, Main: _o, Item: bo, Tabs: Nn };
5041
+ const ul = { Section: lo, Main: uo, Item: Co, Tabs: Nn };
5041
5042
  function Dn({ text: e, type: t, button: a }) {
5042
5043
  let [r, i] = b.useState(!1), o = { active: t };
5043
5044
  const l = () => {
@@ -5070,22 +5071,22 @@ function Dn({ text: e, type: t, button: a }) {
5070
5071
  a && /* @__PURE__ */ n.jsx("button", { onClick: l, children: a.label })
5071
5072
  ] });
5072
5073
  }
5073
- const jo = "_h_1usnu_1", yo = "_g_1usnu_11", wo = "_hr_1usnu_16", So = "_hl_1usnu_28", Eo = "_t_1usnu_40", To = "_s_1usnu_60", Ro = "_u_1usnu_69", Bo = "_o_1usnu_76", Io = "_l_1usnu_105", Mo = "_hh_1usnu_115", No = "_c_1usnu_128", Do = "_loadingB_1usnu_1", Fo = "_m_1usnu_180", Po = "_ul_1usnu_196", $o = "_f_1usnu_226", J = {
5074
- h: jo,
5075
- g: yo,
5076
- hr: wo,
5077
- hl: So,
5078
- t: Eo,
5079
- s: To,
5080
- u: Ro,
5081
- o: Bo,
5082
- l: Io,
5083
- hh: Mo,
5084
- c: No,
5085
- loadingB: Do,
5074
+ const yo = "_h_1usnu_1", wo = "_g_1usnu_11", So = "_hr_1usnu_16", Eo = "_hl_1usnu_28", To = "_t_1usnu_40", Ro = "_s_1usnu_60", Bo = "_u_1usnu_69", Io = "_o_1usnu_76", Mo = "_l_1usnu_105", No = "_hh_1usnu_115", Do = "_c_1usnu_128", Po = "_loadingB_1usnu_1", Fo = "_m_1usnu_180", $o = "_ul_1usnu_196", Lo = "_f_1usnu_226", J = {
5075
+ h: yo,
5076
+ g: wo,
5077
+ hr: So,
5078
+ hl: Eo,
5079
+ t: To,
5080
+ s: Ro,
5081
+ u: Bo,
5082
+ o: Io,
5083
+ l: Mo,
5084
+ hh: No,
5085
+ c: Do,
5086
+ loadingB: Po,
5086
5087
  m: Fo,
5087
- ul: Po,
5088
- f: $o
5088
+ ul: $o,
5089
+ f: Lo
5089
5090
  }, qt = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: J.h, children: [
5090
5091
  /* @__PURE__ */ n.jsx("div", { className: J.t, children: e }),
5091
5092
  t && /* @__PURE__ */ n.jsx("div", { className: J.hl, children: t }),
@@ -5098,27 +5099,27 @@ const jo = "_h_1usnu_1", yo = "_g_1usnu_11", wo = "_hr_1usnu_16", So = "_hl_1usn
5098
5099
  function en({ children: e }) {
5099
5100
  return /* @__PURE__ */ n.jsx("div", { className: J.g, children: e });
5100
5101
  }
5101
- const Lo = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [J.o, t].join(" "), children: [
5102
+ const Oo = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [J.o, t].join(" "), children: [
5102
5103
  a && /* @__PURE__ */ n.jsx("div", { className: J.hh, children: a }),
5103
5104
  e
5104
- ] }), Oo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.u, children: e }), Ao = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.c, children: e }), Go = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.m, children: e }), ul = {
5105
+ ] }), Ao = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.u, children: e }), Go = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.c, children: e }), zo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.m, children: e }), fl = {
5105
5106
  Header: qt,
5106
5107
  Section: Xt,
5107
5108
  Group: en,
5108
5109
  Form: Qt,
5109
5110
  List: Jt,
5110
5111
  A: Dn,
5111
- U: Oo,
5112
+ U: Ao,
5112
5113
  G: en,
5113
- C: Ao,
5114
+ C: Go,
5114
5115
  L: Jt,
5115
- O: Lo,
5116
+ O: Oo,
5116
5117
  S: Xt,
5117
5118
  H: qt,
5118
- M: Go,
5119
+ M: zo,
5119
5120
  F: Qt
5120
- }, fl = { Send: Fr, Line: Dn };
5121
- function zo() {
5121
+ }, ml = { Send: Pr, Line: Dn };
5122
+ function Wo() {
5122
5123
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
5123
5124
  "path",
5124
5125
  {
@@ -5127,15 +5128,15 @@ function zo() {
5127
5128
  }
5128
5129
  ) });
5129
5130
  }
5130
- const Wo = {};
5131
- function Ko(e) {
5132
- Wo.add(e);
5131
+ const Ko = {};
5132
+ function Zo(e) {
5133
+ Ko.add(e);
5133
5134
  }
5134
- function Zo({ color: e, size: t, name: a }) {
5135
+ function Uo({ color: e, size: t, name: a }) {
5135
5136
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
5136
5137
  }
5137
- const ml = { Logo: zo, Sprite: Ko, Symbol: Zo };
5138
- function Uo() {
5138
+ const hl = { Logo: Wo, Sprite: Zo, Symbol: Uo };
5139
+ function Ho() {
5139
5140
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
5140
5141
  /* @__PURE__ */ n.jsx(
5141
5142
  "path",
@@ -5170,7 +5171,7 @@ function Uo() {
5170
5171
  )
5171
5172
  ] });
5172
5173
  }
5173
- function Ho() {
5174
+ function Yo() {
5174
5175
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
5175
5176
  /* @__PURE__ */ n.jsx(
5176
5177
  "path",
@@ -5199,7 +5200,7 @@ function Ho() {
5199
5200
  )
5200
5201
  ] });
5201
5202
  }
5202
- function Yo() {
5203
+ function Vo() {
5203
5204
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n.jsx(
5204
5205
  "path",
5205
5206
  {
@@ -5212,11 +5213,11 @@ function Yo() {
5212
5213
  }
5213
5214
  ) });
5214
5215
  }
5215
- const Vo = "_n_euuvm_1", qo = {
5216
- n: Vo
5216
+ const qo = "_n_euuvm_1", Jo = {
5217
+ n: qo
5217
5218
  };
5218
- let Pe = {}, Me = [];
5219
- const Jo = (e, t) => {
5219
+ let Fe = {}, Me = [];
5220
+ const Xo = (e, t) => {
5220
5221
  switch (t.type) {
5221
5222
  case "open":
5222
5223
  return {
@@ -5257,7 +5258,7 @@ const Jo = (e, t) => {
5257
5258
  r = { ...e.take, ...r }, e.active = !1;
5258
5259
  for (let i in r)
5259
5260
  r[i] !== "999" && (e.active = !0);
5260
- return Pe.get(r, e.active), {
5261
+ return Fe.get(r, e.active), {
5261
5262
  ...e,
5262
5263
  take: r,
5263
5264
  active: e.active
@@ -5268,27 +5269,27 @@ const Jo = (e, t) => {
5268
5269
  throw new Error();
5269
5270
  }
5270
5271
  };
5271
- function Xo(e) {
5272
- Pe.fn({ action: "add", data: e });
5273
- }
5274
5272
  function Qo(e) {
5275
- Pe.fn({ action: "add", data: e });
5273
+ Fe.fn({ action: "add", data: e });
5276
5274
  }
5277
5275
  function es(e) {
5278
- Pe.fn({ action: "new", data: e });
5276
+ Fe.fn({ action: "add", data: e });
5279
5277
  }
5280
5278
  function ts(e) {
5281
- Pe.fn = e;
5279
+ Fe.fn({ action: "new", data: e });
5280
+ }
5281
+ function ns(e) {
5282
+ Fe.fn = e;
5282
5283
  }
5283
- function ns() {
5284
- const [e, t] = b.useReducer(Jo, {
5284
+ function as() {
5285
+ const [e, t] = b.useReducer(Xo, {
5285
5286
  open: !1,
5286
5287
  active: !1,
5287
5288
  news: [],
5288
5289
  take: {}
5289
5290
  });
5290
5291
  mt.useListener("bell", async (r) => {
5291
- }), ts(async (r) => {
5292
+ }), ns(async (r) => {
5292
5293
  switch (r.action) {
5293
5294
  case "add":
5294
5295
  Me.push(r.data);
@@ -5352,11 +5353,11 @@ function ns() {
5352
5353
  /* @__PURE__ */ n.jsx(
5353
5354
  "div",
5354
5355
  {
5355
- className: qo.n,
5356
+ className: Jo.n,
5356
5357
  onClick: () => {
5357
5358
  t({ type: "open", open: !0 });
5358
5359
  },
5359
- children: e.active ? /* @__PURE__ */ n.jsx(Ho, {}) : /* @__PURE__ */ n.jsx(Uo, {})
5360
+ children: e.active ? /* @__PURE__ */ n.jsx(Yo, {}) : /* @__PURE__ */ n.jsx(Ho, {})
5360
5361
  }
5361
5362
  ),
5362
5363
  e.open ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -5371,7 +5372,7 @@ function ns() {
5371
5372
  ),
5372
5373
  /* @__PURE__ */ n.jsxs("div", { className: "notify-m", children: [
5373
5374
  /* @__PURE__ */ n.jsx("div", { className: "notify-l", children: e.news.map((r, i) => /* @__PURE__ */ n.jsx(
5374
- as,
5375
+ rs,
5375
5376
  {
5376
5377
  data: r,
5377
5378
  dispatch: t
@@ -5383,7 +5384,7 @@ function ns() {
5383
5384
  ] }) : ""
5384
5385
  ] });
5385
5386
  }
5386
- const as = ({ data: e, dispatch: t }) => {
5387
+ const rs = ({ data: e, dispatch: t }) => {
5387
5388
  let a = async (r) => {
5388
5389
  t({ type: "hide", id: r.id }), await mt.Send({
5389
5390
  type: "module",
@@ -5400,21 +5401,21 @@ const as = ({ data: e, dispatch: t }) => {
5400
5401
  ] }),
5401
5402
  /* @__PURE__ */ n.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => a(e), children: " " })
5402
5403
  ] });
5403
- }, rs = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
5404
- function is(e) {
5404
+ }, is = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
5405
+ function os(e) {
5405
5406
  return new SharedWorker(
5406
- "data:text/javascript;base64," + rs,
5407
+ "data:text/javascript;base64," + is,
5407
5408
  {
5408
5409
  name: e == null ? void 0 : e.name
5409
5410
  }
5410
5411
  );
5411
5412
  }
5412
- function os(e) {
5413
+ function ss(e) {
5413
5414
  let t = {}, a = {};
5414
5415
  e.data.forEach((i) => {
5415
5416
  t[i.id] = { s: i.v, n: i.a }, a[i.id] = i;
5416
5417
  });
5417
- let r = { ...pe(), 901: t };
5418
+ let r = { ...ke(), 901: t };
5418
5419
  cn(a), De(r);
5419
5420
  }
5420
5421
  let ae = {}, H = {}, We = [
@@ -5427,10 +5428,10 @@ let ae = {}, H = {}, We = [
5427
5428
  "info",
5428
5429
  "job"
5429
5430
  ];
5430
- function ss() {
5431
+ function ls() {
5431
5432
  const [e, t] = b.useState(!1), [a, r] = b.useState(!1);
5432
5433
  function i(o) {
5433
- const l = new is();
5434
+ const l = new os();
5434
5435
  ae.laodData = (c) => {
5435
5436
  let d = We.indexOf(c);
5436
5437
  d >= 0 && We.splice(d, 1), We.length === 0 && t(!0);
@@ -5454,14 +5455,14 @@ function ss() {
5454
5455
  H.module = (e) => {
5455
5456
  ae[e.listen] !== void 0 && (ae[e.listen](e), delete ae[e.listen]);
5456
5457
  };
5457
- H.bell = es;
5458
- H.company = os;
5458
+ H.bell = ts;
5459
+ H.company = ss;
5459
5460
  H.info = (e) => {
5460
5461
  let t = {};
5461
5462
  t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), _n(t), sn(e.data.menu);
5462
5463
  };
5463
5464
  H.version = async (e) => {
5464
- pt.version.Server(e.data);
5465
+ xt.version.Server(e.data);
5465
5466
  };
5466
5467
  H.online = async (e) => {
5467
5468
  };
@@ -5470,13 +5471,13 @@ H.offline = async (e) => {
5470
5471
  H.chat = (e) => {
5471
5472
  switch (e.data.action) {
5472
5473
  case "new_message":
5473
- je.getModule();
5474
+ ce.getModule();
5474
5475
  break;
5475
5476
  case "view_message":
5476
- je.getModule();
5477
+ ce.getModule();
5477
5478
  break;
5478
5479
  case "write_message":
5479
- je.getModule();
5480
+ ce.getModule();
5480
5481
  break;
5481
5482
  }
5482
5483
  };
@@ -5497,7 +5498,7 @@ H.users = (e) => {
5497
5498
  number: l
5498
5499
  };
5499
5500
  });
5500
- let a = { ...pe(), user: t };
5501
+ let a = { ...ke(), user: t };
5501
5502
  De(a);
5502
5503
  };
5503
5504
  H.api = (e) => {
@@ -5510,13 +5511,13 @@ H.delete = () => {
5510
5511
  X();
5511
5512
  };
5512
5513
  H.select = (e) => {
5513
- let t = { ...pe() };
5514
+ let t = { ...ke() };
5514
5515
  e.data.forEach((a) => {
5515
5516
  t[a.n] = JSON.parse(a.s);
5516
5517
  }), De(t);
5517
5518
  };
5518
5519
  H.job = (e) => {
5519
- let t = { ...pe() }, a = {};
5520
+ let t = { ...ke() }, a = {};
5520
5521
  Object.keys(e.data).forEach((r) => {
5521
5522
  a[r] = { s: 1, n: e.data[r] };
5522
5523
  }), t[1] = a, De(t);
@@ -5526,12 +5527,12 @@ H.setting = (e) => {
5526
5527
  };
5527
5528
  H.app = () => {
5528
5529
  };
5529
- const ls = (e, t) => {
5530
+ const cs = (e, t) => {
5530
5531
  ae[e] = t;
5531
- }, cs = (e, t) => {
5532
+ }, _s = (e, t) => {
5532
5533
  ae[e](t);
5533
5534
  };
5534
- function _s(e) {
5535
+ function ds(e) {
5535
5536
  let t = "_" + String(Math.random()).substring(2, 7);
5536
5537
  return new Promise((a) => {
5537
5538
  ae[t] = (r) => {
@@ -5539,8 +5540,8 @@ function _s(e) {
5539
5540
  }, e = { ...e, listen: t }, e.type = "modules", ae.send(e);
5540
5541
  });
5541
5542
  }
5542
- const mt = { useConnect: ss, useListener: ls, setListener: cs, Send: _s };
5543
- class ds {
5543
+ const mt = { useConnect: ls, useListener: cs, setListener: _s, Send: ds };
5544
+ class us {
5544
5545
  constructor(t = "el", a = "db") {
5545
5546
  it(this, "storeName");
5546
5547
  it(this, "_dbp");
@@ -5561,7 +5562,7 @@ class ds {
5561
5562
  }
5562
5563
  }
5563
5564
  let st, O = {};
5564
- const Se = () => (st || (st = new ds()), st), de = (e, t, a = Se()) => a._withIDBStore("readwrite", (r) => {
5565
+ const Se = () => (st || (st = new us()), st), ue = (e, t, a = Se()) => a._withIDBStore("readwrite", (r) => {
5565
5566
  O[e] = t, r.put(N.enCode(t), e);
5566
5567
  }), ie = (e, t = Se()) => O[e] === void 0 ? new Promise((a, r) => {
5567
5568
  let i;
@@ -5574,40 +5575,40 @@ const Se = () => (st || (st = new ds()), st), de = (e, t, a = Se()) => a._withID
5574
5575
  } else
5575
5576
  a({});
5576
5577
  });
5577
- }) : O[e], us = (e, t = Se()) => t._withIDBStore("readwrite", (a) => {
5578
+ }) : O[e], fs = (e, t = Se()) => t._withIDBStore("readwrite", (a) => {
5578
5579
  a.delete(e);
5579
5580
  }), ht = (e = Se()) => e._withIDBStore("readwrite", (t) => {
5580
5581
  t.clear();
5581
- }), fs = (e = Se()) => {
5582
+ }), ms = (e = Se()) => {
5582
5583
  const t = [];
5583
5584
  return e._withIDBStore("readonly", (a) => {
5584
5585
  (a.openKeyCursor || a.openCursor).call(a).onsuccess = function() {
5585
5586
  this.result && (t.push(this.result.key), this.result.continue());
5586
5587
  };
5587
5588
  }).then(() => t);
5588
- }, ms = (e, t, a = [], r = {}) => {
5589
+ }, hs = (e, t, a = [], r = {}) => {
5589
5590
  let i = a.length !== 0, o = [], l = r.sort, c = Object.keys(r).length !== 0, d = Object.keys(r), _ = Object.keys(e), u = [], f = (m) => {
5590
5591
  let g = "";
5591
5592
  if (a.forEach((v) => {
5592
5593
  g += t[m][v];
5593
5594
  }), c) {
5594
5595
  let v = {};
5595
- d.forEach((x) => {
5596
- v[x] = t[m][x];
5596
+ d.forEach((p) => {
5597
+ v[p] = t[m][p];
5597
5598
  });
5598
- for (let x in l)
5599
- t[m][l[x]] === void 0 && (ht(), location.reload()), x === "s1" && (v[x] = new Date(t[m][l[x]]).getTime()), x === "s2" && (v[x] = t[m][l[x]]), x === "s3" && (v[x] = t[m][l[x]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5599
+ for (let p in l)
5600
+ t[m][l[p]] === void 0 && (ht(), location.reload()), p === "s1" && (v[p] = new Date(t[m][l[p]]).getTime()), p === "s2" && (v[p] = t[m][l[p]]), p === "s3" && (v[p] = t[m][l[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5600
5601
  o.push({ id: m, text: g, ...v });
5601
5602
  } else
5602
5603
  o.push({ id: m, text: g });
5603
- }, p = (m) => {
5604
+ }, x = (m) => {
5604
5605
  };
5605
5606
  return _.forEach((m) => {
5606
5607
  u.push(t[m]);
5607
5608
  }), u.forEach((m) => {
5608
- m === void 0 ? (ht(), location.reload()) : (i && f(m.id), c && p(m.id));
5609
+ m === void 0 ? (ht(), location.reload()) : (i && f(m.id), c && x(m.id));
5609
5610
  }), { list: u, search: o, filter: r };
5610
- }, hs = (e, t, a, r = Se()) => {
5611
+ }, gs = (e, t, a, r = Se()) => {
5611
5612
  if (O[e] === void 0)
5612
5613
  return new Promise((i, o) => {
5613
5614
  let l;
@@ -5628,53 +5629,53 @@ const Se = () => (st || (st = new ds()), st), de = (e, t, a = Se()) => a._withID
5628
5629
  return O[e][t.id] = { ...O[e][t.id], ...t.data }, a !== void 0 && O[a] !== void 0 ? O[a][t.id] !== void 0 && (O[a][t.id] = t.data.eDate) : O[a] = [], delete O[e][t.id].$_item, delete O[e][t.id].$_send, r._withIDBStore("readwrite", (i) => {
5629
5630
  i.put(N.enCode(O[e]), e), a !== void 0 && i.put(N.enCode(O[a]), a);
5630
5631
  });
5631
- }, gs = async (e, t, a, r) => {
5632
+ }, ps = async (e, t, a, r) => {
5632
5633
  let i, o;
5633
- o = await ie(a), o[e.id] = e, await de(a, o), i !== null && (i = await ie(t), i[e.id] = e.eDate, await de(t, i)), r !== void 0 && r({ type: "load", page: i, base: o });
5634
+ o = await ie(a), o[e.id] = e, await ue(a, o), i !== null && (i = await ie(t), i[e.id] = e.eDate, await ue(t, i)), r !== void 0 && r({ type: "load", page: i, base: o });
5634
5635
  }, xs = async (e, t, a, r) => {
5635
5636
  let i = await ie(t), o = await ie(a);
5636
5637
  for (let l in e)
5637
5638
  o[l] = e[l], i[l] = e[l].eDate;
5638
- await de(t, i), await de(a, o), r !== void 0 && r({ type: "load", page: i, base: o });
5639
- }, ps = async (e, t, a, r) => {
5639
+ await ue(t, i), await ue(a, o), r !== void 0 && r({ type: "load", page: i, base: o });
5640
+ }, vs = async (e, t, a, r) => {
5640
5641
  let i = await ie(t), o = await ie(a);
5641
- e.forEach((l) => delete i[l]), await de(t, i), r !== void 0 && r({ type: "load", page: i, base: o });
5642
- }, vs = async (e, t, a) => {
5643
- let r = await ie(t);
5644
- e.forEach((i) => delete r[i]), await de(t, r);
5642
+ e.forEach((l) => delete i[l]), await ue(t, i), r !== void 0 && r({ type: "load", page: i, base: o });
5645
5643
  }, ks = async (e, t, a) => {
5646
5644
  let r = await ie(t);
5647
- e.forEach((i) => r[i.id] = i.eDate), await de(t, r);
5645
+ e.forEach((i) => delete r[i]), await ue(t, r);
5648
5646
  }, bs = async (e, t, a) => {
5647
+ let r = await ie(t);
5648
+ e.forEach((i) => r[i.id] = i.eDate), await ue(t, r);
5649
+ }, Cs = async (e, t, a) => {
5649
5650
  let r = await ie(t);
5650
5651
  if (a !== void 0)
5651
5652
  a({ type: "load", base: r });
5652
5653
  else
5653
5654
  return r[e];
5654
- }, Cs = (e) => O[e], hl = {
5655
- id: bs,
5655
+ }, js = (e) => O[e], gl = {
5656
+ id: Cs,
5656
5657
  get: ie,
5657
- set: de,
5658
- add: gs,
5659
- del: us,
5660
- upd: hs,
5661
- key: fs,
5662
- load: Cs,
5663
- split: ms,
5658
+ set: ue,
5659
+ add: ps,
5660
+ del: fs,
5661
+ upd: gs,
5662
+ key: ms,
5663
+ load: js,
5664
+ split: hs,
5664
5665
  clear: ht,
5665
5666
  updAll: xs,
5666
- delAll: ps,
5667
- delList: vs,
5668
- addList: ks
5669
- }, gl = { setSetting: Oa, getSetting: Aa }, js = "_s_18bde_1", ys = "_loadingB_18bde_1", ws = "_ul_18bde_31", Ss = {
5670
- s: js,
5671
- loadingB: ys,
5672
- ul: ws
5667
+ delAll: vs,
5668
+ delList: ks,
5669
+ addList: bs
5670
+ }, pl = { setSetting: Oa, getSetting: Aa }, ys = "_s_18bde_1", ws = "_loadingB_18bde_1", Ss = "_ul_18bde_31", Es = {
5671
+ s: ys,
5672
+ loadingB: ws,
5673
+ ul: Ss
5673
5674
  };
5674
- function Es({ children: e }) {
5675
+ function Ts({ children: e }) {
5675
5676
  return /* @__PURE__ */ n.jsx("ul", { className: J.ul, children: e });
5676
5677
  }
5677
- function Ts(e, t) {
5678
+ function Rs(e, t) {
5678
5679
  switch (t.type) {
5679
5680
  case "load":
5680
5681
  return {
@@ -5713,7 +5714,7 @@ function xl({
5713
5714
  className: a,
5714
5715
  ...r
5715
5716
  }) {
5716
- const i = b.useRef(null), [o, l] = b.useReducer(Ts, {
5717
+ const i = b.useRef(null), [o, l] = b.useReducer(Rs, {
5717
5718
  load: !1,
5718
5719
  list: [],
5719
5720
  data: {},
@@ -5730,10 +5731,10 @@ function xl({
5730
5731
  return /* @__PURE__ */ n.jsx(
5731
5732
  "div",
5732
5733
  {
5733
- className: [Ss.s, a].join(" "),
5734
+ className: [Es.s, a].join(" "),
5734
5735
  ref: i,
5735
5736
  onScroll: c,
5736
- children: /* @__PURE__ */ n.jsx(Es, { "el-empty": "Данные не найдены", children: o.load && o.list !== void 0 ? o.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
5737
+ children: /* @__PURE__ */ n.jsx(Ts, { "el-empty": "Данные не найдены", children: o.load && o.list !== void 0 ? o.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
5737
5738
  /* @__PURE__ */ n.jsx("i", {}),
5738
5739
  /* @__PURE__ */ n.jsx("i", {}),
5739
5740
  /* @__PURE__ */ n.jsx("i", {})
@@ -5741,7 +5742,7 @@ function xl({
5741
5742
  }
5742
5743
  );
5743
5744
  }
5744
- const Rs = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5745
+ const Bs = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5745
5746
  const [o, l] = b.useState(!!a);
5746
5747
  b.useEffect(() => {
5747
5748
  l(!!a);
@@ -5759,7 +5760,7 @@ const Rs = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5759
5760
  }
5760
5761
  );
5761
5762
  }, we = {};
5762
- function Bs(e) {
5763
+ function Is(e) {
5763
5764
  const [t, a] = b.useState({}), r = b.useRef(e);
5764
5765
  return we.u = (i) => {
5765
5766
  r.current = { ...r.current, [i.name]: i.value };
@@ -5767,21 +5768,21 @@ function Bs(e) {
5767
5768
  a(Date.now());
5768
5769
  }, [r.current];
5769
5770
  }
5770
- function Is(e) {
5771
+ function Ms(e) {
5771
5772
  we.u(e), e.reload && we.r();
5772
5773
  }
5773
- function Ms() {
5774
+ function Ns() {
5774
5775
  we.r && we.r();
5775
5776
  }
5776
- const pl = {
5777
+ const vl = {
5777
5778
  Color: bn,
5778
5779
  Date: vt,
5779
5780
  Code: kn,
5780
5781
  Check: Rn,
5781
5782
  Switch: hn,
5782
5783
  Button: gn,
5783
- Message: xn,
5784
- Generator: pn,
5784
+ Message: pn,
5785
+ Generator: xn,
5785
5786
  Captcha: vn,
5786
5787
  Modal: kt,
5787
5788
  Money: bt,
@@ -5798,20 +5799,20 @@ const pl = {
5798
5799
  Users: St,
5799
5800
  String: wt,
5800
5801
  Form: ft,
5801
- runReload: Ms,
5802
- useData: Bs,
5803
- setValue: Is,
5804
- Palette: Rs,
5802
+ runReload: Ns,
5803
+ useData: Is,
5804
+ setValue: Ms,
5805
+ Palette: Bs,
5805
5806
  Toogle: Bn,
5806
5807
  Group: In,
5807
5808
  Options: Mn
5808
- }, Ns = "_spinner_1ul0m_1", Ds = "_l_1ul0m_75", Fs = "_loadingB_1ul0m_1", Fn = {
5809
- spinner: Ns,
5810
- l: Ds,
5809
+ }, Ds = "_spinner_1ul0m_1", Ps = "_l_1ul0m_75", Fs = "_loadingB_1ul0m_1", Pn = {
5810
+ spinner: Ds,
5811
+ l: Ps,
5811
5812
  loadingB: Fs
5812
5813
  };
5813
- function Ps() {
5814
- return /* @__PURE__ */ n.jsx("div", { className: Fn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
5814
+ function $s() {
5815
+ return /* @__PURE__ */ n.jsx("div", { className: Pn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
5815
5816
  "path",
5816
5817
  {
5817
5818
  d: "M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",
@@ -5819,18 +5820,18 @@ function Ps() {
5819
5820
  }
5820
5821
  ) }) });
5821
5822
  }
5822
- function $s() {
5823
- return /* @__PURE__ */ n.jsxs("div", { className: Fn.l, children: [
5823
+ function Ls() {
5824
+ return /* @__PURE__ */ n.jsxs("div", { className: Pn.l, children: [
5824
5825
  /* @__PURE__ */ n.jsx("i", {}),
5825
5826
  /* @__PURE__ */ n.jsx("i", {}),
5826
5827
  /* @__PURE__ */ n.jsx("i", {})
5827
5828
  ] });
5828
5829
  }
5829
- const vl = { Spinner: Ps, Inline: $s }, Ls = "_s_t9swc_1", tn = {
5830
- s: Ls
5830
+ const kl = { Spinner: $s, Inline: Ls }, Os = "_s_t9swc_1", tn = {
5831
+ s: Os
5831
5832
  };
5832
5833
  let Et;
5833
- function Os({ className: e, placeholder: t }) {
5834
+ function As({ className: e, placeholder: t }) {
5834
5835
  let a = (l) => {
5835
5836
  Et(l.target.textContent);
5836
5837
  }, r = (l) => {
@@ -5854,7 +5855,7 @@ function Os({ className: e, placeholder: t }) {
5854
5855
  }
5855
5856
  );
5856
5857
  }
5857
- function As(e, t, a) {
5858
+ function Gs(e, t, a) {
5858
5859
  let r = [], i = 1, o = 0, l = {}, c = 50;
5859
5860
  return l[i] = [], e.forEach((d) => {
5860
5861
  d.text.toLowerCase().indexOf(t) > -1 && r.push(d.id);
@@ -5862,17 +5863,17 @@ function As(e, t, a) {
5862
5863
  o++, o <= c || (i++, o = 1, l[i] = []), l[i].push(a[d]);
5863
5864
  }), l;
5864
5865
  }
5865
- function Gs(e) {
5866
+ function zs(e) {
5866
5867
  Et = e;
5867
5868
  }
5868
- function zs(e) {
5869
+ function Ws(e) {
5869
5870
  Et = e;
5870
5871
  }
5871
- const kl = { Field: Os, Run: As, Get: Gs, useValue: zs }, Ws = "_f_q3r0i_1", Ks = {
5872
- f: Ws
5872
+ const bl = { Field: As, Run: Gs, Get: zs, useValue: Ws }, Ks = "_f_q3r0i_1", Zs = {
5873
+ f: Ks
5873
5874
  };
5874
5875
  let ee = {};
5875
- function Zs(e, t) {
5876
+ function Us(e, t) {
5876
5877
  switch (t.type) {
5877
5878
  case "open":
5878
5879
  return {
@@ -5922,8 +5923,8 @@ function Zs(e, t) {
5922
5923
  throw new Error();
5923
5924
  }
5924
5925
  }
5925
- function Us() {
5926
- const [e, t] = b.useReducer(Zs, {
5926
+ function Hs() {
5927
+ const [e, t] = b.useReducer(Us, {
5927
5928
  open: !1,
5928
5929
  view: null,
5929
5930
  data: {},
@@ -5941,12 +5942,12 @@ function Us() {
5941
5942
  /* @__PURE__ */ n.jsxs(
5942
5943
  "div",
5943
5944
  {
5944
- className: Ks.f,
5945
+ className: Zs.f,
5945
5946
  onClick: () => {
5946
5947
  t({ type: "open", open: !0 });
5947
5948
  },
5948
5949
  children: [
5949
- /* @__PURE__ */ n.jsx(Yo, {}),
5950
+ /* @__PURE__ */ n.jsx(Vo, {}),
5950
5951
  e.active && /* @__PURE__ */ n.jsxs("i", { children: [
5951
5952
  e.size,
5952
5953
  "1"
@@ -5966,7 +5967,7 @@ function Us() {
5966
5967
  ),
5967
5968
  /* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
5968
5969
  /* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((a) => /* @__PURE__ */ n.jsx(
5969
- Js,
5970
+ Xs,
5970
5971
  {
5971
5972
  data: a,
5972
5973
  dispatch: t,
@@ -5988,31 +5989,31 @@ function Us() {
5988
5989
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
5989
5990
  ] });
5990
5991
  }
5991
- function Hs(e) {
5992
+ function Ys(e) {
5992
5993
  ee.get = e;
5993
5994
  }
5994
- function Ys(e) {
5995
+ function Vs(e) {
5995
5996
  ee.set !== void 0 && ee.set(e);
5996
5997
  }
5997
- function Vs(e) {
5998
+ function qs(e) {
5998
5999
  ee.reset !== void 0 && ee.reset(e);
5999
6000
  }
6000
- function qs(e, t, a, r) {
6001
+ function Js(e, t, a, r) {
6001
6002
  let i = [], o = 1, l = 0, c = {}, d = 50;
6002
6003
  return c[o] = [], r === !0 && (Object.keys(t).forEach((_) => {
6003
6004
  Number.parseInt(t[_]) !== 999 && (e = e.filter(
6004
6005
  (u) => Number.parseInt(u[_]) === Number.parseInt(t[_])
6005
6006
  ));
6006
- }), Pn(e.length)), e.forEach((_) => {
6007
+ }), Fn(e.length)), e.forEach((_) => {
6007
6008
  i.push(_.id);
6008
6009
  }), i.forEach((_) => {
6009
6010
  l++, l <= d || (o++, l = 1, c[o] = []), c[o].push(a[_]);
6010
6011
  }), c;
6011
6012
  }
6012
- function Pn(e) {
6013
+ function Fn(e) {
6013
6014
  ee.count(e);
6014
6015
  }
6015
- function Js({ data: e, state: t, dispatch: a }) {
6016
+ function Xs({ data: e, state: t, dispatch: a }) {
6016
6017
  let r = () => {
6017
6018
  a({ type: "view", view: e });
6018
6019
  }, i = () => {
@@ -6035,7 +6036,7 @@ function Js({ data: e, state: t, dispatch: a }) {
6035
6036
  ) : ""
6036
6037
  ] }),
6037
6038
  /* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((o, l) => /* @__PURE__ */ n.jsx(
6038
- Xs,
6039
+ Qs,
6039
6040
  {
6040
6041
  data: t.data[e].list[o],
6041
6042
  head: e,
@@ -6047,7 +6048,7 @@ function Js({ data: e, state: t, dispatch: a }) {
6047
6048
  )) })
6048
6049
  ] });
6049
6050
  }
6050
- function Xs({ data: e, head: t, state: a, dispatch: r, type: i }) {
6051
+ function Qs({ data: e, head: t, state: a, dispatch: r, type: i }) {
6051
6052
  if (i !== "999" && e.count === void 0)
6052
6053
  return "";
6053
6054
  const o = () => {
@@ -6066,8 +6067,8 @@ function Xs({ data: e, head: t, state: a, dispatch: r, type: i }) {
6066
6067
  }
6067
6068
  );
6068
6069
  }
6069
- const bl = { Button: Us, useValue: Hs, Set: Ys, Run: qs, Count: Pn, Reset: Vs }, Cl = { Bell: ns, Send: Qo, Add: Xo };
6070
- function jl({ active: e, onActive: t, id: a, name: r }) {
6070
+ const Cl = { Button: Hs, useValue: Ys, Set: Vs, Run: Js, Count: Fn, Reset: qs }, jl = { Bell: as, Send: es, Add: Qo };
6071
+ function yl({ active: e, onActive: t, id: a, name: r }) {
6071
6072
  const [i, o] = b.useState(!!e);
6072
6073
  b.useEffect(() => {
6073
6074
  o(!!e);
@@ -6085,11 +6086,11 @@ function jl({ active: e, onActive: t, id: a, name: r }) {
6085
6086
  }
6086
6087
  );
6087
6088
  }
6088
- const Qs = "_sort_1yrvt_1", el = {
6089
- sort: Qs
6089
+ const el = "_sort_1yrvt_1", tl = {
6090
+ sort: el
6090
6091
  };
6091
6092
  let Ye = {};
6092
- function tl(e, t) {
6093
+ function nl(e, t) {
6093
6094
  switch (t.type) {
6094
6095
  case "active":
6095
6096
  let a = "<";
@@ -6102,12 +6103,12 @@ function tl(e, t) {
6102
6103
  throw new Error();
6103
6104
  }
6104
6105
  }
6105
- function nl() {
6106
+ function al() {
6106
6107
  const [e, t] = b.useReducer(
6107
- tl,
6108
+ nl,
6108
6109
  ct() === void 0 ? { active: 1, sort: "<" } : ct()
6109
6110
  );
6110
- return /* @__PURE__ */ n.jsxs("div", { className: el.sort, children: [
6111
+ return /* @__PURE__ */ n.jsxs("div", { className: tl.sort, children: [
6111
6112
  /* @__PURE__ */ n.jsx(
6112
6113
  "i",
6113
6114
  {
@@ -6134,13 +6135,13 @@ function nl() {
6134
6135
  )
6135
6136
  ] });
6136
6137
  }
6137
- function al(e) {
6138
+ function rl(e) {
6138
6139
  Ye.get = e;
6139
6140
  }
6140
- function rl(e) {
6141
+ function il(e) {
6141
6142
  Ye.set(e);
6142
6143
  }
6143
- function il(e, t, a) {
6144
+ function ol(e, t, a) {
6144
6145
  let r = 1, i = 0, o = {}, l = 50;
6145
6146
  o[r] = [];
6146
6147
  let c = {}, d = "s1a";
@@ -6159,38 +6160,38 @@ function il(e, t, a) {
6159
6160
  i++, i <= l || (r++, i = 1, o[r] = []), o[r].push(e[_.id]);
6160
6161
  }), { data: o };
6161
6162
  }
6162
- function ol(e) {
6163
+ function sl(e) {
6163
6164
  Ye.count(e);
6164
6165
  }
6165
- const yl = { Init: nl, useValue: al, Set: rl, Run: il, Count: ol };
6166
+ const wl = { Init: al, useValue: rl, Set: il, Run: ol, Count: sl };
6166
6167
  export {
6167
- ho as Action,
6168
- fl as Alert,
6169
- cl as Api,
6168
+ go as Action,
6169
+ ml as Alert,
6170
+ _l as Api,
6170
6171
  Lr as Button,
6171
- ul as Component,
6172
- hl as DataBase,
6172
+ fl as Component,
6173
+ gl as DataBase,
6173
6174
  He as Events,
6174
- bl as Filter,
6175
- pl as Form,
6175
+ Cl as Filter,
6176
+ vl as Form,
6176
6177
  ye as Format,
6177
- ml as Icon,
6178
- _l as Init,
6178
+ hl as Icon,
6179
+ dl as Init,
6179
6180
  Xi as Input,
6180
- vl as Loading,
6181
+ kl as Loading,
6181
6182
  Cn as Modal,
6182
6183
  Ke as Notice,
6183
- Cl as Notifications,
6184
- je as Router,
6184
+ jl as Notifications,
6185
+ ce as Router,
6185
6186
  xl as Scrolling,
6186
- kl as Search,
6187
- dl as Setting,
6188
- pt as Sistym,
6187
+ bl as Search,
6188
+ ul as Setting,
6189
+ xt as Sistym,
6189
6190
  mt as Socket,
6190
6191
  se as Store,
6191
- jl as Switch,
6192
- io as Tabs,
6192
+ yl as Switch,
6193
+ oo as Tabs,
6193
6194
  E as Telegram,
6194
- yl as Triage,
6195
- gl as User
6195
+ wl as Triage,
6196
+ pl as User
6196
6197
  };