@elcrm/telegram 0.0.2 → 0.0.4

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,21 +1,21 @@
1
- import './index.css';var sa = Object.defineProperty;
2
- var oa = (e, t, a) => t in e ? sa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var at = (e, t, a) => (oa(e, typeof t != "symbol" ? t + "" : t, a), a);
1
+ import './index.css';var ca = Object.defineProperty;
2
+ var _a = (e, t, a) => t in e ? ca(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var it = (e, t, a) => (_a(e, typeof t != "symbol" ? t + "" : t, a), a);
4
4
  import k from "react";
5
- let ht = {};
6
- const la = (e) => {
7
- ht = e;
8
- }, ca = (e) => ht.enCode(e), _a = (e) => ht.deCode(e), P = { enCode: ca, deCode: _a, New: la }, R = {}, Z = {}, pe = {}, Xt = {}, se = {};
9
- let da = "M06";
10
- function ua() {
11
- return da;
5
+ let pt = {};
6
+ const da = (e) => {
7
+ pt = e;
8
+ }, ua = (e) => pt.enCode(e), fa = (e) => pt.deCode(e), P = { enCode: ua, deCode: fa, New: da }, R = {}, Z = {}, ve = {}, tn = {}, se = {};
9
+ let ma = "M06";
10
+ function ha() {
11
+ return ma;
12
12
  }
13
13
  function re() {
14
14
  ["a", "b", "c", "d", "e", "m", "u", "s", "q", "p"].forEach(
15
15
  (e) => localStorage.removeItem(e)
16
16
  ), ["f"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
17
17
  }
18
- function fa(e) {
18
+ function xa(e) {
19
19
  e = e.split("/"), R.page = "Main", R.module = e[0], R.tab = e[1], R.id = 0, sessionStorage.setItem(
20
20
  "f",
21
21
  P.enCode({
@@ -27,24 +27,24 @@ function fa(e) {
27
27
  })
28
28
  ), Z.page(R.page);
29
29
  }
30
- function ma(e) {
30
+ function ga(e) {
31
31
  return localStorage.setItem("d", e);
32
32
  }
33
- function ha() {
33
+ function pa() {
34
34
  let e = localStorage.getItem("d");
35
35
  return e !== "" && e !== "undefined" && e !== null ? e : "";
36
36
  }
37
- function xa(e) {
37
+ function va(e) {
38
38
  return localStorage.setItem("a", e);
39
39
  }
40
- function ga() {
40
+ function ka() {
41
41
  let e = localStorage.getItem("a");
42
42
  return e !== "" && e !== "undefined" && e !== null ? e : "";
43
43
  }
44
- function pa(e) {
44
+ function ba(e) {
45
45
  localStorage.setItem("p", P.enCode(e));
46
46
  }
47
- function st() {
47
+ function lt() {
48
48
  let e = localStorage.getItem("p");
49
49
  if (e !== "" && e !== "undefined" && e !== null) {
50
50
  let t = P.deCode(e);
@@ -52,99 +52,99 @@ function st() {
52
52
  } else
53
53
  return re(), !1;
54
54
  }
55
- function va() {
56
- const [e, t] = k.useState(Qt()), a = (r) => {
55
+ function Ca() {
56
+ const [e, t] = k.useState(nn()), a = (r) => {
57
57
  t(r);
58
58
  };
59
59
  return Z.page = a, [e];
60
60
  }
61
- function ka(e, t = !0) {
61
+ function ja(e, t = !0) {
62
62
  R.page = e, sessionStorage.setItem("f", P.enCode(R)), t && Z.page(e);
63
63
  }
64
- function Qt() {
64
+ function nn() {
65
65
  return R.page;
66
66
  }
67
- function Ca(e) {
67
+ function ya(e) {
68
68
  return R.page === e;
69
69
  }
70
- function ya(e) {
70
+ function wa(e) {
71
71
  if (typeof e != "function") {
72
- const [t, a] = k.useState(e || en()), r = (i) => {
72
+ const [t, a] = k.useState(e || an()), r = (i) => {
73
73
  a(i);
74
74
  };
75
75
  return Z.module = r, [t];
76
76
  } else
77
77
  Z.module = e;
78
78
  }
79
- function ba(e, t = !0) {
79
+ function Sa(e, t = !0) {
80
80
  R.module = e, sessionStorage.setItem("f", P.enCode(R)), t && Z.module(e);
81
81
  }
82
- function en() {
82
+ function an() {
83
83
  return R.module;
84
84
  }
85
- function ja(e) {
85
+ function Ea(e) {
86
86
  return R.module === e;
87
87
  }
88
- function wa(e) {
88
+ function Ta(e) {
89
89
  if (typeof e != "function") {
90
- const [t, a] = k.useState(e || Ke()), [r, i] = k.useState(!1);
90
+ const [t, a] = k.useState(e || Ze()), [r, i] = k.useState(!1);
91
91
  return k.useEffect(() => {
92
92
  i(!0);
93
93
  }, []), Z.tabs = a, [t, r];
94
94
  } else
95
95
  Z.tabs = e;
96
96
  }
97
- function Sa(e, t = !0) {
97
+ function Ra(e, t = !0) {
98
98
  if (R.tab = e, sessionStorage.setItem("f", P.enCode(R)), !!t)
99
99
  if (Z.tabs)
100
100
  Z.tabs(e);
101
101
  else
102
102
  throw new Error("useTabs not found");
103
103
  }
104
- function Ke() {
104
+ function Ze() {
105
105
  return R.tab;
106
106
  }
107
- function Ea(e) {
107
+ function Ba(e) {
108
108
  return R.tab === e;
109
109
  }
110
- function Ta(e) {
110
+ function Na(e) {
111
111
  if (typeof e != "function") {
112
- const [t, a] = k.useState(e || tn()), r = (i) => {
112
+ const [t, a] = k.useState(e || rn()), r = (i) => {
113
113
  a(i);
114
114
  };
115
115
  return Z.id = r, [t];
116
116
  } else
117
117
  Z.id = e;
118
118
  }
119
- function Ra(e) {
119
+ function Da(e) {
120
120
  Z.id = e;
121
121
  }
122
- function Da(e, t = !0) {
122
+ function Ia(e, t = !0) {
123
123
  R.id = e, sessionStorage.setItem("f", P.enCode(R)), t && Z.id(e);
124
124
  }
125
- function tn() {
125
+ function rn() {
126
126
  return R.id;
127
127
  }
128
- function Ia(e) {
128
+ function Ma(e) {
129
129
  return Number(R.id) === e;
130
130
  }
131
- function Ba(e, t, a) {
131
+ function Fa(e, t, a) {
132
132
  R.module = e, R.id = a, R.tab = t, sessionStorage.setItem("f", P.enCode(R)), Z.module(e), Z.tabs(t);
133
133
  }
134
- function Na(e) {
135
- pe.data = e[0], delete pe.data.id, document.body.dataset.theme = pe.data.s15, localStorage.setItem("s", P.enCode(pe.data));
134
+ function Pa(e) {
135
+ ve.data = e[0], delete ve.data.id, document.body.dataset.theme = ve.data.s15, localStorage.setItem("s", P.enCode(ve.data));
136
136
  }
137
- function Ma(e, t) {
138
- pe.data[e] = t, localStorage.setItem("s", P.enCode(pe.data));
137
+ function La(e, t) {
138
+ ve.data[e] = t, localStorage.setItem("s", P.enCode(ve.data));
139
139
  }
140
- function Fa(e) {
140
+ function $a(e) {
141
141
  let t = localStorage.getItem("s");
142
142
  return t === null ? {} : (t = P.deCode(t), t ? e !== void 0 ? t[e] : t : re());
143
143
  }
144
- function nn(e) {
144
+ function sn(e) {
145
145
  localStorage.setItem("m", P.enCode({ data: e }));
146
146
  }
147
- function Pa() {
147
+ function Oa() {
148
148
  let e = localStorage.getItem("m");
149
149
  if (e !== "" && e !== "undefined" && e !== null) {
150
150
  let t = localStorage.getItem("m"), a = P.deCode(t);
@@ -159,21 +159,21 @@ function Pa() {
159
159
  } else
160
160
  return re(), !1;
161
161
  }
162
- function La(e) {
162
+ function Aa(e) {
163
163
  Z.sort = e;
164
164
  }
165
- function an(e) {
165
+ function on(e) {
166
166
  let t = localStorage.getItem("b");
167
- t = t === null ? {} : P.deCode(t), t[Ke()] = e, localStorage.setItem("b", P.enCode(t));
167
+ t = t === null ? {} : P.deCode(t), t[Ze()] = e, localStorage.setItem("b", P.enCode(t));
168
168
  }
169
- function ot() {
169
+ function ct() {
170
170
  let e = localStorage.getItem("b");
171
- return e === null ? {} : (e = P.deCode(e), e = e[Ke()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
171
+ return e === null ? {} : (e = P.deCode(e), e = e[Ze()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
172
172
  }
173
- function rn(e) {
173
+ function ln(e) {
174
174
  localStorage.setItem("c", P.enCode(e));
175
175
  }
176
- function $a(e, t) {
176
+ function Wa(e, t) {
177
177
  var r;
178
178
  let a = localStorage.getItem("c");
179
179
  if (a !== "" && a !== "undefined" && a !== null) {
@@ -185,32 +185,32 @@ function $a(e, t) {
185
185
  function Ie(e) {
186
186
  se.data = e, localStorage.setItem("q", P.enCode(se.data));
187
187
  }
188
- function Oa(e, t) {
188
+ function Ga(e, t) {
189
189
  se.data = { ...se.data, [e]: t }, localStorage.setItem("q", P.enCode(se.data));
190
190
  }
191
- function he(e, t) {
191
+ function xe(e, t) {
192
192
  if (!se.data) {
193
193
  let a = localStorage.getItem("q");
194
194
  a && (se.data = P.deCode(a));
195
195
  }
196
196
  return e === void 0 && t === void 0 ? se.data : e !== void 0 && t === void 0 ? se.data[e] : se.data[e][t];
197
197
  }
198
- function Aa(e) {
199
- Xt.data = e;
198
+ function za(e) {
199
+ tn.data = e;
200
200
  }
201
- function Wa(e) {
202
- return Xt.data[e];
201
+ function Ka(e) {
202
+ return tn.data[e];
203
203
  }
204
- function Ga(e) {
204
+ function Za(e) {
205
205
  R.payment = e;
206
206
  }
207
- function Ka() {
207
+ function Ua() {
208
208
  return R.payment;
209
209
  }
210
- function sn(e) {
210
+ function cn(e) {
211
211
  localStorage.setItem("u", P.enCode(e));
212
212
  }
213
- function za() {
213
+ function Va() {
214
214
  let e = localStorage.getItem("u");
215
215
  if (e !== "" && e !== "undefined" && e !== null) {
216
216
  let t = P.deCode(e);
@@ -218,7 +218,7 @@ function za() {
218
218
  } else
219
219
  return re(), !1;
220
220
  }
221
- function Za(e) {
221
+ function Ya(e) {
222
222
  const t = (a) => {
223
223
  let r = localStorage.getItem(a);
224
224
  if (r !== "" && r !== "undefined" && r !== null)
@@ -235,50 +235,50 @@ function Za(e) {
235
235
  };
236
236
  e.forEach((a) => t(a));
237
237
  }
238
- function Ua(e) {
238
+ function Ha(e) {
239
239
  return R[e] === void 0 ? (R[e] = { data: {}, time: 0 }, { data: {}, time: 0 }) : R[e];
240
240
  }
241
- function Va(e, t) {
241
+ function qa(e, t) {
242
242
  R[e] = { data: t.data, time: t.time }, localStorage.setItem(e, P.enCode(R[e]));
243
243
  }
244
- function Ya(e, t, a) {
244
+ function Ja(e, t, a) {
245
245
  R[e].time = a, R[e].data[t.item][t.name] = t.value, localStorage.setItem(e, P.enCode(R[e]));
246
246
  }
247
247
  const ce = {
248
- setSSID: ma,
249
- getSSID: ha,
250
- getPORT: st,
251
- setPORT: pa,
252
- setAUTH: xa,
253
- getAUTH: ga,
248
+ setSSID: ga,
249
+ getSSID: pa,
250
+ getPORT: lt,
251
+ setPORT: ba,
252
+ setAUTH: va,
253
+ getAUTH: ka,
254
254
  Logaut: re,
255
- Start: fa,
256
- setMenu: nn,
257
- getMenu: Pa,
258
- useSort: La,
259
- setSort: an,
260
- getSort: ot,
261
- setCompany: rn,
262
- getCompany: $a,
255
+ Start: xa,
256
+ setMenu: sn,
257
+ getMenu: Oa,
258
+ useSort: Aa,
259
+ setSort: on,
260
+ getSort: ct,
261
+ setCompany: ln,
262
+ getCompany: Wa,
263
263
  setSelect: Ie,
264
- addSelect: Oa,
265
- getSelect: he,
266
- setApi: Aa,
267
- getApi: Wa,
268
- setPayment: Ga,
269
- getPayment: Ka,
270
- setUser: sn,
271
- getUser: za,
272
- getDefaultModules: ua,
273
- getBase: Ua,
274
- setBase: Va,
275
- editBase: Ya,
276
- loadBase: Za
277
- }, on = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", Ha = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Gt = typeof window < "u" && window.Blob && new Blob([Ha(on)], { type: "text/javascript;charset=utf-8" });
278
- function ln(e) {
264
+ addSelect: Ga,
265
+ getSelect: xe,
266
+ setApi: za,
267
+ getApi: Ka,
268
+ setPayment: Za,
269
+ getPayment: Ua,
270
+ setUser: cn,
271
+ getUser: Va,
272
+ getDefaultModules: ha,
273
+ getBase: Ha,
274
+ setBase: qa,
275
+ editBase: Ja,
276
+ loadBase: Ya
277
+ }, _n = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK", Xa = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), Zt = typeof window < "u" && window.Blob && new Blob([Xa(_n)], { type: "text/javascript;charset=utf-8" });
278
+ function dn(e) {
279
279
  let t;
280
280
  try {
281
- if (t = Gt && (window.URL || window.webkitURL).createObjectURL(Gt), !t)
281
+ if (t = Zt && (window.URL || window.webkitURL).createObjectURL(Zt), !t)
282
282
  throw "";
283
283
  const a = new Worker(t, {
284
284
  name: e == null ? void 0 : e.name
@@ -288,7 +288,7 @@ function ln(e) {
288
288
  }), a;
289
289
  } catch {
290
290
  return new Worker(
291
- "data:text/javascript;base64," + on,
291
+ "data:text/javascript;base64," + _n,
292
292
  {
293
293
  name: e == null ? void 0 : e.name
294
294
  }
@@ -298,94 +298,94 @@ function ln(e) {
298
298
  }
299
299
  }
300
300
  const de = {};
301
- function qa(e) {
301
+ function Qa(e) {
302
302
  return e && (de.s = e), de.s;
303
303
  }
304
- function Ja(e) {
304
+ function er(e) {
305
305
  return e && (de.a = e), de.a;
306
306
  }
307
- function Xa(e) {
307
+ function tr(e) {
308
308
  return e && (de.c = e), de.c;
309
309
  }
310
- function Qa(e) {
310
+ function nr(e) {
311
311
  return e && (de.h = e), de.h;
312
312
  }
313
- const xt = { version: { Api: Ja, Server: qa, Client: Xa }, Host: Qa };
314
- let er = "api", tr = "elcrm", nr = "online";
315
- function ar() {
313
+ const vt = { version: { Api: er, Server: Qa, Client: tr }, Host: nr };
314
+ let ar = "api", rr = "elcrm", ir = "online";
315
+ function sr() {
316
316
  let e = ce.getPORT(), t = "", a = "";
317
317
  return e.address === "localhost" ? (t = `http://localhost:${e.socket}/documents`, a = `http://localhost:${e.socket}/files`) : (t = "https://" + e.address + "/documents", a = "https://" + e.address + "/files"), {
318
318
  documents: t,
319
319
  files: a
320
320
  };
321
321
  }
322
- let cn = `${er}.${tr}.${nr}`;
323
- function rr(e) {
322
+ let un = `${ar}.${rr}.${ir}`;
323
+ function or(e) {
324
324
  return "https://" + ce.getPORT().address + "/audio/" + e;
325
325
  }
326
- function ze(e, t = {}, a = ce.getAUTH()) {
326
+ function Ue(e, t = {}, a = ce.getAUTH()) {
327
327
  return new Promise((r) => {
328
- const i = new ln();
328
+ const i = new dn();
329
329
  i.onmessage = (s) => {
330
330
  r(s.data), i.terminate();
331
331
  }, i.postMessage({
332
332
  link: e,
333
333
  data: t,
334
334
  ssid: a,
335
- host: xt.Host() || `https://${cn}/`
335
+ host: vt.Host() || `https://${un}/`
336
336
  });
337
337
  });
338
338
  }
339
- function ir(e, t = {}, a = ce.getAUTH()) {
339
+ function lr(e, t = {}, a = ce.getAUTH()) {
340
340
  return new Promise((r) => {
341
- const i = new ln();
341
+ const i = new dn();
342
342
  i.onmessage = (s) => {
343
343
  r(s.data), i.terminate();
344
344
  }, i.postMessage({
345
345
  link: e,
346
346
  data: t,
347
347
  ssid: a,
348
- host: xt.Host() + "modules/" || `https://${cn}/modules`
348
+ host: vt.Host() + "modules/" || `https://${un}/modules`
349
349
  });
350
350
  });
351
351
  }
352
- function sr(e, t = {}, a) {
352
+ function cr(e, t = {}, a) {
353
353
  const [r, i] = k.useState({ status: "load" }), s = async (l) => {
354
- let c = await ze(e, l, a);
354
+ let c = await Ue(e, l, a);
355
355
  i(c);
356
356
  };
357
357
  return k.useEffect(() => {
358
358
  s(t);
359
359
  }, []), [r, s];
360
360
  }
361
- let _n = {
361
+ let fn = {
362
362
  "Content-type": "application/json;charset=utf-8",
363
363
  ssid: ce.getAUTH() || ""
364
364
  };
365
- async function or(e, t, a = {}) {
365
+ async function _r(e, t, a = {}) {
366
366
  try {
367
- return await (await ze("https://" + e + "/" + t, {
367
+ return await (await Ue("https://" + e + "/" + t, {
368
368
  method: "POST",
369
- headers: _n,
369
+ headers: fn,
370
370
  body: JSON.stringify(a)
371
371
  })).json();
372
372
  } catch {
373
373
  return { status: "error" };
374
374
  }
375
375
  }
376
- async function lr(e, t = {}) {
376
+ async function dr(e, t = {}) {
377
377
  try {
378
- return await (await ze("https://tb.elcrm.online/v1/" + e, {
378
+ return await (await Ue("https://tb.elcrm.online/v1/" + e, {
379
379
  method: "POST",
380
- headers: _n,
380
+ headers: fn,
381
381
  body: JSON.stringify(t)
382
382
  })).json();
383
383
  } catch {
384
384
  return { status: "error" };
385
385
  }
386
386
  }
387
- const Ko = { audio: rr, fetch: ze, modules: ir, remoute: or, url: ar, telegram: lr, use: sr };
388
- var lt = { exports: {} }, Se = {};
387
+ const Qo = { audio: or, fetch: Ue, modules: lr, remoute: _r, url: sr, telegram: dr, use: cr };
388
+ var _t = { exports: {} }, Re = {};
389
389
  /**
390
390
  * @license React
391
391
  * react-jsx-runtime.production.min.js
@@ -395,11 +395,11 @@ var lt = { exports: {} }, Se = {};
395
395
  * This source code is licensed under the MIT license found in the
396
396
  * LICENSE file in the root directory of this source tree.
397
397
  */
398
- var Kt;
399
- function cr() {
400
- if (Kt)
401
- return Se;
402
- Kt = 1;
398
+ var Ut;
399
+ function ur() {
400
+ if (Ut)
401
+ return Re;
402
+ Ut = 1;
403
403
  var e = k, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
404
404
  function l(c, d, _) {
405
405
  var u, f = {}, m = null, h = null;
@@ -411,9 +411,9 @@ function cr() {
411
411
  f[u] === void 0 && (f[u] = d[u]);
412
412
  return { $$typeof: t, type: c, key: m, ref: h, props: f, _owner: i.current };
413
413
  }
414
- return Se.Fragment = a, Se.jsx = l, Se.jsxs = l, Se;
414
+ return Re.Fragment = a, Re.jsx = l, Re.jsxs = l, Re;
415
415
  }
416
- var Ee = {};
416
+ var Be = {};
417
417
  /**
418
418
  * @license React
419
419
  * react-jsx-runtime.development.js
@@ -423,49 +423,49 @@ var Ee = {};
423
423
  * This source code is licensed under the MIT license found in the
424
424
  * LICENSE file in the root directory of this source tree.
425
425
  */
426
- var zt;
427
- function _r() {
428
- return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
429
- var e = k, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), v = Symbol.iterator, p = "@@iterator";
430
- function g(o) {
426
+ var Vt;
427
+ function fr() {
428
+ return Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
429
+ var e = k, t = Symbol.for("react.element"), a = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
430
+ function p(o) {
431
431
  if (o === null || typeof o != "object")
432
432
  return null;
433
- var x = v && o[v] || o[p];
433
+ var x = g && o[g] || o[v];
434
434
  return typeof x == "function" ? x : null;
435
435
  }
436
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
437
- function j(o) {
436
+ var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
437
+ function y(o) {
438
438
  {
439
- for (var x = arguments.length, C = new Array(x > 1 ? x - 1 : 0), T = 1; T < x; T++)
440
- C[T - 1] = arguments[T];
441
- D("error", o, C);
439
+ for (var x = arguments.length, b = new Array(x > 1 ? x - 1 : 0), T = 1; T < x; T++)
440
+ b[T - 1] = arguments[T];
441
+ B("error", o, b);
442
442
  }
443
443
  }
444
- function D(o, x, C) {
444
+ function B(o, x, b) {
445
445
  {
446
- var T = y.ReactDebugCurrentFrame, L = T.getStackAddendum();
447
- L !== "" && (x += "%s", C = C.concat([L]));
448
- var $ = C.map(function(M) {
446
+ var T = C.ReactDebugCurrentFrame, L = T.getStackAddendum();
447
+ L !== "" && (x += "%s", b = b.concat([L]));
448
+ var $ = b.map(function(M) {
449
449
  return String(M);
450
450
  });
451
451
  $.unshift("Warning: " + x), Function.prototype.apply.call(console[o], console, $);
452
452
  }
453
453
  }
454
- var I = !1, b = !1, S = !1, w = !1, E = !1, O;
454
+ var N = !1, j = !1, S = !1, w = !1, E = !1, O;
455
455
  O = Symbol.for("react.module.reference");
456
456
  function q(o) {
457
- return !!(typeof o == "string" || typeof o == "function" || o === r || o === s || E || o === i || o === _ || o === u || w || o === h || I || b || S || typeof o == "object" && o !== null && (o.$$typeof === m || o.$$typeof === f || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
457
+ return !!(typeof o == "string" || typeof o == "function" || o === r || o === s || E || o === i || o === _ || o === u || w || o === h || N || j || S || typeof o == "object" && o !== null && (o.$$typeof === m || o.$$typeof === f || o.$$typeof === l || o.$$typeof === c || o.$$typeof === d || // This needs to include all possible module reference object
458
458
  // types supported by any Flight configuration anywhere since
459
459
  // we don't know which Flight build this will end up being used
460
460
  // with.
461
461
  o.$$typeof === O || o.getModuleId !== void 0));
462
462
  }
463
- function ie(o, x, C) {
463
+ function ie(o, x, b) {
464
464
  var T = o.displayName;
465
465
  if (T)
466
466
  return T;
467
467
  var L = x.displayName || x.name || "";
468
- return L !== "" ? C + "(" + L + ")" : C;
468
+ return L !== "" ? b + "(" + L + ")" : b;
469
469
  }
470
470
  function A(o) {
471
471
  return o.displayName || "Context";
@@ -473,7 +473,7 @@ function _r() {
473
473
  function F(o) {
474
474
  if (o == null)
475
475
  return null;
476
- if (typeof o.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
476
+ if (typeof o.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
477
477
  return o.displayName || o.name || null;
478
478
  if (typeof o == "string")
479
479
  return o;
@@ -497,8 +497,8 @@ function _r() {
497
497
  var x = o;
498
498
  return A(x) + ".Consumer";
499
499
  case l:
500
- var C = o;
501
- return A(C._context) + ".Provider";
500
+ var b = o;
501
+ return A(b._context) + ".Provider";
502
502
  case d:
503
503
  return ie(o, o.render, "ForwardRef");
504
504
  case f:
@@ -515,18 +515,18 @@ function _r() {
515
515
  }
516
516
  return null;
517
517
  }
518
- var V = Object.assign, Y = 0, Fe, te, be, Ve, Pe, wt, St;
519
- function Et() {
518
+ var V = Object.assign, Y = 0, Le, te, Se, He, $e, Tt, Rt;
519
+ function Bt() {
520
520
  }
521
- Et.__reactDisabledLog = !0;
522
- function Nn() {
521
+ Bt.__reactDisabledLog = !0;
522
+ function Pn() {
523
523
  {
524
524
  if (Y === 0) {
525
- Fe = console.log, te = console.info, be = console.warn, Ve = console.error, Pe = console.group, wt = console.groupCollapsed, St = console.groupEnd;
525
+ Le = console.log, te = console.info, Se = console.warn, He = console.error, $e = console.group, Tt = console.groupCollapsed, Rt = console.groupEnd;
526
526
  var o = {
527
527
  configurable: !0,
528
528
  enumerable: !0,
529
- value: Et,
529
+ value: Bt,
530
530
  writable: !0
531
531
  };
532
532
  Object.defineProperties(console, {
@@ -542,7 +542,7 @@ function _r() {
542
542
  Y++;
543
543
  }
544
544
  }
545
- function Mn() {
545
+ function Ln() {
546
546
  {
547
547
  if (Y--, Y === 0) {
548
548
  var o = {
@@ -552,64 +552,64 @@ function _r() {
552
552
  };
553
553
  Object.defineProperties(console, {
554
554
  log: V({}, o, {
555
- value: Fe
555
+ value: Le
556
556
  }),
557
557
  info: V({}, o, {
558
558
  value: te
559
559
  }),
560
560
  warn: V({}, o, {
561
- value: be
561
+ value: Se
562
562
  }),
563
563
  error: V({}, o, {
564
- value: Ve
564
+ value: He
565
565
  }),
566
566
  group: V({}, o, {
567
- value: Pe
567
+ value: $e
568
568
  }),
569
569
  groupCollapsed: V({}, o, {
570
- value: wt
570
+ value: Tt
571
571
  }),
572
572
  groupEnd: V({}, o, {
573
- value: St
573
+ value: Rt
574
574
  })
575
575
  });
576
576
  }
577
- Y < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
577
+ Y < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
578
578
  }
579
579
  }
580
- var Ye = y.ReactCurrentDispatcher, He;
581
- function Le(o, x, C) {
580
+ var qe = C.ReactCurrentDispatcher, Je;
581
+ function Oe(o, x, b) {
582
582
  {
583
- if (He === void 0)
583
+ if (Je === void 0)
584
584
  try {
585
585
  throw Error();
586
586
  } catch (L) {
587
587
  var T = L.stack.trim().match(/\n( *(at )?)/);
588
- He = T && T[1] || "";
588
+ Je = T && T[1] || "";
589
589
  }
590
590
  return `
591
- ` + He + o;
591
+ ` + Je + o;
592
592
  }
593
593
  }
594
- var qe = !1, $e;
594
+ var Xe = !1, Ae;
595
595
  {
596
- var Fn = typeof WeakMap == "function" ? WeakMap : Map;
597
- $e = new Fn();
596
+ var $n = typeof WeakMap == "function" ? WeakMap : Map;
597
+ Ae = new $n();
598
598
  }
599
- function Tt(o, x) {
600
- if (!o || qe)
599
+ function Nt(o, x) {
600
+ if (!o || Xe)
601
601
  return "";
602
602
  {
603
- var C = $e.get(o);
604
- if (C !== void 0)
605
- return C;
603
+ var b = Ae.get(o);
604
+ if (b !== void 0)
605
+ return b;
606
606
  }
607
607
  var T;
608
- qe = !0;
608
+ Xe = !0;
609
609
  var L = Error.prepareStackTrace;
610
610
  Error.prepareStackTrace = void 0;
611
611
  var $;
612
- $ = Ye.current, Ye.current = null, Nn();
612
+ $ = qe.current, qe.current = null, Pn();
613
613
  try {
614
614
  if (x) {
615
615
  var M = function() {
@@ -644,231 +644,231 @@ function _r() {
644
644
  }
645
645
  } catch (J) {
646
646
  if (J && T && typeof J.stack == "string") {
647
- for (var N = J.stack.split(`
647
+ for (var I = J.stack.split(`
648
648
  `), H = T.stack.split(`
649
- `), W = N.length - 1, K = H.length - 1; W >= 1 && K >= 0 && N[W] !== H[K]; )
650
- K--;
651
- for (; W >= 1 && K >= 0; W--, K--)
652
- if (N[W] !== H[K]) {
653
- if (W !== 1 || K !== 1)
649
+ `), W = I.length - 1, z = H.length - 1; W >= 1 && z >= 0 && I[W] !== H[z]; )
650
+ z--;
651
+ for (; W >= 1 && z >= 0; W--, z--)
652
+ if (I[W] !== H[z]) {
653
+ if (W !== 1 || z !== 1)
654
654
  do
655
- if (W--, K--, K < 0 || N[W] !== H[K]) {
655
+ if (W--, z--, z < 0 || I[W] !== H[z]) {
656
656
  var Q = `
657
- ` + N[W].replace(" at new ", " at ");
658
- return o.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", o.displayName)), typeof o == "function" && $e.set(o, Q), Q;
657
+ ` + I[W].replace(" at new ", " at ");
658
+ return o.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", o.displayName)), typeof o == "function" && Ae.set(o, Q), Q;
659
659
  }
660
- while (W >= 1 && K >= 0);
660
+ while (W >= 1 && z >= 0);
661
661
  break;
662
662
  }
663
663
  }
664
664
  } finally {
665
- qe = !1, Ye.current = $, Mn(), Error.prepareStackTrace = L;
665
+ Xe = !1, qe.current = $, Ln(), Error.prepareStackTrace = L;
666
666
  }
667
- var ge = o ? o.displayName || o.name : "", fe = ge ? Le(ge) : "";
668
- return typeof o == "function" && $e.set(o, fe), fe;
667
+ var pe = o ? o.displayName || o.name : "", fe = pe ? Oe(pe) : "";
668
+ return typeof o == "function" && Ae.set(o, fe), fe;
669
669
  }
670
- function Pn(o, x, C) {
671
- return Tt(o, !1);
670
+ function On(o, x, b) {
671
+ return Nt(o, !1);
672
672
  }
673
- function Ln(o) {
673
+ function An(o) {
674
674
  var x = o.prototype;
675
675
  return !!(x && x.isReactComponent);
676
676
  }
677
- function Oe(o, x, C) {
677
+ function We(o, x, b) {
678
678
  if (o == null)
679
679
  return "";
680
680
  if (typeof o == "function")
681
- return Tt(o, Ln(o));
681
+ return Nt(o, An(o));
682
682
  if (typeof o == "string")
683
- return Le(o);
683
+ return Oe(o);
684
684
  switch (o) {
685
685
  case _:
686
- return Le("Suspense");
686
+ return Oe("Suspense");
687
687
  case u:
688
- return Le("SuspenseList");
688
+ return Oe("SuspenseList");
689
689
  }
690
690
  if (typeof o == "object")
691
691
  switch (o.$$typeof) {
692
692
  case d:
693
- return Pn(o.render);
693
+ return On(o.render);
694
694
  case f:
695
- return Oe(o.type, x, C);
695
+ return We(o.type, x, b);
696
696
  case m: {
697
697
  var T = o, L = T._payload, $ = T._init;
698
698
  try {
699
- return Oe($(L), x, C);
699
+ return We($(L), x, b);
700
700
  } catch {
701
701
  }
702
702
  }
703
703
  }
704
704
  return "";
705
705
  }
706
- var je = Object.prototype.hasOwnProperty, Rt = {}, Dt = y.ReactDebugCurrentFrame;
707
- function Ae(o) {
706
+ var Ee = Object.prototype.hasOwnProperty, Dt = {}, It = C.ReactDebugCurrentFrame;
707
+ function Ge(o) {
708
708
  if (o) {
709
- var x = o._owner, C = Oe(o.type, o._source, x ? x.type : null);
710
- Dt.setExtraStackFrame(C);
709
+ var x = o._owner, b = We(o.type, o._source, x ? x.type : null);
710
+ It.setExtraStackFrame(b);
711
711
  } else
712
- Dt.setExtraStackFrame(null);
712
+ It.setExtraStackFrame(null);
713
713
  }
714
- function $n(o, x, C, T, L) {
714
+ function Wn(o, x, b, T, L) {
715
715
  {
716
- var $ = Function.call.bind(je);
716
+ var $ = Function.call.bind(Ee);
717
717
  for (var M in o)
718
718
  if ($(o, M)) {
719
- var N = void 0;
719
+ var I = void 0;
720
720
  try {
721
721
  if (typeof o[M] != "function") {
722
- var H = Error((T || "React class") + ": " + C + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
722
+ var H = Error((T || "React class") + ": " + b + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
723
723
  throw H.name = "Invariant Violation", H;
724
724
  }
725
- N = o[M](x, M, T, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
725
+ I = o[M](x, M, T, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
726
726
  } catch (W) {
727
- N = W;
727
+ I = W;
728
728
  }
729
- N && !(N instanceof Error) && (Ae(L), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", C, M, typeof N), Ae(null)), N instanceof Error && !(N.message in Rt) && (Rt[N.message] = !0, Ae(L), j("Failed %s type: %s", C, N.message), Ae(null));
729
+ I && !(I instanceof Error) && (Ge(L), y("%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).", T || "React class", b, M, typeof I), Ge(null)), I instanceof Error && !(I.message in Dt) && (Dt[I.message] = !0, Ge(L), y("Failed %s type: %s", b, I.message), Ge(null));
730
730
  }
731
731
  }
732
732
  }
733
- var On = Array.isArray;
734
- function Je(o) {
735
- return On(o);
733
+ var Gn = Array.isArray;
734
+ function Qe(o) {
735
+ return Gn(o);
736
736
  }
737
- function An(o) {
737
+ function zn(o) {
738
738
  {
739
- var x = typeof Symbol == "function" && Symbol.toStringTag, C = x && o[Symbol.toStringTag] || o.constructor.name || "Object";
740
- return C;
739
+ var x = typeof Symbol == "function" && Symbol.toStringTag, b = x && o[Symbol.toStringTag] || o.constructor.name || "Object";
740
+ return b;
741
741
  }
742
742
  }
743
- function Wn(o) {
743
+ function Kn(o) {
744
744
  try {
745
- return It(o), !1;
745
+ return Mt(o), !1;
746
746
  } catch {
747
747
  return !0;
748
748
  }
749
749
  }
750
- function It(o) {
750
+ function Mt(o) {
751
751
  return "" + o;
752
752
  }
753
- function Bt(o) {
754
- if (Wn(o))
755
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", An(o)), It(o);
753
+ function Ft(o) {
754
+ if (Kn(o))
755
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zn(o)), Mt(o);
756
756
  }
757
- var we = y.ReactCurrentOwner, Gn = {
757
+ var Te = C.ReactCurrentOwner, Zn = {
758
758
  key: !0,
759
759
  ref: !0,
760
760
  __self: !0,
761
761
  __source: !0
762
- }, Nt, Mt, Xe;
763
- Xe = {};
764
- function Kn(o) {
765
- if (je.call(o, "ref")) {
762
+ }, Pt, Lt, et;
763
+ et = {};
764
+ function Un(o) {
765
+ if (Ee.call(o, "ref")) {
766
766
  var x = Object.getOwnPropertyDescriptor(o, "ref").get;
767
767
  if (x && x.isReactWarning)
768
768
  return !1;
769
769
  }
770
770
  return o.ref !== void 0;
771
771
  }
772
- function zn(o) {
773
- if (je.call(o, "key")) {
772
+ function Vn(o) {
773
+ if (Ee.call(o, "key")) {
774
774
  var x = Object.getOwnPropertyDescriptor(o, "key").get;
775
775
  if (x && x.isReactWarning)
776
776
  return !1;
777
777
  }
778
778
  return o.key !== void 0;
779
779
  }
780
- function Zn(o, x) {
781
- if (typeof o.ref == "string" && we.current && x && we.current.stateNode !== x) {
782
- var C = F(we.current.type);
783
- Xe[C] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(we.current.type), o.ref), Xe[C] = !0);
780
+ function Yn(o, x) {
781
+ if (typeof o.ref == "string" && Te.current && x && Te.current.stateNode !== x) {
782
+ var b = F(Te.current.type);
783
+ et[b] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Te.current.type), o.ref), et[b] = !0);
784
784
  }
785
785
  }
786
- function Un(o, x) {
786
+ function Hn(o, x) {
787
787
  {
788
- var C = function() {
789
- Nt || (Nt = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
788
+ var b = function() {
789
+ Pt || (Pt = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
790
790
  };
791
- C.isReactWarning = !0, Object.defineProperty(o, "key", {
792
- get: C,
791
+ b.isReactWarning = !0, Object.defineProperty(o, "key", {
792
+ get: b,
793
793
  configurable: !0
794
794
  });
795
795
  }
796
796
  }
797
- function Vn(o, x) {
797
+ function qn(o, x) {
798
798
  {
799
- var C = function() {
800
- Mt || (Mt = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
799
+ var b = function() {
800
+ Lt || (Lt = !0, y("%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)", x));
801
801
  };
802
- C.isReactWarning = !0, Object.defineProperty(o, "ref", {
803
- get: C,
802
+ b.isReactWarning = !0, Object.defineProperty(o, "ref", {
803
+ get: b,
804
804
  configurable: !0
805
805
  });
806
806
  }
807
807
  }
808
- var Yn = function(o, x, C, T, L, $, M) {
809
- var N = {
808
+ var Jn = function(o, x, b, T, L, $, M) {
809
+ var I = {
810
810
  // This tag allows us to uniquely identify this as a React Element
811
811
  $$typeof: t,
812
812
  // Built-in properties that belong on the element
813
813
  type: o,
814
814
  key: x,
815
- ref: C,
815
+ ref: b,
816
816
  props: M,
817
817
  // Record the component responsible for creating this element.
818
818
  _owner: $
819
819
  };
820
- return N._store = {}, Object.defineProperty(N._store, "validated", {
820
+ return I._store = {}, Object.defineProperty(I._store, "validated", {
821
821
  configurable: !1,
822
822
  enumerable: !1,
823
823
  writable: !0,
824
824
  value: !1
825
- }), Object.defineProperty(N, "_self", {
825
+ }), Object.defineProperty(I, "_self", {
826
826
  configurable: !1,
827
827
  enumerable: !1,
828
828
  writable: !1,
829
829
  value: T
830
- }), Object.defineProperty(N, "_source", {
830
+ }), Object.defineProperty(I, "_source", {
831
831
  configurable: !1,
832
832
  enumerable: !1,
833
833
  writable: !1,
834
834
  value: L
835
- }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
835
+ }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
836
836
  };
837
- function Hn(o, x, C, T, L) {
837
+ function Xn(o, x, b, T, L) {
838
838
  {
839
- var $, M = {}, N = null, H = null;
840
- C !== void 0 && (Bt(C), N = "" + C), zn(x) && (Bt(x.key), N = "" + x.key), Kn(x) && (H = x.ref, Zn(x, L));
839
+ var $, M = {}, I = null, H = null;
840
+ b !== void 0 && (Ft(b), I = "" + b), Vn(x) && (Ft(x.key), I = "" + x.key), Un(x) && (H = x.ref, Yn(x, L));
841
841
  for ($ in x)
842
- je.call(x, $) && !Gn.hasOwnProperty($) && (M[$] = x[$]);
842
+ Ee.call(x, $) && !Zn.hasOwnProperty($) && (M[$] = x[$]);
843
843
  if (o && o.defaultProps) {
844
844
  var W = o.defaultProps;
845
845
  for ($ in W)
846
846
  M[$] === void 0 && (M[$] = W[$]);
847
847
  }
848
- if (N || H) {
849
- var K = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
850
- N && Un(M, K), H && Vn(M, K);
848
+ if (I || H) {
849
+ var z = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
850
+ I && Hn(M, z), H && qn(M, z);
851
851
  }
852
- return Yn(o, N, H, L, T, we.current, M);
852
+ return Jn(o, I, H, L, T, Te.current, M);
853
853
  }
854
854
  }
855
- var Qe = y.ReactCurrentOwner, Ft = y.ReactDebugCurrentFrame;
856
- function xe(o) {
855
+ var tt = C.ReactCurrentOwner, $t = C.ReactDebugCurrentFrame;
856
+ function ge(o) {
857
857
  if (o) {
858
- var x = o._owner, C = Oe(o.type, o._source, x ? x.type : null);
859
- Ft.setExtraStackFrame(C);
858
+ var x = o._owner, b = We(o.type, o._source, x ? x.type : null);
859
+ $t.setExtraStackFrame(b);
860
860
  } else
861
- Ft.setExtraStackFrame(null);
861
+ $t.setExtraStackFrame(null);
862
862
  }
863
- var et;
864
- et = !1;
865
- function tt(o) {
863
+ var nt;
864
+ nt = !1;
865
+ function at(o) {
866
866
  return typeof o == "object" && o !== null && o.$$typeof === t;
867
867
  }
868
- function Pt() {
868
+ function Ot() {
869
869
  {
870
- if (Qe.current) {
871
- var o = F(Qe.current.type);
870
+ if (tt.current) {
871
+ var o = F(tt.current.type);
872
872
  if (o)
873
873
  return `
874
874
 
@@ -877,153 +877,153 @@ Check the render method of \`` + o + "`.";
877
877
  return "";
878
878
  }
879
879
  }
880
- function qn(o) {
880
+ function Qn(o) {
881
881
  return "";
882
882
  }
883
- var Lt = {};
884
- function Jn(o) {
883
+ var At = {};
884
+ function ea(o) {
885
885
  {
886
- var x = Pt();
886
+ var x = Ot();
887
887
  if (!x) {
888
- var C = typeof o == "string" ? o : o.displayName || o.name;
889
- C && (x = `
888
+ var b = typeof o == "string" ? o : o.displayName || o.name;
889
+ b && (x = `
890
890
 
891
- Check the top-level render call using <` + C + ">.");
891
+ Check the top-level render call using <` + b + ">.");
892
892
  }
893
893
  return x;
894
894
  }
895
895
  }
896
- function $t(o, x) {
896
+ function Wt(o, x) {
897
897
  {
898
898
  if (!o._store || o._store.validated || o.key != null)
899
899
  return;
900
900
  o._store.validated = !0;
901
- var C = Jn(x);
902
- if (Lt[C])
901
+ var b = ea(x);
902
+ if (At[b])
903
903
  return;
904
- Lt[C] = !0;
904
+ At[b] = !0;
905
905
  var T = "";
906
- o && o._owner && o._owner !== Qe.current && (T = " It was passed a child from " + F(o._owner.type) + "."), xe(o), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, T), xe(null);
906
+ o && o._owner && o._owner !== tt.current && (T = " It was passed a child from " + F(o._owner.type) + "."), ge(o), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, T), ge(null);
907
907
  }
908
908
  }
909
- function Ot(o, x) {
909
+ function Gt(o, x) {
910
910
  {
911
911
  if (typeof o != "object")
912
912
  return;
913
- if (Je(o))
914
- for (var C = 0; C < o.length; C++) {
915
- var T = o[C];
916
- tt(T) && $t(T, x);
913
+ if (Qe(o))
914
+ for (var b = 0; b < o.length; b++) {
915
+ var T = o[b];
916
+ at(T) && Wt(T, x);
917
917
  }
918
- else if (tt(o))
918
+ else if (at(o))
919
919
  o._store && (o._store.validated = !0);
920
920
  else if (o) {
921
- var L = g(o);
921
+ var L = p(o);
922
922
  if (typeof L == "function" && L !== o.entries)
923
923
  for (var $ = L.call(o), M; !(M = $.next()).done; )
924
- tt(M.value) && $t(M.value, x);
924
+ at(M.value) && Wt(M.value, x);
925
925
  }
926
926
  }
927
927
  }
928
- function Xn(o) {
928
+ function ta(o) {
929
929
  {
930
930
  var x = o.type;
931
931
  if (x == null || typeof x == "string")
932
932
  return;
933
- var C;
933
+ var b;
934
934
  if (typeof x == "function")
935
- C = x.propTypes;
935
+ b = x.propTypes;
936
936
  else if (typeof x == "object" && (x.$$typeof === d || // Note: Memo only checks outer props here.
937
937
  // Inner props are checked in the reconciler.
938
938
  x.$$typeof === f))
939
- C = x.propTypes;
939
+ b = x.propTypes;
940
940
  else
941
941
  return;
942
- if (C) {
942
+ if (b) {
943
943
  var T = F(x);
944
- $n(C, o.props, "prop", T, o);
945
- } else if (x.PropTypes !== void 0 && !et) {
946
- et = !0;
944
+ Wn(b, o.props, "prop", T, o);
945
+ } else if (x.PropTypes !== void 0 && !nt) {
946
+ nt = !0;
947
947
  var L = F(x);
948
- j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
948
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
949
949
  }
950
- typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
950
+ typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
951
951
  }
952
952
  }
953
- function Qn(o) {
953
+ function na(o) {
954
954
  {
955
- for (var x = Object.keys(o.props), C = 0; C < x.length; C++) {
956
- var T = x[C];
955
+ for (var x = Object.keys(o.props), b = 0; b < x.length; b++) {
956
+ var T = x[b];
957
957
  if (T !== "children" && T !== "key") {
958
- xe(o), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), xe(null);
958
+ ge(o), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), ge(null);
959
959
  break;
960
960
  }
961
961
  }
962
- o.ref !== null && (xe(o), j("Invalid attribute `ref` supplied to `React.Fragment`."), xe(null));
962
+ o.ref !== null && (ge(o), y("Invalid attribute `ref` supplied to `React.Fragment`."), ge(null));
963
963
  }
964
964
  }
965
- var At = {};
966
- function Wt(o, x, C, T, L, $) {
965
+ var zt = {};
966
+ function Kt(o, x, b, T, L, $) {
967
967
  {
968
968
  var M = q(o);
969
969
  if (!M) {
970
- var N = "";
971
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
972
- var H = qn();
973
- H ? N += H : N += Pt();
970
+ var I = "";
971
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
972
+ var H = Qn();
973
+ H ? I += H : I += Ot();
974
974
  var W;
975
- o === null ? W = "null" : Je(o) ? W = "array" : o !== void 0 && o.$$typeof === t ? (W = "<" + (F(o.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : W = typeof o, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, N);
975
+ o === null ? W = "null" : Qe(o) ? W = "array" : o !== void 0 && o.$$typeof === t ? (W = "<" + (F(o.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : W = typeof o, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, I);
976
976
  }
977
- var K = Hn(o, x, C, L, $);
978
- if (K == null)
979
- return K;
977
+ var z = Xn(o, x, b, L, $);
978
+ if (z == null)
979
+ return z;
980
980
  if (M) {
981
981
  var Q = x.children;
982
982
  if (Q !== void 0)
983
983
  if (T)
984
- if (Je(Q)) {
985
- for (var ge = 0; ge < Q.length; ge++)
986
- Ot(Q[ge], o);
984
+ if (Qe(Q)) {
985
+ for (var pe = 0; pe < Q.length; pe++)
986
+ Gt(Q[pe], o);
987
987
  Object.freeze && Object.freeze(Q);
988
988
  } else
989
- j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
989
+ y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
990
990
  else
991
- Ot(Q, o);
991
+ Gt(Q, o);
992
992
  }
993
- if (je.call(x, "key")) {
994
- var fe = F(o), J = Object.keys(x).filter(function(ia) {
995
- return ia !== "key";
996
- }), nt = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
997
- if (!At[fe + nt]) {
998
- var ra = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
999
- j(`A props object containing a "key" prop is being spread into JSX:
993
+ if (Ee.call(x, "key")) {
994
+ var fe = F(o), J = Object.keys(x).filter(function(la) {
995
+ return la !== "key";
996
+ }), rt = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
997
+ if (!zt[fe + rt]) {
998
+ var oa = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
999
+ y(`A props object containing a "key" prop is being spread into JSX:
1000
1000
  let props = %s;
1001
1001
  <%s {...props} />
1002
1002
  React keys must be passed directly to JSX without using spread:
1003
1003
  let props = %s;
1004
- <%s key={someKey} {...props} />`, nt, fe, ra, fe), At[fe + nt] = !0;
1004
+ <%s key={someKey} {...props} />`, rt, fe, oa, fe), zt[fe + rt] = !0;
1005
1005
  }
1006
1006
  }
1007
- return o === r ? Qn(K) : Xn(K), K;
1007
+ return o === r ? na(z) : ta(z), z;
1008
1008
  }
1009
1009
  }
1010
- function ea(o, x, C) {
1011
- return Wt(o, x, C, !0);
1010
+ function aa(o, x, b) {
1011
+ return Kt(o, x, b, !0);
1012
1012
  }
1013
- function ta(o, x, C) {
1014
- return Wt(o, x, C, !1);
1013
+ function ra(o, x, b) {
1014
+ return Kt(o, x, b, !1);
1015
1015
  }
1016
- var na = ta, aa = ea;
1017
- Ee.Fragment = r, Ee.jsx = na, Ee.jsxs = aa;
1018
- }()), Ee;
1019
- }
1020
- process.env.NODE_ENV === "production" ? lt.exports = cr() : lt.exports = _r();
1021
- var n = lt.exports;
1022
- const dr = "_btn_1hz2s_6", ur = "_confirm_1hz2s_19", Zt = {
1023
- btn: dr,
1024
- confirm: ur
1016
+ var ia = ra, sa = aa;
1017
+ Be.Fragment = r, Be.jsx = ia, Be.jsxs = sa;
1018
+ }()), Be;
1019
+ }
1020
+ process.env.NODE_ENV === "production" ? _t.exports = ur() : _t.exports = fr();
1021
+ var n = _t.exports;
1022
+ const mr = "_btn_1hz2s_6", hr = "_confirm_1hz2s_19", Yt = {
1023
+ btn: mr,
1024
+ confirm: hr
1025
1025
  };
1026
- function fr({ onClick: e, onSend: t, label: a, onRef: r }) {
1026
+ function xr({ onClick: e, onSend: t, label: a, onRef: r }) {
1027
1027
  let [i, s] = k.useState(!1);
1028
1028
  const l = () => {
1029
1029
  if (e)
@@ -1034,40 +1034,40 @@ function fr({ onClick: e, onSend: t, label: a, onRef: r }) {
1034
1034
  "button",
1035
1035
  {
1036
1036
  ref: r,
1037
- className: [Zt.btn, Zt.confirm].join(" "),
1037
+ className: [Yt.btn, Yt.confirm].join(" "),
1038
1038
  onClick: l,
1039
1039
  children: i ? "Ожидайте" : a
1040
1040
  }
1041
1041
  );
1042
1042
  }
1043
- const Re = {
1044
- Path: Ba,
1045
- setPage: ka,
1046
- getPage: Qt,
1047
- usePage: va,
1048
- isPage: Ca,
1049
- setModule: ba,
1050
- getModule: en,
1051
- useModule: ya,
1052
- isModule: ja,
1053
- setTabs: Sa,
1054
- getTabs: Ke,
1055
- useTabs: wa,
1056
- isTabs: Ea,
1057
- useId: Ta,
1058
- setId: Da,
1059
- subId: Ra,
1060
- getId: tn,
1061
- isId: Ia
1043
+ const ke = {
1044
+ Path: Fa,
1045
+ setPage: ja,
1046
+ getPage: nn,
1047
+ usePage: Ca,
1048
+ isPage: ya,
1049
+ setModule: Sa,
1050
+ getModule: an,
1051
+ useModule: wa,
1052
+ isModule: Ea,
1053
+ setTabs: Ra,
1054
+ getTabs: Ze,
1055
+ useTabs: Ta,
1056
+ isTabs: Ba,
1057
+ useId: Na,
1058
+ setId: Ia,
1059
+ subId: Da,
1060
+ getId: rn,
1061
+ isId: Ma
1062
1062
  };
1063
- let Ce = {};
1064
- function Be({ data: e }) {
1063
+ let ye = {};
1064
+ function Me({ data: e }) {
1065
1065
  let [t, a] = k.useState("show");
1066
1066
  k.useEffect(() => {
1067
1067
  setTimeout(function() {
1068
1068
  a("hide");
1069
1069
  }, 1800), setTimeout(function() {
1070
- Ce.del(e.key);
1070
+ ye.del(e.key);
1071
1071
  }, 2500);
1072
1072
  }, [e.key]);
1073
1073
  let r, i;
@@ -1094,25 +1094,25 @@ function Be({ data: e }) {
1094
1094
  /* @__PURE__ */ n.jsx("p", { children: e.text })
1095
1095
  ] });
1096
1096
  }
1097
- function mr(e) {
1097
+ function gr(e) {
1098
1098
  let t = Date.now(), a = { key: t, ...e };
1099
- Ce.set({ item: /* @__PURE__ */ n.jsx(Be, { data: a }, t), key: t });
1099
+ ye.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1100
1100
  }
1101
- function hr(e) {
1101
+ function pr(e) {
1102
1102
  let t = Date.now(), a = { key: t, text: e, type: "error" };
1103
- Ce.set({ item: /* @__PURE__ */ n.jsx(Be, { data: a }, t), key: t });
1103
+ ye.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1104
1104
  }
1105
- function xr(e) {
1105
+ function vr(e) {
1106
1106
  let t = Date.now(), a = { key: t, text: e, type: "success" };
1107
- Ce.set({ item: /* @__PURE__ */ n.jsx(Be, { data: a }, t), key: t });
1107
+ ye.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1108
1108
  }
1109
- function gr(e) {
1109
+ function kr(e) {
1110
1110
  let t = Date.now(), a = { key: t, text: e, type: "remark" };
1111
- Ce.set({ item: /* @__PURE__ */ n.jsx(Be, { data: a }, t), key: t });
1111
+ ye.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1112
1112
  }
1113
- function pr(e) {
1113
+ function br(e) {
1114
1114
  let t = Date.now(), a = { key: t, text: e, type: "copy" };
1115
- Ce.set({ item: /* @__PURE__ */ n.jsx(Be, { data: a }, t), key: t });
1115
+ ye.set({ item: /* @__PURE__ */ n.jsx(Me, { data: a }, t), key: t });
1116
1116
  }
1117
1117
  const me = {};
1118
1118
  me.error = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
@@ -1147,7 +1147,7 @@ me.success = () => /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "
1147
1147
  }
1148
1148
  )
1149
1149
  ] });
1150
- const Ge = { Send: mr, Error: hr, Remark: gr, Success: xr, Copy: pr }, dn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
1150
+ const Ke = { Send: gr, Error: pr, Remark: kr, Success: vr, Copy: br }, mn = ({ onClick: e, active: t }) => (t = !!t, /* @__PURE__ */ n.jsx(
1151
1151
  "div",
1152
1152
  {
1153
1153
  role: "switch",
@@ -1186,51 +1186,51 @@ function De({
1186
1186
  view: f,
1187
1187
  onBlur: m,
1188
1188
  onSave: h,
1189
- className: v = ""
1189
+ className: g = ""
1190
1190
  }) {
1191
- let p = !!(l && (e === "" || e === void 0)), g = (w) => {
1191
+ let v = !!(l && (e === "" || e === void 0)), p = (w) => {
1192
1192
  t && t({ value: w.target.textContent, name: a });
1193
- }, y = (w) => {
1193
+ }, C = (w) => {
1194
1194
  w.key === "Enter" && w.preventDefault();
1195
- }, j = (w) => {
1196
- }, D = (w) => {
1195
+ }, y = (w) => {
1196
+ }, B = (w) => {
1197
1197
  w.preventDefault(), navigator.clipboard.writeText(w.target.textContent).then(
1198
1198
  function() {
1199
- Ge.Copy("Данные в буфер обмене");
1199
+ Ke.Copy("Данные в буфер обмене");
1200
1200
  },
1201
1201
  function(E) {
1202
1202
  }
1203
1203
  );
1204
1204
  };
1205
- if (!(c && d) && !u || !(c && d) && p)
1205
+ if (!(c && d) && !u || !(c && d) && v)
1206
1206
  return "";
1207
- const I = {};
1208
- I.field = "input", v && (I.className = v);
1209
- const b = {};
1210
- r && (b.placeholder = r), c && d && (b.edit = "");
1207
+ const N = {};
1208
+ N.field = "input", g && (N.className = g);
1209
+ const j = {};
1210
+ r && (j.placeholder = r), c && d && (j.edit = "");
1211
1211
  const S = (w) => {
1212
1212
  le.Blur(w), h && h({ value: w.target.textContent, name: a });
1213
1213
  };
1214
- return /* @__PURE__ */ n.jsxs("dl", { ...I, children: [
1214
+ return /* @__PURE__ */ n.jsxs("dl", { ...N, children: [
1215
1215
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
1216
1216
  /* @__PURE__ */ n.jsx(
1217
1217
  "dd",
1218
1218
  {
1219
- onPaste: j,
1220
- onInput: g,
1219
+ onPaste: y,
1220
+ onInput: p,
1221
1221
  onBlur: S,
1222
- onKeyDown: y,
1223
- onContextMenu: D,
1222
+ onKeyDown: C,
1223
+ onContextMenu: B,
1224
1224
  contentEditable: c && d ? "plaintext-only" : "false",
1225
1225
  suppressContentEditableWarning: !0,
1226
- ...b,
1226
+ ...j,
1227
1227
  children: e
1228
1228
  }
1229
1229
  ),
1230
1230
  s ? /* @__PURE__ */ n.jsx("em", { children: s }) : ""
1231
1231
  ] });
1232
1232
  }
1233
- function un({ onClick: e, onSend: t, name: a, onRef: r }) {
1233
+ function hn({ onClick: e, onSend: t, name: a, onRef: r }) {
1234
1234
  let [i, s] = k.useState(!1);
1235
1235
  const l = () => {
1236
1236
  if (e)
@@ -1248,7 +1248,7 @@ function un({ onClick: e, onSend: t, name: a, onRef: r }) {
1248
1248
  }
1249
1249
  );
1250
1250
  }
1251
- function fn({
1251
+ function xn({
1252
1252
  value: e,
1253
1253
  onValue: t,
1254
1254
  onActive: a,
@@ -1268,37 +1268,37 @@ function fn({
1268
1268
  _.current.value.length > 0 ? _.current.send && (a(!0), _.current.send = !1, _.current.timerId = setTimeout(() => {
1269
1269
  _.current.send = !0;
1270
1270
  }, 3e3)) : a(!1);
1271
- }, f = (y) => {
1272
- _.current.value = y.target.textContent, u();
1273
- }, m = (y) => {
1274
- y.keyCode === 16 && (_.current.shift = !0), y.keyCode === 13 && !_.current.shift && (y.preventDefault(), _.current.value.length !== 0 && (y.target.textContent = "", r && r(_.current.value), t && t(_.current.value), _.current.value = "", a(!1)));
1275
- }, h = (y) => {
1276
- y.keyCode === 16 && (_.current.shift = !1);
1277
- }, v = (y) => {
1278
- y.preventDefault(), navigator.clipboard.readText().then((j) => {
1279
- window.document.execCommand("insertText", !1, j);
1280
- }).catch((j) => {
1271
+ }, f = (C) => {
1272
+ _.current.value = C.target.textContent, u();
1273
+ }, m = (C) => {
1274
+ C.keyCode === 16 && (_.current.shift = !0), C.keyCode === 13 && !_.current.shift && (C.preventDefault(), _.current.value.length !== 0 && (C.target.textContent = "", r && r(_.current.value), t && t(_.current.value), _.current.value = "", a(!1)));
1275
+ }, h = (C) => {
1276
+ C.keyCode === 16 && (_.current.shift = !1);
1277
+ }, g = (C) => {
1278
+ C.preventDefault(), navigator.clipboard.readText().then((y) => {
1279
+ window.document.execCommand("insertText", !1, y);
1280
+ }).catch((y) => {
1281
1281
  });
1282
- }, p = () => {
1282
+ }, v = () => {
1283
1283
  a(!1);
1284
- }, g = {
1284
+ }, p = {
1285
1285
  spellCheck: "true"
1286
1286
  };
1287
- return d && (g.placeholder = d), l && c && (g.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1287
+ return d && (p.placeholder = d), l && c && (p.contentEditable = "plaintext-only"), /* @__PURE__ */ n.jsx("dl", { "data-form": "message", children: /* @__PURE__ */ n.jsx(
1288
1288
  "dd",
1289
1289
  {
1290
- onPaste: v,
1290
+ onPaste: g,
1291
1291
  onInput: f,
1292
1292
  onKeyUp: h,
1293
1293
  onKeyDown: m,
1294
- onBlur: p,
1295
- ...g,
1294
+ onBlur: v,
1295
+ ...p,
1296
1296
  suppressContentEditableWarning: !0,
1297
1297
  children: e
1298
1298
  }
1299
1299
  ) });
1300
1300
  }
1301
- function mn(e) {
1301
+ function gn(e) {
1302
1302
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", s = (d) => {
1303
1303
  e.onValue({ value: d.target.textContent, name: e.name });
1304
1304
  }, l = (d) => {
@@ -1325,24 +1325,24 @@ function mn(e) {
1325
1325
  )
1326
1326
  ] });
1327
1327
  }
1328
- function hn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1329
- let i = (h, v) => Number(Math.round(h + Math.random() * (v - h))), s = k.useRef(null), l = k.useRef(null), c = i(1e4, 99999), d = (h) => {
1328
+ function pn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1329
+ let i = (h, g) => Number(Math.round(h + Math.random() * (g - h))), s = k.useRef(null), l = k.useRef(null), c = i(1e4, 99999), d = (h) => {
1330
1330
  h.key !== "Backspace" && (h.key === "Enter" && h.preventDefault(), h.target.textContent.length === 5 && h.preventDefault(), /\d/.test(h.key) || h.preventDefault());
1331
1331
  }, _ = (h) => {
1332
1332
  t({ value: Number(h.target.textContent) === c, name: r });
1333
1333
  }, u = (h) => {
1334
- h.preventDefault(), navigator.clipboard.readText().then((v) => {
1334
+ h.preventDefault(), navigator.clipboard.readText().then((g) => {
1335
1335
  window.document.execCommand(
1336
1336
  "insertText",
1337
1337
  !1,
1338
- v.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
1338
+ g.replace(/(\r\n|\n|\r)/gm, " ").replace(/[^0-9]/g, "").substring(0, 5)
1339
1339
  );
1340
- }).catch((v) => {
1340
+ }).catch((g) => {
1341
1341
  });
1342
1342
  };
1343
1343
  k.useEffect(() => {
1344
- const h = s.current, v = h.getContext("2d");
1345
- v.clearRect(0, 0, h.width, h.height), v.font = "30px brush script mt", v.fillStyle = "#eee", v.textAlign = "center", v.fillText(c, 50, 27), l.current.textContent = "";
1344
+ const h = s.current, g = h.getContext("2d");
1345
+ g.clearRect(0, 0, h.width, h.height), g.font = "30px brush script mt", g.fillStyle = "#eee", g.textAlign = "center", g.fillText(c, 50, 27), l.current.textContent = "";
1346
1346
  }, [c]);
1347
1347
  const f = {};
1348
1348
  f.field = "captcha";
@@ -1364,7 +1364,7 @@ function hn({ value: e, onValue: t, placeholder: a = "", name: r }) {
1364
1364
  /* @__PURE__ */ n.jsx("canvas", { ref: s, width: "100", height: "35" })
1365
1365
  ] });
1366
1366
  }
1367
- function xn(e) {
1367
+ function vn(e) {
1368
1368
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = {
1369
1369
  n1: "",
1370
1370
  n2: "",
@@ -1497,7 +1497,7 @@ function xn(e) {
1497
1497
  }
1498
1498
  );
1499
1499
  }
1500
- function gn(e) {
1500
+ function kn(e) {
1501
1501
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "";
1502
1502
  e.edit !== void 0 && e.edit, e.active !== void 0 && e.active;
1503
1503
  let [r, i] = k.useState(e.value), s = (l) => {
@@ -1527,15 +1527,15 @@ function gn(e) {
1527
1527
  }
1528
1528
  ) });
1529
1529
  }
1530
- const ct = {};
1531
- function vr(e, t) {
1532
- ct[e] = t;
1530
+ const dt = {};
1531
+ function Cr(e, t) {
1532
+ dt[e] = t;
1533
1533
  }
1534
- function kr(e, t) {
1535
- ct[e] !== void 0 && ct[e](t);
1534
+ function jr(e, t) {
1535
+ dt[e] !== void 0 && dt[e](t);
1536
1536
  }
1537
1537
  const _e = {};
1538
- function Cr(e, t) {
1538
+ function yr(e, t) {
1539
1539
  const [a, r] = k.useState(t);
1540
1540
  return k.useEffect(() => {
1541
1541
  if (_e[e])
@@ -1543,16 +1543,16 @@ function Cr(e, t) {
1543
1543
  _e[e] = [r];
1544
1544
  }, []), [a];
1545
1545
  }
1546
- function yr(e, t) {
1546
+ function wr(e, t) {
1547
1547
  if (_e[e])
1548
1548
  return _e[e].push(t);
1549
1549
  _e[e] = [t];
1550
1550
  }
1551
- function br(e, t) {
1551
+ function Sr(e, t) {
1552
1552
  _e[e] && _e[e].forEach((a) => a(t));
1553
1553
  }
1554
- const Ne = { setListener: kr, useListener: vr, setEmitter: br, useEmitter: Cr, subEmitter: yr };
1555
- function jr(e, t) {
1554
+ const Fe = { setListener: jr, useListener: Cr, setEmitter: Sr, useEmitter: yr, subEmitter: wr };
1555
+ function Er(e, t) {
1556
1556
  t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
1557
1557
  let a = {
1558
1558
  yyyy: e.getFullYear(),
@@ -1569,7 +1569,7 @@ function jr(e, t) {
1569
1569
  t = t.replace(r, a[r]);
1570
1570
  return t;
1571
1571
  }
1572
- function wr(e) {
1572
+ function Tr(e) {
1573
1573
  let t = [
1574
1574
  "Января",
1575
1575
  "Февраля",
@@ -1589,17 +1589,17 @@ function wr(e) {
1589
1589
  name: a.getDate() + " " + t[a.getMonth()]
1590
1590
  };
1591
1591
  }
1592
- const Sr = (e) => {
1593
- function t(D, I) {
1594
- var b, w, S;
1595
- D = D ?? "", I = I ?? 1;
1596
- for (var b = [], S = 0, w = D.length; S < w; )
1597
- b.push(D.slice(S, S += I));
1598
- return b;
1592
+ const Rr = (e) => {
1593
+ function t(B, N) {
1594
+ var j, w, S;
1595
+ B = B ?? "", N = N ?? 1;
1596
+ for (var j = [], S = 0, w = B.length; S < w; )
1597
+ j.push(B.slice(S, S += N));
1598
+ return j;
1599
1599
  }
1600
- function a(D, I) {
1601
- var b = [2, 0, 1, 1, 1, 2];
1602
- return I[D > 4 && D < 20 ? 2 : b[Math.min(D, 5)]];
1600
+ function a(B, N) {
1601
+ var j = [2, 0, 1, 1, 1, 2];
1602
+ return N[B > 4 && B < 20 ? 2 : j[Math.min(B, 5)]];
1603
1603
  }
1604
1604
  var r = {
1605
1605
  null: "ноль",
@@ -1663,42 +1663,42 @@ const Sr = (e) => {
1663
1663
  u3: ["тысяча", "тысячи", "тысяч"],
1664
1664
  u2: ["миллион", "миллиона", "миллионов"],
1665
1665
  u1: ["миллиард", "миллиарда", "миллиардов"]
1666
- }, i, s, l, c, g, d, _, p, u, f, m, h;
1666
+ }, i, s, l, c, p, d, _, v, u, f, m, h;
1667
1667
  u = parseFloat(e).toFixed(2).split("."), d = u[0], c = u[1];
1668
- var v = 12 - d.length;
1669
- if (v < 0)
1668
+ var g = 12 - d.length;
1669
+ if (g < 0)
1670
1670
  return !1;
1671
- for (var p = []; v--; )
1672
- p.push("0");
1673
- d = p.join("") + d;
1674
- var g = [];
1671
+ for (var v = []; g--; )
1672
+ v.push("0");
1673
+ d = v.join("") + d;
1674
+ var p = [];
1675
1675
  if (d > 0) {
1676
1676
  f = t(d, 3);
1677
- for (var y = -1; y < f.length; y++)
1678
- if (_ = f[y], _ > 0 && (m = t(_, 1), i = parseInt(m[0]), s = parseInt(m[1]), l = parseInt(m[2]), g.push(r.a100[i - 1]), h = y + 1 == 3 ? "a2" : "a1", s > 1 ? g.push(
1677
+ for (var C = -1; C < f.length; C++)
1678
+ if (_ = f[C], _ > 0 && (m = t(_, 1), i = parseInt(m[0]), s = parseInt(m[1]), l = parseInt(m[2]), p.push(r.a100[i - 1]), h = C + 1 == 3 ? "a2" : "a1", s > 1 ? p.push(
1679
1679
  r.a20[s - 2] + (l > 0 ? " " + r[h][l - 1] : "")
1680
- ) : g.push(
1680
+ ) : p.push(
1681
1681
  s > 0 ? r.a10[l] : r[h][l - 1]
1682
- ), f.length > y + 1)) {
1683
- var j = r["u" + (y + 1)];
1684
- g.push(a(_, j));
1682
+ ), f.length > C + 1)) {
1683
+ var y = r["u" + (C + 1)];
1684
+ p.push(a(_, y));
1685
1685
  }
1686
1686
  } else
1687
- g.push(r.null);
1688
- return g.push(a(d, r.ur)), g.push(c + " " + a(c, r.uc)), g.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1687
+ p.push(r.null);
1688
+ return p.push(a(d, r.ur)), p.push(c + " " + a(c, r.uc)), p.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
1689
1689
  };
1690
- function Er(e) {
1690
+ function Br(e) {
1691
1691
  let t = -1, a = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
1692
1692
  do
1693
1693
  e = e / 1024, t++;
1694
1694
  while (e > 1024);
1695
1695
  return Math.max(e, 0.1).toFixed(1) + a[t];
1696
1696
  }
1697
- function Tr(e) {
1697
+ function Nr(e) {
1698
1698
  let t = {};
1699
1699
  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];
1700
1700
  }
1701
- function Rr(e, t, a, r) {
1701
+ function Dr(e, t, a, r) {
1702
1702
  let i = {
1703
1703
  sexM: "m",
1704
1704
  sexF: "f",
@@ -1830,8 +1830,8 @@ function Rr(e, t, a, r) {
1830
1830
  return l;
1831
1831
  this.init();
1832
1832
  var h = this.rules[d];
1833
- let v;
1834
- return h.exceptions && (v = this.pick(l, c, _, h.exceptions, !0), v) ? v : (v = this.pick(l, c, _, h.suffixes, !1), v || l);
1833
+ let g;
1834
+ return h.exceptions && (g = this.pick(l, c, _, h.exceptions, !0), g) ? g : (g = this.pick(l, c, _, h.suffixes, !1), g || l);
1835
1835
  },
1836
1836
  // выбираем из списка правил первое подходящее и применяем
1837
1837
  pick: function(l, c, d, _, u) {
@@ -1914,7 +1914,7 @@ function Rr(e, t, a, r) {
1914
1914
  }
1915
1915
  return i.ln = e, i.fn = t || "", i.mn = a || "", i.sex = r || i.getSex(), i;
1916
1916
  }
1917
- function Dr(e) {
1917
+ function Ir(e) {
1918
1918
  let t = e.split(" ");
1919
1919
  switch (t.length) {
1920
1920
  case 2:
@@ -1925,7 +1925,7 @@ function Dr(e) {
1925
1925
  return e;
1926
1926
  }
1927
1927
  }
1928
- function Ir(e) {
1928
+ function Mr(e) {
1929
1929
  return {
1930
1930
  1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
1931
1931
  2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
@@ -1941,61 +1941,61 @@ function Ir(e) {
1941
1941
  12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
1942
1942
  }[e];
1943
1943
  }
1944
- function Br(e) {
1944
+ function Fr(e) {
1945
1945
  return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
1946
1946
  }
1947
- function Nr(e, t) {
1947
+ function Pr(e, t) {
1948
1948
  let a = t + "";
1949
1949
  for (; a.length < e; )
1950
1950
  a = "0" + a;
1951
1951
  return a;
1952
1952
  }
1953
- function Mr(e, t, a) {
1953
+ function Lr(e, t, a) {
1954
1954
  let r = t / e * a;
1955
1955
  return (typeof r != "number" || r === 1 / 0) && (r = 0), parseFloat(r).toFixed(1);
1956
1956
  }
1957
- function Fr(e) {
1957
+ function $r(e) {
1958
1958
  return e.charAt(0).toUpperCase() + e.slice(1);
1959
1959
  }
1960
- function Pr(e, t) {
1960
+ function Or(e, t) {
1961
1961
  e = Math.abs(e) % 100;
1962
1962
  let a = e % 10;
1963
1963
  return e > 10 && e < 20 ? t[2] : a > 1 && a < 5 ? t[1] : a === 1 ? t[0] : t[2];
1964
1964
  }
1965
- function Lr(e, t, a) {
1966
- return he(e, t) ? he(e, t).n : a || "";
1965
+ function Ar(e, t, a) {
1966
+ return xe(e, t) ? xe(e, t).n : a || "";
1967
1967
  }
1968
- function $r(e, t) {
1968
+ function Wr(e, t) {
1969
1969
  return e.reduce(function(a, r) {
1970
1970
  let i = t instanceof Function ? t(r) : r[t];
1971
1971
  return a[i] !== void 0 || (a[i] = {}), a[i][r.id] = r, a;
1972
1972
  }, {});
1973
1973
  }
1974
- function Or(e) {
1974
+ function Gr(e) {
1975
1975
  return parseInt((Date.now() - new Date(e).getTime()) / 31536e6 + "") + "";
1976
1976
  }
1977
- const z = {
1978
- Age: Or,
1979
- Date: jr,
1980
- MoneyString: Sr,
1981
- DateSort: wr,
1982
- Size: Er,
1983
- TypeFiles: Tr,
1984
- Cases: Rr,
1985
- Initials: Dr,
1986
- Month: Ir,
1987
- Money: Br,
1988
- Number: Nr,
1989
- Percent: Mr,
1990
- CapitalizeFirstLetter: Fr,
1991
- DeclensionWord: Pr,
1992
- Select: Lr,
1993
- ObjectByArray: $r
1994
- }, Ar = "_o_1kqkq_1", Wr = "_c_1kqkq_11", ve = {
1995
- o: Ar,
1996
- c: Wr
1977
+ const K = {
1978
+ Age: Gr,
1979
+ Date: Er,
1980
+ MoneyString: Rr,
1981
+ DateSort: Tr,
1982
+ Size: Br,
1983
+ TypeFiles: Nr,
1984
+ Cases: Dr,
1985
+ Initials: Ir,
1986
+ Month: Mr,
1987
+ Money: Fr,
1988
+ Number: Pr,
1989
+ Percent: Lr,
1990
+ CapitalizeFirstLetter: $r,
1991
+ DeclensionWord: Or,
1992
+ Select: Ar,
1993
+ ObjectByArray: Wr
1994
+ }, zr = "_o_1kqkq_1", Kr = "_c_1kqkq_11", Ce = {
1995
+ o: zr,
1996
+ c: Kr
1997
1997
  };
1998
- function gt(e) {
1998
+ function kt(e) {
1999
1999
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, i = e.active !== void 0 ? e.active : !0, s = e.placeholder !== void 0 ? e.placeholder : "", [l, c] = k.useState(
2000
2000
  e.value === void 0 ? /* @__PURE__ */ new Date() : e.value
2001
2001
  ), d = !r && i;
@@ -2005,13 +2005,13 @@ function gt(e) {
2005
2005
  let _ = (h) => {
2006
2006
  c(h), e.onValue({ value: h, name: e.name });
2007
2007
  }, u = (h) => {
2008
- const v = h.target.getBoundingClientRect(), p = v.left, g = v.top;
2009
- Ne.setListener(
2008
+ const g = h.target.getBoundingClientRect(), v = g.left, p = g.top;
2009
+ Fe.setListener(
2010
2010
  "form",
2011
2011
  /* @__PURE__ */ n.jsx(
2012
- Gr,
2012
+ Zr,
2013
2013
  {
2014
- position: { x: p, y: g },
2014
+ position: { x: v, y: p },
2015
2015
  onValue: _,
2016
2016
  date: l
2017
2017
  },
@@ -2042,7 +2042,7 @@ function gt(e) {
2042
2042
  onClick: u,
2043
2043
  ...m,
2044
2044
  "data-edit": (r && i) + "",
2045
- children: z.Date(l, "dd.mm.yyyy")
2045
+ children: K.Date(l, "dd.mm.yyyy")
2046
2046
  }
2047
2047
  ),
2048
2048
  a()
@@ -2050,7 +2050,7 @@ function gt(e) {
2050
2050
  }
2051
2051
  ) });
2052
2052
  }
2053
- const Gr = (e) => {
2053
+ const Zr = (e) => {
2054
2054
  let [t, a] = k.useState(!0), r = /* @__PURE__ */ new Date(), i = new Date(e.date), s = {
2055
2055
  y: parseInt(r.getFullYear()),
2056
2056
  d: parseInt(r.getDate()),
@@ -2059,59 +2059,59 @@ const Gr = (e) => {
2059
2059
  y: parseInt(i.getFullYear()),
2060
2060
  d: parseInt(i.getDate()),
2061
2061
  m: parseInt(i.getMonth()) + 1
2062
- }, [c, d] = k.useState({ y: l.y, m: l.m }), _ = (b) => {
2063
- let S = b.getDay();
2062
+ }, [c, d] = k.useState({ y: l.y, m: l.m }), _ = (j) => {
2063
+ let S = j.getDay();
2064
2064
  return S === 0 && (S = 7), S - 1;
2065
2065
  }, u = ["пн", "вт", "ср", "чт", "пт", "сб", "вс"], f = c.m - 1, m = new Date(c.y, f), h = [];
2066
- for (let b = 0; b < _(m); b++)
2066
+ for (let j = 0; j < _(m); j++)
2067
2067
  h.push(0);
2068
2068
  for (; m.getMonth() === f; )
2069
2069
  h.push(m.getDate()), m.setDate(m.getDate() + 1);
2070
- let v = () => {
2070
+ let g = () => {
2071
2071
  a(!1);
2072
+ }, v = () => {
2073
+ y(c.m + 1, c.y);
2072
2074
  }, p = () => {
2073
- j(c.m + 1, c.y);
2074
- }, g = () => {
2075
- j(c.m - 1, c.y);
2076
- }, y = (b) => {
2075
+ y(c.m - 1, c.y);
2076
+ }, C = (j) => {
2077
2077
  e.onValue(
2078
- c.y + "-" + z.Number(2, c.m) + "-" + z.Number(2, b)
2079
- ), v();
2080
- }, j = (b, S) => {
2081
- S = b > 12 ? S + 1 : b < 1 ? S - 1 : S, b = b > 12 ? 1 : b < 1 ? 12 : b, d({ y: S, m: b });
2082
- }, D = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, I = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2078
+ c.y + "-" + K.Number(2, c.m) + "-" + K.Number(2, j)
2079
+ ), g();
2080
+ }, y = (j, S) => {
2081
+ S = j > 12 ? S + 1 : j < 1 ? S - 1 : S, j = j > 12 ? 1 : j < 1 ? 12 : j, d({ y: S, m: j });
2082
+ }, B = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, N = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2083
2083
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2084
2084
  /* @__PURE__ */ n.jsx(
2085
2085
  "div",
2086
2086
  {
2087
- className: ve.o,
2088
- onClick: () => v()
2087
+ className: Ce.o,
2088
+ onClick: () => g()
2089
2089
  },
2090
2090
  (/* @__PURE__ */ new Date()).getTime()
2091
2091
  ),
2092
2092
  /* @__PURE__ */ n.jsxs(
2093
2093
  "div",
2094
2094
  {
2095
- className: ve.c,
2096
- style: { top: D + "px", left: I + "px" },
2095
+ className: Ce.c,
2096
+ style: { top: B + "px", left: N + "px" },
2097
2097
  children: [
2098
2098
  /* @__PURE__ */ n.jsxs("s", { children: [
2099
- /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => g() }),
2099
+ /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => p() }),
2100
2100
  /* @__PURE__ */ n.jsxs("h2", { children: [
2101
- z.Month(c.m).name,
2101
+ K.Month(c.m).name,
2102
2102
  " ",
2103
2103
  c.y
2104
2104
  ] }),
2105
- /* @__PURE__ */ n.jsx("i", { "data-icon": "F022", onClick: () => p() })
2105
+ /* @__PURE__ */ n.jsx("i", { "data-icon": "F022", onClick: () => v() })
2106
2106
  ] }),
2107
2107
  /* @__PURE__ */ n.jsxs("div", { children: [
2108
- u.map((b, S) => /* @__PURE__ */ n.jsx("p", { children: b }, "v" + S)),
2109
- h.map((b, S) => /* @__PURE__ */ n.jsx("span", { children: b !== 0 ? /* @__PURE__ */ n.jsx(
2108
+ u.map((j, S) => /* @__PURE__ */ n.jsx("p", { children: j }, "v" + S)),
2109
+ h.map((j, S) => /* @__PURE__ */ n.jsx("span", { children: j !== 0 ? /* @__PURE__ */ n.jsx(
2110
2110
  "b",
2111
2111
  {
2112
- color: s.y === c.y && s.m === c.m && s.d === b ? "_FFEB3B" : "",
2113
- onClick: () => y(b),
2114
- children: b
2112
+ color: s.y === c.y && s.m === c.m && s.d === j ? "_FFEB3B" : "",
2113
+ onClick: () => C(j),
2114
+ children: j
2115
2115
  }
2116
2116
  ) : /* @__PURE__ */ n.jsx("p", {}) }, S))
2117
2117
  ] })
@@ -2120,57 +2120,57 @@ const Gr = (e) => {
2120
2120
  )
2121
2121
  ] }) : "" });
2122
2122
  };
2123
- function Kr({ children: e }) {
2123
+ function Ur({ children: e }) {
2124
2124
  return /* @__PURE__ */ n.jsx("div", { className: "l", children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2125
2125
  }
2126
- const zr = "_white_11p39_14", Zr = "_black_11p39_26", Ur = "_shake_11p39_1", Vr = "_modal_11p39_73", Yr = "_o_11p39_83", Hr = "_w_11p39_14", qr = "_h_11p39_107", Jr = "_l_11p39_121", Xr = "_t_11p39_159", Qr = "_m_11p39_73", ei = "_x_11p39_167", ti = "_s_11p39_177", ni = "_c_11p39_182", ai = "_f_11p39_187", ri = "_btn_11p39_230", ii = "_g_11p39_243", si = "_confirm_11p39_322", oi = "_cancel_11p39_327", li = "_disabled_11p39_332", ci = "_active_11p39_389", _i = "_coincidence_11p39_395", di = "_sa_11p39_431", ui = "_ss_11p39_435", fi = "_sm_11p39_439", mi = "_sl_11p39_443", hi = "_sx_11p39_447", xi = "_sf_11p39_451", ne = {
2127
- white: zr,
2128
- black: Zr,
2129
- shake: Ur,
2130
- modal: Vr,
2131
- o: Yr,
2132
- w: Hr,
2133
- h: qr,
2134
- l: Jr,
2135
- t: Xr,
2136
- m: Qr,
2137
- x: ei,
2138
- s: ti,
2139
- c: ni,
2140
- f: ai,
2141
- btn: ri,
2142
- g: ii,
2126
+ const Vr = "_white_11p39_14", Yr = "_black_11p39_26", Hr = "_shake_11p39_1", qr = "_modal_11p39_73", Jr = "_o_11p39_83", Xr = "_w_11p39_14", Qr = "_h_11p39_107", ei = "_l_11p39_121", ti = "_t_11p39_159", ni = "_m_11p39_73", ai = "_x_11p39_167", ri = "_s_11p39_177", ii = "_c_11p39_182", si = "_f_11p39_187", oi = "_btn_11p39_230", li = "_g_11p39_243", ci = "_confirm_11p39_322", _i = "_cancel_11p39_327", di = "_disabled_11p39_332", ui = "_active_11p39_389", fi = "_coincidence_11p39_395", mi = "_sa_11p39_431", hi = "_ss_11p39_435", xi = "_sm_11p39_439", gi = "_sl_11p39_443", pi = "_sx_11p39_447", vi = "_sf_11p39_451", ne = {
2127
+ white: Vr,
2128
+ black: Yr,
2129
+ shake: Hr,
2130
+ modal: qr,
2131
+ o: Jr,
2132
+ w: Xr,
2133
+ h: Qr,
2134
+ l: ei,
2135
+ t: ti,
2136
+ m: ni,
2137
+ x: ai,
2138
+ s: ri,
2139
+ c: ii,
2140
+ f: si,
2141
+ btn: oi,
2142
+ g: li,
2143
2143
  "size-a": "_size-a_11p39_296",
2144
2144
  "size-s": "_size-s_11p39_300",
2145
2145
  "size-m": "_size-m_11p39_304",
2146
2146
  "size-l": "_size-l_11p39_308",
2147
2147
  "size-x": "_size-x_11p39_312",
2148
2148
  "size-f": "_size-f_11p39_316",
2149
- confirm: si,
2150
- cancel: oi,
2151
- disabled: li,
2149
+ confirm: ci,
2150
+ cancel: _i,
2151
+ disabled: di,
2152
2152
  await: "_await_11p39_339",
2153
- active: ci,
2154
- coincidence: _i,
2155
- sa: di,
2156
- ss: ui,
2157
- sm: fi,
2158
- sl: mi,
2159
- sx: hi,
2160
- sf: xi
2153
+ active: ui,
2154
+ coincidence: fi,
2155
+ sa: mi,
2156
+ ss: hi,
2157
+ sm: xi,
2158
+ sl: gi,
2159
+ sx: pi,
2160
+ sf: vi
2161
2161
  };
2162
- function gi({ children: e }) {
2162
+ function ki({ children: e }) {
2163
2163
  return /* @__PURE__ */ n.jsx("div", { className: ne.s, children: e });
2164
2164
  }
2165
- function pi({ children: e, className: t }) {
2165
+ function bi({ children: e, className: t }) {
2166
2166
  let a = {};
2167
2167
  return t && (a.className = t), /* @__PURE__ */ n.jsx("div", { "data-form": "outline", ...a, children: /* @__PURE__ */ n.jsx("ul", { children: e }) });
2168
2168
  }
2169
- function vi({ children: e }) {
2169
+ function Ci({ children: e }) {
2170
2170
  return /* @__PURE__ */ n.jsx("div", { className: ne.c, children: e });
2171
2171
  }
2172
- let Ze = {};
2173
- function ki({
2172
+ let Ve = {};
2173
+ function ji({
2174
2174
  title: e,
2175
2175
  children: t,
2176
2176
  button: a,
@@ -2240,7 +2240,7 @@ function ki({
2240
2240
  )
2241
2241
  ] }),
2242
2242
  t,
2243
- a !== void 0 ? /* @__PURE__ */ n.jsx(fr, { label: a.label, onSend: _ }) : ""
2243
+ a !== void 0 ? /* @__PURE__ */ n.jsx(xr, { label: a.label, onSend: _ }) : ""
2244
2244
  ]
2245
2245
  }
2246
2246
  )
@@ -2248,13 +2248,13 @@ function ki({
2248
2248
  }
2249
2249
  ) : "" });
2250
2250
  }
2251
- function Ci(e) {
2252
- Ze.add(/* @__PURE__ */ n.jsx(yi, { children: e }, String(Date.now())));
2251
+ function yi(e) {
2252
+ Ve.add(/* @__PURE__ */ n.jsx(wi, { children: e }, String(Date.now())));
2253
2253
  }
2254
- function yi({ children: e }) {
2254
+ function wi({ children: e }) {
2255
2255
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
2256
2256
  }
2257
- function bi(e) {
2257
+ function Si(e) {
2258
2258
  if (e.target.classList[0] !== "modal")
2259
2259
  return;
2260
2260
  let t = e.target.children[0];
@@ -2262,31 +2262,31 @@ function bi(e) {
2262
2262
  t.setAttribute("shake", !1);
2263
2263
  }, 1e3);
2264
2264
  }
2265
- function ji({ type: e, name: t, params: a }) {
2265
+ function Ei({ type: e, name: t, params: a }) {
2266
2266
  let [r, i] = k.useState(null);
2267
2267
  return k.useEffect(() => {
2268
- Ze.config(e, t, a, i);
2268
+ Ve.config(e, t, a, i);
2269
2269
  }, [a.id]), /* @__PURE__ */ n.jsx(n.Fragment, { children: r });
2270
2270
  }
2271
- function wi(e, t, a) {
2272
- Ze.config(e, t, a);
2273
- }
2274
- function Si(e) {
2275
- Ze.x(e);
2276
- }
2277
- const pn = {
2278
- List: Kr,
2279
- Scroll: gi,
2280
- Main: ki,
2281
- Add: Ci,
2282
- Icon: ji,
2283
- Open: wi,
2284
- Shake: bi,
2285
- Form: pi,
2286
- Center: vi,
2287
- Close: Si
2271
+ function Ti(e, t, a) {
2272
+ Ve.config(e, t, a);
2273
+ }
2274
+ function Ri(e) {
2275
+ Ve.x(e);
2276
+ }
2277
+ const bn = {
2278
+ List: Ur,
2279
+ Scroll: ki,
2280
+ Main: ji,
2281
+ Add: yi,
2282
+ Icon: Ei,
2283
+ Open: Ti,
2284
+ Shake: Si,
2285
+ Form: bi,
2286
+ Center: Ci,
2287
+ Close: Ri
2288
2288
  };
2289
- function pt({
2289
+ function bt({
2290
2290
  value: e,
2291
2291
  onValue: t,
2292
2292
  name: a,
@@ -2301,45 +2301,45 @@ function pt({
2301
2301
  view: f,
2302
2302
  modal: m,
2303
2303
  module: h,
2304
- options: v,
2305
- className: p
2304
+ options: g,
2305
+ className: v
2306
2306
  }) {
2307
- let [g, y] = k.useState(e), j = (b) => {
2307
+ let [p, C] = k.useState(e), y = (j) => {
2308
2308
  if (!(c && _) || !m)
2309
2309
  return;
2310
2310
  let S = m.split(".");
2311
- pn.Open(S[0], S[1], {
2311
+ bn.Open(S[0], S[1], {
2312
2312
  callback: (w) => {
2313
- t && t({ value: w, name: a }), y(w);
2313
+ t && t({ value: w, name: a }), C(w);
2314
2314
  },
2315
2315
  onValue: t,
2316
- options: v,
2316
+ options: g,
2317
2317
  name: a,
2318
2318
  value: e
2319
2319
  });
2320
2320
  };
2321
- const D = {};
2322
- D.field = "input", p && (D.className = p);
2323
- const I = {};
2324
- return r && (I.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
2321
+ const B = {};
2322
+ B.field = "input", v && (B.className = v);
2323
+ const N = {};
2324
+ return r && (N.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...B, children: [
2325
2325
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
2326
2326
  /* @__PURE__ */ n.jsx(
2327
2327
  "dd",
2328
2328
  {
2329
- ...I,
2330
- onClick: j,
2329
+ ...N,
2330
+ onClick: y,
2331
2331
  edit: (c && _) + "",
2332
2332
  "data-after": u,
2333
- children: g
2333
+ children: p
2334
2334
  }
2335
2335
  ),
2336
2336
  s && /* @__PURE__ */ n.jsx("em", { children: s })
2337
2337
  ] });
2338
2338
  }
2339
- function vt(e) {
2339
+ function Ct(e) {
2340
2340
  let t = e.value, a = (f) => e.type === "multi" ? f.replace(/[^+\d.+-]/g, "") : f.replace(/[^+\d.]/g, ""), r = (f, m) => {
2341
- let h = document.createRange(), v = window.getSelection();
2342
- h.setStart(m.childNodes[0], f), h.collapse(!0), v.removeAllRanges(), v.addRange(h), m.focus();
2341
+ let h = document.createRange(), g = window.getSelection();
2342
+ h.setStart(m.childNodes[0], f), h.collapse(!0), g.removeAllRanges(), g.addRange(h), m.focus();
2343
2343
  }, i = (f) => {
2344
2344
  e.onValue({
2345
2345
  value: a(f.target.textContent),
@@ -2349,7 +2349,7 @@ function vt(e) {
2349
2349
  f.target.textContent === "" && (f.target.textContent = 0), e.onValue({
2350
2350
  value: a(f.target.textContent),
2351
2351
  name: e.name
2352
- }), f.target.textContent = z.Money(f.target.textContent);
2352
+ }), f.target.textContent = K.Money(f.target.textContent);
2353
2353
  }, l = (f) => {
2354
2354
  f.target.textContent = a(f.target.textContent);
2355
2355
  }, c = (f) => {
@@ -2377,7 +2377,7 @@ function vt(e) {
2377
2377
  contentEditable: !0,
2378
2378
  suppressContentEditableWarning: !0,
2379
2379
  "e-after": e.after,
2380
- children: z.Money(t)
2380
+ children: K.Money(t)
2381
2381
  }
2382
2382
  ),
2383
2383
  u()
@@ -2385,7 +2385,7 @@ function vt(e) {
2385
2385
  }
2386
2386
  );
2387
2387
  }
2388
- function vn({
2388
+ function Cn({
2389
2389
  value: e,
2390
2390
  onValue: t,
2391
2391
  name: a,
@@ -2401,18 +2401,18 @@ function vn({
2401
2401
  k.useEffect(() => {
2402
2402
  f(e);
2403
2403
  }, [e]);
2404
- let m = (p) => {
2405
- f(p), t && t({ value: p, name: a });
2406
- }, h = (p) => {
2404
+ let m = (v) => {
2405
+ f(v), t && t({ value: v, name: a });
2406
+ }, h = (v) => {
2407
2407
  if (!s || !l)
2408
2408
  return;
2409
- const g = p.target.getBoundingClientRect(), y = g.left, j = g.top;
2410
- Ne.setListener(
2409
+ const p = v.target.getBoundingClientRect(), C = p.left, y = p.top;
2410
+ Fe.setListener(
2411
2411
  "form",
2412
2412
  /* @__PURE__ */ n.jsx(
2413
- Ei,
2413
+ Bi,
2414
2414
  {
2415
- position: { x: y, y: j },
2415
+ position: { x: C, y },
2416
2416
  onValue: m,
2417
2417
  date: u
2418
2418
  },
@@ -2420,8 +2420,8 @@ function vn({
2420
2420
  )
2421
2421
  );
2422
2422
  };
2423
- const v = {};
2424
- return d && (v.placeholder = d), /* @__PURE__ */ n.jsx(n.Fragment, { children: r === "icon" ? /* @__PURE__ */ n.jsx(
2423
+ const g = {};
2424
+ return d && (g.placeholder = d), /* @__PURE__ */ n.jsx(n.Fragment, { children: r === "icon" ? /* @__PURE__ */ n.jsx(
2425
2425
  "i",
2426
2426
  {
2427
2427
  "data-icon": "F043",
@@ -2436,8 +2436,8 @@ function vn({
2436
2436
  "dd",
2437
2437
  {
2438
2438
  onClick: h,
2439
- ...v,
2440
- children: z.Date(u, "mm.yyyy")
2439
+ ...g,
2440
+ children: K.Date(u, "mm.yyyy")
2441
2441
  }
2442
2442
  ),
2443
2443
  i && /* @__PURE__ */ n.jsx("em", { children: i })
@@ -2445,7 +2445,7 @@ function vn({
2445
2445
  }
2446
2446
  ) });
2447
2447
  }
2448
- const Ei = (e) => {
2448
+ const Bi = (e) => {
2449
2449
  let [t, a] = k.useState(!0), r = /* @__PURE__ */ new Date(), i = new Date(e.date), s = {
2450
2450
  y: parseInt(r.getFullYear()),
2451
2451
  m: parseInt(r.getMonth()) + 1
@@ -2458,14 +2458,14 @@ const Ei = (e) => {
2458
2458
  d(c + 1);
2459
2459
  }, f = () => {
2460
2460
  d(c - 1);
2461
- }, m = (y) => {
2462
- e.onValue(c + "-" + z.Number(2, y)), _();
2463
- }, h = (y) => s.y === l.y && s.m === y ? "_FFEB3B" : "", v = Array(12).fill("").map((y, j) => j + 1), p = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, g = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2461
+ }, m = (C) => {
2462
+ e.onValue(c + "-" + K.Number(2, C)), _();
2463
+ }, h = (C) => s.y === l.y && s.m === C ? "_FFEB3B" : "", g = Array(12).fill("").map((C, y) => y + 1), v = window.innerHeight - e.position.y + 33 < 320 ? e.position.y - 312 : e.position.y + 33, p = window.innerWidth - e.position.x < 265 ? e.position.x - 235 : e.position.x;
2464
2464
  return /* @__PURE__ */ n.jsx(n.Fragment, { children: t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2465
2465
  /* @__PURE__ */ n.jsx(
2466
2466
  "div",
2467
2467
  {
2468
- className: ve.o,
2468
+ className: Ce.o,
2469
2469
  onClick: () => _()
2470
2470
  },
2471
2471
  (/* @__PURE__ */ new Date()).getTime()
@@ -2473,8 +2473,8 @@ const Ei = (e) => {
2473
2473
  /* @__PURE__ */ n.jsxs(
2474
2474
  "div",
2475
2475
  {
2476
- className: ve.c,
2477
- style: { top: p + "px", left: g + "px" },
2476
+ className: Ce.c,
2477
+ style: { top: v + "px", left: p + "px" },
2478
2478
  children: [
2479
2479
  /* @__PURE__ */ n.jsxs("s", { children: [
2480
2480
  /* @__PURE__ */ n.jsx("i", { "data-icon": "F021", onClick: () => f() }),
@@ -2484,16 +2484,16 @@ const Ei = (e) => {
2484
2484
  /* @__PURE__ */ n.jsx(
2485
2485
  "div",
2486
2486
  {
2487
- children: v.map((y, j) => /* @__PURE__ */ n.jsx(
2487
+ children: g.map((C, y) => /* @__PURE__ */ n.jsx(
2488
2488
  "span",
2489
2489
  {
2490
2490
  onClick: () => {
2491
- m(y);
2491
+ m(C);
2492
2492
  },
2493
- color: h(y),
2494
- children: /* @__PURE__ */ n.jsx("b", { children: z.Month(y).abc })
2493
+ color: h(C),
2494
+ children: /* @__PURE__ */ n.jsx("b", { children: K.Month(C).abc })
2495
2495
  },
2496
- j
2496
+ y
2497
2497
  ))
2498
2498
  }
2499
2499
  )
@@ -2502,25 +2502,25 @@ const Ei = (e) => {
2502
2502
  )
2503
2503
  ] }) : "" });
2504
2504
  };
2505
- function kn(e) {
2505
+ function jn(e) {
2506
2506
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", [r, i] = k.useState(!1), s = e.edit !== void 0 ? e.edit : !0, l = e.active !== void 0 ? e.active : !0, d = !!(e.hide && (e.value === "" || e.value === void 0)) && !(s && l);
2507
2507
  r = s ? !0 : r;
2508
- let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (g) => {
2509
- e.onValue && e.onValue({ value: g.target.innerText, name: e.name });
2510
- }, f = (g) => {
2511
- g.preventDefault(), navigator.clipboard.readText().then((y) => {
2512
- window.document.execCommand("insertText", !1, y);
2513
- }).catch((y) => {
2508
+ let _ = e.placeholder !== void 0 ? e.placeholder : "Заметка пуста", u = (p) => {
2509
+ e.onValue && e.onValue({ value: p.target.innerText, name: e.name });
2510
+ }, f = (p) => {
2511
+ p.preventDefault(), navigator.clipboard.readText().then((C) => {
2512
+ window.document.execCommand("insertText", !1, C);
2513
+ }).catch((C) => {
2514
2514
  });
2515
- }, m = (g) => {
2515
+ }, m = (p) => {
2516
2516
  s || i(!r);
2517
2517
  };
2518
- const h = (g) => {
2519
- e.onSave && e.onSave({ value: g.target.innerText, name: e.name });
2520
- }, v = {};
2521
- v.field = "notes", e.className && (v.className = e.className);
2522
- const p = {};
2523
- return _ && (p.placeholder = _), r && (p.open = ""), s && l && (p.edit = ""), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
2518
+ const h = (p) => {
2519
+ e.onSave && e.onSave({ value: p.target.innerText, name: e.name });
2520
+ }, g = {};
2521
+ g.field = "notes", e.className && (g.className = e.className);
2522
+ const v = {};
2523
+ return _ && (v.placeholder = _), r && (v.open = ""), s && l && (v.edit = ""), d ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...g, children: [
2524
2524
  t(),
2525
2525
  /* @__PURE__ */ n.jsx(
2526
2526
  "dd",
@@ -2529,7 +2529,7 @@ function kn(e) {
2529
2529
  onInput: u,
2530
2530
  onBlur: h,
2531
2531
  contentEditable: s && l ? "plaintext-only" : "false",
2532
- ...p,
2532
+ ...v,
2533
2533
  onDoubleClick: m,
2534
2534
  suppressContentEditableWarning: !0,
2535
2535
  children: e.value
@@ -2538,7 +2538,7 @@ function kn(e) {
2538
2538
  a()
2539
2539
  ] });
2540
2540
  }
2541
- function kt({
2541
+ function jt({
2542
2542
  onValue: e,
2543
2543
  active: t,
2544
2544
  max: a,
@@ -2554,20 +2554,20 @@ function kt({
2554
2554
  after: m,
2555
2555
  view: h
2556
2556
  }) {
2557
- let v = () => i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "", p = () => s ? /* @__PURE__ */ n.jsx("em", { children: s }) : "";
2557
+ let g = () => i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "", v = () => s ? /* @__PURE__ */ n.jsx("em", { children: s }) : "";
2558
2558
  r = r !== void 0 ? r : !0, t = t !== void 0 ? t : !0, c = !!(c && (d === "" || d === void 0)) && !(r && t), _ = _ !== void 0 ? _ : "", a = a !== void 0 ? a : 99;
2559
- let y = !1, j = (E) => {
2559
+ let C = !1, y = (E) => {
2560
2560
  e && e({ value: E.target.textContent, name: f });
2561
- }, D = (E) => {
2562
- if (!(y && E.which === 86)) {
2561
+ }, B = (E) => {
2562
+ if (!(C && E.which === 86)) {
2563
2563
  if (E.which === 17 || E.which === 91)
2564
- return y = !0;
2564
+ return C = !0;
2565
2565
  E.key !== "Backspace" && (E.target.textContent.length === a && E.preventDefault(), E.key === "Enter" && E.preventDefault(), isNaN(parseInt(String.fromCharCode(E.which))) && E.preventDefault());
2566
2566
  }
2567
- }, I = (E) => {
2567
+ }, N = (E) => {
2568
2568
  if (E.which === 17 || E.which === 91)
2569
- return y = !1;
2570
- }, b = (E) => {
2569
+ return C = !1;
2570
+ }, j = (E) => {
2571
2571
  E.preventDefault(), navigator.clipboard.readText().then((O) => {
2572
2572
  O = O.replace(/\D/g, ""), window.document.execCommand(
2573
2573
  "insertText",
@@ -2581,23 +2581,23 @@ function kt({
2581
2581
  S.field = "input", u && (S.className = u);
2582
2582
  let w = {};
2583
2583
  return r && t ? (w.edit = "true", w.contentEditable = "plaintext-only") : w.contentEditable = "false", _ && (w.placeholder = _), m && (w.after = m), c ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...S, children: [
2584
- v(),
2584
+ g(),
2585
2585
  /* @__PURE__ */ n.jsx(
2586
2586
  "dd",
2587
2587
  {
2588
2588
  ...w,
2589
- onPaste: b,
2590
- onInput: j,
2591
- onKeyDown: D,
2592
- onKeyUp: I,
2589
+ onPaste: j,
2590
+ onInput: y,
2591
+ onKeyDown: B,
2592
+ onKeyUp: N,
2593
2593
  suppressContentEditableWarning: !0,
2594
2594
  children: d
2595
2595
  }
2596
2596
  ),
2597
- p()
2597
+ v()
2598
2598
  ] });
2599
2599
  }
2600
- function Cn({
2600
+ function yn({
2601
2601
  value: e,
2602
2602
  onValue: t,
2603
2603
  name: a,
@@ -2610,28 +2610,28 @@ function Cn({
2610
2610
  reload: _ = !1,
2611
2611
  after: u = ""
2612
2612
  }) {
2613
- let f = (g) => {
2613
+ let f = (p) => {
2614
2614
  t && t({
2615
- value: g.target.textContent,
2615
+ value: p.target.textContent,
2616
2616
  name: a,
2617
2617
  reload: _
2618
2618
  });
2619
- }, m = (g) => {
2620
- g.key === "Enter" && g.preventDefault();
2621
- }, h = (g) => {
2622
- g.preventDefault(), navigator.clipboard.readText().then((y) => {
2619
+ }, m = (p) => {
2620
+ p.key === "Enter" && p.preventDefault();
2621
+ }, h = (p) => {
2622
+ p.preventDefault(), navigator.clipboard.readText().then((C) => {
2623
2623
  window.document.execCommand(
2624
2624
  "insertText",
2625
2625
  !1,
2626
- y.replace(/(\r\n|\n|\r)/gm, " ")
2626
+ C.replace(/(\r\n|\n|\r)/gm, " ")
2627
2627
  );
2628
- }).catch((y) => {
2628
+ }).catch((C) => {
2629
2629
  });
2630
2630
  };
2631
+ const g = {};
2632
+ g.field = "password", i && (g.className = i);
2631
2633
  const v = {};
2632
- v.field = "password", i && (v.className = i);
2633
- const p = {};
2634
- return r && (p.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...v, children: [
2634
+ return r && (v.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { ...g, children: [
2635
2635
  s ? /* @__PURE__ */ n.jsx("dt", { children: s }) : "",
2636
2636
  /* @__PURE__ */ n.jsx(
2637
2637
  "dd",
@@ -2641,7 +2641,7 @@ function Cn({
2641
2641
  onKeyDown: m,
2642
2642
  onBlur: le.Blur,
2643
2643
  contentEditable: c && d ? "plaintext-only" : "false",
2644
- ...p,
2644
+ ...v,
2645
2645
  suppressContentEditableWarning: !0,
2646
2646
  children: e
2647
2647
  }
@@ -2649,7 +2649,7 @@ function Cn({
2649
2649
  l ? /* @__PURE__ */ n.jsx("em", { children: l }) : ""
2650
2650
  ] });
2651
2651
  }
2652
- const rt = {
2652
+ const st = {
2653
2653
  0: {
2654
2654
  name: "Heard Island and Mcdonald Islands",
2655
2655
  dial_code: "+0",
@@ -4031,7 +4031,7 @@ const rt = {
4031
4031
  mask: "+1939(___) ___-__-__"
4032
4032
  }
4033
4033
  };
4034
- function Ct({
4034
+ function yt({
4035
4035
  value: e,
4036
4036
  onValue: t,
4037
4037
  onSave: a,
@@ -4048,42 +4048,42 @@ function Ct({
4048
4048
  className: h = ""
4049
4049
  }) {
4050
4050
  d = d !== void 0 ? d : !0, _ = _ !== void 0 ? _ : !0, c = !!(c && (e === "" || e === void 0)) && !(d && _), k.useRef(null);
4051
- let p = "+_(___) ___-__-__", g = !0, y = 0, j = (A, F) => {
4051
+ let v = "+_(___) ___-__-__", p = !0, C = 0, y = (A, F) => {
4052
4052
  let V = document.createRange(), Y = window.getSelection();
4053
4053
  V.setStart(F.childNodes[0], A), V.collapse(!0), Y.removeAllRanges(), Y.addRange(V), F.focus();
4054
- }, D = (A) => {
4054
+ }, B = (A) => {
4055
4055
  A.preventDefault(), navigator.clipboard.readText().then((F) => {
4056
4056
  window.document.execCommand("insertText", !1, F);
4057
4057
  }).catch((F) => {
4058
4058
  });
4059
- }, I = (A) => {
4059
+ }, N = (A) => {
4060
4060
  let F = 0, V = "", Y = A.replace(/\D/g, "");
4061
- Y === "" && (g = !0);
4062
- let Fe = Y.split(""), te = "";
4063
- Fe.forEach((Pe) => {
4064
- g && (te += Pe, rt[te] !== void 0 && g ? (g = !1, p = rt[te].mask.replace(new RegExp("[0-9]", "g"), "_"), V = rt[te].code) : (g && (y = ("" + te).length, p = `+${te}_(___) ___-__-__`.replace(
4061
+ Y === "" && (p = !0);
4062
+ let Le = Y.split(""), te = "";
4063
+ Le.forEach(($e) => {
4064
+ p && (te += $e, st[te] !== void 0 && p ? (p = !1, v = st[te].mask.replace(new RegExp("[0-9]", "g"), "_"), V = st[te].code) : (p && (C = ("" + te).length, v = `+${te}_(___) ___-__-__`.replace(
4065
4065
  new RegExp("[0-9]", "g"),
4066
4066
  "_"
4067
- ), V = ""), y > ("" + te).length && (g = !0, p = `+${te}_(___) ___-__-__`.replace(
4067
+ ), V = ""), C > ("" + te).length && (p = !0, v = `+${te}_(___) ___-__-__`.replace(
4068
4068
  new RegExp("[0-9]", "g"),
4069
4069
  "_"
4070
4070
  ), V = "")));
4071
4071
  });
4072
- let be = p.replace(/\D/g, "");
4073
- return be.length >= Y.length && (Y = be), { q: p.replace(/[_\d]/g, function() {
4072
+ let Se = v.replace(/\D/g, "");
4073
+ return Se.length >= Y.length && (Y = Se), { q: v.replace(/[_\d]/g, function() {
4074
4074
  return Y.charAt(F++) || "_";
4075
4075
  }), i: F, v: Y, f: V };
4076
- }, b = (A) => {
4076
+ }, j = (A) => {
4077
4077
  A.preventDefault(), navigator.clipboard.writeText(A.target.textContent.replace(/\D/g, "")).then(
4078
4078
  function() {
4079
- Ge.Copy("Данные в буфер обмене");
4079
+ Ke.Copy("Данные в буфер обмене");
4080
4080
  },
4081
4081
  function(F) {
4082
4082
  }
4083
4083
  );
4084
- }, S = I(e), w = (A) => {
4085
- let F = I(A.target.textContent);
4086
- A.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== p ? F.i++ : F.i = F.q.indexOf("_"), j(F.i, A.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
4084
+ }, S = N(e), w = (A) => {
4085
+ let F = N(A.target.textContent);
4086
+ A.target.textContent = F.q, F.i = F.q.lastIndexOf(F.v.substr(-1)), F.i < F.q.length && F.q !== v ? F.i++ : F.i = F.q.indexOf("_"), y(F.i, A.target), t && t({ value: F.q.replace(/\D/g, ""), name: r });
4087
4087
  }, E = (A) => {
4088
4088
  A.key === "Enter" && A.preventDefault();
4089
4089
  };
@@ -4101,10 +4101,10 @@ function Ct({
4101
4101
  "dd",
4102
4102
  {
4103
4103
  ...ie,
4104
- onPaste: D,
4104
+ onPaste: B,
4105
4105
  onInput: w,
4106
4106
  onKeyDown: E,
4107
- onContextMenu: b,
4107
+ onContextMenu: j,
4108
4108
  onBlur: O,
4109
4109
  suppressContentEditableWarning: !0,
4110
4110
  children: S.q
@@ -4113,7 +4113,7 @@ function Ct({
4113
4113
  l && /* @__PURE__ */ n.jsx("em", { children: l })
4114
4114
  ] });
4115
4115
  }
4116
- const yn = (e) => {
4116
+ const wn = (e) => {
4117
4117
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = e.edit !== void 0 ? e.edit : !0, r = e.active !== void 0 ? e.active : !0, i = e.placeholder !== void 0 ? e.placeholder : "", s = 0, l = () => {
4118
4118
  clearTimeout(s), s = setTimeout(() => {
4119
4119
  }, 1e3);
@@ -4148,7 +4148,7 @@ const yn = (e) => {
4148
4148
  }
4149
4149
  );
4150
4150
  };
4151
- function yt({
4151
+ function wt({
4152
4152
  title: e,
4153
4153
  error: t,
4154
4154
  edit: a = !0,
@@ -4164,33 +4164,33 @@ function yt({
4164
4164
  }) {
4165
4165
  const m = k.useRef();
4166
4166
  i = !!(i && (s === "" || c[s].n === void 0)) && !(a && r);
4167
- let v = s !== void 0 && s !== "" ? c[s].n : s, p = (D) => {
4168
- m.current.textContent = c[D].n, l && l({ value: D, name: _ });
4169
- }, g = (D) => {
4167
+ let g = s !== void 0 && s !== "" ? c[s].n : s, v = (B) => {
4168
+ m.current.textContent = c[B].n, l && l({ value: B, name: _ });
4169
+ }, p = (B) => {
4170
4170
  if (!(a && r))
4171
4171
  return;
4172
- const I = D.target.getBoundingClientRect();
4173
- Ne.setListener(
4172
+ const N = B.target.getBoundingClientRect();
4173
+ Fe.setListener(
4174
4174
  "form",
4175
4175
  /* @__PURE__ */ n.jsx(
4176
- Ti,
4176
+ Ni,
4177
4177
  {
4178
- parent: I,
4179
- onValue: p,
4178
+ parent: N,
4179
+ onValue: v,
4180
4180
  view: f,
4181
4181
  options: c
4182
4182
  },
4183
4183
  (/* @__PURE__ */ new Date()).getTime()
4184
4184
  )
4185
4185
  );
4186
- }, y = { field: "select" }, j = { onClick: g };
4187
- return d && (j.placeholder = d), u && (j.after = u), a && r && (j.edit = ""), i ? "" : /* @__PURE__ */ n.jsxs("dl", { ...y, children: [
4186
+ }, C = { field: "select" }, y = { onClick: p };
4187
+ return d && (y.placeholder = d), u && (y.after = u), a && r && (y.edit = ""), i ? "" : /* @__PURE__ */ n.jsxs("dl", { ...C, children: [
4188
4188
  e && /* @__PURE__ */ n.jsx("dt", { children: e }),
4189
- /* @__PURE__ */ n.jsx("dd", { ...j, ref: m, children: v }),
4189
+ /* @__PURE__ */ n.jsx("dd", { ...y, ref: m, children: g }),
4190
4190
  t && /* @__PURE__ */ n.jsx("em", { children: t })
4191
4191
  ] });
4192
4192
  }
4193
- const Ti = ({ onValue: e, parent: t, view: a, options: r }) => {
4193
+ const Ni = ({ onValue: e, parent: t, view: a, options: r }) => {
4194
4194
  let [i, s] = k.useState(!0), l = () => {
4195
4195
  s(!1);
4196
4196
  }, c = (u) => {
@@ -4230,7 +4230,7 @@ const Ti = ({ onValue: e, parent: t, view: a, options: r }) => {
4230
4230
  )
4231
4231
  ] }) : "" });
4232
4232
  };
4233
- function bt(e) {
4233
+ function St(e) {
4234
4234
  let t = () => e.title ? /* @__PURE__ */ n.jsx("dt", { children: e.title }) : "", a = () => e.error ? /* @__PURE__ */ n.jsx("em", { children: e.error }) : "", r = e.edit !== void 0 ? e.edit : !0, i = e.active !== void 0 ? e.active : !0, l = !!(e.hide && (e.default === "" || e.options[e.default] === void 0)) && !(r && i), c = e.placeholder !== void 0 ? e.placeholder : "", d = (h) => {
4235
4235
  u(e.options[h]), e.onValue({ value: h, name: e.name });
4236
4236
  }, [_, u] = k.useState(
@@ -4238,13 +4238,13 @@ function bt(e) {
4238
4238
  ), f = (h) => {
4239
4239
  if (!(r && i))
4240
4240
  return;
4241
- const v = h.target.getBoundingClientRect();
4242
- Ne.setListener(
4241
+ const g = h.target.getBoundingClientRect();
4242
+ Fe.setListener(
4243
4243
  "form",
4244
4244
  /* @__PURE__ */ n.jsx(
4245
- Ri,
4245
+ Di,
4246
4246
  {
4247
- parent: v,
4247
+ parent: g,
4248
4248
  onValue: d,
4249
4249
  view: e.view,
4250
4250
  options: e.options
@@ -4274,7 +4274,7 @@ function bt(e) {
4274
4274
  }
4275
4275
  );
4276
4276
  }
4277
- const Ri = ({ onValue: e, parent: t, view: a, options: r }) => {
4277
+ const Di = ({ onValue: e, parent: t, view: a, options: r }) => {
4278
4278
  let [i, s] = k.useState(!0), l = () => {
4279
4279
  s(!1);
4280
4280
  }, c = (f) => {
@@ -4312,7 +4312,7 @@ const Ri = ({ onValue: e, parent: t, view: a, options: r }) => {
4312
4312
  )
4313
4313
  ] }) : "" });
4314
4314
  };
4315
- function _t({
4315
+ function ut({
4316
4316
  set: e,
4317
4317
  value: t,
4318
4318
  onValue: a,
@@ -4327,10 +4327,10 @@ function _t({
4327
4327
  after: f = "",
4328
4328
  view: m,
4329
4329
  module: h,
4330
- item: v,
4331
- className: p = ""
4330
+ item: g,
4331
+ className: v = ""
4332
4332
  }) {
4333
- let g = {};
4333
+ let p = {};
4334
4334
  switch (e) {
4335
4335
  case "Input":
4336
4336
  return /* @__PURE__ */ n.jsx(
@@ -4346,12 +4346,12 @@ function _t({
4346
4346
  onValue: a,
4347
4347
  name: r,
4348
4348
  placeholder: i,
4349
- className: p
4349
+ className: v
4350
4350
  }
4351
4351
  );
4352
4352
  case "Select":
4353
- return v && (g = ce.getSelect(parseInt(v)) ? ce.getSelect(parseInt(v)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4354
- yt,
4353
+ return g && (p = ce.getSelect(parseInt(g)) ? ce.getSelect(parseInt(g)) : { 0: { s: "1", n: "не известно" } }), /* @__PURE__ */ n.jsx(
4354
+ wt,
4355
4355
  {
4356
4356
  title: s,
4357
4357
  show: _,
@@ -4363,13 +4363,13 @@ function _t({
4363
4363
  onValue: a,
4364
4364
  name: r,
4365
4365
  placeholder: i,
4366
- className: p,
4367
- options: g
4366
+ className: v,
4367
+ options: p
4368
4368
  }
4369
4369
  );
4370
4370
  case "Users":
4371
4371
  return ce.getSelect("user"), /* @__PURE__ */ n.jsx(
4372
- bt,
4372
+ St,
4373
4373
  {
4374
4374
  title: s,
4375
4375
  show: _,
@@ -4381,13 +4381,13 @@ function _t({
4381
4381
  onValue: a,
4382
4382
  name: r,
4383
4383
  placeholder: i,
4384
- className: p,
4385
- options: g
4384
+ className: v,
4385
+ options: p
4386
4386
  }
4387
4387
  );
4388
4388
  case "Date":
4389
4389
  return /* @__PURE__ */ n.jsx(
4390
- gt,
4390
+ kt,
4391
4391
  {
4392
4392
  title: s,
4393
4393
  show: _,
@@ -4399,12 +4399,12 @@ function _t({
4399
4399
  onValue: a,
4400
4400
  name: r,
4401
4401
  placeholder: i,
4402
- className: p
4402
+ className: v
4403
4403
  }
4404
4404
  );
4405
4405
  case "Phone":
4406
4406
  return /* @__PURE__ */ n.jsx(
4407
- Ct,
4407
+ yt,
4408
4408
  {
4409
4409
  title: s,
4410
4410
  show: _,
@@ -4416,12 +4416,12 @@ function _t({
4416
4416
  onValue: a,
4417
4417
  name: r,
4418
4418
  placeholder: i,
4419
- className: p
4419
+ className: v
4420
4420
  }
4421
4421
  );
4422
4422
  case "Number":
4423
4423
  return /* @__PURE__ */ n.jsx(
4424
- kt,
4424
+ jt,
4425
4425
  {
4426
4426
  title: s,
4427
4427
  show: _,
@@ -4433,12 +4433,12 @@ function _t({
4433
4433
  onValue: a,
4434
4434
  name: r,
4435
4435
  placeholder: i,
4436
- className: p
4436
+ className: v
4437
4437
  }
4438
4438
  );
4439
4439
  case "Money":
4440
4440
  return /* @__PURE__ */ n.jsx(
4441
- vt,
4441
+ Ct,
4442
4442
  {
4443
4443
  title: s,
4444
4444
  show: _,
@@ -4450,12 +4450,12 @@ function _t({
4450
4450
  onValue: a,
4451
4451
  name: r,
4452
4452
  placeholder: i,
4453
- className: p
4453
+ className: v
4454
4454
  }
4455
4455
  );
4456
4456
  case "Modal":
4457
4457
  return /* @__PURE__ */ n.jsx(
4458
- pt,
4458
+ bt,
4459
4459
  {
4460
4460
  title: s,
4461
4461
  show: _,
@@ -4467,14 +4467,14 @@ function _t({
4467
4467
  onValue: a,
4468
4468
  name: r || "",
4469
4469
  placeholder: i,
4470
- className: p,
4471
- options: g,
4470
+ className: v,
4471
+ options: p,
4472
4472
  module: h || ""
4473
4473
  }
4474
4474
  );
4475
4475
  }
4476
4476
  }
4477
- function bn({
4477
+ function Sn({
4478
4478
  value: e,
4479
4479
  onValue: t,
4480
4480
  name: a,
@@ -4489,32 +4489,32 @@ function bn({
4489
4489
  view: f,
4490
4490
  onBlur: m,
4491
4491
  onSave: h,
4492
- className: v = ""
4492
+ className: g = ""
4493
4493
  }) {
4494
- let p = !!(l && (e === "" || e === void 0));
4495
- if (!(c && d) && !u || !(c && d) && p)
4494
+ let v = !!(l && (e === "" || e === void 0));
4495
+ if (!(c && d) && !u || !(c && d) && v)
4496
4496
  return "";
4497
- let g = (I) => {
4498
- t && t({ value: I.target.innerText, name: a });
4499
- }, y = (I) => {
4500
- h && h({ value: I.target.innerText, name: a });
4501
- }, j = (I) => {
4502
- I.preventDefault(), navigator.clipboard.readText().then((b) => {
4503
- window.document.execCommand("insertText", !1, b);
4504
- }).catch((b) => {
4497
+ let p = (N) => {
4498
+ t && t({ value: N.target.innerText, name: a });
4499
+ }, C = (N) => {
4500
+ h && h({ value: N.target.innerText, name: a });
4501
+ }, y = (N) => {
4502
+ N.preventDefault(), navigator.clipboard.readText().then((j) => {
4503
+ window.document.execCommand("insertText", !1, j);
4504
+ }).catch((j) => {
4505
4505
  });
4506
4506
  };
4507
- const D = {};
4508
- return r && (D.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { children: [
4507
+ const B = {};
4508
+ return r && (B.placeholder = r), /* @__PURE__ */ n.jsxs("dl", { children: [
4509
4509
  i ?? /* @__PURE__ */ n.jsx("dt", { children: i }),
4510
4510
  /* @__PURE__ */ n.jsx(
4511
4511
  "dd",
4512
4512
  {
4513
- onPaste: j,
4514
- onBlur: y,
4515
- onInput: g,
4513
+ onPaste: y,
4514
+ onBlur: C,
4515
+ onInput: p,
4516
4516
  contentEditable: c && d ? "plaintext-only" : "false",
4517
- ...D,
4517
+ ...B,
4518
4518
  suppressContentEditableWarning: !0,
4519
4519
  children: e
4520
4520
  }
@@ -4522,7 +4522,7 @@ function bn({
4522
4522
  s ?? /* @__PURE__ */ n.jsx("em", { children: s })
4523
4523
  ] });
4524
4524
  }
4525
- function jn({
4525
+ function En({
4526
4526
  value: e,
4527
4527
  onValue: t,
4528
4528
  name: a,
@@ -4537,50 +4537,50 @@ function jn({
4537
4537
  view: f,
4538
4538
  onBlur: m,
4539
4539
  onSave: h,
4540
- className: v = ""
4540
+ className: g = ""
4541
4541
  }) {
4542
- let p = !!(l && (e === "" || e === void 0)), g = z.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), y = k.useRef(null);
4543
- if (!(c && d) && !u || !(c && d) && p)
4542
+ let v = !!(l && (e === "" || e === void 0)), p = K.Date(e === void 0 ? /* @__PURE__ */ new Date() : e, "HH:MM"), C = k.useRef(null);
4543
+ if (!(c && d) && !u || !(c && d) && v)
4544
4544
  return "";
4545
- let j = (w) => {
4546
- y.current.textContent = w, t && t({ value: w, name: a });
4547
- }, D = (w) => {
4545
+ let y = (w) => {
4546
+ C.current.textContent = w, t && t({ value: w, name: a });
4547
+ }, B = (w) => {
4548
4548
  h && h({ value: w, name: a });
4549
- }, I = (w) => {
4549
+ }, N = (w) => {
4550
4550
  const E = w.target.getBoundingClientRect(), O = E.left, q = E.top;
4551
- Ne.setListener(
4551
+ Fe.setListener(
4552
4552
  "form",
4553
4553
  /* @__PURE__ */ n.jsx(
4554
- Di,
4554
+ Ii,
4555
4555
  {
4556
4556
  positions: { x: O, y: q },
4557
- onSave: D,
4558
- onValue: j,
4559
- date: g
4557
+ onSave: B,
4558
+ onValue: y,
4559
+ date: p
4560
4560
  },
4561
4561
  (/* @__PURE__ */ new Date()).getTime()
4562
4562
  )
4563
4563
  );
4564
4564
  };
4565
- const b = {};
4566
- b.field = "input", v && (b.className = v);
4565
+ const j = {};
4566
+ j.field = "input", g && (j.className = g);
4567
4567
  const S = {};
4568
4568
  return r && (S.placeholder = r), /* @__PURE__ */ n.jsx(n.Fragment, { children: f === "icon" ? /* @__PURE__ */ n.jsx(
4569
4569
  "i",
4570
4570
  {
4571
4571
  "data-icon": "F043",
4572
- onClick: I
4572
+ onClick: N
4573
4573
  }
4574
- ) : /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
4574
+ ) : /* @__PURE__ */ n.jsxs("dl", { ...j, children: [
4575
4575
  i ? /* @__PURE__ */ n.jsx("dt", { children: i }) : "",
4576
- /* @__PURE__ */ n.jsx("dd", { onClick: I, ref: y, ...S, children: g }),
4576
+ /* @__PURE__ */ n.jsx("dd", { onClick: N, ref: C, ...S, children: p }),
4577
4577
  s ? /* @__PURE__ */ n.jsx("em", { children: s }) : ""
4578
4578
  ] }) });
4579
4579
  }
4580
- const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4580
+ const Ii = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4581
4581
  let i = r.split(":"), s = {
4582
- h: z.Number(2, i[0]),
4583
- m: z.Number(2, i[1])
4582
+ h: K.Number(2, i[0]),
4583
+ m: K.Number(2, i[1])
4584
4584
  }, l = "hour", [c, d] = k.useState({}), _ = !1, u = 0, f = 0, m = {
4585
4585
  body: k.useRef(null),
4586
4586
  time: k.useRef(null),
@@ -4593,9 +4593,9 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4593
4593
  }, [m.body, m.hour, m.time, s.m, s.h]);
4594
4594
  let h = () => {
4595
4595
  _ = !0;
4596
- }, v = () => {
4596
+ }, g = () => {
4597
4597
  _ = !1, l = l === "hour" ? "time" : "hour", m.body.current.setAttribute("active", l);
4598
- }, p = (S) => {
4598
+ }, v = (S) => {
4599
4599
  if (_) {
4600
4600
  let E = Math.atan2(
4601
4601
  S.pageX - (c.x + 78),
@@ -4603,13 +4603,13 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4603
4603
  ) * (180 / Math.PI) * -1 + 180;
4604
4604
  m[l].current.style.transform = "rotate(" + E + "deg)", l === "hour" ? (s = {
4605
4605
  ...s,
4606
- h: z.Number(2, parseInt(String(E / 15), 10))
4606
+ h: K.Number(2, parseInt(String(E / 15), 10))
4607
4607
  }, m.hourText.current.textContent = s.h) : (s = {
4608
4608
  ...s,
4609
- m: z.Number(2, parseInt(String(E / 6), 10))
4609
+ m: K.Number(2, parseInt(String(E / 6), 10))
4610
4610
  }, m.timeText.current.textContent = s.m), a(s.h + ":" + s.m);
4611
4611
  }
4612
- }, g = (S) => {
4612
+ }, p = (S) => {
4613
4613
  if (l === "hour")
4614
4614
  if (S.deltaY > 0) {
4615
4615
  u += S.deltaY;
@@ -4617,7 +4617,7 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4617
4617
  if (f !== w) {
4618
4618
  f = w;
4619
4619
  let E = parseInt(s.h, 10) + 1;
4620
- E = E > 23 ? 0 : E, s = { ...s, h: z.Number(2, E) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4620
+ E = E > 23 ? 0 : E, s = { ...s, h: K.Number(2, E) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4621
4621
  }
4622
4622
  } else {
4623
4623
  u -= S.deltaY;
@@ -4625,7 +4625,7 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4625
4625
  if (f !== w) {
4626
4626
  f = w;
4627
4627
  let E = parseInt(s.h, 10) - 1;
4628
- E = E < 0 ? 23 : E, s = { ...s, h: z.Number(2, E) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4628
+ E = E < 0 ? 23 : E, s = { ...s, h: K.Number(2, E) }, m.hourText.current.textContent = s.h, m[l].current.style.transform = "rotate(" + s.h * 15 + "deg)";
4629
4629
  }
4630
4630
  }
4631
4631
  else if (S.deltaY > 0) {
@@ -4634,7 +4634,7 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4634
4634
  if (f !== w) {
4635
4635
  f = w;
4636
4636
  let E = parseInt(s.m, 10) + 1;
4637
- E = E > 59 ? 0 : E, s = { ...s, m: z.Number(2, E) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4637
+ E = E > 59 ? 0 : E, s = { ...s, m: K.Number(2, E) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4638
4638
  }
4639
4639
  } else {
4640
4640
  u -= S.deltaY;
@@ -4642,32 +4642,32 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4642
4642
  if (f !== w) {
4643
4643
  f = w;
4644
4644
  let E = parseInt(s.m, 10) - 1;
4645
- E = E < 0 ? 59 : E, s = { ...s, m: z.Number(2, E) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4645
+ E = E < 0 ? 59 : E, s = { ...s, m: K.Number(2, E) }, m.timeText.current.textContent = s.m, m[l].current.style.transform = "rotate(" + s.m * 6 + "deg)";
4646
4646
  }
4647
4647
  }
4648
4648
  a(s.h + ":" + s.m);
4649
- }, [y, j] = k.useState(!0), D = () => {
4650
- j(!1), t(s.h + ":" + s.m);
4651
- }, I = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, b = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
4652
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: y ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4649
+ }, [C, y] = k.useState(!0), B = () => {
4650
+ y(!1), t(s.h + ":" + s.m);
4651
+ }, N = window.innerHeight - e.y + 33 < 320 ? e.y - 312 : e.y + 33, j = window.innerWidth - e.x < 265 ? e.x - 235 : e.x;
4652
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: C ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
4653
4653
  /* @__PURE__ */ n.jsx(
4654
4654
  "div",
4655
4655
  {
4656
- className: ve.o,
4657
- onClick: () => D()
4656
+ className: Ce.o,
4657
+ onClick: () => B()
4658
4658
  },
4659
4659
  (/* @__PURE__ */ new Date()).getTime()
4660
4660
  ),
4661
4661
  /* @__PURE__ */ n.jsxs(
4662
4662
  "div",
4663
4663
  {
4664
- className: ve.c,
4664
+ className: Ce.c,
4665
4665
  onMouseDown: h,
4666
- onMouseUp: v,
4667
- onMouseMove: p,
4668
- onWheel: g,
4666
+ onMouseUp: g,
4667
+ onMouseMove: v,
4668
+ onWheel: p,
4669
4669
  ref: m.body,
4670
- style: { top: I + "px", left: b + "px" },
4670
+ style: { top: N + "px", left: j + "px" },
4671
4671
  children: [
4672
4672
  /* @__PURE__ */ n.jsx("div", { className: "b" }),
4673
4673
  /* @__PURE__ */ n.jsxs("div", { className: "s", children: [
@@ -4684,7 +4684,7 @@ const Di = ({ positions: e, onSave: t, onValue: a, date: r }) => {
4684
4684
  )
4685
4685
  ] }) : "" });
4686
4686
  };
4687
- function wn({
4687
+ function Tn({
4688
4688
  onValue: e,
4689
4689
  label: t,
4690
4690
  value: a,
@@ -4704,7 +4704,7 @@ function wn({
4704
4704
  /* @__PURE__ */ n.jsx("dd", { ...u, onClick: d })
4705
4705
  ] });
4706
4706
  }
4707
- const Sn = ({ onValue: e, value: t, name: a, item: r }) => {
4707
+ const Rn = ({ onValue: e, value: t, name: a, item: r }) => {
4708
4708
  const [i, s] = k.useState(!!t);
4709
4709
  k.useEffect(() => {
4710
4710
  s(!!t);
@@ -4722,7 +4722,7 @@ const Sn = ({ onValue: e, value: t, name: a, item: r }) => {
4722
4722
  }
4723
4723
  );
4724
4724
  };
4725
- function En({
4725
+ function Bn({
4726
4726
  value: e,
4727
4727
  onValue: t,
4728
4728
  name: a,
@@ -4737,36 +4737,36 @@ function En({
4737
4737
  view: f,
4738
4738
  onBlur: m,
4739
4739
  onSave: h,
4740
- className: v = ""
4740
+ className: g = ""
4741
4741
  }) {
4742
- const [p, g] = k.useState(
4742
+ const [v, p] = k.useState(
4743
4743
  e !== void 0 ? e.split(",") : []
4744
4744
  );
4745
4745
  k.useEffect(() => {
4746
- e !== void 0 && g(e !== void 0 ? e.split(",") : []);
4746
+ e !== void 0 && p(e !== void 0 ? e.split(",") : []);
4747
4747
  }, [e]);
4748
- let y = () => {
4749
- g([...p, ""]);
4750
- }, j = (O) => {
4751
- p.splice(O, 1), p.length === 0 && p.push(""), g([...p]), m !== void 0 && m({ value: p.join(","), name: a });
4752
- }, D = !!(l && (e === "" || e === void 0)), I = (O) => {
4748
+ let C = () => {
4749
+ p([...v, ""]);
4750
+ }, y = (O) => {
4751
+ v.splice(O, 1), v.length === 0 && v.push(""), p([...v]), m !== void 0 && m({ value: v.join(","), name: a });
4752
+ }, B = !!(l && (e === "" || e === void 0)), N = (O) => {
4753
4753
  };
4754
- if (!(c && d) && !u || !(c && d) && D)
4754
+ if (!(c && d) && !u || !(c && d) && B)
4755
4755
  return "";
4756
- const b = {};
4757
- b.field = "group", v && (b.className = v);
4756
+ const j = {};
4757
+ j.field = "group", g && (j.className = g);
4758
4758
  const S = (O) => {
4759
4759
  le.Blur(O), h && h({ value: O.target.textContent, name: a });
4760
4760
  };
4761
4761
  let w = (O, q) => {
4762
- p[q] = O.target.textContent, t !== void 0 && t({ value: p.join(","), name: a });
4762
+ v[q] = O.target.textContent, t !== void 0 && t({ value: v.join(","), name: a });
4763
4763
  }, E = (O) => {
4764
4764
  O.key === "Enter" && O.preventDefault();
4765
4765
  };
4766
- return /* @__PURE__ */ n.jsxs("dl", { ...b, children: [
4766
+ return /* @__PURE__ */ n.jsxs("dl", { ...j, children: [
4767
4767
  /* @__PURE__ */ n.jsxs("dt", { children: [
4768
4768
  i,
4769
- /* @__PURE__ */ n.jsx("i", { onClick: y, children: /* @__PURE__ */ n.jsxs(
4769
+ /* @__PURE__ */ n.jsx("i", { onClick: C, children: /* @__PURE__ */ n.jsxs(
4770
4770
  "svg",
4771
4771
  {
4772
4772
  xmlns: "http://www.w3.org/2000/svg",
@@ -4783,7 +4783,7 @@ function En({
4783
4783
  }
4784
4784
  ) })
4785
4785
  ] }),
4786
- /* @__PURE__ */ n.jsx("dd", { children: p.map((O, q) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
4786
+ /* @__PURE__ */ n.jsx("dd", { children: v.map((O, q) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
4787
4787
  /* @__PURE__ */ n.jsx(
4788
4788
  "span",
4789
4789
  {
@@ -4791,19 +4791,19 @@ function En({
4791
4791
  edit: "true",
4792
4792
  name: a,
4793
4793
  placeholder: r,
4794
- onPaste: I,
4794
+ onPaste: N,
4795
4795
  contentEditable: !0,
4796
4796
  onKeyDown: E,
4797
4797
  onBlur: S,
4798
4798
  suppressContentEditableWarning: !0,
4799
- children: p[q]
4799
+ children: v[q]
4800
4800
  }
4801
4801
  ),
4802
4802
  /* @__PURE__ */ n.jsx(
4803
4803
  "i",
4804
4804
  {
4805
4805
  onClick: () => {
4806
- j(q);
4806
+ y(q);
4807
4807
  },
4808
4808
  children: /* @__PURE__ */ n.jsxs(
4809
4809
  "svg",
@@ -4827,8 +4827,8 @@ function En({
4827
4827
  s ? /* @__PURE__ */ n.jsx("em", { children: s }) : ""
4828
4828
  ] });
4829
4829
  }
4830
- const Ii = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
4831
- function Tn({
4830
+ const Mi = (e) => (e = e !== void 0 && e !== "" ? e.split(",") : [], e.reduce((t, a) => (t[a] = !0, t), {}));
4831
+ function Nn({
4832
4832
  value: e,
4833
4833
  onValue: t,
4834
4834
  name: a,
@@ -4843,29 +4843,29 @@ function Tn({
4843
4843
  view: f,
4844
4844
  modal: m,
4845
4845
  module: h,
4846
- options: v,
4847
- className: p
4846
+ options: g,
4847
+ className: v
4848
4848
  }) {
4849
- const [g, y] = k.useState(Ii(e)), j = (b) => {
4849
+ const [p, C] = k.useState(Mi(e)), y = (j) => {
4850
4850
  if (!(c && _) || !m)
4851
4851
  return;
4852
4852
  let S = m.split(".");
4853
- pn.Open(S[0], S[1], {
4853
+ bn.Open(S[0], S[1], {
4854
4854
  callback: (w) => {
4855
- t && t({ value: w, name: a }), y(w);
4855
+ t && t({ value: w, name: a }), C(w);
4856
4856
  },
4857
4857
  onValue: t,
4858
- options: v,
4858
+ options: g,
4859
4859
  name: a,
4860
- value: g
4860
+ value: p
4861
4861
  });
4862
- }, D = {};
4863
- D.field = "group", p && (D.className = p);
4864
- const I = {};
4865
- return r && (I.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...D, children: [
4862
+ }, B = {};
4863
+ B.field = "group", v && (B.className = v);
4864
+ const N = {};
4865
+ return r && (N.placeholder = r), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...B, children: [
4866
4866
  /* @__PURE__ */ n.jsxs("dt", { children: [
4867
4867
  i,
4868
- /* @__PURE__ */ n.jsx("i", { onClick: j, children: /* @__PURE__ */ n.jsxs(
4868
+ /* @__PURE__ */ n.jsx("i", { onClick: y, children: /* @__PURE__ */ n.jsxs(
4869
4869
  "svg",
4870
4870
  {
4871
4871
  width: "20",
@@ -4886,79 +4886,209 @@ function Tn({
4886
4886
  /* @__PURE__ */ n.jsx(
4887
4887
  "dd",
4888
4888
  {
4889
- ...I,
4889
+ ...N,
4890
4890
  onClick: open,
4891
4891
  edit: (c && _) + "",
4892
4892
  "data-after": u,
4893
- children: Object.keys(g).map((b) => {
4893
+ children: Object.keys(p).map((j) => {
4894
4894
  var S;
4895
- return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (S = v[b]) == null ? void 0 : S.label }, b);
4895
+ return /* @__PURE__ */ n.jsx("div", { className: "field_group_item", children: (S = g[j]) == null ? void 0 : S.label }, j);
4896
4896
  })
4897
4897
  }
4898
4898
  ),
4899
4899
  s && /* @__PURE__ */ n.jsx("em", { children: s })
4900
4900
  ] });
4901
4901
  }
4902
- const zo = {
4903
- Color: gn,
4904
- Date: gt,
4905
- Code: xn,
4906
- Check: wn,
4907
- Switch: dn,
4902
+ const Fi = {
4903
+ Color: kn,
4904
+ Date: kt,
4905
+ Code: vn,
4906
+ Check: Tn,
4907
+ Switch: mn,
4908
4908
  Input: De,
4909
- Button: un,
4910
- Message: fn,
4911
- Generator: mn,
4912
- Captcha: hn,
4913
- Modal: pt,
4914
- Money: vt,
4915
- Month: vn,
4916
- Notes: kn,
4917
- Number: kt,
4918
- Password: Cn,
4919
- Phone: Ct,
4920
- Search: yn,
4921
- Select: yt,
4922
- Set: _t,
4923
- Textarea: bn,
4924
- Time: jn,
4925
- Users: bt,
4909
+ Button: hn,
4910
+ Message: xn,
4911
+ Generator: gn,
4912
+ Captcha: pn,
4913
+ Modal: bt,
4914
+ Money: Ct,
4915
+ Month: Cn,
4916
+ Notes: jn,
4917
+ Number: jt,
4918
+ Password: yn,
4919
+ Phone: yt,
4920
+ Search: wn,
4921
+ Select: wt,
4922
+ Set: ut,
4923
+ Textarea: Sn,
4924
+ Time: En,
4925
+ Users: St,
4926
4926
  String: De,
4927
- Toogle: Sn,
4928
- Group: En,
4929
- Options: Tn
4930
- }, B = window.Telegram.WebApp;
4931
- B.getUser = () => {
4927
+ Toogle: Rn,
4928
+ Group: Bn,
4929
+ Options: Nn
4930
+ }, Pi = "_debug_1bp5r_1", Li = "_back_1bp5r_13", $i = "_options_1bp5r_18", Oi = "_tm_1bp5r_24", Ai = "_ta_1bp5r_91", ft = {
4931
+ debug: Pi,
4932
+ back: Li,
4933
+ options: $i,
4934
+ tm: Oi,
4935
+ ta: Ai,
4936
+ "--body": "_--body_1bp5r_101"
4937
+ }, D = window.Telegram.WebApp, be = { is: !1, MainButton: {}, BackButton: {} };
4938
+ let he = {};
4939
+ he.dark = {
4940
+ "--tg-theme-hint-color": "#b1c3d5",
4941
+ "--tg-theme-text-color": "#ffffff",
4942
+ "--tg-theme-link-color": "#62bcf9",
4943
+ "--tg-theme-button-text-color": "#ffffff",
4944
+ "--tg-theme-bg-color": "#18222d",
4945
+ "--tg-theme-button-color": "#2ea6ff",
4946
+ "--tg-theme-secondary-bg-color": "#131415"
4947
+ };
4948
+ he.light = {
4949
+ "--tg-theme-bg-color": "#ffffff",
4950
+ "--tg-theme-text-color": "#000000",
4951
+ "--tg-theme-hint-color": "#999999",
4952
+ "--tg-theme-link-color": "#2481cc",
4953
+ "--tg-theme-button-color": "#2481cc",
4954
+ "--tg-theme-button-text-color": "#ffffff",
4955
+ "--tg-theme-secondary-bg-color": "#efeff3"
4956
+ };
4957
+ he.users = {
4958
+ "--tg-theme-bg-color": "#000000",
4959
+ "--tg-theme-text-color": "#ffffff",
4960
+ "--tg-theme-hint-color": "#98989e",
4961
+ "--tg-theme-link-color": "#ffffff",
4962
+ "--tg-theme-button-color": "#ffffff",
4963
+ "--tg-theme-button-text-color": "#000000",
4964
+ "--tg-theme-secondary-bg-color": "#000000"
4965
+ };
4966
+ D.getUser = () => {
4932
4967
  var e;
4933
- return ((e = B.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : B.initDataUnsafe;
4968
+ return ((e = D.initDataUnsafe) == null ? void 0 : e.user) === void 0 ? {} : D.initDataUnsafe;
4934
4969
  };
4935
- B.MainButton.set = (e) => {
4936
- e === !1 ? B.MainButton.isVisible = !1 : (B.MainButton.text = e.text, B.MainButton.color = e.color, B.MainButton.textColor = e.textColor, B.MainButton.isVisible = !0, B.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, e.page === void 0 || B.MainButton.onClick(() => {
4937
- Re.setPage(e.page);
4938
- }));
4970
+ D.MainButton.set = (e) => {
4971
+ be.is || (e === !1 ? D.MainButton.isVisible = !1 : (D.MainButton.text = e.text, D.MainButton.color = e.color, D.MainButton.textColor = e.textColor, D.MainButton.isVisible = !0, D.MainButton.isActive = e.isActive === void 0 ? !0 : e.isActive, e.page === void 0 || D.MainButton.onClick(() => {
4972
+ ke.setPage(e.page);
4973
+ })));
4939
4974
  };
4940
- B.BackButton.state = [!1];
4941
- B.BackButton.listen = [];
4942
- B.BackButton.router = (e) => {
4943
- e === !1 ? (B.BackButton.isVisible = !1, B.BackButton.offClick(B.BackButton.listen[0]), B.BackButton.listen.shift(), B.BackButton.state.length !== 1 && B.BackButton.state.pop()) : (B.BackButton.isVisible = !0, B.BackButton.offClick(B.BackButton.listen[0]), B.BackButton.listen.shift(), B.BackButton.listen.push(() => {
4944
- let t = B.BackButton.state.pop();
4975
+ D.BackButton.state = [!1];
4976
+ D.BackButton.listen = [];
4977
+ D.BackButton.router = (e) => {
4978
+ e === !1 ? (D.BackButton.isVisible = !1, D.BackButton.offClick(D.BackButton.listen[0]), D.BackButton.listen.shift(), D.BackButton.state.length !== 1 && D.BackButton.state.pop()) : (D.BackButton.isVisible = !0, D.BackButton.offClick(D.BackButton.listen[0]), D.BackButton.listen.shift(), D.BackButton.listen.push(() => {
4979
+ let t = D.BackButton.state.pop();
4945
4980
  if (t.page !== void 0)
4946
- Re.setPage(t.page);
4981
+ ke.setPage(t.page);
4947
4982
  else {
4948
- let a = B.BackButton.state[B.BackButton.state.length - 1];
4949
- B.BackButton.router(a);
4983
+ let a = D.BackButton.state[D.BackButton.state.length - 1];
4984
+ D.BackButton.router(a);
4950
4985
  }
4951
- }), B.BackButton.onClick(B.BackButton.listen[0]));
4986
+ }), D.BackButton.onClick(D.BackButton.listen[0]));
4952
4987
  };
4953
- B.BackButton.set = (e) => {
4954
- B.BackButton.state.push(e), B.BackButton.router(e);
4988
+ D.BackButton.set = (e) => {
4989
+ be.is ? be.BackButton.set(e) : (D.BackButton.state.push(e), D.BackButton.router(e));
4955
4990
  };
4956
- B.Notice = (e, t) => {
4957
- t !== void 0 ? (Ge.Send({ type: e, text: t }), B.HapticFeedback.notificationOccurred(e)) : (Ge.Send(e), B.HapticFeedback.notificationOccurred(e.type));
4991
+ D.Notice = (e, t) => {
4992
+ t !== void 0 ? (Ke.Send({ type: e, text: t }), D.HapticFeedback.notificationOccurred(e)) : (Ke.Send(e), D.HapticFeedback.notificationOccurred(e.type));
4958
4993
  };
4959
- B.Init = ({ page: e }) => /* @__PURE__ */ n.jsx(n.Fragment, {});
4960
- const Bi = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((s) => /* @__PURE__ */ n.jsx(
4961
- Ni,
4994
+ D.Init = ({ page: e, dev: t }) => {
4995
+ if (t) {
4996
+ let [a, r] = k.useState(!1), [i, s] = k.useState(!1), [l, c] = k.useState("dark"), [d, _] = k.useState(!1), [u, f] = k.useState(!1);
4997
+ be.is = !0, be.MainButton.set = r, be.BackButton.set = s, k.useEffect(() => {
4998
+ for (let g in he[l])
4999
+ document.documentElement.style.setProperty(
5000
+ g,
5001
+ he[l][g]
5002
+ );
5003
+ }, []);
5004
+ let m = (g) => {
5005
+ for (let v in he[g])
5006
+ document.documentElement.style.setProperty(v, he[g][v]);
5007
+ c(g), _(!1);
5008
+ }, h = () => {
5009
+ _(!1), f(!0);
5010
+ };
5011
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5012
+ /* @__PURE__ */ n.jsxs("div", { className: ft.bebug, children: [
5013
+ i === !1 ? /* @__PURE__ */ n.jsx("div", { className: "back", children: "Отмена" }) : /* @__PURE__ */ n.jsx(
5014
+ "div",
5015
+ {
5016
+ onClick: () => {
5017
+ i.page;
5018
+ },
5019
+ className: "back",
5020
+ children: "Назад"
5021
+ }
5022
+ ),
5023
+ /* @__PURE__ */ n.jsx(
5024
+ "div",
5025
+ {
5026
+ className: "options",
5027
+ onClick: () => _(!d),
5028
+ children: "Меню"
5029
+ }
5030
+ )
5031
+ ] }),
5032
+ d ? /* @__PURE__ */ n.jsxs("div", { className: ft.tm, children: [
5033
+ /* @__PURE__ */ n.jsxs("ul", { children: [
5034
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: h, children: "Authorization" }) }),
5035
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => ke.setPage("Add"), children: "Add Page" }) })
5036
+ ] }),
5037
+ /* @__PURE__ */ n.jsxs("ul", { children: [
5038
+ /* @__PURE__ */ n.jsxs("li", { children: [
5039
+ /* @__PURE__ */ n.jsx("button", { children: "Thema" }),
5040
+ /* @__PURE__ */ n.jsxs("ol", { children: [
5041
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
5042
+ "button",
5043
+ {
5044
+ onClick: () => m("dark"),
5045
+ children: "Dark"
5046
+ }
5047
+ ) }),
5048
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
5049
+ "button",
5050
+ {
5051
+ onClick: () => m("light"),
5052
+ children: "Light"
5053
+ }
5054
+ ) }),
5055
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
5056
+ "button",
5057
+ {
5058
+ onClick: () => m("users"),
5059
+ children: "Users"
5060
+ }
5061
+ ) })
5062
+ ] })
5063
+ ] }),
5064
+ /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx("button", { onClick: () => _(!d), children: "Closed" }) })
5065
+ ] })
5066
+ ] }) : "",
5067
+ u ? /* @__PURE__ */ n.jsx(Wi, { setAuthorization: f }) : ""
5068
+ ] });
5069
+ } else
5070
+ return /* @__PURE__ */ n.jsx(n.Fragment, {});
5071
+ };
5072
+ const Wi = ({ setAuthorization: e }) => {
5073
+ let t = {}, a = (i) => {
5074
+ t = i.value;
5075
+ }, r = (i) => {
5076
+ localStorage.setItem("auth", t);
5077
+ };
5078
+ return /* @__PURE__ */ n.jsx("div", { className: ft.ta, children: /* @__PURE__ */ n.jsxs("div", { className: "--body", children: [
5079
+ /* @__PURE__ */ n.jsx("fieldset", { children: /* @__PURE__ */ n.jsx(
5080
+ Fi.Notes,
5081
+ {
5082
+ label: "Data JSON",
5083
+ name: "description",
5084
+ onValue: a,
5085
+ placeholder: ""
5086
+ }
5087
+ ) }),
5088
+ /* @__PURE__ */ n.jsx("div", { onClick: r, children: " Сщхранить " })
5089
+ ] }) });
5090
+ }, Gi = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((s) => /* @__PURE__ */ n.jsx(
5091
+ zi,
4962
5092
  {
4963
5093
  onClick: t,
4964
5094
  active: a,
@@ -4966,9 +5096,9 @@ const Bi = ({ list: e, onClick: t, active: a, size: r, view: i }) => /* @__PURE_
4966
5096
  link: s.link
4967
5097
  },
4968
5098
  s.link
4969
- )) }) }), Ni = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
4970
- Bi.defaultProps = { size: "M", view: "H" };
4971
- const Mi = ({
5099
+ )) }) }), zi = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5100
+ Gi.defaultProps = { size: "M", view: "H" };
5101
+ const Ki = ({
4972
5102
  title: e = "",
4973
5103
  button: t,
4974
5104
  description: a = "",
@@ -4988,9 +5118,9 @@ const Mi = ({
4988
5118
  ] }),
4989
5119
  /* @__PURE__ */ n.jsx("ul", { children: r }),
4990
5120
  a && /* @__PURE__ */ n.jsx("article", { children: a })
4991
- ] }), Fi = "_setting_dva4m_2", Pi = {
4992
- setting: Fi
4993
- }, Li = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Pi.setting, children: e }), $i = ({ label: e, children: t }) => {
5121
+ ] }), Zi = "_setting_dva4m_2", Ui = {
5122
+ setting: Zi
5123
+ }, Vi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Ui.setting, children: e }), Yi = ({ label: e, children: t }) => {
4994
5124
  let [a, r] = k.useState(!1);
4995
5125
  return /* @__PURE__ */ n.jsxs("li", { "data-item": "accordion", children: [
4996
5126
  /* @__PURE__ */ n.jsxs("dl", { onClick: () => r(!a), children: [
@@ -4999,10 +5129,10 @@ const Mi = ({
4999
5129
  ] }),
5000
5130
  a && /* @__PURE__ */ n.jsx("div", { children: t })
5001
5131
  ] });
5002
- }, Oi = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5132
+ }, Hi = ({ label: e, onClick: t, button: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5003
5133
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5004
5134
  /* @__PURE__ */ n.jsx("dd", { role: "button", onClick: () => t(), children: a })
5005
- ] }) }), Ai = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
5135
+ ] }) }), qi = ({ active: e, onClick: t }) => (e = typeof e == "number" ? !!e : e, /* @__PURE__ */ n.jsx(
5006
5136
  "div",
5007
5137
  {
5008
5138
  role: "switch",
@@ -5011,25 +5141,25 @@ const Mi = ({
5011
5141
  },
5012
5142
  "aria-checked": e ? "true" : "false"
5013
5143
  }
5014
- )), Wi = { Switch: Ai }, Gi = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5144
+ )), Ji = { Switch: qi }, Xi = ({ label: e, onClick: t, active: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5015
5145
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5016
- /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(Wi.Switch, { onClick: t, active: a }) })
5017
- ] }) }), Ki = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5146
+ /* @__PURE__ */ n.jsx("dd", { children: /* @__PURE__ */ n.jsx(Ji.Switch, { onClick: t, active: a }) })
5147
+ ] }) }), Qi = ({ label: e, active: t, options: a }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5018
5148
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5019
5149
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5020
- ] }) }), zi = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5150
+ ] }) }), es = ({ label: e, info: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5021
5151
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5022
5152
  /* @__PURE__ */ n.jsx("dd", { role: "info", children: t })
5023
- ] }) }), Zi = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5153
+ ] }) }), ts = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5024
5154
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5025
5155
  /* @__PURE__ */ n.jsx("dd", { children: t })
5026
- ] }) }), Ui = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5156
+ ] }) }), ns = ({ label: e, children: t }) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsxs("dl", { children: [
5027
5157
  /* @__PURE__ */ n.jsx("dt", { children: e }),
5028
5158
  /* @__PURE__ */ n.jsx("dd", { children: t })
5029
- ] }) }), Vi = { Accordion: $i, Button: Oi, Switch: Gi, Info: zi, Select: Ki, Component: Zi, Node: Ui };
5030
- function Rn({ list: e, onClick: t, active: a, size: r, view: i }) {
5159
+ ] }) }), as = { Accordion: Yi, Button: Hi, Switch: Xi, Info: es, Select: Qi, Component: ts, Node: ns };
5160
+ function Dn({ list: e, onClick: t, active: a, size: r, view: i }) {
5031
5161
  return /* @__PURE__ */ n.jsx("nav", { children: /* @__PURE__ */ n.jsx("ul", { className: [r, i].join(" "), children: e.map((s) => /* @__PURE__ */ n.jsx(
5032
- Yi,
5162
+ rs,
5033
5163
  {
5034
5164
  onClick: t,
5035
5165
  active: a,
@@ -5039,18 +5169,18 @@ function Rn({ list: e, onClick: t, active: a, size: r, view: i }) {
5039
5169
  s.link
5040
5170
  )) }) });
5041
5171
  }
5042
- const Yi = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5043
- Rn.defaultProps = { size: "M", view: "H" };
5044
- const Zo = { Section: Mi, Main: Li, Item: Vi, Tabs: Rn }, Hi = "_alerts_1pds5_1", qi = "_menuAnimation_1pds5_1", Ji = "_menuItemAnimation_1pds5_1", Xi = "_allert_1pds5_111", Qi = "_al_1pds5_1", dt = {
5045
- alerts: Hi,
5046
- menuAnimation: qi,
5047
- menuItemAnimation: Ji,
5172
+ const rs = ({ onClick: e, label: t, link: a, active: r }) => /* @__PURE__ */ n.jsx("li", { "tabs-active": String(r === a), onClick: () => e(a), children: t });
5173
+ Dn.defaultProps = { size: "M", view: "H" };
5174
+ const el = { Section: Ki, Main: Vi, Item: as, Tabs: Dn }, is = "_alerts_1pds5_1", ss = "_menuAnimation_1pds5_1", os = "_menuItemAnimation_1pds5_1", ls = "_allert_1pds5_111", cs = "_al_1pds5_1", mt = {
5175
+ alerts: is,
5176
+ menuAnimation: ss,
5177
+ menuItemAnimation: os,
5048
5178
  "--body": "_--body_1pds5_103",
5049
- allert: Xi,
5179
+ allert: ls,
5050
5180
  "--form": "_--form_1pds5_111",
5051
- al: Qi
5181
+ al: cs
5052
5182
  };
5053
- function Dn({ text: e, type: t, button: a }) {
5183
+ function In({ text: e, type: t, button: a }) {
5054
5184
  let [r, i] = k.useState(!1), s = { active: t };
5055
5185
  const l = () => {
5056
5186
  if (a) {
@@ -5060,7 +5190,7 @@ function Dn({ text: e, type: t, button: a }) {
5060
5190
  return r ? void 0 : (i(!0), a.onSend(i));
5061
5191
  }
5062
5192
  };
5063
- return /* @__PURE__ */ n.jsxs("div", { className: dt.al, ...s, children: [
5193
+ return /* @__PURE__ */ n.jsxs("div", { className: mt.al, ...s, children: [
5064
5194
  /* @__PURE__ */ n.jsx(
5065
5195
  "svg",
5066
5196
  {
@@ -5082,56 +5212,56 @@ function Dn({ text: e, type: t, button: a }) {
5082
5212
  a && /* @__PURE__ */ n.jsx("button", { onClick: l, children: a.label })
5083
5213
  ] });
5084
5214
  }
5085
- const es = "_h_1usnu_1", ts = "_g_1usnu_11", ns = "_hr_1usnu_16", as = "_hl_1usnu_28", rs = "_t_1usnu_40", is = "_s_1usnu_60", ss = "_u_1usnu_69", os = "_o_1usnu_76", ls = "_l_1usnu_105", cs = "_hh_1usnu_115", _s = "_c_1usnu_128", ds = "_loadingB_1usnu_1", us = "_m_1usnu_180", fs = "_ul_1usnu_196", ms = "_f_1usnu_226", X = {
5086
- h: es,
5087
- g: ts,
5088
- hr: ns,
5089
- hl: as,
5090
- t: rs,
5091
- s: is,
5092
- u: ss,
5093
- o: os,
5094
- l: ls,
5095
- hh: cs,
5096
- c: _s,
5097
- loadingB: ds,
5098
- m: us,
5099
- ul: fs,
5100
- f: ms
5101
- }, Ut = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: X.h, children: [
5215
+ const _s = "_h_1usnu_1", ds = "_g_1usnu_11", us = "_hr_1usnu_16", fs = "_hl_1usnu_28", ms = "_t_1usnu_40", hs = "_s_1usnu_60", xs = "_u_1usnu_69", gs = "_o_1usnu_76", ps = "_l_1usnu_105", vs = "_hh_1usnu_115", ks = "_c_1usnu_128", bs = "_loadingB_1usnu_1", Cs = "_m_1usnu_180", js = "_ul_1usnu_196", ys = "_f_1usnu_226", X = {
5216
+ h: _s,
5217
+ g: ds,
5218
+ hr: us,
5219
+ hl: fs,
5220
+ t: ms,
5221
+ s: hs,
5222
+ u: xs,
5223
+ o: gs,
5224
+ l: ps,
5225
+ hh: vs,
5226
+ c: ks,
5227
+ loadingB: bs,
5228
+ m: Cs,
5229
+ ul: js,
5230
+ f: ys
5231
+ }, Ht = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: X.h, children: [
5102
5232
  /* @__PURE__ */ n.jsx("div", { className: X.t, children: e }),
5103
5233
  t && /* @__PURE__ */ n.jsx("div", { className: X.hl, children: t }),
5104
5234
  a && /* @__PURE__ */ n.jsx("div", { className: X.hr, children: a }),
5105
5235
  r
5106
- ] }), Vt = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: X.l, children: e }), Yt = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.s, children: e }), Ht = ({ children: e, edit: t }) => {
5236
+ ] }), qt = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: X.l, children: e }), Jt = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.s, children: e }), Xt = ({ children: e, edit: t }) => {
5107
5237
  const a = {};
5108
5238
  return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: X.f, children: e });
5109
5239
  };
5110
- function qt({ children: e }) {
5240
+ function Qt({ children: e }) {
5111
5241
  return /* @__PURE__ */ n.jsx("div", { className: X.g, children: e });
5112
5242
  }
5113
- const hs = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [X.o, t].join(" "), children: [
5243
+ const ws = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [X.o, t].join(" "), children: [
5114
5244
  a && /* @__PURE__ */ n.jsx("div", { className: X.hh, children: a }),
5115
5245
  e
5116
- ] }), xs = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.u, children: e }), gs = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.c, children: e }), ps = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.m, children: e }), Uo = {
5117
- Header: Ut,
5118
- Section: Yt,
5119
- Group: qt,
5120
- Form: Ht,
5121
- List: Vt,
5122
- A: Dn,
5123
- U: xs,
5124
- G: qt,
5125
- C: gs,
5126
- L: Vt,
5127
- O: hs,
5128
- S: Yt,
5129
- H: Ut,
5130
- M: ps,
5131
- F: Ht
5246
+ ] }), Ss = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.u, children: e }), Es = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.c, children: e }), Ts = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: X.m, children: e }), tl = {
5247
+ Header: Ht,
5248
+ Section: Jt,
5249
+ Group: Qt,
5250
+ Form: Xt,
5251
+ List: qt,
5252
+ A: In,
5253
+ U: Ss,
5254
+ G: Qt,
5255
+ C: Es,
5256
+ L: qt,
5257
+ O: ws,
5258
+ S: Jt,
5259
+ H: Ht,
5260
+ M: Ts,
5261
+ F: Xt
5132
5262
  };
5133
- let ut = {};
5134
- const vs = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: dt.alerts, children: [
5263
+ let ht = {};
5264
+ const Rs = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ n.jsxs("div", { className: mt.alerts, children: [
5135
5265
  /* @__PURE__ */ n.jsxs("dl", { children: [
5136
5266
  /* @__PURE__ */ n.jsx("dt", { children: e.title }),
5137
5267
  /* @__PURE__ */ n.jsx("dd", { children: e.text }),
@@ -5140,19 +5270,19 @@ const vs = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "По
5140
5270
  {
5141
5271
  "data-color": e.color || "blue",
5142
5272
  onClick: () => {
5143
- t(), ut.del();
5273
+ t(), ht.del();
5144
5274
  },
5145
5275
  children: e.button
5146
5276
  }
5147
5277
  ) })
5148
5278
  ] }),
5149
- /* @__PURE__ */ n.jsx("div", { className: dt["--body"], onClick: ut.del })
5279
+ /* @__PURE__ */ n.jsx("div", { className: mt["--body"], onClick: ht.del })
5150
5280
  ] }));
5151
- function ks(e, t) {
5152
- ut.set(/* @__PURE__ */ n.jsx(vs, { data: e, callback: t }));
5281
+ function Bs(e, t) {
5282
+ ht.set(/* @__PURE__ */ n.jsx(Rs, { data: e, callback: t }));
5153
5283
  }
5154
- const Vo = { Send: ks, Line: Dn };
5155
- function Cs() {
5284
+ const nl = { Send: Bs, Line: In };
5285
+ function Ns() {
5156
5286
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ n.jsx(
5157
5287
  "path",
5158
5288
  {
@@ -5161,22 +5291,22 @@ function Cs() {
5161
5291
  }
5162
5292
  ) });
5163
5293
  }
5164
- const ys = {};
5165
- function bs(e) {
5166
- ys.add(e);
5294
+ const Ds = {};
5295
+ function Is(e) {
5296
+ Ds.add(e);
5167
5297
  }
5168
- function js({ color: e, size: t, name: a }) {
5298
+ function Ms({ color: e, size: t, name: a }) {
5169
5299
  return /* @__PURE__ */ n.jsx("svg", { width: t, height: t, color: e, children: /* @__PURE__ */ n.jsx("use", { href: `#${a}` }) });
5170
5300
  }
5171
- const Yo = { Logo: Cs, Sprite: bs, Symbol: js }, ws = "_sort_1yrvt_1", Ss = {
5172
- sort: ws
5301
+ const al = { Logo: Ns, Sprite: Is, Symbol: Ms }, Fs = "_sort_1yrvt_1", Ps = {
5302
+ sort: Fs
5173
5303
  };
5174
- let Ue = {};
5175
- function Es(e, t) {
5304
+ let Ye = {};
5305
+ function Ls(e, t) {
5176
5306
  switch (t.type) {
5177
5307
  case "active":
5178
5308
  let a = "<";
5179
- return e.active === t.data && (a = e.sort === "<" ? ">" : "<"), Ue.get({ active: t.data, sort: a }, !1), an({ active: t.data, sort: a }), {
5309
+ return e.active === t.data && (a = e.sort === "<" ? ">" : "<"), Ye.get({ active: t.data, sort: a }, !1), on({ active: t.data, sort: a }), {
5180
5310
  ...e,
5181
5311
  active: t.data,
5182
5312
  sort: a
@@ -5185,12 +5315,12 @@ function Es(e, t) {
5185
5315
  throw new Error();
5186
5316
  }
5187
5317
  }
5188
- function Ts() {
5318
+ function $s() {
5189
5319
  const [e, t] = k.useReducer(
5190
- Es,
5191
- ot() === void 0 ? { active: 1, sort: "<" } : ot()
5320
+ Ls,
5321
+ ct() === void 0 ? { active: 1, sort: "<" } : ct()
5192
5322
  );
5193
- return /* @__PURE__ */ n.jsxs("div", { className: Ss.sort, children: [
5323
+ return /* @__PURE__ */ n.jsxs("div", { className: Ps.sort, children: [
5194
5324
  /* @__PURE__ */ n.jsx(
5195
5325
  "i",
5196
5326
  {
@@ -5217,13 +5347,13 @@ function Ts() {
5217
5347
  )
5218
5348
  ] });
5219
5349
  }
5220
- function Rs(e) {
5221
- Ue.get = e;
5350
+ function Os(e) {
5351
+ Ye.get = e;
5222
5352
  }
5223
- function Ds(e) {
5224
- Ue.set(e);
5353
+ function As(e) {
5354
+ Ye.set(e);
5225
5355
  }
5226
- function Is(e, t, a) {
5356
+ function Ws(e, t, a) {
5227
5357
  let r = 1, i = 0, s = {}, l = 50;
5228
5358
  s[r] = [];
5229
5359
  let c = {}, d = "s1a";
@@ -5242,11 +5372,11 @@ function Is(e, t, a) {
5242
5372
  i++, i <= l || (r++, i = 1, s[r] = []), s[r].push(e[_.id]);
5243
5373
  }), { data: s };
5244
5374
  }
5245
- function Bs(e) {
5246
- Ue.count(e);
5375
+ function Gs(e) {
5376
+ Ye.count(e);
5247
5377
  }
5248
- const Ho = { Init: Ts, useValue: Rs, Set: Ds, Run: Is, Count: Bs };
5249
- function Ns() {
5378
+ const rl = { Init: $s, useValue: Os, Set: As, Run: Ws, Count: Gs };
5379
+ function zs() {
5250
5380
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
5251
5381
  /* @__PURE__ */ n.jsx(
5252
5382
  "path",
@@ -5281,7 +5411,7 @@ function Ns() {
5281
5411
  )
5282
5412
  ] });
5283
5413
  }
5284
- function Ms() {
5414
+ function Ks() {
5285
5415
  return /* @__PURE__ */ n.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
5286
5416
  /* @__PURE__ */ n.jsx(
5287
5417
  "path",
@@ -5310,7 +5440,7 @@ function Ms() {
5310
5440
  )
5311
5441
  ] });
5312
5442
  }
5313
- function Fs() {
5443
+ function Zs() {
5314
5444
  return /* @__PURE__ */ n.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ n.jsx(
5315
5445
  "path",
5316
5446
  {
@@ -5323,11 +5453,11 @@ function Fs() {
5323
5453
  }
5324
5454
  ) });
5325
5455
  }
5326
- const Ps = "_n_euuvm_1", Ls = {
5327
- n: Ps
5456
+ const Us = "_n_euuvm_1", Vs = {
5457
+ n: Us
5328
5458
  };
5329
- let Me = {}, Te = [];
5330
- const $s = (e, t) => {
5459
+ let Pe = {}, Ne = [];
5460
+ const Ys = (e, t) => {
5331
5461
  switch (t.type) {
5332
5462
  case "open":
5333
5463
  return {
@@ -5368,7 +5498,7 @@ const $s = (e, t) => {
5368
5498
  r = { ...e.take, ...r }, e.active = !1;
5369
5499
  for (let i in r)
5370
5500
  r[i] !== "999" && (e.active = !0);
5371
- return Me.get(r, e.active), {
5501
+ return Pe.get(r, e.active), {
5372
5502
  ...e,
5373
5503
  take: r,
5374
5504
  active: e.active
@@ -5379,35 +5509,35 @@ const $s = (e, t) => {
5379
5509
  throw new Error();
5380
5510
  }
5381
5511
  };
5382
- function Os(e) {
5383
- Me.fn({ action: "add", data: e });
5512
+ function Hs(e) {
5513
+ Pe.fn({ action: "add", data: e });
5384
5514
  }
5385
- function As(e) {
5386
- Me.fn({ action: "add", data: e });
5515
+ function qs(e) {
5516
+ Pe.fn({ action: "add", data: e });
5387
5517
  }
5388
- function Ws(e) {
5389
- Me.fn({ action: "new", data: e });
5518
+ function Js(e) {
5519
+ Pe.fn({ action: "new", data: e });
5390
5520
  }
5391
- function Gs(e) {
5392
- Me.fn = e;
5521
+ function Xs(e) {
5522
+ Pe.fn = e;
5393
5523
  }
5394
- function Ks() {
5395
- const [e, t] = k.useReducer($s, {
5524
+ function Qs() {
5525
+ const [e, t] = k.useReducer(Ys, {
5396
5526
  open: !1,
5397
5527
  active: !1,
5398
5528
  news: [],
5399
5529
  take: {}
5400
5530
  });
5401
- ft.useListener("bell", async (r) => {
5402
- }), Gs(async (r) => {
5531
+ xt.useListener("bell", async (r) => {
5532
+ }), Xs(async (r) => {
5403
5533
  switch (r.action) {
5404
5534
  case "add":
5405
- Te.push(r.data);
5535
+ Ne.push(r.data);
5406
5536
  break;
5407
5537
  }
5408
5538
  }), k.useEffect(() => {
5409
5539
  (async () => {
5410
- let r = await ft.Send({
5540
+ let r = await xt.Send({
5411
5541
  type: "module",
5412
5542
  module: "M00",
5413
5543
  query: "x0054",
@@ -5420,7 +5550,7 @@ function Ks() {
5420
5550
  break;
5421
5551
  case "M01":
5422
5552
  r[i].forEach((s) => {
5423
- Te.push({
5553
+ Ne.push({
5424
5554
  module: "M01",
5425
5555
  type: 1,
5426
5556
  id: s.id,
@@ -5431,7 +5561,7 @@ function Ks() {
5431
5561
  break;
5432
5562
  case "M02":
5433
5563
  r[i].forEach((s) => {
5434
- Te.push({
5564
+ Ne.push({
5435
5565
  module: "M02",
5436
5566
  type: 117,
5437
5567
  id: s.id,
@@ -5442,7 +5572,7 @@ function Ks() {
5442
5572
  break;
5443
5573
  }
5444
5574
  })(), setInterval(() => {
5445
- Te.forEach((r, i) => {
5575
+ Ne.forEach((r, i) => {
5446
5576
  t({
5447
5577
  type: "add",
5448
5578
  data: {
@@ -5452,7 +5582,7 @@ function Ks() {
5452
5582
  datetime: r.datetime,
5453
5583
  txt: r.title
5454
5584
  }
5455
- }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Te.splice(i, 1);
5585
+ }), r.datetime < (/* @__PURE__ */ new Date()).getTime() && Ne.splice(i, 1);
5456
5586
  });
5457
5587
  }, 6e4);
5458
5588
  }, []);
@@ -5463,11 +5593,11 @@ function Ks() {
5463
5593
  /* @__PURE__ */ n.jsx(
5464
5594
  "div",
5465
5595
  {
5466
- className: Ls.n,
5596
+ className: Vs.n,
5467
5597
  onClick: () => {
5468
5598
  t({ type: "open", open: !0 });
5469
5599
  },
5470
- children: e.active ? /* @__PURE__ */ n.jsx(Ms, {}) : /* @__PURE__ */ n.jsx(Ns, {})
5600
+ children: e.active ? /* @__PURE__ */ n.jsx(Ks, {}) : /* @__PURE__ */ n.jsx(zs, {})
5471
5601
  }
5472
5602
  ),
5473
5603
  e.open ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -5482,7 +5612,7 @@ function Ks() {
5482
5612
  ),
5483
5613
  /* @__PURE__ */ n.jsxs("div", { className: "notify-m", children: [
5484
5614
  /* @__PURE__ */ n.jsx("div", { className: "notify-l", children: e.news.map((r, i) => /* @__PURE__ */ n.jsx(
5485
- zs,
5615
+ eo,
5486
5616
  {
5487
5617
  data: r,
5488
5618
  dispatch: t
@@ -5494,9 +5624,9 @@ function Ks() {
5494
5624
  ] }) : ""
5495
5625
  ] });
5496
5626
  }
5497
- const zs = ({ data: e, dispatch: t }) => {
5627
+ const eo = ({ data: e, dispatch: t }) => {
5498
5628
  let a = async (r) => {
5499
- t({ type: "hide", id: r.id }), await ft.Send({
5629
+ t({ type: "hide", id: r.id }), await xt.Send({
5500
5630
  type: "module",
5501
5631
  module: "M00",
5502
5632
  query: "x0055",
@@ -5511,24 +5641,24 @@ const zs = ({ data: e, dispatch: t }) => {
5511
5641
  ] }),
5512
5642
  /* @__PURE__ */ n.jsx("div", { className: "--hide", "data-icon": "F038", onClick: () => a(e), children: " " })
5513
5643
  ] });
5514
- }, Zs = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
5515
- function Us(e) {
5644
+ }, to = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
5645
+ function no(e) {
5516
5646
  return new SharedWorker(
5517
- "data:text/javascript;base64," + Zs,
5647
+ "data:text/javascript;base64," + to,
5518
5648
  {
5519
5649
  name: e == null ? void 0 : e.name
5520
5650
  }
5521
5651
  );
5522
5652
  }
5523
- function Vs(e) {
5653
+ function ao(e) {
5524
5654
  let t = {}, a = {};
5525
5655
  e.data.forEach((i) => {
5526
5656
  t[i.id] = { s: i.v, n: i.a }, a[i.id] = i;
5527
5657
  });
5528
- let r = { ...he(), 901: t };
5529
- rn(a), Ie(r);
5658
+ let r = { ...xe(), 901: t };
5659
+ ln(a), Ie(r);
5530
5660
  }
5531
- let ae = {}, U = {}, We = [
5661
+ let ae = {}, U = {}, ze = [
5532
5662
  "filter",
5533
5663
  "online",
5534
5664
  "users",
@@ -5538,13 +5668,13 @@ let ae = {}, U = {}, We = [
5538
5668
  "info",
5539
5669
  "job"
5540
5670
  ];
5541
- function Ys() {
5671
+ function ro() {
5542
5672
  const [e, t] = k.useState(!1), [a, r] = k.useState(!1);
5543
5673
  function i(s) {
5544
- const l = new Us();
5674
+ const l = new no();
5545
5675
  ae.laodData = (c) => {
5546
- let d = We.indexOf(c);
5547
- d >= 0 && We.splice(d, 1), We.length === 0 && t(!0);
5676
+ let d = ze.indexOf(c);
5677
+ d >= 0 && ze.splice(d, 1), ze.length === 0 && t(!0);
5548
5678
  }, ae.send = (c) => {
5549
5679
  l.port.postMessage({ type: "send", json: c });
5550
5680
  }, l.port.onmessage = (c) => {
@@ -5552,12 +5682,12 @@ function Ys() {
5552
5682
  d.type === "error" && r(!0), d.type === "true" && t(!0), d.type === "closed" && l.port.postMessage({
5553
5683
  type: "connect",
5554
5684
  ukey: s,
5555
- lk: st()
5556
- }), We.length !== 0 && ae.laodData(d.type), U[d.type] && U[d.type](d);
5685
+ lk: lt()
5686
+ }), ze.length !== 0 && ae.laodData(d.type), U[d.type] && U[d.type](d);
5557
5687
  }, l.port.postMessage({
5558
5688
  type: "connect",
5559
5689
  ukey: s,
5560
- lk: st()
5690
+ lk: lt()
5561
5691
  });
5562
5692
  }
5563
5693
  return [i, e, a];
@@ -5565,14 +5695,14 @@ function Ys() {
5565
5695
  U.module = (e) => {
5566
5696
  ae[e.listen] !== void 0 && (ae[e.listen](e), delete ae[e.listen]);
5567
5697
  };
5568
- U.bell = Ws;
5569
- U.company = Vs;
5698
+ U.bell = Js;
5699
+ U.company = ao;
5570
5700
  U.info = (e) => {
5571
5701
  let t = {};
5572
- 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"), sn(t), nn(e.data.menu);
5702
+ t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), cn(t), sn(e.data.menu);
5573
5703
  };
5574
5704
  U.version = async (e) => {
5575
- xt.version.Server(e.data);
5705
+ vt.version.Server(e.data);
5576
5706
  };
5577
5707
  U.online = async (e) => {
5578
5708
  };
@@ -5581,13 +5711,13 @@ U.offline = async (e) => {
5581
5711
  U.chat = (e) => {
5582
5712
  switch (e.data.action) {
5583
5713
  case "new_message":
5584
- Re.getModule();
5714
+ ke.getModule();
5585
5715
  break;
5586
5716
  case "view_message":
5587
- Re.getModule();
5717
+ ke.getModule();
5588
5718
  break;
5589
5719
  case "write_message":
5590
- Re.getModule();
5720
+ ke.getModule();
5591
5721
  break;
5592
5722
  }
5593
5723
  };
@@ -5608,7 +5738,7 @@ U.users = (e) => {
5608
5738
  number: l
5609
5739
  };
5610
5740
  });
5611
- let a = { ...he(), user: t };
5741
+ let a = { ...xe(), user: t };
5612
5742
  Ie(a);
5613
5743
  };
5614
5744
  U.api = (e) => {
@@ -5621,28 +5751,28 @@ U.delete = () => {
5621
5751
  re();
5622
5752
  };
5623
5753
  U.select = (e) => {
5624
- let t = { ...he() };
5754
+ let t = { ...xe() };
5625
5755
  e.data.forEach((a) => {
5626
5756
  t[a.n] = JSON.parse(a.s);
5627
5757
  }), Ie(t);
5628
5758
  };
5629
5759
  U.job = (e) => {
5630
- let t = { ...he() }, a = {};
5760
+ let t = { ...xe() }, a = {};
5631
5761
  Object.keys(e.data).forEach((r) => {
5632
5762
  a[r] = { s: 1, n: e.data[r] };
5633
5763
  }), t[1] = a, Ie(t);
5634
5764
  };
5635
5765
  U.setting = (e) => {
5636
- Na(e.data);
5766
+ Pa(e.data);
5637
5767
  };
5638
5768
  U.app = () => {
5639
5769
  };
5640
- const Hs = (e, t) => {
5770
+ const io = (e, t) => {
5641
5771
  ae[e] = t;
5642
- }, qs = (e, t) => {
5772
+ }, so = (e, t) => {
5643
5773
  ae[e](t);
5644
5774
  };
5645
- function Js(e) {
5775
+ function oo(e) {
5646
5776
  let t = "_" + String(Math.random()).substring(2, 7);
5647
5777
  return new Promise((a) => {
5648
5778
  ae[t] = (r) => {
@@ -5650,11 +5780,11 @@ function Js(e) {
5650
5780
  }, e = { ...e, listen: t }, e.type = "modules", ae.send(e);
5651
5781
  });
5652
5782
  }
5653
- const ft = { useConnect: Ys, useListener: Hs, setListener: qs, Send: Js };
5654
- class Xs {
5783
+ const xt = { useConnect: ro, useListener: io, setListener: so, Send: oo };
5784
+ class lo {
5655
5785
  constructor(t = "el", a = "db") {
5656
- at(this, "storeName");
5657
- at(this, "_dbp");
5786
+ it(this, "storeName");
5787
+ it(this, "_dbp");
5658
5788
  this.storeName = a, this._dbp = new Promise((r, i) => {
5659
5789
  const s = indexedDB.open(t, 1);
5660
5790
  s.onerror = () => i(s.error), s.onsuccess = () => r(s.result), s.onupgradeneeded = () => {
@@ -5671,10 +5801,10 @@ class Xs {
5671
5801
  );
5672
5802
  }
5673
5803
  }
5674
- let it, G = {};
5675
- const ye = () => (it || (it = new Xs()), it), ue = (e, t, a = ye()) => a._withIDBStore("readwrite", (r) => {
5804
+ let ot, G = {};
5805
+ const we = () => (ot || (ot = new lo()), ot), ue = (e, t, a = we()) => a._withIDBStore("readwrite", (r) => {
5676
5806
  G[e] = t, r.put(P.enCode(t), e);
5677
- }), oe = (e, t = ye()) => G[e] === void 0 ? new Promise((a, r) => {
5807
+ }), oe = (e, t = we()) => G[e] === void 0 ? new Promise((a, r) => {
5678
5808
  let i;
5679
5809
  t._withIDBStore("readonly", (s) => {
5680
5810
  i = s.get(e);
@@ -5685,40 +5815,40 @@ const ye = () => (it || (it = new Xs()), it), ue = (e, t, a = ye()) => a._withID
5685
5815
  } else
5686
5816
  a({});
5687
5817
  });
5688
- }) : G[e], Qs = (e, t = ye()) => t._withIDBStore("readwrite", (a) => {
5818
+ }) : G[e], co = (e, t = we()) => t._withIDBStore("readwrite", (a) => {
5689
5819
  a.delete(e);
5690
- }), mt = (e = ye()) => e._withIDBStore("readwrite", (t) => {
5820
+ }), gt = (e = we()) => e._withIDBStore("readwrite", (t) => {
5691
5821
  t.clear();
5692
- }), eo = (e = ye()) => {
5822
+ }), _o = (e = we()) => {
5693
5823
  const t = [];
5694
5824
  return e._withIDBStore("readonly", (a) => {
5695
5825
  (a.openKeyCursor || a.openCursor).call(a).onsuccess = function() {
5696
5826
  this.result && (t.push(this.result.key), this.result.continue());
5697
5827
  };
5698
5828
  }).then(() => t);
5699
- }, to = (e, t, a = [], r = {}) => {
5829
+ }, uo = (e, t, a = [], r = {}) => {
5700
5830
  let i = a.length !== 0, s = [], l = r.sort, c = Object.keys(r).length !== 0, d = Object.keys(r), _ = Object.keys(e), u = [], f = (h) => {
5701
- let v = "";
5702
- if (a.forEach((p) => {
5703
- v += t[h][p];
5831
+ let g = "";
5832
+ if (a.forEach((v) => {
5833
+ g += t[h][v];
5704
5834
  }), c) {
5705
- let p = {};
5706
- d.forEach((g) => {
5707
- p[g] = t[h][g];
5835
+ let v = {};
5836
+ d.forEach((p) => {
5837
+ v[p] = t[h][p];
5708
5838
  });
5709
- for (let g in l)
5710
- t[h][l[g]] === void 0 && (mt(), location.reload()), g === "s1" && (p[g] = new Date(t[h][l[g]]).getTime()), g === "s2" && (p[g] = t[h][l[g]]), g === "s3" && (p[g] = t[h][l[g]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5711
- s.push({ id: h, text: v, ...p });
5839
+ for (let p in l)
5840
+ t[h][l[p]] === void 0 && (gt(), location.reload()), p === "s1" && (v[p] = new Date(t[h][l[p]]).getTime()), p === "s2" && (v[p] = t[h][l[p]]), p === "s3" && (v[p] = t[h][l[p]].replace(/[^a-zа-яё]/gi, "").substring(0, 1));
5841
+ s.push({ id: h, text: g, ...v });
5712
5842
  } else
5713
- s.push({ id: h, text: v });
5843
+ s.push({ id: h, text: g });
5714
5844
  }, m = (h) => {
5715
5845
  };
5716
5846
  return _.forEach((h) => {
5717
5847
  u.push(t[h]);
5718
5848
  }), u.forEach((h) => {
5719
- h === void 0 ? (mt(), location.reload()) : (i && f(h.id), c && m(h.id));
5849
+ h === void 0 ? (gt(), location.reload()) : (i && f(h.id), c && m(h.id));
5720
5850
  }), { list: u, search: s, filter: r };
5721
- }, no = (e, t, a, r = ye()) => {
5851
+ }, fo = (e, t, a, r = we()) => {
5722
5852
  if (G[e] === void 0)
5723
5853
  return new Promise((i, s) => {
5724
5854
  let l;
@@ -5739,53 +5869,53 @@ const ye = () => (it || (it = new Xs()), it), ue = (e, t, a = ye()) => a._withID
5739
5869
  return G[e][t.id] = { ...G[e][t.id], ...t.data }, a !== void 0 && G[a] !== void 0 ? G[a][t.id] !== void 0 && (G[a][t.id] = t.data.eDate) : G[a] = [], delete G[e][t.id].$_item, delete G[e][t.id].$_send, r._withIDBStore("readwrite", (i) => {
5740
5870
  i.put(P.enCode(G[e]), e), a !== void 0 && i.put(P.enCode(G[a]), a);
5741
5871
  });
5742
- }, ao = async (e, t, a, r) => {
5872
+ }, mo = async (e, t, a, r) => {
5743
5873
  let i, s;
5744
5874
  s = await oe(a), s[e.id] = e, await ue(a, s), i !== null && (i = await oe(t), i[e.id] = e.eDate, await ue(t, i)), r !== void 0 && r({ type: "load", page: i, base: s });
5745
- }, ro = async (e, t, a, r) => {
5875
+ }, ho = async (e, t, a, r) => {
5746
5876
  let i = await oe(t), s = await oe(a);
5747
5877
  for (let l in e)
5748
5878
  s[l] = e[l], i[l] = e[l].eDate;
5749
5879
  await ue(t, i), await ue(a, s), r !== void 0 && r({ type: "load", page: i, base: s });
5750
- }, io = async (e, t, a, r) => {
5880
+ }, xo = async (e, t, a, r) => {
5751
5881
  let i = await oe(t), s = await oe(a);
5752
5882
  e.forEach((l) => delete i[l]), await ue(t, i), r !== void 0 && r({ type: "load", page: i, base: s });
5753
- }, so = async (e, t, a) => {
5883
+ }, go = async (e, t, a) => {
5754
5884
  let r = await oe(t);
5755
5885
  e.forEach((i) => delete r[i]), await ue(t, r);
5756
- }, oo = async (e, t, a) => {
5886
+ }, po = async (e, t, a) => {
5757
5887
  let r = await oe(t);
5758
5888
  e.forEach((i) => r[i.id] = i.eDate), await ue(t, r);
5759
- }, lo = async (e, t, a) => {
5889
+ }, vo = async (e, t, a) => {
5760
5890
  let r = await oe(t);
5761
5891
  if (a !== void 0)
5762
5892
  a({ type: "load", base: r });
5763
5893
  else
5764
5894
  return r[e];
5765
- }, co = (e) => G[e], qo = {
5766
- id: lo,
5895
+ }, ko = (e) => G[e], il = {
5896
+ id: vo,
5767
5897
  get: oe,
5768
5898
  set: ue,
5769
- add: ao,
5770
- del: Qs,
5771
- upd: no,
5772
- key: eo,
5773
- load: co,
5774
- split: to,
5775
- clear: mt,
5776
- updAll: ro,
5777
- delAll: io,
5778
- delList: so,
5779
- addList: oo
5780
- }, Jo = { setSetting: Ma, getSetting: Fa }, _o = "_s_18bde_1", uo = "_loadingB_18bde_1", fo = "_ul_18bde_31", mo = {
5781
- s: _o,
5782
- loadingB: uo,
5783
- ul: fo
5899
+ add: mo,
5900
+ del: co,
5901
+ upd: fo,
5902
+ key: _o,
5903
+ load: ko,
5904
+ split: uo,
5905
+ clear: gt,
5906
+ updAll: ho,
5907
+ delAll: xo,
5908
+ delList: go,
5909
+ addList: po
5910
+ }, sl = { setSetting: La, getSetting: $a }, bo = "_s_18bde_1", Co = "_loadingB_18bde_1", jo = "_ul_18bde_31", yo = {
5911
+ s: bo,
5912
+ loadingB: Co,
5913
+ ul: jo
5784
5914
  };
5785
- function ho({ children: e }) {
5915
+ function wo({ children: e }) {
5786
5916
  return /* @__PURE__ */ n.jsx("ul", { className: X.ul, children: e });
5787
5917
  }
5788
- function xo(e, t) {
5918
+ function So(e, t) {
5789
5919
  switch (t.type) {
5790
5920
  case "load":
5791
5921
  return {
@@ -5818,13 +5948,13 @@ function xo(e, t) {
5818
5948
  throw new Error();
5819
5949
  }
5820
5950
  }
5821
- function Xo({
5951
+ function ol({
5822
5952
  list: e,
5823
5953
  load: t,
5824
5954
  className: a,
5825
5955
  ...r
5826
5956
  }) {
5827
- const i = k.useRef(null), [s, l] = k.useReducer(xo, {
5957
+ const i = k.useRef(null), [s, l] = k.useReducer(So, {
5828
5958
  load: !1,
5829
5959
  list: [],
5830
5960
  data: {},
@@ -5841,10 +5971,10 @@ function Xo({
5841
5971
  return /* @__PURE__ */ n.jsx(
5842
5972
  "div",
5843
5973
  {
5844
- className: [mo.s, a].join(" "),
5974
+ className: [yo.s, a].join(" "),
5845
5975
  ref: i,
5846
5976
  onScroll: c,
5847
- children: /* @__PURE__ */ n.jsx(ho, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
5977
+ children: /* @__PURE__ */ n.jsx(wo, { "el-empty": "Данные не найдены", children: s.load && s.list !== void 0 ? s.list.map((d) => /* @__PURE__ */ n.jsx(r.item, { data: d }, d.id)) : /* @__PURE__ */ n.jsxs("div", { "data-load": "load", children: [
5848
5978
  /* @__PURE__ */ n.jsx("i", {}),
5849
5979
  /* @__PURE__ */ n.jsx("i", {}),
5850
5980
  /* @__PURE__ */ n.jsx("i", {})
@@ -5852,7 +5982,7 @@ function Xo({
5852
5982
  }
5853
5983
  );
5854
5984
  }
5855
- const go = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5985
+ const Eo = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5856
5986
  const [s, l] = k.useState(!!a);
5857
5987
  k.useEffect(() => {
5858
5988
  l(!!a);
@@ -5869,61 +5999,61 @@ const go = ({ label: e, onValue: t, value: a, name: r, item: i }) => {
5869
5999
  "aria-checked": `${s ? "true" : "false"}`
5870
6000
  }
5871
6001
  );
5872
- }, ke = {};
5873
- function po(e) {
6002
+ }, je = {};
6003
+ function To(e) {
5874
6004
  const [t, a] = k.useState({}), r = k.useRef(e);
5875
- return ke.u = (i) => {
6005
+ return je.u = (i) => {
5876
6006
  r.current = { ...r.current, [i.name]: i.value };
5877
- }, ke.r = () => {
6007
+ }, je.r = () => {
5878
6008
  a(Date.now());
5879
6009
  }, [r.current];
5880
6010
  }
5881
- function vo(e) {
5882
- ke.u(e), e.reload && ke.r();
6011
+ function Ro(e) {
6012
+ je.u(e), e.reload && je.r();
5883
6013
  }
5884
- function ko() {
5885
- ke.r && ke.r();
6014
+ function Bo() {
6015
+ je.r && je.r();
5886
6016
  }
5887
- const Qo = {
5888
- Color: gn,
5889
- Date: gt,
5890
- Code: xn,
5891
- Check: wn,
5892
- Switch: dn,
6017
+ const ll = {
6018
+ Color: kn,
6019
+ Date: kt,
6020
+ Code: vn,
6021
+ Check: Tn,
6022
+ Switch: mn,
5893
6023
  Input: De,
5894
- Button: un,
5895
- Message: fn,
5896
- Generator: mn,
5897
- Captcha: hn,
5898
- Modal: pt,
5899
- Money: vt,
5900
- Month: vn,
5901
- Notes: kn,
5902
- Number: kt,
5903
- Password: Cn,
5904
- Phone: Ct,
5905
- Search: yn,
5906
- Select: yt,
5907
- Set: _t,
5908
- Textarea: bn,
5909
- Time: jn,
5910
- Users: bt,
6024
+ Button: hn,
6025
+ Message: xn,
6026
+ Generator: gn,
6027
+ Captcha: pn,
6028
+ Modal: bt,
6029
+ Money: Ct,
6030
+ Month: Cn,
6031
+ Notes: jn,
6032
+ Number: jt,
6033
+ Password: yn,
6034
+ Phone: yt,
6035
+ Search: wn,
6036
+ Select: wt,
6037
+ Set: ut,
6038
+ Textarea: Sn,
6039
+ Time: En,
6040
+ Users: St,
5911
6041
  String: De,
5912
- Form: _t,
5913
- runReload: ko,
5914
- useData: po,
5915
- setValue: vo,
5916
- Palette: go,
5917
- Toogle: Sn,
5918
- Group: En,
5919
- Options: Tn
5920
- }, Co = "_spinner_1ul0m_1", yo = "_l_1ul0m_75", bo = "_loadingB_1ul0m_1", In = {
5921
- spinner: Co,
5922
- l: yo,
5923
- loadingB: bo
6042
+ Form: ut,
6043
+ runReload: Bo,
6044
+ useData: To,
6045
+ setValue: Ro,
6046
+ Palette: Eo,
6047
+ Toogle: Rn,
6048
+ Group: Bn,
6049
+ Options: Nn
6050
+ }, No = "_spinner_1ul0m_1", Do = "_l_1ul0m_75", Io = "_loadingB_1ul0m_1", Mn = {
6051
+ spinner: No,
6052
+ l: Do,
6053
+ loadingB: Io
5924
6054
  };
5925
- function jo() {
5926
- return /* @__PURE__ */ n.jsx("div", { className: In.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
6055
+ function Mo() {
6056
+ return /* @__PURE__ */ n.jsx("div", { className: Mn.spinner, children: /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 483 484", children: /* @__PURE__ */ n.jsx(
5927
6057
  "path",
5928
6058
  {
5929
6059
  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",
@@ -5931,20 +6061,20 @@ function jo() {
5931
6061
  }
5932
6062
  ) }) });
5933
6063
  }
5934
- function wo() {
5935
- return /* @__PURE__ */ n.jsxs("div", { className: In.l, children: [
6064
+ function Fo() {
6065
+ return /* @__PURE__ */ n.jsxs("div", { className: Mn.l, children: [
5936
6066
  /* @__PURE__ */ n.jsx("i", {}),
5937
6067
  /* @__PURE__ */ n.jsx("i", {}),
5938
6068
  /* @__PURE__ */ n.jsx("i", {})
5939
6069
  ] });
5940
6070
  }
5941
- const el = { Spinner: jo, Inline: wo }, So = "_s_t9swc_1", Jt = {
5942
- s: So
6071
+ const cl = { Spinner: Mo, Inline: Fo }, Po = "_s_t9swc_1", en = {
6072
+ s: Po
5943
6073
  };
5944
- let jt;
5945
- function Eo({ className: e, placeholder: t }) {
6074
+ let Et;
6075
+ function Lo({ className: e, placeholder: t }) {
5946
6076
  let a = (l) => {
5947
- jt(l.target.textContent);
6077
+ Et(l.target.textContent);
5948
6078
  }, r = (l) => {
5949
6079
  l.key === "Enter" && l.preventDefault();
5950
6080
  }, i = (l) => {
@@ -5954,7 +6084,7 @@ function Eo({ className: e, placeholder: t }) {
5954
6084
  });
5955
6085
  };
5956
6086
  const s = {};
5957
- return t && (s.placeholder = t), s.className = e ? [Jt.s, e].join(" ") : Jt.s, /* @__PURE__ */ n.jsx(
6087
+ return t && (s.placeholder = t), s.className = e ? [en.s, e].join(" ") : en.s, /* @__PURE__ */ n.jsx(
5958
6088
  "div",
5959
6089
  {
5960
6090
  onPaste: i,
@@ -5966,7 +6096,7 @@ function Eo({ className: e, placeholder: t }) {
5966
6096
  }
5967
6097
  );
5968
6098
  }
5969
- function To(e, t, a) {
6099
+ function $o(e, t, a) {
5970
6100
  let r = [], i = 1, s = 0, l = {}, c = 50;
5971
6101
  return l[i] = [], e.forEach((d) => {
5972
6102
  d.text.toLowerCase().indexOf(t) > -1 && r.push(d.id);
@@ -5974,17 +6104,17 @@ function To(e, t, a) {
5974
6104
  s++, s <= c || (i++, s = 1, l[i] = []), l[i].push(a[d]);
5975
6105
  }), l;
5976
6106
  }
5977
- function Ro(e) {
5978
- jt = e;
6107
+ function Oo(e) {
6108
+ Et = e;
5979
6109
  }
5980
- function Do(e) {
5981
- jt = e;
6110
+ function Ao(e) {
6111
+ Et = e;
5982
6112
  }
5983
- const tl = { Field: Eo, Run: To, Get: Ro, useValue: Do }, Io = "_f_q3r0i_1", Bo = {
5984
- f: Io
6113
+ const _l = { Field: Lo, Run: $o, Get: Oo, useValue: Ao }, Wo = "_f_q3r0i_1", Go = {
6114
+ f: Wo
5985
6115
  };
5986
6116
  let ee = {};
5987
- function No(e, t) {
6117
+ function zo(e, t) {
5988
6118
  switch (t.type) {
5989
6119
  case "open":
5990
6120
  return {
@@ -6034,8 +6164,8 @@ function No(e, t) {
6034
6164
  throw new Error();
6035
6165
  }
6036
6166
  }
6037
- function Mo() {
6038
- const [e, t] = k.useReducer(No, {
6167
+ function Ko() {
6168
+ const [e, t] = k.useReducer(zo, {
6039
6169
  open: !1,
6040
6170
  view: null,
6041
6171
  data: {},
@@ -6053,12 +6183,12 @@ function Mo() {
6053
6183
  /* @__PURE__ */ n.jsxs(
6054
6184
  "div",
6055
6185
  {
6056
- className: Bo.f,
6186
+ className: Go.f,
6057
6187
  onClick: () => {
6058
6188
  t({ type: "open", open: !0 });
6059
6189
  },
6060
6190
  children: [
6061
- /* @__PURE__ */ n.jsx(Fs, {}),
6191
+ /* @__PURE__ */ n.jsx(Zs, {}),
6062
6192
  e.active && /* @__PURE__ */ n.jsxs("i", { children: [
6063
6193
  e.size,
6064
6194
  "1"
@@ -6078,7 +6208,7 @@ function Mo() {
6078
6208
  ),
6079
6209
  /* @__PURE__ */ n.jsxs("div", { className: "filter m", children: [
6080
6210
  /* @__PURE__ */ n.jsx("div", { className: "filter l", children: Object.keys(e.data).map((a) => /* @__PURE__ */ n.jsx(
6081
- Oo,
6211
+ Ho,
6082
6212
  {
6083
6213
  data: a,
6084
6214
  dispatch: t,
@@ -6100,31 +6230,31 @@ function Mo() {
6100
6230
  ] }) : /* @__PURE__ */ n.jsx(n.Fragment, {})
6101
6231
  ] });
6102
6232
  }
6103
- function Fo(e) {
6233
+ function Zo(e) {
6104
6234
  ee.get = e;
6105
6235
  }
6106
- function Po(e) {
6236
+ function Uo(e) {
6107
6237
  ee.set !== void 0 && ee.set(e);
6108
6238
  }
6109
- function Lo(e) {
6239
+ function Vo(e) {
6110
6240
  ee.reset !== void 0 && ee.reset(e);
6111
6241
  }
6112
- function $o(e, t, a, r) {
6242
+ function Yo(e, t, a, r) {
6113
6243
  let i = [], s = 1, l = 0, c = {}, d = 50;
6114
6244
  return c[s] = [], r === !0 && (Object.keys(t).forEach((_) => {
6115
6245
  Number.parseInt(t[_]) !== 999 && (e = e.filter(
6116
6246
  (u) => Number.parseInt(u[_]) === Number.parseInt(t[_])
6117
6247
  ));
6118
- }), Bn(e.length)), e.forEach((_) => {
6248
+ }), Fn(e.length)), e.forEach((_) => {
6119
6249
  i.push(_.id);
6120
6250
  }), i.forEach((_) => {
6121
6251
  l++, l <= d || (s++, l = 1, c[s] = []), c[s].push(a[_]);
6122
6252
  }), c;
6123
6253
  }
6124
- function Bn(e) {
6254
+ function Fn(e) {
6125
6255
  ee.count(e);
6126
6256
  }
6127
- function Oo({ data: e, state: t, dispatch: a }) {
6257
+ function Ho({ data: e, state: t, dispatch: a }) {
6128
6258
  let r = () => {
6129
6259
  a({ type: "view", view: e });
6130
6260
  }, i = () => {
@@ -6147,7 +6277,7 @@ function Oo({ data: e, state: t, dispatch: a }) {
6147
6277
  ) : ""
6148
6278
  ] }),
6149
6279
  /* @__PURE__ */ n.jsx("div", { className: "filter u", "set-active": (t.view === e) + "", children: Object.keys(t.data[e].list).map((s, l) => /* @__PURE__ */ n.jsx(
6150
- Ao,
6280
+ qo,
6151
6281
  {
6152
6282
  data: t.data[e].list[s],
6153
6283
  head: e,
@@ -6159,7 +6289,7 @@ function Oo({ data: e, state: t, dispatch: a }) {
6159
6289
  )) })
6160
6290
  ] });
6161
6291
  }
6162
- function Ao({ data: e, head: t, state: a, dispatch: r, type: i }) {
6292
+ function qo({ data: e, head: t, state: a, dispatch: r, type: i }) {
6163
6293
  if (i !== "999" && e.count === void 0)
6164
6294
  return "";
6165
6295
  const s = () => {
@@ -6178,8 +6308,8 @@ function Ao({ data: e, head: t, state: a, dispatch: r, type: i }) {
6178
6308
  }
6179
6309
  );
6180
6310
  }
6181
- const nl = { Button: Mo, useValue: Fo, Set: Po, Run: $o, Count: Bn, Reset: Lo }, al = { Bell: Ks, Send: As, Add: Os };
6182
- function rl({ active: e, onActive: t, id: a, name: r }) {
6311
+ const dl = { Button: Ko, useValue: Zo, Set: Uo, Run: Yo, Count: Fn, Reset: Vo }, ul = { Bell: Qs, Send: qs, Add: Hs };
6312
+ function fl({ active: e, onActive: t, id: a, name: r }) {
6183
6313
  const [i, s] = k.useState(!!e);
6184
6314
  k.useEffect(() => {
6185
6315
  s(!!e);
@@ -6198,32 +6328,32 @@ function rl({ active: e, onActive: t, id: a, name: r }) {
6198
6328
  );
6199
6329
  }
6200
6330
  export {
6201
- Wi as Action,
6202
- Vo as Alert,
6203
- Ko as Api,
6204
- fr as Button,
6205
- Uo as Component,
6206
- qo as DataBase,
6207
- Ne as Events,
6208
- nl as Filter,
6209
- Qo as Form,
6210
- z as Format,
6211
- Yo as Icon,
6212
- zo as Input,
6213
- el as Loading,
6214
- pn as Modal,
6215
- Ge as Notice,
6216
- al as Notifications,
6217
- Re as Router,
6218
- Xo as Scrolling,
6219
- tl as Search,
6220
- Zo as Setting,
6221
- xt as Sistym,
6222
- ft as Socket,
6331
+ Ji as Action,
6332
+ nl as Alert,
6333
+ Qo as Api,
6334
+ xr as Button,
6335
+ tl as Component,
6336
+ il as DataBase,
6337
+ Fe as Events,
6338
+ dl as Filter,
6339
+ ll as Form,
6340
+ K as Format,
6341
+ al as Icon,
6342
+ Fi as Input,
6343
+ cl as Loading,
6344
+ bn as Modal,
6345
+ Ke as Notice,
6346
+ ul as Notifications,
6347
+ ke as Router,
6348
+ ol as Scrolling,
6349
+ _l as Search,
6350
+ el as Setting,
6351
+ vt as Sistym,
6352
+ xt as Socket,
6223
6353
  ce as Store,
6224
- rl as Switch,
6225
- Bi as Tabs,
6226
- B as Telegram,
6227
- Ho as Triage,
6228
- Jo as User
6354
+ fl as Switch,
6355
+ Gi as Tabs,
6356
+ D as Telegram,
6357
+ rl as Triage,
6358
+ sl as User
6229
6359
  };