@dxtmisha/functional-basic 0.1.4 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/Datetime.d.ts +7 -0
- package/dist/functions/blobToBase64.d.ts +7 -0
- package/dist/functions/getElementImage.d.ts +7 -0
- package/dist/functions/goScrollSmooth.d.ts +9 -0
- package/dist/functions/isDomData.d.ts +6 -0
- package/dist/functions/removeCommonPrefix.d.ts +8 -0
- package/dist/functions/resizeImageByMax.d.ts +18 -0
- package/dist/functions/uint8ArrayToBase64.d.ts +8 -0
- package/dist/library.d.ts +7 -0
- package/dist/library.js +442 -352
- package/package.json +1 -1
- package/dist/classes/__tests__/Api.test.d.ts +0 -4
- package/dist/classes/__tests__/ApiDefault.test.d.ts +0 -1
- package/dist/classes/__tests__/ApiHeaders.test.d.ts +0 -1
- package/dist/classes/__tests__/ApiPreparation.test.d.ts +0 -1
- package/dist/classes/__tests__/ApiResponse.test.d.ts +0 -4
- package/dist/classes/__tests__/ApiStatus.test.d.ts +0 -1
- package/dist/classes/__tests__/Meta.test.d.ts +0 -4
- package/dist/classes/__tests__/MetaManager.test.d.ts +0 -4
- package/dist/classes/__tests__/MetaOg.test.d.ts +0 -4
- package/dist/classes/__tests__/MetaTwitter.test.d.ts +0 -4
package/dist/library.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var c = (i, t, e) =>
|
|
4
|
-
import { geo as
|
|
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
5
|
function L(i, t) {
|
|
6
6
|
return t ? Object.assign({}, i, t) : Object.assign({}, i);
|
|
7
7
|
}
|
|
@@ -51,10 +51,10 @@ function D(i, t) {
|
|
|
51
51
|
}
|
|
52
52
|
return !1;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function k(i) {
|
|
55
55
|
return m(i) && !Array.isArray(i);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function R(i) {
|
|
58
58
|
return typeof i == "string";
|
|
59
59
|
}
|
|
60
60
|
function j(i) {
|
|
@@ -63,7 +63,7 @@ function j(i) {
|
|
|
63
63
|
function l() {
|
|
64
64
|
return typeof window != "undefined" && !!window.document;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ct(i) {
|
|
67
67
|
switch (typeof i) {
|
|
68
68
|
case "number":
|
|
69
69
|
return !0;
|
|
@@ -73,7 +73,7 @@ function at(i) {
|
|
|
73
73
|
return !1;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function C(i) {
|
|
77
77
|
if (typeof i == "number")
|
|
78
78
|
return i;
|
|
79
79
|
if (!i)
|
|
@@ -81,18 +81,21 @@ function k(i) {
|
|
|
81
81
|
let t = i.replace(/[^\d., ]+/ig, "");
|
|
82
82
|
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
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return q(i) ? !1 : Array.isArray(t) ? t.includes(i) :
|
|
84
|
+
function st(i, t) {
|
|
85
|
+
return q(i) ? !1 : Array.isArray(t) ? t.includes(i) : ct(i) && ct(t) ? C(i) === C(t) : i === t;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function At(i) {
|
|
88
88
|
return i instanceof Function || typeof i == "function";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return
|
|
90
|
+
function I(i) {
|
|
91
|
+
return At(i) ? i() : i;
|
|
92
|
+
}
|
|
93
|
+
function rt() {
|
|
94
|
+
return location.href.startsWith("data:");
|
|
92
95
|
}
|
|
93
|
-
const
|
|
94
|
-
let
|
|
95
|
-
class
|
|
96
|
+
const G = {};
|
|
97
|
+
let ut = "ui-storage";
|
|
98
|
+
class T {
|
|
96
99
|
/**
|
|
97
100
|
* Constructor
|
|
98
101
|
* @param name value name/ название значения
|
|
@@ -103,9 +106,9 @@ class O {
|
|
|
103
106
|
c(this, "age");
|
|
104
107
|
this.name = t, this.isSession = e;
|
|
105
108
|
const s = `${e ? "session" : "storage"}#${t}`;
|
|
106
|
-
if (s in
|
|
107
|
-
return
|
|
108
|
-
this.make(),
|
|
109
|
+
if (s in G)
|
|
110
|
+
return G[s];
|
|
111
|
+
this.make(), G[s] = this;
|
|
109
112
|
}
|
|
110
113
|
/**
|
|
111
114
|
* Changing the prefix in key names. Should be called at the beginning of the code.
|
|
@@ -114,7 +117,7 @@ class O {
|
|
|
114
117
|
* @param newPrefix new prefix/ новый префикс
|
|
115
118
|
*/
|
|
116
119
|
static setPrefix(t) {
|
|
117
|
-
|
|
120
|
+
ut = t;
|
|
118
121
|
}
|
|
119
122
|
/**
|
|
120
123
|
* Getting data from local storage.
|
|
@@ -137,7 +140,7 @@ class O {
|
|
|
137
140
|
*/
|
|
138
141
|
set(t) {
|
|
139
142
|
var e;
|
|
140
|
-
return this.value =
|
|
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({
|
|
141
144
|
value: this.value,
|
|
142
145
|
age: this.age
|
|
143
146
|
})), this.value;
|
|
@@ -174,8 +177,11 @@ class O {
|
|
|
174
177
|
* Возвращает объект для работы с хранилищем.
|
|
175
178
|
*/
|
|
176
179
|
getMethod() {
|
|
177
|
-
if (l())
|
|
178
|
-
|
|
180
|
+
if (l() && !rt()) {
|
|
181
|
+
const t = this.isSession ? window == null ? void 0 : window.sessionStorage : window == null ? void 0 : window.localStorage;
|
|
182
|
+
if (t)
|
|
183
|
+
return t;
|
|
184
|
+
}
|
|
179
185
|
}
|
|
180
186
|
/**
|
|
181
187
|
* Getting the storage key name.
|
|
@@ -183,7 +189,7 @@ class O {
|
|
|
183
189
|
* Получение имени ключа в хранилище.
|
|
184
190
|
*/
|
|
185
191
|
getIndex() {
|
|
186
|
-
return `${
|
|
192
|
+
return `${ut}__${this.name}`;
|
|
187
193
|
}
|
|
188
194
|
/**
|
|
189
195
|
* Getting data from storage.
|
|
@@ -275,7 +281,7 @@ const jt = "geo-code", p = class p {
|
|
|
275
281
|
* Возвращает полный список стран.
|
|
276
282
|
*/
|
|
277
283
|
static getList() {
|
|
278
|
-
return
|
|
284
|
+
return Ut;
|
|
279
285
|
}
|
|
280
286
|
/**
|
|
281
287
|
* Returns the data about the country by its full code.
|
|
@@ -296,7 +302,7 @@ const jt = "geo-code", p = class p {
|
|
|
296
302
|
*/
|
|
297
303
|
static getByCodeFull(t) {
|
|
298
304
|
return this.getList().find(
|
|
299
|
-
(e) =>
|
|
305
|
+
(e) => st(t, [
|
|
300
306
|
`${e.language}-${e.country}`,
|
|
301
307
|
`${e.country}-${e.language}`
|
|
302
308
|
])
|
|
@@ -432,27 +438,27 @@ const jt = "geo-code", p = class p {
|
|
|
432
438
|
});
|
|
433
439
|
}
|
|
434
440
|
};
|
|
435
|
-
c(p, "storage", new
|
|
436
|
-
let
|
|
437
|
-
function
|
|
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 Nt(i) {
|
|
438
444
|
return l() && i === window;
|
|
439
445
|
}
|
|
440
446
|
function A(i) {
|
|
441
447
|
var t;
|
|
442
448
|
if (l())
|
|
443
|
-
return
|
|
449
|
+
return Nt(i) ? document.body : R(i) ? (t = document.querySelector(i)) != null ? t : void 0 : i;
|
|
444
450
|
}
|
|
445
|
-
function
|
|
446
|
-
return
|
|
451
|
+
function ht(i) {
|
|
452
|
+
return Nt(i) ? i : A(i);
|
|
447
453
|
}
|
|
448
|
-
function
|
|
454
|
+
function Ht(i) {
|
|
449
455
|
var t;
|
|
450
456
|
return !!((t = A(i)) != null && t.closest("html"));
|
|
451
457
|
}
|
|
452
|
-
function
|
|
458
|
+
function z(i) {
|
|
453
459
|
return Array.isArray(i) ? i : [i];
|
|
454
460
|
}
|
|
455
|
-
class
|
|
461
|
+
class lt {
|
|
456
462
|
/**
|
|
457
463
|
* Classes Constructor
|
|
458
464
|
* @param elementSelector element/ элемент
|
|
@@ -494,7 +500,7 @@ class ht {
|
|
|
494
500
|
*/
|
|
495
501
|
c(this, "listenerRecent", (t) => {
|
|
496
502
|
var e, s;
|
|
497
|
-
|
|
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();
|
|
498
504
|
});
|
|
499
505
|
/**
|
|
500
506
|
* Event states.
|
|
@@ -503,7 +509,7 @@ class ht {
|
|
|
503
509
|
*/
|
|
504
510
|
c(this, "activity", !1);
|
|
505
511
|
c(this, "activityItems", []);
|
|
506
|
-
this.listener = s, this.options = n, this.detail = o, this.element =
|
|
512
|
+
this.listener = s, this.options = n, this.detail = o, this.element = ht(t), this.elementControl = A(t), this.type = z(e);
|
|
507
513
|
}
|
|
508
514
|
/**
|
|
509
515
|
* Checks whether event listening is currently enabled.
|
|
@@ -523,7 +529,7 @@ class ht {
|
|
|
523
529
|
* @param elementSelector element/ элемент
|
|
524
530
|
*/
|
|
525
531
|
setElement(t) {
|
|
526
|
-
const e =
|
|
532
|
+
const e = ht(t);
|
|
527
533
|
return this.elementControlEdit || (this.elementControl = A(t)), this.element = e, this.reset(), this;
|
|
528
534
|
}
|
|
529
535
|
/**
|
|
@@ -542,7 +548,7 @@ class ht {
|
|
|
542
548
|
* @param type type/ тип
|
|
543
549
|
*/
|
|
544
550
|
setType(t) {
|
|
545
|
-
return this.type =
|
|
551
|
+
return this.type = z(t), this.reset(), this;
|
|
546
552
|
}
|
|
547
553
|
/**
|
|
548
554
|
* Modifies the object that receives the notification.
|
|
@@ -688,7 +694,7 @@ class ht {
|
|
|
688
694
|
return !1;
|
|
689
695
|
}
|
|
690
696
|
}
|
|
691
|
-
const
|
|
697
|
+
const dt = "ui-loading", V = class V {
|
|
692
698
|
/**
|
|
693
699
|
* Check if the loader is active now.
|
|
694
700
|
*
|
|
@@ -723,7 +729,7 @@ const lt = "ui-loading", K = class K {
|
|
|
723
729
|
* @param element element/ элемент
|
|
724
730
|
*/
|
|
725
731
|
static registrationEvent(t, e) {
|
|
726
|
-
l() && new
|
|
732
|
+
l() && new lt(window, dt, t).setElementControl(e).start();
|
|
727
733
|
}
|
|
728
734
|
/**
|
|
729
735
|
* Calls the event listener.
|
|
@@ -735,8 +741,8 @@ const lt = "ui-loading", K = class K {
|
|
|
735
741
|
(t = this.event) == null || t.dispatch({ loading: this.is() });
|
|
736
742
|
}
|
|
737
743
|
};
|
|
738
|
-
c(
|
|
739
|
-
let x =
|
|
744
|
+
c(V, "value", 0), c(V, "event"), l() && (V.event = new lt(window, dt));
|
|
745
|
+
let x = V;
|
|
740
746
|
class zt {
|
|
741
747
|
constructor() {
|
|
742
748
|
/** Default headers/ Заголовки по умолчанию */
|
|
@@ -764,11 +770,11 @@ class zt {
|
|
|
764
770
|
* Изменяет данные заголовка по умолчанию.
|
|
765
771
|
*/
|
|
766
772
|
set(t) {
|
|
767
|
-
return
|
|
773
|
+
return k(t) && (this.headers = t), this;
|
|
768
774
|
}
|
|
769
775
|
}
|
|
770
776
|
var S = /* @__PURE__ */ ((i) => (i.get = "GET", i.post = "POST", i.put = "PUT", i.delete = "DELETE", i))(S || {});
|
|
771
|
-
class
|
|
777
|
+
class Zt {
|
|
772
778
|
constructor() {
|
|
773
779
|
/** Default request data/ Данные запроса по умолчанию */
|
|
774
780
|
c(this, "value");
|
|
@@ -800,7 +806,7 @@ class Ht {
|
|
|
800
806
|
if (e) {
|
|
801
807
|
if (t instanceof FormData)
|
|
802
808
|
this.addByFormData(t, e);
|
|
803
|
-
else if (
|
|
809
|
+
else if (k(t))
|
|
804
810
|
return L(e, t);
|
|
805
811
|
}
|
|
806
812
|
return t;
|
|
@@ -825,7 +831,7 @@ class Ht {
|
|
|
825
831
|
t.has(s) || t.set(s, e[s]);
|
|
826
832
|
}
|
|
827
833
|
}
|
|
828
|
-
class
|
|
834
|
+
class Vt {
|
|
829
835
|
constructor() {
|
|
830
836
|
c(this, "value");
|
|
831
837
|
}
|
|
@@ -920,7 +926,7 @@ class Zt {
|
|
|
920
926
|
* @param response response data/ данные ответа
|
|
921
927
|
*/
|
|
922
928
|
setLastResponse(t) {
|
|
923
|
-
return t &&
|
|
929
|
+
return t && k(t) && "message" in t && this.setLastMessage(String(t.message)), this.set({ lastResponse: t }), this;
|
|
924
930
|
}
|
|
925
931
|
/**
|
|
926
932
|
* Sets messages from the last request.
|
|
@@ -943,14 +949,14 @@ class Zt {
|
|
|
943
949
|
}
|
|
944
950
|
}
|
|
945
951
|
async function Kt(i) {
|
|
946
|
-
const t =
|
|
952
|
+
const t = I(i);
|
|
947
953
|
return t instanceof Promise ? await t : t;
|
|
948
954
|
}
|
|
949
955
|
function Y(i, t) {
|
|
950
956
|
return Math.floor(Math.random() * (t - i + 1) + i);
|
|
951
957
|
}
|
|
952
|
-
const
|
|
953
|
-
class
|
|
958
|
+
const gt = "d-response-loading";
|
|
959
|
+
class Yt {
|
|
954
960
|
/**
|
|
955
961
|
* Constructor
|
|
956
962
|
* @param requestDefault default request processor/ процессор запросов по умолчанию
|
|
@@ -993,7 +999,7 @@ class Vt {
|
|
|
993
999
|
* @param response data for caching/ данные для кеширования
|
|
994
1000
|
*/
|
|
995
1001
|
add(t) {
|
|
996
|
-
return this.response.push(...
|
|
1002
|
+
return this.response.push(...z(t)), this;
|
|
997
1003
|
}
|
|
998
1004
|
/**
|
|
999
1005
|
* Sets developer mode.
|
|
@@ -1030,7 +1036,7 @@ class Vt {
|
|
|
1030
1036
|
* @param item cached item/ кешированный элемент
|
|
1031
1037
|
*/
|
|
1032
1038
|
isDisable(t) {
|
|
1033
|
-
return !!
|
|
1039
|
+
return !!I(t == null ? void 0 : t.disable);
|
|
1034
1040
|
}
|
|
1035
1041
|
/**
|
|
1036
1042
|
* Checks if the path matches the cached one.
|
|
@@ -1070,7 +1076,7 @@ class Vt {
|
|
|
1070
1076
|
*/
|
|
1071
1077
|
isResponse(t, e) {
|
|
1072
1078
|
const s = this.requestDefault.request(t == null ? void 0 : t.request);
|
|
1073
|
-
return e === s || s === "*any" || D(e) && D(s) &&
|
|
1079
|
+
return e === s || s === "*any" || D(e) && D(s) && k(e) && k(s) && !(e instanceof FormData) && !(s instanceof FormData) && Object.values(e).length === Object.values(s).length && Object.entries(s).reduce(
|
|
1074
1080
|
(n, [o, a]) => n && (a === (e == null ? void 0 : e[o]) || a === "*any"),
|
|
1075
1081
|
!0
|
|
1076
1082
|
);
|
|
@@ -1085,7 +1091,7 @@ class Vt {
|
|
|
1085
1091
|
fetch(t, e) {
|
|
1086
1092
|
return this.startResponseLoading(), new Promise((s) => {
|
|
1087
1093
|
Kt(
|
|
1088
|
-
|
|
1094
|
+
At(t.response) ? t.response(e) : t.response
|
|
1089
1095
|
).then((n) => {
|
|
1090
1096
|
t != null && t.lag ? (x.show(), setTimeout(() => {
|
|
1091
1097
|
this.stopResponseLoading(), s(n), x.hide();
|
|
@@ -1099,7 +1105,7 @@ class Vt {
|
|
|
1099
1105
|
* Включить загрузку для эмуляции запроса.
|
|
1100
1106
|
*/
|
|
1101
1107
|
startResponseLoading() {
|
|
1102
|
-
this.loading && clearTimeout(this.loading), l() && document.body.classList.add(
|
|
1108
|
+
this.loading && clearTimeout(this.loading), l() && document.body.classList.add(gt);
|
|
1103
1109
|
}
|
|
1104
1110
|
/**
|
|
1105
1111
|
* Disable loading for request emulation.
|
|
@@ -1108,11 +1114,11 @@ class Vt {
|
|
|
1108
1114
|
*/
|
|
1109
1115
|
stopResponseLoading() {
|
|
1110
1116
|
this.loading = setTimeout(() => {
|
|
1111
|
-
this.loading = void 0, l() && document.body.classList.remove(
|
|
1117
|
+
this.loading = void 0, l() && document.body.classList.remove(gt);
|
|
1112
1118
|
}, 1200);
|
|
1113
1119
|
}
|
|
1114
1120
|
}
|
|
1115
|
-
class
|
|
1121
|
+
class qt {
|
|
1116
1122
|
constructor() {
|
|
1117
1123
|
/** Function for call before the request/ Функция для вызова перед запросом */
|
|
1118
1124
|
c(this, "callback");
|
|
@@ -1183,7 +1189,7 @@ class Yt {
|
|
|
1183
1189
|
return this.callbackEnd && (e = await this.callbackEnd(t)), e;
|
|
1184
1190
|
}
|
|
1185
1191
|
}
|
|
1186
|
-
const
|
|
1192
|
+
const b = class b {
|
|
1187
1193
|
/**
|
|
1188
1194
|
* Is the server local.
|
|
1189
1195
|
*
|
|
@@ -1216,7 +1222,7 @@ const w = class w {
|
|
|
1216
1222
|
* @param api adding a path to the site’s API/ добавление пути к API сайта
|
|
1217
1223
|
*/
|
|
1218
1224
|
static getUrl(t, e = !0) {
|
|
1219
|
-
return `${e ? this.url : ""}${t}`.replace("{locale}",
|
|
1225
|
+
return `${e ? this.url : ""}${t}`.replace("{locale}", w.getLocation()).replace("{country}", w.getCountry()).replace("{language}", w.getLanguage());
|
|
1220
1226
|
}
|
|
1221
1227
|
/**
|
|
1222
1228
|
* Getting data for the body.
|
|
@@ -1229,7 +1235,7 @@ const w = class w {
|
|
|
1229
1235
|
if (t instanceof FormData)
|
|
1230
1236
|
return t;
|
|
1231
1237
|
if (e !== S.get && D(t))
|
|
1232
|
-
return
|
|
1238
|
+
return R(t) ? t : JSON.stringify(t);
|
|
1233
1239
|
}
|
|
1234
1240
|
/**
|
|
1235
1241
|
* Getting data for the body of the get method.
|
|
@@ -1253,7 +1259,7 @@ const w = class w {
|
|
|
1253
1259
|
* Изменяет данные заголовка по умолчанию.
|
|
1254
1260
|
*/
|
|
1255
1261
|
static setHeaders(t) {
|
|
1256
|
-
return this.headers.set(t),
|
|
1262
|
+
return this.headers.set(t), b;
|
|
1257
1263
|
}
|
|
1258
1264
|
/**
|
|
1259
1265
|
* Modifies the default request data.
|
|
@@ -1261,7 +1267,7 @@ const w = class w {
|
|
|
1261
1267
|
* Изменяет данные запроса по умолчанию.
|
|
1262
1268
|
*/
|
|
1263
1269
|
static setRequestDefault(t) {
|
|
1264
|
-
return this.requestDefault.set(t),
|
|
1270
|
+
return this.requestDefault.set(t), b;
|
|
1265
1271
|
}
|
|
1266
1272
|
/**
|
|
1267
1273
|
* Change the base path to the script.
|
|
@@ -1270,7 +1276,7 @@ const w = class w {
|
|
|
1270
1276
|
* @param url path to the script/ путь к скрипту
|
|
1271
1277
|
*/
|
|
1272
1278
|
static setUrl(t) {
|
|
1273
|
-
return this.url = t,
|
|
1279
|
+
return this.url = t, b;
|
|
1274
1280
|
}
|
|
1275
1281
|
/**
|
|
1276
1282
|
* The function is modified for a call before the request.
|
|
@@ -1279,7 +1285,7 @@ const w = class w {
|
|
|
1279
1285
|
* @param callback function for call/ функция для вызова
|
|
1280
1286
|
*/
|
|
1281
1287
|
static setPreparation(t) {
|
|
1282
|
-
return this.preparation.set(t),
|
|
1288
|
+
return this.preparation.set(t), b;
|
|
1283
1289
|
}
|
|
1284
1290
|
/**
|
|
1285
1291
|
* Modify the function after the request.
|
|
@@ -1288,7 +1294,7 @@ const w = class w {
|
|
|
1288
1294
|
* @param callback function for call/ функция для вызова
|
|
1289
1295
|
*/
|
|
1290
1296
|
static setEnd(t) {
|
|
1291
|
-
return this.preparation.setEnd(t),
|
|
1297
|
+
return this.preparation.setEnd(t), b;
|
|
1292
1298
|
}
|
|
1293
1299
|
/**
|
|
1294
1300
|
* To execute a request.
|
|
@@ -1297,7 +1303,7 @@ const w = class w {
|
|
|
1297
1303
|
* @param pathRequest query string or list of parameters/ строка запроса или список параметров
|
|
1298
1304
|
*/
|
|
1299
1305
|
static async request(t) {
|
|
1300
|
-
return
|
|
1306
|
+
return R(t) ? await this.fetch({
|
|
1301
1307
|
path: t
|
|
1302
1308
|
}) : await this.fetch(t);
|
|
1303
1309
|
}
|
|
@@ -1408,11 +1414,11 @@ const w = class w {
|
|
|
1408
1414
|
headers: u = {},
|
|
1409
1415
|
type: h = "application/json;charset=UTF-8",
|
|
1410
1416
|
init: f = {}
|
|
1411
|
-
} = t, d = o != null ? o : this.getUrl(n, s),
|
|
1417
|
+
} = t, d = o != null ? o : this.getUrl(n, s), E = `${d}${this.getBodyForGet(e, d, a)}`, Q = this.headers.get(u, h), M = L(f, {
|
|
1412
1418
|
method: a,
|
|
1413
1419
|
body: this.getBody(e, a)
|
|
1414
1420
|
});
|
|
1415
|
-
return Q && (
|
|
1421
|
+
return Q && (M.headers = Q), await fetch(E, M);
|
|
1416
1422
|
}
|
|
1417
1423
|
/**
|
|
1418
1424
|
* Transforms data if needed.
|
|
@@ -1422,8 +1428,8 @@ const w = class w {
|
|
|
1422
1428
|
* @param toData is it necessary to process the data/ нужно ли обрабатывать данные
|
|
1423
1429
|
*/
|
|
1424
1430
|
static makeData(t, e) {
|
|
1425
|
-
if (this.status.setLastResponse(t), t && e &&
|
|
1426
|
-
if (
|
|
1431
|
+
if (this.status.setLastResponse(t), t && e && k(t) && "data" in t) {
|
|
1432
|
+
if (k(t.data)) {
|
|
1427
1433
|
const s = L(t.data);
|
|
1428
1434
|
return "success" in t && (s.success = t.success), s;
|
|
1429
1435
|
}
|
|
@@ -1432,9 +1438,9 @@ const w = class w {
|
|
|
1432
1438
|
return t;
|
|
1433
1439
|
}
|
|
1434
1440
|
};
|
|
1435
|
-
c(
|
|
1436
|
-
let
|
|
1437
|
-
class
|
|
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 H = b;
|
|
1443
|
+
class Ce {
|
|
1438
1444
|
/**
|
|
1439
1445
|
* Constructor
|
|
1440
1446
|
* @param name channel name/ название канала
|
|
@@ -1454,7 +1460,7 @@ class Se {
|
|
|
1454
1460
|
});
|
|
1455
1461
|
if (this.callback = e, l())
|
|
1456
1462
|
try {
|
|
1457
|
-
this.channel = new BroadcastChannel(`${
|
|
1463
|
+
this.channel = new BroadcastChannel(`${Jt()}__${t}`), this.channel.onmessage = this.update;
|
|
1458
1464
|
} catch (s) {
|
|
1459
1465
|
console.error(`BroadcastMessage ${t}:`, s);
|
|
1460
1466
|
}
|
|
@@ -1479,8 +1485,8 @@ class Se {
|
|
|
1479
1485
|
return this.callback = t, this;
|
|
1480
1486
|
}
|
|
1481
1487
|
}
|
|
1482
|
-
const
|
|
1483
|
-
class
|
|
1488
|
+
const Jt = () => new T("__broadcast-name").get(() => `name_${Y(1e6, 9999999)}`);
|
|
1489
|
+
class Qt {
|
|
1484
1490
|
/**
|
|
1485
1491
|
* Constructor
|
|
1486
1492
|
* @param callback function for the cache/ функция для кэша
|
|
@@ -1543,7 +1549,7 @@ class Jt {
|
|
|
1543
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;
|
|
1544
1550
|
}
|
|
1545
1551
|
}
|
|
1546
|
-
class
|
|
1552
|
+
class Mt {
|
|
1547
1553
|
constructor() {
|
|
1548
1554
|
c(this, "cache", {});
|
|
1549
1555
|
}
|
|
@@ -1577,10 +1583,10 @@ class Qt {
|
|
|
1577
1583
|
* @param callback function for the cache/ функция для кэша
|
|
1578
1584
|
*/
|
|
1579
1585
|
getCacheItem(t, e) {
|
|
1580
|
-
return t in this.cache || (this.cache[t] = new
|
|
1586
|
+
return t in this.cache || (this.cache[t] = new Qt(e)), this.cache[t];
|
|
1581
1587
|
}
|
|
1582
1588
|
}
|
|
1583
|
-
const
|
|
1589
|
+
const O = class O {
|
|
1584
1590
|
/**
|
|
1585
1591
|
* Getting data for the cache, and if there is no cache, it performs a function to save the cache.
|
|
1586
1592
|
*
|
|
@@ -1593,9 +1599,9 @@ const _ = class _ {
|
|
|
1593
1599
|
return this.cache.get(t, e, s);
|
|
1594
1600
|
}
|
|
1595
1601
|
};
|
|
1596
|
-
c(
|
|
1597
|
-
let
|
|
1598
|
-
function
|
|
1602
|
+
c(O, "cache"), O.cache = new Mt();
|
|
1603
|
+
let ft = O;
|
|
1604
|
+
function It(i, t = !1) {
|
|
1599
1605
|
if (typeof i == "string") {
|
|
1600
1606
|
const e = i.trim();
|
|
1601
1607
|
switch (e) {
|
|
@@ -1647,14 +1653,14 @@ class Et {
|
|
|
1647
1653
|
this.storage.set(t);
|
|
1648
1654
|
}
|
|
1649
1655
|
}
|
|
1650
|
-
c(Et, "storage", new
|
|
1651
|
-
const
|
|
1656
|
+
c(Et, "storage", new T(Xt));
|
|
1657
|
+
const X = {}, at = class at {
|
|
1652
1658
|
constructor(t) {
|
|
1653
1659
|
c(this, "value");
|
|
1654
1660
|
c(this, "options", {});
|
|
1655
|
-
if (this.name = t, t in
|
|
1656
|
-
return
|
|
1657
|
-
this.value =
|
|
1661
|
+
if (this.name = t, t in tt)
|
|
1662
|
+
return tt[t];
|
|
1663
|
+
this.value = X == null ? void 0 : X[t], tt[t] = this;
|
|
1658
1664
|
}
|
|
1659
1665
|
/**
|
|
1660
1666
|
* Get data or update if none.
|
|
@@ -1674,7 +1680,7 @@ const M = {}, ot = class ot {
|
|
|
1674
1680
|
* @param options additional parameters/ дополнительные параметры
|
|
1675
1681
|
*/
|
|
1676
1682
|
set(t, e) {
|
|
1677
|
-
this.value =
|
|
1683
|
+
this.value = I(t), Object.assign(this.options, e), this.update();
|
|
1678
1684
|
}
|
|
1679
1685
|
/**
|
|
1680
1686
|
* Delete cookie data.
|
|
@@ -1700,7 +1706,7 @@ const M = {}, ot = class ot {
|
|
|
1700
1706
|
*/
|
|
1701
1707
|
update() {
|
|
1702
1708
|
var t, e, s, n, o;
|
|
1703
|
-
if (l() && !Et.get()) {
|
|
1709
|
+
if (l() && !rt() && !Et.get()) {
|
|
1704
1710
|
const a = String((t = this.value) != null ? t : "");
|
|
1705
1711
|
document.cookie = [
|
|
1706
1712
|
`${encodeURIComponent(this.name)}=${encodeURIComponent(a)}`,
|
|
@@ -1718,27 +1724,27 @@ const M = {}, ot = class ot {
|
|
|
1718
1724
|
static updateData() {
|
|
1719
1725
|
for (const t of document.cookie.split(";")) {
|
|
1720
1726
|
const [e, s] = t.trim().split("=");
|
|
1721
|
-
e && D(s) && (
|
|
1727
|
+
e && D(s) && (X[e] = It(s));
|
|
1722
1728
|
}
|
|
1723
1729
|
}
|
|
1724
1730
|
};
|
|
1725
|
-
l() &&
|
|
1726
|
-
let
|
|
1727
|
-
const
|
|
1731
|
+
l() && !rt() && at.updateData();
|
|
1732
|
+
let mt = at;
|
|
1733
|
+
const tt = {};
|
|
1728
1734
|
function B(i) {
|
|
1729
|
-
var n, o, a, u, h, f, d,
|
|
1735
|
+
var n, o, a, u, h, f, d, E;
|
|
1730
1736
|
if (i instanceof Date)
|
|
1731
1737
|
return i;
|
|
1732
1738
|
if (q(i))
|
|
1733
1739
|
return /* @__PURE__ */ new Date();
|
|
1734
1740
|
if (typeof i == "number")
|
|
1735
1741
|
return new Date(i);
|
|
1736
|
-
let t = i, e =
|
|
1737
|
-
i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (Q,
|
|
1738
|
-
const s = (
|
|
1739
|
-
return /* @__PURE__ */ new Date(`${s}${e}`);
|
|
1742
|
+
let t = i, e = w.getTimezoneFormat().trim();
|
|
1743
|
+
i.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (Q, M, Rt) => (t = M, e = Rt.trim(), Q));
|
|
1744
|
+
const s = (E = (d = (f = (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 ? 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 ? E : t.replace(" ", "T");
|
|
1745
|
+
return /* @__PURE__ */ new Date(`${s.trim()}${e}`);
|
|
1740
1746
|
}
|
|
1741
|
-
function
|
|
1747
|
+
function _t(i, t) {
|
|
1742
1748
|
return g(i, (e) => e == null ? void 0 : e[t]);
|
|
1743
1749
|
}
|
|
1744
1750
|
class J {
|
|
@@ -1747,13 +1753,13 @@ class J {
|
|
|
1747
1753
|
* @param code country code, full form language-country or one of them/
|
|
1748
1754
|
* код страны, полный вид язык-страна или один из них
|
|
1749
1755
|
*/
|
|
1750
|
-
constructor(t =
|
|
1756
|
+
constructor(t = w.getLocation()) {
|
|
1751
1757
|
c(this, "geo");
|
|
1752
|
-
this.geo =
|
|
1758
|
+
this.geo = w.find(t);
|
|
1753
1759
|
const e = this.getLocation();
|
|
1754
|
-
if (e in
|
|
1755
|
-
return
|
|
1756
|
-
|
|
1760
|
+
if (e in et)
|
|
1761
|
+
return et[e];
|
|
1762
|
+
et[e] = this;
|
|
1757
1763
|
}
|
|
1758
1764
|
/**
|
|
1759
1765
|
* Returns an instance of the class according to the specified country code.
|
|
@@ -1762,7 +1768,7 @@ class J {
|
|
|
1762
1768
|
* @param code country code, full form language-country or one of them/
|
|
1763
1769
|
* код страны, полный вид язык-страна или один из них
|
|
1764
1770
|
*/
|
|
1765
|
-
static getInstance(t =
|
|
1771
|
+
static getInstance(t = w.getLocation()) {
|
|
1766
1772
|
return new J(t);
|
|
1767
1773
|
}
|
|
1768
1774
|
/**
|
|
@@ -1815,7 +1821,7 @@ class J {
|
|
|
1815
1821
|
type: "language",
|
|
1816
1822
|
style: e
|
|
1817
1823
|
};
|
|
1818
|
-
return this.display(
|
|
1824
|
+
return this.display(w.getByCode(t).language, s);
|
|
1819
1825
|
}
|
|
1820
1826
|
/**
|
|
1821
1827
|
* Get display names of region.
|
|
@@ -1870,7 +1876,7 @@ class J {
|
|
|
1870
1876
|
*/
|
|
1871
1877
|
number(t, e) {
|
|
1872
1878
|
var s, n;
|
|
1873
|
-
return ((n = (s = this.numberObject(e)) == null ? void 0 : s.format) == null ? void 0 : n.call(s,
|
|
1879
|
+
return ((n = (s = this.numberObject(e)) == null ? void 0 : s.format) == null ? void 0 : n.call(s, C(t))) || t.toString();
|
|
1874
1880
|
}
|
|
1875
1881
|
/**
|
|
1876
1882
|
* Decimal point symbol.
|
|
@@ -1898,8 +1904,8 @@ class J {
|
|
|
1898
1904
|
}, o = t.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...a) => (n.currency = String(a[2]).toUpperCase(), String(a[1])));
|
|
1899
1905
|
if (s) {
|
|
1900
1906
|
const a = this.numberObject(n);
|
|
1901
|
-
return a ?
|
|
1902
|
-
a.formatToParts(
|
|
1907
|
+
return a ? _t(
|
|
1908
|
+
a.formatToParts(C(t)).filter((u) => ["literal", "currency"].indexOf(u.type) === -1),
|
|
1903
1909
|
"value"
|
|
1904
1910
|
).join("") : t.toString();
|
|
1905
1911
|
} else return "currency" in n ? this.number(
|
|
@@ -1953,8 +1959,8 @@ class J {
|
|
|
1953
1959
|
* в форматировании блока
|
|
1954
1960
|
*/
|
|
1955
1961
|
sizeFile(t, e = "byte") {
|
|
1956
|
-
const s =
|
|
1957
|
-
if (s > 1024 &&
|
|
1962
|
+
const s = C(t);
|
|
1963
|
+
if (s > 1024 && R(e))
|
|
1958
1964
|
switch (e) {
|
|
1959
1965
|
case "byte":
|
|
1960
1966
|
return this.sizeFile(s / 1024, "kilobyte");
|
|
@@ -1991,7 +1997,7 @@ class J {
|
|
|
1991
1997
|
* объект с некоторыми или всеми свойствами
|
|
1992
1998
|
*/
|
|
1993
1999
|
percentBy100(t, e) {
|
|
1994
|
-
return this.percent(
|
|
2000
|
+
return this.percent(C(t) / 100, e);
|
|
1995
2001
|
}
|
|
1996
2002
|
/**
|
|
1997
2003
|
* Применять форматирование, учитывающее множественное число, и языковые правила, связанные с множественным числом
|
|
@@ -2003,7 +2009,7 @@ class J {
|
|
|
2003
2009
|
*/
|
|
2004
2010
|
plural(t, e, s, n) {
|
|
2005
2011
|
var u;
|
|
2006
|
-
const o =
|
|
2012
|
+
const o = C(t), a = e.split("|");
|
|
2007
2013
|
if (a.length > 1)
|
|
2008
2014
|
try {
|
|
2009
2015
|
if (l()) {
|
|
@@ -2085,8 +2091,8 @@ class J {
|
|
|
2085
2091
|
* @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
|
|
2086
2092
|
*/
|
|
2087
2093
|
relativeLimit(t, e, s, n, o, a, u) {
|
|
2088
|
-
const h = B(t), f = s || /* @__PURE__ */ new Date(), d = new Date(f),
|
|
2089
|
-
return d.setDate(f.getDate() - e),
|
|
2094
|
+
const h = B(t), f = s || /* @__PURE__ */ new Date(), d = new Date(f), E = new Date(f);
|
|
2095
|
+
return d.setDate(f.getDate() - e), E.setDate(f.getDate() + e), h >= d && h <= E ? this.relative(
|
|
2090
2096
|
h,
|
|
2091
2097
|
n,
|
|
2092
2098
|
f
|
|
@@ -2110,7 +2116,7 @@ class J {
|
|
|
2110
2116
|
};
|
|
2111
2117
|
try {
|
|
2112
2118
|
if (l())
|
|
2113
|
-
return new Intl.RelativeTimeFormat(this.getLocation(), n).format(Math.round(
|
|
2119
|
+
return new Intl.RelativeTimeFormat(this.getLocation(), n).format(Math.round(C(t)), e);
|
|
2114
2120
|
} catch (o) {
|
|
2115
2121
|
console.error("relative: ", o);
|
|
2116
2122
|
}
|
|
@@ -2248,15 +2254,15 @@ class J {
|
|
|
2248
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;
|
|
2249
2255
|
}
|
|
2250
2256
|
}
|
|
2251
|
-
const
|
|
2252
|
-
class
|
|
2257
|
+
const et = {};
|
|
2258
|
+
class Bt {
|
|
2253
2259
|
/**
|
|
2254
2260
|
* Constructor
|
|
2255
2261
|
* @param date date for processing/ дата для обработки
|
|
2256
2262
|
* @param type type of date format for output/ тип формата даты вывода
|
|
2257
2263
|
* @param code country and language code/ код страны и языка
|
|
2258
2264
|
*/
|
|
2259
|
-
constructor(t, e = "date", s =
|
|
2265
|
+
constructor(t, e = "date", s = w.getLocation()) {
|
|
2260
2266
|
c(this, "date");
|
|
2261
2267
|
c(this, "hour24", !1);
|
|
2262
2268
|
c(this, "watch");
|
|
@@ -2327,10 +2333,7 @@ class It {
|
|
|
2327
2333
|
const s = e / 60 * -1;
|
|
2328
2334
|
if (t === "hour")
|
|
2329
2335
|
return this.getIntl().number(Math.trunc(s), { signDisplay: "always" });
|
|
2330
|
-
const n = this.
|
|
2331
|
-
signDisplay: "always",
|
|
2332
|
-
minimumIntegerDigits: 2
|
|
2333
|
-
}), o = s.toString().match(/.\d+/) ? "30" : "00";
|
|
2336
|
+
const n = this.toTimeZoneHourFormat(s), o = s.toString().match(/.\d+/) ? "30" : "00";
|
|
2334
2337
|
return t === "RFC" ? `${n}${o}` : `${n}:${o}`;
|
|
2335
2338
|
}
|
|
2336
2339
|
/**
|
|
@@ -2476,7 +2479,7 @@ class It {
|
|
|
2476
2479
|
* @param timeZone add time zone/ добавить временную зону
|
|
2477
2480
|
*/
|
|
2478
2481
|
standard(t = !0) {
|
|
2479
|
-
const e = new
|
|
2482
|
+
const e = new Bt(this.date, this.type, "en-GB"), s = [];
|
|
2480
2483
|
let n;
|
|
2481
2484
|
return e.setHour24(!0), this.type === "hour-minute" ? n = e.locale(this.type, {
|
|
2482
2485
|
year: "numeric",
|
|
@@ -2886,6 +2889,20 @@ class It {
|
|
|
2886
2889
|
cloneDayPrevious() {
|
|
2887
2890
|
return this.cloneClass().moveDayPrevious();
|
|
2888
2891
|
}
|
|
2892
|
+
/**
|
|
2893
|
+
* Returns the time zone hour format.
|
|
2894
|
+
*
|
|
2895
|
+
* Возвращает часовой формат временной зоны.
|
|
2896
|
+
* @param hour hour/ час
|
|
2897
|
+
*/
|
|
2898
|
+
toTimeZoneHourFormat(t) {
|
|
2899
|
+
l() && this.getIntl().number(Math.trunc(t), {
|
|
2900
|
+
signDisplay: "always",
|
|
2901
|
+
minimumIntegerDigits: 2
|
|
2902
|
+
});
|
|
2903
|
+
let e = Math.trunc(t).toString();
|
|
2904
|
+
return e.length < 2 && (e = `0${e}`), `${t >= 0 ? "+" : "-"}${e}`;
|
|
2905
|
+
}
|
|
2889
2906
|
/**
|
|
2890
2907
|
* Updating all values.
|
|
2891
2908
|
*
|
|
@@ -2901,12 +2918,12 @@ class It {
|
|
|
2901
2918
|
), this;
|
|
2902
2919
|
}
|
|
2903
2920
|
}
|
|
2904
|
-
const r = "@flag",
|
|
2921
|
+
const r = "@flag", W = class W {
|
|
2905
2922
|
/**
|
|
2906
2923
|
* Constructor
|
|
2907
2924
|
* @param code country and language code/ код страны и языка
|
|
2908
2925
|
*/
|
|
2909
|
-
constructor(t =
|
|
2926
|
+
constructor(t = w.getLocation()) {
|
|
2910
2927
|
this.code = t;
|
|
2911
2928
|
}
|
|
2912
2929
|
/**
|
|
@@ -2917,14 +2934,14 @@ const r = "@flag", P = class P {
|
|
|
2917
2934
|
*/
|
|
2918
2935
|
get(t = this.code) {
|
|
2919
2936
|
var s;
|
|
2920
|
-
const e =
|
|
2937
|
+
const e = w.find(t);
|
|
2921
2938
|
if (e) {
|
|
2922
2939
|
const n = this.getCountry(e);
|
|
2923
2940
|
return {
|
|
2924
2941
|
language: this.getLanguage(e),
|
|
2925
2942
|
country: n,
|
|
2926
2943
|
standard: e.standard,
|
|
2927
|
-
icon: (s =
|
|
2944
|
+
icon: (s = W.flags) == null ? void 0 : s[e.country],
|
|
2928
2945
|
label: n,
|
|
2929
2946
|
value: e.country
|
|
2930
2947
|
};
|
|
@@ -2957,7 +2974,7 @@ const r = "@flag", P = class P {
|
|
|
2957
2974
|
*/
|
|
2958
2975
|
getNational(t) {
|
|
2959
2976
|
return g(this.getList(t), (e) => {
|
|
2960
|
-
const s = new
|
|
2977
|
+
const s = new W(e.standard).get(e.standard);
|
|
2961
2978
|
return {
|
|
2962
2979
|
...e,
|
|
2963
2980
|
description: s == null ? void 0 : s.country,
|
|
@@ -2990,7 +3007,7 @@ const r = "@flag", P = class P {
|
|
|
2990
3007
|
* @param codes country code/ код страны
|
|
2991
3008
|
*/
|
|
2992
3009
|
getCodes(t) {
|
|
2993
|
-
return t != null ? t : Object.keys(
|
|
3010
|
+
return t != null ? t : Object.keys(W.flags);
|
|
2994
3011
|
}
|
|
2995
3012
|
/**
|
|
2996
3013
|
* Getting the name of the language.
|
|
@@ -3011,7 +3028,7 @@ const r = "@flag", P = class P {
|
|
|
3011
3028
|
return this.getLocation().countryName(t.country);
|
|
3012
3029
|
}
|
|
3013
3030
|
};
|
|
3014
|
-
c(
|
|
3031
|
+
c(W, "flags", {
|
|
3015
3032
|
AD: `${r}-ad`,
|
|
3016
3033
|
AE: `${r}-ae`,
|
|
3017
3034
|
AF: `${r}-af`,
|
|
@@ -3254,8 +3271,8 @@ c(P, "flags", {
|
|
|
3254
3271
|
ZM: `${r}-zm`,
|
|
3255
3272
|
ZW: `${r}-zw`
|
|
3256
3273
|
});
|
|
3257
|
-
let
|
|
3258
|
-
const
|
|
3274
|
+
let yt = W;
|
|
3275
|
+
const U = class U {
|
|
3259
3276
|
/**
|
|
3260
3277
|
* Getting an object with information about the phone code and country.
|
|
3261
3278
|
*
|
|
@@ -3365,12 +3382,12 @@ const W = class W {
|
|
|
3365
3382
|
* Формирование списка для карты.
|
|
3366
3383
|
*/
|
|
3367
3384
|
static makeList() {
|
|
3368
|
-
const t = g(
|
|
3385
|
+
const t = g(w.getList(), (e) => {
|
|
3369
3386
|
if (e != null && e.phoneMask)
|
|
3370
3387
|
return {
|
|
3371
3388
|
phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/, "")) || void 0,
|
|
3372
3389
|
within: (e == null ? void 0 : e.phoneWithin) || 0,
|
|
3373
|
-
mask:
|
|
3390
|
+
mask: z(e.phoneMask),
|
|
3374
3391
|
value: e.country
|
|
3375
3392
|
};
|
|
3376
3393
|
});
|
|
@@ -3434,9 +3451,9 @@ const W = class W {
|
|
|
3434
3451
|
return t.replace(/\*/, this.getWithinSymbol(e));
|
|
3435
3452
|
}
|
|
3436
3453
|
};
|
|
3437
|
-
c(
|
|
3438
|
-
let
|
|
3439
|
-
class
|
|
3454
|
+
c(U, "list", []), c(U, "map", {}), U.makeList(), U.makeMap();
|
|
3455
|
+
let $t = U, P;
|
|
3456
|
+
class ke {
|
|
3440
3457
|
/**
|
|
3441
3458
|
* Returns the value by its name.
|
|
3442
3459
|
*
|
|
@@ -3444,7 +3461,7 @@ class De {
|
|
|
3444
3461
|
* @param name property name/ название свойства
|
|
3445
3462
|
*/
|
|
3446
3463
|
static get(t) {
|
|
3447
|
-
return
|
|
3464
|
+
return P && (P == null ? void 0 : P[t]);
|
|
3448
3465
|
}
|
|
3449
3466
|
/**
|
|
3450
3467
|
* Adds data, this method works only once.
|
|
@@ -3453,7 +3470,7 @@ class De {
|
|
|
3453
3470
|
* @param data global data/ глобальные данные
|
|
3454
3471
|
*/
|
|
3455
3472
|
static add(t) {
|
|
3456
|
-
|
|
3473
|
+
P === void 0 && (P = L(t));
|
|
3457
3474
|
}
|
|
3458
3475
|
}
|
|
3459
3476
|
const F = class F {
|
|
@@ -3476,7 +3493,7 @@ const F = class F {
|
|
|
3476
3493
|
*/
|
|
3477
3494
|
static set(t, e) {
|
|
3478
3495
|
var n;
|
|
3479
|
-
const s =
|
|
3496
|
+
const s = I(e);
|
|
3480
3497
|
s !== ((n = this.hash) == null ? void 0 : n[t]) && (this.hash[t] = s, this.update());
|
|
3481
3498
|
}
|
|
3482
3499
|
/**
|
|
@@ -3510,7 +3527,7 @@ const F = class F {
|
|
|
3510
3527
|
const t = {};
|
|
3511
3528
|
return location.hash.replace(
|
|
3512
3529
|
/([\w-]+)[:=]([^;]+)/ig,
|
|
3513
|
-
(...e) => (t[String(e[1])] =
|
|
3530
|
+
(...e) => (t[String(e[1])] = It(e[2]), "")
|
|
3514
3531
|
), t;
|
|
3515
3532
|
}
|
|
3516
3533
|
/**
|
|
@@ -3537,8 +3554,8 @@ const F = class F {
|
|
|
3537
3554
|
}
|
|
3538
3555
|
};
|
|
3539
3556
|
c(F, "hash", {}), c(F, "watch", {}), c(F, "block", !1), l() && (F.reload(), addEventListener("hashchange", () => F.reload()));
|
|
3540
|
-
let
|
|
3541
|
-
const
|
|
3557
|
+
let pt = F;
|
|
3558
|
+
const it = "__UI_ICON", wt = 320, bt = "--LOAD--", K = class K {
|
|
3542
3559
|
/**
|
|
3543
3560
|
* Checks if the given icon is in the list of connected icons.
|
|
3544
3561
|
*
|
|
@@ -3561,7 +3578,7 @@ const et = "__UI_ICON", pt = 320, bt = "--LOAD--", V = class V {
|
|
|
3561
3578
|
static async get(t, e = "", s = 1e3 * 60 * 3) {
|
|
3562
3579
|
var o, a, u, h;
|
|
3563
3580
|
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`;
|
|
3564
|
-
return typeof n == "string" ? n === bt && s > 0 ? (await this.wait(), this.get(t, e, s -
|
|
3581
|
+
return typeof n == "string" ? n === bt && s > 0 ? (await this.wait(), this.get(t, e, s - wt)) : n : await n;
|
|
3565
3582
|
}
|
|
3566
3583
|
/**
|
|
3567
3584
|
* Returns a list of names of all registered icons.
|
|
@@ -3577,7 +3594,7 @@ const et = "__UI_ICON", pt = 320, bt = "--LOAD--", V = class V {
|
|
|
3577
3594
|
* Возвращает глобальную ссылку.
|
|
3578
3595
|
*/
|
|
3579
3596
|
static getUrlGlobal() {
|
|
3580
|
-
return `${
|
|
3597
|
+
return `${H.isLocalhost(), ""}${this.url}`;
|
|
3581
3598
|
}
|
|
3582
3599
|
/**
|
|
3583
3600
|
* Adding custom icons.
|
|
@@ -3641,42 +3658,42 @@ const et = "__UI_ICON", pt = 320, bt = "--LOAD--", V = class V {
|
|
|
3641
3658
|
* Задержка выполнения скрипта.
|
|
3642
3659
|
*/
|
|
3643
3660
|
static wait() {
|
|
3644
|
-
return new Promise((t) => setTimeout(() => t(),
|
|
3661
|
+
return new Promise((t) => setTimeout(() => t(), wt));
|
|
3645
3662
|
}
|
|
3646
3663
|
};
|
|
3647
|
-
c(
|
|
3648
|
-
let
|
|
3649
|
-
function
|
|
3664
|
+
c(K, "icons", {}), c(K, "url", "/icons/"), l() && (it in window || (window[it] = {}), K.icons = window[it]);
|
|
3665
|
+
let vt = K;
|
|
3666
|
+
function Ot(i, t, e) {
|
|
3650
3667
|
var s, n;
|
|
3651
3668
|
return (n = (s = A(i)) == null ? void 0 : s[t]) != null ? n : e;
|
|
3652
3669
|
}
|
|
3653
|
-
function
|
|
3670
|
+
function Tt(i, t, e) {
|
|
3654
3671
|
const s = A(i);
|
|
3655
3672
|
if (s) {
|
|
3656
|
-
const n =
|
|
3673
|
+
const n = Ot(s, t);
|
|
3657
3674
|
if (m(n) && m(e))
|
|
3658
3675
|
g(e, (o, a) => {
|
|
3659
|
-
n[a] =
|
|
3676
|
+
n[a] = I(o);
|
|
3660
3677
|
});
|
|
3661
3678
|
else {
|
|
3662
|
-
const o =
|
|
3663
|
-
!(t in s) && typeof o == "string" ? s.setAttribute(t.toString(), o) : s[t] =
|
|
3679
|
+
const o = I(e);
|
|
3680
|
+
!(t in s) && typeof o == "string" ? s.setAttribute(t.toString(), o) : s[t] = I(e);
|
|
3664
3681
|
}
|
|
3665
3682
|
}
|
|
3666
3683
|
return s;
|
|
3667
3684
|
}
|
|
3668
|
-
function
|
|
3685
|
+
function _(i, t = "div", e, s) {
|
|
3669
3686
|
if (!l())
|
|
3670
3687
|
return;
|
|
3671
3688
|
const n = document.createElement(t);
|
|
3672
|
-
return typeof e == "function" ? e(n) :
|
|
3673
|
-
|
|
3689
|
+
return typeof e == "function" ? e(n) : k(e) && g(e, (o, a) => {
|
|
3690
|
+
Tt(n, a, o);
|
|
3674
3691
|
}), i == null || i.insertBefore(n, s != null ? s : null), n;
|
|
3675
3692
|
}
|
|
3676
|
-
function
|
|
3693
|
+
function Gt(i) {
|
|
3677
3694
|
return i.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").trim();
|
|
3678
3695
|
}
|
|
3679
|
-
class
|
|
3696
|
+
class ot {
|
|
3680
3697
|
/**
|
|
3681
3698
|
* Creates an instance of MetaManager.
|
|
3682
3699
|
*
|
|
@@ -3790,7 +3807,7 @@ class nt {
|
|
|
3790
3807
|
e.content = s;
|
|
3791
3808
|
else if (l()) {
|
|
3792
3809
|
const o = { content: s };
|
|
3793
|
-
this.isProperty ? o.property = t : o.name = t,
|
|
3810
|
+
this.isProperty ? o.property = t : o.name = t, _(document.head, "meta", o);
|
|
3794
3811
|
}
|
|
3795
3812
|
return this;
|
|
3796
3813
|
}
|
|
@@ -3802,7 +3819,7 @@ class nt {
|
|
|
3802
3819
|
*/
|
|
3803
3820
|
toHtmlString(t) {
|
|
3804
3821
|
var s;
|
|
3805
|
-
const e =
|
|
3822
|
+
const e = Gt((s = this.items[t]) != null ? s : "");
|
|
3806
3823
|
return e ? `<meta ${this.getAttributeName()}="${t}" content="${e}">` : "";
|
|
3807
3824
|
}
|
|
3808
3825
|
/**
|
|
@@ -3817,8 +3834,8 @@ class nt {
|
|
|
3817
3834
|
}), this;
|
|
3818
3835
|
}
|
|
3819
3836
|
}
|
|
3820
|
-
var v = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(v || {}),
|
|
3821
|
-
class
|
|
3837
|
+
var v = /* @__PURE__ */ ((i) => (i.description = "description", i.keywords = "keywords", i.canonical = "canonical", i.robots = "robots", i.author = "author", i))(v || {}), 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 || {});
|
|
3838
|
+
class ae extends ot {
|
|
3822
3839
|
constructor() {
|
|
3823
3840
|
super(Object.values(y), !0);
|
|
3824
3841
|
}
|
|
@@ -3942,7 +3959,7 @@ class oe extends nt {
|
|
|
3942
3959
|
return this.set(y.siteName, t);
|
|
3943
3960
|
}
|
|
3944
3961
|
}
|
|
3945
|
-
class
|
|
3962
|
+
class ce extends ot {
|
|
3946
3963
|
constructor() {
|
|
3947
3964
|
super(Object.values($));
|
|
3948
3965
|
}
|
|
@@ -4066,7 +4083,7 @@ class ae extends nt {
|
|
|
4066
4083
|
return this.set($.image, t), this;
|
|
4067
4084
|
}
|
|
4068
4085
|
}
|
|
4069
|
-
class
|
|
4086
|
+
class Ae extends ot {
|
|
4070
4087
|
/**
|
|
4071
4088
|
* Creates an instance of Meta with integrated Open Graph and Twitter Card support.
|
|
4072
4089
|
*
|
|
@@ -4077,7 +4094,7 @@ class Le extends nt {
|
|
|
4077
4094
|
c(this, "suffix");
|
|
4078
4095
|
c(this, "og");
|
|
4079
4096
|
c(this, "twitter");
|
|
4080
|
-
this.og = new
|
|
4097
|
+
this.og = new ae(), this.twitter = new ce();
|
|
4081
4098
|
}
|
|
4082
4099
|
/**
|
|
4083
4100
|
* Gets the MetaOg instance for advanced Open Graph operations.
|
|
@@ -4187,7 +4204,7 @@ class Le extends nt {
|
|
|
4187
4204
|
* @param keywords keywords as string or array / ключевые слова в виде строки или массива
|
|
4188
4205
|
*/
|
|
4189
4206
|
setKeywords(e) {
|
|
4190
|
-
return this.set(v.keywords,
|
|
4207
|
+
return this.set(v.keywords, z(e).join(", ")), this;
|
|
4191
4208
|
}
|
|
4192
4209
|
/**
|
|
4193
4210
|
* Sets the description meta tag.
|
|
@@ -4278,7 +4295,7 @@ class Le extends nt {
|
|
|
4278
4295
|
return D(this.suffix) ? ` - ${this.suffix}` : "";
|
|
4279
4296
|
}
|
|
4280
4297
|
}
|
|
4281
|
-
class
|
|
4298
|
+
class nt {
|
|
4282
4299
|
/**
|
|
4283
4300
|
* Checks whether to enable scroll hiding.
|
|
4284
4301
|
*
|
|
@@ -4308,8 +4325,8 @@ class rt {
|
|
|
4308
4325
|
* Создает элементы для проверки ширины скролла.
|
|
4309
4326
|
*/
|
|
4310
4327
|
static createElement() {
|
|
4311
|
-
return
|
|
4312
|
-
t.style.height = "24px", t.style.overflowY = "scroll", t.style.position = "fixed", t.style.width = "100%",
|
|
4328
|
+
return _(document.body, "div", (t) => {
|
|
4329
|
+
t.style.height = "24px", t.style.overflowY = "scroll", t.style.position = "fixed", t.style.width = "100%", _(t, "div", (e) => {
|
|
4313
4330
|
e.style.height = "100px";
|
|
4314
4331
|
});
|
|
4315
4332
|
});
|
|
@@ -4329,8 +4346,8 @@ class rt {
|
|
|
4329
4346
|
});
|
|
4330
4347
|
}
|
|
4331
4348
|
}
|
|
4332
|
-
c(
|
|
4333
|
-
const
|
|
4349
|
+
c(nt, "storage", new T("scrollbar", !0)), c(nt, "calculate", !1);
|
|
4350
|
+
const ue = [
|
|
4334
4351
|
"d",
|
|
4335
4352
|
"e",
|
|
4336
4353
|
"f",
|
|
@@ -4350,15 +4367,15 @@ const ce = [
|
|
|
4350
4367
|
"t",
|
|
4351
4368
|
"u",
|
|
4352
4369
|
"v"
|
|
4353
|
-
],
|
|
4370
|
+
], he = (i, t = {}) => {
|
|
4354
4371
|
let e = String(i);
|
|
4355
4372
|
if (i.match(/%[a-z]/)) {
|
|
4356
4373
|
let s = 0;
|
|
4357
4374
|
g(t, (n) => {
|
|
4358
|
-
e = e.replace(new RegExp(`%${
|
|
4375
|
+
e = e.replace(new RegExp(`%${ue[s++]}`, "g"), String(n));
|
|
4359
4376
|
});
|
|
4360
4377
|
}
|
|
4361
|
-
return
|
|
4378
|
+
return k(t) && g(t, (s, n) => {
|
|
4362
4379
|
e = e.replace(
|
|
4363
4380
|
new RegExp(`\\[${n}\\](.*?)\\[/${n}\\]`, "g"),
|
|
4364
4381
|
(o, a) => String(s).replace(/\[content]/g, a)
|
|
@@ -4375,7 +4392,7 @@ const ce = [
|
|
|
4375
4392
|
static async get(t, e) {
|
|
4376
4393
|
var n, o;
|
|
4377
4394
|
const s = this.getName(t);
|
|
4378
|
-
return s in this.data ? this.replacement(this.data[s], e) : (
|
|
4395
|
+
return s in this.data ? this.replacement(this.data[s], e) : (H.isLocalhost() || await this.add(t), this.replacement((o = (n = this.data) == null ? void 0 : n[s]) != null ? o : t));
|
|
4379
4396
|
}
|
|
4380
4397
|
/**
|
|
4381
4398
|
* Getting the translation text by its code (Sync).
|
|
@@ -4448,7 +4465,7 @@ const ce = [
|
|
|
4448
4465
|
*/
|
|
4449
4466
|
static addSync(t) {
|
|
4450
4467
|
g(t, (e, s) => {
|
|
4451
|
-
|
|
4468
|
+
R(e) && D(e) && (this.data[this.getName(s)] = e);
|
|
4452
4469
|
});
|
|
4453
4470
|
}
|
|
4454
4471
|
/**
|
|
@@ -4459,7 +4476,7 @@ const ce = [
|
|
|
4459
4476
|
*/
|
|
4460
4477
|
static async addNormalOrSync(t) {
|
|
4461
4478
|
if (D(t))
|
|
4462
|
-
if (
|
|
4479
|
+
if (H.isLocalhost())
|
|
4463
4480
|
this.addSync(t);
|
|
4464
4481
|
else {
|
|
4465
4482
|
const e = Object.keys(t);
|
|
@@ -4485,7 +4502,7 @@ const ce = [
|
|
|
4485
4502
|
* @param name code name/ название кода
|
|
4486
4503
|
*/
|
|
4487
4504
|
static getName(t) {
|
|
4488
|
-
return `${
|
|
4505
|
+
return `${w.getLocation()}-${t}`;
|
|
4489
4506
|
}
|
|
4490
4507
|
/**
|
|
4491
4508
|
* Returns a list of names that are not yet in the list.
|
|
@@ -4495,7 +4512,7 @@ const ce = [
|
|
|
4495
4512
|
*/
|
|
4496
4513
|
static getNamesNone(t) {
|
|
4497
4514
|
const e = [];
|
|
4498
|
-
return
|
|
4515
|
+
return z(t).forEach((s) => {
|
|
4499
4516
|
s !== "__TRANSLATE_START__" && s !== "__TRANSLATE_END__" && !(this.getName(s) in this.data) && e.push(s);
|
|
4500
4517
|
}), e;
|
|
4501
4518
|
}
|
|
@@ -4505,7 +4522,7 @@ const ce = [
|
|
|
4505
4522
|
* Получение списка переводов с сервера.
|
|
4506
4523
|
*/
|
|
4507
4524
|
static async getResponse() {
|
|
4508
|
-
const t = await
|
|
4525
|
+
const t = await H.get({
|
|
4509
4526
|
api: !1,
|
|
4510
4527
|
path: this.url,
|
|
4511
4528
|
request: {
|
|
@@ -4524,7 +4541,7 @@ const ce = [
|
|
|
4524
4541
|
* @param replacement values for replacement/ значения для замены
|
|
4525
4542
|
*/
|
|
4526
4543
|
static replacement(t, e) {
|
|
4527
|
-
return e ?
|
|
4544
|
+
return e ? he(t, e) : t;
|
|
4528
4545
|
}
|
|
4529
4546
|
/**
|
|
4530
4547
|
* Adding translation data from the server.
|
|
@@ -4540,36 +4557,42 @@ const ce = [
|
|
|
4540
4557
|
}
|
|
4541
4558
|
};
|
|
4542
4559
|
c(N, "url", "/api/translate"), c(N, "propsName", "list"), c(N, "data", {}), c(N, "cache", []), c(N, "resolveList", []), c(N, "timeout");
|
|
4543
|
-
let
|
|
4544
|
-
function
|
|
4560
|
+
let St = N;
|
|
4561
|
+
function Ft(i) {
|
|
4545
4562
|
return Array.isArray(i);
|
|
4546
4563
|
}
|
|
4547
|
-
function
|
|
4564
|
+
function Ne(i) {
|
|
4548
4565
|
var t;
|
|
4549
|
-
return
|
|
4566
|
+
return R(i) ? i.trim() : Ft(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 : "";
|
|
4550
4567
|
}
|
|
4551
|
-
function
|
|
4568
|
+
function le(i, t) {
|
|
4552
4569
|
return Array(t).fill(i);
|
|
4553
4570
|
}
|
|
4554
|
-
function
|
|
4571
|
+
function Ie(i) {
|
|
4572
|
+
return new Promise((t, e) => {
|
|
4573
|
+
const s = new FileReader();
|
|
4574
|
+
s.onloadend = () => t(s.result), s.onerror = e, s.readAsDataURL(i);
|
|
4575
|
+
});
|
|
4576
|
+
}
|
|
4577
|
+
function Ee(i) {
|
|
4555
4578
|
var t;
|
|
4556
4579
|
if (l())
|
|
4557
4580
|
return (t = document.querySelector(i)) != null ? t : void 0;
|
|
4558
4581
|
}
|
|
4559
|
-
function
|
|
4582
|
+
function Be(i) {
|
|
4560
4583
|
if (l())
|
|
4561
4584
|
return document.querySelectorAll(i);
|
|
4562
4585
|
}
|
|
4563
|
-
function
|
|
4586
|
+
function Fe(i) {
|
|
4564
4587
|
i.preventDefault(), i.stopPropagation();
|
|
4565
4588
|
}
|
|
4566
|
-
function
|
|
4589
|
+
function de(i, t, e) {
|
|
4567
4590
|
const s = () => {
|
|
4568
|
-
i(), t != null && t() ?
|
|
4591
|
+
i(), t != null && t() ? de(i, t, e) : e == null || e();
|
|
4569
4592
|
};
|
|
4570
4593
|
l() ? requestAnimationFrame(s) : s();
|
|
4571
4594
|
}
|
|
4572
|
-
function
|
|
4595
|
+
function xe(i) {
|
|
4573
4596
|
var s;
|
|
4574
4597
|
const t = {}, e = A(i);
|
|
4575
4598
|
if (e)
|
|
@@ -4577,114 +4600,141 @@ function Ee(i) {
|
|
|
4577
4600
|
t[n.name] = (s = (n == null ? void 0 : n.value) || (n == null ? void 0 : n.textContent)) != null ? s : void 0;
|
|
4578
4601
|
return t;
|
|
4579
4602
|
}
|
|
4580
|
-
async function
|
|
4603
|
+
async function Re(i) {
|
|
4581
4604
|
var t, e;
|
|
4582
4605
|
return (e = (t = i == null ? void 0 : i.clipboardData) == null ? void 0 : t.getData("text")) != null ? e : await navigator.clipboard.readText() || "";
|
|
4583
4606
|
}
|
|
4584
|
-
let
|
|
4585
|
-
function
|
|
4607
|
+
let Dt = Y(1e5, 9e5);
|
|
4608
|
+
function Pe(i, t) {
|
|
4586
4609
|
const e = A(i);
|
|
4587
|
-
return e ? (D(e.id) || e.setAttribute("id", `id-${
|
|
4610
|
+
return e ? (D(e.id) || e.setAttribute("id", `id-${Dt++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${Dt++}`;
|
|
4611
|
+
}
|
|
4612
|
+
function ge(i) {
|
|
4613
|
+
return R(i) ? _(
|
|
4614
|
+
void 0,
|
|
4615
|
+
"img",
|
|
4616
|
+
{ src: i }
|
|
4617
|
+
) : i;
|
|
4588
4618
|
}
|
|
4589
|
-
function
|
|
4619
|
+
function fe(i, t = "ig", e = ":value") {
|
|
4590
4620
|
const s = i.replace(/([[\]\\^$.?*+()/])/g, "\\$1");
|
|
4591
4621
|
return new RegExp(e.replace(/:value/g, s), t);
|
|
4592
4622
|
}
|
|
4593
|
-
function
|
|
4623
|
+
function me(i, t) {
|
|
4594
4624
|
var n;
|
|
4595
4625
|
const e = t.split(".", 2), s = e[0];
|
|
4596
|
-
return s && (i != null && i[s]) &&
|
|
4626
|
+
return s && (i != null && i[s]) && k(i[s]) && (e != null && e[1]) ? me(i[s], e[1]) : (n = s && (i == null ? void 0 : i[s])) != null ? n : "";
|
|
4597
4627
|
}
|
|
4598
|
-
function
|
|
4628
|
+
function We(i) {
|
|
4599
4629
|
var t, e, s;
|
|
4600
4630
|
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();
|
|
4601
4631
|
}
|
|
4602
|
-
function
|
|
4632
|
+
function xt(i) {
|
|
4603
4633
|
return g(i, (t) => t.length);
|
|
4604
4634
|
}
|
|
4605
|
-
function
|
|
4606
|
-
return Math.max(...
|
|
4635
|
+
function Ue(i) {
|
|
4636
|
+
return Math.max(...xt(i));
|
|
4607
4637
|
}
|
|
4608
|
-
function
|
|
4609
|
-
return Math.min(...
|
|
4638
|
+
function je(i) {
|
|
4639
|
+
return Math.min(...xt(i));
|
|
4610
4640
|
}
|
|
4611
|
-
function
|
|
4641
|
+
function ye(i) {
|
|
4612
4642
|
var t, e, s, n;
|
|
4613
4643
|
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;
|
|
4614
4644
|
}
|
|
4615
|
-
function
|
|
4645
|
+
function $e(i) {
|
|
4616
4646
|
var t, e, s, n;
|
|
4617
4647
|
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;
|
|
4618
4648
|
}
|
|
4619
|
-
function
|
|
4649
|
+
function He(i) {
|
|
4620
4650
|
return {
|
|
4621
|
-
x:
|
|
4622
|
-
y:
|
|
4651
|
+
x: ye(i),
|
|
4652
|
+
y: $e(i)
|
|
4623
4653
|
};
|
|
4624
4654
|
}
|
|
4625
|
-
function
|
|
4655
|
+
function ze(i, t) {
|
|
4626
4656
|
const e = {};
|
|
4627
4657
|
return t.forEach((s) => {
|
|
4628
4658
|
s in i && i[s] !== void 0 && (e[s] = i[s]);
|
|
4629
4659
|
}), e;
|
|
4630
4660
|
}
|
|
4631
|
-
function
|
|
4661
|
+
function Ze(i, t = void 0) {
|
|
4632
4662
|
const e = {};
|
|
4633
4663
|
return g(i, (s, n) => {
|
|
4634
4664
|
s !== t && (e[n] = s);
|
|
4635
4665
|
}), e;
|
|
4636
4666
|
}
|
|
4637
|
-
function
|
|
4638
|
-
return
|
|
4667
|
+
function Ve(i) {
|
|
4668
|
+
return k(i) ? i : {};
|
|
4639
4669
|
}
|
|
4640
|
-
function
|
|
4641
|
-
return
|
|
4670
|
+
function pe(i, t) {
|
|
4671
|
+
return le(i, t).join("");
|
|
4642
4672
|
}
|
|
4643
|
-
function
|
|
4673
|
+
function Ke(i, t, e = "#", s = 2, n = 12) {
|
|
4644
4674
|
const o = Y(i, t), a = [];
|
|
4645
4675
|
for (let u = 0; u < o; u++)
|
|
4646
|
-
a.push(
|
|
4676
|
+
a.push(pe(e, Y(s, n)));
|
|
4647
4677
|
return a.join(" ");
|
|
4648
4678
|
}
|
|
4649
|
-
function
|
|
4679
|
+
function Ye(i, t) {
|
|
4650
4680
|
const e = i != null ? i : 0;
|
|
4651
4681
|
return t > e ? 100 / (t - e) : 0;
|
|
4652
4682
|
}
|
|
4653
|
-
function
|
|
4683
|
+
function qe(i, t) {
|
|
4654
4684
|
const e = i != null ? i : 0;
|
|
4655
4685
|
return t > e ? (t - e) / 100 : 0;
|
|
4656
4686
|
}
|
|
4657
|
-
const
|
|
4658
|
-
function
|
|
4687
|
+
const Lt = 0;
|
|
4688
|
+
function Je(i, t, e) {
|
|
4659
4689
|
const s = t == null ? void 0 : t.closest(i);
|
|
4660
4690
|
if (t && s && s.scrollHeight !== s.offsetHeight)
|
|
4661
4691
|
if (e) {
|
|
4662
4692
|
const n = e.getBoundingClientRect(), o = s.getBoundingClientRect(), a = t.getBoundingClientRect();
|
|
4663
4693
|
s.scrollTop = t.offsetTop - (n.top - o.top) - (n.height / 2 - a.height / 2), s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight);
|
|
4664
|
-
} else s.scrollTop > t.offsetTop ? s.scrollTop = t.offsetTop -
|
|
4694
|
+
} else s.scrollTop > t.offsetTop ? s.scrollTop = t.offsetTop - Lt : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = t.offsetTop + t.offsetHeight - s.offsetHeight + Lt);
|
|
4665
4695
|
}
|
|
4666
|
-
function
|
|
4696
|
+
function Qe(i, t, e = 0) {
|
|
4697
|
+
if (!l())
|
|
4698
|
+
return;
|
|
4699
|
+
const s = (t == null ? void 0 : t.behavior) || "smooth";
|
|
4700
|
+
if ("scrollIntoView" in i && !e) {
|
|
4701
|
+
i.scrollIntoView({
|
|
4702
|
+
behavior: s,
|
|
4703
|
+
block: (t == null ? void 0 : t.block) || "start",
|
|
4704
|
+
inline: (t == null ? void 0 : t.inline) || "start"
|
|
4705
|
+
});
|
|
4706
|
+
return;
|
|
4707
|
+
}
|
|
4708
|
+
if ("getBoundingClientRect" in i && "scrollTo" in window) {
|
|
4709
|
+
const n = ((window == null ? void 0 : window.scrollY) || window.pageYOffset) + i.getBoundingClientRect().top - e;
|
|
4710
|
+
window.scrollTo({
|
|
4711
|
+
top: n,
|
|
4712
|
+
behavior: s
|
|
4713
|
+
});
|
|
4714
|
+
}
|
|
4715
|
+
}
|
|
4716
|
+
function Me(i, t) {
|
|
4667
4717
|
return i.indexOf(t) !== -1;
|
|
4668
4718
|
}
|
|
4669
|
-
async function
|
|
4719
|
+
async function Xe() {
|
|
4670
4720
|
if (l()) {
|
|
4671
|
-
const i = await
|
|
4721
|
+
const i = await nt.get();
|
|
4672
4722
|
document.body.style.setProperty("--sys-scrollbar-offset", `${i}px`);
|
|
4673
4723
|
}
|
|
4674
4724
|
}
|
|
4675
|
-
function
|
|
4725
|
+
function _e(i, t) {
|
|
4676
4726
|
const e = {};
|
|
4677
4727
|
return m(i) && m(t) && g(i, (s, n) => {
|
|
4678
4728
|
n in t && (e[n] = s);
|
|
4679
4729
|
}), e;
|
|
4680
4730
|
}
|
|
4681
|
-
function
|
|
4731
|
+
function Oe(i, t) {
|
|
4682
4732
|
let e = Object.keys(i).length !== Object.keys(t).length;
|
|
4683
4733
|
return e || g(i, (s, n) => {
|
|
4684
4734
|
s !== (t == null ? void 0 : t[n]) && (e = !0);
|
|
4685
4735
|
}), e;
|
|
4686
4736
|
}
|
|
4687
|
-
function
|
|
4737
|
+
function Te(i) {
|
|
4688
4738
|
switch (typeof i) {
|
|
4689
4739
|
case "number":
|
|
4690
4740
|
return !0;
|
|
@@ -4694,14 +4744,22 @@ function Qe(i) {
|
|
|
4694
4744
|
return !1;
|
|
4695
4745
|
}
|
|
4696
4746
|
}
|
|
4697
|
-
function
|
|
4747
|
+
function Ge(i, t) {
|
|
4698
4748
|
const e = Math.floor(t);
|
|
4699
4749
|
return i >= e && i < e + 1;
|
|
4700
4750
|
}
|
|
4701
|
-
function
|
|
4702
|
-
return Array.isArray(i) ? i.every((e) =>
|
|
4751
|
+
function ti(i, t) {
|
|
4752
|
+
return Array.isArray(i) ? i.every((e) => st(e, t)) : st(i, t);
|
|
4703
4753
|
}
|
|
4704
|
-
function
|
|
4754
|
+
function ei(i, t) {
|
|
4755
|
+
if (i.startsWith(t))
|
|
4756
|
+
return i.slice(t.length).trim();
|
|
4757
|
+
let e = 0;
|
|
4758
|
+
for (; i[e] === t[e] && e < i.length && e < t.length; )
|
|
4759
|
+
e++;
|
|
4760
|
+
return i.slice(e).trim();
|
|
4761
|
+
}
|
|
4762
|
+
function we(i) {
|
|
4705
4763
|
return [...new Set(i)];
|
|
4706
4764
|
}
|
|
4707
4765
|
function Z(i, t, e = !0) {
|
|
@@ -4710,7 +4768,7 @@ function Z(i, t, e = !0) {
|
|
|
4710
4768
|
t,
|
|
4711
4769
|
(n, o) => {
|
|
4712
4770
|
const a = i == null ? void 0 : i[o];
|
|
4713
|
-
m(a) && m(n) ? e && Array.isArray(a) && Array.isArray(n) ? s[o] = j(
|
|
4771
|
+
m(a) && m(n) ? e && Array.isArray(a) && Array.isArray(n) ? s[o] = j(we([...a, ...n])) : s[o] = Z(
|
|
4714
4772
|
Array.isArray(a) ? { ...a } : a,
|
|
4715
4773
|
n,
|
|
4716
4774
|
e
|
|
@@ -4718,28 +4776,47 @@ function Z(i, t, e = !0) {
|
|
|
4718
4776
|
}
|
|
4719
4777
|
), s;
|
|
4720
4778
|
}
|
|
4721
|
-
function
|
|
4779
|
+
function ii(i, t) {
|
|
4722
4780
|
let e = i;
|
|
4723
4781
|
return g(t, (s, n) => {
|
|
4724
|
-
e = e.replace(
|
|
4782
|
+
e = e.replace(fe(`[${n}]`), I(s));
|
|
4725
4783
|
}), e;
|
|
4726
4784
|
}
|
|
4727
|
-
function
|
|
4728
|
-
|
|
4785
|
+
function be(i, t = "auto") {
|
|
4786
|
+
switch (t) {
|
|
4787
|
+
case "auto":
|
|
4788
|
+
return i.naturalWidth >= i.naturalHeight;
|
|
4789
|
+
case "width":
|
|
4790
|
+
return !0;
|
|
4791
|
+
case "height":
|
|
4792
|
+
return !1;
|
|
4793
|
+
}
|
|
4794
|
+
}
|
|
4795
|
+
function si(i, t, e = "auto", s) {
|
|
4796
|
+
var o;
|
|
4797
|
+
const n = ge(i);
|
|
4798
|
+
if (n && (n.naturalWidth > t && (e === "auto" || e === "width") || n.naturalHeight > t && (e === "auto" || e === "height"))) {
|
|
4799
|
+
const a = be(n, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
|
|
4800
|
+
if (u)
|
|
4801
|
+
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);
|
|
4802
|
+
}
|
|
4803
|
+
}
|
|
4804
|
+
function ri(i) {
|
|
4805
|
+
const t = C(i);
|
|
4729
4806
|
if (t > 0) {
|
|
4730
4807
|
const e = String(Math.floor(t / 60)).padStart(2, "0"), s = String(t % 60).padStart(2, "0");
|
|
4731
4808
|
return `${e}:${s}`;
|
|
4732
4809
|
}
|
|
4733
4810
|
return "00:00";
|
|
4734
4811
|
}
|
|
4735
|
-
function
|
|
4812
|
+
function ni(i, t, {
|
|
4736
4813
|
multiple: e = !1,
|
|
4737
4814
|
maxlength: s = 0,
|
|
4738
4815
|
alwaysChange: n = !0,
|
|
4739
4816
|
notEmpty: o = !1
|
|
4740
4817
|
}) {
|
|
4741
4818
|
if (e) {
|
|
4742
|
-
if (
|
|
4819
|
+
if (Ft(i)) {
|
|
4743
4820
|
const a = i.indexOf(t), u = [...i];
|
|
4744
4821
|
return a !== -1 ? (!o || u.length > 1) && u.splice(a, 1) : (!s || i.length < s) && u.push(t), u;
|
|
4745
4822
|
}
|
|
@@ -4747,7 +4824,7 @@ function Te(i, t, {
|
|
|
4747
4824
|
}
|
|
4748
4825
|
return n || i !== t ? t : i;
|
|
4749
4826
|
}
|
|
4750
|
-
function
|
|
4827
|
+
function oi(i, t, e) {
|
|
4751
4828
|
if (m(i) && m(t)) {
|
|
4752
4829
|
if (e) {
|
|
4753
4830
|
let s = {}, n = !1;
|
|
@@ -4760,27 +4837,33 @@ function Ge(i, t, e) {
|
|
|
4760
4837
|
}
|
|
4761
4838
|
return j(i);
|
|
4762
4839
|
}
|
|
4763
|
-
function
|
|
4840
|
+
function ve(i) {
|
|
4764
4841
|
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()}`);
|
|
4765
4842
|
}
|
|
4766
|
-
function
|
|
4767
|
-
return
|
|
4843
|
+
function ai(i) {
|
|
4844
|
+
return ve(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
|
|
4768
4845
|
}
|
|
4769
|
-
function
|
|
4846
|
+
function ci(i) {
|
|
4770
4847
|
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());
|
|
4771
4848
|
}
|
|
4772
|
-
function
|
|
4773
|
-
const n =
|
|
4774
|
-
return t && o < n ? `${
|
|
4849
|
+
function ui(i, t, e, s) {
|
|
4850
|
+
const n = C(i), o = C(t);
|
|
4851
|
+
return t && o < n ? `${Ct(o, e, s)}+` : Ct(n, e, s);
|
|
4775
4852
|
}
|
|
4776
|
-
const
|
|
4777
|
-
function
|
|
4853
|
+
const Ct = (i, t, e) => t ? new J(e).number(i) : i;
|
|
4854
|
+
function Se(i, t) {
|
|
4778
4855
|
return 1 / i * t;
|
|
4779
4856
|
}
|
|
4780
|
-
function
|
|
4781
|
-
return
|
|
4857
|
+
function hi(i, t) {
|
|
4858
|
+
return Se(i, t) * 100;
|
|
4859
|
+
}
|
|
4860
|
+
function li(i) {
|
|
4861
|
+
let t = "";
|
|
4862
|
+
for (const e of i)
|
|
4863
|
+
t += String.fromCharCode(e);
|
|
4864
|
+
return l() ? window.btoa(t) : globalThis && globalThis.Buffer ? globalThis == null ? void 0 : globalThis.Buffer.from(i).toString("base64") : "";
|
|
4782
4865
|
}
|
|
4783
|
-
async function
|
|
4866
|
+
async function di(i) {
|
|
4784
4867
|
if (l())
|
|
4785
4868
|
try {
|
|
4786
4869
|
await navigator.clipboard.writeText(i);
|
|
@@ -4789,122 +4872,129 @@ async function ri(i) {
|
|
|
4789
4872
|
}
|
|
4790
4873
|
}
|
|
4791
4874
|
export {
|
|
4792
|
-
|
|
4793
|
-
|
|
4875
|
+
H as Api,
|
|
4876
|
+
Zt as ApiDefault,
|
|
4794
4877
|
zt as ApiHeaders,
|
|
4795
4878
|
S as ApiMethodItem,
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4879
|
+
qt as ApiPreparation,
|
|
4880
|
+
Yt as ApiResponse,
|
|
4881
|
+
Vt as ApiStatus,
|
|
4882
|
+
Ce as BroadcastMessage,
|
|
4883
|
+
Mt as Cache,
|
|
4884
|
+
Qt as CacheItem,
|
|
4885
|
+
ft as CacheStatic,
|
|
4886
|
+
mt as Cookie,
|
|
4804
4887
|
Et as CookieBlock,
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4888
|
+
T as DataStorage,
|
|
4889
|
+
Bt as Datetime,
|
|
4890
|
+
lt as EventItem,
|
|
4808
4891
|
r as GEO_FLAG_ICON_NAME,
|
|
4809
|
-
|
|
4810
|
-
|
|
4892
|
+
w as Geo,
|
|
4893
|
+
yt as GeoFlag,
|
|
4811
4894
|
J as GeoIntl,
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4895
|
+
$t as GeoPhone,
|
|
4896
|
+
ke as Global,
|
|
4897
|
+
pt as Hash,
|
|
4898
|
+
vt as Icons,
|
|
4816
4899
|
x as Loading,
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4900
|
+
Ae as Meta,
|
|
4901
|
+
ot as MetaManager,
|
|
4902
|
+
ae as MetaOg,
|
|
4903
|
+
re as MetaOpenGraphAge,
|
|
4904
|
+
ie as MetaOpenGraphAvailability,
|
|
4905
|
+
se as MetaOpenGraphCondition,
|
|
4906
|
+
ne as MetaOpenGraphGender,
|
|
4824
4907
|
y as MetaOpenGraphTag,
|
|
4825
|
-
|
|
4826
|
-
|
|
4908
|
+
ee as MetaOpenGraphType,
|
|
4909
|
+
te as MetaRobots,
|
|
4827
4910
|
v as MetaTag,
|
|
4828
|
-
|
|
4829
|
-
|
|
4911
|
+
ce as MetaTwitter,
|
|
4912
|
+
oe as MetaTwitterCard,
|
|
4830
4913
|
$ as MetaTwitterTag,
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4914
|
+
nt as ScrollbarWidth,
|
|
4915
|
+
St as Translate,
|
|
4916
|
+
Ne as anyToString,
|
|
4917
|
+
he as applyTemplate,
|
|
4918
|
+
le as arrFill,
|
|
4919
|
+
Ie as blobToBase64,
|
|
4836
4920
|
j as copyObject,
|
|
4837
4921
|
L as copyObjectLite,
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4922
|
+
_ as createElement,
|
|
4923
|
+
Ee as domQuerySelector,
|
|
4924
|
+
Be as domQuerySelectorAll,
|
|
4925
|
+
Gt as encodeAttribute,
|
|
4926
|
+
Fe as eventStopPropagation,
|
|
4927
|
+
I as executeFunction,
|
|
4844
4928
|
Kt as executePromise,
|
|
4845
4929
|
g as forEach,
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4930
|
+
de as frame,
|
|
4931
|
+
xe as getAttributes,
|
|
4932
|
+
Re as getClipboardData,
|
|
4933
|
+
_t as getColumn,
|
|
4850
4934
|
A as getElement,
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4935
|
+
Pe as getElementId,
|
|
4936
|
+
ge as getElementImage,
|
|
4937
|
+
Ot as getElementItem,
|
|
4938
|
+
ht as getElementOrWindow,
|
|
4939
|
+
fe as getExp,
|
|
4940
|
+
me as getItemByPath,
|
|
4941
|
+
We as getKey,
|
|
4942
|
+
xt as getLengthOfAllArray,
|
|
4943
|
+
Ue as getMaxLengthAllArray,
|
|
4944
|
+
je as getMinLengthAllArray,
|
|
4945
|
+
He as getMouseClient,
|
|
4946
|
+
ye as getMouseClientX,
|
|
4947
|
+
$e as getMouseClientY,
|
|
4948
|
+
ze as getObjectByKeys,
|
|
4949
|
+
Ze as getObjectNoUndefined,
|
|
4950
|
+
Ve as getObjectOrNone,
|
|
4951
|
+
Ke as getRandomText,
|
|
4867
4952
|
kt as getRequestString,
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4953
|
+
Ye as getStepPercent,
|
|
4954
|
+
qe as getStepValue,
|
|
4955
|
+
Je as goScroll,
|
|
4956
|
+
Qe as goScrollSmooth,
|
|
4957
|
+
Me as inArray,
|
|
4958
|
+
Xe as initScrollbarOffset,
|
|
4959
|
+
_e as intersectKey,
|
|
4960
|
+
Ft as isArray,
|
|
4961
|
+
Oe as isDifferent,
|
|
4962
|
+
rt as isDomData,
|
|
4876
4963
|
l as isDomRuntime,
|
|
4877
4964
|
D as isFilled,
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4965
|
+
Te as isFloat,
|
|
4966
|
+
At as isFunction,
|
|
4967
|
+
Ht as isInDom,
|
|
4968
|
+
Ge as isIntegerBetween,
|
|
4882
4969
|
q as isNull,
|
|
4883
|
-
|
|
4970
|
+
ct as isNumber,
|
|
4884
4971
|
m as isObject,
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4972
|
+
k as isObjectNotArray,
|
|
4973
|
+
st as isSelected,
|
|
4974
|
+
ti as isSelectedByList,
|
|
4975
|
+
R as isString,
|
|
4976
|
+
Nt as isWindow,
|
|
4890
4977
|
Y as random,
|
|
4978
|
+
ei as removeCommonPrefix,
|
|
4891
4979
|
Z as replaceRecursive,
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4980
|
+
ii as replaceTemplate,
|
|
4981
|
+
si as resizeImageByMax,
|
|
4982
|
+
ri as secondToTime,
|
|
4983
|
+
Tt as setElementItem,
|
|
4984
|
+
ni as setValues,
|
|
4985
|
+
oi as splice,
|
|
4986
|
+
pe as strFill,
|
|
4987
|
+
z as toArray,
|
|
4988
|
+
ve as toCamelCase,
|
|
4989
|
+
ai as toCamelCaseFirst,
|
|
4901
4990
|
B as toDate,
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4991
|
+
ci as toKebabCase,
|
|
4992
|
+
C as toNumber,
|
|
4993
|
+
ui as toNumberByMax,
|
|
4994
|
+
Se as toPercent,
|
|
4995
|
+
hi as toPercentBy100,
|
|
4996
|
+
It as transformation,
|
|
4997
|
+
li as uint8ArrayToBase64,
|
|
4998
|
+
we as uniqueArray,
|
|
4999
|
+
di as writeClipboardData
|
|
4910
5000
|
};
|