@dxtmisha/functional-basic 1.3.15 → 1.4.0

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
@@ -450,7 +450,7 @@ var le = class {
450
450
  w(T, "item", new ue(de));
451
451
  //#endregion
452
452
  //#region src/functions/transformation.ts
453
- function fe(e, t = !1) {
453
+ function E(e, t = !1) {
454
454
  if (typeof e == "string") {
455
455
  let r = e.trim();
456
456
  switch (r) {
@@ -478,25 +478,25 @@ function fe(e, t = !1) {
478
478
  }
479
479
  //#endregion
480
480
  //#region src/functions/encodeLiteAttribute.ts
481
- var pe = {
481
+ var fe = {
482
482
  "<": "&lt;",
483
483
  ">": "&gt;",
484
484
  "&": "&amp;"
485
485
  };
486
- function me(e) {
486
+ function pe(e) {
487
487
  return String(e).replace(/[<>&]/g, (e) => {
488
488
  var t;
489
- return (t = pe == null ? void 0 : pe[e]) == null ? e : t;
489
+ return (t = fe == null ? void 0 : fe[e]) == null ? e : t;
490
490
  });
491
491
  }
492
492
  //#endregion
493
493
  //#region src/functions/getElementSafeScript.ts
494
- function he(e, t) {
494
+ function me(e, t) {
495
495
  return `<script id="${e.replace(/"/g, "&quot;")}" type="application/json">${JSON.stringify(t).replace(/<\/(script)>/gi, "<\\/$1>")}<\/script>`;
496
496
  }
497
497
  //#endregion
498
498
  //#region src/functions/getHydrationData.ts
499
- function ge(e, t, n = !0) {
499
+ function he(e, t, n = !0) {
500
500
  if (typeof document < "u") {
501
501
  let t = document.getElementById(e);
502
502
  if (t) try {
@@ -517,7 +517,7 @@ function ge(e, t, n = !0) {
517
517
  }
518
518
  //#endregion
519
519
  //#region src/classes/ServerStorage.ts
520
- var _e = "__ui:server-storage__", ve = "__ui:server:storage:id__", E = class {
520
+ var ge = "__ui:server-storage__", _e = "__ui:server:storage:id__", D = class {
521
521
  static init(e) {
522
522
  return this.listener || (this.listener = e), this;
523
523
  }
@@ -547,7 +547,7 @@ var _e = "__ui:server-storage__", ve = "__ui:server:storage:id__", E = class {
547
547
  e in t && delete t[e];
548
548
  }
549
549
  static toString() {
550
- return he(ve, this.getDataForHydration());
550
+ return me(_e, this.getDataForHydration());
551
551
  }
552
552
  static getStorage(e = !0, t) {
553
553
  var n;
@@ -561,11 +561,11 @@ var _e = "__ui:server-storage__", ve = "__ui:server:storage:id__", E = class {
561
561
  details: { status: t }
562
562
  }), e && !this.storage && (this.storage = {}), (i = this.storage) == null ? {} : i;
563
563
  }
564
- return _e in r || (r[_e] = {}), r[_e];
564
+ return ge in r || (r[ge] = {}), r[ge];
565
565
  }
566
566
  static getStorageDom() {
567
567
  if (!this.storage) {
568
- let e = ge(ve, {});
568
+ let e = he(_e, {});
569
569
  this.storage = {}, r(e, (e, t) => {
570
570
  this.storage[t] = {
571
571
  value: e,
@@ -582,16 +582,16 @@ var _e = "__ui:server-storage__", ve = "__ui:server:storage:id__", E = class {
582
582
  }), t;
583
583
  }
584
584
  };
585
- w(E, "storage", void 0), w(E, "listener", void 0), w(E, "hideError", void 0);
585
+ w(D, "storage", void 0), w(D, "listener", void 0), w(D, "hideError", void 0);
586
586
  //#endregion
587
587
  //#region src/classes/DataStorage.ts
588
- var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D = class {
588
+ var ve = "ui-storage", ye = () => D.get("__ui:data-storage__", () => ({})), O = class {
589
589
  static setPrefix(e) {
590
- ye = e;
590
+ ve = e;
591
591
  }
592
592
  constructor(e, t = !1, n = T.getItem()) {
593
593
  w(this, "name", void 0), w(this, "isSession", void 0), w(this, "errorCenter", void 0), w(this, "value", void 0), w(this, "age", void 0), this.name = e, this.isSession = t, this.errorCenter = n;
594
- let r = `${t ? "session" : "storage"}#${e}`, i = be();
594
+ let r = `${t ? "session" : "storage"}#${e}`, i = ye();
595
595
  if (r in i) return i[r];
596
596
  this.make(), i[r] = this;
597
597
  }
@@ -603,7 +603,7 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
603
603
  if (this.value = m(e), this.age = Date.now(), this.value === void 0) this.remove();
604
604
  else {
605
605
  var t;
606
- (t = this.getMethod()) == null || t.setItem(this.getIndex(), me(JSON.stringify({
606
+ (t = this.getMethod()) == null || t.setItem(this.getIndex(), pe(JSON.stringify({
607
607
  value: this.value,
608
608
  age: this.age
609
609
  })));
@@ -628,7 +628,7 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
628
628
  }
629
629
  }
630
630
  getIndex() {
631
- return `${ye}__${this.name}`;
631
+ return `${ve}__${this.name}`;
632
632
  }
633
633
  getValue() {
634
634
  var e, t;
@@ -647,9 +647,9 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
647
647
  let e = this.getValue();
648
648
  return e ? (this.value = e.value, this.age = e.age) : (this.value = void 0, this.age = void 0), this;
649
649
  }
650
- }, xe = "__ui:cookie-block__", Se = class {
650
+ }, be = "__ui:cookie-block__", xe = class {
651
651
  constructor() {
652
- w(this, "storage", new D(xe));
652
+ w(this, "storage", new O(be));
653
653
  }
654
654
  get() {
655
655
  var e;
@@ -658,9 +658,9 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
658
658
  set(e) {
659
659
  this.storage.set(e);
660
660
  }
661
- }, Ce = class {
661
+ }, Se = class {
662
662
  static getItem() {
663
- return E.get("__ui:cookie-block__", () => new Se());
663
+ return D.get("__ui:cookie-block__", () => new xe());
664
664
  }
665
665
  static get() {
666
666
  return this.getItem().get();
@@ -668,7 +668,7 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
668
668
  static set(e) {
669
669
  this.getItem().set(e);
670
670
  }
671
- }, we = "__ui:cookie-storage__", O = class {
671
+ }, Ce = "__ui:cookie-storage__", k = class {
672
672
  static init(e, t, n) {
673
673
  this.getListener = e, this.getListenerRaw = t, this.setListener = n;
674
674
  }
@@ -678,11 +678,11 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
678
678
  static get(e, t) {
679
679
  var n, r;
680
680
  let i = (n = (r = this.getListener) == null ? void 0 : r.call(this, e)) == null ? this.initItems()[e] : n;
681
- return i === void 0 && t !== void 0 ? this.set(e, t) : fe(i);
681
+ return i === void 0 && t !== void 0 ? this.set(e, t) : E(i);
682
682
  }
683
683
  static set(e, t, n) {
684
684
  let r = m(t);
685
- if (Ce.get()) return r;
685
+ if (Se.get()) return r;
686
686
  let i = S(r, !1);
687
687
  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;
688
688
  }
@@ -690,7 +690,7 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
690
690
  this.set(e, "", { age: -1 });
691
691
  }
692
692
  static update() {
693
- s() && (E.remove(we), this.initItems());
693
+ s() && (D.remove(Ce), this.initItems());
694
694
  }
695
695
  static format(e, t, n) {
696
696
  return [
@@ -717,7 +717,7 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
717
717
  return t;
718
718
  }
719
719
  static initItems() {
720
- return E.get(we, () => {
720
+ return D.get(Ce, () => {
721
721
  var e;
722
722
  if (this.hasDom()) return this.parse(document.cookie);
723
723
  let t = (e = this.getListenerRaw) == null ? void 0 : e.call(this);
@@ -749,19 +749,19 @@ var ye = "ui-storage", be = () => E.get("__ui:data-storage__", () => ({})), D =
749
749
  return e === void 0 ? [] : Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => `${e}=${S(t)}`);
750
750
  }
751
751
  };
752
- w(O, "getListener", void 0), w(O, "getListenerRaw", void 0), w(O, "setListener", void 0);
752
+ w(k, "getListener", void 0), w(k, "getListenerRaw", void 0), w(k, "setListener", void 0);
753
753
  //#endregion
754
754
  //#region src/classes/Cookie.ts
755
- var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
755
+ var we = () => D.get("__ui:cookie-items__", () => ({})), Te = class e {
756
756
  static getInstance(t) {
757
757
  var n, r;
758
- return (n = (r = Te()) == null ? void 0 : r[t]) == null ? new e(t) : n;
758
+ return (n = (r = we()) == null ? void 0 : r[t]) == null ? new e(t) : n;
759
759
  }
760
760
  constructor(e) {
761
761
  w(this, "name", void 0), w(this, "value", void 0), w(this, "options", {}), this.name = e;
762
- let t = Te();
762
+ let t = we();
763
763
  if (e in t) return t[e];
764
- this.value = O.get(this.name), t[e] = this;
764
+ this.value = k.get(this.name), t[e] = this;
765
765
  }
766
766
  get(e, t) {
767
767
  return this.value === void 0 && e && this.set(e, t), this.value;
@@ -773,11 +773,11 @@ var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
773
773
  this.set("");
774
774
  }
775
775
  update() {
776
- O.set(this.name, this.value, this.options);
776
+ k.set(this.name, this.value, this.options);
777
777
  }
778
- }, De = "ui-geo-code", Oe = "__ui:geo-code__", ke = class {
778
+ }, Ee = "ui-geo-code", De = "__ui:geo-code__", Oe = class {
779
779
  constructor() {
780
- w(this, "storage", new D(Oe)), w(this, "location", void 0), w(this, "valueDefault", void 0), w(this, "item", void 0), w(this, "language", void 0), w(this, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
780
+ w(this, "storage", new O(De)), w(this, "location", void 0), w(this, "valueDefault", void 0), w(this, "item", void 0), w(this, "language", void 0), w(this, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
781
781
  }
782
782
  get() {
783
783
  return this.item;
@@ -857,7 +857,7 @@ var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
857
857
  this.valueDefault = e, this.location = this.findLocation(), this.item = this.getByCode(this.location), this.language = this.findLanguage(this.location);
858
858
  }
859
859
  getCookie() {
860
- return Ee.getInstance(De);
860
+ return Te.getInstance(Ee);
861
861
  }
862
862
  findLocation() {
863
863
  return this.getCookie().get() || this.findLocationDom() || m(this.valueDefault) || "en-GB";
@@ -886,9 +886,9 @@ var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
886
886
  locationLanguage: n
887
887
  };
888
888
  }
889
- }, k = class {
889
+ }, A = class {
890
890
  static getObject() {
891
- return E.get("__ui:geo-instance__", () => new ke());
891
+ return D.get("__ui:geo-instance__", () => new Oe());
892
892
  }
893
893
  static get() {
894
894
  return this.getObject().get();
@@ -956,14 +956,14 @@ var Te = () => E.get("__ui:cookie-items__", () => ({})), Ee = class e {
956
956
  };
957
957
  //#endregion
958
958
  //#region src/functions/isWindow.ts
959
- function Ae(e) {
959
+ function ke(e) {
960
960
  return s() && e === window;
961
961
  }
962
962
  //#endregion
963
963
  //#region src/functions/getElement.ts
964
- function A(e) {
964
+ function j(e) {
965
965
  if (!s()) return d(e) ? void 0 : e;
966
- if (Ae(e)) return document.body;
966
+ if (ke(e)) return document.body;
967
967
  if (d(e)) {
968
968
  var t;
969
969
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -972,30 +972,30 @@ function A(e) {
972
972
  }
973
973
  //#endregion
974
974
  //#region src/functions/getElementOrWindow.ts
975
- function je(e) {
976
- return Ae(e) ? e : A(e);
975
+ function Ae(e) {
976
+ return ke(e) ? e : j(e);
977
977
  }
978
978
  //#endregion
979
979
  //#region src/functions/isInDom.ts
980
- function Me(e) {
980
+ function je(e) {
981
981
  var t;
982
- return (e == null ? void 0 : e.isConnected) || !!((t = A(e)) != null && t.closest("html"));
982
+ return (e == null ? void 0 : e.isConnected) || !!((t = j(e)) != null && t.closest("html"));
983
983
  }
984
984
  //#endregion
985
985
  //#region src/functions/toArray.ts
986
- function j(e) {
986
+ function M(e) {
987
987
  return Array.isArray(e) ? e : [e];
988
988
  }
989
989
  //#endregion
990
990
  //#region src/classes/EventItem.ts
991
- var Ne = class {
991
+ var Me = class {
992
992
  constructor(e, n = ["click"], r, i, a) {
993
993
  w(this, "listener", void 0), w(this, "options", void 0), w(this, "detail", void 0), w(this, "element", void 0), w(this, "elementControl", void 0), w(this, "elementControlEdit", void 0), w(this, "type", void 0), w(this, "listenerRecent", (e) => {
994
- if (Me(this.elementControl)) {
994
+ if (je(this.elementControl)) {
995
995
  var n, r;
996
996
  (n = this.listener) == null || n.call(this.element, e, this.detail), t(this.options) && (r = this.options) != null && r.once && this.stop();
997
997
  } else this.stop();
998
- }), w(this, "activity", !1), w(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = je(e), this.elementControl = A(e), this.type = j(n);
998
+ }), w(this, "activity", !1), w(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = Ae(e), this.elementControl = j(e), this.type = M(n);
999
999
  }
1000
1000
  isActive() {
1001
1001
  return this.activity;
@@ -1004,14 +1004,14 @@ var Ne = class {
1004
1004
  return this.element;
1005
1005
  }
1006
1006
  setElement(e) {
1007
- let t = je(e);
1008
- return this.elementControlEdit || (this.elementControl = A(e)), this.element = t, this.reset(), this;
1007
+ let t = Ae(e);
1008
+ return this.elementControlEdit || (this.elementControl = j(e)), this.element = t, this.reset(), this;
1009
1009
  }
1010
1010
  setElementControl(e) {
1011
- return this.elementControl = A(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = A(this.element)), this;
1011
+ return this.elementControl = j(e), this.elementControlEdit = !c(this.elementControl), this.elementControlEdit || (this.elementControl = j(this.element)), this;
1012
1012
  }
1013
1013
  setType(e) {
1014
- return this.type = j(e), this.reset(), this;
1014
+ return this.type = M(e), this.reset(), this;
1015
1015
  }
1016
1016
  setListener(e) {
1017
1017
  return this.listener = e, this;
@@ -1080,9 +1080,9 @@ var Ne = class {
1080
1080
  }
1081
1081
  return !1;
1082
1082
  }
1083
- }, Pe = "ui-loading", Fe = class {
1084
- constructor(e = Pe) {
1085
- w(this, "eventName", void 0), w(this, "value", 0), w(this, "event", void 0), w(this, "registrationList", []), this.eventName = e, s() && (this.event = new Ne(window, this.eventName));
1083
+ }, Ne = "ui-loading", Pe = class {
1084
+ constructor(e = Ne) {
1085
+ w(this, "eventName", void 0), w(this, "value", 0), w(this, "event", void 0), w(this, "registrationList", []), this.eventName = e, s() && (this.event = new Me(window, this.eventName));
1086
1086
  }
1087
1087
  is() {
1088
1088
  return this.value > 0;
@@ -1098,7 +1098,7 @@ var Ne = class {
1098
1098
  }
1099
1099
  registrationEvent(e, t) {
1100
1100
  if (s()) {
1101
- let n = new Ne(window, this.eventName, e).setElementControl(t).start();
1101
+ let n = new Me(window, this.eventName, e).setElementControl(t).start();
1102
1102
  this.registrationList.push({
1103
1103
  item: n,
1104
1104
  listener: e,
@@ -1113,7 +1113,7 @@ var Ne = class {
1113
1113
  var e;
1114
1114
  (e = this.event) == null || e.dispatch({ loading: this.is() });
1115
1115
  }
1116
- }, M = class {
1116
+ }, N = class {
1117
1117
  static is() {
1118
1118
  return this.getItem().is();
1119
1119
  }
@@ -1121,7 +1121,7 @@ var Ne = class {
1121
1121
  return this.getItem().get();
1122
1122
  }
1123
1123
  static getItem() {
1124
- return E.get("__ui:loading-instance__", () => new Fe());
1124
+ return D.get("__ui:loading-instance__", () => new Pe());
1125
1125
  }
1126
1126
  static show() {
1127
1127
  this.getItem().show();
@@ -1135,7 +1135,7 @@ var Ne = class {
1135
1135
  static unregistrationEvent(e, t) {
1136
1136
  this.getItem().unregistrationEvent(e, t);
1137
1137
  }
1138
- }, Ie, Le = 1440 * 60, N = class {
1138
+ }, Fe, Ie = 1440 * 60, P = class {
1139
1139
  static init(e, t, n, r) {
1140
1140
  this.getListener = e, this.setListener = t, this.removeListener = n, r && (this.cacheStepAgeClearOld = r, this.stepAgeClearOld = r);
1141
1141
  }
@@ -1157,7 +1157,7 @@ var Ne = class {
1157
1157
  let t = this.generateKey(e);
1158
1158
  return await this.get(t);
1159
1159
  }
1160
- static async set(e, t, n = Le) {
1160
+ static async set(e, t, n = Ie) {
1161
1161
  let r = {
1162
1162
  value: t,
1163
1163
  age: n,
@@ -1220,10 +1220,10 @@ var Ne = class {
1220
1220
  }
1221
1221
  }
1222
1222
  };
1223
- Ie = N, w(N, "items", void 0), w(N, "getListener", void 0), w(N, "setListener", void 0), w(N, "removeListener", void 0), w(N, "cacheStepAgeClearOld", 16384), w(N, "stepAgeClearOld", Ie.cacheStepAgeClearOld);
1223
+ Fe = P, w(P, "items", void 0), w(P, "getListener", void 0), w(P, "setListener", void 0), w(P, "removeListener", void 0), w(P, "cacheStepAgeClearOld", 16384), w(P, "stepAgeClearOld", Fe.cacheStepAgeClearOld);
1224
1224
  //#endregion
1225
1225
  //#region src/classes/ApiStatus.ts
1226
- var P = class {
1226
+ var Le = class {
1227
1227
  constructor() {
1228
1228
  w(this, "value", void 0);
1229
1229
  }
@@ -1404,7 +1404,7 @@ var P = class {
1404
1404
  };
1405
1405
  }
1406
1406
  add(e, t, n) {
1407
- return j(e).forEach((e) => {
1407
+ return M(e).forEach((e) => {
1408
1408
  let r = e.url || t, i = e.method || n;
1409
1409
  r && i && this.storage.push({
1410
1410
  ...e,
@@ -1441,7 +1441,7 @@ var P = class {
1441
1441
  }
1442
1442
  }, Ue = class {
1443
1443
  static getStorage() {
1444
- return E.get("__ui:api-error-storage__", () => new He());
1444
+ return D.get("__ui:api-error-storage__", () => new He());
1445
1445
  }
1446
1446
  static add(e, t, n) {
1447
1447
  this.getStorage().add(e, t, n);
@@ -1482,10 +1482,10 @@ var P = class {
1482
1482
  });
1483
1483
  }
1484
1484
  toString() {
1485
- return he(Ge, this.list);
1485
+ return me(Ge, this.list);
1486
1486
  }
1487
1487
  getListByClient() {
1488
- return ge(Ge, []);
1488
+ return he(Ge, []);
1489
1489
  }
1490
1490
  }, qe = class {
1491
1491
  constructor() {
@@ -1532,7 +1532,7 @@ var Ye = "d-response-loading", Xe = class {
1532
1532
  return this.response.filter((e) => e.isForGlobal !== !0);
1533
1533
  }
1534
1534
  add(e) {
1535
- return this.response.push(...j(e)), this;
1535
+ return this.response.push(...M(e)), this;
1536
1536
  }
1537
1537
  setDevMode(e) {
1538
1538
  return this.devMode = e, this;
@@ -1578,8 +1578,8 @@ var Ye = "d-response-loading", Xe = class {
1578
1578
  fetch(e, t) {
1579
1579
  return this.startResponseLoading(), new Promise((n) => {
1580
1580
  Je(p(e.response) ? e.response(t) : e.response).then((t) => {
1581
- e != null && e.lag ? (M.show(), setTimeout(() => {
1582
- this.stopResponseLoading(), n(t), M.hide();
1581
+ e != null && e.lag ? (N.show(), setTimeout(() => {
1582
+ this.stopResponseLoading(), n(t), N.hide();
1583
1583
  }, f(0, 2e3))) : (this.stopResponseLoading(), n(t));
1584
1584
  });
1585
1585
  });
@@ -1598,7 +1598,7 @@ var Ye = "d-response-loading", Xe = class {
1598
1598
  }, Ze = class {
1599
1599
  constructor(e = "/api/", t = {}) {
1600
1600
  w(this, "url", void 0), w(this, "headers", void 0), w(this, "requestDefault", void 0), w(this, "status", void 0), w(this, "response", void 0), w(this, "preparation", void 0), w(this, "loading", void 0), w(this, "errorCenter", void 0), w(this, "hydration", void 0), w(this, "timeout", 16e3), w(this, "origin", void 0), this.url = e;
1601
- let { headersClass: n = We, requestDefaultClass: r = Be, statusClass: i = P, responseClass: a = Xe, preparationClass: o = qe, loadingClass: s = M.getItem(), errorCenterClass: c = T.getItem(), hydrationClass: l = Ke } = t;
1601
+ let { headersClass: n = We, requestDefaultClass: r = Be, statusClass: i = Le, responseClass: a = Xe, preparationClass: o = qe, loadingClass: s = N.getItem(), errorCenterClass: c = T.getItem(), hydrationClass: l = Ke } = t;
1602
1602
  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.hydration.initResponse(this.response);
1603
1603
  }
1604
1604
  isLocalhost() {
@@ -1617,7 +1617,7 @@ var Ye = "d-response-loading", Xe = class {
1617
1617
  return this.origin && /^\//.test(this.url) ? `${this.origin}${this.url}` : this.url;
1618
1618
  }
1619
1619
  getUrl(e, t = !0) {
1620
- return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", k.getLocation()).replace("{country}", k.getCountry()).replace("{language}", k.getLanguage());
1620
+ return `${t ? this.getOrigin() : ""}${e}`.replace("{locale}", A.getLocation()).replace("{country}", A.getCountry()).replace("{language}", A.getLanguage());
1621
1621
  }
1622
1622
  getBody(e = {}, t = F.get) {
1623
1623
  if (e instanceof FormData) return e;
@@ -1693,9 +1693,9 @@ var Ye = "d-response-loading", Xe = class {
1693
1693
  async fetch(e, t = 0) {
1694
1694
  let { method: n = F.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);
1695
1695
  if (m) return m;
1696
- let h = await N.getByFetch(e);
1696
+ let h = await P.getByFetch(e);
1697
1697
  if (h) return this.hydration.toClient(e, h), h;
1698
- let g = new P(), _, v;
1698
+ let g = new Le(), _, v;
1699
1699
  o || this.loading.show();
1700
1700
  try {
1701
1701
  await this.preparation.make(l, e);
@@ -1713,7 +1713,7 @@ var Ye = "d-response-loading", Xe = class {
1713
1713
  }
1714
1714
  g.setLastResponse(_.getData()), this.status.setLastResponse(_.getData());
1715
1715
  let y = _.getAndStatus(g);
1716
- return o || this.loading.hide(), this.hydration.toClient(e, y), await N.setByFetch(e, y), y;
1716
+ return o || this.loading.hide(), this.hydration.toClient(e, y), await P.setByFetch(e, y), y;
1717
1717
  }
1718
1718
  async makeQuery(e, t) {
1719
1719
  let n = this.requestDefault.request(e.request), { pathFull: r = void 0, method: i = F.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 = {
@@ -1815,7 +1815,7 @@ var Ye = "d-response-loading", Xe = class {
1815
1815
  return this.getItem().isLocalhost();
1816
1816
  }
1817
1817
  static getItem() {
1818
- return E.get("__ui:api-instance__", () => new Ze());
1818
+ return D.get("__ui:api-instance__", () => new Ze());
1819
1819
  }
1820
1820
  static getStatus() {
1821
1821
  return this.getItem().getStatus();
@@ -1918,7 +1918,7 @@ var Ye = "d-response-loading", Xe = class {
1918
1918
  var e;
1919
1919
  return (e = this.channel) == null || e.close(), this.channel = void 0, this;
1920
1920
  }
1921
- }, $e = () => new D("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), et = class {
1921
+ }, $e = () => new O("__ui:broadcast-name__").get(() => `name_${f(1e6, 9999999)}`), et = class {
1922
1922
  constructor(e) {
1923
1923
  w(this, "callback", void 0), w(this, "cache", void 0), w(this, "cacheOld", void 0), w(this, "comparisons", []), this.callback = e;
1924
1924
  }
@@ -1955,7 +1955,7 @@ var Ye = "d-response-loading", Xe = class {
1955
1955
  }
1956
1956
  }, nt = class {
1957
1957
  static getItem() {
1958
- return E.get("__ui:cache-static__", () => new tt());
1958
+ return D.get("__ui:cache-static__", () => new tt());
1959
1959
  }
1960
1960
  static get(e, t, n) {
1961
1961
  return this.getItem().get(e, t, n);
@@ -1971,7 +1971,7 @@ function L(e) {
1971
1971
  if (e instanceof Date) return e;
1972
1972
  if (c(e)) return /* @__PURE__ */ new Date();
1973
1973
  if (typeof e == "number") return new Date(e);
1974
- let u = e, d = k.getTimezoneFormat().trim();
1974
+ let u = e, d = A.getTimezoneFormat().trim();
1975
1975
  e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
1976
1976
  let f = (t = (n = (r = (i = (a = (o = (s = (l = /^\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` : l) == 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;
1977
1977
  return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
@@ -1984,20 +1984,20 @@ function rt(e, t) {
1984
1984
  //#endregion
1985
1985
  //#region src/classes/GeoIntl.ts
1986
1986
  var R = class e {
1987
- static isItem(e = k.getLocation()) {
1987
+ static isItem(e = A.getLocation()) {
1988
1988
  return this.getLocation(e) in B;
1989
1989
  }
1990
- static getLocation(e = k.getLocation()) {
1990
+ static getLocation(e = A.getLocation()) {
1991
1991
  if (e in z) return z[e];
1992
- let t = k.find(e);
1992
+ let t = A.find(e);
1993
1993
  return z[e] = t.standard, t.standard;
1994
1994
  }
1995
- static getInstance(t = k.getLocation()) {
1995
+ static getInstance(t = A.getLocation()) {
1996
1996
  let n = this.getLocation(t);
1997
1997
  return n in B ? B[n] : new e(t);
1998
1998
  }
1999
- constructor(e = k.getLocation(), t = T.getItem()) {
2000
- w(this, "errorCenter", void 0), w(this, "geo", void 0), this.errorCenter = t, this.geo = k.find(e);
1999
+ constructor(e = A.getLocation(), t = T.getItem()) {
2000
+ w(this, "errorCenter", void 0), w(this, "geo", void 0), this.errorCenter = t, this.geo = A.find(e);
2001
2001
  let n = this.getLocation();
2002
2002
  if (n in B) return B[n];
2003
2003
  z[e] = n, B[n] = this;
@@ -2031,7 +2031,7 @@ var R = class e {
2031
2031
  type: "language",
2032
2032
  style: t
2033
2033
  };
2034
- return this.display(k.getByCode(e).language, n);
2034
+ return this.display(A.getByCode(e).language, n);
2035
2035
  }
2036
2036
  countryName(e, t) {
2037
2037
  let n = {
@@ -2325,7 +2325,7 @@ var R = class e {
2325
2325
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
2326
2326
  }
2327
2327
  }, z = {}, B = {}, it = class e {
2328
- constructor(e, t = "date", n = k.getLocation()) {
2328
+ constructor(e, t = "date", n = A.getLocation()) {
2329
2329
  w(this, "type", void 0), w(this, "code", void 0), w(this, "date", void 0), w(this, "hour24", !1), w(this, "watch", void 0), this.type = t, this.code = n, this.date = L(e), isNaN(this.date.getTime()) && T.on({
2330
2330
  group: "intl",
2331
2331
  code: "invalid"
@@ -2616,7 +2616,7 @@ var H = /* @__PURE__ */ function(e) {
2616
2616
  return this.list ? this.isArray() ? this.list.length : 1 : 0;
2617
2617
  }
2618
2618
  getList() {
2619
- return this.list ? j(this.list) : [];
2619
+ return this.list ? M(this.list) : [];
2620
2620
  }
2621
2621
  getOptions() {
2622
2622
  return this.options;
@@ -2673,11 +2673,11 @@ var H = /* @__PURE__ */ function(e) {
2673
2673
  return t && t.unit ? R.getInstance().unit(e, t.unit) : e;
2674
2674
  }
2675
2675
  }, st = "f", ct = class e {
2676
- constructor(e = k.getLocation()) {
2676
+ constructor(e = A.getLocation()) {
2677
2677
  w(this, "code", void 0), this.code = e;
2678
2678
  }
2679
2679
  get(t = this.getCode()) {
2680
- let n = k.find(t);
2680
+ let n = A.find(t);
2681
2681
  if (n) {
2682
2682
  var r;
2683
2683
  let t = this.getCountry(n);
@@ -2693,7 +2693,7 @@ var H = /* @__PURE__ */ function(e) {
2693
2693
  }
2694
2694
  }
2695
2695
  getCode() {
2696
- return this.code || k.getLocation();
2696
+ return this.code || A.getLocation();
2697
2697
  }
2698
2698
  getFlag(e = this.getCode()) {
2699
2699
  var t;
@@ -3032,11 +3032,11 @@ var lt = class {
3032
3032
  return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
3033
3033
  }
3034
3034
  static makeList() {
3035
- let e = r(k.getList(), (e) => {
3035
+ let e = r(A.getList(), (e) => {
3036
3036
  if (e != null && e.phoneMask) return {
3037
3037
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/g, "")) || void 0,
3038
3038
  within: (e == null ? void 0 : e.phoneWithin) || 0,
3039
- mask: j(e.phoneMask),
3039
+ mask: M(e.phoneMask),
3040
3040
  value: e.country
3041
3041
  };
3042
3042
  });
@@ -3080,7 +3080,7 @@ w(lt, "list", void 0), w(lt, "map", void 0);
3080
3080
  //#region src/classes/Global.ts
3081
3081
  var ut = class {
3082
3082
  static getItem() {
3083
- return E.get("__ui:global-instance__", () => ({}));
3083
+ return D.get("__ui:global-instance__", () => ({}));
3084
3084
  }
3085
3085
  static get(e) {
3086
3086
  var t;
@@ -3092,16 +3092,16 @@ var ut = class {
3092
3092
  }
3093
3093
  }, dt = class {
3094
3094
  constructor() {
3095
- w(this, "hash", void 0), w(this, "watch", {}), w(this, "block", !1), w(this, "time", void 0);
3095
+ w(this, "data", void 0), w(this, "watch", {}), w(this, "block", !1), w(this, "time", void 0);
3096
3096
  }
3097
3097
  get(e, t) {
3098
- let n = this.getHash();
3098
+ let n = this.getData();
3099
3099
  return !(e in n) && t && this.set(e, t), n[e];
3100
3100
  }
3101
3101
  set(e, t) {
3102
3102
  var n;
3103
3103
  let r = m(t);
3104
- return r !== ((n = this.hash) == null ? void 0 : n[e]) && (this.getHash()[e] = r, this.update()), this;
3104
+ return r !== ((n = this.data) == null ? void 0 : n[e]) && (this.getData()[e] = r, this.update()), this;
3105
3105
  }
3106
3106
  addWatch(e, t) {
3107
3107
  if (e in this.watch) {
@@ -3118,29 +3118,36 @@ var ut = class {
3118
3118
  reload() {
3119
3119
  return this.block ? setTimeout(() => this.reload(), 32) : this.initData(), this;
3120
3120
  }
3121
+ getData() {
3122
+ return this.data || this.init(), this.data;
3123
+ }
3124
+ initData() {
3125
+ let e = this.getLocation();
3126
+ return this.makeWatch(e), this.data = e, this;
3127
+ }
3128
+ makeWatch(e) {
3129
+ return r(this.watch, (t, n) => {
3130
+ var r;
3131
+ ((r = this.data) == null ? void 0 : r[n]) !== (e == null ? void 0 : e[n]) && t.forEach((t) => t(e[n]));
3132
+ }), this;
3133
+ }
3134
+ }, ft = class extends dt {
3135
+ init() {
3136
+ return this.initData(), s() && addEventListener("hashchange", () => this.reload()), this;
3137
+ }
3121
3138
  getLocation() {
3122
3139
  let e = {};
3123
3140
  if (s()) {
3124
3141
  let t = location.hash.matchAll(/([\w-]+)[:=]([^;]+)/gi);
3125
- for (let n of t) e[n[1]] = fe(n[2]);
3142
+ for (let n of t) e[n[1]] = E(n[2]);
3126
3143
  }
3127
3144
  return e;
3128
3145
  }
3129
- getHash() {
3130
- return this.hash || this.init(), this.hash;
3131
- }
3132
- init() {
3133
- return this.initData(), s() && addEventListener("hashchange", () => this.reload()), this;
3134
- }
3135
- initData() {
3136
- let e = this.getLocation();
3137
- return this.makeWatch(e), this.hash = e, this;
3138
- }
3139
3146
  update() {
3140
3147
  if (s()) {
3141
3148
  clearTimeout(this.time), this.block = !0;
3142
3149
  try {
3143
- let e = this.getHash();
3150
+ let e = this.getData();
3144
3151
  history.replaceState(null, "", `#${o(e, "=", ";")}`);
3145
3152
  } finally {
3146
3153
  this.time = setTimeout(() => {
@@ -3150,15 +3157,9 @@ var ut = class {
3150
3157
  }
3151
3158
  return this;
3152
3159
  }
3153
- makeWatch(e) {
3154
- return r(this.watch, (t, n) => {
3155
- var r;
3156
- ((r = this.hash) == null ? void 0 : r[n]) !== (e == null ? void 0 : e[n]) && t.forEach((t) => t(e[n]));
3157
- }), this;
3158
- }
3159
- }, ft = class {
3160
+ }, pt = class {
3160
3161
  static getItem() {
3161
- return E.get("__ui:hash-instance__", () => new dt());
3162
+ return D.get("__ui:hash-instance__", () => new ft());
3162
3163
  }
3163
3164
  static get(e, t) {
3164
3165
  return this.getItem().get(e, t);
@@ -3175,17 +3176,17 @@ var ut = class {
3175
3176
  static reload() {
3176
3177
  this.getItem().reload();
3177
3178
  }
3178
- }, pt = 320, mt = "--LOAD--", ht = class {
3179
+ }, mt = 320, ht = "--LOAD--", gt = class {
3179
3180
  static is(e) {
3180
3181
  return e in this.icons || this.getName(e) in this.icons;
3181
3182
  }
3182
3183
  static async get(e, t = "", n = 1e3 * 60 * 3) {
3183
3184
  let r = this.getRaw(e, t);
3184
- return typeof r == "string" ? r === mt && n > 0 ? (await this.wait(), this.get(e, t, n - pt)) : r : p(r) ? await r() : await r;
3185
+ return typeof r == "string" ? r === ht && n > 0 ? (await this.wait(), this.get(e, t, n - mt)) : r : p(r) ? await r() : await r;
3185
3186
  }
3186
3187
  static getAsync(e, t = "") {
3187
3188
  let n = this.getRaw(e, t);
3188
- return typeof n == "string" && n !== mt ? n : "";
3189
+ return typeof n == "string" && n !== ht ? n : "";
3189
3190
  }
3190
3191
  static getNameList() {
3191
3192
  return r(this.icons, (e, t) => t.replace(/^@/, ""));
@@ -3197,7 +3198,7 @@ var ut = class {
3197
3198
  this.icons[this.getName(e)] = t;
3198
3199
  }
3199
3200
  static addLoad(e) {
3200
- this.icons[this.getName(e)] = mt;
3201
+ this.icons[this.getName(e)] = ht;
3201
3202
  }
3202
3203
  static addGlobal(e, t) {
3203
3204
  this.icons[this.getName(e)] = `${this.getUrlGlobal()}${t}`;
@@ -3219,22 +3220,22 @@ var ut = class {
3219
3220
  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;
3220
3221
  }
3221
3222
  static wait() {
3222
- return new Promise((e) => setTimeout(() => e(), pt));
3223
+ return new Promise((e) => setTimeout(() => e(), mt));
3223
3224
  }
3224
3225
  };
3225
- w(ht, "icons", {}), w(ht, "url", "/icons/");
3226
+ w(gt, "icons", {}), w(gt, "url", "/icons/");
3226
3227
  //#endregion
3227
3228
  //#region src/functions/getElementItem.ts
3228
- function gt(e, t, n) {
3229
+ function _t(e, t, n) {
3229
3230
  var r, i;
3230
- return (r = (i = A(e)) == null ? void 0 : i[t]) == null ? n : r;
3231
+ return (r = (i = j(e)) == null ? void 0 : i[t]) == null ? n : r;
3231
3232
  }
3232
3233
  //#endregion
3233
3234
  //#region src/functions/setElementItem.ts
3234
- function _t(e, n, i) {
3235
- let a = A(e);
3235
+ function vt(e, n, i) {
3236
+ let a = j(e);
3236
3237
  if (a) {
3237
- let e = gt(a, n);
3238
+ let e = _t(a, n);
3238
3239
  if (t(e) && t(i)) r(i, (t, n) => {
3239
3240
  e[n] = m(t);
3240
3241
  });
@@ -3251,12 +3252,12 @@ function U(e, t = "div", i, a) {
3251
3252
  if (!s()) return;
3252
3253
  let o = document.createElement(t);
3253
3254
  return typeof i == "function" ? i(o) : n(i) && r(i, (e, t) => {
3254
- _t(o, t, e);
3255
+ vt(o, t, e);
3255
3256
  }), e == null || e.insertBefore(o, a == null ? null : a), o;
3256
3257
  }
3257
3258
  //#endregion
3258
3259
  //#region src/functions/encodeAttribute.ts
3259
- var vt = {
3260
+ var yt = {
3260
3261
  "&": "&amp;",
3261
3262
  "<": "&lt;",
3262
3263
  ">": "&gt;",
@@ -3266,7 +3267,7 @@ var vt = {
3266
3267
  function W(e) {
3267
3268
  return String(e).replace(/[&<>"']/g, (e) => {
3268
3269
  var t;
3269
- return (t = vt == null ? void 0 : vt[e]) == null ? e : t;
3270
+ return (t = yt == null ? void 0 : yt[e]) == null ? e : t;
3270
3271
  });
3271
3272
  }
3272
3273
  //#endregion
@@ -3323,7 +3324,7 @@ var G = class {
3323
3324
  return r ? `<meta ${this.getAttributeName()}="${e}" content="${r}">` : "";
3324
3325
  }
3325
3326
  toHtmlTitle(e) {
3326
- return me(e);
3327
+ return pe(e);
3327
3328
  }
3328
3329
  update() {
3329
3330
  return this.listMeta.forEach((e) => {
@@ -3333,25 +3334,25 @@ var G = class {
3333
3334
  }
3334
3335
  }, K = /* @__PURE__ */ function(e) {
3335
3336
  return e.title = "title", e.description = "description", e.keywords = "keywords", e.canonical = "canonical", e.robots = "robots", e.author = "author", e;
3336
- }({}), yt = /* @__PURE__ */ function(e) {
3337
+ }({}), bt = /* @__PURE__ */ function(e) {
3337
3338
  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;
3338
3339
  }({}), q = /* @__PURE__ */ function(e) {
3339
3340
  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;
3340
- }({}), bt = /* @__PURE__ */ function(e) {
3341
- 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;
3342
3341
  }({}), xt = /* @__PURE__ */ function(e) {
3343
- return e.inStock = "in stock", e.outOfStock = "out of stock", e.preorder = "preorder", e.backorder = "backorder", e.discontinued = "discontinued", e.pending = "pending", e;
3342
+ 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;
3344
3343
  }({}), St = /* @__PURE__ */ function(e) {
3345
- return e.new = "new", e.used = "used", e.refurbished = "refurbished", e;
3344
+ return e.inStock = "in stock", e.outOfStock = "out of stock", e.preorder = "preorder", e.backorder = "backorder", e.discontinued = "discontinued", e.pending = "pending", e;
3346
3345
  }({}), Ct = /* @__PURE__ */ function(e) {
3347
- return e.newborn = "newborn", e.infant = "infant", e.toddler = "toddler", e.kids = "kids", e.adult = "adult", e;
3346
+ return e.new = "new", e.used = "used", e.refurbished = "refurbished", e;
3348
3347
  }({}), wt = /* @__PURE__ */ function(e) {
3348
+ return e.newborn = "newborn", e.infant = "infant", e.toddler = "toddler", e.kids = "kids", e.adult = "adult", e;
3349
+ }({}), Tt = /* @__PURE__ */ function(e) {
3349
3350
  return e.female = "female", e.male = "male", e.unisex = "unisex", e;
3350
3351
  }({}), J = /* @__PURE__ */ function(e) {
3351
3352
  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;
3352
- }({}), Tt = /* @__PURE__ */ function(e) {
3353
+ }({}), Et = /* @__PURE__ */ function(e) {
3353
3354
  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;
3354
- }({}), Et = class extends G {
3355
+ }({}), Dt = class extends G {
3355
3356
  constructor() {
3356
3357
  super(Object.values(q), !0);
3357
3358
  }
@@ -3397,7 +3398,7 @@ var G = class {
3397
3398
  setSiteName(e) {
3398
3399
  return this.set(q.siteName, e);
3399
3400
  }
3400
- }, Dt = class extends G {
3401
+ }, Ot = class extends G {
3401
3402
  constructor() {
3402
3403
  super(Object.values(J));
3403
3404
  }
@@ -3443,9 +3444,9 @@ var G = class {
3443
3444
  setImage(e) {
3444
3445
  return this.set(J.image, e), this;
3445
3446
  }
3446
- }, Ot = class extends G {
3447
+ }, kt = class extends G {
3447
3448
  constructor() {
3448
- super(Object.values(K)), w(this, "suffix", void 0), w(this, "og", void 0), w(this, "twitter", void 0), this.og = new Et(), this.twitter = new Dt();
3449
+ super(Object.values(K)), w(this, "suffix", void 0), w(this, "og", void 0), w(this, "twitter", void 0), this.og = new Dt(), this.twitter = new Ot();
3449
3450
  }
3450
3451
  getOg() {
3451
3452
  return this.og;
@@ -3486,7 +3487,7 @@ var G = class {
3486
3487
  return s() && (document.title = t), this.set(K.title, t), this.og.setTitle(t), this.twitter.setTitle(t), this;
3487
3488
  }
3488
3489
  setKeywords(e) {
3489
- return this.set(K.keywords, j(e).join(", ")), this;
3490
+ return this.set(K.keywords, M(e).join(", ")), this;
3490
3491
  }
3491
3492
  setDescription(e) {
3492
3493
  return this.set(K.description, e), this;
@@ -3521,9 +3522,9 @@ var G = class {
3521
3522
  getSuffix() {
3522
3523
  return l(this.suffix) ? ` - ${this.suffix}` : "";
3523
3524
  }
3524
- }, kt = class {
3525
+ }, At = class {
3525
3526
  static getItem() {
3526
- return E.get("__ui:meta-instance__", () => new Ot());
3527
+ return D.get("__ui:meta-instance__", () => new kt());
3527
3528
  }
3528
3529
  static getOg() {
3529
3530
  return this.getItem().getOg();
@@ -3594,7 +3595,126 @@ var G = class {
3594
3595
  static htmlTitle() {
3595
3596
  return this.getItem().htmlTitle();
3596
3597
  }
3597
- }, At = class {
3598
+ }, Y = class e {
3599
+ static getInstance() {
3600
+ return D.get("__ui:url-item__", () => new e());
3601
+ }
3602
+ constructor(e) {
3603
+ w(this, "url", void 0), this.set(e);
3604
+ }
3605
+ get href() {
3606
+ return this.url.href;
3607
+ }
3608
+ get protocol() {
3609
+ return this.url.protocol;
3610
+ }
3611
+ get username() {
3612
+ return this.url.username;
3613
+ }
3614
+ get password() {
3615
+ return this.url.password;
3616
+ }
3617
+ get host() {
3618
+ return this.url.host;
3619
+ }
3620
+ get hostname() {
3621
+ return this.url.hostname;
3622
+ }
3623
+ get port() {
3624
+ return this.url.port;
3625
+ }
3626
+ get pathname() {
3627
+ return this.url.pathname;
3628
+ }
3629
+ get search() {
3630
+ return this.url.search;
3631
+ }
3632
+ get searchParams() {
3633
+ return this.url.searchParams;
3634
+ }
3635
+ get hash() {
3636
+ return this.url.hash;
3637
+ }
3638
+ get origin() {
3639
+ return this.url.origin;
3640
+ }
3641
+ hasParam(e) {
3642
+ return this.url.searchParams.has(e);
3643
+ }
3644
+ getParam(e) {
3645
+ var t;
3646
+ return (t = this.url.searchParams.get(e)) == null ? void 0 : t;
3647
+ }
3648
+ getParams() {
3649
+ let e = {};
3650
+ return this.url.searchParams.forEach((t, n) => {
3651
+ e[n] = E(t);
3652
+ }), e;
3653
+ }
3654
+ set(e) {
3655
+ return e ? e instanceof URL ? this.url = new URL(e.href) : /^[a-z0-9+.-]+:/i.test(e) ? this.url = new URL(e) : s() ? this.url = new URL(e, window.location.origin) : this.url = new URL(e, "http://localhost") : s() ? this.url = new URL(window.location.href) : this.url = new URL("http://localhost"), this;
3656
+ }
3657
+ setParam(e, t) {
3658
+ return this.url.searchParams.set(e, t), this;
3659
+ }
3660
+ setParams(e) {
3661
+ return Array.from(this.url.searchParams.keys()).forEach((e) => this.deleteParam(e)), r(e, (e, t) => {
3662
+ l(e) && this.setParam(t, String(e));
3663
+ }), this;
3664
+ }
3665
+ deleteParam(e) {
3666
+ return this.url.searchParams.delete(e), this;
3667
+ }
3668
+ toString() {
3669
+ return this.url.toString();
3670
+ }
3671
+ toJSON() {
3672
+ return this.url.toJSON();
3673
+ }
3674
+ }, jt = class extends dt {
3675
+ init() {
3676
+ return s() && addEventListener("popstate", () => {
3677
+ Y.getInstance().set(), this.reload();
3678
+ }), this.initData(), this;
3679
+ }
3680
+ getLocation() {
3681
+ return s() && Y.getInstance().set(), Y.getInstance().getParams();
3682
+ }
3683
+ update() {
3684
+ let e = this.getData(), t = Y.getInstance();
3685
+ if (t.setParams(e), s()) {
3686
+ clearTimeout(this.time), this.block = !0;
3687
+ try {
3688
+ let e = t.search, n = `${location.pathname}${e}${location.hash}`;
3689
+ history.replaceState(null, "", n);
3690
+ } finally {
3691
+ this.time = setTimeout(() => {
3692
+ this.block = !1;
3693
+ }, 120);
3694
+ }
3695
+ }
3696
+ return this;
3697
+ }
3698
+ }, Mt = class {
3699
+ static getItem() {
3700
+ return D.get("__ui:query-instance__", () => new jt());
3701
+ }
3702
+ static get(e, t) {
3703
+ return this.getItem().get(e, t);
3704
+ }
3705
+ static set(e, t) {
3706
+ this.getItem().set(e, t);
3707
+ }
3708
+ static addWatch(e, t) {
3709
+ this.getItem().addWatch(e, t);
3710
+ }
3711
+ static removeWatch(e, t) {
3712
+ this.getItem().removeWatch(e, t);
3713
+ }
3714
+ static reload() {
3715
+ this.getItem().reload();
3716
+ }
3717
+ }, Nt = class {
3598
3718
  constructor(e, t = 320, n = !1) {
3599
3719
  w(this, "callback", void 0), w(this, "delay", void 0), w(this, "timerId", void 0), w(this, "startTime", void 0), w(this, "remaining", void 0), w(this, "completed", !1), this.callback = e, this.delay = t, n || this.resume();
3600
3720
  }
@@ -3632,7 +3752,7 @@ var G = class {
3632
3752
  stop() {
3633
3753
  return this.timerId && (clearTimeout(this.timerId), this.timerId = void 0), this;
3634
3754
  }
3635
- }, jt = class {
3755
+ }, Pt = class {
3636
3756
  static async is() {
3637
3757
  let e = await this.get();
3638
3758
  return e !== -1 && e <= 8;
@@ -3648,7 +3768,7 @@ var G = class {
3648
3768
  return t;
3649
3769
  }
3650
3770
  static getStorage() {
3651
- return new D("__ui:scrollbar__", !0);
3771
+ return new O("__ui:scrollbar__", !0);
3652
3772
  }
3653
3773
  static getCalculate() {
3654
3774
  return this.calculate;
@@ -3670,34 +3790,34 @@ var G = class {
3670
3790
  });
3671
3791
  }
3672
3792
  };
3673
- w(jt, "calculate", !1);
3793
+ w(Pt, "calculate", !1);
3674
3794
  //#endregion
3675
3795
  //#region src/functions/escapeExp.ts
3676
- function Y(e) {
3796
+ function X(e) {
3677
3797
  return String(e).replace(/[.*+?^${}()|[\]\\/]/g, "\\$&");
3678
3798
  }
3679
3799
  //#endregion
3680
3800
  //#region src/functions/getSeparatingSearchExp.ts
3681
- function Mt(e, t = 128) {
3801
+ function Ft(e, t = 128) {
3682
3802
  if (e instanceof RegExp) return e;
3683
3803
  if (!e || e.trim().length === 0 || e.length > t) return /^/;
3684
- let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(Y).join("|");
3804
+ let n = String(e).replace(/\s+/g, " ").trim().split(" ").map(X).join("|");
3685
3805
  return RegExp(`(${n})`, "ig");
3686
3806
  }
3687
3807
  //#endregion
3688
3808
  //#region src/functions/addTagHighlightMatch.ts
3689
- var Nt = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, Pt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Ft = RegExp(`${Nt}|${Pt}`, "g");
3690
- function It(e, t, n = "sys-highlight-match", r = !1) {
3809
+ var It = `___HIGHLIGHT_START_${f(1e5, 999999)}___`, Lt = `___HIGHLIGHT_END_${f(1e5, 999999)}___`, Rt = RegExp(`${It}|${Lt}`, "g");
3810
+ function zt(e, t, n = "sys-highlight-match", r = !1) {
3691
3811
  let i = a(e);
3692
3812
  if (l(i) && l(t)) {
3693
- let e = i.replace(Mt(t), `${Nt}$1${Pt}`);
3694
- return r && (e = W(e)), e.replace(Ft, (e) => e === Nt ? `<span class="${n}">` : "</span>");
3813
+ let e = i.replace(Ft(t), `${It}$1${Lt}`);
3814
+ return r && (e = W(e)), e.replace(Rt, (e) => e === It ? `<span class="${n}">` : "</span>");
3695
3815
  }
3696
3816
  return r ? W(i) : i;
3697
3817
  }
3698
3818
  //#endregion
3699
3819
  //#region src/classes/SearchListData.ts
3700
- var Lt = class {
3820
+ var Bt = class {
3701
3821
  constructor(e, t, n, r) {
3702
3822
  w(this, "list", void 0), w(this, "columns", void 0), w(this, "item", void 0), w(this, "options", void 0), w(this, "listCache", void 0), this.list = e, this.columns = t, this.item = n, this.options = r;
3703
3823
  }
@@ -3748,7 +3868,7 @@ var Lt = class {
3748
3868
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
3749
3869
  }
3750
3870
  addTag(e) {
3751
- return It(S(e), this.item.get(), this.options.getClassName());
3871
+ return zt(S(e), this.item.get(), this.options.getClassName());
3752
3872
  }
3753
3873
  generateCache() {
3754
3874
  if (!this.isList()) return [];
@@ -3772,7 +3892,7 @@ var Lt = class {
3772
3892
  resetCache() {
3773
3893
  this.listCache = void 0;
3774
3894
  }
3775
- }, Rt = class {
3895
+ }, Vt = class {
3776
3896
  constructor(e, t) {
3777
3897
  w(this, "value", void 0), w(this, "options", void 0), this.value = e, this.options = t;
3778
3898
  }
@@ -3792,28 +3912,28 @@ var Lt = class {
3792
3912
  };
3793
3913
  //#endregion
3794
3914
  //#region src/functions/getExp.ts
3795
- function zt(e, t = "ig", n = ":value") {
3796
- let r = Y(e);
3915
+ function Ht(e, t = "ig", n = ":value") {
3916
+ let r = X(e);
3797
3917
  return new RegExp(n.replace(/:value/g, r), t);
3798
3918
  }
3799
3919
  //#endregion
3800
3920
  //#region src/functions/getExactSearchExp.ts
3801
- function Bt(e) {
3802
- return zt(e, "i", "(:value)");
3921
+ function Ut(e) {
3922
+ return Ht(e, "i", "(:value)");
3803
3923
  }
3804
3924
  //#endregion
3805
3925
  //#region src/functions/getSearchExp.ts
3806
- function Vt(e, t = 128) {
3926
+ function Wt(e, t = 128) {
3807
3927
  if (!d(e) || e.trim().length === 0 || e.length > t) return /^/;
3808
3928
  let n = [];
3809
3929
  return a(e).split(" ").forEach((e) => {
3810
- let t = Y(e).trim();
3930
+ let t = X(e).trim();
3811
3931
  l(t) && n.push(`(?=.*?${t})`);
3812
3932
  }), RegExp(`^${n.join("")}`, "i");
3813
3933
  }
3814
3934
  //#endregion
3815
3935
  //#region src/classes/SearchListMatcher.ts
3816
- var Ht = class {
3936
+ var Gt = class {
3817
3937
  constructor(e, t) {
3818
3938
  w(this, "item", void 0), w(this, "options", void 0), w(this, "matcher", void 0), this.item = e, this.options = t, this.initMatcher();
3819
3939
  }
@@ -3830,9 +3950,9 @@ var Ht = class {
3830
3950
  this.initMatcher();
3831
3951
  }
3832
3952
  initMatcher() {
3833
- this.item.is() ? this.matcher = this.options.getFindExactMatch() ? Bt(this.item.get()) : Vt(this.item.get()) : this.matcher = void 0;
3953
+ this.item.is() ? this.matcher = this.options.getFindExactMatch() ? Ut(this.item.get()) : Wt(this.item.get()) : this.matcher = void 0;
3834
3954
  }
3835
- }, Ut = class {
3955
+ }, Kt = class {
3836
3956
  constructor(e) {
3837
3957
  w(this, "options", void 0), this.options = e;
3838
3958
  }
@@ -3862,12 +3982,12 @@ var Ht = class {
3862
3982
  setOptions(e) {
3863
3983
  return this.options = e, this;
3864
3984
  }
3865
- }, Wt = class {
3985
+ }, qt = class {
3866
3986
  constructor(e, t, n, r) {
3867
3987
  w(this, "options", void 0), w(this, "item", void 0), w(this, "matcher", void 0), w(this, "data", void 0), w(this, "callbackToSelection", (e, t) => {
3868
3988
  if (this.matcher.isSelection(t)) return this.data.toFormatItem(e, !0);
3869
3989
  if (this.options.getReturnEverything()) return this.data.toFormatItem(e, !1);
3870
- }), w(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Ut(r), this.item = new Rt(n, this.options), this.matcher = new Ht(this.item, this.options), this.data = new Lt(e, t, this.item, this.options);
3990
+ }), w(this, "callbackToNone", (e) => this.data.toFormatItem(e, !1)), this.options = new Kt(r), this.item = new Vt(n, this.options), this.matcher = new Gt(this.item, this.options), this.data = new Bt(e, t, this.item, this.options);
3871
3991
  }
3872
3992
  getData() {
3873
3993
  return this.data;
@@ -3904,13 +4024,13 @@ var Ht = class {
3904
4024
  let e = this.data.getList();
3905
4025
  return e ? r(e, this.callbackToNone) : [];
3906
4026
  }
3907
- }, Gt = () => E.get("__ui:storage-callback__", () => ({})), Kt = class e {
4027
+ }, Jt = () => D.get("__ui:storage-callback__", () => ({})), Yt = class e {
3908
4028
  static getInstance(t, n = "main") {
3909
4029
  return new e(t, n);
3910
4030
  }
3911
4031
  constructor(e, t = "main") {
3912
4032
  w(this, "name", void 0), w(this, "group", void 0), w(this, "callbacks", []), w(this, "loading", !1), this.name = e, this.group = t;
3913
- let n = `${t}:${e}`, r = Gt();
4033
+ let n = `${t}:${e}`, r = Jt();
3914
4034
  if (n in r) return r[n];
3915
4035
  r[n] = this;
3916
4036
  }
@@ -3940,7 +4060,7 @@ var Ht = class {
3940
4060
  for (let { callback: t, isOnce: n } of this.callbacks) await Je(t, e), n && this.removeCallback(t);
3941
4061
  return this;
3942
4062
  }
3943
- }, qt = [
4063
+ }, Xt = [
3944
4064
  "d",
3945
4065
  "e",
3946
4066
  "f",
@@ -3960,10 +4080,10 @@ var Ht = class {
3960
4080
  "t",
3961
4081
  "u",
3962
4082
  "v"
3963
- ], Jt = RegExp(`%(${qt.join("|")})`, "g"), Yt = (e, t = {}) => {
4083
+ ], Zt = RegExp(`%(${Xt.join("|")})`, "g"), Qt = (e, t = {}) => {
3964
4084
  let r = String(e);
3965
- return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(Jt, (e, n) => {
3966
- let r = qt.indexOf(n);
4085
+ return Array.isArray(t) && e.match(/%[a-z]/) && (r = r.replace(Zt, (e, n) => {
4086
+ let r = Xt.indexOf(n);
3967
4087
  if (r !== -1) {
3968
4088
  var i;
3969
4089
  return String((i = t == null ? void 0 : t[r]) == null ? "" : i);
@@ -3982,11 +4102,11 @@ var Ht = class {
3982
4102
  }
3983
4103
  return e;
3984
4104
  })), r;
3985
- }, Xt = (e) => {
4105
+ }, $t = (e) => {
3986
4106
  var t;
3987
4107
  return i(e) ? !0 : !!(e && n(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(I.getStatus().getStatus()))));
3988
- }, Zt = "global", Qt = 160, $t = class {
3989
- constructor(e, t = () => k.getLanguage(), n = () => k.getLocation()) {
4108
+ }, en = "global", tn = 160, nn = class {
4109
+ constructor(e, t = () => A.getLanguage(), n = () => A.getLocation()) {
3990
4110
  w(this, "language", void 0), w(this, "location", void 0), w(this, "files", {}), w(this, "data", {}), this.language = t, this.location = n, e && this.add(e);
3991
4111
  }
3992
4112
  isFile() {
@@ -4015,7 +4135,7 @@ var Ht = class {
4015
4135
  if (e in this.files) return e;
4016
4136
  let t = this.getLanguage();
4017
4137
  if (t in this.files) return t;
4018
- if ("global" in this.files) return Zt;
4138
+ if ("global" in this.files) return en;
4019
4139
  }
4020
4140
  getByData(e) {
4021
4141
  if (e in this.data) return this.data[e];
@@ -4026,8 +4146,8 @@ var Ht = class {
4026
4146
  return t && (this.data[e] = t), t;
4027
4147
  }
4028
4148
  }
4029
- }, en = class {
4030
- constructor(e = "/api/translate", t = "list", n = new $t()) {
4149
+ }, rn = class {
4150
+ constructor(e = "/api/translate", t = "list", n = new nn()) {
4031
4151
  w(this, "url", void 0), w(this, "propsName", void 0), w(this, "files", void 0), w(this, "data", {}), w(this, "cache", []), w(this, "resolveList", []), w(this, "timeout", void 0), w(this, "isReadApi", !0), this.url = e, this.propsName = t, this.files = n;
4032
4152
  }
4033
4153
  async get(e, t) {
@@ -4116,11 +4236,11 @@ var Ht = class {
4116
4236
  return `${this.files.getLanguage()}-${e}`;
4117
4237
  }
4118
4238
  getNameByGlobal(e) {
4119
- return `${Zt}-${e}`;
4239
+ return `${en}-${e}`;
4120
4240
  }
4121
4241
  getNamesNone(e) {
4122
4242
  let t = [];
4123
- return j(e).forEach((e) => {
4243
+ return M(e).forEach((e) => {
4124
4244
  e !== "__TRANSLATE_START__" && e !== "__TRANSLATE_END__" && !this.hasName(e) && t.push(e);
4125
4245
  }), t;
4126
4246
  }
@@ -4133,14 +4253,14 @@ var Ht = class {
4133
4253
  timeout: 12e3,
4134
4254
  global: !0
4135
4255
  });
4136
- return Xt(e) || T.on({
4256
+ return $t(e) || T.on({
4137
4257
  group: "translate",
4138
4258
  code: "error",
4139
4259
  details: e
4140
4260
  }), e == null ? {} : e;
4141
4261
  }
4142
4262
  replacement(e, t) {
4143
- return t ? Yt(e, t) : e;
4263
+ return t ? Qt(e, t) : e;
4144
4264
  }
4145
4265
  async make() {
4146
4266
  let e;
@@ -4152,12 +4272,12 @@ var Ht = class {
4152
4272
  this.data[this.getName(t)] = (n = e == null ? void 0 : e[t]) == null ? "" : n;
4153
4273
  }), this.cache = [];
4154
4274
  }
4155
- }, tn = class {
4275
+ }, an = class {
4156
4276
  static async get(e, t) {
4157
4277
  return this.getItem().get(e, t);
4158
4278
  }
4159
4279
  static getItem() {
4160
- return this.item || (this.item = new en()), this.item;
4280
+ return this.item || (this.item = new rn()), this.item;
4161
4281
  }
4162
4282
  static getSync(e, t = !1, n) {
4163
4283
  return this.getItem().getSync(e, t, n);
@@ -4196,73 +4316,18 @@ var Ht = class {
4196
4316
  e.url && this.getItem().setUrl(e.url), e.propsName && this.getItem().setPropsName(e.propsName), typeof e.readApi == "boolean" && this.getItem().setReadApi(e.readApi);
4197
4317
  }
4198
4318
  };
4199
- w(tn, "item", void 0);
4200
- //#endregion
4201
- //#region src/classes/UrlItem.ts
4202
- var nn = class e {
4203
- static getInstance() {
4204
- return E.get("__ui:url-item__", () => new e());
4205
- }
4206
- constructor(e) {
4207
- w(this, "url", void 0), this.set(e);
4208
- }
4209
- get href() {
4210
- return this.url.href;
4211
- }
4212
- get protocol() {
4213
- return this.url.protocol;
4214
- }
4215
- get username() {
4216
- return this.url.username;
4217
- }
4218
- get password() {
4219
- return this.url.password;
4220
- }
4221
- get host() {
4222
- return this.url.host;
4223
- }
4224
- get hostname() {
4225
- return this.url.hostname;
4226
- }
4227
- get port() {
4228
- return this.url.port;
4229
- }
4230
- get pathname() {
4231
- return this.url.pathname;
4232
- }
4233
- get search() {
4234
- return this.url.search;
4235
- }
4236
- get searchParams() {
4237
- return this.url.searchParams;
4238
- }
4239
- get hash() {
4240
- return this.url.hash;
4241
- }
4242
- get origin() {
4243
- return this.url.origin;
4244
- }
4245
- set(e) {
4246
- return e ? e instanceof URL ? this.url = new URL(e.href) : /^[a-z0-9+.-]+:/i.test(e) ? this.url = new URL(e) : s() ? this.url = new URL(e, window.location.origin) : this.url = new URL(e, "http://localhost") : s() ? this.url = new URL(window.location.href) : this.url = new URL("http://localhost"), this;
4247
- }
4248
- toString() {
4249
- return this.url.toString();
4250
- }
4251
- toJSON() {
4252
- return this.url.toJSON();
4253
- }
4254
- };
4319
+ w(an, "item", void 0);
4255
4320
  //#endregion
4256
4321
  //#region src/functions/arrFill.ts
4257
- function rn(e, t) {
4322
+ function on(e, t) {
4258
4323
  return Array(t).fill(e);
4259
4324
  }
4260
4325
  //#endregion
4261
4326
  //#region src/functions/blobToBase64.ts
4262
- var an = () => on() !== void 0, on = () => {
4327
+ var sn = () => cn() !== void 0, cn = () => {
4263
4328
  var e;
4264
4329
  return (e = globalThis) == null ? void 0 : e.Buffer;
4265
- }, sn = async (e) => new Promise((t, n) => {
4330
+ }, ln = async (e) => new Promise((t, n) => {
4266
4331
  if (typeof FileReader < "u") {
4267
4332
  let r = new FileReader();
4268
4333
  r.onloadend = () => {
@@ -4273,33 +4338,33 @@ var an = () => on() !== void 0, on = () => {
4273
4338
  t(r.result.replace(/^data:.*?,/, ""));
4274
4339
  }, r.onerror = n, r.readAsDataURL(e);
4275
4340
  } else n();
4276
- }), cn = (e) => {
4341
+ }), un = (e) => {
4277
4342
  var t;
4278
4343
  return ((t = globalThis) == null ? void 0 : t.Buffer).from(e).toString("base64");
4279
4344
  };
4280
- async function ln(e, t = !1) {
4281
- let n = s() ? await sn(e) : an() ? cn(await e.arrayBuffer()) : void 0;
4345
+ async function dn(e, t = !1) {
4346
+ let n = s() ? await ln(e) : sn() ? un(await e.arrayBuffer()) : void 0;
4282
4347
  if (n) return t ? n : `data:${e.type};base64,${n}`;
4283
4348
  }
4284
4349
  //#endregion
4285
4350
  //#region src/functions/capitalize.ts
4286
- function un(e, t = !1) {
4351
+ function fn(e, t = !1) {
4287
4352
  let n = String(e);
4288
- return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(k.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4353
+ return n.length > 0 ? t ? n.charAt(0).toLocaleUpperCase(A.getLocation()) + n.slice(1) : n.charAt(0).toUpperCase() + n.slice(1) : n;
4289
4354
  }
4290
4355
  //#endregion
4291
4356
  //#region src/functions/copyObject.ts
4292
- function X(e) {
4357
+ function Z(e) {
4293
4358
  return JSON.parse(JSON.stringify(e));
4294
4359
  }
4295
4360
  //#endregion
4296
4361
  //#region src/functions/copyObjectLite.ts
4297
- function dn(e, t) {
4362
+ function pn(e, t) {
4298
4363
  return Object.assign({}, e, t);
4299
4364
  }
4300
4365
  //#endregion
4301
4366
  //#region src/functions/domQuerySelector.ts
4302
- function fn(e) {
4367
+ function mn(e) {
4303
4368
  if (s()) {
4304
4369
  var t;
4305
4370
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -4307,67 +4372,67 @@ function fn(e) {
4307
4372
  }
4308
4373
  //#endregion
4309
4374
  //#region src/functions/domQuerySelectorAll.ts
4310
- function pn(e) {
4375
+ function hn(e) {
4311
4376
  if (s()) return document.querySelectorAll(e);
4312
4377
  }
4313
4378
  //#endregion
4314
4379
  //#region src/functions/getElementImage.ts
4315
- function Z(e) {
4380
+ function gn(e) {
4316
4381
  return d(e) ? U(void 0, "img", { src: e }) : e;
4317
4382
  }
4318
4383
  //#endregion
4319
4384
  //#region src/functions/resizeImageByMax.ts
4320
- function mn(e, t = "auto") {
4385
+ function _n(e, t = "auto") {
4321
4386
  switch (t) {
4322
4387
  case "auto": return e.naturalWidth >= e.naturalHeight;
4323
4388
  case "width": return !0;
4324
4389
  case "height": return !1;
4325
4390
  }
4326
4391
  }
4327
- function hn(e, t, n = "auto", r) {
4328
- let i = Z(e);
4392
+ function vn(e, t, n = "auto", r) {
4393
+ let i = gn(e);
4329
4394
  if (s() && i && i.naturalWidth && i.naturalHeight && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
4330
4395
  var a;
4331
- let e = mn(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
4396
+ let e = _n(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
4332
4397
  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);
4333
4398
  }
4334
4399
  }
4335
4400
  //#endregion
4336
4401
  //#region src/functions/ensureMaxSize.ts
4337
- async function gn(e, t = .56, n = "image/jpeg") {
4402
+ async function yn(e, t = .56, n = "image/jpeg") {
4338
4403
  return new Promise((r) => {
4339
4404
  if (!s()) {
4340
4405
  r("");
4341
4406
  return;
4342
4407
  }
4343
- let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = Z(a);
4408
+ let i = new Blob([e], { type: n }), a = URL.createObjectURL(i), o = gn(a);
4344
4409
  o ? (o.onload = () => {
4345
- let e = hn(o, t * o.naturalWidth, "width", n);
4410
+ let e = vn(o, t * o.naturalWidth, "width", n);
4346
4411
  r(e == null ? "" : e), URL.revokeObjectURL(a);
4347
4412
  }, o.onerror = () => {
4348
4413
  URL.revokeObjectURL(a), r("");
4349
- }) : ln(i).then((e) => r(String(e == null ? "" : e)));
4414
+ }) : dn(i).then((e) => r(String(e == null ? "" : e)));
4350
4415
  });
4351
4416
  }
4352
4417
  //#endregion
4353
4418
  //#region src/functions/eventStopPropagation.ts
4354
- function _n(e) {
4419
+ function bn(e) {
4355
4420
  e.preventDefault(), e.stopPropagation();
4356
4421
  }
4357
4422
  //#endregion
4358
4423
  //#region src/functions/frame.ts
4359
- function vn(e, t, n) {
4424
+ function xn(e, t, n) {
4360
4425
  let r = () => {
4361
- e(), s() && t != null && t() ? vn(e, t, n) : n == null || n();
4426
+ e(), s() && t != null && t() ? xn(e, t, n) : n == null || n();
4362
4427
  };
4363
4428
  s() ? requestAnimationFrame(r) : r();
4364
4429
  }
4365
4430
  //#endregion
4366
4431
  //#region src/functions/getArrayHighlightMatch.ts
4367
- function yn(e, t) {
4432
+ function Sn(e, t) {
4368
4433
  let n = a(e);
4369
4434
  if (l(n) && l(t)) {
4370
- let e = [], r = Mt(t), i = 0, a;
4435
+ let e = [], r = Ft(t), i = 0, a;
4371
4436
  for (; (a = r.exec(n)) !== null && a.index !== r.lastIndex;) a.index > i && e.push({
4372
4437
  text: n.substring(i, a.index),
4373
4438
  isMatch: !1
@@ -4387,8 +4452,8 @@ function yn(e, t) {
4387
4452
  }
4388
4453
  //#endregion
4389
4454
  //#region src/functions/getAttributes.ts
4390
- function bn(e) {
4391
- let t = {}, n = A(e);
4455
+ function Cn(e) {
4456
+ let t = {}, n = j(e);
4392
4457
  if (n) for (let e of n.attributes) {
4393
4458
  var r;
4394
4459
  t[e.name] = (r = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.textContent)) == null ? void 0 : r;
@@ -4397,7 +4462,7 @@ function bn(e) {
4397
4462
  }
4398
4463
  //#endregion
4399
4464
  //#region src/functions/getClipboardData.ts
4400
- async function xn(e) {
4465
+ async function wn(e) {
4401
4466
  if (s()) try {
4402
4467
  var t, n;
4403
4468
  return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
@@ -4412,35 +4477,35 @@ async function xn(e) {
4412
4477
  }
4413
4478
  //#endregion
4414
4479
  //#region src/functions/getCurrentDate.ts
4415
- function Sn(e = "datetime") {
4480
+ function Tn(e = "datetime") {
4416
4481
  return new it(void 0, e).standard();
4417
4482
  }
4418
4483
  //#endregion
4419
4484
  //#region src/functions/getCurrentTime.ts
4420
- function Cn() {
4485
+ function En() {
4421
4486
  return Date.now();
4422
4487
  }
4423
4488
  //#endregion
4424
4489
  //#region src/functions/getElementId.ts
4425
- var Q, wn = () => {
4490
+ var Q, Dn = () => {
4426
4491
  let e = Q == null ? void 0 : Q();
4427
4492
  if (e) return String(e);
4428
- let t = E.get("__ui:getElementId__", () => ({ id: 1e5 }));
4493
+ let t = D.get("__ui:getElementId__", () => ({ id: 1e5 }));
4429
4494
  return `id-${t.id++}`;
4430
4495
  };
4431
- function Tn(e, t) {
4496
+ function On(e, t) {
4432
4497
  if (e) {
4433
- let n = A(e);
4434
- if (n) return l(n.id) || n.setAttribute("id", wn()), t ? `#${n.id}${t}`.trim() : n.id;
4498
+ let n = j(e);
4499
+ if (n) return l(n.id) || n.setAttribute("id", Dn()), t ? `#${n.id}${t}`.trim() : n.id;
4435
4500
  }
4436
- return wn();
4501
+ return Dn();
4437
4502
  }
4438
- function En(e) {
4503
+ function kn(e) {
4439
4504
  Q || (Q = e);
4440
4505
  }
4441
4506
  //#endregion
4442
4507
  //#region src/functions/getFirst.ts
4443
- function Dn(e) {
4508
+ function An(e) {
4444
4509
  if (i(e)) return e == null ? void 0 : e[0];
4445
4510
  if (t(e)) {
4446
4511
  var n;
@@ -4450,18 +4515,18 @@ function Dn(e) {
4450
4515
  }
4451
4516
  //#endregion
4452
4517
  //#region src/functions/getKey.ts
4453
- function On(e) {
4518
+ function jn(e) {
4454
4519
  var t, n, r;
4455
4520
  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;
4456
4521
  }
4457
4522
  //#endregion
4458
4523
  //#region src/functions/getLength.ts
4459
- function kn(e) {
4524
+ function Mn(e) {
4460
4525
  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;
4461
4526
  }
4462
4527
  //#endregion
4463
4528
  //#region src/functions/getLengthOfAllArray.ts
4464
- function An(e) {
4529
+ function Nn(e) {
4465
4530
  return r(e, (e) => {
4466
4531
  var t;
4467
4532
  return (t = e == null ? void 0 : e.length) == null ? 0 : t;
@@ -4469,41 +4534,41 @@ function An(e) {
4469
4534
  }
4470
4535
  //#endregion
4471
4536
  //#region src/functions/getMaxLengthAllArray.ts
4472
- function jn(e) {
4537
+ function Pn(e) {
4473
4538
  if (!l(e)) return 0;
4474
- let t = An(e);
4539
+ let t = Nn(e);
4475
4540
  return t.length > 1e4 ? t.reduce((e, t) => Math.max(e, t)) : Math.max(...t);
4476
4541
  }
4477
4542
  //#endregion
4478
4543
  //#region src/functions/getMinLengthAllArray.ts
4479
- function Mn(e) {
4544
+ function Fn(e) {
4480
4545
  if (!l(e)) return 0;
4481
- let t = An(e);
4546
+ let t = Nn(e);
4482
4547
  return t.length > 1e4 ? t.reduce((e, t) => Math.min(e, t)) : Math.min(...t);
4483
4548
  }
4484
4549
  //#endregion
4485
4550
  //#region src/functions/getMouseClientX.ts
4486
- function Nn(e) {
4551
+ function In(e) {
4487
4552
  var t, n;
4488
4553
  return (e == null ? void 0 : 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;
4489
4554
  }
4490
4555
  //#endregion
4491
4556
  //#region src/functions/getMouseClientY.ts
4492
- function Pn(e) {
4557
+ function Ln(e) {
4493
4558
  var t, n;
4494
4559
  return (e == null ? void 0 : 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;
4495
4560
  }
4496
4561
  //#endregion
4497
4562
  //#region src/functions/getMouseClient.ts
4498
- function Fn(e) {
4563
+ function Rn(e) {
4499
4564
  return {
4500
- x: Nn(e),
4501
- y: Pn(e)
4565
+ x: In(e),
4566
+ y: Ln(e)
4502
4567
  };
4503
4568
  }
4504
4569
  //#endregion
4505
4570
  //#region src/functions/getObjectByKeys.ts
4506
- function In(e, t) {
4571
+ function zn(e, t) {
4507
4572
  let r = {};
4508
4573
  return n(e) && t.forEach((t) => {
4509
4574
  t in e && e[t] !== void 0 && (r[t] = e[t]);
@@ -4511,7 +4576,7 @@ function In(e, t) {
4511
4576
  }
4512
4577
  //#endregion
4513
4578
  //#region src/functions/getObjectNoUndefined.ts
4514
- function Ln(e, t = void 0) {
4579
+ function Bn(e, t = void 0) {
4515
4580
  let n = {};
4516
4581
  return r(e, (e, r) => {
4517
4582
  e !== t && (n[r] = e);
@@ -4519,42 +4584,42 @@ function Ln(e, t = void 0) {
4519
4584
  }
4520
4585
  //#endregion
4521
4586
  //#region src/functions/getObjectOrNone.ts
4522
- function Rn(e) {
4587
+ function Vn(e) {
4523
4588
  return n(e) ? e : {};
4524
4589
  }
4525
4590
  //#endregion
4526
4591
  //#region src/functions/getOnlyText.ts
4527
- function zn(e) {
4592
+ function Hn(e) {
4528
4593
  return S(e).replace(/[^\p{L}\p{N}\s]+/gu, "").trim();
4529
4594
  }
4530
4595
  //#endregion
4531
4596
  //#region src/functions/strFill.ts
4532
- function Bn(e, t) {
4597
+ function Un(e, t) {
4533
4598
  return String(e).repeat(t);
4534
4599
  }
4535
4600
  //#endregion
4536
4601
  //#region src/functions/getRandomText.ts
4537
- function Vn(e, t, n = "#", r = 2, i = 12) {
4602
+ function Wn(e, t, n = "#", r = 2, i = 12) {
4538
4603
  let a = f(e, t), o = [];
4539
- for (let e = 0; e < a; e++) o.push(Bn(n, f(r, i)));
4604
+ for (let e = 0; e < a; e++) o.push(Un(n, f(r, i)));
4540
4605
  return o.join(" ");
4541
4606
  }
4542
4607
  //#endregion
4543
4608
  //#region src/functions/getStepPercent.ts
4544
- function Hn(e, t) {
4609
+ function Gn(e, t) {
4545
4610
  let n = e == null ? 0 : e;
4546
4611
  return t > n ? 100 / (t - n) : 0;
4547
4612
  }
4548
4613
  //#endregion
4549
4614
  //#region src/functions/getStepValue.ts
4550
- function Un(e, t) {
4615
+ function Kn(e, t) {
4551
4616
  let n = e == null ? 0 : e;
4552
4617
  return t > n ? (t - n) / 100 : 0;
4553
4618
  }
4554
4619
  //#endregion
4555
4620
  //#region src/functions/goScroll.ts
4556
- var Wn = 0;
4557
- function Gn(e, t, n) {
4621
+ var qn = 0;
4622
+ function Jn(e, t, n) {
4558
4623
  if (!s()) return;
4559
4624
  let r = t == null ? void 0 : t.closest(e);
4560
4625
  if (t && r && r.scrollHeight !== r.offsetHeight) {
@@ -4562,12 +4627,12 @@ function Gn(e, t, n) {
4562
4627
  if (n) {
4563
4628
  let a = n.getBoundingClientRect();
4564
4629
  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);
4565
- } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Wn : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Wn);
4630
+ } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - qn : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + qn);
4566
4631
  }
4567
4632
  }
4568
4633
  //#endregion
4569
4634
  //#region src/functions/goScrollSmooth.ts
4570
- function Kn(e, t, n = 0) {
4635
+ function Yn(e, t, n = 0) {
4571
4636
  if (!s()) return;
4572
4637
  let r = (t == null ? void 0 : t.behavior) || "smooth";
4573
4638
  if ("scrollIntoView" in e && !n) {
@@ -4589,7 +4654,7 @@ function Kn(e, t, n = 0) {
4589
4654
  }
4590
4655
  //#endregion
4591
4656
  //#region src/functions/goScrollTo.ts
4592
- function qn(e, t, n = "smooth") {
4657
+ function Xn(e, t, n = "smooth") {
4593
4658
  if (!s() || !e || !t) return;
4594
4659
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
4595
4660
  e.scrollBy({
@@ -4600,13 +4665,13 @@ function qn(e, t, n = "smooth") {
4600
4665
  }
4601
4666
  //#endregion
4602
4667
  //#region src/functions/isShare.ts
4603
- function Jn() {
4668
+ function Zn() {
4604
4669
  return s() && typeof navigator < "u" && !!navigator.share;
4605
4670
  }
4606
4671
  //#endregion
4607
4672
  //#region src/functions/handleShare.ts
4608
- async function Yn(e) {
4609
- if (Jn() && navigator.canShare && navigator.canShare(e)) try {
4673
+ async function Qn(e) {
4674
+ if (Zn() && navigator.canShare && navigator.canShare(e)) try {
4610
4675
  return await navigator.share(e), !0;
4611
4676
  } catch (e) {
4612
4677
  T.on({
@@ -4619,20 +4684,20 @@ async function Yn(e) {
4619
4684
  }
4620
4685
  //#endregion
4621
4686
  //#region src/functions/inArray.ts
4622
- function Xn(e, t) {
4687
+ function $n(e, t) {
4623
4688
  return e.includes(t);
4624
4689
  }
4625
4690
  //#endregion
4626
4691
  //#region src/functions/initScrollbarOffset.ts
4627
- async function Zn() {
4692
+ async function er() {
4628
4693
  if (s()) {
4629
- let e = await jt.get();
4694
+ let e = await Pt.get();
4630
4695
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
4631
4696
  }
4632
4697
  }
4633
4698
  //#endregion
4634
4699
  //#region src/functions/intersectKey.ts
4635
- function Qn(e, n) {
4700
+ function tr(e, n) {
4636
4701
  let i = {};
4637
4702
  return t(e) && t(n) && r(e, (e, t) => {
4638
4703
  t in n && (i[t] = e);
@@ -4640,7 +4705,7 @@ function Qn(e, n) {
4640
4705
  }
4641
4706
  //#endregion
4642
4707
  //#region src/functions/isDifferent.ts
4643
- function $n(e, t) {
4708
+ function nr(e, t) {
4644
4709
  let n = Object.keys(e).length !== Object.keys(t).length;
4645
4710
  return n || r(e, (e, r) => {
4646
4711
  e !== (t == null ? void 0 : t[r]) && (n = !0);
@@ -4648,25 +4713,25 @@ function $n(e, t) {
4648
4713
  }
4649
4714
  //#endregion
4650
4715
  //#region src/functions/isElementVisible.ts
4651
- function er(e) {
4716
+ function rr(e) {
4652
4717
  if (!s()) return !1;
4653
- let t = A(e);
4718
+ let t = j(e);
4654
4719
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
4655
4720
  let n = window.getComputedStyle(t);
4656
4721
  return n.display !== "none" && n.visibility !== "hidden" && n.opacity !== "0" && t.offsetWidth !== 0 && t.offsetHeight !== 0;
4657
4722
  }
4658
4723
  //#endregion
4659
4724
  //#region src/functions/isInput.ts
4660
- var tr = (e) => {
4725
+ var ir = (e) => {
4661
4726
  if (e instanceof HTMLElement) {
4662
4727
  let t = e.tagName.toLowerCase();
4663
4728
  return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true") && !(e != null && e.readOnly) && !(e != null && e.disabled);
4664
4729
  }
4665
4730
  return !1;
4666
- }, nr = (e, t) => e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Spacebar" || e.key === "Enter" || e.keyCode === 13 || e.keyCode === 32 ? t === void 0 ? !tr(e.target) : !t : !1;
4731
+ }, ar = (e, t) => e.code === "Space" || e.code === "Enter" || e.key === " " || e.key === "Spacebar" || e.key === "Enter" || e.keyCode === 13 || e.keyCode === 32 ? t === void 0 ? !ir(e.target) : !t : !1;
4667
4732
  //#endregion
4668
4733
  //#region src/functions/isFloat.ts
4669
- function rr(e) {
4734
+ function or(e) {
4670
4735
  switch (typeof e) {
4671
4736
  case "number": return !0;
4672
4737
  case "string": return /^-?\d+(\.\d+)?$/.test(e);
@@ -4675,21 +4740,21 @@ function rr(e) {
4675
4740
  }
4676
4741
  //#endregion
4677
4742
  //#region src/functions/isIntegerBetween.ts
4678
- function ir(e, t) {
4743
+ function sr(e, t) {
4679
4744
  let n = Math.floor(t);
4680
4745
  return e >= n && e < n + 1;
4681
4746
  }
4682
4747
  //#endregion
4683
4748
  //#region src/functions/isSelectedByList.ts
4684
- function ar(e, t) {
4749
+ function cr(e, t) {
4685
4750
  return Array.isArray(e) ? e.every((e) => x(e, t)) : x(e, t);
4686
4751
  }
4687
4752
  //#endregion
4688
4753
  //#region src/functions/isTab.ts
4689
- var or = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4754
+ var lr = (e) => e.key === "Tab" || e.code === "Tab" || e.keyCode === 9;
4690
4755
  //#endregion
4691
4756
  //#region src/functions/removeCommonPrefix.ts
4692
- function sr(e, t) {
4757
+ function ur(e, t) {
4693
4758
  if (e.startsWith(t)) return e.slice(t.length).trim();
4694
4759
  let n = 0;
4695
4760
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -4697,35 +4762,35 @@ function sr(e, t) {
4697
4762
  }
4698
4763
  //#endregion
4699
4764
  //#region src/functions/replaceComponentName.ts
4700
- var cr = (e, t, n) => {
4765
+ var dr = (e, t, n) => {
4701
4766
  var r;
4702
4767
  return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
4703
4768
  };
4704
4769
  //#endregion
4705
4770
  //#region src/functions/uniqueArray.ts
4706
- function lr(e) {
4771
+ function fr(e) {
4707
4772
  return [...new Set(e)];
4708
4773
  }
4709
4774
  //#endregion
4710
4775
  //#region src/functions/replaceRecursive.ts
4711
4776
  function $(e, n, i = !0) {
4712
- let a = X(e);
4777
+ let a = Z(e);
4713
4778
  return t(e) && t(n) && r(n, (n, r) => {
4714
4779
  let o = e == null ? void 0 : e[r];
4715
- t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = X(lr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? X(n) : n;
4780
+ t(o) && t(n) ? i && Array.isArray(o) && Array.isArray(n) ? a[r] = Z(fr([...o, ...n])) : a[r] = $(Array.isArray(o) ? { ...o } : o, n, i) : a[r] = t(n) ? Z(n) : n;
4716
4781
  }), a;
4717
4782
  }
4718
4783
  //#endregion
4719
4784
  //#region src/functions/replaceTemplate.ts
4720
- function ur(e, t) {
4785
+ function pr(e, t) {
4721
4786
  let n = e;
4722
4787
  return r(t, (e, t) => {
4723
- n = n.replace(zt(`[${t}]`), m(e));
4788
+ n = n.replace(Ht(`[${t}]`), m(e));
4724
4789
  }), n;
4725
4790
  }
4726
4791
  //#endregion
4727
4792
  //#region src/functions/secondToTime.ts
4728
- function dr(e, t) {
4793
+ function mr(e, t) {
4729
4794
  let n = b(e);
4730
4795
  if (n > 0) {
4731
4796
  let e = String(Math.floor(n / 60)).padStart(2, "0"), r = String(n % 60).padStart(2, "0");
@@ -4735,7 +4800,7 @@ function dr(e, t) {
4735
4800
  }
4736
4801
  //#endregion
4737
4802
  //#region src/functions/setValues.ts
4738
- function fr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4803
+ function hr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, notEmpty: o = !1 }) {
4739
4804
  if (n) {
4740
4805
  if (i(e)) {
4741
4806
  let n = e.indexOf(t), i = [...e];
@@ -4747,48 +4812,48 @@ function fr(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: a = !0, no
4747
4812
  }
4748
4813
  //#endregion
4749
4814
  //#region src/functions/splice.ts
4750
- function pr(e, n, i) {
4815
+ function gr(e, n, i) {
4751
4816
  if (t(e) && t(n)) {
4752
4817
  if (i) {
4753
4818
  let a = {}, o = !1;
4754
4819
  return r(e, (e, r) => {
4755
- !o && (i === r || i === e) ? (o = !0, a = $(a, n)) : o ? a = $(a, { [r]: e }) : a[r] = t(e) ? X(e) : e;
4820
+ !o && (i === r || i === e) ? (o = !0, a = $(a, n)) : o ? a = $(a, { [r]: e }) : a[r] = t(e) ? Z(e) : e;
4756
4821
  }), o ? a : $(e, n);
4757
4822
  }
4758
4823
  if (t(n)) return $(e, n);
4759
4824
  }
4760
- return X(e);
4825
+ return Z(e);
4761
4826
  }
4762
4827
  //#endregion
4763
4828
  //#region src/functions/toCamelCaseFirst.ts
4764
- function mr(e) {
4829
+ function _r(e) {
4765
4830
  return at(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
4766
4831
  }
4767
4832
  //#endregion
4768
4833
  //#region src/functions/toKebabCase.ts
4769
- function hr(e) {
4834
+ function vr(e) {
4770
4835
  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());
4771
4836
  }
4772
4837
  //#endregion
4773
4838
  //#region src/functions/toNumberByMax.ts
4774
- function gr(e, t, n, r) {
4839
+ function yr(e, t, n, r) {
4775
4840
  let i = b(e), a = b(t);
4776
- return t && a < i ? `${_r(a, n, r)}+` : _r(i, n, r);
4841
+ return t && a < i ? `${br(a, n, r)}+` : br(i, n, r);
4777
4842
  }
4778
- var _r = (e, t, n) => t ? new R(n).number(e) : e;
4843
+ var br = (e, t, n) => t ? new R(n).number(e) : e;
4779
4844
  //#endregion
4780
4845
  //#region src/functions/toPercent.ts
4781
- function vr(e, t) {
4846
+ function xr(e, t) {
4782
4847
  return e === 0 ? t : 1 / e * t;
4783
4848
  }
4784
4849
  //#endregion
4785
4850
  //#region src/functions/toPercentBy100.ts
4786
- function yr(e, t) {
4787
- return vr(e, t) * 100;
4851
+ function Sr(e, t) {
4852
+ return xr(e, t) * 100;
4788
4853
  }
4789
4854
  //#endregion
4790
4855
  //#region src/functions/uint8ArrayToBase64.ts
4791
- function br(e) {
4856
+ function Cr(e) {
4792
4857
  let t = "";
4793
4858
  for (let n of e) t += String.fromCharCode(n);
4794
4859
  if (s()) return window.btoa(t);
@@ -4800,7 +4865,7 @@ function br(e) {
4800
4865
  }
4801
4866
  //#endregion
4802
4867
  //#region src/functions/writeClipboardData.ts
4803
- async function xr(e) {
4868
+ async function wr(e) {
4804
4869
  if (s()) try {
4805
4870
  await navigator.clipboard.writeText(e);
4806
4871
  } catch (n) {
@@ -4809,4 +4874,4 @@ async function xr(e) {
4809
4874
  }
4810
4875
  }
4811
4876
  //#endregion
4812
- export { I as Api, N as ApiCache, ze as ApiDataReturn, Be as ApiDefault, Ue as ApiError, Ve as ApiErrorItem, He as ApiErrorStorage, We as ApiHeaders, Ke as ApiHydration, Ze as ApiInstance, F as ApiMethodItem, qe as ApiPreparation, Xe as ApiResponse, P as ApiStatus, Qe as BroadcastMessage, tt as Cache, et as CacheItem, nt as CacheStatic, Ee as Cookie, Ce as CookieBlock, Se as CookieBlockInstance, O as CookieStorage, D as DataStorage, it as Datetime, T as ErrorCenter, le as ErrorCenterHandler, ue as ErrorCenterInstance, Ne as EventItem, ot as Formatters, H as FormattersType, st as GEO_FLAG_ICON_NAME, k as Geo, ct as GeoFlag, ke as GeoInstance, R as GeoIntl, lt as GeoPhone, ut as Global, ft as Hash, dt as HashInstance, ht as Icons, M as Loading, Fe as LoadingInstance, Ot as Meta, G as MetaManager, Et as MetaOg, Ct as MetaOpenGraphAge, xt as MetaOpenGraphAvailability, St as MetaOpenGraphCondition, wt as MetaOpenGraphGender, q as MetaOpenGraphTag, bt as MetaOpenGraphType, yt as MetaRobots, kt as MetaStatic, K as MetaTag, Dt as MetaTwitter, Tt as MetaTwitterCard, J as MetaTwitterTag, At as ResumableTimer, jt as ScrollbarWidth, Wt as SearchList, Lt as SearchListData, Rt as SearchListItem, Ht as SearchListMatcher, Ut as SearchListOptions, E as ServerStorage, Kt as StorageCallback, Zt as TRANSLATE_GLOBAL_PREFIX, Qt as TRANSLATE_TIME_OUT, tn as Translate, $t as TranslateFile, en as TranslateInstance, De as UI_GEO_COOKIE_KEY, nn as UrlItem, It as addTagHighlightMatch, S as anyToString, Yt as applyTemplate, rn as arrFill, ln as blobToBase64, un as capitalize, X as copyObject, dn as copyObjectLite, U as createElement, fn as domQuerySelector, pn as domQuerySelectorAll, W as encodeAttribute, me as encodeLiteAttribute, gn as ensureMaxSize, Y as escapeExp, _n as eventStopPropagation, m as executeFunction, Je as executePromise, r as forEach, vn as frame, yn as getArrayHighlightMatch, bn as getAttributes, xn as getClipboardData, rt as getColumn, Sn as getCurrentDate, Cn as getCurrentTime, A as getElement, Tn as getElementId, Z as getElementImage, gt as getElementItem, je as getElementOrWindow, he as getElementSafeScript, Bt as getExactSearchExp, zt as getExp, Dn as getFirst, ge as getHydrationData, V as getItemByPath, On as getKey, kn as getLength, An as getLengthOfAllArray, jn as getMaxLengthAllArray, Mn as getMinLengthAllArray, Fn as getMouseClient, Nn as getMouseClientX, Pn as getMouseClientY, In as getObjectByKeys, Ln as getObjectNoUndefined, Rn as getObjectOrNone, zn as getOnlyText, Vn as getRandomText, o as getRequestString, Vt as getSearchExp, Mt as getSeparatingSearchExp, Hn as getStepPercent, Un as getStepValue, Gn as goScroll, Kn as goScrollSmooth, qn as goScrollTo, Yn as handleShare, Xn as inArray, En as initGetElementId, Zn as initScrollbarOffset, Qn as intersectKey, Xt as isApiSuccess, i as isArray, $n as isDifferent, ae as isDomData, s as isDomRuntime, er as isElementVisible, nr as isEnter, l as isFilled, rr as isFloat, p as isFunction, Me as isInDom, tr as isInput, ir as isIntegerBetween, c as isNull, g as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, x as isSelected, ar as isSelectedByList, Jn as isShare, d as isString, or as isTab, Ae as isWindow, f as random, sr as removeCommonPrefix, cr as replaceComponentName, $ as replaceRecursive, ur as replaceTemplate, hn as resizeImageByMax, dr as secondToTime, _t as setElementItem, fr as setValues, ee as sleep, pr as splice, Bn as strFill, oe as strSplit, j as toArray, at as toCamelCase, mr as toCamelCaseFirst, L as toDate, hr as toKebabCase, b as toNumber, gr as toNumberByMax, vr as toPercent, yr as toPercentBy100, a as toString, fe as transformation, br as uint8ArrayToBase64, lr as uniqueArray, xr as writeClipboardData };
4877
+ export { I as Api, P as ApiCache, ze as ApiDataReturn, Be as ApiDefault, Ue as ApiError, Ve as ApiErrorItem, He as ApiErrorStorage, We as ApiHeaders, Ke as ApiHydration, Ze as ApiInstance, F as ApiMethodItem, qe as ApiPreparation, Xe as ApiResponse, Le as ApiStatus, Qe as BroadcastMessage, tt as Cache, et as CacheItem, nt as CacheStatic, Te as Cookie, Se as CookieBlock, xe as CookieBlockInstance, k as CookieStorage, O as DataStorage, it as Datetime, T as ErrorCenter, le as ErrorCenterHandler, ue as ErrorCenterInstance, Me as EventItem, ot as Formatters, H as FormattersType, st as GEO_FLAG_ICON_NAME, A as Geo, ct as GeoFlag, Oe as GeoInstance, R as GeoIntl, lt as GeoPhone, ut as Global, pt as Hash, ft as HashInstance, gt as Icons, N as Loading, Pe 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, D as ServerStorage, Yt as StorageCallback, en as TRANSLATE_GLOBAL_PREFIX, tn as TRANSLATE_TIME_OUT, an as Translate, nn as TranslateFile, rn as TranslateInstance, Ee 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 domQuerySelector, hn as domQuerySelectorAll, W as encodeAttribute, pe as encodeLiteAttribute, yn as ensureMaxSize, X as escapeExp, bn as eventStopPropagation, m as executeFunction, Je as executePromise, r as forEach, xn as frame, Sn as getArrayHighlightMatch, Cn as getAttributes, wn as getClipboardData, rt as getColumn, Tn as getCurrentDate, En as getCurrentTime, j as getElement, On as getElementId, gn as getElementImage, _t as getElementItem, Ae as getElementOrWindow, me as getElementSafeScript, Ut as getExactSearchExp, Ht as getExp, An as getFirst, he as getHydrationData, V as getItemByPath, jn as getKey, Mn as getLength, Nn as getLengthOfAllArray, Pn as getMaxLengthAllArray, Fn as getMinLengthAllArray, Rn as getMouseClient, In as getMouseClientX, Ln as getMouseClientY, zn as getObjectByKeys, Bn as getObjectNoUndefined, Vn as getObjectOrNone, Hn as getOnlyText, Wn as getRandomText, o as getRequestString, Wt as getSearchExp, Ft as getSeparatingSearchExp, Gn as getStepPercent, Kn as getStepValue, Jn as goScroll, Yn as goScrollSmooth, Xn as goScrollTo, Qn as handleShare, $n as inArray, kn as initGetElementId, er as initScrollbarOffset, tr as intersectKey, $t as isApiSuccess, i as isArray, nr as isDifferent, ae as isDomData, s as isDomRuntime, rr as isElementVisible, ar as isEnter, l as isFilled, or as isFloat, p as isFunction, je as isInDom, ir as isInput, sr as isIntegerBetween, c as isNull, g as isNumber, t as isObject, n as isObjectNotArray, u as isOnLine, x as isSelected, cr as isSelectedByList, Zn as isShare, d as isString, lr as isTab, ke as isWindow, f as random, ur as removeCommonPrefix, dr as replaceComponentName, $ as replaceRecursive, pr as replaceTemplate, vn as resizeImageByMax, mr as secondToTime, vt as setElementItem, hr as setValues, ee as sleep, gr as splice, Un as strFill, oe as strSplit, M as toArray, at as toCamelCase, _r as toCamelCaseFirst, L as toDate, vr as toKebabCase, b as toNumber, yr as toNumberByMax, xr as toPercent, Sr as toPercentBy100, a as toString, E as transformation, Cr as uint8ArrayToBase64, fr as uniqueArray, wr as writeClipboardData };