@dxtmisha/functional-basic 0.11.2 → 0.12.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.d.ts CHANGED
@@ -13,8 +13,10 @@ export declare function addTagHighlightMatch(value: string, search?: string, cla
13
13
  *
14
14
  * Преобразование значения в строку.
15
15
  * @param value values for conversion/ значения для преобразования
16
+ * @param isArrayString if true, then arrays will be converted to strings/
17
+ * если true, то массивы будут преобразованы в строки
16
18
  */
17
- export declare function anyToString<V>(value: V): string;
19
+ export declare function anyToString<V>(value: V, isArrayString?: boolean): string;
18
20
 
19
21
  /**
20
22
  * Class for working with requests.
@@ -1602,6 +1604,17 @@ export declare type EmptyValue = Undefined | 0 | false | '' | 'undefined' | 'nul
1602
1604
  */
1603
1605
  export declare function encodeAttribute(text: string): string;
1604
1606
 
1607
+ /**
1608
+ * Ensures that an image does not exceed the maximum size by resizing it if needed.
1609
+ *
1610
+ * Гарантирует, что изображение не превышает максимальный размер, изменяя его размер при необходимости.
1611
+ * @param file image file as Uint8Array / файл изображения в виде Uint8Array
1612
+ * @param compress maximum size as a fraction of the original size (default is 0.7)/
1613
+ * максимальный размер в виде доли от оригинального размера (по умолчанию 0.7)
1614
+ * @param type image type (default is 'image/jpeg') / тип изображения (по умолчанию 'image/jpeg')
1615
+ */
1616
+ export declare function ensureMaxSize(file: Uint8Array, compress?: number, type?: string): Promise<string>;
1617
+
1605
1618
  /**
1606
1619
  * Escapes special regex characters in a string so it can be used safely in a RegExp.
1607
1620
  *
@@ -3308,6 +3321,17 @@ export declare function goScrollSmooth<E extends HTMLElement>(element: E, option
3308
3321
  */
3309
3322
  export declare function goScrollTo(element?: HTMLElement, elementTo?: HTMLElement, behavior?: ScrollBehavior): void;
3310
3323
 
3324
+ /**
3325
+ * The method invokes the native sharing mechanism of the device as part of the Web Share API.
3326
+ * If the Web Share API is not supported by the browser or the data cannot be shared, the method returns false.
3327
+ *
3328
+ * Метод вызывает встроенный механизм обмена данными мобильного устройства или операционной системы.
3329
+ * Если Web Share API не поддерживается браузером или данные не могут быть переданы, метод возвращает false.
3330
+ * @param data an object containing data to share/ объект, содержащий данные для обмена
3331
+ * @returns true if the data was shared successfully/ true, если данные были успешно переданы
3332
+ */
3333
+ export declare function handleShare(data: ShareData): Promise<boolean>;
3334
+
3311
3335
  /**
3312
3336
  * Working with data stored in hash.
3313
3337
  *
@@ -3544,6 +3568,17 @@ export declare function isDomData(): boolean;
3544
3568
  */
3545
3569
  export declare function isDomRuntime(): boolean;
3546
3570
 
3571
+ /**
3572
+ * Checks if an element is visible (not hidden by CSS and is in the DOM).
3573
+ * An element can be off-screen and still be considered visible.
3574
+ *
3575
+ * Проверяет, является ли элемент видимым (не скрыт через CSS и находится в DOM).
3576
+ * Элемент может находиться за пределами экрана и при этом считаться видимым.
3577
+ * @param elementSelectors selectors for matching or an Element/ селекторов для сопоставления или Element
3578
+ * @returns true if the element is visible, otherwise false/ true, если элемент является видимым, иначе false
3579
+ */
3580
+ export declare function isElementVisible<E extends ElementOrWindow>(elementSelectors?: ElementOrString<E>): boolean;
3581
+
3547
3582
  /**
3548
3583
  * Checks if the pressed key is Enter or Space.
3549
3584
  *
@@ -3653,6 +3688,14 @@ export declare function isSelected<T, S>(value: T, selected: T | T[] | S): boole
3653
3688
  */
3654
3689
  export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]): boolean;
3655
3690
 
3691
+ /**
3692
+ * Checks if the Web Share API is supported in the current environment.
3693
+ *
3694
+ * Проверяет, поддерживается ли Web Share API в текущей среде.
3695
+ * @returns true if the Web Share API is supported/ true, если Web Share API поддерживается
3696
+ */
3697
+ export declare function isShare(): boolean;
3698
+
3656
3699
  /**
3657
3700
  * Checks if the value is of type string.
3658
3701
  *
@@ -5844,7 +5887,7 @@ export declare const TRANSLATE_GLOBAL_PREFIX = "global";
5844
5887
  * Request timeout for batch loading (ms).
5845
5888
  * Таймаут запроса для пакетной загрузки (мс).
5846
5889
  */
5847
- export declare const TRANSLATE_TIME_OUT = 320;
5890
+ export declare const TRANSLATE_TIME_OUT = 160;
5848
5891
 
