szdl-utils-kit 0.2.21 → 0.2.23

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var fe = Object.defineProperty;
2
2
  var Ne = (y, A, e) => A in y ? fe(y, A, { enumerable: !0, configurable: !0, writable: !0, value: e }) : y[A] = e;
3
- var C = (y, A, e) => (Ne(y, typeof A != "symbol" ? A + "" : A, e), e), xt = (y, A, e) => {
3
+ var U = (y, A, e) => (Ne(y, typeof A != "symbol" ? A + "" : A, e), e), xt = (y, A, e) => {
4
4
  if (!A.has(y))
5
5
  throw TypeError("Cannot " + e);
6
6
  };
@@ -8,7 +8,7 @@ var o = (y, A, e) => (xt(y, A, "read from private field"), e ? e.call(y) : A.get
8
8
  if (A.has(y))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  A instanceof WeakSet ? A.add(y) : A.set(y, e);
11
- }, E = (y, A, e, n) => (xt(y, A, "write to private field"), n ? n.call(y, e) : A.set(y, e), e);
11
+ }, d = (y, A, e, n) => (xt(y, A, "write to private field"), n ? n.call(y, e) : A.set(y, e), e);
12
12
  var _ = (y, A, e) => (xt(y, A, "access private method"), e);
13
13
  var _e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
