@dxtmisha/functional-basic 0.12.0 → 0.12.2

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
@@ -24,18 +24,19 @@ export declare function anyToString<V>(value: V, isArrayString?: boolean): strin
24
24
  * Класс для работы с запросами.
25
25
  */
26
26
  export declare class Api {
27
- protected static url: string;
28
- protected static headers: ApiHeaders;
29
- protected static requestDefault: ApiDefault;
30
- protected static status: ApiStatus;
31
- protected static response: ApiResponse;
32
- protected static preparation: ApiPreparation;
27
+ protected static item: ApiInstance;
33
28
  /**
34
29
  * Is the server local.
35
30
  *
36
31
  * Является ли сервер локальный.
37
32
  */
38
33
  static isLocalhost(): boolean;
34
+ /**
35
+ * Returns the instance of the class.
36
+ *
37
+ * Возвращает инстанс класса.
38
+ */
39
+ static getItem(): ApiInstance;
39
40
  /**
40
41
  * Returns the status of the last request.
41
42
  *
@@ -141,45 +142,6 @@ export declare class Api {
141
142
  * @param request list of parameters/ список параметров
142
143
  */
143
144
  static delete<T>(request: ApiFetch): Promise<T>;
144
- /**
145
- * To execute a request.
146
- *
147
- * Выполнить запрос.
148
- * @param apiFetch property of the request/ свойство запроса
149
- */
150
- protected static fetch<T>(apiFetch: ApiFetch): Promise<T>;
151
- /**
152
- * Reading data from the response.
153
- *
154
- * Чтение данных из ответа.
155
- * @param query response from the server/ ответ от сервера
156
- * @param queryReturn custom function for reading data/ кастомная функция для чтения данных
157
- * @param end finalization data/ данные финализации
158
- */
159
- protected static readData<T>(query: Response, queryReturn: ApiFetch['queryReturn'], end: ApiPreparationEnd): Promise<ApiData<T>>;
160
- /**
161
- * Executing the request.
162
- *
163
- * Выполнение запроса.
164
- * @param apiFetch property of the request/ свойство запроса
165
- */
166
- protected static makeQuery(apiFetch: ApiFetch): Promise<Response>;
167
- /**
168
- * Transforms data if needed.
169
- *
170
- * Преобразует данные, если нужно.
171
- * @param data data for transformation/ данные для преобразования
172
- * @param toData is it necessary to process the data/ нужно ли обрабатывать данные
173
- */
174
- protected static makeData<T>(data: ApiData<T>, toData: boolean): ApiData<T>;
175
- /**
176
- * Appends the status object to the response data if possible.
177
- *
178
- * Добавляет объект статуса к данным ответа, если это возможно.
179
- * @param data response data/ данные ответа
180
- * @param status status object/ объект статуса
181
- */
182
- protected static makeStatus<T>(data: ApiData<T>, status: ApiStatus): ApiData<T>;
183
145
  }
184
146
 
185
147
  /**
@@ -315,6 +277,180 @@ export declare class ApiHeaders {
315
277
  set(headers: Record<string, string>): this;
316
278
  }
317
279
 
280
+ /**
281
+ * Class for working with requests.
282
+ *
283
+ * Класс для работы с запросами.
284
+ */
285
+ export declare class ApiInstance {
286
+ protected url: string;
287
+ /** Headers / Заголовки */
288
+ protected headers: ApiHeaders;
289
+ /** Default request parameters / Параметры запроса по умолчанию */
290
+ protected requestDefault: ApiDefault;
291
+ /** Status of the last request / Статус последнего запроса */
292
+ protected status: ApiStatus;
293
+ /** Response handler / Обработчик ответа */
294
+ protected response: ApiResponse;
295
+ /** Request modification handler / Обработчик модификации запроса */
296
+ protected preparation: ApiPreparation;
297
+ /**
298
+ * Constructor
299
+ * @param url base path to the script/ базовый путь к скрипту
300
+ */
301
+ constructor(url?: string);
302
+ /**
303
+ * Is the server local.
304
+ *
305
+ * Является ли сервер локальный.
306
+ */
307
+ isLocalhost(): boolean;
308
+ /**
309
+ * Returns the status of the last request.
310
+ *
311
+ * Возвращает статус последнего запроса.
312
+ */
313
+ getStatus(): ApiStatus;
314
+ /**
315
+ * Getting the response handler.
316
+ *
317
+ * Получение обработчика ответа.
318
+ */
319
+ getResponse(): ApiResponse;
320
+ /**
321
+ * Getting the full path to the request script.
322
+ *
323
+ * Получение полного пути к скрипту запроса.
324
+ * @param path path to the script/ путь к скрипту
325
+ * @param api adding a path to the site’s API/ добавление пути к API сайта
326
+ */
327
+ getUrl(path: string, api?: boolean): string;
328
+ /**
329
+ * Getting data for the body.
330
+ *
331
+ * Получение данных для тела.
332
+ * @param request this request/ данный запрос
333
+ * @param method method for request/ метод запрос
334
+ */
335
+ getBody(request?: ApiFetch['request'], method?: ApiMethodItem): string | FormData | undefined;
336
+ /**
337
+ * Getting data for the body of the get method.
338
+ *
339
+ * Получение данных для тела метода get.
340
+ * @param request this request/ данный запрос
341
+ * @param path path to request/ путь к запрос
342
+ * @param method method for request/ метод запрос
343
+ */
344
+ getBodyForGet(request: ApiFetch['request'], path?: string, method?: ApiMethodItem): string;
345
+ /**
346
+ * Modifies the default header data.
347
+ *
348
+ * Изменяет данные заголовка по умолчанию.
349
+ */
350
+ setHeaders(headers: Record<string, string>): this;
351
+ /**
352
+ * Modifies the default request data.
353
+ *
354
+ * Изменяет данные запроса по умолчанию.
355
+ */
356
+ setRequestDefault(request: Record<string, any>): this;
357
+ /**
358
+ * Change the base path to the script.
359
+ *
360
+ * Изменить базовый путь к скрипту.
361
+ * @param url path to the script/ путь к скрипту
362
+ */
363
+ setUrl(url: string): this;
364
+ /**
365
+ * The function is modified for a call before the request.
366
+ *
367
+ * Изменить функцию перед запросом.
368
+ * @param callback function for call/ функция для вызова
369
+ */
370
+ setPreparation(callback: (apiFetch: ApiFetch) => Promise<void>): this;
371
+ /**
372
+ * Modify the function after the request.
373
+ *
374
+ * Изменить функцию после запроса.
375
+ * @param callback function for call/ функция для вызова
376
+ */
377
+ setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): this;
378
+ /**
379
+ * To execute a request.
380
+ *
381
+ * Выполнить запрос.
382
+ * @param pathRequest query string or list of parameters/ строка запроса или список параметров
383
+ */
384
+ request<T>(pathRequest: string | ApiFetch): Promise<T>;
385
+ /**
386
+ * Sends a get method request.
387
+ *
388
+ * Отправляет запрос метода get.
389
+ * @param request list of parameters/ список параметров
390
+ */
391
+ get<T>(request: ApiFetch): Promise<T>;
392
+ /**
393
+ * Sends a post method request.
394
+ *
395
+ * Отправляет запрос метода post.
396
+ * @param request list of parameters/ список параметров
397
+ */
398
+ post<T>(request: ApiFetch): Promise<T>;
399
+ /**
400
+ * Sends a put method request.
401
+ *
402
+ * Отправляет запрос метода put.
403
+ * @param request list of parameters/ список параметров
404
+ */
405
+ put<T>(request: ApiFetch): Promise<T>;
406
+ /**
407
+ * Sends a delete method request.
408
+ *
409
+ * Отправляет запрос метода delete.
410
+ * @param request list of parameters/ список параметров
411
+ */
412
+ delete<T>(request: ApiFetch): Promise<T>;
413
+ /**
414
+ * To execute a request.
415
+ *
416
+ * Выполнить запрос.
417
+ * @param apiFetch property of the request/ свойство запроса
418
+ */
419
+ protected fetch<T>(apiFetch: ApiFetch): Promise<T>;
420
+ /**
421
+ * Reading data from the response.
422
+ *
423
+ * Чтение данных из ответа.
424
+ * @param query response from the server/ ответ от сервера
425
+ * @param queryReturn custom function for reading data/ кастомная функция для чтения данных
426
+ * @param end finalization data/ данные финализации
427
+ */
428
+ protected readData<T>(query: Response, queryReturn: ApiFetch['queryReturn'], end: ApiPreparationEnd): Promise<ApiData<T>>;
429
+ /**
430
+ * Executing the request.
431
+ *
432
+ * Выполнение запроса.
433
+ * @param apiFetch property of the request/ свойство запроса
434
+ */
435
+ protected makeQuery(apiFetch: ApiFetch): Promise<Response>;
436
+ /**
437
+ * Transforms data if needed.
438
+ *
439
+ * Преобразует данные, если нужно.
440
+ * @param data data for transformation/ данные для преобразования
441
+ * @param toData is it necessary to process the data/ нужно ли обрабатывать данные
442
+ */
443
+ protected makeData<T>(data: ApiData<T>, toData: boolean): ApiData<T>;
444
+ /**
445
+ * Appends the status object to the response data if possible.
446
+ *
447
+ * Добавляет объект статуса к данным ответа, если это возможно.
448
+ * @param data response data/ данные ответа
449
+ * @param status status object/ объект статуса
450
+ */
451
+ protected makeStatus<T>(data: ApiData<T>, status: ApiStatus): ApiData<T>;
452
+ }
453
+
318
454
  /**
319
455
  * Supported HTTP methods type/ Тип HTTP-методов
320
456
  * (derived from ApiMethodItem enum)/ (получен из перечисления ApiMethodItem)
package/dist/library.js CHANGED
@@ -155,15 +155,15 @@ function y(e, t, n) {
155
155
  }
156
156
  //#endregion
157
157
  //#region src/classes/DataStorage.ts
158
- var b = {}, ne = "ui-storage", x = class {
158
+ var ne = {}, re = "ui-storage", b = class {
159
159
  static setPrefix(e) {
160
- ne = e;
160
+ re = e;
161
161
  }
162
162
  constructor(e, t = !1) {
163
163
  y(this, "value", void 0), y(this, "age", void 0), this.name = e, this.isSession = t;
164
164
  let n = `${t ? "session" : "storage"}#${e}`;
165
- if (n in b) return b[n];
166
- this.make(), b[n] = this;
165
+ if (n in ne) return ne[n];
166
+ this.make(), ne[n] = this;
167
167
  }
168
168
  get(e, t) {
169
169
  if (this.value !== null && this.value !== void 0 && this.isCache(t)) return this.value;
@@ -198,7 +198,7 @@ var b = {}, ne = "ui-storage", x = class {
198
198
  }
199
199
  }
200
200
  getIndex() {
201
- return `${ne}__${this.name}`;
201
+ return `${re}__${this.name}`;
202
202
  }
203
203
  getValue() {
204
204
  var e;
@@ -213,7 +213,7 @@ var b = {}, ne = "ui-storage", x = class {
213
213
  let e = this.getValue();
214
214
  return e ? (this.value = e.value, this.age = e.age) : (this.value = void 0, this.age = void 0), this;
215
215
  }
216
- }, S, re = "geo-code", C = class {
216
+ }, x, ie = "geo-code", S = class {
217
217
  static get() {
218
218
  return this.item;
219
219
  }
@@ -297,17 +297,17 @@ var b = {}, ne = "ui-storage", x = class {
297
297
  });
298
298
  }
299
299
  };
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);
300
+ x = S, y(S, "storage", new b(ie)), y(S, "location", void 0), y(S, "item", void 0), y(S, "language", void 0), y(S, "timezone", (/* @__PURE__ */ new Date()).getTimezoneOffset()), x.location = x.findLocation(), x.language = x.findLanguage(x.location), x.item = x.getByCode(x.location);
301
301
  //#endregion
