elcrm 0.9.12 → 0.9.13

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,22 +1,22 @@
1
- import './index.css';var Na = Object.defineProperty;
2
- var Ta = (e, t, n) => t in e ? Na(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var gt = (e, t, n) => Ta(e, typeof t != "symbol" ? t + "" : t, n);
4
- import g, { createContext as Ma, useContext as La, createElement as Fa } from "react";
5
- let It = {
1
+ import './index.css';var Ta = Object.defineProperty;
2
+ var Ma = (e, t, n) => t in e ? Ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var gt = (e, t, n) => Ma(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import g, { createContext as La, useContext as Fa, createElement as Ba } from "react";
5
+ let Nt = {
6
6
  enCode: (e) => e,
7
7
  deCode: (e) => e
8
8
  };
9
- const xn = (e) => {
10
- It = e;
11
- }, Ba = (e) => It.enCode(e), $a = (e) => It.deCode(e), $ = { enCode: Ba, deCode: $a, New: xn }, D = {}, J = {}, De = {}, vn = {}, fe = {};
9
+ const vn = (e) => {
10
+ Nt = e;
11
+ }, $a = (e) => Nt.enCode(e), Pa = (e) => Nt.deCode(e), $ = { enCode: $a, deCode: Pa, New: vn }, D = {}, J = {}, De = {}, Cn = {}, fe = {};
12
12
  let tt = "M06";
13
- function Pa(e) {
13
+ function Oa(e) {
14
14
  tt = e;
15
15
  }
16
- function Oa() {
16
+ function Aa() {
17
17
  return tt;
18
18
  }
19
- function Aa(e) {
19
+ function Ga(e) {
20
20
  let t = localStorage.getItem("d");
21
21
  if (console.log(t), t) {
22
22
  let n = sessionStorage.getItem("f");
@@ -32,7 +32,7 @@ function ie() {
32
32
  (e) => localStorage.removeItem(e)
33
33
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
34
34
  }
35
- function Ga(e) {
35
+ function Za(e) {
36
36
  e = e.split("/"), D.page = "Main", D.module = e[0], D.tab = e[1], D.id = 0, sessionStorage.setItem(
37
37
  "f",
38
38
  $.enCode({
@@ -44,21 +44,21 @@ function Ga(e) {
44
44
  })
45
45
  ), J.page(D.page);
46
46
  }
47
- function Za(e) {
47
+ function za(e) {
48
48
  return localStorage.setItem("d", e);
49
49
  }
50
- function za() {
50
+ function Ua() {
51
51
  let e = localStorage.getItem("d");
52
52
  return e !== "" && e !== "undefined" && e !== null ? e : "";
53
53
  }
54
- function Ua(e) {
54
+ function Wa(e) {
55
55
  return localStorage.setItem("a", e);
56
56
  }
57
- function Wa() {
57
+ function Ka() {
58
58
  let e = localStorage.getItem("a");
59
59
  return e !== "" && e !== "undefined" && e !== null ? e : "";
60
60
  }
61
- function Ka(e) {
61
+ function Ya(e) {
62
62
  localStorage.setItem("p", $.enCode(e));
63
63
  }
64
64
  function vt() {
@@ -69,47 +69,47 @@ function vt() {
69
69
  } else
70
70
  return ie(), !1;
71
71
  }
72
- function Ya() {
73
- const [e, t] = g.useState(Cn()), n = (s) => {
72
+ function Ha() {
73
+ const [e, t] = g.useState(yn()), n = (s) => {
74
74
  t(s);
75
75
  };
76
76
  return J.page = n, [e];
77
77
  }
78
- function Ha(e, t = !0) {
78
+ function qa(e, t = !0) {
79
79
  D.page = e, sessionStorage.setItem("f", $.enCode(D)), t && J.page(e);
80
80
  }
81
- function Cn() {
81
+ function yn() {
82
82
  return D.page;
83
83
  }
84
- function qa(e) {
84
+ function Va(e) {
85
85
  return D.page === e;
86
86
  }
87
- function Va(e) {
87
+ function Ja(e) {
88
88
  if (typeof e != "function") {
89
- const [t, n] = g.useState(e || yn()), s = (r) => {
89
+ const [t, n] = g.useState(e || jn()), s = (r) => {
90
90
  n(r);
91
91
  };
92
92
  return J.module = s, [t];
93
93
  } else
94
94
  J.module = e;
95
95
  }
96
- function Ja(e, t = !0) {
96
+ function Xa(e, t = !0) {
97
97
  D.module = e, sessionStorage.setItem("f", $.enCode(D)), t && J.module(e);
98
98
  }
99
- function yn() {
99
+ function jn() {
100
100
  return D.module;
101
101
  }
102
- function Xa(e) {
102
+ function Qa(e) {
103
103
  return D.module === e;
104
104
  }
105
- function Qa(e) {
105
+ function es(e) {
106
106
  if (typeof e != "function") {
107
107
  const [t, n] = g.useState(e || at());
108
108
  return J.tabs = n, [t];
109
109
  } else
110
110
  J.tabs = e;
111
111
  }
112
- function es(e, t = !0) {
112
+ function ts(e, t = !0) {
113
113
  if (D.tab = e, sessionStorage.setItem("f", $.enCode(D)), !!t)
114
114
  if (J.tabs)
115
115
  J.tabs(e);
@@ -119,47 +119,47 @@ function es(e, t = !0) {
119
119
  function at() {
120
120
  return D.tab;
121
121
  }
122
- function ts(e) {
122
+ function ns(e) {
123
123
  return D.tab === e;
124
124
  }
125
- function ns(e) {
125
+ function as(e) {
126
126
  if (typeof e != "function") {
127
- const [t, n] = g.useState(e || jn()), s = (r) => {
127
+ const [t, n] = g.useState(e || kn()), s = (r) => {
128
128
  n(r);
129
129
  };
130
130
  return J.id = s, [t];
131
131
  } else
132
132
  J.id = e;
133
133
  }
134
- function as(e) {
134
+ function ss(e) {
135
135
  J.id = e;
136
136
  }
137
- function ss(e, t = !0) {
137
+ function rs(e, t = !0) {
138
138
  D.id = e, sessionStorage.setItem("f", $.enCode(D)), t && J.id(e);
139
139
  }
140
- function jn() {
140
+ function kn() {
141
141
  return D.id;
142
142
  }
143
- function rs(e) {
143
+ function is(e) {
144
144
  return Number(D.id) === e;
145
145
  }
146
- function is(e, t, n) {
146
+ function os(e, t, n) {
147
147
  D.module = e, D.id = n, D.tab = t, sessionStorage.setItem("f", $.enCode(D)), J.module(e), J.tabs(t);
148
148
  }
149
- function os(e) {
149
+ function ls(e) {
150
150
  De.data = e[0], delete De.data.id, document.body.dataset.theme = De.data.s15, localStorage.setItem("s", $.enCode(De.data));
151
151
  }
152
- function ls(e, t) {
152
+ function cs(e, t) {
153
153
  De.data[e] = t, localStorage.setItem("s", $.enCode(De.data));
154
154
  }
155
- function cs(e) {
155
+ function ds(e) {
156
156
  let t = localStorage.getItem("s");
157
157
  return t === null ? {} : (t = $.deCode(t), t ? e !== void 0 ? t[e] : t : ie());
158
158
  }
159
- function kn(e) {
159
+ function wn(e) {
160
160
  localStorage.setItem("m", $.enCode({ data: e }));
161
161
  }
162
- function ds() {
162
+ function _s() {
163
163
  let e = localStorage.getItem("m");
164
164
  if (e !== "" && e !== "undefined" && e !== null) {
165
165
  let t = localStorage.getItem("m"), n = $.deCode(t);
@@ -173,10 +173,10 @@ function ds() {
173
173
  } else
174
174
  return ie(), !1;
175
175
  }
176
- function _s(e) {
176
+ function us(e) {
177
177
  J.sort = e;
178
178
  }
179
- function wn(e) {
179
+ function bn(e) {
180
180
  let t = localStorage.getItem("b");
181
181
  t = t === null ? {} : $.deCode(t), t[at()] = e, localStorage.setItem("b", $.enCode(t));
182
182
  }
@@ -184,10 +184,10 @@ function Ct() {
184
184
  let e = localStorage.getItem("b");
185
185
  return e === null ? {} : (e = $.deCode(e), e = e[at()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
186
186
  }
187
- function bn(e) {
187
+ function Sn(e) {
188
188
  localStorage.setItem("c", $.enCode(e));
189
189
  }
190
- function Sn(e, t) {
190
+ function En(e, t) {
191
191
  var s;
192
192
  let n = localStorage.getItem("c");
193
193
  if (n !== "" && n !== "undefined" && n !== null) {
@@ -199,7 +199,7 @@ function Sn(e, t) {
199
199
  function Ze(e) {
200
200
  fe.data = e, localStorage.setItem("q", $.enCode(fe.data));
201
201
  }
202
- function us(e, t) {
202
+ function fs(e, t) {
203
203
  fe.data = { ...fe.data, [e]: t }, localStorage.setItem("q", $.enCode(fe.data));
204
204
  }
205
205
  function ge(e, t) {
@@ -209,22 +209,22 @@ function ge(e, t) {
209
209
  }
210
210
  return e === void 0 && t === void 0 ? fe.data : e !== void 0 && t === void 0 ? fe.data[e] : fe.data[e][t];
211
211
  }
212
- function fs(e) {
213
- vn.data = e;
214
- }
215
212
  function ms(e) {
216
- return vn.data[e];
213
+ Cn.data = e;
217
214
  }
218
215
  function hs(e) {
216
+ return Cn.data[e];
217
+ }
218
+ function gs(e) {
219
219
  D.payment = e;
220
220
  }
221
- function gs() {
221
+ function ps() {
222
222
  return D.payment;
223
223
  }
224
- function En(e) {
224
+ function Rn(e) {
225
225
  localStorage.setItem("u", $.enCode(e));
226
226
  }
227
- function ps() {
227
+ function xs() {
228
228
  let e = localStorage.getItem("u");
229
229
  if (e !== "" && e !== "undefined" && e !== null) {
230
230
  let t = $.deCode(e);
@@ -232,10 +232,10 @@ function ps() {
232
232
  } else
233
233
  return ie(), !1;
234
234
  }
235
- function sn(e) {
235
+ function rn(e) {
236
236
  localStorage.setItem("e", $.enCode(e));
237
237
  }
238
- function xs() {
238
+ function vs() {
239
239
  let e = localStorage.getItem("e");
240
240
  if (e !== "" && e !== "undefined" && e !== null)
241
241
  try {
@@ -247,7 +247,7 @@ function xs() {
247
247
  else
248
248
  return {};
249
249
  }
250
- function vs(e) {
250
+ function Cs(e) {
251
251
  const t = (n) => {
252
252
  let s = localStorage.getItem(n);
253
253
  if (s !== "" && s !== "undefined" && s !== null)
@@ -263,50 +263,50 @@ function vs(e) {
263
263
  };
264
264
  e.forEach((n) => t(n));
265
265
  }
266
- function Cs(e) {
266
+ function ys(e) {
267
267
  return D[e] === void 0 ? (D[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : D[e];
268
268
  }
269
- function ys(e, t) {
269
+ function js(e, t) {
270
270
  D[e] = { data: t.data, time: t.time }, localStorage.setItem(e, $.enCode(D[e]));
271
271
  }
272
- function js(e, t, n) {
272
+ function ks(e, t, n) {
273
273
  D[e].time = n, D[e].data[t.item][t.name] = t.value, localStorage.setItem(e, $.enCode(D[e]));
274
274
  }
275
275
  const re = {
276
- setSSID: Za,
277
- getSSID: za,
276
+ setSSID: za,
277
+ getSSID: Ua,
278
278
  getPORT: vt,
279
- setPORT: Ka,
280
- setAUTH: Ua,
281
- getAUTH: Wa,
279
+ setPORT: Ya,
280
+ setAUTH: Wa,
281
+ getAUTH: Ka,
282
282
  Logaut: ie,
283
- Start: Ga,
284
- setMenu: kn,
285
- getMenu: ds,
286
- useSort: _s,
287
- setSort: wn,
283
+ Start: Za,
284
+ setMenu: wn,
285
+ getMenu: _s,
286
+ useSort: us,
287
+ setSort: bn,
288
288
  getSort: Ct,
289
- setCompany: bn,
290
- getCompany: Sn,
289
+ setCompany: Sn,
290
+ getCompany: En,
291
291
  setSelect: Ze,
292
- addSelect: us,
292
+ addSelect: fs,
293
293
  getSelect: ge,
294
- setApi: fs,
295
- getApi: ms,
296
- setPayment: hs,
297
- getPayment: gs,
298
- setUser: En,
299
- getUser: ps,
300
- getDefaultModules: Oa,
301
- getBase: Cs,
302
- setBase: ys,
303
- editBase: js,
304
- loadBase: vs
305
- }, Rn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT97fTp7IkNvbnRlbnQtdHlwZSI6ImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD11dGYtOCJ9O3RyeXtsZXQgdD1hd2FpdCBmZXRjaChgJHthLmRhdGEuaG9zdH0ke2EuZGF0YS5saW5rfWAse21ldGhvZDoiUE9TVCIsaGVhZGVyczp7c3NpZDphLmRhdGEuc3NpZCwuLi5zfSxib2R5OmEuZGF0YS5kYXRhIGluc3RhbmNlb2YgRm9ybURhdGE/YS5kYXRhLmRhdGE6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=", ks = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), rn = typeof self < "u" && self.Blob && new Blob([ks(Rn)], { type: "text/javascript;charset=utf-8" });
306
- function Dn(e) {
294
+ setApi: ms,
295
+ getApi: hs,
296
+ setPayment: gs,
297
+ getPayment: ps,
298
+ setUser: Rn,
299
+ getUser: xs,
300
+ getDefaultModules: Aa,
301
+ getBase: ys,
302
+ setBase: js,
303
+ editBase: ks,
304
+ loadBase: Cs
305
+ }, Dn = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT97fTp7IkNvbnRlbnQtdHlwZSI6ImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD11dGYtOCJ9O3RyeXtsZXQgdD1hd2FpdCBmZXRjaChgJHthLmRhdGEuaG9zdH0ke2EuZGF0YS5saW5rfWAse21ldGhvZDoiUE9TVCIsaGVhZGVyczp7c3NpZDphLmRhdGEuc3NpZCwuLi5zfSxib2R5OmEuZGF0YS5kYXRhIGluc3RhbmNlb2YgRm9ybURhdGE/YS5kYXRhLmRhdGE6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=", ws = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), on = typeof self < "u" && self.Blob && new Blob([ws(Dn)], { type: "text/javascript;charset=utf-8" });
306
+ function Nn(e) {
307
307
  let t;
308
308
  try {
309
- if (t = rn && (self.URL || self.webkitURL).createObjectURL(rn), !t) throw "";
309
+ if (t = on && (self.URL || self.webkitURL).createObjectURL(on), !t) throw "";
310
310
  const n = new Worker(t, {
311
311
  name: e == null ? void 0 : e.name
312
312
  });
@@ -315,7 +315,7 @@ function Dn(e) {
315
315
  }), n;
316
316
  } catch {
317
317
  return new Worker(
318
- "data:text/javascript;base64," + Rn,
318
+ "data:text/javascript;base64," + Dn,
319
319
  {
320
320
  name: e == null ? void 0 : e.name
321
321
  }
@@ -325,52 +325,52 @@ function Dn(e) {
325
325
  }
326
326
  }
327
327
  const _e = {};
328
- function ws(e) {
328
+ function bs(e) {
329
329
  return e && (_e.s = e), _e.s;
330
330
  }
331
- function bs(e) {
331
+ function Ss(e) {
332
332
  return e && (_e.a = e), _e.a;
333
333
  }
334
- function Ss(e) {
334
+ function Es(e) {
335
335
  return e && (_e.c = e), _e.c;
336
336
  }
337
- function Es(e) {
337
+ function Rs(e) {
338
338
  return e && (_e.h = e), _e.h;
339
339
  }
340
- function Rs(e) {
340
+ function Ds(e) {
341
341
  return e && (_e.i = e), _e.i;
342
342
  }
343
- function Nt(e) {
343
+ function It(e) {
344
344
  return _e.i(e);
345
345
  }
346
- function Ds(e) {
347
- xn(e);
346
+ function Ns(e) {
347
+ vn(e);
348
348
  }
349
349
  const st = {
350
- version: { Api: bs, Server: ws, Client: Ss },
351
- Host: Es,
352
- Import: Rs,
353
- Crypto: Ds,
354
- defaultModule: Pa
350
+ version: { Api: Ss, Server: bs, Client: Es },
351
+ Host: Rs,
352
+ Import: Ds,
353
+ Crypto: Ns,
354
+ defaultModule: Oa
355
355
  };
356
- let Is = "api", Ns = "elcrm", Ts = "online";
357
- function Ms() {
356
+ let Is = "api", Ts = "elcrm", Ms = "online";
357
+ function Ls() {
358
358
  let e = re.getPORT(), t = "", n = "";
359
359
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, n = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", n = "https://" + e.address + "/files"), {
360
360
  documents: t,
361
361
  files: n
362
362
  };
363
363
  }
364
- let Tt = `${Is}.${Ns}.${Ts}`;
365
- function Ls(e) {
364
+ let Tt = `${Is}.${Ts}.${Ms}`;
365
+ function Fs(e) {
366
366
  return "https://" + re.getPORT().address + "/audio/" + e;
367
367
  }
368
- function Fs(e) {
368
+ function Bs(e) {
369
369
  return "https://" + re.getPORT().address + "/image/" + e;
370
370
  }
371
371
  function ze(e, t = {}, n = re.getAUTH()) {
372
372
  return new Promise((s) => {
373
- const r = new Dn();
373
+ const r = new Nn();
374
374
  r.onmessage = (i) => {
375
375
  s(i.data), r.terminate();
376
376
  }, r.postMessage({
@@ -381,7 +381,7 @@ function ze(e, t = {}, n = re.getAUTH()) {
381
381
  });
382
382
  });
383
383
  }
384
- async function Bs(e, t = {}, n = re.getAUTH()) {
384
+ async function $s(e, t = {}, n = re.getAUTH()) {
385
385
  try {
386
386
  return await (await ze(st.Host() || `https://${Tt}/` + e, {
387
387
  method: "POST",
@@ -394,9 +394,9 @@ async function Bs(e, t = {}, n = re.getAUTH()) {
394
394
  return { status: "error", message: s };
395
395
  }
396
396
  }
397
- function $s(e, t = {}, n = re.getAUTH()) {
397
+ function Ps(e, t = {}, n = re.getAUTH()) {
398
398
  return new Promise((s) => {
399
- const r = new Dn();
399
+ const r = new Nn();
400
400
  r.onmessage = (i) => {
401
401
  s(i.data), r.terminate();
402
402
  }, r.postMessage({
@@ -407,7 +407,7 @@ function $s(e, t = {}, n = re.getAUTH()) {
407
407
  });
408
408
  });
409
409
  }
410
- function Ps(e, t = {}, n) {
410
+ function Os(e, t = {}, n) {
411
411
  const [s, r] = g.useState({ status: "load" }), i = async (o) => {
412
412
  let l = await ze(e, o, n);
413
413
  r(l);
@@ -420,7 +420,7 @@ let In = {
420
420
  "Content-type": "application/json;charset=utf-8",
421
421
  ssid: re.getAUTH() || ""
422
422
  };
423
- async function Os(e, t, n = {}) {
423
+ async function As(e, t, n = {}) {
424
424
  try {
425
425
  return await (await ze("https://" + e + "/" + t, {
426
426
  method: "POST",
@@ -431,7 +431,7 @@ async function Os(e, t, n = {}) {
431
431
  return { status: "error" };
432
432
  }
433
433
  }
434
- async function As(e, t = {}) {
434
+ async function Gs(e, t = {}) {
435
435
  try {
436
436
  return await (await ze("https://tb.elcrm.online/v1/" + e, {
437
437
  method: "POST",
@@ -442,26 +442,26 @@ async function As(e, t = {}) {
442
442
  return { status: "error" };
443
443
  }
444
444
  }
445
- function Gs(e = "qJqEtGe93RVTRF1gTKmdEXw6gCgrSx31") {
445
+ function Zs(e = "qJqEtGe93RVTRF1gTKmdEXw6gCgrSx31") {
446
446
  return e[(e.length / 2).toFixed()] + e[(e.length / 3).toFixed()] + e[(e.length / 4).toFixed()] + e[(e.length / 2).toFixed()];
447
447
  }
448
- async function Zs(e, t = {}) {
448
+ async function zs(e, t = {}) {
449
449
  return new Promise((n) => {
450
450
  setTimeout(() => n(t), e);
451
451
  });
452
452
  }
453
- const on = {
454
- audio: Ls,
455
- image: Fs,
453
+ const ln = {
454
+ audio: Fs,
455
+ image: Bs,
456
456
  fetch: ze,
457
- modules: $s,
458
- remoute: Os,
459
- url: Ms,
460
- test: Zs,
461
- telegram: As,
462
- use: Ps,
463
- token: Gs,
464
- formData: Bs
457
+ modules: Ps,
458
+ remoute: As,
459
+ url: Ls,
460
+ test: zs,
461
+ telegram: Gs,
462
+ use: Os,
463
+ token: Zs,
464
+ formData: $s
465
465
  };
466
466
  var yt = { exports: {} }, Fe = {};
467
467
  /**
@@ -473,10 +473,10 @@ var yt = { exports: {} }, Fe = {};
473
473
  * This source code is licensed under the MIT license found in the
474
474
  * LICENSE file in the root directory of this source tree.
475
475
  */
476
- var ln;
477
- function zs() {
478
- if (ln) return Fe;
479
- ln = 1;
476
+ var cn;
477
+ function Us() {
478
+ if (cn) return Fe;
479
+ cn = 1;
480
480
  var e = g, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
481
481
  function o(l, c, _) {
482
482
  var u, m = {}, f = null, p = null;
@@ -497,9 +497,9 @@ var Be = {};
497
497
  * This source code is licensed under the MIT license found in the
498
498
  * LICENSE file in the root directory of this source tree.
499
499
  */
500
- var cn;
501
- function Us() {
502
- return cn || (cn = 1, process.env.NODE_ENV !== "production" && function() {
500
+ var dn;
501
+ function Ws() {
502
+ return dn || (dn = 1, process.env.NODE_ENV !== "production" && function() {
503
503
  var e = g, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), C = Symbol.iterator, h = "@@iterator";
504
504
  function x(d) {
505
505
  if (d === null || typeof d != "object")
@@ -512,10 +512,10 @@ function Us() {
512
512
  {
513
513
  for (var v = arguments.length, k = new Array(v > 1 ? v - 1 : 0), M = 1; M < v; M++)
514
514
  k[M - 1] = arguments[M];
515
- N("error", d, k);
515
+ I("error", d, k);
516
516
  }
517
517
  }
518
- function N(d, v, k) {
518
+ function I(d, v, k) {
519
519
  {
520
520
  var M = y.ReactDebugCurrentFrame, G = M.getStackAddendum();
521
521
  G !== "" && (v += "%s", k = k.concat([G]));
@@ -544,7 +544,7 @@ function Us() {
544
544
  function A(d) {
545
545
  return d.displayName || "Context";
546
546
  }
547
- function I(d) {
547
+ function N(d) {
548
548
  if (d == null)
549
549
  return null;
550
550
  if (typeof d.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
@@ -577,11 +577,11 @@ function Us() {
577
577
  return z(d, d.render, "ForwardRef");
578
578
  case m:
579
579
  var M = d.displayName || null;
580
- return M !== null ? M : I(d.type) || "Memo";
580
+ return M !== null ? M : N(d.type) || "Memo";
581
581
  case f: {
582
582
  var G = d, Z = G._payload, P = G._init;
583
583
  try {
584
- return I(P(Z));
584
+ return N(P(Z));
585
585
  } catch {
586
586
  return null;
587
587
  }
@@ -589,18 +589,18 @@ function Us() {
589
589
  }
590
590
  return null;
591
591
  }
592
- var F = Object.assign, W = 0, ee, ae, he, Se, Te, Ke, Zt;
593
- function zt() {
592
+ var F = Object.assign, W = 0, ee, ae, he, Se, Te, Ke, zt;
593
+ function Ut() {
594
594
  }
595
- zt.__reactDisabledLog = !0;
596
- function sa() {
595
+ Ut.__reactDisabledLog = !0;
596
+ function ra() {
597
597
  {
598
598
  if (W === 0) {
599
- ee = console.log, ae = console.info, he = console.warn, Se = console.error, Te = console.group, Ke = console.groupCollapsed, Zt = console.groupEnd;
599
+ ee = console.log, ae = console.info, he = console.warn, Se = console.error, Te = console.group, Ke = console.groupCollapsed, zt = console.groupEnd;
600
600
  var d = {
601
601
  configurable: !0,
602
602
  enumerable: !0,
603
- value: zt,
603
+ value: Ut,
604
604
  writable: !0
605
605
  };
606
606
  Object.defineProperties(console, {
@@ -616,7 +616,7 @@ function Us() {
616
616
  W++;
617
617
  }
618
618
  }
619
- function ra() {
619
+ function ia() {
620
620
  {
621
621
  if (W--, W === 0) {
622
622
  var d = {
@@ -644,7 +644,7 @@ function Us() {
644
644
  value: Ke
645
645
  }),
646
646
  groupEnd: F({}, d, {
647
- value: Zt
647
+ value: zt
648
648
  })
649
649
  });
650
650
  }
@@ -667,10 +667,10 @@ function Us() {
667
667
  }
668
668
  var ct = !1, He;
669
669
  {
670
- var ia = typeof WeakMap == "function" ? WeakMap : Map;
671
- He = new ia();
670
+ var oa = typeof WeakMap == "function" ? WeakMap : Map;
671
+ He = new oa();
672
672
  }
673
- function Ut(d, v) {
673
+ function Wt(d, v) {
674
674
  if (!d || ct)
675
675
  return "";
676
676
  {
@@ -683,7 +683,7 @@ function Us() {
683
683
  var G = Error.prepareStackTrace;
684
684
  Error.prepareStackTrace = void 0;
685
685
  var Z;
686
- Z = ot.current, ot.current = null, sa();
686
+ Z = ot.current, ot.current = null, ra();
687
687
  try {
688
688
  if (v) {
689
689
  var P = function() {
@@ -736,15 +736,15 @@ function Us() {
736
736
  }
737
737
  }
738
738
  } finally {
739
- ct = !1, ot.current = Z, ra(), Error.prepareStackTrace = G;
739
+ ct = !1, ot.current = Z, ia(), Error.prepareStackTrace = G;
740
740
  }
741
741
  var Re = d ? d.displayName || d.name : "", je = Re ? Ye(Re) : "";
742
742
  return typeof d == "function" && He.set(d, je), je;
743
743
  }
744
- function oa(d, v, k) {
745
- return Ut(d, !1);
744
+ function la(d, v, k) {
745
+ return Wt(d, !1);
746
746
  }
747
- function la(d) {
747
+ function ca(d) {
748
748
  var v = d.prototype;
749
749
  return !!(v && v.isReactComponent);
750
750
  }
@@ -752,7 +752,7 @@ function Us() {
752
752
  if (d == null)
753
753
  return "";
754
754
  if (typeof d == "function")
755
- return Ut(d, la(d));
755
+ return Wt(d, ca(d));
756
756
  if (typeof d == "string")
757
757
  return Ye(d);
758
758
  switch (d) {
@@ -764,7 +764,7 @@ function Us() {
764
764
  if (typeof d == "object")
765
765
  switch (d.$$typeof) {
766
766
  case c:
767
- return oa(d.render);
767
+ return la(d.render);
768
768
  case m:
769
769
  return qe(d.type, v, k);
770
770
  case f: {
@@ -777,15 +777,15 @@ function Us() {
777
777
  }
778
778
  return "";
779
779
  }
780
- var Me = Object.prototype.hasOwnProperty, Wt = {}, Kt = y.ReactDebugCurrentFrame;
780
+ var Me = Object.prototype.hasOwnProperty, Kt = {}, Yt = y.ReactDebugCurrentFrame;
781
781
  function Ve(d) {
782
782
  if (d) {
783
783
  var v = d._owner, k = qe(d.type, d._source, v ? v.type : null);
784
- Kt.setExtraStackFrame(k);
784
+ Yt.setExtraStackFrame(k);
785
785
  } else
786
- Kt.setExtraStackFrame(null);
786
+ Yt.setExtraStackFrame(null);
787
787
  }
788
- function ca(d, v, k, M, G) {
788
+ function da(d, v, k, M, G) {
789
789
  {
790
790
  var Z = Function.call.bind(Me);
791
791
  for (var P in d)
@@ -800,42 +800,42 @@ function Us() {
800
800
  } catch (H) {
801
801
  B = H;
802
802
  }
803
- B && !(B instanceof Error) && (Ve(G), w("%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).", M || "React class", k, P, typeof B), Ve(null)), B instanceof Error && !(B.message in Wt) && (Wt[B.message] = !0, Ve(G), w("Failed %s type: %s", k, B.message), Ve(null));
803
+ B && !(B instanceof Error) && (Ve(G), w("%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).", M || "React class", k, P, typeof B), Ve(null)), B instanceof Error && !(B.message in Kt) && (Kt[B.message] = !0, Ve(G), w("Failed %s type: %s", k, B.message), Ve(null));
804
804
  }
805
805
  }
806
806
  }
807
- var da = Array.isArray;
807
+ var _a = Array.isArray;
808
808
  function dt(d) {
809
- return da(d);
809
+ return _a(d);
810
810
  }
811
- function _a(d) {
811
+ function ua(d) {
812
812
  {
813
813
  var v = typeof Symbol == "function" && Symbol.toStringTag, k = v && d[Symbol.toStringTag] || d.constructor.name || "Object";
814
814
  return k;
815
815
  }
816
816
  }
817
- function ua(d) {
817
+ function fa(d) {
818
818
  try {
819
- return Yt(d), !1;
819
+ return Ht(d), !1;
820
820
  } catch {
821
821
  return !0;
822
822
  }
823
823
  }
824
- function Yt(d) {
824
+ function Ht(d) {
825
825
  return "" + d;
826
826
  }
827
- function Ht(d) {
828
- if (ua(d))
829
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _a(d)), Yt(d);
827
+ function qt(d) {
828
+ if (fa(d))
829
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ua(d)), Ht(d);
830
830
  }
831
- var Le = y.ReactCurrentOwner, fa = {
831
+ var Le = y.ReactCurrentOwner, ma = {
832
832
  key: !0,
833
833
  ref: !0,
834
834
  __self: !0,
835
835
  __source: !0
836
- }, qt, Vt, _t;
836
+ }, Vt, Jt, _t;
837
837
  _t = {};
838
- function ma(d) {
838
+ function ha(d) {
839
839
  if (Me.call(d, "ref")) {
840
840
  var v = Object.getOwnPropertyDescriptor(d, "ref").get;
841
841
  if (v && v.isReactWarning)
@@ -843,7 +843,7 @@ function Us() {
843
843
  }
844
844
  return d.ref !== void 0;
845
845
  }
846
- function ha(d) {
846
+ function ga(d) {
847
847
  if (Me.call(d, "key")) {
848
848
  var v = Object.getOwnPropertyDescriptor(d, "key").get;
849
849
  if (v && v.isReactWarning)
@@ -851,16 +851,16 @@ function Us() {
851
851
  }
852
852
  return d.key !== void 0;
853
853
  }
854
- function ga(d, v) {
854
+ function pa(d, v) {
855
855
  if (typeof d.ref == "string" && Le.current && v && Le.current.stateNode !== v) {
856
- var k = I(Le.current.type);
857
- _t[k] || (w('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', I(Le.current.type), d.ref), _t[k] = !0);
856
+ var k = N(Le.current.type);
857
+ _t[k] || (w('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', N(Le.current.type), d.ref), _t[k] = !0);
858
858
  }
859
859
  }
860
- function pa(d, v) {
860
+ function xa(d, v) {
861
861
  {
862
862
  var k = function() {
863
- qt || (qt = !0, w("%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)", v));
863
+ Vt || (Vt = !0, w("%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)", v));
864
864
  };
865
865
  k.isReactWarning = !0, Object.defineProperty(d, "key", {
866
866
  get: k,
@@ -868,10 +868,10 @@ function Us() {
868
868
  });
869
869
  }
870
870
  }
871
- function xa(d, v) {
871
+ function va(d, v) {
872
872
  {
873
873
  var k = function() {
874
- Vt || (Vt = !0, w("%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)", v));
874
+ Jt || (Jt = !0, w("%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)", v));
875
875
  };
876
876
  k.isReactWarning = !0, Object.defineProperty(d, "ref", {
877
877
  get: k,
@@ -879,7 +879,7 @@ function Us() {
879
879
  });
880
880
  }
881
881
  }
882
- var va = function(d, v, k, M, G, Z, P) {
882
+ var Ca = function(d, v, k, M, G, Z, P) {
883
883
  var B = {
884
884
  // This tag allows us to uniquely identify this as a React Element
885
885
  $$typeof: t,
@@ -908,12 +908,12 @@ function Us() {
908
908
  value: G
909
909
  }), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
910
910
  };
911
- function Ca(d, v, k, M, G) {
911
+ function ya(d, v, k, M, G) {
912
912
  {
913
913
  var Z, P = {}, B = null, Q = null;
914
- k !== void 0 && (Ht(k), B = "" + k), ha(v) && (Ht(v.key), B = "" + v.key), ma(v) && (Q = v.ref, ga(v, G));
914
+ k !== void 0 && (qt(k), B = "" + k), ga(v) && (qt(v.key), B = "" + v.key), ha(v) && (Q = v.ref, pa(v, G));
915
915
  for (Z in v)
916
- Me.call(v, Z) && !fa.hasOwnProperty(Z) && (P[Z] = v[Z]);
916
+ Me.call(v, Z) && !ma.hasOwnProperty(Z) && (P[Z] = v[Z]);
917
917
  if (d && d.defaultProps) {
918
918
  var H = d.defaultProps;
919
919
  for (Z in H)
@@ -921,28 +921,28 @@ function Us() {
921
921
  }
922
922
  if (B || Q) {
923
923
  var V = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
924
- B && pa(P, V), Q && xa(P, V);
924
+ B && xa(P, V), Q && va(P, V);
925
925
  }
926
- return va(d, B, Q, G, M, Le.current, P);
926
+ return Ca(d, B, Q, G, M, Le.current, P);
927
927
  }
928
928
  }
929
- var ut = y.ReactCurrentOwner, Jt = y.ReactDebugCurrentFrame;
929
+ var ut = y.ReactCurrentOwner, Xt = y.ReactDebugCurrentFrame;
930
930
  function Ee(d) {
931
931
  if (d) {
932
932
  var v = d._owner, k = qe(d.type, d._source, v ? v.type : null);
933
- Jt.setExtraStackFrame(k);
933
+ Xt.setExtraStackFrame(k);
934
934
  } else
935
- Jt.setExtraStackFrame(null);
935
+ Xt.setExtraStackFrame(null);
936
936
  }
937
937
  var ft;
938
938
  ft = !1;
939
939
  function mt(d) {
940
940
  return typeof d == "object" && d !== null && d.$$typeof === t;
941
941
  }
942
- function Xt() {
942
+ function Qt() {
943
943
  {
944
944
  if (ut.current) {
945
- var d = I(ut.current.type);
945
+ var d = N(ut.current.type);
946
946
  if (d)
947
947
  return `
948
948
 
@@ -951,13 +951,13 @@ Check the render method of \`` + d + "`.";
951
951
  return "";
952
952
  }
953
953
  }
954
- function ya(d) {
954
+ function ja(d) {
955
955
  return "";
956
956
  }
957
- var Qt = {};
958
- function ja(d) {
957
+ var en = {};
958
+ function ka(d) {
959
959
  {
960
- var v = Xt();
960
+ var v = Qt();
961
961
  if (!v) {
962
962
  var k = typeof d == "string" ? d : d.displayName || d.name;
963
963
  k && (v = `
@@ -967,27 +967,27 @@ Check the top-level render call using <` + k + ">.");
967
967
  return v;
968
968
  }
969
969
  }
970
- function en(d, v) {
970
+ function tn(d, v) {
971
971
  {
972
972
  if (!d._store || d._store.validated || d.key != null)
973
973
  return;
974
974
  d._store.validated = !0;
975
- var k = ja(v);
976
- if (Qt[k])
975
+ var k = ka(v);
976
+ if (en[k])
977
977
  return;
978
- Qt[k] = !0;
978
+ en[k] = !0;
979
979
  var M = "";
980
- d && d._owner && d._owner !== ut.current && (M = " It was passed a child from " + I(d._owner.type) + "."), Ee(d), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, M), Ee(null);
980
+ d && d._owner && d._owner !== ut.current && (M = " It was passed a child from " + N(d._owner.type) + "."), Ee(d), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, M), Ee(null);
981
981
  }
982
982
  }
983
- function tn(d, v) {
983
+ function nn(d, v) {
984
984
  {
985
985
  if (typeof d != "object")
986
986
  return;
987
987
  if (dt(d))
988
988
  for (var k = 0; k < d.length; k++) {
989
989
  var M = d[k];
990
- mt(M) && en(M, v);
990
+ mt(M) && tn(M, v);
991
991
  }
992
992
  else if (mt(d))
993
993
  d._store && (d._store.validated = !0);
@@ -995,11 +995,11 @@ Check the top-level render call using <` + k + ">.");
995
995
  var G = x(d);
996
996
  if (typeof G == "function" && G !== d.entries)
997
997
  for (var Z = G.call(d), P; !(P = Z.next()).done; )
998
- mt(P.value) && en(P.value, v);
998
+ mt(P.value) && tn(P.value, v);
999
999
  }
1000
1000
  }
1001
1001
  }
1002
- function ka(d) {
1002
+ function wa(d) {
1003
1003
  {
1004
1004
  var v = d.type;
1005
1005
  if (v == null || typeof v == "string")
@@ -1014,17 +1014,17 @@ Check the top-level render call using <` + k + ">.");
1014
1014
  else
1015
1015
  return;
1016
1016
  if (k) {
1017
- var M = I(v);
1018
- ca(k, d.props, "prop", M, d);
1017
+ var M = N(v);
1018
+ da(k, d.props, "prop", M, d);
1019
1019
  } else if (v.PropTypes !== void 0 && !ft) {
1020
1020
  ft = !0;
1021
- var G = I(v);
1021
+ var G = N(v);
1022
1022
  w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
1023
1023
  }
1024
1024
  typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1025
1025
  }
1026
1026
  }
1027
- function wa(d) {
1027
+ function ba(d) {
1028
1028
  {
1029
1029
  for (var v = Object.keys(d.props), k = 0; k < v.length; k++) {
1030
1030
  var M = v[k];
@@ -1036,19 +1036,19 @@ Check the top-level render call using <` + k + ">.");
1036
1036
  d.ref !== null && (Ee(d), w("Invalid attribute `ref` supplied to `React.Fragment`."), Ee(null));
1037
1037
  }
1038
1038
  }
1039
- var nn = {};
1040
- function an(d, v, k, M, G, Z) {
1039
+ var an = {};
1040
+ function sn(d, v, k, M, G, Z) {
1041
1041
  {
1042
1042
  var P = T(d);
1043
1043
  if (!P) {
1044
1044
  var B = "";
1045
1045
  (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1046
- var Q = ya();
1047
- Q ? B += Q : B += Xt();
1046
+ var Q = ja();
1047
+ Q ? B += Q : B += Qt();
1048
1048
  var H;
1049
- d === null ? H = "null" : dt(d) ? H = "array" : d !== void 0 && d.$$typeof === t ? (H = "<" + (I(d.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : H = typeof d, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, B);
1049
+ d === null ? H = "null" : dt(d) ? H = "array" : d !== void 0 && d.$$typeof === t ? (H = "<" + (N(d.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : H = typeof d, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, B);
1050
1050
  }
1051
- var V = Ca(d, v, k, G, Z);
1051
+ var V = ya(d, v, k, G, Z);
1052
1052
  if (V == null)
1053
1053
  return V;
1054
1054
  if (P) {
@@ -1057,43 +1057,43 @@ Check the top-level render call using <` + k + ">.");
1057
1057
  if (M)
1058
1058
  if (dt(oe)) {
1059
1059
  for (var Re = 0; Re < oe.length; Re++)
1060
- tn(oe[Re], d);
1060
+ nn(oe[Re], d);
1061
1061
  Object.freeze && Object.freeze(oe);
1062
1062
  } else
1063
1063
  w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
1064
1064
  else
1065
- tn(oe, d);
1065
+ nn(oe, d);
1066
1066
  }
1067
1067
  if (Me.call(v, "key")) {
1068
- var je = I(d), te = Object.keys(v).filter(function(Ia) {
1068
+ var je = N(d), te = Object.keys(v).filter(function(Ia) {
1069
1069
  return Ia !== "key";
1070
1070
  }), ht = te.length > 0 ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}";
1071
- if (!nn[je + ht]) {
1072
- var Da = te.length > 0 ? "{" + te.join(": ..., ") + ": ...}" : "{}";
1071
+ if (!an[je + ht]) {
1072
+ var Na = te.length > 0 ? "{" + te.join(": ..., ") + ": ...}" : "{}";
1073
1073
  w(`A props object containing a "key" prop is being spread into JSX:
1074
1074
  let props = %s;
1075
1075
  <%s {...props} />
1076
1076
  React keys must be passed directly to JSX without using spread:
1077
1077
  let props = %s;
1078
- <%s key={someKey} {...props} />`, ht, je, Da, je), nn[je + ht] = !0;
1078
+ <%s key={someKey} {...props} />`, ht, je, Na, je), an[je + ht] = !0;
1079
1079
  }
1080
1080
  }
1081
- return d === s ? wa(V) : ka(V), V;
1081
+ return d === s ? ba(V) : wa(V), V;
1082
1082
  }
1083
1083
  }
1084
- function ba(d, v, k) {
1085
- return an(d, v, k, !0);
1086
- }
1087
1084
  function Sa(d, v, k) {
1088
- return an(d, v, k, !1);
1085
+ return sn(d, v, k, !0);
1086
+ }
1087
+ function Ea(d, v, k) {
1088
+ return sn(d, v, k, !1);
1089
1089
  }
1090
- var Ea = Sa, Ra = ba;
1091
- Be.Fragment = s, Be.jsx = Ea, Be.jsxs = Ra;
1090
+ var Ra = Ea, Da = Sa;
1091
+ Be.Fragment = s, Be.jsx = Ra, Be.jsxs = Da;
1092
1092
  }()), Be;
1093
1093
  }
1094
- process.env.NODE_ENV === "production" ? yt.exports = zs() : yt.exports = Us();
1094
+ process.env.NODE_ENV === "production" ? yt.exports = Us() : yt.exports = Ws();
1095
1095
  var a = yt.exports;
1096
- function Ws(e, t) {
1096
+ function Ks(e, t) {
1097
1097
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1098
1098
  let n = {
1099
1099
  yyyy: e.getFullYear(),
@@ -1110,7 +1110,7 @@ function Ws(e, t) {
1110
1110
  t = t.replace(s, n[s]);
1111
1111
  return t;
1112
1112
  }
1113
- function Ks(e) {
1113
+ function Ys(e) {
1114
1114
  let t = [
1115
1115
  "Января",
1116
1116
  "Февраля",
@@ -1130,17 +1130,17 @@ function Ks(e) {
1130
1130
  name: n.getDate() + " " + t[n.getMonth()]
1131
1131
  };
1132
1132
  }
1133
- const Ys = (e) => {
1134
- function t(N, L) {
1133
+ const Hs = (e) => {
1134
+ function t(I, L) {
1135
1135
  var b, R, S;
1136
- N = N ?? "", L = L ?? 1;
1137
- for (var b = [], S = 0, R = N.length; S < R; )
1138
- b.push(N.slice(S, S += L));
1136
+ I = I ?? "", L = L ?? 1;
1137
+ for (var b = [], S = 0, R = I.length; S < R; )
1138
+ b.push(I.slice(S, S += L));
1139
1139
  return b;
1140
1140
  }
1141
- function n(N, L) {
1141
+ function n(I, L) {
1142
1142
  var b = [2, 0, 1, 1, 1, 2];
1143
- return L[N > 4 && N < 20 ? 2 : b[Math.min(N, 5)]];
1143
+ return L[I > 4 && I < 20 ? 2 : b[Math.min(I, 5)]];
1144
1144
  }
1145
1145
  var s = {
1146
1146
  null: "ноль",
@@ -1228,18 +1228,18 @@ const Ys = (e) => {
1228
1228
  x.push(s.null);
1229
1229
  return x.push(n(c, s.ur)), x.push(l + " " + n(l, s.uc)), x.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1230
1230
  };
1231
- function Hs(e) {
1231
+ function qs(e) {
1232
1232
  let t = -1, n = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1233
1233
  do
1234
1234
  e = e / 1024, t++;
1235
1235
  while (e > 1024);
1236
1236
  return Math.max(e, 0.1).toFixed(1) + n[t];
1237
1237
  }
1238
- function qs(e) {
1238
+ function Vs(e) {
1239
1239
  let t = {};
1240
1240
  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];
1241
1241
  }
1242
- function Vs(e, t, n, s) {
1242
+ function Js(e, t, n, s) {
1243
1243
  let r = {
1244
1244
  sexM: "m",
1245
1245
  sexF: "f",
@@ -1450,7 +1450,7 @@ function Vs(e, t, n, s) {
1450
1450
  }
1451
1451
  return r.ln = e, r.fn = t || "", r.mn = n || "", r.sex = s || r.getSex(), r;
1452
1452
  }
1453
- function Js(e) {
1453
+ function Xs(e) {
1454
1454
  let t = e.split(" ");
1455
1455
  switch (t.length) {
1456
1456
  case 2:
@@ -1461,7 +1461,7 @@ function Js(e) {
1461
1461
  return e;
1462
1462
  }
1463
1463
  }
1464
- function Xs(e) {
1464
+ function Qs(e) {
1465
1465
  return {
1466
1466
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
1467
1467
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -1477,33 +1477,33 @@ function Xs(e) {
1477
1477
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1478
1478
  }[e];
1479
1479
  }
1480
- function Qs(e, t) {
1480
+ function er(e, t) {
1481
1481
  return t && (e = Number(e) / t), parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1482
1482
  }
1483
- function er(e, t) {
1483
+ function tr(e, t) {
1484
1484
  let n = t + "";
1485
1485
  for (; n.length < e; ) n = "0" + n;
1486
1486
  return n;
1487
1487
  }
1488
- function tr(e, t, n) {
1488
+ function nr(e, t, n) {
1489
1489
  let s = t / e * n;
1490
1490
  return (typeof s != "number" || s === 1 / 0) && (s = 0), parseFloat(s).toFixed(1);
1491
1491
  }
1492
- function nr(e) {
1492
+ function ar(e) {
1493
1493
  return e.charAt(0).toUpperCase() + e.slice(1);
1494
1494
  }
1495
- function ar(e, t) {
1495
+ function sr(e, t) {
1496
1496
  e = Math.abs(e) % 100;
1497
1497
  let n = e % 10;
1498
1498
  return e > 10 && e < 20 ? t[2] : n > 1 && n < 5 ? t[1] : n === 1 ? t[0] : t[2];
1499
1499
  }
1500
- function sr(e, t, n) {
1500
+ function rr(e, t, n) {
1501
1501
  return ge(e, t) ? ge(e, t).n : n || "";
1502
1502
  }
1503
- function rr(e, t, n, s) {
1503
+ function ir(e, t, n, s) {
1504
1504
  return ge(e, t) ? ge(e, t)[n] : s || "";
1505
1505
  }
1506
- function ir(e, t) {
1506
+ function or(e, t) {
1507
1507
  return t && (e = e === 0 ? 7 : e), {
1508
1508
  1: { name: "Понедельник", names: "Понедельника", abc: "пн" },
1509
1509
  2: { name: "Вторник", names: "Вторника", abc: "вт" },
@@ -1514,19 +1514,19 @@ function ir(e, t) {
1514
1514
  7: { name: "Воскресенье", names: "Воскресенья", abc: "вс" }
1515
1515
  }[e];
1516
1516
  }
1517
- function or(e, t) {
1517
+ function lr(e, t) {
1518
1518
  return e.reduce(function(n, s) {
1519
1519
  let r = t instanceof Function ? t(s) : s[t];
1520
1520
  return n[r] !== void 0 || (n[r] = {}), n[r][s.id] = s, n;
1521
1521
  }, {});
1522
1522
  }
1523
- function lr(e) {
1523
+ function cr(e) {
1524
1524
  return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
1525
1525
  }
1526
- function cr(e) {
1526
+ function dr(e) {
1527
1527
  return typeof e != "string" ? !1 : !isNaN(Number(e)) && !isNaN(parseFloat(e));
1528
1528
  }
1529
- function dr(e) {
1529
+ function _r(e) {
1530
1530
  var t = "", n = {
1531
1531
  а: "a",
1532
1532
  б: "b",
@@ -1599,55 +1599,55 @@ function dr(e) {
1599
1599
  n[e[s]] == null ? t += e[s] : t += n[e[s]];
1600
1600
  return t;
1601
1601
  }
1602
- function _r(e, t, n = !1) {
1602
+ function ur(e, t, n = !1) {
1603
1603
  return n ? e.sort((s, r) => r[t] - s[t]) : e.sort((s, r) => s[t] - r[t]);
1604
1604
  }
1605
- function ur(e, t) {
1605
+ function fr(e, t) {
1606
1606
  return e.reduce(function(n, s) {
1607
1607
  let r = t instanceof Function ? t(s) : s[t];
1608
1608
  return n[r] !== void 0 || (n[r] = {}), n[r][s.id] = s, n;
1609
1609
  }, {});
1610
1610
  }
1611
- function fr(e, t, n = !1) {
1611
+ function mr(e, t, n = !1) {
1612
1612
  return n ? e.sort(
1613
1613
  (s, r) => new Date(r[t]).getTime() - new Date(s[t]).getTime()
1614
1614
  ) : e.sort(
1615
1615
  (s, r) => new Date(s[t]).getTime() - new Date(r[t]).getTime()
1616
1616
  );
1617
1617
  }
1618
- function mr(e, t) {
1618
+ function hr(e, t) {
1619
1619
  return e.reduce((n, s) => n + (s[t] || 0), 0);
1620
1620
  }
1621
- function hr(e, t, n, s = !1) {
1621
+ function gr(e, t, n, s = !1) {
1622
1622
  return s ? e.sort((r, i) => n(i[t]) - n(r[t])) : e.sort((r, i) => n(r[t]) - n(i[t]));
1623
1623
  }
1624
1624
  const K = {
1625
- Age: lr,
1626
- ArraySort: _r,
1627
- ArrayGroup: ur,
1628
- ArraySortDate: fr,
1629
- ArraySortFunction: hr,
1630
- ArraySumma: mr,
1631
- Translit: dr,
1632
- Date: Ws,
1633
- MoneyString: Ys,
1634
- DateSort: Ks,
1635
- Size: Hs,
1636
- TypeFiles: qs,
1637
- Cases: Vs,
1638
- Initials: Js,
1639
- Month: Xs,
1640
- Money: Qs,
1641
- Number: er,
1642
- Percent: tr,
1643
- CapitalizeFirstLetter: nr,
1644
- DeclensionWord: ar,
1645
- Select: sr,
1646
- SelectParams: rr,
1647
- ObjectByArray: or,
1648
- isNumeric: cr,
1649
- Week: ir
1650
- }, gr = ({ before: e, from: t = 0, to: n }) => {
1625
+ Age: cr,
1626
+ ArraySort: ur,
1627
+ ArrayGroup: fr,
1628
+ ArraySortDate: mr,
1629
+ ArraySortFunction: gr,
1630
+ ArraySumma: hr,
1631
+ Translit: _r,
1632
+ Date: Ks,
1633
+ MoneyString: Hs,
1634
+ DateSort: Ys,
1635
+ Size: qs,
1636
+ TypeFiles: Vs,
1637
+ Cases: Js,
1638
+ Initials: Xs,
1639
+ Month: Qs,
1640
+ Money: er,
1641
+ Number: tr,
1642
+ Percent: nr,
1643
+ CapitalizeFirstLetter: ar,
1644
+ DeclensionWord: sr,
1645
+ Select: rr,
1646
+ SelectParams: ir,
1647
+ ObjectByArray: lr,
1648
+ isNumeric: dr,
1649
+ Week: or
1650
+ }, pr = ({ before: e, from: t = 0, to: n }) => {
1651
1651
  const s = g.useRef();
1652
1652
  return g.useEffect(() => {
1653
1653
  s.n = 0;
@@ -1657,23 +1657,23 @@ const K = {
1657
1657
  s.current.textContent = `${c}` + K.Money(s.n);
1658
1658
  }, o);
1659
1659
  }, [t, n]), /* @__PURE__ */ a.jsx("span", { ref: s });
1660
- }, Lc = { Counter: gr }, pr = "_notice_9i5tr_2", xr = "_error_9i5tr_9", vr = "_success_9i5tr_12", Cr = "_remark_9i5tr_15", yr = "_copy_9i5tr_18", jr = {
1661
- notice: pr,
1662
- error: xr,
1663
- success: vr,
1664
- remark: Cr,
1665
- copy: yr,
1660
+ }, Fc = { Counter: pr }, xr = "_notice_9i5tr_2", vr = "_error_9i5tr_9", Cr = "_success_9i5tr_12", yr = "_remark_9i5tr_15", jr = "_copy_9i5tr_18", kr = {
1661
+ notice: xr,
1662
+ error: vr,
1663
+ success: Cr,
1664
+ remark: yr,
1665
+ copy: jr,
1666
1666
  "show-notice": "_show-notice_9i5tr_1",
1667
1667
  "hide-notice": "_hide-notice_9i5tr_1"
1668
1668
  };
1669
1669
  let Ce = {};
1670
- function kr() {
1670
+ function wr() {
1671
1671
  let [e, t] = g.useState([]);
1672
1672
  return Ce.set = (n) => {
1673
1673
  t([...e, n]);
1674
1674
  }, Ce.del = (n) => {
1675
1675
  t(e.filter((s) => s.key !== n));
1676
- }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: jr.notice, children: e.map((n) => n.item) });
1676
+ }, e.length === 0 ? "" : /* @__PURE__ */ a.jsx("ul", { className: kr.notice, children: e.map((n) => n.item) });
1677
1677
  }
1678
1678
  function Ue({ data: e }) {
1679
1679
  let [t, n] = g.useState("show");
@@ -1708,23 +1708,23 @@ function Ue({ data: e }) {
1708
1708
  /* @__PURE__ */ a.jsx("p", { children: e.text })
1709
1709
  ] });
1710
1710
  }
1711
- function wr(e) {
1711
+ function br(e) {
1712
1712
  let t = Date.now(), n = { key: t, ...e };
1713
1713
  Ce.set({ item: /* @__PURE__ */ a.jsx(Ue, { data: n }, t), key: t });
1714
1714
  }
1715
- function br(e) {
1715
+ function Sr(e) {
1716
1716
  let t = Date.now(), n = { key: t, text: e, type: "error" };
1717
1717
  Ce.set({ item: /* @__PURE__ */ a.jsx(Ue, { data: n }, t), key: t });
1718
1718
  }
1719
- function Sr(e) {
1719
+ function Er(e) {
1720
1720
  let t = Date.now(), n = { key: t, text: e, type: "success" };
1721
1721
  Ce.set({ item: /* @__PURE__ */ a.jsx(Ue, { data: n }, t), key: t });
1722
1722
  }
1723
- function Er(e) {
1723
+ function Rr(e) {
1724
1724
  let t = Date.now(), n = { key: t, text: e, type: "remark" };
1725
1725
  Ce.set({ item: /* @__PURE__ */ a.jsx(Ue, { data: n }, t), key: t });
1726
1726
  }
1727
- function Rr(e) {
1727
+ function Dr(e) {
1728
1728
  let t = Date.now(), n = { key: t, text: e, type: "copy" };
1729
1729
  Ce.set({ item: /* @__PURE__ */ a.jsx(Ue, { data: n }, t), key: t });
1730
1730
  }
@@ -1761,21 +1761,21 @@ ke.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1761
1761
  }
1762
1762
  )
1763
1763
  ] });
1764
- const Dr = "_alerts_1pds5_1", Ir = "_menuAnimation_1pds5_1", Nr = "_menuItemAnimation_1pds5_1", Tr = "_allert_1pds5_111", Mr = "_al_1pds5_1", jt = {
1765
- alerts: Dr,
1764
+ const Nr = "_alerts_1pds5_1", Ir = "_menuAnimation_1pds5_1", Tr = "_menuItemAnimation_1pds5_1", Mr = "_allert_1pds5_111", Lr = "_al_1pds5_1", jt = {
1765
+ alerts: Nr,
1766
1766
  menuAnimation: Ir,
1767
- menuItemAnimation: Nr,
1767
+ menuItemAnimation: Tr,
1768
1768
  "--body": "_--body_1pds5_103",
1769
- allert: Tr,
1769
+ allert: Mr,
1770
1770
  "--form": "_--form_1pds5_111",
1771
- al: Mr
1771
+ al: Lr
1772
1772
  };
1773
1773
  let Ae = {};
1774
- function Lr() {
1774
+ function Fr() {
1775
1775
  let [e, t] = g.useState("");
1776
1776
  return Ae.set = (n) => t(n), Ae.del = () => t(""), /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1777
1777
  }
1778
- const Fr = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: jt.alerts, children: [
1778
+ const Br = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ a.jsxs("div", { className: jt.alerts, children: [
1779
1779
  /* @__PURE__ */ a.jsxs("dl", { children: [
1780
1780
  /* @__PURE__ */ a.jsx("dt", { children: e.title }),
1781
1781
  /* @__PURE__ */ a.jsx("dd", { children: e.text }),
@@ -1800,32 +1800,32 @@ const Fr = ({ data: e, callback: t, cancel: n }) => (e.button = e.button === voi
1800
1800
  }
1801
1801
  )
1802
1802
  ] }));
1803
- function Br(e, t, n) {
1803
+ function $r(e, t, n) {
1804
1804
  Ae.set(
1805
- /* @__PURE__ */ a.jsx(Fr, { data: e, callback: t, cancel: n })
1805
+ /* @__PURE__ */ a.jsx(Br, { data: e, callback: t, cancel: n })
1806
1806
  );
1807
1807
  }
1808
- const Ie = { Send: wr, Error: br, Remark: Er, Success: Sr, Copy: Rr }, Pe = {
1809
- Path: is,
1810
- setPage: Ha,
1811
- getPage: Cn,
1812
- usePage: Ya,
1813
- isPage: qa,
1814
- setModule: Ja,
1815
- getModule: yn,
1816
- useModule: Va,
1817
- isModule: Xa,
1818
- setTabs: es,
1808
+ const Ne = { Send: br, Error: Sr, Remark: Rr, Success: Er, Copy: Dr }, Pe = {
1809
+ Path: os,
1810
+ setPage: qa,
1811
+ getPage: yn,
1812
+ usePage: Ha,
1813
+ isPage: Va,
1814
+ setModule: Xa,
1815
+ getModule: jn,
1816
+ useModule: Ja,
1817
+ isModule: Qa,
1818
+ setTabs: ts,
1819
1819
  getTabs: at,
1820
- useTabs: Qa,
1821
- isTabs: ts,
1822
- useId: ns,
1823
- setId: ss,
1824
- subId: as,
1825
- getId: jn,
1826
- isId: rs
1820
+ useTabs: es,
1821
+ isTabs: ns,
1822
+ useId: as,
1823
+ setId: rs,
1824
+ subId: ss,
1825
+ getId: kn,
1826
+ isId: is
1827
1827
  };
1828
- function $r() {
1828
+ function Pr() {
1829
1829
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1830
1830
  /* @__PURE__ */ a.jsx(
1831
1831
  "path",
@@ -1860,7 +1860,7 @@ function $r() {
1860
1860
  )
1861
1861
  ] });
1862
1862
  }
1863
- function Pr() {
1863
+ function Or() {
1864
1864
  return /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
1865
1865
  /* @__PURE__ */ a.jsx(
1866
1866
  "path",
@@ -1889,7 +1889,7 @@ function Pr() {
1889
1889
  )
1890
1890
  ] });
1891
1891
  }
1892
- function Or() {
1892
+ function Ar() {
1893
1893
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ a.jsx(
1894
1894
  "path",
1895
1895
  {
@@ -1902,11 +1902,11 @@ function Or() {
1902
1902
  }
1903
1903
  ) });
1904
1904
  }
1905
- const Ar = "_n_euuvm_1", Gr = {
1906
- n: Ar
1905
+ const Gr = "_n_euuvm_1", Zr = {
1906
+ n: Gr
1907
1907
  };
1908
1908
  let We = {}, $e = [];
1909
- const Zr = (e, t) => {
1909
+ const zr = (e, t) => {
1910
1910
  switch (t.type) {
1911
1911
  case "open":
1912
1912
  return {
@@ -1958,20 +1958,20 @@ const Zr = (e, t) => {
1958
1958
  throw new Error();
1959
1959
  }
1960
1960
  };
1961
- function zr(e) {
1962
- We.fn({ action: "add", data: e });
1963
- }
1964
1961
  function Ur(e) {
1965
1962
  We.fn({ action: "add", data: e });
1966
1963
  }
1967
1964
  function Wr(e) {
1968
- We.fn({ action: "new", data: e });
1965
+ We.fn({ action: "add", data: e });
1969
1966
  }
1970
1967
  function Kr(e) {
1968
+ We.fn({ action: "new", data: e });
1969
+ }
1970
+ function Yr(e) {
1971
1971
  We.fn = e;
1972
1972
  }
1973
- function Yr() {
1974
- const [e, t] = g.useReducer(Zr, {
1973
+ function Hr() {
1974
+ const [e, t] = g.useReducer(zr, {
1975
1975
  open: !1,
1976
1976
  active: !1,
1977
1977
  news: [],
@@ -1979,7 +1979,7 @@ function Yr() {
1979
1979
  });
1980
1980
  pe.useListener("bell", async (s) => {
1981
1981
  console.log(s);
1982
- }), Kr(async (s) => {
1982
+ }), Yr(async (s) => {
1983
1983
  switch (console.log(s), s.action) {
1984
1984
  case "add":
1985
1985
  $e.push(s.data);
@@ -2044,11 +2044,11 @@ function Yr() {
2044
2044
  /* @__PURE__ */ a.jsx(
2045
2045
  "div",
2046
2046
  {
2047
- className: Gr.n,
2047
+ className: Zr.n,
2048
2048
  onClick: () => {
2049
2049
  t({ type: "open", open: !0 });
2050
2050
  },
2051
- children: e.active ? /* @__PURE__ */ a.jsx(Pr, {}) : /* @__PURE__ */ a.jsx($r, {})
2051
+ children: e.active ? /* @__PURE__ */ a.jsx(Or, {}) : /* @__PURE__ */ a.jsx(Pr, {})
2052
2052
  }
2053
2053
  ),
2054
2054
  e.open ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -2063,7 +2063,7 @@ function Yr() {
2063
2063
  ),
2064
2064
  /* @__PURE__ */ a.jsxs("div", { className: "notify-m", children: [
2065
2065
  /* @__PURE__ */ a.jsx("div", { className: "notify-l", children: e.news.map((s, r) => /* @__PURE__ */ a.jsx(
2066
- Hr,
2066
+ qr,
2067
2067
  {
2068
2068
  data: s,
2069
2069
  dispatch: t
@@ -2075,7 +2075,7 @@ function Yr() {
2075
2075
  ] }) : ""
2076
2076
  ] });
2077
2077
  }
2078
- const Hr = ({ data: e, dispatch: t }) => {
2078
+ const qr = ({ data: e, dispatch: t }) => {
2079
2079
  let n = async (s) => {
2080
2080
  console.log(s), t({ type: "hide", id: s.id });
2081
2081
  let r = await pe.Send({
@@ -2094,25 +2094,25 @@ const Hr = ({ data: e, dispatch: t }) => {
2094
2094
  ] }),
2095
2095
  /* @__PURE__ */ a.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => n(e), children: " " })
2096
2096
  ] });
2097
- }, qr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
2098
- function Vr(e) {
2097
+ }, Vr = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
2098
+ function Jr(e) {
2099
2099
  return new SharedWorker(
2100
- "data:text/javascript;base64," + qr,
2100
+ "data:text/javascript;base64," + Vr,
2101
2101
  {
2102
2102
  name: e == null ? void 0 : e.name
2103
2103
  }
2104
2104
  );
2105
2105
  }
2106
- function Jr(e) {
2106
+ function Xr(e) {
2107
2107
  let t = {}, n = {};
2108
2108
  e.data.forEach((r) => {
2109
2109
  t[r.id] = { s: r.v, n: r.a }, n[r.id] = r;
2110
2110
  });
2111
2111
  let s = { ...ge(), 901: t };
2112
- bn(n), Ze(s);
2112
+ Sn(n), Ze(s);
2113
2113
  }
2114
- function Xr() {
2115
- let e = Sn(), t = {};
2114
+ function Qr() {
2115
+ let e = En(), t = {};
2116
2116
  return Object.keys(e).forEach((n) => {
2117
2117
  t[e[n].id] = {}, t[e[n].id].name = e[n].a;
2118
2118
  }), t;
@@ -2127,10 +2127,10 @@ let de = {}, X = {}, Je = [
2127
2127
  "info",
2128
2128
  "job"
2129
2129
  ];
2130
- function Qr() {
2130
+ function ei() {
2131
2131
  const [e, t] = g.useState(!1), [n, s] = g.useState(!1);
2132
2132
  function r(i) {
2133
- const o = new Vr();
2133
+ const o = new Jr();
2134
2134
  de.laodData = (l) => {
2135
2135
  let c = Je.indexOf(l);
2136
2136
  c >= 0 && Je.splice(c, 1), Je.length === 0 && t(!0);
@@ -2154,11 +2154,11 @@ function Qr() {
2154
2154
  X.module = (e) => {
2155
2155
  de[e.listen] !== void 0 && (de[e.listen](e), delete de[e.listen]);
2156
2156
  };
2157
- X.bell = Wr;
2158
- X.company = Jr;
2157
+ X.bell = Kr;
2158
+ X.company = Xr;
2159
2159
  X.info = (e) => {
2160
2160
  let t = {};
2161
- 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"), En(t), kn(e.data.menu);
2161
+ 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"), Rn(t), wn(e.data.menu);
2162
2162
  };
2163
2163
  X.version = async (e) => {
2164
2164
  st.version.Server(e.data);
@@ -2224,16 +2224,16 @@ X.job = (e) => {
2224
2224
  }), t[1] = n, Ze(t);
2225
2225
  };
2226
2226
  X.setting = (e) => {
2227
- os(e.data);
2227
+ ls(e.data);
2228
2228
  };
2229
2229
  X.app = () => {
2230
2230
  };
2231
- const ei = (e, t) => {
2231
+ const ti = (e, t) => {
2232
2232
  de[e] = t;
2233
- }, ti = (e, t) => {
2233
+ }, ni = (e, t) => {
2234
2234
  de[e](t);
2235
2235
  };
2236
- function ni(e) {
2236
+ function ai(e) {
2237
2237
  let t = "_" + String(Math.random()).substring(2, 7);
2238
2238
  return new Promise((n) => {
2239
2239
  de[t] = (s) => {
@@ -2241,46 +2241,46 @@ function ni(e) {
2241
2241
  }, e = { ...e, listen: t }, e.type = "modules", de.send(e);
2242
2242
  });
2243
2243
  }
2244
- const pe = { useConnect: Qr, useListener: ei, setListener: ti, Send: ni };
2245
- function ai({ children: e }) {
2244
+ const pe = { useConnect: ei, useListener: ti, setListener: ni, Send: ai };
2245
+ function si({ children: e }) {
2246
2246
  return /* @__PURE__ */ a.jsx("div", { className: "l", children: /* @__PURE__ */ a.jsx("ul", { children: e }) });
2247
2247
  }
2248
- const si = "_white_swayt_14", ri = "_black_swayt_26", ii = "_shake_swayt_1", oi = "_modal_swayt_73", li = "_o_swayt_83", ci = "_w_swayt_14", di = "_h_swayt_107", _i = "_l_swayt_121", ui = "_t_swayt_159", fi = "_m_swayt_73", mi = "_x_swayt_167", hi = "_s_swayt_177", gi = "_c_swayt_182", pi = "_f_swayt_187", xi = "_g_swayt_230", vi = "_active_swayt_348", Ci = "_coincidence_swayt_354", yi = "_sa_swayt_390", ji = "_ss_swayt_394", ki = "_sm_swayt_398", wi = "_sl_swayt_402", bi = "_sx_swayt_406", Si = "_sf_swayt_410", Ei = "_btn_swayt_416", se = {
2249
- white: si,
2250
- black: ri,
2251
- shake: ii,
2252
- modal: oi,
2253
- o: li,
2254
- w: ci,
2255
- h: di,
2256
- l: _i,
2257
- t: ui,
2258
- m: fi,
2259
- x: mi,
2260
- s: hi,
2261
- c: gi,
2262
- f: pi,
2263
- g: xi,
2248
+ const ri = "_white_swayt_14", ii = "_black_swayt_26", oi = "_shake_swayt_1", li = "_modal_swayt_73", ci = "_o_swayt_83", di = "_w_swayt_14", _i = "_h_swayt_107", ui = "_l_swayt_121", fi = "_t_swayt_159", mi = "_m_swayt_73", hi = "_x_swayt_167", gi = "_s_swayt_177", pi = "_c_swayt_182", xi = "_f_swayt_187", vi = "_g_swayt_230", Ci = "_active_swayt_348", yi = "_coincidence_swayt_354", ji = "_sa_swayt_390", ki = "_ss_swayt_394", wi = "_sm_swayt_398", bi = "_sl_swayt_402", Si = "_sx_swayt_406", Ei = "_sf_swayt_410", Ri = "_btn_swayt_416", se = {
2249
+ white: ri,
2250
+ black: ii,
2251
+ shake: oi,
2252
+ modal: li,
2253
+ o: ci,
2254
+ w: di,
2255
+ h: _i,
2256
+ l: ui,
2257
+ t: fi,
2258
+ m: mi,
2259
+ x: hi,
2260
+ s: gi,
2261
+ c: pi,
2262
+ f: xi,
2263
+ g: vi,
2264
2264
  "size-a": "_size-a_swayt_279",
2265
2265
  "size-s": "_size-s_swayt_283",
2266
2266
  "size-m": "_size-m_swayt_287",
2267
2267
  "size-l": "_size-l_swayt_291",
2268
2268
  "size-x": "_size-x_swayt_295",
2269
2269
  "size-f": "_size-f_swayt_299",
2270
- active: vi,
2271
- coincidence: Ci,
2272
- sa: yi,
2273
- ss: ji,
2274
- sm: ki,
2275
- sl: wi,
2276
- sx: bi,
2277
- sf: Si,
2278
- btn: Ei
2270
+ active: Ci,
2271
+ coincidence: yi,
2272
+ sa: ji,
2273
+ ss: ki,
2274
+ sm: wi,
2275
+ sl: bi,
2276
+ sx: Si,
2277
+ sf: Ei,
2278
+ btn: Ri
2279
2279
  };
2280
- function Ri({ children: e }) {
2280
+ function Di({ children: e }) {
2281
2281
  return /* @__PURE__ */ a.jsx("div", { className: se.s, children: e });
2282
2282
  }
2283
- function Di({ children: e, className: t }) {
2283
+ function Ni({ children: e, className: t }) {
2284
2284
  let n = {};
2285
2285
  return t && (n.className = t), /* @__PURE__ */ a.jsx(
2286
2286
  "div",
@@ -2294,16 +2294,16 @@ function Di({ children: e, className: t }) {
2294
2294
  function Ii({ children: e }) {
2295
2295
  return /* @__PURE__ */ a.jsx("div", { className: se.c, children: e });
2296
2296
  }
2297
- const Ni = "_btn_1d6a6_6", Ti = "_confirm_1d6a6_20", Mi = "_cancel_1d6a6_25", Li = "_disabled_1d6a6_30", Fi = "_m_1d6a6_44", Bi = "_l_1d6a6_48", Xe = {
2298
- btn: Ni,
2299
- confirm: Ti,
2300
- cancel: Mi,
2301
- disabled: Li,
2297
+ const Ti = "_btn_1d6a6_6", Mi = "_confirm_1d6a6_20", Li = "_cancel_1d6a6_25", Fi = "_disabled_1d6a6_30", Bi = "_m_1d6a6_44", $i = "_l_1d6a6_48", Xe = {
2298
+ btn: Ti,
2299
+ confirm: Mi,
2300
+ cancel: Li,
2301
+ disabled: Fi,
2302
2302
  await: "_await_1d6a6_37",
2303
- m: Fi,
2304
- l: Bi
2303
+ m: Bi,
2304
+ l: $i
2305
2305
  };
2306
- function $i({
2306
+ function Pi({
2307
2307
  onClick: e,
2308
2308
  onSend: t,
2309
2309
  size: n = "m",
@@ -2334,7 +2334,7 @@ function $i({
2334
2334
  );
2335
2335
  }
2336
2336
  let nt = {};
2337
- function Pi() {
2337
+ function Oi() {
2338
2338
  let [e, t] = g.useState([]);
2339
2339
  return nt.x = (n) => {
2340
2340
  n || t([]);
@@ -2342,7 +2342,7 @@ function Pi() {
2342
2342
  t([...e, n]);
2343
2343
  }, /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
2344
2344
  }
2345
- function Oi({
2345
+ function Ai({
2346
2346
  title: e,
2347
2347
  children: t,
2348
2348
  button: n,
@@ -2413,7 +2413,7 @@ function Oi({
2413
2413
  ] }),
2414
2414
  t,
2415
2415
  n !== void 0 ? /* @__PURE__ */ a.jsx(
2416
- $i,
2416
+ Pi,
2417
2417
  {
2418
2418
  label: n.label,
2419
2419
  onSend: _,
@@ -2427,48 +2427,48 @@ function Oi({
2427
2427
  }
2428
2428
  ) : "" });
2429
2429
  }
2430
- function Ai(e) {
2431
- nt.add(/* @__PURE__ */ a.jsx(Gi, { children: e }, String(Date.now())));
2430
+ function Gi(e) {
2431
+ nt.add(/* @__PURE__ */ a.jsx(Zi, { children: e }, String(Date.now())));
2432
2432
  }
2433
- function Gi({ children: e }) {
2433
+ function Zi({ children: e }) {
2434
2434
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
2435
2435
  }
2436
- function Zi(e) {
2436
+ function zi(e) {
2437
2437
  if (e.target.classList[0] !== "modal") return;
2438
2438
  let t = e.target.children[0];
2439
2439
  t.setAttribute("shake", !0), setTimeout(() => {
2440
2440
  t.setAttribute("shake", !1);
2441
2441
  }, 1e3);
2442
2442
  }
2443
- function zi({ type: e, name: t, params: n }) {
2443
+ function Ui({ type: e, name: t, params: n }) {
2444
2444
  let [s, r] = g.useState(null);
2445
2445
  return g.useEffect(() => {
2446
- Nt(`${e}/modal/${t}.tsx`).then((i) => {
2446
+ It(`${e}/modal/${t}.tsx`).then((i) => {
2447
2447
  r(i.default.Icon(n));
2448
2448
  });
2449
2449
  }, [n.id]), /* @__PURE__ */ a.jsx(a.Fragment, { children: s });
2450
2450
  }
2451
- function Ui(e, t, n) {
2452
- Nt(`${e}/modal/${t}.tsx`).then((s) => {
2451
+ function Wi(e, t, n) {
2452
+ It(`${e}/modal/${t}.tsx`).then((s) => {
2453
2453
  s.default.Open(n);
2454
2454
  });
2455
2455
  }
2456
- function Wi(e) {
2456
+ function Ki(e) {
2457
2457
  nt.x(e);
2458
2458
  }
2459
2459
  const rt = {
2460
- List: ai,
2461
- Scroll: Ri,
2462
- Main: Oi,
2463
- Add: Ai,
2464
- Icon: zi,
2465
- Open: Ui,
2466
- Shake: Zi,
2467
- Form: Di,
2460
+ List: si,
2461
+ Scroll: Di,
2462
+ Main: Ai,
2463
+ Add: Gi,
2464
+ Icon: Ui,
2465
+ Open: Wi,
2466
+ Shake: zi,
2467
+ Form: Ni,
2468
2468
  Center: Ii,
2469
- Close: Wi
2469
+ Close: Ki
2470
2470
  };
2471
- function Nn({ text: e, type: t, button: n }) {
2471
+ function Tn({ text: e, type: t, button: n }) {
2472
2472
  let [s, r] = g.useState(!1), i = { active: t };
2473
2473
  const o = () => {
2474
2474
  if (n) {
@@ -2500,54 +2500,54 @@ function Nn({ text: e, type: t, button: n }) {
2500
2500
  n && /* @__PURE__ */ a.jsx("button", { onClick: o, children: n.label })
2501
2501
  ] });
2502
2502
  }
2503
- const Ki = "_h_1usnu_1", Yi = "_g_1usnu_11", Hi = "_hr_1usnu_16", qi = "_hl_1usnu_28", Vi = "_t_1usnu_40", Ji = "_s_1usnu_60", Xi = "_u_1usnu_69", Qi = "_o_1usnu_76", eo = "_l_1usnu_105", to = "_hh_1usnu_115", no = "_c_1usnu_128", ao = "_loadingB_1usnu_1", so = "_m_1usnu_180", ro = "_ul_1usnu_196", io = "_f_1usnu_226", ne = {
2504
- h: Ki,
2505
- g: Yi,
2506
- hr: Hi,
2507
- hl: qi,
2508
- t: Vi,
2509
- s: Ji,
2510
- u: Xi,
2511
- o: Qi,
2512
- l: eo,
2513
- hh: to,
2514
- c: no,
2515
- loadingB: ao,
2516
- m: so,
2517
- ul: ro,
2518
- f: io
2519
- }, dn = ({ title: e, left: t, right: n, children: s }) => /* @__PURE__ */ a.jsxs("div", { className: ne.h, children: [
2503
+ const Yi = "_h_1usnu_1", Hi = "_g_1usnu_11", qi = "_hr_1usnu_16", Vi = "_hl_1usnu_28", Ji = "_t_1usnu_40", Xi = "_s_1usnu_60", Qi = "_u_1usnu_69", eo = "_o_1usnu_76", to = "_l_1usnu_105", no = "_hh_1usnu_115", ao = "_c_1usnu_128", so = "_loadingB_1usnu_1", ro = "_m_1usnu_180", io = "_ul_1usnu_196", oo = "_f_1usnu_226", ne = {
2504
+ h: Yi,
2505
+ g: Hi,
2506
+ hr: qi,
2507
+ hl: Vi,
2508
+ t: Ji,
2509
+ s: Xi,
2510
+ u: Qi,
2511
+ o: eo,
2512
+ l: to,
2513
+ hh: no,
2514
+ c: ao,
2515
+ loadingB: so,
2516
+ m: ro,
2517
+ ul: io,
2518
+ f: oo
2519
+ }, _n = ({ title: e, left: t, right: n, children: s }) => /* @__PURE__ */ a.jsxs("div", { className: ne.h, children: [
2520
2520
  /* @__PURE__ */ a.jsx("div", { className: ne.t, children: e }),
2521
2521
  t && /* @__PURE__ */ a.jsx("div", { className: ne.hl, children: t }),
2522
2522
  n && /* @__PURE__ */ a.jsx("div", { className: ne.hr, children: n }),
2523
2523
  s
2524
- ] }), _n = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: ne.l, children: e }), un = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ne.s, children: e }), fn = ({ children: e, edit: t }) => {
2524
+ ] }), un = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("div", { className: ne.l, children: e }), fn = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ne.s, children: e }), mn = ({ children: e, edit: t }) => {
2525
2525
  const n = {};
2526
2526
  return t && (n.edit = ""), console.log(n), /* @__PURE__ */ a.jsx("div", { ...n, className: ne.f, children: e });
2527
2527
  };
2528
- function mn({ children: e }) {
2528
+ function hn({ children: e }) {
2529
2529
  return /* @__PURE__ */ a.jsx("div", { className: ne.g, children: e });
2530
2530
  }
2531
- const oo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [ne.o, t].join(" "), children: [
2531
+ const lo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("div", { className: [ne.o, t].join(" "), children: [
2532
2532
  n && /* @__PURE__ */ a.jsx("div", { className: ne.hh, children: n }),
2533
2533
  e
2534
- ] }), lo = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ne.u, children: e }), co = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ne.c, children: e }), _o = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ne.m, children: e }), hn = {
2535
- Header: dn,
2536
- Section: un,
2537
- Group: mn,
2538
- Form: fn,
2539
- List: _n,
2540
- A: Nn,
2541
- U: lo,
2542
- G: mn,
2543
- C: co,
2544
- L: _n,
2545
- O: oo,
2546
- S: un,
2547
- H: dn,
2548
- M: _o,
2549
- F: fn
2550
- }, uo = (e, t) => {
2534
+ ] }), co = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ne.u, children: e }), _o = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ne.c, children: e }), uo = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: ne.m, children: e }), gn = {
2535
+ Header: _n,
2536
+ Section: fn,
2537
+ Group: hn,
2538
+ Form: mn,
2539
+ List: un,
2540
+ A: Tn,
2541
+ U: co,
2542
+ G: hn,
2543
+ C: _o,
2544
+ L: un,
2545
+ O: lo,
2546
+ S: fn,
2547
+ H: _n,
2548
+ M: uo,
2549
+ F: mn
2550
+ }, fo = (e, t) => {
2551
2551
  switch (t.type) {
2552
2552
  case "load":
2553
2553
  return {
@@ -2608,14 +2608,14 @@ const oo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2608
2608
  default:
2609
2609
  return e;
2610
2610
  }
2611
- }, fo = () => ({
2611
+ }, mo = () => ({
2612
2612
  load: !0,
2613
2613
  list: [],
2614
2614
  name: "Файлы",
2615
2615
  add: !1,
2616
2616
  search: !1,
2617
2617
  revers: !0
2618
- }), mo = () => {
2618
+ }), ho = () => {
2619
2619
  let [e, t] = g.useState([]);
2620
2620
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsxs("div", { className: "upload view", children: [
2621
2621
  /* @__PURE__ */ a.jsxs("div", { className: "--head", children: [
@@ -2631,19 +2631,19 @@ const oo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2631
2631
  ] }),
2632
2632
  /* @__PURE__ */ a.jsx("div", { className: "--list", children: e.map((n) => n) })
2633
2633
  ] }) : "" });
2634
- }, ho = ({
2634
+ }, go = ({
2635
2635
  id: e,
2636
2636
  name: t,
2637
2637
  listen: n,
2638
2638
  dir: s
2639
2639
  }) => {
2640
2640
  t = t || "Файлы";
2641
- const [r, i] = g.useReducer(uo, {}, fo);
2641
+ const [r, i] = g.useReducer(fo, {}, mo);
2642
2642
  console.log(n);
2643
2643
  const o = () => {
2644
2644
  rt.Add(
2645
2645
  /* @__PURE__ */ a.jsx(
2646
- go,
2646
+ po,
2647
2647
  {
2648
2648
  dir: s,
2649
2649
  dispatch: i,
@@ -2663,10 +2663,10 @@ const oo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2663
2663
  });
2664
2664
  i({ type: "load", list: l });
2665
2665
  })();
2666
- }, [e, s]), /* @__PURE__ */ a.jsxs(hn.O, { children: [
2666
+ }, [e, s]), /* @__PURE__ */ a.jsxs(gn.O, { children: [
2667
2667
  " ",
2668
2668
  /* @__PURE__ */ a.jsx(
2669
- hn.H,
2669
+ gn.H,
2670
2670
  {
2671
2671
  title: t,
2672
2672
  right: /* @__PURE__ */ a.jsx(
@@ -2692,9 +2692,9 @@ const oo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2692
2692
  /* @__PURE__ */ a.jsx("i", {}),
2693
2693
  /* @__PURE__ */ a.jsx("i", {}),
2694
2694
  /* @__PURE__ */ a.jsx("i", {})
2695
- ] }) : r.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : r.list.map((l, c) => /* @__PURE__ */ a.jsx(po, { dispatch: i, data: l }, c)) })
2695
+ ] }) : r.list.length === 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : r.list.map((l, c) => /* @__PURE__ */ a.jsx(xo, { dispatch: i, data: l }, c)) })
2696
2696
  ] });
2697
- }, go = ({ id: e, dir: t, dispatch: n }) => {
2697
+ }, po = ({ id: e, dir: t, dispatch: n }) => {
2698
2698
  let [s, r] = g.useState(!0), i = g.useRef(null), o = (_) => {
2699
2699
  _.preventDefault(), _.stopPropagation();
2700
2700
  }, l = (_) => {
@@ -2743,9 +2743,9 @@ const oo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2743
2743
  },
2744
2744
  (/* @__PURE__ */ new Date()).getTime()
2745
2745
  ) }) : "" });
2746
- }, po = ({ data: e, dispatch: t }) => {
2746
+ }, xo = ({ data: e, dispatch: t }) => {
2747
2747
  let n = async () => {
2748
- let i = await (await fetch(on.url().files + "/yandex/data/" + e.id, {
2748
+ let i = await (await fetch(ln.url().files + "/yandex/data/" + e.id, {
2749
2749
  headers: {
2750
2750
  "Content-type": "application/json;charset=utf-8",
2751
2751
  SSID: re.getSSID() || ""
@@ -2758,12 +2758,12 @@ const oo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2758
2758
  l.setAttribute("href", o), l.setAttribute("download", e.name), l.click();
2759
2759
  }
2760
2760
  }, s = async () => {
2761
- (await (await fetch(on.url().files + "/yandex/delete/" + e.id, {
2761
+ (await (await fetch(ln.url().files + "/yandex/delete/" + e.id, {
2762
2762
  headers: {
2763
2763
  "Content-type": "application/json;charset=utf-8",
2764
2764
  SSID: re.getSSID() || ""
2765
2765
  }
2766
- })).json()).status === "success" && (t({ type: "delete", id: e.id }), Ie.Send({ type: "success", text: "Файл успешно удалён" }));
2766
+ })).json()).status === "success" && (t({ type: "delete", id: e.id }), Ne.Send({ type: "success", text: "Файл успешно удалён" }));
2767
2767
  };
2768
2768
  return /* @__PURE__ */ a.jsxs("li", { children: [
2769
2769
  /* @__PURE__ */ a.jsx("div", { className: "f035", children: K.TypeFiles(e.type) }),
@@ -2791,11 +2791,11 @@ const oo = ({ children: e, className: t, title: n }) => /* @__PURE__ */ a.jsxs("
2791
2791
  ] }),
2792
2792
  /* @__PURE__ */ a.jsx("div", { className: "f080", children: K.Size(e.size) })
2793
2793
  ] });
2794
- }, Mt = { setSetting: ls, getSetting: cs };
2794
+ }, Mt = { setSetting: cs, getSetting: ds };
2795
2795
  let Y = {};
2796
- Y.list = xs();
2796
+ Y.list = vs();
2797
2797
  Y.active = null;
2798
- const xo = () => {
2798
+ const vo = () => {
2799
2799
  var r;
2800
2800
  let [e, t] = g.useState([]), [n, s] = g.useState(Mt.getSetting("s03"));
2801
2801
  return g.useEffect(() => {
@@ -2833,7 +2833,7 @@ const xo = () => {
2833
2833
  "bookmarks",
2834
2834
  n === 1 && e.length !== 0 ? "bottom" : ""
2835
2835
  ), n !== 0 ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.length !== 0 ? /* @__PURE__ */ a.jsx("div", { className: "bookmarks", children: e.map((i) => i.item) }) : "" }) : "";
2836
- }, vo = ({ id: e, type: t, name: n }) => {
2836
+ }, Co = ({ id: e, type: t, name: n }) => {
2837
2837
  let s = t + "-" + e, [r, i] = g.useState(
2838
2838
  Y.list[s] !== void 0
2839
2839
  );
@@ -2841,7 +2841,7 @@ const xo = () => {
2841
2841
  i(Y.list[s] !== void 0);
2842
2842
  }, [s]);
2843
2843
  let o = () => {
2844
- Y.list[s] !== void 0 ? (Y.del(s), delete Y.list[s], sn(Y.list), i(!1), Ie.Send({ type: "success", text: "Запись удален из закладок" })) : (Y.list[s] = { id: e, name: n, type: t, link: s }, Y.set(Y.list[s]), sn(Y.list), i(!0), Ie.Send({
2844
+ Y.list[s] !== void 0 ? (Y.del(s), delete Y.list[s], rn(Y.list), i(!1), Ne.Send({ type: "success", text: "Запись удален из закладок" })) : (Y.list[s] = { id: e, name: n, type: t, link: s }, Y.set(Y.list[s]), rn(Y.list), i(!0), Ne.Send({
2845
2845
  type: "success",
2846
2846
  text: "Запись добавлен в закладки"
2847
2847
  }));
@@ -2861,7 +2861,7 @@ const xo = () => {
2861
2861
  Pe.setId(e.id);
2862
2862
  };
2863
2863
  return /* @__PURE__ */ a.jsx("span", { onContextMenu: t, onClick: n, children: e.name });
2864
- }, Co = (e) => {
2864
+ }, yo = (e) => {
2865
2865
  Y.active(e);
2866
2866
  }, U = {}, wt = {}, E = {};
2867
2867
  E.config = { iceServers: [{ url: "stun:stun.l.google.com:19302" }] };
@@ -3018,7 +3018,7 @@ U.Run = async (e) => {
3018
3018
  U[e.data.type] && U[e.data.type](e.data);
3019
3019
  };
3020
3020
  let Oe = {};
3021
- function yo() {
3021
+ function jo() {
3022
3022
  let [e, t] = g.useState([]), n = g.useRef(null);
3023
3023
  return g.useEffect(() => {
3024
3024
  }, []), Oe.set = (s) => {
@@ -3032,14 +3032,14 @@ function yo() {
3032
3032
  /* @__PURE__ */ a.jsx("audio", { id: "audio", ref: n, autoPlay: !0, muted: !0 })
3033
3033
  ] });
3034
3034
  }
3035
- function jo(e, t) {
3035
+ function ko(e, t) {
3036
3036
  let n = (/* @__PURE__ */ new Date()).getTime();
3037
3037
  Oe.set({
3038
- item: /* @__PURE__ */ a.jsx(ko, { type: t, id: e }, n),
3038
+ item: /* @__PURE__ */ a.jsx(wo, { type: t, id: e }, n),
3039
3039
  key: n
3040
3040
  });
3041
3041
  }
3042
- function ko({ id: e, type: t }) {
3042
+ function wo({ id: e, type: t }) {
3043
3043
  const [n, s] = g.useState({}), [r, i] = g.useState(t);
3044
3044
  console.log(r), g.useEffect(() => {
3045
3045
  s(re.getSelect("user")[e]);
@@ -3140,13 +3140,13 @@ function ko({ id: e, type: t }) {
3140
3140
  ] }) });
3141
3141
  }
3142
3142
  const bt = {};
3143
- function wo(e) {
3143
+ function bo(e) {
3144
3144
  bt.add(e);
3145
3145
  }
3146
- function bo({ color: e, size: t, name: n }) {
3146
+ function So({ color: e, size: t, name: n }) {
3147
3147
  return /* @__PURE__ */ a.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ a.jsx("use", { href: `#${n}` }) });
3148
3148
  }
3149
- function So() {
3149
+ function Eo() {
3150
3150
  let [e, t] = g.useState([]);
3151
3151
  if (bt.x = () => {
3152
3152
  t([]);
@@ -3166,78 +3166,78 @@ function So() {
3166
3166
  r
3167
3167
  )) });
3168
3168
  }
3169
- let Qe = {}, Tn = {};
3170
- const Eo = (e) => {
3171
- Tn = e;
3172
- }, Mn = Ma(
3169
+ let Qe = {}, Mn = {}, Lt = "";
3170
+ const Ro = (e) => {
3171
+ Mn = e;
3172
+ }, Ln = La(
3173
3173
  localStorage.getItem("lang") || navigator.language
3174
- ), Ro = ({ children: e }) => {
3174
+ ), Do = ({ children: e }) => {
3175
3175
  const [t, n] = g.useState(
3176
3176
  localStorage.getItem("lang") || navigator.language
3177
3177
  );
3178
- return Qe.update = n, /* @__PURE__ */ a.jsx(Mn.Provider, { value: Tn[t], children: e });
3179
- }, Do = (e) => {
3178
+ return Lt = t, Qe.update = n, /* @__PURE__ */ a.jsx(Ln.Provider, { value: Mn[t], children: e });
3179
+ }, No = (e) => {
3180
3180
  var t;
3181
- localStorage.setItem("lang", e), (t = Qe.update) == null || t.call(Qe, e);
3182
- }, Io = () => La(Mn), No = localStorage.getItem("lang") || navigator.language, St = {};
3183
- function To(e, t) {
3181
+ localStorage.setItem("lang", e), Lt = e, (t = Qe.update) == null || t.call(Qe, e);
3182
+ }, Io = () => Fa(Ln), To = Lt, St = {};
3183
+ function Mo(e, t) {
3184
3184
  St[e] = t;
3185
3185
  }
3186
- function Mo(e, t) {
3186
+ function Lo(e, t) {
3187
3187
  St[e] !== void 0 && St[e](t);
3188
3188
  }
3189
3189
  const ve = {};
3190
- function Lo(e, t) {
3190
+ function Fo(e, t) {
3191
3191
  const [n, s] = g.useState(t);
3192
3192
  return g.useEffect(() => {
3193
3193
  if (ve[e]) return ve[e].push(s);
3194
3194
  ve[e] = [s];
3195
3195
  }, []), [n];
3196
3196
  }
3197
- function Fo(e, t) {
3197
+ function Bo(e, t) {
3198
3198
  if (ve[e]) return ve[e].push(t);
3199
3199
  ve[e] = [t];
3200
3200
  }
3201
- function Bo(e, t) {
3201
+ function $o(e, t) {
3202
3202
  ve[e] && ve[e].forEach((n) => n(t));
3203
3203
  }
3204
- const be = { setListener: Mo, useListener: To, setEmitter: Bo, useEmitter: Lo, subEmitter: Fo };
3205
- function $o() {
3204
+ const be = { setListener: Lo, useListener: Mo, setEmitter: $o, useEmitter: Fo, subEmitter: Bo };
3205
+ function Po() {
3206
3206
  let [e, t] = g.useState([]);
3207
3207
  return be.useListener("form", (n) => {
3208
3208
  t([n]);
3209
3209
  }), /* @__PURE__ */ a.jsx(a.Fragment, { children: e.map((n) => n) });
3210
3210
  }
3211
- const Po = ({ children: e, lang: t }) => Aa(
3212
- /* @__PURE__ */ a.jsxs(Ro, { children: [
3213
- /* @__PURE__ */ a.jsx(Pi, {}),
3214
- /* @__PURE__ */ a.jsx(kr, {}),
3215
- /* @__PURE__ */ a.jsx(Lr, {}),
3216
- /* @__PURE__ */ a.jsx(mo, {}),
3217
- /* @__PURE__ */ a.jsx(So, {}),
3218
- /* @__PURE__ */ a.jsx($o, {}),
3219
- /* @__PURE__ */ a.jsx(yo, {}),
3220
- /* @__PURE__ */ a.jsx(xo, {}),
3211
+ const Oo = ({ children: e, lang: t }) => Ga(
3212
+ /* @__PURE__ */ a.jsxs(Do, { children: [
3213
+ /* @__PURE__ */ a.jsx(Oi, {}),
3214
+ /* @__PURE__ */ a.jsx(wr, {}),
3215
+ /* @__PURE__ */ a.jsx(Fr, {}),
3216
+ /* @__PURE__ */ a.jsx(ho, {}),
3217
+ /* @__PURE__ */ a.jsx(Eo, {}),
3218
+ /* @__PURE__ */ a.jsx(Po, {}),
3219
+ /* @__PURE__ */ a.jsx(jo, {}),
3220
+ /* @__PURE__ */ a.jsx(vo, {}),
3221
3221
  e
3222
3222
  ] })
3223
- ), Oo = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Ao = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
3223
+ ), Ao = ({ children: e, ...t }) => /* @__PURE__ */ a.jsx("menu", { children: e }), Go = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("header", { children: [
3224
3224
  "xz",
3225
3225
  e
3226
- ] }), Go = "_payment_1lxfv_1", Zo = {
3227
- payment: Go
3226
+ ] }), Zo = "_payment_1lxfv_1", zo = {
3227
+ payment: Zo
3228
3228
  };
3229
- function zo() {
3229
+ function Uo() {
3230
3230
  let [e, t] = g.useState({});
3231
- return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: Zo.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
3231
+ return !e.active && !e.payment ? "" : /* @__PURE__ */ a.jsx("div", { className: zo.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
3232
3232
  }
3233
- const Fc = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
3234
- /* @__PURE__ */ a.jsx(zo, {}),
3235
- /* @__PURE__ */ a.jsx(Oo, {}),
3233
+ const Bc = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className: "app", children: [
3234
+ /* @__PURE__ */ a.jsx(Uo, {}),
3236
3235
  /* @__PURE__ */ a.jsx(Ao, {}),
3237
- /* @__PURE__ */ a.jsx(Po, {}),
3236
+ /* @__PURE__ */ a.jsx(Go, {}),
3237
+ /* @__PURE__ */ a.jsx(Oo, {}),
3238
3238
  e
3239
- ] }), Uo = ({ list: e, onClick: t, active: n, size: s, view: r }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, r].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
3240
- Wo,
3239
+ ] }), Wo = ({ list: e, onClick: t, active: n, size: s, view: r }) => /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, r].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
3240
+ Ko,
3241
3241
  {
3242
3242
  onClick: t,
3243
3243
  active: n,
@@ -3245,9 +3245,9 @@ const Fc = ({ children: e, ...t }) => /* @__PURE__ */ a.jsxs("div", { className:
3245
3245
  link: i.link
3246
3246
  },
3247
3247
  i.link
3248
- )) }) }), Wo = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
3249
- Uo.defaultProps = { size: "M", view: "H" };
3250
- const Ko = ({
3248
+ )) }) }), Ko = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
3249
+ Wo.defaultProps = { size: "M", view: "H" };
3250
+ const Yo = ({
3251
3251
  title: e = "",
3252
3252
  button: t,
3253
3253
  description: n = "",
@@ -3267,9 +3267,9 @@ const Ko = ({
3267
3267
  ] }),
3268
3268
  /* @__PURE__ */ a.jsx("ul", { children: s }),
3269
3269
  n && /* @__PURE__ */ a.jsx("article", { children: n })
3270
- ] }), Yo = "_setting_dva4m_2", Ho = {
3271
- setting: Yo
3272
- }, qo = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: Ho.setting, children: e }), Vo = ({ label: e, children: t }) => {
3270
+ ] }), Ho = "_setting_dva4m_2", qo = {
3271
+ setting: Ho
3272
+ }, Vo = ({ children: e }) => /* @__PURE__ */ a.jsx("div", { className: qo.setting, children: e }), Jo = ({ label: e, children: t }) => {
3273
3273
  let [n, s] = g.useState(!1);
3274
3274
  return /* @__PURE__ */ a.jsxs("li", { "data-item": "accordion", children: [
3275
3275
  /* @__PURE__ */ a.jsxs("dl", { onClick: () => s(!n), children: [
@@ -3278,10 +3278,10 @@ const Ko = ({
3278
3278
  ] }),
3279
3279
  n && /* @__PURE__ */ a.jsx("div", { children: t })
3280
3280
  ] });
3281
- }, Jo = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3281
+ }, Xo = ({ label: e, onClick: t, button: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3282
3282
  /* @__PURE__ */ a.jsx("dt", { children: e }),
3283
3283
  /* @__PURE__ */ a.jsx("dd", { role: "button", onClick: () => t(), children: n })
3284
- ] }) }), Xo = ({ active: e, onClick: t }) => (console.log(e), e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
3284
+ ] }) }), Qo = ({ active: e, onClick: t }) => (console.log(e), e = typeof e == "number" ? !!e : e, /* @__PURE__ */ a.jsx(
3285
3285
  "div",
3286
3286
  {
3287
3287
  role: "switch",
@@ -3290,25 +3290,25 @@ const Ko = ({
3290
3290
  },
3291
3291
  "aria-checked": e ? "true" : "false"
3292
3292
  }
3293
- )), Qo = { Switch: Xo }, el = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3293
+ )), el = { Switch: Qo }, tl = ({ label: e, onClick: t, active: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3294
3294
  /* @__PURE__ */ a.jsx("dt", { children: e }),
3295
- /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(Qo.Switch, { onClick: t, active: n }) })
3296
- ] }) }), tl = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3295
+ /* @__PURE__ */ a.jsx("dd", { children: /* @__PURE__ */ a.jsx(el.Switch, { onClick: t, active: n }) })
3296
+ ] }) }), nl = ({ label: e, active: t, options: n }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3297
3297
  /* @__PURE__ */ a.jsx("dt", { children: e }),
3298
3298
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
3299
- ] }) }), nl = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3299
+ ] }) }), al = ({ label: e, info: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3300
3300
  /* @__PURE__ */ a.jsx("dt", { children: e }),
3301
3301
  /* @__PURE__ */ a.jsx("dd", { role: "info", children: t })
3302
- ] }) }), al = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3302
+ ] }) }), sl = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3303
3303
  /* @__PURE__ */ a.jsx("dt", { children: e }),
3304
3304
  /* @__PURE__ */ a.jsx("dd", { children: t })
3305
- ] }) }), sl = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3305
+ ] }) }), rl = ({ label: e, children: t }) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsxs("dl", { children: [
3306
3306
  /* @__PURE__ */ a.jsx("dt", { children: e }),
3307
3307
  /* @__PURE__ */ a.jsx("dd", { children: t })
3308
- ] }) }), rl = { Accordion: Vo, Button: Jo, Switch: el, Info: nl, Select: tl, Component: al, Node: sl };
3309
- function Ln({ list: e, onClick: t, active: n, size: s, view: r }) {
3308
+ ] }) }), il = { Accordion: Jo, Button: Xo, Switch: tl, Info: al, Select: nl, Component: sl, Node: rl };
3309
+ function Fn({ list: e, onClick: t, active: n, size: s, view: r }) {
3310
3310
  return /* @__PURE__ */ a.jsx("nav", { children: /* @__PURE__ */ a.jsx("ul", { className: [s, r].join(" "), children: e.map((i) => /* @__PURE__ */ a.jsx(
3311
- il,
3311
+ ol,
3312
3312
  {
3313
3313
  onClick: t,
3314
3314
  active: n,
@@ -3318,10 +3318,10 @@ function Ln({ list: e, onClick: t, active: n, size: s, view: r }) {
3318
3318
  i.link
3319
3319
  )) }) });
3320
3320
  }
3321
- const il = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
3322
- Ln.defaultProps = { size: "M", view: "H" };
3323
- const Bc = { Section: Ko, Main: qo, Item: rl, Tabs: Ln }, $c = { Icon: vo, Item: kt, Active: Co }, Pc = { Send: Br, Line: Nn };
3324
- function ol() {
3321
+ const ol = ({ onClick: e, label: t, link: n, active: s }) => /* @__PURE__ */ a.jsx("li", { "tabs-active": String(s === n), onClick: () => e(n), children: t });
3322
+ Fn.defaultProps = { size: "M", view: "H" };
3323
+ const $c = { Section: Yo, Main: Vo, Item: il, Tabs: Fn }, Pc = { Icon: Co, Item: kt, Active: yo }, Oc = { Send: $r, Line: Tn };
3324
+ function ll() {
3325
3325
  return /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ a.jsx(
3326
3326
  "path",
3327
3327
  {
@@ -3330,15 +3330,15 @@ function ol() {
3330
3330
  }
3331
3331
  ) });
3332
3332
  }
3333
- const Oc = { Logo: ol, Sprite: wo, Symbol: bo }, ll = "_sort_1yrvt_1", cl = {
3334
- sort: ll
3333
+ const Ac = { Logo: ll, Sprite: bo, Symbol: So }, cl = "_sort_1yrvt_1", dl = {
3334
+ sort: cl
3335
3335
  };
3336
3336
  let it = {};
3337
- function dl(e, t) {
3337
+ function _l(e, t) {
3338
3338
  switch (t.type) {
3339
3339
  case "active":
3340
3340
  let n = "<";
3341
- return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), it.get({ active: t.data, sort: n }, !1), wn({ active: t.data, sort: n }), {
3341
+ return e.active === t.data && (n = e.sort === "<" ? ">" : "<"), it.get({ active: t.data, sort: n }, !1), bn({ active: t.data, sort: n }), {
3342
3342
  ...e,
3343
3343
  active: t.data,
3344
3344
  sort: n
@@ -3347,12 +3347,12 @@ function dl(e, t) {
3347
3347
  throw new Error();
3348
3348
  }
3349
3349
  }
3350
- function _l() {
3350
+ function ul() {
3351
3351
  const [e, t] = g.useReducer(
3352
- dl,
3352
+ _l,
3353
3353
  Ct() === void 0 ? { active: 1, sort: "<" } : Ct()
3354
3354
  );
3355
- return /* @__PURE__ */ a.jsxs("div", { className: cl.sort, children: [
3355
+ return /* @__PURE__ */ a.jsxs("div", { className: dl.sort, children: [
3356
3356
  /* @__PURE__ */ a.jsx(
3357
3357
  "i",
3358
3358
  {
@@ -3379,13 +3379,13 @@ function _l() {
3379
3379
  )
3380
3380
  ] });
3381
3381
  }
3382
- function ul(e) {
3382
+ function fl(e) {
3383
3383
  it.get = e;
3384
3384
  }
3385
- function fl(e) {
3385
+ function ml(e) {
3386
3386
  it.set(e);
3387
3387
  }
3388
- function ml(e, t, n) {
3388
+ function hl(e, t, n) {
3389
3389
  let s = 1, r = 0, i = {}, o = 50;
3390
3390
  i[s] = [];
3391
3391
  let l = {}, c = "s1a";
@@ -3404,29 +3404,29 @@ function ml(e, t, n) {
3404
3404
  r++, r <= o || (s++, r = 1, i[s] = []), i[s].push(e[_.id]);
3405
3405
  }), { data: i };
3406
3406
  }
3407
- function hl(e) {
3407
+ function gl(e) {
3408
3408
  it.count(e);
3409
3409
  }
3410
- const Ac = { Init: _l, useValue: ul, Set: fl, Run: ml, Count: hl }, et = {}, Fn = {};
3411
- function gl(e) {
3410
+ const Gc = { Init: ul, useValue: fl, Set: ml, Run: hl, Count: gl }, et = {}, Bn = {};
3411
+ function pl(e) {
3412
3412
  const [t, n] = g.useState({}), s = async (r) => {
3413
3413
  n(
3414
3414
  Object.keys(et).reduce((i, o) => (i ? i[o] = et[o].all : i = {}, i), {})
3415
3415
  );
3416
3416
  };
3417
3417
  return g.useEffect(() => {
3418
- e.forEach((r) => et[r] = { all: 0 }), Fn.menu = s, s();
3418
+ e.forEach((r) => et[r] = { all: 0 }), Bn.menu = s, s();
3419
3419
  }, [e]), t;
3420
3420
  }
3421
- function pl(e, t) {
3421
+ function xl(e, t) {
3422
3422
  switch (typeof t) {
3423
3423
  case "number":
3424
- et[e].all += t, Fn.menu();
3424
+ et[e].all += t, Bn.menu();
3425
3425
  break;
3426
3426
  }
3427
3427
  }
3428
- const Gc = { useMenu: gl, setUpdate: pl };
3429
- class xl {
3428
+ const Zc = { useMenu: pl, setUpdate: xl };
3429
+ class vl {
3430
3430
  constructor(t = "el", n = "db") {
3431
3431
  gt(this, "storeName");
3432
3432
  gt(this, "_dbp");
@@ -3447,9 +3447,9 @@ class xl {
3447
3447
  }
3448
3448
  }
3449
3449
  let pt, q = {};
3450
- const Ne = () => (pt || (pt = new xl()), pt), ye = (e, t, n = Ne()) => n._withIDBStore("readwrite", (s) => {
3450
+ const Ie = () => (pt || (pt = new vl()), pt), ye = (e, t, n = Ie()) => n._withIDBStore("readwrite", (s) => {
3451
3451
  q[e] = t, s.put($.enCode(t), e);
3452
- }), me = (e, t = Ne()) => q[e] === void 0 ? new Promise((n, s) => {
3452
+ }), me = (e, t = Ie()) => q[e] === void 0 ? new Promise((n, s) => {
3453
3453
  let r;
3454
3454
  t._withIDBStore("readonly", (i) => {
3455
3455
  r = i.get(e);
@@ -3460,18 +3460,18 @@ const Ne = () => (pt || (pt = new xl()), pt), ye = (e, t, n = Ne()) => n._withID
3460
3460
  } else
3461
3461
  n({});
3462
3462
  });
3463
- }) : q[e], vl = (e, t = Ne()) => t._withIDBStore("readwrite", (n) => {
3463
+ }) : q[e], Cl = (e, t = Ie()) => t._withIDBStore("readwrite", (n) => {
3464
3464
  n.delete(e);
3465
- }), Et = (e = Ne()) => e._withIDBStore("readwrite", (t) => {
3465
+ }), Et = (e = Ie()) => e._withIDBStore("readwrite", (t) => {
3466
3466
  t.clear();
3467
- }), Cl = (e = Ne()) => {
3467
+ }), yl = (e = Ie()) => {
3468
3468
  const t = [];
3469
3469
  return e._withIDBStore("readonly", (n) => {
3470
3470
  (n.openKeyCursor || n.openCursor).call(n).onsuccess = function() {
3471
3471
  this.result && (t.push(this.result.key), this.result.continue());
3472
3472
  };
3473
3473
  }).then(() => t);
3474
- }, yl = (e, t, n = [], s = {}) => {
3474
+ }, jl = (e, t, n = [], s = {}) => {
3475
3475
  let r = n.length !== 0, i = [], o = s.sort, l = Object.keys(s).length !== 0, c = Object.keys(s), _ = Object.keys(e), u = [], m = (p) => {
3476
3476
  let C = "";
3477
3477
  if (n.forEach((h) => {
@@ -3493,7 +3493,7 @@ const Ne = () => (pt || (pt = new xl()), pt), ye = (e, t, n = Ne()) => n._withID
3493
3493
  }), u.forEach((p) => {
3494
3494
  p === void 0 ? (Et(), location.reload()) : (r && m(p.id), l && f(p.id));
3495
3495
  }), { list: u, search: i, filter: s };
3496
- }, jl = (e, t, n, s = Ne()) => {
3496
+ }, kl = (e, t, n, s = Ie()) => {
3497
3497
  if (q[e] === void 0)
3498
3498
  return new Promise((r, i) => {
3499
3499
  let o;
@@ -3514,44 +3514,44 @@ const Ne = () => (pt || (pt = new xl()), pt), ye = (e, t, n = Ne()) => n._withID
3514
3514
  return q[e][t.id] = { ...q[e][t.id], ...t.data }, n !== void 0 && q[n] !== void 0 ? q[n][t.id] !== void 0 && (q[n][t.id] = t.data.eDate) : q[n] = [], delete q[e][t.id].$_item, delete q[e][t.id].$_send, s._withIDBStore("readwrite", (r) => {
3515
3515
  r.put($.enCode(q[e]), e), n !== void 0 && r.put($.enCode(q[n]), n);
3516
3516
  });
3517
- }, kl = async (e, t, n, s) => {
3517
+ }, wl = async (e, t, n, s) => {
3518
3518
  let r, i;
3519
3519
  i = await me(n), i[e.id] = e, await ye(n, i), r !== null && (r = await me(t), r[e.id] = e.eDate, await ye(t, r)), s !== void 0 && s({ type: "load", page: r, base: i });
3520
- }, wl = async (e, t, n, s) => {
3520
+ }, bl = async (e, t, n, s) => {
3521
3521
  let r = await me(t), i = await me(n);
3522
3522
  for (let o in e)
3523
3523
  i[o] = e[o], r[o] = e[o].eDate;
3524
3524
  await ye(t, r), await ye(n, i), s !== void 0 && s({ type: "load", page: r, base: i });
3525
- }, bl = async (e, t, n, s) => {
3525
+ }, Sl = async (e, t, n, s) => {
3526
3526
  let r = await me(t), i = await me(n);
3527
3527
  e.forEach((o) => delete r[o]), await ye(t, r), s !== void 0 && s({ type: "load", page: r, base: i });
3528
- }, Sl = async (e, t, n) => {
3528
+ }, El = async (e, t, n) => {
3529
3529
  let s = await me(t);
3530
3530
  e.forEach((r) => delete s[r]), await ye(t, s);
3531
- }, El = async (e, t, n) => {
3531
+ }, Rl = async (e, t, n) => {
3532
3532
  let s = await me(t);
3533
3533
  e.forEach((r) => s[r.id] = r.eDate), await ye(t, s);
3534
- }, Rl = async (e, t, n) => {
3534
+ }, Dl = async (e, t, n) => {
3535
3535
  let s = await me(t);
3536
3536
  if (n !== void 0)
3537
3537
  n({ type: "load", base: s });
3538
3538
  else
3539
3539
  return s[e];
3540
- }, Dl = (e) => q[e], Zc = {
3541
- id: Rl,
3540
+ }, Nl = (e) => q[e], zc = {
3541
+ id: Dl,
3542
3542
  get: me,
3543
3543
  set: ye,
3544
- add: kl,
3545
- del: vl,
3546
- upd: jl,
3547
- key: Cl,
3548
- load: Dl,
3549
- split: yl,
3544
+ add: wl,
3545
+ del: Cl,
3546
+ upd: kl,
3547
+ key: yl,
3548
+ load: Nl,
3549
+ split: jl,
3550
3550
  clear: Et,
3551
- updAll: wl,
3552
- delAll: bl,
3553
- delList: Sl,
3554
- addList: El
3551
+ updAll: bl,
3552
+ delAll: Sl,
3553
+ delList: El,
3554
+ addList: Rl
3555
3555
  }, Il = (e, t) => {
3556
3556
  const n = [];
3557
3557
  t = t.map((s) => s.charCodeAt(0)), document.onkeydown = function(s) {
@@ -3563,15 +3563,15 @@ const Ne = () => (pt || (pt = new xl()), pt), ye = (e, t, n = Ne()) => n._withID
3563
3563
  }, document.onkeyup = function(s) {
3564
3564
  n.length = 0;
3565
3565
  };
3566
- }, zc = { useKey: Il }, Nl = "_s_18bde_1", Tl = "_loadingB_18bde_1", Ml = "_ul_18bde_31", Ll = {
3567
- s: Nl,
3568
- loadingB: Tl,
3569
- ul: Ml
3566
+ }, Uc = { useKey: Il }, Tl = "_s_18bde_1", Ml = "_loadingB_18bde_1", Ll = "_ul_18bde_31", Fl = {
3567
+ s: Tl,
3568
+ loadingB: Ml,
3569
+ ul: Ll
3570
3570
  };
3571
- function Bn({ children: e }) {
3571
+ function $n({ children: e }) {
3572
3572
  return /* @__PURE__ */ a.jsx("ul", { className: ne.ul, children: e });
3573
3573
  }
3574
- function Fl(e, t) {
3574
+ function Bl(e, t) {
3575
3575
  switch (t.type) {
3576
3576
  case "load":
3577
3577
  return {
@@ -3604,13 +3604,13 @@ function Fl(e, t) {
3604
3604
  throw new Error();
3605
3605
  }
3606
3606
  }
3607
- function Bl({
3607
+ function $l({
3608
3608
  list: e,
3609
3609
  load: t,
3610
3610
  className: n,
3611
3611
  ...s
3612
3612
  }) {
3613
- const r = g.useRef(null), [i, o] = g.useReducer(Fl, {
3613
+ const r = g.useRef(null), [i, o] = g.useReducer(Bl, {
3614
3614
  load: !1,
3615
3615
  list: [],
3616
3616
  data: {},
@@ -3627,10 +3627,10 @@ function Bl({
3627
3627
  return /* @__PURE__ */ a.jsx(
3628
3628
  "div",
3629
3629
  {
3630
- className: [Ll.s, n].join(" "),
3630
+ className: [Fl.s, n].join(" "),
3631
3631
  ref: r,
3632
3632
  onScroll: l,
3633
- children: /* @__PURE__ */ a.jsx(Bn, { "el-empty": "Данные не найдены", children: i.load && i.list !== void 0 ? i.list.map((c) => /* @__PURE__ */ a.jsx(s.item, { data: c }, c.id)) : /* @__PURE__ */ a.jsxs("div", { "data-load": "load", children: [
3633
+ children: /* @__PURE__ */ a.jsx($n, { "el-empty": "Данные не найдены", children: i.load && i.list !== void 0 ? i.list.map((c) => /* @__PURE__ */ a.jsx(s.item, { data: c }, c.id)) : /* @__PURE__ */ a.jsxs("div", { "data-load": "load", children: [
3634
3634
  /* @__PURE__ */ a.jsx("i", {}),
3635
3635
  /* @__PURE__ */ a.jsx("i", {}),
3636
3636
  /* @__PURE__ */ a.jsx("i", {})
@@ -3638,7 +3638,7 @@ function Bl({
3638
3638
  }
3639
3639
  );
3640
3640
  }
3641
- const Uc = { Widget: ho }, $n = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3641
+ const Wc = { Widget: go }, Pn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ a.jsx(
3642
3642
  "div",
3643
3643
  {
3644
3644
  role: "switch",
@@ -3684,10 +3684,10 @@ function Ge({
3684
3684
  n && n({ value: j.target.textContent, name: s });
3685
3685
  }, w = (j) => {
3686
3686
  j.key === "Enter" && j.preventDefault();
3687
- }, N = (j) => {
3687
+ }, I = (j) => {
3688
3688
  j.preventDefault(), navigator.clipboard.writeText(j.target.textContent).then(
3689
3689
  function() {
3690
- Ie.Copy("Данные в буфер обмене");
3690
+ Ne.Copy("Данные в буфер обмене");
3691
3691
  },
3692
3692
  function(O) {
3693
3693
  console.error("Async: Could not copy text: ", O);
@@ -3712,7 +3712,7 @@ function Ge({
3712
3712
  onInput: y,
3713
3713
  onBlur: R,
3714
3714
  onKeyDown: w,
3715
- onContextMenu: N,
3715
+ onContextMenu: I,
3716
3716
  contentEditable: c && _ ? "plaintext-only" : "false",
3717
3717
  suppressContentEditableWarning: !0,
3718
3718
  ...S,
@@ -3722,7 +3722,7 @@ function Ge({
3722
3722
  o ? /* @__PURE__ */ a.jsx("em", { children: o }) : ""
3723
3723
  ] });
3724
3724
  }
3725
- function Pn({ onClick: e, onSend: t, name: n, onRef: s }) {
3725
+ function On({ onClick: e, onSend: t, name: n, onRef: s }) {
3726
3726
  let [r, i] = g.useState(!1);
3727
3727
  const o = () => {
3728
3728
  if (e) return e();
@@ -3739,7 +3739,7 @@ function Pn({ onClick: e, onSend: t, name: n, onRef: s }) {
3739
3739
  }
3740
3740
  );
3741
3741
  }
3742
- function On({
3742
+ function An({
3743
3743
  value: e,
3744
3744
  onValue: t,
3745
3745
  onActive: n,
@@ -3789,7 +3789,7 @@ function On({
3789
3789
  }
3790
3790
  ) });
3791
3791
  }
3792
- function An(e) {
3792
+ function Gn(e) {
3793
3793
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, r = e.placeholder !== void 0 ? e.placeholder : "", i = (c) => {
3794
3794
  e.onValue({ value: c.target.textContent, name: e.name });
3795
3795
  }, o = (c) => {
@@ -3817,7 +3817,7 @@ function An(e) {
3817
3817
  )
3818
3818
  ] });
3819
3819
  }
3820
- function Gn({ value: e, onValue: t, placeholder: n = "", name: s }) {
3820
+ function Zn({ value: e, onValue: t, placeholder: n = "", name: s }) {
3821
3821
  let r = (p, C) => Number(Math.round(p + Math.random() * (C - p))), i = g.useRef(null), o = g.useRef(null), l = r(1e4, 99999), c = (p) => {
3822
3822
  p.key !== "Backspace" && (p.key === "Enter" && p.preventDefault(), p.target.textContent.length === 5 && p.preventDefault(), /\d/.test(p.key) || p.preventDefault());
3823
3823
  }, _ = (p) => {
@@ -3857,7 +3857,7 @@ function Gn({ value: e, onValue: t, placeholder: n = "", name: s }) {
3857
3857
  /* @__PURE__ */ a.jsx("canvas", { ref: i, width: "100", height: "35" })
3858
3858
  ] });
3859
3859
  }
3860
- function Zn({
3860
+ function zn({
3861
3861
  className: e,
3862
3862
  title: t,
3863
3863
  error: n,
@@ -3918,8 +3918,8 @@ function Zn({
3918
3918
  h.preventDefault(), navigator.clipboard.readText().then((x) => {
3919
3919
  let y = x.split("");
3920
3920
  for (let w = 1; w <= y.length; w++) {
3921
- let N = document.getElementById("n" + w);
3922
- N && (N.textContent = y[w - 1]);
3921
+ let I = document.getElementById("n" + w);
3922
+ I && (I.textContent = y[w - 1]);
3923
3923
  }
3924
3924
  }).catch((x) => {
3925
3925
  console.log("Something went wrong", x);
@@ -4005,7 +4005,7 @@ function Zn({
4005
4005
  n ? /* @__PURE__ */ a.jsx("em", { children: n }) : ""
4006
4006
  ] });
4007
4007
  }
4008
- function zn(e) {
4008
+ function Un(e) {
4009
4009
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "";
4010
4010
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
4011
4011
  let [s, r] = g.useState(e.value), i = (o) => {
@@ -4035,13 +4035,13 @@ function zn(e) {
4035
4035
  }
4036
4036
  ) });
4037
4037
  }
4038
- const $l = "_o_66f7n_1", Pl = "_c_66f7n_11", Ol = "_as_66f7n_87", Al = "_ap_66f7n_90", ue = {
4039
- o: $l,
4040
- c: Pl,
4041
- as: Ol,
4042
- ap: Al
4038
+ const Pl = "_o_66f7n_1", Ol = "_c_66f7n_11", Al = "_as_66f7n_87", Gl = "_ap_66f7n_90", ue = {
4039
+ o: Pl,
4040
+ c: Ol,
4041
+ as: Al,
4042
+ ap: Gl
4043
4043
  };
4044
- function Lt(e) {
4044
+ function Ft(e) {
4045
4045
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", [o, l] = g.useState(
4046
4046
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
4047
4047
  ), c = !s && r;
@@ -4055,7 +4055,7 @@ function Lt(e) {
4055
4055
  be.setListener(
4056
4056
  "form",
4057
4057
  /* @__PURE__ */ a.jsx(
4058
- Gl,
4058
+ Zl,
4059
4059
  {
4060
4060
  position: { x: h, y: x },
4061
4061
  onValue: _,
@@ -4096,7 +4096,7 @@ function Lt(e) {
4096
4096
  }
4097
4097
  ) });
4098
4098
  }
4099
- const Gl = (e) => {
4099
+ const Zl = (e) => {
4100
4100
  let [t, n] = g.useState(!0), s = /* @__PURE__ */ new Date(), r = new Date(e.date), i = {
4101
4101
  y: parseInt(s.getFullYear()),
4102
4102
  d: parseInt(s.getDate()),
@@ -4125,7 +4125,7 @@ const Gl = (e) => {
4125
4125
  ), C();
4126
4126
  }, w = (b, S) => {
4127
4127
  S = b > 12 ? S + 1 : b < 1 ? S - 1 : S, b = b > 12 ? 1 : b < 1 ? 12 : b, c({ y: S, m: b });
4128
- }, N = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, L = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4128
+ }, I = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, L = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
4129
4129
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: t ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4130
4130
  /* @__PURE__ */ a.jsx(
4131
4131
  "div",
@@ -4139,7 +4139,7 @@ const Gl = (e) => {
4139
4139
  "div",
4140
4140
  {
4141
4141
  className: ue.c,
4142
- style: { top: N + "px", left: L + "px" },
4142
+ style: { top: I + "px", left: L + "px" },
4143
4143
  children: [
4144
4144
  /* @__PURE__ */ a.jsxs("s", { children: [
4145
4145
  /* @__PURE__ */ a.jsx("i", { onClick: x, children: /* @__PURE__ */ a.jsx(
@@ -4186,7 +4186,7 @@ const Gl = (e) => {
4186
4186
  )
4187
4187
  ] }) : "" });
4188
4188
  };
4189
- function Ft({
4189
+ function Bt({
4190
4190
  value: e,
4191
4191
  onValue: t,
4192
4192
  name: n,
@@ -4218,10 +4218,10 @@ function Ft({
4218
4218
  value: e
4219
4219
  });
4220
4220
  };
4221
- const N = {};
4222
- N.field = "input", h && (N.className = h);
4221
+ const I = {};
4222
+ I.field = "input", h && (I.className = h);
4223
4223
  const L = {};
4224
- return s && (L.placeholder = s), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
4224
+ return s && (L.placeholder = s), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
4225
4225
  r && /* @__PURE__ */ a.jsx("dt", { children: r }),
4226
4226
  /* @__PURE__ */ a.jsx(
4227
4227
  "dd",
@@ -4236,7 +4236,7 @@ function Ft({
4236
4236
  i && /* @__PURE__ */ a.jsx("em", { children: i })
4237
4237
  ] });
4238
4238
  }
4239
- function Bt({
4239
+ function $t({
4240
4240
  value: e,
4241
4241
  onValue: t,
4242
4242
  name: n,
@@ -4257,14 +4257,14 @@ function Bt({
4257
4257
  }) {
4258
4258
  let y = !!(o && (e === "" || e === void 0));
4259
4259
  e = K.isNumeric(e) ? Number(e) / m : 0;
4260
- let w = (T) => C === "multi" ? T.replace(/[^+\d.+-]/g, "") : T.replace(/[^+\d.]/g, ""), N = (T, z) => {
4261
- let A = document.createRange(), I = window.getSelection();
4262
- A.setStart(z.childNodes[0], T), A.collapse(!0), I.removeAllRanges(), I.addRange(A), z.focus();
4260
+ let w = (T) => C === "multi" ? T.replace(/[^+\d.+-]/g, "") : T.replace(/[^+\d.]/g, ""), I = (T, z) => {
4261
+ let A = document.createRange(), N = window.getSelection();
4262
+ A.setStart(z.childNodes[0], T), A.collapse(!0), N.removeAllRanges(), N.addRange(A), z.focus();
4263
4263
  }, L = (T) => {
4264
4264
  t == null || t({
4265
4265
  value: w(T.target.textContent) * m,
4266
4266
  name: n
4267
- }), T.target.textContent = w(T.target.textContent), T.target.textContent.length > 0 && N(T.target.textContent.length, T.target);
4267
+ }), T.target.textContent = w(T.target.textContent), T.target.textContent.length > 0 && I(T.target.textContent.length, T.target);
4268
4268
  }, b = (T) => {
4269
4269
  ce.Blur(T), T.target.textContent === "" && (T.target.textContent = 0), h == null || h({ value: w(T.target.textContent) * m, name: n }), t == null || t({
4270
4270
  value: w(T.target.textContent) * m,
@@ -4302,7 +4302,7 @@ function Bt({
4302
4302
  i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
4303
4303
  ] });
4304
4304
  }
4305
- function Un({
4305
+ function Wn({
4306
4306
  value: e,
4307
4307
  onValue: t,
4308
4308
  name: n,
@@ -4323,13 +4323,13 @@ function Un({
4323
4323
  f(x), t && t({ value: x, name: n });
4324
4324
  }, C = (x) => {
4325
4325
  if (!i || !o) return;
4326
- const y = x.target.getBoundingClientRect(), w = y.left, N = y.top;
4326
+ const y = x.target.getBoundingClientRect(), w = y.left, I = y.top;
4327
4327
  be.setListener(
4328
4328
  "form",
4329
4329
  /* @__PURE__ */ a.jsx(
4330
- Zl,
4330
+ zl,
4331
4331
  {
4332
- position: { x: w, y: N },
4332
+ position: { x: w, y: I },
4333
4333
  onValue: p,
4334
4334
  date: m
4335
4335
  },
@@ -4351,7 +4351,7 @@ function Un({
4351
4351
  r && /* @__PURE__ */ a.jsx("em", { children: r })
4352
4352
  ] });
4353
4353
  }
4354
- const Zl = (e) => {
4354
+ const zl = (e) => {
4355
4355
  let [t, n] = g.useState(!0), s = /* @__PURE__ */ new Date(), r = new Date(e.date), i = {
4356
4356
  y: parseInt(s.getFullYear()),
4357
4357
  m: parseInt(s.getMonth()) + 1
@@ -4423,7 +4423,7 @@ const Zl = (e) => {
4423
4423
  )
4424
4424
  ] }) : "" });
4425
4425
  };
4426
- function Wn(e) {
4426
+ function Kn(e) {
4427
4427
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", [s, r] = g.useState(!1), i = e.edit !== void 0 ? e.edit : !0, o = e.active !== void 0 ? e.active : !0, c = !!(e.hide && (e.value === "" || e.value === void 0)) && !(i && o);
4428
4428
  s = i ? !0 : s;
4429
4429
  let _ = e.placeholder !== void 0 ? e.placeholder : "", u = (x) => {
@@ -4460,7 +4460,7 @@ function Wn(e) {
4460
4460
  n()
4461
4461
  ] });
4462
4462
  }
4463
- function $t({
4463
+ function Pt({
4464
4464
  onValue: e,
4465
4465
  onSave: t,
4466
4466
  active: n,
@@ -4485,7 +4485,7 @@ function $t({
4485
4485
  if (j.which === 17 || j.which === 91) return x = !0;
4486
4486
  j.key !== "Backspace" && (j.target.textContent.length === s && j.preventDefault(), j.key === "Enter" && j.preventDefault(), isNaN(parseInt(String.fromCharCode(j.which))) && j.preventDefault());
4487
4487
  }
4488
- }, N = (j) => {
4488
+ }, I = (j) => {
4489
4489
  if (j.which === 17 || j.which === 91) return x = !1;
4490
4490
  }, L = (j) => {
4491
4491
  j.preventDefault(), navigator.clipboard.readText().then((O) => {
@@ -4513,7 +4513,7 @@ function $t({
4513
4513
  onInput: y,
4514
4514
  onBlur: b,
4515
4515
  onKeyDown: w,
4516
- onKeyUp: N,
4516
+ onKeyUp: I,
4517
4517
  suppressContentEditableWarning: !0,
4518
4518
  children: _
4519
4519
  }
@@ -4521,7 +4521,7 @@ function $t({
4521
4521
  o && /* @__PURE__ */ a.jsx("em", { children: o })
4522
4522
  ] });
4523
4523
  }
4524
- function Kn({
4524
+ function Yn({
4525
4525
  value: e,
4526
4526
  onValue: t,
4527
4527
  name: n,
@@ -5957,7 +5957,7 @@ const xt = {
5957
5957
  mask: "+1939(___) ___-__-__"
5958
5958
  }
5959
5959
  };
5960
- function Pt({
5960
+ function Ot({
5961
5961
  value: e,
5962
5962
  onValue: t,
5963
5963
  onSave: n,
@@ -5974,17 +5974,17 @@ function Pt({
5974
5974
  className: p = ""
5975
5975
  }) {
5976
5976
  c = c !== void 0 ? c : !0, _ = _ !== void 0 ? _ : !0, l = !!(l && (e === "" || e === void 0)) && !(c && _), g.useRef(null);
5977
- let h = "+_(___) ___-__-__", x = !0, y = 0, w = (A, I) => {
5977
+ let h = "+_(___) ___-__-__", x = !0, y = 0, w = (A, N) => {
5978
5978
  let F = document.createRange(), W = window.getSelection();
5979
- F.setStart(I.childNodes[0], A), F.collapse(!0), W.removeAllRanges(), W.addRange(F), I.focus();
5980
- }, N = (A) => {
5981
- A.preventDefault(), navigator.clipboard.readText().then((I) => {
5982
- window.document.execCommand("insertText", !1, I);
5983
- }).catch((I) => {
5984
- console.log("Something went wrong", I);
5979
+ F.setStart(N.childNodes[0], A), F.collapse(!0), W.removeAllRanges(), W.addRange(F), N.focus();
5980
+ }, I = (A) => {
5981
+ A.preventDefault(), navigator.clipboard.readText().then((N) => {
5982
+ window.document.execCommand("insertText", !1, N);
5983
+ }).catch((N) => {
5984
+ console.log("Something went wrong", N);
5985
5985
  });
5986
5986
  }, L = (A) => {
5987
- let I = 0, F = "", W = A.replace(/\D/g, "");
5987
+ let N = 0, F = "", W = A.replace(/\D/g, "");
5988
5988
  W === "" && (x = !0);
5989
5989
  let ee = W.split(""), ae = "";
5990
5990
  ee.forEach((Te) => {
@@ -5998,20 +5998,20 @@ function Pt({
5998
5998
  });
5999
5999
  let he = h.replace(/\D/g, "");
6000
6000
  return he.length >= W.length && (W = he), { q: h.replace(/[_\d]/g, function() {
6001
- return W.charAt(I++) || "_";
6002
- }), i: I, v: W, f: F };
6001
+ return W.charAt(N++) || "_";
6002
+ }), i: N, v: W, f: F };
6003
6003
  }, b = (A) => {
6004
6004
  A.preventDefault(), navigator.clipboard.writeText(A.target.textContent.replace(/\D/g, "")).then(
6005
6005
  function() {
6006
- Ie.Copy("Данные в буфер обмене");
6006
+ Ne.Copy("Данные в буфер обмене");
6007
6007
  },
6008
- function(I) {
6009
- console.error("Async: Could not copy text: ", I);
6008
+ function(N) {
6009
+ console.error("Async: Could not copy text: ", N);
6010
6010
  }
6011
6011
  );
6012
6012
  }, S = L(e), R = (A) => {
6013
- let I = L(A.target.textContent);
6014
- A.target.textContent = I.q, I.i = I.q.lastIndexOf(I.v.substr(-1)), I.i < I.q.length && I.q !== h ? I.i++ : I.i = I.q.indexOf("_"), w(I.i, A.target), t && t({ value: I.q.replace(/\D/g, ""), name: s });
6013
+ let N = L(A.target.textContent);
6014
+ A.target.textContent = N.q, N.i = N.q.lastIndexOf(N.v.substr(-1)), N.i < N.q.length && N.q !== h ? N.i++ : N.i = N.q.indexOf("_"), w(N.i, A.target), t && t({ value: N.q.replace(/\D/g, ""), name: s });
6015
6015
  }, j = (A) => {
6016
6016
  A.key === "Enter" && A.preventDefault();
6017
6017
  };
@@ -6029,7 +6029,7 @@ function Pt({
6029
6029
  "dd",
6030
6030
  {
6031
6031
  ...z,
6032
- onPaste: N,
6032
+ onPaste: I,
6033
6033
  onInput: R,
6034
6034
  onKeyDown: j,
6035
6035
  onContextMenu: b,
@@ -6041,7 +6041,7 @@ function Pt({
6041
6041
  o && /* @__PURE__ */ a.jsx("em", { children: o })
6042
6042
  ] });
6043
6043
  }
6044
- const Yn = (e) => {
6044
+ const Hn = (e) => {
6045
6045
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = e.edit !== void 0 ? e.edit : !0, s = e.active !== void 0 ? e.active : !0, r = e.placeholder !== void 0 ? e.placeholder : "", i = 0, o = () => {
6046
6046
  clearTimeout(i), i = setTimeout(() => console.log("rerrwere"), 1e3);
6047
6047
  }, l = (u) => {
@@ -6076,7 +6076,7 @@ const Yn = (e) => {
6076
6076
  }
6077
6077
  );
6078
6078
  };
6079
- function Ot({
6079
+ function At({
6080
6080
  title: e,
6081
6081
  error: t,
6082
6082
  edit: n = !0,
@@ -6104,7 +6104,7 @@ function Ot({
6104
6104
  be.setListener(
6105
6105
  "form",
6106
6106
  /* @__PURE__ */ a.jsx(
6107
- zl,
6107
+ Ul,
6108
6108
  {
6109
6109
  parent: j,
6110
6110
  onValue: y,
@@ -6116,14 +6116,14 @@ function Ot({
6116
6116
  (/* @__PURE__ */ new Date()).getTime()
6117
6117
  )
6118
6118
  );
6119
- }, N = { field: "select", className: _ }, L = { onClick: w };
6120
- return c && (L.placeholder = c), m && (L.after = m), n && s && (L.edit = ""), r ? "" : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
6119
+ }, I = { field: "select", className: _ }, L = { onClick: w };
6120
+ return c && (L.placeholder = c), m && (L.after = m), n && s && (L.edit = ""), r ? "" : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
6121
6121
  e && /* @__PURE__ */ a.jsx("dt", { children: e }),
6122
6122
  /* @__PURE__ */ a.jsx("dd", { ...L, ref: C, children: x }),
6123
6123
  t && /* @__PURE__ */ a.jsx("em", { children: t })
6124
6124
  ] });
6125
6125
  }
6126
- const zl = ({
6126
+ const Ul = ({
6127
6127
  onValue: e,
6128
6128
  parent: t,
6129
6129
  view: n,
@@ -6155,11 +6155,11 @@ const zl = ({
6155
6155
  left: m + "px",
6156
6156
  width: t.width
6157
6157
  },
6158
- children: /* @__PURE__ */ a.jsx(Ul, { order: i, options: r, link: _ })
6158
+ children: /* @__PURE__ */ a.jsx(Wl, { order: i, options: r, link: _ })
6159
6159
  }
6160
6160
  )
6161
6161
  ] }) : "" });
6162
- }, Ul = ({ order: e, options: t, link: n }) => e ? /* @__PURE__ */ a.jsx("ul", { children: e.map(
6162
+ }, Wl = ({ order: e, options: t, link: n }) => e ? /* @__PURE__ */ a.jsx("ul", { children: e.map(
6163
6163
  (s, r) => t[s].s === 1 ? /* @__PURE__ */ a.jsx(
6164
6164
  "li",
6165
6165
  {
@@ -6182,7 +6182,7 @@ const zl = ({
6182
6182
  r
6183
6183
  ) : ""
6184
6184
  ) });
6185
- function At(e) {
6185
+ function Gt(e) {
6186
6186
  let t = () => e.title ? /* @__PURE__ */ a.jsx("dt", { children: e.title }) : "", n = () => e.error ? /* @__PURE__ */ a.jsx("em", { children: e.error }) : "", s = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, o = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(s && r), l = e.placeholder !== void 0 ? e.placeholder : "", c = (p) => {
6187
6187
  u(e.options[p]), e.onValue({ value: p, name: e.name });
6188
6188
  }, [_, u] = g.useState(
@@ -6193,7 +6193,7 @@ function At(e) {
6193
6193
  be.setListener(
6194
6194
  "form",
6195
6195
  /* @__PURE__ */ a.jsx(
6196
- Wl,
6196
+ Kl,
6197
6197
  {
6198
6198
  parent: C,
6199
6199
  onValue: c,
@@ -6225,7 +6225,7 @@ function At(e) {
6225
6225
  }
6226
6226
  );
6227
6227
  }
6228
- const Wl = ({ onValue: e, parent: t, view: n, options: s }) => {
6228
+ const Kl = ({ onValue: e, parent: t, view: n, options: s }) => {
6229
6229
  let [r, i] = g.useState(!0), o = () => {
6230
6230
  i(!1);
6231
6231
  }, l = (m) => {
@@ -6302,7 +6302,7 @@ function Rt({
6302
6302
  );
6303
6303
  case "Select":
6304
6304
  return C && (x = re.getSelect(parseInt(C)) ? re.getSelect(parseInt(C)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ a.jsx(
6305
- Ot,
6305
+ At,
6306
6306
  {
6307
6307
  title: i,
6308
6308
  show: _,
@@ -6320,7 +6320,7 @@ function Rt({
6320
6320
  );
6321
6321
  case "Users":
6322
6322
  return re.getSelect("user"), /* @__PURE__ */ a.jsx(
6323
- At,
6323
+ Gt,
6324
6324
  {
6325
6325
  title: i,
6326
6326
  show: _,
@@ -6338,7 +6338,7 @@ function Rt({
6338
6338
  );
6339
6339
  case "Date":
6340
6340
  return /* @__PURE__ */ a.jsx(
6341
- Lt,
6341
+ Ft,
6342
6342
  {
6343
6343
  title: i,
6344
6344
  show: _,
@@ -6355,7 +6355,7 @@ function Rt({
6355
6355
  );
6356
6356
  case "Phone":
6357
6357
  return /* @__PURE__ */ a.jsx(
6358
- Pt,
6358
+ Ot,
6359
6359
  {
6360
6360
  title: i,
6361
6361
  show: _,
@@ -6372,7 +6372,7 @@ function Rt({
6372
6372
  );
6373
6373
  case "Number":
6374
6374
  return /* @__PURE__ */ a.jsx(
6375
- $t,
6375
+ Pt,
6376
6376
  {
6377
6377
  title: i,
6378
6378
  show: _,
@@ -6389,7 +6389,7 @@ function Rt({
6389
6389
  );
6390
6390
  case "Money":
6391
6391
  return /* @__PURE__ */ a.jsx(
6392
- Bt,
6392
+ $t,
6393
6393
  {
6394
6394
  title: i,
6395
6395
  show: _,
@@ -6406,7 +6406,7 @@ function Rt({
6406
6406
  );
6407
6407
  case "Modal":
6408
6408
  return /* @__PURE__ */ a.jsx(
6409
- Ft,
6409
+ Bt,
6410
6410
  {
6411
6411
  title: i,
6412
6412
  show: _,
@@ -6425,7 +6425,7 @@ function Rt({
6425
6425
  );
6426
6426
  }
6427
6427
  }
6428
- function Hn({
6428
+ function qn({
6429
6429
  value: e,
6430
6430
  onValue: t,
6431
6431
  name: n,
@@ -6455,10 +6455,10 @@ function Hn({
6455
6455
  console.log("Something went wrong", S);
6456
6456
  });
6457
6457
  };
6458
- const N = {};
6459
- N.field = "text", C && (N.className = C);
6458
+ const I = {};
6459
+ I.field = "text", C && (I.className = C);
6460
6460
  const L = {};
6461
- return s && (L.placeholder = s), /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
6461
+ return s && (L.placeholder = s), /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
6462
6462
  r && /* @__PURE__ */ a.jsx("dt", { children: r }),
6463
6463
  /* @__PURE__ */ a.jsx(
6464
6464
  "dd",
@@ -6475,7 +6475,7 @@ function Hn({
6475
6475
  i && /* @__PURE__ */ a.jsx("em", { children: i })
6476
6476
  ] });
6477
6477
  }
6478
- function qn({
6478
+ function Vn({
6479
6479
  value: e,
6480
6480
  onValue: t,
6481
6481
  name: n,
@@ -6496,17 +6496,17 @@ function qn({
6496
6496
  if (!(l && c) && !u || !(l && c) && h) return "";
6497
6497
  let w = (R) => {
6498
6498
  y.current.textContent = R, t && t({ value: R, name: n });
6499
- }, N = (R) => {
6499
+ }, I = (R) => {
6500
6500
  p && p({ value: R, name: n });
6501
6501
  }, L = (R) => {
6502
6502
  const j = R.target.getBoundingClientRect(), O = j.left, T = j.top;
6503
6503
  be.setListener(
6504
6504
  "form",
6505
6505
  /* @__PURE__ */ a.jsx(
6506
- Kl,
6506
+ Yl,
6507
6507
  {
6508
6508
  positions: { x: O, y: T },
6509
- onSave: N,
6509
+ onSave: I,
6510
6510
  onValue: w,
6511
6511
  date: x
6512
6512
  },
@@ -6529,7 +6529,7 @@ function qn({
6529
6529
  i ? /* @__PURE__ */ a.jsx("em", { children: i }) : ""
6530
6530
  ] }) });
6531
6531
  }
6532
- const Kl = ({ positions: e, onSave: t, onValue: n, date: s }) => {
6532
+ const Yl = ({ positions: e, onSave: t, onValue: n, date: s }) => {
6533
6533
  let r = s.split(":"), i = {
6534
6534
  h: K.Number(2, r[0]),
6535
6535
  m: K.Number(2, r[1])
@@ -6598,7 +6598,7 @@ const Kl = ({ positions: e, onSave: t, onValue: n, date: s }) => {
6598
6598
  }
6599
6599
  }
6600
6600
  n(i.h + ":" + i.m);
6601
- }, [y, w] = g.useState(!0), N = () => {
6601
+ }, [y, w] = g.useState(!0), I = () => {
6602
6602
  w(!1), t(i.h + ":" + i.m);
6603
6603
  }, L = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, b = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
6604
6604
  return /* @__PURE__ */ a.jsx(a.Fragment, { children: y ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -6606,7 +6606,7 @@ const Kl = ({ positions: e, onSave: t, onValue: n, date: s }) => {
6606
6606
  "div",
6607
6607
  {
6608
6608
  className: ue.o,
6609
- onClick: () => N()
6609
+ onClick: () => I()
6610
6610
  },
6611
6611
  (/* @__PURE__ */ new Date()).getTime()
6612
6612
  ),
@@ -6656,7 +6656,7 @@ const Kl = ({ positions: e, onSave: t, onValue: n, date: s }) => {
6656
6656
  )
6657
6657
  ] }) : "" });
6658
6658
  };
6659
- function Vn({
6659
+ function Jn({
6660
6660
  onValue: e,
6661
6661
  label: t,
6662
6662
  value: n,
@@ -6689,7 +6689,7 @@ function Vn({
6689
6689
  ] })
6690
6690
  ] });
6691
6691
  }
6692
- const Yl = ({ label: e, onValue: t, value: n, name: s, item: r }) => {
6692
+ const Hl = ({ label: e, onValue: t, value: n, name: s, item: r }) => {
6693
6693
  const [i, o] = g.useState(!!n);
6694
6694
  g.useEffect(() => {
6695
6695
  o(!!n);
@@ -6706,7 +6706,7 @@ const Yl = ({ label: e, onValue: t, value: n, name: s, item: r }) => {
6706
6706
  "aria-checked": `${i ? "true" : "false"}`
6707
6707
  }
6708
6708
  );
6709
- }, Jn = ({ onValue: e, value: t, name: n, item: s }) => {
6709
+ }, Xn = ({ onValue: e, value: t, name: n, item: s }) => {
6710
6710
  const [r, i] = g.useState(!!t);
6711
6711
  g.useEffect(() => {
6712
6712
  i(!!t);
@@ -6724,7 +6724,7 @@ const Yl = ({ label: e, onValue: t, value: n, name: s, item: r }) => {
6724
6724
  }
6725
6725
  );
6726
6726
  };
6727
- function Xn({
6727
+ function Qn({
6728
6728
  value: e,
6729
6729
  onValue: t,
6730
6730
  name: n,
@@ -6751,9 +6751,9 @@ function Xn({
6751
6751
  x([...h, ""]);
6752
6752
  }, w = (O) => {
6753
6753
  h.splice(O, 1), h.length === 0 && h.push(""), x([...h]), f !== void 0 && f({ value: h.join(C), name: n });
6754
- }, N = !!(o && (e === "" || e === void 0)), L = (O) => {
6754
+ }, I = !!(o && (e === "" || e === void 0)), L = (O) => {
6755
6755
  };
6756
- if (!(l && c) && !u || !(l && c) && N) return "";
6756
+ if (!(l && c) && !u || !(l && c) && I) return "";
6757
6757
  const b = {};
6758
6758
  b.field = "group", p && (b.className = p);
6759
6759
  const S = (O, T) => {
@@ -6828,8 +6828,8 @@ function Xn({
6828
6828
  i && /* @__PURE__ */ a.jsx("em", { children: i })
6829
6829
  ] });
6830
6830
  }
6831
- const Hl = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, n) => (t[n] = !0, t), {}));
6832
- function Qn({
6831
+ const ql = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, n) => (t[n] = !0, t), {}));
6832
+ function ea({
6833
6833
  value: e,
6834
6834
  onValue: t,
6835
6835
  name: n,
@@ -6847,7 +6847,7 @@ function Qn({
6847
6847
  options: C,
6848
6848
  className: h
6849
6849
  }) {
6850
- const [x, y] = g.useState(Hl(e)), w = (b) => {
6850
+ const [x, y] = g.useState(ql(e)), w = (b) => {
6851
6851
  if (!(l && _)) return;
6852
6852
  if (!f) return console.error("modal - empty");
6853
6853
  let S = f.split(".");
@@ -6860,10 +6860,10 @@ function Qn({
6860
6860
  name: n,
6861
6861
  value: x
6862
6862
  });
6863
- }, N = {};
6864
- N.field = "group", h && (N.className = h);
6863
+ }, I = {};
6864
+ I.field = "group", h && (I.className = h);
6865
6865
  const L = {};
6866
- return s && (L.placeholder = s), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...N, children: [
6866
+ return s && (L.placeholder = s), o ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("dl", { ...I, children: [
6867
6867
  /* @__PURE__ */ a.jsxs("dt", { children: [
6868
6868
  r,
6869
6869
  /* @__PURE__ */ a.jsx("i", { onClick: w, children: /* @__PURE__ */ a.jsxs(
@@ -6900,7 +6900,7 @@ function Qn({
6900
6900
  i && /* @__PURE__ */ a.jsx("em", { children: i })
6901
6901
  ] });
6902
6902
  }
6903
- function gn({
6903
+ function pn({
6904
6904
  value: e,
6905
6905
  onValue: t,
6906
6906
  name: n,
@@ -6920,11 +6920,11 @@ function gn({
6920
6920
  className: x = ""
6921
6921
  }) {
6922
6922
  const y = g.useId();
6923
- let w = !!(l && (e === "" || e === void 0)), [N, L] = g.useState(i);
6923
+ let w = !!(l && (e === "" || e === void 0)), [I, L] = g.useState(i);
6924
6924
  if (!(c && _) && !m || !(c && _) && w) return "";
6925
6925
  const b = async (R) => {
6926
6926
  if (f) {
6927
- let j = Vl(R, f, e || "default");
6927
+ let j = Jl(R, f, e || "default");
6928
6928
  t == null || t({ name: n, value: j }), L(URL.createObjectURL(j));
6929
6929
  } else
6930
6930
  t == null || t({ name: n, value: R }), L(URL.createObjectURL(R));
@@ -6934,7 +6934,7 @@ function gn({
6934
6934
  r,
6935
6935
  " "
6936
6936
  ] }),
6937
- /* @__PURE__ */ a.jsxs(ql, { onFiles: b, children: [
6937
+ /* @__PURE__ */ a.jsxs(Vl, { onFiles: b, children: [
6938
6938
  /* @__PURE__ */ a.jsx(
6939
6939
  "input",
6940
6940
  {
@@ -6947,12 +6947,12 @@ function gn({
6947
6947
  }
6948
6948
  ),
6949
6949
  /* @__PURE__ */ a.jsx("label", { htmlFor: y }),
6950
- /* @__PURE__ */ a.jsx("img", { src: N })
6950
+ /* @__PURE__ */ a.jsx("img", { src: I })
6951
6951
  ] }),
6952
6952
  o && /* @__PURE__ */ a.jsx("em", { children: o })
6953
6953
  ] });
6954
6954
  }
6955
- const ql = ({ children: e, onFiles: t }) => {
6955
+ const Vl = ({ children: e, onFiles: t }) => {
6956
6956
  const n = g.useRef(null);
6957
6957
  return g.useEffect(() => {
6958
6958
  if (n.preventDefaults) return;
@@ -6979,24 +6979,24 @@ const ql = ({ children: e, onFiles: t }) => {
6979
6979
  s.addEventListener(r, n.unhighlight, !1);
6980
6980
  }), s.addEventListener("drop", n.onHandleDrop, !1);
6981
6981
  }, []), /* @__PURE__ */ a.jsx("dd", { ref: n, children: e });
6982
- }, Vl = (e, t, n) => {
6982
+ }, Jl = (e, t, n) => {
6983
6983
  var s = document.getElementsByTagName("body")[0], r = document.createElement("canvas");
6984
6984
  s.appendChild(r);
6985
6985
  const i = r.getContext("2d"), o = new Image();
6986
6986
  o.addEventListener("load", () => {
6987
6987
  i.drawImage(o, 0, 0);
6988
- const l = t === "png" ? r.toDataURL() : r.toDataURL(`image/${t}`), c = Jl(l, n);
6988
+ const l = t === "png" ? r.toDataURL() : r.toDataURL(`image/${t}`), c = Xl(l, n);
6989
6989
  return r.remove(), c;
6990
6990
  }), o.src = URL.createObjectURL(e);
6991
6991
  };
6992
- function Jl(e, t) {
6992
+ function Xl(e, t) {
6993
6993
  let n = e.split(","), s = n[0].match(/:(.*?);/)[1], r = atob(n[1]), i = r.length, o = new Uint8Array(i);
6994
6994
  for (; i--; )
6995
6995
  o[i] = r.charCodeAt(i);
6996
6996
  return new File([o], t, { type: s });
6997
6997
  }
6998
6998
  const xe = {};
6999
- function Xl(e) {
6999
+ function Ql(e) {
7000
7000
  const [t, n] = g.useState({}), s = g.useRef(e);
7001
7001
  return xe.u = (r) => {
7002
7002
  s.current = { ...s.current, [r.name]: r.value };
@@ -7006,49 +7006,49 @@ function Xl(e) {
7006
7006
  n(Date.now());
7007
7007
  }, [s.current, xe.n];
7008
7008
  }
7009
- function Ql(e) {
7009
+ function ec(e) {
7010
7010
  xe.u(e), e.reload && xe.r();
7011
7011
  }
7012
- function ec() {
7012
+ function tc() {
7013
7013
  xe.r && xe.r();
7014
7014
  }
7015
- const Wc = {
7016
- Color: zn,
7017
- Date: Lt,
7018
- Mask: gn,
7019
- Image: gn,
7020
- Code: Zn,
7021
- Check: Vn,
7022
- Switch: $n,
7015
+ const Kc = {
7016
+ Color: Un,
7017
+ Date: Ft,
7018
+ Mask: pn,
7019
+ Image: pn,
7020
+ Code: zn,
7021
+ Check: Jn,
7022
+ Switch: Pn,
7023
7023
  Input: Ge,
7024
- Button: Pn,
7025
- Message: On,
7026
- Generator: An,
7027
- Captcha: Gn,
7028
- Modal: Ft,
7029
- Money: Bt,
7030
- Month: Un,
7031
- Notes: Wn,
7032
- Number: $t,
7033
- Password: Kn,
7034
- Phone: Pt,
7035
- Search: Yn,
7036
- Select: Ot,
7024
+ Button: On,
7025
+ Message: An,
7026
+ Generator: Gn,
7027
+ Captcha: Zn,
7028
+ Modal: Bt,
7029
+ Money: $t,
7030
+ Month: Wn,
7031
+ Notes: Kn,
7032
+ Number: Pt,
7033
+ Password: Yn,
7034
+ Phone: Ot,
7035
+ Search: Hn,
7036
+ Select: At,
7037
7037
  Set: Rt,
7038
- Textarea: Hn,
7039
- Time: qn,
7040
- Users: At,
7038
+ Textarea: qn,
7039
+ Time: Vn,
7040
+ Users: Gt,
7041
7041
  String: Ge,
7042
7042
  Form: Rt,
7043
- runReload: ec,
7044
- useData: Xl,
7045
- setValue: Ql,
7046
- Palette: Yl,
7047
- Toogle: Jn,
7048
- Group: Xn,
7049
- Options: Qn
7043
+ runReload: tc,
7044
+ useData: Ql,
7045
+ setValue: ec,
7046
+ Palette: Hl,
7047
+ Toogle: Xn,
7048
+ Group: Qn,
7049
+ Options: ea
7050
7050
  };
7051
- function tc({
7051
+ function nc({
7052
7052
  value: e = "",
7053
7053
  onValue: t,
7054
7054
  onSave: n,
@@ -7066,17 +7066,17 @@ function tc({
7066
7066
  className: C = ""
7067
7067
  }) {
7068
7068
  _ = _ !== void 0 ? _ : !0, u = u !== void 0 ? u : !0, c = !!(c && (e === "" || e === void 0)) && !(_ && u), g.useRef(null);
7069
- let x = r, y = !0, w = 0, N = (I, F) => {
7069
+ let x = r, y = !0, w = 0, I = (N, F) => {
7070
7070
  let W = document.createRange(), ee = window.getSelection();
7071
- W.setStart(F.childNodes[0], I), W.collapse(!0), ee.removeAllRanges(), ee.addRange(W), F.focus();
7072
- }, L = (I) => {
7073
- I.preventDefault(), navigator.clipboard.readText().then((F) => {
7071
+ W.setStart(F.childNodes[0], N), W.collapse(!0), ee.removeAllRanges(), ee.addRange(W), F.focus();
7072
+ }, L = (N) => {
7073
+ N.preventDefault(), navigator.clipboard.readText().then((F) => {
7074
7074
  window.document.execCommand("insertText", !1, F);
7075
7075
  }).catch((F) => {
7076
7076
  console.log("Something went wrong", F);
7077
7077
  });
7078
- }, b = (I) => {
7079
- let F = 0, W = "", ee = I.replace(/\D/g, "");
7078
+ }, b = (N) => {
7079
+ let F = 0, W = "", ee = N.replace(/\D/g, "");
7080
7080
  ee === "" && (y = !0);
7081
7081
  let ae = ee.split(""), he = "";
7082
7082
  ae.forEach((Ke) => {
@@ -7086,24 +7086,24 @@ function tc({
7086
7086
  return Se.length >= ee.length && (ee = Se), { q: x.replace(/[_\d]/g, function() {
7087
7087
  return ee.charAt(F++) || "_";
7088
7088
  }), i: F, v: ee, f: W };
7089
- }, S = (I) => {
7090
- I.preventDefault(), navigator.clipboard.writeText(I.target.textContent.replace(/\D/g, "")).then(
7089
+ }, S = (N) => {
7090
+ N.preventDefault(), navigator.clipboard.writeText(N.target.textContent.replace(/\D/g, "")).then(
7091
7091
  function() {
7092
- Ie.Copy("Данные в буфер обмене");
7092
+ Ne.Copy("Данные в буфер обмене");
7093
7093
  },
7094
7094
  function(F) {
7095
7095
  console.error("Async: Could not copy text: ", F);
7096
7096
  }
7097
7097
  );
7098
- }, R = b(e), j = (I) => {
7099
- let F = b(I.target.textContent);
7100
- I.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== x ? F.i++ : F.i = F.q.indexOf("_"), N(F.i, I.target), t && t({ value: F.q.replace(/\D/g, ""), name: s });
7101
- }, O = (I) => {
7102
- I.key === "Enter" && I.preventDefault();
7098
+ }, R = b(e), j = (N) => {
7099
+ let F = b(N.target.textContent);
7100
+ N.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== x ? F.i++ : F.i = F.q.indexOf("_"), I(F.i, N.target), t && t({ value: F.q.replace(/\D/g, ""), name: s });
7101
+ }, O = (N) => {
7102
+ N.key === "Enter" && N.preventDefault();
7103
7103
  };
7104
- const T = (I) => {
7105
- ce.Blur(I), n && n({
7106
- value: I.target.textContent.replace(/\D/g, ""),
7104
+ const T = (N) => {
7105
+ ce.Blur(N), n && n({
7106
+ value: N.target.textContent.replace(/\D/g, ""),
7107
7107
  name: s
7108
7108
  });
7109
7109
  }, z = {};
@@ -7127,42 +7127,42 @@ function tc({
7127
7127
  l && /* @__PURE__ */ a.jsx("em", { children: l })
7128
7128
  ] });
7129
7129
  }
7130
- const Kc = {
7131
- Color: zn,
7132
- Date: Lt,
7133
- Code: Zn,
7134
- Check: Vn,
7135
- Switch: $n,
7130
+ const Yc = {
7131
+ Color: Un,
7132
+ Date: Ft,
7133
+ Code: zn,
7134
+ Check: Jn,
7135
+ Switch: Pn,
7136
7136
  Input: Ge,
7137
- Button: Pn,
7138
- Message: On,
7139
- Generator: An,
7140
- Captcha: Gn,
7141
- Modal: Ft,
7142
- Money: Bt,
7143
- Mask: tc,
7144
- Month: Un,
7145
- Notes: Wn,
7146
- Number: $t,
7147
- Password: Kn,
7148
- Phone: Pt,
7149
- Search: Yn,
7150
- Select: Ot,
7137
+ Button: On,
7138
+ Message: An,
7139
+ Generator: Gn,
7140
+ Captcha: Zn,
7141
+ Modal: Bt,
7142
+ Money: $t,
7143
+ Mask: nc,
7144
+ Month: Wn,
7145
+ Notes: Kn,
7146
+ Number: Pt,
7147
+ Password: Yn,
7148
+ Phone: Ot,
7149
+ Search: Hn,
7150
+ Select: At,
7151
7151
  Set: Rt,
7152
- Textarea: Hn,
7153
- Time: qn,
7154
- Users: At,
7152
+ Textarea: qn,
7153
+ Time: Vn,
7154
+ Users: Gt,
7155
7155
  String: Ge,
7156
- Toogle: Jn,
7157
- Group: Xn,
7158
- Options: Qn
7159
- }, nc = "_spinner_o487n_1", ac = "_l_o487n_75", sc = "_loadingB_o487n_1", ea = {
7160
- spinner: nc,
7161
- l: ac,
7162
- loadingB: sc
7156
+ Toogle: Xn,
7157
+ Group: Qn,
7158
+ Options: ea
7159
+ }, ac = "_spinner_o487n_1", sc = "_l_o487n_75", rc = "_loadingB_o487n_1", ta = {
7160
+ spinner: ac,
7161
+ l: sc,
7162
+ loadingB: rc
7163
7163
  };
7164
- function rc() {
7165
- return /* @__PURE__ */ a.jsx("div", { className: ea.spinner, children: /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ a.jsx(
7164
+ function ic() {
7165
+ return /* @__PURE__ */ a.jsx("div", { className: ta.spinner, children: /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ a.jsx(
7166
7166
  "path",
7167
7167
  {
7168
7168
  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",
@@ -7170,20 +7170,20 @@ function rc() {
7170
7170
  }
7171
7171
  ) }) });
7172
7172
  }
7173
- function ic() {
7174
- return /* @__PURE__ */ a.jsxs("div", { className: ea.l, children: [
7173
+ function oc() {
7174
+ return /* @__PURE__ */ a.jsxs("div", { className: ta.l, children: [
7175
7175
  /* @__PURE__ */ a.jsx("i", {}),
7176
7176
  /* @__PURE__ */ a.jsx("i", {}),
7177
7177
  /* @__PURE__ */ a.jsx("i", {})
7178
7178
  ] });
7179
7179
  }
7180
- const Yc = { Spinner: rc, Inline: ic }, oc = "_s_t9swc_1", pn = {
7181
- s: oc
7180
+ const Hc = { Spinner: ic, Inline: oc }, lc = "_s_t9swc_1", xn = {
7181
+ s: lc
7182
7182
  };
7183
- let Gt;
7184
- function lc({ className: e, placeholder: t }) {
7183
+ let Zt;
7184
+ function cc({ className: e, placeholder: t }) {
7185
7185
  let n = (o) => {
7186
- Gt(o.target.textContent);
7186
+ Zt(o.target.textContent);
7187
7187
  }, s = (o) => {
7188
7188
  o.key === "Enter" && o.preventDefault();
7189
7189
  }, r = (o) => {
@@ -7194,7 +7194,7 @@ function lc({ className: e, placeholder: t }) {
7194
7194
  });
7195
7195
  };
7196
7196
  const i = {};
7197
- return t && (i.placeholder = t), i.className = e ? [pn.s, e].join(" ") : pn.s, /* @__PURE__ */ a.jsx(
7197
+ return t && (i.placeholder = t), i.className = e ? [xn.s, e].join(" ") : xn.s, /* @__PURE__ */ a.jsx(
7198
7198
  "div",
7199
7199
  {
7200
7200
  onPaste: r,
@@ -7206,7 +7206,7 @@ function lc({ className: e, placeholder: t }) {
7206
7206
  }
7207
7207
  );
7208
7208
  }
7209
- function cc(e, t, n) {
7209
+ function dc(e, t, n) {
7210
7210
  let s = [], r = 1, i = 0, o = {}, l = 50;
7211
7211
  return o[r] = [], e.forEach((c) => {
7212
7212
  c.text.toLowerCase().indexOf(t) > -1 && s.push(c.id);
@@ -7214,17 +7214,17 @@ function cc(e, t, n) {
7214
7214
  i++, i <= l || (r++, i = 1, o[r] = []), o[r].push(n[c]);
7215
7215
  }), o;
7216
7216
  }
7217
- function dc(e) {
7218
- Gt = e;
7219
- }
7220
7217
  function _c(e) {
7221
- Gt = e;
7218
+ Zt = e;
7222
7219
  }
7223
- const Hc = { Field: lc, Run: cc, Get: dc, useValue: _c }, uc = "_f_q3r0i_1", fc = {
7224
- f: uc
7220
+ function uc(e) {
7221
+ Zt = e;
7222
+ }
7223
+ const qc = { Field: cc, Run: dc, Get: _c, useValue: uc }, fc = "_f_q3r0i_1", mc = {
7224
+ f: fc
7225
7225
  };
7226
7226
  let le = {};
7227
- function mc(e, t) {
7227
+ function hc(e, t) {
7228
7228
  switch (t.type) {
7229
7229
  case "open":
7230
7230
  return {
@@ -7274,8 +7274,8 @@ function mc(e, t) {
7274
7274
  throw new Error();
7275
7275
  }
7276
7276
  }
7277
- function hc() {
7278
- const [e, t] = g.useReducer(mc, {
7277
+ function gc() {
7278
+ const [e, t] = g.useReducer(hc, {
7279
7279
  open: !1,
7280
7280
  view: null,
7281
7281
  data: {},
@@ -7293,12 +7293,12 @@ function hc() {
7293
7293
  /* @__PURE__ */ a.jsxs(
7294
7294
  "div",
7295
7295
  {
7296
- className: fc.f,
7296
+ className: mc.f,
7297
7297
  onClick: () => {
7298
7298
  t({ type: "open", open: !0 });
7299
7299
  },
7300
7300
  children: [
7301
- /* @__PURE__ */ a.jsx(Or, {}),
7301
+ /* @__PURE__ */ a.jsx(Ar, {}),
7302
7302
  e.active && /* @__PURE__ */ a.jsxs("i", { children: [
7303
7303
  e.size,
7304
7304
  "1"
@@ -7318,7 +7318,7 @@ function hc() {
7318
7318
  ),
7319
7319
  /* @__PURE__ */ a.jsxs("div", { className: "filter m", children: [
7320
7320
  /* @__PURE__ */ a.jsx("div", { className: "filter l", children: Object.keys(e.data).map((n) => /* @__PURE__ */ a.jsx(
7321
- Cc,
7321
+ yc,
7322
7322
  {
7323
7323
  data: n,
7324
7324
  dispatch: t,
@@ -7340,31 +7340,31 @@ function hc() {
7340
7340
  ] }) : /* @__PURE__ */ a.jsx(a.Fragment, {})
7341
7341
  ] });
7342
7342
  }
7343
- function gc(e) {
7343
+ function pc(e) {
7344
7344
  le.get = e;
7345
7345
  }
7346
- function pc(e) {
7346
+ function xc(e) {
7347
7347
  le.set !== void 0 && le.set(e);
7348
7348
  }
7349
- function xc(e) {
7349
+ function vc(e) {
7350
7350
  le.reset !== void 0 && le.reset(e);
7351
7351
  }
7352
- function vc(e, t, n, s) {
7352
+ function Cc(e, t, n, s) {
7353
7353
  let r = [], i = 1, o = 0, l = {}, c = 50;
7354
7354
  return l[i] = [], s === !0 && (Object.keys(t).forEach((_) => {
7355
7355
  Number.parseInt(t[_]) !== 999 && (e = e.filter(
7356
7356
  (u) => Number.parseInt(u[_]) === Number.parseInt(t[_])
7357
7357
  ));
7358
- }), ta(e.length)), e.forEach((_) => {
7358
+ }), na(e.length)), e.forEach((_) => {
7359
7359
  r.push(_.id);
7360
7360
  }), r.forEach((_) => {
7361
7361
  o++, o <= c || (i++, o = 1, l[i] = []), l[i].push(n[_]);
7362
7362
  }), l;
7363
7363
  }
7364
- function ta(e) {
7364
+ function na(e) {
7365
7365
  le.count(e);
7366
7366
  }
7367
- function Cc({ data: e, state: t, dispatch: n }) {
7367
+ function yc({ data: e, state: t, dispatch: n }) {
7368
7368
  let s = () => {
7369
7369
  n({ type: "view", view: e });
7370
7370
  }, r = () => {
@@ -7387,7 +7387,7 @@ function Cc({ data: e, state: t, dispatch: n }) {
7387
7387
  ) : ""
7388
7388
  ] }),
7389
7389
  /* @__PURE__ */ a.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((i, o) => /* @__PURE__ */ a.jsx(
7390
- yc,
7390
+ jc,
7391
7391
  {
7392
7392
  data: t.data[e].list[i],
7393
7393
  head: e,
@@ -7399,7 +7399,7 @@ function Cc({ data: e, state: t, dispatch: n }) {
7399
7399
  )) })
7400
7400
  ] });
7401
7401
  }
7402
- function yc({ data: e, head: t, state: n, dispatch: s, type: r }) {
7402
+ function jc({ data: e, head: t, state: n, dispatch: s, type: r }) {
7403
7403
  if (r !== "999" && e.count === void 0) return "";
7404
7404
  const i = () => {
7405
7405
  s({ type: "take", list: t, take: r });
@@ -7417,11 +7417,11 @@ function yc({ data: e, head: t, state: n, dispatch: s, type: r }) {
7417
7417
  }
7418
7418
  );
7419
7419
  }
7420
- const qc = { Button: hc, useValue: gc, Set: pc, Run: vc, Count: ta, Reset: xc }, Vc = { Bell: Yr, Send: Ur, Add: zr }, jc = "_p_djnh1_1", kc = "_l_djnh1_38", na = {
7421
- p: jc,
7422
- l: kc
7420
+ const Vc = { Button: gc, useValue: pc, Set: xc, Run: Cc, Count: na, Reset: vc }, Jc = { Bell: Hr, Send: Wr, Add: Ur }, kc = "_p_djnh1_1", wc = "_l_djnh1_38", aa = {
7421
+ p: kc,
7422
+ l: wc
7423
7423
  };
7424
- function wc(e) {
7424
+ function bc(e) {
7425
7425
  let t = 3, n = e.page, s = e.count, r = [], i = () => {
7426
7426
  r.push({ page: 1 }), r.push({ text: "..." });
7427
7427
  }, o = () => {
@@ -7430,17 +7430,17 @@ function wc(e) {
7430
7430
  for (let u = c; u < _; u++)
7431
7431
  r.push({ page: u });
7432
7432
  };
7433
- return s < t * 2 + 6 ? l(1, s + 1) : n < t * 2 + 1 ? (l(1, t * 2 + 4), o()) : n > s - t * 2 ? (t = s > 1e4 ? 1 : t, i(), l(s - t * 2 - 2, s + 1)) : (t = s > 1e4 ? 1 : t, i(), l(n - t, n + t + 1), o()), r.length === 1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("div", { className: na.p, children: [
7433
+ return s < t * 2 + 6 ? l(1, s + 1) : n < t * 2 + 1 ? (l(1, t * 2 + 4), o()) : n > s - t * 2 ? (t = s > 1e4 ? 1 : t, i(), l(s - t * 2 - 2, s + 1)) : (t = s > 1e4 ? 1 : t, i(), l(n - t, n + t + 1), o()), r.length === 1 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsxs("div", { className: aa.p, children: [
7434
7434
  /* @__PURE__ */ a.jsx("i", { onClick: () => e.onChangePage(n - 1), children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ a.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" }) }) }),
7435
7435
  r.map((c, _) => {
7436
7436
  console.log(c, e);
7437
7437
  const u = {};
7438
- return c.page && (u.onClick = () => e.onChangePage(c.page)), c.page === e.page && (u.active = ""), /* @__PURE__ */ Fa("span", { ...u, key: _ }, c.page || c.text);
7438
+ return c.page && (u.onClick = () => e.onChangePage(c.page)), c.page === e.page && (u.active = ""), /* @__PURE__ */ Ba("span", { ...u, key: _ }, c.page || c.text);
7439
7439
  }),
7440
7440
  /* @__PURE__ */ a.jsx("i", { onClick: () => e.onChangePage(n + 1), children: /* @__PURE__ */ a.jsx("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ a.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" }) }) })
7441
7441
  ] });
7442
7442
  }
7443
- function bc(e, t) {
7443
+ function Sc(e, t) {
7444
7444
  switch (t.type) {
7445
7445
  case "load":
7446
7446
  return {
@@ -7461,8 +7461,8 @@ function bc(e, t) {
7461
7461
  throw new Error();
7462
7462
  }
7463
7463
  }
7464
- function aa({ load: e, list: t, item: n }) {
7465
- const s = g.useRef(null), [r, i] = g.useReducer(bc, {
7464
+ function sa({ load: e, list: t, item: n }) {
7465
+ const s = g.useRef(null), [r, i] = g.useReducer(Sc, {
7466
7466
  load: !1,
7467
7467
  list: [],
7468
7468
  data: {},
@@ -7480,13 +7480,13 @@ function aa({ load: e, list: t, item: n }) {
7480
7480
  };
7481
7481
  return g.useEffect(() => {
7482
7482
  }, [r]), console.log(r), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7483
- /* @__PURE__ */ a.jsx("div", { className: na.l, ref: s, children: /* @__PURE__ */ a.jsx(Bn, { "el-empty": "Данные не найдены", children: r.load && r.list !== void 0 ? r.list.map((l) => /* @__PURE__ */ a.jsx(r.item, { data: l }, l.id)) : /* @__PURE__ */ a.jsxs("div", { "type-data": "load", children: [
7483
+ /* @__PURE__ */ a.jsx("div", { className: aa.l, ref: s, children: /* @__PURE__ */ a.jsx($n, { "el-empty": "Данные не найдены", children: r.load && r.list !== void 0 ? r.list.map((l) => /* @__PURE__ */ a.jsx(r.item, { data: l }, l.id)) : /* @__PURE__ */ a.jsxs("div", { "type-data": "load", children: [
7484
7484
  /* @__PURE__ */ a.jsx("i", {}),
7485
7485
  /* @__PURE__ */ a.jsx("i", {}),
7486
7486
  /* @__PURE__ */ a.jsx("i", {})
7487
7487
  ] }) }) }),
7488
7488
  r.load && r.list !== void 0 ? /* @__PURE__ */ a.jsx(
7489
- wc,
7489
+ bc,
7490
7490
  {
7491
7491
  page: r.page,
7492
7492
  count: r.size,
@@ -7495,15 +7495,15 @@ function aa({ load: e, list: t, item: n }) {
7495
7495
  ) : /* @__PURE__ */ a.jsx(a.Fragment, {})
7496
7496
  ] });
7497
7497
  }
7498
- const Jc = { Pagination: aa };
7499
- function Sc({ head: e, load: t, list: n, item: s }) {
7498
+ const Xc = { Pagination: sa };
7499
+ function Ec({ head: e, load: t, list: n, item: s }) {
7500
7500
  const r = e;
7501
7501
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7502
7502
  /* @__PURE__ */ a.jsx(r, {}),
7503
- Mt.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(aa, { list: n, load: t, item: s }) : /* @__PURE__ */ a.jsx(Bl, { list: n, load: t, item: s })
7503
+ Mt.getSetting("s05") === 1 ? /* @__PURE__ */ a.jsx(sa, { list: n, load: t, item: s }) : /* @__PURE__ */ a.jsx($l, { list: n, load: t, item: s })
7504
7504
  ] });
7505
7505
  }
7506
- function Ec(e, t) {
7506
+ function Rc(e, t) {
7507
7507
  switch (t.type) {
7508
7508
  case "load":
7509
7509
  return {
@@ -7545,18 +7545,18 @@ function Ec(e, t) {
7545
7545
  }
7546
7546
  }
7547
7547
  const Dt = {};
7548
- function Rc(e) {
7548
+ function Dc(e) {
7549
7549
  Dt.get = e;
7550
7550
  }
7551
- function Dc(e) {
7551
+ function Nc(e) {
7552
7552
  Dt.get && Dt.get(e);
7553
7553
  }
7554
- const Xc = { View: Sc, Reducer: Ec, useValue: Rc, setValue: Dc }, Qc = {
7555
- addDictionary: Eo,
7554
+ const Qc = { View: Ec, Reducer: Rc, useValue: Dc, setValue: Nc }, ed = {
7555
+ addDictionary: Ro,
7556
7556
  getDictionary: Io,
7557
- setDictionary: Do,
7558
- current: No
7559
- }, ed = { Get: Xr }, td = function({
7557
+ setDictionary: No,
7558
+ current: To
7559
+ }, td = { Get: Qr }, nd = function({
7560
7560
  title: e,
7561
7561
  children: t,
7562
7562
  imp: n,
@@ -7572,24 +7572,24 @@ const Xc = { View: Sc, Reducer: Ec, useValue: Rc, setValue: Dc }, Qc = {
7572
7572
  /* @__PURE__ */ a.jsxs("div", { className: "list-info", children: [
7573
7573
  /* @__PURE__ */ a.jsx("h2", { children: e }),
7574
7574
  /* @__PURE__ */ a.jsx("div", { className: "empty" }),
7575
- /* @__PURE__ */ a.jsx(Nc, { button: s })
7575
+ /* @__PURE__ */ a.jsx(Tc, { button: s })
7576
7576
  ] }),
7577
7577
  c && /* @__PURE__ */ a.jsx(Ic, { imp: n, modules: o, t: l }),
7578
7578
  t
7579
7579
  ] });
7580
7580
  };
7581
7581
  let Ic = ({ modules: e, t }) => {
7582
- const n = g.lazy(() => Nt(e + "/pages/" + t + ".tsx"));
7582
+ const n = g.lazy(() => It(e + "/pages/" + t + ".tsx"));
7583
7583
  return /* @__PURE__ */ a.jsx(g.Suspense, { fallback: "", children: /* @__PURE__ */ a.jsx(n, {}) });
7584
- }, Nc = ({ button: e }) => {
7584
+ }, Tc = ({ button: e }) => {
7585
7585
  const [t, n] = g.useState(e);
7586
7586
  return be.useListener("button", n), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
7587
7587
  " ",
7588
7588
  t
7589
7589
  ] });
7590
7590
  };
7591
- const nd = { Open: jo };
7592
- function ad({ active: e, onActive: t, id: n, name: s }) {
7591
+ const ad = { Open: ko };
7592
+ function sd({ active: e, onActive: t, id: n, name: s }) {
7593
7593
  const [r, i] = g.useState(!!e);
7594
7594
  g.useEffect(() => {
7595
7595
  i(!!e);
@@ -7614,46 +7614,46 @@ function ad({ active: e, onActive: t, id: n, name: s }) {
7614
7614
  );
7615
7615
  }
7616
7616
  export {
7617
- Qo as Action,
7618
- Pc as Alert,
7619
- Lc as Animation,
7620
- on as Api,
7621
- Gc as Badge,
7622
- $c as Bookmarks,
7623
- Fc as Browser,
7624
- $i as Button,
7625
- ed as Company,
7626
- hn as Component,
7627
- Zc as DataBase,
7617
+ el as Action,
7618
+ Oc as Alert,
7619
+ Fc as Animation,
7620
+ ln as Api,
7621
+ Zc as Badge,
7622
+ Pc as Bookmarks,
7623
+ Bc as Browser,
7624
+ Pi as Button,
7625
+ td as Company,
7626
+ gn as Component,
7627
+ zc as DataBase,
7628
7628
  be as Event,
7629
7629
  be as Events,
7630
- Uc as Files,
7631
- qc as Filter,
7632
- Wc as Form,
7630
+ Wc as Files,
7631
+ Vc as Filter,
7632
+ Kc as Form,
7633
7633
  K as Format,
7634
- zc as HotKey,
7635
- Oc as Icon,
7636
- Po as Init,
7637
- Kc as Input,
7638
- Qc as Lang,
7639
- Xc as List,
7640
- Yc as Loading,
7634
+ Uc as HotKey,
7635
+ Ac as Icon,
7636
+ Oo as Init,
7637
+ Yc as Input,
7638
+ ed as Lang,
7639
+ Qc as List,
7640
+ Hc as Loading,
7641
7641
  rt as Modal,
7642
- Ie as Notice,
7643
- Vc as Notifications,
7644
- Jc as Pagination,
7645
- nd as Phone,
7642
+ Ne as Notice,
7643
+ Jc as Notifications,
7644
+ Xc as Pagination,
7645
+ ad as Phone,
7646
7646
  Pe as Router,
7647
- Bl as Scrolling,
7648
- Hc as Search,
7649
- Bc as Setting,
7647
+ $l as Scrolling,
7648
+ qc as Search,
7649
+ $c as Setting,
7650
7650
  st as Sistym,
7651
7651
  pe as Socket,
7652
7652
  re as Store,
7653
- ad as Switch,
7654
- Uo as Tabs,
7655
- td as Test,
7656
- Ac as Triage,
7653
+ sd as Switch,
7654
+ Wo as Tabs,
7655
+ nd as Test,
7656
+ Gc as Triage,
7657
7657
  Mt as User,
7658
7658
  U as WebRTC
7659
7659
  };