@dxtmisha/functional-basic 0.7.2 → 0.8.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.
Files changed (3) hide show
  1. package/dist/library.d.ts +126 -17
  2. package/dist/library.js +1203 -1084
  3. package/package.json +1 -1
package/dist/library.js CHANGED
@@ -1,101 +1,104 @@
1
- var Pt = Object.defineProperty;
2
- var Wt = (i, t, e) => t in i ? Pt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var c = (i, t, e) => Wt(i, typeof t != "symbol" ? t + "" : t, e);
4
- import { geo as Ut } from "@dxtmisha/media";
5
- function C(i, t) {
6
- return t ? Object.assign({}, i, t) : Object.assign({}, i);
1
+ var Wt = Object.defineProperty;
2
+ var Ut = (s, t, e) => t in s ? Wt(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
+ var c = (s, t, e) => Ut(s, typeof t != "symbol" ? t + "" : t, e);
4
+ import { geo as jt } from "@dxtmisha/media";
5
+ function C(s, t) {
6
+ return t ? Object.assign({}, s, t) : Object.assign({}, s);
7
7
  }
8
- function m(i) {
9
- return !!(i && typeof i == "object");
8
+ function m(s) {
9
+ return !!(s && typeof s == "object");
10
10
  }
11
- function f(i, t) {
12
- if (m(i)) {
13
- const e = [];
14
- return i instanceof Map ? i.forEach((s, n) => e.push(t(s, n, i))) : Array.isArray(i) ? i.forEach((s, n) => e.push(t(s, n, i))) : Object.entries(i).forEach(
15
- ([s, n]) => e.push(t(n, s, i))
16
- ), e.filter((s) => s !== void 0);
11
+ function g(s, t, e) {
12
+ if (m(s)) {
13
+ const i = [];
14
+ return s instanceof Map ? s.forEach((r, o) => i.push(t(r, o, s))) : Array.isArray(s) ? s.forEach((r, o) => i.push(t(r, o, s))) : Object.entries(s).forEach(
15
+ ([r, o]) => i.push(t(o, r, s))
16
+ ), e ? i : i.filter((r) => r !== void 0);
17
17
  }
18
18
  return [];
19
19
  }
20
- function Et(i, t = "=", e = "&") {
21
- return f(
22
- i,
23
- (s, n) => `${n}${t}${encodeURIComponent(String(s).trim())}`
20
+ function It(s, t = "=", e = "&") {
21
+ return g(
22
+ s,
23
+ (i, r) => `${r}${t}${encodeURIComponent(String(i).trim())}`
24
24
  ).sort().join(e);
25
25
  }
26
- function M(i) {
27
- return i == null;
26
+ function at(s) {
27
+ return Array.isArray(s);
28
28
  }
29
- function L(i, t) {
30
- if (i) {
31
- if (t && i === "0")
29
+ function M(s) {
30
+ return s == null;
31
+ }
32
+ function S(s, t) {
33
+ if (s) {
34
+ if (t && s === "0")
32
35
  return !0;
33
- switch (typeof i) {
36
+ switch (typeof s) {
34
37
  case "bigint":
35
38
  case "number":
36
- return i !== 0;
39
+ return s !== 0;
37
40
  case "boolean":
38
- return i;
41
+ return s;
39
42
  case "function":
40
43
  case "symbol":
41
44
  return !0;
42
45
  case "object":
43
- return Array.isArray(i) ? i.length > 0 : Object.values(i).some((e) => !M(e));
46
+ return Array.isArray(s) ? s.length > 0 : Object.values(s).some((e) => !M(e));
44
47
  case "string":
45
- return !["", "undefined", "null", "0", "false", "[]"].includes(i);
48
+ return !["", "undefined", "null", "0", "false", "[]"].includes(s);
46
49
  case "undefined":
47
50
  return !1;
48
51
  default:
49
- return !!i;
52
+ return !!s;
50
53
  }
51
54
  }
52
55
  return !1;
53
56
  }
54
- function A(i) {
55
- return m(i) && !Array.isArray(i);
57
+ function N(s) {
58
+ return m(s) && !Array.isArray(s);
56
59
  }
57
- function R(i) {
58
- return typeof i == "string";
60
+ function P(s) {
61
+ return typeof s == "string";
59
62
  }
60
- function H(i) {
61
- return JSON.parse(JSON.stringify(i));
63
+ function z(s) {
64
+ return JSON.parse(JSON.stringify(s));
62
65
  }
63
66
  function l() {
64
67
  return typeof window != "undefined" && !!window.document;
65
68
  }
66
- function lt(i) {
67
- switch (typeof i) {
69
+ function dt(s) {
70
+ switch (typeof s) {
68
71
  case "number":
69
72
  return !0;
70
73
  case "string":
71
- return !!i.match(/^[0-9]+$/);
74
+ return !!s.match(/^-?[0-9]+(\.[0-9]+)?$/);
72
75
  default:
73
76
  return !1;
74
77
  }
75
78
  }
76
- function k(i) {
77
- if (typeof i == "number")
78
- return i;
79
- if (!i)
79
+ function k(s) {
80
+ if (typeof s == "number")
81
+ return s;
82
+ if (!s)
80
83
  return 0;
81
- let t = i.replace(/[^\d., ]+/ig, "");
84
+ let t = s.replace(/[^\d., ]+/ig, "");
82
85
  return t.match(/( [0-9]{3}[ ,.]|[0-9] [0-9])/ig) ? t = t.replace(/ /ig, "").replace(/,/ig, ".") : t.match(/,[0-9]{3}[,.]/ig) ? t = t.replace(/,/ig, "") : t.match(/[.][0-9]{3}[,.]/ig) ? t = t.replace(/[.]/ig, "").replace(/,/ig, ".") : t = t.replace(/,/ig, "."), parseFloat(t);
83
86
  }
84
- function rt(i, t) {
85
- return M(i) ? !1 : Array.isArray(t) ? t.includes(i) : lt(i) && lt(t) ? k(i) === k(t) : i === t;
87
+ function rt(s, t) {
88
+ return M(s) ? !1 : Array.isArray(t) ? t.includes(s) : dt(s) && dt(t) ? k(s) === k(t) : s === t;
86
89
  }
87
- function at(i) {
88
- return i instanceof Function || typeof i == "function";
90
+ function ct(s) {
91
+ return s instanceof Function || typeof s == "function";
89
92
  }
90
- function I(i) {
91
- return at(i) ? i() : i;
93
+ function B(s) {
94
+ return ct(s) ? s() : s;
92
95
  }
93
96
  function nt() {
94
97
  return location.href.startsWith("data:");
95
98
  }
96
99
  const tt = {};
97
- let dt = "ui-storage";
98
- class T {
100
+ let gt = "ui-storage";
101
+ class G {
99
102
  /**
100
103
  * Constructor
101
104
  * @param name value name/ название значения
@@ -105,10 +108,10 @@ class T {
105
108
  c(this, "value");
106
109
  c(this, "age");
107
110
  this.name = t, this.isSession = e;
108
- const s = `${e ? "session" : "storage"}#${t}`;
109
- if (s in tt)
110
- return tt[s];
111
- this.make(), tt[s] = this;
111
+ const i = `${e ? "session" : "storage"}#${t}`;
112
+ if (i in tt)
113
+ return tt[i];
114
+ this.make(), tt[i] = this;
112
115
  }
113
116
  /**
114
117
  * Changing the prefix in key names. Should be called at the beginning of the code.
@@ -117,7 +120,7 @@ class T {
117
120
  * @param newPrefix new prefix/ новый префикс
118
121
  */
119
122
  static setPrefix(t) {
120
- dt = t;
123
+ gt = t;
121
124
  }
122
125
  /**
123
126
  * Getting data from local storage.
@@ -140,7 +143,7 @@ class T {
140
143
  */
141
144
  set(t) {
142
145
  var e;
143
- return this.value = I(t), this.age = (/* @__PURE__ */ new Date()).getTime(), this.value === void 0 ? this.remove() : (e = this.getMethod()) == null || e.setItem(this.getIndex(), JSON.stringify({
146
+ return this.value = B(t), this.age = (/* @__PURE__ */ new Date()).getTime(), this.value === void 0 ? this.remove() : (e = this.getMethod()) == null || e.setItem(this.getIndex(), JSON.stringify({
144
147
  value: this.value,
145
148
  age: this.age
146
149
  })), this.value;
@@ -189,7 +192,7 @@ class T {
189
192
  * Получение имени ключа в хранилище.
190
193
  */
191
194
  getIndex() {
192
- return `${dt}__${this.name}`;
195
+ return `${gt}__${this.name}`;
193
196
  }
194
197
  /**
195
198
  * Getting data from storage.
@@ -202,8 +205,8 @@ class T {
202
205
  if (t)
203
206
  try {
204
207
  return JSON.parse(t);
205
- } catch (s) {
206
- console.error("DataStorage", s);
208
+ } catch (i) {
209
+ console.error("DataStorage", i);
207
210
  }
208
211
  }
209
212
  /**
@@ -216,7 +219,7 @@ class T {
216
219
  return t ? (this.value = t.value, this.age = t.age) : (this.value = void 0, this.age = void 0), this;
217
220
  }
218
221
  }
219
- const jt = "geo-code", p = class p {
222
+ const Ht = "geo-code", b = class b {
220
223
  /**
221
224
  * Information about the current country.
222
225
  *
@@ -281,7 +284,7 @@ const jt = "geo-code", p = class p {
281
284
  * Возвращает полный список стран.
282
285
  */
283
286
  static getList() {
284
- return Ut;
287
+ return jt;
285
288
  }
286
289
  /**
287
290
  * Returns the data about the country by its full code.
@@ -292,7 +295,7 @@ const jt = "geo-code", p = class p {
292
295
  */
293
296
  static getByCode(t) {
294
297
  let e;
295
- return t && (t.match(/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/) && (e = this.getByCodeFull(t)), !e && t.match(/[A-Z]{2}/) && (e = this.getByCountry(this.toCountry(t))), !e && t.match(/[a-z]{2}/) && (e = this.getByLanguage(this.toLanguage(t)))), this.toFull(H(e != null ? e : this.getList()[0]));
298
+ return t && (t.match(/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/) && (e = this.getByCodeFull(t)), !e && t.match(/[A-Z]{2}/) && (e = this.getByCountry(this.toCountry(t))), !e && t.match(/[a-z]{2}/) && (e = this.getByLanguage(this.toLanguage(t)))), this.toFull(z(e != null ? e : this.getList()[0]));
296
299
  }
297
300
  /**
298
301
  * Returns the full data by language and country.
@@ -316,8 +319,8 @@ const jt = "geo-code", p = class p {
316
319
  */
317
320
  static getByCountry(t) {
318
321
  return this.getList().find((e) => {
319
- var s;
320
- return e.country === t || ((s = e == null ? void 0 : e.countryAlternative) == null ? void 0 : s.find((n) => n === t));
322
+ var i;
323
+ return e.country === t || ((i = e == null ? void 0 : e.countryAlternative) == null ? void 0 : i.find((r) => r === t));
321
324
  });
322
325
  }
323
326
  /**
@@ -328,8 +331,8 @@ const jt = "geo-code", p = class p {
328
331
  */
329
332
  static getByLanguage(t) {
330
333
  return this.getList().find((e) => {
331
- var s;
332
- return e.language === t || ((s = e == null ? void 0 : e.languageAlternative) == null ? void 0 : s.find((n) => n === t));
334
+ var i;
335
+ return e.language === t || ((i = e == null ? void 0 : e.languageAlternative) == null ? void 0 : i.find((r) => r === t));
333
336
  });
334
337
  }
335
338
  /**
@@ -438,27 +441,27 @@ const jt = "geo-code", p = class p {
438
441
  });
439
442
  }
440
443
  };
441
- c(p, "storage", new T(jt)), c(p, "location"), c(p, "item"), c(p, "language"), c(p, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), p.location = p.findLocation(), p.language = p.findLanguage(p.location), p.item = p.getByCode(p.location);
442
- let w = p;
443
- function It(i) {
444
- return l() && i === window;
444
+ c(b, "storage", new G(Ht)), c(b, "location"), c(b, "item"), c(b, "language"), c(b, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), b.location = b.findLocation(), b.language = b.findLanguage(b.location), b.item = b.getByCode(b.location);
445
+ let w = b;
446
+ function xt(s) {
447
+ return l() && s === window;
445
448
  }
446
- function N(i) {
449
+ function A(s) {
447
450
  var t;
448
451
  if (l())
449
- return It(i) ? document.body : R(i) ? (t = document.querySelector(i)) != null ? t : void 0 : i;
452
+ return xt(s) ? document.body : P(s) ? (t = document.querySelector(s)) != null ? t : void 0 : s;
450
453
  }
451
- function gt(i) {
452
- return It(i) ? i : N(i);
454
+ function ft(s) {
455
+ return xt(s) ? s : A(s);
453
456
  }
454
- function Ht(i) {
457
+ function zt(s) {
455
458
  var t;
456
- return !!((t = N(i)) != null && t.closest("html"));
459
+ return !!((t = A(s)) != null && t.closest("html"));
457
460
  }
458
- function Z(i) {
459
- return Array.isArray(i) ? i : [i];
461
+ function V(s) {
462
+ return Array.isArray(s) ? s : [s];
460
463
  }
461
- class ft {
464
+ class mt {
462
465
  /**
463
466
  * Classes Constructor
464
467
  * @param elementSelector element/ элемент
@@ -470,7 +473,7 @@ class ft {
470
473
  * @param detail an event-dependent value associated with the event/ зависимое от события
471
474
  * значение, связанное с событием
472
475
  */
473
- constructor(t, e = ["click"], s, n, o) {
476
+ constructor(t, e = ["click"], i, r, o) {
474
477
  /**
475
478
  * Element.
476
479
  *
@@ -499,8 +502,8 @@ class ft {
499
502
  * Это должен быть объект, реализующий интерфейс EventListener или просто функция JavaScript.
500
503
  */
501
504
  c(this, "listenerRecent", (t) => {
502
- var e, s;
503
- Ht(this.elementControl) ? ((e = this.listener) == null || e.call(this.element, t, this.detail), m(this.options) && ((s = this.options) != null && s.once) && this.stop()) : this.stop();
505
+ var e, i;
506
+ zt(this.elementControl) ? ((e = this.listener) == null || e.call(this.element, t, this.detail), m(this.options) && ((i = this.options) != null && i.once) && this.stop()) : this.stop();
504
507
  });
505
508
  /**
506
509
  * Event states.
@@ -509,7 +512,7 @@ class ft {
509
512
  */
510
513
  c(this, "activity", !1);
511
514
  c(this, "activityItems", []);
512
- this.listener = s, this.options = n, this.detail = o, this.element = gt(t), this.elementControl = N(t), this.type = Z(e);
515
+ this.listener = i, this.options = r, this.detail = o, this.element = ft(t), this.elementControl = A(t), this.type = V(e);
513
516
  }
514
517
  /**
515
518
  * Checks whether event listening is currently enabled.
@@ -529,8 +532,8 @@ class ft {
529
532
  * @param elementSelector element/ элемент
530
533
  */
531
534
  setElement(t) {
532
- const e = gt(t);
533
- return this.elementControlEdit || (this.elementControl = N(t)), this.element = e, this.reset(), this;
535
+ const e = ft(t);
536
+ return this.elementControlEdit || (this.elementControl = A(t)), this.element = e, this.reset(), this;
534
537
  }
535
538
  /**
536
539
  * Modifies the object that receives the notification.
@@ -539,7 +542,7 @@ class ft {
539
542
  * @param elementSelector element/ элемент
540
543
  */
541
544
  setElementControl(t) {
542
- return this.elementControl = N(t), this.elementControlEdit = !M(this.elementControl), this.elementControlEdit || (this.elementControl = N(this.element)), this;
545
+ return this.elementControl = A(t), this.elementControlEdit = !M(this.elementControl), this.elementControlEdit || (this.elementControl = A(this.element)), this;
543
546
  }
544
547
  /**
545
548
  * Changes the type of the handled event.
@@ -548,7 +551,7 @@ class ft {
548
551
  * @param type type/ тип
549
552
  */
550
553
  setType(t) {
551
- return this.type = Z(t), this.reset(), this;
554
+ return this.type = V(t), this.reset(), this;
552
555
  }
553
556
  /**
554
557
  * Modifies the object that receives the notification.
@@ -589,8 +592,8 @@ class ft {
589
592
  dispatch(t = this.detail) {
590
593
  return this.type.forEach(
591
594
  (e) => {
592
- var s;
593
- return (s = this.element) == null ? void 0 : s.dispatchEvent(new CustomEvent(e, { detail: t }));
595
+ var i;
596
+ return (i = this.element) == null ? void 0 : i.dispatchEvent(new CustomEvent(e, { detail: t }));
594
597
  }
595
598
  ), this;
596
599
  }
@@ -616,10 +619,10 @@ class ft {
616
619
  return this.activity && (this.activity = !1, this.activityItems.forEach(({
617
620
  element: t,
618
621
  type: e,
619
- listener: s,
620
- observer: n
622
+ listener: i,
623
+ observer: r
621
624
  }) => {
622
- n ? n.disconnect() : s ? t == null || t.removeEventListener(e, s) : t == null || t.removeEventListener(e, this.listenerRecent);
625
+ r ? r.disconnect() : i ? t == null || t.removeEventListener(e, i) : t == null || t.removeEventListener(e, this.listenerRecent);
623
626
  })), this;
624
627
  }
625
628
  /**
@@ -673,9 +676,9 @@ class ft {
673
676
  makeScroll() {
674
677
  if (this.element) {
675
678
  let t = !1;
676
- const e = (s) => {
679
+ const e = (i) => {
677
680
  t || (t = !0, requestAnimationFrame(() => {
678
- this.listenerRecent(s), t = !1;
681
+ this.listenerRecent(i), t = !1;
679
682
  }));
680
683
  };
681
684
  return this.element.addEventListener("scroll", e, this.options), this.element.addEventListener("resize", e, this.options), this.activityItems.push(
@@ -694,7 +697,7 @@ class ft {
694
697
  return !1;
695
698
  }
696
699
  }
697
- const mt = "ui-loading", Y = class Y {
700
+ const yt = "ui-loading", Y = class Y {
698
701
  /**
699
702
  * Check if the loader is active now.
700
703
  *
@@ -729,7 +732,7 @@ const mt = "ui-loading", Y = class Y {
729
732
  * @param element element/ элемент
730
733
  */
731
734
  static registrationEvent(t, e) {
732
- l() && new ft(window, mt, t).setElementControl(e).start();
735
+ l() && new mt(window, yt, t).setElementControl(e).start();
733
736
  }
734
737
  /**
735
738
  * Calls the event listener.
@@ -741,9 +744,9 @@ const mt = "ui-loading", Y = class Y {
741
744
  (t = this.event) == null || t.dispatch({ loading: this.is() });
742
745
  }
743
746
  };
744
- c(Y, "value", 0), c(Y, "event"), l() && (Y.event = new ft(window, mt));
745
- let x = Y;
746
- class zt {
747
+ c(Y, "value", 0), c(Y, "event"), l() && (Y.event = new mt(window, yt));
748
+ let I = Y;
749
+ class Zt {
747
750
  constructor() {
748
751
  /** Default headers/ Заголовки по умолчанию */
749
752
  c(this, "headers", {});
@@ -757,11 +760,11 @@ class zt {
757
760
  */
758
761
  get(t, e = "application/json;charset=UTF-8") {
759
762
  if (t !== null) {
760
- const s = C(
763
+ const i = C(
761
764
  this.headers,
762
765
  t
763
766
  );
764
- return L(e) && (s["Content-Type"] = e), s;
767
+ return S(e) && (i["Content-Type"] = e), i;
765
768
  }
766
769
  }
767
770
  /**
@@ -770,11 +773,11 @@ class zt {
770
773
  * Изменяет данные заголовка по умолчанию.
771
774
  */
772
775
  set(t) {
773
- return A(t) && (this.headers = t), this;
776
+ return N(t) && (this.headers = t), this;
774
777
  }
775
778
  }
776
- var D = /* @__PURE__ */ ((i) => (i.get = "GET", i.post = "POST", i.put = "PUT", i.delete = "DELETE", i))(D || {});
777
- class Zt {
779
+ var L = /* @__PURE__ */ ((s) => (s.get = "GET", s.post = "POST", s.put = "PUT", s.delete = "DELETE", s))(L || {});
780
+ class Vt {
778
781
  constructor() {
779
782
  /** Default request data/ Данные запроса по умолчанию */
780
783
  c(this, "value");
@@ -806,7 +809,7 @@ class Zt {
806
809
  if (e) {
807
810
  if (t instanceof FormData)
808
811
  this.addByFormData(t, e);
809
- else if (A(t))
812
+ else if (N(t))
810
813
  return C(e, t);
811
814
  }
812
815
  return t;
@@ -827,11 +830,11 @@ class Zt {
827
830
  * @param value default values/ значения по умолчанию
828
831
  */
829
832
  addByFormData(t, e) {
830
- for (const s in e)
831
- t.has(s) || t.set(s, e[s]);
833
+ for (const i in e)
834
+ t.has(i) || t.set(i, e[i]);
832
835
  }
833
836
  }
834
- class Vt {
837
+ class $t {
835
838
  constructor() {
836
839
  c(this, "value");
837
840
  }
@@ -861,6 +864,15 @@ class Vt {
861
864
  var t;
862
865
  return (t = this.get()) == null ? void 0 : t.statusText;
863
866
  }
867
+ /**
868
+ * Returns the last status type.
869
+ *
870
+ * Возвращает последний тип статуса.
871
+ */
872
+ getStatusType() {
873
+ var t;
874
+ return (t = this.get()) == null ? void 0 : t.lastStatus;
875
+ }
864
876
  /**
865
877
  * Returns the script execution error.
866
878
  *
@@ -926,7 +938,16 @@ class Vt {
926
938
  * @param response response data/ данные ответа
927
939
  */
928
940
  setLastResponse(t) {
929
- return t && A(t) && "message" in t && this.setLastMessage(String(t.message)), this.set({ lastResponse: t }), this;
941
+ return t && N(t) && ("message" in t && this.setLastMessage(String(t.message)), "status" in t && this.setLastStatus(String(t.status))), this.set({ lastResponse: t }), this;
942
+ }
943
+ /**
944
+ * Sets the last status.
945
+ *
946
+ * Устанавливает последний статус.
947
+ * @param status status/ статус
948
+ */
949
+ setLastStatus(t) {
950
+ return this.set({ lastStatus: t }), this;
930
951
  }
931
952
  /**
932
953
  * Sets messages from the last request.
@@ -948,14 +969,14 @@ class Vt {
948
969
  this.value || (this.value = {}), this.value[t] = e;
949
970
  }
950
971
  }
951
- async function Kt(i) {
952
- const t = I(i);
972
+ async function Kt(s) {
973
+ const t = B(s);
953
974
  return t instanceof Promise ? await t : t;
954
975
  }
955
- function J(i, t) {
956
- return Math.floor(Math.random() * (t - i + 1) + i);
976
+ function J(s, t) {
977
+ return Math.floor(Math.random() * (t - s + 1) + s);
957
978
  }
958
- const yt = "d-response-loading";
979
+ const pt = "d-response-loading";
959
980
  class Yt {
960
981
  /**
961
982
  * Constructor
@@ -981,8 +1002,8 @@ class Yt {
981
1002
  * @param request data for the request/ данные для запроса
982
1003
  * @param devMode is it developer mode/ является ли режим разработчика
983
1004
  */
984
- get(t = "", e, s, n) {
985
- return this.response.find((o) => !this.isDisable(o) && this.isPath(o, t) && e === o.method && this.isFirst(o, n) && this.isResponse(o, s) ? (this.isDevMode(n) && console.warn(`Response type: ${o.path}`), this.first.push(o), !0) : !1);
1005
+ get(t = "", e, i, r) {
1006
+ return this.response.find((o) => !this.isDisable(o) && this.isPath(o, t) && e === o.method && this.isFirst(o, r) && this.isResponse(o, i) ? (this.isDevMode(r) && console.warn(`Response type: ${o.path}`), this.first.push(o), !0) : !1);
986
1007
  }
987
1008
  /**
988
1009
  * Returns a list of data about the emulator.
@@ -999,7 +1020,7 @@ class Yt {
999
1020
  * @param response data for caching/ данные для кеширования
1000
1021
  */
1001
1022
  add(t) {
1002
- return this.response.push(...Z(t)), this;
1023
+ return this.response.push(...V(t)), this;
1003
1024
  }
1004
1025
  /**
1005
1026
  * Sets developer mode.
@@ -1017,12 +1038,12 @@ class Yt {
1017
1038
  async emulator(t) {
1018
1039
  const {
1019
1040
  path: e = "",
1020
- method: s = D.get,
1021
- global: n = s === D.get,
1041
+ method: i = L.get,
1042
+ global: r = i === L.get,
1022
1043
  devMode: o = !1
1023
1044
  } = t;
1024
- if (n || this.isDevMode(o)) {
1025
- const a = this.requestDefault.request(t.request), u = this.get(e, s, a, o);
1045
+ if (r || this.isDevMode(o)) {
1046
+ const a = this.requestDefault.request(t.request), u = this.get(e, i, a, o);
1026
1047
  if (u) {
1027
1048
  const h = await this.fetch(u, a);
1028
1049
  return this.isDevMode(o) && console.warn("Response data:", e, a, h), h;
@@ -1036,7 +1057,7 @@ class Yt {
1036
1057
  * @param item cached item/ кешированный элемент
1037
1058
  */
1038
1059
  isDisable(t) {
1039
- return !!I(t == null ? void 0 : t.disable);
1060
+ return !!B(t == null ? void 0 : t.disable);
1040
1061
  }
1041
1062
  /**
1042
1063
  * Checks if the path matches the cached one.
@@ -1075,9 +1096,9 @@ class Yt {
1075
1096
  * @param request request data/ данные запроса
1076
1097
  */
1077
1098
  isResponse(t, e) {
1078
- const s = this.requestDefault.request(t == null ? void 0 : t.request);
1079
- return e === s || s === "*any" || L(e) && L(s) && A(e) && A(s) && !(e instanceof FormData) && !(s instanceof FormData) && Object.values(e).length === Object.values(s).length && Object.entries(s).reduce(
1080
- (n, [o, a]) => n && (a === (e == null ? void 0 : e[o]) || a === "*any"),
1099
+ const i = this.requestDefault.request(t == null ? void 0 : t.request);
1100
+ return e === i || i === "*any" || S(e) && S(i) && N(e) && N(i) && !(e instanceof FormData) && !(i instanceof FormData) && Object.values(e).length === Object.values(i).length && Object.entries(i).reduce(
1101
+ (r, [o, a]) => r && (a === (e == null ? void 0 : e[o]) || a === "*any"),
1081
1102
  !0
1082
1103
  );
1083
1104
  }
@@ -1089,13 +1110,13 @@ class Yt {
1089
1110
  * @param request data for the request/ данные для запроса
1090
1111
  */
1091
1112
  fetch(t, e) {
1092
- return this.startResponseLoading(), new Promise((s) => {
1113
+ return this.startResponseLoading(), new Promise((i) => {
1093
1114
  Kt(
1094
- at(t.response) ? t.response(e) : t.response
1095
- ).then((n) => {
1096
- t != null && t.lag ? (x.show(), setTimeout(() => {
1097
- this.stopResponseLoading(), s(n), x.hide();
1098
- }, J(0, 2e3))) : (this.stopResponseLoading(), s(n));
1115
+ ct(t.response) ? t.response(e) : t.response
1116
+ ).then((r) => {
1117
+ t != null && t.lag ? (I.show(), setTimeout(() => {
1118
+ this.stopResponseLoading(), i(r), I.hide();
1119
+ }, J(0, 2e3))) : (this.stopResponseLoading(), i(r));
1099
1120
  });
1100
1121
  });
1101
1122
  }
@@ -1105,7 +1126,7 @@ class Yt {
1105
1126
  * Включить загрузку для эмуляции запроса.
1106
1127
  */
1107
1128
  startResponseLoading() {
1108
- this.loading && clearTimeout(this.loading), l() && document.body.classList.add(yt);
1129
+ this.loading && clearTimeout(this.loading), l() && document.body.classList.add(pt);
1109
1130
  }
1110
1131
  /**
1111
1132
  * Disable loading for request emulation.
@@ -1114,7 +1135,7 @@ class Yt {
1114
1135
  */
1115
1136
  stopResponseLoading() {
1116
1137
  this.loading = setTimeout(() => {
1117
- this.loading = void 0, l() && document.body.classList.remove(yt);
1138
+ this.loading = void 0, l() && document.body.classList.remove(pt);
1118
1139
  }, 1200);
1119
1140
  }
1120
1141
  }
@@ -1132,10 +1153,11 @@ class qt {
1132
1153
  *
1133
1154
  * Подготовка перед выполнением запроса.
1134
1155
  * @param active is preparation active/ активна ли подготовка
1156
+ * @param apiFetch request options/ опции запроса
1135
1157
  */
1136
- async make(t) {
1158
+ async make(t, e) {
1137
1159
  if (t && this.callback)
1138
- return this.go();
1160
+ return this.go(e);
1139
1161
  }
1140
1162
  /**
1141
1163
  * Analysis of the request after execution.
@@ -1143,10 +1165,11 @@ class qt {
1143
1165
  * Анализ запроса после выполнения.
1144
1166
  * @param active is preparation active/ активна ли подготовка
1145
1167
  * @param query data received in the request/ данные, полученные в запросе
1168
+ * @param apiFetch request options/ опции запроса
1146
1169
  */
1147
- async makeEnd(t, e) {
1148
- let s = {};
1149
- return t && this.callbackEnd && (s = await this.callbackEnd(e)), s;
1170
+ async makeEnd(t, e, i) {
1171
+ let r = {};
1172
+ return t && this.callbackEnd && (r = await this.callbackEnd(e, i)), r;
1150
1173
  }
1151
1174
  /**
1152
1175
  * The function is modified for a call before the request.
@@ -1170,12 +1193,13 @@ class qt {
1170
1193
  * To execute preparation.
1171
1194
  *
1172
1195
  * Выполнить подготовку.
1196
+ * @param apiFetch request options/ опции запроса
1173
1197
  */
1174
- async go() {
1175
- return new Promise((t) => {
1176
- this.loading ? setTimeout(() => this.go().then(t), 160) : this.callback ? (this.loading = !0, this.callback().then(() => {
1177
- this.loading = !1, t();
1178
- })) : t();
1198
+ async go(t) {
1199
+ return new Promise((e) => {
1200
+ this.loading ? setTimeout(() => this.go(t).then(e), 160) : this.callback ? (this.loading = !0, this.callback(t).then(() => {
1201
+ this.loading = !1, e();
1202
+ })) : e();
1179
1203
  });
1180
1204
  }
1181
1205
  /**
@@ -1183,13 +1207,14 @@ class qt {
1183
1207
  *
1184
1208
  * Анализ запроса после выполнения.
1185
1209
  * @param query data received in the request/ данные, полученные в запросе
1210
+ * @param apiFetch request options/ опции запроса
1186
1211
  */
1187
- async end(t) {
1188
- let e = {};
1189
- return this.callbackEnd && (e = await this.callbackEnd(t)), e;
1212
+ async end(t, e) {
1213
+ let i = {};
1214
+ return this.callbackEnd && (i = await this.callbackEnd(t, e)), i;
1190
1215
  }
1191
1216
  }
1192
- const b = class b {
1217
+ const v = class v {
1193
1218
  /**
1194
1219
  * Is the server local.
1195
1220
  *
@@ -1231,11 +1256,11 @@ const b = class b {
1231
1256
  * @param request this request/ данный запрос
1232
1257
  * @param method method for request/ метод запрос
1233
1258
  */
1234
- static getBody(t = {}, e = D.get) {
1259
+ static getBody(t = {}, e = L.get) {
1235
1260
  if (t instanceof FormData)
1236
1261
  return t;
1237
- if (e !== D.get && L(t))
1238
- return R(t) ? t : JSON.stringify(t);
1262
+ if (e !== L.get && S(t))
1263
+ return P(t) ? t : JSON.stringify(t);
1239
1264
  }
1240
1265
  /**
1241
1266
  * Getting data for the body of the get method.
@@ -1245,11 +1270,11 @@ const b = class b {
1245
1270
  * @param path path to request/ путь к запрос
1246
1271
  * @param method method for request/ метод запрос
1247
1272
  */
1248
- static getBodyForGet(t, e = "", s = D.get) {
1249
- if (s === D.get) {
1250
- const n = e.match(/\?/) ? "&" : "?", o = typeof t == "object" ? Et(t) : t;
1251
- if (L(o))
1252
- return `${n}${o}`;
1273
+ static getBodyForGet(t, e = "", i = L.get) {
1274
+ if (i === L.get) {
1275
+ const r = e.match(/\?/) ? "&" : "?", o = typeof t == "object" ? It(t) : t;
1276
+ if (S(o))
1277
+ return `${r}${o}`;
1253
1278
  }
1254
1279
  return "";
1255
1280
  }
@@ -1259,7 +1284,7 @@ const b = class b {
1259
1284
  * Изменяет данные заголовка по умолчанию.
1260
1285
  */
1261
1286
  static setHeaders(t) {
1262
- return this.headers.set(t), b;
1287
+ return this.headers.set(t), v;
1263
1288
  }
1264
1289
  /**
1265
1290
  * Modifies the default request data.
@@ -1267,7 +1292,7 @@ const b = class b {
1267
1292
  * Изменяет данные запроса по умолчанию.
1268
1293
  */
1269
1294
  static setRequestDefault(t) {
1270
- return this.requestDefault.set(t), b;
1295
+ return this.requestDefault.set(t), v;
1271
1296
  }
1272
1297
  /**
1273
1298
  * Change the base path to the script.
@@ -1276,7 +1301,7 @@ const b = class b {
1276
1301
  * @param url path to the script/ путь к скрипту
1277
1302
  */
1278
1303
  static setUrl(t) {
1279
- return this.url = t, b;
1304
+ return this.url = t, v;
1280
1305
  }
1281
1306
  /**
1282
1307
  * The function is modified for a call before the request.
@@ -1285,7 +1310,7 @@ const b = class b {
1285
1310
  * @param callback function for call/ функция для вызова
1286
1311
  */
1287
1312
  static setPreparation(t) {
1288
- return this.preparation.set(t), b;
1313
+ return this.preparation.set(t), v;
1289
1314
  }
1290
1315
  /**
1291
1316
  * Modify the function after the request.
@@ -1294,7 +1319,7 @@ const b = class b {
1294
1319
  * @param callback function for call/ функция для вызова
1295
1320
  */
1296
1321
  static setEnd(t) {
1297
- return this.preparation.setEnd(t), b;
1322
+ return this.preparation.setEnd(t), v;
1298
1323
  }
1299
1324
  /**
1300
1325
  * To execute a request.
@@ -1303,7 +1328,7 @@ const b = class b {
1303
1328
  * @param pathRequest query string or list of parameters/ строка запроса или список параметров
1304
1329
  */
1305
1330
  static async request(t) {
1306
- return R(t) ? await this.fetch({
1331
+ return P(t) ? await this.fetch({
1307
1332
  path: t
1308
1333
  }) : await this.fetch(t);
1309
1334
  }
@@ -1315,7 +1340,7 @@ const b = class b {
1315
1340
  */
1316
1341
  static get(t) {
1317
1342
  return this.request(C(t, {
1318
- method: D.get
1343
+ method: L.get
1319
1344
  }));
1320
1345
  }
1321
1346
  /**
@@ -1326,7 +1351,7 @@ const b = class b {
1326
1351
  */
1327
1352
  static post(t) {
1328
1353
  return this.request(C(t, {
1329
- method: D.post
1354
+ method: L.post
1330
1355
  }));
1331
1356
  }
1332
1357
  /**
@@ -1337,7 +1362,7 @@ const b = class b {
1337
1362
  */
1338
1363
  static put(t) {
1339
1364
  return this.request(C(t, {
1340
- method: D.put
1365
+ method: L.put
1341
1366
  }));
1342
1367
  }
1343
1368
  /**
@@ -1348,7 +1373,7 @@ const b = class b {
1348
1373
  */
1349
1374
  static delete(t) {
1350
1375
  return this.request(C(t, {
1351
- method: D.delete
1376
+ method: L.delete
1352
1377
  }));
1353
1378
  }
1354
1379
  /**
@@ -1360,32 +1385,33 @@ const b = class b {
1360
1385
  static async fetch(t) {
1361
1386
  const {
1362
1387
  toData: e = !0,
1363
- hideError: s = !1,
1364
- queryReturn: n = void 0,
1388
+ hideError: i = !1,
1389
+ queryReturn: r = void 0,
1365
1390
  globalPreparation: o = !0,
1366
1391
  globalEnd: a = !0
1367
1392
  } = t, u = await this.response.emulator(t);
1368
1393
  if (u)
1369
1394
  return u;
1370
- let h = {};
1371
- x.show();
1395
+ const h = new $t();
1396
+ let f;
1397
+ I.show();
1372
1398
  try {
1373
- await this.preparation.make(o);
1374
- const g = await this.makeQuery(t), d = await this.preparation.makeEnd(a, g);
1375
- if (this.status.setStatus(
1376
- g.status,
1377
- g.statusText
1378
- ), d != null && d.reset)
1379
- return x.hide(), await this.fetch(t);
1380
- h = await this.readData(
1381
- g,
1382
- n,
1383
- d
1399
+ await this.preparation.make(o, t);
1400
+ const d = await this.makeQuery(t), y = await this.preparation.makeEnd(a, d, t);
1401
+ if (h.setStatus(d.status, d.statusText), this.status.setStatus(d.status, d.statusText), y != null && y.reset)
1402
+ return I.hide(), await this.fetch(t);
1403
+ f = await this.readData(
1404
+ d,
1405
+ r,
1406
+ y
1384
1407
  );
1385
- } catch (g) {
1386
- s || console.error("Api: ", g), this.status.setError(String(g));
1408
+ } catch (d) {
1409
+ throw i || console.error("Api: ", d), h.setError(String(d)), this.status.setError(String(d)), I.hide(), d;
1387
1410
  }
1388
- return x.hide(), this.makeData(h, e);
1411
+ return I.hide(), h.setLastResponse(f), this.status.setLastResponse(f), this.makeStatus(
1412
+ this.makeData(f, e),
1413
+ h
1414
+ );
1389
1415
  }
1390
1416
  /**
1391
1417
  * Reading data from the response.
@@ -1395,9 +1421,9 @@ const b = class b {
1395
1421
  * @param queryReturn custom function for reading data/ кастомная функция для чтения данных
1396
1422
  * @param end finalization data/ данные финализации
1397
1423
  */
1398
- static async readData(t, e, s) {
1399
- var n;
1400
- return e ? await e(t) : "data" in s ? s.data : ((n = t.headers.get("Content-Type")) != null ? n : "").match("application/json") ? await t.json() : { data: await t.text() };
1424
+ static async readData(t, e, i) {
1425
+ var r;
1426
+ return e ? await e(t) : "data" in i ? i.data : ((r = t.headers.get("Content-Type")) != null ? r : "").match("application/json") ? await t.json() : { data: await t.text() };
1401
1427
  }
1402
1428
  /**
1403
1429
  * Executing the request.
@@ -1407,18 +1433,19 @@ const b = class b {
1407
1433
  */
1408
1434
  static async makeQuery(t) {
1409
1435
  const e = this.requestDefault.request(t.request), {
1410
- api: s = !0,
1411
- path: n = "",
1436
+ api: i = !0,
1437
+ path: r = "",
1412
1438
  pathFull: o = void 0,
1413
- method: a = D.get,
1439
+ method: a = L.get,
1414
1440
  headers: u = {},
1415
1441
  type: h = "application/json;charset=UTF-8",
1416
- init: g = {}
1417
- } = t, d = o != null ? o : this.getUrl(n, s), v = `${d}${this.getBodyForGet(e, d, a)}`, V = this.headers.get(u, h), P = C(g, {
1442
+ init: f = {},
1443
+ controller: d = void 0
1444
+ } = t, y = o != null ? o : this.getUrl(r, i), X = `${y}${this.getBodyForGet(e, y, a)}`, W = this.headers.get(u, h), x = C(f, {
1418
1445
  method: a,
1419
1446
  body: this.getBody(e, a)
1420
1447
  });
1421
- return V && (P.headers = V), await fetch(v, P);
1448
+ return W && (x.headers = W), d && (x.signal = d.signal), await fetch(X, x);
1422
1449
  }
1423
1450
  /**
1424
1451
  * Transforms data if needed.
@@ -1428,19 +1455,30 @@ const b = class b {
1428
1455
  * @param toData is it necessary to process the data/ нужно ли обрабатывать данные
1429
1456
  */
1430
1457
  static makeData(t, e) {
1431
- if (this.status.setLastResponse(t), t && e && A(t) && "data" in t) {
1432
- if (A(t.data)) {
1433
- const s = C(t.data);
1434
- return "success" in t && (s.success = t.success), s;
1435
- }
1458
+ if (!e || !t || !N(t) || !("data" in t))
1459
+ return t;
1460
+ if (t.data !== null && typeof t.data != "object" || at(t.data))
1436
1461
  return t.data;
1437
- }
1438
- return t;
1462
+ const i = C(t.data);
1463
+ return "success" in t && !("success" in i) && (i.success = t.success), "status" in t && !("status" in i) && (i.status = t.status), "message" in t && !("message" in i) && (i.message = t.message), i;
1464
+ }
1465
+ /**
1466
+ * Appends the status object to the response data if possible.
1467
+ *
1468
+ * Добавляет объект статуса к данным ответа, если это возможно.
1469
+ * @param data response data/ данные ответа
1470
+ * @param status status object/ объект статуса
1471
+ */
1472
+ static makeStatus(t, e) {
1473
+ return t && N(t) ? {
1474
+ ...t,
1475
+ statusObject: e.get()
1476
+ } : t;
1439
1477
  }
1440
1478
  };
1441
- c(b, "url", "/api/"), c(b, "headers", new zt()), c(b, "requestDefault", new Zt()), c(b, "status", new Vt()), c(b, "response", new Yt(b.requestDefault)), c(b, "preparation", new qt());
1442
- let z = b;
1443
- class ke {
1479
+ c(v, "url", "/api/"), c(v, "headers", new Zt()), c(v, "requestDefault", new Vt()), c(v, "status", new $t()), c(v, "response", new Yt(v.requestDefault)), c(v, "preparation", new qt());
1480
+ let Z = v;
1481
+ class Ee {
1444
1482
  /**
1445
1483
  * Constructor
1446
1484
  * @param name channel name/ название канала
@@ -1461,8 +1499,8 @@ class ke {
1461
1499
  if (this.callback = e, l())
1462
1500
  try {
1463
1501
  this.channel = new BroadcastChannel(`${Jt()}__${t}`), this.channel.onmessage = this.update;
1464
- } catch (s) {
1465
- console.error(`BroadcastMessage ${t}:`, s);
1502
+ } catch (i) {
1503
+ console.error(`BroadcastMessage ${t}:`, i);
1466
1504
  }
1467
1505
  }
1468
1506
  /**
@@ -1485,7 +1523,7 @@ class ke {
1485
1523
  return this.callback = t, this;
1486
1524
  }
1487
1525
  }
1488
- const Jt = () => new T("__broadcast-name").get(() => `name_${J(1e6, 9999999)}`);
1526
+ const Jt = () => new G("__broadcast-name").get(() => `name_${J(1e6, 9999999)}`);
1489
1527
  class Mt {
1490
1528
  /**
1491
1529
  * Constructor
@@ -1546,7 +1584,7 @@ class Mt {
1546
1584
  * @param comparison additional data for comparison/ дополнительные данные для сравнения
1547
1585
  */
1548
1586
  isUpdate(t) {
1549
- return this.cache === void 0 || this.comparisons.length !== t.length || this.comparisons.findIndex((e, s) => e !== t[s]) >= 0 ? (this.comparisons = [...t], !0) : !1;
1587
+ return this.cache === void 0 || this.comparisons.length !== t.length || this.comparisons.findIndex((e, i) => e !== t[i]) >= 0 ? (this.comparisons = [...t], !0) : !1;
1550
1588
  }
1551
1589
  }
1552
1590
  class Qt {
@@ -1561,8 +1599,8 @@ class Qt {
1561
1599
  * @param callback function for the cache/ функция для кэша
1562
1600
  * @param comparison additional data for comparison/ дополнительные данные для сравнения
1563
1601
  */
1564
- get(t, e, s) {
1565
- return this.getCacheItem(t, e).getCache(s != null ? s : []);
1602
+ get(t, e, i) {
1603
+ return this.getCacheItem(t, e).getCache(i != null ? i : []);
1566
1604
  }
1567
1605
  /**
1568
1606
  * Getting data for the cache, and if there is no cache, it performs a function to save the cache (Async).
@@ -1572,8 +1610,8 @@ class Qt {
1572
1610
  * @param callback function for the cache/ функция для кэша
1573
1611
  * @param comparison additional data for comparison/ дополнительные данные для сравнения
1574
1612
  */
1575
- async getAsync(t, e, s) {
1576
- return await this.getCacheItem(t, e).getCacheAsync(s != null ? s : []);
1613
+ async getAsync(t, e, i) {
1614
+ return await this.getCacheItem(t, e).getCacheAsync(i != null ? i : []);
1577
1615
  }
1578
1616
  /**
1579
1617
  * Returns an instance of the object for working with the cache element.
@@ -1586,7 +1624,7 @@ class Qt {
1586
1624
  return t in this.cache || (this.cache[t] = new Mt(e)), this.cache[t];
1587
1625
  }
1588
1626
  }
1589
- const O = class O {
1627
+ const T = class T {
1590
1628
  /**
1591
1629
  * Getting data for the cache, and if there is no cache, it performs a function to save the cache.
1592
1630
  *
@@ -1595,15 +1633,15 @@ const O = class O {
1595
1633
  * @param callback function for the cache/ функция для кэша
1596
1634
  * @param comparison additional data for comparison/ дополнительные данные для сравнения
1597
1635
  */
1598
- static get(t, e, s) {
1599
- return this.cache.get(t, e, s);
1636
+ static get(t, e, i) {
1637
+ return this.cache.get(t, e, i);
1600
1638
  }
1601
1639
  };
1602
- c(O, "cache"), O.cache = new Qt();
1603
- let $t = O;
1604
- function Bt(i, t = !1) {
1605
- if (typeof i == "string") {
1606
- const e = i.trim();
1640
+ c(T, "cache"), T.cache = new Qt();
1641
+ let wt = T;
1642
+ function Ft(s, t = !1) {
1643
+ if (typeof s == "string") {
1644
+ const e = s.trim();
1607
1645
  switch (e) {
1608
1646
  case "undefined":
1609
1647
  return;
@@ -1617,8 +1655,8 @@ function Bt(i, t = !1) {
1617
1655
  if (/^[{[]/.exec(e))
1618
1656
  try {
1619
1657
  return JSON.parse(e);
1620
- } catch (s) {
1621
- console.error("transformation: JSON error", s);
1658
+ } catch (i) {
1659
+ console.error("transformation: JSON error", i);
1622
1660
  }
1623
1661
  else {
1624
1662
  if (/^[0-9]+\.[0-9.]+$/.exec(e))
@@ -1630,10 +1668,10 @@ function Bt(i, t = !1) {
1630
1668
  }
1631
1669
  }
1632
1670
  }
1633
- return i;
1671
+ return s;
1634
1672
  }
1635
1673
  const Xt = "cookie-block";
1636
- class Ft {
1674
+ class Rt {
1637
1675
  /**
1638
1676
  * Obtaining status.
1639
1677
  *
@@ -1653,14 +1691,14 @@ class Ft {
1653
1691
  this.storage.set(t);
1654
1692
  }
1655
1693
  }
1656
- c(Ft, "storage", new T(Xt));
1657
- const X = {}, ht = class ht {
1694
+ c(Rt, "storage", new G(Xt));
1695
+ const _ = {}, lt = class lt {
1658
1696
  constructor(t) {
1659
1697
  c(this, "value");
1660
1698
  c(this, "options", {});
1661
1699
  if (this.name = t, t in et)
1662
1700
  return et[t];
1663
- this.value = X == null ? void 0 : X[t], et[t] = this;
1701
+ this.value = _ == null ? void 0 : _[t], et[t] = this;
1664
1702
  }
1665
1703
  /**
1666
1704
  * Get data or update if none.
@@ -1680,7 +1718,7 @@ const X = {}, ht = class ht {
1680
1718
  * @param options additional parameters/ дополнительные параметры
1681
1719
  */
1682
1720
  set(t, e) {
1683
- this.value = I(t), Object.assign(this.options, e), this.update();
1721
+ this.value = B(t), Object.assign(this.options, e), this.update();
1684
1722
  }
1685
1723
  /**
1686
1724
  * Delete cookie data.
@@ -1705,14 +1743,14 @@ const X = {}, ht = class ht {
1705
1743
  * Обновление данных cookie.
1706
1744
  */
1707
1745
  update() {
1708
- var t, e, s, n, o;
1709
- if (l() && !nt() && !Ft.get()) {
1746
+ var t, e, i, r, o;
1747
+ if (l() && !nt() && !Rt.get()) {
1710
1748
  const a = String((t = this.value) != null ? t : "");
1711
1749
  document.cookie = [
1712
1750
  `${encodeURIComponent(this.name)}=${encodeURIComponent(a)}`,
1713
1751
  `max-age=${a === "" ? "-1" : this.getAge()}`,
1714
- `SameSite=${(s = (e = this.options) == null ? void 0 : e.sameSite) != null ? s : "strict"}`,
1715
- ...(o = (n = this.options) == null ? void 0 : n.arguments) != null ? o : []
1752
+ `SameSite=${(i = (e = this.options) == null ? void 0 : e.sameSite) != null ? i : "strict"}`,
1753
+ ...(o = (r = this.options) == null ? void 0 : r.arguments) != null ? o : []
1716
1754
  ].join("; ");
1717
1755
  }
1718
1756
  }
@@ -1723,29 +1761,29 @@ const X = {}, ht = class ht {
1723
1761
  */
1724
1762
  static updateData() {
1725
1763
  for (const t of document.cookie.split(";")) {
1726
- const [e, s] = t.trim().split("=");
1727
- e && L(s) && (X[e] = Bt(s));
1764
+ const [e, i] = t.trim().split("=");
1765
+ e && S(i) && (_[e] = Ft(i));
1728
1766
  }
1729
1767
  }
1730
1768
  };
1731
- l() && !nt() && ht.updateData();
1732
- let pt = ht;
1769
+ l() && !nt() && lt.updateData();
1770
+ let bt = lt;
1733
1771
  const et = {};
1734
- function B(i) {
1735
- var n, o, a, u, h, g, d, v;
1736
- if (i instanceof Date)
1737
- return i;
1738
- if (M(i))
1772
+ function F(s) {
1773
+ var r, o, a, u, h, f, d, y;
1774
+ if (s instanceof Date)
1775
+ return s;
1776
+ if (M(s))
1739
1777
  return /* @__PURE__ */ new Date();
1740
- if (typeof i == "number")
1741
- return new Date(i);
1742
- let t = i, e = w.getTimezoneFormat().trim();
1743
- i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (V, P, G) => (t = P, e = G.trim(), V));
1744
- const s = (v = (d = (g = (h = (u = (a = (o = (n = /^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) != null ? n : /^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) != null ? o : /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(t) && t.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6")) != null ? a : /^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) != null ? u : /^\d{4}-\d{2}$/.exec(t) && `${t}-01T00:00:00`) != null ? h : /^\d{4}$/.exec(t) && `${t}-01-01T00:00:00`) != null ? g : /^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) != null ? d : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? v : t.replace(" ", "T");
1745
- return /* @__PURE__ */ new Date(`${s.trim()}${e}`);
1778
+ if (typeof s == "number")
1779
+ return new Date(s);
1780
+ let t = s, e = w.getTimezoneFormat().trim();
1781
+ s.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (X, W, x) => (t = W, e = x.trim(), X));
1782
+ const i = (y = (d = (f = (h = (u = (a = (o = (r = /^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) != null ? r : /^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) != null ? o : /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(t) && t.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6")) != null ? a : /^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) != null ? u : /^\d{4}-\d{2}$/.exec(t) && `${t}-01T00:00:00`) != null ? h : /^\d{4}$/.exec(t) && `${t}-01-01T00:00:00`) != null ? f : /^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) != null ? d : /^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) != null ? y : t.replace(" ", "T");
1783
+ return /* @__PURE__ */ new Date(`${i.trim()}${e}`);
1746
1784
  }
1747
- function _t(i, t) {
1748
- return f(i, (e) => e == null ? void 0 : e[t]);
1785
+ function _t(s, t) {
1786
+ return g(s, (e) => e == null ? void 0 : e[t], !0);
1749
1787
  }
1750
1788
  class Q {
1751
1789
  /**
@@ -1757,9 +1795,9 @@ class Q {
1757
1795
  c(this, "geo");
1758
1796
  this.geo = w.find(t);
1759
1797
  const e = this.getLocation();
1760
- if (e in it)
1761
- return it[e];
1762
- it[e] = this;
1798
+ if (e in st)
1799
+ return st[e];
1800
+ st[e] = this;
1763
1801
  }
1764
1802
  /**
1765
1803
  * Returns an instance of the class according to the specified country code.
@@ -1797,17 +1835,17 @@ class Q {
1797
1835
  */
1798
1836
  display(t, e) {
1799
1837
  var o;
1800
- let s = { type: "language" }, n;
1801
- e && (typeof e == "string" ? s.type = e : s = {
1802
- ...s,
1838
+ let i = { type: "language" }, r;
1839
+ e && (typeof e == "string" ? i.type = e : i = {
1840
+ ...i,
1803
1841
  ...e
1804
1842
  });
1805
1843
  try {
1806
- l() && (t ? n = new Intl.DisplayNames(this.getLocation(), s).of(t) : s.type === "language" ? n = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.language) : s.type === "region" && (n = new Intl.DisplayNames(this.getLocation(), s).of(this.geo.country)));
1844
+ l() && (t ? r = new Intl.DisplayNames(this.getLocation(), i).of(t) : i.type === "language" ? r = new Intl.DisplayNames(this.getLocation(), i).of(this.geo.language) : i.type === "region" && (r = new Intl.DisplayNames(this.getLocation(), i).of(this.geo.country)));
1807
1845
  } catch (a) {
1808
1846
  console.error("display: ", a);
1809
1847
  }
1810
- return (o = n != null ? n : t) != null ? o : "";
1848
+ return (o = r != null ? r : t) != null ? o : "";
1811
1849
  }
1812
1850
  /**
1813
1851
  * Get display names of language.
@@ -1817,11 +1855,11 @@ class Q {
1817
1855
  * @param style the formatting style to use/ используемый стиль форматирования
1818
1856
  */
1819
1857
  languageName(t, e) {
1820
- const s = {
1858
+ const i = {
1821
1859
  type: "language",
1822
1860
  style: e
1823
1861
  };
1824
- return this.display(w.getByCode(t).language, s);
1862
+ return this.display(w.getByCode(t).language, i);
1825
1863
  }
1826
1864
  /**
1827
1865
  * Get display names of region.
@@ -1831,11 +1869,11 @@ class Q {
1831
1869
  * @param style the formatting style to use/ используемый стиль форматирования
1832
1870
  */
1833
1871
  countryName(t, e) {
1834
- const s = {
1872
+ const i = {
1835
1873
  type: "region",
1836
1874
  style: e
1837
1875
  };
1838
- return this.display(t, s);
1876
+ return this.display(t, i);
1839
1877
  }
1840
1878
  /**
1841
1879
  * The method returns a string containing the full name in a specific format.
@@ -1846,25 +1884,25 @@ class Q {
1846
1884
  * @param surname surname middle name (optional)/ отчество
1847
1885
  * @param short shorten the names/ сократить названия
1848
1886
  */
1849
- fullName(t, e, s, n) {
1887
+ fullName(t, e, i, r) {
1850
1888
  var u, h;
1851
1889
  const o = (h = (u = this.geo) == null ? void 0 : u.nameFormat) != null ? h : "fl";
1852
1890
  let a;
1853
1891
  switch (o) {
1854
1892
  case "fsl":
1855
- a = `${e}${s ? ` ${s}` : ""} ${t}`;
1893
+ a = `${e}${i ? ` ${i}` : ""} ${t}`;
1856
1894
  break;
1857
1895
  case "lf":
1858
1896
  a = `${t} ${e}`;
1859
1897
  break;
1860
1898
  case "lsf":
1861
- a = `${t}${s ? ` ${s}` : ""} ${e}`;
1899
+ a = `${t}${i ? ` ${i}` : ""} ${e}`;
1862
1900
  break;
1863
1901
  default:
1864
1902
  a = `${e} ${t}`;
1865
1903
  break;
1866
1904
  }
1867
- return n ? a.replace(/ (.)[^ ]+/ig, " $1.") : a;
1905
+ return r ? a.replace(/ (.)[^ ]+/ig, " $1.") : a;
1868
1906
  }
1869
1907
  /**
1870
1908
  * In basic use without specifying a locale, a formatted string.
@@ -1875,8 +1913,8 @@ class Q {
1875
1913
  * или всеми свойствами
1876
1914
  */
1877
1915
  number(t, e) {
1878
- var s, n;
1879
- return ((n = (s = this.numberObject(e)) == null ? void 0 : s.format) == null ? void 0 : n.call(s, k(t))) || t.toString();
1916
+ var i, r;
1917
+ return ((r = (i = this.numberObject(e)) == null ? void 0 : i.format) == null ? void 0 : r.call(i, k(t))) || t.toString();
1880
1918
  }
1881
1919
  /**
1882
1920
  * Decimal point symbol.
@@ -1884,8 +1922,8 @@ class Q {
1884
1922
  * Символ десятичной точки.
1885
1923
  */
1886
1924
  decimal() {
1887
- var t, e, s, n, o;
1888
- return ((o = (n = (s = (e = (t = this.numberObject()) == null ? void 0 : t.formatToParts) == null ? void 0 : e.call(t, 1.2)) == null ? void 0 : s.find) == null ? void 0 : n.call(s, (a) => a.type === "decimal")) == null ? void 0 : o.value) || ".";
1925
+ var t, e, i, r, o;
1926
+ return ((o = (r = (i = (e = (t = this.numberObject()) == null ? void 0 : t.formatToParts) == null ? void 0 : e.call(t, 1.2)) == null ? void 0 : i.find) == null ? void 0 : r.call(i, (a) => a.type === "decimal")) == null ? void 0 : o.value) || ".";
1889
1927
  }
1890
1928
  /**
1891
1929
  * Currency formatting.
@@ -1896,25 +1934,25 @@ class Q {
1896
1934
  * валюта для использования в форматировании валюты
1897
1935
  * @param numberOnly do not display the currency symbol/ не выводить значок валюты
1898
1936
  */
1899
- currency(t, e, s = !1) {
1900
- const n = {
1937
+ currency(t, e, i = !1) {
1938
+ const r = {
1901
1939
  style: "currency",
1902
1940
  currencyDisplay: "symbol",
1903
1941
  ...typeof e == "string" ? { currency: e } : e || {}
1904
- }, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (n.currency = String(a[2]).toUpperCase(), String(a[1])));
1905
- if (s) {
1906
- const a = this.numberObject(n);
1942
+ }, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (r.currency = String(a[2]).toUpperCase(), String(a[1])));
1943
+ if (i) {
1944
+ const a = this.numberObject(r);
1907
1945
  return a ? _t(
1908
1946
  a.formatToParts(k(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
1909
1947
  "value"
1910
1948
  ).join("") : t.toString();
1911
- } else return "currency" in n ? this.number(
1949
+ } else return "currency" in r ? this.number(
1912
1950
  typeof t == "number" ? t : o,
1913
- n
1951
+ r
1914
1952
  ) : this.number(
1915
1953
  typeof t == "number" ? t : o,
1916
1954
  {
1917
- ...n,
1955
+ ...r,
1918
1956
  style: "decimal"
1919
1957
  }
1920
1958
  );
@@ -1929,12 +1967,12 @@ class Q {
1929
1967
  * как отобразить валюту в формате валюты
1930
1968
  */
1931
1969
  currencySymbol(t, e = "symbol") {
1932
- var s, n, o, a, u;
1933
- return ((u = (a = (o = (n = (s = this.numberObject({
1970
+ var i, r, o, a, u;
1971
+ return ((u = (a = (o = (r = (i = this.numberObject({
1934
1972
  style: "currency",
1935
1973
  currencyDisplay: e,
1936
1974
  currency: t
1937
- })) == null ? void 0 : s.formatToParts) == null ? void 0 : n.call(s, 100)) == null ? void 0 : o.find) == null ? void 0 : a.call(o, (h) => h.type === "currency")) == null ? void 0 : u.value) || t;
1975
+ })) == null ? void 0 : i.formatToParts) == null ? void 0 : r.call(i, 100)) == null ? void 0 : o.find) == null ? void 0 : a.call(o, (h) => h.type === "currency")) == null ? void 0 : u.value) || t;
1938
1976
  }
1939
1977
  /**
1940
1978
  * Unit formatting.
@@ -1946,11 +1984,11 @@ class Q {
1946
1984
  * в форматировании блока
1947
1985
  */
1948
1986
  unit(t, e) {
1949
- const s = {
1987
+ const i = {
1950
1988
  style: "unit",
1951
1989
  ...typeof e == "string" ? { unit: e } : e || {}
1952
- }, n = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]+)$/i, (...o) => (s.unit = String(o[2]).toLowerCase(), String(o[1])));
1953
- return this.number(n, s);
1990
+ }, r = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]+)$/i, (...o) => (i.unit = String(o[2]).toLowerCase(), String(o[1])));
1991
+ return this.number(r, i);
1954
1992
  }
1955
1993
  /**
1956
1994
  * Возвращает отформатированный размер файла
@@ -1959,19 +1997,19 @@ class Q {
1959
1997
  * в форматировании блока
1960
1998
  */
1961
1999
  sizeFile(t, e = "byte") {
1962
- const s = k(t);
1963
- if (s > 1024 && R(e))
2000
+ const i = k(t);
2001
+ if (i > 1024 && P(e))
1964
2002
  switch (e) {
1965
2003
  case "byte":
1966
- return this.sizeFile(s / 1024, "kilobyte");
2004
+ return this.sizeFile(i / 1024, "kilobyte");
1967
2005
  case "kilobyte":
1968
- return this.sizeFile(s / 1024, "megabyte");
2006
+ return this.sizeFile(i / 1024, "megabyte");
1969
2007
  case "megabyte":
1970
- return this.sizeFile(s / 1024, "gigabyte");
2008
+ return this.sizeFile(i / 1024, "gigabyte");
1971
2009
  case "gigabyte":
1972
- return this.sizeFile(s / 1024, "terabyte");
2010
+ return this.sizeFile(i / 1024, "terabyte");
1973
2011
  case "terabyte":
1974
- return this.sizeFile(s / 1024, "petabyte");
2012
+ return this.sizeFile(i / 1024, "petabyte");
1975
2013
  }
1976
2014
  return this.unit(t, e);
1977
2015
  }
@@ -2007,15 +2045,15 @@ class Q {
2007
2045
  * @param options Property for PluralRules/ свойство для PluralRules
2008
2046
  * @param optionsNumber an object with some or all properties/ объект с некоторыми или всеми свойствами
2009
2047
  */
2010
- plural(t, e, s, n) {
2048
+ plural(t, e, i, r) {
2011
2049
  var u;
2012
2050
  const o = k(t), a = e.split("|");
2013
2051
  if (a.length > 1)
2014
2052
  try {
2015
2053
  if (l()) {
2016
- const g = new Intl.PluralRules(this.getLocation(), s).select(o);
2054
+ const f = new Intl.PluralRules(this.getLocation(), i).select(o);
2017
2055
  let d;
2018
- switch (g) {
2056
+ switch (f) {
2019
2057
  case "zero":
2020
2058
  d = a[a.length - 1];
2021
2059
  break;
@@ -2035,12 +2073,12 @@ class Q {
2035
2073
  a.length === 6 ? d = a[a.length - 2] : d = a[a.length - 1];
2036
2074
  break;
2037
2075
  }
2038
- return `${this.number(o, n)} ${d != null ? d : ""}`.trim();
2076
+ return `${this.number(o, r)} ${d != null ? d : ""}`.trim();
2039
2077
  }
2040
2078
  } catch (h) {
2041
2079
  console.error("plural: ", h);
2042
2080
  }
2043
- return `${this.number(o, n)} ${(u = a == null ? void 0 : a[0]) != null ? u : ""}`.trim();
2081
+ return `${this.number(o, r)} ${(u = a == null ? void 0 : a[0]) != null ? u : ""}`.trim();
2044
2082
  }
2045
2083
  /**
2046
2084
  * Enables language-sensitive date and time formatting.
@@ -2051,9 +2089,9 @@ class Q {
2051
2089
  * @param styleOptions the representation of the month/ представление месяца
2052
2090
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
2053
2091
  */
2054
- date(t, e, s, n) {
2055
- const o = B(t), a = typeof s == "string", u = this.dateOptions(e, a ? s : "short");
2056
- return n && (u.hour12 = !1), a || Object.assign(u, s), o.toLocaleString(this.getLocation(), u);
2092
+ date(t, e, i, r) {
2093
+ const o = F(t), a = typeof i == "string", u = this.dateOptions(e, a ? i : "short");
2094
+ return r && (u.hour12 = !1), a || Object.assign(u, i), o.toLocaleString(this.getLocation(), u);
2057
2095
  }
2058
2096
  /**
2059
2097
  * Enables language-sensitive relative time formatting.
@@ -2064,12 +2102,12 @@ class Q {
2064
2102
  * длина интернационализированного сообщения
2065
2103
  * @param todayValue current day/ текущий день
2066
2104
  */
2067
- relative(t, e, s) {
2068
- const n = B(t), o = s || /* @__PURE__ */ new Date(), a = {
2105
+ relative(t, e, i) {
2106
+ const r = F(t), o = i || /* @__PURE__ */ new Date(), a = {
2069
2107
  numeric: "auto",
2070
2108
  ...typeof e == "string" ? { style: e } : e || {}
2071
2109
  };
2072
- let u = "second", h = (n.getTime() - o.getTime()) / 1e3;
2110
+ let u = "second", h = (r.getTime() - o.getTime()) / 1e3;
2073
2111
  return Math.abs(h) >= 60 && (u = "minute", h /= 60, Math.abs(h) >= 60 && (u = "hour", h /= 60, Math.abs(h) >= 24 && (u = "day", h /= 24, Math.abs(h) >= 30 && (u = "month", h /= 30, Math.abs(h) >= 12 && (u = "year", h /= 12))))), this.relativeByValue(h, u, a);
2074
2112
  }
2075
2113
  /**
@@ -2090,12 +2128,12 @@ class Q {
2090
2128
  * @param type type of data format/ тип формата data
2091
2129
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
2092
2130
  */
2093
- relativeLimit(t, e, s, n, o, a, u) {
2094
- const h = B(t), g = s || /* @__PURE__ */ new Date(), d = new Date(g), v = new Date(g);
2095
- return d.setDate(g.getDate() - e), v.setDate(g.getDate() + e), h >= d && h <= v ? this.relative(
2131
+ relativeLimit(t, e, i, r, o, a, u) {
2132
+ const h = F(t), f = i || /* @__PURE__ */ new Date(), d = new Date(f), y = new Date(f);
2133
+ return d.setDate(f.getDate() - e), y.setDate(f.getDate() + e), h >= d && h <= y ? this.relative(
2096
2134
  h,
2097
- n,
2098
- g
2135
+ r,
2136
+ f
2099
2137
  ) : this.date(
2100
2138
  h,
2101
2139
  a,
@@ -2109,14 +2147,14 @@ class Q {
2109
2147
  * @param unit time unit/ единица времени
2110
2148
  * @param styleOptions additional option or formatting style/ дополнительная опция или стиль форматирования
2111
2149
  */
2112
- relativeByValue(t, e, s) {
2113
- const n = {
2150
+ relativeByValue(t, e, i) {
2151
+ const r = {
2114
2152
  numeric: "auto",
2115
- ...typeof s == "string" ? { style: s } : s || {}
2153
+ ...typeof i == "string" ? { style: i } : i || {}
2116
2154
  };
2117
2155
  try {
2118
2156
  if (l())
2119
- return new Intl.RelativeTimeFormat(this.getLocation(), n).format(Math.round(k(t)), e);
2157
+ return new Intl.RelativeTimeFormat(this.getLocation(), r).format(Math.round(k(t)), e);
2120
2158
  } catch (o) {
2121
2159
  console.error("relative: ", o);
2122
2160
  }
@@ -2131,9 +2169,9 @@ class Q {
2131
2169
  month(t, e) {
2132
2170
  try {
2133
2171
  if (l())
2134
- return Intl.DateTimeFormat(this.getLocation(), { month: e || "long" }).format(B(t));
2135
- } catch (s) {
2136
- console.error("month: ", s);
2172
+ return Intl.DateTimeFormat(this.getLocation(), { month: e || "long" }).format(F(t));
2173
+ } catch (i) {
2174
+ console.error("month: ", i);
2137
2175
  }
2138
2176
  return "";
2139
2177
  }
@@ -2150,15 +2188,15 @@ class Q {
2150
2188
  }];
2151
2189
  try {
2152
2190
  if (l()) {
2153
- const s = /* @__PURE__ */ new Date(), n = Intl.DateTimeFormat(this.getLocation(), { month: t || "long" });
2191
+ const i = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { month: t || "long" });
2154
2192
  for (let o = 0; o < 12; o++)
2155
- s.setMonth(o), e.push({
2156
- label: n.format(s).replace(/^./, (a) => a.toUpperCase()),
2193
+ i.setMonth(o), e.push({
2194
+ label: r.format(i).replace(/^./, (a) => a.toUpperCase()),
2157
2195
  value: o + 1
2158
2196
  });
2159
2197
  }
2160
- } catch (s) {
2161
- console.error("months: ", s);
2198
+ } catch (i) {
2199
+ console.error("months: ", i);
2162
2200
  }
2163
2201
  return e;
2164
2202
  }
@@ -2172,9 +2210,9 @@ class Q {
2172
2210
  weekday(t, e) {
2173
2211
  try {
2174
2212
  if (l())
2175
- return Intl.DateTimeFormat(this.getLocation(), { weekday: e || "long" }).format(B(t));
2176
- } catch (s) {
2177
- console.error("weekday: ", s);
2213
+ return Intl.DateTimeFormat(this.getLocation(), { weekday: e || "long" }).format(F(t));
2214
+ } catch (i) {
2215
+ console.error("weekday: ", i);
2178
2216
  }
2179
2217
  return "";
2180
2218
  }
@@ -2191,16 +2229,16 @@ class Q {
2191
2229
  }];
2192
2230
  try {
2193
2231
  if (l()) {
2194
- const s = /* @__PURE__ */ new Date(), n = Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }), o = s.getDay() + (this.geo.firstDay === "Mo" ? -1 : 1);
2195
- s.setDate(s.getDate() - o);
2232
+ const i = /* @__PURE__ */ new Date(), r = Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }), o = i.getDay() + (this.geo.firstDay === "Mo" ? -1 : 1);
2233
+ i.setDate(i.getDate() - o);
2196
2234
  for (let a = 0; a < 7; a++)
2197
2235
  e.push({
2198
- label: n.format(s).replace(/^./, (u) => u.toUpperCase()),
2199
- value: s.getDay()
2200
- }), s.setDate(s.getDate() + 1);
2236
+ label: r.format(i).replace(/^./, (u) => u.toUpperCase()),
2237
+ value: i.getDay()
2238
+ }), i.setDate(i.getDate() + 1);
2201
2239
  }
2202
- } catch (s) {
2203
- console.error("weekdays: ", s);
2240
+ } catch (i) {
2241
+ console.error("weekdays: ", i);
2204
2242
  }
2205
2243
  return e;
2206
2244
  }
@@ -2220,10 +2258,10 @@ class Q {
2220
2258
  * @param data an array with data/ массив с данными
2221
2259
  * @param compareFn a function for sorting/ функция для сортировки
2222
2260
  */
2223
- sort(t, e = (s, n) => [s, n]) {
2261
+ sort(t, e = (i, r) => [i, r]) {
2224
2262
  if (l()) {
2225
- const s = new Intl.Collator(this.getLocation());
2226
- return t.sort((n, o) => s.compare(...e(n, o)));
2263
+ const i = new Intl.Collator(this.getLocation());
2264
+ return t.sort((r, o) => i.compare(...e(r, o)));
2227
2265
  }
2228
2266
  return t;
2229
2267
  }
@@ -2250,23 +2288,23 @@ class Q {
2250
2288
  * @param display the representation of the month/ представление месяца
2251
2289
  */
2252
2290
  dateOptions(t, e = "short") {
2253
- const s = {};
2254
- return ["full", "datetime", "date", void 0, "year-month", "year"].indexOf(t) !== -1 && (s.year = "numeric"), ["full", "datetime", "date", void 0, "year-month", "month", "day-month"].indexOf(t) !== -1 && (s.month = e), ["full", "datetime", "date", void 0, "day", "day-month"].indexOf(t) !== -1 && (s.day = "2-digit"), t !== void 0 && (["full", "datetime", "time", "hour-minute", "hour"].indexOf(t) !== -1 && (s.hour = "2-digit"), ["full", "datetime", "time", "hour-minute", "minute"].indexOf(t) !== -1 && (s.minute = "2-digit"), ["full", "time", "second"].indexOf(t) !== -1 && (s.second = "2-digit")), s;
2291
+ const i = {};
2292
+ return ["full", "datetime", "date", void 0, "year-month", "year"].indexOf(t) !== -1 && (i.year = "numeric"), ["full", "datetime", "date", void 0, "year-month", "month", "day-month"].indexOf(t) !== -1 && (i.month = e), ["full", "datetime", "date", void 0, "day", "day-month"].indexOf(t) !== -1 && (i.day = "2-digit"), t !== void 0 && (["full", "datetime", "time", "hour-minute", "hour"].indexOf(t) !== -1 && (i.hour = "2-digit"), ["full", "datetime", "time", "hour-minute", "minute"].indexOf(t) !== -1 && (i.minute = "2-digit"), ["full", "time", "second"].indexOf(t) !== -1 && (i.second = "2-digit")), i;
2255
2293
  }
2256
2294
  }
2257
- const it = {};
2258
- class ct {
2295
+ const st = {};
2296
+ class ut {
2259
2297
  /**
2260
2298
  * Constructor
2261
2299
  * @param date date for processing/ дата для обработки
2262
2300
  * @param type type of date format for output/ тип формата даты вывода
2263
2301
  * @param code country and language code/ код страны и языка
2264
2302
  */
2265
- constructor(t, e = "date", s = w.getLocation()) {
2303
+ constructor(t, e = "date", i = w.getLocation()) {
2266
2304
  c(this, "date");
2267
2305
  c(this, "hour24", !1);
2268
2306
  c(this, "watch");
2269
- this.type = e, this.code = s, this.date = B(t);
2307
+ this.type = e, this.code = i, this.date = F(t);
2270
2308
  }
2271
2309
  /**
2272
2310
  * Returns an object for working with formatting.
@@ -2330,11 +2368,11 @@ class ct {
2330
2368
  const e = this.getTimeZoneOffset();
2331
2369
  if (t === "minute")
2332
2370
  return e.toString();
2333
- const s = e / 60 * -1;
2371
+ const i = e / 60 * -1;
2334
2372
  if (t === "hour")
2335
- return this.getIntl().number(Math.trunc(s), { signDisplay: "always" });
2336
- const n = this.toTimeZoneHourFormat(s), o = s.toString().match(/.\d+/) ? "30" : "00";
2337
- return t === "RFC" ? `${n}${o}` : `${n}:${o}`;
2373
+ return this.getIntl().number(Math.trunc(i), { signDisplay: "always" });
2374
+ const r = this.toTimeZoneHourFormat(i), o = i.toString().match(/.\d+/) ? "30" : "00";
2375
+ return t === "RFC" ? `${r}${o}` : `${r}:${o}`;
2338
2376
  }
2339
2377
  /**
2340
2378
  * Returns the code of the first day of the week.
@@ -2479,13 +2517,13 @@ class ct {
2479
2517
  * @param timeZone add time zone/ добавить временную зону
2480
2518
  */
2481
2519
  standard(t = !0) {
2482
- const e = new ct(this.date, this.type, "en-GB"), s = [];
2483
- let n;
2484
- return e.setHour24(!0), this.type === "hour-minute" ? n = e.locale(this.type, {
2520
+ const e = new ut(this.date, this.type, "en-GB"), i = [];
2521
+ let r;
2522
+ return e.setHour24(!0), this.type === "hour-minute" ? r = e.locale(this.type, {
2485
2523
  year: "numeric",
2486
2524
  month: "2-digit",
2487
2525
  hour12: !1
2488
- }) : (["full", "datetime", "date", "year-month", "year", "month", "day"].indexOf(this.type) !== -1 && (s.push(e.localeYear()), s.push(e.localeMonth("2-digit"))), ["full", "datetime", "date", "year", "month", "day"].indexOf(this.type) !== -1 && s.push(e.localeDay("2-digit")), ["full", "datetime", "time", "hour", "minute", "second"].indexOf(this.type) !== -1 && (n = e.locale("time"))), `${s.join("-")}${n ? `T${n}${t ? e.getTimeZone() : ""}` : ""}`;
2526
+ }) : (["full", "datetime", "date", "year-month", "year", "month", "day"].indexOf(this.type) !== -1 && (i.push(e.localeYear()), i.push(e.localeMonth("2-digit"))), ["full", "datetime", "date", "year", "month", "day"].indexOf(this.type) !== -1 && i.push(e.localeDay("2-digit")), ["full", "datetime", "time", "hour", "minute", "second"].indexOf(this.type) !== -1 && (r = e.locale("time"))), `${i.join("-")}${r ? `T${r}${t ? e.getTimeZone() : ""}` : ""}`;
2489
2527
  }
2490
2528
  /**
2491
2529
  * Change the date completely.
@@ -2495,7 +2533,7 @@ class ct {
2495
2533
  * целочисленное значение, представляющее число
2496
2534
  */
2497
2535
  setDate(t) {
2498
- return this.date = B(t), this.update(), this;
2536
+ return this.date = F(t), this.update(), this;
2499
2537
  }
2500
2538
  /**
2501
2539
  * Change the type of data output.
@@ -2918,7 +2956,7 @@ class ct {
2918
2956
  ), this;
2919
2957
  }
2920
2958
  }
2921
- class Ae {
2959
+ class Be {
2922
2960
  /**
2923
2961
  * Constructor
2924
2962
  * @param element HTML element to capture/ HTML элемент для захвата
@@ -2934,32 +2972,32 @@ class Ae {
2934
2972
  take() {
2935
2973
  return new Promise((t, e) => {
2936
2974
  const {
2937
- width: s,
2938
- height: n
2975
+ width: i,
2976
+ height: r
2939
2977
  } = this.element.getBoundingClientRect();
2940
- if (s === 0 || n === 0)
2978
+ if (i === 0 || r === 0)
2941
2979
  return e(new Error("Element has no dimensions"));
2942
2980
  const o = document.createElement("canvas"), a = o.getContext("2d");
2943
2981
  if (!a)
2944
2982
  return e(new Error("Could not get canvas context"));
2945
2983
  const u = window.devicePixelRatio || 1;
2946
- o.width = s * u, o.height = n * u, o.style.width = `${s}px`, o.style.height = `${n}px`, a.scale(u, u);
2947
- const h = this.getStyles(), g = this.element.outerHTML, d = `
2948
- <svg xmlns="http://www.w3.org/2000/svg" width="${s}" height="${n}">
2984
+ o.width = i * u, o.height = r * u, o.style.width = `${i}px`, o.style.height = `${r}px`, a.scale(u, u);
2985
+ const h = this.getStyles(), f = this.element.outerHTML, d = `
2986
+ <svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="${r}">
2949
2987
  <foreignObject x="0" y="0" width="100%" height="100%">
2950
2988
  <style>${h}</style>
2951
- <div xmlns="http://www.w3.org/1999/xhtml">${g}</div>
2989
+ <div xmlns="http://www.w3.org/1999/xhtml">${f}</div>
2952
2990
  </foreignObject>
2953
2991
  </svg>
2954
- `, v = new Image(), P = "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(d)));
2955
- v.onload = () => {
2956
- a.drawImage(v, 0, 0, s, n), t(o.toDataURL("image/png"));
2957
- }, v.onerror = (G) => {
2992
+ `, y = new Image(), W = "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(d)));
2993
+ y.onload = () => {
2994
+ a.drawImage(y, 0, 0, i, r), t(o.toDataURL("image/png"));
2995
+ }, y.onerror = (x) => {
2958
2996
  console.error("Screenshot failed", {
2959
- error: G,
2997
+ error: x,
2960
2998
  svg: d
2961
2999
  }), e(new Error("Failed to load SVG image for screenshot. See console for details."));
2962
- }, v.src = P;
3000
+ }, y.src = W;
2963
3001
  });
2964
3002
  }
2965
3003
  /**
@@ -2969,8 +3007,8 @@ class Ae {
2969
3007
  * @param filename name of the file to download/ имя файла для скачивания
2970
3008
  */
2971
3009
  async download(t = "screenshot.png") {
2972
- const e = await this.take(), s = document.createElement("a");
2973
- s.href = e, s.download = t, document.body.appendChild(s), s.click(), document.body.removeChild(s);
3010
+ const e = await this.take(), i = document.createElement("a");
3011
+ i.href = e, i.download = t, document.body.appendChild(i), i.click(), document.body.removeChild(i);
2974
3012
  }
2975
3013
  /**
2976
3014
  * Gathers all CSS styles from the document's stylesheets.
@@ -2982,10 +3020,10 @@ class Ae {
2982
3020
  try {
2983
3021
  for (const e of Array.from(document.styleSheets))
2984
3022
  try {
2985
- for (const s of Array.from(e.cssRules))
2986
- t += s.cssText;
2987
- } catch (s) {
2988
- console.warn("Could not read CSS rules from a stylesheet due to CORS.", s);
3023
+ for (const i of Array.from(e.cssRules))
3024
+ t += i.cssText;
3025
+ } catch (i) {
3026
+ console.warn("Could not read CSS rules from a stylesheet due to CORS.", i);
2989
3027
  }
2990
3028
  } catch (e) {
2991
3029
  console.error("Could not access stylesheets.", e);
@@ -2993,7 +3031,7 @@ class Ae {
2993
3031
  return t;
2994
3032
  }
2995
3033
  }
2996
- const r = "f", U = class U {
3034
+ const n = "f", j = class j {
2997
3035
  /**
2998
3036
  * Constructor
2999
3037
  * @param code country and language code/ код страны и языка
@@ -3008,16 +3046,16 @@ const r = "f", U = class U {
3008
3046
  * @param code country code/ код страны
3009
3047
  */
3010
3048
  get(t = this.code) {
3011
- var s;
3049
+ var i;
3012
3050
  const e = w.find(t);
3013
3051
  if (e) {
3014
- const n = this.getCountry(e);
3052
+ const r = this.getCountry(e);
3015
3053
  return {
3016
3054
  language: this.getLanguage(e),
3017
- country: n,
3055
+ country: r,
3018
3056
  standard: e.standard,
3019
- icon: (s = U.flags) == null ? void 0 : s[e.country],
3020
- label: n,
3057
+ icon: (i = j.flags) == null ? void 0 : i[e.country],
3058
+ label: r,
3021
3059
  value: e.country
3022
3060
  };
3023
3061
  }
@@ -3039,7 +3077,7 @@ const r = "f", U = class U {
3039
3077
  * @param codes country code/ код страны
3040
3078
  */
3041
3079
  getList(t) {
3042
- return f(this.getCodes(t), (e) => this.get(e));
3080
+ return g(this.getCodes(t), (e) => this.get(e));
3043
3081
  }
3044
3082
  /**
3045
3083
  * Getting a list of countries by an array of codes in national language.
@@ -3048,13 +3086,13 @@ const r = "f", U = class U {
3048
3086
  * @param codes country code/ код страны.
3049
3087
  */
3050
3088
  getNational(t) {
3051
- return f(this.getList(t), (e) => {
3052
- const s = new U(e.standard).get(e.standard);
3089
+ return g(this.getList(t), (e) => {
3090
+ const i = new j(e.standard).get(e.standard);
3053
3091
  return {
3054
3092
  ...e,
3055
- description: s == null ? void 0 : s.country,
3056
- nationalLanguage: s == null ? void 0 : s.language,
3057
- nationalCountry: s == null ? void 0 : s.country
3093
+ description: i == null ? void 0 : i.country,
3094
+ nationalLanguage: i == null ? void 0 : i.language,
3095
+ nationalCountry: i == null ? void 0 : i.country
3058
3096
  };
3059
3097
  });
3060
3098
  }
@@ -3082,7 +3120,7 @@ const r = "f", U = class U {
3082
3120
  * @param codes country code/ код страны
3083
3121
  */
3084
3122
  getCodes(t) {
3085
- return t != null ? t : Object.keys(U.flags);
3123
+ return t != null ? t : Object.keys(j.flags);
3086
3124
  }
3087
3125
  /**
3088
3126
  * Getting the name of the language.
@@ -3103,251 +3141,251 @@ const r = "f", U = class U {
3103
3141
  return this.getLocation().countryName(t.country);
3104
3142
  }
3105
3143
  };
3106
- c(U, "flags", {
3107
- AD: `${r}-ad`,
3108
- AE: `${r}-ae`,
3109
- AF: `${r}-af`,
3110
- AG: `${r}-ag`,
3111
- AI: `${r}-ai`,
3112
- AL: `${r}-al`,
3113
- AM: `${r}-am`,
3114
- AN: `${r}-an`,
3115
- AO: `${r}-ao`,
3116
- AQ: `${r}-aq`,
3117
- AR: `${r}-ar`,
3118
- AS: `${r}-as`,
3119
- AT: `${r}-at`,
3120
- AU: `${r}-au`,
3121
- AW: `${r}-aw`,
3122
- AZ: `${r}-az`,
3123
- BA: `${r}-ba`,
3124
- BB: `${r}-bb`,
3125
- BD: `${r}-bd`,
3126
- BE: `${r}-be`,
3127
- BF: `${r}-bf`,
3128
- BG: `${r}-bg`,
3129
- BH: `${r}-bh`,
3130
- BI: `${r}-bi`,
3131
- BJ: `${r}-bj`,
3132
- BL: `${r}-bl`,
3133
- BM: `${r}-bm`,
3134
- BN: `${r}-bn`,
3135
- BO: `${r}-bo`,
3136
- BR: `${r}-br`,
3137
- BS: `${r}-bs`,
3138
- BT: `${r}-bt`,
3139
- BW: `${r}-bw`,
3140
- BY: `${r}-by`,
3141
- BZ: `${r}-bz`,
3142
- CA: `${r}-ca`,
3143
- CC: `${r}-cc`,
3144
- CD: `${r}-cd`,
3145
- CF: `${r}-cf`,
3146
- CG: `${r}-cg`,
3147
- CH: `${r}-ch`,
3148
- CI: `${r}-ci`,
3149
- CK: `${r}-ck`,
3150
- CL: `${r}-cl`,
3151
- CM: `${r}-cm`,
3152
- CN: `${r}-cn`,
3153
- CO: `${r}-co`,
3154
- CR: `${r}-cr`,
3155
- CU: `${r}-cu`,
3156
- CV: `${r}-cv`,
3157
- CW: `${r}-cw`,
3158
- CX: `${r}-cx`,
3159
- CY: `${r}-cy`,
3160
- CZ: `${r}-cz`,
3161
- DE: `${r}-de`,
3162
- DJ: `${r}-dj`,
3163
- DK: `${r}-dk`,
3164
- DM: `${r}-dm`,
3165
- DZ: `${r}-dz`,
3166
- EC: `${r}-ec`,
3167
- EE: `${r}-ee`,
3168
- EG: `${r}-eg`,
3169
- EH: `${r}-eh`,
3170
- ER: `${r}-er`,
3171
- ES: `${r}-es`,
3172
- ET: `${r}-et`,
3173
- FI: `${r}-fi`,
3174
- FJ: `${r}-fj`,
3175
- FK: `${r}-fk`,
3176
- FM: `${r}-fm`,
3177
- FO: `${r}-fo`,
3178
- FR: `${r}-fr`,
3179
- GA: `${r}-ga`,
3180
- GB: `${r}-gb`,
3181
- GD: `${r}-gd`,
3182
- GE: `${r}-ge`,
3183
- GF: `${r}-gf`,
3184
- GG: `${r}-gg`,
3185
- GH: `${r}-gh`,
3186
- GI: `${r}-gi`,
3187
- GL: `${r}-gl`,
3188
- GM: `${r}-gm`,
3189
- GN: `${r}-gn`,
3190
- GQ: `${r}-gq`,
3191
- GR: `${r}-gr`,
3192
- GT: `${r}-gt`,
3193
- GU: `${r}-gu`,
3194
- GW: `${r}-gw`,
3195
- GY: `${r}-gy`,
3196
- HK: `${r}-hk`,
3197
- HN: `${r}-hn`,
3198
- HR: `${r}-hr`,
3199
- HT: `${r}-ht`,
3200
- HU: `${r}-hu`,
3201
- ID: `${r}-id`,
3202
- IE: `${r}-ie`,
3203
- IL: `${r}-il`,
3204
- IM: `${r}-im`,
3205
- IN: `${r}-in`,
3206
- IO: `${r}-io`,
3207
- IQ: `${r}-iq`,
3208
- IR: `${r}-ir`,
3209
- IS: `${r}-is`,
3210
- IT: `${r}-it`,
3211
- JE: `${r}-je`,
3212
- JM: `${r}-jm`,
3213
- JO: `${r}-jo`,
3214
- JP: `${r}-jp`,
3215
- KE: `${r}-ke`,
3216
- KG: `${r}-kg`,
3217
- KH: `${r}-kh`,
3218
- KI: `${r}-ki`,
3219
- KM: `${r}-km`,
3220
- KN: `${r}-kn`,
3221
- KP: `${r}-kp`,
3222
- KR: `${r}-kr`,
3223
- KW: `${r}-kw`,
3224
- KY: `${r}-ky`,
3225
- KZ: `${r}-kz`,
3226
- LA: `${r}-la`,
3227
- LB: `${r}-lb`,
3228
- LC: `${r}-lc`,
3229
- LI: `${r}-li`,
3230
- LK: `${r}-lk`,
3231
- LR: `${r}-lr`,
3232
- LS: `${r}-ls`,
3233
- LT: `${r}-lt`,
3234
- LU: `${r}-lu`,
3235
- LV: `${r}-lv`,
3236
- LY: `${r}-ly`,
3237
- MA: `${r}-ma`,
3238
- MC: `${r}-mc`,
3239
- MD: `${r}-md`,
3240
- ME: `${r}-me`,
3241
- MF: `${r}-mf`,
3242
- MG: `${r}-mg`,
3243
- MH: `${r}-mh`,
3244
- MK: `${r}-mk`,
3245
- ML: `${r}-ml`,
3246
- MM: `${r}-mm`,
3247
- MN: `${r}-mn`,
3248
- MO: `${r}-mo`,
3249
- MP: `${r}-mp`,
3250
- MQ: `${r}-mq`,
3251
- MR: `${r}-mr`,
3252
- MS: `${r}-ms`,
3253
- MT: `${r}-mt`,
3254
- MU: `${r}-mu`,
3255
- MV: `${r}-mv`,
3256
- MW: `${r}-mw`,
3257
- MX: `${r}-mx`,
3258
- MY: `${r}-my`,
3259
- MZ: `${r}-mz`,
3260
- NA: `${r}-na`,
3261
- NC: `${r}-nc`,
3262
- NE: `${r}-ne`,
3263
- NF: `${r}-nf`,
3264
- NG: `${r}-ng`,
3265
- NI: `${r}-ni`,
3266
- NL: `${r}-nl`,
3267
- NO: `${r}-no`,
3268
- NP: `${r}-np`,
3269
- NR: `${r}-nr`,
3270
- NU: `${r}-nu`,
3271
- NZ: `${r}-nz`,
3272
- OM: `${r}-om`,
3273
- PA: `${r}-pa`,
3274
- PE: `${r}-pe`,
3275
- PF: `${r}-pf`,
3276
- PG: `${r}-pg`,
3277
- PH: `${r}-ph`,
3278
- PK: `${r}-pk`,
3279
- PL: `${r}-pl`,
3280
- PM: `${r}-pm`,
3281
- PN: `${r}-pn`,
3282
- PR: `${r}-pr`,
3283
- PS: `${r}-ps`,
3284
- PT: `${r}-pt`,
3285
- PW: `${r}-pw`,
3286
- PY: `${r}-py`,
3287
- QA: `${r}-qa`,
3288
- RE: `${r}-re`,
3289
- RO: `${r}-ro`,
3290
- RS: `${r}-rs`,
3291
- RU: `${r}-ru`,
3292
- RW: `${r}-rw`,
3293
- SA: `${r}-sa`,
3294
- SB: `${r}-sb`,
3295
- SC: `${r}-sc`,
3296
- SD: `${r}-sd`,
3297
- SE: `${r}-se`,
3298
- SG: `${r}-sg`,
3299
- SH: `${r}-sh`,
3300
- SI: `${r}-si`,
3301
- SJ: `${r}-sj`,
3302
- SK: `${r}-sk`,
3303
- SL: `${r}-sl`,
3304
- SM: `${r}-sm`,
3305
- SN: `${r}-sn`,
3306
- SO: `${r}-so`,
3307
- SR: `${r}-sr`,
3308
- SS: `${r}-ss`,
3309
- ST: `${r}-st`,
3310
- SV: `${r}-sv`,
3311
- SX: `${r}-sx`,
3312
- SY: `${r}-sy`,
3313
- SZ: `${r}-sz`,
3314
- TC: `${r}-tc`,
3315
- TD: `${r}-td`,
3316
- TG: `${r}-tg`,
3317
- TH: `${r}-th`,
3318
- TJ: `${r}-tj`,
3319
- TK: `${r}-tk`,
3320
- TL: `${r}-tl`,
3321
- TM: `${r}-tm`,
3322
- TN: `${r}-tn`,
3323
- TO: `${r}-to`,
3324
- TR: `${r}-tr`,
3325
- TT: `${r}-tt`,
3326
- TV: `${r}-tv`,
3327
- TW: `${r}-tw`,
3328
- TZ: `${r}-tz`,
3329
- UA: `${r}-ua`,
3330
- UG: `${r}-ug`,
3331
- US: `${r}-us`,
3332
- UY: `${r}-uy`,
3333
- UZ: `${r}-uz`,
3334
- VA: `${r}-va`,
3335
- VC: `${r}-vc`,
3336
- VE: `${r}-ve`,
3337
- VG: `${r}-vg`,
3338
- VI: `${r}-vi`,
3339
- VN: `${r}-vn`,
3340
- VU: `${r}-vu`,
3341
- WF: `${r}-wf`,
3342
- WS: `${r}-ws`,
3343
- YE: `${r}-ye`,
3344
- YT: `${r}-yt`,
3345
- ZA: `${r}-za`,
3346
- ZM: `${r}-zm`,
3347
- ZW: `${r}-zw`
3144
+ c(j, "flags", {
3145
+ AD: `${n}-ad`,
3146
+ AE: `${n}-ae`,
3147
+ AF: `${n}-af`,
3148
+ AG: `${n}-ag`,
3149
+ AI: `${n}-ai`,
3150
+ AL: `${n}-al`,
3151
+ AM: `${n}-am`,
3152
+ AN: `${n}-an`,
3153
+ AO: `${n}-ao`,
3154
+ AQ: `${n}-aq`,
3155
+ AR: `${n}-ar`,
3156
+ AS: `${n}-as`,
3157
+ AT: `${n}-at`,
3158
+ AU: `${n}-au`,
3159
+ AW: `${n}-aw`,
3160
+ AZ: `${n}-az`,
3161
+ BA: `${n}-ba`,
3162
+ BB: `${n}-bb`,
3163
+ BD: `${n}-bd`,
3164
+ BE: `${n}-be`,
3165
+ BF: `${n}-bf`,
3166
+ BG: `${n}-bg`,
3167
+ BH: `${n}-bh`,
3168
+ BI: `${n}-bi`,
3169
+ BJ: `${n}-bj`,
3170
+ BL: `${n}-bl`,
3171
+ BM: `${n}-bm`,
3172
+ BN: `${n}-bn`,
3173
+ BO: `${n}-bo`,
3174
+ BR: `${n}-br`,
3175
+ BS: `${n}-bs`,
3176
+ BT: `${n}-bt`,
3177
+ BW: `${n}-bw`,
3178
+ BY: `${n}-by`,
3179
+ BZ: `${n}-bz`,
3180
+ CA: `${n}-ca`,
3181
+ CC: `${n}-cc`,
3182
+ CD: `${n}-cd`,
3183
+ CF: `${n}-cf`,
3184
+ CG: `${n}-cg`,
3185
+ CH: `${n}-ch`,
3186
+ CI: `${n}-ci`,
3187
+ CK: `${n}-ck`,
3188
+ CL: `${n}-cl`,
3189
+ CM: `${n}-cm`,
3190
+ CN: `${n}-cn`,
3191
+ CO: `${n}-co`,
3192
+ CR: `${n}-cr`,
3193
+ CU: `${n}-cu`,
3194
+ CV: `${n}-cv`,
3195
+ CW: `${n}-cw`,
3196
+ CX: `${n}-cx`,
3197
+ CY: `${n}-cy`,
3198
+ CZ: `${n}-cz`,
3199
+ DE: `${n}-de`,
3200
+ DJ: `${n}-dj`,
3201
+ DK: `${n}-dk`,
3202
+ DM: `${n}-dm`,
3203
+ DZ: `${n}-dz`,
3204
+ EC: `${n}-ec`,
3205
+ EE: `${n}-ee`,
3206
+ EG: `${n}-eg`,
3207
+ EH: `${n}-eh`,
3208
+ ER: `${n}-er`,
3209
+ ES: `${n}-es`,
3210
+ ET: `${n}-et`,
3211
+ FI: `${n}-fi`,
3212
+ FJ: `${n}-fj`,
3213
+ FK: `${n}-fk`,
3214
+ FM: `${n}-fm`,
3215
+ FO: `${n}-fo`,
3216
+ FR: `${n}-fr`,
3217
+ GA: `${n}-ga`,
3218
+ GB: `${n}-gb`,
3219
+ GD: `${n}-gd`,
3220
+ GE: `${n}-ge`,
3221
+ GF: `${n}-gf`,
3222
+ GG: `${n}-gg`,
3223
+ GH: `${n}-gh`,
3224
+ GI: `${n}-gi`,
3225
+ GL: `${n}-gl`,
3226
+ GM: `${n}-gm`,
3227
+ GN: `${n}-gn`,
3228
+ GQ: `${n}-gq`,
3229
+ GR: `${n}-gr`,
3230
+ GT: `${n}-gt`,
3231
+ GU: `${n}-gu`,
3232
+ GW: `${n}-gw`,
3233
+ GY: `${n}-gy`,
3234
+ HK: `${n}-hk`,
3235
+ HN: `${n}-hn`,
3236
+ HR: `${n}-hr`,
3237
+ HT: `${n}-ht`,
3238
+ HU: `${n}-hu`,
3239
+ ID: `${n}-id`,
3240
+ IE: `${n}-ie`,
3241
+ IL: `${n}-il`,
3242
+ IM: `${n}-im`,
3243
+ IN: `${n}-in`,
3244
+ IO: `${n}-io`,
3245
+ IQ: `${n}-iq`,
3246
+ IR: `${n}-ir`,
3247
+ IS: `${n}-is`,
3248
+ IT: `${n}-it`,
3249
+ JE: `${n}-je`,
3250
+ JM: `${n}-jm`,
3251
+ JO: `${n}-jo`,
3252
+ JP: `${n}-jp`,
3253
+ KE: `${n}-ke`,
3254
+ KG: `${n}-kg`,
3255
+ KH: `${n}-kh`,
3256
+ KI: `${n}-ki`,
3257
+ KM: `${n}-km`,
3258
+ KN: `${n}-kn`,
3259
+ KP: `${n}-kp`,
3260
+ KR: `${n}-kr`,
3261
+ KW: `${n}-kw`,
3262
+ KY: `${n}-ky`,
3263
+ KZ: `${n}-kz`,
3264
+ LA: `${n}-la`,
3265
+ LB: `${n}-lb`,
3266
+ LC: `${n}-lc`,
3267
+ LI: `${n}-li`,
3268
+ LK: `${n}-lk`,
3269
+ LR: `${n}-lr`,
3270
+ LS: `${n}-ls`,
3271
+ LT: `${n}-lt`,
3272
+ LU: `${n}-lu`,
3273
+ LV: `${n}-lv`,
3274
+ LY: `${n}-ly`,
3275
+ MA: `${n}-ma`,
3276
+ MC: `${n}-mc`,
3277
+ MD: `${n}-md`,
3278
+ ME: `${n}-me`,
3279
+ MF: `${n}-mf`,
3280
+ MG: `${n}-mg`,
3281
+ MH: `${n}-mh`,
3282
+ MK: `${n}-mk`,
3283
+ ML: `${n}-ml`,
3284
+ MM: `${n}-mm`,
3285
+ MN: `${n}-mn`,
3286
+ MO: `${n}-mo`,
3287
+ MP: `${n}-mp`,
3288
+ MQ: `${n}-mq`,
3289
+ MR: `${n}-mr`,
3290
+ MS: `${n}-ms`,
3291
+ MT: `${n}-mt`,
3292
+ MU: `${n}-mu`,
3293
+ MV: `${n}-mv`,
3294
+ MW: `${n}-mw`,
3295
+ MX: `${n}-mx`,
3296
+ MY: `${n}-my`,
3297
+ MZ: `${n}-mz`,
3298
+ NA: `${n}-na`,
3299
+ NC: `${n}-nc`,
3300
+ NE: `${n}-ne`,
3301
+ NF: `${n}-nf`,
3302
+ NG: `${n}-ng`,
3303
+ NI: `${n}-ni`,
3304
+ NL: `${n}-nl`,
3305
+ NO: `${n}-no`,
3306
+ NP: `${n}-np`,
3307
+ NR: `${n}-nr`,
3308
+ NU: `${n}-nu`,
3309
+ NZ: `${n}-nz`,
3310
+ OM: `${n}-om`,
3311
+ PA: `${n}-pa`,
3312
+ PE: `${n}-pe`,
3313
+ PF: `${n}-pf`,
3314
+ PG: `${n}-pg`,
3315
+ PH: `${n}-ph`,
3316
+ PK: `${n}-pk`,
3317
+ PL: `${n}-pl`,
3318
+ PM: `${n}-pm`,
3319
+ PN: `${n}-pn`,
3320
+ PR: `${n}-pr`,
3321
+ PS: `${n}-ps`,
3322
+ PT: `${n}-pt`,
3323
+ PW: `${n}-pw`,
3324
+ PY: `${n}-py`,
3325
+ QA: `${n}-qa`,
3326
+ RE: `${n}-re`,
3327
+ RO: `${n}-ro`,
3328
+ RS: `${n}-rs`,
3329
+ RU: `${n}-ru`,
3330
+ RW: `${n}-rw`,
3331
+ SA: `${n}-sa`,
3332
+ SB: `${n}-sb`,
3333
+ SC: `${n}-sc`,
3334
+ SD: `${n}-sd`,
3335
+ SE: `${n}-se`,
3336
+ SG: `${n}-sg`,
3337
+ SH: `${n}-sh`,
3338
+ SI: `${n}-si`,
3339
+ SJ: `${n}-sj`,
3340
+ SK: `${n}-sk`,
3341
+ SL: `${n}-sl`,
3342
+ SM: `${n}-sm`,
3343
+ SN: `${n}-sn`,
3344
+ SO: `${n}-so`,
3345
+ SR: `${n}-sr`,
3346
+ SS: `${n}-ss`,
3347
+ ST: `${n}-st`,
3348
+ SV: `${n}-sv`,
3349
+ SX: `${n}-sx`,
3350
+ SY: `${n}-sy`,
3351
+ SZ: `${n}-sz`,
3352
+ TC: `${n}-tc`,
3353
+ TD: `${n}-td`,
3354
+ TG: `${n}-tg`,
3355
+ TH: `${n}-th`,
3356
+ TJ: `${n}-tj`,
3357
+ TK: `${n}-tk`,
3358
+ TL: `${n}-tl`,
3359
+ TM: `${n}-tm`,
3360
+ TN: `${n}-tn`,
3361
+ TO: `${n}-to`,
3362
+ TR: `${n}-tr`,
3363
+ TT: `${n}-tt`,
3364
+ TV: `${n}-tv`,
3365
+ TW: `${n}-tw`,
3366
+ TZ: `${n}-tz`,
3367
+ UA: `${n}-ua`,
3368
+ UG: `${n}-ug`,
3369
+ US: `${n}-us`,
3370
+ UY: `${n}-uy`,
3371
+ UZ: `${n}-uz`,
3372
+ VA: `${n}-va`,
3373
+ VC: `${n}-vc`,
3374
+ VE: `${n}-ve`,
3375
+ VG: `${n}-vg`,
3376
+ VI: `${n}-vi`,
3377
+ VN: `${n}-vn`,
3378
+ VU: `${n}-vu`,
3379
+ WF: `${n}-wf`,
3380
+ WS: `${n}-ws`,
3381
+ YE: `${n}-ye`,
3382
+ YT: `${n}-yt`,
3383
+ ZA: `${n}-za`,
3384
+ ZM: `${n}-zm`,
3385
+ ZW: `${n}-zw`
3348
3386
  });
3349
- let wt = U;
3350
- const j = class j {
3387
+ let vt = j;
3388
+ const H = class H {
3351
3389
  /**
3352
3390
  * Getting an object with information about the phone code and country.
3353
3391
  *
@@ -3364,13 +3402,13 @@ const j = class j {
3364
3402
  * @param phone phone number/ номер телефон
3365
3403
  */
3366
3404
  static getByPhone(t) {
3367
- let e = this.map, s, n = "";
3405
+ let e = this.map, i, r = "";
3368
3406
  return this.toNumber(t).forEach((o) => {
3369
3407
  var a;
3370
- n === "" && o in e ? (s = e[o], e = (a = s == null ? void 0 : s.next) != null ? a : {}) : n += o;
3408
+ r === "" && o in e ? (i = e[o], e = (a = i == null ? void 0 : i.next) != null ? a : {}) : r += o;
3371
3409
  }), {
3372
- item: s,
3373
- phone: n
3410
+ item: i,
3411
+ phone: r
3374
3412
  };
3375
3413
  }
3376
3414
  /**
@@ -3380,10 +3418,10 @@ const j = class j {
3380
3418
  * @param code country and language code/ код страны и языка
3381
3419
  */
3382
3420
  static getByCode(t) {
3383
- var s;
3421
+ var i;
3384
3422
  const e = this.get(t);
3385
3423
  if (e)
3386
- return (s = this.getByPhone(e.phone.toString())) == null ? void 0 : s.item;
3424
+ return (i = this.getByPhone(e.phone.toString())) == null ? void 0 : i.item;
3387
3425
  }
3388
3426
  /**
3389
3427
  * We get an array from a list of all phone numbers.
@@ -3409,11 +3447,11 @@ const j = class j {
3409
3447
  * @param masks a mask to transform a phone number/ маска для преобразования номер телефон
3410
3448
  */
3411
3449
  static toMask(t, e) {
3412
- if (L(t) && Array.isArray(e) && e.length > 0) {
3413
- const s = this.removeZero(t), n = s.length;
3450
+ if (S(t) && Array.isArray(e) && e.length > 0) {
3451
+ const i = this.removeZero(t), r = i.length;
3414
3452
  for (const o of e)
3415
- if (this.getUnnecessaryLength(o) === n)
3416
- return this.toStandard(s, o);
3453
+ if (this.getUnnecessaryLength(o) === r)
3454
+ return this.toStandard(i, o);
3417
3455
  }
3418
3456
  }
3419
3457
  /**
@@ -3457,16 +3495,16 @@ const j = class j {
3457
3495
  * Формирование списка для карты.
3458
3496
  */
3459
3497
  static makeList() {
3460
- const t = f(w.getList(), (e) => {
3498
+ const t = g(w.getList(), (e) => {
3461
3499
  if (e != null && e.phoneMask)
3462
3500
  return {
3463
3501
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/, "")) || void 0,
3464
3502
  within: (e == null ? void 0 : e.phoneWithin) || 0,
3465
- mask: Z(e.phoneMask),
3503
+ mask: V(e.phoneMask),
3466
3504
  value: e.country
3467
3505
  };
3468
3506
  });
3469
- this.list = t.sort((e, s) => e.phone - s.phone);
3507
+ this.list = t.sort((e, i) => e.phone - i.phone);
3470
3508
  }
3471
3509
  /**
3472
3510
  * Creating a map for search.
@@ -3476,21 +3514,21 @@ const j = class j {
3476
3514
  static makeMap() {
3477
3515
  this.list.forEach((t) => {
3478
3516
  t.mask.forEach((e) => {
3479
- let s = this.map, n;
3517
+ let i = this.map, r;
3480
3518
  if (this.toNumber(e).forEach((o) => {
3481
3519
  var a;
3482
- o in s || (s[o] = {
3520
+ o in i || (i[o] = {
3483
3521
  items: [],
3484
3522
  info: void 0,
3485
3523
  value: void 0,
3486
3524
  mask: [],
3487
3525
  maskFull: [],
3488
3526
  next: {}
3489
- }), n = s[o], s = (a = n == null ? void 0 : n.next) != null ? a : {};
3490
- }), n) {
3491
- n.value === void 0 && (n.info = t, n.value = t.value);
3527
+ }), r = i[o], i = (a = r == null ? void 0 : r.next) != null ? a : {};
3528
+ }), r) {
3529
+ r.value === void 0 && (r.info = t, r.value = t.value);
3492
3530
  const o = this.toWithin(e, t.within);
3493
- n.mask.push(o), n.maskFull.push(o.replace(/\d/ig, "*")), n.items.push(t);
3531
+ r.mask.push(o), r.maskFull.push(o.replace(/\d/ig, "*")), r.items.push(t);
3494
3532
  }
3495
3533
  });
3496
3534
  });
@@ -3512,8 +3550,8 @@ const j = class j {
3512
3550
  * @param mask a mask to transform a phone number/ маска для преобразования номер телефон
3513
3551
  */
3514
3552
  static toStandard(t, e) {
3515
- let s = 0;
3516
- return e.replace(/\*/ig, () => String(t[s++]));
3553
+ let i = 0;
3554
+ return e.replace(/\*/ig, () => String(t[i++]));
3517
3555
  }
3518
3556
  /**
3519
3557
  * Replaces the first character with the internal country code
@@ -3526,9 +3564,9 @@ const j = class j {
3526
3564
  return t.replace(/\*/, this.getWithinSymbol(e));
3527
3565
  }
3528
3566
  };
3529
- c(j, "list", []), c(j, "map", {}), j.makeList(), j.makeMap();
3530
- let bt = j, W;
3531
- class Ne {
3567
+ c(H, "list", []), c(H, "map", {}), H.makeList(), H.makeMap();
3568
+ let St = H, U;
3569
+ class Ie {
3532
3570
  /**
3533
3571
  * Returns the value by its name.
3534
3572
  *
@@ -3536,7 +3574,7 @@ class Ne {
3536
3574
  * @param name property name/ название свойства
3537
3575
  */
3538
3576
  static get(t) {
3539
- return W && (W == null ? void 0 : W[t]);
3577
+ return U && (U == null ? void 0 : U[t]);
3540
3578
  }
3541
3579
  /**
3542
3580
  * Adds data, this method works only once.
@@ -3545,10 +3583,10 @@ class Ne {
3545
3583
  * @param data global data/ глобальные данные
3546
3584
  */
3547
3585
  static add(t) {
3548
- W === void 0 && (W = C(t));
3586
+ U === void 0 && (U = C(t));
3549
3587
  }
3550
3588
  }
3551
- const F = class F {
3589
+ const R = class R {
3552
3590
  /**
3553
3591
  * Get data from hash.
3554
3592
  *
@@ -3567,9 +3605,9 @@ const F = class F {
3567
3605
  * @param callback value or function to change data/ значение или функция для изменения данных
3568
3606
  */
3569
3607
  static set(t, e) {
3570
- var n;
3571
- const s = I(e);
3572
- s !== ((n = this.hash) == null ? void 0 : n[t]) && (this.hash[t] = s, this.update());
3608
+ var r;
3609
+ const i = B(e);
3610
+ i !== ((r = this.hash) == null ? void 0 : r[t]) && (this.hash[t] = i, this.update());
3573
3611
  }
3574
3612
  /**
3575
3613
  * Adding an event when data is changed.
@@ -3579,8 +3617,8 @@ const F = class F {
3579
3617
  * @param callback the function is called when the data is changed/ функция вызывается при изменении данных
3580
3618
  */
3581
3619
  static addWatch(t, e) {
3582
- var s;
3583
- t in this.watch ? (s = this.watch[t]) == null || s.push(e) : this.watch[t] = [e];
3620
+ var i;
3621
+ t in this.watch ? (i = this.watch[t]) == null || i.push(e) : this.watch[t] = [e];
3584
3622
  }
3585
3623
  /**
3586
3624
  * Update hash variable from URL string.
@@ -3602,7 +3640,7 @@ const F = class F {
3602
3640
  const t = {};
3603
3641
  return location.hash.replace(
3604
3642
  /([\w-]+)[:=]([^;]+)/ig,
3605
- (...e) => (t[String(e[1])] = Bt(e[2]), "")
3643
+ (...e) => (t[String(e[1])] = Ft(e[2]), "")
3606
3644
  ), t;
3607
3645
  }
3608
3646
  /**
@@ -3611,7 +3649,7 @@ const F = class F {
3611
3649
  * Обновление строки хэша в URL.
3612
3650
  */
3613
3651
  static update() {
3614
- this.block = !0, history.replaceState(null, "", `#${Et(this.hash, "=", ";")}`), requestAnimationFrame(() => {
3652
+ this.block = !0, history.replaceState(null, "", `#${It(this.hash, "=", ";")}`), requestAnimationFrame(() => {
3615
3653
  this.block = !1;
3616
3654
  });
3617
3655
  }
@@ -3622,15 +3660,15 @@ const F = class F {
3622
3660
  * @param location fresh data/ свежий данные
3623
3661
  */
3624
3662
  static makeWatch(t) {
3625
- f(this.watch, (e, s) => {
3626
- var n;
3627
- ((n = this.hash) == null ? void 0 : n[s]) !== (t == null ? void 0 : t[s]) && e.forEach((o) => o(t[s]));
3663
+ g(this.watch, (e, i) => {
3664
+ var r;
3665
+ ((r = this.hash) == null ? void 0 : r[i]) !== (t == null ? void 0 : t[i]) && e.forEach((o) => o(t[i]));
3628
3666
  });
3629
3667
  }
3630
3668
  };
3631
- c(F, "hash", {}), c(F, "watch", {}), c(F, "block", !1), l() && (F.reload(), addEventListener("hashchange", () => F.reload()));
3632
- let vt = F;
3633
- const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3669
+ c(R, "hash", {}), c(R, "watch", {}), c(R, "block", !1), l() && (R.reload(), addEventListener("hashchange", () => R.reload()));
3670
+ let Dt = R;
3671
+ const it = "__UI_ICON", Lt = 320, Ct = "--LOAD--", q = class q {
3634
3672
  /**
3635
3673
  * Checks if the given icon is in the list of connected icons.
3636
3674
  *
@@ -3650,10 +3688,10 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3650
3688
  * @param wait waiting time for picture loading/
3651
3689
  * время ожидания загрузки картинки
3652
3690
  */
3653
- static async get(t, e = "", s = 1e3 * 60 * 3) {
3691
+ static async get(t, e = "", i = 1e3 * 60 * 3) {
3654
3692
  var o, a, u, h;
3655
- const n = (h = (u = (o = this.icons) == null ? void 0 : o[this.getName(t)]) != null ? u : (a = this.icons) == null ? void 0 : a[t]) != null ? h : `${t.replace(/^@/, e != null ? e : this.url)}.svg`;
3656
- return typeof n == "string" ? n === Dt && s > 0 ? (await this.wait(), this.get(t, e, s - St)) : n : at(n) ? await n() : await n;
3693
+ const r = (h = (u = (o = this.icons) == null ? void 0 : o[this.getName(t)]) != null ? u : (a = this.icons) == null ? void 0 : a[t]) != null ? h : `${t.replace(/^@/, e != null ? e : this.url)}.svg`;
3694
+ return typeof r == "string" ? r === Ct && i > 0 ? (await this.wait(), this.get(t, e, i - Lt)) : r : ct(r) ? await r() : await r;
3657
3695
  }
3658
3696
  /**
3659
3697
  * Returns a list of names of all registered icons.
@@ -3661,7 +3699,7 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3661
3699
  * Возвращает список названий всех зарегистрированных иконок.
3662
3700
  */
3663
3701
  static getNameList() {
3664
- return f(this.icons, (t, e) => e.replace(/^@/, ""));
3702
+ return g(this.icons, (t, e) => e.replace(/^@/, ""));
3665
3703
  }
3666
3704
  /**
3667
3705
  * Returns a global link.
@@ -3669,7 +3707,7 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3669
3707
  * Возвращает глобальную ссылку.
3670
3708
  */
3671
3709
  static getUrlGlobal() {
3672
- return `${z.isLocalhost(), ""}${this.url}`;
3710
+ return `${Z.isLocalhost(), ""}${this.url}`;
3673
3711
  }
3674
3712
  /**
3675
3713
  * Adding custom icons.
@@ -3688,7 +3726,7 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3688
3726
  * @param index icon name/ название иконки
3689
3727
  */
3690
3728
  static addLoad(t) {
3691
- this.icons[this.getName(t)] = Dt;
3729
+ this.icons[this.getName(t)] = Ct;
3692
3730
  }
3693
3731
  /**
3694
3732
  * Adding custom global icons.
@@ -3707,7 +3745,7 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3707
3745
  * @param list list of icons/ список иконки
3708
3746
  */
3709
3747
  static addByList(t) {
3710
- f(t, (e, s) => this.add(s, e));
3748
+ g(t, (e, i) => this.add(i, e));
3711
3749
  }
3712
3750
  /**
3713
3751
  * Changes the file path.
@@ -3733,42 +3771,42 @@ const st = "__UI_ICON", St = 320, Dt = "--LOAD--", q = class q {
3733
3771
  * Задержка выполнения скрипта.
3734
3772
  */
3735
3773
  static wait() {
3736
- return new Promise((t) => setTimeout(() => t(), St));
3774
+ return new Promise((t) => setTimeout(() => t(), Lt));
3737
3775
  }
3738
3776
  };
3739
- c(q, "icons", {}), c(q, "url", "/icons/"), l() && (st in window || (window[st] = {}), q.icons = window[st]);
3740
- let Lt = q;
3741
- function Ot(i, t, e) {
3742
- var s, n;
3743
- return (n = (s = N(i)) == null ? void 0 : s[t]) != null ? n : e;
3777
+ c(q, "icons", {}), c(q, "url", "/icons/"), l() && (it in window || (window[it] = {}), q.icons = window[it]);
3778
+ let kt = q;
3779
+ function Ot(s, t, e) {
3780
+ var i, r;
3781
+ return (r = (i = A(s)) == null ? void 0 : i[t]) != null ? r : e;
3744
3782
  }
3745
- function Tt(i, t, e) {
3746
- const s = N(i);
3747
- if (s) {
3748
- const n = Ot(s, t);
3749
- if (m(n) && m(e))
3750
- f(e, (o, a) => {
3751
- n[a] = I(o);
3783
+ function Tt(s, t, e) {
3784
+ const i = A(s);
3785
+ if (i) {
3786
+ const r = Ot(i, t);
3787
+ if (m(r) && m(e))
3788
+ g(e, (o, a) => {
3789
+ r[a] = B(o);
3752
3790
  });
3753
3791
  else {
3754
- const o = I(e);
3755
- !(t in s) && typeof o == "string" ? s.setAttribute(t.toString(), o) : s[t] = I(e);
3792
+ const o = B(e);
3793
+ !(t in i) && typeof o == "string" ? i.setAttribute(t.toString(), o) : i[t] = B(e);
3756
3794
  }
3757
3795
  }
3758
- return s;
3796
+ return i;
3759
3797
  }
3760
- function _(i, t = "div", e, s) {
3798
+ function O(s, t = "div", e, i) {
3761
3799
  if (!l())
3762
3800
  return;
3763
- const n = document.createElement(t);
3764
- return typeof e == "function" ? e(n) : A(e) && f(e, (o, a) => {
3765
- Tt(n, a, o);
3766
- }), i == null || i.insertBefore(n, s != null ? s : null), n;
3801
+ const r = document.createElement(t);
3802
+ return typeof e == "function" ? e(r) : N(e) && g(e, (o, a) => {
3803
+ Tt(r, a, o);
3804
+ }), s == null || s.insertBefore(r, i != null ? i : null), r;
3767
3805
  }
3768
- function Gt(i) {
3769
- return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").trim();
3806
+ function Gt(s) {
3807
+ return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").trim();
3770
3808
  }
3771
- class ut {
3809
+ class ht {
3772
3810
  /**
3773
3811
  * Creates an instance of MetaManager.
3774
3812
  *
@@ -3812,7 +3850,7 @@ class ut {
3812
3850
  * Возвращает все мета-теги в виде HTML-строки.
3813
3851
  */
3814
3852
  html() {
3815
- return f(
3853
+ return g(
3816
3854
  this.listMeta,
3817
3855
  (e) => this.toHtmlString(e)
3818
3856
  ).join("");
@@ -3834,9 +3872,9 @@ class ut {
3834
3872
  * @param metaList object with meta tag names and content / объект с именами и содержимым мета-тегов
3835
3873
  */
3836
3874
  setByList(t) {
3837
- return f(
3875
+ return g(
3838
3876
  t,
3839
- (e, s) => this.set(s, String(e))
3877
+ (e, i) => this.set(i, String(e))
3840
3878
  ), this;
3841
3879
  }
3842
3880
  /**
@@ -3876,13 +3914,13 @@ class ut {
3876
3914
  * @param name meta tag name / имя мета-тега
3877
3915
  */
3878
3916
  setMeta(t) {
3879
- var n;
3880
- const e = this.findMetaElement(t), s = (n = this.items[t]) != null ? n : "";
3917
+ var r;
3918
+ const e = this.findMetaElement(t), i = (r = this.items[t]) != null ? r : "";
3881
3919
  if (e)
3882
- e.content = s;
3920
+ e.content = i;
3883
3921
  else if (l()) {
3884
- const o = { content: s };
3885
- this.isProperty ? o.property = t : o.name = t, _(document.head, "meta", o);
3922
+ const o = { content: i };
3923
+ this.isProperty ? o.property = t : o.name = t, O(document.head, "meta", o);
3886
3924
  }
3887
3925
  return this;
3888
3926
  }
@@ -3893,8 +3931,8 @@ class ut {
3893
3931
  * @param name meta tag name / имя мета-тега
3894
3932
  */
3895
3933
  toHtmlString(t) {
3896
- var s;
3897
- const e = Gt((s = this.items[t]) != null ? s : "");
3934
+ var i;
3935
+ const e = Gt((i = this.items[t]) != null ? i : "");
3898
3936
  return e ? `<meta ${this.getAttributeName()}="${t}" content="${e}">` : "";
3899
3937
  }
3900
3938
  /**
@@ -3904,15 +3942,15 @@ class ut {
3904
3942
  */
3905
3943
  update() {
3906
3944
  return this.listMeta.forEach((t) => {
3907
- var e, s;
3908
- this.items[t] = (s = (e = this.findMetaElement(t)) == null ? void 0 : e.content) != null ? s : "";
3945
+ var e, i;
3946
+ this.items[t] = (i = (e = this.findMetaElement(t)) == null ? void 0 : e.content) != null ? i : "";
3909
3947
  }), this;
3910
3948
  }
3911
3949
  }
3912
- var S = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(S || {}), te = /* @__PURE__ */ ((i) => (i.indexFollow = "index, follow", i.noIndexFollow = "noindex, follow", i.indexNoFollow = "index, nofollow", i.noIndexNoFollow = "noindex, nofollow", i.noArchive = "noarchive", i.noSnippet = "nosnippet", i.noImageIndex = "noimageindex", i.images = "images", i.noTranslate = "notranslate", i.noPreview = "nopreview", i.textOnly = "textonly", i.noIndexSubpages = "noindex, noarchive", i.none = "none", i))(te || {}), y = /* @__PURE__ */ ((i) => (i.title = "og:title", i.type = "og:type", i.url = "og:url", i.image = "og:image", i.description = "og:description", i.locale = "og:locale", i.siteName = "og:site_name", i.localeAlternate = "og:locale:alternate", i.imageUrl = "og:image:url", i.imageSecureUrl = "og:image:secure_url", i.imageType = "og:image:type", i.imageWidth = "og:image:width", i.imageHeight = "og:image:height", i.imageAlt = "og:image:alt", i.video = "og:video", i.videoUrl = "og:video:url", i.videoSecureUrl = "og:video:secure_url", i.videoType = "og:video:type", i.videoWidth = "og:video:width", i.videoHeight = "og:video:height", i.audio = "og:audio", i.audioSecureUrl = "og:audio:secure_url", i.audioType = "og:audio:type", i.articlePublishedTime = "article:published_time", i.articleModifiedTime = "article:modified_time", i.articleExpirationTime = "article:expiration_time", i.articleAuthor = "article:author", i.articleSection = "article:section", i.articleTag = "article:tag", i.bookAuthor = "book:author", i.bookIsbn = "book:isbn", i.bookReleaseDate = "book:release_date", i.bookTag = "book:tag", i.musicDuration = "music:duration", i.musicAlbum = "music:album", i.musicAlbumDisc = "music:album:disc", i.musicAlbumTrack = "music:album:track", i.musicMusician = "music:musician", i.musicSong = "music:song", i.musicSongDisc = "music:song:disc", i.musicSongTrack = "music:song:track", i.musicReleaseDate = "music:release_date", i.musicCreator = "music:creator", i.videoActor = "video:actor", i.videoActorRole = "video:actor:role", i.videoDirector = "video:director", i.videoWriter = "video:writer", i.videoDuration = "video:duration", i.videoReleaseDate = "video:release_date", i.videoTag = "video:tag", i.videoSeries = "video:series", i.profileFirstName = "profile:first_name", i.profileLastName = "profile:last_name", i.profileUsername = "profile:username", i.profileGender = "profile:gender", i.productBrand = "product:brand", i.productAvailability = "product:availability", i.productCondition = "product:condition", i.productPriceAmount = "product:price:amount", i.productPriceCurrency = "product:price:currency", i.productRetailerItemId = "product:retailer_item_id", i.productCategory = "product:category", i.productEan = "product:ean", i.productIsbn = "product:isbn", i.productMfrPartNo = "product:mfr_part_no", i.productUpc = "product:upc", i.productWeightValue = "product:weight:value", i.productWeightUnits = "product:weight:units", i.productColor = "product:color", i.productMaterial = "product:material", i.productPattern = "product:pattern", i.productAgeGroup = "product:age_group", i.productGender = "product:gender", i))(y || {}), ee = /* @__PURE__ */ ((i) => (i.website = "website", i.article = "article", i.video = "video.other", i.videoTvShow = "video.tv_show", i.videoEpisode = "video.episode", i.videoMovie = "video.movie", i.musicAlbum = "music.album", i.musicPlaylist = "music.playlist", i.musicSong = "music.song", i.musicRadioStation = "music.radio_station", i.app = "app", i.product = "product", i.business = "business.business", i.place = "place", i.event = "event", i.profile = "profile", i.book = "book", i))(ee || {}), ie = /* @__PURE__ */ ((i) => (i.inStock = "in stock", i.outOfStock = "out of stock", i.preorder = "preorder", i.backorder = "backorder", i.discontinued = "discontinued", i.pending = "pending", i))(ie || {}), se = /* @__PURE__ */ ((i) => (i.new = "new", i.used = "used", i.refurbished = "refurbished", i))(se || {}), re = /* @__PURE__ */ ((i) => (i.newborn = "newborn", i.infant = "infant", i.toddler = "toddler", i.kids = "kids", i.adult = "adult", i))(re || {}), ne = /* @__PURE__ */ ((i) => (i.female = "female", i.male = "male", i.unisex = "unisex", i))(ne || {}), $ = /* @__PURE__ */ ((i) => (i.card = "twitter:card", i.site = "twitter:site", i.creator = "twitter:creator", i.url = "twitter:url", i.title = "twitter:title", i.description = "twitter:description", i.image = "twitter:image", i.imageAlt = "twitter:image:alt", i.imageSrc = "twitter:image:src", i.imageWidth = "twitter:image:width", i.imageHeight = "twitter:image:height", i.label1 = "twitter:label1", i.data1 = "twitter:data1", i.label2 = "twitter:label2", i.data2 = "twitter:data2", i.appNameIphone = "twitter:app:name:iphone", i.appIdIphone = "twitter:app:id:iphone", i.appUrlIphone = "twitter:app:url:iphone", i.appNameIpad = "twitter:app:name:ipad", i.appIdIpad = "twitter:app:id:ipad", i.appUrlIpad = "twitter:app:url:ipad", i.appNameGooglePlay = "twitter:app:name:googleplay", i.appIdGooglePlay = "twitter:app:id:googleplay", i.appUrlGooglePlay = "twitter:app:url:googleplay", i.player = "twitter:player", i.playerWidth = "twitter:player:width", i.playerHeight = "twitter:player:height", i.playerStream = "twitter:player:stream", i.playerStreamContentType = "twitter:player:stream:content_type", i))($ || {}), oe = /* @__PURE__ */ ((i) => (i.summary = "summary", i.summaryLargeImage = "summary_large_image", i.app = "app", i.player = "player", i.product = "product", i.gallery = "gallery", i.photo = "photo", i.leadGeneration = "lead_generation", i.audio = "audio", i.poll = "poll", i))(oe || {});
3913
- class ae extends ut {
3950
+ var D = /* @__PURE__ */ ((s) => (s.description = "description", s.keywords = "keywords", s.canonical = "canonical", s.robots = "robots", s.author = "author", s))(D || {}), te = /* @__PURE__ */ ((s) => (s.indexFollow = "index, follow", s.noIndexFollow = "noindex, follow", s.indexNoFollow = "index, nofollow", s.noIndexNoFollow = "noindex, nofollow", s.noArchive = "noarchive", s.noSnippet = "nosnippet", s.noImageIndex = "noimageindex", s.images = "images", s.noTranslate = "notranslate", s.noPreview = "nopreview", s.textOnly = "textonly", s.noIndexSubpages = "noindex, noarchive", s.none = "none", s))(te || {}), $ = /* @__PURE__ */ ((s) => (s.title = "og:title", s.type = "og:type", s.url = "og:url", s.image = "og:image", s.description = "og:description", s.locale = "og:locale", s.siteName = "og:site_name", s.localeAlternate = "og:locale:alternate", s.imageUrl = "og:image:url", s.imageSecureUrl = "og:image:secure_url", s.imageType = "og:image:type", s.imageWidth = "og:image:width", s.imageHeight = "og:image:height", s.imageAlt = "og:image:alt", s.video = "og:video", s.videoUrl = "og:video:url", s.videoSecureUrl = "og:video:secure_url", s.videoType = "og:video:type", s.videoWidth = "og:video:width", s.videoHeight = "og:video:height", s.audio = "og:audio", s.audioSecureUrl = "og:audio:secure_url", s.audioType = "og:audio:type", s.articlePublishedTime = "article:published_time", s.articleModifiedTime = "article:modified_time", s.articleExpirationTime = "article:expiration_time", s.articleAuthor = "article:author", s.articleSection = "article:section", s.articleTag = "article:tag", s.bookAuthor = "book:author", s.bookIsbn = "book:isbn", s.bookReleaseDate = "book:release_date", s.bookTag = "book:tag", s.musicDuration = "music:duration", s.musicAlbum = "music:album", s.musicAlbumDisc = "music:album:disc", s.musicAlbumTrack = "music:album:track", s.musicMusician = "music:musician", s.musicSong = "music:song", s.musicSongDisc = "music:song:disc", s.musicSongTrack = "music:song:track", s.musicReleaseDate = "music:release_date", s.musicCreator = "music:creator", s.videoActor = "video:actor", s.videoActorRole = "video:actor:role", s.videoDirector = "video:director", s.videoWriter = "video:writer", s.videoDuration = "video:duration", s.videoReleaseDate = "video:release_date", s.videoTag = "video:tag", s.videoSeries = "video:series", s.profileFirstName = "profile:first_name", s.profileLastName = "profile:last_name", s.profileUsername = "profile:username", s.profileGender = "profile:gender", s.productBrand = "product:brand", s.productAvailability = "product:availability", s.productCondition = "product:condition", s.productPriceAmount = "product:price:amount", s.productPriceCurrency = "product:price:currency", s.productRetailerItemId = "product:retailer_item_id", s.productCategory = "product:category", s.productEan = "product:ean", s.productIsbn = "product:isbn", s.productMfrPartNo = "product:mfr_part_no", s.productUpc = "product:upc", s.productWeightValue = "product:weight:value", s.productWeightUnits = "product:weight:units", s.productColor = "product:color", s.productMaterial = "product:material", s.productPattern = "product:pattern", s.productAgeGroup = "product:age_group", s.productGender = "product:gender", s))($ || {}), ee = /* @__PURE__ */ ((s) => (s.website = "website", s.article = "article", s.video = "video.other", s.videoTvShow = "video.tv_show", s.videoEpisode = "video.episode", s.videoMovie = "video.movie", s.musicAlbum = "music.album", s.musicPlaylist = "music.playlist", s.musicSong = "music.song", s.musicRadioStation = "music.radio_station", s.app = "app", s.product = "product", s.business = "business.business", s.place = "place", s.event = "event", s.profile = "profile", s.book = "book", s))(ee || {}), se = /* @__PURE__ */ ((s) => (s.inStock = "in stock", s.outOfStock = "out of stock", s.preorder = "preorder", s.backorder = "backorder", s.discontinued = "discontinued", s.pending = "pending", s))(se || {}), ie = /* @__PURE__ */ ((s) => (s.new = "new", s.used = "used", s.refurbished = "refurbished", s))(ie || {}), re = /* @__PURE__ */ ((s) => (s.newborn = "newborn", s.infant = "infant", s.toddler = "toddler", s.kids = "kids", s.adult = "adult", s))(re || {}), ne = /* @__PURE__ */ ((s) => (s.female = "female", s.male = "male", s.unisex = "unisex", s))(ne || {}), p = /* @__PURE__ */ ((s) => (s.card = "twitter:card", s.site = "twitter:site", s.creator = "twitter:creator", s.url = "twitter:url", s.title = "twitter:title", s.description = "twitter:description", s.image = "twitter:image", s.imageAlt = "twitter:image:alt", s.imageSrc = "twitter:image:src", s.imageWidth = "twitter:image:width", s.imageHeight = "twitter:image:height", s.label1 = "twitter:label1", s.data1 = "twitter:data1", s.label2 = "twitter:label2", s.data2 = "twitter:data2", s.appNameIphone = "twitter:app:name:iphone", s.appIdIphone = "twitter:app:id:iphone", s.appUrlIphone = "twitter:app:url:iphone", s.appNameIpad = "twitter:app:name:ipad", s.appIdIpad = "twitter:app:id:ipad", s.appUrlIpad = "twitter:app:url:ipad", s.appNameGooglePlay = "twitter:app:name:googleplay", s.appIdGooglePlay = "twitter:app:id:googleplay", s.appUrlGooglePlay = "twitter:app:url:googleplay", s.player = "twitter:player", s.playerWidth = "twitter:player:width", s.playerHeight = "twitter:player:height", s.playerStream = "twitter:player:stream", s.playerStreamContentType = "twitter:player:stream:content_type", s))(p || {}), oe = /* @__PURE__ */ ((s) => (s.summary = "summary", s.summaryLargeImage = "summary_large_image", s.app = "app", s.player = "player", s.product = "product", s.gallery = "gallery", s.photo = "photo", s.leadGeneration = "lead_generation", s.audio = "audio", s.poll = "poll", s))(oe || {});
3951
+ class ae extends ht {
3914
3952
  constructor() {
3915
- super(Object.values(y), !0);
3953
+ super(Object.values($), !0);
3916
3954
  }
3917
3955
  /**
3918
3956
  * Gets the Open Graph title.
@@ -3920,7 +3958,7 @@ class ae extends ut {
3920
3958
  * Получает заголовок Open Graph.
3921
3959
  */
3922
3960
  getTitle() {
3923
- return this.get(y.title);
3961
+ return this.get($.title);
3924
3962
  }
3925
3963
  /**
3926
3964
  * Gets the Open Graph type.
@@ -3928,7 +3966,7 @@ class ae extends ut {
3928
3966
  * Получает тип Open Graph.
3929
3967
  */
3930
3968
  getType() {
3931
- return this.get(y.type);
3969
+ return this.get($.type);
3932
3970
  }
3933
3971
  /**
3934
3972
  * Gets the Open Graph URL.
@@ -3936,7 +3974,7 @@ class ae extends ut {
3936
3974
  * Получает URL Open Graph.
3937
3975
  */
3938
3976
  getUrl() {
3939
- return this.get(y.url);
3977
+ return this.get($.url);
3940
3978
  }
3941
3979
  /**
3942
3980
  * Gets the Open Graph image URL.
@@ -3944,7 +3982,7 @@ class ae extends ut {
3944
3982
  * Получает URL изображения Open Graph.
3945
3983
  */
3946
3984
  getImage() {
3947
- return this.get(y.image);
3985
+ return this.get($.image);
3948
3986
  }
3949
3987
  /**
3950
3988
  * Gets the Open Graph description.
@@ -3952,7 +3990,7 @@ class ae extends ut {
3952
3990
  * Получает описание Open Graph.
3953
3991
  */
3954
3992
  getDescription() {
3955
- return this.get(y.description);
3993
+ return this.get($.description);
3956
3994
  }
3957
3995
  /**
3958
3996
  * Gets the Open Graph locale.
@@ -3960,7 +3998,7 @@ class ae extends ut {
3960
3998
  * Получает локаль Open Graph.
3961
3999
  */
3962
4000
  getLocale() {
3963
- return this.get(y.locale);
4001
+ return this.get($.locale);
3964
4002
  }
3965
4003
  /**
3966
4004
  * Gets the Open Graph site name.
@@ -3968,7 +4006,7 @@ class ae extends ut {
3968
4006
  * Получает название сайта Open Graph.
3969
4007
  */
3970
4008
  getSiteName() {
3971
- return this.get(y.siteName);
4009
+ return this.get($.siteName);
3972
4010
  }
3973
4011
  /**
3974
4012
  * Sets the Open Graph title.
@@ -3977,7 +4015,7 @@ class ae extends ut {
3977
4015
  * @param title title / заголовок
3978
4016
  */
3979
4017
  setTitle(t) {
3980
- return this.set(y.title, t);
4018
+ return this.set($.title, t);
3981
4019
  }
3982
4020
  /**
3983
4021
  * Sets the Open Graph type.
@@ -3986,7 +4024,7 @@ class ae extends ut {
3986
4024
  * @param type type / тип
3987
4025
  */
3988
4026
  setType(t) {
3989
- return this.set(y.type, t);
4027
+ return this.set($.type, t);
3990
4028
  }
3991
4029
  /**
3992
4030
  * Sets the Open Graph URL.
@@ -3995,7 +4033,7 @@ class ae extends ut {
3995
4033
  * @param url URL / URL
3996
4034
  */
3997
4035
  setUrl(t) {
3998
- return this.set(y.url, t);
4036
+ return this.set($.url, t);
3999
4037
  }
4000
4038
  /**
4001
4039
  * Sets the Open Graph image URL.
@@ -4004,7 +4042,7 @@ class ae extends ut {
4004
4042
  * @param url image URL / URL изображения
4005
4043
  */
4006
4044
  setImage(t) {
4007
- return this.set(y.image, t);
4045
+ return this.set($.image, t);
4008
4046
  }
4009
4047
  /**
4010
4048
  * Sets the Open Graph description.
@@ -4013,7 +4051,7 @@ class ae extends ut {
4013
4051
  * @param description description / описание
4014
4052
  */
4015
4053
  setDescription(t) {
4016
- return this.set(y.description, t);
4054
+ return this.set($.description, t);
4017
4055
  }
4018
4056
  /**
4019
4057
  * Sets the Open Graph locale.
@@ -4022,7 +4060,7 @@ class ae extends ut {
4022
4060
  * @param locale locale (e.g. 'en_US', 'ru_RU') / локаль (например, 'en_US', 'ru_RU')
4023
4061
  */
4024
4062
  setLocale(t) {
4025
- return this.set(y.locale, t);
4063
+ return this.set($.locale, t);
4026
4064
  }
4027
4065
  /**
4028
4066
  * Sets the Open Graph site name.
@@ -4031,12 +4069,12 @@ class ae extends ut {
4031
4069
  * @param siteName site name / название сайта
4032
4070
  */
4033
4071
  setSiteName(t) {
4034
- return this.set(y.siteName, t);
4072
+ return this.set($.siteName, t);
4035
4073
  }
4036
4074
  }
4037
- class ce extends ut {
4075
+ class ce extends ht {
4038
4076
  constructor() {
4039
- super(Object.values($));
4077
+ super(Object.values(p));
4040
4078
  }
4041
4079
  /**
4042
4080
  * Gets the Twitter Card type.
@@ -4044,7 +4082,7 @@ class ce extends ut {
4044
4082
  * Получает тип Twitter Card.
4045
4083
  */
4046
4084
  getCard() {
4047
- return this.get($.card);
4085
+ return this.get(p.card);
4048
4086
  }
4049
4087
  /**
4050
4088
  * Gets the website or brand @username.
@@ -4052,7 +4090,7 @@ class ce extends ut {
4052
4090
  * Получает аккаунт сайта или бренда (@username).
4053
4091
  */
4054
4092
  getSite() {
4055
- return this.get($.site);
4093
+ return this.get(p.site);
4056
4094
  }
4057
4095
  /**
4058
4096
  * Gets the content creator @username.
@@ -4060,7 +4098,7 @@ class ce extends ut {
4060
4098
  * Получает автора контента (@username).
4061
4099
  */
4062
4100
  getCreator() {
4063
- return this.get($.creator);
4101
+ return this.get(p.creator);
4064
4102
  }
4065
4103
  /**
4066
4104
  * Gets the page URL.
@@ -4068,7 +4106,7 @@ class ce extends ut {
4068
4106
  * Получает URL страницы.
4069
4107
  */
4070
4108
  getUrl() {
4071
- return this.get($.url);
4109
+ return this.get(p.url);
4072
4110
  }
4073
4111
  /**
4074
4112
  * Gets the card title.
@@ -4076,7 +4114,7 @@ class ce extends ut {
4076
4114
  * Получает заголовок карточки.
4077
4115
  */
4078
4116
  getTitle() {
4079
- return this.get($.title);
4117
+ return this.get(p.title);
4080
4118
  }
4081
4119
  /**
4082
4120
  * Gets the card description.
@@ -4084,7 +4122,7 @@ class ce extends ut {
4084
4122
  * Получает описание карточки.
4085
4123
  */
4086
4124
  getDescription() {
4087
- return this.get($.description);
4125
+ return this.get(p.description);
4088
4126
  }
4089
4127
  /**
4090
4128
  * Gets the card image URL.
@@ -4092,7 +4130,7 @@ class ce extends ut {
4092
4130
  * Получает URL изображения карточки.
4093
4131
  */
4094
4132
  getImage() {
4095
- return this.get($.image);
4133
+ return this.get(p.image);
4096
4134
  }
4097
4135
  /**
4098
4136
  * Sets the Twitter Card type.
@@ -4101,7 +4139,7 @@ class ce extends ut {
4101
4139
  * @param card card type / тип карточки
4102
4140
  */
4103
4141
  setCard(t) {
4104
- return this.set($.card, t), this;
4142
+ return this.set(p.card, t), this;
4105
4143
  }
4106
4144
  /**
4107
4145
  * Sets the website or brand @username.
@@ -4110,7 +4148,7 @@ class ce extends ut {
4110
4148
  * @param site @username / аккаунт
4111
4149
  */
4112
4150
  setSite(t) {
4113
- return this.set($.site, t), this;
4151
+ return this.set(p.site, t), this;
4114
4152
  }
4115
4153
  /**
4116
4154
  * Sets the content creator @username.
@@ -4119,7 +4157,7 @@ class ce extends ut {
4119
4157
  * @param creator @username / аккаунт автора
4120
4158
  */
4121
4159
  setCreator(t) {
4122
- return this.set($.creator, t), this;
4160
+ return this.set(p.creator, t), this;
4123
4161
  }
4124
4162
  /**
4125
4163
  * Sets the page URL.
@@ -4128,7 +4166,7 @@ class ce extends ut {
4128
4166
  * @param url URL / URL
4129
4167
  */
4130
4168
  setUrl(t) {
4131
- return this.set($.url, t), this;
4169
+ return this.set(p.url, t), this;
4132
4170
  }
4133
4171
  /**
4134
4172
  * Sets the card title.
@@ -4137,7 +4175,7 @@ class ce extends ut {
4137
4175
  * @param title title / заголовок
4138
4176
  */
4139
4177
  setTitle(t) {
4140
- return this.set($.title, t), this;
4178
+ return this.set(p.title, t), this;
4141
4179
  }
4142
4180
  /**
4143
4181
  * Sets the card description.
@@ -4146,7 +4184,7 @@ class ce extends ut {
4146
4184
  * @param description description / описание
4147
4185
  */
4148
4186
  setDescription(t) {
4149
- return this.set($.description, t), this;
4187
+ return this.set(p.description, t), this;
4150
4188
  }
4151
4189
  /**
4152
4190
  * Sets the card image URL.
@@ -4155,17 +4193,17 @@ class ce extends ut {
4155
4193
  * @param image image URL / URL изображения
4156
4194
  */
4157
4195
  setImage(t) {
4158
- return this.set($.image, t), this;
4196
+ return this.set(p.image, t), this;
4159
4197
  }
4160
4198
  }
4161
- class Ee extends ut {
4199
+ class xe extends ht {
4162
4200
  /**
4163
4201
  * Creates an instance of Meta with integrated Open Graph and Twitter Card support.
4164
4202
  *
4165
4203
  * Создает экземпляр Meta с интегрированной поддержкой Open Graph и Twitter Card.
4166
4204
  */
4167
4205
  constructor() {
4168
- super(Object.values(S));
4206
+ super(Object.values(D));
4169
4207
  c(this, "suffix");
4170
4208
  c(this, "og");
4171
4209
  c(this, "twitter");
@@ -4201,7 +4239,7 @@ class Ee extends ut {
4201
4239
  * Получает мета-тег keywords.
4202
4240
  */
4203
4241
  getKeywords() {
4204
- return this.get(S.keywords);
4242
+ return this.get(D.keywords);
4205
4243
  }
4206
4244
  /**
4207
4245
  * Gets the description meta tag.
@@ -4209,7 +4247,7 @@ class Ee extends ut {
4209
4247
  * Получает мета-тег description.
4210
4248
  */
4211
4249
  getDescription() {
4212
- return this.get(S.description);
4250
+ return this.get(D.description);
4213
4251
  }
4214
4252
  /**
4215
4253
  * Gets the Open Graph image URL.
@@ -4225,7 +4263,7 @@ class Ee extends ut {
4225
4263
  * Получает канонический URL.
4226
4264
  */
4227
4265
  getCanonical() {
4228
- return this.get(S.canonical);
4266
+ return this.get(D.canonical);
4229
4267
  }
4230
4268
  /**
4231
4269
  * Gets the robots meta tag value.
@@ -4233,7 +4271,7 @@ class Ee extends ut {
4233
4271
  * Получает значение мета-тега robots.
4234
4272
  */
4235
4273
  getRobots() {
4236
- return this.get(S.robots);
4274
+ return this.get(D.robots);
4237
4275
  }
4238
4276
  /**
4239
4277
  * Gets the author meta tag.
@@ -4241,7 +4279,7 @@ class Ee extends ut {
4241
4279
  * Получает мета-тег author.
4242
4280
  */
4243
4281
  getAuthor() {
4244
- return this.get(S.author);
4282
+ return this.get(D.author);
4245
4283
  }
4246
4284
  /**
4247
4285
  * Gets the Open Graph site name.
@@ -4267,8 +4305,8 @@ class Ee extends ut {
4267
4305
  */
4268
4306
  setTitle(e) {
4269
4307
  if (l()) {
4270
- const s = L(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
4271
- document.title = s, this.og.setTitle(s), this.twitter.setTitle(s);
4308
+ const i = S(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
4309
+ document.title = i, this.og.setTitle(i), this.twitter.setTitle(i);
4272
4310
  }
4273
4311
  return this;
4274
4312
  }
@@ -4279,7 +4317,7 @@ class Ee extends ut {
4279
4317
  * @param keywords keywords as string or array / ключевые слова в виде строки или массива
4280
4318
  */
4281
4319
  setKeywords(e) {
4282
- return this.set(S.keywords, Z(e).join(", ")), this;
4320
+ return this.set(D.keywords, V(e).join(", ")), this;
4283
4321
  }
4284
4322
  /**
4285
4323
  * Sets the description meta tag.
@@ -4288,7 +4326,7 @@ class Ee extends ut {
4288
4326
  * @param description page description / описание страницы
4289
4327
  */
4290
4328
  setDescription(e) {
4291
- return this.set(S.description, e), this;
4329
+ return this.set(D.description, e), this;
4292
4330
  }
4293
4331
  /**
4294
4332
  * Sets the image for Open Graph and Twitter Card.
@@ -4306,7 +4344,7 @@ class Ee extends ut {
4306
4344
  * @param canonical canonical URL / канонический URL
4307
4345
  */
4308
4346
  setCanonical(e) {
4309
- return this.set(S.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
4347
+ return this.set(D.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
4310
4348
  }
4311
4349
  /**
4312
4350
  * Sets the robots meta tag.
@@ -4315,7 +4353,7 @@ class Ee extends ut {
4315
4353
  * @param robots robots directive / директива robots
4316
4354
  */
4317
4355
  setRobots(e) {
4318
- return this.set(S.robots, e), this;
4356
+ return this.set(D.robots, e), this;
4319
4357
  }
4320
4358
  /**
4321
4359
  * Sets the author meta tag.
@@ -4324,7 +4362,7 @@ class Ee extends ut {
4324
4362
  * @param author author name / имя автора
4325
4363
  */
4326
4364
  setAuthor(e) {
4327
- return this.set(S.author, e), this;
4365
+ return this.set(D.author, e), this;
4328
4366
  }
4329
4367
  /**
4330
4368
  * Sets the site name for Open Graph and Twitter Card.
@@ -4367,7 +4405,7 @@ class Ee extends ut {
4367
4405
  * Получает отформатированный суффикс с разделителем.
4368
4406
  */
4369
4407
  getSuffix() {
4370
- return L(this.suffix) ? ` - ${this.suffix}` : "";
4408
+ return S(this.suffix) ? ` - ${this.suffix}` : "";
4371
4409
  }
4372
4410
  }
4373
4411
  class ot {
@@ -4389,8 +4427,8 @@ class ot {
4389
4427
  var e;
4390
4428
  const t = (e = this.storage.get()) != null ? e : -1;
4391
4429
  if (!this.calculate && t === -1) {
4392
- const s = await this.init();
4393
- return this.storage.set(s), s;
4430
+ const i = await this.init();
4431
+ return this.storage.set(i), i;
4394
4432
  }
4395
4433
  return t;
4396
4434
  }
@@ -4400,8 +4438,8 @@ class ot {
4400
4438
  * Создает элементы для проверки ширины скролла.
4401
4439
  */
4402
4440
  static createElement() {
4403
- return _(document.body, "div", (t) => {
4404
- t.style.height = "24px", t.style.overflowY = "scroll", t.style.position = "fixed", t.style.width = "100%", _(t, "div", (e) => {
4441
+ return O(document.body, "div", (t) => {
4442
+ t.style.height = "24px", t.style.overflowY = "scroll", t.style.position = "fixed", t.style.width = "100%", O(t, "div", (e) => {
4405
4443
  e.style.height = "100px";
4406
4444
  });
4407
4445
  });
@@ -4421,7 +4459,7 @@ class ot {
4421
4459
  });
4422
4460
  }
4423
4461
  }
4424
- c(ot, "storage", new T("scrollbar", !0)), c(ot, "calculate", !1);
4462
+ c(ot, "storage", new G("scrollbar", !0)), c(ot, "calculate", !1);
4425
4463
  const ue = [
4426
4464
  "d",
4427
4465
  "e",
@@ -4442,21 +4480,21 @@ const ue = [
4442
4480
  "t",
4443
4481
  "u",
4444
4482
  "v"
4445
- ], he = (i, t = {}) => {
4446
- let e = String(i);
4447
- if (i.match(/%[a-z]/)) {
4448
- let s = 0;
4449
- f(t, (n) => {
4450
- e = e.replace(new RegExp(`%${ue[s++]}`, "g"), String(n));
4483
+ ], he = (s, t = {}) => {
4484
+ let e = String(s);
4485
+ if (s.match(/%[a-z]/)) {
4486
+ let i = 0;
4487
+ g(t, (r) => {
4488
+ e = e.replace(new RegExp(`%${ue[i++]}`, "g"), String(r));
4451
4489
  });
4452
4490
  }
4453
- return A(t) && f(t, (s, n) => {
4491
+ return N(t) && g(t, (i, r) => {
4454
4492
  e = e.replace(
4455
- new RegExp(`\\[${n}\\](.*?)\\[/${n}\\]`, "g"),
4456
- (o, a) => String(s).replace(/\[content]/g, a)
4457
- ).replace(new RegExp(`\\[${n}\\]`, "g"), String(s));
4493
+ new RegExp(`(?:\\[|\\{)${r}(?:\\]|\\})(.*?)(?:\\[|\\{)\\/${r}(?:\\]|\\})`, "g"),
4494
+ (o, a) => String(i).replace(/(?:\[|\{)content(?:\]|\})/g, a)
4495
+ ).replace(new RegExp(`(?:\\[|\\{)${r}(?:\\]|\\})`, "g"), String(i));
4458
4496
  }), e;
4459
- }, E = class E {
4497
+ }, le = "global", E = class E {
4460
4498
  /**
4461
4499
  * Getting the translation text by its code.
4462
4500
  *
@@ -4465,9 +4503,9 @@ const ue = [
4465
4503
  * @param replacement If set, replaces the text with the specified values/ если установлено, заменяет текст на указанные значения
4466
4504
  */
4467
4505
  static async get(t, e) {
4468
- var n, o;
4469
- const s = this.getName(t);
4470
- return s in this.data ? this.replacement(this.data[s], e) : (z.isLocalhost() || await this.add(t), this.replacement((o = (n = this.data) == null ? void 0 : n[s]) != null ? o : t));
4506
+ var r;
4507
+ const i = this.getText(t);
4508
+ return i ? this.replacement(i, e) : (Z.isLocalhost() || await this.add(t), this.replacement((r = this.getText(t)) != null ? r : t));
4471
4509
  }
4472
4510
  /**
4473
4511
  * Getting the translation text by its code (Sync).
@@ -4479,9 +4517,9 @@ const ue = [
4479
4517
  * @param replacement If set, replaces the text with the specified values/
4480
4518
  * если установлено, заменяет текст на указанные значения
4481
4519
  */
4482
- static getSync(t, e = !1, s) {
4483
- const n = this.getName(t);
4484
- return n in this.data ? this.replacement(String(this.data[n]), s) : e ? " " : t;
4520
+ static getSync(t, e = !1, i) {
4521
+ const r = this.getText(t);
4522
+ return r ? this.replacement(r, i) : e ? " " : t;
4485
4523
  }
4486
4524
  /**
4487
4525
  * Getting a list of translations by an array of text codes.
@@ -4491,12 +4529,12 @@ const ue = [
4491
4529
  */
4492
4530
  static getList(t) {
4493
4531
  return new Promise((e) => {
4494
- const s = {};
4495
- let n = 0;
4532
+ const i = {};
4533
+ let r = 0;
4496
4534
  for (const o of t) {
4497
4535
  const a = Array.isArray(o) ? o[0] : o, u = Array.isArray(o) ? o.slice(1) : void 0;
4498
4536
  this.get(a, u).then((h) => {
4499
- s[a] = h, ++n >= t.length && e(s);
4537
+ i[a] = h, ++r >= t.length && e(i);
4500
4538
  });
4501
4539
  }
4502
4540
  });
@@ -4510,12 +4548,12 @@ const ue = [
4510
4548
  * если установлено false, возвращает пустую строку, если нет текста
4511
4549
  */
4512
4550
  static getListSync(t, e = !1) {
4513
- const s = {};
4514
- for (const n of t) {
4515
- const o = Array.isArray(n) ? n[0] : n, a = Array.isArray(n) ? n.slice(1) : void 0;
4516
- s[o] = this.getSync(o, e, a);
4551
+ const i = {};
4552
+ for (const r of t) {
4553
+ const o = Array.isArray(r) ? r[0] : r, a = Array.isArray(r) ? r.slice(1) : void 0;
4554
+ i[o] = this.getSync(o, e, a);
4517
4555
  }
4518
- return s;
4556
+ return i;
4519
4557
  }
4520
4558
  /**
4521
4559
  * Added a list of translated texts.
@@ -4527,7 +4565,7 @@ const ue = [
4527
4565
  return new Promise((e) => {
4528
4566
  this.getNamesNone(t).length > 0 ? (this.cache.push(...this.getNamesNone(t)), this.resolveList.push(e), this.timeout && clearTimeout(this.timeout), this.timeout = setTimeout(() => {
4529
4567
  this.timeout = void 0, this.make().then(() => {
4530
- this.resolveList.forEach((n) => n()), this.resolveList = [];
4568
+ this.resolveList.forEach((r) => r()), this.resolveList = [];
4531
4569
  });
4532
4570
  }, 160)) : e();
4533
4571
  });
@@ -4539,8 +4577,8 @@ const ue = [
4539
4577
  * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
4540
4578
  */
4541
4579
  static addSync(t) {
4542
- f(t, (e, s) => {
4543
- R(e) && L(e) && (this.data[this.getName(s)] = e);
4580
+ g(t, (e, i) => {
4581
+ P(e) && S(e) && (this.data[this.getName(i)] = e);
4544
4582
  });
4545
4583
  }
4546
4584
  /**
@@ -4550,14 +4588,29 @@ const ue = [
4550
4588
  * @param data list of texts in the form of key-value/ список текстов в виде ключ-значение
4551
4589
  */
4552
4590
  static async addNormalOrSync(t) {
4553
- if (L(t))
4554
- if (z.isLocalhost())
4591
+ if (S(t))
4592
+ if (Z.isLocalhost())
4555
4593
  this.addSync(t);
4556
4594
  else {
4557
4595
  const e = Object.keys(t);
4558
4596
  e.length > 0 && await this.add(e);
4559
4597
  }
4560
4598
  }
4599
+ /**
4600
+ * Adds texts synchronously by location.
4601
+ *
4602
+ * Добавляет тексты синхронно по местоположению.
4603
+ * @param data list of texts by location/ список текстов по местоположению
4604
+ */
4605
+ static addSyncByLocation(t) {
4606
+ g(
4607
+ t,
4608
+ (e, i) => g(e, (r, o) => {
4609
+ const a = `${i}-${o}`;
4610
+ a in this.data || (this.data[a] = r);
4611
+ })
4612
+ );
4613
+ }
4561
4614
  /**
4562
4615
  * Change the path to the script for obtaining the translation.
4563
4616
  *
@@ -4570,6 +4623,32 @@ const ue = [
4570
4623
  static setPropsName(t) {
4571
4624
  return this.propsName = t, this;
4572
4625
  }
4626
+ /**
4627
+ * Checks for translation by code, taking into account fallback options.
4628
+ *
4629
+ * Проверяет наличие перевода по коду с учетом запасных вариантов.
4630
+ * @param name code name/ название кода
4631
+ */
4632
+ static hasName(t) {
4633
+ return this.getName(t) in this.data || this.getNameByLanguage(t) in this.data || this.getNameByGlobal(t) in this.data;
4634
+ }
4635
+ /**
4636
+ * Retrieves translation text by code, returning the first matching fallback.
4637
+ *
4638
+ * Получает текст перевода по коду, возвращая первое совпадение из запасных вариантов.
4639
+ * @param name code name/ название кода
4640
+ */
4641
+ static getText(t) {
4642
+ const e = this.getName(t);
4643
+ if (e in this.data)
4644
+ return this.data[e];
4645
+ const i = this.getNameByLanguage(t);
4646
+ if (i in this.data)
4647
+ return this.data[i];
4648
+ const r = this.getNameByGlobal(t);
4649
+ if (r in this.data)
4650
+ return this.data[r];
4651
+ }
4573
4652
  /**
4574
4653
  * Getting the full title for translation.
4575
4654
  *
@@ -4579,6 +4658,24 @@ const ue = [
4579
4658
  static getName(t) {
4580
4659
  return `${w.getLocation()}-${t}`;
4581
4660
  }
4661
+ /**
4662
+ * Getting the title for translation by language.
4663
+ *
4664
+ * Получение названия для перевода по языку.
4665
+ * @param name code name/ название кода
4666
+ */
4667
+ static getNameByLanguage(t) {
4668
+ return `${w.getLanguage()}-${t}`;
4669
+ }
4670
+ /**
4671
+ * Getting the title for translation globally.
4672
+ *
4673
+ * Получение названия для перевода глобально.
4674
+ * @param name code name/ название кода
4675
+ */
4676
+ static getNameByGlobal(t) {
4677
+ return `${le}-${t}`;
4678
+ }
4582
4679
  /**
4583
4680
  * Returns a list of names that are not yet in the list.
4584
4681
  *
@@ -4587,8 +4684,8 @@ const ue = [
4587
4684
  */
4588
4685
  static getNamesNone(t) {
4589
4686
  const e = [];
4590
- return Z(t).forEach((s) => {
4591
- s !== "__TRANSLATE_START__" && s !== "__TRANSLATE_END__" && !(this.getName(s) in this.data) && e.push(s);
4687
+ return V(t).forEach((i) => {
4688
+ i !== "__TRANSLATE_START__" && i !== "__TRANSLATE_END__" && !(this.getName(i) in this.data) && e.push(i);
4592
4689
  }), e;
4593
4690
  }
4594
4691
  /**
@@ -4597,7 +4694,7 @@ const ue = [
4597
4694
  * Получение списка переводов с сервера.
4598
4695
  */
4599
4696
  static async getResponse() {
4600
- const t = await z.get({
4697
+ const t = await Z.get({
4601
4698
  api: !1,
4602
4699
  path: this.url,
4603
4700
  request: {
@@ -4626,471 +4723,493 @@ const ue = [
4626
4723
  static async make() {
4627
4724
  const t = await this.getResponse();
4628
4725
  this.cache.forEach((e) => {
4629
- var s;
4630
- this.data[this.getName(e)] = (s = t == null ? void 0 : t[e]) != null ? s : "";
4726
+ var i;
4727
+ this.data[this.getName(e)] = (i = t == null ? void 0 : t[e]) != null ? i : "";
4631
4728
  }), this.cache = [];
4632
4729
  }
4633
4730
  };
4634
4731
  c(E, "url", "/api/translate"), c(E, "propsName", "list"), c(E, "data", {}), c(E, "cache", []), c(E, "resolveList", []), c(E, "timeout");
4635
- let Ct = E;
4636
- function xt(i) {
4637
- return Array.isArray(i);
4638
- }
4639
- function Ie(i) {
4732
+ let At = E;
4733
+ function de(s) {
4640
4734
  var t;
4641
- return R(i) ? i.trim() : xt(i) && i.findIndex((e) => m(e)) === -1 ? i.join(",") : m(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : (t = i == null ? void 0 : i.toString()) != null ? t : "";
4735
+ return P(s) ? s.trim() : at(s) && s.findIndex((e) => m(e)) === -1 ? s.join(",") : m(s) ? JSON.stringify(s) : s === !0 ? "1" : s === !1 ? "0" : (t = s == null ? void 0 : s.toString()) != null ? t : "";
4642
4736
  }
4643
- function le(i, t) {
4644
- return Array(t).fill(i);
4737
+ function ge(s, t) {
4738
+ return Array(t).fill(s);
4645
4739
  }
4646
- function Be(i) {
4740
+ function Fe(s) {
4647
4741
  return new Promise((t, e) => {
4648
- const s = new FileReader();
4649
- s.onloadend = () => t(s.result), s.onerror = e, s.readAsDataURL(i);
4742
+ const i = new FileReader();
4743
+ i.onloadend = () => t(i.result), i.onerror = e, i.readAsDataURL(s);
4650
4744
  });
4651
4745
  }
4652
- function Fe(i) {
4746
+ function Re(s) {
4653
4747
  var t;
4654
4748
  if (l())
4655
- return (t = document.querySelector(i)) != null ? t : void 0;
4749
+ return (t = document.querySelector(s)) != null ? t : void 0;
4656
4750
  }
4657
- function xe(i) {
4751
+ function Pe(s) {
4658
4752
  if (l())
4659
- return document.querySelectorAll(i);
4753
+ return document.querySelectorAll(s);
4660
4754
  }
4661
- function Re(i) {
4662
- i.preventDefault(), i.stopPropagation();
4755
+ function We(s) {
4756
+ s.preventDefault(), s.stopPropagation();
4663
4757
  }
4664
- function de(i, t, e) {
4665
- const s = () => {
4666
- i(), t != null && t() ? de(i, t, e) : e == null || e();
4758
+ function fe(s, t, e) {
4759
+ const i = () => {
4760
+ s(), t != null && t() ? fe(s, t, e) : e == null || e();
4667
4761
  };
4668
- l() ? requestAnimationFrame(s) : s();
4762
+ l() ? requestAnimationFrame(i) : i();
4669
4763
  }
4670
- function Pe(i) {
4671
- var s;
4672
- const t = {}, e = N(i);
4764
+ function Ue(s) {
4765
+ var i;
4766
+ const t = {}, e = A(s);
4673
4767
  if (e)
4674
- for (const n of e.attributes)
4675
- t[n.name] = (s = (n == null ? void 0 : n.value) || (n == null ? void 0 : n.textContent)) != null ? s : void 0;
4768
+ for (const r of e.attributes)
4769
+ t[r.name] = (i = (r == null ? void 0 : r.value) || (r == null ? void 0 : r.textContent)) != null ? i : void 0;
4676
4770
  return t;
4677
4771
  }
4678
- async function We(i) {
4772
+ async function je(s) {
4679
4773
  var t, e;
4680
- return (e = (t = i == null ? void 0 : i.clipboardData) == null ? void 0 : t.getData("text")) != null ? e : await navigator.clipboard.readText() || "";
4774
+ return (e = (t = s == null ? void 0 : s.clipboardData) == null ? void 0 : t.getData("text")) != null ? e : await navigator.clipboard.readText() || "";
4681
4775
  }
4682
- function Ue(i = "datetime") {
4683
- return new ct(void 0, i).standard();
4776
+ function He(s = "datetime") {
4777
+ return new ut(void 0, s).standard();
4684
4778
  }
4685
- let kt = J(1e5, 9e5);
4686
- function je(i, t) {
4687
- const e = N(i);
4688
- return e ? (L(e.id) || e.setAttribute("id", `id-${kt++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${kt++}`;
4779
+ let Nt = J(1e5, 9e5);
4780
+ function ze(s, t) {
4781
+ const e = A(s);
4782
+ return e ? (S(e.id) || e.setAttribute("id", `id-${Nt++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${Nt++}`;
4689
4783
  }
4690
- function ge(i) {
4691
- return R(i) ? _(
4784
+ function me(s) {
4785
+ return P(s) ? O(
4692
4786
  void 0,
4693
4787
  "img",
4694
- { src: i }
4695
- ) : i;
4788
+ { src: s }
4789
+ ) : s;
4696
4790
  }
4697
- function fe(i, t = "ig", e = ":value") {
4698
- const s = i.replace(/([[\]\\^$.?*+()/])/g, "\\$1");
4699
- return new RegExp(e.replace(/:value/g, s), t);
4791
+ function ye(s, t = "ig", e = ":value") {
4792
+ const i = s.replace(/([[\]\\^$.?*+(){}/|])/g, "\\$1");
4793
+ return new RegExp(e.replace(/:value/g, i), t);
4700
4794
  }
4701
- function me(i, t) {
4702
- var n;
4703
- const e = t.split(".", 2), s = e[0];
4704
- return s && (i != null && i[s]) && A(i[s]) && (e != null && e[1]) ? me(i[s], e[1]) : (n = s && (i == null ? void 0 : i[s])) != null ? n : "";
4795
+ function $e(s, t, e) {
4796
+ const i = de(s);
4797
+ if (!e || e <= 0)
4798
+ return i.split(t);
4799
+ const r = i.split(t, e), o = i.split(t);
4800
+ return r.length === o.length ? r : (r.pop(), [
4801
+ ...r,
4802
+ o.slice(e - 1).join(t)
4803
+ ]);
4705
4804
  }
4706
- function He(i) {
4707
- var t, e, s;
4708
- return (s = (t = i == null ? void 0 : i.key) != null ? t : i == null ? void 0 : i.code) != null ? s : (e = i == null ? void 0 : i.keyCode) == null ? void 0 : e.toString();
4805
+ function pe(s, t) {
4806
+ var r;
4807
+ if (!S(t))
4808
+ return;
4809
+ const e = $e(t, ".", 2), i = e[0];
4810
+ return i && (s != null && s[i]) && m(s[i]) && (e != null && e[1]) ? pe(s[i], e[1]) : (r = S(i) && (s == null ? void 0 : s[i])) != null ? r : void 0;
4811
+ }
4812
+ function Ze(s) {
4813
+ var t, e, i;
4814
+ return (i = (t = s == null ? void 0 : s.key) != null ? t : s == null ? void 0 : s.code) != null ? i : (e = s == null ? void 0 : s.keyCode) == null ? void 0 : e.toString();
4709
4815
  }
4710
- function Rt(i) {
4711
- return f(i, (t) => t.length);
4816
+ function Pt(s) {
4817
+ return g(s, (t) => t.length);
4712
4818
  }
4713
- function ze(i) {
4714
- return Math.max(...Rt(i));
4819
+ function Ve(s) {
4820
+ return Math.max(...Pt(s));
4715
4821
  }
4716
- function Ze(i) {
4717
- return Math.min(...Rt(i));
4822
+ function Ke(s) {
4823
+ return Math.min(...Pt(s));
4718
4824
  }
4719
- function ye(i) {
4720
- var t, e, s, n;
4721
- return (i == null ? void 0 : i.clientX) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientX) || ((n = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : n.clientX) || 0;
4825
+ function we(s) {
4826
+ var t, e, i, r;
4827
+ return (s == null ? void 0 : s.clientX) || ((e = (t = s == null ? void 0 : s.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientX) || ((r = (i = s == null ? void 0 : s.touches) == null ? void 0 : i[0]) == null ? void 0 : r.clientX) || 0;
4722
4828
  }
4723
- function $e(i) {
4724
- var t, e, s, n;
4725
- return (i == null ? void 0 : i.clientY) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientY) || ((n = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : n.clientY) || 0;
4829
+ function be(s) {
4830
+ var t, e, i, r;
4831
+ return (s == null ? void 0 : s.clientY) || ((e = (t = s == null ? void 0 : s.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientY) || ((r = (i = s == null ? void 0 : s.touches) == null ? void 0 : i[0]) == null ? void 0 : r.clientY) || 0;
4726
4832
  }
4727
- function Ve(i) {
4833
+ function Ye(s) {
4728
4834
  return {
4729
- x: ye(i),
4730
- y: $e(i)
4835
+ x: we(s),
4836
+ y: be(s)
4731
4837
  };
4732
4838
  }
4733
- function Ke(i, t) {
4839
+ function qe(s, t) {
4734
4840
  const e = {};
4735
- return t.forEach((s) => {
4736
- s in i && i[s] !== void 0 && (e[s] = i[s]);
4841
+ return t.forEach((i) => {
4842
+ i in s && s[i] !== void 0 && (e[i] = s[i]);
4737
4843
  }), e;
4738
4844
  }
4739
- function Ye(i, t = void 0) {
4845
+ function Je(s, t = void 0) {
4740
4846
  const e = {};
4741
- return f(i, (s, n) => {
4742
- s !== t && (e[n] = s);
4847
+ return g(s, (i, r) => {
4848
+ i !== t && (e[r] = i);
4743
4849
  }), e;
4744
4850
  }
4745
- function qe(i) {
4746
- return A(i) ? i : {};
4851
+ function Me(s) {
4852
+ return N(s) ? s : {};
4747
4853
  }
4748
- function pe(i, t) {
4749
- return le(i, t).join("");
4854
+ function ve(s, t) {
4855
+ return ge(s, t).join("");
4750
4856
  }
4751
- function Je(i, t, e = "#", s = 2, n = 12) {
4752
- const o = J(i, t), a = [];
4857
+ function Qe(s, t, e = "#", i = 2, r = 12) {
4858
+ const o = J(s, t), a = [];
4753
4859
  for (let u = 0; u < o; u++)
4754
- a.push(pe(e, J(s, n)));
4860
+ a.push(ve(e, J(i, r)));
4755
4861
  return a.join(" ");
4756
4862
  }
4757
- function Me(i, t) {
4758
- const e = i != null ? i : 0;
4863
+ function Xe(s, t) {
4864
+ const e = s != null ? s : 0;
4759
4865
  return t > e ? 100 / (t - e) : 0;
4760
4866
  }
4761
- function Qe(i, t) {
4762
- const e = i != null ? i : 0;
4867
+ function _e(s, t) {
4868
+ const e = s != null ? s : 0;
4763
4869
  return t > e ? (t - e) / 100 : 0;
4764
4870
  }
4765
- const At = 0;
4766
- function Xe(i, t, e) {
4767
- const s = t == null ? void 0 : t.closest(i);
4768
- if (t && s && s.scrollHeight !== s.offsetHeight) {
4769
- const n = s.getBoundingClientRect(), o = t.getBoundingClientRect();
4871
+ const Et = 0;
4872
+ function Oe(s, t, e) {
4873
+ const i = t == null ? void 0 : t.closest(s);
4874
+ if (t && i && i.scrollHeight !== i.offsetHeight) {
4875
+ const r = i.getBoundingClientRect(), o = t.getBoundingClientRect();
4770
4876
  if (e) {
4771
4877
  const a = e.getBoundingClientRect();
4772
- s.scrollTop = t.offsetTop - (a.top - n.top) - (a.height / 2 - o.height / 2), s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight);
4773
- } else s.scrollTop > t.offsetTop ? s.scrollTop = o.top - n.top - At : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = o.top - n.top + o.height - n.height + At);
4878
+ i.scrollTop = t.offsetTop - (a.top - r.top) - (a.height / 2 - o.height / 2), i.scrollTop + i.offsetHeight < t.offsetTop + t.offsetHeight && (i.scrollTop = t.offsetTop + t.offsetHeight - i.offsetHeight);
4879
+ } else i.scrollTop > t.offsetTop ? i.scrollTop = o.top - r.top - Et : i.scrollTop + i.offsetHeight < t.offsetTop + t.offsetHeight && (i.scrollTop = o.top - r.top + o.height - r.height + Et);
4774
4880
  }
4775
4881
  }
4776
- function _e(i, t, e = 0) {
4882
+ function Te(s, t, e = 0) {
4777
4883
  if (!l())
4778
4884
  return;
4779
- const s = (t == null ? void 0 : t.behavior) || "smooth";
4780
- if ("scrollIntoView" in i && !e) {
4781
- i.scrollIntoView({
4782
- behavior: s,
4885
+ const i = (t == null ? void 0 : t.behavior) || "smooth";
4886
+ if ("scrollIntoView" in s && !e) {
4887
+ s.scrollIntoView({
4888
+ behavior: i,
4783
4889
  block: (t == null ? void 0 : t.block) || "start",
4784
4890
  inline: (t == null ? void 0 : t.inline) || "start"
4785
4891
  });
4786
4892
  return;
4787
4893
  }
4788
- if ("getBoundingClientRect" in i && "scrollTo" in window) {
4789
- const n = ((window == null ? void 0 : window.scrollY) || window.pageYOffset) + i.getBoundingClientRect().top - e;
4894
+ if ("getBoundingClientRect" in s && "scrollTo" in window) {
4895
+ const r = ((window == null ? void 0 : window.scrollY) || window.pageYOffset) + s.getBoundingClientRect().top - e;
4790
4896
  window.scrollTo({
4791
- top: n,
4792
- behavior: s
4897
+ top: r,
4898
+ behavior: i
4793
4899
  });
4794
4900
  }
4795
4901
  }
4796
- function Oe(i, t) {
4797
- return i.indexOf(t) !== -1;
4902
+ function Ge(s, t, e = "smooth") {
4903
+ if (!l() || !s || !t)
4904
+ return;
4905
+ const i = s.getBoundingClientRect(), r = t.getBoundingClientRect();
4906
+ s.scrollBy({
4907
+ top: r.top - i.top,
4908
+ left: r.left - i.left,
4909
+ behavior: e
4910
+ });
4911
+ }
4912
+ function ts(s, t) {
4913
+ return s.indexOf(t) !== -1;
4798
4914
  }
4799
- async function Te() {
4915
+ async function es() {
4800
4916
  if (l()) {
4801
- const i = await ot.get();
4802
- document.body.style.setProperty("--sys-scrollbar-offset", `${i}px`);
4917
+ const s = await ot.get();
4918
+ document.body.style.setProperty("--sys-scrollbar-offset", `${s}px`);
4803
4919
  }
4804
4920
  }
4805
- function Ge(i, t) {
4921
+ function ss(s, t) {
4806
4922
  const e = {};
4807
- return m(i) && m(t) && f(i, (s, n) => {
4808
- n in t && (e[n] = s);
4923
+ return m(s) && m(t) && g(s, (i, r) => {
4924
+ r in t && (e[r] = i);
4809
4925
  }), e;
4810
4926
  }
4811
- function ti(i, t) {
4812
- let e = Object.keys(i).length !== Object.keys(t).length;
4813
- return e || f(i, (s, n) => {
4814
- s !== (t == null ? void 0 : t[n]) && (e = !0);
4927
+ function is(s, t) {
4928
+ let e = Object.keys(s).length !== Object.keys(t).length;
4929
+ return e || g(s, (i, r) => {
4930
+ i !== (t == null ? void 0 : t[r]) && (e = !0);
4815
4931
  }), e;
4816
4932
  }
4817
- const we = (i) => {
4818
- if (i instanceof HTMLElement) {
4819
- const t = i.tagName.toLowerCase();
4820
- return !!(t === "input" || t === "textarea" || t === "select" || i.isContentEditable || i.getAttribute("contenteditable") === "true");
4933
+ const Se = (s) => {
4934
+ if (s instanceof HTMLElement) {
4935
+ const t = s.tagName.toLowerCase();
4936
+ return !!(t === "input" || t === "textarea" || t === "select" || s.isContentEditable || s.getAttribute("contenteditable") === "true");
4821
4937
  }
4822
4938
  return !1;
4823
- }, ei = (i, t) => i.code === "Space" || i.code === "Enter" || i.key === " " || i.key === "Spacebar" || i.key === "Enter" || i.keyCode === 13 || i.keyCode === 32 ? t !== void 0 ? !t : !we(i.target) : !1;
4824
- function ii(i) {
4825
- switch (typeof i) {
4939
+ }, rs = (s, t) => s.code === "Space" || s.code === "Enter" || s.key === " " || s.key === "Spacebar" || s.key === "Enter" || s.keyCode === 13 || s.keyCode === 32 ? t !== void 0 ? !t : !Se(s.target) : !1;
4940
+ function ns(s) {
4941
+ switch (typeof s) {
4826
4942
  case "number":
4827
4943
  return !0;
4828
4944
  case "string":
4829
- return !!i.match(/^([0-9]+|[0-9]+\.[0-9]+)$/);
4945
+ return !!s.match(/^([0-9]+|[0-9]+\.[0-9]+)$/);
4830
4946
  default:
4831
4947
  return !1;
4832
4948
  }
4833
4949
  }
4834
- function si(i, t) {
4950
+ function os(s, t) {
4835
4951
  const e = Math.floor(t);
4836
- return i >= e && i < e + 1;
4952
+ return s >= e && s < e + 1;
4837
4953
  }
4838
- function ri(i, t) {
4839
- return Array.isArray(i) ? i.every((e) => rt(e, t)) : rt(i, t);
4954
+ function as(s, t) {
4955
+ return Array.isArray(s) ? s.every((e) => rt(e, t)) : rt(s, t);
4840
4956
  }
4841
- function ni(i, t) {
4842
- if (i.startsWith(t))
4843
- return i.slice(t.length).trim();
4957
+ function cs(s, t) {
4958
+ if (s.startsWith(t))
4959
+ return s.slice(t.length).trim();
4844
4960
  let e = 0;
4845
- for (; i[e] === t[e] && e < i.length && e < t.length; )
4961
+ for (; s[e] === t[e] && e < s.length && e < t.length; )
4846
4962
  e++;
4847
- return i.slice(e).trim();
4963
+ return s.slice(e).trim();
4848
4964
  }
4849
- const oi = (i, t, e) => {
4850
- var s, n;
4851
- return (n = (s = i == null ? void 0 : i.replace(new RegExp(`<${t}`, "ig"), `<${e}`)) == null ? void 0 : s.replace(new RegExp(`</${t}`, "ig"), `</${e}`)) == null ? void 0 : n.trim();
4965
+ const us = (s, t, e) => {
4966
+ var i, r;
4967
+ return (r = (i = s == null ? void 0 : s.replace(new RegExp(`<${t}`, "ig"), `<${e}`)) == null ? void 0 : i.replace(new RegExp(`</${t}`, "ig"), `</${e}`)) == null ? void 0 : r.trim();
4852
4968
  };
4853
- function be(i) {
4854
- return [...new Set(i)];
4969
+ function De(s) {
4970
+ return [...new Set(s)];
4855
4971
  }
4856
- function K(i, t, e = !0) {
4857
- const s = H(i);
4858
- return m(i) && m(t) && f(
4972
+ function K(s, t, e = !0) {
4973
+ const i = z(s);
4974
+ return m(s) && m(t) && g(
4859
4975
  t,
4860
- (n, o) => {
4861
- const a = i == null ? void 0 : i[o];
4862
- m(a) && m(n) ? e && Array.isArray(a) && Array.isArray(n) ? s[o] = H(be([...a, ...n])) : s[o] = K(
4976
+ (r, o) => {
4977
+ const a = s == null ? void 0 : s[o];
4978
+ m(a) && m(r) ? e && Array.isArray(a) && Array.isArray(r) ? i[o] = z(De([...a, ...r])) : i[o] = K(
4863
4979
  Array.isArray(a) ? { ...a } : a,
4864
- n,
4980
+ r,
4865
4981
  e
4866
- ) : s[o] = m(n) ? H(n) : n;
4982
+ ) : i[o] = m(r) ? z(r) : r;
4867
4983
  }
4868
- ), s;
4984
+ ), i;
4869
4985
  }
4870
- function ai(i, t) {
4871
- let e = i;
4872
- return f(t, (s, n) => {
4873
- e = e.replace(fe(`[${n}]`), I(s));
4986
+ function hs(s, t) {
4987
+ let e = s;
4988
+ return g(t, (i, r) => {
4989
+ e = e.replace(ye(`[${r}]`), B(i));
4874
4990
  }), e;
4875
4991
  }
4876
- function ve(i, t = "auto") {
4992
+ function Le(s, t = "auto") {
4877
4993
  switch (t) {
4878
4994
  case "auto":
4879
- return i.naturalWidth >= i.naturalHeight;
4995
+ return s.naturalWidth >= s.naturalHeight;
4880
4996
  case "width":
4881
4997
  return !0;
4882
4998
  case "height":
4883
4999
  return !1;
4884
5000
  }
4885
5001
  }
4886
- function ci(i, t, e = "auto", s) {
5002
+ function ls(s, t, e = "auto", i) {
4887
5003
  var o;
4888
- const n = ge(i);
4889
- if (n && (n.naturalWidth > t && (e === "auto" || e === "width") || n.naturalHeight > t && (e === "auto" || e === "height"))) {
4890
- const a = ve(n, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
5004
+ const r = me(s);
5005
+ if (r && (r.naturalWidth > t && (e === "auto" || e === "width") || r.naturalHeight > t && (e === "auto" || e === "height"))) {
5006
+ const a = Le(r, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
4891
5007
  if (u)
4892
- return u.canvas.width = a ? t : n.naturalWidth / n.naturalHeight * t, u.canvas.height = a ? n.naturalHeight / n.naturalWidth * t : t, u.drawImage(n, 0, 0, u.canvas.width, u.canvas.height), u.canvas.toDataURL(s);
5008
+ return u.canvas.width = a ? t : r.naturalWidth / r.naturalHeight * t, u.canvas.height = a ? r.naturalHeight / r.naturalWidth * t : t, u.drawImage(r, 0, 0, u.canvas.width, u.canvas.height), u.canvas.toDataURL(i);
4893
5009
  }
4894
5010
  }
4895
- function ui(i) {
4896
- const t = k(i);
5011
+ function ds(s) {
5012
+ const t = k(s);
4897
5013
  if (t > 0) {
4898
- const e = String(Math.floor(t / 60)).padStart(2, "0"), s = String(t % 60).padStart(2, "0");
4899
- return `${e}:${s}`;
5014
+ const e = String(Math.floor(t / 60)).padStart(2, "0"), i = String(t % 60).padStart(2, "0");
5015
+ return `${e}:${i}`;
4900
5016
  }
4901
5017
  return "00:00";
4902
5018
  }
4903
- function hi(i, t, {
5019
+ function gs(s, t, {
4904
5020
  multiple: e = !1,
4905
- maxlength: s = 0,
4906
- alwaysChange: n = !0,
5021
+ maxlength: i = 0,
5022
+ alwaysChange: r = !0,
4907
5023
  notEmpty: o = !1
4908
5024
  }) {
4909
5025
  if (e) {
4910
- if (xt(i)) {
4911
- const a = i.indexOf(t), u = [...i];
4912
- return a !== -1 ? (!o || u.length > 1) && u.splice(a, 1) : (!s || i.length < s) && u.push(t), u;
5026
+ if (at(s)) {
5027
+ const a = s.indexOf(t), u = [...s];
5028
+ return a !== -1 ? (!o || u.length > 1) && u.splice(a, 1) : (!i || s.length < i) && u.push(t), u;
4913
5029
  }
4914
- return i === t ? [] : i ? [i, t] : [t];
5030
+ return s === t ? [] : s ? [s, t] : [t];
4915
5031
  }
4916
- return n || i !== t ? t : i;
5032
+ return r || s !== t ? t : s;
4917
5033
  }
4918
- function li(i, t, e) {
4919
- if (m(i) && m(t)) {
5034
+ function fs(s, t, e) {
5035
+ if (m(s) && m(t)) {
4920
5036
  if (e) {
4921
- let s = {}, n = !1;
4922
- return f(i, (o, a) => {
4923
- !n && (e === a || e === o) ? (n = !0, s = K(s, t)) : n ? s = K(s, { [a]: o }) : s[a] = m(o) ? H(o) : o;
4924
- }), n ? s : K(i, t);
5037
+ let i = {}, r = !1;
5038
+ return g(s, (o, a) => {
5039
+ !r && (e === a || e === o) ? (r = !0, i = K(i, t)) : r ? i = K(i, { [a]: o }) : i[a] = m(o) ? z(o) : o;
5040
+ }), r ? i : K(s, t);
4925
5041
  }
4926
5042
  if (m(t))
4927
- return K(i, t);
5043
+ return K(s, t);
4928
5044
  }
4929
- return H(i);
5045
+ return z(s);
4930
5046
  }
4931
- function Se(i) {
4932
- return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...t) => `${String(t[1]).toUpperCase()}`).replace(/^([A-Z])/, (t) => `${t.toLowerCase()}`);
5047
+ function Ce(s) {
5048
+ return s.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...t) => `${String(t[1]).toUpperCase()}`).replace(/^([A-Z])/, (t) => `${t.toLowerCase()}`);
4933
5049
  }
4934
- function di(i) {
4935
- return Se(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
5050
+ function ms(s) {
5051
+ return Ce(s).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
4936
5052
  }
4937
- function gi(i) {
4938
- return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/^[A-Z]/, (t) => t.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (t) => `-${t.toLowerCase()}`).replace(/[A-Z]/g, (t) => t.toLowerCase());
5053
+ function ys(s) {
5054
+ return s.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/^[A-Z]/, (t) => t.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (t) => `-${t.toLowerCase()}`).replace(/[A-Z]/g, (t) => t.toLowerCase());
4939
5055
  }
4940
- function fi(i, t, e, s) {
4941
- const n = k(i), o = k(t);
4942
- return t && o < n ? `${Nt(o, e, s)}+` : Nt(n, e, s);
5056
+ function $s(s, t, e, i) {
5057
+ const r = k(s), o = k(t);
5058
+ return t && o < r ? `${Bt(o, e, i)}+` : Bt(r, e, i);
4943
5059
  }
4944
- const Nt = (i, t, e) => t ? new Q(e).number(i) : i;
4945
- function De(i, t) {
4946
- return 1 / i * t;
5060
+ const Bt = (s, t, e) => t ? new Q(e).number(s) : s;
5061
+ function ke(s, t) {
5062
+ return 1 / s * t;
4947
5063
  }
4948
- function mi(i, t) {
4949
- return De(i, t) * 100;
5064
+ function ps(s, t) {
5065
+ return ke(s, t) * 100;
4950
5066
  }
4951
- function yi(i) {
5067
+ function ws(s) {
4952
5068
  let t = "";
4953
- for (const e of i)
5069
+ for (const e of s)
4954
5070
  t += String.fromCharCode(e);
4955
- return l() ? window.btoa(t) : globalThis && globalThis.Buffer ? globalThis == null ? void 0 : globalThis.Buffer.from(i).toString("base64") : "";
5071
+ return l() ? window.btoa(t) : globalThis && globalThis.Buffer ? globalThis == null ? void 0 : globalThis.Buffer.from(s).toString("base64") : "";
4956
5072
  }
4957
- async function $i(i) {
5073
+ async function bs(s) {
4958
5074
  if (l())
4959
5075
  try {
4960
- await navigator.clipboard.writeText(i);
5076
+ await navigator.clipboard.writeText(s);
4961
5077
  } catch (t) {
4962
- document == null || document.execCommand(i);
5078
+ document == null || document.execCommand(s);
4963
5079
  }
4964
5080
  }
4965
5081
  export {
4966
- z as Api,
4967
- Zt as ApiDefault,
4968
- zt as ApiHeaders,
4969
- D as ApiMethodItem,
5082
+ Z as Api,
5083
+ Vt as ApiDefault,
5084
+ Zt as ApiHeaders,
5085
+ L as ApiMethodItem,
4970
5086
  qt as ApiPreparation,
4971
5087
  Yt as ApiResponse,
4972
- Vt as ApiStatus,
4973
- ke as BroadcastMessage,
5088
+ $t as ApiStatus,
5089
+ Ee as BroadcastMessage,
4974
5090
  Qt as Cache,
4975
5091
  Mt as CacheItem,
4976
- $t as CacheStatic,
4977
- pt as Cookie,
4978
- Ft as CookieBlock,
4979
- T as DataStorage,
4980
- ct as Datetime,
4981
- Ae as ElementScreenshot,
4982
- ft as EventItem,
4983
- r as GEO_FLAG_ICON_NAME,
5092
+ wt as CacheStatic,
5093
+ bt as Cookie,
5094
+ Rt as CookieBlock,
5095
+ G as DataStorage,
5096
+ ut as Datetime,
5097
+ Be as ElementScreenshot,
5098
+ mt as EventItem,
5099
+ n as GEO_FLAG_ICON_NAME,
4984
5100
  w as Geo,
4985
- wt as GeoFlag,
5101
+ vt as GeoFlag,
4986
5102
  Q as GeoIntl,
4987
- bt as GeoPhone,
4988
- Ne as Global,
4989
- vt as Hash,
4990
- Lt as Icons,
4991
- x as Loading,
4992
- Ee as Meta,
4993
- ut as MetaManager,
5103
+ St as GeoPhone,
5104
+ Ie as Global,
5105
+ Dt as Hash,
5106
+ kt as Icons,
5107
+ I as Loading,
5108
+ xe as Meta,
5109
+ ht as MetaManager,
4994
5110
  ae as MetaOg,
4995
5111
  re as MetaOpenGraphAge,
4996
- ie as MetaOpenGraphAvailability,
4997
- se as MetaOpenGraphCondition,
5112
+ se as MetaOpenGraphAvailability,
5113
+ ie as MetaOpenGraphCondition,
4998
5114
  ne as MetaOpenGraphGender,
4999
- y as MetaOpenGraphTag,
5115
+ $ as MetaOpenGraphTag,
5000
5116
  ee as MetaOpenGraphType,
5001
5117
  te as MetaRobots,
5002
- S as MetaTag,
5118
+ D as MetaTag,
5003
5119
  ce as MetaTwitter,
5004
5120
  oe as MetaTwitterCard,
5005
- $ as MetaTwitterTag,
5121
+ p as MetaTwitterTag,
5006
5122
  ot as ScrollbarWidth,
5007
- Ct as Translate,
5008
- Ie as anyToString,
5123
+ le as TRANSLATE_GLOBAL_PREFIX,
5124
+ At as Translate,
5125
+ de as anyToString,
5009
5126
  he as applyTemplate,
5010
- le as arrFill,
5011
- Be as blobToBase64,
5012
- H as copyObject,
5127
+ ge as arrFill,
5128
+ Fe as blobToBase64,
5129
+ z as copyObject,
5013
5130
  C as copyObjectLite,
5014
- _ as createElement,
5015
- Fe as domQuerySelector,
5016
- xe as domQuerySelectorAll,
5131
+ O as createElement,
5132
+ Re as domQuerySelector,
5133
+ Pe as domQuerySelectorAll,
5017
5134
  Gt as encodeAttribute,
5018
- Re as eventStopPropagation,
5019
- I as executeFunction,
5135
+ We as eventStopPropagation,
5136
+ B as executeFunction,
5020
5137
  Kt as executePromise,
5021
- f as forEach,
5022
- de as frame,
5023
- Pe as getAttributes,
5024
- We as getClipboardData,
5138
+ g as forEach,
5139
+ fe as frame,
5140
+ Ue as getAttributes,
5141
+ je as getClipboardData,
5025
5142
  _t as getColumn,
5026
- Ue as getCurrentDate,
5027
- N as getElement,
5028
- je as getElementId,
5029
- ge as getElementImage,
5143
+ He as getCurrentDate,
5144
+ A as getElement,
5145
+ ze as getElementId,
5146
+ me as getElementImage,
5030
5147
  Ot as getElementItem,
5031
- gt as getElementOrWindow,
5032
- fe as getExp,
5033
- me as getItemByPath,
5034
- He as getKey,
5035
- Rt as getLengthOfAllArray,
5036
- ze as getMaxLengthAllArray,
5037
- Ze as getMinLengthAllArray,
5038
- Ve as getMouseClient,
5039
- ye as getMouseClientX,
5040
- $e as getMouseClientY,
5041
- Ke as getObjectByKeys,
5042
- Ye as getObjectNoUndefined,
5043
- qe as getObjectOrNone,
5044
- Je as getRandomText,
5045
- Et as getRequestString,
5046
- Me as getStepPercent,
5047
- Qe as getStepValue,
5048
- Xe as goScroll,
5049
- _e as goScrollSmooth,
5050
- Oe as inArray,
5051
- Te as initScrollbarOffset,
5052
- Ge as intersectKey,
5053
- xt as isArray,
5054
- ti as isDifferent,
5148
+ ft as getElementOrWindow,
5149
+ ye as getExp,
5150
+ pe as getItemByPath,
5151
+ Ze as getKey,
5152
+ Pt as getLengthOfAllArray,
5153
+ Ve as getMaxLengthAllArray,
5154
+ Ke as getMinLengthAllArray,
5155
+ Ye as getMouseClient,
5156
+ we as getMouseClientX,
5157
+ be as getMouseClientY,
5158
+ qe as getObjectByKeys,
5159
+ Je as getObjectNoUndefined,
5160
+ Me as getObjectOrNone,
5161
+ Qe as getRandomText,
5162
+ It as getRequestString,
5163
+ Xe as getStepPercent,
5164
+ _e as getStepValue,
5165
+ Oe as goScroll,
5166
+ Te as goScrollSmooth,
5167
+ Ge as goScrollTo,
5168
+ ts as inArray,
5169
+ es as initScrollbarOffset,
5170
+ ss as intersectKey,
5171
+ at as isArray,
5172
+ is as isDifferent,
5055
5173
  nt as isDomData,
5056
5174
  l as isDomRuntime,
5057
- ei as isEnter,
5058
- L as isFilled,
5059
- ii as isFloat,
5060
- at as isFunction,
5061
- Ht as isInDom,
5062
- we as isInput,
5063
- si as isIntegerBetween,
5175
+ rs as isEnter,
5176
+ S as isFilled,
5177
+ ns as isFloat,
5178
+ ct as isFunction,
5179
+ zt as isInDom,
5180
+ Se as isInput,
5181
+ os as isIntegerBetween,
5064
5182
  M as isNull,
5065
- lt as isNumber,
5183
+ dt as isNumber,
5066
5184
  m as isObject,
5067
- A as isObjectNotArray,
5185
+ N as isObjectNotArray,
5068
5186
  rt as isSelected,
5069
- ri as isSelectedByList,
5070
- R as isString,
5071
- It as isWindow,
5187
+ as as isSelectedByList,
5188
+ P as isString,
5189
+ xt as isWindow,
5072
5190
  J as random,
5073
- ni as removeCommonPrefix,
5074
- oi as replaceComponentName,
5191
+ cs as removeCommonPrefix,
5192
+ us as replaceComponentName,
5075
5193
  K as replaceRecursive,
5076
- ai as replaceTemplate,
5077
- ci as resizeImageByMax,
5078
- ui as secondToTime,
5194
+ hs as replaceTemplate,
5195
+ ls as resizeImageByMax,
5196
+ ds as secondToTime,
5079
5197
  Tt as setElementItem,
5080
- hi as setValues,
5081
- li as splice,
5082
- pe as strFill,
5083
- Z as toArray,
5084
- Se as toCamelCase,
5085
- di as toCamelCaseFirst,
5086
- B as toDate,
5087
- gi as toKebabCase,
5198
+ gs as setValues,
5199
+ fs as splice,
5200
+ ve as strFill,
5201
+ $e as strSplit,
5202
+ V as toArray,
5203
+ Ce as toCamelCase,
5204
+ ms as toCamelCaseFirst,
5205
+ F as toDate,
5206
+ ys as toKebabCase,
5088
5207
  k as toNumber,
5089
- fi as toNumberByMax,
5090
- De as toPercent,
5091
- mi as toPercentBy100,
5092
- Bt as transformation,
5093
- yi as uint8ArrayToBase64,
5094
- be as uniqueArray,
5095
- $i as writeClipboardData
5208
+ $s as toNumberByMax,
5209
+ ke as toPercent,
5210
+ ps as toPercentBy100,
5211
+ Ft as transformation,
5212
+ ws as uint8ArrayToBase64,
5213
+ De as uniqueArray,
5214
+ bs as writeClipboardData
5096
5215
  };