302
302
  //#region src/functions/isWindow.ts
303
- function ie(e) {
303
+ function ae(e) {
304
304
  return d() && e === window;
305
305
  }
306
306
  //#endregion
307
307
  //#region src/functions/getElement.ts
308
- function w(e) {
308
+ function C(e) {
309
309
  if (d()) {
310
- if (ie(e)) return document.body;
310
+ if (ae(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,30 +317,30 @@ function w(e) {
317
317
  }
318
318
  //#endregion
319
319
  //#region src/functions/getElementOrWindow.ts
320
- function T(e) {
321
- return ie(e) ? e : w(e);
320
+ function oe(e) {
321
+ return ae(e) ? e : C(e);
322
322
  }
323
323
  //#endregion
324
324
  //#region src/functions/isInDom.ts
325
- function ae(e) {
325
+ function se(e) {
326
326
  var t;
327
- return !!((t = w(e)) != null && t.closest("html"));
327
+ return !!((t = C(e)) != null && t.closest("html"));
328
328
  }
329
329
  //#endregion
330
330
  //#region src/functions/toArray.ts
331
- function E(e) {
331
+ function w(e) {
332
332
  return Array.isArray(e) ? e : [e];
333
333
  }
334
334
  //#endregion
335
335
  //#region src/classes/EventItem.ts
336
- var oe = class {
336
+ var ce = 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
- if (ae(this.elementControl)) {
339
+ if (se(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 = T(e), this.elementControl = w(e), this.type = E(t);
343
+ }), y(this, "activity", !1), y(this, "activityItems", []), this.listener = r, this.options = i, this.detail = a, this.element = oe(e), this.elementControl = C(e), this.type = w(t);
344
344
  }
345
345
  isActive() {
346
346
  return this.activity;
@@ -349,14 +349,14 @@ var oe = class {
349
349
  return this.element;
350
350
  }
351
351
  setElement(e) {
352
- let t = T(e);
353
- return this.elementControlEdit || (this.elementControl = w(e)), this.element = t, this.reset(), this;
352
+ let t = oe(e);
353
+ return this.elementControlEdit || (this.elementControl = C(e)), this.element = t, this.reset(), this;
354
354
  }
355
355
  setElementControl(e) {
356
- return this.elementControl = w(e), this.elementControlEdit = !o(this.elementControl), this.elementControlEdit || (this.elementControl = w(this.element)), this;
356
+ return this.elementControl = C(e), this.elementControlEdit = !o(this.elementControl), this.elementControlEdit || (this.elementControl = C(this.element)), this;
357
357
  }
358
358
  setType(e) {
359
- return this.type = E(e), this.reset(), this;
359
+ return this.type = w(e), this.reset(), this;
360
360
  }
361
361
  setListener(e) {
362
362
  return this.listener = e, this;
@@ -425,7 +425,7 @@ var oe = class {
425
425
  }
426
426
  return !1;
427
427
  }
428
- }, se, ce = "ui-loading", D = class {
428
+ }, le, ue = "ui-loading", T = class {
429
429
  static is() {
430
430
  return this.value > 0;
431
431
  }
@@ -440,7 +440,7 @@ var oe = class {
440
440
  }
441
441
  static registrationEvent(e, t) {
442
442
  if (d()) {
443
- let n = new oe(window, ce, e).setElementControl(t).start();
443
+ let n = new ce(window, ue, e).setElementControl(t).start();
444
444
  this.registrationList.push({
445
445
  item: n,
446
446
  listener: e,
@@ -456,10 +456,10 @@ var oe = class {
456
456
  (e = this.event) == null || e.dispatch({ loading: this.is() });
457
457
  }
458
458
  };
459
- se = D, y(D, "value", 0), y(D, "event", void 0), y(D, "registrationList", []), d() && (se.event = new oe(window, ce));
459
+ le = T, y(T, "value", 0), y(T, "event", void 0), y(T, "registrationList", []), d() && (le.event = new ce(window, ue));
460
460
  //#endregion
461
461
  //#region src/classes/ApiHeaders.ts
462
- var le = class {
462
+ var de = class {
463
463
  constructor() {
464
464
  y(this, "headers", {});
465
465
  }
@@ -472,9 +472,9 @@ var le = class {
472
472
  set(e) {
473
473
  return c(e) && (this.headers = e), this;
474
474
  }
475
- }, O = /* @__PURE__ */ function(e) {
475
+ }, E = /* @__PURE__ */ function(e) {
476
476
  return e.get = "GET", e.post = "POST", e.put = "PUT", e.delete = "DELETE", e;
477
- }({}), ue = class {
477
+ }({}), fe = class {
478
478
  constructor() {
479
479
  y(this, "value", void 0);
480
480
  }
@@ -498,7 +498,7 @@ var le = class {
498
498
  addByFormData(e, t) {
499
499
  for (let n in t) e.has(n) || e.set(n, t[n]);
500
500
  }
501
- }, k = class {
501
+ }, D = class {
502
502
  constructor() {
503
503
  y(this, "value", void 0);
504
504
  }
@@ -556,18 +556,18 @@ var le = class {
556
556
  };
557
557
  //#endregion
558
558
  //#region src/functions/executePromise.ts
559
- async function de(e) {
559
+ async function pe(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 A(e, t) {
565
+ function O(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 fe = "d-response-loading", pe = class {
570
+ var me = "d-response-loading", he = 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
  }
@@ -578,13 +578,13 @@ var fe = "d-response-loading", pe = class {
578
578
  return this.response.filter((e) => e.isForGlobal !== !0);
579
579
  }
580
580
  add(e) {
581
- return this.response.push(...E(e)), this;
581
+ return this.response.push(...w(e)), this;
582
582
  }
583
583
  setDevMode(e) {
584
584
  return this.devMode = e, this;
585
585
  }
586
586
  async emulator(e) {
587
- let { path: t = "", method: n = O.get, global: r = n === O.get, devMode: i = !1 } = e;
587
+ let { path: t = "", method: n = E.get, global: r = n === E.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 fe = "d-response-loading", pe = class {
611
611
  }
612
612
  fetch(e, t) {
613
613
  return this.startResponseLoading(), new Promise((n) => {
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));
614
+ pe(h(e.response) ? e.response(t) : e.response).then((t) => {
615
+ e != null && e.lag ? (T.show(), setTimeout(() => {
616
+ this.stopResponseLoading(), n(t), T.hide();
617
+ }, O(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(fe);
622
+ this.loading && clearTimeout(this.loading), d() && document.body.classList.add(me);
623
623
  }
624
624
  stopResponseLoading() {
625
625
  this.loading = setTimeout(() => {
626
- this.loading = void 0, d() && document.body.classList.remove(fe);
626
+ this.loading = void 0, d() && document.body.classList.remove(me);
627
627
  }, 1200);
628
628
  }
629
- }, me = class {
629
+ }, ge = class {
630
630
  constructor() {
631
631
  y(this, "callback", void 0), y(this, "callbackEnd", void 0), y(this, "loading", !1);
632
632
  }
@@ -654,103 +654,158 @@ var fe = "d-response-loading", pe = class {
654
654
  let n = {};
655
655
  return this.callbackEnd && (n = await this.callbackEnd(e, t)), n;
656
656
  }
657
- }, he, j = class e {
658
- static isLocalhost() {
657
+ }, _e = class {
658
+ constructor(e = "/api/") {
659
+ y(this, "headers", new de()), y(this, "requestDefault", new fe()), y(this, "status", new D()), y(this, "response", new he(this.requestDefault)), y(this, "preparation", new ge()), this.url = e;
660
+ }
661
+ isLocalhost() {
659
662
  return typeof location > "u" || location.hostname === "localhost";
660
663
  }
661
- static getStatus() {
664
+ getStatus() {
662
665
  return this.status;
663
666
  }
664
- static getResponse() {
667
+ getResponse() {
665
668
  return this.response;
666
669
  }
667
- static getUrl(e, t = !0) {
668
- return `${t ? this.url : ""}${e}`.replace("{locale}", C.getLocation()).replace("{country}", C.getCountry()).replace("{language}", C.getLanguage());
670
+ getUrl(e, t = !0) {
671
+ return `${t ? this.url : ""}${e}`.replace("{locale}", S.getLocation()).replace("{country}", S.getCountry()).replace("{language}", S.getLanguage());
669
672
  }
670
- static getBody(e = {}, t = O.get) {
673
+ getBody(e = {}, t = E.get) {
671
674
  if (e instanceof FormData) return e;
672
- if (t !== O.get && s(e)) return l(e) ? e : JSON.stringify(e);
675
+ if (t !== E.get && s(e)) return l(e) ? e : JSON.stringify(e);
673
676
  }
674
- static getBodyForGet(e, t = "", n = O.get) {
675
- if (n === O.get) {
677
+ getBodyForGet(e, t = "", n = E.get) {
678
+ if (n === E.get) {
676
679
  let n = t.match(/\?/) ? "&" : "?", r = typeof e == "object" ? i(e) : e;
677
680
  if (s(r)) return `${n}${r}`;
678
681
  }
679
682
  return "";
680
683
  }
681
- static setHeaders(t) {
682
- return this.headers.set(t), e;
684
+ setHeaders(e) {
685
+ return this.headers.set(e), this;
683
686
  }
684
- static setRequestDefault(t) {
685
- return this.requestDefault.set(t), e;
687
+ setRequestDefault(e) {
688
+ return this.requestDefault.set(e), this;
686
689
  }
687
- static setUrl(t) {
688
- return this.url = t, e;
690
+ setUrl(e) {
691
+ return this.url = e, this;
689
692
  }
690
- static setPreparation(t) {
691
- return this.preparation.set(t), e;
693
+ setPreparation(e) {
694
+ return this.preparation.set(e), this;
692
695
  }
693
- static setEnd(t) {
694
- return this.preparation.setEnd(t), e;
696
+ setEnd(e) {
697
+ return this.preparation.setEnd(e), this;
695
698
  }
696
- static async request(e) {
699
+ async request(e) {
697
700
  return l(e) ? await this.fetch({ path: e }) : await this.fetch(e);
698
701
  }
699
- static get(e) {
700
- return this.request(t(e, { method: O.get }));
702
+ get(e) {
703
+ return this.request(t(e, { method: E.get }));
701
704
  }
702
- static post(e) {
703
- return this.request(t(e, { method: O.post }));
705
+ post(e) {
706
+ return this.request(t(e, { method: E.post }));
704
707
  }
705
- static put(e) {
706
- return this.request(t(e, { method: O.put }));
708
+ put(e) {
709
+ return this.request(t(e, { method: E.put }));
707
710
  }
708
- static delete(e) {
709
- return this.request(t(e, { method: O.delete }));
711
+ delete(e) {
712
+ return this.request(t(e, { method: E.delete }));
710
713
  }
711
- static async fetch(e) {
714
+ async fetch(e) {
712
715
  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
716
  if (o) return o;
714
- let s = new k(), c;
715
- D.show();
717
+ let s = new D(), c;
718
+ T.show();
716
719
  try {
717
720
  await this.preparation.make(i, e);
718
721
  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 D.hide(), await this.fetch(e);
722
+ if (s.setStatus(t.status, t.statusText), this.status.setStatus(t.status, t.statusText), n != null && n.reset) return T.hide(), await this.fetch(e);
720
723
  c = await this.readData(t, r, n);
721
724
  } catch (e) {
722
- throw n || console.error("Api: ", e), s.setError(String(e)), this.status.setError(String(e)), D.hide(), e;
725
+ throw n || console.error("Api: ", e), s.setError(String(e)), this.status.setError(String(e)), T.hide(), e;
723
726
  }
724
- return D.hide(), s.setLastResponse(c), this.status.setLastResponse(c), this.makeStatus(this.makeData(c, t), s);
727
+ return T.hide(), s.setLastResponse(c), this.status.setLastResponse(c), this.makeStatus(this.makeData(c, t), s);
725
728
  }
726
- static async readData(e, t, n) {
729
+ async readData(e, t, n) {
727
730
  var r;
728
731
  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
732
  }
730
- static async makeQuery(e) {
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, {
733
+ async makeQuery(e) {
734
+ let n = this.requestDefault.request(e.request), { api: r = !0, path: i = "", pathFull: a = void 0, method: o = E.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
735
  method: o,
733
736
  body: this.getBody(n, o)
734
737
  });
735
738
  return p && (m.headers = p), u && (m.signal = u.signal), await fetch(f, m);
736
739
  }
737
- static makeData(e, n) {
740
+ makeData(e, n) {
738
741
  if (!n || !e || !c(e) || !("data" in e)) return e;
739
742
  if (e.data !== null && typeof e.data != "object" || a(e.data)) return e.data;
740
743
  let r = t(e.data);
741
744
  return "success" in e && !("success" in r) && (r.success = e.success), "status" in e && !("status" in r) && (r.status = e.status), "message" in e && !("message" in r) && (r.message = e.message), r;
742
745
  }
743
- static makeStatus(e, t) {
746
+ makeStatus(e, t) {
744
747
  return e && c(e) ? {
745
748
  ...e,
746
749
  statusObject: t.get()
747
750
  } : e;
748
751
  }
752
+ }, k = class e {
753
+ static isLocalhost() {
754
+ return this.item.isLocalhost();
755
+ }
756
+ static getItem() {
757
+ return this.item;
758
+ }
759
+ static getStatus() {
760
+ return this.item.getStatus();
761
+ }
762
+ static getResponse() {
763
+ return this.item.getResponse();
764
+ }
765
+ static getUrl(e, t = !0) {
766
+ return this.item.getUrl(e, t);
767
+ }
768
+ static getBody(e = {}, t = E.get) {
769
+ return this.item.getBody(e, t);
770
+ }
771
+ static getBodyForGet(e, t = "", n = E.get) {
772
+ return this.item.getBodyForGet(e, t, n);
773
+ }
774
+ static setHeaders(t) {
775
+ return this.item.setHeaders(t), e;
776
+ }
777
+ static setRequestDefault(t) {
778
+ return this.item.setRequestDefault(t), e;
779
+ }
780
+ static setUrl(t) {
781
+ return this.item.setUrl(t), e;
782
+ }
783
+ static setPreparation(t) {
784
+ return this.item.setPreparation(t), e;
785
+ }
786
+ static setEnd(t) {
787
+ return this.item.setEnd(t), e;
788
+ }
789
+ static async request(e) {
790
+ return this.item.request(e);
791
+ }
792
+ static get(e) {
793
+ return this.item.get(e);
794
+ }
795
+ static post(e) {
796
+ return this.item.post(e);
797
+ }
798
+ static put(e) {
799
+ return this.item.put(e);
800
+ }
801
+ static delete(e) {
802
+ return this.item.delete(e);
803
+ }
749
804
  };
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());
805
+ y(k, "item", new _e());
751
806
  //#endregion
752
807
  //#region src/classes/BroadcastMessage.ts
753
- var ge = class {
808
+ var ve = class {
754
809
  constructor(e, t, n) {
755
810
  if (y(this, "channel", void 0), y(this, "update", (e) => {
756
811
  var t;
@@ -759,7 +814,7 @@ var ge = class {
759
814
  var t;
760
815
  return (t = this.callbackError) == null || t.call(this, e), this;
761
816
  }), this.callback = t, this.callbackError = n, d()) try {
762
- this.channel = new BroadcastChannel(`${_e()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
817
+ this.channel = new BroadcastChannel(`${ye()}__${e}`), this.channel.onmessage = this.update, this.channel.onmessageerror = this.updateError;
763
818
  } catch (t) {
764
819
  console.error(`BroadcastMessage ${e}:`, t);
765
820
  }
@@ -777,7 +832,7 @@ var ge = class {
777
832
  setCallbackError(e) {
778
833
  return this.callbackError = e, this;
779
834
  }
780
- }, _e = () => new x("__broadcast-name").get(() => `name_${A(1e6, 9999999)}`), ve = class {
835
+ }, ye = () => new b("__broadcast-name").get(() => `name_${O(1e6, 9999999)}`), be = class {
781
836
  constructor(e) {
782
837
  y(this, "cache", void 0), y(this, "cacheOld", void 0), y(this, "comparisons", []), this.callback = e;
783
838
  }
@@ -799,7 +854,7 @@ var ge = class {
799
854
  isUpdate(e) {
800
855
  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
856
  }
802
- }, ye = class {
857
+ }, xe = class {
803
858
  constructor() {
804
859
  y(this, "cache", {});
805
860
  }
@@ -810,17 +865,17 @@ var ge = class {
810
865
  return await this.getCacheItem(e, t).getCacheAsync(n == null ? [] : n);
811
866
  }
812
867
  getCacheItem(e, t) {
813
- return e in this.cache || (this.cache[e] = new ve(t)), this.cache[e];
868
+ return e in this.cache || (this.cache[e] = new be(t)), this.cache[e];
814
869
  }
815
- }, be, xe = class {
870
+ }, Se, Ce = class {
816
871
  static get(e, t, n) {
817
872
  return this.cache.get(e, t, n);
818
873
  }
819
874
  };
820
- be = xe, y(xe, "cache", void 0), be.cache = new ye();
875
+ Se = Ce, y(Ce, "cache", void 0), Se.cache = new xe();
821
876
  //#endregion
822
877
  //#region src/functions/transformation.ts
823
- function Se(e, t = !1) {
878
+ function we(e, t = !1) {
824
879
  if (typeof e == "string") {
825
880
  let r = e.trim();
826
881
  switch (r) {
@@ -844,7 +899,7 @@ function Se(e, t = !1) {
844
899
  }
845
900
  //#endregion
846
901
  //#region src/classes/CookieBlock.ts
847
- var Ce = "cookie-block", we = class {
902
+ var Te = "cookie-block", Ee = class {
848
903
  static get() {
849
904
  var e;
850
905
  return (e = this.storage.get()) == null ? !1 : e;
@@ -853,13 +908,13 @@ var Ce = "cookie-block", we = class {
853
908
  this.storage.set(e);
854
909
  }
855
910
  };
856
- y(we, "storage", new x(Ce));
911
+ y(Ee, "storage", new b(Te));
857
912
  //#endregion
858
913
  //#region src/classes/Cookie.ts
859
- var Te, M = {}, Ee = class {
914
+ var De, A = {}, Oe = class {
860
915
  constructor(e) {
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;
916
+ if (y(this, "value", void 0), y(this, "options", {}), this.name = e, e in j) return j[e];
917
+ this.value = A == null ? void 0 : A[e], j[e] = this;
863
918
  }
864
919
  get(e, t) {
865
920
  return this.value === void 0 && e && this.set(e, t), this.value;
@@ -875,7 +930,7 @@ var Te, M = {}, Ee = class {
875
930
  return (e = (t = this.options) == null ? void 0 : t.age) == null ? 10080 * 60 : e;
876
931
  }
877
932
  update() {
878
- if (d() && !_() && !we.get()) {
933
+ if (d() && !_() && !Ee.get()) {
879
934
  var e, t, n, r, i;
880
935
  let a = String((e = this.value) == null ? "" : e);
881
936
  document.cookie = [
@@ -889,40 +944,40 @@ var Te, M = {}, Ee = class {
889
944
  static updateData() {
890
945
  for (let e of document.cookie.split(";")) {
891
946
  let [t, n] = e.trim().split("=");
892
- t && s(n) && (M[t] = Se(n));
947
+ t && s(n) && (A[t] = we(n));
893
948
  }
894
949
  }
895
950
  };
896
- Te = Ee, d() && !_() && Te.updateData();
897
- var N = {};
951
+ De = Oe, d() && !_() && De.updateData();
952
+ var j = {};
898
953
  //#endregion
899
954
  //#region src/functions/toDate.ts
900
- function P(e) {
955
+ function M(e) {
901
956
  var t, n, r, i, a, s, c, l;
902
957
  if (e instanceof Date) return e;
903
958
  if (o(e)) return /* @__PURE__ */ new Date();
904
959
  if (typeof e == "number") return new Date(e);
905
- let u = e, d = C.getTimezoneFormat().trim();
960
+ let u = e, d = S.getTimezoneFormat().trim();
906
961
  e.replace(/^([\s\S]+)([-+]\d{2}:?\d{2})$/, (e, t, n) => (u = t, d = n.trim(), e));
907
962
  let f = (t = (n = (r = (i = (a = (s = (c = (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") : c) == null ? /^\d{4}-\d{2}-\d{2}$/.exec(u) && `${u}T00:00:00` : s) == 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;
908
963
  return /* @__PURE__ */ new Date(`${f.trim()}${d}`);
909
964
  }
910
965
  //#endregion
911
966
  //#region src/functions/getColumn.ts
912
- function De(e, t) {
967
+ function ke(e, t) {
913
968
  return r(e, (e) => e == null ? void 0 : e[t], !0);
914
969
  }
915
970
  //#endregion
916
971
  //#region src/classes/GeoIntl.ts
917
- var F = class e {
918
- static getInstance(t = C.getLocation()) {
972
+ var N = class e {
973
+ static getInstance(t = S.getLocation()) {
919
974
  return new e(t);
920
975
  }
921
- constructor(e = C.getLocation()) {
922
- y(this, "geo", void 0), this.geo = C.find(e);
976
+ constructor(e = S.getLocation()) {
977
+ y(this, "geo", void 0), this.geo = S.find(e);
923
978
  let t = this.getLocation();
924
- if (t in I) return I[t];
925
- I[t] = this;
979
+ if (t in Ae) return Ae[t];
980
+ Ae[t] = this;
926
981
  }
927
982
  getLocation() {
928
983
  return this.geo.standard;
@@ -949,7 +1004,7 @@ var F = class e {
949
1004
  type: "language",
950
1005
  style: t
951
1006
  };
952
- return this.display(C.getByCode(e).language, n);
1007
+ return this.display(S.getByCode(e).language, n);
953
1008
  }
954
1009
  countryName(e, t) {
955
1010
  let n = {
@@ -993,7 +1048,7 @@ var F = class e {
993
1048
  }, i = e.toString().replace(/^([\S\s]+[\d ])([a-zA-Z]{3})$/i, (...e) => (r.currency = String(e[2]).toUpperCase(), String(e[1])));
994
1049
  if (n) {
995
1050
  let t = this.numberObject(r);
996
- return t ? De(t.formatToParts(p(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
1051
+ return t ? ke(t.formatToParts(p(e)).filter((e) => ["literal", "currency"].indexOf(e.type) === -1), "value").join("") : e.toString();
997
1052
  } else if ("currency" in r) return this.number(typeof e == "number" ? e : i, r);
998
1053
  else return this.number(typeof e == "number" ? e : i, {
999
1054
  ...r,
@@ -1070,18 +1125,18 @@ var F = class e {
1070
1125
  return `${this.number(a, r)} ${(i = o == null ? void 0 : o[0]) == null ? "" : i}`.trim();
1071
1126
  }
1072
1127
  date(e, t, n, r) {
1073
- let i = P(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
1128
+ let i = M(e), a = typeof n == "string", o = this.dateOptions(t, a ? n : "short");
1074
1129
  return r && (o.hour12 = !1), a || Object.assign(o, n), i.toLocaleString(this.getLocation(), o);
1075
1130
  }
1076
1131
  relative(e, t, n) {
1077
- let r = P(e), i = n || /* @__PURE__ */ new Date(), a = {
1132
+ let r = M(e), i = n || /* @__PURE__ */ new Date(), a = {
1078
1133
  numeric: "auto",
1079
1134
  ...typeof t == "string" ? { style: t } : t || {}
1080
1135
  }, o = "second", s = (r.getTime() - i.getTime()) / 1e3;
1081
1136
  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
1137
  }
1083
1138
  relativeLimit(e, t, n, r, i, a, o) {
1084
- let s = P(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
1139
+ let s = M(e), c = n || /* @__PURE__ */ new Date(), l = new Date(c), u = new Date(c);
1085
1140
  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
1141
  }
1087
1142
  relativeByValue(e, t, n) {
@@ -1098,7 +1153,7 @@ var F = class e {
1098
1153
  }
1099
1154
  month(e, t) {
1100
1155
  try {
1101
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(P(e));
1156
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { month: t || "long" }).format(M(e));
1102
1157
  } catch (e) {
1103
1158
  console.error("month: ", e);
1104
1159
  }
@@ -1124,7 +1179,7 @@ var F = class e {
1124
1179
  }
1125
1180
  weekday(e, t) {
1126
1181
  try {
1127
- if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(P(e));
1182
+ if (this.hasIntlDateTimeFormat()) return Intl.DateTimeFormat(this.getLocation(), { weekday: t || "long" }).format(M(e));
1128
1183
  } catch (e) {
1129
1184
  console.error("weekday: ", e);
1130
1185
  }
@@ -1214,12 +1269,12 @@ var F = class e {
1214
1269
  "second"
1215
1270
  ].indexOf(e) !== -1 && (n.second = "2-digit")), n;
1216
1271
  }
1217
- }, I = {}, Oe = class e {
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 = P(e);
1272
+ }, Ae = {}, je = class e {
1273
+ constructor(e, t = "date", n = S.getLocation()) {
1274
+ y(this, "date", void 0), y(this, "hour24", !1), y(this, "watch", void 0), this.type = t, this.code = n, this.date = M(e);
1220
1275
  }
1221
1276
  getIntl() {
1222
- return new F(this.code);
1277
+ return new N(this.code);
1223
1278
  }
1224
1279
  getDate() {
1225
1280
  return this.date;
@@ -1322,7 +1377,7 @@ var F = class e {
1322
1377
  ].indexOf(this.type) !== -1 && (i = n.locale("time"))), `${r.join("-")}${i ? `T${i}${t ? n.getTimeZone() : ""}` : ""}`;
1323
1378
  }
1324
1379
  setDate(e) {
1325
- return this.date = P(e), this.update(), this;
1380
+ return this.date = M(e), this.update(), this;
1326
1381
  }
1327
1382
  setType(e) {
1328
1383
  return this.type = e, this.update(), this;
@@ -1478,36 +1533,36 @@ var F = class e {
1478
1533
  };
1479
1534
  //#endregion
1480
1535
  //#region src/functions/anyToString.ts
1481
- function L(e, t = !0) {
1536
+ function P(e, t = !0) {
1482
1537
  var r;
1483
1538
  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
1539
  }
1485
1540
  //#endregion
1486
1541
  //#region src/functions/strSplit.ts
1487
- function ke(e, t, n) {
1488
- let r = L(e);
1542
+ function Me(e, t, n) {
1543
+ let r = P(e);
1489
1544
  if (!n || n <= 0) return r.split(t);
1490
1545
  let i = r.split(t, n), a = r.split(t);
1491
1546
  return i.length === a.length ? i : (i.pop(), [...i, a.slice(n - 1).join(t)]);
1492
1547
  }
1493
1548
  //#endregion
1494
1549
  //#region src/functions/getItemByPath.ts
1495
- function R(e, t) {
1550
+ function F(e, t) {
1496
1551
  var r;
1497
1552
  if (!s(t)) return;
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;
1553
+ let i = Me(t, ".", 2), a = i[0];
1554
+ return a && e != null && e[a] && n(e[a]) && i != null && i[1] ? F(e[a], i[1]) : (r = s(a) && (e == null ? void 0 : e[a])) == null ? void 0 : r;
1500
1555
  }
1501
1556
  //#endregion
1502
1557
  //#region src/functions/toCamelCase.ts
1503
- function Ae(e) {
1558
+ function I(e) {
1504
1559
  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
1560
  }
1506
1561
  //#endregion
1507
1562
  //#region src/types/formattersTypes.ts
1508
- var z = /* @__PURE__ */ function(e) {
1563
+ var L = /* @__PURE__ */ function(e) {
1509
1564
  return e.currency = "currency", e.date = "date", e.name = "name", e.number = "number", e.plural = "plural", e.unit = "unit", e;
1510
- }({}), je = class {
1565
+ }({}), Ne = class {
1511
1566
  constructor(e, t) {
1512
1567
  this.options = e, this.list = t;
1513
1568
  }
@@ -1521,7 +1576,7 @@ var z = /* @__PURE__ */ function(e) {
1521
1576
  return this.list ? this.isArray() ? this.list.length : 1 : 0;
1522
1577
  }
1523
1578
  getList() {
1524
- return this.list ? E(this.list) : [];
1579
+ return this.list ? w(this.list) : [];
1525
1580
  }
1526
1581
  getOptions() {
1527
1582
  return this.options;
@@ -1539,50 +1594,50 @@ var z = /* @__PURE__ */ function(e) {
1539
1594
  getFormatData(e) {
1540
1595
  let t = {};
1541
1596
  return r(this.options, (n, r) => {
1542
- let i = `${Ae(r)}Format`, a = R(e, r);
1597
+ let i = `${I(r)}Format`, a = F(e, r);
1543
1598
  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
1599
  }), t;
1545
1600
  }
1546
1601
  transformation(e, t, n, 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);
1602
+ if (s(e) || n === L.name) switch (n) {
1603
+ case L.currency: return this.formatCurrency(e, t, r);
1604
+ case L.date: return this.formatDate(e, r);
1605
+ case L.name: return this.formatName(t, r);
1606
+ case L.number: return this.formatNumber(e, r);
1607
+ case L.plural: return this.formatPlural(e, r);
1608
+ case L.unit: return this.formatUnit(e, r);
1554
1609
  default: return String(e);
1555
1610
  }
1556
1611
  return "";
1557
1612
  }
1558
1613
  formatCurrency(e, t, n) {
1559
1614
  var r;
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);
1615
+ let i = n != null && n.currencyPropName ? F(t, n.currencyPropName) : t == null ? void 0 : t.currency;
1616
+ return N.getInstance().currency(e, (r = n == null ? void 0 : n.options) == null ? i : r, n == null ? void 0 : n.numberOnly);
1562
1617
  }
1563
1618
  formatDate(e, t) {
1564
- return F.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
1619
+ return N.getInstance().date(e, t == null ? void 0 : t.type, t == null ? void 0 : t.options, t == null ? void 0 : t.hour24);
1565
1620
  }
1566
1621
  formatName(e, t) {
1567
1622
  var n, r, i;
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) : "";
1623
+ let a = F(e, (n = t == null ? void 0 : t.lastPropName) == null ? "lastName" : n), o = F(e, (r = t == null ? void 0 : t.firstPropName) == null ? "firstName" : r), s = F(e, (i = t == null ? void 0 : t.surname) == null ? "surname" : i);
1624
+ return a && o ? N.getInstance().fullName(a, o, s, t == null ? void 0 : t.short) : "";
1570
1625
  }
1571
1626
  formatNumber(e, t) {
1572
- return F.getInstance().number(e, t == null ? void 0 : t.options);
1627
+ return N.getInstance().number(e, t == null ? void 0 : t.options);
1573
1628
  }
1574
1629
  formatPlural(e, t) {
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;
1630
+ return t && t.words ? N.getInstance().plural(e, t == null ? void 0 : t.words, t == null ? void 0 : t.options, t == null ? void 0 : t.optionsNumber) : e;
1576
1631
  }
1577
1632
  formatUnit(e, t) {
1578
- return t && t.unit ? F.getInstance().unit(e, t.unit) : e;
1633
+ return t && t.unit ? N.getInstance().unit(e, t.unit) : e;
1579
1634
  }
1580
- }, Me = "f", Ne = class e {
1581
- constructor(e = C.getLocation()) {
1635
+ }, Pe = "f", Fe = class e {
1636
+ constructor(e = S.getLocation()) {
1582
1637
  this.code = e;
1583
1638
  }
1584
1639
  get(t = this.code) {
1585
- let n = C.find(t);
1640
+ let n = S.find(t);
1586
1641
  if (n) {
1587
1642
  var r;
1588
1643
  let t = this.getCountry(n);
@@ -1618,7 +1673,7 @@ var z = /* @__PURE__ */ function(e) {
1618
1673
  return this.code = e, this;
1619
1674
  }
1620
1675
  getLocation() {
1621
- return new F(this.code);
1676
+ return new N(this.code);
1622
1677
  }
1623
1678
  getCodes(t) {
1624
1679
  return t == null ? Object.keys(e.flags) : t;
@@ -1630,7 +1685,7 @@ var z = /* @__PURE__ */ function(e) {
1630
1685
  return this.getLocation().countryName(e.country);
1631
1686
  }
1632
1687
  };
1633
- y(Ne, "flags", {
1688
+ y(Fe, "flags", {
1634
1689
  AD: "f-ad",
1635
1690
  AE: "f-ae",
1636
1691
  AF: "f-af",
@@ -1875,7 +1930,7 @@ y(Ne, "flags", {
1875
1930
  });
1876
1931
  //#endregion
1877
1932
  //#region src/classes/GeoPhone.ts
1878
- var Pe, B = class {
1933
+ var R, z = class {
1879
1934
  static get(e) {
1880
1935
  return this.list.find((t) => e === t.value);
1881
1936
  }
@@ -1929,11 +1984,11 @@ var Pe, B = class {
1929
1984
  return (t = (n = e.match(/\*/g)) == null ? void 0 : n.length) == null ? 0 : t;
1930
1985
  }
1931
1986
  static makeList() {
1932
- this.list = r(C.getList(), (e) => {
1987
+ this.list = r(S.getList(), (e) => {
1933
1988
  if (e != null && e.phoneMask) return {
1934
1989
  phone: (e == null ? void 0 : e.phoneCode) && Number(e.phoneCode.replace(/[^0-9]+/, "")) || void 0,
1935
1990
  within: (e == null ? void 0 : e.phoneWithin) || 0,
1936
- mask: E(e.phoneMask),
1991
+ mask: w(e.phoneMask),
1937
1992
  value: e.country
1938
1993
  };
1939
1994
  }).sort((e, t) => e.phone - t.phone);
@@ -1971,17 +2026,17 @@ var Pe, B = class {
1971
2026
  return e.replace(/\*/, this.getWithinSymbol(t));
1972
2027
  }
1973
2028
  };
1974
- Pe = B, y(B, "list", []), y(B, "map", {}), Pe.makeList(), Pe.makeMap();
2029
+ R = z, y(z, "list", []), y(z, "map", {}), R.makeList(), R.makeMap();
1975
2030
  //#endregion
1976
2031
  //#region src/classes/Global.ts
1977
- var V, Fe = class {
2032
+ var B, Ie = class {
1978
2033
  static get(e) {
1979
- return V && (V == null ? void 0 : V[e]);
2034
+ return B && (B == null ? void 0 : B[e]);
1980
2035
  }
1981
2036
  static add(e) {
1982
- V === void 0 && (V = t(e));
2037
+ B === void 0 && (B = t(e));
1983
2038
  }
1984
- }, Ie, H = class {
2039
+ }, V, H = class {
1985
2040
  static get(e, t) {
1986
2041
  return !(e in this.hash) && t && this.set(e, t), this.hash[e];
1987
2042
  }
@@ -2009,7 +2064,7 @@ var V, Fe = class {
2009
2064
  }
2010
2065
  static getLocation() {
2011
2066
  let e = {};
2012
- return location.hash.replace(/([\w-]+)[:=]([^;]+)/gi, (...t) => (e[String(t[1])] = Se(t[2]), "")), e;
2067
+ return location.hash.replace(/([\w-]+)[:=]([^;]+)/gi, (...t) => (e[String(t[1])] = we(t[2]), "")), e;
2013
2068
  }
2014
2069
  static update() {
2015
2070
  this.block = !0, history.replaceState(null, "", `#${i(this.hash, "=", ";")}`), requestAnimationFrame(() => {
@@ -2023,7 +2078,7 @@ var V, Fe = class {
2023
2078
  });
2024
2079
  }
2025
2080
  };
2026
- Ie = H, y(H, "hash", {}), y(H, "watch", {}), y(H, "block", !1), d() && (Ie.reload(), addEventListener("hashchange", () => Ie.reload()));
2081
+ V = H, y(H, "hash", {}), y(H, "watch", {}), y(H, "block", !1), d() && (V.reload(), addEventListener("hashchange", () => V.reload()));
2027
2082
  //#endregion
2028
2083
  //#region src/classes/Icons.ts
2029
2084
  var Le, Re = "__UI_ICON", ze = 320, Be = "--LOAD--", U = class {
@@ -2039,7 +2094,7 @@ var Le, Re = "__UI_ICON", ze = 320, Be = "--LOAD--", U = class {
2039
2094
  return r(this.icons, (e, t) => t.replace(/^@/, ""));
2040
2095
  }
2041
2096
  static getUrlGlobal() {
2042
- return `${j.isLocalhost(), ""}${this.url}`;
2097
+ return `${k.isLocalhost(), ""}${this.url}`;
2043
2098
  }
2044
2099
  static add(e, t) {
2045
2100
  this.icons[this.getName(e)] = t;
@@ -2068,12 +2123,12 @@ Le = U, y(U, "icons", {}), y(U, "url", "/icons/"), d() && (Re in window || (wind
2068
2123
  //#region src/functions/getElementItem.ts
2069
2124
  function Ve(e, t, n) {
2070
2125
  var r, i;
2071
- return (r = (i = w(e)) == null ? void 0 : i[t]) == null ? n : r;
2126
+ return (r = (i = C(e)) == null ? void 0 : i[t]) == null ? n : r;
2072
2127
  }
2073
2128
  //#endregion
2074
2129
  //#region src/functions/setElementItem.ts
2075
2130
  function He(e, t, i) {
2076
- let a = w(e);
2131
+ let a = C(e);
2077
2132
  if (a) {
2078
2133
  let e = Ve(a, t);
2079
2134
  if (n(e) && n(i)) r(i, (t, n) => {
@@ -2314,7 +2369,7 @@ var G = class {
2314
2369
  return this;
2315
2370
  }
2316
2371
  setKeywords(e) {
2317
- return this.set(K.keywords, E(e).join(", ")), this;
2372
+ return this.set(K.keywords, w(e).join(", ")), this;
2318
2373
  }
2319
2374
  setDescription(e) {
2320
2375
  return this.set(K.description, e), this;
@@ -2383,7 +2438,7 @@ var G = class {
2383
2438
  });
2384
2439
  }
2385
2440
  };
2386
- y(Y, "storage", new x("scrollbar", !0)), y(Y, "calculate", !1);
2441
+ y(Y, "storage", new b("scrollbar", !0)), y(Y, "calculate", !1);
2387
2442
  //#endregion
2388
2443
  //#region src/functions/escapeExp.ts
2389
2444
  function X(e) {
@@ -2441,8 +2496,8 @@ var nt = class {
2441
2496
  toFormatItem(e, t) {
2442
2497
  let n = {};
2443
2498
  return this.columns && this.columns.forEach((r) => {
2444
- let i = this.getColumnName(r), a = R(e, r);
2445
- n[i] = s(a) && t ? this.addTag(a) : L(a);
2499
+ let i = this.getColumnName(r), a = F(e, r);
2500
+ n[i] = s(a) && t ? this.addTag(a) : P(a);
2446
2501
  }), {
2447
2502
  ...e,
2448
2503
  ...n,
@@ -2453,7 +2508,7 @@ var nt = class {
2453
2508
  return e.replace(/\.([a-z0-9])/gi, (e, t) => t.toUpperCase()) + "Search";
2454
2509
  }
2455
2510
  addTag(e) {
2456
- return tt(L(e), this.item.get(), this.options.getClassName());
2511
+ return tt(P(e), this.item.get(), this.options.getClassName());
2457
2512
  }
2458
2513
  generateCache() {
2459
2514
  if (!this.isList()) return [];
@@ -2461,8 +2516,8 @@ var nt = class {
2461
2516
  for (let t of this.list) {
2462
2517
  let n = "";
2463
2518
  if (this.columns) for (let e of this.columns) {
2464
- let r = R(t, e);
2465
- s(r) && (n += ` ${L(r)}`);
2519
+ let r = F(t, e);
2520
+ s(r) && (n += ` ${P(r)}`);
2466
2521
  }
2467
2522
  e.push({
2468
2523
  item: t,
@@ -2656,8 +2711,8 @@ var st = class {
2656
2711
  });
2657
2712
  }
2658
2713
  static getIndex() {
2659
- if (C.getLocation() in this.files) return C.getLocation();
2660
- if (C.getLanguage() in this.files) return C.getLanguage();
2714
+ if (S.getLocation() in this.files) return S.getLocation();
2715
+ if (S.getLanguage() in this.files) return S.getLanguage();
2661
2716
  if ("global" in this.files) return ft;
2662
2717
  }
2663
2718
  static getByData(e) {
@@ -2677,7 +2732,7 @@ var Q = class e {
2677
2732
  static async get(e, t) {
2678
2733
  var n;
2679
2734
  let r = this.getText(e);
2680
- return r ? this.replacement(r, t) : (j.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
2735
+ return r ? this.replacement(r, t) : (k.isLocalhost() || await this.add(e), this.replacement((n = this.getText(e)) == null ? e : n));
2681
2736
  }
2682
2737
  static getSync(e, t = !1, n) {
2683
2738
  let r = this.getText(e);
@@ -2717,7 +2772,7 @@ var Q = class e {
2717
2772
  });
2718
2773
  }
2719
2774
  static async addNormalOrSync(e) {
2720
- if (s(e)) if (j.isLocalhost()) this.addSync(e);
2775
+ if (s(e)) if (k.isLocalhost()) this.addSync(e);
2721
2776
  else {
2722
2777
  let t = Object.keys(e);
2723
2778
  t.length > 0 && await this.add(t);
@@ -2753,22 +2808,22 @@ var Q = class e {
2753
2808
  if (r in this.data) return this.data[r];
2754
2809
  }
2755
2810
  static getName(e) {
2756
- return `${C.getLocation()}-${e}`;
2811
+ return `${S.getLocation()}-${e}`;
2757
2812
  }
2758
2813
  static getNameByLanguage(e) {
2759
- return `${C.getLanguage()}-${e}`;
2814
+ return `${S.getLanguage()}-${e}`;
2760
2815
  }
2761
2816
  static getNameByGlobal(e) {
2762
2817
  return `${ft}-${e}`;
2763
2818
  }
2764
2819
  static getNamesNone(e) {
2765
2820
  let t = [];
2766
- return E(e).forEach((e) => {
2821
+ return w(e).forEach((e) => {
2767
2822
  e !== "__TRANSLATE_START__" && e !== "__TRANSLATE_END__" && !(this.getName(e) in this.data) && t.push(e);
2768
2823
  }), t;
2769
2824
  }
2770
2825
  static async getResponse() {
2771
- let e = await j.get({
2826
+ let e = await k.get({
2772
2827
  api: !1,
2773
2828
  path: this.url,
2774
2829
  request: { [this.propsName]: this.cache },
@@ -2867,7 +2922,7 @@ function Ct(e, t, n) {
2867
2922
  //#endregion
2868
2923
  //#region src/functions/getAttributes.ts
2869
2924
  function wt(e) {
2870
- let t = {}, n = w(e);
2925
+ let t = {}, n = C(e);
2871
2926
  if (n) for (let e of n.attributes) {
2872
2927
  var r;
2873
2928
  t[e.name] = (r = (e == null ? void 0 : e.value) || (e == null ? void 0 : e.textContent)) == null ? void 0 : r;
@@ -2883,13 +2938,13 @@ async function Tt(e) {
2883
2938
  //#endregion
2884
2939
  //#region src/functions/getCurrentDate.ts
2885
2940
  function Et(e = "datetime") {
2886
- return new Oe(void 0, e).standard();
2941
+ return new je(void 0, e).standard();
2887
2942
  }
2888
2943
  //#endregion
2889
2944
  //#region src/functions/getElementId.ts
2890
- var Dt = A(1e5, 9e5);
2945
+ var Dt = O(1e5, 9e5);
2891
2946
  function Ot(e, t) {
2892
- let n = w(e);
2947
+ let n = C(e);
2893
2948
  return n ? (s(n.id) || n.setAttribute("id", `id-${Dt++}`), t ? `#${n.id}${t}`.trim() : n.id) : `id-${Dt++}`;
2894
2949
  }
2895
2950
  //#endregion
@@ -2962,8 +3017,8 @@ function zt(e, t) {
2962
3017
  //#endregion
2963
3018
  //#region src/functions/getRandomText.ts
2964
3019
  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)));
3020
+ let a = O(e, t), o = [];
3021
+ for (let e = 0; e < a; e++) o.push(zt(n, O(r, i)));
2967
3022
  return o.join(" ");
2968
3023
  }
2969
3024
  //#endregion
@@ -3064,7 +3119,7 @@ function Zt(e, t) {
3064
3119
  //#region src/functions/isApiSuccess.ts
3065
3120
  var Qt = (e) => {
3066
3121
  var t;
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/)));
3122
+ 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(k.getStatus().getStatus()).match(/^2/)));
3068
3123
  };
3069
3124
  //#endregion
3070
3125
  //#region src/functions/isDifferent.ts
@@ -3078,7 +3133,7 @@ function $t(e, t) {
3078
3133
  //#region src/functions/isElementVisible.ts
3079
3134
  function en(e) {
3080
3135
  if (!d()) return !1;
3081
- let t = w(e);
3136
+ let t = C(e);
3082
3137
  if (!t || "isConnected" in t && t.isConnected === !1) return !1;
3083
3138
  let n = window.getComputedStyle(t);
3084
3139
  return n.display !== "none" && n.visibility !== "hidden" && n.opacity !== "0" && t.offsetWidth !== 0 && t.offsetHeight !== 0;
@@ -3183,7 +3238,7 @@ function pn(e, t, i) {
3183
3238
  //#endregion
3184
3239
  //#region src/functions/toCamelCaseFirst.ts
3185
3240
  function mn(e) {
3186
- return Ae(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
3241
+ return I(e).replace(/^([a-z])/, (e) => `${e.toUpperCase()}`);
3187
3242
  }
3188
3243
  //#endregion
3189
3244
  //#region src/functions/toKebabCase.ts
@@ -3196,7 +3251,7 @@ function gn(e, t, n, r) {
3196
3251
  let i = p(e), a = p(t);
3197
3252
  return t && a < i ? `${_n(a, n, r)}+` : _n(i, n, r);
3198
3253
  }
3199
- var _n = (e, t, n) => t ? new F(n).number(e) : e;
3254
+ var _n = (e, t, n) => t ? new N(n).number(e) : e;
3200
3255
  //#endregion
3201
3256
  //#region src/functions/toPercent.ts
3202
3257
  function vn(e, t) {
@@ -3230,4 +3285,4 @@ async function xn(e) {
3230
3285
  }
3231
3286
  }
3232
3287
  //#endregion
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 };
3288
+ export { k as Api, fe as ApiDefault, de as ApiHeaders, _e as ApiInstance, E as ApiMethodItem, ge as ApiPreparation, he as ApiResponse, D as ApiStatus, ve as BroadcastMessage, xe as Cache, be as CacheItem, Ce as CacheStatic, Oe as Cookie, Ee as CookieBlock, b as DataStorage, je as Datetime, ce as EventItem, Ne as Formatters, L as FormattersType, Pe as GEO_FLAG_ICON_NAME, S as Geo, Fe as GeoFlag, N as GeoIntl, z as GeoPhone, Ie as Global, H as Hash, U as Icons, T 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, P 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, pe as executePromise, r as forEach, Ct as frame, wt as getAttributes, Tt as getClipboardData, ke as getColumn, Et as getCurrentDate, C as getElement, Ot as getElementId, vt as getElementImage, Ve as getElementItem, oe as getElementOrWindow, at as getExactSearchExp, it as getExp, F 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, se 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, ae as isWindow, O 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, Me as strSplit, w as toArray, I as toCamelCase, mn as toCamelCaseFirst, M as toDate, hn as toKebabCase, p as toNumber, gn as toNumberByMax, vn as toPercent, yn as toPercentBy100, we 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.12.0",
4
+ "version": "0.12.2",
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": [
@@ -81,5 +81,6 @@
81
81
  },
82
82
  "peerDependenciesMeta": {},
83
83
  "dependencies": {},
84
- "devDependencies": {}
84
+ "devDependencies": {},
85
+ "sideEffects": false
85
86
  }