elcrm 0.9.172 → 0.9.174

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,13 +1,12 @@
1
1
  import './index.css';var Ya = Object.defineProperty;
2
2
  var Ha = (e, t, a) => t in e ? Ya(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var pt = (e, t, a) => Ha(e, typeof t != "symbol" ? t + "" : t, a);
4
- import x, { createContext as Ln, useContext as qa, createElement as Mn } from "react";
3
+ var gt = (e, t, a) => Ha(e, typeof t != "symbol" ? t + "" : t, a);
4
+ import g, { createContext as Ln, useContext as qa, createElement as Mn } from "react";
5
5
  const Bn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57dHJ5e2EuZGF0YS5ob3N0W2EuZGF0YS5ob3N0Lmxlbmd0aC0xXSE9PSIvIiYmKGEuZGF0YS5ob3N0Kz0iLyIpLGEuZGF0YS5saW5rWzBdPT0iLyImJihhLmRhdGEubGluaz1hLmRhdGEubGluay5zdWJzdHJpbmcoMSkpO2xldCB0PWF3YWl0IGZldGNoKGAke2EuZGF0YS5ob3N0fSR7YS5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOnsiQ29udGVudC10eXBlIjoiYXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04IiwuLi5hLmRhdGEuc3NpZD97c3NpZDphLmRhdGEuc3NpZH06e319LGJvZHk6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=", Ja = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), cn = typeof self < "u" && self.Blob && new Blob([Ja(Bn)], { type: "text/javascript;charset=utf-8" });
6
6
  function dn(e) {
7
7
  let t;
8
8
  try {
9
- if (t = cn && (self.URL || self.webkitURL).createObjectURL(cn), !t)
10
- throw "";
9
+ if (t = cn && (self.URL || self.webkitURL).createObjectURL(cn), !t) throw "";
11
10
  const a = new Worker(t, {
12
11
  name: e == null ? void 0 : e.name
13
12
  });
@@ -15,9 +14,12 @@ function dn(e) {
15
14
  (self.URL || self.webkitURL).revokeObjectURL(t);
16
15
  }), a;
17
16
  } catch {
18
- return new Worker("data:text/javascript;base64," + Bn, {
19
- name: e == null ? void 0 : e.name
20
- });
17
+ return new Worker(
18
+ "data:text/javascript;base64," + Bn,
19
+ {
20
+ name: e == null ? void 0 : e.name
21
+ }
22
+ );
21
23
  } finally {
22
24
  t && (self.URL || self.webkitURL).revokeObjectURL(t);
23
25
  }
@@ -37,7 +39,7 @@ const tr = async (e) => window.crypto.subtle.importKey(
37
39
  !1,
38
40
  ["encrypt"]
39
41
  );
40
- let re = {
42
+ let ye = {
41
43
  url: "https://" + Xa + "." + Va + "." + Qa,
42
44
  port: 443,
43
45
  key: ""
@@ -56,118 +58,103 @@ const nr = () => window.crypto.getRandomValues(new Uint8Array(12)), ar = async (
56
58
  iv: r
57
59
  };
58
60
  }, _n = (e) => window.btoa(String.fromCharCode.apply(null, new Uint8Array(e)));
59
- let gt = !1;
61
+ let xt = !1;
60
62
  const rr = (e) => new TextEncoder().encode(e);
61
63
  function un() {
62
64
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p", "t", "w"].forEach(
63
65
  (e) => localStorage.removeItem(e)
64
66
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.history.replaceState({}, "", "/"), window.location.reload();
65
67
  }
66
- function xt() {
67
- if (gt) return gt;
68
+ function et() {
69
+ if (xt) return xt;
68
70
  let e = localStorage.getItem("d");
69
- return gt = e, e;
71
+ return xt = e, e;
70
72
  }
71
- var Ke;
73
+ var ze;
72
74
  ((e) => {
73
- function t(f) {
74
- re = { ...re, ...f };
75
+ function t(c) {
76
+ ye = { ...ye, ...c };
75
77
  }
76
78
  e.create = t;
77
- const a = (f) => (f != null && f.ssid && (localStorage.setItem("d", f.ssid), delete f.ssid), f != null && f.port && (localStorage.setItem("w", f.port), delete f.port), (f == null ? void 0 : f.status) === "logout" ? un() : f), r = (f, p, y) => new Promise(async (j) => {
79
+ const a = (c) => (c != null && c.ssid && (localStorage.setItem("d", c.ssid), delete c.ssid), c != null && c.port && (localStorage.setItem("w", c.port), delete c.port), (c == null ? void 0 : c.status) === "logout" ? un() : c), r = (c, m, f) => new Promise(async (h) => {
78
80
  try {
79
- const S = new dn();
80
- S.onmessage = (C) => {
81
- j(a(C.data)), S.terminate();
81
+ const x = new dn();
82
+ x.onmessage = (j) => {
83
+ h(a(j.data)), x.terminate();
82
84
  };
83
- let N = await tr(y);
84
- const { cipher: R, iv: I } = await ar(JSON.stringify(p), N);
85
- S.postMessage({
86
- link: f,
87
- data: _n(I) + _n(R),
88
- host: re.url
85
+ let p = await tr(f);
86
+ const { cipher: v, iv: y } = await ar(
87
+ JSON.stringify(m),
88
+ p
89
+ );
90
+ x.postMessage({
91
+ link: c,
92
+ data: _n(y) + _n(v),
93
+ ssid: et(),
94
+ host: ye.url
89
95
  });
90
96
  } catch {
91
97
  }
92
98
  });
93
- function s(f = {}, p = re.key) {
94
- return r("/auth", f, p);
99
+ function s(c, m = {}, f = ye.key) {
100
+ return r(c, m, f);
95
101
  }
96
- e.auth = s;
97
- function i(f = {}, p = re.key) {
98
- return r("/register", f, p);
102
+ e.encrypt = s;
103
+ function i(c) {
104
+ return ye.url + "/image" + c;
99
105
  }
100
- e.register = i;
101
- function o(f = {}, p = re.key) {
102
- return r("/check", f, p);
103
- }
104
- e.check = o;
105
- function d(f = {}, p = re.key) {
106
- return r("/recover", f, p);
107
- }
108
- e.recover = d;
109
- function l(f = {}, p = re.key) {
110
- return r("/password", f, p);
111
- }
112
- e.password = l;
113
- function _(f = {}, p = re.key) {
114
- return r("/code", f, p);
115
- }
116
- e.code = _;
117
- function c(f) {
118
- return re.url + "/image" + f;
119
- }
120
- e.image = c;
121
- function h(f, p = {}, y = xt()) {
122
- return new Promise((j) => {
123
- const S = new dn();
124
- S.onmessage = (N) => {
125
- j(a(N.data)), S.terminate();
126
- }, S.postMessage({
127
- link: f,
128
- data: p,
129
- ssid: y,
130
- host: re.url
106
+ e.image = i;
107
+ function o(c, m = {}, f = et()) {
108
+ return new Promise((h) => {
109
+ const x = new dn();
110
+ x.onmessage = (p) => {
111
+ h(a(p.data)), x.terminate();
112
+ }, x.postMessage({
113
+ link: c,
114
+ data: m,
115
+ ssid: f,
116
+ host: ye.url
131
117
  });
132
118
  });
133
119
  }
134
- e.fetch = h;
135
- async function m(f, p = {}, y = xt()) {
120
+ e.fetch = o;
121
+ async function d(c, m = {}, f = et()) {
136
122
  try {
137
- return await (await h(re.url + f, {
123
+ return await (await o(ye.url + c, {
138
124
  method: "POST",
139
125
  headers: {
140
- ...y ? { ssid: y } : {}
126
+ ...f ? { ssid: f } : {}
141
127
  },
142
- body: p
128
+ body: m
143
129
  })).json();
144
- } catch (j) {
145
- return { status: "error", message: j };
130
+ } catch (h) {
131
+ return { status: "error", message: h };
146
132
  }
147
133
  }
148
- e.formData = m;
149
- function g(f, p = {}, y = xt()) {
150
- const [j, S] = x.useState({
134
+ e.formData = d;
135
+ function l(c, m = {}, f = et()) {
136
+ const [h, x] = g.useState({
151
137
  status: "load",
152
138
  data: {}
153
- }), N = async (R) => {
154
- let I = await h(f, R, y);
155
- if (I.status === "logaut" || I.status === "logout") return un();
156
- S(I);
139
+ }), p = async (v) => {
140
+ let y = await o(c, v, f);
141
+ if (y.status === "logaut" || y.status === "logout")
142
+ return un();
143
+ x(y);
157
144
  };
158
- return x.useEffect(() => {
159
- N(p);
160
- }, []), [j.data, N, j.status];
145
+ return g.useEffect(() => {
146
+ p(m);
147
+ }, []), [h.data, p, h.status];
161
148
  }
162
- e.use = g;
163
- function v() {
149
+ e.use = l;
150
+ function _() {
164
151
  return {
165
- documents: re.url + "documents",
166
- files: re.url + "files"
152
+ documents: ye.url + "documents",
153
+ files: ye.url + "files"
167
154
  };
168
155
  }
169
- e.url = v;
170
- })(Ke || (Ke = {}));
156
+ e.url = _;
157
+ })(ze || (ze = {}));
171
158
  const sr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBuPVtdLHQ9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHM9bC5zb3VyY2U7bi5wdXNoKHMpO2NvbnN0IG89ZT0+e2lmKHQhPT1udWxsJiZ0LnJlYWR5U3RhdGU9PT0xKXtpZighZSlyZXR1cm4gdC5jbG9zZSgpO3Quc2VuZChKU09OLnN0cmluZ2lmeShlKSl9ZWxzZSBzLnBvc3RNZXNzYWdlKHt0eXBlOiJub1NlbmQifSl9O2xldCByPWU9PntpZih0IT09bnVsbCYmdC5yZWFkeVN0YXRlPT09MSlyZXR1cm4gcy5wb3N0TWVzc2FnZSh7dHlwZToxfSk7bGV0IGE9ZS5saW5rLnA/YDoke051bWJlcihlLmxpbmsucCl9YDoiIjtlLmxpbmsuZD90PW5ldyBXZWJTb2NrZXQoYHdzOi8vJHtlLmxpbmsuZH0ke2F9L2Nvbm5lY3RgKTp0PW5ldyBXZWJTb2NrZXQoYHdzczovLyR7ZS5saW5rLnV9JHthfS9jb25uZWN0YCksdC5vbmVycm9yPSgpPT5zLnBvc3RNZXNzYWdlKHt0eXBlOjJ9KSx0Lm9ub3Blbj0oKT0+e28oe3BhdGg6ImNvbm5lY3QiLHVrZXk6ZS51a2V5fSl9LHQub25tZXNzYWdlPWM9PntsZXQgdT1KU09OLnBhcnNlKGMuZGF0YSk7bi5mb3JFYWNoKHA9PntwLnBvc3RNZXNzYWdlKHUpfSl9LHQub25jbG9zZT0oKT0+cy5wb3N0TWVzc2FnZSh7dHlwZTowfSl9O3Mub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiBzLnBvc3RNZXNzYWdlKG4ubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIG4uZm9yRWFjaChhPT5hLnBvc3RNZXNzYWdlKHthbGw6bi5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbyhlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6cy5wb3N0TWVzc2FnZSh7dHlwZTo0LGRhdGE6ZS5kYXRhLmpzb259KX19fX0pKCk7Cg==";
172
159
  function ir(e) {
173
160
  return new SharedWorker(
@@ -234,33 +221,33 @@ const Pn = async (e) => window.crypto.subtle.importKey(
234
221
  var hn;
235
222
  ((e) => {
236
223
  e.useConnect = (t, a) => {
237
- const [r, s] = x.useState(!1), [i, o] = x.useState(null);
224
+ const [r, s] = g.useState(!1), [i, o] = g.useState(null);
238
225
  async function d(l = t) {
239
226
  const _ = new ir();
240
227
  if (ne.isClosed = !1, !l) return o(3);
241
228
  let c = localStorage.getItem("d");
242
229
  if (a == null || a(c), typeof c != "string")
243
230
  return o(0);
244
- let h = await cr(l);
245
- if (a == null || a(h), !h) return o(1);
246
- window.location.protocol !== "http:" && (h.d = !1), ne.send = (g) => {
247
- _.port.postMessage({ type: "send", json: g });
231
+ let m = await cr(l);
232
+ if (a == null || a(m), !m) return o(1);
233
+ window.location.protocol !== "http:" && (m.d = !1), ne.send = (h) => {
234
+ _.port.postMessage({ type: "send", json: h });
248
235
  }, ne.closed = () => {
249
236
  ne.isClosed = !0, _.port.postMessage(!1);
250
237
  };
251
- const m = () => {
238
+ const f = () => {
252
239
  _.port.postMessage({
253
240
  type: "connect",
254
241
  ukey: c,
255
- link: h
242
+ link: m
256
243
  });
257
244
  };
258
- _.port.onmessage = (g) => {
259
- a == null || a("onmessage", g.data);
260
- let v = g.data;
261
- if (v.type === 2 && o(2), v.type === 0 && !ne.isClosed && m(), v.type === 1) return s(!0);
262
- ne[v.listen] !== void 0 && (ne[v.listen](v), v.listen[0] == "_" && delete ne[v.listen]);
263
- }, m();
245
+ _.port.onmessage = (h) => {
246
+ a == null || a("onmessage", h.data);
247
+ let x = h.data;
248
+ if (x.type === 2 && o(2), x.type === 0 && !ne.isClosed && f(), x.type === 1) return s(!0);
249
+ ne[x.listen] !== void 0 && (ne[x.listen](x), x.listen[0] == "_" && delete ne[x.listen]);
250
+ }, f();
264
251
  }
265
252
  return [r, d, i];
266
253
  }, e.useListener = (t, a) => {
@@ -304,13 +291,13 @@ var pn;
304
291
  function fr() {
305
292
  if (pn) return Ae;
306
293
  pn = 1;
307
- var e = x, t = Symbol.for("react.element"), a = 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 };
294
+ var e = g, t = Symbol.for("react.element"), a = 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 };
308
295
  function o(d, l, _) {
309
- var c, h = {}, m = null, g = null;
310
- _ !== void 0 && (m = "" + _), l.key !== void 0 && (m = "" + l.key), l.ref !== void 0 && (g = l.ref);
311
- for (c in l) r.call(l, c) && !i.hasOwnProperty(c) && (h[c] = l[c]);
312
- if (d && d.defaultProps) for (c in l = d.defaultProps, l) h[c] === void 0 && (h[c] = l[c]);
313
- return { $$typeof: t, type: d, key: m, ref: g, props: h, _owner: s.current };
296
+ var c, m = {}, f = null, h = null;
297
+ _ !== void 0 && (f = "" + _), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (h = l.ref);
298
+ for (c in l) r.call(l, c) && !i.hasOwnProperty(c) && (m[c] = l[c]);
299
+ if (d && d.defaultProps) for (c in l = d.defaultProps, l) m[c] === void 0 && (m[c] = l[c]);
300
+ return { $$typeof: t, type: d, key: f, ref: h, props: m, _owner: s.current };
314
301
  }
315
302
  return Ae.Fragment = a, Ae.jsx = o, Ae.jsxs = o, Ae;
316
303
  }
@@ -327,11 +314,11 @@ var Oe = {};
327
314
  var gn;
328
315
  function mr() {
329
316
  return gn || (gn = 1, process.env.NODE_ENV !== "production" && function() {
330
- var e = x, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = Symbol.iterator, f = "@@iterator";
331
- function p(u) {
317
+ var e = g, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), d = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), x = Symbol.iterator, p = "@@iterator";
318
+ function v(u) {
332
319
  if (u === null || typeof u != "object")
333
320
  return null;
334
- var b = v && u[v] || u[f];
321
+ var b = x && u[x] || u[p];
335
322
  return typeof b == "function" ? b : null;
336
323
  }
337
324
  var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -339,23 +326,23 @@ function mr() {
339
326
  {
340
327
  for (var b = arguments.length, T = new Array(b > 1 ? b - 1 : 0), P = 1; P < b; P++)
341
328
  T[P - 1] = arguments[P];
342
- S("error", u, T);
329
+ I("error", u, T);
343
330
  }
344
331
  }
345
- function S(u, b, T) {
332
+ function I(u, b, T) {
346
333
  {
347
334
  var P = y.ReactDebugCurrentFrame, U = P.getStackAddendum();
348
335
  U !== "" && (b += "%s", T = T.concat([U]));
349
- var z = T.map(function(G) {
336
+ var K = T.map(function(G) {
350
337
  return String(G);
351
338
  });
352
- z.unshift("Warning: " + b), Function.prototype.apply.call(console[u], console, z);
339
+ K.unshift("Warning: " + b), Function.prototype.apply.call(console[u], console, K);
353
340
  }
354
341
  }
355
- var N = !1, R = !1, I = !1, C = !1, k = !1, F;
342
+ var N = !1, R = !1, D = !1, C = !1, k = !1, F;
356
343
  F = Symbol.for("react.module.reference");
357
- function E(u) {
358
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || k || u === s || u === _ || u === c || C || u === g || N || R || I || typeof u == "object" && u !== null && (u.$$typeof === m || u.$$typeof === h || u.$$typeof === o || u.$$typeof === d || u.$$typeof === l || // This needs to include all possible module reference object
344
+ function S(u) {
345
+ return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || k || u === s || u === _ || u === c || C || u === h || N || R || D || typeof u == "object" && u !== null && (u.$$typeof === f || u.$$typeof === m || u.$$typeof === o || u.$$typeof === d || u.$$typeof === l || // This needs to include all possible module reference object
359
346
  // types supported by any Flight configuration anywhere since
360
347
  // we don't know which Flight build this will end up being used
361
348
  // with.
@@ -368,7 +355,7 @@ function mr() {
368
355
  var U = b.displayName || b.name || "";
369
356
  return U !== "" ? T + "(" + U + ")" : T;
370
357
  }
371
- function D(u) {
358
+ function E(u) {
372
359
  return u.displayName || "Context";
373
360
  }
374
361
  function w(u) {
@@ -396,19 +383,19 @@ function mr() {
396
383
  switch (u.$$typeof) {
397
384
  case d:
398
385
  var b = u;
399
- return D(b) + ".Consumer";
386
+ return E(b) + ".Consumer";
400
387
  case o:
401
388
  var T = u;
402
- return D(T._context) + ".Provider";
389
+ return E(T._context) + ".Provider";
403
390
  case l:
404
391
  return L(u, u.render, "ForwardRef");
405
- case h:
392
+ case m:
406
393
  var P = u.displayName || null;
407
394
  return P !== null ? P : w(u.type) || "Memo";
408
- case m: {
409
- var U = u, z = U._payload, G = U._init;
395
+ case f: {
396
+ var U = u, K = U._payload, G = U._init;
410
397
  try {
411
- return w(G(z));
398
+ return w(G(K));
412
399
  } catch {
413
400
  return null;
414
401
  }
@@ -416,14 +403,14 @@ function mr() {
416
403
  }
417
404
  return null;
418
405
  }
419
- var M = Object.assign, W = 0, Q, le, ye, Re, $e, qe, zt;
406
+ var M = Object.assign, W = 0, Q, oe, je, Re, $e, qe, Kt;
420
407
  function Yt() {
421
408
  }
422
409
  Yt.__reactDisabledLog = !0;
423
410
  function Ca() {
424
411
  {
425
412
  if (W === 0) {
426
- Q = console.log, le = console.info, ye = console.warn, Re = console.error, $e = console.group, qe = console.groupCollapsed, zt = console.groupEnd;
413
+ Q = console.log, oe = console.info, je = console.warn, Re = console.error, $e = console.group, qe = console.groupCollapsed, Kt = console.groupEnd;
427
414
  var u = {
428
415
  configurable: !0,
429
416
  enumerable: !0,
@@ -456,10 +443,10 @@ function mr() {
456
443
  value: Q
457
444
  }),
458
445
  info: M({}, u, {
459
- value: le
446
+ value: oe
460
447
  }),
461
448
  warn: M({}, u, {
462
- value: ye
449
+ value: je
463
450
  }),
464
451
  error: M({}, u, {
465
452
  value: Re
@@ -471,34 +458,34 @@ function mr() {
471
458
  value: qe
472
459
  }),
473
460
  groupEnd: M({}, u, {
474
- value: zt
461
+ value: Kt
475
462
  })
476
463
  });
477
464
  }
478
465
  W < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
479
466
  }
480
467
  }
481
- var ot = y.ReactCurrentDispatcher, lt;
468
+ var lt = y.ReactCurrentDispatcher, ct;
482
469
  function Je(u, b, T) {
483
470
  {
484
- if (lt === void 0)
471
+ if (ct === void 0)
485
472
  try {
486
473
  throw Error();
487
474
  } catch (U) {
488
475
  var P = U.stack.trim().match(/\n( *(at )?)/);
489
- lt = P && P[1] || "";
476
+ ct = P && P[1] || "";
490
477
  }
491
478
  return `
492
- ` + lt + u;
479
+ ` + ct + u;
493
480
  }
494
481
  }
495
- var ct = !1, Xe;
482
+ var dt = !1, Xe;
496
483
  {
497
484
  var ya = typeof WeakMap == "function" ? WeakMap : Map;
498
485
  Xe = new ya();
499
486
  }
500
487
  function Ht(u, b) {
501
- if (!u || ct)
488
+ if (!u || dt)
502
489
  return "";
503
490
  {
504
491
  var T = Xe.get(u);
@@ -506,11 +493,11 @@ function mr() {
506
493
  return T;
507
494
  }
508
495
  var P;
509
- ct = !0;
496
+ dt = !0;
510
497
  var U = Error.prepareStackTrace;
511
498
  Error.prepareStackTrace = void 0;
512
- var z;
513
- z = ot.current, ot.current = null, Ca();
499
+ var K;
500
+ K = lt.current, lt.current = null, Ca();
514
501
  try {
515
502
  if (b) {
516
503
  var G = function() {
@@ -554,16 +541,16 @@ function mr() {
554
541
  if (J !== 1 || V !== 1)
555
542
  do
556
543
  if (J--, V--, V < 0 || O[J] !== te[V]) {
557
- var de = `
544
+ var ce = `
558
545
  ` + O[J].replace(" at new ", " at ");
559
- return u.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", u.displayName)), typeof u == "function" && Xe.set(u, de), de;
546
+ return u.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", u.displayName)), typeof u == "function" && Xe.set(u, ce), ce;
560
547
  }
561
548
  while (J >= 1 && V >= 0);
562
549
  break;
563
550
  }
564
551
  }
565
552
  } finally {
566
- ct = !1, ot.current = z, ja(), Error.prepareStackTrace = U;
553
+ dt = !1, lt.current = K, ja(), Error.prepareStackTrace = U;
567
554
  }
568
555
  var Le = u ? u.displayName || u.name : "", Ee = Le ? Je(Le) : "";
569
556
  return typeof u == "function" && Xe.set(u, Ee), Ee;
@@ -592,12 +579,12 @@ function mr() {
592
579
  switch (u.$$typeof) {
593
580
  case l:
594
581
  return wa(u.render);
595
- case h:
582
+ case m:
596
583
  return Ve(u.type, b, T);
597
- case m: {
598
- var P = u, U = P._payload, z = P._init;
584
+ case f: {
585
+ var P = u, U = P._payload, K = P._init;
599
586
  try {
600
- return Ve(z(U), b, T);
587
+ return Ve(K(U), b, T);
601
588
  } catch {
602
589
  }
603
590
  }
@@ -614,9 +601,9 @@ function mr() {
614
601
  }
615
602
  function ba(u, b, T, P, U) {
616
603
  {
617
- var z = Function.call.bind(Fe);
604
+ var K = Function.call.bind(Fe);
618
605
  for (var G in u)
619
- if (z(u, G)) {
606
+ if (K(u, G)) {
620
607
  var O = void 0;
621
608
  try {
622
609
  if (typeof u[G] != "function") {
@@ -632,7 +619,7 @@ function mr() {
632
619
  }
633
620
  }
634
621
  var Sa = Array.isArray;
635
- function dt(u) {
622
+ function _t(u) {
636
623
  return Sa(u);
637
624
  }
638
625
  function Ea(u) {
@@ -660,8 +647,8 @@ function mr() {
660
647
  ref: !0,
661
648
  __self: !0,
662
649
  __source: !0
663
- }, Qt, en, _t;
664
- _t = {};
650
+ }, Qt, en, ut;
651
+ ut = {};
665
652
  function Na(u) {
666
653
  if (Fe.call(u, "ref")) {
667
654
  var b = Object.getOwnPropertyDescriptor(u, "ref").get;
@@ -681,7 +668,7 @@ function mr() {
681
668
  function Ta(u, b) {
682
669
  if (typeof u.ref == "string" && Pe.current && b && Pe.current.stateNode !== b) {
683
670
  var T = w(Pe.current.type);
684
- _t[T] || (j('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', w(Pe.current.type), u.ref), _t[T] = !0);
671
+ ut[T] || (j('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', w(Pe.current.type), u.ref), ut[T] = !0);
685
672
  }
686
673
  }
687
674
  function La(u, b) {
@@ -706,7 +693,7 @@ function mr() {
706
693
  });
707
694
  }
708
695
  }
709
- var Ba = function(u, b, T, P, U, z, G) {
696
+ var Ba = function(u, b, T, P, U, K, G) {
710
697
  var O = {
711
698
  // This tag allows us to uniquely identify this as a React Element
712
699
  $$typeof: t,
@@ -716,7 +703,7 @@ function mr() {
716
703
  ref: T,
717
704
  props: G,
718
705
  // Record the component responsible for creating this element.
719
- _owner: z
706
+ _owner: K
720
707
  };
721
708
  return O._store = {}, Object.defineProperty(O._store, "validated", {
722
709
  configurable: !1,
@@ -737,14 +724,14 @@ function mr() {
737
724
  };
738
725
  function $a(u, b, T, P, U) {
739
726
  {
740
- var z, G = {}, O = null, te = null;
727
+ var K, G = {}, O = null, te = null;
741
728
  T !== void 0 && (Vt(T), O = "" + T), Ra(b) && (Vt(b.key), O = "" + b.key), Na(b) && (te = b.ref, Ta(b, U));
742
- for (z in b)
743
- Fe.call(b, z) && !Da.hasOwnProperty(z) && (G[z] = b[z]);
729
+ for (K in b)
730
+ Fe.call(b, K) && !Da.hasOwnProperty(K) && (G[K] = b[K]);
744
731
  if (u && u.defaultProps) {
745
732
  var J = u.defaultProps;
746
- for (z in J)
747
- G[z] === void 0 && (G[z] = J[z]);
733
+ for (K in J)
734
+ G[K] === void 0 && (G[K] = J[K]);
748
735
  }
749
736
  if (O || te) {
750
737
  var V = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
@@ -753,7 +740,7 @@ function mr() {
753
740
  return Ba(u, O, te, U, P, Pe.current, G);
754
741
  }
755
742
  }
756
- var ut = y.ReactCurrentOwner, tn = y.ReactDebugCurrentFrame;
743
+ var ft = y.ReactCurrentOwner, tn = y.ReactDebugCurrentFrame;
757
744
  function Te(u) {
758
745
  if (u) {
759
746
  var b = u._owner, T = Ve(u.type, u._source, b ? b.type : null);
@@ -761,15 +748,15 @@ function mr() {
761
748
  } else
762
749
  tn.setExtraStackFrame(null);
763
750
  }
764
- var ft;
765
- ft = !1;
766
- function mt(u) {
751
+ var mt;
752
+ mt = !1;
753
+ function ht(u) {
767
754
  return typeof u == "object" && u !== null && u.$$typeof === t;
768
755
  }
769
756
  function nn() {
770
757
  {
771
- if (ut.current) {
772
- var u = w(ut.current.type);
758
+ if (ft.current) {
759
+ var u = w(ft.current.type);
773
760
  if (u)
774
761
  return `
775
762
 
@@ -804,25 +791,25 @@ Check the top-level render call using <` + T + ">.");
804
791
  return;
805
792
  an[T] = !0;
806
793
  var P = "";
807
- u && u._owner && u._owner !== ut.current && (P = " It was passed a child from " + w(u._owner.type) + "."), Te(u), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, P), Te(null);
794
+ u && u._owner && u._owner !== ft.current && (P = " It was passed a child from " + w(u._owner.type) + "."), Te(u), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, P), Te(null);
808
795
  }
809
796
  }
810
797
  function sn(u, b) {
811
798
  {
812
799
  if (typeof u != "object")
813
800
  return;
814
- if (dt(u))
801
+ if (_t(u))
815
802
  for (var T = 0; T < u.length; T++) {
816
803
  var P = u[T];
817
- mt(P) && rn(P, b);
804
+ ht(P) && rn(P, b);
818
805
  }
819
- else if (mt(u))
806
+ else if (ht(u))
820
807
  u._store && (u._store.validated = !0);
821
808
  else if (u) {
822
- var U = p(u);
809
+ var U = v(u);
823
810
  if (typeof U == "function" && U !== u.entries)
824
- for (var z = U.call(u), G; !(G = z.next()).done; )
825
- mt(G.value) && rn(G.value, b);
811
+ for (var K = U.call(u), G; !(G = K.next()).done; )
812
+ ht(G.value) && rn(G.value, b);
826
813
  }
827
814
  }
828
815
  }
@@ -836,15 +823,15 @@ Check the top-level render call using <` + T + ">.");
836
823
  T = b.propTypes;
837
824
  else if (typeof b == "object" && (b.$$typeof === l || // Note: Memo only checks outer props here.
838
825
  // Inner props are checked in the reconciler.
839
- b.$$typeof === h))
826
+ b.$$typeof === m))
840
827
  T = b.propTypes;
841
828
  else
842
829
  return;
843
830
  if (T) {
844
831
  var P = w(b);
845
832
  ba(T, u.props, "prop", P, u);
846
- } else if (b.PropTypes !== void 0 && !ft) {
847
- ft = !0;
833
+ } else if (b.PropTypes !== void 0 && !mt) {
834
+ mt = !0;
848
835
  var U = w(b);
849
836
  j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
850
837
  }
@@ -864,45 +851,45 @@ Check the top-level render call using <` + T + ">.");
864
851
  }
865
852
  }
866
853
  var on = {};
867
- function ln(u, b, T, P, U, z) {
854
+ function ln(u, b, T, P, U, K) {
868
855
  {
869
- var G = E(u);
856
+ var G = S(u);
870
857
  if (!G) {
871
858
  var O = "";
872
859
  (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).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.");
873
860
  var te = Fa();
874
861
  te ? O += te : O += nn();
875
862
  var J;
876
- u === null ? J = "null" : dt(u) ? J = "array" : u !== void 0 && u.$$typeof === t ? (J = "<" + (w(u.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : J = typeof u, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, O);
863
+ u === null ? J = "null" : _t(u) ? J = "array" : u !== void 0 && u.$$typeof === t ? (J = "<" + (w(u.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : J = typeof u, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, O);
877
864
  }
878
- var V = $a(u, b, T, U, z);
865
+ var V = $a(u, b, T, U, K);
879
866
  if (V == null)
880
867
  return V;
881
868
  if (G) {
882
- var de = b.children;
883
- if (de !== void 0)
869
+ var ce = b.children;
870
+ if (ce !== void 0)
884
871
  if (P)
885
- if (dt(de)) {
886
- for (var Le = 0; Le < de.length; Le++)
887
- sn(de[Le], u);
888
- Object.freeze && Object.freeze(de);
872
+ if (_t(ce)) {
873
+ for (var Le = 0; Le < ce.length; Le++)
874
+ sn(ce[Le], u);
875
+ Object.freeze && Object.freeze(ce);
889
876
  } else
890
877
  j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
891
878
  else
892
- sn(de, u);
879
+ sn(ce, u);
893
880
  }
894
881
  if (Fe.call(b, "key")) {
895
- var Ee = w(u), ae = Object.keys(b).filter(function(za) {
896
- return za !== "key";
897
- }), ht = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
898
- if (!on[Ee + ht]) {
899
- var Ka = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
882
+ var Ee = w(u), ae = Object.keys(b).filter(function(Ka) {
883
+ return Ka !== "key";
884
+ }), pt = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
885
+ if (!on[Ee + pt]) {
886
+ var za = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
900
887
  j(`A props object containing a "key" prop is being spread into JSX:
901
888
  let props = %s;
902
889
  <%s {...props} />
903
890
  React keys must be passed directly to JSX without using spread:
904
891
  let props = %s;
905
- <%s key={someKey} {...props} />`, ht, Ee, Ka, Ee), on[Ee + ht] = !0;
892
+ <%s key={someKey} {...props} />`, pt, Ee, za, Ee), on[Ee + pt] = !0;
906
893
  }
907
894
  }
908
895
  return u === r ? Oa(V) : Aa(V), V;
@@ -929,14 +916,14 @@ const hr = "_notice_13j98_2", pr = "_error_13j98_11", gr = "_success_13j98_14",
929
916
  "show-notice": "_show-notice_13j98_1",
930
917
  "hide-notice": "_hide-notice_13j98_1"
931
918
  };
932
- let ge = {};
919
+ let pe = {};
933
920
  function Ze({ data: e }) {
934
- let [t, a] = x.useState("show");
935
- x.useEffect(() => {
921
+ let [t, a] = g.useState("show");
922
+ g.useEffect(() => {
936
923
  e.hide && (setTimeout(function() {
937
924
  a("hide");
938
925
  }, 1800), setTimeout(function() {
939
- ge.del(e.key);
926
+ pe.del(e.key);
940
927
  }, 2500));
941
928
  }, [e.key]);
942
929
  let r, s;
@@ -964,12 +951,12 @@ function Ze({ data: e }) {
964
951
  ] });
965
952
  }
966
953
  function jr({ data: e }) {
967
- let [t, a] = x.useState("show");
968
- return x.useEffect(() => {
954
+ let [t, a] = g.useState("show");
955
+ return g.useEffect(() => {
969
956
  e.hide && (setTimeout(function() {
970
957
  a("hide");
971
958
  }, 1800), setTimeout(function() {
972
- ge.del(e.key);
959
+ pe.del(e.key);
973
960
  }, 2500));
974
961
  }, [e.key]), /* @__PURE__ */ n.jsx("li", { className: "item", "data-status": t, children: e.text });
975
962
  }
@@ -1006,63 +993,63 @@ Ie.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1006
993
  }
1007
994
  )
1008
995
  ] });
1009
- var me;
996
+ var fe;
1010
997
  ((e) => {
1011
998
  function t() {
1012
- let [l, _] = x.useState([]);
1013
- return ge.set = (c) => {
999
+ let [l, _] = g.useState([]);
1000
+ return pe.set = (c) => {
1014
1001
  _([...l, c]);
1015
- }, ge.del = (c) => {
1016
- _(l.filter((h) => h.key !== c));
1002
+ }, pe.del = (c) => {
1003
+ _(l.filter((m) => m.key !== c));
1017
1004
  }, l.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { id: "notice", className: Cr.notice, children: l.map((c) => c.item) });
1018
1005
  }
1019
1006
  e.Init = t;
1020
1007
  function a(l, _ = !0) {
1021
- let c = Date.now(), h = { key: c, text: l, hide: _, type: "error" };
1022
- ge.set({
1023
- item: /* @__PURE__ */ n.jsx(Ze, { data: h }, c),
1008
+ let c = Date.now(), m = { key: c, text: l, hide: _, type: "error" };
1009
+ pe.set({
1010
+ item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
1024
1011
  key: c
1025
1012
  });
1026
1013
  }
1027
1014
  e.Error = a;
1028
1015
  function r(l, _ = !0) {
1029
- let c = Date.now(), h = { key: c, text: l, hide: _, type: "success" };
1030
- ge.set({
1031
- item: /* @__PURE__ */ n.jsx(Ze, { data: h }, c),
1016
+ let c = Date.now(), m = { key: c, text: l, hide: _, type: "success" };
1017
+ pe.set({
1018
+ item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
1032
1019
  key: c
1033
1020
  });
1034
1021
  }
1035
1022
  e.Success = r;
1036
1023
  function s(l, _ = !0) {
1037
- let c = Date.now(), h = { key: c, hide: _, text: l };
1038
- ge.set({ item: /* @__PURE__ */ n.jsx(jr, { data: h }, c), key: c });
1024
+ let c = Date.now(), m = { key: c, hide: _, text: l };
1025
+ pe.set({ item: /* @__PURE__ */ n.jsx(jr, { data: m }, c), key: c });
1039
1026
  }
1040
1027
  e.Custom = s;
1041
1028
  function i(l) {
1042
1029
  let _ = Date.now(), c = { key: _, hide: !0, ...l };
1043
- ge.set({
1030
+ pe.set({
1044
1031
  item: /* @__PURE__ */ n.jsx(Ze, { data: c }, _),
1045
1032
  key: _
1046
1033
  });
1047
1034
  }
1048
1035
  e.Send = i;
1049
1036
  function o(l, _ = !0) {
1050
- let c = Date.now(), h = { key: c, text: l, hide: _, type: "remark" };
1051
- ge.set({
1052
- item: /* @__PURE__ */ n.jsx(Ze, { data: h }, c),
1037
+ let c = Date.now(), m = { key: c, text: l, hide: _, type: "remark" };
1038
+ pe.set({
1039
+ item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
1053
1040
  key: c
1054
1041
  });
1055
1042
  }
1056
1043
  e.Remark = o;
1057
1044
  function d(l, _ = !0) {
1058
- let c = Date.now(), h = { key: c, text: l, hide: _, type: "copy" };
1059
- ge.set({
1060
- item: /* @__PURE__ */ n.jsx(Ze, { data: h }, c),
1045
+ let c = Date.now(), m = { key: c, text: l, hide: _, type: "copy" };
1046
+ pe.set({
1047
+ item: /* @__PURE__ */ n.jsx(Ze, { data: m }, c),
1061
1048
  key: c
1062
1049
  });
1063
1050
  }
1064
1051
  e.Copy = d;
1065
- })(me || (me = {}));
1052
+ })(fe || (fe = {}));
1066
1053
  const yr = "_alerts_ita6j_1", wr = "_menuAnimation_ita6j_1", kr = "_menuItemAnimation_ita6j_1", br = "_allert_ita6j_111", Sr = "_al_ita6j_1", wt = {
1067
1054
  alerts: yr,
1068
1055
  menuAnimation: wr,
@@ -1098,10 +1085,10 @@ const Er = ({ data: e, callback: t, cancel: a }) => (e.button = e.button === voi
1098
1085
  }
1099
1086
  )
1100
1087
  ] }));
1101
- var ze;
1088
+ var Ke;
1102
1089
  ((e) => {
1103
1090
  function t() {
1104
- let [s, i] = x.useState("");
1091
+ let [s, i] = g.useState("");
1105
1092
  return We.set = (o) => i(o), We.del = () => i(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: s });
1106
1093
  }
1107
1094
  e.Init = t;
@@ -1112,7 +1099,7 @@ var ze;
1112
1099
  }
1113
1100
  e.Send = a;
1114
1101
  function r({ text: s, type: i, button: o }) {
1115
- let [d, l] = x.useState(!1), _ = { active: i };
1102
+ let [d, l] = g.useState(!1), _ = { active: i };
1116
1103
  const c = () => {
1117
1104
  if (o) {
1118
1105
  if (o.onClick)
@@ -1144,11 +1131,11 @@ var ze;
1144
1131
  ] });
1145
1132
  }
1146
1133
  e.Line = r;
1147
- })(ze || (ze = {}));
1134
+ })(Ke || (Ke = {}));
1148
1135
  function Ir({ children: e }) {
1149
1136
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
1150
1137
  }
1151
- const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr = "_modal_1g9i9_77", Lr = "_o_1g9i9_87", Mr = "_w_1g9i9_14", Br = "_h_1g9i9_112", $r = "_l_1g9i9_126", Fr = "_t_1g9i9_164", Pr = "_m_1g9i9_77", Ar = "_x_1g9i9_172", Or = "_s_1g9i9_182", Zr = "_c_1g9i9_187", Gr = "_f_1g9i9_192", Wr = "_row_1g9i9_214", Ur = "_col_1g9i9_226", Kr = "_g_1g9i9_235", zr = "_active_1g9i9_355", Yr = "_coincidence_1g9i9_361", Hr = "_sa_1g9i9_397", qr = "_ss_1g9i9_401", Jr = "_sm_1g9i9_405", Xr = "_sl_1g9i9_409", Vr = "_sx_1g9i9_413", Qr = "_sf_1g9i9_417", es = "_btn_1g9i9_423", se = {
1138
+ const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr = "_modal_1g9i9_77", Lr = "_o_1g9i9_87", Mr = "_w_1g9i9_14", Br = "_h_1g9i9_112", $r = "_l_1g9i9_126", Fr = "_t_1g9i9_164", Pr = "_m_1g9i9_77", Ar = "_x_1g9i9_172", Or = "_s_1g9i9_182", Zr = "_c_1g9i9_187", Gr = "_f_1g9i9_192", Wr = "_row_1g9i9_214", Ur = "_col_1g9i9_226", zr = "_g_1g9i9_235", Kr = "_active_1g9i9_355", Yr = "_coincidence_1g9i9_361", Hr = "_sa_1g9i9_397", qr = "_ss_1g9i9_401", Jr = "_sm_1g9i9_405", Xr = "_sl_1g9i9_409", Vr = "_sx_1g9i9_413", Qr = "_sf_1g9i9_417", es = "_btn_1g9i9_423", re = {
1152
1139
  white: Dr,
1153
1140
  black: Nr,
1154
1141
  shake: Rr,
@@ -1165,14 +1152,14 @@ const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr
1165
1152
  f: Gr,
1166
1153
  row: Wr,
1167
1154
  col: Ur,
1168
- g: Kr,
1155
+ g: zr,
1169
1156
  "size-a": "_size-a_1g9i9_285",
1170
1157
  "size-s": "_size-s_1g9i9_290",
1171
1158
  "size-m": "_size-m_1g9i9_294",
1172
1159
  "size-l": "_size-l_1g9i9_298",
1173
1160
  "size-x": "_size-x_1g9i9_302",
1174
1161
  "size-f": "_size-f_1g9i9_306",
1175
- active: zr,
1162
+ active: Kr,
1176
1163
  coincidence: Yr,
1177
1164
  sa: Hr,
1178
1165
  ss: qr,
@@ -1183,76 +1170,76 @@ const Dr = "_white_1g9i9_14", Nr = "_black_1g9i9_28", Rr = "_shake_1g9i9_1", Tr
1183
1170
  btn: es
1184
1171
  };
1185
1172
  function ts({ children: e }) {
1186
- return /* @__PURE__ */ n.jsx("div", { className: se.s, children: e });
1173
+ return /* @__PURE__ */ n.jsx("div", { className: re.s, children: e });
1187
1174
  }
1188
1175
  function ns({ children: e, viev: t = "row", className: a }) {
1189
1176
  let r = {};
1190
- return a && (r.className = a), /* @__PURE__ */ n.jsx("ul", { className: [se.f, se[t], r.className].join(" "), children: e });
1177
+ return a && (r.className = a), /* @__PURE__ */ n.jsx("ul", { className: [re.f, re[t], r.className].join(" "), children: e });
1191
1178
  }
1192
1179
  function as({ children: e }) {
1193
- return /* @__PURE__ */ n.jsx("div", { className: se.c, children: e });
1180
+ return /* @__PURE__ */ n.jsx("div", { className: re.c, children: e });
1194
1181
  }
1195
1182
  function rs({ children: e }) {
1196
- return /* @__PURE__ */ n.jsx("div", { className: se.g, children: e });
1183
+ return /* @__PURE__ */ n.jsx("div", { className: re.g, children: e });
1197
1184
  }
1198
- const ce = {};
1185
+ const le = {};
1199
1186
  function ss(e) {
1200
- return e && (ce.s = e), ce.s;
1187
+ return e && (le.s = e), le.s;
1201
1188
  }
1202
1189
  function is(e) {
1203
- return e && (ce.a = e), ce.a;
1190
+ return e && (le.a = e), le.a;
1204
1191
  }
1205
1192
  function os(e) {
1206
- return e && (ce.c = e), ce.c;
1193
+ return e && (le.c = e), le.c;
1207
1194
  }
1208
1195
  function ls(e) {
1209
- return e && (ce.h = e), ce.h;
1196
+ return e && (le.h = e), le.h;
1210
1197
  }
1211
1198
  function cs(e) {
1212
- return e && (ce.i = e), ce.i;
1199
+ return e && (le.i = e), le.i;
1213
1200
  }
1214
1201
  function ds(e) {
1215
- return e && (ce.d = e), ce.d;
1202
+ return e && (le.d = e), le.d;
1216
1203
  }
1217
- function rt(e) {
1218
- return ce.i(e);
1204
+ function st(e) {
1205
+ return le.i(e);
1219
1206
  }
1220
- let et = {};
1207
+ let tt = {};
1221
1208
  function _s({ children: e }) {
1222
1209
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
1223
1210
  }
1224
1211
  var Ne;
1225
1212
  ((e) => {
1226
1213
  function t() {
1227
- let [l, _] = x.useState([]);
1228
- return et.x = (c) => {
1229
- _(c ? l.filter((h) => h.key !== c) : []);
1230
- }, et.add = (c, h = Date.now()) => {
1231
- _([...l, { key: h, item: c }]);
1214
+ let [l, _] = g.useState([]);
1215
+ return tt.x = (c) => {
1216
+ _(c ? l.filter((m) => m.key !== c) : []);
1217
+ }, tt.add = (c, m = Date.now()) => {
1218
+ _([...l, { key: m, item: c }]);
1232
1219
  }, /* @__PURE__ */ n.jsx(n.Fragment, { children: l.map((c) => c.item) });
1233
1220
  }
1234
1221
  e.Init = t, e.List = Ir, e.Scroll = ts, e.Form = ns, e.Center = as, e.Column = rs;
1235
1222
  function a(l, _, c) {
1236
- rt(`${l}/modal/${_}.tsx`).then((h) => {
1237
- h.default.Open(c);
1223
+ st(`${l}/modal/${_}.tsx`).then((m) => {
1224
+ m.default.Open(c);
1238
1225
  });
1239
1226
  }
1240
1227
  e.Open = a;
1241
1228
  function r({ type: l, name: _, params: c }) {
1242
- let [h, m] = x.useState(null);
1243
- return x.useEffect(() => {
1244
- rt(`${l}/modal/${_}.tsx`).then((g) => {
1245
- m(g.default.Icon(c));
1229
+ let [m, f] = g.useState(null);
1230
+ return g.useEffect(() => {
1231
+ st(`${l}/modal/${_}.tsx`).then((h) => {
1232
+ f(h.default.Icon(c));
1246
1233
  });
1247
- }, [c.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: h });
1234
+ }, [c.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: m });
1248
1235
  }
1249
1236
  e.Icon = r;
1250
1237
  function s(l, _) {
1251
- et.add(/* @__PURE__ */ n.jsx(_s, { children: l }, String(Date.now())), _);
1238
+ tt.add(/* @__PURE__ */ n.jsx(_s, { children: l }, String(Date.now())), _);
1252
1239
  }
1253
1240
  e.Add = s;
1254
1241
  function i(l) {
1255
- et.x(l);
1242
+ tt.x(l);
1256
1243
  }
1257
1244
  e.Close = i;
1258
1245
  function o(l) {
@@ -1267,13 +1254,13 @@ var Ne;
1267
1254
  title: l,
1268
1255
  children: _,
1269
1256
  button: c,
1270
- tabs: h,
1271
- size: m = "m",
1272
- className: g = "",
1273
- shake: v = !0,
1274
- menu: f
1257
+ tabs: m,
1258
+ size: f = "m",
1259
+ className: h = "",
1260
+ shake: x = !0,
1261
+ menu: p
1275
1262
  }) {
1276
- const [p, y] = x.useState(!0), j = x.useRef(), S = (R) => {
1263
+ const [v, y] = g.useState(!0), j = g.useRef(), I = (R) => {
1277
1264
  if (c) {
1278
1265
  if (c.onClick)
1279
1266
  return R(!1), c.onClick({ setOpen: y });
@@ -1284,43 +1271,43 @@ var Ne;
1284
1271
  });
1285
1272
  }
1286
1273
  }, N = () => {
1287
- if (!v) return y(!1);
1274
+ if (!x) return y(!1);
1288
1275
  j.current.setAttribute("shake", !0), setTimeout(() => {
1289
1276
  j.current.setAttribute("shake", !1);
1290
1277
  }, 1e3);
1291
1278
  };
1292
- return p ? /* @__PURE__ */ n.jsxs(
1279
+ return v ? /* @__PURE__ */ n.jsxs(
1293
1280
  "div",
1294
1281
  {
1295
- className: `${se.modal}`,
1282
+ className: `${re.modal}`,
1296
1283
  children: [
1297
- /* @__PURE__ */ n.jsx("div", { className: se.o, onClick: N }),
1284
+ /* @__PURE__ */ n.jsx("div", { className: re.o, onClick: N }),
1298
1285
  /* @__PURE__ */ n.jsxs(
1299
1286
  "div",
1300
1287
  {
1301
- className: [se.w, se[`s${m}`], g].join(
1288
+ className: [re.w, re[`s${f}`], h].join(
1302
1289
  " "
1303
1290
  ),
1304
1291
  ref: j,
1305
1292
  children: [
1306
- /* @__PURE__ */ n.jsxs("div", { className: se.h, children: [
1307
- /* @__PURE__ */ n.jsx("div", { className: se.t, children: l }),
1308
- /* @__PURE__ */ n.jsxs("div", { className: se.m, children: [
1309
- h && /* @__PURE__ */ n.jsx("nav", { children: h.map((R, I) => /* @__PURE__ */ n.jsx(
1293
+ /* @__PURE__ */ n.jsxs("div", { className: re.h, children: [
1294
+ /* @__PURE__ */ n.jsx("div", { className: re.t, children: l }),
1295
+ /* @__PURE__ */ n.jsxs("div", { className: re.m, children: [
1296
+ m && /* @__PURE__ */ n.jsx("nav", { children: m.map((R, D) => /* @__PURE__ */ n.jsx(
1310
1297
  "span",
1311
1298
  {
1312
1299
  onClick: R.onClick,
1313
1300
  className: R.active ? "active" : "",
1314
1301
  children: R.name
1315
1302
  },
1316
- I
1303
+ D
1317
1304
  )) }),
1318
- f
1305
+ p
1319
1306
  ] }),
1320
1307
  /* @__PURE__ */ n.jsx(
1321
1308
  "div",
1322
1309
  {
1323
- className: se.x,
1310
+ className: re.x,
1324
1311
  onClick: () => {
1325
1312
  y(!1);
1326
1313
  },
@@ -1342,8 +1329,8 @@ var Ne;
1342
1329
  No,
1343
1330
  {
1344
1331
  label: c.label,
1345
- onSend: S,
1346
- className: se.btn
1332
+ onSend: I,
1333
+ className: re.btn
1347
1334
  }
1348
1335
  ) : ""
1349
1336
  ]
@@ -1363,8 +1350,8 @@ const us = ({
1363
1350
  update: r,
1364
1351
  textAlign: s
1365
1352
  }) => {
1366
- const i = x.useRef(null);
1367
- return x.useEffect(() => {
1353
+ const i = g.useRef(null);
1354
+ return g.useEffect(() => {
1368
1355
  const o = i.current;
1369
1356
  o.style.opacity = "0", o.style.width = "auto", o.style.left = "0px", o.style.top = "0px";
1370
1357
  let d = {
@@ -1395,7 +1382,7 @@ const us = ({
1395
1382
  var kt;
1396
1383
  ((e) => {
1397
1384
  e.Init = () => {
1398
- let [t, a] = x.useState("");
1385
+ let [t, a] = g.useState("");
1399
1386
  return Ge.set = (r) => a(r), Ge.del = () => a(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
1400
1387
  }, e.Text = ({
1401
1388
  content: t,
@@ -1497,7 +1484,7 @@ var A;
1497
1484
  }
1498
1485
  };
1499
1486
  })(A || (A = {}));
1500
- const Z = {}, $ = {}, pe = { module: "", page: "Auth", main: "Main" };
1487
+ const Z = {}, $ = {}, he = { module: "", page: "Auth", main: "Main" };
1501
1488
  var ee;
1502
1489
  ((e) => {
1503
1490
  async function t() {
@@ -1506,25 +1493,25 @@ var ee;
1506
1493
  if (C = await A.deCode(C), !C) return !1;
1507
1494
  $.id = C.id, $.tab = C.tab, $.page = C.page, $.module = C.module, $.time = C.time, $.payment = { active: !0 }, $.module_admin = C.module_admin;
1508
1495
  } else
1509
- $.id = 0, $.tab = "", $.page = pe.main, $.module = pe.module;
1496
+ $.id = 0, $.tab = "", $.page = he.main, $.module = he.module;
1510
1497
  return !0;
1511
1498
  }
1512
1499
  e.Load = t;
1513
1500
  function a() {
1514
- $.id = 0, $.tab = "", $.page = pe.page, $.module = pe.module;
1501
+ $.id = 0, $.tab = "", $.page = he.page, $.module = he.module;
1515
1502
  }
1516
1503
  e.Reset = a;
1517
1504
  function r({
1518
- module: C = pe.module,
1519
- page: k = pe.page,
1520
- main: F = pe.main
1505
+ module: C = he.module,
1506
+ page: k = he.page,
1507
+ main: F = he.main
1521
1508
  }) {
1522
- pe.page = k, pe.module = C, pe.main = F;
1509
+ he.page = k, he.module = C, he.main = F;
1523
1510
  }
1524
1511
  e.Default = r;
1525
1512
  function s() {
1526
- const [C, k] = x.useState(o()), F = (E) => {
1527
- k(E);
1513
+ const [C, k] = g.useState(o()), F = (S) => {
1514
+ k(S);
1528
1515
  };
1529
1516
  return Z.page = F, [C];
1530
1517
  }
@@ -1543,12 +1530,12 @@ var ee;
1543
1530
  e.isPage = d;
1544
1531
  function l(C) {
1545
1532
  if (typeof C != "function") {
1546
- const [k, F] = x.useState(
1533
+ const [k, F] = g.useState(
1547
1534
  C || c()
1548
- ), E = (L) => {
1535
+ ), S = (L) => {
1549
1536
  F(L);
1550
1537
  };
1551
- return Z.module = E, [k];
1538
+ return Z.module = S, [k];
1552
1539
  } else
1553
1540
  Z.module = C;
1554
1541
  }
@@ -1561,44 +1548,44 @@ var ee;
1561
1548
  return $.module;
1562
1549
  }
1563
1550
  e.getModule = c;
1564
- function h(C) {
1551
+ function m(C) {
1565
1552
  return $.module === C;
1566
1553
  }
1567
- e.isModule = h;
1568
- function m(C) {
1554
+ e.isModule = m;
1555
+ function f(C) {
1569
1556
  if (typeof C != "function") {
1570
- const [k, F] = x.useState(C || v());
1557
+ const [k, F] = g.useState(C || x());
1571
1558
  return Z.tabs = F, [k];
1572
1559
  } else
1573
1560
  Z.tabs = C;
1574
1561
  }
1575
- e.useTabs = m;
1576
- async function g(C, k = !0) {
1562
+ e.useTabs = f;
1563
+ async function h(C, k = !0) {
1577
1564
  if ($.tab = C, sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($), !!k)
1578
1565
  if (Z.tabs)
1579
1566
  Z.tabs(C);
1580
1567
  else
1581
1568
  throw new Error("useTabs not found");
1582
1569
  }
1583
- e.setTabs = g;
1584
- function v() {
1570
+ e.setTabs = h;
1571
+ function x() {
1585
1572
  return $.tab;
1586
1573
  }
1587
- e.getTabs = v;
1588
- function f(C) {
1574
+ e.getTabs = x;
1575
+ function p(C) {
1589
1576
  return $.tab === C;
1590
1577
  }
1591
- e.isTabs = f;
1592
- function p(C) {
1578
+ e.isTabs = p;
1579
+ function v(C) {
1593
1580
  if (typeof C != "function") {
1594
- const [k, F] = x.useState(C || S()), E = (L) => {
1581
+ const [k, F] = g.useState(C || I()), S = (L) => {
1595
1582
  F(L);
1596
1583
  };
1597
- return Z.id = E, [k];
1584
+ return Z.id = S, [k];
1598
1585
  } else
1599
1586
  Z.id = C;
1600
1587
  }
1601
- e.useId = p;
1588
+ e.useId = v;
1602
1589
  function y(C) {
1603
1590
  Z.id = C;
1604
1591
  }
@@ -1607,10 +1594,10 @@ var ee;
1607
1594
  $.id = C, sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($), k && Z.id(C);
1608
1595
  }
1609
1596
  e.setId = j;
1610
- function S() {
1597
+ function I() {
1611
1598
  return $.id;
1612
1599
  }
1613
- e.getId = S;
1600
+ e.getId = I;
1614
1601
  function N(C) {
1615
1602
  return Number($.id) === C;
1616
1603
  }
@@ -1619,19 +1606,19 @@ var ee;
1619
1606
  $.module = C, $.id = F, $.tab = k, sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($), Z.module(C), Z.tabs(k);
1620
1607
  }
1621
1608
  e.Path = R;
1622
- async function I(C, k, F, E) {
1623
- var L, D, w;
1609
+ async function D(C, k, F, S) {
1610
+ var L, E, w;
1624
1611
  if ($.page === C)
1625
1612
  if ($.module === k) {
1626
- if ($.tab = F || "", $.id = E || 0, $.tab === "") return;
1613
+ if ($.tab = F || "", $.id = S || 0, $.tab === "") return;
1627
1614
  (L = Z.tabs) == null || L.call(Z, F);
1628
1615
  } else
1629
- $.module = k, $.tab = F || "", $.id = E || 0, (D = Z.module) == null || D.call(Z, k);
1616
+ $.module = k, $.tab = F || "", $.id = S || 0, (E = Z.module) == null || E.call(Z, k);
1630
1617
  else
1631
- $.module = k, $.tab = F || "", $.id = E || 0, $.page = C, (w = Z.page) == null || w.call(Z, C);
1618
+ $.module = k, $.tab = F || "", $.id = S || 0, $.page = C, (w = Z.page) == null || w.call(Z, C);
1632
1619
  sessionStorage.setItem("f", await A.enCode($)), Z.dynamicURL && Z.dynamicURL($);
1633
1620
  }
1634
- e.Push = I;
1621
+ e.Push = D;
1635
1622
  })(ee || (ee = {}));
1636
1623
  function xs(e, t) {
1637
1624
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
@@ -1671,16 +1658,16 @@ function vs(e) {
1671
1658
  };
1672
1659
  }
1673
1660
  const Cs = (e) => {
1674
- function t(S, N) {
1675
- var R, C, I;
1676
- S = S ?? "", N = N ?? 1;
1677
- for (var R = [], I = 0, C = S.length; I < C; )
1678
- R.push(S.slice(I, I += N));
1661
+ function t(I, N) {
1662
+ var R, C, D;
1663
+ I = I ?? "", N = N ?? 1;
1664
+ for (var R = [], D = 0, C = I.length; D < C; )
1665
+ R.push(I.slice(D, D += N));
1679
1666
  return R;
1680
1667
  }
1681
- function a(S, N) {
1668
+ function a(I, N) {
1682
1669
  var R = [2, 0, 1, 1, 1, 2];
1683
- return N[S > 4 && S < 20 ? 2 : R[Math.min(S, 5)]];
1670
+ return N[I > 4 && I < 20 ? 2 : R[Math.min(I, 5)]];
1684
1671
  }
1685
1672
  var r = {
1686
1673
  null: "ноль",
@@ -1744,29 +1731,29 @@ const Cs = (e) => {
1744
1731
  u3: ["тысяча", "тысячи", "тысяч"],
1745
1732
  u2: ["миллион", "миллиона", "миллионов"],
1746
1733
  u1: ["миллиард", "миллиарда", "миллиардов"]
1747
- }, s, i, o, d, p, l, _, f, c, h, m, g;
1734
+ }, s, i, o, d, v, l, _, p, c, m, f, h;
1748
1735
  c = parseFloat(e).toFixed(2).split("."), l = c[0], d = c[1];
1749
- var v = 12 - l.length;
1750
- if (v < 0)
1736
+ var x = 12 - l.length;
1737
+ if (x < 0)
1751
1738
  return !1;
1752
- for (var f = []; v--; )
1753
- f.push("0");
1754
- l = f.join("") + l;
1755
- var p = [];
1739
+ for (var p = []; x--; )
1740
+ p.push("0");
1741
+ l = p.join("") + l;
1742
+ var v = [];
1756
1743
  if (l > 0) {
1757
- h = t(l, 3);
1758
- for (var y = -1; y < h.length; y++)
1759
- if (_ = h[y], _ > 0 && (m = t(_, 1), s = parseInt(m[0]), i = parseInt(m[1]), o = parseInt(m[2]), p.push(r.a100[s - 1]), g = y + 1 == 3 ? "a2" : "a1", i > 1 ? p.push(
1760
- r.a20[i - 2] + (o > 0 ? " " + r[g][o - 1] : "")
1761
- ) : p.push(
1762
- i > 0 ? r.a10[o] : r[g][o - 1]
1763
- ), h.length > y + 1)) {
1744
+ m = t(l, 3);
1745
+ for (var y = -1; y < m.length; y++)
1746
+ if (_ = m[y], _ > 0 && (f = t(_, 1), s = parseInt(f[0]), i = parseInt(f[1]), o = parseInt(f[2]), v.push(r.a100[s - 1]), h = y + 1 == 3 ? "a2" : "a1", i > 1 ? v.push(
1747
+ r.a20[i - 2] + (o > 0 ? " " + r[h][o - 1] : "")
1748
+ ) : v.push(
1749
+ i > 0 ? r.a10[o] : r[h][o - 1]
1750
+ ), m.length > y + 1)) {
1764
1751
  var j = r["u" + (y + 1)];
1765
- p.push(a(_, j));
1752
+ v.push(a(_, j));
1766
1753
  }
1767
1754
  } else
1768
- p.push(r.null);
1769
- return p.push(a(l, r.ur)), p.push(d + " " + a(d, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1755
+ v.push(r.null);
1756
+ return v.push(a(l, r.ur)), v.push(d + " " + a(d, r.uc)), v.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1770
1757
  };
1771
1758
  function js(e) {
1772
1759
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
@@ -1902,32 +1889,32 @@ function ws(e, t, a, r) {
1902
1889
  word: function(o, d, l, _) {
1903
1890
  if (_ === this.gcaseNom) return o;
1904
1891
  if (o.match(/[-]/)) {
1905
- for (var c = o.split("-"), h = 0, m = c.length; h < m; h++)
1906
- c[h] = this.word(c[h], d, l, _);
1892
+ for (var c = o.split("-"), m = 0, f = c.length; m < f; m++)
1893
+ c[m] = this.word(c[m], d, l, _);
1907
1894
  return c.join("-");
1908
1895
  }
1909
1896
  if (o.match(/^[А-ЯЁ]\.?$/i)) return o;
1910
1897
  this.init();
1911
- var g = this.rules[l];
1912
- let v;
1913
- return g.exceptions && (v = this.pick(o, d, _, g.exceptions, !0), v) ? v : (v = this.pick(o, d, _, g.suffixes, !1), v || o);
1898
+ var h = this.rules[l];
1899
+ let x;
1900
+ return h.exceptions && (x = this.pick(o, d, _, h.exceptions, !0), x) ? x : (x = this.pick(o, d, _, h.suffixes, !1), x || o);
1914
1901
  },
1915
1902
  // выбираем из списка правил первое подходящее и применяем
1916
1903
  pick: function(o, d, l, _, c) {
1917
- let h = o.toLowerCase();
1918
- for (var m = 0, g = _.length; m < g; m++)
1919
- if (this.ruleMatch(h, d, _[m], c))
1920
- return this.applyMod(o, l, _[m]);
1904
+ let m = o.toLowerCase();
1905
+ for (var f = 0, h = _.length; f < h; f++)
1906
+ if (this.ruleMatch(m, d, _[f], c))
1907
+ return this.applyMod(o, l, _[f]);
1921
1908
  return !1;
1922
1909
  },
1923
1910
  // проверяем, подходит ли правило к слову
1924
1911
  ruleMatch: function(o, d, l, _) {
1925
1912
  if (l.sex === this.sexM && d === this.sexF || l.sex === this.sexF && d !== this.sexF) return !1;
1926
- for (var c = 0, h = l.test.length; c < h; c++) {
1927
- var m = _ ? o : o.substr(
1913
+ for (var c = 0, m = l.test.length; c < m; c++) {
1914
+ var f = _ ? o : o.substr(
1928
1915
  Math.max(o.length - l.test[c].length, 0)
1929
1916
  );
1930
- if (m === l.test[c]) return !0;
1917
+ if (f === l.test[c]) return !0;
1931
1918
  }
1932
1919
  return !1;
1933
1920
  },
@@ -1954,16 +1941,16 @@ function ws(e, t, a, r) {
1954
1941
  _ = l.mods[4];
1955
1942
  break;
1956
1943
  }
1957
- for (var c = 0, h = _.length; c < h; c++) {
1958
- var m = _.substr(c, 1);
1959
- switch (m) {
1944
+ for (var c = 0, m = _.length; c < m; c++) {
1945
+ var f = _.substr(c, 1);
1946
+ switch (f) {
1960
1947
  case ".":
1961
1948
  break;
1962
1949
  case "-":
1963
1950
  o = o.substr(0, o.length - 1);
1964
1951
  break;
1965
1952
  default:
1966
- o += m;
1953
+ o += f;
1967
1954
  }
1968
1955
  }
1969
1956
  return o;
@@ -2037,20 +2024,20 @@ function Ns(e, t) {
2037
2024
  let a = e % 10;
2038
2025
  return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
2039
2026
  }
2040
- const Cn = {}, Zn = {}, _e = {}, ve = {}, Me = {};
2041
- let we = "", he = {};
2027
+ const Cn = {}, Zn = {}, de = {}, xe = {}, Me = {};
2028
+ let we = "", me = {};
2042
2029
  function Rs(e) {
2043
- const [t, a] = x.useState(!1);
2044
- return x.useEffect(() => {
2030
+ const [t, a] = g.useState(!1);
2031
+ return g.useEffect(() => {
2045
2032
  localStorage.getItem("d") ? (async () => {
2046
2033
  if (await ee.Load()) return a(!0);
2047
- oe();
2034
+ ie();
2048
2035
  })() : (["a", "b", "c", "d", "e", "m", "u", "s", "p", "q", "w"].forEach(
2049
2036
  (s) => localStorage.removeItem(s)
2050
2037
  ), ["f"].forEach((s) => sessionStorage.removeItem(s)), ee.Reset(), a(!0));
2051
2038
  }, []), t ? e : "";
2052
2039
  }
2053
- function oe() {
2040
+ function ie() {
2054
2041
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p", "t", "w"].forEach(
2055
2042
  (e) => localStorage.removeItem(e)
2056
2043
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.history.pushState({}, "", "/"), window.location.reload();
@@ -2076,16 +2063,16 @@ function Fs() {
2076
2063
  let e = localStorage.getItem("p");
2077
2064
  if (e !== "" && e !== "undefined" && e !== null) {
2078
2065
  let t = A.deCode(e);
2079
- return t || oe(), t;
2066
+ return t || ie(), t;
2080
2067
  } else
2081
- return oe(), !1;
2068
+ return ie(), !1;
2082
2069
  }
2083
2070
  async function Ps(e, t) {
2084
2071
  Cn.data[e] = t, localStorage.setItem("s", await A.enCode(Cn.data));
2085
2072
  }
2086
2073
  function As(e) {
2087
2074
  let t = localStorage.getItem("s");
2088
- return t === null ? {} : (t = A.deCode(t), t ? e !== void 0 ? t[e] : t : oe());
2075
+ return t === null ? {} : (t = A.deCode(t), t ? e !== void 0 ? t[e] : t : ie());
2089
2076
  }
2090
2077
  async function Os(e) {
2091
2078
  localStorage.setItem("m", await A.enCode({ data: e }));
@@ -2096,7 +2083,7 @@ function Zs() {
2096
2083
  let t = localStorage.getItem("m");
2097
2084
  if (t === null) return !1;
2098
2085
  let a = A.deCode(t);
2099
- a || oe();
2086
+ a || ie();
2100
2087
  const r = (i, o) => {
2101
2088
  let d = o + "";
2102
2089
  for (; d.length < i; ) d = "0" + d;
@@ -2104,7 +2091,7 @@ function Zs() {
2104
2091
  };
2105
2092
  return a.data.split(",").map((i) => "M" + r(2, i));
2106
2093
  } else
2107
- return oe(), !1;
2094
+ return ie(), !1;
2108
2095
  }
2109
2096
  function Gs(e) {
2110
2097
  }
@@ -2124,24 +2111,24 @@ async function Wn(e, t) {
2124
2111
  let a = localStorage.getItem("c");
2125
2112
  if (a !== "" && a !== "undefined" && a !== null) {
2126
2113
  let s = await A.deCode(a);
2127
- return s || oe(), e === void 0 ? s : t ? (r = s[e][t]) == null ? void 0 : r.n : s[e];
2114
+ return s || ie(), e === void 0 ? s : t ? (r = s[e][t]) == null ? void 0 : r.n : s[e];
2128
2115
  } else
2129
- return oe(), !1;
2116
+ return ie(), !1;
2130
2117
  }
2131
2118
  async function Us(e) {
2132
- ve.data = e, localStorage.setItem("q", await A.enCode(ve.data));
2119
+ xe.data = e, localStorage.setItem("q", await A.enCode(xe.data));
2133
2120
  }
2134
- async function Ks(e, t) {
2135
- ve.data = { ...ve.data, [e]: t }, localStorage.setItem("q", await A.enCode(ve.data));
2121
+ async function zs(e, t) {
2122
+ xe.data = { ...xe.data, [e]: t }, localStorage.setItem("q", await A.enCode(xe.data));
2136
2123
  }
2137
2124
  function Ye(e, t) {
2138
- if (!ve.data) {
2125
+ if (!xe.data) {
2139
2126
  let a = localStorage.getItem("q");
2140
- a && (ve.data = A.deCode(a));
2127
+ a && (xe.data = A.deCode(a));
2141
2128
  }
2142
- return e === void 0 && t === void 0 ? ve.data : e !== void 0 && t === void 0 ? ve.data[e] : ve.data[e][t];
2129
+ return e === void 0 && t === void 0 ? xe.data : e !== void 0 && t === void 0 ? xe.data[e] : xe.data[e][t];
2143
2130
  }
2144
- function zs(e) {
2131
+ function Ks(e) {
2145
2132
  Zn.data = e;
2146
2133
  }
2147
2134
  function Ys(e) {
@@ -2156,9 +2143,9 @@ async function Js() {
2156
2143
  let e = localStorage.getItem("u");
2157
2144
  if (e !== "" && e !== "undefined" && e !== null) {
2158
2145
  let t = await A.deCode(e);
2159
- return t || oe(), Me.data = t, t;
2146
+ return t || ie(), Me.data = t, t;
2160
2147
  } else
2161
- return oe(), !1;
2148
+ return ie(), !1;
2162
2149
  }
2163
2150
  async function Xs() {
2164
2151
  let e = localStorage.getItem("u");
@@ -2178,7 +2165,7 @@ function ei() {
2178
2165
  if (e !== "" && e !== "undefined" && e !== null)
2179
2166
  try {
2180
2167
  let t = A.deCode(e);
2181
- return t || oe(), t;
2168
+ return t || ie(), t;
2182
2169
  } catch {
2183
2170
  return {};
2184
2171
  }
@@ -2192,52 +2179,52 @@ function ti(e) {
2192
2179
  try {
2193
2180
  let s = await A.deCode(r);
2194
2181
  if (!s) return;
2195
- he[a] = { is: !0, time: s.time, data: s.data };
2182
+ me[a] = { is: !0, time: s.time, data: s.data };
2196
2183
  } catch {
2197
- he[a] = { is: !1, time: 0, data: {} };
2184
+ me[a] = { is: !1, time: 0, data: {} };
2198
2185
  }
2199
2186
  else
2200
- he[a] = { is: !1, time: 0, data: {} };
2187
+ me[a] = { is: !1, time: 0, data: {} };
2201
2188
  };
2202
2189
  e.forEach((a) => t(a));
2203
2190
  }
2204
2191
  function ni(e) {
2205
- return he[e] === void 0 ? (he[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : he[e];
2192
+ return me[e] === void 0 ? (me[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : me[e];
2206
2193
  }
2207
2194
  async function ai(e, t) {
2208
- he[e] = { data: t.data, time: t.time }, localStorage.setItem(e, await A.enCode(he[e]));
2195
+ me[e] = { data: t.data, time: t.time }, localStorage.setItem(e, await A.enCode(me[e]));
2209
2196
  }
2210
2197
  async function ri(e, t) {
2211
- _e[e] = t, localStorage.setItem("t", await A.enCode(_e));
2198
+ de[e] = t, localStorage.setItem("t", await A.enCode(de));
2212
2199
  }
2213
2200
  async function si(e) {
2214
- if (Object.keys(_e).length === 0) {
2201
+ if (Object.keys(de).length === 0) {
2215
2202
  let t = localStorage.getItem("t");
2216
2203
  if (t !== "" && t !== "undefined" && t !== null) {
2217
2204
  let a = await A.deCode(t);
2218
- return a || oe(), Object.keys(a).forEach((r) => {
2219
- _e[r] = a[r];
2220
- }), e ? _e[e] : _e;
2205
+ return a || ie(), Object.keys(a).forEach((r) => {
2206
+ de[r] = a[r];
2207
+ }), e ? de[e] : de;
2221
2208
  } else
2222
- return oe(), {};
2209
+ return ie(), {};
2223
2210
  } else
2224
- return e ? _e[e] : _e;
2211
+ return e ? de[e] : de;
2225
2212
  }
2226
2213
  async function ii(e) {
2227
- if (Object.keys(_e).length === 0) {
2214
+ if (Object.keys(de).length === 0) {
2228
2215
  let t = localStorage.getItem("t");
2229
2216
  if (t !== "" && t !== "undefined" && t !== null) {
2230
2217
  let a = await A.deCode(t);
2231
2218
  return a ? (Object.keys(a).forEach((r) => {
2232
- _e[r] = a[r];
2233
- }), !!_e[e]) : !1;
2219
+ de[r] = a[r];
2220
+ }), !!de[e]) : !1;
2234
2221
  } else
2235
2222
  return !1;
2236
2223
  } else
2237
- return !!_e[e];
2224
+ return !!de[e];
2238
2225
  }
2239
2226
  async function oi(e, t, a) {
2240
- he[e].time = a, he[e].data[t.item][t.name] = t.value, localStorage.setItem(e, await A.enCode(he[e]));
2227
+ me[e].time = a, me[e].data[t.item][t.name] = t.value, localStorage.setItem(e, await A.enCode(me[e]));
2241
2228
  }
2242
2229
  function li() {
2243
2230
  var a;
@@ -2246,7 +2233,7 @@ function li() {
2246
2233
  try {
2247
2234
  return JSON.parse(t || "{}");
2248
2235
  } catch {
2249
- return me.Error("Error parse devMod"), {};
2236
+ return fe.Error("Error parse devMod"), {};
2250
2237
  }
2251
2238
  }
2252
2239
  function Un() {
@@ -2423,8 +2410,8 @@ const Y = {
2423
2410
  Y[e] = t;
2424
2411
  }
2425
2412
  }, ki = ({ before: e, from: t = 0, to: a, secund: r = 3 }) => {
2426
- const s = x.useRef();
2427
- return x.useEffect(() => {
2413
+ const s = g.useRef();
2414
+ return g.useEffect(() => {
2428
2415
  s.s = !0;
2429
2416
  const i = 1e3, o = a / (r * 10);
2430
2417
  s.n = 0;
@@ -2446,7 +2433,7 @@ const Y = {
2446
2433
  setPORT: $s,
2447
2434
  setAUTH: Ms,
2448
2435
  getAUTH: Bs,
2449
- Logaut: oe,
2436
+ Logaut: ie,
2450
2437
  setMenu: Os,
2451
2438
  getMenu: Zs,
2452
2439
  useSort: Gs,
@@ -2455,9 +2442,9 @@ const Y = {
2455
2442
  setCompany: Ws,
2456
2443
  getCompany: Wn,
2457
2444
  setSelect: Us,
2458
- addSelect: Ks,
2445
+ addSelect: zs,
2459
2446
  getSelect: Ye,
2460
- setApi: zs,
2447
+ setApi: Ks,
2461
2448
  getApi: Ys,
2462
2449
  setPayment: Hs,
2463
2450
  getPayment: qs,
@@ -2475,7 +2462,7 @@ const Y = {
2475
2462
  devMod: li,
2476
2463
  isBrowser: ci,
2477
2464
  getBrowser: Un
2478
- }, bi = "_h_1usnu_1", Si = "_g_1usnu_11", Ei = "_hr_1usnu_16", Ii = "_hl_1usnu_28", Di = "_t_1usnu_40", Ni = "_s_1usnu_60", Ri = "_u_1usnu_69", Ti = "_o_1usnu_76", Li = "_l_1usnu_105", Mi = "_hh_1usnu_115", Bi = "_c_1usnu_128", $i = "_loadingB_1usnu_1", Fi = "_m_1usnu_180", Pi = "_ul_1usnu_196", Ai = "_f_1usnu_226", ie = {
2465
+ }, bi = "_h_1usnu_1", Si = "_g_1usnu_11", Ei = "_hr_1usnu_16", Ii = "_hl_1usnu_28", Di = "_t_1usnu_40", Ni = "_s_1usnu_60", Ri = "_u_1usnu_69", Ti = "_o_1usnu_76", Li = "_l_1usnu_105", Mi = "_hh_1usnu_115", Bi = "_c_1usnu_128", $i = "_loadingB_1usnu_1", Fi = "_m_1usnu_180", Pi = "_ul_1usnu_196", Ai = "_f_1usnu_226", se = {
2479
2466
  h: bi,
2480
2467
  g: Si,
2481
2468
  hr: Ei,
@@ -2491,22 +2478,22 @@ const Y = {
2491
2478
  m: Fi,
2492
2479
  ul: Pi,
2493
2480
  f: Ai
2494
- }, yn = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: ie.h, children: [
2495
- /* @__PURE__ */ n.jsx("div", { className: ie.t, children: e }),
2496
- t && /* @__PURE__ */ n.jsx("div", { className: ie.hl, children: t }),
2497
- a && /* @__PURE__ */ n.jsx("div", { className: ie.hr, children: a }),
2481
+ }, yn = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: se.h, children: [
2482
+ /* @__PURE__ */ n.jsx("div", { className: se.t, children: e }),
2483
+ t && /* @__PURE__ */ n.jsx("div", { className: se.hl, children: t }),
2484
+ a && /* @__PURE__ */ n.jsx("div", { className: se.hr, children: a }),
2498
2485
  r
2499
- ] }), wn = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: ie.l, children: e }), kn = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ie.s, children: e }), bn = ({ children: e, edit: t }) => {
2486
+ ] }), wn = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: se.l, children: e }), kn = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.s, children: e }), bn = ({ children: e, edit: t }) => {
2500
2487
  const a = {};
2501
- return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: ie.f, children: e });
2488
+ return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: se.f, children: e });
2502
2489
  };
2503
2490
  function Sn({ children: e }) {
2504
- return /* @__PURE__ */ n.jsx("div", { className: ie.g, children: e });
2491
+ return /* @__PURE__ */ n.jsx("div", { className: se.g, children: e });
2505
2492
  }
2506
- const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [ie.o, t].join(" "), children: [
2507
- a && /* @__PURE__ */ n.jsx("div", { className: ie.hh, children: a }),
2493
+ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [se.o, t].join(" "), children: [
2494
+ a && /* @__PURE__ */ n.jsx("div", { className: se.hh, children: a }),
2508
2495
  e
2509
- ] }), Zi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ie.u, children: e }), Gi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ie.c, children: e }), Wi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ie.m, children: e }), Ui = ze.Line, En = {
2496
+ ] }), Zi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.u, children: e }), Gi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.c, children: e }), Wi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: se.m, children: e }), Ui = Ke.Line, En = {
2510
2497
  Header: yn,
2511
2498
  Section: kn,
2512
2499
  Group: Sn,
@@ -2522,7 +2509,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2522
2509
  H: yn,
2523
2510
  M: Wi,
2524
2511
  F: bn
2525
- }, Ki = (e, t) => {
2512
+ }, zi = (e, t) => {
2526
2513
  switch (t.type) {
2527
2514
  case "load":
2528
2515
  return {
@@ -2583,7 +2570,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2583
2570
  default:
2584
2571
  return e;
2585
2572
  }
2586
- }, zi = () => ({
2573
+ }, Ki = () => ({
2587
2574
  load: !0,
2588
2575
  list: [],
2589
2576
  name: "Файлы",
@@ -2591,7 +2578,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2591
2578
  search: !1,
2592
2579
  revers: !0
2593
2580
  }), Yi = () => {
2594
- let [e, t] = x.useState([]);
2581
+ let [e, t] = g.useState([]);
2595
2582
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
2596
2583
  /* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
2597
2584
  /* @__PURE__ */ n.jsx("b", { children: "Загрузки" }),
@@ -2613,7 +2600,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2613
2600
  dir: r
2614
2601
  }) => {
2615
2602
  t = t || "Файлы";
2616
- const [s, i] = x.useReducer(Ki, {}, zi), o = () => {
2603
+ const [s, i] = g.useReducer(zi, {}, Ki), o = () => {
2617
2604
  Ne.Add(
2618
2605
  /* @__PURE__ */ n.jsx(
2619
2606
  qi,
@@ -2626,7 +2613,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2626
2613
  )
2627
2614
  );
2628
2615
  };
2629
- return x.useEffect(() => {
2616
+ return g.useEffect(() => {
2630
2617
  }, [e, r]), /* @__PURE__ */ n.jsxs(En.O, { children: [
2631
2618
  " ",
2632
2619
  /* @__PURE__ */ n.jsx(
@@ -2659,12 +2646,12 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2659
2646
  ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((d, l) => /* @__PURE__ */ n.jsx(Ji, { dispatch: i, data: d }, l)) })
2660
2647
  ] });
2661
2648
  }, qi = ({ id: e, dir: t, dispatch: a }) => {
2662
- let [r, s] = x.useState(!0), i = x.useRef(null), o = (_) => {
2649
+ let [r, s] = g.useState(!0), i = g.useRef(null), o = (_) => {
2663
2650
  _.preventDefault(), _.stopPropagation();
2664
2651
  }, d = (_) => {
2665
2652
  }, l = (_) => {
2666
2653
  };
2667
- return x.useEffect(() => {
2654
+ return g.useEffect(() => {
2668
2655
  let _ = i.current;
2669
2656
  ["dragenter", "dragover", "dragleave", "drop"].forEach((c) => {
2670
2657
  _.addEventListener(c, o, !1), document.body.addEventListener(c, o, !1);
@@ -2709,7 +2696,7 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2709
2696
  ) }) : "" });
2710
2697
  }, Ji = ({ data: e, dispatch: t }) => {
2711
2698
  let a = async () => {
2712
- let i = await (await fetch(Ke.url().files + "/yandex/data/" + e.id, {
2699
+ let i = await (await fetch(ze.url().files + "/yandex/data/" + e.id, {
2713
2700
  headers: {
2714
2701
  "Content-type": "application/json;charset=utf-8",
2715
2702
  SSID: ke.getSSID() || ""
@@ -2722,12 +2709,12 @@ const Oi = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2722
2709
  d.setAttribute("href", o), d.setAttribute("download", e.name), d.click();
2723
2710
  }
2724
2711
  }, r = async () => {
2725
- (await (await fetch(Ke.url().files + "/yandex/delete/" + e.id, {
2712
+ (await (await fetch(ze.url().files + "/yandex/delete/" + e.id, {
2726
2713
  headers: {
2727
2714
  "Content-type": "application/json;charset=utf-8",
2728
2715
  SSID: ke.getSSID() || ""
2729
2716
  }
2730
- })).json()).status === "success" && (t({ type: "delete", id: e.id }), me.Send({ type: "success", text: "Файл успешно удалён" }));
2717
+ })).json()).status === "success" && (t({ type: "delete", id: e.id }), fe.Send({ type: "success", text: "Файл успешно удалён" }));
2731
2718
  };
2732
2719
  return /* @__PURE__ */ n.jsxs("li", { children: [
2733
2720
  /* @__PURE__ */ n.jsx("div", { className: "f035", children: Y.TypeFiles(e.type) }),
@@ -2761,8 +2748,8 @@ q.list = ei();
2761
2748
  q.active = null;
2762
2749
  const Xi = () => {
2763
2750
  var s;
2764
- let [e, t] = x.useState([]), [a, r] = x.useState($t.getSetting("s03"));
2765
- return x.useEffect(() => {
2751
+ let [e, t] = g.useState([]), [a, r] = g.useState($t.getSetting("s03"));
2752
+ return g.useEffect(() => {
2766
2753
  (async () => {
2767
2754
  let i = Object.keys(q.list);
2768
2755
  if (i.length !== 0) {
@@ -2798,14 +2785,14 @@ const Xi = () => {
2798
2785
  a === 1 && e.length !== 0 ? "bottom" : ""
2799
2786
  ), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2800
2787
  }, Vi = ({ id: e, type: t, name: a }) => {
2801
- let r = t + "-" + e, [s, i] = x.useState(
2788
+ let r = t + "-" + e, [s, i] = g.useState(
2802
2789
  q.list[r] !== void 0
2803
2790
  );
2804
- x.useEffect(() => {
2791
+ g.useEffect(() => {
2805
2792
  i(q.list[r] !== void 0);
2806
2793
  }, [r]);
2807
2794
  let o = () => {
2808
- q.list[r] !== void 0 ? (q.del(r), delete q.list[r], jn(q.list), i(!1), me.Send({ type: "success", text: "Запись удален из закладок" })) : (q.list[r] = { id: e, name: a, type: t, link: r }, q.set(q.list[r]), jn(q.list), i(!0), me.Send({
2795
+ q.list[r] !== void 0 ? (q.del(r), delete q.list[r], jn(q.list), i(!1), fe.Send({ type: "success", text: "Запись удален из закладок" })) : (q.list[r] = { id: e, name: a, type: t, link: r }, q.set(q.list[r]), jn(q.list), i(!0), fe.Send({
2809
2796
  type: "success",
2810
2797
  text: "Запись добавлен в закладки"
2811
2798
  }));
@@ -2930,8 +2917,8 @@ H.Run = async (e) => {
2930
2917
  };
2931
2918
  let Ue = {};
2932
2919
  function eo() {
2933
- let [e, t] = x.useState([]), a = x.useRef(null);
2934
- return x.useEffect(() => {
2920
+ let [e, t] = g.useState([]), a = g.useRef(null);
2921
+ return g.useEffect(() => {
2935
2922
  }, []), Ue.set = (r) => {
2936
2923
  t([...e, r]);
2937
2924
  }, Ue.del = () => {
@@ -2951,8 +2938,8 @@ function to(e, t) {
2951
2938
  });
2952
2939
  }
2953
2940
  function no({ id: e, type: t }) {
2954
- const [a, r] = x.useState({}), [s, i] = x.useState(t);
2955
- x.useEffect(() => {
2941
+ const [a, r] = g.useState({}), [s, i] = g.useState(t);
2942
+ g.useEffect(() => {
2956
2943
  r(ke.getSelect("user")[e]);
2957
2944
  }, []), H.useListener((l) => {
2958
2945
  switch (l.type) {
@@ -3058,7 +3045,7 @@ function ro({ color: e, size: t, name: a }) {
3058
3045
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
3059
3046
  }
3060
3047
  function so() {
3061
- let [e, t] = x.useState([]);
3048
+ let [e, t] = g.useState([]);
3062
3049
  if (It.x = () => {
3063
3050
  t([]);
3064
3051
  }, It.add = (r) => {
@@ -3077,20 +3064,20 @@ function so() {
3077
3064
  s
3078
3065
  )) });
3079
3066
  }
3080
- let nt = {}, Dt = {}, Nt = "ru";
3067
+ let at = {}, Dt = {}, Nt = "ru";
3081
3068
  const io = (e, t) => {
3082
3069
  Dt = e, t ? Nt = t : Nt = Object.keys(e)[0];
3083
- }, Kn = Ln(
3070
+ }, zn = Ln(
3084
3071
  localStorage.getItem("lang") || navigator.language
3085
3072
  ), oo = ({ children: e }) => {
3086
- const [t, a] = x.useState(
3073
+ const [t, a] = g.useState(
3087
3074
  localStorage.getItem("lang") || navigator.language
3088
3075
  );
3089
- return nt.update = a, /* @__PURE__ */ n.jsx(Kn.Provider, { value: Dt[t] || Dt[Nt], children: e });
3076
+ return at.update = a, /* @__PURE__ */ n.jsx(zn.Provider, { value: Dt[t] || Dt[Nt], children: e });
3090
3077
  }, lo = (e) => {
3091
3078
  var t;
3092
- localStorage.setItem("lang", e), (t = nt.update) == null || t.call(nt, e);
3093
- }, co = () => qa(Kn), _o = () => localStorage.getItem("lang") || navigator.language;
3079
+ localStorage.setItem("lang", e), (t = at.update) == null || t.call(at, e);
3080
+ }, co = () => qa(zn), _o = () => localStorage.getItem("lang") || navigator.language;
3094
3081
  Ln({
3095
3082
  tab: "",
3096
3083
  setTabs: (e) => {
@@ -3105,8 +3092,8 @@ function uo(e, t) {
3105
3092
  }
3106
3093
  const be = {};
3107
3094
  function fo(e, t) {
3108
- const [a, r] = x.useState(t);
3109
- return x.useEffect(() => {
3095
+ const [a, r] = g.useState(t);
3096
+ return g.useEffect(() => {
3110
3097
  if (be[e]) return be[e].push(r);
3111
3098
  be[e] = [r];
3112
3099
  }, []), [a];
@@ -3118,18 +3105,18 @@ function mo(e, t) {
3118
3105
  function ho(e, t) {
3119
3106
  be[e] && be[e].forEach((a) => a(t));
3120
3107
  }
3121
- const Ce = { setListener: uo, useListener: Ft, setEmitter: ho, useEmitter: fo, subEmitter: mo };
3108
+ const ve = { setListener: uo, useListener: Ft, setEmitter: ho, useEmitter: fo, subEmitter: mo };
3122
3109
  function po() {
3123
- let [e, t] = x.useState([]);
3124
- return Ce.useListener("form", (a) => {
3110
+ let [e, t] = g.useState([]);
3111
+ return ve.useListener("form", (a) => {
3125
3112
  t([a]);
3126
3113
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
3127
3114
  }
3128
3115
  const go = ({ children: e, lang: t }) => Rs(
3129
3116
  /* @__PURE__ */ n.jsxs(oo, { children: [
3130
3117
  /* @__PURE__ */ n.jsx(Ne.Init, {}),
3131
- /* @__PURE__ */ n.jsx(me.Init, {}),
3132
- /* @__PURE__ */ n.jsx(ze.Init, {}),
3118
+ /* @__PURE__ */ n.jsx(fe.Init, {}),
3119
+ /* @__PURE__ */ n.jsx(Ke.Init, {}),
3133
3120
  /* @__PURE__ */ n.jsx(kt.Init, {}),
3134
3121
  /* @__PURE__ */ n.jsx(Yi, {}),
3135
3122
  /* @__PURE__ */ n.jsx(so, {}),
@@ -3145,7 +3132,7 @@ const go = ({ children: e, lang: t }) => Rs(
3145
3132
  payment: Co
3146
3133
  };
3147
3134
  function yo() {
3148
- let [e, t] = x.useState({});
3135
+ let [e, t] = g.useState({});
3149
3136
  return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: jo.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
3150
3137
  }
3151
3138
  const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className: "app", children: [
@@ -3154,7 +3141,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3154
3141
  /* @__PURE__ */ n.jsx(vo, {}),
3155
3142
  /* @__PURE__ */ n.jsx(go, {}),
3156
3143
  e
3157
- ] }), wo = "_btn_294gf_1", ko = "_confirm_294gf_15", bo = "_cancel_294gf_20", So = "_action_294gf_25", Eo = "_disabled_294gf_30", Io = "_m_294gf_44", Do = "_l_294gf_48", tt = {
3144
+ ] }), wo = "_btn_294gf_1", ko = "_confirm_294gf_15", bo = "_cancel_294gf_20", So = "_action_294gf_25", Eo = "_disabled_294gf_30", Io = "_m_294gf_44", Do = "_l_294gf_48", nt = {
3158
3145
  btn: wo,
3159
3146
  confirm: ko,
3160
3147
  cancel: bo,
@@ -3175,28 +3162,28 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3175
3162
  after: l,
3176
3163
  before: _,
3177
3164
  label: c,
3178
- onRef: h,
3179
- awaitText: m = "Ожидайте"
3165
+ onRef: m,
3166
+ awaitText: f = "Ожидайте"
3180
3167
  }) => {
3181
- let [g, v] = x.useState(!1);
3182
- const f = (y) => {
3168
+ let [h, x] = g.useState(!1);
3169
+ const p = (y) => {
3183
3170
  if (e) return e();
3184
- g || (t ? (v(!0), t(v)) : y.preventDefault());
3171
+ h || (t ? (x(!0), t(x)) : y.preventDefault());
3185
3172
  };
3186
- let p = {};
3187
- return (o || g) && (p.disabled = !0), /* @__PURE__ */ n.jsx(
3173
+ let v = {};
3174
+ return (o || h) && (v.disabled = !0), /* @__PURE__ */ n.jsx(
3188
3175
  "button",
3189
3176
  {
3190
- ...p,
3191
- ref: h,
3177
+ ...v,
3178
+ ref: m,
3192
3179
  className: [
3193
- tt.btn,
3194
- g ? tt.disabled : tt[r],
3195
- a && tt[a],
3180
+ nt.btn,
3181
+ h ? nt.disabled : nt[r],
3182
+ a && nt[a],
3196
3183
  d
3197
3184
  ].join(" "),
3198
- onClick: f,
3199
- children: g ? m : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3185
+ onClick: p,
3186
+ children: h ? f : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3200
3187
  _ || "",
3201
3188
  " ",
3202
3189
  c,
@@ -3217,7 +3204,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3217
3204
  )) }) }), To = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t }), Lo = "_tabs_1i88v_1", Mo = "_tab_1i88v_1", In = {
3218
3205
  tabs: Lo,
3219
3206
  tab: Mo
3220
- }, zn = ({ list: e = [], active: t, onTab: a }) => {
3207
+ }, Kn = ({ list: e = [], active: t, onTab: a }) => {
3221
3208
  const r = (s) => {
3222
3209
  if (a) return a(s);
3223
3210
  ee.setTabs(s);
@@ -3240,7 +3227,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3240
3227
  className: r,
3241
3228
  after: s
3242
3229
  }) => {
3243
- const [i, o] = x.useState(t);
3230
+ const [i, o] = g.useState(t);
3244
3231
  return /* @__PURE__ */ n.jsxs("div", { className: ["tabs-button", r].join(" "), children: [
3245
3232
  /* @__PURE__ */ n.jsx("ul", { children: e.map((d) => /* @__PURE__ */ n.jsx(
3246
3233
  $o,
@@ -3273,7 +3260,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3273
3260
  ]
3274
3261
  }
3275
3262
  );
3276
- }, rd = { List: Ro, Lite: zn, Button: Bo }, Fo = ({
3263
+ }, rd = { List: Ro, Lite: Kn, Button: Bo }, Fo = ({
3277
3264
  title: e = "",
3278
3265
  button: t,
3279
3266
  description: a = "",
@@ -3296,7 +3283,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3296
3283
  ] }), Po = "_setting_dva4m_2", Ao = {
3297
3284
  setting: Po
3298
3285
  }, Oo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Ao.setting, children: e }), Zo = ({ label: e, children: t }) => {
3299
- let [a, r] = x.useState(!1);
3286
+ let [a, r] = g.useState(!1);
3300
3287
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
3301
3288
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
3302
3289
  /* @__PURE__ */ n.jsx("dt", { children: e }),
@@ -3316,10 +3303,10 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3316
3303
  },
3317
3304
  "aria-checked": e ? "true" : "false"
3318
3305
  }
3319
- )), Uo = { Switch: Wo }, Ko = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3306
+ )), Uo = { Switch: Wo }, zo = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3320
3307
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3321
3308
  /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(Uo.Switch, { onClick: t, active: a }) })
3322
- ] }) }), zo = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3309
+ ] }) }), Ko = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3323
3310
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3324
3311
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
3325
3312
  ] }) }), Yo = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
@@ -3331,7 +3318,7 @@ const ad = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("div", { className:
3331
3318
  ] }) }), qo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3332
3319
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3333
3320
  /* @__PURE__ */ n.jsx("dd", { children: t })
3334
- ] }) }), Jo = { Accordion: Zo, Button: Go, Switch: Ko, Info: Yo, Select: zo, Component: Ho, Node: qo };
3321
+ ] }) }), Jo = { Accordion: Zo, Button: Go, Switch: zo, Info: Yo, Select: Ko, Component: Ho, Node: qo };
3335
3322
  function Yn({ list: e, onClick: t, active: a, size: r, view: s }) {
3336
3323
  return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
3337
3324
  Xo,
@@ -3349,7 +3336,7 @@ Yn.defaultProps = { size: "M", view: "H" };
3349
3336
  const sd = { Section: Fo, Main: Oo, Item: Jo, Tabs: Yn };
3350
3337
  function Vo({ value: e, background: t, gradient: a }) {
3351
3338
  let r = 835.24, s = r - e / 100 * r;
3352
- const i = x.useId();
3339
+ const i = g.useId();
3353
3340
  return /* @__PURE__ */ n.jsxs(
3354
3341
  "svg",
3355
3342
  {
@@ -3444,7 +3431,7 @@ il.setAttribute = (e, t) => {
3444
3431
  };
3445
3432
  function ol({ items: e, list: t, icons: a, isSetting: r = !0 }) {
3446
3433
  const s = () => {
3447
- ze.Send(
3434
+ Ke.Send(
3448
3435
  { title: "Выйти", text: "Вы уверене что хотиет выйти" },
3449
3436
  () => {
3450
3437
  ke.Logaut();
@@ -3487,10 +3474,10 @@ const ll = ({ items: e, i: t, icons: a }) => t[0] === "#" ? /* @__PURE__ */ n.js
3487
3474
  ]
3488
3475
  }
3489
3476
  ), cl = ({ icons: e }) => {
3490
- const [t, a] = x.useState(!1), r = x.useRef(null), s = async () => {
3477
+ const [t, a] = g.useState(!1), r = g.useRef(null), s = async () => {
3491
3478
  r.current && (await r.current.prompt(), a(!1));
3492
3479
  };
3493
- return x.useEffect(() => {
3480
+ return g.useEffect(() => {
3494
3481
  window.addEventListener("appinstalled", (i) => {
3495
3482
  }), window.addEventListener("beforeinstallprompt", async (i) => {
3496
3483
  i.preventDefault(), r.current = i, a(!0);
@@ -3508,38 +3495,38 @@ function qn({
3508
3495
  searchParams: s = ["p01", "p02", "p03"],
3509
3496
  ...i
3510
3497
  }) {
3511
- const [o, d] = x.useState([]), [l, _] = x.useState([]), [c, h] = x.useState(!1), m = async () => {
3512
- let g = await Ke.fetch(e, t);
3513
- g.data && g.data.length > 0 && (d(g.data), _(g.data)), h(!0);
3498
+ const [o, d] = g.useState([]), [l, _] = g.useState([]), [c, m] = g.useState(!1), f = async () => {
3499
+ let h = await ze.fetch(e, t);
3500
+ h.data && h.data.length > 0 && (d(h.data), _(h.data)), m(!0);
3514
3501
  };
3515
- return Ce.useListener("list_children", (g) => {
3516
- if (g.action === "edit") {
3517
- let v = l.map(
3518
- (f) => f.id === g.id ? Object.assign(f, { [g.name]: g.value }) : f
3502
+ return ve.useListener("list_children", (h) => {
3503
+ if (h.action === "edit") {
3504
+ let x = l.map(
3505
+ (p) => p.id === h.id ? Object.assign(p, { [h.name]: h.value }) : p
3519
3506
  );
3520
- d(v), _(v);
3507
+ d(x), _(x);
3521
3508
  }
3522
- if (g.action === "delete") {
3523
- let v = l.filter((f) => f.id !== g.id);
3524
- d(v), _(v);
3509
+ if (h.action === "delete") {
3510
+ let x = l.filter((p) => p.id !== h.id);
3511
+ d(x), _(x);
3525
3512
  }
3526
- }), Ce.useListener("search", (g) => {
3513
+ }), ve.useListener("search", (h) => {
3527
3514
  d(
3528
- l.filter((v) => ("" + s.map((p) => v[p]).toString()).toLowerCase().includes(g.toLowerCase()))
3515
+ l.filter((x) => ("" + s.map((v) => x[v]).toString()).toLowerCase().includes(h.toLowerCase()))
3529
3516
  );
3530
- }), x.useEffect(() => {
3531
- m(), a && Ce.setListener("button", a);
3532
- }, []), c && o.length === 0 ? /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: r }) : /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: o.map((g, v) => /* @__PURE__ */ n.jsx(i.item, { data: g, count: v + 1 }, g.id)) });
3517
+ }), g.useEffect(() => {
3518
+ f(), a && ve.setListener("button", a);
3519
+ }, []), c && o.length === 0 ? /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: r }) : /* @__PURE__ */ n.jsx("ul", { className: "list-body", children: o.map((h, x) => /* @__PURE__ */ n.jsx(i.item, { data: h, count: x + 1 }, h.id)) });
3533
3520
  }
3534
3521
  const cd = { Menu: ol, List: qn }, dl = "_sort_1yrvt_1", _l = {
3535
3522
  sort: dl
3536
3523
  };
3537
- let st = {};
3524
+ let it = {};
3538
3525
  function ul(e, t) {
3539
3526
  switch (t.type) {
3540
3527
  case "active":
3541
3528
  let a = "<";
3542
- return e.active === t.data && (a = e.sort === "<" ? ">" : "<"), st.get({ active: t.data, sort: a }, !1), Gn({ active: t.data, sort: a }), {
3529
+ return e.active === t.data && (a = e.sort === "<" ? ">" : "<"), it.get({ active: t.data, sort: a }, !1), Gn({ active: t.data, sort: a }), {
3543
3530
  ...e,
3544
3531
  active: t.data,
3545
3532
  sort: a
@@ -3549,7 +3536,7 @@ function ul(e, t) {
3549
3536
  }
3550
3537
  }
3551
3538
  function fl() {
3552
- const [e, t] = x.useReducer(
3539
+ const [e, t] = g.useReducer(
3553
3540
  ul,
3554
3541
  bt() === void 0 ? { active: 1, sort: "<" } : bt()
3555
3542
  );
@@ -3581,10 +3568,10 @@ function fl() {
3581
3568
  ] });
3582
3569
  }
3583
3570
  function ml(e) {
3584
- st.get = e;
3571
+ it.get = e;
3585
3572
  }
3586
3573
  function hl(e) {
3587
- st.set(e);
3574
+ it.set(e);
3588
3575
  }
3589
3576
  function pl(e, t, a) {
3590
3577
  let r = 1, s = 0, i = {}, o = 50;
@@ -3606,31 +3593,31 @@ function pl(e, t, a) {
3606
3593
  }), { data: i };
3607
3594
  }
3608
3595
  function gl(e) {
3609
- st.count(e);
3596
+ it.count(e);
3610
3597
  }
3611
- const dd = { Init: fl, useValue: ml, Set: hl, Run: pl, Count: gl }, at = {}, Jn = {};
3598
+ const dd = { Init: fl, useValue: ml, Set: hl, Run: pl, Count: gl }, rt = {}, Jn = {};
3612
3599
  function xl(e) {
3613
- const [t, a] = x.useState({}), r = async (s) => {
3600
+ const [t, a] = g.useState({}), r = async (s) => {
3614
3601
  a(
3615
- Object.keys(at).reduce((i, o) => (i ? i[o] = at[o].all : i = {}, i), {})
3602
+ Object.keys(rt).reduce((i, o) => (i ? i[o] = rt[o].all : i = {}, i), {})
3616
3603
  );
3617
3604
  };
3618
- return x.useEffect(() => {
3619
- e.forEach((s) => at[s] = { all: 0 }), Jn.menu = r, r();
3605
+ return g.useEffect(() => {
3606
+ e.forEach((s) => rt[s] = { all: 0 }), Jn.menu = r, r();
3620
3607
  }, [e]), t;
3621
3608
  }
3622
3609
  function vl(e, t) {
3623
3610
  switch (typeof t) {
3624
3611
  case "number":
3625
- at[e].all += t, Jn.menu();
3612
+ rt[e].all += t, Jn.menu();
3626
3613
  break;
3627
3614
  }
3628
3615
  }
3629
3616
  const _d = { useMenu: xl, setUpdate: vl };
3630
3617
  class Cl {
3631
3618
  constructor(t = "el", a = "db") {
3632
- pt(this, "storeName");
3633
- pt(this, "_dbp");
3619
+ gt(this, "storeName");
3620
+ gt(this, "_dbp");
3634
3621
  this.storeName = a, this._dbp = new Promise((r, s) => {
3635
3622
  const i = indexedDB.open(t, 1);
3636
3623
  i.onerror = () => s(i.error), i.onsuccess = () => r(i.result), i.onupgradeneeded = () => {
@@ -3650,7 +3637,7 @@ class Cl {
3650
3637
  let vt, X = {};
3651
3638
  const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withIDBStore("readwrite", (r) => {
3652
3639
  X[e] = t, r.put(A.enCode(t), e);
3653
- }), je = (e, t = Be()) => X[e] === void 0 ? new Promise((a, r) => {
3640
+ }), Ce = (e, t = Be()) => X[e] === void 0 ? new Promise((a, r) => {
3654
3641
  let s;
3655
3642
  t._withIDBStore("readonly", (i) => {
3656
3643
  s = i.get(e);
@@ -3673,26 +3660,26 @@ const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withID
3673
3660
  };
3674
3661
  }).then(() => t);
3675
3662
  }, wl = (e, t, a = [], r = {}) => {
3676
- let s = a.length !== 0, i = [], o = r.sort, d = Object.keys(r).length !== 0, l = Object.keys(r), _ = Object.keys(e), c = [], h = (g) => {
3677
- let v = "";
3678
- if (a.forEach((f) => {
3679
- v += t[g][f];
3663
+ let s = a.length !== 0, i = [], o = r.sort, d = Object.keys(r).length !== 0, l = Object.keys(r), _ = Object.keys(e), c = [], m = (h) => {
3664
+ let x = "";
3665
+ if (a.forEach((p) => {
3666
+ x += t[h][p];
3680
3667
  }), d) {
3681
- let f = {};
3682
- l.forEach((p) => {
3683
- f[p] = t[g][p];
3668
+ let p = {};
3669
+ l.forEach((v) => {
3670
+ p[v] = t[h][v];
3684
3671
  });
3685
- for (let p in o)
3686
- t[g][o[p]] === void 0 && (Lt(), location.reload()), p === "s1" && (f[p] = new Date(t[g][o[p]]).getTime()), p === "s2" && (f[p] = t[g][o[p]]), p === "s3" && (f[p] = t[g][o[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3687
- i.push({ id: g, text: v, ...f });
3672
+ for (let v in o)
3673
+ t[h][o[v]] === void 0 && (Lt(), location.reload()), v === "s1" && (p[v] = new Date(t[h][o[v]]).getTime()), v === "s2" && (p[v] = t[h][o[v]]), v === "s3" && (p[v] = t[h][o[v]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3674
+ i.push({ id: h, text: x, ...p });
3688
3675
  } else
3689
- i.push({ id: g, text: v });
3690
- }, m = (g) => {
3676
+ i.push({ id: h, text: x });
3677
+ }, f = (h) => {
3691
3678
  };
3692
- return _.forEach((g) => {
3693
- c.push(t[g]);
3694
- }), c.forEach((g) => {
3695
- g === void 0 ? (Lt(), location.reload()) : (s && h(g.id), d && m(g.id));
3679
+ return _.forEach((h) => {
3680
+ c.push(t[h]);
3681
+ }), c.forEach((h) => {
3682
+ h === void 0 ? (Lt(), location.reload()) : (s && m(h.id), d && f(h.id));
3696
3683
  }), { list: c, search: i, filter: r };
3697
3684
  }, kl = (e, t, a, r = Be()) => {
3698
3685
  if (X[e] === void 0)
@@ -3717,30 +3704,30 @@ const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withID
3717
3704
  });
3718
3705
  }, bl = async (e, t, a, r) => {
3719
3706
  let s, i;
3720
- i = await je(a), i[e.id] = e, await Se(a, i), s !== null && (s = await je(t), s[e.id] = e.eDate, await Se(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3707
+ i = await Ce(a), i[e.id] = e, await Se(a, i), s !== null && (s = await Ce(t), s[e.id] = e.eDate, await Se(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3721
3708
  }, Sl = async (e, t, a, r) => {
3722
- let s = await je(t), i = await je(a);
3709
+ let s = await Ce(t), i = await Ce(a);
3723
3710
  for (let o in e)
3724
3711
  i[o] = e[o], s[o] = e[o].eDate;
3725
3712
  await Se(t, s), await Se(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
3726
3713
  }, El = async (e, t, a, r) => {
3727
- let s = await je(t), i = await je(a);
3714
+ let s = await Ce(t), i = await Ce(a);
3728
3715
  e.forEach((o) => delete s[o]), await Se(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3729
3716
  }, Il = async (e, t, a) => {
3730
- let r = await je(t);
3717
+ let r = await Ce(t);
3731
3718
  e.forEach((s) => delete r[s]), await Se(t, r);
3732
3719
  }, Dl = async (e, t, a) => {
3733
- let r = await je(t);
3720
+ let r = await Ce(t);
3734
3721
  e.forEach((s) => r[s.id] = s.eDate), await Se(t, r);
3735
3722
  }, Nl = async (e, t, a) => {
3736
- let r = await je(t);
3723
+ let r = await Ce(t);
3737
3724
  if (a !== void 0)
3738
3725
  a({ type: "load", base: r });
3739
3726
  else
3740
3727
  return r[e];
3741
3728
  }, Rl = (e) => X[e], ud = {
3742
3729
  id: Nl,
3743
- get: je,
3730
+ get: Ce,
3744
3731
  set: Se,
3745
3732
  add: bl,
3746
3733
  del: jl,
@@ -3776,7 +3763,7 @@ const Be = () => (vt || (vt = new Cl()), vt), Se = (e, t, a = Be()) => a._withID
3776
3763
  ul: Bl
3777
3764
  };
3778
3765
  function Xn({ children: e }) {
3779
- return /* @__PURE__ */ n.jsx("ul", { className: ie.ul, children: e });
3766
+ return /* @__PURE__ */ n.jsx("ul", { className: se.ul, children: e });
3780
3767
  }
3781
3768
  function Fl(e, t) {
3782
3769
  switch (t.type) {
@@ -3817,7 +3804,7 @@ function Pl({
3817
3804
  className: a,
3818
3805
  ...r
3819
3806
  }) {
3820
- const s = x.useRef(null), [i, o] = x.useReducer(Fl, {
3807
+ const s = g.useRef(null), [i, o] = g.useReducer(Fl, {
3821
3808
  load: !1,
3822
3809
  list: [],
3823
3810
  data: {},
@@ -3825,7 +3812,7 @@ function Pl({
3825
3812
  wait: !1,
3826
3813
  size: 0
3827
3814
  });
3828
- x.useEffect(() => {
3815
+ g.useEffect(() => {
3829
3816
  s.current.scrollTop = 0, e !== null && o({ type: "load", load: !0, data: e });
3830
3817
  }, [t]);
3831
3818
  let d = () => {
@@ -3853,17 +3840,17 @@ const hd = { Widget: Hi }, Vn = ({ onClick: e, active: t }) => (t = !!t, /* @__P
3853
3840
  "aria-checked": `${t ? "true" : "false"}`
3854
3841
  }
3855
3842
  ));
3856
- let K = {};
3857
- K.KeyDown = (e) => {
3843
+ let z = {};
3844
+ z.KeyDown = (e) => {
3858
3845
  e.key === "Enter" && e.preventDefault();
3859
3846
  };
3860
- K.PasteOne = (e) => {
3847
+ z.PasteOne = (e) => {
3861
3848
  e.preventDefault(), navigator.clipboard.readText().then((t) => {
3862
3849
  t = t.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, t);
3863
3850
  }).catch((t) => {
3864
3851
  });
3865
3852
  };
3866
- K.Paste = (e, t) => {
3853
+ z.Paste = (e, t) => {
3867
3854
  t.preventDefault(), navigator.clipboard.readText().then((a) => {
3868
3855
  if (e) {
3869
3856
  let r = t.target.textContent.length;
@@ -3878,13 +3865,13 @@ K.Paste = (e, t) => {
3878
3865
  }).catch((a) => {
3879
3866
  });
3880
3867
  };
3881
- K.Focus = (e) => {
3868
+ z.Focus = (e) => {
3882
3869
  e.target.textContent.length === 0 && (e.target.innerHTML = "<br>");
3883
3870
  };
3884
- K.Blur = (e) => {
3871
+ z.Blur = (e) => {
3885
3872
  e.target.scrollLeft = 0, e.target.querySelector("br") !== null && e.target.querySelector("br").remove();
3886
3873
  };
3887
- K.ContentEditable = ke.isBrowser("Firefox") ? "true" : "plaintext-only";
3874
+ z.ContentEditable = ke.isBrowser("Firefox") ? "true" : "plaintext-only";
3888
3875
  function He({
3889
3876
  id: e,
3890
3877
  value: t,
@@ -3897,36 +3884,36 @@ function He({
3897
3884
  edit: l = !0,
3898
3885
  active: _ = !0,
3899
3886
  after: c = "",
3900
- before: h = "",
3901
- show: m = !0,
3902
- maxLength: g,
3903
- onSave: v,
3904
- className: f = "",
3905
- isCopy: p = !0,
3887
+ before: m = "",
3888
+ show: f = !0,
3889
+ maxLength: h,
3890
+ onSave: x,
3891
+ className: p = "",
3892
+ isCopy: v = !0,
3906
3893
  isReload: y = !1
3907
3894
  }) {
3908
- let j = !!(d && (t === "" || t === void 0)), S = (E) => {
3895
+ let j = !!(d && (t === "" || t === void 0)), I = (S) => {
3909
3896
  a && a({
3910
- value: E.target.textContent.trim(),
3897
+ value: S.target.textContent.trim(),
3911
3898
  name: r,
3912
3899
  reload: y
3913
3900
  });
3914
- }, N = (E) => {
3915
- g && E.target.textContent.trim().length >= g && E.key !== "Backspace" && E.preventDefault(), E.key === "Enter" && E.preventDefault();
3916
- }, R = (E) => {
3917
- p && (E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.trim()).then(
3901
+ }, N = (S) => {
3902
+ h && S.target.textContent.trim().length >= h && S.key !== "Backspace" && S.preventDefault(), S.key === "Enter" && S.preventDefault();
3903
+ }, R = (S) => {
3904
+ v && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
3918
3905
  function() {
3919
- me.Copy("Данные в буфер обмене");
3906
+ fe.Copy("Данные в буфер обмене");
3920
3907
  },
3921
3908
  function(L) {
3922
3909
  }
3923
3910
  ));
3924
- }, I = (E) => {
3925
- E.preventDefault(), navigator.clipboard.readText().then((L) => {
3926
- if (g) {
3927
- let D = E.target.textContent.length;
3928
- if (D >= g) return;
3929
- g -= D, L = L.slice(0, g);
3911
+ }, D = (S) => {
3912
+ S.preventDefault(), navigator.clipboard.readText().then((L) => {
3913
+ if (h) {
3914
+ let E = S.target.textContent.length;
3915
+ if (E >= h) return;
3916
+ h -= E, L = L.slice(0, h);
3930
3917
  }
3931
3918
  window.document.execCommand(
3932
3919
  "insertText",
@@ -3936,27 +3923,27 @@ function He({
3936
3923
  }).catch((L) => {
3937
3924
  });
3938
3925
  };
3939
- if (!(l && _) && !m || !(l && _) && j) return "";
3926
+ if (!(l && _) && !f || !(l && _) && j) return "";
3940
3927
  const C = {};
3941
- C.field = "input", f && (C.className = f);
3928
+ C.field = "input", p && (C.className = p);
3942
3929
  const k = {};
3943
3930
  s && (k.placeholder = s), l && _ && (k.edit = "");
3944
- const F = (E) => {
3945
- K.Blur(E), v == null || v({ value: E.target.textContent.trim(), name: r });
3931
+ const F = (S) => {
3932
+ z.Blur(S), x == null || x({ value: S.target.textContent.trim(), name: r });
3946
3933
  };
3947
3934
  return /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
3948
3935
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
3949
- h,
3936
+ m,
3950
3937
  /* @__PURE__ */ n.jsx(
3951
3938
  "dd",
3952
3939
  {
3953
- onPaste: I,
3954
- onInput: S,
3940
+ onPaste: D,
3941
+ onInput: I,
3955
3942
  onBlur: F,
3956
3943
  onKeyDown: N,
3957
3944
  onContextMenu: R,
3958
3945
  spellCheck: "true",
3959
- contentEditable: l && _ ? K.ContentEditable : "false",
3946
+ contentEditable: l && _ ? z.ContentEditable : "false",
3960
3947
  suppressContentEditableWarning: !0,
3961
3948
  ...k,
3962
3949
  children: t
@@ -3967,7 +3954,7 @@ function He({
3967
3954
  ] });
3968
3955
  }
3969
3956
  function Qn({ onClick: e, onSend: t, name: a, onRef: r }) {
3970
- let [s, i] = x.useState(!1);
3957
+ let [s, i] = g.useState(!1);
3971
3958
  const o = () => {
3972
3959
  if (e) return e();
3973
3960
  s || (i(!0), t && t(i));
@@ -3995,44 +3982,44 @@ function ea({
3995
3982
  active: l = !0,
3996
3983
  placeholder: _ = "Введите сообщение"
3997
3984
  }) {
3998
- const c = x.useRef({
3985
+ const c = g.useRef({
3999
3986
  value: e,
4000
3987
  timerId: null,
4001
3988
  shift: !1,
4002
3989
  send: !0
4003
- }), h = () => {
3990
+ }), m = () => {
4004
3991
  c.current.value.length > 0 ? c.current.send && (a(!0), c.current.send = !1, c.current.timerId = setTimeout(() => {
4005
3992
  c.current.send = !0;
4006
3993
  }, 3e3)) : a(!1);
4007
- }, m = (j) => {
4008
- c.current.value = j.target.textContent, h();
4009
- }, g = (j) => {
3994
+ }, f = (j) => {
3995
+ c.current.value = j.target.textContent, m();
3996
+ }, h = (j) => {
4010
3997
  j.keyCode === 16 && (c.current.shift = !0), j.keyCode === 13 && !c.current.shift && (j.preventDefault(), c.current.value.length !== 0 && (j.target.textContent = "", r && r(c.current.value), t && t(c.current.value), c.current.value = "", a(!1)));
4011
- }, v = (j) => {
3998
+ }, x = (j) => {
4012
3999
  j.keyCode === 16 && (c.current.shift = !1);
4013
- }, f = (j) => {
4014
- j.preventDefault(), navigator.clipboard.readText().then((S) => {
4000
+ }, p = (j) => {
4001
+ j.preventDefault(), navigator.clipboard.readText().then((I) => {
4015
4002
  if (o) {
4016
4003
  let N = j.target.textContent.length;
4017
4004
  if (N >= o) return;
4018
- o -= N, S = S.slice(0, o);
4005
+ o -= N, I = I.slice(0, o);
4019
4006
  }
4020
- window.document.execCommand("insertText", !1, S);
4021
- }).catch((S) => {
4007
+ window.document.execCommand("insertText", !1, I);
4008
+ }).catch((I) => {
4022
4009
  });
4023
- }, p = () => {
4010
+ }, v = () => {
4024
4011
  a(!1);
4025
4012
  }, y = {
4026
4013
  spellCheck: "true"
4027
4014
  };
4028
- return _ && (y.placeholder = _), d && l && (y.contentEditable = K.ContentEditable), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
4015
+ return _ && (y.placeholder = _), d && l && (y.contentEditable = z.ContentEditable), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
4029
4016
  "dd",
4030
4017
  {
4031
- onPaste: f,
4032
- onInput: m,
4033
- onKeyUp: v,
4034
- onKeyDown: g,
4035
- onBlur: p,
4018
+ onPaste: p,
4019
+ onInput: f,
4020
+ onKeyUp: x,
4021
+ onKeyDown: h,
4022
+ onBlur: v,
4036
4023
  ...y,
4037
4024
  suppressContentEditableWarning: !0,
4038
4025
  children: e
@@ -4058,7 +4045,7 @@ function ta(e) {
4058
4045
  onPaste: d,
4059
4046
  onInput: i,
4060
4047
  onKeyDown: o,
4061
- contentEditable: a && r ? K.ContentEditable : "false",
4048
+ contentEditable: a && r ? z.ContentEditable : "false",
4062
4049
  "data-placeholder": s,
4063
4050
  suppressContentEditableWarning: !0,
4064
4051
  children: e.value
@@ -4073,44 +4060,44 @@ function na({
4073
4060
  placeholder: r = "",
4074
4061
  name: s
4075
4062
  }) {
4076
- let i = (v, f) => Number(Math.round(v + Math.random() * (f - v))), o = x.useRef(null), d = x.useRef(null), l = i(1e4, 99999), _ = (v) => {
4077
- v.key !== "Backspace" && (v.key === "Enter" && v.preventDefault(), v.target.textContent.length === 5 && v.preventDefault(), /\d/.test(v.key) || v.preventDefault());
4078
- }, c = (v) => {
4079
- t({ value: Number(v.target.textContent) === l, name: s });
4080
- }, h = (v) => {
4081
- v.preventDefault(), navigator.clipboard.readText().then((f) => {
4063
+ let i = (x, p) => Number(Math.round(x + Math.random() * (p - x))), o = g.useRef(null), d = g.useRef(null), l = i(1e4, 99999), _ = (x) => {
4064
+ x.key !== "Backspace" && (x.key === "Enter" && x.preventDefault(), x.target.textContent.length === 5 && x.preventDefault(), /\d/.test(x.key) || x.preventDefault());
4065
+ }, c = (x) => {
4066
+ t({ value: Number(x.target.textContent) === l, name: s });
4067
+ }, m = (x) => {
4068
+ x.preventDefault(), navigator.clipboard.readText().then((p) => {
4082
4069
  if (a) {
4083
- let p = v.target.textContent.length;
4084
- if (p >= a) return;
4085
- a -= p, f = f.slice(0, a);
4070
+ let v = x.target.textContent.length;
4071
+ if (v >= a) return;
4072
+ a -= v, p = p.slice(0, a);
4086
4073
  }
4087
4074
  window.document.execCommand(
4088
4075
  "insertText",
4089
4076
  !1,
4090
- f.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
4077
+ p.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
4091
4078
  );
4092
- }).catch((f) => {
4079
+ }).catch((p) => {
4093
4080
  });
4094
4081
  };
4095
- x.useEffect(() => {
4096
- const v = o.current, f = v.getContext("2d");
4097
- f.clearRect(0, 0, v.width, v.height), f.font = "30px brush script mt", f.fillStyle = "#eee", f.textAlign = "center", f.fillText(l, 50, 27), d.current.textContent = "";
4082
+ g.useEffect(() => {
4083
+ const x = o.current, p = x.getContext("2d");
4084
+ p.clearRect(0, 0, x.width, x.height), p.font = "30px brush script mt", p.fillStyle = "#eee", p.textAlign = "center", p.fillText(l, 50, 27), d.current.textContent = "";
4098
4085
  }, [l]);
4099
- const m = {};
4100
- m.field = "captcha";
4101
- const g = {};
4102
- return r && (g.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...m, children: [
4086
+ const f = {};
4087
+ f.field = "captcha";
4088
+ const h = {};
4089
+ return r && (h.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...f, children: [
4103
4090
  /* @__PURE__ */ n.jsx(
4104
4091
  "dd",
4105
4092
  {
4106
4093
  ref: d,
4107
- onPaste: h,
4094
+ onPaste: m,
4108
4095
  onInput: c,
4109
- onBlur: K.Blur,
4096
+ onBlur: z.Blur,
4110
4097
  onKeyDown: _,
4111
- contentEditable: K.ContentEditable,
4098
+ contentEditable: z.ContentEditable,
4112
4099
  suppressContentEditableWarning: !0,
4113
- ...g
4100
+ ...h
4114
4101
  }
4115
4102
  ),
4116
4103
  /* @__PURE__ */ n.jsx("canvas", { ref: o, width: "100", height: "35" })
@@ -4134,29 +4121,29 @@ function aa({
4134
4121
  n5: "",
4135
4122
  n6: "",
4136
4123
  code: ""
4137
- }, _ = (f) => {
4138
- if (f.preventDefault(), !r) return;
4139
- f.target.textContent = f.target.textContent.slice(-1).replace(/[^+\d]/g, "");
4140
- let p = window.getSelection(), y = f.target.textContent.length;
4141
- if (l[f.target.id] = f.target.textContent, l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, p.collapse(f.target.firstChild, 1), y === 0) {
4142
- f.target.blur(), f.target.focus();
4124
+ }, _ = (p) => {
4125
+ if (p.preventDefault(), !r) return;
4126
+ p.target.textContent = p.target.textContent.slice(-1).replace(/[^+\d]/g, "");
4127
+ let v = window.getSelection(), y = p.target.textContent.length;
4128
+ if (l[p.target.id] = p.target.textContent, l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, v.collapse(p.target.firstChild, 1), y === 0) {
4129
+ p.target.blur(), p.target.focus();
4143
4130
  return;
4144
4131
  }
4145
- f.target.nextSibling != null && f.target.nextSibling.focus();
4146
- }, c = (f) => {
4147
- if (!r) return f.preventDefault();
4148
- if (f.key === "Enter" && f.preventDefault(), f.key === "Backspace") {
4149
- if (f.preventDefault(), f.target.textContent = "", l[f.target.id] = "", f.target.previousSibling != null) {
4150
- let p = f.target.previousSibling.id.slice(1);
4151
- f.target.previousSibling.textContent = "", l["n" + p] = "", f.target.previousSibling.focus();
4132
+ p.target.nextSibling != null && p.target.nextSibling.focus();
4133
+ }, c = (p) => {
4134
+ if (!r) return p.preventDefault();
4135
+ if (p.key === "Enter" && p.preventDefault(), p.key === "Backspace") {
4136
+ if (p.preventDefault(), p.target.textContent = "", l[p.target.id] = "", p.target.previousSibling != null) {
4137
+ let v = p.target.previousSibling.id.slice(1);
4138
+ p.target.previousSibling.textContent = "", l["n" + v] = "", p.target.previousSibling.focus();
4152
4139
  }
4153
4140
  l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6;
4154
4141
  }
4155
- }, h = (f) => {
4156
- if (!r) return f.preventDefault();
4142
+ }, m = (p) => {
4143
+ if (!r) return p.preventDefault();
4157
4144
  if (s)
4158
4145
  i && i({ value: l.code, name: d });
4159
- else if (l.code.length === 6 && (f.target.blur(), i && i({ value: l.code, name: d }), o)) {
4146
+ else if (l.code.length === 6 && (p.target.blur(), i && i({ value: l.code, name: d }), o)) {
4160
4147
  l = {
4161
4148
  n1: "",
4162
4149
  n2: "",
@@ -4166,25 +4153,25 @@ function aa({
4166
4153
  n6: "",
4167
4154
  code: ""
4168
4155
  };
4169
- for (let p = 1; p <= 6; p++) {
4170
- let y = document.getElementById("n" + p);
4156
+ for (let v = 1; v <= 6; v++) {
4157
+ let y = document.getElementById("n" + v);
4171
4158
  y && (y.textContent = "");
4172
4159
  }
4173
4160
  }
4174
- }, m = (f) => {
4175
- f.target.textContent = "";
4176
- }, g = (f) => {
4177
- f.preventDefault(), navigator.clipboard.readText().then((p) => {
4161
+ }, f = (p) => {
4162
+ p.target.textContent = "";
4163
+ }, h = (p) => {
4164
+ p.preventDefault(), navigator.clipboard.readText().then((v) => {
4178
4165
  var N;
4179
4166
  var y = /\d+/g;
4180
- let j = (N = p.match(y)) == null ? void 0 : N.toString();
4167
+ let j = (N = v.match(y)) == null ? void 0 : N.toString();
4181
4168
  if (!j) return;
4182
- let S = j.split("");
4183
- for (let R = 1; R <= S.length; R++) {
4184
- let I = document.getElementById("n" + R);
4185
- I && (I.textContent = S[R - 1], l["n" + R] = S[R - 1]);
4169
+ let I = j.split("");
4170
+ for (let R = 1; R <= I.length; R++) {
4171
+ let D = document.getElementById("n" + R);
4172
+ D && (D.textContent = I[R - 1], l["n" + R] = I[R - 1]);
4186
4173
  }
4187
- if (l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, l.code.length === 6 && (f.target.blur(), i && i({ value: l.code, name: d }), o)) {
4174
+ if (l.code = l.n1 + "" + l.n2 + l.n3 + l.n4 + l.n5 + l.n6, l.code.length === 6 && (p.target.blur(), i && i({ value: l.code, name: d }), o)) {
4188
4175
  l = {
4189
4176
  n1: "",
4190
4177
  n2: "",
@@ -4195,15 +4182,15 @@ function aa({
4195
4182
  code: ""
4196
4183
  };
4197
4184
  for (let R = 1; R <= 6; R++) {
4198
- let I = document.getElementById("n" + R);
4199
- I && (I.textContent = "");
4185
+ let D = document.getElementById("n" + R);
4186
+ D && (D.textContent = "");
4200
4187
  }
4201
4188
  }
4202
- }).catch((p) => {
4189
+ }).catch((v) => {
4203
4190
  });
4204
4191
  };
4205
- const v = {};
4206
- return v.field = "code", e && (v.className = e), /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
4192
+ const x = {};
4193
+ return x.field = "code", e && (x.className = e), /* @__PURE__ */ n.jsxs("dl", { ...x, children: [
4207
4194
  t ? /* @__PURE__ */ n.jsx("dt", { children: t }) : "",
4208
4195
  /* @__PURE__ */ n.jsxs("div", { children: [
4209
4196
  /* @__PURE__ */ n.jsx(
@@ -4212,9 +4199,9 @@ function aa({
4212
4199
  id: "n1",
4213
4200
  inputMode: "numeric",
4214
4201
  onKeyDown: c,
4215
- onKeyUp: h,
4216
- onFocus: m,
4217
- onPaste: g,
4202
+ onKeyUp: m,
4203
+ onFocus: f,
4204
+ onPaste: h,
4218
4205
  onInput: _,
4219
4206
  contentEditable: !0
4220
4207
  }
@@ -4225,9 +4212,9 @@ function aa({
4225
4212
  id: "n2",
4226
4213
  inputMode: "numeric",
4227
4214
  onKeyDown: c,
4228
- onKeyUp: h,
4229
- onFocus: m,
4230
- onPaste: g,
4215
+ onKeyUp: m,
4216
+ onFocus: f,
4217
+ onPaste: h,
4231
4218
  onInput: _,
4232
4219
  contentEditable: !0
4233
4220
  }
@@ -4238,9 +4225,9 @@ function aa({
4238
4225
  id: "n3",
4239
4226
  inputMode: "numeric",
4240
4227
  onKeyDown: c,
4241
- onKeyUp: h,
4242
- onFocus: m,
4243
- onPaste: g,
4228
+ onKeyUp: m,
4229
+ onFocus: f,
4230
+ onPaste: h,
4244
4231
  onInput: _,
4245
4232
  contentEditable: !0
4246
4233
  }
@@ -4251,9 +4238,9 @@ function aa({
4251
4238
  id: "n4",
4252
4239
  inputMode: "numeric",
4253
4240
  onKeyDown: c,
4254
- onKeyUp: h,
4255
- onFocus: m,
4256
- onPaste: g,
4241
+ onKeyUp: m,
4242
+ onFocus: f,
4243
+ onPaste: h,
4257
4244
  onInput: _,
4258
4245
  contentEditable: !0
4259
4246
  }
@@ -4264,9 +4251,9 @@ function aa({
4264
4251
  id: "n5",
4265
4252
  inputMode: "numeric",
4266
4253
  onKeyDown: c,
4267
- onKeyUp: h,
4268
- onFocus: m,
4269
- onPaste: g,
4254
+ onKeyUp: m,
4255
+ onFocus: f,
4256
+ onPaste: h,
4270
4257
  onInput: _,
4271
4258
  contentEditable: !0
4272
4259
  }
@@ -4277,9 +4264,9 @@ function aa({
4277
4264
  id: "n6",
4278
4265
  inputMode: "numeric",
4279
4266
  onKeyDown: c,
4280
- onKeyUp: h,
4281
- onFocus: m,
4282
- onPaste: g,
4267
+ onKeyUp: m,
4268
+ onFocus: f,
4269
+ onPaste: h,
4283
4270
  onInput: _,
4284
4271
  contentEditable: !0
4285
4272
  }
@@ -4300,28 +4287,28 @@ function ra({
4300
4287
  length: l = 6,
4301
4288
  edit: _ = !0,
4302
4289
  active: c = !0,
4303
- after: h = "",
4304
- show: m = !0,
4305
- view: g,
4306
- onSave: v,
4307
- className: f = ""
4290
+ after: m = "",
4291
+ show: f = !0,
4292
+ view: h,
4293
+ onSave: x,
4294
+ className: p = ""
4308
4295
  }) {
4309
4296
  _ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0;
4310
- let [p, y] = x.useState(t), j = (N) => {
4311
- y(N), a == null || a({ value: N, name: r }), v == null || v({ value: N, name: r });
4297
+ let [v, y] = g.useState(t), j = (N) => {
4298
+ y(N), a == null || a({ value: N, name: r }), x == null || x({ value: N, name: r });
4312
4299
  };
4313
- const S = {};
4314
- return S.field = "color", f && (S.className = f), /* @__PURE__ */ n.jsx(n.Fragment, { children: g === "icon" ? /* @__PURE__ */ n.jsx(
4300
+ const I = {};
4301
+ return I.field = "color", p && (I.className = p), /* @__PURE__ */ n.jsx(n.Fragment, { children: h === "icon" ? /* @__PURE__ */ n.jsx(
4315
4302
  "i",
4316
4303
  {
4317
4304
  "data-icon": "F043"
4318
4305
  }
4319
- ) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
4306
+ ) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
4320
4307
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
4321
4308
  /* @__PURE__ */ n.jsx("dd", { children: l > 0 && Array.from(Array(l).keys()).map((N) => /* @__PURE__ */ n.jsx(
4322
4309
  "s",
4323
4310
  {
4324
- active: (Number(N) === Number(p)) + "",
4311
+ active: (Number(N) === Number(v)) + "",
4325
4312
  onClick: () => j(N),
4326
4313
  style: {
4327
4314
  backgroundColor: `var(--color-${N})`
@@ -4332,7 +4319,7 @@ function ra({
4332
4319
  o && /* @__PURE__ */ n.jsx("em", { children: o })
4333
4320
  ] }) });
4334
4321
  }
4335
- const Al = "_o_76l23_1", Ol = "_c_76l23_11", Zl = "__active_76l23_41", Gl = "_as_76l23_94", Wl = "_ap_76l23_97", xe = {
4322
+ const Al = "_o_76l23_1", Ol = "_c_76l23_11", Zl = "__active_76l23_41", Gl = "_as_76l23_94", Wl = "_ap_76l23_97", ge = {
4336
4323
  o: Al,
4337
4324
  c: Ol,
4338
4325
  _active: Zl,
@@ -4351,27 +4338,27 @@ function Pt({
4351
4338
  view: l = "date",
4352
4339
  onValue: _,
4353
4340
  name: c,
4354
- value: h,
4355
- after: m
4341
+ value: m,
4342
+ after: f
4356
4343
  }) {
4357
- let [g, v] = x.useState(
4358
- h === void 0 ? /* @__PURE__ */ new Date() : h
4359
- ), f = !a && r;
4360
- x.useEffect(() => {
4361
- v(h === void 0 ? /* @__PURE__ */ new Date() : h);
4362
- }, [h]);
4363
- let p = (N) => {
4364
- v(N), _ == null || _({ value: N, name: c });
4344
+ let [h, x] = g.useState(
4345
+ m === void 0 ? /* @__PURE__ */ new Date() : m
4346
+ ), p = !a && r;
4347
+ g.useEffect(() => {
4348
+ x(m === void 0 ? /* @__PURE__ */ new Date() : m);
4349
+ }, [m]);
4350
+ let v = (N) => {
4351
+ x(N), _ == null || _({ value: N, name: c });
4365
4352
  }, y = (N) => {
4366
- const R = N.target.getBoundingClientRect(), I = R.left, C = R.bottom, k = R.top;
4367
- Ce.setListener(
4353
+ const R = N.target.getBoundingClientRect(), D = R.left, C = R.bottom, k = R.top;
4354
+ ve.setListener(
4368
4355
  "form",
4369
4356
  /* @__PURE__ */ n.jsx(
4370
4357
  Ul,
4371
4358
  {
4372
- position: { x: I, y: k, b: C },
4373
- onValue: p,
4374
- date: g,
4359
+ position: { x: D, y: k, b: C },
4360
+ onValue: v,
4361
+ date: h,
4375
4362
  max: o,
4376
4363
  min: d,
4377
4364
  className: s
@@ -4382,8 +4369,8 @@ function Pt({
4382
4369
  };
4383
4370
  const j = {};
4384
4371
  j.field = "input", s && (j.className = s);
4385
- const S = {};
4386
- return i && (S.placeholder = i), f ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsx(n.Fragment, { children: l === "icon" ? /* @__PURE__ */ n.jsx(
4372
+ const I = {};
4373
+ return i && (I.placeholder = i), p ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsx(n.Fragment, { children: l === "icon" ? /* @__PURE__ */ n.jsx(
4387
4374
  "i",
4388
4375
  {
4389
4376
  "data-icon": "F043",
@@ -4397,11 +4384,11 @@ function Pt({
4397
4384
  "dd",
4398
4385
  {
4399
4386
  onClick: y,
4400
- ...S,
4387
+ ...I,
4401
4388
  "data-edit": (a && r) + "",
4402
4389
  children: [
4403
- Y.Date(g, "dd.mm.yyyy"),
4404
- m
4390
+ Y.Date(h, "dd.mm.yyyy"),
4391
+ f
4405
4392
  ]
4406
4393
  }
4407
4394
  ),
@@ -4409,54 +4396,54 @@ function Pt({
4409
4396
  ] }) });
4410
4397
  }
4411
4398
  const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i }) => {
4412
- let [o, d] = x.useState(!0), l = /* @__PURE__ */ new Date(), _ = new Date(e), c = {
4399
+ let [o, d] = g.useState(!0), l = /* @__PURE__ */ new Date(), _ = new Date(e), c = {
4413
4400
  y: parseInt(l.getFullYear()),
4414
4401
  d: parseInt(l.getDate()),
4415
4402
  m: parseInt(l.getMonth()) + 1
4416
- }, h = {
4403
+ }, m = {
4417
4404
  y: parseInt(_.getFullYear()),
4418
4405
  d: parseInt(_.getDate()),
4419
4406
  m: parseInt(_.getMonth()) + 1
4420
- }, [m, g] = x.useState({ y: h.y, m: h.m }), v = (w) => {
4407
+ }, [f, h] = g.useState({ y: m.y, m: m.m }), x = (w) => {
4421
4408
  let M = w.getDay();
4422
4409
  return M === 0 && (M = 7), M - 1;
4423
- }, f = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], p = m.m - 1, y = new Date(m.y, p), j = [];
4424
- for (let w = 0; w < v(y); w++)
4410
+ }, p = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], v = f.m - 1, y = new Date(f.y, v), j = [];
4411
+ for (let w = 0; w < x(y); w++)
4425
4412
  j.push(0);
4426
- for (; y.getMonth() === p; )
4413
+ for (; y.getMonth() === v; )
4427
4414
  j.push(y.getDate()), y.setDate(y.getDate() + 1);
4428
- let S = () => {
4415
+ let I = () => {
4429
4416
  d(!1);
4430
4417
  }, N = () => {
4431
- C(m.m + 1, m.y);
4418
+ C(f.m + 1, f.y);
4432
4419
  }, R = () => {
4433
- C(m.m - 1, m.y);
4434
- }, I = (w) => {
4420
+ C(f.m - 1, f.y);
4421
+ }, D = (w) => {
4435
4422
  t(
4436
- m.y + "-" + Y.Number(2, m.m) + "-" + Y.Number(2, w)
4437
- ), S();
4423
+ f.y + "-" + Y.Number(2, f.m) + "-" + Y.Number(2, w)
4424
+ ), I();
4438
4425
  }, C = (w, M) => {
4439
- M = w > 12 ? M + 1 : w < 1 ? M - 1 : M, w = w > 12 ? 1 : w < 1 ? 12 : w, g({ y: M, m: w });
4426
+ M = w > 12 ? M + 1 : w < 1 ? M - 1 : M, w = w > 12 ? 1 : w < 1 ? 12 : w, h({ y: M, m: w });
4440
4427
  };
4441
- const k = (w) => c.y === m.y && c.m === m.m && c.d === w ? { "data-active": "true" } : {}, F = (w) => h.y === m.y && h.m === m.m && h.d === w ? { "data-current": "true" } : {}, E = (w) => {
4428
+ const k = (w) => c.y === f.y && c.m === f.m && c.d === w ? { "data-active": "true" } : {}, F = (w) => m.y === f.y && m.m === f.m && m.d === w ? { "data-current": "true" } : {}, S = (w) => {
4442
4429
  let M = !0;
4443
4430
  if (r) {
4444
- let W = r.getTime(), Q = new Date(m.y, m.m - 1, w).getTime();
4431
+ let W = r.getTime(), Q = new Date(f.y, f.m - 1, w).getTime();
4445
4432
  W < Q && (M = !1);
4446
4433
  }
4447
4434
  if (s) {
4448
- let W = s.getTime(), Q = new Date(m.y, m.m - 1, w).getTime();
4435
+ let W = s.getTime(), Q = new Date(f.y, f.m - 1, w).getTime();
4449
4436
  W > Q && (M = !1);
4450
4437
  }
4451
4438
  return M;
4452
4439
  };
4453
- let L = window.innerHeight - a.y < 320 ? a.y - 312 : a.b, D = window.innerWidth - a.x < 265 ? a.x - 235 : a.x;
4440
+ let L = window.innerHeight - a.y < 320 ? a.y - 312 : a.b, E = window.innerWidth - a.x < 265 ? a.x - 235 : a.x;
4454
4441
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4455
4442
  /* @__PURE__ */ n.jsx(
4456
4443
  "div",
4457
4444
  {
4458
- className: xe.o,
4459
- onClick: () => S()
4445
+ className: ge.o,
4446
+ onClick: () => I()
4460
4447
  },
4461
4448
  (/* @__PURE__ */ new Date()).getTime()
4462
4449
  ),
@@ -4464,10 +4451,10 @@ const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i })
4464
4451
  "div",
4465
4452
  {
4466
4453
  className: [
4467
- xe.c,
4454
+ ge.c,
4468
4455
  i && i + "-backdrop"
4469
4456
  ].join(" "),
4470
- style: { top: L + "px", left: D + "px" },
4457
+ style: { top: L + "px", left: E + "px" },
4471
4458
  children: [
4472
4459
  /* @__PURE__ */ n.jsxs("s", { children: [
4473
4460
  /* @__PURE__ */ n.jsx("i", { onClick: R, children: /* @__PURE__ */ n.jsx(
@@ -4482,9 +4469,9 @@ const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i })
4482
4469
  }
4483
4470
  ) }),
4484
4471
  /* @__PURE__ */ n.jsxs("h2", { children: [
4485
- Y.Month(m.m).name,
4472
+ Y.Month(f.m).name,
4486
4473
  " ",
4487
- m.y
4474
+ f.y
4488
4475
  ] }),
4489
4476
  /* @__PURE__ */ n.jsx("i", { onClick: N, children: /* @__PURE__ */ n.jsx(
4490
4477
  "svg",
@@ -4499,13 +4486,13 @@ const Ul = ({ date: e, onValue: t, position: a, max: r, min: s, className: i })
4499
4486
  ) })
4500
4487
  ] }),
4501
4488
  /* @__PURE__ */ n.jsxs("div", { "grid-calendar": "", children: [
4502
- f.map((w, M) => /* @__PURE__ */ n.jsx("p", { children: w }, "v" + M)),
4503
- j.map((w, M) => /* @__PURE__ */ n.jsx("span", { children: w !== 0 && E(w) ? /* @__PURE__ */ n.jsx(
4489
+ p.map((w, M) => /* @__PURE__ */ n.jsx("p", { children: w }, "v" + M)),
4490
+ j.map((w, M) => /* @__PURE__ */ n.jsx("span", { children: w !== 0 && S(w) ? /* @__PURE__ */ n.jsx(
4504
4491
  "b",
4505
4492
  {
4506
4493
  ...k(w),
4507
4494
  ...F(w),
4508
- onClick: () => I(w),
4495
+ onClick: () => D(w),
4509
4496
  children: w
4510
4497
  }
4511
4498
  ) : /* @__PURE__ */ n.jsx("p", { ...k(w), ...F(w), children: w !== 0 ? w : "" }) }, M))
@@ -4527,29 +4514,29 @@ function At({
4527
4514
  show: l = !0,
4528
4515
  active: _ = !0,
4529
4516
  after: c = "",
4530
- view: h,
4531
- modal: m,
4532
- module: g,
4533
- options: v,
4534
- className: f
4517
+ view: m,
4518
+ modal: f,
4519
+ module: h,
4520
+ options: x,
4521
+ className: p
4535
4522
  }) {
4536
- let [p, y] = x.useState(e), j = (R) => {
4537
- if (!(d && _) || !m) return;
4538
- let I = m.split(".");
4539
- Ne.Open(I[0], I[1], {
4523
+ let [v, y] = g.useState(e), j = (R) => {
4524
+ if (!(d && _) || !f) return;
4525
+ let D = f.split(".");
4526
+ Ne.Open(D[0], D[1], {
4540
4527
  callback: (C) => {
4541
4528
  t && t({ value: C, name: a }), y(C);
4542
4529
  },
4543
4530
  onValue: t,
4544
- options: v,
4531
+ options: x,
4545
4532
  name: a,
4546
4533
  value: e
4547
4534
  });
4548
4535
  };
4549
- const S = {};
4550
- S.field = "input", f && (S.className = f);
4536
+ const I = {};
4537
+ I.field = "input", p && (I.className = p);
4551
4538
  const N = {};
4552
- return r && (N.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
4539
+ return r && (N.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
4553
4540
  s && /* @__PURE__ */ n.jsx("dt", { children: s }),
4554
4541
  /* @__PURE__ */ n.jsx(
4555
4542
  "dd",
@@ -4558,7 +4545,7 @@ function At({
4558
4545
  onClick: j,
4559
4546
  edit: (d && _) + "",
4560
4547
  "data-after": c,
4561
- children: p
4548
+ children: v
4562
4549
  }
4563
4550
  ),
4564
4551
  i && /* @__PURE__ */ n.jsx("em", { children: i })
@@ -4576,48 +4563,48 @@ function Ot({
4576
4563
  active: l = !0,
4577
4564
  after: _ = "",
4578
4565
  show: c = !0,
4579
- course: h = 100,
4580
- view: m,
4581
- type: g,
4582
- onSave: v,
4583
- className: f = "",
4584
- isClear: p = !1
4566
+ course: m = 100,
4567
+ view: f,
4568
+ type: h,
4569
+ onSave: x,
4570
+ className: p = "",
4571
+ isClear: v = !1
4585
4572
  }) {
4586
4573
  let y = !!(o && (e === "" || e === void 0));
4587
- e = Y.isNumeric(e) ? Number(e) / h : 0;
4588
- let j = (D) => g === "multi" ? D.replace(/[^+\d.+-]/g, "") : D.replace(/[^+\d.]/g, ""), S = (D, w) => {
4574
+ e = Y.isNumeric(e) ? Number(e) / m : 0;
4575
+ let j = (E) => h === "multi" ? E.replace(/[^+\d.+-]/g, "") : E.replace(/[^+\d.]/g, ""), I = (E, w) => {
4589
4576
  let M = document.createRange(), W = window.getSelection();
4590
- M.setStart(w.childNodes[0], D), M.collapse(!0), W.removeAllRanges(), W.addRange(M), w.focus();
4591
- }, N = (D) => {
4577
+ M.setStart(w.childNodes[0], E), M.collapse(!0), W.removeAllRanges(), W.addRange(M), w.focus();
4578
+ }, N = (E) => {
4592
4579
  t == null || t({
4593
- value: j(D.target.textContent) * h,
4580
+ value: j(E.target.textContent) * m,
4594
4581
  name: a
4595
- }), D.target.textContent = j(D.target.textContent), D.target.textContent.length > 0 && S(D.target.textContent.length, D.target);
4596
- }, R = (D) => {
4597
- K.Blur(D), D.target.textContent === "" && (D.target.textContent = 0), v == null || v({ value: j(D.target.textContent) * h, name: a }), t == null || t({
4598
- value: j(D.target.textContent) * h,
4582
+ }), E.target.textContent = j(E.target.textContent), E.target.textContent.length > 0 && I(E.target.textContent.length, E.target);
4583
+ }, R = (E) => {
4584
+ z.Blur(E), E.target.textContent === "" && (E.target.textContent = 0), x == null || x({ value: j(E.target.textContent) * m, name: a }), t == null || t({
4585
+ value: j(E.target.textContent) * m,
4599
4586
  name: a
4600
- }), D.target.textContent = Y.Money(D.target.textContent);
4601
- }, I = (D) => {
4602
- D.target.textContent = j(D.target.textContent);
4603
- }, C = (D) => {
4604
- D.currentTarget.previousElementSibling.textContent = "", t == null || t({
4587
+ }), E.target.textContent = Y.Money(E.target.textContent);
4588
+ }, D = (E) => {
4589
+ E.target.textContent = j(E.target.textContent);
4590
+ }, C = (E) => {
4591
+ E.currentTarget.previousElementSibling.textContent = "", t == null || t({
4605
4592
  value: 0,
4606
4593
  name: a
4607
4594
  });
4608
- }, k = (D) => {
4609
- D.key === "Enter" && D.preventDefault();
4610
- }, F = (D) => {
4611
- D.preventDefault(), navigator.clipboard.readText().then((w) => {
4595
+ }, k = (E) => {
4596
+ E.key === "Enter" && E.preventDefault();
4597
+ }, F = (E) => {
4598
+ E.preventDefault(), navigator.clipboard.readText().then((w) => {
4612
4599
  w = w.replace(/^\s*/, "").replace(/\s*$/, ""), window.document.execCommand("insertText", !1, w);
4613
4600
  }).catch((w) => {
4614
4601
  });
4615
4602
  };
4616
4603
  if (!(d && l) && !c || !(d && l) && y) return "";
4617
- const E = {};
4618
- E.field = "input", f && (E.className = f);
4604
+ const S = {};
4605
+ S.field = "input", p && (S.className = p);
4619
4606
  const L = {};
4620
- return L.inputMode = "decimal", r && (L.placeholder = r), d && l && (L.edit = ""), /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
4607
+ return L.inputMode = "decimal", r && (L.placeholder = r), d && l && (L.edit = ""), /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
4621
4608
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
4622
4609
  /* @__PURE__ */ n.jsx(
4623
4610
  "dd",
@@ -4627,14 +4614,14 @@ function Ot({
4627
4614
  onPaste: F,
4628
4615
  onBlur: R,
4629
4616
  onKeyDown: k,
4630
- onFocus: I,
4631
- contentEditable: d && l ? K.ContentEditable : "false",
4617
+ onFocus: D,
4618
+ contentEditable: d && l ? z.ContentEditable : "false",
4632
4619
  suppressContentEditableWarning: !0,
4633
4620
  "data-after": _,
4634
4621
  children: !r || e ? Y.Money(e) : ""
4635
4622
  }
4636
4623
  ),
4637
- p && /* @__PURE__ */ n.jsx("svg", { "action-type": "delete", onClick: C, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M17 6L6 17M6 6L17 17" }) }),
4624
+ v && /* @__PURE__ */ n.jsx("svg", { "action-type": "delete", onClick: C, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M17 6L6 17M6 6L17 17" }) }),
4638
4625
  i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
4639
4626
  ] });
4640
4627
  }
@@ -4651,63 +4638,63 @@ function sa({
4651
4638
  className: _,
4652
4639
  after: c
4653
4640
  }) {
4654
- let [h, m] = x.useState(e);
4655
- x.useEffect(() => {
4656
- m(e);
4641
+ let [m, f] = g.useState(e);
4642
+ g.useEffect(() => {
4643
+ f(e);
4657
4644
  }, [e]);
4658
- let g = (p) => {
4659
- m(p), t && t({ value: p, name: a });
4660
- }, v = (p) => {
4645
+ let h = (v) => {
4646
+ f(v), t && t({ value: v, name: a });
4647
+ }, x = (v) => {
4661
4648
  if (!i || !o) return;
4662
- const y = p.target.getBoundingClientRect(), j = y.left, S = y.top;
4663
- Ce.setListener(
4649
+ const y = v.target.getBoundingClientRect(), j = y.left, I = y.top;
4650
+ ve.setListener(
4664
4651
  "form",
4665
4652
  /* @__PURE__ */ n.jsx(
4666
- Kl,
4653
+ zl,
4667
4654
  {
4668
- position: { x: j, y: S },
4669
- onValue: g,
4670
- date: h
4655
+ position: { x: j, y: I },
4656
+ onValue: h,
4657
+ date: m
4671
4658
  },
4672
4659
  (/* @__PURE__ */ new Date()).getTime()
4673
4660
  )
4674
4661
  );
4675
4662
  };
4676
- const f = {};
4677
- return l && (f.placeholder = l), r === "icon" ? /* @__PURE__ */ n.jsx("i", { "data-icon": "F043", onClick: v }) : /* @__PURE__ */ n.jsxs("dl", { children: [
4663
+ const p = {};
4664
+ return l && (p.placeholder = l), r === "icon" ? /* @__PURE__ */ n.jsx("i", { "data-icon": "F043", onClick: x }) : /* @__PURE__ */ n.jsxs("dl", { children: [
4678
4665
  d && /* @__PURE__ */ n.jsx("dt", { children: d }),
4679
4666
  /* @__PURE__ */ n.jsx(
4680
4667
  "dd",
4681
4668
  {
4682
- onClick: v,
4683
- ...f,
4684
- children: Y.Date(h, "mm.yyyy")
4669
+ onClick: x,
4670
+ ...p,
4671
+ children: Y.Date(m, "mm.yyyy")
4685
4672
  }
4686
4673
  ),
4687
4674
  s && /* @__PURE__ */ n.jsx("em", { children: s })
4688
4675
  ] });
4689
4676
  }
4690
- const Kl = (e) => {
4691
- let [t, a] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4677
+ const zl = (e) => {
4678
+ let [t, a] = g.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4692
4679
  y: parseInt(r.getFullYear()),
4693
4680
  m: parseInt(r.getMonth()) + 1
4694
4681
  }, o = {
4695
4682
  y: parseInt(s.getFullYear()),
4696
4683
  m: parseInt(s.getMonth()) + 1
4697
- }, [d, l] = x.useState(o.y), _ = () => {
4684
+ }, [d, l] = g.useState(o.y), _ = () => {
4698
4685
  a(!1);
4699
4686
  }, c = () => {
4700
4687
  l(d + 1);
4701
- }, h = () => {
4688
+ }, m = () => {
4702
4689
  l(d - 1);
4703
- }, m = (y) => {
4690
+ }, f = (y) => {
4704
4691
  e.onValue(d + "-" + Y.Number(2, y)), _();
4705
- }, g = (y) => i.y === o.y && i.m === y ? "_FFEB3B" : "", v = Array(12).fill("").map((y, j) => j + 1), f = 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;
4692
+ }, h = (y) => i.y === o.y && i.m === y ? "_FFEB3B" : "", x = Array(12).fill("").map((y, j) => j + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, v = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4706
4693
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4707
4694
  /* @__PURE__ */ n.jsx(
4708
4695
  "div",
4709
4696
  {
4710
- className: xe.o,
4697
+ className: ge.o,
4711
4698
  onClick: () => _()
4712
4699
  },
4713
4700
  (/* @__PURE__ */ new Date()).getTime()
@@ -4715,11 +4702,11 @@ const Kl = (e) => {
4715
4702
  /* @__PURE__ */ n.jsxs(
4716
4703
  "div",
4717
4704
  {
4718
- className: xe.c,
4719
- style: { top: f + "px", left: p + "px" },
4705
+ className: ge.c,
4706
+ style: { top: p + "px", left: v + "px" },
4720
4707
  children: [
4721
4708
  /* @__PURE__ */ n.jsxs("s", { children: [
4722
- /* @__PURE__ */ n.jsx("i", { onClick: h, children: /* @__PURE__ */ n.jsx(
4709
+ /* @__PURE__ */ n.jsx("i", { onClick: m, children: /* @__PURE__ */ n.jsx(
4723
4710
  "svg",
4724
4711
  {
4725
4712
  width: "16",
@@ -4743,13 +4730,13 @@ const Kl = (e) => {
4743
4730
  }
4744
4731
  ) })
4745
4732
  ] }),
4746
- /* @__PURE__ */ n.jsx("div", { "grid-month": "", children: v.map((y, j) => /* @__PURE__ */ n.jsx(
4733
+ /* @__PURE__ */ n.jsx("div", { "grid-month": "", children: x.map((y, j) => /* @__PURE__ */ n.jsx(
4747
4734
  "span",
4748
4735
  {
4749
4736
  onClick: () => {
4750
- m(y);
4737
+ f(y);
4751
4738
  },
4752
- color: g(y),
4739
+ color: h(y),
4753
4740
  children: /* @__PURE__ */ n.jsx("b", { children: Y.Month(y).abc })
4754
4741
  },
4755
4742
  j
@@ -4771,33 +4758,33 @@ function ia({
4771
4758
  edit: l = !0,
4772
4759
  active: _ = !0,
4773
4760
  after: c = "",
4774
- show: h = !0,
4775
- maxLength: m,
4776
- view: g,
4777
- onSave: v,
4778
- className: f = "",
4779
- isCopy: p = !0
4761
+ show: m = !0,
4762
+ maxLength: f,
4763
+ view: h,
4764
+ onSave: x,
4765
+ className: p = "",
4766
+ isCopy: v = !0
4780
4767
  }) {
4781
- let [y, j] = x.useState(!1);
4768
+ let [y, j] = g.useState(!1);
4782
4769
  y = l ? !0 : y;
4783
- let S = (E) => {
4784
- a == null || a({ value: E.target.innerText, name: r });
4785
- }, N = (E) => {
4786
- m && E.target.textContent.trim().length >= m && E.key !== "Backspace" && E.preventDefault(), E.key === "Enter" && E.preventDefault();
4787
- }, R = (E) => {
4788
- p && (E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.trim()).then(
4770
+ let I = (S) => {
4771
+ a == null || a({ value: S.target.innerText, name: r });
4772
+ }, N = (S) => {
4773
+ f && S.target.textContent.trim().length >= f && S.key !== "Backspace" && S.preventDefault(), S.key === "Enter" && S.preventDefault();
4774
+ }, R = (S) => {
4775
+ v && (S.preventDefault(), navigator.clipboard.writeText(S.target.textContent.trim()).then(
4789
4776
  function() {
4790
- me.Copy("Данные в буфер обмене");
4777
+ fe.Copy("Данные в буфер обмене");
4791
4778
  },
4792
4779
  function(L) {
4793
4780
  }
4794
4781
  ));
4795
- }, I = (E) => {
4796
- E.preventDefault(), navigator.clipboard.readText().then((L) => {
4797
- if (m) {
4798
- let D = E.target.textContent.length;
4799
- if (D >= m) return;
4800
- m -= D, L = L.slice(0, m);
4782
+ }, D = (S) => {
4783
+ S.preventDefault(), navigator.clipboard.readText().then((L) => {
4784
+ if (f) {
4785
+ let E = S.target.textContent.length;
4786
+ if (E >= f) return;
4787
+ f -= E, L = L.slice(0, f);
4801
4788
  }
4802
4789
  window.document.execCommand(
4803
4790
  "insertText",
@@ -4808,25 +4795,25 @@ function ia({
4808
4795
  });
4809
4796
  };
4810
4797
  if (d) return /* @__PURE__ */ n.jsx(n.Fragment, {});
4811
- if (!(l && _) && !h) return "";
4798
+ if (!(l && _) && !m) return "";
4812
4799
  const C = {};
4813
- C.field = "notes", f && (C.className = f);
4800
+ C.field = "notes", p && (C.className = p);
4814
4801
  const k = {};
4815
4802
  s && (k.placeholder = s), l && _ && (k.edit = ""), y && (k.open = "");
4816
- const F = (E) => {
4817
- K.Blur(E), v == null || v({ value: E.target.textContent.trim(), name: r });
4803
+ const F = (S) => {
4804
+ z.Blur(S), x == null || x({ value: S.target.textContent.trim(), name: r });
4818
4805
  };
4819
4806
  return /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4820
4807
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
4821
4808
  /* @__PURE__ */ n.jsx(
4822
4809
  "dd",
4823
4810
  {
4824
- onPaste: I,
4825
- onInput: S,
4811
+ onPaste: D,
4812
+ onInput: I,
4826
4813
  onBlur: F,
4827
4814
  onKeyDown: N,
4828
4815
  onContextMenu: R,
4829
- contentEditable: l && _ ? K.ContentEditable : "false",
4816
+ contentEditable: l && _ ? z.ContentEditable : "false",
4830
4817
  suppressContentEditableWarning: !0,
4831
4818
  ...k,
4832
4819
  children: t
@@ -4848,48 +4835,48 @@ function Zt({
4848
4835
  hide: l,
4849
4836
  value: _,
4850
4837
  placeholder: c,
4851
- className: h,
4852
- maxLength: m,
4853
- name: g,
4854
- after: v = "",
4855
- before: f = "",
4856
- view: p
4838
+ className: m,
4839
+ maxLength: f,
4840
+ name: h,
4841
+ after: x = "",
4842
+ before: p = "",
4843
+ view: v
4857
4844
  }) {
4858
4845
  s = s !== void 0 ? s : !0, a = a !== void 0 ? a : !0, l = !!(l && (_ === "" || _ === void 0)) && !(s && a), c = c !== void 0 ? c : "", r = r !== void 0 ? r : 99;
4859
- let j = !1, S = (E) => {
4860
- e == null || e({ value: E.target.textContent, name: g });
4861
- }, N = (E) => {
4862
- if (!(j && E.which === 86)) {
4863
- if (E.which === 17 || E.which === 91) return j = !0;
4864
- E.key !== "Backspace" && (E.target.textContent.length === r && E.preventDefault(), E.key === "Enter" && E.preventDefault(), isNaN(E.key) && E.preventDefault());
4846
+ let j = !1, I = (S) => {
4847
+ e == null || e({ value: S.target.textContent, name: h });
4848
+ }, N = (S) => {
4849
+ if (!(j && S.which === 86)) {
4850
+ if (S.which === 17 || S.which === 91) return j = !0;
4851
+ S.key !== "Backspace" && (S.target.textContent.length === r && S.preventDefault(), S.key === "Enter" && S.preventDefault(), isNaN(S.key) && S.preventDefault());
4865
4852
  }
4866
- }, R = (E) => {
4867
- if (E.which === 17 || E.which === 91) return j = !1;
4868
- }, I = (E) => {
4869
- E.preventDefault(), navigator.clipboard.readText().then((L) => {
4870
- if (L = L.replace(/(?!^\+|\d)./g, ""), m) {
4871
- let D = E.target.textContent.length;
4872
- if (D >= m) return;
4873
- m -= D, L = L.slice(0, m);
4853
+ }, R = (S) => {
4854
+ if (S.which === 17 || S.which === 91) return j = !1;
4855
+ }, D = (S) => {
4856
+ S.preventDefault(), navigator.clipboard.readText().then((L) => {
4857
+ if (L = L.replace(/(?!^\+|\d)./g, ""), f) {
4858
+ let E = S.target.textContent.length;
4859
+ if (E >= f) return;
4860
+ f -= E, L = L.slice(0, f);
4874
4861
  }
4875
4862
  window.document.execCommand("insertText", !1, "" + L);
4876
4863
  }).catch((L) => {
4877
4864
  });
4878
4865
  };
4879
- const C = (E) => {
4880
- K.Blur(E), t == null || t({ value: E.target.textContent, name: g });
4866
+ const C = (S) => {
4867
+ z.Blur(S), t == null || t({ value: S.target.textContent, name: h });
4881
4868
  }, k = {};
4882
- k.field = "input", h && (k.className = h);
4869
+ k.field = "input", m && (k.className = m);
4883
4870
  let F = {};
4884
- return s && a ? (F.edit = "true", F.contentEditable = K.ContentEditable) : F.contentEditable = "false", F.inputMode = "decimal", c && (F.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
4871
+ return s && a ? (F.edit = "true", F.contentEditable = z.ContentEditable) : F.contentEditable = "false", F.inputMode = "decimal", c && (F.placeholder = c), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
4885
4872
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
4886
- f,
4873
+ p,
4887
4874
  /* @__PURE__ */ n.jsx(
4888
4875
  "dd",
4889
4876
  {
4890
4877
  ...F,
4891
- onPaste: I,
4892
- onInput: S,
4878
+ onPaste: D,
4879
+ onInput: I,
4893
4880
  onBlur: C,
4894
4881
  onKeyDown: N,
4895
4882
  onKeyUp: R,
@@ -4897,7 +4884,7 @@ function Zt({
4897
4884
  children: _
4898
4885
  }
4899
4886
  ),
4900
- v,
4887
+ x,
4901
4888
  o && /* @__PURE__ */ n.jsx("em", { children: o })
4902
4889
  ] });
4903
4890
  }
@@ -4913,27 +4900,27 @@ function oa({
4913
4900
  edit: l = !0,
4914
4901
  active: _ = !0,
4915
4902
  reload: c = !1,
4916
- native: h = !1,
4917
- isShow: m = !1,
4918
- maxLength: g,
4919
- eyes: v = [],
4920
- after: f = ""
4903
+ native: m = !1,
4904
+ isShow: f = !1,
4905
+ maxLength: h,
4906
+ eyes: x = [],
4907
+ after: p = ""
4921
4908
  }) {
4922
- const [p, y] = x.useState(m);
4909
+ const [v, y] = g.useState(f);
4923
4910
  let j = (k) => {
4924
4911
  t && t({
4925
4912
  value: k.target.textContent,
4926
4913
  name: r,
4927
4914
  reload: c
4928
4915
  });
4929
- }, S = (k) => {
4916
+ }, I = (k) => {
4930
4917
  k.key === "Enter" && k.preventDefault();
4931
4918
  }, N = (k) => {
4932
4919
  k.preventDefault(), navigator.clipboard.readText().then((F) => {
4933
- if (g) {
4934
- let E = k.target.textContent.length;
4935
- if (E >= g) return;
4936
- g -= E, F = F.slice(0, g);
4920
+ if (h) {
4921
+ let S = k.target.textContent.length;
4922
+ if (S >= h) return;
4923
+ h -= S, F = F.slice(0, h);
4937
4924
  }
4938
4925
  window.document.execCommand(
4939
4926
  "insertText",
@@ -4943,28 +4930,28 @@ function oa({
4943
4930
  }).catch((F) => {
4944
4931
  });
4945
4932
  }, R = (k) => {
4946
- K.Blur(k), a == null || a({ value: k.target.textContent.trim(), name: r });
4933
+ z.Blur(k), a == null || a({ value: k.target.textContent.trim(), name: r });
4947
4934
  };
4948
- const I = {};
4949
- I.field = "password", p && (I.show = ""), i && (I.className = i);
4935
+ const D = {};
4936
+ D.field = "password", v && (D.show = ""), i && (D.className = i);
4950
4937
  const C = {};
4951
- return s && (C.placeholder = s), h ? "" : /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
4938
+ return s && (C.placeholder = s), m ? "" : /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
4952
4939
  o ? /* @__PURE__ */ n.jsx("dt", { children: o }) : "",
4953
4940
  /* @__PURE__ */ n.jsx(
4954
4941
  "dd",
4955
4942
  {
4956
4943
  onPaste: N,
4957
4944
  onInput: j,
4958
- onKeyDown: S,
4945
+ onKeyDown: I,
4959
4946
  onBlur: R,
4960
- contentEditable: l && _ ? K.ContentEditable : "false",
4947
+ contentEditable: l && _ ? z.ContentEditable : "false",
4961
4948
  ...C,
4962
4949
  suppressContentEditableWarning: !0,
4963
4950
  children: e
4964
4951
  }
4965
4952
  ),
4966
- v[0] && /* @__PURE__ */ n.jsx("i", { onClick: () => y(!p), children: p ? v[1] : v[0] }),
4967
- f,
4953
+ x[0] && /* @__PURE__ */ n.jsx("i", { onClick: () => y(!v), children: v ? x[1] : x[0] }),
4954
+ p,
4968
4955
  d ? /* @__PURE__ */ n.jsx("em", { children: d }) : ""
4969
4956
  ] });
4970
4957
  }
@@ -6362,68 +6349,68 @@ function Gt({
6362
6349
  edit: l = !0,
6363
6350
  active: _ = !0,
6364
6351
  after: c = "",
6365
- show: h = !0,
6366
- view: m,
6367
- className: g = ""
6352
+ show: m = !0,
6353
+ view: f,
6354
+ className: h = ""
6368
6355
  }) {
6369
- l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, d = !!(d && (e === "" || e === void 0)) && !(l && _), x.useRef(null);
6370
- let f = "+_(___) ___-__-__", p = !0, y = 0, j = (D, w) => {
6356
+ l = l !== void 0 ? l : !0, _ = _ !== void 0 ? _ : !0, d = !!(d && (e === "" || e === void 0)) && !(l && _), g.useRef(null);
6357
+ let p = "+_(___) ___-__-__", v = !0, y = 0, j = (E, w) => {
6371
6358
  let M = document.createRange(), W = window.getSelection();
6372
- M.setStart(w.childNodes[0], D), M.collapse(!0), W.removeAllRanges(), W.addRange(M), w.focus();
6373
- }, S = (D) => {
6374
- let w = R(D.target.textContent);
6375
- D.target.textContent = w.q, w.i = w.q.lastIndexOf(w.v.substr(-1)), w.i < w.q.length && w.q !== f ? w.i++ : w.i = w.q.indexOf("_"), j(w.i, D.target), t && t({ value: w.q.replace(/\D/g, ""), name: r });
6376
- }, N = (D) => {
6377
- D.preventDefault(), navigator.clipboard.readText().then((w) => {
6359
+ M.setStart(w.childNodes[0], E), M.collapse(!0), W.removeAllRanges(), W.addRange(M), w.focus();
6360
+ }, I = (E) => {
6361
+ let w = R(E.target.textContent);
6362
+ E.target.textContent = w.q, w.i = w.q.lastIndexOf(w.v.substr(-1)), w.i < w.q.length && w.q !== p ? w.i++ : w.i = w.q.indexOf("_"), j(w.i, E.target), t && t({ value: w.q.replace(/\D/g, ""), name: r });
6363
+ }, N = (E) => {
6364
+ E.preventDefault(), navigator.clipboard.readText().then((w) => {
6378
6365
  window.document.execCommand("insertText", !1, w);
6379
6366
  }).catch((w) => {
6380
6367
  });
6381
- }, R = (D) => {
6382
- let w = 0, M = "", W = D.replace(/\D/g, "");
6383
- W === "" && (p = !0);
6384
- let Q = W.split(""), le = "";
6368
+ }, R = (E) => {
6369
+ let w = 0, M = "", W = E.replace(/\D/g, "");
6370
+ W === "" && (v = !0);
6371
+ let Q = W.split(""), oe = "";
6385
6372
  Q.forEach(($e) => {
6386
- p && (le += $e, Ct[le] !== void 0 && p ? (p = !1, f = Ct[le].mask.replace(new RegExp("[0-9]", "g"), "_"), M = Ct[le].code) : (p && (y = ("" + le).length, f = `+${le}_(___) ___-__-__`.replace(
6373
+ v && (oe += $e, Ct[oe] !== void 0 && v ? (v = !1, p = Ct[oe].mask.replace(new RegExp("[0-9]", "g"), "_"), M = Ct[oe].code) : (v && (y = ("" + oe).length, p = `+${oe}_(___) ___-__-__`.replace(
6387
6374
  new RegExp("[0-9]", "g"),
6388
6375
  "_"
6389
- ), M = ""), y > ("" + le).length && (p = !0, f = `+${le}_(___) ___-__-__`.replace(
6376
+ ), M = ""), y > ("" + oe).length && (v = !0, p = `+${oe}_(___) ___-__-__`.replace(
6390
6377
  new RegExp("[0-9]", "g"),
6391
6378
  "_"
6392
6379
  ), M = "")));
6393
6380
  });
6394
- let ye = f.replace(/\D/g, "");
6395
- return ye.length >= W.length && (W = ye), { q: f.replace(/[_\d]/g, function() {
6381
+ let je = p.replace(/\D/g, "");
6382
+ return je.length >= W.length && (W = je), { q: p.replace(/[_\d]/g, function() {
6396
6383
  return W.charAt(w++) || "_";
6397
6384
  }), i: w, v: W, f: M };
6398
- }, I = (D) => {
6399
- D.preventDefault(), navigator.clipboard.writeText(D.target.textContent.replace(/\D/g, "")).then(
6385
+ }, D = (E) => {
6386
+ E.preventDefault(), navigator.clipboard.writeText(E.target.textContent.replace(/\D/g, "")).then(
6400
6387
  function() {
6401
- me.Copy("Данные в буфер обмене");
6388
+ fe.Copy("Данные в буфер обмене");
6402
6389
  },
6403
6390
  function(w) {
6404
6391
  }
6405
6392
  );
6406
- }, C = R(e), k = (D) => {
6407
- D.key === "Enter" && D.preventDefault();
6393
+ }, C = R(e), k = (E) => {
6394
+ E.key === "Enter" && E.preventDefault();
6408
6395
  };
6409
- const F = (D) => {
6410
- K.Blur(D), a && a({
6411
- value: D.target.textContent.replace(/\D/g, ""),
6396
+ const F = (E) => {
6397
+ z.Blur(E), a && a({
6398
+ value: E.target.textContent.replace(/\D/g, ""),
6412
6399
  name: r
6413
6400
  });
6414
- }, E = {};
6415
- E.field = "input", g && (E.className = g);
6401
+ }, S = {};
6402
+ S.field = "input", h && (S.className = h);
6416
6403
  let L = {};
6417
- return l && _ ? (L.edit = "true", L.contentEditable = K.ContentEditable) : L.contentEditable = "false", s && (L.placeholder = s), c && (L.after = c), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
6404
+ return l && _ ? (L.edit = "true", L.contentEditable = z.ContentEditable) : L.contentEditable = "false", s && (L.placeholder = s), c && (L.after = c), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
6418
6405
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
6419
6406
  /* @__PURE__ */ n.jsx(
6420
6407
  "dd",
6421
6408
  {
6422
6409
  ...L,
6423
6410
  onPaste: N,
6424
- onInput: S,
6411
+ onInput: I,
6425
6412
  onKeyDown: k,
6426
- onContextMenu: I,
6413
+ onContextMenu: D,
6427
6414
  onBlur: F,
6428
6415
  suppressContentEditableWarning: !0,
6429
6416
  children: C.q
@@ -6443,9 +6430,9 @@ const la = ({
6443
6430
  onValue: d,
6444
6431
  maxLength: l = 20
6445
6432
  }) => {
6446
- let _ = 0, c = x.useRef({
6433
+ let _ = 0, c = g.useRef({
6447
6434
  textContent: o
6448
- }), h = () => {
6435
+ }), m = () => {
6449
6436
  c.current.textContent.trim().length === 0 && (c.current.textContent = ""), clearTimeout(_), _ = setTimeout(
6450
6437
  () => {
6451
6438
  var j;
@@ -6453,48 +6440,48 @@ const la = ({
6453
6440
  },
6454
6441
  a
6455
6442
  );
6456
- }, m = () => {
6443
+ }, f = () => {
6457
6444
  c.current && (c.current.textContent = ""), d("");
6458
- }, g = (j) => {
6445
+ }, h = (j) => {
6459
6446
  l && j.target.textContent.trim().length >= l && j.key !== "Backspace" && j.preventDefault(), j.key === "Enter" && j.preventDefault();
6460
- }, v = (j) => {
6461
- j.preventDefault(), navigator.clipboard.readText().then((S) => {
6447
+ }, x = (j) => {
6448
+ j.preventDefault(), navigator.clipboard.readText().then((I) => {
6462
6449
  if (l) {
6463
6450
  let N = j.target.textContent.length;
6464
6451
  if (N >= l) return;
6465
- l -= N, S = S.slice(0, l);
6452
+ l -= N, I = I.slice(0, l);
6466
6453
  }
6467
6454
  window.document.execCommand(
6468
6455
  "insertText",
6469
6456
  !1,
6470
- S.replace(/(\r\n|\n|\r)/gm, " ")
6457
+ I.replace(/(\r\n|\n|\r)/gm, " ")
6471
6458
  );
6472
- }).catch((S) => {
6459
+ }).catch((I) => {
6473
6460
  });
6474
- }, f = () => {
6461
+ }, p = () => {
6475
6462
  c.current.textContent = c.current.textContent.trim();
6476
6463
  };
6477
- const p = {};
6478
- p.field = "search", e && (p.className = e);
6464
+ const v = {};
6465
+ v.field = "search", e && (v.className = e);
6479
6466
  const y = {};
6480
- return r && (y.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...p, children: [
6467
+ return r && (y.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
6481
6468
  t && /* @__PURE__ */ n.jsx("dt", { children: t }),
6482
6469
  /* @__PURE__ */ n.jsx(
6483
6470
  "dd",
6484
6471
  {
6485
6472
  ref: c,
6486
- onPaste: v,
6487
- onInput: h,
6488
- onKeyDown: g,
6489
- onBlur: f,
6490
- contentEditable: s && i ? K.ContentEditable : "false",
6473
+ onPaste: x,
6474
+ onInput: m,
6475
+ onKeyDown: h,
6476
+ onBlur: p,
6477
+ contentEditable: s && i ? z.ContentEditable : "false",
6491
6478
  ...y,
6492
6479
  suppressContentEditableWarning: !0,
6493
6480
  children: o
6494
6481
  }
6495
6482
  ),
6496
- /* @__PURE__ */ n.jsx("svg", { "aria-label": "icon", onClick: m, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M10.364 3a7.364 7.364 0 1 0 0 14.727 7.364 7.364 0 0 0 0-14.727v0ZM15.857 15.86 21 21.001" }) }),
6497
- /* @__PURE__ */ n.jsx("svg", { "action-type": "delete", onClick: m, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M17 6L6 17M6 6L17 17" }) })
6483
+ /* @__PURE__ */ n.jsx("svg", { "aria-label": "icon", onClick: f, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M10.364 3a7.364 7.364 0 1 0 0 14.727 7.364 7.364 0 0 0 0-14.727v0ZM15.857 15.86 21 21.001" }) }),
6484
+ /* @__PURE__ */ n.jsx("svg", { "action-type": "delete", onClick: f, viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M17 6L6 17M6 6L17 17" }) })
6498
6485
  ] });
6499
6486
  };
6500
6487
  function Wt({
@@ -6509,40 +6496,40 @@ function Wt({
6509
6496
  placeholder: l = "",
6510
6497
  className: _,
6511
6498
  name: c,
6512
- after: h,
6513
- view: m,
6514
- order: g,
6515
- isReload: v = !1
6499
+ after: m,
6500
+ view: f,
6501
+ order: h,
6502
+ isReload: x = !1
6516
6503
  }) {
6517
- var F, E;
6518
- const f = x.useRef(), [p, y] = x.useState(i), [j, S] = x.useState(d);
6519
- x.useEffect(() => {
6520
- y(i), S(d);
6504
+ var F, S;
6505
+ const p = g.useRef(), [v, y] = g.useState(i), [j, I] = g.useState(d);
6506
+ g.useEffect(() => {
6507
+ y(i), I(d);
6521
6508
  }, [i, d]), s = !!(s && (i === 0 || ((F = j == null ? void 0 : j[i]) == null ? void 0 : F.n) === void 0)) && !(a && r);
6522
6509
  let R = (L) => {
6523
- y(L), o && o({ value: L, name: c, reload: v });
6524
- }, I = (L) => {
6510
+ y(L), o && o({ value: L, name: c, reload: x });
6511
+ }, D = (L) => {
6525
6512
  if (Object.keys(j || {}).length === 0 || !(a && r)) return;
6526
- const D = L.target.getBoundingClientRect();
6527
- Ce.setListener(
6513
+ const E = L.target.getBoundingClientRect();
6514
+ ve.setListener(
6528
6515
  "form",
6529
6516
  /* @__PURE__ */ n.jsx(
6530
- zl,
6517
+ Kl,
6531
6518
  {
6532
- parent: D,
6519
+ parent: E,
6533
6520
  onValue: R,
6534
- view: m,
6521
+ view: f,
6535
6522
  className: _,
6536
6523
  options: j,
6537
- order: g
6524
+ order: h
6538
6525
  },
6539
6526
  (/* @__PURE__ */ new Date()).getTime()
6540
6527
  )
6541
6528
  );
6542
- }, C = { field: "select", className: _ }, k = { onClick: I };
6543
- return l && (k.placeholder = l), h && (k.after = h), a && r && (k.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
6529
+ }, C = { field: "select", className: _ }, k = { onClick: D };
6530
+ return l && (k.placeholder = l), m && (k.after = m), a && r && (k.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
6544
6531
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
6545
- /* @__PURE__ */ n.jsx("dd", { ...k, ref: f, children: (E = j == null ? void 0 : j[p]) == null ? void 0 : E.n }),
6532
+ /* @__PURE__ */ n.jsx("dd", { ...k, ref: p, children: (S = j == null ? void 0 : j[v]) == null ? void 0 : S.n }),
6546
6533
  Object.keys(j || {}).length !== 0 && /* @__PURE__ */ n.jsx("s", { children: /* @__PURE__ */ n.jsx(
6547
6534
  "svg",
6548
6535
  {
@@ -6559,7 +6546,7 @@ function Wt({
6559
6546
  t && /* @__PURE__ */ n.jsx("em", { children: t })
6560
6547
  ] });
6561
6548
  }
6562
- const zl = ({
6549
+ const Kl = ({
6563
6550
  onValue: e,
6564
6551
  parent: t,
6565
6552
  view: a,
@@ -6567,11 +6554,11 @@ const zl = ({
6567
6554
  options: s,
6568
6555
  order: i
6569
6556
  }) => {
6570
- let [o, d] = x.useState(!0), l = () => {
6557
+ let [o, d] = g.useState(!0), l = () => {
6571
6558
  d(!1);
6572
- }, _ = (m) => {
6573
- d(!1), e(m);
6574
- }, c = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, h = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
6559
+ }, _ = (f) => {
6560
+ d(!1), e(f);
6561
+ }, c = window.innerHeight - t.y + t.height < 320 ? t.y - 312 : t.y + 33, m = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
6575
6562
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: o ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6576
6563
  /* @__PURE__ */ n.jsx(
6577
6564
  "div",
@@ -6588,7 +6575,7 @@ const zl = ({
6588
6575
  "data-select": "background " + a,
6589
6576
  style: {
6590
6577
  top: c + "px",
6591
- left: h + "px",
6578
+ left: m + "px",
6592
6579
  width: t.width
6593
6580
  },
6594
6581
  children: /* @__PURE__ */ n.jsx(Yl, { order: i, options: s, link: _ })
@@ -6619,19 +6606,19 @@ const zl = ({
6619
6606
  ) : ""
6620
6607
  ) });
6621
6608
  function Ut(e) {
6622
- let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), d = e.placeholder !== void 0 ? e.placeholder : "", l = (g) => {
6623
- c(e.options[g]), e.onValue({ value: g, name: e.name });
6624
- }, [_, c] = x.useState(
6609
+ let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && s), d = e.placeholder !== void 0 ? e.placeholder : "", l = (h) => {
6610
+ c(e.options[h]), e.onValue({ value: h, name: e.name });
6611
+ }, [_, c] = g.useState(
6625
6612
  e.default !== void 0 ? e.options[e.default] : e.default
6626
- ), h = (g) => {
6613
+ ), m = (h) => {
6627
6614
  if (!(r && s)) return;
6628
- const v = g.target.getBoundingClientRect();
6629
- Ce.setListener(
6615
+ const x = h.target.getBoundingClientRect();
6616
+ ve.setListener(
6630
6617
  "form",
6631
6618
  /* @__PURE__ */ n.jsx(
6632
6619
  Hl,
6633
6620
  {
6634
- parent: v,
6621
+ parent: x,
6635
6622
  onValue: l,
6636
6623
  view: e.view,
6637
6624
  options: e.options
@@ -6640,8 +6627,8 @@ function Ut(e) {
6640
6627
  )
6641
6628
  );
6642
6629
  };
6643
- const m = {};
6644
- return d && (m.placeholder = d), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
6630
+ const f = {};
6631
+ return d && (f.placeholder = d), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs(
6645
6632
  "dl",
6646
6633
  {
6647
6634
  "data-form": "select",
@@ -6650,9 +6637,9 @@ function Ut(e) {
6650
6637
  /* @__PURE__ */ n.jsx(
6651
6638
  "dd",
6652
6639
  {
6653
- onClick: h,
6640
+ onClick: m,
6654
6641
  "data-edit": (r && s) + "",
6655
- ...m,
6642
+ ...f,
6656
6643
  children: _
6657
6644
  }
6658
6645
  ),
@@ -6662,10 +6649,10 @@ function Ut(e) {
6662
6649
  );
6663
6650
  }
6664
6651
  const Hl = ({ onValue: e, parent: t, view: a, options: r }) => {
6665
- let [s, i] = x.useState(!0), o = () => {
6652
+ let [s, i] = g.useState(!0), o = () => {
6666
6653
  i(!1);
6667
- }, d = (h) => {
6668
- i(!1), e(h);
6654
+ }, d = (m) => {
6655
+ i(!1), e(m);
6669
6656
  }, l = Object.keys(r).length * 36, _ = window.innerHeight - t.y + t.height < l ? t.y - (l - 33) : t.y + 33, c = window.innerWidth - t.x < 265 ? t.x - 235 : t.x;
6670
6657
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: s ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6671
6658
  /* @__PURE__ */ n.jsx(
@@ -6685,15 +6672,15 @@ const Hl = ({ onValue: e, parent: t, view: a, options: r }) => {
6685
6672
  left: c + "px",
6686
6673
  width: t.width
6687
6674
  },
6688
- children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((h, m) => /* @__PURE__ */ n.jsx(
6675
+ children: /* @__PURE__ */ n.jsx("ul", { children: Object.keys(r).map((m, f) => /* @__PURE__ */ n.jsx(
6689
6676
  "li",
6690
6677
  {
6691
6678
  onClick: () => {
6692
- d(h);
6679
+ d(m);
6693
6680
  },
6694
- children: r[h]
6681
+ children: r[m]
6695
6682
  },
6696
- m
6683
+ f
6697
6684
  )) })
6698
6685
  }
6699
6686
  )
@@ -6711,13 +6698,13 @@ function Mt({
6711
6698
  edit: l = !0,
6712
6699
  show: _ = !0,
6713
6700
  active: c = !0,
6714
- after: h = "",
6715
- view: m,
6716
- module: g,
6717
- item: v,
6718
- className: f = ""
6701
+ after: m = "",
6702
+ view: f,
6703
+ module: h,
6704
+ item: x,
6705
+ className: p = ""
6719
6706
  }) {
6720
- let p = {};
6707
+ let v = {};
6721
6708
  switch (e) {
6722
6709
  case "Input":
6723
6710
  return /* @__PURE__ */ n.jsx(
@@ -6726,32 +6713,32 @@ function Mt({
6726
6713
  title: i,
6727
6714
  show: _,
6728
6715
  hide: d,
6729
- view: m,
6716
+ view: f,
6730
6717
  edit: l,
6731
6718
  active: c,
6732
6719
  value: t,
6733
6720
  onValue: a,
6734
6721
  name: r,
6735
6722
  placeholder: s,
6736
- className: f
6723
+ className: p
6737
6724
  }
6738
6725
  );
6739
6726
  case "Select":
6740
- return v && (p = ke.getSelect(parseInt(v)) ? ke.getSelect(parseInt(v)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
6727
+ return x && (v = ke.getSelect(parseInt(x)) ? ke.getSelect(parseInt(x)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
6741
6728
  Wt,
6742
6729
  {
6743
6730
  title: i,
6744
6731
  show: _,
6745
6732
  hide: d,
6746
- view: m,
6733
+ view: f,
6747
6734
  edit: l,
6748
6735
  active: c,
6749
6736
  value: parseInt(t || "0"),
6750
6737
  onValue: a,
6751
6738
  name: r,
6752
6739
  placeholder: s,
6753
- className: f,
6754
- options: p
6740
+ className: p,
6741
+ options: v
6755
6742
  }
6756
6743
  );
6757
6744
  case "Users":
@@ -6761,15 +6748,15 @@ function Mt({
6761
6748
  title: i,
6762
6749
  show: _,
6763
6750
  hide: d,
6764
- view: m,
6751
+ view: f,
6765
6752
  edit: l,
6766
6753
  active: c,
6767
6754
  value: t,
6768
6755
  onValue: a,
6769
6756
  name: r,
6770
6757
  placeholder: s,
6771
- className: f,
6772
- options: p
6758
+ className: p,
6759
+ options: v
6773
6760
  }
6774
6761
  );
6775
6762
  case "Date":
@@ -6779,14 +6766,14 @@ function Mt({
6779
6766
  title: i,
6780
6767
  show: _,
6781
6768
  hide: d,
6782
- view: m,
6769
+ view: f,
6783
6770
  edit: l,
6784
6771
  active: c,
6785
6772
  value: t,
6786
6773
  onValue: a,
6787
6774
  name: r,
6788
6775
  placeholder: s,
6789
- className: f
6776
+ className: p
6790
6777
  }
6791
6778
  );
6792
6779
  case "Phone":
@@ -6796,14 +6783,14 @@ function Mt({
6796
6783
  title: i,
6797
6784
  show: _,
6798
6785
  hide: d,
6799
- view: m,
6786
+ view: f,
6800
6787
  edit: l,
6801
6788
  active: c,
6802
6789
  value: t,
6803
6790
  onValue: a,
6804
6791
  name: r,
6805
6792
  placeholder: s,
6806
- className: f
6793
+ className: p
6807
6794
  }
6808
6795
  );
6809
6796
  case "Number":
@@ -6813,14 +6800,14 @@ function Mt({
6813
6800
  title: i,
6814
6801
  show: _,
6815
6802
  hide: d,
6816
- view: m,
6803
+ view: f,
6817
6804
  edit: l,
6818
6805
  active: c,
6819
6806
  value: t,
6820
6807
  onValue: a,
6821
6808
  name: r,
6822
6809
  placeholder: s,
6823
- className: f
6810
+ className: p
6824
6811
  }
6825
6812
  );
6826
6813
  case "Money":
@@ -6830,14 +6817,14 @@ function Mt({
6830
6817
  title: i,
6831
6818
  show: _,
6832
6819
  hide: d,
6833
- view: m,
6820
+ view: f,
6834
6821
  edit: l,
6835
6822
  active: c,
6836
6823
  value: t,
6837
6824
  onValue: a,
6838
6825
  name: r,
6839
6826
  placeholder: s,
6840
- className: f
6827
+ className: p
6841
6828
  }
6842
6829
  );
6843
6830
  case "Modal":
@@ -6847,16 +6834,16 @@ function Mt({
6847
6834
  title: i,
6848
6835
  show: _,
6849
6836
  hide: d,
6850
- view: m,
6837
+ view: f,
6851
6838
  edit: l,
6852
6839
  active: c,
6853
6840
  value: t,
6854
6841
  onValue: a,
6855
6842
  name: r || "",
6856
6843
  placeholder: s,
6857
- className: f,
6858
- options: p,
6859
- module: g || ""
6844
+ className: p,
6845
+ options: v,
6846
+ module: h || ""
6860
6847
  }
6861
6848
  );
6862
6849
  }
@@ -6873,40 +6860,40 @@ function ca({
6873
6860
  active: l = !0,
6874
6861
  after: _ = "",
6875
6862
  show: c = !0,
6876
- view: h,
6877
- maxLength: m,
6878
- onSave: g,
6879
- className: v = ""
6863
+ view: m,
6864
+ maxLength: f,
6865
+ onSave: h,
6866
+ className: x = ""
6880
6867
  }) {
6881
- let f = !!(o && (e === "" || e === void 0));
6882
- if (!(d && l) && !c || !(d && l) && f) return "";
6883
- let p = (R) => {
6868
+ let p = !!(o && (e === "" || e === void 0));
6869
+ if (!(d && l) && !c || !(d && l) && p) return "";
6870
+ let v = (R) => {
6884
6871
  t && t({ value: R.target.innerText, name: a });
6885
6872
  }, y = (R) => {
6886
- g && g({ value: R.target.innerText, name: a });
6873
+ h && h({ value: R.target.innerText, name: a });
6887
6874
  }, j = (R) => {
6888
- R.preventDefault(), navigator.clipboard.readText().then((I) => {
6889
- if (m) {
6875
+ R.preventDefault(), navigator.clipboard.readText().then((D) => {
6876
+ if (f) {
6890
6877
  let C = R.target.textContent.length;
6891
- if (C >= m) return;
6892
- m -= C, I = I.slice(0, m);
6878
+ if (C >= f) return;
6879
+ f -= C, D = D.slice(0, f);
6893
6880
  }
6894
- window.document.execCommand("insertText", !1, I);
6895
- }).catch((I) => {
6881
+ window.document.execCommand("insertText", !1, D);
6882
+ }).catch((D) => {
6896
6883
  });
6897
6884
  };
6898
- const S = {};
6899
- S.field = "text", v && (S.className = v);
6885
+ const I = {};
6886
+ I.field = "text", x && (I.className = x);
6900
6887
  const N = {};
6901
- return r && (N.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
6888
+ return r && (N.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
6902
6889
  s && /* @__PURE__ */ n.jsx("dt", { children: s }),
6903
6890
  /* @__PURE__ */ n.jsx(
6904
6891
  "dd",
6905
6892
  {
6906
6893
  onPaste: j,
6907
6894
  onBlur: y,
6908
- onInput: p,
6909
- contentEditable: d && l ? K.ContentEditable : "false",
6895
+ onInput: v,
6896
+ contentEditable: d && l ? z.ContentEditable : "false",
6910
6897
  ...N,
6911
6898
  suppressContentEditableWarning: !0,
6912
6899
  children: e
@@ -6927,19 +6914,19 @@ function da({
6927
6914
  active: l = !0,
6928
6915
  after: _ = "",
6929
6916
  show: c = !0,
6930
- view: h,
6931
- onSave: m,
6932
- className: g = ""
6917
+ view: m,
6918
+ onSave: f,
6919
+ className: h = ""
6933
6920
  }) {
6934
- let v = !!(o && (e === "" || e === void 0)), f = Y.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), p = x.useRef(null);
6935
- if (!(d && l) && !c || !(d && l) && v) return "";
6936
- let y = (I) => {
6937
- p.current.textContent = I, t && t({ value: I, name: a });
6938
- }, j = (I) => {
6939
- m && m({ value: I, name: a });
6940
- }, S = (I) => {
6941
- const C = I.target.getBoundingClientRect(), k = C.left, F = C.top;
6942
- Ce.setListener(
6921
+ let x = !!(o && (e === "" || e === void 0)), p = Y.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), v = g.useRef(null);
6922
+ if (!(d && l) && !c || !(d && l) && x) return "";
6923
+ let y = (D) => {
6924
+ v.current.textContent = D, t && t({ value: D, name: a });
6925
+ }, j = (D) => {
6926
+ f && f({ value: D, name: a });
6927
+ }, I = (D) => {
6928
+ const C = D.target.getBoundingClientRect(), k = C.left, F = C.top;
6929
+ ve.setListener(
6943
6930
  "form",
6944
6931
  /* @__PURE__ */ n.jsx(
6945
6932
  ql,
@@ -6947,24 +6934,24 @@ function da({
6947
6934
  positions: { x: k, y: F },
6948
6935
  onSave: j,
6949
6936
  onValue: y,
6950
- date: f
6937
+ date: p
6951
6938
  },
6952
6939
  (/* @__PURE__ */ new Date()).getTime()
6953
6940
  )
6954
6941
  );
6955
6942
  };
6956
6943
  const N = {};
6957
- N.field = "input", g && (N.className = g);
6944
+ N.field = "input", h && (N.className = h);
6958
6945
  const R = {};
6959
- return r && (R.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: h === "icon" ? /* @__PURE__ */ n.jsx(
6946
+ return r && (R.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: m === "icon" ? /* @__PURE__ */ n.jsx(
6960
6947
  "i",
6961
6948
  {
6962
6949
  "data-icon": "F043",
6963
- onClick: S
6950
+ onClick: I
6964
6951
  }
6965
6952
  ) : /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
6966
6953
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
6967
- /* @__PURE__ */ n.jsx("dd", { onClick: S, ref: p, ...R, children: f }),
6954
+ /* @__PURE__ */ n.jsx("dd", { onClick: I, ref: v, ...R, children: p }),
6968
6955
  i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
6969
6956
  ] }) });
6970
6957
  }
@@ -6972,92 +6959,92 @@ const ql = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6972
6959
  let s = r.split(":"), i = {
6973
6960
  h: Y.Number(2, s[0]),
6974
6961
  m: Y.Number(2, s[1])
6975
- }, o = "hour", [d, l] = x.useState({}), _ = !1, c = 0, h = 0, m = {
6976
- body: x.useRef(null),
6977
- time: x.useRef(null),
6978
- hour: x.useRef(null),
6979
- timeText: x.useRef(null),
6980
- hourText: x.useRef(null)
6962
+ }, o = "hour", [d, l] = g.useState({}), _ = !1, c = 0, m = 0, f = {
6963
+ body: g.useRef(null),
6964
+ time: g.useRef(null),
6965
+ hour: g.useRef(null),
6966
+ timeText: g.useRef(null),
6967
+ hourText: g.useRef(null)
6981
6968
  };
6982
- x.useEffect(() => {
6983
- l(m.body.current.getBoundingClientRect()), m.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", m.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
6984
- }, [m.body, m.hour, m.time, i.m, i.h]);
6985
- let g = () => {
6969
+ g.useEffect(() => {
6970
+ l(f.body.current.getBoundingClientRect()), f.hour.current.style.transform = "rotate(" + i.h * 15 + "deg)", f.time.current.style.transform = "rotate(" + i.m * 6 + "deg)";
6971
+ }, [f.body, f.hour, f.time, i.m, i.h]);
6972
+ let h = () => {
6986
6973
  _ = !0;
6987
- }, v = () => {
6988
- _ = !1, o = o === "hour" ? "time" : "hour", m.body.current.setAttribute("active", o);
6989
- }, f = (I) => {
6974
+ }, x = () => {
6975
+ _ = !1, o = o === "hour" ? "time" : "hour", f.body.current.setAttribute("active", o);
6976
+ }, p = (D) => {
6990
6977
  if (_) {
6991
6978
  let k = Math.atan2(
6992
- I.pageX - (d.x + 78),
6993
- I.pageY - (d.y + 78)
6979
+ D.pageX - (d.x + 78),
6980
+ D.pageY - (d.y + 78)
6994
6981
  ) * (180 / Math.PI) * -1 + 180;
6995
- m[o].current.style.transform = "rotate(" + k + "deg)", o === "hour" ? (i = {
6982
+ f[o].current.style.transform = "rotate(" + k + "deg)", o === "hour" ? (i = {
6996
6983
  ...i,
6997
6984
  h: Y.Number(2, parseInt(String(k / 15), 10))
6998
- }, m.hourText.current.textContent = i.h) : (i = {
6985
+ }, f.hourText.current.textContent = i.h) : (i = {
6999
6986
  ...i,
7000
6987
  m: Y.Number(2, parseInt(String(k / 6), 10))
7001
- }, m.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
6988
+ }, f.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
7002
6989
  }
7003
- }, p = (I) => {
6990
+ }, v = (D) => {
7004
6991
  if (o === "hour")
7005
- if (I.deltaY > 0) {
7006
- c += I.deltaY;
6992
+ if (D.deltaY > 0) {
6993
+ c += D.deltaY;
7007
6994
  let C = parseInt(String(c / 50));
7008
- if (h !== C) {
7009
- h = C;
6995
+ if (m !== C) {
6996
+ m = C;
7010
6997
  let k = parseInt(i.h, 10) + 1;
7011
- k = k > 23 ? 0 : k, i = { ...i, h: Y.Number(2, k) }, m.hourText.current.textContent = i.h, m[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6998
+ k = k > 23 ? 0 : k, i = { ...i, h: Y.Number(2, k) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
7012
6999
  }
7013
7000
  } else {
7014
- c -= I.deltaY;
7001
+ c -= D.deltaY;
7015
7002
  let C = parseInt(String(c / 50));
7016
- if (h !== C) {
7017
- h = C;
7003
+ if (m !== C) {
7004
+ m = C;
7018
7005
  let k = parseInt(i.h, 10) - 1;
7019
- k = k < 0 ? 23 : k, i = { ...i, h: Y.Number(2, k) }, m.hourText.current.textContent = i.h, m[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
7006
+ k = k < 0 ? 23 : k, i = { ...i, h: Y.Number(2, k) }, f.hourText.current.textContent = i.h, f[o].current.style.transform = "rotate(" + i.h * 15 + "deg)";
7020
7007
  }
7021
7008
  }
7022
- else if (I.deltaY > 0) {
7023
- c += I.deltaY;
7009
+ else if (D.deltaY > 0) {
7010
+ c += D.deltaY;
7024
7011
  let C = parseInt(String(c / 50));
7025
- if (h !== C) {
7026
- h = C;
7012
+ if (m !== C) {
7013
+ m = C;
7027
7014
  let k = parseInt(i.m, 10) + 1;
7028
- k = k > 59 ? 0 : k, i = { ...i, m: Y.Number(2, k) }, m.timeText.current.textContent = i.m, m[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7015
+ k = k > 59 ? 0 : k, i = { ...i, m: Y.Number(2, k) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7029
7016
  }
7030
7017
  } else {
7031
- c -= I.deltaY;
7018
+ c -= D.deltaY;
7032
7019
  let C = parseInt(String(c / 50));
7033
- if (h !== C) {
7034
- h = C;
7020
+ if (m !== C) {
7021
+ m = C;
7035
7022
  let k = parseInt(i.m, 10) - 1;
7036
- k = k < 0 ? 59 : k, i = { ...i, m: Y.Number(2, k) }, m.timeText.current.textContent = i.m, m[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7023
+ k = k < 0 ? 59 : k, i = { ...i, m: Y.Number(2, k) }, f.timeText.current.textContent = i.m, f[o].current.style.transform = "rotate(" + i.m * 6 + "deg)";
7037
7024
  }
7038
7025
  }
7039
7026
  a(i.h + ":" + i.m);
7040
- }, [y, j] = x.useState(!0), S = () => {
7027
+ }, [y, j] = g.useState(!0), I = () => {
7041
7028
  j(!1), t(i.h + ":" + i.m);
7042
7029
  }, N = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, R = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
7043
7030
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: y ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7044
7031
  /* @__PURE__ */ n.jsx(
7045
7032
  "div",
7046
7033
  {
7047
- className: xe.o,
7048
- onClick: () => S()
7034
+ className: ge.o,
7035
+ onClick: () => I()
7049
7036
  },
7050
7037
  (/* @__PURE__ */ new Date()).getTime()
7051
7038
  ),
7052
7039
  /* @__PURE__ */ n.jsxs(
7053
7040
  "div",
7054
7041
  {
7055
- className: xe.c,
7056
- onMouseDown: g,
7057
- onMouseUp: v,
7058
- onMouseMove: f,
7059
- onWheel: p,
7060
- ref: m.body,
7042
+ className: ge.c,
7043
+ onMouseDown: h,
7044
+ onMouseUp: x,
7045
+ onMouseMove: p,
7046
+ onWheel: v,
7047
+ ref: f.body,
7061
7048
  style: { top: N + "px", left: R + "px" },
7062
7049
  children: [
7063
7050
  /* @__PURE__ */ n.jsx("div", { className: "b" }),
@@ -7067,9 +7054,9 @@ const ql = ({ positions: e, onSave: t, onValue: a, date: r }) => {
7067
7054
  {
7068
7055
  className: [
7069
7056
  "hour",
7070
- o === "hour" ? xe.as : xe.ap
7057
+ o === "hour" ? ge.as : ge.ap
7071
7058
  ].join(" "),
7072
- ref: m.hourText,
7059
+ ref: f.hourText,
7073
7060
  children: i.h
7074
7061
  }
7075
7062
  ),
@@ -7081,15 +7068,15 @@ const ql = ({ positions: e, onSave: t, onValue: a, date: r }) => {
7081
7068
  {
7082
7069
  className: [
7083
7070
  "min",
7084
- o === "time" ? xe.as : xe.ap
7071
+ o === "time" ? ge.as : ge.ap
7085
7072
  ].join(" "),
7086
- ref: m.timeText,
7073
+ ref: f.timeText,
7087
7074
  children: i.m
7088
7075
  }
7089
7076
  )
7090
7077
  ] }),
7091
- /* @__PURE__ */ n.jsx("div", { className: "h", ref: m.hour }),
7092
- /* @__PURE__ */ n.jsx("div", { className: "t", ref: m.time })
7078
+ /* @__PURE__ */ n.jsx("div", { className: "h", ref: f.hour }),
7079
+ /* @__PURE__ */ n.jsx("div", { className: "t", ref: f.time })
7093
7080
  ]
7094
7081
  }
7095
7082
  )
@@ -7106,17 +7093,17 @@ function _a({
7106
7093
  id: d,
7107
7094
  reload: l
7108
7095
  }) {
7109
- const [_, c] = x.useState(!!a), h = t || r;
7110
- x.useEffect(() => {
7096
+ const [_, c] = g.useState(!!a), m = t || r;
7097
+ g.useEffect(() => {
7111
7098
  c(!!a);
7112
7099
  }, [a]);
7113
- let m = () => {
7100
+ let f = () => {
7114
7101
  e && e({ value: _ ? 0 : 1, name: i, id: d }), c(!_);
7115
7102
  };
7116
- const g = {};
7117
- return g.field = "check", s && (g.className = s), /* @__PURE__ */ n.jsxs("dl", { ...g, children: [
7118
- h ? /* @__PURE__ */ n.jsx("dt", { children: h }) : "",
7119
- /* @__PURE__ */ n.jsxs("dd", { onClick: m, children: [
7103
+ const h = {};
7104
+ return h.field = "check", s && (h.className = s), /* @__PURE__ */ n.jsxs("dl", { ...h, children: [
7105
+ m ? /* @__PURE__ */ n.jsx("dt", { children: m }) : "",
7106
+ /* @__PURE__ */ n.jsxs("dd", { onClick: f, children: [
7120
7107
  /* @__PURE__ */ n.jsx("span", { children: o }),
7121
7108
  /* @__PURE__ */ n.jsx(
7122
7109
  "div",
@@ -7129,8 +7116,8 @@ function _a({
7129
7116
  ] });
7130
7117
  }
7131
7118
  const Jl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
7132
- const [i, o] = x.useState(!!a);
7133
- x.useEffect(() => {
7119
+ const [i, o] = g.useState(!!a);
7120
+ g.useEffect(() => {
7134
7121
  o(!!a);
7135
7122
  }, [a]);
7136
7123
  let d = () => {
@@ -7146,8 +7133,8 @@ const Jl = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
7146
7133
  }
7147
7134
  );
7148
7135
  }, ua = ({ onValue: e, value: t, name: a, item: r }) => {
7149
- const [s, i] = x.useState(!!t);
7150
- x.useEffect(() => {
7136
+ const [s, i] = g.useState(!!t);
7137
+ g.useEffect(() => {
7151
7138
  i(!!t);
7152
7139
  }, [t]);
7153
7140
  let o = () => {
@@ -7175,38 +7162,38 @@ function fa({
7175
7162
  active: l = !0,
7176
7163
  after: _ = "",
7177
7164
  show: c = !0,
7178
- view: h,
7179
- max: m = 0,
7180
- onSave: g,
7181
- className: v = "",
7182
- separator: f = ","
7165
+ view: m,
7166
+ max: f = 0,
7167
+ onSave: h,
7168
+ className: x = "",
7169
+ separator: p = ","
7183
7170
  }) {
7184
- const [p, y] = x.useState(
7185
- e !== void 0 ? e.split(f) : []
7171
+ const [v, y] = g.useState(
7172
+ e !== void 0 ? e.split(p) : []
7186
7173
  );
7187
- x.useEffect(() => {
7188
- y(e !== void 0 ? e !== void 0 ? e.split(f) : [] : []);
7174
+ g.useEffect(() => {
7175
+ y(e !== void 0 ? e !== void 0 ? e.split(p) : [] : []);
7189
7176
  }, [e]);
7190
7177
  let j = () => {
7191
- if (m !== 0 && p.length >= m)
7192
- return me.Error("Слишком много");
7193
- y([...p, ""]);
7194
- }, S = (L) => {
7195
- p.splice(L, 1), p.length === 0 && p.push(""), y([...p]), g !== void 0 && g({ value: p.join(f), name: a });
7178
+ if (f !== 0 && v.length >= f)
7179
+ return fe.Error("Слишком много");
7180
+ y([...v, ""]);
7181
+ }, I = (L) => {
7182
+ v.splice(L, 1), v.length === 0 && v.push(""), y([...v]), h !== void 0 && h({ value: v.join(p), name: a });
7196
7183
  }, N = !!(o && (e === "" || e === void 0)), R = (L) => {
7197
7184
  };
7198
7185
  if (!(d && l) && !c || !(d && l) && N) return "";
7199
- const I = {};
7200
- I.field = "group", v && (I.className = v);
7201
- const C = (L, D) => {
7202
- K.Blur(L), p[D] = L.target.textContent, g && g({ value: p.join(f), name: a });
7186
+ const D = {};
7187
+ D.field = "group", x && (D.className = x);
7188
+ const C = (L, E) => {
7189
+ z.Blur(L), v[E] = L.target.textContent, h && h({ value: v.join(p), name: a });
7203
7190
  };
7204
- let k = (L, D) => {
7205
- p[D] = L.target.textContent, t && t({ value: p.join(f), name: a });
7191
+ let k = (L, E) => {
7192
+ v[E] = L.target.textContent, t && t({ value: v.join(p), name: a });
7206
7193
  }, F = (L) => {
7207
7194
  L.key === "Enter" && L.preventDefault();
7208
7195
  };
7209
- const E = ({ data: L }) => m !== 0 && L.length >= m ? "" : /* @__PURE__ */ n.jsx("i", { onClick: j, children: /* @__PURE__ */ n.jsxs(
7196
+ const S = ({ data: L }) => f !== 0 && L.length >= f ? "" : /* @__PURE__ */ n.jsx("i", { onClick: j, children: /* @__PURE__ */ n.jsxs(
7210
7197
  "svg",
7211
7198
  {
7212
7199
  xmlns: "http://www.w3.org/2000/svg",
@@ -7222,32 +7209,32 @@ function fa({
7222
7209
  ]
7223
7210
  }
7224
7211
  ) });
7225
- return /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
7212
+ return /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
7226
7213
  /* @__PURE__ */ n.jsxs("dt", { children: [
7227
7214
  s,
7228
- /* @__PURE__ */ n.jsx(E, { data: p })
7215
+ /* @__PURE__ */ n.jsx(S, { data: v })
7229
7216
  ] }),
7230
- /* @__PURE__ */ n.jsx("dd", { children: p.map((L, D) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
7217
+ /* @__PURE__ */ n.jsx("dd", { children: v.map((L, E) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
7231
7218
  /* @__PURE__ */ n.jsx(
7232
7219
  "span",
7233
7220
  {
7234
- onInput: (w) => k(w, D),
7221
+ onInput: (w) => k(w, E),
7235
7222
  edit: "true",
7236
7223
  name: a,
7237
7224
  placeholder: r,
7238
7225
  onPaste: R,
7239
- contentEditable: d && l ? K.ContentEditable : "false",
7226
+ contentEditable: d && l ? z.ContentEditable : "false",
7240
7227
  onKeyDown: F,
7241
- onBlur: (w) => C(w, D),
7228
+ onBlur: (w) => C(w, E),
7242
7229
  suppressContentEditableWarning: !0,
7243
- children: p[D]
7230
+ children: v[E]
7244
7231
  }
7245
7232
  ),
7246
7233
  /* @__PURE__ */ n.jsx(
7247
7234
  "i",
7248
7235
  {
7249
7236
  onClick: () => {
7250
- S(D);
7237
+ I(E);
7251
7238
  },
7252
7239
  children: /* @__PURE__ */ n.jsxs(
7253
7240
  "svg",
@@ -7267,7 +7254,7 @@ function fa({
7267
7254
  )
7268
7255
  }
7269
7256
  )
7270
- ] }, D)) }),
7257
+ ] }, E)) }),
7271
7258
  i && /* @__PURE__ */ n.jsx("em", { children: i })
7272
7259
  ] });
7273
7260
  }
@@ -7284,16 +7271,16 @@ function ma({
7284
7271
  show: l = !0,
7285
7272
  active: _ = !0,
7286
7273
  outFormat: c = "",
7287
- after: h = "",
7288
- view: m,
7289
- modal: g,
7290
- module: v,
7291
- options: f,
7292
- className: p
7274
+ after: m = "",
7275
+ view: f,
7276
+ modal: h,
7277
+ module: x,
7278
+ options: p,
7279
+ className: v
7293
7280
  }) {
7294
- const [y, j] = x.useState(Xl(e)), S = (I) => {
7295
- if (!(d && _) || !g) return;
7296
- let C = g.split(".");
7281
+ const [y, j] = g.useState(Xl(e)), I = (D) => {
7282
+ if (!(d && _) || !h) return;
7283
+ let C = h.split(".");
7297
7284
  Ne.Open(C[0], C[1], {
7298
7285
  callback: (k) => {
7299
7286
  if (t)
@@ -7313,17 +7300,17 @@ function ma({
7313
7300
  j(k);
7314
7301
  },
7315
7302
  onValue: t,
7316
- options: f,
7303
+ options: p,
7317
7304
  name: a,
7318
7305
  value: y
7319
7306
  });
7320
7307
  }, N = {};
7321
- N.field = "group", p && (N.className = p);
7308
+ N.field = "group", v && (N.className = v);
7322
7309
  const R = {};
7323
7310
  return r && (R.placeholder = r), o ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
7324
7311
  /* @__PURE__ */ n.jsxs("dt", { children: [
7325
7312
  s,
7326
- /* @__PURE__ */ n.jsx("i", { onClick: S, children: /* @__PURE__ */ n.jsx(
7313
+ /* @__PURE__ */ n.jsx("i", { onClick: I, children: /* @__PURE__ */ n.jsx(
7327
7314
  "svg",
7328
7315
  {
7329
7316
  width: "20",
@@ -7342,12 +7329,12 @@ function ma({
7342
7329
  "dd",
7343
7330
  {
7344
7331
  ...R,
7345
- onClick: S,
7332
+ onClick: I,
7346
7333
  edit: (d && _) + "",
7347
- "data-after": h,
7348
- children: Object.keys(y).map((I) => {
7334
+ "data-after": m,
7335
+ children: Object.keys(y).map((D) => {
7349
7336
  var C;
7350
- return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (C = f[I]) == null ? void 0 : C.label }, I);
7337
+ return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (C = p[D]) == null ? void 0 : C.label }, D);
7351
7338
  })
7352
7339
  }
7353
7340
  ),
@@ -7366,23 +7353,23 @@ function Nn({
7366
7353
  edit: l = !0,
7367
7354
  active: _ = !0,
7368
7355
  after: c = "",
7369
- show: h = !0,
7370
- type: m,
7371
- view: g,
7372
- onSave: v,
7373
- className: f = ""
7356
+ show: m = !0,
7357
+ type: f,
7358
+ view: h,
7359
+ onSave: x,
7360
+ className: p = ""
7374
7361
  }) {
7375
- const p = x.useId();
7376
- let y = !!(d && (e === "" || e === void 0)), [j, S] = x.useState(i);
7377
- if (!(l && _) && !h || !(l && _) && y) return "";
7378
- const N = async (I) => {
7379
- if (m) {
7380
- let C = Ql(I, m, e || "default");
7381
- t == null || t({ name: a, value: C }), S(URL.createObjectURL(C));
7362
+ const v = g.useId();
7363
+ let y = !!(d && (e === "" || e === void 0)), [j, I] = g.useState(i);
7364
+ if (!(l && _) && !m || !(l && _) && y) return "";
7365
+ const N = async (D) => {
7366
+ if (f) {
7367
+ let C = Ql(D, f, e || "default");
7368
+ t == null || t({ name: a, value: C }), I(URL.createObjectURL(C));
7382
7369
  } else
7383
- t == null || t({ name: a, value: I }), S(URL.createObjectURL(I));
7370
+ t == null || t({ name: a, value: D }), I(URL.createObjectURL(D));
7384
7371
  }, R = {};
7385
- return R.field = "file", f && (R.className = f), /* @__PURE__ */ n.jsxs("dl", { ...R, children: [
7372
+ return R.field = "file", p && (R.className = p), /* @__PURE__ */ n.jsxs("dl", { ...R, children: [
7386
7373
  s && /* @__PURE__ */ n.jsxs("dt", { children: [
7387
7374
  s,
7388
7375
  " "
@@ -7391,23 +7378,23 @@ function Nn({
7391
7378
  /* @__PURE__ */ n.jsx(
7392
7379
  "input",
7393
7380
  {
7394
- id: p,
7381
+ id: v,
7395
7382
  type: "file",
7396
7383
  multiple: !0,
7397
- onChange: (I) => {
7398
- I.target.files[0] && N(I.target.files[0]);
7384
+ onChange: (D) => {
7385
+ D.target.files[0] && N(D.target.files[0]);
7399
7386
  }
7400
7387
  }
7401
7388
  ),
7402
- /* @__PURE__ */ n.jsx("label", { htmlFor: p }),
7389
+ /* @__PURE__ */ n.jsx("label", { htmlFor: v }),
7403
7390
  /* @__PURE__ */ n.jsx("img", { src: j })
7404
7391
  ] }),
7405
7392
  o && /* @__PURE__ */ n.jsx("em", { children: o })
7406
7393
  ] });
7407
7394
  }
7408
7395
  const Vl = ({ children: e, onFiles: t }) => {
7409
- const a = x.useRef(null);
7410
- return x.useEffect(() => {
7396
+ const a = g.useRef(null);
7397
+ return g.useEffect(() => {
7411
7398
  if (a.preventDefaults) return;
7412
7399
  a.preventDefaults = (s) => {
7413
7400
  s.preventDefault(), s.stopPropagation();
@@ -7455,34 +7442,34 @@ function ha({ name: e, value: t, title: a, style: r, className: s }) {
7455
7442
  /* @__PURE__ */ n.jsx("dd", {})
7456
7443
  ] });
7457
7444
  }
7458
- const ue = {};
7445
+ const _e = {};
7459
7446
  function tc(e) {
7460
- const [t, a] = x.useState({}), r = x.useRef(e);
7461
- return ue.u = (s) => {
7447
+ const [t, a] = g.useState({}), r = g.useRef(e);
7448
+ return _e.u = (s) => {
7462
7449
  r.current = { ...r.current, [s.name]: s.value };
7463
- }, ue.n = (s) => {
7450
+ }, _e.n = (s) => {
7464
7451
  r.current = s, a(Date.now());
7465
- }, ue.r = () => {
7452
+ }, _e.r = () => {
7466
7453
  a(Date.now());
7467
- }, [r.current, ue.n];
7454
+ }, [r.current, _e.n];
7468
7455
  }
7469
7456
  function nc(e) {
7470
- ue.u(e), e.reload && ue.r();
7457
+ _e.u(e), e.reload && _e.r();
7471
7458
  }
7472
7459
  function ac() {
7473
- ue.r && ue.r();
7460
+ _e.r && _e.r();
7474
7461
  }
7475
7462
  function rc(e) {
7476
- const [t, a] = x.useState({}), r = x.useRef(e);
7477
- return ue.u = (s) => {
7463
+ const [t, a] = g.useState({}), r = g.useRef(e);
7464
+ return _e.u = (s) => {
7478
7465
  r.current = { ...r.current, [s.name]: s.value };
7479
- }, ue.n = (s) => {
7466
+ }, _e.n = (s) => {
7480
7467
  Object.keys(s).length > 0 ? Object.keys(s).forEach((i) => {
7481
7468
  r.current[i] = s[i];
7482
7469
  }) : r.current = {}, a(Date.now());
7483
- }, ue.r = () => {
7470
+ }, _e.r = () => {
7484
7471
  a(Date.now());
7485
- }, [r.current, ue.n];
7472
+ }, [r.current, _e.n];
7486
7473
  }
7487
7474
  const pd = {
7488
7475
  Color: ra,
@@ -7534,13 +7521,13 @@ function sc({
7534
7521
  hide: l = !1,
7535
7522
  edit: _ = !0,
7536
7523
  active: c = !0,
7537
- after: h = "",
7538
- show: m = !0,
7539
- view: g,
7540
- className: v = ""
7524
+ after: m = "",
7525
+ show: f = !0,
7526
+ view: h,
7527
+ className: x = ""
7541
7528
  }) {
7542
- _ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && c), x.useRef(null);
7543
- let p = s, y = !0, j = 0, S = (w, M) => {
7529
+ _ = _ !== void 0 ? _ : !0, c = c !== void 0 ? c : !0, l = !!(l && (e === "" || e === void 0)) && !(_ && c), g.useRef(null);
7530
+ let v = s, y = !0, j = 0, I = (w, M) => {
7544
7531
  let W = document.createRange(), Q = window.getSelection();
7545
7532
  W.setStart(M.childNodes[0], w), W.collapse(!0), Q.removeAllRanges(), Q.addRange(W), M.focus();
7546
7533
  }, N = (w) => {
@@ -7551,47 +7538,47 @@ function sc({
7551
7538
  }, R = (w) => {
7552
7539
  let M = 0, W = "", Q = w.replace(/\D/g, "");
7553
7540
  Q === "" && (y = !0);
7554
- let le = Q.split(""), ye = "";
7555
- le.forEach((qe) => {
7556
- y && (ye += qe, y && (j = ("" + ye).length, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), j > ("" + ye).length && (y = !0, p = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7541
+ let oe = Q.split(""), je = "";
7542
+ oe.forEach((qe) => {
7543
+ y && (je += qe, y && (j = ("" + je).length, v = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""), j > ("" + je).length && (y = !0, v = s.replace(new RegExp("[0-9]", "g"), "_"), W = ""));
7557
7544
  });
7558
- let Re = p.replace(/\D/g, "");
7559
- return Re.length >= Q.length && (Q = Re), { q: p.replace(/[_\d]/g, function() {
7545
+ let Re = v.replace(/\D/g, "");
7546
+ return Re.length >= Q.length && (Q = Re), { q: v.replace(/[_\d]/g, function() {
7560
7547
  return Q.charAt(M++) || "_";
7561
7548
  }), i: M, v: Q, f: W };
7562
- }, I = (w) => {
7549
+ }, D = (w) => {
7563
7550
  w.preventDefault(), navigator.clipboard.writeText(w.target.textContent.replace(/\D/g, "")).then(
7564
7551
  function() {
7565
- me.Copy("Данные в буфер обмене");
7552
+ fe.Copy("Данные в буфер обмене");
7566
7553
  },
7567
7554
  function(M) {
7568
7555
  }
7569
7556
  );
7570
7557
  }, C = R(e), k = (w) => {
7571
7558
  let M = R(w.target.textContent);
7572
- w.target.textContent = M.q, M.i = M.q.lastIndexOf(M.v.substr(-1)), M.i < M.q.length && M.q !== p ? M.i++ : M.i = M.q.indexOf("_"), S(M.i, w.target), t && t({ value: M.q.replace(/\D/g, ""), name: r });
7559
+ w.target.textContent = M.q, M.i = M.q.lastIndexOf(M.v.substr(-1)), M.i < M.q.length && M.q !== v ? M.i++ : M.i = M.q.indexOf("_"), I(M.i, w.target), t && t({ value: M.q.replace(/\D/g, ""), name: r });
7573
7560
  }, F = (w) => {
7574
7561
  w.key === "Enter" && w.preventDefault();
7575
7562
  };
7576
- const E = (w) => {
7577
- K.Blur(w), a && a({
7563
+ const S = (w) => {
7564
+ z.Blur(w), a && a({
7578
7565
  value: w.target.textContent.replace(/\D/g, ""),
7579
7566
  name: r
7580
7567
  });
7581
7568
  }, L = {};
7582
- L.field = "input", v && (L.className = v);
7583
- let D = {};
7584
- return _ && c ? (D.edit = "true", D.contentEditable = K.ContentEditable) : D.contentEditable = "false", i && (D.placeholder = i), h && (D.after = h), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...L, children: [
7569
+ L.field = "input", x && (L.className = x);
7570
+ let E = {};
7571
+ return _ && c ? (E.edit = "true", E.contentEditable = z.ContentEditable) : E.contentEditable = "false", i && (E.placeholder = i), m && (E.after = m), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...L, children: [
7585
7572
  o && /* @__PURE__ */ n.jsx("dt", { children: o }),
7586
7573
  /* @__PURE__ */ n.jsx(
7587
7574
  "dd",
7588
7575
  {
7589
- ...D,
7576
+ ...E,
7590
7577
  onPaste: N,
7591
7578
  onInput: k,
7592
7579
  onKeyDown: F,
7593
- onContextMenu: I,
7594
- onBlur: E,
7580
+ onContextMenu: D,
7581
+ onBlur: S,
7595
7582
  suppressContentEditableWarning: !0,
7596
7583
  children: C.q
7597
7584
  }
@@ -7666,19 +7653,19 @@ const xd = { Spinner: cc, Inline: dc }, _c = "_ph_1wjxu_1", uc = "_e_1wjxu_5", R
7666
7653
  loading: _
7667
7654
  }) => {
7668
7655
  const [c] = ee.useTabs(
7669
- o.map((g) => g.id).includes(ee.getTabs()) ? ee.getTabs() : i
7670
- ), [h, m] = x.useState(!1);
7671
- return x.useEffect(() => {
7672
- m(!0);
7656
+ o.map((h) => h.id).includes(ee.getTabs()) ? ee.getTabs() : i
7657
+ ), [m, f] = g.useState(!1);
7658
+ return g.useEffect(() => {
7659
+ f(!0);
7673
7660
  }, []), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7674
7661
  /* @__PURE__ */ n.jsxs("div", { className: [Rn.ph, d].join(" "), children: [
7675
7662
  /* @__PURE__ */ n.jsx(pc, { title: e, affter: t }),
7676
7663
  /* @__PURE__ */ n.jsx("div", { className: Rn.e }),
7677
7664
  /* @__PURE__ */ n.jsx(hc, { button: s })
7678
7665
  ] }),
7679
- o.length > 0 && /* @__PURE__ */ n.jsx(zn, { list: o, active: c }),
7666
+ o.length > 0 && /* @__PURE__ */ n.jsx(Kn, { list: o, active: c }),
7680
7667
  r,
7681
- h && /* @__PURE__ */ n.jsx(
7668
+ m && /* @__PURE__ */ n.jsx(
7682
7669
  mc,
7683
7670
  {
7684
7671
  onDynamicURL: a,
@@ -7690,16 +7677,16 @@ const xd = { Spinner: cc, Inline: dc }, _c = "_ph_1wjxu_1", uc = "_e_1wjxu_5", R
7690
7677
  ] });
7691
7678
  };
7692
7679
  let mc = ({ m: e, t, loading: a, onDynamicURL: r }) => {
7693
- const s = x.lazy(() => rt(e + "/pages/" + t + ".tsx"));
7694
- return r && r((e + "/" + t).toLowerCase()), /* @__PURE__ */ n.jsx(x.Suspense, { fallback: a, children: /* @__PURE__ */ n.jsx(s, {}) });
7680
+ const s = g.lazy(() => st(e + "/pages/" + t + ".tsx"));
7681
+ return r && r((e + "/" + t).toLowerCase()), /* @__PURE__ */ n.jsx(g.Suspense, { fallback: a, children: /* @__PURE__ */ n.jsx(s, {}) });
7695
7682
  }, hc = ({ button: e }) => {
7696
- const [t, a] = x.useState(e);
7683
+ const [t, a] = g.useState(e);
7697
7684
  return Ft("button", a), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7698
7685
  " ",
7699
7686
  t
7700
7687
  ] });
7701
7688
  }, pc = ({ title: e, affter: t }) => {
7702
- const [a, r] = x.useState(
7689
+ const [a, r] = g.useState(
7703
7690
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7704
7691
  e,
7705
7692
  " ",
@@ -7713,10 +7700,10 @@ const vd = {
7713
7700
  }, gc = "_s_t9swc_1", Tn = {
7714
7701
  s: gc
7715
7702
  };
7716
- let Kt;
7703
+ let zt;
7717
7704
  function xc({ className: e, placeholder: t }) {
7718
7705
  let a = (o) => {
7719
- Kt(o.target.textContent);
7706
+ zt(o.target.textContent);
7720
7707
  }, r = (o) => {
7721
7708
  o.key === "Enter" && o.preventDefault();
7722
7709
  }, s = (o) => {
@@ -7747,10 +7734,10 @@ function vc(e, t, a) {
7747
7734
  }), o;
7748
7735
  }
7749
7736
  function Cc(e) {
7750
- Kt = e;
7737
+ zt = e;
7751
7738
  }
7752
7739
  function jc(e) {
7753
- Kt = e;
7740
+ zt = e;
7754
7741
  }
7755
7742
  const Cd = { Field: xc, Run: vc, Get: Cc, useValue: jc };
7756
7743
  function yc() {
@@ -7833,7 +7820,7 @@ function kc() {
7833
7820
  const bc = "_f_q3r0i_1", Sc = {
7834
7821
  f: bc
7835
7822
  };
7836
- let fe = {};
7823
+ let ue = {};
7837
7824
  function Ec(e, t) {
7838
7825
  switch (t.type) {
7839
7826
  case "open":
@@ -7865,7 +7852,7 @@ function Ec(e, t) {
7865
7852
  r = { ...e.take, ...r }, e.active = !1;
7866
7853
  for (let s in r)
7867
7854
  r[s] !== "999" && (e.active = !0);
7868
- return fe.get(r, e.active), {
7855
+ return ue.get(r, e.active), {
7869
7856
  ...e,
7870
7857
  take: r,
7871
7858
  active: e.active
@@ -7873,7 +7860,7 @@ function Ec(e, t) {
7873
7860
  case "exit":
7874
7861
  for (let s in e.take)
7875
7862
  e.take[s] = "999";
7876
- return fe.get && fe.get([], !1), {
7863
+ return ue.get && ue.get([], !1), {
7877
7864
  ...e,
7878
7865
  size: 0,
7879
7866
  active: !1,
@@ -7885,7 +7872,7 @@ function Ec(e, t) {
7885
7872
  }
7886
7873
  }
7887
7874
  function Ic() {
7888
- const [e, t] = x.useReducer(Ec, {
7875
+ const [e, t] = g.useReducer(Ec, {
7889
7876
  open: !1,
7890
7877
  view: null,
7891
7878
  data: {},
@@ -7893,11 +7880,11 @@ function Ic() {
7893
7880
  size: 0,
7894
7881
  active: !1
7895
7882
  });
7896
- return fe.set = (a) => {
7883
+ return ue.set = (a) => {
7897
7884
  t({ type: "data", data: a });
7898
- }, fe.count = (a) => {
7885
+ }, ue.count = (a) => {
7899
7886
  t({ type: "size", size: a });
7900
- }, fe.reset = () => {
7887
+ }, ue.reset = () => {
7901
7888
  t({ type: "exit" });
7902
7889
  }, /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7903
7890
  /* @__PURE__ */ n.jsxs(
@@ -7951,13 +7938,13 @@ function Ic() {
7951
7938
  ] });
7952
7939
  }
7953
7940
  function Dc(e) {
7954
- fe.get = e;
7941
+ ue.get = e;
7955
7942
  }
7956
7943
  function Nc(e) {
7957
- fe.set !== void 0 && fe.set(e);
7944
+ ue.set !== void 0 && ue.set(e);
7958
7945
  }
7959
7946
  function Rc(e) {
7960
- fe.reset !== void 0 && fe.reset(e);
7947
+ ue.reset !== void 0 && ue.reset(e);
7961
7948
  }
7962
7949
  function Tc(e, t, a, r) {
7963
7950
  let s = [], i = 1, o = 0, d = {}, l = 50;
@@ -7972,7 +7959,7 @@ function Tc(e, t, a, r) {
7972
7959
  }), d;
7973
7960
  }
7974
7961
  function ga(e) {
7975
- fe.count(e);
7962
+ ue.count(e);
7976
7963
  }
7977
7964
  function Lc({ data: e, state: t, dispatch: a }) {
7978
7965
  let r = () => {
@@ -8030,7 +8017,7 @@ function Mc({ data: e, head: t, state: a, dispatch: r, type: s }) {
8030
8017
  const jd = { Button: Ic, useValue: Dc, Set: Nc, Run: Tc, Count: ga, Reset: Rc }, Bc = "_n_euuvm_1", $c = {
8031
8018
  n: Bc
8032
8019
  };
8033
- let it = {}, jt = [];
8020
+ let ot = {}, jt = [];
8034
8021
  const Fc = (e, t) => {
8035
8022
  switch (t.type) {
8036
8023
  case "open":
@@ -8072,7 +8059,7 @@ const Fc = (e, t) => {
8072
8059
  r = { ...e.take, ...r }, e.active = !1;
8073
8060
  for (let s in r)
8074
8061
  r[s] !== "999" && (e.active = !0);
8075
- return it.get(r, e.active), {
8062
+ return ot.get(r, e.active), {
8076
8063
  ...e,
8077
8064
  take: r,
8078
8065
  active: e.active
@@ -8084,16 +8071,16 @@ const Fc = (e, t) => {
8084
8071
  }
8085
8072
  };
8086
8073
  function Pc(e) {
8087
- it.fn({ action: "add", data: e });
8074
+ ot.fn({ action: "add", data: e });
8088
8075
  }
8089
8076
  function Ac(e) {
8090
- it.fn({ action: "add", data: e });
8077
+ ot.fn({ action: "add", data: e });
8091
8078
  }
8092
8079
  function Oc(e) {
8093
- it.fn = e;
8080
+ ot.fn = e;
8094
8081
  }
8095
8082
  function Zc() {
8096
- const [e, t] = x.useReducer(Fc, {
8083
+ const [e, t] = g.useReducer(Fc, {
8097
8084
  open: !1,
8098
8085
  active: !1,
8099
8086
  news: [],
@@ -8105,7 +8092,7 @@ function Zc() {
8105
8092
  jt.push(r.data);
8106
8093
  break;
8107
8094
  }
8108
- }), x.useEffect(() => {
8095
+ }), g.useEffect(() => {
8109
8096
  setInterval(() => {
8110
8097
  jt.forEach((r, s) => {
8111
8098
  t({
@@ -8175,7 +8162,7 @@ const Gc = ({ data: e, dispatch: t }) => {
8175
8162
  p: Wc,
8176
8163
  l: Uc
8177
8164
  };
8178
- function Kc(e) {
8165
+ function zc(e) {
8179
8166
  let t = 3, a = e.page, r = e.count, s = [], i = () => {
8180
8167
  s.push({ page: 1 }), s.push({ text: "..." });
8181
8168
  }, o = () => {
@@ -8193,7 +8180,7 @@ function Kc(e) {
8193
8180
  /* @__PURE__ */ n.jsx("i", { onClick: () => e.onChangePage(a + 1), children: /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ n.jsx("path", { d: "M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z" }) }) })
8194
8181
  ] });
8195
8182
  }
8196
- function zc(e, t) {
8183
+ function Kc(e, t) {
8197
8184
  switch (t.type) {
8198
8185
  case "load":
8199
8186
  return {
@@ -8215,7 +8202,7 @@ function zc(e, t) {
8215
8202
  }
8216
8203
  }
8217
8204
  function va({ load: e, list: t, item: a }) {
8218
- const r = x.useRef(null), [s, i] = x.useReducer(zc, {
8205
+ const r = g.useRef(null), [s, i] = g.useReducer(Kc, {
8219
8206
  load: !1,
8220
8207
  list: [],
8221
8208
  data: {},
@@ -8223,7 +8210,7 @@ function va({ load: e, list: t, item: a }) {
8223
8210
  wait: !1,
8224
8211
  item: a
8225
8212
  });
8226
- x.useEffect(() => {
8213
+ g.useEffect(() => {
8227
8214
  t !== null && i({ type: "load", load: e, data: t });
8228
8215
  }, [e]);
8229
8216
  let o = (d) => {
@@ -8231,7 +8218,7 @@ function va({ load: e, list: t, item: a }) {
8231
8218
  if (d > s.size) return d = s.size;
8232
8219
  i({ type: "page", page: d });
8233
8220
  };
8234
- return x.useEffect(() => {
8221
+ return g.useEffect(() => {
8235
8222
  }, [s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8236
8223
  /* @__PURE__ */ n.jsx("div", { className: xa.l, ref: r, children: /* @__PURE__ */ n.jsx(Xn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((d) => /* @__PURE__ */ n.jsx(s.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
8237
8224
  /* @__PURE__ */ n.jsx("i", {}),
@@ -8239,7 +8226,7 @@ function va({ load: e, list: t, item: a }) {
8239
8226
  /* @__PURE__ */ n.jsx("i", {})
8240
8227
  ] }) }) }),
8241
8228
  s.load && s.list !== void 0 ? /* @__PURE__ */ n.jsx(
8242
- Kc,
8229
+ zc,
8243
8230
  {
8244
8231
  page: s.page,
8245
8232
  count: s.size,
@@ -8325,8 +8312,8 @@ const Sd = { Get: Xc }, Ed = function({
8325
8312
  tabs: i,
8326
8313
  modules: o
8327
8314
  }) {
8328
- const [d] = ee.useTabs(s), [l, _] = x.useState(!1);
8329
- return x.useEffect(() => {
8315
+ const [d] = ee.useTabs(s), [l, _] = g.useState(!1);
8316
+ return g.useEffect(() => {
8330
8317
  _(!0);
8331
8318
  }, []), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8332
8319
  /* @__PURE__ */ n.jsxs("div", { className: "list-info", children: [
@@ -8339,19 +8326,19 @@ const Sd = { Get: Xc }, Ed = function({
8339
8326
  ] });
8340
8327
  };
8341
8328
  let Vc = ({ modules: e, t }) => {
8342
- const a = x.lazy(() => rt(e + "/pages/" + t + ".tsx"));
8343
- return /* @__PURE__ */ n.jsx(x.Suspense, { fallback: "", children: /* @__PURE__ */ n.jsx(a, {}) });
8329
+ const a = g.lazy(() => st(e + "/pages/" + t + ".tsx"));
8330
+ return /* @__PURE__ */ n.jsx(g.Suspense, { fallback: "", children: /* @__PURE__ */ n.jsx(a, {}) });
8344
8331
  }, Qc = ({ button: e }) => {
8345
- const [t, a] = x.useState(e);
8346
- return Ce.useListener("button", a), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8332
+ const [t, a] = g.useState(e);
8333
+ return ve.useListener("button", a), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
8347
8334
  " ",
8348
8335
  t
8349
8336
  ] });
8350
8337
  };
8351
8338
  const Id = { Open: to };
8352
8339
  function Dd({ active: e, onActive: t, id: a, name: r }) {
8353
- const [s, i] = x.useState(!!e);
8354
- x.useEffect(() => {
8340
+ const [s, i] = g.useState(!!e);
8341
+ g.useEffect(() => {
8355
8342
  i(!!e);
8356
8343
  }, [e]);
8357
8344
  let o = () => {
@@ -8375,9 +8362,9 @@ function Dd({ active: e, onActive: t, id: a, name: r }) {
8375
8362
  }
8376
8363
  export {
8377
8364
  Uo as Action,
8378
- ze as Alert,
8365
+ Ke as Alert,
8379
8366
  nd as Animation,
8380
- Ke as Api,
8367
+ ze as Api,
8381
8368
  _d as Badge,
8382
8369
  od as Bookmarks,
8383
8370
  ad as Browser,
@@ -8387,8 +8374,8 @@ export {
8387
8374
  En as Component,
8388
8375
  A as Crypto,
8389
8376
  ud as DataBase,
8390
- Ce as Event,
8391
- Ce as Events,
8377
+ ve as Event,
8378
+ ve as Events,
8392
8379
  hd as Files,
8393
8380
  jd as Filter,
8394
8381
  pd as Form,
@@ -8403,7 +8390,7 @@ export {
8403
8390
  cd as Lite,
8404
8391
  xd as Loading,
8405
8392
  Ne as Modal,
8406
- me as Notice,
8393
+ fe as Notice,
8407
8394
  yd as Notifications,
8408
8395
  wd as Pagination,
8409
8396
  Id as Phone,