14
14
  function Oe(y) {
@@ -18,37 +18,37 @@ var jt = { exports: {} };
18
18
  (function(y, A) {
19
19
  (function(e) {
20
20
  Array.prototype.indexOf || (Array.prototype.indexOf = function(t, s) {
21
- var a, c;
22
- for (a = s || 0, c = this.length; a < c; a += 1)
23
- if (this[a] === t)
24
- return a;
21
+ var h, l;
22
+ for (h = s || 0, l = this.length; h < l; h += 1)
23
+ if (this[h] === t)
24
+ return h;
25
25
  return -1;
26
26
  });
27
27
  var n = this, r = function(t, s) {
28
- for (var a = t.toString(); a.length < s; )
29
- a = "0" + a;
30
- return a;
31
- }, h = function(t, s) {
28
+ for (var h = t.toString(); h.length < s; )
29
+ h = "0" + h;
30
+ return h;
31
+ }, a = function(t, s) {
32
32
  return s !== e ? (t.year(s.year() || s.year), t.month(s.month() || s.month), t.day(s.day() || s.day), t.hours(s.hours() || s.hours), t.minutes(s.minutes() || s.minutes), t.seconds(s.seconds() || s.seconds), t.milliseconds(s.milliseconds() || s.milliseconds), t) : e;
33
- }, l = function(t, s) {
34
- var a, c = "";
35
- return a = t.slice(s, s + 1), a !== "" && !isNaN(Number(a)) && (c += "%H"), a = t.charAt(s + 2), a !== "" && a === ":" && (c += a), a = t.slice(s + 3, s + 4), a !== "" && !isNaN(Number(a)) && (c += "%M"), a = t.charAt(s + 5), a !== "" && a === ":" && (c += a), a = t.slice(s + 6, s + 7), a !== "" && !isNaN(Number(a)) && (c += "%S"), c;
33
+ }, c = function(t, s) {
34
+ var h, l = "";
35
+ return h = t.slice(s, s + 1), h !== "" && !isNaN(Number(h)) && (l += "%H"), h = t.charAt(s + 2), h !== "" && h === ":" && (l += h), h = t.slice(s + 3, s + 4), h !== "" && !isNaN(Number(h)) && (l += "%M"), h = t.charAt(s + 5), h !== "" && h === ":" && (l += h), h = t.slice(s + 6, s + 7), h !== "" && !isNaN(Number(h)) && (l += "%S"), l;
36
36
  }, O = function(t, s) {
37
- var a, c = [
37
+ var h, l = [
38
38
  t.slice(s, s + 1),
39
39
  t.charAt(s + 2),
40
40
  t.slice(s + 3, s + 4),
41
41
  t.charAt(s + 5),
42
42
  t.slice(s + 6, s + 9)
43
43
  ], L;
44
- return !isNaN(Number(c[0])) && !isNaN(Number(c[2])) && !isNaN(Number(c[4])) ? (c[1] === "." && c[3] === "." ? a = "%d.%m.%Y" : c[1] === "-" && c[3] === "-" ? a = "%m-%d-%Y" : c[1] === "/" && c[3] === "/" && (a = "%m/%d/%Y"), a) : (L = [
44
+ return !isNaN(Number(l[0])) && !isNaN(Number(l[2])) && !isNaN(Number(l[4])) ? (l[1] === "." && l[3] === "." ? h = "%d.%m.%Y" : l[1] === "-" && l[3] === "-" ? h = "%m-%d-%Y" : l[1] === "/" && l[3] === "/" && (h = "%m/%d/%Y"), h) : (L = [
45
45
  t.slice(s, s + 3),
46
46
  t.charAt(s + 4),
47
47
  t.slice(s + 5, s + 6),
48
48
  t.charAt(s + 7),
49
49
  t.slice(s + 8, s + 9)
50
- ], !isNaN(Number(L[0])) && !isNaN(Number(L[2])) && !isNaN(Number(L[4])) ? (L[1] === "-" && L[3] === "-" && (a = "%Y-%m-%d"), a) : "");
51
- }, u = n.tempus, i, T, g = n.navigator || {}, m = "en", N = {
50
+ ], !isNaN(Number(L[0])) && !isNaN(Number(L[2])) && !isNaN(Number(L[4])) ? (L[1] === "-" && L[3] === "-" && (h = "%Y-%m-%d"), h) : "");
51
+ }, u = n.tempus, i, T, E = n.navigator || {}, m = "en", N = {
52
52
  en: {
53
53
  JANUARY_SHORT: "Jan",
54
54
  FEBRUARY_SHORT: "Feb",
@@ -224,7 +224,7 @@ var jt = { exports: {} };
224
224
  N[m].NOVEMBER_LONG,
225
225
  N[m].DECEMBER_LONG
226
226
  ];
227
- }, ht = function() {
227
+ }, at = function() {
228
228
  return [
229
229
  N[m].JANUARY_SHORT,
230
230
  N[m].FEBRUARY_SHORT,
@@ -239,7 +239,7 @@ var jt = { exports: {} };
239
239
  N[m].NOVEMBER_SHORT,
240
240
  N[m].DECEMBER_SHORT
241
241
  ];
242
- }, z = function() {
242
+ }, V = function() {
243
243
  return [
244
244
  N[m].SUNDAY_LONG,
245
245
  N[m].MONDAY_LONG,
@@ -249,7 +249,7 @@ var jt = { exports: {} };
249
249
  N[m].FRIDAY_LONG,
250
250
  N[m].SATURDAY_LONG
251
251
  ];
252
- }, k = function() {
252
+ }, J = function() {
253
253
  return [
254
254
  N[m].SUNDAY_SHORT,
255
255
  N[m].MONDAY_SHORT,
@@ -259,13 +259,13 @@ var jt = { exports: {} };
259
259
  N[m].FRIDAY_SHORT,
260
260
  N[m].SATURDAY_SHORT
261
261
  ];
262
- }, P, Mt, ct, lt, me = function(t, s, a) {
263
- var c;
264
- n.XMLHttpRequest ? c = new XMLHttpRequest() : c = new ActiveXObject("Microsoft.XMLHTTP"), c.onreadystatechange = function() {
265
- c.readyState === 4 && (c.status === 200 ? s && (n.JSON === e ? alert(`Please, include json2 into your project if you want use old browsers!
266
- https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.parse(c.responseText))) : a && a(c));
267
- }, c.open("GET", t, !1), c.send();
268
- }, U = {
262
+ }, F, Mt, ct, lt, me = function(t, s, h) {
263
+ var l;
264
+ n.XMLHttpRequest ? l = new XMLHttpRequest() : l = new ActiveXObject("Microsoft.XMLHTTP"), l.onreadystatechange = function() {
265
+ l.readyState === 4 && (l.status === 200 ? s && (n.JSON === e ? alert(`Please, include json2 into your project if you want use old browsers!
266
+ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.parse(l.responseText))) : h && h(l));
267
+ }, l.open("GET", t, !1), l.send();
268
+ }, I = {
269
269
  "%d": {
270
270
  format: function(t) {
271
271
  return r(t.day() || i.MIN_DAY, 2);
@@ -353,7 +353,7 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
353
353
  "%B": {
354
354
  format: function(t) {
355
355
  var s = i.options("monthFromZero") ? t.month() : t.month() - 1;
356
- return P[s !== e ? s : i.MIN_MONTH];
356
+ return F[s !== e ? s : i.MIN_MONTH];
357
357
  },
358
358
  parse: function(t) {
359
359
  var s = i.monthNames(!0).indexOf(t) + (i.options("monthFromZero") ? 0 : 1);
@@ -415,11 +415,11 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
415
415
  return r(t.year() || i.MIN_YEAR, 4) + "-" + r(t.month() || i.MIN_MONTH, 2) + "-" + r(t.day() || i.MIN_DAY, 2);
416
416
  },
417
417
  parse: function(t) {
418
- var s = Number(t.slice(0, 4)), a = Number(t.slice(5, 7)), c = Number(t.slice(8, 10));
418
+ var s = Number(t.slice(0, 4)), h = Number(t.slice(5, 7)), l = Number(t.slice(8, 10));
419
419
  return {
420
420
  year: s,
421
- month: a,
422
- day: c
421
+ month: h,
422
+ day: l
423
423
  };
424
424
  },
425
425
  minLength: 10,
@@ -431,11 +431,11 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
431
431
  return r(t.month() || i.MIN_MONTH, 2) + "/" + r(t.day() || i.MIN_DAY, 2) + "/" + r(t.year() || i.MIN_YEAR, 4);
432
432
  },
433
433
  parse: function(t) {
434
- var s = Number(t.slice(0, 2)), a = Number(t.slice(3, 5)), c = Number(t.slice(6, 10));
434
+ var s = Number(t.slice(0, 2)), h = Number(t.slice(3, 5)), l = Number(t.slice(6, 10));
435
435
  return {
436
- year: c,
436
+ year: l,
437
437
  month: s,
438
- day: a
438
+ day: h
439
439
  };
440
440
  },
441
441
  minLength: 10,
@@ -446,7 +446,7 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
446
446
  useMilliseconds: !1,
447
447
  monthFromZero: !1
448
448
  }, R;
449
- R = function(t, s, a) {
449
+ R = function(t, s, h) {
450
450
  return this._d = /* @__PURE__ */ new Date(), this._i = {
451
451
  year: !1,
452
452
  month: !1,
@@ -455,7 +455,7 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
455
455
  minutes: !1,
456
456
  seconds: !1,
457
457
  milliseconds: !1
458
- }, t !== e && this.set(t, s, a), this;
458
+ }, t !== e && this.set(t, s, h), this;
459
459
  }, R.fn = R.prototype, R.fn.dayCount = function() {
460
460
  var t = this.month(), s = i.MAX_DAY_IN_MONTHS[t - (i.options("monthFromZero") ? 0 : 1)];
461
461
  return this.leapYear() && t === (i.options("monthFromZero") ? 1 : 2) && (s += 1), s;
@@ -504,7 +504,7 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
504
504
  }, R.fn.week = function() {
505
505
  var t = new Date(this.year(), 0, 1), s = i(this.utc()).hours(0).minutes(0).seconds(0).milliseconds(0).utc() * 1e3;
506
506
  return Math.ceil(((s - t.getTime()) / 864e5 + t.getDay() + 1) / 7);
507
- }, R.fn.set = function(t, s, a) {
507
+ }, R.fn.set = function(t, s, h) {
508
508
  if (this._i = {
509
509
  year: !1,
510
510
  month: !1,
@@ -520,9 +520,9 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
520
520
  if (typeof t == "number")
521
521
  return this._d = new Date(t * (i.options("useMilliseconds") ? 1 : 1e3)), this;
522
522
  if (typeof t == "object" && (t instanceof Array ? (this.day(i.MIN_DAY), this.year(t[0]), this.month(t[1]), this.day(t[2]), this.hours(t[3]), this.minutes(t[4]), this.seconds(t[5]), this.milliseconds(t[6])) : (this.day(i.MIN_DAY), this.year(t.year), this.month(t.month), this.day(t.day), this.hours(t.hours), this.minutes(t.minutes), this.seconds(t.seconds), this.milliseconds(t.milliseconds))), typeof t == "string") {
523
- var c, L = [], d, S, X = [], H = 0, D = 0, M, w, p = {}, b;
523
+ var l, L = [], g, S, k = [], H = 0, D = 0, M, w, p = {}, b;
524
524
  if (t === e)
525
- return d = h(this, a), d === e && (this._i = {
525
+ return g = a(this, h), g === e && (this._i = {
526
526
  year: -1,
527
527
  month: -1,
528
528
  day: -1,
@@ -530,26 +530,26 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
530
530
  minutes: -1,
531
531
  seconds: -1,
532
532
  milliseconds: -1
533
- }), d;
533
+ }), g;
534
534
  for (s === e && (s = i.detectFormat(t)); H < s.length; ) {
535
535
  if (s.charAt(H) === "%") {
536
- if (S = s.charAt(H) + s.charAt(H + 1), U[S] !== e) {
537
- switch (M = 0, w = "", U[S].type) {
536
+ if (S = s.charAt(H) + s.charAt(H + 1), I[S] !== e) {
537
+ switch (M = 0, w = "", I[S].type) {
538
538
  case "number":
539
- for (; M < U[S].maxLength && D + M < t.length && !isNaN(Number(t.charAt(D + M))); )
539
+ for (; M < I[S].maxLength && D + M < t.length && !isNaN(Number(t.charAt(D + M))); )
540
540
  w += t.charAt(D + M), M += 1;
541
541
  break;
542
542
  case "word":
543
- for (; M < U[S].maxLength && D + M < t.length && /^[\u00BF-\u1FFF\u2C00-\uD7FF\w]+$/.test(t.charAt(D + M)); )
543
+ for (; M < I[S].maxLength && D + M < t.length && /^[\u00BF-\u1FFF\u2C00-\uD7FF\w]+$/.test(t.charAt(D + M)); )
544
544
  w += t.charAt(D + M), M += 1;
545
545
  break;
546
546
  case "string":
547
- for (; M < U[S].maxLength && D + M < t.length; )
547
+ for (; M < I[S].maxLength && D + M < t.length; )
548
548
  w += t.charAt(D + M), M += 1;
549
549
  break;
550
550
  }
551
- if (M < U[S].minLength)
552
- return d = h(this, a), d === e && (this._i = {
551
+ if (M < I[S].minLength)
552
+ return g = a(this, h), g === e && (this._i = {
553
553
  year: -1,
554
554
  month: -1,
555
555
  day: -1,
@@ -557,11 +557,11 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
557
557
  minutes: -1,
558
558
  seconds: -1,
559
559
  milliseconds: -1
560
- }), d;
561
- L.push(S), X.push(w), M -= 1, D += M, H += 1;
560
+ }), g;
561
+ L.push(S), k.push(w), M -= 1, D += M, H += 1;
562
562
  }
563
563
  } else if (t.charAt(D) !== s.charAt(H))
564
- return d = h(this, a), d === e && (this._i = {
564
+ return g = a(this, h), g === e && (this._i = {
565
565
  year: -1,
566
566
  month: -1,
567
567
  day: -1,
@@ -569,11 +569,11 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
569
569
  minutes: -1,
570
570
  seconds: -1,
571
571
  milliseconds: -1
572
- }), d;
572
+ }), g;
573
573
  H += 1, D += 1;
574
574
  }
575
- for (c in L)
576
- L.hasOwnProperty(c) && U.hasOwnProperty(L[c]) && (b = U[L[c]].parse(X[c]), p = {
575
+ for (l in L)
576
+ L.hasOwnProperty(l) && I.hasOwnProperty(L[l]) && (b = I[L[l]].parse(k[l]), p = {
577
577
  year: b.year !== e ? b.year : p.year,
578
578
  month: b.month !== e ? b.month : p.month,
579
579
  day: b.day !== e ? b.day : p.day,
@@ -671,35 +671,35 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
671
671
  };
672
672
  }
673
673
  }, R.fn.format = function(t) {
674
- for (var s = 0, a = "", c; s < t.length; )
675
- t.charAt(s) === "%" ? (c = t.charAt(s) + t.charAt(s + 1), U[c] !== e ? (a += U[c].format(this), s += 1) : a += "%") : a += t.charAt(s), s += 1;
676
- return a;
674
+ for (var s = 0, h = "", l; s < t.length; )
675
+ t.charAt(s) === "%" ? (l = t.charAt(s) + t.charAt(s + 1), I[l] !== e ? (h += I[l].format(this), s += 1) : h += "%") : h += t.charAt(s), s += 1;
676
+ return h;
677
677
  }, R.fn.valid = function() {
678
678
  return this._i.year === !1 && this._i.month === !1 && this._i.day === !1 && this._i.hours === !1 && this._i.minutes === !1 && this._i.seconds === !1 && this._i.milliseconds === !1;
679
679
  }, R.fn.errors = function() {
680
680
  return this._i;
681
681
  }, R.fn.between = function(t, s) {
682
- var a = this.timestamp(), c = t.timestamp();
682
+ var h = this.timestamp(), l = t.timestamp();
683
683
  switch (s) {
684
684
  case "year":
685
- return Math.floor((c - a) / 31556952);
685
+ return Math.floor((l - h) / 31556952);
686
686
  case "month":
687
- return Math.floor((c - a) / 2629746);
687
+ return Math.floor((l - h) / 2629746);
688
688
  case "day":
689
- return Math.floor((c - a) / 86400);
689
+ return Math.floor((l - h) / 86400);
690
690
  case "hours":
691
- return Math.floor((c - a) / 3600);
691
+ return Math.floor((l - h) / 3600);
692
692
  case "minutes":
693
- return Math.floor((c - a) / 60);
693
+ return Math.floor((l - h) / 60);
694
694
  case "seconds":
695
- return c - a;
695
+ return l - h;
696
696
  default:
697
697
  return e;
698
698
  }
699
699
  }, R.fn.calc = function(t) {
700
700
  return t.year !== e && this._d.setFullYear(this._d.getFullYear() + t.year), t.month !== e && this._d.setMonth(this._d.getMonth() + t.month), t.day !== e && this._d.setDate(this._d.getDate() + t.day), t.hours !== e && this._d.setHours(this._d.getHours() + t.hours), t.minutes !== e && this._d.setMinutes(this._d.getMinutes() + t.minutes), t.seconds !== e && this._d.setSeconds(this._d.getSeconds() + t.seconds), t.milliseconds !== e && this._d.setMilliseconds(this._d.getMilliseconds() + t.milliseconds), this;
701
- }, i = function(t, s, a) {
702
- return new R(t, s, a);
701
+ }, i = function(t, s, h) {
702
+ return new R(t, s, h);
703
703
  }, i.MIN_YEAR = 1e3, i.MAX_YEAR = 3e3, i.MIN_MONTH = 1, i.MAX_MONTH = 12, i.MIN_DAY = 1, i.MAX_DAY_IN_MONTHS = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], i.MIN_DAY_OF_WEEK = 0, i.MAX_DAY_OF_WEEK = 6, i.MIN_HOURS = 0, i.MAX_HOURS = 23, i.MIN_MINUTES = 0, i.MAX_MINUTES = 59, i.MIN_SECONDS = 0, i.MAX_SECONDS = 59, i.MIN_MILLISECONDS = 0, i.MAX_MILLISECONDS = 999, i.VERSION = "0.2.18", i.options = function(t, s) {
704
704
  if (t === e)
705
705
  return pt;
@@ -712,58 +712,58 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
712
712
  }, i.noConflict = function() {
713
713
  return n.tempus = u, i;
714
714
  }, i.generate = function(t) {
715
- var s, a, c, L, d, S, X, H;
716
- if (typeof t.dateFrom != "number" && (t.dateFrom instanceof R ? s = t.dateFrom.utc() : s = i(t.dateFrom, t.formatFrom).utc()), typeof t.dateTo != "number" && (t.dateTo instanceof R ? a = t.dateTo.utc() : a = i(t.dateTo, t.formatTo !== e ? t.formatTo : t.formatFrom).utc()), typeof t.period == "number" ? d = {
715
+ var s, h, l, L, g, S, k, H;
716
+ if (typeof t.dateFrom != "number" && (t.dateFrom instanceof R ? s = t.dateFrom.utc() : s = i(t.dateFrom, t.formatFrom).utc()), typeof t.dateTo != "number" && (t.dateTo instanceof R ? h = t.dateTo.utc() : h = i(t.dateTo, t.formatTo !== e ? t.formatTo : t.formatFrom).utc()), typeof t.period == "number" ? g = {
717
717
  year: 0,
718
718
  month: 0,
719
719
  day: 0,
720
720
  hours: 0,
721
721
  minutes: 0,
722
722
  seconds: t.period
723
- } : typeof t.period == "string" ? d = {
723
+ } : typeof t.period == "string" ? g = {
724
724
  year: t.period === "year" ? 1 : 0,
725
725
  month: t.period === "month" ? 1 : 0,
726
726
  day: t.period === "day" ? 1 : 0,
727
727
  hours: t.period === "hours" ? 1 : 0,
728
728
  minutes: t.period === "minutes" ? 1 : 0,
729
729
  seconds: t.period === "seconds" ? 1 : 0
730
- } : typeof t.period == "object" && (d = {
730
+ } : typeof t.period == "object" && (g = {
731
731
  year: t.period.year !== e ? t.period.year : 0,
732
732
  month: t.period.month !== e ? t.period.month : 0,
733
733
  day: t.period.day !== e ? t.period.day : 0,
734
734
  hours: t.period.hours !== e ? t.period.hours : 0,
735
735
  minutes: t.period.minutes !== e ? t.period.minutes : 0,
736
736
  seconds: t.period.seconds !== e ? t.period.seconds : 0
737
- }), t.groupBy === e ? S = t.asObject === !0 ? {} : [] : (S = [], S.push([]), X = i(s).get()[t.groupBy]), H = function(w, p, b) {
737
+ }), t.groupBy === e ? S = t.asObject === !0 ? {} : [] : (S = [], S.push([]), k = i(s).get()[t.groupBy]), H = function(w, p, b) {
738
738
  return t.asObject === !0 ? t.format !== e ? w[i(p).format(t.format)] = {} : w[i(p).format("%F %H:%M:%S")] = {} : t.format !== e ? w.push(b ? null : i(p).format(t.format)) : w.push(b ? null : i(p)), w;
739
739
  }, t.groupBy !== e && t.fillNulls) {
740
740
  var D = {
741
- year: d.year ? -d.year : e,
742
- month: d.month ? -d.month : e,
743
- day: d.day ? -d.day : e,
744
- hours: d.hours ? -d.hours : e,
745
- minutes: d.minutes ? -d.minutes : e,
746
- seconds: d.seconds ? -d.seconds : e,
747
- milliseconds: d.milliseconds ? -d.milliseconds : e
741
+ year: g.year ? -g.year : e,
742
+ month: g.month ? -g.month : e,
743
+ day: g.day ? -g.day : e,
744
+ hours: g.hours ? -g.hours : e,
745
+ minutes: g.minutes ? -g.minutes : e,
746
+ seconds: g.seconds ? -g.seconds : e,
747
+ milliseconds: g.milliseconds ? -g.milliseconds : e
748
748
  };
749
- for (c = i(s).calc(D).utc(); i(c).get()[t.groupBy] === X; )
750
- H(S[S.length - 1], c, !0), c = i(c).calc(D).utc();
749
+ for (l = i(s).calc(D).utc(); i(l).get()[t.groupBy] === k; )
750
+ H(S[S.length - 1], l, !0), l = i(l).calc(D).utc();
751
751
  if (t.groupBy === "week") {
752
752
  var M = i(s).dayOfWeek();
753
- for (c = i(s).dayOfWeek(0).utc(); S[0].length < M && c < s; )
754
- H(S[S.length - 1], c, !0), c = i(c).calc(d).utc();
753
+ for (l = i(s).dayOfWeek(0).utc(); S[0].length < M && l < s; )
754
+ H(S[S.length - 1], l, !0), l = i(l).calc(g).utc();
755
755
  }
756
756
  }
757
- for (; s <= a; )
758
- t.groupBy === e ? H(S, s) : i(s).get()[t.groupBy] === X ? H(S[S.length - 1], s) : (S.push([]), H(S[S.length - 1], s), X = i(s).get()[t.groupBy]), s = i(s).calc(d).utc();
757
+ for (; s <= h; )
758
+ t.groupBy === e ? H(S, s) : i(s).get()[t.groupBy] === k ? H(S[S.length - 1], s) : (S.push([]), H(S[S.length - 1], s), k = i(s).get()[t.groupBy]), s = i(s).calc(g).utc();
759
759
  if (t.groupBy !== e && t.fillNulls)
760
- for (L = i(a).calc(d).utc(); i(L).get()[t.groupBy] === X; )
761
- H(S[S.length - 1], L, !0), L = i(L).calc(d).utc();
760
+ for (L = i(h).calc(g).utc(); i(L).get()[t.groupBy] === k; )
761
+ H(S[S.length - 1], L, !0), L = i(L).calc(g).utc();
762
762
  return S;
763
763
  }, i.monthNames = function(t) {
764
764
  switch (t) {
765
765
  case "long":
766
- return P;
766
+ return F;
767
767
  default:
768
768
  return Mt;
769
769
  }
@@ -776,25 +776,25 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
776
776
  }
777
777
  }, i.lang = function(t) {
778
778
  if (t !== e)
779
- m = t, N[m] === e && (m = "en"), P = G(), Mt = ht(), ct = z(), lt = k();
779
+ m = t, N[m] === e && (m = "en"), F = G(), Mt = at(), ct = V(), lt = J();
780
780
  else
781
781
  return m;
782
782
  return e;
783
783
  }, i.availableLangs = function() {
784
784
  return Object.keys(N);
785
- }, i.registerFormat = function(t, s, a, c, L, d) {
786
- U[t] = {
785
+ }, i.registerFormat = function(t, s, h, l, L, g) {
786
+ I[t] = {
787
787
  format: s,
788
- parse: a,
789
- minLength: c,
788
+ parse: h,
789
+ minLength: l,
790
790
  maxLength: L,
791
- type: d
791
+ type: g
792
792
  };
793
793
  }, i.unregisterFormat = function(t) {
794
- delete U[t];
794
+ delete I[t];
795
795
  }, i.detectFormat = function(t) {
796
- var s, a, c;
797
- return s = O(t, 0), s !== "" && (c = 10), a = t.charAt(c), (a === "T" || a === " ") && (s += a, c += 1), s += l(t, c), s;
796
+ var s, h, l;
797
+ return s = O(t, 0), s !== "" && (l = 10), h = t.charAt(l), (h === "T" || h === " ") && (s += h, l += 1), s += c(t, l), s;
798
798
  }, T = {
799
799
  TempusDate: R
800
800
  }, i.classes = function(t, s) {
@@ -806,15 +806,15 @@ https://github.com/douglascrockford/JSON-js/blob/master/json2.js`) : s(JSON.pars
806
806
  N = s;
807
807
  }, function(s) {
808
808
  });
809
- }, m = (g.language || g.systemLanguage || g.userLanguage || "en").substr(0, 2).toLowerCase(), N[m] === e && (m = "en"), P = G(), Mt = ht(), ct = z(), lt = k(), y.exports && (A = y.exports = i), A.tempus = i;
809
+ }, m = (E.language || E.systemLanguage || E.userLanguage || "en").substr(0, 2).toLowerCase(), N[m] === e && (m = "en"), F = G(), Mt = at(), ct = V(), lt = J(), y.exports && (A = y.exports = i), A.tempus = i;
810
810
  }).call(_e);
811
811
  })(jt, jt.exports);
812
812
  var ye = jt.exports;
813
813
  const Ht = /* @__PURE__ */ Oe(ye);
814
- var K, mt, q, Y, W, j, v, $, I, Q, It, tt, F, et, At, nt, Dt, ft, Qt, Nt, Zt, _t, Vt, Ot, zt, yt, Kt, Ut, se, Gt, ie, dt, qt, Et, vt, gt, $t, ot, Yt, Tt, te, wt, re, st, ut, at, Bt, Rt, ee;
815
- class x {
814
+ var z, mt, K, Y, P, x, q, v, B, j, It, $, C, tt, et, rt, Dt, ft, Qt, Nt, Zt, _t, Vt, Ot, zt, yt, Kt, Ut, se, Gt, ie, dt, qt, gt, vt, Et, $t, nt, Yt, Tt, te, wt, re, At, ut, ot, Bt, Rt, ee;
815
+ class X {
816
816
  constructor(A, e = {}) {
817
- f(this, nt);
817
+ f(this, rt);
818
818
  f(this, ft);
819
819
  f(this, Nt);
820
820
  f(this, _t);
@@ -823,237 +823,237 @@ class x {
823
823
  f(this, Ut);
824
824
  f(this, Gt);
825
825
  f(this, dt);
826
- f(this, Et);
827
826
  f(this, gt);
828
- f(this, ot);
827
+ f(this, Et);
828
+ f(this, nt);
829
829
  f(this, Tt);
830
830
  f(this, wt);
831
- f(this, st);
832
- f(this, at);
831
+ f(this, At);
832
+ f(this, ot);
833
833
  f(this, Rt);
834
- f(this, K, null);
834
+ f(this, z, null);
835
835
  f(this, mt, null);
836
- f(this, q, []);
836
+ f(this, K, []);
837
837
  f(this, Y, {});
838
- f(this, W, 50);
839
- f(this, j, 50);
840
- f(this, v, !0);
841
- f(this, $, null);
842
- f(this, I, null);
843
- f(this, Q, null);
838
+ f(this, P, 50);
839
+ f(this, x, 50);
840
+ f(this, q, !0);
841
+ f(this, v, null);
842
+ f(this, B, null);
843
+ f(this, j, null);
844
844
  f(this, It, 100);
845
- f(this, tt, "no");
846
- f(this, F, !1);
845
+ f(this, $, "no");
846
+ f(this, C, !1);
847
+ f(this, tt, !1);
847
848
  f(this, et, !1);
848
- f(this, At, !1);
849
- C(this, "errors", {});
850
- C(this, "answerData", {});
851
- E(this, K, A), E(this, mt, e);
849
+ U(this, "errors", {});
850
+ U(this, "answerData", {});
851
+ d(this, z, A), d(this, mt, e);
852
852
  }
853
853
  get serial() {
854
- return o(this, F);
854
+ return o(this, C);
855
855
  }
856
856
  get limitCommandSerial() {
857
- return o(this, j);
857
+ return o(this, x);
858
858
  }
859
859
  set limitCommandSerial(A) {
860
860
  if (A < 10)
861
861
  throw new Error("limitCommandSerial не может быть меньше 10");
862
- A >= 10 && A < 50 && (E(this, W, A), E(this, j, A)), E(this, j, A);
862
+ A >= 10 && A < 50 && (d(this, P, A), d(this, x, A)), d(this, x, A);
863
863
  }
864
864
  setSerial() {
865
- E(this, F, !0), E(this, et, !0), E(this, At, !1);
865
+ d(this, C, !0), d(this, tt, !0), d(this, et, !1);
866
866
  }
867
867
  setParallel() {
868
- E(this, F, !1), E(this, et, !1), E(this, At, !0);
868
+ d(this, C, !1), d(this, tt, !1), d(this, et, !0);
869
869
  }
870
870
  stop() {
871
- E(this, v, !1);
871
+ d(this, q, !1);
872
872
  }
873
873
  async batch(A, e) {
874
- o(this, Q) && _(this, ft, Qt).call(this), e && E(this, $, e), o(this, et) === !1 && E(this, F, !1), Object.keys(A).length > o(this, j) && E(this, F, !0), E(this, v, !0), E(this, q, []), E(this, Y, {}), this.errors = {}, this.answerData = {};
874
+ o(this, j) && _(this, ft, Qt).call(this), e && d(this, v, e), o(this, tt) === !1 && d(this, C, !1), Object.keys(A).length > o(this, x) && d(this, C, !0), d(this, q, !0), d(this, K, []), d(this, Y, {}), this.errors = {}, this.answerData = {};
875
875
  const n = _(this, _t, Vt).call(this, A);
876
- if (Object.keys(A).length < o(this, j)) {
877
- const r = n.map((h, l) => _(this, Ot, zt).call(this, h, n[l]));
878
- return Promise.allSettled(r).then((h) => {
879
- let l = {};
880
- for (let O of h)
881
- O.status === "fulfilled" && (l = { ...l, ...O.value });
882
- return l;
876
+ if (Object.keys(A).length < o(this, x)) {
877
+ const r = n.map((a, c) => _(this, Ot, zt).call(this, a, n[c]));
878
+ return Promise.allSettled(r).then((a) => {
879
+ let c = {};
880
+ for (let O of a)
881
+ O.status === "fulfilled" && (c = { ...c, ...O.value });
882
+ return c;
883
883
  });
884
884
  } else {
885
- let r = {}, h = 0, l = 1, O = Object.keys(A).length || 1, u = (i) => {
886
- h += Object.keys(i).length, l = Math.round(h / O * 100);
885
+ let r = {}, a = 0, c = 1, O = Object.keys(A).length || 1, u = (i) => {
886
+ a += Object.keys(i).length, c = Math.round(a / O * 100);
887
887
  };
888
888
  for (let [i, T] of Object.entries(n)) {
889
- let g = await _(this, Ot, zt).call(this, T, n[i], !0);
890
- u(T), e && e({ percent: l }), r = { ...r, ...g };
889
+ let E = await _(this, Ot, zt).call(this, T, n[i], !0);
890
+ u(T), e && e({ percent: c }), r = { ...r, ...E };
891
891
  }
892
892
  return r;
893
893
  }
894
894
  }
895
895
  async batchTotalCount(A, e) {
896
- E(this, Y, {}), this.errors = {};
897
- let n = 1, r = 0, h = Object.keys(A).length || 1, l = (u) => {
898
- r += Object.keys(u).length, n = Math.round(r / h * 100);
896
+ d(this, Y, {}), this.errors = {};
897
+ let n = 1, r = 0, a = Object.keys(A).length || 1, c = (u) => {
898
+ r += Object.keys(u).length, n = Math.round(r / a * 100);
899
899
  };
900
900
  e && e({ percent: n });
901
901
  const O = _(this, _t, Vt).call(this, A);
902
- if (o(this, At)) {
903
- const u = O.map((i) => _(this, yt, Kt).call(this, i).then((T) => (l(i), e && e({ percent: n }), T)));
902
+ if (o(this, et)) {
903
+ const u = O.map((i) => _(this, yt, Kt).call(this, i).then((T) => (c(i), e && e({ percent: n }), T)));
904
904
  return Promise.allSettled(u).then((i) => {
905
905
  let T = {};
906
- for (let g of i)
907
- g.status === "fulfilled" && (T = { ...T, ...g.value });
906
+ for (let E of i)
907
+ E.status === "fulfilled" && (T = { ...T, ...E.value });
908
908
  return T;
909
909
  });
910
910
  } else {
911
911
  let u = {};
912
912
  for (let i of O) {
913
913
  let T = await _(this, yt, Kt).call(this, i);
914
- l(i), e && e({ percent: n }), u = { ...u, ...T };
914
+ c(i), e && e({ percent: n }), u = { ...u, ...T };
915
915
  }
916
916
  return u;
917
917
  }
918
918
  }
919
919
  }
920
- K = new WeakMap(), mt = new WeakMap(), q = new WeakMap(), Y = new WeakMap(), W = new WeakMap(), j = new WeakMap(), v = new WeakMap(), $ = new WeakMap(), I = new WeakMap(), Q = new WeakMap(), It = new WeakMap(), tt = new WeakMap(), F = new WeakMap(), et = new WeakMap(), At = new WeakMap(), nt = new WeakSet(), Dt = function() {
920
+ z = new WeakMap(), mt = new WeakMap(), K = new WeakMap(), Y = new WeakMap(), P = new WeakMap(), x = new WeakMap(), q = new WeakMap(), v = new WeakMap(), B = new WeakMap(), j = new WeakMap(), It = new WeakMap(), $ = new WeakMap(), C = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), rt = new WeakSet(), Dt = function() {
921
921
  let A = 0;
922
- if (!o(this, I))
922
+ if (!o(this, B))
923
923
  return Math.round(A);
924
924
  let e = 0, n = 0;
925
- return Object.values(o(this, I)).forEach((r) => {
926
- const { total: h, count: l } = r;
927
- e += h ?? 0, n += l ?? 0;
925
+ return Object.values(o(this, B)).forEach((r) => {
926
+ const { total: a, count: c } = r;
927
+ e += a ?? 0, n += c ?? 0;
928
928
  }), e ? A = n / e * 100 : A = 100, { percent: Math.round(A), allCount: n, allTotal: e };
929
929
  }, ft = new WeakSet(), Qt = function() {
930
- clearInterval(o(this, Q)), E(this, Q, ""), E(this, I, ""), E(this, $, ""), E(this, tt, "no");
930
+ clearInterval(o(this, j)), d(this, j, ""), d(this, B, ""), d(this, v, ""), d(this, $, "no");
931
931
  }, Nt = new WeakSet(), Zt = function({ key: A, value: e }) {
932
- const n = _(this, st, ut).call(this, e.data()), r = Array.isArray(n) ? n.length : 0, h = _(this, at, Bt).call(this, e.total(), r);
933
- let l = 1;
934
- n && (l = r), o(this, $) && (o(this, I) || E(this, I, {}), o(this, I)[A] && o(this, I)[A].count && (l += o(this, I)[A].count), o(this, I)[A] = { total: h, count: l }, o(this, Q) || E(this, Q, setInterval(() => {
935
- const { percent: O, allCount: u, allTotal: i } = o(this, nt, Dt);
936
- (o(this, tt) === "no" || o(this, tt) < o(this, nt, Dt).percent) && (o(this, $).call(this, {
937
- data: o(this, I),
932
+ const n = _(this, At, ut).call(this, e.data()), r = Array.isArray(n) ? n.length : 0, a = _(this, ot, Bt).call(this, e.total(), r);
933
+ let c = 1;
934
+ n && (c = r), o(this, v) && (o(this, B) || d(this, B, {}), o(this, B)[A] && o(this, B)[A].count && (c += o(this, B)[A].count), o(this, B)[A] = { total: a, count: c }, o(this, j) || d(this, j, setInterval(() => {
935
+ const { percent: O, allCount: u, allTotal: i } = o(this, rt, Dt);
936
+ (o(this, $) === "no" || o(this, $) < o(this, rt, Dt).percent) && (o(this, v).call(this, {
937
+ data: o(this, B),
938
938
  percent: O,
939
939
  allCount: u,
940
940
  allTotal: i
941
- }), E(this, tt, o(this, nt, Dt).percent)), O === 100 && _(this, ft, Qt).call(this);
941
+ }), d(this, $, o(this, rt, Dt).percent)), O === 100 && _(this, ft, Qt).call(this);
942
942
  }, o(this, It))));
943
943
  }, _t = new WeakSet(), Vt = function(A) {
944
944
  const e = [], n = Object.entries(A);
945
- for (let r = 0; r < n.length; r += o(this, W)) {
946
- const h = n.slice(r, r + o(this, W));
947
- e.push(Object.fromEntries(h));
945
+ for (let r = 0; r < n.length; r += o(this, P)) {
946
+ const a = n.slice(r, r + o(this, P));
947
+ e.push(Object.fromEntries(a));
948
948
  }
949
949
  return e;
950
950
  }, Ot = new WeakSet(), zt = function(A, e, n) {
951
951
  return new Promise((r) => {
952
- const h = _(this, Tt, te).call(this, e), l = [];
952
+ const a = _(this, Tt, te).call(this, e), c = [];
953
953
  let O = 0, u = 0;
954
- o(this, K).call(this, A, (i) => {
955
- Object.entries(i).forEach(([T, g]) => {
954
+ o(this, z).call(this, A, (i) => {
955
+ Object.entries(i).forEach(([T, E]) => {
956
956
  let m = {};
957
- const N = g.error();
957
+ const N = E.error();
958
958
  if (N) {
959
- let { query: { method: k }, answer: P } = g;
960
- this.errors[T] = { error: N, method: k }, O += 1;
959
+ let { query: { method: J }, answer: F } = E;
960
+ this.errors[T] = { error: N, method: J }, O += 1;
961
961
  }
962
- if (g != null && g.answer && Object.keys(g.answer).length) {
963
- for (let [k, P] of Object.entries(g.answer))
964
- k != "result" && P && (m[k] = P);
962
+ if (E != null && E.answer && Object.keys(E.answer).length) {
963
+ for (let [J, F] of Object.entries(E.answer))
964
+ J != "result" && F && (m[J] = F);
965
965
  Object.keys(m).length && (this.answerData[T] = m);
966
966
  }
967
- const G = _(this, st, ut).call(this, g.data()), ht = Array.isArray(G) ? G.length : 0, z = _(this, at, Bt).call(this, g.total(), ht);
968
- if (Array.isArray(G) ? o(this, Y)[T] = G : typeof G == "object" && G !== null && Object.keys(G).length === 0 ? o(this, Y)[T] = [] : o(this, Y)[T] = G, u += z, n || _(this, Nt, Zt).call(this, { key: T, value: g }), z > o(this, W) && z > ht) {
969
- const k = Math.ceil(z / o(this, W)) - 1, P = Array.from({ length: k });
970
- l.push([T, h[T], P]);
967
+ const G = _(this, At, ut).call(this, E.data()), at = Array.isArray(G) ? G.length : 0, V = _(this, ot, Bt).call(this, E.total(), at);
968
+ if (Array.isArray(G) ? o(this, Y)[T] = G : typeof G == "object" && G !== null && Object.keys(G).length === 0 ? o(this, Y)[T] = [] : o(this, Y)[T] = G, u += V, n || _(this, Nt, Zt).call(this, { key: T, value: E }), V > o(this, P) && V > at) {
969
+ const J = Math.ceil(V / o(this, P)) - 1, F = Array.from({ length: J });
970
+ c.push([T, a[T], F]);
971
971
  }
972
- }), u > 5e3 && o(this, et) === !1 && o(this, At) === !1 && E(this, F, !0), O > 0 && _(this, Rt, ee).call(this), l.length ? (_(this, Ut, se).call(this, l), _(this, Gt, ie).call(this).then(() => r(_(this, ot, Yt).call(this)))) : r(_(this, ot, Yt).call(this));
972
+ }), u > 5e3 && o(this, tt) === !1 && o(this, et) === !1 && d(this, C, !0), O > 0 && _(this, Rt, ee).call(this), c.length ? (_(this, Ut, se).call(this, c), _(this, Gt, ie).call(this).then(() => r(_(this, nt, Yt).call(this)))) : r(_(this, nt, Yt).call(this));
973
973
  });
974
974
  });
975
975
  }, yt = new WeakSet(), Kt = function(A) {
976
976
  return new Promise((e) => {
977
977
  const n = _(this, Tt, te).call(this, A);
978
978
  let r = 0;
979
- o(this, K).call(this, n, (h) => {
980
- Object.entries(h).forEach(([l, O]) => {
979
+ o(this, z).call(this, n, (a) => {
980
+ Object.entries(a).forEach(([c, O]) => {
981
981
  const u = O.error();
982
- u && (this.errors[l] = u, r += 1);
983
- const i = _(this, st, ut).call(this, O.data()), T = Array.isArray(i) ? i.length : 0, g = _(this, at, Bt).call(this, O.total(), T);
984
- o(this, Y)[l] = g;
985
- }), r > 0 && _(this, Rt, ee).call(this), e(_(this, ot, Yt).call(this));
982
+ u && (this.errors[c] = u, r += 1);
983
+ const i = _(this, At, ut).call(this, O.data()), T = Array.isArray(i) ? i.length : 0, E = _(this, ot, Bt).call(this, O.total(), T);
984
+ o(this, Y)[c] = E;
985
+ }), r > 0 && _(this, Rt, ee).call(this), e(_(this, nt, Yt).call(this));
986
986
  });
987
987
  });
988
988
  }, Ut = new WeakSet(), se = function(A) {
989
989
  let e = [];
990
- A.forEach(([n, r, h]) => {
991
- h.forEach((l, O) => {
992
- const u = O + 1, i = o(this, W) * u, g = [[n, u].join("_"), _(this, wt, re).call(this, r, i)];
993
- e.length === o(this, W) ? (o(this, q).push(e), e = [g]) : e.push(g);
990
+ A.forEach(([n, r, a]) => {
991
+ a.forEach((c, O) => {
992
+ const u = O + 1, i = o(this, P) * u, E = [[n, u].join("_"), _(this, wt, re).call(this, r, i)];
993
+ e.length === o(this, P) ? (o(this, K).push(e), e = [E]) : e.push(E);
994
994
  });
995
- }), e.length && o(this, q).push(e);
995
+ }), e.length && o(this, K).push(e);
996
996
  }, Gt = new WeakSet(), ie = function() {
997
997
  const A = [], e = [], n = (r) => {
998
- Object.entries(r).forEach(([h, l]) => {
999
- const [O] = h.split("_"), u = _(this, st, ut).call(this, l.data());
1000
- Array.isArray(u) && o(this, Y)[O].push(...u), _(this, Nt, Zt).call(this, { key: O, value: l });
998
+ Object.entries(r).forEach(([a, c]) => {
999
+ const [O] = a.split("_"), u = _(this, At, ut).call(this, c.data());
1000
+ Array.isArray(u) && o(this, Y)[O].push(...u), _(this, Nt, Zt).call(this, { key: O, value: c });
1001
1001
  });
1002
1002
  };
1003
- return o(this, q).forEach((r, h) => {
1004
- const l = Object.fromEntries(r), O = () => new Promise((u) => o(this, K).call(this, l, (i) => {
1005
- o(this, F) ? n(i) : e[h] = i, u();
1003
+ return o(this, K).forEach((r, a) => {
1004
+ const c = Object.fromEntries(r), O = () => new Promise((u) => o(this, z).call(this, c, (i) => {
1005
+ o(this, C) ? n(i) : e[a] = i, u();
1006
1006
  }));
1007
1007
  A.push(O);
1008
- }), o(this, F) ? _(this, Et, vt).call(this, A) : _(this, gt, $t).call(this, A).then(() => {
1008
+ }), o(this, C) ? _(this, gt, vt).call(this, A) : _(this, Et, $t).call(this, A).then(() => {
1009
1009
  e.forEach(n);
1010
1010
  });
1011
1011
  }, dt = new WeakSet(), qt = function() {
1012
1012
  return new Promise((A) => setTimeout(A, 500));
1013
- }, Et = new WeakSet(), vt = function(A) {
1013
+ }, gt = new WeakSet(), vt = function(A) {
1014
1014
  if (!A.length)
1015
1015
  return Promise.resolve();
1016
1016
  const e = A.shift();
1017
1017
  return Promise.allSettled([
1018
1018
  e(),
1019
1019
  _(this, dt, qt).call(this)
1020
- ]).then(() => o(this, v) ? _(this, Et, vt).call(this, A) : Promise.resolve());
1021
- }, gt = new WeakSet(), $t = function(A) {
1020
+ ]).then(() => o(this, q) ? _(this, gt, vt).call(this, A) : Promise.resolve());
1021
+ }, Et = new WeakSet(), $t = function(A) {
1022
1022
  if (!A.length)
1023
1023
  return Promise.resolve();
1024
1024
  const e = A.shift();
1025
- return _(this, dt, qt).call(this).then(() => e()).then(() => o(this, v) ? _(this, gt, $t).call(this, A) : Promise.resolve());
1026
- }, ot = new WeakSet(), Yt = function() {
1025
+ return _(this, dt, qt).call(this).then(() => e()).then(() => o(this, q) ? _(this, Et, $t).call(this, A) : Promise.resolve());
1026
+ }, nt = new WeakSet(), Yt = function() {
1027
1027
  return Object.entries(o(this, mt)).forEach(([A, e]) => {
1028
1028
  o(this, Y)[A] && (o(this, Y)[A] = e(o(this, Y)[A]));
1029
1029
  }), o(this, Y);
1030
1030
  }, Tt = new WeakSet(), te = function(A) {
1031
1031
  return Object.entries(A).reduce((e, [n, r]) => {
1032
1032
  if (Array.isArray(r)) {
1033
- const [h, l = {}] = r;
1034
- e[n] = [h, l];
1033
+ const [a, c = {}] = r;
1034
+ e[n] = [a, c];
1035
1035
  } else {
1036
- const { method: h, params: l = {} } = r;
1037
- e[n] = [h, l];
1036
+ const { method: a, params: c = {} } = r;
1037
+ e[n] = [a, c];
1038
1038
  }
1039
1039
  return e;
1040
1040
  }, {});
1041
1041
  }, wt = new WeakSet(), re = function(A, e) {
1042
1042
  const [n, r] = A;
1043
1043
  return [n, { start: e, ...r }];
1044
- }, st = new WeakSet(), ut = function(A) {
1044
+ }, At = new WeakSet(), ut = function(A) {
1045
1045
  return ((A == null ? void 0 : A.items) || (A == null ? void 0 : A.documents)) ?? A;
1046
- }, at = new WeakSet(), Bt = function(A, e) {
1046
+ }, ot = new WeakSet(), Bt = function(A, e) {
1047
1047
  return A !== A && (A = 0), A === 0 && e === 0 ? 0 : A || e;
1048
1048
  }, Rt = new WeakSet(), ee = function() {
1049
1049
  console.group(`${this.constructor.name}: Ошибки в методах!`), Object.entries(this.errors).forEach(([A, e]) => {
1050
1050
  console.info(`[${A}]`, e);
1051
1051
  }), console.groupEnd();
1052
1052
  };
1053
- var it;
1053
+ var st;
1054
1054
  class ne {
1055
1055
  constructor() {
1056
- f(this, it, {});
1056
+ f(this, st, {});
1057
1057
  }
1058
1058
  get hash() {
1059
1059
  return this.createHash(8);
@@ -1068,7 +1068,7 @@ class ne {
1068
1068
  }
1069
1069
  /** Фильтр часто запускаемых действий */
1070
1070
  actionFilter({ keyTimer: A, duration: e = 10, action: n }) {
1071
- o(this, it)[A] && (clearTimeout(o(this, it)[A]), o(this, it)[A] = null), n && (o(this, it)[A] = setTimeout(() => {
1071
+ o(this, st)[A] && (clearTimeout(o(this, st)[A]), o(this, st)[A] = null), n && (o(this, st)[A] = setTimeout(() => {
1072
1072
  n();
1073
1073
  }, e));
1074
1074
  }
@@ -1087,15 +1087,15 @@ class ne {
1087
1087
  }
1088
1088
  /** Скачать данные в JSON-файл */
1089
1089
  downloadFileJson(A, e) {
1090
- let n = new Blob([JSON.stringify(A)], { type: "application/json" }), r = URL.createObjectURL(n), h = document.createElement("a");
1091
- h.style.display = "none", h.href = r, h.download = `${e}.json`, document.body.appendChild(h), h.click(), setTimeout(() => {
1092
- document.body.removeChild(h), URL.revokeObjectURL(r);
1090
+ let n = new Blob([JSON.stringify(A)], { type: "application/json" }), r = URL.createObjectURL(n), a = document.createElement("a");
1091
+ a.style.display = "none", a.href = r, a.download = `${e}.json`, document.body.appendChild(a), a.click(), setTimeout(() => {
1092
+ document.body.removeChild(a), URL.revokeObjectURL(r);
1093
1093
  }, 200);
1094
1094
  }
1095
1095
  }
1096
- it = new WeakMap();
1096
+ st = new WeakMap();
1097
1097
  const bt = new ne();
1098
- var J, Z, Ct, rt, St, V, Ft, oe, Lt, Ae, Pt, ae, Wt, he, Jt, ce;
1098
+ var W, Q, Ct, it, St, Z, ht, Ft, oe, Lt, Ae, Pt, he, Wt, ae, Jt, ce;
1099
1099
  class de {
1100
1100
  constructor() {
1101
1101
  f(this, Ft);
@@ -1106,38 +1106,39 @@ class de {
1106
1106
  f(this, Pt);
1107
1107
  f(this, Wt);
1108
1108
  f(this, Jt);
1109
- f(this, J, "logger");
1110
- f(this, Z, !1);
1109
+ f(this, W, "logger");
1110
+ f(this, Q, !1);
1111
1111
  f(this, Ct, 2e3);
1112
- f(this, rt, /* @__PURE__ */ new Map());
1112
+ f(this, it, /* @__PURE__ */ new Map());
1113
1113
  f(this, St, {});
1114
- f(this, V, null);
1114
+ f(this, Z, null);
1115
+ f(this, ht, !1);
1115
1116
  /** Очистка хранилища элементов старше 'N' месяцев */
1116
- C(this, "periodClear", 3);
1117
+ U(this, "periodClear", 3);
1117
1118
  _(this, Ft, oe).call(this);
1118
1119
  }
1119
1120
  /** Инициализация логера */
1120
1121
  async init() {
1121
- let A = new x(BX24.callBatch), { entityList: e } = await A.batch({
1122
+ let A = new X(BX24.callBatch), { entityList: e } = await A.batch({
1122
1123
  entityList: { method: "entity.get" }
1123
1124
  });
1124
1125
  if (e != null && e.length)
1125
- if (e.find((r) => r.ENTITY == o(this, J)))
1126
- E(this, Z, !0);
1126
+ if (e.find((r) => r.ENTITY == o(this, W)))
1127
+ d(this, Q, !0);
1127
1128
  else {
1128
1129
  let { entityAdd: r } = await A.batch({
1129
1130
  entityAdd: {
1130
1131
  method: "entity.add",
1131
1132
  params: {
1132
- ENTITY: o(this, J),
1133
- NAME: o(this, J),
1133
+ ENTITY: o(this, W),
1134
+ NAME: o(this, W),
1134
1135
  ACCESS: { AU: "X" }
1135
1136
  }
1136
1137
  }
1137
1138
  });
1138
- r && E(this, Z, !0);
1139
+ r && d(this, Q, !0);
1139
1140
  }
1140
- return _(this, Wt, he).call(this), o(this, Z);
1141
+ return _(this, Wt, ae).call(this), o(this, Q);
1141
1142
  }
1142
1143
  /**
1143
1144
  * @param {{ type: 'call'|'batch'|'batch-total-count';
@@ -1149,12 +1150,12 @@ class de {
1149
1150
  * @returns {string}
1150
1151
  */
1151
1152
  start({ type: A, data: e }) {
1152
- if (!o(this, Z)) {
1153
+ if (!o(this, Q)) {
1153
1154
  _(this, Lt, Ae).call(this, "entity");
1154
1155
  return;
1155
1156
  }
1156
1157
  const n = bt.hash;
1157
- return o(this, rt).set(n, {
1158
+ return o(this, it).set(n, {
1158
1159
  type: A,
1159
1160
  data: e,
1160
1161
  userInfo: o(this, St),
@@ -1172,16 +1173,17 @@ class de {
1172
1173
  * answer: { [key]: unknown } }}
1173
1174
  */
1174
1175
  stop({ key: A, errorList: e, status: n, answer: r }) {
1175
- if (!o(this, Z)) {
1176
+ if (!o(this, Q)) {
1176
1177
  _(this, Lt, Ae).call(this, "entity");
1177
1178
  return;
1178
1179
  }
1179
- let h = o(this, rt).get(A);
1180
- e && (h.errorList = e), n && (h.status = n), r && (h.answer = r), bt.actionFilter({
1180
+ let a = o(this, it).get(A);
1181
+ e && (a.errorList = e), n && (a.status = n), r && (a.answer = r), bt.actionFilter({
1181
1182
  keyTimer: "add.entity.items",
1182
1183
  duration: o(this, Ct),
1183
- action: () => {
1184
- _(this, Pt, ae).call(this);
1184
+ action: async () => {
1185
+ var c;
1186
+ await _(this, Pt, he).call(this), (c = a == null ? void 0 : a.data) != null && c.updateList && d(this, ht, !0);
1185
1187
  }
1186
1188
  });
1187
1189
  }
@@ -1190,25 +1192,25 @@ class de {
1190
1192
  */
1191
1193
  async getEntityList(A) {
1192
1194
  var r;
1193
- if ((r = o(this, V)) != null && r.length)
1194
- return o(this, V);
1195
- let e = new x(BX24.callBatch), { entityList: n } = await e.batch({
1195
+ if ((r = o(this, Z)) != null && r.length && !o(this, ht))
1196
+ return o(this, Z);
1197
+ let e = new X(BX24.callBatch), { entityList: n } = await e.batch({
1196
1198
  entityList: {
1197
1199
  method: "entity.item.get",
1198
1200
  params: {
1199
- ENTITY: o(this, J),
1201
+ ENTITY: o(this, W),
1200
1202
  SORT: { ID: "DESC" }
1201
1203
  }
1202
1204
  }
1203
1205
  }, A);
1204
- return n = n.map((h) => {
1205
- const { ID: l, DATE_CREATE: O, DETAIL_TEXT: u } = h;
1206
+ return n = n.map((a) => {
1207
+ const { ID: c, DATE_CREATE: O, DETAIL_TEXT: u } = a;
1206
1208
  return {
1207
1209
  ...JSON.parse(u),
1208
- id: l,
1210
+ id: c,
1209
1211
  dateCreate: O
1210
1212
  };
1211
- }), n;
1213
+ }), d(this, ht, !1), n;
1212
1214
  }
1213
1215
  /** Выгрузка всех данных из хранилища в JSON-файл */
1214
1216
  async downAllEntityJson() {
@@ -1216,11 +1218,11 @@ class de {
1216
1218
  bt.downloadFileJson(A, `sdklogger-entity-data__${e}`);
1217
1219
  }
1218
1220
  }
1219
- J = new WeakMap(), Z = new WeakMap(), Ct = new WeakMap(), rt = new WeakMap(), St = new WeakMap(), V = new WeakMap(), Ft = new WeakSet(), oe = async function() {
1220
- const A = new x(BX24.callBatch), e = BX24.isAdmin(), { curUser: n } = await A.batch({
1221
+ W = new WeakMap(), Q = new WeakMap(), Ct = new WeakMap(), it = new WeakMap(), St = new WeakMap(), Z = new WeakMap(), ht = new WeakMap(), Ft = new WeakSet(), oe = async function() {
1222
+ const A = new X(BX24.callBatch), e = BX24.isAdmin(), { curUser: n } = await A.batch({
1221
1223
  curUser: { method: "user.current" }
1222
1224
  });
1223
- E(this, St, { isAdmin: e, curUser: n });
1225
+ d(this, St, { isAdmin: e, curUser: n });
1224
1226
  }, Lt = new WeakSet(), Ae = function(A) {
1225
1227
  A == "entity" && bt.actionFilter({
1226
1228
  keyTimer: "error.logger.entity",
@@ -1229,67 +1231,68 @@ J = new WeakMap(), Z = new WeakMap(), Ct = new WeakMap(), rt = new WeakMap(), St
1229
1231
  console.error("Хранилище для логгера не инициализировано");
1230
1232
  }
1231
1233
  });
1232
- }, Pt = new WeakSet(), ae = async function() {
1233
- let A = {}, e = new x(BX24.callBatch);
1234
- for (let [n, r] of o(this, rt).entries())
1234
+ }, Pt = new WeakSet(), he = async function() {
1235
+ let A = {}, e = new X(BX24.callBatch);
1236
+ for (let [n, r] of o(this, it).entries())
1235
1237
  r.status && (A[n] = {
1236
1238
  method: "entity.item.add",
1237
1239
  params: {
1238
- ENTITY: o(this, J),
1239
- NAME: o(this, J),
1240
+ ENTITY: o(this, W),
1241
+ NAME: o(this, W),
1240
1242
  DETAIL_TEXT: JSON.stringify(r)
1241
1243
  }
1242
1244
  });
1243
1245
  if (Object.keys(A).length) {
1244
1246
  let n = await e.batch(A), { errors: r } = e;
1245
- for (let [h, l] of Object.entries({ ...n, ...r }))
1246
- o(this, rt).delete(h);
1247
+ for (let [a, c] of Object.entries({ ...n, ...r }))
1248
+ o(this, it).delete(a);
1249
+ return !0;
1247
1250
  }
1248
- }, Wt = new WeakSet(), he = async function() {
1249
- let A = new x(BX24.callBatch), { serverTime: e } = await A.batch({
1251
+ }, Wt = new WeakSet(), ae = async function() {
1252
+ let A = new X(BX24.callBatch), { serverTime: e } = await A.batch({
1250
1253
  serverTime: { method: "server.time" }
1251
1254
  });
1252
- o(this, V) || E(this, V, await this.getEntityList());
1253
- let n = o(this, V).filter((r) => {
1254
- let { dateCreate: h } = r;
1255
- return Ht(new Date(h)).between(Ht(new Date(e)), "month") >= this.periodClear;
1255
+ o(this, Z) || d(this, Z, await this.getEntityList());
1256
+ let n = o(this, Z).filter((r) => {
1257
+ let { dateCreate: a } = r;
1258
+ return Ht(new Date(a)).between(Ht(new Date(e)), "month") >= this.periodClear;
1256
1259
  });
1257
1260
  _(this, Jt, ce).call(this, n);
1258
1261
  }, Jt = new WeakSet(), ce = async function(A) {
1259
- let e = new x(BX24.callBatch), n = A.map((r) => {
1260
- let { id: h } = r;
1262
+ let e = new X(BX24.callBatch), n = A.map((r) => {
1263
+ let { id: a } = r;
1261
1264
  return {
1262
1265
  method: "entity.item.delete",
1263
1266
  params: {
1264
- ENTITY: o(this, J),
1265
- ID: h
1267
+ ENTITY: o(this, W),
1268
+ ID: a
1266
1269
  }
1267
1270
  };
1268
1271
  });
1269
1272
  return await e.batch(n);
1270
1273
  };
1271
- const B = new de();
1272
1274
  var kt, le, Xt, ue;
1273
- class ge {
1275
+ class Ee {
1274
1276
  constructor(A) {
1275
1277
  /** Запрос данных о приложении */
1276
1278
  f(this, kt);
1277
1279
  /** Запрос данных о текущем пользователе */
1278
1280
  f(this, Xt);
1279
- C(this, "domain", "");
1280
- C(this, "isAdmin", !1);
1281
- C(this, "appInfo", null);
1282
- C(this, "appConst", null);
1283
- C(this, "userInfo", null);
1284
- C(this, "placeData", null);
1285
- C(this, "placeInfo", null);
1281
+ U(this, "domain", "");
1282
+ U(this, "isAdmin", !1);
1283
+ U(this, "appInfo", null);
1284
+ U(this, "appConst", null);
1285
+ U(this, "userInfo", null);
1286
+ U(this, "placeData", null);
1287
+ U(this, "placeInfo", null);
1288
+ U(this, "logger", new de());
1286
1289
  this.appConst = A;
1287
1290
  }
1288
1291
  init() {
1289
1292
  return new Promise((A) => {
1290
1293
  let e = setInterval(() => {
1291
1294
  window.BX24 && BX24.init(async () => {
1292
- console.info("init BX24"), clearInterval(e), this.domain = BX24.getDomain(), this.isAdmin = BX24.isAdmin(), this.placeInfo = BX24.placement.info(), await B.init();
1295
+ console.info("init BX24"), clearInterval(e), this.domain = BX24.getDomain(), this.isAdmin = BX24.isAdmin(), this.placeInfo = BX24.placement.info(), await this.logger.init();
1293
1296
  const [n, r] = await Promise.all([
1294
1297
  _(this, kt, le).call(this),
1295
1298
  _(this, Xt, ue).call(this)
@@ -1321,31 +1324,31 @@ class ge {
1321
1324
  * }[]
1322
1325
  */
1323
1326
  call({ method: A, params: e, updateList: n }) {
1324
- let r = B.start({
1327
+ let r = this.logger.start({
1325
1328
  type: "call",
1326
1329
  data: { method: A, params: e, updateList: n }
1327
1330
  });
1328
- return new Promise((h) => {
1329
- e || (e = {}), BX24.callMethod(A, e, function(l) {
1331
+ return new Promise((a) => {
1332
+ e || (e = {}), BX24.callMethod(A, e, function(c) {
1330
1333
  let O = {};
1331
- if (l != null && l.answer)
1332
- for (let [u, i] of Object.entries(l.answer))
1334
+ if (c != null && c.answer)
1335
+ for (let [u, i] of Object.entries(c.answer))
1333
1336
  u != "result" && i && (O[u] = i);
1334
- if (l.error()) {
1335
- let u = l.error();
1336
- console.error(u), B.stop({
1337
+ if (c.error()) {
1338
+ let u = c.error();
1339
+ console.error(u), this.logger.stop({
1337
1340
  answer: O,
1338
1341
  key: r,
1339
1342
  status: "fail",
1340
1343
  errorList: [u.toSting()]
1341
- }), h(!1);
1344
+ }), a(!1);
1342
1345
  } else {
1343
- let u = l.data();
1344
- u != null && u.items && (u = u.items), B.stop({
1346
+ let u = c.data();
1347
+ u != null && u.items && (u = u.items), this.logger.stop({
1345
1348
  answer: O,
1346
1349
  key: r,
1347
1350
  status: "success"
1348
- }), h(u);
1351
+ }), a(u);
1349
1352
  }
1350
1353
  });
1351
1354
  });
@@ -1369,42 +1372,42 @@ class ge {
1369
1372
  * }[]
1370
1373
  * }}
1371
1374
  */
1372
- async batch(A, e, { updateList: n, errorCall: r, limitCommandSerial: h } = {}) {
1373
- let l = new x(BX24.callBatch), O = B.start({
1375
+ async batch(A, e, { updateList: n, errorCall: r, limitCommandSerial: a } = {}) {
1376
+ let c = new X(BX24.callBatch), O = this.logger.start({
1374
1377
  type: "batch",
1375
1378
  data: { commandList: A, updateList: n }
1376
1379
  });
1377
- h && (l.limitCommandSerial = h);
1380
+ a && (c.limitCommandSerial = a);
1378
1381
  try {
1379
- let u = await l.batch(A, e);
1380
- if (Object.keys(l.errors).length) {
1381
- let i = Object.entries(l.errors).map(([T, g]) => {
1382
+ let u = await c.batch(A, e);
1383
+ if (Object.keys(c.errors).length) {
1384
+ let i = Object.entries(c.errors).map(([T, E]) => {
1382
1385
  var m;
1383
1386
  return {
1384
1387
  key: T,
1385
- error: `${g == null ? void 0 : g.method} ${(m = g == null ? void 0 : g.error) == null ? void 0 : m.toString()}`.trim()
1388
+ error: `${E == null ? void 0 : E.method} ${(m = E == null ? void 0 : E.error) == null ? void 0 : m.toString()}`.trim()
1386
1389
  };
1387
1390
  });
1388
- r && r(l.errors), B.stop({
1391
+ r && r(c.errors), this.logger.stop({
1389
1392
  key: O,
1390
1393
  status: "fail",
1391
1394
  errorList: i,
1392
- answer: l.answerData
1395
+ answer: c.answerData
1393
1396
  });
1394
1397
  } else
1395
- B.stop({
1398
+ this.logger.stop({
1396
1399
  key: O,
1397
1400
  status: "success",
1398
- answer: l.answerData
1401
+ answer: c.answerData
1399
1402
  });
1400
1403
  return u;
1401
1404
  } catch (u) {
1402
1405
  let i = u == null ? void 0 : u.toString();
1403
- return B.stop({
1406
+ return this.logger.stop({
1404
1407
  key: O,
1405
1408
  status: "fail-runtime",
1406
1409
  errorList: [i],
1407
- answer: l.answerData
1410
+ answer: c.answerData
1408
1411
  }), console.error(u), !1;
1409
1412
  }
1410
1413
  }
@@ -1413,34 +1416,34 @@ class ge {
1413
1416
  * @param progressCall - callback(data), в data приходят данные о загрузке данных
1414
1417
  */
1415
1418
  async batchTotalCount(A, e) {
1416
- let n = new x(BX24.callBatch), r = B.start({
1419
+ let n = new X(BX24.callBatch), r = this.logger.start({
1417
1420
  type: "batch",
1418
1421
  data: { commandList: A }
1419
1422
  });
1420
1423
  try {
1421
- let h = await n.batchTotalCount(A, e);
1424
+ let a = await n.batchTotalCount(A, e);
1422
1425
  if (Object.keys(n.errors).length) {
1423
- let l = Object.entries(n.errors).map(([O, u]) => ({
1426
+ let c = Object.entries(n.errors).map(([O, u]) => ({
1424
1427
  key: O,
1425
1428
  error: u.toSting()
1426
1429
  }));
1427
- B.stop({
1430
+ this.logger.stop({
1428
1431
  key: r,
1429
1432
  status: "fail",
1430
- errorList: l
1433
+ errorList: c
1431
1434
  });
1432
1435
  } else
1433
- B.stop({
1436
+ this.logger.stop({
1434
1437
  key: r,
1435
1438
  status: "success"
1436
1439
  });
1437
- return h;
1438
- } catch (h) {
1439
- return B.stop({
1440
+ return a;
1441
+ } catch (a) {
1442
+ return this.logger.stop({
1440
1443
  key: r,
1441
1444
  status: "fail",
1442
- errorList: [h.toSting()]
1443
- }), console.error(h), !1;
1445
+ errorList: [a.toSting()]
1446
+ }), console.error(a), !1;
1444
1447
  }
1445
1448
  }
1446
1449
  /** Запрос данных о местах встройки приложения */
@@ -1450,9 +1453,9 @@ class ge {
1450
1453
  /** Встройка приложения в place */
1451
1454
  async placementBind(A) {
1452
1455
  this.placeData || (this.placeData = await this.getPlacement());
1453
- const { appName: e, pathApp: n } = this.appConst, r = this.placeData.map((l) => l.placement);
1454
- let h = this.placeData.find((l) => l.placement == A);
1455
- r.includes(A) ? h.handler != n && (window.placementUnBind || (window.placementUnBind = {}), window.placementUnBind[A] || this.placementUnBind(h).then(() => {
1456
+ const { appName: e, pathApp: n } = this.appConst, r = this.placeData.map((c) => c.placement);
1457
+ let a = this.placeData.find((c) => c.placement == A);
1458
+ r.includes(A) ? a.handler != n && (window.placementUnBind || (window.placementUnBind = {}), window.placementUnBind[A] || this.placementUnBind(a).then(() => {
1456
1459
  window.placementUnBind[A] || (window.placementUnBind[A] = !0, this.placementBind(A));
1457
1460
  })) : this.call({
1458
1461
  method: "placement.bind",
@@ -1465,8 +1468,8 @@ class ge {
1465
1468
  }
1466
1469
  }
1467
1470
  }
1468
- }).then((l) => {
1469
- l ? console.info("Приложение успешно встроено в", A) : console.warn("Приложение не может быть встроено в", A);
1471
+ }).then((c) => {
1472
+ c ? console.info("Приложение успешно встроено в", A) : console.warn("Приложение не может быть встроено в", A);
1470
1473
  });
1471
1474
  }
1472
1475
  /** Отвязка встройки из place */
@@ -1498,7 +1501,7 @@ class ge {
1498
1501
  }
1499
1502
  /* регистрация бота */
1500
1503
  regBot({ code: A, type: e, name: n }) {
1501
- const { appName: r, pathApp: h, chatBotLogo: l } = this.appConst, O = this.appInfo.ID;
1504
+ const { appName: r, pathApp: a, chatBotLogo: c } = this.appConst, O = this.appInfo.ID;
1502
1505
  return this.call({
1503
1506
  method: "imbot.register",
1504
1507
  params: {
@@ -1506,7 +1509,7 @@ class ge {
1506
1509
  // Строковой идентификатор бота, уникальный в рамках вашего приложения (обяз.)
1507
1510
  TYPE: e ?? "O",
1508
1511
  // Тип бота, B - чат-бот, ответы поступают сразу, H - человек, ответы поступают с задержкой от 2-х до 10 секунд, O - чат-бот для Открытых линий, S - чат-бот с повышенными привилегиями (supervisor)
1509
- EVENT_HANDLER: h,
1512
+ EVENT_HANDLER: a,
1510
1513
  // Ссылка на обработчик событий, поступивших от сервера - см. Обработчики событий ниже (обяз).
1511
1514
  OPENLINE: "Y",
1512
1515
  // Включение режима поддержки Открытых линий, можно не указывать, если TYPE = 'O'
@@ -1530,7 +1533,7 @@ class ge {
1530
1533
  // Ссылка на сайт
1531
1534
  PERSONAL_GENDER: "M",
1532
1535
  // Пол чат-бота, допустимые значения M - мужской, F - женский, пусто, если не требуется указывать
1533
- PERSONAL_PHOTO: l ?? ""
1536
+ PERSONAL_PHOTO: c ?? ""
1534
1537
  // Аватар чат-бота - base64
1535
1538
  }
1536
1539
  }
@@ -1547,7 +1550,7 @@ class ge {
1547
1550
  }
1548
1551
  /* Получение данных логера */
1549
1552
  getLoggerList(A) {
1550
- return B.getEntityList(A);
1553
+ return this.logger.getEntityList(A);
1551
1554
  }
1552
1555
  }
1553
1556
  kt = new WeakSet(), le = function() {
@@ -1556,8 +1559,8 @@ kt = new WeakSet(), le = function() {
1556
1559
  return this.call({ method: "user.current" });
1557
1560
  };
1558
1561
  export {
1559
- x as Batch,
1560
- ge as BxBoot,
1562
+ X as Batch,
1563
+ Ee as BxBoot,
1561
1564
  ne as BxHelper,
1562
1565
  de as BxLogger,
1563
1566
  Ht as tempus