elcrm 0.8.13 → 0.8.15

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,19 +1,19 @@
1
- import './index.css';var ka = Object.defineProperty;
2
- var ya = (e, t, a) => t in e ? ka(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var dt = (e, t, a) => (ya(e, typeof t != "symbol" ? t + "" : t, a), a);
4
- import x, { createElement as ja } from "react";
1
+ import './index.css';var ya = Object.defineProperty;
2
+ var ja = (e, t, a) => t in e ? ya(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var dt = (e, t, a) => (ja(e, typeof t != "symbol" ? t + "" : t, a), a);
4
+ import x, { createElement as ba } from "react";
5
5
  let bt = {};
6
- const ba = (e) => {
6
+ const wa = (e) => {
7
7
  bt = e;
8
- }, wa = (e) => bt.enCode(e), Sa = (e) => bt.deCode(e), D = { enCode: wa, deCode: Sa, New: ba }, w = {}, X = {}, be = {}, mn = {}, oe = {};
8
+ }, Sa = (e) => bt.enCode(e), Ea = (e) => bt.deCode(e), D = { enCode: Sa, deCode: Ea, New: wa }, w = {}, X = {}, be = {}, mn = {}, oe = {};
9
9
  let wt = "M06";
10
- function Ea(e) {
10
+ function Na(e) {
11
11
  wt = e;
12
12
  }
13
- function Na() {
13
+ function Ra() {
14
14
  return wt;
15
15
  }
16
- function Ra(e) {
16
+ function Ta(e) {
17
17
  if (localStorage.getItem("d")) {
18
18
  let a = sessionStorage.getItem("f");
19
19
  a ? (a = D.deCode(a), a || Q(), w.id = a.id, w.tab = a.tab, w.page = a.page, w.module = a.module, w.time = a.time, w.payment = { active: !0 }, w.module_admin = a.module_admin) : (w.id = 0, w.tab = "", w.page = "Main", w.module = w.module || wt);
@@ -28,7 +28,7 @@ function Q() {
28
28
  (e) => localStorage.removeItem(e)
29
29
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
30
30
  }
31
- function Ta(e) {
31
+ function Ia(e) {
32
32
  e = e.split("/"), w.page = "Main", w.module = e[0], w.tab = e[1], w.id = 0, sessionStorage.setItem(
33
33
  "f",
34
34
  D.enCode({
@@ -40,21 +40,21 @@ function Ta(e) {
40
40
  })
41
41
  ), X.page(w.page);
42
42
  }
43
- function Ia(e) {
43
+ function Da(e) {
44
44
  return localStorage.setItem("d", e);
45
45
  }
46
- function Da() {
46
+ function Ma() {
47
47
  let e = localStorage.getItem("d");
48
48
  return e !== "" && e !== "undefined" && e !== null ? localStorage.getItem("d") : !1;
49
49
  }
50
- function Ma(e) {
50
+ function Fa(e) {
51
51
  return localStorage.setItem("a", e);
52
52
  }
53
- function Fa() {
53
+ function La() {
54
54
  let e = localStorage.getItem("a");
55
55
  return e !== "" && e !== "undefined" && e !== null ? e : !1;
56
56
  }
57
- function La(e) {
57
+ function $a(e) {
58
58
  localStorage.setItem("p", D.enCode(e));
59
59
  }
60
60
  function mt() {
@@ -65,43 +65,46 @@ function mt() {
65
65
  } else
66
66
  return Q(), !1;
67
67
  }
68
- function $a() {
68
+ function Pa() {
69
69
  const [e, t] = x.useState(fn()), a = (r) => {
70
70
  t(r);
71
71
  };
72
72
  return X.page = a, [e];
73
73
  }
74
- function Pa(e) {
74
+ function Ba(e) {
75
75
  w.page = e, sessionStorage.setItem("f", D.enCode(w)), X.page(e);
76
76
  }
77
77
  function fn() {
78
78
  return w.page;
79
79
  }
80
- function Ba() {
80
+ function Oa() {
81
81
  const [e, t] = x.useState(hn()), a = (r) => {
82
82
  t(r);
83
83
  };
84
84
  return X.module = a, [e];
85
85
  }
86
- function Oa(e, t) {
86
+ function Aa(e, t) {
87
87
  w.module = e, sessionStorage.setItem("f", D.enCode(w)), t !== "false" && X.module(e);
88
88
  }
89
89
  function hn() {
90
90
  return w.module;
91
91
  }
92
- function Aa(e) {
93
- const [t, a] = x.useState(Je() || e), r = (s) => {
94
- a(s);
95
- };
96
- return X.tabs = r, [t];
92
+ function Za(e) {
93
+ if (typeof e == "string") {
94
+ const [t, a] = x.useState(Je() || e), r = (s) => {
95
+ a(s);
96
+ };
97
+ return X.tabs = r, [t];
98
+ } else
99
+ X.tabs = e;
97
100
  }
98
- function Za(e, t) {
101
+ function za(e, t) {
99
102
  w.tab = e, sessionStorage.setItem("f", D.enCode(w)), t !== "false" && X.tabs(e);
100
103
  }
101
104
  function Je() {
102
105
  return w.tab;
103
106
  }
104
- function za(e) {
107
+ function Ga(e) {
105
108
  const [t, a] = x.useState(w.id), r = (s) => {
106
109
  if (e)
107
110
  return e(s);
@@ -109,32 +112,32 @@ function za(e) {
109
112
  };
110
113
  return X.id = r, [t];
111
114
  }
112
- function Ga(e) {
115
+ function Ka(e) {
113
116
  X.id = e;
114
117
  }
115
- function Ka(e, t = !0) {
118
+ function Wa(e, t = !0) {
116
119
  w.id = e, sessionStorage.setItem("f", D.enCode(w)), t && X.id(e);
117
120
  }
118
- function Wa() {
121
+ function Ua() {
119
122
  return w.id;
120
123
  }
121
- function Ua(e, t, a) {
124
+ function Va(e, t, a) {
122
125
  w.module = e, w.id = a, w.tab = t, sessionStorage.setItem("f", D.enCode(w)), X.module(e), X.tabs(t);
123
126
  }
124
- function Va(e) {
127
+ function Ya(e) {
125
128
  be.data = e[0], delete be.data.id, document.body.dataset.theme = be.data.s15, localStorage.setItem("s", D.enCode(be.data));
126
129
  }
127
- function Ya(e, t) {
130
+ function Ha(e, t) {
128
131
  be.data[e] = t, localStorage.setItem("s", D.enCode(be.data));
129
132
  }
130
- function Ha(e) {
133
+ function qa(e) {
131
134
  let t = localStorage.getItem("s");
132
135
  return t === null ? {} : (t = D.deCode(t), t ? e !== void 0 ? t[e] : t : Q());
133
136
  }
134
137
  function xn(e) {
135
138
  localStorage.setItem("m", D.enCode({ data: e }));
136
139
  }
137
- function qa() {
140
+ function Ja() {
138
141
  let e = localStorage.getItem("m");
139
142
  if (e !== "" && e !== "undefined" && e !== null) {
140
143
  let t = localStorage.getItem("m"), a = D.deCode(t);
@@ -149,7 +152,7 @@ function qa() {
149
152
  } else
150
153
  return Q(), !1;
151
154
  }
152
- function Ja(e) {
155
+ function Xa(e) {
153
156
  X.sort = e;
154
157
  }
155
158
  function gn(e) {
@@ -175,7 +178,7 @@ function vn(e, t) {
175
178
  function Oe(e) {
176
179
  oe.data = e, localStorage.setItem("q", D.enCode(oe.data));
177
180
  }
178
- function Xa(e, t) {
181
+ function Qa(e, t) {
179
182
  oe.data = { ...oe.data, [e]: t }, localStorage.setItem("q", D.enCode(oe.data));
180
183
  }
181
184
  function ke(e, t) {
@@ -185,22 +188,22 @@ function ke(e, t) {
185
188
  }
186
189
  return e === void 0 && t === void 0 ? oe.data : e !== void 0 && t === void 0 ? oe.data[e] : oe.data[e][t];
187
190
  }
188
- function Qa(e) {
191
+ function er(e) {
189
192
  mn.data = e;
190
193
  }
191
- function er(e) {
194
+ function tr(e) {
192
195
  return mn.data[e];
193
196
  }
194
- function tr(e) {
197
+ function nr(e) {
195
198
  w.payment = e;
196
199
  }
197
- function nr() {
200
+ function ar() {
198
201
  return w.payment;
199
202
  }
200
203
  function Cn(e) {
201
204
  localStorage.setItem("u", D.enCode(e));
202
205
  }
203
- function ar() {
206
+ function rr() {
204
207
  let e = localStorage.getItem("u");
205
208
  if (e !== "" && e !== "undefined" && e !== null) {
206
209
  let t = D.deCode(e);
@@ -211,7 +214,7 @@ function ar() {
211
214
  function en(e) {
212
215
  localStorage.setItem("e", D.enCode(e));
213
216
  }
214
- function rr() {
217
+ function sr() {
215
218
  let e = localStorage.getItem("e");
216
219
  if (e !== "" && e !== "undefined" && e !== null)
217
220
  try {
@@ -223,49 +226,63 @@ function rr() {
223
226
  else
224
227
  return {};
225
228
  }
226
- function sr(e) {
227
- return w[e] === void 0 ? (w[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : w[e];
228
- }
229
229
  function ir(e) {
230
+ const t = (a) => {
231
+ let r = localStorage.getItem(a);
232
+ if (r !== "" && r !== "undefined" && r !== null)
233
+ try {
234
+ let s = D.deCode(r);
235
+ if (!s)
236
+ return;
237
+ w[a] = { is: !0, time: s.time, data: s.data };
238
+ } catch {
239
+ w[a] = { is: !1, time: 0, data: {} };
240
+ }
241
+ else
242
+ w[a] = { is: !1, time: 0, data: {} };
243
+ };
244
+ e.forEach((a) => t(a));
245
+ }
246
+ function or(e) {
230
247
  return w[e] === void 0 ? (w[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : w[e];
231
248
  }
232
- function or(e, t) {
249
+ function lr(e, t) {
233
250
  w[e] = { data: t.data, time: t.time }, localStorage.setItem(e, D.enCode(w[e]));
234
251
  }
235
- function lr(e, t, a) {
252
+ function cr(e, t, a) {
236
253
  w[e].time = a, w[e].data[t.item][t.name] = t.value, localStorage.setItem(e, D.enCode(w[e]));
237
254
  }
238
255
  const se = {
239
- setSSID: Ia,
240
- getSSID: Da,
256
+ setSSID: Da,
257
+ getSSID: Ma,
241
258
  getPORT: mt,
242
- setPORT: La,
243
- setAUTH: Ma,
244
- getAUTH: Fa,
259
+ setPORT: $a,
260
+ setAUTH: Fa,
261
+ getAUTH: La,
245
262
  Logaut: Q,
246
- Start: Ta,
263
+ Start: Ia,
247
264
  setMenu: xn,
248
- getMenu: qa,
249
- useSort: Ja,
265
+ getMenu: Ja,
266
+ useSort: Xa,
250
267
  setSort: gn,
251
268
  getSort: ft,
252
269
  setCompany: pn,
253
270
  getCompany: vn,
254
271
  setSelect: Oe,
255
- addSelect: Xa,
272
+ addSelect: Qa,
256
273
  getSelect: ke,
257
- setApi: Qa,
258
- getApi: er,
259
- setPayment: tr,
260
- getPayment: nr,
274
+ setApi: er,
275
+ getApi: tr,
276
+ setPayment: nr,
277
+ getPayment: ar,
261
278
  setUser: Cn,
262
- getUser: ar,
263
- getDefaultModules: Na,
264
- getBase: ir,
265
- setBase: or,
266
- editBase: lr,
267
- loadBase: sr
268
- }, kn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", cr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([cr(kn)], { type: "text/javascript;charset=utf-8" });
279
+ getUser: rr,
280
+ getDefaultModules: Ra,
281
+ getBase: or,
282
+ setBase: lr,
283
+ editBase: cr,
284
+ loadBase: ir
285
+ }, kn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", dr = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), tn = typeof window < "u" && window.Blob && new Blob([dr(kn)], { type: "text/javascript;charset=utf-8" });
269
286
  function yn(e) {
270
287
  let t;
271
288
  try {
@@ -289,29 +306,29 @@ function yn(e) {
289
306
  }
290
307
  }
291
308
  const ue = {};
292
- function dr(e) {
309
+ function _r(e) {
293
310
  return e && (ue.s = e), ue.s;
294
311
  }
295
- function _r(e) {
312
+ function ur(e) {
296
313
  return e && (ue.a = e), ue.a;
297
314
  }
298
- function ur(e) {
315
+ function mr(e) {
299
316
  return e && (ue.c = e), ue.c;
300
317
  }
301
- function mr(e) {
318
+ function fr(e) {
302
319
  return e && (ue.h = e), ue.h;
303
320
  }
304
- const St = { version: { Api: _r, Server: dr, Client: ur }, Host: mr };
305
- let fr = "api", hr = "elcrm", xr = "online";
306
- function gr() {
321
+ const St = { version: { Api: ur, Server: _r, Client: mr }, Host: fr };
322
+ let hr = "api", xr = "elcrm", gr = "online";
323
+ function pr() {
307
324
  let e = se.getPORT(), t = "", a = "";
308
325
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, a = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", a = "https://" + e.address + "/files"), {
309
326
  documents: t,
310
327
  files: a
311
328
  };
312
329
  }
313
- let jn = `${fr}.${hr}.${xr}`;
314
- function pr(e) {
330
+ let jn = `${hr}.${xr}.${gr}`;
331
+ function vr(e) {
315
332
  return "https://" + se.getPORT().address + "/audio/" + e;
316
333
  }
317
334
  function Xe(e, t = {}, a = se.getAUTH()) {
@@ -327,7 +344,7 @@ function Xe(e, t = {}, a = se.getAUTH()) {
327
344
  });
328
345
  });
329
346
  }
330
- function vr(e, t = {}, a = se.getAUTH()) {
347
+ function Cr(e, t = {}, a = se.getAUTH()) {
331
348
  return new Promise((r) => {
332
349
  const s = new yn();
333
350
  s.onmessage = (i) => {
@@ -340,7 +357,7 @@ function vr(e, t = {}, a = se.getAUTH()) {
340
357
  });
341
358
  });
342
359
  }
343
- function Cr(e, t = {}, a) {
360
+ function kr(e, t = {}, a) {
344
361
  const [r, s] = x.useState({ status: "load" }), i = async (l) => {
345
362
  let c = await Xe(e, l, a);
346
363
  s(c);
@@ -353,7 +370,7 @@ let bn = {
353
370
  "Content-type": "application/json;charset=utf-8",
354
371
  ssid: se.getAUTH() || ""
355
372
  };
356
- async function kr(e, t, a = {}) {
373
+ async function yr(e, t, a = {}) {
357
374
  try {
358
375
  return await (await Xe("https://" + e + "/" + t, {
359
376
  method: "POST",
@@ -364,7 +381,7 @@ async function kr(e, t, a = {}) {
364
381
  return { status: "error" };
365
382
  }
366
383
  }
367
- async function yr(e, t = {}) {
384
+ async function jr(e, t = {}) {
368
385
  try {
369
386
  return await (await Xe("https://tb.elcrm.online/v1/" + e, {
370
387
  method: "POST",
@@ -375,7 +392,7 @@ async function yr(e, t = {}) {
375
392
  return { status: "error" };
376
393
  }
377
394
  }
378
- const nn = { audio: pr, fetch: Xe, modules: vr, remoute: kr, url: gr, telegram: yr, use: Cr };
395
+ const nn = { audio: vr, fetch: Xe, modules: Cr, remoute: yr, url: pr, telegram: jr, use: kr };
379
396
  var ht = { exports: {} }, De = {};
380
397
  /**
381
398
  * @license React
@@ -387,7 +404,7 @@ var ht = { exports: {} }, De = {};
387
404
  * LICENSE file in the root directory of this source tree.
388
405
  */
389
406
  var an;
390
- function jr() {
407
+ function br() {
391
408
  if (an)
392
409
  return De;
393
410
  an = 1;
@@ -415,53 +432,53 @@ var Me = {};
415
432
  * LICENSE file in the root directory of this source tree.
416
433
  */
417
434
  var rn;
418
- function br() {
435
+ function wr() {
419
436
  return rn || (rn = 1, process.env.NODE_ENV !== "production" && function() {
420
- 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"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), C = Symbol.iterator, v = "@@iterator";
437
+ 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"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), k = Symbol.iterator, p = "@@iterator";
421
438
  function y(o) {
422
439
  if (o === null || typeof o != "object")
423
440
  return null;
424
- var h = C && o[C] || o[v];
441
+ var h = k && o[k] || o[p];
425
442
  return typeof h == "function" ? h : null;
426
443
  }
427
- var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
444
+ var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
428
445
  function j(o) {
429
446
  {
430
- for (var h = arguments.length, p = new Array(h > 1 ? h - 1 : 0), N = 1; N < h; N++)
431
- p[N - 1] = arguments[N];
432
- $("error", o, p);
447
+ for (var h = arguments.length, C = new Array(h > 1 ? h - 1 : 0), N = 1; N < h; N++)
448
+ C[N - 1] = arguments[N];
449
+ $("error", o, C);
433
450
  }
434
451
  }
435
- function $(o, h, p) {
452
+ function $(o, h, C) {
436
453
  {
437
- var N = k.ReactDebugCurrentFrame, L = N.getStackAddendum();
438
- L !== "" && (h += "%s", p = p.concat([L]));
439
- var B = p.map(function(M) {
440
- return String(M);
454
+ var N = v.ReactDebugCurrentFrame, P = N.getStackAddendum();
455
+ P !== "" && (h += "%s", C = C.concat([P]));
456
+ var B = C.map(function(F) {
457
+ return String(F);
441
458
  });
442
459
  B.unshift("Warning: " + h), Function.prototype.apply.call(console[o], console, B);
443
460
  }
444
461
  }
445
- var P = !1, E = !1, T = !1, R = !1, S = !1, ne;
462
+ var M = !1, S = !1, T = !1, R = !1, E = !1, ne;
446
463
  ne = Symbol.for("react.module.reference");
447
464
  function xe(o) {
448
- return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || S || o === s || o === d || o === u || R || o === g || P || E || T || typeof o == "object" && o !== null && (o.$$typeof === f || o.$$typeof === m || o.$$typeof === l || o.$$typeof === c || o.$$typeof === _ || // This needs to include all possible module reference object
465
+ return !!(typeof o == "string" || typeof o == "function" || o === r || o === i || E || o === s || o === d || o === u || R || o === g || M || S || T || typeof o == "object" && o !== null && (o.$$typeof === f || o.$$typeof === m || o.$$typeof === l || o.$$typeof === c || o.$$typeof === _ || // This needs to include all possible module reference object
449
466
  // types supported by any Flight configuration anywhere since
450
467
  // we don't know which Flight build this will end up being used
451
468
  // with.
452
469
  o.$$typeof === ne || o.getModuleId !== void 0));
453
470
  }
454
- function de(o, h, p) {
471
+ function de(o, h, C) {
455
472
  var N = o.displayName;
456
473
  if (N)
457
474
  return N;
458
- var L = h.displayName || h.name || "";
459
- return L !== "" ? p + "(" + L + ")" : p;
475
+ var P = h.displayName || h.name || "";
476
+ return P !== "" ? C + "(" + P + ")" : C;
460
477
  }
461
478
  function Z(o) {
462
479
  return o.displayName || "Context";
463
480
  }
464
- function F(o) {
481
+ function L(o) {
465
482
  if (o == null)
466
483
  return null;
467
484
  if (typeof o.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
@@ -488,17 +505,17 @@ function br() {
488
505
  var h = o;
489
506
  return Z(h) + ".Consumer";
490
507
  case l:
491
- var p = o;
492
- return Z(p._context) + ".Provider";
508
+ var C = o;
509
+ return Z(C._context) + ".Provider";
493
510
  case _:
494
511
  return de(o, o.render, "ForwardRef");
495
512
  case m:
496
513
  var N = o.displayName || null;
497
- return N !== null ? N : F(o.type) || "Memo";
514
+ return N !== null ? N : L(o.type) || "Memo";
498
515
  case f: {
499
- var L = o, B = L._payload, M = L._init;
516
+ var P = o, B = P._payload, F = P._init;
500
517
  try {
501
- return F(M(B));
518
+ return L(F(B));
502
519
  } catch {
503
520
  return null;
504
521
  }
@@ -510,7 +527,7 @@ function br() {
510
527
  function Ot() {
511
528
  }
512
529
  Ot.__reactDisabledLog = !0;
513
- function Yn() {
530
+ function Hn() {
514
531
  {
515
532
  if (Y === 0) {
516
533
  ze = console.log, ae = console.info, Re = console.warn, et = console.error, Ge = console.group, Pt = console.groupCollapsed, Bt = console.groupEnd;
@@ -533,7 +550,7 @@ function br() {
533
550
  Y++;
534
551
  }
535
552
  }
536
- function Hn() {
553
+ function qn() {
537
554
  {
538
555
  if (Y--, Y === 0) {
539
556
  var o = {
@@ -568,14 +585,14 @@ function br() {
568
585
  Y < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
569
586
  }
570
587
  }
571
- var tt = k.ReactCurrentDispatcher, nt;
572
- function Ke(o, h, p) {
588
+ var tt = v.ReactCurrentDispatcher, nt;
589
+ function Ke(o, h, C) {
573
590
  {
574
591
  if (nt === void 0)
575
592
  try {
576
593
  throw Error();
577
- } catch (L) {
578
- var N = L.stack.trim().match(/\n( *(at )?)/);
594
+ } catch (P) {
595
+ var N = P.stack.trim().match(/\n( *(at )?)/);
579
596
  nt = N && N[1] || "";
580
597
  }
581
598
  return `
@@ -584,46 +601,46 @@ function br() {
584
601
  }
585
602
  var at = !1, We;
586
603
  {
587
- var qn = typeof WeakMap == "function" ? WeakMap : Map;
588
- We = new qn();
604
+ var Jn = typeof WeakMap == "function" ? WeakMap : Map;
605
+ We = new Jn();
589
606
  }
590
607
  function At(o, h) {
591
608
  if (!o || at)
592
609
  return "";
593
610
  {
594
- var p = We.get(o);
595
- if (p !== void 0)
596
- return p;
611
+ var C = We.get(o);
612
+ if (C !== void 0)
613
+ return C;
597
614
  }
598
615
  var N;
599
616
  at = !0;
600
- var L = Error.prepareStackTrace;
617
+ var P = Error.prepareStackTrace;
601
618
  Error.prepareStackTrace = void 0;
602
619
  var B;
603
- B = tt.current, tt.current = null, Yn();
620
+ B = tt.current, tt.current = null, Hn();
604
621
  try {
605
622
  if (h) {
606
- var M = function() {
623
+ var F = function() {
607
624
  throw Error();
608
625
  };
609
- if (Object.defineProperty(M.prototype, "props", {
626
+ if (Object.defineProperty(F.prototype, "props", {
610
627
  set: function() {
611
628
  throw Error();
612
629
  }
613
630
  }), typeof Reflect == "object" && Reflect.construct) {
614
631
  try {
615
- Reflect.construct(M, []);
632
+ Reflect.construct(F, []);
616
633
  } catch (q) {
617
634
  N = q;
618
635
  }
619
- Reflect.construct(o, [], M);
636
+ Reflect.construct(o, [], F);
620
637
  } else {
621
638
  try {
622
- M.call();
639
+ F.call();
623
640
  } catch (q) {
624
641
  N = q;
625
642
  }
626
- o.call(M.prototype);
643
+ o.call(F.prototype);
627
644
  }
628
645
  } else {
629
646
  try {
@@ -653,23 +670,23 @@ function br() {
653
670
  }
654
671
  }
655
672
  } finally {
656
- at = !1, tt.current = B, Hn(), Error.prepareStackTrace = L;
673
+ at = !1, tt.current = B, qn(), Error.prepareStackTrace = P;
657
674
  }
658
675
  var je = o ? o.displayName || o.name : "", ge = je ? Ke(je) : "";
659
676
  return typeof o == "function" && We.set(o, ge), ge;
660
677
  }
661
- function Jn(o, h, p) {
678
+ function Xn(o, h, C) {
662
679
  return At(o, !1);
663
680
  }
664
- function Xn(o) {
681
+ function Qn(o) {
665
682
  var h = o.prototype;
666
683
  return !!(h && h.isReactComponent);
667
684
  }
668
- function Ue(o, h, p) {
685
+ function Ue(o, h, C) {
669
686
  if (o == null)
670
687
  return "";
671
688
  if (typeof o == "function")
672
- return At(o, Xn(o));
689
+ return At(o, Qn(o));
673
690
  if (typeof o == "string")
674
691
  return Ke(o);
675
692
  switch (o) {
@@ -681,57 +698,57 @@ function br() {
681
698
  if (typeof o == "object")
682
699
  switch (o.$$typeof) {
683
700
  case _:
684
- return Jn(o.render);
701
+ return Xn(o.render);
685
702
  case m:
686
- return Ue(o.type, h, p);
703
+ return Ue(o.type, h, C);
687
704
  case f: {
688
- var N = o, L = N._payload, B = N._init;
705
+ var N = o, P = N._payload, B = N._init;
689
706
  try {
690
- return Ue(B(L), h, p);
707
+ return Ue(B(P), h, C);
691
708
  } catch {
692
709
  }
693
710
  }
694
711
  }
695
712
  return "";
696
713
  }
697
- var Te = Object.prototype.hasOwnProperty, Zt = {}, zt = k.ReactDebugCurrentFrame;
714
+ var Te = Object.prototype.hasOwnProperty, Zt = {}, zt = v.ReactDebugCurrentFrame;
698
715
  function Ve(o) {
699
716
  if (o) {
700
- var h = o._owner, p = Ue(o.type, o._source, h ? h.type : null);
701
- zt.setExtraStackFrame(p);
717
+ var h = o._owner, C = Ue(o.type, o._source, h ? h.type : null);
718
+ zt.setExtraStackFrame(C);
702
719
  } else
703
720
  zt.setExtraStackFrame(null);
704
721
  }
705
- function Qn(o, h, p, N, L) {
722
+ function ea(o, h, C, N, P) {
706
723
  {
707
724
  var B = Function.call.bind(Te);
708
- for (var M in o)
709
- if (B(o, M)) {
725
+ for (var F in o)
726
+ if (B(o, F)) {
710
727
  var I = void 0;
711
728
  try {
712
- if (typeof o[M] != "function") {
713
- var H = Error((N || "React class") + ": " + p + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
729
+ if (typeof o[F] != "function") {
730
+ var H = Error((N || "React class") + ": " + C + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
714
731
  throw H.name = "Invariant Violation", H;
715
732
  }
716
- I = o[M](h, M, N, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
733
+ I = o[F](h, F, N, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
717
734
  } catch (z) {
718
735
  I = z;
719
736
  }
720
- I && !(I instanceof Error) && (Ve(L), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", N || "React class", p, M, typeof I), Ve(null)), I instanceof Error && !(I.message in Zt) && (Zt[I.message] = !0, Ve(L), j("Failed %s type: %s", p, I.message), Ve(null));
737
+ I && !(I instanceof Error) && (Ve(P), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", N || "React class", C, F, typeof I), Ve(null)), I instanceof Error && !(I.message in Zt) && (Zt[I.message] = !0, Ve(P), j("Failed %s type: %s", C, I.message), Ve(null));
721
738
  }
722
739
  }
723
740
  }
724
- var ea = Array.isArray;
741
+ var ta = Array.isArray;
725
742
  function rt(o) {
726
- return ea(o);
743
+ return ta(o);
727
744
  }
728
- function ta(o) {
745
+ function na(o) {
729
746
  {
730
- var h = typeof Symbol == "function" && Symbol.toStringTag, p = h && o[Symbol.toStringTag] || o.constructor.name || "Object";
731
- return p;
747
+ var h = typeof Symbol == "function" && Symbol.toStringTag, C = h && o[Symbol.toStringTag] || o.constructor.name || "Object";
748
+ return C;
732
749
  }
733
750
  }
734
- function na(o) {
751
+ function aa(o) {
735
752
  try {
736
753
  return Gt(o), !1;
737
754
  } catch {
@@ -742,17 +759,17 @@ function br() {
742
759
  return "" + o;
743
760
  }
744
761
  function Kt(o) {
745
- if (na(o))
746
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ta(o)), Gt(o);
762
+ if (aa(o))
763
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", na(o)), Gt(o);
747
764
  }
748
- var Ie = k.ReactCurrentOwner, aa = {
765
+ var Ie = v.ReactCurrentOwner, ra = {
749
766
  key: !0,
750
767
  ref: !0,
751
768
  __self: !0,
752
769
  __source: !0
753
770
  }, Wt, Ut, st;
754
771
  st = {};
755
- function ra(o) {
772
+ function sa(o) {
756
773
  if (Te.call(o, "ref")) {
757
774
  var h = Object.getOwnPropertyDescriptor(o, "ref").get;
758
775
  if (h && h.isReactWarning)
@@ -760,7 +777,7 @@ function br() {
760
777
  }
761
778
  return o.ref !== void 0;
762
779
  }
763
- function sa(o) {
780
+ function ia(o) {
764
781
  if (Te.call(o, "key")) {
765
782
  var h = Object.getOwnPropertyDescriptor(o, "key").get;
766
783
  if (h && h.isReactWarning)
@@ -768,43 +785,43 @@ function br() {
768
785
  }
769
786
  return o.key !== void 0;
770
787
  }
771
- function ia(o, h) {
788
+ function oa(o, h) {
772
789
  if (typeof o.ref == "string" && Ie.current && h && Ie.current.stateNode !== h) {
773
- var p = F(Ie.current.type);
774
- st[p] || (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', F(Ie.current.type), o.ref), st[p] = !0);
790
+ var C = L(Ie.current.type);
791
+ st[C] || (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', L(Ie.current.type), o.ref), st[C] = !0);
775
792
  }
776
793
  }
777
- function oa(o, h) {
794
+ function la(o, h) {
778
795
  {
779
- var p = function() {
796
+ var C = function() {
780
797
  Wt || (Wt = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
781
798
  };
782
- p.isReactWarning = !0, Object.defineProperty(o, "key", {
783
- get: p,
799
+ C.isReactWarning = !0, Object.defineProperty(o, "key", {
800
+ get: C,
784
801
  configurable: !0
785
802
  });
786
803
  }
787
804
  }
788
- function la(o, h) {
805
+ function ca(o, h) {
789
806
  {
790
- var p = function() {
807
+ var C = function() {
791
808
  Ut || (Ut = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h));
792
809
  };
793
- p.isReactWarning = !0, Object.defineProperty(o, "ref", {
794
- get: p,
810
+ C.isReactWarning = !0, Object.defineProperty(o, "ref", {
811
+ get: C,
795
812
  configurable: !0
796
813
  });
797
814
  }
798
815
  }
799
- var ca = function(o, h, p, N, L, B, M) {
816
+ var da = function(o, h, C, N, P, B, F) {
800
817
  var I = {
801
818
  // This tag allows us to uniquely identify this as a React Element
802
819
  $$typeof: t,
803
820
  // Built-in properties that belong on the element
804
821
  type: o,
805
822
  key: h,
806
- ref: p,
807
- props: M,
823
+ ref: C,
824
+ props: F,
808
825
  // Record the component responsible for creating this element.
809
826
  _owner: B
810
827
  };
@@ -822,32 +839,32 @@ function br() {
822
839
  configurable: !1,
823
840
  enumerable: !1,
824
841
  writable: !1,
825
- value: L
842
+ value: P
826
843
  }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
827
844
  };
828
- function da(o, h, p, N, L) {
845
+ function _a(o, h, C, N, P) {
829
846
  {
830
- var B, M = {}, I = null, H = null;
831
- p !== void 0 && (Kt(p), I = "" + p), sa(h) && (Kt(h.key), I = "" + h.key), ra(h) && (H = h.ref, ia(h, L));
847
+ var B, F = {}, I = null, H = null;
848
+ C !== void 0 && (Kt(C), I = "" + C), ia(h) && (Kt(h.key), I = "" + h.key), sa(h) && (H = h.ref, oa(h, P));
832
849
  for (B in h)
833
- Te.call(h, B) && !aa.hasOwnProperty(B) && (M[B] = h[B]);
850
+ Te.call(h, B) && !ra.hasOwnProperty(B) && (F[B] = h[B]);
834
851
  if (o && o.defaultProps) {
835
852
  var z = o.defaultProps;
836
853
  for (B in z)
837
- M[B] === void 0 && (M[B] = z[B]);
854
+ F[B] === void 0 && (F[B] = z[B]);
838
855
  }
839
856
  if (I || H) {
840
857
  var W = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
841
- I && oa(M, W), H && la(M, W);
858
+ I && la(F, W), H && ca(F, W);
842
859
  }
843
- return ca(o, I, H, L, N, Ie.current, M);
860
+ return da(o, I, H, P, N, Ie.current, F);
844
861
  }
845
862
  }
846
- var it = k.ReactCurrentOwner, Vt = k.ReactDebugCurrentFrame;
863
+ var it = v.ReactCurrentOwner, Vt = v.ReactDebugCurrentFrame;
847
864
  function ye(o) {
848
865
  if (o) {
849
- var h = o._owner, p = Ue(o.type, o._source, h ? h.type : null);
850
- Vt.setExtraStackFrame(p);
866
+ var h = o._owner, C = Ue(o.type, o._source, h ? h.type : null);
867
+ Vt.setExtraStackFrame(C);
851
868
  } else
852
869
  Vt.setExtraStackFrame(null);
853
870
  }
@@ -859,7 +876,7 @@ function br() {
859
876
  function Yt() {
860
877
  {
861
878
  if (it.current) {
862
- var o = F(it.current.type);
879
+ var o = L(it.current.type);
863
880
  if (o)
864
881
  return `
865
882
 
@@ -868,18 +885,18 @@ Check the render method of \`` + o + "`.";
868
885
  return "";
869
886
  }
870
887
  }
871
- function _a(o) {
888
+ function ua(o) {
872
889
  return "";
873
890
  }
874
891
  var Ht = {};
875
- function ua(o) {
892
+ function ma(o) {
876
893
  {
877
894
  var h = Yt();
878
895
  if (!h) {
879
- var p = typeof o == "string" ? o : o.displayName || o.name;
880
- p && (h = `
896
+ var C = typeof o == "string" ? o : o.displayName || o.name;
897
+ C && (h = `
881
898
 
882
- Check the top-level render call using <` + p + ">.");
899
+ Check the top-level render call using <` + C + ">.");
883
900
  }
884
901
  return h;
885
902
  }
@@ -889,12 +906,12 @@ Check the top-level render call using <` + p + ">.");
889
906
  if (!o._store || o._store.validated || o.key != null)
890
907
  return;
891
908
  o._store.validated = !0;
892
- var p = ua(h);
893
- if (Ht[p])
909
+ var C = ma(h);
910
+ if (Ht[C])
894
911
  return;
895
- Ht[p] = !0;
912
+ Ht[C] = !0;
896
913
  var N = "";
897
- o && o._owner && o._owner !== it.current && (N = " It was passed a child from " + F(o._owner.type) + "."), ye(o), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, N), ye(null);
914
+ o && o._owner && o._owner !== it.current && (N = " It was passed a child from " + L(o._owner.type) + "."), ye(o), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, N), ye(null);
898
915
  }
899
916
  }
900
917
  function Jt(o, h) {
@@ -902,49 +919,49 @@ Check the top-level render call using <` + p + ">.");
902
919
  if (typeof o != "object")
903
920
  return;
904
921
  if (rt(o))
905
- for (var p = 0; p < o.length; p++) {
906
- var N = o[p];
922
+ for (var C = 0; C < o.length; C++) {
923
+ var N = o[C];
907
924
  lt(N) && qt(N, h);
908
925
  }
909
926
  else if (lt(o))
910
927
  o._store && (o._store.validated = !0);
911
928
  else if (o) {
912
- var L = y(o);
913
- if (typeof L == "function" && L !== o.entries)
914
- for (var B = L.call(o), M; !(M = B.next()).done; )
915
- lt(M.value) && qt(M.value, h);
929
+ var P = y(o);
930
+ if (typeof P == "function" && P !== o.entries)
931
+ for (var B = P.call(o), F; !(F = B.next()).done; )
932
+ lt(F.value) && qt(F.value, h);
916
933
  }
917
934
  }
918
935
  }
919
- function ma(o) {
936
+ function fa(o) {
920
937
  {
921
938
  var h = o.type;
922
939
  if (h == null || typeof h == "string")
923
940
  return;
924
- var p;
941
+ var C;
925
942
  if (typeof h == "function")
926
- p = h.propTypes;
943
+ C = h.propTypes;
927
944
  else if (typeof h == "object" && (h.$$typeof === _ || // Note: Memo only checks outer props here.
928
945
  // Inner props are checked in the reconciler.
929
946
  h.$$typeof === m))
930
- p = h.propTypes;
947
+ C = h.propTypes;
931
948
  else
932
949
  return;
933
- if (p) {
934
- var N = F(h);
935
- Qn(p, o.props, "prop", N, o);
950
+ if (C) {
951
+ var N = L(h);
952
+ ea(C, o.props, "prop", N, o);
936
953
  } else if (h.PropTypes !== void 0 && !ot) {
937
954
  ot = !0;
938
- var L = F(h);
939
- j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
955
+ var P = L(h);
956
+ j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
940
957
  }
941
958
  typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
942
959
  }
943
960
  }
944
- function fa(o) {
961
+ function ha(o) {
945
962
  {
946
- for (var h = Object.keys(o.props), p = 0; p < h.length; p++) {
947
- var N = h[p];
963
+ for (var h = Object.keys(o.props), C = 0; C < h.length; C++) {
964
+ var N = h[C];
948
965
  if (N !== "children" && N !== "key") {
949
966
  ye(o), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), ye(null);
950
967
  break;
@@ -954,21 +971,21 @@ Check the top-level render call using <` + p + ">.");
954
971
  }
955
972
  }
956
973
  var Xt = {};
957
- function Qt(o, h, p, N, L, B) {
974
+ function Qt(o, h, C, N, P, B) {
958
975
  {
959
- var M = xe(o);
960
- if (!M) {
976
+ var F = xe(o);
977
+ if (!F) {
961
978
  var I = "";
962
979
  (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
963
- var H = _a();
980
+ var H = ua();
964
981
  H ? I += H : I += Yt();
965
982
  var z;
966
- o === null ? z = "null" : rt(o) ? z = "array" : o !== void 0 && o.$$typeof === t ? (z = "<" + (F(o.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : z = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, I);
983
+ o === null ? z = "null" : rt(o) ? z = "array" : o !== void 0 && o.$$typeof === t ? (z = "<" + (L(o.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : z = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, I);
967
984
  }
968
- var W = da(o, h, p, L, B);
985
+ var W = _a(o, h, C, P, B);
969
986
  if (W == null)
970
987
  return W;
971
- if (M) {
988
+ if (F) {
972
989
  var ee = h.children;
973
990
  if (ee !== void 0)
974
991
  if (N)
@@ -982,51 +999,51 @@ Check the top-level render call using <` + p + ">.");
982
999
  Jt(ee, o);
983
1000
  }
984
1001
  if (Te.call(h, "key")) {
985
- var ge = F(o), q = Object.keys(h).filter(function(Ca) {
986
- return Ca !== "key";
1002
+ var ge = L(o), q = Object.keys(h).filter(function(ka) {
1003
+ return ka !== "key";
987
1004
  }), ct = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
988
1005
  if (!Xt[ge + ct]) {
989
- var va = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
1006
+ var Ca = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
990
1007
  j(`A props object containing a "key" prop is being spread into JSX:
991
1008
  let props = %s;
992
1009
  <%s {...props} />
993
1010
  React keys must be passed directly to JSX without using spread:
994
1011
  let props = %s;
995
- <%s key={someKey} {...props} />`, ct, ge, va, ge), Xt[ge + ct] = !0;
1012
+ <%s key={someKey} {...props} />`, ct, ge, Ca, ge), Xt[ge + ct] = !0;
996
1013
  }
997
1014
  }
998
- return o === r ? fa(W) : ma(W), W;
1015
+ return o === r ? ha(W) : fa(W), W;
999
1016
  }
1000
1017
  }
1001
- function ha(o, h, p) {
1002
- return Qt(o, h, p, !0);
1018
+ function xa(o, h, C) {
1019
+ return Qt(o, h, C, !0);
1003
1020
  }
1004
- function xa(o, h, p) {
1005
- return Qt(o, h, p, !1);
1021
+ function ga(o, h, C) {
1022
+ return Qt(o, h, C, !1);
1006
1023
  }
1007
- var ga = xa, pa = ha;
1008
- Me.Fragment = r, Me.jsx = ga, Me.jsxs = pa;
1024
+ var pa = ga, va = xa;
1025
+ Me.Fragment = r, Me.jsx = pa, Me.jsxs = va;
1009
1026
  }()), Me;
1010
1027
  }
1011
- process.env.NODE_ENV === "production" ? ht.exports = jr() : ht.exports = br();
1028
+ process.env.NODE_ENV === "production" ? ht.exports = br() : ht.exports = wr();
1012
1029
  var n = ht.exports;
1013
- const wr = "_notice_9i5tr_2", Sr = "_error_9i5tr_9", Er = "_success_9i5tr_12", Nr = "_remark_9i5tr_15", Rr = "_copy_9i5tr_18", Tr = {
1014
- notice: wr,
1015
- error: Sr,
1016
- success: Er,
1017
- remark: Nr,
1018
- copy: Rr,
1030
+ const Sr = "_notice_9i5tr_2", Er = "_error_9i5tr_9", Nr = "_success_9i5tr_12", Rr = "_remark_9i5tr_15", Tr = "_copy_9i5tr_18", Ir = {
1031
+ notice: Sr,
1032
+ error: Er,
1033
+ success: Nr,
1034
+ remark: Rr,
1035
+ copy: Tr,
1019
1036
  "show-notice": "_show-notice_9i5tr_1",
1020
1037
  "hide-notice": "_hide-notice_9i5tr_1"
1021
1038
  };
1022
1039
  let me = {};
1023
- function Ir() {
1040
+ function Dr() {
1024
1041
  let [e, t] = x.useState([]);
1025
1042
  return me.set = (a) => {
1026
1043
  t([...e, a]);
1027
1044
  }, me.del = (a) => {
1028
1045
  t(e.filter((r) => r.key !== a));
1029
- }, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: Tr.notice, children: e.map((a) => a.item) });
1046
+ }, e.length === 0 ? "" : /* @__PURE__ */ n.jsx("ul", { className: Ir.notice, children: e.map((a) => a.item) });
1030
1047
  }
1031
1048
  function Ae({ data: e }) {
1032
1049
  let [t, a] = x.useState("show");
@@ -1061,23 +1078,23 @@ function Ae({ data: e }) {
1061
1078
  /* @__PURE__ */ n.jsx("p", { children: e.text })
1062
1079
  ] });
1063
1080
  }
1064
- function Dr(e) {
1081
+ function Mr(e) {
1065
1082
  let t = Date.now(), a = { key: t, ...e };
1066
1083
  me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
1067
1084
  }
1068
- function Mr(e) {
1085
+ function Fr(e) {
1069
1086
  let t = Date.now(), a = { key: t, text: e, type: "error" };
1070
1087
  me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
1071
1088
  }
1072
- function Fr(e) {
1089
+ function Lr(e) {
1073
1090
  let t = Date.now(), a = { key: t, text: e, type: "success" };
1074
1091
  me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
1075
1092
  }
1076
- function Lr(e) {
1093
+ function $r(e) {
1077
1094
  let t = Date.now(), a = { key: t, text: e, type: "remark" };
1078
1095
  me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
1079
1096
  }
1080
- function $r(e) {
1097
+ function Pr(e) {
1081
1098
  let t = Date.now(), a = { key: t, text: e, type: "copy" };
1082
1099
  me.set({ item: /* @__PURE__ */ n.jsx(Ae, { data: a }, t), key: t });
1083
1100
  }
@@ -1114,21 +1131,21 @@ pe.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1114
1131
  }
1115
1132
  )
1116
1133
  ] });
1117
- const Pr = "_alerts_1pds5_1", Br = "_menuAnimation_1pds5_1", Or = "_menuItemAnimation_1pds5_1", Ar = "_allert_1pds5_111", Zr = "_al_1pds5_1", xt = {
1118
- alerts: Pr,
1119
- menuAnimation: Br,
1120
- menuItemAnimation: Or,
1134
+ const Br = "_alerts_1pds5_1", Or = "_menuAnimation_1pds5_1", Ar = "_menuItemAnimation_1pds5_1", Zr = "_allert_1pds5_111", zr = "_al_1pds5_1", xt = {
1135
+ alerts: Br,
1136
+ menuAnimation: Or,
1137
+ menuItemAnimation: Ar,
1121
1138
  "--body": "_--body_1pds5_103",
1122
- allert: Ar,
1139
+ allert: Zr,
1123
1140
  "--form": "_--form_1pds5_111",
1124
- al: Zr
1141
+ al: zr
1125
1142
  };
1126
1143
  let $e = {};
1127
- function zr() {
1144
+ function Gr() {
1128
1145
  let [e, t] = x.useState("");
1129
1146
  return $e.set = (a) => t(a), $e.del = () => t(""), /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
1130
1147
  }
1131
- const Gr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: xt.alerts, children: [
1148
+ const Kr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: xt.alerts, children: [
1132
1149
  /* @__PURE__ */ n.jsxs("dl", { children: [
1133
1150
  /* @__PURE__ */ n.jsx("dt", { children: e.title }),
1134
1151
  /* @__PURE__ */ n.jsx("dd", { children: e.text }),
@@ -1145,26 +1162,26 @@ const Gr = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
1145
1162
  ] }),
1146
1163
  /* @__PURE__ */ n.jsx("div", { className: xt["--body"], onClick: $e.del })
1147
1164
  ] }));
1148
- function Kr(e, t) {
1149
- $e.set(/* @__PURE__ */ n.jsx(Gr, { data: e, callback: t }));
1165
+ function Wr(e, t) {
1166
+ $e.set(/* @__PURE__ */ n.jsx(Kr, { data: e, callback: t }));
1150
1167
  }
1151
- const Pe = { Send: Dr, Error: Mr, Remark: Lr, Success: Fr, Copy: $r }, He = {
1152
- Path: Ua,
1153
- setPage: Pa,
1168
+ const Pe = { Send: Mr, Error: Fr, Remark: $r, Success: Lr, Copy: Pr }, He = {
1169
+ Path: Va,
1170
+ setPage: Ba,
1154
1171
  getPage: fn,
1155
- usePage: $a,
1156
- setModule: Oa,
1172
+ usePage: Pa,
1173
+ setModule: Aa,
1157
1174
  getModule: hn,
1158
- useModule: Ba,
1159
- setTabs: Za,
1175
+ useModule: Oa,
1176
+ setTabs: za,
1160
1177
  getTabs: Je,
1161
- useTabs: Aa,
1162
- useId: za,
1163
- setId: Ka,
1164
- subId: Ga,
1165
- getId: Wa
1178
+ useTabs: Za,
1179
+ useId: Ga,
1180
+ setId: Wa,
1181
+ subId: Ka,
1182
+ getId: Ua
1166
1183
  };
1167
- function Wr() {
1184
+ function Ur() {
1168
1185
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1169
1186
  /* @__PURE__ */ n.jsx(
1170
1187
  "path",
@@ -1199,7 +1216,7 @@ function Wr() {
1199
1216
  )
1200
1217
  ] });
1201
1218
  }
1202
- function Ur() {
1219
+ function Vr() {
1203
1220
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1204
1221
  /* @__PURE__ */ n.jsx(
1205
1222
  "path",
@@ -1228,7 +1245,7 @@ function Ur() {
1228
1245
  )
1229
1246
  ] });
1230
1247
  }
1231
- function Vr() {
1248
+ function Yr() {
1232
1249
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n.jsx(
1233
1250
  "path",
1234
1251
  {
@@ -1241,11 +1258,11 @@ function Vr() {
1241
1258
  }
1242
1259
  ) });
1243
1260
  }
1244
- const Yr = "_n_euuvm_1", Hr = {
1245
- n: Yr
1261
+ const Hr = "_n_euuvm_1", qr = {
1262
+ n: Hr
1246
1263
  };
1247
1264
  let Ze = {}, Fe = [];
1248
- const qr = (e, t) => {
1265
+ const Jr = (e, t) => {
1249
1266
  switch (t.type) {
1250
1267
  case "open":
1251
1268
  return {
@@ -1297,27 +1314,27 @@ const qr = (e, t) => {
1297
1314
  throw new Error();
1298
1315
  }
1299
1316
  };
1300
- function Jr(e) {
1301
- Ze.fn({ action: "add", data: e });
1302
- }
1303
1317
  function Xr(e) {
1304
1318
  Ze.fn({ action: "add", data: e });
1305
1319
  }
1306
1320
  function Qr(e) {
1307
- Ze.fn({ action: "new", data: e });
1321
+ Ze.fn({ action: "add", data: e });
1308
1322
  }
1309
1323
  function es(e) {
1324
+ Ze.fn({ action: "new", data: e });
1325
+ }
1326
+ function ts(e) {
1310
1327
  Ze.fn = e;
1311
1328
  }
1312
- function ts() {
1313
- const [e, t] = x.useReducer(qr, {
1329
+ function ns() {
1330
+ const [e, t] = x.useReducer(Jr, {
1314
1331
  open: !1,
1315
1332
  active: !1,
1316
1333
  news: [],
1317
1334
  take: {}
1318
1335
  });
1319
1336
  ce.useListener("bell", async (r) => {
1320
- }), es(async (r) => {
1337
+ }), ts(async (r) => {
1321
1338
  switch (r.action) {
1322
1339
  case "add":
1323
1340
  Fe.push(r.data);
@@ -1381,11 +1398,11 @@ function ts() {
1381
1398
  /* @__PURE__ */ n.jsx(
1382
1399
  "div",
1383
1400
  {
1384
- className: Hr.n,
1401
+ className: qr.n,
1385
1402
  onClick: () => {
1386
1403
  t({ type: "open", open: !0 });
1387
1404
  },
1388
- children: e.active ? /* @__PURE__ */ n.jsx(Ur, {}) : /* @__PURE__ */ n.jsx(Wr, {})
1405
+ children: e.active ? /* @__PURE__ */ n.jsx(Vr, {}) : /* @__PURE__ */ n.jsx(Ur, {})
1389
1406
  }
1390
1407
  ),
1391
1408
  e.open ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -1400,7 +1417,7 @@ function ts() {
1400
1417
  ),
1401
1418
  /* @__PURE__ */ n.jsxs("div", { className: "notify-m", children: [
1402
1419
  /* @__PURE__ */ n.jsx("div", { className: "notify-l", children: e.news.map((r, s) => /* @__PURE__ */ n.jsx(
1403
- ns,
1420
+ as,
1404
1421
  {
1405
1422
  data: r,
1406
1423
  dispatch: t
@@ -1412,7 +1429,7 @@ function ts() {
1412
1429
  ] }) : ""
1413
1430
  ] });
1414
1431
  }
1415
- const ns = ({ data: e, dispatch: t }) => {
1432
+ const as = ({ data: e, dispatch: t }) => {
1416
1433
  let a = async (r) => {
1417
1434
  t({ type: "hide", id: r.id }), await ce.Send({
1418
1435
  type: "module",
@@ -1429,16 +1446,16 @@ const ns = ({ data: e, dispatch: t }) => {
1429
1446
  ] }),
1430
1447
  /* @__PURE__ */ n.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => a(e), children: " " })
1431
1448
  ] });
1432
- }, as = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1433
- function rs(e) {
1449
+ }, rs = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
1450
+ function ss(e) {
1434
1451
  return new SharedWorker(
1435
- "data:text/javascript;base64," + as,
1452
+ "data:text/javascript;base64," + rs,
1436
1453
  {
1437
1454
  name: e == null ? void 0 : e.name
1438
1455
  }
1439
1456
  );
1440
1457
  }
1441
- function ss(e) {
1458
+ function is(e) {
1442
1459
  let t = {}, a = {};
1443
1460
  e.data.forEach((s) => {
1444
1461
  t[s.id] = { s: s.v, n: s.a }, a[s.id] = s;
@@ -1446,7 +1463,7 @@ function ss(e) {
1446
1463
  let r = { ...ke(), 901: t };
1447
1464
  pn(a), Oe(r);
1448
1465
  }
1449
- function is() {
1466
+ function os() {
1450
1467
  let e = vn(), t = {};
1451
1468
  return Object.keys(e).forEach((a) => {
1452
1469
  t[e[a].id] = {}, t[e[a].id].name = e[a].a;
@@ -1462,10 +1479,10 @@ let ie = {}, U = {}, Ye = [
1462
1479
  "info",
1463
1480
  "job"
1464
1481
  ];
1465
- function os() {
1482
+ function ls() {
1466
1483
  const [e, t] = x.useState(!1), [a, r] = x.useState(!1);
1467
1484
  function s(i) {
1468
- const l = new rs();
1485
+ const l = new ss();
1469
1486
  ie.laodData = (c) => {
1470
1487
  let _ = Ye.indexOf(c);
1471
1488
  _ >= 0 && Ye.splice(_, 1), Ye.length === 0 && t(!0);
@@ -1489,8 +1506,8 @@ function os() {
1489
1506
  U.module = (e) => {
1490
1507
  ie[e.listen] !== void 0 && (ie[e.listen](e), delete ie[e.listen]);
1491
1508
  };
1492
- U.bell = Qr;
1493
- U.company = ss;
1509
+ U.bell = es;
1510
+ U.company = is;
1494
1511
  U.info = (e) => {
1495
1512
  let t = {};
1496
1513
  t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), Cn(t), xn(e.data.menu);
@@ -1557,16 +1574,16 @@ U.job = (e) => {
1557
1574
  }), t[1] = a, Oe(t);
1558
1575
  };
1559
1576
  U.setting = (e) => {
1560
- Va(e.data);
1577
+ Ya(e.data);
1561
1578
  };
1562
1579
  U.app = () => {
1563
1580
  };
1564
- const ls = (e, t) => {
1581
+ const cs = (e, t) => {
1565
1582
  ie[e] = t;
1566
- }, cs = (e, t) => {
1583
+ }, ds = (e, t) => {
1567
1584
  ie[e](t);
1568
1585
  };
1569
- function ds(e) {
1586
+ function _s(e) {
1570
1587
  let t = "_" + String(Math.random()).substring(2, 7);
1571
1588
  return new Promise((a) => {
1572
1589
  ie[t] = (r) => {
@@ -1574,8 +1591,8 @@ function ds(e) {
1574
1591
  }, e = { ...e, listen: t }, e.type = "modules", ie.send(e);
1575
1592
  });
1576
1593
  }
1577
- const ce = { useConnect: os, useListener: ls, setListener: cs, Send: ds };
1578
- function _s(e, t) {
1594
+ const ce = { useConnect: ls, useListener: cs, setListener: ds, Send: _s };
1595
+ function us(e, t) {
1579
1596
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1580
1597
  let a = {
1581
1598
  yyyy: e.getFullYear(),
@@ -1592,7 +1609,7 @@ function _s(e, t) {
1592
1609
  t = t.replace(r, a[r]);
1593
1610
  return t;
1594
1611
  }
1595
- function us(e) {
1612
+ function ms(e) {
1596
1613
  let t = [
1597
1614
  "Января",
1598
1615
  "Февраля",
@@ -1612,17 +1629,17 @@ function us(e) {
1612
1629
  name: a.getDate() + " " + t[a.getMonth()]
1613
1630
  };
1614
1631
  }
1615
- const ms = (e) => {
1616
- function t($, P) {
1617
- var E, R, T;
1618
- $ = $ ?? "", P = P ?? 1;
1619
- for (var E = [], T = 0, R = $.length; T < R; )
1620
- E.push($.slice(T, T += P));
1621
- return E;
1632
+ const fs = (e) => {
1633
+ function t($, M) {
1634
+ var S, R, T;
1635
+ $ = $ ?? "", M = M ?? 1;
1636
+ for (var S = [], T = 0, R = $.length; T < R; )
1637
+ S.push($.slice(T, T += M));
1638
+ return S;
1622
1639
  }
1623
- function a($, P) {
1624
- var E = [2, 0, 1, 1, 1, 2];
1625
- return P[$ > 4 && $ < 20 ? 2 : E[Math.min($, 5)]];
1640
+ function a($, M) {
1641
+ var S = [2, 0, 1, 1, 1, 2];
1642
+ return M[$ > 4 && $ < 20 ? 2 : S[Math.min($, 5)]];
1626
1643
  }
1627
1644
  var r = {
1628
1645
  null: "ноль",
@@ -1686,42 +1703,42 @@ const ms = (e) => {
1686
1703
  u3: ["тысяча", "тысячи", "тысяч"],
1687
1704
  u2: ["миллион", "миллиона", "миллионов"],
1688
1705
  u1: ["миллиард", "миллиарда", "миллиардов"]
1689
- }, s, i, l, c, y, _, d, v, u, m, f, g;
1706
+ }, s, i, l, c, y, _, d, p, u, m, f, g;
1690
1707
  u = parseFloat(e).toFixed(2).split("."), _ = u[0], c = u[1];
1691
- var C = 12 - _.length;
1692
- if (C < 0)
1708
+ var k = 12 - _.length;
1709
+ if (k < 0)
1693
1710
  return !1;
1694
- for (var v = []; C--; )
1695
- v.push("0");
1696
- _ = v.join("") + _;
1711
+ for (var p = []; k--; )
1712
+ p.push("0");
1713
+ _ = p.join("") + _;
1697
1714
  var y = [];
1698
1715
  if (_ > 0) {
1699
1716
  m = t(_, 3);
1700
- for (var k = -1; k < m.length; k++)
1701
- if (d = m[k], d > 0 && (f = t(d, 1), s = parseInt(f[0]), i = parseInt(f[1]), l = parseInt(f[2]), y.push(r.a100[s - 1]), g = k + 1 == 3 ? "a2" : "a1", i > 1 ? y.push(
1717
+ for (var v = -1; v < m.length; v++)
1718
+ if (d = m[v], d > 0 && (f = t(d, 1), s = parseInt(f[0]), i = parseInt(f[1]), l = parseInt(f[2]), y.push(r.a100[s - 1]), g = v + 1 == 3 ? "a2" : "a1", i > 1 ? y.push(
1702
1719
  r.a20[i - 2] + (l > 0 ? " " + r[g][l - 1] : "")
1703
1720
  ) : y.push(
1704
1721
  i > 0 ? r.a10[l] : r[g][l - 1]
1705
- ), m.length > k + 1)) {
1706
- var j = r["u" + (k + 1)];
1722
+ ), m.length > v + 1)) {
1723
+ var j = r["u" + (v + 1)];
1707
1724
  y.push(a(d, j));
1708
1725
  }
1709
1726
  } else
1710
1727
  y.push(r.null);
1711
1728
  return y.push(a(_, r.ur)), y.push(c + " " + a(c, r.uc)), y.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1712
1729
  };
1713
- function fs(e) {
1730
+ function hs(e) {
1714
1731
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1715
1732
  do
1716
1733
  e = e / 1024, t++;
1717
1734
  while (e > 1024);
1718
1735
  return Math.max(e, 0.1).toFixed(1) + a[t];
1719
1736
  }
1720
- function hs(e) {
1737
+ function xs(e) {
1721
1738
  let t = {};
1722
1739
  return t["application/atom+xml"] = "atom", t["application/json"] = "json", t["application/javascript"] = "js", t["application/ogg"] = "ogg", t["application/pdf"] = "pdf", t["application/soap+xml"] = "soap", t["application/font-woff"] = "woff", t["application/xhtml+xml"] = "xml", t["application/xml-dtd"] = "dtd", t["application/xop+xml"] = "xop", t["application/zip"] = "zip", t["application/gzip"] = "gzip", t["application/x-bittorrent"] = "bittorrent", t["application/x-tex"] = "tex", t["application/xml"] = "xml", t["application/msword"] = "doc", t["image/svg+xml"] = "svg", t[e];
1723
1740
  }
1724
- function xs(e, t, a, r) {
1741
+ function gs(e, t, a, r) {
1725
1742
  let s = {
1726
1743
  sexM: "m",
1727
1744
  sexF: "f",
@@ -1853,8 +1870,8 @@ function xs(e, t, a, r) {
1853
1870
  return l;
1854
1871
  this.init();
1855
1872
  var g = this.rules[_];
1856
- let C;
1857
- return g.exceptions && (C = this.pick(l, c, d, g.exceptions, !0), C) ? C : (C = this.pick(l, c, d, g.suffixes, !1), C || l);
1873
+ let k;
1874
+ return g.exceptions && (k = this.pick(l, c, d, g.exceptions, !0), k) ? k : (k = this.pick(l, c, d, g.suffixes, !1), k || l);
1858
1875
  },
1859
1876
  // выбираем из списка правил первое подходящее и применяем
1860
1877
  pick: function(l, c, _, d, u) {
@@ -1937,7 +1954,7 @@ function xs(e, t, a, r) {
1937
1954
  }
1938
1955
  return s.ln = e, s.fn = t || "", s.mn = a || "", s.sex = r || s.getSex(), s;
1939
1956
  }
1940
- function gs(e) {
1957
+ function ps(e) {
1941
1958
  let t = e.split(" ");
1942
1959
  switch (t.length) {
1943
1960
  case 2:
@@ -1948,7 +1965,7 @@ function gs(e) {
1948
1965
  return e;
1949
1966
  }
1950
1967
  }
1951
- function ps(e) {
1968
+ function vs(e) {
1952
1969
  return {
1953
1970
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
1954
1971
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -1964,100 +1981,100 @@ function ps(e) {
1964
1981
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1965
1982
  }[e];
1966
1983
  }
1967
- function vs(e) {
1984
+ function Cs(e) {
1968
1985
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1969
1986
  }
1970
- function Cs(e, t) {
1987
+ function ks(e, t) {
1971
1988
  let a = t + "";
1972
1989
  for (; a.length < e; )
1973
1990
  a = "0" + a;
1974
1991
  return a;
1975
1992
  }
1976
- function ks(e, t, a) {
1993
+ function ys(e, t, a) {
1977
1994
  let r = t / e * a;
1978
1995
  return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
1979
1996
  }
1980
- function ys(e) {
1997
+ function js(e) {
1981
1998
  return e.charAt(0).toUpperCase() + e.slice(1);
1982
1999
  }
1983
- function js(e, t) {
2000
+ function bs(e, t) {
1984
2001
  e = Math.abs(e) % 100;
1985
2002
  let a = e % 10;
1986
2003
  return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
1987
2004
  }
1988
- function bs(e, t, a) {
2005
+ function ws(e, t, a) {
1989
2006
  return ke(e, t) ? ke(e, t).n : a || "";
1990
2007
  }
1991
2008
  const K = {
1992
- Date: _s,
1993
- MoneyString: ms,
1994
- DateSort: us,
1995
- Size: fs,
1996
- TypeFiles: hs,
1997
- Cases: xs,
1998
- Initials: gs,
1999
- Month: ps,
2000
- Money: vs,
2001
- Number: Cs,
2002
- Percent: ks,
2003
- CapitalizeFirstLetter: ys,
2004
- DeclensionWord: js,
2005
- Select: bs
2009
+ Date: us,
2010
+ MoneyString: fs,
2011
+ DateSort: ms,
2012
+ Size: hs,
2013
+ TypeFiles: xs,
2014
+ Cases: gs,
2015
+ Initials: ps,
2016
+ Month: vs,
2017
+ Money: Cs,
2018
+ Number: ks,
2019
+ Percent: ys,
2020
+ CapitalizeFirstLetter: js,
2021
+ DeclensionWord: bs,
2022
+ Select: ws
2006
2023
  };
2007
- function ws({ children: e }) {
2024
+ function Ss({ children: e }) {
2008
2025
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2009
2026
  }
2010
- const Ss = "_white_11p39_14", Es = "_black_11p39_26", Ns = "_shake_11p39_1", Rs = "_modal_11p39_73", Ts = "_o_11p39_83", Is = "_w_11p39_14", Ds = "_h_11p39_107", Ms = "_l_11p39_121", Fs = "_t_11p39_159", Ls = "_m_11p39_73", $s = "_x_11p39_167", Ps = "_s_11p39_177", Bs = "_c_11p39_182", Os = "_f_11p39_187", As = "_btn_11p39_230", Zs = "_g_11p39_243", zs = "_confirm_11p39_322", Gs = "_cancel_11p39_327", Ks = "_disabled_11p39_332", Ws = "_active_11p39_389", Us = "_coincidence_11p39_395", Vs = "_sa_11p39_431", Ys = "_ss_11p39_435", Hs = "_sm_11p39_439", qs = "_sl_11p39_443", Js = "_sx_11p39_447", Xs = "_sf_11p39_451", re = {
2011
- white: Ss,
2012
- black: Es,
2013
- shake: Ns,
2014
- modal: Rs,
2015
- o: Ts,
2016
- w: Is,
2017
- h: Ds,
2018
- l: Ms,
2019
- t: Fs,
2020
- m: Ls,
2021
- x: $s,
2022
- s: Ps,
2023
- c: Bs,
2024
- f: Os,
2025
- btn: As,
2026
- g: Zs,
2027
+ const Es = "_white_11p39_14", Ns = "_black_11p39_26", Rs = "_shake_11p39_1", Ts = "_modal_11p39_73", Is = "_o_11p39_83", Ds = "_w_11p39_14", Ms = "_h_11p39_107", Fs = "_l_11p39_121", Ls = "_t_11p39_159", $s = "_m_11p39_73", Ps = "_x_11p39_167", Bs = "_s_11p39_177", Os = "_c_11p39_182", As = "_f_11p39_187", Zs = "_btn_11p39_230", zs = "_g_11p39_243", Gs = "_confirm_11p39_322", Ks = "_cancel_11p39_327", Ws = "_disabled_11p39_332", Us = "_active_11p39_389", Vs = "_coincidence_11p39_395", Ys = "_sa_11p39_431", Hs = "_ss_11p39_435", qs = "_sm_11p39_439", Js = "_sl_11p39_443", Xs = "_sx_11p39_447", Qs = "_sf_11p39_451", re = {
2028
+ white: Es,
2029
+ black: Ns,
2030
+ shake: Rs,
2031
+ modal: Ts,
2032
+ o: Is,
2033
+ w: Ds,
2034
+ h: Ms,
2035
+ l: Fs,
2036
+ t: Ls,
2037
+ m: $s,
2038
+ x: Ps,
2039
+ s: Bs,
2040
+ c: Os,
2041
+ f: As,
2042
+ btn: Zs,
2043
+ g: zs,
2027
2044
  "size-a": "_size-a_11p39_296",
2028
2045
  "size-s": "_size-s_11p39_300",
2029
2046
  "size-m": "_size-m_11p39_304",
2030
2047
  "size-l": "_size-l_11p39_308",
2031
2048
  "size-x": "_size-x_11p39_312",
2032
2049
  "size-f": "_size-f_11p39_316",
2033
- confirm: zs,
2034
- cancel: Gs,
2035
- disabled: Ks,
2050
+ confirm: Gs,
2051
+ cancel: Ks,
2052
+ disabled: Ws,
2036
2053
  await: "_await_11p39_339",
2037
- active: Ws,
2038
- coincidence: Us,
2039
- sa: Vs,
2040
- ss: Ys,
2041
- sm: Hs,
2042
- sl: qs,
2043
- sx: Js,
2044
- sf: Xs
2054
+ active: Us,
2055
+ coincidence: Vs,
2056
+ sa: Ys,
2057
+ ss: Hs,
2058
+ sm: qs,
2059
+ sl: Js,
2060
+ sx: Xs,
2061
+ sf: Qs
2045
2062
  };
2046
- function Qs({ children: e }) {
2063
+ function ei({ children: e }) {
2047
2064
  return /* @__PURE__ */ n.jsx("div", { className: re.s, children: e });
2048
2065
  }
2049
- function ei({ children: e, className: t }) {
2066
+ function ti({ children: e, className: t }) {
2050
2067
  let a = {};
2051
2068
  return t && (a.className = t), /* @__PURE__ */ n.jsx("div", { "data-form": "outline", ...a, children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2052
2069
  }
2053
- function ti({ children: e }) {
2070
+ function ni({ children: e }) {
2054
2071
  return /* @__PURE__ */ n.jsx("div", { className: re.c, children: e });
2055
2072
  }
2056
- const ni = "_btn_1hz2s_6", ai = "_confirm_1hz2s_19", sn = {
2057
- btn: ni,
2058
- confirm: ai
2073
+ const ai = "_btn_1hz2s_6", ri = "_confirm_1hz2s_19", sn = {
2074
+ btn: ai,
2075
+ confirm: ri
2059
2076
  };
2060
- function ri({ onClick: e, onSend: t, label: a, onRef: r }) {
2077
+ function si({ onClick: e, onSend: t, label: a, onRef: r }) {
2061
2078
  let [s, i] = x.useState(!1);
2062
2079
  const l = () => {
2063
2080
  if (e)
@@ -2075,7 +2092,7 @@ function ri({ onClick: e, onSend: t, label: a, onRef: r }) {
2075
2092
  );
2076
2093
  }
2077
2094
  let Ce = {};
2078
- function si({ config: e }) {
2095
+ function ii({ config: e }) {
2079
2096
  let [t, a] = x.useState([]);
2080
2097
  return Ce.x = (r) => {
2081
2098
  r || a([]);
@@ -2083,7 +2100,7 @@ function si({ config: e }) {
2083
2100
  a([...t, r]);
2084
2101
  }, /* @__PURE__ */ n.jsx(n.Fragment, { children: t.map((r) => r) });
2085
2102
  }
2086
- function ii({
2103
+ function oi({
2087
2104
  title: e,
2088
2105
  children: t,
2089
2106
  button: a,
@@ -2153,7 +2170,7 @@ function ii({
2153
2170
  )
2154
2171
  ] }),
2155
2172
  t,
2156
- a !== void 0 ? /* @__PURE__ */ n.jsx(ri, { label: a.label, onSend: d }) : ""
2173
+ a !== void 0 ? /* @__PURE__ */ n.jsx(si, { label: a.label, onSend: d }) : ""
2157
2174
  ]
2158
2175
  }
2159
2176
  )
@@ -2161,13 +2178,13 @@ function ii({
2161
2178
  }
2162
2179
  ) : "" });
2163
2180
  }
2164
- function oi(e) {
2165
- Ce.add(/* @__PURE__ */ n.jsx(li, { children: e }, String(Date.now())));
2181
+ function li(e) {
2182
+ Ce.add(/* @__PURE__ */ n.jsx(ci, { children: e }, String(Date.now())));
2166
2183
  }
2167
- function li({ children: e }) {
2184
+ function ci({ children: e }) {
2168
2185
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
2169
2186
  }
2170
- function ci(e) {
2187
+ function di(e) {
2171
2188
  if (e.target.classList[0] !== "modal")
2172
2189
  return;
2173
2190
  let t = e.target.children[0];
@@ -2175,29 +2192,29 @@ function ci(e) {
2175
2192
  t.setAttribute("shake", !1);
2176
2193
  }, 1e3);
2177
2194
  }
2178
- function di({ type: e, name: t, params: a }) {
2195
+ function _i({ type: e, name: t, params: a }) {
2179
2196
  let [r, s] = x.useState(null);
2180
2197
  return x.useEffect(() => {
2181
2198
  Ce.config(e, t, a, s);
2182
2199
  }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
2183
2200
  }
2184
- function _i(e, t, a) {
2201
+ function ui(e, t, a) {
2185
2202
  Ce.config(e, t, a);
2186
2203
  }
2187
- function ui(e) {
2204
+ function mi(e) {
2188
2205
  Ce.x(e);
2189
2206
  }
2190
2207
  const Et = {
2191
- List: ws,
2192
- Scroll: Qs,
2193
- Main: ii,
2194
- Add: oi,
2195
- Icon: di,
2196
- Open: _i,
2197
- Shake: ci,
2198
- Form: ei,
2199
- Center: ti,
2200
- Close: ui
2208
+ List: Ss,
2209
+ Scroll: ei,
2210
+ Main: oi,
2211
+ Add: li,
2212
+ Icon: _i,
2213
+ Open: ui,
2214
+ Shake: di,
2215
+ Form: ti,
2216
+ Center: ni,
2217
+ Close: mi
2201
2218
  };
2202
2219
  function wn({ text: e, type: t, button: a }) {
2203
2220
  let [r, s] = x.useState(!1), i = { active: t };
@@ -2231,22 +2248,22 @@ function wn({ text: e, type: t, button: a }) {
2231
2248
  a && /* @__PURE__ */ n.jsx("button", { onClick: l, children: a.label })
2232
2249
  ] });
2233
2250
  }
2234
- const mi = "_h_1usnu_1", fi = "_g_1usnu_11", hi = "_hr_1usnu_16", xi = "_hl_1usnu_28", gi = "_t_1usnu_40", pi = "_s_1usnu_60", vi = "_u_1usnu_69", Ci = "_o_1usnu_76", ki = "_l_1usnu_105", yi = "_hh_1usnu_115", ji = "_c_1usnu_128", bi = "_loadingB_1usnu_1", wi = "_m_1usnu_180", Si = "_ul_1usnu_196", Ei = "_f_1usnu_226", J = {
2235
- h: mi,
2236
- g: fi,
2237
- hr: hi,
2238
- hl: xi,
2239
- t: gi,
2240
- s: pi,
2241
- u: vi,
2242
- o: Ci,
2243
- l: ki,
2244
- hh: yi,
2245
- c: ji,
2246
- loadingB: bi,
2247
- m: wi,
2248
- ul: Si,
2249
- f: Ei
2251
+ const fi = "_h_1usnu_1", hi = "_g_1usnu_11", xi = "_hr_1usnu_16", gi = "_hl_1usnu_28", pi = "_t_1usnu_40", vi = "_s_1usnu_60", Ci = "_u_1usnu_69", ki = "_o_1usnu_76", yi = "_l_1usnu_105", ji = "_hh_1usnu_115", bi = "_c_1usnu_128", wi = "_loadingB_1usnu_1", Si = "_m_1usnu_180", Ei = "_ul_1usnu_196", Ni = "_f_1usnu_226", J = {
2252
+ h: fi,
2253
+ g: hi,
2254
+ hr: xi,
2255
+ hl: gi,
2256
+ t: pi,
2257
+ s: vi,
2258
+ u: Ci,
2259
+ o: ki,
2260
+ l: yi,
2261
+ hh: ji,
2262
+ c: bi,
2263
+ loadingB: wi,
2264
+ m: Si,
2265
+ ul: Ei,
2266
+ f: Ni
2250
2267
  }, on = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: J.h, children: [
2251
2268
  /* @__PURE__ */ n.jsx("div", { className: J.t, children: e }),
2252
2269
  t && /* @__PURE__ */ n.jsx("div", { className: J.hl, children: t }),
@@ -2259,26 +2276,26 @@ const mi = "_h_1usnu_1", fi = "_g_1usnu_11", hi = "_hr_1usnu_16", xi = "_hl_1usn
2259
2276
  function _n({ children: e }) {
2260
2277
  return /* @__PURE__ */ n.jsx("div", { className: J.g, children: e });
2261
2278
  }
2262
- const Ni = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [J.o, t].join(" "), children: [
2279
+ const Ri = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [J.o, t].join(" "), children: [
2263
2280
  a && /* @__PURE__ */ n.jsx("div", { className: J.hh, children: a }),
2264
2281
  e
2265
- ] }), Ri = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.u, children: e }), Ti = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.c, children: e }), Ii = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.m, children: e }), un = {
2282
+ ] }), Ti = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.u, children: e }), Ii = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.c, children: e }), Di = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: J.m, children: e }), un = {
2266
2283
  Header: on,
2267
2284
  Section: cn,
2268
2285
  Group: _n,
2269
2286
  Form: dn,
2270
2287
  List: ln,
2271
2288
  A: wn,
2272
- U: Ri,
2289
+ U: Ti,
2273
2290
  G: _n,
2274
- C: Ti,
2291
+ C: Ii,
2275
2292
  L: ln,
2276
- O: Ni,
2293
+ O: Ri,
2277
2294
  S: cn,
2278
2295
  H: on,
2279
- M: Ii,
2296
+ M: Di,
2280
2297
  F: dn
2281
- }, Di = (e, t) => {
2298
+ }, Mi = (e, t) => {
2282
2299
  switch (t.type) {
2283
2300
  case "load":
2284
2301
  return {
@@ -2339,14 +2356,14 @@ const Ni = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2339
2356
  default:
2340
2357
  return e;
2341
2358
  }
2342
- }, Mi = () => ({
2359
+ }, Fi = () => ({
2343
2360
  load: !0,
2344
2361
  list: [],
2345
2362
  name: "Файлы",
2346
2363
  add: !1,
2347
2364
  search: !1,
2348
2365
  revers: !0
2349
- }), Fi = () => {
2366
+ }), Li = () => {
2350
2367
  let [e, t] = x.useState([]);
2351
2368
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsxs("div", { className: "upload view", children: [
2352
2369
  /* @__PURE__ */ n.jsxs("div", { className: "--head", children: [
@@ -2362,17 +2379,17 @@ const Ni = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2362
2379
  ] }),
2363
2380
  /* @__PURE__ */ n.jsx("div", { className: "--list", children: e.map((a) => a) })
2364
2381
  ] }) : "" });
2365
- }, Li = ({
2382
+ }, $i = ({
2366
2383
  id: e,
2367
2384
  name: t,
2368
2385
  listen: a,
2369
2386
  dir: r
2370
2387
  }) => {
2371
2388
  t = t || "Файлы";
2372
- const [s, i] = x.useReducer(Di, {}, Mi), l = () => {
2389
+ const [s, i] = x.useReducer(Mi, {}, Fi), l = () => {
2373
2390
  Et.Add(
2374
2391
  /* @__PURE__ */ n.jsx(
2375
- $i,
2392
+ Pi,
2376
2393
  {
2377
2394
  dir: r,
2378
2395
  dispatch: i,
@@ -2421,9 +2438,9 @@ const Ni = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2421
2438
  /* @__PURE__ */ n.jsx("i", {}),
2422
2439
  /* @__PURE__ */ n.jsx("i", {}),
2423
2440
  /* @__PURE__ */ n.jsx("i", {})
2424
- ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((c, _) => /* @__PURE__ */ n.jsx(Pi, { dispatch: i, data: c }, _)) })
2441
+ ] }) : s.list.length === 0 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : s.list.map((c, _) => /* @__PURE__ */ n.jsx(Bi, { dispatch: i, data: c }, _)) })
2425
2442
  ] });
2426
- }, $i = ({ id: e, dir: t, dispatch: a }) => {
2443
+ }, Pi = ({ id: e, dir: t, dispatch: a }) => {
2427
2444
  let [r, s] = x.useState(!0), i = x.useRef(null), l = (d) => {
2428
2445
  d.preventDefault(), d.stopPropagation();
2429
2446
  }, c = (d) => {
@@ -2472,7 +2489,7 @@ const Ni = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2472
2489
  },
2473
2490
  (/* @__PURE__ */ new Date()).getTime()
2474
2491
  ) }) : "" });
2475
- }, Pi = ({ data: e, dispatch: t }) => {
2492
+ }, Bi = ({ data: e, dispatch: t }) => {
2476
2493
  let a = async () => {
2477
2494
  let i = await (await fetch(nn.url().files + "/yandex/data/" + e.id, {
2478
2495
  headers: {
@@ -2520,11 +2537,11 @@ const Ni = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("
2520
2537
  ] }),
2521
2538
  /* @__PURE__ */ n.jsx("div", { className: "f080", children: K.Size(e.size) })
2522
2539
  ] });
2523
- }, Nt = { setSetting: Ya, getSetting: Ha };
2540
+ }, Nt = { setSetting: Ha, getSetting: qa };
2524
2541
  let A = {};
2525
- A.list = rr();
2542
+ A.list = sr();
2526
2543
  A.active = null;
2527
- const Bi = () => {
2544
+ const Oi = () => {
2528
2545
  var s;
2529
2546
  let [e, t] = x.useState([]), [a, r] = x.useState(Nt.getSetting("s03"));
2530
2547
  return x.useEffect(() => {
@@ -2562,7 +2579,7 @@ const Bi = () => {
2562
2579
  "bookmarks",
2563
2580
  a === 1 && e.length !== 0 ? "bottom" : ""
2564
2581
  ), a !== 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ n.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2565
- }, Oi = ({ id: e, type: t, name: a }) => {
2582
+ }, Ai = ({ id: e, type: t, name: a }) => {
2566
2583
  let r = t + "-" + e, [s, i] = x.useState(
2567
2584
  A.list[r] !== void 0
2568
2585
  );
@@ -2590,7 +2607,7 @@ const Bi = () => {
2590
2607
  He.setId(e.id);
2591
2608
  };
2592
2609
  return /* @__PURE__ */ n.jsx("span", { onContextMenu: t, onClick: a, children: e.name });
2593
- }, Ai = (e) => {
2610
+ }, Zi = (e) => {
2594
2611
  A.active(e);
2595
2612
  }, O = {}, pt = {}, b = {};
2596
2613
  b.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
@@ -2737,7 +2754,7 @@ O.Run = async (e) => {
2737
2754
  O[e.data.type] && O[e.data.type](e.data);
2738
2755
  };
2739
2756
  let Le = {};
2740
- function Zi() {
2757
+ function zi() {
2741
2758
  let [e, t] = x.useState([]), a = x.useRef(null);
2742
2759
  return x.useEffect(() => {
2743
2760
  }, []), Le.set = (r) => {
@@ -2751,14 +2768,14 @@ function Zi() {
2751
2768
  /* @__PURE__ */ n.jsx("audio", { id: "audio", ref: a, autoPlay: !0, muted: !0 })
2752
2769
  ] });
2753
2770
  }
2754
- function zi(e, t) {
2771
+ function Gi(e, t) {
2755
2772
  let a = (/* @__PURE__ */ new Date()).getTime();
2756
2773
  Le.set({
2757
- item: /* @__PURE__ */ n.jsx(Gi, { type: t, id: e }, a),
2774
+ item: /* @__PURE__ */ n.jsx(Ki, { type: t, id: e }, a),
2758
2775
  key: a
2759
2776
  });
2760
2777
  }
2761
- function Gi({ id: e, type: t }) {
2778
+ function Ki({ id: e, type: t }) {
2762
2779
  const [a, r] = x.useState({}), [s, i] = x.useState(t);
2763
2780
  x.useEffect(() => {
2764
2781
  r(se.getSelect("user")[e]);
@@ -2859,13 +2876,13 @@ function Gi({ id: e, type: t }) {
2859
2876
  ] }) });
2860
2877
  }
2861
2878
  const vt = {};
2862
- function Ki(e) {
2879
+ function Wi(e) {
2863
2880
  vt.add(e);
2864
2881
  }
2865
- function Wi({ color: e, size: t, name: a }) {
2882
+ function Ui({ color: e, size: t, name: a }) {
2866
2883
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
2867
2884
  }
2868
- function Ui() {
2885
+ function Vi() {
2869
2886
  let [e, t] = x.useState([]);
2870
2887
  if (vt.x = () => {
2871
2888
  t([]);
@@ -2887,14 +2904,14 @@ function Ui() {
2887
2904
  )) });
2888
2905
  }
2889
2906
  const Ct = {};
2890
- function Vi(e, t) {
2907
+ function Yi(e, t) {
2891
2908
  Ct[e] = t;
2892
2909
  }
2893
- function Yi(e, t) {
2910
+ function Hi(e, t) {
2894
2911
  Ct[e] !== void 0 && Ct[e](t);
2895
2912
  }
2896
2913
  const _e = {};
2897
- function Hi(e, t) {
2914
+ function qi(e, t) {
2898
2915
  const [a, r] = x.useState(t);
2899
2916
  return x.useEffect(() => {
2900
2917
  if (_e[e])
@@ -2902,54 +2919,54 @@ function Hi(e, t) {
2902
2919
  _e[e] = [r];
2903
2920
  }, []), [a];
2904
2921
  }
2905
- function qi(e, t) {
2922
+ function Ji(e, t) {
2906
2923
  if (_e[e])
2907
2924
  return _e[e].push(t);
2908
2925
  _e[e] = [t];
2909
2926
  }
2910
- function Ji(e, t) {
2927
+ function Xi(e, t) {
2911
2928
  _e[e] && _e[e].forEach((a) => a(t));
2912
2929
  }
2913
- const Ee = { setListener: Yi, useListener: Vi, setEmitter: Ji, useEmitter: Hi, subEmitter: qi };
2914
- function Xi() {
2930
+ const Ee = { setListener: Hi, useListener: Yi, setEmitter: Xi, useEmitter: qi, subEmitter: Ji };
2931
+ function Qi() {
2915
2932
  let [e, t] = x.useState([]);
2916
2933
  return Ee.useListener("form", (a) => {
2917
2934
  t([a]);
2918
2935
  }), /* @__PURE__ */ n.jsx(n.Fragment, { children: e.map((a) => a) });
2919
2936
  }
2920
- const Qi = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Ea(t.defaultModule), Ra(
2937
+ const eo = ({ children: e, config: t }) => (D.New(t.crypto), t.defaultModule && Na(t.defaultModule), Ta(
2921
2938
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2922
- /* @__PURE__ */ n.jsx(si, { config: t.modal }),
2923
- /* @__PURE__ */ n.jsx(Ir, {}),
2924
- /* @__PURE__ */ n.jsx(zr, {}),
2925
- /* @__PURE__ */ n.jsx(Fi, {}),
2926
- /* @__PURE__ */ n.jsx(Ui, {}),
2927
- /* @__PURE__ */ n.jsx(Xi, {}),
2928
- /* @__PURE__ */ n.jsx(Zi, {}),
2929
- /* @__PURE__ */ n.jsx(Bi, {}),
2939
+ /* @__PURE__ */ n.jsx(ii, { config: t.modal }),
2940
+ /* @__PURE__ */ n.jsx(Dr, {}),
2941
+ /* @__PURE__ */ n.jsx(Gr, {}),
2942
+ /* @__PURE__ */ n.jsx(Li, {}),
2943
+ /* @__PURE__ */ n.jsx(Vi, {}),
2944
+ /* @__PURE__ */ n.jsx(Qi, {}),
2945
+ /* @__PURE__ */ n.jsx(zi, {}),
2946
+ /* @__PURE__ */ n.jsx(Oi, {}),
2930
2947
  e
2931
2948
  ] })
2932
- )), eo = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("menu", { children: e }), to = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("header", { children: [
2949
+ )), to = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("menu", { children: e }), no = ({ children: e, ...t }) => /* @__PURE__ */ n.jsxs("header", { children: [
2933
2950
  "xz",
2934
2951
  e
2935
- ] }), no = "_payment_1lxfv_1", ao = {
2936
- payment: no
2952
+ ] }), ao = "_payment_1lxfv_1", ro = {
2953
+ payment: ao
2937
2954
  };
2938
- function ro() {
2955
+ function so() {
2939
2956
  let [e, t] = x.useState({});
2940
- return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: ao.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2957
+ return !e.active && !e.payment ? "" : /* @__PURE__ */ n.jsx("div", { className: ro.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
2941
2958
  }
2942
- const Ol = ({ children: e, ...t }) => {
2959
+ const Zl = ({ children: e, ...t }) => {
2943
2960
  let a = {};
2944
2961
  return a.enCode = (r) => JSON.stringify(r).toString(), a.deCode = (r) => JSON.parse(r), /* @__PURE__ */ n.jsxs("div", { className: "app", children: [
2945
- /* @__PURE__ */ n.jsx(ro, {}),
2946
- /* @__PURE__ */ n.jsx(eo, {}),
2962
+ /* @__PURE__ */ n.jsx(so, {}),
2947
2963
  /* @__PURE__ */ n.jsx(to, {}),
2948
- /* @__PURE__ */ n.jsx(Qi, { config: { modal: {}, crypto: a } }),
2964
+ /* @__PURE__ */ n.jsx(no, {}),
2965
+ /* @__PURE__ */ n.jsx(eo, { config: { modal: {}, crypto: a } }),
2949
2966
  e
2950
2967
  ] });
2951
- }, so = ({ list: e, onClick: t, active: a, size: r, view: s }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
2952
- io,
2968
+ }, io = ({ list: e, onClick: t, active: a, size: r, view: s }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
2969
+ oo,
2953
2970
  {
2954
2971
  onClick: t,
2955
2972
  active: a,
@@ -2957,9 +2974,9 @@ const Ol = ({ children: e, ...t }) => {
2957
2974
  link: i.link
2958
2975
  },
2959
2976
  i.link
2960
- )) }) }), io = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
2961
- so.defaultProps = { size: "M", view: "H" };
2962
- const oo = ({
2977
+ )) }) }), oo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
2978
+ io.defaultProps = { size: "M", view: "H" };
2979
+ const lo = ({
2963
2980
  title: e = "",
2964
2981
  button: t,
2965
2982
  description: a = "",
@@ -2979,9 +2996,9 @@ const oo = ({
2979
2996
  ] }),
2980
2997
  /* @__PURE__ */ n.jsx("ul", { children: r }),
2981
2998
  a && /* @__PURE__ */ n.jsx("article", { children: a })
2982
- ] }), lo = "_setting_dva4m_2", co = {
2983
- setting: lo
2984
- }, _o = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: co.setting, children: e }), uo = ({ label: e, children: t }) => {
2999
+ ] }), co = "_setting_dva4m_2", _o = {
3000
+ setting: co
3001
+ }, uo = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: _o.setting, children: e }), mo = ({ label: e, children: t }) => {
2985
3002
  let [a, r] = x.useState(!1);
2986
3003
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
2987
3004
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
@@ -2990,10 +3007,10 @@ const oo = ({
2990
3007
  ] }),
2991
3008
  a && /* @__PURE__ */ n.jsx("div", { children: t })
2992
3009
  ] });
2993
- }, mo = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3010
+ }, fo = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
2994
3011
  /* @__PURE__ */ n.jsx("dt", { children: e }),
2995
3012
  /* @__PURE__ */ n.jsx("dd", { role: "button", onClick: () => t(), children: a })
2996
- ] }) }), fo = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
3013
+ ] }) }), ho = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
2997
3014
  "div",
2998
3015
  {
2999
3016
  role: "switch",
@@ -3002,25 +3019,25 @@ const oo = ({
3002
3019
  },
3003
3020
  "aria-checked": e ? "true" : "false"
3004
3021
  }
3005
- )), ho = { Switch: fo }, xo = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3022
+ )), xo = { Switch: ho }, go = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3006
3023
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3007
- /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(ho.Switch, { onClick: t, active: a }) })
3008
- ] }) }), go = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3024
+ /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(xo.Switch, { onClick: t, active: a }) })
3025
+ ] }) }), po = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3009
3026
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3010
3027
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
3011
- ] }) }), po = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3028
+ ] }) }), vo = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3012
3029
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3013
3030
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
3014
- ] }) }), vo = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3031
+ ] }) }), Co = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3015
3032
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3016
3033
  /* @__PURE__ */ n.jsx("dd", { children: t })
3017
- ] }) }), Co = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3034
+ ] }) }), ko = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
3018
3035
  /* @__PURE__ */ n.jsx("dt", { children: e }),
3019
3036
  /* @__PURE__ */ n.jsx("dd", { children: t })
3020
- ] }) }), ko = { Accordion: uo, Button: mo, Switch: xo, Info: po, Select: go, Component: vo, Node: Co };
3037
+ ] }) }), yo = { Accordion: mo, Button: fo, Switch: go, Info: vo, Select: po, Component: Co, Node: ko };
3021
3038
  function Sn({ list: e, onClick: t, active: a, size: r, view: s }) {
3022
3039
  return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, s].join(" "), children: e.map((i) => /* @__PURE__ */ n.jsx(
3023
- yo,
3040
+ jo,
3024
3041
  {
3025
3042
  onClick: t,
3026
3043
  active: a,
@@ -3030,10 +3047,10 @@ function Sn({ list: e, onClick: t, active: a, size: r, view: s }) {
3030
3047
  i.link
3031
3048
  )) }) });
3032
3049
  }
3033
- const yo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3050
+ const jo = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
3034
3051
  Sn.defaultProps = { size: "M", view: "H" };
3035
- const Al = { Section: oo, Main: _o, Item: ko, Tabs: Sn }, Zl = { Icon: Oi, Item: gt, Active: Ai }, zl = { Send: Kr, Line: wn };
3036
- function jo() {
3052
+ const zl = { Section: lo, Main: uo, Item: yo, Tabs: Sn }, Gl = { Icon: Ai, Item: gt, Active: Zi }, Kl = { Send: Wr, Line: wn };
3053
+ function bo() {
3037
3054
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
3038
3055
  "path",
3039
3056
  {
@@ -3042,11 +3059,11 @@ function jo() {
3042
3059
  }
3043
3060
  ) });
3044
3061
  }
3045
- const Gl = { Logo: jo, Sprite: Ki, Symbol: Wi }, bo = "_sort_1yrvt_1", wo = {
3046
- sort: bo
3062
+ const Wl = { Logo: bo, Sprite: Wi, Symbol: Ui }, wo = "_sort_1yrvt_1", So = {
3063
+ sort: wo
3047
3064
  };
3048
3065
  let Qe = {};
3049
- function So(e, t) {
3066
+ function Eo(e, t) {
3050
3067
  switch (t.type) {
3051
3068
  case "active":
3052
3069
  let a = "<";
@@ -3059,12 +3076,12 @@ function So(e, t) {
3059
3076
  throw new Error();
3060
3077
  }
3061
3078
  }
3062
- function Eo() {
3079
+ function No() {
3063
3080
  const [e, t] = x.useReducer(
3064
- So,
3081
+ Eo,
3065
3082
  ft() === void 0 ? { active: 1, sort: "<" } : ft()
3066
3083
  );
3067
- return /* @__PURE__ */ n.jsxs("div", { className: wo.sort, children: [
3084
+ return /* @__PURE__ */ n.jsxs("div", { className: So.sort, children: [
3068
3085
  /* @__PURE__ */ n.jsx(
3069
3086
  "i",
3070
3087
  {
@@ -3091,13 +3108,13 @@ function Eo() {
3091
3108
  )
3092
3109
  ] });
3093
3110
  }
3094
- function No(e) {
3111
+ function Ro(e) {
3095
3112
  Qe.get = e;
3096
3113
  }
3097
- function Ro(e) {
3114
+ function To(e) {
3098
3115
  Qe.set(e);
3099
3116
  }
3100
- function To(e, t, a) {
3117
+ function Io(e, t, a) {
3101
3118
  let r = 1, s = 0, i = {}, l = 50;
3102
3119
  i[r] = [];
3103
3120
  let c = {}, _ = "s1a";
@@ -3116,11 +3133,11 @@ function To(e, t, a) {
3116
3133
  s++, s <= l || (r++, s = 1, i[r] = []), i[r].push(e[d.id]);
3117
3134
  }), { data: i };
3118
3135
  }
3119
- function Io(e) {
3136
+ function Do(e) {
3120
3137
  Qe.count(e);
3121
3138
  }
3122
- const Kl = { Init: Eo, useValue: No, Set: Ro, Run: To, Count: Io }, qe = {}, En = {};
3123
- function Do(e) {
3139
+ const Ul = { Init: No, useValue: Ro, Set: To, Run: Io, Count: Do }, qe = {}, En = {};
3140
+ function Mo(e) {
3124
3141
  const [t, a] = x.useState({}), r = async (s) => {
3125
3142
  a(
3126
3143
  Object.keys(qe).reduce((i, l) => (i ? i[l] = qe[l].all : i = {}, i), {})
@@ -3130,15 +3147,15 @@ function Do(e) {
3130
3147
  e.forEach((s) => qe[s] = { all: 0 }), En.menu = r, r();
3131
3148
  }, [e]), t;
3132
3149
  }
3133
- function Mo(e, t) {
3150
+ function Fo(e, t) {
3134
3151
  switch (typeof t) {
3135
3152
  case "number":
3136
3153
  qe[e].all += t, En.menu();
3137
3154
  break;
3138
3155
  }
3139
3156
  }
3140
- const Wl = { useMenu: Do, setUpdate: Mo };
3141
- class Fo {
3157
+ const Vl = { useMenu: Mo, setUpdate: Fo };
3158
+ class Lo {
3142
3159
  constructor(t = "el", a = "db") {
3143
3160
  dt(this, "storeName");
3144
3161
  dt(this, "_dbp");
@@ -3159,7 +3176,7 @@ class Fo {
3159
3176
  }
3160
3177
  }
3161
3178
  let _t, G = {};
3162
- const Ne = () => (_t || (_t = new Fo()), _t), fe = (e, t, a = Ne()) => a._withIDBStore("readwrite", (r) => {
3179
+ const Ne = () => (_t || (_t = new Lo()), _t), fe = (e, t, a = Ne()) => a._withIDBStore("readwrite", (r) => {
3163
3180
  G[e] = t, r.put(D.enCode(t), e);
3164
3181
  }), le = (e, t = Ne()) => G[e] === void 0 ? new Promise((a, r) => {
3165
3182
  let s;
@@ -3172,42 +3189,42 @@ const Ne = () => (_t || (_t = new Fo()), _t), fe = (e, t, a = Ne()) => a._withID
3172
3189
  } else
3173
3190
  a({});
3174
3191
  });
3175
- }) : G[e], Lo = (e, t = Ne()) => t._withIDBStore("readwrite", (a) => {
3192
+ }) : G[e], $o = (e, t = Ne()) => t._withIDBStore("readwrite", (a) => {
3176
3193
  a.delete(e);
3177
3194
  }), kt = (e = Ne()) => e._withIDBStore("readwrite", (t) => {
3178
3195
  t.clear();
3179
- }), $o = (e = Ne()) => {
3196
+ }), Po = (e = Ne()) => {
3180
3197
  const t = [];
3181
3198
  return e._withIDBStore("readonly", (a) => {
3182
3199
  (a.openKeyCursor || a.openCursor).call(a).onsuccess = function() {
3183
3200
  this.result && (t.push(this.result.key), this.result.continue());
3184
3201
  };
3185
3202
  }).then(() => t);
3186
- }, Po = (e, t, a = [], r = {}) => {
3203
+ }, Bo = (e, t, a = [], r = {}) => {
3187
3204
  let s = a.length !== 0, i = [], l = r.sort, c = Object.keys(r).length !== 0, _ = Object.keys(r), d = Object.keys(e), u = 1, m = [], f = {};
3188
3205
  f[u] = [];
3189
- let g = (v) => {
3206
+ let g = (p) => {
3190
3207
  let y = "";
3191
- if (a.forEach((k) => {
3192
- y += t[v][k];
3208
+ if (a.forEach((v) => {
3209
+ y += t[p][v];
3193
3210
  }), c) {
3194
- let k = {};
3211
+ let v = {};
3195
3212
  _.forEach((j) => {
3196
- k[j] = t[v][j];
3213
+ v[j] = t[p][j];
3197
3214
  });
3198
3215
  for (let j in l)
3199
- t[v][l[j]] === void 0 && (kt(), location.reload()), j === "s1" && (k[j] = new Date(t[v][l[j]]).getTime()), j === "s2" && (k[j] = t[v][l[j]]), j === "s3" && (k[j] = t[v][l[j]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3200
- i.push({ id: v, text: y, ...k });
3216
+ t[p][l[j]] === void 0 && (kt(), location.reload()), j === "s1" && (v[j] = new Date(t[p][l[j]]).getTime()), j === "s2" && (v[j] = t[p][l[j]]), j === "s3" && (v[j] = t[p][l[j]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
3217
+ i.push({ id: p, text: y, ...v });
3201
3218
  } else
3202
- i.push({ id: v, text: y });
3203
- }, C = (v) => {
3219
+ i.push({ id: p, text: y });
3220
+ }, k = (p) => {
3204
3221
  };
3205
- return d.forEach((v) => {
3206
- m.push(t[v]);
3207
- }), m.forEach((v) => {
3208
- v === void 0 ? (kt(), location.reload()) : (s && g(v.id), c && C(v.id));
3222
+ return d.forEach((p) => {
3223
+ m.push(t[p]);
3224
+ }), m.forEach((p) => {
3225
+ p === void 0 ? (kt(), location.reload()) : (s && g(p.id), c && k(p.id));
3209
3226
  }), { list: f, search: i, filter: r };
3210
- }, Bo = (e, t, a, r = Ne()) => {
3227
+ }, Oo = (e, t, a, r = Ne()) => {
3211
3228
  if (G[e] === void 0)
3212
3229
  return new Promise((s, i) => {
3213
3230
  let l;
@@ -3228,45 +3245,45 @@ const Ne = () => (_t || (_t = new Fo()), _t), fe = (e, t, a = Ne()) => a._withID
3228
3245
  return G[e][t.id] = { ...G[e][t.id], ...t.data }, a !== void 0 && G[a] !== void 0 ? G[a][t.id] !== void 0 && (G[a][t.id] = t.data.eDate) : G[a] = [], delete G[e][t.id].$_item, delete G[e][t.id].$_send, r._withIDBStore("readwrite", (s) => {
3229
3246
  s.put(D.enCode(G[e]), e), a !== void 0 && s.put(D.enCode(G[a]), a);
3230
3247
  });
3231
- }, Oo = async (e, t, a, r) => {
3248
+ }, Ao = async (e, t, a, r) => {
3232
3249
  let s, i;
3233
3250
  i = await le(a), i[e.id] = e, await fe(a, i), s !== null && (s = await le(t), s[e.id] = e.eDate, await fe(t, s)), r !== void 0 && r({ type: "load", page: s, base: i });
3234
- }, Ao = async (e, t, a, r) => {
3251
+ }, Zo = async (e, t, a, r) => {
3235
3252
  let s = await le(t), i = await le(a);
3236
3253
  for (let l in e)
3237
3254
  i[l] = e[l], s[l] = e[l].eDate;
3238
3255
  await fe(t, s), await fe(a, i), r !== void 0 && r({ type: "load", page: s, base: i });
3239
- }, Zo = async (e, t, a, r) => {
3256
+ }, zo = async (e, t, a, r) => {
3240
3257
  let s = await le(t), i = await le(a);
3241
3258
  e.forEach((l) => delete s[l]), await fe(t, s), r !== void 0 && r({ type: "load", page: s, base: i });
3242
- }, zo = async (e, t, a) => {
3259
+ }, Go = async (e, t, a) => {
3243
3260
  let r = await le(t);
3244
3261
  e.forEach((s) => delete r[s]), await fe(t, r);
3245
- }, Go = async (e, t, a) => {
3262
+ }, Ko = async (e, t, a) => {
3246
3263
  let r = await le(t);
3247
3264
  e.forEach((s) => r[s.id] = s.eDate), await fe(t, r);
3248
- }, Ko = async (e, t, a) => {
3265
+ }, Wo = async (e, t, a) => {
3249
3266
  let r = await le(t);
3250
3267
  if (a !== void 0)
3251
3268
  a({ type: "load", base: r });
3252
3269
  else
3253
3270
  return r[e];
3254
- }, Wo = (e) => G[e], Ul = {
3255
- id: Ko,
3271
+ }, Uo = (e) => G[e], Yl = {
3272
+ id: Wo,
3256
3273
  get: le,
3257
3274
  set: fe,
3258
- add: Oo,
3259
- del: Lo,
3260
- upd: Bo,
3261
- key: $o,
3262
- load: Wo,
3263
- split: Po,
3275
+ add: Ao,
3276
+ del: $o,
3277
+ upd: Oo,
3278
+ key: Po,
3279
+ load: Uo,
3280
+ split: Bo,
3264
3281
  clear: kt,
3265
- updAll: Ao,
3266
- delAll: Zo,
3267
- delList: zo,
3268
- addList: Go
3269
- }, Uo = (e, t) => {
3282
+ updAll: Zo,
3283
+ delAll: zo,
3284
+ delList: Go,
3285
+ addList: Ko
3286
+ }, Vo = (e, t) => {
3270
3287
  const a = [];
3271
3288
  t = t.map((r) => r.charCodeAt(0)), document.onkeydown = function(r) {
3272
3289
  a.push(r.keyCode);
@@ -3277,15 +3294,15 @@ const Ne = () => (_t || (_t = new Fo()), _t), fe = (e, t, a = Ne()) => a._withID
3277
3294
  }, document.onkeyup = function(r) {
3278
3295
  a.length = 0;
3279
3296
  };
3280
- }, Vl = { useKey: Uo }, Vo = "_s_18bde_1", Yo = "_loadingB_18bde_1", Ho = "_ul_18bde_31", qo = {
3281
- s: Vo,
3282
- loadingB: Yo,
3283
- ul: Ho
3297
+ }, Hl = { useKey: Vo }, Yo = "_s_18bde_1", Ho = "_loadingB_18bde_1", qo = "_ul_18bde_31", Jo = {
3298
+ s: Yo,
3299
+ loadingB: Ho,
3300
+ ul: qo
3284
3301
  };
3285
3302
  function Nn({ children: e }) {
3286
3303
  return /* @__PURE__ */ n.jsx("ul", { className: J.ul, children: e });
3287
3304
  }
3288
- function Jo(e, t) {
3305
+ function Xo(e, t) {
3289
3306
  switch (t.type) {
3290
3307
  case "load":
3291
3308
  return {
@@ -3319,7 +3336,7 @@ function Jo(e, t) {
3319
3336
  }
3320
3337
  }
3321
3338
  function Rn(e) {
3322
- const t = x.useRef(null), [a, r] = x.useReducer(Jo, {
3339
+ const t = x.useRef(null), [a, r] = x.useReducer(Xo, {
3323
3340
  load: !1,
3324
3341
  list: [],
3325
3342
  data: {},
@@ -3334,13 +3351,13 @@ function Rn(e) {
3334
3351
  let s = () => {
3335
3352
  t.current.scrollHeight - t.current.scrollTop - 300 <= t.current.clientHeight && !a.wait && r({ type: "update" });
3336
3353
  };
3337
- return /* @__PURE__ */ n.jsx("div", { className: qo.s, ref: t, onScroll: s, children: /* @__PURE__ */ n.jsx(Nn, { "el-empty": "Данные не найдены", children: a.load && a.list !== void 0 ? a.list.map((i) => /* @__PURE__ */ n.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
3354
+ return /* @__PURE__ */ n.jsx("div", { className: Jo.s, ref: t, onScroll: s, children: /* @__PURE__ */ n.jsx(Nn, { "el-empty": "Данные не найдены", children: a.load && a.list !== void 0 ? a.list.map((i) => /* @__PURE__ */ n.jsx(e.item, { data: i }, i.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
3338
3355
  /* @__PURE__ */ n.jsx("i", {}),
3339
3356
  /* @__PURE__ */ n.jsx("i", {}),
3340
3357
  /* @__PURE__ */ n.jsx("i", {})
3341
3358
  ] }) }) });
3342
3359
  }
3343
- const Yl = { Scrolling: Rn }, Hl = { Widget: Li }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
3360
+ const ql = { Scrolling: Rn }, Jl = { Widget: $i }, Tn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
3344
3361
  "div",
3345
3362
  {
3346
3363
  role: "switch",
@@ -3379,11 +3396,11 @@ function Be({
3379
3396
  view: m,
3380
3397
  onBlur: f,
3381
3398
  onSave: g,
3382
- className: C = ""
3399
+ className: k = ""
3383
3400
  }) {
3384
- let v = !!(l && (e === "" || e === void 0)), y = (R) => {
3401
+ let p = !!(l && (e === "" || e === void 0)), y = (R) => {
3385
3402
  t && t({ value: R.target.textContent, name: a });
3386
- }, k = (R) => {
3403
+ }, v = (R) => {
3387
3404
  R.key === "Enter" && R.preventDefault();
3388
3405
  }, j = (R) => {
3389
3406
  }, $ = (R) => {
@@ -3391,20 +3408,20 @@ function Be({
3391
3408
  function() {
3392
3409
  Pe.Copy("Данные в буфер обмене");
3393
3410
  },
3394
- function(S) {
3411
+ function(E) {
3395
3412
  }
3396
3413
  );
3397
3414
  };
3398
- if (!(c && _) && !u || !(c && _) && v)
3415
+ if (!(c && _) && !u || !(c && _) && p)
3399
3416
  return "";
3400
- const P = {};
3401
- P.field = "input", C && (P.className = C);
3402
- const E = {};
3403
- r && (E.placeholder = r), c && _ && (E.edit = "");
3417
+ const M = {};
3418
+ M.field = "input", k && (M.className = k);
3419
+ const S = {};
3420
+ r && (S.placeholder = r), c && _ && (S.edit = "");
3404
3421
  const T = (R) => {
3405
3422
  he.Blur(R), g && g({ value: R.target.textContent, name: a });
3406
3423
  };
3407
- return /* @__PURE__ */ n.jsxs("dl", { ...P, children: [
3424
+ return /* @__PURE__ */ n.jsxs("dl", { ...M, children: [
3408
3425
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
3409
3426
  /* @__PURE__ */ n.jsx(
3410
3427
  "dd",
@@ -3412,11 +3429,11 @@ function Be({
3412
3429
  onPaste: j,
3413
3430
  onInput: y,
3414
3431
  onBlur: T,
3415
- onKeyDown: k,
3432
+ onKeyDown: v,
3416
3433
  onContextMenu: $,
3417
3434
  contentEditable: c && _ ? "plaintext-only" : "false",
3418
3435
  suppressContentEditableWarning: !0,
3419
- ...E,
3436
+ ...S,
3420
3437
  children: e
3421
3438
  }
3422
3439
  ),
@@ -3461,18 +3478,18 @@ function Dn({
3461
3478
  d.current.value.length > 0 ? d.current.send && (a(!0), d.current.send = !1, d.current.timerId = setTimeout(() => {
3462
3479
  d.current.send = !0;
3463
3480
  }, 3e3)) : a(!1);
3464
- }, m = (k) => {
3465
- d.current.value = k.target.textContent, u();
3466
- }, f = (k) => {
3467
- k.keyCode === 16 && (d.current.shift = !0), k.keyCode === 13 && !d.current.shift && (k.preventDefault(), d.current.value.length !== 0 && (k.target.textContent = "", r && r(d.current.value), t && t(d.current.value), d.current.value = "", a(!1)));
3468
- }, g = (k) => {
3469
- k.keyCode === 16 && (d.current.shift = !1);
3470
- }, C = (k) => {
3471
- k.preventDefault(), navigator.clipboard.readText().then((j) => {
3481
+ }, m = (v) => {
3482
+ d.current.value = v.target.textContent, u();
3483
+ }, f = (v) => {
3484
+ v.keyCode === 16 && (d.current.shift = !0), v.keyCode === 13 && !d.current.shift && (v.preventDefault(), d.current.value.length !== 0 && (v.target.textContent = "", r && r(d.current.value), t && t(d.current.value), d.current.value = "", a(!1)));
3485
+ }, g = (v) => {
3486
+ v.keyCode === 16 && (d.current.shift = !1);
3487
+ }, k = (v) => {
3488
+ v.preventDefault(), navigator.clipboard.readText().then((j) => {
3472
3489
  window.document.execCommand("insertText", !1, j);
3473
3490
  }).catch((j) => {
3474
3491
  });
3475
- }, v = () => {
3492
+ }, p = () => {
3476
3493
  a(!1);
3477
3494
  }, y = {
3478
3495
  spellCheck: "true"
@@ -3480,11 +3497,11 @@ function Dn({
3480
3497
  return _ && (y.placeholder = _), l && c && (y.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
3481
3498
  "dd",
3482
3499
  {
3483
- onPaste: C,
3500
+ onPaste: k,
3484
3501
  onInput: m,
3485
3502
  onKeyUp: g,
3486
3503
  onKeyDown: f,
3487
- onBlur: v,
3504
+ onBlur: p,
3488
3505
  ...y,
3489
3506
  suppressContentEditableWarning: !0,
3490
3507
  children: e
@@ -3519,23 +3536,23 @@ function Mn(e) {
3519
3536
  ] });
3520
3537
  }
3521
3538
  function Fn({ value: e, onValue: t, placeholder: a = "", name: r }) {
3522
- let s = (g, C) => Number(Math.round(g + Math.random() * (C - g))), i = x.useRef(null), l = x.useRef(null), c = s(1e4, 99999), _ = (g) => {
3539
+ let s = (g, k) => Number(Math.round(g + Math.random() * (k - g))), i = x.useRef(null), l = x.useRef(null), c = s(1e4, 99999), _ = (g) => {
3523
3540
  g.key !== "Backspace" && (g.key === "Enter" && g.preventDefault(), g.target.textContent.length === 5 && g.preventDefault(), /\d/.test(g.key) || g.preventDefault());
3524
3541
  }, d = (g) => {
3525
3542
  t({ value: Number(g.target.textContent) === c, name: r });
3526
3543
  }, u = (g) => {
3527
- g.preventDefault(), navigator.clipboard.readText().then((C) => {
3544
+ g.preventDefault(), navigator.clipboard.readText().then((k) => {
3528
3545
  window.document.execCommand(
3529
3546
  "insertText",
3530
3547
  !1,
3531
- C.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3548
+ k.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
3532
3549
  );
3533
- }).catch((C) => {
3550
+ }).catch((k) => {
3534
3551
  });
3535
3552
  };
3536
3553
  x.useEffect(() => {
3537
- const g = i.current, C = g.getContext("2d");
3538
- C.clearRect(0, 0, g.width, g.height), C.font = "30px brush script mt", C.fillStyle = "#eee", C.textAlign = "center", C.fillText(c, 50, 27), l.current.textContent = "";
3554
+ const g = i.current, k = g.getContext("2d");
3555
+ k.clearRect(0, 0, g.width, g.height), k.font = "30px brush script mt", k.fillStyle = "#eee", k.textAlign = "center", k.fillText(c, 50, 27), l.current.textContent = "";
3539
3556
  }, [c]);
3540
3557
  const m = {};
3541
3558
  m.field = "captcha";
@@ -3720,9 +3737,9 @@ function $n(e) {
3720
3737
  }
3721
3738
  ) });
3722
3739
  }
3723
- const Xo = "_o_1kqkq_1", Qo = "_c_1kqkq_11", we = {
3724
- o: Xo,
3725
- c: Qo
3740
+ const Qo = "_o_1kqkq_1", el = "_c_1kqkq_11", we = {
3741
+ o: Qo,
3742
+ c: el
3726
3743
  };
3727
3744
  function Rt(e) {
3728
3745
  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, i = e.placeholder !== void 0 ? e.placeholder : "", [l, c] = x.useState(
@@ -3734,13 +3751,13 @@ function Rt(e) {
3734
3751
  let d = (g) => {
3735
3752
  c(g), e.onValue({ value: g, name: e.name });
3736
3753
  }, u = (g) => {
3737
- const C = g.target.getBoundingClientRect(), v = C.left, y = C.top;
3754
+ const k = g.target.getBoundingClientRect(), p = k.left, y = k.top;
3738
3755
  Ee.setListener(
3739
3756
  "form",
3740
3757
  /* @__PURE__ */ n.jsx(
3741
- el,
3758
+ tl,
3742
3759
  {
3743
- position: { x: v, y },
3760
+ position: { x: p, y },
3744
3761
  onValue: d,
3745
3762
  date: l
3746
3763
  },
@@ -3779,7 +3796,7 @@ function Rt(e) {
3779
3796
  }
3780
3797
  ) });
3781
3798
  }
3782
- const el = (e) => {
3799
+ const tl = (e) => {
3783
3800
  let [t, a] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
3784
3801
  y: parseInt(r.getFullYear()),
3785
3802
  d: parseInt(r.getDate()),
@@ -3788,33 +3805,33 @@ const el = (e) => {
3788
3805
  y: parseInt(s.getFullYear()),
3789
3806
  d: parseInt(s.getDate()),
3790
3807
  m: parseInt(s.getMonth()) + 1
3791
- }, [c, _] = x.useState({ y: l.y, m: l.m }), d = (E) => {
3792
- let T = E.getDay();
3808
+ }, [c, _] = x.useState({ y: l.y, m: l.m }), d = (S) => {
3809
+ let T = S.getDay();
3793
3810
  return T === 0 && (T = 7), T - 1;
3794
3811
  }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], m = c.m - 1, f = new Date(c.y, m), g = [];
3795
- for (let E = 0; E < d(f); E++)
3812
+ for (let S = 0; S < d(f); S++)
3796
3813
  g.push(0);
3797
3814
  for (; f.getMonth() === m; )
3798
3815
  g.push(f.getDate()), f.setDate(f.getDate() + 1);
3799
- let C = () => {
3816
+ let k = () => {
3800
3817
  a(!1);
3801
- }, v = () => {
3818
+ }, p = () => {
3802
3819
  j(c.m + 1, c.y);
3803
3820
  }, y = () => {
3804
3821
  j(c.m - 1, c.y);
3805
- }, k = (E) => {
3822
+ }, v = (S) => {
3806
3823
  e.onValue(
3807
- c.y + "-" + K.Number(2, c.m) + "-" + K.Number(2, E)
3808
- ), C();
3809
- }, j = (E, T) => {
3810
- T = E > 12 ? T + 1 : E < 1 ? T - 1 : T, E = E > 12 ? 1 : E < 1 ? 12 : E, _({ y: T, m: E });
3811
- }, $ = 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;
3824
+ c.y + "-" + K.Number(2, c.m) + "-" + K.Number(2, S)
3825
+ ), k();
3826
+ }, j = (S, T) => {
3827
+ T = S > 12 ? T + 1 : S < 1 ? T - 1 : T, S = S > 12 ? 1 : S < 1 ? 12 : S, _({ y: T, m: S });
3828
+ }, $ = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, M = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
3812
3829
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3813
3830
  /* @__PURE__ */ n.jsx(
3814
3831
  "div",
3815
3832
  {
3816
3833
  className: we.o,
3817
- onClick: () => C()
3834
+ onClick: () => k()
3818
3835
  },
3819
3836
  (/* @__PURE__ */ new Date()).getTime()
3820
3837
  ),
@@ -3822,7 +3839,7 @@ const el = (e) => {
3822
3839
  "div",
3823
3840
  {
3824
3841
  className: we.c,
3825
- style: { top: $ + "px", left: P + "px" },
3842
+ style: { top: $ + "px", left: M + "px" },
3826
3843
  children: [
3827
3844
  /* @__PURE__ */ n.jsxs("s", { children: [
3828
3845
  /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => y() }),
@@ -3831,16 +3848,16 @@ const el = (e) => {
3831
3848
  " ",
3832
3849
  c.y
3833
3850
  ] }),
3834
- /* @__PURE__ */ n.jsx("i", { "data-icon": "F022", onClick: () => v() })
3851
+ /* @__PURE__ */ n.jsx("i", { "data-icon": "F022", onClick: () => p() })
3835
3852
  ] }),
3836
3853
  /* @__PURE__ */ n.jsxs("div", { children: [
3837
- u.map((E, T) => /* @__PURE__ */ n.jsx("p", { children: E }, "v" + T)),
3838
- g.map((E, T) => /* @__PURE__ */ n.jsx("span", { children: E !== 0 ? /* @__PURE__ */ n.jsx(
3854
+ u.map((S, T) => /* @__PURE__ */ n.jsx("p", { children: S }, "v" + T)),
3855
+ g.map((S, T) => /* @__PURE__ */ n.jsx("span", { children: S !== 0 ? /* @__PURE__ */ n.jsx(
3839
3856
  "b",
3840
3857
  {
3841
- color: i.y === c.y && i.m === c.m && i.d === E ? "_FFEB3B" : "",
3842
- onClick: () => k(E),
3843
- children: E
3858
+ color: i.y === c.y && i.m === c.m && i.d === S ? "_FFEB3B" : "",
3859
+ onClick: () => v(S),
3860
+ children: S
3844
3861
  }
3845
3862
  ) : /* @__PURE__ */ n.jsx("p", {}) }, T))
3846
3863
  ] })
@@ -3864,18 +3881,18 @@ function Tt({
3864
3881
  view: m,
3865
3882
  modal: f,
3866
3883
  module: g,
3867
- options: C
3884
+ options: k
3868
3885
  }) {
3869
- let [v, y] = x.useState(e), k = ($) => {
3886
+ let [p, y] = x.useState(e), v = ($) => {
3870
3887
  if (!f)
3871
3888
  return;
3872
- let P = f.split(".");
3873
- Et.Open(P[0], P[1], {
3874
- callback: (E) => {
3875
- t && t({ value: E, name: a }), y(E);
3889
+ let M = f.split(".");
3890
+ Et.Open(M[0], M[1], {
3891
+ callback: (S) => {
3892
+ t && t({ value: S, name: a }), y(S);
3876
3893
  },
3877
3894
  onValue: t,
3878
- options: C,
3895
+ options: k,
3879
3896
  name: a,
3880
3897
  value: e
3881
3898
  });
@@ -3886,11 +3903,11 @@ function Tt({
3886
3903
  /* @__PURE__ */ n.jsx(
3887
3904
  "dd",
3888
3905
  {
3889
- onClick: k,
3906
+ onClick: v,
3890
3907
  "data-edit": (c && d) + "",
3891
3908
  "data-placeholder": r,
3892
3909
  "data-after": u,
3893
- children: v
3910
+ children: p
3894
3911
  }
3895
3912
  ),
3896
3913
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : ""
@@ -3898,8 +3915,8 @@ function Tt({
3898
3915
  }
3899
3916
  function It(e) {
3900
3917
  let t = e.value, a = (m) => e.type === "multi" ? m.replace(/[^+\d.+-]/g, "") : m.replace(/[^+\d.]/g, ""), r = (m, f) => {
3901
- let g = document.createRange(), C = window.getSelection();
3902
- g.setStart(f.childNodes[0], m), g.collapse(!0), C.removeAllRanges(), C.addRange(g), f.focus();
3918
+ let g = document.createRange(), k = window.getSelection();
3919
+ g.setStart(f.childNodes[0], m), g.collapse(!0), k.removeAllRanges(), k.addRange(g), f.focus();
3903
3920
  }, s = (m) => {
3904
3921
  e.onValue({
3905
3922
  value: a(m.target.textContent),
@@ -3961,18 +3978,18 @@ function Pn({
3961
3978
  x.useEffect(() => {
3962
3979
  m(e);
3963
3980
  }, [e]);
3964
- let f = (v) => {
3965
- m(v), t && t({ value: v, name: a });
3966
- }, g = (v) => {
3981
+ let f = (p) => {
3982
+ m(p), t && t({ value: p, name: a });
3983
+ }, g = (p) => {
3967
3984
  if (!i || !l)
3968
3985
  return;
3969
- const y = v.target.getBoundingClientRect(), k = y.left, j = y.top;
3986
+ const y = p.target.getBoundingClientRect(), v = y.left, j = y.top;
3970
3987
  Ee.setListener(
3971
3988
  "form",
3972
3989
  /* @__PURE__ */ n.jsx(
3973
- tl,
3990
+ nl,
3974
3991
  {
3975
- position: { x: k, y: j },
3992
+ position: { x: v, y: j },
3976
3993
  onValue: f,
3977
3994
  date: u
3978
3995
  },
@@ -3980,8 +3997,8 @@ function Pn({
3980
3997
  )
3981
3998
  );
3982
3999
  };
3983
- const C = {};
3984
- return _ && (C.placeholder = _), /* @__PURE__ */ n.jsx(n.Fragment, { children: r === "icon" ? /* @__PURE__ */ n.jsx(
4000
+ const k = {};
4001
+ return _ && (k.placeholder = _), /* @__PURE__ */ n.jsx(n.Fragment, { children: r === "icon" ? /* @__PURE__ */ n.jsx(
3985
4002
  "i",
3986
4003
  {
3987
4004
  "data-icon": "F043",
@@ -3996,7 +4013,7 @@ function Pn({
3996
4013
  "dd",
3997
4014
  {
3998
4015
  onClick: g,
3999
- ...C,
4016
+ ...k,
4000
4017
  children: K.Date(u, "mm.yyyy")
4001
4018
  }
4002
4019
  ),
@@ -4005,7 +4022,7 @@ function Pn({
4005
4022
  }
4006
4023
  ) });
4007
4024
  }
4008
- const tl = (e) => {
4025
+ const nl = (e) => {
4009
4026
  let [t, a] = x.useState(!0), r = /* @__PURE__ */ new Date(), s = new Date(e.date), i = {
4010
4027
  y: parseInt(r.getFullYear()),
4011
4028
  m: parseInt(r.getMonth()) + 1
@@ -4018,9 +4035,9 @@ const tl = (e) => {
4018
4035
  _(c + 1);
4019
4036
  }, m = () => {
4020
4037
  _(c - 1);
4021
- }, f = (k) => {
4022
- e.onValue(c + "-" + K.Number(2, k)), d();
4023
- }, g = (k) => i.y === l.y && i.m === k ? "_FFEB3B" : "", C = Array(12).fill("").map((k, j) => j + 1), v = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, y = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4038
+ }, f = (v) => {
4039
+ e.onValue(c + "-" + K.Number(2, v)), d();
4040
+ }, g = (v) => i.y === l.y && i.m === v ? "_FFEB3B" : "", k = Array(12).fill("").map((v, j) => j + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, y = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4024
4041
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4025
4042
  /* @__PURE__ */ n.jsx(
4026
4043
  "div",
@@ -4034,7 +4051,7 @@ const tl = (e) => {
4034
4051
  "div",
4035
4052
  {
4036
4053
  className: we.c,
4037
- style: { top: v + "px", left: y + "px" },
4054
+ style: { top: p + "px", left: y + "px" },
4038
4055
  children: [
4039
4056
  /* @__PURE__ */ n.jsxs("s", { children: [
4040
4057
  /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => m() }),
@@ -4044,14 +4061,14 @@ const tl = (e) => {
4044
4061
  /* @__PURE__ */ n.jsx(
4045
4062
  "div",
4046
4063
  {
4047
- children: C.map((k, j) => /* @__PURE__ */ n.jsx(
4064
+ children: k.map((v, j) => /* @__PURE__ */ n.jsx(
4048
4065
  "span",
4049
4066
  {
4050
4067
  onClick: () => {
4051
- f(k);
4068
+ f(v);
4052
4069
  },
4053
- color: g(k),
4054
- children: /* @__PURE__ */ n.jsx("b", { children: K.Month(k).abc })
4070
+ color: g(v),
4071
+ children: /* @__PURE__ */ n.jsx("b", { children: K.Month(v).abc })
4055
4072
  },
4056
4073
  j
4057
4074
  ))
@@ -4068,19 +4085,19 @@ function Bn(e) {
4068
4085
  let d = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (y) => {
4069
4086
  e.onValue && e.onValue({ value: y.target.innerText, name: e.name });
4070
4087
  }, m = (y) => {
4071
- y.preventDefault(), navigator.clipboard.readText().then((k) => {
4072
- window.document.execCommand("insertText", !1, k);
4073
- }).catch((k) => {
4088
+ y.preventDefault(), navigator.clipboard.readText().then((v) => {
4089
+ window.document.execCommand("insertText", !1, v);
4090
+ }).catch((v) => {
4074
4091
  });
4075
4092
  }, f = (y) => {
4076
4093
  i || s(!r);
4077
4094
  };
4078
4095
  const g = (y) => {
4079
4096
  e.onSave && e.onSave({ value: y.target.innerText, name: e.name });
4080
- }, C = {};
4081
- C.field = "notes", e.className && (C.className = e.className);
4082
- const v = {};
4083
- return d && (v.placeholder = d), r && (v.open = ""), i && l && (v.edit = ""), _ ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4097
+ }, k = {};
4098
+ k.field = "notes", e.className && (k.className = e.className);
4099
+ const p = {};
4100
+ return d && (p.placeholder = d), r && (p.open = ""), i && l && (p.edit = ""), _ ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
4084
4101
  t(),
4085
4102
  /* @__PURE__ */ n.jsx(
4086
4103
  "dd",
@@ -4089,7 +4106,7 @@ function Bn(e) {
4089
4106
  onInput: u,
4090
4107
  onBlur: g,
4091
4108
  contentEditable: i && l ? "plaintext-only" : "false",
4092
- ...v,
4109
+ ...p,
4093
4110
  onDoubleClick: f,
4094
4111
  suppressContentEditableWarning: !0,
4095
4112
  children: e.value
@@ -4114,21 +4131,21 @@ function Dt({
4114
4131
  after: f,
4115
4132
  view: g
4116
4133
  }) {
4117
- let C = () => s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "", v = () => i ? /* @__PURE__ */ n.jsx("em", { children: i }) : "";
4134
+ let k = () => s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "", p = () => i ? /* @__PURE__ */ n.jsx("em", { children: i }) : "";
4118
4135
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, c = !!(c && (_ === "" || _ === void 0)) && !(r && t), d = d !== void 0 ? d : "", a = a !== void 0 ? a : 99;
4119
- let k = !1, j = (S) => {
4120
- e && e({ value: S.target.textContent, name: m });
4121
- }, $ = (S) => {
4122
- if (!(k && S.which === 86)) {
4123
- if (S.which === 17 || S.which === 91)
4124
- return k = !0;
4125
- S.key !== "Backspace" && (S.target.textContent.length === a && S.preventDefault(), S.key === "Enter" && S.preventDefault(), isNaN(parseInt(String.fromCharCode(S.which))) && S.preventDefault());
4136
+ let v = !1, j = (E) => {
4137
+ e && e({ value: E.target.textContent, name: m });
4138
+ }, $ = (E) => {
4139
+ if (!(v && E.which === 86)) {
4140
+ if (E.which === 17 || E.which === 91)
4141
+ return v = !0;
4142
+ E.key !== "Backspace" && (E.target.textContent.length === a && E.preventDefault(), E.key === "Enter" && E.preventDefault(), isNaN(parseInt(String.fromCharCode(E.which))) && E.preventDefault());
4126
4143
  }
4127
- }, P = (S) => {
4128
- if (S.which === 17 || S.which === 91)
4129
- return k = !1;
4130
- }, E = (S) => {
4131
- S.preventDefault(), navigator.clipboard.readText().then((ne) => {
4144
+ }, M = (E) => {
4145
+ if (E.which === 17 || E.which === 91)
4146
+ return v = !1;
4147
+ }, S = (E) => {
4148
+ E.preventDefault(), navigator.clipboard.readText().then((ne) => {
4132
4149
  ne = ne.replace(/\D/g, ""), window.document.execCommand(
4133
4150
  "insertText",
4134
4151
  !1,
@@ -4141,20 +4158,20 @@ function Dt({
4141
4158
  T.field = "input", u && (T.className = u);
4142
4159
  let R = {};
4143
4160
  return r && t ? (R.edit = "true", R.contentEditable = "plaintext-only") : R.contentEditable = "false", d && (R.placeholder = d), f && (R.after = f), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...T, children: [
4144
- C(),
4161
+ k(),
4145
4162
  /* @__PURE__ */ n.jsx(
4146
4163
  "dd",
4147
4164
  {
4148
4165
  ...R,
4149
- onPaste: E,
4166
+ onPaste: S,
4150
4167
  onInput: j,
4151
4168
  onKeyDown: $,
4152
- onKeyUp: P,
4169
+ onKeyUp: M,
4153
4170
  suppressContentEditableWarning: !0,
4154
4171
  children: _
4155
4172
  }
4156
4173
  ),
4157
- v()
4174
+ p()
4158
4175
  ] });
4159
4176
  }
4160
4177
  function On({
@@ -4179,19 +4196,19 @@ function On({
4179
4196
  }, f = (y) => {
4180
4197
  y.key === "Enter" && y.preventDefault();
4181
4198
  }, g = (y) => {
4182
- y.preventDefault(), navigator.clipboard.readText().then((k) => {
4199
+ y.preventDefault(), navigator.clipboard.readText().then((v) => {
4183
4200
  window.document.execCommand(
4184
4201
  "insertText",
4185
4202
  !1,
4186
- k.replace(/(\r\n|\n|\r)/gm, " ")
4203
+ v.replace(/(\r\n|\n|\r)/gm, " ")
4187
4204
  );
4188
- }).catch((k) => {
4205
+ }).catch((v) => {
4189
4206
  });
4190
4207
  };
4191
- const C = {};
4192
- C.field = "password", s && (C.className = s);
4193
- const v = {};
4194
- return r && (v.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4208
+ const k = {};
4209
+ k.field = "password", s && (k.className = s);
4210
+ const p = {};
4211
+ return r && (p.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
4195
4212
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
4196
4213
  /* @__PURE__ */ n.jsx(
4197
4214
  "dd",
@@ -4201,7 +4218,7 @@ function On({
4201
4218
  onKeyDown: f,
4202
4219
  onBlur: he.Blur,
4203
4220
  contentEditable: c && _ ? "plaintext-only" : "false",
4204
- ...v,
4221
+ ...p,
4205
4222
  suppressContentEditableWarning: !0,
4206
4223
  children: e
4207
4224
  }
@@ -5608,43 +5625,43 @@ function Mt({
5608
5625
  className: g = ""
5609
5626
  }) {
5610
5627
  _ = _ !== void 0 ? _ : !0, d = d !== void 0 ? d : !0, c = !!(c && (e === "" || e === void 0)) && !(_ && d), x.useRef(null);
5611
- let v = "+_(___) ___-__-__", y = !0, k = 0, j = (Z, F) => {
5628
+ let p = "+_(___) ___-__-__", y = !0, v = 0, j = (Z, L) => {
5612
5629
  let V = document.createRange(), Y = window.getSelection();
5613
- V.setStart(F.childNodes[0], Z), V.collapse(!0), Y.removeAllRanges(), Y.addRange(V), F.focus();
5630
+ V.setStart(L.childNodes[0], Z), V.collapse(!0), Y.removeAllRanges(), Y.addRange(V), L.focus();
5614
5631
  }, $ = (Z) => {
5615
- Z.preventDefault(), navigator.clipboard.readText().then((F) => {
5616
- window.document.execCommand("insertText", !1, F);
5617
- }).catch((F) => {
5632
+ Z.preventDefault(), navigator.clipboard.readText().then((L) => {
5633
+ window.document.execCommand("insertText", !1, L);
5634
+ }).catch((L) => {
5618
5635
  });
5619
- }, P = (Z) => {
5620
- let F = 0, V = "", Y = Z.replace(/\D/g, "");
5636
+ }, M = (Z) => {
5637
+ let L = 0, V = "", Y = Z.replace(/\D/g, "");
5621
5638
  Y === "" && (y = !0);
5622
5639
  let ze = Y.split(""), ae = "";
5623
5640
  ze.forEach((Ge) => {
5624
- y && (ae += Ge, ut[ae] !== void 0 && y ? (y = !1, v = ut[ae].mask.replace(new RegExp("[0-9]", "g"), "_"), V = ut[ae].code) : (y && (k = ("" + ae).length, v = `+${ae}_(___) ___-__-__`.replace(
5641
+ y && (ae += Ge, ut[ae] !== void 0 && y ? (y = !1, p = ut[ae].mask.replace(new RegExp("[0-9]", "g"), "_"), V = ut[ae].code) : (y && (v = ("" + ae).length, p = `+${ae}_(___) ___-__-__`.replace(
5625
5642
  new RegExp("[0-9]", "g"),
5626
5643
  "_"
5627
- ), V = ""), k > ("" + ae).length && (y = !0, v = `+${ae}_(___) ___-__-__`.replace(
5644
+ ), V = ""), v > ("" + ae).length && (y = !0, p = `+${ae}_(___) ___-__-__`.replace(
5628
5645
  new RegExp("[0-9]", "g"),
5629
5646
  "_"
5630
5647
  ), V = "")));
5631
5648
  });
5632
- let Re = v.replace(/\D/g, "");
5633
- return Re.length >= Y.length && (Y = Re), { q: v.replace(/[_\d]/g, function() {
5634
- return Y.charAt(F++) || "_";
5635
- }), i: F, v: Y, f: V };
5636
- }, E = (Z) => {
5649
+ let Re = p.replace(/\D/g, "");
5650
+ return Re.length >= Y.length && (Y = Re), { q: p.replace(/[_\d]/g, function() {
5651
+ return Y.charAt(L++) || "_";
5652
+ }), i: L, v: Y, f: V };
5653
+ }, S = (Z) => {
5637
5654
  Z.preventDefault(), navigator.clipboard.writeText(Z.target.textContent.replace(/\D/g, "")).then(
5638
5655
  function() {
5639
5656
  Pe.Copy("Данные в буфер обмене");
5640
5657
  },
5641
- function(F) {
5658
+ function(L) {
5642
5659
  }
5643
5660
  );
5644
- }, T = P(e), R = (Z) => {
5645
- let F = P(Z.target.textContent);
5646
- Z.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== v ? F.i++ : F.i = F.q.indexOf("_"), j(F.i, Z.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
5647
- }, S = (Z) => {
5661
+ }, T = M(e), R = (Z) => {
5662
+ let L = M(Z.target.textContent);
5663
+ Z.target.textContent = L.q, L.i = L.q.lastIndexOf(L.v.substr(-1)), L.i < L.q.length && L.q !== p ? L.i++ : L.i = L.q.indexOf("_"), j(L.i, Z.target), t && t({ value: L.q.replace(/\D/g, ""), name: r });
5664
+ }, E = (Z) => {
5648
5665
  Z.key === "Enter" && Z.preventDefault();
5649
5666
  };
5650
5667
  const ne = (Z) => {
@@ -5663,8 +5680,8 @@ function Mt({
5663
5680
  ...de,
5664
5681
  onPaste: $,
5665
5682
  onInput: R,
5666
- onKeyDown: S,
5667
- onContextMenu: E,
5683
+ onKeyDown: E,
5684
+ onContextMenu: S,
5668
5685
  onBlur: ne,
5669
5686
  suppressContentEditableWarning: !0,
5670
5687
  children: T.q
@@ -5724,33 +5741,33 @@ function Ft({
5724
5741
  }) {
5725
5742
  const f = x.useRef();
5726
5743
  s = !!(s && (i === "" || c[i].n === void 0)) && !(a && r);
5727
- let C = i !== void 0 && i !== "" ? c[i].n : i, v = ($) => {
5744
+ let k = i !== void 0 && i !== "" ? c[i].n : i, p = ($) => {
5728
5745
  f.current.textContent = c[$].n, l && l({ value: $, name: d });
5729
5746
  }, y = ($) => {
5730
5747
  if (!(a && r))
5731
5748
  return;
5732
- const P = $.target.getBoundingClientRect();
5749
+ const M = $.target.getBoundingClientRect();
5733
5750
  Ee.setListener(
5734
5751
  "form",
5735
5752
  /* @__PURE__ */ n.jsx(
5736
- nl,
5753
+ al,
5737
5754
  {
5738
- parent: P,
5739
- onValue: v,
5755
+ parent: M,
5756
+ onValue: p,
5740
5757
  view: m,
5741
5758
  options: c
5742
5759
  },
5743
5760
  (/* @__PURE__ */ new Date()).getTime()
5744
5761
  )
5745
5762
  );
5746
- }, k = { field: "select" }, j = { onClick: y };
5747
- return _ && (j.placeholder = _), u && (j.after = u), a && r && (j.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...k, children: [
5763
+ }, v = { field: "select" }, j = { onClick: y };
5764
+ return _ && (j.placeholder = _), u && (j.after = u), a && r && (j.edit = ""), s ? "" : /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
5748
5765
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
5749
- /* @__PURE__ */ n.jsx("dd", { ...j, ref: f, children: C }),
5766
+ /* @__PURE__ */ n.jsx("dd", { ...j, ref: f, children: k }),
5750
5767
  t && /* @__PURE__ */ n.jsx("em", { children: t })
5751
5768
  ] });
5752
5769
  }
5753
- const nl = ({ onValue: e, parent: t, view: a, options: r }) => {
5770
+ const al = ({ onValue: e, parent: t, view: a, options: r }) => {
5754
5771
  let [s, i] = x.useState(!0), l = () => {
5755
5772
  i(!1);
5756
5773
  }, c = (u) => {
@@ -5798,13 +5815,13 @@ function Lt(e) {
5798
5815
  ), m = (g) => {
5799
5816
  if (!(r && s))
5800
5817
  return;
5801
- const C = g.target.getBoundingClientRect();
5818
+ const k = g.target.getBoundingClientRect();
5802
5819
  Ee.setListener(
5803
5820
  "form",
5804
5821
  /* @__PURE__ */ n.jsx(
5805
- al,
5822
+ rl,
5806
5823
  {
5807
- parent: C,
5824
+ parent: k,
5808
5825
  onValue: _,
5809
5826
  view: e.view,
5810
5827
  options: e.options
@@ -5834,7 +5851,7 @@ function Lt(e) {
5834
5851
  }
5835
5852
  );
5836
5853
  }
5837
- const al = ({ onValue: e, parent: t, view: a, options: r }) => {
5854
+ const rl = ({ onValue: e, parent: t, view: a, options: r }) => {
5838
5855
  let [s, i] = x.useState(!0), l = () => {
5839
5856
  i(!1);
5840
5857
  }, c = (m) => {
@@ -5887,8 +5904,8 @@ function yt({
5887
5904
  after: m = "",
5888
5905
  view: f,
5889
5906
  module: g,
5890
- item: C,
5891
- className: v = ""
5907
+ item: k,
5908
+ className: p = ""
5892
5909
  }) {
5893
5910
  let y = {};
5894
5911
  switch (e) {
@@ -5906,11 +5923,11 @@ function yt({
5906
5923
  onValue: a,
5907
5924
  name: r,
5908
5925
  placeholder: s,
5909
- className: v
5926
+ className: p
5910
5927
  }
5911
5928
  );
5912
5929
  case "Select":
5913
- return C && (y = se.getSelect(parseInt(C)) ? se.getSelect(parseInt(C)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
5930
+ return k && (y = se.getSelect(parseInt(k)) ? se.getSelect(parseInt(k)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
5914
5931
  Ft,
5915
5932
  {
5916
5933
  title: i,
@@ -5923,7 +5940,7 @@ function yt({
5923
5940
  onValue: a,
5924
5941
  name: r,
5925
5942
  placeholder: s,
5926
- className: v,
5943
+ className: p,
5927
5944
  options: y
5928
5945
  }
5929
5946
  );
@@ -5941,7 +5958,7 @@ function yt({
5941
5958
  onValue: a,
5942
5959
  name: r,
5943
5960
  placeholder: s,
5944
- className: v,
5961
+ className: p,
5945
5962
  options: y
5946
5963
  }
5947
5964
  );
@@ -5959,7 +5976,7 @@ function yt({
5959
5976
  onValue: a,
5960
5977
  name: r,
5961
5978
  placeholder: s,
5962
- className: v
5979
+ className: p
5963
5980
  }
5964
5981
  );
5965
5982
  case "Phone":
@@ -5976,7 +5993,7 @@ function yt({
5976
5993
  onValue: a,
5977
5994
  name: r,
5978
5995
  placeholder: s,
5979
- className: v
5996
+ className: p
5980
5997
  }
5981
5998
  );
5982
5999
  case "Number":
@@ -5993,7 +6010,7 @@ function yt({
5993
6010
  onValue: a,
5994
6011
  name: r,
5995
6012
  placeholder: s,
5996
- className: v
6013
+ className: p
5997
6014
  }
5998
6015
  );
5999
6016
  case "Money":
@@ -6010,7 +6027,7 @@ function yt({
6010
6027
  onValue: a,
6011
6028
  name: r,
6012
6029
  placeholder: s,
6013
- className: v
6030
+ className: p
6014
6031
  }
6015
6032
  );
6016
6033
  case "Modal":
@@ -6027,45 +6044,60 @@ function yt({
6027
6044
  onValue: a,
6028
6045
  name: r || "",
6029
6046
  placeholder: s,
6030
- className: v,
6047
+ className: p,
6031
6048
  options: y,
6032
6049
  module: g || ""
6033
6050
  }
6034
6051
  );
6035
6052
  }
6036
6053
  }
6037
- function Zn(e) {
6038
- 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, i = e.placeholder !== void 0 ? e.placeholder : "", l = (d) => {
6039
- e.onValue({ value: d.target.innerText, name: e.name });
6040
- }, c = (d) => {
6041
- d.preventDefault(), navigator.clipboard.readText().then((u) => {
6042
- window.document.execCommand("insertText", !1, u);
6043
- }).catch((u) => {
6054
+ function Zn({
6055
+ value: e,
6056
+ onValue: t,
6057
+ name: a,
6058
+ placeholder: r = "",
6059
+ title: s = "",
6060
+ error: i = "",
6061
+ hide: l = !1,
6062
+ edit: c = !0,
6063
+ active: _ = !0,
6064
+ after: d = "",
6065
+ show: u = !0,
6066
+ view: m,
6067
+ onBlur: f,
6068
+ onSave: g,
6069
+ className: k = ""
6070
+ }) {
6071
+ let p = !!(l && (e === "" || e === void 0));
6072
+ if (!(c && _) && !u || !(c && _) && p)
6073
+ return "";
6074
+ let y = (M) => {
6075
+ t && t({ value: M.target.innerText, name: a });
6076
+ }, v = (M) => {
6077
+ g && g({ value: M.target.innerText, name: a });
6078
+ }, j = (M) => {
6079
+ M.preventDefault(), navigator.clipboard.readText().then((S) => {
6080
+ window.document.execCommand("insertText", !1, S);
6081
+ }).catch((S) => {
6044
6082
  });
6045
6083
  };
6046
- const _ = {};
6047
- return i && (_.placeholder = i), /* @__PURE__ */ n.jsxs(
6048
- "dl",
6049
- {
6050
- children: [
6051
- t(),
6052
- /* @__PURE__ */ n.jsx(
6053
- "dd",
6054
- {
6055
- onPaste: c,
6056
- className: e.className,
6057
- ref: e.useRef,
6058
- onInput: l,
6059
- contentEditable: r && s ? "plaintext-only" : "false",
6060
- ..._,
6061
- suppressContentEditableWarning: !0,
6062
- children: e.value
6063
- }
6064
- ),
6065
- a()
6066
- ]
6067
- }
6068
- );
6084
+ const $ = {};
6085
+ return r && ($.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { children: [
6086
+ s ?? /* @__PURE__ */ n.jsx("dt", { children: s }),
6087
+ /* @__PURE__ */ n.jsx(
6088
+ "dd",
6089
+ {
6090
+ onPaste: j,
6091
+ onBlur: v,
6092
+ onInput: y,
6093
+ contentEditable: c && _ ? "plaintext-only" : "false",
6094
+ ...$,
6095
+ suppressContentEditableWarning: !0,
6096
+ children: e
6097
+ }
6098
+ ),
6099
+ i ?? /* @__PURE__ */ n.jsx("em", { children: i })
6100
+ ] });
6069
6101
  }
6070
6102
  function zn({
6071
6103
  value: e,
@@ -6082,21 +6114,21 @@ function zn({
6082
6114
  view: m,
6083
6115
  onBlur: f,
6084
6116
  onSave: g,
6085
- className: C = ""
6117
+ className: k = ""
6086
6118
  }) {
6087
- let v = !!(l && (e === "" || e === void 0)), y = K.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), k = x.useRef(null);
6088
- if (!(c && _) && !u || !(c && _) && v)
6119
+ let p = !!(l && (e === "" || e === void 0)), y = K.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), v = x.useRef(null);
6120
+ if (!(c && _) && !u || !(c && _) && p)
6089
6121
  return "";
6090
6122
  let j = (R) => {
6091
- k.current.textContent = R, t && t({ value: R, name: a });
6123
+ v.current.textContent = R, t && t({ value: R, name: a });
6092
6124
  }, $ = (R) => {
6093
6125
  g && g({ value: R, name: a });
6094
- }, P = (R) => {
6095
- const S = R.target.getBoundingClientRect(), ne = S.left, xe = S.top;
6126
+ }, M = (R) => {
6127
+ const E = R.target.getBoundingClientRect(), ne = E.left, xe = E.top;
6096
6128
  Ee.setListener(
6097
6129
  "form",
6098
6130
  /* @__PURE__ */ n.jsx(
6099
- rl,
6131
+ sl,
6100
6132
  {
6101
6133
  positions: { x: ne, y: xe },
6102
6134
  onSave: $,
@@ -6107,22 +6139,22 @@ function zn({
6107
6139
  )
6108
6140
  );
6109
6141
  };
6110
- const E = {};
6111
- E.field = "input", C && (E.className = C);
6142
+ const S = {};
6143
+ S.field = "input", k && (S.className = k);
6112
6144
  const T = {};
6113
6145
  return r && (T.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: m === "icon" ? /* @__PURE__ */ n.jsx(
6114
6146
  "i",
6115
6147
  {
6116
6148
  "data-icon": "F043",
6117
- onClick: P
6149
+ onClick: M
6118
6150
  }
6119
- ) : /* @__PURE__ */ n.jsxs("dl", { ...E, children: [
6151
+ ) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
6120
6152
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
6121
- /* @__PURE__ */ n.jsx("dd", { onClick: P, ref: k, ...T, children: y }),
6153
+ /* @__PURE__ */ n.jsx("dd", { onClick: M, ref: v, ...T, children: y }),
6122
6154
  i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
6123
6155
  ] }) });
6124
6156
  }
6125
- const rl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6157
+ const sl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6126
6158
  let s = r.split(":"), i = {
6127
6159
  h: K.Number(2, s[0]),
6128
6160
  m: K.Number(2, s[1])
@@ -6138,20 +6170,20 @@ const rl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6138
6170
  }, [f.body, f.hour, f.time, i.m, i.h]);
6139
6171
  let g = () => {
6140
6172
  d = !0;
6141
- }, C = () => {
6173
+ }, k = () => {
6142
6174
  d = !1, l = l === "hour" ? "time" : "hour", f.body.current.setAttribute("active", l);
6143
- }, v = (T) => {
6175
+ }, p = (T) => {
6144
6176
  if (d) {
6145
- let S = Math.atan2(
6177
+ let E = Math.atan2(
6146
6178
  T.pageX - (c.x + 78),
6147
6179
  T.pageY - (c.y + 78)
6148
6180
  ) * (180 / Math.PI) * -1 + 180;
6149
- f[l].current.style.transform = "rotate(" + S + "deg)", l === "hour" ? (i = {
6181
+ f[l].current.style.transform = "rotate(" + E + "deg)", l === "hour" ? (i = {
6150
6182
  ...i,
6151
- h: K.Number(2, parseInt(String(S / 15), 10))
6183
+ h: K.Number(2, parseInt(String(E / 15), 10))
6152
6184
  }, f.hourText.current.textContent = i.h) : (i = {
6153
6185
  ...i,
6154
- m: K.Number(2, parseInt(String(S / 6), 10))
6186
+ m: K.Number(2, parseInt(String(E / 6), 10))
6155
6187
  }, f.timeText.current.textContent = i.m), a(i.h + ":" + i.m);
6156
6188
  }
6157
6189
  }, y = (T) => {
@@ -6161,16 +6193,16 @@ const rl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6161
6193
  let R = parseInt(String(u / 50));
6162
6194
  if (m !== R) {
6163
6195
  m = R;
6164
- let S = parseInt(i.h, 10) + 1;
6165
- S = S > 23 ? 0 : S, i = { ...i, h: K.Number(2, S) }, f.hourText.current.textContent = i.h, f[l].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6196
+ let E = parseInt(i.h, 10) + 1;
6197
+ E = E > 23 ? 0 : E, i = { ...i, h: K.Number(2, E) }, f.hourText.current.textContent = i.h, f[l].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6166
6198
  }
6167
6199
  } else {
6168
6200
  u -= T.deltaY;
6169
6201
  let R = parseInt(String(u / 50));
6170
6202
  if (m !== R) {
6171
6203
  m = R;
6172
- let S = parseInt(i.h, 10) - 1;
6173
- S = S < 0 ? 23 : S, i = { ...i, h: K.Number(2, S) }, f.hourText.current.textContent = i.h, f[l].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6204
+ let E = parseInt(i.h, 10) - 1;
6205
+ E = E < 0 ? 23 : E, i = { ...i, h: K.Number(2, E) }, f.hourText.current.textContent = i.h, f[l].current.style.transform = "rotate(" + i.h * 15 + "deg)";
6174
6206
  }
6175
6207
  }
6176
6208
  else if (T.deltaY > 0) {
@@ -6178,23 +6210,23 @@ const rl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6178
6210
  let R = parseInt(String(u / 50));
6179
6211
  if (m !== R) {
6180
6212
  m = R;
6181
- let S = parseInt(i.m, 10) + 1;
6182
- S = S > 59 ? 0 : S, i = { ...i, m: K.Number(2, S) }, f.timeText.current.textContent = i.m, f[l].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6213
+ let E = parseInt(i.m, 10) + 1;
6214
+ E = E > 59 ? 0 : E, i = { ...i, m: K.Number(2, E) }, f.timeText.current.textContent = i.m, f[l].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6183
6215
  }
6184
6216
  } else {
6185
6217
  u -= T.deltaY;
6186
6218
  let R = parseInt(String(u / 50));
6187
6219
  if (m !== R) {
6188
6220
  m = R;
6189
- let S = parseInt(i.m, 10) - 1;
6190
- S = S < 0 ? 59 : S, i = { ...i, m: K.Number(2, S) }, f.timeText.current.textContent = i.m, f[l].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6221
+ let E = parseInt(i.m, 10) - 1;
6222
+ E = E < 0 ? 59 : E, i = { ...i, m: K.Number(2, E) }, f.timeText.current.textContent = i.m, f[l].current.style.transform = "rotate(" + i.m * 6 + "deg)";
6191
6223
  }
6192
6224
  }
6193
6225
  a(i.h + ":" + i.m);
6194
- }, [k, j] = x.useState(!0), $ = () => {
6226
+ }, [v, j] = x.useState(!0), $ = () => {
6195
6227
  j(!1), t(i.h + ":" + i.m);
6196
- }, P = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, E = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6197
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: k ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6228
+ }, M = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, S = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6229
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: v ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6198
6230
  /* @__PURE__ */ n.jsx(
6199
6231
  "div",
6200
6232
  {
@@ -6208,11 +6240,11 @@ const rl = ({ positions: e, onSave: t, onValue: a, date: r }) => {
6208
6240
  {
6209
6241
  className: we.c,
6210
6242
  onMouseDown: g,
6211
- onMouseUp: C,
6212
- onMouseMove: v,
6243
+ onMouseUp: k,
6244
+ onMouseMove: p,
6213
6245
  onWheel: y,
6214
6246
  ref: f.body,
6215
- style: { top: P + "px", left: E + "px" },
6247
+ style: { top: M + "px", left: S + "px" },
6216
6248
  children: [
6217
6249
  /* @__PURE__ */ n.jsx("div", { className: "b" }),
6218
6250
  /* @__PURE__ */ n.jsxs("div", { className: "s", children: [
@@ -6249,8 +6281,42 @@ function Gn({
6249
6281
  /* @__PURE__ */ n.jsx("dd", { ...u, onClick: _ })
6250
6282
  ] });
6251
6283
  }
6252
- const Se = {};
6253
- function sl(e) {
6284
+ const il = ({ label: e, onValue: t, value: a, name: r, item: s }) => {
6285
+ const [i, l] = x.useState(!!a);
6286
+ x.useEffect(() => {
6287
+ l(!!a);
6288
+ }, [a]);
6289
+ let c = () => {
6290
+ let _ = parseInt(i) === 0 ? 1 : 0;
6291
+ l(_), t({ value: _, name: r, key: s, item: s });
6292
+ };
6293
+ return /* @__PURE__ */ n.jsx(
6294
+ "div",
6295
+ {
6296
+ role: "switch",
6297
+ onClick: c,
6298
+ "aria-checked": `${i ? "true" : "false"}`
6299
+ }
6300
+ );
6301
+ }, Kn = ({ onValue: e, value: t, name: a, item: r }) => {
6302
+ const [s, i] = x.useState(!!t);
6303
+ x.useEffect(() => {
6304
+ i(!!t);
6305
+ }, [t]);
6306
+ let l = () => {
6307
+ let c = parseInt(s) === 0 ? 1 : 0;
6308
+ i(c), e({ value: c, name: a, key: r, item: r });
6309
+ };
6310
+ return /* @__PURE__ */ n.jsx(
6311
+ "div",
6312
+ {
6313
+ role: "switch",
6314
+ onClick: l,
6315
+ "aria-checked": `${s ? "true" : "false"}`
6316
+ }
6317
+ );
6318
+ }, Se = {};
6319
+ function ol(e) {
6254
6320
  const [t, a] = x.useState({}), r = x.useRef(e);
6255
6321
  return Se.u = (s) => {
6256
6322
  r.current = { ...r.current, [s.name]: s.value };
@@ -6258,13 +6324,13 @@ function sl(e) {
6258
6324
  a(Date.now());
6259
6325
  }, [r.current];
6260
6326
  }
6261
- function il(e) {
6327
+ function ll(e) {
6262
6328
  Se.u(e), e.reload && Se.r();
6263
6329
  }
6264
- function ol() {
6330
+ function cl() {
6265
6331
  Se.r && Se.r();
6266
6332
  }
6267
- const ql = {
6333
+ const Xl = {
6268
6334
  Color: $n,
6269
6335
  Date: Rt,
6270
6336
  Code: Ln,
@@ -6290,10 +6356,12 @@ const ql = {
6290
6356
  Users: Lt,
6291
6357
  String: Be,
6292
6358
  Form: yt,
6293
- runReload: ol,
6294
- useData: sl,
6295
- setValue: il
6296
- }, Jl = {
6359
+ runReload: cl,
6360
+ useData: ol,
6361
+ setValue: ll,
6362
+ Palette: il,
6363
+ Toogle: Kn
6364
+ }, Ql = {
6297
6365
  Color: $n,
6298
6366
  Date: Rt,
6299
6367
  Code: Ln,
@@ -6317,14 +6385,15 @@ const ql = {
6317
6385
  Textarea: Zn,
6318
6386
  Time: zn,
6319
6387
  Users: Lt,
6320
- String: Be
6321
- }, ll = "_spinner_1ul0m_1", cl = "_l_1ul0m_75", dl = "_loadingB_1ul0m_1", Kn = {
6322
- spinner: ll,
6323
- l: cl,
6324
- loadingB: dl
6388
+ String: Be,
6389
+ Toogle: Kn
6390
+ }, dl = "_spinner_1ul0m_1", _l = "_l_1ul0m_75", ul = "_loadingB_1ul0m_1", Wn = {
6391
+ spinner: dl,
6392
+ l: _l,
6393
+ loadingB: ul
6325
6394
  };
6326
- function _l() {
6327
- return /* @__PURE__ */ n.jsx("div", { className: Kn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
6395
+ function ml() {
6396
+ return /* @__PURE__ */ n.jsx("div", { className: Wn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
6328
6397
  "path",
6329
6398
  {
6330
6399
  d: "M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",
@@ -6332,18 +6401,18 @@ function _l() {
6332
6401
  }
6333
6402
  ) }) });
6334
6403
  }
6335
- function ul() {
6336
- return /* @__PURE__ */ n.jsxs("div", { className: Kn.l, children: [
6404
+ function fl() {
6405
+ return /* @__PURE__ */ n.jsxs("div", { className: Wn.l, children: [
6337
6406
  /* @__PURE__ */ n.jsx("i", {}),
6338
6407
  /* @__PURE__ */ n.jsx("i", {}),
6339
6408
  /* @__PURE__ */ n.jsx("i", {})
6340
6409
  ] });
6341
6410
  }
6342
- const Xl = { Spinner: _l, Inline: ul }, ml = "_s_t9swc_1", fl = {
6343
- s: ml
6411
+ const ec = { Spinner: ml, Inline: fl }, hl = "_s_t9swc_1", xl = {
6412
+ s: hl
6344
6413
  };
6345
6414
  let $t;
6346
- function hl() {
6415
+ function gl() {
6347
6416
  let e = (s) => {
6348
6417
  $t(s.target.textContent);
6349
6418
  }, t = (s) => {
@@ -6358,7 +6427,7 @@ function hl() {
6358
6427
  return r.placeholder = "Что искать?", /* @__PURE__ */ n.jsx(
6359
6428
  "div",
6360
6429
  {
6361
- className: fl.s,
6430
+ className: xl.s,
6362
6431
  onPaste: a,
6363
6432
  onInput: e,
6364
6433
  onKeyDown: t,
@@ -6368,7 +6437,7 @@ function hl() {
6368
6437
  }
6369
6438
  );
6370
6439
  }
6371
- function xl(e, t, a) {
6440
+ function pl(e, t, a) {
6372
6441
  let r = [], s = 1, i = 0, l = {}, c = 50;
6373
6442
  return l[s] = [], e.forEach((_) => {
6374
6443
  _.text.toLowerCase().indexOf(t) > -1 && r.push(_.id);
@@ -6376,17 +6445,17 @@ function xl(e, t, a) {
6376
6445
  i++, i <= c || (s++, i = 1, l[s] = []), l[s].push(a[_]);
6377
6446
  }), l;
6378
6447
  }
6379
- function gl(e) {
6448
+ function vl(e) {
6380
6449
  $t = e;
6381
6450
  }
6382
- function pl(e) {
6451
+ function Cl(e) {
6383
6452
  $t = e;
6384
6453
  }
6385
- const Ql = { Field: hl, Run: xl, Get: gl, useValue: pl }, vl = "_f_q3r0i_1", Cl = {
6386
- f: vl
6454
+ const tc = { Field: gl, Run: pl, Get: vl, useValue: Cl }, kl = "_f_q3r0i_1", yl = {
6455
+ f: kl
6387
6456
  };
6388
6457
  let te = {};
6389
- function kl(e, t) {
6458
+ function jl(e, t) {
6390
6459
  switch (t.type) {
6391
6460
  case "open":
6392
6461
  return {
@@ -6436,8 +6505,8 @@ function kl(e, t) {
6436
6505
  throw new Error();
6437
6506
  }
6438
6507
  }
6439
- function yl() {
6440
- const [e, t] = x.useReducer(kl, {
6508
+ function bl() {
6509
+ const [e, t] = x.useReducer(jl, {
6441
6510
  open: !1,
6442
6511
  view: null,
6443
6512
  data: {},
@@ -6455,12 +6524,12 @@ function yl() {
6455
6524
  /* @__PURE__ */ n.jsxs(
6456
6525
  "div",
6457
6526
  {
6458
- className: Cl.f,
6527
+ className: yl.f,
6459
6528
  onClick: () => {
6460
6529
  t({ type: "open", open: !0 });
6461
6530
  },
6462
6531
  children: [
6463
- /* @__PURE__ */ n.jsx(Vr, {}),
6532
+ /* @__PURE__ */ n.jsx(Yr, {}),
6464
6533
  e.active && /* @__PURE__ */ n.jsxs("i", { children: [
6465
6534
  e.size,
6466
6535
  "1"
@@ -6480,7 +6549,7 @@ function yl() {
6480
6549
  ),
6481
6550
  /* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
6482
6551
  /* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((a) => /* @__PURE__ */ n.jsx(
6483
- El,
6552
+ Rl,
6484
6553
  {
6485
6554
  data: a,
6486
6555
  dispatch: t,
@@ -6502,31 +6571,31 @@ function yl() {
6502
6571
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
6503
6572
  ] });
6504
6573
  }
6505
- function jl(e) {
6574
+ function wl(e) {
6506
6575
  te.get = e;
6507
6576
  }
6508
- function bl(e) {
6577
+ function Sl(e) {
6509
6578
  te.set !== void 0 && te.set(e);
6510
6579
  }
6511
- function wl(e) {
6580
+ function El(e) {
6512
6581
  te.reset !== void 0 && te.reset(e);
6513
6582
  }
6514
- function Sl(e, t, a, r) {
6583
+ function Nl(e, t, a, r) {
6515
6584
  let s = [], i = 1, l = 0, c = {}, _ = 50;
6516
6585
  return c[i] = [], r === !0 && (Object.keys(t).forEach((d) => {
6517
6586
  Number.parseInt(t[d]) !== 999 && (e = e.filter(
6518
6587
  (u) => Number.parseInt(u[d]) === Number.parseInt(t[d])
6519
6588
  ));
6520
- }), Wn(e.length)), e.forEach((d) => {
6589
+ }), Un(e.length)), e.forEach((d) => {
6521
6590
  s.push(d.id);
6522
6591
  }), s.forEach((d) => {
6523
6592
  l++, l <= _ || (i++, l = 1, c[i] = []), c[i].push(a[d]);
6524
6593
  }), c;
6525
6594
  }
6526
- function Wn(e) {
6595
+ function Un(e) {
6527
6596
  te.count(e);
6528
6597
  }
6529
- function El({ data: e, state: t, dispatch: a }) {
6598
+ function Rl({ data: e, state: t, dispatch: a }) {
6530
6599
  let r = () => {
6531
6600
  a({ type: "view", view: e });
6532
6601
  }, s = () => {
@@ -6549,7 +6618,7 @@ function El({ data: e, state: t, dispatch: a }) {
6549
6618
  ) : ""
6550
6619
  ] }),
6551
6620
  /* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, l) => /* @__PURE__ */ n.jsx(
6552
- Nl,
6621
+ Tl,
6553
6622
  {
6554
6623
  data: t.data[e].list[i],
6555
6624
  head: e,
@@ -6561,7 +6630,7 @@ function El({ data: e, state: t, dispatch: a }) {
6561
6630
  )) })
6562
6631
  ] });
6563
6632
  }
6564
- function Nl({ data: e, head: t, state: a, dispatch: r, type: s }) {
6633
+ function Tl({ data: e, head: t, state: a, dispatch: r, type: s }) {
6565
6634
  if (s !== "999" && e.count === void 0)
6566
6635
  return "";
6567
6636
  const i = () => {
@@ -6580,11 +6649,11 @@ function Nl({ data: e, head: t, state: a, dispatch: r, type: s }) {
6580
6649
  }
6581
6650
  );
6582
6651
  }
6583
- const ec = { Button: yl, useValue: jl, Set: bl, Run: Sl, Count: Wn, Reset: wl }, tc = { Bell: ts, Send: Xr, Add: Jr }, Rl = "_p_djnh1_1", Tl = "_l_djnh1_38", Un = {
6584
- p: Rl,
6585
- l: Tl
6652
+ const nc = { Button: bl, useValue: wl, Set: Sl, Run: Nl, Count: Un, Reset: El }, ac = { Bell: ns, Send: Qr, Add: Xr }, Il = "_p_djnh1_1", Dl = "_l_djnh1_38", Vn = {
6653
+ p: Il,
6654
+ l: Dl
6586
6655
  };
6587
- function Il(e) {
6656
+ function Ml(e) {
6588
6657
  let t = 3, a = e.page, r = e.count, s = [], i = () => {
6589
6658
  s.push({ page: 1 }), s.push({ text: "..." });
6590
6659
  }, l = () => {
@@ -6593,16 +6662,16 @@ function Il(e) {
6593
6662
  for (let u = _; u < d; u++)
6594
6663
  s.push({ page: u });
6595
6664
  };
6596
- return r < t * 2 + 6 ? c(1, r + 1) : a < t * 2 + 1 ? (c(1, t * 2 + 4), l()) : a > r - t * 2 ? (t = r > 1e4 ? 1 : t, i(), c(r - t * 2 - 2, r + 1)) : (t = r > 1e4 ? 1 : t, i(), c(a - t, a + t + 1), l()), s.length === 1 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("div", { className: Un.p, children: [
6665
+ return r < t * 2 + 6 ? c(1, r + 1) : a < t * 2 + 1 ? (c(1, t * 2 + 4), l()) : a > r - t * 2 ? (t = r > 1e4 ? 1 : t, i(), c(r - t * 2 - 2, r + 1)) : (t = r > 1e4 ? 1 : t, i(), c(a - t, a + t + 1), l()), s.length === 1 ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("div", { className: Vn.p, children: [
6597
6666
  /* @__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" }) }) }),
6598
6667
  s.map((_, d) => {
6599
6668
  const u = {};
6600
- return _.page && (u.onClick = () => e.onChangePage(_.page)), _.page === e.page && (u.active = ""), /* @__PURE__ */ ja("span", { ...u, key: d }, _.page || _.text);
6669
+ return _.page && (u.onClick = () => e.onChangePage(_.page)), _.page === e.page && (u.active = ""), /* @__PURE__ */ ba("span", { ...u, key: d }, _.page || _.text);
6601
6670
  }),
6602
6671
  /* @__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" }) }) })
6603
6672
  ] });
6604
6673
  }
6605
- function Dl(e, t) {
6674
+ function Fl(e, t) {
6606
6675
  switch (t.type) {
6607
6676
  case "load":
6608
6677
  return {
@@ -6623,8 +6692,8 @@ function Dl(e, t) {
6623
6692
  throw new Error();
6624
6693
  }
6625
6694
  }
6626
- function Vn({ load: e, list: t, item: a }) {
6627
- const r = x.useRef(null), [s, i] = x.useReducer(Dl, {
6695
+ function Yn({ load: e, list: t, item: a }) {
6696
+ const r = x.useRef(null), [s, i] = x.useReducer(Fl, {
6628
6697
  load: !1,
6629
6698
  list: [],
6630
6699
  data: {},
@@ -6644,13 +6713,13 @@ function Vn({ load: e, list: t, item: a }) {
6644
6713
  };
6645
6714
  return x.useEffect(() => {
6646
6715
  }, [s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6647
- /* @__PURE__ */ n.jsx("div", { className: Un.l, ref: r, children: /* @__PURE__ */ n.jsx(Nn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((c) => /* @__PURE__ */ n.jsx(s.item, { data: c }, c.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
6716
+ /* @__PURE__ */ n.jsx("div", { className: Vn.l, ref: r, children: /* @__PURE__ */ n.jsx(Nn, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((c) => /* @__PURE__ */ n.jsx(s.item, { data: c }, c.id)) : /* @__PURE__ */ n.jsxs("div", { "type-data": "load", children: [
6648
6717
  /* @__PURE__ */ n.jsx("i", {}),
6649
6718
  /* @__PURE__ */ n.jsx("i", {}),
6650
6719
  /* @__PURE__ */ n.jsx("i", {})
6651
6720
  ] }) }) }),
6652
6721
  s.load && s.list !== void 0 ? /* @__PURE__ */ n.jsx(
6653
- Il,
6722
+ Ml,
6654
6723
  {
6655
6724
  page: s.page,
6656
6725
  count: s.size,
@@ -6659,15 +6728,15 @@ function Vn({ load: e, list: t, item: a }) {
6659
6728
  ) : /* @__PURE__ */ n.jsx(n.Fragment, {})
6660
6729
  ] });
6661
6730
  }
6662
- const nc = { Pagination: Vn };
6663
- function Ml({ head: e, load: t, list: a, item: r }) {
6731
+ const rc = { Pagination: Yn };
6732
+ function Ll({ head: e, load: t, list: a, item: r }) {
6664
6733
  const s = e;
6665
6734
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6666
6735
  /* @__PURE__ */ n.jsx(s, {}),
6667
- Nt.getSetting("s05") === 1 ? /* @__PURE__ */ n.jsx(Vn, { list: a, load: t, item: r }) : /* @__PURE__ */ n.jsx(Rn, { list: a, load: t, item: r })
6736
+ Nt.getSetting("s05") === 1 ? /* @__PURE__ */ n.jsx(Yn, { list: a, load: t, item: r }) : /* @__PURE__ */ n.jsx(Rn, { list: a, load: t, item: r })
6668
6737
  ] });
6669
6738
  }
6670
- function Fl(e, t) {
6739
+ function $l(e, t) {
6671
6740
  switch (t.type) {
6672
6741
  case "load":
6673
6742
  return {
@@ -6709,50 +6778,50 @@ function Fl(e, t) {
6709
6778
  }
6710
6779
  }
6711
6780
  const jt = {};
6712
- function Ll(e) {
6781
+ function Pl(e) {
6713
6782
  jt.get = e;
6714
6783
  }
6715
- function $l(e) {
6784
+ function Bl(e) {
6716
6785
  jt.get && jt.get(e);
6717
6786
  }
6718
- const ac = { View: Ml, Reducer: Fl, useValue: Ll, setValue: $l }, rc = { Get: is }, sc = { Open: zi };
6787
+ const sc = { View: Ll, Reducer: $l, useValue: Pl, setValue: Bl }, ic = { Get: os }, oc = { Open: Gi };
6719
6788
  export {
6720
- ho as Action,
6721
- zl as Alert,
6789
+ xo as Action,
6790
+ Kl as Alert,
6722
6791
  nn as Api,
6723
- Wl as Badge,
6724
- Zl as Bookmarks,
6725
- Ol as Browser,
6726
- ri as Button,
6727
- rc as Company,
6792
+ Vl as Badge,
6793
+ Gl as Bookmarks,
6794
+ Zl as Browser,
6795
+ si as Button,
6796
+ ic as Company,
6728
6797
  un as Component,
6729
- Ul as DataBase,
6798
+ Yl as DataBase,
6730
6799
  Ee as Event,
6731
6800
  Ee as Events,
6732
- Hl as Files,
6733
- ec as Filter,
6734
- ql as Form,
6801
+ Jl as Files,
6802
+ nc as Filter,
6803
+ Xl as Form,
6735
6804
  K as Format,
6736
- Vl as HotKey,
6737
- Gl as Icon,
6738
- Qi as Init,
6739
- Jl as Input,
6740
- ac as List,
6741
- Xl as Loading,
6805
+ Hl as HotKey,
6806
+ Wl as Icon,
6807
+ eo as Init,
6808
+ Ql as Input,
6809
+ sc as List,
6810
+ ec as Loading,
6742
6811
  Et as Modal,
6743
6812
  Pe as Notice,
6744
- tc as Notifications,
6745
- nc as Pagination,
6746
- sc as Phone,
6813
+ ac as Notifications,
6814
+ rc as Pagination,
6815
+ oc as Phone,
6747
6816
  He as Router,
6748
- Yl as Scrolling,
6749
- Ql as Search,
6750
- Al as Setting,
6817
+ ql as Scrolling,
6818
+ tc as Search,
6819
+ zl as Setting,
6751
6820
  St as Sistym,
6752
6821
  ce as Socket,
6753
6822
  se as Store,
6754
- so as Tabs,
6755
- Kl as Triage,
6823
+ io as Tabs,
6824
+ Ul as Triage,
6756
6825
  Nt as User,
6757
6826
  O as WebRTC
6758
6827
  };