elcrm 0.9.56 → 0.9.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,29 +1,29 @@
1
1
  import './index.css';var Za = Object.defineProperty;
2
2
  var Ua = (e, t, n) => t in e ? Za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var vt = (e, t, n) => Ua(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var Ct = (e, t, n) => Ua(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import h, { createContext as za, useContext as Ka, createElement as wn } from "react";
5
- let $t = {
5
+ let Bt = {
6
6
  enCode: (e) => e,
7
7
  deCode: (e) => e
8
8
  };
9
9
  const Sn = (e) => {
10
- $t = e;
11
- }, Wa = (e) => $t.enCode(e), qa = (e) => $t.deCode(e), P = { enCode: Wa, deCode: qa, New: Sn }, D = {}, X = {}, Ne = {}, En = {}, Ce = {}, me = {};
12
- let rt = "M06";
13
- function Ya(e) {
14
- rt = e;
10
+ Bt = e;
11
+ }, Wa = (e) => Bt.enCode(e), qa = (e) => Bt.deCode(e), P = { enCode: Wa, deCode: qa, New: Sn }, D = {}, X = {}, Ne = {}, En = {}, Ce = {}, me = {};
12
+ let it = "M06";
13
+ function Ha(e) {
14
+ it = e;
15
15
  }
16
- function Ha() {
17
- return rt;
16
+ function Ya() {
17
+ return it;
18
18
  }
19
19
  function Va(e) {
20
20
  if (localStorage.getItem("d")) {
21
21
  let n = sessionStorage.getItem("f");
22
- n ? (n = P.deCode(n), n || ne(), D.id = n.id, D.tab = n.tab, D.page = n.page, D.module = n.module, D.time = n.time, D.payment = { active: !0 }, D.module_admin = n.module_admin) : (D.id = 0, D.tab = "", D.page = "Main", D.module = D.module || rt);
22
+ n ? (n = P.deCode(n), n || ne(), D.id = n.id, D.tab = n.tab, D.page = n.page, D.module = n.module, D.time = n.time, D.payment = { active: !0 }, D.module_admin = n.module_admin) : (D.id = 0, D.tab = "", D.page = "Main", D.module = D.module || it);
23
23
  } else
24
24
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
25
25
  (n) => localStorage.removeItem(n)
26
- ), ["f"].forEach((n) => sessionStorage.removeItem(n)), D.id = 0, D.tab = "", D.page = "Auth", D.module = rt;
26
+ ), ["f"].forEach((n) => sessionStorage.removeItem(n)), D.id = 0, D.tab = "", D.page = "Auth", D.module = it;
27
27
  return e;
28
28
  }
29
29
  function ne() {
@@ -60,7 +60,7 @@ function tr() {
60
60
  function nr(e) {
61
61
  localStorage.setItem("p", P.enCode(e));
62
62
  }
63
- function kt() {
63
+ function yt() {
64
64
  let e = localStorage.getItem("p");
65
65
  if (e !== "" && e !== "undefined" && e !== null) {
66
66
  let t = P.deCode(e);
@@ -182,7 +182,7 @@ function Ln(e) {
182
182
  let t = localStorage.getItem("b");
183
183
  t = t === null ? {} : P.deCode(t), t[Te()] = e, localStorage.setItem("b", P.enCode(t));
184
184
  }
185
- function yt() {
185
+ function bt() {
186
186
  let e = localStorage.getItem("b");
187
187
  return e === null ? {} : (e = P.deCode(e), e = e[Te()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
188
188
  }
@@ -198,7 +198,7 @@ function Bn(e, t) {
198
198
  } else
199
199
  return ne(), !1;
200
200
  }
201
- function Ke(e) {
201
+ function We(e) {
202
202
  me.data = e, localStorage.setItem("q", P.enCode(me.data));
203
203
  }
204
204
  function jr(e, t) {
@@ -297,7 +297,7 @@ function Lr(e, t, n) {
297
297
  const J = {
298
298
  setSSID: Xa,
299
299
  getSSID: Qa,
300
- getPORT: kt,
300
+ getPORT: yt,
301
301
  setPORT: nr,
302
302
  setAUTH: er,
303
303
  getAUTH: tr,
@@ -307,10 +307,10 @@ const J = {
307
307
  getMenu: vr,
308
308
  useSort: Cr,
309
309
  setSort: Ln,
310
- getSort: yt,
310
+ getSort: bt,
311
311
  setCompany: $n,
312
312
  getCompany: Bn,
313
- setSelect: Ke,
313
+ setSelect: We,
314
314
  addSelect: jr,
315
315
  getSelect: xe,
316
316
  setApi: kr,
@@ -320,7 +320,7 @@ const J = {
320
320
  setUser: Fn,
321
321
  isUser: Er,
322
322
  getUser: Sr,
323
- getDefaultModules: Ha,
323
+ getDefaultModules: Ya,
324
324
  getBase: Rr,
325
325
  setBase: Mr,
326
326
  setData: Nr,
@@ -365,19 +365,19 @@ function Or(e) {
365
365
  function Ar(e) {
366
366
  return e && (ue.i = e), ue.i;
367
367
  }
368
- function it(e) {
368
+ function lt(e) {
369
369
  return ue.i(e);
370
370
  }
371
371
  function Gr(e) {
372
372
  Sn(e);
373
373
  }
374
- const ot = {
374
+ const Le = {
375
375
  version: { Api: Fr, Server: Br, Client: Pr },
376
376
  Host: Or,
377
- SSID: Yr,
377
+ SSID: Hr,
378
378
  Import: Ar,
379
379
  Crypto: Gr,
380
- defaultModule: Ya
380
+ defaultModule: Ha
381
381
  };
382
382
  let Zr = "api", Ur = "elcrm", zr = "online", Me = !1;
383
383
  function Kr() {
@@ -387,17 +387,17 @@ function Kr() {
387
387
  files: n
388
388
  };
389
389
  }
390
- let Bt = `${Zr}.${Ur}.${zr}`;
390
+ let qe = `${Zr}.${Ur}.${zr}`;
391
391
  function Wr(e) {
392
- return "https://" + J.getPORT().address + "/audio/" + e;
392
+ return (Le.Host() || `https://${qe}/`) + "audio" + e;
393
393
  }
394
394
  function qr(e) {
395
- return "https://" + J.getPORT().address + "/image/" + e;
395
+ return (Le.Host() || `https://${qe}/`) + "image/" + e;
396
396
  }
397
- function Yr(e) {
397
+ function Hr(e) {
398
398
  Me = e;
399
399
  }
400
- function We(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
400
+ function He(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
401
401
  return new Promise((r) => {
402
402
  const s = new On();
403
403
  s.onmessage = (i) => {
@@ -409,13 +409,13 @@ function We(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
409
409
  link: e,
410
410
  data: t,
411
411
  ssid: n,
412
- host: ot.Host() || `https://${Bt}/`
412
+ host: Le.Host() || `https://${qe}/`
413
413
  });
414
414
  });
415
415
  }
416
- async function Hr(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
416
+ async function Yr(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
417
417
  try {
418
- return await (await We(ot.Host() || `https://${Bt}/` + e, {
418
+ return await (await He(Le.Host() || `https://${qe}/` + e, {
419
419
  method: "POST",
420
420
  headers: {
421
421
  ssid: n
@@ -435,13 +435,13 @@ function Vr(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
435
435
  link: e,
436
436
  data: t,
437
437
  ssid: n,
438
- host: ot.Host() + "modules/" || `https://${Bt}/modules`
438
+ host: Le.Host() + "modules/" || `https://${qe}/modules`
439
439
  });
440
440
  });
441
441
  }
442
442
  function Jr(e, t = {}, n = Me ? J.getSSID() : J.getAUTH()) {
443
443
  const [r, s] = h.useState({ status: "load" }), i = async (o) => {
444
- let l = await We(e, o, n);
444
+ let l = await He(e, o, n);
445
445
  s(l);
446
446
  };
447
447
  return h.useEffect(() => {
@@ -454,7 +454,7 @@ let An = {
454
454
  };
455
455
  async function Xr(e, t, n = {}) {
456
456
  try {
457
- return await (await We("https://" + e + "/" + t, {
457
+ return await (await He("https://" + e + "/" + t, {
458
458
  method: "POST",
459
459
  headers: An,
460
460
  body: JSON.stringify(n)
@@ -465,7 +465,7 @@ async function Xr(e, t, n = {}) {
465
465
  }
466
466
  async function Qr(e, t = {}) {
467
467
  try {
468
- return await (await We("https://tb.elcrm.online/v1/" + e, {
468
+ return await (await He("https://tb.elcrm.online/v1/" + e, {
469
469
  method: "POST",
470
470
  headers: An,
471
471
  body: JSON.stringify(t)
@@ -482,10 +482,10 @@ async function ts(e, t = {}) {
482
482
  setTimeout(() => n(t), e);
483
483
  });
484
484
  }
485
- const bt = {
485
+ const wt = {
486
486
  audio: Wr,
487
487
  image: qr,
488
- fetch: We,
488
+ fetch: He,
489
489
  modules: Vr,
490
490
  remoute: Xr,
491
491
  url: Kr,
@@ -493,9 +493,9 @@ const bt = {
493
493
  telegram: Qr,
494
494
  use: Jr,
495
495
  token: es,
496
- formData: Hr
496
+ formData: Yr
497
497
  };
498
- var wt = { exports: {} }, Pe = {};
498
+ var St = { exports: {} }, Oe = {};
499
499
  /**
500
500
  * @license React
501
501
  * react-jsx-runtime.production.min.js
@@ -507,7 +507,7 @@ var wt = { exports: {} }, Pe = {};
507
507
  */
508
508
  var un;
509
509
  function ns() {
510
- if (un) return Pe;
510
+ if (un) return Oe;
511
511
  un = 1;
512
512
  var e = h, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
513
513
  function o(l, c, _) {
@@ -517,9 +517,9 @@ function ns() {
517
517
  if (l && l.defaultProps) for (u in c = l.defaultProps, c) x[u] === void 0 && (x[u] = c[u]);
518
518
  return { $$typeof: t, type: l, key: f, ref: m, props: x, _owner: s.current };
519
519
  }
520
- return Pe.Fragment = n, Pe.jsx = o, Pe.jsxs = o, Pe;
520
+ return Oe.Fragment = n, Oe.jsx = o, Oe.jsxs = o, Oe;
521
521
  }
522
- var Oe = {};
522
+ var Ae = {};
523
523
  /**
524
524
  * @license React
525
525
  * react-jsx-runtime.development.js
@@ -621,18 +621,18 @@ function as() {
621
621
  }
622
622
  return null;
623
623
  }
624
- var F = Object.assign, W = 0, ae, ie, ge, De, $e, He, qt;
625
- function Yt() {
624
+ var F = Object.assign, W = 0, ae, ie, ge, De, Be, Je, qt;
625
+ function Ht() {
626
626
  }
627
- Yt.__reactDisabledLog = !0;
627
+ Ht.__reactDisabledLog = !0;
628
628
  function ha() {
629
629
  {
630
630
  if (W === 0) {
631
- ae = console.log, ie = console.info, ge = console.warn, De = console.error, $e = console.group, He = console.groupCollapsed, qt = console.groupEnd;
631
+ ae = console.log, ie = console.info, ge = console.warn, De = console.error, Be = console.group, Je = console.groupCollapsed, qt = console.groupEnd;
632
632
  var d = {
633
633
  configurable: !0,
634
634
  enumerable: !0,
635
- value: Yt,
635
+ value: Ht,
636
636
  writable: !0
637
637
  };
638
638
  Object.defineProperties(console, {
@@ -670,10 +670,10 @@ function as() {
670
670
  value: De
671
671
  }),
672
672
  group: F({}, d, {
673
- value: $e
673
+ value: Be
674
674
  }),
675
675
  groupCollapsed: F({}, d, {
676
- value: He
676
+ value: Je
677
677
  }),
678
678
  groupEnd: F({}, d, {
679
679
  value: qt
@@ -683,39 +683,39 @@ function as() {
683
683
  W < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
684
684
  }
685
685
  }
686
- var dt = j.ReactCurrentDispatcher, _t;
687
- function Ve(d, v, E) {
686
+ var _t = j.ReactCurrentDispatcher, ut;
687
+ function Xe(d, v, E) {
688
688
  {
689
- if (_t === void 0)
689
+ if (ut === void 0)
690
690
  try {
691
691
  throw Error();
692
692
  } catch (G) {
693
693
  var B = G.stack.trim().match(/\n( *(at )?)/);
694
- _t = B && B[1] || "";
694
+ ut = B && B[1] || "";
695
695
  }
696
696
  return `
697
- ` + _t + d;
697
+ ` + ut + d;
698
698
  }
699
699
  }
700
- var ut = !1, Je;
700
+ var ft = !1, Qe;
701
701
  {
702
702
  var ga = typeof WeakMap == "function" ? WeakMap : Map;
703
- Je = new ga();
703
+ Qe = new ga();
704
704
  }
705
- function Ht(d, v) {
706
- if (!d || ut)
705
+ function Yt(d, v) {
706
+ if (!d || ft)
707
707
  return "";
708
708
  {
709
- var E = Je.get(d);
709
+ var E = Qe.get(d);
710
710
  if (E !== void 0)
711
711
  return E;
712
712
  }
713
713
  var B;
714
- ut = !0;
714
+ ft = !0;
715
715
  var G = Error.prepareStackTrace;
716
716
  Error.prepareStackTrace = void 0;
717
717
  var Z;
718
- Z = dt.current, dt.current = null, ha();
718
+ Z = _t.current, _t.current = null, ha();
719
719
  try {
720
720
  if (v) {
721
721
  var A = function() {
@@ -752,74 +752,74 @@ function as() {
752
752
  if (re && B && typeof re.stack == "string") {
753
753
  for (var O = re.stack.split(`
754
754
  `), ee = B.stack.split(`
755
- `), Y = O.length - 1, V = ee.length - 1; Y >= 1 && V >= 0 && O[Y] !== ee[V]; )
755
+ `), H = O.length - 1, V = ee.length - 1; H >= 1 && V >= 0 && O[H] !== ee[V]; )
756
756
  V--;
757
- for (; Y >= 1 && V >= 0; Y--, V--)
758
- if (O[Y] !== ee[V]) {
759
- if (Y !== 1 || V !== 1)
757
+ for (; H >= 1 && V >= 0; H--, V--)
758
+ if (O[H] !== ee[V]) {
759
+ if (H !== 1 || V !== 1)
760
760
  do
761
- if (Y--, V--, V < 0 || O[Y] !== ee[V]) {
761
+ if (H--, V--, V < 0 || O[H] !== ee[V]) {
762
762
  var le = `
763
- ` + O[Y].replace(" at new ", " at ");
764
- return d.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", d.displayName)), typeof d == "function" && Je.set(d, le), le;
763
+ ` + O[H].replace(" at new ", " at ");
764
+ return d.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", d.displayName)), typeof d == "function" && Qe.set(d, le), le;
765
765
  }
766
- while (Y >= 1 && V >= 0);
766
+ while (H >= 1 && V >= 0);
767
767
  break;
768
768
  }
769
769
  }
770
770
  } finally {
771
- ut = !1, dt.current = Z, pa(), Error.prepareStackTrace = G;
771
+ ft = !1, _t.current = Z, pa(), Error.prepareStackTrace = G;
772
772
  }
773
- var Re = d ? d.displayName || d.name : "", we = Re ? Ve(Re) : "";
774
- return typeof d == "function" && Je.set(d, we), we;
773
+ var Re = d ? d.displayName || d.name : "", we = Re ? Xe(Re) : "";
774
+ return typeof d == "function" && Qe.set(d, we), we;
775
775
  }
776
776
  function xa(d, v, E) {
777
- return Ht(d, !1);
777
+ return Yt(d, !1);
778
778
  }
779
779
  function va(d) {
780
780
  var v = d.prototype;
781
781
  return !!(v && v.isReactComponent);
782
782
  }
783
- function Xe(d, v, E) {
783
+ function et(d, v, E) {
784
784
  if (d == null)
785
785
  return "";
786
786
  if (typeof d == "function")
787
- return Ht(d, va(d));
787
+ return Yt(d, va(d));
788
788
  if (typeof d == "string")
789
- return Ve(d);
789
+ return Xe(d);
790
790
  switch (d) {
791
791
  case _:
792
- return Ve("Suspense");
792
+ return Xe("Suspense");
793
793
  case u:
794
- return Ve("SuspenseList");
794
+ return Xe("SuspenseList");
795
795
  }
796
796
  if (typeof d == "object")
797
797
  switch (d.$$typeof) {
798
798
  case c:
799
799
  return xa(d.render);
800
800
  case x:
801
- return Xe(d.type, v, E);
801
+ return et(d.type, v, E);
802
802
  case f: {
803
803
  var B = d, G = B._payload, Z = B._init;
804
804
  try {
805
- return Xe(Z(G), v, E);
805
+ return et(Z(G), v, E);
806
806
  } catch {
807
807
  }
808
808
  }
809
809
  }
810
810
  return "";
811
811
  }
812
- var Be = Object.prototype.hasOwnProperty, Vt = {}, Jt = j.ReactDebugCurrentFrame;
813
- function Qe(d) {
812
+ var Fe = Object.prototype.hasOwnProperty, Vt = {}, Jt = j.ReactDebugCurrentFrame;
813
+ function tt(d) {
814
814
  if (d) {
815
- var v = d._owner, E = Xe(d.type, d._source, v ? v.type : null);
815
+ var v = d._owner, E = et(d.type, d._source, v ? v.type : null);
816
816
  Jt.setExtraStackFrame(E);
817
817
  } else
818
818
  Jt.setExtraStackFrame(null);
819
819
  }
820
820
  function Ca(d, v, E, B, G) {
821
821
  {
822
- var Z = Function.call.bind(Be);
822
+ var Z = Function.call.bind(Fe);
823
823
  for (var A in d)
824
824
  if (Z(d, A)) {
825
825
  var O = void 0;
@@ -829,15 +829,15 @@ function as() {
829
829
  throw ee.name = "Invariant Violation", ee;
830
830
  }
831
831
  O = d[A](v, A, B, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
832
- } catch (Y) {
833
- O = Y;
832
+ } catch (H) {
833
+ O = H;
834
834
  }
835
- O && !(O instanceof Error) && (Qe(G), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", B || "React class", E, A, typeof O), Qe(null)), O instanceof Error && !(O.message in Vt) && (Vt[O.message] = !0, Qe(G), b("Failed %s type: %s", E, O.message), Qe(null));
835
+ O && !(O instanceof Error) && (tt(G), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", B || "React class", E, A, typeof O), tt(null)), O instanceof Error && !(O.message in Vt) && (Vt[O.message] = !0, tt(G), b("Failed %s type: %s", E, O.message), tt(null));
836
836
  }
837
837
  }
838
838
  }
839
839
  var ja = Array.isArray;
840
- function ft(d) {
840
+ function mt(d) {
841
841
  return ja(d);
842
842
  }
843
843
  function ka(d) {
@@ -860,15 +860,15 @@ function as() {
860
860
  if (ya(d))
861
861
  return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ka(d)), Xt(d);
862
862
  }
863
- var Fe = j.ReactCurrentOwner, ba = {
863
+ var Pe = j.ReactCurrentOwner, ba = {
864
864
  key: !0,
865
865
  ref: !0,
866
866
  __self: !0,
867
867
  __source: !0
868
- }, en, tn, mt;
869
- mt = {};
868
+ }, en, tn, ht;
869
+ ht = {};
870
870
  function wa(d) {
871
- if (Be.call(d, "ref")) {
871
+ if (Fe.call(d, "ref")) {
872
872
  var v = Object.getOwnPropertyDescriptor(d, "ref").get;
873
873
  if (v && v.isReactWarning)
874
874
  return !1;
@@ -876,7 +876,7 @@ function as() {
876
876
  return d.ref !== void 0;
877
877
  }
878
878
  function Sa(d) {
879
- if (Be.call(d, "key")) {
879
+ if (Fe.call(d, "key")) {
880
880
  var v = Object.getOwnPropertyDescriptor(d, "key").get;
881
881
  if (v && v.isReactWarning)
882
882
  return !1;
@@ -884,9 +884,9 @@ function as() {
884
884
  return d.key !== void 0;
885
885
  }
886
886
  function Ea(d, v) {
887
- if (typeof d.ref == "string" && Fe.current && v && Fe.current.stateNode !== v) {
888
- var E = R(Fe.current.type);
889
- mt[E] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(Fe.current.type), d.ref), mt[E] = !0);
887
+ if (typeof d.ref == "string" && Pe.current && v && Pe.current.stateNode !== v) {
888
+ var E = R(Pe.current.type);
889
+ ht[E] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(Pe.current.type), d.ref), ht[E] = !0);
890
890
  }
891
891
  }
892
892
  function Da(d, v) {
@@ -945,36 +945,36 @@ function as() {
945
945
  var Z, A = {}, O = null, ee = null;
946
946
  E !== void 0 && (Qt(E), O = "" + E), Sa(v) && (Qt(v.key), O = "" + v.key), wa(v) && (ee = v.ref, Ea(v, G));
947
947
  for (Z in v)
948
- Be.call(v, Z) && !ba.hasOwnProperty(Z) && (A[Z] = v[Z]);
948
+ Fe.call(v, Z) && !ba.hasOwnProperty(Z) && (A[Z] = v[Z]);
949
949
  if (d && d.defaultProps) {
950
- var Y = d.defaultProps;
951
- for (Z in Y)
952
- A[Z] === void 0 && (A[Z] = Y[Z]);
950
+ var H = d.defaultProps;
951
+ for (Z in H)
952
+ A[Z] === void 0 && (A[Z] = H[Z]);
953
953
  }
954
954
  if (O || ee) {
955
955
  var V = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
956
956
  O && Da(A, V), ee && Ia(A, V);
957
957
  }
958
- return Ra(d, O, ee, G, B, Fe.current, A);
958
+ return Ra(d, O, ee, G, B, Pe.current, A);
959
959
  }
960
960
  }
961
- var ht = j.ReactCurrentOwner, nn = j.ReactDebugCurrentFrame;
961
+ var pt = j.ReactCurrentOwner, nn = j.ReactDebugCurrentFrame;
962
962
  function Ie(d) {
963
963
  if (d) {
964
- var v = d._owner, E = Xe(d.type, d._source, v ? v.type : null);
964
+ var v = d._owner, E = et(d.type, d._source, v ? v.type : null);
965
965
  nn.setExtraStackFrame(E);
966
966
  } else
967
967
  nn.setExtraStackFrame(null);
968
968
  }
969
- var pt;
970
- pt = !1;
971
- function gt(d) {
969
+ var gt;
970
+ gt = !1;
971
+ function xt(d) {
972
972
  return typeof d == "object" && d !== null && d.$$typeof === t;
973
973
  }
974
974
  function an() {
975
975
  {
976
- if (ht.current) {
977
- var d = R(ht.current.type);
976
+ if (pt.current) {
977
+ var d = R(pt.current.type);
978
978
  if (d)
979
979
  return `
980
980
 
@@ -1009,25 +1009,25 @@ Check the top-level render call using <` + E + ">.");
1009
1009
  return;
1010
1010
  rn[E] = !0;
1011
1011
  var B = "";
1012
- d && d._owner && d._owner !== ht.current && (B = " It was passed a child from " + R(d._owner.type) + "."), Ie(d), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, B), Ie(null);
1012
+ d && d._owner && d._owner !== pt.current && (B = " It was passed a child from " + R(d._owner.type) + "."), Ie(d), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, B), Ie(null);
1013
1013
  }
1014
1014
  }
1015
1015
  function on(d, v) {
1016
1016
  {
1017
1017
  if (typeof d != "object")
1018
1018
  return;
1019
- if (ft(d))
1019
+ if (mt(d))
1020
1020
  for (var E = 0; E < d.length; E++) {
1021
1021
  var B = d[E];
1022
- gt(B) && sn(B, v);
1022
+ xt(B) && sn(B, v);
1023
1023
  }
1024
- else if (gt(d))
1024
+ else if (xt(d))
1025
1025
  d._store && (d._store.validated = !0);
1026
1026
  else if (d) {
1027
1027
  var G = p(d);
1028
1028
  if (typeof G == "function" && G !== d.entries)
1029
1029
  for (var Z = G.call(d), A; !(A = Z.next()).done; )
1030
- gt(A.value) && sn(A.value, v);
1030
+ xt(A.value) && sn(A.value, v);
1031
1031
  }
1032
1032
  }
1033
1033
  }
@@ -1048,8 +1048,8 @@ Check the top-level render call using <` + E + ">.");
1048
1048
  if (E) {
1049
1049
  var B = R(v);
1050
1050
  Ca(E, d.props, "prop", B, d);
1051
- } else if (v.PropTypes !== void 0 && !pt) {
1052
- pt = !0;
1051
+ } else if (v.PropTypes !== void 0 && !gt) {
1052
+ gt = !0;
1053
1053
  var G = R(v);
1054
1054
  b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
1055
1055
  }
@@ -1077,8 +1077,8 @@ Check the top-level render call using <` + E + ">.");
1077
1077
  (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (O += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1078
1078
  var ee = Ta();
1079
1079
  ee ? O += ee : O += an();
1080
- var Y;
1081
- d === null ? Y = "null" : ft(d) ? Y = "array" : d !== void 0 && d.$$typeof === t ? (Y = "<" + (R(d.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof d, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, O);
1080
+ var H;
1081
+ d === null ? H = "null" : mt(d) ? H = "array" : d !== void 0 && d.$$typeof === t ? (H = "<" + (R(d.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : H = typeof d, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, O);
1082
1082
  }
1083
1083
  var V = Na(d, v, E, G, Z);
1084
1084
  if (V == null)
@@ -1087,7 +1087,7 @@ Check the top-level render call using <` + E + ">.");
1087
1087
  var le = v.children;
1088
1088
  if (le !== void 0)
1089
1089
  if (B)
1090
- if (ft(le)) {
1090
+ if (mt(le)) {
1091
1091
  for (var Re = 0; Re < le.length; Re++)
1092
1092
  on(le[Re], d);
1093
1093
  Object.freeze && Object.freeze(le);
@@ -1096,18 +1096,18 @@ Check the top-level render call using <` + E + ">.");
1096
1096
  else
1097
1097
  on(le, d);
1098
1098
  }
1099
- if (Be.call(v, "key")) {
1099
+ if (Fe.call(v, "key")) {
1100
1100
  var we = R(d), re = Object.keys(v).filter(function(Ga) {
1101
1101
  return Ga !== "key";
1102
- }), xt = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
1103
- if (!ln[we + xt]) {
1102
+ }), vt = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
1103
+ if (!ln[we + vt]) {
1104
1104
  var Aa = re.length > 0 ? "{" + re.join(": ..., ") + ": ...}" : "{}";
1105
1105
  b(`A props object containing a "key" prop is being spread into JSX:
1106
1106
  let props = %s;
1107
1107
  <%s {...props} />
1108
1108
  React keys must be passed directly to JSX without using spread:
1109
1109
  let props = %s;
1110
- <%s key={someKey} {...props} />`, xt, we, Aa, we), ln[we + xt] = !0;
1110
+ <%s key={someKey} {...props} />`, vt, we, Aa, we), ln[we + vt] = !0;
1111
1111
  }
1112
1112
  }
1113
1113
  return d === r ? $a(V) : La(V), V;
@@ -1120,11 +1120,11 @@ React keys must be passed directly to JSX without using spread:
1120
1120
  return cn(d, v, E, !1);
1121
1121
  }
1122
1122
  var Pa = Fa, Oa = Ba;
1123
- Oe.Fragment = r, Oe.jsx = Pa, Oe.jsxs = Oa;
1124
- }()), Oe;
1123
+ Ae.Fragment = r, Ae.jsx = Pa, Ae.jsxs = Oa;
1124
+ }()), Ae;
1125
1125
  }
1126
- process.env.NODE_ENV === "production" ? wt.exports = ns() : wt.exports = as();
1127
- var a = wt.exports;
1126
+ process.env.NODE_ENV === "production" ? St.exports = ns() : St.exports = as();
1127
+ var a = St.exports;
1128
1128
  function rs(e, t) {
1129
1129
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1130
1130
  let n = {
@@ -1725,7 +1725,7 @@ function Ps() {
1725
1725
  t(e.filter((r) => r.key !== n));
1726
1726
  }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { id: "notice", className: Fs.notice, children: e.map((n) => n.item) });
1727
1727
  }
1728
- function qe({ data: e }) {
1728
+ function Ye({ data: e }) {
1729
1729
  let [t, n] = h.useState("show");
1730
1730
  h.useEffect(() => {
1731
1731
  e.hide && (setTimeout(function() {
@@ -1760,23 +1760,23 @@ function qe({ data: e }) {
1760
1760
  }
1761
1761
  function Os(e) {
1762
1762
  let t = Date.now(), n = { key: t, hide: !0, ...e };
1763
- ke.set({ item: /* @__PURE__ */ a.jsx(qe, { data: n }, t), key: t });
1763
+ ke.set({ item: /* @__PURE__ */ a.jsx(Ye, { data: n }, t), key: t });
1764
1764
  }
1765
1765
  function As(e, t = !0) {
1766
1766
  let n = Date.now(), r = { key: n, text: e, hide: t, type: "error" };
1767
- ke.set({ item: /* @__PURE__ */ a.jsx(qe, { data: r }, n), key: n });
1767
+ ke.set({ item: /* @__PURE__ */ a.jsx(Ye, { data: r }, n), key: n });
1768
1768
  }
1769
1769
  function Gs(e, t = !0) {
1770
1770
  let n = Date.now(), r = { key: n, text: e, hide: t, type: "success" };
1771
- ke.set({ item: /* @__PURE__ */ a.jsx(qe, { data: r }, n), key: n });
1771
+ ke.set({ item: /* @__PURE__ */ a.jsx(Ye, { data: r }, n), key: n });
1772
1772
  }
1773
1773
  function Zs(e, t = !0) {
1774
1774
  let n = Date.now(), r = { key: n, text: e, hide: t, type: "remark" };
1775
- ke.set({ item: /* @__PURE__ */ a.jsx(qe, { data: r }, n), key: n });
1775
+ ke.set({ item: /* @__PURE__ */ a.jsx(Ye, { data: r }, n), key: n });
1776
1776
  }
1777
1777
  function Us(e, t = !0) {
1778
1778
  let n = Date.now(), r = { key: n, text: e, hide: t, type: "copy" };
1779
- ke.set({ item: /* @__PURE__ */ a.jsx(qe, { data: r }, n), key: n });
1779
+ ke.set({ item: /* @__PURE__ */ a.jsx(Ye, { data: r }, n), key: n });
1780
1780
  }
1781
1781
  const Se = {};
1782
1782
  Se.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
@@ -1811,21 +1811,21 @@ Se.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1811
1811
  }
1812
1812
  )
1813
1813
  ] });
1814
- const zs = "_alerts_1pds5_1", Ks = "_menuAnimation_1pds5_1", Ws = "_menuItemAnimation_1pds5_1", qs = "_allert_1pds5_111", Ys = "_al_1pds5_1", St = {
1814
+ const zs = "_alerts_1pds5_1", Ks = "_menuAnimation_1pds5_1", Ws = "_menuItemAnimation_1pds5_1", qs = "_allert_1pds5_111", Hs = "_al_1pds5_1", Et = {
1815
1815
  alerts: zs,
1816
1816
  menuAnimation: Ks,
1817
1817
  menuItemAnimation: Ws,
1818
1818
  "--body": "_--body_1pds5_103",
1819
1819
  allert: qs,
1820
1820
  "--form": "_--form_1pds5_111",
1821
- al: Ys
1821
+ al: Hs
1822
1822
  };
1823
- let Ue = {};
1824
- function Hs() {
1823
+ let ze = {};
1824
+ function Ys() {
1825
1825
  let [e, t] = h.useState("");
1826
- return Ue.set = (n) => t(n), Ue.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1826
+ return ze.set = (n) => t(n), ze.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1827
1827
  }
1828
- const Vs = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: St.alerts, children: [
1828
+ const Vs = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: Et.alerts, children: [
1829
1829
  /* @__PURE__ */ a.jsxs("dl", { children: [
1830
1830
  /* @__PURE__ */ a.jsx("dt", { children: e.title }),
1831
1831
  /* @__PURE__ */ a.jsx("dd", { children: e.text }),
@@ -1834,7 +1834,7 @@ const Vs = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === voi
1834
1834
  {
1835
1835
  "data-color": e.color || "blue",
1836
1836
  onClick: () => {
1837
- t(), Ue.del();
1837
+ t(), ze.del();
1838
1838
  },
1839
1839
  children: e.button
1840
1840
  }
@@ -1843,19 +1843,19 @@ const Vs = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === voi
1843
1843
  /* @__PURE__ */ a.jsx(
1844
1844
  "div",
1845
1845
  {
1846
- className: St["--body"],
1846
+ className: Et["--body"],
1847
1847
  onClick: () => {
1848
- n == null || n(), Ue.del();
1848
+ n == null || n(), ze.del();
1849
1849
  }
1850
1850
  }
1851
1851
  )
1852
1852
  ] }));
1853
1853
  function Js(e, t, n) {
1854
- Ue.set(
1854
+ ze.set(
1855
1855
  /* @__PURE__ */ a.jsx(Vs, { data: e, callback: t, cancel: n })
1856
1856
  );
1857
1857
  }
1858
- const ye = { Send: Os, Error: As, Remark: Zs, Success: Gs, Copy: Us }, Ge = {
1858
+ const ye = { Send: Os, Error: As, Remark: Zs, Success: Gs, Copy: Us }, Ze = {
1859
1859
  Path: mr,
1860
1860
  Push: hr,
1861
1861
  setPage: rr,
@@ -1956,7 +1956,7 @@ function ei() {
1956
1956
  const ti = "_n_euuvm_1", ni = {
1957
1957
  n: ti
1958
1958
  };
1959
- let Ye = {}, Ae = [];
1959
+ let Ve = {}, Ge = [];
1960
1960
  const ai = (e, t) => {
1961
1961
  switch (t.type) {
1962
1962
  case "open":
@@ -1998,7 +1998,7 @@ const ai = (e, t) => {
1998
1998
  r = { ...e.take, ...r }, e.active = !1;
1999
1999
  for (let s in r)
2000
2000
  r[s] !== "999" && (e.active = !0);
2001
- return Ye.get(r, e.active), {
2001
+ return Ve.get(r, e.active), {
2002
2002
  ...e,
2003
2003
  take: r,
2004
2004
  active: e.active
@@ -2010,16 +2010,16 @@ const ai = (e, t) => {
2010
2010
  }
2011
2011
  };
2012
2012
  function ri(e) {
2013
- Ye.fn({ action: "add", data: e });
2013
+ Ve.fn({ action: "add", data: e });
2014
2014
  }
2015
2015
  function si(e) {
2016
- Ye.fn({ action: "add", data: e });
2016
+ Ve.fn({ action: "add", data: e });
2017
2017
  }
2018
2018
  function ii(e) {
2019
- Ye.fn({ action: "new", data: e });
2019
+ Ve.fn({ action: "new", data: e });
2020
2020
  }
2021
2021
  function oi(e) {
2022
- Ye.fn = e;
2022
+ Ve.fn = e;
2023
2023
  }
2024
2024
  function li() {
2025
2025
  const [e, t] = h.useReducer(ai, {
@@ -2032,7 +2032,7 @@ function li() {
2032
2032
  }), oi(async (r) => {
2033
2033
  switch (r.action) {
2034
2034
  case "add":
2035
- Ae.push(r.data);
2035
+ Ge.push(r.data);
2036
2036
  break;
2037
2037
  }
2038
2038
  }), h.useEffect(() => {
@@ -2050,7 +2050,7 @@ function li() {
2050
2050
  break;
2051
2051
  case "M01":
2052
2052
  r[s].forEach((i) => {
2053
- Ae.push({
2053
+ Ge.push({
2054
2054
  module: "M01",
2055
2055
  type: 1,
2056
2056
  id: i.id,
@@ -2061,7 +2061,7 @@ function li() {
2061
2061
  break;
2062
2062
  case "M02":
2063
2063
  r[s].forEach((i) => {
2064
- Ae.push({
2064
+ Ge.push({
2065
2065
  module: "M02",
2066
2066
  type: 117,
2067
2067
  id: i.id,
@@ -2072,7 +2072,7 @@ function li() {
2072
2072
  break;
2073
2073
  }
2074
2074
  })(), setInterval(() => {
2075
- Ae.forEach((r, s) => {
2075
+ Ge.forEach((r, s) => {
2076
2076
  t({
2077
2077
  type: "add",
2078
2078
  data: {
@@ -2082,7 +2082,7 @@ function li() {
2082
2082
  datetime: r.datetime,
2083
2083
  txt: r.title
2084
2084
  }
2085
- }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Ae.splice(s, 1);
2085
+ }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Ge.splice(s, 1);
2086
2086
  });
2087
2087
  }, 6e4);
2088
2088
  }, []);
@@ -2156,7 +2156,7 @@ function ui(e) {
2156
2156
  t[s.id] = { s: s.v, n: s.a }, n[s.id] = s;
2157
2157
  });
2158
2158
  let r = { ...xe(), 901: t };
2159
- $n(n), Ke(r);
2159
+ $n(n), We(r);
2160
2160
  }
2161
2161
  function fi() {
2162
2162
  let e = Bn(), t = {};
@@ -2164,7 +2164,7 @@ function fi() {
2164
2164
  t[e[n].id] = {}, t[e[n].id].name = e[n].a;
2165
2165
  }), t;
2166
2166
  }
2167
- let _e = {}, Q = {}, et = [
2167
+ let _e = {}, Q = {}, nt = [
2168
2168
  "filter",
2169
2169
  "online",
2170
2170
  "users",
@@ -2179,8 +2179,8 @@ function mi() {
2179
2179
  function s(i) {
2180
2180
  const o = new _i();
2181
2181
  _e.laodData = (l) => {
2182
- let c = et.indexOf(l);
2183
- c >= 0 && et.splice(c, 1), et.length === 0 && t(!0);
2182
+ let c = nt.indexOf(l);
2183
+ c >= 0 && nt.splice(c, 1), nt.length === 0 && t(!0);
2184
2184
  }, _e.send = (l) => {
2185
2185
  o.port.postMessage({ type: "send", json: l });
2186
2186
  }, o.port.onmessage = (l) => {
@@ -2188,12 +2188,12 @@ function mi() {
2188
2188
  c.type === "error" && r(!0), c.type === "true" && t(!0), c.type === "closed" && o.port.postMessage({
2189
2189
  type: "connect",
2190
2190
  ukey: i,
2191
- lk: kt()
2192
- }), et.length !== 0 && _e.laodData(c.type), Q[c.type] && Q[c.type](c);
2191
+ lk: yt()
2192
+ }), nt.length !== 0 && _e.laodData(c.type), Q[c.type] && Q[c.type](c);
2193
2193
  }, o.port.postMessage({
2194
2194
  type: "connect",
2195
2195
  ukey: i,
2196
- lk: kt()
2196
+ lk: yt()
2197
2197
  });
2198
2198
  }
2199
2199
  return [s, e, n];
@@ -2208,7 +2208,7 @@ Q.info = (e) => {
2208
2208
  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"), Fn(t), Mn(e.data.menu);
2209
2209
  };
2210
2210
  Q.version = async (e) => {
2211
- ot.version.Server(e.data);
2211
+ Le.version.Server(e.data);
2212
2212
  };
2213
2213
  Q.online = async (e) => {
2214
2214
  };
@@ -2217,13 +2217,13 @@ Q.offline = async (e) => {
2217
2217
  Q.chat = (e) => {
2218
2218
  switch (e.data.action) {
2219
2219
  case "new_message":
2220
- Ge.getModule();
2220
+ Ze.getModule();
2221
2221
  break;
2222
2222
  case "view_message":
2223
- Ge.getModule();
2223
+ Ze.getModule();
2224
2224
  break;
2225
2225
  case "write_message":
2226
- Ge.getModule();
2226
+ Ze.getModule();
2227
2227
  break;
2228
2228
  }
2229
2229
  };
@@ -2245,7 +2245,7 @@ Q.users = (e) => {
2245
2245
  };
2246
2246
  });
2247
2247
  let n = { ...xe(), user: t };
2248
- Ke(n);
2248
+ We(n);
2249
2249
  };
2250
2250
  Q.api = (e) => {
2251
2251
  let t = {};
@@ -2260,13 +2260,13 @@ Q.select = (e) => {
2260
2260
  let t = { ...xe() };
2261
2261
  e.data.forEach((n) => {
2262
2262
  t[n.n] = JSON.parse(n.s);
2263
- }), Ke(t);
2263
+ }), We(t);
2264
2264
  };
2265
2265
  Q.job = (e) => {
2266
2266
  let t = { ...xe() }, n = {};
2267
2267
  Object.keys(e.data).forEach((r) => {
2268
2268
  n[r] = { s: 1, n: e.data[r] };
2269
- }), t[1] = n, Ke(t);
2269
+ }), t[1] = n, We(t);
2270
2270
  };
2271
2271
  Q.setting = (e) => {
2272
2272
  pr(e.data);
@@ -2334,11 +2334,11 @@ function Wi({ children: e, viev: t = "row", className: n }) {
2334
2334
  function qi({ children: e }) {
2335
2335
  return /* @__PURE__ */ a.jsx("div", { className: te.c, children: e });
2336
2336
  }
2337
- function Yi({ children: e }) {
2337
+ function Hi({ children: e }) {
2338
2338
  return /* @__PURE__ */ a.jsx("div", { className: te.g, children: e });
2339
2339
  }
2340
- const Hi = "_btn_294gf_1", Vi = "_confirm_294gf_15", Ji = "_cancel_294gf_20", Xi = "_action_294gf_25", Qi = "_disabled_294gf_30", eo = "_m_294gf_44", to = "_l_294gf_48", tt = {
2341
- btn: Hi,
2340
+ const Yi = "_btn_294gf_1", Vi = "_confirm_294gf_15", Ji = "_cancel_294gf_20", Xi = "_action_294gf_25", Qi = "_disabled_294gf_30", eo = "_m_294gf_44", to = "_l_294gf_48", at = {
2341
+ btn: Yi,
2342
2342
  confirm: Vi,
2343
2343
  cancel: Ji,
2344
2344
  action: Xi,
@@ -2367,9 +2367,9 @@ const Hi = "_btn_294gf_1", Vi = "_confirm_294gf_15", Ji = "_cancel_294gf_20", Xi
2367
2367
  {
2368
2368
  ref: l,
2369
2369
  className: [
2370
- tt.btn,
2371
- _ ? tt.disabled : tt[r],
2372
- n && tt[n],
2370
+ at.btn,
2371
+ _ ? at.disabled : at[r],
2372
+ n && at[n],
2373
2373
  i
2374
2374
  ].join(" "),
2375
2375
  onClick: x,
@@ -2377,12 +2377,12 @@ const Hi = "_btn_294gf_1", Vi = "_confirm_294gf_15", Ji = "_cancel_294gf_20", Xi
2377
2377
  }
2378
2378
  );
2379
2379
  };
2380
- let st = {};
2380
+ let ot = {};
2381
2381
  function ao() {
2382
2382
  let [e, t] = h.useState([]);
2383
- return st.x = (n) => {
2383
+ return ot.x = (n) => {
2384
2384
  n || t([]);
2385
- }, st.add = (n) => {
2385
+ }, ot.add = (n) => {
2386
2386
  t([...e, n]);
2387
2387
  }, /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
2388
2388
  }
@@ -2477,7 +2477,7 @@ function ro({
2477
2477
  ) : "" });
2478
2478
  }
2479
2479
  function so(e) {
2480
- st.add(/* @__PURE__ */ a.jsx(io, { children: e }, String(Date.now())));
2480
+ ot.add(/* @__PURE__ */ a.jsx(io, { children: e }, String(Date.now())));
2481
2481
  }
2482
2482
  function io({ children: e }) {
2483
2483
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
@@ -2492,20 +2492,20 @@ function oo(e) {
2492
2492
  function lo({ type: e, name: t, params: n }) {
2493
2493
  let [r, s] = h.useState(null);
2494
2494
  return h.useEffect(() => {
2495
- it(`${e}/modal/${t}.tsx`).then((i) => {
2495
+ lt(`${e}/modal/${t}.tsx`).then((i) => {
2496
2496
  s(i.default.Icon(n));
2497
2497
  });
2498
2498
  }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: r });
2499
2499
  }
2500
2500
  function co(e, t, n) {
2501
- it(`${e}/modal/${t}.tsx`).then((r) => {
2501
+ lt(`${e}/modal/${t}.tsx`).then((r) => {
2502
2502
  r.default.Open(n);
2503
2503
  });
2504
2504
  }
2505
2505
  function _o(e) {
2506
- st.x(e);
2506
+ ot.x(e);
2507
2507
  }
2508
- const lt = {
2508
+ const ct = {
2509
2509
  List: xi,
2510
2510
  Scroll: Ki,
2511
2511
  Main: ro,
@@ -2516,7 +2516,7 @@ const lt = {
2516
2516
  Form: Wi,
2517
2517
  Center: qi,
2518
2518
  Close: _o,
2519
- Column: Yi
2519
+ Column: Hi
2520
2520
  };
2521
2521
  function Gn({ text: e, type: t, button: n }) {
2522
2522
  let [r, s] = h.useState(!1), i = { active: t };
@@ -2528,7 +2528,7 @@ function Gn({ text: e, type: t, button: n }) {
2528
2528
  return r ? void 0 : (s(!0), n.onSend(s));
2529
2529
  }
2530
2530
  };
2531
- return /* @__PURE__ */ a.jsxs("div", { className: St.al, ...i, children: [
2531
+ return /* @__PURE__ */ a.jsxs("div", { className: Et.al, ...i, children: [
2532
2532
  /* @__PURE__ */ a.jsx(
2533
2533
  "svg",
2534
2534
  {
@@ -2689,7 +2689,7 @@ const Eo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2689
2689
  }) => {
2690
2690
  t = t || "Файлы";
2691
2691
  const [s, i] = h.useReducer(No, {}, To), o = () => {
2692
- lt.Add(
2692
+ ct.Add(
2693
2693
  /* @__PURE__ */ a.jsx(
2694
2694
  $o,
2695
2695
  {
@@ -2761,7 +2761,7 @@ const Eo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2761
2761
  "div",
2762
2762
  {
2763
2763
  className: "modal o ",
2764
- onClick: lt.Shake,
2764
+ onClick: ct.Shake,
2765
2765
  children: /* @__PURE__ */ a.jsxs("div", { className: "b", children: [
2766
2766
  /* @__PURE__ */ a.jsx("div", { className: "h", children: "Загрузка файлов" }),
2767
2767
  /* @__PURE__ */ a.jsx(
@@ -2793,7 +2793,7 @@ const Eo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2793
2793
  ) }) : "" });
2794
2794
  }, Bo = ({ data: e, dispatch: t }) => {
2795
2795
  let n = async () => {
2796
- let i = await (await fetch(bt.url().files + "/yandex/data/" + e.id, {
2796
+ let i = await (await fetch(wt.url().files + "/yandex/data/" + e.id, {
2797
2797
  headers: {
2798
2798
  "Content-type": "application/json;charset=utf-8",
2799
2799
  SSID: J.getSSID() || ""
@@ -2806,7 +2806,7 @@ const Eo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2806
2806
  l.setAttribute("href", o), l.setAttribute("download", e.name), l.click();
2807
2807
  }
2808
2808
  }, r = async () => {
2809
- (await (await fetch(bt.url().files + "/yandex/delete/" + e.id, {
2809
+ (await (await fetch(wt.url().files + "/yandex/delete/" + e.id, {
2810
2810
  headers: {
2811
2811
  "Content-type": "application/json;charset=utf-8",
2812
2812
  SSID: J.getSSID() || ""
@@ -2854,7 +2854,7 @@ const Fo = () => {
2854
2854
  i.forEach((l, c) => {
2855
2855
  o.push({
2856
2856
  item: /* @__PURE__ */ a.jsx(
2857
- Et,
2857
+ Dt,
2858
2858
  {
2859
2859
  data: q.list[l]
2860
2860
  },
@@ -2871,7 +2871,7 @@ const Fo = () => {
2871
2871
  }, q.set = (i) => {
2872
2872
  t([
2873
2873
  ...e,
2874
- { item: /* @__PURE__ */ a.jsx(Et, { data: i }, i.id), link: i.link }
2874
+ { item: /* @__PURE__ */ a.jsx(Dt, { data: i }, i.id), link: i.link }
2875
2875
  ]);
2876
2876
  }, q.del = (i) => {
2877
2877
  e.forEach((o, l) => {
@@ -2902,16 +2902,16 @@ const Fo = () => {
2902
2902
  onClick: o
2903
2903
  }
2904
2904
  ) : "" });
2905
- }, Et = ({ data: e }) => {
2905
+ }, Dt = ({ data: e }) => {
2906
2906
  let t = (r) => {
2907
2907
  r.preventDefault(), delete q.list[e.link], q.del(e.link);
2908
2908
  }, n = () => {
2909
- Ge.setId(e.id);
2909
+ Ze.setId(e.id);
2910
2910
  };
2911
2911
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2912
2912
  }, Oo = (e) => {
2913
2913
  q.active(e);
2914
- }, K = {}, Dt = {}, I = {};
2914
+ }, K = {}, It = {}, I = {};
2915
2915
  I.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
2916
2916
  I.constraints = { optional: [{ DtlsSrtpKeyAgreement: !0 }] };
2917
2917
  I.other = [];
@@ -2965,10 +2965,10 @@ K.start = async (e) => {
2965
2965
  }, e();
2966
2966
  };
2967
2967
  K.useListener = (e) => {
2968
- Dt.rtc = e;
2968
+ It.rtc = e;
2969
2969
  };
2970
2970
  K.setListener = (e) => {
2971
- Dt.rtc && Dt.rtc(e);
2971
+ It.rtc && It.rtc(e);
2972
2972
  };
2973
2973
  K.callTo = async (e) => {
2974
2974
  K.start(async () => {
@@ -3055,15 +3055,15 @@ K.callRefuser = async () => {
3055
3055
  K.Run = async (e) => {
3056
3056
  K[e.data.type] && K[e.data.type](e.data);
3057
3057
  };
3058
- let Ze = {};
3058
+ let Ue = {};
3059
3059
  function Ao() {
3060
3060
  let [e, t] = h.useState([]), n = h.useRef(null);
3061
3061
  return h.useEffect(() => {
3062
- }, []), Ze.set = (r) => {
3062
+ }, []), Ue.set = (r) => {
3063
3063
  t([...e, r]);
3064
- }, Ze.del = () => {
3064
+ }, Ue.del = () => {
3065
3065
  t([]);
3066
- }, Ze.audio = (r, s) => {
3066
+ }, Ue.audio = (r, s) => {
3067
3067
  n.current.volume = 0.5, n.current.loop = s, n.current.src = "/audio/" + r, n.current.muted = !1;
3068
3068
  }, /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3069
3069
  e.map((r) => r.item),
@@ -3072,7 +3072,7 @@ function Ao() {
3072
3072
  }
3073
3073
  function Go(e, t) {
3074
3074
  let n = (/* @__PURE__ */ new Date()).getTime();
3075
- Ze.set({
3075
+ Ue.set({
3076
3076
  item: /* @__PURE__ */ a.jsx(Zo, { type: t, id: e }, n),
3077
3077
  key: n
3078
3078
  });
@@ -3168,7 +3168,7 @@ function Zo({ id: e, type: t }) {
3168
3168
  );
3169
3169
  }
3170
3170
  }, l = () => {
3171
- K.callRefuser(n.id), Ze.del();
3171
+ K.callRefuser(n.id), Ue.del();
3172
3172
  };
3173
3173
  return /* @__PURE__ */ a.jsx("div", { className: "web-phone white", children: /* @__PURE__ */ a.jsxs("div", { className: "w", children: [
3174
3174
  /* @__PURE__ */ a.jsx("div", { className: "x", "data-icon": "F038", onClick: l }),
@@ -3177,18 +3177,18 @@ function Zo({ id: e, type: t }) {
3177
3177
  /* @__PURE__ */ a.jsx("div", { className: "b", children: o() })
3178
3178
  ] }) });
3179
3179
  }
3180
- const It = {};
3180
+ const Rt = {};
3181
3181
  function Uo(e) {
3182
- It.add(e);
3182
+ Rt.add(e);
3183
3183
  }
3184
3184
  function zo({ color: e, size: t, name: n }) {
3185
3185
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
3186
3186
  }
3187
3187
  function Ko() {
3188
3188
  let [e, t] = h.useState([]);
3189
- if (It.x = () => {
3189
+ if (Rt.x = () => {
3190
3190
  t([]);
3191
- }, It.add = (r) => {
3191
+ }, Rt.add = (r) => {
3192
3192
  t(r);
3193
3193
  }, e.length === 0) return "";
3194
3194
  const n = { sprite: "" };
@@ -3204,7 +3204,7 @@ function Ko() {
3204
3204
  s
3205
3205
  )) });
3206
3206
  }
3207
- let nt = {}, Zn = {};
3207
+ let rt = {}, Zn = {};
3208
3208
  const Wo = (e) => {
3209
3209
  Zn = e;
3210
3210
  }, Un = za(
@@ -3213,16 +3213,16 @@ const Wo = (e) => {
3213
3213
  const [t, n] = h.useState(
3214
3214
  localStorage.getItem("lang") || navigator.language
3215
3215
  );
3216
- return nt.update = n, /* @__PURE__ */ a.jsx(Un.Provider, { value: Zn[t], children: e });
3217
- }, Yo = (e) => {
3216
+ return rt.update = n, /* @__PURE__ */ a.jsx(Un.Provider, { value: Zn[t], children: e });
3217
+ }, Ho = (e) => {
3218
3218
  var t;
3219
- localStorage.setItem("lang", e), (t = nt.update) == null || t.call(nt, e);
3220
- }, Ho = () => Ka(Un), Vo = () => localStorage.getItem("lang") || navigator.language, Rt = {};
3219
+ localStorage.setItem("lang", e), (t = rt.update) == null || t.call(rt, e);
3220
+ }, Yo = () => Ka(Un), Vo = () => localStorage.getItem("lang") || navigator.language, Nt = {};
3221
3221
  function Pt(e, t) {
3222
- Rt[e] = t;
3222
+ Nt[e] = t;
3223
3223
  }
3224
3224
  function Jo(e, t) {
3225
- Rt[e] !== void 0 && Rt[e](t);
3225
+ Nt[e] !== void 0 && Nt[e](t);
3226
3226
  }
3227
3227
  const je = {};
3228
3228
  function Xo(e, t) {
@@ -3250,7 +3250,7 @@ const nl = ({ children: e, lang: t }) => Va(
3250
3250
  /* @__PURE__ */ a.jsxs(qo, { children: [
3251
3251
  /* @__PURE__ */ a.jsx(ao, {}),
3252
3252
  /* @__PURE__ */ a.jsx(Ps, {}),
3253
- /* @__PURE__ */ a.jsx(Hs, {}),
3253
+ /* @__PURE__ */ a.jsx(Ys, {}),
3254
3254
  /* @__PURE__ */ a.jsx(Mo, {}),
3255
3255
  /* @__PURE__ */ a.jsx(Ko, {}),
3256
3256
  /* @__PURE__ */ a.jsx(tl, {}),
@@ -3399,7 +3399,7 @@ function Kn({ list: e, onClick: t, active: n, size: r, view: s }) {
3399
3399
  }
3400
3400
  const Dl = ({ onClick: e, label: t, link: n, active: r }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(r === n), onClick: () => e(n), children: t });
3401
3401
  Kn.defaultProps = { size: "M", view: "H" };
3402
- const vd = { Section: ml, Main: gl, Item: El, Tabs: Kn }, Cd = { Icon: Po, Item: Et, Active: Oo }, jd = { Send: Js, Line: Gn };
3402
+ const vd = { Section: ml, Main: gl, Item: El, Tabs: Kn }, Cd = { Icon: Po, Item: Dt, Active: Oo }, jd = { Send: Js, Line: Gn };
3403
3403
  function Il() {
3404
3404
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
3405
3405
  "path",
@@ -3425,12 +3425,12 @@ function Tl({ name: e, size: t = 16, onClick: n, hover: r }) {
3425
3425
  }
3426
3426
  );
3427
3427
  }
3428
- let Nt = {};
3428
+ let Tt = {};
3429
3429
  function Ml(e) {
3430
- Nt = { ...Nt, ...e };
3430
+ Tt = { ...Tt, ...e };
3431
3431
  }
3432
3432
  function jn() {
3433
- return Nt;
3433
+ return Tt;
3434
3434
  }
3435
3435
  function Ll({ name: e, hover: t, onClick: n }) {
3436
3436
  const r = {};
@@ -3445,12 +3445,12 @@ $l.setAttribute = (e, t) => {
3445
3445
  const Bl = "_sort_1yrvt_1", Fl = {
3446
3446
  sort: Bl
3447
3447
  };
3448
- let ct = {};
3448
+ let dt = {};
3449
3449
  function Pl(e, t) {
3450
3450
  switch (t.type) {
3451
3451
  case "active":
3452
3452
  let n = "<";
3453
- return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), ct.get({ active: t.data, sort: n }, !1), Ln({ active: t.data, sort: n }), {
3453
+ return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), dt.get({ active: t.data, sort: n }, !1), Ln({ active: t.data, sort: n }), {
3454
3454
  ...e,
3455
3455
  active: t.data,
3456
3456
  sort: n
@@ -3462,7 +3462,7 @@ function Pl(e, t) {
3462
3462
  function Ol() {
3463
3463
  const [e, t] = h.useReducer(
3464
3464
  Pl,
3465
- yt() === void 0 ? { active: 1, sort: "<" } : yt()
3465
+ bt() === void 0 ? { active: 1, sort: "<" } : bt()
3466
3466
  );
3467
3467
  return /* @__PURE__ */ a.jsxs("div", { className: Fl.sort, children: [
3468
3468
  /* @__PURE__ */ a.jsx(
@@ -3492,10 +3492,10 @@ function Ol() {
3492
3492
  ] });
3493
3493
  }
3494
3494
  function Al(e) {
3495
- ct.get = e;
3495
+ dt.get = e;
3496
3496
  }
3497
3497
  function Gl(e) {
3498
- ct.set(e);
3498
+ dt.set(e);
3499
3499
  }
3500
3500
  function Zl(e, t, n) {
3501
3501
  let r = 1, s = 0, i = {}, o = 50;
@@ -3517,31 +3517,31 @@ function Zl(e, t, n) {
3517
3517
  }), { data: i };
3518
3518
  }
3519
3519
  function Ul(e) {
3520
- ct.count(e);
3520
+ dt.count(e);
3521
3521
  }
3522
- const yd = { Init: Ol, useValue: Al, Set: Gl, Run: Zl, Count: Ul }, at = {}, Wn = {};
3522
+ const yd = { Init: Ol, useValue: Al, Set: Gl, Run: Zl, Count: Ul }, st = {}, Wn = {};
3523
3523
  function zl(e) {
3524
3524
  const [t, n] = h.useState({}), r = async (s) => {
3525
3525
  n(
3526
- Object.keys(at).reduce((i, o) => (i ? i[o] = at[o].all : i = {}, i), {})
3526
+ Object.keys(st).reduce((i, o) => (i ? i[o] = st[o].all : i = {}, i), {})
3527
3527
  );
3528
3528
  };
3529
3529
  return h.useEffect(() => {
3530
- e.forEach((s) => at[s] = { all: 0 }), Wn.menu = r, r();
3530
+ e.forEach((s) => st[s] = { all: 0 }), Wn.menu = r, r();
3531
3531
  }, [e]), t;
3532
3532
  }
3533
3533
  function Kl(e, t) {
3534
3534
  switch (typeof t) {
3535
3535
  case "number":
3536
- at[e].all += t, Wn.menu();
3536
+ st[e].all += t, Wn.menu();
3537
3537
  break;
3538
3538
  }
3539
3539
  }
3540
3540
  const bd = { useMenu: zl, setUpdate: Kl };
3541
3541
  class Wl {
3542
3542
  constructor(t = "el", n = "db") {
3543
- vt(this, "storeName");
3544
- vt(this, "_dbp");
3543
+ Ct(this, "storeName");
3544
+ Ct(this, "_dbp");
3545
3545
  this.storeName = n, this._dbp = new Promise((r, s) => {
3546
3546
  const i = indexedDB.open(t, 1);
3547
3547
  i.onerror = () => s(i.error), i.onsuccess = () => r(i.result), i.onupgradeneeded = () => {
@@ -3558,32 +3558,32 @@ class Wl {
3558
3558
  );
3559
3559
  }
3560
3560
  }
3561
- let Ct, H = {};
3562
- const Le = () => (Ct || (Ct = new Wl()), Ct), be = (e, t, n = Le()) => n._withIDBStore("readwrite", (r) => {
3563
- H[e] = t, r.put(P.enCode(t), e);
3564
- }), pe = (e, t = Le()) => H[e] === void 0 ? new Promise((n, r) => {
3561
+ let jt, Y = {};
3562
+ const $e = () => (jt || (jt = new Wl()), jt), be = (e, t, n = $e()) => n._withIDBStore("readwrite", (r) => {
3563
+ Y[e] = t, r.put(P.enCode(t), e);
3564
+ }), pe = (e, t = $e()) => Y[e] === void 0 ? new Promise((n, r) => {
3565
3565
  let s;
3566
3566
  t._withIDBStore("readonly", (i) => {
3567
3567
  s = i.get(e);
3568
3568
  }).then(() => {
3569
3569
  if (s.result !== void 0) {
3570
3570
  let i = P.deCode(s.result);
3571
- H[e] = i, n(i);
3571
+ Y[e] = i, n(i);
3572
3572
  } else
3573
3573
  n({});
3574
3574
  });
3575
- }) : H[e], ql = (e, t = Le()) => t._withIDBStore("readwrite", (n) => {
3575
+ }) : Y[e], ql = (e, t = $e()) => t._withIDBStore("readwrite", (n) => {
3576
3576
  n.delete(e);
3577
- }), Tt = (e = Le()) => e._withIDBStore("readwrite", (t) => {
3577
+ }), Mt = (e = $e()) => e._withIDBStore("readwrite", (t) => {
3578
3578
  t.clear();
3579
- }), Yl = (e = Le()) => {
3579
+ }), Hl = (e = $e()) => {
3580
3580
  const t = [];
3581
3581
  return e._withIDBStore("readonly", (n) => {
3582
3582
  (n.openKeyCursor || n.openCursor).call(n).onsuccess = function() {
3583
3583
  this.result && (t.push(this.result.key), this.result.continue());
3584
3584
  };
3585
3585
  }).then(() => t);
3586
- }, Hl = (e, t, n = [], r = {}) => {
3586
+ }, Yl = (e, t, n = [], r = {}) => {
3587
3587
  let s = n.length !== 0, i = [], o = r.sort, l = Object.keys(r).length !== 0, c = Object.keys(r), _ = Object.keys(e), u = [], x = (m) => {
3588
3588
  let C = "";
3589
3589
  if (n.forEach((g) => {
@@ -3594,7 +3594,7 @@ const Le = () => (Ct || (Ct = new Wl()), Ct), be = (e, t, n = Le()) => n._withID
3594
3594
  g[p] = t[m][p];
3595
3595
  });
3596
3596
  for (let p in o)
3597
- t[m][o[p]] === void 0 && (Tt(), location.reload()), p === "s1" && (g[p] = new Date(t[m][o[p]]).getTime()), p === "s2" && (g[p] = t[m][o[p]]), p === "s3" && (g[p] = t[m][o[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3597
+ t[m][o[p]] === void 0 && (Mt(), location.reload()), p === "s1" && (g[p] = new Date(t[m][o[p]]).getTime()), p === "s2" && (g[p] = t[m][o[p]]), p === "s3" && (g[p] = t[m][o[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3598
3598
  i.push({ id: m, text: C, ...g });
3599
3599
  } else
3600
3600
  i.push({ id: m, text: C });
@@ -3603,10 +3603,10 @@ const Le = () => (Ct || (Ct = new Wl()), Ct), be = (e, t, n = Le()) => n._withID
3603
3603
  return _.forEach((m) => {
3604
3604
  u.push(t[m]);
3605
3605
  }), u.forEach((m) => {
3606
- m === void 0 ? (Tt(), location.reload()) : (s && x(m.id), l && f(m.id));
3606
+ m === void 0 ? (Mt(), location.reload()) : (s && x(m.id), l && f(m.id));
3607
3607
  }), { list: u, search: i, filter: r };
3608
- }, Vl = (e, t, n, r = Le()) => {
3609
- if (H[e] === void 0)
3608
+ }, Vl = (e, t, n, r = $e()) => {
3609
+ if (Y[e] === void 0)
3610
3610
  return new Promise((s, i) => {
3611
3611
  let o;
3612
3612
  r._withIDBStore("readonly", (l) => {
@@ -3614,17 +3614,17 @@ const Le = () => (Ct || (Ct = new Wl()), Ct), be = (e, t, n = Le()) => n._withID
3614
3614
  }).then(() => {
3615
3615
  if (o.result !== void 0) {
3616
3616
  let l = P.deCode(o.result);
3617
- H[e] = l, H[e][t.id] = {
3618
- ...H[e][t.id],
3617
+ Y[e] = l, Y[e][t.id] = {
3618
+ ...Y[e][t.id],
3619
3619
  ...t.data
3620
- }, r.put(P.enCode(H[e]), e), s({});
3620
+ }, r.put(P.enCode(Y[e]), e), s({});
3621
3621
  } else
3622
3622
  s({});
3623
3623
  });
3624
3624
  });
3625
- if (H[e][t.id] !== void 0)
3626
- return H[e][t.id] = { ...H[e][t.id], ...t.data }, n !== void 0 && H[n] !== void 0 ? H[n][t.id] !== void 0 && (H[n][t.id] = t.data.eDate) : H[n] = [], delete H[e][t.id].$_item, delete H[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3627
- s.put(P.enCode(H[e]), e), n !== void 0 && s.put(P.enCode(H[n]), n);
3625
+ if (Y[e][t.id] !== void 0)
3626
+ return Y[e][t.id] = { ...Y[e][t.id], ...t.data }, n !== void 0 && Y[n] !== void 0 ? Y[n][t.id] !== void 0 && (Y[n][t.id] = t.data.eDate) : Y[n] = [], delete Y[e][t.id].$_item, delete Y[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3627
+ s.put(P.enCode(Y[e]), e), n !== void 0 && s.put(P.enCode(Y[n]), n);
3628
3628
  });
3629
3629
  }, Jl = async (e, t, n, r) => {
3630
3630
  let s, i;
@@ -3649,17 +3649,17 @@ const Le = () => (Ct || (Ct = new Wl()), Ct), be = (e, t, n = Le()) => n._withID
3649
3649
  n({ type: "load", base: r });
3650
3650
  else
3651
3651
  return r[e];
3652
- }, ac = (e) => H[e], wd = {
3652
+ }, ac = (e) => Y[e], wd = {
3653
3653
  id: nc,
3654
3654
  get: pe,
3655
3655
  set: be,
3656
3656
  add: Jl,
3657
3657
  del: ql,
3658
3658
  upd: Vl,
3659
- key: Yl,
3659
+ key: Hl,
3660
3660
  load: ac,
3661
- split: Hl,
3662
- clear: Tt,
3661
+ split: Yl,
3662
+ clear: Mt,
3663
3663
  updAll: Xl,
3664
3664
  delAll: Ql,
3665
3665
  delList: ec,
@@ -3750,7 +3750,7 @@ function dc({
3750
3750
  }
3751
3751
  );
3752
3752
  }
3753
- const Ed = { Widget: Lo }, Yn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3753
+ const Ed = { Widget: Lo }, Hn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3754
3754
  "div",
3755
3755
  {
3756
3756
  role: "switch",
@@ -3774,7 +3774,7 @@ oe.Focus = (e) => {
3774
3774
  oe.Blur = (e) => {
3775
3775
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
3776
3776
  };
3777
- function ze({
3777
+ function Ke({
3778
3778
  id: e,
3779
3779
  value: t,
3780
3780
  onValue: n,
@@ -3844,7 +3844,7 @@ function ze({
3844
3844
  o ? /* @__PURE__ */ a.jsx("em", { children: o }) : ""
3845
3845
  ] });
3846
3846
  }
3847
- function Hn({ onClick: e, onSend: t, name: n, onRef: r }) {
3847
+ function Yn({ onClick: e, onSend: t, name: n, onRef: r }) {
3848
3848
  let [s, i] = h.useState(!1);
3849
3849
  const o = () => {
3850
3850
  if (e) return e();
@@ -4341,7 +4341,7 @@ function At({
4341
4341
  let [p, j] = h.useState(e), b = (k) => {
4342
4342
  if (!(l && _) || !f) return;
4343
4343
  let w = f.split(".");
4344
- lt.Open(w[0], w[1], {
4344
+ ct.Open(w[0], w[1], {
4345
4345
  callback: (S) => {
4346
4346
  t && t({ value: S, name: n }), j(S);
4347
4347
  },
@@ -4749,7 +4749,7 @@ function aa({
4749
4749
  l ? /* @__PURE__ */ a.jsx("em", { children: l }) : ""
4750
4750
  ] });
4751
4751
  }
4752
- const jt = {
4752
+ const kt = {
4753
4753
  0: {
4754
4754
  name: "Heard Island and Mcdonald Islands",
4755
4755
  dial_code: "+0",
@@ -6160,8 +6160,8 @@ function Ut({
6160
6160
  let R = 0, F = "", W = $.replace(/\D/g, "");
6161
6161
  W === "" && (p = !0);
6162
6162
  let ae = W.split(""), ie = "";
6163
- ae.forEach(($e) => {
6164
- p && (ie += $e, jt[ie] !== void 0 && p ? (p = !1, g = jt[ie].mask.replace(new RegExp("[0-9]", "g"), "_"), F = jt[ie].code) : (p && (j = ("" + ie).length, g = `+${ie}_(___) ___-__-__`.replace(
6163
+ ae.forEach((Be) => {
6164
+ p && (ie += Be, kt[ie] !== void 0 && p ? (p = !1, g = kt[ie].mask.replace(new RegExp("[0-9]", "g"), "_"), F = kt[ie].code) : (p && (j = ("" + ie).length, g = `+${ie}_(___) ___-__-__`.replace(
6165
6165
  new RegExp("[0-9]", "g"),
6166
6166
  "_"
6167
6167
  ), F = ""), j > ("" + ie).length && (p = !0, g = `+${ie}_(___) ___-__-__`.replace(
@@ -6435,7 +6435,7 @@ const vc = ({ onValue: e, parent: t, view: n, options: r }) => {
6435
6435
  )
6436
6436
  ] }) : "" });
6437
6437
  };
6438
- function Mt({
6438
+ function Lt({
6439
6439
  set: e,
6440
6440
  value: t,
6441
6441
  onValue: n,
@@ -6457,7 +6457,7 @@ function Mt({
6457
6457
  switch (e) {
6458
6458
  case "Input":
6459
6459
  return /* @__PURE__ */ a.jsx(
6460
- ze,
6460
+ Ke,
6461
6461
  {
6462
6462
  title: i,
6463
6463
  show: _,
@@ -7025,7 +7025,7 @@ function da({
7025
7025
  const [p, j] = h.useState(kc(e)), b = (k) => {
7026
7026
  if (!(l && _) || !f) return;
7027
7027
  let w = f.split(".");
7028
- lt.Open(w[0], w[1], {
7028
+ ct.Open(w[0], w[1], {
7029
7029
  callback: (S) => {
7030
7030
  t && t({ value: S, name: n }), j(S);
7031
7031
  },
@@ -7203,9 +7203,9 @@ const Dd = {
7203
7203
  Image: kn,
7204
7204
  Code: Qn,
7205
7205
  Check: oa,
7206
- Switch: Yn,
7207
- Input: ze,
7208
- Button: Hn,
7206
+ Switch: Hn,
7207
+ Input: Ke,
7208
+ Button: Yn,
7209
7209
  Message: Vn,
7210
7210
  Generator: Jn,
7211
7211
  Captcha: Xn,
@@ -7218,12 +7218,12 @@ const Dd = {
7218
7218
  Phone: Ut,
7219
7219
  Search: ra,
7220
7220
  Select: zt,
7221
- Set: Mt,
7221
+ Set: Lt,
7222
7222
  Textarea: sa,
7223
7223
  Time: ia,
7224
7224
  Users: Kt,
7225
- String: ze,
7226
- Form: Mt,
7225
+ String: Ke,
7226
+ Form: Lt,
7227
7227
  runReload: Dc,
7228
7228
  useData: Sc,
7229
7229
  setValue: Ec,
@@ -7263,8 +7263,8 @@ function Rc({
7263
7263
  let F = 0, W = "", ae = R.replace(/\D/g, "");
7264
7264
  ae === "" && (j = !0);
7265
7265
  let ie = ae.split(""), ge = "";
7266
- ie.forEach((He) => {
7267
- j && (ge += He, j && (b = ("" + ge).length, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), b > ("" + ge).length && (j = !0, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7266
+ ie.forEach((Je) => {
7267
+ j && (ge += Je, j && (b = ("" + ge).length, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), b > ("" + ge).length && (j = !0, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7268
7268
  });
7269
7269
  let De = p.replace(/\D/g, "");
7270
7270
  return De.length >= ae.length && (ae = De), { q: p.replace(/[_\d]/g, function() {
@@ -7315,9 +7315,9 @@ const Id = {
7315
7315
  Date: Ot,
7316
7316
  Code: Qn,
7317
7317
  Check: oa,
7318
- Switch: Yn,
7319
- Input: ze,
7320
- Button: Hn,
7318
+ Switch: Hn,
7319
+ Input: Ke,
7320
+ Button: Yn,
7321
7321
  Message: Vn,
7322
7322
  Generator: Jn,
7323
7323
  Captcha: Xn,
@@ -7331,11 +7331,11 @@ const Id = {
7331
7331
  Phone: Ut,
7332
7332
  Search: ra,
7333
7333
  Select: zt,
7334
- Set: Mt,
7334
+ Set: Lt,
7335
7335
  Textarea: sa,
7336
7336
  Time: ia,
7337
7337
  Users: Kt,
7338
- String: ze,
7338
+ String: Ke,
7339
7339
  Toogle: la,
7340
7340
  Group: ca,
7341
7341
  Options: da
@@ -7391,7 +7391,7 @@ const Rd = { Spinner: Lc, Inline: $c }, Bc = "_ph_1wjxu_1", Fc = "_e_1wjxu_5", y
7391
7391
  ] });
7392
7392
  };
7393
7393
  let Oc = ({ m: e, t, loading: n }) => {
7394
- const r = h.lazy(() => it(e + "/pages/" + t + ".tsx"));
7394
+ const r = h.lazy(() => lt(e + "/pages/" + t + ".tsx"));
7395
7395
  return /* @__PURE__ */ a.jsx(h.Suspense, { fallback: n, children: /* @__PURE__ */ a.jsx(r, {}) });
7396
7396
  }, Ac = ({ button: e }) => {
7397
7397
  const [t, n] = h.useState(e);
@@ -7453,11 +7453,11 @@ function Kc(e) {
7453
7453
  function Wc(e) {
7454
7454
  Wt = e;
7455
7455
  }
7456
- const Td = { Field: Uc, Run: zc, Get: Kc, useValue: Wc }, qc = "_f_q3r0i_1", Yc = {
7456
+ const Td = { Field: Uc, Run: zc, Get: Kc, useValue: Wc }, qc = "_f_q3r0i_1", Hc = {
7457
7457
  f: qc
7458
7458
  };
7459
7459
  let de = {};
7460
- function Hc(e, t) {
7460
+ function Yc(e, t) {
7461
7461
  switch (t.type) {
7462
7462
  case "open":
7463
7463
  return {
@@ -7508,7 +7508,7 @@ function Hc(e, t) {
7508
7508
  }
7509
7509
  }
7510
7510
  function Vc() {
7511
- const [e, t] = h.useReducer(Hc, {
7511
+ const [e, t] = h.useReducer(Yc, {
7512
7512
  open: !1,
7513
7513
  view: null,
7514
7514
  data: {},
@@ -7526,7 +7526,7 @@ function Vc() {
7526
7526
  /* @__PURE__ */ a.jsxs(
7527
7527
  "div",
7528
7528
  {
7529
- className: Yc.f,
7529
+ className: Hc.f,
7530
7530
  onClick: () => {
7531
7531
  t({ type: "open", open: !0 });
7532
7532
  },
@@ -7744,7 +7744,7 @@ function ld({
7744
7744
  ...i
7745
7745
  }) {
7746
7746
  const [o, l] = h.useState([]), [c, _] = h.useState([]), [u, x] = h.useState(!1), f = async () => {
7747
- let m = await bt.fetch(e, t);
7747
+ let m = await wt.fetch(e, t);
7748
7748
  m.data && m.data.length > 0 && (l(m.data), _(m.data)), x(!0);
7749
7749
  };
7750
7750
  return he.useListener("list_children", (m) => {
@@ -7807,17 +7807,17 @@ function cd(e, t) {
7807
7807
  throw new Error();
7808
7808
  }
7809
7809
  }
7810
- const Lt = {};
7810
+ const $t = {};
7811
7811
  function dd(e) {
7812
- Lt.get = e;
7812
+ $t.get = e;
7813
7813
  }
7814
7814
  function _d(e) {
7815
- Lt.get && Lt.get(e);
7815
+ $t.get && $t.get(e);
7816
7816
  }
7817
7817
  const Bd = { View: od, Reducer: cd, useValue: dd, Lite: ld, setValue: _d }, Fd = {
7818
7818
  addDictionary: Wo,
7819
- getDictionary: Ho,
7820
- setDictionary: Yo,
7819
+ getDictionary: Yo,
7820
+ setDictionary: Ho,
7821
7821
  current: Vo
7822
7822
  }, Pd = { Get: fi }, Od = function({
7823
7823
  title: e,
@@ -7828,7 +7828,7 @@ const Bd = { View: od, Reducer: cd, useValue: dd, Lite: ld, setValue: _d }, Fd =
7828
7828
  tabs: i,
7829
7829
  modules: o
7830
7830
  }) {
7831
- const [l] = Ge.useTabs(s), [c, _] = h.useState(!1);
7831
+ const [l] = Ze.useTabs(s), [c, _] = h.useState(!1);
7832
7832
  return h.useEffect(() => {
7833
7833
  _(!0);
7834
7834
  }, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -7842,7 +7842,7 @@ const Bd = { View: od, Reducer: cd, useValue: dd, Lite: ld, setValue: _d }, Fd =
7842
7842
  ] });
7843
7843
  };
7844
7844
  let ud = ({ modules: e, t }) => {
7845
- const n = h.lazy(() => it(e + "/pages/" + t + ".tsx"));
7845
+ const n = h.lazy(() => lt(e + "/pages/" + t + ".tsx"));
7846
7846
  return /* @__PURE__ */ a.jsx(h.Suspense, { fallback: "", children: /* @__PURE__ */ a.jsx(n, {}) });
7847
7847
  }, fd = ({ button: e }) => {
7848
7848
  const [t, n] = h.useState(e);
@@ -7880,7 +7880,7 @@ export {
7880
7880
  jl as Action,
7881
7881
  jd as Alert,
7882
7882
  pd as Animation,
7883
- bt as Api,
7883
+ wt as Api,
7884
7884
  bd as Badge,
7885
7885
  Cd as Bookmarks,
7886
7886
  gd as Browser,
@@ -7902,17 +7902,17 @@ export {
7902
7902
  Nd as Layout,
7903
7903
  Bd as List,
7904
7904
  Rd as Loading,
7905
- lt as Modal,
7905
+ ct as Modal,
7906
7906
  ye as Notice,
7907
7907
  Ld as Notifications,
7908
7908
  $d as Pagination,
7909
7909
  Ad as Phone,
7910
7910
  $l as Root,
7911
- Ge as Router,
7911
+ Ze as Router,
7912
7912
  dc as Scrolling,
7913
7913
  Td as Search,
7914
7914
  vd as Setting,
7915
- ot as Sistym,
7915
+ Le as Sistym,
7916
7916
  ve as Socket,
7917
7917
  J as Store,
7918
7918
  Gd as Switch,