5849
5892
  /**
5850
5893
  * Translation code or a list of translation codes for template replacement.
package/dist/library.js CHANGED
@@ -300,14 +300,14 @@ var b = {}, ne = "ui-storage", x = class {
300
300
  S = C, y(C, "storage", new x(re)), y(C, "location", void 0), y(C, "item", void 0), y(C, "language", void 0), y(C, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), S.location = S.findLocation(), S.language = S.findLanguage(S.location), S.item = S.getByCode(S.location);
301
301
  //#endregion
302
302
  //#region src/functions/isWindow.ts
303
- function w(e) {
303
+ function ie(e) {
304
304
  return d() && e === window;
305
305
  }
306
306
  //#endregion
307
307
  //#region src/functions/getElement.ts
308
- function T(e) {
308
+ function w(e) {
309
309
  if (d()) {
310
- if (w(e)) return document.body;
310
+ if (ie(e)) return document.body;
311
311
  if (l(e)) {
312
312
  var t;
313
313
  return (t = document.querySelector(e)) == null ? void 0 : t;
@@ -317,14 +317,14 @@ function T(e) {
317
317
  }
318
318
  //#endregion
319
319
  //#region src/functions/getElementOrWindow.ts
320
- function ie(e) {
321
- return w(e) ? e : T(e);
320
+ function T(e) {
321
+ return ie(e) ? e : w(e);
322
322
  }
323
323
  //#endregion
324
324
  //#region src/functions/isInDom.ts
325
325
  function ae(e) {
326
326
  var t;
327
- return !!((t = T(e)) != null && t.closest("html"));
327
+ return !!((t = w(e)) != null && t.closest("html"));
328
328
  }
329
329
  //#endregion
330
330
  //#region src/functions/toArray.ts
@@ -333,14 +333,14 @@ function E(e) {
333
333
  }
334
334
  //#endregion
335
335
  //#region src/classes/EventItem.ts
336
- var D = class {
336
+ var oe = class {
337
337
  constructor(e, t = ["click"], r, i, a) {
338
338
  y(this, "element", void 0), y(this, "elementControl", void 0), y(this, "elementControlEdit", void 0), y(this, "type", void 0), y(this, "listenerRecent", (e) => {
339
339
  if (ae(this.elementControl)) {
340
340
  var t, r;
341
341
  (t = this.listener) == null || t.call(this.element, e, this.detail), n(this.options) && (r = this.options) != null && r.once && this.stop();
342
342
  } else this.stop();
343
- }), y(this, "activity", !1), y(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = ie(e), this.elementControl = T(e), this.type = E(t);
343
+ }), y(this, "activity", !1), y(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = T(e), this.elementControl = w(e), this.type = E(t);
344
344
  }
345
345
  isActive() {
346
346
  return this.activity;
@@ -349,11 +349,11 @@ var D = class {
349
349
  return this.element;
350
350
  }
351
351
  setElement(e) {
352
- let t = ie(e);
353
- return this.elementControlEdit || (this.elementControl = T(e)), this.element = t, this.reset(), this;
352
+ let t = T(e);
353
+ return this.elementControlEdit || (this.elementControl = w(e)), this.element = t, this.reset(), this;
354
354
  }
355
355
  setElementControl(e) {
356
- return this.elementControl = T(e), this.elementControlEdit = !o(this.elementControl), this.elementControlEdit || (this.elementControl = T(this.element)), this;
356
+ return this.elementControl = w(e), this.elementControlEdit = !o(this.elementControl), this.elementControlEdit || (this.elementControl = w(this.element)), this;
357
357
  }
358
358
  setType(e) {
359
359
  return this.type = E(e), this.reset(), this;
@@ -425,7 +425,7 @@ var D = class {
425
425
  }
426
426
  return !1;
427
427
  }
428
- }, oe, se = "ui-loading", O = class {
428
+ }, se, ce = "ui-loading", D = class {
429
429
  static is() {
430
430
  return this.value > 0;
431
431
  }
@@ -440,7 +440,7 @@ var D = class {
440
440
  }
441
441
  static registrationEvent(e, t) {
442
442
  if (d()) {
443
- let n = new D(window, se, e).setElementControl(t).start();
443
+ let n = new oe(window, ce, e).setElementControl(t).start();
444
444
  this.registrationList.push({
445
445
  item: n,
446
446
  listener: e,
@@ -456,10 +456,10 @@ var D = class {
456
456
  (e = this.event) == null || e.dispatch({ loading: this.is() });
457
457
  }
458
458
  };
459
- oe = O, y(O, "value", 0), y(O, "event", void 0), y(O, "registrationList", []), d() && (oe.event = new D(window, se));
459
+ se = D, y(D, "value", 0), y(D, "event", void 0), y(D, "registrationList", []), d() && (se.event = new oe(window, ce));
460
460
  //#endregion
461
461
  //#region src/classes/ApiHeaders.ts
462
- var ce = class {
462
+ var le = class {
463
463
  constructor() {
464
464
  y(this, "headers", {});
465
465
  }
@@ -472,9 +472,9 @@ var ce = class {
472
472
  set(e) {
473
473
  return c(e) && (this.headers = e), this;
474
474
  }
475
- }, k = /* @__PURE__ */ function(e) {
475
+ }, O = /* @__PURE__ */ function(e) {
476
476
  return e.get = "GET", e.post = "POST", e.put = "PUT", e.delete = "DELETE", e;
477
- }({}), le = class {
477
+ }({}), ue = class {
478
478
  constructor() {
479
479
  y(this, "value", void 0);
480
480
  }
@@ -498,7 +498,7 @@ var ce = class {
498
498
  addByFormData(e, t) {
499
499
  for (let n in t) e.has(n) || e.set(n, t[n]);
500
500
  }
501
- }, A = class {
501
+ }, k = class {
502
502
  constructor() {
503
503
  y(this, "value", void 0);
504
504
  }
@@ -556,18 +556,18 @@ var ce = class {
556
556
  };
557
557
  //#endregion
558
558
  //#region src/functions/executePromise.ts
559
- async function ue(e) {
559
+ async function de(e) {
560
560
  let t = g(e);
561
561
  return t instanceof Promise ? await t : t;
562
562
  }
563
563
  //#endregion
564
564
  //#region src/functions/random.ts
565
- function j(e, t) {
565
+ function A(e, t) {
566
566
  return Math.floor(Math.random() * (t - e + 1) + e);
567
567
  }
568
568
  //#endregion
569
569
  //#region src/classes/ApiResponse.ts
570
- var de = "d-response-loading", fe = class {
570
+ var fe = "d-response-loading", pe = class {
571
571
  constructor(e) {
572
572
  y(this, "first", []), y(this, "response", []), y(this, "loading", void 0), y(this, "devMode", !1), this.requestDefault = e;
573
573
  }
@@ -584,7 +584,7 @@ var de = "d-response-loading", fe = class {
584
584
  return this.devMode = e, this;
585
585
  }
586
586
  async emulator(e) {
587
- let { path: t = "", method: n = k.get, global: r = n === k.get, devMode: i = !1 } = e;
587
+ let { path: t = "", method: n = O.get, global: r = n === O.get, devMode: i = !1 } = e;
588
588
  if (r || this.isDevMode(i)) {
589
589
  let r = this.requestDefault.request(e.request), a = this.get(t, n, r, i);
590
590
  if (a) {
@@ -611,22 +611,22 @@ var de = "d-response-loading", fe = class {
611
611
  }
612
612
  fetch(e, t) {
613
613
  return this.startResponseLoading(), new Promise((n) => {
614
- ue(h(e.response) ? e.response(t) : e.response).then((t) => {
615
- e != null && e.lag ? (O.show(), setTimeout(() => {
616
- this.stopResponseLoading(), n(t), O.hide();
617
- }, j(0, 2e3))) : (this.stopResponseLoading(), n(t));
614
+ de(h(e.response) ? e.response(t) : e.response).then((t) => {
615
+ e != null && e.lag ? (D.show(), setTimeout(() => {
616
+ this.stopResponseLoading(), n(t), D.hide();
617
+ }, A(0, 2e3))) : (this.stopResponseLoading(), n(t));
618
618
  });
619
619
  });
620
620
  }
621
621
  startResponseLoading() {
622
- this.loading && clearTimeout(this.loading), d() && document.body.classList.add(de);
622
+ this.loading && clearTimeout(this.loading), d() && document.body.classList.add(fe);
623
623
  }
624
624
  stopResponseLoading() {
625
625
  this.loading = setTimeout(() => {
626
- this.loading = void 0, d() && document.body.classList.remove(de);
626
+ this.loading = void 0, d() && document.body.classList.remove(fe);
627
627
  }, 1200);
628
628
  }
629
- }, pe = class {
629
+ }, me = class {
630
630
  constructor() {
631
631
  y(this, "callback", void 0), y(this, "callbackEnd", void 0), y(this, "loading", !1);
632
632
  }
@@ -654,7 +654,7 @@ var de = "d-response-loading", fe = class {
654
654
  let n = {};
655
655
  return this.callbackEnd && (n = await this.callbackEnd(e, t)), n;
656
656
  }
657
- }, me, M = class e {
657
+ }, he, j = class e {
658
658
  static isLocalhost() {
659
659
  return typeof location > "u" || location.hostname === "localhost";
660
660
  }
@@ -667,12 +667,12 @@ var de = "d-response-loading", fe = class {
667
667
  static getUrl(e, t = !0) {
668
668
  return `${t ? this.url : ""}${e}`.replace("{locale}", C.getLocation()).replace("{country}", C.getCountry()).replace("{language}", C.getLanguage());
669
669
  }
670
- static getBody(e = {}, t = k.get) {
670
+ static getBody(e = {}, t = O.get) {
671
671
  if (e instanceof FormData) return e;
672
- if (t !== k.get && s(e)) return l(e) ? e : JSON.stringify(e);
672
+ if (t !== O.get && s(e)) return l(e) ? e : JSON.stringify(e);
673
673
  }
674
- static getBodyForGet(e, t = "", n = k.get) {
675
- if (n === k.get) {
674
+ static getBodyForGet(e, t = "", n = O.get) {
675
+ if (n === O.get) {
676
676
  let n = t.match(/\?/) ? "&" : "?", r = typeof e == "object" ? i(e) : e;
677
677
  if (s(r)) return `${n}${r}`;
678
678
  }
@@ -697,38 +697,38 @@ var de = "d-response-loading", fe = class {
697
697
  return l(e) ? await this.fetch({ path: e }) : await this.fetch(e);
698
698
  }
699
699
  static get(e) {
700
- return this.request(t(e, { method: k.get }));
700
+ return this.request(t(e, { method: O.get }));
701
701
  }
702
702
  static post(e) {
703
- return this.request(t(e, { method: k.post }));
703
+ return this.request(t(e, { method: O.post }));
704
704
  }
705
705
  static put(e) {
706
- return this.request(t(e, { method: k.put }));
706
+ return this.request(t(e, { method: O.put }));
707
707
  }
708
708
  static delete(e) {
709
- return this.request(t(e, { method: k.delete }));
709
+ return this.request(t(e, { method: O.delete }));
710
710
  }
711
711
  static async fetch(e) {
712
712
  let { toData: t = !0, hideError: n = !1, queryReturn: r = void 0, globalPreparation: i = !0, globalEnd: a = !0 } = e, o = await this.response.emulator(e);
713
713
  if (o) return o;
714
- let s = new A(), c;
715
- O.show();
714
+ let s = new k(), c;
715
+ D.show();
716
716
  try {
717
717
  await this.preparation.make(i, e);
718
718
  let t = await this.makeQuery(e), n = await this.preparation.makeEnd(a, t, e);
719
- if (s.setStatus(t.status, t.statusText), this.status.setStatus(t.status, t.statusText), n != null && n.reset) return O.hide(), await this.fetch(e);
719
+ if (s.setStatus(t.status, t.statusText), this.status.setStatus(t.status, t.statusText), n != null && n.reset) return D.hide(), await this.fetch(e);
720
720
  c = await this.readData(t, r, n);
721
721
  } catch (e) {
722
- throw n || console.error("Api: ", e), s.setError(String(e)), this.status.setError(String(e)), O.hide(), e;
722
+ throw n || console.error("Api: ", e), s.setError(String(e)), this.status.setError(String(e)), D.hide(), e;
723
723
  }
724
- return O.hide(), s.setLastResponse(c), this.status.setLastResponse(c), this.makeStatus(this.makeData(c, t), s);
724
+ return D.hide(), s.setLastResponse(c), this.status.setLastResponse(c), this.makeStatus(this.makeData(c, t), s);
725
725
  }
726
726
  static async readData(e, t, n) {
727
727
  var r;
728
728
  return t ? await t(e) : "data" in n ? n.data : ((r = e.headers.get("Content-Type")) == null ? "" : r).match("application/json") ? await e.json() : { data: await e.text() };
729
729
  }
730
730
  static async makeQuery(e) {
731
- let n = this.requestDefault.request(e.request), { api: r = !0, path: i = "", pathFull: a = void 0, method: o = k.get, headers: s = {}, type: c = "application/json;charset=UTF-8", init: l = {}, controller: u = void 0 } = e, d = a == null ? this.getUrl(i, r) : a, f = `${d}${this.getBodyForGet(n, d, o)}`, p = this.headers.get(s, c), m = t(l, {
731
+ let n = this.requestDefault.request(e.request), { api: r = !0, path: i = "", pathFull: a = void 0, method: o = O.get, headers: s = {}, type: c = "application/json;charset=UTF-8", init: l = {}, controller: u = void 0 } = e, d = a == null ? this.getUrl(i, r) : a, f = `${d}${this.getBodyForGet(n, d, o)}`, p = this.headers.get(s, c), m = t(l, {
732
732
  method: o,
733
733
  body: this.getBody(n, o)
734
734
  });
@@ -747,10 +747,10 @@ var de = "d-response-loading", fe = class {
747
747
  } : e;
748
748
  }
749
749
  };
750
- me = M, y(M, "url", "/api/"), y(M, "headers", new ce()), y(M, "requestDefault", new le()), y(M, "status", new A()), y(M, "response", new fe(me.requestDefault)), y(M, "preparation", new pe());
750
+ he = j, y(j, "url", "/api/"), y(j, "headers", new le()), y(j, "requestDefault", new ue()), y(j, "status", new k()), y(j, "response", new pe(he.requestDefault)), y(j, "preparation", new me());
751
751
  //#endregion
752
752
  //#region src/classes/BroadcastMessage.ts
753
- var he = class {
753
+ var ge = class {
754
754
  constructor(e, t, n) {
755
755
  if (y(this, "channel", void 0), y(this, "update", (e) => {
756
756
  var t;
@@ -759,7 +759,7 @@ var he = class {
759
759
  var t;
760
760
  return (t = this.callbackError) == null || t.call(this, e), this;
761
761
  }), this.callback = t, this.callbackError = n, d()) try {
762
- this.channel = new BroadcastChannel(`${ge()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
762
+ this.channel = new BroadcastChannel(`${_e()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
763
763
  } catch (t) {
764
764
  console.error(`BroadcastMessage ${e}:`, t);
765
765
  }
@@ -777,7 +777,7 @@ var he = class {
777
777
  setCallbackError(e) {
778
778
  return this.callbackError = e, this;
779
779
  }
780
- }, ge = () => new x("__broadcast-name").get(() => `name_${j(1e6, 9999999)}`), _e = class {
780
+ }, _e = () => new x("__broadcast-name").get(() => `name_${A(1e6, 9999999)}`), ve = class {
781
781
  constructor(e) {
782
782
  y(this, "cache", void 0), y(this, "cacheOld", void 0), y(this, "comparisons", []), this.callback = e;
783
783
  }
@@ -799,7 +799,7 @@ var he = class {
799
799
  isUpdate(e) {
800
800
  return this.cache === void 0 || this.comparisons.length !== e.length || this.comparisons.findIndex((t, n) => t !== e[n]) >= 0 ? (this.comparisons = [...e], !0) : !1;
801
801
  }
802
- }, ve = class {
802
+ }, ye = class {
803
803
  constructor() {
804
804
  y(this, "cache", {});
805
805
  }
@@ -810,17 +810,17 @@ var he = class {
810
810
  return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
811
811
  }
812
812
  getCacheItem(e, t) {
813
- return e in this.cache || (this.cache[e] = new _e(t)), this.cache[e];
813
+ return e in this.cache || (this.cache[e] = new ve(t)), this.cache[e];
814
814
  }
815
- }, ye, be = class {
815
+ }, be, xe = class {
816
816
  static get(e, t, n) {
817
817
  return this.cache.get(e, t, n);
818
818
  }
819
819
  };
820
- ye = be, y(be, "cache", void 0), ye.cache = new ve();
820
+ be = xe, y(xe, "cache", void 0), be.cache = new ye();
821
821
  //#endregion
822
822
  //#region src/functions/transformation.ts
823
- function xe(e, t = !1) {
823
+ function Se(e, t = !1) {
824
824
  if (typeof e == "string") {
825
825
  let r = e.trim();
826
826
  switch (r) {
@@ -844,7 +844,7 @@ function xe(e, t = !1) {
844
844
  }
845
845
  //#endregion
846
846
  //#region src/classes/CookieBlock.ts
847
- var Se = "cookie-block", Ce = class {
847
+ var Ce = "cookie-block", we = class {
848
848
  static get() {
849
849
  var e;
850
850
  return (e = this.storage.get()) == null ? !1 : e;
@@ -853,13 +853,13 @@ var Se = "cookie-block", Ce = class {
853
853
  this.storage.set(e);
854
854
  }
855
855
  };
856
- y(Ce, "storage", new x(Se));
856
+ y(we, "storage", new x(Ce));
857
857
  //#endregion
858
858
  //#region src/classes/Cookie.ts
859
- var we, Te = {}, Ee = class {
859
+ var Te, M = {}, Ee = class {
860
860
  constructor(e) {
861
- if (y(this, "value", void 0), y(this, "options", {}), this.name = e, e in De) return De[e];
862
- this.value = Te == null ? void 0 : Te[e], De[e] = this;
861
+ if (y(this, "value", void 0), y(this, "options", {}), this.name = e, e in N) return N[e];
862
+ this.value = M == null ? void 0 : M[e], N[e] = this;
863
863
  }
864
864
  get(e, t) {
865
865
  return this.value === void 0 && e && this.set(e, t), this.value;
@@ -875,7 +875,7 @@ var we, Te = {}, Ee = class {
875
875
  return (e = (t = this.options) == null ? void 0 : t.age) == null ? 10080 * 60 : e;
876
876
  }
877
877
  update() {
878
- if (d() && !_() && !Ce.get()) {
878
+ if (d() && !_() && !we.get()) {
879
879
  var e, t, n, r, i;
880
880
  let a = String((e = this.value) == null ? "" : e);
881
881
  document.cookie = [
@@ -889,15 +889,15 @@ var we, Te = {}, Ee = class {
889
889
  static updateData() {
890
890
  for (let e of document.cookie.split(";")) {
891
891
  let [t, n] = e.trim().split("=");
892
- t && s(n) && (Te[t] = xe(n));
892
+ t && s(n) && (M[t] = Se(n));
893
893
  }
894
894
  }
895
895
  };
896
- we = Ee, d() && !_() && we.updateData();
897
- var De = {};
896
+ Te = Ee, d() && !_() && Te.updateData();
897
+ var N = {};
898
898
  //#endregion
899
899
  //#region src/functions/toDate.ts
900
- function N(e) {
900
+ function P(e) {
901
901
  var t, n, r, i, a, s, c, l;
902
902
  if (e instanceof Date) return e;
903
903
  if (o(e)) return /* @__PURE__ */ new Date();
@@ -909,20 +909,20 @@ function N(e) {
909
909
  }
910
910
  //#endregion
911
911
  //#region src/functions/getColumn.ts
912
- function Oe(e, t) {
912
+ function De(e, t) {
913
913
  return r(e, (e) => e == null ? void 0 : e[t], !0);
914
914
  }
915
915
  //#endregion
916
916
  //#region src/classes/GeoIntl.ts
917
- var P = class e {
917
+ var F = class e {
918
918
  static getInstance(t = C.getLocation()) {
919
919
  return new e(t);
920
920
  }
921
921
  constructor(e = C.getLocation()) {
922
922
  y(this, "geo", void 0), this.geo = C.find(e);
923
923
  let t = this.getLocation();
924
- if (t in F) return F[t];
925
- F[t] = this;
924
+ if (t in I) return I[t];
925
+ I[t] = this;
926
926
  }
927
927
  getLocation() {
928
928
  return this.geo.standard;
@@ -993,7 +993,7 @@ var P = class e {
993
993
  }, i = e.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...e) => (r.currency = String(e[2]).toUpperCase(), String(e[1])));
994
994
  if (n) {
995
995
  let t = this.numberObject(r);
996
- return t ? Oe(t.formatToParts(p(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
996
+ return t ? De(t.formatToParts(p(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
997
997
  } else if ("currency" in r) return this.number(typeof e == "number" ? e : i, r);
998
998
  else return this.number(typeof e == "number" ? e : i, {
999
999
  ...r,
@@ -1070,18 +1070,18 @@ var P = class e {
1070
1070
  return `${this.number(a, r)} ${(i = o == null ? void 0 : o[0]) == null ? "" : i}`.trim();
1071
1071
  }
1072
1072
  date(e, t, n, r) {
1073
- let i = N(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
1073
+ let i = P(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
1074
1074
  return r && (o.hour12 = !1), a || Object.assign(o, n), i.toLocaleString(this.getLocation(), o);
1075
1075
  }
1076
1076
  relative(e, t, n) {
1077
- let r = N(e), i = n || /* @__PURE__ */ new Date(), a = {
1077
+ let r = P(e), i = n || /* @__PURE__ */ new Date(), a = {
1078
1078
  numeric: "auto",
1079
1079
  ...typeof t == "string" ? { style: t } : t || {}
1080
1080
  }, o = "second", s = (r.getTime() - i.getTime()) / 1e3;
1081
1081
  return Math.abs(s) >= 60 && (o = "minute", s /= 60, Math.abs(s) >= 60 && (o = "hour", s /= 60, Math.abs(s) >= 24 && (o = "day", s /= 24, Math.abs(s) >= 30 && (o = "month", s /= 30, Math.abs(s) >= 12 && (o = "year", s /= 12))))), this.relativeByValue(s, o, a);
1082
1082
  }
1083
1083
  relativeLimit(e, t, n, r, i, a, o) {
1084
- let s = N(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
1084
+ let s = P(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
1085
1085
  return l.setDate(c.getDate() - t), u.setDate(c.getDate() + t), s >= l && s <= u ? this.relative(s, r, c) : this.date(s, a, i, o);
1086
1086
  }
1087
1087
  relativeByValue(e, t, n) {
@@ -1098,7 +1098,7 @@ var P = class e {
1098
1098
  }
1099
1099
  month(e, t) {
1100
1100
  try {
1101
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(N(e));
1101
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(P(e));
1102
1102
  } catch (e) {
1103
1103
  console.error("month: ", e);
1104
1104
  }
@@ -1124,7 +1124,7 @@ var P = class e {
1124
1124
  }
1125
1125
  weekday(e, t) {
1126
1126
  try {
1127
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(N(e));
1127
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(P(e));
1128
1128
  } catch (e) {
1129
1129
  console.error("weekday: ", e);
1130
1130
  }
@@ -1214,12 +1214,12 @@ var P = class e {
1214
1214
  "second"
1215
1215
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
1216
1216
  }
1217
- }, F = {}, ke = class e {
1217
+ }, I = {}, Oe = class e {
1218
1218
  constructor(e, t = "date", n = C.getLocation()) {
1219
- y(this, "date", void 0), y(this, "hour24", !1), y(this, "watch", void 0), this.type = t, this.code = n, this.date = N(e);
1219
+ y(this, "date", void 0), y(this, "hour24", !1), y(this, "watch", void 0), this.type = t, this.code = n, this.date = P(e);
1220
1220
  }
1221
1221
  getIntl() {
1222
- return new P(this.code);
1222
+ return new F(this.code);
1223
1223
  }
1224
1224
  getDate() {
1225
1225
  return this.date;
@@ -1322,7 +1322,7 @@ var P = class e {
1322
1322
  ].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${t ? n.getTimeZone() : ""}` : ""}`;
1323
1323
  }
1324
1324
  setDate(e) {
1325
- return this.date = N(e), this.update(), this;
1325
+ return this.date = P(e), this.update(), this;
1326
1326
  }
1327
1327
  setType(e) {
1328
1328
  return this.type = e, this.update(), this;
@@ -1478,36 +1478,36 @@ var P = class e {
1478
1478
  };
1479
1479
  //#endregion
1480
1480
  //#region src/functions/anyToString.ts
1481
- function I(e) {
1482
- var t;
1483
- return l(e) ? e.trim() : a(e) && e.findIndex((e) => n(e)) === -1 ? e.join(",") : n(e) ? JSON.stringify(e) : e === !0 ? "1" : e === !1 ? "0" : (t = e == null ? void 0 : e.toString()) == null ? "" : t;
1481
+ function L(e, t = !0) {
1482
+ var r;
1483
+ return l(e) ? e.trim() : a(e) && e.findIndex((e) => n(e)) === -1 && t ? e.join(",") : n(e) ? JSON.stringify(e) : e === !0 ? "1" : e === !1 ? "0" : (r = e == null ? void 0 : e.toString()) == null ? "" : r;
1484
1484
  }
1485
1485
  //#endregion
1486
1486
  //#region src/functions/strSplit.ts
1487
- function Ae(e, t, n) {
1488
- let r = I(e);
1487
+ function ke(e, t, n) {
1488
+ let r = L(e);
1489
1489
  if (!n || n <= 0) return r.split(t);
1490
1490
  let i = r.split(t, n), a = r.split(t);
1491
1491
  return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
1492
1492
  }
1493
1493
  //#endregion
1494
1494
  //#region src/functions/getItemByPath.ts
1495
- function L(e, t) {
1495
+ function R(e, t) {
1496
1496
  var r;
1497
1497
  if (!s(t)) return;
1498
- let i = Ae(t, ".", 2), a = i[0];
1499
- return a && e != null && e[a] && n(e[a]) && i != null && i[1] ? L(e[a], i[1]) : (r = s(a) && (e == null ? void 0 : e[a])) == null ? void 0 : r;
1498
+ let i = ke(t, ".", 2), a = i[0];
1499
+ return a && e != null && e[a] && n(e[a]) && i != null && i[1] ? R(e[a], i[1]) : (r = s(a) && (e == null ? void 0 : e[a])) == null ? void 0 : r;
1500
1500
  }
1501
1501
  //#endregion
1502
1502
  //#region src/functions/toCamelCase.ts
1503
- function je(e) {
1503
+ function Ae(e) {
1504
1504
  return e.toString().trim().replace(/[^\w-. ]+/g, "").replace(/[ .]+/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (e) => `${e.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...e) => `${String(e[1]).toUpperCase()}`).replace(/^([A-Z])/, (e) => `${e.toLowerCase()}`);
1505
1505
  }
1506
1506
  //#endregion
1507
1507
  //#region src/types/formattersTypes.ts
1508
- var R = /* @__PURE__ */ function(e) {
1508
+ var z = /* @__PURE__ */ function(e) {
1509
1509
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
1510
- }({}), Me = class {
1510
+ }({}), je = class {
1511
1511
  constructor(e, t) {
1512
1512
  this.options = e, this.list = t;
1513
1513
  }
@@ -1539,45 +1539,45 @@ var R = /* @__PURE__ */ function(e) {
1539
1539
  getFormatData(e) {
1540
1540
  let t = {};
1541
1541
  return r(this.options, (n, r) => {
1542
- let i = `${je(r)}Format`, a = L(e, r);
1542
+ let i = `${Ae(r)}Format`, a = R(e, r);
1543
1543
  n != null && n.transformation ? s(a) ? t[i] = n.transformation(a, e, n.options) : t[i] = "" : t[i] = this.transformation(a, e, n.type, n.options);
1544
1544
  }), t;
1545
1545
  }
1546
1546
  transformation(e, t, n, r) {
1547
- if (s(e) || n === R.name) switch (n) {
1548
- case R.currency: return this.formatCurrency(e, t, r);
1549
- case R.date: return this.formatDate(e, r);
1550
- case R.name: return this.formatName(t, r);
1551
- case R.number: return this.formatNumber(e, r);
1552
- case R.plural: return this.formatPlural(e, r);
1553
- case R.unit: return this.formatUnit(e, r);
1547
+ if (s(e) || n === z.name) switch (n) {
1548
+ case z.currency: return this.formatCurrency(e, t, r);
1549
+ case z.date: return this.formatDate(e, r);
1550
+ case z.name: return this.formatName(t, r);
1551
+ case z.number: return this.formatNumber(e, r);
1552
+ case z.plural: return this.formatPlural(e, r);
1553
+ case z.unit: return this.formatUnit(e, r);
1554
1554
  default: return String(e);
1555
1555
  }
1556
1556
  return "";
1557
1557
  }
1558
1558
  formatCurrency(e, t, n) {
1559
1559
  var r;
1560
- let i = n != null && n.currencyPropName ? L(t, n.currencyPropName) : t == null ? void 0 : t.currency;
1561
- return P.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
1560
+ let i = n != null && n.currencyPropName ? R(t, n.currencyPropName) : t == null ? void 0 : t.currency;
1561
+ return F.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
1562
1562
  }
1563
1563
  formatDate(e, t) {
1564
- return P.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
1564
+ return F.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
1565
1565
  }
1566
1566
  formatName(e, t) {
1567
1567
  var n, r, i;
1568
- let a = L(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = L(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = L(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
1569
- return a && o ? P.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
1568
+ let a = R(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = R(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = R(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
1569
+ return a && o ? F.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
1570
1570
  }
1571
1571
  formatNumber(e, t) {
1572
- return P.getInstance().number(e, t == null ? void 0 : t.options);
1572
+ return F.getInstance().number(e, t == null ? void 0 : t.options);
1573
1573
  }
1574
1574
  formatPlural(e, t) {
1575
- return t && t.words ? P.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
1575
+ return t && t.words ? F.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
1576
1576
  }
1577
1577
  formatUnit(e, t) {
1578
- return t && t.unit ? P.getInstance().unit(e, t.unit) : e;
1578
+ return t && t.unit ? F.getInstance().unit(e, t.unit) : e;
1579
1579
  }
1580
- }, Ne = "f", Pe = class e {
1580
+ }, Me = "f", Ne = class e {
1581
1581
  constructor(e = C.getLocation()) {
1582
1582
  this.code = e;
1583
1583
  }
@@ -1618,7 +1618,7 @@ var R = /* @__PURE__ */ function(e) {
1618
1618
  return this.code = e, this;
1619
1619
  }
1620
1620
  getLocation() {
1621
- return new P(this.code);
1621
+ return new F(this.code);
1622
1622
  }
1623
1623
  getCodes(t) {
1624
1624
  return t == null ? Object.keys(e.flags) : t;
@@ -1630,7 +1630,7 @@ var R = /* @__PURE__ */ function(e) {
1630
1630
  return this.getLocation().countryName(e.country);
1631
1631
  }
1632
1632
  };
1633
- y(Pe, "flags", {
1633
+ y(Ne, "flags", {
1634
1634
  AD: "f-ad",
1635
1635
  AE: "f-ae",
1636
1636
  AF: "f-af",
@@ -1875,7 +1875,7 @@ y(Pe, "flags", {
1875
1875
  });
1876
1876
  //#endregion
1877
1877
  //#region src/classes/GeoPhone.ts
1878
- var Fe, z = class {
1878
+ var Pe, B = class {
1879
1879
  static get(e) {
1880
1880
  return this.list.find((t) => e === t.value);
1881
1881
  }
@@ -1971,17 +1971,17 @@ var Fe, z = class {
1971
1971
  return e.replace(/\*/, this.getWithinSymbol(t));
1972
1972
  }
1973
1973
  };
1974
- Fe = z, y(z, "list", []), y(z, "map", {}), Fe.makeList(), Fe.makeMap();
1974
+ Pe = B, y(B, "list", []), y(B, "map", {}), Pe.makeList(), Pe.makeMap();
1975
1975
  //#endregion
1976
1976
  //#region src/classes/Global.ts
1977
- var B, Ie = class {
1977
+ var V, Fe = class {
1978
1978
  static get(e) {
1979
- return B && (B == null ? void 0 : B[e]);
1979
+ return V && (V == null ? void 0 : V[e]);
1980
1980
  }
1981
1981
  static add(e) {
1982
- B === void 0 && (B = t(e));
1982
+ V === void 0 && (V = t(e));
1983
1983
  }
1984
- }, Le, V = class {
1984
+ }, Ie, H = class {
1985
1985
  static get(e, t) {
1986
1986
  return !(e in this.hash) && t && this.set(e, t), this.hash[e];
1987
1987
  }
@@ -2009,7 +2009,7 @@ var B, Ie = class {
2009
2009
  }
2010
2010
  static getLocation() {
2011
2011
  let e = {};
2012
- return location.hash.replace(/([\w-]+)[:=]([^;]+)/gi, (...t) => (e[String(t[1])] = xe(t[2]), "")), e;
2012
+ return location.hash.replace(/([\w-]+)[:=]([^;]+)/gi, (...t) => (e[String(t[1])] = Se(t[2]), "")), e;
2013
2013
  }
2014
2014
  static update() {
2015
2015
  this.block = !0, history.replaceState(null, "", `#${i(this.hash, "=", ";")}`), requestAnimationFrame(() => {
@@ -2023,10 +2023,10 @@ var B, Ie = class {
2023
2023
  });
2024
2024
  }
2025
2025
  };
2026
- Le = V, y(V, "hash", {}), y(V, "watch", {}), y(V, "block", !1), d() && (Le.reload(), addEventListener("hashchange", () => Le.reload()));
2026
+ Ie = H, y(H, "hash", {}), y(H, "watch", {}), y(H, "block", !1), d() && (Ie.reload(), addEventListener("hashchange", () => Ie.reload()));
2027
2027
  //#endregion
2028
2028
  //#region src/classes/Icons.ts
2029
- var Re, H = "__UI_ICON", ze = 320, Be = "--LOAD--", U = class {
2029
+ var Le, Re = "__UI_ICON", ze = 320, Be = "--LOAD--", U = class {
2030
2030
  static is(e) {
2031
2031
  return e in this.icons || this.getName(e) in this.icons;
2032
2032
  }
@@ -2039,7 +2039,7 @@ var Re, H = "__UI_ICON", ze = 320, Be = "--LOAD--", U = class {
2039
2039
  return r(this.icons, (e, t) => t.replace(/^@/, ""));
2040
2040
  }
2041
2041
  static getUrlGlobal() {
2042
- return `${M.isLocalhost(), ""}${this.url}`;
2042
+ return `${j.isLocalhost(), ""}${this.url}`;
2043
2043
  }
2044
2044
  static add(e, t) {
2045
2045
  this.icons[this.getName(e)] = t;
@@ -2063,17 +2063,17 @@ var Re, H = "__UI_ICON", ze = 320, Be = "--LOAD--", U = class {
2063
2063
  return new Promise((e) => setTimeout(() => e(), ze));
2064
2064
  }
2065
2065
  };
2066
- Re = U, y(U, "icons", {}), y(U, "url", "/icons/"), d() && (H in window || (window[H] = {}), Re.icons = window[H]);
2066
+ Le = U, y(U, "icons", {}), y(U, "url", "/icons/"), d() && (Re in window || (window[Re] = {}), Le.icons = window[Re]);
2067
2067
  //#endregion
2068
2068
  //#region src/functions/getElementItem.ts
2069
2069
  function Ve(e, t, n) {
2070
2070
  var r, i;
2071
- return (r = (i = T(e)) == null ? void 0 : i[t]) == null ? n : r;
2071
+ return (r = (i = w(e)) == null ? void 0 : i[t]) == null ? n : r;
2072
2072
  }
2073
2073
  //#endregion
2074
2074
  //#region src/functions/setElementItem.ts
2075
2075
  function He(e, t, i) {
2076
- let a = T(e);
2076
+ let a = w(e);
2077
2077
  if (a) {
2078
2078
  let e = Ve(a, t);
2079
2079
  if (n(e) && n(i)) r(i, (t, n) => {
@@ -2441,8 +2441,8 @@ var nt = class {
2441
2441
  toFormatItem(e, t) {
2442
2442
  let n = {};
2443
2443
  return this.columns && this.columns.forEach((r) => {
2444
- let i = this.getColumnName(r), a = L(e, r);
2445
- n[i] = s(a) && t ? this.addTag(a) : I(a);
2444
+ let i = this.getColumnName(r), a = R(e, r);
2445
+ n[i] = s(a) && t ? this.addTag(a) : L(a);
2446
2446
  }), {
2447
2447
  ...e,
2448
2448
  ...n,
@@ -2453,7 +2453,7 @@ var nt = class {
2453
2453
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
2454
2454
  }
2455
2455
  addTag(e) {
2456
- return tt(I(e), this.item.get(), this.options.getClassName());
2456
+ return tt(L(e), this.item.get(), this.options.getClassName());
2457
2457
  }
2458
2458
  generateCache() {
2459
2459
  if (!this.isList()) return [];
@@ -2461,8 +2461,8 @@ var nt = class {
2461
2461
  for (let t of this.list) {
2462
2462
  let n = "";
2463
2463
  if (this.columns) for (let e of this.columns) {
2464
- let r = L(t, e);
2465
- s(r) && (n += ` ${I(r)}`);
2464
+ let r = R(t, e);
2465
+ s(r) && (n += ` ${L(r)}`);
2466
2466
  }
2467
2467
  e.push({
2468
2468
  item: t,
@@ -2639,7 +2639,7 @@ var st = class {
2639
2639
  return c(t) && r(t, (e, t) => {
2640
2640
  n = n.replace(RegExp(`(?:\\[|\\{)${t}(?:\\]|\\})(.*?)(?:\\[|\\{)\\/${t}(?:\\]|\\})`, "g"), (t, n) => String(e).replace(/(?:\[|\{)content(?:\]|\})/g, n)).replace(RegExp(`(?:\\[|\\{)${t}(?:\\]|\\})`, "g"), String(e));
2641
2641
  }), n;
2642
- }, ft = "global", pt = 320, Z = class {
2642
+ }, ft = "global", pt = 160, Z = class {
2643
2643
  static isFile() {
2644
2644
  return Object.keys(this.files).length > 0 && this.getIndex() !== void 0;
2645
2645
  }
@@ -2665,8 +2665,8 @@ var st = class {
2665
2665
  }
2666
2666
  static async getByFile(e) {
2667
2667
  if (e in this.files) {
2668
- let t = await this.files[e]();
2669
- return this.data[e] = t, t;
2668
+ let t = await g(this.files[e]);
2669
+ return t && (this.data[e] = t), t;
2670
2670
  }
2671
2671
  }
2672
2672
  };
@@ -2677,7 +2677,7 @@ var Q = class e {
2677
2677
  static async get(e, t) {
2678
2678
  var n;
2679
2679
  let r = this.getText(e);
2680
- return r ? this.replacement(r, t) : (M.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
2680
+ return r ? this.replacement(r, t) : (j.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
2681
2681
  }
2682
2682
  static getSync(e, t = !1, n) {
2683
2683
  let r = this.getText(e);
@@ -2708,7 +2708,7 @@ var Q = class e {
2708
2708
  this.timeout = void 0, this.make().then(() => {
2709
2709
  this.resolveList.forEach((e) => e()), this.resolveList = [];
2710
2710
  });
2711
- }, 320)) : t();
2711
+ }, 160)) : t();
2712
2712
  });
2713
2713
  }
2714
2714
  static addSync(e) {
@@ -2717,7 +2717,7 @@ var Q = class e {
2717
2717
  });
2718
2718
  }
2719
2719
  static async addNormalOrSync(e) {
2720
- if (s(e)) if (M.isLocalhost()) this.addSync(e);
2720
+ if (s(e)) if (j.isLocalhost()) this.addSync(e);
2721
2721
  else {
2722
2722
  let t = Object.keys(e);
2723
2723
  t.length > 0 && await this.add(t);
@@ -2768,7 +2768,7 @@ var Q = class e {
2768
2768
  }), t;
2769
2769
  }
2770
2770
  static async getResponse() {
2771
- let e = await M.get({
2771
+ let e = await j.get({
2772
2772
  api: !1,
2773
2773
  path: this.url,
2774
2774
  request: { [this.propsName]: this.cache },
@@ -2819,22 +2819,55 @@ function _t(e) {
2819
2819
  if (d()) return document.querySelectorAll(e);
2820
2820
  }
2821
2821
  //#endregion
2822
- //#region src/functions/eventStopPropagation.ts
2822
+ //#region src/functions/getElementImage.ts
2823
2823
  function vt(e) {
2824
+ return l(e) ? W(void 0, "img", { src: e }) : e;
2825
+ }
2826
+ //#endregion
2827
+ //#region src/functions/resizeImageByMax.ts
2828
+ function yt(e, t = "auto") {
2829
+ switch (t) {
2830
+ case "auto": return e.naturalWidth >= e.naturalHeight;
2831
+ case "width": return !0;
2832
+ case "height": return !1;
2833
+ }
2834
+ }
2835
+ function bt(e, t, n = "auto", r) {
2836
+ let i = vt(e);
2837
+ if (i && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
2838
+ var a;
2839
+ let e = yt(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
2840
+ 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);
2841
+ }
2842
+ }
2843
+ //#endregion
2844
+ //#region src/functions/ensureMaxSize.ts
2845
+ async function xt(e, t = .56, n = "image/jpeg") {
2846
+ return new Promise((r) => {
2847
+ let i = new Blob([e], { type: n }), a = vt(URL.createObjectURL(i));
2848
+ a ? a.onload = () => {
2849
+ let e = bt(a, t * a.naturalWidth, "width", n);
2850
+ r(e == null ? "" : e);
2851
+ } : ht(i).then((e) => r(String(e == null ? "" : e)));
2852
+ });
2853
+ }
2854
+ //#endregion
2855
+ //#region src/functions/eventStopPropagation.ts
2856
+ function St(e) {
2824
2857
  e.preventDefault(), e.stopPropagation();
2825
2858
  }
2826
2859
  //#endregion
2827
2860
  //#region src/functions/frame.ts
2828
- function yt(e, t, n) {
2861
+ function Ct(e, t, n) {
2829
2862
  let r = () => {
2830
- e(), t != null && t() ? yt(e, t, n) : n == null || n();
2863
+ e(), t != null && t() ? Ct(e, t, n) : n == null || n();
2831
2864
  };
2832
2865
  d() ? requestAnimationFrame(r) : r();
2833
2866
  }
2834
2867
  //#endregion
2835
2868
  //#region src/functions/getAttributes.ts
2836
- function bt(e) {
2837
- let t = {}, n = T(e);
2869
+ function wt(e) {
2870
+ let t = {}, n = w(e);
2838
2871
  if (n) for (let e of n.attributes) {
2839
2872
  var r;
2840
2873
  t[e.name] = (r = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.textContent)) == null ? void 0 : r;
@@ -2843,71 +2876,66 @@ function bt(e) {
2843
2876
  }
2844
2877
  //#endregion
2845
2878
  //#region src/functions/getClipboardData.ts
2846
- async function xt(e) {
2879
+ async function Tt(e) {
2847
2880
  var t, n;
2848
2881
  return (t = e == null || (n = e.clipboardData) == null ? void 0 : n.getData("text")) == null ? await navigator.clipboard.readText() || "" : t;
2849
2882
  }
2850
2883
  //#endregion
2851
2884
  //#region src/functions/getCurrentDate.ts
2852
- function St(e = "datetime") {
2853
- return new ke(void 0, e).standard();
2885
+ function Et(e = "datetime") {
2886
+ return new Oe(void 0, e).standard();
2854
2887
  }
2855
2888
  //#endregion
2856
2889
  //#region src/functions/getElementId.ts
2857
- var Ct = j(1e5, 9e5);
2858
- function wt(e, t) {
2859
- let n = T(e);
2860
- return n ? (s(n.id) || n.setAttribute("id", `id-${Ct++}`), t ? `#${n.id}${t}`.trim() : n.id) : `id-${Ct++}`;
2861
- }
2862
- //#endregion
2863
- //#region src/functions/getElementImage.ts
2864
- function Tt(e) {
2865
- return l(e) ? W(void 0, "img", { src: e }) : e;
2890
+ var Dt = A(1e5, 9e5);
2891
+ function Ot(e, t) {
2892
+ let n = w(e);
2893
+ return n ? (s(n.id) || n.setAttribute("id", `id-${Dt++}`), t ? `#${n.id}${t}`.trim() : n.id) : `id-${Dt++}`;
2866
2894
  }
2867
2895
  //#endregion
2868
2896
  //#region src/functions/getKey.ts
2869
- function Et(e) {
2897
+ function kt(e) {
2870
2898
  var t, n, r;
2871
2899
  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;
2872
2900
  }
2873
2901
  //#endregion
2874
2902
  //#region src/functions/getLengthOfAllArray.ts
2875
- function Dt(e) {
2903
+ function At(e) {
2876
2904
  return r(e, (e) => e.length);
2877
2905
  }
2878
2906
  //#endregion
2879
2907
  //#region src/functions/getMaxLengthAllArray.ts
2880
- function Ot(e) {
2881
- return Math.max(...Dt(e));
2908
+ function jt(e) {
2909
+ return Math.max(...At(e));
2882
2910
  }
2883
2911
  //#endregion
2884
2912
  //#region src/functions/getMinLengthAllArray.ts
2885
- function kt(e) {
2886
- return Math.min(...Dt(e));
2913
+ function Mt(e) {
2914
+ return Math.min(...At(e));
2887
2915
  }
2888
2916
  //#endregion
2889
2917
  //#region src/functions/getMouseClientX.ts
2890
- function At(e) {
2918
+ function Nt(e) {
2891
2919
  var t, n;
2892
2920
  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;
2893
2921
  }
2894
2922
  //#endregion
2895
2923
  //#region src/functions/getMouseClientY.ts
2896
- function jt(e) {
2924
+ function Pt(e) {
2897
2925
  var t, n;
2898
2926
  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;
2899
2927
  }
2900
2928
  //#endregion
2901
2929
  //#region src/functions/getMouseClient.ts
2902
- function Mt(e) {
2930
+ function Ft(e) {
2903
2931
  return {
2904
- x: At(e),
2905
- y: jt(e)
2932
+ x: Nt(e),
2933
+ y: Pt(e)
2906
2934
  };
2907
2935
  }
2908
2936
  //#endregion
2909
2937
  //#region src/functions/getObjectByKeys.ts
2910
- function Nt(e, t) {
2938
+ function It(e, t) {
2911
2939
  let n = {};
2912
2940
  return t.forEach((t) => {
2913
2941
  t in e && e[t] !== void 0 && (n[t] = e[t]);
@@ -2915,7 +2943,7 @@ function Nt(e, t) {
2915
2943
  }
2916
2944
  //#endregion
2917
2945
  //#region src/functions/getObjectNoUndefined.ts
2918
- function Pt(e, t = void 0) {
2946
+ function Lt(e, t = void 0) {
2919
2947
  let n = {};
2920
2948
  return r(e, (e, r) => {
2921
2949
  e !== t && (n[r] = e);
@@ -2923,49 +2951,49 @@ function Pt(e, t = void 0) {
2923
2951
  }
2924
2952
  //#endregion
2925
2953
  //#region src/functions/getObjectOrNone.ts
2926
- function Ft(e) {
2954
+ function Rt(e) {
2927
2955
  return c(e) ? e : {};
2928
2956
  }
2929
2957
  //#endregion
2930
2958
  //#region src/functions/strFill.ts
2931
- function It(e, t) {
2959
+ function zt(e, t) {
2932
2960
  return mt(e, t).join("");
2933
2961
  }
2934
2962
  //#endregion
2935
2963
  //#region src/functions/getRandomText.ts
2936
- function Lt(e, t, n = "#", r = 2, i = 12) {
2937
- let a = j(e, t), o = [];
2938
- for (let e = 0; e < a; e++) o.push(It(n, j(r, i)));
2964
+ function Bt(e, t, n = "#", r = 2, i = 12) {
2965
+ let a = A(e, t), o = [];
2966
+ for (let e = 0; e < a; e++) o.push(zt(n, A(r, i)));
2939
2967
  return o.join(" ");
2940
2968
  }
2941
2969
  //#endregion
2942
2970
  //#region src/functions/getStepPercent.ts
2943
- function Rt(e, t) {
2971
+ function Vt(e, t) {
2944
2972
  let n = e == null ? 0 : e;
2945
2973
  return t > n ? 100 / (t - n) : 0;
2946
2974
  }
2947
2975
  //#endregion
2948
2976
  //#region src/functions/getStepValue.ts
2949
- function zt(e, t) {
2977
+ function Ht(e, t) {
2950
2978
  let n = e == null ? 0 : e;
2951
2979
  return t > n ? (t - n) / 100 : 0;
2952
2980
  }
2953
2981
  //#endregion
2954
2982
  //#region src/functions/goScroll.ts
2955
- var Bt = 0;
2956
- function Vt(e, t, n) {
2983
+ var Ut = 0;
2984
+ function Wt(e, t, n) {
2957
2985
  let r = t == null ? void 0 : t.closest(e);
2958
2986
  if (t && r && r.scrollHeight !== r.offsetHeight) {
2959
2987
  let e = r.getBoundingClientRect(), i = t.getBoundingClientRect();
2960
2988
  if (n) {
2961
2989
  let a = n.getBoundingClientRect();
2962
2990
  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);
2963
- } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Bt : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Bt);
2991
+ } else r.scrollTop > t.offsetTop ? r.scrollTop = i.top - e.top - Ut : r.scrollTop + r.offsetHeight < t.offsetTop + t.offsetHeight && (r.scrollTop = i.top - e.top + i.height - e.height + Ut);
2964
2992
  }
2965
2993
  }
2966
2994
  //#endregion
2967
2995
  //#region src/functions/goScrollSmooth.ts
2968
- function Ht(e, t, n = 0) {
2996
+ function Gt(e, t, n = 0) {
2969
2997
  if (!d()) return;
2970
2998
  let r = (t == null ? void 0 : t.behavior) || "smooth";
2971
2999
  if ("scrollIntoView" in e && !n) {
@@ -2987,7 +3015,7 @@ function Ht(e, t, n = 0) {
2987
3015
  }
2988
3016
  //#endregion
2989
3017
  //#region src/functions/goScrollTo.ts
2990
- function Ut(e, t, n = "smooth") {
3018
+ function Kt(e, t, n = "smooth") {
2991
3019
  if (!d() || !e || !t) return;
2992
3020
  let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
2993
3021
  e.scrollBy({
@@ -2997,13 +3025,28 @@ function Ut(e, t, n = "smooth") {
2997
3025
  });
2998
3026
  }
2999
3027
  //#endregion
3028
+ //#region src/functions/isShare.ts
3029
+ function qt() {
3030
+ return d() && typeof navigator < "u" && !!navigator.share;
3031
+ }
3032
+ //#endregion
3033
+ //#region src/functions/handleShare.ts
3034
+ async function Jt(e) {
3035
+ if (qt() && navigator.canShare && navigator.canShare(e)) try {
3036
+ return await navigator.share(e), !0;
3037
+ } catch (e) {
3038
+ console.error("handleShare error:", e);
3039
+ }
3040
+ return !1;
3041
+ }
3042
+ //#endregion
3000
3043
  //#region src/functions/inArray.ts
3001
- function Wt(e, t) {
3044
+ function Yt(e, t) {
3002
3045
  return e.indexOf(t) !== -1;
3003
3046
  }
3004
3047
  //#endregion
3005
3048
  //#region src/functions/initScrollbarOffset.ts
3006
- async function Gt() {
3049
+ async function Xt() {
3007
3050
  if (d()) {
3008
3051
  let e = await Y.get();
3009
3052
  document.body.style.setProperty("--sys-scrollbar-offset", `${e}px`);
@@ -3011,7 +3054,7 @@ async function Gt() {
3011
3054
  }
3012
3055
  //#endregion
3013
3056
  //#region src/functions/intersectKey.ts
3014
- function Kt(e, t) {
3057
+ function Zt(e, t) {
3015
3058
  let i = {};
3016
3059
  return n(e) && n(t) && r(e, (e, n) => {
3017
3060
  n in t && (i[n] = e);
@@ -3019,30 +3062,39 @@ function Kt(e, t) {
3019
3062
  }
3020
3063
  //#endregion
3021
3064
  //#region src/functions/isApiSuccess.ts
3022
- var qt = (e) => {
3065
+ var Qt = (e) => {
3023
3066
  var t;
3024
- return a(e) ? !0 : !!(e && c(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && String(e.statusObject.status).match(/^2/) || !("status" in e) && !("success" in e) && !("statusObject" in e) && String(M.getStatus().getStatus()).match(/^2/)));
3067
+ return a(e) ? !0 : !!(e && c(e) && ((e == null ? void 0 : e.status) === "success" || e != null && e.success || !(e == null || (t = e.statusObject) == null) && t.status && String(e.statusObject.status).match(/^2/) || !("status" in e) && !("success" in e) && !("statusObject" in e) && String(j.getStatus().getStatus()).match(/^2/)));
3025
3068
  };
3026
3069
  //#endregion
3027
3070
  //#region src/functions/isDifferent.ts
3028
- function Jt(e, t) {
3071
+ function $t(e, t) {
3029
3072
  let n = Object.keys(e).length !== Object.keys(t).length;
3030
3073
  return n || r(e, (e, r) => {
3031
3074
  e !== (t == null ? void 0 : t[r]) && (n = !0);
3032
3075
  }), n;
3033
3076
  }
3034
3077
  //#endregion
3078
+ //#region src/functions/isElementVisible.ts
3079
+ function en(e) {
3080
+ if (!d()) return !1;
3081
+ let t = w(e);
3082
+ if (!t || "isConnected" in t && t.isConnected === !1) return !1;
3083
+ let n = window.getComputedStyle(t);
3084
+ return n.display !== "none" && n.visibility !== "hidden" && n.opacity !== "0" && t.offsetWidth !== 0 && t.offsetHeight !== 0;
3085
+ }
3086
+ //#endregion
3035
3087
  //#region src/functions/isInput.ts
3036
- var Yt = (e) => {
3088
+ var tn = (e) => {
3037
3089
  if (e instanceof HTMLElement) {
3038
3090
  let t = e.tagName.toLowerCase();
3039
3091
  return !!(t === "input" || t === "textarea" || t === "select" || e.isContentEditable || e.getAttribute("contenteditable") === "true");
3040
3092
  }
3041
3093
  return !1;
3042
- }, Xt = (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 ? !Yt(e.target) : !t : !1;
3094
+ }, nn = (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 ? !tn(e.target) : !t : !1;
3043
3095
  //#endregion
3044
3096
  //#region src/functions/isFloat.ts
3045
- function Zt(e) {
3097
+ function rn(e) {
3046
3098
  switch (typeof e) {
3047
3099
  case "number": return !0;
3048
3100
  case "string": return !!e.match(/^([0-9]+|[0-9]+\.[0-9]+)$/);
@@ -3051,18 +3103,18 @@ function Zt(e) {
3051
3103
  }
3052
3104
  //#endregion
3053
3105
  //#region src/functions/isIntegerBetween.ts
3054
- function Qt(e, t) {
3106
+ function an(e, t) {
3055
3107
  let n = Math.floor(t);
3056
3108
  return e >= n && e < n + 1;
3057
3109
  }
3058
3110
  //#endregion
3059
3111
  //#region src/functions/isSelectedByList.ts
3060
- function $t(e, t) {
3112
+ function on(e, t) {
3061
3113
  return Array.isArray(e) ? e.every((e) => m(e, t)) : m(e, t);
3062
3114
  }
3063
3115
  //#endregion
3064
3116
  //#region src/functions/removeCommonPrefix.ts
3065
- function en(e, t) {
3117
+ function sn(e, t) {
3066
3118
  if (e.startsWith(t)) return e.slice(t.length).trim();
3067
3119
  let n = 0;
3068
3120
  for (; e[n] === t[n] && n < e.length && n < t.length;) n++;
@@ -3070,13 +3122,13 @@ function en(e, t) {
3070
3122
  }
3071
3123
  //#endregion
3072
3124
  //#region src/functions/replaceComponentName.ts
3073
- var tn = (e, t, n) => {
3125
+ var cn = (e, t, n) => {
3074
3126
  var r;
3075
3127
  return e == null || (r = e.replace(RegExp(`<${t}`, "ig"), `<${n}`)) == null || (r = r.replace(RegExp(`</${t}`, "ig"), `</${n}`)) == null ? void 0 : r.trim();
3076
3128
  };
3077
3129
  //#endregion
3078
3130
  //#region src/functions/uniqueArray.ts
3079
- function nn(e) {
3131
+ function ln(e) {
3080
3132
  return [...new Set(e)];
3081
3133
  }
3082
3134
  //#endregion
@@ -3085,43 +3137,26 @@ function $(e, t, i = !0) {
3085
3137
  let a = u(e);
3086
3138
  return n(e) && n(t) && r(t, (t, r) => {
3087
3139
  let o = e == null ? void 0 : e[r];
3088
- n(o) && n(t) ? i && Array.isArray(o) && Array.isArray(t) ? a[r] = u(nn([...o, ...t])) : a[r] = $(Array.isArray(o) ? { ...o } : o, t, i) : a[r] = n(t) ? u(t) : t;
3140
+ n(o) && n(t) ? i && Array.isArray(o) && Array.isArray(t) ? a[r] = u(ln([...o, ...t])) : a[r] = $(Array.isArray(o) ? { ...o } : o, t, i) : a[r] = n(t) ? u(t) : t;
3089
3141
  }), a;
3090
3142
  }
3091
3143
  //#endregion
3092
3144
  //#region src/functions/replaceTemplate.ts
3093
- function rn(e, t) {
3145
+ function un(e, t) {
3094
3146
  let n = e;
3095
3147
  return r(t, (e, t) => {
3096
3148
  n = n.replace(it(`[${t}]`), g(e));
3097
3149
  }), n;
3098
3150
  }
3099
3151
  //#endregion
3100
- //#region src/functions/resizeImageByMax.ts
3101
- function an(e, t = "auto") {
3102
- switch (t) {
3103
- case "auto": return e.naturalWidth >= e.naturalHeight;
3104
- case "width": return !0;
3105
- case "height": return !1;
3106
- }
3107
- }
3108
- function on(e, t, n = "auto", r) {
3109
- let i = Tt(e);
3110
- if (i && (i.naturalWidth > t && (n === "auto" || n === "width") || i.naturalHeight > t && (n === "auto" || n === "height"))) {
3111
- var a;
3112
- let e = an(i, n), o = (a = document.createElement("canvas")) == null ? void 0 : a.getContext("2d");
3113
- 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);
3114
- }
3115
- }
3116
- //#endregion
3117
3152
  //#region src/functions/secondToTime.ts
3118
- function sn(e) {
3153
+ function dn(e) {
3119
3154
  let t = p(e);
3120
3155
  return t > 0 ? `${String(Math.floor(t / 60)).padStart(2, "0")}:${String(t % 60).padStart(2, "0")}` : "00:00";
3121
3156
  }
3122
3157
  //#endregion
3123
3158
  //#region src/functions/setValues.ts
3124
- function cn(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, notEmpty: o = !1 }) {
3159
+ function fn(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, notEmpty: o = !1 }) {
3125
3160
  if (n) {
3126
3161
  if (a(e)) {
3127
3162
  let n = e.indexOf(t), i = [...e];
@@ -3133,7 +3168,7 @@ function cn(e, t, { multiple: n = !1, maxlength: r = 0, alwaysChange: i = !0, no
3133
3168
  }
3134
3169
  //#endregion
3135
3170
  //#region src/functions/splice.ts
3136
- function ln(e, t, i) {
3171
+ function pn(e, t, i) {
3137
3172
  if (n(e) && n(t)) {
3138
3173
  if (i) {
3139
3174
  let a = {}, o = !1;
@@ -3147,34 +3182,34 @@ function ln(e, t, i) {
3147
3182
  }
3148
3183
  //#endregion
3149
3184
  //#region src/functions/toCamelCaseFirst.ts
3150
- function un(e) {
3151
- return je(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
3185
+ function mn(e) {
3186
+ return Ae(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
3152
3187
  }
3153
3188
  //#endregion
3154
3189
  //#region src/functions/toKebabCase.ts
3155
- function dn(e) {
3190
+ function hn(e) {
3156
3191
  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());
3157
3192
  }
3158
3193
  //#endregion
3159
3194
  //#region src/functions/toNumberByMax.ts
3160
- function fn(e, t, n, r) {
3195
+ function gn(e, t, n, r) {
3161
3196
  let i = p(e), a = p(t);
3162
- return t && a < i ? `${pn(a, n, r)}+` : pn(i, n, r);
3197
+ return t && a < i ? `${_n(a, n, r)}+` : _n(i, n, r);
3163
3198
  }
3164
- var pn = (e, t, n) => t ? new P(n).number(e) : e;
3199
+ var _n = (e, t, n) => t ? new F(n).number(e) : e;
3165
3200
  //#endregion
3166
3201
  //#region src/functions/toPercent.ts
3167
- function mn(e, t) {
3202
+ function vn(e, t) {
3168
3203
  return 1 / e * t;
3169
3204
  }
3170
3205
  //#endregion
3171
3206
  //#region src/functions/toPercentBy100.ts
3172
- function hn(e, t) {
3173
- return mn(e, t) * 100;
3207
+ function yn(e, t) {
3208
+ return vn(e, t) * 100;
3174
3209
  }
3175
3210
  //#endregion
3176
3211
  //#region src/functions/uint8ArrayToBase64.ts
3177
- function gn(e) {
3212
+ function bn(e) {
3178
3213
  let t = "";
3179
3214
  for (let n of e) t += String.fromCharCode(n);
3180
3215
  if (d()) return window.btoa(t);
@@ -3186,7 +3221,7 @@ function gn(e) {
3186
3221
  }
3187
3222
  //#endregion
3188
3223
  //#region src/functions/writeClipboardData.ts
3189
- async function _n(e) {
3224
+ async function xn(e) {
3190
3225
  if (d()) try {
3191
3226
  await navigator.clipboard.writeText(e);
3192
3227
  } catch (n) {
@@ -3195,4 +3230,4 @@ async function _n(e) {
3195
3230
  }
3196
3231
  }
3197
3232
  //#endregion
3198
- export { M as Api, le as ApiDefault, ce as ApiHeaders, k as ApiMethodItem, pe as ApiPreparation, fe as ApiResponse, A as ApiStatus, he as BroadcastMessage, ve as Cache, _e as CacheItem, be as CacheStatic, Ee as Cookie, Ce as CookieBlock, x as DataStorage, ke as Datetime, D as EventItem, Me as Formatters, R as FormattersType, Ne as GEO_FLAG_ICON_NAME, C as Geo, Pe as GeoFlag, P as GeoIntl, z as GeoPhone, Ie as Global, V as Hash, U as Icons, O as Loading, $e as Meta, G as MetaManager, Ze as MetaOg, Je as MetaOpenGraphAge, Ke as MetaOpenGraphAvailability, qe as MetaOpenGraphCondition, Ye as MetaOpenGraphGender, q as MetaOpenGraphTag, Ge as MetaOpenGraphType, We as MetaRobots, K as MetaTag, Qe as MetaTwitter, Xe as MetaTwitterCard, J as MetaTwitterTag, Y as ScrollbarWidth, lt as SearchList, nt as SearchListData, rt as SearchListItem, st as SearchListMatcher, ct as SearchListOptions, ft as TRANSLATE_GLOBAL_PREFIX, pt as TRANSLATE_TIME_OUT, Q as Translate, Z as TranslateFile, tt as addTagHighlightMatch, I as anyToString, dt as applyTemplate, mt as arrFill, ht as blobToBase64, u as copyObject, t as copyObjectLite, W as createElement, gt as domQuerySelector, _t as domQuerySelectorAll, Ue as encodeAttribute, X as escapeExp, vt as eventStopPropagation, g as executeFunction, ue as executePromise, r as forEach, yt as frame, bt as getAttributes, xt as getClipboardData, Oe as getColumn, St as getCurrentDate, T as getElement, wt as getElementId, Tt as getElementImage, Ve as getElementItem, ie as getElementOrWindow, at as getExactSearchExp, it as getExp, L as getItemByPath, Et as getKey, Dt as getLengthOfAllArray, Ot as getMaxLengthAllArray, kt as getMinLengthAllArray, Mt as getMouseClient, At as getMouseClientX, jt as getMouseClientY, Nt as getObjectByKeys, Pt as getObjectNoUndefined, Ft as getObjectOrNone, Lt as getRandomText, i as getRequestString, ot as getSearchExp, et as getSeparatingSearchExp, Rt as getStepPercent, zt as getStepValue, Vt as goScroll, Ht as goScrollSmooth, Ut as goScrollTo, Wt as inArray, Gt as initScrollbarOffset, Kt as intersectKey, qt as isApiSuccess, a as isArray, Jt as isDifferent, _ as isDomData, d as isDomRuntime, Xt as isEnter, s as isFilled, Zt as isFloat, h as isFunction, ae as isInDom, Yt as isInput, Qt as isIntegerBetween, o as isNull, f as isNumber, n as isObject, c as isObjectNotArray, m as isSelected, $t as isSelectedByList, l as isString, w as isWindow, j as random, en as removeCommonPrefix, tn as replaceComponentName, $ as replaceRecursive, rn as replaceTemplate, on as resizeImageByMax, sn as secondToTime, He as setElementItem, cn as setValues, ln as splice, It as strFill, Ae as strSplit, E as toArray, je as toCamelCase, un as toCamelCaseFirst, N as toDate, dn as toKebabCase, p as toNumber, fn as toNumberByMax, mn as toPercent, hn as toPercentBy100, xe as transformation, gn as uint8ArrayToBase64, nn as uniqueArray, _n as writeClipboardData };
3233
+ export { j as Api, ue as ApiDefault, le as ApiHeaders, O as ApiMethodItem, me as ApiPreparation, pe as ApiResponse, k as ApiStatus, ge as BroadcastMessage, ye as Cache, ve as CacheItem, xe as CacheStatic, Ee as Cookie, we as CookieBlock, x as DataStorage, Oe as Datetime, oe as EventItem, je as Formatters, z as FormattersType, Me as GEO_FLAG_ICON_NAME, C as Geo, Ne as GeoFlag, F as GeoIntl, B as GeoPhone, Fe as Global, H as Hash, U as Icons, D as Loading, $e as Meta, G as MetaManager, Ze as MetaOg, Je as MetaOpenGraphAge, Ke as MetaOpenGraphAvailability, qe as MetaOpenGraphCondition, Ye as MetaOpenGraphGender, q as MetaOpenGraphTag, Ge as MetaOpenGraphType, We as MetaRobots, K as MetaTag, Qe as MetaTwitter, Xe as MetaTwitterCard, J as MetaTwitterTag, Y as ScrollbarWidth, lt as SearchList, nt as SearchListData, rt as SearchListItem, st as SearchListMatcher, ct as SearchListOptions, ft as TRANSLATE_GLOBAL_PREFIX, pt as TRANSLATE_TIME_OUT, Q as Translate, Z as TranslateFile, tt as addTagHighlightMatch, L as anyToString, dt as applyTemplate, mt as arrFill, ht as blobToBase64, u as copyObject, t as copyObjectLite, W as createElement, gt as domQuerySelector, _t as domQuerySelectorAll, Ue as encodeAttribute, xt as ensureMaxSize, X as escapeExp, St as eventStopPropagation, g as executeFunction, de as executePromise, r as forEach, Ct as frame, wt as getAttributes, Tt as getClipboardData, De as getColumn, Et as getCurrentDate, w as getElement, Ot as getElementId, vt as getElementImage, Ve as getElementItem, T as getElementOrWindow, at as getExactSearchExp, it as getExp, R as getItemByPath, kt as getKey, At as getLengthOfAllArray, jt as getMaxLengthAllArray, Mt as getMinLengthAllArray, Ft as getMouseClient, Nt as getMouseClientX, Pt as getMouseClientY, It as getObjectByKeys, Lt as getObjectNoUndefined, Rt as getObjectOrNone, Bt as getRandomText, i as getRequestString, ot as getSearchExp, et as getSeparatingSearchExp, Vt as getStepPercent, Ht as getStepValue, Wt as goScroll, Gt as goScrollSmooth, Kt as goScrollTo, Jt as handleShare, Yt as inArray, Xt as initScrollbarOffset, Zt as intersectKey, Qt as isApiSuccess, a as isArray, $t as isDifferent, _ as isDomData, d as isDomRuntime, en as isElementVisible, nn as isEnter, s as isFilled, rn as isFloat, h as isFunction, ae as isInDom, tn as isInput, an as isIntegerBetween, o as isNull, f as isNumber, n as isObject, c as isObjectNotArray, m as isSelected, on as isSelectedByList, qt as isShare, l as isString, ie as isWindow, A as random, sn as removeCommonPrefix, cn as replaceComponentName, $ as replaceRecursive, un as replaceTemplate, bt as resizeImageByMax, dn as secondToTime, He as setElementItem, fn as setValues, pn as splice, zt as strFill, ke as strSplit, E as toArray, Ae as toCamelCase, mn as toCamelCaseFirst, P as toDate, hn as toKebabCase, p as toNumber, gn as toNumberByMax, vn as toPercent, yn as toPercentBy100, Se as transformation, bn as uint8ArrayToBase64, ln as uniqueArray, xn as writeClipboardData };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/functional-basic",
3
3
  "private": false,
4
- "version": "0.11.2",
4
+ "version": "0.12.0",
5
5
  "type": "module",
6
6
  "description": "Foundational utility library for modern web development — HTTP client, geolocation, i18n, SEO meta tags, caching, storage, DOM utilities, and more. Framework-agnostic, zero dependencies, TypeScript-first.",
7
7
  "keywords": [