mhz-helpers 1.2.25 → 1.2.27

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.
Files changed (2) hide show
  1. package/dist/index.js +363 -379
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ function Dn(t, e) {
8
8
  const { toString: qr } = Object.prototype, { getPrototypeOf: xt } = Object, { iterator: Be, toStringTag: qn } = Symbol, He = /* @__PURE__ */ ((t) => (e) => {
9
9
  const n = qr.call(e);
10
10
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
11
- })(/* @__PURE__ */ Object.create(null)), K = (t) => (t = t.toLowerCase(), (e) => He(e) === t), $e = (t) => (e) => typeof e === t, { isArray: be } = Array, ye = $e("undefined");
11
+ })(/* @__PURE__ */ Object.create(null)), K = (t) => (t = t.toLowerCase(), (e) => He(e) === t), $e = (t) => (e) => typeof e === t, { isArray: ve } = Array, ye = $e("undefined");
12
12
  function Ce(t) {
13
13
  return t !== null && !ye(t) && t.constructor !== null && !ye(t.constructor) && k(t.constructor.isBuffer) && t.constructor.isBuffer(t);
14
14
  }
@@ -39,7 +39,7 @@ function Fe(t, e, { allOwnKeys: n = !1 } = {}) {
39
39
  if (t === null || typeof t > "u")
40
40
  return;
41
41
  let r, s;
42
- if (typeof t != "object" && (t = [t]), be(t))
42
+ if (typeof t != "object" && (t = [t]), ve(t))
43
43
  for (r = 0, s = t.length; r < s; r++)
44
44
  e.call(null, t[r], r, t);
45
45
  else {
@@ -66,7 +66,7 @@ const re = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
66
66
  function st() {
67
67
  const { caseless: t, skipUndefined: e } = Un(this) && this || {}, n = {}, r = (s, i) => {
68
68
  const o = t && In(n, i) || i;
69
- Ie(n[o]) && Ie(s) ? n[o] = st(n[o], s) : Ie(s) ? n[o] = st({}, s) : be(s) ? n[o] = s.slice() : (!e || !ye(s)) && (n[o] = s);
69
+ Ie(n[o]) && Ie(s) ? n[o] = st(n[o], s) : Ie(s) ? n[o] = st({}, s) : ve(s) ? n[o] = s.slice() : (!e || !ye(s)) && (n[o] = s);
70
70
  };
71
71
  for (let s = 0, i = arguments.length; s < i; s++)
72
72
  arguments[s] && Fe(arguments[s], r);
@@ -94,7 +94,7 @@ const Jr = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (s, i) => {
94
94
  return r !== -1 && r === n;
95
95
  }, es = (t) => {
96
96
  if (!t) return null;
97
- if (be(t)) return t;
97
+ if (ve(t)) return t;
98
98
  let e = t.length;
99
99
  if (!_n(e)) return null;
100
100
  const n = new Array(e);
@@ -146,7 +146,7 @@ const Jr = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (s, i) => {
146
146
  n[i] = !0;
147
147
  });
148
148
  };
149
- return be(t) ? r(t) : r(String(t).split(e)), n;
149
+ return ve(t) ? r(t) : r(String(t).split(e)), n;
150
150
  }, cs = () => {
151
151
  }, ls = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
152
152
  function fs(t) {
@@ -161,7 +161,7 @@ const ds = (t) => {
161
161
  return r;
162
162
  if (!("toJSON" in r)) {
163
163
  e[s] = r;
164
- const i = be(r) ? [] : {};
164
+ const i = ve(r) ? [] : {};
165
165
  return Fe(r, (o, a) => {
166
166
  const u = n(o, s + 1);
167
167
  !ye(u) && (i[a] = u);
@@ -178,8 +178,8 @@ const ds = (t) => {
178
178
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
179
179
  typeof setImmediate == "function",
180
180
  k(re.postMessage)
181
- ), ys = typeof queueMicrotask < "u" ? queueMicrotask.bind(re) : typeof process < "u" && process.nextTick || kn, ms = (t) => t != null && k(t[Be]), d = {
182
- isArray: be,
181
+ ), ys = typeof queueMicrotask < "u" ? queueMicrotask.bind(re) : typeof process < "u" && process.nextTick || kn, ms = (t) => t != null && k(t[Be]), f = {
182
+ isArray: ve,
183
183
  isArrayBuffer: Nn,
184
184
  isBuffer: Ce,
185
185
  isFormData: Br,
@@ -241,7 +241,7 @@ const ds = (t) => {
241
241
  function E(t, e, n, r, s) {
242
242
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
243
243
  }
244
- d.inherits(E, Error, {
244
+ f.inherits(E, Error, {
245
245
  toJSON: function() {
246
246
  return {
247
247
  // Standard
@@ -256,7 +256,7 @@ d.inherits(E, Error, {
256
256
  columnNumber: this.columnNumber,
257
257
  stack: this.stack,
258
258
  // Axios
259
- config: d.toJSONObject(this.config),
259
+ config: f.toJSONObject(this.config),
260
260
  code: this.code,
261
261
  status: this.status
262
262
  };
@@ -284,7 +284,7 @@ Object.defineProperties(E, Qn);
284
284
  Object.defineProperty(Ln, "isAxiosError", { value: !0 });
285
285
  E.from = (t, e, n, r, s, i) => {
286
286
  const o = Object.create(Ln);
287
- d.toFlatObject(t, o, function(c) {
287
+ f.toFlatObject(t, o, function(c) {
288
288
  return c !== Error.prototype;
289
289
  }, (l) => l !== "isAxiosError");
290
290
  const a = t && t.message ? t.message : "Error", u = e == null && t ? t.code : e;
@@ -292,84 +292,84 @@ E.from = (t, e, n, r, s, i) => {
292
292
  };
293
293
  const gs = null;
294
294
  function it(t) {
295
- return d.isPlainObject(t) || d.isArray(t);
295
+ return f.isPlainObject(t) || f.isArray(t);
296
296
  }
297
297
  function jn(t) {
298
- return d.endsWith(t, "[]") ? t.slice(0, -2) : t;
298
+ return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
299
299
  }
300
300
  function jt(t, e, n) {
301
301
  return t ? t.concat(e).map(function(s, i) {
302
302
  return s = jn(s), !n && i ? "[" + s + "]" : s;
303
303
  }).join(n ? "." : "") : e;
304
304
  }
305
- function bs(t) {
306
- return d.isArray(t) && !t.some(it);
305
+ function vs(t) {
306
+ return f.isArray(t) && !t.some(it);
307
307
  }
308
- const vs = d.toFlatObject(d, {}, null, function(e) {
308
+ const bs = f.toFlatObject(f, {}, null, function(e) {
309
309
  return /^is[A-Z]/.test(e);
310
310
  });
311
311
  function Ve(t, e, n) {
312
- if (!d.isObject(t))
312
+ if (!f.isObject(t))
313
313
  throw new TypeError("target must be an object");
314
- e = e || new FormData(), n = d.toFlatObject(n, {
314
+ e = e || new FormData(), n = f.toFlatObject(n, {
315
315
  metaTokens: !0,
316
316
  dots: !1,
317
317
  indexes: !1
318
318
  }, !1, function(p, y) {
319
- return !d.isUndefined(y[p]);
319
+ return !f.isUndefined(y[p]);
320
320
  });
321
- const r = n.metaTokens, s = n.visitor || c, i = n.dots, o = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(e);
322
- if (!d.isFunction(s))
321
+ const r = n.metaTokens, s = n.visitor || c, i = n.dots, o = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
322
+ if (!f.isFunction(s))
323
323
  throw new TypeError("visitor must be a function");
324
324
  function l(h) {
325
325
  if (h === null) return "";
326
- if (d.isDate(h))
326
+ if (f.isDate(h))
327
327
  return h.toISOString();
328
- if (d.isBoolean(h))
328
+ if (f.isBoolean(h))
329
329
  return h.toString();
330
- if (!u && d.isBlob(h))
330
+ if (!u && f.isBlob(h))
331
331
  throw new E("Blob is not supported. Use a Buffer instead.");
332
- return d.isArrayBuffer(h) || d.isTypedArray(h) ? u && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
332
+ return f.isArrayBuffer(h) || f.isTypedArray(h) ? u && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
333
333
  }
334
334
  function c(h, p, y) {
335
335
  let m = h;
336
336
  if (h && !y && typeof h == "object") {
337
- if (d.endsWith(p, "{}"))
337
+ if (f.endsWith(p, "{}"))
338
338
  p = r ? p : p.slice(0, -2), h = JSON.stringify(h);
339
- else if (d.isArray(h) && bs(h) || (d.isFileList(h) || d.endsWith(p, "[]")) && (m = d.toArray(h)))
340
- return p = jn(p), m.forEach(function(v, w) {
341
- !(d.isUndefined(v) || v === null) && e.append(
339
+ else if (f.isArray(h) && vs(h) || (f.isFileList(h) || f.endsWith(p, "[]")) && (m = f.toArray(h)))
340
+ return p = jn(p), m.forEach(function(b, w) {
341
+ !(f.isUndefined(b) || b === null) && e.append(
342
342
  // eslint-disable-next-line no-nested-ternary
343
343
  o === !0 ? jt([p], w, i) : o === null ? p : p + "[]",
344
- l(v)
344
+ l(b)
345
345
  );
346
346
  }), !1;
347
347
  }
348
348
  return it(h) ? !0 : (e.append(jt(y, p, i), l(h)), !1);
349
349
  }
350
- const f = [], g = Object.assign(vs, {
350
+ const d = [], g = Object.assign(bs, {
351
351
  defaultVisitor: c,
352
352
  convertValue: l,
353
353
  isVisitable: it
354
354
  });
355
- function b(h, p) {
356
- if (!d.isUndefined(h)) {
357
- if (f.indexOf(h) !== -1)
355
+ function v(h, p) {
356
+ if (!f.isUndefined(h)) {
357
+ if (d.indexOf(h) !== -1)
358
358
  throw Error("Circular reference detected in " + p.join("."));
359
- f.push(h), d.forEach(h, function(m, O) {
360
- (!(d.isUndefined(m) || m === null) && s.call(
359
+ d.push(h), f.forEach(h, function(m, O) {
360
+ (!(f.isUndefined(m) || m === null) && s.call(
361
361
  e,
362
362
  m,
363
- d.isString(O) ? O.trim() : O,
363
+ f.isString(O) ? O.trim() : O,
364
364
  p,
365
365
  g
366
- )) === !0 && b(m, p ? p.concat(O) : [O]);
367
- }), f.pop();
366
+ )) === !0 && v(m, p ? p.concat(O) : [O]);
367
+ }), d.pop();
368
368
  }
369
369
  }
370
- if (!d.isObject(t))
370
+ if (!f.isObject(t))
371
371
  throw new TypeError("data must be an object");
372
- return b(t), e;
372
+ return v(t), e;
373
373
  }
374
374
  function Bt(t) {
375
375
  const e = {
@@ -407,12 +407,12 @@ function Hn(t, e, n) {
407
407
  if (!e)
408
408
  return t;
409
409
  const r = n && n.encode || ws;
410
- d.isFunction(n) && (n = {
410
+ f.isFunction(n) && (n = {
411
411
  serialize: n
412
412
  });
413
413
  const s = n && n.serialize;
414
414
  let i;
415
- if (s ? i = s(e, n) : i = d.isURLSearchParams(e) ? e.toString() : new Dt(e, n).toString(r), i) {
415
+ if (s ? i = s(e, n) : i = f.isURLSearchParams(e) ? e.toString() : new Dt(e, n).toString(r), i) {
416
416
  const o = t.indexOf("#");
417
417
  o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
418
418
  }
@@ -467,7 +467,7 @@ class Ht {
467
467
  * @returns {void}
468
468
  */
469
469
  forEach(e) {
470
- d.forEach(this.handlers, function(r) {
470
+ f.forEach(this.handlers, function(r) {
471
471
  r !== null && e(r);
472
472
  });
473
473
  }
@@ -499,13 +499,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Cs
499
499
  function Fs(t, e) {
500
500
  return Ve(t, new _.classes.URLSearchParams(), {
501
501
  visitor: function(n, r, s, i) {
502
- return _.isNode && d.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
502
+ return _.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
503
503
  },
504
504
  ...e
505
505
  });
506
506
  }
507
507
  function xs(t) {
508
- return d.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
508
+ return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
509
509
  }
510
510
  function Ds(t) {
511
511
  const e = {}, n = Object.keys(t);
@@ -521,20 +521,20 @@ function Vn(t) {
521
521
  let o = n[i++];
522
522
  if (o === "__proto__") return !0;
523
523
  const a = Number.isFinite(+o), u = i >= n.length;
524
- return o = !o && d.isArray(s) ? s.length : o, u ? (d.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !d.isObject(s[o])) && (s[o] = []), e(n, r, s[o], i) && d.isArray(s[o]) && (s[o] = Ds(s[o])), !a);
524
+ return o = !o && f.isArray(s) ? s.length : o, u ? (f.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !a) : ((!s[o] || !f.isObject(s[o])) && (s[o] = []), e(n, r, s[o], i) && f.isArray(s[o]) && (s[o] = Ds(s[o])), !a);
525
525
  }
526
- if (d.isFormData(t) && d.isFunction(t.entries)) {
526
+ if (f.isFormData(t) && f.isFunction(t.entries)) {
527
527
  const n = {};
528
- return d.forEachEntry(t, (r, s) => {
528
+ return f.forEachEntry(t, (r, s) => {
529
529
  e(xs(r), s, n, 0);
530
530
  }), n;
531
531
  }
532
532
  return null;
533
533
  }
534
534
  function qs(t, e, n) {
535
- if (d.isString(t))
535
+ if (f.isString(t))
536
536
  try {
537
- return (e || JSON.parse)(t), d.trim(t);
537
+ return (e || JSON.parse)(t), f.trim(t);
538
538
  } catch (r) {
539
539
  if (r.name !== "SyntaxError")
540
540
  throw r;
@@ -545,20 +545,20 @@ const xe = {
545
545
  transitional: $n,
546
546
  adapter: ["xhr", "http", "fetch"],
547
547
  transformRequest: [function(e, n) {
548
- const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = d.isObject(e);
549
- if (i && d.isHTMLForm(e) && (e = new FormData(e)), d.isFormData(e))
548
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = f.isObject(e);
549
+ if (i && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
550
550
  return s ? JSON.stringify(Vn(e)) : e;
551
- if (d.isArrayBuffer(e) || d.isBuffer(e) || d.isStream(e) || d.isFile(e) || d.isBlob(e) || d.isReadableStream(e))
551
+ if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
552
552
  return e;
553
- if (d.isArrayBufferView(e))
553
+ if (f.isArrayBufferView(e))
554
554
  return e.buffer;
555
- if (d.isURLSearchParams(e))
555
+ if (f.isURLSearchParams(e))
556
556
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
557
557
  let a;
558
558
  if (i) {
559
559
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
560
560
  return Fs(e, this.formSerializer).toString();
561
- if ((a = d.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
561
+ if ((a = f.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
562
562
  const u = this.env && this.env.FormData;
563
563
  return Ve(
564
564
  a ? { "files[]": e } : e,
@@ -571,9 +571,9 @@ const xe = {
571
571
  }],
572
572
  transformResponse: [function(e) {
573
573
  const n = this.transitional || xe.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
574
- if (d.isResponse(e) || d.isReadableStream(e))
574
+ if (f.isResponse(e) || f.isReadableStream(e))
575
575
  return e;
576
- if (e && d.isString(e) && (r && !this.responseType || s)) {
576
+ if (e && f.isString(e) && (r && !this.responseType || s)) {
577
577
  const o = !(n && n.silentJSONParsing) && s;
578
578
  try {
579
579
  return JSON.parse(e, this.parseReviver);
@@ -607,10 +607,10 @@ const xe = {
607
607
  }
608
608
  }
609
609
  };
610
- d.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
610
+ f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
611
611
  xe.headers[t] = {};
612
612
  });
613
- const Ns = d.toObjectSet([
613
+ const Ns = f.toObjectSet([
614
614
  "age",
615
615
  "authorization",
616
616
  "content-length",
@@ -640,7 +640,7 @@ function Oe(t) {
640
640
  return t && String(t).trim().toLowerCase();
641
641
  }
642
642
  function Ue(t) {
643
- return t === !1 || t == null ? t : d.isArray(t) ? t.map(Ue) : String(t);
643
+ return t === !1 || t == null ? t : f.isArray(t) ? t.map(Ue) : String(t);
644
644
  }
645
645
  function Is(t) {
646
646
  const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -651,12 +651,12 @@ function Is(t) {
651
651
  }
652
652
  const Us = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
653
653
  function Ge(t, e, n, r, s) {
654
- if (d.isFunction(r))
654
+ if (f.isFunction(r))
655
655
  return r.call(this, e, n);
656
- if (s && (e = n), !!d.isString(e)) {
657
- if (d.isString(r))
656
+ if (s && (e = n), !!f.isString(e)) {
657
+ if (f.isString(r))
658
658
  return e.indexOf(r) !== -1;
659
- if (d.isRegExp(r))
659
+ if (f.isRegExp(r))
660
660
  return r.test(e);
661
661
  }
662
662
  }
@@ -664,7 +664,7 @@ function Ms(t) {
664
664
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
665
665
  }
666
666
  function ks(t, e) {
667
- const n = d.toCamelCase(" " + e);
667
+ const n = f.toCamelCase(" " + e);
668
668
  ["get", "set", "has"].forEach((r) => {
669
669
  Object.defineProperty(t, r + n, {
670
670
  value: function(s, i, o) {
@@ -684,20 +684,20 @@ let L = class {
684
684
  const c = Oe(u);
685
685
  if (!c)
686
686
  throw new Error("header name must be a non-empty string");
687
- const f = d.findKey(s, c);
688
- (!f || s[f] === void 0 || l === !0 || l === void 0 && s[f] !== !1) && (s[f || u] = Ue(a));
687
+ const d = f.findKey(s, c);
688
+ (!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || u] = Ue(a));
689
689
  }
690
- const o = (a, u) => d.forEach(a, (l, c) => i(l, c, u));
691
- if (d.isPlainObject(e) || e instanceof this.constructor)
690
+ const o = (a, u) => f.forEach(a, (l, c) => i(l, c, u));
691
+ if (f.isPlainObject(e) || e instanceof this.constructor)
692
692
  o(e, n);
693
- else if (d.isString(e) && (e = e.trim()) && !Us(e))
693
+ else if (f.isString(e) && (e = e.trim()) && !Us(e))
694
694
  o(_s(e), n);
695
- else if (d.isObject(e) && d.isIterable(e)) {
695
+ else if (f.isObject(e) && f.isIterable(e)) {
696
696
  let a = {}, u, l;
697
697
  for (const c of e) {
698
- if (!d.isArray(c))
698
+ if (!f.isArray(c))
699
699
  throw TypeError("Object iterator must return a key-value pair");
700
- a[l = c[0]] = (u = a[l]) ? d.isArray(u) ? [...u, c[1]] : [u, c[1]] : c[1];
700
+ a[l = c[0]] = (u = a[l]) ? f.isArray(u) ? [...u, c[1]] : [u, c[1]] : c[1];
701
701
  }
702
702
  o(a, n);
703
703
  } else
@@ -706,16 +706,16 @@ let L = class {
706
706
  }
707
707
  get(e, n) {
708
708
  if (e = Oe(e), e) {
709
- const r = d.findKey(this, e);
709
+ const r = f.findKey(this, e);
710
710
  if (r) {
711
711
  const s = this[r];
712
712
  if (!n)
713
713
  return s;
714
714
  if (n === !0)
715
715
  return Is(s);
716
- if (d.isFunction(n))
716
+ if (f.isFunction(n))
717
717
  return n.call(this, s, r);
718
- if (d.isRegExp(n))
718
+ if (f.isRegExp(n))
719
719
  return n.exec(s);
720
720
  throw new TypeError("parser must be boolean|regexp|function");
721
721
  }
@@ -723,7 +723,7 @@ let L = class {
723
723
  }
724
724
  has(e, n) {
725
725
  if (e = Oe(e), e) {
726
- const r = d.findKey(this, e);
726
+ const r = f.findKey(this, e);
727
727
  return !!(r && this[r] !== void 0 && (!n || Ge(this, this[r], r, n)));
728
728
  }
729
729
  return !1;
@@ -733,11 +733,11 @@ let L = class {
733
733
  let s = !1;
734
734
  function i(o) {
735
735
  if (o = Oe(o), o) {
736
- const a = d.findKey(r, o);
736
+ const a = f.findKey(r, o);
737
737
  a && (!n || Ge(r, r[a], a, n)) && (delete r[a], s = !0);
738
738
  }
739
739
  }
740
- return d.isArray(e) ? e.forEach(i) : i(e), s;
740
+ return f.isArray(e) ? e.forEach(i) : i(e), s;
741
741
  }
742
742
  clear(e) {
743
743
  const n = Object.keys(this);
@@ -750,8 +750,8 @@ let L = class {
750
750
  }
751
751
  normalize(e) {
752
752
  const n = this, r = {};
753
- return d.forEach(this, (s, i) => {
754
- const o = d.findKey(r, i);
753
+ return f.forEach(this, (s, i) => {
754
+ const o = f.findKey(r, i);
755
755
  if (o) {
756
756
  n[o] = Ue(s), delete n[i];
757
757
  return;
@@ -765,8 +765,8 @@ let L = class {
765
765
  }
766
766
  toJSON(e) {
767
767
  const n = /* @__PURE__ */ Object.create(null);
768
- return d.forEach(this, (r, s) => {
769
- r != null && r !== !1 && (n[s] = e && d.isArray(r) ? r.join(", ") : r);
768
+ return f.forEach(this, (r, s) => {
769
+ r != null && r !== !1 && (n[s] = e && f.isArray(r) ? r.join(", ") : r);
770
770
  }), n;
771
771
  }
772
772
  [Symbol.iterator]() {
@@ -797,11 +797,11 @@ let L = class {
797
797
  const a = Oe(o);
798
798
  r[a] || (ks(s, o), r[a] = !0);
799
799
  }
800
- return d.isArray(e) ? e.forEach(i) : i(e), this;
800
+ return f.isArray(e) ? e.forEach(i) : i(e), this;
801
801
  }
802
802
  };
803
803
  L.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
804
- d.reduceDescriptors(L.prototype, ({ value: t }, e) => {
804
+ f.reduceDescriptors(L.prototype, ({ value: t }, e) => {
805
805
  let n = e[0].toUpperCase() + e.slice(1);
806
806
  return {
807
807
  get: () => t,
@@ -810,21 +810,21 @@ d.reduceDescriptors(L.prototype, ({ value: t }, e) => {
810
810
  }
811
811
  };
812
812
  });
813
- d.freezeMethods(L);
813
+ f.freezeMethods(L);
814
814
  function Xe(t, e) {
815
815
  const n = this || xe, r = e || n, s = L.from(r.headers);
816
816
  let i = r.data;
817
- return d.forEach(t, function(a) {
817
+ return f.forEach(t, function(a) {
818
818
  i = a.call(n, i, s.normalize(), e ? e.status : void 0);
819
819
  }), s.normalize(), i;
820
820
  }
821
821
  function Kn(t) {
822
822
  return !!(t && t.__CANCEL__);
823
823
  }
824
- function ve(t, e, n) {
824
+ function be(t, e, n) {
825
825
  E.call(this, t ?? "canceled", E.ERR_CANCELED, e, n), this.name = "CanceledError";
826
826
  }
827
- d.inherits(ve, E, {
827
+ f.inherits(be, E, {
828
828
  __CANCEL__: !0
829
829
  });
830
830
  function Wn(t, e, n) {
@@ -848,13 +848,13 @@ function Qs(t, e) {
848
848
  return e = e !== void 0 ? e : 1e3, function(u) {
849
849
  const l = Date.now(), c = r[i];
850
850
  o || (o = l), n[s] = u, r[s] = l;
851
- let f = i, g = 0;
852
- for (; f !== s; )
853
- g += n[f++], f = f % t;
851
+ let d = i, g = 0;
852
+ for (; d !== s; )
853
+ g += n[d++], d = d % t;
854
854
  if (s = (s + 1) % t, s === i && (i = (i + 1) % t), l - o < e)
855
855
  return;
856
- const b = c && l - c;
857
- return b ? Math.round(g * 1e3 / b) : void 0;
856
+ const v = c && l - c;
857
+ return v ? Math.round(g * 1e3 / v) : void 0;
858
858
  };
859
859
  }
860
860
  function js(t, e) {
@@ -863,10 +863,10 @@ function js(t, e) {
863
863
  n = c, s = null, i && (clearTimeout(i), i = null), t(...l);
864
864
  };
865
865
  return [(...l) => {
866
- const c = Date.now(), f = c - n;
867
- f >= r ? o(l, c) : (s = l, i || (i = setTimeout(() => {
866
+ const c = Date.now(), d = c - n;
867
+ d >= r ? o(l, c) : (s = l, i || (i = setTimeout(() => {
868
868
  i = null, o(s);
869
- }, r - f)));
869
+ }, r - d)));
870
870
  }, () => s && o(s)];
871
871
  }
872
872
  const Le = (t, e, n = 3) => {
@@ -875,7 +875,7 @@ const Le = (t, e, n = 3) => {
875
875
  return js((i) => {
876
876
  const o = i.loaded, a = i.lengthComputable ? i.total : void 0, u = o - r, l = s(u), c = o <= a;
877
877
  r = o;
878
- const f = {
878
+ const d = {
879
879
  loaded: o,
880
880
  total: a,
881
881
  progress: a ? o / a : void 0,
@@ -886,7 +886,7 @@ const Le = (t, e, n = 3) => {
886
886
  lengthComputable: a != null,
887
887
  [e ? "download" : "upload"]: !0
888
888
  };
889
- t(f);
889
+ t(d);
890
890
  }, n);
891
891
  }, Vt = (t, e) => {
892
892
  const n = t != null;
@@ -895,7 +895,7 @@ const Le = (t, e, n = 3) => {
895
895
  total: t,
896
896
  loaded: r
897
897
  }), e[1]];
898
- }, Kt = (t) => (...e) => d.asap(() => t(...e)), Bs = _.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, _.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
898
+ }, Kt = (t) => (...e) => f.asap(() => t(...e)), Bs = _.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, _.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
899
899
  new URL(_.origin),
900
900
  _.navigator && /(msie|trident)/i.test(_.navigator.userAgent)
901
901
  ) : () => !0, Hs = _.hasStandardBrowserEnv ? (
@@ -903,7 +903,7 @@ const Le = (t, e, n = 3) => {
903
903
  {
904
904
  write(t, e, n, r, s, i) {
905
905
  const o = [t + "=" + encodeURIComponent(e)];
906
- d.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), d.isString(r) && o.push("path=" + r), d.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
906
+ f.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), f.isString(r) && o.push("path=" + r), f.isString(s) && o.push("domain=" + s), i === !0 && o.push("secure"), document.cookie = o.join("; ");
907
907
  },
908
908
  read(t) {
909
909
  const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
@@ -939,29 +939,29 @@ const Wt = (t) => t instanceof L ? { ...t } : t;
939
939
  function ue(t, e) {
940
940
  e = e || {};
941
941
  const n = {};
942
- function r(l, c, f, g) {
943
- return d.isPlainObject(l) && d.isPlainObject(c) ? d.merge.call({ caseless: g }, l, c) : d.isPlainObject(c) ? d.merge({}, c) : d.isArray(c) ? c.slice() : c;
942
+ function r(l, c, d, g) {
943
+ return f.isPlainObject(l) && f.isPlainObject(c) ? f.merge.call({ caseless: g }, l, c) : f.isPlainObject(c) ? f.merge({}, c) : f.isArray(c) ? c.slice() : c;
944
944
  }
945
- function s(l, c, f, g) {
946
- if (d.isUndefined(c)) {
947
- if (!d.isUndefined(l))
948
- return r(void 0, l, f, g);
949
- } else return r(l, c, f, g);
945
+ function s(l, c, d, g) {
946
+ if (f.isUndefined(c)) {
947
+ if (!f.isUndefined(l))
948
+ return r(void 0, l, d, g);
949
+ } else return r(l, c, d, g);
950
950
  }
951
951
  function i(l, c) {
952
- if (!d.isUndefined(c))
952
+ if (!f.isUndefined(c))
953
953
  return r(void 0, c);
954
954
  }
955
955
  function o(l, c) {
956
- if (d.isUndefined(c)) {
957
- if (!d.isUndefined(l))
956
+ if (f.isUndefined(c)) {
957
+ if (!f.isUndefined(l))
958
958
  return r(void 0, l);
959
959
  } else return r(void 0, c);
960
960
  }
961
- function a(l, c, f) {
962
- if (f in e)
961
+ function a(l, c, d) {
962
+ if (d in e)
963
963
  return r(l, c);
964
- if (f in t)
964
+ if (d in t)
965
965
  return r(void 0, l);
966
966
  }
967
967
  const u = {
@@ -993,11 +993,11 @@ function ue(t, e) {
993
993
  socketPath: o,
994
994
  responseEncoding: o,
995
995
  validateStatus: a,
996
- headers: (l, c, f) => s(Wt(l), Wt(c), f, !0)
996
+ headers: (l, c, d) => s(Wt(l), Wt(c), d, !0)
997
997
  };
998
- return d.forEach(Object.keys({ ...t, ...e }), function(c) {
999
- const f = u[c] || s, g = f(t[c], e[c], c);
1000
- d.isUndefined(g) && f !== a || (n[c] = g);
998
+ return f.forEach(Object.keys({ ...t, ...e }), function(c) {
999
+ const d = u[c] || s, g = d(t[c], e[c], c);
1000
+ f.isUndefined(g) && d !== a || (n[c] = g);
1001
1001
  }), n;
1002
1002
  }
1003
1003
  const Jn = (t) => {
@@ -1006,17 +1006,17 @@ const Jn = (t) => {
1006
1006
  if (e.headers = o = L.from(o), e.url = Hn(zn(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), a && o.set(
1007
1007
  "Authorization",
1008
1008
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1009
- ), d.isFormData(n)) {
1009
+ ), f.isFormData(n)) {
1010
1010
  if (_.hasStandardBrowserEnv || _.hasStandardBrowserWebWorkerEnv)
1011
1011
  o.setContentType(void 0);
1012
- else if (d.isFunction(n.getHeaders)) {
1012
+ else if (f.isFunction(n.getHeaders)) {
1013
1013
  const u = n.getHeaders(), l = ["content-type", "content-length"];
1014
- Object.entries(u).forEach(([c, f]) => {
1015
- l.includes(c.toLowerCase()) && o.set(c, f);
1014
+ Object.entries(u).forEach(([c, d]) => {
1015
+ l.includes(c.toLowerCase()) && o.set(c, d);
1016
1016
  });
1017
1017
  }
1018
1018
  }
1019
- if (_.hasStandardBrowserEnv && (r && d.isFunction(r) && (r = r(e)), r || r !== !1 && Bs(e.url))) {
1019
+ if (_.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(e)), r || r !== !1 && Bs(e.url))) {
1020
1020
  const u = s && i && Hs.read(i);
1021
1021
  u && o.set(s, u);
1022
1022
  }
@@ -1026,22 +1026,22 @@ const Jn = (t) => {
1026
1026
  const s = Jn(t);
1027
1027
  let i = s.data;
1028
1028
  const o = L.from(s.headers).normalize();
1029
- let { responseType: a, onUploadProgress: u, onDownloadProgress: l } = s, c, f, g, b, h;
1029
+ let { responseType: a, onUploadProgress: u, onDownloadProgress: l } = s, c, d, g, v, h;
1030
1030
  function p() {
1031
- b && b(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(c), s.signal && s.signal.removeEventListener("abort", c);
1031
+ v && v(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(c), s.signal && s.signal.removeEventListener("abort", c);
1032
1032
  }
1033
1033
  let y = new XMLHttpRequest();
1034
1034
  y.open(s.method.toUpperCase(), s.url, !0), y.timeout = s.timeout;
1035
1035
  function m() {
1036
1036
  if (!y)
1037
1037
  return;
1038
- const v = L.from(
1038
+ const b = L.from(
1039
1039
  "getAllResponseHeaders" in y && y.getAllResponseHeaders()
1040
1040
  ), R = {
1041
1041
  data: !a || a === "text" || a === "json" ? y.responseText : y.response,
1042
1042
  status: y.status,
1043
1043
  statusText: y.statusText,
1044
- headers: v,
1044
+ headers: b,
1045
1045
  config: t,
1046
1046
  request: y
1047
1047
  };
@@ -1067,10 +1067,10 @@ const Jn = (t) => {
1067
1067
  t,
1068
1068
  y
1069
1069
  )), y = null;
1070
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in y && d.forEach(o.toJSON(), function(w, R) {
1070
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in y && f.forEach(o.toJSON(), function(w, R) {
1071
1071
  y.setRequestHeader(R, w);
1072
- }), d.isUndefined(s.withCredentials) || (y.withCredentials = !!s.withCredentials), a && a !== "json" && (y.responseType = s.responseType), l && ([g, h] = Le(l, !0), y.addEventListener("progress", g)), u && y.upload && ([f, b] = Le(u), y.upload.addEventListener("progress", f), y.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (c = (v) => {
1073
- y && (r(!v || v.type ? new ve(null, t, y) : v), y.abort(), y = null);
1072
+ }), f.isUndefined(s.withCredentials) || (y.withCredentials = !!s.withCredentials), a && a !== "json" && (y.responseType = s.responseType), l && ([g, h] = Le(l, !0), y.addEventListener("progress", g)), u && y.upload && ([d, v] = Le(u), y.upload.addEventListener("progress", d), y.upload.addEventListener("loadend", v)), (s.cancelToken || s.signal) && (c = (b) => {
1073
+ y && (r(!b || b.type ? new be(null, t, y) : b), y.abort(), y = null);
1074
1074
  }, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
1075
1075
  const O = Ls(s.url);
1076
1076
  if (O && _.protocols.indexOf(O) === -1) {
@@ -1087,7 +1087,7 @@ const Jn = (t) => {
1087
1087
  if (!s) {
1088
1088
  s = !0, a();
1089
1089
  const c = l instanceof Error ? l : this.reason;
1090
- r.abort(c instanceof E ? c : new ve(c instanceof Error ? c.message : c));
1090
+ r.abort(c instanceof E ? c : new be(c instanceof Error ? c.message : c));
1091
1091
  }
1092
1092
  };
1093
1093
  let o = e && setTimeout(() => {
@@ -1100,7 +1100,7 @@ const Jn = (t) => {
1100
1100
  };
1101
1101
  t.forEach((l) => l.addEventListener("abort", i));
1102
1102
  const { signal: u } = r;
1103
- return u.unsubscribe = () => d.asap(a), u;
1103
+ return u.unsubscribe = () => f.asap(a), u;
1104
1104
  }
1105
1105
  }, Js = function* (t, e) {
1106
1106
  let n = t.byteLength;
@@ -1143,9 +1143,9 @@ const Jn = (t) => {
1143
1143
  a(), u.close();
1144
1144
  return;
1145
1145
  }
1146
- let f = c.byteLength;
1146
+ let d = c.byteLength;
1147
1147
  if (n) {
1148
- let g = i += f;
1148
+ let g = i += d;
1149
1149
  n(g);
1150
1150
  }
1151
1151
  u.enqueue(new Uint8Array(c));
@@ -1159,20 +1159,20 @@ const Jn = (t) => {
1159
1159
  }, {
1160
1160
  highWaterMark: 2
1161
1161
  });
1162
- }, Jt = 64 * 1024, { isFunction: qe } = d, Ys = (({ Request: t, Response: e }) => ({
1162
+ }, Jt = 64 * 1024, { isFunction: qe } = f, Ys = (({ Request: t, Response: e }) => ({
1163
1163
  Request: t,
1164
1164
  Response: e
1165
- }))(d.global), {
1165
+ }))(f.global), {
1166
1166
  ReadableStream: Gt,
1167
1167
  TextEncoder: Xt
1168
- } = d.global, Yt = (t, ...e) => {
1168
+ } = f.global, Yt = (t, ...e) => {
1169
1169
  try {
1170
1170
  return !!t(...e);
1171
1171
  } catch {
1172
1172
  return !1;
1173
1173
  }
1174
1174
  }, Zs = (t) => {
1175
- t = d.merge.call({
1175
+ t = f.merge.call({
1176
1176
  skipUndefined: !0
1177
1177
  }, Ys, t);
1178
1178
  const { fetch: e, Request: n, Response: r } = t, s = e ? qe(e) : typeof fetch == "function", i = qe(n), o = qe(r);
@@ -1188,11 +1188,11 @@ const Jn = (t) => {
1188
1188
  }
1189
1189
  }).headers.has("Content-Type");
1190
1190
  return h && !p;
1191
- }), c = o && a && Yt(() => d.isReadableStream(new r("").body)), f = {
1191
+ }), c = o && a && Yt(() => f.isReadableStream(new r("").body)), d = {
1192
1192
  stream: c && ((h) => h.body)
1193
1193
  };
1194
1194
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
1195
- !f[h] && (f[h] = (p, y) => {
1195
+ !d[h] && (d[h] = (p, y) => {
1196
1196
  let m = p && p[h];
1197
1197
  if (m)
1198
1198
  return m.call(p);
@@ -1202,19 +1202,19 @@ const Jn = (t) => {
1202
1202
  const g = async (h) => {
1203
1203
  if (h == null)
1204
1204
  return 0;
1205
- if (d.isBlob(h))
1205
+ if (f.isBlob(h))
1206
1206
  return h.size;
1207
- if (d.isSpecCompliantForm(h))
1207
+ if (f.isSpecCompliantForm(h))
1208
1208
  return (await new n(_.origin, {
1209
1209
  method: "POST",
1210
1210
  body: h
1211
1211
  }).arrayBuffer()).byteLength;
1212
- if (d.isArrayBufferView(h) || d.isArrayBuffer(h))
1212
+ if (f.isArrayBufferView(h) || f.isArrayBuffer(h))
1213
1213
  return h.byteLength;
1214
- if (d.isURLSearchParams(h) && (h = h + ""), d.isString(h))
1214
+ if (f.isURLSearchParams(h) && (h = h + ""), f.isString(h))
1215
1215
  return (await u(h)).byteLength;
1216
- }, b = async (h, p) => {
1217
- const y = d.toFiniteNumber(h.getContentLength());
1216
+ }, v = async (h, p) => {
1217
+ const y = f.toFiniteNumber(h.getContentLength());
1218
1218
  return y ?? g(p);
1219
1219
  };
1220
1220
  return async (h) => {
@@ -1223,7 +1223,7 @@ const Jn = (t) => {
1223
1223
  method: y,
1224
1224
  data: m,
1225
1225
  signal: O,
1226
- cancelToken: v,
1226
+ cancelToken: b,
1227
1227
  timeout: w,
1228
1228
  onDownloadProgress: R,
1229
1229
  onUploadProgress: C,
@@ -1233,19 +1233,19 @@ const Jn = (t) => {
1233
1233
  fetchOptions: j
1234
1234
  } = Jn(h), W = e || fetch;
1235
1235
  T = T ? (T + "").toLowerCase() : "text";
1236
- let U = zs([O, v && v.toAbortSignal()], w), N = null;
1236
+ let U = zs([O, b && b.toAbortSignal()], w), N = null;
1237
1237
  const G = U && U.unsubscribe && (() => {
1238
1238
  U.unsubscribe();
1239
1239
  });
1240
1240
  let Ut;
1241
1241
  try {
1242
- if (C && l && y !== "get" && y !== "head" && (Ut = await b(P, m)) !== 0) {
1242
+ if (C && l && y !== "get" && y !== "head" && (Ut = await v(P, m)) !== 0) {
1243
1243
  let Z = new n(p, {
1244
1244
  method: "POST",
1245
1245
  body: m,
1246
1246
  duplex: "half"
1247
1247
  }), fe;
1248
- if (d.isFormData(m) && (fe = Z.headers.get("content-type")) && P.setContentType(fe), Z.body) {
1248
+ if (f.isFormData(m) && (fe = Z.headers.get("content-type")) && P.setContentType(fe), Z.body) {
1249
1249
  const [ze, De] = Vt(
1250
1250
  Ut,
1251
1251
  Le(Kt(C))
@@ -1253,7 +1253,7 @@ const Jn = (t) => {
1253
1253
  m = zt(Z.body, Jt, ze, De);
1254
1254
  }
1255
1255
  }
1256
- d.isString(I) || (I = I ? "include" : "omit");
1256
+ f.isString(I) || (I = I ? "include" : "omit");
1257
1257
  const z = i && "credentials" in n.prototype, Mt = {
1258
1258
  ...j,
1259
1259
  signal: U,
@@ -1271,7 +1271,7 @@ const Jn = (t) => {
1271
1271
  ["status", "statusText", "headers"].forEach((Lt) => {
1272
1272
  Z[Lt] = Y[Lt];
1273
1273
  });
1274
- const fe = d.toFiniteNumber(Y.headers.get("content-length")), [ze, De] = R && Vt(
1274
+ const fe = f.toFiniteNumber(Y.headers.get("content-length")), [ze, De] = R && Vt(
1275
1275
  fe,
1276
1276
  Le(Kt(R), !0)
1277
1277
  ) || [];
@@ -1283,7 +1283,7 @@ const Jn = (t) => {
1283
1283
  );
1284
1284
  }
1285
1285
  T = T || "text";
1286
- let wr = await f[d.findKey(f, T) || "text"](Y, h);
1286
+ let wr = await d[f.findKey(d, T) || "text"](Y, h);
1287
1287
  return !kt && G && G(), await new Promise((Z, fe) => {
1288
1288
  Wn(Z, fe, {
1289
1289
  data: wr,
@@ -1323,7 +1323,7 @@ const at = {
1323
1323
  get: Gn
1324
1324
  }
1325
1325
  };
1326
- d.forEach(at, (t, e) => {
1326
+ f.forEach(at, (t, e) => {
1327
1327
  if (t) {
1328
1328
  try {
1329
1329
  Object.defineProperty(t, "name", { value: e });
@@ -1332,9 +1332,9 @@ d.forEach(at, (t, e) => {
1332
1332
  Object.defineProperty(t, "adapterName", { value: e });
1333
1333
  }
1334
1334
  });
1335
- const Zt = (t) => `- ${t}`, ti = (t) => d.isFunction(t) || t === null || t === !1, Xn = {
1335
+ const Zt = (t) => `- ${t}`, ti = (t) => f.isFunction(t) || t === null || t === !1, Xn = {
1336
1336
  getAdapter: (t, e) => {
1337
- t = d.isArray(t) ? t : [t];
1337
+ t = f.isArray(t) ? t : [t];
1338
1338
  const { length: n } = t;
1339
1339
  let r, s;
1340
1340
  const i = {};
@@ -1343,7 +1343,7 @@ const Zt = (t) => `- ${t}`, ti = (t) => d.isFunction(t) || t === null || t === !
1343
1343
  let a;
1344
1344
  if (s = r, !ti(r) && (s = at[(a = String(r)).toLowerCase()], s === void 0))
1345
1345
  throw new E(`Unknown adapter '${a}'`);
1346
- if (s && (d.isFunction(s) || (s = s.get(e))))
1346
+ if (s && (f.isFunction(s) || (s = s.get(e))))
1347
1347
  break;
1348
1348
  i[a || "#" + o] = s;
1349
1349
  }
@@ -1365,7 +1365,7 @@ const Zt = (t) => `- ${t}`, ti = (t) => d.isFunction(t) || t === null || t === !
1365
1365
  };
1366
1366
  function Ye(t) {
1367
1367
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1368
- throw new ve(null, t);
1368
+ throw new be(null, t);
1369
1369
  }
1370
1370
  function en(t) {
1371
1371
  return Ye(t), t.headers = L.from(t.headers), t.data = Xe.call(
@@ -1473,7 +1473,7 @@ let ae = class {
1473
1473
  silentJSONParsing: J.transitional(J.boolean),
1474
1474
  forcedJSONParsing: J.transitional(J.boolean),
1475
1475
  clarifyTimeoutError: J.transitional(J.boolean)
1476
- }, !1), s != null && (d.isFunction(s) ? n.paramsSerializer = {
1476
+ }, !1), s != null && (f.isFunction(s) ? n.paramsSerializer = {
1477
1477
  serialize: s
1478
1478
  } : Me.assertOptions(s, {
1479
1479
  encode: J.function,
@@ -1482,11 +1482,11 @@ let ae = class {
1482
1482
  baseUrl: J.spelling("baseURL"),
1483
1483
  withXsrfToken: J.spelling("withXSRFToken")
1484
1484
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1485
- let o = i && d.merge(
1485
+ let o = i && f.merge(
1486
1486
  i.common,
1487
1487
  i[n.method]
1488
1488
  );
1489
- i && d.forEach(
1489
+ i && f.forEach(
1490
1490
  ["delete", "get", "head", "post", "put", "patch", "common"],
1491
1491
  (h) => {
1492
1492
  delete i[h];
@@ -1501,31 +1501,31 @@ let ae = class {
1501
1501
  this.interceptors.response.forEach(function(p) {
1502
1502
  l.push(p.fulfilled, p.rejected);
1503
1503
  });
1504
- let c, f = 0, g;
1504
+ let c, d = 0, g;
1505
1505
  if (!u) {
1506
1506
  const h = [en.bind(this), void 0];
1507
- for (h.unshift(...a), h.push(...l), g = h.length, c = Promise.resolve(n); f < g; )
1508
- c = c.then(h[f++], h[f++]);
1507
+ for (h.unshift(...a), h.push(...l), g = h.length, c = Promise.resolve(n); d < g; )
1508
+ c = c.then(h[d++], h[d++]);
1509
1509
  return c;
1510
1510
  }
1511
1511
  g = a.length;
1512
- let b = n;
1513
- for (; f < g; ) {
1514
- const h = a[f++], p = a[f++];
1512
+ let v = n;
1513
+ for (; d < g; ) {
1514
+ const h = a[d++], p = a[d++];
1515
1515
  try {
1516
- b = h(b);
1516
+ v = h(v);
1517
1517
  } catch (y) {
1518
1518
  p.call(this, y);
1519
1519
  break;
1520
1520
  }
1521
1521
  }
1522
1522
  try {
1523
- c = en.call(this, b);
1523
+ c = en.call(this, v);
1524
1524
  } catch (h) {
1525
1525
  return Promise.reject(h);
1526
1526
  }
1527
- for (f = 0, g = l.length; f < g; )
1528
- c = c.then(l[f++], l[f++]);
1527
+ for (d = 0, g = l.length; d < g; )
1528
+ c = c.then(l[d++], l[d++]);
1529
1529
  return c;
1530
1530
  }
1531
1531
  getUri(e) {
@@ -1534,7 +1534,7 @@ let ae = class {
1534
1534
  return Hn(n, e.params, e.paramsSerializer);
1535
1535
  }
1536
1536
  };
1537
- d.forEach(["delete", "get", "head", "options"], function(e) {
1537
+ f.forEach(["delete", "get", "head", "options"], function(e) {
1538
1538
  ae.prototype[e] = function(n, r) {
1539
1539
  return this.request(ue(r || {}, {
1540
1540
  method: e,
@@ -1543,7 +1543,7 @@ d.forEach(["delete", "get", "head", "options"], function(e) {
1543
1543
  }));
1544
1544
  };
1545
1545
  });
1546
- d.forEach(["post", "put", "patch"], function(e) {
1546
+ f.forEach(["post", "put", "patch"], function(e) {
1547
1547
  function n(r) {
1548
1548
  return function(i, o, a) {
1549
1549
  return this.request(ue(a || {}, {
@@ -1582,7 +1582,7 @@ let ri = class Zn {
1582
1582
  r.unsubscribe(i);
1583
1583
  }, o;
1584
1584
  }, e(function(i, o, a) {
1585
- r.reason || (r.reason = new ve(i, o, a), n(r.reason));
1585
+ r.reason || (r.reason = new be(i, o, a), n(r.reason));
1586
1586
  });
1587
1587
  }
1588
1588
  /**
@@ -1637,7 +1637,7 @@ function si(t) {
1637
1637
  };
1638
1638
  }
1639
1639
  function ii(t) {
1640
- return d.isObject(t) && t.isAxiosError === !0;
1640
+ return f.isObject(t) && t.isAxiosError === !0;
1641
1641
  }
1642
1642
  const ut = {
1643
1643
  Continue: 100,
@@ -1709,13 +1709,13 @@ Object.entries(ut).forEach(([t, e]) => {
1709
1709
  });
1710
1710
  function er(t) {
1711
1711
  const e = new ae(t), n = Dn(ae.prototype.request, e);
1712
- return d.extend(n, ae.prototype, e, { allOwnKeys: !0 }), d.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
1712
+ return f.extend(n, ae.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
1713
1713
  return er(ue(t, s));
1714
1714
  }, n;
1715
1715
  }
1716
1716
  const F = er(xe);
1717
1717
  F.Axios = ae;
1718
- F.CanceledError = ve;
1718
+ F.CanceledError = be;
1719
1719
  F.CancelToken = ri;
1720
1720
  F.isCancel = Kn;
1721
1721
  F.VERSION = Yn;
@@ -1729,7 +1729,7 @@ F.spread = si;
1729
1729
  F.isAxiosError = ii;
1730
1730
  F.mergeConfig = ue;
1731
1731
  F.AxiosHeaders = L;
1732
- F.formToJSON = (t) => Vn(d.isHTMLForm(t) ? new FormData(t) : t);
1732
+ F.formToJSON = (t) => Vn(f.isHTMLForm(t) ? new FormData(t) : t);
1733
1733
  F.getAdapter = Xn.getAdapter;
1734
1734
  F.HttpStatusCode = ut;
1735
1735
  F.default = F;
@@ -1855,11 +1855,11 @@ function ga(t, e, n, r) {
1855
1855
  const o = Math.floor((s.getTime() - i.getTime()) / 1e3);
1856
1856
  return r ? o : ai(o, n);
1857
1857
  }
1858
- function ba(t) {
1858
+ function va(t) {
1859
1859
  const n = /* @__PURE__ */ new Date(), r = new Date(n.getTime() - t * 864e5), s = new Date(r.getTime() - 1), i = new Date(s.getTime() - t * 864e5);
1860
1860
  return { dateFrom: r, dateTo: n, dateFromPrev: i, dateToPrev: s };
1861
1861
  }
1862
- function va(t, e) {
1862
+ function ba(t, e) {
1863
1863
  const n = [];
1864
1864
  for (let r = 0; r < t; r++) {
1865
1865
  const s = /* @__PURE__ */ new Date(), i = s.getDay() === 0 ? -6 : 1, o = new Date(s.setDate(e ? 1 : s.getDate() - s.getDay() + i - r * 7));
@@ -2033,17 +2033,17 @@ function ft(t, e) {
2033
2033
  const s = (n ? t : Object.keys(t)).length, i = n ? e : Object.keys(e), o = i.length, a = n ? new Array(o) : {};
2034
2034
  let u = 0;
2035
2035
  for (let l = 0; l < o; l++) {
2036
- const c = n ? l : i[l], f = t[c], g = e[c];
2037
- if (f === g) {
2038
- a[c] = f, (n ? l < s : hi.call(t, c)) && u++;
2036
+ const c = n ? l : i[l], d = t[c], g = e[c];
2037
+ if (d === g) {
2038
+ a[c] = d, (n ? l < s : hi.call(t, c)) && u++;
2039
2039
  continue;
2040
2040
  }
2041
- if (f === null || g === null || typeof f != "object" || typeof g != "object") {
2041
+ if (d === null || g === null || typeof d != "object" || typeof g != "object") {
2042
2042
  a[c] = g;
2043
2043
  continue;
2044
2044
  }
2045
- const b = ft(f, g);
2046
- a[c] = b, b === f && u++;
2045
+ const v = ft(d, g);
2046
+ a[c] = v, v === d && u++;
2047
2047
  }
2048
2048
  return s === o && u === s ? t : a;
2049
2049
  }
@@ -2168,13 +2168,13 @@ function yt() {
2168
2168
  }), e(s);
2169
2169
  }, n;
2170
2170
  }
2171
- var bi = fi;
2172
- function vi() {
2171
+ var vi = fi;
2172
+ function bi() {
2173
2173
  let t = [], e = 0, n = (a) => {
2174
2174
  a();
2175
2175
  }, r = (a) => {
2176
2176
  a();
2177
- }, s = bi;
2177
+ }, s = vi;
2178
2178
  const i = (a) => {
2179
2179
  e ? t.push(a) : s(() => {
2180
2180
  n(a);
@@ -2228,7 +2228,7 @@ function vi() {
2228
2228
  }
2229
2229
  };
2230
2230
  }
2231
- var q = vi(), wi = class extends we {
2231
+ var q = bi(), wi = class extends we {
2232
2232
  #e = !0;
2233
2233
  #t;
2234
2234
  #n;
@@ -2282,11 +2282,11 @@ function sr(t) {
2282
2282
  e = !0;
2283
2283
  }, u = () => {
2284
2284
  e = !1;
2285
- }, l = () => _t.isFocused() && (t.networkMode === "always" || me.isOnline()) && t.canRun(), c = () => rr(t.networkMode) && t.canRun(), f = (p) => {
2285
+ }, l = () => _t.isFocused() && (t.networkMode === "always" || me.isOnline()) && t.canRun(), c = () => rr(t.networkMode) && t.canRun(), d = (p) => {
2286
2286
  i() || (r?.(), s.resolve(p));
2287
2287
  }, g = (p) => {
2288
2288
  i() || (r?.(), s.reject(p));
2289
- }, b = () => new Promise((p) => {
2289
+ }, v = () => new Promise((p) => {
2290
2290
  r = (y) => {
2291
2291
  (i() || l()) && p(y);
2292
2292
  }, t.onPause?.();
@@ -2302,15 +2302,15 @@ function sr(t) {
2302
2302
  } catch (m) {
2303
2303
  p = Promise.reject(m);
2304
2304
  }
2305
- Promise.resolve(p).then(f).catch((m) => {
2305
+ Promise.resolve(p).then(d).catch((m) => {
2306
2306
  if (i())
2307
2307
  return;
2308
- const O = t.retry ?? (ce ? 0 : 3), v = t.retryDelay ?? Oi, w = typeof v == "function" ? v(n, m) : v, R = O === !0 || typeof O == "number" && n < O || typeof O == "function" && O(n, m);
2308
+ const O = t.retry ?? (ce ? 0 : 3), b = t.retryDelay ?? Oi, w = typeof b == "function" ? b(n, m) : b, R = O === !0 || typeof O == "number" && n < O || typeof O == "function" && O(n, m);
2309
2309
  if (e || !R) {
2310
2310
  g(m);
2311
2311
  return;
2312
2312
  }
2313
- n++, t.onFail?.(n, m), pi(w).then(() => l() ? void 0 : b()).then(() => {
2313
+ n++, t.onFail?.(n, m), pi(w).then(() => l() ? void 0 : v()).then(() => {
2314
2314
  e ? g(m) : h();
2315
2315
  });
2316
2316
  });
@@ -2323,7 +2323,7 @@ function sr(t) {
2323
2323
  cancelRetry: a,
2324
2324
  continueRetry: u,
2325
2325
  canStart: c,
2326
- start: () => (c() ? h() : b().then(h), s)
2326
+ start: () => (c() ? h() : v().then(h), s)
2327
2327
  };
2328
2328
  }
2329
2329
  var ir = class {
@@ -2666,7 +2666,7 @@ var Si = class extends we {
2666
2666
  this.refetch = this.refetch.bind(this);
2667
2667
  }
2668
2668
  onSubscribe() {
2669
- this.listeners.size === 1 && (this.#t.addObserver(this), cn(this.#t, this.options) ? this.#f() : this.updateResult(), this.#v());
2669
+ this.listeners.size === 1 && (this.#t.addObserver(this), cn(this.#t, this.options) ? this.#f() : this.updateResult(), this.#b());
2670
2670
  }
2671
2671
  onUnsubscribe() {
2672
2672
  this.hasListeners() || this.destroy();
@@ -2707,7 +2707,7 @@ var Si = class extends we {
2707
2707
  e
2708
2708
  ) && this.#f(), this.updateResult(), r && (this.#t !== n || H(this.options.enabled, this.#t) !== H(e.enabled, this.#t) || te(this.options.staleTime, this.#t) !== te(e.staleTime, this.#t)) && this.#m();
2709
2709
  const s = this.#g();
2710
- r && (this.#t !== n || H(this.options.enabled, this.#t) !== H(e.enabled, this.#t) || s !== this.#u) && this.#b(s);
2710
+ r && (this.#t !== n || H(this.options.enabled, this.#t) !== H(e.enabled, this.#t) || s !== this.#u) && this.#v(s);
2711
2711
  }
2712
2712
  getOptimisticResult(t) {
2713
2713
  const e = this.#e.getQueryCache().build(this.#e, t), n = this.createResult(e, t);
@@ -2770,13 +2770,13 @@ var Si = class extends we {
2770
2770
  #g() {
2771
2771
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
2772
2772
  }
2773
- #b(t) {
2773
+ #v(t) {
2774
2774
  this.#O(), this.#u = t, !(ce || H(this.options.enabled, this.#t) === !1 || !lt(this.#u) || this.#u === 0) && (this.#l = se.setInterval(() => {
2775
2775
  (this.options.refetchIntervalInBackground || _t.isFocused()) && this.#f();
2776
2776
  }, this.#u));
2777
2777
  }
2778
- #v() {
2779
- this.#m(), this.#b(this.#g());
2778
+ #b() {
2779
+ this.#m(), this.#v(this.#g());
2780
2780
  }
2781
2781
  #w() {
2782
2782
  this.#c && (se.clearTimeout(this.#c), this.#c = void 0);
@@ -2786,7 +2786,7 @@ var Si = class extends we {
2786
2786
  }
2787
2787
  createResult(t, e) {
2788
2788
  const n = this.#t, r = this.options, s = this.#s, i = this.#r, o = this.#o, u = t !== n ? t.state : this.#n, { state: l } = t;
2789
- let c = { ...l }, f = !1, g;
2789
+ let c = { ...l }, d = !1, g;
2790
2790
  if (e._optimisticResults) {
2791
2791
  const P = this.hasListeners(), I = !P && cn(t, e), j = P && ln(t, n, e, r);
2792
2792
  (I || j) && (c = {
@@ -2794,7 +2794,7 @@ var Si = class extends we {
2794
2794
  ...or(l.data, t.options)
2795
2795
  }), e._optimisticResults === "isRestoring" && (c.fetchStatus = "idle");
2796
2796
  }
2797
- let { error: b, errorUpdatedAt: h, status: p } = c;
2797
+ let { error: v, errorUpdatedAt: h, status: p } = c;
2798
2798
  g = c.data;
2799
2799
  let y = !1;
2800
2800
  if (e.placeholderData !== void 0 && g === void 0 && p === "pending") {
@@ -2806,7 +2806,7 @@ var Si = class extends we {
2806
2806
  s?.data,
2807
2807
  P,
2808
2808
  e
2809
- ), f = !0);
2809
+ ), d = !0);
2810
2810
  }
2811
2811
  if (e.select && g !== void 0 && !y)
2812
2812
  if (s && g === i?.data && e.select === this.#y)
@@ -2817,18 +2817,18 @@ var Si = class extends we {
2817
2817
  } catch (P) {
2818
2818
  this.#i = P;
2819
2819
  }
2820
- this.#i && (b = this.#i, g = this.#d, h = Date.now(), p = "error");
2821
- const m = c.fetchStatus === "fetching", O = p === "pending", v = p === "error", w = O && m, R = g !== void 0, T = {
2820
+ this.#i && (v = this.#i, g = this.#d, h = Date.now(), p = "error");
2821
+ const m = c.fetchStatus === "fetching", O = p === "pending", b = p === "error", w = O && m, R = g !== void 0, T = {
2822
2822
  status: p,
2823
2823
  fetchStatus: c.fetchStatus,
2824
2824
  isPending: O,
2825
2825
  isSuccess: p === "success",
2826
- isError: v,
2826
+ isError: b,
2827
2827
  isInitialLoading: w,
2828
2828
  isLoading: w,
2829
2829
  data: g,
2830
2830
  dataUpdatedAt: c.dataUpdatedAt,
2831
- error: b,
2831
+ error: v,
2832
2832
  errorUpdatedAt: h,
2833
2833
  failureCount: c.fetchFailureCount,
2834
2834
  failureReason: c.fetchFailureReason,
@@ -2837,10 +2837,10 @@ var Si = class extends we {
2837
2837
  isFetchedAfterMount: c.dataUpdateCount > u.dataUpdateCount || c.errorUpdateCount > u.errorUpdateCount,
2838
2838
  isFetching: m,
2839
2839
  isRefetching: m && !O,
2840
- isLoadingError: v && !R,
2840
+ isLoadingError: b && !R,
2841
2841
  isPaused: c.fetchStatus === "paused",
2842
- isPlaceholderData: f,
2843
- isRefetchError: v && R,
2842
+ isPlaceholderData: d,
2843
+ isRefetchError: b && R,
2844
2844
  isStale: It(t, e),
2845
2845
  refetch: this.refetch,
2846
2846
  promise: this.#a,
@@ -2896,7 +2896,7 @@ var Si = class extends we {
2896
2896
  this.#t = t, this.#n = t.state, this.hasListeners() && (e?.removeObserver(this), t.addObserver(this));
2897
2897
  }
2898
2898
  onQueryUpdate() {
2899
- this.updateResult(), this.hasListeners() && this.#v();
2899
+ this.updateResult(), this.hasListeners() && this.#b();
2900
2900
  }
2901
2901
  #S(t) {
2902
2902
  q.batch(() => {
@@ -2938,14 +2938,14 @@ function fn(t) {
2938
2938
  let a = { pages: [], pageParams: [] }, u = 0;
2939
2939
  const l = async () => {
2940
2940
  let c = !1;
2941
- const f = (h) => {
2941
+ const d = (h) => {
2942
2942
  Object.defineProperty(h, "signal", {
2943
2943
  enumerable: !0,
2944
2944
  get: () => (e.signal.aborted ? c = !0 : e.signal.addEventListener("abort", () => {
2945
2945
  c = !0;
2946
2946
  }), e.signal)
2947
2947
  });
2948
- }, g = nr(e.options, e.fetchOptions), b = async (h, p, y) => {
2948
+ }, g = nr(e.options, e.fetchOptions), v = async (h, p, y) => {
2949
2949
  if (c)
2950
2950
  return Promise.reject();
2951
2951
  if (p == null && h.pages.length)
@@ -2958,10 +2958,10 @@ function fn(t) {
2958
2958
  direction: y ? "backward" : "forward",
2959
2959
  meta: e.options.meta
2960
2960
  };
2961
- return f(C), C;
2962
- })(), v = await g(O), { maxPages: w } = e.options, R = y ? mi : yi;
2961
+ return d(C), C;
2962
+ })(), b = await g(O), { maxPages: w } = e.options, R = y ? mi : yi;
2963
2963
  return {
2964
- pages: R(h.pages, v, w),
2964
+ pages: R(h.pages, b, w),
2965
2965
  pageParams: R(h.pageParams, p, w)
2966
2966
  };
2967
2967
  };
@@ -2970,14 +2970,14 @@ function fn(t) {
2970
2970
  pages: i,
2971
2971
  pageParams: o
2972
2972
  }, m = p(r, y);
2973
- a = await b(y, m, h);
2973
+ a = await v(y, m, h);
2974
2974
  } else {
2975
2975
  const h = t ?? i.length;
2976
2976
  do {
2977
2977
  const p = u === 0 ? o[0] ?? r.initialPageParam : dn(r, a);
2978
2978
  if (u > 0 && p == null)
2979
2979
  break;
2980
- a = await b(a, p), u++;
2980
+ a = await v(a, p), u++;
2981
2981
  } while (u < h);
2982
2982
  }
2983
2983
  return a;
@@ -3677,12 +3677,12 @@ function lr(t) {
3677
3677
  const e = t ? `:${t}` : "";
3678
3678
  return `${xi}${e}`;
3679
3679
  }
3680
- function bt(t, e) {
3680
+ function vt(t, e) {
3681
3681
  Object.keys(t).forEach((n) => {
3682
3682
  t[n] = e[n];
3683
3683
  });
3684
3684
  }
3685
- function vt(t, e, n = "", r = 0) {
3685
+ function bt(t, e, n = "", r = 0) {
3686
3686
  if (e) {
3687
3687
  const s = e(t, n, r);
3688
3688
  if (s === void 0 && Ct(t) || s !== void 0)
@@ -3690,19 +3690,19 @@ function vt(t, e, n = "", r = 0) {
3690
3690
  }
3691
3691
  if (Array.isArray(t))
3692
3692
  return t.map(
3693
- (s, i) => vt(s, e, String(i), r + 1)
3693
+ (s, i) => bt(s, e, String(i), r + 1)
3694
3694
  );
3695
3695
  if (typeof t == "object" && qi(t)) {
3696
3696
  const s = Object.entries(t).map(([i, o]) => [
3697
3697
  i,
3698
- vt(o, e, i, r + 1)
3698
+ bt(o, e, i, r + 1)
3699
3699
  ]);
3700
3700
  return Object.fromEntries(s);
3701
3701
  }
3702
3702
  return t;
3703
3703
  }
3704
3704
  function Di(t, e) {
3705
- return vt(t, e);
3705
+ return bt(t, e);
3706
3706
  }
3707
3707
  function S(t, e = !1) {
3708
3708
  return Di(t, (n, r, s) => {
@@ -4395,9 +4395,9 @@ function Ki(t, e, n) {
4395
4395
  const {
4396
4396
  minRanking: l,
4397
4397
  maxRanking: c,
4398
- threshold: f = n.threshold
4398
+ threshold: d = n.threshold
4399
4399
  } = a.attributes;
4400
- u < l && u >= M.MATCHES ? u = l : u > c && (u = c), u = Math.min(u, c), u >= f && u > i.rank && (i.rank = u, i.passed = !0, i.accessorIndex = o, i.accessorThreshold = f, i.rankedValue = a.itemValue);
4400
+ u < l && u >= M.MATCHES ? u = l : u > c && (u = c), u = Math.min(u, c), u >= d && u > i.rank && (i.rank = u, i.passed = !0, i.accessorIndex = o, i.accessorThreshold = d, i.rankedValue = a.itemValue);
4401
4401
  }
4402
4402
  return i;
4403
4403
  }
@@ -4415,9 +4415,9 @@ function Wi(t) {
4415
4415
  function zi(t, e) {
4416
4416
  let n = 0, r = 0;
4417
4417
  function s(u, l, c) {
4418
- for (let f = c, g = l.length; f < g; f++)
4419
- if (l[f] === u)
4420
- return n += 1, f + 1;
4418
+ for (let d = c, g = l.length; d < g; d++)
4419
+ if (l[d] === u)
4420
+ return n += 1, d + 1;
4421
4421
  return -1;
4422
4422
  }
4423
4423
  function i(u) {
@@ -4629,19 +4629,19 @@ function no(t, e) {
4629
4629
  }), n.on.getInspectorTree((i) => {
4630
4630
  if (i.inspectorId === ee) {
4631
4631
  const o = s.getAll(), a = n.getSettings(), c = (i.filter ? o.filter(
4632
- (f) => Ki(f.queryHash, i.filter).passed
4632
+ (d) => Ki(d.queryHash, i.filter).passed
4633
4633
  ) : [...o]).sort(
4634
- (f, g) => Ze[a.sortFn](f, g) * a.baseSort
4635
- ).map((f) => {
4636
- const g = mn(f);
4634
+ (d, g) => Ze[a.sortFn](d, g) * a.baseSort
4635
+ ).map((d) => {
4636
+ const g = mn(d);
4637
4637
  return {
4638
- id: f.queryHash,
4639
- label: f.queryHash,
4638
+ id: d.queryHash,
4639
+ label: d.queryHash,
4640
4640
  tags: [
4641
4641
  {
4642
- label: `${g} [${f.getObserversCount()}]`,
4643
- textColor: Yi(f),
4644
- backgroundColor: Zi(f)
4642
+ label: `${g} [${d.getObserversCount()}]`,
4643
+ textColor: Yi(d),
4644
+ backgroundColor: Zi(d)
4645
4645
  }
4646
4646
  ]
4647
4647
  };
@@ -4729,30 +4729,30 @@ function ro(t, e, n) {
4729
4729
  'vue-query composable like "useQuery()" should only be used inside a "setup()" function or a running effect scope. They might otherwise lead to memory leaks.'
4730
4730
  ));
4731
4731
  const r = n || fr(), s = $(() => {
4732
- const b = S(e);
4733
- typeof b.enabled == "function" && (b.enabled = b.enabled());
4734
- const h = r.defaultQueryOptions(b);
4732
+ const v = S(e);
4733
+ typeof v.enabled == "function" && (v.enabled = v.enabled());
4734
+ const h = r.defaultQueryOptions(v);
4735
4735
  return h._optimisticResults = r.isRestoring?.value ? "isRestoring" : "optimistic", h;
4736
4736
  }), i = new t(r, s.value), o = s.value.shallow ? Rn(i.getCurrentResult()) : An(i.getCurrentResult());
4737
4737
  let a = () => {
4738
4738
  };
4739
4739
  r.isRestoring && V(
4740
4740
  r.isRestoring,
4741
- (b) => {
4742
- b || (a(), a = i.subscribe((h) => {
4743
- bt(o, h);
4741
+ (v) => {
4742
+ v || (a(), a = i.subscribe((h) => {
4743
+ vt(o, h);
4744
4744
  }));
4745
4745
  },
4746
4746
  { immediate: !0 }
4747
4747
  );
4748
4748
  const u = () => {
4749
- i.setOptions(s.value), bt(o, i.getCurrentResult());
4749
+ i.setOptions(s.value), vt(o, i.getCurrentResult());
4750
4750
  };
4751
4751
  V(s, u), Tn(() => {
4752
4752
  a();
4753
4753
  });
4754
- const l = (...b) => (u(), o.refetch(...b)), c = () => new Promise(
4755
- (b, h) => {
4754
+ const l = (...v) => (u(), o.refetch(...v)), c = () => new Promise(
4755
+ (v, h) => {
4756
4756
  let p = () => {
4757
4757
  };
4758
4758
  const y = () => {
@@ -4761,12 +4761,12 @@ function ro(t, e, n) {
4761
4761
  const m = i.getOptimisticResult(
4762
4762
  s.value
4763
4763
  );
4764
- m.isStale ? (p(), i.fetchOptimistic(s.value).then(b, (O) => {
4764
+ m.isStale ? (p(), i.fetchOptimistic(s.value).then(v, (O) => {
4765
4765
  pt(s.value.throwOnError, [
4766
4766
  O,
4767
4767
  i.getCurrentQuery()
4768
- ]) ? h(O) : b(i.getCurrentResult());
4769
- })) : (p(), b(m));
4768
+ ]) ? h(O) : v(i.getCurrentResult());
4769
+ })) : (p(), v(m));
4770
4770
  }
4771
4771
  };
4772
4772
  y(), p = V(s, y);
@@ -4774,17 +4774,17 @@ function ro(t, e, n) {
4774
4774
  );
4775
4775
  V(
4776
4776
  () => o.error,
4777
- (b) => {
4777
+ (v) => {
4778
4778
  if (o.isError && !o.isFetching && pt(s.value.throwOnError, [
4779
- b,
4779
+ v,
4780
4780
  i.getCurrentQuery()
4781
4781
  ]))
4782
- throw b;
4782
+ throw v;
4783
4783
  }
4784
4784
  );
4785
- const f = s.value.shallow ? Cn(o) : Te(o), g = Pn(f);
4786
- for (const b in o)
4787
- typeof o[b] == "function" && (g[b] = o[b]);
4785
+ const d = s.value.shallow ? Cn(o) : Te(o), g = Pn(d);
4786
+ for (const v in o)
4787
+ typeof o[v] == "function" && (g[v] = o[v]);
4788
4788
  return g.suspense = c, g.refetch = l, g;
4789
4789
  }
4790
4790
  function xa(t, e) {
@@ -4795,9 +4795,9 @@ function Da(t, e) {
4795
4795
  'vue-query composable like "useQuery()" should only be used inside a "setup()" function or a running effect scope. They might otherwise lead to memory leaks.'
4796
4796
  ));
4797
4797
  const n = e || fr(), r = $(() => n.defaultMutationOptions(S(t))), s = new Pi(n, r.value), i = r.value.shallow ? Rn(s.getCurrentResult()) : An(s.getCurrentResult()), o = s.subscribe((c) => {
4798
- bt(i, c);
4799
- }), a = (c, f) => {
4800
- s.mutate(c, f).catch(() => {
4798
+ vt(i, c);
4799
+ }), a = (c, d) => {
4800
+ s.mutate(c, d).catch(() => {
4801
4801
  });
4802
4802
  };
4803
4803
  V(r, () => {
@@ -5025,10 +5025,12 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
5025
5025
  const co = () => {
5026
5026
  };
5027
5027
  function lo(...t) {
5028
- if (t.length !== 1)
5029
- return Cr(...t);
5028
+ if (t.length !== 1) return Cr(...t);
5030
5029
  const e = t[0];
5031
- return typeof e == "function" ? Te(Pr(() => ({ get: e, set: co }))) : D(e);
5030
+ return typeof e == "function" ? Te(Pr(() => ({
5031
+ get: e,
5032
+ set: co
5033
+ }))) : D(e);
5032
5034
  }
5033
5035
  function gn(t, e = !1, n = "Timeout") {
5034
5036
  return new Promise((r, s) => {
@@ -5036,71 +5038,58 @@ function gn(t, e = !1, n = "Timeout") {
5036
5038
  });
5037
5039
  }
5038
5040
  function Ot(t, e = !1) {
5039
- function n(f, { flush: g = "sync", deep: b = !1, timeout: h, throwOnTimeout: p } = {}) {
5041
+ function n(d, { flush: g = "sync", deep: v = !1, timeout: h, throwOnTimeout: p } = {}) {
5040
5042
  let y = null;
5041
- const O = [new Promise((v) => {
5042
- y = V(
5043
- t,
5044
- (w) => {
5045
- f(w) !== e && (y ? y() : rt(() => y?.()), v(w));
5046
- },
5047
- {
5048
- flush: g,
5049
- deep: b,
5050
- immediate: !0
5051
- }
5052
- );
5043
+ const m = [new Promise((O) => {
5044
+ y = V(t, (b) => {
5045
+ d(b) !== e && (y ? y() : rt(() => y?.()), O(b));
5046
+ }, {
5047
+ flush: g,
5048
+ deep: v,
5049
+ immediate: !0
5050
+ });
5053
5051
  })];
5054
- return h != null && O.push(
5055
- gn(h, p).then(() => pe(t)).finally(() => y?.())
5056
- ), Promise.race(O);
5057
- }
5058
- function r(f, g) {
5059
- if (!Ct(f))
5060
- return n((w) => w === f, g);
5061
- const { flush: b = "sync", deep: h = !1, timeout: p, throwOnTimeout: y } = g ?? {};
5052
+ return h != null && m.push(gn(h, p).then(() => pe(t)).finally(() => y?.())), Promise.race(m);
5053
+ }
5054
+ function r(d, g) {
5055
+ if (!Ct(d)) return n((b) => b === d, g);
5056
+ const { flush: v = "sync", deep: h = !1, timeout: p, throwOnTimeout: y } = g ?? {};
5062
5057
  let m = null;
5063
- const v = [new Promise((w) => {
5064
- m = V(
5065
- [t, f],
5066
- ([R, C]) => {
5067
- e !== (R === C) && (m ? m() : rt(() => m?.()), w(R));
5068
- },
5069
- {
5070
- flush: b,
5071
- deep: h,
5072
- immediate: !0
5073
- }
5074
- );
5058
+ const O = [new Promise((b) => {
5059
+ m = V([t, d], ([w, R]) => {
5060
+ e !== (w === R) && (m ? m() : rt(() => m?.()), b(w));
5061
+ }, {
5062
+ flush: v,
5063
+ deep: h,
5064
+ immediate: !0
5065
+ });
5075
5066
  })];
5076
- return p != null && v.push(
5077
- gn(p, y).then(() => pe(t)).finally(() => (m?.(), pe(t)))
5078
- ), Promise.race(v);
5067
+ return p != null && O.push(gn(p, y).then(() => pe(t)).finally(() => (m?.(), pe(t)))), Promise.race(O);
5079
5068
  }
5080
- function s(f) {
5081
- return n((g) => !!g, f);
5069
+ function s(d) {
5070
+ return n((g) => !!g, d);
5082
5071
  }
5083
- function i(f) {
5084
- return r(null, f);
5072
+ function i(d) {
5073
+ return r(null, d);
5085
5074
  }
5086
- function o(f) {
5087
- return r(void 0, f);
5075
+ function o(d) {
5076
+ return r(void 0, d);
5088
5077
  }
5089
- function a(f) {
5090
- return n(Number.isNaN, f);
5078
+ function a(d) {
5079
+ return n(Number.isNaN, d);
5091
5080
  }
5092
- function u(f, g) {
5093
- return n((b) => {
5094
- const h = Array.from(b);
5095
- return h.includes(f) || h.includes(pe(f));
5081
+ function u(d, g) {
5082
+ return n((v) => {
5083
+ const h = Array.from(v);
5084
+ return h.includes(d) || h.includes(pe(d));
5096
5085
  }, g);
5097
5086
  }
5098
- function l(f) {
5099
- return c(1, f);
5087
+ function l(d) {
5088
+ return c(1, d);
5100
5089
  }
5101
- function c(f = 1, g) {
5102
- let b = -1;
5103
- return n(() => (b += 1, b >= f), g);
5090
+ function c(d = 1, g) {
5091
+ let v = -1;
5092
+ return n(() => (v += 1, v >= d), g);
5104
5093
  }
5105
5094
  return Array.isArray(pe(t)) ? {
5106
5095
  toMatch: n,
@@ -5194,9 +5183,9 @@ function St(t) {
5194
5183
  }), Ae(s, r);
5195
5184
  }, St(t);
5196
5185
  }
5197
- var mo = /%[sdj%]/g, br = function() {
5186
+ var mo = /%[sdj%]/g, vr = function() {
5198
5187
  };
5199
- typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (br = function(e, n) {
5188
+ typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (vr = function(e, n) {
5200
5189
  typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && n.every(function(r) {
5201
5190
  return typeof r == "string";
5202
5191
  }) && console.warn(e, n);
@@ -5247,7 +5236,7 @@ function go(t) {
5247
5236
  function x(t, e) {
5248
5237
  return !!(t == null || e === "array" && Array.isArray(t) && !t.length || go(e) && typeof t == "string" && !t);
5249
5238
  }
5250
- function bo(t, e, n) {
5239
+ function vo(t, e, n) {
5251
5240
  var r = [], s = 0, i = t.length;
5252
5241
  function o(a) {
5253
5242
  r.push.apply(r, a || []), s++, s === i && n(r);
@@ -5256,7 +5245,7 @@ function bo(t, e, n) {
5256
5245
  e(a, o);
5257
5246
  });
5258
5247
  }
5259
- function bn(t, e, n) {
5248
+ function vn(t, e, n) {
5260
5249
  var r = 0, s = t.length;
5261
5250
  function i(o) {
5262
5251
  if (o && o.length) {
@@ -5268,13 +5257,13 @@ function bn(t, e, n) {
5268
5257
  }
5269
5258
  i([]);
5270
5259
  }
5271
- function vo(t) {
5260
+ function bo(t) {
5272
5261
  var e = [];
5273
5262
  return Object.keys(t).forEach(function(n) {
5274
5263
  e.push.apply(e, t[n] || []);
5275
5264
  }), e;
5276
5265
  }
5277
- var vn = /* @__PURE__ */ (function(t) {
5266
+ var bn = /* @__PURE__ */ (function(t) {
5278
5267
  ho(e, t);
5279
5268
  function e(n, r) {
5280
5269
  var s;
@@ -5284,29 +5273,29 @@ var vn = /* @__PURE__ */ (function(t) {
5284
5273
  })(/* @__PURE__ */ St(Error));
5285
5274
  function wo(t, e, n, r, s) {
5286
5275
  if (e.first) {
5287
- var i = new Promise(function(g, b) {
5276
+ var i = new Promise(function(g, v) {
5288
5277
  var h = function(m) {
5289
- return r(m), m.length ? b(new vn(m, Rt(m))) : g(s);
5290
- }, p = vo(t);
5291
- bn(p, n, h);
5278
+ return r(m), m.length ? v(new bn(m, Rt(m))) : g(s);
5279
+ }, p = bo(t);
5280
+ vn(p, n, h);
5292
5281
  });
5293
5282
  return i.catch(function(g) {
5294
5283
  return g;
5295
5284
  }), i;
5296
5285
  }
5297
- var o = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], a = Object.keys(t), u = a.length, l = 0, c = [], f = new Promise(function(g, b) {
5286
+ var o = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], a = Object.keys(t), u = a.length, l = 0, c = [], d = new Promise(function(g, v) {
5298
5287
  var h = function(y) {
5299
5288
  if (c.push.apply(c, y), l++, l === u)
5300
- return r(c), c.length ? b(new vn(c, Rt(c))) : g(s);
5289
+ return r(c), c.length ? v(new bn(c, Rt(c))) : g(s);
5301
5290
  };
5302
5291
  a.length || (r(c), g(s)), a.forEach(function(p) {
5303
5292
  var y = t[p];
5304
- o.indexOf(p) !== -1 ? bn(y, n, h) : bo(y, n, h);
5293
+ o.indexOf(p) !== -1 ? vn(y, n, h) : vo(y, n, h);
5305
5294
  });
5306
5295
  });
5307
- return f.catch(function(g) {
5296
+ return d.catch(function(g) {
5308
5297
  return g;
5309
- }), f;
5298
+ }), d;
5310
5299
  }
5311
5300
  function Oo(t) {
5312
5301
  return !!(t && t.message !== void 0);
@@ -5339,7 +5328,7 @@ function On(t, e) {
5339
5328
  }
5340
5329
  return t;
5341
5330
  }
5342
- var vr = function(e, n, r, s, i, o) {
5331
+ var br = function(e, n, r, s, i, o) {
5343
5332
  e.required && (!r.hasOwnProperty(e.field) || x(n, o || e.type)) && s.push(Q(i.messages.required, e.fullField));
5344
5333
  }, So = function(e, n, r, s, i) {
5345
5334
  (/^\s+$/.test(n) || n === "") && s.push(Q(i.messages.whitespace, e.fullField));
@@ -5362,12 +5351,12 @@ var vr = function(e, n, r, s, i, o) {
5362
5351
  `).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), i = new RegExp("(?:^" + n + "$)|(?:^" + s + "$)"), o = new RegExp("^" + n + "$"), a = new RegExp("^" + s + "$"), u = function(w) {
5363
5352
  return w && w.exact ? i : new RegExp("(?:" + e(w) + n + e(w) + ")|(?:" + e(w) + s + e(w) + ")", "g");
5364
5353
  };
5365
- u.v4 = function(v) {
5366
- return v && v.exact ? o : new RegExp("" + e(v) + n + e(v), "g");
5367
- }, u.v6 = function(v) {
5368
- return v && v.exact ? a : new RegExp("" + e(v) + s + e(v), "g");
5354
+ u.v4 = function(b) {
5355
+ return b && b.exact ? o : new RegExp("" + e(b) + n + e(b), "g");
5356
+ }, u.v6 = function(b) {
5357
+ return b && b.exact ? a : new RegExp("" + e(b) + s + e(b), "g");
5369
5358
  };
5370
- var l = "(?:(?:[a-z]+:)?//)", c = "(?:\\S+(?::\\S*)?@)?", f = u.v4().source, g = u.v6().source, b = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", h = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", p = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", y = "(?::\\d{2,5})?", m = '(?:[/?#][^\\s"]*)?', O = "(?:" + l + "|www\\.)" + c + "(?:localhost|" + f + "|" + g + "|" + b + h + p + ")" + y + m;
5359
+ var l = "(?:(?:[a-z]+:)?//)", c = "(?:\\S+(?::\\S*)?@)?", d = u.v4().source, g = u.v6().source, v = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", h = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", p = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", y = "(?::\\d{2,5})?", m = '(?:[/?#][^\\s"]*)?', O = "(?:" + l + "|www\\.)" + c + "(?:localhost|" + d + "|" + g + "|" + v + h + p + ")" + y + m;
5371
5360
  return _e = new RegExp("(?:^" + O + "$)", "i"), _e;
5372
5361
  }), En = {
5373
5362
  // http://emailregex.com/
@@ -5419,16 +5408,16 @@ var vr = function(e, n, r, s, i, o) {
5419
5408
  }
5420
5409
  }, Ao = function(e, n, r, s, i) {
5421
5410
  if (e.required && n === void 0) {
5422
- vr(e, n, r, s, i);
5411
+ br(e, n, r, s, i);
5423
5412
  return;
5424
5413
  }
5425
5414
  var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], a = e.type;
5426
5415
  o.indexOf(a) > -1 ? Ee[a](n) || s.push(Q(i.messages.types[a], e.fullField, e.type)) : a && typeof n !== e.type && s.push(Q(i.messages.types[a], e.fullField, e.type));
5427
5416
  }, To = function(e, n, r, s, i) {
5428
- var o = typeof e.len == "number", a = typeof e.min == "number", u = typeof e.max == "number", l = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, c = n, f = null, g = typeof n == "number", b = typeof n == "string", h = Array.isArray(n);
5429
- if (g ? f = "number" : b ? f = "string" : h && (f = "array"), !f)
5417
+ var o = typeof e.len == "number", a = typeof e.min == "number", u = typeof e.max == "number", l = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, c = n, d = null, g = typeof n == "number", v = typeof n == "string", h = Array.isArray(n);
5418
+ if (g ? d = "number" : v ? d = "string" : h && (d = "array"), !d)
5430
5419
  return !1;
5431
- h && (c = n.length), b && (c = n.replace(l, "_").length), o ? c !== e.len && s.push(Q(i.messages[f].len, e.fullField, e.len)) : a && !u && c < e.min ? s.push(Q(i.messages[f].min, e.fullField, e.min)) : u && !a && c > e.max ? s.push(Q(i.messages[f].max, e.fullField, e.max)) : a && u && (c < e.min || c > e.max) && s.push(Q(i.messages[f].range, e.fullField, e.min, e.max));
5420
+ h && (c = n.length), v && (c = n.replace(l, "_").length), o ? c !== e.len && s.push(Q(i.messages[d].len, e.fullField, e.len)) : a && !u && c < e.min ? s.push(Q(i.messages[d].min, e.fullField, e.min)) : u && !a && c > e.max ? s.push(Q(i.messages[d].max, e.fullField, e.max)) : a && u && (c < e.min || c > e.max) && s.push(Q(i.messages[d].range, e.fullField, e.min, e.max));
5432
5421
  }, he = "enum", Co = function(e, n, r, s, i) {
5433
5422
  e[he] = Array.isArray(e[he]) ? e[he] : [], e[he].indexOf(n) === -1 && s.push(Q(i.messages[he], e.fullField, e[he].join(", ")));
5434
5423
  }, Po = function(e, n, r, s, i) {
@@ -5441,7 +5430,7 @@ var vr = function(e, n, r, s, i, o) {
5441
5430
  }
5442
5431
  }
5443
5432
  }, A = {
5444
- required: vr,
5433
+ required: br,
5445
5434
  whitespace: So,
5446
5435
  type: Ao,
5447
5436
  range: To,
@@ -5670,24 +5659,24 @@ var Tt = At(), ge = /* @__PURE__ */ (function() {
5670
5659
  } else
5671
5660
  y.push(w);
5672
5661
  }
5673
- for (var v = 0; v < p.length; v++)
5674
- O(p[v]);
5662
+ for (var b = 0; b < p.length; b++)
5663
+ O(p[b]);
5675
5664
  y.length ? (m = Rt(y), l(y, m)) : l(null, a);
5676
5665
  }
5677
5666
  if (u.messages) {
5678
- var f = this.messages();
5679
- f === Tt && (f = At()), On(f, u.messages), u.messages = f;
5667
+ var d = this.messages();
5668
+ d === Tt && (d = At()), On(d, u.messages), u.messages = d;
5680
5669
  } else
5681
5670
  u.messages = this.messages();
5682
- var g = {}, b = u.keys || Object.keys(this.rules);
5683
- b.forEach(function(p) {
5671
+ var g = {}, v = u.keys || Object.keys(this.rules);
5672
+ v.forEach(function(p) {
5684
5673
  var y = o.rules[p], m = a[p];
5685
5674
  y.forEach(function(O) {
5686
- var v = O;
5687
- typeof v.transform == "function" && (a === r && (a = oe({}, a)), m = a[p] = v.transform(m)), typeof v == "function" ? v = {
5688
- validator: v
5689
- } : v = oe({}, v), v.validator = o.getValidationMethod(v), v.validator && (v.field = p, v.fullField = v.fullField || p, v.type = o.getType(v), g[p] = g[p] || [], g[p].push({
5690
- rule: v,
5675
+ var b = O;
5676
+ typeof b.transform == "function" && (a === r && (a = oe({}, a)), m = a[p] = b.transform(m)), typeof b == "function" ? b = {
5677
+ validator: b
5678
+ } : b = oe({}, b), b.validator = o.getValidationMethod(b), b.validator && (b.field = p, b.fullField = b.fullField || p, b.type = o.getType(b), g[p] = g[p] || [], g[p].push({
5679
+ rule: b,
5691
5680
  value: m,
5692
5681
  source: a,
5693
5682
  field: p
@@ -5698,7 +5687,7 @@ var Tt = At(), ge = /* @__PURE__ */ (function() {
5698
5687
  return wo(g, u, function(p, y) {
5699
5688
  var m = p.rule, O = (m.type === "object" || m.type === "array") && (typeof m.fields == "object" || typeof m.defaultField == "object");
5700
5689
  O = O && (m.required || !m.required && p.value), m.field = p.field;
5701
- function v(C, T) {
5690
+ function b(C, T) {
5702
5691
  return oe({}, T, {
5703
5692
  fullField: m.fullField + "." + C,
5704
5693
  fullFields: m.fullFields ? [].concat(m.fullFields, [C]) : [C]
@@ -5723,7 +5712,7 @@ var Tt = At(), ge = /* @__PURE__ */ (function() {
5723
5712
  var j = {};
5724
5713
  Object.keys(I).forEach(function(U) {
5725
5714
  var N = I[U], G = Array.isArray(N) ? N : [N];
5726
- j[U] = G.map(v.bind(null, U));
5715
+ j[U] = G.map(b.bind(null, U));
5727
5716
  });
5728
5717
  var W = new t(j);
5729
5718
  W.messages(u.messages), p.rule.options && (p.rule.options.messages = u.messages, p.rule.options.error = u.error), W.validate(p.value, p.rule.options || u, function(U) {
@@ -5769,22 +5758,18 @@ ge.register = function(e, n) {
5769
5758
  throw new Error("Cannot register a validator by type, validator is not a function");
5770
5759
  Se[e] = n;
5771
5760
  };
5772
- ge.warning = br;
5761
+ ge.warning = vr;
5773
5762
  ge.messages = Tt;
5774
5763
  ge.validators = Se;
5775
5764
  const $o = ge.default || ge;
5776
5765
  function Vo(t, e, n = {}) {
5777
- const {
5778
- validateOption: r = {},
5779
- immediate: s = !0,
5780
- manual: i = !1
5781
- } = n, o = lo(t), a = Je(null), u = Je(!0), l = Je(!s || i), c = $(() => {
5766
+ const { validateOption: r = {}, immediate: s = !0, manual: i = !1 } = n, o = lo(t), a = Je(null), u = Je(!0), l = Je(!s || i), c = $(() => {
5782
5767
  var y;
5783
- return ((y = a.value) == null ? void 0 : y.errors) || [];
5784
- }), f = $(() => {
5768
+ return ((y = a.value) === null || y === void 0 ? void 0 : y.errors) || [];
5769
+ }), d = $(() => {
5785
5770
  var y;
5786
- return ((y = a.value) == null ? void 0 : y.fields) || {};
5787
- }), g = $(() => new $o(pe(e))), b = async () => {
5771
+ return ((y = a.value) === null || y === void 0 ? void 0 : y.fields) || {};
5772
+ }), g = $(() => new $o(pe(e))), v = async () => {
5788
5773
  u.value = !1, l.value = !1;
5789
5774
  try {
5790
5775
  await g.value.validate(o.value, r), l.value = !0, a.value = null;
@@ -5797,21 +5782,20 @@ function Vo(t, e, n = {}) {
5797
5782
  pass: l.value,
5798
5783
  errorInfo: a.value,
5799
5784
  errors: c.value,
5800
- errorFields: f.value
5785
+ errorFields: d.value
5801
5786
  };
5802
5787
  };
5803
- i || V(
5804
- [o, g],
5805
- () => b(),
5806
- { immediate: s, deep: !0 }
5807
- );
5788
+ i || V([o, g], () => v(), {
5789
+ immediate: s,
5790
+ deep: !0
5791
+ });
5808
5792
  const h = {
5809
5793
  isFinished: u,
5810
5794
  pass: l,
5811
5795
  errors: c,
5812
5796
  errorInfo: a,
5813
- errorFields: f,
5814
- execute: b
5797
+ errorFields: d,
5798
+ execute: v
5815
5799
  };
5816
5800
  function p() {
5817
5801
  return new Promise((y, m) => {
@@ -5826,15 +5810,15 @@ function Vo(t, e, n = {}) {
5826
5810
  };
5827
5811
  }
5828
5812
  function Ga(t, e, n = "ru") {
5829
- const r = $(() => Object.entries(e).reduce((f, [g, b]) => (f[g] = Array.isArray(b) ? b.map((h) => typeof h == "function" ? h(n) : h) : [], f), {})), { errorFields: s, isFinished: i, pass: o } = Vo(t, r, {
5813
+ const r = $(() => Object.entries(e).reduce((d, [g, v]) => (d[g] = Array.isArray(v) ? v.map((h) => typeof h == "function" ? h(n) : h) : [], d), {})), { errorFields: s, isFinished: i, pass: o } = Vo(t, r, {
5830
5814
  validateOption: { suppressWarning: !0 }
5831
5815
  }), a = D(0);
5832
5816
  function u() {
5833
5817
  return a.value++, o.value && i.value;
5834
5818
  }
5835
5819
  const l = $(() => a.value ? s.value : void 0);
5836
- function c(f) {
5837
- return l.value?.[f]?.[0]?.message;
5820
+ function c(d) {
5821
+ return l.value?.[d]?.[0]?.message;
5838
5822
  }
5839
5823
  return { error: c, errors: l, isValid: u };
5840
5824
  }
@@ -5942,8 +5926,8 @@ export {
5942
5926
  Ra as formatPercent,
5943
5927
  _a as generatePassword,
5944
5928
  ja as getCookieToken,
5945
- ba as getDatesByDayGap,
5946
- va as getFirstAndLastDays,
5929
+ va as getDatesByDayGap,
5930
+ ba as getFirstAndLastDays,
5947
5931
  ui as getOneYearFromNow,
5948
5932
  Aa as getPercentDiff,
5949
5933
  nn as handleError,