@dxtmisha/functional-basic 1.10.1 → 1.11.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/library.js CHANGED
@@ -1,70 +1,69 @@
1
- import e from "@oxc-project/runtime/helpers/defineProperty";
2
- import { geo as t } from "@dxtmisha/media";
1
+ import { geo as e } from "@dxtmisha/media";
3
2
  //#region src/functions/isObject.ts
4
- function n(e) {
3
+ function t(e) {
5
4
  return !!(e && typeof e == "object");
6
5
  }
7
6
  //#endregion
8
7
  //#region src/functions/isObjectNotArray.ts
9
- function r(e) {
10
- return n(e) && !Array.isArray(e);
8
+ function n(e) {
9
+ return t(e) && !Array.isArray(e);
11
10
  }
12
11
  //#endregion
13
12
  //#region src/functions/forEach.ts
14
- function i(e, t, r) {
15
- if (n(e)) {
16
- let n = [], i = (e, i, a) => {
17
- let o = t(e, i, a);
18
- (r || o !== void 0) && n.push(o);
13
+ function r(e, n, r) {
14
+ if (t(e)) {
15
+ let t = [], i = (e, i, a) => {
16
+ let o = n(e, i, a);
17
+ (r || o !== void 0) && t.push(o);
19
18
  };
20
19
  if (Array.isArray(e)) e.forEach((t, n) => i(t, n, e));
21
20
  else if (e instanceof Map) e.forEach((t, n) => i(t, n, e));
22
21
  else if (e instanceof Set) e.forEach((t) => i(t, t, e));
23
22
  else for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && i(e[t], t, e);
24
- return n;
23
+ return t;
25
24
  }
26
25
  return [];
27
26
  }
28
27
  //#endregion
29
28
  //#region src/functions/isArray.ts
30
- function a(e) {
29
+ function i(e) {
31
30
  return Array.isArray(e);
32
31
  }
33
32
  //#endregion
34
33
  //#region src/functions/toString.ts
35
- function o(e) {
36
- return String(e == null ? "" : e);
34
+ function a(e) {
35
+ return String(e ?? "");
37
36
  }
38
37
  //#endregion
39
38
  //#region src/functions/getRequestString.ts
40
- function s(e, t = "=", r = "&", c) {
41
- return i(e, (i, l) => {
42
- let u = encodeURIComponent(o(l).trim());
39
+ function o(e, n = "=", s = "&", c) {
40
+ return r(e, (r, l) => {
41
+ let u = encodeURIComponent(a(l).trim());
43
42
  if (u !== "") {
44
- let l = c ? `${c}[${a(e) ? "" : u}]` : u;
45
- return n(i) ? s(i, t, r, l) : `${l}${t}${encodeURIComponent(o(i))}`;
43
+ let l = c ? `${c}[${i(e) ? "" : u}]` : u;
44
+ return t(r) ? o(r, n, s, l) : `${l}${n}${encodeURIComponent(a(r))}`;
46
45
  }
47
- }).sort().join(r);
46
+ }).sort().join(s);
48
47
  }
49
48
  //#endregion
50
49
  //#region src/functions/isDomRuntime.ts
51
- function c() {
50
+ function s() {
52
51
  return typeof window < "u" && !!window.document;
53
52
  }
54
53
  //#endregion
55
54
  //#region src/functions/isNull.ts
56
- function l(e) {
55
+ function c(e) {
57
56
  return e == null;
58
57
  }
59
58
  //#endregion
60
59
  //#region src/functions/isFilled.ts
61
- function u(e, t) {
60
+ function l(e, t) {
62
61
  if (e) {
63
62
  if (t && e === "0") return !0;
64
63
  switch (typeof e) {
65
64
  case "function":
66
65
  case "symbol": return !0;
67
- case "object": return Array.isArray(e) ? e.length > 0 : e instanceof RegExp ? !0 : e instanceof Map || e instanceof Set ? e.size > 0 : Object.values(e).some((e) => !l(e));
66
+ case "object": return Array.isArray(e) ? e.length > 0 : e instanceof RegExp ? !0 : e instanceof Map || e instanceof Set ? e.size > 0 : Object.values(e).some((e) => !c(e));
68
67
  case "string": return ![
69
68
  "",
70
69
  "undefined",
@@ -80,17 +79,17 @@ function u(e, t) {
80
79
  }
81
80
  //#endregion
82
81
  //#region src/functions/isOnLine.ts
83
- function d() {
84
- return !c() || typeof navigator > "u" || navigator.onLine;
82
+ function u() {
83
+ return !s() || typeof navigator > "u" || navigator.onLine;
85
84
  }
86
85
  //#endregion
87
86
  //#region src/functions/isString.ts
88
- function f(e) {
87
+ function d(e) {
89
88
  return typeof e == "string";
90
89
  }
91
90
  //#endregion
92
91
  //#region src/functions/random.ts
93
- function p(e, t) {
92
+ function f(e, t) {
94
93
  return Math.floor(Math.random() * (t - e + 1) + e);
95
94
  }
96
95
  //#endregion
@@ -100,73 +99,75 @@ function ee(e) {
100
99
  }
101
100
  //#endregion
102
101
  //#region src/functions/isFunction.ts
103
- function m(e) {
102
+ function p(e) {
104
103
  return e instanceof Function || typeof e == "function";
105
104
  }
106
105
  //#endregion
107
106
  //#region src/functions/executeFunction.ts
108
- function h(e, ...t) {
109
- return m(e) ? e(...t) : e;
107
+ function m(e, ...t) {
108
+ return p(e) ? e(...t) : e;
110
109
  }
111
110
  //#endregion
112
111
  //#region src/functions/isNumber.ts
113
- var g = /^-?[0-9]+(\.[0-9]+)?$/;
114
- function _(e) {
112
+ var h = /^-?[0-9]+(\.[0-9]+)?$/;
113
+ function g(e) {
115
114
  switch (typeof e) {
116
115
  case "number": return Number.isFinite(e);
117
116
  case "bigint": return !0;
118
- case "string": return g.test(e.trim());
117
+ case "string": return h.test(e.trim());
119
118
  default: return !1;
120
119
  }
121
120
  }
122
121
  //#endregion
123
122
  //#region src/functions/toNumber.ts
124
- var v = /[^-+\d., ]+/g, te = /( [0-9]{3}[ ,.]|[0-9] [0-9])/, y = / /g, b = /,/g, ne = /,[0-9]{3}[,.]/, re = /[.][0-9]{3}[,.]/, ie = /[.]/g;
123
+ var _ = /[^-+\d., ]+/g, v = /( [0-9]{3}[ ,.]|[0-9] [0-9])/, y = / /g, b = /,/g, te = /,[0-9]{3}[,.]/, ne = /[.][0-9]{3}[,.]/, re = /[.]/g;
125
124
  function x(e) {
126
125
  if (typeof e == "number") return Number.isFinite(e) && e || 0;
127
- if (u(e) && f(e)) {
128
- let t = e.replace(v, "");
129
- return t = te.test(t) ? t.replace(y, "").replace(b, ".") : ne.test(t) ? t.replace(b, "") : re.test(t) ? t.replace(ie, "").replace(b, ".") : t.replace(b, "."), parseFloat(t) || 0;
126
+ if (l(e) && d(e)) {
127
+ let t = e.replace(_, "");
128
+ return t = v.test(t) ? t.replace(y, "").replace(b, ".") : te.test(t) ? t.replace(b, "") : ne.test(t) ? t.replace(re, "").replace(b, ".") : t.replace(b, "."), parseFloat(t) || 0;
130
129
  }
131
130
  return 0;
132
131
  }
133
132
  //#endregion
134
133
  //#region src/functions/isSelected.ts
135
- function ae(e, t) {
136
- return l(e) ? !1 : Array.isArray(t) ? t.includes(e) : _(e) && _(t) ? x(e) === x(t) : e === t;
134
+ function S(e, t) {
135
+ return c(e) ? !1 : Array.isArray(t) ? t.includes(e) : g(e) && g(t) ? x(e) === x(t) : e === t;
137
136
  }
138
137
  //#endregion
139
138
  //#region src/functions/anyToString.ts
140
- function S(e, t = !0, r = !0) {
141
- var i;
142
- if (f(e)) return r ? e.trim() : e;
143
- if (l(e)) return "";
144
- if (a(e) && !e.some((e) => n(e)) && t) return e.join(",");
145
- if (n(e)) try {
139
+ function C(e, n = !0, r = !0) {
140
+ if (d(e)) return r ? e.trim() : e;
141
+ if (c(e)) return "";
142
+ if (i(e) && !e.some((e) => t(e)) && n) return e.join(",");
143
+ if (t(e)) try {
146
144
  return JSON.stringify(e);
147
- } catch (t) {
145
+ } catch {
148
146
  return String(e);
149
147
  }
150
- return e === !0 ? "1" : e === !1 ? "0" : (i = e == null ? void 0 : e.toString()) == null ? "" : i;
148
+ return e === !0 ? "1" : e === !1 ? "0" : e?.toString() ?? "";
151
149
  }
152
150
  //#endregion
153
151
  //#region src/functions/isDomData.ts
154
- function oe() {
155
- return c() && location.href.startsWith("data:");
152
+ function ie() {
153
+ return s() && location.href.startsWith("data:");
156
154
  }
157
155
  //#endregion
158
156
  //#region src/functions/strSplit.ts
159
- function se(e, t, n) {
160
- let r = S(e);
157
+ function ae(e, t, n) {
158
+ let r = C(e);
161
159
  if (!n || n <= 0) return r.split(t);
162
160
  let i = r.split(t, n), a = r.split(t);
163
161
  return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
164
162
  }
165
163
  //#endregion
166
164
  //#region src/classes/ErrorCenterHandler.ts
167
- var ce = class {
168
- constructor(t, n = !0) {
169
- e(this, "handlers", []), e(this, "callbacks", []), e(this, "isConsole", !0), this.isConsole = n, t && this.addList(t);
165
+ var oe = class {
166
+ handlers = [];
167
+ callbacks = [];
168
+ isConsole = !0;
169
+ constructor(e, t = !0) {
170
+ this.isConsole = t, e && this.addList(e);
170
171
  }
171
172
  has(e) {
172
173
  return !!this.get(e);
@@ -191,20 +192,21 @@ var ce = class {
191
192
  return this.isConsole = e, this;
192
193
  }
193
194
  on(e) {
194
- var t;
195
- let n = (t = this.get(e.group)) == null ? this.get(void 0) : t;
196
- return n && n.handlers.forEach((t) => t(e)), this.callbacks.forEach((t) => t(e)), this.toConsole(e), this;
195
+ let t = this.get(e.group) ?? this.get(void 0);
196
+ return t && t.handlers.forEach((t) => t(e)), this.callbacks.forEach((t) => t(e)), this.toConsole(e), this;
197
197
  }
198
198
  toConsole(e) {
199
- if (h(this.isConsole, e) && (console.error(`Error Center: ${e.code}`), console.error("Error Center/message: ", e.message), console.error("Error Center/details: ", e.details), !c())) {
199
+ if (m(this.isConsole, e) && (console.error(`Error Center: ${e.code}`), console.error("Error Center/message: ", e.message), console.error("Error Center/details: ", e.details), !s())) {
200
200
  let e = (/* @__PURE__ */ Error()).stack;
201
201
  console.error("Error Center/trace: ", e);
202
202
  }
203
203
  return this;
204
204
  }
205
- }, le = class {
206
- constructor(t, n = new ce()) {
207
- e(this, "handler", void 0), e(this, "causes", []), this.handler = n, t && this.addList(t);
205
+ }, se = class {
206
+ handler;
207
+ causes = [];
208
+ constructor(e, t = new oe()) {
209
+ this.handler = t, e && this.addList(e);
208
210
  }
209
211
  has(e, t) {
210
212
  return !!this.get(e, t);
@@ -235,19 +237,15 @@ var ce = class {
235
237
  }
236
238
  assign(e) {
237
239
  let t = this.get(e.code, e.group);
238
- if (t) {
239
- var n, r;
240
- return ((n = t.priority) == null ? 500 : n) > ((r = e.priority) == null ? 500 : r) ? {
241
- ...e,
242
- ...t
243
- } : {
244
- ...t,
245
- ...e
246
- };
247
- }
248
- return e;
240
+ return t ? (t.priority ?? 500) > (e.priority ?? 500) ? {
241
+ ...e,
242
+ ...t
243
+ } : {
244
+ ...t,
245
+ ...e
246
+ } : e;
249
247
  }
250
- }, ue = [
248
+ }, ce = [
251
249
  {
252
250
  group: "api",
253
251
  code: "cacheClear",
@@ -398,9 +396,10 @@ var ce = class {
398
396
  label: "Translate Error",
399
397
  message: "An error occurred while loading translations."
400
398
  }
401
- ], C = class {
399
+ ], w = class {
400
+ static item;
402
401
  static getItem() {
403
- return this.item;
402
+ return this.item ||= new se(ce), this.item;
404
403
  }
405
404
  static has(e, t) {
406
405
  return this.getItem().has(e, t);
@@ -430,63 +429,57 @@ var ce = class {
430
429
  this.getItem().on(e);
431
430
  }
432
431
  };
433
- e(C, "item", new le(ue));
434
432
  //#endregion
435
433
  //#region src/functions/transformation.ts
436
- function w(e, t = !1) {
434
+ function T(e, t = !1) {
437
435
  if (typeof e == "string") {
438
- let r = e.trim();
439
- switch (r) {
436
+ let n = e.trim();
437
+ switch (n) {
440
438
  case "undefined": return;
441
439
  case "null": return null;
442
440
  case "true": return !0;
443
441
  case "false": return !1;
444
- default:
445
- var n;
446
- if (/^[{[]/.exec(r)) try {
447
- return JSON.parse(r);
448
- } catch (e) {
449
- C.on({
450
- group: "transformation",
451
- code: "error",
452
- details: e
453
- });
454
- }
455
- else if (/^-?[0-9]+\.[0-9]+$/.exec(r)) return parseFloat(r);
456
- else if (/^-?[0-9]+$/.exec(r)) return parseInt(r, 10);
457
- else if (t && c() && typeof ((n = window) == null ? void 0 : n[r]) == "function") return window[r];
442
+ default: if (/^[{[]/.exec(n)) try {
443
+ return JSON.parse(n);
444
+ } catch (e) {
445
+ w.on({
446
+ group: "transformation",
447
+ code: "error",
448
+ details: e
449
+ });
450
+ }
451
+ else if (/^-?[0-9]+\.[0-9]+$/.exec(n)) return parseFloat(n);
452
+ else if (/^-?[0-9]+$/.exec(n)) return parseInt(n, 10);
453
+ else if (t && s() && typeof window?.[n] == "function") return window[n];
458
454
  }
459
455
  }
460
456
  return e;
461
457
  }
462
458
  //#endregion
463
459
  //#region src/functions/encodeLiteAttribute.ts
464
- var de = {
460
+ var le = {
465
461
  "<": "&lt;",
466
462
  ">": "&gt;",
467
463
  "&": "&amp;"
468
464
  };
469
- function fe(e) {
470
- return String(e).replace(/[<>&]/g, (e) => {
471
- var t;
472
- return (t = de == null ? void 0 : de[e]) == null ? e : t;
473
- });
465
+ function ue(e) {
466
+ return String(e).replace(/[<>&]/g, (e) => le?.[e] ?? e);
474
467
  }
475
468
  //#endregion
476
469
  //#region src/functions/getElementSafeScript.ts
477
- function pe(e, t) {
470
+ function de(e, t) {
478
471
  return `<script id="${e.replace(/"/g, "&quot;")}" type="application/json">${JSON.stringify(t).replace(/<\/(script)>/gi, "<\\/$1>")}<\/script>`;
479
472
  }
480
473
  //#endregion
481
474
  //#region src/functions/getHydrationData.ts
482
- function me(e, t, n = !0) {
475
+ function fe(e, t, n = !0) {
483
476
  if (typeof document < "u") {
484
477
  let t = document.getElementById(e);
485
478
  if (t) try {
486
479
  let e = JSON.parse(t.textContent || "");
487
480
  return n && t.remove(), e;
488
481
  } catch (t) {
489
- C.on({
482
+ w.on({
490
483
  group: "hydration",
491
484
  code: "error",
492
485
  details: {
@@ -500,9 +493,12 @@ function me(e, t, n = !0) {
500
493
  }
501
494
  //#endregion
502
495
  //#region src/classes/ServerStorage.ts
503
- var he = "__ui:server-storage__", ge = "__ui:server:storage:id__", T = class {
496
+ var pe = "__ui:server-storage__", me = "__ui:server:storage:id__", E = class {
497
+ static storage;
498
+ static listener;
499
+ static hideError;
504
500
  static init(e) {
505
- return this.listener || (this.listener = e), this;
501
+ return this.listener ||= e, this;
506
502
  }
507
503
  static reset() {
508
504
  this.storage = void 0, this.listener = void 0;
@@ -530,26 +526,21 @@ var he = "__ui:server-storage__", ge = "__ui:server:storage:id__", T = class {
530
526
  e in t && delete t[e];
531
527
  }
532
528
  static toString() {
533
- return pe(ge, this.getDataForHydration());
529
+ return de(me, this.getDataForHydration());
534
530
  }
535
531
  static getStorage(e = !0, t) {
536
- var n;
537
- if (c()) return this.getStorageDom();
538
- let r = (n = this.listener) == null ? void 0 : n.call(this);
539
- if (!r) {
540
- var i;
541
- return this.hideError || C.on({
542
- group: "storage",
543
- code: "context",
544
- details: { status: t }
545
- }), e && !this.storage && (this.storage = {}), (i = this.storage) == null ? {} : i;
546
- }
547
- return he in r || (r[he] = {}), r[he];
532
+ if (s()) return this.getStorageDom();
533
+ let n = this.listener?.();
534
+ return n ? (pe in n || (n[pe] = {}), n[pe]) : (this.hideError || w.on({
535
+ group: "storage",
536
+ code: "context",
537
+ details: { status: t }
538
+ }), e && !this.storage && (this.storage = {}), this.storage ?? {});
548
539
  }
549
540
  static getStorageDom() {
550
541
  if (!this.storage) {
551
- let e = me(ge, {});
552
- this.storage = {}, i(e, (e, t) => {
542
+ let e = fe(me, {});
543
+ this.storage = {}, r(e, (e, t) => {
553
544
  this.storage[t] = {
554
545
  value: e,
555
546
  hydration: !0
@@ -560,64 +551,57 @@ var he = "__ui:server-storage__", ge = "__ui:server:storage:id__", T = class {
560
551
  }
561
552
  static getDataForHydration() {
562
553
  let e = this.getStorage(void 0, "hydration"), t = {};
563
- return i(e, (e, n) => {
554
+ return r(e, (e, n) => {
564
555
  e.hydration && (t[n] = e.value);
565
556
  }), t;
566
557
  }
567
- };
568
- e(T, "storage", void 0), e(T, "listener", void 0), e(T, "hideError", void 0);
569
- //#endregion
570
- //#region src/classes/DataStorage.ts
571
- var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E = class {
558
+ }, he = "ui-storage", ge = () => E.get("__ui:data-storage__", () => ({})), D = class {
559
+ name;
560
+ isSession;
561
+ errorCenter;
572
562
  static setPrefix(e) {
573
- _e = e;
563
+ he = e;
574
564
  }
575
- constructor(t, n = !1, r = C.getItem()) {
576
- e(this, "name", void 0), e(this, "isSession", void 0), e(this, "errorCenter", void 0), e(this, "value", void 0), e(this, "age", void 0), this.name = t, this.isSession = n, this.errorCenter = r;
577
- let i = `${n ? "session" : "storage"}#${t}`, a = ve();
578
- if (i in a) return a[i];
579
- this.make(), a[i] = this;
565
+ value;
566
+ age;
567
+ constructor(e, t = !1, n = w.getItem()) {
568
+ this.name = e, this.isSession = t, this.errorCenter = n;
569
+ let r = `${t ? "session" : "storage"}#${e}`, i = ge();
570
+ if (r in i) return i[r];
571
+ this.make(), i[r] = this;
580
572
  }
581
573
  get(e, t) {
582
- if (!l(this.value) && this.isCache(t)) return this.value;
574
+ if (!c(this.value) && this.isCache(t)) return this.value;
583
575
  if (e !== void 0) return this.set(e);
584
576
  }
585
577
  set(e) {
586
- if (this.value = h(e), this.age = Date.now(), this.value === void 0) this.remove();
587
- else {
588
- var t;
589
- (t = this.getMethod()) == null || t.setItem(this.getIndex(), fe(JSON.stringify({
590
- value: this.value,
591
- age: this.age
592
- })));
593
- }
594
- return this.value;
578
+ return this.value = m(e), this.age = Date.now(), this.value === void 0 ? this.remove() : this.getMethod()?.setItem(this.getIndex(), ue(JSON.stringify({
579
+ value: this.value,
580
+ age: this.age
581
+ }))), this.value;
595
582
  }
596
583
  remove() {
597
- var e;
598
- return this.value = void 0, this.age = void 0, (e = this.getMethod()) == null || e.removeItem(this.getIndex()), this;
584
+ return this.value = void 0, this.age = void 0, this.getMethod()?.removeItem(this.getIndex()), this;
599
585
  }
600
586
  update() {
601
587
  return this.make(), this;
602
588
  }
603
589
  isCache(e) {
604
- return l(e) || this.age && this.age + e * 1e3 >= Date.now();
590
+ return c(e) || this.age && this.age + e * 1e3 >= Date.now();
605
591
  }
606
592
  getMethod() {
607
- if (c() && !oe()) {
608
- var e, t;
609
- let n = this.isSession ? (e = window) == null ? void 0 : e.sessionStorage : (t = window) == null ? void 0 : t.localStorage;
610
- if (n) return n;
593
+ if (s() && !ie()) {
594
+ let e = this.isSession ? window?.sessionStorage : window?.localStorage;
595
+ if (e) return e;
611
596
  }
612
597
  }
613
598
  getIndex() {
614
- return `${_e}__${this.name}`;
599
+ return `${he}__${this.name}`;
615
600
  }
616
601
  getValue() {
617
- var e, t;
618
- let n = (e = this.getMethod()) == null || (t = e.getItem) == null ? void 0 : t.call(e, this.getIndex());
619
- if (n) try {
620
- return JSON.parse(n);
602
+ let e = this.getMethod()?.getItem?.(this.getIndex());
603
+ if (e) try {
604
+ return JSON.parse(e);
621
605
  } catch (e) {
622
606
  this.errorCenter.on({
623
607
  group: "storage",
@@ -630,20 +614,17 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
630
614
  let e = this.getValue();
631
615
  return e ? (this.value = e.value, this.age = e.age) : (this.value = void 0, this.age = void 0), this;
632
616
  }
633
- }, ye = "__ui:cookie-block__", be = class {
634
- constructor() {
635
- e(this, "storage", new E(ye));
636
- }
617
+ }, _e = "__ui:cookie-block__", ve = class {
618
+ storage = new D(_e);
637
619
  get() {
638
- var e;
639
- return (e = this.storage.get()) != null && e;
620
+ return this.storage.get() ?? !1;
640
621
  }
641
622
  set(e) {
642
623
  this.storage.set(e);
643
624
  }
644
- }, xe = class {
625
+ }, ye = class {
645
626
  static getItem() {
646
- return T.get("__ui:cookie-block__", () => new be());
627
+ return E.get("__ui:cookie-block__", () => new ve());
647
628
  }
648
629
  static get() {
649
630
  return this.getItem().get();
@@ -651,7 +632,10 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
651
632
  static set(e) {
652
633
  this.getItem().set(e);
653
634
  }
654
- }, Se = "__ui:cookie-storage__", D = class {
635
+ }, be = "__ui:cookie-storage__", xe = class {
636
+ static getListener;
637
+ static getListenerRaw;
638
+ static setListener;
655
639
  static init(e, t, n) {
656
640
  this.getListener = e, this.getListenerRaw = t, this.setListener = n;
657
641
  }
@@ -659,62 +643,60 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
659
643
  this.getListener = void 0, this.getListenerRaw = void 0, this.setListener = void 0;
660
644
  }
661
645
  static get(e, t) {
662
- var n, r;
663
- let i = (n = (r = this.getListener) == null ? void 0 : r.call(this, e)) == null ? this.initItems()[e] : n;
664
- return i === void 0 && t !== void 0 ? this.set(e, t) : w(i);
646
+ let n = this.getListener?.(e) ?? this.initItems()[e];
647
+ return n === void 0 && t !== void 0 ? this.set(e, t) : T(n);
665
648
  }
666
649
  static set(e, t, n) {
667
- let r = h(t);
668
- if (xe.get()) return r;
669
- let i = S(r, !1);
650
+ let r = m(t);
651
+ if (ye.get()) return r;
652
+ let i = C(r, !1);
670
653
  return this.setListener ? this.setListener(e, i, this.format(e, i, n), n) : (this.initItems()[e] = i === "" ? void 0 : r, this.hasDom() && (document.cookie = this.format(e, i, n))), r;
671
654
  }
672
655
  static remove(e) {
673
656
  this.set(e, "", { age: -1 });
674
657
  }
675
658
  static update() {
676
- c() && (T.remove(Se), this.initItems());
659
+ s() && (E.remove(be), this.initItems());
677
660
  }
678
661
  static format(e, t, n) {
679
662
  return [
680
663
  `${encodeURIComponent(e)}=${encodeURIComponent(t)}`,
681
- this.toMaxAge(t, n == null ? void 0 : n.age),
682
- this.toSameSite(n == null ? void 0 : n.sameSite),
683
- this.toPath(n == null ? void 0 : n.path),
684
- this.toDomain(n == null ? void 0 : n.domain),
685
- this.toSecure(n == null ? void 0 : n.secure),
686
- this.toHttpOnly(n == null ? void 0 : n.httpOnly),
687
- this.toPartitioned(n == null ? void 0 : n.partitioned),
688
- ...this.toArguments(n == null ? void 0 : n.arguments)
664
+ this.toMaxAge(t, n?.age),
665
+ this.toSameSite(n?.sameSite),
666
+ this.toPath(n?.path),
667
+ this.toDomain(n?.domain),
668
+ this.toSecure(n?.secure),
669
+ this.toHttpOnly(n?.httpOnly),
670
+ this.toPartitioned(n?.partitioned),
671
+ ...this.toArguments(n?.arguments)
689
672
  ].filter(Boolean).join("; ");
690
673
  }
691
674
  static hasDom() {
692
- return c() && !oe();
675
+ return s() && !ie();
693
676
  }
694
677
  static parse(e) {
695
678
  let t = {};
696
679
  for (let n of e.split(";")) {
697
- let [e, r] = se(n.trim(), "=", 2);
698
- e && u(r) && (t[e] = r);
680
+ let [e, r] = ae(n.trim(), "=", 2);
681
+ e && l(r) && (t[e] = r);
699
682
  }
700
683
  return t;
701
684
  }
702
685
  static initItems() {
703
- return T.get(Se, () => {
704
- var e;
686
+ return E.get(be, () => {
705
687
  if (this.hasDom()) return this.parse(document.cookie);
706
- let t = (e = this.getListenerRaw) == null ? void 0 : e.call(this);
707
- return u(t) ? this.parse(t) : {};
688
+ let e = this.getListenerRaw?.();
689
+ return l(e) ? this.parse(e) : {};
708
690
  });
709
691
  }
710
692
  static toMaxAge(e, t) {
711
- return `Max-Age=${encodeURIComponent(e === "" ? -1 : t == null ? 604800 : t)}`;
693
+ return `Max-Age=${encodeURIComponent(e === "" ? -1 : t ?? 604800)}`;
712
694
  }
713
695
  static toSameSite(e) {
714
- return `SameSite=${encodeURIComponent(e == null ? "Strict" : e)}`;
696
+ return `SameSite=${encodeURIComponent(e ?? "Strict")}`;
715
697
  }
716
698
  static toPath(e) {
717
- return `Path=${encodeURIComponent(e == null ? "/" : e)}`;
699
+ return `Path=${encodeURIComponent(e ?? "/")}`;
718
700
  }
719
701
  static toDomain(e) {
720
702
  return e ? `Domain=${encodeURIComponent(e)}` : void 0;
@@ -729,38 +711,43 @@ var _e = "ui-storage", ve = () => T.get("__ui:data-storage__", () => ({})), E =
729
711
  return e ? "Partitioned" : void 0;
730
712
  }
731
713
  static toArguments(e) {
732
- return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${S(t)}`);
714
+ return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${C(t)}`);
733
715
  }
734
- };
735
- e(D, "getListener", void 0), e(D, "getListenerRaw", void 0), e(D, "setListener", void 0);
736
- //#endregion
737
- //#region src/classes/Cookie.ts
738
- var Ce = () => T.get("__ui:cookie-items__", () => ({})), we = class t {
739
- static getInstance(e) {
740
- var n, r;
741
- return (n = (r = Ce()) == null ? void 0 : r[e]) == null ? new t(e) : n;
742
- }
743
- constructor(t) {
744
- e(this, "name", void 0), e(this, "value", void 0), e(this, "options", {}), this.name = t;
745
- let n = Ce();
746
- if (t in n) return n[t];
747
- this.value = D.get(this.name), n[t] = this;
716
+ }, Se = () => E.get("__ui:cookie-items__", () => ({})), Ce = class e {
717
+ name;
718
+ static getInstance(t) {
719
+ return Se()?.[t] ?? new e(t);
720
+ }
721
+ value;
722
+ options = {};
723
+ constructor(e) {
724
+ this.name = e;
725
+ let t = Se();
726
+ if (e in t) return t[e];
727
+ this.value = xe.get(this.name), t[e] = this;
748
728
  }
749
729
  get(e, t) {
750
730
  return this.value === void 0 && e && this.set(e, t), this.value;
751
731
  }
752
732
  set(e, t) {
753
- this.value = h(e), Object.assign(this.options, t), this.update();
733
+ this.value = m(e), Object.assign(this.options, t), this.update();
754
734
  }
755
735
  remove() {
756
736
  this.set("");
757
737
  }
758
738
  update() {
759
- D.set(this.name, this.value, this.options);
760
- }
761
- }, Te = "ui-geo-code", Ee = "__ui:geo-code__", De = class {
739
+ xe.set(this.name, this.value, this.options);
740
+ }
741
+ }, we = "ui-geo-code", Te = "__ui:geo-code__", Ee = class {
742
+ list = [...e];
743
+ storage = new D(Te);
744
+ location;
745
+ valueDefault;
746
+ item;
747
+ language;
748
+ timezone = (/* @__PURE__ */ new Date()).getTimezoneOffset();
762
749
  constructor() {
763
- e(this, "list", [...t]), e(this, "storage", new E(Ee)), e(this, "location", void 0), e(this, "valueDefault", void 0), e(this, "item", void 0), e(this, "language", void 0), e(this, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
750
+ this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
764
751
  }
765
752
  get() {
766
753
  return this.item;
@@ -793,24 +780,17 @@ var Ce = () => T.get("__ui:cookie-items__", () => ({})), we = class t {
793
780
  return this.list;
794
781
  }
795
782
  getByCode(e) {
796
- var t;
797
- let n;
798
- return e && (/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/.test(e) && (n = this.getByCodeFull(e)), !n && /[A-Z]{2}/.test(e) && (n = this.getByCountry(this.toCountry(e))), !n && /[a-z]{2}/.test(e) && (n = this.getByLanguage(this.toLanguage(e)))), this.toFull((t = n) == null ? this.getList()[0] : t, e);
783
+ let t;
784
+ return e && (/([A-Z]{2}-[a-z]{2})|([a-z]{2}-[A-Z]{2})/.test(e) && (t = this.getByCodeFull(e)), !t && /[A-Z]{2}/.test(e) && (t = this.getByCountry(this.toCountry(e))), !t && /[a-z]{2}/.test(e) && (t = this.getByLanguage(this.toLanguage(e)))), this.toFull(t ?? this.getList()[0], e);
799
785
  }
800
786
  getByCodeFull(e) {
801
- return this.getList().find((t) => ae(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
787
+ return this.getList().find((t) => S(e, [`${t.language}-${t.country}`, `${t.country}-${t.language}`]));
802
788
  }
803
789
  getByCountry(e) {
804
- return this.getList().find((t) => {
805
- var n;
806
- return t.country === e || (t == null || (n = t.countryAlternative) == null ? void 0 : n.includes(e));
807
- });
790
+ return this.getList().find((t) => t.country === e || t?.countryAlternative?.includes(e));
808
791
  }
809
792
  getByLanguage(e) {
810
- return this.getList().find((t) => {
811
- var n;
812
- return t.language === e || (t == null || (n = t.languageAlternative) == null ? void 0 : n.includes(e));
813
- });
793
+ return this.getList().find((t) => t.language === e || t?.languageAlternative?.includes(e));
814
794
  }
815
795
  getTimezone() {
816
796
  return this.timezone;
@@ -824,9 +804,8 @@ var Ce = () => T.get("__ui:cookie-items__", () => ({})), we = class t {
824
804
  }
825
805
  toStandard(e, t) {
826
806
  if (t) {
827
- var n;
828
- let r = (n = this.getByLanguage(t)) == null ? void 0 : n.language;
829
- if (r) return `${r}-${e.country}`;
807
+ let n = this.getByLanguage(t)?.language;
808
+ if (n) return `${n}-${e.country}`;
830
809
  }
831
810
  return `${e.language}-${e.country}`;
832
811
  }
@@ -855,19 +834,18 @@ var Ce = () => T.get("__ui:cookie-items__", () => ({})), we = class t {
855
834
  return (this.item.country === e || this.toCountry(this.location) === e) && (this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location)), this;
856
835
  }
857
836
  addList(e) {
858
- return i(e, (e, t) => {
837
+ return r(e, (e, t) => {
859
838
  this.add(t, e);
860
839
  }), this;
861
840
  }
862
841
  getCookie() {
863
- return we.getInstance(Te);
842
+ return Ce.getInstance(we);
864
843
  }
865
844
  findLocation() {
866
- return this.getCookie().get() || this.findLocationDom() || h(this.valueDefault) || "en-GB";
845
+ return this.getCookie().get() || this.findLocationDom() || m(this.valueDefault) || "en-GB";
867
846
  }
868
847
  findLocationDom() {
869
- var e;
870
- return c() && (this.storage.get() || ((e = document.querySelector("html")) == null ? void 0 : e.lang) || navigator.language || navigator.languages[0] || void 0) || void 0;
848
+ return s() && (this.storage.get() || document.querySelector("html")?.lang || navigator.language || navigator.languages[0] || void 0) || void 0;
871
849
  }
872
850
  findLanguage(e) {
873
851
  if (e) {
@@ -890,15 +868,15 @@ var Ce = () => T.get("__ui:cookie-items__", () => ({})), we = class t {
890
868
  return {
891
869
  ...e,
892
870
  standard: r,
893
- firstDay: (e == null ? void 0 : e.firstDay) || "Mo",
894
- location: t == null ? r : t,
871
+ firstDay: e?.firstDay || "Mo",
872
+ location: t ?? r,
895
873
  locationCountry: t && this.toCountry(t) || e.country,
896
874
  locationLanguage: n
897
875
  };
898
876
  }
899
877
  }, O = class {
900
878
  static getObject() {
901
- return T.get("__ui:geo-instance__", () => new De());
879
+ return E.get("__ui:geo-instance__", () => new Ee());
902
880
  }
903
881
  static get() {
904
882
  return this.getObject().get();
@@ -972,30 +950,23 @@ var Ce = () => T.get("__ui:cookie-items__", () => ({})), we = class t {
972
950
  };
973
951
  //#endregion
974
952
  //#region src/functions/isWindow.ts
975
- function Oe(e) {
976
- return c() && e === window;
953
+ function De(e) {
954
+ return s() && e === window;
977
955
  }
978
956
  //#endregion
979
957
  //#region src/functions/getElement.ts
980
958
  function k(e) {
981
- if (!c()) return f(e) ? void 0 : e;
982
- if (Oe(e)) return document.body;
983
- if (f(e)) {
984
- var t;
985
- return (t = document.querySelector(e)) == null ? void 0 : t;
986
- }
987
- return e;
959
+ return s() ? De(e) ? document.body : d(e) ? document.querySelector(e) ?? void 0 : e : d(e) ? void 0 : e;
988
960
  }
989
961
  //#endregion
990
962
  //#region src/functions/getElementOrWindow.ts
991
- function ke(e) {
992
- return Oe(e) ? e : k(e);
963
+ function Oe(e) {
964
+ return De(e) ? e : k(e);
993
965
  }
994
966
  //#endregion
995
967
  //#region src/functions/isInDom.ts
996
- function Ae(e) {
997
- var t;
998
- return (e == null ? void 0 : e.isConnected) || !!((t = k(e)) != null && t.closest("html"));
968
+ function ke(e) {
969
+ return e?.isConnected || !!k(e)?.closest("html");
999
970
  }
1000
971
  //#endregion
1001
972
  //#region src/functions/toArray.ts
@@ -1004,14 +975,21 @@ function A(e) {
1004
975
  }
1005
976
  //#endregion
1006
977
  //#region src/classes/EventItem.ts
1007
- var je = class {
1008
- constructor(t, r = ["click"], i, a, o) {
1009
- e(this, "listener", void 0), e(this, "options", void 0), e(this, "detail", void 0), e(this, "element", void 0), e(this, "elementControl", void 0), e(this, "elementControlEdit", void 0), e(this, "type", void 0), e(this, "listenerRecent", (e) => {
1010
- if (Ae(this.elementControl)) {
1011
- var t, r;
1012
- (t = this.listener) == null || t.call(this.element, e, this.detail), n(this.options) && (r = this.options) != null && r.once && this.stop();
1013
- } else this.stop();
1014
- }), e(this, "activity", !1), e(this, "activityItems", []), this.listener = i, this.options = a, this.detail = o, this.element = ke(t), this.elementControl = k(t), this.type = A(r);
978
+ var Ae = class {
979
+ listener;
980
+ options;
981
+ detail;
982
+ element;
983
+ elementControl;
984
+ elementControlEdit;
985
+ type;
986
+ listenerRecent = (e) => {
987
+ ke(this.elementControl) ? (this.listener?.call(this.element, e, this.detail), t(this.options) && this.options?.once && this.stop()) : this.stop();
988
+ };
989
+ activity = !1;
990
+ activityItems = [];
991
+ constructor(e, t = ["click"], n, r, i) {
992
+ this.listener = n, this.options = r, this.detail = i, this.element = Oe(e), this.elementControl = k(e), this.type = A(t);
1015
993
  }
1016
994
  isActive() {
1017
995
  return this.activity;
@@ -1020,11 +998,11 @@ var je = class {
1020
998
  return this.element;
1021
999
  }
1022
1000
  setElement(e) {
1023
- let t = ke(e);
1001
+ let t = Oe(e);
1024
1002
  return this.elementControlEdit || (this.elementControl = k(e)), this.element = t, this.reset(), this;
1025
1003
  }
1026
1004
  setElementControl(e) {
1027
- return this.elementControl = k(e), this.elementControlEdit = !l(this.elementControl), this.elementControlEdit || (this.elementControl = k(this.element)), this;
1005
+ return this.elementControl = k(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = k(this.element)), this;
1028
1006
  }
1029
1007
  setType(e) {
1030
1008
  return this.type = A(e), this.reset(), this;
@@ -1039,13 +1017,10 @@ var je = class {
1039
1017
  return this.detail = e, this;
1040
1018
  }
1041
1019
  dispatch(e = this.detail) {
1042
- return this.type.forEach((t) => {
1043
- var n;
1044
- return (n = this.element) == null ? void 0 : n.dispatchEvent(new CustomEvent(t, { detail: e }));
1045
- }), this;
1020
+ return this.type.forEach((t) => this.element?.dispatchEvent(new CustomEvent(t, { detail: e }))), this;
1046
1021
  }
1047
1022
  start() {
1048
- return !this.activity && c() && (this.activity = !0, this.activityItems = [], this.type.forEach((e) => {
1023
+ return !this.activity && s() && (this.activity = !0, this.activityItems = [], this.type.forEach((e) => {
1049
1024
  this.element && !(e === "resize" && this.makeResize()) && !(e === "scroll-sync" && this.makeScroll()) && (this.element.addEventListener(e, this.listenerRecent, this.options), this.activityItems.push({
1050
1025
  element: this.element,
1051
1026
  type: e
@@ -1054,7 +1029,7 @@ var je = class {
1054
1029
  }
1055
1030
  stop() {
1056
1031
  return this.activity && (this.activity = !1, this.activityItems.forEach(({ element: e, type: t, listener: n, observer: r }) => {
1057
- r ? r.disconnect() : n ? e == null || e.removeEventListener(t, n) : e == null || e.removeEventListener(t, this.listenerRecent);
1032
+ r ? r.disconnect() : n ? e?.removeEventListener(t, n) : e?.removeEventListener(t, this.listenerRecent);
1058
1033
  })), this;
1059
1034
  }
1060
1035
  toggle(e) {
@@ -1064,11 +1039,11 @@ var je = class {
1064
1039
  return this.activity && (this.stop(), this.start()), this;
1065
1040
  }
1066
1041
  isObserver() {
1067
- return c() && "ResizeObserver" in window;
1042
+ return s() && "ResizeObserver" in window;
1068
1043
  }
1069
1044
  makeResize() {
1070
1045
  if (this.element && this.element instanceof HTMLElement && this.element !== document.body && this.isObserver()) {
1071
- let e = new ResizeObserver((e) => this.listenerRecent(e == null ? void 0 : e[0]));
1046
+ let e = new ResizeObserver((e) => this.listenerRecent(e?.[0]));
1072
1047
  return e.observe(this.element), this.activityItems.push({
1073
1048
  element: this.element,
1074
1049
  type: "resize",
@@ -1096,9 +1071,13 @@ var je = class {
1096
1071
  }
1097
1072
  return !1;
1098
1073
  }
1099
- }, Me = "ui-loading", Ne = class {
1100
- constructor(t = Me) {
1101
- e(this, "eventName", void 0), e(this, "value", 0), e(this, "event", void 0), e(this, "registrationList", []), this.eventName = t, c() && (this.event = new je(window, this.eventName));
1074
+ }, je = "ui-loading", Me = class {
1075
+ eventName;
1076
+ value = 0;
1077
+ event;
1078
+ registrationList = [];
1079
+ constructor(e = je) {
1080
+ this.eventName = e, s() && (this.event = new Ae(window, this.eventName));
1102
1081
  }
1103
1082
  is() {
1104
1083
  return this.value > 0;
@@ -1113,8 +1092,8 @@ var je = class {
1113
1092
  this.is() && (this.value--, this.dispatch());
1114
1093
  }
1115
1094
  registrationEvent(e, t) {
1116
- if (c()) {
1117
- let n = new je(window, this.eventName, e).setElementControl(t).start();
1095
+ if (s()) {
1096
+ let n = new Ae(window, this.eventName, e).setElementControl(t).start();
1118
1097
  this.registrationList.push({
1119
1098
  item: n,
1120
1099
  listener: e,
@@ -1126,8 +1105,7 @@ var je = class {
1126
1105
  this.registrationList = this.registrationList.filter((n) => n.listener === e && n.element === t ? (n.item.stop(), !1) : !0);
1127
1106
  }
1128
1107
  dispatch() {
1129
- var e;
1130
- (e = this.event) == null || e.dispatch({ loading: this.is() });
1108
+ this.event?.dispatch({ loading: this.is() });
1131
1109
  }
1132
1110
  }, j = class {
1133
1111
  static is() {
@@ -1137,7 +1115,7 @@ var je = class {
1137
1115
  return this.getItem().get();
1138
1116
  }
1139
1117
  static getItem() {
1140
- return T.get("__ui:loading-instance__", () => new Ne());
1118
+ return E.get("__ui:loading-instance__", () => new Me());
1141
1119
  }
1142
1120
  static show() {
1143
1121
  this.getItem().show();
@@ -1151,7 +1129,13 @@ var je = class {
1151
1129
  static unregistrationEvent(e, t) {
1152
1130
  this.getItem().unregistrationEvent(e, t);
1153
1131
  }
1154
- }, Pe, Fe = 86400, M = class {
1132
+ }, Ne = 86400, Pe = 16384, Fe = class {
1133
+ static items;
1134
+ static getListener;
1135
+ static setListener;
1136
+ static removeListener;
1137
+ static cacheStepAgeClearOld = Pe;
1138
+ static stepAgeClearOld = Pe;
1155
1139
  static init(e, t, n, r) {
1156
1140
  this.getListener = e, this.setListener = t, this.removeListener = n, r && (this.cacheStepAgeClearOld = r, this.stepAgeClearOld = r);
1157
1141
  }
@@ -1161,19 +1145,19 @@ var je = class {
1161
1145
  static async get(e) {
1162
1146
  let t = await this.getItemOrListener(e);
1163
1147
  return this.clearOld().catch((e) => {
1164
- C.on({
1148
+ w.on({
1165
1149
  group: "api",
1166
1150
  code: "cacheClear",
1167
1151
  details: e
1168
1152
  });
1169
- }), t == null ? void 0 : t.value;
1153
+ }), t?.value;
1170
1154
  }
1171
1155
  static async getByFetch(e) {
1172
1156
  if (!this.isCache(e)) return;
1173
1157
  let t = this.generateKey(e);
1174
1158
  return await this.get(t);
1175
1159
  }
1176
- static async set(e, t, n = Fe) {
1160
+ static async set(e, t, n = Ne) {
1177
1161
  let r = {
1178
1162
  value: t,
1179
1163
  age: n,
@@ -1192,7 +1176,7 @@ var je = class {
1192
1176
  }
1193
1177
  static isCache(e) {
1194
1178
  let { cache: t, enableClientCache: n } = e;
1195
- return c() && !n ? !1 : !!t;
1179
+ return s() && !n ? !1 : !!t;
1196
1180
  }
1197
1181
  static isAge(e) {
1198
1182
  return e ? !e.age || e.age * 1e3 + e.cacheAge >= Date.now() : !1;
@@ -1217,7 +1201,7 @@ var je = class {
1217
1201
  if (this.isAge(t)) return t;
1218
1202
  }
1219
1203
  static getList() {
1220
- return this.items || (this.items = {}), this.items;
1204
+ return this.items ||= {}, this.items;
1221
1205
  }
1222
1206
  static async setItemOrListener(e, t) {
1223
1207
  let n = this.setListener ? await this.setListener(e, t) : !1;
@@ -1235,44 +1219,31 @@ var je = class {
1235
1219
  this.isAge(t) || await this.removeItemOrListener(e);
1236
1220
  }
1237
1221
  }
1238
- };
1239
- Pe = M, e(M, "items", void 0), e(M, "getListener", void 0), e(M, "setListener", void 0), e(M, "removeListener", void 0), e(M, "cacheStepAgeClearOld", 16384), e(M, "stepAgeClearOld", Pe.cacheStepAgeClearOld);
1240
- //#endregion
1241
- //#region src/classes/ApiStatus.ts
1242
- var Ie = class {
1243
- constructor() {
1244
- e(this, "value", void 0);
1245
- }
1222
+ }, Ie = class {
1223
+ value;
1246
1224
  get() {
1247
1225
  return this.value;
1248
1226
  }
1249
1227
  getStatus() {
1250
- var e;
1251
- return (e = this.get()) == null ? void 0 : e.status;
1228
+ return this.get()?.status;
1252
1229
  }
1253
1230
  getStatusText() {
1254
- var e;
1255
- return (e = this.get()) == null ? void 0 : e.statusText;
1231
+ return this.get()?.statusText;
1256
1232
  }
1257
1233
  getStatusType() {
1258
- var e;
1259
- return (e = this.get()) == null ? void 0 : e.lastStatus;
1234
+ return this.get()?.lastStatus;
1260
1235
  }
1261
1236
  getCode() {
1262
- var e;
1263
- return (e = this.get()) == null ? void 0 : e.lastCode;
1237
+ return this.get()?.lastCode;
1264
1238
  }
1265
1239
  getError() {
1266
- var e;
1267
- return (e = this.get()) == null ? void 0 : e.error;
1240
+ return this.get()?.error;
1268
1241
  }
1269
1242
  getResponse() {
1270
- var e;
1271
- return (e = this.get()) == null ? void 0 : e.lastResponse;
1243
+ return this.get()?.lastResponse;
1272
1244
  }
1273
1245
  getMessage() {
1274
- var e;
1275
- return ((e = this.get()) == null ? void 0 : e.lastMessage) || "";
1246
+ return this.get()?.lastMessage || "";
1276
1247
  }
1277
1248
  set(e) {
1278
1249
  return "status" in e && this.setValue("status", e.status), "statusText" in e && this.setValue("statusText", e.statusText), "error" in e && this.setValue("error", e.error), "lastResponse" in e && this.setValue("lastResponse", e.lastResponse), "lastMessage" in e && this.setValue("lastMessage", e.lastMessage), "lastStatus" in e && this.setValue("lastStatus", e.lastStatus), "lastCode" in e && this.setValue("lastCode", e.lastCode), this;
@@ -1287,7 +1258,7 @@ var Ie = class {
1287
1258
  return this.set({ error: e }), this;
1288
1259
  }
1289
1260
  setLastResponse(e) {
1290
- return e && r(e) && ("message" in e && this.setLastMessage(String(e.message)), "status" in e && this.setLastStatus(String(e.status)), "code" in e && this.setLastCode(String(e.code))), this.set({ lastResponse: e }), this;
1261
+ return e && n(e) && ("message" in e && this.setLastMessage(String(e.message)), "status" in e && this.setLastStatus(String(e.status)), "code" in e && this.setLastCode(String(e.code))), this.set({ lastResponse: e }), this;
1291
1262
  }
1292
1263
  setLastStatus(e) {
1293
1264
  return this.set({ lastStatus: e }), this;
@@ -1299,7 +1270,7 @@ var Ie = class {
1299
1270
  return this.set({ lastMessage: e }), this;
1300
1271
  }
1301
1272
  setValue(e, t) {
1302
- this.value || (this.value = {}), this.value[e] = t;
1273
+ this.value ||= {}, this.value[e] = t;
1303
1274
  }
1304
1275
  }, Le = [
1305
1276
  "success",
@@ -1308,18 +1279,24 @@ var Ie = class {
1308
1279
  "message",
1309
1280
  "error"
1310
1281
  ], Re = class {
1311
- constructor(t, n, r, i) {
1312
- e(this, "apiFetch", void 0), e(this, "query", void 0), e(this, "end", void 0), e(this, "error", void 0), e(this, "data", void 0), e(this, "dataMod", void 0), this.apiFetch = t, this.query = n, this.end = r, this.error = i;
1282
+ apiFetch;
1283
+ query;
1284
+ end;
1285
+ error;
1286
+ data;
1287
+ dataMod;
1288
+ constructor(e, t, n, r) {
1289
+ this.apiFetch = e, this.query = t, this.end = n, this.error = r;
1313
1290
  }
1314
1291
  async init() {
1315
1292
  return this.data = await this.readData(), this;
1316
1293
  }
1317
1294
  get() {
1318
- return this.dataMod || (this.dataMod = this.initData()), this.dataMod;
1295
+ return this.dataMod ||= this.initData(), this.dataMod;
1319
1296
  }
1320
1297
  getAndStatus(e) {
1321
1298
  let t = this.get();
1322
- return t && r(t) ? {
1299
+ return t && n(t) ? {
1323
1300
  ...t,
1324
1301
  statusObject: e.get(),
1325
1302
  errorObject: this.error
@@ -1329,40 +1306,34 @@ var Ie = class {
1329
1306
  return this.data;
1330
1307
  }
1331
1308
  async readData() {
1332
- var e;
1333
- let { queryReturn: t } = this.apiFetch, n = this.query;
1334
- return t ? await t(n) : "data" in this.end ? this.end.data : ((e = n.headers.get("Content-Type")) == null ? "" : e).includes("application/json") ? await n.json() : { data: await n.text() };
1309
+ let { queryReturn: e } = this.apiFetch, t = this.query;
1310
+ return e ? await e(t) : "data" in this.end ? this.end.data : (t.headers.get("Content-Type") ?? "").includes("application/json") ? await t.json() : { data: await t.text() };
1335
1311
  }
1336
1312
  initData() {
1337
1313
  let { toData: e = !0 } = this.apiFetch, t = this.getData();
1338
- return t ? !e || !t || !r(t) || !("data" in t) ? t : t.data !== null && typeof t.data != "object" || a(t.data) ? t.data : this.initItem(t) : {};
1314
+ return t ? !e || !t || !n(t) || !("data" in t) ? t : t.data !== null && typeof t.data != "object" || i(t.data) ? t.data : this.initItem(t) : {};
1339
1315
  }
1340
1316
  initItem(e) {
1341
1317
  let t = { ...e.data };
1342
- return Le.forEach((n) => {
1343
- if (n in e && !(n in t) && (t[n] = e[n], n === "error" && r(e[n]))) {
1344
- var i, a, o, s;
1345
- t.code = (i = (a = e[n]) == null ? void 0 : a.code) == null ? e.code : i, t.message = (o = (s = e[n]) == null ? void 0 : s.message) == null ? e.message : o;
1346
- }
1318
+ return Le.forEach((r) => {
1319
+ r in e && !(r in t) && (t[r] = e[r], r === "error" && n(e[r]) && (t.code = e[r]?.code ?? e.code, t.message = e[r]?.message ?? e.message));
1347
1320
  }), t;
1348
1321
  }
1349
- }, N = /* @__PURE__ */ function(e) {
1322
+ }, M = /* @__PURE__ */ function(e) {
1350
1323
  return e.delete = "DELETE", e.get = "GET", e.post = "POST", e.put = "PUT", e.patch = "PATCH", e;
1351
1324
  }({}), ze = class {
1352
- constructor() {
1353
- e(this, "value", void 0);
1354
- }
1325
+ value;
1355
1326
  is() {
1356
1327
  return !!this.value;
1357
1328
  }
1358
1329
  get() {
1359
- return h(this.value);
1330
+ return m(this.value);
1360
1331
  }
1361
1332
  request(e) {
1362
1333
  let t = this.get();
1363
- if (u(t)) {
1334
+ if (l(t)) {
1364
1335
  if (e instanceof FormData) this.addByFormData(e, t);
1365
- else if (r(e)) return {
1336
+ else if (n(e)) return {
1366
1337
  ...t,
1367
1338
  ...e
1368
1339
  };
@@ -1378,8 +1349,12 @@ var Ie = class {
1378
1349
  }), this;
1379
1350
  }
1380
1351
  }, Be = class {
1381
- constructor(t, n, r) {
1382
- e(this, "method", void 0), e(this, "response", void 0), e(this, "error", void 0), e(this, "jsonResponse", void 0), this.method = t, this.response = n, this.error = r;
1352
+ method;
1353
+ response;
1354
+ error;
1355
+ jsonResponse;
1356
+ constructor(e, t, n) {
1357
+ this.method = e, this.response = t, this.error = n;
1383
1358
  }
1384
1359
  getMethod() {
1385
1360
  return this.method;
@@ -1391,20 +1366,16 @@ var Ie = class {
1391
1366
  return this.error;
1392
1367
  }
1393
1368
  getCode() {
1394
- var e;
1395
- return (e = this.error) == null ? void 0 : e.code;
1369
+ return this.error?.code;
1396
1370
  }
1397
1371
  getMessage() {
1398
- var e;
1399
- return h((e = this.error) == null ? void 0 : e.message, this.getResponse());
1372
+ return m(this.error?.message, this.getResponse());
1400
1373
  }
1401
1374
  getStatus() {
1402
1375
  return this.response.status;
1403
1376
  }
1404
1377
  }, Ve = class {
1405
- constructor() {
1406
- e(this, "storage", []);
1407
- }
1378
+ storage = [];
1408
1379
  async find(e, t) {
1409
1380
  let n = await this.getBody(t), r = this.getCode(n), i = this.getMessage(n) || t.statusText, a = this.findItem(e, t, r);
1410
1381
  return a ? {
@@ -1430,10 +1401,7 @@ var Ie = class {
1430
1401
  }), this;
1431
1402
  }
1432
1403
  findItem(e, t, n) {
1433
- for (let i of this.storage) {
1434
- var r;
1435
- if (!(!i.method.includes(e) || !this.isUrl(t.url, i.url)) && ((r = i.validation) != null && r.call(i, t) || n && i.code && i.code === n || i.status && i.status === t.status)) return i;
1436
- }
1404
+ for (let r of this.storage) if (r.method.includes(e) && this.isUrl(t.url, r.url) && (r.validation?.(t) || n && r.code && r.code === n || r.status && r.status === t.status)) return r;
1437
1405
  }
1438
1406
  isUrl(e, t) {
1439
1407
  return t instanceof RegExp ? t.test(e) : e.includes(t);
@@ -1441,13 +1409,13 @@ var Ie = class {
1441
1409
  async getBody(e) {
1442
1410
  try {
1443
1411
  return await e.clone().json();
1444
- } catch (e) {
1412
+ } catch {
1445
1413
  return;
1446
1414
  }
1447
1415
  }
1448
1416
  getDataByKey(e, t) {
1449
- if (f(e == null ? void 0 : e[t])) return e[t];
1450
- if (r(e == null ? void 0 : e.error) && f(e.error[t])) return e.error[t];
1417
+ if (d(e?.[t])) return e[t];
1418
+ if (n(e?.error) && d(e.error[t])) return e.error[t];
1451
1419
  }
1452
1420
  getCode(e) {
1453
1421
  return this.getDataByKey(e, "code");
@@ -1457,7 +1425,7 @@ var Ie = class {
1457
1425
  }
1458
1426
  }, He = class {
1459
1427
  static getStorage() {
1460
- return T.get("__ui:api-error-storage__", () => new Ve());
1428
+ return E.get("__ui:api-error-storage__", () => new Ve());
1461
1429
  }
1462
1430
  static add(e, t, n) {
1463
1431
  this.getStorage().add(e, t, n);
@@ -1466,14 +1434,12 @@ var Ie = class {
1466
1434
  return new Be(e, t, await this.getStorage().find(e, t));
1467
1435
  }
1468
1436
  }, Ue = class {
1469
- constructor() {
1470
- e(this, "headers", {});
1471
- }
1437
+ headers = {};
1472
1438
  get(e, t = "application/json;charset=UTF-8") {
1473
1439
  if (e === null) return;
1474
- let n = { ...h(this.headers) };
1475
- if (r(e)) for (let t in e) n[t.toLowerCase()] = e[t];
1476
- return u(t) && (n["content-type"] = t), n;
1440
+ let r = { ...m(this.headers) };
1441
+ if (n(e)) for (let t in e) r[t.toLowerCase()] = e[t];
1442
+ return l(t) && (r["content-type"] = t), r;
1477
1443
  }
1478
1444
  getByRequest(e, t, n = "application/json;charset=UTF-8") {
1479
1445
  return e instanceof FormData ? this.get(t, null) : this.get(t, n);
@@ -1482,15 +1448,13 @@ var Ie = class {
1482
1448
  return this.headers = e, this;
1483
1449
  }
1484
1450
  }, We = "__ui:api:hydration:id__", Ge = class {
1485
- constructor() {
1486
- e(this, "list", []);
1487
- }
1451
+ list = [];
1488
1452
  initResponse(e) {
1489
- c() && e.add(this.getListByClient());
1453
+ s() && e.add(this.getListByClient());
1490
1454
  }
1491
1455
  toClient(e, t) {
1492
- let { path: n, method: r = N.get, request: i, global: a = r === N.get } = e;
1493
- !a || !n || c() || this.list.push({
1456
+ let { path: n, method: r = M.get, request: i, global: a = r === M.get } = e;
1457
+ a && n && !s() && this.list.push({
1494
1458
  path: n,
1495
1459
  method: r,
1496
1460
  request: i,
@@ -1498,15 +1462,15 @@ var Ie = class {
1498
1462
  });
1499
1463
  }
1500
1464
  toString() {
1501
- return pe(We, this.list);
1465
+ return de(We, this.list);
1502
1466
  }
1503
1467
  getListByClient() {
1504
- return me(We, []);
1468
+ return fe(We, []);
1505
1469
  }
1506
1470
  }, Ke = class {
1507
- constructor() {
1508
- e(this, "callback", void 0), e(this, "callbackEnd", void 0), e(this, "loading", !1);
1509
- }
1471
+ callback;
1472
+ callbackEnd;
1473
+ loading = !1;
1510
1474
  async make(e, t) {
1511
1475
  if (e && this.callback) return this.go(t);
1512
1476
  }
@@ -1531,15 +1495,20 @@ var Ie = class {
1531
1495
  };
1532
1496
  //#endregion
1533
1497
  //#region src/functions/executePromise.ts
1534
- async function P(e, ...t) {
1535
- let n = h(e, ...t);
1498
+ async function N(e, ...t) {
1499
+ let n = m(e, ...t);
1536
1500
  return n instanceof Promise ? await n : n;
1537
1501
  }
1538
1502
  //#endregion
1539
1503
  //#region src/classes/ApiResponse.ts
1540
1504
  var qe = "d-response-loading", Je = class {
1541
- constructor(t) {
1542
- e(this, "requestDefault", void 0), e(this, "first", []), e(this, "response", []), e(this, "loading", void 0), e(this, "devMode", !1), this.requestDefault = t;
1505
+ requestDefault;
1506
+ first = [];
1507
+ response = [];
1508
+ loading;
1509
+ devMode = !1;
1510
+ constructor(e) {
1511
+ this.requestDefault = e;
1543
1512
  }
1544
1513
  get(e = "", t, n, r) {
1545
1514
  return this.response.find((i) => !this.isDisable(i) && this.isPath(i, e) && t === i.method && this.isFirst(i, r) && this.isResponse(i, n) ? (this.isDevMode(r) && console.warn(`Response type: ${i.path}`), this.first.push(i), !0) : !1);
@@ -1565,7 +1534,7 @@ var qe = "d-response-loading", Je = class {
1565
1534
  if (t) return this.fetchAsync(t.response);
1566
1535
  }
1567
1536
  isDisable(e) {
1568
- return !!h(e == null ? void 0 : e.disable);
1537
+ return !!m(e?.disable);
1569
1538
  }
1570
1539
  isPath(e, t) {
1571
1540
  return t === e.path || !!(e.path instanceof RegExp && e.path.test(t));
@@ -1577,12 +1546,12 @@ var qe = "d-response-loading", Je = class {
1577
1546
  return this.first.indexOf(e) === -1 || this.isDevMode(t);
1578
1547
  }
1579
1548
  isResponse(e, t) {
1580
- let n = this.requestDefault.request(e == null ? void 0 : e.request);
1581
- return t === n || n === "*any" || u(t) && u(n) && r(t) && r(n) && !(t instanceof FormData) && !(n instanceof FormData) && Object.values(t).length === Object.values(n).length && Object.entries(n).every(([e, n]) => n === (t == null ? void 0 : t[e]) || n === "*any");
1549
+ let r = this.requestDefault.request(e?.request);
1550
+ return t === r || r === "*any" || l(t) && l(r) && n(t) && n(r) && !(t instanceof FormData) && !(r instanceof FormData) && Object.values(t).length === Object.values(r).length && Object.entries(r).every(([e, n]) => n === t?.[e] || n === "*any");
1582
1551
  }
1583
1552
  readData(e) {
1584
- if (!c()) return;
1585
- let { path: t = "", method: n = N.get, global: r = n === N.get, devMode: i = !1 } = e;
1553
+ if (!s()) return;
1554
+ let { path: t = "", method: n = M.get, global: r = n === M.get, devMode: i = !1 } = e;
1586
1555
  if (r || this.isDevMode(i)) {
1587
1556
  let r = this.requestDefault.request(e.request), a = this.get(t, n, r, i);
1588
1557
  if (a) return {
@@ -1593,10 +1562,10 @@ var qe = "d-response-loading", Je = class {
1593
1562
  }
1594
1563
  fetch(e, t) {
1595
1564
  return this.startResponseLoading(), new Promise((n) => {
1596
- P(m(e.response) ? e.response(t) : e.response).then((t) => {
1597
- e != null && e.lag ? (j.show(), setTimeout(() => {
1565
+ N(p(e.response) ? e.response(t) : e.response).then((t) => {
1566
+ e?.lag ? (j.show(), setTimeout(() => {
1598
1567
  this.stopResponseLoading(), n(t), j.hide();
1599
- }, p(0, 2e3))) : (this.stopResponseLoading(), n(t));
1568
+ }, f(0, 2e3))) : (this.stopResponseLoading(), n(t));
1600
1569
  });
1601
1570
  });
1602
1571
  }
@@ -1604,21 +1573,34 @@ var qe = "d-response-loading", Je = class {
1604
1573
  return e.response;
1605
1574
  }
1606
1575
  startResponseLoading() {
1607
- this.loading && clearTimeout(this.loading), c() && document.body.classList.add(qe);
1576
+ this.loading && clearTimeout(this.loading), s() && document.body.classList.add(qe);
1608
1577
  }
1609
1578
  stopResponseLoading() {
1610
- c() && (this.loading = setTimeout(() => {
1579
+ s() && (this.loading = setTimeout(() => {
1611
1580
  this.loading = void 0, document.body.classList.remove(qe);
1612
1581
  }, 2400));
1613
1582
  }
1614
1583
  }, Ye = class {
1615
- constructor(t = "/api/", n = {}) {
1616
- e(this, "url", void 0), e(this, "geo", void 0), e(this, "headers", void 0), e(this, "requestDefault", void 0), e(this, "status", void 0), e(this, "response", void 0), e(this, "preparation", void 0), e(this, "loading", void 0), e(this, "errorCenter", void 0), e(this, "hydration", void 0), e(this, "timeout", 16e3), e(this, "origin", void 0), e(this, "wrapper", void 0), this.url = t;
1617
- let { headersClass: r = Ue, requestDefaultClass: i = ze, statusClass: a = Ie, responseClass: o = Je, preparationClass: s = Ke, loadingClass: c = j.getItem(), errorCenterClass: l = C.getItem(), hydrationClass: u = Ge, wrapper: d } = n;
1618
- this.geo = O.getObject(), this.headers = new r(), this.requestDefault = new i(), this.status = new a(), this.response = new o(this.requestDefault), this.preparation = new s(), this.loading = c, this.errorCenter = l, this.hydration = new u(), this.wrapper = d, this.hydration.initResponse(this.response);
1584
+ url;
1585
+ geo;
1586
+ headers;
1587
+ requestDefault;
1588
+ status;
1589
+ response;
1590
+ preparation;
1591
+ loading;
1592
+ errorCenter;
1593
+ hydration;
1594
+ timeout = 16e3;
1595
+ origin;
1596
+ wrapper;
1597
+ constructor(e = "/api/", t = {}) {
1598
+ this.url = e;
1599
+ let { headersClass: n = Ue, requestDefaultClass: r = ze, statusClass: i = Ie, responseClass: a = Je, preparationClass: o = Ke, loadingClass: s = j.getItem(), errorCenterClass: c = w.getItem(), hydrationClass: l = Ge, wrapper: u } = t;
1600
+ this.geo = O.getObject(), this.headers = new n(), this.requestDefault = new r(), this.status = new i(), this.response = new a(this.requestDefault), this.preparation = new o(), this.loading = s, this.errorCenter = c, this.hydration = new l(), this.wrapper = u, this.hydration.initResponse(this.response);
1619
1601
  }
1620
1602
  isLocalhost() {
1621
- return c() && typeof location < "u" && location.hostname === "localhost";
1603
+ return s() && typeof location < "u" && location.hostname === "localhost";
1622
1604
  }
1623
1605
  getStatus() {
1624
1606
  return this.status;
@@ -1635,14 +1617,14 @@ var qe = "d-response-loading", Je = class {
1635
1617
  getUrl(e, t = !0) {
1636
1618
  return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", this.geo.getLocation()).replace("{country}", this.geo.getCountry()).replace("{language}", this.geo.getLanguage());
1637
1619
  }
1638
- getBody(e = {}, t = N.get) {
1620
+ getBody(e = {}, t = M.get) {
1639
1621
  if (e instanceof FormData) return e;
1640
- if (t !== N.get && u(e)) return f(e) ? e : JSON.stringify(e);
1622
+ if (t !== M.get && l(e)) return d(e) ? e : JSON.stringify(e);
1641
1623
  }
1642
- getBodyForGet(e, t = "", n = N.get) {
1643
- if (n === N.get) {
1644
- let n = t.match(/\?/) ? "&" : "?", r = typeof e == "object" ? s(e) : e;
1645
- if (u(r)) return `${n}${r}`;
1624
+ getBodyForGet(e, t = "", n = M.get) {
1625
+ if (n === M.get) {
1626
+ let n = t.match(/\?/) ? "&" : "?", r = typeof e == "object" ? o(e) : e;
1627
+ if (l(r)) return `${n}${r}`;
1646
1628
  }
1647
1629
  return "";
1648
1630
  }
@@ -1674,47 +1656,46 @@ var qe = "d-response-loading", Je = class {
1674
1656
  return this.wrapper = e, this;
1675
1657
  }
1676
1658
  async request(e) {
1677
- var t;
1678
- let n = f(e) ? { path: e } : e, r = (t = n.wrapper) == null ? this.wrapper : t;
1679
- return r ? await r(() => this.fetch(n), n) : await this.fetch(n);
1659
+ let t = d(e) ? { path: e } : e, n = t.wrapper ?? this.wrapper;
1660
+ return n ? await n(() => this.fetch(t), t) : await this.fetch(t);
1680
1661
  }
1681
1662
  get(e) {
1682
1663
  return this.request({
1683
1664
  ...e,
1684
- method: N.get
1665
+ method: M.get
1685
1666
  });
1686
1667
  }
1687
1668
  post(e) {
1688
1669
  return this.request({
1689
1670
  ...e,
1690
- method: N.post
1671
+ method: M.post
1691
1672
  });
1692
1673
  }
1693
1674
  put(e) {
1694
1675
  return this.request({
1695
1676
  ...e,
1696
- method: N.put
1677
+ method: M.put
1697
1678
  });
1698
1679
  }
1699
1680
  patch(e) {
1700
1681
  return this.request({
1701
1682
  ...e,
1702
- method: N.patch
1683
+ method: M.patch
1703
1684
  });
1704
1685
  }
1705
1686
  delete(e) {
1706
1687
  return this.request({
1707
1688
  ...e,
1708
- method: N.delete
1689
+ method: M.delete
1709
1690
  });
1710
1691
  }
1711
1692
  getRetryDelay(e, t) {
1712
- return p(t, t + e * t);
1693
+ return f(t, t + e * t);
1713
1694
  }
1714
1695
  async fetch(e, t = 0) {
1715
- let { method: n = N.get, api: r = !0, path: i = "", hideError: a = !1, hideLoading: o = !1, retry: s = 0, retryDelay: c = 64, globalPreparation: l = !0, globalEnd: u = !0, initError: d = !0, endResetLimit: f = 8 } = e, p = this.getUrl(i, r), m = await this.response.emulator(e);
1696
+ let { method: n = M.get, api: r = !0, path: i = "", hideError: a = !1, hideLoading: o = !1, retry: s = 0, retryDelay: c = 64, globalPreparation: l = !0, globalEnd: u = !0, initError: d = !0, endResetLimit: f = 8 } = e, p = this.getUrl(i, r), m = await this.response.emulator(e);
1716
1697
  if (m) return m;
1717
- let h = await M.getByFetch(e);
1698
+ let h = await Fe.getByFetch(e);
1718
1699
  if (h) return this.hydration.toClient(e, h), h;
1719
1700
  let g = new Ie(), _, v;
1720
1701
  o || this.loading.show();
@@ -1723,36 +1704,29 @@ var qe = "d-response-loading", Je = class {
1723
1704
  let { query: r, timeoutId: i } = await this.makeQuery(e, p);
1724
1705
  i && clearTimeout(i);
1725
1706
  let m = await this.preparation.makeEnd(u, r, e);
1726
- if (g.setStatus(r.status, r.statusText), this.status.setStatus(r.status, r.statusText), !a && r.status >= 400) {
1727
- var te;
1728
- d && (v = await He.getItem(n, r)), this.makeErrorQuery((te = v) == null ? r : te);
1729
- }
1730
- if (m != null && m.reset && t < f || t < s) return await ee(this.getRetryDelay(t, c)), o || this.loading.hide(), await this.fetch(e, t + 1);
1707
+ if (g.setStatus(r.status, r.statusText), this.status.setStatus(r.status, r.statusText), !a && r.status >= 400 && (d && (v = await He.getItem(n, r)), this.makeErrorQuery(v ?? r)), m?.reset && t < f || t < s) return await ee(this.getRetryDelay(t, c)), o || this.loading.hide(), await this.fetch(e, t + 1);
1731
1708
  _ = new Re(e, r, m, v), await _.init();
1732
1709
  } catch (e) {
1733
1710
  throw a || this.makeError(e), g.setError(String(e)), this.status.setError(String(e)), o || this.loading.hide(), e;
1734
1711
  }
1735
1712
  g.setLastResponse(_.getData()), this.status.setLastResponse(_.getData());
1736
1713
  let y = _.getAndStatus(g);
1737
- return o || this.loading.hide(), this.hydration.toClient(e, y), await M.setByFetch(e, y), y;
1714
+ return o || this.loading.hide(), this.hydration.toClient(e, y), await Fe.setByFetch(e, y), y;
1738
1715
  }
1739
1716
  async makeQuery(e, t) {
1740
- let n = this.requestDefault.request(e.request), { pathFull: r = void 0, method: i = N.get, headers: a = {}, type: o = "application/json;charset=UTF-8", init: s = {} } = e, c = r == null ? t : r, l = `${c}${this.getBodyForGet(n, c, i)}`, u = this.headers.getByRequest(e.request, a, o), d = {
1717
+ let n = this.requestDefault.request(e.request), { pathFull: r = void 0, method: i = M.get, headers: a = {}, type: o = "application/json;charset=UTF-8", init: s = {} } = e, c = r ?? t, l = `${c}${this.getBodyForGet(n, c, i)}`, u = this.headers.getByRequest(e.request, a, o), d = {
1741
1718
  ...s,
1742
1719
  method: i,
1743
1720
  body: this.getBody(n, i)
1744
1721
  };
1745
- if (u) {
1746
- var f;
1747
- d.headers = {
1748
- ...u,
1749
- ...(f = s.headers) == null ? {} : f
1750
- };
1751
- }
1752
- let p = this.initController(e, d);
1722
+ u && (d.headers = {
1723
+ ...u,
1724
+ ...s.headers ?? {}
1725
+ });
1726
+ let f = this.initController(e, d);
1753
1727
  return {
1754
1728
  query: await fetch(l, d),
1755
- timeoutId: p
1729
+ timeoutId: f
1756
1730
  };
1757
1731
  }
1758
1732
  makeError(e, t = "api") {
@@ -1765,7 +1739,7 @@ var qe = "d-response-loading", Je = class {
1765
1739
  });
1766
1740
  break;
1767
1741
  case "AbortError": break;
1768
- default: d() ? this.errorCenter.on({
1742
+ default: u() ? this.errorCenter.on({
1769
1743
  group: t,
1770
1744
  code: "unknown",
1771
1745
  details: e
@@ -1825,18 +1799,18 @@ var qe = "d-response-loading", Je = class {
1825
1799
  return;
1826
1800
  }
1827
1801
  if (n) {
1828
- let e = r == null ? new AbortController() : r;
1802
+ let e = r ?? new AbortController();
1829
1803
  return t.signal = e.signal, setTimeout(() => {
1830
1804
  e.abort(new DOMException("Timeout", "TimeoutError"));
1831
1805
  }, n);
1832
1806
  }
1833
1807
  }
1834
- }, F = class {
1808
+ }, P = class {
1835
1809
  static isLocalhost() {
1836
1810
  return this.getItem().isLocalhost();
1837
1811
  }
1838
1812
  static getItem() {
1839
- return T.get("__ui:api-instance__", () => new Ye());
1813
+ return E.get("__ui:api-instance__", () => new Ye());
1840
1814
  }
1841
1815
  static getStatus() {
1842
1816
  return this.getItem().getStatus();
@@ -1856,10 +1830,10 @@ var qe = "d-response-loading", Je = class {
1856
1830
  static getUrl(e, t = !0) {
1857
1831
  return this.getItem().getUrl(e, t);
1858
1832
  }
1859
- static getBody(e = {}, t = N.get) {
1833
+ static getBody(e = {}, t = M.get) {
1860
1834
  return this.getItem().getBody(e, t);
1861
1835
  }
1862
- static getBodyForGet(e, t = "", n = N.get) {
1836
+ static getBodyForGet(e, t = "", n = M.get) {
1863
1837
  return this.getItem().getBodyForGet(e, t, n);
1864
1838
  }
1865
1839
  static setHeaders(e) {
@@ -1887,7 +1861,7 @@ var qe = "d-response-loading", Je = class {
1887
1861
  this.getItem().setWrapper(e);
1888
1862
  }
1889
1863
  static setConfig(e) {
1890
- e && r(e) && (e.urlRoot && this.setUrl(e.urlRoot), e.headers && this.setHeaders(e.headers), e.requestDefault && this.setRequestDefault(e.requestDefault), e.preparation && this.setPreparation(e.preparation), e.end && this.setEnd(e.end), e.timeout && this.setTimeout(e.timeout), e.devMode && this.getResponse().setDevMode(e.devMode), e.origin && this.setOrigin(e.origin), e.wrapper && this.setWrapper(e.wrapper));
1864
+ e && n(e) && (e.urlRoot && this.setUrl(e.urlRoot), e.headers && this.setHeaders(e.headers), e.requestDefault && this.setRequestDefault(e.requestDefault), e.preparation && this.setPreparation(e.preparation), e.end && this.setEnd(e.end), e.timeout && this.setTimeout(e.timeout), e.devMode && this.getResponse().setDevMode(e.devMode), e.origin && this.setOrigin(e.origin), e.wrapper && this.setWrapper(e.wrapper));
1891
1865
  }
1892
1866
  static async request(e) {
1893
1867
  return this.getItem().request(e);
@@ -1908,17 +1882,14 @@ var qe = "d-response-loading", Je = class {
1908
1882
  return this.getItem().delete(e);
1909
1883
  }
1910
1884
  }, Xe = class {
1911
- constructor(t, n, r, i = C.getItem()) {
1912
- if (e(this, "callback", void 0), e(this, "callbackError", void 0), e(this, "channel", void 0), e(this, "update", (e) => {
1913
- var t;
1914
- return (t = this.callback) == null || t.call(this, e), this;
1915
- }), e(this, "updateError", (e) => {
1916
- var t;
1917
- return (t = this.callbackError) == null || t.call(this, e), this;
1918
- }), this.callback = n, this.callbackError = r, c()) try {
1919
- this.channel = new BroadcastChannel(`${Ze()}__${t}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1885
+ callback;
1886
+ callbackError;
1887
+ channel;
1888
+ constructor(e, t, n, r = w.getItem()) {
1889
+ if (this.callback = t, this.callbackError = n, s()) try {
1890
+ this.channel = new BroadcastChannel(`${Ze()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
1920
1891
  } catch (e) {
1921
- i.on({
1892
+ r.on({
1922
1893
  group: "broadcast",
1923
1894
  code: "error",
1924
1895
  details: e
@@ -1929,8 +1900,7 @@ var qe = "d-response-loading", Je = class {
1929
1900
  return this.channel;
1930
1901
  }
1931
1902
  post(e) {
1932
- var t;
1933
- return (t = this.channel) == null || t.postMessage(e), this;
1903
+ return this.channel?.postMessage(e), this;
1934
1904
  }
1935
1905
  setCallback(e) {
1936
1906
  return this.callback = e, this;
@@ -1939,12 +1909,17 @@ var qe = "d-response-loading", Je = class {
1939
1909
  return this.callbackError = e, this;
1940
1910
  }
1941
1911
  destroy() {
1942
- var e;
1943
- return (e = this.channel) == null || e.close(), this.channel = void 0, this;
1944
- }
1945
- }, Ze = () => new E("__ui:broadcast-name__").get(() => `name_${p(1e6, 9999999)}`), Qe = class {
1946
- constructor(t) {
1947
- e(this, "callback", void 0), e(this, "cache", void 0), e(this, "cacheOld", void 0), e(this, "comparisons", []), this.callback = t;
1912
+ return this.channel?.close(), this.channel = void 0, this;
1913
+ }
1914
+ update = (e) => (this.callback?.(e), this);
1915
+ updateError = (e) => (this.callbackError?.(e), this);
1916
+ }, Ze = () => new D("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), Qe = class {
1917
+ callback;
1918
+ cache;
1919
+ cacheOld;
1920
+ comparisons = [];
1921
+ constructor(e) {
1922
+ this.callback = e;
1948
1923
  }
1949
1924
  getCache(e) {
1950
1925
  return this.isUpdate(e) && (this.cacheOld = this.cache, this.setCache()), this.cache;
@@ -1965,21 +1940,19 @@ var qe = "d-response-loading", Je = class {
1965
1940
  return this.cache === void 0 || this.comparisons.length !== e.length || this.comparisons.findIndex((t, n) => t !== e[n]) >= 0 ? (this.comparisons = [...e], !0) : !1;
1966
1941
  }
1967
1942
  }, $e = class {
1968
- constructor() {
1969
- e(this, "cache", {});
1970
- }
1943
+ cache = {};
1971
1944
  get(e, t, n) {
1972
- return this.getCacheItem(e, t).getCache(n == null ? [] : n);
1945
+ return this.getCacheItem(e, t).getCache(n ?? []);
1973
1946
  }
1974
1947
  async getAsync(e, t, n) {
1975
- return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
1948
+ return await this.getCacheItem(e, t).getCacheAsync(n ?? []);
1976
1949
  }
1977
1950
  getCacheItem(e, t) {
1978
1951
  return e in this.cache || (this.cache[e] = new Qe(t)), this.cache[e];
1979
1952
  }
1980
1953
  }, et = class {
1981
1954
  static getItem() {
1982
- return T.get("__ui:cache-static__", () => new $e());
1955
+ return E.get("__ui:cache-static__", () => new $e());
1983
1956
  }
1984
1957
  static get(e, t, n) {
1985
1958
  return this.getItem().get(e, t, n);
@@ -1990,41 +1963,42 @@ var qe = "d-response-loading", Je = class {
1990
1963
  };
1991
1964
  //#endregion
1992
1965
  //#region src/functions/toDate.ts
1993
- function I(e) {
1994
- var t, n, r, i, a, o, s, c;
1966
+ function F(e) {
1995
1967
  if (e instanceof Date) return e;
1996
- if (l(e)) return /* @__PURE__ */ new Date();
1968
+ if (c(e)) return /* @__PURE__ */ new Date();
1997
1969
  if (typeof e == "number") return new Date(e);
1998
- let u = e, d = O.getTimezoneFormat().trim();
1999
- e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
2000
- let f = (t = (n = (r = (i = (a = (o = (s = (c = /^\d{4}\d{2}\d{2}$/.exec(u) && `${u.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) == null ? /^\d{4}\d{2}$/.exec(u) && `${u.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00` : c) == null ? /^\d{4}\d{2}\d{2} \d{2}:\d{2}:\d{2}$/.exec(u) && u.replace(/^(\d{4})(\d{2})(\d{2}) (\d{2}):(\d{2}):(\d{2})$/, "$1-$2-$3T$4:$5:$6") : s) == null ? /^\d{4}-\d{2}-\d{2}$/.exec(u) && `${u}T00:00:00` : o) == null ? /^\d{4}-\d{2}$/.exec(u) && `${u}-01T00:00:00` : a) == null ? /^\d{4}$/.exec(u) && `${u}-01-01T00:00:00` : i) == null ? /^\d{2}:\d{2}$/.exec(u) && `2000-01-01T${u}:00` : r) == null ? /^\d{2}:\d{2}:\d{2}$/.exec(u) && `2000-01-01T${u}` : n) == null ? u.replace(" ", "T") : t;
2001
- return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
1970
+ let t = e, n = O.getTimezoneFormat().trim();
1971
+ e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, r, i) => (t = r, n = i.trim(), e));
1972
+ let r = (/^\d{4}\d{2}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})(\d{2})$/, "$1-$2-$3")}T00:00:00`) ?? (/^\d{4}\d{2}$/.exec(t) && `${t.replace(/^(\d{4})(\d{2})$/, "$1-$2")}-01T00:00:00`) ?? (/^\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")) ?? (/^\d{4}-\d{2}-\d{2}$/.exec(t) && `${t}T00:00:00`) ?? (/^\d{4}-\d{2}$/.exec(t) && `${t}-01T00:00:00`) ?? (/^\d{4}$/.exec(t) && `${t}-01-01T00:00:00`) ?? (/^\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}:00`) ?? (/^\d{2}:\d{2}:\d{2}$/.exec(t) && `2000-01-01T${t}`) ?? t.replace(" ", "T");
1973
+ return /* @__PURE__ */ new Date(`${r.trim()}${n}`);
2002
1974
  }
2003
1975
  //#endregion
2004
1976
  //#region src/functions/getColumn.ts
2005
1977
  function tt(e, t) {
2006
- return i(e, (e) => e == null ? void 0 : e[t], !0);
1978
+ return r(e, (e) => e?.[t], !0);
2007
1979
  }
2008
1980
  //#endregion
2009
1981
  //#region src/classes/GeoIntl.ts
2010
- var L = class t {
1982
+ var I = class e {
1983
+ errorCenter;
2011
1984
  static isItem(e = O.getLocation()) {
2012
- return this.getLocation(e) in z;
1985
+ return this.getLocation(e) in R;
2013
1986
  }
2014
1987
  static getLocation(e = O.getLocation()) {
2015
- if (e in R) return R[e];
1988
+ if (e in L) return L[e];
2016
1989
  let t = O.find(e);
2017
- return R[e] = t.standard, t.standard;
1990
+ return L[e] = t.standard, t.standard;
2018
1991
  }
2019
- static getInstance(e = O.getLocation()) {
2020
- let n = this.getLocation(e);
2021
- return n in z ? z[n] : new t(e);
1992
+ static getInstance(t = O.getLocation()) {
1993
+ let n = this.getLocation(t);
1994
+ return n in R ? R[n] : new e(t);
2022
1995
  }
2023
- constructor(t = O.getLocation(), n = C.getItem()) {
2024
- e(this, "errorCenter", void 0), e(this, "geo", void 0), this.errorCenter = n, this.geo = O.find(t);
2025
- let r = this.getLocation();
2026
- if (r in z) return z[r];
2027
- R[t] = r, z[r] = this;
1996
+ geo;
1997
+ constructor(e = O.getLocation(), t = w.getItem()) {
1998
+ this.errorCenter = t, this.geo = O.find(e);
1999
+ let n = this.getLocation();
2000
+ if (n in R) return R[n];
2001
+ L[e] = n, R[n] = this;
2028
2002
  }
2029
2003
  getLocation() {
2030
2004
  return this.geo.standard;
@@ -2033,14 +2007,13 @@ var L = class t {
2033
2007
  return this.geo.firstDay;
2034
2008
  }
2035
2009
  display(e, t) {
2036
- var n, r;
2037
- let i = { type: "language" }, a;
2038
- t && (typeof t == "string" ? i.type = t : i = {
2039
- ...i,
2010
+ let n = { type: "language" }, r;
2011
+ t && (typeof t == "string" ? n.type = t : n = {
2012
+ ...n,
2040
2013
  ...t
2041
2014
  });
2042
2015
  try {
2043
- typeof Intl < "u" && (e ? a = new Intl.DisplayNames(this.getLocation(), i).of(e) : i.type === "language" ? a = new Intl.DisplayNames(this.getLocation(), i).of(this.geo.language) : i.type === "region" && (a = new Intl.DisplayNames(this.getLocation(), i).of(this.geo.country)));
2016
+ typeof Intl < "u" && (e ? r = new Intl.DisplayNames(this.getLocation(), n).of(e) : n.type === "language" ? r = new Intl.DisplayNames(this.getLocation(), n).of(this.geo.language) : n.type === "region" && (r = new Intl.DisplayNames(this.getLocation(), n).of(this.geo.country)));
2044
2017
  } catch (e) {
2045
2018
  this.errorCenter.on({
2046
2019
  group: "intl",
@@ -2048,7 +2021,7 @@ var L = class t {
2048
2021
  details: e
2049
2022
  });
2050
2023
  }
2051
- return (n = (r = a) == null ? e : r) == null ? "" : n;
2024
+ return r ?? e ?? "";
2052
2025
  }
2053
2026
  languageName(e, t) {
2054
2027
  let n = {
@@ -2065,29 +2038,26 @@ var L = class t {
2065
2038
  return this.display(e, n);
2066
2039
  }
2067
2040
  fullName(e, t, n, r) {
2068
- var i, a;
2069
- let o = (i = (a = this.geo) == null ? void 0 : a.nameFormat) == null ? "fl" : i, s = r ? t[0].toUpperCase() + "." : t, c = r ? (n == null ? void 0 : n[0].toUpperCase()) + "." : n, l;
2070
- switch (o) {
2041
+ let i = this.geo?.nameFormat ?? "fl", a = r ? t[0].toUpperCase() + "." : t, o = r ? n?.[0].toUpperCase() + "." : n, s;
2042
+ switch (i) {
2071
2043
  case "fsl":
2072
- l = `${s}${c ? ` ${c}` : ""} ${e}`;
2044
+ s = `${a}${o ? ` ${o}` : ""} ${e}`;
2073
2045
  break;
2074
2046
  case "lf":
2075
- l = `${e} ${s}`;
2047
+ s = `${e} ${a}`;
2076
2048
  break;
2077
2049
  case "lsf":
2078
- l = `${e}${c ? ` ${c}` : ""} ${s}`;
2050
+ s = `${e}${o ? ` ${o}` : ""} ${a}`;
2079
2051
  break;
2080
- default: l = `${s} ${e}`;
2052
+ default: s = `${a} ${e}`;
2081
2053
  }
2082
- return l;
2054
+ return s;
2083
2055
  }
2084
2056
  number(e, t) {
2085
- var n, r;
2086
- return ((n = this.numberObject(t)) == null || (r = n.format) == null ? void 0 : r.call(n, x(e))) || e.toString();
2057
+ return this.numberObject(t)?.format?.(x(e)) || e.toString();
2087
2058
  }
2088
2059
  decimal() {
2089
- var e, t, n;
2090
- return ((e = this.numberObject()) == null || (t = e.formatToParts) == null || (t = t.call(e, 1.2)) == null || (n = t.find) == null || (n = n.call(t, (e) => e.type === "decimal")) == null ? void 0 : n.value) || ".";
2060
+ return this.numberObject()?.formatToParts?.(1.2)?.find?.((e) => e.type === "decimal")?.value || ".";
2091
2061
  }
2092
2062
  currency(e, t, n = !1) {
2093
2063
  let r = {
@@ -2105,12 +2075,11 @@ var L = class t {
2105
2075
  });
2106
2076
  }
2107
2077
  currencySymbol(e, t = "symbol") {
2108
- var n, r, i;
2109
- return ((n = this.numberObject({
2078
+ return this.numberObject({
2110
2079
  style: "currency",
2111
2080
  currencyDisplay: t,
2112
2081
  currency: e
2113
- })) == null || (r = n.formatToParts) == null || (r = r.call(n, 100)) == null || (i = r.find) == null || (i = i.call(r, (e) => e.type === "currency")) == null ? void 0 : i.value) || e;
2082
+ })?.formatToParts?.(100)?.find?.((e) => e.type === "currency")?.value || e;
2114
2083
  }
2115
2084
  unit(e, t) {
2116
2085
  let n = {
@@ -2121,7 +2090,7 @@ var L = class t {
2121
2090
  }
2122
2091
  sizeFile(e, t = "byte") {
2123
2092
  let n = x(e);
2124
- if (n > 1024 && f(t)) switch (t) {
2093
+ if (n > 1024 && d(t)) switch (t) {
2125
2094
  case "byte": return this.sizeFile(n / 1024, "kilobyte");
2126
2095
  case "kilobyte": return this.sizeFile(n / 1024, "megabyte");
2127
2096
  case "megabyte": return this.sizeFile(n / 1024, "gigabyte");
@@ -2140,31 +2109,29 @@ var L = class t {
2140
2109
  return this.percent(x(e) / 100, t);
2141
2110
  }
2142
2111
  plural(e, t, n, r) {
2143
- var i;
2144
- let a = x(e), o = t.split("|");
2145
- if (o.length > 1) try {
2112
+ let i = x(e), a = t.split("|");
2113
+ if (a.length > 1) try {
2146
2114
  if (typeof Intl < "u") {
2147
- var s;
2148
- let e = new Intl.PluralRules(this.getLocation(), n).select(a), t;
2115
+ let e = new Intl.PluralRules(this.getLocation(), n).select(i), t;
2149
2116
  switch (e) {
2150
2117
  case "zero":
2151
- t = o[o.length - 1];
2118
+ t = a[a.length - 1];
2152
2119
  break;
2153
2120
  case "one":
2154
- t = o == null ? void 0 : o[0];
2121
+ t = a?.[0];
2155
2122
  break;
2156
2123
  case "two":
2157
- t = o == null ? void 0 : o[1];
2124
+ t = a?.[1];
2158
2125
  break;
2159
2126
  case "few":
2160
- t = o != null && o[3] ? o == null ? void 0 : o[2] : o == null ? void 0 : o[1];
2127
+ t = a?.[3] ? a?.[2] : a?.[1];
2161
2128
  break;
2162
2129
  case "many":
2163
- t = (o == null ? void 0 : o[3]) || (o == null ? void 0 : o[2]) || (o == null ? void 0 : o[1]);
2130
+ t = a?.[3] || a?.[2] || a?.[1];
2164
2131
  break;
2165
- case "other": t = o.length === 6 ? o[o.length - 2] : o[o.length - 1];
2132
+ case "other": t = a.length === 6 ? a[a.length - 2] : a[a.length - 1];
2166
2133
  }
2167
- return `${this.number(a, r)} ${(s = t) == null ? "" : s}`.trim();
2134
+ return `${this.number(i, r)} ${t ?? ""}`.trim();
2168
2135
  }
2169
2136
  } catch (e) {
2170
2137
  this.errorCenter.on({
@@ -2173,21 +2140,21 @@ var L = class t {
2173
2140
  details: e
2174
2141
  });
2175
2142
  }
2176
- return `${this.number(a, r)} ${(i = o == null ? void 0 : o[0]) == null ? "" : i}`.trim();
2143
+ return `${this.number(i, r)} ${a?.[0] ?? ""}`.trim();
2177
2144
  }
2178
2145
  date(e, t, n, r) {
2179
- let i = I(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
2146
+ let i = F(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
2180
2147
  return r && (o.hour12 = !1), a || Object.assign(o, n), i.toLocaleString(this.getLocation(), o);
2181
2148
  }
2182
2149
  relative(e, t, n) {
2183
- let r = I(e), i = n || /* @__PURE__ */ new Date(), a = {
2150
+ let r = F(e), i = n || /* @__PURE__ */ new Date(), a = {
2184
2151
  numeric: "auto",
2185
2152
  ...typeof t == "string" ? { style: t } : t || {}
2186
2153
  }, o = "second", s = (r.getTime() - i.getTime()) / 1e3;
2187
2154
  return Math.abs(s) >= 60 && (o = "minute", s /= 60, Math.abs(s) >= 60 && (o = "hour", s /= 60, Math.abs(s) >= 24 && (o = "day", s /= 24, Math.abs(s) >= 30 && (o = "month", s /= 30, Math.abs(s) >= 12 && (o = "year", s /= 12))))), this.relativeByValue(s, o, a);
2188
2155
  }
2189
2156
  relativeLimit(e, t, n, r, i, a, o) {
2190
- let s = I(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
2157
+ let s = F(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
2191
2158
  return l.setDate(c.getDate() - t), u.setDate(c.getDate() + t), s >= l && s <= u ? this.relative(s, r, c) : this.date(s, a, i, o);
2192
2159
  }
2193
2160
  relativeByValue(e, t, n) {
@@ -2208,7 +2175,7 @@ var L = class t {
2208
2175
  }
2209
2176
  month(e, t) {
2210
2177
  try {
2211
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(I(e));
2178
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(F(e));
2212
2179
  } catch (e) {
2213
2180
  this.errorCenter.on({
2214
2181
  group: "intl",
@@ -2242,7 +2209,7 @@ var L = class t {
2242
2209
  }
2243
2210
  weekday(e, t) {
2244
2211
  try {
2245
- if (this.hasIntlDateTimeFormat()) return new Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(I(e));
2212
+ if (this.hasIntlDateTimeFormat()) return new Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(F(e));
2246
2213
  } catch (e) {
2247
2214
  this.errorCenter.on({
2248
2215
  group: "intl",
@@ -2344,15 +2311,20 @@ var L = class t {
2344
2311
  "second"
2345
2312
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
2346
2313
  }
2347
- }, R = {}, z = {}, nt = class t {
2348
- constructor(t, n = "date", r = O.getLocation()) {
2349
- e(this, "type", void 0), e(this, "code", void 0), e(this, "date", void 0), e(this, "hour24", !1), e(this, "watch", void 0), this.type = n, this.code = r, this.date = I(t), isNaN(this.date.getTime()) && C.on({
2314
+ }, L = {}, R = {}, nt = class e {
2315
+ type;
2316
+ code;
2317
+ date;
2318
+ hour24 = !1;
2319
+ watch;
2320
+ constructor(e, t = "date", n = O.getLocation()) {
2321
+ this.type = t, this.code = n, this.date = F(e), isNaN(this.date.getTime()) && w.on({
2350
2322
  group: "intl",
2351
2323
  code: "invalid"
2352
2324
  });
2353
2325
  }
2354
2326
  getIntl() {
2355
- return L.getInstance(this.code);
2327
+ return I.getInstance(this.code);
2356
2328
  }
2357
2329
  getDate() {
2358
2330
  return this.date;
@@ -2424,8 +2396,8 @@ var L = class t {
2424
2396
  localeSecond(e = "numeric") {
2425
2397
  return this.locale("second", { second: e });
2426
2398
  }
2427
- standard(e = !0) {
2428
- let n = new t(this.date, this.type, "en-GB"), r = [], i;
2399
+ standard(t = !0) {
2400
+ let n = new e(this.date, this.type, "en-GB"), r = [], i;
2429
2401
  return n.setHour24(!0), this.type === "hour-minute" ? i = n.locale(this.type, {
2430
2402
  year: "numeric",
2431
2403
  month: "2-digit",
@@ -2452,10 +2424,10 @@ var L = class t {
2452
2424
  "hour",
2453
2425
  "minute",
2454
2426
  "second"
2455
- ].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${e ? n.getTimeZone() : ""}` : ""}`;
2427
+ ].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${t ? n.getTimeZone() : ""}` : ""}`;
2456
2428
  }
2457
2429
  setDate(e) {
2458
- return this.date = I(e), this.update(), this;
2430
+ return this.date = F(e), this.update(), this;
2459
2431
  }
2460
2432
  setType(e) {
2461
2433
  return this.type = e, this.update(), this;
@@ -2601,17 +2573,15 @@ var L = class t {
2601
2573
  return `${e >= 0 ? "+" : "-"}${t}`;
2602
2574
  }
2603
2575
  update() {
2604
- var e;
2605
- return (e = this.watch) == null || e.call(this, this.date, this.type, this.hour24), this;
2576
+ return this.watch?.(this.date, this.type, this.hour24), this;
2606
2577
  }
2607
2578
  };
2608
2579
  //#endregion
2609
2580
  //#region src/functions/getItemByPath.ts
2610
- function B(e, t) {
2611
- var r;
2612
- if (!u(t, !0)) return;
2613
- let i = se(t, ".", 2), a = i[0];
2614
- return a && e != null && e[a] && n(e[a]) && i != null && i[1] ? B(e[a], i[1]) : (r = e == null ? void 0 : e[a]) == null ? void 0 : r;
2581
+ function z(e, n) {
2582
+ if (!l(n, !0)) return;
2583
+ let r = ae(n, ".", 2), i = r[0];
2584
+ return i && e?.[i] && t(e[i]) && r?.[1] ? z(e[i], r[1]) : e?.[i] ?? void 0;
2615
2585
  }
2616
2586
  //#endregion
2617
2587
  //#region src/functions/toCamelCase.ts
@@ -2620,11 +2590,13 @@ function rt(e) {
2620
2590
  }
2621
2591
  //#endregion
2622
2592
  //#region src/types/formattersTypes.ts
2623
- var V = /* @__PURE__ */ function(e) {
2593
+ var B = /* @__PURE__ */ function(e) {
2624
2594
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
2625
2595
  }({}), it = class {
2626
- constructor(t, n) {
2627
- e(this, "options", void 0), e(this, "list", void 0), this.options = t, this.list = n;
2596
+ options;
2597
+ list;
2598
+ constructor(e, t) {
2599
+ this.options = e, this.list = t;
2628
2600
  }
2629
2601
  is() {
2630
2602
  return !!this.list;
@@ -2645,7 +2617,7 @@ var V = /* @__PURE__ */ function(e) {
2645
2617
  return this.list = e, this;
2646
2618
  }
2647
2619
  to() {
2648
- let e = i(this.getList(), (e) => ({
2620
+ let e = r(this.getList(), (e) => ({
2649
2621
  ...e,
2650
2622
  ...this.getFormatData(e)
2651
2623
  }));
@@ -2653,62 +2625,302 @@ var V = /* @__PURE__ */ function(e) {
2653
2625
  }
2654
2626
  getFormatData(e) {
2655
2627
  let t = {};
2656
- return i(this.options, (n, r) => {
2657
- let i = `${rt(r)}Format`, a = B(e, r);
2658
- n != null && n.transformation ? u(a) ? t[i] = n.transformation(a, e, n.options) : t[i] = "" : t[i] = this.transformation(a, e, n.type, n.options);
2628
+ return r(this.options, (n, r) => {
2629
+ let i = `${rt(r)}Format`, a = z(e, r);
2630
+ n?.transformation ? l(a) ? t[i] = n.transformation(a, e, n.options) : t[i] = "" : t[i] = this.transformation(a, e, n.type, n.options);
2659
2631
  }), t;
2660
2632
  }
2661
2633
  transformation(e, t, n, r) {
2662
- if (u(e) || n === V.name) switch (n) {
2663
- case V.currency: return this.formatCurrency(e, t, r);
2664
- case V.date: return this.formatDate(e, r);
2665
- case V.name: return this.formatName(t, r);
2666
- case V.number: return this.formatNumber(e, r);
2667
- case V.plural: return this.formatPlural(e, r);
2668
- case V.unit: return this.formatUnit(e, r);
2634
+ if (l(e) || n === B.name) switch (n) {
2635
+ case B.currency: return this.formatCurrency(e, t, r);
2636
+ case B.date: return this.formatDate(e, r);
2637
+ case B.name: return this.formatName(t, r);
2638
+ case B.number: return this.formatNumber(e, r);
2639
+ case B.plural: return this.formatPlural(e, r);
2640
+ case B.unit: return this.formatUnit(e, r);
2669
2641
  default: return String(e);
2670
2642
  }
2671
2643
  return "";
2672
2644
  }
2673
2645
  formatCurrency(e, t, n) {
2674
- var r;
2675
- let i = n != null && n.currencyPropName ? B(t, n.currencyPropName) : t == null ? void 0 : t.currency;
2676
- return L.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
2646
+ let r = n?.currencyPropName ? z(t, n.currencyPropName) : t?.currency;
2647
+ return I.getInstance().currency(e, n?.options ?? r, n?.numberOnly);
2677
2648
  }
2678
2649
  formatDate(e, t) {
2679
- return L.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
2650
+ return I.getInstance().date(e, t?.type, t?.options, t?.hour24);
2680
2651
  }
2681
2652
  formatName(e, t) {
2682
- var n, r, i;
2683
- let a = B(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = B(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = B(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
2684
- return a && o ? L.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
2653
+ let n = z(e, t?.lastPropName ?? "lastName"), r = z(e, t?.firstPropName ?? "firstName"), i = z(e, t?.surname ?? "surname");
2654
+ return n && r ? I.getInstance().fullName(n, r, i, t?.short) : "";
2685
2655
  }
2686
2656
  formatNumber(e, t) {
2687
- return L.getInstance().number(e, t == null ? void 0 : t.options);
2657
+ return I.getInstance().number(e, t?.options);
2688
2658
  }
2689
2659
  formatPlural(e, t) {
2690
- return t && t.words ? L.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
2660
+ return t && t.words ? I.getInstance().plural(e, t?.words, t?.options, t?.optionsNumber) : e;
2691
2661
  }
2692
2662
  formatUnit(e, t) {
2693
- return t && t.unit ? L.getInstance().unit(e, t.unit) : e;
2694
- }
2695
- }, at = "f", ot = class t {
2696
- constructor(t = O.getLocation()) {
2697
- e(this, "code", void 0), this.code = t;
2663
+ return t && t.unit ? I.getInstance().unit(e, t.unit) : e;
2664
+ }
2665
+ }, at = "f", ot = class e {
2666
+ code;
2667
+ static flags = {
2668
+ RU: "f-ru",
2669
+ FR: "f-fr",
2670
+ GB: "f-gb",
2671
+ US: "f-us",
2672
+ DE: "f-de",
2673
+ ES: "f-es",
2674
+ VN: "f-vn",
2675
+ CN: "f-cn",
2676
+ IT: "f-it",
2677
+ JP: "f-jp",
2678
+ KR: "f-kr",
2679
+ PT: "f-pt",
2680
+ TR: "f-tr",
2681
+ PL: "f-pl",
2682
+ NL: "f-nl",
2683
+ UA: "f-ua",
2684
+ BY: "f-by",
2685
+ KZ: "f-kz",
2686
+ GR: "f-gr",
2687
+ CZ: "f-cz",
2688
+ HU: "f-hu",
2689
+ RO: "f-ro",
2690
+ BG: "f-bg",
2691
+ HR: "f-hr",
2692
+ RS: "f-rs",
2693
+ SK: "f-sk",
2694
+ SI: "f-si",
2695
+ LT: "f-lt",
2696
+ LV: "f-lv",
2697
+ EE: "f-ee",
2698
+ FI: "f-fi",
2699
+ SE: "f-se",
2700
+ NO: "f-no",
2701
+ DK: "f-dk",
2702
+ IL: "f-il",
2703
+ TH: "f-th",
2704
+ ID: "f-id",
2705
+ MY: "f-my",
2706
+ PH: "f-ph",
2707
+ SA: "f-sa",
2708
+ IR: "f-ir",
2709
+ PK: "f-pk",
2710
+ AM: "f-am",
2711
+ GE: "f-ge",
2712
+ AZ: "f-az",
2713
+ TJ: "f-tj",
2714
+ KG: "f-kg",
2715
+ UZ: "f-uz",
2716
+ TM: "f-tm",
2717
+ MN: "f-mn",
2718
+ AD: "f-ad",
2719
+ AE: "f-ae",
2720
+ AF: "f-af",
2721
+ AG: "f-ag",
2722
+ AI: "f-ai",
2723
+ AL: "f-al",
2724
+ AN: "f-an",
2725
+ AO: "f-ao",
2726
+ AQ: "f-aq",
2727
+ AR: "f-ar",
2728
+ AS: "f-as",
2729
+ AT: "f-at",
2730
+ AU: "f-au",
2731
+ AW: "f-aw",
2732
+ BA: "f-ba",
2733
+ BB: "f-bb",
2734
+ BD: "f-bd",
2735
+ BE: "f-be",
2736
+ BF: "f-bf",
2737
+ BH: "f-bh",
2738
+ BI: "f-bi",
2739
+ BJ: "f-bj",
2740
+ BL: "f-bl",
2741
+ BM: "f-bm",
2742
+ BN: "f-bn",
2743
+ BO: "f-bo",
2744
+ BR: "f-br",
2745
+ BS: "f-bs",
2746
+ BT: "f-bt",
2747
+ BW: "f-bw",
2748
+ BZ: "f-bz",
2749
+ CA: "f-ca",
2750
+ CC: "f-cc",
2751
+ CD: "f-cd",
2752
+ CF: "f-cf",
2753
+ CG: "f-cg",
2754
+ CH: "f-ch",
2755
+ CI: "f-ci",
2756
+ CK: "f-ck",
2757
+ CL: "f-cl",
2758
+ CM: "f-cm",
2759
+ CO: "f-co",
2760
+ CR: "f-cr",
2761
+ CU: "f-cu",
2762
+ CV: "f-cv",
2763
+ CW: "f-cw",
2764
+ CX: "f-cx",
2765
+ CY: "f-cy",
2766
+ DJ: "f-dj",
2767
+ DM: "f-dm",
2768
+ DZ: "f-dz",
2769
+ EC: "f-ec",
2770
+ EG: "f-eg",
2771
+ EH: "f-eh",
2772
+ ER: "f-er",
2773
+ ET: "f-et",
2774
+ FJ: "f-fj",
2775
+ FK: "f-fk",
2776
+ FM: "f-fm",
2777
+ FO: "f-fo",
2778
+ GA: "f-ga",
2779
+ GD: "f-gd",
2780
+ GF: "f-gf",
2781
+ GG: "f-gg",
2782
+ GH: "f-gh",
2783
+ GI: "f-gi",
2784
+ GL: "f-gl",
2785
+ GM: "f-gm",
2786
+ GN: "f-gn",
2787
+ GQ: "f-gq",
2788
+ GT: "f-gt",
2789
+ GU: "f-gu",
2790
+ GW: "f-gw",
2791
+ GY: "f-gy",
2792
+ HK: "f-hk",
2793
+ HN: "f-hn",
2794
+ HT: "f-ht",
2795
+ IE: "f-ie",
2796
+ IM: "f-im",
2797
+ IO: "f-io",
2798
+ IQ: "f-iq",
2799
+ IS: "f-is",
2800
+ JE: "f-je",
2801
+ JM: "f-jm",
2802
+ JO: "f-jo",
2803
+ KE: "f-ke",
2804
+ KH: "f-kh",
2805
+ KI: "f-ki",
2806
+ KM: "f-km",
2807
+ KN: "f-kn",
2808
+ KP: "f-kp",
2809
+ KW: "f-kw",
2810
+ KY: "f-ky",
2811
+ LA: "f-la",
2812
+ LB: "f-lb",
2813
+ LC: "f-lc",
2814
+ LI: "f-li",
2815
+ LK: "f-lk",
2816
+ LR: "f-lr",
2817
+ LS: "f-ls",
2818
+ LU: "f-lu",
2819
+ LY: "f-ly",
2820
+ MA: "f-ma",
2821
+ MC: "f-mc",
2822
+ MD: "f-md",
2823
+ ME: "f-me",
2824
+ MF: "f-mf",
2825
+ MG: "f-mg",
2826
+ MH: "f-mh",
2827
+ MK: "f-mk",
2828
+ ML: "f-ml",
2829
+ MM: "f-mm",
2830
+ MO: "f-mo",
2831
+ MP: "f-mp",
2832
+ MQ: "f-mq",
2833
+ MR: "f-mr",
2834
+ MS: "f-ms",
2835
+ MT: "f-mt",
2836
+ MU: "f-mu",
2837
+ MV: "f-mv",
2838
+ MW: "f-mw",
2839
+ MX: "f-mx",
2840
+ MZ: "f-mz",
2841
+ NA: "f-na",
2842
+ NC: "f-nc",
2843
+ NE: "f-ne",
2844
+ NF: "f-nf",
2845
+ NG: "f-ng",
2846
+ NI: "f-ni",
2847
+ NP: "f-np",
2848
+ NR: "f-nr",
2849
+ NU: "f-nu",
2850
+ NZ: "f-nz",
2851
+ OM: "f-om",
2852
+ PA: "f-pa",
2853
+ PE: "f-pe",
2854
+ PF: "f-pf",
2855
+ PG: "f-pg",
2856
+ PM: "f-pm",
2857
+ PN: "f-pn",
2858
+ PR: "f-pr",
2859
+ PS: "f-ps",
2860
+ PW: "f-pw",
2861
+ PY: "f-py",
2862
+ QA: "f-qa",
2863
+ RE: "f-re",
2864
+ RW: "f-rw",
2865
+ SB: "f-sb",
2866
+ SC: "f-sc",
2867
+ SD: "f-sd",
2868
+ SG: "f-sg",
2869
+ SH: "f-sh",
2870
+ SJ: "f-sj",
2871
+ SL: "f-sl",
2872
+ SM: "f-sm",
2873
+ SN: "f-sn",
2874
+ SO: "f-so",
2875
+ SR: "f-sr",
2876
+ SS: "f-ss",
2877
+ ST: "f-st",
2878
+ SV: "f-sv",
2879
+ SX: "f-sx",
2880
+ SY: "f-sy",
2881
+ SZ: "f-sz",
2882
+ TC: "f-tc",
2883
+ TD: "f-td",
2884
+ TG: "f-tg",
2885
+ TK: "f-tk",
2886
+ TL: "f-tl",
2887
+ TN: "f-tn",
2888
+ TO: "f-to",
2889
+ TT: "f-tt",
2890
+ TV: "f-tv",
2891
+ TW: "f-tw",
2892
+ TZ: "f-tz",
2893
+ UG: "f-ug",
2894
+ UY: "f-uy",
2895
+ VA: "f-va",
2896
+ VC: "f-vc",
2897
+ VE: "f-ve",
2898
+ VG: "f-vg",
2899
+ VI: "f-vi",
2900
+ VU: "f-vu",
2901
+ WF: "f-wf",
2902
+ WS: "f-ws",
2903
+ YE: "f-ye",
2904
+ YT: "f-yt",
2905
+ ZA: "f-za",
2906
+ ZM: "f-zm",
2907
+ ZW: "f-zw"
2908
+ };
2909
+ constructor(e = O.getLocation()) {
2910
+ this.code = e;
2698
2911
  }
2699
- get(e = this.getCode()) {
2700
- let n = O.find(e);
2912
+ get(t = this.getCode()) {
2913
+ let n = O.find(t);
2701
2914
  if (n) {
2702
- var r;
2703
- let e = this.getCountry(n);
2915
+ let t = this.getCountry(n);
2704
2916
  return {
2705
2917
  language: this.getLanguageName(n),
2706
2918
  languageCode: n.language,
2707
- country: e,
2919
+ country: t,
2708
2920
  countryCode: n.country,
2709
2921
  standard: n.standard,
2710
- icon: (r = t.flags) == null ? void 0 : r[n.country],
2711
- label: e,
2922
+ icon: e.flags?.[n.country],
2923
+ label: t,
2712
2924
  value: n.country,
2713
2925
  phoneCode: n.phoneCode
2714
2926
  };
@@ -2726,52 +2938,51 @@ var V = /* @__PURE__ */ function(e) {
2726
2938
  return this.code || O.getLocation();
2727
2939
  }
2728
2940
  getFlag(e = this.getCode()) {
2729
- var t;
2730
- return (t = this.get(e)) == null ? void 0 : t.icon;
2941
+ return this.get(e)?.icon;
2731
2942
  }
2732
2943
  getList(e, t = !0) {
2733
- let n = i(this.getCodes(e), (e) => this.get(e));
2734
- return t ? new L().sort(n, (e, t) => [e.label, t.label]) : n;
2944
+ let n = r(this.getCodes(e), (e) => this.get(e));
2945
+ return t ? new I().sort(n, (e, t) => [e.label, t.label]) : n;
2735
2946
  }
2736
2947
  getListLanguage(e, t = !0) {
2737
- let n = [], r = /* @__PURE__ */ new Set();
2738
- return i(this.getCodes(e), (e) => {
2948
+ let n = [], i = /* @__PURE__ */ new Set();
2949
+ return r(this.getCodes(e), (e) => {
2739
2950
  let t = this.getLanguage(e);
2740
- t && !r.has(t.value) && (n.push(t), r.add(t.value));
2741
- }), t ? new L().sort(n, (e, t) => [e.label, t.label]) : n;
2951
+ t && !i.has(t.value) && (n.push(t), i.add(t.value));
2952
+ }), t ? new I().sort(n, (e, t) => [e.label, t.label]) : n;
2742
2953
  }
2743
- getNational(e, n = !0) {
2744
- let r = i(this.getList(e, !1), (e) => {
2745
- let n = new t(e.standard).get(e.standard);
2954
+ getNational(t, n = !0) {
2955
+ let i = r(this.getList(t, !1), (t) => {
2956
+ let n = new e(t.standard).get(t.standard);
2746
2957
  return {
2747
- ...e,
2748
- description: n == null ? void 0 : n.country,
2749
- nationalLanguage: n == null ? void 0 : n.language,
2750
- nationalCountry: n == null ? void 0 : n.country
2958
+ ...t,
2959
+ description: n?.country,
2960
+ nationalLanguage: n?.language,
2961
+ nationalCountry: n?.country
2751
2962
  };
2752
2963
  });
2753
- return n ? new L().sort(r, (e, t) => [e.label, t.label]) : r;
2964
+ return n ? new I().sort(i, (e, t) => [e.label, t.label]) : i;
2754
2965
  }
2755
- getNationalLanguage(e, n = !0) {
2756
- let r = i(this.getListLanguage(e, !1), (e) => {
2757
- let n = new t(e.standard).getLanguage(e.standard);
2966
+ getNationalLanguage(t, n = !0) {
2967
+ let i = r(this.getListLanguage(t, !1), (t) => {
2968
+ let n = new e(t.standard).getLanguage(t.standard);
2758
2969
  return {
2759
- ...e,
2760
- description: n == null ? void 0 : n.language,
2761
- nationalLanguage: n == null ? void 0 : n.language,
2762
- nationalCountry: n == null ? void 0 : n.country
2970
+ ...t,
2971
+ description: n?.language,
2972
+ nationalLanguage: n?.language,
2973
+ nationalCountry: n?.country
2763
2974
  };
2764
2975
  });
2765
- return n ? new L().sort(r, (e, t) => [e.label, t.label]) : r;
2976
+ return n ? new I().sort(i, (e, t) => [e.label, t.label]) : i;
2766
2977
  }
2767
2978
  setCode(e) {
2768
2979
  return this.code = e, this;
2769
2980
  }
2770
2981
  getLocation() {
2771
- return new L(this.code);
2982
+ return new I(this.code);
2772
2983
  }
2773
- getCodes(e) {
2774
- return e == null ? Object.keys(t.flags) : e;
2984
+ getCodes(t) {
2985
+ return t ?? Object.keys(e.flags);
2775
2986
  }
2776
2987
  getLanguageName(e) {
2777
2988
  return this.getLocation().languageName(e.language);
@@ -2779,261 +2990,16 @@ var V = /* @__PURE__ */ function(e) {
2779
2990
  getCountry(e) {
2780
2991
  return this.getLocation().countryName(e.country);
2781
2992
  }
2782
- };
2783
- e(ot, "flags", {
2784
- RU: "f-ru",
2785
- FR: "f-fr",
2786
- GB: "f-gb",
2787
- US: "f-us",
2788
- DE: "f-de",
2789
- ES: "f-es",
2790
- VN: "f-vn",
2791
- CN: "f-cn",
2792
- IT: "f-it",
2793
- JP: "f-jp",
2794
- KR: "f-kr",
2795
- PT: "f-pt",
2796
- TR: "f-tr",
2797
- PL: "f-pl",
2798
- NL: "f-nl",
2799
- UA: "f-ua",
2800
- BY: "f-by",
2801
- KZ: "f-kz",
2802
- GR: "f-gr",
2803
- CZ: "f-cz",
2804
- HU: "f-hu",
2805
- RO: "f-ro",
2806
- BG: "f-bg",
2807
- HR: "f-hr",
2808
- RS: "f-rs",
2809
- SK: "f-sk",
2810
- SI: "f-si",
2811
- LT: "f-lt",
2812
- LV: "f-lv",
2813
- EE: "f-ee",
2814
- FI: "f-fi",
2815
- SE: "f-se",
2816
- NO: "f-no",
2817
- DK: "f-dk",
2818
- IL: "f-il",
2819
- TH: "f-th",
2820
- ID: "f-id",
2821
- MY: "f-my",
2822
- PH: "f-ph",
2823
- SA: "f-sa",
2824
- IR: "f-ir",
2825
- PK: "f-pk",
2826
- AM: "f-am",
2827
- GE: "f-ge",
2828
- AZ: "f-az",
2829
- TJ: "f-tj",
2830
- KG: "f-kg",
2831
- UZ: "f-uz",
2832
- TM: "f-tm",
2833
- MN: "f-mn",
2834
- AD: "f-ad",
2835
- AE: "f-ae",
2836
- AF: "f-af",
2837
- AG: "f-ag",
2838
- AI: "f-ai",
2839
- AL: "f-al",
2840
- AN: "f-an",
2841
- AO: "f-ao",
2842
- AQ: "f-aq",
2843
- AR: "f-ar",
2844
- AS: "f-as",
2845
- AT: "f-at",
2846
- AU: "f-au",
2847
- AW: "f-aw",
2848
- BA: "f-ba",
2849
- BB: "f-bb",
2850
- BD: "f-bd",
2851
- BE: "f-be",
2852
- BF: "f-bf",
2853
- BH: "f-bh",
2854
- BI: "f-bi",
2855
- BJ: "f-bj",
2856
- BL: "f-bl",
2857
- BM: "f-bm",
2858
- BN: "f-bn",
2859
- BO: "f-bo",
2860
- BR: "f-br",
2861
- BS: "f-bs",
2862
- BT: "f-bt",
2863
- BW: "f-bw",
2864
- BZ: "f-bz",
2865
- CA: "f-ca",
2866
- CC: "f-cc",
2867
- CD: "f-cd",
2868
- CF: "f-cf",
2869
- CG: "f-cg",
2870
- CH: "f-ch",
2871
- CI: "f-ci",
2872
- CK: "f-ck",
2873
- CL: "f-cl",
2874
- CM: "f-cm",
2875
- CO: "f-co",
2876
- CR: "f-cr",
2877
- CU: "f-cu",
2878
- CV: "f-cv",
2879
- CW: "f-cw",
2880
- CX: "f-cx",
2881
- CY: "f-cy",
2882
- DJ: "f-dj",
2883
- DM: "f-dm",
2884
- DZ: "f-dz",
2885
- EC: "f-ec",
2886
- EG: "f-eg",
2887
- EH: "f-eh",
2888
- ER: "f-er",
2889
- ET: "f-et",
2890
- FJ: "f-fj",
2891
- FK: "f-fk",
2892
- FM: "f-fm",
2893
- FO: "f-fo",
2894
- GA: "f-ga",
2895
- GD: "f-gd",
2896
- GF: "f-gf",
2897
- GG: "f-gg",
2898
- GH: "f-gh",
2899
- GI: "f-gi",
2900
- GL: "f-gl",
2901
- GM: "f-gm",
2902
- GN: "f-gn",
2903
- GQ: "f-gq",
2904
- GT: "f-gt",
2905
- GU: "f-gu",
2906
- GW: "f-gw",
2907
- GY: "f-gy",
2908
- HK: "f-hk",
2909
- HN: "f-hn",
2910
- HT: "f-ht",
2911
- IE: "f-ie",
2912
- IM: "f-im",
2913
- IO: "f-io",
2914
- IQ: "f-iq",
2915
- IS: "f-is",
2916
- JE: "f-je",
2917
- JM: "f-jm",
2918
- JO: "f-jo",
2919
- KE: "f-ke",
2920
- KH: "f-kh",
2921
- KI: "f-ki",
2922
- KM: "f-km",
2923
- KN: "f-kn",
2924
- KP: "f-kp",
2925
- KW: "f-kw",
2926
- KY: "f-ky",
2927
- LA: "f-la",
2928
- LB: "f-lb",
2929
- LC: "f-lc",
2930
- LI: "f-li",
2931
- LK: "f-lk",
2932
- LR: "f-lr",
2933
- LS: "f-ls",
2934
- LU: "f-lu",
2935
- LY: "f-ly",
2936
- MA: "f-ma",
2937
- MC: "f-mc",
2938
- MD: "f-md",
2939
- ME: "f-me",
2940
- MF: "f-mf",
2941
- MG: "f-mg",
2942
- MH: "f-mh",
2943
- MK: "f-mk",
2944
- ML: "f-ml",
2945
- MM: "f-mm",
2946
- MO: "f-mo",
2947
- MP: "f-mp",
2948
- MQ: "f-mq",
2949
- MR: "f-mr",
2950
- MS: "f-ms",
2951
- MT: "f-mt",
2952
- MU: "f-mu",
2953
- MV: "f-mv",
2954
- MW: "f-mw",
2955
- MX: "f-mx",
2956
- MZ: "f-mz",
2957
- NA: "f-na",
2958
- NC: "f-nc",
2959
- NE: "f-ne",
2960
- NF: "f-nf",
2961
- NG: "f-ng",
2962
- NI: "f-ni",
2963
- NP: "f-np",
2964
- NR: "f-nr",
2965
- NU: "f-nu",
2966
- NZ: "f-nz",
2967
- OM: "f-om",
2968
- PA: "f-pa",
2969
- PE: "f-pe",
2970
- PF: "f-pf",
2971
- PG: "f-pg",
2972
- PM: "f-pm",
2973
- PN: "f-pn",
2974
- PR: "f-pr",
2975
- PS: "f-ps",
2976
- PW: "f-pw",
2977
- PY: "f-py",
2978
- QA: "f-qa",
2979
- RE: "f-re",
2980
- RW: "f-rw",
2981
- SB: "f-sb",
2982
- SC: "f-sc",
2983
- SD: "f-sd",
2984
- SG: "f-sg",
2985
- SH: "f-sh",
2986
- SJ: "f-sj",
2987
- SL: "f-sl",
2988
- SM: "f-sm",
2989
- SN: "f-sn",
2990
- SO: "f-so",
2991
- SR: "f-sr",
2992
- SS: "f-ss",
2993
- ST: "f-st",
2994
- SV: "f-sv",
2995
- SX: "f-sx",
2996
- SY: "f-sy",
2997
- SZ: "f-sz",
2998
- TC: "f-tc",
2999
- TD: "f-td",
3000
- TG: "f-tg",
3001
- TK: "f-tk",
3002
- TL: "f-tl",
3003
- TN: "f-tn",
3004
- TO: "f-to",
3005
- TT: "f-tt",
3006
- TV: "f-tv",
3007
- TW: "f-tw",
3008
- TZ: "f-tz",
3009
- UG: "f-ug",
3010
- UY: "f-uy",
3011
- VA: "f-va",
3012
- VC: "f-vc",
3013
- VE: "f-ve",
3014
- VG: "f-vg",
3015
- VI: "f-vi",
3016
- VU: "f-vu",
3017
- WF: "f-wf",
3018
- WS: "f-ws",
3019
- YE: "f-ye",
3020
- YT: "f-yt",
3021
- ZA: "f-za",
3022
- ZM: "f-zm",
3023
- ZW: "f-zw"
3024
- });
3025
- //#endregion
3026
- //#region src/classes/GeoPhone.ts
3027
- var st = class {
2993
+ }, st = class {
2994
+ static list;
2995
+ static map;
3028
2996
  static get(e) {
3029
2997
  return this.getList().find((t) => e === t.value);
3030
2998
  }
3031
2999
  static getByPhone(e) {
3032
3000
  let t = this.toNumber(e), n = [""], r = this.getMap(), i;
3033
- for (let e of t) if (n[n.length - 1] += e, e in r) {
3034
- var a, o, s;
3035
- (a = r[e]) != null && a.value && (i = r[e], n.push("")), r = (o = (s = r[e]) == null ? void 0 : s.next) == null ? {} : o;
3036
- } else break;
3001
+ for (let e of t) if (n[n.length - 1] += e, e in r) r[e]?.value && (i = r[e], n.push("")), r = r[e]?.next ?? {};
3002
+ else break;
3037
3003
  return i ? (n.pop(), {
3038
3004
  item: i,
3039
3005
  phone: t.join("").slice(n.join("").length)
@@ -3044,21 +3010,16 @@ var st = class {
3044
3010
  }
3045
3011
  static getByCode(e) {
3046
3012
  let t = this.get(e);
3047
- if (t) {
3048
- var n;
3049
- return (n = this.getByPhone(t.phone.toString())) == null ? void 0 : n.item;
3050
- }
3013
+ if (t) return this.getByPhone(t.phone.toString())?.item;
3051
3014
  }
3052
3015
  static getList() {
3053
- var e;
3054
- return this.list || this.makeList(), (e = this.list) == null ? [] : e;
3016
+ return this.list || this.makeList(), this.list ?? [];
3055
3017
  }
3056
3018
  static getMap() {
3057
- var e;
3058
- return this.map || this.makeMap(), (e = this.map) == null ? {} : e;
3019
+ return this.map || this.makeMap(), this.map ?? {};
3059
3020
  }
3060
3021
  static toMask(e, t) {
3061
- if (u(e) && Array.isArray(t) && t.length > 0) {
3022
+ if (l(e) && Array.isArray(t) && t.length > 0) {
3062
3023
  let n = this.removeZero(e), r = n.length;
3063
3024
  for (let e of t) if (this.getUnnecessaryLength(e) === r) return this.toStandard(n, e);
3064
3025
  }
@@ -3076,14 +3037,13 @@ var st = class {
3076
3037
  return "=";
3077
3038
  }
3078
3039
  static getUnnecessaryLength(e) {
3079
- var t, n;
3080
- return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
3040
+ return e.match(/\*/g)?.length ?? 0;
3081
3041
  }
3082
3042
  static makeList() {
3083
- let e = i(O.getList(), (e) => {
3084
- if (e != null && e.phoneMask) return {
3085
- phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/g, "")) || void 0,
3086
- within: (e == null ? void 0 : e.phoneWithin) || 0,
3043
+ let e = r(O.getList(), (e) => {
3044
+ if (e?.phoneMask) return {
3045
+ phone: e?.phoneCode && Number(e.phoneCode.replace(/[^0-9]+/g, "")) || void 0,
3046
+ within: e?.phoneWithin || 0,
3087
3047
  mask: A(e.phoneMask),
3088
3048
  value: e.country
3089
3049
  };
@@ -3095,7 +3055,6 @@ var st = class {
3095
3055
  e.mask.forEach((t) => {
3096
3056
  let n = this.map, r;
3097
3057
  if (this.toNumber(t).forEach((e) => {
3098
- var t;
3099
3058
  e in n || (n[e] = {
3100
3059
  items: [],
3101
3060
  info: void 0,
@@ -3103,7 +3062,7 @@ var st = class {
3103
3062
  mask: [],
3104
3063
  maskFull: [],
3105
3064
  next: {}
3106
- }), r = n[e], n = (t = r == null ? void 0 : r.next) == null ? {} : t;
3065
+ }), r = n[e], n = r?.next ?? {};
3107
3066
  }), r) {
3108
3067
  r.value === void 0 && (r.info = e, r.value = e.value);
3109
3068
  let n = this.toWithin(t, e.within);
@@ -3122,11 +3081,7 @@ var st = class {
3122
3081
  static toWithin(e, t) {
3123
3082
  return e.replace(/\*/, this.getWithinSymbol(t));
3124
3083
  }
3125
- };
3126
- e(st, "list", void 0), e(st, "map", void 0);
3127
- //#endregion
3128
- //#region src/classes/GeoUnit.ts
3129
- var H = {}, ct = {
3084
+ }, V = {}, ct = {
3130
3085
  "millimeter->inch": .03937007874,
3131
3086
  "centimeter->inch": .3937007874,
3132
3087
  "meter->foot": 3.280839895,
@@ -3139,16 +3094,17 @@ var H = {}, ct = {
3139
3094
  "milliliter->fluid-ounce": .0338140227,
3140
3095
  "liter->gallon": .2641720524,
3141
3096
  "kilometer-per-hour->mile-per-hour": .621371192
3142
- }, lt = class t {
3143
- static getInstance(e = O.getLocation()) {
3144
- let n = O.find(e).standard;
3145
- return n in H ? H[n] : new t(e);
3146
- }
3147
- constructor(t = O.getLocation()) {
3148
- e(this, "geo", void 0), this.geo = O.find(t);
3149
- let n = this.getLocation();
3150
- if (n in H) return H[n];
3151
- H[n] = this;
3097
+ }, lt = class e {
3098
+ geo;
3099
+ static getInstance(t = O.getLocation()) {
3100
+ let n = O.find(t).standard;
3101
+ return n in V ? V[n] : new e(t);
3102
+ }
3103
+ constructor(e = O.getLocation()) {
3104
+ this.geo = O.find(e);
3105
+ let t = this.getLocation();
3106
+ if (t in V) return V[t];
3107
+ V[t] = this;
3152
3108
  }
3153
3109
  getLocation() {
3154
3110
  return this.geo.standard;
@@ -3214,12 +3170,11 @@ var H = {}, ct = {
3214
3170
  return e === "celsius" && t === "fahrenheit";
3215
3171
  }
3216
3172
  getTargetUnit(e) {
3217
- var t;
3218
- return ((t = this.geo.unit) == null ? void 0 : t[e]) || e;
3173
+ return this.geo.unit?.[e] || e;
3219
3174
  }
3220
3175
  formatUnit(e, t, n) {
3221
3176
  let r = x(e), i = this.getTargetUnit(t), a = this.convert(r, t, i);
3222
- return L.getInstance(this.getLocation()).unit(a, {
3177
+ return I.getInstance(this.getLocation()).unit(a, {
3223
3178
  unit: i,
3224
3179
  ...n
3225
3180
  });
@@ -3237,40 +3192,34 @@ var H = {}, ct = {
3237
3192
  }
3238
3193
  }, ut = class {
3239
3194
  static getItem() {
3240
- return T.get("__ui:global-instance__", () => ({}));
3195
+ return E.get("__ui:global-instance__", () => ({}));
3241
3196
  }
3242
3197
  static get(e) {
3243
- var t;
3244
- return (t = this.getItem()) == null ? void 0 : t[e];
3198
+ return this.getItem()?.[e];
3245
3199
  }
3246
3200
  static add(e) {
3247
3201
  let t = this.getItem();
3248
3202
  Object.keys(t).length > 0 || Object.assign(t, e);
3249
3203
  }
3250
3204
  }, dt = class {
3251
- constructor() {
3252
- e(this, "data", void 0), e(this, "watch", {}), e(this, "block", !1), e(this, "time", void 0);
3253
- }
3205
+ data;
3206
+ watch = {};
3207
+ block = !1;
3208
+ time;
3254
3209
  get(e, t) {
3255
3210
  let n = this.getData();
3256
3211
  return !(e in n) && t && this.set(e, t), n[e];
3257
3212
  }
3258
3213
  set(e, t) {
3259
- var n;
3260
- let r = h(t);
3261
- return r !== ((n = this.data) == null ? void 0 : n[e]) && (this.getData()[e] = r, this.update()), this;
3214
+ let n = m(t);
3215
+ return n !== this.data?.[e] && (this.getData()[e] = n, this.update()), this;
3262
3216
  }
3263
3217
  addWatch(e, t) {
3264
- if (e in this.watch) {
3265
- var n;
3266
- (n = this.watch[e]) == null || n.push(t);
3267
- } else this.watch[e] = [t];
3268
- return this;
3218
+ return e in this.watch ? this.watch[e]?.push(t) : this.watch[e] = [t], this;
3269
3219
  }
3270
3220
  removeWatch(e, t) {
3271
- var n;
3272
- let r = (n = this.watch) == null ? void 0 : n[e];
3273
- return r && (this.watch[e] = r.filter((e) => e !== t)), this;
3221
+ let n = this.watch?.[e];
3222
+ return n && (this.watch[e] = n.filter((e) => e !== t)), this;
3274
3223
  }
3275
3224
  reload() {
3276
3225
  return this.block ? setTimeout(() => this.reload(), 32) : this.initData(), this;
@@ -3283,29 +3232,28 @@ var H = {}, ct = {
3283
3232
  return this.makeWatch(e), this.data = e, this;
3284
3233
  }
3285
3234
  makeWatch(e) {
3286
- return i(this.watch, (t, n) => {
3287
- var r;
3288
- ((r = this.data) == null ? void 0 : r[n]) !== (e == null ? void 0 : e[n]) && t.forEach((t) => t(e[n]));
3235
+ return r(this.watch, (t, n) => {
3236
+ this.data?.[n] !== e?.[n] && t.forEach((t) => t(e[n]));
3289
3237
  }), this;
3290
3238
  }
3291
3239
  }, ft = class extends dt {
3292
3240
  init() {
3293
- return this.initData(), c() && addEventListener("hashchange", () => this.reload()), this;
3241
+ return this.initData(), s() && addEventListener("hashchange", () => this.reload()), this;
3294
3242
  }
3295
3243
  getLocation() {
3296
3244
  let e = {};
3297
- if (c()) {
3245
+ if (s()) {
3298
3246
  let t = location.hash.matchAll(/([\w-]+)[:=]([^;]+)/gi);
3299
- for (let n of t) e[n[1]] = w(n[2]);
3247
+ for (let n of t) e[n[1]] = T(n[2]);
3300
3248
  }
3301
3249
  return e;
3302
3250
  }
3303
3251
  update() {
3304
- if (c()) {
3252
+ if (s()) {
3305
3253
  clearTimeout(this.time), this.block = !0;
3306
3254
  try {
3307
3255
  let e = this.getData();
3308
- history.replaceState(null, "", `#${s(e, "=", ";")}`);
3256
+ history.replaceState(null, "", `#${o(e, "=", ";")}`);
3309
3257
  } finally {
3310
3258
  this.time = setTimeout(() => {
3311
3259
  this.block = !1;
@@ -3316,7 +3264,7 @@ var H = {}, ct = {
3316
3264
  }
3317
3265
  }, pt = class {
3318
3266
  static getItem() {
3319
- return T.get("__ui:hash-instance__", () => new ft());
3267
+ return E.get("__ui:hash-instance__", () => new ft());
3320
3268
  }
3321
3269
  static get(e, t) {
3322
3270
  return this.getItem().get(e, t);
@@ -3334,22 +3282,24 @@ var H = {}, ct = {
3334
3282
  this.getItem().reload();
3335
3283
  }
3336
3284
  }, mt = 320, ht = "--LOAD--", gt = class {
3285
+ static icons = {};
3286
+ static url = "/icons/";
3337
3287
  static is(e) {
3338
3288
  return e in this.icons || this.getName(e) in this.icons;
3339
3289
  }
3340
3290
  static async get(e, t = "", n = 18e4) {
3341
3291
  let r = this.getRaw(e, t);
3342
- return typeof r == "string" ? r === ht && n > 0 ? (await this.wait(), this.get(e, t, n - mt)) : r : m(r) ? await r() : await r;
3292
+ return typeof r == "string" ? r === ht && n > 0 ? (await this.wait(), this.get(e, t, n - mt)) : r : p(r) ? await r() : await r;
3343
3293
  }
3344
3294
  static getAsync(e, t = "") {
3345
3295
  let n = this.getRaw(e, t);
3346
3296
  return typeof n == "string" && n !== ht ? n : "";
3347
3297
  }
3348
3298
  static getNameList() {
3349
- return i(this.icons, (e, t) => t.replace(/^@/, ""));
3299
+ return r(this.icons, (e, t) => t.replace(/^@/, ""));
3350
3300
  }
3351
3301
  static getUrlGlobal() {
3352
- return `${F.isLocalhost(), ""}${this.url}`;
3302
+ return this.url;
3353
3303
  }
3354
3304
  static add(e, t) {
3355
3305
  this.icons[this.getName(e)] = t;
@@ -3361,7 +3311,7 @@ var H = {}, ct = {
3361
3311
  this.icons[this.getName(e)] = `${this.getUrlGlobal()}${t}`;
3362
3312
  }
3363
3313
  static addByList(e) {
3364
- i(e, (e, t) => this.add(t, e));
3314
+ r(e, (e, t) => this.add(t, e));
3365
3315
  }
3366
3316
  static setUrl(e) {
3367
3317
  this.url = e;
@@ -3373,44 +3323,41 @@ var H = {}, ct = {
3373
3323
  return `@${e}`;
3374
3324
  }
3375
3325
  static getRaw(e, t = "") {
3376
- var n, r, i, a;
3377
- return (n = (r = (i = this.icons) == null ? void 0 : i[this.getName(e)]) == null ? (a = this.icons) == null ? void 0 : a[e] : r) == null ? `${e.replace(/^@/, t || this.url)}.svg` : n;
3326
+ return this.icons?.[this.getName(e)] ?? this.icons?.[e] ?? `${e.replace(/^@/, t || this.url)}.svg`;
3378
3327
  }
3379
3328
  static wait() {
3380
3329
  return new Promise((e) => setTimeout(() => e(), mt));
3381
3330
  }
3382
3331
  };
3383
- e(gt, "icons", {}), e(gt, "url", "/icons/");
3384
3332
  //#endregion
3385
3333
  //#region src/functions/getElementItem.ts
3386
3334
  function _t(e, t, n) {
3387
- var r, i;
3388
- return (r = (i = k(e)) == null ? void 0 : i[t]) == null ? n : r;
3335
+ return k(e)?.[t] ?? n;
3389
3336
  }
3390
3337
  //#endregion
3391
3338
  //#region src/functions/setElementItem.ts
3392
- function vt(e, t, r) {
3339
+ function vt(e, n, i) {
3393
3340
  let a = k(e);
3394
3341
  if (a) {
3395
- let e = _t(a, t);
3396
- if (n(e) && n(r)) i(r, (t, n) => {
3397
- e[n] = h(t);
3342
+ let e = _t(a, n);
3343
+ if (t(e) && t(i)) r(i, (t, n) => {
3344
+ e[n] = m(t);
3398
3345
  });
3399
3346
  else {
3400
- let e = h(r);
3401
- !(t in a) && typeof e == "string" ? a.setAttribute(t.toString(), e) : a[t] = e;
3347
+ let e = m(i);
3348
+ !(n in a) && typeof e == "string" ? a.setAttribute(n.toString(), e) : a[n] = e;
3402
3349
  }
3403
3350
  }
3404
3351
  return a;
3405
3352
  }
3406
3353
  //#endregion
3407
3354
  //#region src/functions/createElement.ts
3408
- function U(e, t = "div", n, a) {
3409
- if (!c()) return;
3355
+ function H(e, t = "div", i, a) {
3356
+ if (!s()) return;
3410
3357
  let o = document.createElement(t);
3411
- return typeof n == "function" ? n(o) : r(n) && i(n, (e, t) => {
3358
+ return typeof i == "function" ? i(o) : n(i) && r(i, (e, t) => {
3412
3359
  vt(o, t, e);
3413
- }), e == null || e.insertBefore(o, a == null ? null : a), o;
3360
+ }), e?.insertBefore(o, a ?? null), o;
3414
3361
  }
3415
3362
  //#endregion
3416
3363
  //#region src/functions/encodeAttribute.ts
@@ -3421,42 +3368,41 @@ var yt = {
3421
3368
  "\"": "&quot;",
3422
3369
  "'": "&#39;"
3423
3370
  };
3424
- function W(e) {
3425
- return String(e).replace(/[&<>"']/g, (e) => {
3426
- var t;
3427
- return (t = yt == null ? void 0 : yt[e]) == null ? e : t;
3428
- });
3371
+ function U(e) {
3372
+ return String(e).replace(/[&<>"']/g, (e) => yt?.[e] ?? e);
3429
3373
  }
3430
3374
  //#endregion
3431
3375
  //#region src/classes/MetaManager.ts
3432
- var G = class {
3433
- constructor(t, n = !1) {
3434
- e(this, "listMeta", void 0), e(this, "isProperty", void 0), e(this, "items", {}), this.listMeta = t, this.isProperty = n, this.update();
3376
+ var W = class {
3377
+ listMeta;
3378
+ isProperty;
3379
+ items = {};
3380
+ constructor(e, t = !1) {
3381
+ this.listMeta = e, this.isProperty = t, this.update();
3435
3382
  }
3436
3383
  getListMeta() {
3437
3384
  return this.listMeta;
3438
3385
  }
3439
3386
  get(e) {
3440
- var t;
3441
- return (t = this.items[e]) == null ? "" : t;
3387
+ return this.items[e] ?? "";
3442
3388
  }
3443
3389
  getItems() {
3444
3390
  return this.items;
3445
3391
  }
3446
3392
  html() {
3447
- return i(this.listMeta, (e) => this.toHtmlString(e)).join("");
3393
+ return r(this.listMeta, (e) => this.toHtmlString(e)).join("");
3448
3394
  }
3449
3395
  set(e, t) {
3450
3396
  return this.get(e) !== t && this.setItem(e, t).setMeta(e), this;
3451
3397
  }
3452
3398
  setByList(e) {
3453
- return i(e, (e, t) => this.set(t, String(e))), this;
3399
+ return r(e, (e, t) => this.set(t, String(e))), this;
3454
3400
  }
3455
3401
  getAttributeName() {
3456
3402
  return this.isProperty ? "property" : "name";
3457
3403
  }
3458
3404
  findMetaElement(e) {
3459
- if (!c()) return;
3405
+ if (!s()) return;
3460
3406
  let t = `meta[${this.getAttributeName()}="${e}"]`;
3461
3407
  return document.querySelector(t) || void 0;
3462
3408
  }
@@ -3464,36 +3410,33 @@ var G = class {
3464
3410
  return this.items[e] = t, this;
3465
3411
  }
3466
3412
  setMeta(e) {
3467
- var t;
3468
- if (!c()) return this;
3469
- let n = (t = this.items[e]) == null ? "" : t;
3470
- if (e === "title") return document.title = n, this;
3471
- let r = this.findMetaElement(e);
3472
- if (r) return r.content = n, this;
3473
- let i = { content: n };
3474
- return this.isProperty ? i.property = e : i.name = e, U(document.head, "meta", i), this;
3413
+ if (!s()) return this;
3414
+ let t = this.items[e] ?? "";
3415
+ if (e === "title") return document.title = t, this;
3416
+ let n = this.findMetaElement(e);
3417
+ if (n) return n.content = t, this;
3418
+ let r = { content: t };
3419
+ return this.isProperty ? r.property = e : r.name = e, H(document.head, "meta", r), this;
3475
3420
  }
3476
3421
  toHtmlString(e) {
3477
- var t;
3478
- let n = (t = this.items[e]) == null ? "" : t;
3422
+ let t = this.items[e] ?? "";
3479
3423
  if (e === "title") return "";
3480
- let r = W(n);
3481
- return r ? `<meta ${this.getAttributeName()}="${e}" content="${r}">` : "";
3424
+ let n = U(t);
3425
+ return n ? `<meta ${this.getAttributeName()}="${e}" content="${n}">` : "";
3482
3426
  }
3483
3427
  toHtmlTitle(e) {
3484
- return fe(e);
3428
+ return ue(e);
3485
3429
  }
3486
3430
  update() {
3487
3431
  return this.listMeta.forEach((e) => {
3488
- var t, n;
3489
- this.items[e] = (t = (n = this.findMetaElement(e)) == null ? void 0 : n.content) == null ? "" : t;
3432
+ this.items[e] = this.findMetaElement(e)?.content ?? "";
3490
3433
  }), this;
3491
3434
  }
3492
- }, K = /* @__PURE__ */ function(e) {
3435
+ }, G = /* @__PURE__ */ function(e) {
3493
3436
  return e.title = "title", e.description = "description", e.keywords = "keywords", e.canonical = "canonical", e.robots = "robots", e.author = "author", e;
3494
3437
  }({}), bt = /* @__PURE__ */ function(e) {
3495
3438
  return e.indexFollow = "index, follow", e.noIndexFollow = "noindex, follow", e.indexNoFollow = "index, nofollow", e.noIndexNoFollow = "noindex, nofollow", e.noArchive = "noarchive", e.noSnippet = "nosnippet", e.noImageIndex = "noimageindex", e.images = "images", e.noTranslate = "notranslate", e.noPreview = "nopreview", e.textOnly = "textonly", e.noIndexSubpages = "noindex, noarchive", e.none = "none", e;
3496
- }({}), q = /* @__PURE__ */ function(e) {
3439
+ }({}), K = /* @__PURE__ */ function(e) {
3497
3440
  return e.title = "og:title", e.type = "og:type", e.url = "og:url", e.image = "og:image", e.description = "og:description", e.locale = "og:locale", e.siteName = "og:site_name", e.localeAlternate = "og:locale:alternate", e.imageUrl = "og:image:url", e.imageSecureUrl = "og:image:secure_url", e.imageType = "og:image:type", e.imageWidth = "og:image:width", e.imageHeight = "og:image:height", e.imageAlt = "og:image:alt", e.video = "og:video", e.videoUrl = "og:video:url", e.videoSecureUrl = "og:video:secure_url", e.videoType = "og:video:type", e.videoWidth = "og:video:width", e.videoHeight = "og:video:height", e.audio = "og:audio", e.audioSecureUrl = "og:audio:secure_url", e.audioType = "og:audio:type", e.articlePublishedTime = "article:published_time", e.articleModifiedTime = "article:modified_time", e.articleExpirationTime = "article:expiration_time", e.articleAuthor = "article:author", e.articleSection = "article:section", e.articleTag = "article:tag", e.bookAuthor = "book:author", e.bookIsbn = "book:isbn", e.bookReleaseDate = "book:release_date", e.bookTag = "book:tag", e.musicDuration = "music:duration", e.musicAlbum = "music:album", e.musicAlbumDisc = "music:album:disc", e.musicAlbumTrack = "music:album:track", e.musicMusician = "music:musician", e.musicSong = "music:song", e.musicSongDisc = "music:song:disc", e.musicSongTrack = "music:song:track", e.musicReleaseDate = "music:release_date", e.musicCreator = "music:creator", e.videoActor = "video:actor", e.videoActorRole = "video:actor:role", e.videoDirector = "video:director", e.videoWriter = "video:writer", e.videoDuration = "video:duration", e.videoReleaseDate = "video:release_date", e.videoTag = "video:tag", e.videoSeries = "video:series", e.profileFirstName = "profile:first_name", e.profileLastName = "profile:last_name", e.profileUsername = "profile:username", e.profileGender = "profile:gender", e.productBrand = "product:brand", e.productAvailability = "product:availability", e.productCondition = "product:condition", e.productPriceAmount = "product:price:amount", e.productPriceCurrency = "product:price:currency", e.productRetailerItemId = "product:retailer_item_id", e.productCategory = "product:category", e.productEan = "product:ean", e.productIsbn = "product:isbn", e.productMfrPartNo = "product:mfr_part_no", e.productUpc = "product:upc", e.productWeightValue = "product:weight:value", e.productWeightUnits = "product:weight:units", e.productColor = "product:color", e.productMaterial = "product:material", e.productPattern = "product:pattern", e.productAgeGroup = "product:age_group", e.productGender = "product:gender", e;
3498
3441
  }({}), xt = /* @__PURE__ */ function(e) {
3499
3442
  return e.website = "website", e.article = "article", e.video = "video.other", e.videoTvShow = "video.tv_show", e.videoEpisode = "video.episode", e.videoMovie = "video.movie", e.musicAlbum = "music.album", e.musicPlaylist = "music.playlist", e.musicSong = "music.song", e.musicRadioStation = "music.radio_station", e.app = "app", e.product = "product", e.business = "business.business", e.place = "place", e.event = "event", e.profile = "profile", e.book = "book", e;
@@ -3505,105 +3448,108 @@ var G = class {
3505
3448
  return e.newborn = "newborn", e.infant = "infant", e.toddler = "toddler", e.kids = "kids", e.adult = "adult", e;
3506
3449
  }({}), Tt = /* @__PURE__ */ function(e) {
3507
3450
  return e.female = "female", e.male = "male", e.unisex = "unisex", e;
3508
- }({}), J = /* @__PURE__ */ function(e) {
3451
+ }({}), q = /* @__PURE__ */ function(e) {
3509
3452
  return e.card = "twitter:card", e.site = "twitter:site", e.creator = "twitter:creator", e.url = "twitter:url", e.title = "twitter:title", e.description = "twitter:description", e.image = "twitter:image", e.imageAlt = "twitter:image:alt", e.imageSrc = "twitter:image:src", e.imageWidth = "twitter:image:width", e.imageHeight = "twitter:image:height", e.label1 = "twitter:label1", e.data1 = "twitter:data1", e.label2 = "twitter:label2", e.data2 = "twitter:data2", e.appNameIphone = "twitter:app:name:iphone", e.appIdIphone = "twitter:app:id:iphone", e.appUrlIphone = "twitter:app:url:iphone", e.appNameIpad = "twitter:app:name:ipad", e.appIdIpad = "twitter:app:id:ipad", e.appUrlIpad = "twitter:app:url:ipad", e.appNameGooglePlay = "twitter:app:name:googleplay", e.appIdGooglePlay = "twitter:app:id:googleplay", e.appUrlGooglePlay = "twitter:app:url:googleplay", e.player = "twitter:player", e.playerWidth = "twitter:player:width", e.playerHeight = "twitter:player:height", e.playerStream = "twitter:player:stream", e.playerStreamContentType = "twitter:player:stream:content_type", e;
3510
3453
  }({}), Et = /* @__PURE__ */ function(e) {
3511
3454
  return e.summary = "summary", e.summaryLargeImage = "summary_large_image", e.app = "app", e.player = "player", e.product = "product", e.gallery = "gallery", e.photo = "photo", e.leadGeneration = "lead_generation", e.audio = "audio", e.poll = "poll", e;
3512
- }({}), Dt = class extends G {
3455
+ }({}), Dt = class extends W {
3513
3456
  constructor() {
3514
- super(Object.values(q), !0);
3457
+ super(Object.values(K), !0);
3515
3458
  }
3516
3459
  getTitle() {
3517
- return this.get(q.title);
3460
+ return this.get(K.title);
3518
3461
  }
3519
3462
  getType() {
3520
- return this.get(q.type);
3463
+ return this.get(K.type);
3521
3464
  }
3522
3465
  getUrl() {
3523
- return this.get(q.url);
3466
+ return this.get(K.url);
3524
3467
  }
3525
3468
  getImage() {
3526
- return this.get(q.image);
3469
+ return this.get(K.image);
3527
3470
  }
3528
3471
  getDescription() {
3529
- return this.get(q.description);
3472
+ return this.get(K.description);
3530
3473
  }
3531
3474
  getLocale() {
3532
- return this.get(q.locale);
3475
+ return this.get(K.locale);
3533
3476
  }
3534
3477
  getSiteName() {
3535
- return this.get(q.siteName);
3478
+ return this.get(K.siteName);
3536
3479
  }
3537
3480
  setTitle(e) {
3538
- return this.set(q.title, e);
3481
+ return this.set(K.title, e);
3539
3482
  }
3540
3483
  setType(e) {
3541
- return this.set(q.type, e);
3484
+ return this.set(K.type, e);
3542
3485
  }
3543
3486
  setUrl(e) {
3544
- return this.set(q.url, e);
3487
+ return this.set(K.url, e);
3545
3488
  }
3546
3489
  setImage(e) {
3547
- return this.set(q.image, e);
3490
+ return this.set(K.image, e);
3548
3491
  }
3549
3492
  setDescription(e) {
3550
- return this.set(q.description, e);
3493
+ return this.set(K.description, e);
3551
3494
  }
3552
3495
  setLocale(e) {
3553
- return this.set(q.locale, e);
3496
+ return this.set(K.locale, e);
3554
3497
  }
3555
3498
  setSiteName(e) {
3556
- return this.set(q.siteName, e);
3499
+ return this.set(K.siteName, e);
3557
3500
  }
3558
- }, Ot = class extends G {
3501
+ }, Ot = class extends W {
3559
3502
  constructor() {
3560
- super(Object.values(J));
3503
+ super(Object.values(q));
3561
3504
  }
3562
3505
  getCard() {
3563
- return this.get(J.card);
3506
+ return this.get(q.card);
3564
3507
  }
3565
3508
  getSite() {
3566
- return this.get(J.site);
3509
+ return this.get(q.site);
3567
3510
  }
3568
3511
  getCreator() {
3569
- return this.get(J.creator);
3512
+ return this.get(q.creator);
3570
3513
  }
3571
3514
  getUrl() {
3572
- return this.get(J.url);
3515
+ return this.get(q.url);
3573
3516
  }
3574
3517
  getTitle() {
3575
- return this.get(J.title);
3518
+ return this.get(q.title);
3576
3519
  }
3577
3520
  getDescription() {
3578
- return this.get(J.description);
3521
+ return this.get(q.description);
3579
3522
  }
3580
3523
  getImage() {
3581
- return this.get(J.image);
3524
+ return this.get(q.image);
3582
3525
  }
3583
3526
  setCard(e) {
3584
- return this.set(J.card, e), this;
3527
+ return this.set(q.card, e), this;
3585
3528
  }
3586
3529
  setSite(e) {
3587
- return this.set(J.site, e), this;
3530
+ return this.set(q.site, e), this;
3588
3531
  }
3589
3532
  setCreator(e) {
3590
- return this.set(J.creator, e), this;
3533
+ return this.set(q.creator, e), this;
3591
3534
  }
3592
3535
  setUrl(e) {
3593
- return this.set(J.url, e), this;
3536
+ return this.set(q.url, e), this;
3594
3537
  }
3595
3538
  setTitle(e) {
3596
- return this.set(J.title, e), this;
3539
+ return this.set(q.title, e), this;
3597
3540
  }
3598
3541
  setDescription(e) {
3599
- return this.set(J.description, e), this;
3542
+ return this.set(q.description, e), this;
3600
3543
  }
3601
3544
  setImage(e) {
3602
- return this.set(J.image, e), this;
3545
+ return this.set(q.image, e), this;
3603
3546
  }
3604
- }, kt = class extends G {
3547
+ }, kt = class extends W {
3548
+ suffix;
3549
+ og;
3550
+ twitter;
3605
3551
  constructor() {
3606
- super(Object.values(K)), e(this, "suffix", void 0), e(this, "og", void 0), e(this, "twitter", void 0), this.og = new Dt(), this.twitter = new Ot();
3552
+ super(Object.values(G)), this.og = new Dt(), this.twitter = new Ot();
3607
3553
  }
3608
3554
  getOg() {
3609
3555
  return this.og;
@@ -3612,26 +3558,26 @@ var G = class {
3612
3558
  return this.twitter;
3613
3559
  }
3614
3560
  getTitle() {
3615
- let e = this.get(K.title);
3616
- return !u(e) && c() && (e = document.title), e.replace(this.getSuffix(), "").trim();
3561
+ let e = this.get(G.title);
3562
+ return !l(e) && s() && (e = document.title), e.replace(this.getSuffix(), "").trim();
3617
3563
  }
3618
3564
  getKeywords() {
3619
- return this.get(K.keywords);
3565
+ return this.get(G.keywords);
3620
3566
  }
3621
3567
  getDescription() {
3622
- return this.get(K.description);
3568
+ return this.get(G.description);
3623
3569
  }
3624
3570
  getImage() {
3625
3571
  return this.og.getImage();
3626
3572
  }
3627
3573
  getCanonical() {
3628
- return this.get(K.canonical);
3574
+ return this.get(G.canonical);
3629
3575
  }
3630
3576
  getRobots() {
3631
- return this.get(K.robots);
3577
+ return this.get(G.robots);
3632
3578
  }
3633
3579
  getAuthor() {
3634
- return this.get(K.author);
3580
+ return this.get(G.author);
3635
3581
  }
3636
3582
  getSiteName() {
3637
3583
  return this.og.getSiteName();
@@ -3640,26 +3586,26 @@ var G = class {
3640
3586
  return this.og.getLocale();
3641
3587
  }
3642
3588
  setTitle(e) {
3643
- let t = u(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
3644
- return c() && (document.title = t), this.set(K.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3589
+ let t = l(e) ? `${e}${this.getSuffix()}` : this.suffix ? this.suffix : "";
3590
+ return s() && (document.title = t), this.set(G.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3645
3591
  }
3646
3592
  setKeywords(e) {
3647
- return this.set(K.keywords, A(e).join(", ")), this;
3593
+ return this.set(G.keywords, A(e).join(", ")), this;
3648
3594
  }
3649
3595
  setDescription(e) {
3650
- return this.set(K.description, e), this;
3596
+ return this.set(G.description, e), this;
3651
3597
  }
3652
3598
  setImage(e) {
3653
3599
  return this.og.setImage(e), this.twitter.setImage(e), this;
3654
3600
  }
3655
3601
  setCanonical(e) {
3656
- return this.set(K.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3602
+ return this.set(G.canonical, e), this.og.setUrl(e), this.twitter.setUrl(e), this;
3657
3603
  }
3658
3604
  setRobots(e) {
3659
- return this.set(K.robots, e), this;
3605
+ return this.set(G.robots, e), this;
3660
3606
  }
3661
3607
  setAuthor(e) {
3662
- return this.set(K.author, e), this;
3608
+ return this.set(G.author, e), this;
3663
3609
  }
3664
3610
  setSiteName(e) {
3665
3611
  return this.og.setSiteName(e), this.twitter.setSite(e), this;
@@ -3674,14 +3620,14 @@ var G = class {
3674
3620
  return `${super.html()}${this.og.html()}${this.twitter.html()}`;
3675
3621
  }
3676
3622
  htmlTitle() {
3677
- return this.toHtmlTitle(this.get(K.title));
3623
+ return this.toHtmlTitle(this.get(G.title));
3678
3624
  }
3679
3625
  getSuffix() {
3680
- return u(this.suffix) ? ` - ${this.suffix}` : "";
3626
+ return l(this.suffix) ? ` - ${this.suffix}` : "";
3681
3627
  }
3682
3628
  }, At = class {
3683
3629
  static getItem() {
3684
- return T.get("__ui:meta-instance__", () => new kt());
3630
+ return E.get("__ui:meta-instance__", () => new kt());
3685
3631
  }
3686
3632
  static getOg() {
3687
3633
  return this.getItem().getOg();
@@ -3752,12 +3698,13 @@ var G = class {
3752
3698
  static htmlTitle() {
3753
3699
  return this.getItem().htmlTitle();
3754
3700
  }
3755
- }, Y = class t {
3701
+ }, J = class e {
3702
+ url;
3756
3703
  static getInstance() {
3757
- return T.get("__ui:url-item__", () => new t());
3704
+ return E.get("__ui:url-item__", () => new e());
3758
3705
  }
3759
- constructor(t) {
3760
- e(this, "url", void 0), this.set(t);
3706
+ constructor(e) {
3707
+ this.set(e);
3761
3708
  }
3762
3709
  get href() {
3763
3710
  return this.url.href;
@@ -3799,24 +3746,23 @@ var G = class {
3799
3746
  return this.url.searchParams.has(e);
3800
3747
  }
3801
3748
  getParam(e) {
3802
- var t;
3803
- return (t = this.url.searchParams.get(e)) == null ? void 0 : t;
3749
+ return this.url.searchParams.get(e) ?? void 0;
3804
3750
  }
3805
3751
  getParams() {
3806
3752
  let e = {};
3807
3753
  return this.url.searchParams.forEach((t, n) => {
3808
- e[n] = w(t);
3754
+ e[n] = T(t);
3809
3755
  }), e;
3810
3756
  }
3811
3757
  set(e) {
3812
- return this.url = e ? e instanceof URL ? new URL(e.href) : /^[a-z0-9+.-]+:/i.test(e) ? new URL(e) : c() ? new URL(e, window.location.origin) : new URL(e, "http://localhost") : c() ? new URL(window.location.href) : new URL("http://localhost"), this;
3758
+ return this.url = e ? e instanceof URL ? new URL(e.href) : /^[a-z0-9+.-]+:/i.test(e) ? new URL(e) : s() ? new URL(e, window.location.origin) : new URL(e, "http://localhost") : s() ? new URL(window.location.href) : new URL("http://localhost"), this;
3813
3759
  }
3814
3760
  setParam(e, t) {
3815
3761
  return this.url.searchParams.set(e, t), this;
3816
3762
  }
3817
3763
  setParams(e) {
3818
- return Array.from(this.url.searchParams.keys()).forEach((e) => this.deleteParam(e)), i(e, (e, t) => {
3819
- u(e) && this.setParam(t, String(e));
3764
+ return Array.from(this.url.searchParams.keys()).forEach((e) => this.deleteParam(e)), r(e, (e, t) => {
3765
+ l(e) && this.setParam(t, String(e));
3820
3766
  }), this;
3821
3767
  }
3822
3768
  deleteParam(e) {
@@ -3830,16 +3776,16 @@ var G = class {
3830
3776
  }
3831
3777
  }, jt = class extends dt {
3832
3778
  init() {
3833
- return c() && addEventListener("popstate", () => {
3834
- Y.getInstance().set(), this.reload();
3779
+ return s() && addEventListener("popstate", () => {
3780
+ J.getInstance().set(), this.reload();
3835
3781
  }), this.initData(), this;
3836
3782
  }
3837
3783
  getLocation() {
3838
- return c() && Y.getInstance().set(), Y.getInstance().getParams();
3784
+ return s() && J.getInstance().set(), J.getInstance().getParams();
3839
3785
  }
3840
3786
  update() {
3841
- let e = this.getData(), t = Y.getInstance();
3842
- if (t.setParams(e), c()) {
3787
+ let e = this.getData(), t = J.getInstance();
3788
+ if (t.setParams(e), s()) {
3843
3789
  clearTimeout(this.time), this.block = !0;
3844
3790
  try {
3845
3791
  let e = t.search, n = `${location.pathname}${e}${location.hash}`;
@@ -3854,7 +3800,7 @@ var G = class {
3854
3800
  }
3855
3801
  }, Mt = class {
3856
3802
  static getItem() {
3857
- return T.get("__ui:query-instance__", () => new jt());
3803
+ return E.get("__ui:query-instance__", () => new jt());
3858
3804
  }
3859
3805
  static get(e, t) {
3860
3806
  return this.getItem().get(e, t);
@@ -3872,8 +3818,14 @@ var G = class {
3872
3818
  this.getItem().reload();
3873
3819
  }
3874
3820
  }, Nt = class {
3875
- constructor(t, n = 320, r = !1) {
3876
- e(this, "callback", void 0), e(this, "delay", void 0), e(this, "timerId", void 0), e(this, "startTime", void 0), e(this, "remaining", void 0), e(this, "completed", !1), this.callback = t, this.delay = n, r || this.resume();
3821
+ callback;
3822
+ delay;
3823
+ timerId;
3824
+ startTime;
3825
+ remaining;
3826
+ completed = !1;
3827
+ constructor(e, t = 320, n = !1) {
3828
+ this.callback = e, this.delay = t, n || this.resume();
3877
3829
  }
3878
3830
  resume() {
3879
3831
  if (this.timerId || this.completed) return this;
@@ -3890,12 +3842,10 @@ var G = class {
3890
3842
  return this.stop(), this.startTime = void 0, this.remaining = void 0, this.completed = !1, this;
3891
3843
  }
3892
3844
  getRemaining() {
3893
- var e;
3894
- return (e = this.remaining) == null ? this.delay : e;
3845
+ return this.remaining ?? this.delay;
3895
3846
  }
3896
3847
  getStartTime() {
3897
- var e;
3898
- return (e = this.startTime) == null ? Date.now() : e;
3848
+ return this.startTime ?? Date.now();
3899
3849
  }
3900
3850
  go() {
3901
3851
  return this.callback(), this.timerId = void 0, this.completed = !0, this;
@@ -3907,32 +3857,32 @@ var G = class {
3907
3857
  return this.startTime = Date.now(), this;
3908
3858
  }
3909
3859
  stop() {
3910
- return this.timerId && (clearTimeout(this.timerId), this.timerId = void 0), this;
3860
+ return this.timerId &&= (clearTimeout(this.timerId), void 0), this;
3911
3861
  }
3912
3862
  }, Pt = class {
3863
+ static calculate = !1;
3913
3864
  static async is() {
3914
3865
  let e = await this.get();
3915
3866
  return e !== -1 && e <= 8;
3916
3867
  }
3917
3868
  static async get() {
3918
- var e;
3919
- if (!c()) return 0;
3920
- let t = (e = this.getStorage().get()) == null ? -1 : e;
3921
- if (!this.calculate && t === -1) {
3869
+ if (!s()) return 0;
3870
+ let e = this.getStorage().get() ?? -1;
3871
+ if (!this.calculate && e === -1) {
3922
3872
  let e = await this.init();
3923
3873
  return this.getStorage().set(e), e;
3924
3874
  }
3925
- return t;
3875
+ return e;
3926
3876
  }
3927
3877
  static getStorage() {
3928
- return new E("__ui:scrollbar__", !0);
3878
+ return new D("__ui:scrollbar__", !0);
3929
3879
  }
3930
3880
  static getCalculate() {
3931
3881
  return this.calculate;
3932
3882
  }
3933
3883
  static createElement() {
3934
- return U(document.body, "div", (e) => {
3935
- e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", U(e, "div", (e) => {
3884
+ return H(document.body, "div", (e) => {
3885
+ e.style.height = "24px", e.style.overflowY = "scroll", e.style.position = "fixed", e.style.width = "100%", H(e, "div", (e) => {
3936
3886
  e.style.height = "100px";
3937
3887
  });
3938
3888
  });
@@ -3947,10 +3897,9 @@ var G = class {
3947
3897
  });
3948
3898
  }
3949
3899
  };
3950
- e(Pt, "calculate", !1);
3951
3900
  //#endregion
3952
3901
  //#region src/functions/escapeExp.ts
3953
- function X(e) {
3902
+ function Y(e) {
3954
3903
  return String(e).replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
3955
3904
  }
3956
3905
  //#endregion
@@ -3958,25 +3907,30 @@ function X(e) {
3958
3907
  function Ft(e, t = 128) {
3959
3908
  if (e instanceof RegExp) return e;
3960
3909
  if (!e || e.trim().length === 0 || e.length > t) return /^/;
3961
- let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(X).join("|");
3910
+ let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(Y).join("|");
3962
3911
  return RegExp(`(${n})`, "ig");
3963
3912
  }
3964
3913
  //#endregion
3965
3914
  //#region src/functions/addTagHighlightMatch.ts
3966
- var It = `___HIGHLIGHT_START_${p(1e5, 999999)}___`, Lt = `___HIGHLIGHT_END_${p(1e5, 999999)}___`, Rt = RegExp(`${It}|${Lt}`, "g");
3915
+ var It = "___HIGHLIGHT_START___", Lt = "___HIGHLIGHT_END___", Rt = /___HIGHLIGHT_START___|___HIGHLIGHT_END___/g;
3967
3916
  function zt(e, t, n = "sys-highlight-match", r = !1) {
3968
- let i = o(e);
3969
- if (u(i) && u(t)) {
3917
+ let i = a(e);
3918
+ if (l(i) && l(t)) {
3970
3919
  let e = i.replace(Ft(t), `${It}$1${Lt}`);
3971
- return r && (e = W(e)), e.replace(Rt, (e) => e === It ? `<span class="${n}">` : "</span>");
3920
+ return r && (e = U(e)), e.replace(Rt, (e) => e === It ? `<span class="${n}">` : "</span>");
3972
3921
  }
3973
- return r ? W(i) : i;
3922
+ return r ? U(i) : i;
3974
3923
  }
3975
3924
  //#endregion
3976
3925
  //#region src/classes/SearchListData.ts
3977
3926
  var Bt = class {
3978
- constructor(t, n, r, i) {
3979
- e(this, "list", void 0), e(this, "columns", void 0), e(this, "item", void 0), e(this, "options", void 0), e(this, "listCache", void 0), this.list = t, this.columns = n, this.item = r, this.options = i;
3927
+ list;
3928
+ columns;
3929
+ item;
3930
+ options;
3931
+ listCache;
3932
+ constructor(e, t, n, r) {
3933
+ this.list = e, this.columns = t, this.item = n, this.options = r;
3980
3934
  }
3981
3935
  is() {
3982
3936
  return !!(this.list && this.columns);
@@ -3991,8 +3945,7 @@ var Bt = class {
3991
3945
  return this.columns;
3992
3946
  }
3993
3947
  getCache() {
3994
- var e;
3995
- return this.listCache || this.initCache(), (e = this.listCache) == null ? [] : e;
3948
+ return this.listCache || this.initCache(), this.listCache ?? [];
3996
3949
  }
3997
3950
  setList(e) {
3998
3951
  return this.list = e, this.resetCache(), this;
@@ -4013,8 +3966,8 @@ var Bt = class {
4013
3966
  toFormatItem(e, t) {
4014
3967
  let n = {};
4015
3968
  return this.columns && this.columns.forEach((r) => {
4016
- let i = this.getColumnName(r), a = B(e, r);
4017
- n[i] = u(a) && t ? this.addTag(a) : S(a);
3969
+ let i = this.getColumnName(r), a = z(e, r);
3970
+ n[i] = l(a) && t ? this.addTag(a) : C(a);
4018
3971
  }), {
4019
3972
  ...e,
4020
3973
  ...n,
@@ -4025,7 +3978,7 @@ var Bt = class {
4025
3978
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
4026
3979
  }
4027
3980
  addTag(e) {
4028
- return zt(S(e), this.item.get(), this.options.getClassName());
3981
+ return zt(C(e), this.item.get(), this.options.getClassName());
4029
3982
  }
4030
3983
  generateCache() {
4031
3984
  if (!this.isList()) return [];
@@ -4033,8 +3986,8 @@ var Bt = class {
4033
3986
  for (let t of this.list) {
4034
3987
  let n = "";
4035
3988
  if (this.columns) for (let e of this.columns) {
4036
- let r = B(t, e);
4037
- u(r) && (n += ` ${S(r)}`);
3989
+ let r = z(t, e);
3990
+ l(r) && (n += ` ${C(r)}`);
4038
3991
  }
4039
3992
  e.push({
4040
3993
  item: t,
@@ -4050,8 +4003,10 @@ var Bt = class {
4050
4003
  this.listCache = void 0;
4051
4004
  }
4052
4005
  }, Vt = class {
4053
- constructor(t, n) {
4054
- e(this, "value", void 0), e(this, "options", void 0), this.value = t, this.options = n;
4006
+ value;
4007
+ options;
4008
+ constructor(e, t) {
4009
+ this.value = e, this.options = t;
4055
4010
  }
4056
4011
  is() {
4057
4012
  return !!this.value;
@@ -4060,8 +4015,7 @@ var Bt = class {
4060
4015
  return this.is() && this.value.length >= this.options.getLimit();
4061
4016
  }
4062
4017
  get() {
4063
- var e;
4064
- return (e = this.value) == null ? "" : e;
4018
+ return this.value ?? "";
4065
4019
  }
4066
4020
  set(e) {
4067
4021
  return this.value = e, this;
@@ -4069,30 +4023,33 @@ var Bt = class {
4069
4023
  };
4070
4024
  //#endregion
4071
4025
  //#region src/functions/getExp.ts
4072
- function Ht(e, t = "ig", n = ":value") {
4073
- let r = X(e);
4026
+ function X(e, t = "ig", n = ":value") {
4027
+ let r = Y(e);
4074
4028
  return new RegExp(n.replace(/:value/g, r), t);
4075
4029
  }
4076
4030
  //#endregion
4077
4031
  //#region src/functions/getExactSearchExp.ts
4078
- function Ut(e) {
4079
- return Ht(e, "i", "(:value)");
4032
+ function Ht(e) {
4033
+ return X(e, "i", "(:value)");
4080
4034
  }
4081
4035
  //#endregion
4082
4036
  //#region src/functions/getSearchExp.ts
4083
- function Wt(e, t = 128) {
4084
- if (!f(e) || e.trim().length === 0 || e.length > t) return /^/;
4037
+ function Ut(e, t = 128) {
4038
+ if (!d(e) || e.trim().length === 0 || e.length > t) return /^/;
4085
4039
  let n = [];
4086
- return o(e).split(" ").forEach((e) => {
4087
- let t = X(e).trim();
4088
- u(t) && n.push(`(?=.*?${t})`);
4040
+ return a(e).split(" ").forEach((e) => {
4041
+ let t = Y(e).trim();
4042
+ l(t) && n.push(`(?=.*?${t})`);
4089
4043
  }), RegExp(`^${n.join("")}`, "i");
4090
4044
  }
4091
4045
  //#endregion
4092
4046
  //#region src/classes/SearchListMatcher.ts
4093
- var Gt = class {
4094
- constructor(t, n) {
4095
- e(this, "item", void 0), e(this, "options", void 0), e(this, "matcher", void 0), this.item = t, this.options = n, this.initMatcher();
4047
+ var Wt = class {
4048
+ item;
4049
+ options;
4050
+ matcher;
4051
+ constructor(e, t) {
4052
+ this.item = e, this.options = t, this.initMatcher();
4096
4053
  }
4097
4054
  is() {
4098
4055
  return !!this.matcher;
@@ -4107,44 +4064,41 @@ var Gt = class {
4107
4064
  this.initMatcher();
4108
4065
  }
4109
4066
  initMatcher() {
4110
- this.matcher = this.item.is() ? this.options.getFindExactMatch() ? Ut(this.item.get()) : Wt(this.item.get()) : void 0;
4067
+ this.matcher = this.item.is() ? this.options.getFindExactMatch() ? Ht(this.item.get()) : Ut(this.item.get()) : void 0;
4111
4068
  }
4112
- }, Kt = class {
4113
- constructor(t) {
4114
- e(this, "options", void 0), this.options = t;
4069
+ }, Gt = class {
4070
+ options;
4071
+ constructor(e) {
4072
+ this.options = e;
4115
4073
  }
4116
4074
  getOptions() {
4117
4075
  return this.options || {};
4118
4076
  }
4119
4077
  getLimit() {
4120
- var e;
4121
- return (e = this.getOptions().limit) == null ? 2 : e;
4078
+ return this.getOptions().limit ?? 2;
4122
4079
  }
4123
4080
  getReturnEverything() {
4124
- var e;
4125
- return (e = this.getOptions().returnEverything) != null && e;
4081
+ return this.getOptions().returnEverything ?? !1;
4126
4082
  }
4127
4083
  getDelay() {
4128
- var e;
4129
- return (e = this.getOptions().delay) == null ? 0 : e;
4084
+ return this.getOptions().delay ?? 0;
4130
4085
  }
4131
4086
  getFindExactMatch() {
4132
- var e;
4133
- return (e = this.getOptions().findExactMatch) != null && e;
4087
+ return this.getOptions().findExactMatch ?? !1;
4134
4088
  }
4135
4089
  getClassName() {
4136
- var e;
4137
- return (e = this.getOptions().classSearchName) == null ? "sys-search-selection" : e;
4090
+ return this.getOptions().classSearchName ?? "sys-search-selection";
4138
4091
  }
4139
4092
  setOptions(e) {
4140
4093
  return this.options = e, this;
4141
4094
  }
4142
- }, qt = class {
4143
- constructor(t, n, r, i) {
4144
- e(this, "options", void 0), e(this, "item", void 0), e(this, "matcher", void 0), e(this, "data", void 0), e(this, "callbackToSelection", (e, t) => {
4145
- if (this.matcher.isSelection(t)) return this.data.toFormatItem(e, !0);
4146
- if (this.options.getReturnEverything()) return this.data.toFormatItem(e, !1);
4147
- }), e(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Kt(i), this.item = new Vt(r, this.options), this.matcher = new Gt(this.item, this.options), this.data = new Bt(t, n, this.item, this.options);
4095
+ }, Kt = class {
4096
+ options;
4097
+ item;
4098
+ matcher;
4099
+ data;
4100
+ constructor(e, t, n, r) {
4101
+ this.options = new Gt(r), this.item = new Vt(n, this.options), this.matcher = new Wt(this.item, this.options), this.data = new Bt(e, t, this.item, this.options);
4148
4102
  }
4149
4103
  getData() {
4150
4104
  return this.data;
@@ -4179,17 +4133,26 @@ var Gt = class {
4179
4133
  to() {
4180
4134
  if (this.item.isSearch()) return this.data.forEach(this.callbackToSelection);
4181
4135
  let e = this.data.getList();
4182
- return e ? i(e, this.callbackToNone) : [];
4183
- }
4184
- }, Jt = () => T.get("__ui:storage-callback__", () => ({})), Yt = class t {
4185
- static getInstance(e, n = "main") {
4186
- return new t(e, n);
4136
+ return e ? r(e, this.callbackToNone) : [];
4187
4137
  }
4188
- constructor(t, n = "main") {
4189
- e(this, "name", void 0), e(this, "group", void 0), e(this, "callbacks", []), e(this, "loading", !1), this.name = t, this.group = n;
4190
- let r = `${n}:${t}`, i = Jt();
4191
- if (r in i) return i[r];
4192
- i[r] = this;
4138
+ callbackToSelection = (e, t) => {
4139
+ if (this.matcher.isSelection(t)) return this.data.toFormatItem(e, !0);
4140
+ if (this.options.getReturnEverything()) return this.data.toFormatItem(e, !1);
4141
+ };
4142
+ callbackToNone = (e) => this.data.toFormatItem(e, !1);
4143
+ }, qt = () => E.get("__ui:storage-callback__", () => ({})), Jt = class e {
4144
+ name;
4145
+ group;
4146
+ static getInstance(t, n = "main") {
4147
+ return new e(t, n);
4148
+ }
4149
+ callbacks = [];
4150
+ loading = !1;
4151
+ constructor(e, t = "main") {
4152
+ this.name = e, this.group = t;
4153
+ let n = `${t}:${e}`, r = qt();
4154
+ if (n in r) return r[n];
4155
+ r[n] = this;
4193
4156
  }
4194
4157
  isLoading() {
4195
4158
  return this.loading;
@@ -4214,10 +4177,10 @@ var Gt = class {
4214
4177
  }
4215
4178
  async run(e) {
4216
4179
  this.loading = !1;
4217
- for (let { callback: t, isOnce: n } of this.callbacks) await P(t, e), n && this.removeCallback(t);
4180
+ for (let { callback: t, isOnce: n } of this.callbacks) await N(t, e), n && this.removeCallback(t);
4218
4181
  return this;
4219
4182
  }
4220
- }, Xt = [
4183
+ }, Yt = [
4221
4184
  "d",
4222
4185
  "e",
4223
4186
  "f",
@@ -4237,54 +4200,36 @@ var Gt = class {
4237
4200
  "t",
4238
4201
  "u",
4239
4202
  "v"
4240
- ], Zt = RegExp(`%(${Xt.join("|")})`, "g"), Qt = (e, t = {}) => {
4241
- let n = String(e);
4242
- return Array.isArray(t) && e.match(/%[a-z]/) && (n = n.replace(Zt, (e, n) => {
4243
- let r = Xt.indexOf(n);
4244
- if (r !== -1) {
4245
- var i;
4246
- return String((i = t == null ? void 0 : t[r]) == null ? "" : i);
4247
- }
4248
- return e;
4249
- })), r(t) && (n = n.replace(/[[{](.*?)[\]}](.*?)[[{]\/\1[\]}]/g, (e, n, r) => {
4250
- if (n in t) {
4251
- var i;
4252
- return String((i = t[n]) == null ? "" : i).replace(/[[{]content[\]}]/g, () => r);
4253
- }
4254
- return e;
4255
- }), n = n.replace(/[[{](.*?)[\]}]/g, (e, n) => {
4256
- if (n in t) {
4257
- var r;
4258
- return String((r = t[n]) == null ? "" : r);
4259
- }
4260
- return e;
4261
- })), n;
4262
- }, $t = (e) => {
4263
- var t;
4264
- return a(e) ? !0 : !!(e && r(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || e != null && (t = e.statusObject) != null && t.status && /^2/.test(String(e.statusObject.status)) || !("status" in e) && !("success" in e) && !("statusObject" in e) && /^2/.test(String(F.getStatus().getStatus()))));
4265
- }, en = "global", tn = 160, nn = class {
4266
- constructor(t, n = () => O.getLanguage(), r = () => O.getLocation()) {
4267
- e(this, "language", void 0), e(this, "location", void 0), e(this, "files", {}), e(this, "data", {}), this.language = n, this.location = r, t && this.add(t);
4203
+ ], Xt = /%(d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v)/g, Zt = (e, t = {}) => {
4204
+ let r = String(e);
4205
+ return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(Xt, (e, n) => {
4206
+ let r = Yt.indexOf(n);
4207
+ return r === -1 ? e : String(t?.[r] ?? "");
4208
+ })), n(t) && (r = r.replace(/[[{](.*?)[\]}](.*?)[[{]\/\1[\]}]/g, (e, n, r) => n in t ? String(t[n] ?? "").replace(/[[{]content[\]}]/g, () => r) : e), r = r.replace(/[[{](.*?)[\]}]/g, (e, n) => n in t ? String(t[n] ?? "") : e)), r;
4209
+ }, Qt = (e) => i(e) ? !0 : !!(e && n(e) && (e?.status === "success" || e?.success || e?.statusObject?.status && /^2/.test(String(e.statusObject.status)) || !("status" in e) && !("success" in e) && !("statusObject" in e) && /^2/.test(String(P.getStatus().getStatus())))), $t = "global", en = 160, tn = class {
4210
+ language;
4211
+ location;
4212
+ files = {};
4213
+ data = {};
4214
+ constructor(e, t = () => O.getLanguage(), n = () => O.getLocation()) {
4215
+ this.language = t, this.location = n, e && this.add(e);
4268
4216
  }
4269
4217
  isFile() {
4270
4218
  return Object.keys(this.files).length > 0 && this.getIndex() !== void 0;
4271
4219
  }
4272
4220
  getLocation() {
4273
- return h(this.location);
4221
+ return m(this.location);
4274
4222
  }
4275
4223
  getLanguage() {
4276
- return h(this.language);
4224
+ return m(this.language);
4277
4225
  }
4278
4226
  async getList() {
4279
4227
  let e = this.getIndex();
4280
- if (e) {
4281
- var t;
4282
- return (t = this.getByData(e)) == null ? await this.getByFile(e) : t;
4283
- }
4228
+ if (e) return this.getByData(e) ?? await this.getByFile(e);
4284
4229
  }
4285
4230
  add(e) {
4286
- i(e, (e, t) => {
4287
- m(e) && (this.files[t] = e);
4231
+ r(e, (e, t) => {
4232
+ p(e) && (this.files[t] = e);
4288
4233
  });
4289
4234
  }
4290
4235
  getIndex() {
@@ -4292,25 +4237,32 @@ var Gt = class {
4292
4237
  if (e in this.files) return e;
4293
4238
  let t = this.getLanguage();
4294
4239
  if (t in this.files) return t;
4295
- if ("global" in this.files) return en;
4240
+ if ("global" in this.files) return $t;
4296
4241
  }
4297
4242
  getByData(e) {
4298
4243
  if (e in this.data) return this.data[e];
4299
4244
  }
4300
4245
  async getByFile(e) {
4301
4246
  if (e in this.files) {
4302
- let t = await h(this.files[e]);
4247
+ let t = await m(this.files[e]);
4303
4248
  return t && (this.data[e] = t), t;
4304
4249
  }
4305
4250
  }
4306
- }, rn = class {
4307
- constructor(t = "/api/translate", n = "list", r = new nn()) {
4308
- e(this, "url", void 0), e(this, "propsName", void 0), e(this, "files", void 0), e(this, "data", {}), e(this, "cache", []), e(this, "resolveList", []), e(this, "timeout", void 0), e(this, "isReadApi", !0), this.url = t, this.propsName = n, this.files = r;
4251
+ }, nn = class {
4252
+ url;
4253
+ propsName;
4254
+ files;
4255
+ data = {};
4256
+ cache = [];
4257
+ resolveList = [];
4258
+ timeout;
4259
+ isReadApi = !0;
4260
+ constructor(e = "/api/translate", t = "list", n = new tn()) {
4261
+ this.url = e, this.propsName = t, this.files = n;
4309
4262
  }
4310
4263
  async get(e, t) {
4311
- var n;
4312
- let r = this.getText(e);
4313
- return r ? this.replacement(r, t) : (F.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
4264
+ let n = this.getText(e);
4265
+ return n ? this.replacement(n, t) : (P.isLocalhost() || await this.add(e), this.replacement(this.getText(e) ?? e));
4314
4266
  }
4315
4267
  getSync(e, t = !1, n) {
4316
4268
  let r = this.getText(e);
@@ -4346,13 +4298,13 @@ var Gt = class {
4346
4298
  });
4347
4299
  }
4348
4300
  addSync(e) {
4349
- i(e, (e, t) => {
4350
- f(e) && u(e) && (this.data[this.getName(t)] = e);
4301
+ r(e, (e, t) => {
4302
+ d(e) && l(e) && (this.data[this.getName(t)] = e);
4351
4303
  });
4352
4304
  }
4353
4305
  async addNormalOrSync(e) {
4354
- if (u(e)) {
4355
- if (F.isLocalhost()) this.addSync(e);
4306
+ if (l(e)) {
4307
+ if (P.isLocalhost()) this.addSync(e);
4356
4308
  else {
4357
4309
  let t = Object.keys(e);
4358
4310
  t.length > 0 && await this.add(t);
@@ -4360,7 +4312,7 @@ var Gt = class {
4360
4312
  }
4361
4313
  }
4362
4314
  addSyncByLocation(e) {
4363
- i(e, (e, t) => i(e, (e, n) => {
4315
+ r(e, (e, t) => r(e, (e, n) => {
4364
4316
  let r = `${t}-${n}`;
4365
4317
  r in this.data || (this.data[r] = e);
4366
4318
  }));
@@ -4395,7 +4347,7 @@ var Gt = class {
4395
4347
  return `${this.files.getLanguage()}-${e}`;
4396
4348
  }
4397
4349
  getNameByGlobal(e) {
4398
- return `${en}-${e}`;
4350
+ return `${$t}-${e}`;
4399
4351
  }
4400
4352
  getNamesNone(e) {
4401
4353
  let t = [];
@@ -4404,7 +4356,7 @@ var Gt = class {
4404
4356
  }), t;
4405
4357
  }
4406
4358
  async getResponse() {
4407
- let e = await F.get({
4359
+ let e = await P.get({
4408
4360
  api: !1,
4409
4361
  path: this.url,
4410
4362
  request: { [this.propsName]: this.cache },
@@ -4412,14 +4364,14 @@ var Gt = class {
4412
4364
  timeout: 12e3,
4413
4365
  global: !0
4414
4366
  });
4415
- return $t(e) || C.on({
4367
+ return Qt(e) || w.on({
4416
4368
  group: "translate",
4417
4369
  code: "error",
4418
4370
  details: e
4419
- }), e == null ? {} : e;
4371
+ }), e ?? {};
4420
4372
  }
4421
4373
  replacement(e, t) {
4422
- return t ? Qt(e, t) : e;
4374
+ return t ? Zt(e, t) : e;
4423
4375
  }
4424
4376
  async make() {
4425
4377
  let e;
@@ -4427,16 +4379,16 @@ var Gt = class {
4427
4379
  }
4428
4380
  makeList(e) {
4429
4381
  this.cache.forEach((t) => {
4430
- var n;
4431
- this.data[this.getName(t)] = (n = e == null ? void 0 : e[t]) == null ? "" : n;
4382
+ this.data[this.getName(t)] = e?.[t] ?? "";
4432
4383
  }), this.cache = [];
4433
4384
  }
4434
- }, an = class {
4385
+ }, rn = class {
4386
+ static item;
4435
4387
  static async get(e, t) {
4436
4388
  return this.getItem().get(e, t);
4437
4389
  }
4438
4390
  static getItem() {
4439
- return this.item || (this.item = new rn()), this.item;
4391
+ return this.item ||= new nn(), this.item;
4440
4392
  }
4441
4393
  static getSync(e, t = !1, n) {
4442
4394
  return this.getItem().getSync(e, t, n);
@@ -4475,39 +4427,32 @@ var Gt = class {
4475
4427
  e.url && this.getItem().setUrl(e.url), e.propsName && this.getItem().setPropsName(e.propsName), typeof e.readApi == "boolean" && this.getItem().setReadApi(e.readApi);
4476
4428
  }
4477
4429
  };
4478
- e(an, "item", void 0);
4479
4430
  //#endregion
4480
4431
  //#region src/functions/arrFill.ts
4481
- function on(e, t) {
4432
+ function an(e, t) {
4482
4433
  return Array(t).fill(e);
4483
4434
  }
4484
4435
  //#endregion
4485
4436
  //#region src/functions/blobToBase64.ts
4486
- var sn = () => cn() !== void 0, cn = () => {
4487
- var e;
4488
- return (e = globalThis) == null ? void 0 : e.Buffer;
4489
- }, ln = async (e) => new Promise((t, n) => {
4437
+ var on = () => sn() !== void 0, sn = () => globalThis?.Buffer, cn = async (e) => new Promise((t, n) => {
4490
4438
  if (typeof FileReader < "u") {
4491
4439
  let r = new FileReader();
4492
4440
  r.onloadend = () => {
4493
- if (!(r != null && r.result)) {
4441
+ if (!r?.result) {
4494
4442
  n(/* @__PURE__ */ Error("Failed to read blob"));
4495
4443
  return;
4496
4444
  }
4497
4445
  t(r.result.replace(/^data:.*?,/, ""));
4498
4446
  }, r.onerror = n, r.readAsDataURL(e);
4499
4447
  } else n();
4500
- }), un = (e) => {
4501
- var t;
4502
- return ((t = globalThis) == null ? void 0 : t.Buffer).from(e).toString("base64");
4503
- };
4504
- async function dn(e, t = !1) {
4505
- let n = c() ? await ln(e) : sn() ? un(await e.arrayBuffer()) : void 0;
4448
+ }), ln = (e) => (globalThis?.Buffer).from(e).toString("base64");
4449
+ async function un(e, t = !1) {
4450
+ let n = s() ? await cn(e) : on() ? ln(await e.arrayBuffer()) : void 0;
4506
4451
  if (n) return t ? n : `data:${e.type};base64,${n}`;
4507
4452
  }
4508
4453
  //#endregion
4509
4454
  //#region src/functions/capitalize.ts
4510
- function fn(e, t = !1) {
4455
+ function dn(e, t = !1) {
4511
4456
  let n = String(e);
4512
4457
  return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(O.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4513
4458
  }
@@ -4518,39 +4463,36 @@ function Z(e) {
4518
4463
  }
4519
4464
  //#endregion
4520
4465
  //#region src/functions/copyObjectLite.ts
4521
- function pn(e, t) {
4466
+ function fn(e, t) {
4522
4467
  return Object.assign({}, e, t);
4523
4468
  }
4524
4469
  //#endregion
4525
4470
  //#region src/functions/domContentLoaded.ts
4526
- async function mn(e) {
4527
- return !c() || document.readyState !== "loading" ? P(e) : new Promise((t, n) => {
4471
+ async function pn(e) {
4472
+ return !s() || document.readyState !== "loading" ? N(e) : new Promise((t, n) => {
4528
4473
  document.addEventListener("DOMContentLoaded", () => {
4529
- P(e).then(t, n);
4474
+ N(e).then(t, n);
4530
4475
  }, { once: !0 });
4531
4476
  });
4532
4477
  }
4533
4478
  //#endregion
4534
4479
  //#region src/functions/domQuerySelector.ts
4535
- function hn(e) {
4536
- if (c()) {
4537
- var t;
4538
- return (t = document.querySelector(e)) == null ? void 0 : t;
4539
- }
4480
+ function mn(e) {
4481
+ if (s()) return document.querySelector(e) ?? void 0;
4540
4482
  }
4541
4483
  //#endregion
4542
4484
  //#region src/functions/domQuerySelectorAll.ts
4543
- function gn(e) {
4544
- if (c()) return document.querySelectorAll(e);
4485
+ function hn(e) {
4486
+ if (s()) return document.querySelectorAll(e);
4545
4487
  }
4546
4488
  //#endregion
4547
4489
  //#region src/functions/getElementImage.ts
4548
- function _n(e) {
4549
- return f(e) ? U(void 0, "img", { src: e }) : e;
4490
+ function gn(e) {
4491
+ return d(e) ? H(void 0, "img", { src: e }) : e;
4550
4492
  }
4551
4493
  //#endregion
4552
4494
  //#region src/functions/resizeImageByMax.ts
4553
- function vn(e, t = "auto") {
4495
+ function _n(e, t = "auto") {
4554
4496
  switch (t) {
4555
4497
  case "auto": return e.naturalWidth >= e.naturalHeight;
4556
4498
  case "width": return !0;
@@ -4558,48 +4500,46 @@ function vn(e, t = "auto") {
4558
4500
  }
4559
4501
  }
4560
4502
  function Q(e, t, n = "auto", r) {
4561
- let i = _n(e);
4562
- if (c() && i && i.naturalWidth && i.naturalHeight && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
4563
- var a;
4564
- let e = vn(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
4565
- if (o) return o.canvas.width = e ? t : i.naturalWidth / i.naturalHeight * t, o.canvas.height = e ? i.naturalHeight / i.naturalWidth * t : t, o.drawImage(i, 0, 0, o.canvas.width, o.canvas.height), o.canvas.toDataURL(r);
4503
+ let i = gn(e);
4504
+ if (s() && i && i.naturalWidth && i.naturalHeight && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
4505
+ let e = _n(i, n), a = document.createElement("canvas")?.getContext("2d");
4506
+ if (a) return a.canvas.width = e ? t : i.naturalWidth / i.naturalHeight * t, a.canvas.height = e ? i.naturalHeight / i.naturalWidth * t : t, a.drawImage(i, 0, 0, a.canvas.width, a.canvas.height), a.canvas.toDataURL(r);
4566
4507
  }
4567
4508
  }
4568
4509
  //#endregion
4569
4510
  //#region src/functions/ensureMaxSize.ts
4570
- async function yn(e, t = .56, n = "image/jpeg") {
4511
+ async function vn(e, t = .56, n = "image/jpeg") {
4571
4512
  return new Promise((r) => {
4572
- if (!c()) {
4513
+ if (!s()) {
4573
4514
  r("");
4574
4515
  return;
4575
4516
  }
4576
- let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = _n(a);
4517
+ let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = gn(a);
4577
4518
  o ? (o.onload = () => {
4578
- let e = Q(o, t * o.naturalWidth, "width", n);
4579
- r(e == null ? "" : e), URL.revokeObjectURL(a);
4519
+ r(Q(o, t * o.naturalWidth, "width", n) ?? ""), URL.revokeObjectURL(a);
4580
4520
  }, o.onerror = () => {
4581
4521
  URL.revokeObjectURL(a), r("");
4582
- }) : dn(i).then((e) => r(String(e == null ? "" : e)));
4522
+ }) : un(i).then((e) => r(String(e ?? "")));
4583
4523
  });
4584
4524
  }
4585
4525
  //#endregion
4586
4526
  //#region src/functions/eventStopPropagation.ts
4587
- function bn(e) {
4527
+ function yn(e) {
4588
4528
  e.preventDefault(), e.stopPropagation();
4589
4529
  }
4590
4530
  //#endregion
4591
4531
  //#region src/functions/frame.ts
4592
- function xn(e, t, n) {
4532
+ function bn(e, t, n) {
4593
4533
  let r = () => {
4594
- e(), c() && t != null && t() ? xn(e, t, n) : n == null || n();
4534
+ e(), s() && t?.() ? bn(e, t, n) : n?.();
4595
4535
  };
4596
- c() ? requestAnimationFrame(r) : r();
4536
+ s() ? requestAnimationFrame(r) : r();
4597
4537
  }
4598
4538
  //#endregion
4599
4539
  //#region src/functions/getArrayHighlightMatch.ts
4600
- function Sn(e, t) {
4601
- let n = o(e);
4602
- if (u(n) && u(t)) {
4540
+ function xn(e, t) {
4541
+ let n = a(e);
4542
+ if (l(n) && l(t)) {
4603
4543
  let e = [], r = Ft(t), i = 0, a;
4604
4544
  for (; (a = r.exec(n)) !== null && a.index !== r.lastIndex;) a.index > i && e.push({
4605
4545
  text: n.substring(i, a.index),
@@ -4620,22 +4560,18 @@ function Sn(e, t) {
4620
4560
  }
4621
4561
  //#endregion
4622
4562
  //#region src/functions/getAttributes.ts
4623
- function Cn(e) {
4563
+ function Sn(e) {
4624
4564
  let t = {}, n = k(e);
4625
- if (n) for (let e of n.attributes) {
4626
- var r;
4627
- t[e.name] = (r = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.textContent)) == null ? void 0 : r;
4628
- }
4565
+ if (n) for (let e of n.attributes) t[e.name] = (e?.value || e?.textContent) ?? void 0;
4629
4566
  return t;
4630
4567
  }
4631
4568
  //#endregion
4632
4569
  //#region src/functions/getClipboardData.ts
4633
- async function wn(e) {
4634
- if (c()) try {
4635
- var t, n;
4636
- return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
4570
+ async function Cn(e) {
4571
+ if (s()) try {
4572
+ return e?.clipboardData?.getData("text") ?? (await navigator.clipboard.readText() || "");
4637
4573
  } catch (e) {
4638
- C.on({
4574
+ w.on({
4639
4575
  group: "clipboard",
4640
4576
  code: "error",
4641
4577
  details: e
@@ -4645,205 +4581,188 @@ async function wn(e) {
4645
4581
  }
4646
4582
  //#endregion
4647
4583
  //#region src/functions/getCurrentDate.ts
4648
- function Tn(e = "datetime") {
4584
+ function wn(e = "datetime") {
4649
4585
  return new nt(void 0, e).standard();
4650
4586
  }
4651
4587
  //#endregion
4652
4588
  //#region src/functions/getCurrentTime.ts
4653
- function En() {
4589
+ function Tn() {
4654
4590
  return Date.now();
4655
4591
  }
4656
4592
  //#endregion
4657
4593
  //#region src/functions/getElementId.ts
4658
- var Dn, On = () => {
4659
- let e = Dn == null ? void 0 : Dn();
4594
+ var En, Dn = () => {
4595
+ let e = En?.();
4660
4596
  if (e) return String(e);
4661
- let t = T.get("__ui:getElementId__", () => ({ id: 1e5 }));
4597
+ let t = E.get("__ui:getElementId__", () => ({ id: 1e5 }));
4662
4598
  return `id-${t.id++}`;
4663
4599
  };
4664
- function kn(e, t) {
4600
+ function On(e, t) {
4665
4601
  if (e) {
4666
4602
  let n = k(e);
4667
- if (n) return u(n.id) || n.setAttribute("id", On()), t ? `#${n.id}${t}`.trim() : n.id;
4603
+ if (n) return l(n.id) || n.setAttribute("id", Dn()), t ? `#${n.id}${t}`.trim() : n.id;
4668
4604
  }
4669
- return On();
4605
+ return Dn();
4670
4606
  }
4671
- function An(e) {
4672
- Dn || (Dn = e);
4607
+ function kn(e) {
4608
+ En ||= e;
4673
4609
  }
4674
4610
  //#endregion
4675
4611
  //#region src/functions/getFirst.ts
4676
- function jn(e) {
4677
- if (a(e)) return e == null ? void 0 : e[0];
4678
- if (n(e)) {
4679
- var t;
4680
- return (t = Object.values(e)) == null ? void 0 : t[0];
4681
- }
4682
- return e;
4612
+ function An(e) {
4613
+ return i(e) ? e?.[0] : t(e) ? Object.values(e)?.[0] : e;
4683
4614
  }
4684
4615
  //#endregion
4685
4616
  //#region src/functions/getImageSrc.ts
4686
- function Mn(e) {
4687
- if (f(e)) return e;
4688
- if (e && "src" in e) {
4689
- var t;
4690
- return (t = e.src) == null ? "" : t;
4691
- }
4692
- return "";
4617
+ function jn(e) {
4618
+ return d(e) ? e : e && "src" in e ? e.src ?? "" : "";
4693
4619
  }
4694
4620
  //#endregion
4695
4621
  //#region src/functions/getKey.ts
4696
- function Nn(e) {
4697
- var t, n, r;
4698
- return (t = (n = e == null ? void 0 : e.key) == null ? e == null ? void 0 : e.code : n) == null ? e == null || (r = e.keyCode) == null ? void 0 : r.toString() : t;
4622
+ function Mn(e) {
4623
+ return e?.key ?? e?.code ?? e?.keyCode?.toString();
4699
4624
  }
4700
4625
  //#endregion
4701
4626
  //#region src/functions/getLast.ts
4702
- function Pn(e) {
4703
- if (a(e)) return e == null ? void 0 : e[e.length - 1];
4704
- if (n(e)) {
4627
+ function Nn(e) {
4628
+ if (i(e)) return e?.[e.length - 1];
4629
+ if (t(e)) {
4705
4630
  let t = Object.values(e);
4706
- return t == null ? void 0 : t[t.length - 1];
4631
+ return t?.[t.length - 1];
4707
4632
  }
4708
4633
  return e;
4709
4634
  }
4710
4635
  //#endregion
4711
4636
  //#region src/functions/getLength.ts
4712
- function Fn(e) {
4713
- return e == null ? 0 : typeof e == "string" || Array.isArray(e) ? e.length : e instanceof Map || e instanceof Set ? e.size : n(e) ? Object.keys(e).length : 0;
4637
+ function Pn(e) {
4638
+ return e == null ? 0 : typeof e == "string" || Array.isArray(e) ? e.length : e instanceof Map || e instanceof Set ? e.size : t(e) ? Object.keys(e).length : 0;
4714
4639
  }
4715
4640
  //#endregion
4716
4641
  //#region src/functions/getLengthOfAllArray.ts
4717
- function In(e) {
4718
- return i(e, (e) => {
4719
- var t;
4720
- return (t = e == null ? void 0 : e.length) == null ? 0 : t;
4721
- });
4642
+ function Fn(e) {
4643
+ return r(e, (e) => e?.length ?? 0);
4722
4644
  }
4723
4645
  //#endregion
4724
4646
  //#region src/functions/getMaxLengthAllArray.ts
4725
- function Ln(e) {
4726
- if (!u(e)) return 0;
4727
- let t = In(e);
4647
+ function In(e) {
4648
+ if (!l(e)) return 0;
4649
+ let t = Fn(e);
4728
4650
  return t.length > 1e4 ? t.reduce((e, t) => Math.max(e, t)) : Math.max(...t);
4729
4651
  }
4730
4652
  //#endregion
4731
4653
  //#region src/functions/getMinLengthAllArray.ts
4732
- function Rn(e) {
4733
- if (!u(e)) return 0;
4734
- let t = In(e);
4654
+ function Ln(e) {
4655
+ if (!l(e)) return 0;
4656
+ let t = Fn(e);
4735
4657
  return t.length > 1e4 ? t.reduce((e, t) => Math.min(e, t)) : Math.min(...t);
4736
4658
  }
4737
4659
  //#endregion
4738
4660
  //#region src/functions/getMouseClientX.ts
4739
- function zn(e) {
4740
- var t, n;
4741
- return "clientX" in e ? e.clientX : (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientX) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientX) || 0;
4661
+ function Rn(e) {
4662
+ return "clientX" in e ? e.clientX : e?.targetTouches?.[0]?.clientX || e?.touches?.[0]?.clientX || 0;
4742
4663
  }
4743
4664
  //#endregion
4744
4665
  //#region src/functions/getMouseClientY.ts
4745
- function Bn(e) {
4746
- var t, n;
4747
- return "clientY" in e ? e.clientY : (e == null || (t = e.targetTouches) == null || (t = t[0]) == null ? void 0 : t.clientY) || (e == null || (n = e.touches) == null || (n = n[0]) == null ? void 0 : n.clientY) || 0;
4666
+ function zn(e) {
4667
+ return "clientY" in e ? e.clientY : e?.targetTouches?.[0]?.clientY || e?.touches?.[0]?.clientY || 0;
4748
4668
  }
4749
4669
  //#endregion
4750
4670
  //#region src/functions/getMouseClient.ts
4751
- function Vn(e) {
4671
+ function Bn(e) {
4752
4672
  return {
4753
- x: zn(e),
4754
- y: Bn(e)
4673
+ x: Rn(e),
4674
+ y: zn(e)
4755
4675
  };
4756
4676
  }
4757
4677
  //#endregion
4758
4678
  //#region src/functions/getObjectByKeys.ts
4759
- function Hn(e, t) {
4760
- let n = {};
4761
- return r(e) && t.forEach((t) => {
4762
- t in e && e[t] !== void 0 && (n[t] = e[t]);
4763
- }), n;
4679
+ function Vn(e, t) {
4680
+ let r = {};
4681
+ return n(e) && t.forEach((t) => {
4682
+ t in e && e[t] !== void 0 && (r[t] = e[t]);
4683
+ }), r;
4764
4684
  }
4765
4685
  //#endregion
4766
4686
  //#region src/functions/getObjectNoUndefined.ts
4767
- function Un(e, t = void 0) {
4687
+ function Hn(e, t = void 0) {
4768
4688
  let n = {};
4769
- return i(e, (e, r) => {
4689
+ return r(e, (e, r) => {
4770
4690
  e !== t && (n[r] = e);
4771
4691
  }), n;
4772
4692
  }
4773
4693
  //#endregion
4774
4694
  //#region src/functions/getObjectOrNone.ts
4775
- function Wn(e) {
4776
- return r(e) ? e : {};
4695
+ function Un(e) {
4696
+ return n(e) ? e : {};
4777
4697
  }
4778
4698
  //#endregion
4779
4699
  //#region src/functions/getOnlyText.ts
4780
- function Gn(e) {
4781
- return S(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4700
+ function Wn(e) {
4701
+ return C(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4782
4702
  }
4783
4703
  //#endregion
4784
4704
  //#region src/functions/getRandomItem.ts
4785
- function Kn(e) {
4786
- if (a(e)) return e.length === 0 ? void 0 : e[p(0, e.length - 1)];
4787
- if (n(e)) {
4705
+ function Gn(e) {
4706
+ if (i(e)) return e.length === 0 ? void 0 : e[f(0, e.length - 1)];
4707
+ if (t(e)) {
4788
4708
  let t = Object.values(e);
4789
- return t.length === 0 ? void 0 : t[p(0, t.length - 1)];
4709
+ return t.length === 0 ? void 0 : t[f(0, t.length - 1)];
4790
4710
  }
4791
- return e == null ? void 0 : e;
4711
+ return e ?? void 0;
4792
4712
  }
4793
4713
  //#endregion
4794
4714
  //#region src/functions/strFill.ts
4795
- function qn(e, t) {
4715
+ function Kn(e, t) {
4796
4716
  return String(e).repeat(t);
4797
4717
  }
4798
4718
  //#endregion
4799
4719
  //#region src/functions/getRandomText.ts
4800
- function Jn(e, t, n = "#", r = 2, i = 12) {
4801
- let a = p(e, t), o = [];
4802
- for (let e = 0; e < a; e++) o.push(qn(n, p(r, i)));
4720
+ function qn(e, t, n = "#", r = 2, i = 12) {
4721
+ let a = f(e, t), o = [];
4722
+ for (let e = 0; e < a; e++) o.push(Kn(n, f(r, i)));
4803
4723
  return o.join(" ");
4804
4724
  }
4805
4725
  //#endregion
4806
4726
  //#region src/functions/getStepPercent.ts
4807
- function Yn(e, t) {
4808
- let n = e == null ? 0 : e;
4727
+ function Jn(e, t) {
4728
+ let n = e ?? 0;
4809
4729
  return t > n ? 100 / (t - n) : 0;
4810
4730
  }
4811
4731
  //#endregion
4812
4732
  //#region src/functions/getStepValue.ts
4813
- function Xn(e, t) {
4814
- let n = e == null ? 0 : e;
4733
+ function Yn(e, t) {
4734
+ let n = e ?? 0;
4815
4735
  return t > n ? (t - n) / 100 : 0;
4816
4736
  }
4817
4737
  //#endregion
4818
4738
  //#region src/functions/goScroll.ts
4819
- var Zn = 0;
4820
- function Qn(e, t, n) {
4821
- if (!c()) return;
4822
- let r = t == null ? void 0 : t.closest(e);
4739
+ var Xn = 0;
4740
+ function Zn(e, t, n) {
4741
+ if (!s()) return;
4742
+ let r = t?.closest(e);
4823
4743
  if (t && r && r.scrollHeight !== r.offsetHeight) {
4824
4744
  let e = r.getBoundingClientRect(), i = t.getBoundingClientRect();
4825
4745
  if (n) {
4826
4746
  let a = n.getBoundingClientRect();
4827
4747
  r.scrollTop = t.offsetTop - (a.top - e.top) - (a.height / 2 - i.height / 2), r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = t.offsetTop + t.offsetHeight - r.offsetHeight);
4828
- } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Zn : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Zn);
4748
+ } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Xn : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Xn);
4829
4749
  }
4830
4750
  }
4831
4751
  //#endregion
4832
4752
  //#region src/functions/goScrollSmooth.ts
4833
- function $n(e, t, n = 0) {
4834
- if (!c()) return;
4835
- let r = (t == null ? void 0 : t.behavior) || "smooth";
4753
+ function Qn(e, t, n = 0) {
4754
+ if (!s()) return;
4755
+ let r = t?.behavior || "smooth";
4836
4756
  if ("scrollIntoView" in e && !n) {
4837
4757
  e.scrollIntoView({
4838
4758
  behavior: r,
4839
- block: (t == null ? void 0 : t.block) || "start",
4840
- inline: (t == null ? void 0 : t.inline) || "start"
4759
+ block: t?.block || "start",
4760
+ inline: t?.inline || "start"
4841
4761
  });
4842
4762
  return;
4843
4763
  }
4844
4764
  if ("getBoundingClientRect" in e && "scrollTo" in window) {
4845
- var i;
4846
- let t = (((i = window) == null ? void 0 : i.scrollY) || window.pageYOffset) + e.getBoundingClientRect().top - n;
4765
+ let t = (window?.scrollY || window.pageYOffset) + e.getBoundingClientRect().top - n;
4847
4766
  window.scrollTo({
4848
4767
  top: t,
4849
4768
  behavior: r
@@ -4852,8 +4771,8 @@ function $n(e, t, n = 0) {
4852
4771
  }
4853
4772
  //#endregion
4854
4773
  //#region src/functions/goScrollTo.ts
4855
- function er(e, t, n = "smooth") {
4856
- if (!c() || !e || !t) return;
4774
+ function $n(e, t, n = "smooth") {
4775
+ if (!s() || !e || !t) return;
4857
4776
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
4858
4777
  e.scrollBy({
4859
4778
  top: i.top - r.top,
@@ -4863,16 +4782,16 @@ function er(e, t, n = "smooth") {
4863
4782
  }
4864
4783
  //#endregion
4865
4784
  //#region src/functions/isShare.ts
4866
- function tr() {
4867
- return c() && typeof navigator < "u" && !!navigator.share;
4785
+ function er() {
4786
+ return s() && typeof navigator < "u" && !!navigator.share;
4868
4787
  }
4869
4788
  //#endregion
4870
4789
  //#region src/functions/handleShare.ts
4871
- async function nr(e) {
4872
- if (tr() && navigator.canShare && navigator.canShare(e)) try {
4790
+ async function tr(e) {
4791
+ if (er() && navigator.canShare && navigator.canShare(e)) try {
4873
4792
  return await navigator.share(e), !0;
4874
4793
  } catch (e) {
4875
- C.on({
4794
+ w.on({
4876
4795
  group: "share",
4877
4796
  code: "error",
4878
4797
  details: e
@@ -4882,37 +4801,37 @@ async function nr(e) {
4882
4801
  }
4883
4802
  //#endregion
4884
4803
  //#region src/functions/inArray.ts
4885
- function rr(e, t) {
4804
+ function nr(e, t) {
4886
4805
  return e.includes(t);
4887
4806
  }
4888
4807
  //#endregion
4889
4808
  //#region src/functions/initScrollbarOffset.ts
4890
- async function ir() {
4891
- if (c()) {
4809
+ async function rr() {
4810
+ if (s()) {
4892
4811
  let e = await Pt.get();
4893
4812
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
4894
4813
  }
4895
4814
  }
4896
4815
  //#endregion
4897
4816
  //#region src/functions/intersectKey.ts
4898
- function ar(e, t) {
4899
- let r = {};
4900
- return n(e) && n(t) && i(e, (e, n) => {
4901
- n in t && (r[n] = e);
4902
- }), r;
4817
+ function ir(e, n) {
4818
+ let i = {};
4819
+ return t(e) && t(n) && r(e, (e, t) => {
4820
+ t in n && (i[t] = e);
4821
+ }), i;
4903
4822
  }
4904
4823
  //#endregion
4905
4824
  //#region src/functions/isDifferent.ts
4906
- function or(e, t) {
4825
+ function ar(e, t) {
4907
4826
  let n = Object.keys(e).length !== Object.keys(t).length;
4908
- return n || i(e, (e, r) => {
4909
- e !== (t == null ? void 0 : t[r]) && (n = !0);
4827
+ return n || r(e, (e, r) => {
4828
+ e !== t?.[r] && (n = !0);
4910
4829
  }), n;
4911
4830
  }
4912
4831
  //#endregion
4913
4832
  //#region src/functions/isElementVisible.ts
4914
- function sr(e) {
4915
- if (!c()) return !1;
4833
+ function or(e) {
4834
+ if (!s()) return !1;
4916
4835
  let t = k(e);
4917
4836
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
4918
4837
  let n = window.getComputedStyle(t);
@@ -4920,16 +4839,16 @@ function sr(e) {
4920
4839
  }
4921
4840
  //#endregion
4922
4841
  //#region src/functions/isInput.ts
4923
- var cr = (e) => {
4842
+ var sr = (e) => {
4924
4843
  if (e instanceof HTMLElement) {
4925
4844
  let t = e.tagName.toLowerCase();
4926
- return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true") && !(e != null && e.readOnly) && !(e != null && e.disabled);
4845
+ return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true") && !e?.readOnly && !e?.disabled;
4927
4846
  }
4928
4847
  return !1;
4929
- }, lr = (e, t) => e.code !== "Space" && e.code !== "Enter" && e.key !== " " && e.key !== "Spacebar" && e.key !== "Enter" && e.keyCode !== 13 && e.keyCode !== 32 ? !1 : t === void 0 ? !cr(e.target) : !t;
4848
+ }, cr = (e, t) => e.code !== "Space" && e.code !== "Enter" && e.key !== " " && e.key !== "Spacebar" && e.key !== "Enter" && e.keyCode !== 13 && e.keyCode !== 32 ? !1 : t === void 0 ? !sr(e.target) : !t;
4930
4849
  //#endregion
4931
4850
  //#region src/functions/isFloat.ts
4932
- function ur(e) {
4851
+ function lr(e) {
4933
4852
  switch (typeof e) {
4934
4853
  case "number": return !0;
4935
4854
  case "string": return /^-?\d+(\.\d+)?$/.test(e);
@@ -4938,24 +4857,24 @@ function ur(e) {
4938
4857
  }
4939
4858
  //#endregion
4940
4859
  //#region src/functions/isIntegerBetween.ts
4941
- function dr(e, t) {
4860
+ function ur(e, t) {
4942
4861
  let n = Math.floor(t);
4943
4862
  return e >= n && e < n + 1;
4944
4863
  }
4945
4864
  //#endregion
4946
4865
  //#region src/functions/isMetaKey.ts
4947
- var fr = (e) => !!(e.metaKey || e.altKey || e.ctrlKey);
4866
+ var dr = (e) => !!(e.metaKey || e.altKey || e.ctrlKey);
4948
4867
  //#endregion
4949
4868
  //#region src/functions/isSelectedByList.ts
4950
- function pr(e, t) {
4951
- return Array.isArray(e) ? e.every((e) => ae(e, t)) : ae(e, t);
4869
+ function fr(e, t) {
4870
+ return Array.isArray(e) ? e.every((e) => S(e, t)) : S(e, t);
4952
4871
  }
4953
4872
  //#endregion
4954
4873
  //#region src/functions/isTab.ts
4955
- var mr = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4874
+ var pr = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4956
4875
  //#endregion
4957
4876
  //#region src/functions/removeCommonPrefix.ts
4958
- function hr(e, t) {
4877
+ function mr(e, t) {
4959
4878
  if (e.startsWith(t)) return e.slice(t.length).trim();
4960
4879
  let n = 0;
4961
4880
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -4963,52 +4882,43 @@ function hr(e, t) {
4963
4882
  }
4964
4883
  //#endregion
4965
4884
  //#region src/functions/replaceComponentName.ts
4966
- var gr = (e, t, n) => {
4967
- var r;
4968
- return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
4969
- };
4885
+ var hr = (e, t, n) => e?.replace(RegExp(`<${t}`, "ig"), `<${n}`)?.replace(RegExp(`</${t}`, "ig"), `</${n}`)?.trim();
4970
4886
  //#endregion
4971
4887
  //#region src/functions/uniqueArray.ts
4972
- function _r(e) {
4888
+ function gr(e) {
4973
4889
  return [...new Set(e)];
4974
4890
  }
4975
4891
  //#endregion
4976
4892
  //#region src/functions/replaceRecursive.ts
4977
- function $(e, t, r = !0) {
4893
+ function $(e, n, i = !0) {
4978
4894
  let a = Z(e);
4979
- return n(e) && n(t) && i(t, (t, i) => {
4980
- let o = e == null ? void 0 : e[i];
4981
- n(o) && n(t) ? r && Array.isArray(o) && Array.isArray(t) ? a[i] = Z(_r([...o, ...t])) : a[i] = $(Array.isArray(o) ? { ...o } : o, t, r) : a[i] = n(t) ? Z(t) : t;
4895
+ return t(e) && t(n) && r(n, (n, r) => {
4896
+ let o = e?.[r];
4897
+ t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(gr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4982
4898
  }), a;
4983
4899
  }
4984
4900
  //#endregion
4985
4901
  //#region src/functions/replaceTemplate.ts
4986
- function vr(e, t) {
4902
+ function _r(e, t) {
4987
4903
  let n = e;
4988
- return i(t, (e, t) => {
4989
- n = n.replace(Ht(`[${t}]`), h(e));
4904
+ return r(t, (e, t) => {
4905
+ n = n.replace(X(`[${t}]`), m(e));
4990
4906
  }), n;
4991
4907
  }
4992
4908
  //#endregion
4993
4909
  //#region src/functions/resizeImage.ts
4994
- async function yr(e, t = 1280, n) {
4995
- let r = Mn(e);
4996
- if (!c() || !r || t <= 0) return r;
4997
- if (typeof e != "string" && e.complete && e.naturalWidth) {
4998
- var i;
4999
- return (i = Q(e, t, "auto", n)) == null ? r : i;
5000
- }
5001
- return new Promise((e) => {
4910
+ async function vr(e, t = 1280, n) {
4911
+ let r = jn(e);
4912
+ return !s() || !r || t <= 0 ? r : typeof e != "string" && e.complete && e.naturalWidth ? Q(e, t, "auto", n) ?? r : new Promise((e) => {
5002
4913
  let i = new Image();
5003
4914
  i.onerror = () => e(r), i.onload = () => {
5004
- var a;
5005
- e((a = Q(i, t, "auto", n)) == null ? r : a);
4915
+ e(Q(i, t, "auto", n) ?? r);
5006
4916
  }, i.src = r;
5007
4917
  });
5008
4918
  }
5009
4919
  //#endregion
5010
4920
  //#region src/functions/secondToTime.ts
5011
- function br(e, t) {
4921
+ function yr(e, t) {
5012
4922
  let n = x(e);
5013
4923
  if (n > 0) {
5014
4924
  let e = String(Math.floor(n / 60)).padStart(2, "0"), r = String(n % 60).padStart(2, "0");
@@ -5018,81 +4928,80 @@ function br(e, t) {
5018
4928
  }
5019
4929
  //#endregion
5020
4930
  //#region src/functions/setValues.ts
5021
- function xr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, notEmpty: o = !1 }) {
4931
+ function br(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
5022
4932
  if (n) {
5023
- if (a(e)) {
4933
+ if (i(e)) {
5024
4934
  let n = e.indexOf(t), i = [...e];
5025
4935
  return n === -1 ? (!r || e.length < r) && i.push(t) : (!o || i.length > 1) && i.splice(n, 1), i;
5026
4936
  }
5027
4937
  return e === t ? [] : e ? [e, t] : [t];
5028
4938
  }
5029
- return i || e !== t ? t : e;
4939
+ return a || e !== t ? t : e;
5030
4940
  }
5031
4941
  //#endregion
5032
4942
  //#region src/functions/sortList.ts
5033
- function Sr(e, t, n) {
5034
- var r;
4943
+ function xr(e, t, n) {
5035
4944
  if (t.length === 0 || e.length < 2) return e;
5036
- let i = ((r = Intl) == null ? void 0 : r.Collator) === void 0 ? void 0 : new Intl.Collator(void 0, {
4945
+ let r = Intl?.Collator === void 0 ? void 0 : new Intl.Collator(void 0, {
5037
4946
  numeric: !0,
5038
4947
  sensitivity: "base"
5039
4948
  });
5040
- return [...e].sort((e, r) => {
4949
+ return [...e].sort((e, i) => {
5041
4950
  for (let { column: a, dir: o } of t) {
5042
4951
  if (!a) continue;
5043
4952
  if (n) {
5044
- let t = n(e, r, a, o);
4953
+ let t = n(e, i, a, o);
5045
4954
  if (t !== 0) return t;
5046
4955
  continue;
5047
4956
  }
5048
- let t = B(e, a), s = B(r, a);
4957
+ let t = z(e, a), s = z(i, a);
5049
4958
  if (t === s) continue;
5050
- if (l(t)) return 1;
5051
- if (l(s)) return -1;
5052
- let c = o === "desc" ? -1 : 1;
5053
- if (_(t) && _(s)) return (x(t) - x(s)) * c;
5054
- if (typeof t == "boolean" && typeof s == "boolean") return (Number(t) - Number(s)) * c;
4959
+ if (c(t)) return 1;
4960
+ if (c(s)) return -1;
4961
+ let l = o === "desc" ? -1 : 1;
4962
+ if (g(t) && g(s)) return (x(t) - x(s)) * l;
4963
+ if (typeof t == "boolean" && typeof s == "boolean") return (Number(t) - Number(s)) * l;
5055
4964
  let u = String(t), d = String(s);
5056
- return (i ? i.compare(u, d) : u.localeCompare(d)) * c;
4965
+ return (r ? r.compare(u, d) : u.localeCompare(d)) * l;
5057
4966
  }
5058
4967
  return 0;
5059
4968
  });
5060
4969
  }
5061
4970
  //#endregion
5062
4971
  //#region src/functions/splice.ts
5063
- function Cr(e, t, r) {
5064
- if (n(e) && n(t)) {
5065
- if (r) {
4972
+ function Sr(e, n, i) {
4973
+ if (t(e) && t(n)) {
4974
+ if (i) {
5066
4975
  let a = {}, o = !1;
5067
- return i(e, (e, i) => {
5068
- !o && (r === i || r === e) ? (o = !0, a = $(a, t)) : o ? a = $(a, { [i]: e }) : a[i] = n(e) ? Z(e) : e;
5069
- }), o ? a : $(e, t);
4976
+ return r(e, (e, r) => {
4977
+ !o && (i === r || i === e) ? (o = !0, a = $(a, n)) : o ? a = $(a, { [r]: e }) : a[r] = t(e) ? Z(e) : e;
4978
+ }), o ? a : $(e, n);
5070
4979
  }
5071
- if (n(t)) return $(e, t);
4980
+ if (t(n)) return $(e, n);
5072
4981
  }
5073
4982
  return Z(e);
5074
4983
  }
5075
4984
  //#endregion
5076
4985
  //#region src/functions/toCamelCaseFirst.ts
5077
- function wr(e) {
4986
+ function Cr(e) {
5078
4987
  return rt(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
5079
4988
  }
5080
4989
  //#endregion
5081
4990
  //#region src/functions/toKebabCase.ts
5082
- function Tr(e) {
4991
+ function wr(e) {
5083
4992
  return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/^[A-Z]/, (e) => e.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/[A-Z]/g, (e) => e.toLowerCase());
5084
4993
  }
5085
4994
  //#endregion
5086
4995
  //#region src/functions/toNumberByMax.ts
5087
- function Er(e, t, n, r) {
4996
+ function Tr(e, t, n, r) {
5088
4997
  let i = x(e), a = x(t);
5089
- return t && a < i ? `${Dr(a, n, r)}+` : Dr(i, n, r);
4998
+ return t && a < i ? `${Er(a, n, r)}+` : Er(i, n, r);
5090
4999
  }
5091
- var Dr = (e, t, n) => t ? new L(n).number(e) : e;
5000
+ var Er = (e, t, n) => t ? new I(n).number(e) : e;
5092
5001
  //#endregion
5093
5002
  //#region src/functions/toNumberPositive.ts
5094
- function Or(e, t = 0) {
5095
- if (u(e)) {
5003
+ function Dr(e, t = 0) {
5004
+ if (l(e)) {
5096
5005
  let t = Number(e);
5097
5006
  if (Number.isFinite(t) && t > 0) return t;
5098
5007
  }
@@ -5100,35 +5009,29 @@ function Or(e, t = 0) {
5100
5009
  }
5101
5010
  //#endregion
5102
5011
  //#region src/functions/toPercent.ts
5103
- function kr(e, t) {
5012
+ function Or(e, t) {
5104
5013
  return e === 0 ? t : 1 / e * t;
5105
5014
  }
5106
5015
  //#endregion
5107
5016
  //#region src/functions/toPercentBy100.ts
5108
- function Ar(e, t) {
5109
- return kr(e, t) * 100;
5017
+ function kr(e, t) {
5018
+ return Or(e, t) * 100;
5110
5019
  }
5111
5020
  //#endregion
5112
5021
  //#region src/functions/uint8ArrayToBase64.ts
5113
- function jr(e) {
5022
+ function Ar(e) {
5114
5023
  let t = "";
5115
5024
  for (let n of e) t += String.fromCharCode(n);
5116
- if (c()) return window.btoa(t);
5117
- if (globalThis && globalThis.Buffer) {
5118
- var n;
5119
- return (n = globalThis) == null ? void 0 : n.Buffer.from(e).toString("base64");
5120
- }
5121
- return "";
5025
+ return s() ? window.btoa(t) : globalThis && globalThis.Buffer ? globalThis?.Buffer.from(e).toString("base64") : "";
5122
5026
  }
5123
5027
  //#endregion
5124
5028
  //#region src/functions/writeClipboardData.ts
5125
- async function Mr(e) {
5126
- if (c()) try {
5029
+ async function jr(e) {
5030
+ if (s()) try {
5127
5031
  await navigator.clipboard.writeText(e);
5128
- } catch (n) {
5129
- var t;
5130
- (t = document) == null || t.execCommand("copy", !1, e);
5032
+ } catch {
5033
+ document?.execCommand("copy", !1, e);
5131
5034
  }
5132
5035
  }
5133
5036
  //#endregion
5134
- export { F as Api, M as ApiCache, Re as ApiDataReturn, ze as ApiDefault, He as ApiError, Be as ApiErrorItem, Ve as ApiErrorStorage, Ue as ApiHeaders, Ge as ApiHydration, Ye as ApiInstance, N as ApiMethodItem, Ke as ApiPreparation, Je as ApiResponse, Ie as ApiStatus, Xe as BroadcastMessage, $e as Cache, Qe as CacheItem, et as CacheStatic, we as Cookie, xe as CookieBlock, be as CookieBlockInstance, D as CookieStorage, E as DataStorage, nt as Datetime, C as ErrorCenter, ce as ErrorCenterHandler, le as ErrorCenterInstance, je as EventItem, it as Formatters, V as FormattersType, at as GEO_FLAG_ICON_NAME, O as Geo, ot as GeoFlag, De as GeoInstance, L as GeoIntl, st as GeoPhone, lt as GeoUnit, ut as Global, pt as Hash, ft as HashInstance, gt as Icons, j as Loading, Ne as LoadingInstance, kt as Meta, G as MetaManager, Dt as MetaOg, wt as MetaOpenGraphAge, St as MetaOpenGraphAvailability, Ct as MetaOpenGraphCondition, Tt as MetaOpenGraphGender, q as MetaOpenGraphTag, xt as MetaOpenGraphType, bt as MetaRobots, At as MetaStatic, K as MetaTag, Ot as MetaTwitter, Et as MetaTwitterCard, J as MetaTwitterTag, Mt as Query, jt as QueryInstance, Nt as ResumableTimer, Pt as ScrollbarWidth, qt as SearchList, Bt as SearchListData, Vt as SearchListItem, Gt as SearchListMatcher, Kt as SearchListOptions, T as ServerStorage, Yt as StorageCallback, en as TRANSLATE_GLOBAL_PREFIX, tn as TRANSLATE_TIME_OUT, an as Translate, nn as TranslateFile, rn as TranslateInstance, Te as UI_GEO_COOKIE_KEY, dt as UrlInstanceAbstract, Y as UrlItem, zt as addTagHighlightMatch, S as anyToString, Qt as applyTemplate, on as arrFill, dn as blobToBase64, fn as capitalize, Z as copyObject, pn as copyObjectLite, U as createElement, mn as domContentLoaded, hn as domQuerySelector, gn as domQuerySelectorAll, W as encodeAttribute, fe as encodeLiteAttribute, yn as ensureMaxSize, X as escapeExp, bn as eventStopPropagation, h as executeFunction, P as executePromise, i as forEach, xn as frame, Sn as getArrayHighlightMatch, Cn as getAttributes, wn as getClipboardData, tt as getColumn, Tn as getCurrentDate, En as getCurrentTime, k as getElement, kn as getElementId, _n as getElementImage, _t as getElementItem, ke as getElementOrWindow, pe as getElementSafeScript, Ut as getExactSearchExp, Ht as getExp, jn as getFirst, me as getHydrationData, Mn as getImageSrc, B as getItemByPath, Nn as getKey, Pn as getLast, Fn as getLength, In as getLengthOfAllArray, Ln as getMaxLengthAllArray, Rn as getMinLengthAllArray, Vn as getMouseClient, zn as getMouseClientX, Bn as getMouseClientY, Hn as getObjectByKeys, Un as getObjectNoUndefined, Wn as getObjectOrNone, Gn as getOnlyText, Kn as getRandomItem, Jn as getRandomText, s as getRequestString, Wt as getSearchExp, Ft as getSeparatingSearchExp, Yn as getStepPercent, Xn as getStepValue, Qn as goScroll, $n as goScrollSmooth, er as goScrollTo, nr as handleShare, rr as inArray, An as initGetElementId, ir as initScrollbarOffset, ar as intersectKey, $t as isApiSuccess, a as isArray, or as isDifferent, oe as isDomData, c as isDomRuntime, sr as isElementVisible, lr as isEnter, u as isFilled, ur as isFloat, m as isFunction, Ae as isInDom, cr as isInput, dr as isIntegerBetween, fr as isMetaKey, l as isNull, _ as isNumber, n as isObject, r as isObjectNotArray, d as isOnLine, ae as isSelected, pr as isSelectedByList, tr as isShare, f as isString, mr as isTab, Oe as isWindow, p as random, hr as removeCommonPrefix, gr as replaceComponentName, $ as replaceRecursive, vr as replaceTemplate, yr as resizeImage, Q as resizeImageByMax, br as secondToTime, vt as setElementItem, xr as setValues, ee as sleep, Sr as sortList, Cr as splice, qn as strFill, se as strSplit, A as toArray, rt as toCamelCase, wr as toCamelCaseFirst, I as toDate, Tr as toKebabCase, x as toNumber, Er as toNumberByMax, Or as toNumberPositive, kr as toPercent, Ar as toPercentBy100, o as toString, w as transformation, jr as uint8ArrayToBase64, _r as uniqueArray, Mr as writeClipboardData };
5037
+ export { P as Api, Fe as ApiCache, Re as ApiDataReturn, ze as ApiDefault, He as ApiError, Be as ApiErrorItem, Ve as ApiErrorStorage, Ue as ApiHeaders, Ge as ApiHydration, Ye as ApiInstance, M as ApiMethodItem, Ke as ApiPreparation, Je as ApiResponse, Ie as ApiStatus, Xe as BroadcastMessage, $e as Cache, Qe as CacheItem, et as CacheStatic, Ce as Cookie, ye as CookieBlock, ve as CookieBlockInstance, xe as CookieStorage, D as DataStorage, nt as Datetime, w as ErrorCenter, oe as ErrorCenterHandler, se as ErrorCenterInstance, Ae as EventItem, it as Formatters, B as FormattersType, at as GEO_FLAG_ICON_NAME, O as Geo, ot as GeoFlag, Ee as GeoInstance, I as GeoIntl, st as GeoPhone, lt as GeoUnit, ut as Global, pt as Hash, ft as HashInstance, gt as Icons, j as Loading, Me as LoadingInstance, kt as Meta, W as MetaManager, Dt as MetaOg, wt as MetaOpenGraphAge, St as MetaOpenGraphAvailability, Ct as MetaOpenGraphCondition, Tt as MetaOpenGraphGender, K as MetaOpenGraphTag, xt as MetaOpenGraphType, bt as MetaRobots, At as MetaStatic, G as MetaTag, Ot as MetaTwitter, Et as MetaTwitterCard, q as MetaTwitterTag, Mt as Query, jt as QueryInstance, Nt as ResumableTimer, Pt as ScrollbarWidth, Kt as SearchList, Bt as SearchListData, Vt as SearchListItem, Wt as SearchListMatcher, Gt as SearchListOptions, E as ServerStorage, Jt as StorageCallback, $t as TRANSLATE_GLOBAL_PREFIX, en as TRANSLATE_TIME_OUT, rn as Translate, tn as TranslateFile, nn as TranslateInstance, we as UI_GEO_COOKIE_KEY, dt as UrlInstanceAbstract, J as UrlItem, zt as addTagHighlightMatch, C as anyToString, Zt as applyTemplate, an as arrFill, un as blobToBase64, dn as capitalize, Z as copyObject, fn as copyObjectLite, H as createElement, pn as domContentLoaded, mn as domQuerySelector, hn as domQuerySelectorAll, U as encodeAttribute, ue as encodeLiteAttribute, vn as ensureMaxSize, Y as escapeExp, yn as eventStopPropagation, m as executeFunction, N as executePromise, r as forEach, bn as frame, xn as getArrayHighlightMatch, Sn as getAttributes, Cn as getClipboardData, tt as getColumn, wn as getCurrentDate, Tn as getCurrentTime, k as getElement, On as getElementId, gn as getElementImage, _t as getElementItem, Oe as getElementOrWindow, de as getElementSafeScript, Ht as getExactSearchExp, X as getExp, An as getFirst, fe as getHydrationData, jn as getImageSrc, z as getItemByPath, Mn as getKey, Nn as getLast, Pn as getLength, Fn as getLengthOfAllArray, In as getMaxLengthAllArray, Ln as getMinLengthAllArray, Bn as getMouseClient, Rn as getMouseClientX, zn as getMouseClientY, Vn as getObjectByKeys, Hn as getObjectNoUndefined, Un as getObjectOrNone, Wn as getOnlyText, Gn as getRandomItem, qn as getRandomText, o as getRequestString, Ut as getSearchExp, Ft as getSeparatingSearchExp, Jn as getStepPercent, Yn as getStepValue, Zn as goScroll, Qn as goScrollSmooth, $n as goScrollTo, tr as handleShare, nr as inArray, kn as initGetElementId, rr as initScrollbarOffset, ir as intersectKey, Qt as isApiSuccess, i as isArray, ar as isDifferent, ie as isDomData, s as isDomRuntime, or as isElementVisible, cr as isEnter, l as isFilled, lr as isFloat, p as isFunction, ke as isInDom, sr as isInput, ur as isIntegerBetween, dr as isMetaKey, c as isNull, g as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, S as isSelected, fr as isSelectedByList, er as isShare, d as isString, pr as isTab, De as isWindow, f as random, mr as removeCommonPrefix, hr as replaceComponentName, $ as replaceRecursive, _r as replaceTemplate, vr as resizeImage, Q as resizeImageByMax, yr as secondToTime, vt as setElementItem, br as setValues, ee as sleep, xr as sortList, Sr as splice, Kn as strFill, ae as strSplit, A as toArray, rt as toCamelCase, Cr as toCamelCaseFirst, F as toDate, wr as toKebabCase, x as toNumber, Tr as toNumberByMax, Dr as toNumberPositive, Or as toPercent, kr as toPercentBy100, a as toString, T as transformation, Ar as uint8ArrayToBase64, gr as uniqueArray, jr as writeClipboardData };